UNPKG

prettier

Version:

Prettier is an opinionated code formatter

11 lines 883 kB
(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.typescript=e()}})(function(){"use strict";var Xc=Object.defineProperty;var hy=Object.getOwnPropertyDescriptor;var yy=Object.getOwnPropertyNames;var gy=Object.prototype.hasOwnProperty;var jd=e=>{throw TypeError(e)};var by=(e,t,a)=>t in e?Xc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;var Ld=(e,t)=>{for(var a in t)Xc(e,a,{get:t[a],enumerable:!0})},vy=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let h of yy(t))!gy.call(e,h)&&h!==a&&Xc(e,h,{get:()=>t[h],enumerable:!(o=hy(t,h))||o.enumerable});return e};var xy=e=>vy(Xc({},"__esModule",{value:!0}),e);var Ma=(e,t,a)=>by(e,typeof t!="symbol"?t+"":t,a),Ty=(e,t,a)=>t.has(e)||jd("Cannot "+a);var Rd=(e,t,a)=>t.has(e)?jd("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,a);var we=(e,t,a)=>(Ty(e,t,"access private method"),a);var N3={};Ld(N3,{parsers:()=>Nd});var Nd={};Ld(Nd,{typescript:()=>P3});var Sy=()=>()=>{},Ja=Sy;var Bm="5.5";var Ot=[],wy=new Map;function ms(e){return e?e.length:0}function zn(e,t){if(e)for(let a=0;a<e.length;a++){let o=t(e[a],a);if(o)return o}}function ky(e,t){if(e!==void 0)for(let a=0;a<e.length;a++){let o=t(e[a],a);if(o!==void 0)return o}}function Ud(e,t,a){let o=[];B.assertEqual(e.length,t.length);for(let h=0;h<e.length;h++)o.push(a(e[h],t[h],h));return o}function lf(e,t){if(e){for(let a=0;a<e.length;a++)if(!t(e[a],a))return!1}return!0}function qm(e,t,a){if(e!==void 0)for(let o=a??0;o<e.length;o++){let h=e[o];if(t(h,o))return h}}function Jp(e,t,a){if(e===void 0)return-1;for(let o=a??0;o<e.length;o++)if(t(e[o],o))return o;return-1}function Ey(e,t,a=ff){if(e){for(let o of e)if(a(o,t))return!0}return!1}function Ay(e,t,a=ff){return e.length===t.length&&e.every((o,h)=>a(o,t[h]))}function Kr(e,t){if(e){let a=e.length,o=0;for(;o<a&&t(e[o]);)o++;if(o<a){let h=e.slice(0,o);for(o++;o<a;){let g=e[o];t(g)&&h.push(g),o++}return h}}return e}function Yp(e,t){let a;if(e){a=[];for(let o=0;o<e.length;o++)a.push(t(e[o],o))}return a}function zm(e){let t=[];for(let a of e)a&&(Zr(a)?Pn(t,a):t.push(a));return t}function Fm(e,t){let a;if(e)for(let o=0;o<e.length;o++){let h=t(e[o],o);h&&(Zr(h)?a=Pn(a,h):a=Cn(a,h))}return a||Ot}function Cy(e,t){let a;if(e)for(let o=0;o<e.length;o++){let h=e[o],g=t(h,o);(a||h!==g||Zr(g))&&(a||(a=e.slice(0,o)),Zr(g)?Pn(a,g):a.push(g))}return a||e}function Dy(e,t){let a=[];if(e)for(let o=0;o<e.length;o++){let h=t(e[o],o);h!==void 0&&a.push(h)}return a}function qt(e,t){if(e)if(t){for(let a of e)if(t(a))return!0}else return e.length>0;return!1}function uf(e,t){return qt(t)?qt(e)?[...e,...t]:t:e}function Py(e,t){return t}function Ny(e){return e.map(Py)}function Cn(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function Hp(e,t){return t<0?e.length+t:t}function Pn(e,t,a,o){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(a,o);a=a===void 0?0:Hp(t,a),o=o===void 0?t.length:Hp(t,o);for(let h=a;h<o&&h<t.length;h++)t[h]!==void 0&&e.push(t[h]);return e}function Iy(e,t,a){return Ey(e,t,a)?!1:(e.push(t),!0)}function Oy(e,t,a){return e?(Iy(e,t,a),e):[t]}function My(e,t,a){t.sort((o,h)=>a(e[o],e[h])||mf(o,h))}function Jy(e,t){let a=Ny(e);return My(e,a,t),a.map(o=>e[o])}var M3=Array.prototype.at?(e,t)=>e==null?void 0:e.at(t):(e,t)=>{if(e&&(t=Hp(e,t),t<e.length))return e[t]};function pf(e){return e===void 0||e.length===0?void 0:e[0]}function Ki(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function jy(e){return B.assert(e.length!==0),e[e.length-1]}function Ly(e){return e&&e.length===1?e[0]:void 0}function Ry(e,t,a,o,h){return Uy(e,a(t),a,o,h)}function Uy(e,t,a,o,h){if(!qt(e))return-1;let g=h||0,E=e.length-1;for(;g<=E;){let C=g+(E-g>>1),l=a(e[C],C);switch(o(l,t)){case-1:g=C+1;break;case 0:return C;case 1:E=C-1;break}}return~g}function By(e,t,a,o,h){if(e&&e.length>0){let g=e.length;if(g>0){let E=o===void 0||o<0?0:o,C=h===void 0||E+h>g-1?g-1:E+h,l;for(arguments.length<=2?(l=e[E],E++):l=a;E<=C;)l=t(l,e[E],E),E++;return l}}return a}var Vm=Object.prototype.hasOwnProperty;function Mr(e,t){return Vm.call(e,t)}function qy(e){let t=[];for(let a in e)Vm.call(e,a)&&t.push(a);return t}function zy(){let e=new Map;return e.add=Fy,e.remove=Vy,e}function Fy(e,t){let a=this.get(e);return a?a.push(t):this.set(e,a=[t]),a}function Vy(e,t){let a=this.get(e);a&&(Ky(a,t),a.length||this.delete(e))}function Zr(e){return Array.isArray(e)}function jp(e){return Zr(e)?e:[e]}function Wy(e,t){return e!==void 0&&t(e)?e:void 0}function Ir(e,t){return e!==void 0&&t(e)?e:B.fail(`Invalid cast. The supplied value ${e} did not pass the test '${B.getFunctionName(t)}'.`)}function Ga(e){}function Gy(){return!0}function kt(e){return e}function Bd(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function tr(e){let t=new Map;return a=>{let o=`${typeof a}:${a}`,h=t.get(o);return h===void 0&&!t.has(o)&&(h=e(a),t.set(o,h)),h}}function ff(e,t){return e===t}function df(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function Yy(e,t){return ff(e,t)}function Hy(e,t){return e===t?0:e===void 0?-1:t===void 0?1:e<t?-1:1}function mf(e,t){return Hy(e,t)}function rl(e,t,a){let o=Math.max(2,Math.floor(e.length*.34)),h=Math.floor(e.length*.4)+1,g;for(let E of t){let C=a(E);if(C!==void 0&&Math.abs(C.length-e.length)<=o){if(C===e||C.length<3&&C.toLowerCase()!==e.toLowerCase())continue;let l=Xy(e,C,h-.1);if(l===void 0)continue;B.assert(l<h),h=l,g=E}}return g}function Xy(e,t,a){let o=new Array(t.length+1),h=new Array(t.length+1),g=a+.01;for(let C=0;C<=t.length;C++)o[C]=C;for(let C=1;C<=e.length;C++){let l=e.charCodeAt(C-1),Z=Math.ceil(C>a?C-a:1),f=Math.floor(t.length>a+C?a+C:t.length);h[0]=C;let k=C;for(let w=1;w<Z;w++)h[w]=g;for(let w=Z;w<=f;w++){let J=e[C-1].toLowerCase()===t[w-1].toLowerCase()?o[w-1]+.1:o[w-1]+2,re=l===t.charCodeAt(w-1)?o[w-1]:Math.min(o[w]+1,h[w-1]+1,J);h[w]=re,k=Math.min(k,re)}for(let w=f+1;w<=t.length;w++)h[w]=g;if(k>a)return;let v=o;o=h,h=v}let E=o[t.length];return E>a?void 0:E}function $y(e,t,a){let o=e.length-t.length;return o>=0&&(a?df(e.slice(o),t):e.indexOf(t,o)===o)}function Qy(e,t){e[t]=e[e.length-1],e.pop()}function Ky(e,t){return Zy(e,a=>a===t)}function Zy(e,t){for(let a=0;a<e.length;a++)if(t(e[a]))return Qy(e,a),!0;return!1}function cl(e,t,a){return a?df(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function Xp(e){return e===void 0?void 0:[e]}var B;(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function a(j){return e.currentLogLevel<=j}e.shouldLog=a;function o(j,se){e.loggingHost&&a(j)&&e.loggingHost.log(j,se)}function h(j){o(3,j)}e.log=h,(j=>{function se(Ke){o(1,Ke)}j.error=se;function fe(Ke){o(2,Ke)}j.warn=fe;function xe(Ke){o(3,Ke)}j.log=xe;function Xe(Ke){o(4,Ke)}j.trace=Xe})(h=e.log||(e.log={}));let g={};function E(){return t}e.getAssertionLevel=E;function C(j){let se=t;if(t=j,j>se)for(let fe of qy(g)){let xe=g[fe];xe!==void 0&&e[fe]!==xe.assertion&&j>=xe.level&&(e[fe]=xe,g[fe]=void 0)}}e.setAssertionLevel=C;function l(j){return t>=j}e.shouldAssert=l;function Z(j,se){return l(j)?!0:(g[se]={level:j,assertion:e[se]},e[se]=Ga,!1)}function f(j,se){debugger;let fe=new Error(j?`Debug Failure. ${j}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(fe,se||f),fe}e.fail=f;function k(j,se,fe){return f(`${se||"Unexpected node."}\r Node ${Mt(j.kind)} was unexpected.`,fe||k)}e.failBadSyntaxKind=k;function v(j,se,fe,xe){j||(se=se?`False expression: ${se}`:"False expression.",fe&&(se+=`\r Verbose Debug Information: `+(typeof fe=="string"?fe:fe())),f(se,xe||v))}e.assert=v;function w(j,se,fe,xe,Xe){if(j!==se){let Ke=fe?xe?`${fe} ${xe}`:fe:"";f(`Expected ${j} === ${se}. ${Ke}`,Xe||w)}}e.assertEqual=w;function J(j,se,fe,xe){j>=se&&f(`Expected ${j} < ${se}. ${fe||""}`,xe||J)}e.assertLessThan=J;function re(j,se,fe){j>se&&f(`Expected ${j} <= ${se}`,fe||re)}e.assertLessThanOrEqual=re;function be(j,se,fe){j<se&&f(`Expected ${j} >= ${se}`,fe||be)}e.assertGreaterThanOrEqual=be;function he(j,se,fe){j==null&&f(se,fe||he)}e.assertIsDefined=he;function me(j,se,fe){return he(j,se,fe||me),j}e.checkDefined=me;function O(j,se,fe){for(let xe of j)he(xe,se,fe||O)}e.assertEachIsDefined=O;function ae(j,se,fe){return O(j,se,fe||ae),j}e.checkEachDefined=ae;function ve(j,se="Illegal value:",fe){let xe=typeof j=="object"&&Mr(j,"kind")&&Mr(j,"pos")?"SyntaxKind: "+Mt(j.kind):JSON.stringify(j);return f(`${se} ${xe}`,fe||ve)}e.assertNever=ve;function X(j,se,fe,xe){Z(1,"assertEachNode")&&v(se===void 0||lf(j,se),fe||"Unexpected node.",()=>`Node array did not pass test '${Tn(se)}'.`,xe||X)}e.assertEachNode=X;function oe(j,se,fe,xe){Z(1,"assertNode")&&v(j!==void 0&&(se===void 0||se(j)),fe||"Unexpected node.",()=>`Node ${Mt(j==null?void 0:j.kind)} did not pass test '${Tn(se)}'.`,xe||oe)}e.assertNode=oe;function G(j,se,fe,xe){Z(1,"assertNotNode")&&v(j===void 0||se===void 0||!se(j),fe||"Unexpected node.",()=>`Node ${Mt(j.kind)} should not have passed test '${Tn(se)}'.`,xe||G)}e.assertNotNode=G;function ht(j,se,fe,xe){Z(1,"assertOptionalNode")&&v(se===void 0||j===void 0||se(j),fe||"Unexpected node.",()=>`Node ${Mt(j==null?void 0:j.kind)} did not pass test '${Tn(se)}'.`,xe||ht)}e.assertOptionalNode=ht;function ir(j,se,fe,xe){Z(1,"assertOptionalToken")&&v(se===void 0||j===void 0||j.kind===se,fe||"Unexpected node.",()=>`Node ${Mt(j==null?void 0:j.kind)} was not a '${Mt(se)}' token.`,xe||ir)}e.assertOptionalToken=ir;function xn(j,se,fe){Z(1,"assertMissingNode")&&v(j===void 0,se||"Unexpected node.",()=>`Node ${Mt(j.kind)} was unexpected'.`,fe||xn)}e.assertMissingNode=xn;function ar(j){}e.type=ar;function Tn(j){if(typeof j!="function")return"";if(Mr(j,"name"))return j.name;{let se=Function.prototype.toString.call(j),fe=/^function\s+([\w$]+)\s*\(/.exec(se);return fe?fe[1]:""}}e.getFunctionName=Tn;function On(j){return`{ name: ${Ts(j.escapedName)}; flags: ${ut(j.flags)}; declarations: ${Yp(j.declarations,se=>Mt(se.kind))} }`}e.formatSymbol=On;function Ve(j=0,se,fe){let xe=Rr(se);if(j===0)return xe.length>0&&xe[0][0]===0?xe[0][1]:"0";if(fe){let Xe=[],Ke=j;for(let[ot,Pt]of xe){if(ot>j)break;ot!==0&&ot&j&&(Xe.push(Pt),Ke&=~ot)}if(Ke===0)return Xe.join("|")}else for(let[Xe,Ke]of xe)if(Xe===j)return Ke;return j.toString()}e.formatEnum=Ve;let _r=new Map;function Rr(j){let se=_r.get(j);if(se)return se;let fe=[];for(let Xe in j){let Ke=j[Xe];typeof Ke=="number"&&fe.push([Ke,Xe])}let xe=Jy(fe,(Xe,Ke)=>mf(Xe[0],Ke[0]));return _r.set(j,xe),xe}function Mt(j){return Ve(j,ce,!1)}e.formatSyntaxKind=Mt;function Vn(j){return Ve(j,Xm,!1)}e.formatSnippetKind=Vn;function Mn(j){return Ve(j,Jr,!1)}e.formatScriptKind=Mn;function Jt(j){return Ve(j,Xt,!0)}e.formatNodeFlags=Jt;function xt(j){return Ve(j,Gm,!0)}e.formatNodeCheckFlags=xt;function Qe(j){return Ve(j,hf,!0)}e.formatModifierFlags=Qe;function Wn(j){return Ve(j,Hm,!0)}e.formatTransformFlags=Wn;function nn(j){return Ve(j,$m,!0)}e.formatEmitFlags=nn;function ut(j){return Ve(j,yf,!0)}e.formatSymbolFlags=ut;function st(j){return Ve(j,zt,!0)}e.formatTypeFlags=st;function Vt(j){return Ve(j,Ym,!0)}e.formatSignatureFlags=Vt;function jt(j){return Ve(j,bl,!0)}e.formatObjectFlags=jt;function pt(j){return Ve(j,Qp,!0)}e.formatFlowFlags=pt;function sr(j){return Ve(j,Wm,!0)}e.formatRelationComparisonResult=sr;function yt(j){return Ve(j,CheckMode,!0)}e.formatCheckMode=yt;function Sn(j){return Ve(j,SignatureCheckMode,!0)}e.formatSignatureCheckMode=Sn;function vt(j){return Ve(j,TypeFacts,!0)}e.formatTypeFacts=vt;let dn=!1,rt;function Wt(j){"__debugFlowFlags"in j||Object.defineProperties(j,{__tsDebuggerDisplay:{value(){let se=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",fe=this.flags&-2048;return`${se}${fe?` (${pt(fe)})`:""}`}},__debugFlowFlags:{get(){return Ve(this.flags,Qp,!0)}},__debugToString:{value(){return Tr(this)}}})}function on(j){return dn&&(typeof Object.setPrototypeOf=="function"?(rt||(rt=Object.create(Object.prototype),Wt(rt)),Object.setPrototypeOf(j,rt)):Wt(j)),j}e.attachFlowNodeDebugInfo=on;let or;function vr(j){"__tsDebuggerDisplay"in j||Object.defineProperties(j,{__tsDebuggerDisplay:{value(se){return se=String(se).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${se}`}}})}function xr(j){dn&&(typeof Object.setPrototypeOf=="function"?(or||(or=Object.create(Array.prototype),vr(or)),Object.setPrototypeOf(j,or)):vr(j))}e.attachNodeArrayDebugInfo=xr;function Gn(){if(dn)return;let j=new WeakMap,se=new WeakMap;Object.defineProperties(Ct.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let xe=this.flags&33554432?"TransientSymbol":"Symbol",Xe=this.flags&-33554433;return`${xe} '${ef(this)}'${Xe?` (${ut(Xe)})`:""}`}},__debugFlags:{get(){return ut(this.flags)}}}),Object.defineProperties(Ct.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let xe=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",Xe=this.flags&524288?this.objectFlags&-1344:0;return`${xe}${this.symbol?` '${ef(this.symbol)}'`:""}${Xe?` (${jt(Xe)})`:""}`}},__debugFlags:{get(){return st(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?jt(this.objectFlags):""}},__debugTypeToString:{value(){let xe=j.get(this);return xe===void 0&&(xe=this.checker.typeToString(this),j.set(this,xe)),xe}}}),Object.defineProperties(Ct.getSignatureConstructor().prototype,{__debugFlags:{get(){return Vt(this.flags)}},__debugSignatureToString:{value(){var xe;return(xe=this.checker)==null?void 0:xe.signatureToString(this)}}});let fe=[Ct.getNodeConstructor(),Ct.getIdentifierConstructor(),Ct.getTokenConstructor(),Ct.getSourceFileConstructor()];for(let xe of fe)Mr(xe.prototype,"__debugKind")||Object.defineProperties(xe.prototype,{__tsDebuggerDisplay:{value(){return`${za(this)?"GeneratedIdentifier":et(this)?`Identifier '${Nn(this)}'`:wi(this)?`PrivateIdentifier '${Nn(this)}'`:Qa(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:Ai(this)?`NumericLiteral ${this.text}`:qf(this)?`BigIntLiteral ${this.text}n`:zf(this)?"TypeParameterDeclaration":As(this)?"ParameterDeclaration":Ff(this)?"ConstructorDeclaration":hl(this)?"GetAccessorDeclaration":Ds(this)?"SetAccessorDeclaration":Y1(this)?"CallSignatureDeclaration":H1(this)?"ConstructSignatureDeclaration":Vf(this)?"IndexSignatureDeclaration":X1(this)?"TypePredicateNode":Al(this)?"TypeReferenceNode":Wf(this)?"FunctionTypeNode":Gf(this)?"ConstructorTypeNode":u6(this)?"TypeQueryNode":$1(this)?"TypeLiteralNode":p6(this)?"ArrayTypeNode":f6(this)?"TupleTypeNode":d6(this)?"OptionalTypeNode":m6(this)?"RestTypeNode":K1(this)?"UnionTypeNode":Z1(this)?"IntersectionTypeNode":h6(this)?"ConditionalTypeNode":y6(this)?"InferTypeNode":eh(this)?"ParenthesizedTypeNode":g6(this)?"ThisTypeNode":th(this)?"TypeOperatorNode":b6(this)?"IndexedAccessTypeNode":nh(this)?"MappedTypeNode":v6(this)?"LiteralTypeNode":Q1(this)?"NamedTupleMember":x6(this)?"ImportTypeNode":Mt(this.kind)}${this.flags?` (${Jt(this.flags)})`:""}`}},__debugKind:{get(){return Mt(this.kind)}},__debugNodeFlags:{get(){return Jt(this.flags)}},__debugModifierFlags:{get(){return Qe(bb(this))}},__debugTransformFlags:{get(){return Wn(this.transformFlags)}},__debugIsParseTreeNode:{get(){return fl(this)}},__debugEmitFlags:{get(){return nn(Wa(this))}},__debugGetText:{value(Xe){if(Ua(this))return"";let Ke=se.get(this);if(Ke===void 0){let ot=Ug(this),Pt=ot&&Ya(ot);Ke=Pt?tm(Pt,ot,Xe):"",se.set(this,Ke)}return Ke}}});dn=!0}e.enableDebugInfo=Gn;function Yn(j){let se=j&7,fe=se===0?"in out":se===3?"[bivariant]":se===2?"in":se===1?"out":se===4?"[independent]":"";return j&8?fe+=" (unmeasurable)":j&16&&(fe+=" (unreliable)"),fe}e.formatVariance=Yn;class Ur{__debugToString(){var se;switch(this.kind){case 3:return((se=this.debugInfo)==null?void 0:se.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return Ud(this.sources,this.targets||Yp(this.sources,()=>"any"),(fe,xe)=>`${fe.__debugTypeToString()} -> ${typeof xe=="string"?xe:xe.__debugTypeToString()}`).join(", ");case 2:return Ud(this.sources,this.targets,(fe,xe)=>`${fe.__debugTypeToString()} -> ${xe().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` `).join(` `)} m2: ${this.mapper2.__debugToString().split(` `).join(` `)}`;default:return ve(this)}}}e.DebugTypeMapper=Ur;function Hn(j){return e.isDebugging?Object.setPrototypeOf(j,Ur.prototype):j}e.attachDebugPrototypeIfDebug=Hn;function Ne(j){return console.log(Tr(j))}e.printControlFlowGraph=Ne;function Tr(j){let se=-1;function fe(u){return u.id||(u.id=se,se--),u.id}let xe;(u=>{u.lr="\u2500",u.ud="\u2502",u.dr="\u256D",u.dl="\u256E",u.ul="\u256F",u.ur="\u2570",u.udr="\u251C",u.udl="\u2524",u.dlr="\u252C",u.ulr="\u2534",u.udlr="\u256B"})(xe||(xe={}));let Xe;(u=>{u[u.None=0]="None",u[u.Up=1]="Up",u[u.Down=2]="Down",u[u.Left=4]="Left",u[u.Right=8]="Right",u[u.UpDown=3]="UpDown",u[u.LeftRight=12]="LeftRight",u[u.UpLeft=5]="UpLeft",u[u.UpRight=9]="UpRight",u[u.DownLeft=6]="DownLeft",u[u.DownRight=10]="DownRight",u[u.UpDownLeft=7]="UpDownLeft",u[u.UpDownRight=11]="UpDownRight",u[u.UpLeftRight=13]="UpLeftRight",u[u.DownLeftRight=14]="DownLeftRight",u[u.UpDownLeftRight=15]="UpDownLeftRight",u[u.NoChildren=16]="NoChildren"})(Xe||(Xe={}));let Ke=2032,ot=882,Pt=Object.create(null),Tt=[],ft=[],Br=Se(j,new Set);for(let u of Tt)u.text=at(u.flowNode,u.circular),ye(u);let Sr=Ye(Br),Jn=$e(Sr);return Ze(Br,0),mn();function Xn(u){return!!(u.flags&128)}function Pi(u){return!!(u.flags&12)&&!!u.antecedent}function z(u){return!!(u.flags&Ke)}function V(u){return!!(u.flags&ot)}function Q(u){let Oe=[];for(let Me of u.edges)Me.source===u&&Oe.push(Me.target);return Oe}function Te(u){let Oe=[];for(let Me of u.edges)Me.target===u&&Oe.push(Me.source);return Oe}function Se(u,Oe){let Me=fe(u),U=Pt[Me];if(U&&Oe.has(u))return U.circular=!0,U={id:-1,flowNode:u,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Tt.push(U),U;if(Oe.add(u),!U)if(Pt[Me]=U={id:Me,flowNode:u,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Tt.push(U),Pi(u))for(let qe of u.antecedent)Ce(U,qe,Oe);else z(u)&&Ce(U,u.antecedent,Oe);return Oe.delete(u),U}function Ce(u,Oe,Me){let U=Se(Oe,Me),qe={source:u,target:U};ft.push(qe),u.edges.push(qe),U.edges.push(qe)}function ye(u){if(u.level!==-1)return u.level;let Oe=0;for(let Me of Te(u))Oe=Math.max(Oe,ye(Me)+1);return u.level=Oe}function Ye(u){let Oe=0;for(let Me of Q(u))Oe=Math.max(Oe,Ye(Me));return Oe+1}function $e(u){let Oe=M(Array(u),0);for(let Me of Tt)Oe[Me.level]=Math.max(Oe[Me.level],Me.text.length);return Oe}function Ze(u,Oe){if(u.lane===-1){u.lane=Oe,u.endLane=Oe;let Me=Q(u);for(let U=0;U<Me.length;U++){U>0&&Oe++;let qe=Me[U];Ze(qe,Oe),qe.endLane>u.endLane&&(Oe=qe.endLane)}u.endLane=Oe}}function Ee(u){if(u&2)return"Start";if(u&4)return"Branch";if(u&8)return"Loop";if(u&16)return"Assignment";if(u&32)return"True";if(u&64)return"False";if(u&128)return"SwitchClause";if(u&256)return"ArrayMutation";if(u&512)return"Call";if(u&1024)return"ReduceLabel";if(u&1)return"Unreachable";throw new Error}function wn(u){let Oe=Ya(u);return tm(Oe,u,!1)}function at(u,Oe){let Me=Ee(u.flags);if(Oe&&(Me=`${Me}#${fe(u)}`),Xn(u)){let U=[],{switchStatement:qe,clauseStart:cn,clauseEnd:Fe}=u.node;for(let He=cn;He<Fe;He++){let Nt=qe.caseBlock.clauses[He];A6(Nt)?U.push("default"):U.push(wn(Nt.expression))}Me+=` (${U.join(", ")})`}else V(u)&&u.node&&(Me+=` (${wn(u.node)})`);return Oe==="circularity"?`Circular(${Me})`:Me}function mn(){let u=Jn.length,Oe=Tt.reduce((Fe,He)=>Math.max(Fe,He.lane),0)+1,Me=M(Array(Oe),""),U=Jn.map(()=>Array(Oe)),qe=Jn.map(()=>M(Array(Oe),0));for(let Fe of Tt){U[Fe.level][Fe.lane]=Fe;let He=Q(Fe);for(let Et=0;Et<He.length;Et++){let It=He[Et],Gt=8;It.lane===Fe.lane&&(Gt|=4),Et>0&&(Gt|=1),Et<He.length-1&&(Gt|=2),qe[Fe.level][It.lane]|=Gt}He.length===0&&(qe[Fe.level][Fe.lane]|=16);let Nt=Te(Fe);for(let Et=0;Et<Nt.length;Et++){let It=Nt[Et],Gt=4;Et>0&&(Gt|=1),Et<Nt.length-1&&(Gt|=2),qe[Fe.level-1][It.lane]|=Gt}}for(let Fe=0;Fe<u;Fe++)for(let He=0;He<Oe;He++){let Nt=Fe>0?qe[Fe-1][He]:0,Et=He>0?qe[Fe][He-1]:0,It=qe[Fe][He];It||(Nt&8&&(It|=12),Et&2&&(It|=3),qe[Fe][He]=It)}for(let Fe=0;Fe<u;Fe++)for(let He=0;He<Me.length;He++){let Nt=qe[Fe][He],Et=Nt&4?"\u2500":" ",It=U[Fe][He];It?(cn(He,It.text),Fe<u-1&&(cn(He," "),cn(He,Be(Et,Jn[Fe]-It.text.length)))):Fe<u-1&&cn(He,Be(Et,Jn[Fe]+1)),cn(He,ii(Nt)),cn(He,Nt&8&&Fe<u-1&&!U[Fe+1][He]?"\u2500":" ")}return` ${Me.join(` `)} `;function cn(Fe,He){Me[Fe]+=He}}function ii(u){switch(u){case 3:return"\u2502";case 12:return"\u2500";case 5:return"\u256F";case 9:return"\u2570";case 6:return"\u256E";case 10:return"\u256D";case 7:return"\u2524";case 11:return"\u251C";case 13:return"\u2534";case 14:return"\u252C";case 15:return"\u256B"}return" "}function M(u,Oe){if(u.fill)u.fill(Oe);else for(let Me=0;Me<u.length;Me++)u[Me]=Oe;return u}function Be(u,Oe){if(u.repeat)return Oe>0?u.repeat(Oe):"";let Me="";for(;Me.length<Oe;)Me+=u;return Me}}e.formatControlFlowGraph=Tr})(B||(B={}));var J3=Date.now,$p=new Proxy(()=>{},{get:()=>$p}),qd=()=>{},eg=()=>{},il,ce=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.ImportAttributes=300]="ImportAttributes",e[e.ImportAttribute=301]="ImportAttribute",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.SourceFile=307]="SourceFile",e[e.Bundle=308]="Bundle",e[e.JSDocTypeExpression=309]="JSDocTypeExpression",e[e.JSDocNameReference=310]="JSDocNameReference",e[e.JSDocMemberName=311]="JSDocMemberName",e[e.JSDocAllType=312]="JSDocAllType",e[e.JSDocUnknownType=313]="JSDocUnknownType",e[e.JSDocNullableType=314]="JSDocNullableType",e[e.JSDocNonNullableType=315]="JSDocNonNullableType",e[e.JSDocOptionalType=316]="JSDocOptionalType",e[e.JSDocFunctionType=317]="JSDocFunctionType",e[e.JSDocVariadicType=318]="JSDocVariadicType",e[e.JSDocNamepathType=319]="JSDocNamepathType",e[e.JSDoc=320]="JSDoc",e[e.JSDocComment=320]="JSDocComment",e[e.JSDocText=321]="JSDocText",e[e.JSDocTypeLiteral=322]="JSDocTypeLiteral",e[e.JSDocSignature=323]="JSDocSignature",e[e.JSDocLink=324]="JSDocLink",e[e.JSDocLinkCode=325]="JSDocLinkCode",e[e.JSDocLinkPlain=326]="JSDocLinkPlain",e[e.JSDocTag=327]="JSDocTag",e[e.JSDocAugmentsTag=328]="JSDocAugmentsTag",e[e.JSDocImplementsTag=329]="JSDocImplementsTag",e[e.JSDocAuthorTag=330]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=331]="JSDocDeprecatedTag",e[e.JSDocClassTag=332]="JSDocClassTag",e[e.JSDocPublicTag=333]="JSDocPublicTag",e[e.JSDocPrivateTag=334]="JSDocPrivateTag",e[e.JSDocProtectedTag=335]="JSDocProtectedTag",e[e.JSDocReadonlyTag=336]="JSDocReadonlyTag",e[e.JSDocOverrideTag=337]="JSDocOverrideTag",e[e.JSDocCallbackTag=338]="JSDocCallbackTag",e[e.JSDocOverloadTag=339]="JSDocOverloadTag",e[e.JSDocEnumTag=340]="JSDocEnumTag",e[e.JSDocParameterTag=341]="JSDocParameterTag",e[e.JSDocReturnTag=342]="JSDocReturnTag",e[e.JSDocThisTag=343]="JSDocThisTag",e[e.JSDocTypeTag=344]="JSDocTypeTag",e[e.JSDocTemplateTag=345]="JSDocTemplateTag",e[e.JSDocTypedefTag=346]="JSDocTypedefTag",e[e.JSDocSeeTag=347]="JSDocSeeTag",e[e.JSDocPropertyTag=348]="JSDocPropertyTag",e[e.JSDocThrowsTag=349]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=350]="JSDocSatisfiesTag",e[e.JSDocImportTag=351]="JSDocImportTag",e[e.SyntaxList=352]="SyntaxList",e[e.NotEmittedStatement=353]="NotEmittedStatement",e[e.PartiallyEmittedExpression=354]="PartiallyEmittedExpression",e[e.CommaListExpression=355]="CommaListExpression",e[e.SyntheticReferenceExpression=356]="SyntheticReferenceExpression",e[e.Count=357]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=309]="FirstJSDocNode",e[e.LastJSDocNode=351]="LastJSDocNode",e[e.FirstJSDocTagNode=327]="FirstJSDocTagNode",e[e.LastJSDocTagNode=351]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(ce||{}),Xt=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(Xt||{}),hf=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(hf||{});var Wm=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e))(Wm||{});var Qp=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(Qp||{});var yf=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=-1]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(yf||{});var Gm=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e[e.LazyFlags=539358128]="LazyFlags",e))(Gm||{}),zt=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.Reserved2=1073741824]="Reserved2",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleto