@fugood/bricks-cli 2.25.0-beta.60 → 2.25.0-beta.62

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/lib/479.js ADDED
@@ -0,0 +1,1231 @@
1
+ export const __rspack_esm_id=479;export const __rspack_esm_ids=[479];export const __webpack_modules__={75267(e,t,i){var r;(function(e,t,i){"use strict";var r=Object.create,n=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,p=(e,t)=>function(){return t||(0,e[a(e)[0]])((t={exports:{}}).exports,t),t.exports},u=(e,t,i,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of a(t))l.call(e,o)||o===i||n(e,o,{get:()=>t[o],enumerable:!(r=s(t,o))||r.enumerable});return e},c=(e,t,i)=>(i=null!=e?r(o(e)):{},u(!t&&e&&e.__esModule?i:n(i,"default",{value:e,enumerable:!0}),e)),d=p({"umd:@jridgewell/sourcemap-codec"(e,i){i.exports=t}}),h=p({"umd:@jridgewell/trace-mapping"(e,t){t.exports=i}}),m={},f={GenMapping:()=>S,addMapping:()=>A,addSegment:()=>E,allMappings:()=>k,fromMap:()=>I,maybeAddMapping:()=>v,maybeAddSegment:()=>P,setIgnore:()=>C,setSourceContent:()=>D,toDecodedMap:()=>w,toEncodedMap:()=>_};for(var y in f)n(m,y,{get:f[y],enumerable:!0});e.exports=u(n({},"__esModule",{value:!0}),m);var g=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function T(e,t){var i,r;let n=(i=e,r=t,i._indexes[r]);if(void 0!==n)return n;let{array:s,_indexes:a}=e,o=s.push(t);return a[t]=o-1}var b=c(d()),x=c(h()),S=class{constructor({file:e,sourceRoot:t}={}){this._names=new g,this._sources=new g,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=t,this._ignoreList=new g}};function E(e,t,i,r,n,s,a,o){return N(!1,e,t,i,r,n,s,a,o)}function A(e,t){return L(!1,e,t)}var P=(e,t,i,r,n,s,a,o)=>N(!0,e,t,i,r,n,s,a,o),v=(e,t)=>L(!0,e,t);function D(e,t,i){let{_sources:r,_sourcesContent:n}=e;n[T(r,t)]=i}function C(e,t,i=!0){let{_sources:r,_sourcesContent:n,_ignoreList:s}=e,a=T(r,t);a===n.length&&(n[a]=null),i?T(s,a):function(e,t){var i,r;let n=(i=e,r=t,i._indexes[r]);if(void 0===n)return;let{array:s,_indexes:a}=e;for(let e=n+1;e<s.length;e++){let t=s[e];s[e-1]=t,a[t]--}a[t]=void 0,s.pop()}(s,a)}function w(e){let{_mappings:t,_sources:i,_sourcesContent:r,_names:n,_ignoreList:s}=e;return function(e){let{length:t}=e,i=t;for(let t=i-1;t>=0&&!(e[t].length>0);i=t,t--);i<t&&(e.length=i)}(t),{version:3,file:e.file||void 0,names:n.array,sourceRoot:e.sourceRoot||void 0,sources:i.array,sourcesContent:r,mappings:t,ignoreList:s.array}}function _(e){let t=w(e);return Object.assign({},t,{mappings:(0,b.encode)(t.mappings)})}function I(e){let t=new x.TraceMap(e),i=new S({file:t.file,sourceRoot:t.sourceRoot});return F(i._names,t.names),F(i._sources,t.sources),i._sourcesContent=t.sourcesContent||t.sources.map(()=>null),i._mappings=(0,x.decodedMappings)(t),t.ignoreList&&F(i._ignoreList,t.ignoreList),i}function k(e){let t=[],{_mappings:i,_sources:r,_names:n}=e;for(let e=0;e<i.length;e++){let s=i[e];for(let i=0;i<s.length;i++){let a,o,l,p=s[i],u={line:e+1,column:p[0]};1!==p.length&&(a=r.array[p[1]],o={line:p[2]+1,column:p[3]},5===p.length&&(l=n.array[p[4]])),t.push({generated:u,source:a,original:o,name:l})}}return t}function N(e,t,i,r,n,s,a,o,l){let{_mappings:p,_sources:u,_sourcesContent:c,_names:d}=t,h=function(e,t){for(let i=e.length;i<=t;i++)e[i]=[];return e[t]}(p,i),m=function(e,t){let i=e.length;for(let r=i-1;r>=0&&!(t>=e[r][0]);i=r--);return i}(h,r);if(!n){var f,y;if(e&&(f=h,0===(y=m)||1===f[y-1].length))return;return O(h,m,[r])}let g=T(u,n),b=o?T(d,o):-1;if(g===c.length&&(c[g]=null!=l?l:null),!(e&&function(e,t,i,r,n,s){if(0===t)return!1;let a=e[t-1];return 1!==a.length&&i===a[1]&&r===a[2]&&n===a[3]&&s===(5===a.length?a[4]:-1)}(h,m,g,s,a,b)))return O(h,m,o?[r,g,s,a,b]:[r,g,s,a])}function O(e,t,i){for(let i=e.length;i>t;i--)e[i]=e[i-1];e[t]=i}function F(e,t){for(let i=0;i<t.length;i++)T(e,t[i])}function L(e,t,i){let{generated:r,source:n,original:s,name:a,content:o}=i;return n?N(e,t,r.line-1,r.column,n,s.line-1,s.column,a,o):N(e,t,r.line-1,r.column,null,null,null,null,null)}})(e=i.nmd(e),i(14017),i(41969)),e.exports="default"in(r=e).exports?r.exports.default:r.exports},98079(e){e.exports=function(){"use strict";let e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,i=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function r(e){return e.startsWith("/")}function n(e){return/^[.?#]/.test(e)}function s(e){let i=t.exec(e);return a(i[1],i[2]||"",i[3],i[4]||"",i[5]||"/",i[6]||"",i[7]||"")}function a(e,t,i,r,n,s,a){return{scheme:e,user:t,host:i,port:r,path:n,query:s,hash:a,type:7}}function o(t){if(t.startsWith("//")){let e=s("http:"+t);return e.scheme="",e.type=6,e}if(r(t)){let e=s("http://foo.com"+t);return e.scheme="",e.host="",e.type=5,e}if(t.startsWith("file:")){let e,n;return n=(e=i.exec(t))[2],a("file:","",e[1]||"","",r(n)?n:"/"+n,e[3]||"",e[4]||"")}if(e.test(t))return s(t);let n=s("http://foo.com/"+t);return n.scheme="",n.host="",n.type=t?t.startsWith("?")?3:t.startsWith("#")?2:4:1,n}function l(e,t){let i=t<=4,r=e.path.split("/"),n=1,s=0,a=!1;for(let e=1;e<r.length;e++){let t=r[e];if(!t){a=!0;continue}if(a=!1,"."!==t){if(".."===t){s?(a=!0,s--,n--):i&&(r[n++]=t);continue}r[n++]=t,s++}}let o="";for(let e=1;e<n;e++)o+="/"+r[e];o&&(!a||o.endsWith("/.."))||(o+="/"),e.path=o}return function(e,t){if(!e&&!t)return"";let i=o(e),r=i.type;if(t&&7!==r){let e=o(t),n=e.type;switch(r){case 1:i.hash=e.hash;case 2:i.query=e.query;case 3:case 4:l(e,e.type),"/"===i.path?i.path=e.path:i.path=function(e){if(e.endsWith("/.."))return e;let t=e.lastIndexOf("/");return e.slice(0,t+1)}(e.path)+i.path;case 5:i.user=e.user,i.host=e.host,i.port=e.port;case 6:i.scheme=e.scheme}n>r&&(r=n)}l(i,r);let s=i.query+i.hash;switch(r){case 2:case 3:return s;case 4:{let r=i.path.slice(1);if(!r)return s||".";if(n(t||e)&&!n(r))return"./"+r+s;return r+s}case 5:return i.path+s;default:return i.scheme+"//"+i.user+i.host+i.port+i.path+s}}}()},14017(e,t,i){var r;(function(e){"use strict";var t=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,s={},a={decode:()=>A,decodeGeneratedRanges:()=>x,decodeOriginalScopes:()=>T,encode:()=>v,encodeGeneratedRanges:()=>S,encodeOriginalScopes:()=>b};for(var o in a)t(s,o,{get:a[o],enumerable:!0});e.exports=((e,s,a,o)=>{if(s&&"object"==typeof s||"function"==typeof s)for(let l of r(s))n.call(e,l)||l===a||t(e,l,{get:()=>s[l],enumerable:!(o=i(s,l))||o.enumerable});return e})(t({},"__esModule",{value:!0}),s);var l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=new Uint8Array(64),u=new Uint8Array(128);for(let e=0;e<l.length;e++){let t=l.charCodeAt(e);p[e]=t,u[t]=e}function c(e,t){let i=0,r=0,n=0;do i|=(31&(n=u[e.next()]))<<r,r+=5;while(32&n);let s=1&i;return i>>>=1,s&&(i=-0x80000000|-i),t+i}function d(e,t,i){let r=t-i;r=r<0?-r<<1|1:r<<1;do{let t=31&r;(r>>>=5)>0&&(t|=32),e.write(p[t])}while(r>0);return t}function h(e,t){return!(e.pos>=t)&&44!==e.peek()}var m="u">typeof TextDecoder?new TextDecoder:"u">typeof Buffer?{decode:e=>Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}:{decode(e){let t="";for(let i=0;i<e.length;i++)t+=String.fromCharCode(e[i]);return t}},f=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(16384)}write(e){let{buffer:t}=this;t[this.pos++]=e,16384===this.pos&&(this.out+=m.decode(t),this.pos=0)}flush(){let{buffer:e,out:t,pos:i}=this;return i>0?t+m.decode(e.subarray(0,i)):t}},y=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){let{buffer:t,pos:i}=this,r=t.indexOf(e,i);return -1===r?t.length:r}},g=[];function T(e){let{length:t}=e,i=new y(e),r=[],n=[],s=0;for(;i.pos<t;i.pos++){s=c(i,s);let e=c(i,0);if(!h(i,t)){let t=n.pop();t[2]=s,t[3]=e;continue}let a=c(i,0),o=1&c(i,0)?[s,e,0,0,a,c(i,0)]:[s,e,0,0,a],l=g;if(h(i,t)){l=[];do{let e=c(i,0);l.push(e)}while(h(i,t))}o.vars=l,r.push(o),n.push(o)}return r}function b(e){let t=new f;for(let i=0;i<e.length;)i=function e(t,i,r,n){let s=t[i],{0:a,1:o,2:l,3:p,4:u,vars:c}=s;for(let e of(i>0&&r.write(44),n[0]=d(r,a,n[0]),d(r,o,0),d(r,u,0),d(r,+(6===s.length),0),6===s.length&&d(r,s[5],0),c))d(r,e,0);for(i++;i<t.length;){let{0:s,1:a}=t[i];if(s>l||s===l&&a>=p)break;i=e(t,i,r,n)}return r.write(44),n[0]=d(r,l,n[0]),d(r,p,0),i}(e,i,t,[0]);return t.flush()}function x(e){let{length:t}=e,i=new y(e),r=[],n=[],s=0,a=0,o=0,l=0,p=0,u=0,d=0,m=0;do{let e=i.indexOf(";"),t=0;for(;i.pos<e;i.pos++){let f;if(t=c(i,t),!h(i,e)){let e=n.pop();e[2]=s,e[3]=t;continue}let y=c(i,0),T=1&y,b=2&y,x=4&y,S=null,E=g;if(T){let e=c(i,a);o=c(i,a===e?o:0),a=e,f=[s,t,0,0,e,o]}else f=[s,t,0,0];if(f.isScope=!!x,b){let e=p,t=l===(l=c(i,l));p=c(i,t?p:0),u=c(i,t&&e===p?u:0),S=[l,p,u]}if(f.callsite=S,h(i,e)){E=[];do{let e;d=s,m=t;let r=c(i,0);if(r<-1){e=[[c(i,0)]];for(let t=-1;t>r;t--){let t=d;d=c(i,d),m=c(i,d===t?m:0);let r=c(i,0);e.push([r,d,m])}}else e=[[r]];E.push(e)}while(h(i,e))}f.bindings=E,r.push(f),n.push(f)}s++,i.pos=e+1}while(i.pos<t);return r}function S(e){if(0===e.length)return"";let t=new f;for(let i=0;i<e.length;)i=function e(t,i,r,n){let s=t[i],{0:a,1:o,2:l,3:p,isScope:u,callsite:c,bindings:h}=s;if(n[0]<a?(E(r,n[0],a),n[0]=a,n[1]=0):i>0&&r.write(44),n[1]=d(r,s[1],n[1]),d(r,6===s.length|2*!!c|4*!!u,0),6===s.length){let{4:e,5:t}=s;e!==n[2]&&(n[3]=0),n[2]=d(r,e,n[2]),n[3]=d(r,t,n[3])}if(c){let{0:e,1:t,2:i}=s.callsite;e!==n[4]?(n[5]=0,n[6]=0):t!==n[5]&&(n[6]=0),n[4]=d(r,e,n[4]),n[5]=d(r,t,n[5]),n[6]=d(r,i,n[6])}if(h)for(let e of h){e.length>1&&d(r,-e.length,0),d(r,e[0][0],0);let t=a,i=o;for(let n=1;n<e.length;n++){let s=e[n];t=d(r,s[1],t),i=d(r,s[2],i),d(r,s[0],0)}}for(i++;i<t.length;){let{0:s,1:a}=t[i];if(s>l||s===l&&a>=p)break;i=e(t,i,r,n)}return n[0]<l?(E(r,n[0],l),n[0]=l,n[1]=0):r.write(44),n[1]=d(r,p,n[1]),i}(e,i,t,[0,0,0,0,0,0,0]);return t.flush()}function E(e,t,i){do e.write(59);while(++t<i)}function A(e){let{length:t}=e,i=new y(e),r=[],n=0,s=0,a=0,o=0,l=0;do{let e=i.indexOf(";"),t=[],p=!0,u=0;for(n=0;i.pos<e;){let r;(n=c(i,n))<u&&(p=!1),u=n,h(i,e)?(s=c(i,s),a=c(i,a),o=c(i,o),r=h(i,e)?[n,s,a,o,l=c(i,l)]:[n,s,a,o]):r=[n],t.push(r),i.pos++}p||t.sort(P),r.push(t),i.pos=e+1}while(i.pos<=t);return r}function P(e,t){return e[0]-t[0]}function v(e){let t=new f,i=0,r=0,n=0,s=0;for(let a=0;a<e.length;a++){let o=e[a];if(a>0&&t.write(59),0===o.length)continue;let l=0;for(let e=0;e<o.length;e++){let a=o[e];e>0&&t.write(44),l=d(t,a[0],l),1!==a.length&&(i=d(t,a[1],i),r=d(t,a[2],r),n=d(t,a[3],n),4!==a.length&&(s=d(t,a[4],s)))}}return t.flush()}})(e=i.nmd(e)),e.exports="default"in(r=e).exports?r.exports.default:r.exports},41969(e,t,i){var r;(function(e,t,i){"use strict";var r=Object.create,n=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,p=(e,t)=>function(){return t||(0,e[a(e)[0]])((t={exports:{}}).exports,t),t.exports},u=(e,t,i,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of a(t))l.call(e,o)||o===i||n(e,o,{get:()=>t[o],enumerable:!(r=s(t,o))||r.enumerable});return e},c=(e,t,i)=>(i=null!=e?r(o(e)):{},u(!t&&e&&e.__esModule?i:n(i,"default",{value:e,enumerable:!0}),e)),d=p({"umd:@jridgewell/sourcemap-codec"(e,t){t.exports=i}}),h=p({"umd:@jridgewell/resolve-uri"(e,i){i.exports=t}}),m={},f={AnyMap:()=>D,FlattenMap:()=>D,GREATEST_LOWER_BOUND:()=>k,LEAST_UPPER_BOUND:()=>I,TraceMap:()=>N,allGeneratedPositionsFor:()=>j,decodedMap:()=>$,decodedMappings:()=>F,eachMapping:()=>R,encodedMap:()=>W,encodedMappings:()=>O,generatedPositionFor:()=>B,isIgnored:()=>K,originalPositionFor:()=>M,presortedDecodedMap:()=>q,sourceContentFor:()=>V,traceSegment:()=>L};for(var y in f)n(m,y,{get:f[y],enumerable:!0});e.exports=u(n({},"__esModule",{value:!0}),m);var g=c(d()),T=c(h());function b(e,t){for(let i=t;i<e.length;i++)if(!function(e){for(let t=1;t<e.length;t++)if(e[t][0]<e[t-1][0])return!1;return!0}(e[i]))return i;return e.length}function x(e,t){return e[0]-t[0]}var S=!1;function E(e,t,i){for(let r=i+1;r<e.length&&e[r][0]===t;i=r++);return i}function A(e,t,i){for(let r=i-1;r>=0&&e[r][0]===t;i=r--);return i}function P(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function v(e){return"string"==typeof e?JSON.parse(e):e}var D=function(e,t){let i=v(e);if(!("sections"in i))return new N(i,t);let r=[],n=[],s=[],a=[],o=[];return function e(t,i,r,n,s,a,o,l,p,u,c){let{sections:d}=t;for(let t=0;t<d.length;t++){let{map:h,offset:m}=d[t],f=u,y=c;if(t+1<d.length){let e=d[t+1].offset;(f=Math.min(u,l+e.line))===u?y=Math.min(c,p+e.column):f<u&&(y=p+e.column)}!function(t,i,r,n,s,a,o,l,p,u,c){let d=v(t);if("sections"in d)return e(...arguments);let h=new N(d,i),m=n.length,f=a.length,y=F(h),{resolvedSources:g,sourcesContent:T,ignoreList:b}=h;if(C(n,g),C(a,h.names),T)C(s,T);else for(let e=0;e<g.length;e++)s.push(null);if(b)for(let e=0;e<b.length;e++)o.push(b[e]+m);for(let e=0;e<y.length;e++){let t=l+e;if(t>u)return;let i=function(e,t){for(let i=e.length;i<=t;i++)e[i]=[];return e[t]}(r,t),n=0===e?p:0,s=y[e];for(let e=0;e<s.length;e++){let r=s[e],a=n+r[0];if(t===u&&a>=c)return;if(1===r.length){i.push([a]);continue}let o=m+r[1],l=r[2],p=r[3];i.push(4===r.length?[a,o,l,p]:[a,o,l,p,f+r[4]])}}}(h,i,r,n,s,a,o,l+m.line,p+m.column,f,y)}}(i,t,r,n,s,a,o,0,0,1/0,1/0),q({version:3,file:i.file,names:a,sources:n,sourcesContent:s,mappings:r,ignoreList:o})};function C(e,t){for(let i=0;i<t.length;i++)e.push(t[i])}var w="`line` must be greater than 0 (lines start at line 1)",_="`column` must be greater than or equal to 0 (columns start at column 0)",I=-1,k=1,N=class{constructor(e,t){let i,r,n="string"==typeof e;if(!n&&e._decodedMemo)return e;let s=v(e),{version:a,file:o,names:l,sourceRoot:p,sources:u,sourcesContent:c}=s;this.version=a,this.file=o,this.names=l||[],this.sourceRoot=p,this.sources=u,this.sourcesContent=c,this.ignoreList=s.ignoreList||s.x_google_ignoreList||void 0;let d=(i=function(e){if(!e)return"";let t=e.lastIndexOf("/");return e.slice(0,t+1)}(t),r=p?p+"/":"",e=>(0,T.default)(r+(e||""),i));this.resolvedSources=u.map(d);let{mappings:h}=s;if("string"==typeof h)this._encoded=h,this._decoded=void 0;else if(Array.isArray(h))this._encoded=void 0,this._decoded=function(e,t){let i=b(e,0);if(i===e.length)return e;t||(e=e.slice());for(let n=i;n<e.length;n=b(e,n+1)){var r;e[n]=(r=e[n],t||(r=r.slice()),r.sort(x))}return e}(h,n);else if(s.sections)throw Error("TraceMap passed sectioned source map, please use FlattenMap export instead");else throw Error(`invalid source map: ${JSON.stringify(s)}`);this._decodedMemo=P(),this._bySources=void 0,this._bySourceMemos=void 0}};function O(e){var t;return null!=(t=e._encoded)?t:e._encoded=(0,g.encode)(e._decoded)}function F(e){return e._decoded||(e._decoded=(0,g.decode)(e._encoded))}function L(e,t,i){let r=F(e);if(t>=r.length)return null;let n=r[t],s=Y(n,e._decodedMemo,t,i,k);return -1===s?null:n[s]}function M(e,t){let{line:i,column:r,bias:n}=t;if(--i<0)throw Error(w);if(r<0)throw Error(_);let s=F(e);if(i>=s.length)return z(null,null,null,null);let a=s[i],o=Y(a,e._decodedMemo,i,r,n||k);if(-1===o)return z(null,null,null,null);let l=a[o];if(1===l.length)return z(null,null,null,null);let{names:p,resolvedSources:u}=e;return z(u[l[1]],l[2]+1,l[3],5===l.length?p[l[4]]:null)}function B(e,t){let{source:i,line:r,column:n,bias:s}=t;return Q(e,i,r,n,s||k,!1)}function j(e,t){let{source:i,line:r,column:n,bias:s}=t;return Q(e,i,r,n,s||I,!0)}function R(e,t){let i=F(e),{names:r,resolvedSources:n}=e;for(let e=0;e<i.length;e++){let s=i[e];for(let i=0;i<s.length;i++){let a=s[i],o=e+1,l=a[0],p=null,u=null,c=null,d=null;1!==a.length&&(p=n[a[1]],u=a[2]+1,c=a[3]),5===a.length&&(d=r[a[4]]),t({generatedLine:o,generatedColumn:l,source:p,originalLine:u,originalColumn:c,name:d})}}}function U(e,t){let{sources:i,resolvedSources:r}=e,n=i.indexOf(t);return -1===n&&(n=r.indexOf(t)),n}function V(e,t){let{sourcesContent:i}=e;if(null==i)return null;let r=U(e,t);return -1===r?null:i[r]}function K(e,t){let{ignoreList:i}=e;if(null==i)return!1;let r=U(e,t);return -1!==r&&i.includes(r)}function q(e,t){let i=new N(X(e,[]),t);return i._decoded=e.mappings,i}function $(e){return X(e,F(e))}function W(e){return X(e,O(e))}function X(e,t){return{version:e.version,file:e.file,names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,mappings:t,ignoreList:e.ignoreList||e.x_google_ignoreList}}function z(e,t,i,r){return{source:e,line:t,column:i,name:r}}function J(e,t){return{line:e,column:t}}function Y(e,t,i,r,n){let s=function(e,t,i,r){let{lastKey:n,lastNeedle:s,lastIndex:a}=i,o=0,l=e.length-1;if(r===n){if(t===s)return S=-1!==a&&e[a][0]===t,a;t>=s?o=-1===a?0:a:l=a}return i.lastKey=r,i.lastNeedle=t,i.lastIndex=function(e,t,i,r){for(;i<=r;){let n=i+(r-i>>1),s=e[n][0]-t;if(0===s)return S=!0,n;s<0?i=n+1:r=n-1}return S=!1,i-1}(e,t,o,l)}(e,r,t,i);return(S?s=(n===I?E:A)(e,r,s):n===I&&s++,-1===s||s===e.length)?-1:s}function Q(e,t,i,r,n,s){if(--i<0)throw Error(w);if(r<0)throw Error(_);let{sources:a,resolvedSources:o}=e,l=a.indexOf(t);if(-1===l&&(l=o.indexOf(t)),-1===l)return s?[]:J(null,null);let p=e._bySourceMemos||(e._bySourceMemos=a.map(P)),u=(e._bySources||(e._bySources=function(e,t){let i=t.map(()=>[]);for(let t=0;t<e.length;t++){let r=e[t];for(let e=0;e<r.length;e++){let n=r[e];if(1===n.length)continue;let s=n[1],a=n[2],o=n[3],l=i[s];(l[a]||(l[a]=[])).push([o,t,n[0]])}}for(let e=0;e<i.length;e++){let t=i[e];for(let e=0;e<t.length;e++){let i=t[e];i&&i.sort(x)}}return i}(F(e),p)))[l][i];if(null==u)return s?[]:J(null,null);let c=p[l];if(s)return function(e,t,i,r,n){let s=Y(e,t,i,r,k);if(!S&&n===I&&s++,-1===s||s===e.length)return[];let a=S?r:e[s][0];S||(s=A(e,a,s));let o=E(e,a,s),l=[];for(;s<=o;s++){let t=e[s];l.push(J(t[1]+1,t[2]))}return l}(u,c,i,r,n);let d=Y(u,c,i,r,n);if(-1===d)return J(null,null);let h=u[d];return J(h[1]+1,h[2])}})(e=i.nmd(e),i(98079),i(14017)),e.exports="default"in(r=e).exports?r.exports.default:r.exports},96230(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.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,t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!!(e[3]||e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}},18398(e){let t={},i=t.hasOwnProperty,r=(e,t)=>{for(let r in e)i.call(e,r)&&t(r,e[r])},n=e=>"\\u"+("0000"+e).slice(-4),s=(e,t)=>{let i=e.toString(16);return t?i:i.toUpperCase()},a=t.toString,o=Array.isArray,l={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},p=/[\\\b\f\n\r\t]/,u=/[0-9]/,c=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,d=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,h=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,m=(e,t)=>{let i,f,y=()=>{A=E,++t.indentLevel,E=t.indent.repeat(t.indentLevel)},g={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},T=t&&t.json;T&&(g.quotes="double",g.wrap=!0),"single"!=(!(O=t)||r(O,(e,t)=>{g[e]=t}),t=g).quotes&&"double"!=t.quotes&&"backtick"!=t.quotes&&(t.quotes="single");let b="double"==t.quotes?'"':"backtick"==t.quotes?"`":"'",x=t.compact,S=t.lowercaseHex,E=t.indent.repeat(t.indentLevel),A="",P=t.__inline1__,v=t.__inline2__,D=x?"":"\n",C=!0,w="binary"==t.numbers,_="octal"==t.numbers,I="decimal"==t.numbers,k="hexadecimal"==t.numbers;if(T&&e&&"function"==typeof e.toJSON&&(e=e.toJSON()),"string"!=typeof(f=e)&&"[object String]"!=a.call(f)){let n,s,l,p;if(n=e,"[object Map]"==a.call(n))return 0==e.size?"new Map()":(x||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+m(Array.from(e),t)+")");if(s=e,"[object Set]"==a.call(s))return 0==e.size?"new Set()":"new Set("+m(Array.from(e),t)+")";if(l=e,"function"==typeof Buffer&&Buffer.isBuffer(l))return 0==e.length?"Buffer.from([])":"Buffer.from("+m(Array.from(e),t)+")";if(o(e)){i=[],t.wrap=!0,P&&(t.__inline1__=!1,t.__inline2__=!0),v||y();var N,O,F=e;let r=F.length,n=-1;for(;++n<r;){N=F[n],C=!1,v&&(t.__inline2__=!1),i.push((x||v?"":E)+m(N,t))}return C?"[]":v?"["+i.join(", ")+"]":"["+D+i.join(","+D)+D+(x?"":A)+"]"}if("number"==typeof(p=e)||"[object Number]"==a.call(p)||"bigint"==typeof e){let t;if(T)return JSON.stringify(Number(e));if(I)t=String(e);else if(k){let i=e.toString(16);S||(i=i.toUpperCase()),t="0x"+i}else w?t="0b"+e.toString(2):_&&(t="0o"+e.toString(8));return"bigint"==typeof e?t+"n":t}{let n;if("bigint"==typeof e)return T?JSON.stringify(Number(e)):e+"n";return(n=e,"[object Object]"==a.call(n))?(i=[],t.wrap=!0,y(),r(e,(e,r)=>{C=!1,i.push((x?"":E)+m(e,t)+":"+(x?"":" ")+m(r,t))}),C)?"{}":"{"+D+i.join(","+D)+D+(x?"":A)+"}":T?JSON.stringify(e)||"null":String(e)}}let L=t.escapeEverything?d:h;return i=e.replace(L,(e,i,r,a,o,d)=>{if(i){if(t.minimal)return i;let e=i.charCodeAt(0),r=i.charCodeAt(1);return t.es6?"\\u{"+s((e-55296)*1024+r-56320+65536,S)+"}":n(s(e,S))+n(s(r,S))}if(r)return n(s(r.charCodeAt(0),S));if("\0"==e&&!T&&!u.test(d.charAt(o+1)))return"\\0";if(a)return a==b||t.escapeEverything?"\\"+a:a;if(p.test(e))return l[e];if(t.minimal&&!c.test(e))return e;let h=s(e.charCodeAt(0),S);return T||h.length>2?n(h):"\\x"+("00"+h).slice(-2)}),"`"==b&&(i=i.replace(/\$\{/g,"\\${")),t.isScriptContext&&(i=i.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,T?"\\u003C!--":"\\x3C!--")),t.wrap&&(i=b+i+b),i};m.version="3.0.2",e.exports=m},92062(e){let t=process||{},i=t.argv||[],r=t.env||{},n=!(r.NO_COLOR||i.includes("--no-color"))&&(!!r.FORCE_COLOR||i.includes("--color")||"win32"===t.platform||(t.stdout||{}).isTTY&&"dumb"!==r.TERM||!!r.CI),s=(e,t,i=e)=>r=>{let n=""+r,s=n.indexOf(t,e.length);return~s?e+a(n,t,i,s)+t:e+n+t},a=(e,t,i,r)=>{let n="",s=0;do n+=e.substring(s,r)+i,s=r+t.length,r=e.indexOf(t,s);while(~r);return n+e.substring(s)},o=(e=n)=>{let t=e?s:()=>String;return{isColorSupported:e,reset:t("\x1b[0m","\x1b[0m"),bold:t("\x1b[1m","\x1b[22m","\x1b[22m\x1b[1m"),dim:t("\x1b[2m","\x1b[22m","\x1b[22m\x1b[2m"),italic:t("\x1b[3m","\x1b[23m"),underline:t("\x1b[4m","\x1b[24m"),inverse:t("\x1b[7m","\x1b[27m"),hidden:t("\x1b[8m","\x1b[28m"),strikethrough:t("\x1b[9m","\x1b[29m"),black:t("\x1b[30m","\x1b[39m"),red:t("\x1b[31m","\x1b[39m"),green:t("\x1b[32m","\x1b[39m"),yellow:t("\x1b[33m","\x1b[39m"),blue:t("\x1b[34m","\x1b[39m"),magenta:t("\x1b[35m","\x1b[39m"),cyan:t("\x1b[36m","\x1b[39m"),white:t("\x1b[37m","\x1b[39m"),gray:t("\x1b[90m","\x1b[39m"),bgBlack:t("\x1b[40m","\x1b[49m"),bgRed:t("\x1b[41m","\x1b[49m"),bgGreen:t("\x1b[42m","\x1b[49m"),bgYellow:t("\x1b[43m","\x1b[49m"),bgBlue:t("\x1b[44m","\x1b[49m"),bgMagenta:t("\x1b[45m","\x1b[49m"),bgCyan:t("\x1b[46m","\x1b[49m"),bgWhite:t("\x1b[47m","\x1b[49m"),blackBright:t("\x1b[90m","\x1b[39m"),redBright:t("\x1b[91m","\x1b[39m"),greenBright:t("\x1b[92m","\x1b[39m"),yellowBright:t("\x1b[93m","\x1b[39m"),blueBright:t("\x1b[94m","\x1b[39m"),magentaBright:t("\x1b[95m","\x1b[39m"),cyanBright:t("\x1b[96m","\x1b[39m"),whiteBright:t("\x1b[97m","\x1b[39m"),bgBlackBright:t("\x1b[100m","\x1b[49m"),bgRedBright:t("\x1b[101m","\x1b[49m"),bgGreenBright:t("\x1b[102m","\x1b[49m"),bgYellowBright:t("\x1b[103m","\x1b[49m"),bgBlueBright:t("\x1b[104m","\x1b[49m"),bgMagentaBright:t("\x1b[105m","\x1b[49m"),bgCyanBright:t("\x1b[106m","\x1b[49m"),bgWhiteBright:t("\x1b[107m","\x1b[49m")}};e.exports=o(),e.exports.createColors=o},56611(e,t,i){let r;Object.defineProperty(t,"__esModule",{value:!0});var n=i(92062),s=i(96230),a=i(14007);let o=(e,t)=>i=>e(t(i));function l(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:o(o(e.white,e.bgRed),e.bold),gutter:e.gray,marker:o(e.red,e.bold),message:o(e.red,e.bold),reset:e.reset}}let p=l(n.createColors(!0)),u=l(n.createColors(!1)),c=new Set(["as","async","from","get","of","set"]),d=/\r\n|[\n\r\u2028\u2029]/,h=/^[()[\]{}]$/;{let e=/^[a-z][\w-]*$/i,t=function(t,i,r){if("name"===t.type){if(a.isKeyword(t.value)||a.isStrictReservedWord(t.value,!0)||c.has(t.value))return"keyword";if(e.test(t.value)&&("<"===r[i-1]||"</"===r.slice(i-2,i)))return"jsxIdentifier";if(t.value[0]!==t.value[0].toLowerCase())return"capitalized"}return"punctuator"===t.type&&h.test(t.value)?"bracket":"invalid"===t.type&&("@"===t.value||"#"===t.value)?"punctuator":t.type};r=function*(e){let i;for(;i=s.default.exec(e);){let r=s.matchToToken(i);yield{type:t(r,i.index,e),value:r.value}}}}function m(e){if(""===e)return"";let t="";for(let{type:i,value:n}of r(e))i in p?t+=n.split(d).map(e=>p[i](e)).join("\n"):t+=n;return t}let f=!1,y=/\r\n|[\n\r\u2028\u2029]/;function g(e,t,i={}){let r=i.forceColor||("object"!=typeof process||"0"!==process.env.FORCE_COLOR&&"false"!==process.env.FORCE_COLOR)&&n.isColorSupported&&i.highlightCode,s=r?p:u,{start:a,end:o,markerLines:l}=function(e,t,i){let r=Object.assign({column:0,line:-1},e.start),n=Object.assign({},r,e.end),{linesAbove:s=2,linesBelow:a=3}=i||{},o=r.line,l=r.column,p=n.line,u=n.column,c=Math.max(o-(s+1),0),d=Math.min(t.length,p+a);-1===o&&(c=0),-1===p&&(d=t.length);let h=p-o,m={};if(h)for(let e=0;e<=h;e++){let i=e+o;if(l)if(0===e){let e=t[i-1].length;m[i]=[l,e-l+1]}else if(e===h)m[i]=[0,u];else{let r=t[i-e].length;m[i]=[0,r]}else m[i]=!0}else l===u?l?m[o]=[l,0]:m[o]=!0:m[o]=[l,u-l];return{start:c,end:d,markerLines:m}}(t,e.split(y),i),c=t.start&&"number"==typeof t.start.column,d=String(o).length,h=(r?m(e):e).split(y,o).slice(a,o).map((e,t)=>{let r=a+1+t,n=` ${r}`.slice(-d),o=` ${n} |`,p=l[r],u=!l[r+1];if(!p)return` ${s.gutter(o)}${e.length>0?` ${e}`:""}`;{let t="";if(Array.isArray(p)){let r=e.slice(0,Math.max(p[0]-1,0)).replace(/[^\t]/g," "),n=p[1]||1;t=["\n ",s.gutter(o.replace(/\d/g," "))," ",r,s.marker("^").repeat(n)].join(""),u&&i.message&&(t+=" "+s.message(i.message))}return[s.marker(">"),s.gutter(o),e.length>0?` ${e}`:"",t].join("")}}).join("\n");return(i.message&&!c&&(h=`${" ".repeat(d+1)}${i.message}
2
+ ${h}`),r)?s.reset(h):h}t.codeFrameColumns=g,t.default=function(e,t,i,r={}){if(!f){f=!0;let e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";process.emitWarning?process.emitWarning(e,"DeprecationWarning"):(Error(e).name="DeprecationWarning",console.warn(Error(e)))}return g(e,{start:{column:i=Math.max(i,0),line:t}},r)},t.highlight=m},96405(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=class{constructor(e,t){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._queue=[],this._queueCursor=0,this._canMarkIdName=!0,this._indentChar="",this._fastIndentations=[],this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=e,this._indentChar=t;for(let e=0;e<64;e++)this._fastIndentations.push(t.repeat(e));this._allocQueue()}_allocQueue(){let e=this._queue;for(let t=0;t<16;t++)e.push({char:0,repeat:1,line:void 0,column:void 0,identifierName:void 0,identifierNamePos:void 0,filename:""})}_pushQueue(e,t,i,r,n){let s=this._queueCursor;s===this._queue.length&&this._allocQueue();let a=this._queue[s];a.char=e,a.repeat=t,a.line=i,a.column=r,a.filename=n,this._queueCursor++}_popQueue(){if(0===this._queueCursor)throw Error("Cannot pop from empty queue");return this._queue[--this._queueCursor]}get(){this._flush();let e=this._map,t={code:(this._buf+this._str).trimRight(),decodedMap:null==e?void 0:e.getDecoded(),get __mergedMap(){return this.map},get map(){let i=e?e.get():null;return t.map=i,i},set map(value){Object.defineProperty(t,"map",{value,writable:!0})},get rawMappings(){let i=null==e?void 0:e.getRawMappings();return t.rawMappings=i,i},set rawMappings(value){Object.defineProperty(t,"rawMappings",{value,writable:!0})}};return t}append(e,t){this._flush(),this._append(e,this._sourcePosition,t)}appendChar(e){this._flush(),this._appendChar(e,1,this._sourcePosition)}queue(e){if(10===e)for(;0!==this._queueCursor;){let e=this._queue[this._queueCursor-1].char;if(32!==e&&9!==e)break;this._queueCursor--}let t=this._sourcePosition;this._pushQueue(e,1,t.line,t.column,t.filename)}queueIndentation(e){0!==e&&this._pushQueue(-1,e,void 0,void 0,void 0)}_flush(){let e=this._queueCursor,t=this._queue;for(let i=0;i<e;i++){let e=t[i];this._appendChar(e.char,e.repeat,e)}this._queueCursor=0}_appendChar(e,t,i){if(this._last=e,-1===e){let e=this._fastIndentations[t];void 0!==e?this._str+=e:this._str+=t>1?this._indentChar.repeat(t):this._indentChar}else this._str+=t>1?String.fromCharCode(e).repeat(t):String.fromCharCode(e);10!==e?(this._mark(i.line,i.column,i.identifierName,i.identifierNamePos,i.filename),this._position.column+=t):(this._position.line++,this._position.column=0),this._canMarkIdName&&(i.identifierName=void 0,i.identifierNamePos=void 0)}_append(e,t,i){let r=e.length,n=this._position;if(this._last=e.charCodeAt(r-1),++this._appendCount>4096?(this._str,this._buf+=this._str,this._str=e,this._appendCount=0):this._str+=e,!i&&!this._map){n.column+=r;return}let{column:s,identifierName:a,identifierNamePos:o,filename:l}=t,p=t.line;(null!=a||null!=o)&&this._canMarkIdName&&(t.identifierName=void 0,t.identifierNamePos=void 0);let u=e.indexOf("\n"),c=0;for(0!==u&&this._mark(p,s,a,o,l);-1!==u;)n.line++,n.column=0,(c=u+1)<r&&void 0!==p&&this._mark(++p,0,void 0,void 0,l),u=e.indexOf("\n",c);n.column+=r-c}_mark(e,t,i,r,n){var s;null==(s=this._map)||s.mark(this._position,e,t,i,r,n)}removeTrailingNewline(){let e=this._queueCursor;0!==e&&10===this._queue[e-1].char&&this._queueCursor--}removeLastSemicolon(){let e=this._queueCursor;0!==e&&59===this._queue[e-1].char&&this._queueCursor--}getLastChar(){let e=this._queueCursor;return 0!==e?this._queue[e-1].char:this._last}getNewlineCount(){let e=this._queueCursor,t=0;if(0===e)return+(10===this._last);for(let i=e-1;i>=0&&10===this._queue[i].char;i--)t++;return t===e&&10===this._last?t+1:t}endsWithCharAndNewline(){let e=this._queue,t=this._queueCursor;if(0!==t)return 10!==e[t-1].char?void 0:t>1?e[t-2].char:this._last}hasContent(){return 0!==this._queueCursor||!!this._last}exactSource(e,t){if(!this._map)return void t();this.source("start",e);let i=e.identifierName,r=this._sourcePosition;i&&(this._canMarkIdName=!1,r.identifierName=i),t(),i&&(this._canMarkIdName=!0,r.identifierName=void 0,r.identifierNamePos=void 0),this.source("end",e)}source(e,t){this._map&&this._normalizePosition(e,t,0)}sourceWithOffset(e,t,i){this._map&&this._normalizePosition(e,t,i)}_normalizePosition(e,t,i){let r=t[e],n=this._sourcePosition;r&&(n.line=r.line,n.column=Math.max(r.column+i,0),n.filename=t.filename)}getCurrentColumn(){let e=this._queue,t=this._queueCursor,i=-1,r=0;for(let n=0;n<t;n++){let t=e[n];10===t.char&&(i=r),r+=t.repeat}return -1===i?this._position.column+r:r-1-i}getCurrentLine(){let e=0,t=this._queue;for(let i=0;i<this._queueCursor;i++)10===t[i].char&&e++;return this._position.line+e}}},22005(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.BlockStatement=function(e){var t,i;this.tokenChar(123);let r=this.enterDelimited(),n=null==(t=e.directives)?void 0:t.length;if(n){let t=e.body.length?2:1;this.printSequence(e.directives,!0,t),null!=(i=e.directives[n-1].trailingComments)&&i.length||this.newline(t)}this.printSequence(e.body,!0),r(),this.rightBrace(e)},t.Directive=function(e){this.print(e.value),this.semicolon()},t.DirectiveLiteral=function(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==t)return void this.token(t);let{value:n}=e;if(r.test(n))if(i.test(n))throw Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.");else this.token(`'${n}'`);else this.token(`"${n}"`)},t.File=function(e){e.program&&this.print(e.program.interpreter),this.print(e.program)},t.InterpreterDirective=function(e){this.token(`#!${e.value}`),this.newline(1,!0)},t.Placeholder=function(e){this.token("%%"),this.print(e.name),this.token("%%"),"Statement"===e.expectedNode&&this.semicolon()},t.Program=function(e){var t,i;this.noIndentInnerCommentsHere(),this.printInnerComments();let r=null==(t=e.directives)?void 0:t.length;if(r){let t=e.body.length?2:1;this.printSequence(e.directives,void 0,t),null!=(i=e.directives[r-1].trailingComments)&&i.length||this.newline(t)}this.printSequence(e.body)};let i=/(?:^|[^\\])(?:\\\\)*'/,r=/(?:^|[^\\])(?:\\\\)*"/},19534(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.ClassAccessorProperty=function(e){var t;this.printJoin(e.decorators);let i=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;i&&this.catchUp(i),this.tsPrintClassMemberModifiers(e),this.word("accessor",!0),this.space(),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(this._variance(e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()},t.ClassBody=function(e){if(this.tokenChar(123),0===e.body.length)this.tokenChar(125);else{this.newline();let t=function(e,t){if(!e.tokenMap||null==t.start||null==t.end)return null;let i=e.tokenMap.getIndexes(t);if(!i)return null;let r=1,n=0,s=0,a=()=>{for(;s<t.body.length&&null==t.body[s].start;)s++};return a(),o=>{let l;s<=o&&(s=o+1,a());let p=s===t.body.length?t.end:t.body[s].start;for(;r<i.length&&e.tokenMap.matchesOriginal(l=e._tokens[i[r]],";")&&l.start<p;)e.token(";",void 0,n++),r++}}(this,e);null==t||t(-1);let i=this.enterDelimited();this.printJoin(e.body,!0,!0,t,!0),i(),this.endsWith(10)||this.newline(),this.rightBrace(e)}},t.ClassExpression=t.ClassDeclaration=function(e,t){(r(t)||n(t))&&this._shouldPrintDecoratorsBeforeExport(t)||this.printJoin(e.decorators),e.declare&&(this.word("declare"),this.space()),e.abstract&&(this.word("abstract"),this.space()),this.word("class"),e.id&&(this.space(),this.print(e.id)),this.print(e.typeParameters),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass),this.print(e.superTypeParameters)),e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements)),this.space(),this.print(e.body)},t.ClassMethod=function(e){this._classMethodHead(e),this.space(),this.print(e.body)},t.ClassPrivateMethod=function(e){this._classMethodHead(e),this.space(),this.print(e.body)},t.ClassPrivateProperty=function(e){this.printJoin(e.decorators),this.tsPrintClassMemberModifiers(e),this.print(e.key),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()},t.ClassProperty=function(e){if(this.printJoin(e.decorators),!e.static&&!this.format.preserveFormat){var t;let i=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;i&&this.catchUp(i)}this.tsPrintClassMemberModifiers(e),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(this._variance(e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()},t.StaticBlock=function(e){this.word("static"),this.space(),this.tokenChar(123),0===e.body.length?this.tokenChar(125):(this.newline(),this.printSequence(e.body,!0),this.rightBrace(e))},t._classMethodHead=function(e){if(this.printJoin(e.decorators),!this.format.preserveFormat){var t;let i=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;i&&this.catchUp(i)}this.tsPrintClassMemberModifiers(e),this._methodHead(e)};let{isExportDefaultDeclaration:r,isExportNamedDeclaration:n}=i(58135)},58121(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.addDeprecatedGenerators=function(e){Object.assign(e.prototype,{Noop(){},TSExpressionWithTypeArguments(e){this.print(e.expression),this.print(e.typeParameters)},DecimalLiteral(e){let t=this.getPossibleRaw(e);this.format.minified||void 0===t?this.word(e.value+"m"):this.word(t)}})}},6385(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.LogicalExpression=t.BinaryExpression=t.AssignmentExpression=function(e){this.print(e.left),this.space(),"in"===e.operator||"instanceof"===e.operator?this.word(e.operator):(this.token(e.operator),this._endsWithDiv="/"===e.operator),this.space(),this.print(e.right)},t.AssignmentPattern=function(e){this.print(e.left),("Identifier"===e.left.type||p(e.left))&&(e.left.optional&&this.tokenChar(63),this.print(e.left.typeAnnotation)),this.space(),this.tokenChar(61),this.space(),this.print(e.right)},t.AwaitExpression=function(e){this.word("await"),this.space(),this.print(e.argument)},t.BindExpression=function(e){this.print(e.object),this.token("::"),this.print(e.callee)},t.CallExpression=function(e){this.print(e.callee),this.print(e.typeArguments),this.print(e.typeParameters),this.tokenChar(40);let t=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")")),t(),this.rightParens(e)},t.ConditionalExpression=function(e){this.print(e.test),this.space(),this.tokenChar(63),this.space(),this.print(e.consequent),this.space(),this.tokenChar(58),this.space(),this.print(e.alternate)},t.Decorator=function(e){this.tokenChar(64),this.print(e.expression),this.newline()},t.DoExpression=function(e){e.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(e.body)},t.EmptyStatement=function(){this.semicolon(!0)},t.ExpressionStatement=function(e){this.tokenContext|=n.TokenContext.expressionStatement,this.print(e.expression),this.semicolon()},t.Import=function(){this.word("import")},t.MemberExpression=function(e){if(this.print(e.object),!e.computed&&o(e.property))throw TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;if(a(e.property)&&"number"==typeof e.property.value&&(t=!0),t){let t=this.enterDelimited();this.tokenChar(91),this.print(e.property),this.tokenChar(93),t()}else this.tokenChar(46),this.print(e.property)},t.MetaProperty=function(e){this.print(e.meta),this.tokenChar(46),this.print(e.property)},t.ModuleExpression=function(e){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();let{body:t}=e;(t.body.length||t.directives.length)&&this.newline(),this.print(t),this.dedent(),this.rightBrace(e)},t.NewExpression=function(e,t){if(this.word("new"),this.space(),this.print(e.callee),this.format.minified&&0===e.arguments.length&&!e.optional&&!s(t,{callee:e})&&!o(t)&&!l(t)||(this.print(e.typeArguments),this.print(e.typeParameters),e.optional&&this.token("?."),0===e.arguments.length&&this.tokenMap&&!this.tokenMap.endMatches(e,")")))return;this.tokenChar(40);let i=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")")),i(),this.rightParens(e)},t.OptionalCallExpression=function(e){this.print(e.callee),this.print(e.typeParameters),e.optional&&this.token("?."),this.print(e.typeArguments),this.tokenChar(40);let t=this.enterDelimited();this.printList(e.arguments),t(),this.rightParens(e)},t.OptionalMemberExpression=function(e){let{computed:t}=e,{optional:i,property:r}=e;if(this.print(e.object),!t&&o(r))throw TypeError("Got a MemberExpression for MemberExpression property");a(r)&&"number"==typeof r.value&&(t=!0),i&&this.token("?."),t?(this.tokenChar(91),this.print(r),this.tokenChar(93)):(i||this.tokenChar(46),this.print(r))},t.ParenthesizedExpression=function(e){this.tokenChar(40);let t=this.enterDelimited();this.print(e.expression),t(),this.rightParens(e)},t.PrivateName=function(e){this.tokenChar(35),this.print(e.id)},t.SequenceExpression=function(e){this.printList(e.expressions)},t.Super=function(){this.word("super")},t.ThisExpression=function(){this.word("this")},t.UnaryExpression=function(e){let{operator:t}=e;"void"===t||"delete"===t||"typeof"===t||"throw"===t?(this.word(t),this.space()):this.token(t),this.print(e.argument)},t.UpdateExpression=function(e){e.prefix?(this.token(e.operator),this.print(e.argument)):(this.print(e.argument,!0),this.token(e.operator))},t.V8IntrinsicIdentifier=function(e){this.tokenChar(37),this.word(e.name)},t.YieldExpression=function(e){e.delegate?(this.word("yield",!0),this.tokenChar(42),e.argument&&(this.space(),this.print(e.argument))):e.argument?(this.word("yield",!0),this.space(),this.print(e.argument)):this.word("yield")},t._shouldPrintDecoratorsBeforeExport=function(e){return"boolean"==typeof this.format.decoratorsBeforeExport?this.format.decoratorsBeforeExport:"number"==typeof e.start&&e.start===e.declaration.start};var r=i(58135),n=i(21956);let{isCallExpression:s,isLiteral:a,isMemberExpression:o,isNewExpression:l,isPattern:p}=r},93464(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.AnyTypeAnnotation=function(){this.word("any")},t.ArrayTypeAnnotation=function(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)},t.BooleanLiteralTypeAnnotation=function(e){this.word(e.value?"true":"false")},t.BooleanTypeAnnotation=function(){this.word("boolean")},t.DeclareClass=function(e,t){o(t)||(this.word("declare"),this.space()),this.word("class"),this.space(),this._interfaceish(e)},t.DeclareExportAllDeclaration=function(e){this.word("declare"),this.space(),n.ExportAllDeclaration.call(this,e)},t.DeclareExportDeclaration=function(e){this.word("declare"),this.space(),this.word("export"),this.space(),e.default&&(this.word("default"),this.space()),d.call(this,e)},t.DeclareFunction=function(e,t){o(t)||(this.word("declare"),this.space()),this.word("function"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation.typeAnnotation),e.predicate&&(this.space(),this.print(e.predicate)),this.semicolon()},t.DeclareInterface=function(e){this.word("declare"),this.space(),this.InterfaceDeclaration(e)},t.DeclareModule=function(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id),this.space(),this.print(e.body)},t.DeclareModuleExports=function(e){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(e.typeAnnotation)},t.DeclareOpaqueType=function(e,t){o(t)||(this.word("declare"),this.space()),this.OpaqueType(e)},t.DeclareTypeAlias=function(e){this.word("declare"),this.space(),this.TypeAlias(e)},t.DeclareVariable=function(e,t){o(t)||(this.word("declare"),this.space()),this.word("var"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation),this.semicolon()},t.DeclaredPredicate=function(e){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(e.value),this.tokenChar(41)},t.EmptyTypeAnnotation=function(){this.word("empty")},t.EnumBooleanBody=function(e){let{explicitType:t}=e;p(this,"boolean",t),u(this,e)},t.EnumBooleanMember=function(e){c(this,e)},t.EnumDeclaration=function(e){let{id:t,body:i}=e;this.word("enum"),this.space(),this.print(t),this.print(i)},t.EnumDefaultedMember=function(e){let{id:t}=e;this.print(t),this.tokenChar(44)},t.EnumNumberBody=function(e){let{explicitType:t}=e;p(this,"number",t),u(this,e)},t.EnumNumberMember=function(e){c(this,e)},t.EnumStringBody=function(e){let{explicitType:t}=e;p(this,"string",t),u(this,e)},t.EnumStringMember=function(e){c(this,e)},t.EnumSymbolBody=function(e){p(this,"symbol",!0),u(this,e)},t.ExistsTypeAnnotation=function(){this.tokenChar(42)},t.FunctionTypeAnnotation=function(e,t){this.print(e.typeParameters),this.tokenChar(40),e.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(e.this.typeAnnotation),(e.params.length||e.rest)&&(this.tokenChar(44),this.space())),this.printList(e.params),e.rest&&(e.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(e.rest)),this.tokenChar(41);let i=null==t?void 0:t.type;null!=i&&("ObjectTypeCallProperty"===i||"ObjectTypeInternalSlot"===i||"DeclareFunction"===i||"ObjectTypeProperty"===i&&t.method)?this.tokenChar(58):(this.space(),this.token("=>")),this.space(),this.print(e.returnType)},t.FunctionTypeParam=function(e){this.print(e.name),e.optional&&this.tokenChar(63),e.name&&(this.tokenChar(58),this.space()),this.print(e.typeAnnotation)},t.IndexedAccessType=function(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},t.InferredPredicate=function(){this.tokenChar(37),this.word("checks")},t.InterfaceDeclaration=function(e){this.word("interface"),this.space(),this._interfaceish(e)},t.GenericTypeAnnotation=t.ClassImplements=t.InterfaceExtends=function(e){this.print(e.id),this.print(e.typeParameters,!0)},t.InterfaceTypeAnnotation=function(e){var t;this.word("interface"),null!=(t=e.extends)&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),this.space(),this.print(e.body)},t.IntersectionTypeAnnotation=function(e){this.printJoin(e.types,void 0,void 0,h)},t.MixedTypeAnnotation=function(){this.word("mixed")},t.NullLiteralTypeAnnotation=function(){this.word("null")},t.NullableTypeAnnotation=function(e){this.tokenChar(63),this.print(e.typeAnnotation)},Object.defineProperty(t,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return a.NumericLiteral}}),t.NumberTypeAnnotation=function(){this.word("number")},t.ObjectTypeAnnotation=function(e){e.exact?this.token("{|"):this.tokenChar(123);let t=[...e.properties,...e.callProperties||[],...e.indexers||[],...e.internalSlots||[]];t.length&&(this.newline(),this.space(),this.printJoin(t,!0,!0,void 0,void 0,()=>{(1!==t.length||e.inexact)&&(this.tokenChar(44),this.space())}),this.space()),e.inexact&&(this.indent(),this.token("..."),t.length&&this.newline(),this.dedent()),e.exact?this.token("|}"):this.tokenChar(125)},t.ObjectTypeCallProperty=function(e){e.static&&(this.word("static"),this.space()),this.print(e.value)},t.ObjectTypeIndexer=function(e){e.static&&(this.word("static"),this.space()),this._variance(e),this.tokenChar(91),e.id&&(this.print(e.id),this.tokenChar(58),this.space()),this.print(e.key),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(e.value)},t.ObjectTypeInternalSlot=function(e){e.static&&(this.word("static"),this.space()),this.tokenChar(91),this.tokenChar(91),this.print(e.id),this.tokenChar(93),this.tokenChar(93),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value)},t.ObjectTypeProperty=function(e){e.proto&&(this.word("proto"),this.space()),e.static&&(this.word("static"),this.space()),("get"===e.kind||"set"===e.kind)&&(this.word(e.kind),this.space()),this._variance(e),this.print(e.key),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value)},t.ObjectTypeSpreadProperty=function(e){this.token("..."),this.print(e.argument)},t.OpaqueType=function(e){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),e.supertype&&(this.tokenChar(58),this.space(),this.print(e.supertype)),e.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(e.impltype)),this.semicolon()},t.OptionalIndexedAccessType=function(e){this.print(e.objectType),e.optional&&this.token("?."),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},t.QualifiedTypeIdentifier=function(e){this.print(e.qualification),this.tokenChar(46),this.print(e.id)},Object.defineProperty(t,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return a.StringLiteral}}),t.StringTypeAnnotation=function(){this.word("string")},t.SymbolTypeAnnotation=function(){this.word("symbol")},t.ThisTypeAnnotation=function(){this.word("this")},t.TupleTypeAnnotation=function(e){this.tokenChar(91),this.printList(e.types),this.tokenChar(93)},t.TypeAlias=function(e){this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),this.space(),this.tokenChar(61),this.space(),this.print(e.right),this.semicolon()},t.TypeAnnotation=function(e,t){this.tokenChar(58),this.space(),"ArrowFunctionExpression"===t.type?this.tokenContext|=s.TokenContext.arrowFlowReturnType:e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)},t.TypeCastExpression=function(e){this.tokenChar(40),this.print(e.expression),this.print(e.typeAnnotation),this.tokenChar(41)},t.TypeParameter=function(e){this._variance(e),this.word(e.name),e.bound&&this.print(e.bound),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))},t.TypeParameterDeclaration=t.TypeParameterInstantiation=function(e){this.tokenChar(60),this.printList(e.params),this.tokenChar(62)},t.TypeofTypeAnnotation=function(e){this.word("typeof"),this.space(),this.print(e.argument)},t.UnionTypeAnnotation=function(e){this.printJoin(e.types,void 0,void 0,m)},t.Variance=function(e){"plus"===e.kind?this.tokenChar(43):this.tokenChar(45)},t.VoidTypeAnnotation=function(){this.word("void")},t._interfaceish=function(e){var t,i,r;this.print(e.id),this.print(e.typeParameters),null!=(t=e.extends)&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),"DeclareClass"===e.type&&(null!=(i=e.mixins)&&i.length&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins)),null!=(r=e.implements)&&r.length&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements))),this.space(),this.print(e.body)},t._variance=function(e){var t;let i=null==(t=e.variance)?void 0:t.kind;null!=i&&("plus"===i?this.tokenChar(43):"minus"===i&&this.tokenChar(45))};var r=i(58135),n=i(58231),s=i(21956),a=i(32387);let{isDeclareExportDeclaration:o,isStatement:l}=r;function p(e,t,i){i&&(e.space(),e.word("of"),e.space(),e.word(t)),e.space()}function u(e,t){let{members:i}=t;for(let t of(e.token("{"),e.indent(),e.newline(),i))e.print(t),e.newline();t.hasUnknownMembers&&(e.token("..."),e.newline()),e.dedent(),e.token("}")}function c(e,t){e.print(t.id),e.space(),e.token("="),e.space(),e.print(t.init),e.token(",")}function d(e){if(e.declaration){let t=e.declaration;this.print(t),l(t)||this.semicolon()}else this.tokenChar(123),e.specifiers.length&&(this.space(),this.printList(e.specifiers),this.space()),this.tokenChar(125),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source)),this.semicolon()}function h(e){this.space(),this.token("&",!1,e),this.space()}function m(e){this.space(),this.token("|",!1,e),this.space()}},62798(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(94403);Object.keys(r).forEach(function(e){"default"===e||"__esModule"===e||e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})});var n=i(6385);Object.keys(n).forEach(function(e){"default"===e||"__esModule"===e||e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}})});var s=i(57734);Object.keys(s).forEach(function(e){"default"===e||"__esModule"===e||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})});var a=i(19534);Object.keys(a).forEach(function(e){"default"===e||"__esModule"===e||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})});var o=i(74564);Object.keys(o).forEach(function(e){"default"===e||"__esModule"===e||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var l=i(58231);Object.keys(l).forEach(function(e){"default"===e||"__esModule"===e||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}})});var p=i(32387);Object.keys(p).forEach(function(e){"default"===e||"__esModule"===e||e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}})});var u=i(93464);Object.keys(u).forEach(function(e){"default"===e||"__esModule"===e||e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}})});var c=i(22005);Object.keys(c).forEach(function(e){"default"===e||"__esModule"===e||e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}})});var d=i(25083);Object.keys(d).forEach(function(e){"default"===e||"__esModule"===e||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}})});var h=i(39919);Object.keys(h).forEach(function(e){"default"===e||"__esModule"===e||e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}})})},25083(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.JSXAttribute=function(e){this.print(e.name),e.value&&(this.tokenChar(61),this.print(e.value))},t.JSXClosingElement=function(e){this.tokenChar(60),this.tokenChar(47),this.print(e.name),this.tokenChar(62)},t.JSXClosingFragment=function(){this.token("</"),this.tokenChar(62)},t.JSXElement=function(e){let t=e.openingElement;if(this.print(t),!t.selfClosing){for(let t of(this.indent(),e.children))this.print(t);this.dedent(),this.print(e.closingElement)}},t.JSXEmptyExpression=function(){this.printInnerComments()},t.JSXExpressionContainer=function(e){this.tokenChar(123),this.print(e.expression),this.rightBrace(e)},t.JSXFragment=function(e){for(let t of(this.print(e.openingFragment),this.indent(),e.children))this.print(t);this.dedent(),this.print(e.closingFragment)},t.JSXIdentifier=function(e){this.word(e.name)},t.JSXMemberExpression=function(e){this.print(e.object),this.tokenChar(46),this.print(e.property)},t.JSXNamespacedName=function(e){this.print(e.namespace),this.tokenChar(58),this.print(e.name)},t.JSXOpeningElement=function(e){this.tokenChar(60),this.print(e.name),e.typeArguments&&this.print(e.typeArguments),this.print(e.typeParameters),e.attributes.length>0&&(this.space(),this.printJoin(e.attributes,void 0,void 0,i)),e.selfClosing&&(this.space(),this.tokenChar(47)),this.tokenChar(62)},t.JSXOpeningFragment=function(){this.tokenChar(60),this.tokenChar(62)},t.JSXSpreadAttribute=function(e){this.tokenChar(123),this.token("..."),this.print(e.argument),this.rightBrace(e)},t.JSXSpreadChild=function(e){this.tokenChar(123),this.token("..."),this.print(e.expression),this.rightBrace(e)},t.JSXText=function(e){let t=this.getPossibleRaw(e);void 0!==t?this.token(t,!0):this.token(e.value,!0)};function i(){this.space()}},74564(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowFunctionExpression=function(e,t){e.async&&(this.word("async",!0),this.space()),this._shouldPrintArrowParamsParens(e)?this._params(e,void 0,t):this.print(e.params[0],!0),this._predicate(e,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=n.TokenContext.arrowBody,this.print(e.body)},t.FunctionDeclaration=t.FunctionExpression=function(e,t){this._functionHead(e,t),this.space(),this.print(e.body)},t._functionHead=function(e,t){e.async&&(this.word("async"),this.format.preserveFormat||(this._endsWithInnerRaw=!1),this.space()),this.word("function"),e.generator&&(this.format.preserveFormat||(this._endsWithInnerRaw=!1),this.tokenChar(42)),this.space(),e.id&&this.print(e.id),this._params(e,e.id,t),"TSDeclareFunction"!==e.type&&this._predicate(e)},t._methodHead=function(e){let t=e.kind,i=e.key;("get"===t||"set"===t)&&(this.word(t),this.space()),e.async&&(this.word("async",!0),this.space()),("method"===t||"init"===t)&&e.generator&&this.tokenChar(42),e.computed?(this.tokenChar(91),this.print(i),this.tokenChar(93)):this.print(i),e.optional&&this.tokenChar(63),this._params(e,e.computed&&"StringLiteral"!==e.key.type?void 0:e.key)},t._param=function(e){this.printJoin(e.decorators),this.print(e),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)},t._parameters=function(e,t){let i=this.enterDelimited(),r=this.shouldPrintTrailingComma(t),n=e.length;for(let t=0;t<n;t++)this._param(e[t]),(r||t<n-1)&&(this.token(",",void 0,t),this.space());this.token(t),i()},t._params=function(e,t,i){this.print(e.typeParameters);let r=a.call(this,t,i);r&&this.sourceIdentifierName(r.name,r.pos),this.tokenChar(40),this._parameters(e.params,")");let n="ArrowFunctionExpression"===e.type;this.print(e.returnType,n),this._noLineTerminator=n},t._predicate=function(e,t){e.predicate&&(e.returnType||this.tokenChar(58),this.space(),this.print(e.predicate,t))},t._shouldPrintArrowParamsParens=function(e){var t,i;if(1!==e.params.length||e.typeParameters||e.returnType||e.predicate)return!0;let r=e.params[0];if(!s(r)||r.typeAnnotation||r.optional||null!=(t=r.leadingComments)&&t.length||null!=(i=r.trailingComments)&&i.length)return!0;if(this.tokenMap){if(null==e.loc||null!==this.tokenMap.findMatching(e,"("))return!0;let t=this.tokenMap.findMatching(e,"=>");return(null==t?void 0:t.loc)==null||t.loc.start.line!==e.loc.start.line}return!!this.format.retainLines};var r=i(58135),n=i(21956);let{isIdentifier:s}=r;function a(e,t){var i,r,n,s;let a,o=e;if(!o&&t){let e=t.type;"VariableDeclarator"===e?o=t.id:"AssignmentExpression"===e||"AssignmentPattern"===e?o=t.left:"ObjectProperty"===e||"ClassProperty"===e?t.computed&&"StringLiteral"!==t.key.type||(o=t.key):("ClassPrivateProperty"===e||"ClassAccessorProperty"===e)&&(o=t.key)}if(o)return"Identifier"===o.type?a={pos:null==(i=o.loc)?void 0:i.start,name:(null==(r=o.loc)?void 0:r.identifierName)||o.name}:"PrivateName"===o.type?a={pos:null==(n=o.loc)?void 0:n.start,name:"#"+o.id.name}:"StringLiteral"===o.type&&(a={pos:null==(s=o.loc)?void 0:s.start,name:o.value}),a}},58231(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.ExportAllDeclaration=function(e){var t,i;this.word("export"),this.space(),"type"===e.exportKind&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),null!=(t=e.attributes)&&t.length||null!=(i=e.assertions)&&i.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,!1)):this.print(e.source),this.semicolon()},t.ExportDefaultDeclaration=function(e){d(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=n.TokenContext.exportDefault;let t=e.declaration;this.print(t),u(t)||this.semicolon()},t.ExportDefaultSpecifier=function(e){this.print(e.exported)},t.ExportNamedDeclaration=function(e){if(d(this,e),this.word("export"),this.space(),e.declaration){let t=e.declaration;this.print(t),u(t)||this.semicolon()}else{"type"===e.exportKind&&(this.word("type"),this.space());let r=e.specifiers.slice(0),n=!1;for(;;){let e=r[0];if(a(e)||o(e))n=!0,this.print(r.shift()),r.length&&(this.tokenChar(44),this.space());else break}let s=!1;if(!r.length&&(r.length||n)||(s=!0,this.tokenChar(123),r.length&&(this.space(),this.printList(r,this.shouldPrintTrailingComma("}")),this.space()),this.tokenChar(125)),e.source){var t,i;this.space(),this.word("from"),this.space(),null!=(t=e.attributes)&&t.length||null!=(i=e.assertions)&&i.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,s)):this.print(e.source)}this.semicolon()}},t.ExportNamespaceSpecifier=function(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported)},t.ExportSpecifier=function(e){"type"===e.exportKind&&(this.word("type"),this.space()),this.print(e.local),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported))},t.ImportAttribute=function(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)},t.ImportDeclaration=function(e){var t,i;this.word("import"),this.space();let r="type"===e.importKind||"typeof"===e.importKind;r?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):e.phase&&(this.noIndentInnerCommentsHere(),this.word(e.phase),this.space());let n=e.specifiers.slice(0),s=!!n.length;for(;s;){let e=n[0];if(l(e)||p(e))this.print(n.shift()),n.length&&(this.tokenChar(44),this.space());else break}let a=!1;n.length?(a=!0,this.tokenChar(123),this.space(),this.printList(n,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125)):r&&!s&&(a=!0,this.tokenChar(123),this.tokenChar(125)),(s||r)&&(this.space(),this.word("from"),this.space()),null!=(t=e.attributes)&&t.length||null!=(i=e.assertions)&&i.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,a)):this.print(e.source),this.semicolon()},t.ImportDefaultSpecifier=function(e){this.print(e.local)},t.ImportExpression=function(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase)),this.tokenChar(40);let t=this.shouldPrintTrailingComma(")");this.print(e.source),null!=e.options&&(this.tokenChar(44),this.space(),this.print(e.options)),t&&this.tokenChar(44),this.rightParens(e)},t.ImportNamespaceSpecifier=function(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local)},t.ImportSpecifier=function(e){("type"===e.importKind||"typeof"===e.importKind)&&(this.word(e.importKind),this.space()),this.print(e.imported),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local))},t._printAttributes=function(e,t){var i;let{importAttributesKeyword:r}=this.format,{attributes:n,assertions:s}=e;n&&!r&&e.extra&&(e.extra.deprecatedAssertSyntax||e.extra.deprecatedWithLegacySyntax)&&!c&&(c=!0,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'));let a="assert"===r||!r&&s;if(this.word(a?"assert":"with"),this.space(),!a&&("with-legacy"===r||!r&&null!=(i=e.extra)&&i.deprecatedWithLegacySyntax))return void this.printList(n||s);let o=+!!t;this.token("{",void 0,o),this.space(),this.printList(n||s,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",void 0,o)};var r=i(58135),n=i(21956);let{isClassDeclaration:s,isExportDefaultSpecifier:a,isExportNamespaceSpecifier:o,isImportDefaultSpecifier:l,isImportNamespaceSpecifier:p,isStatement:u}=r,c=!1;function d(e,t){s(t.declaration)&&e._shouldPrintDecoratorsBeforeExport(t)&&e.printJoin(t.declaration.decorators)}},57734(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.BreakStatement=function(e){this.word("break"),l(this,e.label)},t.CatchClause=function(e){this.word("catch"),this.space(),e.param&&(this.tokenChar(40),this.print(e.param),this.print(e.param.typeAnnotation),this.tokenChar(41),this.space()),this.print(e.body)},t.ContinueStatement=function(e){this.word("continue"),l(this,e.label)},t.DebuggerStatement=function(){this.word("debugger"),this.semicolon()},t.DoWhileStatement=function(e){this.word("do"),this.space(),this.print(e.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.semicolon()},t.ForOfStatement=t.ForInStatement=void 0,t.ForStatement=function(e){this.word("for"),this.space(),this.tokenChar(40);{let t=this.enterForStatementInit();this.print(e.init),t()}this.tokenChar(59),e.test&&(this.space(),this.print(e.test)),this.token(";",!1,1),e.update&&(this.space(),this.print(e.update)),this.tokenChar(41),this.printBlock(e)},t.IfStatement=function(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.space();let t=e.alternate&&s(function e(t){let{body:i}=t;return!1===a(i)?t:e(i)}(e.consequent));t&&(this.tokenChar(123),this.newline(),this.indent()),this.printAndIndentOnComments(e.consequent),t&&(this.dedent(),this.newline(),this.tokenChar(125)),e.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate))},t.LabeledStatement=function(e){this.print(e.label),this.tokenChar(58),this.space(),this.print(e.body)},t.ReturnStatement=function(e){this.word("return"),l(this,e.argument)},t.SwitchCase=function(e){e.test?(this.word("case"),this.space(),this.print(e.test)):this.word("default"),this.tokenChar(58),e.consequent.length&&(this.newline(),this.printSequence(e.consequent,!0))},t.SwitchStatement=function(e){this.word("switch"),this.space(),this.tokenChar(40),this.print(e.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(e.cases,!0),this.rightBrace(e)},t.ThrowStatement=function(e){this.word("throw"),l(this,e.argument)},t.TryStatement=function(e){this.word("try"),this.space(),this.print(e.block),this.space(),e.handlers?this.print(e.handlers[0]):this.print(e.handler),e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer))},t.VariableDeclaration=function(e,t){e.declare&&(this.word("declare"),this.space());let{kind:i}=e;"await using"===i?(this.word("await"),this.space(),this.word("using",!0)):this.word(i,"using"===i),this.space();let s=!1;if(!r(t))for(let t of e.declarations)t.init&&(s=!0);if(this.printList(e.declarations,void 0,void 0,e.declarations.length>1,s?function(e){this.token(",",!1,e),this.newline()}:void 0),r(t)){if(n(t)){if(t.init===e)return}else if(t.left===e)return}this.semicolon()},t.VariableDeclarator=function(e){this.print(e.id),e.definite&&this.tokenChar(33),this.print(e.id.typeAnnotation),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init))},t.WhileStatement=function(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.printBlock(e)},t.WithStatement=function(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object),this.tokenChar(41),this.printBlock(e)};let{isFor:r,isForStatement:n,isIfStatement:s,isStatement:a}=i(58135);function o(e){this.word("for"),this.space();let t="ForOfStatement"===e.type;t&&e.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40);{let i=this.enterForXStatementInit(t);this.print(e.left),null==i||i()}this.space(),this.word(t?"of":"in"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e)}function l(e,t){t&&(e.space(),e.printTerminatorless(t)),e.semicolon()}t.ForInStatement=o,t.ForOfStatement=o},94403(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.TaggedTemplateExpression=function(e){this.print(e.tag),this.print(e.typeParameters),this.print(e.quasi)},t.TemplateElement=function(){throw Error("TemplateElement printing is handled in TemplateLiteral")},t.TemplateLiteral=function(e){this._printTemplate(e,e.expressions)},t._printTemplate=function(e,t){let i=e.quasis,r="`";for(let n=0;n<i.length-1;n++)if(r+=i[n].value.raw,this.token(r+"${",!0),this.print(t[n]),r="}",this.tokenMap){let t=this.tokenMap.findMatching(e,"}",n);t&&this._catchUpTo(t.loc.start)}r+=i[i.length-1].value.raw,this.token(r+"`",!0)}},32387(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentPlaceholder=function(){this.tokenChar(63)},t.ArrayPattern=t.ArrayExpression=function(e){let t=e.elements,i=t.length;this.tokenChar(91);let r=this.enterDelimited();for(let e=0;e<t.length;e++){let r=t[e];r?(e>0&&this.space(),this.print(r),(e<i-1||this.shouldPrintTrailingComma("]"))&&this.token(",",!1,e)):this.token(",",!1,e)}r(),this.tokenChar(93)},t.BigIntLiteral=function(e){let t=this.getPossibleRaw(e);this.format.minified||void 0===t?this.word(e.value+"n"):this.word(t)},t.BooleanLiteral=function(e){this.word(e.value?"true":"false")},t.Identifier=function(e){var t;this.sourceIdentifierName((null==(t=e.loc)?void 0:t.identifierName)||e.name),this.word(this.tokenMap?this._getRawIdentifier(e):e.name)},t.NullLiteral=function(){this.word("null")},t.NumericLiteral=function(e){let t=this.getPossibleRaw(e),i=this.format.jsescOption,r=e.value,s=r+"";i.numbers?this.number(n(r,i),r):null==t?this.number(s,r):this.format.minified?this.number(t.length<s.length?t:s,r):this.number(t,r)},t.ObjectPattern=t.ObjectExpression=function(e){let t=e.properties;if(this.tokenChar(123),t.length){let e=this.enterDelimited();this.space(),this.printList(t,this.shouldPrintTrailingComma("}"),!0,!0),this.space(),e()}this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)},t.ObjectMethod=function(e){this.printJoin(e.decorators),this._methodHead(e),this.space(),this.print(e.body)},t.ObjectProperty=function(e){if(this.printJoin(e.decorators),e.computed)this.tokenChar(91),this.print(e.key),this.tokenChar(93);else{if(s(e.value)&&a(e.key)&&e.key.name===e.value.left.name)return void this.print(e.value);if(this.print(e.key),e.shorthand&&a(e.key)&&a(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value)},t.PipelineBareFunction=function(e){this.print(e.callee)},t.PipelinePrimaryTopicReference=function(){this.tokenChar(35)},t.PipelineTopicExpression=function(e){this.print(e.expression)},t.RecordExpression=function(e){let t,i,r=e.properties;if("bar"===this.format.recordAndTupleSyntaxType)t="{|",i="|}";else if("hash"!==this.format.recordAndTupleSyntaxType&&null!=this.format.recordAndTupleSyntaxType)throw Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);else t="#{",i="}";this.token(t),r.length&&(this.space(),this.printList(r,this.shouldPrintTrailingComma(i),!0,!0),this.space()),this.token(i)},t.RegExpLiteral=function(e){this.word(`/${e.pattern}/${e.flags}`)},t.SpreadElement=t.RestElement=function(e){this.token("..."),this.print(e.argument)},t.StringLiteral=function(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==t)return void this.token(t);let i=n(e.value,this.format.jsescOption);this.token(i)},t.TopicReference=function(){let{topicToken:e}=this.format;if(p.has(e))this.token(e);else{let t=JSON.stringify(e),i=Array.from(p,e=>JSON.stringify(e));throw Error(`The "topicToken" generator option must be one of ${i.join(", ")} (${t} received instead).`)}},t.TupleExpression=function(e){let t,i,r=e.elements,n=r.length;if("bar"===this.format.recordAndTupleSyntaxType)t="[|",i="|]";else if("hash"===this.format.recordAndTupleSyntaxType)t="#[",i="]";else throw Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);this.token(t);for(let e=0;e<r.length;e++){let t=r[e];t&&(e>0&&this.space(),this.print(t),(e<n-1||this.shouldPrintTrailingComma(i))&&this.token(",",!1,e))}this.token(i)},t.VoidPattern=function(){this.word("void")},t._getRawIdentifier=function(e){if(e===o)return l;o=e;let{name:t}=e,i=this.tokenMap.find(e,e=>e.value===t);return l=i?this._originalCode.slice(i.start,i.end):e.name};var r=i(58135),n=i(18398);let{isAssignmentPattern:s,isIdentifier:a}=r,o=null,l="",p=new Set(["^^","@@","^","%","#"])},39919(e,t){function i(e,t){e.tokenMap&&t.start&&t.end?e.tokenMap.endMatches(t,",")?e.token(","):e.tokenMap.endMatches(t,";")&&e.semicolon():e.semicolon()}function r(e,t,i){var r;let n=0;null!=(r=e.tokenMap)&&r.startMatches(t,i)&&(n=1,e.token(i)),e.printJoin(t.types,void 0,void 0,function(e){this.space(),this.token(i,void 0,e+n),this.space()})}function n(e,t){!0!==t&&e.token(t)}function s(e){a(this,e,()=>{var t;return this.printList(e.members,null==(t=this.shouldPrintTrailingComma("}"))||t,!0,!0)})}function a(e,t,i){e.token("{");let r=e.enterDelimited();i(),r(),e.rightBrace(t)}function o(e,t,i){var r;let n=new Set;for(let e of i)e&&n.add(e);for(let i of(null==(r=e.tokenMap)||r.find(t,t=>!!n.has(t.value)&&(e.token(t.value),e.space(),n.delete(t.value),0===n.size)),n))e.word(i),e.space()}Object.defineProperty(t,"__esModule",{value:!0}),t.TSAnyKeyword=function(){this.word("any")},t.TSArrayType=function(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)},t.TSSatisfiesExpression=t.TSAsExpression=function(e){let{type:t,expression:i,typeAnnotation:r}=e;this.print(i,!0),this.space(),this.word("TSAsExpression"===t?"as":"satisfies"),this.space(),this.print(r)},t.TSBigIntKeyword=function(){this.word("bigint")},t.TSBooleanKeyword=function(){this.word("boolean")},t.TSCallSignatureDeclaration=function(e){this.tsPrintSignatureDeclarationBase(e),i(this,e)},t.TSInterfaceHeritage=t.TSClassImplements=function(e){this.print(e.expression),this.print(e.typeArguments)},t.TSConditionalType=function(e){this.print(e.checkType),this.space(),this.word("extends"),this.space(),this.print(e.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(e.trueType),this.space(),this.tokenChar(58),this.space(),this.print(e.falseType)},t.TSConstructSignatureDeclaration=function(e){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(e),i(this,e)},t.TSConstructorType=function(e){e.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(e)},t.TSDeclareFunction=function(e,t){e.declare&&(this.word("declare"),this.space()),this._functionHead(e,t),this.semicolon()},t.TSDeclareMethod=function(e){this._classMethodHead(e),this.semicolon()},t.TSEnumBody=s,t.TSEnumDeclaration=function(e){let{declare:t,const:i,id:r}=e;t&&(this.word("declare"),this.space()),i&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(r),this.space(),s.call(this,e)},t.TSEnumMember=function(e){let{id:t,initializer:i}=e;this.print(t),i&&(this.space(),this.tokenChar(61),this.space(),this.print(i))},t.TSExportAssignment=function(e){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(e.expression),this.semicolon()},t.TSExternalModuleReference=function(e){this.token("require("),this.print(e.expression),this.tokenChar(41)},t.TSFunctionType=function(e){this.tsPrintFunctionOrConstructorType(e)},t.TSImportEqualsDeclaration=function(e){let{id:t,moduleReference:i}=e;e.isExport&&(this.word("export"),this.space()),this.word("import"),this.space(),this.print(t),this.space(),this.tokenChar(61),this.space(),this.print(i),this.semicolon()},t.TSImportType=function(e){let{argument:t,qualifier:i,options:r}=e;this.word("import"),this.tokenChar(40),this.print(t),r&&(this.tokenChar(44),this.print(r)),this.tokenChar(41),i&&(this.tokenChar(46),this.print(i));let n=e.typeParameters;n&&this.print(n)},t.TSIndexSignature=function(e){let{readonly:t,static:r}=e;r&&(this.word("static"),this.space()),t&&(this.word("readonly"),this.space()),this.tokenChar(91),this._parameters(e.parameters,"]"),this.print(e.typeAnnotation),i(this,e)},t.TSIndexedAccessType=function(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},t.TSInferType=function(e){this.word("infer"),this.print(e.typeParameter)},t.TSInstantiationExpression=function(e){this.print(e.expression),this.print(e.typeParameters)},t.TSInterfaceBody=function(e){a(this,e,()=>this.printJoin(e.body,!0,!0))},t.TSInterfaceDeclaration=function(e){let{declare:t,id:i,typeParameters:r,extends:n,body:s}=e;t&&(this.word("declare"),this.space()),this.word("interface"),this.space(),this.print(i),this.print(r),null!=n&&n.length&&(this.space(),this.word("extends"),this.space(),this.printList(n)),this.space(),this.print(s)},t.TSIntersectionType=function(e){r(this,e,"&")},t.TSIntrinsicKeyword=function(){this.word("intrinsic")},t.TSLiteralType=function(e){this.print(e.literal)},t.TSMappedType=function(e){let{nameType:t,optional:i,readonly:r,typeAnnotation:s}=e;this.tokenChar(123);let a=this.enterDelimited();this.space(),r&&(n(this,r),this.word("readonly"),this.space()),this.tokenChar(91),this.word(e.typeParameter.name),this.space(),this.word("in"),this.space(),this.print(e.typeParameter.constraint),t&&(this.space(),this.word("as"),this.space(),this.print(t)),this.tokenChar(93),i&&(n(this,i),this.tokenChar(63)),s&&(this.tokenChar(58),this.space(),this.print(s)),this.space(),a(),this.tokenChar(125)},t.TSMethodSignature=function(e){let{kind:t}=e;("set"===t||"get"===t)&&(this.word(t),this.space()),this.tsPrintPropertyOrMethodName(e),this.tsPrintSignatureDeclarationBase(e),i(this,e)},t.TSModuleBlock=function(e){a(this,e,()=>this.printSequence(e.body,!0))},t.TSModuleDeclaration=function(e){let{declare:t,id:i,kind:r}=e;t&&(this.word("declare"),this.space());{if(e.global||(this.word(null!=r?r:"Identifier"===i.type?"namespace":"module"),this.space()),this.print(i),!e.body)return void this.semicolon();let t=e.body;for(;"TSModuleDeclaration"===t.type;)this.tokenChar(46),this.print(t.id),t=t.body;this.space(),this.print(t)}},t.TSNamedTupleMember=function(e){this.print(e.label),e.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(e.elementType)},t.TSNamespaceExportDeclaration=function(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id),this.semicolon()},t.TSNeverKeyword=function(){this.word("never")},t.TSNonNullExpression=function(e){this.print(e.expression),this.tokenChar(33)},t.TSNullKeyword=function(){this.word("null")},t.TSNumberKeyword=function(){this.word("number")},t.TSObjectKeyword=function(){this.word("object")},t.TSOptionalType=function(e){this.print(e.typeAnnotation),this.tokenChar(63)},t.TSParameterProperty=function(e){e.accessibility&&(this.word(e.accessibility),this.space()),e.readonly&&(this.word("readonly"),this.space()),this._param(e.parameter)},t.TSParenthesizedType=function(e){this.tokenChar(40),this.print(e.typeAnnotation),this.tokenChar(41)},t.TSPropertySignature=function(e){let{readonly:t}=e;t&&(this.word("readonly"),this.space()),this.tsPrintPropertyOrMethodName(e),this.print(e.typeAnnotation),i(this,e)},t.TSQualifiedName=function(e){this.print(e.left),this.tokenChar(46),this.print(e.right)},t.TSRestType=function(e){this.token("..."),this.print(e.typeAnnotation)},t.TSStringKeyword=function(){this.word("string")},t.TSSymbolKeyword=function(){this.word("symbol")},t.TSTemplateLiteralType=function(e){this._printTemplate(e,e.types)},t.TSThisType=function(){this.word("this")},t.TSTupleType=function(e){this.tokenChar(91),this.printList(e.elementTypes,this.shouldPrintTrailingComma("]")),this.tokenChar(93)},t.TSTypeAliasDeclaration=function(e){let{declare:t,id:i,typeParameters:r,typeAnnotation:n}=e;t&&(this.word("declare"),this.space()),this.word("type"),this.space(),this.print(i),this.print(r),this.space(),this.tokenChar(61),this.space(),this.print(n),this.semicolon()},t.TSTypeAnnotation=function(e,t){this.token(("TSFunctionType"===t.type||"TSConstructorType"===t.type)&&t.typeAnnotation===e?"=>":":"),this.space(),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)},t.TSTypeAssertion=function(e){let{typeAnnotation:t,expression:i}=e;this.tokenChar(60),this.print(t),this.tokenChar(62),this.space(),this.print(i)},t.TSTypeLiteral=function(e){a(this,e,()=>this.printJoin(e.members,!0,!0))},t.TSTypeOperator=function(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation)},t.TSTypeParameter=function(e){e.const&&(this.word("const"),this.space()),e.in&&(this.word("in"),this.space()),e.out&&(this.word("out"),this.space()),this.word(e.name),e.constraint&&(this.space(),this.word("extends"),this.space(),this.print(e.constraint)),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))},t.TSTypeParameterDeclaration=t.TSTypeParameterInstantiation=function(e,t){this.tokenChar(60);let i="ArrowFunctionExpression"===t.type&&1===e.params.length;this.tokenMap&&null!=e.start&&null!=e.end&&(i&&(i=!!this.tokenMap.find(e,e=>this.tokenMap.matchesOriginal(e,","))),i||(i=this.shouldPrintTrailingComma(">"))),this.printList(e.params,i),this.tokenChar(62)},t.TSTypePredicate=function(e){e.asserts&&(this.word("asserts"),this.space()),this.print(e.parameterName),e.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(e.typeAnnotation.typeAnnotation))},t.TSTypeQuery=function(e){this.word("typeof"),this.space(),this.print(e.exprName);let t=e.typeParameters;t&&this.print(t)},t.TSTypeReference=function(e){let t=e.typeParameters;this.print(e.typeName,!!t),this.print(t)},t.TSUndefinedKeyword=function(){this.word("undefined")},t.TSUnionType=function(e){r(this,e,"|")},t.TSUnknownKeyword=function(){this.word("unknown")},t.TSVoidKeyword=function(){this.word("void")},t.tsPrintClassMemberModifiers=function(e){let t="ClassPrivateProperty"===e.type,i="ClassAccessorProperty"===e.type||"ClassProperty"===e.type;o(this,e,[i&&e.declare&&"declare",!t&&e.accessibility]),e.static&&(this.word("static"),this.space()),o(this,e,[!t&&e.abstract&&"abstract",!t&&e.override&&"override",(i||t)&&e.readonly&&"readonly"])},t.tsPrintFunctionOrConstructorType=function(e){let{typeParameters:t}=e,i=e.parameters;this.print(t),this.tokenChar(40),this._parameters(i,")"),this.space();let r=e.typeAnnotation;this.print(r)},t.tsPrintPropertyOrMethodName=function(e){e.computed&&this.tokenChar(91),this.print(e.key),e.computed&&this.tokenChar(93),e.optional&&this.tokenChar(63)},t.tsPrintSignatureDeclarationBase=function(e){let{typeParameters:t}=e,i=e.parameters;this.print(t),this.tokenChar(40),this._parameters(i,")");let r=e.typeAnnotation;this.print(r)}},2235(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.generate=a;var r=i(9305),n=i(82475);function s(e,t,i){var r;if(t.experimental_preserveFormat){if("string"!=typeof e)throw Error("`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string");if(!t.retainLines)throw Error("`experimental_preserveFormat` requires `retainLines` to be set to `true`");if(t.compact&&"auto"!==t.compact)throw Error("`experimental_preserveFormat` is not compatible with the `compact` option");if(t.minified)throw Error("`experimental_preserveFormat` is not compatible with the `minified` option");if(t.jsescOption)throw Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option");if(!Array.isArray(i.tokens))throw Error("`experimental_preserveFormat` requires the AST to have attached the token of the input code. Make sure to enable the `tokens: true` parser option.")}let n={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,preserveFormat:t.experimental_preserveFormat,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:null==t.comments||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},t.jsescOption),topicToken:t.topicToken,importAttributesKeyword:t.importAttributesKeyword};n.decoratorsBeforeExport=t.decoratorsBeforeExport,n.jsescOption.json=t.jsonCompatibleStrings,n.recordAndTupleSyntaxType=null!=(r=t.recordAndTupleSyntaxType)?r:"hash",n.minified?(n.compact=!0,n.shouldPrintComment=n.shouldPrintComment||(()=>n.comments)):n.shouldPrintComment=n.shouldPrintComment||(e=>n.comments||e.includes("@license")||e.includes("@preserve")),"auto"===n.compact&&(n.compact="string"==typeof e&&e.length>5e5,n.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${t.filename} as it exceeds the max of 500KB.`)),(n.compact||n.preserveFormat)&&(n.indent.adjustMultilineComment=!1);let{auxiliaryCommentBefore:s,auxiliaryCommentAfter:a,shouldPrintComment:o}=n;return s&&!o(s)&&(n.auxiliaryCommentBefore=void 0),a&&!o(a)&&(n.auxiliaryCommentAfter=void 0),n}function a(e,t={},i){let o=s(i,t,e),l=t.sourceMaps?new r.default(t,i):null;return new n.default(o,l,e.tokens,"string"==typeof i?i:null).generate(e)}t.CodeGenerator=class{constructor(e,t={},i){this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=e,this._format=s(i,t,e),this._map=t.sourceMaps?new r.default(t,i):null}generate(){return new n.default(this._format,this._map).generate(this._ast)}},t.default=a},21956(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.TokenContext=void 0,t.isLastChild=function(e,t){let i=a[e.type];for(let r=i.length-1;r>=0;r--){let n=e[i[r]];if(n===t)return!0;if(Array.isArray(n)){let e=n.length-1;for(;e>=0&&null===n[e];)e--;return e>=0&&n[e]===t}if(n)break}return!1},t.needsParens=function(e,t,i,r){var n;return!!t&&(!!(c(t)&&t.callee===e&&function e(t){return!!o(t)||u(t)&&e(t.object)}(e))||(l(t)?!g(e)&&!(o(e)&&g(e.callee))&&!d(e):(null==(n=m.get(e.type))?void 0:n(e,t,i,r))||!1))},t.needsWhitespace=y,t.needsWhitespaceAfter=function(e,t){return y(e,t,2)},t.needsWhitespaceBefore=function(e,t){return y(e,t,1)};var r=i(10899),n=i(45584);let{FLIPPED_ALIAS_KEYS:s,VISITOR_KEYS:a,isCallExpression:o,isDecorator:l,isExpressionStatement:p,isMemberExpression:u,isNewExpression:c,isParenthesizedExpression:d}=i(58135);function h(e){let t=new Map;function i(e,i){let r=t.get(e);t.set(e,r?function(e,t,n,s){var a;return null!=(a=r(e,t,n,s))?a:i(e,t,n,s)}:i)}for(let t of Object.keys(e)){let r=s[t];if(r)for(let n of r)i(n,e[t]);else i(t,e[t])}return t}t.TokenContext={normal:0,expressionStatement:1,arrowBody:2,exportDefault:4,arrowFlowReturnType:8,forInitHead:16,forInHead:32,forOfHead:64,forInOrInitHeadAccumulate:128,forInOrInitHeadAccumulatePassThroughMask:128};let m=h(n),f=h(r.nodes);function y(e,t,i){var r;if(!e)return!1;p(e)&&(e=e.expression);let n=null==(r=f.get(e.type))?void 0:r(e,t);return"number"==typeof n&&(n&i)!=0}function g(e){switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&"Identifier"===e.property.type&&g(e.object);default:return!1}}},45584(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.AssignmentExpression=function(e,t,i){return!!(x(i)&&c(e.left))||A(e,t)},t.Binary=S,t.BinaryExpression=function(e,t,i){return"in"===e.operator&&!!(i&n.TokenContext.forInOrInitHeadAccumulate)},t.ClassExpression=function(e,t,i){return!!(i&(n.TokenContext.expressionStatement|n.TokenContext.exportDefault))},t.ArrowFunctionExpression=t.ConditionalExpression=A,t.DoExpression=function(e,t,i){return!e.async&&!!(i&n.TokenContext.expressionStatement)},t.FunctionExpression=function(e,t,i){return!!(i&(n.TokenContext.expressionStatement|n.TokenContext.exportDefault))},t.FunctionTypeAnnotation=function(e,t,i){let r=t.type;return"UnionTypeAnnotation"===r||"IntersectionTypeAnnotation"===r||"ArrayTypeAnnotation"===r||!!(i&n.TokenContext.arrowFlowReturnType)},t.Identifier=function(e,t,i,r){var s;let a=t.type;if(null!=(s=e.extra)&&s.parenthesized&&"AssignmentExpression"===a&&t.left===e){let e=t.right.type;if(("FunctionExpression"===e||"ClassExpression"===e)&&null==t.right.id)return!0}return(!r||r(e)===e.name)&&("let"===e.name?!!(u(t,{object:e,computed:!0})||d(t,{object:e,computed:!0,optional:!1}))&&!!(i&(n.TokenContext.expressionStatement|n.TokenContext.forInitHead|n.TokenContext.forInHead))||!!(i&n.TokenContext.forOfHead):"async"===e.name&&l(t,{left:e,await:!1}))},t.LogicalExpression=function(e,t){let i=t.type;if(g(i))return!0;if("LogicalExpression"!==i)return!1;switch(e.operator){case"||":return"??"===t.operator||"&&"===t.operator;case"&&":return"??"===t.operator;case"??":return"??"!==t.operator}},t.NullableTypeAnnotation=function(e,t){return s(t)},t.ObjectExpression=function(e,t,i){return x(i)},t.OptionalIndexedAccessType=function(e,t){return p(t)&&t.objectType===e},t.OptionalCallExpression=t.OptionalMemberExpression=function(e,t){return o(t)&&t.callee===e||u(t)&&t.object===e},t.SequenceExpression=function(e,t){let i=t.type;return"SequenceExpression"!==i&&"ParenthesizedExpression"!==i&&("MemberExpression"!==i||t.property!==e)&&("OptionalMemberExpression"!==i||t.property!==e)&&"TemplateLiteral"!==i&&("ClassDeclaration"===i||("ForOfStatement"===i?t.right===e:"ExportDefaultDeclaration"===i||!m(t)))},t.TSSatisfiesExpression=t.TSAsExpression=function(e,t){return("AssignmentExpression"===t.type||"AssignmentPattern"===t.type)&&t.left===e||"BinaryExpression"===t.type&&("|"===t.operator||"&"===t.operator)&&e===t.left||S(e,t)},t.TSConditionalType=function(e,t){let i=t.type;return"TSArrayType"===i||"TSIndexedAccessType"===i&&t.objectType===e||"TSOptionalType"===i||"TSTypeOperator"===i||"TSTypeParameter"===i||("TSIntersectionType"===i||"TSUnionType"===i)&&t.types[0]===e||"TSConditionalType"===i&&(t.checkType===e||t.extendsType===e)||!1},t.TSConstructorType=t.TSFunctionType=function(e,t){let i=t.type;return"TSIntersectionType"===i||"TSUnionType"===i||"TSTypeOperator"===i||"TSOptionalType"===i||"TSArrayType"===i||"TSIndexedAccessType"===i&&t.objectType===e||"TSConditionalType"===i&&(t.checkType===e||t.extendsType===e)},t.TSInferType=function(e,t){let i=t.type;return"TSArrayType"===i||"TSIndexedAccessType"===i&&t.objectType===e||"TSOptionalType"===i||!!e.typeParameter.constraint&&("TSIntersectionType"===i||"TSUnionType"===i)&&t.types[0]===e},t.TSInstantiationExpression=function(e,t){let i=t.type;return("CallExpression"===i||"OptionalCallExpression"===i||"NewExpression"===i||"TSInstantiationExpression"===i)&&!!t.typeParameters},t.TSIntersectionType=function(e,t){let i=t.type;return"TSTypeOperator"===i||"TSArrayType"===i||"TSIndexedAccessType"===i&&t.objectType===e||"TSOptionalType"===i},t.UnaryLike=t.TSTypeAssertion=E,t.TSTypeOperator=function(e,t){let i=t.type;return"TSArrayType"===i||"TSIndexedAccessType"===i&&t.objectType===e||"TSOptionalType"===i},t.TSUnionType=function(e,t){let i=t.type;return"TSIntersectionType"===i||"TSTypeOperator"===i||"TSArrayType"===i||"TSIndexedAccessType"===i&&t.objectType===e||"TSOptionalType"===i},t.IntersectionTypeAnnotation=t.UnionTypeAnnotation=function(e,t){let i=t.type;return"ArrayTypeAnnotation"===i||"NullableTypeAnnotation"===i||"IntersectionTypeAnnotation"===i||"UnionTypeAnnotation"===i},t.UpdateExpression=function(e,t){return b(e,t)||T(e,t)},t.AwaitExpression=t.YieldExpression=function(e,t){let i=t.type;return"BinaryExpression"===i||"LogicalExpression"===i||"UnaryExpression"===i||"SpreadElement"===i||b(e,t)||"AwaitExpression"===i&&h(e)||"ConditionalExpression"===i&&e===t.test||T(e,t)||g(i)};var r=i(58135),n=i(21956);let{isArrayTypeAnnotation:s,isBinaryExpression:a,isCallExpression:o,isForOfStatement:l,isIndexedAccessType:p,isMemberExpression:u,isObjectPattern:c,isOptionalMemberExpression:d,isYieldExpression:h,isStatement:m}=r,f=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 y(e,t){return"BinaryExpression"===t||"LogicalExpression"===t?f.get(e.operator):"TSAsExpression"===t||"TSSatisfiesExpression"===t?f.get("in"):void 0}function g(e){return"TSAsExpression"===e||"TSSatisfiesExpression"===e||"TSTypeAssertion"===e}let T=(e,t)=>{let i=t.type;return("ClassDeclaration"===i||"ClassExpression"===i)&&t.superClass===e},b=(e,t)=>{let i=t.type;return("MemberExpression"===i||"OptionalMemberExpression"===i)&&t.object===e||("CallExpression"===i||"OptionalCallExpression"===i||"NewExpression"===i)&&t.callee===e||"TaggedTemplateExpression"===i&&t.tag===e||"TSNonNullExpression"===i};function x(e){return!!(e&(n.TokenContext.expressionStatement|n.TokenContext.arrowBody))}function S(e,t){let i=t.type;if("BinaryExpression"===e.type&&"**"===e.operator&&"BinaryExpression"===i&&"**"===t.operator)return t.left===e;if(T(e,t)||b(e,t)||"UnaryExpression"===i||"SpreadElement"===i||"AwaitExpression"===i)return!0;let r=y(t,i);if(null!=r){let n=y(e,e.type);if(r===n&&"BinaryExpression"===i&&t.right===e||r>n)return!0}}function E(e,t){return b(e,t)||a(t)&&"**"===t.operator&&t.left===e||T(e,t)}function A(e,t){let i=t.type;return!!("UnaryExpression"===i||"SpreadElement"===i||"BinaryExpression"===i||"LogicalExpression"===i||"ConditionalExpression"===i&&t.test===e||"AwaitExpression"===i||g(i))||E(e,t)}},10899(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.nodes=void 0;let{FLIPPED_ALIAS_KEYS:r,isArrayExpression:n,isAssignmentExpression:s,isBinary:a,isBlockStatement:o,isCallExpression:l,isFunction:p,isIdentifier:u,isLiteral:c,isMemberExpression:d,isObjectExpression:h,isOptionalCallExpression:m,isOptionalMemberExpression:f,isStringLiteral:y}=i(58135);function g(e){return function e(t,i){return t&&(d(t)||f(t)?(e(t.object,i),t.computed&&e(t.property,i)):a(t)||s(t)?(e(t.left,i),e(t.right,i)):l(t)||m(t)?(i.hasCall=!0,e(t.callee,i)):p(t)?i.hasFunction=!0:u(t)&&(i.hasHelper=i.hasHelper||t.callee&&T(t.callee))),i}(e,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function T(e){return!!e&&(d(e)?T(e.object)||T(e.property):u(e)?"require"===e.name||95===e.name.charCodeAt(0):l(e)?T(e.callee):!!(a(e)||s(e))&&(u(e.left)&&T(e.left)||T(e.right)))}let b=t.nodes={AssignmentExpression(e){let t=g(e.right);return t.hasCall&&t.hasHelper||t.hasFunction?t.hasFunction?3:2:0},SwitchCase:(e,t)=>(e.consequent.length||t.cases[0]===e?1:0)|2*(!e.consequent.length&&t.cases[t.cases.length-1]===e),LogicalExpression:e=>p(e.left)||p(e.right)?2:0,Literal:e=>y(e)&&"use strict"===e.value?2:0,CallExpression:e=>p(e.callee)||T(e)?3:0,OptionalCallExpression:e=>3*!!p(e.callee),VariableDeclaration(e){for(let i=0;i<e.declarations.length;i++){var t;let r=e.declarations[i],s=T(r.id)&&!(c(t=r.init)||h(t)||n(t)||u(t)||d(t));if(!s&&r.init){let e=g(r.init);s=T(r.init)&&e.hasCall||e.hasFunction}if(s)return 3}return 0},IfStatement:e=>3*!!o(e.consequent)};b.ObjectProperty=b.ObjectTypeProperty=b.ObjectMethod=function(e,t){return+(t.properties[0]===e)},b.ObjectTypeCallProperty=function(e,t){var i;return+(t.callProperties[0]===e&&(null==(i=t.properties)||!i.length))},b.ObjectTypeIndexer=function(e,t){var i,r;return+(t.indexers[0]===e&&(null==(i=t.properties)||!i.length)&&(null==(r=t.callProperties)||!r.length))},b.ObjectTypeInternalSlot=function(e,t){var i,r,n;return+(t.internalSlots[0]===e&&(null==(i=t.properties)||!i.length)&&(null==(r=t.callProperties)||!r.length)&&(null==(n=t.indexers)||!n.length))},[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach(function([e,t]){[e].concat(r[e]||[]).forEach(function(e){let i=3*!!t;b[e]=()=>i})})},82475(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(96405),n=i(21956),s=i(58135),a=i(76697),o=i(62798),l=i(58121);let{isExpression:p,isFunction:u,isStatement:c,isClassBody:d,isTSInterfaceBody:h,isTSEnumMember:m}=s,f=/e/i,y=/\.0+$/,g=/[\n\r\u2028\u2029]/,T=/[\n\r\u2028\u2029]|\*\//;function b(e){return"CommentLine"===e.type||g.test(e.value)}let{needsParens:x}=n;class S{constructor(e,t,i=null,s=null){this.tokenContext=n.TokenContext.normal,this._tokens=null,this._originalCode=null,this._currentNode=null,this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._noLineTerminator=!1,this._noLineTerminatorAfterNode=null,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._endsWithInteger=!1,this._endsWithWord=!1,this._endsWithDiv=!1,this._lastCommentLine=0,this._endsWithInnerRaw=!1,this._indentInnerComments=!0,this.tokenMap=null,this._boundGetRawIdentifier=this._getRawIdentifier.bind(this),this._printSemicolonBeforeNextNode=-1,this._printSemicolonBeforeNextToken=-1,this.format=e,this._tokens=i,this._originalCode=s,this._indentRepeat=e.indent.style.length,this._inputMap=(null==t?void 0:t._inputMap)||null,this._buf=new r.default(t,e.indent.style[0])}enterForStatementInit(){return this.tokenContext|=n.TokenContext.forInitHead|n.TokenContext.forInOrInitHeadAccumulate,()=>this.tokenContext=n.TokenContext.normal}enterForXStatementInit(e){return e?(this.tokenContext|=n.TokenContext.forOfHead,null):(this.tokenContext|=n.TokenContext.forInHead|n.TokenContext.forInOrInitHeadAccumulate,()=>this.tokenContext=n.TokenContext.normal)}enterDelimited(){let e=this.tokenContext,t=this._noLineTerminatorAfterNode;return e&n.TokenContext.forInOrInitHeadAccumulate||null!==t?(this._noLineTerminatorAfterNode=null,this.tokenContext=n.TokenContext.normal,()=>{this._noLineTerminatorAfterNode=t,this.tokenContext=e}):()=>{}}generate(e){return this.format.preserveFormat&&(this.tokenMap=new a.TokenMap(e,this._tokens,this._originalCode)),this.print(e),this._maybeAddAuxComment(),this._buf.get()}indent(){let{format:e}=this;!e.preserveFormat&&!e.compact&&!e.concise&&this._indent++}dedent(){let{format:e}=this;!e.preserveFormat&&!e.compact&&!e.concise&&this._indent--}semicolon(e=!1){if(this._maybeAddAuxComment(),e){this._appendChar(59),this._noLineTerminator=!1;return}if(this.tokenMap){let e=this._currentNode;if(null!=e.start&&null!=e.end){if(!this.tokenMap.endMatches(e,";")){this._printSemicolonBeforeNextNode=this._buf.getCurrentLine();return}let t=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[t[t.length-1]].loc.start)}}this._queue(59),this._noLineTerminator=!1}rightBrace(e){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)}rightParens(e){this.sourceWithOffset("end",e.loc,-1),this.tokenChar(41)}space(e=!1){let{format:t}=this;if(!t.compact&&!t.preserveFormat){if(e)this._space();else if(this._buf.hasContent()){let e=this.getLastChar();32!==e&&10!==e&&this._space()}}}word(e,t=!1){this.tokenContext&=n.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(e),(this._endsWithWord||this._endsWithDiv&&47===e.charCodeAt(0))&&this._space(),this._append(e,!1),this._endsWithWord=!0,this._noLineTerminator=t}number(e,t){this.word(e),this._endsWithInteger=Number.isInteger(t)&&!function(e){if(e.length>2&&48===e.charCodeAt(0)){let t=e.charCodeAt(1);return 98===t||111===t||120===t}return!1}(e)&&!f.test(e)&&!y.test(e)&&46!==e.charCodeAt(e.length-1)}token(e,t=!1,i=0){this.tokenContext&=n.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e,i),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(e,i);let r=this.getLastChar(),s=e.charCodeAt(0);(33===r&&("--"===e||61===s)||43===s&&43===r||45===s&&45===r||46===s&&this._endsWithInteger)&&this._space(),this._append(e,t),this._noLineTerminator=!1}tokenChar(e){this.tokenContext&=n.TokenContext.forInOrInitHeadAccumulatePassThroughMask;let t=String.fromCharCode(e);this._maybePrintInnerComments(t),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(t);let i=this.getLastChar();(43===e&&43===i||45===e&&45===i||46===e&&this._endsWithInteger)&&this._space(),this._appendChar(e),this._noLineTerminator=!1}newline(e=1,t){if(!(e<=0)){if(!t){if(this.format.retainLines||this.format.compact)return;if(this.format.concise)return void this.space()}e>2&&(e=2),e-=this._buf.getNewlineCount();for(let t=0;t<e;t++)this._newline()}}endsWith(e){return this.getLastChar()===e}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline()}exactSource(e,t){e?(this._catchUp("start",e),this._buf.exactSource(e,t)):t()}source(e,t){t&&(this._catchUp(e,t),this._buf.source(e,t))}sourceWithOffset(e,t,i){t&&!this.format.preserveFormat&&(this._catchUp(e,t),this._buf.sourceWithOffset(e,t,i))}sourceIdentifierName(e,t){if(!this._buf._canMarkIdName)return;let i=this._buf._sourcePosition;i.identifierNamePos=t,i.identifierName=e}_space(){this._queue(32)}_newline(){this._queue(10)}_catchUpToCurrentToken(e,t=0){let i=this.tokenMap.findMatching(this._currentNode,e,t);i&&this._catchUpTo(i.loc.start),-1!==this._printSemicolonBeforeNextToken&&this._printSemicolonBeforeNextToken===this._buf.getCurrentLine()&&(this._buf.appendChar(59),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1),this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1}_append(e,t){this._maybeIndent(e.charCodeAt(0)),this._buf.append(e,t),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_appendChar(e){this._maybeIndent(e),this._buf.appendChar(e),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_queue(e){this._maybeIndent(e),this._buf.queue(e),this._endsWithWord=!1,this._endsWithInteger=!1}_maybeIndent(e){this._indent&&10!==e&&this.endsWith(10)&&this._buf.queueIndentation(this._getIndent())}_shouldIndent(e){if(this._indent&&10!==e&&this.endsWith(10))return!0}catchUp(e){if(!this.format.retainLines)return;let t=e-this._buf.getCurrentLine();for(let e=0;e<t;e++)this._newline()}_catchUp(e,t){let{format:i}=this;if(!i.preserveFormat){i.retainLines&&null!=t&&t[e]&&this.catchUp(t[e].line);return}let r=null==t?void 0:t[e];null!=r&&this._catchUpTo(r)}_catchUpTo({line:e,column:t,index:i}){let r=e-this._buf.getCurrentLine();if(r>0&&this._noLineTerminator)return;for(let e=0;e<r;e++)this._newline();let n=r>0?t:t-this._buf.getCurrentColumn();if(n>0){let e=this._originalCode?this._originalCode.slice(i-n,i).replace(/[^\t\x0B\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/gu," "):" ".repeat(n);this._append(e,!1)}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(e){this._noLineTerminator=!0,this.print(e)}print(e,t=!1,i){var r,s,a,o;let l,u;if(!e)return;this._endsWithInnerRaw=!1;let c=e.type,d=this.format,h=d.concise;e._compact&&(d.concise=!0);let m=this[c];if(void 0===m)throw ReferenceError(`unknown node of type ${JSON.stringify(c)} with constructor ${JSON.stringify(e.constructor.name)}`);let f=this._currentNode;this._currentNode=e,this.tokenMap&&(this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode);let y=this._insideAux;this._insideAux=null==e.loc,this._maybeAddAuxComment(this._insideAux&&!y);let g=null==(r=e.extra)?void 0:r.parenthesized,T=g&&d.preserveFormat||g&&d.retainFunctionParens&&"FunctionExpression"===c||x(e,f,this.tokenContext,d.preserveFormat?this._boundGetRawIdentifier:void 0);if(!T&&g&&null!=(s=e.leadingComments)&&s.length&&"CommentBlock"===e.leadingComments[0].type)switch(null==f?void 0:f.type){case"ExpressionStatement":case"VariableDeclarator":case"AssignmentExpression":case"ReturnStatement":break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":if(f.callee!==e)break;default:T=!0}let S=!1;!T&&this._noLineTerminator&&(null!=(a=e.leadingComments)&&a.some(b)||this.format.retainLines&&e.loc&&e.loc.start.line>this._buf.getCurrentLine())&&(T=!0,S=!0),!T&&(t||(t=!!f&&this._noLineTerminatorAfterNode===f&&n.isLastChild(f,e)),t&&(null!=(o=e.trailingComments)&&o.some(b)?p(e)&&(T=!0):(l=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=e))),T&&(this.tokenChar(40),S&&this.indent(),this._endsWithInnerRaw=!1,this.tokenContext&n.TokenContext.forInOrInitHeadAccumulate&&(u=this.tokenContext,this.tokenContext=n.TokenContext.normal),l=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null),this._lastCommentLine=0,this._printLeadingComments(e,f);let E="Program"===c||"File"===c?null:e.loc;this.exactSource(E,m.bind(this,e,f)),T?(this._printTrailingComments(e,f),S&&(this.dedent(),this.newline()),this.tokenChar(41),this._noLineTerminator=t,u&&(this.tokenContext=u)):t&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(e,f)):this._printTrailingComments(e,f,i),this._currentNode=f,d.concise=h,this._insideAux=y,void 0!==l&&(this._noLineTerminatorAfterNode=l),this._endsWithInnerRaw=!1}_maybeAddAuxComment(e){e&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;let e=this.format.auxiliaryCommentBefore;e&&this._printComment({type:"CommentBlock",value:e},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;let e=this.format.auxiliaryCommentAfter;e&&this._printComment({type:"CommentBlock",value:e},0)}getPossibleRaw(e){let t=e.extra;if((null==t?void 0:t.raw)!=null&&null!=t.rawValue&&e.value===t.rawValue)return t.raw}printJoin(e,t,i,r,n,s,a){var o,l,p;if(!(null!=e&&e.length))return;if(null==i&&this.format.retainLines){let t=null==(o=e[0].loc)?void 0:o.start.line;null!=t&&t!==this._buf.getCurrentLine()&&(i=!0)}i&&this.indent();let u={nextNodeStartLine:0},c=null==r?void 0:r.bind(this),d=e.length;for(let i=0;i<d;i++){let r=e[i];r&&(t&&this._printNewline(0===i,u),this.print(r,void 0,a||0),null==s||s(r,i),null!=c&&(i<d-1?c(i,!1):n&&c(i,!0)),t&&(null!=(l=r.trailingComments)&&l.length||(this._lastCommentLine=0),i+1===d?this.newline(1):(u.nextNodeStartLine=(null==(p=e[i+1].loc)?void 0:p.start.line)||0,this._printNewline(!0,u))))}i&&this.dedent()}printAndIndentOnComments(e){let t=e.leadingComments&&e.leadingComments.length>0;t&&this.indent(),this.print(e),t&&this.dedent()}printBlock(e){let t=e.body;"EmptyStatement"!==t.type&&this.space(),this.print(t)}_printTrailingComments(e,t,i){let{innerComments:r,trailingComments:n}=e;null!=r&&r.length&&this._printComments(2,r,e,t,i),null!=n&&n.length&&this._printComments(2,n,e,t,i)}_printLeadingComments(e,t){let i=e.leadingComments;null!=i&&i.length&&this._printComments(0,i,e,t)}_maybePrintInnerComments(e,t){if(this._endsWithInnerRaw){var i;this.printInnerComments(null==(i=this.tokenMap)?void 0:i.findMatching(this._currentNode,e,t))}this._endsWithInnerRaw=!0,this._indentInnerComments=!0}printInnerComments(e){let t=this._currentNode,i=t.innerComments;if(!(null!=i&&i.length))return;let r=this.endsWith(32),n=this._indentInnerComments,s=this._printedComments.size;n&&this.indent(),this._printComments(1,i,t,void 0,void 0,e),r&&s!==this._printedComments.size&&this.space(),n&&this.dedent()}noIndentInnerCommentsHere(){this._indentInnerComments=!1}printSequence(e,t,i){this.printJoin(e,!0,null!=t&&t,void 0,void 0,void 0,i)}printList(e,t,i,r,n,s){this.printJoin(e,i,r,null!=n?n:E,t,s)}shouldPrintTrailingComma(e){if(!this.tokenMap)return null;let t=this.tokenMap.findLastIndex(this._currentNode,t=>this.tokenMap.matchesOriginal(t,e));return t<=0?null:this.tokenMap.matchesOriginal(this._tokens[t-1],",")}_printNewline(e,t){let i=this.format;if(i.retainLines||i.compact)return;if(i.concise)return void this.space();if(!e)return;let r=t.nextNodeStartLine,n=this._lastCommentLine;if(r>0&&n>0){let e=r-n;if(e>=0)return void this.newline(e||1)}this._buf.hasContent()&&this.newline(1)}_shouldPrintComment(e,t){if(e.ignore||this._printedComments.has(e))return 0;if(this._noLineTerminator&&T.test(e.value))return 2;if(t&&this.tokenMap){let i=this.tokenMap.find(this._currentNode,t=>t.value===e.value);if(i&&i.start>t.start)return 2}return+(this._printedComments.add(e),!!this.format.shouldPrintComment(e.value))}_printComment(e,t){let i,r=this._noLineTerminator,n="CommentBlock"===e.type,s=n&&1!==t&&!this._noLineTerminator;s&&this._buf.hasContent()&&2!==t&&this.newline(1);let a=this.getLastChar();if(91!==a&&123!==a&&40!==a&&this.space(),n){if(i=`/*${e.value}*/`,this.format.indent.adjustMultilineComment){var o;let t=null==(o=e.loc)?void 0:o.start.column;if(t){let e=RegExp("\\n\\s{1,"+t+"}","g");i=i.replace(e,"\n")}if(this.format.concise)i=i.replace(/\n(?!$)/g,`
3
+ `);else{let e=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent(47)||this.format.retainLines)&&(e+=this._getIndent()),i=i.replace(/\n(?!$)/g,`
4
+ ${" ".repeat(e)}`)}}}else i=r?`/*${e.value}*/`:`//${e.value}`;if(this._endsWithDiv&&this._space(),this.tokenMap){let{_printSemicolonBeforeNextToken:t,_printSemicolonBeforeNextNode:r}=this;this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1,this.source("start",e.loc),this._append(i,n),this._printSemicolonBeforeNextNode=r,this._printSemicolonBeforeNextToken=t}else this.source("start",e.loc),this._append(i,n);n||r||this.newline(1,!0),s&&3!==t&&this.newline(1)}_printComments(e,t,i,r,n=0,s){let a=i.loc,o=t.length,l=!!a,p=l?a.start.line:0,f=l?a.end.line:0,y=0,T=0,b=this._noLineTerminator?function(){}:this.newline.bind(this);for(let a=0;a<o;a++){let x=t[a],S=this._shouldPrintComment(x,s);if(2===S){l=!1;break}if(l&&x.loc&&1===S){let t=x.loc.start.line,i=x.loc.end.line;if(0===e){let e=0;0===a?this._buf.hasContent()&&("CommentLine"===x.type||t!==i)&&(e=T=1):e=t-y,y=i,b(e),this._printComment(x,1),a+1===o&&(b(Math.max(p-y,T)),y=p)}else if(1===e){let e=t-(0===a?p:y);y=i,b(e),this._printComment(x,1),a+1===o&&(b(Math.min(1,f-y)),y=f)}else{let e=t-(0===a?f-n:y);y=i,b(e),this._printComment(x,1)}}else{if(l=!1,1!==S)continue;if(1===o){let t=x.loc?x.loc.start.line===x.loc.end.line:!g.test(x.value),n=t&&!c(i)&&!d(r)&&!h(r)&&!m(i);0===e?this._printComment(x,n&&"ObjectExpression"!==i.type||t&&u(r,{body:i})?1:0):n&&2===e?this._printComment(x,1):this._printComment(x,0)}else 1!==e||"ObjectExpression"===i.type&&i.properties.length>1||"ClassBody"===i.type||"TSInterfaceBody"===i.type?this._printComment(x,0):this._printComment(x,0===a?2:3*(a===o-1))}}2===e&&l&&y&&(this._lastCommentLine=y)}}function E(e,t){this.token(",",!1,e),t||this.space()}Object.assign(S.prototype,o),(0,l.addDeprecatedGenerators)(S),t.default=S},9305(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(75267),n=i(41969);t.default=class{constructor(e,t){var i,s;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=null;let a=this._map=new r.GenMapping({sourceRoot:e.sourceRoot});if(this._sourceFileName=null==(i=e.sourceFileName)?void 0:i.replace(/\\/g,"/"),this._rawMappings=void 0,e.inputSourceMap){this._inputMap=new n.TraceMap(e.inputSourceMap);let t=this._inputMap.resolvedSources;if(t.length)for(let e=0;e<t.length;e++)(0,r.setSourceContent)(a,t[e],null==(s=this._inputMap.sourcesContent)?void 0:s[e])}if("string"!=typeof t||e.inputSourceMap){if("object"==typeof t)for(let e of Object.keys(t))(0,r.setSourceContent)(a,e.replace(/\\/g,"/"),t[e])}else(0,r.setSourceContent)(a,this._sourceFileName,t)}get(){return(0,r.toEncodedMap)(this._map)}getDecoded(){return(0,r.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,r.allMappings)(this._map))}mark(e,t,i,s,a,o){var l;let p;if(this._rawMappings=void 0,null!=t)if(this._inputMap){if(!(p=(0,n.originalPositionFor)(this._inputMap,{line:t,column:i})).name&&a){let e=(0,n.originalPositionFor)(this._inputMap,a);e.name&&(s=e.name)}}else p={name:null,source:(null==o?void 0:o.replace(/\\/g,"/"))||this._sourceFileName,line:t,column:i};(0,r.maybeAddMapping)(this._map,{name:s,generated:e,source:null==(l=p)?void 0:l.source,original:p})}}},76697(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.TokenMap=void 0;let{traverseFast:r,VISITOR_KEYS:n}=i(58135);t.TokenMap=class{constructor(e,t,i){this._tokens=void 0,this._source=void 0,this._nodesToTokenIndexes=new Map,this._nodesOccurrencesCountCache=new Map,this._tokensCache=new Map,this._tokens=t,this._source=i,r(e,e=>{let t=this._getTokensIndexesOfNode(e);t.length>0&&this._nodesToTokenIndexes.set(e,t)}),this._tokensCache.clear()}has(e){return this._nodesToTokenIndexes.has(e)}getIndexes(e){return this._nodesToTokenIndexes.get(e)}find(e,t){let i=this._nodesToTokenIndexes.get(e);if(i)for(let e=0;e<i.length;e++){let r=i[e],n=this._tokens[r];if(t(n,r))return n}return null}findLastIndex(e,t){let i=this._nodesToTokenIndexes.get(e);if(i)for(let e=i.length-1;e>=0;e--){let r=i[e];if(t(this._tokens[r],r))return r}return -1}findMatching(e,t,i=0){let r=this._nodesToTokenIndexes.get(e);if(r){let n=0,s=i;if(s>1){let r=this._nodesOccurrencesCountCache.get(e);r&&r.test===t&&r.count<s&&(n=r.i+1,i-=r.count+1)}for(;n<r.length;n++){let a=this._tokens[r[n]];if(this.matchesOriginal(a,t)){if(0===i)return s>0&&this._nodesOccurrencesCountCache.set(e,{test:t,count:s,i:n}),a;i--}}}return null}matchesOriginal(e,t){return e.end-e.start===t.length&&(null!=e.value?e.value===t:this._source.startsWith(t,e.start))}startMatches(e,t){let i=this._nodesToTokenIndexes.get(e);if(!i)return!1;let r=this._tokens[i[0]];return r.start===e.start&&this.matchesOriginal(r,t)}endMatches(e,t){let i=this._nodesToTokenIndexes.get(e);if(!i)return!1;let r=this._tokens[i[i.length-1]];return r.end===e.end&&this.matchesOriginal(r,t)}_getTokensIndexesOfNode(e){if(null==e.start||null==e.end)return[];let{first:t,last:i}=this._findTokensOfNode(e,0,this._tokens.length-1),r=t,s=function*(e){if("TemplateLiteral"===e.type){yield e.quasis[0];for(let t=1;t<e.quasis.length;t++)yield e.expressions[t-1],yield e.quasis[t];return}for(let t of n[e.type]){let i=e[t];i&&(Array.isArray(i)?yield*i:yield i)}}(e);("ExportNamedDeclaration"===e.type||"ExportDefaultDeclaration"===e.type)&&e.declaration&&"ClassDeclaration"===e.declaration.type&&s.next();let a=[];for(let e of s){if(null==e||null==e.start||null==e.end)continue;let t=this._findTokensOfNode(e,r,i),n=t.first;for(let e=r;e<n;e++)a.push(e);r=t.last+1}for(let e=r;e<=i;e++)a.push(e);return a}_findTokensOfNode(e,t,i){let r=this._tokensCache.get(e);if(r)return r;let n=this._findFirstTokenOfNode(e.start,t,i),s=this._findLastTokenOfNode(e.end,n,i);return this._tokensCache.set(e,{first:n,last:s}),{first:n,last:s}}_findFirstTokenOfNode(e,t,i){for(;t<=i;){let r=i+t>>1;if(e<this._tokens[r].start)i=r-1;else{if(!(e>this._tokens[r].start))return r;t=r+1}}return t}_findLastTokenOfNode(e,t,i){for(;t<=i;){let r=i+t>>1;if(e<this._tokens[r].end)i=r-1;else{if(!(e>this._tokens[r].end))return r;t=r+1}}return i}}},80672(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.readCodePoint=p,t.readInt=l,t.readStringContents=function(e,t,i,r,n,s){let a=i,l=r,u=n,c="",d=null,h=i,{length:m}=t;for(;;){var f,y,g,T;if(i>=m){s.unterminated(a,l,u),c+=t.slice(h,i);break}let b=t.charCodeAt(i);if(f=e,y=b,g=t,T=i,"template"===f?96===y||36===y&&123===g.charCodeAt(T+1):y===("double"===f?34:39)){c+=t.slice(h,i);break}if(92===b){c+=t.slice(h,i);let a=function(e,t,i,r,n,s){let a=!n;t++;let l=e=>({pos:t,ch:e,lineStart:i,curLine:r}),u=e.charCodeAt(t++);switch(u){case 110:return l("\n");case 114:return l("\r");case 120:{let n;return{code:n,pos:t}=o(e,t,i,r,2,!1,a,s),l(null===n?null:String.fromCharCode(n))}case 117:{let n;return{code:n,pos:t}=p(e,t,i,r,a,s),l(null===n?null:String.fromCodePoint(n))}case 116:return l(" ");case 98:return l("\b");case 118:return l("\v");case 102:return l("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:i=t,++r;case 8232:case 8233:return l("");case 56:case 57:if(n)return l(null);s.strictNumericEscape(t-1,i,r);default:if(u>=48&&u<=55){let a=t-1,o=/^[0-7]+/.exec(e.slice(a,t+2))[0],p=parseInt(o,8);p>255&&(p=parseInt(o=o.slice(0,-1),8)),t+=o.length-1;let u=e.charCodeAt(t);if("0"!==o||56===u||57===u)if(n)return l(null);else s.strictNumericEscape(a,i,r);return l(String.fromCharCode(p))}return l(String.fromCharCode(u))}}(t,i,r,n,"template"===e,s);null!==a.ch||d?c+=a.ch:d={pos:i,lineStart:r,curLine:n},({pos:i,lineStart:r,curLine:n}=a),h=i}else 8232===b||8233===b?(++i,++n,r=i):10===b||13===b?"template"===e?(c+=t.slice(h,i)+"\n",++i,13===b&&10===t.charCodeAt(i)&&++i,++n,h=r=i):s.unterminated(a,l,u):++i}return{pos:i,str:c,firstInvalidLoc:d,lineStart:r,curLine:n,containsInvalid:!!d}};let i={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},r=e=>48===e||49===e,n=e=>e>=48&&e<=55,s=e=>e>=48&&e<=57,a=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102;function o(e,t,i,r,n,s,a,o){let p,u=t;return{n:p,pos:t}=l(e,t,i,r,16,n,s,!1,o,!a),null===p&&(a?o.invalidEscapeSequence(u,i,r):t=u-1),{code:p,pos:t}}function l(e,t,o,l,p,u,c,d,h,m){let f=t,y=16===p?i.hex:i.decBinOct,g=16===p?a:10===p?s:8===p?n:r,T=!1,b=0;for(let i=0,r=null==u?1/0:u;i<r;++i){let i,r=e.charCodeAt(t);if(95===r&&"bail"!==d){let i=e.charCodeAt(t-1),r=e.charCodeAt(t+1);if(d){if(Number.isNaN(r)||!g(r)||y.has(i)||y.has(r)){if(m)return{n:null,pos:t};h.unexpectedNumericSeparator(t,o,l)}}else{if(m)return{n:null,pos:t};h.numericSeparatorInEscapeSequence(t,o,l)}++t;continue}if(r>=97)i=r-97+10;else if(r>=65)i=r-65+10;else i=r>=48&&r<=57?r-48:1/0;if(i>=p)if(i<=9&&m)return{n:null,pos:t};else if(i<=9&&h.invalidDigit(t,o,l,p))i=0;else if(c)i=0,T=!0;else break;++t,b=b*p+i}return t===f||null!=u&&t-f!==u||T?{n:null,pos:t}:{n:b,pos:t}}function p(e,t,i,r,n,s){let a;if(123===e.charCodeAt(t)){if(++t,{code:a,pos:t}=o(e,t,i,r,e.indexOf("}",t)-t,!0,n,s),++t,null!==a&&a>1114111)if(!n)return{code:null,pos:t};else s.invalidCodePoint(t,i,r)}else({code:a,pos:t}=o(e,t,i,r,4,!1,n,s));return{code:a,pos:t}}},41628(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isIdentifierChar=u,t.isIdentifierName=function(e){let t=!0;for(let i=0;i<e.length;i++){let r=e.charCodeAt(i);if((64512&r)==55296&&i+1<e.length){let t=e.charCodeAt(++i);(64512&t)==56320&&(r=65536+((1023&r)<<10)+(1023&t))}if(t){if(t=!1,!p(r))return!1}else if(!u(r))return!1}return!t},t.isIdentifierStart=p;let i="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",r="\xb7̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",n=RegExp("["+i+"]"),s=RegExp("["+i+r+"]");let a=[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,7,25,39,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,5,57,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,24,43,261,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,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,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,208,30,2,2,2,1,2,6,3,4,10,1,225,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,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],o=[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,78,5,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,199,7,137,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,55,9,266,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,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function l(e,t){let i=65536;for(let r=0,n=t.length;r<n&&!((i+=t[r])>e);r+=2)if((i+=t[r+1])>=e)return!0;return!1}function p(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&n.test(String.fromCharCode(e)):l(e,a)))}function u(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&s.test(String.fromCharCode(e)):l(e,a)||l(e,o))))}},14007(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isIdentifierChar",{enumerable:!0,get:function(){return r.isIdentifierChar}}),Object.defineProperty(t,"isIdentifierName",{enumerable:!0,get:function(){return r.isIdentifierName}}),Object.defineProperty(t,"isIdentifierStart",{enumerable:!0,get:function(){return r.isIdentifierStart}}),Object.defineProperty(t,"isKeyword",{enumerable:!0,get:function(){return n.isKeyword}}),Object.defineProperty(t,"isReservedWord",{enumerable:!0,get:function(){return n.isReservedWord}}),Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return n.isStrictBindOnlyReservedWord}}),Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:!0,get:function(){return n.isStrictBindReservedWord}}),Object.defineProperty(t,"isStrictReservedWord",{enumerable:!0,get:function(){return n.isStrictReservedWord}});var r=i(41628),n=i(82364)},82364(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isKeyword=function(e){return i.has(e)},t.isReservedWord=s,t.isStrictBindOnlyReservedWord=o,t.isStrictBindReservedWord=function(e,t){return a(e,t)||o(e)},t.isStrictReservedWord=a;let i=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"]),r=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),n=new Set(["eval","arguments"]);function s(e,t){return t&&"await"===e||"enum"===e}function a(e,t){return s(e,t)||r.has(e)}function o(e){return n.has(e)}},46773(e,t){Object.defineProperty(t,"__esModule",{value:!0});class i{constructor(e,t,i){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=i}}class r{constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=t}}function n(e,t){let{line:r,column:n,index:s}=e;return new i(r,n+t,s+t)}let s="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",a={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"},o=e=>"UpdateExpression"===e.type?a.UpdateExpression[`${e.prefix}`]:a[e.type],l=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var p=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:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${o({type:e})}; 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.'});let u=["message"];function c(e,t,i){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:i})}function d(e,t){if(Array.isArray(e))return t=>d(t,e[0]);let r={};for(let n of Object.keys(e)){let s=e[n],a="string"==typeof s?{message:()=>s}:"function"==typeof s?{message:s}:s,{message:o}=a,l=function(e,t){if(null==e)return{};var i={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;i[r]=e[r]}return i}(a,u),p="string"==typeof o?()=>o:o;r[n]=function({toMessage:e,code:t,reasonCode:r,syntaxPlugin:n}){let s="MissingPlugin"===r||"MissingOneOfPlugins"===r;{let e={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};e[r]&&(r=e[r])}return function a(o,l){let p=SyntaxError();return p.code=t,p.reasonCode=r,p.loc=o,p.pos=o.index,p.syntaxPlugin=n,s&&(p.missingPlugin=l.missingPlugin),c(p,"clone",function(e={}){var t;let{line:r,column:n,index:s}=null!=(t=e.loc)?t:o;return a(new i(r,n,s),Object.assign({},l,e.details))}),c(p,"details",l),Object.defineProperty(p,"message",{configurable:!0,get(){let t=`${e(l)} (${o.line}:${o.column})`;return this.message=t,t},set(e){Object.defineProperty(this,"message",{value:e,writable:!0})}}),p}}(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:n,toMessage:p},t?{syntaxPlugin:t}:{},l))}return r}let h=Object.assign({},d({ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:s},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:s}}),d({AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",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:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.
5
+ - Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${"ForInStatement"===e?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:e})=>`Unsyntactic ${"BreakStatement"===e?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",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:e})=>`A string literal cannot be used as an imported binding.
6
+ - Did you mean \`import { "${e}" 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:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${o(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${o(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${o(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(e=>JSON.stringify(e)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(e=>JSON.stringify(e)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,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:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",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:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."}),d({StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."}),d({ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:e})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(e)}\`.`}),d`pipelineOperator`(p)),{defineProperty:m}=Object,f=(e,t)=>{e&&m(e,t,{enumerable:!1,value:e[t]})};function y(e){return f(e.loc.start,"index"),f(e.loc.end,"index"),e}class g{constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}}let T={brace:new g("{"),j_oTag:new g("<tag"),j_cTag:new g("</tag"),j_expr:new g("<tag>...</tag>",!0)};T.template=new g("`",!0);class b{constructor(e,t={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=null!=t.binop?t.binop:null,this.updateContext=null}}let x=new Map;function S(e,t={}){t.keyword=e;let i=I(e,t);return x.set(e,i),i}function E(e,t){return I(e,{beforeExpr:!0,binop:t})}let A=-1,P=[],v=[],D=[],C=[],w=[],_=[];function I(e,t={}){var i,r,n,s;return++A,v.push(e),D.push(null!=(i=t.binop)?i:-1),C.push(null!=(r=t.beforeExpr)&&r),w.push(null!=(n=t.startsExpr)&&n),_.push(null!=(s=t.prefix)&&s),P.push(new b(e,t)),A}function k(e,t={}){var i,r,n,s;return++A,x.set(e,A),v.push(e),D.push(null!=(i=t.binop)?i:-1),C.push(null!=(r=t.beforeExpr)&&r),w.push(null!=(n=t.startsExpr)&&n),_.push(null!=(s=t.prefix)&&s),P.push(new b("name",t)),A}let N={bracketL:I("[",{beforeExpr:!0,startsExpr:!0}),bracketHashL:I("#[",{beforeExpr:!0,startsExpr:!0}),bracketBarL:I("[|",{beforeExpr:!0,startsExpr:!0}),bracketR:I("]"),bracketBarR:I("|]"),braceL:I("{",{beforeExpr:!0,startsExpr:!0}),braceBarL:I("{|",{beforeExpr:!0,startsExpr:!0}),braceHashL:I("#{",{beforeExpr:!0,startsExpr:!0}),braceR:I("}"),braceBarR:I("|}"),parenL:I("(",{beforeExpr:!0,startsExpr:!0}),parenR:I(")"),comma:I(",",{beforeExpr:!0}),semi:I(";",{beforeExpr:!0}),colon:I(":",{beforeExpr:!0}),doubleColon:I("::",{beforeExpr:!0}),dot:I("."),question:I("?",{beforeExpr:!0}),questionDot:I("?."),arrow:I("=>",{beforeExpr:!0}),template:I("template"),ellipsis:I("...",{beforeExpr:!0}),backQuote:I("`",{startsExpr:!0}),dollarBraceL:I("${",{beforeExpr:!0,startsExpr:!0}),templateTail:I("...`",{startsExpr:!0}),templateNonTail:I("...${",{beforeExpr:!0,startsExpr:!0}),at:I("@"),hash:I("#",{startsExpr:!0}),interpreterDirective:I("#!..."),eq:I("=",{beforeExpr:!0,isAssign:!0}),assign:I("_=",{beforeExpr:!0,isAssign:!0}),slashAssign:I("_=",{beforeExpr:!0,isAssign:!0}),xorAssign:I("_=",{beforeExpr:!0,isAssign:!0}),moduloAssign:I("_=",{beforeExpr:!0,isAssign:!0}),incDec:I("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),bang:I("!",{beforeExpr:!0,prefix:!0,startsExpr:!0}),tilde:I("~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),doubleCaret:I("^^",{startsExpr:!0}),doubleAt:I("@@",{startsExpr:!0}),pipeline:E("|>",0),nullishCoalescing:E("??",1),logicalOR:E("||",1),logicalAND:E("&&",2),bitwiseOR:E("|",3),bitwiseXOR:E("^",4),bitwiseAND:E("&",5),equality:E("==/!=/===/!==",6),lt:E("</>/<=/>=",7),gt:E("</>/<=/>=",7),relational:E("</>/<=/>=",7),bitShift:E("<</>>/>>>",8),bitShiftL:E("<</>>/>>>",8),bitShiftR:E("<</>>/>>>",8),plusMin:I("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:I("%",{binop:10,startsExpr:!0}),star:I("*",{binop:10}),slash:E("/",10),exponent:I("**",{beforeExpr:!0,binop:11,rightAssociative:!0}),_in:S("in",{beforeExpr:!0,binop:7}),_instanceof:S("instanceof",{beforeExpr:!0,binop:7}),_break:S("break"),_case:S("case",{beforeExpr:!0}),_catch:S("catch"),_continue:S("continue"),_debugger:S("debugger"),_default:S("default",{beforeExpr:!0}),_else:S("else",{beforeExpr:!0}),_finally:S("finally"),_function:S("function",{startsExpr:!0}),_if:S("if"),_return:S("return",{beforeExpr:!0}),_switch:S("switch"),_throw:S("throw",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_try:S("try"),_var:S("var"),_const:S("const"),_with:S("with"),_new:S("new",{beforeExpr:!0,startsExpr:!0}),_this:S("this",{startsExpr:!0}),_super:S("super",{startsExpr:!0}),_class:S("class",{startsExpr:!0}),_extends:S("extends",{beforeExpr:!0}),_export:S("export"),_import:S("import",{startsExpr:!0}),_null:S("null",{startsExpr:!0}),_true:S("true",{startsExpr:!0}),_false:S("false",{startsExpr:!0}),_typeof:S("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:S("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:S("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_do:S("do",{isLoop:!0,beforeExpr:!0}),_for:S("for",{isLoop:!0}),_while:S("while",{isLoop:!0}),_as:k("as",{startsExpr:!0}),_assert:k("assert",{startsExpr:!0}),_async:k("async",{startsExpr:!0}),_await:k("await",{startsExpr:!0}),_defer:k("defer",{startsExpr:!0}),_from:k("from",{startsExpr:!0}),_get:k("get",{startsExpr:!0}),_let:k("let",{startsExpr:!0}),_meta:k("meta",{startsExpr:!0}),_of:k("of",{startsExpr:!0}),_sent:k("sent",{startsExpr:!0}),_set:k("set",{startsExpr:!0}),_source:k("source",{startsExpr:!0}),_static:k("static",{startsExpr:!0}),_using:k("using",{startsExpr:!0}),_yield:k("yield",{startsExpr:!0}),_asserts:k("asserts",{startsExpr:!0}),_checks:k("checks",{startsExpr:!0}),_exports:k("exports",{startsExpr:!0}),_global:k("global",{startsExpr:!0}),_implements:k("implements",{startsExpr:!0}),_intrinsic:k("intrinsic",{startsExpr:!0}),_infer:k("infer",{startsExpr:!0}),_is:k("is",{startsExpr:!0}),_mixins:k("mixins",{startsExpr:!0}),_proto:k("proto",{startsExpr:!0}),_require:k("require",{startsExpr:!0}),_satisfies:k("satisfies",{startsExpr:!0}),_keyof:k("keyof",{startsExpr:!0}),_readonly:k("readonly",{startsExpr:!0}),_unique:k("unique",{startsExpr:!0}),_abstract:k("abstract",{startsExpr:!0}),_declare:k("declare",{startsExpr:!0}),_enum:k("enum",{startsExpr:!0}),_module:k("module",{startsExpr:!0}),_namespace:k("namespace",{startsExpr:!0}),_interface:k("interface",{startsExpr:!0}),_type:k("type",{startsExpr:!0}),_opaque:k("opaque",{startsExpr:!0}),name:I("name",{startsExpr:!0}),placeholder:I("%%",{startsExpr:!0}),string:I("string",{startsExpr:!0}),num:I("num",{startsExpr:!0}),bigint:I("bigint",{startsExpr:!0}),decimal:I("decimal",{startsExpr:!0}),regexp:I("regexp",{startsExpr:!0}),privateName:I("#name",{startsExpr:!0}),eof:I("eof"),jsxName:I("jsxName"),jsxText:I("jsxText",{beforeExpr:!0}),jsxTagStart:I("jsxTagStart",{startsExpr:!0}),jsxTagEnd:I("jsxTagEnd")};function O(e){return e>=93&&e<=133}function F(e){return e>=58&&e<=133}function L(e){return e>=58&&e<=137}function M(e){return e>=129&&e<=131}function B(e){return e>=58&&e<=92}function j(e){return e>=24&&e<=25}P[8].updateContext=e=>{e.pop()},P[5].updateContext=P[7].updateContext=P[23].updateContext=e=>{e.push(T.brace)},P[22].updateContext=e=>{e[e.length-1]===T.template?e.pop():e.push(T.template)},P[143].updateContext=e=>{e.push(T.j_expr,T.j_oTag)};let R="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",U="\xb7̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",V=RegExp("["+R+"]"),K=RegExp("["+R+U+"]");R=U=null;let 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,7,25,39,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,5,57,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,24,43,261,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,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,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,208,30,2,2,2,1,2,6,3,4,10,1,225,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,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],$=[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,78,5,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,199,7,137,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,55,9,266,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,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function W(e,t){let i=65536;for(let r=0,n=t.length;r<n&&!((i+=t[r])>e);r+=2)if((i+=t[r+1])>=e)return!0;return!1}function X(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&V.test(String.fromCharCode(e)):W(e,q)))}function z(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&K.test(String.fromCharCode(e)):W(e,q)||W(e,$))))}let J=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"]),Y=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),Q=new Set(["eval","arguments"]);function H(e,t){return t&&"await"===e||"enum"===e}function G(e,t){return H(e,t)||Y.has(e)}function Z(e,t){return G(e,t)||Q.has(e)}let ee=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"]);class et{constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=e}}class ei{constructor(e,t){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=t}get inTopLevel(){return(1&this.currentScope().flags)>0}get inFunction(){return(2&this.currentVarScopeFlags())>0}get allowSuper(){return(16&this.currentThisScopeFlags())>0}get allowDirectSuper(){return(32&this.currentThisScopeFlags())>0}get allowNewTarget(){return(512&this.currentThisScopeFlags())>0}get inClass(){return(64&this.currentThisScopeFlags())>0}get inClassAndNotInNonArrowFunction(){let e=this.currentThisScopeFlags();return(64&e)>0&&(2&e)==0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(128&t)return!0;if(1731&t)return!1}}get inNonArrowFunction(){return(2&this.currentThisScopeFlags())>0}get inBareCaseStatement(){return(256&this.currentScope().flags)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new et(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(130&e.flags||!this.parser.inModule&&1&e.flags)}declareName(e,t,i){let r=this.currentScope();if(8&t||16&t){this.checkRedeclarationInScope(r,e,t,i);let n=r.names.get(e)||0;16&t?n|=4:(r.firstLexicalName||(r.firstLexicalName=e),n|=2),r.names.set(e,n),8&t&&this.maybeExportDefined(r,e)}else if(4&t)for(let n=this.scopeStack.length-1;n>=0&&(r=this.scopeStack[n],this.checkRedeclarationInScope(r,e,t,i),r.names.set(e,1|(r.names.get(e)||0)),this.maybeExportDefined(r,e),!(1667&r.flags));--n);this.parser.inModule&&1&r.flags&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&1&e.flags&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,i,r){this.isRedeclaredInScope(e,t,i)&&this.parser.raise(h.VarRedeclaration,r,{identifierName:t})}isRedeclaredInScope(e,t,i){if(!(1&i))return!1;if(8&i)return e.names.has(t);let r=e.names.get(t)||0;return 16&i?(2&r)>0||!this.treatFunctionsAsVarInScope(e)&&(1&r)>0:(2&r)>0&&!(8&e.flags&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(4&r)>0}checkLocalExport(e){let{name:t}=e;this.scopeStack[0].names.has(t)||this.undefinedExports.set(t,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(1667&t)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(1731&t&&!(4&t))return t}}}class er extends et{constructor(...e){super(...e),this.declareFunctions=new Set}}class en extends ei{createScope(e){return new er(e)}declareName(e,t,i){let r=this.currentScope();if(2048&t){this.checkRedeclarationInScope(r,e,t,i),this.maybeExportDefined(r,e),r.declareFunctions.add(e);return}super.declareName(e,t,i)}isRedeclaredInScope(e,t,i){if(super.isRedeclaredInScope(e,t,i))return!0;if(2048&i&&!e.declareFunctions.has(t)){let i=e.names.get(t);return(4&i)>0||(2&i)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}}let es=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),ea=d`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:e})=>`Cannot overwrite reserved type ${e}.`,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:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:i})=>`Enum \`${e}\` has type \`${i}\`, so the initializer of \`${t}\` needs to be a ${i} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:i})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${i}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,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:e})=>`Unexpected reserved type ${e}.`,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:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function eo(e){return"type"===e.importKind||"typeof"===e.importKind}let el={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"},ep=/\*?\s*@((?:no)?flow)\b/,eu={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"Œ",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:"♦"},ec=RegExp(/\r\n|[\r\n\u2028\u2029]/.source,"g");function ed(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function eh(e,t,i){for(let r=t;r<i;r++)if(ed(e.charCodeAt(r)))return!0;return!1}let em=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ef=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g,ey=d`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function eg(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function eT(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return eT(e.object)+"."+eT(e.property);throw Error("Node had unexpected type: "+e.type)}class eb extends et{constructor(...e){super(...e),this.tsNames=new Map}}class ex extends ei{constructor(...e){super(...e),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new eb(e)}enter(e){1024===e&&this.importsStack.push(new Set),super.enter(e)}exit(){let e=super.exit();return 1024===e&&this.importsStack.pop(),e}hasImport(e,t){let i=this.importsStack.length;if(this.importsStack[i-1].has(e))return!0;if(!t&&i>1){for(let t=0;t<i-1;t++)if(this.importsStack[t].has(e))return!0}return!1}declareName(e,t,i){if(4096&t){this.hasImport(e,!0)&&this.parser.raise(h.VarRedeclaration,i,{identifierName:e}),this.importsStack[this.importsStack.length-1].add(e);return}let r=this.currentScope(),n=r.tsNames.get(e)||0;if(1024&t){this.maybeExportDefined(r,e),r.tsNames.set(e,16|n);return}super.declareName(e,t,i),2&t&&(1&t||(this.checkRedeclarationInScope(r,e,t,i),this.maybeExportDefined(r,e)),n|=1),256&t&&(n|=2),512&t&&(n|=4),128&t&&(n|=8),n&&r.tsNames.set(e,n)}isRedeclaredInScope(e,t,i){let r=e.tsNames.get(t);if((2&r)>0)return!(256&i)||!!(512&i)!=(4&r)>0;if(128&i&&(8&r)>0)if(2&e.names.get(t))return!!(1&i);else return!1;return!!(2&i)&&(1&r)>0||super.isRedeclaredInScope(e,t,i)}checkLocalExport(e){let{name:t}=e;if(this.hasImport(t))return;let i=this.scopeStack.length;for(let e=i-1;e>=0;e--){let i=this.scopeStack[e].tsNames.get(t);if((1&i)>0||(16&i)>0)return}super.checkLocalExport(e)}}class eS{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(2&this.currentFlags())>0}get hasYield(){return(1&this.currentFlags())>0}get hasReturn(){return(4&this.currentFlags())>0}get hasIn(){return(8&this.currentFlags())>0}}function eE(e,t){return 2*!!e|!!t}class eA{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if("string"==typeof e)return this.plugins.has(e);{let[t,i]=e;if(!this.hasPlugin(t))return!1;let r=this.plugins.get(t);for(let e of Object.keys(i))if((null==r?void 0:r[e])!==i[e])return!1;return!0}}getPluginOption(e,t){var i;return null==(i=this.plugins.get(e))?void 0:i[t]}}function eP(e,t){void 0===e.trailingComments?e.trailingComments=t:e.trailingComments.unshift(...t)}function ev(e,t){void 0===e.innerComments?e.innerComments=t:e.innerComments.unshift(...t)}function eD(e,t,i){let r=null,n=t.length;for(;null===r&&n>0;)r=t[--n];null===r||r.start>i.start?ev(e,i.comments):eP(r,i.comments)}class eC extends eA{addComment(e){this.filename&&(e.loc.filename=this.filename);let{commentsLen:t}=this.state;this.comments.length!==t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++}processComment(e){let{commentStack:t}=this.state,i=t.length;if(0===i)return;let r=i-1,n=t[r];n.start===e.end&&(n.leadingNode=e,r--);let{start:s}=e;for(;r>=0;r--){let i=t[r],n=i.end;if(n>s)i.containingNode=e,this.finalizeComment(i),t.splice(r,1);else{n===s&&(i.trailingNode=e);break}}}finalizeComment(e){var t,i;let{comments:r}=e;if(null!==e.leadingNode||null!==e.trailingNode)null!==e.leadingNode&&eP(e.leadingNode,r),null!==e.trailingNode&&(i=e.trailingNode,void 0===i.leadingComments?i.leadingComments=r:i.leadingComments.unshift(...r));else{let i=e.containingNode,n=e.start;if(44===this.input.charCodeAt(this.offsetToSourcePos(n)-1))switch(i.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":eD(i,i.properties,e);break;case"CallExpression":case"OptionalCallExpression":eD(i,i.arguments,e);break;case"ImportExpression":eD(i,[i.source,null!=(t=i.options)?t:null],e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":eD(i,i.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":eD(i,i.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":eD(i,i.specifiers,e);break;case"TSEnumDeclaration":case"TSEnumBody":eD(i,i.members,e);break;default:ev(i,r)}else ev(i,r)}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){let{commentStack:t}=this.state,{length:i}=t;if(0===i)return;let r=t[i-1];r.leadingNode===e&&(r.leadingNode=null)}takeSurroundingComments(e,t,i){let{commentStack:r}=this.state,n=r.length;if(0===n)return;let s=n-1;for(;s>=0;s--){let n=r[s],a=n.end;if(n.start===i)n.leadingNode=e;else if(a===t)n.trailingNode=e;else if(a<t)break}}}class ew{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=[T.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(1&this.flags)>0}set strict(e){e?this.flags|=1:this.flags&=-2}init({strictMode:e,sourceType:t,startIndex:r,startLine:n,startColumn:s}){this.strict=!1!==e&&(!0===e||"module"===t),this.startIndex=r,this.curLine=n,this.lineStart=-s,this.startLoc=this.endLoc=new i(n,s,r)}get maybeInArrowParameters(){return(2&this.flags)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(4&this.flags)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(8&this.flags)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(16&this.flags)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(32&this.flags)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(64&this.flags)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(128&this.flags)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get soloAwait(){return(256&this.flags)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(512&this.flags)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(1024&this.flags)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(2048&this.flags)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(4096&this.flags)>0}set hasTopLevelAwait(e){e?this.flags|=4096:this.flags&=-4097}curPosition(){return new i(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let e=new ew;return e.flags=this.flags,e.startIndex=this.startIndex,e.curLine=this.curLine,e.lineStart=this.lineStart,e.startLoc=this.startLoc,e.endLoc=this.endLoc,e.errors=this.errors.slice(),e.potentialArrowAt=this.potentialArrowAt,e.noArrowAt=this.noArrowAt.slice(),e.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),e.topicContext=this.topicContext,e.labels=this.labels.slice(),e.commentsLen=this.commentsLen,e.commentStack=this.commentStack.slice(),e.pos=this.pos,e.type=this.type,e.value=this.value,e.start=this.start,e.end=this.end,e.lastTokEndLoc=this.lastTokEndLoc,e.lastTokStartLoc=this.lastTokStartLoc,e.context=this.context.slice(),e.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,e.strictErrors=this.strictErrors,e.tokensLength=this.tokensLength,e}}let e_={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},eI=e=>48===e||49===e,ek=e=>e>=48&&e<=55,eN=e=>e>=48&&e<=57,eO=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102;function eF(e,t,i,r,n,s){let a=i,o=r,l=n,p="",u=null,c=i,{length:d}=t;for(;;){var h,m,f,y;if(i>=d){s.unterminated(a,o,l),p+=t.slice(c,i);break}let g=t.charCodeAt(i);if(h=e,m=g,f=t,y=i,"template"===h?96===m||36===m&&123===f.charCodeAt(y+1):m===("double"===h?34:39)){p+=t.slice(c,i);break}if(92===g){p+=t.slice(c,i);let a=function(e,t,i,r,n,s){let a=!n;t++;let o=e=>({pos:t,ch:e,lineStart:i,curLine:r}),l=e.charCodeAt(t++);switch(l){case 110:return o("\n");case 114:return o("\r");case 120:{let n;return{code:n,pos:t}=eL(e,t,i,r,2,!1,a,s),o(null===n?null:String.fromCharCode(n))}case 117:{let n;return{code:n,pos:t}=eB(e,t,i,r,a,s),o(null===n?null:String.fromCodePoint(n))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:i=t,++r;case 8232:case 8233:return o("");case 56:case 57:if(n)return o(null);s.strictNumericEscape(t-1,i,r);default:if(l>=48&&l<=55){let a=t-1,l=/^[0-7]+/.exec(e.slice(a,t+2))[0],p=parseInt(l,8);p>255&&(p=parseInt(l=l.slice(0,-1),8)),t+=l.length-1;let u=e.charCodeAt(t);if("0"!==l||56===u||57===u)if(n)return o(null);else s.strictNumericEscape(a,i,r);return o(String.fromCharCode(p))}return o(String.fromCharCode(l))}}(t,i,r,n,"template"===e,s);null!==a.ch||u?p+=a.ch:u={pos:i,lineStart:r,curLine:n},({pos:i,lineStart:r,curLine:n}=a),c=i}else 8232===g||8233===g?(++i,++n,r=i):10===g||13===g?"template"===e?(p+=t.slice(c,i)+"\n",++i,13===g&&10===t.charCodeAt(i)&&++i,++n,c=r=i):s.unterminated(a,o,l):++i}return{pos:i,str:p,firstInvalidLoc:u,lineStart:r,curLine:n,containsInvalid:!!u}}function eL(e,t,i,r,n,s,a,o){let l,p=t;return{n:l,pos:t}=eM(e,t,i,r,16,n,s,!1,o,!a),null===l&&(a?o.invalidEscapeSequence(p,i,r):t=p-1),{code:l,pos:t}}function eM(e,t,i,r,n,s,a,o,l,p){let u=t,c=16===n?e_.hex:e_.decBinOct,d=16===n?eO:10===n?eN:8===n?ek:eI,h=!1,m=0;for(let u=0,f=null==s?1/0:s;u<f;++u){let s,u=e.charCodeAt(t);if(95===u&&"bail"!==o){let n=e.charCodeAt(t-1),s=e.charCodeAt(t+1);if(o){if(Number.isNaN(s)||!d(s)||c.has(n)||c.has(s)){if(p)return{n:null,pos:t};l.unexpectedNumericSeparator(t,i,r)}}else{if(p)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,i,r)}++t;continue}if(u>=97)s=u-97+10;else if(u>=65)s=u-65+10;else s=u>=48&&u<=57?u-48:1/0;if(s>=n)if(s<=9&&p)return{n:null,pos:t};else if(s<=9&&l.invalidDigit(t,i,r,n))s=0;else if(a)s=0,h=!0;else break;++t,m=m*n+s}return t===u||null!=s&&t-u!==s||h?{n:null,pos:t}:{n:m,pos:t}}function eB(e,t,i,r,n,s){let a;if(123===e.charCodeAt(t)){if(++t,{code:a,pos:t}=eL(e,t,i,r,e.indexOf("}",t)-t,!0,n,s),++t,null!==a&&a>1114111)if(!n)return{code:null,pos:t};else s.invalidCodePoint(t,i,r)}else({code:a,pos:t}=eL(e,t,i,r,4,!1,n,s));return{code:a,pos:t}}function ej(e,t,r){return new i(r,e-t,e)}let eR=new Set([103,109,115,105,121,117,100,118]);class eU{constructor(e){let t=e.startIndex||0;this.type=e.type,this.value=e.value,this.start=t+e.start,this.end=t+e.end,this.loc=new r(e.startLoc,e.endLoc)}}class eV extends eC{constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(e,t,i,r)=>!!(2048&this.optionFlags)&&(this.raise(h.InvalidDigit,ej(e,t,i),{radix:r}),!0),numericSeparatorInEscapeSequence:this.errorBuilder(h.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(h.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(h.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(h.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,t,i)=>{this.recordStrictModeErrors(h.StrictNumericEscape,ej(e,t,i))},unterminated:(e,t,i)=>{throw this.raise(h.UnterminatedString,ej(e-1,t,i))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(h.StrictNumericEscape),unterminated:(e,t,i)=>{throw this.raise(h.UnterminatedTemplate,ej(e,t,i))}}),this.state=new ew,this.state.init(e),this.input=t,this.length=t.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),256&this.optionFlags&&this.pushToken(new eU(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return!!this.match(e)&&(this.next(),!0)}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){let e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return em.lastIndex=e,em.test(this.input)?em.lastIndex:e}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(e){return this.input.charCodeAt(this.nextTokenStartSince(e))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return ef.lastIndex=e,ef.test(this.input)?ef.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if((64512&t)==55296&&++e<this.input.length){let i=this.input.charCodeAt(e);(64512&i)==56320&&(t=65536+((1023&t)<<10)+(1023&i))}return t}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach(([e,t])=>this.raise(e,t)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length)?this.finishToken(140):this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;this.isLookahead||(t=this.state.curPosition());let i=this.state.pos,n=this.input.indexOf(e,i+2);if(-1===n)throw this.raise(h.UnterminatedComment,this.state.curPosition());for(this.state.pos=n+e.length,ec.lastIndex=i+2;ec.test(this.input)&&ec.lastIndex<=n;)++this.state.curLine,this.state.lineStart=ec.lastIndex;if(this.isLookahead)return;let s={type:"CommentBlock",value:this.input.slice(i+2,n),start:this.sourceToOffsetPos(i),end:this.sourceToOffsetPos(n+e.length),loc:new r(t,this.state.curPosition())};return 256&this.optionFlags&&this.pushToken(s),s}skipLineComment(e){let t,i=this.state.pos;this.isLookahead||(t=this.state.curPosition());let n=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!ed(n)&&++this.state.pos<this.length;)n=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let s=this.state.pos,a={type:"CommentLine",value:this.input.slice(i+e,s),start:this.sourceToOffsetPos(i),end:this.sourceToOffsetPos(s),loc:new r(t,this.state.curPosition())};return 256&this.optionFlags&&this.pushToken(a),a}skipSpace(){let e=this.state.pos,t=4096&this.optionFlags?[]:null;e:for(;this.state.pos<this.length;){let i=this.input.charCodeAt(this.state.pos);switch(i){case 32:case 160:case 9:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let e=this.skipBlockComment("*/");void 0!==e&&(this.addComment(e),null==t||t.push(e));break}case 47:{let e=this.skipLineComment(2);void 0!==e&&(this.addComment(e),null==t||t.push(e));break}default:break e}break;default:if(function(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}(i))++this.state.pos;else if(45===i&&!this.inModule&&8192&this.optionFlags){let i=this.state.pos;if(45===this.input.charCodeAt(i+1)&&62===this.input.charCodeAt(i+2)&&(0===e||this.state.lineStart>e)){let e=this.skipLineComment(3);void 0!==e&&(this.addComment(e),null==t||t.push(e))}else break e}else if(60===i&&!this.inModule&&8192&this.optionFlags){let e=this.state.pos;if(33===this.input.charCodeAt(e+1)&&45===this.input.charCodeAt(e+2)&&45===this.input.charCodeAt(e+3)){let e=this.skipLineComment(4);void 0!==e&&(this.addComment(e),null==t||t.push(e))}else break e}else break e}}if((null==t?void 0:t.length)>0){let i=this.state.pos,r={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(i),comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(r)}}finishToken(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let i=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(i)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;let e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(h.UnexpectedDigitAfterHash,this.state.curPosition());if(123===t||91===t&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"bar"===this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===t?h.RecordExpressionHashIncorrectStartSyntaxType:h.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,123===t?this.finishToken(7):this.finishToken(1)}else X(t)?(++this.state.pos,this.finishToken(139,this.readWord1(t))):92===t?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let e=this.input.charCodeAt(this.state.pos+1);e>=48&&e<=57?this.readNumber(!0):46===e&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(0!==this.state.pos||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(33!==e)return!1;let t=this.state.pos;for(this.state.pos+=1;!ed(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);let i=this.input.slice(t+2,this.state.pos);return this.finishToken(28,i),!0}readToken_mult_modulo(e){let t=42===e?55:54,i=1,r=this.input.charCodeAt(this.state.pos+1);42===e&&42===r&&(i++,r=this.input.charCodeAt(this.state.pos+2),t=57),61!==r||this.state.inType||(i++,t=37===e?33:30),this.finishOp(t,i)}readToken_pipe_amp(e){let t=this.input.charCodeAt(this.state.pos+1);if(t===e)return void(61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(30,3):this.finishOp(124===e?41:42,2));if(124===e){if(62===t)return void this.finishOp(39,2);if(this.hasPlugin("recordAndTuple")&&125===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(h.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&93===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(h.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}61===t?this.finishOp(30,2):this.finishOp(124===e?43:45,1)}readToken_caret(){let e=this.input.charCodeAt(this.state.pos+1);61!==e||this.state.inType?94===e&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),94===this.input.codePointAt(this.state.pos)&&this.unexpected()):this.finishOp(44,1):this.finishOp(32,2)}readToken_atSign(){64===this.input.charCodeAt(this.state.pos+1)&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(e){let t=this.input.charCodeAt(this.state.pos+1);t===e?this.finishOp(34,2):61===t?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);60===t?61===this.input.charCodeAt(e+2)?this.finishOp(30,3):this.finishOp(51,2):61===t?this.finishOp(49,2):this.finishOp(47,1)}readToken_gt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(62===t){let t=62===this.input.charCodeAt(e+2)?3:2;return 61===this.input.charCodeAt(e+t)?void this.finishOp(30,t+1):void this.finishOp(52,t)}61===t?this.finishOp(49,2):this.finishOp(48,1)}readToken_eq_excl(e){let t=this.input.charCodeAt(this.state.pos+1);if(61===t)return void this.finishOp(46,61===this.input.charCodeAt(this.state.pos+2)?3:2);if(61===e&&62===t){this.state.pos+=2,this.finishToken(19);return}this.finishOp(61===e?29:35,1)}readToken_question(){let e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);63===e?61===t?this.finishOp(30,3):this.finishOp(40,2):46!==e||t>=48&&t<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))}getTokenFromCode(e){switch(e){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(h.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")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(h.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let e=this.input.charCodeAt(this.state.pos+1);if(120===e||88===e)return void this.readRadixNumber(16);if(111===e||79===e)return void this.readRadixNumber(8);if(98===e||66===e)return void this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(e);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(X(e))return void this.readWord(e)}throw this.raise(h.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){let i=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,i)}readRegexp(){let e,t,i=this.state.startLoc,r=this.state.start+1,{pos:s}=this.state;for(;;++s){if(s>=this.length)throw this.raise(h.UnterminatedRegExp,n(i,1));let r=this.input.charCodeAt(s);if(ed(r))throw this.raise(h.UnterminatedRegExp,n(i,1));if(e)e=!1;else{if(91===r)t=!0;else if(93===r&&t)t=!1;else if(47===r&&!t)break;e=92===r}}let a=this.input.slice(r,s);++s;let o="",l=()=>n(i,s+2-r);for(;s<this.length;){let e=this.codePointAtPos(s),t=String.fromCharCode(e);if(eR.has(e))118===e?o.includes("u")&&this.raise(h.IncompatibleRegExpUVFlags,l()):117===e&&o.includes("v")&&this.raise(h.IncompatibleRegExpUVFlags,l()),o.includes(t)&&this.raise(h.DuplicateRegExpFlags,l());else if(z(e)||92===e)this.raise(h.MalformedRegExpFlags,l());else break;++s,o+=t}this.state.pos=s,this.finishToken(138,{pattern:a,flags:o})}readInt(e,t,i=!1,r=!0){let{n,pos:s}=eM(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,i,r,this.errorHandlers_readInt,!1);return this.state.pos=s,n}readRadixNumber(e){let t=this.state.pos,i=this.state.curPosition(),r=!1;this.state.pos+=2;let s=this.readInt(e);null==s&&this.raise(h.InvalidDigit,n(i,2),{radix:e});let a=this.input.charCodeAt(this.state.pos);if(110===a)++this.state.pos,r=!0;else if(109===a)throw this.raise(h.InvalidDecimal,i);if(X(this.codePointAtPos(this.state.pos)))throw this.raise(h.NumberIdentifier,this.state.curPosition());if(r){let e=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,e);return}this.finishToken(135,s)}readNumber(e){let t=this.state.pos,i=this.state.curPosition(),r=!1,s=!1,a=!1,o=!1;e||null!==this.readInt(10)||this.raise(h.InvalidNumber,this.state.curPosition());let l=this.state.pos-t>=2&&48===this.input.charCodeAt(t);if(l){let e=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(h.StrictOctalLiteral,i),!this.state.strict){let t=e.indexOf("_");t>0&&this.raise(h.ZeroDigitNumericSeparator,n(i,t))}o=l&&!/[89]/.test(e)}let p=this.input.charCodeAt(this.state.pos);if(46!==p||o||(++this.state.pos,this.readInt(10),r=!0,p=this.input.charCodeAt(this.state.pos)),69!==p&&101!==p||o||((43===(p=this.input.charCodeAt(++this.state.pos))||45===p)&&++this.state.pos,null===this.readInt(10)&&this.raise(h.InvalidOrMissingExponent,i),r=!0,a=!0,p=this.input.charCodeAt(this.state.pos)),110===p&&((r||l)&&this.raise(h.InvalidBigIntLiteral,i),++this.state.pos,s=!0),109===p){this.expectPlugin("decimal",this.state.curPosition()),(a||l)&&this.raise(h.InvalidDecimal,i),++this.state.pos;var u=!0}if(X(this.codePointAtPos(this.state.pos)))throw this.raise(h.NumberIdentifier,this.state.curPosition());let c=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(s)return void this.finishToken(136,c);if(u)return void this.finishToken(137,c);let d=o?parseInt(c,8):parseFloat(c);this.finishToken(135,d)}readCodePoint(e){let{code:t,pos:i}=eB(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=i,t}readString(e){let{str:t,pos:i,curLine:r,lineStart:n}=eF(34===e?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=i+1,this.state.lineStart=n,this.state.curLine=r,this.finishToken(134,t)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let e=this.input[this.state.pos],{str:t,firstInvalidLoc:r,pos:n,curLine:s,lineStart:a}=eF("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=n+1,this.state.lineStart=a,this.state.curLine=s,r&&(this.state.firstInvalidTemplateEscapePos=new i(r.curLine,r.pos-r.lineStart,this.sourceToOffsetPos(r.pos))),96===this.input.codePointAt(n)?this.finishToken(24,r?null:e+t+"`"):(this.state.pos++,this.finishToken(25,r?null:e+t+"${"))}recordStrictModeErrors(e,t){let i=t.index;this.state.strict&&!this.state.strictErrors.has(i)?this.raise(e,t):this.state.strictErrors.set(i,[e,t])}readWord1(e){this.state.containsEsc=!1;let t="",i=this.state.pos,r=this.state.pos;for(void 0!==e&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){let e=this.codePointAtPos(this.state.pos);if(z(e))this.state.pos+=e<=65535?1:2;else if(92===e){this.state.containsEsc=!0,t+=this.input.slice(r,this.state.pos);let e=this.state.curPosition(),n=this.state.pos===i?X:z;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(h.MissingUnicodeEscape,this.state.curPosition()),r=this.state.pos-1;continue}++this.state.pos;let s=this.readCodePoint(!0);null!==s&&(n(s)||this.raise(h.EscapedCharNotAnIdentifier,e),t+=String.fromCodePoint(s)),r=this.state.pos}else break}return t+this.input.slice(r,this.state.pos)}readWord(e){let t=this.readWord1(e),i=x.get(t);void 0!==i?this.finishToken(i,v[i]):this.finishToken(132,t)}checkKeywordEscapes(){let{type:e}=this.state;B(e)&&this.state.containsEsc&&this.raise(h.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:v[e]})}raise(e,t,r={}){let n=e(t instanceof i?t:t.loc.start,r);if(!(2048&this.optionFlags))throw n;return this.isLookahead||this.state.errors.push(n),n}raiseOverwrite(e,t,r={}){let n=t instanceof i?t:t.loc.start,s=n.index,a=this.state.errors;for(let t=a.length-1;t>=0;t--){let i=a[t];if(i.loc.index===s)return a[t]=e(n,r);if(i.loc.index<s)break}return this.raise(e,t,r)}updateContext(e){}unexpected(e,t){throw this.raise(h.UnexpectedToken,null!=e?e:this.state.startLoc,{expected:t?v[t]:null})}expectPlugin(e,t){if(this.hasPlugin(e))return!0;throw this.raise(h.MissingPlugin,null!=t?t:this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some(e=>this.hasPlugin(e)))throw this.raise(h.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(t,i,r)=>{this.raise(e,ej(t,i,r))}}}class eK{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class eq{constructor(e){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new eK)}exit(){let e=this.stack.pop(),t=this.current();for(let[i,r]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(i)||t.undefinedPrivateNames.set(i,r):this.parser.raise(h.InvalidPrivateFieldResolution,r,{identifierName:i})}declarePrivateName(e,t,i){let{privateNames:r,loneAccessors:n,undefinedPrivateNames:s}=this.current(),a=r.has(e);if(3&t){let i=a&&n.get(e);if(i){let r=4&t;(a=(3&i)==(3&t)||(4&i)!==r)||n.delete(e)}else a||n.set(e,t)}a&&this.parser.raise(h.PrivateNameRedeclaration,i,{identifierName:e}),r.add(e),s.delete(e)}usePrivateName(e,t){let i;for(i of this.stack)if(i.privateNames.has(e))return;i?i.undefinedPrivateNames.set(e,t):this.parser.raise(h.InvalidPrivateFieldResolution,t,{identifierName:e})}}class e${constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}}class eW extends e${constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,t){let i=t.index;this.declarationErrors.set(i,[e,t])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}}class eX{constructor(e){this.parser=void 0,this.stack=[new e$],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){let i=t.loc.start,{stack:r}=this,n=r.length-1,s=r[n];for(;!s.isCertainlyParameterDeclaration();){if(!s.canBeArrowParameterDeclaration())return;s.recordDeclarationError(e,i),s=r[--n]}this.parser.raise(e,i)}recordArrowParameterBindingError(e,t){let{stack:i}=this,r=i[i.length-1],n=t.loc.start;if(r.isCertainlyParameterDeclaration())this.parser.raise(e,n);else{if(!r.canBeArrowParameterDeclaration())return;r.recordDeclarationError(e,n)}}recordAsyncArrowParametersError(e){let{stack:t}=this,i=t.length-1,r=t[i];for(;r.canBeArrowParameterDeclaration();)2===r.type&&r.recordDeclarationError(h.AwaitBindingIdentifier,e),r=t[--i]}validateAsPattern(){let{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors(([t,i])=>{this.parser.raise(t,i);let r=e.length-2,n=e[r];for(;n.canBeArrowParameterDeclaration();)n.clearDeclarationError(i.index),n=e[--r]})}}class ez extends eV{addExtra(e,t,i,r=!0){if(!e)return;let{extra:n}=e;null==n&&(e.extra=n={}),r?n[t]=i:Object.defineProperty(n,t,{enumerable:r,value:i})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){if(this.input.startsWith(t,e)){let i=this.input.charCodeAt(e+t.length);return!(z(i)||(64512&i)==55296)}return!1}isLookaheadContextual(e){let t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return!!this.isContextual(e)&&(this.next(),!0)}expectContextual(e,t){if(!this.eatContextual(e)){if(null!=t)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return eh(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return eh(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(13))||this.raise(h.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){this.eat(e)||this.unexpected(t,e)}tryParse(e,t=this.state.clone()){let i={node:null};try{let r=e((e=null)=>{throw i.node=e,i});if(this.state.errors.length>t.errors.length){let e=this.state;return this.state=t,this.state.tokensLength=e.tokensLength,{node:r,error:e.errors[t.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:r,error:null,thrown:!1,aborted:!1,failState:null}}catch(r){let e=this.state;if(this.state=t,r instanceof SyntaxError)return{node:null,error:r,thrown:!0,aborted:!1,failState:e};if(r===i)return{node:i.node,error:null,thrown:!1,aborted:!0,failState:e};throw r}}checkExpressionErrors(e,t){if(!e)return!1;let{shorthandAssignLoc:i,doubleProtoLoc:r,privateKeyLoc:n,optionalParametersLoc:s,voidPatternLoc:a}=e,o=!!i||!!r||!!s||!!n||!!a;if(!t)return o;null!=i&&this.raise(h.InvalidCoverInitializedName,i),null!=r&&this.raise(h.DuplicateProto,r),null!=n&&this.raise(h.UnexpectedPrivateField,n),null!=s&&this.unexpected(s),null!=a&&this.raise(h.InvalidCoverDiscardElement,a)}isLiteralPropertyName(){return L(this.state.type)}isPrivateName(e){return"PrivateName"===e.type}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&this.isPrivateName(e.property)}isObjectProperty(e){return"ObjectProperty"===e.type}isObjectMethod(e){return"ObjectMethod"===e.type}initializeScopes(e="module"===this.options.sourceType){let t=this.state.labels;this.state.labels=[];let i=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let r=this.inModule;this.inModule=e;let n=this.scope,s=this.getScopeHandler();this.scope=new s(this,e);let a=this.prodParam;this.prodParam=new eS;let o=this.classScope;this.classScope=new eq(this);let l=this.expressionScope;return this.expressionScope=new eX(this),()=>{this.state.labels=t,this.exportedIdentifiers=i,this.inModule=r,this.scope=n,this.prodParam=a,this.classScope=o,this.expressionScope=l}}enterInitialScopes(){let e=0;(this.inModule||1&this.optionFlags)&&(e|=2),32&this.optionFlags&&(e|=1);let t=!this.inModule&&"commonjs"===this.options.sourceType;(t||2&this.optionFlags)&&(e|=4),this.prodParam.enter(e);let i=t?514:1;4&this.optionFlags&&(i|=512),this.scope.enter(i)}checkDestructuringPrivate(e){let{privateKeyLoc:t}=e;null!==t&&this.expectPlugin("destructuringPrivate",t)}}class eJ{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null,this.voidPatternLoc=null}}class eY{constructor(e,t,i){this.type="",this.start=t,this.end=0,this.loc=new r(i),(null==e?void 0:e.optionFlags)&128&&(this.range=[t,0]),null!=e&&e.filename&&(this.loc.filename=e.filename)}}let eQ=eY.prototype;eQ.__clone=function(){let e=new eY(void 0,this.start,this.loc.start),t=Object.keys(this);for(let i=0,r=t.length;i<r;i++){let r=t[i];"leadingComments"!==r&&"trailingComments"!==r&&"innerComments"!==r&&(e[r]=this[r])}return e};class eH extends ez{startNode(){let e=this.state.startLoc;return new eY(this,e.index,e)}startNodeAt(e){return new eY(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEndLoc)}finishNodeAt(e,t,i){return e.type=t,e.end=i.index,e.loc.end=i,128&this.optionFlags&&(e.range[1]=i.index),4096&this.optionFlags&&this.processComment(e),e}resetStartLocation(e,t){e.start=t.index,e.loc.start=t,128&this.optionFlags&&(e.range[0]=t.index)}resetEndLocation(e,t=this.state.lastTokEndLoc){e.end=t.index,e.loc.end=t,128&this.optionFlags&&(e.range[1]=t.index)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}castNodeTo(e,t){return e.type=t,e}cloneIdentifier(e){let{type:t,start:i,end:r,loc:n,range:s,name:a}=e,o=Object.create(eQ);return o.type=t,o.start=i,o.end=r,o.loc=n,o.range=s,o.name=a,e.extra&&(o.extra=e.extra),o}cloneStringLiteral(e){let{type:t,start:i,end:r,loc:n,range:s,extra:a}=e,o=Object.create(eQ);return o.type=t,o.start=i,o.end=r,o.loc=n,o.range=s,o.extra=a,o.value=e.value,o}}let eG=e=>"ParenthesizedExpression"===e.type?eG(e.expression):e;class eZ extends eH{toAssignable(e,t=!1){var i,r,n;let s;switch(("ParenthesizedExpression"===e.type||null!=(i=e.extra)&&i.parenthesized)&&(s=eG(e),t?"Identifier"===s.type?this.expressionScope.recordArrowParameterBindingError(h.InvalidParenthesizedAssignment,e):"CallExpression"!==s.type&&"MemberExpression"!==s.type&&!this.isOptionalMemberExpression(s)&&this.raise(h.InvalidParenthesizedAssignment,e):this.raise(h.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(e,"ObjectPattern");for(let i=0,r=e.properties.length,s=r-1;i<r;i++){let r=e.properties[i],a=i===s;this.toAssignableObjectExpressionProp(r,a,t),a&&"RestElement"===r.type&&null!=(n=e.extra)&&n.trailingCommaLoc&&this.raise(h.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:i,value:r}=e;this.isPrivateName(i)&&this.classScope.usePrivateName(this.getPrivateNameSV(i),i.loc.start),this.toAssignable(r,t);break}case"SpreadElement":throw Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":this.castNodeTo(e,"ArrayPattern"),this.toAssignableList(e.elements,null==(r=e.extra)?void 0:r.trailingCommaLoc,t);break;case"AssignmentExpression":"="!==e.operator&&this.raise(h.MissingEqInAssignment,e.left.loc.end),this.castNodeTo(e,"AssignmentPattern"),delete e.operator,"VoidPattern"===e.left.type&&this.raise(h.VoidPatternInitializer,e.left),this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(s,t)}}toAssignableObjectExpressionProp(e,t,i){if("ObjectMethod"===e.type)this.raise("get"===e.kind||"set"===e.kind?h.PatternHasAccessor:h.PatternHasMethod,e.key);else if("SpreadElement"===e.type){this.castNodeTo(e,"RestElement");let r=e.argument;this.checkToRestConversion(r,!1),this.toAssignable(r,i),t||this.raise(h.RestTrailingComma,e)}else this.toAssignable(e,i)}toAssignableList(e,t,i){let r=e.length-1;for(let n=0;n<=r;n++){let s=e[n];s&&(this.toAssignableListItem(e,n,i),"RestElement"===s.type&&(n<r?this.raise(h.RestTrailingComma,s):t&&this.raise(h.RestTrailingComma,t)))}}toAssignableListItem(e,t,i){let r=e[t];if("SpreadElement"===r.type){this.castNodeTo(r,"RestElement");let e=r.argument;this.checkToRestConversion(e,!0),this.toAssignable(e,i)}else this.toAssignable(r,i)}isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{let t=e.properties.length-1;return e.properties.every((e,i)=>"ObjectMethod"!==e.type&&(i===t||"SpreadElement"!==e.type)&&this.isAssignable(e))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every(e=>null===e||this.isAssignable(e));case"AssignmentExpression":return"="===e.operator;case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}}toReferencedList(e,t){return e}toReferencedListDeep(e,t){for(let i of(this.toReferencedList(e,t),e))(null==i?void 0:i.type)==="ArrayExpression"&&this.toReferencedListDeep(i.elements)}parseSpread(e){let t=this.startNode();return this.next(),t.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(t,"SpreadElement")}parseRestBinding(){let e=this.startNode();this.next();let t=this.parseBindingAtom();return"VoidPattern"===t.type&&this.raise(h.UnexpectedVoidPattern,t),e.argument=t,this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(e,t,i){let r=1&i,n=[],s=!0;for(;!this.eat(e);)if(s?s=!1:this.expect(12),r&&this.match(12))n.push(null);else if(this.eat(e))break;else if(this.match(21)){let r=this.parseRestBinding();if((this.hasPlugin("flow")||2&i)&&(r=this.parseFunctionParamType(r)),n.push(r),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{let e=[];if(2&i)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(h.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());n.push(this.parseBindingElement(i,e))}return n}parseBindingRestProperty(e){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(e.argument=this.parseVoidPattern(null),this.raise(h.UnexpectedVoidPattern,e.argument)):e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){let{type:e,startLoc:t}=this.state;if(21===e)return this.parseBindingRestProperty(this.startNode());let i=this.startNode();return 139===e?(this.expectPlugin("destructuringPrivate",t),this.classScope.usePrivateName(this.state.value,t),i.key=this.parsePrivateName()):this.parsePropertyName(i),i.method=!1,this.parseObjPropValue(i,t,!1,!1,!0,!1)}parseBindingElement(e,t){let i=this.parseMaybeDefault();return(this.hasPlugin("flow")||2&e)&&this.parseFunctionParamType(i),t.length&&(i.decorators=t,this.resetStartLocationFromNode(i,t[0])),this.parseMaybeDefault(i.loc.start,i)}parseFunctionParamType(e){return e}parseMaybeDefault(e,t){if(null!=e||(e=this.state.startLoc),t=null!=t?t:this.parseBindingAtom(),!this.eat(29))return t;let i=this.startNodeAt(e);return"VoidPattern"===t.type&&this.raise(h.VoidPatternInitializer,t),i.left=t,i.right=this.parseMaybeAssignAllowIn(),this.finishNode(i,"AssignmentPattern")}isValidLVal(e,t,i,r){switch(e){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0;case"CallExpression":if(!t&&!this.state.strict&&8192&this.optionFlags)return!0}return!1}isOptionalMemberExpression(e){return"OptionalMemberExpression"===e.type}checkLVal(e,t,i=64,r=!1,n=!1,s=!1,a=!1){var o;let l,p,u=e.type;if(this.isObjectMethod(e))return;let c=this.isOptionalMemberExpression(e);if(c||"MemberExpression"===u){c&&(this.expectPlugin("optionalChainingAssign",e.loc.start),"AssignmentExpression"!==t.type&&this.raise(h.InvalidLhsOptionalChaining,e,{ancestor:t})),64!==i&&this.raise(h.InvalidPropertyBindingPattern,e);return}if("Identifier"===u){this.checkIdentifier(e,i,n);let{name:t}=e;r&&(r.has(t)?this.raise(h.ParamDupe,e):r.add(t));return}"VoidPattern"===u&&"CatchClause"===t.type&&this.raise(h.VoidPatternCatchClauseParam,e);let d=eG(e);a||(a="CallExpression"===d.type&&("Import"===d.callee.type||"Super"===d.callee.type));let m=this.isValidLVal(u,a,!(s||null!=(o=e.extra)&&o.parenthesized)&&"AssignmentExpression"===t.type,i);if(!0===m)return;if(!1===m){let r=64===i?h.InvalidLhs:h.InvalidLhsBinding;this.raise(r,e,{ancestor:t});return}"string"==typeof m?(l=m,p="ParenthesizedExpression"===u):[l,p]=m;let f="ArrayPattern"===u||"ObjectPattern"===u?{type:u}:t,y=e[l];if(Array.isArray(y))for(let e of y)e&&this.checkLVal(e,f,i,r,n,p,!0);else y&&this.checkLVal(y,f,i,r,n,p,a)}checkIdentifier(e,t,i=!1){var r;this.state.strict&&(i?Z(e.name,this.inModule):(r=e.name,Q.has(r)))&&(64===t?this.raise(h.StrictEvalArguments,e,{referenceName:e.name}):this.raise(h.StrictEvalArgumentsBinding,e,{bindingName:e.name})),8192&t&&"let"===e.name&&this.raise(h.LetInLexicalBinding,e),64&t||this.declareNameFromIdentifier(e,t)}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.loc.start)}checkToRestConversion(e,t){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,t);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(t)break;default:this.raise(h.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===e?h.RestTrailingComma:h.ElementAfterRest,this.state.startLoc),!0)}}let e0=/in(?:stanceof)?|as|satisfies/y;function e1(e){if(!e)throw Error("Assert fail")}let e2=d`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:e})=>`Accessibility modifier already seen: '${e}'.`,DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' 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:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:e})=>`'${e}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:e=>`'${e}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:e=>`'${e}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,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:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",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:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`,UsingDeclarationInAmbientContext:e=>`'${e}' declarations are not allowed in ambient contexts.`});function e3(e){return"private"===e||"public"===e||"protected"===e}function e4(e,t){return t?"Literal"===e.type&&("number"==typeof e.value||"bigint"in e):"NumericLiteral"===e.type||"BigIntLiteral"===e.type}let e8=d`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),e5=["minimal","fsharp","hack","smart"],e6=["^^","@@","^","%","#"],e9={estree:e=>class extends e{parse(){let e=y(super.parse());return 256&this.optionFlags&&(e.tokens=e.tokens.map(y)),e}parseRegExpLiteral({pattern:e,flags:t}){let i=null;try{i=new RegExp(e,t)}catch(e){}let r=this.estreeParseLiteral(i);return r.regex={pattern:e,flags:t},r}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch(e){t=null}let i=this.estreeParseLiteral(t);return i.bigint=String(i.value||e),i}parseDecimalLiteral(e){let t=this.estreeParseLiteral(null);return t.decimal=String(t.value||e),t}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}estreeParseChainExpression(e,t){let i=this.startNodeAtNode(e);return i.expression=e,this.finishNodeAt(i,"ChainExpression",t)}directiveToStmt(e){let t=e.value;delete e.value,this.castNodeTo(t,"Literal"),t.raw=t.extra.raw,t.value=t.extra.expressionValue;let i=this.castNodeTo(e,"ExpressionStatement");return i.expression=t,i.directive=t.extra.rawValue,delete t.extra,i}fillOptionalPropertiesForTSESLint(e){}cloneEstreeStringLiteral(e){let{start:t,end:i,loc:r,range:n,raw:s,value:a}=e,o=Object.create(e.constructor.prototype);return o.type="Literal",o.start=t,o.end=i,o.loc=r,o.range=n,o.raw=s,o.value=a,o}initFunction(e,t){super.initFunction(e,t),e.expression=!1}checkDeclaration(e){null!=e&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var t;return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&!(null!=(t=e.expression.extra)&&t.parenthesized)}parseBlockBody(e,t,i,r,n){super.parseBlockBody(e,t,i,r,n);let s=e.directives.map(e=>this.directiveToStmt(e));e.body=s.concat(e.body),delete e.directives}parsePrivateName(){let e=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){let t=super.getPrivateNameSV(e);return delete e.id,e.name=t,this.castNodeTo(e,"PrivateIdentifier")}isPrivateName(e){return this.getPluginOption("estree","classFeatures")?"PrivateIdentifier"===e.type:super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures")?e.name:super.getPrivateNameSV(e)}parseLiteral(e,t){let i=super.parseLiteral(e,t);return i.raw=i.extra.raw,delete i.extra,i}parseFunctionBody(e,t,i=!1){super.parseFunctionBody(e,t,i),e.expression="BlockStatement"!==e.body.type}parseMethod(e,t,i,r,n,s,a=!1){let o=this.startNode();o.kind=e.kind,o=super.parseMethod(o,t,i,r,n,s,a),delete o.kind;let{typeParameters:l}=e;return(l&&(delete e.typeParameters,o.typeParameters=l,this.resetStartLocationFromNode(o,l)),e.value=this.castNodeTo(o,"FunctionExpression"),"ClassPrivateMethod"===s&&(e.computed=!1),"ObjectMethod"===s)?("method"===e.kind&&(e.kind="init"),e.shorthand=!1,this.finishNode(e,"Property")):this.finishNode(e,"MethodDefinition")}nameIsConstructor(e){return"Literal"===e.type?"constructor"===e.value:super.nameIsConstructor(e)}parseClassProperty(...e){let t=super.parseClassProperty(...e);return this.getPluginOption("estree","classFeatures")&&this.castNodeTo(t,"PropertyDefinition"),t}parseClassPrivateProperty(...e){let t=super.parseClassPrivateProperty(...e);return this.getPluginOption("estree","classFeatures")&&(this.castNodeTo(t,"PropertyDefinition"),t.computed=!1),t}parseClassAccessorProperty(e){let t=super.parseClassAccessorProperty(e);return this.getPluginOption("estree","classFeatures")&&(t.abstract&&this.hasPlugin("typescript")?(delete t.abstract,this.castNodeTo(t,"TSAbstractAccessorProperty")):this.castNodeTo(t,"AccessorProperty")),t}parseObjectProperty(e,t,i,r){let n=super.parseObjectProperty(e,t,i,r);return n&&(n.kind="init",this.castNodeTo(n,"Property")),n}finishObjectProperty(e){return e.kind="init",this.finishNode(e,"Property")}isValidLVal(e,t,i,r){return"Property"===e?"value":super.isValidLVal(e,t,i,r)}isAssignable(e,t){return null!=e&&this.isObjectProperty(e)?this.isAssignable(e.value,t):super.isAssignable(e,t)}toAssignable(e,t=!1){if(null!=e&&this.isObjectProperty(e)){let{key:i,value:r}=e;this.isPrivateName(i)&&this.classScope.usePrivateName(this.getPrivateNameSV(i),i.loc.start),this.toAssignable(r,t)}else super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,t,i){"Property"===e.type&&("get"===e.kind||"set"===e.kind)?this.raise(h.PatternHasAccessor,e.key):"Property"===e.type&&e.method?this.raise(h.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,t,i)}finishCallExpression(e,t){let i=super.finishCallExpression(e,t);if("Import"===i.callee.type){var r,n;this.castNodeTo(i,"ImportExpression"),i.source=i.arguments[0],i.options=null!=(r=i.arguments[1])?r:null,i.attributes=null!=(n=i.arguments[1])?n:null,delete i.arguments,delete i.callee}else"OptionalCallExpression"===i.type?this.castNodeTo(i,"CallExpression"):i.optional=!1;return i}toReferencedArguments(e){"ImportExpression"!==e.type&&super.toReferencedArguments(e)}parseExport(e,t){let i=this.state.lastTokStartLoc,r=super.parseExport(e,t);switch(r.type){case"ExportAllDeclaration":r.exported=null;break;case"ExportNamedDeclaration":1===r.specifiers.length&&"ExportNamespaceSpecifier"===r.specifiers[0].type&&(this.castNodeTo(r,"ExportAllDeclaration"),r.exported=r.specifiers[0].exported,delete r.specifiers);case"ExportDefaultDeclaration":{var n;let{declaration:e}=r;(null==e?void 0:e.type)==="ClassDeclaration"&&(null==(n=e.decorators)?void 0:n.length)>0&&e.start===r.start&&this.resetStartLocation(r,i)}}return r}stopParseSubscript(e,t){let i=super.stopParseSubscript(e,t);return t.optionalChainMember?this.estreeParseChainExpression(i,e.loc.end):i}parseMember(e,t,i,r,n){let s=super.parseMember(e,t,i,r,n);return"OptionalMemberExpression"===s.type?this.castNodeTo(s,"MemberExpression"):s.optional=!1,s}isOptionalMemberExpression(e){return"ChainExpression"===e.type?"MemberExpression"===e.expression.type:super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return"ChainExpression"===e.type&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return"Property"===e.type&&"init"===e.kind&&!e.method}isObjectMethod(e){return"Property"===e.type&&(e.method||"get"===e.kind||"set"===e.kind)}castNodeTo(e,t){let i=super.castNodeTo(e,t);return this.fillOptionalPropertiesForTSESLint(i),i}cloneIdentifier(e){let t=super.cloneIdentifier(e);return this.fillOptionalPropertiesForTSESLint(t),t}cloneStringLiteral(e){return"Literal"===e.type?this.cloneEstreeStringLiteral(e):super.cloneStringLiteral(e)}finishNodeAt(e,t,i){return y(super.finishNodeAt(e,t,i))}finishNode(e,t){let i=super.finishNode(e,t);return this.fillOptionalPropertiesForTSESLint(i),i}resetStartLocation(e,t){super.resetStartLocation(e,t),y(e)}resetEndLocation(e,t=this.state.lastTokEndLoc){super.resetEndLocation(e,t),y(e)}},jsx:e=>class extends e{jsxReadToken(){let e="",t=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(ey.UnterminatedJsxContent,this.state.startLoc);let i=this.input.charCodeAt(this.state.pos);switch(i){case 60:case 123:if(this.state.pos===this.state.start)return void(60===i&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(i));e+=this.input.slice(t,this.state.pos),this.finishToken(142,e);return;case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:ed(i)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){let t,i=this.input.charCodeAt(this.state.pos);return++this.state.pos,13===i&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(i),++this.state.curLine,this.state.lineStart=this.state.pos,t}jsxReadString(e){let t="",i=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(h.UnterminatedString,this.state.startLoc);let r=this.input.charCodeAt(this.state.pos);if(r===e)break;38===r?(t+=this.input.slice(i,this.state.pos),t+=this.jsxReadEntity(),i=this.state.pos):ed(r)?(t+=this.input.slice(i,this.state.pos),t+=this.jsxReadNewLine(!1),i=this.state.pos):++this.state.pos}t+=this.input.slice(i,this.state.pos++),this.finishToken(134,t)}jsxReadEntity(){let e=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;let e=10;120===this.codePointAtPos(this.state.pos)&&(e=16,++this.state.pos);let t=this.readInt(e,void 0,!1,"bail");if(null!==t&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(t)}else{let t=0,i=!1;for(;t++<10&&this.state.pos<this.length&&!(i=59===this.codePointAtPos(this.state.pos));)++this.state.pos;if(i){let t=eu[this.input.slice(e,this.state.pos)];if(++this.state.pos,t)return t}}return this.state.pos=e,"&"}jsxReadWord(){let e,t=this.state.pos;do e=this.input.charCodeAt(++this.state.pos);while(z(e)||45===e);this.finishToken(141,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){let e=this.startNode();return this.match(141)?e.name=this.state.value:B(this.state.type)?e.name=v[this.state.type]:this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){let e=this.state.startLoc,t=this.jsxParseIdentifier();if(!this.eat(14))return t;let i=this.startNodeAt(e);return i.namespace=t,i.name=this.jsxParseIdentifier(),this.finishNode(i,"JSXNamespacedName")}jsxParseElementName(){let e=this.state.startLoc,t=this.jsxParseNamespacedName();if("JSXNamespacedName"===t.type)return t;for(;this.eat(16);){let i=this.startNodeAt(e);i.object=t,i.property=this.jsxParseIdentifier(),t=this.finishNode(i,"JSXMemberExpression")}return t}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(T.brace),this.next(),"JSXEmptyExpression"===(e=this.jsxParseExpressionContainer(e,T.j_oTag)).expression.type&&this.raise(ey.AttributeIsEmpty,e),e;case 143:case 134:return this.parseExprAtom();default:throw this.raise(ey.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(T.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,t){return this.match(8)?e.expression=this.jsxParseEmptyExpression():e.expression=this.parseExpression(),this.setContext(t),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){let e=this.startNode();return this.match(5)?(this.setContext(T.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(T.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsxParseOpeningElementAt(e){let t=this.startNodeAt(e);return this.eat(144)?this.finishNode(t,"JSXOpeningFragment"):(t.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(t))}jsxParseOpeningElementAfterName(e){let t=[];for(;!this.match(56)&&!this.match(144);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(56),this.expect(144),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e){let t=this.startNodeAt(e);return this.eat(144)?this.finishNode(t,"JSXClosingFragment"):(t.name=this.jsxParseElementName(),this.expect(144),this.finishNode(t,"JSXClosingElement"))}jsxParseElementAt(e){let t=this.startNodeAt(e),i=[],r=this.jsxParseOpeningElementAt(e),n=null;if(!r.selfClosing){t:for(;;)switch(this.state.type){case 143:if(e=this.state.startLoc,this.next(),this.eat(56)){n=this.jsxParseClosingElementAt(e);break t}i.push(this.jsxParseElementAt(e));break;case 142:i.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let e=this.startNode();this.setContext(T.brace),this.next(),this.match(21)?i.push(this.jsxParseSpreadChild(e)):i.push(this.jsxParseExpressionContainer(e,T.j_expr));break}default:this.unexpected()}eg(r)&&!eg(n)&&null!==n?this.raise(ey.MissingClosingTagFragment,n):!eg(r)&&eg(n)?this.raise(ey.MissingClosingTagElement,n,{openingTagName:eT(r.name)}):eg(r)||eg(n)||eT(n.name)===eT(r.name)||this.raise(ey.MissingClosingTagElement,n,{openingTagName:eT(r.name)})}if(eg(r)?(t.openingFragment=r,t.closingFragment=n):(t.openingElement=r,t.closingElement=n),t.children=i,this.match(47))throw this.raise(ey.UnwrappedAdjacentJSXElements,this.state.startLoc);return eg(r)?this.finishNode(t,"JSXFragment"):this.finishNode(t,"JSXElement")}jsxParseElement(){let e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){let{context:t}=this.state;t[t.length-1]=e}parseExprAtom(e){return this.match(143)?this.jsxParseElement():this.match(47)&&33!==this.input.charCodeAt(this.state.pos)?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){let t=this.curContext();if(t===T.j_expr)return void this.jsxReadToken();if(t===T.j_oTag||t===T.j_cTag){if(X(e))return void this.jsxReadWord();if(62===e){++this.state.pos,this.finishToken(144);return}if((34===e||39===e)&&t===T.j_oTag)return void this.jsxReadString(e)}if(60===e&&this.state.canStartJSXElement&&33!==this.input.charCodeAt(this.state.pos+1)){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(e)}updateContext(e){let{context:t,type:i}=this.state;if(56===i&&143===e)t.splice(-2,2,T.j_cTag),this.state.canStartJSXElement=!1;else if(143===i)t.push(T.j_oTag);else if(144===i){let i=t[t.length-1];i===T.j_oTag&&56===e||i===T.j_cTag?(t.pop(),this.state.canStartJSXElement=t[t.length-1]===T.j_expr):(this.setContext(T.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=C[i]}},flow:e=>class extends e{constructor(...e){super(...e),this.flowPragma=void 0}getScopeHandler(){return en}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}finishToken(e,t){134!==e&&13!==e&&28!==e&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(e,t)}addComment(e){if(void 0===this.flowPragma){let t=ep.exec(e.value);if(t)if("flow"===t[1])this.flowPragma="flow";else if("noflow"===t[1])this.flowPragma="noflow";else throw Error("Unexpected flow pragma")}super.addComment(e)}flowParseTypeInitialiser(e){let t=this.state.inType;this.state.inType=!0,this.expect(e||14);let i=this.flowParseType();return this.state.inType=t,i}flowParsePredicate(){let e=this.startNode(),t=this.state.startLoc;return(this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>t.index+1&&this.raise(ea.UnexpectedSpaceBetweenModuloChecks,t),this.eat(10))?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let e=this.state.inType;this.state.inType=!0,this.expect(14);let t=null,i=null;return this.match(54)?(this.state.inType=e,i=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(i=this.flowParsePredicate())),[t,i]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();let t=e.id=this.parseIdentifier(),i=this.startNode(),r=this.startNode();this.match(47)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,this.expect(10);let n=this.flowParseFunctionTypeParams();return i.params=n.params,i.rest=n.rest,i.this=n._this,this.expect(11),[i.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.typeAnnotation=this.finishNode(i,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(r,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,t){if(this.match(80))return this.flowParseDeclareClass(e);if(this.match(68))return this.flowParseDeclareFunction(e);if(this.match(74))return this.flowParseDeclareVariable(e);if(this.eatContextual(127))if(this.match(16))return this.flowParseDeclareModuleExports(e);else return t&&this.raise(ea.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e);if(this.isContextual(130))return this.flowParseDeclareTypeAlias(e);else if(this.isContextual(131))return this.flowParseDeclareOpaqueType(e);else if(this.isContextual(129))return this.flowParseDeclareInterface(e);else if(this.match(82))return this.flowParseDeclareExportDeclaration(e,t);throw this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(134)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();let t=e.body=this.startNode(),i=t.body=[];for(this.expect(5);!this.match(8);){let e=this.startNode();this.match(83)?(this.next(),this.isContextual(130)||this.match(87)||this.raise(ea.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),i.push(super.parseImport(e))):(this.expectContextual(125,ea.UnsupportedStatementInDeclareModule),i.push(this.flowParseDeclare(e,!0)))}this.scope.exit(),this.expect(8),this.finishNode(t,"BlockStatement");let r=null,n=!1;return i.forEach(e=>{"DeclareExportAllDeclaration"!==e.type&&("DeclareExportDeclaration"!==e.type||e.declaration&&("TypeAlias"===e.declaration.type||"InterfaceDeclaration"===e.declaration.type))?"DeclareModuleExports"===e.type&&(n&&this.raise(ea.DuplicateDeclareModuleExports,e),"ES"===r&&this.raise(ea.AmbiguousDeclareModuleKind,e),r="CommonJS",n=!0):("CommonJS"===r&&this.raise(ea.AmbiguousDeclareModuleKind,e),r="ES")}),e.kind=r||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,t){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!t){let e=this.state.value;throw this.raise(ea.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:e,suggestion:el[e]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return"ExportNamedDeclaration"===(e=this.parseExport(e,null)).type?(e.default=!1,delete e.exportKind,this.castNodeTo(e,"DeclareExportDeclaration")):this.castNodeTo(e,"DeclareExportAllDeclaration");throw this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();let t=this.flowParseTypeAlias(e);return this.castNodeTo(t,"DeclareTypeAlias"),t}flowParseDeclareOpaqueType(e){this.next();let t=this.flowParseOpaqueType(e,!0);return this.castNodeTo(t,"DeclareOpaqueType"),t}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,t){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(!t&&this.eat(12));if(t){if(e.implements=[],e.mixins=[],this.eatContextual(117))do e.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do e.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})}flowParseInterfaceExtends(){let e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){"_"===e&&this.raise(ea.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,t,i){es.has(e)&&this.raise(i?ea.AssignReservedType:ea.UnexpectedReservedType,t,{reservedType:e})}flowParseRestrictedIdentifier(e,t){return this.checkReservedType(this.state.value,this.state.startLoc,t),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,t){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=!1){let t=this.state.startLoc,i=this.startNode(),r=this.flowParseVariance(),n=this.flowParseTypeAnnotatableIdentifier();return i.name=n.name,i.variance=r,i.bound=n.typeAnnotation,this.match(29)?(this.eat(29),i.default=this.flowParseType()):e&&this.raise(ea.MissingTypeParamDefault,t),this.finishNode(i,"TypeParameter")}flowParseTypeParameterDeclaration(){let e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let i=!1;do{let e=this.flowParseTypeParameter(i);t.params.push(e),e.default&&(i=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")}flowInTopLevelContext(e){if(this.curContext()===T.brace)return e();{let t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}}flowParseTypeParameterInstantiationInExpression(){if(47===this.reScan_lt())return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let e=this.startNode(),t=this.state.inType;return this.state.inType=!0,e.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let t=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=t}),this.state.inType=t,this.state.inType||this.curContext()!==T.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(47!==this.reScan_lt())return null;let e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){let e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,t,i){return e.static=t,14===this.lookahead().type?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=i,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,t){let i=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(i),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:t,allowSpread:i,allowProto:r,allowInexact:n}){let s,a,o=this.state.inType;this.state.inType=!0;let l=this.startNode();l.callProperties=[],l.properties=[],l.indexers=[],l.internalSlots=[];let p=!1;for(t&&this.match(6)?(this.expect(6),s=9,a=!0):(this.expect(5),s=8,a=!1),l.exact=a;!this.match(s);){let t=!1,s=null,o=null,u=this.startNode();if(r&&this.isContextual(118)){let t=this.lookahead();14!==t.type&&17!==t.type&&(this.next(),s=this.state.startLoc,e=!1)}if(e&&this.isContextual(106)){let e=this.lookahead();14!==e.type&&17!==e.type&&(this.next(),t=!0)}let c=this.flowParseVariance();if(this.eat(0))null!=s&&this.unexpected(s),this.eat(0)?(c&&this.unexpected(c.loc.start),l.internalSlots.push(this.flowParseObjectTypeInternalSlot(u,t))):l.indexers.push(this.flowParseObjectTypeIndexer(u,t,c));else if(this.match(10)||this.match(47))null!=s&&this.unexpected(s),c&&this.unexpected(c.loc.start),l.callProperties.push(this.flowParseObjectTypeCallProperty(u,t));else{let e="init";(this.isContextual(99)||this.isContextual(104))&&L(this.lookahead().type)&&(e=this.state.value,this.next());let r=this.flowParseObjectTypeProperty(u,t,s,c,e,i,null!=n?n:!a);null===r?(p=!0,o=this.state.lastTokStartLoc):l.properties.push(r)}this.flowObjectTypeSemicolon(),!o||this.match(8)||this.match(9)||this.raise(ea.UnexpectedExplicitInexactInObject,o)}this.expect(s),i&&(l.inexact=p);let u=this.finishNode(l,"ObjectTypeAnnotation");return this.state.inType=o,u}flowParseObjectTypeProperty(e,t,i,r,n,s,a){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(s?a||this.raise(ea.InexactInsideExact,this.state.lastTokStartLoc):this.raise(ea.InexactInsideNonObject,this.state.lastTokStartLoc),r&&this.raise(ea.InexactVariance,r),null):(s||this.raise(ea.UnexpectedSpreadType,this.state.lastTokStartLoc),null!=i&&this.unexpected(i),r&&this.raise(ea.SpreadVariance,r),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=i,e.kind=n;let a=!1;return this.match(47)||this.match(10)?(e.method=!0,null!=i&&this.unexpected(i),r&&this.unexpected(r.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),("get"===n||"set"===n)&&this.flowCheckGetterSetterParams(e),!s&&"constructor"===e.key.name&&e.value.this&&this.raise(ea.ThisParamBannedInConstructor,e.value.this)):("init"!==n&&this.unexpected(),e.method=!1,this.eat(17)&&(a=!0),e.value=this.flowParseTypeInitialiser(),e.variance=r),e.optional=a,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){let t=+("get"!==e.kind),i=e.value.params.length+ +!!e.value.rest;e.value.this&&this.raise("get"===e.kind?ea.GetterMayNotHaveThisParam:ea.SetterMayNotHaveThisParam,e.value.this),i!==t&&this.raise("get"===e.kind?h.BadGetterArity:h.BadSetterArity,e),"set"===e.kind&&e.value.rest&&this.raise(h.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected()}flowParseQualifiedTypeIdentifier(e,t){null!=e||(e=this.state.startLoc);let i=t||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let t=this.startNodeAt(e);t.qualification=i,t.id=this.flowParseRestrictedIdentifier(!0),i=this.finishNode(t,"QualifiedTypeIdentifier")}return i}flowParseGenericType(e,t){let i=this.startNodeAt(e);return i.typeParameters=null,i.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(i.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(i,"GenericTypeAnnotation")}flowParseTypeofType(){let e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){let e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(e.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(e){let t=null,i=!1,r=null,n=this.startNode(),s=this.lookahead(),a=78===this.state.type;return 14===s.type||17===s.type?(a&&!e&&this.raise(ea.ThisParamMustBeFirst,n),t=this.parseIdentifier(a),this.eat(17)&&(i=!0,a&&this.raise(ea.ThisParamMayNotBeOptional,n)),r=this.flowParseTypeInitialiser()):r=this.flowParseType(),n.name=t,n.optional=i,n.typeAnnotation=r,this.finishNode(n,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){let t=this.startNodeAt(e.loc.start);return t.name=null,t.optional=!1,t.typeAnnotation=e,this.finishNode(t,"FunctionTypeParam")}flowParseFunctionTypeParams(e=[]){let t=null,i=null;for(this.match(78)&&((i=this.flowParseFunctionTypeParam(!0)).name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t=this.flowParseFunctionTypeParam(!1)),{params:e,rest:t,_this:i}}flowIdentToTypeAnnotation(e,t,i){switch(i.name){case"any":return this.finishNode(t,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(t,"BooleanTypeAnnotation");case"mixed":return this.finishNode(t,"MixedTypeAnnotation");case"empty":return this.finishNode(t,"EmptyTypeAnnotation");case"number":return this.finishNode(t,"NumberTypeAnnotation");case"string":return this.finishNode(t,"StringTypeAnnotation");case"symbol":return this.finishNode(t,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(i.name),this.flowParseGenericType(e,i)}}flowParsePrimaryType(){let e,t,i=this.state.startLoc,r=this.startNode(),n=!1,s=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,t=this.flowParseTupleType(),this.state.noAnonFunctionType=s,t;case 47:{let t=this.startNode();return t.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),t.params=(e=this.flowParseFunctionTypeParams()).params,t.rest=e.rest,t.this=e._this,this.expect(11),this.expect(19),t.returnType=this.flowParseType(),this.finishNode(t,"FunctionTypeAnnotation")}case 10:{let i=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(O(this.state.type)||this.match(78)){let e=this.lookahead().type;n=17!==e&&14!==e}else n=!0;if(n){if(this.state.noAnonFunctionType=!1,t=this.flowParseType(),this.state.noAnonFunctionType=s,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&19===this.lookahead().type))return this.expect(11),t;this.eat(12)}return i.params=(e=t?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(t)]):this.flowParseFunctionTypeParams()).params,i.rest=e.rest,i.this=e._this,this.expect(11),this.expect(19),i.returnType=this.flowParseType(),i.typeParameters=null,this.finishNode(i,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return r.value=this.match(85),this.next(),this.finishNode(r,"BooleanLiteralTypeAnnotation");case 53:if("-"===this.state.value){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",r);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",r);throw this.raise(ea.UnexpectedSubtractionOperand,this.state.startLoc)}break;case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(r,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(r,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(r,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(r,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(B(this.state.type)){let e=v[this.state.type];return this.next(),super.createIdentifier(r,e)}if(O(this.state.type)){if(this.isContextual(129))return this.flowParseInterfaceType();return this.flowIdentToTypeAnnotation(i,r,this.parseIdentifier())}}throw this.unexpected()}flowParsePostfixType(){let e=this.state.startLoc,t=this.flowParsePrimaryType(),i=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let r=this.startNodeAt(e),n=this.eat(18);i=i||n,this.expect(0),!n&&this.match(3)?(r.elementType=t,this.next(),t=this.finishNode(r,"ArrayTypeAnnotation")):(r.objectType=t,r.indexType=this.flowParseType(),this.expect(3),i?(r.optional=n,t=this.finishNode(r,"OptionalIndexedAccessType")):t=this.finishNode(r,"IndexedAccessType"))}return t}flowParsePrefixType(){let e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let t=this.startNodeAt(e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.this=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}return e}flowParseIntersectionType(){let e=this.startNode();this.eat(45);let t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(45);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?t:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){let e=this.startNode();this.eat(43);let t=this.flowParseIntersectionType();for(e.types=[t];this.eat(43);)e.types.push(this.flowParseIntersectionType());return 1===e.types.length?t:this.finishNode(e,"UnionTypeAnnotation")}flowParseType(){let e=this.state.inType;this.state.inType=!0;let t=this.flowParseUnionType();return this.state.inType=e,t}flowParseTypeOrImplicitInstantiation(){if(132!==this.state.type||"_"!==this.state.value)return this.flowParseType();{let e=this.state.startLoc,t=this.parseIdentifier();return this.flowParseGenericType(e,t)}}flowParseTypeAnnotation(){let e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(e){let t=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t)),t}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(53)?(e=this.startNode(),"+"===this.state.value?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")):e}parseFunctionBody(e,t,i=!1){t?this.forwardNoArrowParamsConversionAt(e,()=>super.parseFunctionBody(e,!0,i)):super.parseFunctionBody(e,!1,i)}parseFunctionBodyAndFinish(e,t,i=!1){if(this.match(14)){let t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=t.typeAnnotation?this.finishNode(t,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,t,i)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){if(F(this.lookahead().type)){let e=this.startNode();return this.next(),this.flowParseInterface(e)}}else if(this.isContextual(126)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}let t=super.parseStatementLike(e);return void 0!==this.flowPragma||this.isValidDirective(t)||(this.flowPragma=null),t}parseExpressionStatement(e,t,i){if("Identifier"===t.type){if("declare"===t.name){if(this.match(80)||O(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(O(this.state.type)){if("interface"===t.name)return this.flowParseInterface(e);else if("type"===t.name)return this.flowParseTypeAlias(e);else if("opaque"===t.name)return this.flowParseOpaqueType(e,!1)}}return super.parseExpressionStatement(e,t,i)}shouldParseExportDeclaration(){let{type:e}=this.state;return 126===e||M(e)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:e}=this.state;return 126===e||M(e)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,i){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){let t=this.lookaheadCharCode();if(44===t||61===t||58===t||41===t)return this.setOptionalParametersError(i),e}this.expect(17);let r=this.state.clone(),n=this.state.noArrowAt,s=this.startNodeAt(t),{consequent:a,failed:o}=this.tryParseConditionalConsequent(),[l,p]=this.getArrowLikeExpressions(a);if(o||p.length>0){let e=[...n];if(p.length>0){this.state=r,this.state.noArrowAt=e;for(let t=0;t<p.length;t++)e.push(p[t].start);({consequent:a,failed:o}=this.tryParseConditionalConsequent()),[l,p]=this.getArrowLikeExpressions(a)}o&&l.length>1&&this.raise(ea.AmbiguousConditionalArrow,r.startLoc),o&&1===l.length&&(this.state=r,e.push(l[0].start),this.state.noArrowAt=e,{consequent:a,failed:o}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(a,!0),this.state.noArrowAt=n,this.expect(14),s.test=e,s.consequent=a,s.alternate=this.forwardNoArrowParamsConversionAt(s,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(s,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let e=this.parseMaybeAssignAllowIn(),t=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}getArrowLikeExpressions(e,t){let i=[e],r=[];for(;0!==i.length;){let e=i.pop();"ArrowFunctionExpression"===e.type&&"BlockStatement"!==e.body.type?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):r.push(e),i.push(e.body)):"ConditionalExpression"===e.type&&(i.push(e.consequent),i.push(e.alternate))}return t?(r.forEach(e=>this.finishArrowValidation(e)),[r,[]]):function(e,t){let i=[],r=[];for(let n=0;n<e.length;n++)(t(e[n],n,e)?i:r).push(e[n]);return[i,r]}(r,e=>e.params.every(e=>this.isAssignable(e,!0)))}finishArrowValidation(e){var t;this.toAssignableList(e.params,null==(t=e.extra)?void 0:t.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,t){let i;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),i=t(),this.state.noArrowParamsConversionAt.pop()):i=t(),i}parseParenItem(e,t){let i=super.parseParenItem(e,t);if(this.eat(17)&&(i.optional=!0,this.resetEndLocation(e)),this.match(14)){let e=this.startNodeAt(t);return e.expression=i,e.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(e,"TypeCastExpression")}return i}assertModuleNodeAllowed(e){("ImportDeclaration"!==e.type||"type"!==e.importKind&&"typeof"!==e.importKind)&&("ExportNamedDeclaration"!==e.type||"type"!==e.exportKind)&&("ExportAllDeclaration"!==e.type||"type"!==e.exportKind)&&super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind="type";let t=this.startNode();return(this.next(),this.match(5))?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(t)}if(this.isContextual(131)){e.exportKind="type";let t=this.startNode();return this.next(),this.flowParseOpaqueType(t,!1)}if(this.isContextual(129)){e.exportKind="type";let t=this.startNode();return this.next(),this.flowParseInterface(t)}{if(!this.isContextual(126))return super.parseExportDeclaration(e);e.exportKind="value";let t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}}eatExportStar(e){return!!super.eatExportStar(e)||!!this.isContextual(130)&&55===this.lookahead().type&&(e.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(e){let{startLoc:t}=this.state,i=super.maybeParseExportNamespaceSpecifier(e);return i&&"type"===e.exportKind&&this.unexpected(t),i}parseClassId(e,t,i){super.parseClassId(e,t,i),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,i){let{startLoc:r}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,t))return;t.declare=!0}super.parseClassMember(e,t,i),t.declare&&("ClassProperty"!==t.type&&"ClassPrivateProperty"!==t.type&&"PropertyDefinition"!==t.type?this.raise(ea.DeclareClassElement,r):t.value&&this.raise(ea.DeclareClassFieldInitializer,t.value))}isIterator(e){return"iterator"===e||"asyncIterator"===e}readIterator(){let e=super.readWord1(),t="@@"+e;this.isIterator(e)&&this.state.inType||this.raise(h.InvalidIdentifier,this.state.curPosition(),{identifierName:t}),this.finishToken(132,t)}getTokenFromCode(e){let t=this.input.charCodeAt(this.state.pos+1);if(123===e&&124===t)this.finishOp(6,2);else if(this.state.inType&&(62===e||60===e))this.finishOp(62===e?48:47,1);else if(this.state.inType&&63===e)46===t?this.finishOp(18,2):this.finishOp(17,1);else{var i;(i=this.input.charCodeAt(this.state.pos+2),64===e&&64===t&&X(i))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e)}}isAssignable(e,t){return"TypeCastExpression"===e.type?this.isAssignable(e.expression,t):super.isAssignable(e,t)}toAssignable(e,t=!1){t||"AssignmentExpression"!==e.type||"TypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,t)}toAssignableList(e,t,i){for(let t=0;t<e.length;t++){let i=e[t];(null==i?void 0:i.type)==="TypeCastExpression"&&(e[t]=this.typeCastToParameter(i))}super.toAssignableList(e,t,i)}toReferencedList(e,t){for(let r=0;r<e.length;r++){var i;let n=e[r];n&&"TypeCastExpression"===n.type&&!(null!=(i=n.extra)&&i.parenthesized)&&(e.length>1||!t)&&this.raise(ea.TypeCastInPattern,n.typeAnnotation)}return e}parseArrayLike(e,t,i){let r=super.parseArrayLike(e,t,i);return null==i||this.state.maybeInArrowParameters||this.toReferencedList(r.elements),r}isValidLVal(e,t,i,r){return"TypeCastExpression"===e||super.isValidLVal(e,t,i,r)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,i,r,n,s){if(t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,t,i,r,n,s),t.params&&n){let e=t.params;e.length>0&&this.isThisParam(e[0])&&this.raise(ea.ThisParamBannedInConstructor,t)}else if("MethodDefinition"===t.type&&n&&t.value.params){let e=t.value.params;e.length>0&&this.isThisParam(e[0])&&this.raise(ea.ThisParamBannedInConstructor,t)}}pushClassPrivateMethod(e,t,i,r){t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,i,r)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let t=e.implements=[];do{let e=this.startNode();e.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,t.push(this.finishNode(e,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);let t=this.getObjectOrClassMethodParams(e);if(t.length>0){let i=t[0];this.isThisParam(i)&&"get"===e.kind?this.raise(ea.GetterMayNotHaveThisParam,i):this.isThisParam(i)&&this.raise(ea.SetterMayNotHaveThisParam,i)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,t,i,r,n,s,a){let o;e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&!s&&(o=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let l=super.parseObjPropValue(e,t,i,r,n,s,a);return o&&((l.value||l).typeParameters=o),l}parseFunctionParamType(e){return this.eat(17)&&("Identifier"!==e.type&&this.raise(ea.PatternIsOptional,e),this.isThisParam(e)&&this.raise(ea.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(ea.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(ea.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,t){let i=super.parseMaybeDefault(e,t);return"AssignmentPattern"===i.type&&i.typeAnnotation&&i.right.start<i.typeAnnotation.start&&this.raise(ea.TypeBeforeInitializer,i.typeAnnotation),i}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(ea.ImportReflectionHasImportType,e.specifiers[0].loc.start)}parseImportSpecifierLocal(e,t,i){t.local=eo(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,i))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){if(!e)return!0;let t=this.lookaheadCharCode();return 123===t||42===t}return!e&&this.isContextual(87)}applyImportPhase(e,t,i,r){(super.applyImportPhase(e,t,i,r),t)?!i&&this.match(65)||(e.exportKind="type"===i?i:"value"):("type"===i&&this.match(55)&&this.unexpected(),e.importKind="type"===i||"typeof"===i?i:"value")}parseImportSpecifier(e,t,i,r,n){let s=e.imported,a=null;"Identifier"===s.type&&("type"===s.name?a="type":"typeof"===s.name&&(a="typeof"));let o=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let t=this.parseIdentifier(!0);null===a||F(this.state.type)?(e.imported=s,e.importKind=null,e.local=this.parseIdentifier()):(e.imported=t,e.importKind=a,e.local=this.cloneIdentifier(t))}else{if(null!==a&&F(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=a;else{if(t)throw this.raise(h.ImportBindingIsString,e,{importName:s.value});e.imported=s,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(o=!0,e.local=this.cloneIdentifier(e.imported))}let l=eo(e);return i&&l&&this.raise(ea.ImportTypeShorthandOnlyInPureImport,e),(i||l)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),!o||i||l||this.checkReservedWord(e.local.name,e.loc.start,!0,!0),this.finishImportSpecifier(e,"ImportSpecifier")}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(e,t){let i=e.kind;"get"!==i&&"set"!==i&&this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),this.match(14)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){if(this.match(14)){let t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=t}return super.parseAsyncArrowFromCallExpression(e,t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,t){var i,r,n;let s,a=null;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(a=this.state.clone(),!(s=this.tryParse(()=>super.parseMaybeAssign(e,t),a)).error)return s.node;let{context:i}=this.state,r=i[i.length-1];(r===T.j_oTag||r===T.j_expr)&&i.pop()}if(null!=(i=s)&&i.error||this.match(47)){let i;a=a||this.state.clone();let o=this.tryParse(r=>{var n;i=this.flowParseTypeParameterDeclaration();let s=this.forwardNoArrowParamsConversionAt(i,()=>{let r=super.parseMaybeAssign(e,t);return this.resetStartLocationFromNode(r,i),r});null!=(n=s.extra)&&n.parenthesized&&r();let a=this.maybeUnwrapTypeCastExpression(s);return"ArrowFunctionExpression"!==a.type&&r(),a.typeParameters=i,this.resetStartLocationFromNode(a,i),s},a),l=null;if(o.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(o.node).type){if(!o.error&&!o.aborted)return o.node.async&&this.raise(ea.UnexpectedTypeParameterBeforeAsyncArrowFunction,i),o.node;l=o.node}if(null!=(r=s)&&r.node)return this.state=s.failState,s.node;if(l)return this.state=o.failState,l;if(null!=(n=s)&&n.thrown)throw s.error;if(o.thrown)throw o.error;throw this.raise(ea.UnexpectedTokenAfterTypeParameter,i)}return super.parseMaybeAssign(e,t)}parseArrow(e){if(this.match(14)){let t=this.tryParse(()=>{let t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let i=this.startNode();return[i.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=t,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),i});if(t.thrown)return null;t.error&&(this.state=t.failState),e.returnType=t.node.typeAnnotation?this.finishNode(t.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,t){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?e.params=t:super.setArrowFunctionParameters(e,t)}checkParams(e,t,i,r=!0){if(!(i&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start)))){for(let t=0;t<e.params.length;t++)this.isThisParam(e.params[t])&&t>0&&this.raise(ea.ThisParamMustBeFirst,e.params[t]);super.checkParams(e,t,i,r)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(e,t,i){if("Identifier"===e.type&&"async"===e.name&&this.state.noArrowAt.includes(t.index)){this.next();let i=this.startNodeAt(t);i.callee=e,i.arguments=super.parseCallExpressionArguments(),e=this.finishNode(i,"CallExpression")}else if("Identifier"===e.type&&"async"===e.name&&this.match(47)){let r=this.state.clone(),n=this.tryParse(e=>this.parseAsyncArrowWithTypeParameters(t)||e(),r);if(!n.error&&!n.aborted)return n.node;let s=this.tryParse(()=>super.parseSubscripts(e,t,i),r);if(s.node&&!s.error)return s.node;if(n.node)return this.state=n.failState,n.node;if(s.node)return this.state=s.failState,s.node;throw n.error||s.error}return super.parseSubscripts(e,t,i)}parseSubscript(e,t,i,r){if(this.match(18)&&this.isLookaheadToken_lt()){if(r.optionalChainMember=!0,i)return r.stop=!0,e;this.next();let n=this.startNodeAt(t);return n.callee=e,n.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),n.arguments=this.parseCallExpressionArguments(),n.optional=!0,this.finishCallExpression(n,!0)}if(!i&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let i=this.startNodeAt(t);i.callee=e;let n=this.tryParse(()=>(i.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),i.arguments=super.parseCallExpressionArguments(),r.optionalChainMember&&(i.optional=!1),this.finishCallExpression(i,r.optionalChainMember)));if(n.node)return n.error&&(this.state=n.failState),n.node}return super.parseSubscript(e,t,i,r)}parseNewCallee(e){super.parseNewCallee(e);let t=null;this.shouldParseTypes()&&this.match(47)&&(t=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),e.typeArguments=t}parseAsyncArrowWithTypeParameters(e){let t=this.startNodeAt(e);if(this.parseFunctionParams(t,!1),this.parseArrow(t))return super.parseArrowExpression(t,void 0,!0)}readToken_mult_modulo(e){let t=this.input.charCodeAt(this.state.pos+1);if(42===e&&47===t&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(e)}readToken_pipe_amp(e){let t=this.input.charCodeAt(this.state.pos+1);124===e&&125===t?this.finishOp(9,2):super.readToken_pipe_amp(e)}parseTopLevel(e,t){let i=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(ea.UnterminatedFlowComment,this.state.curPosition()),i}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(ea.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:e}=this.state,t=2;for(;[32,9].includes(this.input.charCodeAt(e+t));)t++;let i=this.input.charCodeAt(t+e),r=this.input.charCodeAt(t+e+1);return 58===i&&58===r?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===i&&58!==r&&t}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(h.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:t,memberName:i}){this.raise(ea.EnumBooleanMemberNotInitialized,e,{memberName:i,enumName:t})}flowEnumErrorInvalidMemberInitializer(e,t){return this.raise(t.explicitType?"symbol"===t.explicitType?ea.EnumInvalidMemberInitializerSymbolType:ea.EnumInvalidMemberInitializerPrimaryType:ea.EnumInvalidMemberInitializerUnknownType,e,t)}flowEnumErrorNumberMemberNotInitialized(e,t){this.raise(ea.EnumNumberMemberNotInitialized,e,t)}flowEnumErrorStringMemberInconsistentlyInitialized(e,t){this.raise(ea.EnumStringMemberInconsistentlyInitialized,e,t)}flowEnumMemberInit(){let e=this.state.startLoc,t=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let i=this.parseNumericLiteral(this.state.value);if(t())return{type:"number",loc:i.loc.start,value:i};return{type:"invalid",loc:e}}case 134:{let i=this.parseStringLiteral(this.state.value);if(t())return{type:"string",loc:i.loc.start,value:i};return{type:"invalid",loc:e}}case 85:case 86:{let i=this.parseBooleanLiteral(this.match(85));if(t())return{type:"boolean",loc:i.loc.start,value:i};return{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){let e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e}}}flowEnumCheckExplicitTypeMismatch(e,t,i){let{explicitType:r}=t;null!==r&&r!==i&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers({enumName:e,explicitType:t}){let i=new Set,r={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},n=!1;for(;!this.match(8);){if(this.eat(21)){n=!0;break}let s=this.startNode(),{id:a,init:o}=this.flowEnumMemberRaw(),l=a.name;if(""===l)continue;/^[a-z]/.test(l)&&this.raise(ea.EnumInvalidMemberName,a,{memberName:l,suggestion:l[0].toUpperCase()+l.slice(1),enumName:e}),i.has(l)&&this.raise(ea.EnumDuplicateMemberName,a,{memberName:l,enumName:e}),i.add(l);let p={enumName:e,explicitType:t,memberName:l};switch(s.id=a,o.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(o.loc,p,"boolean"),s.init=o.value,r.booleanMembers.push(this.finishNode(s,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(o.loc,p,"number"),s.init=o.value,r.numberMembers.push(this.finishNode(s,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(o.loc,p,"string"),s.init=o.value,r.stringMembers.push(this.finishNode(s,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(o.loc,p);case"none":switch(t){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(o.loc,p);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(o.loc,p);break;default:r.defaultedMembers.push(this.finishNode(s,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:r,hasUnknownMembers:n}}flowEnumStringMembers(e,t,{enumName:i}){if(0===e.length)return t;if(0===t.length)return e;if(t.length>e.length){for(let t of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(t,{enumName:i});return t}for(let e of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:i});return e}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(102))return null;if(!O(this.state.type))throw this.raise(ea.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e});let{value:t}=this.state;return this.next(),"boolean"!==t&&"number"!==t&&"string"!==t&&"symbol"!==t&&this.raise(ea.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:t}),t}flowEnumBody(e,t){let i=t.name,r=t.loc.start,n=this.flowEnumParseExplicitType({enumName:i});this.expect(5);let{members:s,hasUnknownMembers:a}=this.flowEnumMembers({enumName:i,explicitType:n});switch(e.hasUnknownMembers=a,n){case"boolean":return e.explicitType=!0,e.members=s.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=s.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(s.stringMembers,s.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=s.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{let t=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;let n=s.booleanMembers.length,a=s.numberMembers.length,o=s.stringMembers.length,l=s.defaultedMembers.length;if(!n&&!a&&!o&&!l)return t();if(!n&&!a)return e.members=this.flowEnumStringMembers(s.stringMembers,s.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(e,"EnumStringBody");if(a||o||!(n>=l))if(n||o||!(a>=l))return this.raise(ea.EnumInconsistentMemberValues,r,{enumName:i}),t();else{for(let e of s.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(e.loc.start,{enumName:i,memberName:e.id.name});return e.members=s.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}else{for(let e of s.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(e.loc.start,{enumName:i,memberName:e.id.name});return e.members=s.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}}}}flowParseEnumDeclaration(e){let t=this.parseIdentifier();return e.id=t,e.body=this.flowEnumBody(this.startNode(),t),this.finishNode(e,"EnumDeclaration")}jsxParseOpeningElementAfterName(e){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(e.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(e)}isLookaheadToken_lt(){let e=this.nextTokenStart();if(60===this.input.charCodeAt(e)){let t=this.input.charCodeAt(e+1);return 60!==t&&61!==t}return!1}reScan_lt_gt(){let{type:e}=this.state;47===e?(this.state.pos-=1,this.readToken_lt()):48===e&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:e}=this.state;return 51===e?(this.state.pos-=2,this.finishOp(47,1),47):e}maybeUnwrapTypeCastExpression(e){return"TypeCastExpression"===e.type?e.expression:e}},typescript:e=>class extends e{constructor(...e){super(...e),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:e2.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:e2.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:e2.InvalidModifierOnTypeParameter})}getScopeHandler(){return ex}tsIsIdentifier(){return O(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),!this.hasPrecedingLineBreak()&&this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(e,t,i){if(!O(this.state.type)&&58!==this.state.type&&75!==this.state.type)return;let r=this.state.value;if(e.includes(r)){if(i&&this.match(106)||t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return r}}tsParseModifiers({allowedModifiers:e,disallowedModifiers:t,stopOnStartOfClassStaticBlock:i,errorTemplate:r=e2.InvalidModifierOnTypeMember},n){let s=(e,t,i,r)=>{t===i&&n[r]&&this.raise(e2.InvalidModifiersOrder,e,{orderedModifiers:[i,r]})},a=(e,t,i,r)=>{(n[i]&&t===r||n[r]&&t===i)&&this.raise(e2.IncompatibleModifiers,e,{modifiers:[i,r]})};for(;;){let{startLoc:o}=this.state,l=this.tsParseModifier(e.concat(null!=t?t:[]),i,n.static);if(!l)break;if(e3(l))n.accessibility?this.raise(e2.DuplicateAccessibilityModifier,o,{modifier:l}):(s(o,l,l,"override"),s(o,l,l,"static"),s(o,l,l,"readonly"),n.accessibility=l);else"in"===l||"out"===l?(n[l]&&this.raise(e2.DuplicateModifier,o,{modifier:l}),n[l]=!0,s(o,l,"in","out")):(hasOwnProperty.call(n,l)?this.raise(e2.DuplicateModifier,o,{modifier:l}):(s(o,l,"static","readonly"),s(o,l,"static","override"),s(o,l,"override","readonly"),s(o,l,"abstract","override"),a(o,l,"declare","override"),a(o,l,"static","abstract")),n[l]=!0);null!=t&&t.includes(l)&&this.raise(r,o,{modifier:l})}}tsIsListTerminator(e){switch(e){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(e,t){let i=[];for(;!this.tsIsListTerminator(e);)i.push(t());return i}tsParseDelimitedList(e,t,i){var r=this.tsParseDelimitedListWorker(e,t,!0,i);if(null==r)throw Error(`Unexpected ${r} value.`);return r}tsParseDelimitedListWorker(e,t,i,r){let n=[],s=-1;for(;!this.tsIsListTerminator(e);){s=-1;let r=t();if(null==r)return;if(n.push(r),this.eat(12)){s=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(e))break;i&&this.expect(12);return}return r&&(r.value=s),n}tsParseBracketedList(e,t,i,r,n){r||(i?this.expect(0):this.expect(47));let s=this.tsParseDelimitedList(e,t,n);return i?this.expect(3):this.expect(48),s}tsParseImportType(){let e=this.startNode();return this.expect(83),this.expect(10),this.match(134)?e.argument=this.parseStringLiteral(this.state.value):(this.raise(e2.UnsupportedImportTypeArgument,this.state.startLoc),e.argument=super.parseExprAtom()),this.eat(12)?e.options=this.tsParseImportTypeOptions():e.options=null,this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName(3)),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseImportTypeOptions(){let e=this.startNode();this.expect(5);let t=this.startNode();return this.isContextual(76)?(t.method=!1,t.key=this.parseIdentifier(!0),t.computed=!1,t.shorthand=!1):this.unexpected(null,76),this.expect(14),t.value=this.tsParseImportTypeWithPropertyValue(),e.properties=[this.finishObjectProperty(t)],this.eat(12),this.expect(8),this.finishNode(e,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let e=this.startNode(),t=[];for(this.expect(5);!this.match(8);){let e=this.state.type;O(e)||134===e?t.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return e.properties=t,this.next(),this.finishNode(e,"ObjectExpression")}tsParseEntityName(e){let t;if(1&e&&this.match(78))if(2&e)t=this.parseIdentifier(!0);else{let e=this.startNode();this.next(),t=this.finishNode(e,"ThisExpression")}else t=this.parseIdentifier(!!(1&e));for(;this.eat(16);){let i=this.startNodeAtNode(t);i.left=t,i.right=this.parseIdentifier(!!(1&e)),t=this.finishNode(i,"TSQualifiedName")}return t}tsParseTypeReference(){let e=this.startNode();return e.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();let t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,"TSTypePredicate")}tsParseThisTypeNode(){let e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){let e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(3),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(e){let t=this.startNode();return e(t),t.name=this.tsParseTypeParameterName(),t.constraint=this.tsEatThenParseType(81),t.default=this.tsEatThenParseType(29),this.finishNode(t,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){let t=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let i={value:-1};return t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,i),0===t.params.length&&this.raise(e2.EmptyTypeParameters,t),-1!==i.value&&this.addExtra(t,"trailingComma",i.value),this.finishNode(t,"TSTypeParameterDeclaration")}tsFillSignature(e,t){let i=19===e,r="typeAnnotation";t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),t.parameters=this.tsParseBindingListForSignature(),i?t[r]=this.tsParseTypeOrTypePredicateAnnotation(e):this.match(e)&&(t[r]=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){let e=super.parseBindingList(11,41,2);for(let t of e){let{type:e}=t;("AssignmentPattern"===e||"TSParameterProperty"===e)&&this.raise(e2.UnsupportedSignatureParameterKind,t,{type:e})}return e}tsParseTypeMemberSemicolon(){this.eat(12)||this.isLineTerminator()||this.expect(13)}tsParseSignatureMember(e,t){return this.tsFillSignature(14,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),!!O(this.state.type)&&(this.next(),this.match(14))}tsTryParseIndexSignature(e){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(3),e.parameters=[t];let i=this.tsTryParseTypeAnnotation();return i&&(e.typeAnnotation=i),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,t){if(this.eat(17)&&(e.optional=!0),this.match(10)||this.match(47)){t&&this.raise(e2.ReadonlyForMethodSignature,e),e.kind&&this.match(47)&&this.raise(e2.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,e),this.tsParseTypeMemberSemicolon();let i="parameters",r="typeAnnotation";if("get"===e.kind)e[i].length>0&&(this.raise(h.BadGetterArity,this.state.curPosition()),this.isThisParam(e[i][0])&&this.raise(e2.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===e.kind){if(1!==e[i].length)this.raise(h.BadSetterArity,this.state.curPosition());else{let t=e[i][0];this.isThisParam(t)&&this.raise(e2.AccessorCannotDeclareThisParameter,this.state.curPosition()),"Identifier"===t.type&&t.optional&&this.raise(e2.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),"RestElement"===t.type&&this.raise(e2.SetAccessorCannotHaveRestParameter,this.state.curPosition())}e[r]&&this.raise(e2.SetAccessorCannotHaveReturnType,e[r])}else e.kind="method";return this.finishNode(e,"TSMethodSignature")}{t&&(e.readonly=!0);let i=this.tsTryParseTypeAnnotation();return i&&(e.typeAnnotation=i),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSPropertySignature")}}tsParseTypeMember(){let e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(77)){let t=this.startNode();return(this.next(),this.match(10)||this.match(47))?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e);let t=this.tsTryParseIndexSignature(e);return t||(super.parsePropertyName(e),!e.computed&&"Identifier"===e.key.type&&("get"===e.key.name||"set"===e.key.name)&&this.tsTokenCanFollowModifier()&&(e.kind=e.key.name,super.parsePropertyName(e),this.match(10)||this.match(47)||this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){let e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return(this.next(),this.eat(53))?this.isContextual(122):(this.isContextual(122)&&this.next(),!!this.match(0)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(58))))}tsParseMappedType(){let e=this.startNode();this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0);{let t=this.startNode();t.name=this.tsParseTypeParameterName(),t.constraint=this.tsExpectThenParseType(58),e.typeParameter=this.finishNode(t,"TSTypeParameter")}return e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}tsParseTupleType(){let e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let t=!1;return e.elementTypes.forEach(e=>{let{type:i}=e;t&&"TSRestType"!==i&&"TSOptionalType"!==i&&!("TSNamedTupleMember"===i&&e.optional)&&this.raise(e2.OptionalTypeBeforeRequired,e),t||(t="TSNamedTupleMember"===i&&e.optional||"TSOptionalType"===i)}),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){let e,t,i,r,n=this.state.startLoc,s=this.eat(21),{startLoc:a}=this.state,o=F(this.state.type)?this.lookaheadCharCode():null;if(58===o)e=!0,i=!1,t=this.parseIdentifier(!0),this.expect(14),r=this.tsParseType();else if(63===o){i=!0;let n=this.state.value,s=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(e=!0,t=this.createIdentifier(this.startNodeAt(a),n),this.expect(17),this.expect(14),r=this.tsParseType()):(e=!1,r=s,this.expect(17))}else r=this.tsParseType(),i=this.eat(17),e=this.eat(14);if(e){let e;t?((e=this.startNodeAt(a)).optional=i,e.label=t,e.elementType=r,this.eat(17)&&(e.optional=!0,this.raise(e2.TupleOptionalAfterType,this.state.lastTokStartLoc))):((e=this.startNodeAt(a)).optional=i,this.raise(e2.InvalidTupleMemberLabel,r),e.label=r,e.elementType=this.tsParseType()),r=this.finishNode(e,"TSNamedTupleMember")}else if(i){let e=this.startNodeAt(a);e.typeAnnotation=r,r=this.finishNode(e,"TSOptionalType")}if(s){let e=this.startNodeAt(n);e.typeAnnotation=r,r=this.finishNode(e,"TSRestType")}return r}tsParseParenthesizedType(){let e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,t){let i=this.startNode();return"TSConstructorType"===e&&(i.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,i)),this.finishNode(i,e)}tsParseLiteralTypeNode(){let e=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){{let e=this.startNode();return e.literal=super.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if("-"===this.state.value){let e=this.startNode(),t=this.lookahead();return 135!==t.type&&136!==t.type&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:e}=this.state;if(O(e)||88===e||84===e){let t=88===e?"TSVoidKeyword":84===e?"TSNullKeyword":function(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.state.value);if(void 0!==t&&46!==this.lookaheadCharCode()){let e=this.startNode();return this.next(),this.finishNode(e,t)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:e}=this.state,t=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let i=this.startNodeAt(e);i.elementType=t,this.expect(3),t=this.finishNode(i,"TSArrayType")}else{let i=this.startNodeAt(e);i.objectType=t,i.indexType=this.tsParseType(),this.expect(3),t=this.finishNode(i,"TSIndexedAccessType")}return t}tsParseTypeOperator(){let e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===t&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(e2.UnexpectedReadonly,e)}}tsParseInferType(){let e=this.startNode();this.expectContextual(115);let t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),e.typeParameter=this.finishNode(t,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let e=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){var e;return(e=this.state.type)>=121&&e<=123&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(e,t,i){let r=this.startNode(),n=this.eat(i),s=[];do s.push(t());while(this.eat(i));return 1!==s.length||n?(r.types=s,this.finishNode(r,e)):s[0]}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return!!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(O(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:e}=this.state,t=e.length;try{return this.parseObjectLike(8,!0),e.length===t}catch(e){return!1}}if(this.match(0)){this.next();let{errors:e}=this.state,t=e.length;try{return super.parseBindingList(3,93,1),e.length===t}catch(e){}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))return!0;return!1}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType(()=>{let t=this.startNode();this.expect(e);let i=this.startNode(),r=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(r&&this.match(78)){let e=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===e.type?(i.parameterName=e,i.asserts=!0,i.typeAnnotation=null,e=this.finishNode(i,"TSTypePredicate")):(this.resetStartLocationFromNode(e,i),e.asserts=!0),t.typeAnnotation=e,this.finishNode(t,"TSTypeAnnotation")}let n=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!n)return r?(i.parameterName=this.parseIdentifier(),i.asserts=r,i.typeAnnotation=null,t.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,t);let s=this.tsParseTypeAnnotation(!1);return i.parameterName=n,i.typeAnnotation=s,i.asserts=r,t.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(109!==this.state.type)return!1;let e=this.state.containsEsc;return this.next(),(!!O(this.state.type)||!!this.match(78))&&(e&&this.raise(h.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(e=!0,t=this.startNode()){return this.tsInType(()=>{e&&this.expect(14),t.typeAnnotation=this.tsParseType()}),this.finishNode(t,"TSTypeAnnotation")}tsParseType(){e1(this.state.inType);let e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;let t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),t.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),t.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(t,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(e2.ReservedTypeAssertion,this.state.startLoc);let e=this.startNode();return e.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){let t=this.state.startLoc,i=this.tsParseDelimitedList("HeritageClauseElement",()=>{{let e=this.startNode();return e.expression=this.tsParseEntityName(3),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")}});return i.length||this.raise(e2.EmptyHeritageClauseType,t,{token:e}),i}tsParseInterfaceDeclaration(e,t={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),t.declare&&(e.declare=!0),O(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(e2.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));let i=this.startNode();return i.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(i,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType(()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&46!==this.lookaheadCharCode()){let e=this.startNode();return this.next(),this.finishNode(e,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInTopLevelContext(e){if(this.curContext()===T.brace)return e();{let t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}}tsInType(e){let t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}}tsInDisallowConditionalTypesContext(e){let t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsInAllowConditionalTypesContext(e){let t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType(()=>(this.expect(e),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let e=this.startNode();return e.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,t={}){return t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")}tsParseEnumBody(){let e=this.startNode();return this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumBody")}tsParseModuleBlock(){let e=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,t=!1){if(e.id=this.parseIdentifier(),t||this.checkIdentifier(e.id,1024),this.eat(16)){let t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,!0),e.body=t}else this.scope.enter(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(112)?(e.kind="global",e.global=!0,e.id=this.parseIdentifier()):this.match(134)?(e.kind="module",e.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,t,i){e.isExport=i||!1,e.id=t||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);let r=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==r.type&&this.raise(e2.ImportAliasHasImportType,r),e.moduleReference=r,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let e=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){let t=this.state.clone(),i=e();return this.state=t,i}tsTryParseAndCatch(e){let t=this.tryParse(t=>e()||t());if(!t.aborted&&t.node)return t.error&&(this.state=t.failState),t.node}tsTryParse(e){let t=this.state.clone(),i=e();if(void 0!==i&&!1!==i)return i;this.state=t}tsTryParseDeclare(e){if(this.isLineTerminator())return;let t=this.state.type;return this.tsInAmbientContext(()=>{switch(t){case 68:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 80:return e.declare=!0,this.parseClass(e,!0,!1);case 126:return this.tsParseEnumDeclaration(e,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(e);case 100:if(this.state.containsEsc)return;case 75:case 74:if(!this.match(75)||!this.isLookaheadContextual("enum"))return e.declare=!0,this.parseVarStatement(e,this.state.value,!0);return this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0});case 107:if(this.isUsing())return this.raise(e2.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.parseVarStatement(e,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(e2.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.next(),this.parseVarStatement(e,"await using",!0);break;case 129:{let t=this.tsParseInterfaceDeclaration(e,{declare:!0});if(t)return t}default:if(O(t))return this.tsParseDeclaration(e,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(e,t,i,r){switch(t){case 124:if(this.tsCheckLineTerminator(i)&&(this.match(80)||O(this.state.type)))return this.tsParseAbstractDeclaration(e,r);break;case 127:if(this.tsCheckLineTerminator(i)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(e);else if(O(this.state.type))return e.kind="module",this.tsParseModuleOrNamespaceDeclaration(e)}break;case 128:if(this.tsCheckLineTerminator(i)&&O(this.state.type))return e.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(e);break;case 130:if(this.tsCheckLineTerminator(i)&&O(this.state.type))return this.tsParseTypeAliasDeclaration(e)}}tsCheckLineTerminator(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;let t=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let i=this.tsTryParseAndCatch(()=>{let t=this.startNodeAt(e);return t.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(t),t.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),t});if(this.state.maybeInArrowParameters=t,i)return super.parseArrowExpression(i,null,!0)}tsParseTypeArgumentsInExpression(){if(47===this.reScan_lt())return this.tsParseTypeArguments()}tsParseTypeArguments(){let e=this.startNode();return e.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),0===e.params.length?this.raise(e2.EmptyTypeArguments,e):this.state.inType||this.curContext()!==T.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){var e;return(e=this.state.type)>=124&&e<=130}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseBindingElement(e,t){let i=t.length?t[0].loc.start:this.state.startLoc,r={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},r);let n=r.accessibility,s=r.override,a=r.readonly;!(4&e)&&(n||a||s)&&this.raise(e2.UnexpectedParameterModifier,i);let o=this.parseMaybeDefault();2&e&&this.parseFunctionParamType(o);let l=this.parseMaybeDefault(o.loc.start,o);if(n||a||s){let e=this.startNodeAt(i);return t.length&&(e.decorators=t),n&&(e.accessibility=n),a&&(e.readonly=a),s&&(e.override=s),"Identifier"!==l.type&&"AssignmentPattern"!==l.type&&this.raise(e2.UnsupportedParameterPropertyKind,e),e.parameter=l,this.finishNode(e,"TSParameterProperty")}return t.length&&(o.decorators=t),l}isSimpleParameter(e){return"TSParameterProperty"===e.type&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(let t of e.params)"Identifier"!==t.type&&t.optional&&!this.state.isAmbientContext&&this.raise(e2.PatternIsOptional,t)}setArrowFunctionParameters(e,t,i){super.setArrowFunctionParameters(e,t,i),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t,i=!1){this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let r="FunctionDeclaration"===t?"TSDeclareFunction":"ClassMethod"===t||"ClassPrivateMethod"===t?"TSDeclareMethod":void 0;return r&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,r):"TSDeclareFunction"===r&&this.state.isAmbientContext&&(this.raise(e2.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,r,i):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,t,i))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach(e=>{(null==e?void 0:e.type)==="TSTypeCastExpression"&&this.raise(e2.UnexpectedTypeAnnotation,e.typeAnnotation)})}toReferencedList(e,t){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,t,i){let r=super.parseArrayLike(e,t,i);return"ArrayExpression"===r.type&&this.tsCheckForInvalidTypeCasts(r.elements),r}parseSubscript(e,t,i,r){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let i=this.startNodeAt(t);return i.expression=e,this.finishNode(i,"TSNonNullExpression")}let n=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(i)return r.stop=!0,e;r.optionalChainMember=n=!0,this.next()}if(this.match(47)||this.match(51)){let s,a=this.tsTryParseAndCatch(()=>{if(!i&&this.atPossibleAsyncArrow(e)){let e=this.tsTryParseGenericAsyncArrowFunction(t);if(e)return r.stop=!0,e}let a=this.tsParseTypeArgumentsInExpression();if(!a)return;if(n&&!this.match(10)){s=this.state.curPosition();return}if(j(this.state.type)){let i=super.parseTaggedTemplateExpression(e,t,r);return i.typeParameters=a,i}if(!i&&this.eat(10)){let i=this.startNodeAt(t);return i.callee=e,i.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(i.arguments),i.typeParameters=a,r.optionalChainMember&&(i.optional=n),this.finishCallExpression(i,r.optionalChainMember)}let o=this.state.type;if(48===o||52===o||10!==o&&w[o]&&!this.hasPrecedingLineBreak())return;let l=this.startNodeAt(t);return l.expression=e,l.typeParameters=a,this.finishNode(l,"TSInstantiationExpression")});if(s&&this.unexpected(s,10),a)return"TSInstantiationExpression"===a.type&&((this.match(16)||this.match(18)&&40!==this.lookaheadCharCode())&&this.raise(e2.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),this.match(16)||this.match(18)||(a.expression=super.stopParseSubscript(e,r))),a}return super.parseSubscript(e,t,i,r)}parseNewCallee(e){var t;super.parseNewCallee(e);let{callee:i}=e;"TSInstantiationExpression"!==i.type||null!=(t=i.extra)&&t.parenthesized||(e.typeParameters=i.typeParameters,e.callee=i.expression)}parseExprOp(e,t,i){let r;if(D[58]>i&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(r=this.isContextual(120)))){let n=this.startNodeAt(t);return n.expression=e,n.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75))?(r&&this.raise(h.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType()),this.finishNode(n,r?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(n,t,i)}return super.parseExprOp(e,t,i)}checkReservedWord(e,t,i,r){this.state.isAmbientContext||super.checkReservedWord(e,t,i,r)}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(e2.ImportReflectionHasImportType,e.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){let t=this.lookaheadCharCode();return e?123===t||42===t:61!==t}return!e&&this.isContextual(87)}applyImportPhase(e,t,i,r){super.applyImportPhase(e,t,i,r),t?e.exportKind="type"===i?"type":"value":e.importKind="type"===i||"typeof"===i?i:"value"}parseImport(e){let t;if(this.match(134))return e.importKind="value",super.parseImport(e);if(O(this.state.type)&&61===this.lookaheadCharCode())return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){let i=this.parseMaybeImportPhase(e,!1);if(61===this.lookaheadCharCode())return this.tsParseImportEqualsDeclaration(e,i);t=super.parseImportSpecifiersAndAfter(e,i)}else t=super.parseImport(e);return"type"===t.importKind&&t.specifiers.length>1&&"ImportDefaultSpecifier"===t.specifiers[0].type&&this.raise(e2.TypeImportCannotSpecifyDefaultAndNamed,t),t}parseExport(e,t){if(this.match(83)){this.next();let t=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?t=this.parseMaybeImportPhase(e,!1):e.importKind="value",this.tsParseImportEqualsDeclaration(e,t,!0)}return this.eat(29)?(e.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExportAssignment")):this.eatContextual(93)?(this.expectContextual(128),e.id=this.parseIdentifier(),this.semicolon(),this.finishNode(e,"TSNamespaceExportDeclaration")):super.parseExport(e,t)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(129)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,t,i=!1){let{isAmbientContext:r}=this.state,n=super.parseVarStatement(e,t,i||r);if(!r)return n;if(!e.declare&&("using"===t||"await using"===t))return this.raiseOverwrite(e2.UsingDeclarationInAmbientContext,e,t),n;for(let{id:e,init:i}of n.declarations)i&&("var"===t||"let"===t||e.typeAnnotation?this.raise(e2.InitializerNotAllowedInAmbientContext,i):!function(e,t){var i;let{type:r}=e;if(null!=(i=e.extra)&&i.parenthesized)return!1;if(t){if("Literal"===r){let{value:t}=e;if("string"==typeof t||"boolean"==typeof t)return!0}}else if("StringLiteral"===r||"BooleanLiteral"===r)return!0;return!!(e4(e,t)||function(e,t){if("UnaryExpression"===e.type){let{operator:i,argument:r}=e;if("-"===i&&e4(r,t))return!0}return!1}(e,t)||"TemplateLiteral"===r&&0===e.expressions.length||function(e){if("MemberExpression"!==e.type)return!1;let{computed:t,property:i}=e;return(!t||"StringLiteral"===i.type||"TemplateLiteral"===i.type&&!(i.expressions.length>0))&&function e(t){return"Identifier"===t.type||"MemberExpression"===t.type&&!t.computed&&e(t.object)}(e.object)}(e))}(i,this.hasPlugin("estree"))&&this.raise(e2.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,i));return n}parseStatementContent(e,t){if(!this.state.containsEsc)switch(this.state.type){case 75:if(this.isLookaheadContextual("enum")){let e=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(e,{const:!0})}break;case 124:case 125:if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let e=this.state.type,i=this.startNode();this.next();let r=125===e?this.tsTryParseDeclare(i):this.tsParseAbstractDeclaration(i,t);if(r)return 125===e&&(r.declare=!0),r;return i.expression=this.createIdentifier(this.startNodeAt(i.loc.start),125===e?"declare":"abstract"),this.semicolon(!1),this.finishNode(i,"ExpressionStatement")}break;case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:if(123===this.lookaheadCharCode()){let e=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(e)}break;case 129:{let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e;break}case 127:if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){let e=this.startNode();return this.next(),this.tsParseDeclaration(e,127,!1,t)}break;case 128:if(this.nextTokenIsIdentifierOnSameLine()){let e=this.startNode();return this.next(),this.tsParseDeclaration(e,128,!1,t)}break;case 130:if(this.nextTokenIsIdentifierOnSameLine()){let e=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(e)}}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,t){return t.some(t=>e3(t)?e.accessibility===t:!!e[t])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&123===this.lookaheadCharCode()}parseClassMember(e,t,i){let r=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:r,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:e2.InvalidModifierOnTypeParameterPositions},t);let n=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(t,r)&&this.raise(e2.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,t)):this.parseClassMemberWithIsStatic(e,t,i,!!t.static)};t.declare?this.tsInAmbientContext(n):n()}parseClassMemberWithIsStatic(e,t,i,r){let n=this.tsTryParseIndexSignature(t);if(n){e.body.push(n),t.abstract&&this.raise(e2.IndexSignatureHasAbstract,t),t.accessibility&&this.raise(e2.IndexSignatureHasAccessibility,t,{modifier:t.accessibility}),t.declare&&this.raise(e2.IndexSignatureHasDeclare,t),t.override&&this.raise(e2.IndexSignatureHasOverride,t);return}!this.state.inAbstractClass&&t.abstract&&this.raise(e2.NonAbstractClassHasAbstractMethod,t),t.override&&!i.hadSuperClass&&this.raise(e2.OverrideNotInSubClass,t),super.parseClassMemberWithIsStatic(e,t,i,r)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(e2.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(e2.ClassMethodHasDeclare,e)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(e,t,i){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){let t=this.lookaheadCharCode();if(44===t||61===t||58===t||41===t)return this.setOptionalParametersError(i),e}return super.parseConditional(e,t,i)}parseParenItem(e,t){let i=super.parseParenItem(e,t);if(this.eat(17)&&(i.optional=!0,this.resetEndLocation(e)),this.match(14)){let i=this.startNodeAt(t);return i.expression=e,i.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(i,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(e));let t=this.state.startLoc,i=this.eatContextual(125);if(i&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(e2.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let r=O(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return r?(("TSInterfaceDeclaration"===r.type||"TSTypeAliasDeclaration"===r.type||i)&&(e.exportKind="type"),i&&"TSImportEqualsDeclaration"!==r.type&&(this.resetStartLocation(r,t),r.declare=!0),r):null}parseClassId(e,t,i,r){if((!t||i)&&this.isContextual(113))return;super.parseClassId(e,t,i,e.declare?1024:8331);let n=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);n&&(e.typeParameters=n)}parseClassPropertyAnnotation(e){!e.optional&&(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));let t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&!(e.readonly&&!e.typeAnnotation)&&this.match(29)&&this.raise(e2.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){let{key:t}=e;this.raise(e2.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:"Identifier"!==t.type||e.computed?`[${this.input.slice(this.offsetToSourcePos(t.start),this.offsetToSourcePos(t.end))}]`:t.name})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(e2.PrivateElementHasAbstract,e),e.accessibility&&this.raise(e2.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(e2.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,t,i,r,n,s){let a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&n&&this.raise(e2.ConstructorHasTypeParameters,a);let{declare:o=!1,kind:l}=t;o&&("get"===l||"set"===l)&&this.raise(e2.DeclareAccessor,t,{kind:l}),a&&(t.typeParameters=a),super.pushClassMethod(e,t,i,r,n,s)}pushClassPrivateMethod(e,t,i,r){let n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(t.typeParameters=n),super.pushClassPrivateMethod(e,t,i,r)}declareClassPrivateMethodInScope(e,t){"TSDeclareMethod"===e.type||("MethodDefinition"!==e.type||null!=e.value.body)&&super.declareClassPrivateMethodInScope(e,t)}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,t,i,r,n,s,a){let o=this.tsTryParseTypeParameters(this.tsParseConstModifier);return o&&(e.typeParameters=o),super.parseObjPropValue(e,t,i,r,n,s,a)}parseFunctionParams(e,t){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(e.typeParameters=i),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),"Identifier"===e.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);let i=this.tsTryParseTypeAnnotation();i&&(e.id.typeAnnotation=i,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){var i,r,n,s,a;let o,l,p,u;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(o=this.state.clone(),!(l=this.tryParse(()=>super.parseMaybeAssign(e,t),o)).error)return l.node;let{context:i}=this.state,r=i[i.length-1];(r===T.j_oTag||r===T.j_expr)&&i.pop()}if(!(null!=(i=l)&&i.error)&&!this.match(47))return super.parseMaybeAssign(e,t);o&&o!==this.state||(o=this.state.clone());let c=this.tryParse(i=>{var r,n;u=this.tsParseTypeParameters(this.tsParseConstModifier);let s=super.parseMaybeAssign(e,t);return("ArrowFunctionExpression"!==s.type||null!=(r=s.extra)&&r.parenthesized)&&i(),(null==(n=u)?void 0:n.params.length)!==0&&this.resetStartLocationFromNode(s,u),s.typeParameters=u,s},o);if(!c.error&&!c.aborted)return u&&this.reportReservedArrowTypeParam(u),c.node;if(!l&&(e1(!this.hasPlugin("jsx")),!(p=this.tryParse(()=>super.parseMaybeAssign(e,t),o)).error))return p.node;if(null!=(r=l)&&r.node)return this.state=l.failState,l.node;if(c.node)return this.state=c.failState,u&&this.reportReservedArrowTypeParam(u),c.node;if(null!=(n=p)&&n.node)return this.state=p.failState,p.node;throw(null==(s=l)?void 0:s.error)||c.error||(null==(a=p)?void 0:a.error)}reportReservedArrowTypeParam(e){var t;1===e.params.length&&!e.params[0].constraint&&!(null!=(t=e.extra)&&t.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(e2.ReservedArrowTypeParam,e)}parseMaybeUnary(e,t){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,t)}parseArrow(e){if(this.match(14)){let t=this.tryParse(e=>{let t=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&e(),t});if(t.aborted)return;t.thrown||(t.error&&(this.state=t.failState),e.returnType=t.node)}return super.parseArrow(e)}parseFunctionParamType(e){this.eat(17)&&(e.optional=!0);let t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t),this.resetEndLocation(e),e}isAssignable(e,t){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,t);case"TSParameterProperty":return!0;default:return super.isAssignable(e,t)}}toAssignable(e,t=!1){switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,t);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":t?this.expressionScope.recordArrowParameterBindingError(e2.UnexpectedTypeCastInParameter,e):this.raise(e2.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,t);break;case"AssignmentExpression":t||"TSTypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,t)}}toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,t);break;default:super.toAssignable(e,t)}}checkToRestConversion(e,t){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,t)}}isValidLVal(e,t,i,r){switch(e){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(64!==r||!i)&&["expression",!0];default:return super.isValidLVal(e,t,i,r)}}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e,t){if(this.match(47)||this.match(51)){let i=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let r=super.parseMaybeDecoratorArguments(e,t);return r.typeParameters=i,r}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e,t)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,t){let i=super.parseMaybeDefault(e,t);return"AssignmentPattern"===i.type&&i.typeAnnotation&&i.right.start<i.typeAnnotation.start&&this.raise(e2.TypeAnnotationAfterAssign,i.typeAnnotation),i}getTokenFromCode(e){if(this.state.inType){if(62===e)return void this.finishOp(48,1);if(60===e)return void this.finishOp(47,1)}super.getTokenFromCode(e)}reScan_lt_gt(){let{type:e}=this.state;47===e?(this.state.pos-=1,this.readToken_lt()):48===e&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:e}=this.state;return 51===e?(this.state.pos-=2,this.finishOp(47,1),47):e}toAssignableListItem(e,t,i){let r=e[t];"TSTypeCastExpression"===r.type&&(e[t]=this.typeCastToParameter(r)),super.toAssignableListItem(e,t,i)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(e){return this.match(14)?e.every(e=>this.isAssignable(e,!0)):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){let t=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());t&&(e.typeParameters=t)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){let t=super.getGetterSetterExpectedParamCount(e),i=this.getObjectOrClassMethodParams(e)[0];return i&&this.isThisParam(i)?t+1:t}parseCatchClauseParam(){let e=super.parseCatchClauseParam(),t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t,this.resetEndLocation(e)),e}tsInAmbientContext(e){let{isAmbientContext:t,strict:i}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return e()}finally{this.state.isAmbientContext=t,this.state.strict=i}}parseClass(e,t,i){let r=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,i)}finally{this.state.inAbstractClass=r}}tsParseAbstractDeclaration(e,t){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(t,this.parseClass(e,!0,!1));if(this.isContextual(129))if(!this.hasFollowingLineBreak())return e.abstract=!0,this.raise(e2.NonClassMethodPropertyHasAbstractModifier,e),this.tsParseInterfaceDeclaration(e);else return null;throw this.unexpected(null,80)}parseMethod(e,t,i,r,n,s,a){let o=super.parseMethod(e,t,i,r,n,s,a);if((o.abstract||"TSAbstractMethodDefinition"===o.type)&&(this.hasPlugin("estree")?o.value:o).body){let{key:e}=o;this.raise(e2.AbstractMethodHasImplementation,o,{methodName:"Identifier"!==e.type||o.computed?`[${this.input.slice(this.offsetToSourcePos(e.start),this.offsetToSourcePos(e.end))}]`:e.name})}return o}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,t,i,r){return!t&&r?(this.parseTypeOnlyImportExportSpecifier(e,!1,i),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,t,i,r))}parseImportSpecifier(e,t,i,r,n){return!t&&r?(this.parseTypeOnlyImportExportSpecifier(e,!0,i),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,t,i,r,i?4098:4096))}parseTypeOnlyImportExportSpecifier(e,t,i){let r,n=t?"imported":"local",s=t?"local":"exported",a=e[n],o=!1,l=!0,p=a.loc.start;if(this.isContextual(93)){let e=this.parseIdentifier();if(this.isContextual(93)){let i=this.parseIdentifier();F(this.state.type)?(o=!0,a=e,r=t?this.parseIdentifier():this.parseModuleExportName()):r=i,l=!1}else F(this.state.type)?(l=!1,r=t?this.parseIdentifier():this.parseModuleExportName()):(o=!0,a=e)}else F(this.state.type)&&(o=!0,t?(a=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(a.name,a.loc.start,!0,!0)):a=this.parseModuleExportName());o&&i&&this.raise(t?e2.TypeModifierIsUsedInTypeImports:e2.TypeModifierIsUsedInTypeExports,p),e[n]=a,e[s]=r,e[t?"importKind":"exportKind"]=o?"type":"value",l&&this.eatContextual(93)&&(e[s]=t?this.parseIdentifier():this.parseModuleExportName()),e[s]||(e[s]=this.cloneIdentifier(e[n])),t&&this.checkIdentifier(e[s],o?4098:4096)}fillOptionalPropertiesForTSESLint(e){switch(e.type){case"ExpressionStatement":null!=e.directive||(e.directive=void 0);return;case"RestElement":e.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":null!=e.decorators||(e.decorators=[]),null!=e.optional||(e.optional=!1),null!=e.typeAnnotation||(e.typeAnnotation=void 0);return;case"TSParameterProperty":null!=e.accessibility||(e.accessibility=void 0),null!=e.decorators||(e.decorators=[]),null!=e.override||(e.override=!1),null!=e.readonly||(e.readonly=!1),null!=e.static||(e.static=!1);return;case"TSEmptyBodyFunctionExpression":e.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":null!=e.declare||(e.declare=!1),null!=e.returnType||(e.returnType=void 0),null!=e.typeParameters||(e.typeParameters=void 0);return;case"Property":null!=e.optional||(e.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":null!=e.optional||(e.optional=!1);case"TSIndexSignature":null!=e.accessibility||(e.accessibility=void 0),null!=e.readonly||(e.readonly=!1),null!=e.static||(e.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":null!=e.declare||(e.declare=!1),null!=e.definite||(e.definite=!1),null!=e.readonly||(e.readonly=!1),null!=e.typeAnnotation||(e.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":null!=e.accessibility||(e.accessibility=void 0),null!=e.decorators||(e.decorators=[]),null!=e.override||(e.override=!1),null!=e.optional||(e.optional=!1);return;case"ClassExpression":null!=e.id||(e.id=null);case"ClassDeclaration":null!=e.abstract||(e.abstract=!1),null!=e.declare||(e.declare=!1),null!=e.decorators||(e.decorators=[]),null!=e.implements||(e.implements=[]),null!=e.superTypeArguments||(e.superTypeArguments=void 0),null!=e.typeParameters||(e.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":null!=e.declare||(e.declare=!1);return;case"VariableDeclarator":null!=e.definite||(e.definite=!1);return;case"TSEnumDeclaration":null!=e.const||(e.const=!1),null!=e.declare||(e.declare=!1);return;case"TSEnumMember":null!=e.computed||(e.computed=!1);return;case"TSImportType":null!=e.qualifier||(e.qualifier=null),null!=e.options||(e.options=null);return;case"TSInterfaceDeclaration":null!=e.declare||(e.declare=!1),null!=e.extends||(e.extends=[]);return;case"TSMappedType":null!=e.optional||(e.optional=!1),null!=e.readonly||(e.readonly=void 0);return;case"TSModuleDeclaration":null!=e.declare||(e.declare=!1),null!=e.global||(e.global="global"===e.kind);return;case"TSTypeParameter":null!=e.const||(e.const=!1),null!=e.in||(e.in=!1),null!=e.out||(e.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(e,t){if(X(e)){if(e0.lastIndex=t,e0.test(this.input)){let e=this.codePointAtPos(e0.lastIndex);if(!z(e)&&92!==e)return!1}return!0}return 92===e||!1}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifierAndNotRelationalOperator(t,e)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)||34===t||39===t}},v8intrinsic:e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let e=this.state.startLoc,t=this.startNode();if(this.next(),O(this.state.type)){let e=this.parseIdentifierName(),i=this.createIdentifier(t,e);if(this.castNodeTo(i,"V8IntrinsicIdentifier"),this.match(10))return i}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}},placeholders:e=>class extends e{parsePlaceholder(e){if(this.match(133)){let t=this.startNode();return this.next(),this.assertNoSpace(),t.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){let i=e;return i.expectedNode&&i.type||(i=this.finishNode(i,"Placeholder")),i.expectedNode=t,i}getTokenFromCode(e){37===e&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(133,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,t,i,r){void 0!==e&&super.checkReservedWord(e,t,i,r)}cloneIdentifier(e){let t=super.cloneIdentifier(e);return"Placeholder"===t.type&&(t.expectedNode=e.expectedNode),t}cloneStringLiteral(e){return"Placeholder"===e.type?this.cloneIdentifier(e):super.cloneStringLiteral(e)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,t,i,r){return"Placeholder"===e||super.isValidLVal(e,t,i,r)}toAssignable(e,t){e&&"Placeholder"===e.type&&"Expression"===e.expectedNode?e.expectedNode="Pattern":super.toAssignable(e,t)}chStartsBindingIdentifier(e,t){if(super.chStartsBindingIdentifier(e,t))return!0;let i=this.nextTokenStart();return 37===this.input.charCodeAt(i)&&37===this.input.charCodeAt(i+1)}verifyBreakContinue(e,t){e.label&&"Placeholder"===e.label.type||super.verifyBreakContinue(e,t)}parseExpressionStatement(e,t){var i;return"Placeholder"!==t.type||null!=(i=t.extra)&&i.parenthesized?super.parseExpressionStatement(e,t):this.match(14)?(e.label=this.finishPlaceholder(t,"Identifier"),this.next(),e.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(e,"LabeledStatement")):(this.semicolon(),e.name=t.name,this.finishPlaceholder(e,"Statement"))}parseBlock(e,t,i){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,t,i)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,t,i){let r=t?"ClassDeclaration":"ClassExpression";this.next();let n=this.state.strict,s=this.parsePlaceholder("Identifier");if(s)if(this.match(81)||this.match(133)||this.match(5))e.id=s;else if(i||!t)return e.id=null,e.body=this.finishPlaceholder(s,"ClassBody"),this.finishNode(e,r);else throw this.raise(e8.ClassNameIsRequired,this.state.startLoc);else this.parseClassId(e,t,i);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,n),this.finishNode(e,r)}parseExport(e,t){let i=this.parsePlaceholder("Identifier");if(!i)return super.parseExport(e,t);if(!this.isContextual(98)&&!this.match(12))return e.specifiers=[],e.source=null,e.declaration=this.finishPlaceholder(i,"Declaration"),this.finishNode(e,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let r=this.startNode();return r.exported=i,e.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")],super.parseExport(e,t)}isExportDefaultSpecifier(){if(this.match(65)){let e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(v[133],this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,t){var i;return null!=(i=e.specifiers)&&!!i.length||super.maybeParseExportDefaultSpecifier(e,t)}checkExport(e){let{specifiers:t}=e;null!=t&&t.length&&(e.specifiers=t.filter(e=>"Placeholder"===e.exported.type)),super.checkExport(e),e.specifiers=t}parseImport(e){let t=this.parsePlaceholder("Identifier");if(!t)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(98)&&!this.match(12))return e.source=this.finishPlaceholder(t,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");let i=this.startNodeAtNode(t);return i.local=t,e.specifiers.push(this.finishNode(i,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(98),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(e8.UnexpectedSpace,this.state.lastTokEndLoc)}}},e7=Object.keys(e9);class te extends eZ{checkProto(e,t,i,r){if("SpreadElement"===e.type||this.isObjectMethod(e)||e.computed||e.shorthand)return i;let n=e.key;return"__proto__"===("Identifier"===n.type?n.name:n.value)?(t?this.raise(h.RecordNoProto,n):i&&(r?null===r.doubleProtoLoc&&(r.doubleProtoLoc=n.loc.start):this.raise(h.DuplicateProto,n)),!0):i}shouldExitDescending(e,t){return"ArrowFunctionExpression"===e.type&&this.offsetToSourcePos(e.start)===t}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(h.ParseExpressionEmptyInput,this.state.startLoc);let e=this.parseExpression();if(!this.match(140))throw this.raise(h.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,256&this.optionFlags&&(e.tokens=this.tokens),e}parseExpression(e,t){return e?this.disallowInAnd(()=>this.parseExpressionBase(t)):this.allowInAnd(()=>this.parseExpressionBase(t))}parseExpressionBase(e){let t=this.state.startLoc,i=this.parseMaybeAssign(e);if(this.match(12)){let r=this.startNodeAt(t);for(r.expressions=[i];this.eat(12);)r.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(r.expressions),this.finishNode(r,"SequenceExpression")}return i}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd(()=>this.parseMaybeAssign(e,t))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd(()=>this.parseMaybeAssign(e,t))}setOptionalParametersError(e){e.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(e,t){var i;let r,n=this.state.startLoc,s=this.isContextual(108);if(s&&this.prodParam.hasYield){this.next();let e=this.parseYield(n);return t&&(e=t.call(this,e,n)),e}e?r=!1:(e=new eJ,r=!0);let{type:a}=this.state;(10===a||O(a))&&(this.state.potentialArrowAt=this.state.start);let o=this.parseMaybeConditional(e);if(t&&(o=t.call(this,o,n)),(i=this.state.type)>=29&&i<=33){let t=this.startNodeAt(n),i=this.state.value;if(t.operator=i,this.match(29)){this.toAssignable(o,!0),t.left=o;let i=n.index;null!=e.doubleProtoLoc&&e.doubleProtoLoc.index>=i&&(e.doubleProtoLoc=null),null!=e.shorthandAssignLoc&&e.shorthandAssignLoc.index>=i&&(e.shorthandAssignLoc=null),null!=e.privateKeyLoc&&e.privateKeyLoc.index>=i&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null),null!=e.voidPatternLoc&&e.voidPatternLoc.index>=i&&(e.voidPatternLoc=null)}else t.left=o;return this.next(),t.right=this.parseMaybeAssign(),this.checkLVal(o,this.finishNode(t,"AssignmentExpression"),void 0,void 0,void 0,void 0,"||="===i||"&&="===i||"??="===i),t}if(r&&this.checkExpressionErrors(e,!0),s){let{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?w[e]:w[e]&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(h.YieldNotInGeneratorFunction,n),this.parseYield(n)}return o}parseMaybeConditional(e){let t=this.state.startLoc,i=this.state.potentialArrowAt,r=this.parseExprOps(e);return this.shouldExitDescending(r,i)?r:this.parseConditional(r,t,e)}parseConditional(e,t,i){if(this.eat(17)){let i=this.startNodeAt(t);return i.test=e,i.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),i.alternate=this.parseMaybeAssign(),this.finishNode(i,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){let t=this.state.startLoc,i=this.state.potentialArrowAt,r=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(r,i)?r:this.parseExprOp(r,t,-1)}parseExprOp(e,t,i){if(this.isPrivateName(e)){let t=this.getPrivateNameSV(e);!(i>=D[58])&&this.prodParam.hasIn&&this.match(58)||this.raise(h.PrivateInExpectedIn,e,{identifierName:t}),this.classScope.usePrivateName(t,e.loc.start)}let r=this.state.type;if(r>=39&&r<=59&&(this.prodParam.hasIn||!this.match(58))){let n=D[r];if(n>i){if(39===r){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}let s=this.startNodeAt(t);s.left=e,s.operator=this.state.value;let a=41===r||42===r,o=40===r;if(o&&(n=D[42]),this.next(),39===r&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(h.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);s.right=this.parseExprOpRightExpr(r,n);let l=this.finishNode(s,a||o?"LogicalExpression":"BinaryExpression"),p=this.state.type;if(o&&(41===p||42===p)||a&&40===p)throw this.raise(h.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(l,t,i)}}return e}parseExprOpRightExpr(e,t){let i=this.state.startLoc;if(39===e){switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(t))}if("smart"===this.getPluginOption("pipelineOperator","proposal"))return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(h.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),i)})}return this.parseExprOpBaseRightExpr(e,t)}parseExprOpBaseRightExpr(e,t){let i=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),i,57===e?t-1:t)}parseHackPipeBody(){var e;let{startLoc:t}=this.state,i=this.parseMaybeAssign();return l.has(i.type)&&!(null!=(e=i.extra)&&e.parenthesized)&&this.raise(h.PipeUnparenthesizedBody,t,{type:i.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(h.PipeTopicUnused,t),i}checkExponentialAfterUnary(e){this.match(57)&&this.raise(h.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,t){let i=this.state.startLoc,r=this.isContextual(96);if(r&&this.recordAwaitIfAllowed()){this.next();let e=this.parseAwait(i);return t||this.checkExponentialAfterUnary(e),e}let n=this.match(34),s=this.startNode();if(_[this.state.type]){s.operator=this.state.value,s.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let i=this.match(89);if(this.next(),s.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&i){let e=s.argument;"Identifier"===e.type?this.raise(h.StrictDelete,s):this.hasPropertyAsPrivateName(e)&&this.raise(h.DeletePrivateField,s)}if(!n)return t||this.checkExponentialAfterUnary(s),this.finishNode(s,"UnaryExpression")}let a=this.parseUpdate(s,n,e);if(r){let{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?w[e]:w[e]&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(h.AwaitNotInAsyncContext,i),this.parseAwait(i)}return a}parseUpdate(e,t,i){if(t)return this.checkLVal(e.argument,this.finishNode(e,"UpdateExpression")),e;let r=this.state.startLoc,n=this.parseExprSubscripts(i);if(this.checkExpressionErrors(i,!1))return n;for(;34===this.state.type&&!this.canInsertSemicolon();){let e=this.startNodeAt(r);e.operator=this.state.value,e.prefix=!1,e.argument=n,this.next(),this.checkLVal(n,n=this.finishNode(e,"UpdateExpression"))}return n}parseExprSubscripts(e){let t=this.state.startLoc,i=this.state.potentialArrowAt,r=this.parseExprAtom(e);return this.shouldExitDescending(r,i)?r:this.parseSubscripts(r,t)}parseSubscripts(e,t,i){let r={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do e=this.parseSubscript(e,t,i,r),r.maybeAsyncArrow=!1;while(!r.stop);return e}parseSubscript(e,t,i,r){let{type:n}=this.state;if(!i&&15===n)return this.parseBind(e,t,i,r);if(j(n))return this.parseTaggedTemplateExpression(e,t,r);let s=!1;if(18===n){if(i&&(this.raise(h.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return this.stopParseSubscript(e,r);r.optionalChainMember=s=!0,this.next()}if(!i&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,r,s);{let i=this.eat(0);return i||s||this.eat(16)?this.parseMember(e,t,r,i,s):this.stopParseSubscript(e,r)}}stopParseSubscript(e,t){return t.stop=!0,e}parseMember(e,t,i,r,n){let s=this.startNodeAt(t);return(s.object=e,s.computed=r,r?(s.property=this.parseExpression(),this.expect(3)):this.match(139)?("Super"===e.type&&this.raise(h.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),i.optionalChainMember)?(s.optional=n,this.finishNode(s,"OptionalMemberExpression")):this.finishNode(s,"MemberExpression")}parseBind(e,t,i,r){let n=this.startNodeAt(t);return n.object=e,this.next(),n.callee=this.parseNoCallExpr(),r.stop=!0,this.parseSubscripts(this.finishNode(n,"BindExpression"),t,i)}parseCoverCallAndAsyncArrowHead(e,t,i,r){let n=this.state.maybeInArrowParameters,s=null;this.state.maybeInArrowParameters=!0,this.next();let a=this.startNodeAt(t);a.callee=e;let{maybeAsyncArrow:o,optionalChainMember:l}=i;o&&(this.expressionScope.enter(new eW(2)),s=new eJ),l&&(a.optional=r),r?a.arguments=this.parseCallExpressionArguments():a.arguments=this.parseCallExpressionArguments("Super"!==e.type,a,s);let p=this.finishCallExpression(a,l);return o&&this.shouldParseAsyncArrow()&&!r?(i.stop=!0,this.checkDestructuringPrivate(s),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),p=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),p)):(o&&(this.checkExpressionErrors(s,!0),this.expressionScope.exit()),this.toReferencedArguments(p)),this.state.maybeInArrowParameters=n,p}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,i){let r=this.startNodeAt(t);return r.tag=e,r.quasi=this.parseTemplate(!0),i.optionalChainMember&&this.raise(h.OptionalChainingNoTemplate,t),this.finishNode(r,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}finishCallExpression(e,t){if("Import"===e.callee.type)if(0===e.arguments.length||e.arguments.length>2)this.raise(h.ImportCallArity,e);else for(let t of e.arguments)"SpreadElement"===t.type&&this.raise(h.ImportCallSpreadArgument,t);return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,i){let r=[],n=!0,s=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(n)n=!1;else if(this.expect(12),this.match(11)){t&&this.addTrailingCommaExtraToNode(t),this.next();break}r.push(this.parseExprListItem(11,!1,i,e))}return this.state.inFSharpPipelineDirectBody=s,r}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var i;return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,null==(i=t.extra)?void 0:i.trailingCommaLoc),t.innerComments&&ev(e,t.innerComments),t.callee.trailingComments&&ev(e,t.callee.trailingComments),e}parseNoCallExpr(){let e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let t,i=null,{type:r}=this.state;switch(r){case 79:return this.parseSuper();case 83:if(t=this.startNode(),this.next(),this.match(16))return this.parseImportMetaPropertyOrPhaseCall(t);if(!this.match(10))return this.raise(h.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(t,"Import");if(512&this.optionFlags)return this.parseImportCall(t);return this.finishNode(t,"Import");case 78:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),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(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let e=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(e)}case 0:return this.parseArrayLike(3,!1,e);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:i=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(i,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{t=this.startNode(),this.next(),t.object=null;let e=t.callee=this.parseNoCallExpr();if("MemberExpression"===e.type)return this.finishNode(t,"BindExpression");throw this.raise(h.UnsupportedBind,e)}case 139:return this.raise(h.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let e=this.getPluginOption("pipelineOperator","proposal");if(e)return this.parseTopicReference(e);throw this.unexpected()}case 47:{let e=this.input.codePointAt(this.nextTokenStart());if(X(e)||62===e)throw this.expectOnePlugin(["jsx","flow","typescript"]);throw this.unexpected()}default:if(137===r)return this.parseDecimalLiteral(this.state.value);if(2===r||1===r)return this.parseArrayLike(2===this.state.type?4:3,!0);if(6===r||7===r)return this.parseObjectLike(6===this.state.type?9:8,!1,!0);if(O(r)){if(this.isContextual(127)&&123===this.lookaheadInLineCharCode())return this.parseModuleExpression();let e=this.state.potentialArrowAt===this.state.start,t=this.state.containsEsc,i=this.parseIdentifier();if(!t&&"async"===i.name&&!this.canInsertSemicolon()){let{type:e}=this.state;if(68===e)return this.resetPreviousNodeTrailingComments(i),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(i));if(O(e))if(61===this.lookaheadCharCode())return this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(i));else return i;if(90===e)return this.resetPreviousNodeTrailingComments(i),this.parseDo(this.startNodeAtNode(i),!0)}if(e&&this.match(19)&&!this.canInsertSemicolon())return this.next(),this.parseArrowExpression(this.startNodeAtNode(i),[i],!1);return i}throw this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){let i=this.getPluginOption("pipelineOperator","proposal");if(i)return this.state.type=e,this.state.value=t,this.state.pos--,this.state.end--,this.state.endLoc=n(this.state.endLoc,-1),this.parseTopicReference(i);throw this.unexpected()}parseTopicReference(e){let t=this.startNode(),i=this.state.startLoc,r=this.state.type;return this.next(),this.finishTopicReference(t,i,e,r)}finishTopicReference(e,t,i,r){if(this.testTopicReferenceConfiguration(i,t,r))if("hack"===i)return this.topicReferenceIsAllowedInCurrentContext()||this.raise(h.PipeTopicUnbound,t),this.registerTopicReference(),this.finishNode(e,"TopicReference");else return this.topicReferenceIsAllowedInCurrentContext()||this.raise(h.PrimaryTopicNotAllowed,t),this.registerTopicReference(),this.finishNode(e,"PipelinePrimaryTopicReference");throw this.raise(h.PipeTopicUnconfiguredToken,t,{token:v[r]})}testTopicReferenceConfiguration(e,t,i){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:v[i]}]);case"smart":return 27===i;default:throw this.raise(h.PipeTopicRequiresHackPipes,t)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(eE(!0,this.prodParam.hasYield));let t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(h.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(e,t,!0)}parseDo(e,t){this.expectPlugin("doExpressions"),t&&this.expectPlugin("asyncDoExpressions"),e.async=t,this.next();let i=this.state.labels;return this.state.labels=[],t?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=i,this.finishNode(e,"DoExpression")}parseSuper(){let e=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper?16&this.optionFlags||this.raise(h.SuperNotAllowed,e):this.scope.allowSuper||16&this.optionFlags||this.raise(h.UnexpectedSuper,e),this.match(10)||this.match(0)||this.match(16)||this.raise(h.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){let e=this.startNode(),t=this.startNodeAt(n(this.state.startLoc,1)),i=this.state.value;return this.next(),e.id=this.createIdentifier(t,i),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){let e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}parseMetaProperty(e,t,i){e.meta=t;let r=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==i||r)&&this.raise(h.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:i}),this.finishNode(e,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(e){if(this.next(),this.isContextual(105)||this.isContextual(97)){let t=this.isContextual(105);return this.expectPlugin(t?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),e.phase=t?"source":"defer",this.parseImportCall(e)}{let t=this.createIdentifierAt(this.startNodeAtNode(e),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(h.ImportMetaOutsideModule,t),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,t,"meta")}}parseLiteralAtNode(e,t,i){return this.addExtra(i,"rawValue",e),this.addExtra(i,"raw",this.input.slice(this.offsetToSourcePos(i.start),this.state.end)),i.value=e,this.next(),this.finishNode(i,t)}parseLiteral(e,t){let i=this.startNode();return this.parseLiteralAtNode(e,t,i)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){let t=this.startNode();return this.addExtra(t,"raw",this.input.slice(this.offsetToSourcePos(t.start),this.state.end)),t.pattern=e.pattern,t.flags=e.flags,this.next(),this.finishNode(t,"RegExpLiteral")}parseBooleanLiteral(e){let t=this.startNode();return t.value=e,this.next(),this.finishNode(t,"BooleanLiteral")}parseNullLiteral(){let e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){let t,i,r,n=this.state.startLoc;this.next(),this.expressionScope.enter(new eW(1));let s=this.state.maybeInArrowParameters,a=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let o=this.state.startLoc,l=[],p=new eJ,u=!0;for(;!this.match(11);){if(u)u=!1;else if(this.expect(12,null===p.optionalParametersLoc?null:p.optionalParametersLoc),this.match(11)){r=this.state.startLoc;break}if(this.match(21)){let e=this.state.startLoc;if(i=this.state.startLoc,l.push(this.parseParenItem(this.parseRestBinding(),e)),!this.checkCommaAfterRest(41))break}else l.push(this.parseMaybeAssignAllowInOrVoidPattern(11,p,this.parseParenItem))}let c=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=s,this.state.inFSharpPipelineDirectBody=a;let d=this.startNodeAt(n);return e&&this.shouldParseArrow(l)&&(d=this.parseArrow(d))?(this.checkDestructuringPrivate(p),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(d,l,!1),d):(this.expressionScope.exit(),l.length||this.unexpected(this.state.lastTokStartLoc),r&&this.unexpected(r),i&&this.unexpected(i),this.checkExpressionErrors(p,!0),this.toReferencedListDeep(l,!0),l.length>1?((t=this.startNodeAt(o)).expressions=l,this.finishNode(t,"SequenceExpression"),this.resetEndLocation(t,c)):t=l[0],this.wrapParenthesis(n,t))}wrapParenthesis(e,t){if(!(1024&this.optionFlags))return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;let i=this.startNodeAt(e);return i.expression=t,this.finishNode(i,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,t){return e}parseNewOrNewTarget(){let e=this.startNode();if(this.next(),this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();let i=this.parseMetaProperty(e,t,"target");return this.scope.allowNewTarget||this.raise(h.UnexpectedNewTarget,i),i}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){let t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){let t=this.match(83),i=this.parseNoCallExpr();e.callee=i,t&&("Import"===i.type||"ImportExpression"===i.type)&&this.raise(h.ImportCallNotNewExpression,i)}parseTemplateElement(e){let{start:t,startLoc:i,end:r,value:s}=this.state,a=this.startNodeAt(n(i,1));null!==s||e||this.raise(h.InvalidEscapeSequenceTemplate,n(this.state.firstInvalidTemplateEscapePos,1));let o=this.match(24),l=o?-1:-2,p=r+l;a.value={raw:this.input.slice(t+1,p).replace(/\r\n?/g,"\n"),cooked:null===s?null:s.slice(1,l)},a.tail=o,this.next();let u=this.finishNode(a,"TemplateElement");return this.resetEndLocation(u,n(this.state.lastTokEndLoc,l)),u}parseTemplate(e){let t=this.startNode(),i=this.parseTemplateElement(e),r=[i],n=[];for(;!i.tail;)n.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),r.push(i=this.parseTemplateElement(e));return t.expressions=n,t.quasis=r,this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,i,r){i&&this.expectPlugin("recordAndTuple");let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let s=!1,a=!0,o=this.startNode();for(o.properties=[],this.next();!this.match(e);){let n;if(a)a=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(o);break}t?n=this.parseBindingProperty():(n=this.parsePropertyDefinition(r),s=this.checkProto(n,i,s,r)),i&&!this.isObjectProperty(n)&&"SpreadElement"!==n.type&&this.raise(h.InvalidRecordProperty,n),n.shorthand&&this.addExtra(n,"shorthand",!0),o.properties.push(n)}this.next(),this.state.inFSharpPipelineDirectBody=n;let l="ObjectExpression";return t?l="ObjectPattern":i&&(l="RecordExpression"),this.finishNode(o,l)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t,i=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(h.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)i.push(this.parseDecorator());let r=this.startNode(),n=!1,s=!1;if(this.match(21))return i.length&&this.unexpected(),this.parseSpread();i.length&&(r.decorators=i,i=[]),r.method=!1,e&&(t=this.state.startLoc);let a=this.eat(55);this.parsePropertyNamePrefixOperator(r);let o=this.state.containsEsc;if(this.parsePropertyName(r,e),!a&&!o&&this.maybeAsyncOrAccessorProp(r)){let{key:e}=r,t=e.name;"async"!==t||this.hasPrecedingLineBreak()||(n=!0,this.resetPreviousNodeTrailingComments(e),a=this.eat(55),this.parsePropertyName(r)),("get"===t||"set"===t)&&(s=!0,this.resetPreviousNodeTrailingComments(e),r.kind=t,this.match(55)&&(a=!0,this.raise(h.AccessorIsGenerator,this.state.curPosition(),{kind:t}),this.next()),this.parsePropertyName(r))}return this.parseObjPropValue(r,t,a,n,!1,s,e)}getGetterSetterExpectedParamCount(e){return+("get"!==e.kind)}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;let i=this.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e);r.length!==i&&this.raise("get"===e.kind?h.BadGetterArity:h.BadSetterArity,e),"set"===e.kind&&(null==(t=r[r.length-1])?void 0:t.type)==="RestElement"&&this.raise(h.BadSetterRestParameter,e)}parseObjectMethod(e,t,i,r,n){if(n){let i=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(i),i}if(i||t||this.match(10))return r&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,i,!1,!1,"ObjectMethod")}parseObjectProperty(e,t,i,r){if(e.shorthand=!1,this.eat(14))return e.value=i?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,r),this.finishObjectProperty(e);if(!e.computed&&"Identifier"===e.key.type){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),i)e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key));else if(this.match(29)){let i=this.state.startLoc;null!=r?null===r.shorthandAssignLoc&&(r.shorthandAssignLoc=i):this.raise(h.InvalidCoverInitializedName,i),e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key))}else e.value=this.cloneIdentifier(e.key);return e.shorthand=!0,this.finishObjectProperty(e)}}finishObjectProperty(e){return this.finishNode(e,"ObjectProperty")}parseObjPropValue(e,t,i,r,n,s,a){let o=this.parseObjectMethod(e,i,r,n,s)||this.parseObjectProperty(e,t,n,a);return o||this.unexpected(),o}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let i,{type:r,value:n}=this.state;if(F(r))i=this.parseIdentifier(!0);else switch(r){case 135:i=this.parseNumericLiteral(n);break;case 134:i=this.parseStringLiteral(n);break;case 136:i=this.parseBigIntLiteral(n);break;case 139:{let e=this.state.startLoc;null!=t?null===t.privateKeyLoc&&(t.privateKeyLoc=e):this.raise(h.UnexpectedPrivateField,e),i=this.parsePrivateName();break}default:if(137===r){i=this.parseDecimalLiteral(n);break}this.unexpected()}e.key=i,139!==r&&(e.computed=!1)}}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,i,r,n,s,a=!1){this.initFunction(e,i),e.generator=t,this.scope.enter(530|576*!!a|32*!!n),this.prodParam.enter(eE(i,e.generator)),this.parseFunctionParams(e,r);let o=this.parseFunctionBodyAndFinish(e,s,!0);return this.prodParam.exit(),this.scope.exit(),o}parseArrayLike(e,t,i){t&&this.expectPlugin("recordAndTuple");let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=this.startNode();return this.next(),n.elements=this.parseExprList(e,!t,i,n),this.state.inFSharpPipelineDirectBody=r,this.finishNode(n,t?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,i,r){this.scope.enter(518);let n=eE(i,!1);!this.match(5)&&this.prodParam.hasIn&&(n|=8),this.prodParam.enter(n),this.initFunction(e,i);let s=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,r)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=s,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,t,i){this.toAssignableList(t,i,!1),e.params=t}parseFunctionBodyAndFinish(e,t,i=!1){return this.parseFunctionBody(e,!1,i),this.finishNode(e,t)}parseFunctionBody(e,t,i=!1){let r=t&&!this.match(5);if(this.expressionScope.enter(new e$),r)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{let r=this.state.strict,n=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),e.body=this.parseBlock(!0,!1,n=>{let s=!this.isSimpleParamList(e.params);n&&s&&this.raise(h.IllegalLanguageModeDirective,("method"===e.kind||"constructor"===e.kind)&&e.key?e.key.loc.end:e);let a=!r&&this.state.strict;this.checkParams(e,!this.state.strict&&!t&&!i&&!s,t,a),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,a)}),this.prodParam.exit(),this.state.labels=n}this.expressionScope.exit()}isSimpleParameter(e){return"Identifier"===e.type}isSimpleParamList(e){for(let t=0,i=e.length;t<i;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}checkParams(e,t,i,r=!0){let n=!t&&new Set,s={type:"FormalParameters"};for(let t of e.params)this.checkLVal(t,s,5,n,r)}parseExprList(e,t,i,r){let n=[],s=!0;for(;!this.eat(e);){if(s)s=!1;else if(this.expect(12),this.match(e)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}n.push(this.parseExprListItem(e,t,i))}return n}parseExprListItem(e,t,i,r){let n;if(this.match(12))t||this.raise(h.UnexpectedToken,this.state.curPosition(),{unexpected:","}),n=null;else if(this.match(21)){let e=this.state.startLoc;n=this.parseParenItem(this.parseSpread(i),e)}else if(this.match(17)){this.expectPlugin("partialApplication"),r||this.raise(h.UnexpectedArgumentPlaceholder,this.state.startLoc);let e=this.startNode();this.next(),n=this.finishNode(e,"ArgumentPlaceholder")}else n=this.parseMaybeAssignAllowInOrVoidPattern(e,i,this.parseParenItem);return n}parseIdentifier(e){let t=this.startNode(),i=this.parseIdentifierName(e);return this.createIdentifier(t,i)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,"Identifier")}createIdentifierAt(e,t,i){return e.name=t,e.loc.identifierName=t,this.finishNodeAt(e,"Identifier",i)}parseIdentifierName(e){let t,{startLoc:i,type:r}=this.state;F(r)?t=this.state.value:this.unexpected();let n=r<=92;return e?n&&this.replaceToken(132):this.checkReservedWord(t,i,n,!1),this.next(),t}checkReservedWord(e,t,i,r){if(!(e.length>10)){if(ee.has(e)){if(i&&J.has(e))return void this.raise(h.UnexpectedKeyword,t,{keyword:e});if((this.state.strict?r?Z:G:H)(e,this.inModule))return void this.raise(h.UnexpectedReservedWord,t,{reservedWord:e});if("yield"===e){if(this.prodParam.hasYield)return void this.raise(h.YieldBindingIdentifier,t)}else if("await"===e){if(this.prodParam.hasAwait)return void this.raise(h.AwaitBindingIdentifier,t);if(this.scope.inStaticBlock)return void this.raise(h.AwaitBindingIdentifierInStaticBlock,t);this.expressionScope.recordAsyncArrowParametersError(t)}else if("arguments"===e&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(h.ArgumentsInClass,t)}}}recordAwaitIfAllowed(){let e=this.prodParam.hasAwait;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e}parseAwait(e){let t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(h.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(h.ObsoleteAwaitStar,t),this.scope.inFunction||1&this.optionFlags||(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:e}=this.state;return 53===e||10===e||0===e||j(e)||102===e&&!this.state.containsEsc||138===e||56===e||this.hasPlugin("v8intrinsic")&&54===e}parseYield(e){let t=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(h.YieldInParameter,t);let i=!1,r=null;if(!this.hasPrecedingLineBreak())switch(i=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!i)break;default:r=this.parseMaybeAssign()}return t.delegate=i,t.argument=r,this.finishNode(t,"YieldExpression")}parseImportCall(e){if(this.next(),e.source=this.parseMaybeAssignAllowIn(),e.options=null,this.eat(12)){if(this.match(11))this.addTrailingCommaExtraToNode(e.source);else if(e.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(e.options),!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(h.ImportCallArity,e)}}return this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,t){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===e.type&&this.raise(h.PipelineHeadSequenceExpression,t)}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){let i=this.startNodeAt(t);return i.callee=e,this.finishNode(i,"PipelineBareFunction")}{let i=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),i.expression=e,this.finishNode(i,"PipelineTopicExpression")}}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(h.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(h.PipelineTopicUnused,e)}withTopicBindingContext(e){let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(e){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return e();{let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}}withSoloAwaitPermittingContext(e){let t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){let t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(8|t);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){let t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(-9&t);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){let t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let r=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=i,r}parseModuleExpression(){this.expectPlugin("moduleBlocks");let e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let t=this.startNodeAt(this.state.endLoc);this.next();let i=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{i()}return this.finishNode(e,"ModuleExpression")}parseVoidPattern(e){this.expectPlugin("discardBinding");let t=this.startNode();return null!=e&&(e.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(t,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(e,t,i){if(null!=t&&this.match(88)){let i=this.lookaheadCharCode();if(44===i||i===(3===e?93:8===e?125:41)||61===i)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(t))}return this.parseMaybeAssignAllowIn(t,i)}parsePropertyNamePrefixOperator(e){}}let tt={kind:1},ti={kind:2},tr=/[\uD800-\uDFFF]/u,tn=/in(?:stanceof)?/y;class ts extends te{parseTopLevel(e,t){return e.program=this.parseProgram(t,140,"module"===this.options.sourceType?"module":"script"),e.comments=this.comments,256&this.optionFlags&&(e.tokens=function(e,t,i){for(let r=0;r<e.length;r++){let s=e[r],{type:a}=s;if("number"==typeof a){if(139===a){let{loc:t,start:i,value:a,end:o}=s,l=i+1,p=n(t.start,1);e.splice(r,1,new eU({type:P[27],value:"#",start:i,end:l,startLoc:t.start,endLoc:p}),new eU({type:P[132],value:a,start:l,end:o,startLoc:p,endLoc:t.end})),r++;continue}if(j(a)){let o,l,p,u,c,{loc:d,start:h,value:m,end:f}=s,y=h+1,g=n(d.start,1);o=new eU(96===t.charCodeAt(h-i)?{type:P[22],value:"`",start:h,end:y,startLoc:d.start,endLoc:g}:{type:P[8],value:"}",start:h,end:y,startLoc:d.start,endLoc:g}),24===a?(p=f-1,u=n(d.end,-1),l=null===m?null:m.slice(1,-1),c=new eU({type:P[22],value:"`",start:p,end:f,startLoc:u,endLoc:d.end})):(p=f-2,u=n(d.end,-2),l=null===m?null:m.slice(1,-2),c=new eU({type:P[23],value:"${",start:p,end:f,startLoc:u,endLoc:d.end})),e.splice(r,1,o,new eU({type:P[20],value:l,start:y,end:p,startLoc:g,endLoc:u}),c),r+=2;continue}s.type=P[a]}}return e}(this.tokens,this.input,this.startIndex)),this.finishNode(e,"File")}parseProgram(e,t,i){if(e.sourceType=i,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,t),this.inModule){if(!(64&this.optionFlags)&&this.scope.undefinedExports.size>0)for(let[e,t]of Array.from(this.scope.undefinedExports))this.raise(h.ModuleExportUndefined,t,{localName:e});this.addExtra(e,"topLevelAwait",this.state.hasTopLevelAwait)}return 140===t?this.finishNode(e,"Program"):this.finishNodeAt(e,"Program",n(this.state.startLoc,-1))}stmtToDirective(e){let t=this.castNodeTo(e,"Directive"),i=this.castNodeTo(e.expression,"DirectiveLiteral"),r=i.value,n=this.input.slice(this.offsetToSourcePos(i.start),this.offsetToSourcePos(i.end)),s=i.value=n.slice(1,-1);return this.addExtra(i,"raw",n),this.addExtra(i,"rawValue",s),this.addExtra(i,"expressionValue",r),t.value=i,delete e.expression,t}parseInterpreterDirective(){if(!this.match(28))return null;let e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return!!this.isContextual(100)&&this.hasFollowingBindingAtom()}isUsing(){return!!this.isContextual(107)&&this.nextTokenIsIdentifierOnSameLine()}isForUsing(){if(!this.isContextual(107))return!1;let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);if(this.isUnparsedContextual(e,"of")){let t=this.lookaheadCharCodeSince(e+2);if(61!==t&&58!==t&&59!==t)return!1}return!!(this.chStartsBindingIdentifier(t,e)||this.isUnparsedContextual(e,"void"))}nextTokenIsIdentifierOnSameLine(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)}isAwaitUsing(){if(!this.isContextual(96))return!1;let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);let t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e))return!0}return!1}chStartsBindingIdentifier(e,t){if(X(e)){if(tn.lastIndex=t,tn.test(this.input)){let e=this.codePointAtPos(tn.lastIndex);if(!z(e)&&92!==e)return!1}return!0}return 92===e||!1}chStartsBindingPattern(e){return 91===e||123===e}hasFollowingBindingAtom(){let e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifierOrBrace(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return 123===t||this.chStartsBindingIdentifier(t,e)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(e=!1){let t=0;return this.options.annexB&&!this.state.strict&&(t|=4,e&&(t|=8)),this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let t=null;return this.match(26)&&(t=this.parseDecorators(!0)),this.parseStatementContent(e,t)}parseStatementContent(e,t){let i=this.state.type,r=this.startNode(),n=!!(2&e),s=!!(4&e),a=1&e;switch(i){case 60:return this.parseBreakContinueStatement(r,!0);case 63:return this.parseBreakContinueStatement(r,!1);case 64:return this.parseDebuggerStatement(r);case 90:return this.parseDoWhileStatement(r);case 91:return this.parseForStatement(r);case 68:if(46===this.lookaheadCharCode())break;return s||this.raise(this.state.strict?h.StrictFunction:this.options.annexB?h.SloppyFunctionAnnexB:h.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(r,!1,!n&&s);case 80:return n||this.unexpected(),this.parseClass(this.maybeTakeDecorators(t,r),!0);case 69:return this.parseIfStatement(r);case 70:return this.parseReturnStatement(r);case 71:return this.parseSwitchStatement(r);case 72:return this.parseThrowStatement(r);case 73:return this.parseTryStatement(r);case 96:if(this.isAwaitUsing())return this.allowsUsing()?n?this.recordAwaitIfAllowed()||this.raise(h.AwaitUsingNotInAsyncContext,r):this.raise(h.UnexpectedLexicalDeclaration,r):this.raise(h.UnexpectedUsingDeclaration,r),this.next(),this.parseVarStatement(r,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?n||this.raise(h.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(h.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(r,"using");case 100:{if(this.state.containsEsc)break;let e=this.nextTokenStart(),t=this.codePointAtPos(e);if(91!==t&&(!n&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(t,e)&&123!==t))break}case 75:n||this.raise(h.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let e=this.state.value;return this.parseVarStatement(r,e)}case 92:return this.parseWhileStatement(r);case 76:return this.parseWithStatement(r);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(r);case 83:{let e=this.lookaheadCharCode();if(40===e||46===e)break}case 82:{let e;return 8&this.optionFlags||a||this.raise(h.UnexpectedImportExport,this.state.startLoc),this.next(),e=83===i?this.parseImport(r):this.parseExport(r,t),this.assertModuleNodeAllowed(e),e}default:if(this.isAsyncFunction())return n||this.raise(h.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(r,!0,!n&&s)}let o=this.state.value,l=this.parseExpression();return O(i)&&"Identifier"===l.type&&this.eat(14)?this.parseLabeledStatement(r,o,l,e):this.parseExpressionStatement(r,l,t)}assertModuleNodeAllowed(e){8&this.optionFlags||this.inModule||this.raise(h.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return!!this.hasPlugin("decorators-legacy")||this.hasPlugin("decorators")&&!1!==this.getPluginOption("decorators","decoratorsBeforeExport")}maybeTakeDecorators(e,t,i){if(e){var r;null!=(r=t.decorators)&&r.length?("boolean"!=typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(h.DecoratorsBeforeAfterExport,t.decorators[0]),t.decorators.unshift(...e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),i&&this.resetStartLocationFromNode(i,t)}return t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){let t=[];do t.push(this.parseDecorator());while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(h.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(h.UnexpectedLeadingDecorator,this.state.startLoc);return t}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let e=this.startNode();if(this.next(),this.hasPlugin("decorators")){let t,i=this.state.startLoc;if(this.match(10)){let i=this.state.startLoc;this.next(),t=this.parseExpression(),this.expect(11),t=this.wrapParenthesis(i,t);let r=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(t,i),!1===this.getPluginOption("decorators","allowCallParenthesized")&&e.expression!==t&&this.raise(h.DecoratorArgumentsOutsideParentheses,r)}else{for(t=this.parseIdentifier(!1);this.eat(16);){let e=this.startNodeAt(i);e.object=t,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),e.property=this.parsePrivateName()):e.property=this.parseIdentifier(!0),e.computed=!1,t=this.finishNode(e,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(t,i)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e,t){if(this.eat(10)){let i=this.startNodeAt(t);return i.callee=e,i.arguments=this.parseCallExpressionArguments(),this.toReferencedList(i.arguments),this.finishNode(i,"CallExpression")}return e}parseBreakContinueStatement(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,t){let i;for(i=0;i<this.state.labels.length;++i){let r=this.state.labels[i];if((null==e.label||r.name===e.label.name)&&(null!=r.kind&&(t||1===r.kind)||e.label&&t))break}i===this.state.labels.length&&this.raise(h.IllegalBreakContinue,e,{type:t?"BreakStatement":"ContinueStatement"})}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(tt),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(tt);let t=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(t=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return null!==t&&this.unexpected(t),this.parseFor(e,null);let i=this.isContextual(100);{let r=this.isAwaitUsing(),n=r||this.isForUsing(),s=i&&this.hasFollowingBindingAtom()||n;if(this.match(74)||this.match(75)||s){let i,s=this.startNode();r?(i="await using",this.recordAwaitIfAllowed()||this.raise(h.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):i=this.state.value,this.next(),this.parseVar(s,!0,i);let a=this.finishNode(s,"VariableDeclaration"),o=this.match(58);return(o&&n&&this.raise(h.ForInUsing,a),(o||this.isContextual(102))&&1===a.declarations.length)?this.parseForIn(e,a,t):(null!==t&&this.unexpected(t),this.parseFor(e,a))}}let r=this.isContextual(95),n=new eJ,s=this.parseExpression(!0,n),a=this.isContextual(102);return(a&&(i&&this.raise(h.ForOfLet,s),null===t&&r&&"Identifier"===s.type&&this.raise(h.ForOfAsync,s)),a||this.match(58))?(this.checkDestructuringPrivate(n),this.toAssignable(s,!0),this.checkLVal(s,{type:a?"ForOfStatement":"ForInStatement"}),this.parseForIn(e,s,t)):(this.checkExpressionErrors(n,!0),null!==t&&this.unexpected(t),this.parseFor(e,s))}parseFunctionStatement(e,t,i){return this.next(),this.parseFunction(e,1|2*!!i|8*!!t)}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return this.prodParam.hasReturn||this.raise(h.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){let t,i;this.next(),e.discriminant=this.parseHeaderExpression();let r=e.cases=[];for(this.expect(5),this.state.labels.push(ti),this.scope.enter(256);!this.match(8);)if(this.match(61)||this.match(65)){let e=this.match(61);t&&this.finishNode(t,"SwitchCase"),r.push(t=this.startNode()),t.consequent=[],this.next(),e?t.test=this.parseExpression():(i&&this.raise(h.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),i=!0,t.test=null),this.expect(14)}else t?t.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(h.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){let e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&"Identifier"===e.type?8:0),this.checkLVal(e,{type:"CatchClause"},9),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){let t=this.startNode();this.next(),this.match(10)?(this.expect(10),t.param=this.parseCatchClauseParam(),this.expect(11)):(t.param=null,this.scope.enter(0)),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(67)?this.parseBlock():null,e.handler||e.finalizer||this.raise(h.NoCatchOrFinally,e),this.finishNode(e,"TryStatement")}parseVarStatement(e,t,i=!1){return this.next(),this.parseVar(e,!1,t,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(tt),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(h.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,t,i,r){var n;for(let e of this.state.labels)e.name===t&&this.raise(h.LabelRedeclaration,i,{labelName:t});let s=(n=this.state.type)>=90&&n<=92?1:this.match(71)?2:null;for(let t=this.state.labels.length-1;t>=0;t--){let i=this.state.labels[t];if(i.statementStart===e.start)i.statementStart=this.sourceToOffsetPos(this.state.start),i.kind=s;else break}return this.state.labels.push({name:t,kind:s,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=8&r?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t,i){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,t=!0,i){let r=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(0),this.parseBlockBody(r,e,!1,8,i),t&&this.scope.exit(),this.finishNode(r,"BlockStatement")}isValidDirective(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}parseBlockBody(e,t,i,r,n){let s=e.body=[],a=e.directives=[];this.parseBlockOrModuleBlockBody(s,t?a:void 0,i,r,n)}parseBlockOrModuleBlockBody(e,t,i,r,n){let s=this.state.strict,a=!1,o=!1;for(;!this.match(r);){let r=i?this.parseModuleItem():this.parseStatementListItem();if(t&&!o){if(this.isValidDirective(r)){let e=this.stmtToDirective(r);t.push(e),a||"use strict"!==e.value.value||(a=!0,this.setStrict(!0));continue}o=!0,this.state.strictErrors.clear()}e.push(r)}null==n||n.call(this,a),s||this.setStrict(!1),this.next()}parseFor(e,t){return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,t,i){let r=this.match(58);return this.next(),r?null!==i&&this.unexpected(i):e.await=null!==i,"VariableDeclaration"!==t.type||null==t.declarations[0].init||r&&this.options.annexB&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type||this.raise(h.ForInOfLoopInitializer,t,{type:r?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===t.type&&this.raise(h.InvalidLhs,t,{ancestor:{type:"ForStatement"}}),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")}parseVar(e,t,i,r=!1){let n=e.declarations=[];for(e.kind=i;;){let e=this.startNode();if(this.parseVarId(e,i),e.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null===e.init&&!r&&("Identifier"===e.id.type||t&&(this.match(58)||this.isContextual(102))?"const"!==i&&"using"!==i&&"await using"!==i||this.match(58)||this.isContextual(102)||this.raise(h.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:i}):this.raise(h.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})),n.push(this.finishNode(e,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,t){let i=this.parseBindingAtom();"using"===t||"await using"===t?("ArrayPattern"===i.type||"ObjectPattern"===i.type)&&this.raise(h.UsingDeclarationHasBindingPattern,i.loc.start):"VoidPattern"===i.type&&this.raise(h.UnexpectedVoidPattern,i.loc.start),this.checkLVal(i,{type:"VariableDeclarator"},"var"===t?5:8201),e.id=i}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,t=0){let i=2&t,r=!!(1&t),n=!!(8&t);this.initFunction(e,n),this.match(55)&&(i&&this.raise(h.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),r&&(e.id=this.parseFunctionId(r&&!(4&t)));let s=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(eE(n,e.generator)),r||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(e,r?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),r&&!i&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=s,e}parseFunctionId(e){return e||O(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(new e$(3)),e.params=this.parseBindingList(11,41,2|4*!!t),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,t,i){this.next();let r=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,i),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,r),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(e){return"Identifier"===e.type&&"constructor"===e.name||"StringLiteral"===e.type&&"constructor"===e.value}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,t){this.classScope.enter();let i={hadConstructor:!1,hadSuperClass:e},r=[],n=this.startNode();if(n.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(r.length>0)throw this.raise(h.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){r.push(this.parseDecorator());continue}let e=this.startNode();r.length&&(e.decorators=r,this.resetStartLocationFromNode(e,r[0]),r=[]),this.parseClassMember(n,e,i),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&this.raise(h.DecoratorConstructor,e)}}),this.state.strict=t,this.next(),r.length)throw this.raise(h.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(n,"ClassBody")}parseClassMemberFromModifier(e,t){let i=this.parseIdentifier(!0);return this.isClassMethod()?(t.kind="method",t.computed=!1,t.key=i,t.static=!1,this.pushClassMethod(e,t,!1,!1,!1,!1),!0):this.isClassProperty()?(t.computed=!1,t.key=i,t.static=!1,e.body.push(this.parseClassProperty(t)),!0):(this.resetPreviousNodeTrailingComments(i),!1)}parseClassMember(e,t,i){let r=this.isContextual(106);if(r){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5))return void this.parseClassStaticBlock(e,t)}this.parseClassMemberWithIsStatic(e,t,i,r)}parseClassMemberWithIsStatic(e,t,i,r){if(t.static=r,this.parsePropertyNamePrefixOperator(t),this.eat(55)){t.kind="method";let i=this.match(139);return(this.parseClassElementName(t),this.parsePostMemberNameModifiers(t),i)?void this.pushClassPrivateMethod(e,t,!0,!1):(this.isNonstaticConstructor(t)&&this.raise(h.ConstructorIsGenerator,t.key),void this.pushClassMethod(e,t,!0,!1,!1,!1))}let n=!this.state.containsEsc&&O(this.state.type),s=this.parseClassElementName(t),a=n?s.name:null,o=this.isPrivateName(s),l=this.state.startLoc;if(this.parsePostMemberNameModifiers(t),this.isClassMethod()){if(t.kind="method",o)return void this.pushClassPrivateMethod(e,t,!1,!1);let r=this.isNonstaticConstructor(t),n=!1;r&&(t.kind="constructor",i.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(h.DuplicateConstructor,s),r&&this.hasPlugin("typescript")&&t.override&&this.raise(h.OverrideOnConstructor,s),i.hadConstructor=!0,n=i.hadSuperClass),this.pushClassMethod(e,t,!1,!1,r,n)}else if(this.isClassProperty())o?this.pushClassPrivateProperty(e,t):this.pushClassProperty(e,t);else if("async"!==a||this.isLineTerminator())if("get"!==a&&"set"!==a||this.match(55)&&this.isLineTerminator())if("accessor"!==a||this.isLineTerminator())this.isLineTerminator()?o?this.pushClassPrivateProperty(e,t):this.pushClassProperty(e,t):this.unexpected();else{this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(s);let i=this.match(139);this.parseClassElementName(t),this.pushClassAccessorProperty(e,t,i)}else{this.resetPreviousNodeTrailingComments(s),t.kind=a;let i=this.match(139);this.parseClassElementName(t),i?this.pushClassPrivateMethod(e,t,!1,!1):(this.isNonstaticConstructor(t)&&this.raise(h.ConstructorIsAccessor,t.key),this.pushClassMethod(e,t,!1,!1,!1,!1)),this.checkGetterSetterParams(t)}else{this.resetPreviousNodeTrailingComments(s);let i=this.eat(55);t.optional&&this.unexpected(l),t.kind="method";let r=this.match(139);this.parseClassElementName(t),this.parsePostMemberNameModifiers(t),r?this.pushClassPrivateMethod(e,t,i,!0):(this.isNonstaticConstructor(t)&&this.raise(h.ConstructorIsAsync,t.key),this.pushClassMethod(e,t,i,!0,!1,!1))}}parseClassElementName(e){let{type:t,value:i}=this.state;if((132===t||134===t)&&e.static&&"prototype"===i&&this.raise(h.StaticPrototype,this.state.startLoc),139===t){"constructor"===i&&this.raise(h.ConstructorClassPrivateField,this.state.startLoc);let t=this.parsePrivateName();return e.key=t,t}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,t){var i;this.scope.enter(720);let r=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let n=t.body=[];this.parseBlockOrModuleBlockBody(n,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=r,e.body.push(this.finishNode(t,"StaticBlock")),null!=(i=t.decorators)&&i.length&&this.raise(h.DecoratorStaticBlock,t)}pushClassProperty(e,t){!t.computed&&this.nameIsConstructor(t.key)&&this.raise(h.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){let i=this.parseClassPrivateProperty(t);e.body.push(i),this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),0,i.key.loc.start)}pushClassAccessorProperty(e,t,i){!i&&!t.computed&&this.nameIsConstructor(t.key)&&this.raise(h.ConstructorClassField,t.key);let r=this.parseClassAccessorProperty(t);e.body.push(r),i&&this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassMethod(e,t,i,r,n,s){e.body.push(this.parseMethod(t,i,r,n,s,"ClassMethod",!0))}pushClassPrivateMethod(e,t,i,r){let n=this.parseMethod(t,i,r,!1,!1,"ClassPrivateMethod",!0);e.body.push(n);let s="get"===n.kind?n.static?6:2:"set"===n.kind?n.static?5:1:0;this.declareClassPrivateMethodInScope(n,s)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(592),this.expressionScope.enter(new e$),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,i,r=8331){if(O(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,r);else if(i||!t)e.id=null;else throw this.raise(h.MissingClassName,this.state.startLoc)}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){let i,r=this.parseMaybeImportPhase(e,!0),n=this.maybeParseExportDefaultSpecifier(e,r),s=!n||this.eat(12),a=s&&this.eatExportStar(e),o=a&&this.maybeParseExportNamespaceSpecifier(e),l=s&&(!o||this.eat(12)),p=n||a;if(a&&!o){if(n&&this.unexpected(),t)throw this.raise(h.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.sawUnambiguousESM=!0,this.finishNode(e,"ExportAllDeclaration")}let u=this.maybeParseExportNamedSpecifiers(e);if(n&&s&&!a&&!u&&this.unexpected(null,5),o&&l&&this.unexpected(null,98),p||u){if(i=!1,t)throw this.raise(h.UnsupportedDecoratorExport,e);this.parseExportFrom(e,p)}else i=this.maybeParseExportDeclaration(e);if(p||u||i){var c;if(this.checkExport(e,!0,!1,!!e.source),(null==(c=e.declaration)?void 0:c.type)==="ClassDeclaration")this.maybeTakeDecorators(t,e.declaration,e);else if(t)throw this.raise(h.UnsupportedDecoratorExport,e);return this.sawUnambiguousESM=!0,this.finishNode(e,"ExportNamedDeclaration")}if(this.eat(65)){let i=this.parseExportDefaultExpression();if(e.declaration=i,"ClassDeclaration"===i.type)this.maybeTakeDecorators(t,i,e);else if(t)throw this.raise(h.UnsupportedDecoratorExport,e);return this.checkExport(e,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(e,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",null==t?void 0:t.loc.start);let i=t||this.parseIdentifier(!0),r=this.startNodeAtNode(i);return r.exported=i,e.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){null!=e.specifiers||(e.specifiers=[]);let t=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),t.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(t,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){e.specifiers||(e.specifiers=[]);let t="type"===e.exportKind;return e.specifiers.push(...this.parseExportSpecifiers(t)),e.source=null,this.hasPlugin("importAssertions")?e.assertions=[]:e.attributes=[],e.declaration=null,!0}return!1}maybeParseExportDeclaration(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions")?e.assertions=[]:e.attributes=[],e.declaration=this.parseExportDeclaration(e),!0)}isAsyncFunction(){if(!this.isContextual(95))return!1;let e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){let e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(h.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(h.UnsupportedDefaultExport,this.state.startLoc);let t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:e}=this.state;if(O(e)){if(95===e&&!this.state.containsEsc||100===e)return!1;if((130===e||129===e)&&!this.state.containsEsc){let e=this.nextTokenStart(),t=this.input.charCodeAt(e);if(123===t||this.chStartsBindingIdentifier(t,e)&&!this.input.startsWith("from",e))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let t=this.nextTokenStart(),i=this.isUnparsedContextual(t,"from");if(44===this.input.charCodeAt(t)||O(this.state.type)&&i)return!0;if(this.match(65)&&i){let e=this.input.charCodeAt(this.nextTokenStartSince(t+4));return 34===e||39===e}return!1}parseExportFrom(e,t){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):t&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:e}=this.state;return 26===e&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(h.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()||this.isAwaitUsing()?(this.raise(h.UsingDeclarationExport,this.state.startLoc),!0):74===e||75===e||68===e||80===e||this.isLet()||this.isAsyncFunction()}checkExport(e,t,i,r){if(t){var n,s;if(i){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){let t=e.declaration;"Identifier"!==t.type||"from"!==t.name||t.end-t.start!=4||null!=(s=t.extra)&&s.parenthesized||this.raise(h.ExportDefaultFromAsIdentifier,t)}}else if(null!=(n=e.specifiers)&&n.length)for(let t of e.specifiers){let{exported:e}=t,i="Identifier"===e.type?e.name:e.value;if(this.checkDuplicateExports(t,i),!r&&t.local){let{local:e}=t;"Identifier"!==e.type?this.raise(h.ExportBindingIsString,t,{localName:e.value,exportName:i}):(this.checkReservedWord(e.name,e.loc.start,!0,!1),this.scope.checkLocalExport(e))}}else if(e.declaration){let t=e.declaration;if("FunctionDeclaration"===t.type||"ClassDeclaration"===t.type){let{id:i}=t;if(!i)throw Error("Assertion failure");this.checkDuplicateExports(e,i.name)}else if("VariableDeclaration"===t.type)for(let e of t.declarations)this.checkDeclaration(e.id)}}}checkDeclaration(e){if("Identifier"===e.type)this.checkDuplicateExports(e,e.name);else if("ObjectPattern"===e.type)for(let t of e.properties)this.checkDeclaration(t);else if("ArrayPattern"===e.type)for(let t of e.elements)t&&this.checkDeclaration(t);else"ObjectProperty"===e.type?this.checkDeclaration(e.value):"RestElement"===e.type?this.checkDeclaration(e.argument):"AssignmentPattern"===e.type&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&("default"===t?this.raise(h.DuplicateDefaultExport,e):this.raise(h.DuplicateExport,e,{exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){let t=[],i=!0;for(this.expect(5);!this.eat(8);){if(i)i=!1;else if(this.expect(12),this.eat(8))break;let r=this.isContextual(130),n=this.match(134),s=this.startNode();s.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(s,n,e,r))}return t}parseExportSpecifier(e,t,i,r){return this.eatContextual(93)?e.exported=this.parseModuleExportName():t?e.exported=this.cloneStringLiteral(e.local):e.exported||(e.exported=this.cloneIdentifier(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let e=this.parseStringLiteral(this.state.value),t=tr.exec(e.value);return t&&this.raise(h.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return null!=e.assertions&&e.assertions.some(({key:e,value:t})=>"json"===t.value&&("Identifier"===e.type?"type"===e.name:"type"===e.value))}checkImportReflection(e){let{specifiers:t}=e,i=1===t.length?t[0].type:null;if("source"===e.phase)"ImportDefaultSpecifier"!==i&&this.raise(h.SourcePhaseImportRequiresDefault,t[0].loc.start);else if("defer"===e.phase)"ImportNamespaceSpecifier"!==i&&this.raise(h.DeferImportRequiresNamespace,t[0].loc.start);else if(e.module){var r;"ImportDefaultSpecifier"!==i&&this.raise(h.ImportReflectionNotBinding,t[0].loc.start),(null==(r=e.assertions)?void 0:r.length)>0&&this.raise(h.ImportReflectionHasAssertion,t[0].loc.start)}}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&"ExportAllDeclaration"!==e.type){let{specifiers:t}=e;if(null!=t){let e=t.find(e=>{let t;if("ExportSpecifier"===e.type?t=e.local:"ImportSpecifier"===e.type&&(t=e.imported),void 0!==t)return"Identifier"===t.type?"default"!==t.name:"default"!==t.value});void 0!==e&&this.raise(h.ImportJSONBindingNotDefault,e.loc.start)}}}isPotentialImportPhase(e){return!e&&(this.isContextual(105)||this.isContextual(97)||this.isContextual(127))}applyImportPhase(e,t,i,r){!t&&("module"===i?(this.expectPlugin("importReflection",r),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1),"source"===i?(this.expectPlugin("sourcePhaseImports",r),e.phase="source"):"defer"===i?(this.expectPlugin("deferredImportEvaluation",r),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))}parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;let i=this.startNode(),r=this.parseIdentifierName(!0),{type:n}=this.state;return(F(n)?98!==n||102===this.lookaheadCharCode():12!==n)?(this.applyImportPhase(e,t,r,i.loc.start),null):(this.applyImportPhase(e,t,null),this.createIdentifier(i,r))}isPrecedingIdImportPhase(e){let{type:t}=this.state;return O(t)?98!==t||102===this.lookaheadCharCode():12!==t}parseImport(e){return this.match(134)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];let i=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),r=i&&this.maybeParseStarImportSpecifier(e);return i&&!r&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){return null!=e.specifiers||(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,t,i){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,i))}finishImportSpecifier(e,t,i=8201){return this.checkLVal(e.local,{type:t},i),this.finishNode(e,t)}parseImportAttributes(){this.expect(5);let e=[],t=new Set;do{if(this.match(8))break;let i=this.startNode(),r=this.state.value;if(t.has(r)&&this.raise(h.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:r}),t.add(r),this.match(134)?i.key=this.parseStringLiteral(r):i.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(h.ModuleAttributeInvalidValue,this.state.startLoc);i.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(i,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){let e=[],t=new Set;do{let i=this.startNode();if(i.key=this.parseIdentifier(!0),"type"!==i.key.name&&this.raise(h.ModuleAttributeDifferentFromType,i.key),t.has(i.key.name)&&this.raise(h.ModuleAttributesWithDuplicateKeys,i.key,{key:i.key.name}),t.add(i.key.name),this.expect(14),!this.match(134))throw this.raise(h.ModuleAttributeInvalidValue,this.state.startLoc);i.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(i,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let t;var i=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&40===this.lookaheadCharCode())return;this.next(),this.hasPlugin("moduleAttributes")?(t=this.parseModuleAttributes(),this.addExtra(e,"deprecatedWithLegacySyntax",!0)):t=this.parseImportAttributes(),i=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(this.hasPlugin("deprecatedImportAssert")||this.hasPlugin("importAssertions")||this.raise(h.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(e,"deprecatedAssertSyntax",!0),this.next(),t=this.parseImportAttributes()):t=[];!i&&this.hasPlugin("importAssertions")?e.assertions=t:e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){let i=this.startNodeAtNode(t);return i.local=t,e.specifiers.push(this.finishImportSpecifier(i,"ImportDefaultSpecifier")),!0}return!!F(this.state.type)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0)}maybeParseStarImportSpecifier(e){if(this.match(55)){let t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(h.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let i=this.startNode(),r=this.match(134),n=this.isContextual(130);i.imported=this.parseModuleExportName();let s=this.parseImportSpecifier(i,r,"type"===e.importKind||"typeof"===e.importKind,n,void 0);e.specifiers.push(s)}}parseImportSpecifier(e,t,i,r,n){if(this.eatContextual(93))e.local=this.parseIdentifier();else{let{imported:i}=e;if(t)throw this.raise(h.ImportBindingIsString,e,{importName:i.value});this.checkReservedWord(i.name,e.loc.start,!0,!0),e.local||(e.local=this.cloneIdentifier(i))}return this.finishImportSpecifier(e,"ImportSpecifier",n)}isThisParam(e){return"Identifier"===e.type&&"this"===e.name}}class ta extends ts{constructor(e,t,i){let r=function(e){let t={sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};if(null==e)return t;if(null!=e.annexB&&!1!==e.annexB)throw Error("The `annexB` option can only be set to `false`.");for(let i of Object.keys(t))null!=e[i]&&(t[i]=e[i]);if(1===t.startLine)null==e.startIndex&&t.startColumn>0?t.startIndex=t.startColumn:null==e.startColumn&&t.startIndex>0&&(t.startColumn=t.startIndex);else if((null==e.startColumn||null==e.startIndex)&&null!=e.startIndex)throw Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if("commonjs"===t.sourceType){if(null!=e.allowAwaitOutsideFunction)throw Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(null!=e.allowReturnOutsideFunction)throw Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(null!=e.allowNewTargetOutsideFunction)throw Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return t}(e);super(r,t),this.options=r,this.initializeScopes(),this.plugins=i,this.filename=r.sourceFilename,this.startIndex=r.startIndex;let n=0;r.allowAwaitOutsideFunction&&(n|=1),r.allowReturnOutsideFunction&&(n|=2),r.allowImportExportEverywhere&&(n|=8),r.allowSuperOutsideMethod&&(n|=16),r.allowUndeclaredExports&&(n|=64),r.allowNewTargetOutsideFunction&&(n|=4),r.allowYieldOutsideFunction&&(n|=32),r.ranges&&(n|=128),r.tokens&&(n|=256),r.createImportExpressions&&(n|=512),r.createParenthesizedExpressions&&(n|=1024),r.errorRecovery&&(n|=2048),r.attachComment&&(n|=4096),r.annexB&&(n|=8192),this.optionFlags=n}getScopeHandler(){return ei}parse(){this.enterInitialScopes();let e=this.startNode(),t=this.startNode();this.nextToken(),e.errors=null;let i=this.parseTopLevel(e,t);return i.errors=this.state.errors,i.comments.length=this.state.commentsLen,i}}let to=function(e){let t={};for(let i of Object.keys(e))t[i]=P[e[i]];return t}(N);function tl(e,t){let i=ta,r=new Map;if(null!=e&&e.plugins){for(let t of e.plugins){let e,i;"string"==typeof t?e=t:[e,i]=t,r.has(e)||r.set(e,i||{})}!function(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw Error("Cannot use the decorators and decorators-legacy plugin together");let t=e.get("decorators").decoratorsBeforeExport;if(null!=t&&"boolean"!=typeof t)throw Error("'decoratorsBeforeExport' must be a boolean, if specified.");let i=e.get("decorators").allowCallParenthesized;if(null!=i&&"boolean"!=typeof i)throw Error("'allowCallParenthesized' must be a boolean.")}if(e.has("flow")&&e.has("typescript"))throw Error("Cannot combine flow and typescript plugins.");if(e.has("placeholders")&&e.has("v8intrinsic"))throw Error("Cannot combine placeholders and v8intrinsic plugins.");if(e.has("pipelineOperator")){var t,i;let r=e.get("pipelineOperator").proposal;if(!e5.includes(r)){let e=e5.map(e=>`"${e}"`).join(", ");throw Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}if("hack"===r){if(e.has("placeholders"))throw Error("Cannot combine placeholders plugin and Hack-style pipes.");if(e.has("v8intrinsic"))throw Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let t=e.get("pipelineOperator").topicToken;if(!e6.includes(t)){let e=e6.map(e=>`"${e}"`).join(", ");throw Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${e}.`)}if("#"===t&&(null==(i=e.get("recordAndTuple"))?void 0:i.syntaxType)==="hash")throw Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}else if("smart"===r&&(null==(t=e.get("recordAndTuple"))?void 0:t.syntaxType)==="hash")throw Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}if(e.has("moduleAttributes")){if(e.has("deprecatedImportAssert")||e.has("importAssertions"))throw Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if("may-2020"!==e.get("moduleAttributes").version)throw Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(e.has("importAssertions")&&e.has("deprecatedImportAssert"))throw Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");if(!e.has("deprecatedImportAssert")&&e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax&&e.set("deprecatedImportAssert",{}),e.has("recordAndTuple")){let t=e.get("recordAndTuple").syntaxType;if(null!=t){let e=["hash","bar"];if(!e.includes(t))throw Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+e.map(e=>`'${e}'`).join(", "))}}if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){let e=Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw e.missingPlugins="doExpressions",e}if(e.has("optionalChainingAssign")&&"2023-07"!==e.get("optionalChainingAssign").version)throw Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(e.has("discardBinding")&&"void"!==e.get("discardBinding").syntaxType)throw Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.")}(r),i=function(e){let t=[];for(let i of e7)e.has(i)&&t.push(i);let i=t.join("|"),r=tp.get(i);if(!r){for(let e of(r=ta,t))r=e9[e](r);tp.set(i,r)}return r}(r)}return new i(e,t,r)}let tp=new Map;t.parse=function(e,t){var i;if((null==(i=t)?void 0:i.sourceType)!=="unambiguous")return tl(t,e).parse();t=Object.assign({},t);try{t.sourceType="module";let i=tl(t,e),r=i.parse();if(i.sawUnambiguousESM)return r;if(i.ambiguousScriptDifferentAst)try{return t.sourceType="script",tl(t,e).parse()}catch(e){}else r.program.sourceType="script";return r}catch(i){try{return t.sourceType="script",tl(t,e).parse()}catch(e){}throw i}},t.parseExpression=function(e,t){let i=tl(t,e);return i.options.strictMode&&(i.state.strict=!0),i.getExpression()},t.tokTypes=to},57301(e,t,i){var r=i(37399),n=i(69893);e.exports=function(e,t,i){if(r())return Reflect.construct.apply(null,arguments);var s=[null];s.push.apply(s,t);var a=new(e.bind.apply(e,s));return i&&n(a,i.prototype),a},e.exports.__esModule=!0,e.exports.default=e.exports},39833(e){e.exports=function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports},37399(e){function t(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(e.exports=t=function(){return!!i},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},59410(e,t,i){var r=i(30409),n=i(69893),s=i(39833),a=i(57301);function o(t){var i="function"==typeof Map?new Map:void 0;return e.exports=o=function(e){if(null===e||!s(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==i){if(i.has(e))return i.get(e);i.set(e,t)}function t(){return a(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,o(t)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},10215(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,i){let l=new WeakMap,p=new WeakMap,u=i||(0,r.validate)(null);return Object.assign((i,...a)=>{if("string"==typeof i){if(a.length>1)throw Error("Unexpected extra params.");return o((0,n.default)(t,i,(0,r.merge)(u,(0,r.validate)(a[0]))))}if(Array.isArray(i)){let e=l.get(i);return e||(e=(0,s.default)(t,i,u),l.set(i,e)),o(e(a))}if("object"==typeof i&&i){if(a.length>0)throw Error("Unexpected extra params.");return e(t,(0,r.merge)(u,(0,r.validate)(i)))}throw Error(`Unexpected template param ${typeof i}`)},{ast:(e,...i)=>{if("string"==typeof e){if(i.length>1)throw Error("Unexpected extra params.");return(0,n.default)(t,e,(0,r.merge)((0,r.merge)(u,(0,r.validate)(i[0])),a))()}if(Array.isArray(e)){let n=p.get(e);return n||(n=(0,s.default)(t,e,(0,r.merge)(u,a)),p.set(e,n)),n(i)()}throw Error(`Unexpected template param ${typeof e}`)}})};var r=i(95838),n=i(41199),s=i(17667);let a=(0,r.validate)({placeholderPattern:!1});function o(e){let t="";try{throw Error()}catch(e){e.stack&&(t=e.stack.split("\n").slice(3).join("\n"))}return i=>{try{return e(i)}catch(e){throw e.stack+=`
7
+ =============
8
+ ${t}`,e}}}},39813(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.statements=t.statement=t.smart=t.program=t.expression=void 0;let{assertExpressionStatement:r}=i(58135);function n(e){return{code:e=>`/* @babel/template */;
9
+ ${e}`,validate:()=>{},unwrap:t=>e(t.program.body.slice(1))}}t.smart=n(e=>e.length>1?e:e[0]),t.statements=n(e=>e),t.statement=n(e=>{if(0===e.length)throw Error("Found nothing to return.");if(e.length>1)throw Error("Found multiple statements but wanted one");return e[0]});let s=t.expression={code:e=>`(
10
+ ${e}
11
+ )`,validate:e=>{if(e.program.body.length>1)throw Error("Found multiple statements but wanted one");if(0===s.unwrap(e).start)throw Error("Parse result included parens.")},unwrap:({program:e})=>{let[t]=e.body;return r(t),t.expression}};t.program={code:e=>e,validate:()=>{},unwrap:e=>e.program}},50240(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.statements=t.statement=t.smart=t.program=t.expression=t.default=void 0;var r=i(39813),n=i(10215);let s=t.smart=(0,n.default)(r.smart),a=t.statement=(0,n.default)(r.statement),o=t.statements=(0,n.default)(r.statements),l=t.expression=(0,n.default)(r.expression),p=t.program=(0,n.default)(r.program);t.default=Object.assign(s.bind(void 0),{smart:s,statement:a,statements:o,expression:l,program:p,ast:s.ast})},17667(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i){let{metadata:a,names:o}=function(e,t,i){let r="BABEL_TPL$",s=t.join("");do r="$$"+r;while(s.includes(r));let{names:a,code:o}=function(e,t){let i=[],r=e[0];for(let n=1;n<e.length;n++){let s=`${t}${n-1}`;i.push(s),r+=s+e[n]}return{names:i,code:r}}(t,r);return{metadata:(0,n.default)(e,e.code(o),{parser:i.parser,placeholderWhitelist:new Set(a.concat(i.placeholderWhitelist?Array.from(i.placeholderWhitelist):[])),placeholderPattern:i.placeholderPattern,preserveComments:i.preserveComments,syntacticPlaceholders:i.syntacticPlaceholders}),names:a}}(e,t,i);return t=>{let i={};return t.forEach((e,t)=>{i[o[t]]=e}),t=>{let n=(0,r.normalizeReplacements)(t);return n&&Object.keys(n).forEach(e=>{if(hasOwnProperty.call(i,e))throw Error("Unexpected replacement overlap.")}),e.unwrap((0,s.default)(a,n?Object.assign(n,i):i))}}};var r=i(95838),n=i(4131),s=i(72064)},95838(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.merge=function(e,t){let{placeholderWhitelist:i=e.placeholderWhitelist,placeholderPattern:r=e.placeholderPattern,preserveComments:n=e.preserveComments,syntacticPlaceholders:s=e.syntacticPlaceholders}=t;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:i,placeholderPattern:r,preserveComments:n,syntacticPlaceholders:s}},t.normalizeReplacements=function(e){if(Array.isArray(e))return e.reduce((e,t,i)=>(e["$"+i]=t,e),{});if("object"==typeof e||null==e)return e||void 0;throw Error("Template replacements must be an array, object, null, or undefined")},t.validate=function(e){if(null!=e&&"object"!=typeof e)throw Error("Unknown template options.");let t=e||{},{placeholderWhitelist:r,placeholderPattern:n,preserveComments:s,syntacticPlaceholders:a}=t,o=function(e,t){if(null==e)return{};var i={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;i[r]=e[r]}return i}(t,i);if(null!=r&&!(r instanceof Set))throw Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(null!=n&&!(n instanceof RegExp)&&!1!==n)throw Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(null!=s&&"boolean"!=typeof s)throw Error("'.preserveComments' must be a boolean, null, or undefined");if(null!=a&&"boolean"!=typeof a)throw Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(!0===a&&(null!=r||null!=n))throw Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:o,placeholderWhitelist:r||void 0,placeholderPattern:null==n?void 0:n,preserveComments:null==s?void 0:s,syntacticPlaceholders:null==a?void 0:a}};let i=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"]},4131(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i){let{placeholderWhitelist:r,placeholderPattern:a,preserveComments:o,syntacticPlaceholders:l}=i,p=function(e,t,i){let r=(t.plugins||[]).slice();!1!==i&&r.push("placeholders"),t=Object.assign({allowAwaitOutsideFunction:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowYieldOutsideFunction:!0,sourceType:"module"},t,{plugins:r});try{return(0,n.parse)(e,t)}catch(i){let t=i.loc;throw t&&(i.message+="\n"+(0,s.codeFrameColumns)(e,{start:t}),i.code="BABEL_TEMPLATE_PARSE_ERROR"),i}}(t,i.parser,l);f(p,{preserveComments:o}),e.validate(p);let u={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:r,placeholderPattern:a,syntacticPlaceholders:l};return y(p,T,u),Object.assign({ast:p},u.syntactic.placeholders.length?u.syntactic:u.legacy)};var r=i(58135),n=i(46773),s=i(56611);let{isCallExpression:a,isExpressionStatement:o,isFunction:l,isIdentifier:p,isJSXIdentifier:u,isNewExpression:c,isPlaceholder:d,isStatement:h,isStringLiteral:m,removePropertiesDeep:f,traverse:y}=r,g=/^[_$A-Z0-9]+$/;function T(e,t,i){var r;let n,s,f=i.syntactic.placeholders.length>0;if(d(e)){if(!1===i.syntacticPlaceholders)throw Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");n=e.name.name,f=!0}else if(f||i.syntacticPlaceholders)return;else if(p(e)||u(e))n=e.name;else{if(!m(e))return;n=e.value}if(f&&(null!=i.placeholderPattern||null!=i.placeholderWhitelist))throw Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(!f&&(!1===i.placeholderPattern||!(i.placeholderPattern||g).test(n))&&!(null!=(r=i.placeholderWhitelist)&&r.has(n)))return;let{node:y,key:T}=(t=t.slice())[t.length-1];m(e)||d(e,{expectedNode:"StringLiteral"})?s="string":c(y)&&"arguments"===T||a(y)&&"arguments"===T||l(y)&&"params"===T?s="param":o(y)&&!d(e)?(s="statement",t=t.slice(0,-1)):s=h(e)&&d(e)?"statement":"other";let{placeholders:b,placeholderNames:x}=f?i.syntactic:i.legacy;b.push({name:n,type:s,resolve:e=>(function(e,t){let i=e;for(let e=0;e<t.length-1;e++){let{key:r,index:n}=t[e];i=void 0===n?i[r]:i[r][n]}let{key:r,index:n}=t[t.length-1];return{parent:i,key:r,index:n}})(e,t),isDuplicate:x.has(n)}),x.add(n)}},72064(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let i=n(e.ast);return t&&(e.placeholders.forEach(e=>{if(!hasOwnProperty.call(t,e.name)){let t=e.name;throw Error(`Error: No substitution given for "${t}". If this is not meant to be a
12
+ placeholder you may want to consider passing one of the following options to @babel/template:
13
+ - { placeholderPattern: false, placeholderWhitelist: new Set(['${t}'])}
14
+ - { placeholderPattern: /^${t}$/ }`)}}),Object.keys(t).forEach(t=>{if(!e.placeholderNames.has(t))throw Error(`Unknown substitution "${t}" given`)})),e.placeholders.slice().reverse().forEach(e=>{try{var d;!function(e,t,i){e.isDuplicate&&(Array.isArray(i)?i=i.map(e=>n(e)):"object"==typeof i&&(i=n(i)));let{parent:d,key:h,index:m}=e.resolve(t);if("string"===e.type){if("string"==typeof i&&(i=u(i)),!i||!p(i))throw Error("Expected string substitution")}else if("statement"===e.type)void 0===m?i?Array.isArray(i)?i=r(i):"string"==typeof i?i=a(o(i)):l(i)||(i=a(i)):i=s():i&&!Array.isArray(i)&&("string"==typeof i&&(i=o(i)),l(i)||(i=a(i)));else if("param"===e.type){if("string"==typeof i&&(i=o(i)),void 0===m)throw Error("Assertion failure.")}else if("string"==typeof i&&(i=o(i)),Array.isArray(i))throw Error("Cannot replace single expression with an array.");function f(e,t,i){let r=e[t];e[t]=i,("Identifier"===r.type||"Placeholder"===r.type)&&(r.typeAnnotation&&(i.typeAnnotation=r.typeAnnotation),r.optional&&(i.optional=r.optional),r.decorators&&(i.decorators=r.decorators))}if(void 0===m)c(d,h,i),f(d,h,i);else{let t=d[h].slice();"statement"===e.type||"param"===e.type?null==i?t.splice(m,1):Array.isArray(i)?t.splice(m,1,...i):f(t,m,i):f(t,m,i),c(d,h,t),d[h]=t}}(e,i,null!=(d=t&&t[e.name])?d:null)}catch(t){throw t.message=`@babel/template placeholder "${e.name}": ${t.message}`,t}}),i};let{blockStatement:r,cloneNode:n,emptyStatement:s,expressionStatement:a,identifier:o,isStatement:l,isStringLiteral:p,stringLiteral:u,validate:c}=i(58135)},41199(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i){let a;return t=e.code(t),o=>{let l=(0,r.normalizeReplacements)(o);return a||(a=(0,n.default)(e,t,i)),e.unwrap((0,s.default)(a,l))}};var r=i(95838),n=i(4131),s=i(72064)},56266(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.clear=function(){r(),n()},t.clearPath=r,t.clearScope=n,t.getCachedPaths=function(e){let{parent:t,parentPath:r}=e;return i.get(t)},t.getOrCreateCachedPaths=function(e,t){let r=i.get(e);return r||i.set(e,r=new Map),r},t.scope=t.path=void 0;let i=t.path=new WeakMap;function r(){t.path=i=new WeakMap}function n(){t.scope=new WeakMap}t.scope=new WeakMap},96647(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(32670),n=i(58135),s=i(44537);let{VISITOR_KEYS:a}=n;t.default=class{constructor(e,t,i,r){this.queue=null,this.priorityQueue=null,this.parentPath=r,this.scope=e,this.state=i,this.opts=t}shouldVisit(e){let t=this.opts;if(t.enter||t.exit||t[e.type])return!0;let i=a[e.type];if(!(null!=i&&i.length))return!1;for(let t of i)if(e[t])return!0;return!1}create(e,t,i,n){return r.default.get({parentPath:this.parentPath,parent:e,container:t,key:i,listKey:n})}maybeQueue(e,t){this.queue&&(t?this.queue.push(e):this.priorityQueue.push(e))}visitMultiple(e,t,i){if(0===e.length)return!1;let r=[];for(let n=0;n<e.length;n++){let s=e[n];s&&this.shouldVisit(s)&&r.push(this.create(t,e,n,i))}return this.visitQueue(r)}visitSingle(e,t){return!!this.shouldVisit(e[t])&&this.visitQueue([this.create(e,e,t)])}visitQueue(e){this.queue=e,this.priorityQueue=[];let t=new WeakSet,i=!1,r=0;for(;r<e.length;){let n=e[r];if(r++,s.resync.call(n),(0===n.contexts.length||n.contexts[n.contexts.length-1]!==this)&&s.pushContext.call(n,this),null===n.key)continue;let{node:a}=n;if(!t.has(a)){if(a&&t.add(a),n.visit()){i=!0;break}if(this.priorityQueue.length&&(i=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=e,i))break}}for(let t=0;t<r;t++)s.popContext.call(e[t]);return this.queue=null,i}visit(e,t){let i=e[t];return!!i&&(Array.isArray(i)?this.visitMultiple(i,e,t):this.visitSingle(e,t))}}},9783(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=class{getCode(){}getScope(){}addHelper(){throw Error("Helpers are not supported by the default hub.")}buildError(e,t,i=TypeError){return new i(t)}}},80004(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Hub",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"NodePath",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return l.default}}),t.visitors=t.default=void 0,i(44537);var r=i(95957);t.visitors=r;var n=i(58135),s=i(56266),a=i(51597),o=i(32670),l=i(54683),p=i(9783);let{VISITOR_KEYS:u,removeProperties:c,traverseFast:d}=n;function h(e,t={},i,n,s,o){if(e){if(!t.noScope&&!i&&"Program"!==e.type&&"File"!==e.type)throw Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${e.type} node without passing scope and parentPath.`);if(!s&&o)throw Error("visitSelf can only be used when providing a NodePath.");u[e.type]&&(r.explode(t),(0,a.traverseNode)(e,t,i,n,s,void 0,o))}}t.default=h,h.visitors=r,h.verify=r.verify,h.explode=r.explode,h.cheap=function(e,t){d(e,t)},h.node=function(e,t,i,r,n,s){(0,a.traverseNode)(e,t,i,r,n,s)},h.clearNode=function(e,t){c(e,t)},h.removeProperties=function(e,t){return d(e,h.clearNode,t),e},h.hasType=function(e,t,i){return!(null!=i&&i.includes(e.type))&&(e.type===t||d(e,function(e){return null!=i&&i.includes(e.type)?d.skip:e.type===t?d.stop:void 0}))},h.cache=s},90157(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.find=function(e){let t=this;do if(e(t))return t;while(t=t.parentPath);return null},t.findParent=function(e){let t=this;for(;t=t.parentPath;)if(e(t))return t;return null},t.getAncestry=function(){let e=this,t=[];do t.push(e);while(e=e.parentPath);return t},t.getDeepestCommonAncestorFrom=function(e,t){let i,r;if(!e.length)return this;if(1===e.length)return e[0];let n=1/0,s=e.map(e=>{let t=[];do t.unshift(e);while((e=e.parentPath)&&e!==this);return t.length<n&&(n=t.length),t}),a=s[0];i:for(let e=0;e<n;e++){let t=a[e];for(let i of s)if(i[e]!==t)break i;i=e,r=t}if(r)if(t)return t(r,i,s);else return r;throw Error("Couldn't find intersection")},t.getEarliestCommonAncestorFrom=function(e){return this.getDeepestCommonAncestorFrom(e,function(e,t,i){let n,s=r[e.type];for(let e of i){let i=e[t+1];if(!n||i.listKey&&n.listKey===i.listKey&&i.key<n.key){n=i;continue}s.indexOf(n.parentKey)>s.indexOf(i.parentKey)&&(n=i)}return n})},t.getFunctionParent=function(){return this.findParent(e=>e.isFunction())},t.getStatementParent=function(){let e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;e=e.parentPath}while(e);if(e&&(e.isProgram()||e.isFile()))throw Error("File/Program node, we can't possibly find a statement parent to this");return e},t.inType=function(...e){let t=this;for(;t;){if(e.includes(t.node.type))return!0;t=t.parentPath}return!1},t.isAncestor=function(e){return e.isDescendant(this)},t.isDescendant=function(e){return!!this.findParent(t=>t===e)};let{VISITOR_KEYS:r}=i(58135)},68418(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.addComment=function(e,t,i){r(this.node,e,t,i)},t.addComments=function(e,t){n(this.node,e,t)},t.shareCommentsWithSiblings=function(){if("string"==typeof this.key)return;let e=this.node;if(!e)return;let t=e.trailingComments,i=e.leadingComments;if(!t&&!i)return;let r=this.getSibling(this.key-1),n=this.getSibling(this.key+1),a=!!r.node,o=!!n.node;a&&(i&&r.addComments("trailing",s(i,r.node.trailingComments)),t&&!o&&r.addComments("trailing",t)),o&&(t&&n.addComments("leading",s(t,n.node.leadingComments)),i&&!a&&n.addComments("leading",i))};let{addComment:r,addComments:n}=i(58135);function s(e,t){if(!(null!=t&&t.length))return e;let i=new Set(t);return e.filter(e=>!i.has(e))}},44537(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t._call=l,t._getQueueContexts=function(){let e=this,t=this.contexts;for(;!t.length&&(e=e.parentPath);)t=e.contexts;return t},t._resyncKey=h,t._resyncList=m,t._resyncParent=d,t._resyncRemoved=function(){null!=this.key&&this.container&&this.container[this.key]===this.node||s._markRemoved.call(this)},t.call=o,t.isDenylisted=p,t.popContext=function(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)},t.pushContext=function(e){this.contexts.push(e),this.setContext(e)},t.requeue=function(e=this){if(!e.removed)for(let t of this.contexts)t.maybeQueue(e)},t.requeueComputedKeyAndDecorators=function(){let{context:e,node:t}=this;if(!a.isPrivate(t)&&t.computed&&e.maybeQueue(this.get("key")),t.decorators)for(let t of this.get("decorators"))e.maybeQueue(t)},t.resync=function(){this.removed||(d.call(this),m.call(this),h.call(this))},t.setContext=function(e){return null!=this.skipKeys&&(this.skipKeys={}),this._traverseFlags=0,e&&(this.context=e,this.state=e.state,this.opts=e.opts),c.call(this),this},t.setKey=f,t.setScope=c,t.setup=function(e,t,i,r){this.listKey=i,this.container=t,this.parentPath=e||this.parentPath,f.call(this,r)},t.skip=function(){this.shouldSkip=!0},t.skipKey=function(e){null==this.skipKeys&&(this.skipKeys={}),this.skipKeys[e]=!0},t.stop=function(){this._traverseFlags|=n.SHOULD_SKIP|n.SHOULD_STOP},t.visit=function(){var e,t;if(!this.node||this.isDenylisted()||null!=(e=(t=this.opts).shouldSkip)&&e.call(t,this))return!1;let i=this.context;return this.shouldSkip||o.call(this,"enter")?this.debug("Skip..."):(u(this,i),this.debug("Recursing into..."),this.shouldStop=(0,r.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),u(this,i),o.call(this,"exit")),this.shouldStop};var r=i(51597),n=i(32670),s=i(7946),a=i(58135);function o(e){let t=this.opts;if(this.debug(e),this.node&&l.call(this,t[e]))return!0;if(this.node){var i;return l.call(this,null==(i=t[this.node.type])?void 0:i[e])}return!1}function l(e){if(!e)return!1;for(let t of e){if(!t)continue;let e=this.node;if(!e)return!0;let i=t.call(this.state,this,this.state);if(i&&"object"==typeof i&&"function"==typeof i.then)throw Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(i)throw Error(`Unexpected return value from visitor method ${t}`);if(this.node!==e||this._traverseFlags>0)return!0}return!1}function p(){var e;let t=null!=(e=this.opts.denylist)?e:this.opts.blacklist;return null==t?void 0:t.includes(this.node.type)}function u(e,t){e.context!==t&&(e.context=t,e.state=t.state,e.opts=t.opts)}function c(){var e,t,i;let r;if(null!=(e=this.opts)&&e.noScope)return;let n=this.parentPath;for((("key"===this.key||"decorators"===this.listKey)&&n.isMethod()||"discriminant"===this.key&&n.isSwitchStatement())&&(n=n.parentPath);n&&!r;){if(null!=(i=n.opts)&&i.noScope)return;r=n.scope,n=n.parentPath}this.scope=this.getScope(r),null==(t=this.scope)||t.init()}function d(){this.parentPath&&(this.parent=this.parentPath.node)}function h(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(let e=0;e<this.container.length;e++)if(this.container[e]===this.node)return void f.call(this,e)}else for(let e of Object.keys(this.container))if(this.container[e]===this.node)return void f.call(this,e);this.key=null}}function m(){if(!this.parent||!this.inList)return;let e=this.parent[this.listKey];this.container!==e&&(this.container=e||null)}function f(e){var t;this.key=e,this.node=this.container[this.key],this.type=null==(t=this.node)?void 0:t.type}t.isBlacklisted=p},25460(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.arrowFunctionToExpression=function({allowInsertArrow:e=!0,allowInsertArrowWithRest:t=e,noNewArrows:i=!(e=>null==(e=arguments[0])?void 0:e.specCompliant)()}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");let r=this;if(!i){var n;r=null!=(n=r.ensureFunctionName(!1))?n:r}let{thisBinding:s,fnPath:a}=$(r,i,e,t);if(a.ensureBlock(),a.node.type="FunctionExpression",!i){let e=s?null:a.scope.generateUidIdentifier("arrowCheckId");return e&&a.parentPath.scope.push({id:e,init:E([])}),a.get("body").unshiftContainer("body",h(c(this.hub.addHelper("newArrowCheck"),[_(),e?m(e.name):m(s)]))),a.replaceWith(c(b(a.node,m("bind")),[e?m(e.name):_()])),a.get("callee.object")}return a},t.ensureBlock=function(){let e,t,i=this.get("body"),r=i.node;if(Array.isArray(i))throw Error("Can't convert array path to a block statement");if(!r)throw Error("Can't convert node without a body");if(i.isBlockStatement())return r;let n=[],s="body";i.isStatement()?(t="body",e=0,n.push(i.node)):(s+=".body.0",this.isFunction()?(e="argument",n.push(P(i.node))):(e="expression",n.push(h(i.node)))),this.node.body=u(n);let o=this.get(s);return a.setup.call(i,o,t?o.node[t]:o.node,t,e),this.node},t.ensureFunctionName=function(e){var t;let i;if(this.node.id)return this;let r=M(this.node,this.parent);if(null==r)return this;let{name:s}=r;if(!e&&/[\uD800-\uDFFF]/.test(s)||s.startsWith("get ")||s.startsWith("set "))return null;let a=m(s=N(s.replace(/[/ ]/g,"_")));K(a,r.originalNode);let o={needsRename:!1,name:s},{scope:l}=this,p=l.getOwnBinding(s);if(p?"param"===p.kind&&(o.needsRename=!0):(l.parent.hasBinding(s)||l.hasGlobal(s))&&this.traverse(Y,o),!o.needsRename)return this.node.id=a,l.getProgramParent().references[a.name]=!0,this;if(l.hasBinding(a.name)&&!l.hasGlobal(a.name))return l.rename(a.name),this.node.id=a,l.getProgramParent().references[a.name]=!0,this;if(!O(this.node))return null;let u=l.generateUidIdentifier(a.name),c=[];for(let e=0,r=-1===(i=(t=this.node).params.findIndex(e=>F(e)||L(e)))?t.params.length:i;e<r;e++)c.push(l.generateUidIdentifier("x"));let d=n.default.expression.ast`
15
+ (function (${u}) {
16
+ function ${a}(${c}) {
17
+ return ${B(u)}.apply(this, arguments);
18
+ }
19
+
20
+ ${B(a)}.toString = function () {
21
+ return ${B(u)}.toString();
22
+ }
23
+
24
+ return ${B(a)};
25
+ })(${I(this.node)})
26
+ `;return this.replaceWith(d)[0].get("arguments.0")},t.splitExportDeclaration=function(){if(!this.isExportDeclaration()||this.isExportAllDeclaration())throw Error("Only default and named export declarations can be split.");if(this.isExportNamedDeclaration()&&this.get("specifiers").length>0)throw Error("It doesn't make sense to split exported specifiers.");let e=this.get("declaration");if(this.isExportDefaultDeclaration()){let t=e.isFunctionDeclaration()||e.isClassDeclaration(),i=e.isFunctionExpression()||e.isClassExpression(),r=e.isScope()?e.scope.parent:e.scope,n=e.node.id,s=!1;n?i&&r.hasBinding(n.name)&&(s=!0,n=r.generateUidIdentifier(n.name)):(s=!0,n=r.generateUidIdentifier("default"),(t||i)&&(e.node.id=B(n)));let a=t?e.node:j("var",[R(B(n),e.node)]),o=U(null,[V(B(n),m("default"))]);return this.insertAfter(o),this.replaceWith(a),s&&r.registerDeclaration(this),this}if(this.get("specifiers").length>0)throw Error("It doesn't make sense to split exported specifiers.");let t=U(null,Object.keys(e.getOuterBindingIdentifiers()).map(e=>V(m(e),m(e))));return this.insertAfter(t),this.replaceWith(e.node),this},t.toComputedKey=function(){let e;if(this.isMemberExpression())e=this.node.property;else if(this.isProperty()||this.isMethod())e=this.node.key;else throw ReferenceError("todo");return!this.node.computed&&f(e)&&(e=C(e.name)),e},t.unwrapFunctionEnvironment=function(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");$(this)};var r=i(58135),n=i(50240),s=i(95957),a=i(44537);let{arrowFunctionExpression:o,assignmentExpression:l,binaryExpression:p,blockStatement:u,callExpression:c,conditionalExpression:d,expressionStatement:h,identifier:m,isIdentifier:f,jsxIdentifier:y,logicalExpression:g,LOGICAL_OPERATORS:T,memberExpression:b,metaProperty:x,numericLiteral:S,objectExpression:E,restElement:A,returnStatement:P,sequenceExpression:v,spreadElement:D,stringLiteral:C,super:w,thisExpression:_,toExpression:I,unaryExpression:k,toBindingIdentifierName:N,isFunction:O,isAssignmentPattern:F,isRestElement:L,getFunctionName:M,cloneNode:B,variableDeclaration:j,variableDeclarator:R,exportNamedDeclaration:U,exportSpecifier:V,inherits:K}=r;t.arrowFunctionToShadowed=function(){this.isArrowFunctionExpression()&&this.arrowFunctionToExpression()};let q=(0,s.environmentVisitor)({CallExpression(e,{allSuperCalls:t}){e.get("callee").isSuper()&&t.push(e)}});function $(e,t=!0,i=!0,r=!0){var n,s,a;let u,h,f,E,P,N,O,F=e.findParent(e=>e.isArrowFunctionExpression()?(null!=N||(N=e),!1):e.isFunction()||e.isProgram()||e.isClassProperty({static:!1})||e.isClassPrivateProperty({static:!1})),L=F.isClassMethod({kind:"constructor"});if(F.isClassProperty()||F.isClassPrivateProperty())if(N)F=N;else if(i)e.replaceWith(c(o([],I(e.node)),[])),e=(F=e.get("callee")).get("body");else throw e.buildCodeFrameError("Unable to transform arrow inside class property");let{thisPaths:M,argumentsPaths:B,newTargetPaths:j,superProps:R,superCalls:U}=(u=[],h=[],f=[],E=[],P=[],e.traverse(J,{thisPaths:u,argumentsPaths:h,newTargetPaths:f,superProps:E,superCalls:P}),{thisPaths:u,argumentsPaths:h,newTargetPaths:f,superProps:E,superCalls:P});if(L&&U.length>0){if(!i)throw U[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super()` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");if(!r)throw U[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");let e=[];F.traverse(q,{allSuperCalls:e});let t=z(n=F,"supercall",()=>{let e=n.scope.generateUidIdentifier("args");return o([A(e)],c(w(),[D(m(e.name))]))});e.forEach(e=>{let i=m(t);i.loc=e.node.callee.loc,e.get("callee").replaceWith(i)})}if(B.length>0){let e=z(F,"arguments",()=>F.scope.path.isProgram()?d(p("===",k("typeof",m("arguments")),C("undefined")),F.scope.buildUndefinedNode(),m("arguments")):m("arguments"));B.forEach(t=>{let i=m(e);i.loc=t.node.loc,t.replaceWith(i)})}if(j.length>0){let e=z(F,"newtarget",()=>x(m("new"),m("target")));j.forEach(t=>{let i=m(e);i.loc=t.node.loc,t.replaceWith(i)})}if(R.length>0){if(!i)throw R[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super.prop` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");R.reduce((e,t)=>e.concat(function(e){if(e.parentPath.isAssignmentExpression()&&"="!==e.parentPath.node.operator){let i=e.parentPath,r=i.node.operator.slice(0,-1),n=i.node.right,s=T.includes(r);if(e.node.computed){let a=e.scope.generateDeclaredUidIdentifier("tmp"),{object:o,property:p}=e.node;i.get("left").replaceWith(b(o,l("=",a,p),!0)),i.get("right").replaceWith(t(s?"=":r,b(o,m(a.name),!0),n))}else{let a=e.node.object,o=e.node.property;i.get("left").replaceWith(b(a,o)),i.get("right").replaceWith(t(s?"=":r,b(a,m(o.name)),n))}return s?i.replaceWith(g(r,i.node.left,i.node.right)):i.node.operator="=",[i.get("left"),i.get("right").get("left")]}if(e.parentPath.isUpdateExpression()){let t=e.parentPath,i=e.scope.generateDeclaredUidIdentifier("tmp"),r=e.node.computed?e.scope.generateDeclaredUidIdentifier("prop"):null,n=[l("=",i,b(e.node.object,r?l("=",r,e.node.property):e.node.property,e.node.computed)),l("=",b(e.node.object,r?m(r.name):e.node.property,e.node.computed),p(e.parentPath.node.operator[0],m(i.name),S(1)))];return e.parentPath.node.prefix||n.push(m(i.name)),t.replaceWith(v(n)),[t.get("expressions.0.right"),t.get("expressions.1.left")]}return[e];function t(e,t,i){return"="===e?l("=",t,i):p(e,t,i)}}(t)),[]).forEach(e=>{var t,i,r;let n=e.node.computed?"":e.get("property").node.name,s=e.parentPath,a=s.isAssignmentExpression({left:e.node}),p=s.isCallExpression({callee:e.node}),u=s.isTaggedTemplateExpression({tag:e.node}),d=(t=F,i=a,r=n,z(t,`superprop_${i?"set":"get"}:${r||""}`,()=>{let e,n=[];if(r)e=b(w(),m(r));else{let i=t.scope.generateUidIdentifier("prop");n.unshift(i),e=b(w(),m(i.name),!0)}if(i){let i=t.scope.generateUidIdentifier("value");n.push(i),e=l("=",e,m(i.name))}return o(n,e)})),h=[];if(e.node.computed&&h.push(e.get("property").node),a){let e=s.node.right;h.push(e)}let f=c(m(d),h);p?(s.unshiftContainer("arguments",_()),e.replaceWith(b(f,m("call"))),M.push(s.get("arguments.0"))):a?s.replaceWith(f):u?(e.replaceWith(c(b(f,m("bind"),!1),[_()])),M.push(e.get("arguments.0"))):e.replaceWith(f)})}return(M.length>0||!t)&&(s=F,a=L,O=z(s,"this",e=>{if(!a||!W(s))return _();s.traverse(X,{supers:new WeakSet,thisBinding:e})}),(t||L&&W(F))&&(M.forEach(e=>{let t=e.isJSX()?y(O):m(O);t.loc=e.node.loc,e.replaceWith(t)}),t||(O=null))),{thisBinding:O,fnPath:e}}function W(e){return e.isClassMethod()&&!!e.parentPath.parentPath.node.superClass}let X=(0,s.environmentVisitor)({CallExpression(e,{supers:t,thisBinding:i}){!e.get("callee").isSuper()||t.has(e.node)||(t.add(e.node),e.replaceWithMultiple([e.node,l("=",m(i),m("this"))]))}});function z(e,t,i){let r="binding:"+t,n=e.getData(r);if(!n){let s=e.scope.generateUidIdentifier(t);n=s.name,e.setData(r,n),e.scope.push({id:s,init:i(n)})}return n}let J=(0,s.environmentVisitor)({ThisExpression(e,{thisPaths:t}){t.push(e)},JSXIdentifier(e,{thisPaths:t}){"this"!==e.node.name||(e.parentPath.isJSXMemberExpression({object:e.node})||e.parentPath.isJSXOpeningElement({name:e.node}))&&t.push(e)},CallExpression(e,{superCalls:t}){e.get("callee").isSuper()&&t.push(e)},MemberExpression(e,{superProps:t}){e.get("object").isSuper()&&t.push(e)},Identifier(e,{argumentsPaths:t}){if(!e.isReferencedIdentifier({name:"arguments"}))return;let i=e.scope;do{if(i.hasOwnBinding("arguments"))return void i.rename("arguments");if(i.path.isFunction()&&!i.path.isArrowFunctionExpression())break}while(i=i.parent);t.push(e)},MetaProperty(e,{newTargetPaths:t}){!e.get("meta").isIdentifier({name:"new"})||e.get("property").isIdentifier({name:"target"})&&t.push(e)}}),Y={"ReferencedIdentifier|BindingIdentifier"(e,t){e.node.name===t.name&&(t.needsRename=!0,e.stop())},Scope(e,t){e.scope.hasOwnBinding(t.name)&&e.skip()}}},80366(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.evaluate=function(){let e={confident:!0,deoptPath:null,seen:new Map},t=l(this,e);return e.confident||(t=void 0),{confident:e.confident,deopt:e.deoptPath,value:t}},t.evaluateTruthy=function(){let e=this.evaluate();if(e.confident)return!!e.value};let i=["Number","String","Math"],r=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null],n=["random"];function s(e){return i.includes(e)}function a(e,t){t.confident&&(t.deoptPath=e,t.confident=!1)}let o=new Map([["undefined",void 0],["Infinity",1/0],["NaN",NaN]]);function l(e,t){let{node:i}=e,{seen:u}=t;if(u.has(i)){let r=u.get(i);return r.resolved?r.value:void a(e,t)}{let c={resolved:!1};u.set(i,c);let d=function(e,t){if(t.confident){var i,u,c;if(e.isSequenceExpression()){let i=e.get("expressions");return l(i[i.length-1],t)}if(e.isStringLiteral()||e.isNumericLiteral()||e.isBooleanLiteral())return e.node.value;if(e.isNullLiteral())return null;if(e.isTemplateLiteral())return p(e,e.node.quasis,t);if(e.isTaggedTemplateExpression()&&e.get("tag").isMemberExpression()){let i=e.get("tag.object"),{node:{name:r}}=i,n=e.get("tag.property");if(i.isIdentifier()&&"String"===r&&!e.scope.getBinding(r)&&n.isIdentifier()&&"raw"===n.node.name)return p(e,e.node.quasi.quasis,t,!0)}if(e.isConditionalExpression()){let i=l(e.get("test"),t);return t.confident?i?l(e.get("consequent"),t):l(e.get("alternate"),t):void 0}if(e.isExpressionWrapper())return l(e.get("expression"),t);if(e.isMemberExpression()&&!e.parentPath.isCallExpression({callee:e.node})){let i=e.get("property"),r=e.get("object");if(r.isLiteral()){let n=r.node.value,s=typeof n,a=null;if(e.node.computed){if(a=l(i,t),!t.confident)return}else i.isIdentifier()&&(a=i.node.name);if(("number"===s||"string"===s)&&null!=a&&("number"==typeof a||"string"==typeof a))return n[a]}}if(e.isReferencedIdentifier()){let r=e.scope.getBinding(e.node.name);if(r){if(r.constantViolations.length>0||e.node.start<r.path.node.end)return void a(r.path,t);let n=r.path.scope;if("var"===r.kind&&n!==r.scope){let s=!n.path.parentPath.isBlockStatement();for(let o=n.parent;o;o=o.parent){if(o===e.scope){if(s)return void a(r.path,t);break}null!=(i=o.path.parentPath)&&i.isBlockStatement()&&(s=!0)}}if(r.hasValue)return r.value}let n=e.node.name;if(o.has(n))return r?void a(r.path,t):o.get(n);let s=e.resolve();if(s===e)return void a(e,t);let p=l(s,t);return"object"==typeof p&&null!==p&&r.references>1?void a(s,t):p}if(e.isUnaryExpression({prefix:!0})){if("void"===e.node.operator)return;let i=e.get("argument");if("typeof"===e.node.operator&&(i.isFunction()||i.isClass()))return"function";let r=l(i,t);if(!t.confident)return;switch(e.node.operator){case"!":return!r;case"+":return+r;case"-":return-r;case"~":return~r;case"typeof":return typeof r}}if(e.isArrayExpression()){let i=[];for(let r of e.get("elements")){let e=r.evaluate();if(!e.confident)return void a(e.deopt,t);i.push(e.value)}return i}if(e.isObjectExpression()){let i={};for(let r of e.get("properties")){let e;if(r.isObjectMethod()||r.isSpreadElement())return void a(r,t);let n=r.get("key");if(r.node.computed){if(!(e=n.evaluate()).confident)return void a(e.deopt,t);e=e.value}else e=n.isIdentifier()?n.node.name:n.node.value;let s=r.get("value").evaluate();if(!s.confident)return void a(s.deopt,t);s=s.value,i[e]=s}return i}if(e.isLogicalExpression()){let i=t.confident,r=l(e.get("left"),t),n=t.confident;t.confident=i;let s=l(e.get("right"),t),a=t.confident;switch(e.node.operator){case"||":if(t.confident=n&&(!!r||a),!t.confident)return;return r||s;case"&&":if(t.confident=n&&(!r||a),!t.confident)return;return r&&s;case"??":if(t.confident=n&&(null!=r||a),!t.confident)return;return null!=r?r:s}}if(e.isBinaryExpression()){let i=l(e.get("left"),t);if(!t.confident)return;let r=l(e.get("right"),t);if(!t.confident)return;switch(e.node.operator){case"-":return i-r;case"+":return i+r;case"/":return i/r;case"*":return i*r;case"%":return i%r;case"**":return Math.pow(i,r);case"<":return i<r;case">":return i>r;case"<=":return i<=r;case">=":return i>=r;case"==":return i==r;case"!=":return i!=r;case"===":return i===r;case"!==":return i!==r;case"|":return i|r;case"&":return i&r;case"^":return i^r;case"<<":return i<<r;case">>":return i>>r;case">>>":return i>>>r}}if(e.isCallExpression()){let i,a,o=e.get("callee");if(o.isIdentifier()&&!e.scope.getBinding(o.node.name)&&(s(o.node.name)||(u=o.node.name,r.includes(u)))&&(a=global[o.node.name]),o.isMemberExpression()){let e=o.get("object"),t=o.get("property");if(e.isIdentifier()&&t.isIdentifier()&&s(e.node.name)&&(c=t.node.name,!n.includes(c))){i=global[e.node.name];let r=t.node.name;hasOwnProperty.call(i,r)&&(a=i[r])}if(e.isLiteral()&&t.isIdentifier()){let r=typeof e.node.value;("string"===r||"number"===r)&&(a=(i=e.node.value)[t.node.name])}}if(a){let r=e.get("arguments").map(e=>l(e,t));if(!t.confident)return;return a.apply(i,r)}}a(e,t)}}(e,t);return t.confident&&(c.resolved=!0,c.value=d),d}}function p(e,t,i,r=!1){let n="",s=0,a=e.isTemplateLiteral()?e.get("expressions"):e.get("quasi.expressions");for(let e of t){if(!i.confident)break;n+=r?e.value.raw:e.value.cooked;let t=a[s++];t&&(n+=String(l(t,i)))}if(i.confident)return n}},53476(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t._getKey=h,t._getPattern=m,t.get=function(e,t=!0){!0===t&&(t=this.context);let i=e.split(".");return 1===i.length?h.call(this,e,t):m.call(this,i,t)},t.getAllNextSiblings=function(){let e=this.key,t=this.getSibling(++e),i=[];for(;t.node;)i.push(t),t=this.getSibling(++e);return i},t.getAllPrevSiblings=function(){let e=this.key,t=this.getSibling(--e),i=[];for(;t.node;)i.push(t),t=this.getSibling(--e);return i},t.getAssignmentIdentifiers=function(){return n(this.node)},t.getBindingIdentifierPaths=function(e=!1,t=!1){let i=[this],r=Object.create(null);for(;i.length;){let n=i.shift();if(!n||!n.node)continue;let a=s.keys[n.node.type];if(n.isIdentifier()){e?(r[n.node.name]=r[n.node.name]||[]).push(n):r[n.node.name]=n;continue}if(n.isExportDeclaration()){let e=n.get("declaration");e.isDeclaration()&&i.push(e);continue}if(t){if(n.isFunctionDeclaration()){i.push(n.get("id"));continue}if(n.isFunctionExpression())continue}if(a)for(let e=0;e<a.length;e++){let t=a[e],r=n.get(t);Array.isArray(r)?i.push(...r):r.node&&i.push(r)}}return r},t.getBindingIdentifiers=function(e){return s(this.node,e)},t.getCompletionRecords=function(e=!1){return d(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:e}).map(e=>e.path)},t.getNextSibling=function(){return this.getSibling(this.key+1)},t.getOpposite=function(){return"left"===this.key?this.getSibling("right"):"right"===this.key?this.getSibling("left"):null},t.getOuterBindingIdentifierPaths=function(e=!1){return this.getBindingIdentifierPaths(e,!0)},t.getOuterBindingIdentifiers=function(e){return a(this.node,e)},t.getPrevSibling=function(){return this.getSibling(this.key-1)},t.getSibling=function(e){return r.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e}).setContext(this.context)};var r=i(32670);let{getAssignmentIdentifiers:n,getBindingIdentifiers:s,getOuterBindingIdentifiers:a,numericLiteral:o,unaryExpression:l}=i(58135);function p(e,t,i){return e&&t.push(...d(e,i)),t}function u(e,t){e.forEach(e=>{e.path.isBreakStatement({label:null})&&(t?e.path.replaceWith(l("void",o(0))):e.path.remove())})}function c(e,t){let i=[];if(t.canHaveBreak){let r=[];for(let n=0;n<e.length;n++){let s=e[n],a=Object.assign({},t,{inCaseClause:!1});s.isBlockStatement()&&(t.inCaseClause||t.shouldPopulateBreak)?a.shouldPopulateBreak=!0:a.shouldPopulateBreak=!1;let o=d(s,a);if(o.length>0&&o.every(e=>1===e.type)){r.length>0&&o.every(e=>e.path.isBreakStatement({label:null}))?(r.forEach(e=>{e.type=1}),i.push(...r),r.some(e=>e.path.isDeclaration())&&(i.push(...o),t.shouldPreserveBreak||u(o,!0)),t.shouldPreserveBreak||u(o,!1)):(i.push(...o),t.shouldPopulateBreak||t.shouldPreserveBreak||u(o,!0));break}if(n===e.length-1)i.push(...o);else{r=[];for(let e=0;e<o.length;e++){let t=o[e];1===t.type&&i.push(t),0===t.type&&r.push(t)}}}}else if(e.length)for(let r=e.length-1;r>=0;r--){let n=d(e[r],t);if(n.length>1||1===n.length&&!n[0].path.isVariableDeclaration()&&!n[0].path.isEmptyStatement()){i.push(...n);break}}return i}function d(e,t){let i=[];if(e.isIfStatement())i=p(e.get("consequent"),i,t),i=p(e.get("alternate"),i,t);else if(e.isDoExpression()||e.isFor()||e.isWhile()||e.isLabeledStatement())return p(e.get("body"),i,t);else if(e.isProgram()||e.isBlockStatement())return c(e.get("body"),t);else if(e.isFunction())return d(e.get("body"),t);else if(e.isTryStatement())i=p(e.get("block"),i,t),i=p(e.get("handler"),i,t);else{if(e.isCatchClause())return p(e.get("body"),i,t);if(e.isSwitchStatement())return function(e,t,i){let r=[];for(let n=0;n<e.length;n++){let s=d(e[n],i),a=[],o=[];for(let e of s)0===e.type&&a.push(e),1===e.type&&o.push(e);a.length&&(r=a),t.push(...o)}return t.push(...r),t}(e.get("cases"),i,t);if(e.isSwitchCase())return c(e.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0,shouldPreserveBreak:t.shouldPreserveBreak});e.isBreakStatement()?i.push({type:1,path:e}):i.push({type:0,path:e})}return i}function h(e,t){let i=this.node,n=i[e];return Array.isArray(n)?n.map((s,a)=>r.default.get({listKey:e,parentPath:this,parent:i,container:n,key:a}).setContext(t)):r.default.get({parentPath:this,parent:i,container:i,key:e}).setContext(t)}function m(e,t){let i=this;for(let r of e)i="."===r?i.parentPath:Array.isArray(i)?i[r]:i.get(r,t);return i}},32670(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SHOULD_STOP=t.SHOULD_SKIP=t.REMOVED=void 0;var r=i(44057),n=i(3680),s=i(80004),a=i(54683),o=i(58135),l=i(56266),p=i(2235),u=i(90157),c=i(83810),d=i(94834),h=i(80366),m=i(25460),f=i(74145),y=i(44537),g=i(7946),T=i(11064),b=i(53476),x=i(68418),S=i(37494);let{validate:E}=o,A=n("babel");t.REMOVED=1,t.SHOULD_STOP=2,t.SHOULD_SKIP=4;let P=t.default=class e{constructor(e,t){this.contexts=[],this.state=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=t,this.hub=e,this.data=null,this.context=null,this.scope=null}get removed(){return(1&this._traverseFlags)>0}set removed(e){e?this._traverseFlags|=1:this._traverseFlags&=-2}get shouldStop(){return(2&this._traverseFlags)>0}set shouldStop(e){e?this._traverseFlags|=2:this._traverseFlags&=-3}get shouldSkip(){return(4&this._traverseFlags)>0}set shouldSkip(e){e?this._traverseFlags|=4:this._traverseFlags&=-5}static get({hub:t,parentPath:i,parent:r,container:n,listKey:s,key:a}){if(!t&&i&&(t=i.hub),!r)throw Error("To get a node path the parent needs to exist");let o=n[a],p=l.getOrCreateCachedPaths(r,i),u=p.get(o);return!u&&(u=new e(t,r),o&&p.set(o,u)),y.setup.call(u,i,n,s,a),u}getScope(e){return this.isScope()?new a.default(this):e}setData(e,t){return null==this.data&&(this.data=Object.create(null)),this.data[e]=t}getData(e,t){null==this.data&&(this.data=Object.create(null));let i=this.data[e];return void 0===i&&void 0!==t&&(i=this.data[e]=t),i}hasNode(){return null!=this.node}buildCodeFrameError(e,t=SyntaxError){return this.hub.buildError(this.node,e,t)}traverse(e,t){(0,s.default)(this.node,e,this.scope,t,this)}set(e,t){E(this.node,e,t),this.node[e]=t}getPathLocation(){let e=[],t=this;do{let i=t.key;t.inList&&(i=`${t.listKey}[${i}]`),e.unshift(i)}while(t=t.parentPath);return e.join(".")}debug(e){A.enabled&&A(`${this.getPathLocation()} ${this.type}: ${e}`)}toString(){return(0,p.default)(this.node).code}get inList(){return!!this.listKey}set inList(e){e||(this.listKey=null)}get parentKey(){return this.listKey||this.key}},v={findParent:u.findParent,find:u.find,getFunctionParent:u.getFunctionParent,getStatementParent:u.getStatementParent,getEarliestCommonAncestorFrom:u.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:u.getDeepestCommonAncestorFrom,getAncestry:u.getAncestry,isAncestor:u.isAncestor,isDescendant:u.isDescendant,inType:u.inType,getTypeAnnotation:c.getTypeAnnotation,isBaseType:c.isBaseType,couldBeBaseType:c.couldBeBaseType,baseTypeStrictlyMatches:c.baseTypeStrictlyMatches,isGenericType:c.isGenericType,replaceWithMultiple:d.replaceWithMultiple,replaceWithSourceString:d.replaceWithSourceString,replaceWith:d.replaceWith,replaceExpressionWithStatements:d.replaceExpressionWithStatements,replaceInline:d.replaceInline,evaluateTruthy:h.evaluateTruthy,evaluate:h.evaluate,toComputedKey:m.toComputedKey,ensureBlock:m.ensureBlock,unwrapFunctionEnvironment:m.unwrapFunctionEnvironment,arrowFunctionToExpression:m.arrowFunctionToExpression,splitExportDeclaration:m.splitExportDeclaration,ensureFunctionName:m.ensureFunctionName,matchesPattern:f.matchesPattern,isStatic:f.isStatic,isNodeType:f.isNodeType,canHaveVariableDeclarationOrExpression:f.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:f.canSwapBetweenExpressionAndStatement,isCompletionRecord:f.isCompletionRecord,isStatementOrBlock:f.isStatementOrBlock,referencesImport:f.referencesImport,getSource:f.getSource,willIMaybeExecuteBefore:f.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:f._guessExecutionStatusRelativeTo,resolve:f.resolve,isConstantExpression:f.isConstantExpression,isInStrictMode:f.isInStrictMode,isDenylisted:y.isDenylisted,visit:y.visit,skip:y.skip,skipKey:y.skipKey,stop:y.stop,setContext:y.setContext,requeue:y.requeue,requeueComputedKeyAndDecorators:y.requeueComputedKeyAndDecorators,remove:g.remove,insertBefore:T.insertBefore,insertAfter:T.insertAfter,unshiftContainer:T.unshiftContainer,pushContainer:T.pushContainer,getOpposite:b.getOpposite,getCompletionRecords:b.getCompletionRecords,getSibling:b.getSibling,getPrevSibling:b.getPrevSibling,getNextSibling:b.getNextSibling,getAllNextSiblings:b.getAllNextSiblings,getAllPrevSiblings:b.getAllPrevSiblings,get:b.get,getAssignmentIdentifiers:b.getAssignmentIdentifiers,getBindingIdentifiers:b.getBindingIdentifiers,getOuterBindingIdentifiers:b.getOuterBindingIdentifiers,getBindingIdentifierPaths:b.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:b.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:x.shareCommentsWithSiblings,addComment:x.addComment,addComments:x.addComments};for(let e of(Object.assign(P.prototype,v),P.prototype.arrowFunctionToShadowed=m[String("arrowFunctionToShadowed")],Object.assign(P.prototype,{has:f[String("has")],is:f[String("is")],isnt:f[String("isnt")],equals:f[String("equals")],hoist:T[String("hoist")],updateSiblingKeys:T.updateSiblingKeys,call:y.call,isBlacklisted:y[String("isBlacklisted")],setScope:y.setScope,resync:y.resync,popContext:y.popContext,pushContext:y.pushContext,setup:y.setup,setKey:y.setKey}),P.prototype._guessExecutionStatusRelativeToDifferentFunctions=f._guessExecutionStatusRelativeTo,P.prototype._guessExecutionStatusRelativeToDifferentFunctions=f._guessExecutionStatusRelativeTo,Object.assign(P.prototype,{_getTypeAnnotation:c._getTypeAnnotation,_replaceWith:d._replaceWith,_resolve:f._resolve,_call:y._call,_resyncParent:y._resyncParent,_resyncKey:y._resyncKey,_resyncList:y._resyncList,_resyncRemoved:y._resyncRemoved,_getQueueContexts:y._getQueueContexts,_removeFromScope:g._removeFromScope,_callRemovalHooks:g._callRemovalHooks,_remove:g._remove,_markRemoved:g._markRemoved,_assertUnremoved:g._assertUnremoved,_containerInsert:T._containerInsert,_containerInsertBefore:T._containerInsertBefore,_containerInsertAfter:T._containerInsertAfter,_verifyNodeList:T._verifyNodeList,_getKey:b._getKey,_getPattern:b._getPattern}),o.TYPES)){let t=`is${e}`,i=o[t];P.prototype[t]=function(e){return i(this.node,e)},P.prototype[`assert${e}`]=function(t){if(!i(this.node,t))throw TypeError(`Expected node path of type ${e}`)}}for(let e of(Object.assign(P.prototype,S),Object.keys(r)))"_"!==e[0]&&(o.TYPES.includes(e)||o.TYPES.push(e))},83810(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t._getTypeAnnotation=v,t.baseTypeStrictlyMatches=function(e){let t=this.getTypeAnnotation(),i=e.getTypeAnnotation();return!!(!s(t)&&p(t))&&i.type===t.type},t.couldBeBaseType=function(e){let t=this.getTypeAnnotation();if(s(t))return!0;if(!x(t))return D(e,t,!0);for(let i of t.types)if(s(i)||D(e,i,!0))return!0;return!1},t.getTypeAnnotation=function(){let e=this.getData("typeAnnotation");return null!=e||((b(e=v.call(this)||n())||y(e))&&(e=e.typeAnnotation),this.setData("typeAnnotation",e)),e},t.isBaseType=function(e,t){return D(e,this.getTypeAnnotation(),t)},t.isGenericType=function(e){let t=this.getTypeAnnotation();return!!("Array"===e&&(f(t)||a(t)||T(t)))||u(t)&&c(t.id,{name:e})||g(t)&&c(t.typeName,{name:e})};var r=i(19724);let{anyTypeAnnotation:n,isAnyTypeAnnotation:s,isArrayTypeAnnotation:a,isBooleanTypeAnnotation:o,isEmptyTypeAnnotation:l,isFlowBaseAnnotation:p,isGenericTypeAnnotation:u,isIdentifier:c,isMixedTypeAnnotation:d,isNumberTypeAnnotation:h,isStringTypeAnnotation:m,isTSArrayType:f,isTSTypeAnnotation:y,isTSTypeReference:g,isTupleTypeAnnotation:T,isTypeAnnotation:b,isUnionTypeAnnotation:x,isVoidTypeAnnotation:S,stringTypeAnnotation:E,voidTypeAnnotation:A}=i(58135),P=new WeakSet;function v(){let e=this.node;if(!e)if(!("init"===this.key&&this.parentPath.isVariableDeclarator()))return;else{let e=this.parentPath.parentPath,t=e.parentPath;return"left"===e.key&&t.isForInStatement()?E():"left"===e.key&&t.isForOfStatement()?n():A()}if(e.typeAnnotation)return e.typeAnnotation;if(!P.has(e)){P.add(e);try{var t;let i=r[e.type];if(i)return i.call(this,e);if(i=r[this.parentPath.type],null!=(t=i)&&t.validParent)return this.parentPath.getTypeAnnotation()}finally{P.delete(e)}}}function D(e,t,i){if("string"===e)return m(t);if("number"===e)return h(t);if("boolean"===e)return o(t);if("any"===e)return s(t);if("mixed"===e)return d(t);else if("empty"===e)return l(t);else if("void"===e)return S(t);else if(i)return!1;else throw Error(`Unknown base type ${e}`)}},61593(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!this.isReferenced())return;let t=this.scope.getBinding(e.name);if(t)if(t.identifier.typeAnnotation)return t.identifier.typeAnnotation;else return function(e,t,i){let r=[],l=[],u=p(e,t,l),c=function e(t,i,r){let l=function(e,t,i){let r;for(;r=t.parentPath;){if(r.isIfStatement()||r.isConditionalExpression()){if("test"===t.key)return;return r}if(r.isFunction()&&(null==i||r.parentPath.scope.getBinding(i)!==e))return;t=r}}(t,i,r);if(!l)return;let p=[l.get("test")],u=[];for(let e=0;e<p.length;e++){let t=p[e];if(t.isLogicalExpression())"&&"===t.node.operator&&(p.push(t.get("left")),p.push(t.get("right")));else if(t.isBinaryExpression()){let e=function(e,t){let i,r,n,l=t.node.operator,p=t.get("right").resolve(),u=t.get("left").resolve();if(u.isIdentifier({name:e})?i=p:p.isIdentifier({name:e})&&(i=u),i)return"==="===l?i.getTypeAnnotation():s.includes(l)?o():void 0;if("==="!==l&&"=="!==l||(u.isUnaryExpression({operator:"typeof"})?(r=u,n=p):p.isUnaryExpression({operator:"typeof"})&&(r=p,n=u),!r||!r.get("argument").isIdentifier({name:e})||!(n=n.resolve()).isLiteral()))return;let c=n.node.value;if("string"==typeof c)return a(c)}(r,t);e&&u.push(e)}}return u.length?{typeAnnotation:(0,n.createUnionType)(u),ifStatement:l}:e(t,l,r)}(e,t,i);if(c){let t=p(e,c.ifStatement);u=u.filter(e=>!t.includes(e)),r.push(c.typeAnnotation)}if(u.length)for(let e of(u.push(...l),u))r.push(e.getTypeAnnotation());if(r.length)return(0,n.createUnionType)(r)}(t,this,e.name);return"undefined"===e.name?l():"NaN"===e.name||"Infinity"===e.name?o():void e.name};var r=i(58135),n=i(58252);let{BOOLEAN_NUMBER_BINARY_OPERATORS:s,createTypeAnnotationBasedOnTypeof:a,numberTypeAnnotation:o,voidTypeAnnotation:l}=r;function p(e,t,i){let r=e.constantViolations.slice();return r.unshift(e.path),r.filter(e=>{let r=(e=e.resolve())._guessExecutionStatusRelativeTo(t);return i&&"unknown"===r&&i.push(e),"before"===r})}},19724(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayExpression=D,t.AssignmentExpression=function(){return this.get("right").getTypeAnnotation()},t.BinaryExpression=function(e){let t=e.operator;if(l.includes(t))return T();if(a.includes(t))return h();if("+"===t){let e=this.get("right"),t=this.get("left");return t.isBaseType("number")&&e.isBaseType("number")?T():t.isBaseType("string")||e.isBaseType("string")?b():S([b(),T()])}},t.BooleanLiteral=function(){return h()},t.CallExpression=function(){let{callee:e}=this.node;return _(e)?d(b()):w(e)||I(e)||A(e,{name:"Array"})?d(c()):k(e)?d(x([b(),c()])):N(this.get("callee"))},t.ConditionalExpression=function(){let e=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return(0,s.createUnionType)(e)},t.ClassDeclaration=t.ClassExpression=t.FunctionDeclaration=t.ArrowFunctionExpression=t.FunctionExpression=function(){return f(y("Function"))},Object.defineProperty(t,"Identifier",{enumerable:!0,get:function(){return n.default}}),t.LogicalExpression=function(){let e=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return(0,s.createUnionType)(e)},t.NewExpression=function(e){if("Identifier"===e.callee.type)return f(e.callee)},t.NullLiteral=function(){return g()},t.NumericLiteral=function(){return T()},t.ObjectExpression=function(){return f(y("Object"))},t.ParenthesizedExpression=function(){return this.get("expression").getTypeAnnotation()},t.RegExpLiteral=function(){return f(y("RegExp"))},t.RestElement=C,t.SequenceExpression=function(){return this.get("expressions").pop().getTypeAnnotation()},t.StringLiteral=function(){return b()},t.TSAsExpression=v,t.TSNonNullExpression=function(){return this.get("expression").getTypeAnnotation()},t.TaggedTemplateExpression=function(){return N(this.get("tag"))},t.TemplateLiteral=function(){return b()},t.TypeCastExpression=P,t.UnaryExpression=function(e){let t=e.operator;return"void"===t?E():p.includes(t)?T():u.includes(t)?b():o.includes(t)?h():void 0},t.UpdateExpression=function(e){let t=e.operator;if("++"===t||"--"===t)return T()},t.VariableDeclarator=function(){if(this.get("id").isIdentifier())return this.get("init").getTypeAnnotation()};var r=i(58135),n=i(61593),s=i(58252);let{BOOLEAN_BINARY_OPERATORS:a,BOOLEAN_UNARY_OPERATORS:o,NUMBER_BINARY_OPERATORS:l,NUMBER_UNARY_OPERATORS:p,STRING_UNARY_OPERATORS:u,anyTypeAnnotation:c,arrayTypeAnnotation:d,booleanTypeAnnotation:h,buildMatchMemberExpression:m,genericTypeAnnotation:f,identifier:y,nullLiteralTypeAnnotation:g,numberTypeAnnotation:T,stringTypeAnnotation:b,tupleTypeAnnotation:x,unionTypeAnnotation:S,voidTypeAnnotation:E,isIdentifier:A}=r;function P(e){return e.typeAnnotation}function v(e){return e.typeAnnotation}function D(){return f(y("Array"))}function C(){return D()}P.validParent=!0,v.validParent=!0,C.validParent=!0;let w=m("Array.from"),_=m("Object.keys"),I=m("Object.values"),k=m("Object.entries");function N(e){if((e=e.resolve()).isFunction()){let{node:t}=e;if(t.async)if(t.generator)return f(y("AsyncIterator"));else return f(y("Promise"));if(t.generator)return f(y("Iterator"));if(e.node.returnType)return e.node.returnType}}},58252(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.createUnionType=function(e){return e.every(e=>a(e))?r?r(e):s(e):e.every(e=>o(e))&&n?n(e):void 0};let{createFlowUnionType:r,createTSUnionType:n,createUnionTypeAnnotation:s,isFlowType:a,isTSType:o}=i(58135)},74145(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t._guessExecutionStatusRelativeTo=function(e){return function e(t,i,r){let s,a={this:d(t),target:d(i)};if(a.target.node!==a.this.node)return function(t,i,r){let n,s=r.get(t.node);if(s){if(n=s.get(i.node))return n===m?"unknown":n}else r.set(t.node,s=new Map);s.set(i.node,m);let a=function(t,i,r){let n;if(!i.isFunctionDeclaration())return"before"===e(t,i,r)?"before":"unknown";if(i.parentPath.isExportDeclaration())return"unknown";let s=i.scope.getBinding(i.node.id.name);if(!s.references)return"before";for(let a of s.referencePaths){if(a.find(e=>e.node===i.node))continue;if("callee"!==a.key||!a.parentPath.isCallExpression())return"unknown";let s=e(t,a,r);if(n&&n!==s)return"unknown";n=s}return n}(t,i,r);return s.set(i.node,a),a}(t,a.target,r);let o={target:i.getAncestry(),this:t.getAncestry()};if(o.target.includes(t))return"after";if(o.this.includes(i))return"before";let l={target:0,this:0};for(;!s&&l.this<o.this.length;){let e=o.this[l.this];l.target=o.target.indexOf(e),l.target>=0?s=e:l.this++}if(!s)throw Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(h(o.this,l.this-1)||h(o.target,l.target-1))return"unknown";let p={this:o.this[l.this-1],target:o.target[l.target-1]};if(p.target.listKey&&p.this.listKey&&p.target.container===p.this.container)return p.target.key>p.this.key?"before":"after";let u=n[s.type],c={this:u.indexOf(p.this.parentKey),target:u.indexOf(p.target.parentKey)};return c.target>c.this?"before":"after"}(this,e,new Map)},t._resolve=f,t.canHaveVariableDeclarationOrExpression=function(){return("init"===this.key||"left"===this.key)&&this.parentPath.isFor()},t.canSwapBetweenExpressionAndStatement=function(e){return"body"===this.key&&!!this.parentPath.isArrowFunctionExpression()&&(this.isExpression()?s(e):!!this.isBlockStatement()&&a(e))},t.getSource=function(){let e=this.node;if(e.end){let t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""},t.isCompletionRecord=function(e){let t=this,i=!0;do{let{type:r,container:n}=t;if(!i&&(t.isFunction()||"StaticBlock"===r))return!!e;if(i=!1,Array.isArray(n)&&t.key!==n.length-1)return!1}while((t=t.parentPath)&&!t.isProgram()&&!t.isDoExpression());return!0},t.isConstantExpression=function(){if(this.isIdentifier()){let e=this.scope.getBinding(this.node.name);return!!e&&e.constant}if(this.isLiteral())return!this.isRegExpLiteral()&&(!this.isTemplateLiteral()||this.get("expressions").every(e=>e.isConstantExpression()));if(this.isUnaryExpression())return"void"===this.node.operator&&this.get("argument").isConstantExpression();if(this.isBinaryExpression()){let{operator:e}=this.node;return"in"!==e&&"instanceof"!==e&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}return this.isMemberExpression()?!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0}):!!this.isCallExpression()&&1===this.node.arguments.length&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral()},t.isInStrictMode=function(){return!!(this.isProgram()?this:this.parentPath).find(e=>{let t;if(e.isProgram({sourceType:"module"})||e.isClass())return!0;if(e.isArrowFunctionExpression()&&!e.get("body").isBlockStatement())return!1;if(e.isFunction())t=e.node.body;else{if(!e.isProgram())return!1;t=e.node}for(let e of t.directives)if("use strict"===e.value.value)return!0;return!1})},t.isNodeType=function(e){return u(this.type,e)},t.isStatementOrBlock=function(){return!(this.parentPath.isLabeledStatement()||s(this.container))&&r.includes(this.key)},t.isStatic=function(){return this.scope.isStatic(this.node)},t.matchesPattern=function(e,t){return c(this.node,e,t)},t.referencesImport=function(e,t){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===t||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?p(this.node.property,{value:t}):this.node.property.name===t)){let t=this.get("object");return t.isReferencedIdentifier()&&t.referencesImport(e,"*")}return!1}let i=this.scope.getBinding(this.node.name);if(!i||"module"!==i.kind)return!1;let r=i.path,n=r.parentPath;return!!n.isImportDeclaration()&&n.node.source.value===e&&(!t||!!(r.isImportDefaultSpecifier()&&"default"===t||r.isImportNamespaceSpecifier()&&"*"===t||r.isImportSpecifier()&&o(r.node.imported,{name:t})))},t.resolve=function(e,t){return f.call(this,e,t)||this},t.willIMaybeExecuteBefore=function(e){return"after"!==this._guessExecutionStatusRelativeTo(e)};let{STATEMENT_OR_BLOCK_KEYS:r,VISITOR_KEYS:n,isBlockStatement:s,isExpression:a,isIdentifier:o,isLiteral:l,isStringLiteral:p,isType:u,matchesPattern:c}=i(58135);function d(e){return e.isProgram()?e:(e.parentPath.scope.getFunctionParent()||e.parentPath.scope.getProgramParent()).path}function h(e,t){for(let i=0;i<t;i++){let t=e[i];if(function(e,t){switch(e){case"LogicalExpression":case"AssignmentPattern":return"right"===t;case"ConditionalExpression":case"IfStatement":return"consequent"===t||"alternate"===t;case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return"body"===t;case"ForStatement":return"body"===t||"update"===t;case"SwitchStatement":return"cases"===t;case"TryStatement":return"handler"===t;case"OptionalMemberExpression":return"property"===t;case"OptionalCallExpression":return"arguments"===t;default:return!1}}(t.parent.type,t.parentKey))return!0}return!1}t.has=function(e){var t;let i=null==(t=this.node)?void 0:t[e];return i&&Array.isArray(i)?!!i.length:!!i},t.is=t.has,t.isnt=function(e){return!this.has(e)},t.equals=function(e,t){return this.node[e]===t};let m=Symbol();function f(e,t){var i;if(!(null!=(i=t)&&i.includes(this))){if((t=t||[]).push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(e,t)}else if(this.isReferencedIdentifier()){let i=this.scope.getBinding(this.node.name);if(!i||!i.constant||"module"===i.kind)return;if(i.path!==this){let r=i.path.resolve(e,t);if(this.find(e=>e.node===r.node))return;return r}}else if(this.isTypeCastExpression())return this.get("expression").resolve(e,t);else if(e&&this.isMemberExpression()){let i=this.toComputedKey();if(!l(i))return;let r=i.value,n=this.get("object").resolve(e,t);if(n.isObjectExpression())for(let i of n.get("properties")){if(!i.isProperty())continue;let n=i.get("key"),s=i.isnt("computed")&&n.isIdentifier({name:r});if(s=s||n.isLiteral({value:r}))return i.get("value").resolve(e,t)}else if(n.isArrayExpression()&&!isNaN(+r)){let i=n.get("elements")[r];if(i)return i.resolve(e,t)}}}}},82738(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(58135);let{react:n}=r,{cloneNode:s,jsxExpressionContainer:a,variableDeclaration:o,variableDeclarator:l}=r,p={ReferencedIdentifier(e,t){if(e.isJSXIdentifier()&&n.isCompatTag(e.node.name)&&!e.parentPath.isJSXMemberExpression())return;if("this"===e.node.name){let i=e.scope;do if(i.path.isFunction()&&!i.path.isArrowFunctionExpression())break;while(i=i.parent);i&&t.breakOnScopePaths.push(i.path)}let i=e.scope.getBinding(e.node.name);if(i){for(let r of i.constantViolations)if(r.scope!==i.path.scope){t.mutableBinding=!0,e.stop();return}i===t.scope.getBinding(e.node.name)&&(t.bindings[e.node.name]=i)}}};t.default=class{constructor(e,t){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=!1,this.scopes=[],this.scope=t,this.path=e,this.attachAfter=!1}isCompatibleScope(e){for(let t of Object.keys(this.bindings)){let i=this.bindings[t];if(!e.bindingIdentifierEquals(t,i.identifier))return!1}return!0}getCompatibleScopes(){let e=this.path.scope;do{if(this.isCompatibleScope(e))this.scopes.push(e);else break;if(this.breakOnScopePaths.includes(e.path))break}while(e=e.parent)}getAttachmentPath(){let e=this._getAttachmentPath();if(!e)return;let t=e.scope;if(t.path===e&&(t=e.scope.parent),t.path.isProgram()||t.path.isFunction())for(let i of Object.keys(this.bindings)){if(!t.hasOwnBinding(i))continue;let r=this.bindings[i];if("param"!==r.kind&&"params"!==r.path.parentKey&&this.getAttachmentParentForPath(r.path).key>=e.key)for(let t of(this.attachAfter=!0,e=r.path,r.constantViolations))this.getAttachmentParentForPath(t).key>e.key&&(e=t)}return e}_getAttachmentPath(){let e=this.scopes.pop();if(e){if(e.path.isFunction())if(!this.hasOwnParamBindings(e))return this.getNextScopeAttachmentParent();else{if(this.scope===e)return;let t=e.path.get("body").get("body");for(let e=0;e<t.length;e++)if(!t[e].node._blockHoist)return t[e]}else if(e.path.isProgram())return this.getNextScopeAttachmentParent()}}getNextScopeAttachmentParent(){let e=this.scopes.pop();if(e)return this.getAttachmentParentForPath(e.path)}getAttachmentParentForPath(e){do if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;while(e=e.parentPath);return e}hasOwnParamBindings(e){for(let t of Object.keys(this.bindings)){if(!e.hasOwnBinding(t))continue;let i=this.bindings[t];if("param"===i.kind&&i.constant)return!0}return!1}run(){if(this.path.traverse(p,this),this.mutableBinding)return;this.getCompatibleScopes();let e=this.getAttachmentPath();if(!e||e.getFunctionParent()===this.path.getFunctionParent())return;let t=e.scope.generateUidIdentifier("ref"),i=l(t,this.path.node),[r]=e[this.attachAfter?"insertAfter":"insertBefore"]([e.isVariableDeclarator()?i:o("var",[i])]),n=this.path.parentPath;return n.isJSXElement()&&this.path.container===n.node.children&&(t=a(t)),this.path.replaceWith(s(t)),r.isVariableDeclarator()?r.get("init"):r.get("declarations.0.init")}}},16643(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.hooks=void 0,t.hooks=[function(e,t){if("test"===e.key&&(t.isWhile()||t.isSwitchCase())||"declaration"===e.key&&t.isExportDeclaration()||"body"===e.key&&t.isLabeledStatement()||"declarations"===e.listKey&&t.isVariableDeclaration()&&1===t.node.declarations.length||"expression"===e.key&&t.isExpressionStatement())return t.remove(),!0},function(e,t){if(t.isSequenceExpression()&&1===t.node.expressions.length)return t.replaceWith(t.node.expressions[0]),!0},function(e,t){if(t.isBinary())return"left"===e.key?t.replaceWith(t.node.right):t.replaceWith(t.node.left),!0},function(e,t){if(t.isIfStatement()&&"consequent"===e.key||"body"===e.key&&(t.isLoop()||t.isArrowFunctionExpression()))return e.replaceWith({type:"BlockStatement",directives:[],body:[]}),!0}]},37494(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.isBindingIdentifier=function(){let{node:e,parent:t}=this,i=this.parentPath.parent;return u(e)&&r(e,t,i)},t.isBlockScoped=function(){return n(this.node)},t.isExpression=function(){return this.isIdentifier()?this.isReferencedIdentifier():a(this.node)},t.isFlow=function(){let{node:e}=this;return!!o(e)||(c(e)?"type"===e.importKind||"typeof"===e.importKind:s(e)?"type"===e.exportKind:!!d(e)&&("type"===e.importKind||"typeof"===e.importKind))},t.isForAwaitStatement=function(){return A(this.node,{await:!0})},t.isGenerated=function(){return!this.isUser()},t.isPure=function(e){return this.scope.isPure(this.node,e)},t.isReferenced=function(){return g(this.node,this.parent)},t.isReferencedIdentifier=function(e){let{node:t,parent:i}=this;return u(t,e)?g(t,i,this.parentPath.parent):!!h(t,e)&&!(!m(i)&&P(t.name))&&g(t,i,this.parentPath.parent)},t.isReferencedMemberExpression=function(){let{node:e,parent:t}=this;return f(e)&&g(e,t)},t.isRestProperty=function(){var e;return y(this.node)&&(null==(e=this.parentPath)?void 0:e.isObjectPattern())},t.isScope=function(){return T(this.node,this.parent)},t.isSpreadProperty=function(){var e;return y(this.node)&&(null==(e=this.parentPath)?void 0:e.isObjectExpression())},t.isStatement=function(){let{node:e,parent:t}=this;return!(!b(e)||S(e)&&(p(t,{left:e})||l(t,{init:e})))&&!0},t.isUser=function(){var e;return!!(null!=(e=this.node)&&e.loc)},t.isVar=function(){return x(this.node)};let{isBinding:r,isBlockScoped:n,isExportDeclaration:s,isExpression:a,isFlow:o,isForStatement:l,isForXStatement:p,isIdentifier:u,isImportDeclaration:c,isImportSpecifier:d,isJSXIdentifier:h,isJSXMemberExpression:m,isMemberExpression:f,isRestElement:y,isReferenced:g,isScope:T,isStatement:b,isVar:x,isVariableDeclaration:S,react:E,isForOfStatement:A}=i(58135),{isCompatTag:P}=E;t.isExistentialTypeParam=function(){throw Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},t.isNumericLiteralTypeAnnotation=function(){throw Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")}},44057(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Var=t.User=t.Statement=t.SpreadProperty=t.Scope=t.RestProperty=t.ReferencedMemberExpression=t.ReferencedIdentifier=t.Referenced=t.Pure=t.NumericLiteralTypeAnnotation=t.Generated=t.ForAwaitStatement=t.Flow=t.Expression=t.ExistentialTypeParam=t.BlockScoped=t.BindingIdentifier=void 0,t.ReferencedIdentifier=["Identifier","JSXIdentifier"],t.ReferencedMemberExpression=["MemberExpression"],t.BindingIdentifier=["Identifier"],t.Statement=["Statement"],t.Expression=["Expression"],t.Scope=["Scopable","Pattern"],t.Referenced=null,t.BlockScoped=["FunctionDeclaration","ClassDeclaration","VariableDeclaration"],t.Var=["VariableDeclaration"],t.User=null,t.Generated=null,t.Pure=null,t.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],t.RestProperty=["RestElement"],t.SpreadProperty=["RestElement"],t.ExistentialTypeParam=["ExistsTypeAnnotation"],t.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"],t.ForAwaitStatement=["ForOfStatement"]},11064(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t._containerInsert=P,t._containerInsertAfter=D,t._containerInsertBefore=v,t._verifyNodeList=_,t.insertAfter=function(e){if(a._assertUnremoved.call(this),this.isSequenceExpression())return C(this.get("expressions")).insertAfter(e);let t=_.call(this,e),{parentPath:i,parent:r}=this;if(i.isExpressionStatement()||i.isLabeledStatement()||T(r)||i.isExportDefaultDeclaration()&&this.isDeclaration())return i.insertAfter(t.map(e=>b(e)?f(e):e));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!i.isJSXElement()||i.isForStatement()&&"init"===this.key){if(this.node){let e=this.node,{scope:r}=this;if(r.path.isPattern())return u(e),this.replaceWith(h(p([],e),[])),this.get("callee.body").insertAfter(t),[this];if(function e(t){return S(t.parent)&&(C(t.parent.expressions)!==t.node||e(t.parentPath))}(this))t.unshift(e);else if(g(e)&&E(e.callee))t.unshift(e),t.push(A());else if(function(e,t){if(!y(e)||!x(e.left))return!1;let i=t.getBlockParent();return i.hasOwnBinding(e.left.name)&&i.getOwnBinding(e.left.name).constantViolations.length<=1}(e,r))t.unshift(e),t.push(m(e.left));else if(r.isPure(e,!0))t.push(e);else{i.isMethod({computed:!0,key:e})&&(r=r.parent);let n=r.generateDeclaredUidIdentifier();t.unshift(f(c("=",m(n),e))),t.push(f(m(n)))}}return this.replaceExpressionWithStatements(t)}if(Array.isArray(this.container))return D.call(this,t);if(this.isStatementOrBlock()){let e=this.node,i=e&&(!this.isExpressionStatement()||null!=e.expression),[r]=this.replaceWith(d(i?[e]:[]));return r.pushContainer("body",t)}throw Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")},t.insertBefore=function(e){a._assertUnremoved.call(this);let t=_.call(this,e),{parentPath:i,parent:r}=this;if(i.isExpressionStatement()||i.isLabeledStatement()||T(r)||i.isExportDefaultDeclaration()&&this.isDeclaration())return i.insertBefore(t);if(this.isNodeType("Expression")&&!this.isJSXElement()||i.isForStatement()&&"init"===this.key)return this.node&&t.push(this.node),this.replaceExpressionWithStatements(t);if(Array.isArray(this.container))return v.call(this,t);if(this.isStatementOrBlock()){let e=this.node,i=e&&(!this.isExpressionStatement()||null!=e.expression),[r]=this.replaceWith(d(i?[e]:[]));return r.unshiftContainer("body",t)}throw Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")},t.pushContainer=function(e,t){a._assertUnremoved.call(this);let i=_.call(this,t),r=this.node[e];return n.default.get({parentPath:this,parent:this.node,container:r,listKey:e,key:r.length}).setContext(this.context).replaceWithMultiple(i)},t.unshiftContainer=function(e,t){a._assertUnremoved.call(this);let i=_.call(this,t),r=this.node[e],s=n.default.get({parentPath:this,parent:this.node,container:r,listKey:e,key:0}).setContext(this.context);return v.call(s,i)},t.updateSiblingKeys=w;var r=i(56266),n=i(32670),s=i(44537),a=i(7946),o=i(58135),l=i(82738);let{arrowFunctionExpression:p,assertExpression:u,assignmentExpression:c,blockStatement:d,callExpression:h,cloneNode:m,expressionStatement:f,isAssignmentExpression:y,isCallExpression:g,isExportNamedDeclaration:T,isExpression:b,isIdentifier:x,isSequenceExpression:S,isSuper:E,thisExpression:A}=o;function P(e,t){w.call(this,e,t.length);let i=[];this.container.splice(e,0,...t);for(let n=0;n<t.length;n++){var r;let t=e+n,a=this.getSibling(t);i.push(a),null!=(r=this.context)&&r.queue&&s.pushContext.call(a,this.context)}let n=s._getQueueContexts.call(this);for(let e of i)for(let t of(s.setScope.call(e),e.debug("Inserted."),n))t.maybeQueue(e,!0);return i}function v(e){return P.call(this,this.key,e)}function D(e){return P.call(this,this.key+1,e)}let C=e=>e[e.length-1];function w(e,t){if(!this.parent)return;let i=(0,r.getCachedPaths)(this);if(i)for(let[,r]of i)"number"==typeof r.key&&r.container===this.container&&r.key>=e&&(r.key+=t)}function _(e){if(!e)return[];Array.isArray(e)||(e=[e]);for(let t=0;t<e.length;t++){let i,r=e[t];if(r?"object"!=typeof r?i="contains a non-object node":r.type?r instanceof n.default&&(i="has a NodePath when it expected a raw object"):i="without a type":i="has falsy node",i){let e=Array.isArray(r)?"array":typeof r;throw Error(`Node list ${i} with the index of ${t} and type of ${e}`)}}return e}t.hoist=function(e=this.scope){return new l.default(this,e).run()}},7946(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t._assertUnremoved=m,t._callRemovalHooks=c,t._markRemoved=h,t._remove=d,t._removeFromScope=u,t.remove=function(){var e;m.call(this),p.resync.call(this),c.call(this)||(null!=(e=this.opts)&&e.noScope||u.call(this),this.shareCommentsWithSiblings(),d.call(this)),h.call(this)};var r=i(16643),n=i(56266),s=i(94834),a=i(32670),o=i(58135),l=i(11064),p=i(44537);function u(){Object.keys(o.getBindingIdentifiers(this.node,!1,!1,!0)).forEach(e=>this.scope.removeBinding(e))}function c(){if(this.parentPath){for(let e of r.hooks)if(e(this,this.parentPath))return!0}}function d(){Array.isArray(this.container)?(this.container.splice(this.key,1),l.updateSiblingKeys.call(this,this.key,-1)):s._replaceWith.call(this,null)}function h(){if(this._traverseFlags|=a.SHOULD_SKIP|a.REMOVED,this.parent){var e;null==(e=(0,n.getCachedPaths)(this))||e.delete(this.node)}this.node=null}function m(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}},94834(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t._replaceWith=R,t.replaceExpressionWithStatements=function(e){u.resync.call(this);let t=[],i=function e(t,i){let r=[],n=!0;for(let s of t)if(C(s)||(n=!1),w(s))r.push(s);else if(_(s))r.push(s.expression);else if(O(s)){if("var"!==s.kind)return;for(let e of s.declarations){let t=S(e);for(let e of Object.keys(t))i.push(T(t[e]));e.init&&r.push(h("=",e.id,e.init))}n=!0}else if(I(s)){let t=s.consequent?e([s.consequent],i):y(),n=s.alternate?e([s.alternate],i):y();if(!t||!n)return;r.push(b(s.test,t,n))}else if(D(s)){let t=e(s.body,i);if(!t)return;r.push(t)}else{if(!C(s))return;0===t.indexOf(s)&&(n=!0)}return(n&&r.push(y()),1===r.length)?r[0]:M(r)}(e,t);if(i){for(let e of t)this.scope.push({id:e});return this.replaceWith(i)[0].get("expressions")}let r=this.getFunctionParent(),s=null==r?void 0:r.node.async,a=null==r?void 0:r.node.generator,o=d([],f(e));this.replaceWith(g(o,[]));let l=this.get("callee");for(let e of(l.get("body").scope.hoistVariables(e=>this.scope.push({id:e})),l.getCompletionRecords())){if(!e.isExpressionStatement())continue;let t=e.findParent(e=>e.isLoop());if(t){let i=t.getData("expressionReplacementReturnUid");i?i=E(i.name):(i=l.scope.generateDeclaredUidIdentifier("ret"),l.get("body").pushContainer("body",L(T(i))),t.setData("expressionReplacementReturnUid",i)),e.get("expression").replaceWith(h("=",T(i),e.node.expression))}else e.replaceWith(L(e.node.expression))}l.arrowFunctionToExpression();let p=s&&n.default.hasType(this.get("callee.body").node,"AwaitExpression",c),x=a&&n.default.hasType(this.get("callee.body").node,"YieldExpression",c);return p&&(l.set("async",!0),x||this.replaceWith(m(this.node))),x&&(l.set("generator",!0),this.replaceWith(j(this.node,!0))),l.get("body.body")},t.replaceInline=function(e){if(u.resync.call(this),!Array.isArray(e))return this.replaceWith(e);if(!Array.isArray(this.container))return this.replaceWithMultiple(e);{e=o._verifyNodeList.call(this,e);let t=o._containerInsertAfter.call(this,e);return this.remove(),t}},t.replaceWith=function(e){if(u.resync.call(this),this.removed)throw Error("You can't replace this node, we've already removed it");let t=e instanceof s.default?e.node:e;if(!t)throw Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===t)return[this];if(this.isProgram()&&!k(t))throw Error("You can only replace a Program root node with another Program node");if(Array.isArray(t))throw Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if("string"==typeof t)throw Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let i="";if(this.isNodeType("Statement")&&w(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t)&&!this.parentPath.isExportDefaultDeclaration()&&(t=x(t),i="expression"),this.isNodeType("Expression")&&N(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t))return this.replaceExpressionWithStatements([t]);let r=this.node;return r&&(v(t,r),F(r)),R.call(this,t),this.type=t.type,u.setScope.call(this),this.requeue(),[i?this.get(i):this]},t.replaceWithMultiple=function(e){var t;u.resync.call(this);let i=o._verifyNodeList.call(this,e);A(i[0],this.node),P(i[i.length-1],this.node),null==(t=(0,a.getCachedPaths)(this))||t.delete(this.node),this.node=this.container[this.key]=null;let r=this.insertAfter(e);return this.node?this.requeue():this.remove(),r},t.replaceWithSourceString=function(e){let t;u.resync.call(this);try{e=`(${e})`,t=(0,l.parse)(e)}catch(i){let t=i.loc;throw t&&(i.message+=" - make sure this is an expression.\n"+(0,r.codeFrameColumns)(e,{start:{line:t.line,column:t.column+1}}),i.code="BABEL_REPLACE_SOURCE_ERROR"),i}let i=t.program.body[0].expression;return n.default.removeProperties(i),this.replaceWith(i)};var r=i(56611),n=i(80004),s=i(32670),a=i(56266),o=i(11064),l=i(46773),p=i(58135),u=i(44537);let{FUNCTION_TYPES:c,arrowFunctionExpression:d,assignmentExpression:h,awaitExpression:m,blockStatement:f,buildUndefinedNode:y,callExpression:g,cloneNode:T,conditionalExpression:b,expressionStatement:x,getBindingIdentifiers:S,identifier:E,inheritLeadingComments:A,inheritTrailingComments:P,inheritsComments:v,isBlockStatement:D,isEmptyStatement:C,isExpression:w,isExpressionStatement:_,isIfStatement:I,isProgram:k,isStatement:N,isVariableDeclaration:O,removeComments:F,returnStatement:L,sequenceExpression:M,validate:B,yieldExpression:j}=p;function R(e){var t;if(!this.container)throw ReferenceError("Container is falsy");this.inList?B(this.parent,this.key,[e]):B(this.parent,this.key,e),this.debug(`Replace with ${null==e?void 0:e.type}`),null==(t=(0,a.getCachedPaths)(this))||t.set(e,this).delete(this.node),this.node=e,this.container[this.key]=e}},46026(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=class{constructor({identifier:e,scope:t,path:i,kind:r}){this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=e,this.scope=t,this.path=i,this.kind=r,("var"===r||"hoisted"===r)&&function(e){let t=!e.isVariableDeclarator()||e.node.init;for(let{parentPath:i,key:r}=e;i&&!i.isFunctionParent();{parentPath:i,key:r}=i)if("left"===r&&i.isForXStatement()||t&&"body"===r&&i.isLoop())return!0;return!1}(i)&&this.reassign(i),this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(e){this.hasDeoptedValue||(this.hasValue=!0,this.value=e)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(e){this.constant=!1,this.constantViolations.includes(e)||this.constantViolations.push(e)}reference(e){this.referencePaths.includes(e)||(this.referenced=!0,this.references++,this.referencePaths.push(e))}dereference(){this.references--,this.referenced=!!this.references}}},54683(e,t,i){let r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(58431),s=i(80004);i(68536);var a=i(46026),o=i(58135),l=i(56266);let p=i(1243),u=i(70270),{assignmentExpression:c,callExpression:d,cloneNode:h,getBindingIdentifiers:m,identifier:f,isArrayExpression:y,isBinary:g,isCallExpression:T,isClass:b,isClassBody:x,isClassDeclaration:S,isExportAllDeclaration:E,isExportDefaultDeclaration:A,isExportNamedDeclaration:P,isFunctionDeclaration:v,isIdentifier:D,isImportDeclaration:C,isLiteral:w,isMemberExpression:_,isMethod:I,isModuleSpecifier:k,isNullLiteral:N,isObjectExpression:O,isProperty:F,isPureish:L,isRegExpLiteral:M,isSuper:B,isTaggedTemplateExpression:j,isTemplateLiteral:R,isThisExpression:U,isUnaryExpression:V,isVariableDeclaration:K,expressionStatement:q,matchesPattern:$,memberExpression:W,numericLiteral:X,toIdentifier:z,variableDeclaration:J,variableDeclarator:Y,isRecordExpression:Q,isTupleExpression:H,isObjectProperty:G,isTopicReference:Z,isMetaProperty:ee,isPrivateName:et,isExportDeclaration:ei,buildUndefinedNode:er,sequenceExpression:en}=o;function es(e){e.references=Object.create(null),e.uids=Object.create(null),e.bindings=Object.create(null),e.globals=Object.create(null)}var ea=Symbol.for("should not be considered a local binding");let eo={ForStatement(e){let t=e.get("init");if(t.isVar()){let{scope:i}=e;(i.getFunctionParent()||i.getProgramParent()).registerBinding("var",t)}},Declaration(e){e.isBlockScoped()||e.isImportDeclaration()||e.isExportDeclaration()||(e.scope.getFunctionParent()||e.scope.getProgramParent()).registerDeclaration(e)},ImportDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},TSImportEqualsDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},ReferencedIdentifier(e,t){o.isTSQualifiedName(e.parent)&&e.parent.right===e.node||e.parentPath.isTSImportEqualsDeclaration()||t.references.push(e)},ForXStatement(e,t){let i=e.get("left");if(i.isPattern()||i.isIdentifier())t.constantViolations.push(e);else if(i.isVar()){let{scope:t}=e;(t.getFunctionParent()||t.getProgramParent()).registerBinding("var",i)}},ExportDeclaration:{exit(e){let{node:t,scope:i}=e;if(E(t))return;let r=t.declaration;if(S(r)||v(r)){let t=r.id;if(!t)return;let n=i.getBinding(t.name);null==n||n.reference(e)}else if(K(r))for(let t of r.declarations)for(let r of Object.keys(m(t))){let t=i.getBinding(r);null==t||t.reference(e)}}},LabeledStatement(e){e.scope.getBlockParent().registerDeclaration(e)},AssignmentExpression(e,t){t.assignments.push(e)},UpdateExpression(e,t){t.constantViolations.push(e)},UnaryExpression(e,t){"delete"===e.node.operator&&t.constantViolations.push(e)},BlockScoped(e){let t=e.scope;if(t.path===e&&(t=t.parent),t.getBlockParent().registerDeclaration(e),e.isClassDeclaration()&&e.node.id){let t=e.node.id.name;e.scope.bindings[t]=e.scope.parent.getBinding(t)}},CatchClause(e){e.scope.registerBinding("let",e)},Function(e){for(let t of e.get("params"))e.scope.registerBinding("param",t);e.isFunctionExpression()&&e.node.id&&!e.node.id[ea]&&e.scope.registerBinding("local",e.get("id"),e)},ClassExpression(e){e.node.id&&!e.node.id[ea]&&e.scope.registerBinding("local",e.get("id"),e)},TSTypeAnnotation(e){e.skip()}},el=0;class ep{constructor(e){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;let{node:t}=e,i=l.scope.get(t);if((null==i?void 0:i.path)===e)return i;l.scope.set(t,this),this.uid=el++,this.block=t,this.path=e,this.labels=new Map,this.inited=!1,Object.defineProperties(this,{references:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)},uids:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)}})}get parent(){var e,t;let i,r=this.path;do{let e="key"===r.key||"decorators"===r.listKey;r=r.parentPath,e&&r.isMethod()&&(r=r.parentPath),null!=(t=r)&&t.isScope()&&(i=r)}while(r&&!i);return null==(e=i)?void 0:e.scope}get references(){throw Error("Scope#references is not available in Babel 8. Use Scope#referencesSet instead.")}get uids(){throw Error("Scope#uids is not available in Babel 8. Use Scope#uidsSet instead.")}generateDeclaredUidIdentifier(e){let t=this.generateUidIdentifier(e);return this.push({id:t}),h(t)}generateUidIdentifier(e){return f(this.generateUid(e))}generateUid(e="temp"){let t;e=z(e).replace(/^_+/,"").replace(/\d+$/g,"");let i=0;do t=`_${e}`,i>=11?t+=i-1:i>=9?t+=i-9:i>=1&&(t+=i+1),i++;while(this.hasLabel(t)||this.hasBinding(t)||this.hasGlobal(t)||this.hasReference(t));let r=this.getProgramParent();return r.references[t]=!0,r.uids[t]=!0,t}generateUidBasedOnNode(e,t){let i=[];!function e(t,i){switch(null==t?void 0:t.type){default:if(C(t)||ei(t)){var r;if((E(t)||P(t)||C(t))&&t.source)e(t.source,i);else if((P(t)||C(t))&&null!=(r=t.specifiers)&&r.length)for(let r of t.specifiers)e(r,i);else(A(t)||P(t))&&t.declaration&&e(t.declaration,i)}else k(t)?e(t.local,i):!w(t)||N(t)||M(t)||R(t)||i.push(t.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":e(t.object,i),e(t.property,i);break;case"Identifier":case"JSXIdentifier":i.push(t.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":e(t.callee,i);break;case"ObjectExpression":case"ObjectPattern":for(let r of t.properties)e(r,i);break;case"SpreadElement":case"RestElement":case"UnaryExpression":case"UpdateExpression":e(t.argument,i);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":e(t.key,i);break;case"ThisExpression":i.push("this");break;case"Super":i.push("super");break;case"Import":case"ImportExpression":i.push("import");break;case"DoExpression":i.push("do");break;case"YieldExpression":i.push("yield"),e(t.argument,i);break;case"AwaitExpression":i.push("await"),e(t.argument,i);break;case"AssignmentExpression":e(t.left,i);break;case"VariableDeclarator":case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":case"PrivateName":e(t.id,i);break;case"ParenthesizedExpression":e(t.expression,i);break;case"MetaProperty":e(t.meta,i),e(t.property,i);break;case"JSXElement":e(t.openingElement,i);break;case"JSXOpeningElement":e(t.name,i);break;case"JSXFragment":e(t.openingFragment,i);break;case"JSXOpeningFragment":i.push("Fragment");break;case"JSXNamespacedName":e(t.namespace,i),e(t.name,i)}}(e,i);let r=i.join("$");return r=r.replace(/^_/,"")||t||"ref",this.generateUid(r.slice(0,20))}generateUidIdentifierBasedOnNode(e,t){return f(this.generateUidBasedOnNode(e,t))}isStatic(e){if(U(e)||B(e)||Z(e))return!0;if(D(e)){let t=this.getBinding(e.name);return t?t.constant:this.hasBinding(e.name)}return!1}maybeGenerateMemoised(e,t){if(this.isStatic(e))return null;{let i=this.generateUidIdentifierBasedOnNode(e);return t?i:(this.push({id:i}),h(i))}}checkBlockScopedCollisions(e,t,i,r){if("param"!==t&&"local"!==e.kind&&("let"===t||"let"===e.kind||"const"===e.kind||"module"===e.kind||"param"===e.kind&&"const"===t))throw this.path.hub.buildError(r,`Duplicate declaration "${i}"`,TypeError)}rename(e,t){let i=this.getBinding(e);i&&(t||(t=this.generateUidIdentifier(e).name),new n.default(i,e,t).rename(arguments[2]))}dump(){let e="-".repeat(60);console.log(e);let t=this;do for(let e of(console.log("#",t.block.type),Object.keys(t.bindings))){let i=t.bindings[e];console.log(" -",e,{constant:i.constant,references:i.references,violations:i.constantViolations.length,kind:i.kind})}while(t=t.parent);console.log(e)}hasLabel(e){return!!this.getLabel(e)}getLabel(e){return this.labels.get(e)}registerLabel(e){this.labels.set(e.node.label.name,e)}registerDeclaration(e){if(e.isLabeledStatement())this.registerLabel(e);else if(e.isFunctionDeclaration())this.registerBinding("hoisted",e.get("id"),e);else if(e.isVariableDeclaration()){let t=e.get("declarations"),{kind:i}=e.node;for(let e of t)this.registerBinding("using"===i||"await using"===i?"const":i,e)}else if(e.isClassDeclaration()){if(e.node.declare)return;this.registerBinding("let",e)}else if(e.isImportDeclaration()){let t="type"===e.node.importKind||"typeof"===e.node.importKind;for(let i of e.get("specifiers")){let e=t||i.isImportSpecifier()&&("type"===i.node.importKind||"typeof"===i.node.importKind);this.registerBinding(e?"unknown":"module",i)}}else if(e.isExportDeclaration()){let t=e.get("declaration");(t.isClassDeclaration()||t.isFunctionDeclaration()||t.isVariableDeclaration())&&this.registerDeclaration(t)}else this.registerBinding("unknown",e)}buildUndefinedNode(){return er()}registerConstantViolation(e){for(let i of Object.keys(e.getAssignmentIdentifiers())){var t;null==(t=this.getBinding(i))||t.reassign(e)}}registerBinding(e,t,i=t){if(!e)throw ReferenceError("no `kind`");if(t.isVariableDeclaration()){for(let i of t.get("declarations"))this.registerBinding(e,i);return}let r=this.getProgramParent(),n=t.getOuterBindingIdentifiers(!0);for(let t of Object.keys(n))for(let s of(r.references[t]=!0,n[t])){let r=this.getOwnBinding(t);if(r){if(r.identifier===s)continue;this.checkBlockScopedCollisions(r,e,t,s)}r?r.reassign(i):this.bindings[t]=new a.default({identifier:s,scope:this,path:i,kind:e})}}addGlobal(e){this.globals[e.name]=e}hasUid(e){{let t=this;do if(t.uids[e])return!0;while(t=t.parent);return!1}}hasGlobal(e){let t=this;do if(t.globals[e])return!0;while(t=t.parent);return!1}hasReference(e){return!!this.getProgramParent().references[e]}isPure(e,t){var i,r,n;if(D(e)){let i=this.getBinding(e.name);return!!i&&(!t||i.constant)}if(U(e)||ee(e)||Z(e)||et(e))return!0;if(b(e))return(!e.superClass||!!this.isPure(e.superClass,t))&&!((null==(i=e.decorators)?void 0:i.length)>0)&&this.isPure(e.body,t);if(x(e)){for(let i of e.body)if(!this.isPure(i,t))return!1;return!0}if(g(e))return this.isPure(e.left,t)&&this.isPure(e.right,t);else if(y(e)||H(e)){for(let i of e.elements)if(null!==i&&!this.isPure(i,t))return!1;return!0}else if(O(e)||Q(e)){for(let i of e.properties)if(!this.isPure(i,t))return!1;return!0}else if(I(e))return(!e.computed||!!this.isPure(e.key,t))&&!((null==(r=e.decorators)?void 0:r.length)>0);else if(F(e))return!(e.computed&&!this.isPure(e.key,t)||(null==(n=e.decorators)?void 0:n.length)>0||(G(e)||e.static)&&null!==e.value&&!this.isPure(e.value,t));else if(V(e))return this.isPure(e.argument,t);else if(R(e)){for(let i of e.expressions)if(!this.isPure(i,t))return!1;return!0}else if(j(e))return $(e.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(e.quasi,t);else if(_(e))return!e.computed&&D(e.object)&&"Symbol"===e.object.name&&D(e.property)&&"for"!==e.property.name&&!this.hasBinding("Symbol",{noGlobals:!0});else if(T(e))return $(e.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&1===e.arguments.length&&o.isStringLiteral(e.arguments[0]);else return L(e)}setData(e,t){return this.data[e]=t}getData(e){let t=this;do{let i=t.data[e];if(null!=i)return i}while(t=t.parent)}removeData(e){let t=this;do null!=t.data[e]&&(t.data[e]=null);while(t=t.parent)}init(){this.inited||(this.inited=!0,this.crawl())}crawl(){let e=this.path;es(this),this.data=Object.create(null);let t=this;do{if(t.crawling)return;if(t.path.isProgram())break}while(t=t.parent);let i=t,n={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,r||(r=s.default.visitors.merge([{Scope(e){es(e.scope)}},eo])),"Program"!==e.type){let t=r[e.type];if(t)for(let i of t.enter)i.call(n,e,n)}for(let t of(e.traverse(r,n),this.crawling=!1,n.assignments)){let e=t.getAssignmentIdentifiers();for(let r of Object.keys(e))t.scope.getBinding(r)||i.addGlobal(e[r]);t.scope.registerConstantViolation(t)}for(let e of n.references){let t=e.scope.getBinding(e.node.name);t?t.reference(e):i.addGlobal(e.node)}for(let e of n.constantViolations)e.scope.registerConstantViolation(e)}push(e){var t;let i=this.path;i.isPattern()?i=this.getPatternParent().path:i.isBlockStatement()||i.isProgram()||(i=this.getBlockParent().path),i.isSwitchStatement()&&(i=(this.getFunctionParent()||this.getProgramParent()).path);let{init:r,unique:n,kind:s="var",id:a}=e;if(!r&&!n&&("var"===s||"let"===s)&&((t=i).isFunctionExpression()&&!t.node.id||t.isArrowFunctionExpression())&&T(i.parent,{callee:i.node})&&i.parent.arguments.length<=i.node.params.length&&D(a)){i.pushContainer("params",a),i.scope.registerBinding("param",i.get("params")[i.node.params.length-1]);return}(i.isLoop()||i.isCatchClause()||i.isFunction())&&(i.ensureBlock(),i=i.get("body"));let o=null==e._blockHoist?2:e._blockHoist,l=`declaration:${s}:${o}`,p=!n&&i.getData(l);if(!p){let e=J(s,[]);e._blockHoist=o,[p]=i.unshiftContainer("body",[e]),n||i.setData(l,p)}let u=Y(a,r),c=p.node.declarations.push(u);i.scope.registerBinding(s,p.get("declarations")[c-1])}getProgramParent(){let e=this;do if(e.path.isProgram())return e;while(e=e.parent);throw Error("Couldn't find a Program")}getFunctionParent(){let e=this;do if(e.path.isFunctionParent())return e;while(e=e.parent);return null}getBlockParent(){let e=this;do if(e.path.isBlockParent())return e;while(e=e.parent);throw Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let e=this;do if(!e.path.isPattern())return e.getBlockParent();while(e=e.parent.parent);throw Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){let e=Object.create(null),t=this;do{for(let i of Object.keys(t.bindings))i in e==!1&&(e[i]=t.bindings[i]);t=t.parent}while(t);return e}bindingIdentifierEquals(e,t){return this.getBindingIdentifier(e)===t}getBinding(e){let t,i=this;do{let n=i.getOwnBinding(e);if(n){var r;if(!(null!=(r=t)&&r.isPattern())||"param"===n.kind||"local"===n.kind)return n}else if(!n&&"arguments"===e&&i.path.isFunction()&&!i.path.isArrowFunctionExpression())break;t=i.path}while(i=i.parent)}getOwnBinding(e){return this.bindings[e]}getBindingIdentifier(e){var t;return null==(t=this.getBinding(e))?void 0:t.identifier}getOwnBindingIdentifier(e){let t=this.bindings[e];return null==t?void 0:t.identifier}hasOwnBinding(e){return!!this.getOwnBinding(e)}hasBinding(e,t){let i,r,n;if(!e)return!1;"object"==typeof t?(i=t.noGlobals,r=t.noUids,n=t.upToScope):"boolean"==typeof t&&(i=t);let s=this;do{if(n===s)break;if(s.hasOwnBinding(e))return!0}while(s=s.parent);return!!(!r&&this.hasUid(e)||!i&&ep.globals.includes(e)||!i&&ep.contextVariables.includes(e))}parentHasBinding(e,t){var i;return null==(i=this.parent)?void 0:i.hasBinding(e,t)}moveBindingTo(e,t){let i=this.getBinding(e);i&&(i.scope.removeOwnBinding(e),i.scope=t,t.bindings[e]=i)}removeOwnBinding(e){delete this.bindings[e]}removeBinding(e){var t;null==(t=this.getBinding(e))||t.scope.removeOwnBinding(e);{let t=this;do t.uids[e]&&(t.uids[e]=!1);while(t=t.parent)}}hoistVariables(e=e=>this.push({id:e})){this.crawl();let t=new Set;for(let i of Object.keys(this.bindings)){let r,n=this.bindings[i];if(!n)continue;let{path:s}=n;if(!s.isVariableDeclarator())continue;let{parent:a,parentPath:o}=s;if("var"!==a.kind||t.has(a))continue;t.add(s.parent);let l=[];for(let t of a.declarations)for(let i of(null!=r||(r=t.id),t.init&&l.push(c("=",t.id,t.init)),Object.keys(m(t,!1,!0,!0))))e(f(i),null!=t.init);if(o.parentPath.isForXStatement({left:a}))o.replaceWith(r);else if(0===l.length)o.remove();else{let e=1===l.length?l[0]:en(l);o.parentPath.isForStatement({init:a})?o.replaceWith(e):o.replaceWith(q(e))}}}}t.default=ep,ep.globals=[...p,...u],ep.contextVariables=["arguments","undefined","Infinity","NaN"],ep.prototype._renameFromMap=function(e,t,i,r){e[t]&&(e[i]=r,e[t]=null)},ep.prototype.traverse=function(e,t,i){(0,s.default)(e,t,this,i,this.path)},ep.prototype._generateUid=function(e,t){let i=e;return t>1&&(i+=t),`_${i}`},ep.prototype.toArray=function(e,t,i){let r;if(D(e)){let t=this.getBinding(e.name);if(null!=t&&t.constant&&t.path.isGenericType("Array"))return e}if(y(e))return e;if(D(e,{name:"arguments"}))return d(W(W(W(f("Array"),f("prototype")),f("slice")),f("call")),[e]);let n=[e];return!0===t?r="toConsumableArray":"number"==typeof t?(n.push(X(t)),r="slicedToArray"):r="toArray",i&&(n.unshift(this.path.hub.addHelper(r)),r="maybeArrayLike"),d(this.path.hub.addHelper(r),n)},ep.prototype.getAllBindingsOfKind=function(...e){let t=Object.create(null);for(let i of e){let e=this;do{for(let r of Object.keys(e.bindings)){let n=e.bindings[r];n.kind===i&&(t[r]=n)}e=e.parent}while(e)}return t},Object.defineProperties(ep.prototype,{parentBlock:{configurable:!0,enumerable:!0,get(){return this.path.parent}},hub:{configurable:!0,enumerable:!0,get(){return this.path.hub}}})},58431(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(58135),n=i(51597),s=i(95957),a=i(44537);let{getAssignmentIdentifiers:o}=r,l={ReferencedIdentifier({node:e},t){e.name===t.oldName&&(e.name=t.newName)},Scope(e,t){!e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)&&(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():a.requeueComputedKeyAndDecorators.call(e)))},ObjectProperty({node:e,scope:t},i){let{name:r}=e.key;if(e.shorthand&&(r===i.oldName||r===i.newName)&&t.getBindingIdentifier(r)===i.binding.identifier){var n;e.shorthand=!1,null!=(n=e.extra)&&n.shorthand&&(e.extra.shorthand=!1)}},"AssignmentExpression|Declaration|VariableDeclarator"(e,t){if(e.isVariableDeclaration())return;let i=e.isAssignmentExpression()?o(e.node):e.getOuterBindingIdentifiers();for(let e in i)e===t.oldName&&(i[e].name=t.newName)}};t.default=class{constructor(e,t,i){this.newName=i,this.oldName=t,this.binding=e}maybeConvertFromExportDeclaration(e){let t=e.parentPath;if(t.isExportDeclaration()){if(t.isExportDefaultDeclaration()){let{declaration:e}=t.node;if(r.isDeclaration(e)&&!e.id)return}t.isExportAllDeclaration()||t.splitExportDeclaration()}}maybeConvertFromClassFunctionDeclaration(e){return e}maybeConvertFromClassFunctionExpression(e){return e}rename(){let{binding:e,oldName:t,newName:i}=this,{scope:a,path:o}=e,p=o.find(e=>e.isDeclaration()||e.isFunctionExpression()||e.isClassExpression());p&&p.getOuterBindingIdentifiers()[t]===e.identifier&&this.maybeConvertFromExportDeclaration(p);let u=arguments[0]||a.block,c={discriminant:!0};r.isMethod(u)&&(u.computed&&(c.key=!0),r.isObjectMethod(u)||(c.decorators=!0)),(0,n.traverseNode)(u,(0,s.explode)(l),a,this,a.path,c),arguments[0]||(a.removeOwnBinding(t),a.bindings[i]=e,this.binding.identifier.name=i),p&&(this.maybeConvertFromClassFunctionDeclaration(o),this.maybeConvertFromClassFunctionExpression(o))}}},68536(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i){let r=(0,s.explode)(t);if(r.enter||r.exit)throw Error("Should not be used with enter/exit visitors.");!function e(t,s,l,p,u,c,d,h){if(!l)return;let m=h||n.NodePath.get({hub:d,parentPath:t,parent:s,container:p,listKey:c,key:u});a.setScope.call(m);let f=r[l.type];if(f){if(f.enter)for(let e of f.enter)e.call(i,m,i);if(f.exit)for(let e of f.exit)e.call(i,m,i)}if(m.shouldSkip)return;let y=o[l.type];if(null!=y&&y.length)for(let t of y){let i=l[t];if(i)if(Array.isArray(i))for(let r=0;r<i.length;r++)e(m,l,i[r],i,r,t);else e(m,l,i,l,t,null)}}(e.parentPath,e.parent,e.node,e.container,e.key,e.listKey,e.hub,e)};var r=i(58135),n=i(80004),s=i(95957),a=i(44537);let{VISITOR_KEYS:o}=r},51597(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseNode=function(e,t,i,n,a,o,l){let p=s[e.type];if(!p)return!1;let u=new r.default(i,t,n,a);if(l)return(null==o||!o[a.parentKey])&&u.visitQueue([a]);for(let t of p)if((null==o||!o[t])&&u.visit(e,t))return!0;return!1};var r=i(96647);i(32670);var n=i(58135);i(44537);let{VISITOR_KEYS:s}=n},95957(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.environmentVisitor=function(e){return y([S,e])},t.explode=h,t.isExplodedVisitor=d,t.merge=y,t.verify=m;var r=i(44057),n=i(37494),s=i(58135),a=i(44537);let{DEPRECATED_KEYS:o,DEPRECATED_ALIASES:l,FLIPPED_ALIAS_KEYS:p,TYPES:u,__internal__deprecationWarning:c}=s;function d(e){return null==e?void 0:e._exploded}function h(e){if(d(e))return e;for(let t of(e._exploded=!0,Object.keys(e))){if(b(t))continue;let i=t.split("|");if(1===i.length)continue;let r=e[t];for(let n of(delete e[t],i))e[n]=r}for(let t of(m(e),delete e.__esModule,function(e){for(let t of Object.keys(e)){if(b(t))continue;let i=e[t];"function"==typeof i&&(e[t]={enter:i})}}(e),T(e),Object.keys(e))){if(b(t)||!(t in r))continue;let i=e[t];for(let e of Object.keys(i))i[e]=function(e,t){let i=n[`is${e}`],r=function(e){if(i.call(e))return t.apply(this,arguments)};return r.toString=()=>t.toString(),r}(t,i[e]);delete e[t];let s=r[t];if(null!==s)for(let t of s)null!=e[t]||(e[t]={}),x(e[t],i);else x(e,i)}for(let t of Object.keys(e)){if(b(t))continue;let i=p[t];if(t in o){let e=o[t];c(t,e,"Visitor "),i=[e]}else if(t in l){let e=l[t];c(t,e,"Visitor "),i=p[e]}if(!i)continue;let r=e[t];for(let n of(delete e[t],i)){let t=e[n];t?x(t,r):e[n]=Object.assign({},r)}}for(let t of Object.keys(e))b(t)||T(e[t]);return e}function m(e){if(!e._verified){if("function"==typeof e)throw Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(let t of Object.keys(e)){if(("enter"===t||"exit"===t)&&f(t,e[t]),b(t))continue;if(!u.includes(t))throw Error(`You gave us a visitor for the node type ${t} but it's not a valid type in @babel/traverse 7.28.5`);let i=e[t];if("object"==typeof i)for(let e of Object.keys(i))if("enter"===e||"exit"===e)f(`${t}.${e}`,i[e]);else throw Error(`You passed \`traverse()\` a visitor object with the property ${t} that has the invalid property ${e}`)}e._verified=!0}}function f(e,t){for(let i of[].concat(t))if("function"!=typeof i)throw TypeError(`Non-function found defined in ${e} with type ${typeof i}`)}function y(e,t=[],i){let r={_verified:!0,_exploded:!0};Object.defineProperty(r,"_exploded",{enumerable:!1}),Object.defineProperty(r,"_verified",{enumerable:!1});for(let n=0;n<e.length;n++){let s=h(e[n]),a=t[n],o=s;for(let e of((a||i)&&(o=g(o,a,i)),x(r,o),Object.keys(s))){if(b(e))continue;let t=s[e];(a||i)&&(t=g(t,a,i)),x(r[e]||(r[e]={}),t)}}return r}function g(e,t,i){let r={};for(let n of["enter","exit"]){let s=e[n];Array.isArray(s)&&(s=s.map(function(e){let r=e;return t&&(r=function(i){e.call(t,i,t)}),i&&(r=i(null==t?void 0:t.key,n,r)),r!==e&&(r.toString=()=>e.toString()),r}),r[n]=s)}return r}function T(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.exit&&!Array.isArray(e.exit)&&(e.exit=[e.exit])}function b(e){return"_"===e[0]||"enter"===e||"exit"===e||"shouldSkip"===e||"denylist"===e||"noScope"===e||"skipKeys"===e||"blacklist"===e||!1}function x(e,t){for(let i of["enter","exit"])t[i]&&(e[i]=[].concat(e[i]||[],t[i]))}let S={FunctionParent(e){!e.isArrowFunctionExpression()&&(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():a.requeueComputedKeyAndDecorators.call(e)))},Property(e){e.isObjectProperty()||(e.skip(),e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():a.requeueComputedKeyAndDecorators.call(e))}}},82985(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!(0,r.default)(e)){var t;let i=null!=(t=null==e?void 0:e.type)?t:JSON.stringify(e);throw TypeError(`Not a valid node of type "${i}"`)}};var r=i(24919)},73289(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.assertAccessor=function(e,t){s("Accessor",e,t)},t.assertAnyTypeAnnotation=function(e,t){s("AnyTypeAnnotation",e,t)},t.assertArgumentPlaceholder=function(e,t){s("ArgumentPlaceholder",e,t)},t.assertArrayExpression=function(e,t){s("ArrayExpression",e,t)},t.assertArrayPattern=function(e,t){s("ArrayPattern",e,t)},t.assertArrayTypeAnnotation=function(e,t){s("ArrayTypeAnnotation",e,t)},t.assertArrowFunctionExpression=function(e,t){s("ArrowFunctionExpression",e,t)},t.assertAssignmentExpression=function(e,t){s("AssignmentExpression",e,t)},t.assertAssignmentPattern=function(e,t){s("AssignmentPattern",e,t)},t.assertAwaitExpression=function(e,t){s("AwaitExpression",e,t)},t.assertBigIntLiteral=function(e,t){s("BigIntLiteral",e,t)},t.assertBinary=function(e,t){s("Binary",e,t)},t.assertBinaryExpression=function(e,t){s("BinaryExpression",e,t)},t.assertBindExpression=function(e,t){s("BindExpression",e,t)},t.assertBlock=function(e,t){s("Block",e,t)},t.assertBlockParent=function(e,t){s("BlockParent",e,t)},t.assertBlockStatement=function(e,t){s("BlockStatement",e,t)},t.assertBooleanLiteral=function(e,t){s("BooleanLiteral",e,t)},t.assertBooleanLiteralTypeAnnotation=function(e,t){s("BooleanLiteralTypeAnnotation",e,t)},t.assertBooleanTypeAnnotation=function(e,t){s("BooleanTypeAnnotation",e,t)},t.assertBreakStatement=function(e,t){s("BreakStatement",e,t)},t.assertCallExpression=function(e,t){s("CallExpression",e,t)},t.assertCatchClause=function(e,t){s("CatchClause",e,t)},t.assertClass=function(e,t){s("Class",e,t)},t.assertClassAccessorProperty=function(e,t){s("ClassAccessorProperty",e,t)},t.assertClassBody=function(e,t){s("ClassBody",e,t)},t.assertClassDeclaration=function(e,t){s("ClassDeclaration",e,t)},t.assertClassExpression=function(e,t){s("ClassExpression",e,t)},t.assertClassImplements=function(e,t){s("ClassImplements",e,t)},t.assertClassMethod=function(e,t){s("ClassMethod",e,t)},t.assertClassPrivateMethod=function(e,t){s("ClassPrivateMethod",e,t)},t.assertClassPrivateProperty=function(e,t){s("ClassPrivateProperty",e,t)},t.assertClassProperty=function(e,t){s("ClassProperty",e,t)},t.assertCompletionStatement=function(e,t){s("CompletionStatement",e,t)},t.assertConditional=function(e,t){s("Conditional",e,t)},t.assertConditionalExpression=function(e,t){s("ConditionalExpression",e,t)},t.assertContinueStatement=function(e,t){s("ContinueStatement",e,t)},t.assertDebuggerStatement=function(e,t){s("DebuggerStatement",e,t)},t.assertDecimalLiteral=function(e,t){s("DecimalLiteral",e,t)},t.assertDeclaration=function(e,t){s("Declaration",e,t)},t.assertDeclareClass=function(e,t){s("DeclareClass",e,t)},t.assertDeclareExportAllDeclaration=function(e,t){s("DeclareExportAllDeclaration",e,t)},t.assertDeclareExportDeclaration=function(e,t){s("DeclareExportDeclaration",e,t)},t.assertDeclareFunction=function(e,t){s("DeclareFunction",e,t)},t.assertDeclareInterface=function(e,t){s("DeclareInterface",e,t)},t.assertDeclareModule=function(e,t){s("DeclareModule",e,t)},t.assertDeclareModuleExports=function(e,t){s("DeclareModuleExports",e,t)},t.assertDeclareOpaqueType=function(e,t){s("DeclareOpaqueType",e,t)},t.assertDeclareTypeAlias=function(e,t){s("DeclareTypeAlias",e,t)},t.assertDeclareVariable=function(e,t){s("DeclareVariable",e,t)},t.assertDeclaredPredicate=function(e,t){s("DeclaredPredicate",e,t)},t.assertDecorator=function(e,t){s("Decorator",e,t)},t.assertDirective=function(e,t){s("Directive",e,t)},t.assertDirectiveLiteral=function(e,t){s("DirectiveLiteral",e,t)},t.assertDoExpression=function(e,t){s("DoExpression",e,t)},t.assertDoWhileStatement=function(e,t){s("DoWhileStatement",e,t)},t.assertEmptyStatement=function(e,t){s("EmptyStatement",e,t)},t.assertEmptyTypeAnnotation=function(e,t){s("EmptyTypeAnnotation",e,t)},t.assertEnumBody=function(e,t){s("EnumBody",e,t)},t.assertEnumBooleanBody=function(e,t){s("EnumBooleanBody",e,t)},t.assertEnumBooleanMember=function(e,t){s("EnumBooleanMember",e,t)},t.assertEnumDeclaration=function(e,t){s("EnumDeclaration",e,t)},t.assertEnumDefaultedMember=function(e,t){s("EnumDefaultedMember",e,t)},t.assertEnumMember=function(e,t){s("EnumMember",e,t)},t.assertEnumNumberBody=function(e,t){s("EnumNumberBody",e,t)},t.assertEnumNumberMember=function(e,t){s("EnumNumberMember",e,t)},t.assertEnumStringBody=function(e,t){s("EnumStringBody",e,t)},t.assertEnumStringMember=function(e,t){s("EnumStringMember",e,t)},t.assertEnumSymbolBody=function(e,t){s("EnumSymbolBody",e,t)},t.assertExistsTypeAnnotation=function(e,t){s("ExistsTypeAnnotation",e,t)},t.assertExportAllDeclaration=function(e,t){s("ExportAllDeclaration",e,t)},t.assertExportDeclaration=function(e,t){s("ExportDeclaration",e,t)},t.assertExportDefaultDeclaration=function(e,t){s("ExportDefaultDeclaration",e,t)},t.assertExportDefaultSpecifier=function(e,t){s("ExportDefaultSpecifier",e,t)},t.assertExportNamedDeclaration=function(e,t){s("ExportNamedDeclaration",e,t)},t.assertExportNamespaceSpecifier=function(e,t){s("ExportNamespaceSpecifier",e,t)},t.assertExportSpecifier=function(e,t){s("ExportSpecifier",e,t)},t.assertExpression=function(e,t){s("Expression",e,t)},t.assertExpressionStatement=function(e,t){s("ExpressionStatement",e,t)},t.assertExpressionWrapper=function(e,t){s("ExpressionWrapper",e,t)},t.assertFile=function(e,t){s("File",e,t)},t.assertFlow=function(e,t){s("Flow",e,t)},t.assertFlowBaseAnnotation=function(e,t){s("FlowBaseAnnotation",e,t)},t.assertFlowDeclaration=function(e,t){s("FlowDeclaration",e,t)},t.assertFlowPredicate=function(e,t){s("FlowPredicate",e,t)},t.assertFlowType=function(e,t){s("FlowType",e,t)},t.assertFor=function(e,t){s("For",e,t)},t.assertForInStatement=function(e,t){s("ForInStatement",e,t)},t.assertForOfStatement=function(e,t){s("ForOfStatement",e,t)},t.assertForStatement=function(e,t){s("ForStatement",e,t)},t.assertForXStatement=function(e,t){s("ForXStatement",e,t)},t.assertFunction=function(e,t){s("Function",e,t)},t.assertFunctionDeclaration=function(e,t){s("FunctionDeclaration",e,t)},t.assertFunctionExpression=function(e,t){s("FunctionExpression",e,t)},t.assertFunctionParameter=function(e,t){s("FunctionParameter",e,t)},t.assertFunctionParent=function(e,t){s("FunctionParent",e,t)},t.assertFunctionTypeAnnotation=function(e,t){s("FunctionTypeAnnotation",e,t)},t.assertFunctionTypeParam=function(e,t){s("FunctionTypeParam",e,t)},t.assertGenericTypeAnnotation=function(e,t){s("GenericTypeAnnotation",e,t)},t.assertIdentifier=function(e,t){s("Identifier",e,t)},t.assertIfStatement=function(e,t){s("IfStatement",e,t)},t.assertImmutable=function(e,t){s("Immutable",e,t)},t.assertImport=function(e,t){s("Import",e,t)},t.assertImportAttribute=function(e,t){s("ImportAttribute",e,t)},t.assertImportDeclaration=function(e,t){s("ImportDeclaration",e,t)},t.assertImportDefaultSpecifier=function(e,t){s("ImportDefaultSpecifier",e,t)},t.assertImportExpression=function(e,t){s("ImportExpression",e,t)},t.assertImportNamespaceSpecifier=function(e,t){s("ImportNamespaceSpecifier",e,t)},t.assertImportOrExportDeclaration=function(e,t){s("ImportOrExportDeclaration",e,t)},t.assertImportSpecifier=function(e,t){s("ImportSpecifier",e,t)},t.assertIndexedAccessType=function(e,t){s("IndexedAccessType",e,t)},t.assertInferredPredicate=function(e,t){s("InferredPredicate",e,t)},t.assertInterfaceDeclaration=function(e,t){s("InterfaceDeclaration",e,t)},t.assertInterfaceExtends=function(e,t){s("InterfaceExtends",e,t)},t.assertInterfaceTypeAnnotation=function(e,t){s("InterfaceTypeAnnotation",e,t)},t.assertInterpreterDirective=function(e,t){s("InterpreterDirective",e,t)},t.assertIntersectionTypeAnnotation=function(e,t){s("IntersectionTypeAnnotation",e,t)},t.assertJSX=function(e,t){s("JSX",e,t)},t.assertJSXAttribute=function(e,t){s("JSXAttribute",e,t)},t.assertJSXClosingElement=function(e,t){s("JSXClosingElement",e,t)},t.assertJSXClosingFragment=function(e,t){s("JSXClosingFragment",e,t)},t.assertJSXElement=function(e,t){s("JSXElement",e,t)},t.assertJSXEmptyExpression=function(e,t){s("JSXEmptyExpression",e,t)},t.assertJSXExpressionContainer=function(e,t){s("JSXExpressionContainer",e,t)},t.assertJSXFragment=function(e,t){s("JSXFragment",e,t)},t.assertJSXIdentifier=function(e,t){s("JSXIdentifier",e,t)},t.assertJSXMemberExpression=function(e,t){s("JSXMemberExpression",e,t)},t.assertJSXNamespacedName=function(e,t){s("JSXNamespacedName",e,t)},t.assertJSXOpeningElement=function(e,t){s("JSXOpeningElement",e,t)},t.assertJSXOpeningFragment=function(e,t){s("JSXOpeningFragment",e,t)},t.assertJSXSpreadAttribute=function(e,t){s("JSXSpreadAttribute",e,t)},t.assertJSXSpreadChild=function(e,t){s("JSXSpreadChild",e,t)},t.assertJSXText=function(e,t){s("JSXText",e,t)},t.assertLVal=function(e,t){s("LVal",e,t)},t.assertLabeledStatement=function(e,t){s("LabeledStatement",e,t)},t.assertLiteral=function(e,t){s("Literal",e,t)},t.assertLogicalExpression=function(e,t){s("LogicalExpression",e,t)},t.assertLoop=function(e,t){s("Loop",e,t)},t.assertMemberExpression=function(e,t){s("MemberExpression",e,t)},t.assertMetaProperty=function(e,t){s("MetaProperty",e,t)},t.assertMethod=function(e,t){s("Method",e,t)},t.assertMiscellaneous=function(e,t){s("Miscellaneous",e,t)},t.assertMixedTypeAnnotation=function(e,t){s("MixedTypeAnnotation",e,t)},t.assertModuleDeclaration=function(e,t){(0,n.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),s("ModuleDeclaration",e,t)},t.assertModuleExpression=function(e,t){s("ModuleExpression",e,t)},t.assertModuleSpecifier=function(e,t){s("ModuleSpecifier",e,t)},t.assertNewExpression=function(e,t){s("NewExpression",e,t)},t.assertNoop=function(e,t){s("Noop",e,t)},t.assertNullLiteral=function(e,t){s("NullLiteral",e,t)},t.assertNullLiteralTypeAnnotation=function(e,t){s("NullLiteralTypeAnnotation",e,t)},t.assertNullableTypeAnnotation=function(e,t){s("NullableTypeAnnotation",e,t)},t.assertNumberLiteral=function(e,t){(0,n.default)("assertNumberLiteral","assertNumericLiteral"),s("NumberLiteral",e,t)},t.assertNumberLiteralTypeAnnotation=function(e,t){s("NumberLiteralTypeAnnotation",e,t)},t.assertNumberTypeAnnotation=function(e,t){s("NumberTypeAnnotation",e,t)},t.assertNumericLiteral=function(e,t){s("NumericLiteral",e,t)},t.assertObjectExpression=function(e,t){s("ObjectExpression",e,t)},t.assertObjectMember=function(e,t){s("ObjectMember",e,t)},t.assertObjectMethod=function(e,t){s("ObjectMethod",e,t)},t.assertObjectPattern=function(e,t){s("ObjectPattern",e,t)},t.assertObjectProperty=function(e,t){s("ObjectProperty",e,t)},t.assertObjectTypeAnnotation=function(e,t){s("ObjectTypeAnnotation",e,t)},t.assertObjectTypeCallProperty=function(e,t){s("ObjectTypeCallProperty",e,t)},t.assertObjectTypeIndexer=function(e,t){s("ObjectTypeIndexer",e,t)},t.assertObjectTypeInternalSlot=function(e,t){s("ObjectTypeInternalSlot",e,t)},t.assertObjectTypeProperty=function(e,t){s("ObjectTypeProperty",e,t)},t.assertObjectTypeSpreadProperty=function(e,t){s("ObjectTypeSpreadProperty",e,t)},t.assertOpaqueType=function(e,t){s("OpaqueType",e,t)},t.assertOptionalCallExpression=function(e,t){s("OptionalCallExpression",e,t)},t.assertOptionalIndexedAccessType=function(e,t){s("OptionalIndexedAccessType",e,t)},t.assertOptionalMemberExpression=function(e,t){s("OptionalMemberExpression",e,t)},t.assertParenthesizedExpression=function(e,t){s("ParenthesizedExpression",e,t)},t.assertPattern=function(e,t){s("Pattern",e,t)},t.assertPatternLike=function(e,t){s("PatternLike",e,t)},t.assertPipelineBareFunction=function(e,t){s("PipelineBareFunction",e,t)},t.assertPipelinePrimaryTopicReference=function(e,t){s("PipelinePrimaryTopicReference",e,t)},t.assertPipelineTopicExpression=function(e,t){s("PipelineTopicExpression",e,t)},t.assertPlaceholder=function(e,t){s("Placeholder",e,t)},t.assertPrivate=function(e,t){s("Private",e,t)},t.assertPrivateName=function(e,t){s("PrivateName",e,t)},t.assertProgram=function(e,t){s("Program",e,t)},t.assertProperty=function(e,t){s("Property",e,t)},t.assertPureish=function(e,t){s("Pureish",e,t)},t.assertQualifiedTypeIdentifier=function(e,t){s("QualifiedTypeIdentifier",e,t)},t.assertRecordExpression=function(e,t){s("RecordExpression",e,t)},t.assertRegExpLiteral=function(e,t){s("RegExpLiteral",e,t)},t.assertRegexLiteral=function(e,t){(0,n.default)("assertRegexLiteral","assertRegExpLiteral"),s("RegexLiteral",e,t)},t.assertRestElement=function(e,t){s("RestElement",e,t)},t.assertRestProperty=function(e,t){(0,n.default)("assertRestProperty","assertRestElement"),s("RestProperty",e,t)},t.assertReturnStatement=function(e,t){s("ReturnStatement",e,t)},t.assertScopable=function(e,t){s("Scopable",e,t)},t.assertSequenceExpression=function(e,t){s("SequenceExpression",e,t)},t.assertSpreadElement=function(e,t){s("SpreadElement",e,t)},t.assertSpreadProperty=function(e,t){(0,n.default)("assertSpreadProperty","assertSpreadElement"),s("SpreadProperty",e,t)},t.assertStandardized=function(e,t){s("Standardized",e,t)},t.assertStatement=function(e,t){s("Statement",e,t)},t.assertStaticBlock=function(e,t){s("StaticBlock",e,t)},t.assertStringLiteral=function(e,t){s("StringLiteral",e,t)},t.assertStringLiteralTypeAnnotation=function(e,t){s("StringLiteralTypeAnnotation",e,t)},t.assertStringTypeAnnotation=function(e,t){s("StringTypeAnnotation",e,t)},t.assertSuper=function(e,t){s("Super",e,t)},t.assertSwitchCase=function(e,t){s("SwitchCase",e,t)},t.assertSwitchStatement=function(e,t){s("SwitchStatement",e,t)},t.assertSymbolTypeAnnotation=function(e,t){s("SymbolTypeAnnotation",e,t)},t.assertTSAnyKeyword=function(e,t){s("TSAnyKeyword",e,t)},t.assertTSArrayType=function(e,t){s("TSArrayType",e,t)},t.assertTSAsExpression=function(e,t){s("TSAsExpression",e,t)},t.assertTSBaseType=function(e,t){s("TSBaseType",e,t)},t.assertTSBigIntKeyword=function(e,t){s("TSBigIntKeyword",e,t)},t.assertTSBooleanKeyword=function(e,t){s("TSBooleanKeyword",e,t)},t.assertTSCallSignatureDeclaration=function(e,t){s("TSCallSignatureDeclaration",e,t)},t.assertTSConditionalType=function(e,t){s("TSConditionalType",e,t)},t.assertTSConstructSignatureDeclaration=function(e,t){s("TSConstructSignatureDeclaration",e,t)},t.assertTSConstructorType=function(e,t){s("TSConstructorType",e,t)},t.assertTSDeclareFunction=function(e,t){s("TSDeclareFunction",e,t)},t.assertTSDeclareMethod=function(e,t){s("TSDeclareMethod",e,t)},t.assertTSEntityName=function(e,t){s("TSEntityName",e,t)},t.assertTSEnumBody=function(e,t){s("TSEnumBody",e,t)},t.assertTSEnumDeclaration=function(e,t){s("TSEnumDeclaration",e,t)},t.assertTSEnumMember=function(e,t){s("TSEnumMember",e,t)},t.assertTSExportAssignment=function(e,t){s("TSExportAssignment",e,t)},t.assertTSExpressionWithTypeArguments=function(e,t){s("TSExpressionWithTypeArguments",e,t)},t.assertTSExternalModuleReference=function(e,t){s("TSExternalModuleReference",e,t)},t.assertTSFunctionType=function(e,t){s("TSFunctionType",e,t)},t.assertTSImportEqualsDeclaration=function(e,t){s("TSImportEqualsDeclaration",e,t)},t.assertTSImportType=function(e,t){s("TSImportType",e,t)},t.assertTSIndexSignature=function(e,t){s("TSIndexSignature",e,t)},t.assertTSIndexedAccessType=function(e,t){s("TSIndexedAccessType",e,t)},t.assertTSInferType=function(e,t){s("TSInferType",e,t)},t.assertTSInstantiationExpression=function(e,t){s("TSInstantiationExpression",e,t)},t.assertTSInterfaceBody=function(e,t){s("TSInterfaceBody",e,t)},t.assertTSInterfaceDeclaration=function(e,t){s("TSInterfaceDeclaration",e,t)},t.assertTSIntersectionType=function(e,t){s("TSIntersectionType",e,t)},t.assertTSIntrinsicKeyword=function(e,t){s("TSIntrinsicKeyword",e,t)},t.assertTSLiteralType=function(e,t){s("TSLiteralType",e,t)},t.assertTSMappedType=function(e,t){s("TSMappedType",e,t)},t.assertTSMethodSignature=function(e,t){s("TSMethodSignature",e,t)},t.assertTSModuleBlock=function(e,t){s("TSModuleBlock",e,t)},t.assertTSModuleDeclaration=function(e,t){s("TSModuleDeclaration",e,t)},t.assertTSNamedTupleMember=function(e,t){s("TSNamedTupleMember",e,t)},t.assertTSNamespaceExportDeclaration=function(e,t){s("TSNamespaceExportDeclaration",e,t)},t.assertTSNeverKeyword=function(e,t){s("TSNeverKeyword",e,t)},t.assertTSNonNullExpression=function(e,t){s("TSNonNullExpression",e,t)},t.assertTSNullKeyword=function(e,t){s("TSNullKeyword",e,t)},t.assertTSNumberKeyword=function(e,t){s("TSNumberKeyword",e,t)},t.assertTSObjectKeyword=function(e,t){s("TSObjectKeyword",e,t)},t.assertTSOptionalType=function(e,t){s("TSOptionalType",e,t)},t.assertTSParameterProperty=function(e,t){s("TSParameterProperty",e,t)},t.assertTSParenthesizedType=function(e,t){s("TSParenthesizedType",e,t)},t.assertTSPropertySignature=function(e,t){s("TSPropertySignature",e,t)},t.assertTSQualifiedName=function(e,t){s("TSQualifiedName",e,t)},t.assertTSRestType=function(e,t){s("TSRestType",e,t)},t.assertTSSatisfiesExpression=function(e,t){s("TSSatisfiesExpression",e,t)},t.assertTSStringKeyword=function(e,t){s("TSStringKeyword",e,t)},t.assertTSSymbolKeyword=function(e,t){s("TSSymbolKeyword",e,t)},t.assertTSTemplateLiteralType=function(e,t){s("TSTemplateLiteralType",e,t)},t.assertTSThisType=function(e,t){s("TSThisType",e,t)},t.assertTSTupleType=function(e,t){s("TSTupleType",e,t)},t.assertTSType=function(e,t){s("TSType",e,t)},t.assertTSTypeAliasDeclaration=function(e,t){s("TSTypeAliasDeclaration",e,t)},t.assertTSTypeAnnotation=function(e,t){s("TSTypeAnnotation",e,t)},t.assertTSTypeAssertion=function(e,t){s("TSTypeAssertion",e,t)},t.assertTSTypeElement=function(e,t){s("TSTypeElement",e,t)},t.assertTSTypeLiteral=function(e,t){s("TSTypeLiteral",e,t)},t.assertTSTypeOperator=function(e,t){s("TSTypeOperator",e,t)},t.assertTSTypeParameter=function(e,t){s("TSTypeParameter",e,t)},t.assertTSTypeParameterDeclaration=function(e,t){s("TSTypeParameterDeclaration",e,t)},t.assertTSTypeParameterInstantiation=function(e,t){s("TSTypeParameterInstantiation",e,t)},t.assertTSTypePredicate=function(e,t){s("TSTypePredicate",e,t)},t.assertTSTypeQuery=function(e,t){s("TSTypeQuery",e,t)},t.assertTSTypeReference=function(e,t){s("TSTypeReference",e,t)},t.assertTSUndefinedKeyword=function(e,t){s("TSUndefinedKeyword",e,t)},t.assertTSUnionType=function(e,t){s("TSUnionType",e,t)},t.assertTSUnknownKeyword=function(e,t){s("TSUnknownKeyword",e,t)},t.assertTSVoidKeyword=function(e,t){s("TSVoidKeyword",e,t)},t.assertTaggedTemplateExpression=function(e,t){s("TaggedTemplateExpression",e,t)},t.assertTemplateElement=function(e,t){s("TemplateElement",e,t)},t.assertTemplateLiteral=function(e,t){s("TemplateLiteral",e,t)},t.assertTerminatorless=function(e,t){s("Terminatorless",e,t)},t.assertThisExpression=function(e,t){s("ThisExpression",e,t)},t.assertThisTypeAnnotation=function(e,t){s("ThisTypeAnnotation",e,t)},t.assertThrowStatement=function(e,t){s("ThrowStatement",e,t)},t.assertTopicReference=function(e,t){s("TopicReference",e,t)},t.assertTryStatement=function(e,t){s("TryStatement",e,t)},t.assertTupleExpression=function(e,t){s("TupleExpression",e,t)},t.assertTupleTypeAnnotation=function(e,t){s("TupleTypeAnnotation",e,t)},t.assertTypeAlias=function(e,t){s("TypeAlias",e,t)},t.assertTypeAnnotation=function(e,t){s("TypeAnnotation",e,t)},t.assertTypeCastExpression=function(e,t){s("TypeCastExpression",e,t)},t.assertTypeParameter=function(e,t){s("TypeParameter",e,t)},t.assertTypeParameterDeclaration=function(e,t){s("TypeParameterDeclaration",e,t)},t.assertTypeParameterInstantiation=function(e,t){s("TypeParameterInstantiation",e,t)},t.assertTypeScript=function(e,t){s("TypeScript",e,t)},t.assertTypeofTypeAnnotation=function(e,t){s("TypeofTypeAnnotation",e,t)},t.assertUnaryExpression=function(e,t){s("UnaryExpression",e,t)},t.assertUnaryLike=function(e,t){s("UnaryLike",e,t)},t.assertUnionTypeAnnotation=function(e,t){s("UnionTypeAnnotation",e,t)},t.assertUpdateExpression=function(e,t){s("UpdateExpression",e,t)},t.assertUserWhitespacable=function(e,t){s("UserWhitespacable",e,t)},t.assertV8IntrinsicIdentifier=function(e,t){s("V8IntrinsicIdentifier",e,t)},t.assertVariableDeclaration=function(e,t){s("VariableDeclaration",e,t)},t.assertVariableDeclarator=function(e,t){s("VariableDeclarator",e,t)},t.assertVariance=function(e,t){s("Variance",e,t)},t.assertVoidPattern=function(e,t){s("VoidPattern",e,t)},t.assertVoidTypeAnnotation=function(e,t){s("VoidTypeAnnotation",e,t)},t.assertWhile=function(e,t){s("While",e,t)},t.assertWhileStatement=function(e,t){s("WhileStatement",e,t)},t.assertWithStatement=function(e,t){s("WithStatement",e,t)},t.assertYieldExpression=function(e,t){s("YieldExpression",e,t)};var r=i(80947),n=i(50231);function s(e,t,i){if(!(0,r.default)(e,t,i))throw Error(`Expected type "${e}" with option ${JSON.stringify(i)}, but instead got "${t.type}".`)}},95414(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let t=(0,n.default)(e);return 1===t.length?t[0]:(0,r.unionTypeAnnotation)(t)};var r=i(93806),n=i(54538)},56461(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(93806);t.default=function(e){switch(e){case"string":return(0,r.stringTypeAnnotation)();case"number":return(0,r.numberTypeAnnotation)();case"undefined":return(0,r.voidTypeAnnotation)();case"boolean":return(0,r.booleanTypeAnnotation)();case"function":return(0,r.genericTypeAnnotation)((0,r.identifier)("Function"));case"object":return(0,r.genericTypeAnnotation)((0,r.identifier)("Object"));case"symbol":return(0,r.genericTypeAnnotation)((0,r.identifier)("Symbol"));case"bigint":return(0,r.anyTypeAnnotation)()}throw Error("Invalid typeof value: "+e)}},93806(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(56223);Object.keys(r).forEach(function(e){"default"===e||"__esModule"===e||e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})});var n=i(44614);Object.keys(n).forEach(function(e){"default"===e||"__esModule"===e||e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}})})},56223(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.anyTypeAnnotation=function(){return{type:"AnyTypeAnnotation"}},t.argumentPlaceholder=function(){return{type:"ArgumentPlaceholder"}},t.arrayExpression=function(e=[]){let t={type:"ArrayExpression",elements:e};return a(o.ArrayExpression.elements,t,"elements",e,1),t},t.arrayPattern=function(e){let t={type:"ArrayPattern",elements:e};return a(o.ArrayPattern.elements,t,"elements",e,1),t},t.arrayTypeAnnotation=function(e){let t={type:"ArrayTypeAnnotation",elementType:e};return a(o.ArrayTypeAnnotation.elementType,t,"elementType",e,1),t},t.arrowFunctionExpression=function(e,t,i=!1){let r={type:"ArrowFunctionExpression",params:e,body:t,async:i,expression:null},n=o.ArrowFunctionExpression;return a(n.params,r,"params",e,1),a(n.body,r,"body",t,1),a(n.async,r,"async",i),r},t.assignmentExpression=function(e,t,i){let r={type:"AssignmentExpression",operator:e,left:t,right:i},n=o.AssignmentExpression;return a(n.operator,r,"operator",e),a(n.left,r,"left",t,1),a(n.right,r,"right",i,1),r},t.assignmentPattern=function(e,t){let i={type:"AssignmentPattern",left:e,right:t},r=o.AssignmentPattern;return a(r.left,i,"left",e,1),a(r.right,i,"right",t,1),i},t.awaitExpression=function(e){let t={type:"AwaitExpression",argument:e};return a(o.AwaitExpression.argument,t,"argument",e,1),t},t.bigIntLiteral=function(e){"bigint"==typeof e&&(e=e.toString());let t={type:"BigIntLiteral",value:e};return a(o.BigIntLiteral.value,t,"value",e),t},t.binaryExpression=function(e,t,i){let r={type:"BinaryExpression",operator:e,left:t,right:i},n=o.BinaryExpression;return a(n.operator,r,"operator",e),a(n.left,r,"left",t,1),a(n.right,r,"right",i,1),r},t.bindExpression=function(e,t){let i={type:"BindExpression",object:e,callee:t},r=o.BindExpression;return a(r.object,i,"object",e,1),a(r.callee,i,"callee",t,1),i},t.blockStatement=function(e,t=[]){let i={type:"BlockStatement",body:e,directives:t},r=o.BlockStatement;return a(r.body,i,"body",e,1),a(r.directives,i,"directives",t,1),i},t.booleanLiteral=function(e){let t={type:"BooleanLiteral",value:e};return a(o.BooleanLiteral.value,t,"value",e),t},t.booleanLiteralTypeAnnotation=function(e){let t={type:"BooleanLiteralTypeAnnotation",value:e};return a(o.BooleanLiteralTypeAnnotation.value,t,"value",e),t},t.booleanTypeAnnotation=function(){return{type:"BooleanTypeAnnotation"}},t.breakStatement=function(e=null){let t={type:"BreakStatement",label:e};return a(o.BreakStatement.label,t,"label",e,1),t},t.callExpression=function(e,t){let i={type:"CallExpression",callee:e,arguments:t},r=o.CallExpression;return a(r.callee,i,"callee",e,1),a(r.arguments,i,"arguments",t,1),i},t.catchClause=function(e=null,t){let i={type:"CatchClause",param:e,body:t},r=o.CatchClause;return a(r.param,i,"param",e,1),a(r.body,i,"body",t,1),i},t.classAccessorProperty=function(e,t=null,i=null,r=null,n=!1,s=!1){let l={type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:i,decorators:r,computed:n,static:s},p=o.ClassAccessorProperty;return a(p.key,l,"key",e,1),a(p.value,l,"value",t,1),a(p.typeAnnotation,l,"typeAnnotation",i,1),a(p.decorators,l,"decorators",r,1),a(p.computed,l,"computed",n),a(p.static,l,"static",s),l},t.classBody=function(e){let t={type:"ClassBody",body:e};return a(o.ClassBody.body,t,"body",e,1),t},t.classDeclaration=function(e=null,t=null,i,r=null){let n={type:"ClassDeclaration",id:e,superClass:t,body:i,decorators:r},s=o.ClassDeclaration;return a(s.id,n,"id",e,1),a(s.superClass,n,"superClass",t,1),a(s.body,n,"body",i,1),a(s.decorators,n,"decorators",r,1),n},t.classExpression=function(e=null,t=null,i,r=null){let n={type:"ClassExpression",id:e,superClass:t,body:i,decorators:r},s=o.ClassExpression;return a(s.id,n,"id",e,1),a(s.superClass,n,"superClass",t,1),a(s.body,n,"body",i,1),a(s.decorators,n,"decorators",r,1),n},t.classImplements=function(e,t=null){let i={type:"ClassImplements",id:e,typeParameters:t},r=o.ClassImplements;return a(r.id,i,"id",e,1),a(r.typeParameters,i,"typeParameters",t,1),i},t.classMethod=function(e="method",t,i,r,n=!1,s=!1,l=!1,p=!1){let u={type:"ClassMethod",kind:e,key:t,params:i,body:r,computed:n,static:s,generator:l,async:p},c=o.ClassMethod;return a(c.kind,u,"kind",e),a(c.key,u,"key",t,1),a(c.params,u,"params",i,1),a(c.body,u,"body",r,1),a(c.computed,u,"computed",n),a(c.static,u,"static",s),a(c.generator,u,"generator",l),a(c.async,u,"async",p),u},t.classPrivateMethod=function(e="method",t,i,r,n=!1){let s={type:"ClassPrivateMethod",kind:e,key:t,params:i,body:r,static:n},l=o.ClassPrivateMethod;return a(l.kind,s,"kind",e),a(l.key,s,"key",t,1),a(l.params,s,"params",i,1),a(l.body,s,"body",r,1),a(l.static,s,"static",n),s},t.classPrivateProperty=function(e,t=null,i=null,r=!1){let n={type:"ClassPrivateProperty",key:e,value:t,decorators:i,static:r},s=o.ClassPrivateProperty;return a(s.key,n,"key",e,1),a(s.value,n,"value",t,1),a(s.decorators,n,"decorators",i,1),a(s.static,n,"static",r),n},t.classProperty=function(e,t=null,i=null,r=null,n=!1,s=!1){let l={type:"ClassProperty",key:e,value:t,typeAnnotation:i,decorators:r,computed:n,static:s},p=o.ClassProperty;return a(p.key,l,"key",e,1),a(p.value,l,"value",t,1),a(p.typeAnnotation,l,"typeAnnotation",i,1),a(p.decorators,l,"decorators",r,1),a(p.computed,l,"computed",n),a(p.static,l,"static",s),l},t.conditionalExpression=function(e,t,i){let r={type:"ConditionalExpression",test:e,consequent:t,alternate:i},n=o.ConditionalExpression;return a(n.test,r,"test",e,1),a(n.consequent,r,"consequent",t,1),a(n.alternate,r,"alternate",i,1),r},t.continueStatement=function(e=null){let t={type:"ContinueStatement",label:e};return a(o.ContinueStatement.label,t,"label",e,1),t},t.debuggerStatement=function(){return{type:"DebuggerStatement"}},t.decimalLiteral=function(e){let t={type:"DecimalLiteral",value:e};return a(o.DecimalLiteral.value,t,"value",e),t},t.declareClass=function(e,t=null,i=null,r){let n={type:"DeclareClass",id:e,typeParameters:t,extends:i,body:r},s=o.DeclareClass;return a(s.id,n,"id",e,1),a(s.typeParameters,n,"typeParameters",t,1),a(s.extends,n,"extends",i,1),a(s.body,n,"body",r,1),n},t.declareExportAllDeclaration=function(e,t=null){let i={type:"DeclareExportAllDeclaration",source:e,attributes:t},r=o.DeclareExportAllDeclaration;return a(r.source,i,"source",e,1),a(r.attributes,i,"attributes",t,1),i},t.declareExportDeclaration=function(e=null,t=null,i=null,r=null){let n={type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:i,attributes:r},s=o.DeclareExportDeclaration;return a(s.declaration,n,"declaration",e,1),a(s.specifiers,n,"specifiers",t,1),a(s.source,n,"source",i,1),a(s.attributes,n,"attributes",r,1),n},t.declareFunction=function(e){let t={type:"DeclareFunction",id:e};return a(o.DeclareFunction.id,t,"id",e,1),t},t.declareInterface=function(e,t=null,i=null,r){let n={type:"DeclareInterface",id:e,typeParameters:t,extends:i,body:r},s=o.DeclareInterface;return a(s.id,n,"id",e,1),a(s.typeParameters,n,"typeParameters",t,1),a(s.extends,n,"extends",i,1),a(s.body,n,"body",r,1),n},t.declareModule=function(e,t,i=null){let r={type:"DeclareModule",id:e,body:t,kind:i},n=o.DeclareModule;return a(n.id,r,"id",e,1),a(n.body,r,"body",t,1),a(n.kind,r,"kind",i),r},t.declareModuleExports=function(e){let t={type:"DeclareModuleExports",typeAnnotation:e};return a(o.DeclareModuleExports.typeAnnotation,t,"typeAnnotation",e,1),t},t.declareOpaqueType=function(e,t=null,i=null){let r={type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:i},n=o.DeclareOpaqueType;return a(n.id,r,"id",e,1),a(n.typeParameters,r,"typeParameters",t,1),a(n.supertype,r,"supertype",i,1),r},t.declareTypeAlias=function(e,t=null,i){let r={type:"DeclareTypeAlias",id:e,typeParameters:t,right:i},n=o.DeclareTypeAlias;return a(n.id,r,"id",e,1),a(n.typeParameters,r,"typeParameters",t,1),a(n.right,r,"right",i,1),r},t.declareVariable=function(e){let t={type:"DeclareVariable",id:e};return a(o.DeclareVariable.id,t,"id",e,1),t},t.declaredPredicate=function(e){let t={type:"DeclaredPredicate",value:e};return a(o.DeclaredPredicate.value,t,"value",e,1),t},t.decorator=function(e){let t={type:"Decorator",expression:e};return a(o.Decorator.expression,t,"expression",e,1),t},t.directive=function(e){let t={type:"Directive",value:e};return a(o.Directive.value,t,"value",e,1),t},t.directiveLiteral=function(e){let t={type:"DirectiveLiteral",value:e};return a(o.DirectiveLiteral.value,t,"value",e),t},t.doExpression=function(e,t=!1){let i={type:"DoExpression",body:e,async:t},r=o.DoExpression;return a(r.body,i,"body",e,1),a(r.async,i,"async",t),i},t.doWhileStatement=function(e,t){let i={type:"DoWhileStatement",test:e,body:t},r=o.DoWhileStatement;return a(r.test,i,"test",e,1),a(r.body,i,"body",t,1),i},t.emptyStatement=function(){return{type:"EmptyStatement"}},t.emptyTypeAnnotation=function(){return{type:"EmptyTypeAnnotation"}},t.enumBooleanBody=function(e){let t={type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null};return a(o.EnumBooleanBody.members,t,"members",e,1),t},t.enumBooleanMember=function(e){let t={type:"EnumBooleanMember",id:e,init:null};return a(o.EnumBooleanMember.id,t,"id",e,1),t},t.enumDeclaration=function(e,t){let i={type:"EnumDeclaration",id:e,body:t},r=o.EnumDeclaration;return a(r.id,i,"id",e,1),a(r.body,i,"body",t,1),i},t.enumDefaultedMember=function(e){let t={type:"EnumDefaultedMember",id:e};return a(o.EnumDefaultedMember.id,t,"id",e,1),t},t.enumNumberBody=function(e){let t={type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null};return a(o.EnumNumberBody.members,t,"members",e,1),t},t.enumNumberMember=function(e,t){let i={type:"EnumNumberMember",id:e,init:t},r=o.EnumNumberMember;return a(r.id,i,"id",e,1),a(r.init,i,"init",t,1),i},t.enumStringBody=function(e){let t={type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null};return a(o.EnumStringBody.members,t,"members",e,1),t},t.enumStringMember=function(e,t){let i={type:"EnumStringMember",id:e,init:t},r=o.EnumStringMember;return a(r.id,i,"id",e,1),a(r.init,i,"init",t,1),i},t.enumSymbolBody=function(e){let t={type:"EnumSymbolBody",members:e,hasUnknownMembers:null};return a(o.EnumSymbolBody.members,t,"members",e,1),t},t.existsTypeAnnotation=function(){return{type:"ExistsTypeAnnotation"}},t.exportAllDeclaration=function(e){let t={type:"ExportAllDeclaration",source:e};return a(o.ExportAllDeclaration.source,t,"source",e,1),t},t.exportDefaultDeclaration=function(e){let t={type:"ExportDefaultDeclaration",declaration:e};return a(o.ExportDefaultDeclaration.declaration,t,"declaration",e,1),t},t.exportDefaultSpecifier=function(e){let t={type:"ExportDefaultSpecifier",exported:e};return a(o.ExportDefaultSpecifier.exported,t,"exported",e,1),t},t.exportNamedDeclaration=function(e=null,t=[],i=null){let r={type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:i},n=o.ExportNamedDeclaration;return a(n.declaration,r,"declaration",e,1),a(n.specifiers,r,"specifiers",t,1),a(n.source,r,"source",i,1),r},t.exportNamespaceSpecifier=function(e){let t={type:"ExportNamespaceSpecifier",exported:e};return a(o.ExportNamespaceSpecifier.exported,t,"exported",e,1),t},t.exportSpecifier=function(e,t){let i={type:"ExportSpecifier",local:e,exported:t},r=o.ExportSpecifier;return a(r.local,i,"local",e,1),a(r.exported,i,"exported",t,1),i},t.expressionStatement=function(e){let t={type:"ExpressionStatement",expression:e};return a(o.ExpressionStatement.expression,t,"expression",e,1),t},t.file=function(e,t=null,i=null){let r={type:"File",program:e,comments:t,tokens:i},n=o.File;return a(n.program,r,"program",e,1),a(n.comments,r,"comments",t,1),a(n.tokens,r,"tokens",i),r},t.forInStatement=function(e,t,i){let r={type:"ForInStatement",left:e,right:t,body:i},n=o.ForInStatement;return a(n.left,r,"left",e,1),a(n.right,r,"right",t,1),a(n.body,r,"body",i,1),r},t.forOfStatement=function(e,t,i,r=!1){let n={type:"ForOfStatement",left:e,right:t,body:i,await:r},s=o.ForOfStatement;return a(s.left,n,"left",e,1),a(s.right,n,"right",t,1),a(s.body,n,"body",i,1),a(s.await,n,"await",r),n},t.forStatement=function(e=null,t=null,i=null,r){let n={type:"ForStatement",init:e,test:t,update:i,body:r},s=o.ForStatement;return a(s.init,n,"init",e,1),a(s.test,n,"test",t,1),a(s.update,n,"update",i,1),a(s.body,n,"body",r,1),n},t.functionDeclaration=function(e=null,t,i,r=!1,n=!1){let s={type:"FunctionDeclaration",id:e,params:t,body:i,generator:r,async:n},l=o.FunctionDeclaration;return a(l.id,s,"id",e,1),a(l.params,s,"params",t,1),a(l.body,s,"body",i,1),a(l.generator,s,"generator",r),a(l.async,s,"async",n),s},t.functionExpression=function(e=null,t,i,r=!1,n=!1){let s={type:"FunctionExpression",id:e,params:t,body:i,generator:r,async:n},l=o.FunctionExpression;return a(l.id,s,"id",e,1),a(l.params,s,"params",t,1),a(l.body,s,"body",i,1),a(l.generator,s,"generator",r),a(l.async,s,"async",n),s},t.functionTypeAnnotation=function(e=null,t,i=null,r){let n={type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:i,returnType:r},s=o.FunctionTypeAnnotation;return a(s.typeParameters,n,"typeParameters",e,1),a(s.params,n,"params",t,1),a(s.rest,n,"rest",i,1),a(s.returnType,n,"returnType",r,1),n},t.functionTypeParam=function(e=null,t){let i={type:"FunctionTypeParam",name:e,typeAnnotation:t},r=o.FunctionTypeParam;return a(r.name,i,"name",e,1),a(r.typeAnnotation,i,"typeAnnotation",t,1),i},t.genericTypeAnnotation=function(e,t=null){let i={type:"GenericTypeAnnotation",id:e,typeParameters:t},r=o.GenericTypeAnnotation;return a(r.id,i,"id",e,1),a(r.typeParameters,i,"typeParameters",t,1),i},t.identifier=function(e){let t={type:"Identifier",name:e};return a(o.Identifier.name,t,"name",e),t},t.ifStatement=function(e,t,i=null){let r={type:"IfStatement",test:e,consequent:t,alternate:i},n=o.IfStatement;return a(n.test,r,"test",e,1),a(n.consequent,r,"consequent",t,1),a(n.alternate,r,"alternate",i,1),r},t.import=function(){return{type:"Import"}},t.importAttribute=function(e,t){let i={type:"ImportAttribute",key:e,value:t},r=o.ImportAttribute;return a(r.key,i,"key",e,1),a(r.value,i,"value",t,1),i},t.importDeclaration=function(e,t){let i={type:"ImportDeclaration",specifiers:e,source:t},r=o.ImportDeclaration;return a(r.specifiers,i,"specifiers",e,1),a(r.source,i,"source",t,1),i},t.importDefaultSpecifier=function(e){let t={type:"ImportDefaultSpecifier",local:e};return a(o.ImportDefaultSpecifier.local,t,"local",e,1),t},t.importExpression=function(e,t=null){let i={type:"ImportExpression",source:e,options:t},r=o.ImportExpression;return a(r.source,i,"source",e,1),a(r.options,i,"options",t,1),i},t.importNamespaceSpecifier=function(e){let t={type:"ImportNamespaceSpecifier",local:e};return a(o.ImportNamespaceSpecifier.local,t,"local",e,1),t},t.importSpecifier=function(e,t){let i={type:"ImportSpecifier",local:e,imported:t},r=o.ImportSpecifier;return a(r.local,i,"local",e,1),a(r.imported,i,"imported",t,1),i},t.indexedAccessType=function(e,t){let i={type:"IndexedAccessType",objectType:e,indexType:t},r=o.IndexedAccessType;return a(r.objectType,i,"objectType",e,1),a(r.indexType,i,"indexType",t,1),i},t.inferredPredicate=function(){return{type:"InferredPredicate"}},t.interfaceDeclaration=function(e,t=null,i=null,r){let n={type:"InterfaceDeclaration",id:e,typeParameters:t,extends:i,body:r},s=o.InterfaceDeclaration;return a(s.id,n,"id",e,1),a(s.typeParameters,n,"typeParameters",t,1),a(s.extends,n,"extends",i,1),a(s.body,n,"body",r,1),n},t.interfaceExtends=function(e,t=null){let i={type:"InterfaceExtends",id:e,typeParameters:t},r=o.InterfaceExtends;return a(r.id,i,"id",e,1),a(r.typeParameters,i,"typeParameters",t,1),i},t.interfaceTypeAnnotation=function(e=null,t){let i={type:"InterfaceTypeAnnotation",extends:e,body:t},r=o.InterfaceTypeAnnotation;return a(r.extends,i,"extends",e,1),a(r.body,i,"body",t,1),i},t.interpreterDirective=function(e){let t={type:"InterpreterDirective",value:e};return a(o.InterpreterDirective.value,t,"value",e),t},t.intersectionTypeAnnotation=function(e){let t={type:"IntersectionTypeAnnotation",types:e};return a(o.IntersectionTypeAnnotation.types,t,"types",e,1),t},t.jSXAttribute=t.jsxAttribute=function(e,t=null){let i={type:"JSXAttribute",name:e,value:t},r=o.JSXAttribute;return a(r.name,i,"name",e,1),a(r.value,i,"value",t,1),i},t.jSXClosingElement=t.jsxClosingElement=function(e){let t={type:"JSXClosingElement",name:e};return a(o.JSXClosingElement.name,t,"name",e,1),t},t.jSXClosingFragment=t.jsxClosingFragment=function(){return{type:"JSXClosingFragment"}},t.jSXElement=t.jsxElement=function(e,t=null,i,r=null){let n={type:"JSXElement",openingElement:e,closingElement:t,children:i,selfClosing:r},s=o.JSXElement;return a(s.openingElement,n,"openingElement",e,1),a(s.closingElement,n,"closingElement",t,1),a(s.children,n,"children",i,1),a(s.selfClosing,n,"selfClosing",r),n},t.jSXEmptyExpression=t.jsxEmptyExpression=function(){return{type:"JSXEmptyExpression"}},t.jSXExpressionContainer=t.jsxExpressionContainer=function(e){let t={type:"JSXExpressionContainer",expression:e};return a(o.JSXExpressionContainer.expression,t,"expression",e,1),t},t.jSXFragment=t.jsxFragment=function(e,t,i){let r={type:"JSXFragment",openingFragment:e,closingFragment:t,children:i},n=o.JSXFragment;return a(n.openingFragment,r,"openingFragment",e,1),a(n.closingFragment,r,"closingFragment",t,1),a(n.children,r,"children",i,1),r},t.jSXIdentifier=t.jsxIdentifier=function(e){let t={type:"JSXIdentifier",name:e};return a(o.JSXIdentifier.name,t,"name",e),t},t.jSXMemberExpression=t.jsxMemberExpression=function(e,t){let i={type:"JSXMemberExpression",object:e,property:t},r=o.JSXMemberExpression;return a(r.object,i,"object",e,1),a(r.property,i,"property",t,1),i},t.jSXNamespacedName=t.jsxNamespacedName=function(e,t){let i={type:"JSXNamespacedName",namespace:e,name:t},r=o.JSXNamespacedName;return a(r.namespace,i,"namespace",e,1),a(r.name,i,"name",t,1),i},t.jSXOpeningElement=t.jsxOpeningElement=function(e,t,i=!1){let r={type:"JSXOpeningElement",name:e,attributes:t,selfClosing:i},n=o.JSXOpeningElement;return a(n.name,r,"name",e,1),a(n.attributes,r,"attributes",t,1),a(n.selfClosing,r,"selfClosing",i),r},t.jSXOpeningFragment=t.jsxOpeningFragment=function(){return{type:"JSXOpeningFragment"}},t.jSXSpreadAttribute=t.jsxSpreadAttribute=function(e){let t={type:"JSXSpreadAttribute",argument:e};return a(o.JSXSpreadAttribute.argument,t,"argument",e,1),t},t.jSXSpreadChild=t.jsxSpreadChild=function(e){let t={type:"JSXSpreadChild",expression:e};return a(o.JSXSpreadChild.expression,t,"expression",e,1),t},t.jSXText=t.jsxText=function(e){let t={type:"JSXText",value:e};return a(o.JSXText.value,t,"value",e),t},t.labeledStatement=function(e,t){let i={type:"LabeledStatement",label:e,body:t},r=o.LabeledStatement;return a(r.label,i,"label",e,1),a(r.body,i,"body",t,1),i},t.logicalExpression=function(e,t,i){let r={type:"LogicalExpression",operator:e,left:t,right:i},n=o.LogicalExpression;return a(n.operator,r,"operator",e),a(n.left,r,"left",t,1),a(n.right,r,"right",i,1),r},t.memberExpression=function(e,t,i=!1,r=null){let n={type:"MemberExpression",object:e,property:t,computed:i,optional:r},s=o.MemberExpression;return a(s.object,n,"object",e,1),a(s.property,n,"property",t,1),a(s.computed,n,"computed",i),a(s.optional,n,"optional",r),n},t.metaProperty=function(e,t){let i={type:"MetaProperty",meta:e,property:t},r=o.MetaProperty;return a(r.meta,i,"meta",e,1),a(r.property,i,"property",t,1),i},t.mixedTypeAnnotation=function(){return{type:"MixedTypeAnnotation"}},t.moduleExpression=function(e){let t={type:"ModuleExpression",body:e};return a(o.ModuleExpression.body,t,"body",e,1),t},t.newExpression=function(e,t){let i={type:"NewExpression",callee:e,arguments:t},r=o.NewExpression;return a(r.callee,i,"callee",e,1),a(r.arguments,i,"arguments",t,1),i},t.noop=function(){return{type:"Noop"}},t.nullLiteral=function(){return{type:"NullLiteral"}},t.nullLiteralTypeAnnotation=function(){return{type:"NullLiteralTypeAnnotation"}},t.nullableTypeAnnotation=function(e){let t={type:"NullableTypeAnnotation",typeAnnotation:e};return a(o.NullableTypeAnnotation.typeAnnotation,t,"typeAnnotation",e,1),t},t.numberLiteral=function(e){return(0,n.default)("NumberLiteral","NumericLiteral","The node type "),l(e)},t.numberLiteralTypeAnnotation=function(e){let t={type:"NumberLiteralTypeAnnotation",value:e};return a(o.NumberLiteralTypeAnnotation.value,t,"value",e),t},t.numberTypeAnnotation=function(){return{type:"NumberTypeAnnotation"}},t.numericLiteral=l,t.objectExpression=function(e){let t={type:"ObjectExpression",properties:e};return a(o.ObjectExpression.properties,t,"properties",e,1),t},t.objectMethod=function(e="method",t,i,r,n=!1,s=!1,l=!1){let p={type:"ObjectMethod",kind:e,key:t,params:i,body:r,computed:n,generator:s,async:l},u=o.ObjectMethod;return a(u.kind,p,"kind",e),a(u.key,p,"key",t,1),a(u.params,p,"params",i,1),a(u.body,p,"body",r,1),a(u.computed,p,"computed",n),a(u.generator,p,"generator",s),a(u.async,p,"async",l),p},t.objectPattern=function(e){let t={type:"ObjectPattern",properties:e};return a(o.ObjectPattern.properties,t,"properties",e,1),t},t.objectProperty=function(e,t,i=!1,r=!1,n=null){let s={type:"ObjectProperty",key:e,value:t,computed:i,shorthand:r,decorators:n},l=o.ObjectProperty;return a(l.key,s,"key",e,1),a(l.value,s,"value",t,1),a(l.computed,s,"computed",i),a(l.shorthand,s,"shorthand",r),a(l.decorators,s,"decorators",n,1),s},t.objectTypeAnnotation=function(e,t=[],i=[],r=[],n=!1){let s={type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:i,internalSlots:r,exact:n},l=o.ObjectTypeAnnotation;return a(l.properties,s,"properties",e,1),a(l.indexers,s,"indexers",t,1),a(l.callProperties,s,"callProperties",i,1),a(l.internalSlots,s,"internalSlots",r,1),a(l.exact,s,"exact",n),s},t.objectTypeCallProperty=function(e){let t={type:"ObjectTypeCallProperty",value:e,static:null};return a(o.ObjectTypeCallProperty.value,t,"value",e,1),t},t.objectTypeIndexer=function(e=null,t,i,r=null){let n={type:"ObjectTypeIndexer",id:e,key:t,value:i,variance:r,static:null},s=o.ObjectTypeIndexer;return a(s.id,n,"id",e,1),a(s.key,n,"key",t,1),a(s.value,n,"value",i,1),a(s.variance,n,"variance",r,1),n},t.objectTypeInternalSlot=function(e,t,i,r,n){let s={type:"ObjectTypeInternalSlot",id:e,value:t,optional:i,static:r,method:n},l=o.ObjectTypeInternalSlot;return a(l.id,s,"id",e,1),a(l.value,s,"value",t,1),a(l.optional,s,"optional",i),a(l.static,s,"static",r),a(l.method,s,"method",n),s},t.objectTypeProperty=function(e,t,i=null){let r={type:"ObjectTypeProperty",key:e,value:t,variance:i,kind:null,method:null,optional:null,proto:null,static:null},n=o.ObjectTypeProperty;return a(n.key,r,"key",e,1),a(n.value,r,"value",t,1),a(n.variance,r,"variance",i,1),r},t.objectTypeSpreadProperty=function(e){let t={type:"ObjectTypeSpreadProperty",argument:e};return a(o.ObjectTypeSpreadProperty.argument,t,"argument",e,1),t},t.opaqueType=function(e,t=null,i=null,r){let n={type:"OpaqueType",id:e,typeParameters:t,supertype:i,impltype:r},s=o.OpaqueType;return a(s.id,n,"id",e,1),a(s.typeParameters,n,"typeParameters",t,1),a(s.supertype,n,"supertype",i,1),a(s.impltype,n,"impltype",r,1),n},t.optionalCallExpression=function(e,t,i){let r={type:"OptionalCallExpression",callee:e,arguments:t,optional:i},n=o.OptionalCallExpression;return a(n.callee,r,"callee",e,1),a(n.arguments,r,"arguments",t,1),a(n.optional,r,"optional",i),r},t.optionalIndexedAccessType=function(e,t){let i={type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:null},r=o.OptionalIndexedAccessType;return a(r.objectType,i,"objectType",e,1),a(r.indexType,i,"indexType",t,1),i},t.optionalMemberExpression=function(e,t,i=!1,r){let n={type:"OptionalMemberExpression",object:e,property:t,computed:i,optional:r},s=o.OptionalMemberExpression;return a(s.object,n,"object",e,1),a(s.property,n,"property",t,1),a(s.computed,n,"computed",i),a(s.optional,n,"optional",r),n},t.parenthesizedExpression=function(e){let t={type:"ParenthesizedExpression",expression:e};return a(o.ParenthesizedExpression.expression,t,"expression",e,1),t},t.pipelineBareFunction=function(e){let t={type:"PipelineBareFunction",callee:e};return a(o.PipelineBareFunction.callee,t,"callee",e,1),t},t.pipelinePrimaryTopicReference=function(){return{type:"PipelinePrimaryTopicReference"}},t.pipelineTopicExpression=function(e){let t={type:"PipelineTopicExpression",expression:e};return a(o.PipelineTopicExpression.expression,t,"expression",e,1),t},t.placeholder=function(e,t){let i={type:"Placeholder",expectedNode:e,name:t},r=o.Placeholder;return a(r.expectedNode,i,"expectedNode",e),a(r.name,i,"name",t,1),i},t.privateName=function(e){let t={type:"PrivateName",id:e};return a(o.PrivateName.id,t,"id",e,1),t},t.program=function(e,t=[],i="script",r=null){let n={type:"Program",body:e,directives:t,sourceType:i,interpreter:r},s=o.Program;return a(s.body,n,"body",e,1),a(s.directives,n,"directives",t,1),a(s.sourceType,n,"sourceType",i),a(s.interpreter,n,"interpreter",r,1),n},t.qualifiedTypeIdentifier=function(e,t){let i={type:"QualifiedTypeIdentifier",id:e,qualification:t},r=o.QualifiedTypeIdentifier;return a(r.id,i,"id",e,1),a(r.qualification,i,"qualification",t,1),i},t.recordExpression=function(e){let t={type:"RecordExpression",properties:e};return a(o.RecordExpression.properties,t,"properties",e,1),t},t.regExpLiteral=p,t.regexLiteral=function(e,t=""){return(0,n.default)("RegexLiteral","RegExpLiteral","The node type "),p(e,t)},t.restElement=u,t.restProperty=function(e){return(0,n.default)("RestProperty","RestElement","The node type "),u(e)},t.returnStatement=function(e=null){let t={type:"ReturnStatement",argument:e};return a(o.ReturnStatement.argument,t,"argument",e,1),t},t.sequenceExpression=function(e){let t={type:"SequenceExpression",expressions:e};return a(o.SequenceExpression.expressions,t,"expressions",e,1),t},t.spreadElement=c,t.spreadProperty=function(e){return(0,n.default)("SpreadProperty","SpreadElement","The node type "),c(e)},t.staticBlock=function(e){let t={type:"StaticBlock",body:e};return a(o.StaticBlock.body,t,"body",e,1),t},t.stringLiteral=function(e){let t={type:"StringLiteral",value:e};return a(o.StringLiteral.value,t,"value",e),t},t.stringLiteralTypeAnnotation=function(e){let t={type:"StringLiteralTypeAnnotation",value:e};return a(o.StringLiteralTypeAnnotation.value,t,"value",e),t},t.stringTypeAnnotation=function(){return{type:"StringTypeAnnotation"}},t.super=function(){return{type:"Super"}},t.switchCase=function(e=null,t){let i={type:"SwitchCase",test:e,consequent:t},r=o.SwitchCase;return a(r.test,i,"test",e,1),a(r.consequent,i,"consequent",t,1),i},t.switchStatement=function(e,t){let i={type:"SwitchStatement",discriminant:e,cases:t},r=o.SwitchStatement;return a(r.discriminant,i,"discriminant",e,1),a(r.cases,i,"cases",t,1),i},t.symbolTypeAnnotation=function(){return{type:"SymbolTypeAnnotation"}},t.taggedTemplateExpression=function(e,t){let i={type:"TaggedTemplateExpression",tag:e,quasi:t},r=o.TaggedTemplateExpression;return a(r.tag,i,"tag",e,1),a(r.quasi,i,"quasi",t,1),i},t.templateElement=function(e,t=!1){let i={type:"TemplateElement",value:e,tail:t},r=o.TemplateElement;return a(r.value,i,"value",e),a(r.tail,i,"tail",t),i},t.templateLiteral=function(e,t){let i={type:"TemplateLiteral",quasis:e,expressions:t},r=o.TemplateLiteral;return a(r.quasis,i,"quasis",e,1),a(r.expressions,i,"expressions",t,1),i},t.thisExpression=function(){return{type:"ThisExpression"}},t.thisTypeAnnotation=function(){return{type:"ThisTypeAnnotation"}},t.throwStatement=function(e){let t={type:"ThrowStatement",argument:e};return a(o.ThrowStatement.argument,t,"argument",e,1),t},t.topicReference=function(){return{type:"TopicReference"}},t.tryStatement=function(e,t=null,i=null){let r={type:"TryStatement",block:e,handler:t,finalizer:i},n=o.TryStatement;return a(n.block,r,"block",e,1),a(n.handler,r,"handler",t,1),a(n.finalizer,r,"finalizer",i,1),r},t.tSAnyKeyword=t.tsAnyKeyword=function(){return{type:"TSAnyKeyword"}},t.tSArrayType=t.tsArrayType=function(e){let t={type:"TSArrayType",elementType:e};return a(o.TSArrayType.elementType,t,"elementType",e,1),t},t.tSAsExpression=t.tsAsExpression=function(e,t){let i={type:"TSAsExpression",expression:e,typeAnnotation:t},r=o.TSAsExpression;return a(r.expression,i,"expression",e,1),a(r.typeAnnotation,i,"typeAnnotation",t,1),i},t.tSBigIntKeyword=t.tsBigIntKeyword=function(){return{type:"TSBigIntKeyword"}},t.tSBooleanKeyword=t.tsBooleanKeyword=function(){return{type:"TSBooleanKeyword"}},t.tSCallSignatureDeclaration=t.tsCallSignatureDeclaration=function(e=null,t,i=null){let r={type:"TSCallSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:i},n=o.TSCallSignatureDeclaration;return a(n.typeParameters,r,"typeParameters",e,1),a(n.parameters,r,"parameters",t,1),a(n.typeAnnotation,r,"typeAnnotation",i,1),r},t.tSConditionalType=t.tsConditionalType=function(e,t,i,r){let n={type:"TSConditionalType",checkType:e,extendsType:t,trueType:i,falseType:r},s=o.TSConditionalType;return a(s.checkType,n,"checkType",e,1),a(s.extendsType,n,"extendsType",t,1),a(s.trueType,n,"trueType",i,1),a(s.falseType,n,"falseType",r,1),n},t.tSConstructSignatureDeclaration=t.tsConstructSignatureDeclaration=function(e=null,t,i=null){let r={type:"TSConstructSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:i},n=o.TSConstructSignatureDeclaration;return a(n.typeParameters,r,"typeParameters",e,1),a(n.parameters,r,"parameters",t,1),a(n.typeAnnotation,r,"typeAnnotation",i,1),r},t.tSConstructorType=t.tsConstructorType=function(e=null,t,i=null){let r={type:"TSConstructorType",typeParameters:e,parameters:t,typeAnnotation:i},n=o.TSConstructorType;return a(n.typeParameters,r,"typeParameters",e,1),a(n.parameters,r,"parameters",t,1),a(n.typeAnnotation,r,"typeAnnotation",i,1),r},t.tSDeclareFunction=t.tsDeclareFunction=function(e=null,t=null,i,r=null){let n={type:"TSDeclareFunction",id:e,typeParameters:t,params:i,returnType:r},s=o.TSDeclareFunction;return a(s.id,n,"id",e,1),a(s.typeParameters,n,"typeParameters",t,1),a(s.params,n,"params",i,1),a(s.returnType,n,"returnType",r,1),n},t.tSDeclareMethod=t.tsDeclareMethod=function(e=null,t,i=null,r,n=null){let s={type:"TSDeclareMethod",decorators:e,key:t,typeParameters:i,params:r,returnType:n},l=o.TSDeclareMethod;return a(l.decorators,s,"decorators",e,1),a(l.key,s,"key",t,1),a(l.typeParameters,s,"typeParameters",i,1),a(l.params,s,"params",r,1),a(l.returnType,s,"returnType",n,1),s},t.tSEnumBody=t.tsEnumBody=function(e){let t={type:"TSEnumBody",members:e};return a(o.TSEnumBody.members,t,"members",e,1),t},t.tSEnumDeclaration=t.tsEnumDeclaration=function(e,t){let i={type:"TSEnumDeclaration",id:e,members:t},r=o.TSEnumDeclaration;return a(r.id,i,"id",e,1),a(r.members,i,"members",t,1),i},t.tSEnumMember=t.tsEnumMember=function(e,t=null){let i={type:"TSEnumMember",id:e,initializer:t},r=o.TSEnumMember;return a(r.id,i,"id",e,1),a(r.initializer,i,"initializer",t,1),i},t.tSExportAssignment=t.tsExportAssignment=function(e){let t={type:"TSExportAssignment",expression:e};return a(o.TSExportAssignment.expression,t,"expression",e,1),t},t.tSExpressionWithTypeArguments=t.tsExpressionWithTypeArguments=function(e,t=null){let i={type:"TSExpressionWithTypeArguments",expression:e,typeParameters:t},r=o.TSExpressionWithTypeArguments;return a(r.expression,i,"expression",e,1),a(r.typeParameters,i,"typeParameters",t,1),i},t.tSExternalModuleReference=t.tsExternalModuleReference=function(e){let t={type:"TSExternalModuleReference",expression:e};return a(o.TSExternalModuleReference.expression,t,"expression",e,1),t},t.tSFunctionType=t.tsFunctionType=function(e=null,t,i=null){let r={type:"TSFunctionType",typeParameters:e,parameters:t,typeAnnotation:i},n=o.TSFunctionType;return a(n.typeParameters,r,"typeParameters",e,1),a(n.parameters,r,"parameters",t,1),a(n.typeAnnotation,r,"typeAnnotation",i,1),r},t.tSImportEqualsDeclaration=t.tsImportEqualsDeclaration=function(e,t){let i={type:"TSImportEqualsDeclaration",id:e,moduleReference:t,isExport:null},r=o.TSImportEqualsDeclaration;return a(r.id,i,"id",e,1),a(r.moduleReference,i,"moduleReference",t,1),i},t.tSImportType=t.tsImportType=function(e,t=null,i=null){let r={type:"TSImportType",argument:e,qualifier:t,typeParameters:i},n=o.TSImportType;return a(n.argument,r,"argument",e,1),a(n.qualifier,r,"qualifier",t,1),a(n.typeParameters,r,"typeParameters",i,1),r},t.tSIndexSignature=t.tsIndexSignature=function(e,t=null){let i={type:"TSIndexSignature",parameters:e,typeAnnotation:t},r=o.TSIndexSignature;return a(r.parameters,i,"parameters",e,1),a(r.typeAnnotation,i,"typeAnnotation",t,1),i},t.tSIndexedAccessType=t.tsIndexedAccessType=function(e,t){let i={type:"TSIndexedAccessType",objectType:e,indexType:t},r=o.TSIndexedAccessType;return a(r.objectType,i,"objectType",e,1),a(r.indexType,i,"indexType",t,1),i},t.tSInferType=t.tsInferType=function(e){let t={type:"TSInferType",typeParameter:e};return a(o.TSInferType.typeParameter,t,"typeParameter",e,1),t},t.tSInstantiationExpression=t.tsInstantiationExpression=function(e,t=null){let i={type:"TSInstantiationExpression",expression:e,typeParameters:t},r=o.TSInstantiationExpression;return a(r.expression,i,"expression",e,1),a(r.typeParameters,i,"typeParameters",t,1),i},t.tSInterfaceBody=t.tsInterfaceBody=function(e){let t={type:"TSInterfaceBody",body:e};return a(o.TSInterfaceBody.body,t,"body",e,1),t},t.tSInterfaceDeclaration=t.tsInterfaceDeclaration=function(e,t=null,i=null,r){let n={type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:i,body:r},s=o.TSInterfaceDeclaration;return a(s.id,n,"id",e,1),a(s.typeParameters,n,"typeParameters",t,1),a(s.extends,n,"extends",i,1),a(s.body,n,"body",r,1),n},t.tSIntersectionType=t.tsIntersectionType=function(e){let t={type:"TSIntersectionType",types:e};return a(o.TSIntersectionType.types,t,"types",e,1),t},t.tSIntrinsicKeyword=t.tsIntrinsicKeyword=function(){return{type:"TSIntrinsicKeyword"}},t.tSLiteralType=t.tsLiteralType=function(e){let t={type:"TSLiteralType",literal:e};return a(o.TSLiteralType.literal,t,"literal",e,1),t},t.tSMappedType=t.tsMappedType=function(e,t=null,i=null){let r={type:"TSMappedType",typeParameter:e,typeAnnotation:t,nameType:i},n=o.TSMappedType;return a(n.typeParameter,r,"typeParameter",e,1),a(n.typeAnnotation,r,"typeAnnotation",t,1),a(n.nameType,r,"nameType",i,1),r},t.tSMethodSignature=t.tsMethodSignature=function(e,t=null,i,r=null){let n={type:"TSMethodSignature",key:e,typeParameters:t,parameters:i,typeAnnotation:r,kind:null},s=o.TSMethodSignature;return a(s.key,n,"key",e,1),a(s.typeParameters,n,"typeParameters",t,1),a(s.parameters,n,"parameters",i,1),a(s.typeAnnotation,n,"typeAnnotation",r,1),n},t.tSModuleBlock=t.tsModuleBlock=function(e){let t={type:"TSModuleBlock",body:e};return a(o.TSModuleBlock.body,t,"body",e,1),t},t.tSModuleDeclaration=t.tsModuleDeclaration=function(e,t){let i={type:"TSModuleDeclaration",id:e,body:t,kind:null},r=o.TSModuleDeclaration;return a(r.id,i,"id",e,1),a(r.body,i,"body",t,1),i},t.tSNamedTupleMember=t.tsNamedTupleMember=function(e,t,i=!1){let r={type:"TSNamedTupleMember",label:e,elementType:t,optional:i},n=o.TSNamedTupleMember;return a(n.label,r,"label",e,1),a(n.elementType,r,"elementType",t,1),a(n.optional,r,"optional",i),r},t.tSNamespaceExportDeclaration=t.tsNamespaceExportDeclaration=function(e){let t={type:"TSNamespaceExportDeclaration",id:e};return a(o.TSNamespaceExportDeclaration.id,t,"id",e,1),t},t.tSNeverKeyword=t.tsNeverKeyword=function(){return{type:"TSNeverKeyword"}},t.tSNonNullExpression=t.tsNonNullExpression=function(e){let t={type:"TSNonNullExpression",expression:e};return a(o.TSNonNullExpression.expression,t,"expression",e,1),t},t.tSNullKeyword=t.tsNullKeyword=function(){return{type:"TSNullKeyword"}},t.tSNumberKeyword=t.tsNumberKeyword=function(){return{type:"TSNumberKeyword"}},t.tSObjectKeyword=t.tsObjectKeyword=function(){return{type:"TSObjectKeyword"}},t.tSOptionalType=t.tsOptionalType=function(e){let t={type:"TSOptionalType",typeAnnotation:e};return a(o.TSOptionalType.typeAnnotation,t,"typeAnnotation",e,1),t},t.tSParameterProperty=t.tsParameterProperty=function(e){let t={type:"TSParameterProperty",parameter:e};return a(o.TSParameterProperty.parameter,t,"parameter",e,1),t},t.tSParenthesizedType=t.tsParenthesizedType=function(e){let t={type:"TSParenthesizedType",typeAnnotation:e};return a(o.TSParenthesizedType.typeAnnotation,t,"typeAnnotation",e,1),t},t.tSPropertySignature=t.tsPropertySignature=function(e,t=null){let i={type:"TSPropertySignature",key:e,typeAnnotation:t},r=o.TSPropertySignature;return a(r.key,i,"key",e,1),a(r.typeAnnotation,i,"typeAnnotation",t,1),i},t.tSQualifiedName=t.tsQualifiedName=function(e,t){let i={type:"TSQualifiedName",left:e,right:t},r=o.TSQualifiedName;return a(r.left,i,"left",e,1),a(r.right,i,"right",t,1),i},t.tSRestType=t.tsRestType=function(e){let t={type:"TSRestType",typeAnnotation:e};return a(o.TSRestType.typeAnnotation,t,"typeAnnotation",e,1),t},t.tSSatisfiesExpression=t.tsSatisfiesExpression=function(e,t){let i={type:"TSSatisfiesExpression",expression:e,typeAnnotation:t},r=o.TSSatisfiesExpression;return a(r.expression,i,"expression",e,1),a(r.typeAnnotation,i,"typeAnnotation",t,1),i},t.tSStringKeyword=t.tsStringKeyword=function(){return{type:"TSStringKeyword"}},t.tSSymbolKeyword=t.tsSymbolKeyword=function(){return{type:"TSSymbolKeyword"}},t.tSTemplateLiteralType=t.tsTemplateLiteralType=function(e,t){let i={type:"TSTemplateLiteralType",quasis:e,types:t},r=o.TSTemplateLiteralType;return a(r.quasis,i,"quasis",e,1),a(r.types,i,"types",t,1),i},t.tSThisType=t.tsThisType=function(){return{type:"TSThisType"}},t.tSTupleType=t.tsTupleType=function(e){let t={type:"TSTupleType",elementTypes:e};return a(o.TSTupleType.elementTypes,t,"elementTypes",e,1),t},t.tSTypeAliasDeclaration=t.tsTypeAliasDeclaration=function(e,t=null,i){let r={type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:i},n=o.TSTypeAliasDeclaration;return a(n.id,r,"id",e,1),a(n.typeParameters,r,"typeParameters",t,1),a(n.typeAnnotation,r,"typeAnnotation",i,1),r},t.tSTypeAnnotation=t.tsTypeAnnotation=function(e){let t={type:"TSTypeAnnotation",typeAnnotation:e};return a(o.TSTypeAnnotation.typeAnnotation,t,"typeAnnotation",e,1),t},t.tSTypeAssertion=t.tsTypeAssertion=function(e,t){let i={type:"TSTypeAssertion",typeAnnotation:e,expression:t},r=o.TSTypeAssertion;return a(r.typeAnnotation,i,"typeAnnotation",e,1),a(r.expression,i,"expression",t,1),i},t.tSTypeLiteral=t.tsTypeLiteral=function(e){let t={type:"TSTypeLiteral",members:e};return a(o.TSTypeLiteral.members,t,"members",e,1),t},t.tSTypeOperator=t.tsTypeOperator=function(e,t="keyof"){let i={type:"TSTypeOperator",typeAnnotation:e,operator:t},r=o.TSTypeOperator;return a(r.typeAnnotation,i,"typeAnnotation",e,1),a(r.operator,i,"operator",t),i},t.tSTypeParameter=t.tsTypeParameter=function(e=null,t=null,i){let r={type:"TSTypeParameter",constraint:e,default:t,name:i},n=o.TSTypeParameter;return a(n.constraint,r,"constraint",e,1),a(n.default,r,"default",t,1),a(n.name,r,"name",i),r},t.tSTypeParameterDeclaration=t.tsTypeParameterDeclaration=function(e){let t={type:"TSTypeParameterDeclaration",params:e};return a(o.TSTypeParameterDeclaration.params,t,"params",e,1),t},t.tSTypeParameterInstantiation=t.tsTypeParameterInstantiation=function(e){let t={type:"TSTypeParameterInstantiation",params:e};return a(o.TSTypeParameterInstantiation.params,t,"params",e,1),t},t.tSTypePredicate=t.tsTypePredicate=function(e,t=null,i=null){let r={type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:i},n=o.TSTypePredicate;return a(n.parameterName,r,"parameterName",e,1),a(n.typeAnnotation,r,"typeAnnotation",t,1),a(n.asserts,r,"asserts",i),r},t.tSTypeQuery=t.tsTypeQuery=function(e,t=null){let i={type:"TSTypeQuery",exprName:e,typeParameters:t},r=o.TSTypeQuery;return a(r.exprName,i,"exprName",e,1),a(r.typeParameters,i,"typeParameters",t,1),i},t.tSTypeReference=t.tsTypeReference=function(e,t=null){let i={type:"TSTypeReference",typeName:e,typeParameters:t},r=o.TSTypeReference;return a(r.typeName,i,"typeName",e,1),a(r.typeParameters,i,"typeParameters",t,1),i},t.tSUndefinedKeyword=t.tsUndefinedKeyword=function(){return{type:"TSUndefinedKeyword"}},t.tSUnionType=t.tsUnionType=function(e){let t={type:"TSUnionType",types:e};return a(o.TSUnionType.types,t,"types",e,1),t},t.tSUnknownKeyword=t.tsUnknownKeyword=function(){return{type:"TSUnknownKeyword"}},t.tSVoidKeyword=t.tsVoidKeyword=function(){return{type:"TSVoidKeyword"}},t.tupleExpression=function(e=[]){let t={type:"TupleExpression",elements:e};return a(o.TupleExpression.elements,t,"elements",e,1),t},t.tupleTypeAnnotation=function(e){let t={type:"TupleTypeAnnotation",types:e};return a(o.TupleTypeAnnotation.types,t,"types",e,1),t},t.typeAlias=function(e,t=null,i){let r={type:"TypeAlias",id:e,typeParameters:t,right:i},n=o.TypeAlias;return a(n.id,r,"id",e,1),a(n.typeParameters,r,"typeParameters",t,1),a(n.right,r,"right",i,1),r},t.typeAnnotation=function(e){let t={type:"TypeAnnotation",typeAnnotation:e};return a(o.TypeAnnotation.typeAnnotation,t,"typeAnnotation",e,1),t},t.typeCastExpression=function(e,t){let i={type:"TypeCastExpression",expression:e,typeAnnotation:t},r=o.TypeCastExpression;return a(r.expression,i,"expression",e,1),a(r.typeAnnotation,i,"typeAnnotation",t,1),i},t.typeParameter=function(e=null,t=null,i=null){let r={type:"TypeParameter",bound:e,default:t,variance:i,name:null},n=o.TypeParameter;return a(n.bound,r,"bound",e,1),a(n.default,r,"default",t,1),a(n.variance,r,"variance",i,1),r},t.typeParameterDeclaration=function(e){let t={type:"TypeParameterDeclaration",params:e};return a(o.TypeParameterDeclaration.params,t,"params",e,1),t},t.typeParameterInstantiation=function(e){let t={type:"TypeParameterInstantiation",params:e};return a(o.TypeParameterInstantiation.params,t,"params",e,1),t},t.typeofTypeAnnotation=function(e){let t={type:"TypeofTypeAnnotation",argument:e};return a(o.TypeofTypeAnnotation.argument,t,"argument",e,1),t},t.unaryExpression=function(e,t,i=!0){let r={type:"UnaryExpression",operator:e,argument:t,prefix:i},n=o.UnaryExpression;return a(n.operator,r,"operator",e),a(n.argument,r,"argument",t,1),a(n.prefix,r,"prefix",i),r},t.unionTypeAnnotation=function(e){let t={type:"UnionTypeAnnotation",types:e};return a(o.UnionTypeAnnotation.types,t,"types",e,1),t},t.updateExpression=function(e,t,i=!1){let r={type:"UpdateExpression",operator:e,argument:t,prefix:i},n=o.UpdateExpression;return a(n.operator,r,"operator",e),a(n.argument,r,"argument",t,1),a(n.prefix,r,"prefix",i),r},t.v8IntrinsicIdentifier=function(e){let t={type:"V8IntrinsicIdentifier",name:e};return a(o.V8IntrinsicIdentifier.name,t,"name",e),t},t.variableDeclaration=function(e,t){let i={type:"VariableDeclaration",kind:e,declarations:t},r=o.VariableDeclaration;return a(r.kind,i,"kind",e),a(r.declarations,i,"declarations",t,1),i},t.variableDeclarator=function(e,t=null){let i={type:"VariableDeclarator",id:e,init:t},r=o.VariableDeclarator;return a(r.id,i,"id",e,1),a(r.init,i,"init",t,1),i},t.variance=function(e){let t={type:"Variance",kind:e};return a(o.Variance.kind,t,"kind",e),t},t.voidPattern=function(){return{type:"VoidPattern"}},t.voidTypeAnnotation=function(){return{type:"VoidTypeAnnotation"}},t.whileStatement=function(e,t){let i={type:"WhileStatement",test:e,body:t},r=o.WhileStatement;return a(r.test,i,"test",e,1),a(r.body,i,"body",t,1),i},t.withStatement=function(e,t){let i={type:"WithStatement",object:e,body:t},r=o.WithStatement;return a(r.object,i,"object",e,1),a(r.body,i,"body",t,1),i},t.yieldExpression=function(e=null,t=!1){let i={type:"YieldExpression",argument:e,delegate:t},r=o.YieldExpression;return a(r.argument,i,"argument",e,1),a(r.delegate,i,"delegate",t),i};var r=i(88765),n=i(50231),s=i(65183);let{validateInternal:a}=r,{NODE_FIELDS:o}=s;function l(e){let t={type:"NumericLiteral",value:e};return a(o.NumericLiteral.value,t,"value",e),t}function p(e,t=""){let i={type:"RegExpLiteral",pattern:e,flags:t},r=o.RegExpLiteral;return a(r.pattern,i,"pattern",e),a(r.flags,i,"flags",t),i}function u(e){let t={type:"RestElement",argument:e};return a(o.RestElement.argument,t,"argument",e,1),t}function c(e){let t={type:"SpreadElement",argument:e};return a(o.SpreadElement.argument,t,"argument",e,1),t}},44614(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.JSXIdentifier=t.JSXFragment=t.JSXExpressionContainer=t.JSXEmptyExpression=t.JSXElement=t.JSXClosingFragment=t.JSXClosingElement=t.JSXAttribute=t.IntersectionTypeAnnotation=t.InterpreterDirective=t.InterfaceTypeAnnotation=t.InterfaceExtends=t.InterfaceDeclaration=t.InferredPredicate=t.IndexedAccessType=t.ImportSpecifier=t.ImportNamespaceSpecifier=t.ImportExpression=t.ImportDefaultSpecifier=t.ImportDeclaration=t.ImportAttribute=t.Import=t.IfStatement=t.Identifier=t.GenericTypeAnnotation=t.FunctionTypeParam=t.FunctionTypeAnnotation=t.FunctionExpression=t.FunctionDeclaration=t.ForStatement=t.ForOfStatement=t.ForInStatement=t.File=t.ExpressionStatement=t.ExportSpecifier=t.ExportNamespaceSpecifier=t.ExportNamedDeclaration=t.ExportDefaultSpecifier=t.ExportDefaultDeclaration=t.ExportAllDeclaration=t.ExistsTypeAnnotation=t.EnumSymbolBody=t.EnumStringMember=t.EnumStringBody=t.EnumNumberMember=t.EnumNumberBody=t.EnumDefaultedMember=t.EnumDeclaration=t.EnumBooleanMember=t.EnumBooleanBody=t.EmptyTypeAnnotation=t.EmptyStatement=t.DoWhileStatement=t.DoExpression=t.DirectiveLiteral=t.Directive=t.Decorator=t.DeclaredPredicate=t.DeclareVariable=t.DeclareTypeAlias=t.DeclareOpaqueType=t.DeclareModuleExports=t.DeclareModule=t.DeclareInterface=t.DeclareFunction=t.DeclareExportDeclaration=t.DeclareExportAllDeclaration=t.DeclareClass=t.DecimalLiteral=t.DebuggerStatement=t.ContinueStatement=t.ConditionalExpression=t.ClassProperty=t.ClassPrivateProperty=t.ClassPrivateMethod=t.ClassMethod=t.ClassImplements=t.ClassExpression=t.ClassDeclaration=t.ClassBody=t.ClassAccessorProperty=t.CatchClause=t.CallExpression=t.BreakStatement=t.BooleanTypeAnnotation=t.BooleanLiteralTypeAnnotation=t.BooleanLiteral=t.BlockStatement=t.BindExpression=t.BinaryExpression=t.BigIntLiteral=t.AwaitExpression=t.AssignmentPattern=t.AssignmentExpression=t.ArrowFunctionExpression=t.ArrayTypeAnnotation=t.ArrayPattern=t.ArrayExpression=t.ArgumentPlaceholder=t.AnyTypeAnnotation=void 0,t.TSNumberKeyword=t.TSNullKeyword=t.TSNonNullExpression=t.TSNeverKeyword=t.TSNamespaceExportDeclaration=t.TSNamedTupleMember=t.TSModuleDeclaration=t.TSModuleBlock=t.TSMethodSignature=t.TSMappedType=t.TSLiteralType=t.TSIntrinsicKeyword=t.TSIntersectionType=t.TSInterfaceDeclaration=t.TSInterfaceBody=t.TSInstantiationExpression=t.TSInferType=t.TSIndexedAccessType=t.TSIndexSignature=t.TSImportType=t.TSImportEqualsDeclaration=t.TSFunctionType=t.TSExternalModuleReference=t.TSExpressionWithTypeArguments=t.TSExportAssignment=t.TSEnumMember=t.TSEnumDeclaration=t.TSEnumBody=t.TSDeclareMethod=t.TSDeclareFunction=t.TSConstructorType=t.TSConstructSignatureDeclaration=t.TSConditionalType=t.TSCallSignatureDeclaration=t.TSBooleanKeyword=t.TSBigIntKeyword=t.TSAsExpression=t.TSArrayType=t.TSAnyKeyword=t.SymbolTypeAnnotation=t.SwitchStatement=t.SwitchCase=t.Super=t.StringTypeAnnotation=t.StringLiteralTypeAnnotation=t.StringLiteral=t.StaticBlock=t.SpreadProperty=t.SpreadElement=t.SequenceExpression=t.ReturnStatement=t.RestProperty=t.RestElement=t.RegexLiteral=t.RegExpLiteral=t.RecordExpression=t.QualifiedTypeIdentifier=t.Program=t.PrivateName=t.Placeholder=t.PipelineTopicExpression=t.PipelinePrimaryTopicReference=t.PipelineBareFunction=t.ParenthesizedExpression=t.OptionalMemberExpression=t.OptionalIndexedAccessType=t.OptionalCallExpression=t.OpaqueType=t.ObjectTypeSpreadProperty=t.ObjectTypeProperty=t.ObjectTypeInternalSlot=t.ObjectTypeIndexer=t.ObjectTypeCallProperty=t.ObjectTypeAnnotation=t.ObjectProperty=t.ObjectPattern=t.ObjectMethod=t.ObjectExpression=t.NumericLiteral=t.NumberTypeAnnotation=t.NumberLiteralTypeAnnotation=t.NumberLiteral=t.NullableTypeAnnotation=t.NullLiteralTypeAnnotation=t.NullLiteral=t.Noop=t.NewExpression=t.ModuleExpression=t.MixedTypeAnnotation=t.MetaProperty=t.MemberExpression=t.LogicalExpression=t.LabeledStatement=t.JSXText=t.JSXSpreadChild=t.JSXSpreadAttribute=t.JSXOpeningFragment=t.JSXOpeningElement=t.JSXNamespacedName=t.JSXMemberExpression=void 0,t.YieldExpression=t.WithStatement=t.WhileStatement=t.VoidTypeAnnotation=t.VoidPattern=t.Variance=t.VariableDeclarator=t.VariableDeclaration=t.V8IntrinsicIdentifier=t.UpdateExpression=t.UnionTypeAnnotation=t.UnaryExpression=t.TypeofTypeAnnotation=t.TypeParameterInstantiation=t.TypeParameterDeclaration=t.TypeParameter=t.TypeCastExpression=t.TypeAnnotation=t.TypeAlias=t.TupleTypeAnnotation=t.TupleExpression=t.TryStatement=t.TopicReference=t.ThrowStatement=t.ThisTypeAnnotation=t.ThisExpression=t.TemplateLiteral=t.TemplateElement=t.TaggedTemplateExpression=t.TSVoidKeyword=t.TSUnknownKeyword=t.TSUnionType=t.TSUndefinedKeyword=t.TSTypeReference=t.TSTypeQuery=t.TSTypePredicate=t.TSTypeParameterInstantiation=t.TSTypeParameterDeclaration=t.TSTypeParameter=t.TSTypeOperator=t.TSTypeLiteral=t.TSTypeAssertion=t.TSTypeAnnotation=t.TSTypeAliasDeclaration=t.TSTupleType=t.TSThisType=t.TSTemplateLiteralType=t.TSSymbolKeyword=t.TSStringKeyword=t.TSSatisfiesExpression=t.TSRestType=t.TSQualifiedName=t.TSPropertySignature=t.TSParenthesizedType=t.TSParameterProperty=t.TSOptionalType=t.TSObjectKeyword=void 0;var r=i(56223);i(50231),t.ArrayExpression=r.arrayExpression,t.AssignmentExpression=r.assignmentExpression,t.BinaryExpression=r.binaryExpression,t.InterpreterDirective=r.interpreterDirective,t.Directive=r.directive,t.DirectiveLiteral=r.directiveLiteral,t.BlockStatement=r.blockStatement,t.BreakStatement=r.breakStatement,t.CallExpression=r.callExpression,t.CatchClause=r.catchClause,t.ConditionalExpression=r.conditionalExpression,t.ContinueStatement=r.continueStatement,t.DebuggerStatement=r.debuggerStatement,t.DoWhileStatement=r.doWhileStatement,t.EmptyStatement=r.emptyStatement,t.ExpressionStatement=r.expressionStatement,t.File=r.file,t.ForInStatement=r.forInStatement,t.ForStatement=r.forStatement,t.FunctionDeclaration=r.functionDeclaration,t.FunctionExpression=r.functionExpression,t.Identifier=r.identifier,t.IfStatement=r.ifStatement,t.LabeledStatement=r.labeledStatement,t.StringLiteral=r.stringLiteral,t.NumericLiteral=r.numericLiteral,t.NullLiteral=r.nullLiteral,t.BooleanLiteral=r.booleanLiteral,t.RegExpLiteral=r.regExpLiteral,t.LogicalExpression=r.logicalExpression,t.MemberExpression=r.memberExpression,t.NewExpression=r.newExpression,t.Program=r.program,t.ObjectExpression=r.objectExpression,t.ObjectMethod=r.objectMethod,t.ObjectProperty=r.objectProperty,t.RestElement=r.restElement,t.ReturnStatement=r.returnStatement,t.SequenceExpression=r.sequenceExpression,t.ParenthesizedExpression=r.parenthesizedExpression,t.SwitchCase=r.switchCase,t.SwitchStatement=r.switchStatement,t.ThisExpression=r.thisExpression,t.ThrowStatement=r.throwStatement,t.TryStatement=r.tryStatement,t.UnaryExpression=r.unaryExpression,t.UpdateExpression=r.updateExpression,t.VariableDeclaration=r.variableDeclaration,t.VariableDeclarator=r.variableDeclarator,t.WhileStatement=r.whileStatement,t.WithStatement=r.withStatement,t.AssignmentPattern=r.assignmentPattern,t.ArrayPattern=r.arrayPattern,t.ArrowFunctionExpression=r.arrowFunctionExpression,t.ClassBody=r.classBody,t.ClassExpression=r.classExpression,t.ClassDeclaration=r.classDeclaration,t.ExportAllDeclaration=r.exportAllDeclaration,t.ExportDefaultDeclaration=r.exportDefaultDeclaration,t.ExportNamedDeclaration=r.exportNamedDeclaration,t.ExportSpecifier=r.exportSpecifier,t.ForOfStatement=r.forOfStatement,t.ImportDeclaration=r.importDeclaration,t.ImportDefaultSpecifier=r.importDefaultSpecifier,t.ImportNamespaceSpecifier=r.importNamespaceSpecifier,t.ImportSpecifier=r.importSpecifier,t.ImportExpression=r.importExpression,t.MetaProperty=r.metaProperty,t.ClassMethod=r.classMethod,t.ObjectPattern=r.objectPattern,t.SpreadElement=r.spreadElement,t.Super=r.super,t.TaggedTemplateExpression=r.taggedTemplateExpression,t.TemplateElement=r.templateElement,t.TemplateLiteral=r.templateLiteral,t.YieldExpression=r.yieldExpression,t.AwaitExpression=r.awaitExpression,t.Import=r.import,t.BigIntLiteral=r.bigIntLiteral,t.ExportNamespaceSpecifier=r.exportNamespaceSpecifier,t.OptionalMemberExpression=r.optionalMemberExpression,t.OptionalCallExpression=r.optionalCallExpression,t.ClassProperty=r.classProperty,t.ClassAccessorProperty=r.classAccessorProperty,t.ClassPrivateProperty=r.classPrivateProperty,t.ClassPrivateMethod=r.classPrivateMethod,t.PrivateName=r.privateName,t.StaticBlock=r.staticBlock,t.ImportAttribute=r.importAttribute,t.AnyTypeAnnotation=r.anyTypeAnnotation,t.ArrayTypeAnnotation=r.arrayTypeAnnotation,t.BooleanTypeAnnotation=r.booleanTypeAnnotation,t.BooleanLiteralTypeAnnotation=r.booleanLiteralTypeAnnotation,t.NullLiteralTypeAnnotation=r.nullLiteralTypeAnnotation,t.ClassImplements=r.classImplements,t.DeclareClass=r.declareClass,t.DeclareFunction=r.declareFunction,t.DeclareInterface=r.declareInterface,t.DeclareModule=r.declareModule,t.DeclareModuleExports=r.declareModuleExports,t.DeclareTypeAlias=r.declareTypeAlias,t.DeclareOpaqueType=r.declareOpaqueType,t.DeclareVariable=r.declareVariable,t.DeclareExportDeclaration=r.declareExportDeclaration,t.DeclareExportAllDeclaration=r.declareExportAllDeclaration,t.DeclaredPredicate=r.declaredPredicate,t.ExistsTypeAnnotation=r.existsTypeAnnotation,t.FunctionTypeAnnotation=r.functionTypeAnnotation,t.FunctionTypeParam=r.functionTypeParam,t.GenericTypeAnnotation=r.genericTypeAnnotation,t.InferredPredicate=r.inferredPredicate,t.InterfaceExtends=r.interfaceExtends,t.InterfaceDeclaration=r.interfaceDeclaration,t.InterfaceTypeAnnotation=r.interfaceTypeAnnotation,t.IntersectionTypeAnnotation=r.intersectionTypeAnnotation,t.MixedTypeAnnotation=r.mixedTypeAnnotation,t.EmptyTypeAnnotation=r.emptyTypeAnnotation,t.NullableTypeAnnotation=r.nullableTypeAnnotation,t.NumberLiteralTypeAnnotation=r.numberLiteralTypeAnnotation,t.NumberTypeAnnotation=r.numberTypeAnnotation,t.ObjectTypeAnnotation=r.objectTypeAnnotation,t.ObjectTypeInternalSlot=r.objectTypeInternalSlot,t.ObjectTypeCallProperty=r.objectTypeCallProperty,t.ObjectTypeIndexer=r.objectTypeIndexer,t.ObjectTypeProperty=r.objectTypeProperty,t.ObjectTypeSpreadProperty=r.objectTypeSpreadProperty,t.OpaqueType=r.opaqueType,t.QualifiedTypeIdentifier=r.qualifiedTypeIdentifier,t.StringLiteralTypeAnnotation=r.stringLiteralTypeAnnotation,t.StringTypeAnnotation=r.stringTypeAnnotation,t.SymbolTypeAnnotation=r.symbolTypeAnnotation,t.ThisTypeAnnotation=r.thisTypeAnnotation,t.TupleTypeAnnotation=r.tupleTypeAnnotation,t.TypeofTypeAnnotation=r.typeofTypeAnnotation,t.TypeAlias=r.typeAlias,t.TypeAnnotation=r.typeAnnotation,t.TypeCastExpression=r.typeCastExpression,t.TypeParameter=r.typeParameter,t.TypeParameterDeclaration=r.typeParameterDeclaration,t.TypeParameterInstantiation=r.typeParameterInstantiation,t.UnionTypeAnnotation=r.unionTypeAnnotation,t.Variance=r.variance,t.VoidTypeAnnotation=r.voidTypeAnnotation,t.EnumDeclaration=r.enumDeclaration,t.EnumBooleanBody=r.enumBooleanBody,t.EnumNumberBody=r.enumNumberBody,t.EnumStringBody=r.enumStringBody,t.EnumSymbolBody=r.enumSymbolBody,t.EnumBooleanMember=r.enumBooleanMember,t.EnumNumberMember=r.enumNumberMember,t.EnumStringMember=r.enumStringMember,t.EnumDefaultedMember=r.enumDefaultedMember,t.IndexedAccessType=r.indexedAccessType,t.OptionalIndexedAccessType=r.optionalIndexedAccessType,t.JSXAttribute=r.jsxAttribute,t.JSXClosingElement=r.jsxClosingElement,t.JSXElement=r.jsxElement,t.JSXEmptyExpression=r.jsxEmptyExpression,t.JSXExpressionContainer=r.jsxExpressionContainer,t.JSXSpreadChild=r.jsxSpreadChild,t.JSXIdentifier=r.jsxIdentifier,t.JSXMemberExpression=r.jsxMemberExpression,t.JSXNamespacedName=r.jsxNamespacedName,t.JSXOpeningElement=r.jsxOpeningElement,t.JSXSpreadAttribute=r.jsxSpreadAttribute,t.JSXText=r.jsxText,t.JSXFragment=r.jsxFragment,t.JSXOpeningFragment=r.jsxOpeningFragment,t.JSXClosingFragment=r.jsxClosingFragment,t.Noop=r.noop,t.Placeholder=r.placeholder,t.V8IntrinsicIdentifier=r.v8IntrinsicIdentifier,t.ArgumentPlaceholder=r.argumentPlaceholder,t.BindExpression=r.bindExpression,t.Decorator=r.decorator,t.DoExpression=r.doExpression,t.ExportDefaultSpecifier=r.exportDefaultSpecifier,t.RecordExpression=r.recordExpression,t.TupleExpression=r.tupleExpression,t.DecimalLiteral=r.decimalLiteral,t.ModuleExpression=r.moduleExpression,t.TopicReference=r.topicReference,t.PipelineTopicExpression=r.pipelineTopicExpression,t.PipelineBareFunction=r.pipelineBareFunction,t.PipelinePrimaryTopicReference=r.pipelinePrimaryTopicReference,t.VoidPattern=r.voidPattern,t.TSParameterProperty=r.tsParameterProperty,t.TSDeclareFunction=r.tsDeclareFunction,t.TSDeclareMethod=r.tsDeclareMethod,t.TSQualifiedName=r.tsQualifiedName,t.TSCallSignatureDeclaration=r.tsCallSignatureDeclaration,t.TSConstructSignatureDeclaration=r.tsConstructSignatureDeclaration,t.TSPropertySignature=r.tsPropertySignature,t.TSMethodSignature=r.tsMethodSignature,t.TSIndexSignature=r.tsIndexSignature,t.TSAnyKeyword=r.tsAnyKeyword,t.TSBooleanKeyword=r.tsBooleanKeyword,t.TSBigIntKeyword=r.tsBigIntKeyword,t.TSIntrinsicKeyword=r.tsIntrinsicKeyword,t.TSNeverKeyword=r.tsNeverKeyword,t.TSNullKeyword=r.tsNullKeyword,t.TSNumberKeyword=r.tsNumberKeyword,t.TSObjectKeyword=r.tsObjectKeyword,t.TSStringKeyword=r.tsStringKeyword,t.TSSymbolKeyword=r.tsSymbolKeyword,t.TSUndefinedKeyword=r.tsUndefinedKeyword,t.TSUnknownKeyword=r.tsUnknownKeyword,t.TSVoidKeyword=r.tsVoidKeyword,t.TSThisType=r.tsThisType,t.TSFunctionType=r.tsFunctionType,t.TSConstructorType=r.tsConstructorType,t.TSTypeReference=r.tsTypeReference,t.TSTypePredicate=r.tsTypePredicate,t.TSTypeQuery=r.tsTypeQuery,t.TSTypeLiteral=r.tsTypeLiteral,t.TSArrayType=r.tsArrayType,t.TSTupleType=r.tsTupleType,t.TSOptionalType=r.tsOptionalType,t.TSRestType=r.tsRestType,t.TSNamedTupleMember=r.tsNamedTupleMember,t.TSUnionType=r.tsUnionType,t.TSIntersectionType=r.tsIntersectionType,t.TSConditionalType=r.tsConditionalType,t.TSInferType=r.tsInferType,t.TSParenthesizedType=r.tsParenthesizedType,t.TSTypeOperator=r.tsTypeOperator,t.TSIndexedAccessType=r.tsIndexedAccessType,t.TSMappedType=r.tsMappedType,t.TSTemplateLiteralType=r.tsTemplateLiteralType,t.TSLiteralType=r.tsLiteralType,t.TSExpressionWithTypeArguments=r.tsExpressionWithTypeArguments,t.TSInterfaceDeclaration=r.tsInterfaceDeclaration,t.TSInterfaceBody=r.tsInterfaceBody,t.TSTypeAliasDeclaration=r.tsTypeAliasDeclaration,t.TSInstantiationExpression=r.tsInstantiationExpression,t.TSAsExpression=r.tsAsExpression,t.TSSatisfiesExpression=r.tsSatisfiesExpression,t.TSTypeAssertion=r.tsTypeAssertion,t.TSEnumBody=r.tsEnumBody,t.TSEnumDeclaration=r.tsEnumDeclaration,t.TSEnumMember=r.tsEnumMember,t.TSModuleDeclaration=r.tsModuleDeclaration,t.TSModuleBlock=r.tsModuleBlock,t.TSImportType=r.tsImportType,t.TSImportEqualsDeclaration=r.tsImportEqualsDeclaration,t.TSExternalModuleReference=r.tsExternalModuleReference,t.TSNonNullExpression=r.tsNonNullExpression,t.TSExportAssignment=r.tsExportAssignment,t.TSNamespaceExportDeclaration=r.tsNamespaceExportDeclaration,t.TSTypeAnnotation=r.tsTypeAnnotation,t.TSTypeParameterInstantiation=r.tsTypeParameterInstantiation,t.TSTypeParameterDeclaration=r.tsTypeParameterDeclaration,t.TSTypeParameter=r.tsTypeParameter,t.NumberLiteral=r.numberLiteral,t.RegexLiteral=r.regexLiteral,t.RestProperty=r.restProperty,t.SpreadProperty=r.spreadProperty},12456(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.buildUndefinedNode=function(){return(0,r.unaryExpression)("void",(0,r.numericLiteral)(0),!0)};var r=i(93806)},86503(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let t=[];for(let i=0;i<e.children.length;i++){let s=e.children[i];if((0,r.isJSXText)(s)){(0,n.default)(s,t);continue}(0,r.isJSXExpressionContainer)(s)&&(s=s.expression),(0,r.isJSXEmptyExpression)(s)||t.push(s)}return t};var r=i(60133),n=i(90132)},84534(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let t=e.map(e=>(0,s.isTSTypeAnnotation)(e)?e.typeAnnotation:e),i=(0,n.default)(t);return 1===i.length?i[0]:(0,r.tsUnionType)(i)};var r=i(93806),n=i(99227),s=i(60133)},74780(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e,!1)};var r=i(16812)},99042(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e)};var r=i(16812)},46248(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e,!0,!0)};var r=i(16812)},16812(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=!0,i=!1){return l(e,t,i,new Map)};var r=i(49390),n=i(60133);let{hasOwn:s}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function a(e,t,i,r){return e&&"string"==typeof e.type?l(e,t,i,r):e}function o(e,t,i,r){return Array.isArray(e)?e.map(e=>a(e,t,i,r)):a(e,t,i,r)}function l(e,t=!0,i=!1,a){if(!e)return e;let{type:u}=e,c={type:e.type};if((0,n.isIdentifier)(e))c.name=e.name,s(e,"optional")&&"boolean"==typeof e.optional&&(c.optional=e.optional),s(e,"typeAnnotation")&&(c.typeAnnotation=t?o(e.typeAnnotation,!0,i,a):e.typeAnnotation),s(e,"decorators")&&(c.decorators=t?o(e.decorators,!0,i,a):e.decorators);else if(s(r.NODE_FIELDS,u))for(let l of Object.keys(r.NODE_FIELDS[u]))s(e,l)&&(t?c[l]=(0,n.isFile)(e)&&"comments"===l?p(e.comments,t,i,a):o(e[l],!0,i,a):c[l]=e[l]);else throw Error(`Unknown node type: "${u}"`);return s(e,"loc")&&(i?c.loc=null:c.loc=e.loc),s(e,"leadingComments")&&(c.leadingComments=p(e.leadingComments,t,i,a)),s(e,"innerComments")&&(c.innerComments=p(e.innerComments,t,i,a)),s(e,"trailingComments")&&(c.trailingComments=p(e.trailingComments,t,i,a)),s(e,"extra")&&(c.extra=Object.assign({},e.extra)),c}function p(e,t,i,r){return e&&t?e.map(e=>{let t=r.get(e);if(t)return t;let{type:n,value:s,loc:a}=e,o={type:n,value:s,loc:a};return i&&(o.loc=null),r.set(e,o),o}):e}},33242(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e,!1,!0)};var r=i(16812)},89456(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i,n){return(0,r.default)(e,t,[{type:n?"CommentLine":"CommentBlock",value:i}])};var r=i(943)},943(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i){if(!i||!e)return e;let r=`${t}Comments`;return e[r]?"leading"===t?e[r]=i.concat(e[r]):e[r].push(...i):e[r]=i,e}},11515(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)("innerComments",e,t)};var r=i(30594)},18445(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)("leadingComments",e,t)};var r=i(30594)},46691(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)("trailingComments",e,t)};var r=i(30594)},64494(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e,t),(0,n.default)(e,t),(0,s.default)(e,t),e};var r=i(46691),n=i(18445),s=i(11515)},73890(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return r.COMMENT_KEYS.forEach(t=>{e[t]=null}),e};var r=i(79897)},55527(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.WHILE_TYPES=t.USERWHITESPACABLE_TYPES=t.UNARYLIKE_TYPES=t.TYPESCRIPT_TYPES=t.TSTYPE_TYPES=t.TSTYPEELEMENT_TYPES=t.TSENTITYNAME_TYPES=t.TSBASETYPE_TYPES=t.TERMINATORLESS_TYPES=t.STATEMENT_TYPES=t.STANDARDIZED_TYPES=t.SCOPABLE_TYPES=t.PUREISH_TYPES=t.PROPERTY_TYPES=t.PRIVATE_TYPES=t.PATTERN_TYPES=t.PATTERNLIKE_TYPES=t.OBJECTMEMBER_TYPES=t.MODULESPECIFIER_TYPES=t.MODULEDECLARATION_TYPES=t.MISCELLANEOUS_TYPES=t.METHOD_TYPES=t.LVAL_TYPES=t.LOOP_TYPES=t.LITERAL_TYPES=t.JSX_TYPES=t.IMPORTOREXPORTDECLARATION_TYPES=t.IMMUTABLE_TYPES=t.FUNCTION_TYPES=t.FUNCTIONPARENT_TYPES=t.FUNCTIONPARAMETER_TYPES=t.FOR_TYPES=t.FORXSTATEMENT_TYPES=t.FLOW_TYPES=t.FLOWTYPE_TYPES=t.FLOWPREDICATE_TYPES=t.FLOWDECLARATION_TYPES=t.FLOWBASEANNOTATION_TYPES=t.EXPRESSION_TYPES=t.EXPRESSIONWRAPPER_TYPES=t.EXPORTDECLARATION_TYPES=t.ENUMMEMBER_TYPES=t.ENUMBODY_TYPES=t.DECLARATION_TYPES=t.CONDITIONAL_TYPES=t.COMPLETIONSTATEMENT_TYPES=t.CLASS_TYPES=t.BLOCK_TYPES=t.BLOCKPARENT_TYPES=t.BINARY_TYPES=t.ACCESSOR_TYPES=void 0;var r=i(49390);t.STANDARDIZED_TYPES=r.FLIPPED_ALIAS_KEYS.Standardized,t.EXPRESSION_TYPES=r.FLIPPED_ALIAS_KEYS.Expression,t.BINARY_TYPES=r.FLIPPED_ALIAS_KEYS.Binary,t.SCOPABLE_TYPES=r.FLIPPED_ALIAS_KEYS.Scopable,t.BLOCKPARENT_TYPES=r.FLIPPED_ALIAS_KEYS.BlockParent,t.BLOCK_TYPES=r.FLIPPED_ALIAS_KEYS.Block,t.STATEMENT_TYPES=r.FLIPPED_ALIAS_KEYS.Statement,t.TERMINATORLESS_TYPES=r.FLIPPED_ALIAS_KEYS.Terminatorless,t.COMPLETIONSTATEMENT_TYPES=r.FLIPPED_ALIAS_KEYS.CompletionStatement,t.CONDITIONAL_TYPES=r.FLIPPED_ALIAS_KEYS.Conditional,t.LOOP_TYPES=r.FLIPPED_ALIAS_KEYS.Loop,t.WHILE_TYPES=r.FLIPPED_ALIAS_KEYS.While,t.EXPRESSIONWRAPPER_TYPES=r.FLIPPED_ALIAS_KEYS.ExpressionWrapper,t.FOR_TYPES=r.FLIPPED_ALIAS_KEYS.For,t.FORXSTATEMENT_TYPES=r.FLIPPED_ALIAS_KEYS.ForXStatement,t.FUNCTION_TYPES=r.FLIPPED_ALIAS_KEYS.Function,t.FUNCTIONPARENT_TYPES=r.FLIPPED_ALIAS_KEYS.FunctionParent,t.PUREISH_TYPES=r.FLIPPED_ALIAS_KEYS.Pureish,t.DECLARATION_TYPES=r.FLIPPED_ALIAS_KEYS.Declaration,t.FUNCTIONPARAMETER_TYPES=r.FLIPPED_ALIAS_KEYS.FunctionParameter,t.PATTERNLIKE_TYPES=r.FLIPPED_ALIAS_KEYS.PatternLike,t.LVAL_TYPES=r.FLIPPED_ALIAS_KEYS.LVal,t.TSENTITYNAME_TYPES=r.FLIPPED_ALIAS_KEYS.TSEntityName,t.LITERAL_TYPES=r.FLIPPED_ALIAS_KEYS.Literal,t.IMMUTABLE_TYPES=r.FLIPPED_ALIAS_KEYS.Immutable,t.USERWHITESPACABLE_TYPES=r.FLIPPED_ALIAS_KEYS.UserWhitespacable,t.METHOD_TYPES=r.FLIPPED_ALIAS_KEYS.Method,t.OBJECTMEMBER_TYPES=r.FLIPPED_ALIAS_KEYS.ObjectMember,t.PROPERTY_TYPES=r.FLIPPED_ALIAS_KEYS.Property,t.UNARYLIKE_TYPES=r.FLIPPED_ALIAS_KEYS.UnaryLike,t.PATTERN_TYPES=r.FLIPPED_ALIAS_KEYS.Pattern,t.CLASS_TYPES=r.FLIPPED_ALIAS_KEYS.Class;let n=t.IMPORTOREXPORTDECLARATION_TYPES=r.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration;t.EXPORTDECLARATION_TYPES=r.FLIPPED_ALIAS_KEYS.ExportDeclaration,t.MODULESPECIFIER_TYPES=r.FLIPPED_ALIAS_KEYS.ModuleSpecifier,t.ACCESSOR_TYPES=r.FLIPPED_ALIAS_KEYS.Accessor,t.PRIVATE_TYPES=r.FLIPPED_ALIAS_KEYS.Private,t.FLOW_TYPES=r.FLIPPED_ALIAS_KEYS.Flow,t.FLOWTYPE_TYPES=r.FLIPPED_ALIAS_KEYS.FlowType,t.FLOWBASEANNOTATION_TYPES=r.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,t.FLOWDECLARATION_TYPES=r.FLIPPED_ALIAS_KEYS.FlowDeclaration,t.FLOWPREDICATE_TYPES=r.FLIPPED_ALIAS_KEYS.FlowPredicate,t.ENUMBODY_TYPES=r.FLIPPED_ALIAS_KEYS.EnumBody,t.ENUMMEMBER_TYPES=r.FLIPPED_ALIAS_KEYS.EnumMember,t.JSX_TYPES=r.FLIPPED_ALIAS_KEYS.JSX,t.MISCELLANEOUS_TYPES=r.FLIPPED_ALIAS_KEYS.Miscellaneous,t.TYPESCRIPT_TYPES=r.FLIPPED_ALIAS_KEYS.TypeScript,t.TSTYPEELEMENT_TYPES=r.FLIPPED_ALIAS_KEYS.TSTypeElement,t.TSTYPE_TYPES=r.FLIPPED_ALIAS_KEYS.TSType,t.TSBASETYPE_TYPES=r.FLIPPED_ALIAS_KEYS.TSBaseType,t.MODULEDECLARATION_TYPES=n},79897(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.UPDATE_OPERATORS=t.UNARY_OPERATORS=t.STRING_UNARY_OPERATORS=t.STATEMENT_OR_BLOCK_KEYS=t.NUMBER_UNARY_OPERATORS=t.NUMBER_BINARY_OPERATORS=t.LOGICAL_OPERATORS=t.INHERIT_KEYS=t.FOR_INIT_KEYS=t.FLATTENABLE_KEYS=t.EQUALITY_BINARY_OPERATORS=t.COMPARISON_BINARY_OPERATORS=t.COMMENT_KEYS=t.BOOLEAN_UNARY_OPERATORS=t.BOOLEAN_NUMBER_BINARY_OPERATORS=t.BOOLEAN_BINARY_OPERATORS=t.BINARY_OPERATORS=t.ASSIGNMENT_OPERATORS=void 0,t.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],t.FLATTENABLE_KEYS=["body","expressions"],t.FOR_INIT_KEYS=["left","init"],t.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];let i=t.LOGICAL_OPERATORS=["||","&&","??"];t.UPDATE_OPERATORS=["++","--"];let r=t.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],n=t.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],s=t.COMPARISON_BINARY_OPERATORS=[...n,"in","instanceof"],a=t.BOOLEAN_BINARY_OPERATORS=[...s,...r],o=t.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"];t.BINARY_OPERATORS=["+",...o,...a,"|>"],t.ASSIGNMENT_OPERATORS=["=","+=",...o.map(e=>e+"="),...i.map(e=>e+"=")];let l=t.BOOLEAN_UNARY_OPERATORS=["delete","!"],p=t.NUMBER_UNARY_OPERATORS=["+","-","~"],u=t.STRING_UNARY_OPERATORS=["typeof"];t.UNARY_OPERATORS=["void","throw",...l,...p,...u],t.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},t.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped"),t.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")},11350(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t="body"){let i=(0,r.default)(e[t],e);return e[t]=i,i};var r=i(98999)},22852(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,i){let l=[],p=!0;for(let u of t)if((0,n.isEmptyStatement)(u)||(p=!1),(0,n.isExpression)(u))l.push(u);else if((0,n.isExpressionStatement)(u))l.push(u.expression);else if((0,n.isVariableDeclaration)(u)){if("var"!==u.kind)return;for(let e of u.declarations){let t=(0,r.default)(e);for(let e of Object.keys(t))i.push({kind:u.kind,id:(0,o.default)(t[e])});e.init&&l.push((0,s.assignmentExpression)("=",e.id,e.init))}p=!0}else if((0,n.isIfStatement)(u)){let t=u.consequent?e([u.consequent],i):(0,a.buildUndefinedNode)(),r=u.alternate?e([u.alternate],i):(0,a.buildUndefinedNode)();if(!t||!r)return;l.push((0,s.conditionalExpression)(u.test,t,r))}else if((0,n.isBlockStatement)(u)){let t=e(u.body,i);if(!t)return;l.push(t)}else{if(!(0,n.isEmptyStatement)(u))return;0===t.indexOf(u)&&(p=!0)}return(p&&l.push((0,a.buildUndefinedNode)()),1===l.length)?l[0]:(0,s.sequenceExpression)(l)};var r=i(46676),n=i(60133),s=i(93806),a=i(12456),o=i(16812)},95847(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return("eval"===(e=(0,r.default)(e))||"arguments"===e)&&(e="_"+e),e};var r=i(17627)},98999(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.isBlockStatement)(e))return e;let i=[];return(0,r.isEmptyStatement)(e)?i=[]:((0,r.isStatement)(e)||(e=(0,r.isFunction)(t)?(0,n.returnStatement)(e):(0,n.expressionStatement)(e)),i=[e]),(0,n.blockStatement)(i)};var r=i(60133),n=i(93806)},93544(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=e.key||e.property){return!e.computed&&(0,r.isIdentifier)(t)&&(t=(0,n.stringLiteral)(t.name)),t};var r=i(60133),n=i(93806)},25002(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(60133);t.default=function(e){if((0,r.isExpressionStatement)(e)&&(e=e.expression),(0,r.isExpression)(e))return e;if((0,r.isClass)(e)?(e.type="ClassExpression",e.abstract=!1):(0,r.isFunction)(e)&&(e.type="FunctionExpression"),!(0,r.isExpression)(e))throw Error(`cannot turn ${e.type} to an expression`);return e}},17627(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let t="";for(let i of e+="")t+=(0,n.isIdentifierChar)(i.codePointAt(0))?i:"-";return t=(t=t.replace(/^[-0-9]+/,"")).replace(/[-\s]+(.)?/g,function(e,t){return t?t.toUpperCase():""}),(0,r.default)(t)||(t=`_${t}`),t||"_"};var r=i(78126),n=i(14007)},35349(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=i(60133),n=i(16812),s=i(55262);function a(e,t=e.key){let i;return"method"===e.kind?a.increment()+"":(i=(0,r.isIdentifier)(t)?t.name:(0,r.isStringLiteral)(t)?JSON.stringify(t.value):JSON.stringify((0,s.default)((0,n.default)(t))),e.computed&&(i=`[${i}]`),e.static&&(i=`static:${i}`),i)}a.uid=0,a.increment=function(){return a.uid>=Number.MAX_SAFE_INTEGER?a.uid=0:a.uid++}},55827(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!(null!=e&&e.length))return;let i=[],n=(0,r.default)(e,i);if(n){for(let e of i)t.push(e);return n}};var r=i(22852)},10187(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(60133),n=i(93806);t.default=function(e,t){let i;if((0,r.isStatement)(e))return e;let s=!1;if((0,r.isClass)(e))s=!0,i="ClassDeclaration";else if((0,r.isFunction)(e))s=!0,i="FunctionDeclaration";else if((0,r.isAssignmentExpression)(e))return(0,n.expressionStatement)(e);if(s&&!e.id&&(i=!1),!i)if(t)return!1;else throw Error(`cannot turn ${e.type} to a statement`);return e.type=i,e}},62485(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(78126),n=i(93806);t.default=function e(t){if(void 0===t)return(0,n.identifier)("undefined");if(!0===t||!1===t)return(0,n.booleanLiteral)(t);if(null===t)return(0,n.nullLiteral)();if("string"==typeof t)return(0,n.stringLiteral)(t);if("number"==typeof t){let e;if(Number.isFinite(t))e=(0,n.numericLiteral)(Math.abs(t));else{let i;i=Number.isNaN(t)?(0,n.numericLiteral)(0):(0,n.numericLiteral)(1),e=(0,n.binaryExpression)("/",i,(0,n.numericLiteral)(0))}return(t<0||Object.is(t,-0))&&(e=(0,n.unaryExpression)("-",e)),e}if("bigint"==typeof t)if(t<0)return(0,n.unaryExpression)("-",(0,n.bigIntLiteral)(-t));else return(0,n.bigIntLiteral)(t);if("[object RegExp]"===s(t)){let e=t.source,i=/\/([a-z]*)$/.exec(t.toString())[1];return(0,n.regExpLiteral)(e,i)}if(Array.isArray(t))return(0,n.arrayExpression)(t.map(e));if(function(e){if("object"!=typeof e||null===e||"[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(t)){let i=[];for(let s of Object.keys(t)){let a,o=!1;(0,r.default)(s)?"__proto__"===s?(o=!0,a=(0,n.stringLiteral)(s)):a=(0,n.identifier)(s):a=(0,n.stringLiteral)(s),i.push((0,n.objectProperty)(a,e(t[s]),o))}return(0,n.objectExpression)(i)}throw Error("don't know how to turn this value into a node")};let s=Function.call.bind(Object.prototype.toString)},81587(e,t,i){let r,n,s,a,o,l,p,u,c,d,h,m,f,y,g,T,b,x,S,E,A,P,v,D,C;Object.defineProperty(t,"__esModule",{value:!0}),t.patternLikeCommon=t.importAttributes=t.functionTypeAnnotationCommon=t.functionDeclarationCommon=t.functionCommon=t.classMethodOrPropertyUnionShapeCommon=t.classMethodOrPropertyCommon=t.classMethodOrDeclareMethodCommon=void 0;var w=i(80947),_=i(78126),I=i(14007),k=i(80672),N=i(79897),O=i(65183);let F=(e=!1)=>({unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,O.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:e?(0,O.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"):(0,O.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral")}}}]}});t.classMethodOrPropertyUnionShapeCommon=F;let L=(0,O.defineAliasedType)("Standardized");L("ArrayExpression",{fields:{elements:{validate:(0,O.arrayOf)((0,O.assertNodeOrValueType)("null","Expression","SpreadElement")),default:process.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]}),L("AssignmentExpression",{fields:{operator:{validate:process.env.BABEL_TYPES_8_BREAKING?Object.assign((r=(0,O.assertOneOf)(...N.ASSIGNMENT_OPERATORS),n=(0,O.assertOneOf)("="),function(e,t,i){((0,w.default)("Pattern",e.left)?n:r)(e,t,i)}),{oneOf:N.ASSIGNMENT_OPERATORS}):(0,O.assertValueType)("string")},left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,O.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,O.assertNodeType)("LVal","OptionalMemberExpression")},right:{validate:(0,O.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]}),L("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,O.assertOneOf)(...N.BINARY_OPERATORS)},left:{validate:(s=(0,O.assertNodeType)("Expression"),a=(0,O.assertNodeType)("Expression","PrivateName"),Object.assign(function(e,t,i){("in"===e.operator?a:s)(e,t,i)},{oneOfNodeTypes:["Expression","PrivateName"]}))},right:{validate:(0,O.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]}),L("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,O.assertValueType)("string")}}}),L("Directive",{visitor:["value"],fields:{value:{validate:(0,O.assertNodeType)("DirectiveLiteral")}}}),L("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,O.assertValueType)("string")}}}),L("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,O.arrayOfType)("Directive"),default:[]},body:(0,O.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]}),L("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,O.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),L("CallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,O.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:(0,O.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,O.assertNodeType)("TypeParameterInstantiation"),optional:!0}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,O.assertValueType)("boolean"),optional:!0},typeParameters:{validate:(0,O.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),L("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,O.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,O.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]}),L("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,O.assertNodeType)("Expression")},consequent:{validate:(0,O.assertNodeType)("Expression")},alternate:{validate:(0,O.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]}),L("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,O.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),L("DebuggerStatement",{aliases:["Statement"]}),L("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:(0,O.assertNodeType)("Expression")},body:{validate:(0,O.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]}),L("EmptyStatement",{aliases:["Statement"]}),L("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,O.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]}),L("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,O.assertNodeType)("Program")},comments:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,O.assertEach)((0,O.assertNodeType)("CommentBlock","CommentLine")):Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,O.assertEach)(Object.assign(()=>{},{type:"any"})),optional:!0}}}),L("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,O.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,O.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,O.assertNodeType)("Expression")},body:{validate:(0,O.assertNodeType)("Statement")}}}),L("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,O.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,O.assertNodeType)("Expression"),optional:!0},update:{validate:(0,O.assertNodeType)("Expression"),optional:!0},body:{validate:(0,O.assertNodeType)("Statement")}}});let M=()=>({params:(0,O.validateArrayOfType)("FunctionParameter"),generator:{default:!1},async:{default:!1}});t.functionCommon=M;let B=()=>({returnType:{validate:(0,O.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,O.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});t.functionTypeAnnotationCommon=B;let j=()=>Object.assign({},M(),{declare:{validate:(0,O.assertValueType)("boolean"),optional:!0},id:{validate:(0,O.assertNodeType)("Identifier"),optional:!0}});t.functionDeclarationCommon=j,L("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","predicate","returnType","body"],fields:Object.assign({},j(),B(),{body:{validate:(0,O.assertNodeType)("BlockStatement")},predicate:{validate:(0,O.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:process.env.BABEL_TYPES_8_BREAKING?(o=(0,O.assertNodeType)("Identifier"),function(e,t,i){(0,w.default)("ExportDefaultDeclaration",e)||o(i,"id",i.id)}):void 0}),L("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},M(),B(),{id:{validate:(0,O.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,O.assertNodeType)("BlockStatement")},predicate:{validate:(0,O.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});let R=()=>({typeAnnotation:{validate:(0,O.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0,O.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,O.arrayOfType)("Decorator"),optional:!0}});t.patternLikeCommon=R,L("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","FunctionParameter","PatternLike","LVal","TSEntityName"],fields:Object.assign({},R(),{name:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,O.chain)((0,O.assertValueType)("string"),Object.assign(function(e,t,i){if(!(0,_.default)(i,!1))throw TypeError(`"${i}" is not a valid identifier name`)},{type:"string"})):(0,O.assertValueType)("string")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t,i){let r=/\.(\w+)$/.exec(t.toString());if(!r)return;let[,n]=r,s={computed:!1};if("property"===n){if((0,w.default)("MemberExpression",e,s)||(0,w.default)("OptionalMemberExpression",e,s))return}else if("key"===n){if((0,w.default)("Property",e,s)||(0,w.default)("Method",e,s))return}else if("exported"===n){if((0,w.default)("ExportSpecifier",e))return}else if("imported"===n){if((0,w.default)("ImportSpecifier",e,{imported:i}))return}else if("meta"===n&&(0,w.default)("MetaProperty",e,{meta:i}))return;if(((0,I.isKeyword)(i.name)||(0,I.isReservedWord)(i.name,!1))&&"this"!==i.name)throw TypeError(`"${i.name}" is not a valid identifier`)}:void 0}),L("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,O.assertNodeType)("Expression")},consequent:{validate:(0,O.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,O.assertNodeType)("Statement")}}}),L("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,O.assertNodeType)("Identifier")},body:{validate:(0,O.assertNodeType)("Statement")}}}),L("StringLiteral",{builder:["value"],fields:{value:{validate:(0,O.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),L("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,O.chain)((0,O.assertValueType)("number"),Object.assign(function(e,t,i){(1/i<0||!Number.isFinite(i))&&Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${i}) instead.`)},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]}),L("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]}),L("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,O.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]}),L("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,O.assertValueType)("string")},flags:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,O.chain)((0,O.assertValueType)("string"),Object.assign(function(e,t,i){let r=/[^dgimsuvy]/.exec(i);if(r)throw TypeError(`"${r[0]}" is not a valid RegExp flag`)},{type:"string"})):(0,O.assertValueType)("string"),default:""}}}),L("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,O.assertOneOf)(...N.LOGICAL_OPERATORS)},left:{validate:(0,O.assertNodeType)("Expression")},right:{validate:(0,O.assertNodeType)("Expression")}}}),L("MemberExpression",{builder:["object","property","computed",...process.env.BABEL_TYPES_8_BREAKING?[]:["optional"]],visitor:["object","property"],aliases:["Expression","LVal","PatternLike"],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{property:{validate:(0,O.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{property:{validate:(0,O.assertNodeType)("Identifier","PrivateName")}}}]},fields:Object.assign({object:{validate:(0,O.assertNodeType)("Expression","Super")},property:{validate:(l=(0,O.assertNodeType)("Identifier","PrivateName"),p=(0,O.assertNodeType)("Expression"),(u=function(e,t,i){(e.computed?p:l)(e,t,i)}).oneOfNodeTypes=["Expression","Identifier","PrivateName"],u)},computed:{default:!1}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,O.assertValueType)("boolean"),optional:!0}})}),L("NewExpression",{inherits:"CallExpression"}),L("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0,O.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,O.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,O.arrayOfType)("Directive"),default:[]},body:(0,O.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block"]}),L("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,O.validateArrayOfType)("ObjectMethod","ObjectProperty","SpreadElement")}}),L("ObjectMethod",Object.assign({builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},F(),{fields:Object.assign({},M(),B(),{kind:Object.assign({validate:(0,O.assertOneOf)("method","get","set")},process.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:(c=(0,O.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),d=(0,O.assertNodeType)("Expression"),(h=function(e,t,i){(e.computed?d:c)(e,t,i)}).oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],h)},decorators:{validate:(0,O.arrayOfType)("Decorator"),optional:!0},body:{validate:(0,O.assertNodeType)("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]})),L("ObjectProperty",{builder:["key","value","computed","shorthand",...process.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,O.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:(0,O.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName")}}}]},fields:{computed:{default:!1},key:{validate:(m=(0,O.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),f=(0,O.assertNodeType)("Expression"),Object.assign(function(e,t,i){(e.computed?f:m)(e,t,i)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]}))},value:{validate:(0,O.assertNodeType)("Expression","PatternLike")},shorthand:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,O.chain)((0,O.assertValueType)("boolean"),Object.assign(function(e,t,i){if(i){if(e.computed)throw TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");if(!(0,w.default)("Identifier",e.key))throw TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}},{type:"boolean"})):(0,O.assertValueType)("boolean"),default:!1},decorators:{validate:(0,O.arrayOfType)("Decorator"),optional:!0}},visitor:["decorators","key","value"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:process.env.BABEL_TYPES_8_BREAKING?(y=(0,O.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),g=(0,O.assertNodeType)("Expression"),function(e,t,i){((0,w.default)("ObjectPattern",e)?y:g)(i,"value",i.value)}):void 0}),L("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["FunctionParameter","PatternLike","LVal"],deprecatedAlias:"RestProperty",fields:Object.assign({},R(),{argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,O.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,O.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression","RestElement","AssignmentPattern")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t){let i=/(\w+)\[(\d+)\]/.exec(t.toString());if(!i)throw Error("Internal Babel error: malformed key.");let[,r,n]=i;if(e[r].length>+n+1)throw TypeError(`RestElement must be last element of ${r}`)}:void 0}),L("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,O.assertNodeType)("Expression"),optional:!0}}}),L("SequenceExpression",{visitor:["expressions"],fields:{expressions:(0,O.validateArrayOfType)("Expression")},aliases:["Expression"]}),L("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,O.assertNodeType)("Expression")}}}),L("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,O.assertNodeType)("Expression"),optional:!0},consequent:(0,O.validateArrayOfType)("Statement")}}),L("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,O.assertNodeType)("Expression")},cases:(0,O.validateArrayOfType)("SwitchCase")}}),L("ThisExpression",{aliases:["Expression"]}),L("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,O.assertNodeType)("Expression")}}}),L("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,O.chain)((0,O.assertNodeType)("BlockStatement"),Object.assign(function(e){if(!e.handler&&!e.finalizer)throw TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]})):(0,O.assertNodeType)("BlockStatement")},handler:{optional:!0,validate:(0,O.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,O.assertNodeType)("BlockStatement")}}}),L("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,O.assertNodeType)("Expression")},operator:{validate:(0,O.assertOneOf)(...N.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),L("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,O.assertNodeType)("Identifier","MemberExpression"):(0,O.assertNodeType)("Expression")},operator:{validate:(0,O.assertOneOf)(...N.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]}),L("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,O.assertValueType)("boolean"),optional:!0},kind:{validate:(0,O.assertOneOf)("var","let","const","using","await using")},declarations:(0,O.validateArrayOfType)("VariableDeclarator")},validate:process.env.BABEL_TYPES_8_BREAKING?(T=(0,O.assertNodeType)("Identifier","Placeholder"),b=(0,O.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","Placeholder"),x=(0,O.assertNodeType)("Identifier","VoidPattern","Placeholder"),function(e,t,i){let{kind:r,declarations:n}=i,s=(0,w.default)("ForXStatement",e,{left:i});if(s&&1!==n.length)throw TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${e.type}`);for(let e of n)"const"===r||"let"===r||"var"===r?s||e.init?b(e,"id",e.id):T(e,"id",e.id):x(e,"id",e.id)}):void 0}),L("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,O.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","VoidPattern"):(0,O.assertNodeType)("LVal","VoidPattern")},definite:{optional:!0,validate:(0,O.assertValueType)("boolean")},init:{optional:!0,validate:(0,O.assertNodeType)("Expression")}}}),L("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,O.assertNodeType)("Expression")},body:{validate:(0,O.assertNodeType)("Statement")}}}),L("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,O.assertNodeType)("Expression")},body:{validate:(0,O.assertNodeType)("Statement")}}}),L("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},R(),{left:{validate:(0,O.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,O.assertNodeType)("Expression")},decorators:{validate:(0,O.arrayOfType)("Decorator"),optional:!0}})}),L("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},R(),{elements:{validate:(0,O.chain)((0,O.assertValueType)("array"),(0,O.assertEach)((0,O.assertNodeOrValueType)("null","PatternLike")))}})}),L("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","predicate","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},M(),B(),{expression:{validate:(0,O.assertValueType)("boolean")},body:{validate:(0,O.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,O.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})}),L("ClassBody",{visitor:["body"],fields:{body:(0,O.validateArrayOfType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}}),L("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,O.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,O.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,O.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,O.assertNodeType)("Expression")},superTypeParameters:{validate:(0,O.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,O.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,O.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,O.assertNodeType)("InterfaceExtends"),optional:!0}}}),L("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,O.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,O.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,O.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,O.assertNodeType)("Expression")},superTypeParameters:{validate:(0,O.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,O.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,O.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,O.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,O.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,O.assertValueType)("boolean"),optional:!0}},validate:process.env.BABEL_TYPES_8_BREAKING?(S=(0,O.assertNodeType)("Identifier"),function(e,t,i){(0,w.default)("ExportDefaultDeclaration",e)||S(i,"id",i.id)}):void 0});let U=t.importAttributes={attributes:{optional:!0,validate:(0,O.arrayOfType)("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:(0,O.arrayOfType)("ImportAttribute")}};L("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({source:{validate:(0,O.assertNodeType)("StringLiteral")},exportKind:(0,O.validateOptional)((0,O.assertOneOf)("type","value"))},U)}),L("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:(0,O.validateType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:(0,O.validateOptional)((0,O.assertOneOf)("value"))}}),L("ExportNamedDeclaration",{builder:["declaration","specifiers","source"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({declaration:{optional:!0,validate:process.env.BABEL_TYPES_8_BREAKING?(0,O.chain)((0,O.assertNodeType)("Declaration"),Object.assign(function(e,t,i){if(i&&e.specifiers.length)throw TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(i&&e.source)throw TypeError("Cannot export a declaration from a source")},{oneOfNodeTypes:["Declaration"]})):(0,O.assertNodeType)("Declaration")}},U,{specifiers:{default:[],validate:(0,O.arrayOf)((E=(0,O.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),A=(0,O.assertNodeType)("ExportSpecifier"),process.env.BABEL_TYPES_8_BREAKING?Object.assign(function(e,t,i){(e.source?E:A)(e,t,i)},{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]}):E))},source:{validate:(0,O.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,O.validateOptional)((0,O.assertOneOf)("type","value"))})}),L("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,O.assertNodeType)("Identifier")},exported:{validate:(0,O.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,O.assertOneOf)("type","value"),optional:!0}}}),L("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,O.assertNodeType)("VariableDeclaration","LVal");let e=(0,O.assertNodeType)("VariableDeclaration"),t=(0,O.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign(function(i,r,n){(0,w.default)("VariableDeclaration",n)?e(i,r,n):t(i,r,n)},{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})}()},right:{validate:(0,O.assertNodeType)("Expression")},body:{validate:(0,O.assertNodeType)("Statement")},await:{default:!1}}}),L("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},U,{module:{optional:!0,validate:(0,O.assertValueType)("boolean")},phase:{default:null,validate:(0,O.assertOneOf)("source","defer")},specifiers:(0,O.validateArrayOfType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:(0,O.assertNodeType)("StringLiteral")},importKind:{validate:(0,O.assertOneOf)("type","typeof","value"),optional:!0}})}),L("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,O.assertNodeType)("Identifier")}}}),L("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,O.assertNodeType)("Identifier")}}}),L("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,O.assertNodeType)("Identifier")},imported:{validate:(0,O.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,O.assertOneOf)("type","typeof","value"),optional:!0}}}),L("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0,O.assertOneOf)("source","defer")},source:{validate:(0,O.assertNodeType)("Expression")},options:{validate:(0,O.assertNodeType)("Expression"),optional:!0}}}),L("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,O.chain)((0,O.assertNodeType)("Identifier"),Object.assign(function(e,t,i){let r;switch(i.name){case"function":r="sent";break;case"new":r="target";break;case"import":r="meta"}if(!(0,w.default)("Identifier",e.property,{name:r}))throw TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]})):(0,O.assertNodeType)("Identifier")},property:{validate:(0,O.assertNodeType)("Identifier")}}});let V=()=>{let e,t;return{abstract:{validate:(0,O.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,O.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,O.assertValueType)("boolean"),optional:!0},key:{validate:(0,O.chain)((e=(0,O.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,O.assertNodeType)("Expression"),function(i,r,n){(i.computed?t:e)(i,r,n)}),(0,O.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}}};t.classMethodOrPropertyCommon=V;let K=()=>Object.assign({},M(),V(),{params:(0,O.validateArrayOfType)("FunctionParameter","TSParameterProperty"),kind:{validate:(0,O.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,O.chain)((0,O.assertValueType)("string"),(0,O.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,O.arrayOfType)("Decorator"),optional:!0}});t.classMethodOrDeclareMethodCommon=K,L("ClassMethod",Object.assign({aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},F(),{fields:Object.assign({},K(),B(),{body:{validate:(0,O.assertNodeType)("BlockStatement")}})})),L("ObjectPattern",{visitor:["decorators","properties","typeAnnotation"],builder:["properties"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},R(),{properties:(0,O.validateArrayOfType)("RestElement","ObjectProperty")})}),L("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,O.assertNodeType)("Expression")}}}),L("Super",{aliases:["Expression"]}),L("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,O.assertNodeType)("Expression")},quasi:{validate:(0,O.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,O.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),L("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,O.chain)((0,O.assertShape)({raw:{validate:(0,O.assertValueType)("string")},cooked:{validate:(0,O.assertValueType)("string"),optional:!0}}),function(e){let t=e.value.raw,i=!1,r=()=>{throw Error("Internal @babel/types error.")},{str:n,firstInvalidLoc:s}=(0,k.readStringContents)("template",t,0,0,0,{unterminated(){i=!0},strictNumericEscape:r,invalidEscapeSequence:r,numericSeparatorInEscapeSequence:r,unexpectedNumericSeparator:r,invalidDigit:r,invalidCodePoint:r});if(!i)throw Error("Invalid raw");e.value.cooked=s?null:n})},tail:{default:!1}}}),L("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:(0,O.validateArrayOfType)("TemplateElement"),expressions:{validate:(0,O.chain)((0,O.assertValueType)("array"),(0,O.assertEach)((0,O.assertNodeType)("Expression","TSType")),function(e,t,i){if(e.quasis.length!==i.length+1)throw TypeError(`Number of ${e.type} quasis should be exactly one more than the number of expressions.
27
+ Expected ${i.length+1} quasis but got ${e.quasis.length}`)})}}}),L("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,O.chain)((0,O.assertValueType)("boolean"),Object.assign(function(e,t,i){if(i&&!e.argument)throw TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})):(0,O.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0,O.assertNodeType)("Expression")}}}),L("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,O.assertNodeType)("Expression")}}}),L("Import",{aliases:["Expression"]}),L("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,O.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),L("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,O.assertNodeType)("Identifier")}}}),L("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,O.assertNodeType)("Expression")},property:{validate:(P=(0,O.assertNodeType)("Identifier"),v=(0,O.assertNodeType)("Expression"),Object.assign(function(e,t,i){(e.computed?v:P)(e,t,i)},{oneOfNodeTypes:["Expression","Identifier"]}))},computed:{default:!1},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,O.chain)((0,O.assertValueType)("boolean"),(0,O.assertOptionalChainStart)()):(0,O.assertValueType)("boolean")}}}),L("OptionalCallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,O.assertNodeType)("Expression")},arguments:(0,O.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,O.chain)((0,O.assertValueType)("boolean"),(0,O.assertOptionalChainStart)()):(0,O.assertValueType)("boolean")},typeArguments:{validate:(0,O.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,O.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),L("ClassProperty",Object.assign({visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"]},F(),{fields:Object.assign({},V(),{value:{validate:(0,O.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,O.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,O.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,O.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,O.assertValueType)("boolean"),optional:!0},declare:{validate:(0,O.assertValueType)("boolean"),optional:!0},variance:{validate:(0,O.assertNodeType)("Variance"),optional:!0}})})),L("ClassAccessorProperty",Object.assign({visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"]},F(!0),{fields:Object.assign({},V(),{key:{validate:(0,O.chain)((D=(0,O.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),C=(0,O.assertNodeType)("Expression"),function(e,t,i){(e.computed?C:D)(e,t,i)}),(0,O.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,O.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,O.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,O.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,O.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,O.assertValueType)("boolean"),optional:!0},declare:{validate:(0,O.assertValueType)("boolean"),optional:!0},variance:{validate:(0,O.assertNodeType)("Variance"),optional:!0}})})),L("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,O.assertNodeType)("PrivateName")},value:{validate:(0,O.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,O.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,O.arrayOfType)("Decorator"),optional:!0},static:{validate:(0,O.assertValueType)("boolean"),default:!1},readonly:{validate:(0,O.assertValueType)("boolean"),optional:!0},optional:{validate:(0,O.assertValueType)("boolean"),optional:!0},definite:{validate:(0,O.assertValueType)("boolean"),optional:!0},variance:{validate:(0,O.assertNodeType)("Variance"),optional:!0}}}),L("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},K(),B(),{kind:{validate:(0,O.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,O.assertNodeType)("PrivateName")},body:{validate:(0,O.assertNodeType)("BlockStatement")}})}),L("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,O.assertNodeType)("Identifier")}}}),L("StaticBlock",{visitor:["body"],fields:{body:(0,O.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]}),L("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,O.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,O.assertNodeType)("StringLiteral")}}})},81720(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.DEPRECATED_ALIASES=void 0,t.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}},18218(e,t,i){var r=i(65183);(0,r.default)("ArgumentPlaceholder",{}),(0,r.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:process.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,r.assertNodeType)("Expression")},callee:{validate:(0,r.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}}),(0,r.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,r.assertNodeType)("Expression")}}}),(0,r.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,r.assertNodeType)("BlockStatement")},async:{validate:(0,r.assertValueType)("boolean"),default:!1}}}),(0,r.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,r.assertNodeType)("Identifier")}}}),(0,r.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,r.validateArrayOfType)("ObjectProperty","SpreadElement")}}),(0,r.default)("TupleExpression",{fields:{elements:{validate:(0,r.arrayOfType)("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]}),(0,r.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,r.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,r.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,r.assertNodeType)("Program")}},aliases:["Expression"]}),(0,r.default)("TopicReference",{aliases:["Expression"]}),(0,r.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,r.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,r.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,r.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,r.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]}),(0,r.default)("VoidPattern",{aliases:["Pattern","PatternLike","FunctionParameter"]})},94520(e,t,i){var r=i(81587),n=i(65183);let s=(0,n.defineAliasedType)("Flow"),a=e=>{let t="DeclareClass"===e;s(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...t?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,n.validateType)("Identifier"),typeParameters:(0,n.validateOptionalType)("TypeParameterDeclaration"),extends:(0,n.validateOptional)((0,n.arrayOfType)("InterfaceExtends"))},t?{mixins:(0,n.validateOptional)((0,n.arrayOfType)("InterfaceExtends")),implements:(0,n.validateOptional)((0,n.arrayOfType)("ClassImplements"))}:{},{body:(0,n.validateType)("ObjectTypeAnnotation")})})};s("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),s("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,n.validateType)("FlowType")}}),s("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),s("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,n.validate)((0,n.assertValueType)("boolean"))}}),s("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),s("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,n.validateType)("Identifier"),typeParameters:(0,n.validateOptionalType)("TypeParameterInstantiation")}}),a("DeclareClass"),s("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,n.validateType)("Identifier"),predicate:(0,n.validateOptionalType)("DeclaredPredicate")}}),a("DeclareInterface"),s("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,n.validateType)("Identifier","StringLiteral"),body:(0,n.validateType)("BlockStatement"),kind:(0,n.validateOptional)((0,n.assertOneOf)("CommonJS","ES"))}}),s("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,n.validateType)("TypeAnnotation")}}),s("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,n.validateType)("Identifier"),typeParameters:(0,n.validateOptionalType)("TypeParameterDeclaration"),right:(0,n.validateType)("FlowType")}}),s("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,n.validateType)("Identifier"),typeParameters:(0,n.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,n.validateOptionalType)("FlowType"),impltype:(0,n.validateOptionalType)("FlowType")}}),s("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,n.validateType)("Identifier")}}),s("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:(0,n.validateOptionalType)("Flow"),specifiers:(0,n.validateOptional)((0,n.arrayOfType)("ExportSpecifier","ExportNamespaceSpecifier")),source:(0,n.validateOptionalType)("StringLiteral"),default:(0,n.validateOptional)((0,n.assertValueType)("boolean"))},r.importAttributes)}),s("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:(0,n.validateType)("StringLiteral"),exportKind:(0,n.validateOptional)((0,n.assertOneOf)("type","value"))},r.importAttributes)}),s("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,n.validateType)("Flow")}}),s("ExistsTypeAnnotation",{aliases:["FlowType"]}),s("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,n.validateOptionalType)("TypeParameterDeclaration"),params:(0,n.validateArrayOfType)("FunctionTypeParam"),rest:(0,n.validateOptionalType)("FunctionTypeParam"),this:(0,n.validateOptionalType)("FunctionTypeParam"),returnType:(0,n.validateType)("FlowType")}}),s("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,n.validateOptionalType)("Identifier"),typeAnnotation:(0,n.validateType)("FlowType"),optional:(0,n.validateOptional)((0,n.assertValueType)("boolean"))}}),s("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,n.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,n.validateOptionalType)("TypeParameterInstantiation")}}),s("InferredPredicate",{aliases:["FlowPredicate"]}),s("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,n.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,n.validateOptionalType)("TypeParameterInstantiation")}}),a("InterfaceDeclaration"),s("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,n.validateOptional)((0,n.arrayOfType)("InterfaceExtends")),body:(0,n.validateType)("ObjectTypeAnnotation")}}),s("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,n.validate)((0,n.arrayOfType)("FlowType"))}}),s("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),s("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),s("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,n.validateType)("FlowType")}}),s("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,n.validate)((0,n.assertValueType)("number"))}}),s("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),s("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,n.validate)((0,n.arrayOfType)("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:(0,n.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,n.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,n.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,n.assertValueType)("boolean"),default:!1},inexact:(0,n.validateOptional)((0,n.assertValueType)("boolean"))}}),s("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,n.validateType)("Identifier"),value:(0,n.validateType)("FlowType"),optional:(0,n.validate)((0,n.assertValueType)("boolean")),static:(0,n.validate)((0,n.assertValueType)("boolean")),method:(0,n.validate)((0,n.assertValueType)("boolean"))}}),s("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,n.validateType)("FlowType"),static:(0,n.validate)((0,n.assertValueType)("boolean"))}}),s("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,n.validateOptionalType)("Identifier"),key:(0,n.validateType)("FlowType"),value:(0,n.validateType)("FlowType"),static:(0,n.validate)((0,n.assertValueType)("boolean")),variance:(0,n.validateOptionalType)("Variance")}}),s("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,n.validateType)("Identifier","StringLiteral"),value:(0,n.validateType)("FlowType"),kind:(0,n.validate)((0,n.assertOneOf)("init","get","set")),static:(0,n.validate)((0,n.assertValueType)("boolean")),proto:(0,n.validate)((0,n.assertValueType)("boolean")),optional:(0,n.validate)((0,n.assertValueType)("boolean")),variance:(0,n.validateOptionalType)("Variance"),method:(0,n.validate)((0,n.assertValueType)("boolean"))}}),s("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,n.validateType)("FlowType")}}),s("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,n.validateType)("Identifier"),typeParameters:(0,n.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,n.validateOptionalType)("FlowType"),impltype:(0,n.validateType)("FlowType")}}),s("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0,n.validateType)("Identifier"),qualification:(0,n.validateType)("Identifier","QualifiedTypeIdentifier")}}),s("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,n.validate)((0,n.assertValueType)("string"))}}),s("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),s("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),s("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),s("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,n.validate)((0,n.arrayOfType)("FlowType"))}}),s("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,n.validateType)("FlowType")}}),s("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,n.validateType)("Identifier"),typeParameters:(0,n.validateOptionalType)("TypeParameterDeclaration"),right:(0,n.validateType)("FlowType")}}),s("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,n.validateType)("FlowType")}}),s("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,n.validateType)("Expression"),typeAnnotation:(0,n.validateType)("TypeAnnotation")}}),s("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,n.validate)((0,n.assertValueType)("string")),bound:(0,n.validateOptionalType)("TypeAnnotation"),default:(0,n.validateOptionalType)("FlowType"),variance:(0,n.validateOptionalType)("Variance")}}),s("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,n.validate)((0,n.arrayOfType)("TypeParameter"))}}),s("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,n.validate)((0,n.arrayOfType)("FlowType"))}}),s("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,n.validate)((0,n.arrayOfType)("FlowType"))}}),s("Variance",{builder:["kind"],fields:{kind:(0,n.validate)((0,n.assertOneOf)("minus","plus"))}}),s("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),s("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,n.validateType)("Identifier"),body:(0,n.validateType)("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}}),s("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,n.validate)((0,n.assertValueType)("boolean")),members:(0,n.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,n.validate)((0,n.assertValueType)("boolean"))}}),s("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,n.validate)((0,n.assertValueType)("boolean")),members:(0,n.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,n.validate)((0,n.assertValueType)("boolean"))}}),s("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,n.validate)((0,n.assertValueType)("boolean")),members:(0,n.validateArrayOfType)("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:(0,n.validate)((0,n.assertValueType)("boolean"))}}),s("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,n.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,n.validate)((0,n.assertValueType)("boolean"))}}),s("EnumBooleanMember",{aliases:["EnumMember"],builder:["id"],visitor:["id","init"],fields:{id:(0,n.validateType)("Identifier"),init:(0,n.validateType)("BooleanLiteral")}}),s("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,n.validateType)("Identifier"),init:(0,n.validateType)("NumericLiteral")}}),s("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,n.validateType)("Identifier"),init:(0,n.validateType)("StringLiteral")}}),s("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,n.validateType)("Identifier")}}),s("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,n.validateType)("FlowType"),indexType:(0,n.validateType)("FlowType")}}),s("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,n.validateType)("FlowType"),indexType:(0,n.validateType)("FlowType"),optional:(0,n.validate)((0,n.assertValueType)("boolean"))}})},49390(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ALIAS_KEYS",{enumerable:!0,get:function(){return r.ALIAS_KEYS}}),Object.defineProperty(t,"BUILDER_KEYS",{enumerable:!0,get:function(){return r.BUILDER_KEYS}}),Object.defineProperty(t,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return s.DEPRECATED_ALIASES}}),Object.defineProperty(t,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return r.DEPRECATED_KEYS}}),Object.defineProperty(t,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return r.FLIPPED_ALIAS_KEYS}}),Object.defineProperty(t,"NODE_FIELDS",{enumerable:!0,get:function(){return r.NODE_FIELDS}}),Object.defineProperty(t,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return r.NODE_PARENT_VALIDATIONS}}),Object.defineProperty(t,"NODE_UNION_SHAPES__PRIVATE",{enumerable:!0,get:function(){return r.NODE_UNION_SHAPES__PRIVATE}}),Object.defineProperty(t,"PLACEHOLDERS",{enumerable:!0,get:function(){return n.PLACEHOLDERS}}),Object.defineProperty(t,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return n.PLACEHOLDERS_ALIAS}}),Object.defineProperty(t,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return n.PLACEHOLDERS_FLIPPED_ALIAS}}),t.TYPES=void 0,Object.defineProperty(t,"VISITOR_KEYS",{enumerable:!0,get:function(){return r.VISITOR_KEYS}}),i(81587),i(94520),i(42363),i(27232),i(18218),i(94831);var r=i(65183),n=i(74014),s=i(81720);for(let{types:e,set:t}of(Object.keys(s.DEPRECATED_ALIASES).forEach(e=>{r.FLIPPED_ALIAS_KEYS[e]=r.FLIPPED_ALIAS_KEYS[s.DEPRECATED_ALIASES[e]]}),r.allExpandedTypes))for(let i of e){let e=r.FLIPPED_ALIAS_KEYS[i];e?e.forEach(t.add,t):t.add(i)}t.TYPES=[].concat(Object.keys(r.VISITOR_KEYS),Object.keys(r.FLIPPED_ALIAS_KEYS),Object.keys(r.DEPRECATED_KEYS))},42363(e,t,i){var r=i(65183);let n=(0,r.defineAliasedType)("JSX");n("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,r.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,r.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),n("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,r.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),n("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,r.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,r.assertNodeType)("JSXClosingElement")},children:(0,r.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:(0,r.assertValueType)("boolean"),optional:!0}})}),n("JSXEmptyExpression",{}),n("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,r.assertNodeType)("Expression","JSXEmptyExpression")}}}),n("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,r.assertNodeType)("Expression")}}}),n("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,r.assertValueType)("string")}}}),n("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,r.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,r.assertNodeType)("JSXIdentifier")}}}),n("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,r.assertNodeType)("JSXIdentifier")},name:{validate:(0,r.assertNodeType)("JSXIdentifier")}}}),n("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeParameters","typeArguments","attributes"],aliases:["Immutable"],fields:Object.assign({name:{validate:(0,r.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:(0,r.validateArrayOfType)("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:(0,r.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,r.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),n("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,r.assertNodeType)("Expression")}}}),n("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,r.assertValueType)("string")}}}),n("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,r.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,r.assertNodeType)("JSXClosingFragment")},children:(0,r.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}}),n("JSXOpeningFragment",{aliases:["Immutable"]}),n("JSXClosingFragment",{aliases:["Immutable"]})},27232(e,t,i){var r=i(65183),n=i(74014),s=i(81587);let a=(0,r.defineAliasedType)("Miscellaneous");a("Noop",{visitor:[]}),a("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:Object.assign({name:{validate:(0,r.assertNodeType)("Identifier")},expectedNode:{validate:(0,r.assertOneOf)(...n.PLACEHOLDERS)}},(0,s.patternLikeCommon)())}),a("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,r.assertValueType)("string")}}})},74014(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.PLACEHOLDERS_FLIPPED_ALIAS=t.PLACEHOLDERS_ALIAS=t.PLACEHOLDERS=void 0;var r=i(65183);let n=t.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],s=t.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(let e of n){let t=r.ALIAS_KEYS[e];null!=t&&t.length&&(s[e]=t)}let a=t.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(s).forEach(e=>{s[e].forEach(t=>{hasOwnProperty.call(a,t)||(a[t]=[]),a[t].push(e)})})},94831(e,t,i){let r,n,s,a;var o=i(65183),l=i(81587),p=i(80947);let u=(0,o.defineAliasedType)("TypeScript"),c=(0,o.assertValueType)("boolean"),d=()=>({returnType:{validate:(0,o.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,o.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});u("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,o.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,o.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,o.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,o.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,o.arrayOfType)("Decorator"),optional:!0}}}),u("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,l.functionDeclarationCommon)(),d())}),u("TSDeclareMethod",Object.assign({visitor:["decorators","key","typeParameters","params","returnType"]},(0,l.classMethodOrPropertyUnionShapeCommon)(),{fields:Object.assign({},(0,l.classMethodOrDeclareMethodCommon)(),d())})),u("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,o.validateType)("TSEntityName"),right:(0,o.validateType)("Identifier")}});let h=()=>({typeParameters:(0,o.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,o.validateArrayOfType)("ArrayPattern","Identifier","ObjectPattern","RestElement"),typeAnnotation:(0,o.validateOptionalType)("TSTypeAnnotation")}),m={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:h()};u("TSCallSignatureDeclaration",m),u("TSConstructSignatureDeclaration",m);let f=()=>({key:(0,o.validateType)("Expression"),computed:{default:!1},optional:(0,o.validateOptional)(c)});for(let e of(u("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},f(),{readonly:(0,o.validateOptional)(c),typeAnnotation:(0,o.validateOptionalType)("TSTypeAnnotation"),kind:{optional:!0,validate:(0,o.assertOneOf)("get","set")}})}),u("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},h(),f(),{kind:{validate:(0,o.assertOneOf)("method","get","set")}})}),u("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,o.validateOptional)(c),static:(0,o.validateOptional)(c),parameters:(0,o.validateArrayOfType)("Identifier"),typeAnnotation:(0,o.validateOptionalType)("TSTypeAnnotation")}}),["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"]))u(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});u("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});let y={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};u("TSFunctionType",Object.assign({},y,{fields:h()})),u("TSConstructorType",Object.assign({},y,{fields:Object.assign({},h(),{abstract:(0,o.validateOptional)(c)})})),u("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,o.validateType)("TSEntityName"),typeParameters:(0,o.validateOptionalType)("TSTypeParameterInstantiation")}}),u("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,o.validateType)("Identifier","TSThisType"),typeAnnotation:(0,o.validateOptionalType)("TSTypeAnnotation"),asserts:(0,o.validateOptional)(c)}}),u("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,o.validateType)("TSEntityName","TSImportType"),typeParameters:(0,o.validateOptionalType)("TSTypeParameterInstantiation")}}),u("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,o.validateArrayOfType)("TSTypeElement")}}),u("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,o.validateType)("TSType")}}),u("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,o.validateArrayOfType)("TSType","TSNamedTupleMember")}}),u("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,o.validateType)("TSType")}}),u("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,o.validateType)("TSType")}}),u("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,o.validateType)("Identifier"),optional:{validate:c,default:!1},elementType:(0,o.validateType)("TSType")}});let g={aliases:["TSType"],visitor:["types"],fields:{types:(0,o.validateArrayOfType)("TSType")}};u("TSUnionType",g),u("TSIntersectionType",g),u("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,o.validateType)("TSType"),extendsType:(0,o.validateType)("TSType"),trueType:(0,o.validateType)("TSType"),falseType:(0,o.validateType)("TSType")}}),u("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,o.validateType)("TSTypeParameter")}}),u("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,o.validateType)("TSType")}}),u("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],builder:["typeAnnotation","operator"],fields:{operator:{validate:(0,o.assertValueType)("string"),default:"keyof"},typeAnnotation:(0,o.validateType)("TSType")}}),u("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,o.validateType)("TSType"),indexType:(0,o.validateType)("TSType")}}),u("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:(0,o.validateType)("TSTypeParameter")},{readonly:(0,o.validateOptional)((0,o.assertOneOf)(!0,!1,"+","-")),optional:(0,o.validateOptional)((0,o.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0,o.validateOptionalType)("TSType"),nameType:(0,o.validateOptionalType)("TSType")})}),u("TSTemplateLiteralType",{aliases:["TSType","TSBaseType"],visitor:["quasis","types"],fields:{quasis:(0,o.validateArrayOfType)("TemplateElement"),types:{validate:(0,o.chain)((0,o.assertValueType)("array"),(0,o.assertEach)((0,o.assertNodeType)("TSType")),function(e,t,i){if(e.quasis.length!==i.length+1)throw TypeError(`Number of ${e.type} quasis should be exactly one more than the number of types.
28
+ Expected ${i.length+1} quasis but got ${e.quasis.length}`)})}}}),u("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:(r=(0,o.assertNodeType)("NumericLiteral","BigIntLiteral"),n=(0,o.assertOneOf)("-"),s=(0,o.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral"),(a=function(e,t,i){(0,p.default)("UnaryExpression",i)?(n(i,"operator",i.operator),r(i,"argument",i.argument)):s(e,t,i)}).oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],a)}}}),u("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,o.validateType)("TSEntityName"),typeParameters:(0,o.validateOptionalType)("TSTypeParameterInstantiation")}}),u("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,o.validateOptional)(c),id:(0,o.validateType)("Identifier"),typeParameters:(0,o.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,o.validateOptional)((0,o.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,o.validateType)("TSInterfaceBody")}}),u("TSInterfaceBody",{visitor:["body"],fields:{body:(0,o.validateArrayOfType)("TSTypeElement")}}),u("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,o.validateOptional)(c),id:(0,o.validateType)("Identifier"),typeParameters:(0,o.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,o.validateType)("TSType")}}),u("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,o.validateType)("Expression"),typeParameters:(0,o.validateOptionalType)("TSTypeParameterInstantiation")}});let T={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,o.validateType)("Expression"),typeAnnotation:(0,o.validateType)("TSType")}};u("TSAsExpression",T),u("TSSatisfiesExpression",T),u("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,o.validateType)("TSType"),expression:(0,o.validateType)("Expression")}}),u("TSEnumBody",{visitor:["members"],fields:{members:(0,o.validateArrayOfType)("TSEnumMember")}}),u("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,o.validateOptional)(c),const:(0,o.validateOptional)(c),id:(0,o.validateType)("Identifier"),members:(0,o.validateArrayOfType)("TSEnumMember"),initializer:(0,o.validateOptionalType)("Expression"),body:(0,o.validateOptionalType)("TSEnumBody")}}),u("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,o.validateType)("Identifier","StringLiteral"),initializer:(0,o.validateOptionalType)("Expression")}}),u("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:(0,o.assertOneOf)("global","module","namespace")},declare:(0,o.validateOptional)(c)},{global:(0,o.validateOptional)(c)},{id:(0,o.validateType)("Identifier","StringLiteral"),body:(0,o.validateType)("TSModuleBlock","TSModuleDeclaration")})}),u("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,o.validateArrayOfType)("Statement")}}),u("TSImportType",{aliases:["TSType"],builder:["argument","qualifier","typeParameters"],visitor:["argument","options","qualifier","typeParameters"],fields:{argument:(0,o.validateType)("StringLiteral"),qualifier:(0,o.validateOptionalType)("TSEntityName"),typeParameters:(0,o.validateOptionalType)("TSTypeParameterInstantiation"),options:{validate:(0,o.assertNodeType)("ObjectExpression"),optional:!0}}}),u("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,o.validate)(c)},{id:(0,o.validateType)("Identifier"),moduleReference:(0,o.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0,o.assertOneOf)("type","value"),optional:!0}})}),u("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,o.validateType)("StringLiteral")}}),u("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,o.validateType)("Expression")}}),u("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,o.validateType)("Expression")}}),u("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,o.validateType)("Identifier")}}),u("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,o.assertNodeType)("TSType")}}}),u("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:(0,o.validateArrayOfType)("TSType")}}),u("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:(0,o.validateArrayOfType)("TSTypeParameter")}}),u("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,o.assertValueType)("string")},in:{validate:(0,o.assertValueType)("boolean"),optional:!0},out:{validate:(0,o.assertValueType)("boolean"),optional:!0},const:{validate:(0,o.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,o.assertNodeType)("TSType"),optional:!0},default:{validate:(0,o.assertNodeType)("TSType"),optional:!0}}})},65183(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.allExpandedTypes=t.VISITOR_KEYS=t.NODE_UNION_SHAPES__PRIVATE=t.NODE_PARENT_VALIDATIONS=t.NODE_FIELDS=t.FLIPPED_ALIAS_KEYS=t.DEPRECATED_KEYS=t.BUILDER_KEYS=t.ALIAS_KEYS=void 0,t.arrayOf=f,t.arrayOfType=y,t.assertEach=g,t.assertNodeOrValueType=function(...e){function t(t,i,s){let a=h(s);for(let o of e)if(a===o||(0,r.default)(o,s))return void(0,n.validateChild)(t,i,s);throw TypeError(`Property ${i} of ${t.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(null==s?void 0:s.type)}`)}return t.oneOfNodeOrValueTypes=e,t},t.assertNodeType=b,t.assertOneOf=function(...e){function t(t,i,r){if(!e.includes(r))throw TypeError(`Property ${i} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(r)}`)}return t.oneOf=e,t},t.assertOptionalChainStart=function(){return function(e){var t;let i=e;for(;e;){let{type:e}=i;if("OptionalCallExpression"===e){if(i.optional)return;i=i.callee;continue}if("OptionalMemberExpression"===e){if(i.optional)return;i=i.object;continue}break}throw TypeError(`Non-optional ${e.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${null==(t=i)?void 0:t.type}`)}},t.assertShape=function(e){let t=Object.keys(e);function i(i,r,s){let a=[];for(let r of t)try{(0,n.validateField)(i,r,s[r],e[r])}catch(e){if(e instanceof TypeError){a.push(e.message);continue}throw e}if(a.length)throw TypeError(`Property ${r} of ${i.type} expected to have the following:
29
+ ${a.join("\n")}`)}return i.shapeOf=e,i},t.assertValueType=x,t.chain=S,t.default=v,t.defineAliasedType=function(...e){return(t,i={})=>{let r=i.aliases;if(!r){var n;i.inherits&&(r=null==(n=P[i.inherits].aliases)?void 0:n.slice()),null!=r||(r=[]),i.aliases=r}let s=e.filter(e=>!r.includes(e));r.unshift(...s),v(t,i)}},t.validate=m,t.validateArrayOfType=function(...e){return m(y(...e))},t.validateOptional=function(e){return{validate:e,optional:!0}},t.validateOptionalType=function(...e){return{validate:b(...e),optional:!0}},t.validateType=function(...e){return m(b(...e))};var r=i(80947),n=i(88765);let s=t.VISITOR_KEYS={},a=t.ALIAS_KEYS={},o=t.FLIPPED_ALIAS_KEYS={},l=t.NODE_FIELDS={},p=t.BUILDER_KEYS={},u=t.DEPRECATED_KEYS={},c=t.NODE_PARENT_VALIDATIONS={},d=t.NODE_UNION_SHAPES__PRIVATE={};function h(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function m(e){return{validate:e}}function f(e){return S(x("array"),g(e))}function y(...e){return f(b(...e))}function g(e){let t=process.env.BABEL_TYPES_8_BREAKING?n.validateChild:()=>{};function i(i,r,n){if(!Array.isArray(n))return;let s=0,a={toString:()=>`${r}[${s}]`};for(;s<n.length;s++){let r=n[s];e(i,a,r),t(i,a,r)}}return i.each=e,i}let T=t.allExpandedTypes=[];function b(...e){let t=new Set;function i(i,s,a){let o=null==a?void 0:a.type;if(null!=o){if(t.has(o))return void(0,n.validateChild)(i,s,a);if("Placeholder"===o){for(let t of e)if((0,r.default)(t,a))return void(0,n.validateChild)(i,s,a)}}throw TypeError(`Property ${s} of ${i.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(o)}`)}return T.push({types:e,set:t}),i.oneOfNodeTypes=e,i}function x(e){function t(t,i,r){if(h(r)!==e)throw TypeError(`Property ${i} expected type of ${e} but got ${h(r)}`)}return t.type=e,t}function S(...e){function t(...i){for(let t of e)t(...i)}if(t.chainOf=e,e.length>=2&&"type"in e[0]&&"array"===e[0].type&&!("each"in e[1]))throw Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return t}let E=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate","unionShape"]),A=new Set(["default","optional","deprecated","validate"]),P={};function v(e,t={}){let i=t.inherits&&P[t.inherits]||{},r=t.fields;if(!r&&(r={},i.fields))for(let e of Object.getOwnPropertyNames(i.fields)){let t=i.fields[e],n=t.default;if(Array.isArray(n)?n.length>0:n&&"object"==typeof n)throw Error("field defaults can only be primitives or empty arrays currently");r[e]={default:Array.isArray(n)?[]:n,optional:t.optional,deprecated:t.deprecated,validate:t.validate}}let n=t.visitor||i.visitor||[],m=t.aliases||i.aliases||[],f=t.builder||i.builder||t.visitor||[];for(let i of Object.keys(t))if(!E.has(i))throw Error(`Unknown type option "${i}" on ${e}`);for(let i of(t.deprecatedAlias&&(u[t.deprecatedAlias]=e),n.concat(f)))r[i]=r[i]||{};for(let t of Object.keys(r)){let i=r[t];for(let r of(void 0===i.default||f.includes(t)||(i.optional=!0),void 0===i.default?i.default=null:i.validate||null==i.default||(i.validate=x(h(i.default))),Object.keys(i)))if(!A.has(r))throw Error(`Unknown field key "${r}" on ${e}.${t}`)}s[e]=t.visitor=n,p[e]=t.builder=f,l[e]=t.fields=r,a[e]=t.aliases=m,m.forEach(t=>{o[t]=o[t]||[],o[t].push(e)}),t.validate&&(c[e]=t.validate),t.unionShape&&(d[e]=t.unionShape),P[e]=t}},58135(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getAssignmentIdentifiers:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,getFunctionName:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(t,"__internal__deprecationWarning",{enumerable:!0,get:function(){return ey.default}}),Object.defineProperty(t,"addComment",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"addComments",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"appendToMemberExpression",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(t,"assertNode",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"buildMatchMemberExpression",{enumerable:!0,get:function(){return em.default}}),Object.defineProperty(t,"clone",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"cloneDeep",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"cloneNode",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"cloneWithoutLoc",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"createFlowUnionType",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"createTSUnionType",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"ensureBlock",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(t,"getBindingIdentifiers",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(t,"getFunctionName",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(t,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(t,"inheritInnerComments",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"inheritLeadingComments",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"inheritTrailingComments",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"inherits",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(t,"inheritsComments",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"is",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(t,"isBinding",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(t,"isBlockScoped",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(t,"isImmutable",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(t,"isLet",{enumerable:!0,get:function(){return et.default}}),Object.defineProperty(t,"isNode",{enumerable:!0,get:function(){return ei.default}}),Object.defineProperty(t,"isNodesEquivalent",{enumerable:!0,get:function(){return er.default}}),Object.defineProperty(t,"isPlaceholderType",{enumerable:!0,get:function(){return en.default}}),Object.defineProperty(t,"isReferenced",{enumerable:!0,get:function(){return es.default}}),Object.defineProperty(t,"isScope",{enumerable:!0,get:function(){return ea.default}}),Object.defineProperty(t,"isSpecifierDefault",{enumerable:!0,get:function(){return eo.default}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return el.default}}),Object.defineProperty(t,"isValidES3Identifier",{enumerable:!0,get:function(){return ep.default}}),Object.defineProperty(t,"isValidIdentifier",{enumerable:!0,get:function(){return eu.default}}),Object.defineProperty(t,"isVar",{enumerable:!0,get:function(){return ec.default}}),Object.defineProperty(t,"matchesPattern",{enumerable:!0,get:function(){return ed.default}}),Object.defineProperty(t,"prependToMemberExpression",{enumerable:!0,get:function(){return U.default}}),t.react=void 0,Object.defineProperty(t,"removeComments",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"removeProperties",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(t,"removePropertiesDeep",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(t,"removeTypeDuplicates",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(t,"shallowEqual",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(t,"toBindingIdentifierName",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"toBlock",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(t,"toComputedKey",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"toExpression",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(t,"toIdentifier",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"toKeyAlias",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(t,"toStatement",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(t,"traverse",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(t,"traverseFast",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return eh.default}}),Object.defineProperty(t,"valueToNode",{enumerable:!0,get:function(){return M.default}});var n=i(80737),s=i(76977),a=i(86503),o=i(82985),l=i(73289);Object.keys(l).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}})});var p=i(56461),u=i(95414),c=i(84534),d=i(12456);Object.keys(d).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}})});var h=i(93806);Object.keys(h).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}})});var m=i(16812),f=i(74780),y=i(99042),g=i(46248),T=i(33242),b=i(89456),x=i(943),S=i(11515),E=i(18445),A=i(64494),P=i(46691),v=i(73890),D=i(55527);Object.keys(D).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===D[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return D[e]}})});var C=i(79897);Object.keys(C).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===C[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return C[e]}})});var w=i(11350),_=i(95847),I=i(98999),k=i(93544),N=i(25002),O=i(17627),F=i(35349),L=i(10187),M=i(62485),B=i(49390);Object.keys(B).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===B[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return B[e]}})});var j=i(41748),R=i(27937),U=i(66948),V=i(6944),K=i(55262),q=i(54538),$=i(48204),W=i(46676),X=i(18271),z=i(26692),J=i(43998);Object.keys(J).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===J[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return J[e]}})});var Y=i(72148),Q=i(86293),H=i(80947),G=i(57166),Z=i(53358),ee=i(34375),et=i(20266),ei=i(24919),er=i(44466),en=i(33346),es=i(93380),ea=i(88143),eo=i(48778),el=i(42379),ep=i(55467),eu=i(78126),ec=i(21342),ed=i(31782),eh=i(88765),em=i(90550),ef=i(60133);Object.keys(ef).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===ef[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ef[e]}})});var ey=i(50231),eg=i(55827);t.react={isReactComponent:n.default,isCompatTag:s.default,buildChildren:a.default},t.toSequenceExpression=eg.default,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!")},41748(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i=!1){return e.object=(0,r.memberExpression)(e.object,e.property,e.computed),e.property=t,e.computed=!!i,e};var r=i(93806)},54538(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){let i=Array.from(t),n=new Map,s=new Map,a=new Set,o=[];for(let t=0;t<i.length;t++){let l=i[t];if(l&&!o.includes(l)){if((0,r.isAnyTypeAnnotation)(l))return[l];if((0,r.isFlowBaseAnnotation)(l)){s.set(l.type,l);continue}if((0,r.isUnionTypeAnnotation)(l)){a.has(l.types)||(i.push(...l.types),a.add(l.types));continue}if((0,r.isGenericTypeAnnotation)(l)){let t=function e(t){return(0,r.isIdentifier)(t)?t.name:`${t.id.name}.${e(t.qualification)}`}(l.id);if(n.has(t)){let i=n.get(t);i.typeParameters?l.typeParameters&&(i.typeParameters.params.push(...l.typeParameters.params),i.typeParameters.params=e(i.typeParameters.params)):i=l.typeParameters}else n.set(t,l);continue}o.push(l)}}for(let[,e]of s)o.push(e);for(let[,e]of n)o.push(e);return o};var r=i(60133)},27937(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e||!t)return e;for(let i of r.INHERIT_KEYS.optional)null==e[i]&&(e[i]=t[i]);for(let i of Object.keys(t))"_"===i[0]&&"__clone"!==i&&(e[i]=t[i]);for(let i of r.INHERIT_KEYS.force)e[i]=t[i];return(0,n.default)(e,t),e};var r=i(79897),n=i(64494)},66948(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.isSuper)(e.object))throw Error("Cannot prepend node to super property access (`super.foo`).");return e.object=(0,r.memberExpression)(t,e.object),e};var r=i(93806),n=i(58135)},6944(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){for(let i of t.preserveComments?n:s)null!=e[i]&&(e[i]=void 0);for(let t of Object.keys(e))"_"===t[0]&&null!=e[t]&&(e[t]=void 0);for(let t of Object.getOwnPropertySymbols(e))e[t]=null};var r=i(79897);let n=["tokens","start","end","loc","raw","rawValue"],s=[...r.COMMENT_KEYS,"comments",...n]},55262(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e,n.default,t),e};var r=i(72148),n=i(6944)},99227(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){let i=Array.from(t),n=new Map,s=new Map,a=new Set,o=[];for(let t=0;t<i.length;t++){let l=i[t];if(!l||o.includes(l))continue;if((0,r.isTSAnyKeyword)(l))return[l];if((0,r.isTSBaseType)(l)){s.set(l.type,l);continue}if((0,r.isTSUnionType)(l)){a.has(l.types)||(i.push(...l.types),a.add(l.types));continue}let p="typeParameters";if((0,r.isTSTypeReference)(l)&&l[p]){let t=l[p],i=function e(t){return(0,r.isIdentifier)(t)?t.name:(0,r.isThisExpression)(t)?"this":`${t.right.name}.${e(t.left)}`}(l.typeName);if(n.has(i)){let r=n.get(i),s=r[p];s?(s.params.push(...t.params),s.params=e(s.params)):r=t}else n.set(i,l);continue}o.push(l)}for(let[,e]of s)o.push(e);for(let[,e]of n)o.push(e);return o};var r=i(60133)},48204(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let t=[].concat(e),i=Object.create(null);for(;t.length;){let e=t.pop();if(e)switch(e.type){case"ArrayPattern":t.push(...e.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":t.push(e.left);break;case"ObjectPattern":t.push(...e.properties);break;case"ObjectProperty":t.push(e.value);break;case"RestElement":case"UpdateExpression":t.push(e.argument);break;case"UnaryExpression":"delete"===e.operator&&t.push(e.argument);break;case"Identifier":i[e.name]=e}}return i}},46676(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var r=i(60133);function n(e,t,i,s){let a=[].concat(e),o=Object.create(null);for(;a.length;){let e=a.shift();if(!e||s&&((0,r.isAssignmentExpression)(e)||(0,r.isUnaryExpression)(e)||(0,r.isUpdateExpression)(e)))continue;if((0,r.isIdentifier)(e)){t?(o[e.name]=o[e.name]||[]).push(e):o[e.name]=e;continue}if((0,r.isExportDeclaration)(e)&&!(0,r.isExportAllDeclaration)(e)){(0,r.isDeclaration)(e.declaration)&&a.push(e.declaration);continue}if(i){if((0,r.isFunctionDeclaration)(e)){a.push(e.id);continue}if((0,r.isFunctionExpression)(e))continue}let l=n.keys[e.type];if(l)for(let t=0;t<l.length;t++){let i=e[l[t]];i&&(Array.isArray(i)?a.push(...i):a.push(i))}}return o}n.keys={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],TSImportEqualsDeclaration:["id"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]}},26692(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var i;let s;if("id"in e&&e.id)return{name:e.id.name,originalNode:e.id};let a="";if((0,r.isObjectProperty)(t,{value:e})?s=n(t):(0,r.isObjectMethod)(e)||(0,r.isClassMethod)(e)?(s=n(e),"get"===e.kind?a="get ":"set"===e.kind&&(a="set ")):(0,r.isVariableDeclarator)(t,{init:e})?s=t.id:(0,r.isAssignmentExpression)(t,{operator:"=",right:e})&&(s=t.left),!s)return null;let o=(0,r.isLiteral)(s)?(i=s,(0,r.isNullLiteral)(i)?"null":(0,r.isRegExpLiteral)(i)?`/${i.pattern}/${i.flags}`:(0,r.isTemplateLiteral)(i)?i.quasis.map(e=>e.value.raw).join(""):void 0!==i.value?String(i.value):null):(0,r.isIdentifier)(s)?s.name:(0,r.isPrivateName)(s)?s.id.name:null;return null==o?null:{name:a+o,originalNode:s}};var r=i(60133);function n(e){if(!e.computed||(0,r.isLiteral)(e.key))return e.key}},18271(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(46676);t.default=function(e,t){return(0,r.default)(e,t,!0)}},43998(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i){"function"==typeof t&&(t={enter:t});let{enter:n,exit:s}=t;!function e(t,i,n,s,a){let o=r.VISITOR_KEYS[t.type];if(o){for(let r of(i&&i(t,a,s),o)){let o=t[r];if(Array.isArray(o))for(let l=0;l<o.length;l++){let p=o[l];p&&(a.push({node:t,key:r,index:l}),e(p,i,n,s,a),a.pop())}else o&&(a.push({node:t,key:r}),e(o,i,n,s,a),a.pop())}n&&n(t,a,s)}}(e,n,s,i,[])};var r=i(49390)},72148(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=i(49390);let n=Symbol(),s=Symbol();function a(e,t,i){if(!e)return!1;let o=r.VISITOR_KEYS[e.type];if(!o)return!1;let l=t(e,i=i||{});if(void 0!==l)switch(l){case n:return!1;case s:return!0}for(let r of o){let n=e[r];if(n){if(Array.isArray(n)){for(let e of n)if(a(e,t,i))return!0}else if(a(n,t,i))return!0}}return!1}a.skip=n,a.stop=s},50231(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r="",n=e){if(i.has(n))return;i.add(n);let{internal:s,trace:a}=function(){let e,{stackTraceLimit:t,prepareStackTrace:i}=Error;if(Error.stackTraceLimit=4,Error.prepareStackTrace=function(t,i){e=i},Error().stack,Error.stackTraceLimit=t,Error.prepareStackTrace=i,!e)return{internal:!1,trace:""};let r=e.slice(2,4);return{internal:/[\\/]@babel[\\/]/.test(r[1].getFileName()),trace:r.map(e=>` at ${e}`).join("\n")}}();s||console.warn(`${r}\`${e}\` has been deprecated, please migrate to \`${t}\`
30
+ ${a}`)};let i=new Set},30594(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i){t&&i&&(t[e]=Array.from(new Set([].concat(t[e],i[e]).filter(Boolean))))}},90132(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let i=e.value.split(/\r\n|\n|\r/),s=0;for(let e=0;e<i.length;e++)/[^ \t]/.exec(i[e])&&(s=e);let a="";for(let e=0;e<i.length;e++){let t=i[e],r=0===e,n=e===i.length-1,o=e===s,l=t.replace(/\t/g," ");r||(l=l.replace(/^ +/,"")),n||(l=l.replace(/ +$/,"")),l&&(o||(l+=" "),a+=l)}a&&t.push((0,n.inherits)((0,r.stringLiteral)(a),e))};var r=i(93806),n=i(58135)},86293(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(let i of Object.keys(t))if(e[i]!==t[i])return!1;return!0}},90550(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let i=e.split(".");return e=>(0,r.default)(e,i,t)};var r=i(31782)},60133(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.isAccessor=function(e,t){return!!e&&"ClassAccessorProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isAnyTypeAnnotation=function(e,t){return!!e&&"AnyTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isArgumentPlaceholder=function(e,t){return!!e&&"ArgumentPlaceholder"===e.type&&(null==t||(0,r.default)(e,t))},t.isArrayExpression=function(e,t){return!!e&&"ArrayExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isArrayPattern=function(e,t){return!!e&&"ArrayPattern"===e.type&&(null==t||(0,r.default)(e,t))},t.isArrayTypeAnnotation=function(e,t){return!!e&&"ArrayTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isArrowFunctionExpression=function(e,t){return!!e&&"ArrowFunctionExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isAssignmentExpression=function(e,t){return!!e&&"AssignmentExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isAssignmentPattern=function(e,t){return!!e&&"AssignmentPattern"===e.type&&(null==t||(0,r.default)(e,t))},t.isAwaitExpression=function(e,t){return!!e&&"AwaitExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isBigIntLiteral=function(e,t){return!!e&&"BigIntLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isBinary=function(e,t){if(!e)return!1;switch(e.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isBinaryExpression=function(e,t){return!!e&&"BinaryExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isBindExpression=function(e,t){return!!e&&"BindExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isBlock=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isBlockParent=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isBlockStatement=function(e,t){return!!e&&"BlockStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isBooleanLiteral=function(e,t){return!!e&&"BooleanLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isBooleanLiteralTypeAnnotation=function(e,t){return!!e&&"BooleanLiteralTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isBooleanTypeAnnotation=function(e,t){return!!e&&"BooleanTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isBreakStatement=function(e,t){return!!e&&"BreakStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isCallExpression=function(e,t){return!!e&&"CallExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isCatchClause=function(e,t){return!!e&&"CatchClause"===e.type&&(null==t||(0,r.default)(e,t))},t.isClass=function(e,t){if(!e)return!1;switch(e.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isClassAccessorProperty=function(e,t){return!!e&&"ClassAccessorProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassBody=function(e,t){return!!e&&"ClassBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassDeclaration=function(e,t){return!!e&&"ClassDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassExpression=function(e,t){return!!e&&"ClassExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassImplements=function(e,t){return!!e&&"ClassImplements"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassMethod=function(e,t){return!!e&&"ClassMethod"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassPrivateMethod=function(e,t){return!!e&&"ClassPrivateMethod"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassPrivateProperty=function(e,t){return!!e&&"ClassPrivateProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassProperty=function(e,t){return!!e&&"ClassProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isCompletionStatement=function(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isConditional=function(e,t){if(!e)return!1;switch(e.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isConditionalExpression=function(e,t){return!!e&&"ConditionalExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isContinueStatement=function(e,t){return!!e&&"ContinueStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isDebuggerStatement=function(e,t){return!!e&&"DebuggerStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isDecimalLiteral=function(e,t){return!!e&&"DecimalLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclaration=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":break;case"Placeholder":if("Declaration"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isDeclareClass=function(e,t){return!!e&&"DeclareClass"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareExportAllDeclaration=function(e,t){return!!e&&"DeclareExportAllDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareExportDeclaration=function(e,t){return!!e&&"DeclareExportDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareFunction=function(e,t){return!!e&&"DeclareFunction"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareInterface=function(e,t){return!!e&&"DeclareInterface"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareModule=function(e,t){return!!e&&"DeclareModule"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareModuleExports=function(e,t){return!!e&&"DeclareModuleExports"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareOpaqueType=function(e,t){return!!e&&"DeclareOpaqueType"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareTypeAlias=function(e,t){return!!e&&"DeclareTypeAlias"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareVariable=function(e,t){return!!e&&"DeclareVariable"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclaredPredicate=function(e,t){return!!e&&"DeclaredPredicate"===e.type&&(null==t||(0,r.default)(e,t))},t.isDecorator=function(e,t){return!!e&&"Decorator"===e.type&&(null==t||(0,r.default)(e,t))},t.isDirective=function(e,t){return!!e&&"Directive"===e.type&&(null==t||(0,r.default)(e,t))},t.isDirectiveLiteral=function(e,t){return!!e&&"DirectiveLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isDoExpression=function(e,t){return!!e&&"DoExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isDoWhileStatement=function(e,t){return!!e&&"DoWhileStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isEmptyStatement=function(e,t){return!!e&&"EmptyStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isEmptyTypeAnnotation=function(e,t){return!!e&&"EmptyTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumBody=function(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isEnumBooleanBody=function(e,t){return!!e&&"EnumBooleanBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumBooleanMember=function(e,t){return!!e&&"EnumBooleanMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumDeclaration=function(e,t){return!!e&&"EnumDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumDefaultedMember=function(e,t){return!!e&&"EnumDefaultedMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumMember=function(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isEnumNumberBody=function(e,t){return!!e&&"EnumNumberBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumNumberMember=function(e,t){return!!e&&"EnumNumberMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumStringBody=function(e,t){return!!e&&"EnumStringBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumStringMember=function(e,t){return!!e&&"EnumStringMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumSymbolBody=function(e,t){return!!e&&"EnumSymbolBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isExistsTypeAnnotation=function(e,t){return!!e&&"ExistsTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportAllDeclaration=function(e,t){return!!e&&"ExportAllDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportDeclaration=function(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isExportDefaultDeclaration=function(e,t){return!!e&&"ExportDefaultDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportDefaultSpecifier=function(e,t){return!!e&&"ExportDefaultSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportNamedDeclaration=function(e,t){return!!e&&"ExportNamedDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportNamespaceSpecifier=function(e,t){return!!e&&"ExportNamespaceSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportSpecifier=function(e,t){return!!e&&"ExportSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isExpression=function(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"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(e.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return null==t||(0,r.default)(e,t)},t.isExpressionStatement=function(e,t){return!!e&&"ExpressionStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isExpressionWrapper=function(e,t){if(!e)return!1;switch(e.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFile=function(e,t){return!!e&&"File"===e.type&&(null==t||(0,r.default)(e,t))},t.isFlow=function(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFlowBaseAnnotation=function(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFlowDeclaration=function(e,t){if(!e)return!1;switch(e.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFlowPredicate=function(e,t){if(!e)return!1;switch(e.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFlowType=function(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFor=function(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isForInStatement=function(e,t){return!!e&&"ForInStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isForOfStatement=function(e,t){return!!e&&"ForOfStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isForStatement=function(e,t){return!!e&&"ForStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isForXStatement=function(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFunction=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFunctionDeclaration=function(e,t){return!!e&&"FunctionDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isFunctionExpression=function(e,t){return!!e&&"FunctionExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isFunctionParameter=function(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if("Identifier"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFunctionParent=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFunctionTypeAnnotation=function(e,t){return!!e&&"FunctionTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isFunctionTypeParam=function(e,t){return!!e&&"FunctionTypeParam"===e.type&&(null==t||(0,r.default)(e,t))},t.isGenericTypeAnnotation=function(e,t){return!!e&&"GenericTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isIdentifier=function(e,t){return!!e&&"Identifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isIfStatement=function(e,t){return!!e&&"IfStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isImmutable=function(e,t){if(!e)return!1;switch(e.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("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isImport=function(e,t){return!!e&&"Import"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportAttribute=function(e,t){return!!e&&"ImportAttribute"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportDeclaration=function(e,t){return!!e&&"ImportDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportDefaultSpecifier=function(e,t){return!!e&&"ImportDefaultSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportExpression=function(e,t){return!!e&&"ImportExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportNamespaceSpecifier=function(e,t){return!!e&&"ImportNamespaceSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportOrExportDeclaration=s,t.isImportSpecifier=function(e,t){return!!e&&"ImportSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isIndexedAccessType=function(e,t){return!!e&&"IndexedAccessType"===e.type&&(null==t||(0,r.default)(e,t))},t.isInferredPredicate=function(e,t){return!!e&&"InferredPredicate"===e.type&&(null==t||(0,r.default)(e,t))},t.isInterfaceDeclaration=function(e,t){return!!e&&"InterfaceDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isInterfaceExtends=function(e,t){return!!e&&"InterfaceExtends"===e.type&&(null==t||(0,r.default)(e,t))},t.isInterfaceTypeAnnotation=function(e,t){return!!e&&"InterfaceTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isInterpreterDirective=function(e,t){return!!e&&"InterpreterDirective"===e.type&&(null==t||(0,r.default)(e,t))},t.isIntersectionTypeAnnotation=function(e,t){return!!e&&"IntersectionTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSX=function(e,t){if(!e)return!1;switch(e.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isJSXAttribute=function(e,t){return!!e&&"JSXAttribute"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXClosingElement=function(e,t){return!!e&&"JSXClosingElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXClosingFragment=function(e,t){return!!e&&"JSXClosingFragment"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXElement=function(e,t){return!!e&&"JSXElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXEmptyExpression=function(e,t){return!!e&&"JSXEmptyExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXExpressionContainer=function(e,t){return!!e&&"JSXExpressionContainer"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXFragment=function(e,t){return!!e&&"JSXFragment"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXIdentifier=function(e,t){return!!e&&"JSXIdentifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXMemberExpression=function(e,t){return!!e&&"JSXMemberExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXNamespacedName=function(e,t){return!!e&&"JSXNamespacedName"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXOpeningElement=function(e,t){return!!e&&"JSXOpeningElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXOpeningFragment=function(e,t){return!!e&&"JSXOpeningFragment"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXSpreadAttribute=function(e,t){return!!e&&"JSXSpreadAttribute"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXSpreadChild=function(e,t){return!!e&&"JSXSpreadChild"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXText=function(e,t){return!!e&&"JSXText"===e.type&&(null==t||(0,r.default)(e,t))},t.isLVal=function(e,t){if(!e)return!1;switch(e.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(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return null==t||(0,r.default)(e,t)},t.isLabeledStatement=function(e,t){return!!e&&"LabeledStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isLiteral=function(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isLogicalExpression=function(e,t){return!!e&&"LogicalExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isLoop=function(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isMemberExpression=function(e,t){return!!e&&"MemberExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isMetaProperty=function(e,t){return!!e&&"MetaProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isMethod=function(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isMiscellaneous=function(e,t){if(!e)return!1;switch(e.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isMixedTypeAnnotation=function(e,t){return!!e&&"MixedTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isModuleDeclaration=function(e,t){return(0,n.default)("isModuleDeclaration","isImportOrExportDeclaration"),s(e,t)},t.isModuleExpression=function(e,t){return!!e&&"ModuleExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isModuleSpecifier=function(e,t){if(!e)return!1;switch(e.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isNewExpression=function(e,t){return!!e&&"NewExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isNoop=function(e,t){return!!e&&"Noop"===e.type&&(null==t||(0,r.default)(e,t))},t.isNullLiteral=function(e,t){return!!e&&"NullLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isNullLiteralTypeAnnotation=function(e,t){return!!e&&"NullLiteralTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isNullableTypeAnnotation=function(e,t){return!!e&&"NullableTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isNumberLiteral=function(e,t){return(0,n.default)("isNumberLiteral","isNumericLiteral"),!!e&&"NumberLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isNumberLiteralTypeAnnotation=function(e,t){return!!e&&"NumberLiteralTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isNumberTypeAnnotation=function(e,t){return!!e&&"NumberTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isNumericLiteral=function(e,t){return!!e&&"NumericLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectExpression=function(e,t){return!!e&&"ObjectExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectMember=function(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isObjectMethod=function(e,t){return!!e&&"ObjectMethod"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectPattern=function(e,t){return!!e&&"ObjectPattern"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectProperty=function(e,t){return!!e&&"ObjectProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeAnnotation=function(e,t){return!!e&&"ObjectTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeCallProperty=function(e,t){return!!e&&"ObjectTypeCallProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeIndexer=function(e,t){return!!e&&"ObjectTypeIndexer"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeInternalSlot=function(e,t){return!!e&&"ObjectTypeInternalSlot"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeProperty=function(e,t){return!!e&&"ObjectTypeProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeSpreadProperty=function(e,t){return!!e&&"ObjectTypeSpreadProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isOpaqueType=function(e,t){return!!e&&"OpaqueType"===e.type&&(null==t||(0,r.default)(e,t))},t.isOptionalCallExpression=function(e,t){return!!e&&"OptionalCallExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isOptionalIndexedAccessType=function(e,t){return!!e&&"OptionalIndexedAccessType"===e.type&&(null==t||(0,r.default)(e,t))},t.isOptionalMemberExpression=function(e,t){return!!e&&"OptionalMemberExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isParenthesizedExpression=function(e,t){return!!e&&"ParenthesizedExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isPattern=function(e,t){if(!e)return!1;switch(e.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if("Pattern"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isPatternLike=function(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return null==t||(0,r.default)(e,t)},t.isPipelineBareFunction=function(e,t){return!!e&&"PipelineBareFunction"===e.type&&(null==t||(0,r.default)(e,t))},t.isPipelinePrimaryTopicReference=function(e,t){return!!e&&"PipelinePrimaryTopicReference"===e.type&&(null==t||(0,r.default)(e,t))},t.isPipelineTopicExpression=function(e,t){return!!e&&"PipelineTopicExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isPlaceholder=function(e,t){return!!e&&"Placeholder"===e.type&&(null==t||(0,r.default)(e,t))},t.isPrivate=function(e,t){if(!e)return!1;switch(e.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isPrivateName=function(e,t){return!!e&&"PrivateName"===e.type&&(null==t||(0,r.default)(e,t))},t.isProgram=function(e,t){return!!e&&"Program"===e.type&&(null==t||(0,r.default)(e,t))},t.isProperty=function(e,t){if(!e)return!1;switch(e.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isPureish=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isQualifiedTypeIdentifier=function(e,t){return!!e&&"QualifiedTypeIdentifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isRecordExpression=function(e,t){return!!e&&"RecordExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isRegExpLiteral=function(e,t){return!!e&&"RegExpLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isRegexLiteral=function(e,t){return(0,n.default)("isRegexLiteral","isRegExpLiteral"),!!e&&"RegexLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isRestElement=function(e,t){return!!e&&"RestElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isRestProperty=function(e,t){return(0,n.default)("isRestProperty","isRestElement"),!!e&&"RestProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isReturnStatement=function(e,t){return!!e&&"ReturnStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isScopable=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isSequenceExpression=function(e,t){return!!e&&"SequenceExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isSpreadElement=function(e,t){return!!e&&"SpreadElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isSpreadProperty=function(e,t){return(0,n.default)("isSpreadProperty","isSpreadElement"),!!e&&"SpreadProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isStandardized=function(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"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(e.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return null==t||(0,r.default)(e,t)},t.isStatement=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(e.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return null==t||(0,r.default)(e,t)},t.isStaticBlock=function(e,t){return!!e&&"StaticBlock"===e.type&&(null==t||(0,r.default)(e,t))},t.isStringLiteral=function(e,t){return!!e&&"StringLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isStringLiteralTypeAnnotation=function(e,t){return!!e&&"StringLiteralTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isStringTypeAnnotation=function(e,t){return!!e&&"StringTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isSuper=function(e,t){return!!e&&"Super"===e.type&&(null==t||(0,r.default)(e,t))},t.isSwitchCase=function(e,t){return!!e&&"SwitchCase"===e.type&&(null==t||(0,r.default)(e,t))},t.isSwitchStatement=function(e,t){return!!e&&"SwitchStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isSymbolTypeAnnotation=function(e,t){return!!e&&"SymbolTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSAnyKeyword=function(e,t){return!!e&&"TSAnyKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSArrayType=function(e,t){return!!e&&"TSArrayType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSAsExpression=function(e,t){return!!e&&"TSAsExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSBaseType=function(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSTemplateLiteralType":case"TSLiteralType":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isTSBigIntKeyword=function(e,t){return!!e&&"TSBigIntKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSBooleanKeyword=function(e,t){return!!e&&"TSBooleanKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSCallSignatureDeclaration=function(e,t){return!!e&&"TSCallSignatureDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSConditionalType=function(e,t){return!!e&&"TSConditionalType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSConstructSignatureDeclaration=function(e,t){return!!e&&"TSConstructSignatureDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSConstructorType=function(e,t){return!!e&&"TSConstructorType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSDeclareFunction=function(e,t){return!!e&&"TSDeclareFunction"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSDeclareMethod=function(e,t){return!!e&&"TSDeclareMethod"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSEntityName=function(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if("Identifier"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isTSEnumBody=function(e,t){return!!e&&"TSEnumBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSEnumDeclaration=function(e,t){return!!e&&"TSEnumDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSEnumMember=function(e,t){return!!e&&"TSEnumMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSExportAssignment=function(e,t){return!!e&&"TSExportAssignment"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSExpressionWithTypeArguments=function(e,t){return!!e&&"TSExpressionWithTypeArguments"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSExternalModuleReference=function(e,t){return!!e&&"TSExternalModuleReference"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSFunctionType=function(e,t){return!!e&&"TSFunctionType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSImportEqualsDeclaration=function(e,t){return!!e&&"TSImportEqualsDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSImportType=function(e,t){return!!e&&"TSImportType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSIndexSignature=function(e,t){return!!e&&"TSIndexSignature"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSIndexedAccessType=function(e,t){return!!e&&"TSIndexedAccessType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSInferType=function(e,t){return!!e&&"TSInferType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSInstantiationExpression=function(e,t){return!!e&&"TSInstantiationExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSInterfaceBody=function(e,t){return!!e&&"TSInterfaceBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSInterfaceDeclaration=function(e,t){return!!e&&"TSInterfaceDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSIntersectionType=function(e,t){return!!e&&"TSIntersectionType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSIntrinsicKeyword=function(e,t){return!!e&&"TSIntrinsicKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSLiteralType=function(e,t){return!!e&&"TSLiteralType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSMappedType=function(e,t){return!!e&&"TSMappedType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSMethodSignature=function(e,t){return!!e&&"TSMethodSignature"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSModuleBlock=function(e,t){return!!e&&"TSModuleBlock"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSModuleDeclaration=function(e,t){return!!e&&"TSModuleDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNamedTupleMember=function(e,t){return!!e&&"TSNamedTupleMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNamespaceExportDeclaration=function(e,t){return!!e&&"TSNamespaceExportDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNeverKeyword=function(e,t){return!!e&&"TSNeverKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNonNullExpression=function(e,t){return!!e&&"TSNonNullExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNullKeyword=function(e,t){return!!e&&"TSNullKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNumberKeyword=function(e,t){return!!e&&"TSNumberKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSObjectKeyword=function(e,t){return!!e&&"TSObjectKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSOptionalType=function(e,t){return!!e&&"TSOptionalType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSParameterProperty=function(e,t){return!!e&&"TSParameterProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSParenthesizedType=function(e,t){return!!e&&"TSParenthesizedType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSPropertySignature=function(e,t){return!!e&&"TSPropertySignature"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSQualifiedName=function(e,t){return!!e&&"TSQualifiedName"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSRestType=function(e,t){return!!e&&"TSRestType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSSatisfiesExpression=function(e,t){return!!e&&"TSSatisfiesExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSStringKeyword=function(e,t){return!!e&&"TSStringKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSSymbolKeyword=function(e,t){return!!e&&"TSSymbolKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTemplateLiteralType=function(e,t){return!!e&&"TSTemplateLiteralType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSThisType=function(e,t){return!!e&&"TSThisType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTupleType=function(e,t){return!!e&&"TSTupleType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSType=function(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"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!1}return null==t||(0,r.default)(e,t)},t.isTSTypeAliasDeclaration=function(e,t){return!!e&&"TSTypeAliasDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeAnnotation=function(e,t){return!!e&&"TSTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeAssertion=function(e,t){return!!e&&"TSTypeAssertion"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeElement=function(e,t){if(!e)return!1;switch(e.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isTSTypeLiteral=function(e,t){return!!e&&"TSTypeLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeOperator=function(e,t){return!!e&&"TSTypeOperator"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeParameter=function(e,t){return!!e&&"TSTypeParameter"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeParameterDeclaration=function(e,t){return!!e&&"TSTypeParameterDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeParameterInstantiation=function(e,t){return!!e&&"TSTypeParameterInstantiation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypePredicate=function(e,t){return!!e&&"TSTypePredicate"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeQuery=function(e,t){return!!e&&"TSTypeQuery"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeReference=function(e,t){return!!e&&"TSTypeReference"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSUndefinedKeyword=function(e,t){return!!e&&"TSUndefinedKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSUnionType=function(e,t){return!!e&&"TSUnionType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSUnknownKeyword=function(e,t){return!!e&&"TSUnknownKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSVoidKeyword=function(e,t){return!!e&&"TSVoidKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTaggedTemplateExpression=function(e,t){return!!e&&"TaggedTemplateExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTemplateElement=function(e,t){return!!e&&"TemplateElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isTemplateLiteral=function(e,t){return!!e&&"TemplateLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isTerminatorless=function(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isThisExpression=function(e,t){return!!e&&"ThisExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isThisTypeAnnotation=function(e,t){return!!e&&"ThisTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isThrowStatement=function(e,t){return!!e&&"ThrowStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isTopicReference=function(e,t){return!!e&&"TopicReference"===e.type&&(null==t||(0,r.default)(e,t))},t.isTryStatement=function(e,t){return!!e&&"TryStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isTupleExpression=function(e,t){return!!e&&"TupleExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTupleTypeAnnotation=function(e,t){return!!e&&"TupleTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeAlias=function(e,t){return!!e&&"TypeAlias"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeAnnotation=function(e,t){return!!e&&"TypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeCastExpression=function(e,t){return!!e&&"TypeCastExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeParameter=function(e,t){return!!e&&"TypeParameter"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeParameterDeclaration=function(e,t){return!!e&&"TypeParameterDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeParameterInstantiation=function(e,t){return!!e&&"TypeParameterInstantiation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeScript=function(e,t){if(!e)return!1;switch(e.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"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!1}return null==t||(0,r.default)(e,t)},t.isTypeofTypeAnnotation=function(e,t){return!!e&&"TypeofTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isUnaryExpression=function(e,t){return!!e&&"UnaryExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isUnaryLike=function(e,t){if(!e)return!1;switch(e.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isUnionTypeAnnotation=function(e,t){return!!e&&"UnionTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isUpdateExpression=function(e,t){return!!e&&"UpdateExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isUserWhitespacable=function(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isV8IntrinsicIdentifier=function(e,t){return!!e&&"V8IntrinsicIdentifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isVariableDeclaration=function(e,t){return!!e&&"VariableDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isVariableDeclarator=function(e,t){return!!e&&"VariableDeclarator"===e.type&&(null==t||(0,r.default)(e,t))},t.isVariance=function(e,t){return!!e&&"Variance"===e.type&&(null==t||(0,r.default)(e,t))},t.isVoidPattern=function(e,t){return!!e&&"VoidPattern"===e.type&&(null==t||(0,r.default)(e,t))},t.isVoidTypeAnnotation=function(e,t){return!!e&&"VoidTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isWhile=function(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isWhileStatement=function(e,t){return!!e&&"WhileStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isWithStatement=function(e,t){return!!e&&"WithStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isYieldExpression=function(e,t){return!!e&&"YieldExpression"===e.type&&(null==t||(0,r.default)(e,t))};var r=i(86293),n=i(50231);function s(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return null==t||(0,r.default)(e,t)}},80947(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i){return!!t&&((0,n.default)(t.type,e)?void 0===i||(0,r.default)(t,i):!i&&"Placeholder"===t.type&&e in a.FLIPPED_ALIAS_KEYS&&(0,s.default)(t.expectedNode,e))};var r=i(86293),n=i(42379),s=i(33346),a=i(49390)},57166(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i){if(i&&"Identifier"===e.type&&"ObjectProperty"===t.type&&"ObjectExpression"===i.type)return!1;let n=r.default.keys[t.type];if(n)for(let i=0;i<n.length;i++){let r=t[n[i]];if(Array.isArray(r)){if(r.includes(e))return!0}else if(r===e)return!0}return!1};var r=i(46676)},53358(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.isFunctionDeclaration)(e)||(0,r.isClassDeclaration)(e)||(0,n.default)(e)};var r=i(60133),n=i(20266)},34375(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!!((0,r.default)(e.type,"Immutable")||(0,n.isIdentifier)(e)&&"undefined"===e.name)||!1};var r=i(42379),n=i(60133)},20266(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.isVariableDeclaration)(e)&&("var"!==e.kind||e[n])};var r=i(60133),n=Symbol.for("var used to be block scoped")},24919(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!!(e&&r.VISITOR_KEYS[e.type])};var r=i(49390)},44466(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,i){if("object"!=typeof t||"object"!=typeof i||null==t||null==i)return t===i;if(t.type!==i.type)return!1;let n=Object.keys(r.NODE_FIELDS[t.type]||t.type),s=r.VISITOR_KEYS[t.type];for(let r of n){let n=t[r],a=i[r];if(typeof n!=typeof a)return!1;if(null!=n||null!=a){if(null==n||null==a)return!1;if(Array.isArray(n)){if(!Array.isArray(a)||n.length!==a.length)return!1;for(let t=0;t<n.length;t++)if(!e(n[t],a[t]))return!1;continue}if("object"==typeof n&&!(null!=s&&s.includes(r))){for(let e of Object.keys(n))if(n[e]!==a[e])return!1;continue}if(!e(n,a))return!1}}return!0};var r=i(49390)},33346(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e===t)return!0;let i=r.PLACEHOLDERS_ALIAS[e];return!!(null!=i&&i.includes(t))};var r=i(49390)},93380(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i){switch(t.type){case"MemberExpression":case"OptionalMemberExpression":if(t.property===e)return!!t.computed;return t.object===e;case"JSXMemberExpression":return t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"PrivateName":case"LabeledStatement":case"CatchClause":case"RestElement":case"BreakStatement":case"ContinueStatement":case"FunctionDeclaration":case"FunctionExpression":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportAttribute":case"JSXAttribute":case"ObjectPattern":case"ArrayPattern":case"MetaProperty":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":if(t.key===e)return!!t.computed;return!1;case"ObjectProperty":if(t.key===e)return!!t.computed;return!i||"ObjectPattern"!==i.type;case"ClassProperty":case"ClassAccessorProperty":case"TSPropertySignature":if(t.key===e)return!!t.computed;break;case"ClassPrivateProperty":case"ObjectTypeProperty":return t.key!==e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":case"AssignmentPattern":return t.right===e;case"ExportSpecifier":if(null!=i&&i.source)return!1;return t.local===e;case"TSEnumMember":return t.id!==e}return!0}},88143(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!((0,r.isBlockStatement)(e)&&((0,r.isFunction)(t)||(0,r.isCatchClause)(t)))&&(!!((0,r.isPattern)(e)&&((0,r.isFunction)(t)||(0,r.isCatchClause)(t)))||(0,r.isScopable)(e))};var r=i(60133)},48778(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.isImportDefaultSpecifier)(e)||(0,r.isIdentifier)(e.imported||e.exported,{name:"default"})};var r=i(60133)},42379(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e===t)return!0;if(null==e||r.ALIAS_KEYS[t])return!1;let i=r.FLIPPED_ALIAS_KEYS[t];return!!(null!=i&&i.includes(e))};var r=i(49390)},55467(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e)&&!n.has(e)};var r=i(78126);let n=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"])},78126(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=!0){return!("string"!=typeof e||t&&((0,r.isKeyword)(e)||(0,r.isStrictReservedWord)(e,!0)))&&(0,r.isIdentifierName)(e)};var r=i(14007)},21342(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.isVariableDeclaration)(e,{kind:"var"})&&!e[n]};var r=i(60133),n=Symbol.for("var used to be block scoped")},31782(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i){let s;if(!n(e))return!1;let a=Array.isArray(t)?t:t.split("."),o=[];for(s=e;n(s);s=null!=(l=s.object)?l:s.meta){var l;o.push(s.property)}if(o.push(s),o.length<a.length||!i&&o.length>a.length)return!1;for(let e=0,t=o.length-1;e<a.length;e++,t--){let i,n=o[t];if((0,r.isIdentifier)(n))i=n.name;else if((0,r.isStringLiteral)(n))i=n.value;else if((0,r.isThisExpression)(n))i="this";else if((0,r.isSuper)(n))i="super";else{if(!(0,r.isPrivateName)(n))return!1;i="#"+n.id.name}if(a[e]!==i)return!1}return!0};var r=i(60133);function n(e){return(0,r.isMemberExpression)(e)||(0,r.isMetaProperty)(e)}},76977(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!!e&&/^[a-z]/.test(e)}},80737(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=(0,i(90550).default)("React.Component")},88765(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i){if(!e)return;let a=r.NODE_FIELDS[e.type];if(!a)return;let o=a[t];n(e,t,i,o),s(e,t,i)},t.validateChild=s,t.validateField=n,t.validateInternal=function(e,t,i,n,s){if(null!=e&&e.validate&&(!e.optional||null!=n)&&(e.validate(t,i,n),s)){var a;let e=n.type;if(null!=e)null==(a=r.NODE_PARENT_VALIDATIONS[e])||a.call(r.NODE_PARENT_VALIDATIONS,t,i,n)}};var r=i(49390);function n(e,t,i,r){!(null!=r&&r.validate)||r.optional&&null==i||r.validate(e,t,i)}function s(e,t,i){var n;let s=null==i?void 0:i.type;null!=s&&(null==(n=r.NODE_PARENT_VALIDATIONS[s])||n.call(r.NODE_PARENT_VALIDATIONS,e,t,i))}},42790(e,t,i){i.d(t,{QN:()=>er});let r={"text-classification":{name:"Text Classification",subtasks:[{type:"acceptability-classification",name:"Acceptability Classification"},{type:"entity-linking-classification",name:"Entity Linking Classification"},{type:"fact-checking",name:"Fact Checking"},{type:"intent-classification",name:"Intent Classification"},{type:"language-identification",name:"Language Identification"},{type:"multi-class-classification",name:"Multi Class Classification"},{type:"multi-label-classification",name:"Multi Label Classification"},{type:"multi-input-text-classification",name:"Multi-input Text Classification"},{type:"natural-language-inference",name:"Natural Language Inference"},{type:"semantic-similarity-classification",name:"Semantic Similarity Classification"},{type:"sentiment-classification",name:"Sentiment Classification"},{type:"topic-classification",name:"Topic Classification"},{type:"semantic-similarity-scoring",name:"Semantic Similarity Scoring"},{type:"sentiment-scoring",name:"Sentiment Scoring"},{type:"sentiment-analysis",name:"Sentiment Analysis"},{type:"hate-speech-detection",name:"Hate Speech Detection"},{type:"text-scoring",name:"Text Scoring"}],modality:"nlp"},"token-classification":{name:"Token Classification",subtasks:[{type:"named-entity-recognition",name:"Named Entity Recognition"},{type:"part-of-speech",name:"Part of Speech"},{type:"parsing",name:"Parsing"},{type:"lemmatization",name:"Lemmatization"},{type:"word-sense-disambiguation",name:"Word Sense Disambiguation"},{type:"coreference-resolution",name:"Coreference-resolution"}],modality:"nlp"},"table-question-answering":{name:"Table Question Answering",modality:"nlp"},"question-answering":{name:"Question Answering",subtasks:[{type:"extractive-qa",name:"Extractive QA"},{type:"open-domain-qa",name:"Open Domain QA"},{type:"closed-domain-qa",name:"Closed Domain QA"}],modality:"nlp"},"zero-shot-classification":{name:"Zero-Shot Classification",modality:"nlp"},translation:{name:"Translation",modality:"nlp"},summarization:{name:"Summarization",subtasks:[{type:"news-articles-summarization",name:"News Articles Summarization"},{type:"news-articles-headline-generation",name:"News Articles Headline Generation"}],modality:"nlp"},"feature-extraction":{name:"Feature Extraction",modality:"nlp"},"text-generation":{name:"Text Generation",subtasks:[{type:"dialogue-modeling",name:"Dialogue Modeling"},{type:"dialogue-generation",name:"Dialogue Generation"},{type:"conversational",name:"Conversational"},{type:"language-modeling",name:"Language Modeling"},{type:"text-simplification",name:"Text simplification"},{type:"explanation-generation",name:"Explanation Generation"},{type:"abstractive-qa",name:"Abstractive QA"},{type:"open-domain-abstractive-qa",name:"Open Domain Abstractive QA"},{type:"closed-domain-qa",name:"Closed Domain QA"},{type:"open-book-qa",name:"Open Book QA"},{type:"closed-book-qa",name:"Closed Book QA"},{type:"text2text-generation",name:"Text2Text Generation"}],modality:"nlp"},"fill-mask":{name:"Fill-Mask",subtasks:[{type:"slot-filling",name:"Slot Filling"},{type:"masked-language-modeling",name:"Masked Language Modeling"}],modality:"nlp"},"sentence-similarity":{name:"Sentence Similarity",modality:"nlp"},"text-to-speech":{name:"Text-to-Speech",modality:"audio"},"text-to-audio":{name:"Text-to-Audio",modality:"audio"},"automatic-speech-recognition":{name:"Automatic Speech Recognition",modality:"audio"},"audio-to-audio":{name:"Audio-to-Audio",modality:"audio"},"audio-classification":{name:"Audio Classification",subtasks:[{type:"keyword-spotting",name:"Keyword Spotting"},{type:"speaker-identification",name:"Speaker Identification"},{type:"audio-intent-classification",name:"Audio Intent Classification"},{type:"audio-emotion-recognition",name:"Audio Emotion Recognition"},{type:"audio-language-identification",name:"Audio Language Identification"}],modality:"audio"},"audio-text-to-text":{name:"Audio-Text-to-Text",modality:"multimodal",hideInDatasets:!0},"voice-activity-detection":{name:"Voice Activity Detection",modality:"audio"},"depth-estimation":{name:"Depth Estimation",modality:"cv"},"image-classification":{name:"Image Classification",subtasks:[{type:"multi-label-image-classification",name:"Multi Label Image Classification"},{type:"multi-class-image-classification",name:"Multi Class Image Classification"}],modality:"cv"},"object-detection":{name:"Object Detection",subtasks:[{type:"face-detection",name:"Face Detection"},{type:"vehicle-detection",name:"Vehicle Detection"}],modality:"cv"},"image-segmentation":{name:"Image Segmentation",subtasks:[{type:"instance-segmentation",name:"Instance Segmentation"},{type:"semantic-segmentation",name:"Semantic Segmentation"},{type:"panoptic-segmentation",name:"Panoptic Segmentation"}],modality:"cv"},"text-to-image":{name:"Text-to-Image",modality:"cv"},"image-to-text":{name:"Image-to-Text",subtasks:[{type:"image-captioning",name:"Image Captioning"}],modality:"cv"},"image-to-image":{name:"Image-to-Image",subtasks:[{type:"image-inpainting",name:"Image Inpainting"},{type:"image-colorization",name:"Image Colorization"},{type:"super-resolution",name:"Super Resolution"}],modality:"cv"},"image-to-video":{name:"Image-to-Video",modality:"cv"},"unconditional-image-generation":{name:"Unconditional Image Generation",modality:"cv"},"video-classification":{name:"Video Classification",modality:"cv"},"reinforcement-learning":{name:"Reinforcement Learning",modality:"rl"},robotics:{name:"Robotics",modality:"rl",subtasks:[{type:"grasping",name:"Grasping"},{type:"task-planning",name:"Task Planning"}]},"tabular-classification":{name:"Tabular Classification",modality:"tabular",subtasks:[{type:"tabular-multi-class-classification",name:"Tabular Multi Class Classification"},{type:"tabular-multi-label-classification",name:"Tabular Multi Label Classification"}]},"tabular-regression":{name:"Tabular Regression",modality:"tabular",subtasks:[{type:"tabular-single-column-regression",name:"Tabular Single Column Regression"}]},"tabular-to-text":{name:"Tabular to Text",modality:"tabular",subtasks:[{type:"rdf-to-text",name:"RDF to text"}],hideInModels:!0},"table-to-text":{name:"Table to Text",modality:"nlp",hideInModels:!0},"multiple-choice":{name:"Multiple Choice",subtasks:[{type:"multiple-choice-qa",name:"Multiple Choice QA"},{type:"multiple-choice-coreference-resolution",name:"Multiple Choice Coreference Resolution"}],modality:"nlp",hideInModels:!0},"text-ranking":{name:"Text Ranking",modality:"nlp"},"text-retrieval":{name:"Text Retrieval",subtasks:[{type:"document-retrieval",name:"Document Retrieval"},{type:"utterance-retrieval",name:"Utterance Retrieval"},{type:"entity-linking-retrieval",name:"Entity Linking Retrieval"},{type:"fact-checking-retrieval",name:"Fact Checking Retrieval"}],modality:"nlp",hideInModels:!0},"time-series-forecasting":{name:"Time Series Forecasting",modality:"tabular",subtasks:[{type:"univariate-time-series-forecasting",name:"Univariate Time Series Forecasting"},{type:"multivariate-time-series-forecasting",name:"Multivariate Time Series Forecasting"}]},"text-to-video":{name:"Text-to-Video",modality:"cv"},"image-text-to-text":{name:"Image-Text-to-Text",modality:"multimodal"},"image-text-to-image":{name:"Image-Text-to-Image",modality:"multimodal"},"image-text-to-video":{name:"Image-Text-to-Video",modality:"multimodal"},"visual-question-answering":{name:"Visual Question Answering",subtasks:[{type:"visual-question-answering",name:"Visual Question Answering"}],modality:"multimodal"},"document-question-answering":{name:"Document Question Answering",subtasks:[{type:"document-question-answering",name:"Document Question Answering"}],modality:"multimodal",hideInDatasets:!0},"zero-shot-image-classification":{name:"Zero-Shot Image Classification",modality:"cv"},"graph-ml":{name:"Graph Machine Learning",modality:"other"},"mask-generation":{name:"Mask Generation",modality:"cv"},"zero-shot-object-detection":{name:"Zero-Shot Object Detection",modality:"cv"},"text-to-3d":{name:"Text-to-3D",modality:"cv"},"image-to-3d":{name:"Image-to-3D",modality:"cv"},"image-feature-extraction":{name:"Image Feature Extraction",modality:"cv"},"video-text-to-text":{name:"Video-Text-to-Text",modality:"multimodal",hideInDatasets:!1},"keypoint-detection":{name:"Keypoint Detection",subtasks:[{type:"pose-estimation",name:"Pose Estimation"}],modality:"cv",hideInDatasets:!0},"visual-document-retrieval":{name:"Visual Document Retrieval",modality:"multimodal"},"any-to-any":{name:"Any-to-Any",modality:"multimodal"},"video-to-video":{name:"Video-to-Video",modality:"cv",hideInDatasets:!0},other:{name:"Other",modality:"other",hideInModels:!0,hideInDatasets:!0}};Object.keys(r),Object.values(r).flatMap(e=>"subtasks"in e?e.subtasks:[]).map(e=>e.type);let n={datasets:[{description:"A benchmark of 10 different audio tasks.",id:"s3prl/superb"},{description:"A dataset of YouTube clips and their sound categories.",id:"agkphysics/AudioSet"}],demo:{inputs:[{filename:"audio.wav",type:"audio"}],outputs:[{data:[{label:"Up",score:.2},{label:"Down",score:.8}],type:"chart"}]},metrics:[{description:"",id:"accuracy"},{description:"",id:"recall"},{description:"",id:"precision"},{description:"",id:"f1"}],models:[{description:"An easy-to-use model for command recognition.",id:"speechbrain/google_speech_command_xvector"},{description:"An emotion recognition model.",id:"ehcalabres/wav2vec2-lg-xlsr-en-speech-emotion-recognition"},{description:"A language identification model.",id:"facebook/mms-lid-126"}],spaces:[{description:"An application that can classify music into different genre.",id:"kurianbenoy/audioclassification"}],summary:"Audio classification is the task of assigning a label or class to a given audio. It can be used for recognizing which command a user is giving or the emotion of a statement, as well as identifying a speaker.",widgetModels:["MIT/ast-finetuned-audioset-10-10-0.4593"],youtubeId:"KWwzcmG98Ds"},s={datasets:[{description:"Wikipedia dataset containing cleaned articles of all languages. Can be used to train `feature-extraction` models.",id:"wikipedia"}],demo:{inputs:[{label:"Input",content:"India, officially the Republic of India, is a country in South Asia.",type:"text"}],outputs:[{table:[["Dimension 1","Dimension 2","Dimension 3"],["2.583383083343506","2.757075071334839","0.9023529887199402"],["8.29393482208252","1.1071064472198486","2.03399395942688"],["-0.7754912972450256","-1.647324562072754","-0.6113331913948059"],["0.07087723910808563","1.5942802429199219","1.4610432386398315"]],type:"tabular"}]},metrics:[],models:[{description:"A powerful feature extraction model for natural language processing tasks.",id:"thenlper/gte-large"},{description:"A strong feature extraction model for retrieval.",id:"Alibaba-NLP/gte-Qwen1.5-7B-instruct"}],spaces:[{description:"A leaderboard to rank text feature extraction models based on a benchmark.",id:"mteb/leaderboard"},{description:"A leaderboard to rank best feature extraction models based on human feedback.",id:"mteb/arena"}],summary:"Feature extraction is the task of extracting features learnt in a model.",widgetModels:["facebook/bart-base"]},a={datasets:[{description:"A common dataset that is used to train models for many languages.",id:"wikipedia"},{description:"A large English dataset with text crawled from the web.",id:"c4"}],demo:{inputs:[{label:"Input",content:"The <mask> barked at me",type:"text"}],outputs:[{type:"chart",data:[{label:"wolf",score:.487},{label:"dog",score:.061},{label:"cat",score:.058},{label:"fox",score:.047},{label:"squirrel",score:.025}]}]},metrics:[{description:"Cross Entropy is a metric that calculates the difference between two probability distributions. Each probability distribution is the distribution of predicted words",id:"cross_entropy"},{description:"Perplexity is the exponential of the cross-entropy loss. It evaluates the probabilities assigned to the next word by the model. Lower perplexity indicates better performance",id:"perplexity"}],models:[{description:"State-of-the-art masked language model.",id:"answerdotai/ModernBERT-large"},{description:"A multilingual model trained on 100 languages.",id:"FacebookAI/xlm-roberta-base"}],spaces:[],summary:"Masked language modeling is the task of masking some of the words in a sentence and predicting which words should replace those masks. These models are useful when we want to get a statistical understanding of the language in which the model is trained in.",widgetModels:["distilroberta-base"],youtubeId:"mqElG5QJWUg"},o={datasets:[{description:"Benchmark dataset used for image classification with images that belong to 100 classes.",id:"cifar100"},{description:"Dataset consisting of images of garments.",id:"fashion_mnist"}],demo:{inputs:[{filename:"image-classification-input.jpeg",type:"img"}],outputs:[{type:"chart",data:[{label:"Egyptian cat",score:.514},{label:"Tabby cat",score:.193},{label:"Tiger cat",score:.068}]}]},metrics:[{description:"",id:"accuracy"},{description:"",id:"recall"},{description:"",id:"precision"},{description:"",id:"f1"}],models:[{description:"A strong image classification model.",id:"google/vit-base-patch16-224"},{description:"A robust image classification model.",id:"facebook/deit-base-distilled-patch16-224"},{description:"A strong image classification model.",id:"facebook/convnext-large-224"}],spaces:[{description:"A leaderboard to evaluate different image classification models.",id:"timm/leaderboard"}],summary:"Image classification is the task of assigning a label or class to an entire image. Images are expected to have only one class for each image. Image classification models take an image as input and return a prediction about which class the image belongs to.",widgetModels:["google/vit-base-patch16-224"],youtubeId:"tjAIM7BOYhw"},l={datasets:[{description:"ImageNet-1K is a image classification dataset in which images are used to train image-feature-extraction models.",id:"imagenet-1k"}],demo:{inputs:[{filename:"mask-generation-input.png",type:"img"}],outputs:[{table:[["Dimension 1","Dimension 2","Dimension 3"],["0.21236686408519745","1.0919708013534546","0.8512550592422485"],["0.809657871723175","-0.18544459342956543","-0.7851548194885254"],["1.3103108406066895","-0.2479034662246704","-0.9107287526130676"],["1.8536205291748047","-0.36419737339019775","0.09717650711536407"]],type:"tabular"}]},metrics:[],models:[{description:"A powerful image feature extraction model.",id:"timm/vit_large_patch14_dinov2.lvd142m"},{description:"A strong image feature extraction model.",id:"nvidia/MambaVision-T-1K"},{description:"A robust image feature extraction model.",id:"facebook/dino-vitb16"},{description:"Cutting-edge image feature extraction model.",id:"apple/aimv2-large-patch14-336-distilled"},{description:"Strong image feature extraction model that can be used on images and documents.",id:"OpenGVLab/InternViT-6B-448px-V1-2"}],spaces:[{description:"A leaderboard to evaluate different image-feature-extraction models on classification performances",id:"timm/leaderboard"}],summary:"Image feature extraction is the task of extracting features learnt in a computer vision model.",widgetModels:[]},p={datasets:[],demo:{inputs:[],outputs:[]},isPlaceholder:!0,metrics:[],models:[],spaces:[],summary:"",widgetModels:[],youtubeId:void 0,canonicalId:void 0},u={datasets:[{description:"Bing queries with relevant passages from various web sources.",id:"microsoft/ms_marco"}],demo:{inputs:[{label:"Source sentence",content:"Machine learning is so easy.",type:"text"},{label:"Sentences to compare to",content:"Deep learning is so straightforward.",type:"text"},{label:"",content:"This is so difficult, like rocket science.",type:"text"},{label:"",content:"I can't believe how much I struggled with this.",type:"text"}],outputs:[{type:"chart",data:[{label:"Deep learning is so straightforward.",score:.623},{label:"This is so difficult, like rocket science.",score:.413},{label:"I can't believe how much I struggled with this.",score:.256}]}]},metrics:[{description:"Reciprocal Rank is a measure used to rank the relevancy of documents given a set of documents. Reciprocal Rank is the reciprocal of the rank of the document retrieved, meaning, if the rank is 3, the Reciprocal Rank is 0.33. If the rank is 1, the Reciprocal Rank is 1",id:"Mean Reciprocal Rank"},{description:"The similarity of the embeddings is evaluated mainly on cosine similarity. It is calculated as the cosine of the angle between two vectors. It is particularly useful when your texts are not the same length",id:"Cosine Similarity"}],models:[{description:"This model works well for sentences and paragraphs and can be used for clustering/grouping and semantic searches.",id:"sentence-transformers/all-mpnet-base-v2"},{description:"A multilingual robust sentence similarity model.",id:"BAAI/bge-m3"},{description:"A robust sentence similarity model.",id:"HIT-TMG/KaLM-embedding-multilingual-mini-instruct-v1.5"}],spaces:[{description:"An application that leverages sentence similarity to answer questions from YouTube videos.",id:"Gradio-Blocks/Ask_Questions_To_YouTube_Videos"},{description:"An application that retrieves relevant PubMed abstracts for a given online article which can be used as further references.",id:"Gradio-Blocks/pubmed-abstract-retriever"},{description:"An application that leverages sentence similarity to summarize text.",id:"nickmuchi/article-text-summarizer"},{description:"A guide that explains how Sentence Transformers can be used for semantic search.",id:"sentence-transformers/Sentence_Transformers_for_semantic_search"}],summary:"Sentence Similarity is the task of determining how similar two texts are. Sentence similarity models convert input texts into vectors (embeddings) that capture semantic information and calculate how close (similar) they are between them. This task is particularly useful for information retrieval and clustering/grouping.",widgetModels:["sentence-transformers/all-MiniLM-L6-v2"],youtubeId:"VCZq5AkbNEU"},c={datasets:[{description:"The WikiTableQuestions dataset is a large-scale dataset for the task of question answering on semi-structured tables.",id:"wikitablequestions"},{description:"WikiSQL is a dataset of 80654 hand-annotated examples of questions and SQL queries distributed across 24241 tables from Wikipedia.",id:"wikisql"}],demo:{inputs:[{table:[["Rank","Name","No.of reigns","Combined days"],["1","lou Thesz","3","3749"],["2","Ric Flair","8","3103"],["3","Harley Race","7","1799"]],type:"tabular"},{label:"Question",content:"What is the number of reigns for Harley Race?",type:"text"}],outputs:[{label:"Result",content:"7",type:"text"}]},metrics:[{description:"Checks whether the predicted answer(s) is the same as the ground-truth answer(s).",id:"Denotation Accuracy"}],models:[{description:"A table question answering model that is capable of neural SQL execution, i.e., employ TAPEX to execute a SQL query on a given table.",id:"microsoft/tapex-base"},{description:"A robust table question answering model.",id:"google/tapas-base-finetuned-wtq"}],spaces:[{description:"An application that answers questions based on table CSV files.",id:"katanaml/table-query"}],summary:"Table Question Answering (Table QA) is the answering a question about an information on a given table.",widgetModels:["google/tapas-base-finetuned-wtq"]},d={datasets:[{description:"A comprehensive curation of datasets covering all benchmarks.",id:"inria-soda/tabular-benchmark"}],demo:{inputs:[{table:[["Glucose","Blood Pressure ","Skin Thickness","Insulin","BMI"],["148","72","35","0","33.6"],["150","50","30","0","35.1"],["141","60","29","1","39.2"]],type:"tabular"}],outputs:[{table:[["Diabetes"],["1"],["1"],["0"]],type:"tabular"}]},metrics:[{description:"",id:"accuracy"},{description:"",id:"recall"},{description:"",id:"precision"},{description:"",id:"f1"}],models:[{description:"Breast cancer prediction model based on decision trees.",id:"scikit-learn/cancer-prediction-trees"}],spaces:[{description:"An application that can predict defective products on a production line.",id:"scikit-learn/tabular-playground"},{description:"An application that compares various tabular classification techniques on different datasets.",id:"scikit-learn/classification"}],summary:"Tabular classification is the task of classifying a target category (a group) based on set of attributes.",widgetModels:["scikit-learn/tabular-playground"],youtubeId:""},h={datasets:[{description:"A comprehensive curation of datasets covering all benchmarks.",id:"inria-soda/tabular-benchmark"}],demo:{inputs:[{table:[["Car Name","Horsepower","Weight"],["ford torino","140","3,449"],["amc hornet","97","2,774"],["toyota corolla","65","1,773"]],type:"tabular"}],outputs:[{table:[["MPG (miles per gallon)"],["17"],["18"],["31"]],type:"tabular"}]},metrics:[{description:"",id:"mse"},{description:"Coefficient of determination (or R-squared) is a measure of how well the model fits the data. Higher R-squared is considered a better fit.",id:"r-squared"}],models:[{description:"Fish weight prediction based on length measurements and species.",id:"scikit-learn/Fish-Weight"}],spaces:[{description:"An application that can predict weight of a fish based on set of attributes.",id:"scikit-learn/fish-weight-prediction"}],summary:"Tabular regression is the task of predicting a numerical value given a set of attributes.",widgetModels:["scikit-learn/Fish-Weight"],youtubeId:""},m={datasets:[{description:"A widely used dataset useful to benchmark named entity recognition models.",id:"eriktks/conll2003"},{description:"A multilingual dataset of Wikipedia articles annotated for named entity recognition in over 150 different languages.",id:"unimelb-nlp/wikiann"}],demo:{inputs:[{label:"Input",content:"My name is Omar and I live in Z\xfcrich.",type:"text"}],outputs:[{text:"My name is Omar and I live in Z\xfcrich.",tokens:[{type:"PERSON",start:11,end:15},{type:"GPE",start:30,end:36}],type:"text-with-tokens"}]},metrics:[{description:"",id:"accuracy"},{description:"",id:"recall"},{description:"",id:"precision"},{description:"",id:"f1"}],models:[{description:"A robust performance model to identify people, locations, organizations and names of miscellaneous entities.",id:"dslim/bert-base-NER"},{description:"A strong model to identify people, locations, organizations and names in multiple languages.",id:"FacebookAI/xlm-roberta-large-finetuned-conll03-english"},{description:"A token classification model specialized on medical entity recognition.",id:"blaze999/Medical-NER"},{description:"Flair models are typically the state of the art in named entity recognition tasks.",id:"flair/ner-english"}],spaces:[{description:"An application that can recognizes entities, extracts noun chunks and recognizes various linguistic features of each token.",id:"spacy/gradio_pipeline_visualizer"}],summary:"Token classification is a natural language understanding task in which a label is assigned to some tokens in a text. Some popular token classification subtasks are Named Entity Recognition (NER) and Part-of-Speech (PoS) tagging. NER models could be trained to identify specific entities in a text, such as dates, individuals and places; and PoS tagging would identify, for example, which words in a text are verbs, nouns, and punctuation marks.",widgetModels:["FacebookAI/xlm-roberta-large-finetuned-conll03-english"],youtubeId:"wVHdVlPScxA"},f={datasets:[{description:"A widely used dataset used to benchmark multiple variants of text classification.",id:"nyu-mll/glue"},{description:"A text classification dataset used to benchmark natural language inference models",id:"stanfordnlp/snli"}],demo:{inputs:[{label:"Input",content:"I love Hugging Face!",type:"text"}],outputs:[{type:"chart",data:[{label:"POSITIVE",score:.9},{label:"NEUTRAL",score:.1},{label:"NEGATIVE",score:0}]}]},metrics:[{description:"",id:"accuracy"},{description:"",id:"recall"},{description:"",id:"precision"},{description:"The F1 metric is the harmonic mean of the precision and recall. It can be calculated as: F1 = 2 * (precision * recall) / (precision + recall)",id:"f1"}],models:[{description:"A robust model trained for sentiment analysis.",id:"distilbert/distilbert-base-uncased-finetuned-sst-2-english"},{description:"A sentiment analysis model specialized in financial sentiment.",id:"ProsusAI/finbert"},{description:"A sentiment analysis model specialized in analyzing tweets.",id:"cardiffnlp/twitter-roberta-base-sentiment-latest"},{description:"A model that can classify languages.",id:"papluca/xlm-roberta-base-language-detection"},{description:"A model that can classify text generation attacks.",id:"meta-llama/Prompt-Guard-86M"}],spaces:[{description:"An application that can classify financial sentiment.",id:"IoannisTr/Tech_Stocks_Trading_Assistant"},{description:"A dashboard that contains various text classification tasks.",id:"miesnerjacob/Multi-task-NLP"},{description:"An application that analyzes user reviews in healthcare.",id:"spacy/healthsea-demo"}],summary:"Text Classification is the task of assigning a label or class to a given text. Some use cases are sentiment analysis, natural language inference, and assessing grammatical correctness.",widgetModels:["distilbert/distilbert-base-uncased-finetuned-sst-2-english"],youtubeId:"leNG9fN9FQU"},y={datasets:[{description:"Bing queries with relevant passages from various web sources.",id:"microsoft/ms_marco"}],demo:{inputs:[{label:"Source sentence",content:"Machine learning is so easy.",type:"text"},{label:"Sentences to compare to",content:"Deep learning is so straightforward.",type:"text"},{label:"",content:"This is so difficult, like rocket science.",type:"text"},{label:"",content:"I can't believe how much I struggled with this.",type:"text"}],outputs:[{type:"chart",data:[{label:"Deep learning is so straightforward.",score:2.2006407},{label:"This is so difficult, like rocket science.",score:-6.2634873},{label:"I can't believe how much I struggled with this.",score:-10.251488}]}]},metrics:[{description:"Discounted Cumulative Gain (DCG) measures the gain, or usefulness, of search results discounted by their position. The normalization is done by dividing the DCG by the ideal DCG, which is the DCG of the perfect ranking.",id:"Normalized Discounted Cumulative Gain"},{description:"Reciprocal Rank is a measure used to rank the relevancy of documents given a set of documents. Reciprocal Rank is the reciprocal of the rank of the document retrieved, meaning, if the rank is 3, the Reciprocal Rank is 0.33. If the rank is 1, the Reciprocal Rank is 1",id:"Mean Reciprocal Rank"},{description:"Mean Average Precision (mAP) is the overall average of the Average Precision (AP) values, where AP is the Area Under the PR Curve (AUC-PR)",id:"Mean Average Precision"}],models:[{description:"An extremely efficient text ranking model trained on a web search dataset.",id:"cross-encoder/ms-marco-MiniLM-L6-v2"},{description:"A strong multilingual text reranker model.",id:"Alibaba-NLP/gte-multilingual-reranker-base"},{description:"An efficient text ranking model that punches above its weight.",id:"Alibaba-NLP/gte-reranker-modernbert-base"}],spaces:[],summary:"Text Ranking is the task of ranking a set of texts based on their relevance to a query. Text ranking models are trained on large datasets of queries and relevant documents to learn how to rank documents based on their relevance to the query. This task is particularly useful for search engines and information retrieval systems.",widgetModels:["cross-encoder/ms-marco-MiniLM-L6-v2"],youtubeId:""},g={datasets:[{description:"Benchmark dataset used for video classification with videos that belong to 400 classes.",id:"kinetics400"}],demo:{inputs:[{filename:"video-classification-input.gif",type:"img"}],outputs:[{type:"chart",data:[{label:"Playing Guitar",score:.514},{label:"Playing Tennis",score:.193},{label:"Cooking",score:.068}]}]},metrics:[{description:"",id:"accuracy"},{description:"",id:"recall"},{description:"",id:"precision"},{description:"",id:"f1"}],models:[{description:"Strong Video Classification model trained on the Kinetics 400 dataset.",id:"google/vivit-b-16x2-kinetics400"},{description:"Strong Video Classification model trained on the Kinetics 400 dataset.",id:"microsoft/xclip-base-patch32"}],spaces:[{description:"An application that classifies video at different timestamps.",id:"nateraw/lavila"},{description:"An application that classifies video.",id:"fcakyon/video-classification"}],summary:"Video classification is the task of assigning a label or class to an entire video. Videos are expected to have only one class for each video. Video classification models take a video as input and return a prediction about which class the video belongs to.",widgetModels:[],youtubeId:""},T={datasets:[{description:"A large dataset used to train visual document retrieval models.",id:"vidore/colpali_train_set"}],demo:{inputs:[{filename:"input.png",type:"img"},{label:"Question",content:"Is the model in this paper the fastest for inference?",type:"text"}],outputs:[{type:"chart",data:[{label:"Page 10",score:.7},{label:"Page 11",score:.06},{label:"Page 9",score:.003}]}]},isPlaceholder:!1,metrics:[{description:"NDCG@k scores ranked recommendation lists for top-k results. 0 is the worst, 1 is the best.",id:"Normalized Discounted Cumulative Gain at K"}],models:[{description:"Very accurate visual document retrieval model for multilingual queries and documents.",id:"vidore/colqwen2-v1.0"},{description:"Very fast and efficient visual document retrieval model that can also take in other modalities like audio.",id:"Tevatron/OmniEmbed-v0.1"}],spaces:[{description:"A leaderboard of visual document retrieval models.",id:"vidore/vidore-leaderboard"},{description:"Visual retrieval augmented generation demo based on ColQwen2 model.",id:"vidore/visual-rag-tool"}],summary:"Visual document retrieval is the task of searching for relevant image-based documents, such as PDFs. These models take a text query and multiple documents as input and return the top-most relevant documents and relevancy scores as output.",widgetModels:[""],youtubeId:""},b={datasets:[{description:"A widely used dataset containing questions (with answers) about images.",id:"Graphcore/vqa"},{description:"A dataset to benchmark visual reasoning based on text in images.",id:"facebook/textvqa"}],demo:{inputs:[{filename:"elephant.jpeg",type:"img"},{label:"Question",content:"What is in this image?",type:"text"}],outputs:[{type:"chart",data:[{label:"elephant",score:.97},{label:"elephants",score:.06},{label:"animal",score:.003}]}]},isPlaceholder:!1,metrics:[{description:"",id:"accuracy"},{description:"Measures how much a predicted answer differs from the ground truth based on the difference in their semantic meaning.",id:"wu-palmer similarity"}],models:[{description:"A visual question answering model trained to convert charts and plots to text.",id:"google/deplot"},{description:"A visual question answering model trained for mathematical reasoning and chart derendering from images.",id:"google/matcha-base"},{description:"A strong visual question answering that answers questions from book covers.",id:"google/pix2struct-ocrvqa-large"}],spaces:[{description:"An application that compares visual question answering models across different tasks.",id:"merve/pix2struct"},{description:"An application that can answer questions based on images.",id:"nielsr/vilt-vqa"},{description:"An application that can caption images and answer questions about a given image. ",id:"Salesforce/BLIP"},{description:"An application that can caption images and answer questions about a given image. ",id:"vumichien/Img2Prompt"}],summary:"Visual Question Answering is the task of answering open-ended questions based on an image. They output natural language responses to natural language questions.",widgetModels:["dandelin/vilt-b32-finetuned-vqa"],youtubeId:""},x={datasets:[{description:"A widely used dataset used to benchmark multiple variants of text classification.",id:"nyu-mll/glue"},{description:"The Multi-Genre Natural Language Inference (MultiNLI) corpus is a crowd-sourced collection of 433k sentence pairs annotated with textual entailment information.",id:"nyu-mll/multi_nli"},{description:"FEVER is a publicly available dataset for fact extraction and verification against textual sources.",id:"fever/fever"}],demo:{inputs:[{label:"Text Input",content:"Dune is the best movie ever.",type:"text"},{label:"Candidate Labels",content:"CINEMA, ART, MUSIC",type:"text"}],outputs:[{type:"chart",data:[{label:"CINEMA",score:.9},{label:"ART",score:.1},{label:"MUSIC",score:0}]}]},metrics:[],models:[{description:"Powerful zero-shot text classification model.",id:"facebook/bart-large-mnli"},{description:"Cutting-edge zero-shot multilingual text classification model.",id:"MoritzLaurer/ModernBERT-large-zeroshot-v2.0"},{description:"Zero-shot text classification model that can be used for topic and sentiment classification.",id:"knowledgator/gliclass-modern-base-v2.0-init"}],spaces:[],summary:"Zero-shot text classification is a task in natural language processing where a model is trained on a set of labeled examples but is then able to classify new examples from previously unseen classes.",widgetModels:["facebook/bart-large-mnli"]},S={datasets:[{description:"",id:""}],demo:{inputs:[{filename:"image-classification-input.jpeg",type:"img"},{label:"Classes",content:"cat, dog, bird",type:"text"}],outputs:[{type:"chart",data:[{label:"Cat",score:.664},{label:"Dog",score:.329},{label:"Bird",score:.008}]}]},metrics:[{description:"Computes the number of times the correct label appears in top K labels predicted",id:"top-K accuracy"}],models:[{description:"Multilingual image classification model for 80 languages.",id:"visheratin/mexma-siglip"},{description:"Strong zero-shot image classification model.",id:"google/siglip2-base-patch16-224"},{description:"Robust zero-shot image classification model.",id:"intfloat/mmE5-mllama-11b-instruct"},{description:"Powerful zero-shot image classification model supporting 94 languages.",id:"jinaai/jina-clip-v2"},{description:"Strong image classification model for biomedical domain.",id:"microsoft/BiomedCLIP-PubMedBERT_256-vit_base_patch16_224"}],spaces:[{description:"An application that leverages zero-shot image classification to find best captions to generate an image. ",id:"pharma/CLIP-Interrogator"},{description:"An application to compare different zero-shot image classification models. ",id:"merve/compare_clip_siglip"}],summary:"Zero-shot image classification is the task of classifying previously unseen classes during training of a model.",widgetModels:["google/siglip-so400m-patch14-224"],youtubeId:""},E={"audio-classification":["speechbrain","transformers","transformers.js"],"audio-to-audio":["asteroid","fairseq","speechbrain"],"automatic-speech-recognition":["espnet","nemo","speechbrain","transformers","transformers.js"],"audio-text-to-text":["transformers"],"depth-estimation":["transformers","transformers.js"],"document-question-answering":["transformers","transformers.js"],"feature-extraction":["sentence-transformers","transformers","transformers.js"],"fill-mask":["transformers","transformers.js"],"graph-ml":["transformers"],"image-classification":["keras","timm","transformers","transformers.js"],"image-feature-extraction":["timm","transformers"],"image-segmentation":["transformers","transformers.js"],"image-text-to-text":["transformers"],"image-text-to-image":["diffusers"],"image-text-to-video":["diffusers"],"image-to-image":["diffusers","transformers","transformers.js"],"image-to-text":["transformers","transformers.js"],"image-to-video":["diffusers"],"keypoint-detection":["transformers"],"video-classification":["transformers"],"mask-generation":["transformers"],"multiple-choice":["transformers"],"object-detection":["transformers","transformers.js","ultralytics"],other:[],"question-answering":["adapter-transformers","allennlp","transformers","transformers.js"],robotics:[],"reinforcement-learning":["transformers","stable-baselines3","ml-agents","sample-factory"],"sentence-similarity":["sentence-transformers","spacy","transformers.js"],summarization:["transformers","transformers.js"],"table-question-answering":["transformers"],"table-to-text":["transformers"],"tabular-classification":["sklearn"],"tabular-regression":["sklearn"],"tabular-to-text":["transformers"],"text-classification":["adapter-transformers","setfit","spacy","transformers","transformers.js"],"text-generation":["transformers","transformers.js"],"text-ranking":["sentence-transformers","transformers"],"text-retrieval":[],"text-to-image":["diffusers"],"text-to-speech":["espnet","tensorflowtts","transformers","transformers.js"],"text-to-audio":["transformers","transformers.js"],"text-to-video":["diffusers"],"time-series-forecasting":[],"token-classification":["adapter-transformers","flair","spacy","span-marker","stanza","transformers","transformers.js"],translation:["transformers","transformers.js"],"unconditional-image-generation":["diffusers"],"video-text-to-text":["transformers"],"visual-question-answering":["transformers","transformers.js"],"voice-activity-detection":[],"zero-shot-classification":["transformers","transformers.js"],"zero-shot-image-classification":["transformers","transformers.js"],"zero-shot-object-detection":["transformers","transformers.js"],"text-to-3d":["diffusers"],"image-to-3d":["diffusers"],"any-to-any":["transformers"],"visual-document-retrieval":["transformers"],"video-to-video":["diffusers"]};function A(e,t=p){return{...t,id:e,label:r[e].name,libraries:E[e]}}A("any-to-any",{datasets:[{description:"A dataset with multiple modality input and output pairs.",id:"PKU-Alignment/align-anything"}],demo:{inputs:[{filename:"any-to-any-input.jpg",type:"img"},{label:"Text Prompt",content:"What is the significance of this place?",type:"text"}],outputs:[{label:"Generated Text",content:"The place in the picture is Osaka Castle, located in Osaka, Japan. Osaka Castle is a historic castle that was originally built in the 16th century by Toyotomi Hideyoshi, a powerful warlord of the time. It is one of the most famous landmarks in Osaka and is known for its distinctive white walls and black roof tiles. The castle has been rebuilt several times over the centuries and is now a popular tourist attraction, offering visitors a glimpse into Japan's rich history and culture.",type:"text"},{filename:"any-to-any-output.wav",type:"audio"}]},metrics:[],models:[{description:"Strong model that can take in video, audio, image, text and output text and natural speech.",id:"Qwen/Qwen2.5-Omni-7B"},{description:"Robust model that can take in image and text and generate image and text.",id:"OmniGen2/OmniGen2"},{description:"Any-to-any model with speech, video, audio, image and text understanding capabilities.",id:"openbmb/MiniCPM-o-2_6"},{description:"A model that can understand image and text and generate image and text.",id:"ByteDance-Seed/BAGEL-7B-MoT"}],spaces:[{description:"An application to chat with an any-to-any (image & text) model.",id:"OmniGen2/OmniGen2"}],summary:"Any-to-any models can understand two or more modalities and output two or more modalities.",widgetModels:[],youtubeId:""}),A("audio-classification",n),A("audio-to-audio",{datasets:[{description:"512-element X-vector embeddings of speakers from CMU ARCTIC dataset.",id:"Matthijs/cmu-arctic-xvectors"}],demo:{inputs:[{filename:"input.wav",type:"audio"}],outputs:[{filename:"label-0.wav",type:"audio"},{filename:"label-1.wav",type:"audio"}]},metrics:[{description:"The Signal-to-Noise ratio is the relationship between the target signal level and the background noise level. It is calculated as the logarithm of the target signal divided by the background noise, in decibels.",id:"snri"},{description:"The Signal-to-Distortion ratio is the relationship between the target signal and the sum of noise, interference, and artifact errors",id:"sdri"}],models:[{description:"A speech enhancement model.",id:"ResembleAI/resemble-enhance"},{description:"A model that can change the voice in a speech recording.",id:"microsoft/speecht5_vc"}],spaces:[{description:"An application for speech separation.",id:"younver/speechbrain-speech-separation"},{description:"An application for audio style transfer.",id:"nakas/audio-diffusion_style_transfer"}],summary:"Audio-to-Audio is a family of tasks in which the input is an audio and the output is one or multiple generated audios. Some example tasks are speech enhancement and source separation.",widgetModels:["speechbrain/sepformer-wham"],youtubeId:"iohj7nCCYoM"}),A("audio-text-to-text",{datasets:[{description:"A dataset containing audio conversations with question–answer pairs.",id:"nvidia/AF-Think"},{description:"A more advanced and comprehensive dataset that contains characteristics of the audio as well",id:"tsinghua-ee/QualiSpeech"}],demo:{inputs:[{filename:"audio.wav",type:"audio"},{label:"Text Prompt",content:"What is the gender of the speaker?",type:"text"}],outputs:[{label:"Generated Text",content:"The gender of the speaker is female.",type:"text"}]},metrics:[],models:[{description:"A lightweight model that has capabilities of taking both audio and text as inputs and generating responses.",id:"fixie-ai/ultravox-v0_5-llama-3_2-1b"},{description:"A multimodal model that supports voice chat and audio analysis.",id:"Qwen/Qwen2-Audio-7B-Instruct"},{description:"A model for audio understanding, speech translation, and transcription.",id:"mistralai/Voxtral-Small-24B-2507"},{description:"A new model capable of audio question answering and reasoning.",id:"nvidia/audio-flamingo-3"}],spaces:[{description:"A space that takes input as both audio and text and generates answers.",id:"iamomtiwari/ATTT"},{description:"A web application that demonstrates chatting with the Qwen2Audio Model.",id:"freddyaboulton/talk-to-qwen-webrtc"}],summary:"Audio-text-to-text models take both an audio clip and a text prompt as input, and generate natural language text as output. These models can answer questions about spoken content, summarize meetings, analyze music, or interpret speech beyond simple transcription. They are useful for applications that combine speech understanding with reasoning or conversation.",widgetModels:[],youtubeId:""}),A("automatic-speech-recognition",{datasets:[{description:"31,175 hours of multilingual audio-text dataset in 108 languages.",id:"mozilla-foundation/common_voice_17_0"},{description:"Multilingual and diverse audio dataset with 101k hours of audio.",id:"amphion/Emilia-Dataset"},{description:"A dataset with 44.6k hours of English speaker data and 6k hours of other language speakers.",id:"parler-tts/mls_eng"},{description:"A multilingual audio dataset with 370K hours of audio.",id:"espnet/yodas"}],demo:{inputs:[{filename:"input.flac",type:"audio"}],outputs:[{label:"Transcript",content:"Going along slushy country roads and speaking to damp audiences in...",type:"text"}]},metrics:[{description:"",id:"wer"},{description:"",id:"cer"}],models:[{description:"A powerful ASR model by OpenAI.",id:"openai/whisper-large-v3"},{description:"A good generic speech model by MetaAI for fine-tuning.",id:"facebook/w2v-bert-2.0"},{description:"An end-to-end model that performs ASR and Speech Translation by MetaAI.",id:"facebook/seamless-m4t-v2-large"},{description:"A powerful multilingual ASR and Speech Translation model by Nvidia.",id:"nvidia/canary-1b"},{description:"Powerful speaker diarization model.",id:"pyannote/speaker-diarization-3.1"}],spaces:[{description:"A powerful general-purpose speech recognition application.",id:"hf-audio/whisper-large-v3"},{description:"Latest ASR model from Useful Sensors.",id:"mrfakename/Moonshinex"},{description:"A high quality speech and text translation model by Meta.",id:"facebook/seamless_m4t"},{description:"A powerful multilingual ASR and Speech Translation model by Nvidia",id:"nvidia/canary-1b"}],summary:"Automatic Speech Recognition (ASR), also known as Speech to Text (STT), is the task of transcribing a given audio to text. It has many applications, such as voice user interfaces.",widgetModels:["openai/whisper-large-v3"],youtubeId:"TksaY_FDgnk"}),A("depth-estimation",{datasets:[{description:"NYU Depth V2 Dataset: Video dataset containing both RGB and depth sensor data.",id:"sayakpaul/nyu_depth_v2"},{description:"Monocular depth estimation benchmark based without noise and errors.",id:"depth-anything/DA-2K"}],demo:{inputs:[{filename:"depth-estimation-input.jpg",type:"img"}],outputs:[{filename:"depth-estimation-output.png",type:"img"}]},metrics:[],models:[{description:"Cutting-edge depth estimation model.",id:"depth-anything/Depth-Anything-V2-Large"},{description:"A strong monocular depth estimation model.",id:"jingheya/lotus-depth-g-v1-0"},{description:"A depth estimation model that predicts depth in videos.",id:"tencent/DepthCrafter"},{description:"A robust depth estimation model.",id:"apple/DepthPro-hf"}],spaces:[{description:"An application that predicts the depth of an image and then reconstruct the 3D model as voxels.",id:"radames/dpt-depth-estimation-3d-voxels"},{description:"An application for bleeding-edge depth estimation.",id:"akhaliq/depth-pro"},{description:"An application on cutting-edge depth estimation in videos.",id:"tencent/DepthCrafter"},{description:"A human-centric depth estimation application.",id:"facebook/sapiens-depth"}],summary:"Depth estimation is the task of predicting depth of the objects present in an image.",widgetModels:[""],youtubeId:""}),A("document-question-answering",{datasets:[{description:"Largest document understanding dataset.",id:"HuggingFaceM4/Docmatix"},{description:"Dataset from the 2020 DocVQA challenge. The documents are taken from the UCSF Industry Documents Library.",id:"eliolio/docvqa"}],demo:{inputs:[{label:"Question",content:"What is the idea behind the consumer relations efficiency team?",type:"text"},{filename:"document-question-answering-input.png",type:"img"}],outputs:[{label:"Answer",content:"Balance cost efficiency with quality customer service",type:"text"}]},metrics:[{description:"The evaluation metric for the DocVQA challenge is the Average Normalized Levenshtein Similarity (ANLS). This metric is flexible to character regognition errors and compares the predicted answer with the ground truth answer.",id:"anls"},{description:"Exact Match is a metric based on the strict character match of the predicted answer and the right answer. For answers predicted correctly, the Exact Match will be 1. Even if only one character is different, Exact Match will be 0",id:"exact-match"}],models:[{description:"A robust document question answering model.",id:"impira/layoutlm-document-qa"},{description:"A document question answering model specialized in invoices.",id:"impira/layoutlm-invoices"},{description:"A special model for OCR-free document question answering.",id:"microsoft/udop-large"},{description:"A powerful model for document question answering.",id:"google/pix2struct-docvqa-large"}],spaces:[{description:"A robust document question answering application.",id:"impira/docquery"},{description:"An application that can answer questions from invoices.",id:"impira/invoices"},{description:"An application to compare different document question answering models.",id:"merve/compare_docvqa_models"}],summary:"Document Question Answering (also known as Document Visual Question Answering) is the task of answering questions on document images. Document question answering models take a (document, question) pair as input and return an answer in natural language. Models usually rely on multi-modal features, combining text, position of words (bounding-boxes) and image.",widgetModels:["impira/layoutlm-invoices"],youtubeId:""}),A("visual-document-retrieval",T),A("feature-extraction",s),A("fill-mask",a),A("image-classification",o),A("image-feature-extraction",l),A("image-segmentation",{datasets:[{description:"Scene segmentation dataset.",id:"scene_parse_150"}],demo:{inputs:[{filename:"image-segmentation-input.jpeg",type:"img"}],outputs:[{filename:"image-segmentation-output.png",type:"img"}]},metrics:[{description:"Average Precision (AP) is the Area Under the PR Curve (AUC-PR). It is calculated for each semantic class separately",id:"Average Precision"},{description:"Mean Average Precision (mAP) is the overall average of the AP values",id:"Mean Average Precision"},{description:"Intersection over Union (IoU) is the overlap of segmentation masks. Mean IoU is the average of the IoU of all semantic classes",id:"Mean Intersection over Union"},{description:"APα is the Average Precision at the IoU threshold of a α value, for example, AP50 and AP75",id:"APα"}],models:[{description:"Solid panoptic segmentation model trained on COCO.",id:"tue-mps/coco_panoptic_eomt_large_640"},{description:"Background removal model.",id:"briaai/RMBG-1.4"},{description:"A multipurpose image segmentation model for high resolution images.",id:"ZhengPeng7/BiRefNet"},{description:"Powerful human-centric image segmentation model.",id:"facebook/sapiens-seg-1b"},{description:"Panoptic segmentation model trained on the COCO (common objects) dataset.",id:"facebook/mask2former-swin-large-coco-panoptic"}],spaces:[{description:"A semantic segmentation application that can predict unseen instances out of the box.",id:"facebook/ov-seg"},{description:"One of the strongest segmentation applications.",id:"jbrinkma/segment-anything"},{description:"A human-centric segmentation model.",id:"facebook/sapiens-pose"},{description:"An instance segmentation application to predict neuronal cell types from microscopy images.",id:"rashmi/sartorius-cell-instance-segmentation"},{description:"An application that segments videos.",id:"ArtGAN/Segment-Anything-Video"},{description:"An panoptic segmentation application built for outdoor environments.",id:"segments/panoptic-segment-anything"}],summary:"Image Segmentation divides an image into segments where each pixel in the image is mapped to an object. This task has multiple variants such as instance segmentation, panoptic segmentation and semantic segmentation.",widgetModels:["nvidia/segformer-b0-finetuned-ade-512-512"],youtubeId:"dKE8SIt9C-w"}),A("image-to-image",{datasets:[{description:"Synthetic dataset, for image relighting",id:"VIDIT"},{description:"Multiple images of celebrities, used for facial expression translation",id:"huggan/CelebA-faces"},{description:"12M image-caption pairs.",id:"Spawning/PD12M"}],demo:{inputs:[{filename:"image-to-image-input.jpeg",type:"img"}],outputs:[{filename:"image-to-image-output.png",type:"img"}]},isPlaceholder:!1,metrics:[{description:"Peak Signal to Noise Ratio (PSNR) is an approximation of the human perception, considering the ratio of the absolute intensity with respect to the variations. Measured in dB, a high value indicates a high fidelity.",id:"PSNR"},{description:"Structural Similarity Index (SSIM) is a perceptual metric which compares the luminance, contrast and structure of two images. The values of SSIM range between -1 and 1, and higher values indicate closer resemblance to the original image.",id:"SSIM"},{description:"Inception Score (IS) is an analysis of the labels predicted by an image classification model when presented with a sample of the generated images.",id:"IS"}],models:[{description:"An image-to-image model to improve image resolution.",id:"fal/AuraSR-v2"},{description:"Powerful image editing model.",id:"black-forest-labs/FLUX.1-Kontext-dev"},{description:"Virtual try-on model.",id:"yisol/IDM-VTON"},{description:"Image re-lighting model.",id:"kontext-community/relighting-kontext-dev-lora-v3"},{description:"Strong model for inpainting and outpainting.",id:"black-forest-labs/FLUX.1-Fill-dev"},{description:"Strong model for image editing using depth maps.",id:"black-forest-labs/FLUX.1-Depth-dev-lora"}],spaces:[{description:"Image editing application.",id:"black-forest-labs/FLUX.1-Kontext-Dev"},{description:"Image relighting application.",id:"lllyasviel/iclight-v2-vary"},{description:"An application for image upscaling.",id:"jasperai/Flux.1-dev-Controlnet-Upscaler"}],summary:"Image-to-image is the task of transforming an input image through a variety of possible manipulations and enhancements, such as super-resolution, image inpainting, colorization, and more.",widgetModels:["Qwen/Qwen-Image"],youtubeId:""}),A("image-text-to-text",{datasets:[{description:"Instructions composed of image and text.",id:"liuhaotian/LLaVA-Instruct-150K"},{description:"Collection of image-text pairs on scientific topics.",id:"DAMO-NLP-SG/multimodal_textbook"},{description:"A collection of datasets made for model fine-tuning.",id:"HuggingFaceM4/the_cauldron"},{description:"Screenshots of websites with their HTML/CSS codes.",id:"HuggingFaceM4/WebSight"}],demo:{inputs:[{filename:"image-text-to-text-input.png",type:"img"},{label:"Text Prompt",content:"Describe the position of the bee in detail.",type:"text"}],outputs:[{label:"Answer",content:"The bee is sitting on a pink flower, surrounded by other flowers. The bee is positioned in the center of the flower, with its head and front legs sticking out.",type:"text"}]},metrics:[],models:[{description:"Small and efficient yet powerful vision language model.",id:"HuggingFaceTB/SmolVLM-Instruct"},{description:"Cutting-edge reasoning vision language model.",id:"zai-org/GLM-4.5V"},{description:"Cutting-edge small vision language model to convert documents to text.",id:"rednote-hilab/dots.ocr"},{description:"Small yet powerful model.",id:"Qwen/Qwen2.5-VL-3B-Instruct"},{description:"Image-text-to-text model with agentic capabilities.",id:"microsoft/Magma-8B"}],spaces:[{description:"Leaderboard to evaluate vision language models.",id:"opencompass/open_vlm_leaderboard"},{description:"An application that compares object detection capabilities of different vision language models.",id:"sergiopaniego/vlm_object_understanding"},{description:"An application to compare different OCR models.",id:"prithivMLmods/Multimodal-OCR"}],summary:"Image-text-to-text models take in an image and text prompt and output text. These models are also called vision-language models, or VLMs. The difference from image-to-text models is that these models take an additional text input, not restricting the model to certain use cases like image captioning, and may also be trained to accept a conversation as input.",widgetModels:["zai-org/GLM-4.5V"],youtubeId:"IoGaGfU1CIg"}),A("image-text-to-image",{datasets:[],demo:{inputs:[{filename:"image-text-to-image-input.jpeg",type:"img"},{label:"Input",content:"A city above clouds, pastel colors, Victorian style",type:"text"}],outputs:[{filename:"image-text-to-image-output.png",type:"img"}]},metrics:[{description:"The Fr\xe9chet Inception Distance (FID) calculates the distance between distributions between synthetic and real samples. A lower FID score indicates better similarity between the distributions of real and generated images.",id:"FID"},{description:"CLIP Score measures the similarity between the generated image and the text prompt using CLIP embeddings. A higher score indicates better alignment with the text prompt.",id:"CLIP"}],models:[{description:"A powerful model for image-text-to-image generation.",id:"black-forest-labs/FLUX.2-dev"}],spaces:[{description:"An application for image-text-to-image generation.",id:"black-forest-labs/FLUX.2-dev"}],summary:"Image-text-to-image models take an image and a text prompt as input and generate a new image based on the reference image and text instructions. These models are useful for image editing, style transfer, image variations, and guided image generation tasks.",widgetModels:["black-forest-labs/FLUX.2-dev"],youtubeId:void 0}),A("image-text-to-video",{datasets:[],demo:{inputs:[{filename:"image-text-to-video-input.jpg",type:"img"},{label:"Input",content:"Darth Vader is surfing on the waves.",type:"text"}],outputs:[{filename:"image-text-to-video-output.gif",type:"img"}]},metrics:[{description:"Frechet Video Distance uses a model that captures coherence for changes in frames and the quality of each frame. A smaller score indicates better video generation.",id:"fvd"},{description:"CLIPSIM measures similarity between video frames and text using an image-text similarity model. A higher score indicates better video generation.",id:"clipsim"}],models:[{description:"A powerful model for image-text-to-video generation.",id:"Lightricks/LTX-Video"}],spaces:[{description:"An application for image-text-to-video generation.",id:"Lightricks/ltx-video-distilled"}],summary:"Image-text-to-video models take an reference image and a text instructions as and generate a video based on them. These models are useful for animating still images, creating dynamic content from static references, and generating videos with specific motion or transformation guidance.",widgetModels:["Lightricks/LTX-Video"],youtubeId:void 0}),A("image-to-text",{datasets:[{description:"Dataset from 12M image-text of Reddit",id:"red_caps"},{description:"Dataset from 3.3M images of Google",id:"datasets/conceptual_captions"}],demo:{inputs:[{filename:"savanna.jpg",type:"img"}],outputs:[{label:"Detailed description",content:"a herd of giraffes and zebras grazing in a field",type:"text"}]},metrics:[],models:[{description:"Strong OCR model.",id:"allenai/olmOCR-7B-0725"},{description:"Powerful image captioning model.",id:"fancyfeast/llama-joycaption-beta-one-hf-llava"}],spaces:[{description:"SVG generator app from images.",id:"multimodalart/OmniSVG-3B"},{description:"An application that converts documents to markdown.",id:"numind/NuMarkdown-8B-Thinking"},{description:"An application that can caption images.",id:"fancyfeast/joy-caption-beta-one"}],summary:"Image to text models output a text from a given image. Image captioning or optical character recognition can be considered as the most common applications of image to text.",widgetModels:["Salesforce/blip-image-captioning-large"],youtubeId:""}),A("image-to-video",{datasets:[{description:"A benchmark dataset for reference image controlled video generation.",id:"ali-vilab/VACE-Benchmark"},{description:"A dataset of video generation style preferences.",id:"Rapidata/sora-video-generation-style-likert-scoring"},{description:"A dataset with videos and captions throughout the videos.",id:"BestWishYsh/ChronoMagic"}],demo:{inputs:[{filename:"image-to-video-input.jpg",type:"img"},{label:"Optional Text Prompt",content:"This penguin is dancing",type:"text"}],outputs:[{filename:"image-to-video-output.gif",type:"img"}]},metrics:[{description:"Fr\xe9chet Video Distance (FVD) measures the perceptual similarity between the distributions of generated videos and a set of real videos, assessing overall visual quality and temporal coherence of the video generated from an input image.",id:"fvd"},{description:"CLIP Score measures the semantic similarity between a textual prompt (if provided alongside the input image) and the generated video frames. It evaluates how well the video's generated content and motion align with the textual description, conditioned on the initial image.",id:"clip_score"},{description:"First Frame Fidelity, often measured using LPIPS (Learned Perceptual Image Patch Similarity), PSNR, or SSIM, quantifies how closely the first frame of the generated video matches the input conditioning image.",id:"lpips"},{description:"Identity Preservation Score measures the consistency of identity (e.g., a person's face or a specific object's characteristics) between the input image and throughout the generated video frames, often calculated using features from specialized models like face recognition (e.g., ArcFace) or re-identification models.",id:"identity_preservation"},{description:"Motion Score evaluates the quality, realism, and temporal consistency of motion in the video generated from a static image. This can be based on optical flow analysis (e.g., smoothness, magnitude), consistency of object trajectories, or specific motion plausibility assessments.",id:"motion_score"}],models:[{description:"LTX-Video, a 13B parameter model for high quality video generation",id:"Lightricks/LTX-Video-0.9.7-dev"},{description:"A 14B parameter model for reference image controlled video generation",id:"Wan-AI/Wan2.1-VACE-14B"},{description:"An image-to-video generation model using FramePack F1 methodology with Hunyuan-DiT architecture",id:"lllyasviel/FramePack_F1_I2V_HY_20250503"},{description:"A distilled version of the LTX-Video-0.9.7-dev model for faster inference",id:"Lightricks/LTX-Video-0.9.7-distilled"},{description:"An image-to-video generation model by Skywork AI, 14B parameters, producing 720p videos.",id:"Skywork/SkyReels-V2-I2V-14B-720P"},{description:"Image-to-video variant of Tencent's HunyuanVideo.",id:"tencent/HunyuanVideo-I2V"},{description:"A 14B parameter model for 720p image-to-video generation by Wan-AI.",id:"Wan-AI/Wan2.1-I2V-14B-720P"},{description:"A Diffusers version of the Wan2.1-I2V-14B-720P model for 720p image-to-video generation.",id:"Wan-AI/Wan2.1-I2V-14B-720P-Diffusers"}],spaces:[{description:"An application to generate videos fast.",id:"Lightricks/ltx-video-distilled"},{description:"Generate videos with the FramePack-F1",id:"linoyts/FramePack-F1"},{description:"Generate videos with the FramePack",id:"lisonallen/framepack-i2v"},{description:"Wan2.1 with CausVid LoRA",id:"multimodalart/wan2-1-fast"},{description:"A demo for Stable Video Diffusion",id:"multimodalart/stable-video-diffusion"}],summary:"Image-to-video models take a still image as input and generate a video. These models can be guided by text prompts to influence the content and style of the output video.",widgetModels:[],youtubeId:void 0}),A("keypoint-detection",{datasets:[{description:"A dataset of hand keypoints of over 500k examples.",id:"Vincent-luo/hagrid-mediapipe-hands"}],demo:{inputs:[{filename:"keypoint-detection-input.png",type:"img"}],outputs:[{filename:"keypoint-detection-output.png",type:"img"}]},metrics:[],models:[{description:"A robust keypoint detection model.",id:"magic-leap-community/superpoint"},{description:"A robust keypoint matching model.",id:"magic-leap-community/superglue_outdoor"},{description:"Strong keypoint detection model used to detect human pose.",id:"qualcomm/RTMPose-Body2d"},{description:"Powerful keypoint matching model.",id:"ETH-CVG/lightglue_disk"}],spaces:[{description:"An application that detects hand keypoints in real-time.",id:"datasciencedojo/Hand-Keypoint-Detection-Realtime"},{description:"An application for keypoint detection and matching.",id:"ETH-CVG/LightGlue"}],summary:"Keypoint detection is the task of identifying meaningful distinctive points or features in an image.",widgetModels:[],youtubeId:""}),A("mask-generation",{datasets:[{description:"Widely used benchmark dataset for multiple Vision tasks.",id:"merve/coco2017"},{description:"Medical Imaging dataset of the Human Brain for segmentation and mask generating tasks",id:"rocky93/BraTS_segmentation"}],demo:{inputs:[{filename:"mask-generation-input.png",type:"img"}],outputs:[{filename:"mask-generation-output.png",type:"img"}]},metrics:[{description:"IoU is used to measure the overlap between predicted mask and the ground truth mask.",id:"Intersection over Union (IoU)"}],models:[{description:"Small yet powerful mask generation model.",id:"Zigeng/SlimSAM-uniform-50"},{description:"Very strong mask generation model.",id:"facebook/sam2-hiera-large"}],spaces:[{description:"An application that combines a mask generation model with a zero-shot object detection model for text-guided image segmentation.",id:"merve/OWLSAM2"},{description:"An application that compares the performance of a large and a small mask generation model.",id:"merve/slimsam"},{description:"An application based on an improved mask generation model.",id:"SkalskiP/segment-anything-model-2"},{description:"An application to remove objects from videos using mask generation models.",id:"SkalskiP/SAM_and_ProPainter"}],summary:"Mask generation is the task of generating masks that identify a specific object or region of interest in a given image. Masks are often used in segmentation tasks, where they provide a precise way to isolate the object of interest for further processing or analysis.",widgetModels:[],youtubeId:""}),A("object-detection",{datasets:[{description:"Widely used benchmark dataset for multiple vision tasks.",id:"merve/coco2017"},{description:"Multi-task computer vision benchmark.",id:"merve/pascal-voc"}],demo:{inputs:[{filename:"object-detection-input.jpg",type:"img"}],outputs:[{filename:"object-detection-output.jpg",type:"img"}]},metrics:[{description:"The Average Precision (AP) metric is the Area Under the PR Curve (AUC-PR). It is calculated for each class separately",id:"Average Precision"},{description:"The Mean Average Precision (mAP) metric is the overall average of the AP values",id:"Mean Average Precision"},{description:"The APα metric is the Average Precision at the IoU threshold of a α value, for example, AP50 and AP75",id:"APα"}],models:[{description:"Solid object detection model pre-trained on the COCO 2017 dataset.",id:"facebook/detr-resnet-50"},{description:"Accurate object detection model.",id:"IDEA-Research/dab-detr-resnet-50"},{description:"Fast and accurate object detection model.",id:"PekingU/rtdetr_v2_r50vd"},{description:"Object detection model for low-lying objects.",id:"StephanST/WALDO30"}],spaces:[{description:"Real-time object detection demo.",id:"Roboflow/RF-DETR"},{description:"An application that contains various object detection models to try from.",id:"Gradio-Blocks/Object-Detection-With-DETR-and-YOLOS"},{description:"A cutting-edge object detection application.",id:"sunsmarterjieleaf/yolov12"},{description:"An object tracking, segmentation and inpainting application.",id:"VIPLab/Track-Anything"},{description:"Very fast object tracking application based on object detection.",id:"merve/RT-DETR-tracking-coco"}],summary:"Object Detection models allow users to identify objects of certain defined classes. Object detection models receive an image as input and output the images with bounding boxes and labels on detected objects.",widgetModels:["facebook/detr-resnet-50"],youtubeId:"WdAeKSOpxhw"}),A("video-classification",g),A("question-answering",{datasets:[{description:"A famous question answering dataset based on English articles from Wikipedia.",id:"squad_v2"},{description:"A dataset of aggregated anonymized actual queries issued to the Google search engine.",id:"natural_questions"}],demo:{inputs:[{label:"Question",content:"Which name is also used to describe the Amazon rainforest in English?",type:"text"},{label:"Context",content:"The Amazon rainforest, also known in English as Amazonia or the Amazon Jungle",type:"text"}],outputs:[{label:"Answer",content:"Amazonia",type:"text"}]},metrics:[{description:"Exact Match is a metric based on the strict character match of the predicted answer and the right answer. For answers predicted correctly, the Exact Match will be 1. Even if only one character is different, Exact Match will be 0",id:"exact-match"},{description:" The F1-Score metric is useful if we value both false positives and false negatives equally. The F1-Score is calculated on each word in the predicted sequence against the correct answer",id:"f1"}],models:[{description:"A robust baseline model for most question answering domains.",id:"deepset/roberta-base-squad2"},{description:"Small yet robust model that can answer questions.",id:"distilbert/distilbert-base-cased-distilled-squad"},{description:"A special model that can answer questions from tables.",id:"google/tapas-base-finetuned-wtq"}],spaces:[{description:"An application that can answer a long question from Wikipedia.",id:"deepset/wikipedia-assistant"}],summary:"Question Answering models can retrieve the answer to a question from a given text, which is useful for searching for an answer in a document. Some question answering models can generate answers without context!",widgetModels:["deepset/roberta-base-squad2"],youtubeId:"ajPx5LwJD-I"}),A("reinforcement-learning",{datasets:[{description:"A curation of widely used datasets for Data Driven Deep Reinforcement Learning (D4RL)",id:"edbeeching/decision_transformer_gym_replay"}],demo:{inputs:[{label:"State",content:"Red traffic light, pedestrians are about to pass.",type:"text"}],outputs:[{label:"Action",content:"Stop the car.",type:"text"},{label:"Next State",content:"Yellow light, pedestrians have crossed.",type:"text"}]},metrics:[{description:"Accumulated reward across all time steps discounted by a factor that ranges between 0 and 1 and determines how much the agent optimizes for future relative to immediate rewards. Measures how good is the policy ultimately found by a given algorithm considering uncertainty over the future.",id:"Discounted Total Reward"},{description:"Average return obtained after running the policy for a certain number of evaluation episodes. As opposed to total reward, mean reward considers how much reward a given algorithm receives while learning.",id:"Mean Reward"},{description:"Measures how good a given algorithm is after a predefined time. Some algorithms may be guaranteed to converge to optimal behavior across many time steps. However, an agent that reaches an acceptable level of optimality after a given time horizon may be preferable to one that ultimately reaches optimality but takes a long time.",id:"Level of Performance After Some Time"}],models:[{description:"A Reinforcement Learning model trained on expert data from the Gym Hopper environment",id:"edbeeching/decision-transformer-gym-hopper-expert"},{description:"A PPO agent playing seals/CartPole-v0 using the stable-baselines3 library and the RL Zoo.",id:"HumanCompatibleAI/ppo-seals-CartPole-v0"}],spaces:[{description:"An application for a cute puppy agent learning to catch a stick.",id:"ThomasSimonini/Huggy"},{description:"An application to play Snowball Fight with a reinforcement learning agent.",id:"ThomasSimonini/SnowballFight"}],summary:"Reinforcement learning is the computational approach of learning from action by interacting with an environment through trial and error and receiving rewards (negative or positive) as feedback",widgetModels:[],youtubeId:"q0BiUn5LiBc"}),A("sentence-similarity",u),A("summarization",{canonicalId:"text-generation",datasets:[{description:"News articles in five different languages along with their summaries. Widely used for benchmarking multilingual summarization models.",id:"mlsum"},{description:"English conversations and their summaries. Useful for benchmarking conversational agents.",id:"samsum"}],demo:{inputs:[{label:"Input",content:"The tower is 324 metres (1,063 ft) tall, about the same height as an 81-storey building, and the tallest structure in Paris. Its base is square, measuring 125 metres (410 ft) on each side. It was the first structure to reach a height of 300 metres. Excluding transmitters, the Eiffel Tower is the second tallest free-standing structure in France after the Millau Viaduct.",type:"text"}],outputs:[{label:"Output",content:"The tower is 324 metres (1,063 ft) tall, about the same height as an 81-storey building. It was the first structure to reach a height of 300 metres.",type:"text"}]},metrics:[{description:"The generated sequence is compared against its summary, and the overlap of tokens are counted. ROUGE-N refers to overlap of N subsequent tokens, ROUGE-1 refers to overlap of single tokens and ROUGE-2 is the overlap of two subsequent tokens.",id:"rouge"}],models:[{description:"A strong summarization model trained on English news articles. Excels at generating factual summaries.",id:"facebook/bart-large-cnn"},{description:"A summarization model trained on medical articles.",id:"Falconsai/medical_summarization"}],spaces:[{description:"An application that can summarize long paragraphs.",id:"pszemraj/summarize-long-text"},{description:"A much needed summarization application for terms and conditions.",id:"ml6team/distilbart-tos-summarizer-tosdr"},{description:"An application that summarizes long documents.",id:"pszemraj/document-summarization"},{description:"An application that can detect errors in abstractive summarization.",id:"ml6team/post-processing-summarization"}],summary:"Summarization is the task of producing a shorter version of a document while preserving its important information. Some models can extract text from the original input, while other models can generate entirely new text.",widgetModels:["facebook/bart-large-cnn"],youtubeId:"yHnr5Dk2zCI"}),A("table-question-answering",c),A("tabular-classification",d),A("tabular-regression",h),A("text-classification",f),A("text-generation",{datasets:[{description:"Multilingual dataset used to evaluate text generation models.",id:"CohereForAI/Global-MMLU"},{description:"High quality multilingual data used to train text-generation models.",id:"HuggingFaceFW/fineweb-2"},{description:"Truly open-source, curated and cleaned dialogue dataset.",id:"HuggingFaceH4/ultrachat_200k"},{description:"A reasoning dataset.",id:"open-r1/OpenThoughts-114k-math"},{description:"A multilingual instruction dataset with preference ratings on responses.",id:"allenai/tulu-3-sft-mixture"},{description:"A large synthetic dataset for alignment of text generation models.",id:"HuggingFaceTB/smoltalk"},{description:"A dataset made for training text generation models solving math questions.",id:"HuggingFaceTB/finemath"}],demo:{inputs:[{label:"Input",content:"Once upon a time,",type:"text"}],outputs:[{label:"Output",content:"Once upon a time, we knew that our ancestors were on the verge of extinction. The great explorers and poets of the Old World, from Alexander the Great to Chaucer, are dead and gone. A good many of our ancient explorers and poets have",type:"text"}]},metrics:[{description:"Cross Entropy is a metric that calculates the difference between two probability distributions. Each probability distribution is the distribution of predicted words",id:"Cross Entropy"},{description:"The Perplexity metric is the exponential of the cross-entropy loss. It evaluates the probabilities assigned to the next word by the model. Lower perplexity indicates better performance",id:"Perplexity"}],models:[{description:"A text-generation model trained to follow instructions.",id:"google/gemma-2-2b-it"},{description:"Powerful text generation model for coding.",id:"Qwen/Qwen3-Coder-480B-A35B-Instruct"},{description:"Great text generation model with top-notch tool calling capabilities.",id:"openai/gpt-oss-120b"},{description:"Powerful text generation model.",id:"zai-org/GLM-4.5"},{description:"A powerful small model with reasoning capabilities.",id:"Qwen/Qwen3-4B-Thinking-2507"},{description:"Strong conversational model that supports very long instructions.",id:"Qwen/Qwen2.5-7B-Instruct-1M"},{description:"Text generation model used to write code.",id:"Qwen/Qwen2.5-Coder-32B-Instruct"},{description:"Powerful reasoning based open large language model.",id:"deepseek-ai/DeepSeek-R1"}],spaces:[{description:"An application that writes and executes code from text instructions and supports many models.",id:"akhaliq/anycoder"},{description:"An application that builds websites from natural language prompts.",id:"enzostvs/deepsite"},{description:"A leaderboard for comparing chain-of-thought performance of models.",id:"logikon/open_cot_leaderboard"},{description:"An text generation based application based on a very powerful LLaMA2 model.",id:"ysharma/Explore_llamav2_with_TGI"},{description:"An text generation based application to converse with Zephyr model.",id:"HuggingFaceH4/zephyr-chat"},{description:"A leaderboard that ranks text generation models based on blind votes from people.",id:"lmsys/chatbot-arena-leaderboard"},{description:"An chatbot to converse with a very powerful text generation model.",id:"mlabonne/phixtral-chat"}],summary:"Generating text is the task of generating new text given another text. These models can, for example, fill in incomplete text or paraphrase.",widgetModels:["mistralai/Mistral-Nemo-Instruct-2407"],youtubeId:"e9gNEAlsOvU"}),A("text-ranking",y),A("text-to-image",{datasets:[{description:"RedCaps is a large-scale dataset of 12M image-text pairs collected from Reddit.",id:"red_caps"},{description:"Conceptual Captions is a dataset consisting of ~3.3M images annotated with captions.",id:"conceptual_captions"},{description:"12M image-caption pairs.",id:"Spawning/PD12M"}],demo:{inputs:[{label:"Input",content:"A city above clouds, pastel colors, Victorian style",type:"text"}],outputs:[{filename:"image.jpeg",type:"img"}]},metrics:[{description:"The Inception Score (IS) measure assesses diversity and meaningfulness. It uses a generated image sample to predict its label. A higher score signifies more diverse and meaningful images.",id:"IS"},{description:"The Fr\xe9chet Inception Distance (FID) calculates the distance between distributions between synthetic and real samples. A lower FID score indicates better similarity between the distributions of real and generated images.",id:"FID"},{description:"R-precision assesses how the generated image aligns with the provided text description. It uses the generated images as queries to retrieve relevant text descriptions. The top 'r' relevant descriptions are selected and used to calculate R-precision as r/R, where 'R' is the number of ground truth descriptions associated with the generated images. A higher R-precision value indicates a better model.",id:"R-Precision"}],models:[{description:"One of the most powerful image generation models that can generate realistic outputs.",id:"black-forest-labs/FLUX.1-Krea-dev"},{description:"A powerful image generation model.",id:"Qwen/Qwen-Image"},{description:"Powerful and fast image generation model.",id:"ByteDance/SDXL-Lightning"},{description:"A powerful text-to-image model.",id:"ByteDance/Hyper-SD"}],spaces:[{description:"A powerful text-to-image application.",id:"stabilityai/stable-diffusion-3-medium"},{description:"A text-to-image application to generate comics.",id:"jbilcke-hf/ai-comic-factory"},{description:"An application to match multiple custom image generation models.",id:"multimodalart/flux-lora-lab"},{description:"A powerful yet very fast image generation application.",id:"latent-consistency/lcm-lora-for-sdxl"},{description:"A gallery to explore various text-to-image models.",id:"multimodalart/LoraTheExplorer"},{description:"An application for `text-to-image`, `image-to-image` and image inpainting.",id:"ArtGAN/Stable-Diffusion-ControlNet-WebUI"},{description:"An application to generate realistic images given photos of a person and a prompt.",id:"InstantX/InstantID"}],summary:"Text-to-image is the task of generating images from input text. These pipelines can also be used to modify and edit images based on text prompts.",widgetModels:["black-forest-labs/FLUX.1-dev"],youtubeId:""}),A("text-to-speech",{canonicalId:"text-to-audio",datasets:[{description:"10K hours of multi-speaker English dataset.",id:"parler-tts/mls_eng_10k"},{description:"Multi-speaker English dataset.",id:"mythicinfinity/libritts_r"},{description:"Multi-lingual dataset.",id:"facebook/multilingual_librispeech"}],demo:{inputs:[{label:"Input",content:"I love audio models on the Hub!",type:"text"}],outputs:[{filename:"audio.wav",type:"audio"}]},metrics:[{description:"The Mel Cepstral Distortion (MCD) metric is used to calculate the quality of generated speech.",id:"mel cepstral distortion"}],models:[{description:"Small yet powerful TTS model.",id:"KittenML/kitten-tts-nano-0.1"},{description:"Bleeding edge TTS model.",id:"ResembleAI/chatterbox"},{description:"A massively multi-lingual TTS model.",id:"fishaudio/fish-speech-1.5"},{description:"A text-to-dialogue model.",id:"nari-labs/Dia-1.6B-0626"}],spaces:[{description:"An application for generate high quality speech in different languages.",id:"hexgrad/Kokoro-TTS"},{description:"A multilingual text-to-speech application.",id:"fishaudio/fish-speech-1"},{description:"Performant TTS application.",id:"ResembleAI/Chatterbox"},{description:"An application to compare different TTS models.",id:"TTS-AGI/TTS-Arena-V2"},{description:"An application that generates podcast episodes.",id:"ngxson/kokoro-podcast-generator"}],summary:"Text-to-Speech (TTS) is the task of generating natural sounding speech given text input. TTS models can be extended to have a single model that generates speech for multiple speakers and multiple languages.",widgetModels:["suno/bark"],youtubeId:"NW62DpzJ274"}),A("text-to-video",{datasets:[{description:"Microsoft Research Video to Text is a large-scale dataset for open domain video captioning",id:"iejMac/CLIP-MSR-VTT"},{description:"UCF101 Human Actions dataset consists of 13,320 video clips from YouTube, with 101 classes.",id:"quchenyuan/UCF101-ZIP"},{description:"A high-quality dataset for human action recognition in YouTube videos.",id:"nateraw/kinetics"},{description:"A dataset of video clips of humans performing pre-defined basic actions with everyday objects.",id:"HuggingFaceM4/something_something_v2"},{description:"This dataset consists of text-video pairs and contains noisy samples with irrelevant video descriptions",id:"HuggingFaceM4/webvid"},{description:"A dataset of short Flickr videos for the temporal localization of events with descriptions.",id:"iejMac/CLIP-DiDeMo"}],demo:{inputs:[{label:"Input",content:"Darth Vader is surfing on the waves.",type:"text"}],outputs:[{filename:"text-to-video-output.gif",type:"img"}]},metrics:[{description:"Inception Score uses an image classification model that predicts class labels and evaluates how distinct and diverse the images are. A higher score indicates better video generation.",id:"is"},{description:"Frechet Inception Distance uses an image classification model to obtain image embeddings. The metric compares mean and standard deviation of the embeddings of real and generated images. A smaller score indicates better video generation.",id:"fid"},{description:"Frechet Video Distance uses a model that captures coherence for changes in frames and the quality of each frame. A smaller score indicates better video generation.",id:"fvd"},{description:"CLIPSIM measures similarity between video frames and text using an image-text similarity model. A higher score indicates better video generation.",id:"clipsim"}],models:[{description:"A strong model for consistent video generation.",id:"tencent/HunyuanVideo"},{description:"A text-to-video model with high fidelity motion and strong prompt adherence.",id:"Lightricks/LTX-Video"},{description:"A text-to-video model focusing on physics-aware applications like robotics.",id:"nvidia/Cosmos-1.0-Diffusion-7B-Text2World"},{description:"Very fast model for video generation.",id:"Lightricks/LTX-Video-0.9.8-13B-distilled"}],spaces:[{description:"An application that generates video from text.",id:"VideoCrafter/VideoCrafter"},{description:"Consistent video generation application.",id:"Wan-AI/Wan2.1"},{description:"A cutting edge video generation application.",id:"Pyramid-Flow/pyramid-flow"}],summary:"Text-to-video models can be used in any application that requires generating consistent sequence of images from text. ",widgetModels:["Wan-AI/Wan2.2-TI2V-5B"],youtubeId:void 0}),A("token-classification",m),A("translation",{canonicalId:"text-generation",datasets:[{description:"A dataset of copyright-free books translated into 16 different languages.",id:"Helsinki-NLP/opus_books"},{description:"An example of translation between programming languages. This dataset consists of functions in Java and C#.",id:"google/code_x_glue_cc_code_to_code_trans"}],demo:{inputs:[{label:"Input",content:"My name is Omar and I live in Z\xfcrich.",type:"text"}],outputs:[{label:"Output",content:"Mein Name ist Omar und ich wohne in Z\xfcrich.",type:"text"}]},metrics:[{description:"BLEU score is calculated by counting the number of shared single or subsequent tokens between the generated sequence and the reference. Subsequent n tokens are called “n-grams”. Unigram refers to a single token while bi-gram refers to token pairs and n-grams refer to n subsequent tokens. The score ranges from 0 to 1, where 1 means the translation perfectly matched and 0 did not match at all",id:"bleu"},{description:"",id:"sacrebleu"}],models:[{description:"Very powerful model that can translate many languages between each other, especially low-resource languages.",id:"facebook/nllb-200-1.3B"},{description:"A general-purpose Transformer that can be used to translate from English to German, French, or Romanian.",id:"google-t5/t5-base"}],spaces:[{description:"An application that can translate between 100 languages.",id:"Iker/Translate-100-languages"},{description:"An application that can translate between many languages.",id:"Geonmo/nllb-translation-demo"}],summary:"Translation is the task of converting text from one language to another.",widgetModels:["facebook/mbart-large-50-many-to-many-mmt"],youtubeId:"1JvfrvZgi6c"}),A("unconditional-image-generation",{datasets:[{description:"The CIFAR-100 dataset consists of 60000 32x32 colour images in 100 classes, with 600 images per class.",id:"cifar100"},{description:"Multiple images of celebrities, used for facial expression translation.",id:"CelebA"}],demo:{inputs:[{label:"Seed",content:"42",type:"text"},{label:"Number of images to generate:",content:"4",type:"text"}],outputs:[{filename:"unconditional-image-generation-output.jpeg",type:"img"}]},metrics:[{description:"The inception score (IS) evaluates the quality of generated images. It measures the diversity of the generated images (the model predictions are evenly distributed across all possible labels) and their 'distinction' or 'sharpness' (the model confidently predicts a single label for each image).",id:"Inception score (IS)"},{description:"The Fr\xe9chet Inception Distance (FID) evaluates the quality of images created by a generative model by calculating the distance between feature vectors for real and generated images.",id:"Frećhet Inception Distance (FID)"}],models:[{description:"High-quality image generation model trained on the CIFAR-10 dataset. It synthesizes images of the ten classes presented in the dataset using diffusion probabilistic models, a class of latent variable models inspired by considerations from nonequilibrium thermodynamics.",id:"google/ddpm-cifar10-32"},{description:"High-quality image generation model trained on the 256x256 CelebA-HQ dataset. It synthesizes images of faces using diffusion probabilistic models, a class of latent variable models inspired by considerations from nonequilibrium thermodynamics.",id:"google/ddpm-celebahq-256"}],spaces:[{description:"An application that can generate realistic faces.",id:"CompVis/celeba-latent-diffusion"}],summary:"Unconditional image generation is the task of generating images with no condition in any context (like a prompt text or another image). Once trained, the model will create images that resemble its training data distribution.",widgetModels:[""],youtubeId:""}),A("video-text-to-text",{datasets:[{description:"Multiple-choice questions and answers about videos.",id:"lmms-lab/Video-MME"},{description:"A dataset of instructions and question-answer pairs about videos.",id:"lmms-lab/VideoChatGPT"},{description:"Large video understanding dataset.",id:"HuggingFaceFV/finevideo"}],demo:{inputs:[{filename:"video-text-to-text-input.gif",type:"img"},{label:"Text Prompt",content:"What is happening in this video?",type:"text"}],outputs:[{label:"Answer",content:"The video shows a series of images showing a fountain with water jets and a variety of colorful flowers and butterflies in the background.",type:"text"}]},metrics:[],models:[{description:"A robust video-text-to-text model.",id:"Vision-CAIR/LongVU_Qwen2_7B"},{description:"Strong video-text-to-text model with reasoning capabilities.",id:"GoodiesHere/Apollo-LMMs-Apollo-7B-t32"},{description:"Strong video-text-to-text model.",id:"HuggingFaceTB/SmolVLM2-2.2B-Instruct"}],spaces:[{description:"An application to chat with a video-text-to-text model.",id:"llava-hf/video-llava"},{description:"A leaderboard for various video-text-to-text models.",id:"opencompass/openvlm_video_leaderboard"},{description:"An application to generate highlights from a video.",id:"HuggingFaceTB/SmolVLM2-HighlightGenerator"}],summary:"Video-text-to-text models take in a video and a text prompt and output text. These models are also called video-language models.",widgetModels:[""],youtubeId:""}),A("video-to-video",{datasets:[{description:"Dataset with detailed annotations for training and benchmarking video instance editing.",id:"suimu/VIRESET"},{description:"Dataset to evaluate models on long video generation and understanding.",id:"zhangsh2001/LongV-EVAL"},{description:"Collection of 104 demo videos from the SeedVR/SeedVR2 series showcasing model outputs.",id:"Iceclear/SeedVR_VideoDemos"}],demo:{inputs:[{filename:"input.gif",type:"img"}],outputs:[{filename:"output.gif",type:"img"}]},metrics:[],models:[{description:"Model for editing outfits, character, and scenery in videos.",id:"decart-ai/Lucy-Edit-Dev"},{description:"Framework that uses 3D mesh proxies for precise, consistent video editing.",id:"LeoLau/Shape-for-Motion"},{description:"Model for generating physics-aware videos from input videos and control conditions.",id:"nvidia/Cosmos-Transfer2.5-2B"},{description:"A model to upscale videos at input, designed for seamless use with ComfyUI.",id:"numz/SeedVR2_comfyUI"}],spaces:[{description:"Interactive demo space for Lucy-Edit-Dev video editing.",id:"decart-ai/lucy-edit-dev"},{description:"Demo space for SeedVR2-3B showcasing video upscaling and restoration.",id:"ByteDance-Seed/SeedVR2-3B"}],summary:"Video-to-video models take one or more videos as input and generate new videos as output. They can enhance quality, interpolate frames, modify styles, or create new motion dynamics, enabling creative applications, video production, and research.",widgetModels:[],youtubeId:""}),A("visual-question-answering",b),A("zero-shot-classification",x),A("zero-shot-image-classification",S),A("zero-shot-object-detection",{datasets:[],demo:{inputs:[{filename:"zero-shot-object-detection-input.jpg",type:"img"},{label:"Classes",content:"cat, dog, bird",type:"text"}],outputs:[{filename:"zero-shot-object-detection-output.jpg",type:"img"}]},metrics:[{description:"The Average Precision (AP) metric is the Area Under the PR Curve (AUC-PR). It is calculated for each class separately",id:"Average Precision"},{description:"The Mean Average Precision (mAP) metric is the overall average of the AP values",id:"Mean Average Precision"},{description:"The APα metric is the Average Precision at the IoU threshold of a α value, for example, AP50 and AP75",id:"APα"}],models:[{description:"Solid zero-shot object detection model.",id:"openmmlab-community/mm_grounding_dino_large_all"},{description:"Cutting-edge zero-shot object detection model.",id:"fushh7/LLMDet"}],spaces:[{description:"A demo to compare different zero-shot object detection models per output and latency.",id:"ariG23498/zero-shot-od"},{description:"A demo that combines a zero-shot object detection and mask generation model for zero-shot segmentation.",id:"merve/OWLSAM"}],summary:"Zero-shot object detection is a computer vision task to detect objects and their classes in images, without any prior training or knowledge of the classes. Zero-shot object detection models receive an image as input, as well as a list of candidate classes, and output the bounding boxes and labels where the objects have been detected.",widgetModels:[],youtubeId:""}),A("text-to-3d",{datasets:[{description:"A large dataset of over 10 million 3D objects.",id:"allenai/objaverse-xl"},{description:"Descriptive captions for 3D objects in Objaverse.",id:"tiange/Cap3D"}],demo:{inputs:[{label:"Prompt",content:"a cat statue",type:"text"}],outputs:[{label:"Result",content:"text-to-3d-3d-output-filename.glb",type:"text"}]},metrics:[],models:[{description:"Text-to-3D mesh model by OpenAI",id:"openai/shap-e"},{description:"Generative 3D gaussian splatting model.",id:"ashawkey/LGM"}],spaces:[{description:"Text-to-3D demo with mesh outputs.",id:"hysts/Shap-E"},{description:"Text/image-to-3D demo with splat outputs.",id:"ashawkey/LGM"}],summary:"Text-to-3D models take in text input and produce 3D output.",widgetModels:[],youtubeId:""}),A("image-to-3d",{datasets:[{description:"A large dataset of over 10 million 3D objects.",id:"allenai/objaverse-xl"},{description:"A dataset of isolated object images for evaluating image-to-3D models.",id:"dylanebert/iso3d"}],demo:{inputs:[{filename:"image-to-3d-image-input.png",type:"img"}],outputs:[{label:"Result",content:"image-to-3d-3d-output-filename.glb",type:"text"}]},metrics:[],models:[{description:"Fast image-to-3D mesh model by Tencent.",id:"TencentARC/InstantMesh"},{description:"3D world generation model.",id:"tencent/HunyuanWorld-1"},{description:"A scaled up image-to-3D mesh model derived from TripoSR.",id:"hwjiang/Real3D"},{description:"Consistent image-to-3d generation model.",id:"stabilityai/stable-point-aware-3d"}],spaces:[{description:"Leaderboard to evaluate image-to-3D models.",id:"dylanebert/3d-arena"},{description:"Image-to-3D demo with mesh outputs.",id:"TencentARC/InstantMesh"},{description:"Image-to-3D demo.",id:"stabilityai/stable-point-aware-3d"},{description:"Image-to-3D demo with mesh outputs.",id:"hwjiang/Real3D"},{description:"Image-to-3D demo with splat outputs.",id:"dylanebert/LGM-mini"}],summary:"Image-to-3D models take in image input and produce 3D output.",widgetModels:[],youtubeId:""});let P=["audio-classification","automatic-speech-recognition","depth-estimation","document-question-answering","feature-extraction","fill-mask","image-classification","image-feature-extraction","image-segmentation","image-to-image","image-to-text","image-text-to-text","mask-generation","object-detection","question-answering","summarization","table-question-answering","text-classification","text-generation","text-to-audio","text-to-speech","token-classification","translation","video-classification","visual-question-answering","zero-shot-classification","zero-shot-image-classification","zero-shot-object-detection"],v=e=>e.tags.includes("conversational")?"text-generation"===e.pipeline_tag?[{role:"user",content:"What is the capital of France?"}]:[{role:"user",content:[{type:"text",text:"Describe this image in one sentence."},{type:"image_url",image_url:{url:"https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg"}}]}]:'"Can you please let us know more details about your "',D=()=>'\'{"Height":[11.52,12.48],"Length1":[23.2,24.0],"Length2":[25.4,26.3],"Species": ["Bream","Bream"]}\'',C={"audio-to-audio":()=>'"sample1.flac"',"audio-classification":()=>'"sample1.flac"',"automatic-speech-recognition":()=>'"sample1.flac"',"document-question-answering":()=>`{
31
+ "image": "cat.png",
32
+ "question": "What is in this image?"
33
+ }`,"feature-extraction":()=>'"Today is a sunny day and I will get some ice cream."',"fill-mask":e=>`"The answer to the universe is ${e.mask_token}."`,"image-classification":()=>'"cats.jpg"',"image-to-text":()=>'"cats.jpg"',"image-to-image":()=>`{
34
+ "image": "cat.png",
35
+ "prompt": "Turn the cat into a tiger."
36
+ }`,"image-to-video":()=>`{
37
+ "image": "cat.png",
38
+ "prompt": "The cat starts to dance"
39
+ }`,"image-text-to-image":()=>`{
40
+ "image": "cat.png",
41
+ "prompt": "Turn the cat into a tiger."
42
+ }`,"image-text-to-video":()=>`{
43
+ "image": "cat.png",
44
+ "prompt": "The cat starts to dance"
45
+ }`,"image-segmentation":()=>'"cats.jpg"',"object-detection":()=>'"cats.jpg"',"question-answering":()=>`{
46
+ "question": "What is my name?",
47
+ "context": "My name is Clara and I live in Berkeley."
48
+ }`,"sentence-similarity":()=>`{
49
+ "source_sentence": "That is a happy person",
50
+ "sentences": [
51
+ "That is a happy dog",
52
+ "That is a very happy person",
53
+ "Today is a sunny day"
54
+ ]
55
+ }`,summarization:()=>'"The tower is 324 metres (1,063 ft) tall, about the same height as an 81-storey building, and the tallest structure in Paris. Its base is square, measuring 125 metres (410 ft) on each side. During its construction, the Eiffel Tower surpassed the Washington Monument to become the tallest man-made structure in the world, a title it held for 41 years until the Chrysler Building in New York City was finished in 1930. It was the first structure to reach a height of 300 metres. Due to the addition of a broadcasting aerial at the top of the tower in 1957, it is now taller than the Chrysler Building by 5.2 metres (17 ft). Excluding transmitters, the Eiffel Tower is the second tallest free-standing structure in France after the Millau Viaduct."',"table-question-answering":()=>`{
56
+ "query": "How many stars does the transformers repository have?",
57
+ "table": {
58
+ "Repository": ["Transformers", "Datasets", "Tokenizers"],
59
+ "Stars": ["36542", "4512", "3934"],
60
+ "Contributors": ["651", "77", "34"],
61
+ "Programming language": [
62
+ "Python",
63
+ "Python",
64
+ "Rust, Python and NodeJS"
65
+ ]
66
+ }
67
+ }`,"tabular-regression":D,"tabular-classification":D,"text-classification":()=>'"I like you. I love you"',"text-generation":v,"image-text-to-text":v,"text-to-image":()=>'"Astronaut riding a horse"',"text-to-video":()=>'"A young man walking on the street"',"text-to-speech":()=>'"The answer to the universe is 42"',"text-to-audio":()=>'"liquid drum and bass, atmospheric synths, airy sounds"',"token-classification":()=>'"My name is Sarah Jessica Parker but you can call me Jessica"',translation:()=>'"Меня зовут Вольфганг и я живу в Берлине"',"zero-shot-classification":()=>'"Hi, I recently bought a device from your company but it is not working as advertised and I would like to get reimbursed!"',"zero-shot-image-classification":()=>'"cats.jpg"'},w="custom_code";function _(e){let t=e.split("/");return 1===t.length?t[0]:t[1]}function I(e){return e.cardData?.base_model?.toString()??"fill-in-base-model"}function k(e){let t=e.widgetData?.[0]?.text??e.cardData?.instance_prompt;if(t)return JSON.stringify(t).slice(1,-1)}let N="Astronaut in a jungle, cold color palette, muted colors, detailed, 8k",O="Turn this cat into a dog",F="A man with short gray hair plays a red electric guitar.",L=e=>{let t;if(e.tags.includes("StableDiffusionInpaintPipeline")||e.tags.includes("StableDiffusionXLInpaintPipeline"))t=[`import torch
68
+ from diffusers import AutoPipelineForInpainting
69
+ from diffusers.utils import load_image
70
+
71
+ # switch to "mps" for apple devices
72
+ pipe = AutoPipelineForInpainting.from_pretrained("${e.id}", dtype=torch.float16, variant="fp16", device_map="cuda")
73
+
74
+ img_url = "https://raw.githubusercontent.com/CompVis/latent-diffusion/main/data/inpainting_examples/overture-creations-5sI6fQgYIuo.png"
75
+ mask_url = "https://raw.githubusercontent.com/CompVis/latent-diffusion/main/data/inpainting_examples/overture-creations-5sI6fQgYIuo_mask.png"
76
+
77
+ image = load_image(img_url).resize((1024, 1024))
78
+ mask_image = load_image(mask_url).resize((1024, 1024))
79
+
80
+ prompt = "a tiger sitting on a park bench"
81
+ generator = torch.Generator(device="cuda").manual_seed(0)
82
+
83
+ image = pipe(
84
+ prompt=prompt,
85
+ image=image,
86
+ mask_image=mask_image,
87
+ guidance_scale=8.0,
88
+ num_inference_steps=20, # steps between 15 and 30 work well for us
89
+ strength=0.99, # make sure to use \`strength\` below 1.0
90
+ generator=generator,
91
+ ).images[0]`];else if(e.tags.includes("controlnet"))t=[`from diffusers import ControlNetModel, StableDiffusionControlNetPipeline
92
+
93
+ controlnet = ControlNetModel.from_pretrained("${e.id}")
94
+ pipe = StableDiffusionControlNetPipeline.from_pretrained(
95
+ "${I(e)}", controlnet=controlnet
96
+ )`];else if(e.tags.includes("lora"))if("image-to-image"===e.pipeline_tag)t=[`import torch
97
+ from diffusers import DiffusionPipeline
98
+ from diffusers.utils import load_image
99
+
100
+ # switch to "mps" for apple devices
101
+ pipe = DiffusionPipeline.from_pretrained("${I(e)}", dtype=torch.bfloat16, device_map="cuda")
102
+ pipe.load_lora_weights("${e.id}")
103
+
104
+ prompt = "${k(e)??O}"
105
+ input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png")
106
+
107
+ image = pipe(image=input_image, prompt=prompt).images[0]`];else if("image-to-video"===e.pipeline_tag)t=[`import torch
108
+ from diffusers import DiffusionPipeline
109
+ from diffusers.utils import load_image, export_to_video
110
+
111
+ # switch to "mps" for apple devices
112
+ pipe = DiffusionPipeline.from_pretrained("${I(e)}", dtype=torch.bfloat16, device_map="cuda")
113
+ pipe.load_lora_weights("${e.id}")
114
+
115
+ prompt = "${k(e)??F}"
116
+ input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png")
117
+
118
+ image = pipe(image=input_image, prompt=prompt).frames[0]
119
+ export_to_video(output, "output.mp4")`];else if("text-to-video"===e.pipeline_tag)t=[`import torch
120
+ from diffusers import DiffusionPipeline
121
+ from diffusers.utils import export_to_video
122
+
123
+ # switch to "mps" for apple devices
124
+ pipe = DiffusionPipeline.from_pretrained("${I(e)}", dtype=torch.bfloat16, device_map="cuda")
125
+ pipe.load_lora_weights("${e.id}")
126
+
127
+ prompt = "${k(e)??F}"
128
+
129
+ output = pipe(prompt=prompt).frames[0]
130
+ export_to_video(output, "output.mp4")`];else t=[`import torch
131
+ from diffusers import DiffusionPipeline
132
+
133
+ # switch to "mps" for apple devices
134
+ pipe = DiffusionPipeline.from_pretrained("${I(e)}", dtype=torch.bfloat16, device_map="cuda")
135
+ pipe.load_lora_weights("${e.id}")
136
+
137
+ prompt = "${k(e)??N}"
138
+ image = pipe(prompt).images[0]`];else if(e.tags.includes("textual_inversion"))t=[`import torch
139
+ from diffusers import DiffusionPipeline
140
+
141
+ # switch to "mps" for apple devices
142
+ pipe = DiffusionPipeline.from_pretrained("${I(e)}", dtype=torch.bfloat16, device_map="cuda")
143
+ pipe.load_textual_inversion("${e.id}")`];else if(e.tags.includes("FluxFillPipeline"))t=[`import torch
144
+ from diffusers import FluxFillPipeline
145
+ from diffusers.utils import load_image
146
+
147
+ image = load_image("https://huggingface.co/datasets/diffusers/diffusers-images-docs/resolve/main/cup.png")
148
+ mask = load_image("https://huggingface.co/datasets/diffusers/diffusers-images-docs/resolve/main/cup_mask.png")
149
+
150
+ # switch to "mps" for apple devices
151
+ pipe = FluxFillPipeline.from_pretrained("${e.id}", dtype=torch.bfloat16, device_map="cuda")
152
+ image = pipe(
153
+ prompt="a white paper cup",
154
+ image=image,
155
+ mask_image=mask,
156
+ height=1632,
157
+ width=1232,
158
+ guidance_scale=30,
159
+ num_inference_steps=50,
160
+ max_sequence_length=512,
161
+ generator=torch.Generator("cpu").manual_seed(0)
162
+ ).images[0]
163
+ image.save(f"flux-fill-dev.png")`];else if("image-to-video"===e.pipeline_tag)t=[`import torch
164
+ from diffusers import DiffusionPipeline
165
+ from diffusers.utils import load_image, export_to_video
166
+
167
+ # switch to "mps" for apple devices
168
+ pipe = DiffusionPipeline.from_pretrained("${e.id}", dtype=torch.bfloat16, device_map="cuda")
169
+ pipe.to("cuda")
170
+
171
+ prompt = "${k(e)??F}"
172
+ image = load_image(
173
+ "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png"
174
+ )
175
+
176
+ output = pipe(image=image, prompt=prompt).frames[0]
177
+ export_to_video(output, "output.mp4")`];else if("image-to-image"===e.pipeline_tag)t=[`import torch
178
+ from diffusers import DiffusionPipeline
179
+ from diffusers.utils import load_image
180
+
181
+ # switch to "mps" for apple devices
182
+ pipe = DiffusionPipeline.from_pretrained("${e.id}", dtype=torch.bfloat16, device_map="cuda")
183
+
184
+ prompt = "${k(e)??O}"
185
+ input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png")
186
+
187
+ image = pipe(image=input_image, prompt=prompt).images[0]`];else t=[`import torch
188
+ from diffusers import DiffusionPipeline
189
+
190
+ # switch to "mps" for apple devices
191
+ pipe = DiffusionPipeline.from_pretrained("${e.id}", dtype=torch.bfloat16, device_map="cuda")
192
+
193
+ prompt = "${k(e)??N}"
194
+ image = pipe(prompt).images[0]`];return["pip install -U diffusers transformers accelerate",...t]},M={CausalLM:e=>`
195
+ import keras_hub
196
+
197
+ # Load CausalLM model (optional: use half precision for inference)
198
+ causal_lm = keras_hub.models.CausalLM.from_preset("hf://${e}", dtype="bfloat16")
199
+ causal_lm.compile(sampler="greedy") # (optional) specify a sampler
200
+
201
+ # Generate text
202
+ causal_lm.generate("Keras: deep learning for", max_length=64)
203
+ `,TextToImage:e=>`
204
+ import keras_hub
205
+
206
+ # Load TextToImage model (optional: use half precision for inference)
207
+ text_to_image = keras_hub.models.TextToImage.from_preset("hf://${e}", dtype="bfloat16")
208
+
209
+ # Generate images with a TextToImage model.
210
+ text_to_image.generate("Astronaut in a jungle")
211
+ `,TextClassifier:e=>`
212
+ import keras_hub
213
+
214
+ # Load TextClassifier model
215
+ text_classifier = keras_hub.models.TextClassifier.from_preset(
216
+ "hf://${e}",
217
+ num_classes=2,
218
+ )
219
+ # Fine-tune
220
+ text_classifier.fit(x=["Thilling adventure!", "Total snoozefest."], y=[1, 0])
221
+ # Classify text
222
+ text_classifier.predict(["Not my cup of tea."])
223
+ `,ImageClassifier:e=>`
224
+ import keras_hub
225
+ import keras
226
+
227
+ # Load ImageClassifier model
228
+ image_classifier = keras_hub.models.ImageClassifier.from_preset(
229
+ "hf://${e}",
230
+ num_classes=2,
231
+ )
232
+ # Fine-tune
233
+ image_classifier.fit(
234
+ x=keras.random.randint((32, 64, 64, 3), 0, 256),
235
+ y=keras.random.randint((32, 1), 0, 2),
236
+ )
237
+ # Classify image
238
+ image_classifier.predict(keras.random.randint((1, 64, 64, 3), 0, 256))
239
+ `},B=(e,t)=>`
240
+ import keras_hub
241
+
242
+ # Create a ${e} model
243
+ task = keras_hub.models.${e}.from_preset("hf://${t}")
244
+ `,j=e=>{let t=e.transformersInfo;if(!t)return["# ⚠️ Type of model unknown"];let i=e.tags.includes(w)?", trust_remote_code=True":"",r=[];if(t.processor){let n="AutoTokenizer"===t.processor?"tokenizer":"AutoFeatureExtractor"===t.processor?"extractor":"processor";r.push("# Load model directly",`from transformers import ${t.processor}, ${t.auto_model}`,"",`${n} = ${t.processor}.from_pretrained("${e.id}"`+i+")",`model = ${t.auto_model}.from_pretrained("${e.id}"`+i+")"),e.tags.includes("conversational")&&(e.config?.tokenizer_config?.chat_template!==void 0||e.config?.processor_config?.chat_template!==void 0||e.config?.chat_template_jinja!==void 0)&&(e.tags.includes("image-text-to-text")?r.push("messages = [",' {\n "role": "user",\n "content": [\n {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},\n {"type": "text", "text": "What animal is on the candy?"}\n ]\n },',"]"):r.push("messages = [",' {"role": "user", "content": "Who are you?"},',"]"),r.push(`inputs = ${n}.apply_chat_template(`," messages,"," add_generation_prompt=True,"," tokenize=True,"," return_dict=True,",' return_tensors="pt",',").to(model.device)","","outputs = model.generate(**inputs, max_new_tokens=40)",`print(${n}.decode(outputs[0][inputs["input_ids"].shape[-1]:]))`))}else r.push("# Load model directly",`from transformers import ${t.auto_model}`,`model = ${t.auto_model}.from_pretrained("${e.id}"`+i+', dtype="auto")');if(e.pipeline_tag&&P?.includes(e.pipeline_tag)){let t=["# Use a pipeline as a high-level helper","from transformers import pipeline","",`pipe = pipeline("${e.pipeline_tag}", model="${e.id}"`+i+")"];return e.tags.includes("conversational")?e.tags.includes("image-text-to-text")?(t.push("messages = [",' {\n "role": "user",\n "content": [\n {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},\n {"type": "text", "text": "What animal is on the candy?"}\n ]\n },',"]"),t.push("pipe(text=messages)")):(t.push("messages = [",' {"role": "user", "content": "Who are you?"},',"]"),t.push("pipe(messages)")):"zero-shot-image-classification"===e.pipeline_tag?t.push("pipe(",' "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png",',' candidate_labels=["animals", "humans", "landscape"],',")"):"image-classification"===e.pipeline_tag&&t.push('pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")'),[t.join("\n"),r.join("\n")]}return[r.join("\n")]},R=e=>{let t=e.tags.find(e=>e.match(/^yolov\d+$/)),i=t?`YOLOv${t.slice(4)}`:"YOLOvXX";return[(t?"":`# Couldn't find a valid YOLO version tag.
245
+ # Replace XX with the correct version.
246
+ `)+`from ultralytics import ${i}
247
+
248
+ model = ${i}.from_pretrained("${e.id}")
249
+ source = 'http://images.cocodataset.org/val2017/000000039769.jpg'
250
+ model.predict(source=source, save=True)`]},U={acestep:{prettyLabel:"ACE-Step",repoName:"ACE-Step",repoUrl:"https://github.com/ace-step/ACE-Step",filter:!1,countDownloads:'path:"ace_step_transformer/config.json"'},"adapter-transformers":{prettyLabel:"Adapters",repoName:"adapters",repoUrl:"https://github.com/Adapter-Hub/adapters",docsUrl:"https://huggingface.co/docs/hub/adapters",snippets:e=>[`from adapters import AutoAdapterModel
251
+
252
+ model = AutoAdapterModel.from_pretrained("${e.config?.adapter_transformers?.model_name}")
253
+ model.load_adapter("${e.id}", set_active=True)`],filter:!0,countDownloads:'path:"adapter_config.json"'},allennlp:{prettyLabel:"AllenNLP",repoName:"AllenNLP",repoUrl:"https://github.com/allenai/allennlp",docsUrl:"https://huggingface.co/docs/hub/allennlp",snippets:e=>{if(e.tags.includes("question-answering"))return[`import allennlp_models
254
+ from allennlp.predictors.predictor import Predictor
255
+
256
+ predictor = Predictor.from_path("hf://${e.id}")
257
+ predictor_input = {"passage": "My name is Wolfgang and I live in Berlin", "question": "Where do I live?"}
258
+ predictions = predictor.predict_json(predictor_input)`];return[`import allennlp_models
259
+ from allennlp.predictors.predictor import Predictor
260
+
261
+ predictor = Predictor.from_path("hf://${e.id}")`]},filter:!0},anemoi:{prettyLabel:"AnemoI",repoName:"AnemoI",repoUrl:"https://github.com/ecmwf/anemoi-inference",docsUrl:"https://anemoi.readthedocs.io/en/latest/",filter:!1,countDownloads:'path_extension:"ckpt"',snippets:e=>[`from anemoi.inference.runners.default import DefaultRunner
262
+ from anemoi.inference.config.run import RunConfiguration
263
+ # Create Configuration
264
+ config = RunConfiguration(checkpoint = {"huggingface":"${e.id}"})
265
+ # Load Runner
266
+ runner = DefaultRunner(config)`]},araclip:{prettyLabel:"AraClip",repoName:"AraClip",repoUrl:"https://huggingface.co/Arabic-Clip/araclip",filter:!1,snippets:e=>[`from araclip import AraClip
267
+
268
+ model = AraClip.from_pretrained("${e.id}")`]},asteroid:{prettyLabel:"Asteroid",repoName:"Asteroid",repoUrl:"https://github.com/asteroid-team/asteroid",docsUrl:"https://huggingface.co/docs/hub/asteroid",snippets:e=>[`from asteroid.models import BaseModel
269
+
270
+ model = BaseModel.from_pretrained("${e.id}")`],filter:!0,countDownloads:'path:"pytorch_model.bin"'},audiocraft:{prettyLabel:"Audiocraft",repoName:"audiocraft",repoUrl:"https://github.com/facebookresearch/audiocraft",snippets:e=>{if(e.tags.includes("musicgen"))return[`from audiocraft.models import MusicGen
271
+
272
+ model = MusicGen.get_pretrained("${e.id}")
273
+
274
+ descriptions = ['happy rock', 'energetic EDM', 'sad jazz']
275
+ wav = model.generate(descriptions) # generates 3 samples.`];if(e.tags.includes("audiogen"))return[`from audiocraft.models import AudioGen
276
+
277
+ model = AudioGen.get_pretrained("${e.id}")
278
+ model.set_generation_params(duration=5) # generate 5 seconds.
279
+ descriptions = ['dog barking', 'sirene of an emergency vehicle', 'footsteps in a corridor']
280
+ wav = model.generate(descriptions) # generates 3 samples.`];if(!e.tags.includes("magnet"))return["# Type of model unknown."];return[`from audiocraft.models import MAGNeT
281
+
282
+ model = MAGNeT.get_pretrained("${e.id}")
283
+
284
+ descriptions = ['disco beat', 'energetic EDM', 'funky groove']
285
+ wav = model.generate(descriptions) # generates 3 samples.`]},filter:!1,countDownloads:'path:"state_dict.bin"'},audioseal:{prettyLabel:"AudioSeal",repoName:"audioseal",repoUrl:"https://github.com/facebookresearch/audioseal",filter:!1,countDownloads:'path_extension:"pth"',snippets:e=>[`# Watermark Generator
286
+ from audioseal import AudioSeal
287
+
288
+ model = AudioSeal.load_generator("${e.id}")
289
+ # pass a tensor (tensor_wav) of shape (batch, channels, samples) and a sample rate
290
+ wav, sr = tensor_wav, 16000
291
+
292
+ watermark = model.get_watermark(wav, sr)
293
+ watermarked_audio = wav + watermark`,`# Watermark Detector
294
+ from audioseal import AudioSeal
295
+
296
+ detector = AudioSeal.load_detector("${e.id}")
297
+
298
+ result, message = detector.detect_watermark(watermarked_audio, sr)`]},"bagel-mot":{prettyLabel:"Bagel",repoName:"Bagel",repoUrl:"https://github.com/ByteDance-Seed/Bagel/",filter:!1,countDownloads:'path:"llm_config.json"'},bboxmaskpose:{prettyLabel:"BBoxMaskPose",repoName:"BBoxMaskPose",repoUrl:"https://github.com/MiraPurkrabek/BBoxMaskPose",filter:!1,countDownloads:'path_extension:"pth"'},ben2:{prettyLabel:"BEN2",repoName:"BEN2",repoUrl:"https://github.com/PramaLLC/BEN2",snippets:e=>[`import requests
299
+ from PIL import Image
300
+ from ben2 import AutoModel
301
+
302
+ url = "https://huggingface.co/datasets/mishig/sample_images/resolve/main/teapot.jpg"
303
+ image = Image.open(requests.get(url, stream=True).raw)
304
+
305
+ model = AutoModel.from_pretrained("${e.id}")
306
+ model.to("cuda").eval()
307
+ foreground = model.inference(image)
308
+ `],filter:!1},bertopic:{prettyLabel:"BERTopic",repoName:"BERTopic",repoUrl:"https://github.com/MaartenGr/BERTopic",snippets:e=>[`from bertopic import BERTopic
309
+
310
+ model = BERTopic.load("${e.id}")`],filter:!0},big_vision:{prettyLabel:"Big Vision",repoName:"big_vision",repoUrl:"https://github.com/google-research/big_vision",filter:!1,countDownloads:'path_extension:"npz"'},birder:{prettyLabel:"Birder",repoName:"Birder",repoUrl:"https://gitlab.com/birder/birder",filter:!1,countDownloads:'path_extension:"pt"'},birefnet:{prettyLabel:"BiRefNet",repoName:"BiRefNet",repoUrl:"https://github.com/ZhengPeng7/BiRefNet",snippets:e=>[`# Option 1: use with transformers
311
+
312
+ from transformers import AutoModelForImageSegmentation
313
+ birefnet = AutoModelForImageSegmentation.from_pretrained("${e.id}", trust_remote_code=True)
314
+ `,`# Option 2: use with BiRefNet
315
+
316
+ # Install from https://github.com/ZhengPeng7/BiRefNet
317
+
318
+ from models.birefnet import BiRefNet
319
+ model = BiRefNet.from_pretrained("${e.id}")`],filter:!1},bm25s:{prettyLabel:"BM25S",repoName:"bm25s",repoUrl:"https://github.com/xhluca/bm25s",snippets:e=>[`from bm25s.hf import BM25HF
320
+
321
+ retriever = BM25HF.load_from_hub("${e.id}")`],filter:!1,countDownloads:'path:"params.index.json"'},boltzgen:{prettyLabel:"BoltzGen",repoName:"BoltzGen",repoUrl:"https://github.com/HannesStark/boltzgen",filter:!1,countDownloads:'path:"boltzgen1_diverse.ckpt"'},cancertathomev2:{prettyLabel:"Cancer@HomeV2",repoName:"Cancer@HomeV2",repoUrl:"https://huggingface.co/OpenPeerAI/CancerAtHomeV2",filter:!1,countDownloads:'path:"run.py"'},cartesia_pytorch:{prettyLabel:"Cartesia Pytorch",repoName:"Cartesia Pytorch",repoUrl:"https://github.com/cartesia-ai/cartesia_pytorch",snippets:e=>[`# pip install --no-binary :all: cartesia-pytorch
322
+ from cartesia_pytorch import ReneLMHeadModel
323
+ from transformers import AutoTokenizer
324
+
325
+ model = ReneLMHeadModel.from_pretrained("${e.id}")
326
+ tokenizer = AutoTokenizer.from_pretrained("allenai/OLMo-1B-hf")
327
+
328
+ in_message = ["Rene Descartes was"]
329
+ inputs = tokenizer(in_message, return_tensors="pt")
330
+
331
+ outputs = model.generate(inputs.input_ids, max_length=50, top_k=100, top_p=0.99)
332
+ out_message = tokenizer.batch_decode(outputs, skip_special_tokens=True)[0]
333
+
334
+ print(out_message)
335
+ )`]},cartesia_mlx:{prettyLabel:"Cartesia MLX",repoName:"Cartesia MLX",repoUrl:"https://github.com/cartesia-ai/cartesia_mlx",snippets:e=>[`import mlx.core as mx
336
+ import cartesia_mlx as cmx
337
+
338
+ model = cmx.from_pretrained("${e.id}")
339
+ model.set_dtype(mx.float32)
340
+
341
+ prompt = "Rene Descartes was"
342
+
343
+ for text in model.generate(
344
+ prompt,
345
+ max_tokens=500,
346
+ eval_every_n=5,
347
+ verbose=True,
348
+ top_p=0.99,
349
+ temperature=0.85,
350
+ ):
351
+ print(text, end="", flush=True)
352
+ `]},champ:{prettyLabel:"Champ",repoName:"Champ",repoUrl:"https://github.com/fudan-generative-vision/champ",countDownloads:'path:"champ/motion_module.pth"'},chatterbox:{prettyLabel:"Chatterbox",repoName:"Chatterbox",repoUrl:"https://github.com/resemble-ai/chatterbox",snippets:()=>[`# pip install chatterbox-tts
353
+ import torchaudio as ta
354
+ from chatterbox.tts import ChatterboxTTS
355
+
356
+ model = ChatterboxTTS.from_pretrained(device="cuda")
357
+
358
+ text = "Ezreal and Jinx teamed up with Ahri, Yasuo, and Teemo to take down the enemy's Nexus in an epic late-game pentakill."
359
+ wav = model.generate(text)
360
+ ta.save("test-1.wav", wav, model.sr)
361
+
362
+ # If you want to synthesize with a different voice, specify the audio prompt
363
+ AUDIO_PROMPT_PATH="YOUR_FILE.wav"
364
+ wav = model.generate(text, audio_prompt_path=AUDIO_PROMPT_PATH)
365
+ ta.save("test-2.wav", wav, model.sr)`],countDownloads:'path:"tokenizer.json"',filter:!1},chaossim:{prettyLabel:"ChaosSIM",repoName:"ChaosSIM",repoUrl:"https://huggingface.co/OpenPeerAI/ChaosSIM/",countDownloads:'path:"ChaosSim.nb"',filter:!1},chat_tts:{prettyLabel:"ChatTTS",repoName:"ChatTTS",repoUrl:"https://github.com/2noise/ChatTTS.git",snippets:()=>[`import ChatTTS
366
+ import torchaudio
367
+
368
+ chat = ChatTTS.Chat()
369
+ chat.load_models(compile=False) # Set to True for better performance
370
+
371
+ texts = ["PUT YOUR TEXT HERE",]
372
+
373
+ wavs = chat.infer(texts, )
374
+
375
+ torchaudio.save("output1.wav", torch.from_numpy(wavs[0]), 24000)`],filter:!1,countDownloads:'path:"asset/GPT.pt"'},"chronos-forecasting":{prettyLabel:"Chronos",repoName:"Chronos",repoUrl:"https://github.com/amazon-science/chronos-forecasting",snippets:e=>["pip install chronos-forecasting",`import pandas as pd
376
+ from chronos import BaseChronosPipeline
377
+
378
+ pipeline = BaseChronosPipeline.from_pretrained("${e.id}", device_map="cuda")
379
+
380
+ # Load historical data
381
+ context_df = pd.read_csv("https://autogluon.s3.us-west-2.amazonaws.com/datasets/timeseries/misc/AirPassengers.csv")
382
+
383
+ # Generate predictions
384
+ pred_df = pipeline.predict_df(
385
+ context_df,
386
+ prediction_length=36, # Number of steps to forecast
387
+ quantile_levels=[0.1, 0.5, 0.9], # Quantiles for probabilistic forecast
388
+ id_column="item_id", # Column identifying different time series
389
+ timestamp_column="Month", # Column with datetime information
390
+ target="#Passengers", # Column(s) with time series values to predict
391
+ )`]},clara:{prettyLabel:"Clara",repoName:"Clara",filter:!1,repoUrl:"https://github.com/nvidia/clara",countDownloads:'path_extension:"ckpt" OR path:"config.json"'},clipscope:{prettyLabel:"clipscope",repoName:"clipscope",repoUrl:"https://github.com/Lewington-pitsos/clipscope",filter:!1,countDownloads:'path_extension:"pt"'},"cloud-agents":{prettyLabel:"Cloud Agents",repoName:"Cloud Agents",repoUrl:"https://huggingface.co/OpenPeerAI/Cloud-Agents",filter:!1,countDownloads:'path:"setup.py"'},cosyvoice:{prettyLabel:"CosyVoice",repoName:"CosyVoice",repoUrl:"https://github.com/FunAudioLLM/CosyVoice",filter:!1,countDownloads:'path_extension:"onnx" OR path_extension:"pt"'},cotracker:{prettyLabel:"CoTracker",repoName:"CoTracker",repoUrl:"https://github.com/facebookresearch/co-tracker",filter:!1,countDownloads:'path_extension:"pth"'},colpali:{prettyLabel:"ColPali",repoName:"ColPali",repoUrl:"https://github.com/ManuelFay/colpali",filter:!1,countDownloads:'path:"adapter_config.json"'},comet:{prettyLabel:"COMET",repoName:"COMET",repoUrl:"https://github.com/Unbabel/COMET/",countDownloads:'path:"hparams.yaml"'},cosmos:{prettyLabel:"Cosmos",repoName:"Cosmos",repoUrl:"https://github.com/NVIDIA/Cosmos",countDownloads:'path:"config.json" OR path_extension:"pt"'},"cxr-foundation":{prettyLabel:"CXR Foundation",repoName:"cxr-foundation",repoUrl:"https://github.com/google-health/cxr-foundation",snippets:()=>[`# pip install git+https://github.com/Google-Health/cxr-foundation.git#subdirectory=python
392
+
393
+ # Load image as grayscale (Stillwaterising, CC0, via Wikimedia Commons)
394
+ import requests
395
+ from PIL import Image
396
+ from io import BytesIO
397
+ image_url = "https://upload.wikimedia.org/wikipedia/commons/c/c8/Chest_Xray_PA_3-8-2010.png"
398
+ img = Image.open(requests.get(image_url, headers={'User-Agent': 'Demo'}, stream=True).raw).convert('L')
399
+
400
+ # Run inference
401
+ from clientside.clients import make_hugging_face_client
402
+ cxr_client = make_hugging_face_client('cxr_model')
403
+ print(cxr_client.get_image_embeddings_from_images([img]))`],filter:!1,countDownloads:'path:"precomputed_embeddings/embeddings.npz" OR path:"pax-elixr-b-text/saved_model.pb"'},deepforest:{prettyLabel:"DeepForest",repoName:"deepforest",docsUrl:"https://deepforest.readthedocs.io/en/latest/",repoUrl:"https://github.com/weecology/DeepForest"},"depth-anything-v2":{prettyLabel:"DepthAnythingV2",repoName:"Depth Anything V2",repoUrl:"https://github.com/DepthAnything/Depth-Anything-V2",snippets:e=>{let t,i,r;return t="<ENCODER>",i="<NUMBER_OF_FEATURES>",r="<OUT_CHANNELS>","depth-anything/Depth-Anything-V2-Small"===e.id?(t="vits",i="64",r="[48, 96, 192, 384]"):"depth-anything/Depth-Anything-V2-Base"===e.id?(t="vitb",i="128",r="[96, 192, 384, 768]"):"depth-anything/Depth-Anything-V2-Large"===e.id&&(t="vitl",i="256",r="[256, 512, 1024, 1024"),[`
404
+ # Install from https://github.com/DepthAnything/Depth-Anything-V2
405
+
406
+ # Load the model and infer depth from an image
407
+ import cv2
408
+ import torch
409
+
410
+ from depth_anything_v2.dpt import DepthAnythingV2
411
+
412
+ # instantiate the model
413
+ model = DepthAnythingV2(encoder="${t}", features=${i}, out_channels=${r})
414
+
415
+ # load the weights
416
+ filepath = hf_hub_download(repo_id="${e.id}", filename="depth_anything_v2_${t}.pth", repo_type="model")
417
+ state_dict = torch.load(filepath, map_location="cpu")
418
+ model.load_state_dict(state_dict).eval()
419
+
420
+ raw_img = cv2.imread("your/image/path")
421
+ depth = model.infer_image(raw_img) # HxW raw depth map in numpy
422
+ `]},filter:!1,countDownloads:'path_extension:"pth"'},"depth-pro":{prettyLabel:"Depth Pro",repoName:"Depth Pro",repoUrl:"https://github.com/apple/ml-depth-pro",countDownloads:'path_extension:"pt"',snippets:e=>[`# Download checkpoint
423
+ pip install huggingface-hub
424
+ huggingface-cli download --local-dir checkpoints ${e.id}`,`import depth_pro
425
+
426
+ # Load model and preprocessing transform
427
+ model, transform = depth_pro.create_model_and_transforms()
428
+ model.eval()
429
+
430
+ # Load and preprocess an image.
431
+ image, _, f_px = depth_pro.load_rgb("example.png")
432
+ image = transform(image)
433
+
434
+ # Run inference.
435
+ prediction = model.infer(image, f_px=f_px)
436
+
437
+ # Results: 1. Depth in meters
438
+ depth = prediction["depth"]
439
+ # Results: 2. Focal length in pixels
440
+ focallength_px = prediction["focallength_px"]`],filter:!1},"derm-foundation":{prettyLabel:"Derm Foundation",repoName:"derm-foundation",repoUrl:"https://github.com/google-health/derm-foundation",snippets:()=>[`from huggingface_hub import from_pretrained_keras
441
+ import tensorflow as tf, requests
442
+
443
+ # Load and format input
444
+ IMAGE_URL = "https://storage.googleapis.com/dx-scin-public-data/dataset/images/3445096909671059178.png"
445
+ input_tensor = tf.train.Example(
446
+ features=tf.train.Features(
447
+ feature={
448
+ "image/encoded": tf.train.Feature(
449
+ bytes_list=tf.train.BytesList(value=[requests.get(IMAGE_URL, stream=True).content])
450
+ )
451
+ }
452
+ )
453
+ ).SerializeToString()
454
+
455
+ # Load model and run inference
456
+ loaded_model = from_pretrained_keras("google/derm-foundation")
457
+ infer = loaded_model.signatures["serving_default"]
458
+ print(infer(inputs=tf.constant([input_tensor])))`],filter:!1,countDownloads:'path:"scin_dataset_precomputed_embeddings.npz" OR path:"saved_model.pb"'},"describe-anything":{prettyLabel:"Describe Anything",repoName:"Describe Anything",repoUrl:"https://github.com/NVlabs/describe-anything",snippets:e=>[`# pip install git+https://github.com/NVlabs/describe-anything
459
+ from huggingface_hub import snapshot_download
460
+ from dam import DescribeAnythingModel
461
+
462
+ snapshot_download(${e.id}, local_dir="checkpoints")
463
+
464
+ dam = DescribeAnythingModel(
465
+ model_path="checkpoints",
466
+ conv_mode="v1",
467
+ prompt_mode="focal_prompt",
468
+ )`],filter:!1},"dia-tts":{prettyLabel:"Dia",repoName:"Dia",repoUrl:"https://github.com/nari-labs/dia",snippets:e=>[`import soundfile as sf
469
+ from dia.model import Dia
470
+
471
+ model = Dia.from_pretrained("${e.id}")
472
+ text = "[S1] Dia is an open weights text to dialogue model. [S2] You get full control over scripts and voices. [S1] Wow. Amazing. (laughs) [S2] Try it now on Git hub or Hugging Face."
473
+ output = model.generate(text)
474
+
475
+ sf.write("simple.mp3", output, 44100)`],filter:!1},dia2:{prettyLabel:"Dia2",repoName:"Dia2",repoUrl:"https://github.com/nari-labs/dia2",snippets:e=>[`from dia2 import Dia2, GenerationConfig, SamplingConfig
476
+
477
+ dia = Dia2.from_repo("${e.id}", device="cuda", dtype="bfloat16")
478
+ config = GenerationConfig(
479
+ cfg_scale=2.0,
480
+ audio=SamplingConfig(temperature=0.8, top_k=50),
481
+ use_cuda_graph=True,
482
+ )
483
+ result = dia.generate("[S1] Hello Dia2!", config=config, output_wav="hello.wav", verbose=True)
484
+ `],filter:!1},"diff-interpretation-tuning":{prettyLabel:"Diff Interpretation Tuning",repoName:"Diff Interpretation Tuning",repoUrl:"https://github.com/Aviously/diff-interpretation-tuning",filter:!1,countDownloads:'path_extension:"pt"'},diffree:{prettyLabel:"Diffree",repoName:"Diffree",repoUrl:"https://github.com/OpenGVLab/Diffree",filter:!1,countDownloads:'path:"diffree-step=000010999.ckpt"'},diffusers:{prettyLabel:"Diffusers",repoName:"\uD83E\uDD17/diffusers",repoUrl:"https://github.com/huggingface/diffusers",docsUrl:"https://huggingface.co/docs/hub/diffusers",snippets:L,filter:!0},diffusionkit:{prettyLabel:"DiffusionKit",repoName:"DiffusionKit",repoUrl:"https://github.com/argmaxinc/DiffusionKit",snippets:e=>{let t=`# Pipeline for Stable Diffusion 3
485
+ from diffusionkit.mlx import DiffusionPipeline
486
+
487
+ pipeline = DiffusionPipeline(
488
+ shift=3.0,
489
+ use_t5=False,
490
+ model_version=${e.id},
491
+ low_memory_mode=True,
492
+ a16=True,
493
+ w16=True,
494
+ )`,i=`# Pipeline for Flux
495
+ from diffusionkit.mlx import FluxPipeline
496
+
497
+ pipeline = FluxPipeline(
498
+ shift=1.0,
499
+ model_version=${e.id},
500
+ low_memory_mode=True,
501
+ a16=True,
502
+ w16=True,
503
+ )`,r=`# Image Generation
504
+ HEIGHT = 512
505
+ WIDTH = 512
506
+ NUM_STEPS = ${e.tags.includes("flux")?4:50}
507
+ CFG_WEIGHT = ${5*!e.tags.includes("flux")}
508
+
509
+ image, _ = pipeline.generate_image(
510
+ "a photo of a cat",
511
+ cfg_weight=CFG_WEIGHT,
512
+ num_steps=NUM_STEPS,
513
+ latent_size=(HEIGHT // 8, WIDTH // 8),
514
+ )`;return[e.tags.includes("flux")?i:t,r]}},"docking-at-home":{prettyLabel:"Docking@Home",repoName:"Docking@Home",repoUrl:"https://huggingface.co/OpenPeerAI/DockingAtHOME",filter:!1,countDownloads:'path:"setup.py"'},doctr:{prettyLabel:"docTR",repoName:"doctr",repoUrl:"https://github.com/mindee/doctr"},edsnlp:{prettyLabel:"EDS-NLP",repoName:"edsnlp",repoUrl:"https://github.com/aphp/edsnlp",docsUrl:"https://aphp.github.io/edsnlp/latest/",filter:!1,snippets:e=>{let t=_(e.id).replaceAll("-","_");return[`# Load it from the Hub directly
515
+ import edsnlp
516
+ nlp = edsnlp.load("${e.id}")
517
+ `,`# Or install it as a package
518
+ !pip install git+https://huggingface.co/${e.id}
519
+
520
+ # and import it as a module
521
+ import ${t}
522
+
523
+ nlp = ${t}.load() # or edsnlp.load("${t}")
524
+ `]},countDownloads:'path_filename:"config" AND path_extension:"cfg"'},elm:{prettyLabel:"ELM",repoName:"elm",repoUrl:"https://github.com/slicex-ai/elm",filter:!1,countDownloads:'path_filename:"slicex_elm_config" AND path_extension:"json"'},espnet:{prettyLabel:"ESPnet",repoName:"ESPnet",repoUrl:"https://github.com/espnet/espnet",docsUrl:"https://huggingface.co/docs/hub/espnet",snippets:e=>{if(e.tags.includes("text-to-speech"))return[`from espnet2.bin.tts_inference import Text2Speech
525
+
526
+ model = Text2Speech.from_pretrained("${e.id}")
527
+
528
+ speech, *_ = model("text to generate speech from")`];if(e.tags.includes("automatic-speech-recognition"))return[`from espnet2.bin.asr_inference import Speech2Text
529
+
530
+ model = Speech2Text.from_pretrained(
531
+ "${e.id}"
532
+ )
533
+
534
+ speech, rate = soundfile.read("speech.wav")
535
+ text, *_ = model(speech)[0]`];return["unknown model type (must be text-to-speech or automatic-speech-recognition)"]},filter:!0},fairseq:{prettyLabel:"Fairseq",repoName:"fairseq",repoUrl:"https://github.com/pytorch/fairseq",snippets:e=>[`from fairseq.checkpoint_utils import load_model_ensemble_and_task_from_hf_hub
536
+
537
+ models, cfg, task = load_model_ensemble_and_task_from_hf_hub(
538
+ "${e.id}"
539
+ )`],filter:!0},fastai:{prettyLabel:"fastai",repoName:"fastai",repoUrl:"https://github.com/fastai/fastai",docsUrl:"https://huggingface.co/docs/hub/fastai",snippets:e=>[`from huggingface_hub import from_pretrained_fastai
540
+
541
+ learn = from_pretrained_fastai("${e.id}")`],filter:!0},fastprint:{prettyLabel:"Fast Print",repoName:"Fast Print",repoUrl:"https://huggingface.co/OpenPeerAI/FastPrint",countDownloads:'path_extension:"cs"'},fasttext:{prettyLabel:"fastText",repoName:"fastText",repoUrl:"https://fasttext.cc/",snippets:e=>[`from huggingface_hub import hf_hub_download
542
+ import fasttext
543
+
544
+ model = fasttext.load_model(hf_hub_download("${e.id}", "model.bin"))`],filter:!0,countDownloads:'path_extension:"bin"'},fixer:{prettyLabel:"Fixer",repoName:"Fixer",repoUrl:"https://github.com/nv-tlabs/Fixer",filter:!1,countDownloads:'path:"pretrained/pretrained_fixer.pkl"'},flair:{prettyLabel:"Flair",repoName:"Flair",repoUrl:"https://github.com/flairNLP/flair",docsUrl:"https://huggingface.co/docs/hub/flair",snippets:e=>[`from flair.models import SequenceTagger
545
+
546
+ tagger = SequenceTagger.load("${e.id}")`],filter:!0,countDownloads:'path:"pytorch_model.bin"'},fme:{prettyLabel:"Full Model Emulation",repoName:"Full Model Emulation",repoUrl:"https://github.com/ai2cm/ace",docsUrl:"https://ai2-climate-emulator.readthedocs.io/en/latest/",filter:!1,countDownloads:'path_extension:"tar"'},"gemma.cpp":{prettyLabel:"gemma.cpp",repoName:"gemma.cpp",repoUrl:"https://github.com/google/gemma.cpp",filter:!1,countDownloads:'path_extension:"sbs"'},"geometry-crafter":{prettyLabel:"GeometryCrafter",repoName:"GeometryCrafter",repoUrl:"https://github.com/TencentARC/GeometryCrafter",countDownloads:'path:"point_map_vae/diffusion_pytorch_model.safetensors"'},gliner:{prettyLabel:"GLiNER",repoName:"GLiNER",repoUrl:"https://github.com/urchade/GLiNER",snippets:e=>[`from gliner import GLiNER
547
+
548
+ model = GLiNER.from_pretrained("${e.id}")`],filter:!1,countDownloads:'path:"gliner_config.json"'},gliner2:{prettyLabel:"GLiNER2",repoName:"GLiNER2",repoUrl:"https://github.com/fastino-ai/GLiNER2",snippets:e=>[`from gliner2 import GLiNER2
549
+
550
+ model = GLiNER2.from_pretrained("${e.id}")
551
+
552
+ # Extract entities
553
+ text = "Apple CEO Tim Cook announced iPhone 15 in Cupertino yesterday."
554
+ result = extractor.extract_entities(text, ["company", "person", "product", "location"])
555
+
556
+ print(result)`],filter:!1},"glyph-byt5":{prettyLabel:"Glyph-ByT5",repoName:"Glyph-ByT5",repoUrl:"https://github.com/AIGText/Glyph-ByT5",filter:!1,countDownloads:'path:"checkpoints/byt5_model.pt"'},grok:{prettyLabel:"Grok",repoName:"Grok",repoUrl:"https://github.com/xai-org/grok-1",filter:!1,countDownloads:'path:"ckpt/tensor00000_000" OR path:"ckpt-0/tensor00000_000"'},hallo:{prettyLabel:"Hallo",repoName:"Hallo",repoUrl:"https://github.com/fudan-generative-vision/hallo",countDownloads:'path:"hallo/net.pth"'},hermes:{prettyLabel:"HERMES",repoName:"HERMES",repoUrl:"https://github.com/LMD0311/HERMES",filter:!1,countDownloads:'path:"ckpt/hermes_final.pth"'},hezar:{prettyLabel:"Hezar",repoName:"Hezar",repoUrl:"https://github.com/hezarai/hezar",docsUrl:"https://hezarai.github.io/hezar",countDownloads:'path:"model_config.yaml" OR path:"embedding/embedding_config.yaml"'},htrflow:{prettyLabel:"HTRflow",repoName:"HTRflow",repoUrl:"https://github.com/AI-Riksarkivet/htrflow",docsUrl:"https://ai-riksarkivet.github.io/htrflow",snippets:e=>[`# CLI usage
557
+ # see docs: https://ai-riksarkivet.github.io/htrflow/latest/getting_started/quick_start.html
558
+ htrflow pipeline <path/to/pipeline.yaml> <path/to/image>`,`# Python usage
559
+ from htrflow.pipeline.pipeline import Pipeline
560
+ from htrflow.pipeline.steps import Task
561
+ from htrflow.models.framework.model import ModelClass
562
+
563
+ pipeline = Pipeline(
564
+ [
565
+ Task(
566
+ ModelClass, {"model": "${e.id}"}, {}
567
+ ),
568
+ ])`]},"hunyuan-dit":{prettyLabel:"HunyuanDiT",repoName:"HunyuanDiT",repoUrl:"https://github.com/Tencent/HunyuanDiT",countDownloads:'path:"pytorch_model_ema.pt" OR path:"pytorch_model_distill.pt"'},"hunyuan3d-2":{prettyLabel:"Hunyuan3D-2",repoName:"Hunyuan3D-2",repoUrl:"https://github.com/Tencent/Hunyuan3D-2",countDownloads:'path_filename:"model_index" OR path_filename:"config"'},"hunyuanworld-voyager":{prettyLabel:"HunyuanWorld-voyager",repoName:"HunyuanWorld-voyager",repoUrl:"https://github.com/Tencent-Hunyuan/HunyuanWorld-Voyager"},"image-matching-models":{prettyLabel:"Image Matching Models",repoName:"Image Matching Models",repoUrl:"https://github.com/alexstoken/image-matching-models",filter:!1,countDownloads:'path_extension:"safetensors"'},imstoucan:{prettyLabel:"IMS Toucan",repoName:"IMS-Toucan",repoUrl:"https://github.com/DigitalPhonetics/IMS-Toucan",countDownloads:'path:"embedding_gan.pt" OR path:"Vocoder.pt" OR path:"ToucanTTS.pt"'},"index-tts":{prettyLabel:"IndexTTS",repoName:"IndexTTS",repoUrl:"https://github.com/index-tts/index-tts",snippets:e=>[`# Download model
569
+ from huggingface_hub import snapshot_download
570
+
571
+ snapshot_download(${e.id}, local_dir="checkpoints")
572
+
573
+ from indextts.infer import IndexTTS
574
+
575
+ # Ensure config.yaml is present in the checkpoints directory
576
+ tts = IndexTTS(model_dir="checkpoints", cfg_path="checkpoints/config.yaml")
577
+
578
+ voice = "path/to/your/reference_voice.wav" # Path to the voice reference audio file
579
+ text = "Hello, how are you?"
580
+ output_path = "output_index.wav"
581
+
582
+ tts.infer(voice, text, output_path)`],filter:!1},infinitetalk:{prettyLabel:"InfiniteTalk",repoName:"InfiniteTalk",repoUrl:"https://github.com/MeiGen-AI/InfiniteTalk",filter:!1,countDownloads:'path_extension:"safetensors"'},"infinite-you":{prettyLabel:"InfiniteYou",repoName:"InfiniteYou",repoUrl:"https://github.com/bytedance/InfiniteYou",filter:!1,countDownloads:'path:"infu_flux_v1.0/sim_stage1/image_proj_model.bin" OR path:"infu_flux_v1.0/aes_stage2/image_proj_model.bin"'},keras:{prettyLabel:"Keras",repoName:"Keras",repoUrl:"https://github.com/keras-team/keras",docsUrl:"https://huggingface.co/docs/hub/keras",snippets:e=>[`# Available backend options are: "jax", "torch", "tensorflow".
583
+ import os
584
+ os.environ["KERAS_BACKEND"] = "jax"
585
+
586
+ import keras
587
+
588
+ model = keras.saving.load_model("hf://${e.id}")
589
+ `],filter:!0,countDownloads:'path:"config.json" OR path_extension:"keras"'},"tf-keras":{prettyLabel:"TF-Keras",repoName:"TF-Keras",repoUrl:"https://github.com/keras-team/tf-keras",docsUrl:"https://huggingface.co/docs/hub/tf-keras",snippets:e=>[`# Note: 'keras<3.x' or 'tf_keras' must be installed (legacy)
590
+ # See https://github.com/keras-team/tf-keras for more details.
591
+ from huggingface_hub import from_pretrained_keras
592
+
593
+ model = from_pretrained_keras("${e.id}")
594
+ `],countDownloads:'path:"saved_model.pb"'},"keras-hub":{prettyLabel:"KerasHub",repoName:"KerasHub",repoUrl:"https://github.com/keras-team/keras-hub",docsUrl:"https://keras.io/keras_hub/",snippets:e=>{let t=e.id,i=e.config?.keras_hub?.tasks??[],r=[];for(let[e,n]of Object.entries(M))i.includes(e)&&r.push(n(t));for(let e of i)Object.keys(M).includes(e)||r.push(B(e,t));return r.push(`
595
+ import keras_hub
596
+
597
+ # Create a Backbone model unspecialized for any task
598
+ backbone = keras_hub.models.Backbone.from_preset("hf://${t}")
599
+ `),r},filter:!0},kernels:{prettyLabel:"Kernels",repoName:"Kernels",repoUrl:"https://github.com/huggingface/kernels",docsUrl:"https://huggingface.co/docs/kernels",snippets:e=>[`# !pip install kernels
600
+
601
+ from kernels import get_kernel
602
+
603
+ kernel = get_kernel("${e.id}")`],countDownloads:'path_filename:"_ops" AND path_extension:"py"'},"kimi-audio":{prettyLabel:"KimiAudio",repoName:"KimiAudio",repoUrl:"https://github.com/MoonshotAI/Kimi-Audio",snippets:e=>[`# Example usage for KimiAudio
604
+ # pip install git+https://github.com/MoonshotAI/Kimi-Audio.git
605
+
606
+ from kimia_infer.api.kimia import KimiAudio
607
+
608
+ model = KimiAudio(model_path="${e.id}", load_detokenizer=True)
609
+
610
+ sampling_params = {
611
+ "audio_temperature": 0.8,
612
+ "audio_top_k": 10,
613
+ "text_temperature": 0.0,
614
+ "text_top_k": 5,
615
+ }
616
+
617
+ # For ASR
618
+ asr_audio = "asr_example.wav"
619
+ messages_asr = [
620
+ {"role": "user", "message_type": "text", "content": "Please transcribe the following audio:"},
621
+ {"role": "user", "message_type": "audio", "content": asr_audio}
622
+ ]
623
+ _, text = model.generate(messages_asr, **sampling_params, output_type="text")
624
+ print(text)
625
+
626
+ # For Q&A
627
+ qa_audio = "qa_example.wav"
628
+ messages_conv = [{"role": "user", "message_type": "audio", "content": qa_audio}]
629
+ wav, text = model.generate(messages_conv, **sampling_params, output_type="both")
630
+ sf.write("output_audio.wav", wav.cpu().view(-1).numpy(), 24000)
631
+ print(text)
632
+ `],filter:!1},kittentts:{prettyLabel:"KittenTTS",repoName:"KittenTTS",repoUrl:"https://github.com/KittenML/KittenTTS",snippets:e=>[`from kittentts import KittenTTS
633
+ m = KittenTTS("${e.id}")
634
+
635
+ audio = m.generate("This high quality TTS model works without a GPU")
636
+
637
+ # Save the audio
638
+ import soundfile as sf
639
+ sf.write('output.wav', audio, 24000)`]},kronos:{prettyLabel:"KRONOS",repoName:"KRONOS",repoUrl:"https://github.com/mahmoodlab/KRONOS",filter:!1,countDownloads:'path_extension:"pt"'},k2:{prettyLabel:"K2",repoName:"k2",repoUrl:"https://github.com/k2-fsa/k2"},"lightning-ir":{prettyLabel:"Lightning IR",repoName:"Lightning IR",repoUrl:"https://github.com/webis-de/lightning-ir",snippets:e=>e.tags.includes("bi-encoder")?[`#install from https://github.com/webis-de/lightning-ir
640
+
641
+ from lightning_ir import BiEncoderModule
642
+ model = BiEncoderModule("${e.id}")
643
+
644
+ model.score("query", ["doc1", "doc2", "doc3"])`]:e.tags.includes("cross-encoder")?[`#install from https://github.com/webis-de/lightning-ir
645
+
646
+ from lightning_ir import CrossEncoderModule
647
+ model = CrossEncoderModule("${e.id}")
648
+
649
+ model.score("query", ["doc1", "doc2", "doc3"])`]:[`#install from https://github.com/webis-de/lightning-ir
650
+
651
+ from lightning_ir import BiEncoderModule, CrossEncoderModule
652
+
653
+ # depending on the model type, use either BiEncoderModule or CrossEncoderModule
654
+ model = BiEncoderModule("${e.id}")
655
+ # model = CrossEncoderModule("${e.id}")
656
+
657
+ model.score("query", ["doc1", "doc2", "doc3"])`]},litert:{prettyLabel:"LiteRT",repoName:"LiteRT",repoUrl:"https://github.com/google-ai-edge/LiteRT",filter:!1,countDownloads:'path_extension:"tflite"'},"litert-lm":{prettyLabel:"LiteRT-LM",repoName:"LiteRT-LM",repoUrl:"https://github.com/google-ai-edge/LiteRT-LM",filter:!1,countDownloads:'path_extension:"litertlm" OR path_extension:"task"'},lerobot:{prettyLabel:"LeRobot",repoName:"LeRobot",repoUrl:"https://github.com/huggingface/lerobot",docsUrl:"https://huggingface.co/docs/lerobot",filter:!1,snippets:e=>{if(e.tags.includes("smolvla")){let t=[`# See https://github.com/huggingface/lerobot?tab=readme-ov-file#installation for more details
658
+ git clone https://github.com/huggingface/lerobot.git
659
+ cd lerobot
660
+ pip install -e .[smolvla]`,`# Launch finetuning on your dataset
661
+ python lerobot/scripts/train.py \\
662
+ --policy.path=${e.id} \\
663
+ --dataset.repo_id=lerobot/svla_so101_pickplace \\
664
+ --batch_size=64 \\
665
+ --steps=20000 \\
666
+ --output_dir=outputs/train/my_smolvla \\
667
+ --job_name=my_smolvla_training \\
668
+ --policy.device=cuda \\
669
+ --wandb.enable=true`];return"lerobot/smolvla_base"!==e.id&&t.push(`# Run the policy using the record function
670
+ python -m lerobot.record \\
671
+ --robot.type=so101_follower \\
672
+ --robot.port=/dev/ttyACM0 \\ # <- Use your port
673
+ --robot.id=my_blue_follower_arm \\ # <- Use your robot id
674
+ --robot.cameras="{ front: {type: opencv, index_or_path: 8, width: 640, height: 480, fps: 30}}" \\ # <- Use your cameras
675
+ --dataset.single_task="Grasp a lego block and put it in the bin." \\ # <- Use the same task description you used in your dataset recording
676
+ --dataset.repo_id=HF_USER/dataset_name \\ # <- This will be the dataset name on HF Hub
677
+ --dataset.episode_time_s=50 \\
678
+ --dataset.num_episodes=10 \\
679
+ --policy.path=${e.id}`),t}return[]}},lightglue:{prettyLabel:"LightGlue",repoName:"LightGlue",repoUrl:"https://github.com/cvg/LightGlue",filter:!1,countDownloads:'path_extension:"pth" OR path:"config.json"'},liveportrait:{prettyLabel:"LivePortrait",repoName:"LivePortrait",repoUrl:"https://github.com/KwaiVGI/LivePortrait",filter:!1,countDownloads:'path:"liveportrait/landmark.onnx"'},"llama-cpp-python":{prettyLabel:"llama-cpp-python",repoName:"llama-cpp-python",repoUrl:"https://github.com/abetlen/llama-cpp-python",snippets:e=>{let t=[`# !pip install llama-cpp-python
680
+
681
+ from llama_cpp import Llama
682
+
683
+ llm = Llama.from_pretrained(
684
+ repo_id="${e.id}",
685
+ filename="{{GGUF_FILE}}",
686
+ )
687
+ `];if(e.tags.includes("conversational")){var i;let r,n=function(e,t=!1,i=!1){if(e.pipeline_tag){let r=C[e.pipeline_tag];if(r){let n=r(e);if("string"==typeof n&&(t&&(n=n.replace(/(?:(?:\r?\n|\r)\t*)|\t+/g," ")),i)){let e=n.match(/^"(.+)"$/s);n=e?e[1]:n}return n}}return"No input example has been defined for this model task."}(e);t.push(`llm.create_chat_completion(
688
+ messages = ${(i={attributeKeyQuotes:!0,indent:" "},r=JSON.stringify(n,null," "),i?.indent&&(r=r.replaceAll("\n",`
689
+ ${i.indent}`)),!i?.attributeKeyQuotes&&(r=r.replace(/"([^"]+)":/g,"$1:")),i?.customContentEscaper&&(r=i.customContentEscaper(r)),r)}
690
+ )`)}else t.push(`output = llm(
691
+ "Once upon a time,",
692
+ max_tokens=512,
693
+ echo=True
694
+ )
695
+ print(output)`);return t}},"mini-omni2":{prettyLabel:"Mini-Omni2",repoName:"Mini-Omni2",repoUrl:"https://github.com/gpt-omni/mini-omni2",countDownloads:'path:"model_config.yaml"'},mindspore:{prettyLabel:"MindSpore",repoName:"mindspore",repoUrl:"https://github.com/mindspore-ai/mindspore"},"magi-1":{prettyLabel:"MAGI-1",repoName:"MAGI-1",repoUrl:"https://github.com/SandAI-org/MAGI-1",countDownloads:'path:"ckpt/vae/config.json"'},"magenta-realtime":{prettyLabel:"Magenta RT",repoName:"Magenta RT",repoUrl:"https://github.com/magenta/magenta-realtime",countDownloads:'path:"checkpoints/llm_base_x4286_c1860k.tar" OR path:"checkpoints/llm_large_x3047_c1860k.tar" OR path:"checkpoints/llm_large_x3047_c1860k/checkpoint"'},"mamba-ssm":{prettyLabel:"MambaSSM",repoName:"MambaSSM",repoUrl:"https://github.com/state-spaces/mamba",filter:!1,snippets:e=>[`from mamba_ssm import MambaLMHeadModel
696
+
697
+ model = MambaLMHeadModel.from_pretrained("${e.id}")`]},"mars5-tts":{prettyLabel:"MARS5-TTS",repoName:"MARS5-TTS",repoUrl:"https://github.com/Camb-ai/MARS5-TTS",filter:!1,countDownloads:'path:"mars5_ar.safetensors"',snippets:e=>[`# Install from https://github.com/Camb-ai/MARS5-TTS
698
+
699
+ from inference import Mars5TTS
700
+ mars5 = Mars5TTS.from_pretrained("${e.id}")`]},matanyone:{prettyLabel:"MatAnyone",repoName:"MatAnyone",repoUrl:"https://github.com/pq-yang/MatAnyone",snippets:e=>[`# Install from https://github.com/pq-yang/MatAnyone.git
701
+
702
+ from matanyone.model.matanyone import MatAnyone
703
+ model = MatAnyone.from_pretrained("${e.id}")`,`
704
+ from matanyone import InferenceCore
705
+ processor = InferenceCore("${e.id}")`],filter:!1},"mesh-anything":{prettyLabel:"MeshAnything",repoName:"MeshAnything",repoUrl:"https://github.com/buaacyw/MeshAnything",filter:!1,countDownloads:'path:"MeshAnything_350m.pth"',snippets:()=>[`# Install from https://github.com/buaacyw/MeshAnything.git
706
+
707
+ from MeshAnything.models.meshanything import MeshAnything
708
+
709
+ # refer to https://github.com/buaacyw/MeshAnything/blob/main/main.py#L91 on how to define args
710
+ # and https://github.com/buaacyw/MeshAnything/blob/main/app.py regarding usage
711
+ model = MeshAnything(args)`]},merlin:{prettyLabel:"Merlin",repoName:"Merlin",repoUrl:"https://github.com/StanfordMIMI/Merlin",filter:!1,countDownloads:'path_extension:"pt"'},medvae:{prettyLabel:"MedVAE",repoName:"MedVAE",repoUrl:"https://github.com/StanfordMIMI/MedVAE",filter:!1,countDownloads:'path_extension:"ckpt"'},mitie:{prettyLabel:"MITIE",repoName:"MITIE",repoUrl:"https://github.com/mit-nlp/MITIE",countDownloads:'path_filename:"total_word_feature_extractor"'},"ml-agents":{prettyLabel:"ml-agents",repoName:"ml-agents",repoUrl:"https://github.com/Unity-Technologies/ml-agents",docsUrl:"https://huggingface.co/docs/hub/ml-agents",snippets:e=>[`mlagents-load-from-hf --repo-id="${e.id}" --local-dir="./download: string[]s"`],filter:!0,countDownloads:'path_extension:"onnx"'},mlx:{prettyLabel:"MLX",repoName:"MLX",repoUrl:"https://github.com/ml-explore/mlx-examples/tree/main",snippets:e=>{if("image-text-to-text"===e.pipeline_tag)return[`# Make sure mlx-vlm is installed
712
+ # pip install --upgrade mlx-vlm
713
+
714
+ from mlx_vlm import load, generate
715
+ from mlx_vlm.prompt_utils import apply_chat_template
716
+ from mlx_vlm.utils import load_config
717
+
718
+ # Load the model
719
+ model, processor = load("${e.id}")
720
+ config = load_config("${e.id}")
721
+
722
+ # Prepare input
723
+ image = ["http://images.cocodataset.org/val2017/000000039769.jpg"]
724
+ prompt = "Describe this image."
725
+
726
+ # Apply chat template
727
+ formatted_prompt = apply_chat_template(
728
+ processor, config, prompt, num_images=1
729
+ )
730
+
731
+ # Generate output
732
+ output = generate(model, processor, formatted_prompt, image)
733
+ print(output)`];if("text-generation"===e.pipeline_tag)if(e.tags.includes("conversational"))return[`# Make sure mlx-lm is installed
734
+ # pip install --upgrade mlx-lm
735
+
736
+ # Generate text with mlx-lm
737
+ from mlx_lm import load, generate
738
+
739
+ model, tokenizer = load("${e.id}")
740
+
741
+ prompt = "Write a story about Einstein"
742
+ messages = [{"role": "user", "content": prompt}]
743
+ prompt = tokenizer.apply_chat_template(
744
+ messages, add_generation_prompt=True
745
+ )
746
+
747
+ text = generate(model, tokenizer, prompt=prompt, verbose=True)`];else return[`# Make sure mlx-lm is installed
748
+ # pip install --upgrade mlx-lm
749
+ # if on a CUDA device, also pip install mlx[cuda]
750
+
751
+ # Generate text with mlx-lm
752
+ from mlx_lm import load, generate
753
+
754
+ model, tokenizer = load("${e.id}")
755
+
756
+ prompt = "Once upon a time in"
757
+ text = generate(model, tokenizer, prompt=prompt, verbose=True)`];return[`# Download the model from the Hub
758
+ pip install huggingface_hub[hf_xet]
759
+
760
+ huggingface-cli download --local-dir ${_(e.id)} ${e.id}`]},filter:!0},"mlx-image":{prettyLabel:"mlx-image",repoName:"mlx-image",repoUrl:"https://github.com/riccardomusmeci/mlx-image",docsUrl:"https://huggingface.co/docs/hub/mlx-image",snippets:e=>[`from mlxim.model import create_model
761
+
762
+ model = create_model(${e.id})`],filter:!1,countDownloads:'path:"model.safetensors"'},"mlc-llm":{prettyLabel:"MLC-LLM",repoName:"MLC-LLM",repoUrl:"https://github.com/mlc-ai/mlc-llm",docsUrl:"https://llm.mlc.ai/docs/",filter:!1,countDownloads:'path:"mlc-chat-config.json"'},model2vec:{prettyLabel:"Model2Vec",repoName:"model2vec",repoUrl:"https://github.com/MinishLab/model2vec",snippets:e=>[`from model2vec import StaticModel
763
+
764
+ model = StaticModel.from_pretrained("${e.id}")`],filter:!1},moshi:{prettyLabel:"Moshi",repoName:"Moshi",repoUrl:"https://github.com/kyutai-labs/moshi",filter:!1,countDownloads:'path:"tokenizer-e351c8d8-checkpoint125.safetensors"'},mtvcraft:{prettyLabel:"MTVCraft",repoName:"MTVCraft",repoUrl:"https://github.com/baaivision/MTVCraft",filter:!1,countDownloads:'path:"vae/3d-vae.pt"'},nemo:{prettyLabel:"NeMo",repoName:"NeMo",repoUrl:"https://github.com/NVIDIA/NeMo",snippets:e=>{let t;return e.tags.includes("automatic-speech-recognition")&&(t=[`import nemo.collections.asr as nemo_asr
765
+ asr_model = nemo_asr.models.ASRModel.from_pretrained("${e.id}")
766
+
767
+ transcriptions = asr_model.transcribe(["file.wav"])`]),t??["# tag did not correspond to a valid NeMo domain."]},filter:!0,countDownloads:'path_extension:"nemo" OR path:"model_config.yaml" OR path_extension:"json"'},"open-oasis":{prettyLabel:"open-oasis",repoName:"open-oasis",repoUrl:"https://github.com/etched-ai/open-oasis",countDownloads:'path:"oasis500m.safetensors"'},open_clip:{prettyLabel:"OpenCLIP",repoName:"OpenCLIP",repoUrl:"https://github.com/mlfoundations/open_clip",snippets:e=>[`import open_clip
768
+
769
+ model, preprocess_train, preprocess_val = open_clip.create_model_and_transforms('hf-hub:${e.id}')
770
+ tokenizer = open_clip.get_tokenizer('hf-hub:${e.id}')`],filter:!0,countDownloads:`path:"open_clip_model.safetensors"
771
+ OR path:"model.safetensors"
772
+ OR path:"open_clip_pytorch_model.bin"
773
+ OR path:"pytorch_model.bin"`},openpeerllm:{prettyLabel:"OpenPeerLLM",repoName:"OpenPeerLLM",repoUrl:"https://huggingface.co/openpeerai/openpeerllm",docsUrl:"https://huggingface.co/OpenPeerAI/OpenPeerLLM/blob/main/README.md",countDownloads:'path:".meta-huggingface.json"',filter:!1},"open-sora":{prettyLabel:"Open-Sora",repoName:"Open-Sora",repoUrl:"https://github.com/hpcaitech/Open-Sora",filter:!1,countDownloads:'path:"Open_Sora_v2.safetensors"'},outetts:{prettyLabel:"OuteTTS",repoName:"OuteTTS",repoUrl:"https://github.com/edwko/OuteTTS",snippets:e=>{let t=e.tags??[];return t.includes("gguf")||t.includes("onnx")?[]:[`
774
+ import outetts
775
+
776
+ enum = outetts.Models("${e.id}".split("/", 1)[1]) # VERSION_1_0_SIZE_1B
777
+ cfg = outetts.ModelConfig.auto_config(enum, outetts.Backend.HF)
778
+ tts = outetts.Interface(cfg)
779
+
780
+ speaker = tts.load_default_speaker("EN-FEMALE-1-NEUTRAL")
781
+ tts.generate(
782
+ outetts.GenerationConfig(
783
+ text="Hello there, how are you doing?",
784
+ speaker=speaker,
785
+ )
786
+ ).save("output.wav")
787
+ `]},filter:!1},paddlenlp:{prettyLabel:"paddlenlp",repoName:"PaddleNLP",repoUrl:"https://github.com/PaddlePaddle/PaddleNLP",docsUrl:"https://huggingface.co/docs/hub/paddlenlp",snippets:e=>{if(!e.config?.architectures?.[0])return[`# ⚠️ Type of model unknown
788
+ from paddlenlp.transformers import AutoTokenizer, AutoModel
789
+
790
+ tokenizer = AutoTokenizer.from_pretrained("${e.id}", from_hf_hub=True)
791
+ model = AutoModel.from_pretrained("${e.id}", from_hf_hub=True)`];{let t=e.config.architectures[0];return[`from paddlenlp.transformers import AutoTokenizer, ${t}
792
+
793
+ tokenizer = AutoTokenizer.from_pretrained("${e.id}", from_hf_hub=True)
794
+ model = ${t}.from_pretrained("${e.id}", from_hf_hub=True)`]}},filter:!0,countDownloads:'path:"model_config.json"'},PaddleOCR:{prettyLabel:"PaddleOCR",repoName:"PaddleOCR",repoUrl:"https://github.com/PaddlePaddle/PaddleOCR",docsUrl:"https://www.paddleocr.ai/",snippets:e=>{let t={textline_detection:{className:"TextDetection"},textline_recognition:{className:"TextRecognition"},seal_text_detection:{className:"SealTextDetection"},doc_img_unwarping:{className:"TextImageUnwarping"},doc_img_orientation_classification:{className:"DocImgOrientationClassification"},textline_orientation_classification:{className:"TextLineOrientationClassification"},chart_parsing:{className:"ChartParsing"},formula_recognition:{className:"FormulaRecognition"},layout_detection:{className:"LayoutDetection"},table_cells_detection:{className:"TableCellsDetection"},wired_table_classification:{className:"TableClassification"},table_structure_recognition:{className:"TableStructureRecognition"}};if(e.tags.includes("doc_vlm"))return[`# 1. See https://www.paddlepaddle.org.cn/en/install to install paddlepaddle
795
+ # 2. pip install paddleocr
796
+
797
+ from paddleocr import DocVLM
798
+ model = DocVLM(model_name="${_(e.id)}")
799
+ output = model.predict(
800
+ input={"image": "path/to/image.png", "query": "Parsing this image and output the content in Markdown format."},
801
+ batch_size=1
802
+ )
803
+ for res in output:
804
+ res.print()
805
+ res.save_to_json(save_path="./output/res.json")`];if(e.tags.includes("document-parse"))return[`# See https://www.paddleocr.ai/latest/version3.x/pipeline_usage/PaddleOCR-VL.html to installation
806
+
807
+ from paddleocr import PaddleOCRVL
808
+ pipeline = PaddleOCRVL()
809
+ output = pipeline.predict("path/to/document_image.png")
810
+ for res in output:
811
+ res.print()
812
+ res.save_to_json(save_path="output")
813
+ res.save_to_markdown(save_path="output")`];for(let i of e.tags)if(i in t){let{className:r}=t[i];return[`# 1. See https://www.paddlepaddle.org.cn/en/install to install paddlepaddle
814
+ # 2. pip install paddleocr
815
+
816
+ from paddleocr import ${r}
817
+ model = ${r}(model_name="${_(e.id)}")
818
+ output = model.predict(input="path/to/image.png", batch_size=1)
819
+ for res in output:
820
+ res.print()
821
+ res.save_to_img(save_path="./output/")
822
+ res.save_to_json(save_path="./output/res.json")`]}return[`# Please refer to the document for information on how to use the model.
823
+ # https://paddlepaddle.github.io/PaddleOCR/latest/en/version3.x/module_usage/module_overview.html`]},filter:!0,countDownloads:'path_extension:"safetensors" OR path:"inference.pdiparams"'},peft:{prettyLabel:"PEFT",repoName:"PEFT",repoUrl:"https://github.com/huggingface/peft",snippets:e=>{let{base_model_name_or_path:t,task_type:i}=e.config?.peft??{},r=(e=>{switch(e){case"CAUSAL_LM":return"CausalLM";case"SEQ_2_SEQ_LM":return"Seq2SeqLM";case"TOKEN_CLS":return"TokenClassification";case"SEQ_CLS":return"SequenceClassification";default:return}})(i);return r?t?[`from peft import PeftModel
824
+ from transformers import AutoModelFor${r}
825
+
826
+ base_model = AutoModelFor${r}.from_pretrained("${t}")
827
+ model = PeftModel.from_pretrained(base_model, "${e.id}")`]:["Base model is not found."]:["Task type is invalid."]},filter:!0,countDownloads:'path:"adapter_config.json"'},"perception-encoder":{prettyLabel:"PerceptionEncoder",repoName:"PerceptionModels",repoUrl:"https://github.com/facebookresearch/perception_models",filter:!1,snippets:e=>{let t=`# Use PE-Core models as CLIP models
828
+ import core.vision_encoder.pe as pe
829
+
830
+ model = pe.CLIP.from_config("${e.id}", pretrained=True)`,i=`# Use any PE model as a vision encoder
831
+ import core.vision_encoder.pe as pe
832
+
833
+ model = pe.VisionTransformer.from_config("${e.id}", pretrained=True)`;return e.id.includes("Core")?[t,i]:[i]},countDownloads:'path_extension:"pt"'},"phantom-wan":{prettyLabel:"Phantom",repoName:"Phantom",repoUrl:"https://github.com/Phantom-video/Phantom",snippets:e=>[`from huggingface_hub import snapshot_download
834
+ from phantom_wan import WANI2V, configs
835
+
836
+ checkpoint_dir = snapshot_download("${e.id}")
837
+ wan_i2v = WanI2V(
838
+ config=configs.WAN_CONFIGS['i2v-14B'],
839
+ checkpoint_dir=checkpoint_dir,
840
+ )
841
+ video = wan_i2v.generate(text_prompt, image_prompt)`],filter:!1,countDownloads:'path_extension:"pth"'},"pruna-ai":{prettyLabel:"Pruna AI",repoName:"Pruna AI",repoUrl:"https://github.com/PrunaAI/pruna",snippets:e=>{var t;let i,r,n,s;return(i=(i=e.tags.includes("diffusers")?L(e).map(e=>e.replace(/\b\w*Pipeline\w*\b/g,"PrunaModel").replace(/from diffusers import ([^,\n]*PrunaModel[^,\n]*)/g,"").replace(/from diffusers import ([^,\n]+),?\s*([^,\n]*PrunaModel[^,\n]*)/g,"from diffusers import $1").replace(/from diffusers import\s*(\n|$)/g,"").replace(/from diffusers import PrunaModel/g,"from pruna import PrunaModel").replace(/from diffusers import ([^,\n]+), PrunaModel/g,"from diffusers import $1").replace(/from diffusers import PrunaModel, ([^,\n]+)/g,"from diffusers import $1").replace(/\n\n+/g,"\n").trim()):e.tags.includes("transformers")?(r=(t=e).transformersInfo,n=j(t).map(e=>e.replace(/from transformers import pipeline/g,"from pruna import PrunaModel").replace(/pipeline\([^)]*\)/g,`PrunaModel.from_pretrained("${t.id}")`)),r?.auto_model&&(n=n.map(e=>e.replace(RegExp(`from transformers import ${r.auto_model}
842
+ ?`,"g"),"").replace(RegExp(`${r.auto_model}.from_pretrained`,"g"),"PrunaModel.from_pretrained").replace(RegExp(`^.*from.*import.*(, *${r.auto_model})+.*$`,"gm"),e=>e.replace(RegExp(`, *${r.auto_model}`,"g"),"")))),n):(s=e,[`from pruna import PrunaModel
843
+ model = PrunaModel.from_pretrained("${s.id}")
844
+ `])).map(e=>/^from pruna import PrunaModel/m.test(e)?e:`from pruna import PrunaModel
845
+ ${e}`),e.tags.includes("pruna_pro-ai"))?i.map(e=>e.replace(/\bpruna\b/g,"pruna_pro").replace(/\bPrunaModel\b/g,"PrunaProModel")):i},docsUrl:"https://docs.pruna.ai"},pxia:{prettyLabel:"pxia",repoName:"pxia",repoUrl:"https://github.com/not-lain/pxia",snippets:e=>[`from pxia import AutoModel
846
+
847
+ model = AutoModel.from_pretrained("${e.id}")`],filter:!1},"pyannote-audio":{prettyLabel:"pyannote.audio",repoName:"pyannote-audio",repoUrl:"https://github.com/pyannote/pyannote-audio",snippets:e=>{if(e.tags.includes("pyannote-audio-pipeline"))return[`from pyannote.audio import Pipeline
848
+
849
+ pipeline = Pipeline.from_pretrained("${e.id}")
850
+
851
+ # inference on the whole file
852
+ pipeline("file.wav")
853
+
854
+ # inference on an excerpt
855
+ from pyannote.core import Segment
856
+ excerpt = Segment(start=2.0, end=5.0)
857
+
858
+ from pyannote.audio import Audio
859
+ waveform, sample_rate = Audio().crop("file.wav", excerpt)
860
+ pipeline({"waveform": waveform, "sample_rate": sample_rate})`];return[`from pyannote.audio import Model, Inference
861
+
862
+ model = Model.from_pretrained("${e.id}")
863
+ inference = Inference(model)
864
+
865
+ # inference on the whole file
866
+ inference("file.wav")
867
+
868
+ # inference on an excerpt
869
+ from pyannote.core import Segment
870
+ excerpt = Segment(start=2.0, end=5.0)
871
+ inference.crop("file.wav", excerpt)`]},filter:!0},"py-feat":{prettyLabel:"Py-Feat",repoName:"Py-Feat",repoUrl:"https://github.com/cosanlab/py-feat",docsUrl:"https://py-feat.org/",filter:!1},pythae:{prettyLabel:"pythae",repoName:"pythae",repoUrl:"https://github.com/clementchadebec/benchmark_VAE",snippets:e=>[`from pythae.models import AutoModel
872
+
873
+ model = AutoModel.load_from_hf_hub("${e.id}")`],filter:!1},quantumpeer:{prettyLabel:"QuantumPeer",repoName:"QuantumPeer",repoUrl:"https://github.com/OpenPeer-AI/QuantumPeer",filter:!1,countDownloads:'path_extension:"setup.py"'},recurrentgemma:{prettyLabel:"RecurrentGemma",repoName:"recurrentgemma",repoUrl:"https://github.com/google-deepmind/recurrentgemma",filter:!1,countDownloads:'path:"tokenizer.model"'},relik:{prettyLabel:"Relik",repoName:"Relik",repoUrl:"https://github.com/SapienzaNLP/relik",snippets:e=>[`from relik import Relik
874
+
875
+ relik = Relik.from_pretrained("${e.id}")`],filter:!1},refiners:{prettyLabel:"Refiners",repoName:"Refiners",repoUrl:"https://github.com/finegrain-ai/refiners",docsUrl:"https://refine.rs/",filter:!1,countDownloads:'path:"model.safetensors"'},renderformer:{prettyLabel:"RenderFormer",repoName:"RenderFormer",repoUrl:"https://github.com/microsoft/renderformer",snippets:e=>[`# Install from https://github.com/microsoft/renderformer
876
+
877
+ from renderformer import RenderFormerRenderingPipeline
878
+ pipeline = RenderFormerRenderingPipeline.from_pretrained("${e.id}")`],filter:!1},reverb:{prettyLabel:"Reverb",repoName:"Reverb",repoUrl:"https://github.com/revdotcom/reverb",filter:!1},rkllm:{prettyLabel:"RKLLM",repoName:"RKLLM",repoUrl:"https://github.com/airockchip/rknn-llm",countDownloads:'path_extension:"rkllm"'},saelens:{prettyLabel:"SAELens",repoName:"SAELens",repoUrl:"https://github.com/jbloomAus/SAELens",snippets:()=>[`# pip install sae-lens
879
+ from sae_lens import SAE
880
+
881
+ sae, cfg_dict, sparsity = SAE.from_pretrained(
882
+ release = "RELEASE_ID", # e.g., "gpt2-small-res-jb". See other options in https://github.com/jbloomAus/SAELens/blob/main/sae_lens/pretrained_saes.yaml
883
+ sae_id = "SAE_ID", # e.g., "blocks.8.hook_resid_pre". Won't always be a hook point
884
+ )`],filter:!1},sam2:{prettyLabel:"sam2",repoName:"sam2",repoUrl:"https://github.com/facebookresearch/segment-anything-2",filter:!1,snippets:e=>[`# Use SAM2 with images
885
+ import torch
886
+ from sam2.sam2_image_predictor import SAM2ImagePredictor
887
+
888
+ predictor = SAM2ImagePredictor.from_pretrained(${e.id})
889
+
890
+ with torch.inference_mode(), torch.autocast("cuda", dtype=torch.bfloat16):
891
+ predictor.set_image(<your_image>)
892
+ masks, _, _ = predictor.predict(<input_prompts>)`,`# Use SAM2 with videos
893
+ import torch
894
+ from sam2.sam2_video_predictor import SAM2VideoPredictor
895
+
896
+ predictor = SAM2VideoPredictor.from_pretrained(${e.id})
897
+
898
+ with torch.inference_mode(), torch.autocast("cuda", dtype=torch.bfloat16):
899
+ state = predictor.init_state(<your_video>)
900
+
901
+ # add new prompts and instantly get the output on the same frame
902
+ frame_idx, object_ids, masks = predictor.add_new_points(state, <your_prompts>):
903
+
904
+ # propagate the prompts to get masklets throughout the video
905
+ for frame_idx, object_ids, masks in predictor.propagate_in_video(state):
906
+ ...`],countDownloads:'path_extension:"pt"'},"sample-factory":{prettyLabel:"sample-factory",repoName:"sample-factory",repoUrl:"https://github.com/alex-petrenko/sample-factory",docsUrl:"https://huggingface.co/docs/hub/sample-factory",snippets:e=>[`python -m sample_factory.huggingface.load_from_hub -r ${e.id} -d ./train_dir`],filter:!0,countDownloads:'path:"cfg.json"'},"sap-rpt-1-oss":{prettyLabel:"sap-rpt-1-oss",repoName:"sap-rpt-1-oss",repoUrl:"https://github.com/SAP-samples/sap-rpt-1-oss",countDownloads:'path_extension:"pt"',snippets:()=>["pip install git+https://github.com/SAP-samples/sap-rpt-1-oss",`# Run a classification task
907
+ from sklearn.datasets import load_breast_cancer
908
+ from sklearn.metrics import accuracy_score
909
+ from sklearn.model_selection import train_test_split
910
+
911
+ from sap_rpt_oss import SAP_RPT_OSS_Classifier
912
+
913
+ # Load sample data
914
+ X, y = load_breast_cancer(return_X_y=True)
915
+ X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.5, random_state=42)
916
+
917
+ # Initialize a classifier, 8k context and 8-fold bagging gives best performance, reduce if running out of memory
918
+ clf = SAP_RPT_OSS_Classifier(max_context_size=8192, bagging=8)
919
+
920
+ clf.fit(X_train, y_train)
921
+
922
+ # Predict probabilities
923
+ prediction_probabilities = clf.predict_proba(X_test)
924
+ # Predict labels
925
+ predictions = clf.predict(X_test)
926
+ print("Accuracy", accuracy_score(y_test, predictions))`,`# Run a regression task
927
+ from sklearn.datasets import fetch_openml
928
+ from sklearn.metrics import r2_score
929
+ from sklearn.model_selection import train_test_split
930
+
931
+ from sap_rpt_oss import SAP_RPT_OSS_Regressor
932
+
933
+ # Load sample data
934
+ df = fetch_openml(data_id=531, as_frame=True)
935
+ X = df.data
936
+ y = df.target.astype(float)
937
+
938
+ # Train-test split
939
+ X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.5, random_state=42)
940
+
941
+ # Initialize the regressor, 8k context and 8-fold bagging gives best performance, reduce if running out of memory
942
+ regressor = SAP_RPT_OSS_Regressor(max_context_size=8192, bagging=8)
943
+
944
+ regressor.fit(X_train, y_train)
945
+
946
+ # Predict on the test set
947
+ predictions = regressor.predict(X_test)
948
+
949
+ r2 = r2_score(y_test, predictions)
950
+ print("R\xb2 Score:", r2)`]},sapiens:{prettyLabel:"sapiens",repoName:"sapiens",repoUrl:"https://github.com/facebookresearch/sapiens",filter:!1,countDownloads:'path_extension:"pt2" OR path_extension:"pth" OR path_extension:"onnx"'},seedvr:{prettyLabel:"SeedVR",repoName:"SeedVR",repoUrl:"https://github.com/ByteDance-Seed/SeedVR",filter:!1,countDownloads:'path_extension:"pth"'},"self-forcing":{prettyLabel:"SelfForcing",repoName:"SelfForcing",repoUrl:"https://github.com/guandeh17/Self-Forcing",filter:!1,countDownloads:'path_extension:"pt"'},"sentence-transformers":{prettyLabel:"sentence-transformers",repoName:"sentence-transformers",repoUrl:"https://github.com/UKPLab/sentence-transformers",docsUrl:"https://huggingface.co/docs/hub/sentence-transformers",snippets:e=>{let t=e.tags.includes(w)?", trust_remote_code=True":"";if(e.tags.includes("PyLate"))return[`from pylate import models
951
+
952
+ queries = [
953
+ "Which planet is known as the Red Planet?",
954
+ "What is the largest planet in our solar system?",
955
+ ]
956
+
957
+ documents = [
958
+ ["Mars is the Red Planet.", "Venus is Earth's twin."],
959
+ ["Jupiter is the largest planet.", "Saturn has rings."],
960
+ ]
961
+
962
+ model = models.ColBERT(model_name_or_path="${e.id}")
963
+
964
+ queries_emb = model.encode(queries, is_query=True)
965
+ docs_emb = model.encode(documents, is_query=False)`];if(e.tags.includes("cross-encoder")||"text-ranking"==e.pipeline_tag)return[`from sentence_transformers import CrossEncoder
966
+
967
+ model = CrossEncoder("${e.id}"${t})
968
+
969
+ query = "Which planet is known as the Red Planet?"
970
+ passages = [
971
+ "Venus is often called Earth's twin because of its similar size and proximity.",
972
+ "Mars, known for its reddish appearance, is often referred to as the Red Planet.",
973
+ "Jupiter, the largest planet in our solar system, has a prominent red spot.",
974
+ "Saturn, famous for its rings, is sometimes mistaken for the Red Planet."
975
+ ]
976
+
977
+ scores = model.predict([(query, passage) for passage in passages])
978
+ print(scores)`];let i=function(e){let t=e.widgetData?.[0];if(t?.source_sentence&&t?.sentences?.length)return[t.source_sentence,...t.sentences]}(e)??["The weather is lovely today.","It's so sunny outside!","He drove to the stadium."];return[`from sentence_transformers import SentenceTransformer
979
+
980
+ model = SentenceTransformer("${e.id}"${t})
981
+
982
+ sentences = ${JSON.stringify(i,null,4)}
983
+ embeddings = model.encode(sentences)
984
+
985
+ similarities = model.similarity(embeddings, embeddings)
986
+ print(similarities.shape)
987
+ # [${i.length}, ${i.length}]`]},filter:!0},setfit:{prettyLabel:"setfit",repoName:"setfit",repoUrl:"https://github.com/huggingface/setfit",docsUrl:"https://huggingface.co/docs/hub/setfit",snippets:e=>[`from setfit import SetFitModel
988
+
989
+ model = SetFitModel.from_pretrained("${e.id}")`],filter:!0},sklearn:{prettyLabel:"Scikit-learn",repoName:"Scikit-learn",repoUrl:"https://github.com/scikit-learn/scikit-learn",snippets:e=>{if(e.tags.includes("skops")){let t=e.config?.sklearn?.model?.file,i=e.config?.sklearn?.model_format;if(!t)return["# ⚠️ Model filename not specified in config.json"];if("pickle"===i)return[`import joblib
990
+ from skops.hub_utils import download
991
+ download("${e.id}", "path_to_folder")
992
+ model = joblib.load(
993
+ "${t}"
994
+ )
995
+ # only load pickle files from sources you trust
996
+ # read more about it here https://skops.readthedocs.io/en/stable/persistence.html`];return[`from skops.hub_utils import download
997
+ from skops.io import load
998
+ download("${e.id}", "path_to_folder")
999
+ # make sure model file is in skops format
1000
+ # if model is a pickle file, make sure it's from a source you trust
1001
+ model = load("path_to_folder/${t}")`]}return[`from huggingface_hub import hf_hub_download
1002
+ import joblib
1003
+ model = joblib.load(
1004
+ hf_hub_download("${e.id}", "sklearn_model.joblib")
1005
+ )
1006
+ # only load pickle files from sources you trust
1007
+ # read more about it here https://skops.readthedocs.io/en/stable/persistence.html`]},filter:!0,countDownloads:'path:"sklearn_model.joblib"'},spacy:{prettyLabel:"spaCy",repoName:"spaCy",repoUrl:"https://github.com/explosion/spaCy",docsUrl:"https://huggingface.co/docs/hub/spacy",snippets:e=>[`!pip install https://huggingface.co/${e.id}/resolve/main/${_(e.id)}-any-py3-none-any.whl
1008
+
1009
+ # Using spacy.load().
1010
+ import spacy
1011
+ nlp = spacy.load("${_(e.id)}")
1012
+
1013
+ # Importing as module.
1014
+ import ${_(e.id)}
1015
+ nlp = ${_(e.id)}.load()`],filter:!0,countDownloads:'path_extension:"whl"'},"span-marker":{prettyLabel:"SpanMarker",repoName:"SpanMarkerNER",repoUrl:"https://github.com/tomaarsen/SpanMarkerNER",docsUrl:"https://huggingface.co/docs/hub/span_marker",snippets:e=>[`from span_marker import SpanMarkerModel
1016
+
1017
+ model = SpanMarkerModel.from_pretrained("${e.id}")`],filter:!0},speechbrain:{prettyLabel:"speechbrain",repoName:"speechbrain",repoUrl:"https://github.com/speechbrain/speechbrain",docsUrl:"https://huggingface.co/docs/hub/speechbrain",snippets:e=>{let t=e.config?.speechbrain?.speechbrain_interface;if(void 0===t)return["# interface not specified in config.json"];let i=(e=>{switch(e){case"EncoderClassifier":return"classify_file";case"EncoderDecoderASR":case"EncoderASR":return"transcribe_file";case"SpectralMaskEnhancement":return"enhance_file";case"SepformerSeparation":return"separate_file";default:return}})(t);return void 0===i?["# interface in config.json invalid"]:[`from speechbrain.pretrained import ${t}
1018
+ model = ${t}.from_hparams(
1019
+ "${e.id}"
1020
+ )
1021
+ model.${i}("file.wav")`]},filter:!0,countDownloads:'path:"hyperparams.yaml"'},"ssr-speech":{prettyLabel:"SSR-Speech",repoName:"SSR-Speech",repoUrl:"https://github.com/WangHelin1997/SSR-Speech",filter:!1,countDownloads:'path_extension:".pth"'},"stable-audio-tools":{prettyLabel:"Stable Audio Tools",repoName:"stable-audio-tools",repoUrl:"https://github.com/Stability-AI/stable-audio-tools.git",filter:!1,countDownloads:'path:"model.safetensors"',snippets:e=>[`import torch
1022
+ import torchaudio
1023
+ from einops import rearrange
1024
+ from stable_audio_tools import get_pretrained_model
1025
+ from stable_audio_tools.inference.generation import generate_diffusion_cond
1026
+
1027
+ device = "cuda" if torch.cuda.is_available() else "cpu"
1028
+
1029
+ # Download model
1030
+ model, model_config = get_pretrained_model("${e.id}")
1031
+ sample_rate = model_config["sample_rate"]
1032
+ sample_size = model_config["sample_size"]
1033
+
1034
+ model = model.to(device)
1035
+
1036
+ # Set up text and timing conditioning
1037
+ conditioning = [{
1038
+ "prompt": "128 BPM tech house drum loop",
1039
+ }]
1040
+
1041
+ # Generate stereo audio
1042
+ output = generate_diffusion_cond(
1043
+ model,
1044
+ conditioning=conditioning,
1045
+ sample_size=sample_size,
1046
+ device=device
1047
+ )
1048
+
1049
+ # Rearrange audio batch to a single sequence
1050
+ output = rearrange(output, "b d n -> d (b n)")
1051
+
1052
+ # Peak normalize, clip, convert to int16, and save to file
1053
+ output = output.to(torch.float32).div(torch.max(torch.abs(output))).clamp(-1, 1).mul(32767).to(torch.int16).cpu()
1054
+ torchaudio.save("output.wav", output, sample_rate)`]},monkeyocr:{prettyLabel:"MonkeyOCR",repoName:"monkeyocr",repoUrl:"https://github.com/Yuliang-Liu/MonkeyOCR",filter:!1,countDownloads:'path:"Recognition/config.json"'},"diffusion-single-file":{prettyLabel:"Diffusion Single File",repoName:"diffusion-single-file",repoUrl:"https://github.com/comfyanonymous/ComfyUI",filter:!1,countDownloads:'path_extension:"safetensors"'},"seed-story":{prettyLabel:"SEED-Story",repoName:"SEED-Story",repoUrl:"https://github.com/TencentARC/SEED-Story",filter:!1,countDownloads:'path:"cvlm_llama2_tokenizer/tokenizer.model"',snippets:()=>[`# seed_story_cfg_path refers to 'https://github.com/TencentARC/SEED-Story/blob/master/configs/clm_models/agent_7b_sft.yaml'
1055
+ # llm_cfg_path refers to 'https://github.com/TencentARC/SEED-Story/blob/master/configs/clm_models/llama2chat7b_lora.yaml'
1056
+ from omegaconf import OmegaConf
1057
+ import hydra
1058
+
1059
+ # load Llama2
1060
+ llm_cfg = OmegaConf.load(llm_cfg_path)
1061
+ llm = hydra.utils.instantiate(llm_cfg, torch_dtype="fp16")
1062
+
1063
+ # initialize seed_story
1064
+ seed_story_cfg = OmegaConf.load(seed_story_cfg_path)
1065
+ seed_story = hydra.utils.instantiate(seed_story_cfg, llm=llm) `]},soloaudio:{prettyLabel:"SoloAudio",repoName:"SoloAudio",repoUrl:"https://github.com/WangHelin1997/SoloAudio",filter:!1,countDownloads:'path:"soloaudio_v2.pt"'},songbloom:{prettyLabel:"SongBloom",repoName:"SongBloom",repoUrl:"https://github.com/Cypress-Yang/SongBloom",filter:!1,countDownloads:'path_extension:"pt"'},"stable-baselines3":{prettyLabel:"stable-baselines3",repoName:"stable-baselines3",repoUrl:"https://github.com/huggingface/huggingface_sb3",docsUrl:"https://huggingface.co/docs/hub/stable-baselines3",snippets:e=>[`from huggingface_sb3 import load_from_hub
1066
+ checkpoint = load_from_hub(
1067
+ repo_id="${e.id}",
1068
+ filename="{MODEL FILENAME}.zip",
1069
+ )`],filter:!0,countDownloads:'path_extension:"zip"'},stanza:{prettyLabel:"Stanza",repoName:"stanza",repoUrl:"https://github.com/stanfordnlp/stanza",docsUrl:"https://huggingface.co/docs/hub/stanza",snippets:e=>[`import stanza
1070
+
1071
+ stanza.download("${_(e.id).replace("stanza-","")}")
1072
+ nlp = stanza.Pipeline("${_(e.id).replace("stanza-","")}")`],filter:!0,countDownloads:'path:"models/default.zip"'},supertonic:{prettyLabel:"Supertonic",repoName:"Supertonic",repoUrl:"https://github.com/supertone-inc/supertonic",snippets:e=>[`from supertonic import TTS
1073
+
1074
+ tts = TTS(auto_download=True)
1075
+
1076
+ style = tts.get_voice_style(voice_name="M1")
1077
+
1078
+ text = "The train delay was announced at 4:45 PM on Wed, Apr 3, 2024 due to track maintenance."
1079
+ wav, duration = tts.synthesize(text, voice_style=style)
1080
+
1081
+ tts.save_audio(wav, "output.wav")`],filter:!1},swarmformer:{prettyLabel:"SwarmFormer",repoName:"SwarmFormer",repoUrl:"https://github.com/takara-ai/SwarmFormer",snippets:e=>[`from swarmformer import SwarmFormerModel
1082
+
1083
+ model = SwarmFormerModel.from_pretrained("${e.id}")
1084
+ `],filter:!1},"f5-tts":{prettyLabel:"F5-TTS",repoName:"F5-TTS",repoUrl:"https://github.com/SWivid/F5-TTS",filter:!1,countDownloads:'path_extension:"safetensors" OR path_extension:"pt"'},genmo:{prettyLabel:"Genmo",repoName:"Genmo",repoUrl:"https://github.com/genmoai/models",filter:!1,countDownloads:'path:"vae_stats.json"'},"tencent-song-generation":{prettyLabel:"SongGeneration",repoName:"SongGeneration",repoUrl:"https://github.com/tencent-ailab/songgeneration",filter:!1,countDownloads:'path:"ckpt/songgeneration_base/model.pt"'},tensorflowtts:{prettyLabel:"TensorFlowTTS",repoName:"TensorFlowTTS",repoUrl:"https://github.com/TensorSpeech/TensorFlowTTS",snippets:e=>{if(e.tags.includes("text-to-mel"))return[`from tensorflow_tts.inference import AutoProcessor, TFAutoModel
1085
+
1086
+ processor = AutoProcessor.from_pretrained("${e.id}")
1087
+ model = TFAutoModel.from_pretrained("${e.id}")
1088
+ `];if(e.tags.includes("mel-to-wav"))return[`from tensorflow_tts.inference import TFAutoModel
1089
+
1090
+ model = TFAutoModel.from_pretrained("${e.id}")
1091
+ audios = model.inference(mels)
1092
+ `];return[`from tensorflow_tts.inference import TFAutoModel
1093
+
1094
+ model = TFAutoModel.from_pretrained("${e.id}")
1095
+ `]}},tensorrt:{prettyLabel:"TensorRT",repoName:"TensorRT",repoUrl:"https://github.com/NVIDIA/TensorRT",countDownloads:'path_extension:"onnx"'},tabpfn:{prettyLabel:"TabPFN",repoName:"TabPFN",repoUrl:"https://github.com/PriorLabs/TabPFN"},terratorch:{prettyLabel:"TerraTorch",repoName:"TerraTorch",repoUrl:"https://github.com/IBM/terratorch",docsUrl:"https://ibm.github.io/terratorch/",filter:!1,countDownloads:'path_extension:"pt" OR path_extension:"ckpt"',snippets:e=>[`from terratorch.registry import BACKBONE_REGISTRY
1096
+
1097
+ model = BACKBONE_REGISTRY.build("${e.id}")`]},"tic-clip":{prettyLabel:"TiC-CLIP",repoName:"TiC-CLIP",repoUrl:"https://github.com/apple/ml-tic-clip",filter:!1,countDownloads:'path_extension:"pt" AND path_prefix:"checkpoints/"'},timesfm:{prettyLabel:"TimesFM",repoName:"timesfm",repoUrl:"https://github.com/google-research/timesfm",filter:!1,countDownloads:'path:"checkpoints/checkpoint_1100000/state/checkpoint" OR path:"checkpoints/checkpoint_2150000/state/checkpoint" OR path_extension:"ckpt"'},timm:{prettyLabel:"timm",repoName:"pytorch-image-models",repoUrl:"https://github.com/rwightman/pytorch-image-models",docsUrl:"https://huggingface.co/docs/hub/timm",snippets:e=>[`import timm
1098
+
1099
+ model = timm.create_model("hf_hub:${e.id}", pretrained=True)`],filter:!0,countDownloads:'path:"pytorch_model.bin" OR path:"model.safetensors"'},tirex:{prettyLabel:"TiRex",repoName:"TiRex",repoUrl:"https://github.com/NX-AI/tirex",countDownloads:'path_extension:"ckpt"'},torchgeo:{prettyLabel:"TorchGeo",repoName:"TorchGeo",repoUrl:"https://github.com/microsoft/torchgeo",docsUrl:"https://torchgeo.readthedocs.io/",filter:!1,countDownloads:'path_extension:"pt" OR path_extension:"pth"'},transformers:{prettyLabel:"Transformers",repoName:"\uD83E\uDD17/transformers",repoUrl:"https://github.com/huggingface/transformers",docsUrl:"https://huggingface.co/docs/hub/transformers",snippets:j,filter:!0},"transformers.js":{prettyLabel:"Transformers.js",repoName:"transformers.js",repoUrl:"https://github.com/huggingface/transformers.js",docsUrl:"https://huggingface.co/docs/hub/transformers-js",snippets:e=>{if(!e.pipeline_tag)return["// ⚠️ Unknown pipeline tag"];let t="@huggingface/transformers";return[`// npm i ${t}
1100
+ import { pipeline } from '${t}';
1101
+
1102
+ // Allocate pipeline
1103
+ const pipe = await pipeline('${e.pipeline_tag}', '${e.id}');`]},filter:!0},trellis:{prettyLabel:"Trellis",repoName:"Trellis",repoUrl:"https://github.com/microsoft/TRELLIS",countDownloads:'path_extension:"safetensors"'},ultralytics:{prettyLabel:"ultralytics",repoName:"ultralytics",repoUrl:"https://github.com/ultralytics/ultralytics",docsUrl:"https://github.com/ultralytics/ultralytics",filter:!1,countDownloads:'path_extension:"pt"',snippets:R},univa:{prettyLabel:"univa",repoName:"univa",repoUrl:"https://github.com/PKU-YuanGroup/UniWorld-V1",snippets:e=>[`# Follow installation instructions at https://github.com/PKU-YuanGroup/UniWorld-V1
1104
+
1105
+ from univa.models.qwen2p5vl.modeling_univa_qwen2p5vl import UnivaQwen2p5VLForConditionalGeneration
1106
+ model = UnivaQwen2p5VLForConditionalGeneration.from_pretrained(
1107
+ "${e.id}",
1108
+ torch_dtype=torch.bfloat16,
1109
+ attn_implementation="flash_attention_2",
1110
+ ).to("cuda")
1111
+ processor = AutoProcessor.from_pretrained("${e.id}")
1112
+ `],filter:!0,countDownloads:'path:"config.json"'},"uni-3dar":{prettyLabel:"Uni-3DAR",repoName:"Uni-3DAR",repoUrl:"https://github.com/dptech-corp/Uni-3DAR",docsUrl:"https://github.com/dptech-corp/Uni-3DAR",countDownloads:'path_extension:"pt"'},"unity-sentis":{prettyLabel:"unity-sentis",repoName:"unity-sentis",repoUrl:"https://github.com/Unity-Technologies/sentis-samples",snippets:()=>[`string modelName = "[Your model name here].sentis";
1113
+ Model model = ModelLoader.Load(Application.streamingAssetsPath + "/" + modelName);
1114
+ IWorker engine = WorkerFactory.CreateWorker(BackendType.GPUCompute, model);
1115
+ // Please see provided C# file for more details
1116
+ `],filter:!0,countDownloads:'path_extension:"sentis"'},sana:{prettyLabel:"Sana",repoName:"Sana",repoUrl:"https://github.com/NVlabs/Sana",countDownloads:'path_extension:"pth"',snippets:e=>[`
1117
+ # Load the model and infer image from text
1118
+ import torch
1119
+ from app.sana_pipeline import SanaPipeline
1120
+ from torchvision.utils import save_image
1121
+
1122
+ sana = SanaPipeline("configs/sana_config/1024ms/Sana_1600M_img1024.yaml")
1123
+ sana.from_pretrained("hf://${e.id}")
1124
+
1125
+ image = sana(
1126
+ prompt='a cyberpunk cat with a neon sign that says "Sana"',
1127
+ height=1024,
1128
+ width=1024,
1129
+ guidance_scale=5.0,
1130
+ pag_guidance_scale=2.0,
1131
+ num_inference_steps=18,
1132
+ ) `]},videoprism:{prettyLabel:"VideoPrism",repoName:"VideoPrism",repoUrl:"https://github.com/google-deepmind/videoprism",countDownloads:'path_extension:"npz"',snippets:e=>[`# Install from https://github.com/google-deepmind/videoprism
1133
+ import jax
1134
+ from videoprism import models as vp
1135
+
1136
+ flax_model = vp.get_model("${e.id}")
1137
+ loaded_state = vp.load_pretrained_weights("${e.id}")
1138
+
1139
+ @jax.jit
1140
+ def forward_fn(inputs, train=False):
1141
+ return flax_model.apply(loaded_state, inputs, train=train)`]},"vfi-mamba":{prettyLabel:"VFIMamba",repoName:"VFIMamba",repoUrl:"https://github.com/MCG-NJU/VFIMamba",countDownloads:'path_extension:"pkl"',snippets:e=>[`from Trainer_finetune import Model
1142
+
1143
+ model = Model.from_pretrained("${e.id}")`]},lvface:{prettyLabel:"LVFace",repoName:"LVFace",repoUrl:"https://github.com/bytedance/LVFace",countDownloads:'path_extension:"pt" OR path_extension:"onnx"',snippets:e=>[`from huggingface_hub import hf_hub_download
1144
+ from inference_onnx import LVFaceONNXInferencer
1145
+
1146
+ model_path = hf_hub_download("${e.id}", "LVFace-L_Glint360K/LVFace-L_Glint360K.onnx")
1147
+ inferencer = LVFaceONNXInferencer(model_path, use_gpu=True, timeout=300)
1148
+ img_path = 'path/to/image1.jpg'
1149
+ embedding = inferencer.infer_from_image(img_path)`]},voicecraft:{prettyLabel:"VoiceCraft",repoName:"VoiceCraft",repoUrl:"https://github.com/jasonppy/VoiceCraft",docsUrl:"https://github.com/jasonppy/VoiceCraft",snippets:e=>[`from voicecraft import VoiceCraft
1150
+
1151
+ model = VoiceCraft.from_pretrained("${e.id}")`]},voxcpm:{prettyLabel:"VoxCPM",repoName:"VoxCPM",repoUrl:"https://github.com/OpenBMB/VoxCPM",snippets:e=>[`import soundfile as sf
1152
+ from voxcpm import VoxCPM
1153
+
1154
+ model = VoxCPM.from_pretrained("${e.id}")
1155
+
1156
+ wav = model.generate(
1157
+ text="VoxCPM is an innovative end-to-end TTS model from ModelBest, designed to generate highly expressive speech.",
1158
+ prompt_wav_path=None, # optional: path to a prompt speech for voice cloning
1159
+ prompt_text=None, # optional: reference text
1160
+ cfg_value=2.0, # LM guidance on LocDiT, higher for better adherence to the prompt, but maybe worse
1161
+ inference_timesteps=10, # LocDiT inference timesteps, higher for better result, lower for fast speed
1162
+ normalize=True, # enable external TN tool
1163
+ denoise=True, # enable external Denoise tool
1164
+ retry_badcase=True, # enable retrying mode for some bad cases (unstoppable)
1165
+ retry_badcase_max_times=3, # maximum retrying times
1166
+ retry_badcase_ratio_threshold=6.0, # maximum length restriction for bad case detection (simple but effective), it could be adjusted for slow pace speech
1167
+ )
1168
+
1169
+ sf.write("output.wav", wav, 16000)
1170
+ print("saved: output.wav")`],filter:!1},vui:{prettyLabel:"Vui",repoName:"Vui",repoUrl:"https://github.com/vui-ai/vui",countDownloads:'path_extension:"pt"',snippets:()=>[`# !pip install git+https://github.com/fluxions-ai/vui
1171
+
1172
+ import torchaudio
1173
+
1174
+ from vui.inference import render
1175
+ from vui.model import Vui,
1176
+
1177
+ model = Vui.from_pretrained().cuda()
1178
+ waveform = render(
1179
+ model,
1180
+ "Hey, here is some random stuff, usually something quite long as the shorter the text the less likely the model can cope!",
1181
+ )
1182
+ print(waveform.shape)
1183
+ torchaudio.save("out.opus", waveform[0], 22050)
1184
+ `]},vibevoice:{prettyLabel:"VibeVoice",repoName:"VibeVoice",repoUrl:"https://github.com/microsoft/VibeVoice",snippets:e=>[`import torch, soundfile as sf, librosa, numpy as np
1185
+ from vibevoice.processor.vibevoice_processor import VibeVoiceProcessor
1186
+ from vibevoice.modular.modeling_vibevoice_inference import VibeVoiceForConditionalGenerationInference
1187
+
1188
+ # Load voice sample (should be 24kHz mono)
1189
+ voice, sr = sf.read("path/to/voice_sample.wav")
1190
+ if voice.ndim > 1: voice = voice.mean(axis=1)
1191
+ if sr != 24000: voice = librosa.resample(voice, sr, 24000)
1192
+
1193
+ processor = VibeVoiceProcessor.from_pretrained("${e.id}")
1194
+ model = VibeVoiceForConditionalGenerationInference.from_pretrained(
1195
+ "${e.id}", torch_dtype=torch.bfloat16
1196
+ ).to("cuda").eval()
1197
+ model.set_ddpm_inference_steps(5)
1198
+
1199
+ inputs = processor(text=["Speaker 0: Hello!\\nSpeaker 1: Hi there!"],
1200
+ voice_samples=[[voice]], return_tensors="pt")
1201
+ audio = model.generate(**inputs, cfg_scale=1.3,
1202
+ tokenizer=processor.tokenizer).speech_outputs[0]
1203
+ sf.write("output.wav", audio.cpu().numpy().squeeze(), 24000)`],filter:!1},"wan2.2":{prettyLabel:"Wan2.2",repoName:"Wan2.2",repoUrl:"https://github.com/Wan-Video/Wan2.2",countDownloads:'path_filename:"config" AND path_extension:"json"'},wham:{prettyLabel:"WHAM",repoName:"wham",repoUrl:"https://huggingface.co/microsoft/wham",docsUrl:"https://huggingface.co/microsoft/wham/blob/main/README.md",countDownloads:'path_extension:"ckpt"'},whisperkit:{prettyLabel:"WhisperKit",repoName:"WhisperKit",repoUrl:"https://github.com/argmaxinc/WhisperKit",docsUrl:"https://github.com/argmaxinc/WhisperKit?tab=readme-ov-file#homebrew",snippets:()=>[`# Install CLI with Homebrew on macOS device
1204
+ brew install whisperkit-cli
1205
+
1206
+ # View all available inference options
1207
+ whisperkit-cli transcribe --help
1208
+
1209
+ # Download and run inference using whisper base model
1210
+ whisperkit-cli transcribe --audio-path /path/to/audio.mp3
1211
+
1212
+ # Or use your preferred model variant
1213
+ whisperkit-cli transcribe --model "large-v3" --model-prefix "distil" --audio-path /path/to/audio.mp3 --verbose`],countDownloads:'path_filename:"model" AND path_extension:"mil" AND _exists_:"path_prefix"'},yolov10:{prettyLabel:"YOLOv10",repoName:"YOLOv10",repoUrl:"https://github.com/THU-MIG/yolov10",docsUrl:"https://github.com/THU-MIG/yolov10",countDownloads:'path_extension:"pt" OR path_extension:"safetensors"',snippets:R},zonos:{prettyLabel:"Zonos",repoName:"Zonos",repoUrl:"https://github.com/Zyphra/Zonos",docsUrl:"https://github.com/Zyphra/Zonos",snippets:e=>[`# pip install git+https://github.com/Zyphra/Zonos.git
1214
+ import torchaudio
1215
+ from zonos.model import Zonos
1216
+ from zonos.conditioning import make_cond_dict
1217
+
1218
+ model = Zonos.from_pretrained("${e.id}", device="cuda")
1219
+
1220
+ wav, sr = torchaudio.load("speaker.wav") # 5-10s reference clip
1221
+ speaker = model.make_speaker_embedding(wav, sr)
1222
+
1223
+ cond = make_cond_dict(text="Hello, world!", speaker=speaker, language="en-us")
1224
+ codes = model.generate(model.prepare_conditioning(cond))
1225
+
1226
+ audio = model.autoencoder.decode(codes)[0].cpu()
1227
+ torchaudio.save("sample.wav", audio, model.autoencoder.sampling_rate)
1228
+ `],filter:!1},"3dtopia-xl":{prettyLabel:"3DTopia-XL",repoName:"3DTopia-XL",repoUrl:"https://github.com/3DTopia/3DTopia-XL",filter:!1,countDownloads:'path:"model_vae_fp16.pt"',snippets:e=>[`from threedtopia_xl.models import threedtopia_xl
1229
+
1230
+ model = threedtopia_xl.from_pretrained("${e.id}")
1231
+ model.generate(cond="path/to/image.png")`]}};Object.keys(U),Object.entries(U).filter(([e,t])=>t.filter).map(([e])=>e),(K=$||($={}))[K.F32=0]="F32",K[K.F16=1]="F16",K[K.Q4_0=2]="Q4_0",K[K.Q4_1=3]="Q4_1",K[K.Q4_1_SOME_F16=4]="Q4_1_SOME_F16",K[K.Q4_2=5]="Q4_2",K[K.Q4_3=6]="Q4_3",K[K.Q8_0=7]="Q8_0",K[K.Q5_0=8]="Q5_0",K[K.Q5_1=9]="Q5_1",K[K.Q2_K=10]="Q2_K",K[K.Q3_K_S=11]="Q3_K_S",K[K.Q3_K_M=12]="Q3_K_M",K[K.Q3_K_L=13]="Q3_K_L",K[K.Q4_K_S=14]="Q4_K_S",K[K.Q4_K_M=15]="Q4_K_M",K[K.Q5_K_S=16]="Q5_K_S",K[K.Q5_K_M=17]="Q5_K_M",K[K.Q6_K=18]="Q6_K",K[K.IQ2_XXS=19]="IQ2_XXS",K[K.IQ2_XS=20]="IQ2_XS",K[K.Q2_K_S=21]="Q2_K_S",K[K.IQ3_XS=22]="IQ3_XS",K[K.IQ3_XXS=23]="IQ3_XXS",K[K.IQ1_S=24]="IQ1_S",K[K.IQ4_NL=25]="IQ4_NL",K[K.IQ3_S=26]="IQ3_S",K[K.IQ3_M=27]="IQ3_M",K[K.IQ2_S=28]="IQ2_S",K[K.IQ2_M=29]="IQ2_M",K[K.IQ4_XS=30]="IQ4_XS",K[K.IQ1_M=31]="IQ1_M",K[K.BF16=32]="BF16",K[K.Q4_0_4_4=33]="Q4_0_4_4",K[K.Q4_0_4_8=34]="Q4_0_4_8",K[K.Q4_0_8_8=35]="Q4_0_8_8",K[K.TQ1_0=36]="TQ1_0",K[K.TQ2_0=37]="TQ2_0",K[K.MXFP4_MOE=38]="MXFP4_MOE",K[K.Q2_K_XL=1e3]="Q2_K_XL",K[K.Q3_K_XL=1001]="Q3_K_XL",K[K.Q4_K_XL=1002]="Q4_K_XL",K[K.Q5_K_XL=1003]="Q5_K_XL",K[K.Q6_K_XL=1004]="Q6_K_XL",K[K.Q8_K_XL=1005]="Q8_K_XL";let V=Object.values($).filter(e=>"string"==typeof e);RegExp(RegExp(`(?<quant>${V.join("|")})(_(?<sizeVariation>[A-Z]+))?`),"g"),$.F32,$.BF16,$.F16,$.Q8_K_XL,$.Q8_0,$.Q6_K_XL,$.Q6_K,$.Q5_K_XL,$.Q5_K_M,$.Q5_K_S,$.Q5_0,$.Q5_1,$.Q4_K_XL,$.Q4_K_M,$.Q4_K_S,$.IQ4_NL,$.IQ4_XS,$.Q4_0_4_4,$.Q4_0_4_8,$.Q4_0_8_8,$.Q4_1_SOME_F16,$.Q4_0,$.Q4_1,$.Q4_2,$.Q4_3,$.MXFP4_MOE,$.Q3_K_XL,$.Q3_K_L,$.Q3_K_M,$.Q3_K_S,$.IQ3_M,$.IQ3_S,$.IQ3_XS,$.IQ3_XXS,$.Q2_K_XL,$.Q2_K,$.Q2_K_S,$.IQ2_M,$.IQ2_S,$.IQ2_XS,$.IQ2_XXS,$.IQ1_S,$.IQ1_M,$.TQ1_0,$.TQ2_0,(q=W||(W={}))[q.F32=0]="F32",q[q.F16=1]="F16",q[q.Q4_0=2]="Q4_0",q[q.Q4_1=3]="Q4_1",q[q.Q5_0=6]="Q5_0",q[q.Q5_1=7]="Q5_1",q[q.Q8_0=8]="Q8_0",q[q.Q8_1=9]="Q8_1",q[q.Q2_K=10]="Q2_K",q[q.Q3_K=11]="Q3_K",q[q.Q4_K=12]="Q4_K",q[q.Q5_K=13]="Q5_K",q[q.Q6_K=14]="Q6_K",q[q.Q8_K=15]="Q8_K",q[q.IQ2_XXS=16]="IQ2_XXS",q[q.IQ2_XS=17]="IQ2_XS",q[q.IQ3_XXS=18]="IQ3_XXS",q[q.IQ1_S=19]="IQ1_S",q[q.IQ4_NL=20]="IQ4_NL",q[q.IQ3_S=21]="IQ3_S",q[q.IQ2_S=22]="IQ2_S",q[q.IQ4_XS=23]="IQ4_XS",q[q.I8=24]="I8",q[q.I16=25]="I16",q[q.I32=26]="I32",q[q.I64=27]="I64",q[q.F64=28]="F64",q[q.IQ1_M=29]="IQ1_M",q[q.BF16=30]="BF16",q[q.TQ1_0=34]="TQ1_0",q[q.TQ2_0=35]="TQ2_0",q[q.MXFP4=39]="MXFP4";var K,q,$,W,X,z=((X=z||{})[X.UINT8=0]="UINT8",X[X.INT8=1]="INT8",X[X.UINT16=2]="UINT16",X[X.INT16=3]="INT16",X[X.UINT32=4]="UINT32",X[X.INT32=5]="INT32",X[X.FLOAT32=6]="FLOAT32",X[X.BOOL=7]="BOOL",X[X.STRING=8]="STRING",X[X.ARRAY=9]="ARRAY",X[X.UINT64=10]="UINT64",X[X.INT64=11]="INT64",X[X.FLOAT64=12]="FLOAT64",X),J="u">typeof window&&void 0!==window.document,Y="object"==typeof self&&self.constructor&&"DedicatedWorkerGlobalScope"===self.constructor.name,Q=!J&&!Y;W.F32,W.F16,W.Q8_0,W.Q8_1,W.Q8_K,W.Q6_K,W.Q5_0,W.Q5_1,W.Q5_K,W.Q4_0,W.Q4_1,W.Q4_K,W.Q3_K,W.Q2_K,W.IQ4_XS,W.IQ3_S,W.IQ3_XXS,W.IQ2_S,W.IQ2_XS,W.IQ2_XXS,W.IQ1_S,W.IQ4_NL,W.I8,W.I16,W.I32,W.I64,W.F64,W.IQ1_M,W.BF16,W.TQ1_0,W.TQ2_0,W.MXFP4,W.F32,W.F16,W.Q4_0,W.Q4_1,W.Q5_0,W.Q5_1,W.Q8_0,W.Q8_1,W.Q2_K,W.Q3_K,W.Q4_K,W.Q5_K,W.Q6_K,W.Q8_K,W.IQ2_XXS,W.IQ2_XS,W.IQ3_XXS,W.IQ1_S,W.IQ4_NL,W.IQ3_S,W.IQ2_S,W.IQ4_XS,W.I8,W.I16,W.I32,W.I64,W.F64,W.IQ1_M,W.BF16,W.TQ1_0,W.TQ2_0,W.MXFP4;var H=new Uint8Array([71,71,85,70]);function G(e){return"string"==typeof z[e]}var Z=class{constructor(e,t){this.uri=e,this.params=t,this.chunk=0,this.buffer=new ArrayBuffer(0,{maxByteLength:5e7}),this.dataView=new DataView(this.buffer)}chunk;buffer;dataView;get view(){return this.dataView}async fetchChunk(){let e=[2e6*this.chunk,(this.chunk+1)*2e6-1],t=new Uint8Array(await (await (this.params?.fetch??fetch)(this.uri,{headers:{...this.params?.additionalFetchHeaders??{},Range:`bytes=${e[0]}-${e[1]}`}})).arrayBuffer());this.appendBuffer(t),this.chunk+=1}appendBuffer(e){if(ArrayBuffer.prototype.resize)this.buffer.resize((this.chunk+1)*2e6),new Uint8Array(this.buffer).set(e,2e6*this.chunk);else{let t=new ArrayBuffer((this.chunk+1)*2e6,{maxByteLength:5e7}),i=new Uint8Array(t);i.set(new Uint8Array(this.buffer)),i.set(e,2e6*this.chunk),this.buffer=t,this.dataView=new DataView(this.buffer)}}async fetchChunkIfNeeded(e){this.dataView.byteLength-e<5e5&&await this.fetchChunk()}},ee=class extends Z{async fetchChunk(){let{FileBlob:e}=await i.e(759).then(i.bind(i,22658)),t=await e.create(this.uri),r=[2e6*this.chunk,(this.chunk+1)*2e6-1],n=await t.slice(r[0],r[1]).arrayBuffer();this.appendBuffer(new Uint8Array(n)),this.chunk+=1}};function et(e,t,i,r){switch(i){case 1:return{value:BigInt(e.getUint32(t,r)),length:4};case 2:case 3:return{value:e.getBigUint64(t,r),length:8}}}function ei(e,t,i,r){let n=et(e,t,i,r),s=n.length;return{value:new TextDecoder().decode(e.buffer.slice(t+s,t+s+Number(n.value))),length:s+Number(n.value)}}async function er(e,t){let i,r,n;if(Q)if(e.match(/^https?:\/\//))i=new Z(e,t);else if(t?.allowLocalFile)i=new ee(e,t);else throw Error("Access to local file is not enabled, please set allowLocalFile to true");else{if(t?.allowLocalFile)throw Error("allowLocalFile cannot be used on browser");i=new Z(e,t)}if(await i.fetchChunk(),!((e,t)=>{for(let i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0})(new Uint8Array(i.view.buffer.slice(0,4)),H))throw Error("not a valid gguf file: not starting with GGUF magic number");let[s,a]=65535&(n=i.view.getUint32(4,!0))?[!0,n]:[!1,i.view.getUint32(4,!1)];if(1!==a&&2!==a&&3!==a)throw Error(`not a valid gguf file: unsupported version "${a}"`);let o=8,l=et(i.view,o,a,s);o+=l.length;let p=et(i.view,o,a,s);o+=p.length;let u={version:a,tensor_count:l.value,kv_count:p.value};t?.typedMetadata&&(r={version:{value:a,type:4},tensor_count:{value:l.value,type:1===a?4:10},kv_count:{value:p.value,type:1===a?4:10}});for(let e=0;e<p.value;e++){let e;await i.fetchChunkIfNeeded(o);let t=ei(i.view,o,a,s);o+=t.length;let n=i.view.getUint32(o,s);if(o+=4,!G(n))throw Error("Unsupported metadata type: "+n);for(;!e;)try{e=function e(t,i,r,n,s){switch(i){case 0:return{value:t.getUint8(r),length:1};case 1:return{value:t.getInt8(r),length:1};case 2:return{value:t.getUint16(r,s),length:2};case 3:return{value:t.getInt16(r,s),length:2};case 4:return{value:t.getUint32(r,s),length:4};case 5:return{value:t.getInt32(r,s),length:4};case 6:return{value:t.getFloat32(r,s),length:4};case 7:return{value:0!==t.getUint8(r),length:1};case 8:return ei(t,r,n,s);case 9:{let i=t.getUint32(r,s),a=et(t,r+4,n,s),o=4+a.length,l=[];for(let p=0;p<a.value;p++){let a=e(t,i,r+o,n,s);l.push(a.value),o+=a.length}return{value:l,length:o}}case 10:return{value:t.getBigUint64(r,s),length:8};case 11:return{value:t.getBigInt64(r,s),length:8};case 12:return{value:t.getFloat64(r,s),length:8}}}(i.view,n,o,a,s)}catch(e){if(e instanceof RangeError)await i.fetchChunk();else throw e}if(o+=e.length,u[t.value]=e.value,r){let a={value:e.value,type:n};if(9===n){let t=o-e.length,r=i.view.getUint32(t,s);G(r)&&(a.subType=r)}r[t.value]=a}}let c=o,d=[];for(let e=0;e<l.value;e++){await i.fetchChunkIfNeeded(o);let e=ei(i.view,o,a,s);o+=e.length;let t=i.view.getUint32(o,s);o+=4;let r=[];for(let e=0;e<t;e++){let e=et(i.view,o,a,s);r.push(e.value),o+=e.length}let n=i.view.getUint32(o,s);o+=4;let l=i.view.getBigUint64(o,s);o+=8,d.push({name:e.value,n_dims:t,shape:r,dtype:n,offset:l})}let h=Number(u["general.alignment"]??32),m=o,f=BigInt(o+h-1&~(h-1));if(t?.computeParametersCount&&t?.typedMetadata){let e=d.map(({shape:e})=>e.reduce((e,t)=>e*Number(t),1)).reduce((e,t)=>e+t,0);return{metadata:u,tensorInfos:d,tensorDataOffset:f,littleEndian:s,parameterCount:e,typedMetadata:r,tensorInfoByteRange:[c,m]}}if(t?.computeParametersCount){let e=d.map(({shape:e})=>e.reduce((e,t)=>e*Number(t),1)).reduce((e,t)=>e+t,0);return{metadata:u,tensorInfos:d,tensorDataOffset:f,littleEndian:s,parameterCount:e,tensorInfoByteRange:[c,m]}}return t?.typedMetadata?{metadata:u,tensorInfos:d,tensorDataOffset:f,littleEndian:s,typedMetadata:r,tensorInfoByteRange:[c,m]}:{metadata:u,tensorInfos:d,tensorDataOffset:f,littleEndian:s,tensorInfoByteRange:[c,m]}}},47680(e,t,i){i.d(t,{lF:()=>v});let r="null";function n(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")}function s(e){if(null===e)return null;if("object"==typeof e&&null!==e&&"toJSON"in e&&"function"==typeof e.toJSON){let t=e.toJSON();if(t!==e)return s(t)}if("string"==typeof e||"boolean"==typeof e)return e;if("number"==typeof e)return Object.is(e,-0)?0:Number.isFinite(e)?e:null;if("bigint"==typeof e)return e>=Number.MIN_SAFE_INTEGER&&e<=Number.MAX_SAFE_INTEGER?Number(e):e.toString();if(e instanceof Date)return e.toISOString();if(Array.isArray(e))return e.map(s);if(e instanceof Set)return Array.from(e).map(s);if(e instanceof Map)return Object.fromEntries(Array.from(e,([e,t])=>[String(e),s(t)]));if(function(e){if(null===e||"object"!=typeof e)return!1;let t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}(e)){let t={};for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=s(e[i]));return t}return null}function a(e){return null===e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e}function o(e){return Array.isArray(e)}function l(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function p(e){return 0===Object.keys(e).length}function u(e){return 0===e.length||e.every(e=>a(e))}function c(e){return 0===e.length||e.every(e=>l(e))}function d(e,t){return null===e?r:"boolean"==typeof e||"number"==typeof e?String(e):function(e,t=","){return!function(e,t=","){var i;if(!e||e!==e.trim())return!1;return!("true"===e||"false"===e||e===r||(i=e,/^-?\d+(?:\.\d+)?(?:e[+-]?\d+)?$/i.test(i)||/^0\d+$/.test(i))||e.includes(":")||e.includes('"')||e.includes("\\")||/[[\]{}]/.test(e)||/[\n\r\t]/.test(e)||e.includes(t)||e.startsWith("-"))}(e,t)?`"${n(e)}"`:e}(e,t)}function h(e){return/^[A-Z_][\w.]*$/i.test(e)?e:`"${n(e)}"`}function m(e,t=","){return e.map(e=>d(e,t)).join(t)}function f(e,t){let i=t?.key,r=t?.fields,n=t?.delimiter??",",s="";if(i&&(s+=h(i)),s+=`[${e}${","!==n?n:""}]`,r){let e=r.map(e=>h(e));s+=`{${e.join(n)}}`}return s+":"}function*y(e,t,i,r,n,s){let u=Object.keys(e);0!==t||r||(r=new Set(u.filter(e=>e.includes("."))));let c=s??i.flattenDepth;for(let[s,m]of Object.entries(e))yield*function*(e,t,i,r,n,s,u,c){let m=u?`${u}.${e}`:e,f=c??r.flattenDepth;if("safe"===r.keyFolding&&n){let c=function(e,t,i,r,n,s,a){if("safe"!==r.keyFolding||!l(t))return;let{segments:o,tail:u,leafValue:c}=function(e,t,i){let r=[e],n=t;for(;r.length<i&&l(n);){let e=Object.keys(n);if(1!==e.length)break;let t=e[0],i=n[t];r.push(t),n=i}return!l(n)||p(n)?{segments:r,tail:void 0,leafValue:n}:{segments:r,tail:n,leafValue:n}}(e,t,a??r.flattenDepth);if(o.length<2||!o.every(e=>/^[A-Z_]\w*$/i.test(e)))return;let d=o.join("."),h=s?`${s}.${d}`:d;if(!i.includes(d)&&!(n&&n.has(h)))return{foldedKey:d,remainder:u,leafValue:c,segmentCount:o.length}}(e,t,n,r,s,u,f);if(c){let{foldedKey:e,remainder:t,leafValue:n,segmentCount:m}=c,T=h(e);if(void 0===t){if(a(n))return void(yield E(i,`${T}: ${d(n,r.delimiter)}`,r.indent));else if(o(n))return void(yield*g(e,n,i,r));else if(l(n)&&p(n))return void(yield E(i,`${T}:`,r.indent))}if(l(t)){yield E(i,`${T}:`,r.indent);let n=u?`${u}.${e}`:e;yield*y(t,i+1,r,s,n,f-m);return}}}let T=h(e);a(t)?yield E(i,`${T}: ${d(t,r.delimiter)}`,r.indent):o(t)?yield*g(e,t,i,r):l(t)&&(yield E(i,`${T}:`,r.indent),p(t)||(yield*y(t,i+1,r,s,m,f)))}(s,m,t,i,u,r,n,c)}function*g(e,t,i,r){if(0===t.length)return void(yield E(i,f(0,{key:e,delimiter:r.delimiter}),r.indent));if(u(t))return void(yield E(i,T(t,r.delimiter,e),r.indent));if((0===t.length||t.every(e=>o(e)))&&t.every(e=>u(e)))return void(yield*function*(e,t,i,r){for(let n of(yield E(i,f(t.length,{key:e,delimiter:r.delimiter}),r.indent),t))if(u(n)){let e=T(n,r.delimiter);yield A(i+1,e,r.indent)}}(e,t,i,r));if(c(t)){let n=b(t);n?yield*function*(e,t,i,r,n){yield E(r,f(t.length,{key:e,fields:i,delimiter:n.delimiter}),n.indent),yield*x(t,i,r+1,n)}(e,t,n,i,r):yield*S(e,t,i,r);return}yield*S(e,t,i,r)}function T(e,t,i){let r=f(e.length,{key:i,delimiter:t}),n=m(e,t);return 0===e.length?r:`${r} ${n}`}function b(e){if(0===e.length)return;let t=Object.keys(e[0]);if(0!==t.length&&function(e,t){for(let i of e){if(Object.keys(i).length!==t.length)return!1;for(let e of t)if(!(e in i)||!a(i[e]))return!1}return!0}(e,t))return t}function*x(e,t,i,r){for(let n of e)yield E(i,m(t.map(e=>n[e]),r.delimiter),r.indent)}function*S(e,t,i,r){for(let n of(yield E(i,f(t.length,{key:e,delimiter:r.delimiter}),r.indent),t))yield*function* e(t,i,r){if(a(t))yield A(i,d(t,r.delimiter),r.indent);else if(o(t))if(u(t))yield A(i,T(t,r.delimiter),r.indent);else for(let n of(yield A(i,f(t.length,{delimiter:r.delimiter}),r.indent),t))yield*e(n,i+1,r);else l(t)&&(yield*function*(t,i,r){if(p(t))return void(yield E(i,"-",r.indent));let n=Object.entries(t),[s,m]=n[0],g=n.slice(1);if(o(m)&&c(m)){let e=b(m);if(e){yield A(i,f(m.length,{key:s,fields:e,delimiter:r.delimiter}),r.indent),yield*x(m,e,i+2,r),g.length>0&&(yield*y(Object.fromEntries(g),i+1,r));return}}let S=h(s);if(a(m))yield A(i,`${S}: ${d(m,r.delimiter)}`,r.indent);else if(o(m))if(0===m.length)yield A(i,`${S}${f(0,{delimiter:r.delimiter})}`,r.indent);else if(u(m))yield A(i,`${S}${T(m,r.delimiter)}`,r.indent);else for(let t of(yield A(i,`${S}${f(m.length,{delimiter:r.delimiter})}`,r.indent),m))yield*e(t,i+2,r);else l(m)&&(yield A(i,`${S}:`,r.indent),p(m)||(yield*y(m,i+2,r)));g.length>0&&(yield*y(Object.fromEntries(g),i+1,r))}(t,i,r))}(n,i+1,r)}Symbol("quotedKey");function E(e,t,i){return" ".repeat(i*e)+t}function A(e,t,i){return E(e,"- "+t,i)}function P(e,t,i){return l(e)?function(e,t,i){let r={};for(let[n,a]of Object.entries(e)){let e=[...i,n],o=t(n,a,e);void 0!==o&&(r[n]=P(s(o),t,e))}return r}(e,t,i):o(e)?function(e,t,i){let r=[];for(let n=0;n<e.length;n++){let a=e[n],o=[...i,n],l=t(String(n),a,o);if(void 0===l)continue;let p=s(l);r.push(P(p,t,o))}return r}(e,t,i):e}function v(e,t){return Array.from(function(e,t){var i,r;let n,p=s(e),u=(r=t,{indent:r?.indent??2,delimiter:r?.delimiter??",",keyFolding:r?.keyFolding??"off",flattenDepth:r?.flattenDepth??1/0,replacer:r?.replacer});return function*(e,t){if(a(e)){let i=d(e,t.delimiter);""!==i&&(yield i);return}o(e)?yield*g(void 0,e,0,t):l(e)&&(yield*y(e,0,t))}(u.replacer?void 0===(n=(i=u.replacer)("",p,[]))?P(p,i,[]):P(s(n),i,[]):p,u)}(e,t)).join("\n")}},37102(e,t,i){function r(e){return Array.isArray?Array.isArray(e):"[object Array]"===u(e)}i.d(t,{A:()=>U});let n=1/0;function s(e){return"string"==typeof e}function a(e){return"number"==typeof e}function o(e){return"object"==typeof e}function l(e){return null!=e}function p(e){return!e.trim().length}function u(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}let c=Object.prototype.hasOwnProperty;class d{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let i=h(e);this._keys.push(i),this._keyMap[i.id]=i,t+=i.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function h(e){let t=null,i=null,n=null,a=1,o=null;if(s(e)||r(e))n=e,t=m(e),i=f(e);else{if(!c.call(e,"name"))throw Error("Missing name property in key");let r=e.name;if(n=r,c.call(e,"weight")&&(a=e.weight)<=0)throw Error(`Property 'weight' in key '${r}' must be a positive integer`);t=m(r),i=f(r),o=e.getFn}return{path:t,id:i,weight:a,src:n,getFn:o}}function m(e){return r(e)?e:e.split(".")}function f(e){return r(e)?e.join("."):e}var y={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,getFn:function(e,t){let i=[],p=!1,c=(e,t,d)=>{if(l(e))if(t[d]){var h,m;let f=e[t[d]];if(!l(f))return;if(d===t.length-1&&(s(f)||a(f)||!0===(h=f)||!1===h||o(m=h)&&null!==m&&"[object Boolean]"==u(h)))i.push(null==f?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-n?"-0":t}(f));else if(r(f)){p=!0;for(let e=0,i=f.length;e<i;e+=1)c(f[e],t,d+1)}else t.length&&c(f,t,d+1)}else i.push(e)};return c(e,s(t)?t.split("."):t,0),p?i:i[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};let g=/[^ ]+/g;class T{constructor({getFn:e=y.getFn,fieldNormWeight:t=y.fieldNormWeight}={}){this.norm=function(e=1,t=3){let i=new Map,r=Math.pow(10,t);return{get(t){let n=t.match(g).length;if(i.has(n))return i.get(n);let s=parseFloat(Math.round(1/Math.pow(n,.5*e)*r)/r);return i.set(n,s),s},clear(){i.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,s(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){let t=this.size();s(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,i=this.size();t<i;t+=1)this.records[t].i-=1}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!l(e)||p(e))return;let i={v:e,i:t,n:this.norm.get(e)};this.records.push(i)}_addObject(e,t){let i={i:t,$:{}};this.keys.forEach((t,n)=>{let a=t.getFn?t.getFn(e):this.getFn(e,t.path);if(l(a)){if(r(a)){let e=[],t=[{nestedArrIndex:-1,value:a}];for(;t.length;){let{nestedArrIndex:i,value:n}=t.pop();if(l(n))if(s(n)&&!p(n)){let t={v:n,i:i,n:this.norm.get(n)};e.push(t)}else r(n)&&n.forEach((e,i)=>{t.push({nestedArrIndex:i,value:e})})}i.$[n]=e}else if(s(a)&&!p(a)){let e={v:a,n:this.norm.get(a)};i.$[n]=e}}}),this.records.push(i)}toJSON(){return{keys:this.keys,records:this.records}}}function b(e,t,{getFn:i=y.getFn,fieldNormWeight:r=y.fieldNormWeight}={}){let n=new T({getFn:i,fieldNormWeight:r});return n.setKeys(e.map(h)),n.setSources(t),n.create(),n}function x(e,{errors:t=0,currentLocation:i=0,expectedLocation:r=0,distance:n=y.distance,ignoreLocation:s=y.ignoreLocation}={}){let a=t/e.length;if(s)return a;let o=Math.abs(r-i);return n?a+o/n:o?1:a}let S=String.prototype.normalize?e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,""):e=>e;class E{constructor(e,{location:t=y.location,threshold:i=y.threshold,distance:r=y.distance,includeMatches:n=y.includeMatches,findAllMatches:s=y.findAllMatches,minMatchCharLength:a=y.minMatchCharLength,isCaseSensitive:o=y.isCaseSensitive,ignoreDiacritics:l=y.ignoreDiacritics,ignoreLocation:p=y.ignoreLocation}={}){if(this.options={location:t,threshold:i,distance:r,includeMatches:n,findAllMatches:s,minMatchCharLength:a,isCaseSensitive:o,ignoreDiacritics:l,ignoreLocation:p},e=o?e:e.toLowerCase(),e=l?S(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;let u=(e,t)=>{this.chunks.push({pattern:e,alphabet:function(e){let t={};for(let i=0,r=e.length;i<r;i+=1){let n=e.charAt(i);t[n]=(t[n]||0)|1<<r-i-1}return t}(e),startIndex:t})},c=this.pattern.length;if(c>32){let e=0,t=c%32,i=c-t;for(;e<i;)u(this.pattern.substr(e,32),e),e+=32;if(t){let e=c-32;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){let{isCaseSensitive:t,ignoreDiacritics:i,includeMatches:r}=this.options;if(e=t?e:e.toLowerCase(),e=i?S(e):e,this.pattern===e){let t={isMatch:!0,score:0};return r&&(t.indices=[[0,e.length-1]]),t}let{location:n,distance:s,threshold:a,findAllMatches:o,minMatchCharLength:l,ignoreLocation:p}=this.options,u=[],c=0,d=!1;this.chunks.forEach(({pattern:t,alphabet:i,startIndex:h})=>{let{isMatch:m,score:f,indices:g}=function(e,t,i,{location:r=y.location,distance:n=y.distance,threshold:s=y.threshold,findAllMatches:a=y.findAllMatches,minMatchCharLength:o=y.minMatchCharLength,includeMatches:l=y.includeMatches,ignoreLocation:p=y.ignoreLocation}={}){let u;if(t.length>32)throw Error("Pattern length exceeds max of 32.");let c=t.length,d=e.length,h=Math.max(0,Math.min(r,d)),m=s,f=h,g=o>1||l,T=g?Array(d):[];for(;(u=e.indexOf(t,f))>-1;)if(m=Math.min(x(t,{currentLocation:u,expectedLocation:h,distance:n,ignoreLocation:p}),m),f=u+c,g){let e=0;for(;e<c;)T[u+e]=1,e+=1}f=-1;let b=[],S=1,E=c+d,A=1<<c-1;for(let r=0;r<c;r+=1){let s=0,o=E;for(;s<o;)x(t,{errors:r,currentLocation:h+o,expectedLocation:h,distance:n,ignoreLocation:p})<=m?s=o:E=o,o=Math.floor((E-s)/2+s);E=o;let l=Math.max(1,h-o+1),u=a?d:Math.min(h+o,d)+c,y=Array(u+2);y[u+1]=(1<<r)-1;for(let s=u;s>=l;s-=1){let a=s-1,o=i[e.charAt(a)];if(g&&(T[a]=+!!o),y[s]=(y[s+1]<<1|1)&o,r&&(y[s]|=(b[s+1]|b[s])<<1|1|b[s+1]),y[s]&A&&(S=x(t,{errors:r,currentLocation:a,expectedLocation:h,distance:n,ignoreLocation:p}))<=m){if(m=S,(f=a)<=h)break;l=Math.max(1,2*h-f)}}if(x(t,{errors:r+1,currentLocation:h,expectedLocation:h,distance:n,ignoreLocation:p})>m)break;b=y}let P={isMatch:f>=0,score:Math.max(.001,S)};if(g){let e=function(e=[],t=y.minMatchCharLength){let i=[],r=-1,n=-1,s=0;for(let a=e.length;s<a;s+=1){let a=e[s];a&&-1===r?r=s:a||-1===r||((n=s-1)-r+1>=t&&i.push([r,n]),r=-1)}return e[s-1]&&s-r>=t&&i.push([r,s-1]),i}(T,o);e.length?l&&(P.indices=e):P.isMatch=!1}return P}(e,t,i,{location:n+h,distance:s,threshold:a,findAllMatches:o,minMatchCharLength:l,includeMatches:r,ignoreLocation:p});m&&(d=!0),c+=f,m&&g&&(u=[...u,...g])});let h={isMatch:d,score:d?c/this.chunks.length:1};return d&&r&&(h.indices=u),h}}class A{constructor(e){this.pattern=e}static isMultiMatch(e){return P(e,this.multiRegex)}static isSingleMatch(e){return P(e,this.singleRegex)}search(){}}function P(e,t){let i=e.match(t);return i?i[1]:null}class v extends A{constructor(e,{location:t=y.location,threshold:i=y.threshold,distance:r=y.distance,includeMatches:n=y.includeMatches,findAllMatches:s=y.findAllMatches,minMatchCharLength:a=y.minMatchCharLength,isCaseSensitive:o=y.isCaseSensitive,ignoreDiacritics:l=y.ignoreDiacritics,ignoreLocation:p=y.ignoreLocation}={}){super(e),this._bitapSearch=new E(e,{location:t,threshold:i,distance:r,includeMatches:n,findAllMatches:s,minMatchCharLength:a,isCaseSensitive:o,ignoreDiacritics:l,ignoreLocation:p})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class D extends A{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,i=0,r=[],n=this.pattern.length;for(;(t=e.indexOf(this.pattern,i))>-1;)i=t+n,r.push([t,i-1]);let s=!!r.length;return{isMatch:s,score:+!s,indices:r}}}let C=[class extends A{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){let t=e===this.pattern;return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}},D,class extends A{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){let t=e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}},class extends A{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){let t=!e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},class extends A{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){let t=!e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},class extends A{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){let t=e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[e.length-this.pattern.length,e.length-1]}}},class extends A{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){let t=-1===e.indexOf(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},v],w=C.length,_=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,I=new Set([v.type,D.type]),k=[];function N(e,t){for(let i=0,r=k.length;i<r;i+=1){let r=k[i];if(r.condition(e,t))return new r(e,t)}return new E(e,t)}let O="$and",F="$path",L=e=>!!(e[O]||e.$or),M=e=>({[O]:Object.keys(e).map(t=>({[t]:e[t]}))});function B(e,t,{auto:i=!0}={}){let n=e=>{let a=Object.keys(e),l=!!e[F];if(!l&&a.length>1&&!L(e))return n(M(e));if(!r(e)&&o(e)&&!L(e)){let r=l?e[F]:a[0],n=l?e.$val:e[r];if(!s(n))throw Error(`Invalid value for key ${r}`);let o={keyId:f(r),pattern:n};return i&&(o.searcher=N(n,t)),o}let p={children:[],operator:a[0]};return a.forEach(t=>{let i=e[t];r(i)&&i.forEach(e=>{p.children.push(n(e))})}),p};return L(e)||(e=M(e)),n(e)}function j(e,t){let i=e.matches;t.matches=[],l(i)&&i.forEach(e=>{if(!l(e.indices)||!e.indices.length)return;let{indices:i,value:r}=e,n={indices:i,value:r};e.key&&(n.key=e.key.src),e.idx>-1&&(n.refIndex=e.idx),t.matches.push(n)})}function R(e,t){t.score=e.score}class U{constructor(e,t={},i){this.options={...y,...t},this.options.useExtendedSearch,this._keyStore=new d(this.options.keys),this.setCollection(e,i)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof T))throw Error("Incorrect 'index' type");this._myIndex=t||b(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){l(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){let t=[];for(let i=0,r=this._docs.length;i<r;i+=1){let n=this._docs[i];e(n,i)&&(this.removeAt(i),i-=1,r-=1,t.push(n))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){let{includeMatches:i,includeScore:r,shouldSort:n,sortFn:o,ignoreFieldNorm:l}=this.options,p=s(e)?s(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return!function(e,{ignoreFieldNorm:t=y.ignoreFieldNorm}){e.forEach(e=>{let i=1;e.matches.forEach(({key:e,norm:r,score:n})=>{let s=e?e.weight:null;i*=Math.pow(0===n&&s?Number.EPSILON:n,(s||1)*(t?1:r))}),e.score=i})}(p,{ignoreFieldNorm:l}),n&&p.sort(o),a(t)&&t>-1&&(p=p.slice(0,t)),function(e,t,{includeMatches:i=y.includeMatches,includeScore:r=y.includeScore}={}){let n=[];return i&&n.push(j),r&&n.push(R),e.map(e=>{let{idx:i}=e,r={item:t[i],refIndex:i};return n.length&&n.forEach(t=>{t(e,r)}),r})}(p,this._docs,{includeMatches:i,includeScore:r})}_searchStringList(e){let t=N(e,this.options),{records:i}=this._myIndex,r=[];return i.forEach(({v:e,i:i,n:n})=>{if(!l(e))return;let{isMatch:s,score:a,indices:o}=t.searchIn(e);s&&r.push({item:e,idx:i,matches:[{score:a,value:e,norm:n,indices:o}]})}),r}_searchLogical(e){let t=B(e,this.options),i=(e,t,r)=>{if(!e.children){let{keyId:i,searcher:n}=e,s=this._findMatches({key:this._keyStore.get(i),value:this._myIndex.getValueForItemAtKeyId(t,i),searcher:n});return s&&s.length?[{idx:r,item:t,matches:s}]:[]}let n=[];for(let s=0,a=e.children.length;s<a;s+=1){let a=i(e.children[s],t,r);if(a.length)n.push(...a);else if(e.operator===O)return[]}return n},r=this._myIndex.records,n={},s=[];return r.forEach(({$:e,i:r})=>{if(l(e)){let a=i(t,e,r);a.length&&(n[r]||(n[r]={idx:r,item:e,matches:[]},s.push(n[r])),a.forEach(({matches:e})=>{n[r].matches.push(...e)}))}}),s}_searchObjectList(e){let t=N(e,this.options),{keys:i,records:r}=this._myIndex,n=[];return r.forEach(({$:e,i:r})=>{if(!l(e))return;let s=[];i.forEach((i,r)=>{s.push(...this._findMatches({key:i,value:e[r],searcher:t}))}),s.length&&n.push({idx:r,item:e,matches:s})}),n}_findMatches({key:e,value:t,searcher:i}){if(!l(t))return[];let n=[];if(r(t))t.forEach(({v:t,i:r,n:s})=>{if(!l(t))return;let{isMatch:a,score:o,indices:p}=i.searchIn(t);a&&n.push({score:o,key:e,value:t,idx:r,norm:s,indices:p})});else{let{v:r,n:s}=t,{isMatch:a,score:o,indices:l}=i.searchIn(r);a&&n.push({score:o,key:e,value:r,norm:s,indices:l})}return n}}U.version="7.1.0",U.createIndex=b,U.parseIndex=function(e,{getFn:t=y.getFn,fieldNormWeight:i=y.fieldNormWeight}={}){let{keys:r,records:n}=e,s=new T({getFn:t,fieldNormWeight:i});return s.setKeys(r),s.setIndexRecords(n),s},U.config=y,U.parseQuery=B,function(...e){k.push(...e)}(class{constructor(e,{isCaseSensitive:t=y.isCaseSensitive,ignoreDiacritics:i=y.ignoreDiacritics,includeMatches:r=y.includeMatches,minMatchCharLength:n=y.minMatchCharLength,ignoreLocation:s=y.ignoreLocation,findAllMatches:a=y.findAllMatches,location:o=y.location,threshold:l=y.threshold,distance:p=y.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:i,includeMatches:r,minMatchCharLength:n,findAllMatches:a,ignoreLocation:s,location:o,threshold:l,distance:p},e=t?e:e.toLowerCase(),e=i?S(e):e,this.pattern=e,this.query=function(e,t={}){return e.split("|").map(e=>{let i=e.trim().split(_).filter(e=>e&&!!e.trim()),r=[];for(let e=0,n=i.length;e<n;e+=1){let n=i[e],s=!1,a=-1;for(;!s&&++a<w;){let e=C[a],i=e.isMultiMatch(n);i&&(r.push(new e(i,t)),s=!0)}if(!s)for(a=-1;++a<w;){let e=C[a],i=e.isSingleMatch(n);if(i){r.push(new e(i,t));break}}}return r})}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){let t=this.query;if(!t)return{isMatch:!1,score:1};let{includeMatches:i,isCaseSensitive:r,ignoreDiacritics:n}=this.options;e=r?e:e.toLowerCase(),e=n?S(e):e;let s=0,a=[],o=0;for(let r=0,n=t.length;r<n;r+=1){let n=t[r];a.length=0,s=0;for(let t=0,r=n.length;t<r;t+=1){let r=n[t],{isMatch:l,indices:p,score:u}=r.search(e);if(l){if(s+=1,o+=u,i){let e=r.constructor.type;I.has(e)?a=[...a,...p]:a.push(p)}}else{o=0,s=0,a.length=0;break}}if(s){let e={isMatch:!0,score:o/s};return i&&(e.indices=a),e}}return{isMatch:!1,score:1}}})},43776(e,t,i){let r,n,s,a,o,l,p,u,c,d,h,m,f,y;i.d(t,{A:()=>j});var g=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,T=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,b=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,x=e=>"string"==typeof e&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||"$"===e||"_"===e||T.test(e)),S=e=>"string"==typeof e&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"$"===e||"_"===e||"‌"===e||"‍"===e||b.test(e)),E=e=>"string"==typeof e&&/[0-9]/.test(e),A=e=>"string"==typeof e&&/[0-9A-Fa-f]/.test(e);function P(){if(r[a])return String.fromCodePoint(r.codePointAt(a))}function v(){let e=P();return"\n"===e?(o++,l=0):e?l+=e.length:l++,e&&(a+=e.length),e}let D={default(){let e;switch(y){case" ":case"\v":case"\f":case" ":case"\xa0":case"\uFEFF":case"\n":case"\r":case"\u2028":case"\u2029":v();return;case"/":v(),d="comment";return;case void 0:return v(),C("eof")}return"string"==typeof(e=y)&&g.test(e)?void v():D[n]()},comment(){switch(y){case"*":v(),d="multiLineComment";return;case"/":v(),d="singleLineComment";return}throw O(v())},multiLineComment(){switch(y){case"*":v(),d="multiLineCommentAsterisk";return;case void 0:throw O(v())}v()},multiLineCommentAsterisk(){switch(y){case"*":v();return;case"/":v(),d="default";return;case void 0:throw O(v())}v(),d="multiLineComment"},singleLineComment(){switch(y){case"\n":case"\r":case"\u2028":case"\u2029":v(),d="default";return;case void 0:return v(),C("eof")}v()},value(){switch(y){case"{":case"[":return C("punctuator",v());case"n":return v(),w("ull"),C("null",null);case"t":return v(),w("rue"),C("boolean",!0);case"f":return v(),w("alse"),C("boolean",!1);case"-":case"+":"-"===v()&&(f=-1),d="sign";return;case".":h=v(),d="decimalPointLeading";return;case"0":h=v(),d="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":h=v(),d="decimalInteger";return;case"I":return v(),w("nfinity"),C("numeric",1/0);case"N":return v(),w("aN"),C("numeric",NaN);case'"':case"'":m='"'===v(),h="",d="string";return}throw O(v())},identifierNameStartEscape(){if("u"!==y)throw O(v());v();let e=_();switch(e){case"$":case"_":break;default:if(!x(e))throw L()}h+=e,d="identifierName"},identifierName(){switch(y){case"$":case"_":case"‌":case"‍":h+=v();return;case"\\":v(),d="identifierNameEscape";return}if(S(y)){h+=v();return}return C("identifier",h)},identifierNameEscape(){if("u"!==y)throw O(v());v();let e=_();switch(e){case"$":case"_":case"‌":case"‍":break;default:if(!S(e))throw L()}h+=e,d="identifierName"},sign(){switch(y){case".":h=v(),d="decimalPointLeading";return;case"0":h=v(),d="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":h=v(),d="decimalInteger";return;case"I":return v(),w("nfinity"),C("numeric",1/0*f);case"N":return v(),w("aN"),C("numeric",NaN)}throw O(v())},zero(){switch(y){case".":h+=v(),d="decimalPoint";return;case"e":case"E":h+=v(),d="decimalExponent";return;case"x":case"X":h+=v(),d="hexadecimal";return}return C("numeric",0*f)},decimalInteger(){switch(y){case".":h+=v(),d="decimalPoint";return;case"e":case"E":h+=v(),d="decimalExponent";return}if(E(y)){h+=v();return}return C("numeric",f*Number(h))},decimalPointLeading(){if(E(y)){h+=v(),d="decimalFraction";return}throw O(v())},decimalPoint(){switch(y){case"e":case"E":h+=v(),d="decimalExponent";return}if(E(y)){h+=v(),d="decimalFraction";return}return C("numeric",f*Number(h))},decimalFraction(){switch(y){case"e":case"E":h+=v(),d="decimalExponent";return}if(E(y)){h+=v();return}return C("numeric",f*Number(h))},decimalExponent(){switch(y){case"+":case"-":h+=v(),d="decimalExponentSign";return}if(E(y)){h+=v(),d="decimalExponentInteger";return}throw O(v())},decimalExponentSign(){if(E(y)){h+=v(),d="decimalExponentInteger";return}throw O(v())},decimalExponentInteger(){if(E(y)){h+=v();return}return C("numeric",f*Number(h))},hexadecimal(){if(A(y)){h+=v(),d="hexadecimalInteger";return}throw O(v())},hexadecimalInteger(){if(A(y)){h+=v();return}return C("numeric",f*Number(h))},string(){switch(y){case"\\":v(),h+=function(){switch(P()){case"b":return v(),"\b";case"f":return v(),"\f";case"n":return v(),"\n";case"r":return v(),"\r";case"t":return v()," ";case"v":return v(),"\v";case"0":if(v(),E(P()))throw O(v());return"\0";case"x":return v(),function(){let e="",t=P();if(!A(t)||(e+=v(),!A(t=P())))throw O(v());return String.fromCodePoint(parseInt(e+=v(),16))}();case"u":return v(),_();case"\n":case"\u2028":case"\u2029":return v(),"";case"\r":return v(),"\n"===P()&&v(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case void 0:throw O(v())}return v()}();return;case'"':if(m)return v(),C("string",h);h+=v();return;case"'":if(!m)return v(),C("string",h);h+=v();return;case"\n":case"\r":case void 0:throw O(v());case"\u2028":case"\u2029":var e;e=y,console.warn(`JSON5: '${M(e)}' in strings is not valid ECMAScript; consider escaping`)}h+=v()},start(){switch(y){case"{":case"[":return C("punctuator",v())}d="value"},beforePropertyName(){switch(y){case"$":case"_":h=v(),d="identifierName";return;case"\\":v(),d="identifierNameStartEscape";return;case"}":return C("punctuator",v());case'"':case"'":m='"'===v(),d="string";return}if(x(y)){h+=v(),d="identifierName";return}throw O(v())},afterPropertyName(){if(":"===y)return C("punctuator",v());throw O(v())},beforePropertyValue(){d="value"},afterPropertyValue(){switch(y){case",":case"}":return C("punctuator",v())}throw O(v())},beforeArrayValue(){if("]"===y)return C("punctuator",v());d="value"},afterArrayValue(){switch(y){case",":case"]":return C("punctuator",v())}throw O(v())},end(){throw O(v())}};function C(e,t){return{type:e,value:t,line:o,column:l}}function w(e){for(let t of e){if(P()!==t)throw O(v());v()}}function _(){let e="",t=4;for(;t-- >0;){if(!A(P()))throw O(v());e+=v()}return String.fromCodePoint(parseInt(e,16))}let I={start(){if("eof"===p.type)throw F();k()},beforePropertyName(){switch(p.type){case"identifier":case"string":u=p.value,n="afterPropertyName";return;case"punctuator":N();return;case"eof":throw F()}},afterPropertyName(){if("eof"===p.type)throw F();n="beforePropertyValue"},beforePropertyValue(){if("eof"===p.type)throw F();k()},beforeArrayValue(){if("eof"===p.type)throw F();"punctuator"===p.type&&"]"===p.value?N():k()},afterPropertyValue(){if("eof"===p.type)throw F();switch(p.value){case",":n="beforePropertyName";return;case"}":N()}},afterArrayValue(){if("eof"===p.type)throw F();switch(p.value){case",":n="beforeArrayValue";return;case"]":N()}},end(){}};function k(){let e;switch(p.type){case"punctuator":switch(p.value){case"{":e={};break;case"[":e=[]}break;case"null":case"boolean":case"numeric":case"string":e=p.value}if(void 0===c)c=e;else{let t=s[s.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,u,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(null!==e&&"object"==typeof e)s.push(e),n=Array.isArray(e)?"beforeArrayValue":"beforePropertyName";else{let e=s[s.length-1];n=null==e?"end":Array.isArray(e)?"afterArrayValue":"afterPropertyValue"}}function N(){s.pop();let e=s[s.length-1];n=null==e?"end":Array.isArray(e)?"afterArrayValue":"afterPropertyValue"}function O(e){return void 0===e?B(`JSON5: invalid end of input at ${o}:${l}`):B(`JSON5: invalid character '${M(e)}' at ${o}:${l}`)}function F(){return B(`JSON5: invalid end of input at ${o}:${l}`)}function L(){return l-=5,B(`JSON5: invalid identifier character at ${o}:${l}`)}function M(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let t=e.charCodeAt(0).toString(16);return"\\x"+("00"+t).substring(t.length)}return e}function B(e){let t=SyntaxError(e);return t.lineNumber=o,t.columnNumber=l,t}let j={parse:function(e,t){r=String(e),n="start",s=[],a=0,o=1,l=0,p=void 0,u=void 0,c=void 0;do p=function(){for(d="default",h="",m=!1,f=1;;){y=P();let e=D[d]();if(e)return e}}(),I[n]();while("eof"!==p.type);return"function"==typeof t?function e(t,i,r){let n=t[i];if(null!=n&&"object"==typeof n)if(Array.isArray(n))for(let t=0;t<n.length;t++){let i=String(t),s=e(n,i,r);void 0===s?delete n[i]:Object.defineProperty(n,i,{value:s,writable:!0,enumerable:!0,configurable:!0})}else for(let t in n){let i=e(n,t,r);void 0===i?delete n[t]:Object.defineProperty(n,t,{value:i,writable:!0,enumerable:!0,configurable:!0})}return r.call(t,i,n)}({"":c},"",t):c},stringify:function(e,t,i){let r,n,s,a=[],o="",l="";if(null==t||"object"!=typeof t||Array.isArray(t)||(i=t.space,s=t.quote,t=t.replacer),"function"==typeof t)n=t;else if(Array.isArray(t))for(let e of(r=[],t)){let t;"string"==typeof e?t=e:("number"==typeof e||e instanceof String||e instanceof Number)&&(t=String(e)),void 0!==t&&0>r.indexOf(t)&&r.push(t)}return i instanceof Number?i=Number(i):i instanceof String&&(i=String(i)),"number"==typeof i?i>0&&(i=Math.min(10,Math.floor(i)),l=" ".substr(0,i)):"string"==typeof i&&(l=i.substr(0,10)),function e(t,i){let s=i[t];switch(null!=s&&("function"==typeof s.toJSON5?s=s.toJSON5(t):"function"==typeof s.toJSON&&(s=s.toJSON(t))),n&&(s=n.call(i,t,s)),s instanceof Number?s=Number(s):s instanceof String?s=String(s):s instanceof Boolean&&(s=s.valueOf()),s){case null:return"null";case!0:return"true";case!1:return"false"}return"string"==typeof s?p(s):"number"==typeof s?String(s):"object"==typeof s?Array.isArray(s)?function(t){let i;if(a.indexOf(t)>=0)throw TypeError("Converting circular structure to JSON5");a.push(t);let r=o;o+=l;let n=[];for(let i=0;i<t.length;i++){let r=e(String(i),t);n.push(void 0!==r?r:"null")}if(0===n.length)i="[]";else if(""===l)i="["+n.join(",")+"]";else{let e=",\n"+o,t=n.join(e);i="[\n"+o+t+",\n"+r+"]"}return a.pop(),o=r,i}(s):function(t){let i;if(a.indexOf(t)>=0)throw TypeError("Converting circular structure to JSON5");a.push(t);let n=o;o+=l;let s=r||Object.keys(t),u=[];for(let i of s){let r=e(i,t);if(void 0!==r){let e=function(e){if(0===e.length)return p(e);let t=String.fromCodePoint(e.codePointAt(0));if(!x(t))return p(e);for(let i=t.length;i<e.length;i++)if(!S(String.fromCodePoint(e.codePointAt(i))))return p(e);return e}(i)+":";""!==l&&(e+=" "),e+=r,u.push(e)}}if(0===u.length)i="{}";else{let e;if(""===l)i="{"+(e=u.join(","))+"}";else{let t=",\n"+o;e=u.join(t),i="{\n"+o+e+",\n"+n+"}"}}return a.pop(),o=n,i}(s):void 0}("",{"":e});function p(e){let t={"'":.1,'"':.2},i={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},r="";for(let n=0;n<e.length;n++){let s=e[n];switch(s){case"'":case'"':t[s]++,r+=s;continue;case"\0":if(E(e[n+1])){r+="\\x00";continue}}if(i[s]){r+=i[s];continue}if(s<" "){let e=s.charCodeAt(0).toString(16);r+="\\x"+("00"+e).substring(e.length);continue}r+=s}let n=s||Object.keys(t).reduce((e,i)=>t[e]<t[i]?e:i);return r=r.replace(RegExp(n,"g"),i[n]),n+r+n}}}},1243(e){e.exports=JSON.parse('["decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","globalThis","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"]')},70270(e){e.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"]')}};