diff --git a/src/launch.js b/src/launch.js index 8925245..c51f0a0 100644 --- a/src/launch.js +++ b/src/launch.js @@ -1,28 +1,28 @@ -var ote=(R=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(R,{get:(M,ee)=>(typeof require<"u"?require:M)[ee]}):R)(function(R){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+R+'" is not supported')});var Ugt=(R,M)=>()=>(R&&(M=R(R=0)),M);var pyt={};var U4e=Ugt(()=>{define("vs/language/typescript/tsWorker",["require"],R=>{"use strict";var M=(()=>{var ee=Object.defineProperty,le=Object.getOwnPropertyDescriptor,Ie=Object.getOwnPropertyNames,Oe=Object.prototype.hasOwnProperty,ft=(th,Ni)=>{for(var bt in Ni)ee(th,bt,{get:Ni[bt],enumerable:!0})},Mt=(th,Ni,bt,Cs)=>{if(Ni&&typeof Ni=="object"||typeof Ni=="function")for(let xa of Ie(Ni))!Oe.call(th,xa)&&xa!==bt&&ee(th,xa,{get:()=>Ni[xa],enumerable:!(Cs=le(Ni,xa))||Cs.enumerable});return th},Yt=th=>Mt(ee({},"__esModule",{value:!0}),th),qt={};ft(qt,{TypeScriptWorker:()=>QS,create:()=>yL});var vr={};ft(vr,{EndOfLineState:()=>Us,IndentStyle:()=>Fc,ScriptKind:()=>Nc,ScriptTarget:()=>$S,TokenClass:()=>yx,createClassifier:()=>jo,createLanguageService:()=>_o,displayPartsToString:()=>Fa,flattenDiagnosticMessageText:()=>yl,typescript:()=>Cl});var _i=void 0,ti={exports:{}},Dr=(()=>{var th=Object.defineProperty,Ni=Object.getOwnPropertyNames,bt=(e,t)=>function(){return e&&(t=(0,e[Ni(e)[0]])(e=0)),t},Cs=(e,t)=>function(){return t||(0,e[Ni(e)[0]])((t={exports:{}}).exports,t),t.exports},xa=(e,t)=>{for(var r in t)th(e,r,{get:t[r],enumerable:!0})},g_,Jp,xG,Aze=bt({"src/compiler/corePublic.ts"(){"use strict";g_="5.4",Jp="5.4.5",xG=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(xG||{})}});function Nn(e){return e?e.length:0}function gn(e,t){if(e)for(let r=0;r=0;r--){let i=t(e[r],r);if(i)return i}}function Wl(e,t){if(e!==void 0)for(let r=0;r=0;i--){let o=e[i];if(t(o,i))return o}}function Kl(e,t,r){if(e===void 0)return-1;for(let i=r??0;i=0;i--)if(t(e[i],i))return i;return-1}function aEe(e,t){for(let r=0;rr(i,t[o]))}function Ute(e,t,r){for(let i=r||0;i{let s=t(o,i);if(s!==void 0){let[l,d]=s;l!==void 0&&d!==void 0&&r.set(l,d)}}),r}function WC(e,t,r){if(e.has(t))return e.get(t);let i=r();return e.set(t,i),i}function Kb(e,t){return e.has(t)?!1:(e.add(t),!0)}function*Jte(e){yield e}function MG(e,t,r){let i;if(e){i=[];let o=e.length,s,l,d=0,p=0;for(;d{let[s,l]=t(o,i);r.set(s,l)}),r}function gt(e,t){if(e)if(t){for(let r of e)if(t(r))return!0}else return e.length>0;return!1}function LG(e,t,r){let i;for(let o=0;oe[l])}function Rze(e,t){let r=[];for(let i of e)yf(r,i,t);return r}function m0(e,t,r){return e.length===0?[]:e.length===1?e.slice():r?xze(e,t,r):Rze(e,t)}function Dze(e,t){if(e.length===0)return Xe;let r=e[0],i=[r];for(let o=1;o0&&(o&=-2),o&2&&i(s,p)>0&&(o&=-3),s=p}return o}function Gm(e,t,r=Ty){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let i=0;i0&&x.assertGreaterThanOrEqual(r(t[s],t[s-1]),0);t:for(let l=o;ol&&x.assertGreaterThanOrEqual(r(e[o],e[o-1]),0),r(t[s],e[o])){case-1:i.push(t[s]);continue e;case 0:continue e;case 1:continue t}}return i}function Tn(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function vx(e,t){return e===void 0?t:t===void 0?e:To(e)?To(t)?Eo(e,t):Tn(e,t):To(t)?Tn(t,e):[e,t]}function Yte(e,t){return t<0?e.length+t:t}function Hr(e,t,r,i){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(r,i);r=r===void 0?0:Yte(t,r),i=i===void 0?t.length:Yte(t,i);for(let o=r;or(e[i],e[o])||Zs(i,o))}function ZS(e,t){return e.length===0?e:e.slice().sort(t)}function*wG(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function vy(e,t){let r=EL(e);return sEe(e,r,t),r.map(i=>e[i])}function OG(e,t,r,i){for(;r>1),p=r(e[d],d);switch(i(p,t)){case-1:s=d+1;break;case 0:return d;case 1:l=d-1;break}}return~s}function tu(e,t,r,i,o){if(e&&e.length>0){let s=e.length;if(s>0){let l=i===void 0||i<0?0:i,d=o===void 0||l+o>s-1?s-1:l+o,p;for(arguments.length<=2?(p=e[l],l++):p=r;l<=d;)p=t(p,e[l],l),l++;return p}}return r}function Ss(e,t){return Sv.call(e,t)}function _W(e,t){return Sv.call(e,t)?e[t]:void 0}function Vh(e){let t=[];for(let r in e)Sv.call(e,r)&&t.push(r);return t}function lEe(e){let t=[];do{let r=Object.getOwnPropertyNames(e);for(let i of r)yf(t,i)}while(e=Object.getPrototypeOf(e));return t}function cI(e){let t=[];for(let r in e)Sv.call(e,r)&&t.push(e[r]);return t}function $te(e,t){let r=new Array(e);for(let i=0;i100&&r>t.length>>1){let d=t.length-r;t.copyWithin(0,r),t.length=d,r=0}return l}return{enqueue:o,dequeue:s,isEmpty:i}}function VG(e,t){let r=new Map,i=0;function*o(){for(let l of r.values())To(l)?yield*l:yield l}let s={has(l){let d=e(l);if(!r.has(d))return!1;let p=r.get(d);if(!To(p))return t(p,l);for(let h of p)if(t(h,l))return!0;return!1},add(l){let d=e(l);if(r.has(d)){let p=r.get(d);if(To(p))Bo(p,l,t)||(p.push(l),i++);else{let h=p;t(h,l)||(r.set(d,[h,l]),i++)}}else r.set(d,l),i++;return this},delete(l){let d=e(l);if(!r.has(d))return!1;let p=r.get(d);if(To(p)){for(let h=0;ho(),[Symbol.toStringTag]:r[Symbol.toStringTag]};return s}function To(e){return Array.isArray(e)}function dI(e){return To(e)?e:[e]}function No(e){return typeof e=="string"}function Ey(e){return typeof e=="number"}function ri(e,t){return e!==void 0&&t(e)?e:void 0}function na(e,t){return e!==void 0&&t(e)?e:x.fail(`Invalid cast. The supplied value ${e} did not pass the test '${x.getFunctionName(t)}'.`)}function qa(e){}function Vm(){return!1}function Sy(){return!0}function Jb(){}function Qs(e){return e}function ene(e){return e.toLowerCase()}function ih(e){return pne.test(e)?e.replace(pne,ene):e}function Ho(){throw new Error("Not implemented")}function vu(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function oh(e){let t=new Map;return r=>{let i=`${typeof r}:${r}`,o=t.get(i);return o===void 0&&!t.has(i)&&(o=e(r),t.set(i,o)),o}}function cEe(e){let t=new WeakMap;return r=>{let i=t.get(r);return i===void 0&&!t.has(r)&&(i=e(r),t.set(r,i)),i}}function tne(e,t){return(...r)=>{let i=t.get(r);return i===void 0&&!t.has(r)&&(i=e(...r),t.set(r,i)),i}}function dEe(e,t,r,i,o){if(o){let s=[];for(let l=0;ltu(s,(d,p)=>p(d),l)}else return i?s=>i(r(t(e(s)))):r?s=>r(t(e(s))):t?s=>t(e(s)):e?s=>e(s):s=>s}function Ty(e,t){return e===t}function qb(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function eT(e,t){return Ty(e,t)}function uEe(e,t){return e===t?0:e===void 0?-1:t===void 0?1:et(r,i)===-1?r:i)}function vW(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),et?1:0)}function nne(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),et?1:0)}function Vd(e,t){return uEe(e,t)}function Ex(e){return e?vW:Vd}function rne(){return $G}function ine(e){$G!==e&&($G=e,fne=void 0)}function IL(e,t){return(fne||(fne=mEe($G)))(e,t)}function one(e,t,r,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[r],t[r])}function bv(e,t){return Zs(e?1:0,t?1:0)}function GC(e,t,r){let i=Math.max(2,Math.floor(e.length*.34)),o=Math.floor(e.length*.4)+1,s;for(let l of t){let d=r(l);if(d!==void 0&&Math.abs(d.length-e.length)<=i){if(d===e||d.length<3&&d.toLowerCase()!==e.toLowerCase())continue;let p=Pze(e,d,o-.1);if(p===void 0)continue;x.assert(pr?d-r:1),m=Math.floor(t.length>r+d?r+d:t.length);o[0]=d;let y=d;for(let S=1;Sr)return;let E=i;i=o,o=E}let l=i[t.length];return l>r?void 0:l}function El(e,t,r){let i=e.length-t.length;return i>=0&&(r?qb(e.slice(i),t):e.indexOf(t,i)===i)}function Sx(e,t){return El(e,t)?e.slice(0,e.length-t.length):e}function ane(e,t){return El(e,t)?e.slice(0,e.length-t.length):void 0}function UG(e){let t=e.length;for(let r=t-1;r>0;r--){let i=e.charCodeAt(r);if(i>=48&&i<=57)do--r,i=e.charCodeAt(r);while(r>0&&i>=48&&i<=57);else if(r>4&&(i===110||i===78)){if(--r,i=e.charCodeAt(r),i!==105&&i!==73||(--r,i=e.charCodeAt(r),i!==109&&i!==77))break;--r,i=e.charCodeAt(r)}else break;if(i!==45&&i!==46)break;t=r}return t===e.length?e:e.slice(0,t)}function Tx(e,t){for(let r=0;rr===t)}function Mze(e,t){for(let r=0;ro&&(o=l.prefix.length,i=s)}return i}function ao(e,t,r){return r?qb(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function VC(e,t){return ao(e,t)?e.substr(t.length):e}function JG(e,t,r=Qs){return ao(r(e),r(t))?e.substring(t.length):void 0}function bW({prefix:e,suffix:t},r){return r.length>=e.length+t.length&&ao(r,e)&&El(r,t)}function EW(e,t){return r=>e(r)&&t(r)}function jm(...e){return(...t)=>{let r;for(let i of e)if(r=i(...t),r)return r;return r}}function SW(e){return(...t)=>!e(...t)}function pEe(e){}function pI(e){return e===void 0?void 0:[e]}function TW(e,t,r,i,o,s){s=s||qa;let l=0,d=0,p=e.length,h=t.length,m=!1;for(;l(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(XG||{}),Ay=Array.prototype.at?(e,t)=>e?.at(t):(e,t)=>{if(e&&(t=Yte(e,t),t(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(YG||{}),mEe=(()=>{return t;function e(r,i,o){if(r===i)return 0;if(r===void 0)return-1;if(i===void 0)return 1;let s=o(r,i);return s<0?-1:s>0?1:0}function t(r){let i=new Intl.Collator(r,{usage:"sort",sensitivity:"variant"}).compare;return(o,s)=>e(o,s,i)}})()}}),QG,x,kze=bt({"src/compiler/debug.ts"(){"use strict";ea(),ea(),QG=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(QG||{}),(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function r(on){return e.currentLogLevel<=on}e.shouldLog=r;function i(on,Ye){e.loggingHost&&r(on)&&e.loggingHost.log(on,Ye)}function o(on){i(3,on)}e.log=o,(on=>{function Ye(yi){i(1,yi)}on.error=Ye;function Ot(yi){i(2,yi)}on.warn=Ot;function In(yi){i(3,yi)}on.log=In;function si(yi){i(4,yi)}on.trace=si})(o=e.log||(e.log={}));let s={};function l(){return t}e.getAssertionLevel=l;function d(on){let Ye=t;if(t=on,on>Ye)for(let Ot of Vh(s)){let In=s[Ot];In!==void 0&&e[Ot]!==In.assertion&&on>=In.level&&(e[Ot]=In,s[Ot]=void 0)}}e.setAssertionLevel=d;function p(on){return t>=on}e.shouldAssert=p;function h(on,Ye){return p(on)?!0:(s[Ye]={level:on,assertion:e[Ye]},e[Ye]=qa,!1)}function m(on,Ye){let Ot=new Error(on?`Debug Failure. ${on}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(Ot,Ye||m),Ot}e.fail=m;function y(on,Ye,Ot){return m(`${Ye||"Unexpected node."}\r +var ote=(x=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(x,{get:(P,Q)=>(typeof require<"u"?require:P)[Q]}):x)(function(x){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+x+'" is not supported')});var $gt=(x,P)=>()=>(x&&(P=x(x=0)),P);var vyt={};var Y4e=$gt(()=>{define("vs/language/typescript/tsWorker",["require"],x=>{"use strict";var P=(()=>{var Q=Object.defineProperty,ae=Object.getOwnPropertyDescriptor,Ee=Object.getOwnPropertyNames,Oe=Object.prototype.hasOwnProperty,ut=(nh,Ni)=>{for(var bt in Ni)Q(nh,bt,{get:Ni[bt],enumerable:!0})},Rt=(nh,Ni,bt,Ns)=>{if(Ni&&typeof Ni=="object"||typeof Ni=="function")for(let Ra of Ee(Ni))!Oe.call(nh,Ra)&&Ra!==bt&&Q(nh,Ra,{get:()=>Ni[Ra],enumerable:!(Ns=ae(Ni,Ra))||Ns.enumerable});return nh},Gt=nh=>Rt(Q({},"__esModule",{value:!0}),nh),Vt={};ut(Vt,{TypeScriptWorker:()=>QS,create:()=>vL});var cr={};ut(cr,{EndOfLineState:()=>es,IndentStyle:()=>tu,ScriptKind:()=>Dd,ScriptTarget:()=>yv,TokenClass:()=>kC,createClassifier:()=>Uo,createLanguageService:()=>Sa,displayPartsToString:()=>ya,flattenDiagnosticMessageText:()=>bl,typescript:()=>Cl});var ci=void 0,Jr={exports:{}},Ar=(()=>{var nh=Object.defineProperty,Ni=Object.getOwnPropertyNames,bt=(e,t)=>function(){return e&&(t=(0,e[Ni(e)[0]])(e=0)),t},Ns=(e,t)=>function(){return t||(0,e[Ni(e)[0]])((t={exports:{}}).exports,t),t.exports},Ra=(e,t)=>{for(var r in t)nh(e,r,{get:t[r],enumerable:!0})},g_,qp,xG,Pze=bt({"src/compiler/corePublic.ts"(){"use strict";g_="5.4",qp="5.4.5",xG=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(xG||{})}});function Nn(e){return e?e.length:0}function gn(e,t){if(e)for(let r=0;r=0;r--){let i=t(e[r],r);if(i)return i}}function Wl(e,t){if(e!==void 0)for(let r=0;r=0;i--){let o=e[i];if(t(o,i))return o}}function Kl(e,t,r){if(e===void 0)return-1;for(let i=r??0;i=0;i--)if(t(e[i],i))return i;return-1}function pEe(e,t){for(let r=0;rr(i,t[o]))}function Xte(e,t,r){for(let i=r||0;i{let s=t(o,i);if(s!==void 0){let[l,d]=s;l!==void 0&&d!==void 0&&r.set(l,d)}}),r}function FC(e,t,r){if(e.has(t))return e.get(t);let i=r();return e.set(t,i),i}function Jb(e,t){return e.has(t)?!1:(e.add(t),!0)}function*Qte(e){yield e}function MG(e,t,r){let i;if(e){i=[];let o=e.length,s,l,d=0,p=0;for(;d{let[s,l]=t(o,i);r.set(s,l)}),r}function gt(e,t){if(e)if(t){for(let r of e)if(t(r))return!0}else return e.length>0;return!1}function LG(e,t,r){let i;for(let o=0;oe[l])}function kze(e,t){let r=[];for(let i of e)yf(r,i,t);return r}function _0(e,t,r){return e.length===0?[]:e.length===1?e.slice():r?Lze(e,t,r):kze(e,t)}function wze(e,t){if(e.length===0)return Xe;let r=e[0],i=[r];for(let o=1;o0&&(o&=-2),o&2&&i(s,p)>0&&(o&=-3),s=p}return o}function Vm(e,t,r=Ay){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let i=0;i0&&R.assertGreaterThanOrEqual(r(t[s],t[s-1]),0);t:for(let l=o;ol&&R.assertGreaterThanOrEqual(r(e[o],e[o-1]),0),r(t[s],e[o])){case-1:i.push(t[s]);continue e;case 0:continue e;case 1:continue t}}return i}function Tn(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function yx(e,t){return e===void 0?t:t===void 0?e:So(e)?So(t)?bo(e,t):Tn(e,t):So(t)?Tn(t,e):[e,t]}function tne(e,t){return t<0?e.length+t:t}function Hr(e,t,r,i){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(r,i);r=r===void 0?0:tne(t,r),i=i===void 0?t.length:tne(t,i);for(let o=r;or(e[i],e[o])||Zs(i,o))}function ZS(e,t){return e.length===0?e:e.slice().sort(t)}function*wG(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function by(e,t){let r=SL(e);return fEe(e,r,t),r.map(i=>e[i])}function OG(e,t,r,i){for(;r>1),p=r(e[d],d);switch(i(p,t)){case-1:s=d+1;break;case 0:return d;case 1:l=d-1;break}}return~s}function nu(e,t,r,i,o){if(e&&e.length>0){let s=e.length;if(s>0){let l=i===void 0||i<0?0:i,d=o===void 0||l+o>s-1?s-1:l+o,p;for(arguments.length<=2?(p=e[l],l++):p=r;l<=d;)p=t(p,e[l],l),l++;return p}}return r}function Ts(e,t){return Tv.call(e,t)}function _W(e,t){return Tv.call(e,t)?e[t]:void 0}function jh(e){let t=[];for(let r in e)Tv.call(e,r)&&t.push(r);return t}function mEe(e){let t=[];do{let r=Object.getOwnPropertyNames(e);for(let i of r)yf(t,i)}while(e=Object.getPrototypeOf(e));return t}function cI(e){let t=[];for(let r in e)Tv.call(e,r)&&t.push(e[r]);return t}function nne(e,t){let r=new Array(e);for(let i=0;i100&&r>t.length>>1){let d=t.length-r;t.copyWithin(0,r),t.length=d,r=0}return l}return{enqueue:o,dequeue:s,isEmpty:i}}function VG(e,t){let r=new Map,i=0;function*o(){for(let l of r.values())So(l)?yield*l:yield l}let s={has(l){let d=e(l);if(!r.has(d))return!1;let p=r.get(d);if(!So(p))return t(p,l);for(let h of p)if(t(h,l))return!0;return!1},add(l){let d=e(l);if(r.has(d)){let p=r.get(d);if(So(p))zo(p,l,t)||(p.push(l),i++);else{let h=p;t(h,l)||(r.set(d,[h,l]),i++)}}else r.set(d,l),i++;return this},delete(l){let d=e(l);if(!r.has(d))return!1;let p=r.get(d);if(So(p)){for(let h=0;ho(),[Symbol.toStringTag]:r[Symbol.toStringTag]};return s}function So(e){return Array.isArray(e)}function dI(e){return So(e)?e:[e]}function Co(e){return typeof e=="string"}function Sy(e){return typeof e=="number"}function ri(e,t){return e!==void 0&&t(e)?e:void 0}function ta(e,t){return e!==void 0&&t(e)?e:R.fail(`Invalid cast. The supplied value ${e} did not pass the test '${R.getFunctionName(t)}'.`)}function qa(e){}function jm(){return!1}function Ty(){return!0}function qb(){}function Qs(e){return e}function one(e){return e.toLowerCase()}function oh(e){return gne.test(e)?e.replace(gne,one):e}function jo(){throw new Error("Not implemented")}function bu(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function ah(e){let t=new Map;return r=>{let i=`${typeof r}:${r}`,o=t.get(i);return o===void 0&&!t.has(i)&&(o=e(r),t.set(i,o)),o}}function _Ee(e){let t=new WeakMap;return r=>{let i=t.get(r);return i===void 0&&!t.has(r)&&(i=e(r),t.set(r,i)),i}}function ane(e,t){return(...r)=>{let i=t.get(r);return i===void 0&&!t.has(r)&&(i=e(...r),t.set(r,i)),i}}function hEe(e,t,r,i,o){if(o){let s=[];for(let l=0;lnu(s,(d,p)=>p(d),l)}else return i?s=>i(r(t(e(s)))):r?s=>r(t(e(s))):t?s=>t(e(s)):e?s=>e(s):s=>s}function Ay(e,t){return e===t}function Xb(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function eT(e,t){return Ay(e,t)}function gEe(e,t){return e===t?0:e===void 0?-1:t===void 0?1:et(r,i)===-1?r:i)}function vW(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),et?1:0)}function sne(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),et?1:0)}function Gd(e,t){return gEe(e,t)}function bx(e){return e?vW:Gd}function lne(){return $G}function cne(e){$G!==e&&($G=e,yne=void 0)}function xL(e,t){return(yne||(yne=bEe($G)))(e,t)}function dne(e,t,r,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[r],t[r])}function Ev(e,t){return Zs(e?1:0,t?1:0)}function VC(e,t,r){let i=Math.max(2,Math.floor(e.length*.34)),o=Math.floor(e.length*.4)+1,s;for(let l of t){let d=r(l);if(d!==void 0&&Math.abs(d.length-e.length)<=i){if(d===e||d.length<3&&d.toLowerCase()!==e.toLowerCase())continue;let p=Fze(e,d,o-.1);if(p===void 0)continue;R.assert(pr?d-r:1),m=Math.floor(t.length>r+d?r+d:t.length);o[0]=d;let y=d;for(let S=1;Sr)return;let E=i;i=o,o=E}let l=i[t.length];return l>r?void 0:l}function El(e,t,r){let i=e.length-t.length;return i>=0&&(r?Xb(e.slice(i),t):e.indexOf(t,i)===i)}function Ex(e,t){return El(e,t)?e.slice(0,e.length-t.length):e}function une(e,t){return El(e,t)?e.slice(0,e.length-t.length):void 0}function UG(e){let t=e.length;for(let r=t-1;r>0;r--){let i=e.charCodeAt(r);if(i>=48&&i<=57)do--r,i=e.charCodeAt(r);while(r>0&&i>=48&&i<=57);else if(r>4&&(i===110||i===78)){if(--r,i=e.charCodeAt(r),i!==105&&i!==73||(--r,i=e.charCodeAt(r),i!==109&&i!==77))break;--r,i=e.charCodeAt(r)}else break;if(i!==45&&i!==46)break;t=r}return t===e.length?e:e.slice(0,t)}function Sx(e,t){for(let r=0;rr===t)}function zze(e,t){for(let r=0;ro&&(o=l.prefix.length,i=s)}return i}function ao(e,t,r){return r?Xb(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function jC(e,t){return ao(e,t)?e.substr(t.length):e}function JG(e,t,r=Qs){return ao(r(e),r(t))?e.substring(t.length):void 0}function bW({prefix:e,suffix:t},r){return r.length>=e.length+t.length&&ao(r,e)&&El(r,t)}function EW(e,t){return r=>e(r)&&t(r)}function Um(...e){return(...t)=>{let r;for(let i of e)if(r=i(...t),r)return r;return r}}function SW(e){return(...t)=>!e(...t)}function yEe(e){}function pI(e){return e===void 0?void 0:[e]}function TW(e,t,r,i,o,s){s=s||qa;let l=0,d=0,p=e.length,h=t.length,m=!1;for(;l(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(XG||{}),Iy=Array.prototype.at?(e,t)=>e?.at(t):(e,t)=>{if(e&&(t=tne(e,t),t(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(YG||{}),bEe=(()=>{return t;function e(r,i,o){if(r===i)return 0;if(r===void 0)return-1;if(i===void 0)return 1;let s=o(r,i);return s<0?-1:s>0?1:0}function t(r){let i=new Intl.Collator(r,{usage:"sort",sensitivity:"variant"}).compare;return(o,s)=>e(o,s,i)}})()}}),QG,R,Gze=bt({"src/compiler/debug.ts"(){"use strict";Zo(),Zo(),QG=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(QG||{}),(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function r(on){return e.currentLogLevel<=on}e.shouldLog=r;function i(on,Ye){e.loggingHost&&r(on)&&e.loggingHost.log(on,Ye)}function o(on){i(3,on)}e.log=o,(on=>{function Ye(yi){i(1,yi)}on.error=Ye;function Ot(yi){i(2,yi)}on.warn=Ot;function In(yi){i(3,yi)}on.log=In;function si(yi){i(4,yi)}on.trace=si})(o=e.log||(e.log={}));let s={};function l(){return t}e.getAssertionLevel=l;function d(on){let Ye=t;if(t=on,on>Ye)for(let Ot of jh(s)){let In=s[Ot];In!==void 0&&e[Ot]!==In.assertion&&on>=In.level&&(e[Ot]=In,s[Ot]=void 0)}}e.setAssertionLevel=d;function p(on){return t>=on}e.shouldAssert=p;function h(on,Ye){return p(on)?!0:(s[Ye]={level:on,assertion:e[Ye]},e[Ye]=qa,!1)}function m(on,Ye){let Ot=new Error(on?`Debug Failure. ${on}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(Ot,Ye||m),Ot}e.fail=m;function y(on,Ye,Ot){return m(`${Ye||"Unexpected node."}\r Node ${he(on.kind)} was unexpected.`,Ot||y)}e.failBadSyntaxKind=y;function E(on,Ye,Ot,In){on||(Ye=Ye?`False expression: ${Ye}`:"False expression.",Ot&&(Ye+=`\r -Verbose Debug Information: `+(typeof Ot=="string"?Ot:Ot())),m(Ye,In||E))}e.assert=E;function S(on,Ye,Ot,In,si){if(on!==Ye){let yi=Ot?In?`${Ot} ${In}`:Ot:"";m(`Expected ${on} === ${Ye}. ${yi}`,si||S)}}e.assertEqual=S;function A(on,Ye,Ot,In){on>=Ye&&m(`Expected ${on} < ${Ye}. ${Ot||""}`,In||A)}e.assertLessThan=A;function N(on,Ye,Ot){on>Ye&&m(`Expected ${on} <= ${Ye}`,Ot||N)}e.assertLessThanOrEqual=N;function D(on,Ye,Ot){on= ${Ye}`,Ot||D)}e.assertGreaterThanOrEqual=D;function w(on,Ye,Ot){on==null&&m(Ye,Ot||w)}e.assertIsDefined=w;function j(on,Ye,Ot){return w(on,Ye,Ot||j),on}e.checkDefined=j;function K(on,Ye,Ot){for(let In of on)w(In,Ye,Ot||K)}e.assertEachIsDefined=K;function Y(on,Ye,Ot){return K(on,Ye,Ot||Y),on}e.checkEachDefined=Y;function B(on,Ye="Illegal value:",Ot){let In=typeof on=="object"&&Ss(on,"kind")&&Ss(on,"pos")?"SyntaxKind: "+he(on.kind):JSON.stringify(on);return m(`${Ye} ${In}`,Ot||B)}e.assertNever=B;function ce(on,Ye,Ot,In){h(1,"assertEachNode")&&E(Ye===void 0||oo(on,Ye),Ot||"Unexpected node.",()=>`Node array did not pass test '${re(Ye)}'.`,In||ce)}e.assertEachNode=ce;function z(on,Ye,Ot,In){h(1,"assertNode")&&E(on!==void 0&&(Ye===void 0||Ye(on)),Ot||"Unexpected node.",()=>`Node ${he(on?.kind)} did not pass test '${re(Ye)}'.`,In||z)}e.assertNode=z;function Z(on,Ye,Ot,In){h(1,"assertNotNode")&&E(on===void 0||Ye===void 0||!Ye(on),Ot||"Unexpected node.",()=>`Node ${he(on.kind)} should not have passed test '${re(Ye)}'.`,In||Z)}e.assertNotNode=Z;function me(on,Ye,Ot,In){h(1,"assertOptionalNode")&&E(Ye===void 0||on===void 0||Ye(on),Ot||"Unexpected node.",()=>`Node ${he(on?.kind)} did not pass test '${re(Ye)}'.`,In||me)}e.assertOptionalNode=me;function ge(on,Ye,Ot,In){h(1,"assertOptionalToken")&&E(Ye===void 0||on===void 0||on.kind===Ye,Ot||"Unexpected node.",()=>`Node ${he(on?.kind)} was not a '${he(Ye)}' token.`,In||ge)}e.assertOptionalToken=ge;function q(on,Ye,Ot){h(1,"assertMissingNode")&&E(on===void 0,Ye||"Unexpected node.",()=>`Node ${he(on.kind)} was unexpected'.`,Ot||q)}e.assertMissingNode=q;function J(on){}e.type=J;function re(on){if(typeof on!="function")return"";if(Ss(on,"name"))return on.name;{let Ye=Function.prototype.toString.call(on),Ot=/^function\s+([\w$]+)\s*\(/.exec(Ye);return Ot?Ot[1]:""}}e.getFunctionName=re;function pe(on){return`{ name: ${Vi(on.escapedName)}; flags: ${Et(on.flags)}; declarations: ${mn(on.declarations,Ye=>he(Ye.kind))} }`}e.formatSymbol=pe;function xe(on=0,Ye,Ot){let In=ne(Ye);if(on===0)return In.length>0&&In[0][0]===0?In[0][1]:"0";if(Ot){let si=[],yi=on;for(let[$i,Io]of In){if($i>on)break;$i!==0&&$i&on&&(si.push(Io),yi&=~$i)}if(yi===0)return si.join("|")}else for(let[si,yi]of In)if(si===on)return yi;return on.toString()}e.formatEnum=xe;let fe=new Map;function ne(on){let Ye=fe.get(on);if(Ye)return Ye;let Ot=[];for(let si in on){let yi=on[si];typeof yi=="number"&&Ot.push([yi,si])}let In=vy(Ot,(si,yi)=>Zs(si[0],yi[0]));return fe.set(on,In),In}function he(on){return xe(on,RW,!1)}e.formatSyntaxKind=he;function Ce(on){return xe(on,BW,!1)}e.formatSnippetKind=Ce;function Ge(on){return xe(on,FW,!1)}e.formatScriptKind=Ge;function ve(on){return xe(on,DW,!0)}e.formatNodeFlags=ve;function Ae(on){return xe(on,CW,!0)}e.formatModifierFlags=Ae;function De(on){return xe(on,zW,!0)}e.formatTransformFlags=De;function Le(on){return xe(on,GW,!0)}e.formatEmitFlags=Le;function Et(on){return xe(on,kW,!0)}e.formatSymbolFlags=Et;function be(on){return xe(on,wW,!0)}e.formatTypeFlags=be;function ze(on){return xe(on,WW,!0)}e.formatSignatureFlags=ze;function tt(on){return xe(on,OW,!0)}e.formatObjectFlags=tt;function Wt(on){return xe(on,CL,!0)}e.formatFlowFlags=Wt;function _t(on){return xe(on,NW,!0)}e.formatRelationComparisonResult=_t;function Je(on){return xe(on,P3,!0)}e.formatCheckMode=Je;function pt(on){return xe(on,M3,!0)}e.formatSignatureCheckMode=pt;function Zt(on){return xe(on,N3,!0)}e.formatTypeFacts=Zt;let en=!1,Dn;function Kn(on){"__debugFlowFlags"in on||Object.defineProperties(on,{__tsDebuggerDisplay:{value(){let Ye=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",Ot=this.flags&-2048;return`${Ye}${Ot?` (${Wt(Ot)})`:""}`}},__debugFlowFlags:{get(){return xe(this.flags,CL,!0)}},__debugToString:{value(){return Er(this)}}})}function pn(on){en&&(typeof Object.setPrototypeOf=="function"?(Dn||(Dn=Object.create(Object.prototype),Kn(Dn)),Object.setPrototypeOf(on,Dn)):Kn(on))}e.attachFlowNodeDebugInfo=pn;let Xt;function Kt(on){"__tsDebuggerDisplay"in on||Object.defineProperties(on,{__tsDebuggerDisplay:{value(Ye){return Ye=String(Ye).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${Ye}`}}})}function hi(on){en&&(typeof Object.setPrototypeOf=="function"?(Xt||(Xt=Object.create(Array.prototype),Kt(Xt)),Object.setPrototypeOf(on,Xt)):Kt(on))}e.attachNodeArrayDebugInfo=hi;function uo(){if(en)return;let on=new WeakMap,Ye=new WeakMap;Object.defineProperties(sd.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let In=this.flags&33554432?"TransientSymbol":"Symbol",si=this.flags&-33554433;return`${In} '${vl(this)}'${si?` (${Et(si)})`:""}`}},__debugFlags:{get(){return Et(this.flags)}}}),Object.defineProperties(sd.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let In=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",si=this.flags&524288?this.objectFlags&-1344:0;return`${In}${this.symbol?` '${vl(this.symbol)}'`:""}${si?` (${tt(si)})`:""}`}},__debugFlags:{get(){return be(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?tt(this.objectFlags):""}},__debugTypeToString:{value(){let In=on.get(this);return In===void 0&&(In=this.checker.typeToString(this),on.set(this,In)),In}}}),Object.defineProperties(sd.getSignatureConstructor().prototype,{__debugFlags:{get(){return ze(this.flags)}},__debugSignatureToString:{value(){var In;return(In=this.checker)==null?void 0:In.signatureToString(this)}}});let Ot=[sd.getNodeConstructor(),sd.getIdentifierConstructor(),sd.getTokenConstructor(),sd.getSourceFileConstructor()];for(let In of Ot)Ss(In.prototype,"__debugKind")||Object.defineProperties(In.prototype,{__tsDebuggerDisplay:{value(){return`${rl(this)?"GeneratedIdentifier":Fe(this)?`Identifier '${gr(this)}'`:Ki(this)?`PrivateIdentifier '${gr(this)}'`:Da(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:mp(this)?`NumericLiteral ${this.text}`:P4(this)?`BigIntLiteral ${this.text}n`:fl(this)?"TypeParameterDeclaration":Ao(this)?"ParameterDeclaration":Pl(this)?"ConstructorDeclaration":Qp(this)?"GetAccessorDeclaration":hp(this)?"SetAccessorDeclaration":XI(this)?"CallSignatureDeclaration":Mk(this)?"ConstructSignatureDeclaration":G0(this)?"IndexSignatureDeclaration":Lk(this)?"TypePredicateNode":If(this)?"TypeReferenceNode":hh(this)?"FunctionTypeNode":RR(this)?"ConstructorTypeNode":YI(this)?"TypeQueryNode":gp(this)?"TypeLiteralNode":kk(this)?"ArrayTypeNode":$I(this)?"TupleTypeNode":O4(this)?"OptionalTypeNode":W4(this)?"RestTypeNode":Hv(this)?"UnionTypeNode":QI(this)?"IntersectionTypeNode":ZI(this)?"ConditionalTypeNode":CT(this)?"InferTypeNode":NT(this)?"ParenthesizedTypeNode":wk(this)?"ThisTypeNode":PT(this)?"TypeOperatorNode":MT(this)?"IndexedAccessTypeNode":CR(this)?"MappedTypeNode":Kv(this)?"LiteralTypeNode":DR(this)?"NamedTupleMember":rg(this)?"ImportTypeNode":he(this.kind)}${this.flags?` (${ve(this.flags)})`:""}`}},__debugKind:{get(){return he(this.kind)}},__debugNodeFlags:{get(){return ve(this.flags)}},__debugModifierFlags:{get(){return Ae(Bie(this))}},__debugTransformFlags:{get(){return De(this.transformFlags)}},__debugIsParseTreeNode:{get(){return ZC(this)}},__debugEmitFlags:{get(){return Le(za(this))}},__debugGetText:{value(si){if(Ks(this))return"";let yi=Ye.get(this);if(yi===void 0){let $i=Do(this),Io=$i&&Gn($i);yi=Io?S0(Io,$i,si):"",Ye.set(this,yi)}return yi}}});en=!0}e.enableDebugInfo=uo;function Li(on){let Ye=on&7,Ot=Ye===0?"in out":Ye===3?"[bivariant]":Ye===2?"in":Ye===1?"out":Ye===4?"[independent]":"";return on&8?Ot+=" (unmeasurable)":on&16&&(Ot+=" (unreliable)"),Ot}e.formatVariance=Li;class So{__debugToString(){var Ye;switch(this.kind){case 3:return((Ye=this.debugInfo)==null?void 0:Ye.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return RG(this.sources,this.targets||mn(this.sources,()=>"any"),(Ot,In)=>`${Ot.__debugTypeToString()} -> ${typeof In=="string"?In:In.__debugTypeToString()}`).join(", ");case 2:return RG(this.sources,this.targets,(Ot,In)=>`${Ot.__debugTypeToString()} -> ${In().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` +Verbose Debug Information: `+(typeof Ot=="string"?Ot:Ot())),m(Ye,In||E))}e.assert=E;function S(on,Ye,Ot,In,si){if(on!==Ye){let yi=Ot?In?`${Ot} ${In}`:Ot:"";m(`Expected ${on} === ${Ye}. ${yi}`,si||S)}}e.assertEqual=S;function A(on,Ye,Ot,In){on>=Ye&&m(`Expected ${on} < ${Ye}. ${Ot||""}`,In||A)}e.assertLessThan=A;function N(on,Ye,Ot){on>Ye&&m(`Expected ${on} <= ${Ye}`,Ot||N)}e.assertLessThanOrEqual=N;function D(on,Ye,Ot){on= ${Ye}`,Ot||D)}e.assertGreaterThanOrEqual=D;function w(on,Ye,Ot){on==null&&m(Ye,Ot||w)}e.assertIsDefined=w;function j(on,Ye,Ot){return w(on,Ye,Ot||j),on}e.checkDefined=j;function K(on,Ye,Ot){for(let In of on)w(In,Ye,Ot||K)}e.assertEachIsDefined=K;function Y(on,Ye,Ot){return K(on,Ye,Ot||Y),on}e.checkEachDefined=Y;function B(on,Ye="Illegal value:",Ot){let In=typeof on=="object"&&Ts(on,"kind")&&Ts(on,"pos")?"SyntaxKind: "+he(on.kind):JSON.stringify(on);return m(`${Ye} ${In}`,Ot||B)}e.assertNever=B;function ce(on,Ye,Ot,In){h(1,"assertEachNode")&&E(Ye===void 0||oo(on,Ye),Ot||"Unexpected node.",()=>`Node array did not pass test '${re(Ye)}'.`,In||ce)}e.assertEachNode=ce;function z(on,Ye,Ot,In){h(1,"assertNode")&&E(on!==void 0&&(Ye===void 0||Ye(on)),Ot||"Unexpected node.",()=>`Node ${he(on?.kind)} did not pass test '${re(Ye)}'.`,In||z)}e.assertNode=z;function ee(on,Ye,Ot,In){h(1,"assertNotNode")&&E(on===void 0||Ye===void 0||!Ye(on),Ot||"Unexpected node.",()=>`Node ${he(on.kind)} should not have passed test '${re(Ye)}'.`,In||ee)}e.assertNotNode=ee;function me(on,Ye,Ot,In){h(1,"assertOptionalNode")&&E(Ye===void 0||on===void 0||Ye(on),Ot||"Unexpected node.",()=>`Node ${he(on?.kind)} did not pass test '${re(Ye)}'.`,In||me)}e.assertOptionalNode=me;function ge(on,Ye,Ot,In){h(1,"assertOptionalToken")&&E(Ye===void 0||on===void 0||on.kind===Ye,Ot||"Unexpected node.",()=>`Node ${he(on?.kind)} was not a '${he(Ye)}' token.`,In||ge)}e.assertOptionalToken=ge;function q(on,Ye,Ot){h(1,"assertMissingNode")&&E(on===void 0,Ye||"Unexpected node.",()=>`Node ${he(on.kind)} was unexpected'.`,Ot||q)}e.assertMissingNode=q;function J(on){}e.type=J;function re(on){if(typeof on!="function")return"";if(Ts(on,"name"))return on.name;{let Ye=Function.prototype.toString.call(on),Ot=/^function\s+([\w$]+)\s*\(/.exec(Ye);return Ot?Ot[1]:""}}e.getFunctionName=re;function pe(on){return`{ name: ${Vi(on.escapedName)}; flags: ${Et(on.flags)}; declarations: ${mn(on.declarations,Ye=>he(Ye.kind))} }`}e.formatSymbol=pe;function xe(on=0,Ye,Ot){let In=ne(Ye);if(on===0)return In.length>0&&In[0][0]===0?In[0][1]:"0";if(Ot){let si=[],yi=on;for(let[$i,Ao]of In){if($i>on)break;$i!==0&&$i&on&&(si.push(Ao),yi&=~$i)}if(yi===0)return si.join("|")}else for(let[si,yi]of In)if(si===on)return yi;return on.toString()}e.formatEnum=xe;let fe=new Map;function ne(on){let Ye=fe.get(on);if(Ye)return Ye;let Ot=[];for(let si in on){let yi=on[si];typeof yi=="number"&&Ot.push([yi,si])}let In=by(Ot,(si,yi)=>Zs(si[0],yi[0]));return fe.set(on,In),In}function he(on){return xe(on,RW,!1)}e.formatSyntaxKind=he;function Ce(on){return xe(on,BW,!1)}e.formatSnippetKind=Ce;function Ge(on){return xe(on,FW,!1)}e.formatScriptKind=Ge;function ve(on){return xe(on,DW,!0)}e.formatNodeFlags=ve;function Ie(on){return xe(on,CW,!0)}e.formatModifierFlags=Ie;function De(on){return xe(on,zW,!0)}e.formatTransformFlags=De;function Le(on){return xe(on,GW,!0)}e.formatEmitFlags=Le;function Et(on){return xe(on,kW,!0)}e.formatSymbolFlags=Et;function be(on){return xe(on,wW,!0)}e.formatTypeFlags=be;function ze(on){return xe(on,WW,!0)}e.formatSignatureFlags=ze;function tt(on){return xe(on,OW,!0)}e.formatObjectFlags=tt;function Wt(on){return xe(on,NL,!0)}e.formatFlowFlags=Wt;function _t(on){return xe(on,NW,!0)}e.formatRelationComparisonResult=_t;function Je(on){return xe(on,P3,!0)}e.formatCheckMode=Je;function ft(on){return xe(on,M3,!0)}e.formatSignatureCheckMode=ft;function Zt(on){return xe(on,N3,!0)}e.formatTypeFacts=Zt;let en=!1,Dn;function Kn(on){"__debugFlowFlags"in on||Object.defineProperties(on,{__tsDebuggerDisplay:{value(){let Ye=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",Ot=this.flags&-2048;return`${Ye}${Ot?` (${Wt(Ot)})`:""}`}},__debugFlowFlags:{get(){return xe(this.flags,NL,!0)}},__debugToString:{value(){return Er(this)}}})}function pn(on){en&&(typeof Object.setPrototypeOf=="function"?(Dn||(Dn=Object.create(Object.prototype),Kn(Dn)),Object.setPrototypeOf(on,Dn)):Kn(on))}e.attachFlowNodeDebugInfo=pn;let Yt;function qt(on){"__tsDebuggerDisplay"in on||Object.defineProperties(on,{__tsDebuggerDisplay:{value(Ye){return Ye=String(Ye).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${Ye}`}}})}function hi(on){en&&(typeof Object.setPrototypeOf=="function"?(Yt||(Yt=Object.create(Array.prototype),qt(Yt)),Object.setPrototypeOf(on,Yt)):qt(on))}e.attachNodeArrayDebugInfo=hi;function uo(){if(en)return;let on=new WeakMap,Ye=new WeakMap;Object.defineProperties(od.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let In=this.flags&33554432?"TransientSymbol":"Symbol",si=this.flags&-33554433;return`${In} '${yl(this)}'${si?` (${Et(si)})`:""}`}},__debugFlags:{get(){return Et(this.flags)}}}),Object.defineProperties(od.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let In=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",si=this.flags&524288?this.objectFlags&-1344:0;return`${In}${this.symbol?` '${yl(this.symbol)}'`:""}${si?` (${tt(si)})`:""}`}},__debugFlags:{get(){return be(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?tt(this.objectFlags):""}},__debugTypeToString:{value(){let In=on.get(this);return In===void 0&&(In=this.checker.typeToString(this),on.set(this,In)),In}}}),Object.defineProperties(od.getSignatureConstructor().prototype,{__debugFlags:{get(){return ze(this.flags)}},__debugSignatureToString:{value(){var In;return(In=this.checker)==null?void 0:In.signatureToString(this)}}});let Ot=[od.getNodeConstructor(),od.getIdentifierConstructor(),od.getTokenConstructor(),od.getSourceFileConstructor()];for(let In of Ot)Ts(In.prototype,"__debugKind")||Object.defineProperties(In.prototype,{__tsDebuggerDisplay:{value(){return`${rl(this)?"GeneratedIdentifier":Fe(this)?`Identifier '${yr(this)}'`:Ki(this)?`PrivateIdentifier '${yr(this)}'`:Ca(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:mp(this)?`NumericLiteral ${this.text}`:P4(this)?`BigIntLiteral ${this.text}n`:fl(this)?"TypeParameterDeclaration":To(this)?"ParameterDeclaration":Pl(this)?"ConstructorDeclaration":Zp(this)?"GetAccessorDeclaration":hp(this)?"SetAccessorDeclaration":XI(this)?"CallSignatureDeclaration":Lk(this)?"ConstructSignatureDeclaration":V0(this)?"IndexSignatureDeclaration":kk(this)?"TypePredicateNode":If(this)?"TypeReferenceNode":gh(this)?"FunctionTypeNode":xR(this)?"ConstructorTypeNode":YI(this)?"TypeQueryNode":gp(this)?"TypeLiteralNode":wk(this)?"ArrayTypeNode":$I(this)?"TupleTypeNode":O4(this)?"OptionalTypeNode":W4(this)?"RestTypeNode":Kv(this)?"UnionTypeNode":QI(this)?"IntersectionTypeNode":ZI(this)?"ConditionalTypeNode":CT(this)?"InferTypeNode":NT(this)?"ParenthesizedTypeNode":Ok(this)?"ThisTypeNode":PT(this)?"TypeOperatorNode":MT(this)?"IndexedAccessTypeNode":DR(this)?"MappedTypeNode":Jv(this)?"LiteralTypeNode":RR(this)?"NamedTupleMember":ig(this)?"ImportTypeNode":he(this.kind)}${this.flags?` (${ve(this.flags)})`:""}`}},__debugKind:{get(){return he(this.kind)}},__debugNodeFlags:{get(){return ve(this.flags)}},__debugModifierFlags:{get(){return Ie(Hie(this))}},__debugTransformFlags:{get(){return De(this.transformFlags)}},__debugIsParseTreeNode:{get(){return eN(this)}},__debugEmitFlags:{get(){return Le(za(this))}},__debugGetText:{value(si){if(Js(this))return"";let yi=Ye.get(this);if(yi===void 0){let $i=Ro(this),Ao=$i&&Gn($i);yi=Ao?T0(Ao,$i,si):"",Ye.set(this,yi)}return yi}}});en=!0}e.enableDebugInfo=uo;function Li(on){let Ye=on&7,Ot=Ye===0?"in out":Ye===3?"[bivariant]":Ye===2?"in":Ye===1?"out":Ye===4?"[independent]":"";return on&8?Ot+=" (unmeasurable)":on&16&&(Ot+=" (unreliable)"),Ot}e.formatVariance=Li;class Eo{__debugToString(){var Ye;switch(this.kind){case 3:return((Ye=this.debugInfo)==null?void 0:Ye.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return RG(this.sources,this.targets||mn(this.sources,()=>"any"),(Ot,In)=>`${Ot.__debugTypeToString()} -> ${typeof In=="string"?In:In.__debugTypeToString()}`).join(", ");case 2:return RG(this.sources,this.targets,(Ot,In)=>`${Ot.__debugTypeToString()} -> ${In().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` `).join(` `)} m2: ${this.mapper2.__debugToString().split(` `).join(` - `)}`;default:return B(this)}}}e.DebugTypeMapper=So;function Qn(on){return e.isDebugging?Object.setPrototypeOf(on,So.prototype):on}e.attachDebugPrototypeIfDebug=Qn;function Ur(on){return console.log(Er(on))}e.printControlFlowGraph=Ur;function Er(on){let Ye=-1;function Ot(ie){return ie.id||(ie.id=Ye,Ye--),ie.id}let In;(ie=>{ie.lr="\u2500",ie.ud="\u2502",ie.dr="\u256D",ie.dl="\u256E",ie.ul="\u256F",ie.ur="\u2570",ie.udr="\u251C",ie.udl="\u2524",ie.dlr="\u252C",ie.ulr="\u2534",ie.udlr="\u256B"})(In||(In={}));let si;(ie=>{ie[ie.None=0]="None",ie[ie.Up=1]="Up",ie[ie.Down=2]="Down",ie[ie.Left=4]="Left",ie[ie.Right=8]="Right",ie[ie.UpDown=3]="UpDown",ie[ie.LeftRight=12]="LeftRight",ie[ie.UpLeft=5]="UpLeft",ie[ie.UpRight=9]="UpRight",ie[ie.DownLeft=6]="DownLeft",ie[ie.DownRight=10]="DownRight",ie[ie.UpDownLeft=7]="UpDownLeft",ie[ie.UpDownRight=11]="UpDownRight",ie[ie.UpLeftRight=13]="UpLeftRight",ie[ie.DownLeftRight=14]="DownLeftRight",ie[ie.UpDownLeftRight=15]="UpDownLeftRight",ie[ie.NoChildren=16]="NoChildren"})(si||(si={}));let yi=2032,$i=882,Io=Object.create(null),ua=[],Ba=[],vn=G(on,new Set);for(let ie of ua)ie.text=un(ie.flowNode,ie.circular),Tt(ie);let kn=He(vn),Be=ut(kn);return Ft(vn,0),U();function ct(ie){return!!(ie.flags&128)}function lt(ie){return!!(ie.flags&12)&&!!ie.antecedents}function Rt(ie){return!!(ie.flags&yi)}function ae(ie){return!!(ie.flags&$i)}function ke(ie){let H=[];for(let ue of ie.edges)ue.source===ie&&H.push(ue.target);return H}function st(ie){let H=[];for(let ue of ie.edges)ue.target===ie&&H.push(ue.source);return H}function G(ie,H){let ue=Ot(ie),We=Io[ue];if(We&&H.has(ie))return We.circular=!0,We={id:-1,flowNode:ie,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},ua.push(We),We;if(H.add(ie),!We)if(Io[ue]=We={id:ue,flowNode:ie,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},ua.push(We),lt(ie))for(let Ne of ie.antecedents)et(We,Ne,H);else Rt(ie)&&et(We,ie.antecedent,H);return H.delete(ie),We}function et(ie,H,ue){let We=G(H,ue),Ne={source:ie,target:We};Ba.push(Ne),ie.edges.push(Ne),We.edges.push(Ne)}function Tt(ie){if(ie.level!==-1)return ie.level;let H=0;for(let ue of st(ie))H=Math.max(H,Tt(ue)+1);return ie.level=H}function He(ie){let H=0;for(let ue of ke(ie))H=Math.max(H,He(ue));return H+1}function ut(ie){let H=Nt(Array(ie),0);for(let ue of ua)H[ue.level]=Math.max(H[ue.level],ue.text.length);return H}function Ft(ie,H){if(ie.lane===-1){ie.lane=H,ie.endLane=H;let ue=ke(ie);for(let We=0;We0&&H++;let Ne=ue[We];Ft(Ne,H),Ne.endLane>ie.endLane&&(H=Ne.endLane)}ie.endLane=H}}function hn(ie){if(ie&2)return"Start";if(ie&4)return"Branch";if(ie&8)return"Loop";if(ie&16)return"Assignment";if(ie&32)return"True";if(ie&64)return"False";if(ie&128)return"SwitchClause";if(ie&256)return"ArrayMutation";if(ie&512)return"Call";if(ie&1024)return"ReduceLabel";if(ie&1)return"Unreachable";throw new Error}function dn(ie){let H=Gn(ie);return S0(H,ie,!1)}function un(ie,H){let ue=hn(ie.flags);if(H&&(ue=`${ue}#${Ot(ie)}`),ae(ie))ie.node&&(ue+=` (${dn(ie.node)})`);else if(ct(ie)){let We=[];for(let Ne=ie.clauseStart;NeMath.max(Dt,Ut.lane),0)+1,ue=Nt(Array(H),""),We=Be.map(()=>Array(H)),Ne=Be.map(()=>Nt(Array(H),0));for(let Dt of ua){We[Dt.level][Dt.lane]=Dt;let Ut=ke(Dt);for(let wn=0;wn0&&(gi|=1),wn0&&(gi|=1),wn0?Ne[Dt-1][Ut]:0,wn=Ut>0?Ne[Dt][Ut-1]:0,Bn=Ne[Dt][Ut];Bn||(En&8&&(Bn|=12),wn&2&&(Bn|=3),Ne[Dt][Ut]=Bn)}for(let Dt=0;Dt{ie.lr="\u2500",ie.ud="\u2502",ie.dr="\u256D",ie.dl="\u256E",ie.ul="\u256F",ie.ur="\u2570",ie.udr="\u251C",ie.udl="\u2524",ie.dlr="\u252C",ie.ulr="\u2534",ie.udlr="\u256B"})(In||(In={}));let si;(ie=>{ie[ie.None=0]="None",ie[ie.Up=1]="Up",ie[ie.Down=2]="Down",ie[ie.Left=4]="Left",ie[ie.Right=8]="Right",ie[ie.UpDown=3]="UpDown",ie[ie.LeftRight=12]="LeftRight",ie[ie.UpLeft=5]="UpLeft",ie[ie.UpRight=9]="UpRight",ie[ie.DownLeft=6]="DownLeft",ie[ie.DownRight=10]="DownRight",ie[ie.UpDownLeft=7]="UpDownLeft",ie[ie.UpDownRight=11]="UpDownRight",ie[ie.UpLeftRight=13]="UpLeftRight",ie[ie.DownLeftRight=14]="DownLeftRight",ie[ie.UpDownLeftRight=15]="UpDownLeftRight",ie[ie.NoChildren=16]="NoChildren"})(si||(si={}));let yi=2032,$i=882,Ao=Object.create(null),da=[],Ba=[],vn=G(on,new Set);for(let ie of da)ie.text=un(ie.flowNode,ie.circular),Tt(ie);let kn=He(vn),Be=pt(kn);return Ft(vn,0),U();function ct(ie){return!!(ie.flags&128)}function lt(ie){return!!(ie.flags&12)&&!!ie.antecedents}function Dt(ie){return!!(ie.flags&yi)}function se(ie){return!!(ie.flags&$i)}function ke(ie){let H=[];for(let ue of ie.edges)ue.source===ie&&H.push(ue.target);return H}function st(ie){let H=[];for(let ue of ie.edges)ue.target===ie&&H.push(ue.source);return H}function G(ie,H){let ue=Ot(ie),We=Ao[ue];if(We&&H.has(ie))return We.circular=!0,We={id:-1,flowNode:ie,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},da.push(We),We;if(H.add(ie),!We)if(Ao[ue]=We={id:ue,flowNode:ie,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},da.push(We),lt(ie))for(let Ne of ie.antecedents)et(We,Ne,H);else Dt(ie)&&et(We,ie.antecedent,H);return H.delete(ie),We}function et(ie,H,ue){let We=G(H,ue),Ne={source:ie,target:We};Ba.push(Ne),ie.edges.push(Ne),We.edges.push(Ne)}function Tt(ie){if(ie.level!==-1)return ie.level;let H=0;for(let ue of st(ie))H=Math.max(H,Tt(ue)+1);return ie.level=H}function He(ie){let H=0;for(let ue of ke(ie))H=Math.max(H,He(ue));return H+1}function pt(ie){let H=Pt(Array(ie),0);for(let ue of da)H[ue.level]=Math.max(H[ue.level],ue.text.length);return H}function Ft(ie,H){if(ie.lane===-1){ie.lane=H,ie.endLane=H;let ue=ke(ie);for(let We=0;We0&&H++;let Ne=ue[We];Ft(Ne,H),Ne.endLane>ie.endLane&&(H=Ne.endLane)}ie.endLane=H}}function hn(ie){if(ie&2)return"Start";if(ie&4)return"Branch";if(ie&8)return"Loop";if(ie&16)return"Assignment";if(ie&32)return"True";if(ie&64)return"False";if(ie&128)return"SwitchClause";if(ie&256)return"ArrayMutation";if(ie&512)return"Call";if(ie&1024)return"ReduceLabel";if(ie&1)return"Unreachable";throw new Error}function dn(ie){let H=Gn(ie);return T0(H,ie,!1)}function un(ie,H){let ue=hn(ie.flags);if(H&&(ue=`${ue}#${Ot(ie)}`),se(ie))ie.node&&(ue+=` (${dn(ie.node)})`);else if(ct(ie)){let We=[];for(let Ne=ie.clauseStart;NeMath.max(Ct,Kt.lane),0)+1,ue=Pt(Array(H),""),We=Be.map(()=>Array(H)),Ne=Be.map(()=>Pt(Array(H),0));for(let Ct of da){We[Ct.level][Ct.lane]=Ct;let Kt=ke(Ct);for(let wn=0;wn0&&(gi|=1),wn0&&(gi|=1),wn0?Ne[Ct-1][Kt]:0,wn=Kt>0?Ne[Ct][Kt-1]:0,Bn=Ne[Ct][Kt];Bn||(En&8&&(Bn|=12),wn&2&&(Bn|=3),Ne[Ct][Kt]=Bn)}for(let Ct=0;Ct0?ie.repeat(H):"";let ue="";for(;ue.length=",i.version)),jf(o.major)||r.push(jf(o.minor)?ah("<",o.version.increment("major")):jf(o.patch)?ah("<",o.version.increment("minor")):ah("<=",o.version)),!0):!1}function Wze(e,t,r){let i=mne(t);if(!i)return!1;let{version:o,major:s,minor:l,patch:d}=i;if(jf(s))(e==="<"||e===">")&&r.push(ah("<",fm.zero));else switch(e){case"~":r.push(ah(">=",o)),r.push(ah("<",o.increment(jf(l)?"major":"minor")));break;case"^":r.push(ah(">=",o)),r.push(ah("<",o.increment(o.major>0||jf(l)?"major":o.minor>0||jf(d)?"minor":"patch")));break;case"<":case">=":r.push(jf(l)||jf(d)?ah(e,o.with({prerelease:"0"})):ah(e,o));break;case"<=":case">":r.push(jf(l)?ah(e==="<="?"<":">=",o.increment("major").with({prerelease:"0"})):jf(d)?ah(e==="<="?"<":">=",o.increment("minor").with({prerelease:"0"})):ah(e,o));break;case"=":case void 0:jf(l)||jf(d)?(r.push(ah(">=",o.with({prerelease:"0"}))),r.push(ah("<",o.increment(jf(l)?"major":"minor").with({prerelease:"0"})))):r.push(ah("=",o));break;default:return!1}return!0}function jf(e){return e==="*"||e==="x"||e==="X"}function ah(e,t){return{operator:e,operand:t}}function Fze(e,t){if(t.length===0)return!0;for(let r of t)if(zze(e,r))return!0;return!1}function zze(e,t){for(let r of t)if(!Bze(e,r.operator,r.operand))return!1;return!0}function Bze(e,t,r){let i=e.compareTo(r);switch(t){case"<":return i<0;case"<=":return i<=0;case">":return i>0;case">=":return i>=0;case"=":return i===0;default:return x.assertNever(t)}}function Gze(e){return mn(e,Vze).join(" || ")||"*"}function Vze(e){return mn(e,jze).join(" ")}function jze(e){return`${e.operator}${e.operand}`}var gEe,yEe,vEe,bEe,EEe,_ne,ZG,fm,xL,SEe,TEe,AEe,IEe,xEe,Uze=bt({"src/compiler/semver.ts"(){"use strict";ea(),gEe=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,yEe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,vEe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,bEe=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,EEe=/^[a-z0-9-]+$/i,_ne=/^(0|[1-9]\d*)$/,ZG=class tW{constructor(t,r=0,i=0,o="",s=""){typeof t=="string"&&({major:t,minor:r,patch:i,prerelease:o,build:s}=x.checkDefined(_Ee(t),"Invalid version")),x.assert(t>=0,"Invalid argument: major"),x.assert(r>=0,"Invalid argument: minor"),x.assert(i>=0,"Invalid argument: patch");let l=o?To(o)?o:o.split("."):Xe,d=s?To(s)?s:s.split("."):Xe;x.assert(oo(l,p=>vEe.test(p)),"Invalid argument: prerelease"),x.assert(oo(d,p=>EEe.test(p)),"Invalid argument: build"),this.major=t,this.minor=r,this.patch=i,this.prerelease=l,this.build=d}static tryParse(t){let r=_Ee(t);if(!r)return;let{major:i,minor:o,patch:s,prerelease:l,build:d}=r;return new tW(i,o,s,l,d)}compareTo(t){return this===t?0:t===void 0?1:Zs(this.major,t.major)||Zs(this.minor,t.minor)||Zs(this.patch,t.patch)||wze(this.prerelease,t.prerelease)}increment(t){switch(t){case"major":return new tW(this.major+1,0,0);case"minor":return new tW(this.major,this.minor+1,0);case"patch":return new tW(this.major,this.minor,this.patch+1);default:return x.assertNever(t)}}with(t){let{major:r=this.major,minor:i=this.minor,patch:o=this.patch,prerelease:s=this.prerelease,build:l=this.build}=t;return new tW(r,i,o,s,l)}toString(){let t=`${this.major}.${this.minor}.${this.patch}`;return gt(this.prerelease)&&(t+=`-${this.prerelease.join(".")}`),gt(this.build)&&(t+=`+${this.build.join(".")}`),t}},ZG.zero=new ZG(0,0,0,["0"]),fm=ZG,xL=class W4e{constructor(t){this._alternatives=t?x.checkDefined(hEe(t),"Invalid range spec."):Xe}static tryParse(t){let r=hEe(t);if(r){let i=new W4e("");return i._alternatives=r,i}}test(t){return typeof t=="string"&&(t=new fm(t)),Fze(t,this._alternatives)}toString(){return Gze(this._alternatives)}},SEe=/\|\|/g,TEe=/\s+/g,AEe=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,IEe=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,xEe=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function REe(e,t){return typeof e=="object"&&typeof e.timeOrigin=="number"&&typeof e.mark=="function"&&typeof e.measure=="function"&&typeof e.now=="function"&&typeof e.clearMarks=="function"&&typeof e.clearMeasures=="function"&&typeof t=="function"}function Hze(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&REe(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function Kze(){if(qG())try{let{performance:e,PerformanceObserver:t}=_i("perf_hooks");if(REe(e,t))return{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:t}}catch{}}function hne(){return e9}var e9,gne,Hs,Jze=bt({"src/compiler/performanceCore.ts"(){"use strict";ea(),e9=Hze()||Kze(),gne=e9?.performance,Hs=gne?()=>gne.now():Date.now?Date.now:()=>+new Date}}),xW,nu,qze=bt({"src/compiler/perfLogger.ts"(){"use strict";try{let e=process.env.TS_ETW_MODULE_PATH??"./node_modules/@microsoft/typescript-etw";xW=_i(e)}catch{xW=void 0}nu=xW?.logEvent?xW:void 0}});function DEe(e,t,r,i){return e?t9(t,r,i):n9}function t9(e,t,r){let i=0;return{enter:o,exit:s};function o(){++i===1&&el(t)}function s(){--i===0?(el(r),Xp(e,t,r)):i<0&&x.fail("enter/exit count does not match.")}}function el(e){if(Ax){let t=jC.get(e)??0;jC.set(e,t+1),Ix.set(e,Hs()),tT?.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function Xp(e,t,r){if(Ax){let i=(r!==void 0?Ix.get(r):void 0)??Hs(),o=(t!==void 0?Ix.get(t):void 0)??yne,s=xx.get(e)||0;xx.set(e,s+(i-o)),tT?.measure(e,t,r)}}function Xze(e){return jC.get(e)||0}function Yze(e){return xx.get(e)||0}function $ze(e){xx.forEach((t,r)=>e(r,t))}function Qze(e){Ix.forEach((t,r)=>e(r))}function Zze(e){e!==void 0?xx.delete(e):xx.clear(),tT?.clearMeasures(e)}function e7e(e){e!==void 0?(jC.delete(e),Ix.delete(e)):(jC.clear(),Ix.clear()),tT?.clearMarks(e)}function t7e(){return Ax}function n7e(e=hd){var t;return Ax||(Ax=!0,RL||(RL=hne()),RL&&(yne=RL.performance.timeOrigin,(RL.shouldWriteNativeEvents||(t=e?.cpuProfilingEnabled)!=null&&t.call(e)||e?.debugMode)&&(tT=RL.performance))),!0}function r7e(){Ax&&(Ix.clear(),jC.clear(),xx.clear(),tT=void 0,Ax=!1)}var RL,tT,n9,Ax,yne,Ix,jC,xx,i7e=bt({"src/compiler/performance.ts"(){"use strict";ea(),n9={enter:qa,exit:qa},Ax=!1,yne=Hs(),Ix=new Map,jC=new Map,xx=new Map}}),vne={};xa(vne,{clearMarks:()=>e7e,clearMeasures:()=>Zze,createTimer:()=>t9,createTimerIf:()=>DEe,disable:()=>r7e,enable:()=>n7e,forEachMark:()=>Qze,forEachMeasure:()=>$ze,getCount:()=>Xze,getDuration:()=>Yze,isEnabled:()=>t7e,mark:()=>el,measure:()=>Xp,nullTimer:()=>n9});var nT=bt({"src/compiler/_namespaces/ts.performance.ts"(){"use strict";i7e()}}),rr,DL,bne,Ene,o7e=bt({"src/compiler/tracing.ts"(){"use strict";ea(),nT(),(e=>{let t,r=0,i=0,o,s=[],l,d=[];function p(z,Z,me){if(x.assert(!rr,"Tracing already started"),t===void 0)try{t=_i("fs")}catch(pe){throw new Error(`tracing requires having fs -(original error: ${pe.message||pe})`)}o=z,s.length=0,l===void 0&&(l=Yr(Z,"legend.json")),t.existsSync(Z)||t.mkdirSync(Z,{recursive:!0});let ge=o==="build"?`.${process.pid}-${++r}`:o==="server"?`.${process.pid}`:"",q=Yr(Z,`trace${ge}.json`),J=Yr(Z,`types${ge}.json`);d.push({configFilePath:me,tracePath:q,typesPath:J}),i=t.openSync(q,"w"),rr=e;let re={cat:"__metadata",ph:"M",ts:1e3*Hs(),pid:1,tid:1};t.writeSync(i,`[ +`;function It(Ct,Kt){ue[Ct]+=Kt}}function Me(ie){switch(ie){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 Pt(ie,H){if(ie.fill)ie.fill(H);else for(let ue=0;ue0?ie.repeat(H):"";let ue="";for(;ue.length=",i.version)),jf(o.major)||r.push(jf(o.minor)?sh("<",o.version.increment("major")):jf(o.patch)?sh("<",o.version.increment("minor")):sh("<=",o.version)),!0):!1}function Uze(e,t,r){let i=vne(t);if(!i)return!1;let{version:o,major:s,minor:l,patch:d}=i;if(jf(s))(e==="<"||e===">")&&r.push(sh("<",fm.zero));else switch(e){case"~":r.push(sh(">=",o)),r.push(sh("<",o.increment(jf(l)?"major":"minor")));break;case"^":r.push(sh(">=",o)),r.push(sh("<",o.increment(o.major>0||jf(l)?"major":o.minor>0||jf(d)?"minor":"patch")));break;case"<":case">=":r.push(jf(l)||jf(d)?sh(e,o.with({prerelease:"0"})):sh(e,o));break;case"<=":case">":r.push(jf(l)?sh(e==="<="?"<":">=",o.increment("major").with({prerelease:"0"})):jf(d)?sh(e==="<="?"<":">=",o.increment("minor").with({prerelease:"0"})):sh(e,o));break;case"=":case void 0:jf(l)||jf(d)?(r.push(sh(">=",o.with({prerelease:"0"}))),r.push(sh("<",o.increment(jf(l)?"major":"minor").with({prerelease:"0"})))):r.push(sh("=",o));break;default:return!1}return!0}function jf(e){return e==="*"||e==="x"||e==="X"}function sh(e,t){return{operator:e,operand:t}}function Hze(e,t){if(t.length===0)return!0;for(let r of t)if(Kze(e,r))return!0;return!1}function Kze(e,t){for(let r of t)if(!Jze(e,r.operator,r.operand))return!1;return!0}function Jze(e,t,r){let i=e.compareTo(r);switch(t){case"<":return i<0;case"<=":return i<=0;case">":return i>0;case">=":return i>=0;case"=":return i===0;default:return R.assertNever(t)}}function qze(e){return mn(e,Xze).join(" || ")||"*"}function Xze(e){return mn(e,Yze).join(" ")}function Yze(e){return`${e.operator}${e.operand}`}var TEe,AEe,IEe,xEe,REe,bne,ZG,fm,RL,DEe,CEe,NEe,PEe,MEe,$ze=bt({"src/compiler/semver.ts"(){"use strict";Zo(),TEe=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,AEe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,IEe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,xEe=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,REe=/^[a-z0-9-]+$/i,bne=/^(0|[1-9]\d*)$/,ZG=class nW{constructor(t,r=0,i=0,o="",s=""){typeof t=="string"&&({major:t,minor:r,patch:i,prerelease:o,build:s}=R.checkDefined(EEe(t),"Invalid version")),R.assert(t>=0,"Invalid argument: major"),R.assert(r>=0,"Invalid argument: minor"),R.assert(i>=0,"Invalid argument: patch");let l=o?So(o)?o:o.split("."):Xe,d=s?So(s)?s:s.split("."):Xe;R.assert(oo(l,p=>IEe.test(p)),"Invalid argument: prerelease"),R.assert(oo(d,p=>REe.test(p)),"Invalid argument: build"),this.major=t,this.minor=r,this.patch=i,this.prerelease=l,this.build=d}static tryParse(t){let r=EEe(t);if(!r)return;let{major:i,minor:o,patch:s,prerelease:l,build:d}=r;return new nW(i,o,s,l,d)}compareTo(t){return this===t?0:t===void 0?1:Zs(this.major,t.major)||Zs(this.minor,t.minor)||Zs(this.patch,t.patch)||Vze(this.prerelease,t.prerelease)}increment(t){switch(t){case"major":return new nW(this.major+1,0,0);case"minor":return new nW(this.major,this.minor+1,0);case"patch":return new nW(this.major,this.minor,this.patch+1);default:return R.assertNever(t)}}with(t){let{major:r=this.major,minor:i=this.minor,patch:o=this.patch,prerelease:s=this.prerelease,build:l=this.build}=t;return new nW(r,i,o,s,l)}toString(){let t=`${this.major}.${this.minor}.${this.patch}`;return gt(this.prerelease)&&(t+=`-${this.prerelease.join(".")}`),gt(this.build)&&(t+=`+${this.build.join(".")}`),t}},ZG.zero=new ZG(0,0,0,["0"]),fm=ZG,RL=class j4e{constructor(t){this._alternatives=t?R.checkDefined(SEe(t),"Invalid range spec."):Xe}static tryParse(t){let r=SEe(t);if(r){let i=new j4e("");return i._alternatives=r,i}}test(t){return typeof t=="string"&&(t=new fm(t)),Hze(t,this._alternatives)}toString(){return qze(this._alternatives)}},DEe=/\|\|/g,CEe=/\s+/g,NEe=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,PEe=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,MEe=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function LEe(e,t){return typeof e=="object"&&typeof e.timeOrigin=="number"&&typeof e.mark=="function"&&typeof e.measure=="function"&&typeof e.now=="function"&&typeof e.clearMarks=="function"&&typeof e.clearMeasures=="function"&&typeof t=="function"}function Qze(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&LEe(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function Zze(){if(qG())try{let{performance:e,PerformanceObserver:t}=ci("perf_hooks");if(LEe(e,t))return{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:t}}catch{}}function Ene(){return e9}var e9,Sne,Ks,e7e=bt({"src/compiler/performanceCore.ts"(){"use strict";Zo(),e9=Qze()||Zze(),Sne=e9?.performance,Ks=Sne?()=>Sne.now():Date.now?Date.now:()=>+new Date}}),xW,ru,t7e=bt({"src/compiler/perfLogger.ts"(){"use strict";try{let e=process.env.TS_ETW_MODULE_PATH??"./node_modules/@microsoft/typescript-etw";xW=ci(e)}catch{xW=void 0}ru=xW?.logEvent?xW:void 0}});function kEe(e,t,r,i){return e?t9(t,r,i):n9}function t9(e,t,r){let i=0;return{enter:o,exit:s};function o(){++i===1&&el(t)}function s(){--i===0?(el(r),Yp(e,t,r)):i<0&&R.fail("enter/exit count does not match.")}}function el(e){if(Tx){let t=UC.get(e)??0;UC.set(e,t+1),Ax.set(e,Ks()),tT?.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function Yp(e,t,r){if(Tx){let i=(r!==void 0?Ax.get(r):void 0)??Ks(),o=(t!==void 0?Ax.get(t):void 0)??Tne,s=Ix.get(e)||0;Ix.set(e,s+(i-o)),tT?.measure(e,t,r)}}function n7e(e){return UC.get(e)||0}function r7e(e){return Ix.get(e)||0}function i7e(e){Ix.forEach((t,r)=>e(r,t))}function o7e(e){Ax.forEach((t,r)=>e(r))}function a7e(e){e!==void 0?Ix.delete(e):Ix.clear(),tT?.clearMeasures(e)}function s7e(e){e!==void 0?(UC.delete(e),Ax.delete(e)):(UC.clear(),Ax.clear()),tT?.clearMarks(e)}function l7e(){return Tx}function c7e(e=md){var t;return Tx||(Tx=!0,DL||(DL=Ene()),DL&&(Tne=DL.performance.timeOrigin,(DL.shouldWriteNativeEvents||(t=e?.cpuProfilingEnabled)!=null&&t.call(e)||e?.debugMode)&&(tT=DL.performance))),!0}function d7e(){Tx&&(Ax.clear(),UC.clear(),Ix.clear(),tT=void 0,Tx=!1)}var DL,tT,n9,Tx,Tne,Ax,UC,Ix,u7e=bt({"src/compiler/performance.ts"(){"use strict";Zo(),n9={enter:qa,exit:qa},Tx=!1,Tne=Ks(),Ax=new Map,UC=new Map,Ix=new Map}}),Ane={};Ra(Ane,{clearMarks:()=>s7e,clearMeasures:()=>a7e,createTimer:()=>t9,createTimerIf:()=>kEe,disable:()=>d7e,enable:()=>c7e,forEachMark:()=>o7e,forEachMeasure:()=>i7e,getCount:()=>n7e,getDuration:()=>r7e,isEnabled:()=>l7e,mark:()=>el,measure:()=>Yp,nullTimer:()=>n9});var nT=bt({"src/compiler/_namespaces/ts.performance.ts"(){"use strict";u7e()}}),rr,CL,Ine,xne,p7e=bt({"src/compiler/tracing.ts"(){"use strict";Zo(),nT(),(e=>{let t,r=0,i=0,o,s=[],l,d=[];function p(z,ee,me){if(R.assert(!rr,"Tracing already started"),t===void 0)try{t=ci("fs")}catch(pe){throw new Error(`tracing requires having fs +(original error: ${pe.message||pe})`)}o=z,s.length=0,l===void 0&&(l=$r(ee,"legend.json")),t.existsSync(ee)||t.mkdirSync(ee,{recursive:!0});let ge=o==="build"?`.${process.pid}-${++r}`:o==="server"?`.${process.pid}`:"",q=$r(ee,`trace${ge}.json`),J=$r(ee,`types${ge}.json`);d.push({configFilePath:me,tracePath:q,typesPath:J}),i=t.openSync(q,"w"),rr=e;let re={cat:"__metadata",ph:"M",ts:1e3*Ks(),pid:1,tid:1};t.writeSync(i,`[ `+[{name:"process_name",args:{name:"tsc"},...re},{name:"thread_name",args:{name:"Main"},...re},{name:"TracingStartedInBrowser",...re,cat:"disabled-by-default-devtools.timeline"}].map(pe=>JSON.stringify(pe)).join(`, -`))}e.startTracing=p;function h(){x.assert(rr,"Tracing is not in progress"),x.assert(!!s.length==(o!=="server")),t.writeSync(i,` +`))}e.startTracing=p;function h(){R.assert(rr,"Tracing is not in progress"),R.assert(!!s.length==(o!=="server")),t.writeSync(i,` ] -`),t.closeSync(i),rr=void 0,s.length?B(s):d[d.length-1].typesPath=void 0}e.stopTracing=h;function m(z){o!=="server"&&s.push(z)}e.recordType=m;let y;(z=>{z.Parse="parse",z.Program="program",z.Bind="bind",z.Check="check",z.CheckTypes="checkTypes",z.Emit="emit",z.Session="session"})(y=e.Phase||(e.Phase={}));function E(z,Z,me){K("I",z,Z,me,'"s":"g"')}e.instant=E;let S=[];function A(z,Z,me,ge=!1){ge&&K("B",z,Z,me),S.push({phase:z,name:Z,args:me,time:1e3*Hs(),separateBeginAndEnd:ge})}e.push=A;function N(z){x.assert(S.length>0),j(S.length-1,1e3*Hs(),z),S.length--}e.pop=N;function D(){let z=1e3*Hs();for(let Z=S.length-1;Z>=0;Z--)j(Z,z);S.length=0}e.popAll=D;let w=1e3*10;function j(z,Z,me){let{phase:ge,name:q,args:J,time:re,separateBeginAndEnd:pe}=S[z];pe?(x.assert(!me,"`results` are not supported for events with `separateBeginAndEnd`"),K("E",ge,q,J,void 0,Z)):w-re%w<=Z-re&&K("X",ge,q,{...J,results:me},`"dur":${Z-re}`,re)}function K(z,Z,me,ge,q,J=1e3*Hs()){o==="server"&&Z==="checkTypes"||(el("beginTracing"),t.writeSync(i,`, -{"pid":1,"tid":1,"ph":"${z}","cat":"${Z}","ts":${J},"name":"${me}"`),q&&t.writeSync(i,`,${q}`),ge&&t.writeSync(i,`,"args":${JSON.stringify(ge)}`),t.writeSync(i,"}"),el("endTracing"),Xp("Tracing","beginTracing","endTracing"))}function Y(z){let Z=Gn(z);return Z?{path:Z.path,start:me(hs(Z,z.pos)),end:me(hs(Z,z.end))}:void 0;function me(ge){return{line:ge.line+1,character:ge.character+1}}}function B(z){var Z,me,ge,q,J,re,pe,xe,fe,ne,he,Ce,Ge,ve,Ae,De,Le,Et,be;el("beginDumpTypes");let ze=d[d.length-1].typesPath,tt=t.openSync(ze,"w"),Wt=new Map;t.writeSync(tt,"[");let _t=z.length;for(let Je=0;Je<_t;Je++){let pt=z[Je],Zt=pt.objectFlags,en=pt.aliasSymbol??pt.symbol,Dn;if(Zt&16|pt.flags&2944)try{Dn=(Z=pt.checker)==null?void 0:Z.typeToString(pt)}catch{Dn=void 0}let Kn={};if(pt.flags&8388608){let Ur=pt;Kn={indexedAccessObjectType:(me=Ur.objectType)==null?void 0:me.id,indexedAccessIndexType:(ge=Ur.indexType)==null?void 0:ge.id}}let pn={};if(Zt&4){let Ur=pt;pn={instantiatedType:(q=Ur.target)==null?void 0:q.id,typeArguments:(J=Ur.resolvedTypeArguments)==null?void 0:J.map(Er=>Er.id),referenceLocation:Y(Ur.node)}}let Xt={};if(pt.flags&16777216){let Ur=pt;Xt={conditionalCheckType:(re=Ur.checkType)==null?void 0:re.id,conditionalExtendsType:(pe=Ur.extendsType)==null?void 0:pe.id,conditionalTrueType:((xe=Ur.resolvedTrueType)==null?void 0:xe.id)??-1,conditionalFalseType:((fe=Ur.resolvedFalseType)==null?void 0:fe.id)??-1}}let Kt={};if(pt.flags&33554432){let Ur=pt;Kt={substitutionBaseType:(ne=Ur.baseType)==null?void 0:ne.id,constraintType:(he=Ur.constraint)==null?void 0:he.id}}let hi={};if(Zt&1024){let Ur=pt;hi={reverseMappedSourceType:(Ce=Ur.source)==null?void 0:Ce.id,reverseMappedMappedType:(Ge=Ur.mappedType)==null?void 0:Ge.id,reverseMappedConstraintType:(ve=Ur.constraintType)==null?void 0:ve.id}}let uo={};if(Zt&256){let Ur=pt;uo={evolvingArrayElementType:Ur.elementType.id,evolvingArrayFinalType:(Ae=Ur.finalArrayType)==null?void 0:Ae.id}}let Li,So=pt.checker.getRecursionIdentity(pt);So&&(Li=Wt.get(So),Li||(Li=Wt.size,Wt.set(So,Li)));let Qn={id:pt.id,intrinsicName:pt.intrinsicName,symbolName:en?.escapedName&&Vi(en.escapedName),recursionId:Li,isTuple:Zt&8?!0:void 0,unionTypes:pt.flags&1048576?(De=pt.types)==null?void 0:De.map(Ur=>Ur.id):void 0,intersectionTypes:pt.flags&2097152?pt.types.map(Ur=>Ur.id):void 0,aliasTypeArguments:(Le=pt.aliasTypeArguments)==null?void 0:Le.map(Ur=>Ur.id),keyofType:pt.flags&4194304?(Et=pt.type)==null?void 0:Et.id:void 0,...Kn,...pn,...Xt,...Kt,...hi,...uo,destructuringPattern:Y(pt.pattern),firstDeclaration:Y((be=en?.declarations)==null?void 0:be[0]),flags:x.formatTypeFlags(pt.flags).split("|"),display:Dn};t.writeSync(tt,JSON.stringify(Qn)),Je<_t-1&&t.writeSync(tt,`, +`),t.closeSync(i),rr=void 0,s.length?B(s):d[d.length-1].typesPath=void 0}e.stopTracing=h;function m(z){o!=="server"&&s.push(z)}e.recordType=m;let y;(z=>{z.Parse="parse",z.Program="program",z.Bind="bind",z.Check="check",z.CheckTypes="checkTypes",z.Emit="emit",z.Session="session"})(y=e.Phase||(e.Phase={}));function E(z,ee,me){K("I",z,ee,me,'"s":"g"')}e.instant=E;let S=[];function A(z,ee,me,ge=!1){ge&&K("B",z,ee,me),S.push({phase:z,name:ee,args:me,time:1e3*Ks(),separateBeginAndEnd:ge})}e.push=A;function N(z){R.assert(S.length>0),j(S.length-1,1e3*Ks(),z),S.length--}e.pop=N;function D(){let z=1e3*Ks();for(let ee=S.length-1;ee>=0;ee--)j(ee,z);S.length=0}e.popAll=D;let w=1e3*10;function j(z,ee,me){let{phase:ge,name:q,args:J,time:re,separateBeginAndEnd:pe}=S[z];pe?(R.assert(!me,"`results` are not supported for events with `separateBeginAndEnd`"),K("E",ge,q,J,void 0,ee)):w-re%w<=ee-re&&K("X",ge,q,{...J,results:me},`"dur":${ee-re}`,re)}function K(z,ee,me,ge,q,J=1e3*Ks()){o==="server"&&ee==="checkTypes"||(el("beginTracing"),t.writeSync(i,`, +{"pid":1,"tid":1,"ph":"${z}","cat":"${ee}","ts":${J},"name":"${me}"`),q&&t.writeSync(i,`,${q}`),ge&&t.writeSync(i,`,"args":${JSON.stringify(ge)}`),t.writeSync(i,"}"),el("endTracing"),Yp("Tracing","beginTracing","endTracing"))}function Y(z){let ee=Gn(z);return ee?{path:ee.path,start:me(gs(ee,z.pos)),end:me(gs(ee,z.end))}:void 0;function me(ge){return{line:ge.line+1,character:ge.character+1}}}function B(z){var ee,me,ge,q,J,re,pe,xe,fe,ne,he,Ce,Ge,ve,Ie,De,Le,Et,be;el("beginDumpTypes");let ze=d[d.length-1].typesPath,tt=t.openSync(ze,"w"),Wt=new Map;t.writeSync(tt,"[");let _t=z.length;for(let Je=0;Je<_t;Je++){let ft=z[Je],Zt=ft.objectFlags,en=ft.aliasSymbol??ft.symbol,Dn;if(Zt&16|ft.flags&2944)try{Dn=(ee=ft.checker)==null?void 0:ee.typeToString(ft)}catch{Dn=void 0}let Kn={};if(ft.flags&8388608){let Ur=ft;Kn={indexedAccessObjectType:(me=Ur.objectType)==null?void 0:me.id,indexedAccessIndexType:(ge=Ur.indexType)==null?void 0:ge.id}}let pn={};if(Zt&4){let Ur=ft;pn={instantiatedType:(q=Ur.target)==null?void 0:q.id,typeArguments:(J=Ur.resolvedTypeArguments)==null?void 0:J.map(Er=>Er.id),referenceLocation:Y(Ur.node)}}let Yt={};if(ft.flags&16777216){let Ur=ft;Yt={conditionalCheckType:(re=Ur.checkType)==null?void 0:re.id,conditionalExtendsType:(pe=Ur.extendsType)==null?void 0:pe.id,conditionalTrueType:((xe=Ur.resolvedTrueType)==null?void 0:xe.id)??-1,conditionalFalseType:((fe=Ur.resolvedFalseType)==null?void 0:fe.id)??-1}}let qt={};if(ft.flags&33554432){let Ur=ft;qt={substitutionBaseType:(ne=Ur.baseType)==null?void 0:ne.id,constraintType:(he=Ur.constraint)==null?void 0:he.id}}let hi={};if(Zt&1024){let Ur=ft;hi={reverseMappedSourceType:(Ce=Ur.source)==null?void 0:Ce.id,reverseMappedMappedType:(Ge=Ur.mappedType)==null?void 0:Ge.id,reverseMappedConstraintType:(ve=Ur.constraintType)==null?void 0:ve.id}}let uo={};if(Zt&256){let Ur=ft;uo={evolvingArrayElementType:Ur.elementType.id,evolvingArrayFinalType:(Ie=Ur.finalArrayType)==null?void 0:Ie.id}}let Li,Eo=ft.checker.getRecursionIdentity(ft);Eo&&(Li=Wt.get(Eo),Li||(Li=Wt.size,Wt.set(Eo,Li)));let Qn={id:ft.id,intrinsicName:ft.intrinsicName,symbolName:en?.escapedName&&Vi(en.escapedName),recursionId:Li,isTuple:Zt&8?!0:void 0,unionTypes:ft.flags&1048576?(De=ft.types)==null?void 0:De.map(Ur=>Ur.id):void 0,intersectionTypes:ft.flags&2097152?ft.types.map(Ur=>Ur.id):void 0,aliasTypeArguments:(Le=ft.aliasTypeArguments)==null?void 0:Le.map(Ur=>Ur.id),keyofType:ft.flags&4194304?(Et=ft.type)==null?void 0:Et.id:void 0,...Kn,...pn,...Yt,...qt,...hi,...uo,destructuringPattern:Y(ft.pattern),firstDeclaration:Y((be=en?.declarations)==null?void 0:be[0]),flags:R.formatTypeFlags(ft.flags).split("|"),display:Dn};t.writeSync(tt,JSON.stringify(Qn)),Je<_t-1&&t.writeSync(tt,`, `)}t.writeSync(tt,`] -`),t.closeSync(tt),el("endDumpTypes"),Xp("Dump types","beginDumpTypes","endDumpTypes")}function ce(){l&&t.writeFileSync(l,JSON.stringify(d))}e.dumpLegend=ce})(DL||(DL={})),bne=DL.startTracing,Ene=DL.dumpLegend}});function rT(e,t=!0){let r=NL[e.category];return t?r.toLowerCase():r}var RW,DW,CW,r9,NW,PW,i9,CL,o9,Rx,MW,a9,s9,LW,l9,c9,d9,u9,p9,f9,m9,_9,h9,g9,y9,kW,v9,b9,E9,S9,wW,OW,T9,A9,I9,x9,R9,D9,WW,C9,N9,P9,M9,L9,k9,NL,Dx,w9,O9,W9,F9,UC,z9,B9,G9,FW,V9,j9,U9,H9,K9,zW,BW,GW,J9,q9,X9,Y9,$9,Q9,Z9,eV,PL,tV,CEe=bt({"src/compiler/types.ts"(){"use strict";RW=(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.UnparsedPrologue=307]="UnparsedPrologue",e[e.UnparsedPrepend=308]="UnparsedPrepend",e[e.UnparsedText=309]="UnparsedText",e[e.UnparsedInternalText=310]="UnparsedInternalText",e[e.UnparsedSyntheticReference=311]="UnparsedSyntheticReference",e[e.SourceFile=312]="SourceFile",e[e.Bundle=313]="Bundle",e[e.UnparsedSource=314]="UnparsedSource",e[e.InputFiles=315]="InputFiles",e[e.JSDocTypeExpression=316]="JSDocTypeExpression",e[e.JSDocNameReference=317]="JSDocNameReference",e[e.JSDocMemberName=318]="JSDocMemberName",e[e.JSDocAllType=319]="JSDocAllType",e[e.JSDocUnknownType=320]="JSDocUnknownType",e[e.JSDocNullableType=321]="JSDocNullableType",e[e.JSDocNonNullableType=322]="JSDocNonNullableType",e[e.JSDocOptionalType=323]="JSDocOptionalType",e[e.JSDocFunctionType=324]="JSDocFunctionType",e[e.JSDocVariadicType=325]="JSDocVariadicType",e[e.JSDocNamepathType=326]="JSDocNamepathType",e[e.JSDoc=327]="JSDoc",e[e.JSDocComment=327]="JSDocComment",e[e.JSDocText=328]="JSDocText",e[e.JSDocTypeLiteral=329]="JSDocTypeLiteral",e[e.JSDocSignature=330]="JSDocSignature",e[e.JSDocLink=331]="JSDocLink",e[e.JSDocLinkCode=332]="JSDocLinkCode",e[e.JSDocLinkPlain=333]="JSDocLinkPlain",e[e.JSDocTag=334]="JSDocTag",e[e.JSDocAugmentsTag=335]="JSDocAugmentsTag",e[e.JSDocImplementsTag=336]="JSDocImplementsTag",e[e.JSDocAuthorTag=337]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=338]="JSDocDeprecatedTag",e[e.JSDocClassTag=339]="JSDocClassTag",e[e.JSDocPublicTag=340]="JSDocPublicTag",e[e.JSDocPrivateTag=341]="JSDocPrivateTag",e[e.JSDocProtectedTag=342]="JSDocProtectedTag",e[e.JSDocReadonlyTag=343]="JSDocReadonlyTag",e[e.JSDocOverrideTag=344]="JSDocOverrideTag",e[e.JSDocCallbackTag=345]="JSDocCallbackTag",e[e.JSDocOverloadTag=346]="JSDocOverloadTag",e[e.JSDocEnumTag=347]="JSDocEnumTag",e[e.JSDocParameterTag=348]="JSDocParameterTag",e[e.JSDocReturnTag=349]="JSDocReturnTag",e[e.JSDocThisTag=350]="JSDocThisTag",e[e.JSDocTypeTag=351]="JSDocTypeTag",e[e.JSDocTemplateTag=352]="JSDocTemplateTag",e[e.JSDocTypedefTag=353]="JSDocTypedefTag",e[e.JSDocSeeTag=354]="JSDocSeeTag",e[e.JSDocPropertyTag=355]="JSDocPropertyTag",e[e.JSDocThrowsTag=356]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=357]="JSDocSatisfiesTag",e[e.SyntaxList=358]="SyntaxList",e[e.NotEmittedStatement=359]="NotEmittedStatement",e[e.PartiallyEmittedExpression=360]="PartiallyEmittedExpression",e[e.CommaListExpression=361]="CommaListExpression",e[e.SyntheticReferenceExpression=362]="SyntheticReferenceExpression",e[e.Count=363]="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=316]="FirstJSDocNode",e[e.LastJSDocNode=357]="LastJSDocNode",e[e.FirstJSDocTagNode=334]="FirstJSDocTagNode",e[e.LastJSDocTagNode=357]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(RW||{}),DW=(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))(DW||{}),CW=(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))(CW||{}),r9=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(r9||{}),NW=(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))(NW||{}),PW=(e=>(e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution",e))(PW||{}),i9=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(i9||{}),CL=(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))(CL||{}),o9=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(o9||{}),Rx=class{},MW=(e=>(e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",e))(MW||{}),a9=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(a9||{}),s9=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(s9||{}),LW=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(LW||{}),l9=(e=>(e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e))(l9||{}),c9=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(c9||{}),d9=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(d9||{}),u9=(e=>(e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns",e))(u9||{}),p9=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.WriteComputedProps=1073741824]="WriteComputedProps",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(p9||{}),f9=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330095]="NodeBuilderFlagsMask",e))(f9||{}),m9=(e=>(e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",e))(m9||{}),_9=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(_9||{}),h9=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(h9||{}),g9=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(g9||{}),y9=(e=>(e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType",e))(y9||{}),kW=(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))(kW||{}),v9=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(v9||{}),b9=(e=>(e[e.None=0]="None",e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial",e))(b9||{}),E9=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e.InstantiationExpression="__instantiationExpression",e.ImportAttributes="__importAttributes",e))(E9||{}),S9=(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))(S9||{}),wW=(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.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.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(wW||{}),OW=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(OW||{}),T9=(e=>(e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback",e))(T9||{}),A9=(e=>(e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest",e))(A9||{}),I9=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(I9||{}),x9=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(x9||{}),R9=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(R9||{}),D9=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(D9||{}),WW=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(WW||{}),C9=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(C9||{}),N9=(e=>(e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged",e))(N9||{}),P9=(e=>(e[e.None=0]="None",e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity",e))(P9||{}),M9=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(M9||{}),L9=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(L9||{}),k9=(e=>(e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",e))(k9||{}),NL=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(NL||{}),Dx=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node10=2]="Node10",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext",e[e.Bundler=100]="Bundler",e))(Dx||{}),w9=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(w9||{}),O9=(e=>(e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",e))(O9||{}),W9=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(W9||{}),F9=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(F9||{}),UC=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.NodeNext=199]="NodeNext",e[e.Preserve=200]="Preserve",e))(UC||{}),z9=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(z9||{}),B9=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(B9||{}),G9=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(G9||{}),FW=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(FW||{}),V9=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(V9||{}),j9=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(j9||{}),U9=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(U9||{}),H9=(e=>(e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(H9||{}),K9=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(K9||{}),zW=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(zW||{}),BW=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(BW||{}),GW=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(GW||{}),J9=(e=>(e[e.None=0]="None",e[e.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=2]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",e[e.Immutable=8]="Immutable",e[e.IndirectCall=16]="IndirectCall",e[e.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",e))(J9||{}),q9=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.CreateBinding=4194304]="CreateBinding",e[e.SetFunctionName=8388608]="SetFunctionName",e[e.PropKey=16777216]="PropKey",e[e.AddDisposableResourceAndDisposeResources=33554432]="AddDisposableResourceAndDisposeResources",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=33554432]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(q9||{}),X9=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e[e.ImportTypeNodeAttributes=7]="ImportTypeNodeAttributes",e))(X9||{}),Y9=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.Assertions=6]="Assertions",e[e.All=15]="All",e[e.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",e))(Y9||{}),$9=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))($9||{}),Q9=(e=>(e.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.TypeResolutionModeRequire="type-require",e.TypeResolutionModeImport="type-import",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal",e))(Q9||{}),Z9=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportAttributes=526226]="ImportAttributes",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(Z9||{}),eV=(e=>(e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default",e))(eV||{}),PL={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},tV=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(tV||{})}});function HC(e){let t=5381;for(let r=0;r{K.isClosed=!0,uI(t,K)}}}function d(D){let w=[];return w.pollingInterval=D,w.pollIndex=0,w.pollScheduled=!1,w}function p(D,w){w.pollIndex=m(w,w.pollingInterval,w.pollIndex,UW[w.pollingInterval]),w.length?N(w.pollingInterval):(x.assert(w.pollIndex===0),w.pollScheduled=!1)}function h(D,w){m(r,250,0,r.length),p(D,w),!w.pollScheduled&&r.length&&N(250)}function m(D,w,j,K){return PEe(e,D,j,K,Y);function Y(B,ce,z){z?(B.unchangedPolls=0,D!==r&&(D[ce]=void 0,S(B))):B.unchangedPolls!==LL[w]?B.unchangedPolls++:D===r?(B.unchangedPolls=1,D[ce]=void 0,E(B,250)):w!==2e3&&(B.unchangedPolls++,D[ce]=void 0,E(B,w===250?500:2e3))}}function y(D){switch(D){case 250:return i;case 500:return o;case 2e3:return s}}function E(D,w){y(w).push(D),A(w)}function S(D){r.push(D),A(250)}function A(D){y(D).pollScheduled||N(D)}function N(D){y(D).pollScheduled=e.setTimeout(D===250?h:p,D,D===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",y(D))}}function l7e(e,t,r,i){let o=qp(),s=i?new Map:void 0,l=new Map,d=Nd(t);return p;function p(m,y,E,S){let A=d(m);o.add(A,y).length===1&&s&&s.set(A,r(m)||Mp);let N=oi(A)||".",D=l.get(N)||h(oi(m)||".",N,S);return D.referenceCount++,{close:()=>{D.referenceCount===1?(D.close(),l.delete(N)):D.referenceCount--,o.remove(A,y)}}}function h(m,y,E){let S=e(m,1,(A,N)=>{if(!No(N))return;let D=ho(N,m),w=d(D),j=D&&o.get(w);if(j){let K,Y=1;if(s){let B=s.get(w);if(A==="change"&&(K=r(D)||Mp,K.getTime()===B.getTime()))return;K||(K=r(D)||Mp),s.set(w,K),B===Mp?Y=0:K===Mp&&(Y=2)}for(let B of j)B(D,Y,K)}},!1,500,E);return S.referenceCount=0,l.set(y,S),S}}function c7e(e){let t=[],r=0,i;return o;function o(d,p){let h={fileName:d,callback:p,mtime:fI(e,d)};return t.push(h),l(),{close:()=>{h.isClosed=!0,uI(t,h)}}}function s(){i=void 0,r=PEe(e,t,r,UW[250]),l()}function l(){!t.length||i||(i=e.setTimeout(s,2e3,"pollQueue"))}}function MEe(e,t,r,i,o){let l=Nd(t)(r),d=e.get(l);return d?d.callbacks.push(i):e.set(l,{watcher:o((p,h,m)=>{var y;return(y=e.get(l))==null?void 0:y.callbacks.slice().forEach(E=>E(p,h,m))}),callbacks:[i]}),{close:()=>{let p=e.get(l);p&&(!Tx(p.callbacks,i)||p.callbacks.length||(e.delete(l),Rf(p)))}}}function d7e(e,t){let r=e.mtime.getTime(),i=t.getTime();return r!==i?(e.mtime=t,e.callback(e.fileName,nV(r,i),t),!0):!1}function nV(e,t){return e===0?0:t===0?2:1}function ML(e){return xne(e)}function Tne(e){xne=e}function u7e({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:r,getAccessibleSortedChildDirectories:i,fileSystemEntryExists:o,realpath:s,setTimeout:l,clearTimeout:d}){let p=new Map,h=qp(),m=new Map,y,E=Ex(!t),S=Nd(t);return(z,Z,me,ge)=>me?A(z,ge,Z):e(z,Z,me,ge);function A(z,Z,me){let ge=S(z),q=p.get(ge);q?q.refCount++:(q={watcher:e(z,re=>{B(re,Z)||(Z?.synchronousWatchDirectory?(N(ge,re),Y(z,ge,Z)):D(z,ge,re,Z))},!1,Z),refCount:1,childWatches:Xe},p.set(ge,q),Y(z,ge,Z));let J=me&&{dirName:z,callback:me};return J&&h.add(ge,J),{dirName:z,close:()=>{let re=x.checkDefined(p.get(ge));J&&h.remove(ge,J),re.refCount--,!re.refCount&&(p.delete(ge),Rf(re),re.childWatches.forEach(Hm))}}}function N(z,Z,me){let ge,q;No(Z)?ge=Z:q=Z,h.forEach((J,re)=>{if(!(q&&q.get(re)===!0)&&(re===z||ao(z,re)&&z[re.length]===nl))if(q)if(me){let pe=q.get(re);pe?pe.push(...me):q.set(re,me.slice())}else q.set(re,!0);else J.forEach(({callback:pe})=>pe(ge))})}function D(z,Z,me,ge){let q=p.get(Z);if(q&&o(z,1)){w(z,Z,me,ge);return}N(Z,me),K(q)}function w(z,Z,me,ge){let q=m.get(Z);q?q.fileNames.push(me):m.set(Z,{dirName:z,options:ge,fileNames:[me]}),y&&(d(y),y=void 0),y=l(j,1e3,"timerToUpdateChildWatches")}function j(){y=void 0,ML(`sysLog:: onTimerToUpdateChildWatches:: ${m.size}`);let z=Hs(),Z=new Map;for(;!y&&m.size;){let ge=m.entries().next();x.assert(!ge.done);let{value:[q,{dirName:J,options:re,fileNames:pe}]}=ge;m.delete(q);let xe=Y(J,q,re);N(q,Z,xe?void 0:pe)}ML(`sysLog:: invokingWatchers:: Elapsed:: ${Hs()-z}ms:: ${m.size}`),h.forEach((ge,q)=>{let J=Z.get(q);J&&ge.forEach(({callback:re,dirName:pe})=>{To(J)?J.forEach(re):re(pe)})});let me=Hs()-z;ML(`sysLog:: Elapsed:: ${me}ms:: onTimerToUpdateChildWatches:: ${m.size} ${y}`)}function K(z){if(!z)return;let Z=z.childWatches;z.childWatches=Xe;for(let me of Z)me.close(),K(p.get(S(me.dirName)))}function Y(z,Z,me){let ge=p.get(Z);if(!ge)return!1;let q,J=TW(o(z,1)?to(i(z),xe=>{let fe=ho(xe,z);return!B(fe,me)&&E(fe,ma(s(fe)))===0?fe:void 0}):Xe,ge.childWatches,(xe,fe)=>E(xe,fe.dirName),re,Hm,pe);return ge.childWatches=q||Xe,J;function re(xe){let fe=A(xe,me);pe(fe)}function pe(xe){(q||(q=[])).push(xe)}}function B(z,Z){return gt(kL,me=>ce(z,me))||LEe(z,Z,t,r)}function ce(z,Z){return z.includes(Z)?!0:t?!1:S(z).includes(Z)}}function p7e(e){return(t,r,i)=>e(r===1?"change":"rename","",i)}function f7e(e,t,r){return(i,o,s)=>{i==="rename"?(s||(s=r(e)||Mp),t(e,s!==Mp?0:2,s)):t(e,1,s)}}function LEe(e,t,r,i){return(t?.excludeDirectories||t?.excludeFiles)&&(l3(e,t?.excludeFiles,r,i())||l3(e,t?.excludeDirectories,r,i()))}function kEe(e,t,r,i,o){return(s,l)=>{if(s==="rename"){let d=l?ma(Yr(e,l)):e;(!l||!LEe(d,r,i,o))&&t(d)}}}function Ane({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:r,clearTimeout:i,fsWatchWorker:o,fileSystemEntryExists:s,useCaseSensitiveFileNames:l,getCurrentDirectory:d,fsSupportsRecursiveFsWatch:p,getAccessibleSortedChildDirectories:h,realpath:m,tscWatchFile:y,useNonPollingWatchers:E,tscWatchDirectory:S,inodeWatching:A,fsWatchWithTimestamp:N,sysLog:D}){let w=new Map,j=new Map,K=new Map,Y,B,ce,z,Z=!1;return{watchFile:me,watchDirectory:pe};function me(ve,Ae,De,Le){Le=J(Le,E);let Et=x.checkDefined(Le.watchFile);switch(Et){case 0:return ne(ve,Ae,250,void 0);case 1:return ne(ve,Ae,De,void 0);case 2:return ge()(ve,Ae,De,void 0);case 3:return q()(ve,Ae,void 0,void 0);case 4:return he(ve,0,f7e(ve,Ae,t),!1,De,Cw(Le));case 5:return ce||(ce=l7e(he,l,t,N)),ce(ve,Ae,De,Cw(Le));default:x.assertNever(Et)}}function ge(){return Y||(Y=s7e({getModifiedTime:t,setTimeout:r}))}function q(){return B||(B=c7e({getModifiedTime:t,setTimeout:r}))}function J(ve,Ae){if(ve&&ve.watchFile!==void 0)return ve;switch(y){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return re(4,1,ve);case"UseFsEventsWithFallbackDynamicPolling":return re(4,2,ve);case"UseFsEventsOnParentDirectory":Ae=!0;default:return Ae?re(5,1,ve):{watchFile:4}}}function re(ve,Ae,De){let Le=De?.fallbackPolling;return{watchFile:ve,fallbackPolling:Le===void 0?Ae:Le}}function pe(ve,Ae,De,Le){return p?he(ve,1,kEe(ve,Ae,Le,l,d),De,500,Cw(Le)):(z||(z=u7e({useCaseSensitiveFileNames:l,getCurrentDirectory:d,fileSystemEntryExists:s,getAccessibleSortedChildDirectories:h,watchDirectory:xe,realpath:m,setTimeout:r,clearTimeout:i})),z(ve,Ae,De,Le))}function xe(ve,Ae,De,Le){x.assert(!De);let Et=fe(Le),be=x.checkDefined(Et.watchDirectory);switch(be){case 1:return ne(ve,()=>Ae(ve),500,void 0);case 2:return ge()(ve,()=>Ae(ve),500,void 0);case 3:return q()(ve,()=>Ae(ve),void 0,void 0);case 0:return he(ve,1,kEe(ve,Ae,Le,l,d),De,500,Cw(Et));default:x.assertNever(be)}}function fe(ve){if(ve&&ve.watchDirectory!==void 0)return ve;switch(S){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:let Ae=ve?.fallbackPolling;return{watchDirectory:0,fallbackPolling:Ae!==void 0?Ae:void 0}}}function ne(ve,Ae,De,Le){return MEe(w,l,ve,Ae,Et=>e(ve,Et,De,Le))}function he(ve,Ae,De,Le,Et,be){return MEe(Le?K:j,l,ve,De,ze=>Ce(ve,Ae,ze,Le,Et,be))}function Ce(ve,Ae,De,Le,Et,be){let ze,tt;A&&(ze=ve.substring(ve.lastIndexOf(nl)),tt=ze.slice(nl.length));let Wt=s(ve,Ae)?Je():en();return{close:()=>{Wt&&(Wt.close(),Wt=void 0)}};function _t(Dn){Wt&&(D(`sysLog:: ${ve}:: Changing watcher to ${Dn===Je?"Present":"Missing"}FileSystemEntryWatcher`),Wt.close(),Wt=Dn())}function Je(){if(Z)return D(`sysLog:: ${ve}:: Defaulting to watchFile`),Zt();try{let Dn=(Ae===1||!N?o:Ge)(ve,Le,A?pt:De);return Dn.on("error",()=>{De("rename",""),_t(en)}),Dn}catch(Dn){return Z||(Z=Dn.code==="ENOSPC"),D(`sysLog:: ${ve}:: Changing to watchFile`),Zt()}}function pt(Dn,Kn){let pn;if(Kn&&El(Kn,"~")&&(pn=Kn,Kn=Kn.slice(0,Kn.length-1)),Dn==="rename"&&(!Kn||Kn===tt||El(Kn,ze))){let Xt=t(ve)||Mp;pn&&De(Dn,pn,Xt),De(Dn,Kn,Xt),A?_t(Xt===Mp?en:Je):Xt===Mp&&_t(en)}else pn&&De(Dn,pn),De(Dn,Kn)}function Zt(){return me(ve,p7e(De),Et,be)}function en(){return me(ve,(Dn,Kn,pn)=>{Kn===0&&(pn||(pn=t(ve)||Mp),pn!==Mp&&(De("rename","",pn),_t(Je)))},Et,be)}}function Ge(ve,Ae,De){let Le=t(ve)||Mp;return o(ve,Ae,(Et,be,ze)=>{Et==="change"&&(ze||(ze=t(ve)||Mp),ze.getTime()===Le.getTime())||(Le=ze||t(ve)||Mp,De(Et,be,Le))})}}function Ine(e){let t=e.writeFile;e.writeFile=(r,i,o)=>zj(r,i,!!o,(s,l,d)=>t.call(e,s,l,d),s=>e.createDirectory(s),s=>e.directoryExists(s))}function wEe(e){hd=e}var rV,VW,Mp,jW,UW,LL,kL,xne,iV,hd,m7e=bt({"src/compiler/sys.ts"(){"use strict";ea(),rV=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(rV||{}),VW=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(VW||{}),Mp=new Date(0),jW={Low:32,Medium:64,High:256},UW=Sne(jW),LL=Sne(jW),kL=["/node_modules/.","/.git","/.#"],xne=qa,iV=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(iV||{}),hd=(()=>{let e="\uFEFF";function t(){let i=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,o=_i("fs"),s=_i("path"),l=_i("os"),d;try{d=_i("crypto")}catch{d=void 0}let p,h="./profile.cpuprofile",m=_i("buffer").Buffer,y=process.platform==="darwin",E=process.platform==="linux"||y,S=l.platform(),A=q(),N=o.realpathSync.native?process.platform==="win32"?Le:o.realpathSync.native:o.realpathSync,D=__filename.endsWith("sys.js")?s.join(s.dirname(__dirname),"__fake__.js"):__filename,w=process.platform==="win32"||y,j=vu(()=>process.cwd()),{watchFile:K,watchDirectory:Y}=Ane({pollingWatchFileWorker:re,getModifiedTime:be,setTimeout,clearTimeout,fsWatchWorker:pe,useCaseSensitiveFileNames:A,getCurrentDirectory:j,fileSystemEntryExists:Ge,fsSupportsRecursiveFsWatch:w,getAccessibleSortedChildDirectories:_t=>he(_t).directories,realpath:Et,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:!!process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,inodeWatching:E,fsWatchWithTimestamp:y,sysLog:ML}),B={args:process.argv.slice(2),newLine:l.EOL,useCaseSensitiveFileNames:A,write(_t){process.stdout.write(_t)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:fe,writeFile:ne,watchFile:K,watchDirectory:Y,resolvePath:_t=>s.resolve(_t),fileExists:ve,directoryExists:Ae,getAccessibleFileSystemEntries:he,createDirectory(_t){if(!B.directoryExists(_t))try{o.mkdirSync(_t)}catch(Je){if(Je.code!=="EEXIST")throw Je}},getExecutingFilePath(){return D},getCurrentDirectory:j,getDirectories:De,getEnvironmentVariable(_t){return process.env[_t]||""},readDirectory:Ce,getModifiedTime:be,setModifiedTime:ze,deleteFile:tt,createHash:d?Wt:HC,createSHA256Hash:d?Wt:void 0,getMemoryUsage(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize(_t){try{let Je=ce(_t);if(Je?.isFile())return Je.size}catch{}return 0},exit(_t){me(()=>process.exit(_t))},enableCPUProfiler:z,disableCPUProfiler:me,cpuProfilingEnabled:()=>!!p||Bo(process.execArgv,"--cpu-prof")||Bo(process.execArgv,"--prof"),realpath:Et,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||gt(process.execArgv,_t=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(_t))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{_i("source-map-support").install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1Bc")},setBlocking:()=>{var _t;let Je=(_t=process.stdout)==null?void 0:_t._handle;Je&&Je.setBlocking&&Je.setBlocking(!0)},bufferFrom:ge,base64decode:_t=>ge(_t,"base64").toString("utf8"),base64encode:_t=>ge(_t).toString("base64"),require:(_t,Je)=>{try{let pt=bse(Je,_t,B);return{module:_i(pt),modulePath:pt,error:void 0}}catch(pt){return{module:void 0,modulePath:void 0,error:pt}}}};return B;function ce(_t){return o.statSync(_t,{throwIfNoEntry:!1})}function z(_t,Je){if(p)return Je(),!1;let pt=_i("inspector");if(!pt||!pt.Session)return Je(),!1;let Zt=new pt.Session;return Zt.connect(),Zt.post("Profiler.enable",()=>{Zt.post("Profiler.start",()=>{p=Zt,h=_t,Je()})}),!0}function Z(_t){let Je=0,pt=new Map,Zt=Pd(s.dirname(D)),en=`file://${sh(Zt)===1?"":"/"}${Zt}`;for(let Dn of _t.nodes)if(Dn.callFrame.url){let Kn=Pd(Dn.callFrame.url);mm(en,Kn,A)?Dn.callFrame.url=_I(en,Kn,en,Nd(A),!0):i.test(Kn)||(Dn.callFrame.url=(pt.has(Kn)?pt:pt.set(Kn,`external${Je}.js`)).get(Kn),Je++)}return _t}function me(_t){if(p&&p!=="stopping"){let Je=p;return p.post("Profiler.stop",(pt,{profile:Zt})=>{var en;if(!pt){try{(en=ce(h))!=null&&en.isDirectory()&&(h=s.join(h,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch{}try{o.mkdirSync(s.dirname(h),{recursive:!0})}catch{}o.writeFileSync(h,JSON.stringify(Z(Zt)))}p=void 0,Je.disconnect(),_t()}),p="stopping",!0}else return _t(),!1}function ge(_t,Je){return m.from&&m.from!==Int8Array.from?m.from(_t,Je):new m(_t,Je)}function q(){return S==="win32"||S==="win64"?!1:!ve(J(__filename))}function J(_t){return _t.replace(/\w/g,Je=>{let pt=Je.toUpperCase();return Je===pt?Je.toLowerCase():pt})}function re(_t,Je,pt){o.watchFile(_t,{persistent:!0,interval:pt},en);let Zt;return{close:()=>o.unwatchFile(_t,en)};function en(Dn,Kn){let pn=+Kn.mtime==0||Zt===2;if(+Dn.mtime==0){if(pn)return;Zt=2}else if(pn)Zt=0;else{if(+Dn.mtime==+Kn.mtime)return;Zt=1}Je(_t,Zt,Dn.mtime)}}function pe(_t,Je,pt){return o.watch(_t,w?{persistent:!0,recursive:!!Je}:{persistent:!0},pt)}function xe(_t,Je){let pt;try{pt=o.readFileSync(_t)}catch{return}let Zt=pt.length;if(Zt>=2&&pt[0]===254&&pt[1]===255){Zt&=-2;for(let en=0;en=2&&pt[0]===255&&pt[1]===254?pt.toString("utf16le",2):Zt>=3&&pt[0]===239&&pt[1]===187&&pt[2]===191?pt.toString("utf8",3):pt.toString("utf8")}function fe(_t,Je){var pt,Zt;(pt=nu)==null||pt.logStartReadFile(_t);let en=xe(_t,Je);return(Zt=nu)==null||Zt.logStopReadFile(),en}function ne(_t,Je,pt){var Zt;(Zt=nu)==null||Zt.logEvent("WriteFile: "+_t),pt&&(Je=e+Je);let en;try{en=o.openSync(_t,"w"),o.writeSync(en,Je,void 0,"utf8")}finally{en!==void 0&&o.closeSync(en)}}function he(_t){var Je;(Je=nu)==null||Je.logEvent("ReadDir: "+(_t||"."));try{let pt=o.readdirSync(_t||".",{withFileTypes:!0}),Zt=[],en=[];for(let Dn of pt){let Kn=typeof Dn=="string"?Dn:Dn.name;if(Kn==="."||Kn==="..")continue;let pn;if(typeof Dn=="string"||Dn.isSymbolicLink()){let Xt=Yr(_t,Kn);try{if(pn=ce(Xt),!pn)continue}catch{continue}}else pn=Dn;pn.isFile()?Zt.push(Kn):pn.isDirectory()&&en.push(Kn)}return Zt.sort(),en.sort(),{files:Zt,directories:en}}catch{return Q6}}function Ce(_t,Je,pt,Zt,en){return lU(_t,Je,pt,Zt,A,process.cwd(),en,he,Et)}function Ge(_t,Je){let pt=Error.stackTraceLimit;Error.stackTraceLimit=0;try{let Zt=ce(_t);if(!Zt)return!1;switch(Je){case 0:return Zt.isFile();case 1:return Zt.isDirectory();default:return!1}}catch{return!1}finally{Error.stackTraceLimit=pt}}function ve(_t){return Ge(_t,0)}function Ae(_t){return Ge(_t,1)}function De(_t){return he(_t).directories.slice()}function Le(_t){return _t.length<260?o.realpathSync.native(_t):o.realpathSync(_t)}function Et(_t){try{return N(_t)}catch{return _t}}function be(_t){var Je;let pt=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return(Je=ce(_t))==null?void 0:Je.mtime}catch{return}finally{Error.stackTraceLimit=pt}}function ze(_t,Je){try{o.utimesSync(_t,Je,Je)}catch{return}}function tt(_t){try{return o.unlinkSync(_t)}catch{return}}function Wt(_t){let Je=d.createHash("sha256");return Je.update(_t),Je.digest("hex")}}let r;return qG()&&(r=t()),r&&Ine(r),r})(),hd&&hd.getEnvironmentVariable&&(a7e(hd),x.setAssertionLevel(/^development$/i.test(hd.getEnvironmentVariable("NODE_ENV"))?1:0)),hd&&hd.debugMode&&(x.isDebugging=!0)}});function oV(e){return e===47||e===92}function Rne(e){return HW(e)<0}function cp(e){return HW(e)>0}function aV(e){let t=HW(e);return t>0&&t===e.length}function KC(e){return HW(e)!==0}function Lp(e){return/^\.\.?($|[\\/])/.test(e)}function sV(e){return!KC(e)&&!Lp(e)}function mI(e){return nc(e).includes(".")}function Sl(e,t){return e.length>t.length&&El(e,t)}function bc(e,t){for(let r of t)if(Sl(e,r))return!0;return!1}function Iy(e){return e.length>0&&oV(e.charCodeAt(e.length-1))}function OEe(e){return e>=97&&e<=122||e>=65&&e<=90}function _7e(e,t){let r=e.charCodeAt(t);if(r===58)return t+1;if(r===37&&e.charCodeAt(t+1)===51){let i=e.charCodeAt(t+2);if(i===97||i===65)return t+3}return-1}function HW(e){if(!e)return 0;let t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;let i=e.indexOf(t===47?nl:FL,2);return i<0?e.length:i+1}if(OEe(t)&&e.charCodeAt(1)===58){let i=e.charCodeAt(2);if(i===47||i===92)return 3;if(e.length===2)return 2}let r=e.indexOf(Nne);if(r!==-1){let i=r+Nne.length,o=e.indexOf(nl,i);if(o!==-1){let s=e.slice(0,r),l=e.slice(i,o);if(s==="file"&&(l===""||l==="localhost")&&OEe(e.charCodeAt(o+1))){let d=_7e(e,o+2);if(d!==-1){if(e.charCodeAt(d)===47)return~(d+1);if(d===e.length)return~d}}return~(o+1)}return~e.length}return 0}function sh(e){let t=HW(e);return t<0?~t:t}function oi(e){e=Pd(e);let t=sh(e);return t===e.length?e:(e=Xb(e),e.slice(0,Math.max(t,e.lastIndexOf(nl))))}function nc(e,t,r){if(e=Pd(e),sh(e)===e.length)return"";e=Xb(e);let o=e.slice(Math.max(sh(e),e.lastIndexOf(nl)+1)),s=t!==void 0&&r!==void 0?Cx(o,t,r):void 0;return s?o.slice(0,o.length-s.length):o}function WEe(e,t,r){if(ao(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){let i=e.slice(e.length-t.length);if(r(i,t))return i}}function h7e(e,t,r){if(typeof t=="string")return WEe(e,t,r)||"";for(let i of t){let o=WEe(e,i,r);if(o)return o}return""}function Cx(e,t,r){if(t)return h7e(Xb(e),t,r?qb:eT);let i=nc(e),o=i.lastIndexOf(".");return o>=0?i.substring(o):""}function g7e(e,t){let r=e.substring(0,t),i=e.substring(t).split(nl);return i.length&&!$s(i)&&i.pop(),[r,...i]}function zc(e,t=""){return e=Yr(t,e),g7e(e,sh(e))}function Tv(e,t){return e.length===0?"":(e[0]&&Bc(e[0]))+e.slice(1,t).join(nl)}function Pd(e){return e.includes("\\")?e.replace(BEe,nl):e}function iT(e){if(!gt(e))return[];let t=[e[0]];for(let r=1;r1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(i)}}return t}function Yr(e,...t){e&&(e=Pd(e));for(let r of t)r&&(r=Pd(r),!e||sh(r)!==0?e=r:e=Bc(e)+r);return e}function Av(e,...t){return ma(gt(t)?Yr(e,...t):Pd(e))}function wL(e,t){return iT(zc(e,t))}function ho(e,t){return Tv(wL(e,t))}function ma(e){if(e=Pd(e),!JW.test(e))return e;let t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!JW.test(e)))return e;let r=Tv(iT(zc(e)));return r&&Iy(e)?Bc(r):r}function y7e(e){return e.length===0?"":e.slice(1).join(nl)}function lV(e,t){return y7e(wL(e,t))}function tl(e,t,r){let i=cp(e)?ma(e):ho(e,t);return r(i)}function Xb(e){return Iy(e)?e.substr(0,e.length-1):e}function Bc(e){return Iy(e)?e:e+nl}function h0(e){return!KC(e)&&!Lp(e)?"./"+e:e}function OL(e,t,r,i){let o=r!==void 0&&i!==void 0?Cx(e,r,i):Cx(e);return o?e.slice(0,e.length-o.length)+(ao(t,".")?t:"."+t):e}function Dne(e,t){let r=CH(e);return r?e.slice(0,e.length-r.length)+(ao(t,".")?t:"."+t):OL(e,t)}function Cne(e,t,r){if(e===t)return 0;if(e===void 0)return-1;if(t===void 0)return 1;let i=e.substring(0,sh(e)),o=t.substring(0,sh(t)),s=vW(i,o);if(s!==0)return s;let l=e.substring(i.length),d=t.substring(o.length);if(!JW.test(l)&&!JW.test(d))return r(l,d);let p=iT(zc(e)),h=iT(zc(t)),m=Math.min(p.length,h.length);for(let y=1;y0==sh(t)>0,"Paths must either both be absolute or both be relative");let s=dV(e,t,(typeof r=="boolean"?r:!1)?qb:eT,typeof r=="function"?r:Qs);return Tv(s)}function JC(e,t,r){return cp(e)?_I(t,e,t,r,!1):e}function WL(e,t,r){return h0(_m(oi(e),t,r))}function _I(e,t,r,i,o){let s=dV(Av(r,e),Av(r,t),eT,i),l=s[0];if(o&&cp(l)){let d=l.charAt(0)===nl?"file://":"file:///";s[0]=d+l}return Tv(s)}function hm(e,t){for(;;){let r=t(e);if(r!==void 0)return r;let i=oi(e);if(i===e)return;e=i}}function KW(e){return El(e,"/node_modules")}var nl,FL,Nne,BEe,JW,v7e=bt({"src/compiler/path.ts"(){"use strict";ea(),nl="/",FL="\\",Nne="://",BEe=/\\/g,JW=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function b(e,t,r,i,o,s,l){return{code:e,category:t,key:r,message:i,reportsUnnecessary:o,elidedInCompatabilityPyramid:s,reportsDeprecated:l}}var f,b7e=bt({"src/compiler/diagnosticInformationMap.generated.ts"(){"use strict";CEe(),f={Unterminated_string_literal:b(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:b(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:b(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:b(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:b(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:b(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:b(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:b(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:b(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:b(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:b(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:b(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:b(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:b(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:b(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:b(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:b(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:b(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:b(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:b(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:b(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:b(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:b(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:b(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:b(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:b(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:b(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:b(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:b(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:b(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:b(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:b(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:b(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:b(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:b(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:b(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:b(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:b(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:b(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:b(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:b(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:b(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:b(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:b(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:b(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:b(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:b(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:b(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:b(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:b(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:b(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:b(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:b(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:b(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:b(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:b(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:b(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:b(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:b(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:b(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:b(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:b(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:b(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:b(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:b(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:b(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:b(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:b(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:b(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:b(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:b(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:b(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:b(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:b(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:b(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:b(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:b(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:b(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:b(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:b(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:b(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:b(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:b(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:b(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:b(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:b(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:b(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:b(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:b(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:b(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:b(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:b(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:b(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:b(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:b(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:b(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:b(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:b(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:b(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:b(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:b(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:b(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:b(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:b(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:b(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:b(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:b(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:b(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:b(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:b(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:b(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:b(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:b(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:b(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:b(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:b(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:b(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:b(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:b(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:b(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:b(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:b(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:b(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:b(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:b(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:b(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:b(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:b(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:b(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:b(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:b(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:b(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:b(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:b(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:b(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:b(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:b(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:b(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:b(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:b(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:b(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:b(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:b(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:b(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:b(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:b(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:b(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:b(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:b(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:b(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:b(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:b(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:b(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:b(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:b(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:b(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:b(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:b(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:b(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:b(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:b(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:b(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:b(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:b(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:b(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:b(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:b(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:b(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:b(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:b(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:b(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:b(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:b(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:b(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:b(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:b(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:b(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:b(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:b(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:b(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:b(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:b(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:b(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:b(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:b(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:b(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:b(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:b(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:b(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:b(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:b(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:b(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:b(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:b(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:b(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:b(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:b(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:b(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:b(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:b(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:b(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:b(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:b(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:b(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:b(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:b(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:b(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:b(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:b(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:b(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:b(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:b(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:b(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:b(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:b(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:b(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:b(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:b(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:b(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:b(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:b(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:b(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:b(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:b(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:b(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:b(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:b(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:b(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:b(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:b(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:b(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:b(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:b(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:b(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:b(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:b(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:b(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:b(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:b(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:b(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:b(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:b(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),with_statements_are_not_allowed_in_an_async_function_block:b(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:b(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:b(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:b(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:b(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:b(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:b(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:b(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:b(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:b(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:b(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:b(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:b(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:b(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:b(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:b(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:b(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:b(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:b(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:b(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:b(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:b(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:b(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:b(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:b(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:b(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:b(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:b(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:b(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:b(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:b(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:b(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:b(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:b(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:b(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:b(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:b(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:b(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:b(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:b(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:b(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:b(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:b(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:b(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:b(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:b(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:b(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:b(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:b(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:b(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:b(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:b(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:b(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:b(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:b(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:b(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:b(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:b(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:b(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:b(1371,1,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:b(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:b(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:b(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:b(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:b(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:b(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:b(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:b(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:b(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:b(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:b(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:b(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:b(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:b(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:b(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:b(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:b(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:b(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:b(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:b(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:b(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:b(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:b(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:b(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:b(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:b(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:b(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:b(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:b(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:b(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:b(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:b(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:b(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:b(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:b(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:b(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:b(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:b(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:b(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:b(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:b(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:b(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:b(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:b(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:b(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:b(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:b(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:b(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:b(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:b(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:b(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:b(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:b(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:b(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:b(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:b(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:b(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:b(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:b(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:b(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:b(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:b(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:b(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:b(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:b(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:b(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:b(1444,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:b(1446,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:b(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:b(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:b(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:b(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:b(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:b(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:b(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:b(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:b(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:b(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:b(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:b(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:b(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:b(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:b(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:b(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:b(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:b(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:b(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:b(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:b(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:b(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:b(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:b(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:b(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:b(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:b(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:b(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:b(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:b(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:b(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:b(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:b(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:b(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:b(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:b(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:b(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:b(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:b(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:b(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:b(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:b(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),The_types_of_0_are_incompatible_between_these_types:b(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:b(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:b(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:b(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:b(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:b(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:b(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:b(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:b(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:b(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:b(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:b(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:b(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:b(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:b(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:b(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:b(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:b(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:b(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:b(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:b(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:b(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:b(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:b(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:b(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:b(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:b(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:b(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:b(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:b(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:b(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:b(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:b(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:b(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:b(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:b(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:b(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:b(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:b(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:b(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:b(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:b(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:b(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:b(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:b(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:b(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:b(2333,1,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:b(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:b(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:b(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:b(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:b(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:b(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:b(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:b(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:b(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:b(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:b(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Untyped_function_calls_may_not_accept_type_arguments:b(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:b(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:b(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:b(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:b(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:b(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:b(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:b(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:b(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:b(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:b(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:b(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:b(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:b(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:b(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:b(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:b(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:b(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:b(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:b(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:b(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:b(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:b(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:b(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:b(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:b(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:b(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:b(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:b(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:b(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:b(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:b(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:b(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:b(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:b(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:b(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:b(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:b(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:b(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:b(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:b(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:b(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:b(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:b(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:b(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:b(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:b(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:b(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:b(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:b(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:b(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:b(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:b(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:b(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:b(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:b(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:b(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:b(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:b(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:b(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:b(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:b(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:b(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:b(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:b(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:b(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:b(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:b(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:b(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:b(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:b(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:b(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:b(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:b(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:b(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:b(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:b(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:b(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:b(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:b(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:b(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:b(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:b(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:b(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:b(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:b(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:b(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:b(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:b(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:b(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:b(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:b(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:b(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:b(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:b(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:b(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:b(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:b(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:b(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:b(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:b(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:b(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:b(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:b(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:b(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:b(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:b(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:b(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:b(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:b(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:b(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:b(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:b(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:b(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:b(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:b(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:b(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:b(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:b(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:b(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:b(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:b(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:b(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:b(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:b(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:b(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:b(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:b(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:b(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:b(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:b(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:b(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:b(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:b(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:b(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:b(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:b(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:b(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:b(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:b(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:b(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:b(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:b(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:b(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:b(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:b(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:b(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:b(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:b(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:b(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:b(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:b(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:b(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:b(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:b(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:b(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:b(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:b(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:b(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:b(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:b(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:b(2525,1,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:b(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:b(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:b(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:b(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:b(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:b(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:b(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:b(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:b(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:b(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:b(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:b(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:b(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:b(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:b(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:b(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:b(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:b(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:b(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:b(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:b(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:b(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:b(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:b(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:b(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:b(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:b(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:b(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:b(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:b(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:b(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:b(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:b(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:b(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:b(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:b(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:b(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:b(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:b(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:b(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:b(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:b(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:b(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:b(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:b(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:b(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:b(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:b(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:b(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:b(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:b(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:b(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:b(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:b(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:b(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:b(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:b(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:b(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:b(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:b(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:b(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:b(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:b(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:b(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:b(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:b(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:b(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:b(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:b(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:b(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:b(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:b(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:b(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:b(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:b(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:b(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:b(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:b(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:b(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:b(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:b(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:b(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:b(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:b(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:b(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:b(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:b(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:b(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:b(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:b(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:b(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:b(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:b(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:b(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:b(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:b(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:b(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:b(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:b(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:b(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:b(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:b(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:b(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),JSX_expressions_must_have_one_parent_element:b(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:b(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:b(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:b(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:b(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:b(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:b(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:b(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:b(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:b(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:b(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:b(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:b(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:b(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:b(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:b(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:b(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:b(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:b(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:b(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:b(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:b(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:b(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:b(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:b(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:b(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:b(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:b(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:b(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:b(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:b(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:b(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:b(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:b(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:b(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:b(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:b(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:b(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:b(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:b(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:b(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:b(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:b(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:b(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:b(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:b(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:b(2705,1,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:b(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:b(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:b(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:b(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:b(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:b(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:b(2712,1,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:b(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:b(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:b(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:b(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:b(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:b(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:b(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:b(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:b(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:b(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:b(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:b(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:b(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:b(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:b(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:b(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:b(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:b(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:b(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:b(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:b(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:b(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:b(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:b(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:b(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:b(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:b(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:b(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:b(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:b(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:b(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:b(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:b(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:b(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:b(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:b(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:b(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:b(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:b(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:b(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:b(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:b(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:b(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:b(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:b(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:b(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:b(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:b(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:b(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:b(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:b(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:b(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:b(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:b(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:b(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:b(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:b(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:b(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:b(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:b(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:b(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:b(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:b(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:b(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:b(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:b(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:b(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:b(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:b(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:b(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:b(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:b(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:b(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:b(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:b(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:b(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:b(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:b(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:b(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:b(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:b(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:b(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:b(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:b(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:b(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:b(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:b(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:b(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:b(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:b(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:b(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:b(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:b(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:b(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:b(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:b(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:b(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:b(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:b(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:b(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:b(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:b(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:b(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:b(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:b(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:b(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:b(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:b(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:b(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:b(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:b(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:b(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:b(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:b(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:b(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:b(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:b(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:b(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:b(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:b(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:b(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:b(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:b(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:b(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:b(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:b(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:b(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:b(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:b(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:b(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:b(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:b(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:b(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:b(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:b(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:b(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:b(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:b(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:b(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:b(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:b(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:b(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:b(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:b(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Import_declaration_0_is_using_private_name_1:b(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:b(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:b(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:b(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:b(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:b(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:b(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:b(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:b(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:b(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:b(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:b(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:b(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:b(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:b(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:b(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:b(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:b(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:b(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:b(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:b(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:b(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:b(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:b(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:b(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:b(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:b(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:b(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:b(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:b(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:b(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:b(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:b(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:b(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:b(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:b(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:b(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:b(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:b(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:b(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:b(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:b(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:b(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:b(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:b(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:b(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:b(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:b(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:b(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:b(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:b(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:b(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:b(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:b(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:b(4090,1,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:b(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:b(4094,1,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:b(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:b(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:b(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:b(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:b(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:b(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:b(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:b(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:b(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:b(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:b(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:b(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:b(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:b(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:b(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:b(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:b(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:b(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:b(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:b(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:b(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:b(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:b(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:b(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:b(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:b(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:b(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:b(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),The_current_host_does_not_support_the_0_option:b(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:b(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:b(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:b(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:b(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:b(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:b(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:b(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:b(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:b(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:b(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:b(5048,1,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:b(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:b(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:b(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:b(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:b(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:b(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:b(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:b(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:b(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:b(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:b(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:b(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:b(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:b(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:b(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:b(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:b(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:b(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:b(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:b(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:b(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:b(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:b(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:b(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:b(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:b(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:b(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:b(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:b(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:b(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:b(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:b(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:b(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:b(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:b(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:b(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:b(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:b(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:b(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:b(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:b(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:b(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:b(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:b(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:b(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:b(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:b(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:b(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:b(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:b(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:b(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:b(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:b(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:b(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:b(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:b(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:b(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:b(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:b(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:b(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:b(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:b(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:b(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:b(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:b(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:b(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:b(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:b(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:b(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:b(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:b(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:b(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:b(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:b(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:b(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:b(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:b(6024,3,"options_6024","options"),file:b(6025,3,"file_6025","file"),Examples_Colon_0:b(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:b(6027,3,"Options_Colon_6027","Options:"),Version_0:b(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:b(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:b(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:b(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:b(6034,3,"KIND_6034","KIND"),FILE:b(6035,3,"FILE_6035","FILE"),VERSION:b(6036,3,"VERSION_6036","VERSION"),LOCATION:b(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:b(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:b(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:b(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:b(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:b(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:b(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:b(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:b(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:b(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:b(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:b(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:b(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:b(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:b(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:b(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:b(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:b(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:b(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:b(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:b(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:b(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:b(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:b(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:b(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:b(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:b(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:b(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:b(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:b(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:b(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:b(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:b(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:b(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:b(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:b(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:b(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:b(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:b(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:b(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:b(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:b(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:b(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:b(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:b(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:b(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:b(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:b(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:b(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:b(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:b(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:b(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:b(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:b(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:b(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:b(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:b(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:b(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:b(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:b(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:b(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:b(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:b(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:b(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:b(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:b(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:b(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:b(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:b(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:b(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:b(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:b(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:b(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:b(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:b(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:b(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:b(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:b(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:b(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:b(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:b(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:b(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:b(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:b(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:b(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:b(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:b(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:b(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:b(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:b(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:b(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:b(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:b(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:b(6145,3,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:b(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:b(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:b(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:b(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:b(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:b(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:b(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:b(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:b(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:b(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:b(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:b(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:b(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:b(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:b(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:b(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:b(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:b(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:b(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:b(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:b(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:b(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:b(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:b(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:b(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:b(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:b(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:b(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:b(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:b(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:b(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:b(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:b(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:b(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:b(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:b(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:b(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:b(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:b(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:b(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:b(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:b(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:b(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:b(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:b(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:b(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:b(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:b(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:b(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:b(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:b(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:b(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:b(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:b(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:b(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:b(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:b(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:b(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:b(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:b(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:b(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:b(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:b(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:b(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:b(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:b(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:b(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:b(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:b(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:b(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:b(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:b(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:b(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:b(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:b(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:b(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:b(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:b(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:b(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:b(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:b(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:b(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:b(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:b(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:b(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:b(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:b(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:b(6244,3,"Modules_6244","Modules"),File_Management:b(6245,3,"File_Management_6245","File Management"),Emit:b(6246,3,"Emit_6246","Emit"),JavaScript_Support:b(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:b(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:b(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:b(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:b(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:b(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:b(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:b(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:b(6255,3,"Projects_6255","Projects"),Output_Formatting:b(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:b(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:b(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:b(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:b(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:b(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:b(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:b(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:b(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:b(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:b(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:b(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:b(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:b(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:b(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:b(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:b(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:b(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:b(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:b(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:b(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:b(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),Enable_project_compilation:b(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:b(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:b(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:b(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:b(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:b(6308,1,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:b(6309,1,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:b(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:b(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:b(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:b(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:b(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:b(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:b(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:b(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:b(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:b(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:b(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:b(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:b(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:b(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:b(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:b(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:b(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:b(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:b(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:b(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:b(6372,3,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:b(6373,3,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:b(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:b(6375,3,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:b(6376,3,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:b(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:b(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:b(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:b(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:b(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:b(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:b(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:b(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:b(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:b(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:b(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:b(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:b(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:b(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:b(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:b(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:b(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:b(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:b(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:b(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:b(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:b(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:b(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:b(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:b(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:b(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:b(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:b(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:b(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:b(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:b(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:b(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:b(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:b(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:b(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:b(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:b(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:b(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:b(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:b(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:b(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:b(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:b(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:b(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:b(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:b(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:b(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:b(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:b(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:b(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:b(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:b(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:b(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:b(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:b(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:b(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:b(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:b(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:b(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:b(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:b(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:b(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:b(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:b(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:b(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:b(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:b(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:b(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:b(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:b(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:b(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:b(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:b(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:b(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:b(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:b(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:b(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:b(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:b(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:b(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:b(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:b(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:b(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:b(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:b(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:b(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:b(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:b(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:b(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:b(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:b(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:b(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:b(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:b(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:b(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:b(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:b(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:b(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:b(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:b(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:b(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:b(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:b(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:b(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:b(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:b(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:b(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:b(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:b(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:b(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:b(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:b(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:b(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:b(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:b(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:b(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:b(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:b(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:b(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:b(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:b(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:b(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:b(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:b(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:b(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:b(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:b(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:b(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:b(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:b(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:b(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:b(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:b(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:b(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:b(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:b(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:b(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:b(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:b(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:b(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:b(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:b(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:b(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:b(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:b(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:b(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:b(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:b(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:b(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:b(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:b(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:b(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:b(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:b(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:b(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:b(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:b(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:b(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:b(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:b(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:b(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:b(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Default_catch_clause_variables_as_unknown_instead_of_any:b(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:b(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),one_of_Colon:b(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:b(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:b(6902,3,"type_Colon_6902","type:"),default_Colon:b(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:b(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:b(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:b(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:b(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:b(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:b(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:b(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:b(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:b(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:b(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:b(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:b(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:b(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:b(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:b(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:b(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:b(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:b(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:b(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:b(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:b(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:b(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:b(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:b(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:b(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:b(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:b(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:b(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:b(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:b(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:b(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:b(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:b(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:b(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:b(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:b(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:b(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:b(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:b(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:b(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:b(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:b(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:b(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:b(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:b(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:b(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:b(7025,1,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:b(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:b(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:b(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:b(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:b(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:b(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:b(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:b(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:b(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:b(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:b(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:b(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:b(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:b(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:b(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:b(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:b(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:b(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:b(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:b(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:b(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:b(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:b(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:b(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:b(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:b(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:b(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:b(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:b(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:b(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:b(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:b(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:b(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:b(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:b(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:b(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:b(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:b(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:b(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:b(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:b(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:b(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:b(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:b(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:b(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:b(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:b(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:b(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:b(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:b(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:b(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:b(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:b(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:b(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:b(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:b(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:b(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:b(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:b(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:b(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:b(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:b(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:b(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:b(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:b(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:b(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:b(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:b(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:b(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:b(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:b(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:b(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:b(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:b(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:b(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:b(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:b(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:b(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:b(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:b(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:b(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:b(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:b(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:b(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:b(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:b(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:b(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:b(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:b(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:b(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:b(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:b(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:b(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:b(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:b(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:b(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:b(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:b(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:b(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:b(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:b(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:b(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:b(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:b(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:b(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:b(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:b(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:b(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:b(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:b(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:b(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:b(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:b(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:b(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:b(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:b(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:b(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:b(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:b(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:b(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:b(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:b(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:b(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:b(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:b(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:b(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:b(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:b(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:b(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:b(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:b(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:b(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:b(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:b(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:b(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:b(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:b(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:b(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:b(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:b(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:b(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:b(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:b(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:b(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:b(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:b(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:b(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:b(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:b(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:b(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:b(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:b(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:b(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:b(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:b(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:b(95005,3,"Extract_function_95005","Extract function"),Extract_constant:b(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:b(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:b(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:b(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:b(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:b(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:b(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:b(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:b(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:b(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:b(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:b(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:b(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:b(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:b(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:b(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:b(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:b(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:b(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:b(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:b(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:b(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:b(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:b(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:b(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:b(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:b(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:b(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:b(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:b(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:b(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:b(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:b(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:b(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:b(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:b(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:b(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:b(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:b(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:b(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:b(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:b(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:b(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:b(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:b(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:b(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:b(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:b(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:b(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:b(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:b(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:b(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:b(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:b(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:b(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:b(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:b(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:b(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:b(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:b(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:b(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:b(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:b(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:b(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:b(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:b(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:b(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:b(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:b(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:b(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:b(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:b(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:b(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:b(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:b(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:b(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:b(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:b(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:b(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:b(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:b(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:b(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:b(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:b(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:b(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:b(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:b(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:b(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:b(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:b(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:b(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:b(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:b(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:b(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:b(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:b(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:b(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:b(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:b(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:b(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:b(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:b(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:b(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:b(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:b(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:b(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:b(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:b(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:b(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:b(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:b(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:b(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:b(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:b(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:b(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:b(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:b(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:b(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:b(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:b(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:b(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:b(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:b(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:b(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:b(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:b(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:b(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:b(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:b(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:b(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:b(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:b(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:b(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:b(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:b(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:b(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:b(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:b(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:b(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:b(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:b(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:b(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:b(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:b(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:b(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:b(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:b(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:b(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:b(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:b(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:b(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:b(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:b(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:b(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:b(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:b(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:b(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:b(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:b(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:b(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:b(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:b(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:b(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:b(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:b(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:b(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:b(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:b(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:b(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:b(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:b(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:b(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:b(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:b(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:b(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:b(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:b(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:b(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:b(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:b(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:b(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:b(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:b(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:b(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:b(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:b(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:b(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:b(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:b(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:b(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:b(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:b(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:b(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:b(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:b(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:b(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:b(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:b(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:b(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:b(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:b(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:b(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:b(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:b(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:b(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:b(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:b(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:b(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:b(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:b(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:b(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:b(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:b(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:b(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:b(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:b(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:b(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:b(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:b(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:b(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:b(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:b(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:b(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:b(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Non_abstract_class_0_does_not_implement_all_abstract_members_of_1:b(18052,1,"Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052","Non-abstract class '{0}' does not implement all abstract members of '{1}'"),Its_type_0_is_not_a_valid_JSX_element_type:b(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:b(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block.")}}});function ru(e){return e>=80}function Pne(e){return e===32||ru(e)}function zL(e,t){if(e=2?zL(e,qEe):t===1?zL(e,KEe):zL(e,UEe)}function E7e(e,t){return t>=2?zL(e,XEe):t===1?zL(e,JEe):zL(e,HEe)}function S7e(e){let t=[];return e.forEach((r,i)=>{t[r]=i}),t}function da(e){return ZEe[e]}function g0(e){return wne.get(e)}function hI(e){let t=[],r=0,i=0;for(;r127&&jd(o)&&(t.push(i),i=r);break}}return t.push(i),t}function BL(e,t,r,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,i):XW(Dg(e),t,r,e.text,i)}function XW(e,t,r,i,o){(t<0||t>=e.length)&&(o?t=t<0?0:t>=e.length?e.length-1:t:x.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${i!==void 0?bL(e,hI(i)):"unknown"}`));let s=e[t]+r;return o?s>e[t+1]?e[t+1]:typeof i=="string"&&s>i.length?i.length:s:(t=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function jd(e){return e===10||e===13||e===8232||e===8233}function YC(e){return e>=48&&e<=57}function GEe(e){return YC(e)||e>=65&&e<=70||e>=97&&e<=102}function T7e(e){return e<=1114111}function YW(e){return e>=48&&e<=55}function Mne(e,t){let r=e.charCodeAt(t);switch(r){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return t===0;default:return r>127}}function Na(e,t,r,i,o){if(Km(t))return t;let s=!1;for(;;){let l=e.charCodeAt(t);switch(l){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,r)return t;s=!!o;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(i)break;if(e.charCodeAt(t+1)===47){for(t+=2;t127&&Cg(l)){t++;continue}break}return t}}function $C(e,t){if(x.assert(t>=0),t===0||jd(e.charCodeAt(t-1))){let r=e.charCodeAt(t);if(t+QW=0&&r127&&Cg(A)){y&&jd(A)&&(m=!0),r++;continue}break e}}return y&&(S=o(d,p,h,m,s,S)),S}function VL(e,t,r,i){return fV(!1,e,t,!1,r,i)}function jL(e,t,r,i){return fV(!1,e,t,!0,r,i)}function Lne(e,t,r,i,o){return fV(!0,e,t,!1,r,i,o)}function kne(e,t,r,i,o){return fV(!0,e,t,!0,r,i,o)}function VEe(e,t,r,i,o,s=[]){return s.push({kind:r,pos:e,end:t,hasTrailingNewLine:i}),s}function jh(e,t){return Lne(e,t,VEe,void 0,void 0)}function Yb(e,t){return kne(e,t,VEe,void 0,void 0)}function $W(e){let t=mV.exec(e);if(t)return t[0]}function Uh(e,t){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>127&&qW(e,t)}function $b(e,t,r){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===36||e===95||(r===1?e===45||e===58:!1)||e>127&&E7e(e,t)}function Yp(e,t,r){let i=Iv(e,0);if(!Uh(i,t))return!1;for(let o=Qb(i);om,getStartPos:()=>m,getTokenEnd:()=>p,getTextPos:()=>p,getToken:()=>E,getTokenStart:()=>y,getTokenPos:()=>y,getTokenText:()=>d.substring(y,p),getTokenValue:()=>S,hasUnicodeEscape:()=>(A&1024)!==0,hasExtendedUnicodeEscape:()=>(A&8)!==0,hasPrecedingLineBreak:()=>(A&1)!==0,hasPrecedingJSDocComment:()=>(A&2)!==0,isIdentifier:()=>E===80||E>118,isReservedWord:()=>E>=83&&E<=118,isUnterminated:()=>(A&4)!==0,getCommentDirectives:()=>N,getNumericLiteralFlags:()=>A&25584,getTokenFlags:()=>A,reScanGreaterToken:be,reScanAsteriskEqualsToken:ze,reScanSlashToken:tt,reScanTemplateToken:Je,reScanTemplateHeadOrNoSubstitutionTemplate:pt,scanJsxIdentifier:Xt,scanJsxAttributeValue:Kt,reScanJsxAttributeValue:hi,reScanJsxToken:Zt,reScanLessThanToken:en,reScanHashToken:Dn,reScanQuestionToken:Kn,reScanInvalidIdentifier:Le,scanJsxToken:pn,scanJsDocToken:Li,scanJSDocCommentTextToken:uo,scan:Ae,getText:on,clearCommentDirectives:Ye,setText:Ot,setScriptTarget:si,setLanguageVariant:yi,setScriptKind:$i,setJSDocParsingMode:Io,setOnError:In,resetTokenState:ua,setTextPos:ua,setInJSDocType:Ba,tryScan:Er,lookAhead:Ur,scanRange:Qn};return x.isDebugging&&Object.defineProperty(K,"__debugShowCurrentPositionInText",{get:()=>{let vn=K.getText();return vn.slice(0,K.getTokenFullStart())+"\u2551"+vn.slice(K.getTokenFullStart())}}),K;function Y(vn,kn=p,Be,ct){if(o){let lt=p;p=kn,o(vn,Be||0,ct),p=lt}}function B(){let vn=p,kn=!1,Be=!1,ct="";for(;;){let lt=d.charCodeAt(p);if(lt===95){A|=512,kn?(kn=!1,Be=!0,ct+=d.substring(vn,p)):(A|=16384,Y(Be?f.Multiple_consecutive_numeric_separators_are_not_permitted:f.Numeric_separators_are_not_allowed_here,p,1)),p++,vn=p;continue}if(YC(lt)){kn=!0,Be=!1,p++;continue}break}return d.charCodeAt(p-1)===95&&(A|=16384,Y(f.Numeric_separators_are_not_allowed_here,p-1,1)),ct+d.substring(vn,p)}function ce(){let vn=p,kn;if(d.charCodeAt(p)===48)if(p++,d.charCodeAt(p)===95)A|=16896,Y(f.Numeric_separators_are_not_allowed_here,p,1),p--,kn=B();else if(!Z())A|=8192,kn=""+ +S;else if(!S)kn="0";else{S=""+parseInt(S,8),A|=32;let ae=E===41,ke=(ae?"-":"")+"0o"+(+S).toString(8);return ae&&vn--,Y(f.Octal_literals_are_not_allowed_Use_the_syntax_0,vn,p-vn,ke),9}else kn=B();let Be,ct;d.charCodeAt(p)===46&&(p++,Be=B());let lt=p;if(d.charCodeAt(p)===69||d.charCodeAt(p)===101){p++,A|=16,(d.charCodeAt(p)===43||d.charCodeAt(p)===45)&&p++;let ae=p,ke=B();ke?(ct=d.substring(lt,ae)+ke,lt=p):Y(f.Digit_expected)}let Rt;if(A&512?(Rt=kn,Be&&(Rt+="."+Be),ct&&(Rt+=ct)):Rt=d.substring(vn,lt),A&8192)return Y(f.Decimals_with_leading_zeros_are_not_allowed,vn,lt-vn),S=""+ +Rt,9;if(Be!==void 0||A&16)return z(vn,Be===void 0&&!!(A&16)),S=""+ +Rt,9;{S=Rt;let ae=ve();return z(vn),ae}}function z(vn,kn){if(!Uh(Iv(d,p),e))return;let Be=p,{length:ct}=he();ct===1&&d[Be]==="n"?Y(kn?f.A_bigint_literal_cannot_use_exponential_notation:f.A_bigint_literal_must_be_an_integer,vn,Be-vn+1):(Y(f.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,Be,ct),p=Be)}function Z(){let vn=p,kn=!0;for(;YC(d.charCodeAt(p));)YW(d.charCodeAt(p))||(kn=!1),p++;return S=d.substring(vn,p),kn}function me(vn,kn){let Be=q(vn,!1,kn);return Be?parseInt(Be,16):-1}function ge(vn,kn){return q(vn,!0,kn)}function q(vn,kn,Be){let ct=[],lt=!1,Rt=!1;for(;ct.length=65&&ae<=70)ae+=32;else if(!(ae>=48&&ae<=57||ae>=97&&ae<=102))break;ct.push(ae),p++,Rt=!1}return ct.length=h){Be+=d.substring(ct,p),A|=4,Y(f.Unterminated_string_literal);break}let lt=d.charCodeAt(p);if(lt===kn){Be+=d.substring(ct,p),p++;break}if(lt===92&&!vn){Be+=d.substring(ct,p),Be+=pe(!0),ct=p;continue}if((lt===10||lt===13)&&!vn){Be+=d.substring(ct,p),A|=4,Y(f.Unterminated_string_literal);break}p++}return Be}function re(vn){let kn=d.charCodeAt(p)===96;p++;let Be=p,ct="",lt;for(;;){if(p>=h){ct+=d.substring(Be,p),A|=4,Y(f.Unterminated_template_literal),lt=kn?15:18;break}let Rt=d.charCodeAt(p);if(Rt===96){ct+=d.substring(Be,p),p++,lt=kn?15:18;break}if(Rt===36&&p+1=h)return Y(f.Unexpected_end_of_text),"";let Be=d.charCodeAt(p);switch(p++,Be){case 48:if(p>=h||!YC(d.charCodeAt(p)))return"\0";case 49:case 50:case 51:p=h?(A|=2048,vn&&Y(f.Unexpected_end_of_text),d.substring(kn,p)):d.charCodeAt(p)!==125?(A|=2048,vn&&Y(f.Unterminated_Unicode_escape_sequence),d.substring(kn,p)):(p++,A|=8,Px(lt)):(A|=2048,vn&&Y(f.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),d.substring(kn,p))}for(;p1114111&&(Y(f.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),Be=!0),p>=h?(Y(f.Unexpected_end_of_text),Be=!0):d.charCodeAt(p)===125?p++:(Y(f.Unterminated_Unicode_escape_sequence),Be=!0),Be?"":Px(kn)}function fe(){if(p+5=0&&$b(Be,e)){p+=3,A|=8,vn+=xe(),kn=p;continue}if(Be=fe(),!(Be>=0&&$b(Be,e)))break;A|=1024,vn+=d.substring(kn,p),vn+=Px(Be),p+=6,kn=p}else break}return vn+=d.substring(kn,p),vn}function Ce(){let vn=S.length;if(vn>=2&&vn<=12){let kn=S.charCodeAt(0);if(kn>=97&&kn<=122){let Be=jEe.get(S);if(Be!==void 0)return E=Be}}return E=80}function Ge(vn){let kn="",Be=!1,ct=!1;for(;;){let lt=d.charCodeAt(p);if(lt===95){A|=512,Be?(Be=!1,ct=!0):Y(ct?f.Multiple_consecutive_numeric_separators_are_not_permitted:f.Numeric_separators_are_not_allowed_here,p,1),p++;continue}if(Be=!0,!YC(lt)||lt-48>=vn)break;kn+=d[p],p++,ct=!1}return d.charCodeAt(p-1)===95&&Y(f.Numeric_separators_are_not_allowed_here,p-1,1),kn}function ve(){return d.charCodeAt(p)===110?(S+="n",A&384&&(S=UN(S)+"n"),p++,10):(S=""+(A&128?parseInt(S.slice(2),2):A&256?parseInt(S.slice(2),8):+S),9)}function Ae(){m=p,A=0;let vn=!1;for(;;){if(y=p,p>=h)return E=1;let kn=Iv(d,p);if(p===0){if(d.slice(0,256).includes("\uFFFD"))return Y(f.File_appears_to_be_binary),p=h,E=8;if(kn===35&&uV(d,p)){if(p=pV(d,p),t)continue;return E=6}}switch(kn){case 10:case 13:if(A|=1,t){p++;continue}else return kn===13&&p+1=0&&Uh(Be,e))return p+=3,A|=8,S=xe()+he(),E=Ce();let ct=fe();return ct>=0&&Uh(ct,e)?(p+=6,A|=1024,S=String.fromCharCode(ct)+he(),E=Ce()):(Y(f.Invalid_character),p++,E=0);case 35:if(p!==0&&d[p+1]==="!")return Y(f.can_only_be_used_at_the_start_of_a_file),p++,E=0;let lt=Iv(d,p+1);if(lt===92){p++;let ke=ne();if(ke>=0&&Uh(ke,e))return p+=3,A|=8,S="#"+xe()+he(),E=81;let st=fe();if(st>=0&&Uh(st,e))return p+=6,A|=1024,S="#"+String.fromCharCode(st)+he(),E=81;p--}return Uh(lt,e)?(p++,Et(lt,e)):(S="#",Y(f.Invalid_character,p++,Qb(kn))),E=81;default:let Rt=Et(kn,e);if(Rt)return E=Rt;if(y_(kn)){p+=Qb(kn);continue}else if(jd(kn)){A|=1,p+=Qb(kn);continue}let ae=Qb(kn);return Y(f.Invalid_character,p,ae),p+=ae,E=0}}}function De(){switch(j){case 0:return!0;case 1:return!1}return w!==3&&w!==4?!0:j===3?!1:QEe.test(d.slice(m,p))}function Le(){x.assert(E===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),p=y=m,A=0;let vn=Iv(d,p),kn=Et(vn,99);return kn?E=kn:(p+=Qb(vn),E)}function Et(vn,kn){let Be=vn;if(Uh(Be,kn)){for(p+=Qb(Be);p=h)return E=1;let kn=d.charCodeAt(p);if(kn===60)return d.charCodeAt(p+1)===47?(p+=2,E=31):(p++,E=30);if(kn===123)return p++,E=19;let Be=0;for(;p0)break;Cg(kn)||(Be=p)}p++}return S=d.substring(m,p),Be===-1?13:12}function Xt(){if(ru(E)){for(;p=h)return E=1;for(let kn=d.charCodeAt(p);p=0&&y_(d.charCodeAt(p-1))&&!(p+1=h)return E=1;let vn=Iv(d,p);switch(p+=Qb(vn),vn){case 9:case 11:case 12:case 32:for(;p=0&&Uh(kn,e))return p+=3,A|=8,S=xe()+he(),E=Ce();let Be=fe();return Be>=0&&Uh(Be,e)?(p+=6,A|=1024,S=String.fromCharCode(Be)+he(),E=Ce()):(p++,E=0)}if(Uh(vn,e)){let kn=vn;for(;p=0),p=vn,m=vn,y=vn,E=0,S=void 0,A=0}function Ba(vn){D+=vn?1:-1}}function Iv(e,t){return e.codePointAt(t)}function Qb(e){return e>=65536?2:1}function A7e(e){if(x.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);let t=Math.floor((e-65536)/1024)+55296,r=(e-65536)%1024+56320;return String.fromCharCode(t,r)}function Px(e){return e0e(e)}var UL,jEe,wne,UEe,HEe,KEe,JEe,qEe,XEe,YEe,$Ee,QEe,ZEe,QW,mV,e0e,I7e=bt({"src/compiler/scanner.ts"(){"use strict";ea(),UL={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},jEe=new Map(Object.entries(UL)),wne=new Map(Object.entries({...UL,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),UEe=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],HEe=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],KEe=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],JEe=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],qEe=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],XEe=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],YEe=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,$Ee=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,QEe=/@(?:see|link)/i,ZEe=S7e(wne),QW=7,mV=/^#!.*/,e0e=String.fromCodePoint?e=>String.fromCodePoint(e):A7e}});function Yc(e){return Lp(e)||cp(e)}function Mx(e){return FC(e,FN)}function HL(e){switch(ns(e)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function Jl(e){return e.start+e.length}function One(e){return e.length===0}function _V(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function Wne(e,t){return t.start>=e.start&&Jl(t)<=Jl(e)}function t0e(e,t){return Fne(e,t)!==void 0}function Fne(e,t){let r=Bne(e,t);return r&&r.length===0?void 0:r}function n0e(e,t){return JL(e.start,e.length,t.start,t.length)}function ZW(e,t,r){return JL(e.start,e.length,t,r)}function JL(e,t,r,i){let o=e+t,s=r+i;return r<=o&&s>=e}function zne(e,t){return t<=Jl(e)&&t>=e.start}function Bne(e,t){let r=Math.max(e.start,t.start),i=Math.min(Jl(e),Jl(t));return r<=i?dc(r,i):void 0}function gd(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function dc(e,t){return gd(e,t-e)}function QC(e){return gd(e.span.start,e.newLength)}function Gne(e){return One(e.span)&&e.newLength===0}function qL(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function Vne(e){if(e.length===0)return d2;if(e.length===1)return e[0];let t=e[0],r=t.span.start,i=Jl(t.span),o=r+t.newLength;for(let s=1;s=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function Vi(e){let t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function gr(e){return Vi(e.escapedText)}function eE(e){let t=g0(e.escapedText);return t?ri(t,wu):void 0}function vl(e){return e.valueDeclaration&&ou(e.valueDeclaration)?gr(e.valueDeclaration.name):Vi(e.escapedName)}function o0e(e){let t=e.parent.parent;if(t){if(Hd(t))return gV(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return gV(t.declarationList.declarations[0]);break;case 244:let r=t.expression;switch(r.kind===226&&r.operatorToken.kind===64&&(r=r.left),r.kind){case 211:return r.name;case 212:let i=r.argumentExpression;if(Fe(i))return i}break;case 217:return gV(t.expression);case 256:{if(Hd(t.statement)||ht(t.statement))return gV(t.statement);break}}}}function gV(e){let t=Po(e);return t&&Fe(t)?t:void 0}function XL(e,t){return!!(iu(e)&&Fe(e.name)&&gr(e.name)===gr(t)||Ml(e)&>(e.declarationList.declarations,r=>XL(r,t)))}function Kne(e){return e.name||o0e(e)}function iu(e){return!!e.name}function eF(e){switch(e.kind){case 80:return e;case 355:case 348:{let{name:r}=e;if(r.kind===166)return r.right;break}case 213:case 226:{let r=e;switch(zl(r)){case 1:case 4:case 5:case 3:return YF(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}}case 353:return Kne(e);case 347:return o0e(e);case 277:{let{expression:r}=e;return Fe(r)?r:void 0}case 212:let t=e;if(XF(t))return t.argumentExpression}return e.name}function Po(e){if(e!==void 0)return eF(e)||(Ps(e)||Os(e)||Zc(e)?tF(e):void 0)}function tF(e){if(e.parent){if(mc(e.parent)||Xa(e.parent))return e.parent.name;if(dr(e.parent)&&e===e.parent.right){if(Fe(e.parent.left))return e.parent.left;if(Ns(e.parent.left))return YF(e.parent.left)}else if(wi(e.parent)&&Fe(e.parent.name))return e.parent.name}else return}function xv(e){if(bf(e))return jr(e.modifiers,bd)}function y0(e){if($r(e,98303))return jr(e.modifiers,Sa)}function a0e(e,t){if(e.name)if(Fe(e.name)){let r=e.name.escapedText;return $L(e.parent,t).filter(i=>Ym(i)&&Fe(i.name)&&i.name.escapedText===r)}else{let r=e.parent.parameters.indexOf(e);x.assert(r>-1,"Parameters should always be in their parents' parameter list");let i=$L(e.parent,t).filter(Ym);if(rnm(i)&&i.typeParameters.some(o=>o.name.escapedText===r))}function qne(e){return s0e(e,!1)}function Xne(e){return s0e(e,!0)}function Yne(e){return!!Uf(e,Ym)}function $ne(e){return Uf(e,a1)}function Qne(e){return rF(e,K4)}function yV(e){return Uf(e,Tae)}function l0e(e){return Uf(e,cH)}function Zne(e){return Uf(e,cH,!0)}function c0e(e){return Uf(e,dH)}function ere(e){return Uf(e,dH,!0)}function d0e(e){return Uf(e,uH)}function tre(e){return Uf(e,uH,!0)}function u0e(e){return Uf(e,pH)}function nre(e){return Uf(e,pH,!0)}function rre(e){return Uf(e,U4,!0)}function vV(e){return Uf(e,fH)}function ire(e){return Uf(e,fH,!0)}function bV(e){return Uf(e,zk)}function nF(e){return Uf(e,mH)}function ore(e){return Uf(e,H4)}function p0e(e){return Uf(e,nm)}function EV(e){return Uf(e,J4)}function tE(e){let t=Uf(e,hP);if(t&&t.typeExpression&&t.typeExpression.type)return t}function nE(e){let t=Uf(e,hP);return!t&&Ao(e)&&(t=Vr(kx(e),r=>!!r.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function YL(e){let t=ore(e);if(t&&t.typeExpression)return t.typeExpression.type;let r=tE(e);if(r&&r.typeExpression){let i=r.typeExpression.type;if(gp(i)){let o=Vr(i.members,XI);return o&&o.type}if(hh(i)||kR(i))return i.type}}function $L(e,t){var r;if(!z2(e))return Xe;let i=(r=e.jsDoc)==null?void 0:r.jsDocCache;if(i===void 0||t){let o=gj(e,t);x.assert(o.length<2||o[0]!==o[1]),i=va(o,s=>Xm(s)?s.tags:s),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=i)}return i}function rE(e){return $L(e,!1)}function f0e(e){return $L(e,!0)}function Uf(e,t,r){return Vr($L(e,r),t)}function rF(e,t){return rE(e).filter(t)}function m0e(e,t){return rE(e).filter(r=>r.kind===t)}function QL(e){return typeof e=="string"?e:e?.map(t=>t.kind===328?t.text:R7e(t)).join("")}function R7e(e){let t=e.kind===331?"link":e.kind===332?"linkcode":"linkplain",r=e.name?up(e.name):"",i=e.name&&e.text.startsWith("://")?"":" ";return`{@${t} ${r}${i}${e.text}}`}function Rv(e){if(yE(e)){if(wR(e.parent)){let t=iR(e.parent);if(t&&Nn(t.tags))return va(t.tags,r=>nm(r)?r.typeParameters:void 0)}return Xe}if(qf(e))return x.assert(e.parent.kind===327),va(e.parent.tags,t=>nm(t)?t.typeParameters:void 0);if(e.typeParameters||kae(e)&&e.typeParameters)return e.typeParameters;if(ir(e)){let t=d6(e);if(t.length)return t;let r=nE(e);if(r&&hh(r)&&r.typeParameters)return r.typeParameters}return Xe}function wx(e){return e.constraint?e.constraint:nm(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function Hh(e){return e.kind===80||e.kind===81}function iF(e){return e.kind===178||e.kind===177}function oF(e){return kr(e)&&!!(e.flags&64)}function SV(e){return Js(e)&&!!(e.flags&64)}function oT(e){return ia(e)&&!!(e.flags&64)}function Ud(e){let t=e.kind;return!!(e.flags&64)&&(t===211||t===212||t===213||t===235)}function eN(e){return Ud(e)&&!t1(e)&&!!e.questionDotToken}function aF(e){return eN(e.parent)&&e.parent.expression===e}function tN(e){return!Ud(e.parent)||eN(e.parent)||e!==e.parent.expression}function TV(e){return e.kind===226&&e.operatorToken.kind===61}function Ng(e){return If(e)&&Fe(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function gm(e){return Yl(e,8)}function sF(e){return t1(e)&&!!(e.flags&64)}function nN(e){return e.kind===252||e.kind===251}function AV(e){return e.kind===280||e.kind===279}function are(e){switch(e.kind){case 309:case 310:return!0;default:return!1}}function IV(e){return are(e)||e.kind===307||e.kind===311}function rN(e){return e.kind===355||e.kind===348}function _0e(e){return ZL(e.kind)}function ZL(e){return e>=166}function xV(e){return e>=0&&e<=165}function gI(e){return xV(e.kind)}function v0(e){return Ss(e,"pos")&&Ss(e,"end")}function iN(e){return 9<=e&&e<=15}function b0(e){return iN(e.kind)}function RV(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function Dv(e){return 15<=e&&e<=18}function sre(e){return Dv(e.kind)}function lF(e){let t=e.kind;return t===17||t===18}function yI(e){return Qu(e)||Kd(e)}function e2(e){switch(e.kind){case 276:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 274:return e.parent.isTypeOnly;case 273:case 271:return e.isTypeOnly}return!1}function lre(e){switch(e.kind){case 281:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 278:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 280:return e.parent.isTypeOnly}return!1}function iE(e){return e2(e)||lre(e)}function DV(e){return e.kind===11||Dv(e.kind)}function cre(e){return Da(e)||Fe(e)}function rl(e){var t;return Fe(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function aT(e){var t;return Ki(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function t2(e){let t=e.emitNode.autoGenerate.flags;return!!(t&32)&&!!(t&16)&&!!(t&8)}function ou(e){return(Uo(e)||bI(e))&&Ki(e.name)}function Ox(e){return kr(e)&&Ki(e.name)}function Dy(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function oN(e){return!!(MI(e)&31)}function CV(e){return oN(e)||e===126||e===164||e===129}function Sa(e){return Dy(e.kind)}function Xu(e){let t=e.kind;return t===166||t===80}function rc(e){let t=e.kind;return t===80||t===81||t===11||t===9||t===167}function sT(e){let t=e.kind;return t===80||t===206||t===207}function $o(e){return!!e&&vI(e.kind)}function Wx(e){return!!e&&(vI(e.kind)||Al(e))}function ws(e){return e&&h0e(e.kind)}function aN(e){return e.kind===112||e.kind===97}function h0e(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function vI(e){switch(e){case 173:case 179:case 330:case 180:case 181:case 184:case 324:case 185:return!0;default:return h0e(e)}}function NV(e){return Yi(e)||N_(e)||Ko(e)&&$o(e.parent)}function $c(e){let t=e.kind;return t===176||t===172||t===174||t===177||t===178||t===181||t===175||t===240}function ci(e){return e&&(e.kind===263||e.kind===231)}function Cv(e){return e&&(e.kind===177||e.kind===178)}function Mu(e){return Uo(e)&&I_(e)}function dre(e){return ir(e)&&j6(e)?(!D0(e)||!Fv(e.expression))&&!yT(e,!0):e.parent&&ci(e.parent)&&Uo(e)&&!I_(e)}function bI(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function g0e(e){switch(e.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function il(e){return Sa(e)||bd(e)}function lT(e){let t=e.kind;return t===180||t===179||t===171||t===173||t===181||t===177||t===178}function cF(e){return lT(e)||$c(e)}function Pg(e){let t=e.kind;return t===303||t===304||t===305||t===174||t===177||t===178}function ji(e){return eU(e.kind)}function ure(e){switch(e.kind){case 184:case 185:return!0}return!1}function Qo(e){if(e){let t=e.kind;return t===207||t===206}return!1}function sN(e){let t=e.kind;return t===209||t===210}function dF(e){let t=e.kind;return t===208||t===232}function n2(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function pre(e){return wi(e)||Ao(e)||i2(e)||o2(e)}function r2(e){return PV(e)||MV(e)}function PV(e){switch(e.kind){case 206:case 210:return!0}return!1}function i2(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function MV(e){switch(e.kind){case 207:case 209:return!0}return!1}function o2(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return Mc(e,!0)}function fre(e){let t=e.kind;return t===211||t===166||t===205}function mre(e){let t=e.kind;return t===211||t===166}function LV(e){return E0(e)||F0(e)}function E0(e){switch(e.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function v_(e){return e.kind===213||e.kind===214}function EI(e){let t=e.kind;return t===228||t===15}function Yu(e){return y0e(gm(e).kind)}function y0e(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function kV(e){return v0e(gm(e).kind)}function v0e(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return y0e(e)}}function _re(e){switch(e.kind){case 225:return!0;case 224:return e.operator===46||e.operator===47;default:return!1}}function hre(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return b0(e)}}function ht(e){return D7e(gm(e).kind)}function D7e(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 361:case 360:case 238:return!0;default:return v0e(e)}}function cT(e){let t=e.kind;return t===216||t===234}function b0e(e){return oH(e)||B4(e)}function Nv(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&Nv(e.statement,t)}return!1}function gre(e){return Ll(e)||Xl(e)}function yre(e){return gt(e,gre)}function uF(e){return!_2(e)&&!Ll(e)&&!$r(e,32)&&!Md(e)}function a2(e){return _2(e)||Ll(e)||$r(e,32)}function Fx(e){return e.kind===249||e.kind===250}function pF(e){return Ko(e)||ht(e)}function wV(e){return Ko(e)}function vf(e){return Uc(e)||ht(e)}function vre(e){let t=e.kind;return t===268||t===267||t===80}function E0e(e){let t=e.kind;return t===268||t===267}function S0e(e){let t=e.kind;return t===80||t===267}function OV(e){let t=e.kind;return t===275||t===274}function s2(e){return e.kind===267||e.kind===266}function b_(e){switch(e.kind){case 219:case 226:case 208:case 213:case 179:case 263:case 231:case 175:case 176:case 185:case 180:case 212:case 266:case 306:case 277:case 278:case 281:case 262:case 218:case 184:case 177:case 80:case 273:case 271:case 276:case 181:case 264:case 345:case 347:case 324:case 348:case 355:case 330:case 353:case 329:case 291:case 292:case 293:case 200:case 174:case 173:case 267:case 202:case 280:case 270:case 274:case 214:case 15:case 9:case 210:case 169:case 211:case 303:case 172:case 171:case 178:case 304:case 312:case 305:case 11:case 265:case 187:case 168:case 260:return!0;default:return!1}}function lh(e){switch(e.kind){case 219:case 241:case 179:case 269:case 299:case 175:case 194:case 176:case 185:case 180:case 248:case 249:case 250:case 262:case 218:case 184:case 177:case 181:case 345:case 347:case 324:case 330:case 353:case 200:case 174:case 173:case 267:case 178:case 312:case 265:return!0;default:return!1}}function C7e(e){return e===219||e===208||e===263||e===231||e===175||e===176||e===266||e===306||e===281||e===262||e===218||e===177||e===273||e===271||e===276||e===264||e===291||e===174||e===173||e===267||e===270||e===274||e===280||e===169||e===303||e===172||e===171||e===178||e===304||e===265||e===168||e===260||e===353||e===345||e===355}function bre(e){return e===262||e===282||e===263||e===264||e===265||e===266||e===267||e===272||e===271||e===278||e===277||e===270}function Ere(e){return e===252||e===251||e===259||e===246||e===244||e===242||e===249||e===250||e===248||e===245||e===256||e===253||e===255||e===257||e===258||e===243||e===247||e===254||e===359}function Hd(e){return e.kind===168?e.parent&&e.parent.kind!==352||ir(e):C7e(e.kind)}function Sre(e){return bre(e.kind)}function l2(e){return Ere(e.kind)}function Hi(e){let t=e.kind;return Ere(t)||bre(t)||N7e(e)}function N7e(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!x0(e)}function Tre(e){let t=e.kind;return Ere(t)||bre(t)||t===241}function Are(e){let t=e.kind;return t===283||t===166||t===80}function lN(e){let t=e.kind;return t===110||t===80||t===211||t===295}function c2(e){let t=e.kind;return t===284||t===294||t===285||t===12||t===288}function fF(e){let t=e.kind;return t===291||t===293}function Ire(e){let t=e.kind;return t===11||t===294}function au(e){let t=e.kind;return t===286||t===285}function mF(e){let t=e.kind;return t===296||t===297}function zx(e){return e.kind>=316&&e.kind<=357}function _F(e){return e.kind===327||e.kind===326||e.kind===328||SI(e)||Bx(e)||FT(e)||yE(e)}function Bx(e){return e.kind>=334&&e.kind<=357}function Cy(e){return e.kind===178}function Pv(e){return e.kind===177}function kp(e){if(!z2(e))return!1;let{jsDoc:t}=e;return!!t&&t.length>0}function hF(e){return!!e.type}function Mv(e){return!!e.initializer}function dT(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function WV(e){return e.kind===291||e.kind===293||Pg(e)}function gF(e){return e.kind===183||e.kind===233}function xre(e){let t=Rre;for(let r of e){if(!r.length)continue;let i=0;for(;i0?r.parent.parameters[o-1]:void 0,l=t.text,d=s?Eo(Yb(l,Na(l,s.end+1,!1,!0)),jh(l,e.pos)):Yb(l,Na(l,e.pos,!1,!0));return gt(d)&&T0e(Ja(d),t)}let i=r&&ij(r,t);return!!gn(i,o=>T0e(o,t))}var d2,BV,Rre,P7e=bt({"src/compiler/utilitiesPublic.ts"(){"use strict";ea(),d2=qL(gd(0,0),0),BV=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],Rre=1073741823}});function cl(e,t){let r=e.declarations;if(r){for(let i of r)if(i.kind===t)return i}}function Dre(e,t){return jr(e.declarations||Xe,r=>r.kind===t)}function aa(e){let t=new Map;if(e)for(let r of e)t.set(r.escapedName,r);return t}function ch(e){return(e.flags&33554432)!==0}function M7e(){var e="";let t=r=>e+=r;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(r,i)=>t(r),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&Cg(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:qa,decreaseIndent:qa,clear:()=>e=""}}function yF(e,t){return e.configFilePath!==t.configFilePath||Cre(e,t)}function Cre(e,t){return Gx(e,t,d3)}function Nre(e,t){return Gx(e,t,XH)}function Gx(e,t,r){return e!==t&&r.some(i=>!W6(x6(e,i),x6(t,i)))}function Pre(e,t){for(;;){let r=t(e);if(r==="quit")return;if(r!==void 0)return r;if(Yi(e))return;e=e.parent}}function Gc(e,t){let r=e.entries();for(let[i,o]of r){let s=t(o,i);if(s)return s}}function dh(e,t){let r=e.keys();for(let i of r){let o=t(i);if(o)return o}}function vF(e,t){e.forEach((r,i)=>{t.set(i,r)})}function cN(e){let t=_k.getText();try{return e(_k),_k.getText()}finally{_k.clear(),_k.writeKeyword(t)}}function u2(e){return e.end-e.pos}function GV(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function Mre(e,t){return e===t||e.resolvedModule===t.resolvedModule||!!e.resolvedModule&&!!t.resolvedModule&&e.resolvedModule.isExternalLibraryImport===t.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===t.resolvedModule.extension&&e.resolvedModule.resolvedFileName===t.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===t.resolvedModule.originalPath&&L7e(e.resolvedModule.packageId,t.resolvedModule.packageId)&&e.alternateResult===t.alternateResult}function bF(e,t,r,i,o){var s;let l=(s=t.getResolvedModule(e,r,i))==null?void 0:s.alternateResult,d=l&&(du(t.getCompilerOptions())===2?[f.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,[l]]:[f.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,[l,l.includes(Eh+"@types/")?`@types/${qR(o)}`:o]]),p=d?zo(void 0,d[0],...d[1]):t.typesPackageExists(o)?zo(void 0,f.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,o,qR(o)):t.packageBundlesTypes(o)?zo(void 0,f.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,o,r):zo(void 0,f.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,r,qR(o));return p&&(p.repopulateInfo=()=>({moduleReference:r,mode:i,packageName:o===r?void 0:o})),p}function L7e(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version}function EF({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function Lv(e){return`${EF(e)}@${e.version}`}function Lre(e,t){return e===t||e.resolvedTypeReferenceDirective===t.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!t.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===t.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary==!!t.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===t.resolvedTypeReferenceDirective.originalPath}function VV(e,t,r,i){x.assert(e.length===t.length);for(let o=0;o=0),Dg(t)[e]}function A0e(e){let t=Gn(e),r=hs(t,e.pos);return`${t.fileName}(${r.line+1},${r.character+1})`}function f2(e,t){x.assert(e>=0);let r=Dg(t),i=e,o=t.text;if(i+1===r.length)return o.length-1;{let s=r[i],l=r[i+1]-1;for(x.assert(jd(o.charCodeAt(l)));s<=l&&jd(o.charCodeAt(l));)l--;return l}}function TF(e,t,r){return!(r&&r(t))&&!e.identifiers.has(t)}function Fl(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function Hf(e){return!Fl(e)}function wre(e,t){return fl(e)?t===e.expression:Al(e)?t===e.modifiers:_p(e)?t===e.initializer:Uo(e)?t===e.questionToken&&Mu(e):mc(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||m2(e.modifiers,t,il):Zu(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||m2(e.modifiers,t,il):Ul(e)?t===e.exclamationToken:Pl(e)?t===e.typeParameters||t===e.type||m2(e.typeParameters,t,fl):Qp(e)?t===e.typeParameters||m2(e.typeParameters,t,fl):hp(e)?t===e.typeParameters||t===e.type||m2(e.typeParameters,t,fl):Fk(e)?t===e.modifiers||m2(e.modifiers,t,il):!1}function m2(e,t,r){return!e||To(t)||!r(t)?!1:Bo(e,t)}function I0e(e,t,r){if(t===void 0||t.length===0)return e;let i=0;for(;i[`${hs(e,l.range.end).line}`,l])),i=new Map;return{getUnusedExpectations:o,markUsed:s};function o(){return Wo(r.entries()).filter(([l,d])=>d.type===0&&!i.get(l)).map(([l,d])=>d)}function s(l){return r.has(`${l}`)?(i.set(`${l}`,!0),!0):!1}}function oE(e,t,r){return Fl(e)?e.pos:zx(e)||e.kind===12?Na((t||Gn(e)).text,e.pos,!1,!0):r&&kp(e)?oE(e.jsDoc[0],t):e.kind===358&&e._children.length>0?oE(e._children[0],t,r):Na((t||Gn(e)).text,e.pos,!1,!1,x2(e))}function HV(e,t){let r=!Fl(e)&&Am(e)?sI(e.modifiers,bd):void 0;return r?Na((t||Gn(e)).text,r.end):oE(e,t)}function S0(e,t,r=!1){return dN(e.text,t,r)}function w7e(e){return!!Fn(e,$0)}function IF(e){return!!(Xl(e)&&e.exportClause&&yh(e.exportClause)&&e.exportClause.name.escapedText==="default")}function dN(e,t,r=!1){if(Fl(t))return"";let i=e.substring(r?t.pos:Na(e,t.pos),t.end);return w7e(t)&&(i=i.split(/\r\n|\n|\r/).map(o=>o.replace(/^\s*\*/,"").trimStart()).join(` -`)),i}function uc(e,t=!1){return S0(Gn(e),e,t)}function O7e(e){return e.pos}function jx(e,t){return by(e,t,O7e,Zs)}function za(e){let t=e.emitNode;return t&&t.flags||0}function ym(e){let t=e.emitNode;return t&&t.internalFlags||0}function Wre(e,t,r){if(t&&W7e(e,r))return S0(t,e);switch(e.kind){case 11:{let i=r&2?wj:r&1||za(e)&16777216?Qh:Y2;return e.singleQuote?"'"+i(e.text,39)+"'":'"'+i(e.text,34)+'"'}case 15:case 16:case 17:case 18:{let i=r&1||za(e)&16777216?Qh:Y2,o=e.rawText??Lj(i(e.text,96));switch(e.kind){case 15:return"`"+o+"`";case 16:return"`"+o+"${";case 17:return"}"+o+"${";case 18:return"}"+o+"`"}break}case 9:case 10:return e.text;case 14:return r&4&&e.isUnterminated?e.text+(e.text.charCodeAt(e.text.length-1)===92?" /":"/"):e.text}return x.fail(`Literal kind '${e.kind}' not accounted for.`)}function W7e(e,t){if(Ks(e)||!e.parent||t&4&&e.isUnterminated)return!1;if(mp(e)){if(e.numericLiteralFlags&26656)return!1;if(e.numericLiteralFlags&512)return!!(t&8)}return!P4(e)}function Fre(e){return No(e)?'"'+Y2(e)+'"':""+e}function zre(e){return nc(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function KV(e){return(Ry(e)&7)!==0||JV(e)}function JV(e){let t=A_(e);return t.kind===260&&t.parent.kind===299}function Md(e){return ql(e)&&(e.name.kind===11||E_(e))}function xF(e){return ql(e)&&e.name.kind===11}function qV(e){return ql(e)&&Da(e.name)}function Bre(e){return ql(e)||Fe(e)}function uN(e){return F7e(e.valueDeclaration)}function F7e(e){return!!e&&e.kind===267&&!e.body}function Gre(e){return e.kind===312||e.kind===267||Wx(e)}function E_(e){return!!(e.flags&2048)}function T0(e){return Md(e)&&XV(e)}function XV(e){switch(e.parent.kind){case 312:return oc(e.parent);case 268:return Md(e.parent.parent)&&Yi(e.parent.parent.parent)&&!oc(e.parent.parent.parent)}return!1}function YV(e){var t;return(t=e.declarations)==null?void 0:t.find(r=>!T0(r)&&!(ql(r)&&E_(r)))}function z7e(e){return e===1||e===100||e===199}function TI(e,t){return oc(e)||z7e(Ld(t))&&!!e.commonJsModuleIndicator}function $V(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:cu(t,"alwaysStrict")||Nae(e.statements)?!0:oc(e)||em(t)?Ld(t)>=5?!0:!t.noImplicitUseStrict:!1}function QV(e){return!!(e.flags&33554432)||$r(e,128)}function ZV(e,t){switch(e.kind){case 312:case 269:case 299:case 267:case 248:case 249:case 250:case 176:case 174:case 177:case 178:case 262:case 218:case 219:case 172:case 175:return!0;case 241:return!Wx(t)}return!1}function ej(e){switch(x.type(e),e.kind){case 345:case 353:case 330:return!0;default:return tj(e)}}function tj(e){switch(x.type(e),e.kind){case 179:case 180:case 173:case 181:case 184:case 185:case 324:case 263:case 231:case 264:case 265:case 352:case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function pT(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function Vre(e){return pT(e)||R0(e)}function RF(e){switch(e.kind){case 272:case 271:case 243:case 263:case 262:case 267:case 265:case 264:case 266:return!0;default:return!1}}function jre(e){return _2(e)||ql(e)||rg(e)||Op(e)}function _2(e){return pT(e)||Xl(e)}function nj(e){return Fn(e.parent,t=>!!(mK(t)&1))}function uh(e){return Fn(e.parent,t=>ZV(t,t.parent))}function Ure(e,t){let r=uh(e);for(;r;)t(r),r=uh(r)}function Ts(e){return!e||u2(e)===0?"(Missing)":uc(e)}function Hre(e){return e.declaration?Ts(e.declaration.parameters[0].name):void 0}function h2(e){return e.kind===167&&!$p(e.expression)}function pN(e){var t;switch(e.kind){case 80:case 81:return(t=e.emitNode)!=null&&t.autoGenerate?void 0:e.escapedText;case 11:case 9:case 15:return pl(e.text);case 167:return $p(e.expression)?pl(e.expression.text):void 0;case 295:return FI(e);default:return x.assertNever(e)}}function Ux(e){return x.checkDefined(pN(e))}function up(e){switch(e.kind){case 110:return"this";case 81:case 80:return u2(e)===0?gr(e):uc(e);case 166:return up(e.left)+"."+up(e.right);case 211:return Fe(e.name)||Ki(e.name)?up(e.expression)+"."+up(e.name):x.assertNever(e.name);case 318:return up(e.left)+up(e.right);case 295:return up(e.namespace)+":"+up(e.name);default:return x.assertNever(e)}}function Pr(e,t,...r){let i=Gn(e);return Kf(i,e,t,...r)}function Hx(e,t,r,...i){let o=Na(e.text,t.pos);return Qc(e,o,t.end-o,r,...i)}function Kf(e,t,r,...i){let o=fT(e,t);return Qc(e,o.start,o.length,r,...i)}function Mg(e,t,r,i){let o=fT(e,t);return DF(e,o.start,o.length,r,i)}function g2(e,t,r,i){let o=Na(e.text,t.pos);return DF(e,o,t.end-o,r,i)}function Kre(e,t,r){x.assertGreaterThanOrEqual(t,0),x.assertGreaterThanOrEqual(r,0),x.assertLessThanOrEqual(t,e.length),x.assertLessThanOrEqual(t+r,e.length)}function DF(e,t,r,i,o){return Kre(e.text,t,r),{file:e,start:t,length:r,code:i.code,category:i.category,messageText:i.next?i:i.messageText,relatedInformation:o}}function rj(e,t,r){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}}function Jre(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function qre(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}}function ph(e,t){let r=xy(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);r.scan();let i=r.getTokenStart();return dc(i,r.getTokenEnd())}function Xre(e,t){let r=xy(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return r.scan(),r.getToken()}function B7e(e,t){let r=Na(e.text,t.pos);if(t.body&&t.body.kind===241){let{line:i}=hs(e,t.body.pos),{line:o}=hs(e,t.body.end);if(i0?t.statements[0].pos:t.end;return dc(s,l)}case 253:case 229:{let s=Na(e.text,t.pos);return ph(e,s)}case 238:{let s=Na(e.text,t.expression.end);return ph(e,s)}case 357:{let s=Na(e.text,t.tagName.pos);return ph(e,s)}}if(r===void 0)return ph(e,t.pos);x.assert(!Xm(r));let i=Fl(r),o=i||UI(t)?r.pos:Na(e.text,r.pos);return i?(x.assert(o===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),x.assert(o===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(x.assert(o>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),x.assert(o<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),dc(o,r.end)}function wp(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function Jf(e){return e.scriptKind===6}function A0(e){return!!(Zb(e)&4096)}function CF(e){return!!(Zb(e)&8&&!dp(e,e.parent))}function y2(e){return(Ry(e)&7)===6}function v2(e){return(Ry(e)&7)===4}function Kx(e){return(Ry(e)&7)===2}function NF(e){return(Ry(e)&7)===1}function mT(e){return e.kind===213&&e.expression.kind===108}function Op(e){return e.kind===213&&e.expression.kind===102}function Jx(e){return lP(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function wv(e){return rg(e)&&Kv(e.argument)&&Da(e.argument.literal)}function vm(e){return e.kind===244&&e.expression.kind===11}function b2(e){return!!(za(e)&2097152)}function PF(e){return b2(e)&&Ec(e)}function G7e(e){return Fe(e.name)&&!e.initializer}function MF(e){return b2(e)&&Ml(e)&&oo(e.declarationList.declarations,G7e)}function ij(e,t){return e.kind!==12?jh(t.text,e.pos):void 0}function oj(e,t){let r=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?Eo(Yb(t,e.pos),jh(t,e.pos)):jh(t,e.pos);return jr(r,i=>t.charCodeAt(i.pos+1)===42&&t.charCodeAt(i.pos+2)===42&&t.charCodeAt(i.pos+3)!==47)}function qh(e){if(182<=e.kind&&e.kind<=205)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return e.parent.kind!==222;case 233:return C0e(e);case 168:return e.parent.kind===200||e.parent.kind===195;case 80:(e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e)&&(e=e.parent),x.assert(e.kind===80||e.kind===166||e.kind===211,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{let{parent:t}=e;if(t.kind===186)return!1;if(t.kind===205)return!t.isTypeOf;if(182<=t.kind&&t.kind<=205)return!0;switch(t.kind){case 233:return C0e(t);case 168:return e===t.constraint;case 352:return e===t.constraint;case 172:case 171:case 169:case 260:return e===t.type;case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:return e===t.type;case 179:case 180:case 181:return e===t.type;case 216:return e===t.type;case 213:case 214:case 215:return Bo(t.typeArguments,e)}}}return!1}function C0e(e){return K4(e.parent)||a1(e.parent)||Zp(e.parent)&&!f6(e)}function N0e(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function I0(e,t){return r(e);function r(i){switch(i.kind){case 253:return t(i);case 269:case 241:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 296:case 297:case 256:case 258:case 299:return Go(i,r)}}}function Yre(e,t){return r(e);function r(i){switch(i.kind){case 229:t(i);let o=i.expression;o&&r(o);return;case 266:case 264:case 267:case 265:return;default:if($o(i)){if(i.name&&i.name.kind===167){r(i.name.expression);return}}else qh(i)||Go(i,r)}}}function aj(e){return e&&e.kind===188?e.elementType:e&&e.kind===183?nh(e.typeArguments):void 0}function $re(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function qx(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function Qre(e){return qx(e)||Cv(e)}function fN(e){return e.parent.kind===261&&e.parent.parent.kind===243}function Zre(e){return ir(e)?Ma(e.parent)&&dr(e.parent.parent)&&zl(e.parent.parent)===2||LF(e.parent):!1}function LF(e){return ir(e)?dr(e)&&zl(e)===1:!1}function eie(e){return(wi(e)?Kx(e)&&Fe(e.name)&&fN(e):Uo(e)?CN(e)&&pc(e):_p(e)&&CN(e))||LF(e)}function tie(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function sj(e,t){for(;;){if(t&&t(e),e.statement.kind!==256)return e.statement;e=e.statement}}function x0(e){return e&&e.kind===241&&$o(e.parent)}function bm(e){return e&&e.kind===174&&e.parent.kind===210}function kF(e){return(e.kind===174||e.kind===177||e.kind===178)&&(e.parent.kind===210||e.parent.kind===231)}function nie(e){return e&&e.kind===1}function P0e(e){return e&&e.kind===0}function Xx(e,t,r,i){return gn(e?.properties,o=>{if(!mc(o))return;let s=pN(o.name);return t===s||i&&i===s?r(o):void 0})}function rie(e,t,r){return Xx(e,t,i=>uu(i.initializer)?Vr(i.initializer.elements,o=>Da(o)&&o.text===r):void 0)}function mN(e){if(e&&e.statements.length){let t=e.statements[0].expression;return ri(t,Ma)}}function wF(e,t,r){return E2(e,t,i=>uu(i.initializer)?Vr(i.initializer.elements,o=>Da(o)&&o.text===r):void 0)}function E2(e,t,r){return Xx(mN(e),t,r)}function Wp(e){return Fn(e.parent,$o)}function iie(e){return Fn(e.parent,ws)}function ad(e){return Fn(e.parent,ci)}function oie(e){return Fn(e.parent,t=>ci(t)||$o(t)?"quit":Al(t))}function OF(e){return Fn(e.parent,Wx)}function WF(e){let t=Fn(e.parent,r=>ci(r)?"quit":bd(r));return t&&ci(t.parent)?ad(t.parent):ad(t??e)}function Lu(e,t,r){for(x.assert(e.kind!==312);;){if(e=e.parent,!e)return x.fail();switch(e.kind){case 167:if(r&&ci(e.parent.parent))return e;e=e.parent.parent;break;case 170:e.parent.kind===169&&$c(e.parent.parent)?e=e.parent.parent:$c(e.parent)&&(e=e.parent);break;case 219:if(!t)continue;case 262:case 218:case 267:case 175:case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 179:case 180:case 181:case 266:case 312:return e}}}function aie(e){switch(e.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(e.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function FF(e){Fe(e)&&(Sc(e.parent)||Ec(e.parent))&&e.parent.name===e&&(e=e.parent);let t=Lu(e,!0,!1);return Yi(t)}function sie(e){let t=Lu(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function S2(e,t){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 167:e=e.parent;break;case 262:case 218:case 219:if(!t)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return e;case 170:e.parent.kind===169&&$c(e.parent.parent)?e=e.parent.parent:$c(e.parent)&&(e=e.parent);break}}}function _T(e){if(e.kind===218||e.kind===219){let t=e,r=e.parent;for(;r.kind===217;)t=r,r=r.parent;if(r.kind===213&&r.expression===t)return r}}function M0e(e){return e.kind===108||ku(e)}function ku(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function T2(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===110}function zF(e){var t;return!!e&&wi(e)&&((t=e.initializer)==null?void 0:t.kind)===110}function lie(e){return!!e&&(Zu(e)||mc(e))&&dr(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function A2(e){switch(e.kind){case 183:return e.typeName;case 233:return Bl(e.expression)?e.expression:void 0;case 80:case 166:return e}}function BF(e){switch(e.kind){case 215:return e.tag;case 286:case 285:return e.tagName;case 226:return e.right;default:return e.expression}}function GF(e,t,r,i){if(e&&iu(t)&&Ki(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return r!==void 0&&(e?Sc(r):ci(r)&&!w0(t)&&!Gj(t));case 177:case 178:case 174:return t.body!==void 0&&r!==void 0&&(e?Sc(r):ci(r));case 169:return e?r!==void 0&&r.body!==void 0&&(r.kind===176||r.kind===174||r.kind===178)&&M0(r)!==t&&i!==void 0&&i.kind===263:!1}return!1}function Yx(e,t,r,i){return bf(t)&&GF(e,t,r,i)}function I2(e,t,r,i){return Yx(e,t,r,i)||_N(e,t,r)}function _N(e,t,r){switch(t.kind){case 263:return gt(t.members,i=>I2(e,i,t,r));case 231:return!e&>(t.members,i=>I2(e,i,t,r));case 174:case 178:case 176:return gt(t.parameters,i=>Yx(e,i,t,r));default:return!1}}function Ny(e,t){if(Yx(e,t))return!0;let r=Zh(t);return!!r&&_N(e,r,t)}function lj(e,t,r){let i;if(Cv(t)){let{firstAccessor:o,secondAccessor:s,setAccessor:l}=AT(r.members,t),d=bf(o)?o:s&&bf(s)?s:void 0;if(!d||t!==d)return!1;i=l?.parameters}else Ul(t)&&(i=t.parameters);if(Yx(e,t,r))return!0;if(i){for(let o of i)if(!L0(o)&&Yx(e,o,t,r))return!0}return!1}function cj(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return cj(e.textSourceNode);case 15:return e.text===""}return!1}return e.text===""}function $x(e){let{parent:t}=e;return t.kind===286||t.kind===285||t.kind===287?t.tagName===e:!1}function Xh(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 234:case 216:case 238:case 235:case 217:case 218:case 231:case 219:case 222:case 220:case 221:case 224:case 225:case 226:case 227:case 230:case 228:case 232:case 284:case 285:case 288:case 229:case 223:case 236:return!0;case 233:return!Zp(e.parent)&&!a1(e.parent);case 166:for(;e.parent.kind===166;)e=e.parent;return e.parent.kind===186||SI(e.parent)||_P(e.parent)||gE(e.parent)||$x(e);case 318:for(;gE(e.parent);)e=e.parent;return e.parent.kind===186||SI(e.parent)||_P(e.parent)||gE(e.parent)||$x(e);case 81:return dr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===186||SI(e.parent)||_P(e.parent)||gE(e.parent)||$x(e))return!0;case 9:case 10:case 11:case 15:case 110:return VF(e);default:return!1}}function VF(e){let{parent:t}=e;switch(t.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return t.initializer===e;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return t.expression===e;case 248:let r=t;return r.initializer===e&&r.initializer.kind!==261||r.condition===e||r.incrementor===e;case 249:case 250:let i=t;return i.initializer===e&&i.initializer.kind!==261||i.expression===e;case 216:case 234:return e===t.expression;case 239:return e===t.expression;case 167:return e===t.expression;case 170:case 294:case 293:case 305:return!0;case 233:return t.expression===e&&!qh(t);case 304:return t.objectAssignmentInitializer===e;case 238:return e===t.expression;default:return Xh(t)}}function jF(e){for(;e.kind===166||e.kind===80;)e=e.parent;return e.kind===186}function cie(e){return yh(e)&&!!e.parent.moduleSpecifier}function aE(e){return e.kind===271&&e.moduleReference.kind===283}function hN(e){return x.assert(aE(e)),e.moduleReference.expression}function dj(e){return R0(e)&&hR(e.initializer).arguments[0]}function Qx(e){return e.kind===271&&e.moduleReference.kind!==283}function su(e){return ir(e)}function L0e(e){return!ir(e)}function ir(e){return!!e&&!!(e.flags&524288)}function UF(e){return!!e&&!!(e.flags&134217728)}function uj(e){return!Jf(e)}function x2(e){return!!e&&!!(e.flags&16777216)}function HF(e){return If(e)&&Fe(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===154||e.typeArguments[0].kind===150)}function bu(e,t){if(e.kind!==213)return!1;let{expression:r,arguments:i}=e;if(r.kind!==80||r.escapedText!=="require"||i.length!==1)return!1;let o=i[0];return!t||as(o)}function KF(e){return k0e(e,!1)}function R0(e){return k0e(e,!0)}function die(e){return Xa(e)&&R0(e.parent.parent)}function k0e(e,t){return wi(e)&&!!e.initializer&&bu(t?hR(e.initializer):e.initializer,!0)}function pj(e){return Ml(e)&&e.declarationList.declarations.length>0&&oo(e.declarationList.declarations,t=>KF(t))}function R2(e){return e===39||e===34}function JF(e,t){return S0(t,e).charCodeAt(0)===34}function gN(e){return dr(e)||Ns(e)||Fe(e)||ia(e)}function D2(e){return ir(e)&&e.initializer&&dr(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&Bl(e.name)&&Zx(e.name,e.initializer.left)?e.initializer.right:e.initializer}function C2(e){let t=D2(e);return t&&sE(t,Fv(e.name))}function V7e(e,t){return gn(e.properties,r=>mc(r)&&Fe(r.name)&&r.name.escapedText==="value"&&r.initializer&&sE(r.initializer,t))}function AI(e){if(e&&e.parent&&dr(e.parent)&&e.parent.operatorToken.kind===64){let t=Fv(e.parent.left);return sE(e.parent.right,t)||j7e(e.parent.left,e.parent.right,t)}if(e&&ia(e)&&gT(e)){let t=V7e(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function sE(e,t){if(ia(e)){let r=fs(e.expression);return r.kind===218||r.kind===219?e:void 0}if(e.kind===218||e.kind===231||e.kind===219||Ma(e)&&(e.properties.length===0||t))return e}function j7e(e,t,r){let i=dr(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&&sE(t.right,r);if(i&&Zx(e,t.left))return i}function uie(e){let t=wi(e.parent)?e.parent.name:dr(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&&sE(e.right,Fv(t))&&Bl(t)&&Zx(t,e.left)}function fj(e){if(dr(e.parent)){let t=(e.parent.operatorToken.kind===57||e.parent.operatorToken.kind===61)&&dr(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===64&&Fe(t.left))return t.left}else if(wi(e.parent))return e.parent.name}function Zx(e,t){return T_(e)&&T_(t)?Xf(e)===Xf(t):Hh(e)&&qF(t)&&(t.expression.kind===110||Fe(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?Zx(e,M2(t)):qF(e)&&qF(t)?Lg(e)===Lg(t)&&Zx(e.expression,t.expression):!1}function N2(e){for(;Mc(e,!0);)e=e.right;return e}function hT(e){return Fe(e)&&e.escapedText==="exports"}function mj(e){return Fe(e)&&e.escapedText==="module"}function Yh(e){return(kr(e)||P2(e))&&mj(e.expression)&&Lg(e)==="exports"}function zl(e){let t=U7e(e);return t===5||ir(e)?t:0}function gT(e){return Nn(e.arguments)===3&&kr(e.expression)&&Fe(e.expression.expression)&&gr(e.expression.expression)==="Object"&&gr(e.expression.name)==="defineProperty"&&$p(e.arguments[1])&&yT(e.arguments[0],!0)}function qF(e){return kr(e)||P2(e)}function P2(e){return Js(e)&&$p(e.argumentExpression)}function D0(e,t){return kr(e)&&(!t&&e.expression.kind===110||Fe(e.name)&&yT(e.expression,!0))||XF(e,t)}function XF(e,t){return P2(e)&&(!t&&e.expression.kind===110||Bl(e.expression)||D0(e.expression,!0))}function yT(e,t){return Bl(e)||D0(e,t)}function M2(e){return kr(e)?e.name:e.argumentExpression}function U7e(e){if(ia(e)){if(!gT(e))return 0;let t=e.arguments[0];return hT(t)||Yh(t)?8:D0(t)&&Lg(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!Ns(e.left)||H7e(N2(e))?0:yT(e.left.expression,!0)&&Lg(e.left)==="prototype"&&Ma(_j(e))?6:L2(e.left)}function H7e(e){return e1(e)&&mp(e.expression)&&e.expression.text==="0"}function YF(e){if(kr(e))return e.name;let t=fs(e.argumentExpression);return mp(t)||as(t)?t:e}function Lg(e){let t=YF(e);if(t){if(Fe(t))return t.escapedText;if(as(t)||mp(t))return pl(t.text)}}function L2(e){if(e.expression.kind===110)return 4;if(Yh(e))return 2;if(yT(e.expression,!0)){if(Fv(e.expression))return 3;let t=e;for(;!Fe(t.expression);)t=t.expression;let r=t.expression;if((r.escapedText==="exports"||r.escapedText==="module"&&Lg(t)==="exports")&&D0(e))return 1;if(yT(e,!0)||Js(e)&&n6(e))return 5}return 0}function _j(e){for(;dr(e.right);)e=e.right;return e.right}function k2(e){return dr(e)&&zl(e)===3}function pie(e){return ir(e)&&e.parent&&e.parent.kind===244&&(!Js(e)||P2(e))&&!!tE(e.parent)}function w2(e,t){let{valueDeclaration:r}=e;(!r||!(t.flags&33554432&&!ir(t)&&!(r.flags&33554432))&&gN(r)&&!gN(t)||r.kind!==t.kind&&Bre(r))&&(e.valueDeclaration=t)}function fie(e){if(!e||!e.valueDeclaration)return!1;let t=e.valueDeclaration;return t.kind===262||wi(t)&&t.initializer&&$o(t.initializer)}function eR(e){var t,r;switch(e.kind){case 260:case 208:return(t=Fn(e.initializer,i=>bu(i,!0)))==null?void 0:t.arguments[0];case 272:case 278:return ri(e.moduleSpecifier,as);case 271:return ri((r=ri(e.moduleReference,vh))==null?void 0:r.expression,as);case 273:case 280:return ri(e.parent.moduleSpecifier,as);case 274:case 281:return ri(e.parent.parent.moduleSpecifier,as);case 276:return ri(e.parent.parent.parent.moduleSpecifier,as);case 205:return wv(e)?e.argument.literal:void 0;default:x.assertNever(e)}}function yN(e){return O2(e)||x.failBadSyntaxKind(e.parent)}function O2(e){switch(e.parent.kind){case 272:case 278:return e.parent;case 283:return e.parent.parent;case 213:return Op(e.parent)||bu(e.parent,!1)?e.parent:void 0;case 201:return x.assert(Da(e)),ri(e.parent.parent,rg);default:return}}function tR(e){switch(e.kind){case 272:case 278:return e.moduleSpecifier;case 271:return e.moduleReference.kind===283?e.moduleReference.expression:void 0;case 205:return wv(e)?e.argument.literal:void 0;case 213:return e.arguments[0];case 267:return e.name.kind===11?e.name:void 0;default:return x.assertNever(e)}}function nR(e){switch(e.kind){case 272:return e.importClause&&ri(e.importClause.namedBindings,Xv);case 271:return e;case 278:return e.exportClause&&ri(e.exportClause,yh);default:return x.assertNever(e)}}function II(e){return e.kind===272&&!!e.importClause&&!!e.importClause.name}function $F(e,t){if(e.name){let r=t(e);if(r)return r}if(e.namedBindings){let r=Xv(e.namedBindings)?t(e.namedBindings):gn(e.namedBindings.elements,t);if(r)return r}}function xI(e){if(e)switch(e.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return e.questionToken!==void 0}return!1}function rR(e){let t=kR(e)?Xc(e.parameters):void 0,r=ri(t&&t.name,Fe);return!!r&&r.escapedText==="new"}function qf(e){return e.kind===353||e.kind===345||e.kind===347}function W2(e){return qf(e)||Tm(e)}function K7e(e){return ed(e)&&dr(e.expression)&&e.expression.operatorToken.kind===64?N2(e.expression):void 0}function w0e(e){return ed(e)&&dr(e.expression)&&zl(e.expression)!==0&&dr(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function hj(e){switch(e.kind){case 243:let t=RI(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function RI(e){return Ml(e)?Xc(e.declarationList.declarations):void 0}function O0e(e){return ql(e)&&e.body&&e.body.kind===267?e.body:void 0}function F2(e){if(e.kind>=243&&e.kind<=259)return!0;switch(e.kind){case 80:case 110:case 108:case 166:case 236:case 212:case 211:case 208:case 218:case 219:case 174:case 177:case 178:return!0;default:return!1}}function z2(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 324:case 330:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function gj(e,t){let r;qx(e)&&Mv(e)&&kp(e.initializer)&&(r=Hr(r,W0e(e,e.initializer.jsDoc)));let i=e;for(;i&&i.parent;){if(kp(i)&&(r=Hr(r,W0e(e,i.jsDoc))),i.kind===169){r=Hr(r,(t?Jne:kx)(i));break}if(i.kind===168){r=Hr(r,(t?Xne:qne)(i));break}i=yj(i)}return r||Xe}function W0e(e,t){let r=Ja(t);return va(t,i=>{if(i===r){let o=jr(i.tags,s=>J7e(e,s));return i.tags===o?[i]:o}else return jr(i.tags,wR)})}function J7e(e,t){return!(hP(t)||J4(t))||!t.parent||!Xm(t.parent)||!Ou(t.parent.parent)||t.parent.parent===e}function yj(e){let t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||O0e(t)||Mc(e))return t;if(t.parent&&(RI(t.parent)===e||Mc(t)))return t.parent;if(t.parent&&t.parent.parent&&(RI(t.parent.parent)||hj(t.parent.parent)===e||w0e(t.parent.parent)))return t.parent.parent}function B2(e){if(e.symbol)return e.symbol;if(!Fe(e.name))return;let t=e.name.escapedText,r=lE(e);if(!r)return;let i=Vr(r.parameters,o=>o.name.kind===80&&o.name.escapedText===t);return i&&i.symbol}function QF(e){if(Xm(e.parent)&&e.parent.tags){let t=Vr(e.parent.tags,qf);if(t)return t}return lE(e)}function vj(e){return rF(e,wR)}function lE(e){let t=cE(e);if(t)return _p(t)&&t.type&&$o(t.type)?t.type:$o(t)?t:void 0}function cE(e){let t=vT(e);if(t)return w0e(t)||K7e(t)||hj(t)||RI(t)||O0e(t)||t}function vT(e){let t=iR(e);if(!t)return;let r=t.parent;if(r&&r.jsDoc&&t===$s(r.jsDoc))return r}function iR(e){return Fn(e.parent,Xm)}function mie(e){let t=e.name.escapedText,{typeParameters:r}=e.parent.parent.parent;return r&&Vr(r,i=>i.name.escapedText===t)}function F0e(e){return!!e.typeArguments}function _ie(e){let t=e.parent;for(;;){switch(t.kind){case 226:let r=t,i=r.operatorToken.kind;return Ly(i)&&r.left===e?r:void 0;case 224:case 225:let o=t,s=o.operator;return s===46||s===47?o:void 0;case 249:case 250:let l=t;return l.initializer===e?l:void 0;case 217:case 209:case 230:case 235:e=t;break;case 305:e=t.parent;break;case 304:if(t.name!==e)return;e=t.parent;break;case 303:if(t.name===e)return;e=t.parent;break;default:return}t=e.parent}}function DI(e){let t=_ie(e);if(!t)return 0;switch(t.kind){case 226:let r=t.operatorToken.kind;return r===64||NN(r)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function $h(e){return!!_ie(e)}function q7e(e){let t=fs(e.right);return t.kind===226&&AH(t.operatorToken.kind)}function bj(e){let t=_ie(e);return!!t&&Mc(t,!0)&&q7e(t)}function hie(e){switch(e.kind){case 241:case 243:case 254:case 245:case 255:case 269:case 296:case 297:case 256:case 248:case 249:case 250:case 246:case 247:case 258:case 299:return!0}return!1}function gie(e){return Ps(e)||Os(e)||bI(e)||Ec(e)||Pl(e)}function z0e(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function G2(e){return z0e(e,196)}function Py(e){return z0e(e,217)}function yie(e){let t;for(;e&&e.kind===196;)t=e,e=e.parent;return[t,e]}function V2(e){for(;NT(e);)e=e.type;return e}function fs(e,t){return Yl(e,t?17:1)}function Ej(e){return e.kind!==211&&e.kind!==212?!1:(e=Py(e.parent),e&&e.kind===220)}function C0(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function kg(e){return!Yi(e)&&!Qo(e)&&Hd(e.parent)&&e.parent.name===e}function vN(e){let t=e.parent;switch(e.kind){case 11:case 15:case 9:if(Ya(t))return t.parent;case 80:if(Hd(t))return t.name===e?t:void 0;if(Su(t)){let r=t.parent;return Ym(r)&&r.name===t?r:void 0}else{let r=t.parent;return dr(r)&&zl(r)!==0&&(r.left.symbol||r.symbol)&&Po(r)===e?r:void 0}case 81:return Hd(t)&&t.name===e?t:void 0;default:return}}function j2(e){return $p(e)&&e.parent.kind===167&&Hd(e.parent.parent)}function vie(e){let t=e.parent;switch(t.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return t.name===e;case 166:return t.right===e;case 208:case 276:return t.propertyName===e;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function B0e(e){return e.kind===271||e.kind===270||e.kind===273&&e.name||e.kind===274||e.kind===280||e.kind===276||e.kind===281||e.kind===277&&oR(e)?!0:ir(e)&&(dr(e)&&zl(e)===2&&oR(e)||kr(e)&&dr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===64&&U2(e.parent.right))}function Sj(e){switch(e.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return e.parent;case 166:do e=e.parent;while(e.parent.kind===166);return Sj(e)}}function U2(e){return Bl(e)||Zc(e)}function oR(e){let t=Tj(e);return U2(t)}function Tj(e){return Ll(e)?e.expression:e.right}function bie(e){return e.kind===304?e.name:e.kind===303?e.initializer:e.parent.right}function S_(e){let t=N0(e);if(t&&ir(e)){let r=$ne(e);if(r)return r.class}return t}function N0(e){let t=H2(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function aR(e){if(ir(e))return Qne(e).map(t=>t.class);{let t=H2(e.heritageClauses,119);return t?.types}}function bN(e){return pu(e)?EN(e)||Xe:ci(e)&&Eo(pI(S_(e)),aR(e))||Xe}function EN(e){let t=H2(e.heritageClauses,96);return t?t.types:void 0}function H2(e,t){if(e){for(let r of e)if(r.token===t)return r}}function dE(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function wu(e){return 83<=e&&e<=165}function Aj(e){return 19<=e&&e<=79}function ZF(e){return wu(e)||Aj(e)}function e6(e){return 128<=e&&e<=165}function Ij(e){return wu(e)&&!e6(e)}function G0e(e){return 119<=e&&e<=127}function CI(e){let t=g0(e);return t!==void 0&&Ij(t)}function V0e(e){let t=g0(e);return t!==void 0&&wu(t)}function xj(e){let t=eE(e);return!!t&&!e6(t)}function sR(e){return 2<=e&&e<=7}function Vc(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:$r(e,1024)&&(t|=2);break}return e.body||(t|=4),t}function SN(e){switch(e.kind){case 262:case 218:case 219:case 174:return e.body!==void 0&&e.asteriskToken===void 0&&$r(e,1024)}return!1}function $p(e){return as(e)||mp(e)}function t6(e){return qv(e)&&(e.operator===40||e.operator===41)&&mp(e.operand)}function Ov(e){let t=Po(e);return!!t&&n6(t)}function n6(e){if(!(e.kind===167||e.kind===212))return!1;let t=Js(e)?fs(e.argumentExpression):e.expression;return!$p(t)&&!t6(t)}function bT(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:return pl(e.text);case 167:let t=e.expression;return $p(t)?pl(t.text):t6(t)?t.operator===41?da(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return FI(e);default:return x.assertNever(e)}}function T_(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function Xf(e){return Hh(e)?gr(e):qm(e)?QN(e):e.text}function TN(e){return Hh(e)?e.escapedText:qm(e)?FI(e):pl(e.text)}function j0e(e){return`__@${ba(e)}@${e.escapedName}`}function K2(e,t){return`__#${ba(e)}@${t}`}function J2(e){return ao(e.escapedName,"__@")}function Eie(e){return ao(e.escapedName,"__#")}function U0e(e){return e.kind===80&&e.escapedText==="Symbol"}function Sie(e){return Fe(e)?gr(e)==="__proto__":Da(e)&&e.text==="__proto__"}function AN(e,t){switch(e=Yl(e),e.kind){case 231:if(OK(e))return!1;break;case 218:if(e.name)return!1;break;case 219:break;default:return!1}return typeof t=="function"?t(e):!0}function Rj(e){switch(e.kind){case 303:return!Sie(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return Fe(e.name)&&!!e.initializer;case 169:return Fe(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 208:return Fe(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 172:return!!e.initializer;case 226:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return Fe(e.left)}break;case 277:return!0}return!1}function pp(e,t){if(!Rj(e))return!1;switch(e.kind){case 303:return AN(e.initializer,t);case 304:return AN(e.objectAssignmentInitializer,t);case 260:case 169:case 208:case 172:return AN(e.initializer,t);case 226:return AN(e.right,t);case 277:return AN(e.expression,t)}}function Dj(e){return e.escapedText==="push"||e.escapedText==="unshift"}function P0(e){return A_(e).kind===169}function A_(e){for(;e.kind===208;)e=e.parent.parent;return e}function Cj(e){let t=e.kind;return t===176||t===218||t===262||t===219||t===174||t===177||t===178||t===267||t===312}function Ks(e){return Km(e.pos)||Km(e.end)}function H0e(e){return Do(e,Yi)||e}function Nj(e){let t=Mj(e),r=e.kind===214&&e.arguments!==void 0;return Pj(e.kind,t,r)}function Pj(e,t,r){switch(e){case 214:return r?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function IN(e){let t=Mj(e),r=e.kind===214&&e.arguments!==void 0;return q2(e.kind,t,r)}function Mj(e){return e.kind===226?e.operatorToken.kind:e.kind===224||e.kind===225?e.operator:e.kind}function q2(e,t,r){switch(e){case 361:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return X2(t)}case 216:case 235:case 224:case 221:case 222:case 220:case 223:return 16;case 225:return 17;case 213:return 18;case 214:return r?19:18;case 215:case 211:case 212:case 236:return 19;case 234:case 238:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 209:case 210:case 218:case 219:case 231:case 14:case 15:case 228:case 217:case 232:case 284:case 285:case 288:return 20;default:return-1}}function X2(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function lR(e){return jr(e,t=>{switch(t.kind){case 294:return!!t.expression;case 12:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function cR(){let e=[],t=[],r=new Map,i=!1;return{add:s,lookup:o,getGlobalDiagnostics:l,getDiagnostics:d};function o(p){let h;if(p.file?h=r.get(p.file.fileName):h=e,!h)return;let m=by(h,p,Qs,T6);if(m>=0)return h[m]}function s(p){let h;p.file?(h=r.get(p.file.fileName),h||(h=[],r.set(p.file.fileName,h),vv(t,p.file.fileName,Vd))):(i&&(i=!1,e=e.slice()),h=e),vv(h,p,T6)}function l(){return i=!0,e}function d(p){if(p)return r.get(p)||[];let h=wC(t,m=>r.get(m));return e.length&&h.unshift(...e),h}}function Lj(e){return e.replace(gSe,"\\${")}function Tie(e){return!!((e.templateFlags||0)&2048)}function kj(e){return e&&!!(HI(e)?Tie(e):Tie(e.head)||gt(e.templateSpans,t=>Tie(t.literal)))}function K0e(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function X7e(e,t,r){if(e.charCodeAt(0)===0){let i=r.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return ESe.get(e)||K0e(e.charCodeAt(0))}function Qh(e,t){let r=t===96?bSe:t===39?vSe:ySe;return e.replace(r,X7e)}function Y2(e,t){return e=Qh(e,t),Loe.test(e)?e.replace(Loe,r=>K0e(r.charCodeAt(0))):e}function Y7e(e){return"&#x"+e.toString(16).toUpperCase()+";"}function $7e(e){return e.charCodeAt(0)===0?"�":ASe.get(e)||Y7e(e.charCodeAt(0))}function wj(e,t){let r=t===39?TSe:SSe;return e.replace(r,$7e)}function Yf(e){let t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&Q7e(e.charCodeAt(0))?e.substring(1,t-1):e}function Q7e(e){return e===39||e===34||e===96}function dR(e){let t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}function r6(e){let t=ZN[1];for(let r=ZN.length;r<=e;r++)ZN.push(ZN[r-1]+t);return ZN[e]}function uR(){return ZN[1].length}function $2(e){var t,r,i,o,s,l=!1;function d(D){let w=hI(D);w.length>1?(o=o+w.length-1,s=t.length-D.length+Ja(w),i=s-t.length===0):i=!1}function p(D){D&&D.length&&(i&&(D=r6(r)+D,i=!1),t+=D,d(D))}function h(D){D&&(l=!1),p(D)}function m(D){D&&(l=!0),p(D)}function y(){t="",r=0,i=!0,o=0,s=0,l=!1}function E(D){D!==void 0&&(t+=D,d(D),l=!1)}function S(D){D&&D.length&&h(D)}function A(D){(!i||D)&&(t+=e,o++,s=t.length,i=!0,l=!1)}function N(){return i?t.length:t.length+e.length}return y(),{write:h,rawWrite:E,writeLiteral:S,writeLine:A,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},getIndent:()=>r,getTextPos:()=>t.length,getLine:()=>o,getColumn:()=>i?r*uR():t.length-s,getText:()=>t,isAtStartOfLine:()=>i,hasTrailingComment:()=>l,hasTrailingWhitespace:()=>!!t.length&&Cg(t.charCodeAt(t.length-1)),clear:y,writeKeyword:h,writeOperator:h,writeParameter:h,writeProperty:h,writePunctuation:h,writeSpace:h,writeStringLiteral:h,writeSymbol:(D,w)=>h(D),writeTrailingSemicolon:h,writeComment:m,getTextPosWithWriteLine:N}}function Oj(e){let t=!1;function r(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(i){r(),e.writeLiteral(i)},writeStringLiteral(i){r(),e.writeStringLiteral(i)},writeSymbol(i,o){r(),e.writeSymbol(i,o)},writePunctuation(i){r(),e.writePunctuation(i)},writeKeyword(i){r(),e.writeKeyword(i)},writeOperator(i){r(),e.writeOperator(i)},writeParameter(i){r(),e.writeParameter(i)},writeSpace(i){r(),e.writeSpace(i)},writeProperty(i){r(),e.writeProperty(i)},writeComment(i){r(),e.writeComment(i)},writeLine(){r(),e.writeLine()},increaseIndent(){r(),e.increaseIndent()},decreaseIndent(){r(),e.decreaseIndent()}}}function pR(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function My(e){return Nd(pR(e))}function i6(e,t,r){return t.moduleName||Wj(e,t.fileName,r&&r.fileName)}function J0e(e,t){return e.getCanonicalFileName(ho(t,e.getCurrentDirectory()))}function Aie(e,t,r){let i=t.getExternalModuleFileFromDeclaration(r);if(!i||i.isDeclarationFile)return;let o=tR(r);if(!(o&&as(o)&&!Lp(o.text)&&!J0e(e,i.path).includes(J0e(e,Bc(e.getCommonSourceDirectory())))))return i6(e,i)}function Wj(e,t,r){let i=p=>e.getCanonicalFileName(p),o=tl(r?oi(r):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),s=ho(t,e.getCurrentDirectory()),l=_I(o,s,o,i,!1),d=Eu(l);return r?h0(d):d}function Iie(e,t,r){let i=t.getCompilerOptions(),o;return i.outDir?o=Eu(l6(e,t,i.outDir)):o=Eu(e),o+r}function xie(e,t){return o6(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),r=>t.getCanonicalFileName(r))}function o6(e,t,r,i,o){let s=t.declarationDir||t.outDir,l=s?c6(e,s,r,i,o):e,d=a6(l);return Eu(l)+d}function a6(e){return bc(e,[".mjs",".mts"])?".d.mts":bc(e,[".cjs",".cts"])?".d.cts":bc(e,[".json"])?".d.json.ts":".d.ts"}function Rie(e){return bc(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:bc(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:bc(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function xs(e){return e.outFile||e.out}function s6(e,t){var r;if(e.paths)return e.baseUrl??x.checkDefined(e.pathsBasePath||((r=t.getCurrentDirectory)==null?void 0:r.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function Fj(e,t,r){let i=e.getCompilerOptions();if(xs(i)){let o=Ld(i),s=i.emitDeclarationOnly||o===2||o===4;return jr(e.getSourceFiles(),l=>(s||!oc(l))&&ET(l,e,r))}else{let o=t===void 0?e.getSourceFiles():[t];return jr(o,s=>ET(s,e,r))}}function ET(e,t,r){let i=t.getCompilerOptions();if(i.noEmitForJsFiles&&su(e)||e.isDeclarationFile||t.isSourceFileFromExternalLibrary(e))return!1;if(r)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!Jf(e))return!0;if(t.getResolvedProjectReferenceToRedirect(e.fileName))return!1;if(xs(i))return!0;if(!i.outDir)return!1;if(i.rootDir||i.composite&&i.configFilePath){let o=ho(GP(i,()=>[],t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),s=c6(e.fileName,i.outDir,t.getCurrentDirectory(),o,t.getCanonicalFileName);if(Rg(e.fileName,s,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0)return!1}return!0}function l6(e,t,r){return c6(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),i=>t.getCanonicalFileName(i))}function c6(e,t,r,i,o){let s=ho(e,r);return s=o(s).indexOf(o(i))===0?s.substring(i.length):s,Yr(t,s)}function xN(e,t,r,i,o,s,l){e.writeFile(r,i,o,d=>{t.add(jl(f.Could_not_write_file_0_Colon_1,r,d))},s,l)}function q0e(e,t,r){if(e.length>sh(e)&&!r(e)){let i=oi(e);q0e(i,t,r),t(e)}}function zj(e,t,r,i,o,s){try{i(e,t,r)}catch{q0e(oi(ma(e)),o,s),i(e,t,r)}}function RN(e,t){let r=Dg(e);return qC(r,t)}function ST(e,t){return qC(e,t)}function Zh(e){return Vr(e.members,t=>Pl(t)&&Hf(t.body))}function DN(e){if(e&&e.parameters.length>0){let t=e.parameters.length===2&&L0(e.parameters[0]);return e.parameters[t?1:0]}}function Die(e){let t=DN(e);return t&&t.type}function M0(e){if(e.parameters.length&&!yE(e)){let t=e.parameters[0];if(L0(t))return t}}function L0(e){return k0(e.name)}function k0(e){return!!e&&e.kind===80&&Bj(e)}function TT(e){return!!Fn(e,t=>t.kind===186?!0:t.kind===80||t.kind===166?!1:"quit")}function NI(e){if(!k0(e))return!1;for(;Su(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===186}function Bj(e){return e.escapedText==="this"}function AT(e,t){let r,i,o,s;return Ov(t)?(r=t,t.kind===177?o=t:t.kind===178?s=t:x.fail("Accessor has wrong kind")):gn(e,l=>{if(Cv(l)&&ra(l)===ra(t)){let d=bT(l.name),p=bT(t.name);d===p&&(r?i||(i=l):r=l,l.kind===177&&!o&&(o=l),l.kind===178&&!s&&(s=l))}}),{firstAccessor:r,secondAccessor:i,getAccessor:o,setAccessor:s}}function yd(e){if(!ir(e)&&Ec(e))return;let t=e.type;return t||!ir(e)?t:rN(e)?e.typeExpression&&e.typeExpression.type:nE(e)}function Cie(e){return e.type}function $f(e){return yE(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(ir(e)?YL(e):void 0)}function d6(e){return va(rE(e),t=>Z7e(t)?t.typeParameters:void 0)}function Z7e(e){return nm(e)&&!(e.parent.kind===327&&(e.parent.tags.some(qf)||e.parent.tags.some(wR)))}function Nie(e){let t=DN(e);return t&&yd(t)}function Pie(e,t,r,i){Mie(e,t,r.pos,i)}function Mie(e,t,r,i){i&&i.length&&r!==i[0].pos&&ST(e,r)!==ST(e,i[0].pos)&&t.writeLine()}function Lie(e,t,r,i){r!==i&&ST(e,r)!==ST(e,i)&&t.writeLine()}function kie(e,t,r,i,o,s,l,d){if(i&&i.length>0){o&&r.writeSpace(" ");let p=!1;for(let h of i)p&&(r.writeSpace(" "),p=!1),d(e,t,r,h.pos,h.end,l),h.hasTrailingNewLine?r.writeLine():p=!0;p&&s&&r.writeSpace(" ")}}function wie(e,t,r,i,o,s,l){let d,p;if(l?o.pos===0&&(d=jr(jh(e,o.pos),h)):d=jh(e,o.pos),d){let m=[],y;for(let E of d){if(y){let S=ST(t,y.end);if(ST(t,E.pos)>=S+2)break}m.push(E),y=E}if(m.length){let E=ST(t,Ja(m).end);ST(t,Na(e,o.pos))>=E+2&&(Pie(t,r,o,d),kie(e,t,r,m,!1,!0,s,i),p={nodePos:o.pos,detachedCommentEndPos:Ja(m).end})}}return p;function h(m){return AF(e,m.pos)}}function fR(e,t,r,i,o,s){if(e.charCodeAt(i+1)===42){let l=Nx(t,i),d=t.length,p;for(let h=i,m=l.line;h0){let A=S%uR(),N=r6((S-A)/uR());for(r.rawWrite(N);A;)r.rawWrite(" "),A--}else r.rawWrite("")}eBe(e,o,r,s,h,y),h=y}}else r.writeComment(e.substring(i,o))}function eBe(e,t,r,i,o,s){let l=Math.min(t,s-1),d=e.substring(o,l).trim();d?(r.writeComment(d),l!==t&&r.writeLine()):r.rawWrite(i)}function X0e(e,t,r){let i=0;for(;t=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=Vj(e)|536870912),r||t&&ir(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=Y0e(e)|268435456),$0e(e.modifierFlagsCache)):tBe(e.modifierFlagsCache))}function lu(e){return Fie(e,!0)}function zie(e){return Fie(e,!0,!0)}function Wv(e){return Fie(e,!1)}function Y0e(e){let t=0;return e.parent&&!Ao(e)&&(ir(e)&&(Zne(e)&&(t|=8388608),ere(e)&&(t|=16777216),tre(e)&&(t|=33554432),nre(e)&&(t|=67108864),rre(e)&&(t|=134217728)),ire(e)&&(t|=65536)),t}function tBe(e){return e&65535}function $0e(e){return e&131071|(e&260046848)>>>23}function nBe(e){return $0e(Y0e(e))}function Bie(e){return Vj(e)|nBe(e)}function Vj(e){let t=Am(e)?x_(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function x_(e){let t=0;if(e)for(let r of e)t|=MI(r.kind);return t}function MI(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function Q0e(e){return e===57||e===56}function Gie(e){return Q0e(e)||e===54}function NN(e){return e===76||e===77||e===78}function jj(e){return dr(e)&&NN(e.operatorToken.kind)}function Q2(e){return Q0e(e)||e===61}function Z2(e){return dr(e)&&Q2(e.operatorToken.kind)}function Ly(e){return e>=64&&e<=79}function Uj(e){let t=Hj(e);return t&&!t.isImplements?t.class:void 0}function Hj(e){if(zy(e)){if(Zp(e.parent)&&ci(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(a1(e.parent)){let t=cE(e.parent);if(t&&ci(t))return{class:t,isImplements:!1}}}}function Mc(e,t){return dr(e)&&(t?e.operatorToken.kind===64:Ly(e.operatorToken.kind))&&Yu(e.left)}function Z0e(e){return Mc(e.parent)&&e.parent.left===e}function ky(e){if(Mc(e,!0)){let t=e.left.kind;return t===210||t===209}return!1}function f6(e){return Uj(e)!==void 0}function Bl(e){return e.kind===80||ek(e)}function Fp(e){switch(e.kind){case 80:return e;case 166:do e=e.left;while(e.kind!==80);return e;case 211:do e=e.expression;while(e.kind!==80);return e}}function PN(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===236||e.kind===211&&PN(e.expression)||e.kind===217&&PN(e.expression)}function ek(e){return kr(e)&&Fe(e.name)&&Bl(e.expression)}function tk(e){if(kr(e)){let t=tk(e.expression);if(t!==void 0)return t+"."+up(e.name)}else if(Js(e)){let t=tk(e.expression);if(t!==void 0&&rc(e.argumentExpression))return t+"."+bT(e.argumentExpression)}else{if(Fe(e))return Vi(e.escapedText);if(qm(e))return QN(e)}}function Fv(e){return D0(e)&&Lg(e)==="prototype"}function MN(e){return e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e||e.parent.kind===236&&e.parent.name===e}function Kj(e){return!!e.parent&&(kr(e.parent)&&e.parent.name===e||Js(e.parent)&&e.parent.argumentExpression===e)}function Vie(e){return Su(e.parent)&&e.parent.right===e||kr(e.parent)&&e.parent.name===e||gE(e.parent)&&e.parent.right===e}function m6(e){return dr(e)&&e.operatorToken.kind===104}function jie(e){return m6(e.parent)&&e===e.parent.right}function Jj(e){return e.kind===210&&e.properties.length===0}function Uie(e){return e.kind===209&&e.elements.length===0}function mR(e){if(!(!rBe(e)||!e.declarations)){for(let t of e.declarations)if(t.localSymbol)return t.localSymbol}}function rBe(e){return e&&Nn(e.declarations)>0&&$r(e.declarations[0],2048)}function _6(e){return Vr(CSe,t=>Sl(e,t))}function iBe(e){let t=[],r=e.length;for(let i=0;i>6|192),t.push(o&63|128)):o<65536?(t.push(o>>12|224),t.push(o>>6&63|128),t.push(o&63|128)):o<131072?(t.push(o>>18|240),t.push(o>>12&63|128),t.push(o>>6&63|128),t.push(o&63|128)):x.assert(!1,"Unexpected code point")}return t}function Hie(e){let t="",r=iBe(e),i=0,o=r.length,s,l,d,p;for(;i>2,l=(r[i]&3)<<4|r[i+1]>>4,d=(r[i+1]&15)<<2|r[i+2]>>6,p=r[i+2]&63,i+1>=o?d=p=64:i+2>=o&&(p=64),t+=xT.charAt(s)+xT.charAt(l)+xT.charAt(d)+xT.charAt(p),i+=3;return t}function oBe(e){let t="",r=0,i=e.length;for(;r>4&3,m=(l&15)<<4|d>>2&15,y=(d&3)<<6|p&63;m===0&&d!==0?i.push(h):y===0&&p!==0?i.push(h,m):i.push(h,m,y),o+=4}return oBe(i)}function qj(e,t){let r=No(t)?t:t.readFile(e);if(!r)return;let i=WH(e,r);return i.error?void 0:i.config}function LN(e,t){return qj(e,t)||{}}function h6(e){try{return JSON.parse(e)}catch{return}}function Um(e,t){return!t.directoryExists||t.directoryExists(e)}function wy(e){switch(e.newLine){case 0:return ISe;case 1:case void 0:return xSe}}function Ef(e,t=e){return x.assert(t>=e||t===-1),{pos:e,end:t}}function g6(e,t){return Ef(e.pos,t)}function uE(e,t){return Ef(t,e.end)}function wg(e){let t=Am(e)?sI(e.modifiers,bd):void 0;return t&&!Km(t.end)?uE(e,t.end):e}function R_(e){if(Uo(e)||Ul(e))return uE(e,e.name.pos);let t=Am(e)?$s(e.modifiers):void 0;return t&&!Km(t.end)?uE(e,t.end):wg(e)}function eSe(e){return e.pos===e.end}function Xj(e,t){return Ef(e,e+da(t).length)}function IT(e,t){return Xie(e,e,t)}function y6(e,t,r){return Sf(kN(e,r,!1),kN(t,r,!1),r)}function qie(e,t,r){return Sf(e.end,t.end,r)}function Xie(e,t,r){return Sf(kN(e,r,!1),t.end,r)}function nk(e,t,r){return Sf(e.end,kN(t,r,!1),r)}function Yj(e,t,r,i){let o=kN(t,r,i);return XC(r,e.end,o)}function tSe(e,t,r){return XC(r,e.end,t.end)}function Yie(e,t){return!Sf(e.pos,e.end,t)}function Sf(e,t,r){return XC(r,e,t)===0}function kN(e,t,r){return Km(e.pos)?-1:Na(t.text,e.pos,!1,r)}function $ie(e,t,r,i){let o=Na(r.text,e,!1,i),s=aBe(o,t,r);return XC(r,s??t,o)}function Qie(e,t,r,i){let o=Na(r.text,e,!1,i);return XC(r,e,Math.min(t,o))}function aBe(e,t=0,r){for(;e-- >t;)if(!Cg(r.text.charCodeAt(e)))return e}function $j(e){let t=Do(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function wN(e){return jr(e.declarations,rk)}function rk(e){return wi(e)&&e.initializer!==void 0}function nSe(e){return e.watch&&Ss(e,"watch")}function Hm(e){e.close()}function Tl(e){return e.flags&33554432?e.links.checkFlags:0}function Tf(e,t=!1){if(e.valueDeclaration){let r=t&&e.declarations&&Vr(e.declarations,hp)||e.flags&32768&&Vr(e.declarations,Qp)||e.valueDeclaration,i=Zb(r);return e.parent&&e.parent.flags&32?i:i&-8}if(Tl(e)&6){let r=e.links.checkFlags,i=r&1024?2:r&256?1:4,o=r&2048?256:0;return i|o}return e.flags&4194304?257:0}function vd(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function _R(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function v6(e){return ON(e)===1}function LI(e){return ON(e)!==0}function ON(e){let{parent:t}=e;switch(t?.kind){case 217:return ON(t);case 225:case 224:let{operator:r}=t;return r===46||r===47?2:0;case 226:let{left:i,operatorToken:o}=t;return i===e&&Ly(o.kind)?o.kind===64?1:2:0;case 211:return t.name!==e?0:ON(t);case 303:{let s=ON(t.parent);return e===t.name?sBe(s):s}case 304:return e===t.objectAssignmentInitializer?0:ON(t.parent);case 209:return ON(t);default:return 0}}function sBe(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return x.assertNever(e)}}function Qj(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(typeof e[r]=="object"){if(!Qj(e[r],t[r]))return!1}else if(typeof e[r]!="function"&&e[r]!==t[r])return!1;return!0}function $u(e,t){e.forEach(t),e.clear()}function eg(e,t,r){let{onDeleteValue:i,onExistingValue:o}=r;e.forEach((s,l)=>{var d;t?.has(l)?o&&o(s,(d=t.get)==null?void 0:d.call(t,l),l):(e.delete(l),i(s,l))})}function WN(e,t,r){eg(e,t,r);let{createNewValue:i}=r;t?.forEach((o,s)=>{e.has(s)||e.set(s,i(s,o))})}function Zie(e){if(e.flags&32){let t=Og(e);return!!t&&$r(t,64)}return!1}function Og(e){var t;return(t=e.declarations)==null?void 0:t.find(ci)}function Lr(e){return e.flags&3899393?e.objectFlags:0}function rSe(e,t){return!!hm(e,r=>t(r)?!0:void 0)}function b6(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&Fk(e.declarations[0])}function eoe({moduleSpecifier:e}){return Da(e)?e.text:uc(e)}function Zj(e){let t;return Go(e,r=>{Hf(r)&&(t=r)},r=>{for(let i=r.length-1;i>=0;i--)if(Hf(r[i])){t=r[i];break}}),t}function Em(e,t,r=!0){return e.has(t)?!1:(e.set(t,r),!0)}function kI(e){return ci(e)||pu(e)||gp(e)}function eU(e){return e>=182&&e<=205||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===233||e===319||e===320||e===321||e===322||e===323||e===324||e===325}function Ns(e){return e.kind===211||e.kind===212}function tU(e){return e.kind===211?e.name:(x.assert(e.kind===212),e.argumentExpression)}function toe(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function E6(e){return e.kind===275||e.kind===279}function hR(e){for(;Ns(e);)e=e.expression;return e}function noe(e,t){if(Ns(e.parent)&&Kj(e))return r(e.parent);function r(i){if(i.kind===211){let o=t(i.name);if(o!==void 0)return o}else if(i.kind===212)if(Fe(i.argumentExpression)||as(i.argumentExpression)){let o=t(i.argumentExpression);if(o!==void 0)return o}else return;if(Ns(i.expression))return r(i.expression);if(Fe(i.expression))return t(i.expression)}}function gR(e,t){for(;;){switch(e.kind){case 225:e=e.operand;continue;case 226:e=e.left;continue;case 227:e=e.condition;continue;case 215:e=e.tag;continue;case 213:if(t)return e;case 234:case 212:case 211:case 235:case 360:case 238:e=e.expression;continue}return e}}function lBe(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function cBe(e,t){this.flags=t,(x.isDebugging||rr)&&(this.checker=e)}function dBe(e,t){this.flags=t,x.isDebugging&&(this.checker=e)}function roe(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function uBe(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function pBe(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function fBe(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(i=>i)}function ioe(e){koe.push(e),e(sd)}function ooe(e){Object.assign(sd,e),gn(koe,t=>t(sd))}function tg(e,t){return e.replace(/{(\d+)}/g,(r,i)=>""+x.checkDefined(t[+i]))}function aoe(e){q6=e}function soe(e){!q6&&e&&(q6=e())}function wo(e){return q6&&q6[e.key]||e.message}function yR(e,t,r,i,o,...s){r+i>t.length&&(i=t.length-r),Kre(t,r,i);let l=wo(o);return gt(s)&&(l=tg(l,s)),{file:void 0,start:r,length:i,messageText:l,category:o.category,code:o.code,reportsUnnecessary:o.reportsUnnecessary,fileName:e}}function mBe(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function iSe(e,t){let r=t.fileName||"",i=t.text.length;x.assertEqual(e.fileName,r),x.assertLessThanOrEqual(e.start,i),x.assertLessThanOrEqual(e.start+e.length,i);let o={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){o.relatedInformation=[];for(let s of e.relatedInformation)mBe(s)&&s.fileName===r?(x.assertLessThanOrEqual(s.start,i),x.assertLessThanOrEqual(s.start+s.length,i),o.relatedInformation.push(iSe(s,t))):o.relatedInformation.push(s)}return o}function wI(e,t){let r=[];for(let i of e)r.push(iSe(i,t));return r}function Qc(e,t,r,i,...o){Kre(e.text,t,r);let s=wo(i);return gt(o)&&(s=tg(s,o)),{file:e,start:t,length:r,messageText:s,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function nU(e,...t){let r=wo(e);return gt(t)&&(r=tg(r,t)),r}function jl(e,...t){let r=wo(e);return gt(t)&&(r=tg(r,t)),{file:void 0,start:void 0,length:void 0,messageText:r,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function S6(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}}function zo(e,t,...r){let i=wo(t);return gt(r)&&(i=tg(i,r)),{messageText:i,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function loe(e,t){let r=e;for(;r.next;)r=r.next[0];r.next=[t]}function oSe(e){return e.file?e.file.path:void 0}function FN(e,t){return T6(e,t)||_Be(e,t)||0}function T6(e,t){return Vd(oSe(e),oSe(t))||Zs(e.start,t.start)||Zs(e.length,t.length)||Zs(e.code,t.code)||aSe(e.messageText,t.messageText)||0}function _Be(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?Zs(e.relatedInformation.length,t.relatedInformation.length)||gn(e.relatedInformation,(r,i)=>{let o=t.relatedInformation[i];return FN(r,o)})||0:e.relatedInformation?-1:1}function aSe(e,t){if(typeof e=="string"&&typeof t=="string")return Vd(e,t);if(typeof e=="string")return-1;if(typeof t=="string")return 1;let r=Vd(e.messageText,t.messageText);if(r)return r;if(!e.next&&!t.next)return 0;if(!e.next)return-1;if(!t.next)return 1;let i=Math.min(e.next.length,t.next.length);for(let o=0;ot.next.length?1:0}function ik(e){return e===4||e===2||e===1||e===6?1:0}function sSe(e){if(e.transformFlags&2)return au(e)||J0(e)?e:Go(e,sSe)}function hBe(e){return e.isDeclarationFile?void 0:sSe(e)}function gBe(e){return(e.impliedNodeFormat===99||bc(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function ok(e){switch(xU(e)){case 3:return o=>{o.externalModuleIndicator=Xk(o)||!o.isDeclarationFile||void 0};case 1:return o=>{o.externalModuleIndicator=Xk(o)};case 2:let t=[Xk];(e.jsx===4||e.jsx===5)&&t.push(hBe),t.push(gBe);let r=jm(...t);return o=>void(o.externalModuleIndicator=r(o))}}function Xvt(e){return e}function A6(e){return e>=5&&e<=99}function I6(e){switch(Ld(e)){case 0:case 4:case 3:return!1}return!0}function rU(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function coe(e){return e.allowUnreachableCode===!1}function doe(e){return e.allowUnusedLabels===!1}function OI(e){return e>=3&&e<=99||e===100}function cu(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function uoe(e){return e.useDefineForClassFields!==!1&&ns(e)>=9}function poe(e,t){return Gx(t,e,KH)}function foe(e,t){return Gx(t,e,JH)}function moe(e,t){return Gx(t,e,qH)}function x6(e,t){return t.strictFlag?cu(e,t.name):t.allowJsFlag?Vv(e):e[t.name]}function R6(e){let t=e.jsx;return t===2||t===4||t===5}function D6(e,t){let r=t?.pragmas.get("jsximportsource"),i=To(r)?r[r.length-1]:r;return e.jsx===4||e.jsx===5||e.jsxImportSource||i?i?.arguments.factory||e.jsxImportSource||"react":void 0}function C6(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function iU(e){let t=!1;for(let r=0;ro,getSymlinkedDirectories:()=>r,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(d,p)=>(o||(o=new Map)).set(d,p),setSymlinkedDirectory:(d,p)=>{let h=tl(d,e,t);JN(h)||(h=Bc(h),p!==!1&&!r?.has(h)&&(i||(i=qp())).add(p.realPath,d),(r||(r=new Map)).set(h,p))},setSymlinksFromResolutions(d,p,h){x.assert(!s),s=!0,d(m=>l(this,m.resolvedModule)),p(m=>l(this,m.resolvedTypeReferenceDirective)),h.forEach(m=>l(this,m.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>s};function l(d,p){if(!p||!p.originalPath||!p.resolvedFileName)return;let{resolvedFileName:h,originalPath:m}=p;d.setSymlinkedFile(tl(m,e,t),h);let[y,E]=yBe(h,m,e,t)||Xe;y&&E&&d.setSymlinkedDirectory(E,{real:Bc(y),realPath:Bc(tl(y,e,t))})}}function yBe(e,t,r,i){let o=zc(ho(e,r)),s=zc(ho(t,r)),l=!1;for(;o.length>=2&&s.length>=2&&!lSe(o[o.length-2],i)&&!lSe(s[s.length-2],i)&&i(o[o.length-1])===i(s[s.length-1]);)o.pop(),s.pop(),l=!0;return l?[Tv(o),Tv(s)]:void 0}function lSe(e,t){return e!==void 0&&(t(e)==="node_modules"||ao(e,"@"))}function vBe(e){return oV(e.charCodeAt(0))?e.slice(1):void 0}function aU(e,t,r){let i=JG(e,t,r);return i===void 0?void 0:vBe(i)}function cSe(e){return e.replace(RU,bBe)}function bBe(e){return"\\"+e}function zN(e,t,r){let i=N6(e,t,r);return!i||!i.length?void 0:`^(${i.map(l=>`(${l})`).join("|")})${r==="exclude"?"($|/)":"$"}`}function N6(e,t,r){if(!(e===void 0||e.length===0))return va(e,i=>i&&P6(i,t,r,NU[r]))}function sU(e){return!/[.*?]/.test(e)}function _oe(e,t,r){let i=e&&P6(e,t,r,NU[r]);return i&&`^(${i})${r==="exclude"?"($|/)":"$"}`}function P6(e,t,r,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:o,replaceWildcardCharacter:s}=NU[r]){let l="",d=!1,p=wL(e,t),h=Ja(p);if(r!=="exclude"&&h==="**")return;p[0]=Xb(p[0]),sU(h)&&p.push("**","*");let m=0;for(let y of p){if(y==="**")l+=o;else if(r==="directories"&&(l+="(",m++),d&&(l+=nl),r!=="exclude"){let E="";y.charCodeAt(0)===42?(E+="([^./]"+i+")?",y=y.substr(1)):y.charCodeAt(0)===63&&(E+="[^./]",y=y.substr(1)),E+=y.replace(RU,s),E!==y&&(l+=CU),l+=E}else l+=y.replace(RU,s);d=!0}for(;m>0;)l+=")?",m--;return l}function hoe(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function M6(e,t,r,i,o){e=ma(e),o=ma(o);let s=Yr(o,e);return{includeFilePatterns:mn(N6(r,s,"files"),l=>`^${l}$`),includeFilePattern:zN(r,s,"files"),includeDirectoryPattern:zN(r,s,"directories"),excludePattern:zN(t,s,"exclude"),basePaths:EBe(e,r,i)}}function zv(e,t){return new RegExp(e,t?"":"i")}function lU(e,t,r,i,o,s,l,d,p){e=ma(e),s=ma(s);let h=M6(e,r,i,o,s),m=h.includeFilePatterns&&h.includeFilePatterns.map(w=>zv(w,o)),y=h.includeDirectoryPattern&&zv(h.includeDirectoryPattern,o),E=h.excludePattern&&zv(h.excludePattern,o),S=m?m.map(()=>[]):[[]],A=new Map,N=Nd(o);for(let w of h.basePaths)D(w,Yr(s,w),l);return pm(S);function D(w,j,K){let Y=N(p(j));if(A.has(Y))return;A.set(Y,!0);let{files:B,directories:ce}=d(w);for(let z of ZS(B,Vd)){let Z=Yr(w,z),me=Yr(j,z);if(!(t&&!bc(Z,t))&&!(E&&E.test(me)))if(!m)S[0].push(Z);else{let ge=Kl(m,q=>q.test(me));ge!==-1&&S[ge].push(Z)}}if(!(K!==void 0&&(K--,K===0)))for(let z of ZS(ce,Vd)){let Z=Yr(w,z),me=Yr(j,z);(!y||y.test(me))&&(!E||!E.test(me))&&D(Z,me,K)}}}function EBe(e,t,r){let i=[e];if(t){let o=[];for(let s of t){let l=cp(s)?s:ma(Yr(e,s));o.push(SBe(l))}o.sort(Ex(!r));for(let s of o)oo(i,l=>!mm(l,s,e,!r))&&i.push(s)}return i}function SBe(e){let t=Ute(e,RSe);return t<0?mI(e)?Xb(oi(e)):e:e.substring(0,e.lastIndexOf(nl,t))}function L6(e,t){return t||k6(e)||3}function k6(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}function BN(e,t){let r=e&&Vv(e);if(!t||t.length===0)return r?$6:TR;let i=r?$6:TR,o=pm(i);return[...i,...to(t,l=>l.scriptKind===7||r&&TBe(l.scriptKind)&&!o.includes(l.extension)?[l.extension]:void 0)]}function ak(e,t){return!e||!mE(e)?t:t===$6?NSe:t===TR?DSe:[...t,[".json"]]}function TBe(e){return e===1||e===2}function O0(e){return gt(AR,t=>Sl(e,t))}function WI(e){return gt(PU,t=>Sl(e,t))}function goe({imports:e},t=jm(O0,WI)){return Wl(e,({text:r})=>Lp(r)&&!bc(r,vk)?t(r):void 0)||!1}function yoe(e,t,r,i){let o=du(r),s=3<=o&&o<=99;if(e==="js"||t===99&&s)return XR(r)&&l()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!XR(r))return goe(i)?2:0;return l();function l(){let d=!1,p=i.imports.length?i.imports:su(i)?ABe(i).map(h=>h.arguments[0]):Xe;for(let h of p)if(Lp(h.text)){if(s&&t===1&&lJ(i,h,r)===99||bc(h.text,vk))continue;if(WI(h.text))return 3;O0(h.text)&&(d=!0)}return d?2:0}}function ABe(e){let t=0,r;for(let i of e.statements){if(t>3)break;pj(i)?r=Eo(r,i.declarationList.declarations.map(o=>o.initializer)):ed(i)&&bu(i.expression,!0)?r=Tn(r,i.expression):t++}return r||Xe}function voe(e,t,r){if(!e)return!1;let i=BN(t,r);for(let o of pm(ak(t,i)))if(Sl(e,o))return!0;return!1}function dSe(e){let t=e.match(/\//g);return t?t.length:0}function sk(e,t){return Zs(dSe(e),dSe(t))}function Eu(e){for(let t of kU){let r=boe(e,t);if(r!==void 0)return r}return e}function boe(e,t){return Sl(e,t)?lk(e,t):void 0}function lk(e,t){return e.substring(0,e.length-t.length)}function pE(e,t){return OL(e,t,kU,!1)}function vR(e){let t=e.indexOf("*");return t===-1?e:e.indexOf("*",t+1)!==-1?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function w6(e){return to(Vh(e),t=>vR(t))}function Km(e){return!(e>=0)}function O6(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||ao(e,".d.")&&El(e,".ts")}function GN(e){return O6(e)||e===".json"}function VN(e){let t=Wg(e);return t!==void 0?t:x.fail(`File ${e} has unknown extension.`)}function uSe(e){return Wg(e)!==void 0}function Wg(e){return Vr(kU,t=>Sl(e,t))}function ck(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function cU(e,t){let r=[];for(let i of e){if(i===t)return t;No(i)||r.push(i)}return KG(r,i=>i,t)}function dU(e,t){let r=e.indexOf(t);return x.assert(r!==-1),e.slice(r)}function Pa(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),x.assert(e.relatedInformation!==Xe,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function Eoe(e,t){x.assert(e.length!==0);let r=t(e[0]),i=r;for(let o=1;oi&&(i=s)}return{min:r,max:i}}function uU(e){return{pos:oE(e),end:e.end}}function pU(e,t){let r=t.pos-1,i=Math.min(e.text.length,Na(e.text,t.end)+1);return{pos:r,end:i}}function jN(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)}function W6(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&Qte(e,t,W6)}function UN(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:let h=e.length-1,m=0;for(;e.charCodeAt(m)===48;)m++;return e.slice(m,h)||"0"}let r=2,i=e.length-1,o=(i-r)*t,s=new Uint16Array((o>>>4)+(o&15?1:0));for(let h=i-1,m=0;h>=r;h--,m+=t){let y=m>>>4,E=e.charCodeAt(h),A=(E<=57?E-48:10+E-(E<=70?65:97))<<(m&15);s[y]|=A;let N=A>>>16;N&&(s[y+1]|=N)}let l="",d=s.length-1,p=!0;for(;p;){let h=0;p=!1;for(let m=d;m>=0;m--){let y=h<<16|s[m],E=y/10|0;s[m]=E,h=y-E*10,E&&!p&&(d=m,p=!0)}l=h+l}return l}function W0({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function Soe(e){if(F6(e,!1))return fU(e)}function fU(e){let t=e.startsWith("-"),r=UN(`${t?e.slice(1):e}n`);return{negative:t,base10Value:r}}function F6(e,t){if(e==="")return!1;let r=xy(99,!1),i=!0;r.setOnError(()=>i=!1),r.setText(e+"n");let o=r.scan(),s=o===41;s&&(o=r.scan());let l=r.getTokenFlags();return i&&o===10&&r.getTokenEnd()===e.length+1&&!(l&512)&&(!t||e===W0({negative:s,base10Value:UN(r.getTokenValue())}))}function fE(e){return!!(e.flags&33554432)||jF(e)||RBe(e)||xBe(e)||!(Xh(e)||IBe(e))}function IBe(e){return Fe(e)&&Zu(e.parent)&&e.parent.name===e}function xBe(e){for(;e.kind===80||e.kind===211;)e=e.parent;if(e.kind!==167)return!1;if($r(e.parent,64))return!0;let t=e.parent.parent.kind;return t===264||t===187}function RBe(e){if(e.kind!==80)return!1;let t=Fn(e.parent,r=>{switch(r.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}});return t?.token===119||t?.parent.kind===264}function Toe(e){return If(e)&&Fe(e.typeName)}function Aoe(e,t=Ty){if(e.length<2)return!0;let r=e[0];for(let i=1,o=e.length;ie.includes(t))}function Roe(e){if(!e.parent)return;switch(e.kind){case 168:let{parent:r}=e;return r.kind===195?void 0:r.typeParameters;case 169:return e.parent.parameters;case 204:return e.parent.templateSpans;case 239:return e.parent.templateSpans;case 170:{let{parent:i}=e;return GT(i)?i.modifiers:void 0}case 298:return e.parent.heritageClauses}let{parent:t}=e;if(Bx(e))return FT(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return lT(e)?t.members:void 0;case 192:case 193:return t.types;case 189:case 209:case 361:case 275:case 279:return t.elements;case 210:case 292:return t.properties;case 213:case 214:return ji(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 284:case 288:return c2(e)?t.children:void 0;case 286:case 285:return ji(e)?t.typeArguments:void 0;case 241:case 296:case 297:case 268:return t.statements;case 269:return t.clauses;case 263:case 231:return $c(e)?t.members:void 0;case 266:return Y0(e)?t.members:void 0;case 312:return t.statements}}function z6(e){if(!e.typeParameters){if(gt(e.parameters,t=>!yd(t)))return!0;if(e.kind!==219){let t=Xc(e.parameters);if(!(t&&L0(t)))return!0}}return!1}function qN(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function Doe(e){return e.kind===260&&e.parent.kind===299}function F0(e){return e.kind===218||e.kind===219}function z0(e){return e.replace(/\$/gm,()=>"\\$")}function ng(e){return(+e).toString()===e}function B6(e,t,r,i,o){let s=o&&e==="new";return!s&&Yp(e,t)?L.createIdentifier(e):!i&&!s&&ng(e)&&+e>=0?L.createNumericLiteral(+e):L.createStringLiteral(e,!!r)}function XN(e){return!!(e.flags&262144&&e.isThisType)}function G6(e){let t=0,r=0,i=0,o=0,s;(h=>{h[h.BeforeNodeModules=0]="BeforeNodeModules",h[h.NodeModules=1]="NodeModules",h[h.Scope=2]="Scope",h[h.PackageContent=3]="PackageContent"})(s||(s={}));let l=0,d=0,p=0;for(;d>=0;)switch(l=d,d=e.indexOf("/",l+1),p){case 0:e.indexOf(Eh,l)===l&&(t=l,r=d,p=1);break;case 1:case 2:p===1&&e.charAt(l+1)==="@"?p=2:(i=d,p=3);break;case 3:e.indexOf(Eh,l)===l?p=1:p=3;break}return o=l,p>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:o}:void 0}function pSe(e){var t;return e.kind===348?(t=e.typeExpression)==null?void 0:t.type:e.type}function SR(e){switch(e.kind){case 168:case 263:case 264:case 265:case 266:case 353:case 345:case 347:return!0;case 273:return e.isTypeOnly;case 276:case 281:return e.parent.parent.isTypeOnly;default:return!1}}function dk(e){return hE(e)||Ml(e)||Ec(e)||Sc(e)||pu(e)||SR(e)||ql(e)&&!T0(e)&&!E_(e)}function uk(e){if(!rN(e))return!1;let{isBracketed:t,typeExpression:r}=e;return t||!!r&&r.type.kind===323}function _U(e,t){if(e.length===0)return!1;let r=e.charCodeAt(0);return r===35?e.length>1&&Uh(e.charCodeAt(1),t):Uh(r,t)}function Coe(e){var t;return((t=jU(e))==null?void 0:t.kind)===0}function pk(e){return ir(e)&&(e.type&&e.type.kind===323||kx(e).some(({isBracketed:t,typeExpression:r})=>t||!!r&&r.type.kind===323))}function YN(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||pk(e);case 355:case 348:return uk(e);default:return!1}}function Noe(e){let t=e.kind;return(t===211||t===212)&&t1(e.expression)}function hU(e){return ir(e)&&Ou(e)&&kp(e)&&!!EV(e)}function gU(e){return x.checkDefined(V6(e))}function V6(e){let t=EV(e);return t&&t.typeExpression&&t.typeExpression.type}function $N(e){return Fe(e)?e.escapedText:FI(e)}function fk(e){return Fe(e)?gr(e):QN(e)}function Poe(e){let t=e.kind;return t===80||t===295}function FI(e){return`${e.namespace.escapedText}:${gr(e.name)}`}function QN(e){return`${gr(e.namespace)}:${gr(e.name)}`}function yU(e){return Fe(e)?gr(e):QN(e)}function Qf(e){return!!(e.flags&8576)}function Zf(e){return e.flags&8192?e.escapedName:e.flags&384?pl(""+e.value):x.fail()}function j6(e){return!!e&&(kr(e)||Js(e)||dr(e))}function Moe(e){return e===void 0?!1:!!QR(e.attributes)}function zI(e,t){return PSe.call(e,"*",t)}function U6(e){return Fe(e.name)?e.name.escapedText:pl(e.name.text)}var H6,Gv,mk,K6,_k,J6,vU,bU,fSe,mSe,EU,_Se,hSe,SU,TU,AU,IU,gSe,ySe,vSe,bSe,ESe,Loe,SSe,TSe,ASe,ZN,xT,ISe,xSe,sd,koe,q6,fc,ns,Ld,du,xU,em,mh,RT,X6,Y6,mE,Af,B0,eP,hk,Vv,tP,RU,RSe,DU,CU,woe,Ooe,Woe,NU,TR,PU,DSe,CSe,MU,AR,$6,NSe,gk,yk,vk,LU,kU,Q6,PSe,CBe=bt({"src/compiler/utilities.ts"(){"use strict";ea(),H6=[],Gv="tslib",mk=160,K6=1e6,_k=M7e(),J6=vu(()=>new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast"]})),Iterator:new Map(Object.entries({es2015:Xe})),AsyncIterator:new Map(Object.entries({es2015:Xe})),Atomics:new Map(Object.entries({es2017:Xe})),SharedArrayBuffer:new Map(Object.entries({es2017:Xe})),AsyncIterable:new Map(Object.entries({es2018:Xe})),AsyncIterableIterator:new Map(Object.entries({es2018:Xe})),AsyncGenerator:new Map(Object.entries({es2018:Xe})),AsyncGeneratorFunction:new Map(Object.entries({es2018:Xe})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get","getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:Xe,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"]})),BigInt:new Map(Object.entries({es2020:Xe})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),BigInt64Array:new Map(Object.entries({es2020:Xe,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:Xe,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),vU=(e=>(e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",e))(vU||{}),bU=/^(\/\/\/\s*/,fSe=/^(\/\/\/\s*/,mSe=/^(\/\/\/\s*/,EU=/^(\/\/\/\s*/,_Se=/^\/\/\/\s*/,hSe=/^(\/\/\/\s*/,SU=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(SU||{}),TU=(e=>(e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator",e))(TU||{}),AU=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(AU||{}),IU=(e=>(e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",e))(IU||{}),gSe=/\$\{/g,ySe=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,vSe=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,bSe=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,ESe=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"})),Loe=/[^\u0000-\u007F]/g,SSe=/["\u0000-\u001f\u2028\u2029\u0085]/g,TSe=/['\u0000-\u001f\u2028\u2029\u0085]/g,ASe=new Map(Object.entries({'"':""","'":"'"})),ZN=[""," "],xT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ISe=`\r -`,xSe=` -`,sd={getNodeConstructor:()=>roe,getTokenConstructor:()=>uBe,getIdentifierConstructor:()=>pBe,getPrivateIdentifierConstructor:()=>roe,getSourceFileConstructor:()=>roe,getSymbolConstructor:()=>lBe,getTypeConstructor:()=>cBe,getSignatureConstructor:()=>dBe,getSourceMapSourceConstructor:()=>fBe},koe=[],fc={target:{dependencies:["module"],computeValue:e=>e.target??(e.module===100&&9||e.module===199&&99||1)},module:{dependencies:["target"],computeValue:e=>typeof e.module=="number"?e.module:fc.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(fc.module.computeValue(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1;break}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>e.moduleDetection||(fc.module.computeValue(e)===100||fc.module.computeValue(e)===199?3:2)},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!!(e.isolatedModules||e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(fc.module.computeValue(e)){case 100:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:fc.esModuleInterop.computeValue(e)||fc.module.computeValue(e)===4||fc.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{let t=fc.moduleResolution.computeValue(e);if(!OI(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{let t=fc.moduleResolution.computeValue(e);if(!OI(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>e.resolveJsonModule!==void 0?e.resolveJsonModule:fc.moduleResolution.computeValue(e)===100},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||fc.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&fc.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>e.allowJs===void 0?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>e.useDefineForClassFields===void 0?fc.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>cu(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>cu(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>cu(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>cu(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>cu(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>cu(e,"strictPropertyInitialization")},alwaysStrict:{dependencies:["strict"],computeValue:e=>cu(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>cu(e,"useUnknownInCatchVariables")}},ns=fc.target.computeValue,Ld=fc.module.computeValue,du=fc.moduleResolution.computeValue,xU=fc.moduleDetection.computeValue,em=fc.isolatedModules.computeValue,mh=fc.esModuleInterop.computeValue,RT=fc.allowSyntheticDefaultImports.computeValue,X6=fc.resolvePackageJsonExports.computeValue,Y6=fc.resolvePackageJsonImports.computeValue,mE=fc.resolveJsonModule.computeValue,Af=fc.declaration.computeValue,B0=fc.preserveConstEnums.computeValue,eP=fc.incremental.computeValue,hk=fc.declarationMap.computeValue,Vv=fc.allowJs.computeValue,tP=fc.useDefineForClassFields.computeValue,RU=/[^\w\s/]/g,RSe=[42,63],DU=["node_modules","bower_components","jspm_packages"],CU=`(?!(${DU.join("|")})(/|$))`,woe={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${CU}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>hoe(e,woe.singleAsteriskRegexFragment)},Ooe={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${CU}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>hoe(e,Ooe.singleAsteriskRegexFragment)},Woe={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>hoe(e,Woe.singleAsteriskRegexFragment)},NU={files:woe,directories:Ooe,exclude:Woe},TR=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],PU=pm(TR),DSe=[...TR,[".json"]],CSe=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],MU=[[".js",".jsx"],[".mjs"],[".cjs"]],AR=pm(MU),$6=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],NSe=[...$6,[".json"]],gk=[".d.ts",".d.cts",".d.mts"],yk=[".ts",".cts",".mts",".tsx"],vk=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],LU=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(LU||{}),kU=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],Q6={files:Xe,directories:Xe},PSe=String.prototype.replace}});function Foe(){let e,t,r,i,o;return{createBaseSourceFileNode:s,createBaseIdentifierNode:l,createBasePrivateIdentifierNode:d,createBaseTokenNode:p,createBaseNode:h};function s(m){return new(o||(o=sd.getSourceFileConstructor()))(m,-1,-1)}function l(m){return new(r||(r=sd.getIdentifierConstructor()))(m,-1,-1)}function d(m){return new(i||(i=sd.getPrivateIdentifierConstructor()))(m,-1,-1)}function p(m){return new(t||(t=sd.getTokenConstructor()))(m,-1,-1)}function h(m){return new(e||(e=sd.getNodeConstructor()))(m,-1,-1)}}var NBe=bt({"src/compiler/factory/baseNodeFactory.ts"(){"use strict";ea()}});function zoe(e){let t,r;return{getParenthesizeLeftSideOfBinaryForOperator:i,getParenthesizeRightSideOfBinaryForOperator:o,parenthesizeLeftSideOfBinary:h,parenthesizeRightSideOfBinary:m,parenthesizeExpressionOfComputedPropertyName:y,parenthesizeConditionOfConditionalExpression:E,parenthesizeBranchOfConditionalExpression:S,parenthesizeExpressionOfExportDefault:A,parenthesizeExpressionOfNew:N,parenthesizeLeftSideOfAccess:D,parenthesizeOperandOfPostfixUnary:w,parenthesizeOperandOfPrefixUnary:j,parenthesizeExpressionsOfCommaDelimitedList:K,parenthesizeExpressionForDisallowedComma:Y,parenthesizeExpressionOfExpressionStatement:B,parenthesizeConciseBodyOfArrowFunction:ce,parenthesizeCheckTypeOfConditionalType:z,parenthesizeExtendsTypeOfConditionalType:Z,parenthesizeConstituentTypesOfUnionType:ge,parenthesizeConstituentTypeOfUnionType:me,parenthesizeConstituentTypesOfIntersectionType:J,parenthesizeConstituentTypeOfIntersectionType:q,parenthesizeOperandOfTypeOperator:re,parenthesizeOperandOfReadonlyTypeOperator:pe,parenthesizeNonArrayTypeOfPostfixType:xe,parenthesizeElementTypesOfTupleType:fe,parenthesizeElementTypeOfTupleType:ne,parenthesizeTypeOfOptionalType:Ce,parenthesizeTypeArguments:Ae,parenthesizeLeadingTypeArgument:Ge};function i(De){t||(t=new Map);let Le=t.get(De);return Le||(Le=Et=>h(De,Et),t.set(De,Le)),Le}function o(De){r||(r=new Map);let Le=r.get(De);return Le||(Le=Et=>m(De,void 0,Et),r.set(De,Le)),Le}function s(De,Le,Et,be){let ze=q2(226,De),tt=Pj(226,De),Wt=gm(Le);if(!Et&&Le.kind===219&&ze>3)return!0;let _t=IN(Wt);switch(Zs(_t,ze)){case-1:return!(!Et&&tt===1&&Le.kind===229);case 1:return!1;case 0:if(Et)return tt===1;if(dr(Wt)&&Wt.operatorToken.kind===De){if(l(De))return!1;if(De===40){let pt=be?d(be):0;if(iN(pt)&&pt===d(Wt))return!1}}return Nj(Wt)===0}}function l(De){return De===42||De===52||De===51||De===53||De===28}function d(De){if(De=gm(De),iN(De.kind))return De.kind;if(De.kind===226&&De.operatorToken.kind===40){if(De.cachedLiteralKind!==void 0)return De.cachedLiteralKind;let Le=d(De.left),Et=iN(Le)&&Le===d(De.right)?Le:0;return De.cachedLiteralKind=Et,Et}return 0}function p(De,Le,Et,be){return gm(Le).kind===217?Le:s(De,Le,Et,be)?e.createParenthesizedExpression(Le):Le}function h(De,Le){return p(De,Le,!0)}function m(De,Le,Et){return p(De,Et,!1,Le)}function y(De){return gP(De)?e.createParenthesizedExpression(De):De}function E(De){let Le=q2(227,58),Et=gm(De),be=IN(Et);return Zs(be,Le)!==1?e.createParenthesizedExpression(De):De}function S(De){let Le=gm(De);return gP(Le)?e.createParenthesizedExpression(De):De}function A(De){let Le=gm(De),Et=gP(Le);if(!Et)switch(gR(Le,!1).kind){case 231:case 218:Et=!0}return Et?e.createParenthesizedExpression(De):De}function N(De){let Le=gR(De,!0);switch(Le.kind){case 213:return e.createParenthesizedExpression(De);case 214:return Le.arguments?De:e.createParenthesizedExpression(De)}return D(De)}function D(De,Le){let Et=gm(De);return Yu(Et)&&(Et.kind!==214||Et.arguments)&&(Le||!Ud(Et))?De:at(e.createParenthesizedExpression(De),De)}function w(De){return Yu(De)?De:at(e.createParenthesizedExpression(De),De)}function j(De){return kV(De)?De:at(e.createParenthesizedExpression(De),De)}function K(De){let Le=Pc(De,Y);return at(e.createNodeArray(Le,De.hasTrailingComma),De)}function Y(De){let Le=gm(De),Et=IN(Le),be=q2(226,28);return Et>be?De:at(e.createParenthesizedExpression(De),De)}function B(De){let Le=gm(De);if(ia(Le)){let be=Le.expression,ze=gm(be).kind;if(ze===218||ze===219){let tt=e.updateCallExpression(Le,at(e.createParenthesizedExpression(be),be),Le.typeArguments,Le.arguments);return e.restoreOuterExpressions(De,tt,8)}}let Et=gR(Le,!1).kind;return Et===210||Et===218?at(e.createParenthesizedExpression(De),De):De}function ce(De){return!Ko(De)&&(gP(De)||gR(De,!1).kind===210)?at(e.createParenthesizedExpression(De),De):De}function z(De){switch(De.kind){case 184:case 185:case 194:return e.createParenthesizedType(De)}return De}function Z(De){switch(De.kind){case 194:return e.createParenthesizedType(De)}return De}function me(De){switch(De.kind){case 192:case 193:return e.createParenthesizedType(De)}return z(De)}function ge(De){return e.createNodeArray(Pc(De,me))}function q(De){switch(De.kind){case 192:case 193:return e.createParenthesizedType(De)}return me(De)}function J(De){return e.createNodeArray(Pc(De,q))}function re(De){switch(De.kind){case 193:return e.createParenthesizedType(De)}return q(De)}function pe(De){switch(De.kind){case 198:return e.createParenthesizedType(De)}return re(De)}function xe(De){switch(De.kind){case 195:case 198:case 186:return e.createParenthesizedType(De)}return re(De)}function fe(De){return e.createNodeArray(Pc(De,ne))}function ne(De){return he(De)?e.createParenthesizedType(De):De}function he(De){return LR(De)?De.postfix:DR(De)||hh(De)||RR(De)||PT(De)?he(De.type):ZI(De)?he(De.falseType):Hv(De)||QI(De)?he(Ja(De.types)):CT(De)?!!De.typeParameter.constraint&&he(De.typeParameter.constraint):!1}function Ce(De){return he(De)?e.createParenthesizedType(De):xe(De)}function Ge(De){return ure(De)&&De.typeParameters?e.createParenthesizedType(De):De}function ve(De,Le){return Le===0?Ge(De):De}function Ae(De){if(gt(De))return e.createNodeArray(Pc(De,ve))}}var wU,PBe=bt({"src/compiler/factory/parenthesizerRules.ts"(){"use strict";ea(),wU={getParenthesizeLeftSideOfBinaryForOperator:e=>Qs,getParenthesizeRightSideOfBinaryForOperator:e=>Qs,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:Qs,parenthesizeConditionOfConditionalExpression:Qs,parenthesizeBranchOfConditionalExpression:Qs,parenthesizeExpressionOfExportDefault:Qs,parenthesizeExpressionOfNew:e=>na(e,Yu),parenthesizeLeftSideOfAccess:e=>na(e,Yu),parenthesizeOperandOfPostfixUnary:e=>na(e,Yu),parenthesizeOperandOfPrefixUnary:e=>na(e,kV),parenthesizeExpressionsOfCommaDelimitedList:e=>na(e,v0),parenthesizeExpressionForDisallowedComma:Qs,parenthesizeExpressionOfExpressionStatement:Qs,parenthesizeConciseBodyOfArrowFunction:Qs,parenthesizeCheckTypeOfConditionalType:Qs,parenthesizeExtendsTypeOfConditionalType:Qs,parenthesizeConstituentTypesOfUnionType:e=>na(e,v0),parenthesizeConstituentTypeOfUnionType:Qs,parenthesizeConstituentTypesOfIntersectionType:e=>na(e,v0),parenthesizeConstituentTypeOfIntersectionType:Qs,parenthesizeOperandOfTypeOperator:Qs,parenthesizeOperandOfReadonlyTypeOperator:Qs,parenthesizeNonArrayTypeOfPostfixType:Qs,parenthesizeElementTypesOfTupleType:e=>na(e,v0),parenthesizeElementTypeOfTupleType:Qs,parenthesizeTypeOfOptionalType:Qs,parenthesizeTypeArguments:e=>e&&na(e,v0),parenthesizeLeadingTypeArgument:Qs}}});function Boe(e){return{convertToFunctionBlock:t,convertToFunctionExpression:r,convertToClassExpression:i,convertToArrayAssignmentElement:o,convertToObjectAssignmentElement:s,convertToAssignmentPattern:l,convertToObjectAssignmentPattern:d,convertToArrayAssignmentPattern:p,convertToAssignmentElementTarget:h};function t(m,y){if(Ko(m))return m;let E=e.createReturnStatement(m);at(E,m);let S=e.createBlock([E],y);return at(S,m),S}function r(m){var y;if(!m.body)return x.fail("Cannot convert a FunctionDeclaration without a body");let E=e.createFunctionExpression((y=y0(m))==null?void 0:y.filter(S=>!JI(S)&&!w4(S)),m.asteriskToken,m.name,m.typeParameters,m.parameters,m.type,m.body);return xr(E,m),at(E,m),nP(m)&&t4(E,!0),E}function i(m){var y;let E=e.createClassExpression((y=m.modifiers)==null?void 0:y.filter(S=>!JI(S)&&!w4(S)),m.name,m.typeParameters,m.heritageClauses,m.members);return xr(E,m),at(E,m),nP(m)&&t4(E,!0),E}function o(m){if(Xa(m)){if(m.dotDotDotToken)return x.assertNode(m.name,Fe),xr(at(e.createSpreadElement(m.name),m),m);let y=h(m.name);return m.initializer?xr(at(e.createAssignment(y,m.initializer),m),m):y}return na(m,ht)}function s(m){if(Xa(m)){if(m.dotDotDotToken)return x.assertNode(m.name,Fe),xr(at(e.createSpreadAssignment(m.name),m),m);if(m.propertyName){let y=h(m.name);return xr(at(e.createPropertyAssignment(m.propertyName,m.initializer?e.createAssignment(y,m.initializer):y),m),m)}return x.assertNode(m.name,Fe),xr(at(e.createShorthandPropertyAssignment(m.name,m.initializer),m),m)}return na(m,Pg)}function l(m){switch(m.kind){case 207:case 209:return p(m);case 206:case 210:return d(m)}}function d(m){return tm(m)?xr(at(e.createObjectLiteralExpression(mn(m.elements,s)),m),m):na(m,Ma)}function p(m){return V0(m)?xr(at(e.createArrayLiteralExpression(mn(m.elements,o)),m),m):na(m,uu)}function h(m){return Qo(m)?l(m):na(m,ht)}}var OU,MBe=bt({"src/compiler/factory/nodeConverters.ts"(){"use strict";ea(),OU={convertToFunctionBlock:Ho,convertToFunctionExpression:Ho,convertToClassExpression:Ho,convertToArrayAssignmentElement:Ho,convertToObjectAssignmentElement:Ho,convertToAssignmentPattern:Ho,convertToObjectAssignmentPattern:Ho,convertToArrayAssignmentPattern:Ho,convertToAssignmentElementTarget:Ho}}});function MSe(e){Voe.push(e)}function bk(e,t){let r=e&8?Qs:xr,i=vu(()=>e&1?wU:zoe(w)),o=vu(()=>e&2?OU:Boe(w)),s=oh(v=>(C,F)=>Ee(C,v,F)),l=oh(v=>C=>rt(v,C)),d=oh(v=>C=>zt(C,v)),p=oh(v=>()=>VD(v)),h=oh(v=>C=>mA(v,C)),m=oh(v=>(C,F)=>vS(v,C,F)),y=oh(v=>(C,F)=>jD(v,C,F)),E=oh(v=>(C,F)=>qs(v,C,F)),S=oh(v=>(C,F)=>jE(v,C,F)),A=oh(v=>(C,F,se)=>Lf(v,C,F,se)),N=oh(v=>(C,F,se)=>_b(v,C,F,se)),D=oh(v=>(C,F,se,Ke)=>hb(v,C,F,se,Ke)),w={get parenthesizer(){return i()},get converters(){return o()},baseFactory:t,flags:e,createNodeArray:j,createNumericLiteral:ce,createBigIntLiteral:z,createStringLiteral:me,createStringLiteralFromNode:ge,createRegularExpressionLiteral:q,createLiteralLikeNode:J,createIdentifier:xe,createTempVariable:fe,createLoopVariable:ne,createUniqueName:he,getGeneratedNameForNode:Ce,createPrivateIdentifier:ve,createUniquePrivateName:De,getGeneratedPrivateNameForNode:Le,createToken:be,createSuper:ze,createThis:tt,createNull:Wt,createTrue:_t,createFalse:Je,createModifier:pt,createModifiersFromModifierFlags:Zt,createQualifiedName:en,updateQualifiedName:Dn,createComputedPropertyName:Kn,updateComputedPropertyName:pn,createTypeParameterDeclaration:Xt,updateTypeParameterDeclaration:Kt,createParameterDeclaration:hi,updateParameterDeclaration:uo,createDecorator:Li,updateDecorator:So,createPropertySignature:Qn,updatePropertySignature:Ur,createPropertyDeclaration:on,updatePropertyDeclaration:Ye,createMethodSignature:Ot,updateMethodSignature:In,createMethodDeclaration:si,updateMethodDeclaration:yi,createConstructorDeclaration:vn,updateConstructorDeclaration:kn,createGetAccessorDeclaration:ct,updateGetAccessorDeclaration:lt,createSetAccessorDeclaration:ae,updateSetAccessorDeclaration:ke,createCallSignature:G,updateCallSignature:et,createConstructSignature:Tt,updateConstructSignature:He,createIndexSignature:ut,updateIndexSignature:Ft,createClassStaticBlockDeclaration:Io,updateClassStaticBlockDeclaration:ua,createTemplateLiteralTypeSpan:hn,updateTemplateLiteralTypeSpan:dn,createKeywordTypeNode:un,createTypePredicateNode:U,updateTypePredicateNode:Me,createTypeReferenceNode:Nt,updateTypeReferenceNode:k,createFunctionTypeNode:ie,updateFunctionTypeNode:H,createConstructorTypeNode:We,updateConstructorTypeNode:Dt,createTypeQueryNode:wn,updateTypeQueryNode:Bn,createTypeLiteralNode:gi,updateTypeLiteralNode:xi,createArrayTypeNode:er,updateArrayTypeNode:Fr,createTupleTypeNode:go,updateTupleTypeNode:Pi,createNamedTupleMember:Ri,updateNamedTupleMember:Kr,createOptionalTypeNode:xo,updateOptionalTypeNode:xn,createRestTypeNode:Ls,updateRestTypeNode:$l,createUnionTypeNode:Ws,updateUnionTypeNode:ml,createIntersectionTypeNode:cd,updateIntersectionTypeNode:mo,createConditionalTypeNode:la,updateConditionalTypeNode:dd,createInferTypeNode:bs,updateInferTypeNode:Ca,createImportTypeNode:ac,updateImportTypeNode:xl,createParenthesizedType:al,updateParenthesizedType:Lo,createThisTypeNode:tn,createTypeOperatorNode:Fs,updateTypeOperatorNode:nd,createIndexedAccessTypeNode:ud,updateIndexedAccessTypeNode:Ep,createMappedTypeNode:Rs,updateMappedTypeNode:Ac,createLiteralTypeNode:de,updateLiteralTypeNode:$,createTemplateLiteralType:ul,updateTemplateLiteralType:Nf,createObjectBindingPattern:Pe,updateObjectBindingPattern:yt,createArrayBindingPattern:cn,updateArrayBindingPattern:yr,createBindingElement:pr,updateBindingElement:zr,createArrayLiteralExpression:Di,updateArrayLiteralExpression:Cr,createObjectLiteralExpression:qo,updateObjectLiteralExpression:bl,createPropertyAccessExpression:e&4?(v,C)=>lr(zs(v,C),262144):zs,updatePropertyAccessExpression:hc,createPropertyAccessChain:e&4?(v,C,F)=>lr(ys(v,C,F),262144):ys,updatePropertyAccessChain:Kc,createElementAccessExpression:Oc,updateElementAccessExpression:im,createElementAccessChain:fu,updateElementAccessChain:Re,createCallExpression:Un,updateCallExpression:yo,createCallChain:Xo,updateCallChain:Zo,createNewExpression:Ql,updateNewExpression:gc,createTaggedTemplateExpression:sl,updateTaggedTemplateExpression:_l,createTypeAssertion:Gl,updateTypeAssertion:Zl,createParenthesizedExpression:Jc,updateParenthesizedExpression:lf,createFunctionExpression:Fu,updateFunctionExpression:xu,createArrowFunction:Pf,updateArrowFunction:z_,createDeleteExpression:Ah,updateDeleteExpression:Hg,createTypeOfExpression:Fd,updateTypeOfExpression:Kg,createVoidExpression:Sp,updateVoidExpression:lg,createAwaitExpression:zu,updateAwaitExpression:Q,createPrefixUnaryExpression:rt,updatePrefixUnaryExpression:wt,createPostfixUnaryExpression:zt,updatePostfixUnaryExpression:O,createBinaryExpression:Ee,updateBinaryExpression:Gt,createConditionalExpression:Zn,updateConditionalExpression:ii,createTemplateExpression:Xr,updateTemplateExpression:no,createTemplateHead:Tp,createTemplateMiddle:Bu,createTemplateTail:ob,createNoSubstitutionTemplateLiteral:ls,createTemplateLiteralLikeNode:Ic,createYieldExpression:Dm,updateYieldExpression:Cm,createSpreadElement:Ui,updateSpreadElement:Jg,createClassExpression:$y,updateClassExpression:Nm,createOmittedExpression:pS,createExpressionWithTypeArguments:fS,updateExpressionWithTypeArguments:cf,createAsExpression:B_,updateAsExpression:df,createNonNullExpression:qg,updateNonNullExpression:we,createSatisfiesExpression:qe,updateSatisfiesExpression:Pt,createNonNullChain:Bt,updateNonNullChain:_n,createMetaProperty:Jn,updateMetaProperty:fn,createTemplateSpan:qn,updateTemplateSpan:fi,createSemicolonClassElement:or,createBlock:ni,updateBlock:cr,createVariableStatement:Yo,updateVariableStatement:Ha,createEmptyStatement:$d,createExpressionStatement:fd,updateExpressionStatement:Xg,createIfStatement:LE,updateIfStatement:w1,createDoStatement:kE,updateDoStatement:kD,createWhileStatement:wD,updateWhileStatement:OD,createForStatement:oA,updateForStatement:mS,createForInStatement:O1,updateForInStatement:WD,createForOfStatement:W1,updateForOfStatement:F1,createContinueStatement:z1,updateContinueStatement:B1,createBreakStatement:aA,updateBreakStatement:G1,createReturnStatement:_S,updateReturnStatement:hS,createWithStatement:ab,updateWithStatement:sb,createSwitchStatement:cg,updateSwitchStatement:wE,createLabeledStatement:Qa,updateLabeledStatement:sA,createThrowStatement:FD,updateThrowStatement:OE,createTryStatement:Yg,updateTryStatement:Ih,createDebuggerStatement:Mf,createVariableDeclaration:Gu,updateVariableDeclaration:Ap,createVariableDeclarationList:np,updateVariableDeclarationList:Qy,createFunctionDeclaration:lA,updateFunctionDeclaration:zD,createClassDeclaration:lb,updateClassDeclaration:WE,createInterfaceDeclaration:j1,updateInterfaceDeclaration:yc,createTypeAliasDeclaration:Zy,updateTypeAliasDeclaration:U1,createEnumDeclaration:Zm,updateEnumDeclaration:cA,createModuleDeclaration:Ve,updateModuleDeclaration:e_,createModuleBlock:md,updateModuleBlock:FE,createCaseBlock:H1,updateCaseBlock:cb,createNamespaceExportDeclaration:ev,updateNamespaceExportDeclaration:tv,createImportEqualsDeclaration:Ka,updateImportEqualsDeclaration:t_,createImportDeclaration:dA,updateImportDeclaration:uA,createImportClause:zE,updateImportClause:pA,createAssertClause:om,updateAssertClause:am,createAssertEntry:$g,updateAssertEntry:K1,createImportTypeAssertionContainer:n_,updateImportTypeAssertionContainer:BD,createImportAttributes:gS,updateImportAttributes:qi,createImportAttribute:Qr,updateImportAttribute:xh,createNamespaceImport:Vu,updateNamespaceImport:SM,createNamespaceExport:Qg,updateNamespaceExport:TM,createNamedImports:db,updateNamedImports:hl,createImportSpecifier:Bp,updateImportSpecifier:dg,createExportAssignment:sm,updateExportAssignment:ub,createExportDeclaration:Pm,updateExportDeclaration:Zg,createNamedExports:fA,updateNamedExports:ug,createExportSpecifier:J1,updateExportSpecifier:pg,createMissingDeclaration:G_,createExternalModuleReference:nv,updateExternalModuleReference:GD,get createJSDocAllType(){return p(319)},get createJSDocUnknownType(){return p(320)},get createJSDocNonNullableType(){return y(322)},get updateJSDocNonNullableType(){return E(322)},get createJSDocNullableType(){return y(321)},get updateJSDocNullableType(){return E(321)},get createJSDocOptionalType(){return h(323)},get updateJSDocOptionalType(){return m(323)},get createJSDocVariadicType(){return h(325)},get updateJSDocVariadicType(){return m(325)},get createJSDocNamepathType(){return h(326)},get updateJSDocNamepathType(){return m(326)},createJSDocFunctionType:_A,updateJSDocFunctionType:Mm,createJSDocTypeLiteral:pb,updateJSDocTypeLiteral:UD,createJSDocTypeExpression:hA,updateJSDocTypeExpression:AM,createJSDocSignature:fr,updateJSDocSignature:rd,createJSDocTemplateTag:V_,updateJSDocTemplateTag:ar,createJSDocTypedefTag:gA,updateJSDocTypedefTag:BE,createJSDocParameterTag:qc,updateJSDocParameterTag:Rh,createJSDocPropertyTag:Lm,updateJSDocPropertyTag:bS,createJSDocCallbackTag:ES,updateJSDocCallbackTag:fb,createJSDocOverloadTag:ey,updateJSDocOverloadTag:yA,createJSDocAugmentsTag:km,updateJSDocAugmentsTag:GE,createJSDocImplementsTag:fg,updateJSDocImplementsTag:rp,createJSDocSeeTag:mb,updateJSDocSeeTag:q1,createJSDocNameReference:VE,updateJSDocNameReference:HD,createJSDocMemberName:SS,updateJSDocMemberName:vA,createJSDocLink:Gp,updateJSDocLink:bA,createJSDocLinkCode:Vl,updateJSDocLinkCode:Wc,createJSDocLinkPlain:EA,updateJSDocLinkPlain:Td,get createJSDocTypeTag(){return N(351)},get updateJSDocTypeTag(){return D(351)},get createJSDocReturnTag(){return N(349)},get updateJSDocReturnTag(){return D(349)},get createJSDocThisTag(){return N(350)},get updateJSDocThisTag(){return D(350)},get createJSDocAuthorTag(){return S(337)},get updateJSDocAuthorTag(){return A(337)},get createJSDocClassTag(){return S(339)},get updateJSDocClassTag(){return A(339)},get createJSDocPublicTag(){return S(340)},get updateJSDocPublicTag(){return A(340)},get createJSDocPrivateTag(){return S(341)},get updateJSDocPrivateTag(){return A(341)},get createJSDocProtectedTag(){return S(342)},get updateJSDocProtectedTag(){return A(342)},get createJSDocReadonlyTag(){return S(343)},get updateJSDocReadonlyTag(){return A(343)},get createJSDocOverrideTag(){return S(344)},get updateJSDocOverrideTag(){return A(344)},get createJSDocDeprecatedTag(){return S(338)},get updateJSDocDeprecatedTag(){return A(338)},get createJSDocThrowsTag(){return N(356)},get updateJSDocThrowsTag(){return D(356)},get createJSDocSatisfiesTag(){return N(357)},get updateJSDocSatisfiesTag(){return D(357)},createJSDocEnumTag:Vp,updateJSDocEnumTag:SA,createJSDocUnknownTag:id,updateJSDocUnknownTag:X1,createJSDocText:TA,updateJSDocText:Bs,createJSDocComment:KD,updateJSDocComment:UE,createJsxElement:TS,updateJsxElement:IM,createJsxSelfClosingElement:mu,updateJsxSelfClosingElement:ty,createJsxOpeningElement:j_,updateJsxOpeningElement:Y1,createJsxClosingElement:Ip,updateJsxClosingElement:$1,createJsxFragment:ip,createJsxText:iv,updateJsxText:AA,createJsxOpeningFragment:JD,createJsxJsxClosingFragment:qD,updateJsxFragment:Q1,createJsxAttribute:IA,updateJsxAttribute:XD,createJsxAttributes:gb,updateJsxAttributes:xp,createJsxSpreadAttribute:Dh,updateJsxSpreadAttribute:YD,createJsxExpression:xA,updateJsxExpression:es,createJsxNamespacedName:Sr,updateJsxNamespacedName:pf,createCaseClause:Ru,updateCaseClause:AS,createDefaultClause:$D,updateDefaultClause:HE,createHeritageClause:IS,updateHeritageClause:RA,createCatchClause:mg,updateCatchClause:r_,createPropertyAssignment:ff,updatePropertyAssignment:wm,createShorthandPropertyAssignment:_g,updateShorthandPropertyAssignment:hg,createSpreadAssignment:sc,updateSpreadAssignment:QD,createEnumMember:kf,updateEnumMember:Ch,createSourceFile:mf,updateSourceFile:Ds,createRedirectedSourceFile:xS,createBundle:RS,updateBundle:DS,createUnparsedSource:ry,createUnparsedPrologue:JE,createUnparsedPrepend:I,createUnparsedTextLike:oe,createUnparsedSyntheticReference:dt,createInputFiles:nn,createSyntheticExpression:Mr,createSyntaxList:ki,createNotEmittedStatement:vi,createPartiallyEmittedExpression:Zi,updatePartiallyEmittedExpression:_a,createCommaListExpression:Du,updateCommaListExpression:wf,createSyntheticReferenceExpression:vb,updateSyntheticReferenceExpression:Si,cloneNode:Eb,get createComma(){return s(28)},get createAssignment(){return s(64)},get createLogicalOr(){return s(57)},get createLogicalAnd(){return s(56)},get createBitwiseOr(){return s(52)},get createBitwiseXor(){return s(53)},get createBitwiseAnd(){return s(51)},get createStrictEquality(){return s(37)},get createStrictInequality(){return s(38)},get createEquality(){return s(35)},get createInequality(){return s(36)},get createLessThan(){return s(30)},get createLessThanEquals(){return s(33)},get createGreaterThan(){return s(32)},get createGreaterThanEquals(){return s(34)},get createLeftShift(){return s(48)},get createRightShift(){return s(49)},get createUnsignedRightShift(){return s(50)},get createAdd(){return s(40)},get createSubtract(){return s(41)},get createMultiply(){return s(42)},get createDivide(){return s(44)},get createModulo(){return s(45)},get createExponent(){return s(43)},get createPrefixPlus(){return l(40)},get createPrefixMinus(){return l(41)},get createPrefixIncrement(){return l(46)},get createPrefixDecrement(){return l(47)},get createBitwiseNot(){return l(55)},get createLogicalNot(){return l(54)},get createPostfixIncrement(){return d(46)},get createPostfixDecrement(){return d(47)},createImmediatelyInvokedFunctionExpression:CA,createImmediatelyInvokedArrowFunction:CS,createVoidZero:U_,createExportDefault:Ph,createExternalModuleExport:ZD,createTypeCheck:NA,createIsNotTypeCheck:UB,createMethodCall:Sb,createGlobalMethodCall:i_,createFunctionBindCall:l8,createFunctionCallCall:c8,createFunctionApplyCall:qE,createArraySliceCall:xM,createArrayConcatCall:Mh,createObjectDefinePropertyCall:nx,createObjectGetOwnPropertyDescriptorCall:d8,createReflectGetCall:H_,createReflectSetCall:X,createPropertyDescriptor:Ue,createCallBinding:Ci,createAssignmentTargetWrapper:mi,inlineExpressions:Xi,getInternalName:As,getLocalName:$a,getExportName:Of,getDeclarationName:K_,getNamespaceMemberName:gg,getExternalModuleOrNamespaceExportName:iy,restoreOuterExpressions:Vt,restoreEnclosingLabel:wr,createUseStrictPrologue:op,copyPrologue:oy,copyStandardPrologue:PA,copyCustomPrologue:eC,ensureUseStrict:RM,liftToBlock:DM,mergeLexicalEnvironment:ay,replaceModifiers:Ab,replaceDecoratorsAndModifiers:tC,replacePropertyName:jp};return gn(Voe,v=>v(w)),w;function j(v,C){if(v===void 0||v===Xe)v=[];else if(v0(v)){if(C===void 0||v.hasTrailingComma===C)return v.transformFlags===void 0&&LSe(v),x.attachNodeArrayDebugInfo(v),v;let Ke=v.slice();return Ke.pos=v.pos,Ke.end=v.end,Ke.hasTrailingComma=C,Ke.transformFlags=v.transformFlags,x.attachNodeArrayDebugInfo(Ke),Ke}let F=v.length,se=F>=1&&F<=4?v.slice():v;return se.pos=-1,se.end=-1,se.hasTrailingComma=!!C,se.transformFlags=0,LSe(se),x.attachNodeArrayDebugInfo(se),se}function K(v){return t.createBaseNode(v)}function Y(v){let C=K(v);return C.symbol=void 0,C.localSymbol=void 0,C}function B(v,C){return v!==C&&(v.typeArguments=C.typeArguments),tr(v,C)}function ce(v,C=0){let F=typeof v=="number"?v+"":v;x.assert(F.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");let se=Y(9);return se.text=F,se.numericLiteralFlags=C,C&384&&(se.transformFlags|=1024),se}function z(v){let C=Et(10);return C.text=typeof v=="string"?v:W0(v)+"n",C.transformFlags|=32,C}function Z(v,C){let F=Y(11);return F.text=v,F.singleQuote=C,F}function me(v,C,F){let se=Z(v,C);return se.hasExtendedUnicodeEscape=F,F&&(se.transformFlags|=1024),se}function ge(v){let C=Z(Xf(v),void 0);return C.textSourceNode=v,C}function q(v){let C=Et(14);return C.text=v,C}function J(v,C){switch(v){case 9:return ce(C,0);case 10:return z(C);case 11:return me(C,void 0);case 12:return iv(C,!1);case 13:return iv(C,!0);case 14:return q(C);case 15:return Ic(v,C,void 0,0)}}function re(v){let C=t.createBaseIdentifierNode(80);return C.escapedText=v,C.jsDoc=void 0,C.flowNode=void 0,C.symbol=void 0,C}function pe(v,C,F,se){let Ke=re(pl(v));return xk(Ke,{flags:C,id:e4,prefix:F,suffix:se}),e4++,Ke}function xe(v,C,F){C===void 0&&v&&(C=g0(v)),C===80&&(C=void 0);let se=re(pl(v));return F&&(se.flags|=256),se.escapedText==="await"&&(se.transformFlags|=67108864),se.flags&256&&(se.transformFlags|=1024),se}function fe(v,C,F,se){let Ke=1;C&&(Ke|=8);let jt=pe("",Ke,F,se);return v&&v(jt),jt}function ne(v){let C=2;return v&&(C|=8),pe("",C,void 0,void 0)}function he(v,C=0,F,se){return x.assert(!(C&7),"Argument out of range: flags"),x.assert((C&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),pe(v,3|C,F,se)}function Ce(v,C=0,F,se){x.assert(!(C&7),"Argument out of range: flags");let Ke=v?Hh(v)?vE(!1,F,v,se,gr):`generated@${rs(v)}`:"";(F||se)&&(C|=16);let jt=pe(Ke,4|C,F,se);return jt.original=v,jt}function Ge(v){let C=t.createBasePrivateIdentifierNode(81);return C.escapedText=v,C.transformFlags|=16777216,C}function ve(v){return ao(v,"#")||x.fail("First character of private identifier must be #: "+v),Ge(pl(v))}function Ae(v,C,F,se){let Ke=Ge(pl(v));return xk(Ke,{flags:C,id:e4,prefix:F,suffix:se}),e4++,Ke}function De(v,C,F){v&&!ao(v,"#")&&x.fail("First character of private identifier must be #: "+v);let se=8|(v?3:1);return Ae(v??"",se,C,F)}function Le(v,C,F){let se=Hh(v)?vE(!0,C,v,F,gr):`#generated@${rs(v)}`,jt=Ae(se,4|(C||F?16:0),C,F);return jt.original=v,jt}function Et(v){return t.createBaseTokenNode(v)}function be(v){x.assert(v>=0&&v<=165,"Invalid token"),x.assert(v<=15||v>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),x.assert(v<=9||v>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),x.assert(v!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let C=Et(v),F=0;switch(v){case 134:F=384;break;case 160:F=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:F=1;break;case 108:F=134218752,C.flowNode=void 0;break;case 126:F=1024;break;case 129:F=16777216;break;case 110:F=16384,C.flowNode=void 0;break}return F&&(C.transformFlags|=F),C}function ze(){return be(108)}function tt(){return be(110)}function Wt(){return be(106)}function _t(){return be(112)}function Je(){return be(97)}function pt(v){return be(v)}function Zt(v){let C=[];return v&32&&C.push(pt(95)),v&128&&C.push(pt(138)),v&2048&&C.push(pt(90)),v&4096&&C.push(pt(87)),v&1&&C.push(pt(125)),v&2&&C.push(pt(123)),v&4&&C.push(pt(124)),v&64&&C.push(pt(128)),v&256&&C.push(pt(126)),v&16&&C.push(pt(164)),v&8&&C.push(pt(148)),v&512&&C.push(pt(129)),v&1024&&C.push(pt(134)),v&8192&&C.push(pt(103)),v&16384&&C.push(pt(147)),C.length?C:void 0}function en(v,C){let F=K(166);return F.left=v,F.right=lc(C),F.transformFlags|=br(F.left)|Ek(F.right),F.flowNode=void 0,F}function Dn(v,C,F){return v.left!==C||v.right!==F?tr(en(C,F),v):v}function Kn(v){let C=K(167);return C.expression=i().parenthesizeExpressionOfComputedPropertyName(v),C.transformFlags|=br(C.expression)|1024|131072,C}function pn(v,C){return v.expression!==C?tr(Kn(C),v):v}function Xt(v,C,F,se){let Ke=Y(168);return Ke.modifiers=Ga(v),Ke.name=lc(C),Ke.constraint=F,Ke.default=se,Ke.transformFlags=1,Ke.expression=void 0,Ke.jsDoc=void 0,Ke}function Kt(v,C,F,se,Ke){return v.modifiers!==C||v.name!==F||v.constraint!==se||v.default!==Ke?tr(Xt(C,F,se,Ke),v):v}function hi(v,C,F,se,Ke,jt){let _r=Y(169);return _r.modifiers=Ga(v),_r.dotDotDotToken=C,_r.name=lc(F),_r.questionToken=se,_r.type=Ke,_r.initializer=rx(jt),k0(_r.name)?_r.transformFlags=1:_r.transformFlags=Ua(_r.modifiers)|br(_r.dotDotDotToken)|jv(_r.name)|br(_r.questionToken)|br(_r.initializer)|(_r.questionToken??_r.type?1:0)|(_r.dotDotDotToken??_r.initializer?1024:0)|(x_(_r.modifiers)&31?8192:0),_r.jsDoc=void 0,_r}function uo(v,C,F,se,Ke,jt,_r){return v.modifiers!==C||v.dotDotDotToken!==F||v.name!==se||v.questionToken!==Ke||v.type!==jt||v.initializer!==_r?tr(hi(C,F,se,Ke,jt,_r),v):v}function Li(v){let C=K(170);return C.expression=i().parenthesizeLeftSideOfAccess(v,!1),C.transformFlags|=br(C.expression)|1|8192|33554432,C}function So(v,C){return v.expression!==C?tr(Li(C),v):v}function Qn(v,C,F,se){let Ke=Y(171);return Ke.modifiers=Ga(v),Ke.name=lc(C),Ke.type=se,Ke.questionToken=F,Ke.transformFlags=1,Ke.initializer=void 0,Ke.jsDoc=void 0,Ke}function Ur(v,C,F,se,Ke){return v.modifiers!==C||v.name!==F||v.questionToken!==se||v.type!==Ke?Er(Qn(C,F,se,Ke),v):v}function Er(v,C){return v!==C&&(v.initializer=C.initializer),tr(v,C)}function on(v,C,F,se,Ke){let jt=Y(172);jt.modifiers=Ga(v),jt.name=lc(C),jt.questionToken=F&&Uv(F)?F:void 0,jt.exclamationToken=F&&Pk(F)?F:void 0,jt.type=se,jt.initializer=rx(Ke);let _r=jt.flags&33554432||x_(jt.modifiers)&128;return jt.transformFlags=Ua(jt.modifiers)|jv(jt.name)|br(jt.initializer)|(_r||jt.questionToken||jt.exclamationToken||jt.type?1:0)|(Ya(jt.name)||x_(jt.modifiers)&256&&jt.initializer?8192:0)|16777216,jt.jsDoc=void 0,jt}function Ye(v,C,F,se,Ke,jt){return v.modifiers!==C||v.name!==F||v.questionToken!==(se!==void 0&&Uv(se)?se:void 0)||v.exclamationToken!==(se!==void 0&&Pk(se)?se:void 0)||v.type!==Ke||v.initializer!==jt?tr(on(C,F,se,Ke,jt),v):v}function Ot(v,C,F,se,Ke,jt){let _r=Y(173);return _r.modifiers=Ga(v),_r.name=lc(C),_r.questionToken=F,_r.typeParameters=Ga(se),_r.parameters=Ga(Ke),_r.type=jt,_r.transformFlags=1,_r.jsDoc=void 0,_r.locals=void 0,_r.nextContainer=void 0,_r.typeArguments=void 0,_r}function In(v,C,F,se,Ke,jt,_r){return v.modifiers!==C||v.name!==F||v.questionToken!==se||v.typeParameters!==Ke||v.parameters!==jt||v.type!==_r?B(Ot(C,F,se,Ke,jt,_r),v):v}function si(v,C,F,se,Ke,jt,_r,eo){let Gs=Y(174);if(Gs.modifiers=Ga(v),Gs.asteriskToken=C,Gs.name=lc(F),Gs.questionToken=se,Gs.exclamationToken=void 0,Gs.typeParameters=Ga(Ke),Gs.parameters=j(jt),Gs.type=_r,Gs.body=eo,!Gs.body)Gs.transformFlags=1;else{let o_=x_(Gs.modifiers)&1024,xb=!!Gs.asteriskToken,Om=o_&&xb;Gs.transformFlags=Ua(Gs.modifiers)|br(Gs.asteriskToken)|jv(Gs.name)|br(Gs.questionToken)|Ua(Gs.typeParameters)|Ua(Gs.parameters)|br(Gs.type)|br(Gs.body)&-67108865|(Om?128:o_?256:xb?2048:0)|(Gs.questionToken||Gs.typeParameters||Gs.type?1:0)|1024}return Gs.typeArguments=void 0,Gs.jsDoc=void 0,Gs.locals=void 0,Gs.nextContainer=void 0,Gs.flowNode=void 0,Gs.endFlowNode=void 0,Gs.returnFlowNode=void 0,Gs}function yi(v,C,F,se,Ke,jt,_r,eo,Gs){return v.modifiers!==C||v.asteriskToken!==F||v.name!==se||v.questionToken!==Ke||v.typeParameters!==jt||v.parameters!==_r||v.type!==eo||v.body!==Gs?$i(si(C,F,se,Ke,jt,_r,eo,Gs),v):v}function $i(v,C){return v!==C&&(v.exclamationToken=C.exclamationToken),tr(v,C)}function Io(v){let C=Y(175);return C.body=v,C.transformFlags=br(v)|16777216,C.modifiers=void 0,C.jsDoc=void 0,C.locals=void 0,C.nextContainer=void 0,C.endFlowNode=void 0,C.returnFlowNode=void 0,C}function ua(v,C){return v.body!==C?Ba(Io(C),v):v}function Ba(v,C){return v!==C&&(v.modifiers=C.modifiers),tr(v,C)}function vn(v,C,F){let se=Y(176);return se.modifiers=Ga(v),se.parameters=j(C),se.body=F,se.transformFlags=Ua(se.modifiers)|Ua(se.parameters)|br(se.body)&-67108865|1024,se.typeParameters=void 0,se.type=void 0,se.typeArguments=void 0,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.endFlowNode=void 0,se.returnFlowNode=void 0,se}function kn(v,C,F,se){return v.modifiers!==C||v.parameters!==F||v.body!==se?Be(vn(C,F,se),v):v}function Be(v,C){return v!==C&&(v.typeParameters=C.typeParameters,v.type=C.type),B(v,C)}function ct(v,C,F,se,Ke){let jt=Y(177);return jt.modifiers=Ga(v),jt.name=lc(C),jt.parameters=j(F),jt.type=se,jt.body=Ke,jt.body?jt.transformFlags=Ua(jt.modifiers)|jv(jt.name)|Ua(jt.parameters)|br(jt.type)|br(jt.body)&-67108865|(jt.type?1:0):jt.transformFlags=1,jt.typeArguments=void 0,jt.typeParameters=void 0,jt.jsDoc=void 0,jt.locals=void 0,jt.nextContainer=void 0,jt.flowNode=void 0,jt.endFlowNode=void 0,jt.returnFlowNode=void 0,jt}function lt(v,C,F,se,Ke,jt){return v.modifiers!==C||v.name!==F||v.parameters!==se||v.type!==Ke||v.body!==jt?Rt(ct(C,F,se,Ke,jt),v):v}function Rt(v,C){return v!==C&&(v.typeParameters=C.typeParameters),B(v,C)}function ae(v,C,F,se){let Ke=Y(178);return Ke.modifiers=Ga(v),Ke.name=lc(C),Ke.parameters=j(F),Ke.body=se,Ke.body?Ke.transformFlags=Ua(Ke.modifiers)|jv(Ke.name)|Ua(Ke.parameters)|br(Ke.body)&-67108865|(Ke.type?1:0):Ke.transformFlags=1,Ke.typeArguments=void 0,Ke.typeParameters=void 0,Ke.type=void 0,Ke.jsDoc=void 0,Ke.locals=void 0,Ke.nextContainer=void 0,Ke.flowNode=void 0,Ke.endFlowNode=void 0,Ke.returnFlowNode=void 0,Ke}function ke(v,C,F,se,Ke){return v.modifiers!==C||v.name!==F||v.parameters!==se||v.body!==Ke?st(ae(C,F,se,Ke),v):v}function st(v,C){return v!==C&&(v.typeParameters=C.typeParameters,v.type=C.type),B(v,C)}function G(v,C,F){let se=Y(179);return se.typeParameters=Ga(v),se.parameters=Ga(C),se.type=F,se.transformFlags=1,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.typeArguments=void 0,se}function et(v,C,F,se){return v.typeParameters!==C||v.parameters!==F||v.type!==se?B(G(C,F,se),v):v}function Tt(v,C,F){let se=Y(180);return se.typeParameters=Ga(v),se.parameters=Ga(C),se.type=F,se.transformFlags=1,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.typeArguments=void 0,se}function He(v,C,F,se){return v.typeParameters!==C||v.parameters!==F||v.type!==se?B(Tt(C,F,se),v):v}function ut(v,C,F){let se=Y(181);return se.modifiers=Ga(v),se.parameters=Ga(C),se.type=F,se.transformFlags=1,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.typeArguments=void 0,se}function Ft(v,C,F,se){return v.parameters!==F||v.type!==se||v.modifiers!==C?B(ut(C,F,se),v):v}function hn(v,C){let F=K(204);return F.type=v,F.literal=C,F.transformFlags=1,F}function dn(v,C,F){return v.type!==C||v.literal!==F?tr(hn(C,F),v):v}function un(v){return be(v)}function U(v,C,F){let se=K(182);return se.assertsModifier=v,se.parameterName=lc(C),se.type=F,se.transformFlags=1,se}function Me(v,C,F,se){return v.assertsModifier!==C||v.parameterName!==F||v.type!==se?tr(U(C,F,se),v):v}function Nt(v,C){let F=K(183);return F.typeName=lc(v),F.typeArguments=C&&i().parenthesizeTypeArguments(j(C)),F.transformFlags=1,F}function k(v,C,F){return v.typeName!==C||v.typeArguments!==F?tr(Nt(C,F),v):v}function ie(v,C,F){let se=Y(184);return se.typeParameters=Ga(v),se.parameters=Ga(C),se.type=F,se.transformFlags=1,se.modifiers=void 0,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.typeArguments=void 0,se}function H(v,C,F,se){return v.typeParameters!==C||v.parameters!==F||v.type!==se?ue(ie(C,F,se),v):v}function ue(v,C){return v!==C&&(v.modifiers=C.modifiers),B(v,C)}function We(...v){return v.length===4?Ne(...v):v.length===3?It(...v):x.fail("Incorrect number of arguments specified.")}function Ne(v,C,F,se){let Ke=Y(185);return Ke.modifiers=Ga(v),Ke.typeParameters=Ga(C),Ke.parameters=Ga(F),Ke.type=se,Ke.transformFlags=1,Ke.jsDoc=void 0,Ke.locals=void 0,Ke.nextContainer=void 0,Ke.typeArguments=void 0,Ke}function It(v,C,F){return Ne(void 0,v,C,F)}function Dt(...v){return v.length===5?Ut(...v):v.length===4?En(...v):x.fail("Incorrect number of arguments specified.")}function Ut(v,C,F,se,Ke){return v.modifiers!==C||v.typeParameters!==F||v.parameters!==se||v.type!==Ke?B(We(C,F,se,Ke),v):v}function En(v,C,F,se){return Ut(v,v.modifiers,C,F,se)}function wn(v,C){let F=K(186);return F.exprName=v,F.typeArguments=C&&i().parenthesizeTypeArguments(C),F.transformFlags=1,F}function Bn(v,C,F){return v.exprName!==C||v.typeArguments!==F?tr(wn(C,F),v):v}function gi(v){let C=Y(187);return C.members=j(v),C.transformFlags=1,C}function xi(v,C){return v.members!==C?tr(gi(C),v):v}function er(v){let C=K(188);return C.elementType=i().parenthesizeNonArrayTypeOfPostfixType(v),C.transformFlags=1,C}function Fr(v,C){return v.elementType!==C?tr(er(C),v):v}function go(v){let C=K(189);return C.elements=j(i().parenthesizeElementTypesOfTupleType(v)),C.transformFlags=1,C}function Pi(v,C){return v.elements!==C?tr(go(C),v):v}function Ri(v,C,F,se){let Ke=Y(202);return Ke.dotDotDotToken=v,Ke.name=C,Ke.questionToken=F,Ke.type=se,Ke.transformFlags=1,Ke.jsDoc=void 0,Ke}function Kr(v,C,F,se,Ke){return v.dotDotDotToken!==C||v.name!==F||v.questionToken!==se||v.type!==Ke?tr(Ri(C,F,se,Ke),v):v}function xo(v){let C=K(190);return C.type=i().parenthesizeTypeOfOptionalType(v),C.transformFlags=1,C}function xn(v,C){return v.type!==C?tr(xo(C),v):v}function Ls(v){let C=K(191);return C.type=v,C.transformFlags=1,C}function $l(v,C){return v.type!==C?tr(Ls(C),v):v}function Mo(v,C,F){let se=K(v);return se.types=w.createNodeArray(F(C)),se.transformFlags=1,se}function ss(v,C,F){return v.types!==C?tr(Mo(v.kind,C,F),v):v}function Ws(v){return Mo(192,v,i().parenthesizeConstituentTypesOfUnionType)}function ml(v,C){return ss(v,C,i().parenthesizeConstituentTypesOfUnionType)}function cd(v){return Mo(193,v,i().parenthesizeConstituentTypesOfIntersectionType)}function mo(v,C){return ss(v,C,i().parenthesizeConstituentTypesOfIntersectionType)}function la(v,C,F,se){let Ke=K(194);return Ke.checkType=i().parenthesizeCheckTypeOfConditionalType(v),Ke.extendsType=i().parenthesizeExtendsTypeOfConditionalType(C),Ke.trueType=F,Ke.falseType=se,Ke.transformFlags=1,Ke.locals=void 0,Ke.nextContainer=void 0,Ke}function dd(v,C,F,se,Ke){return v.checkType!==C||v.extendsType!==F||v.trueType!==se||v.falseType!==Ke?tr(la(C,F,se,Ke),v):v}function bs(v){let C=K(195);return C.typeParameter=v,C.transformFlags=1,C}function Ca(v,C){return v.typeParameter!==C?tr(bs(C),v):v}function ul(v,C){let F=K(203);return F.head=v,F.templateSpans=j(C),F.transformFlags=1,F}function Nf(v,C,F){return v.head!==C||v.templateSpans!==F?tr(ul(C,F),v):v}function ac(v,C,F,se,Ke=!1){let jt=K(205);return jt.argument=v,jt.attributes=C,jt.assertions&&jt.assertions.assertClause&&jt.attributes&&(jt.assertions.assertClause=jt.attributes),jt.qualifier=F,jt.typeArguments=se&&i().parenthesizeTypeArguments(se),jt.isTypeOf=Ke,jt.transformFlags=1,jt}function xl(v,C,F,se,Ke,jt=v.isTypeOf){return v.argument!==C||v.attributes!==F||v.qualifier!==se||v.typeArguments!==Ke||v.isTypeOf!==jt?tr(ac(C,F,se,Ke,jt),v):v}function al(v){let C=K(196);return C.type=v,C.transformFlags=1,C}function Lo(v,C){return v.type!==C?tr(al(C),v):v}function tn(){let v=K(197);return v.transformFlags=1,v}function Fs(v,C){let F=K(198);return F.operator=v,F.type=v===148?i().parenthesizeOperandOfReadonlyTypeOperator(C):i().parenthesizeOperandOfTypeOperator(C),F.transformFlags=1,F}function nd(v,C){return v.type!==C?tr(Fs(v.operator,C),v):v}function ud(v,C){let F=K(199);return F.objectType=i().parenthesizeNonArrayTypeOfPostfixType(v),F.indexType=C,F.transformFlags=1,F}function Ep(v,C,F){return v.objectType!==C||v.indexType!==F?tr(ud(C,F),v):v}function Rs(v,C,F,se,Ke,jt){let _r=Y(200);return _r.readonlyToken=v,_r.typeParameter=C,_r.nameType=F,_r.questionToken=se,_r.type=Ke,_r.members=jt&&j(jt),_r.transformFlags=1,_r.locals=void 0,_r.nextContainer=void 0,_r}function Ac(v,C,F,se,Ke,jt,_r){return v.readonlyToken!==C||v.typeParameter!==F||v.nameType!==se||v.questionToken!==Ke||v.type!==jt||v.members!==_r?tr(Rs(C,F,se,Ke,jt,_r),v):v}function de(v){let C=K(201);return C.literal=v,C.transformFlags=1,C}function $(v,C){return v.literal!==C?tr(de(C),v):v}function Pe(v){let C=K(206);return C.elements=j(v),C.transformFlags|=Ua(C.elements)|1024|524288,C.transformFlags&32768&&(C.transformFlags|=65664),C}function yt(v,C){return v.elements!==C?tr(Pe(C),v):v}function cn(v){let C=K(207);return C.elements=j(v),C.transformFlags|=Ua(C.elements)|1024|524288,C}function yr(v,C){return v.elements!==C?tr(cn(C),v):v}function pr(v,C,F,se){let Ke=Y(208);return Ke.dotDotDotToken=v,Ke.propertyName=lc(C),Ke.name=lc(F),Ke.initializer=rx(se),Ke.transformFlags|=br(Ke.dotDotDotToken)|jv(Ke.propertyName)|jv(Ke.name)|br(Ke.initializer)|(Ke.dotDotDotToken?32768:0)|1024,Ke.flowNode=void 0,Ke}function zr(v,C,F,se,Ke){return v.propertyName!==F||v.dotDotDotToken!==C||v.name!==se||v.initializer!==Ke?tr(pr(C,F,se,Ke),v):v}function Di(v,C){let F=K(209),se=v&&$s(v),Ke=j(v,se&&jc(se)?!0:void 0);return F.elements=i().parenthesizeExpressionsOfCommaDelimitedList(Ke),F.multiLine=C,F.transformFlags|=Ua(F.elements),F}function Cr(v,C){return v.elements!==C?tr(Di(C,v.multiLine),v):v}function qo(v,C){let F=Y(210);return F.properties=j(v),F.multiLine=C,F.transformFlags|=Ua(F.properties),F.jsDoc=void 0,F}function bl(v,C){return v.properties!==C?tr(qo(C,v.multiLine),v):v}function Hc(v,C,F){let se=Y(211);return se.expression=v,se.questionDotToken=C,se.name=F,se.transformFlags=br(se.expression)|br(se.questionDotToken)|(Fe(se.name)?Ek(se.name):br(se.name)|536870912),se.jsDoc=void 0,se.flowNode=void 0,se}function zs(v,C){let F=Hc(i().parenthesizeLeftSideOfAccess(v,!1),void 0,lc(C));return aP(v)&&(F.transformFlags|=384),F}function hc(v,C,F){return oF(v)?Kc(v,C,v.questionDotToken,na(F,Fe)):v.expression!==C||v.name!==F?tr(zs(C,F),v):v}function ys(v,C,F){let se=Hc(i().parenthesizeLeftSideOfAccess(v,!0),C,lc(F));return se.flags|=64,se.transformFlags|=32,se}function Kc(v,C,F,se){return x.assert(!!(v.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),v.expression!==C||v.questionDotToken!==F||v.name!==se?tr(ys(C,F,se),v):v}function tp(v,C,F){let se=Y(212);return se.expression=v,se.questionDotToken=C,se.argumentExpression=F,se.transformFlags|=br(se.expression)|br(se.questionDotToken)|br(se.argumentExpression),se.jsDoc=void 0,se.flowNode=void 0,se}function Oc(v,C){let F=tp(i().parenthesizeLeftSideOfAccess(v,!1),void 0,YE(C));return aP(v)&&(F.transformFlags|=384),F}function im(v,C,F){return SV(v)?Re(v,C,v.questionDotToken,F):v.expression!==C||v.argumentExpression!==F?tr(Oc(C,F),v):v}function fu(v,C,F){let se=tp(i().parenthesizeLeftSideOfAccess(v,!0),C,YE(F));return se.flags|=64,se.transformFlags|=32,se}function Re(v,C,F,se){return x.assert(!!(v.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),v.expression!==C||v.questionDotToken!==F||v.argumentExpression!==se?tr(fu(C,F,se),v):v}function Lt(v,C,F,se){let Ke=Y(213);return Ke.expression=v,Ke.questionDotToken=C,Ke.typeArguments=F,Ke.arguments=se,Ke.transformFlags|=br(Ke.expression)|br(Ke.questionDotToken)|Ua(Ke.typeArguments)|Ua(Ke.arguments),Ke.typeArguments&&(Ke.transformFlags|=1),ku(Ke.expression)&&(Ke.transformFlags|=16384),Ke}function Un(v,C,F){let se=Lt(i().parenthesizeLeftSideOfAccess(v,!1),void 0,Ga(C),i().parenthesizeExpressionsOfCommaDelimitedList(j(F)));return sP(se.expression)&&(se.transformFlags|=8388608),se}function yo(v,C,F,se){return oT(v)?Zo(v,C,v.questionDotToken,F,se):v.expression!==C||v.typeArguments!==F||v.arguments!==se?tr(Un(C,F,se),v):v}function Xo(v,C,F,se){let Ke=Lt(i().parenthesizeLeftSideOfAccess(v,!0),C,Ga(F),i().parenthesizeExpressionsOfCommaDelimitedList(j(se)));return Ke.flags|=64,Ke.transformFlags|=32,Ke}function Zo(v,C,F,se,Ke){return x.assert(!!(v.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),v.expression!==C||v.questionDotToken!==F||v.typeArguments!==se||v.arguments!==Ke?tr(Xo(C,F,se,Ke),v):v}function Ql(v,C,F){let se=Y(214);return se.expression=i().parenthesizeExpressionOfNew(v),se.typeArguments=Ga(C),se.arguments=F?i().parenthesizeExpressionsOfCommaDelimitedList(F):void 0,se.transformFlags|=br(se.expression)|Ua(se.typeArguments)|Ua(se.arguments)|32,se.typeArguments&&(se.transformFlags|=1),se}function gc(v,C,F,se){return v.expression!==C||v.typeArguments!==F||v.arguments!==se?tr(Ql(C,F,se),v):v}function sl(v,C,F){let se=K(215);return se.tag=i().parenthesizeLeftSideOfAccess(v,!1),se.typeArguments=Ga(C),se.template=F,se.transformFlags|=br(se.tag)|Ua(se.typeArguments)|br(se.template)|1024,se.typeArguments&&(se.transformFlags|=1),kj(se.template)&&(se.transformFlags|=128),se}function _l(v,C,F,se){return v.tag!==C||v.typeArguments!==F||v.template!==se?tr(sl(C,F,se),v):v}function Gl(v,C){let F=K(216);return F.expression=i().parenthesizeOperandOfPrefixUnary(C),F.type=v,F.transformFlags|=br(F.expression)|br(F.type)|1,F}function Zl(v,C,F){return v.type!==C||v.expression!==F?tr(Gl(C,F),v):v}function Jc(v){let C=K(217);return C.expression=v,C.transformFlags=br(C.expression),C.jsDoc=void 0,C}function lf(v,C){return v.expression!==C?tr(Jc(C),v):v}function Fu(v,C,F,se,Ke,jt,_r){let eo=Y(218);eo.modifiers=Ga(v),eo.asteriskToken=C,eo.name=lc(F),eo.typeParameters=Ga(se),eo.parameters=j(Ke),eo.type=jt,eo.body=_r;let Gs=x_(eo.modifiers)&1024,o_=!!eo.asteriskToken,xb=Gs&&o_;return eo.transformFlags=Ua(eo.modifiers)|br(eo.asteriskToken)|jv(eo.name)|Ua(eo.typeParameters)|Ua(eo.parameters)|br(eo.type)|br(eo.body)&-67108865|(xb?128:Gs?256:o_?2048:0)|(eo.typeParameters||eo.type?1:0)|4194304,eo.typeArguments=void 0,eo.jsDoc=void 0,eo.locals=void 0,eo.nextContainer=void 0,eo.flowNode=void 0,eo.endFlowNode=void 0,eo.returnFlowNode=void 0,eo}function xu(v,C,F,se,Ke,jt,_r,eo){return v.name!==se||v.modifiers!==C||v.asteriskToken!==F||v.typeParameters!==Ke||v.parameters!==jt||v.type!==_r||v.body!==eo?B(Fu(C,F,se,Ke,jt,_r,eo),v):v}function Pf(v,C,F,se,Ke,jt){let _r=Y(219);_r.modifiers=Ga(v),_r.typeParameters=Ga(C),_r.parameters=j(F),_r.type=se,_r.equalsGreaterThanToken=Ke??be(39),_r.body=i().parenthesizeConciseBodyOfArrowFunction(jt);let eo=x_(_r.modifiers)&1024;return _r.transformFlags=Ua(_r.modifiers)|Ua(_r.typeParameters)|Ua(_r.parameters)|br(_r.type)|br(_r.equalsGreaterThanToken)|br(_r.body)&-67108865|(_r.typeParameters||_r.type?1:0)|(eo?16640:0)|1024,_r.typeArguments=void 0,_r.jsDoc=void 0,_r.locals=void 0,_r.nextContainer=void 0,_r.flowNode=void 0,_r.endFlowNode=void 0,_r.returnFlowNode=void 0,_r}function z_(v,C,F,se,Ke,jt,_r){return v.modifiers!==C||v.typeParameters!==F||v.parameters!==se||v.type!==Ke||v.equalsGreaterThanToken!==jt||v.body!==_r?B(Pf(C,F,se,Ke,jt,_r),v):v}function Ah(v){let C=K(220);return C.expression=i().parenthesizeOperandOfPrefixUnary(v),C.transformFlags|=br(C.expression),C}function Hg(v,C){return v.expression!==C?tr(Ah(C),v):v}function Fd(v){let C=K(221);return C.expression=i().parenthesizeOperandOfPrefixUnary(v),C.transformFlags|=br(C.expression),C}function Kg(v,C){return v.expression!==C?tr(Fd(C),v):v}function Sp(v){let C=K(222);return C.expression=i().parenthesizeOperandOfPrefixUnary(v),C.transformFlags|=br(C.expression),C}function lg(v,C){return v.expression!==C?tr(Sp(C),v):v}function zu(v){let C=K(223);return C.expression=i().parenthesizeOperandOfPrefixUnary(v),C.transformFlags|=br(C.expression)|256|128|2097152,C}function Q(v,C){return v.expression!==C?tr(zu(C),v):v}function rt(v,C){let F=K(224);return F.operator=v,F.operand=i().parenthesizeOperandOfPrefixUnary(C),F.transformFlags|=br(F.operand),(v===46||v===47)&&Fe(F.operand)&&!rl(F.operand)&&!Bg(F.operand)&&(F.transformFlags|=268435456),F}function wt(v,C){return v.operand!==C?tr(rt(v.operator,C),v):v}function zt(v,C){let F=K(225);return F.operator=C,F.operand=i().parenthesizeOperandOfPostfixUnary(v),F.transformFlags|=br(F.operand),Fe(F.operand)&&!rl(F.operand)&&!Bg(F.operand)&&(F.transformFlags|=268435456),F}function O(v,C){return v.operand!==C?tr(zt(C,v.operator),v):v}function Ee(v,C,F){let se=Y(226),Ke=CM(C),jt=Ke.kind;return se.left=i().parenthesizeLeftSideOfBinary(jt,v),se.operatorToken=Ke,se.right=i().parenthesizeRightSideOfBinary(jt,se.left,F),se.transformFlags|=br(se.left)|br(se.operatorToken)|br(se.right),jt===61?se.transformFlags|=32:jt===64?Ma(se.left)?se.transformFlags|=5248|nt(se.left):uu(se.left)&&(se.transformFlags|=5120|nt(se.left)):jt===43||jt===68?se.transformFlags|=512:NN(jt)&&(se.transformFlags|=16),jt===103&&Ki(se.left)&&(se.transformFlags|=536870912),se.jsDoc=void 0,se}function nt(v){return qk(v)?65536:0}function Gt(v,C,F,se){return v.left!==C||v.operatorToken!==F||v.right!==se?tr(Ee(C,F,se),v):v}function Zn(v,C,F,se,Ke){let jt=K(227);return jt.condition=i().parenthesizeConditionOfConditionalExpression(v),jt.questionToken=C??be(58),jt.whenTrue=i().parenthesizeBranchOfConditionalExpression(F),jt.colonToken=se??be(59),jt.whenFalse=i().parenthesizeBranchOfConditionalExpression(Ke),jt.transformFlags|=br(jt.condition)|br(jt.questionToken)|br(jt.whenTrue)|br(jt.colonToken)|br(jt.whenFalse),jt}function ii(v,C,F,se,Ke,jt){return v.condition!==C||v.questionToken!==F||v.whenTrue!==se||v.colonToken!==Ke||v.whenFalse!==jt?tr(Zn(C,F,se,Ke,jt),v):v}function Xr(v,C){let F=K(228);return F.head=v,F.templateSpans=j(C),F.transformFlags|=br(F.head)|Ua(F.templateSpans)|1024,F}function no(v,C,F){return v.head!==C||v.templateSpans!==F?tr(Xr(C,F),v):v}function La(v,C,F,se=0){x.assert(!(se&-7177),"Unsupported template flags.");let Ke;if(F!==void 0&&F!==C&&(Ke=LBe(v,F),typeof Ke=="object"))return x.fail("Invalid raw text");if(C===void 0){if(Ke===void 0)return x.fail("Arguments 'text' and 'rawText' may not both be undefined.");C=Ke}else Ke!==void 0&&x.assert(C===Ke,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return C}function ka(v){let C=1024;return v&&(C|=128),C}function wl(v,C,F,se){let Ke=Et(v);return Ke.text=C,Ke.rawText=F,Ke.templateFlags=se&7176,Ke.transformFlags=ka(Ke.templateFlags),Ke}function pd(v,C,F,se){let Ke=Y(v);return Ke.text=C,Ke.rawText=F,Ke.templateFlags=se&7176,Ke.transformFlags=ka(Ke.templateFlags),Ke}function Ic(v,C,F,se){return v===15?pd(v,C,F,se):wl(v,C,F,se)}function Tp(v,C,F){return v=La(16,v,C,F),Ic(16,v,C,F)}function Bu(v,C,F){return v=La(16,v,C,F),Ic(17,v,C,F)}function ob(v,C,F){return v=La(16,v,C,F),Ic(18,v,C,F)}function ls(v,C,F){return v=La(16,v,C,F),pd(15,v,C,F)}function Dm(v,C){x.assert(!v||!!C,"A `YieldExpression` with an asteriskToken must have an expression.");let F=K(229);return F.expression=C&&i().parenthesizeExpressionForDisallowedComma(C),F.asteriskToken=v,F.transformFlags|=br(F.expression)|br(F.asteriskToken)|1024|128|1048576,F}function Cm(v,C,F){return v.expression!==F||v.asteriskToken!==C?tr(Dm(C,F),v):v}function Ui(v){let C=K(230);return C.expression=i().parenthesizeExpressionForDisallowedComma(v),C.transformFlags|=br(C.expression)|1024|32768,C}function Jg(v,C){return v.expression!==C?tr(Ui(C),v):v}function $y(v,C,F,se,Ke){let jt=Y(231);return jt.modifiers=Ga(v),jt.name=lc(C),jt.typeParameters=Ga(F),jt.heritageClauses=Ga(se),jt.members=j(Ke),jt.transformFlags|=Ua(jt.modifiers)|jv(jt.name)|Ua(jt.typeParameters)|Ua(jt.heritageClauses)|Ua(jt.members)|(jt.typeParameters?1:0)|1024,jt.jsDoc=void 0,jt}function Nm(v,C,F,se,Ke,jt){return v.modifiers!==C||v.name!==F||v.typeParameters!==se||v.heritageClauses!==Ke||v.members!==jt?tr($y(C,F,se,Ke,jt),v):v}function pS(){return K(232)}function fS(v,C){let F=K(233);return F.expression=i().parenthesizeLeftSideOfAccess(v,!1),F.typeArguments=C&&i().parenthesizeTypeArguments(C),F.transformFlags|=br(F.expression)|Ua(F.typeArguments)|1024,F}function cf(v,C,F){return v.expression!==C||v.typeArguments!==F?tr(fS(C,F),v):v}function B_(v,C){let F=K(234);return F.expression=v,F.type=C,F.transformFlags|=br(F.expression)|br(F.type)|1,F}function df(v,C,F){return v.expression!==C||v.type!==F?tr(B_(C,F),v):v}function qg(v){let C=K(235);return C.expression=i().parenthesizeLeftSideOfAccess(v,!1),C.transformFlags|=br(C.expression)|1,C}function we(v,C){return sF(v)?_n(v,C):v.expression!==C?tr(qg(C),v):v}function qe(v,C){let F=K(238);return F.expression=v,F.type=C,F.transformFlags|=br(F.expression)|br(F.type)|1,F}function Pt(v,C,F){return v.expression!==C||v.type!==F?tr(qe(C,F),v):v}function Bt(v){let C=K(235);return C.flags|=64,C.expression=i().parenthesizeLeftSideOfAccess(v,!0),C.transformFlags|=br(C.expression)|1,C}function _n(v,C){return x.assert(!!(v.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),v.expression!==C?tr(Bt(C),v):v}function Jn(v,C){let F=K(236);switch(F.keywordToken=v,F.name=C,F.transformFlags|=br(F.name),v){case 105:F.transformFlags|=1024;break;case 102:F.transformFlags|=32;break;default:return x.assertNever(v)}return F.flowNode=void 0,F}function fn(v,C){return v.name!==C?tr(Jn(v.keywordToken,C),v):v}function qn(v,C){let F=K(239);return F.expression=v,F.literal=C,F.transformFlags|=br(F.expression)|br(F.literal)|1024,F}function fi(v,C,F){return v.expression!==C||v.literal!==F?tr(qn(C,F),v):v}function or(){let v=K(240);return v.transformFlags|=1024,v}function ni(v,C){let F=K(241);return F.statements=j(v),F.multiLine=C,F.transformFlags|=Ua(F.statements),F.jsDoc=void 0,F.locals=void 0,F.nextContainer=void 0,F}function cr(v,C){return v.statements!==C?tr(ni(C,v.multiLine),v):v}function Yo(v,C){let F=K(243);return F.modifiers=Ga(v),F.declarationList=To(C)?np(C):C,F.transformFlags|=Ua(F.modifiers)|br(F.declarationList),x_(F.modifiers)&128&&(F.transformFlags=1),F.jsDoc=void 0,F.flowNode=void 0,F}function Ha(v,C,F){return v.modifiers!==C||v.declarationList!==F?tr(Yo(C,F),v):v}function $d(){let v=K(242);return v.jsDoc=void 0,v}function fd(v){let C=K(244);return C.expression=i().parenthesizeExpressionOfExpressionStatement(v),C.transformFlags|=br(C.expression),C.jsDoc=void 0,C.flowNode=void 0,C}function Xg(v,C){return v.expression!==C?tr(fd(C),v):v}function LE(v,C,F){let se=K(245);return se.expression=v,se.thenStatement=Ib(C),se.elseStatement=Ib(F),se.transformFlags|=br(se.expression)|br(se.thenStatement)|br(se.elseStatement),se.jsDoc=void 0,se.flowNode=void 0,se}function w1(v,C,F,se){return v.expression!==C||v.thenStatement!==F||v.elseStatement!==se?tr(LE(C,F,se),v):v}function kE(v,C){let F=K(246);return F.statement=Ib(v),F.expression=C,F.transformFlags|=br(F.statement)|br(F.expression),F.jsDoc=void 0,F.flowNode=void 0,F}function kD(v,C,F){return v.statement!==C||v.expression!==F?tr(kE(C,F),v):v}function wD(v,C){let F=K(247);return F.expression=v,F.statement=Ib(C),F.transformFlags|=br(F.expression)|br(F.statement),F.jsDoc=void 0,F.flowNode=void 0,F}function OD(v,C,F){return v.expression!==C||v.statement!==F?tr(wD(C,F),v):v}function oA(v,C,F,se){let Ke=K(248);return Ke.initializer=v,Ke.condition=C,Ke.incrementor=F,Ke.statement=Ib(se),Ke.transformFlags|=br(Ke.initializer)|br(Ke.condition)|br(Ke.incrementor)|br(Ke.statement),Ke.jsDoc=void 0,Ke.locals=void 0,Ke.nextContainer=void 0,Ke.flowNode=void 0,Ke}function mS(v,C,F,se,Ke){return v.initializer!==C||v.condition!==F||v.incrementor!==se||v.statement!==Ke?tr(oA(C,F,se,Ke),v):v}function O1(v,C,F){let se=K(249);return se.initializer=v,se.expression=C,se.statement=Ib(F),se.transformFlags|=br(se.initializer)|br(se.expression)|br(se.statement),se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.flowNode=void 0,se}function WD(v,C,F,se){return v.initializer!==C||v.expression!==F||v.statement!==se?tr(O1(C,F,se),v):v}function W1(v,C,F,se){let Ke=K(250);return Ke.awaitModifier=v,Ke.initializer=C,Ke.expression=i().parenthesizeExpressionForDisallowedComma(F),Ke.statement=Ib(se),Ke.transformFlags|=br(Ke.awaitModifier)|br(Ke.initializer)|br(Ke.expression)|br(Ke.statement)|1024,v&&(Ke.transformFlags|=128),Ke.jsDoc=void 0,Ke.locals=void 0,Ke.nextContainer=void 0,Ke.flowNode=void 0,Ke}function F1(v,C,F,se,Ke){return v.awaitModifier!==C||v.initializer!==F||v.expression!==se||v.statement!==Ke?tr(W1(C,F,se,Ke),v):v}function z1(v){let C=K(251);return C.label=lc(v),C.transformFlags|=br(C.label)|4194304,C.jsDoc=void 0,C.flowNode=void 0,C}function B1(v,C){return v.label!==C?tr(z1(C),v):v}function aA(v){let C=K(252);return C.label=lc(v),C.transformFlags|=br(C.label)|4194304,C.jsDoc=void 0,C.flowNode=void 0,C}function G1(v,C){return v.label!==C?tr(aA(C),v):v}function _S(v){let C=K(253);return C.expression=v,C.transformFlags|=br(C.expression)|128|4194304,C.jsDoc=void 0,C.flowNode=void 0,C}function hS(v,C){return v.expression!==C?tr(_S(C),v):v}function ab(v,C){let F=K(254);return F.expression=v,F.statement=Ib(C),F.transformFlags|=br(F.expression)|br(F.statement),F.jsDoc=void 0,F.flowNode=void 0,F}function sb(v,C,F){return v.expression!==C||v.statement!==F?tr(ab(C,F),v):v}function cg(v,C){let F=K(255);return F.expression=i().parenthesizeExpressionForDisallowedComma(v),F.caseBlock=C,F.transformFlags|=br(F.expression)|br(F.caseBlock),F.jsDoc=void 0,F.flowNode=void 0,F.possiblyExhaustive=!1,F}function wE(v,C,F){return v.expression!==C||v.caseBlock!==F?tr(cg(C,F),v):v}function Qa(v,C){let F=K(256);return F.label=lc(v),F.statement=Ib(C),F.transformFlags|=br(F.label)|br(F.statement),F.jsDoc=void 0,F.flowNode=void 0,F}function sA(v,C,F){return v.label!==C||v.statement!==F?tr(Qa(C,F),v):v}function FD(v){let C=K(257);return C.expression=v,C.transformFlags|=br(C.expression),C.jsDoc=void 0,C.flowNode=void 0,C}function OE(v,C){return v.expression!==C?tr(FD(C),v):v}function Yg(v,C,F){let se=K(258);return se.tryBlock=v,se.catchClause=C,se.finallyBlock=F,se.transformFlags|=br(se.tryBlock)|br(se.catchClause)|br(se.finallyBlock),se.jsDoc=void 0,se.flowNode=void 0,se}function Ih(v,C,F,se){return v.tryBlock!==C||v.catchClause!==F||v.finallyBlock!==se?tr(Yg(C,F,se),v):v}function Mf(){let v=K(259);return v.jsDoc=void 0,v.flowNode=void 0,v}function Gu(v,C,F,se){let Ke=Y(260);return Ke.name=lc(v),Ke.exclamationToken=C,Ke.type=F,Ke.initializer=rx(se),Ke.transformFlags|=jv(Ke.name)|br(Ke.initializer)|(Ke.exclamationToken??Ke.type?1:0),Ke.jsDoc=void 0,Ke}function Ap(v,C,F,se,Ke){return v.name!==C||v.type!==se||v.exclamationToken!==F||v.initializer!==Ke?tr(Gu(C,F,se,Ke),v):v}function np(v,C=0){let F=K(261);return F.flags|=C&7,F.declarations=j(v),F.transformFlags|=Ua(F.declarations)|4194304,C&7&&(F.transformFlags|=263168),C&4&&(F.transformFlags|=4),F}function Qy(v,C){return v.declarations!==C?tr(np(C,v.flags),v):v}function lA(v,C,F,se,Ke,jt,_r){let eo=Y(262);if(eo.modifiers=Ga(v),eo.asteriskToken=C,eo.name=lc(F),eo.typeParameters=Ga(se),eo.parameters=j(Ke),eo.type=jt,eo.body=_r,!eo.body||x_(eo.modifiers)&128)eo.transformFlags=1;else{let Gs=x_(eo.modifiers)&1024,o_=!!eo.asteriskToken,xb=Gs&&o_;eo.transformFlags=Ua(eo.modifiers)|br(eo.asteriskToken)|jv(eo.name)|Ua(eo.typeParameters)|Ua(eo.parameters)|br(eo.type)|br(eo.body)&-67108865|(xb?128:Gs?256:o_?2048:0)|(eo.typeParameters||eo.type?1:0)|4194304}return eo.typeArguments=void 0,eo.jsDoc=void 0,eo.locals=void 0,eo.nextContainer=void 0,eo.endFlowNode=void 0,eo.returnFlowNode=void 0,eo}function zD(v,C,F,se,Ke,jt,_r,eo){return v.modifiers!==C||v.asteriskToken!==F||v.name!==se||v.typeParameters!==Ke||v.parameters!==jt||v.type!==_r||v.body!==eo?V1(lA(C,F,se,Ke,jt,_r,eo),v):v}function V1(v,C){return v!==C&&v.modifiers===C.modifiers&&(v.modifiers=C.modifiers),B(v,C)}function lb(v,C,F,se,Ke){let jt=Y(263);return jt.modifiers=Ga(v),jt.name=lc(C),jt.typeParameters=Ga(F),jt.heritageClauses=Ga(se),jt.members=j(Ke),x_(jt.modifiers)&128?jt.transformFlags=1:(jt.transformFlags|=Ua(jt.modifiers)|jv(jt.name)|Ua(jt.typeParameters)|Ua(jt.heritageClauses)|Ua(jt.members)|(jt.typeParameters?1:0)|1024,jt.transformFlags&8192&&(jt.transformFlags|=1)),jt.jsDoc=void 0,jt}function WE(v,C,F,se,Ke,jt){return v.modifiers!==C||v.name!==F||v.typeParameters!==se||v.heritageClauses!==Ke||v.members!==jt?tr(lb(C,F,se,Ke,jt),v):v}function j1(v,C,F,se,Ke){let jt=Y(264);return jt.modifiers=Ga(v),jt.name=lc(C),jt.typeParameters=Ga(F),jt.heritageClauses=Ga(se),jt.members=j(Ke),jt.transformFlags=1,jt.jsDoc=void 0,jt}function yc(v,C,F,se,Ke,jt){return v.modifiers!==C||v.name!==F||v.typeParameters!==se||v.heritageClauses!==Ke||v.members!==jt?tr(j1(C,F,se,Ke,jt),v):v}function Zy(v,C,F,se){let Ke=Y(265);return Ke.modifiers=Ga(v),Ke.name=lc(C),Ke.typeParameters=Ga(F),Ke.type=se,Ke.transformFlags=1,Ke.jsDoc=void 0,Ke.locals=void 0,Ke.nextContainer=void 0,Ke}function U1(v,C,F,se,Ke){return v.modifiers!==C||v.name!==F||v.typeParameters!==se||v.type!==Ke?tr(Zy(C,F,se,Ke),v):v}function Zm(v,C,F){let se=Y(266);return se.modifiers=Ga(v),se.name=lc(C),se.members=j(F),se.transformFlags|=Ua(se.modifiers)|br(se.name)|Ua(se.members)|1,se.transformFlags&=-67108865,se.jsDoc=void 0,se}function cA(v,C,F,se){return v.modifiers!==C||v.name!==F||v.members!==se?tr(Zm(C,F,se),v):v}function Ve(v,C,F,se=0){let Ke=Y(267);return Ke.modifiers=Ga(v),Ke.flags|=se&2088,Ke.name=C,Ke.body=F,x_(Ke.modifiers)&128?Ke.transformFlags=1:Ke.transformFlags|=Ua(Ke.modifiers)|br(Ke.name)|br(Ke.body)|1,Ke.transformFlags&=-67108865,Ke.jsDoc=void 0,Ke.locals=void 0,Ke.nextContainer=void 0,Ke}function e_(v,C,F,se){return v.modifiers!==C||v.name!==F||v.body!==se?tr(Ve(C,F,se,v.flags),v):v}function md(v){let C=K(268);return C.statements=j(v),C.transformFlags|=Ua(C.statements),C.jsDoc=void 0,C}function FE(v,C){return v.statements!==C?tr(md(C),v):v}function H1(v){let C=K(269);return C.clauses=j(v),C.transformFlags|=Ua(C.clauses),C.locals=void 0,C.nextContainer=void 0,C}function cb(v,C){return v.clauses!==C?tr(H1(C),v):v}function ev(v){let C=Y(270);return C.name=lc(v),C.transformFlags|=Ek(C.name)|1,C.modifiers=void 0,C.jsDoc=void 0,C}function tv(v,C){return v.name!==C?EM(ev(C),v):v}function EM(v,C){return v!==C&&(v.modifiers=C.modifiers),tr(v,C)}function Ka(v,C,F,se){let Ke=Y(271);return Ke.modifiers=Ga(v),Ke.name=lc(F),Ke.isTypeOnly=C,Ke.moduleReference=se,Ke.transformFlags|=Ua(Ke.modifiers)|Ek(Ke.name)|br(Ke.moduleReference),vh(Ke.moduleReference)||(Ke.transformFlags|=1),Ke.transformFlags&=-67108865,Ke.jsDoc=void 0,Ke}function t_(v,C,F,se,Ke){return v.modifiers!==C||v.isTypeOnly!==F||v.name!==se||v.moduleReference!==Ke?tr(Ka(C,F,se,Ke),v):v}function dA(v,C,F,se){let Ke=K(272);return Ke.modifiers=Ga(v),Ke.importClause=C,Ke.moduleSpecifier=F,Ke.attributes=Ke.assertClause=se,Ke.transformFlags|=br(Ke.importClause)|br(Ke.moduleSpecifier),Ke.transformFlags&=-67108865,Ke.jsDoc=void 0,Ke}function uA(v,C,F,se,Ke){return v.modifiers!==C||v.importClause!==F||v.moduleSpecifier!==se||v.attributes!==Ke?tr(dA(C,F,se,Ke),v):v}function zE(v,C,F){let se=Y(273);return se.isTypeOnly=v,se.name=C,se.namedBindings=F,se.transformFlags|=br(se.name)|br(se.namedBindings),v&&(se.transformFlags|=1),se.transformFlags&=-67108865,se}function pA(v,C,F,se){return v.isTypeOnly!==C||v.name!==F||v.namedBindings!==se?tr(zE(C,F,se),v):v}function om(v,C){let F=K(300);return F.elements=j(v),F.multiLine=C,F.token=132,F.transformFlags|=4,F}function am(v,C,F){return v.elements!==C||v.multiLine!==F?tr(om(C,F),v):v}function $g(v,C){let F=K(301);return F.name=v,F.value=C,F.transformFlags|=4,F}function K1(v,C,F){return v.name!==C||v.value!==F?tr($g(C,F),v):v}function n_(v,C){let F=K(302);return F.assertClause=v,F.multiLine=C,F}function BD(v,C,F){return v.assertClause!==C||v.multiLine!==F?tr(n_(C,F),v):v}function gS(v,C,F){let se=K(300);return se.token=F??118,se.elements=j(v),se.multiLine=C,se.transformFlags|=4,se}function qi(v,C,F){return v.elements!==C||v.multiLine!==F?tr(gS(C,F,v.token),v):v}function Qr(v,C){let F=K(301);return F.name=v,F.value=C,F.transformFlags|=4,F}function xh(v,C,F){return v.name!==C||v.value!==F?tr(Qr(C,F),v):v}function Vu(v){let C=Y(274);return C.name=v,C.transformFlags|=br(C.name),C.transformFlags&=-67108865,C}function SM(v,C){return v.name!==C?tr(Vu(C),v):v}function Qg(v){let C=Y(280);return C.name=v,C.transformFlags|=br(C.name)|32,C.transformFlags&=-67108865,C}function TM(v,C){return v.name!==C?tr(Qg(C),v):v}function db(v){let C=K(275);return C.elements=j(v),C.transformFlags|=Ua(C.elements),C.transformFlags&=-67108865,C}function hl(v,C){return v.elements!==C?tr(db(C),v):v}function Bp(v,C,F){let se=Y(276);return se.isTypeOnly=v,se.propertyName=C,se.name=F,se.transformFlags|=br(se.propertyName)|br(se.name),se.transformFlags&=-67108865,se}function dg(v,C,F,se){return v.isTypeOnly!==C||v.propertyName!==F||v.name!==se?tr(Bp(C,F,se),v):v}function sm(v,C,F){let se=Y(277);return se.modifiers=Ga(v),se.isExportEquals=C,se.expression=C?i().parenthesizeRightSideOfBinary(64,void 0,F):i().parenthesizeExpressionOfExportDefault(F),se.transformFlags|=Ua(se.modifiers)|br(se.expression),se.transformFlags&=-67108865,se.jsDoc=void 0,se}function ub(v,C,F){return v.modifiers!==C||v.expression!==F?tr(sm(C,v.isExportEquals,F),v):v}function Pm(v,C,F,se,Ke){let jt=Y(278);return jt.modifiers=Ga(v),jt.isTypeOnly=C,jt.exportClause=F,jt.moduleSpecifier=se,jt.attributes=jt.assertClause=Ke,jt.transformFlags|=Ua(jt.modifiers)|br(jt.exportClause)|br(jt.moduleSpecifier),jt.transformFlags&=-67108865,jt.jsDoc=void 0,jt}function Zg(v,C,F,se,Ke,jt){return v.modifiers!==C||v.isTypeOnly!==F||v.exportClause!==se||v.moduleSpecifier!==Ke||v.attributes!==jt?yS(Pm(C,F,se,Ke,jt),v):v}function yS(v,C){return v!==C&&v.modifiers===C.modifiers&&(v.modifiers=C.modifiers),tr(v,C)}function fA(v){let C=K(279);return C.elements=j(v),C.transformFlags|=Ua(C.elements),C.transformFlags&=-67108865,C}function ug(v,C){return v.elements!==C?tr(fA(C),v):v}function J1(v,C,F){let se=K(281);return se.isTypeOnly=v,se.propertyName=lc(C),se.name=lc(F),se.transformFlags|=br(se.propertyName)|br(se.name),se.transformFlags&=-67108865,se.jsDoc=void 0,se}function pg(v,C,F,se){return v.isTypeOnly!==C||v.propertyName!==F||v.name!==se?tr(J1(C,F,se),v):v}function G_(){let v=Y(282);return v.jsDoc=void 0,v}function nv(v){let C=K(283);return C.expression=v,C.transformFlags|=br(C.expression),C.transformFlags&=-67108865,C}function GD(v,C){return v.expression!==C?tr(nv(C),v):v}function VD(v){return K(v)}function jD(v,C,F=!1){let se=mA(v,F?C&&i().parenthesizeNonArrayTypeOfPostfixType(C):C);return se.postfix=F,se}function mA(v,C){let F=K(v);return F.type=C,F}function qs(v,C,F){return C.type!==F?tr(jD(v,F,C.postfix),C):C}function vS(v,C,F){return C.type!==F?tr(mA(v,F),C):C}function _A(v,C){let F=Y(324);return F.parameters=Ga(v),F.type=C,F.transformFlags=Ua(F.parameters)|(F.type?1:0),F.jsDoc=void 0,F.locals=void 0,F.nextContainer=void 0,F.typeArguments=void 0,F}function Mm(v,C,F){return v.parameters!==C||v.type!==F?tr(_A(C,F),v):v}function pb(v,C=!1){let F=Y(329);return F.jsDocPropertyTags=Ga(v),F.isArrayType=C,F}function UD(v,C,F){return v.jsDocPropertyTags!==C||v.isArrayType!==F?tr(pb(C,F),v):v}function hA(v){let C=K(316);return C.type=v,C}function AM(v,C){return v.type!==C?tr(hA(C),v):v}function fr(v,C,F){let se=Y(330);return se.typeParameters=Ga(v),se.parameters=j(C),se.type=F,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se}function rd(v,C,F,se){return v.typeParameters!==C||v.parameters!==F||v.type!==se?tr(fr(C,F,se),v):v}function Qi(v){let C=WU(v.kind);return v.tagName.escapedText===pl(C)?v.tagName:xe(C)}function uf(v,C,F){let se=K(v);return se.tagName=C,se.comment=F,se}function rv(v,C,F){let se=Y(v);return se.tagName=C,se.comment=F,se}function V_(v,C,F,se){let Ke=uf(352,v??xe("template"),se);return Ke.constraint=C,Ke.typeParameters=j(F),Ke}function ar(v,C=Qi(v),F,se,Ke){return v.tagName!==C||v.constraint!==F||v.typeParameters!==se||v.comment!==Ke?tr(V_(C,F,se,Ke),v):v}function gA(v,C,F,se){let Ke=rv(353,v??xe("typedef"),se);return Ke.typeExpression=C,Ke.fullName=F,Ke.name=SH(F),Ke.locals=void 0,Ke.nextContainer=void 0,Ke}function BE(v,C=Qi(v),F,se,Ke){return v.tagName!==C||v.typeExpression!==F||v.fullName!==se||v.comment!==Ke?tr(gA(C,F,se,Ke),v):v}function qc(v,C,F,se,Ke,jt){let _r=rv(348,v??xe("param"),jt);return _r.typeExpression=se,_r.name=C,_r.isNameFirst=!!Ke,_r.isBracketed=F,_r}function Rh(v,C=Qi(v),F,se,Ke,jt,_r){return v.tagName!==C||v.name!==F||v.isBracketed!==se||v.typeExpression!==Ke||v.isNameFirst!==jt||v.comment!==_r?tr(qc(C,F,se,Ke,jt,_r),v):v}function Lm(v,C,F,se,Ke,jt){let _r=rv(355,v??xe("prop"),jt);return _r.typeExpression=se,_r.name=C,_r.isNameFirst=!!Ke,_r.isBracketed=F,_r}function bS(v,C=Qi(v),F,se,Ke,jt,_r){return v.tagName!==C||v.name!==F||v.isBracketed!==se||v.typeExpression!==Ke||v.isNameFirst!==jt||v.comment!==_r?tr(Lm(C,F,se,Ke,jt,_r),v):v}function ES(v,C,F,se){let Ke=rv(345,v??xe("callback"),se);return Ke.typeExpression=C,Ke.fullName=F,Ke.name=SH(F),Ke.locals=void 0,Ke.nextContainer=void 0,Ke}function fb(v,C=Qi(v),F,se,Ke){return v.tagName!==C||v.typeExpression!==F||v.fullName!==se||v.comment!==Ke?tr(ES(C,F,se,Ke),v):v}function ey(v,C,F){let se=uf(346,v??xe("overload"),F);return se.typeExpression=C,se}function yA(v,C=Qi(v),F,se){return v.tagName!==C||v.typeExpression!==F||v.comment!==se?tr(ey(C,F,se),v):v}function km(v,C,F){let se=uf(335,v??xe("augments"),F);return se.class=C,se}function GE(v,C=Qi(v),F,se){return v.tagName!==C||v.class!==F||v.comment!==se?tr(km(C,F,se),v):v}function fg(v,C,F){let se=uf(336,v??xe("implements"),F);return se.class=C,se}function mb(v,C,F){let se=uf(354,v??xe("see"),F);return se.name=C,se}function q1(v,C,F,se){return v.tagName!==C||v.name!==F||v.comment!==se?tr(mb(C,F,se),v):v}function VE(v){let C=K(317);return C.name=v,C}function HD(v,C){return v.name!==C?tr(VE(C),v):v}function SS(v,C){let F=K(318);return F.left=v,F.right=C,F.transformFlags|=br(F.left)|br(F.right),F}function vA(v,C,F){return v.left!==C||v.right!==F?tr(SS(C,F),v):v}function Gp(v,C){let F=K(331);return F.name=v,F.text=C,F}function bA(v,C,F){return v.name!==C?tr(Gp(C,F),v):v}function Vl(v,C){let F=K(332);return F.name=v,F.text=C,F}function Wc(v,C,F){return v.name!==C?tr(Vl(C,F),v):v}function EA(v,C){let F=K(333);return F.name=v,F.text=C,F}function Td(v,C,F){return v.name!==C?tr(EA(C,F),v):v}function rp(v,C=Qi(v),F,se){return v.tagName!==C||v.class!==F||v.comment!==se?tr(fg(C,F,se),v):v}function jE(v,C,F){return uf(v,C??xe(WU(v)),F)}function Lf(v,C,F=Qi(C),se){return C.tagName!==F||C.comment!==se?tr(jE(v,F,se),C):C}function _b(v,C,F,se){let Ke=uf(v,C??xe(WU(v)),se);return Ke.typeExpression=F,Ke}function hb(v,C,F=Qi(C),se,Ke){return C.tagName!==F||C.typeExpression!==se||C.comment!==Ke?tr(_b(v,F,se,Ke),C):C}function id(v,C){return uf(334,v,C)}function X1(v,C,F){return v.tagName!==C||v.comment!==F?tr(id(C,F),v):v}function Vp(v,C,F){let se=rv(347,v??xe(WU(347)),F);return se.typeExpression=C,se.locals=void 0,se.nextContainer=void 0,se}function SA(v,C=Qi(v),F,se){return v.tagName!==C||v.typeExpression!==F||v.comment!==se?tr(Vp(C,F,se),v):v}function TA(v){let C=K(328);return C.text=v,C}function Bs(v,C){return v.text!==C?tr(TA(C),v):v}function KD(v,C){let F=K(327);return F.comment=v,F.tags=Ga(C),F}function UE(v,C,F){return v.comment!==C||v.tags!==F?tr(KD(C,F),v):v}function TS(v,C,F){let se=K(284);return se.openingElement=v,se.children=j(C),se.closingElement=F,se.transformFlags|=br(se.openingElement)|Ua(se.children)|br(se.closingElement)|2,se}function IM(v,C,F,se){return v.openingElement!==C||v.children!==F||v.closingElement!==se?tr(TS(C,F,se),v):v}function mu(v,C,F){let se=K(285);return se.tagName=v,se.typeArguments=Ga(C),se.attributes=F,se.transformFlags|=br(se.tagName)|Ua(se.typeArguments)|br(se.attributes)|2,se.typeArguments&&(se.transformFlags|=1),se}function ty(v,C,F,se){return v.tagName!==C||v.typeArguments!==F||v.attributes!==se?tr(mu(C,F,se),v):v}function j_(v,C,F){let se=K(286);return se.tagName=v,se.typeArguments=Ga(C),se.attributes=F,se.transformFlags|=br(se.tagName)|Ua(se.typeArguments)|br(se.attributes)|2,C&&(se.transformFlags|=1),se}function Y1(v,C,F,se){return v.tagName!==C||v.typeArguments!==F||v.attributes!==se?tr(j_(C,F,se),v):v}function Ip(v){let C=K(287);return C.tagName=v,C.transformFlags|=br(C.tagName)|2,C}function $1(v,C){return v.tagName!==C?tr(Ip(C),v):v}function ip(v,C,F){let se=K(288);return se.openingFragment=v,se.children=j(C),se.closingFragment=F,se.transformFlags|=br(se.openingFragment)|Ua(se.children)|br(se.closingFragment)|2,se}function Q1(v,C,F,se){return v.openingFragment!==C||v.children!==F||v.closingFragment!==se?tr(ip(C,F,se),v):v}function iv(v,C){let F=K(12);return F.text=v,F.containsOnlyTriviaWhiteSpaces=!!C,F.transformFlags|=2,F}function AA(v,C,F){return v.text!==C||v.containsOnlyTriviaWhiteSpaces!==F?tr(iv(C,F),v):v}function JD(){let v=K(289);return v.transformFlags|=2,v}function qD(){let v=K(290);return v.transformFlags|=2,v}function IA(v,C){let F=Y(291);return F.name=v,F.initializer=C,F.transformFlags|=br(F.name)|br(F.initializer)|2,F}function XD(v,C,F){return v.name!==C||v.initializer!==F?tr(IA(C,F),v):v}function gb(v){let C=Y(292);return C.properties=j(v),C.transformFlags|=Ua(C.properties)|2,C}function xp(v,C){return v.properties!==C?tr(gb(C),v):v}function Dh(v){let C=K(293);return C.expression=v,C.transformFlags|=br(C.expression)|2,C}function YD(v,C){return v.expression!==C?tr(Dh(C),v):v}function xA(v,C){let F=K(294);return F.dotDotDotToken=v,F.expression=C,F.transformFlags|=br(F.dotDotDotToken)|br(F.expression)|2,F}function es(v,C){return v.expression!==C?tr(xA(v.dotDotDotToken,C),v):v}function Sr(v,C){let F=K(295);return F.namespace=v,F.name=C,F.transformFlags|=br(F.namespace)|br(F.name)|2,F}function pf(v,C,F){return v.namespace!==C||v.name!==F?tr(Sr(C,F),v):v}function Ru(v,C){let F=K(296);return F.expression=i().parenthesizeExpressionForDisallowedComma(v),F.statements=j(C),F.transformFlags|=br(F.expression)|Ua(F.statements),F.jsDoc=void 0,F}function AS(v,C,F){return v.expression!==C||v.statements!==F?tr(Ru(C,F),v):v}function $D(v){let C=K(297);return C.statements=j(v),C.transformFlags=Ua(C.statements),C}function HE(v,C){return v.statements!==C?tr($D(C),v):v}function IS(v,C){let F=K(298);switch(F.token=v,F.types=j(C),F.transformFlags|=Ua(F.types),v){case 96:F.transformFlags|=1024;break;case 119:F.transformFlags|=1;break;default:return x.assertNever(v)}return F}function RA(v,C){return v.types!==C?tr(IS(v.token,C),v):v}function mg(v,C){let F=K(299);return F.variableDeclaration=NM(v),F.block=C,F.transformFlags|=br(F.variableDeclaration)|br(F.block)|(v?0:64),F.locals=void 0,F.nextContainer=void 0,F}function r_(v,C,F){return v.variableDeclaration!==C||v.block!==F?tr(mg(C,F),v):v}function ff(v,C){let F=Y(303);return F.name=lc(v),F.initializer=i().parenthesizeExpressionForDisallowedComma(C),F.transformFlags|=jv(F.name)|br(F.initializer),F.modifiers=void 0,F.questionToken=void 0,F.exclamationToken=void 0,F.jsDoc=void 0,F}function wm(v,C,F){return v.name!==C||v.initializer!==F?ny(ff(C,F),v):v}function ny(v,C){return v!==C&&(v.modifiers=C.modifiers,v.questionToken=C.questionToken,v.exclamationToken=C.exclamationToken),tr(v,C)}function _g(v,C){let F=Y(304);return F.name=lc(v),F.objectAssignmentInitializer=C&&i().parenthesizeExpressionForDisallowedComma(C),F.transformFlags|=Ek(F.name)|br(F.objectAssignmentInitializer)|1024,F.equalsToken=void 0,F.modifiers=void 0,F.questionToken=void 0,F.exclamationToken=void 0,F.jsDoc=void 0,F}function hg(v,C,F){return v.name!==C||v.objectAssignmentInitializer!==F?Z1(_g(C,F),v):v}function Z1(v,C){return v!==C&&(v.modifiers=C.modifiers,v.questionToken=C.questionToken,v.exclamationToken=C.exclamationToken,v.equalsToken=C.equalsToken),tr(v,C)}function sc(v){let C=Y(305);return C.expression=i().parenthesizeExpressionForDisallowedComma(v),C.transformFlags|=br(C.expression)|128|65536,C.jsDoc=void 0,C}function QD(v,C){return v.expression!==C?tr(sc(C),v):v}function kf(v,C){let F=Y(306);return F.name=lc(v),F.initializer=C&&i().parenthesizeExpressionForDisallowedComma(C),F.transformFlags|=br(F.name)|br(F.initializer)|1,F.jsDoc=void 0,F}function Ch(v,C,F){return v.name!==C||v.initializer!==F?tr(kf(C,F),v):v}function mf(v,C,F){let se=t.createBaseSourceFileNode(312);return se.statements=j(v),se.endOfFileToken=C,se.flags|=F,se.text="",se.fileName="",se.path="",se.resolvedPath="",se.originalFileName="",se.languageVersion=0,se.languageVariant=0,se.scriptKind=0,se.isDeclarationFile=!1,se.hasNoDefaultLib=!1,se.transformFlags|=Ua(se.statements)|br(se.endOfFileToken),se.locals=void 0,se.nextContainer=void 0,se.endFlowNode=void 0,se.nodeCount=0,se.identifierCount=0,se.symbolCount=0,se.parseDiagnostics=void 0,se.bindDiagnostics=void 0,se.bindSuggestionDiagnostics=void 0,se.lineMap=void 0,se.externalModuleIndicator=void 0,se.setExternalModuleIndicator=void 0,se.pragmas=void 0,se.checkJsDirective=void 0,se.referencedFiles=void 0,se.typeReferenceDirectives=void 0,se.libReferenceDirectives=void 0,se.amdDependencies=void 0,se.commentDirectives=void 0,se.identifiers=void 0,se.packageJsonLocations=void 0,se.packageJsonScope=void 0,se.imports=void 0,se.moduleAugmentations=void 0,se.ambientModuleNames=void 0,se.classifiableNames=void 0,se.impliedNodeFormat=void 0,se}function xS(v){let C=Object.create(v.redirectTarget);return Object.defineProperties(C,{id:{get(){return this.redirectInfo.redirectTarget.id},set(F){this.redirectInfo.redirectTarget.id=F}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(F){this.redirectInfo.redirectTarget.symbol=F}}}),C.redirectInfo=v,C}function KE(v){let C=xS(v.redirectInfo);return C.flags|=v.flags&-17,C.fileName=v.fileName,C.path=v.path,C.resolvedPath=v.resolvedPath,C.originalFileName=v.originalFileName,C.packageJsonLocations=v.packageJsonLocations,C.packageJsonScope=v.packageJsonScope,C.emitNode=void 0,C}function ex(v){let C=t.createBaseSourceFileNode(312);C.flags|=v.flags&-17;for(let F in v)if(!(Ss(C,F)||!Ss(v,F))){if(F==="emitNode"){C.emitNode=void 0;continue}C[F]=v[F]}return C}function DA(v){let C=v.redirectInfo?KE(v):ex(v);return r(C,v),C}function _f(v,C,F,se,Ke,jt,_r){let eo=DA(v);return eo.statements=j(C),eo.isDeclarationFile=F,eo.referencedFiles=se,eo.typeReferenceDirectives=Ke,eo.hasNoDefaultLib=jt,eo.libReferenceDirectives=_r,eo.transformFlags=Ua(eo.statements)|br(eo.endOfFileToken),eo}function Ds(v,C,F=v.isDeclarationFile,se=v.referencedFiles,Ke=v.typeReferenceDirectives,jt=v.hasNoDefaultLib,_r=v.libReferenceDirectives){return v.statements!==C||v.isDeclarationFile!==F||v.referencedFiles!==se||v.typeReferenceDirectives!==Ke||v.hasNoDefaultLib!==jt||v.libReferenceDirectives!==_r?tr(_f(v,C,F,se,Ke,jt,_r),v):v}function RS(v,C=Xe){let F=K(313);return F.prepends=C,F.sourceFiles=v,F.syntheticFileReferences=void 0,F.syntheticTypeReferences=void 0,F.syntheticLibReferences=void 0,F.hasNoDefaultLib=void 0,F}function DS(v,C,F=Xe){return v.sourceFiles!==C||v.prepends!==F?tr(RS(C,F),v):v}function ry(v,C,F){let se=K(314);return se.prologues=v,se.syntheticReferences=C,se.texts=F,se.fileName="",se.text="",se.referencedFiles=Xe,se.libReferenceDirectives=Xe,se.getLineAndCharacterOfPosition=Ke=>hs(se,Ke),se}function yb(v,C){let F=K(v);return F.data=C,F}function JE(v){return yb(307,v)}function I(v,C){let F=yb(308,v);return F.texts=C,F}function oe(v,C){return yb(C?310:309,v)}function dt(v){let C=K(311);return C.data=v.data,C.section=v,C}function nn(){let v=K(315);return v.javascriptText="",v.declarationText="",v}function Mr(v,C=!1,F){let se=K(237);return se.type=v,se.isSpread=C,se.tupleNameSource=F,se}function ki(v){let C=K(358);return C._children=v,C}function vi(v){let C=K(359);return C.original=v,at(C,v),C}function Zi(v,C){let F=K(360);return F.expression=v,F.original=C,F.transformFlags|=br(F.expression)|1,at(F,C),F}function _a(v,C){return v.expression!==C?tr(Zi(C,v.original),v):v}function Qd(v){if(Ks(v)&&!ZC(v)&&!v.original&&!v.emitNode&&!v.id){if(cP(v))return v.elements;if(dr(v)&&tae(v.operatorToken))return[v.left,v.right]}return v}function Du(v){let C=K(361);return C.elements=j(Hte(v,Qd)),C.transformFlags|=Ua(C.elements),C}function wf(v,C){return v.elements!==C?tr(Du(C),v):v}function vb(v,C){let F=K(362);return F.expression=v,F.thisArg=C,F.transformFlags|=br(F.expression)|br(F.thisArg),F}function Si(v,C,F){return v.expression!==C||v.thisArg!==F?tr(vb(C,F),v):v}function Nh(v){let C=re(v.escapedText);return C.flags|=v.flags&-17,C.transformFlags=v.transformFlags,r(C,v),xk(C,{...v.emitNode.autoGenerate}),C}function Vn(v){let C=re(v.escapedText);C.flags|=v.flags&-17,C.jsDoc=v.jsDoc,C.flowNode=v.flowNode,C.symbol=v.symbol,C.transformFlags=v.transformFlags,r(C,v);let F=DT(v);return F&&Fy(C,F),C}function tx(v){let C=Ge(v.escapedText);return C.flags|=v.flags&-17,C.transformFlags=v.transformFlags,r(C,v),xk(C,{...v.emitNode.autoGenerate}),C}function bb(v){let C=Ge(v.escapedText);return C.flags|=v.flags&-17,C.transformFlags=v.transformFlags,r(C,v),C}function Eb(v){if(v===void 0)return v;if(Yi(v))return DA(v);if(rl(v))return Nh(v);if(Fe(v))return Vn(v);if(aT(v))return tx(v);if(Ki(v))return bb(v);let C=ZL(v.kind)?t.createBaseNode(v.kind):t.createBaseTokenNode(v.kind);C.flags|=v.flags&-17,C.transformFlags=v.transformFlags,r(C,v);for(let F in v)Ss(C,F)||!Ss(v,F)||(C[F]=v[F]);return C}function CA(v,C,F){return Un(Fu(void 0,void 0,void 0,void 0,C?[C]:[],void 0,ni(v,!0)),void 0,F?[F]:[])}function CS(v,C,F){return Un(Pf(void 0,void 0,C?[C]:[],void 0,void 0,ni(v,!0)),void 0,F?[F]:[])}function U_(){return Sp(ce("0"))}function Ph(v){return sm(void 0,!1,v)}function ZD(v){return Pm(void 0,!1,fA([J1(!1,void 0,v)]))}function NA(v,C){return C==="null"?w.createStrictEquality(v,Wt()):C==="undefined"?w.createStrictEquality(v,U_()):w.createStrictEquality(Fd(v),me(C))}function UB(v,C){return C==="null"?w.createStrictInequality(v,Wt()):C==="undefined"?w.createStrictInequality(v,U_()):w.createStrictInequality(Fd(v),me(C))}function Sb(v,C,F){return oT(v)?Xo(ys(v,void 0,C),void 0,void 0,F):Un(zs(v,C),void 0,F)}function l8(v,C,F){return Sb(v,"bind",[C,...F])}function c8(v,C,F){return Sb(v,"call",[C,...F])}function qE(v,C,F){return Sb(v,"apply",[C,F])}function i_(v,C,F){return Sb(xe(v),C,F)}function xM(v,C){return Sb(v,"slice",C===void 0?[]:[YE(C)])}function Mh(v,C){return Sb(v,"concat",C)}function nx(v,C,F){return i_("Object","defineProperty",[v,YE(C),F])}function d8(v,C){return i_("Object","getOwnPropertyDescriptor",[v,YE(C)])}function H_(v,C,F){return i_("Reflect","get",F?[v,C,F]:[v,C])}function X(v,C,F,se){return i_("Reflect","set",se?[v,C,F,se]:[v,C,F])}function Te(v,C,F){return F?(v.push(ff(C,F)),!0):!1}function Ue(v,C){let F=[];Te(F,"enumerable",YE(v.enumerable)),Te(F,"configurable",YE(v.configurable));let se=Te(F,"writable",YE(v.writable));se=Te(F,"value",v.value)||se;let Ke=Te(F,"get",v.get);return Ke=Te(F,"set",v.set)||Ke,x.assert(!(se&&Ke),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),qo(F,!C)}function St(v,C){switch(v.kind){case 217:return lf(v,C);case 216:return Zl(v,v.type,C);case 234:return df(v,C,v.type);case 238:return Pt(v,C,v.type);case 235:return we(v,C);case 360:return _a(v,C)}}function xt(v){return Ou(v)&&Ks(v)&&Ks(Wy(v))&&Ks(C_(v))&&!gt(IR(v))&&!gt(Ik(v))}function Vt(v,C,F=15){return v&&$4(v,F)&&!xt(v)?St(v,Vt(v.expression,C)):C}function wr(v,C,F){if(!C)return v;let se=sA(C,C.label,H0(C.statement)?wr(v,C.statement):v);return F&&F(C),se}function Oi(v,C){let F=fs(v);switch(F.kind){case 80:return C;case 110:case 9:case 10:case 11:return!1;case 209:return F.elements.length!==0;case 210:return F.properties.length>0;default:return!0}}function Ci(v,C,F,se=!1){let Ke=Yl(v,15),jt,_r;return ku(Ke)?(jt=tt(),_r=Ke):aP(Ke)?(jt=tt(),_r=F!==void 0&&F<2?at(xe("_super"),Ke):Ke):za(Ke)&8192?(jt=U_(),_r=i().parenthesizeLeftSideOfAccess(Ke,!1)):kr(Ke)?Oi(Ke.expression,se)?(jt=fe(C),_r=zs(at(w.createAssignment(jt,Ke.expression),Ke.expression),Ke.name),at(_r,Ke)):(jt=Ke.expression,_r=Ke):Js(Ke)?Oi(Ke.expression,se)?(jt=fe(C),_r=Oc(at(w.createAssignment(jt,Ke.expression),Ke.expression),Ke.argumentExpression),at(_r,Ke)):(jt=Ke.expression,_r=Ke):(jt=U_(),_r=i().parenthesizeLeftSideOfAccess(v,!1)),{target:_r,thisArg:jt}}function mi(v,C){return zs(Jc(qo([ae(void 0,"value",[hi(void 0,void 0,v,void 0,void 0,void 0)],ni([fd(C)]))])),"value")}function Xi(v){return v.length>10?Du(v):tu(v,w.createComma)}function cs(v,C,F,se=0,Ke){let jt=Ke?v&&eF(v):Po(v);if(jt&&Fe(jt)&&!rl(jt)){let _r=ja(at(Eb(jt),jt),jt.parent);return se|=za(jt),F||(se|=96),C||(se|=3072),se&&lr(_r,se),_r}return Ce(v)}function As(v,C,F){return cs(v,C,F,98304)}function $a(v,C,F,se){return cs(v,C,F,32768,se)}function Of(v,C,F){return cs(v,C,F,16384)}function K_(v,C,F){return cs(v,C,F)}function gg(v,C,F,se){let Ke=zs(v,Ks(C)?C:Eb(C));at(Ke,C);let jt=0;return se||(jt|=96),F||(jt|=3072),jt&&lr(Ke,jt),Ke}function iy(v,C,F,se){return v&&$r(C,32)?gg(v,cs(C),F,se):Of(C,F,se)}function oy(v,C,F,se){let Ke=PA(v,C,0,F);return eC(v,C,Ke,se)}function Tb(v){return Da(v.expression)&&v.expression.text==="use strict"}function op(){return Jd(fd(me("use strict")))}function PA(v,C,F=0,se){x.assert(C.length===0,"Prologue directives should be at the first statement in the target statements array");let Ke=!1,jt=v.length;for(;Feo&&o_.splice(Ke,0,...C.slice(eo,Gs)),eo>_r&&o_.splice(se,0,...C.slice(_r,eo)),_r>jt&&o_.splice(F,0,...C.slice(jt,_r)),jt>0)if(F===0)o_.splice(0,0,...C.slice(0,jt));else{let xb=new Map;for(let Om=0;Om=0;Om--){let $E=C[Om];xb.has($E.expression.text)||o_.unshift($E)}}return v0(v)?at(j(o_,v.hasTrailingComma),v):v}function Ab(v,C){let F;return typeof C=="number"?F=Zt(C):F=C,fl(v)?Kt(v,F,v.name,v.constraint,v.default):Ao(v)?uo(v,F,v.dotDotDotToken,v.name,v.questionToken,v.type,v.initializer):RR(v)?Ut(v,F,v.typeParameters,v.parameters,v.type):_p(v)?Ur(v,F,v.name,v.questionToken,v.type):Uo(v)?Ye(v,F,v.name,v.questionToken??v.exclamationToken,v.type,v.initializer):_h(v)?In(v,F,v.name,v.questionToken,v.typeParameters,v.parameters,v.type):Ul(v)?yi(v,F,v.asteriskToken,v.name,v.questionToken,v.typeParameters,v.parameters,v.type,v.body):Pl(v)?kn(v,F,v.parameters,v.body):Qp(v)?lt(v,F,v.name,v.parameters,v.type,v.body):hp(v)?ke(v,F,v.name,v.parameters,v.body):G0(v)?Ft(v,F,v.parameters,v.type):Ps(v)?xu(v,F,v.asteriskToken,v.name,v.typeParameters,v.parameters,v.type,v.body):Os(v)?z_(v,F,v.typeParameters,v.parameters,v.type,v.equalsGreaterThanToken,v.body):Zc(v)?Nm(v,F,v.name,v.typeParameters,v.heritageClauses,v.members):Ml(v)?Ha(v,F,v.declarationList):Ec(v)?zD(v,F,v.asteriskToken,v.name,v.typeParameters,v.parameters,v.type,v.body):Sc(v)?WE(v,F,v.name,v.typeParameters,v.heritageClauses,v.members):pu(v)?yc(v,F,v.name,v.typeParameters,v.heritageClauses,v.members):Tm(v)?U1(v,F,v.name,v.typeParameters,v.type):hE(v)?cA(v,F,v.name,v.members):ql(v)?e_(v,F,v.name,v.body):td(v)?t_(v,F,v.isTypeOnly,v.name,v.moduleReference):Lc(v)?uA(v,F,v.importClause,v.moduleSpecifier,v.attributes):Ll(v)?ub(v,F,v.expression):Xl(v)?Zg(v,F,v.isTypeOnly,v.exportClause,v.moduleSpecifier,v.attributes):x.assertNever(v)}function tC(v,C){return Ao(v)?uo(v,C,v.dotDotDotToken,v.name,v.questionToken,v.type,v.initializer):Uo(v)?Ye(v,C,v.name,v.questionToken??v.exclamationToken,v.type,v.initializer):Ul(v)?yi(v,C,v.asteriskToken,v.name,v.questionToken,v.typeParameters,v.parameters,v.type,v.body):Qp(v)?lt(v,C,v.name,v.parameters,v.type,v.body):hp(v)?ke(v,C,v.name,v.parameters,v.body):Zc(v)?Nm(v,C,v.name,v.typeParameters,v.heritageClauses,v.members):Sc(v)?WE(v,C,v.name,v.typeParameters,v.heritageClauses,v.members):x.assertNever(v)}function jp(v,C){switch(v.kind){case 177:return lt(v,v.modifiers,C,v.parameters,v.type,v.body);case 178:return ke(v,v.modifiers,C,v.parameters,v.body);case 174:return yi(v,v.modifiers,v.asteriskToken,C,v.questionToken,v.typeParameters,v.parameters,v.type,v.body);case 173:return In(v,v.modifiers,C,v.questionToken,v.typeParameters,v.parameters,v.type);case 172:return Ye(v,v.modifiers,C,v.questionToken??v.exclamationToken,v.type,v.initializer);case 171:return Ur(v,v.modifiers,C,v.questionToken,v.type);case 303:return wm(v,C,v.initializer)}}function Ga(v){return v?j(v):void 0}function lc(v){return typeof v=="string"?xe(v):v}function YE(v){return typeof v=="string"?me(v):typeof v=="number"?ce(v):typeof v=="boolean"?v?_t():Je():v}function rx(v){return v&&i().parenthesizeExpressionForDisallowedComma(v)}function CM(v){return typeof v=="number"?be(v):v}function Ib(v){return v&&oH(v)?at(r($d(),v),v):v}function NM(v){return typeof v=="string"||v&&!wi(v)?Gu(v,void 0,void 0,void 0):v}function tr(v,C){return v!==C&&(r(v,C),at(v,C)),v}}function WU(e){switch(e){case 351:return"type";case 349:return"returns";case 350:return"this";case 347:return"enum";case 337:return"author";case 339:return"class";case 340:return"public";case 341:return"private";case 342:return"protected";case 343:return"readonly";case 344:return"override";case 352:return"template";case 353:return"typedef";case 348:return"param";case 355:return"prop";case 345:return"callback";case 346:return"overload";case 335:return"augments";case 336:return"implements";default:return x.fail(`Unsupported kind: ${x.formatSyntaxKind(e)}`)}}function LBe(e,t){switch(Oy||(Oy=xy(99,!1,0)),e){case 15:Oy.setText("`"+t+"`");break;case 16:Oy.setText("`"+t+"${");break;case 17:Oy.setText("}"+t+"${");break;case 18:Oy.setText("}"+t+"`");break}let r=Oy.scan();if(r===20&&(r=Oy.reScanTemplateToken(!1)),Oy.isUnterminated())return Oy.setText(void 0),joe;let i;switch(r){case 15:case 16:case 17:case 18:i=Oy.getTokenValue();break}return i===void 0||Oy.scan()!==1?(Oy.setText(void 0),joe):(Oy.setText(void 0),i)}function jv(e){return e&&Fe(e)?Ek(e):br(e)}function Ek(e){return br(e)&-67108865}function kBe(e,t){return t|e.transformFlags&134234112}function br(e){if(!e)return 0;let t=e.transformFlags&~Goe(e.kind);return iu(e)&&rc(e.name)?kBe(e.name,t):t}function Ua(e){return e?e.transformFlags:0}function LSe(e){let t=0;for(let r of e)t|=br(r);e.transformFlags=t}function Goe(e){if(e>=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:return-2147450880;case 267:return-1941676032;case 169:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112;case 206:case 207:return-2147450880;case 216:case 238:case 234:case 360:case 217:case 108:return-2147483648;case 211:case 212:return-2147483648;default:return-2147483648}}function Z6(e){return e.flags|=16,e}function FU(e,t,r){let i,o,s,l,d,p,h,m,y,E;No(e)?(s="",l=e,d=e.length,p=t,h=r):(x.assert(t==="js"||t==="dts"),s=(t==="js"?e.javascriptPath:e.declarationPath)||"",p=t==="js"?e.javascriptMapPath:e.declarationMapPath,m=()=>t==="js"?e.javascriptText:e.declarationText,y=()=>t==="js"?e.javascriptMapText:e.declarationMapText,d=()=>m().length,e.buildInfo&&e.buildInfo.bundle&&(x.assert(r===void 0||typeof r=="boolean"),i=r,o=t==="js"?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,E=e.oldFileOfCurrentEmit));let S=E?OBe(x.checkDefined(o)):wBe(o,i,d);return S.fileName=s,S.sourceMapPath=p,S.oldFileOfCurrentEmit=E,m&&y?(Object.defineProperty(S,"text",{get:m}),Object.defineProperty(S,"sourceMapText",{get:y})):(x.assert(!E),S.text=l??"",S.sourceMapText=h),S}function wBe(e,t,r){let i,o,s,l,d,p,h,m;for(let E of e?e.sections:Xe)switch(E.kind){case"prologue":i=Tn(i,at(L.createUnparsedPrologue(E.data),E));break;case"emitHelpers":o=Tn(o,JU().get(E.data));break;case"no-default-lib":m=!0;break;case"reference":s=Tn(s,{pos:-1,end:-1,fileName:E.data});break;case"type":l=Tn(l,{pos:-1,end:-1,fileName:E.data});break;case"type-import":l=Tn(l,{pos:-1,end:-1,fileName:E.data,resolutionMode:99});break;case"type-require":l=Tn(l,{pos:-1,end:-1,fileName:E.data,resolutionMode:1});break;case"lib":d=Tn(d,{pos:-1,end:-1,fileName:E.data});break;case"prepend":let S;for(let A of E.texts)(!t||A.kind!=="internal")&&(S=Tn(S,at(L.createUnparsedTextLike(A.data,A.kind==="internal"),A)));p=Hr(p,S),h=Tn(h,L.createUnparsedPrepend(E.data,S??Xe));break;case"internal":if(t){h||(h=[]);break}case"text":h=Tn(h,at(L.createUnparsedTextLike(E.data,E.kind==="internal"),E));break;default:x.assertNever(E)}if(!h){let E=L.createUnparsedTextLike(void 0,!1);KN(E,0,typeof r=="function"?r():r),h=[E]}let y=bh.createUnparsedSource(i??Xe,void 0,h);return ER(i,y),ER(h,y),ER(p,y),y.hasNoDefaultLib=m,y.helpers=o,y.referencedFiles=s||Xe,y.typeReferenceDirectives=l,y.libReferenceDirectives=d||Xe,y}function OBe(e){let t,r;for(let o of e.sections)switch(o.kind){case"internal":case"text":t=Tn(t,at(L.createUnparsedTextLike(o.data,o.kind==="internal"),o));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":r=Tn(r,at(L.createUnparsedSyntheticReference(o),o));break;case"prologue":case"emitHelpers":case"prepend":break;default:x.assertNever(o)}let i=L.createUnparsedSource(Xe,r,t??Xe);return ER(r,i),ER(t,i),i.helpers=mn(e.sources&&e.sources.helpers,o=>JU().get(o)),i}function kSe(e,t,r,i,o,s){return No(e)?BU(void 0,e,r,i,void 0,t,o,s):zU(e,t,r,i,o,s)}function zU(e,t,r,i,o,s,l,d){let p=bh.createInputFiles();p.javascriptPath=t,p.javascriptMapPath=r,p.declarationPath=i,p.declarationMapPath=o,p.buildInfoPath=s;let h=new Map,m=A=>{if(A===void 0)return;let N=h.get(A);return N===void 0&&(N=e(A),h.set(A,N!==void 0?N:!1)),N!==!1?N:void 0},y=A=>{let N=m(A);return N!==void 0?N:`/* Input file ${A} was missing */\r -`},E;return Object.defineProperties(p,{javascriptText:{get:()=>y(t)},javascriptMapText:{get:()=>m(r)},declarationText:{get:()=>y(x.checkDefined(i))},declarationMapText:{get:()=>m(o)},buildInfo:{get:()=>{if(E===void 0&&s)if(l?.getBuildInfo)E=l.getBuildInfo(s,d.configFilePath)??!1;else{let A=m(s);E=A!==void 0?X3(s,A)??!1:!1}return E||void 0}}}),p}function BU(e,t,r,i,o,s,l,d,p,h,m){let y=bh.createInputFiles();return y.javascriptPath=e,y.javascriptText=t,y.javascriptMapPath=r,y.javascriptMapText=i,y.declarationPath=o,y.declarationText=s,y.declarationMapPath=l,y.declarationMapText=d,y.buildInfoPath=p,y.buildInfo=h,y.oldFileOfCurrentEmit=m,y}function wSe(e,t,r){return new(WSe||(WSe=sd.getSourceMapSourceConstructor()))(e,t,r)}function xr(e,t){if(e.original!==t&&(e.original=t,t)){let r=t.emitNode;r&&(e.emitNode=WBe(r,e.emitNode))}return e}function WBe(e,t){let{flags:r,internalFlags:i,leadingComments:o,trailingComments:s,commentRange:l,sourceMapRange:d,tokenSourceMapRanges:p,constantValue:h,helpers:m,startsOnNewLine:y,snippetElement:E,classThis:S,assignedName:A}=e;if(t||(t={}),r&&(t.flags=r),i&&(t.internalFlags=i&-9),o&&(t.leadingComments=Hr(o.slice(),t.leadingComments)),s&&(t.trailingComments=Hr(s.slice(),t.trailingComments)),l&&(t.commentRange=l),d&&(t.sourceMapRange=d),p&&(t.tokenSourceMapRanges=FBe(p,t.tokenSourceMapRanges)),h!==void 0&&(t.constantValue=h),m)for(let N of m)t.helpers=xg(t.helpers,N);return y!==void 0&&(t.startsOnNewLine=y),E!==void 0&&(t.snippetElement=E),S&&(t.classThis=S),A&&(t.assignedName=A),t}function FBe(e,t){t||(t=[]);for(let r in e)t[r]=e[r];return t}var e4,GU,Voe,Oy,joe,Sk,OSe,L,WSe,zBe=bt({"src/compiler/factory/nodeFactory.ts"(){"use strict";ea(),e4=0,GU=(e=>(e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode",e))(GU||{}),Voe=[],joe={},Sk=Foe(),OSe={createBaseSourceFileNode:e=>Z6(Sk.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>Z6(Sk.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>Z6(Sk.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>Z6(Sk.createBaseTokenNode(e)),createBaseNode:e=>Z6(Sk.createBaseNode(e))},L=bk(4,OSe)}});function kd(e){if(e.emitNode)x.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(ZC(e)){if(e.kind===312)return e.emitNode={annotatedNodes:[e]};let t=Gn(Do(Gn(e)))??x.fail("Could not determine parsed source file.");kd(t).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function VU(e){var t,r;let i=(r=(t=Gn(Do(e)))==null?void 0:t.emitNode)==null?void 0:r.annotatedNodes;if(i)for(let o of i)o.emitNode=void 0}function Tk(e){let t=kd(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function lr(e,t){return kd(e).flags=t,e}function D_(e,t){let r=kd(e);return r.flags=r.flags|t,e}function Ak(e,t){return kd(e).internalFlags=t,e}function BI(e,t){let r=kd(e);return r.internalFlags=r.internalFlags|t,e}function Wy(e){var t;return((t=e.emitNode)==null?void 0:t.sourceMapRange)??e}function Ra(e,t){return kd(e).sourceMapRange=t,e}function FSe(e,t){var r,i;return(i=(r=e.emitNode)==null?void 0:r.tokenSourceMapRanges)==null?void 0:i[t]}function Uoe(e,t,r){let i=kd(e),o=i.tokenSourceMapRanges??(i.tokenSourceMapRanges=[]);return o[t]=r,e}function nP(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function t4(e,t){return kd(e).startsOnNewLine=t,e}function C_(e){var t;return((t=e.emitNode)==null?void 0:t.commentRange)??e}function ic(e,t){return kd(e).commentRange=t,e}function IR(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function _E(e,t){return kd(e).leadingComments=t,e}function rP(e,t,r,i){return _E(e,Tn(IR(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function Ik(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function GI(e,t){return kd(e).trailingComments=t,e}function n4(e,t,r,i){return GI(e,Tn(Ik(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function Hoe(e,t){_E(e,IR(t)),GI(e,Ik(t));let r=kd(t);return r.leadingComments=void 0,r.trailingComments=void 0,e}function Koe(e){var t;return(t=e.emitNode)==null?void 0:t.constantValue}function Joe(e,t){let r=kd(e);return r.constantValue=t,e}function VI(e,t){let r=kd(e);return r.helpers=Tn(r.helpers,t),e}function Fg(e,t){if(gt(t)){let r=kd(e);for(let i of t)r.helpers=xg(r.helpers,i)}return e}function zSe(e,t){var r;let i=(r=e.emitNode)==null?void 0:r.helpers;return i?Tx(i,t):!1}function r4(e){var t;return(t=e.emitNode)==null?void 0:t.helpers}function qoe(e,t,r){let i=e.emitNode,o=i&&i.helpers;if(!gt(o))return;let s=kd(t),l=0;for(let d=0;d0&&(o[d-l]=p)}l>0&&(o.length-=l)}function jU(e){var t;return(t=e.emitNode)==null?void 0:t.snippetElement}function UU(e,t){let r=kd(e);return r.snippetElement=t,e}function HU(e){return kd(e).internalFlags|=4,e}function Xoe(e,t){let r=kd(e);return r.typeNode=t,e}function Yoe(e){var t;return(t=e.emitNode)==null?void 0:t.typeNode}function Fy(e,t){return kd(e).identifierTypeArguments=t,e}function DT(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function xk(e,t){return kd(e).autoGenerate=t,e}function BSe(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function $oe(e,t){return kd(e).generatedImportReference=t,e}function Qoe(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var BBe=bt({"src/compiler/factory/emitNode.ts"(){"use strict";ea()}});function Zoe(e){let t=e.factory,r=vu(()=>Ak(t.createTrue(),8)),i=vu(()=>Ak(t.createFalse(),8));return{getUnscopedHelperName:o,createDecorateHelper:s,createMetadataHelper:l,createParamHelper:d,createESDecorateHelper:N,createRunInitializersHelper:D,createAssignHelper:w,createAwaitHelper:j,createAsyncGeneratorHelper:K,createAsyncDelegatorHelper:Y,createAsyncValuesHelper:B,createRestHelper:ce,createAwaiterHelper:z,createExtendsHelper:Z,createTemplateObjectHelper:me,createSpreadArrayHelper:ge,createPropKeyHelper:q,createSetFunctionNameHelper:J,createValuesHelper:re,createReadHelper:pe,createGeneratorHelper:xe,createCreateBindingHelper:fe,createImportStarHelper:ne,createImportStarCallbackHelper:he,createImportDefaultHelper:Ce,createExportStarHelper:Ge,createClassPrivateFieldGetHelper:ve,createClassPrivateFieldSetHelper:Ae,createClassPrivateFieldInHelper:De,createAddDisposableResourceHelper:Le,createDisposeResourcesHelper:Et};function o(be){return lr(t.createIdentifier(be),8196)}function s(be,ze,tt,Wt){e.requestEmitHelper(i4);let _t=[];return _t.push(t.createArrayLiteralExpression(be,!0)),_t.push(ze),tt&&(_t.push(tt),Wt&&_t.push(Wt)),t.createCallExpression(o("__decorate"),void 0,_t)}function l(be,ze){return e.requestEmitHelper(o4),t.createCallExpression(o("__metadata"),void 0,[t.createStringLiteral(be),ze])}function d(be,ze,tt){return e.requestEmitHelper(a4),at(t.createCallExpression(o("__param"),void 0,[t.createNumericLiteral(ze+""),be]),tt)}function p(be){let ze=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),be.name),t.createPropertyAssignment(t.createIdentifier("metadata"),be.metadata)];return t.createObjectLiteralExpression(ze)}function h(be){let ze=be.computed?t.createElementAccessExpression(t.createIdentifier("obj"),be.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),be.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,ze))}function m(be){let ze=be.computed?t.createElementAccessExpression(t.createIdentifier("obj"),be.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),be.name);return t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj")),t.createParameterDeclaration(void 0,void 0,t.createIdentifier("value"))],void 0,void 0,t.createBlock([t.createExpressionStatement(t.createAssignment(ze,t.createIdentifier("value")))])))}function y(be){let ze=be.computed?be.name:Fe(be.name)?t.createStringLiteralFromNode(be.name):be.name;return t.createPropertyAssignment("has",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,t.createBinaryExpression(ze,103,t.createIdentifier("obj"))))}function E(be,ze){let tt=[];return tt.push(y(be)),ze.get&&tt.push(h(be)),ze.set&&tt.push(m(be)),t.createObjectLiteralExpression(tt)}function S(be){let ze=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral(be.kind)),t.createPropertyAssignment(t.createIdentifier("name"),be.name.computed?be.name.name:t.createStringLiteralFromNode(be.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),be.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),be.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),E(be.name,be.access)),t.createPropertyAssignment(t.createIdentifier("metadata"),be.metadata)];return t.createObjectLiteralExpression(ze)}function A(be){return be.kind==="class"?p(be):S(be)}function N(be,ze,tt,Wt,_t,Je){return e.requestEmitHelper(s4),t.createCallExpression(o("__esDecorate"),void 0,[be??t.createNull(),ze??t.createNull(),tt,A(Wt),_t,Je])}function D(be,ze,tt){return e.requestEmitHelper(l4),t.createCallExpression(o("__runInitializers"),void 0,tt?[be,ze,tt]:[be,ze])}function w(be){return ns(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,be):(e.requestEmitHelper(c4),t.createCallExpression(o("__assign"),void 0,be))}function j(be){return e.requestEmitHelper(jI),t.createCallExpression(o("__await"),void 0,[be])}function K(be,ze){return e.requestEmitHelper(jI),e.requestEmitHelper(d4),(be.emitNode||(be.emitNode={})).flags|=1572864,t.createCallExpression(o("__asyncGenerator"),void 0,[ze?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),be])}function Y(be){return e.requestEmitHelper(jI),e.requestEmitHelper(u4),t.createCallExpression(o("__asyncDelegator"),void 0,[be])}function B(be){return e.requestEmitHelper(p4),t.createCallExpression(o("__asyncValues"),void 0,[be])}function ce(be,ze,tt,Wt){e.requestEmitHelper(f4);let _t=[],Je=0;for(let pt=0;pt{let i="";for(let o=0;oe.name))}function iP(e,t){return ia(e)&&Fe(e.expression)&&(za(e.expression)&8192)!==0&&e.expression.escapedText===t}var qU,i4,o4,a4,s4,l4,c4,jI,d4,u4,p4,f4,m4,_4,h4,g4,y4,v4,b4,E4,S4,xR,T4,Rk,A4,I4,x4,R4,D4,C4,N4,GSe,Dk,Ck,GBe=bt({"src/compiler/factory/emitHelpers.ts"(){"use strict";ea(),qU=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(qU||{}),i4={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:` +`),t.closeSync(tt),el("endDumpTypes"),Yp("Dump types","beginDumpTypes","endDumpTypes")}function ce(){l&&t.writeFileSync(l,JSON.stringify(d))}e.dumpLegend=ce})(CL||(CL={})),Ine=CL.startTracing,xne=CL.dumpLegend}});function rT(e,t=!0){let r=PL[e.category];return t?r.toLowerCase():r}var RW,DW,CW,r9,NW,PW,i9,NL,o9,xx,MW,a9,s9,LW,l9,c9,d9,u9,p9,f9,m9,_9,h9,g9,y9,kW,v9,b9,E9,S9,wW,OW,T9,A9,I9,x9,R9,D9,WW,C9,N9,P9,M9,L9,k9,PL,Rx,w9,O9,W9,F9,HC,z9,B9,G9,FW,V9,j9,U9,H9,K9,zW,BW,GW,J9,q9,X9,Y9,$9,Q9,Z9,eV,ML,tV,wEe=bt({"src/compiler/types.ts"(){"use strict";RW=(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.UnparsedPrologue=307]="UnparsedPrologue",e[e.UnparsedPrepend=308]="UnparsedPrepend",e[e.UnparsedText=309]="UnparsedText",e[e.UnparsedInternalText=310]="UnparsedInternalText",e[e.UnparsedSyntheticReference=311]="UnparsedSyntheticReference",e[e.SourceFile=312]="SourceFile",e[e.Bundle=313]="Bundle",e[e.UnparsedSource=314]="UnparsedSource",e[e.InputFiles=315]="InputFiles",e[e.JSDocTypeExpression=316]="JSDocTypeExpression",e[e.JSDocNameReference=317]="JSDocNameReference",e[e.JSDocMemberName=318]="JSDocMemberName",e[e.JSDocAllType=319]="JSDocAllType",e[e.JSDocUnknownType=320]="JSDocUnknownType",e[e.JSDocNullableType=321]="JSDocNullableType",e[e.JSDocNonNullableType=322]="JSDocNonNullableType",e[e.JSDocOptionalType=323]="JSDocOptionalType",e[e.JSDocFunctionType=324]="JSDocFunctionType",e[e.JSDocVariadicType=325]="JSDocVariadicType",e[e.JSDocNamepathType=326]="JSDocNamepathType",e[e.JSDoc=327]="JSDoc",e[e.JSDocComment=327]="JSDocComment",e[e.JSDocText=328]="JSDocText",e[e.JSDocTypeLiteral=329]="JSDocTypeLiteral",e[e.JSDocSignature=330]="JSDocSignature",e[e.JSDocLink=331]="JSDocLink",e[e.JSDocLinkCode=332]="JSDocLinkCode",e[e.JSDocLinkPlain=333]="JSDocLinkPlain",e[e.JSDocTag=334]="JSDocTag",e[e.JSDocAugmentsTag=335]="JSDocAugmentsTag",e[e.JSDocImplementsTag=336]="JSDocImplementsTag",e[e.JSDocAuthorTag=337]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=338]="JSDocDeprecatedTag",e[e.JSDocClassTag=339]="JSDocClassTag",e[e.JSDocPublicTag=340]="JSDocPublicTag",e[e.JSDocPrivateTag=341]="JSDocPrivateTag",e[e.JSDocProtectedTag=342]="JSDocProtectedTag",e[e.JSDocReadonlyTag=343]="JSDocReadonlyTag",e[e.JSDocOverrideTag=344]="JSDocOverrideTag",e[e.JSDocCallbackTag=345]="JSDocCallbackTag",e[e.JSDocOverloadTag=346]="JSDocOverloadTag",e[e.JSDocEnumTag=347]="JSDocEnumTag",e[e.JSDocParameterTag=348]="JSDocParameterTag",e[e.JSDocReturnTag=349]="JSDocReturnTag",e[e.JSDocThisTag=350]="JSDocThisTag",e[e.JSDocTypeTag=351]="JSDocTypeTag",e[e.JSDocTemplateTag=352]="JSDocTemplateTag",e[e.JSDocTypedefTag=353]="JSDocTypedefTag",e[e.JSDocSeeTag=354]="JSDocSeeTag",e[e.JSDocPropertyTag=355]="JSDocPropertyTag",e[e.JSDocThrowsTag=356]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=357]="JSDocSatisfiesTag",e[e.SyntaxList=358]="SyntaxList",e[e.NotEmittedStatement=359]="NotEmittedStatement",e[e.PartiallyEmittedExpression=360]="PartiallyEmittedExpression",e[e.CommaListExpression=361]="CommaListExpression",e[e.SyntheticReferenceExpression=362]="SyntheticReferenceExpression",e[e.Count=363]="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=316]="FirstJSDocNode",e[e.LastJSDocNode=357]="LastJSDocNode",e[e.FirstJSDocTagNode=334]="FirstJSDocTagNode",e[e.LastJSDocTagNode=357]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(RW||{}),DW=(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))(DW||{}),CW=(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))(CW||{}),r9=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(r9||{}),NW=(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))(NW||{}),PW=(e=>(e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution",e))(PW||{}),i9=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(i9||{}),NL=(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))(NL||{}),o9=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(o9||{}),xx=class{},MW=(e=>(e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",e))(MW||{}),a9=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(a9||{}),s9=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(s9||{}),LW=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(LW||{}),l9=(e=>(e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e))(l9||{}),c9=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(c9||{}),d9=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(d9||{}),u9=(e=>(e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns",e))(u9||{}),p9=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.WriteComputedProps=1073741824]="WriteComputedProps",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(p9||{}),f9=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330095]="NodeBuilderFlagsMask",e))(f9||{}),m9=(e=>(e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",e))(m9||{}),_9=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(_9||{}),h9=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(h9||{}),g9=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(g9||{}),y9=(e=>(e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType",e))(y9||{}),kW=(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))(kW||{}),v9=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(v9||{}),b9=(e=>(e[e.None=0]="None",e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial",e))(b9||{}),E9=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e.InstantiationExpression="__instantiationExpression",e.ImportAttributes="__importAttributes",e))(E9||{}),S9=(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))(S9||{}),wW=(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.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.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(wW||{}),OW=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(OW||{}),T9=(e=>(e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback",e))(T9||{}),A9=(e=>(e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest",e))(A9||{}),I9=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(I9||{}),x9=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(x9||{}),R9=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(R9||{}),D9=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(D9||{}),WW=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(WW||{}),C9=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(C9||{}),N9=(e=>(e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged",e))(N9||{}),P9=(e=>(e[e.None=0]="None",e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity",e))(P9||{}),M9=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(M9||{}),L9=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(L9||{}),k9=(e=>(e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",e))(k9||{}),PL=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(PL||{}),Rx=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node10=2]="Node10",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext",e[e.Bundler=100]="Bundler",e))(Rx||{}),w9=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(w9||{}),O9=(e=>(e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",e))(O9||{}),W9=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(W9||{}),F9=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(F9||{}),HC=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.NodeNext=199]="NodeNext",e[e.Preserve=200]="Preserve",e))(HC||{}),z9=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(z9||{}),B9=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(B9||{}),G9=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(G9||{}),FW=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(FW||{}),V9=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(V9||{}),j9=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(j9||{}),U9=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(U9||{}),H9=(e=>(e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(H9||{}),K9=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(K9||{}),zW=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(zW||{}),BW=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(BW||{}),GW=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(GW||{}),J9=(e=>(e[e.None=0]="None",e[e.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=2]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",e[e.Immutable=8]="Immutable",e[e.IndirectCall=16]="IndirectCall",e[e.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",e))(J9||{}),q9=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.CreateBinding=4194304]="CreateBinding",e[e.SetFunctionName=8388608]="SetFunctionName",e[e.PropKey=16777216]="PropKey",e[e.AddDisposableResourceAndDisposeResources=33554432]="AddDisposableResourceAndDisposeResources",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=33554432]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(q9||{}),X9=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e[e.ImportTypeNodeAttributes=7]="ImportTypeNodeAttributes",e))(X9||{}),Y9=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.Assertions=6]="Assertions",e[e.All=15]="All",e[e.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",e))(Y9||{}),$9=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))($9||{}),Q9=(e=>(e.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.TypeResolutionModeRequire="type-require",e.TypeResolutionModeImport="type-import",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal",e))(Q9||{}),Z9=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportAttributes=526226]="ImportAttributes",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(Z9||{}),eV=(e=>(e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default",e))(eV||{}),ML={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},tV=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(tV||{})}});function KC(e){let t=5381;for(let r=0;r{K.isClosed=!0,uI(t,K)}}}function d(D){let w=[];return w.pollingInterval=D,w.pollIndex=0,w.pollScheduled=!1,w}function p(D,w){w.pollIndex=m(w,w.pollingInterval,w.pollIndex,UW[w.pollingInterval]),w.length?N(w.pollingInterval):(R.assert(w.pollIndex===0),w.pollScheduled=!1)}function h(D,w){m(r,250,0,r.length),p(D,w),!w.pollScheduled&&r.length&&N(250)}function m(D,w,j,K){return WEe(e,D,j,K,Y);function Y(B,ce,z){z?(B.unchangedPolls=0,D!==r&&(D[ce]=void 0,S(B))):B.unchangedPolls!==kL[w]?B.unchangedPolls++:D===r?(B.unchangedPolls=1,D[ce]=void 0,E(B,250)):w!==2e3&&(B.unchangedPolls++,D[ce]=void 0,E(B,w===250?500:2e3))}}function y(D){switch(D){case 250:return i;case 500:return o;case 2e3:return s}}function E(D,w){y(w).push(D),A(w)}function S(D){r.push(D),A(250)}function A(D){y(D).pollScheduled||N(D)}function N(D){y(D).pollScheduled=e.setTimeout(D===250?h:p,D,D===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",y(D))}}function _7e(e,t,r,i){let o=Xp(),s=i?new Map:void 0,l=new Map,d=Cd(t);return p;function p(m,y,E,S){let A=d(m);o.add(A,y).length===1&&s&&s.set(A,r(m)||Mp);let N=oi(A)||".",D=l.get(N)||h(oi(m)||".",N,S);return D.referenceCount++,{close:()=>{D.referenceCount===1?(D.close(),l.delete(N)):D.referenceCount--,o.remove(A,y)}}}function h(m,y,E){let S=e(m,1,(A,N)=>{if(!Co(N))return;let D=_o(N,m),w=d(D),j=D&&o.get(w);if(j){let K,Y=1;if(s){let B=s.get(w);if(A==="change"&&(K=r(D)||Mp,K.getTime()===B.getTime()))return;K||(K=r(D)||Mp),s.set(w,K),B===Mp?Y=0:K===Mp&&(Y=2)}for(let B of j)B(D,Y,K)}},!1,500,E);return S.referenceCount=0,l.set(y,S),S}}function h7e(e){let t=[],r=0,i;return o;function o(d,p){let h={fileName:d,callback:p,mtime:fI(e,d)};return t.push(h),l(),{close:()=>{h.isClosed=!0,uI(t,h)}}}function s(){i=void 0,r=WEe(e,t,r,UW[250]),l()}function l(){!t.length||i||(i=e.setTimeout(s,2e3,"pollQueue"))}}function FEe(e,t,r,i,o){let l=Cd(t)(r),d=e.get(l);return d?d.callbacks.push(i):e.set(l,{watcher:o((p,h,m)=>{var y;return(y=e.get(l))==null?void 0:y.callbacks.slice().forEach(E=>E(p,h,m))}),callbacks:[i]}),{close:()=>{let p=e.get(l);p&&(!Sx(p.callbacks,i)||p.callbacks.length||(e.delete(l),Rf(p)))}}}function g7e(e,t){let r=e.mtime.getTime(),i=t.getTime();return r!==i?(e.mtime=t,e.callback(e.fileName,nV(r,i),t),!0):!1}function nV(e,t){return e===0?0:t===0?2:1}function LL(e){return Pne(e)}function Dne(e){Pne=e}function y7e({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:r,getAccessibleSortedChildDirectories:i,fileSystemEntryExists:o,realpath:s,setTimeout:l,clearTimeout:d}){let p=new Map,h=Xp(),m=new Map,y,E=bx(!t),S=Cd(t);return(z,ee,me,ge)=>me?A(z,ge,ee):e(z,ee,me,ge);function A(z,ee,me){let ge=S(z),q=p.get(ge);q?q.refCount++:(q={watcher:e(z,re=>{B(re,ee)||(ee?.synchronousWatchDirectory?(N(ge,re),Y(z,ge,ee)):D(z,ge,re,ee))},!1,ee),refCount:1,childWatches:Xe},p.set(ge,q),Y(z,ge,ee));let J=me&&{dirName:z,callback:me};return J&&h.add(ge,J),{dirName:z,close:()=>{let re=R.checkDefined(p.get(ge));J&&h.remove(ge,J),re.refCount--,!re.refCount&&(p.delete(ge),Rf(re),re.childWatches.forEach(Km))}}}function N(z,ee,me){let ge,q;Co(ee)?ge=ee:q=ee,h.forEach((J,re)=>{if(!(q&&q.get(re)===!0)&&(re===z||ao(z,re)&&z[re.length]===nl))if(q)if(me){let pe=q.get(re);pe?pe.push(...me):q.set(re,me.slice())}else q.set(re,!0);else J.forEach(({callback:pe})=>pe(ge))})}function D(z,ee,me,ge){let q=p.get(ee);if(q&&o(z,1)){w(z,ee,me,ge);return}N(ee,me),K(q)}function w(z,ee,me,ge){let q=m.get(ee);q?q.fileNames.push(me):m.set(ee,{dirName:z,options:ge,fileNames:[me]}),y&&(d(y),y=void 0),y=l(j,1e3,"timerToUpdateChildWatches")}function j(){y=void 0,LL(`sysLog:: onTimerToUpdateChildWatches:: ${m.size}`);let z=Ks(),ee=new Map;for(;!y&&m.size;){let ge=m.entries().next();R.assert(!ge.done);let{value:[q,{dirName:J,options:re,fileNames:pe}]}=ge;m.delete(q);let xe=Y(J,q,re);N(q,ee,xe?void 0:pe)}LL(`sysLog:: invokingWatchers:: Elapsed:: ${Ks()-z}ms:: ${m.size}`),h.forEach((ge,q)=>{let J=ee.get(q);J&&ge.forEach(({callback:re,dirName:pe})=>{So(J)?J.forEach(re):re(pe)})});let me=Ks()-z;LL(`sysLog:: Elapsed:: ${me}ms:: onTimerToUpdateChildWatches:: ${m.size} ${y}`)}function K(z){if(!z)return;let ee=z.childWatches;z.childWatches=Xe;for(let me of ee)me.close(),K(p.get(S(me.dirName)))}function Y(z,ee,me){let ge=p.get(ee);if(!ge)return!1;let q,J=TW(o(z,1)?to(i(z),xe=>{let fe=_o(xe,z);return!B(fe,me)&&E(fe,fa(s(fe)))===0?fe:void 0}):Xe,ge.childWatches,(xe,fe)=>E(xe,fe.dirName),re,Km,pe);return ge.childWatches=q||Xe,J;function re(xe){let fe=A(xe,me);pe(fe)}function pe(xe){(q||(q=[])).push(xe)}}function B(z,ee){return gt(wL,me=>ce(z,me))||zEe(z,ee,t,r)}function ce(z,ee){return z.includes(ee)?!0:t?!1:S(z).includes(ee)}}function v7e(e){return(t,r,i)=>e(r===1?"change":"rename","",i)}function b7e(e,t,r){return(i,o,s)=>{i==="rename"?(s||(s=r(e)||Mp),t(e,s!==Mp?0:2,s)):t(e,1,s)}}function zEe(e,t,r,i){return(t?.excludeDirectories||t?.excludeFiles)&&(l3(e,t?.excludeFiles,r,i())||l3(e,t?.excludeDirectories,r,i()))}function BEe(e,t,r,i,o){return(s,l)=>{if(s==="rename"){let d=l?fa($r(e,l)):e;(!l||!zEe(d,r,i,o))&&t(d)}}}function Cne({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:r,clearTimeout:i,fsWatchWorker:o,fileSystemEntryExists:s,useCaseSensitiveFileNames:l,getCurrentDirectory:d,fsSupportsRecursiveFsWatch:p,getAccessibleSortedChildDirectories:h,realpath:m,tscWatchFile:y,useNonPollingWatchers:E,tscWatchDirectory:S,inodeWatching:A,fsWatchWithTimestamp:N,sysLog:D}){let w=new Map,j=new Map,K=new Map,Y,B,ce,z,ee=!1;return{watchFile:me,watchDirectory:pe};function me(ve,Ie,De,Le){Le=J(Le,E);let Et=R.checkDefined(Le.watchFile);switch(Et){case 0:return ne(ve,Ie,250,void 0);case 1:return ne(ve,Ie,De,void 0);case 2:return ge()(ve,Ie,De,void 0);case 3:return q()(ve,Ie,void 0,void 0);case 4:return he(ve,0,b7e(ve,Ie,t),!1,De,Nw(Le));case 5:return ce||(ce=_7e(he,l,t,N)),ce(ve,Ie,De,Nw(Le));default:R.assertNever(Et)}}function ge(){return Y||(Y=m7e({getModifiedTime:t,setTimeout:r}))}function q(){return B||(B=h7e({getModifiedTime:t,setTimeout:r}))}function J(ve,Ie){if(ve&&ve.watchFile!==void 0)return ve;switch(y){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return re(4,1,ve);case"UseFsEventsWithFallbackDynamicPolling":return re(4,2,ve);case"UseFsEventsOnParentDirectory":Ie=!0;default:return Ie?re(5,1,ve):{watchFile:4}}}function re(ve,Ie,De){let Le=De?.fallbackPolling;return{watchFile:ve,fallbackPolling:Le===void 0?Ie:Le}}function pe(ve,Ie,De,Le){return p?he(ve,1,BEe(ve,Ie,Le,l,d),De,500,Nw(Le)):(z||(z=y7e({useCaseSensitiveFileNames:l,getCurrentDirectory:d,fileSystemEntryExists:s,getAccessibleSortedChildDirectories:h,watchDirectory:xe,realpath:m,setTimeout:r,clearTimeout:i})),z(ve,Ie,De,Le))}function xe(ve,Ie,De,Le){R.assert(!De);let Et=fe(Le),be=R.checkDefined(Et.watchDirectory);switch(be){case 1:return ne(ve,()=>Ie(ve),500,void 0);case 2:return ge()(ve,()=>Ie(ve),500,void 0);case 3:return q()(ve,()=>Ie(ve),void 0,void 0);case 0:return he(ve,1,BEe(ve,Ie,Le,l,d),De,500,Nw(Et));default:R.assertNever(be)}}function fe(ve){if(ve&&ve.watchDirectory!==void 0)return ve;switch(S){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:let Ie=ve?.fallbackPolling;return{watchDirectory:0,fallbackPolling:Ie!==void 0?Ie:void 0}}}function ne(ve,Ie,De,Le){return FEe(w,l,ve,Ie,Et=>e(ve,Et,De,Le))}function he(ve,Ie,De,Le,Et,be){return FEe(Le?K:j,l,ve,De,ze=>Ce(ve,Ie,ze,Le,Et,be))}function Ce(ve,Ie,De,Le,Et,be){let ze,tt;A&&(ze=ve.substring(ve.lastIndexOf(nl)),tt=ze.slice(nl.length));let Wt=s(ve,Ie)?Je():en();return{close:()=>{Wt&&(Wt.close(),Wt=void 0)}};function _t(Dn){Wt&&(D(`sysLog:: ${ve}:: Changing watcher to ${Dn===Je?"Present":"Missing"}FileSystemEntryWatcher`),Wt.close(),Wt=Dn())}function Je(){if(ee)return D(`sysLog:: ${ve}:: Defaulting to watchFile`),Zt();try{let Dn=(Ie===1||!N?o:Ge)(ve,Le,A?ft:De);return Dn.on("error",()=>{De("rename",""),_t(en)}),Dn}catch(Dn){return ee||(ee=Dn.code==="ENOSPC"),D(`sysLog:: ${ve}:: Changing to watchFile`),Zt()}}function ft(Dn,Kn){let pn;if(Kn&&El(Kn,"~")&&(pn=Kn,Kn=Kn.slice(0,Kn.length-1)),Dn==="rename"&&(!Kn||Kn===tt||El(Kn,ze))){let Yt=t(ve)||Mp;pn&&De(Dn,pn,Yt),De(Dn,Kn,Yt),A?_t(Yt===Mp?en:Je):Yt===Mp&&_t(en)}else pn&&De(Dn,pn),De(Dn,Kn)}function Zt(){return me(ve,v7e(De),Et,be)}function en(){return me(ve,(Dn,Kn,pn)=>{Kn===0&&(pn||(pn=t(ve)||Mp),pn!==Mp&&(De("rename","",pn),_t(Je)))},Et,be)}}function Ge(ve,Ie,De){let Le=t(ve)||Mp;return o(ve,Ie,(Et,be,ze)=>{Et==="change"&&(ze||(ze=t(ve)||Mp),ze.getTime()===Le.getTime())||(Le=ze||t(ve)||Mp,De(Et,be,Le))})}}function Nne(e){let t=e.writeFile;e.writeFile=(r,i,o)=>zj(r,i,!!o,(s,l,d)=>t.call(e,s,l,d),s=>e.createDirectory(s),s=>e.directoryExists(s))}function GEe(e){md=e}var rV,VW,Mp,jW,UW,kL,wL,Pne,iV,md,E7e=bt({"src/compiler/sys.ts"(){"use strict";Zo(),rV=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(rV||{}),VW=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(VW||{}),Mp=new Date(0),jW={Low:32,Medium:64,High:256},UW=Rne(jW),kL=Rne(jW),wL=["/node_modules/.","/.git","/.#"],Pne=qa,iV=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(iV||{}),md=(()=>{let e="\uFEFF";function t(){let i=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,o=ci("fs"),s=ci("path"),l=ci("os"),d;try{d=ci("crypto")}catch{d=void 0}let p,h="./profile.cpuprofile",m=ci("buffer").Buffer,y=process.platform==="darwin",E=process.platform==="linux"||y,S=l.platform(),A=q(),N=o.realpathSync.native?process.platform==="win32"?Le:o.realpathSync.native:o.realpathSync,D=__filename.endsWith("sys.js")?s.join(s.dirname(__dirname),"__fake__.js"):__filename,w=process.platform==="win32"||y,j=bu(()=>process.cwd()),{watchFile:K,watchDirectory:Y}=Cne({pollingWatchFileWorker:re,getModifiedTime:be,setTimeout,clearTimeout,fsWatchWorker:pe,useCaseSensitiveFileNames:A,getCurrentDirectory:j,fileSystemEntryExists:Ge,fsSupportsRecursiveFsWatch:w,getAccessibleSortedChildDirectories:_t=>he(_t).directories,realpath:Et,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:!!process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,inodeWatching:E,fsWatchWithTimestamp:y,sysLog:LL}),B={args:process.argv.slice(2),newLine:l.EOL,useCaseSensitiveFileNames:A,write(_t){process.stdout.write(_t)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:fe,writeFile:ne,watchFile:K,watchDirectory:Y,resolvePath:_t=>s.resolve(_t),fileExists:ve,directoryExists:Ie,getAccessibleFileSystemEntries:he,createDirectory(_t){if(!B.directoryExists(_t))try{o.mkdirSync(_t)}catch(Je){if(Je.code!=="EEXIST")throw Je}},getExecutingFilePath(){return D},getCurrentDirectory:j,getDirectories:De,getEnvironmentVariable(_t){return process.env[_t]||""},readDirectory:Ce,getModifiedTime:be,setModifiedTime:ze,deleteFile:tt,createHash:d?Wt:KC,createSHA256Hash:d?Wt:void 0,getMemoryUsage(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize(_t){try{let Je=ce(_t);if(Je?.isFile())return Je.size}catch{}return 0},exit(_t){me(()=>process.exit(_t))},enableCPUProfiler:z,disableCPUProfiler:me,cpuProfilingEnabled:()=>!!p||zo(process.execArgv,"--cpu-prof")||zo(process.execArgv,"--prof"),realpath:Et,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||gt(process.execArgv,_t=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(_t))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{ci("source-map-support").install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1Bc")},setBlocking:()=>{var _t;let Je=(_t=process.stdout)==null?void 0:_t._handle;Je&&Je.setBlocking&&Je.setBlocking(!0)},bufferFrom:ge,base64decode:_t=>ge(_t,"base64").toString("utf8"),base64encode:_t=>ge(_t).toString("base64"),require:(_t,Je)=>{try{let ft=Ise(Je,_t,B);return{module:ci(ft),modulePath:ft,error:void 0}}catch(ft){return{module:void 0,modulePath:void 0,error:ft}}}};return B;function ce(_t){return o.statSync(_t,{throwIfNoEntry:!1})}function z(_t,Je){if(p)return Je(),!1;let ft=ci("inspector");if(!ft||!ft.Session)return Je(),!1;let Zt=new ft.Session;return Zt.connect(),Zt.post("Profiler.enable",()=>{Zt.post("Profiler.start",()=>{p=Zt,h=_t,Je()})}),!0}function ee(_t){let Je=0,ft=new Map,Zt=Nd(s.dirname(D)),en=`file://${lh(Zt)===1?"":"/"}${Zt}`;for(let Dn of _t.nodes)if(Dn.callFrame.url){let Kn=Nd(Dn.callFrame.url);mm(en,Kn,A)?Dn.callFrame.url=_I(en,Kn,en,Cd(A),!0):i.test(Kn)||(Dn.callFrame.url=(ft.has(Kn)?ft:ft.set(Kn,`external${Je}.js`)).get(Kn),Je++)}return _t}function me(_t){if(p&&p!=="stopping"){let Je=p;return p.post("Profiler.stop",(ft,{profile:Zt})=>{var en;if(!ft){try{(en=ce(h))!=null&&en.isDirectory()&&(h=s.join(h,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch{}try{o.mkdirSync(s.dirname(h),{recursive:!0})}catch{}o.writeFileSync(h,JSON.stringify(ee(Zt)))}p=void 0,Je.disconnect(),_t()}),p="stopping",!0}else return _t(),!1}function ge(_t,Je){return m.from&&m.from!==Int8Array.from?m.from(_t,Je):new m(_t,Je)}function q(){return S==="win32"||S==="win64"?!1:!ve(J(__filename))}function J(_t){return _t.replace(/\w/g,Je=>{let ft=Je.toUpperCase();return Je===ft?Je.toLowerCase():ft})}function re(_t,Je,ft){o.watchFile(_t,{persistent:!0,interval:ft},en);let Zt;return{close:()=>o.unwatchFile(_t,en)};function en(Dn,Kn){let pn=+Kn.mtime==0||Zt===2;if(+Dn.mtime==0){if(pn)return;Zt=2}else if(pn)Zt=0;else{if(+Dn.mtime==+Kn.mtime)return;Zt=1}Je(_t,Zt,Dn.mtime)}}function pe(_t,Je,ft){return o.watch(_t,w?{persistent:!0,recursive:!!Je}:{persistent:!0},ft)}function xe(_t,Je){let ft;try{ft=o.readFileSync(_t)}catch{return}let Zt=ft.length;if(Zt>=2&&ft[0]===254&&ft[1]===255){Zt&=-2;for(let en=0;en=2&&ft[0]===255&&ft[1]===254?ft.toString("utf16le",2):Zt>=3&&ft[0]===239&&ft[1]===187&&ft[2]===191?ft.toString("utf8",3):ft.toString("utf8")}function fe(_t,Je){var ft,Zt;(ft=ru)==null||ft.logStartReadFile(_t);let en=xe(_t,Je);return(Zt=ru)==null||Zt.logStopReadFile(),en}function ne(_t,Je,ft){var Zt;(Zt=ru)==null||Zt.logEvent("WriteFile: "+_t),ft&&(Je=e+Je);let en;try{en=o.openSync(_t,"w"),o.writeSync(en,Je,void 0,"utf8")}finally{en!==void 0&&o.closeSync(en)}}function he(_t){var Je;(Je=ru)==null||Je.logEvent("ReadDir: "+(_t||"."));try{let ft=o.readdirSync(_t||".",{withFileTypes:!0}),Zt=[],en=[];for(let Dn of ft){let Kn=typeof Dn=="string"?Dn:Dn.name;if(Kn==="."||Kn==="..")continue;let pn;if(typeof Dn=="string"||Dn.isSymbolicLink()){let Yt=$r(_t,Kn);try{if(pn=ce(Yt),!pn)continue}catch{continue}}else pn=Dn;pn.isFile()?Zt.push(Kn):pn.isDirectory()&&en.push(Kn)}return Zt.sort(),en.sort(),{files:Zt,directories:en}}catch{return Q6}}function Ce(_t,Je,ft,Zt,en){return lU(_t,Je,ft,Zt,A,process.cwd(),en,he,Et)}function Ge(_t,Je){let ft=Error.stackTraceLimit;Error.stackTraceLimit=0;try{let Zt=ce(_t);if(!Zt)return!1;switch(Je){case 0:return Zt.isFile();case 1:return Zt.isDirectory();default:return!1}}catch{return!1}finally{Error.stackTraceLimit=ft}}function ve(_t){return Ge(_t,0)}function Ie(_t){return Ge(_t,1)}function De(_t){return he(_t).directories.slice()}function Le(_t){return _t.length<260?o.realpathSync.native(_t):o.realpathSync(_t)}function Et(_t){try{return N(_t)}catch{return _t}}function be(_t){var Je;let ft=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return(Je=ce(_t))==null?void 0:Je.mtime}catch{return}finally{Error.stackTraceLimit=ft}}function ze(_t,Je){try{o.utimesSync(_t,Je,Je)}catch{return}}function tt(_t){try{return o.unlinkSync(_t)}catch{return}}function Wt(_t){let Je=d.createHash("sha256");return Je.update(_t),Je.digest("hex")}}let r;return qG()&&(r=t()),r&&Nne(r),r})(),md&&md.getEnvironmentVariable&&(f7e(md),R.setAssertionLevel(/^development$/i.test(md.getEnvironmentVariable("NODE_ENV"))?1:0)),md&&md.debugMode&&(R.isDebugging=!0)}});function oV(e){return e===47||e===92}function Mne(e){return HW(e)<0}function cp(e){return HW(e)>0}function aV(e){let t=HW(e);return t>0&&t===e.length}function JC(e){return HW(e)!==0}function Lp(e){return/^\.\.?($|[\\/])/.test(e)}function sV(e){return!JC(e)&&!Lp(e)}function mI(e){return nc(e).includes(".")}function Sl(e,t){return e.length>t.length&&El(e,t)}function bc(e,t){for(let r of t)if(Sl(e,r))return!0;return!1}function xy(e){return e.length>0&&oV(e.charCodeAt(e.length-1))}function VEe(e){return e>=97&&e<=122||e>=65&&e<=90}function S7e(e,t){let r=e.charCodeAt(t);if(r===58)return t+1;if(r===37&&e.charCodeAt(t+1)===51){let i=e.charCodeAt(t+2);if(i===97||i===65)return t+3}return-1}function HW(e){if(!e)return 0;let t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;let i=e.indexOf(t===47?nl:zL,2);return i<0?e.length:i+1}if(VEe(t)&&e.charCodeAt(1)===58){let i=e.charCodeAt(2);if(i===47||i===92)return 3;if(e.length===2)return 2}let r=e.indexOf(wne);if(r!==-1){let i=r+wne.length,o=e.indexOf(nl,i);if(o!==-1){let s=e.slice(0,r),l=e.slice(i,o);if(s==="file"&&(l===""||l==="localhost")&&VEe(e.charCodeAt(o+1))){let d=S7e(e,o+2);if(d!==-1){if(e.charCodeAt(d)===47)return~(d+1);if(d===e.length)return~d}}return~(o+1)}return~e.length}return 0}function lh(e){let t=HW(e);return t<0?~t:t}function oi(e){e=Nd(e);let t=lh(e);return t===e.length?e:(e=Yb(e),e.slice(0,Math.max(t,e.lastIndexOf(nl))))}function nc(e,t,r){if(e=Nd(e),lh(e)===e.length)return"";e=Yb(e);let o=e.slice(Math.max(lh(e),e.lastIndexOf(nl)+1)),s=t!==void 0&&r!==void 0?Dx(o,t,r):void 0;return s?o.slice(0,o.length-s.length):o}function jEe(e,t,r){if(ao(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){let i=e.slice(e.length-t.length);if(r(i,t))return i}}function T7e(e,t,r){if(typeof t=="string")return jEe(e,t,r)||"";for(let i of t){let o=jEe(e,i,r);if(o)return o}return""}function Dx(e,t,r){if(t)return T7e(Yb(e),t,r?Xb:eT);let i=nc(e),o=i.lastIndexOf(".");return o>=0?i.substring(o):""}function A7e(e,t){let r=e.substring(0,t),i=e.substring(t).split(nl);return i.length&&!$s(i)&&i.pop(),[r,...i]}function Wc(e,t=""){return e=$r(t,e),A7e(e,lh(e))}function Av(e,t){return e.length===0?"":(e[0]&&Fc(e[0]))+e.slice(1,t).join(nl)}function Nd(e){return e.includes("\\")?e.replace(KEe,nl):e}function iT(e){if(!gt(e))return[];let t=[e[0]];for(let r=1;r1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(i)}}return t}function $r(e,...t){e&&(e=Nd(e));for(let r of t)r&&(r=Nd(r),!e||lh(r)!==0?e=r:e=Fc(e)+r);return e}function Iv(e,...t){return fa(gt(t)?$r(e,...t):Nd(e))}function OL(e,t){return iT(Wc(e,t))}function _o(e,t){return Av(OL(e,t))}function fa(e){if(e=Nd(e),!JW.test(e))return e;let t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!JW.test(e)))return e;let r=Av(iT(Wc(e)));return r&&xy(e)?Fc(r):r}function I7e(e){return e.length===0?"":e.slice(1).join(nl)}function lV(e,t){return I7e(OL(e,t))}function tl(e,t,r){let i=cp(e)?fa(e):_o(e,t);return r(i)}function Yb(e){return xy(e)?e.substr(0,e.length-1):e}function Fc(e){return xy(e)?e:e+nl}function g0(e){return!JC(e)&&!Lp(e)?"./"+e:e}function WL(e,t,r,i){let o=r!==void 0&&i!==void 0?Dx(e,r,i):Dx(e);return o?e.slice(0,e.length-o.length)+(ao(t,".")?t:"."+t):e}function Lne(e,t){let r=CH(e);return r?e.slice(0,e.length-r.length)+(ao(t,".")?t:"."+t):WL(e,t)}function kne(e,t,r){if(e===t)return 0;if(e===void 0)return-1;if(t===void 0)return 1;let i=e.substring(0,lh(e)),o=t.substring(0,lh(t)),s=vW(i,o);if(s!==0)return s;let l=e.substring(i.length),d=t.substring(o.length);if(!JW.test(l)&&!JW.test(d))return r(l,d);let p=iT(Wc(e)),h=iT(Wc(t)),m=Math.min(p.length,h.length);for(let y=1;y0==lh(t)>0,"Paths must either both be absolute or both be relative");let s=dV(e,t,(typeof r=="boolean"?r:!1)?Xb:eT,typeof r=="function"?r:Qs);return Av(s)}function qC(e,t,r){return cp(e)?_I(t,e,t,r,!1):e}function FL(e,t,r){return g0(_m(oi(e),t,r))}function _I(e,t,r,i,o){let s=dV(Iv(r,e),Iv(r,t),eT,i),l=s[0];if(o&&cp(l)){let d=l.charAt(0)===nl?"file://":"file:///";s[0]=d+l}return Av(s)}function hm(e,t){for(;;){let r=t(e);if(r!==void 0)return r;let i=oi(e);if(i===e)return;e=i}}function KW(e){return El(e,"/node_modules")}var nl,zL,wne,KEe,JW,x7e=bt({"src/compiler/path.ts"(){"use strict";Zo(),nl="/",zL="\\",wne="://",KEe=/\\/g,JW=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function b(e,t,r,i,o,s,l){return{code:e,category:t,key:r,message:i,reportsUnnecessary:o,elidedInCompatabilityPyramid:s,reportsDeprecated:l}}var f,R7e=bt({"src/compiler/diagnosticInformationMap.generated.ts"(){"use strict";wEe(),f={Unterminated_string_literal:b(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:b(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:b(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:b(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:b(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:b(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:b(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:b(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:b(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:b(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:b(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:b(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:b(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:b(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:b(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:b(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:b(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:b(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:b(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:b(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:b(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:b(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:b(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:b(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:b(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:b(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:b(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:b(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:b(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:b(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:b(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:b(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:b(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:b(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:b(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:b(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:b(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:b(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:b(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:b(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:b(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:b(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:b(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:b(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:b(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:b(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:b(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:b(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:b(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:b(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:b(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:b(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:b(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:b(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:b(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:b(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:b(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:b(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:b(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:b(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:b(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:b(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:b(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:b(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:b(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:b(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:b(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:b(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:b(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:b(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:b(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:b(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:b(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:b(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:b(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:b(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:b(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:b(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:b(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:b(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:b(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:b(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:b(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:b(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:b(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:b(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:b(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:b(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:b(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:b(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:b(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:b(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:b(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:b(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:b(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:b(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:b(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:b(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:b(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:b(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:b(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:b(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:b(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:b(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:b(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:b(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:b(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:b(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:b(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:b(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:b(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:b(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:b(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:b(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:b(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:b(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:b(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:b(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:b(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:b(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:b(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:b(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:b(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:b(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:b(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:b(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:b(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:b(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:b(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:b(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:b(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:b(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:b(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:b(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:b(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:b(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:b(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:b(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:b(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:b(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:b(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:b(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:b(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:b(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:b(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:b(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:b(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:b(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:b(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:b(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:b(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:b(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:b(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:b(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:b(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:b(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:b(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:b(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:b(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:b(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:b(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:b(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:b(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:b(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:b(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:b(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:b(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:b(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:b(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:b(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:b(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:b(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:b(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:b(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:b(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:b(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:b(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:b(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:b(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:b(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:b(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:b(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:b(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:b(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:b(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:b(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:b(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:b(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:b(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:b(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:b(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:b(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:b(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:b(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:b(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:b(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:b(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:b(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:b(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:b(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:b(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:b(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:b(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:b(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:b(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:b(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:b(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:b(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:b(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:b(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:b(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:b(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:b(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:b(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:b(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:b(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:b(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:b(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:b(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:b(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:b(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:b(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:b(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:b(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:b(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:b(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:b(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:b(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:b(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:b(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:b(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:b(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:b(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:b(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:b(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:b(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:b(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:b(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:b(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:b(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:b(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:b(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),with_statements_are_not_allowed_in_an_async_function_block:b(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:b(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:b(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:b(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:b(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:b(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:b(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:b(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:b(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:b(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:b(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:b(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:b(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:b(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:b(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:b(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:b(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:b(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:b(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:b(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:b(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:b(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:b(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:b(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:b(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:b(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:b(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:b(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:b(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:b(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:b(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:b(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:b(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:b(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:b(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:b(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:b(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:b(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:b(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:b(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:b(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:b(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:b(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:b(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:b(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:b(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:b(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:b(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:b(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:b(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:b(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:b(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:b(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:b(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:b(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:b(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:b(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:b(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:b(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:b(1371,1,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:b(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:b(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:b(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:b(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:b(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:b(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:b(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:b(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:b(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:b(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:b(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:b(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:b(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:b(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:b(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:b(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:b(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:b(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:b(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:b(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:b(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:b(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:b(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:b(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:b(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:b(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:b(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:b(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:b(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:b(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:b(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:b(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:b(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:b(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:b(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:b(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:b(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:b(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:b(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:b(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:b(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:b(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:b(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:b(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:b(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:b(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:b(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:b(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:b(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:b(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:b(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:b(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:b(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:b(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:b(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:b(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:b(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:b(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:b(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:b(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:b(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:b(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:b(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:b(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:b(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:b(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:b(1444,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:b(1446,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:b(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:b(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:b(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:b(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:b(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:b(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:b(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:b(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:b(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:b(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:b(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:b(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:b(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:b(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:b(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:b(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:b(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:b(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:b(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:b(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:b(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:b(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:b(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:b(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:b(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:b(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:b(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:b(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:b(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:b(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:b(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:b(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:b(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:b(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:b(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:b(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:b(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:b(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:b(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:b(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:b(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:b(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),The_types_of_0_are_incompatible_between_these_types:b(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:b(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:b(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:b(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:b(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:b(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:b(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:b(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:b(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:b(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:b(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:b(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:b(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:b(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:b(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:b(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:b(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:b(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:b(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:b(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:b(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:b(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:b(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:b(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:b(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:b(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:b(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:b(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:b(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:b(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:b(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:b(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:b(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:b(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:b(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:b(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:b(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:b(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:b(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:b(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:b(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:b(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:b(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:b(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:b(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:b(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:b(2333,1,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:b(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:b(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:b(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:b(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:b(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:b(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:b(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:b(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:b(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:b(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:b(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Untyped_function_calls_may_not_accept_type_arguments:b(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:b(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:b(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:b(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:b(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:b(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:b(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:b(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:b(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:b(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:b(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:b(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:b(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:b(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:b(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:b(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:b(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:b(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:b(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:b(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:b(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:b(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:b(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:b(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:b(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:b(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:b(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:b(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:b(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:b(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:b(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:b(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:b(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:b(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:b(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:b(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:b(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:b(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:b(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:b(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:b(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:b(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:b(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:b(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:b(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:b(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:b(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:b(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:b(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:b(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:b(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:b(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:b(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:b(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:b(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:b(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:b(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:b(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:b(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:b(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:b(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:b(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:b(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:b(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:b(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:b(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:b(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:b(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:b(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:b(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:b(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:b(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:b(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:b(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:b(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:b(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:b(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:b(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:b(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:b(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:b(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:b(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:b(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:b(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:b(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:b(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:b(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:b(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:b(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:b(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:b(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:b(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:b(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:b(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:b(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:b(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:b(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:b(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:b(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:b(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:b(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:b(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:b(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:b(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:b(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:b(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:b(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:b(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:b(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:b(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:b(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:b(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:b(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:b(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:b(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:b(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:b(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:b(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:b(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:b(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:b(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:b(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:b(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:b(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:b(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:b(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:b(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:b(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:b(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:b(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:b(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:b(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:b(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:b(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:b(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:b(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:b(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:b(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:b(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:b(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:b(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:b(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:b(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:b(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:b(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:b(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:b(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:b(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:b(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:b(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:b(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:b(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:b(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:b(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:b(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:b(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:b(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:b(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:b(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:b(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:b(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:b(2525,1,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:b(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:b(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:b(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:b(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:b(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:b(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:b(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:b(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:b(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:b(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:b(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:b(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:b(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:b(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:b(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:b(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:b(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:b(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:b(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:b(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:b(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:b(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:b(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:b(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:b(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:b(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:b(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:b(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:b(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:b(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:b(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:b(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:b(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:b(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:b(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:b(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:b(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:b(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:b(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:b(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:b(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:b(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:b(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:b(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:b(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:b(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:b(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:b(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:b(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:b(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:b(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:b(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:b(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:b(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:b(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:b(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:b(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:b(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:b(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:b(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:b(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:b(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:b(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:b(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:b(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:b(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:b(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:b(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:b(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:b(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:b(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:b(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:b(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:b(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:b(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:b(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:b(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:b(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:b(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:b(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:b(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:b(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:b(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:b(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:b(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:b(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:b(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:b(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:b(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:b(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:b(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:b(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:b(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:b(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:b(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:b(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:b(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:b(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:b(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:b(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:b(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:b(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:b(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),JSX_expressions_must_have_one_parent_element:b(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:b(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:b(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:b(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:b(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:b(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:b(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:b(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:b(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:b(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:b(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:b(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:b(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:b(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:b(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:b(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:b(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:b(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:b(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:b(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:b(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:b(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:b(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:b(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:b(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:b(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:b(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:b(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:b(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:b(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:b(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:b(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:b(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:b(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:b(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:b(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:b(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:b(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:b(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:b(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:b(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:b(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:b(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:b(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:b(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:b(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:b(2705,1,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:b(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:b(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:b(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:b(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:b(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:b(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:b(2712,1,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:b(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:b(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:b(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:b(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:b(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:b(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:b(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:b(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:b(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:b(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:b(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:b(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:b(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:b(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:b(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:b(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:b(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:b(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:b(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:b(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:b(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:b(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:b(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:b(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:b(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:b(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:b(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:b(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:b(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:b(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:b(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:b(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:b(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:b(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:b(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:b(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:b(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:b(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:b(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:b(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:b(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:b(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:b(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:b(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:b(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:b(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:b(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:b(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:b(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:b(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:b(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:b(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:b(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:b(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:b(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:b(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:b(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:b(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:b(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:b(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:b(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:b(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:b(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:b(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:b(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:b(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:b(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:b(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:b(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:b(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:b(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:b(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:b(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:b(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:b(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:b(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:b(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:b(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:b(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:b(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:b(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:b(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:b(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:b(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:b(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:b(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:b(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:b(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:b(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:b(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:b(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:b(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:b(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:b(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:b(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:b(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:b(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:b(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:b(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:b(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:b(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:b(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:b(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:b(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:b(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:b(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:b(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:b(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:b(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:b(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:b(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:b(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:b(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:b(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:b(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:b(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:b(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:b(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:b(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:b(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:b(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:b(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:b(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:b(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:b(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:b(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:b(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:b(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:b(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:b(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:b(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:b(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:b(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:b(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:b(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:b(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:b(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:b(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:b(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:b(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:b(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:b(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:b(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:b(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Import_declaration_0_is_using_private_name_1:b(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:b(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:b(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:b(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:b(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:b(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:b(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:b(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:b(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:b(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:b(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:b(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:b(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:b(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:b(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:b(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:b(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:b(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:b(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:b(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:b(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:b(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:b(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:b(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:b(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:b(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:b(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:b(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:b(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:b(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:b(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:b(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:b(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:b(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:b(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:b(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:b(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:b(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:b(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:b(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:b(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:b(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:b(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:b(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:b(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:b(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:b(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:b(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:b(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:b(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:b(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:b(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:b(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:b(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:b(4090,1,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:b(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:b(4094,1,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:b(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:b(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:b(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:b(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:b(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:b(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:b(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:b(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:b(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:b(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:b(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:b(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:b(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:b(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:b(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:b(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:b(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:b(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:b(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:b(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:b(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:b(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:b(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:b(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:b(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:b(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:b(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:b(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),The_current_host_does_not_support_the_0_option:b(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:b(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:b(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:b(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:b(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:b(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:b(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:b(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:b(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:b(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:b(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:b(5048,1,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:b(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:b(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:b(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:b(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:b(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:b(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:b(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:b(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:b(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:b(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:b(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:b(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:b(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:b(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:b(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:b(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:b(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:b(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:b(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:b(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:b(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:b(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:b(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:b(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:b(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:b(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:b(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:b(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:b(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:b(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:b(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:b(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:b(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:b(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:b(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:b(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:b(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:b(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:b(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:b(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:b(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:b(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:b(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:b(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:b(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:b(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:b(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:b(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:b(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:b(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:b(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:b(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:b(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:b(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:b(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:b(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:b(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:b(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:b(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:b(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:b(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:b(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:b(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:b(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:b(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:b(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:b(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:b(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:b(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:b(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:b(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:b(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:b(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:b(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:b(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:b(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:b(6024,3,"options_6024","options"),file:b(6025,3,"file_6025","file"),Examples_Colon_0:b(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:b(6027,3,"Options_Colon_6027","Options:"),Version_0:b(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:b(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:b(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:b(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:b(6034,3,"KIND_6034","KIND"),FILE:b(6035,3,"FILE_6035","FILE"),VERSION:b(6036,3,"VERSION_6036","VERSION"),LOCATION:b(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:b(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:b(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:b(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:b(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:b(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:b(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:b(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:b(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:b(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:b(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:b(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:b(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:b(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:b(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:b(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:b(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:b(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:b(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:b(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:b(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:b(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:b(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:b(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:b(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:b(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:b(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:b(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:b(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:b(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:b(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:b(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:b(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:b(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:b(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:b(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:b(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:b(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:b(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:b(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:b(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:b(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:b(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:b(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:b(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:b(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:b(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:b(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:b(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:b(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:b(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:b(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:b(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:b(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:b(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:b(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:b(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:b(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:b(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:b(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:b(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:b(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:b(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:b(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:b(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:b(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:b(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:b(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:b(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:b(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:b(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:b(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:b(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:b(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:b(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:b(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:b(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:b(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:b(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:b(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:b(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:b(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:b(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:b(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:b(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:b(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:b(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:b(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:b(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:b(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:b(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:b(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:b(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:b(6145,3,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:b(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:b(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:b(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:b(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:b(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:b(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:b(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:b(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:b(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:b(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:b(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:b(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:b(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:b(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:b(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:b(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:b(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:b(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:b(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:b(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:b(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:b(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:b(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:b(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:b(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:b(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:b(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:b(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:b(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:b(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:b(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:b(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:b(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:b(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:b(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:b(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:b(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:b(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:b(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:b(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:b(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:b(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:b(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:b(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:b(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:b(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:b(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:b(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:b(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:b(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:b(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:b(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:b(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:b(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:b(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:b(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:b(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:b(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:b(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:b(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:b(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:b(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:b(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:b(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:b(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:b(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:b(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:b(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:b(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:b(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:b(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:b(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:b(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:b(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:b(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:b(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:b(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:b(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:b(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:b(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:b(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:b(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:b(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:b(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:b(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:b(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:b(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:b(6244,3,"Modules_6244","Modules"),File_Management:b(6245,3,"File_Management_6245","File Management"),Emit:b(6246,3,"Emit_6246","Emit"),JavaScript_Support:b(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:b(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:b(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:b(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:b(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:b(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:b(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:b(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:b(6255,3,"Projects_6255","Projects"),Output_Formatting:b(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:b(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:b(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:b(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:b(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:b(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:b(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:b(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:b(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:b(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:b(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:b(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:b(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:b(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:b(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:b(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:b(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:b(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:b(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:b(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:b(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:b(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),Enable_project_compilation:b(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:b(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:b(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:b(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:b(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:b(6308,1,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:b(6309,1,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:b(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:b(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:b(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:b(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:b(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:b(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:b(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:b(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:b(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:b(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:b(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:b(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:b(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:b(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:b(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:b(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:b(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:b(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:b(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:b(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:b(6372,3,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:b(6373,3,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:b(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:b(6375,3,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:b(6376,3,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:b(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:b(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:b(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:b(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:b(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:b(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:b(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:b(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:b(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:b(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:b(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:b(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:b(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:b(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:b(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:b(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:b(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:b(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:b(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:b(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:b(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:b(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:b(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:b(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:b(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:b(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:b(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:b(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:b(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:b(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:b(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:b(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:b(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:b(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:b(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:b(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:b(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:b(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:b(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:b(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:b(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:b(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:b(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:b(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:b(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:b(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:b(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:b(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:b(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:b(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:b(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:b(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:b(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:b(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:b(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:b(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:b(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:b(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:b(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:b(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:b(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:b(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:b(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:b(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:b(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:b(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:b(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:b(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:b(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:b(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:b(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:b(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:b(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:b(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:b(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:b(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:b(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:b(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:b(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:b(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:b(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:b(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:b(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:b(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:b(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:b(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:b(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:b(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:b(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:b(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:b(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:b(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:b(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:b(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:b(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:b(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:b(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:b(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:b(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:b(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:b(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:b(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:b(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:b(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:b(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:b(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:b(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:b(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:b(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:b(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:b(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:b(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:b(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:b(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:b(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:b(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:b(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:b(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:b(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:b(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:b(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:b(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:b(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:b(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:b(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:b(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:b(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:b(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:b(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:b(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:b(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:b(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:b(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:b(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:b(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:b(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:b(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:b(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:b(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:b(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:b(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:b(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:b(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:b(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:b(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:b(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:b(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:b(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:b(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:b(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:b(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:b(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:b(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:b(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:b(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:b(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:b(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:b(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:b(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:b(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:b(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:b(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Default_catch_clause_variables_as_unknown_instead_of_any:b(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:b(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),one_of_Colon:b(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:b(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:b(6902,3,"type_Colon_6902","type:"),default_Colon:b(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:b(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:b(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:b(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:b(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:b(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:b(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:b(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:b(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:b(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:b(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:b(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:b(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:b(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:b(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:b(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:b(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:b(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:b(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:b(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:b(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:b(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:b(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:b(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:b(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:b(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:b(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:b(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:b(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:b(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:b(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:b(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:b(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:b(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:b(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:b(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:b(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:b(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:b(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:b(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:b(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:b(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:b(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:b(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:b(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:b(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:b(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:b(7025,1,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:b(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:b(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:b(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:b(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:b(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:b(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:b(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:b(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:b(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:b(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:b(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:b(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:b(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:b(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:b(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:b(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:b(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:b(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:b(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:b(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:b(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:b(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:b(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:b(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:b(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:b(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:b(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:b(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:b(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:b(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:b(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:b(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:b(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:b(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:b(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:b(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:b(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:b(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:b(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:b(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:b(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:b(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:b(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:b(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:b(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:b(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:b(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:b(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:b(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:b(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:b(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:b(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:b(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:b(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:b(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:b(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:b(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:b(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:b(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:b(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:b(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:b(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:b(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:b(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:b(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:b(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:b(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:b(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:b(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:b(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:b(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:b(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:b(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:b(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:b(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:b(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:b(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:b(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:b(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:b(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:b(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:b(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:b(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:b(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:b(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:b(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:b(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:b(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:b(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:b(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:b(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:b(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:b(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:b(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:b(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:b(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:b(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:b(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:b(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:b(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:b(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:b(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:b(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:b(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:b(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:b(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:b(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:b(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:b(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:b(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:b(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:b(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:b(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:b(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:b(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:b(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:b(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:b(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:b(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:b(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:b(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:b(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:b(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:b(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:b(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:b(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:b(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:b(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:b(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:b(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:b(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:b(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:b(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:b(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:b(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:b(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:b(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:b(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:b(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:b(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:b(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:b(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:b(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:b(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:b(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:b(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:b(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:b(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:b(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:b(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:b(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:b(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:b(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:b(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:b(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:b(95005,3,"Extract_function_95005","Extract function"),Extract_constant:b(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:b(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:b(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:b(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:b(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:b(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:b(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:b(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:b(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:b(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:b(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:b(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:b(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:b(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:b(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:b(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:b(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:b(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:b(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:b(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:b(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:b(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:b(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:b(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:b(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:b(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:b(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:b(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:b(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:b(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:b(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:b(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:b(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:b(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:b(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:b(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:b(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:b(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:b(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:b(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:b(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:b(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:b(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:b(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:b(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:b(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:b(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:b(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:b(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:b(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:b(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:b(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:b(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:b(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:b(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:b(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:b(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:b(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:b(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:b(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:b(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:b(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:b(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:b(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:b(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:b(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:b(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:b(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:b(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:b(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:b(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:b(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:b(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:b(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:b(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:b(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:b(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:b(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:b(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:b(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:b(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:b(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:b(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:b(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:b(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:b(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:b(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:b(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:b(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:b(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:b(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:b(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:b(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:b(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:b(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:b(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:b(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:b(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:b(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:b(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:b(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:b(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:b(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:b(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:b(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:b(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:b(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:b(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:b(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:b(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:b(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:b(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:b(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:b(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:b(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:b(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:b(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:b(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:b(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:b(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:b(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:b(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:b(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:b(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:b(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:b(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:b(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:b(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:b(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:b(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:b(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:b(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:b(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:b(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:b(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:b(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:b(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:b(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:b(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:b(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:b(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:b(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:b(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:b(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:b(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:b(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:b(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:b(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:b(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:b(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:b(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:b(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:b(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:b(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:b(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:b(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:b(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:b(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:b(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:b(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:b(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:b(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:b(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:b(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:b(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:b(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:b(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:b(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:b(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:b(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:b(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:b(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:b(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:b(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:b(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:b(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:b(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:b(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:b(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:b(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:b(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:b(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:b(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:b(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:b(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:b(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:b(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:b(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:b(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:b(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:b(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:b(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:b(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:b(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:b(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:b(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:b(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:b(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:b(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:b(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:b(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:b(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:b(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:b(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:b(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:b(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:b(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:b(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:b(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:b(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:b(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:b(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:b(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:b(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:b(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:b(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:b(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:b(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:b(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:b(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:b(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:b(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:b(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:b(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Non_abstract_class_0_does_not_implement_all_abstract_members_of_1:b(18052,1,"Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052","Non-abstract class '{0}' does not implement all abstract members of '{1}'"),Its_type_0_is_not_a_valid_JSX_element_type:b(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:b(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block.")}}});function iu(e){return e>=80}function One(e){return e===32||iu(e)}function BL(e,t){if(e=2?BL(e,e0e):t===1?BL(e,QEe):BL(e,YEe)}function D7e(e,t){return t>=2?BL(e,t0e):t===1?BL(e,ZEe):BL(e,$Ee)}function C7e(e){let t=[];return e.forEach((r,i)=>{t[r]=i}),t}function ca(e){return o0e[e]}function y0(e){return Bne.get(e)}function hI(e){let t=[],r=0,i=0;for(;r127&&Vd(o)&&(t.push(i),i=r);break}}return t.push(i),t}function GL(e,t,r,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,i):XW(Rg(e),t,r,e.text,i)}function XW(e,t,r,i,o){(t<0||t>=e.length)&&(o?t=t<0?0:t>=e.length?e.length-1:t:R.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${i!==void 0?EL(e,hI(i)):"unknown"}`));let s=e[t]+r;return o?s>e[t+1]?e[t+1]:typeof i=="string"&&s>i.length?i.length:s:(t=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function Vd(e){return e===10||e===13||e===8232||e===8233}function $C(e){return e>=48&&e<=57}function JEe(e){return $C(e)||e>=65&&e<=70||e>=97&&e<=102}function N7e(e){return e<=1114111}function YW(e){return e>=48&&e<=55}function Wne(e,t){let r=e.charCodeAt(t);switch(r){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return t===0;default:return r>127}}function Pa(e,t,r,i,o){if(Jm(t))return t;let s=!1;for(;;){let l=e.charCodeAt(t);switch(l){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,r)return t;s=!!o;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(i)break;if(e.charCodeAt(t+1)===47){for(t+=2;t127&&Dg(l)){t++;continue}break}return t}}function QC(e,t){if(R.assert(t>=0),t===0||Vd(e.charCodeAt(t-1))){let r=e.charCodeAt(t);if(t+QW=0&&r127&&Dg(A)){y&&Vd(A)&&(m=!0),r++;continue}break e}}return y&&(S=o(d,p,h,m,s,S)),S}function jL(e,t,r,i){return fV(!1,e,t,!1,r,i)}function UL(e,t,r,i){return fV(!1,e,t,!0,r,i)}function Fne(e,t,r,i,o){return fV(!0,e,t,!1,r,i,o)}function zne(e,t,r,i,o){return fV(!0,e,t,!0,r,i,o)}function qEe(e,t,r,i,o,s=[]){return s.push({kind:r,pos:e,end:t,hasTrailingNewLine:i}),s}function Uh(e,t){return Fne(e,t,qEe,void 0,void 0)}function $b(e,t){return zne(e,t,qEe,void 0,void 0)}function $W(e){let t=mV.exec(e);if(t)return t[0]}function Hh(e,t){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>127&&qW(e,t)}function Qb(e,t,r){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===36||e===95||(r===1?e===45||e===58:!1)||e>127&&D7e(e,t)}function $p(e,t,r){let i=xv(e,0);if(!Hh(i,t))return!1;for(let o=Zb(i);om,getStartPos:()=>m,getTokenEnd:()=>p,getTextPos:()=>p,getToken:()=>E,getTokenStart:()=>y,getTokenPos:()=>y,getTokenText:()=>d.substring(y,p),getTokenValue:()=>S,hasUnicodeEscape:()=>(A&1024)!==0,hasExtendedUnicodeEscape:()=>(A&8)!==0,hasPrecedingLineBreak:()=>(A&1)!==0,hasPrecedingJSDocComment:()=>(A&2)!==0,isIdentifier:()=>E===80||E>118,isReservedWord:()=>E>=83&&E<=118,isUnterminated:()=>(A&4)!==0,getCommentDirectives:()=>N,getNumericLiteralFlags:()=>A&25584,getTokenFlags:()=>A,reScanGreaterToken:be,reScanAsteriskEqualsToken:ze,reScanSlashToken:tt,reScanTemplateToken:Je,reScanTemplateHeadOrNoSubstitutionTemplate:ft,scanJsxIdentifier:Yt,scanJsxAttributeValue:qt,reScanJsxAttributeValue:hi,reScanJsxToken:Zt,reScanLessThanToken:en,reScanHashToken:Dn,reScanQuestionToken:Kn,reScanInvalidIdentifier:Le,scanJsxToken:pn,scanJsDocToken:Li,scanJSDocCommentTextToken:uo,scan:Ie,getText:on,clearCommentDirectives:Ye,setText:Ot,setScriptTarget:si,setLanguageVariant:yi,setScriptKind:$i,setJSDocParsingMode:Ao,setOnError:In,resetTokenState:da,setTextPos:da,setInJSDocType:Ba,tryScan:Er,lookAhead:Ur,scanRange:Qn};return R.isDebugging&&Object.defineProperty(K,"__debugShowCurrentPositionInText",{get:()=>{let vn=K.getText();return vn.slice(0,K.getTokenFullStart())+"\u2551"+vn.slice(K.getTokenFullStart())}}),K;function Y(vn,kn=p,Be,ct){if(o){let lt=p;p=kn,o(vn,Be||0,ct),p=lt}}function B(){let vn=p,kn=!1,Be=!1,ct="";for(;;){let lt=d.charCodeAt(p);if(lt===95){A|=512,kn?(kn=!1,Be=!0,ct+=d.substring(vn,p)):(A|=16384,Y(Be?f.Multiple_consecutive_numeric_separators_are_not_permitted:f.Numeric_separators_are_not_allowed_here,p,1)),p++,vn=p;continue}if($C(lt)){kn=!0,Be=!1,p++;continue}break}return d.charCodeAt(p-1)===95&&(A|=16384,Y(f.Numeric_separators_are_not_allowed_here,p-1,1)),ct+d.substring(vn,p)}function ce(){let vn=p,kn;if(d.charCodeAt(p)===48)if(p++,d.charCodeAt(p)===95)A|=16896,Y(f.Numeric_separators_are_not_allowed_here,p,1),p--,kn=B();else if(!ee())A|=8192,kn=""+ +S;else if(!S)kn="0";else{S=""+parseInt(S,8),A|=32;let se=E===41,ke=(se?"-":"")+"0o"+(+S).toString(8);return se&&vn--,Y(f.Octal_literals_are_not_allowed_Use_the_syntax_0,vn,p-vn,ke),9}else kn=B();let Be,ct;d.charCodeAt(p)===46&&(p++,Be=B());let lt=p;if(d.charCodeAt(p)===69||d.charCodeAt(p)===101){p++,A|=16,(d.charCodeAt(p)===43||d.charCodeAt(p)===45)&&p++;let se=p,ke=B();ke?(ct=d.substring(lt,se)+ke,lt=p):Y(f.Digit_expected)}let Dt;if(A&512?(Dt=kn,Be&&(Dt+="."+Be),ct&&(Dt+=ct)):Dt=d.substring(vn,lt),A&8192)return Y(f.Decimals_with_leading_zeros_are_not_allowed,vn,lt-vn),S=""+ +Dt,9;if(Be!==void 0||A&16)return z(vn,Be===void 0&&!!(A&16)),S=""+ +Dt,9;{S=Dt;let se=ve();return z(vn),se}}function z(vn,kn){if(!Hh(xv(d,p),e))return;let Be=p,{length:ct}=he();ct===1&&d[Be]==="n"?Y(kn?f.A_bigint_literal_cannot_use_exponential_notation:f.A_bigint_literal_must_be_an_integer,vn,Be-vn+1):(Y(f.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,Be,ct),p=Be)}function ee(){let vn=p,kn=!0;for(;$C(d.charCodeAt(p));)YW(d.charCodeAt(p))||(kn=!1),p++;return S=d.substring(vn,p),kn}function me(vn,kn){let Be=q(vn,!1,kn);return Be?parseInt(Be,16):-1}function ge(vn,kn){return q(vn,!0,kn)}function q(vn,kn,Be){let ct=[],lt=!1,Dt=!1;for(;ct.length=65&&se<=70)se+=32;else if(!(se>=48&&se<=57||se>=97&&se<=102))break;ct.push(se),p++,Dt=!1}return ct.length=h){Be+=d.substring(ct,p),A|=4,Y(f.Unterminated_string_literal);break}let lt=d.charCodeAt(p);if(lt===kn){Be+=d.substring(ct,p),p++;break}if(lt===92&&!vn){Be+=d.substring(ct,p),Be+=pe(!0),ct=p;continue}if((lt===10||lt===13)&&!vn){Be+=d.substring(ct,p),A|=4,Y(f.Unterminated_string_literal);break}p++}return Be}function re(vn){let kn=d.charCodeAt(p)===96;p++;let Be=p,ct="",lt;for(;;){if(p>=h){ct+=d.substring(Be,p),A|=4,Y(f.Unterminated_template_literal),lt=kn?15:18;break}let Dt=d.charCodeAt(p);if(Dt===96){ct+=d.substring(Be,p),p++,lt=kn?15:18;break}if(Dt===36&&p+1=h)return Y(f.Unexpected_end_of_text),"";let Be=d.charCodeAt(p);switch(p++,Be){case 48:if(p>=h||!$C(d.charCodeAt(p)))return"\0";case 49:case 50:case 51:p=h?(A|=2048,vn&&Y(f.Unexpected_end_of_text),d.substring(kn,p)):d.charCodeAt(p)!==125?(A|=2048,vn&&Y(f.Unterminated_Unicode_escape_sequence),d.substring(kn,p)):(p++,A|=8,Nx(lt)):(A|=2048,vn&&Y(f.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),d.substring(kn,p))}for(;p1114111&&(Y(f.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),Be=!0),p>=h?(Y(f.Unexpected_end_of_text),Be=!0):d.charCodeAt(p)===125?p++:(Y(f.Unterminated_Unicode_escape_sequence),Be=!0),Be?"":Nx(kn)}function fe(){if(p+5=0&&Qb(Be,e)){p+=3,A|=8,vn+=xe(),kn=p;continue}if(Be=fe(),!(Be>=0&&Qb(Be,e)))break;A|=1024,vn+=d.substring(kn,p),vn+=Nx(Be),p+=6,kn=p}else break}return vn+=d.substring(kn,p),vn}function Ce(){let vn=S.length;if(vn>=2&&vn<=12){let kn=S.charCodeAt(0);if(kn>=97&&kn<=122){let Be=XEe.get(S);if(Be!==void 0)return E=Be}}return E=80}function Ge(vn){let kn="",Be=!1,ct=!1;for(;;){let lt=d.charCodeAt(p);if(lt===95){A|=512,Be?(Be=!1,ct=!0):Y(ct?f.Multiple_consecutive_numeric_separators_are_not_permitted:f.Numeric_separators_are_not_allowed_here,p,1),p++;continue}if(Be=!0,!$C(lt)||lt-48>=vn)break;kn+=d[p],p++,ct=!1}return d.charCodeAt(p-1)===95&&Y(f.Numeric_separators_are_not_allowed_here,p-1,1),kn}function ve(){return d.charCodeAt(p)===110?(S+="n",A&384&&(S=HN(S)+"n"),p++,10):(S=""+(A&128?parseInt(S.slice(2),2):A&256?parseInt(S.slice(2),8):+S),9)}function Ie(){m=p,A=0;let vn=!1;for(;;){if(y=p,p>=h)return E=1;let kn=xv(d,p);if(p===0){if(d.slice(0,256).includes("\uFFFD"))return Y(f.File_appears_to_be_binary),p=h,E=8;if(kn===35&&uV(d,p)){if(p=pV(d,p),t)continue;return E=6}}switch(kn){case 10:case 13:if(A|=1,t){p++;continue}else return kn===13&&p+1=0&&Hh(Be,e))return p+=3,A|=8,S=xe()+he(),E=Ce();let ct=fe();return ct>=0&&Hh(ct,e)?(p+=6,A|=1024,S=String.fromCharCode(ct)+he(),E=Ce()):(Y(f.Invalid_character),p++,E=0);case 35:if(p!==0&&d[p+1]==="!")return Y(f.can_only_be_used_at_the_start_of_a_file),p++,E=0;let lt=xv(d,p+1);if(lt===92){p++;let ke=ne();if(ke>=0&&Hh(ke,e))return p+=3,A|=8,S="#"+xe()+he(),E=81;let st=fe();if(st>=0&&Hh(st,e))return p+=6,A|=1024,S="#"+String.fromCharCode(st)+he(),E=81;p--}return Hh(lt,e)?(p++,Et(lt,e)):(S="#",Y(f.Invalid_character,p++,Zb(kn))),E=81;default:let Dt=Et(kn,e);if(Dt)return E=Dt;if(y_(kn)){p+=Zb(kn);continue}else if(Vd(kn)){A|=1,p+=Zb(kn);continue}let se=Zb(kn);return Y(f.Invalid_character,p,se),p+=se,E=0}}}function De(){switch(j){case 0:return!0;case 1:return!1}return w!==3&&w!==4?!0:j===3?!1:i0e.test(d.slice(m,p))}function Le(){R.assert(E===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),p=y=m,A=0;let vn=xv(d,p),kn=Et(vn,99);return kn?E=kn:(p+=Zb(vn),E)}function Et(vn,kn){let Be=vn;if(Hh(Be,kn)){for(p+=Zb(Be);p=h)return E=1;let kn=d.charCodeAt(p);if(kn===60)return d.charCodeAt(p+1)===47?(p+=2,E=31):(p++,E=30);if(kn===123)return p++,E=19;let Be=0;for(;p0)break;Dg(kn)||(Be=p)}p++}return S=d.substring(m,p),Be===-1?13:12}function Yt(){if(iu(E)){for(;p=h)return E=1;for(let kn=d.charCodeAt(p);p=0&&y_(d.charCodeAt(p-1))&&!(p+1=h)return E=1;let vn=xv(d,p);switch(p+=Zb(vn),vn){case 9:case 11:case 12:case 32:for(;p=0&&Hh(kn,e))return p+=3,A|=8,S=xe()+he(),E=Ce();let Be=fe();return Be>=0&&Hh(Be,e)?(p+=6,A|=1024,S=String.fromCharCode(Be)+he(),E=Ce()):(p++,E=0)}if(Hh(vn,e)){let kn=vn;for(;p=0),p=vn,m=vn,y=vn,E=0,S=void 0,A=0}function Ba(vn){D+=vn?1:-1}}function xv(e,t){return e.codePointAt(t)}function Zb(e){return e>=65536?2:1}function P7e(e){if(R.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);let t=Math.floor((e-65536)/1024)+55296,r=(e-65536)%1024+56320;return String.fromCharCode(t,r)}function Nx(e){return a0e(e)}var HL,XEe,Bne,YEe,$Ee,QEe,ZEe,e0e,t0e,n0e,r0e,i0e,o0e,QW,mV,a0e,M7e=bt({"src/compiler/scanner.ts"(){"use strict";Zo(),HL={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},XEe=new Map(Object.entries(HL)),Bne=new Map(Object.entries({...HL,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),YEe=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],$Ee=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],QEe=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],ZEe=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],e0e=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],t0e=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],n0e=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,r0e=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,i0e=/@(?:see|link)/i,o0e=C7e(Bne),QW=7,mV=/^#!.*/,a0e=String.fromCodePoint?e=>String.fromCodePoint(e):P7e}});function qc(e){return Lp(e)||cp(e)}function Px(e){return zC(e,zN)}function KL(e){switch(rs(e)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function Jl(e){return e.start+e.length}function Gne(e){return e.length===0}function _V(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function Vne(e,t){return t.start>=e.start&&Jl(t)<=Jl(e)}function s0e(e,t){return jne(e,t)!==void 0}function jne(e,t){let r=Hne(e,t);return r&&r.length===0?void 0:r}function l0e(e,t){return qL(e.start,e.length,t.start,t.length)}function ZW(e,t,r){return qL(e.start,e.length,t,r)}function qL(e,t,r,i){let o=e+t,s=r+i;return r<=o&&s>=e}function Une(e,t){return t<=Jl(e)&&t>=e.start}function Hne(e,t){let r=Math.max(e.start,t.start),i=Math.min(Jl(e),Jl(t));return r<=i?dc(r,i):void 0}function _d(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function dc(e,t){return _d(e,t-e)}function ZC(e){return _d(e.span.start,e.newLength)}function Kne(e){return Gne(e.span)&&e.newLength===0}function XL(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function Jne(e){if(e.length===0)return u2;if(e.length===1)return e[0];let t=e[0],r=t.span.start,i=Jl(t.span),o=r+t.newLength;for(let s=1;s=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function Vi(e){let t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function yr(e){return Vi(e.escapedText)}function tE(e){let t=y0(e.escapedText);return t?ri(t,Ou):void 0}function yl(e){return e.valueDeclaration&&au(e.valueDeclaration)?yr(e.valueDeclaration.name):Vi(e.escapedName)}function u0e(e){let t=e.parent.parent;if(t){if(Ud(t))return gV(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return gV(t.declarationList.declarations[0]);break;case 244:let r=t.expression;switch(r.kind===226&&r.operatorToken.kind===64&&(r=r.left),r.kind){case 211:return r.name;case 212:let i=r.argumentExpression;if(Fe(i))return i}break;case 217:return gV(t.expression);case 256:{if(Ud(t.statement)||ht(t.statement))return gV(t.statement);break}}}}function gV(e){let t=No(e);return t&&Fe(t)?t:void 0}function YL(e,t){return!!(ou(e)&&Fe(e.name)&&yr(e.name)===yr(t)||Ml(e)&>(e.declarationList.declarations,r=>YL(r,t)))}function $ne(e){return e.name||u0e(e)}function ou(e){return!!e.name}function eF(e){switch(e.kind){case 80:return e;case 355:case 348:{let{name:r}=e;if(r.kind===166)return r.right;break}case 213:case 226:{let r=e;switch(zl(r)){case 1:case 4:case 5:case 3:return YF(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}}case 353:return $ne(e);case 347:return u0e(e);case 277:{let{expression:r}=e;return Fe(r)?r:void 0}case 212:let t=e;if(XF(t))return t.argumentExpression}return e.name}function No(e){if(e!==void 0)return eF(e)||(Ms(e)||Fs(e)||$c(e)?tF(e):void 0)}function tF(e){if(e.parent){if(mc(e.parent)||Xa(e.parent))return e.parent.name;if(ur(e.parent)&&e===e.parent.right){if(Fe(e.parent.left))return e.parent.left;if(Ps(e.parent.left))return YF(e.parent.left)}else if(Oi(e.parent)&&Fe(e.parent.name))return e.parent.name}else return}function Rv(e){if(bf(e))return jr(e.modifiers,yd)}function v0(e){if(Qr(e,98303))return jr(e.modifiers,Ta)}function p0e(e,t){if(e.name)if(Fe(e.name)){let r=e.name.escapedText;return QL(e.parent,t).filter(i=>$m(i)&&Fe(i.name)&&i.name.escapedText===r)}else{let r=e.parent.parameters.indexOf(e);R.assert(r>-1,"Parameters should always be in their parents' parameter list");let i=QL(e.parent,t).filter($m);if(rnm(i)&&i.typeParameters.some(o=>o.name.escapedText===r))}function Zne(e){return f0e(e,!1)}function ere(e){return f0e(e,!0)}function tre(e){return!!Uf(e,$m)}function nre(e){return Uf(e,a1)}function rre(e){return rF(e,K4)}function yV(e){return Uf(e,Dae)}function m0e(e){return Uf(e,cH)}function ire(e){return Uf(e,cH,!0)}function _0e(e){return Uf(e,dH)}function ore(e){return Uf(e,dH,!0)}function h0e(e){return Uf(e,uH)}function are(e){return Uf(e,uH,!0)}function g0e(e){return Uf(e,pH)}function sre(e){return Uf(e,pH,!0)}function lre(e){return Uf(e,U4,!0)}function vV(e){return Uf(e,fH)}function cre(e){return Uf(e,fH,!0)}function bV(e){return Uf(e,Bk)}function nF(e){return Uf(e,mH)}function dre(e){return Uf(e,H4)}function y0e(e){return Uf(e,nm)}function EV(e){return Uf(e,J4)}function nE(e){let t=Uf(e,gP);if(t&&t.typeExpression&&t.typeExpression.type)return t}function rE(e){let t=Uf(e,gP);return!t&&To(e)&&(t=Vr(Lx(e),r=>!!r.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function $L(e){let t=dre(e);if(t&&t.typeExpression)return t.typeExpression.type;let r=nE(e);if(r&&r.typeExpression){let i=r.typeExpression.type;if(gp(i)){let o=Vr(i.members,XI);return o&&o.type}if(gh(i)||LR(i))return i.type}}function QL(e,t){var r;if(!B2(e))return Xe;let i=(r=e.jsDoc)==null?void 0:r.jsDocCache;if(i===void 0||t){let o=gj(e,t);R.assert(o.length<2||o[0]!==o[1]),i=va(o,s=>Ym(s)?s.tags:s),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=i)}return i}function iE(e){return QL(e,!1)}function v0e(e){return QL(e,!0)}function Uf(e,t,r){return Vr(QL(e,r),t)}function rF(e,t){return iE(e).filter(t)}function b0e(e,t){return iE(e).filter(r=>r.kind===t)}function ZL(e){return typeof e=="string"?e:e?.map(t=>t.kind===328?t.text:k7e(t)).join("")}function k7e(e){let t=e.kind===331?"link":e.kind===332?"linkcode":"linkplain",r=e.name?up(e.name):"",i=e.name&&e.text.startsWith("://")?"":" ";return`{@${t} ${r}${i}${e.text}}`}function Dv(e){if(vE(e)){if(kR(e.parent)){let t=rR(e.parent);if(t&&Nn(t.tags))return va(t.tags,r=>nm(r)?r.typeParameters:void 0)}return Xe}if(qf(e))return R.assert(e.parent.kind===327),va(e.parent.tags,t=>nm(t)?t.typeParameters:void 0);if(e.typeParameters||zae(e)&&e.typeParameters)return e.typeParameters;if(ir(e)){let t=d6(e);if(t.length)return t;let r=rE(e);if(r&&gh(r)&&r.typeParameters)return r.typeParameters}return Xe}function kx(e){return e.constraint?e.constraint:nm(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function Kh(e){return e.kind===80||e.kind===81}function iF(e){return e.kind===178||e.kind===177}function oF(e){return wr(e)&&!!(e.flags&64)}function SV(e){return qs(e)&&!!(e.flags&64)}function oT(e){return ra(e)&&!!(e.flags&64)}function jd(e){let t=e.kind;return!!(e.flags&64)&&(t===211||t===212||t===213||t===235)}function tN(e){return jd(e)&&!t1(e)&&!!e.questionDotToken}function aF(e){return tN(e.parent)&&e.parent.expression===e}function nN(e){return!jd(e.parent)||tN(e.parent)||e!==e.parent.expression}function TV(e){return e.kind===226&&e.operatorToken.kind===61}function Cg(e){return If(e)&&Fe(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function gm(e){return Yl(e,8)}function sF(e){return t1(e)&&!!(e.flags&64)}function rN(e){return e.kind===252||e.kind===251}function AV(e){return e.kind===280||e.kind===279}function ure(e){switch(e.kind){case 309:case 310:return!0;default:return!1}}function IV(e){return ure(e)||e.kind===307||e.kind===311}function iN(e){return e.kind===355||e.kind===348}function E0e(e){return e2(e.kind)}function e2(e){return e>=166}function xV(e){return e>=0&&e<=165}function gI(e){return xV(e.kind)}function b0(e){return Ts(e,"pos")&&Ts(e,"end")}function oN(e){return 9<=e&&e<=15}function E0(e){return oN(e.kind)}function RV(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function Cv(e){return 15<=e&&e<=18}function pre(e){return Cv(e.kind)}function lF(e){let t=e.kind;return t===17||t===18}function yI(e){return Qu(e)||Hd(e)}function t2(e){switch(e.kind){case 276:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 274:return e.parent.isTypeOnly;case 273:case 271:return e.isTypeOnly}return!1}function fre(e){switch(e.kind){case 281:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 278:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 280:return e.parent.isTypeOnly}return!1}function oE(e){return t2(e)||fre(e)}function DV(e){return e.kind===11||Cv(e.kind)}function mre(e){return Ca(e)||Fe(e)}function rl(e){var t;return Fe(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function aT(e){var t;return Ki(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function n2(e){let t=e.emitNode.autoGenerate.flags;return!!(t&32)&&!!(t&16)&&!!(t&8)}function au(e){return(Vo(e)||bI(e))&&Ki(e.name)}function wx(e){return wr(e)&&Ki(e.name)}function Cy(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function aN(e){return!!(MI(e)&31)}function CV(e){return aN(e)||e===126||e===164||e===129}function Ta(e){return Cy(e.kind)}function Xu(e){let t=e.kind;return t===166||t===80}function rc(e){let t=e.kind;return t===80||t===81||t===11||t===9||t===167}function sT(e){let t=e.kind;return t===80||t===206||t===207}function Yo(e){return!!e&&vI(e.kind)}function Ox(e){return!!e&&(vI(e.kind)||Al(e))}function Ws(e){return e&&S0e(e.kind)}function sN(e){return e.kind===112||e.kind===97}function S0e(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function vI(e){switch(e){case 173:case 179:case 330:case 180:case 181:case 184:case 324:case 185:return!0;default:return S0e(e)}}function NV(e){return Yi(e)||N_(e)||Ho(e)&&Yo(e.parent)}function Xc(e){let t=e.kind;return t===176||t===172||t===174||t===177||t===178||t===181||t===175||t===240}function di(e){return e&&(e.kind===263||e.kind===231)}function Nv(e){return e&&(e.kind===177||e.kind===178)}function Lu(e){return Vo(e)&&I_(e)}function _re(e){return ir(e)&&j6(e)?(!C0(e)||!zv(e.expression))&&!yT(e,!0):e.parent&&di(e.parent)&&Vo(e)&&!I_(e)}function bI(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function T0e(e){switch(e.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function il(e){return Ta(e)||yd(e)}function lT(e){let t=e.kind;return t===180||t===179||t===171||t===173||t===181||t===177||t===178}function cF(e){return lT(e)||Xc(e)}function Ng(e){let t=e.kind;return t===303||t===304||t===305||t===174||t===177||t===178}function ji(e){return eU(e.kind)}function hre(e){switch(e.kind){case 184:case 185:return!0}return!1}function $o(e){if(e){let t=e.kind;return t===207||t===206}return!1}function lN(e){let t=e.kind;return t===209||t===210}function dF(e){let t=e.kind;return t===208||t===232}function r2(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function gre(e){return Oi(e)||To(e)||o2(e)||a2(e)}function i2(e){return PV(e)||MV(e)}function PV(e){switch(e.kind){case 206:case 210:return!0}return!1}function o2(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function MV(e){switch(e.kind){case 207:case 209:return!0}return!1}function a2(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return Pc(e,!0)}function yre(e){let t=e.kind;return t===211||t===166||t===205}function vre(e){let t=e.kind;return t===211||t===166}function LV(e){return S0(e)||z0(e)}function S0(e){switch(e.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function v_(e){return e.kind===213||e.kind===214}function EI(e){let t=e.kind;return t===228||t===15}function Yu(e){return A0e(gm(e).kind)}function A0e(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function kV(e){return I0e(gm(e).kind)}function I0e(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return A0e(e)}}function bre(e){switch(e.kind){case 225:return!0;case 224:return e.operator===46||e.operator===47;default:return!1}}function Ere(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return E0(e)}}function ht(e){return w7e(gm(e).kind)}function w7e(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 361:case 360:case 238:return!0;default:return I0e(e)}}function cT(e){let t=e.kind;return t===216||t===234}function x0e(e){return oH(e)||B4(e)}function Pv(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&Pv(e.statement,t)}return!1}function Sre(e){return Ll(e)||Xl(e)}function Tre(e){return gt(e,Sre)}function uF(e){return!h2(e)&&!Ll(e)&&!Qr(e,32)&&!Pd(e)}function s2(e){return h2(e)||Ll(e)||Qr(e,32)}function Wx(e){return e.kind===249||e.kind===250}function pF(e){return Ho(e)||ht(e)}function wV(e){return Ho(e)}function vf(e){return Vc(e)||ht(e)}function Are(e){let t=e.kind;return t===268||t===267||t===80}function R0e(e){let t=e.kind;return t===268||t===267}function D0e(e){let t=e.kind;return t===80||t===267}function OV(e){let t=e.kind;return t===275||t===274}function l2(e){return e.kind===267||e.kind===266}function b_(e){switch(e.kind){case 219:case 226:case 208:case 213:case 179:case 263:case 231:case 175:case 176:case 185:case 180:case 212:case 266:case 306:case 277:case 278:case 281:case 262:case 218:case 184:case 177:case 80:case 273:case 271:case 276:case 181:case 264:case 345:case 347:case 324:case 348:case 355:case 330:case 353:case 329:case 291:case 292:case 293:case 200:case 174:case 173:case 267:case 202:case 280:case 270:case 274:case 214:case 15:case 9:case 210:case 169:case 211:case 303:case 172:case 171:case 178:case 304:case 312:case 305:case 11:case 265:case 187:case 168:case 260:return!0;default:return!1}}function ch(e){switch(e.kind){case 219:case 241:case 179:case 269:case 299:case 175:case 194:case 176:case 185:case 180:case 248:case 249:case 250:case 262:case 218:case 184:case 177:case 181:case 345:case 347:case 324:case 330:case 353:case 200:case 174:case 173:case 267:case 178:case 312:case 265:return!0;default:return!1}}function O7e(e){return e===219||e===208||e===263||e===231||e===175||e===176||e===266||e===306||e===281||e===262||e===218||e===177||e===273||e===271||e===276||e===264||e===291||e===174||e===173||e===267||e===270||e===274||e===280||e===169||e===303||e===172||e===171||e===178||e===304||e===265||e===168||e===260||e===353||e===345||e===355}function Ire(e){return e===262||e===282||e===263||e===264||e===265||e===266||e===267||e===272||e===271||e===278||e===277||e===270}function xre(e){return e===252||e===251||e===259||e===246||e===244||e===242||e===249||e===250||e===248||e===245||e===256||e===253||e===255||e===257||e===258||e===243||e===247||e===254||e===359}function Ud(e){return e.kind===168?e.parent&&e.parent.kind!==352||ir(e):O7e(e.kind)}function Rre(e){return Ire(e.kind)}function c2(e){return xre(e.kind)}function Hi(e){let t=e.kind;return xre(t)||Ire(t)||W7e(e)}function W7e(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!R0(e)}function Dre(e){let t=e.kind;return xre(t)||Ire(t)||t===241}function Cre(e){let t=e.kind;return t===283||t===166||t===80}function cN(e){let t=e.kind;return t===110||t===80||t===211||t===295}function d2(e){let t=e.kind;return t===284||t===294||t===285||t===12||t===288}function fF(e){let t=e.kind;return t===291||t===293}function Nre(e){let t=e.kind;return t===11||t===294}function su(e){let t=e.kind;return t===286||t===285}function mF(e){let t=e.kind;return t===296||t===297}function Fx(e){return e.kind>=316&&e.kind<=357}function _F(e){return e.kind===327||e.kind===326||e.kind===328||SI(e)||zx(e)||FT(e)||vE(e)}function zx(e){return e.kind>=334&&e.kind<=357}function Ny(e){return e.kind===178}function Mv(e){return e.kind===177}function kp(e){if(!B2(e))return!1;let{jsDoc:t}=e;return!!t&&t.length>0}function hF(e){return!!e.type}function Lv(e){return!!e.initializer}function dT(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function WV(e){return e.kind===291||e.kind===293||Ng(e)}function gF(e){return e.kind===183||e.kind===233}function Pre(e){let t=Mre;for(let r of e){if(!r.length)continue;let i=0;for(;i0?r.parent.parameters[o-1]:void 0,l=t.text,d=s?bo($b(l,Pa(l,s.end+1,!1,!0)),Uh(l,e.pos)):$b(l,Pa(l,e.pos,!1,!0));return gt(d)&&C0e(Ja(d),t)}let i=r&&ij(r,t);return!!gn(i,o=>C0e(o,t))}var u2,BV,Mre,F7e=bt({"src/compiler/utilitiesPublic.ts"(){"use strict";Zo(),u2=XL(_d(0,0),0),BV=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],Mre=1073741823}});function cl(e,t){let r=e.declarations;if(r){for(let i of r)if(i.kind===t)return i}}function Lre(e,t){return jr(e.declarations||Xe,r=>r.kind===t)}function oa(e){let t=new Map;if(e)for(let r of e)t.set(r.escapedName,r);return t}function dh(e){return(e.flags&33554432)!==0}function z7e(){var e="";let t=r=>e+=r;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(r,i)=>t(r),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&Dg(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:qa,decreaseIndent:qa,clear:()=>e=""}}function yF(e,t){return e.configFilePath!==t.configFilePath||kre(e,t)}function kre(e,t){return Bx(e,t,d3)}function wre(e,t){return Bx(e,t,XH)}function Bx(e,t,r){return e!==t&&r.some(i=>!W6(x6(e,i),x6(t,i)))}function Ore(e,t){for(;;){let r=t(e);if(r==="quit")return;if(r!==void 0)return r;if(Yi(e))return;e=e.parent}}function zc(e,t){let r=e.entries();for(let[i,o]of r){let s=t(o,i);if(s)return s}}function uh(e,t){let r=e.keys();for(let i of r){let o=t(i);if(o)return o}}function vF(e,t){e.forEach((r,i)=>{t.set(i,r)})}function dN(e){let t=hk.getText();try{return e(hk),hk.getText()}finally{hk.clear(),hk.writeKeyword(t)}}function p2(e){return e.end-e.pos}function GV(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function Wre(e,t){return e===t||e.resolvedModule===t.resolvedModule||!!e.resolvedModule&&!!t.resolvedModule&&e.resolvedModule.isExternalLibraryImport===t.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===t.resolvedModule.extension&&e.resolvedModule.resolvedFileName===t.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===t.resolvedModule.originalPath&&B7e(e.resolvedModule.packageId,t.resolvedModule.packageId)&&e.alternateResult===t.alternateResult}function bF(e,t,r,i,o){var s;let l=(s=t.getResolvedModule(e,r,i))==null?void 0:s.alternateResult,d=l&&(uu(t.getCompilerOptions())===2?[f.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,[l]]:[f.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,[l,l.includes(Sh+"@types/")?`@types/${JR(o)}`:o]]),p=d?Fo(void 0,d[0],...d[1]):t.typesPackageExists(o)?Fo(void 0,f.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,o,JR(o)):t.packageBundlesTypes(o)?Fo(void 0,f.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,o,r):Fo(void 0,f.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,r,JR(o));return p&&(p.repopulateInfo=()=>({moduleReference:r,mode:i,packageName:o===r?void 0:o})),p}function B7e(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version}function EF({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function kv(e){return`${EF(e)}@${e.version}`}function Fre(e,t){return e===t||e.resolvedTypeReferenceDirective===t.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!t.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===t.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary==!!t.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===t.resolvedTypeReferenceDirective.originalPath}function VV(e,t,r,i){R.assert(e.length===t.length);for(let o=0;o=0),Rg(t)[e]}function N0e(e){let t=Gn(e),r=gs(t,e.pos);return`${t.fileName}(${r.line+1},${r.character+1})`}function m2(e,t){R.assert(e>=0);let r=Rg(t),i=e,o=t.text;if(i+1===r.length)return o.length-1;{let s=r[i],l=r[i+1]-1;for(R.assert(Vd(o.charCodeAt(l)));s<=l&&Vd(o.charCodeAt(l));)l--;return l}}function TF(e,t,r){return!(r&&r(t))&&!e.identifiers.has(t)}function Fl(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function Hf(e){return!Fl(e)}function Bre(e,t){return fl(e)?t===e.expression:Al(e)?t===e.modifiers:_p(e)?t===e.initializer:Vo(e)?t===e.questionToken&&Lu(e):mc(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||_2(e.modifiers,t,il):Zu(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||_2(e.modifiers,t,il):Ul(e)?t===e.exclamationToken:Pl(e)?t===e.typeParameters||t===e.type||_2(e.typeParameters,t,fl):Zp(e)?t===e.typeParameters||_2(e.typeParameters,t,fl):hp(e)?t===e.typeParameters||t===e.type||_2(e.typeParameters,t,fl):zk(e)?t===e.modifiers||_2(e.modifiers,t,il):!1}function _2(e,t,r){return!e||So(t)||!r(t)?!1:zo(e,t)}function P0e(e,t,r){if(t===void 0||t.length===0)return e;let i=0;for(;i[`${gs(e,l.range.end).line}`,l])),i=new Map;return{getUnusedExpectations:o,markUsed:s};function o(){return Oo(r.entries()).filter(([l,d])=>d.type===0&&!i.get(l)).map(([l,d])=>d)}function s(l){return r.has(`${l}`)?(i.set(`${l}`,!0),!0):!1}}function aE(e,t,r){return Fl(e)?e.pos:Fx(e)||e.kind===12?Pa((t||Gn(e)).text,e.pos,!1,!0):r&&kp(e)?aE(e.jsDoc[0],t):e.kind===358&&e._children.length>0?aE(e._children[0],t,r):Pa((t||Gn(e)).text,e.pos,!1,!1,R2(e))}function HV(e,t){let r=!Fl(e)&&Am(e)?sI(e.modifiers,yd):void 0;return r?Pa((t||Gn(e)).text,r.end):aE(e,t)}function T0(e,t,r=!1){return uN(e.text,t,r)}function V7e(e){return!!Fn(e,Q0)}function IF(e){return!!(Xl(e)&&e.exportClause&&vh(e.exportClause)&&e.exportClause.name.escapedText==="default")}function uN(e,t,r=!1){if(Fl(t))return"";let i=e.substring(r?t.pos:Pa(e,t.pos),t.end);return V7e(t)&&(i=i.split(/\r\n|\n|\r/).map(o=>o.replace(/^\s*\*/,"").trimStart()).join(` +`)),i}function uc(e,t=!1){return T0(Gn(e),e,t)}function j7e(e){return e.pos}function Vx(e,t){return Ey(e,t,j7e,Zs)}function za(e){let t=e.emitNode;return t&&t.flags||0}function ym(e){let t=e.emitNode;return t&&t.internalFlags||0}function Vre(e,t,r){if(t&&U7e(e,r))return T0(t,e);switch(e.kind){case 11:{let i=r&2?wj:r&1||za(e)&16777216?Zh:$2;return e.singleQuote?"'"+i(e.text,39)+"'":'"'+i(e.text,34)+'"'}case 15:case 16:case 17:case 18:{let i=r&1||za(e)&16777216?Zh:$2,o=e.rawText??Lj(i(e.text,96));switch(e.kind){case 15:return"`"+o+"`";case 16:return"`"+o+"${";case 17:return"}"+o+"${";case 18:return"}"+o+"`"}break}case 9:case 10:return e.text;case 14:return r&4&&e.isUnterminated?e.text+(e.text.charCodeAt(e.text.length-1)===92?" /":"/"):e.text}return R.fail(`Literal kind '${e.kind}' not accounted for.`)}function U7e(e,t){if(Js(e)||!e.parent||t&4&&e.isUnterminated)return!1;if(mp(e)){if(e.numericLiteralFlags&26656)return!1;if(e.numericLiteralFlags&512)return!!(t&8)}return!P4(e)}function jre(e){return Co(e)?'"'+$2(e)+'"':""+e}function Ure(e){return nc(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function KV(e){return(Dy(e)&7)!==0||JV(e)}function JV(e){let t=A_(e);return t.kind===260&&t.parent.kind===299}function Pd(e){return ql(e)&&(e.name.kind===11||E_(e))}function xF(e){return ql(e)&&e.name.kind===11}function qV(e){return ql(e)&&Ca(e.name)}function Hre(e){return ql(e)||Fe(e)}function pN(e){return H7e(e.valueDeclaration)}function H7e(e){return!!e&&e.kind===267&&!e.body}function Kre(e){return e.kind===312||e.kind===267||Ox(e)}function E_(e){return!!(e.flags&2048)}function A0(e){return Pd(e)&&XV(e)}function XV(e){switch(e.parent.kind){case 312:return oc(e.parent);case 268:return Pd(e.parent.parent)&&Yi(e.parent.parent.parent)&&!oc(e.parent.parent.parent)}return!1}function YV(e){var t;return(t=e.declarations)==null?void 0:t.find(r=>!A0(r)&&!(ql(r)&&E_(r)))}function K7e(e){return e===1||e===100||e===199}function TI(e,t){return oc(e)||K7e(Md(t))&&!!e.commonJsModuleIndicator}function $V(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:du(t,"alwaysStrict")||wae(e.statements)?!0:oc(e)||em(t)?Md(t)>=5?!0:!t.noImplicitUseStrict:!1}function QV(e){return!!(e.flags&33554432)||Qr(e,128)}function ZV(e,t){switch(e.kind){case 312:case 269:case 299:case 267:case 248:case 249:case 250:case 176:case 174:case 177:case 178:case 262:case 218:case 219:case 172:case 175:return!0;case 241:return!Ox(t)}return!1}function ej(e){switch(R.type(e),e.kind){case 345:case 353:case 330:return!0;default:return tj(e)}}function tj(e){switch(R.type(e),e.kind){case 179:case 180:case 173:case 181:case 184:case 185:case 324:case 263:case 231:case 264:case 265:case 352:case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function pT(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function Jre(e){return pT(e)||D0(e)}function RF(e){switch(e.kind){case 272:case 271:case 243:case 263:case 262:case 267:case 265:case 264:case 266:return!0;default:return!1}}function qre(e){return h2(e)||ql(e)||ig(e)||Op(e)}function h2(e){return pT(e)||Xl(e)}function nj(e){return Fn(e.parent,t=>!!(mK(t)&1))}function ph(e){return Fn(e.parent,t=>ZV(t,t.parent))}function Xre(e,t){let r=ph(e);for(;r;)t(r),r=ph(r)}function As(e){return!e||p2(e)===0?"(Missing)":uc(e)}function Yre(e){return e.declaration?As(e.declaration.parameters[0].name):void 0}function g2(e){return e.kind===167&&!Qp(e.expression)}function fN(e){var t;switch(e.kind){case 80:case 81:return(t=e.emitNode)!=null&&t.autoGenerate?void 0:e.escapedText;case 11:case 9:case 15:return pl(e.text);case 167:return Qp(e.expression)?pl(e.expression.text):void 0;case 295:return FI(e);default:return R.assertNever(e)}}function jx(e){return R.checkDefined(fN(e))}function up(e){switch(e.kind){case 110:return"this";case 81:case 80:return p2(e)===0?yr(e):uc(e);case 166:return up(e.left)+"."+up(e.right);case 211:return Fe(e.name)||Ki(e.name)?up(e.expression)+"."+up(e.name):R.assertNever(e.name);case 318:return up(e.left)+up(e.right);case 295:return up(e.namespace)+":"+up(e.name);default:return R.assertNever(e)}}function Pr(e,t,...r){let i=Gn(e);return Kf(i,e,t,...r)}function Ux(e,t,r,...i){let o=Pa(e.text,t.pos);return Yc(e,o,t.end-o,r,...i)}function Kf(e,t,r,...i){let o=fT(e,t);return Yc(e,o.start,o.length,r,...i)}function Pg(e,t,r,i){let o=fT(e,t);return DF(e,o.start,o.length,r,i)}function y2(e,t,r,i){let o=Pa(e.text,t.pos);return DF(e,o,t.end-o,r,i)}function $re(e,t,r){R.assertGreaterThanOrEqual(t,0),R.assertGreaterThanOrEqual(r,0),R.assertLessThanOrEqual(t,e.length),R.assertLessThanOrEqual(t+r,e.length)}function DF(e,t,r,i,o){return $re(e.text,t,r),{file:e,start:t,length:r,code:i.code,category:i.category,messageText:i.next?i:i.messageText,relatedInformation:o}}function rj(e,t,r){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}}function Qre(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function Zre(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}}function fh(e,t){let r=Ry(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);r.scan();let i=r.getTokenStart();return dc(i,r.getTokenEnd())}function eie(e,t){let r=Ry(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return r.scan(),r.getToken()}function J7e(e,t){let r=Pa(e.text,t.pos);if(t.body&&t.body.kind===241){let{line:i}=gs(e,t.body.pos),{line:o}=gs(e,t.body.end);if(i0?t.statements[0].pos:t.end;return dc(s,l)}case 253:case 229:{let s=Pa(e.text,t.pos);return fh(e,s)}case 238:{let s=Pa(e.text,t.expression.end);return fh(e,s)}case 357:{let s=Pa(e.text,t.tagName.pos);return fh(e,s)}}if(r===void 0)return fh(e,t.pos);R.assert(!Ym(r));let i=Fl(r),o=i||UI(t)?r.pos:Pa(e.text,r.pos);return i?(R.assert(o===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),R.assert(o===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(R.assert(o>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),R.assert(o<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),dc(o,r.end)}function wp(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function Jf(e){return e.scriptKind===6}function I0(e){return!!(eE(e)&4096)}function CF(e){return!!(eE(e)&8&&!dp(e,e.parent))}function v2(e){return(Dy(e)&7)===6}function b2(e){return(Dy(e)&7)===4}function Hx(e){return(Dy(e)&7)===2}function NF(e){return(Dy(e)&7)===1}function mT(e){return e.kind===213&&e.expression.kind===108}function Op(e){return e.kind===213&&e.expression.kind===102}function Kx(e){return cP(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function Ov(e){return ig(e)&&Jv(e.argument)&&Ca(e.argument.literal)}function vm(e){return e.kind===244&&e.expression.kind===11}function E2(e){return!!(za(e)&2097152)}function PF(e){return E2(e)&&Ec(e)}function q7e(e){return Fe(e.name)&&!e.initializer}function MF(e){return E2(e)&&Ml(e)&&oo(e.declarationList.declarations,q7e)}function ij(e,t){return e.kind!==12?Uh(t.text,e.pos):void 0}function oj(e,t){let r=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?bo($b(t,e.pos),Uh(t,e.pos)):Uh(t,e.pos);return jr(r,i=>t.charCodeAt(i.pos+1)===42&&t.charCodeAt(i.pos+2)===42&&t.charCodeAt(i.pos+3)!==47)}function Xh(e){if(182<=e.kind&&e.kind<=205)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return e.parent.kind!==222;case 233:return w0e(e);case 168:return e.parent.kind===200||e.parent.kind===195;case 80:(e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e)&&(e=e.parent),R.assert(e.kind===80||e.kind===166||e.kind===211,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{let{parent:t}=e;if(t.kind===186)return!1;if(t.kind===205)return!t.isTypeOf;if(182<=t.kind&&t.kind<=205)return!0;switch(t.kind){case 233:return w0e(t);case 168:return e===t.constraint;case 352:return e===t.constraint;case 172:case 171:case 169:case 260:return e===t.type;case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:return e===t.type;case 179:case 180:case 181:return e===t.type;case 216:return e===t.type;case 213:case 214:case 215:return zo(t.typeArguments,e)}}}return!1}function w0e(e){return K4(e.parent)||a1(e.parent)||ef(e.parent)&&!f6(e)}function O0e(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function x0(e,t){return r(e);function r(i){switch(i.kind){case 253:return t(i);case 269:case 241:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 296:case 297:case 256:case 258:case 299:return Bo(i,r)}}}function tie(e,t){return r(e);function r(i){switch(i.kind){case 229:t(i);let o=i.expression;o&&r(o);return;case 266:case 264:case 267:case 265:return;default:if(Yo(i)){if(i.name&&i.name.kind===167){r(i.name.expression);return}}else Xh(i)||Bo(i,r)}}}function aj(e){return e&&e.kind===188?e.elementType:e&&e.kind===183?rh(e.typeArguments):void 0}function nie(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function Jx(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function rie(e){return Jx(e)||Nv(e)}function mN(e){return e.parent.kind===261&&e.parent.parent.kind===243}function iie(e){return ir(e)?La(e.parent)&&ur(e.parent.parent)&&zl(e.parent.parent)===2||LF(e.parent):!1}function LF(e){return ir(e)?ur(e)&&zl(e)===1:!1}function oie(e){return(Oi(e)?Hx(e)&&Fe(e.name)&&mN(e):Vo(e)?NN(e)&&pc(e):_p(e)&&NN(e))||LF(e)}function aie(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function sj(e,t){for(;;){if(t&&t(e),e.statement.kind!==256)return e.statement;e=e.statement}}function R0(e){return e&&e.kind===241&&Yo(e.parent)}function bm(e){return e&&e.kind===174&&e.parent.kind===210}function kF(e){return(e.kind===174||e.kind===177||e.kind===178)&&(e.parent.kind===210||e.parent.kind===231)}function sie(e){return e&&e.kind===1}function W0e(e){return e&&e.kind===0}function qx(e,t,r,i){return gn(e?.properties,o=>{if(!mc(o))return;let s=fN(o.name);return t===s||i&&i===s?r(o):void 0})}function lie(e,t,r){return qx(e,t,i=>pu(i.initializer)?Vr(i.initializer.elements,o=>Ca(o)&&o.text===r):void 0)}function _N(e){if(e&&e.statements.length){let t=e.statements[0].expression;return ri(t,La)}}function wF(e,t,r){return S2(e,t,i=>pu(i.initializer)?Vr(i.initializer.elements,o=>Ca(o)&&o.text===r):void 0)}function S2(e,t,r){return qx(_N(e),t,r)}function Wp(e){return Fn(e.parent,Yo)}function cie(e){return Fn(e.parent,Ws)}function id(e){return Fn(e.parent,di)}function die(e){return Fn(e.parent,t=>di(t)||Yo(t)?"quit":Al(t))}function OF(e){return Fn(e.parent,Ox)}function WF(e){let t=Fn(e.parent,r=>di(r)?"quit":yd(r));return t&&di(t.parent)?id(t.parent):id(t??e)}function ku(e,t,r){for(R.assert(e.kind!==312);;){if(e=e.parent,!e)return R.fail();switch(e.kind){case 167:if(r&&di(e.parent.parent))return e;e=e.parent.parent;break;case 170:e.parent.kind===169&&Xc(e.parent.parent)?e=e.parent.parent:Xc(e.parent)&&(e=e.parent);break;case 219:if(!t)continue;case 262:case 218:case 267:case 175:case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 179:case 180:case 181:case 266:case 312:return e}}}function uie(e){switch(e.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(e.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function FF(e){Fe(e)&&(Sc(e.parent)||Ec(e.parent))&&e.parent.name===e&&(e=e.parent);let t=ku(e,!0,!1);return Yi(t)}function pie(e){let t=ku(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function T2(e,t){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 167:e=e.parent;break;case 262:case 218:case 219:if(!t)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return e;case 170:e.parent.kind===169&&Xc(e.parent.parent)?e=e.parent.parent:Xc(e.parent)&&(e=e.parent);break}}}function _T(e){if(e.kind===218||e.kind===219){let t=e,r=e.parent;for(;r.kind===217;)t=r,r=r.parent;if(r.kind===213&&r.expression===t)return r}}function F0e(e){return e.kind===108||wu(e)}function wu(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function A2(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===110}function zF(e){var t;return!!e&&Oi(e)&&((t=e.initializer)==null?void 0:t.kind)===110}function fie(e){return!!e&&(Zu(e)||mc(e))&&ur(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function I2(e){switch(e.kind){case 183:return e.typeName;case 233:return Bl(e.expression)?e.expression:void 0;case 80:case 166:return e}}function BF(e){switch(e.kind){case 215:return e.tag;case 286:case 285:return e.tagName;case 226:return e.right;default:return e.expression}}function GF(e,t,r,i){if(e&&ou(t)&&Ki(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return r!==void 0&&(e?Sc(r):di(r)&&!O0(t)&&!Gj(t));case 177:case 178:case 174:return t.body!==void 0&&r!==void 0&&(e?Sc(r):di(r));case 169:return e?r!==void 0&&r.body!==void 0&&(r.kind===176||r.kind===174||r.kind===178)&&L0(r)!==t&&i!==void 0&&i.kind===263:!1}return!1}function Xx(e,t,r,i){return bf(t)&&GF(e,t,r,i)}function x2(e,t,r,i){return Xx(e,t,r,i)||hN(e,t,r)}function hN(e,t,r){switch(t.kind){case 263:return gt(t.members,i=>x2(e,i,t,r));case 231:return!e&>(t.members,i=>x2(e,i,t,r));case 174:case 178:case 176:return gt(t.parameters,i=>Xx(e,i,t,r));default:return!1}}function Py(e,t){if(Xx(e,t))return!0;let r=eg(t);return!!r&&hN(e,r,t)}function lj(e,t,r){let i;if(Nv(t)){let{firstAccessor:o,secondAccessor:s,setAccessor:l}=AT(r.members,t),d=bf(o)?o:s&&bf(s)?s:void 0;if(!d||t!==d)return!1;i=l?.parameters}else Ul(t)&&(i=t.parameters);if(Xx(e,t,r))return!0;if(i){for(let o of i)if(!k0(o)&&Xx(e,o,t,r))return!0}return!1}function cj(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return cj(e.textSourceNode);case 15:return e.text===""}return!1}return e.text===""}function Yx(e){let{parent:t}=e;return t.kind===286||t.kind===285||t.kind===287?t.tagName===e:!1}function Yh(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 234:case 216:case 238:case 235:case 217:case 218:case 231:case 219:case 222:case 220:case 221:case 224:case 225:case 226:case 227:case 230:case 228:case 232:case 284:case 285:case 288:case 229:case 223:case 236:return!0;case 233:return!ef(e.parent)&&!a1(e.parent);case 166:for(;e.parent.kind===166;)e=e.parent;return e.parent.kind===186||SI(e.parent)||hP(e.parent)||yE(e.parent)||Yx(e);case 318:for(;yE(e.parent);)e=e.parent;return e.parent.kind===186||SI(e.parent)||hP(e.parent)||yE(e.parent)||Yx(e);case 81:return ur(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===186||SI(e.parent)||hP(e.parent)||yE(e.parent)||Yx(e))return!0;case 9:case 10:case 11:case 15:case 110:return VF(e);default:return!1}}function VF(e){let{parent:t}=e;switch(t.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return t.initializer===e;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return t.expression===e;case 248:let r=t;return r.initializer===e&&r.initializer.kind!==261||r.condition===e||r.incrementor===e;case 249:case 250:let i=t;return i.initializer===e&&i.initializer.kind!==261||i.expression===e;case 216:case 234:return e===t.expression;case 239:return e===t.expression;case 167:return e===t.expression;case 170:case 294:case 293:case 305:return!0;case 233:return t.expression===e&&!Xh(t);case 304:return t.objectAssignmentInitializer===e;case 238:return e===t.expression;default:return Yh(t)}}function jF(e){for(;e.kind===166||e.kind===80;)e=e.parent;return e.kind===186}function mie(e){return vh(e)&&!!e.parent.moduleSpecifier}function sE(e){return e.kind===271&&e.moduleReference.kind===283}function gN(e){return R.assert(sE(e)),e.moduleReference.expression}function dj(e){return D0(e)&&_R(e.initializer).arguments[0]}function $x(e){return e.kind===271&&e.moduleReference.kind!==283}function lu(e){return ir(e)}function z0e(e){return!ir(e)}function ir(e){return!!e&&!!(e.flags&524288)}function UF(e){return!!e&&!!(e.flags&134217728)}function uj(e){return!Jf(e)}function R2(e){return!!e&&!!(e.flags&16777216)}function HF(e){return If(e)&&Fe(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===154||e.typeArguments[0].kind===150)}function Eu(e,t){if(e.kind!==213)return!1;let{expression:r,arguments:i}=e;if(r.kind!==80||r.escapedText!=="require"||i.length!==1)return!1;let o=i[0];return!t||ss(o)}function KF(e){return B0e(e,!1)}function D0(e){return B0e(e,!0)}function _ie(e){return Xa(e)&&D0(e.parent.parent)}function B0e(e,t){return Oi(e)&&!!e.initializer&&Eu(t?_R(e.initializer):e.initializer,!0)}function pj(e){return Ml(e)&&e.declarationList.declarations.length>0&&oo(e.declarationList.declarations,t=>KF(t))}function D2(e){return e===39||e===34}function JF(e,t){return T0(t,e).charCodeAt(0)===34}function yN(e){return ur(e)||Ps(e)||Fe(e)||ra(e)}function C2(e){return ir(e)&&e.initializer&&ur(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&Bl(e.name)&&Qx(e.name,e.initializer.left)?e.initializer.right:e.initializer}function N2(e){let t=C2(e);return t&&lE(t,zv(e.name))}function X7e(e,t){return gn(e.properties,r=>mc(r)&&Fe(r.name)&&r.name.escapedText==="value"&&r.initializer&&lE(r.initializer,t))}function AI(e){if(e&&e.parent&&ur(e.parent)&&e.parent.operatorToken.kind===64){let t=zv(e.parent.left);return lE(e.parent.right,t)||Y7e(e.parent.left,e.parent.right,t)}if(e&&ra(e)&&gT(e)){let t=X7e(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function lE(e,t){if(ra(e)){let r=ms(e.expression);return r.kind===218||r.kind===219?e:void 0}if(e.kind===218||e.kind===231||e.kind===219||La(e)&&(e.properties.length===0||t))return e}function Y7e(e,t,r){let i=ur(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&&lE(t.right,r);if(i&&Qx(e,t.left))return i}function hie(e){let t=Oi(e.parent)?e.parent.name:ur(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&&lE(e.right,zv(t))&&Bl(t)&&Qx(t,e.left)}function fj(e){if(ur(e.parent)){let t=(e.parent.operatorToken.kind===57||e.parent.operatorToken.kind===61)&&ur(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===64&&Fe(t.left))return t.left}else if(Oi(e.parent))return e.parent.name}function Qx(e,t){return T_(e)&&T_(t)?Xf(e)===Xf(t):Kh(e)&&qF(t)&&(t.expression.kind===110||Fe(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?Qx(e,L2(t)):qF(e)&&qF(t)?Mg(e)===Mg(t)&&Qx(e.expression,t.expression):!1}function P2(e){for(;Pc(e,!0);)e=e.right;return e}function hT(e){return Fe(e)&&e.escapedText==="exports"}function mj(e){return Fe(e)&&e.escapedText==="module"}function $h(e){return(wr(e)||M2(e))&&mj(e.expression)&&Mg(e)==="exports"}function zl(e){let t=$7e(e);return t===5||ir(e)?t:0}function gT(e){return Nn(e.arguments)===3&&wr(e.expression)&&Fe(e.expression.expression)&&yr(e.expression.expression)==="Object"&&yr(e.expression.name)==="defineProperty"&&Qp(e.arguments[1])&&yT(e.arguments[0],!0)}function qF(e){return wr(e)||M2(e)}function M2(e){return qs(e)&&Qp(e.argumentExpression)}function C0(e,t){return wr(e)&&(!t&&e.expression.kind===110||Fe(e.name)&&yT(e.expression,!0))||XF(e,t)}function XF(e,t){return M2(e)&&(!t&&e.expression.kind===110||Bl(e.expression)||C0(e.expression,!0))}function yT(e,t){return Bl(e)||C0(e,t)}function L2(e){return wr(e)?e.name:e.argumentExpression}function $7e(e){if(ra(e)){if(!gT(e))return 0;let t=e.arguments[0];return hT(t)||$h(t)?8:C0(t)&&Mg(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!Ps(e.left)||Q7e(P2(e))?0:yT(e.left.expression,!0)&&Mg(e.left)==="prototype"&&La(_j(e))?6:k2(e.left)}function Q7e(e){return e1(e)&&mp(e.expression)&&e.expression.text==="0"}function YF(e){if(wr(e))return e.name;let t=ms(e.argumentExpression);return mp(t)||ss(t)?t:e}function Mg(e){let t=YF(e);if(t){if(Fe(t))return t.escapedText;if(ss(t)||mp(t))return pl(t.text)}}function k2(e){if(e.expression.kind===110)return 4;if($h(e))return 2;if(yT(e.expression,!0)){if(zv(e.expression))return 3;let t=e;for(;!Fe(t.expression);)t=t.expression;let r=t.expression;if((r.escapedText==="exports"||r.escapedText==="module"&&Mg(t)==="exports")&&C0(e))return 1;if(yT(e,!0)||qs(e)&&n6(e))return 5}return 0}function _j(e){for(;ur(e.right);)e=e.right;return e.right}function w2(e){return ur(e)&&zl(e)===3}function gie(e){return ir(e)&&e.parent&&e.parent.kind===244&&(!qs(e)||M2(e))&&!!nE(e.parent)}function O2(e,t){let{valueDeclaration:r}=e;(!r||!(t.flags&33554432&&!ir(t)&&!(r.flags&33554432))&&yN(r)&&!yN(t)||r.kind!==t.kind&&Hre(r))&&(e.valueDeclaration=t)}function yie(e){if(!e||!e.valueDeclaration)return!1;let t=e.valueDeclaration;return t.kind===262||Oi(t)&&t.initializer&&Yo(t.initializer)}function Zx(e){var t,r;switch(e.kind){case 260:case 208:return(t=Fn(e.initializer,i=>Eu(i,!0)))==null?void 0:t.arguments[0];case 272:case 278:return ri(e.moduleSpecifier,ss);case 271:return ri((r=ri(e.moduleReference,bh))==null?void 0:r.expression,ss);case 273:case 280:return ri(e.parent.moduleSpecifier,ss);case 274:case 281:return ri(e.parent.parent.moduleSpecifier,ss);case 276:return ri(e.parent.parent.parent.moduleSpecifier,ss);case 205:return Ov(e)?e.argument.literal:void 0;default:R.assertNever(e)}}function vN(e){return W2(e)||R.failBadSyntaxKind(e.parent)}function W2(e){switch(e.parent.kind){case 272:case 278:return e.parent;case 283:return e.parent.parent;case 213:return Op(e.parent)||Eu(e.parent,!1)?e.parent:void 0;case 201:return R.assert(Ca(e)),ri(e.parent.parent,ig);default:return}}function eR(e){switch(e.kind){case 272:case 278:return e.moduleSpecifier;case 271:return e.moduleReference.kind===283?e.moduleReference.expression:void 0;case 205:return Ov(e)?e.argument.literal:void 0;case 213:return e.arguments[0];case 267:return e.name.kind===11?e.name:void 0;default:return R.assertNever(e)}}function tR(e){switch(e.kind){case 272:return e.importClause&&ri(e.importClause.namedBindings,Yv);case 271:return e;case 278:return e.exportClause&&ri(e.exportClause,vh);default:return R.assertNever(e)}}function II(e){return e.kind===272&&!!e.importClause&&!!e.importClause.name}function $F(e,t){if(e.name){let r=t(e);if(r)return r}if(e.namedBindings){let r=Yv(e.namedBindings)?t(e.namedBindings):gn(e.namedBindings.elements,t);if(r)return r}}function xI(e){if(e)switch(e.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return e.questionToken!==void 0}return!1}function nR(e){let t=LR(e)?Jc(e.parameters):void 0,r=ri(t&&t.name,Fe);return!!r&&r.escapedText==="new"}function qf(e){return e.kind===353||e.kind===345||e.kind===347}function F2(e){return qf(e)||Tm(e)}function Z7e(e){return Qc(e)&&ur(e.expression)&&e.expression.operatorToken.kind===64?P2(e.expression):void 0}function G0e(e){return Qc(e)&&ur(e.expression)&&zl(e.expression)!==0&&ur(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function hj(e){switch(e.kind){case 243:let t=RI(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function RI(e){return Ml(e)?Jc(e.declarationList.declarations):void 0}function V0e(e){return ql(e)&&e.body&&e.body.kind===267?e.body:void 0}function z2(e){if(e.kind>=243&&e.kind<=259)return!0;switch(e.kind){case 80:case 110:case 108:case 166:case 236:case 212:case 211:case 208:case 218:case 219:case 174:case 177:case 178:return!0;default:return!1}}function B2(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 324:case 330:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function gj(e,t){let r;Jx(e)&&Lv(e)&&kp(e.initializer)&&(r=Hr(r,j0e(e,e.initializer.jsDoc)));let i=e;for(;i&&i.parent;){if(kp(i)&&(r=Hr(r,j0e(e,i.jsDoc))),i.kind===169){r=Hr(r,(t?Qne:Lx)(i));break}if(i.kind===168){r=Hr(r,(t?ere:Zne)(i));break}i=yj(i)}return r||Xe}function j0e(e,t){let r=Ja(t);return va(t,i=>{if(i===r){let o=jr(i.tags,s=>eBe(e,s));return i.tags===o?[i]:o}else return jr(i.tags,kR)})}function eBe(e,t){return!(gP(t)||J4(t))||!t.parent||!Ym(t.parent)||!Wu(t.parent.parent)||t.parent.parent===e}function yj(e){let t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||V0e(t)||Pc(e))return t;if(t.parent&&(RI(t.parent)===e||Pc(t)))return t.parent;if(t.parent&&t.parent.parent&&(RI(t.parent.parent)||hj(t.parent.parent)===e||G0e(t.parent.parent)))return t.parent.parent}function G2(e){if(e.symbol)return e.symbol;if(!Fe(e.name))return;let t=e.name.escapedText,r=cE(e);if(!r)return;let i=Vr(r.parameters,o=>o.name.kind===80&&o.name.escapedText===t);return i&&i.symbol}function QF(e){if(Ym(e.parent)&&e.parent.tags){let t=Vr(e.parent.tags,qf);if(t)return t}return cE(e)}function vj(e){return rF(e,kR)}function cE(e){let t=dE(e);if(t)return _p(t)&&t.type&&Yo(t.type)?t.type:Yo(t)?t:void 0}function dE(e){let t=vT(e);if(t)return G0e(t)||Z7e(t)||hj(t)||RI(t)||V0e(t)||t}function vT(e){let t=rR(e);if(!t)return;let r=t.parent;if(r&&r.jsDoc&&t===$s(r.jsDoc))return r}function rR(e){return Fn(e.parent,Ym)}function vie(e){let t=e.name.escapedText,{typeParameters:r}=e.parent.parent.parent;return r&&Vr(r,i=>i.name.escapedText===t)}function U0e(e){return!!e.typeArguments}function bie(e){let t=e.parent;for(;;){switch(t.kind){case 226:let r=t,i=r.operatorToken.kind;return ky(i)&&r.left===e?r:void 0;case 224:case 225:let o=t,s=o.operator;return s===46||s===47?o:void 0;case 249:case 250:let l=t;return l.initializer===e?l:void 0;case 217:case 209:case 230:case 235:e=t;break;case 305:e=t.parent;break;case 304:if(t.name!==e)return;e=t.parent;break;case 303:if(t.name===e)return;e=t.parent;break;default:return}t=e.parent}}function DI(e){let t=bie(e);if(!t)return 0;switch(t.kind){case 226:let r=t.operatorToken.kind;return r===64||PN(r)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function Qh(e){return!!bie(e)}function tBe(e){let t=ms(e.right);return t.kind===226&&AH(t.operatorToken.kind)}function bj(e){let t=bie(e);return!!t&&Pc(t,!0)&&tBe(t)}function Eie(e){switch(e.kind){case 241:case 243:case 254:case 245:case 255:case 269:case 296:case 297:case 256:case 248:case 249:case 250:case 246:case 247:case 258:case 299:return!0}return!1}function Sie(e){return Ms(e)||Fs(e)||bI(e)||Ec(e)||Pl(e)}function H0e(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function V2(e){return H0e(e,196)}function My(e){return H0e(e,217)}function Tie(e){let t;for(;e&&e.kind===196;)t=e,e=e.parent;return[t,e]}function j2(e){for(;NT(e);)e=e.type;return e}function ms(e,t){return Yl(e,t?17:1)}function Ej(e){return e.kind!==211&&e.kind!==212?!1:(e=My(e.parent),e&&e.kind===220)}function N0(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function Lg(e){return!Yi(e)&&!$o(e)&&Ud(e.parent)&&e.parent.name===e}function bN(e){let t=e.parent;switch(e.kind){case 11:case 15:case 9:if(Ya(t))return t.parent;case 80:if(Ud(t))return t.name===e?t:void 0;if(Tu(t)){let r=t.parent;return $m(r)&&r.name===t?r:void 0}else{let r=t.parent;return ur(r)&&zl(r)!==0&&(r.left.symbol||r.symbol)&&No(r)===e?r:void 0}case 81:return Ud(t)&&t.name===e?t:void 0;default:return}}function U2(e){return Qp(e)&&e.parent.kind===167&&Ud(e.parent.parent)}function Aie(e){let t=e.parent;switch(t.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return t.name===e;case 166:return t.right===e;case 208:case 276:return t.propertyName===e;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function K0e(e){return e.kind===271||e.kind===270||e.kind===273&&e.name||e.kind===274||e.kind===280||e.kind===276||e.kind===281||e.kind===277&&iR(e)?!0:ir(e)&&(ur(e)&&zl(e)===2&&iR(e)||wr(e)&&ur(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===64&&H2(e.parent.right))}function Sj(e){switch(e.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return e.parent;case 166:do e=e.parent;while(e.parent.kind===166);return Sj(e)}}function H2(e){return Bl(e)||$c(e)}function iR(e){let t=Tj(e);return H2(t)}function Tj(e){return Ll(e)?e.expression:e.right}function Iie(e){return e.kind===304?e.name:e.kind===303?e.initializer:e.parent.right}function S_(e){let t=P0(e);if(t&&ir(e)){let r=nre(e);if(r)return r.class}return t}function P0(e){let t=K2(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function oR(e){if(ir(e))return rre(e).map(t=>t.class);{let t=K2(e.heritageClauses,119);return t?.types}}function EN(e){return fu(e)?SN(e)||Xe:di(e)&&bo(pI(S_(e)),oR(e))||Xe}function SN(e){let t=K2(e.heritageClauses,96);return t?t.types:void 0}function K2(e,t){if(e){for(let r of e)if(r.token===t)return r}}function uE(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function Ou(e){return 83<=e&&e<=165}function Aj(e){return 19<=e&&e<=79}function ZF(e){return Ou(e)||Aj(e)}function e6(e){return 128<=e&&e<=165}function Ij(e){return Ou(e)&&!e6(e)}function J0e(e){return 119<=e&&e<=127}function CI(e){let t=y0(e);return t!==void 0&&Ij(t)}function q0e(e){let t=y0(e);return t!==void 0&&Ou(t)}function xj(e){let t=tE(e);return!!t&&!e6(t)}function aR(e){return 2<=e&&e<=7}function Bc(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:Qr(e,1024)&&(t|=2);break}return e.body||(t|=4),t}function TN(e){switch(e.kind){case 262:case 218:case 219:case 174:return e.body!==void 0&&e.asteriskToken===void 0&&Qr(e,1024)}return!1}function Qp(e){return ss(e)||mp(e)}function t6(e){return Xv(e)&&(e.operator===40||e.operator===41)&&mp(e.operand)}function Wv(e){let t=No(e);return!!t&&n6(t)}function n6(e){if(!(e.kind===167||e.kind===212))return!1;let t=qs(e)?ms(e.argumentExpression):e.expression;return!Qp(t)&&!t6(t)}function bT(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:return pl(e.text);case 167:let t=e.expression;return Qp(t)?pl(t.text):t6(t)?t.operator===41?ca(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return FI(e);default:return R.assertNever(e)}}function T_(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function Xf(e){return Kh(e)?yr(e):Xm(e)?ZN(e):e.text}function AN(e){return Kh(e)?e.escapedText:Xm(e)?FI(e):pl(e.text)}function X0e(e){return`__@${ba(e)}@${e.escapedName}`}function J2(e,t){return`__#${ba(e)}@${t}`}function q2(e){return ao(e.escapedName,"__@")}function xie(e){return ao(e.escapedName,"__#")}function Y0e(e){return e.kind===80&&e.escapedText==="Symbol"}function Rie(e){return Fe(e)?yr(e)==="__proto__":Ca(e)&&e.text==="__proto__"}function IN(e,t){switch(e=Yl(e),e.kind){case 231:if(OK(e))return!1;break;case 218:if(e.name)return!1;break;case 219:break;default:return!1}return typeof t=="function"?t(e):!0}function Rj(e){switch(e.kind){case 303:return!Rie(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return Fe(e.name)&&!!e.initializer;case 169:return Fe(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 208:return Fe(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 172:return!!e.initializer;case 226:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return Fe(e.left)}break;case 277:return!0}return!1}function pp(e,t){if(!Rj(e))return!1;switch(e.kind){case 303:return IN(e.initializer,t);case 304:return IN(e.objectAssignmentInitializer,t);case 260:case 169:case 208:case 172:return IN(e.initializer,t);case 226:return IN(e.right,t);case 277:return IN(e.expression,t)}}function Dj(e){return e.escapedText==="push"||e.escapedText==="unshift"}function M0(e){return A_(e).kind===169}function A_(e){for(;e.kind===208;)e=e.parent.parent;return e}function Cj(e){let t=e.kind;return t===176||t===218||t===262||t===219||t===174||t===177||t===178||t===267||t===312}function Js(e){return Jm(e.pos)||Jm(e.end)}function $0e(e){return Ro(e,Yi)||e}function Nj(e){let t=Mj(e),r=e.kind===214&&e.arguments!==void 0;return Pj(e.kind,t,r)}function Pj(e,t,r){switch(e){case 214:return r?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function xN(e){let t=Mj(e),r=e.kind===214&&e.arguments!==void 0;return X2(e.kind,t,r)}function Mj(e){return e.kind===226?e.operatorToken.kind:e.kind===224||e.kind===225?e.operator:e.kind}function X2(e,t,r){switch(e){case 361:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return Y2(t)}case 216:case 235:case 224:case 221:case 222:case 220:case 223:return 16;case 225:return 17;case 213:return 18;case 214:return r?19:18;case 215:case 211:case 212:case 236:return 19;case 234:case 238:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 209:case 210:case 218:case 219:case 231:case 14:case 15:case 228:case 217:case 232:case 284:case 285:case 288:return 20;default:return-1}}function Y2(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function sR(e){return jr(e,t=>{switch(t.kind){case 294:return!!t.expression;case 12:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function lR(){let e=[],t=[],r=new Map,i=!1;return{add:s,lookup:o,getGlobalDiagnostics:l,getDiagnostics:d};function o(p){let h;if(p.file?h=r.get(p.file.fileName):h=e,!h)return;let m=Ey(h,p,Qs,T6);if(m>=0)return h[m]}function s(p){let h;p.file?(h=r.get(p.file.fileName),h||(h=[],r.set(p.file.fileName,h),bv(t,p.file.fileName,Gd))):(i&&(i=!1,e=e.slice()),h=e),bv(h,p,T6)}function l(){return i=!0,e}function d(p){if(p)return r.get(p)||[];let h=OC(t,m=>r.get(m));return e.length&&h.unshift(...e),h}}function Lj(e){return e.replace(TSe,"\\${")}function Die(e){return!!((e.templateFlags||0)&2048)}function kj(e){return e&&!!(HI(e)?Die(e):Die(e.head)||gt(e.templateSpans,t=>Die(t.literal)))}function Q0e(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function nBe(e,t,r){if(e.charCodeAt(0)===0){let i=r.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return RSe.get(e)||Q0e(e.charCodeAt(0))}function Zh(e,t){let r=t===96?xSe:t===39?ISe:ASe;return e.replace(r,nBe)}function $2(e,t){return e=Zh(e,t),Foe.test(e)?e.replace(Foe,r=>Q0e(r.charCodeAt(0))):e}function rBe(e){return"&#x"+e.toString(16).toUpperCase()+";"}function iBe(e){return e.charCodeAt(0)===0?"�":NSe.get(e)||rBe(e.charCodeAt(0))}function wj(e,t){let r=t===39?CSe:DSe;return e.replace(r,iBe)}function Yf(e){let t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&oBe(e.charCodeAt(0))?e.substring(1,t-1):e}function oBe(e){return e===39||e===34||e===96}function cR(e){let t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}function r6(e){let t=eP[1];for(let r=eP.length;r<=e;r++)eP.push(eP[r-1]+t);return eP[e]}function dR(){return eP[1].length}function Q2(e){var t,r,i,o,s,l=!1;function d(D){let w=hI(D);w.length>1?(o=o+w.length-1,s=t.length-D.length+Ja(w),i=s-t.length===0):i=!1}function p(D){D&&D.length&&(i&&(D=r6(r)+D,i=!1),t+=D,d(D))}function h(D){D&&(l=!1),p(D)}function m(D){D&&(l=!0),p(D)}function y(){t="",r=0,i=!0,o=0,s=0,l=!1}function E(D){D!==void 0&&(t+=D,d(D),l=!1)}function S(D){D&&D.length&&h(D)}function A(D){(!i||D)&&(t+=e,o++,s=t.length,i=!0,l=!1)}function N(){return i?t.length:t.length+e.length}return y(),{write:h,rawWrite:E,writeLiteral:S,writeLine:A,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},getIndent:()=>r,getTextPos:()=>t.length,getLine:()=>o,getColumn:()=>i?r*dR():t.length-s,getText:()=>t,isAtStartOfLine:()=>i,hasTrailingComment:()=>l,hasTrailingWhitespace:()=>!!t.length&&Dg(t.charCodeAt(t.length-1)),clear:y,writeKeyword:h,writeOperator:h,writeParameter:h,writeProperty:h,writePunctuation:h,writeSpace:h,writeStringLiteral:h,writeSymbol:(D,w)=>h(D),writeTrailingSemicolon:h,writeComment:m,getTextPosWithWriteLine:N}}function Oj(e){let t=!1;function r(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(i){r(),e.writeLiteral(i)},writeStringLiteral(i){r(),e.writeStringLiteral(i)},writeSymbol(i,o){r(),e.writeSymbol(i,o)},writePunctuation(i){r(),e.writePunctuation(i)},writeKeyword(i){r(),e.writeKeyword(i)},writeOperator(i){r(),e.writeOperator(i)},writeParameter(i){r(),e.writeParameter(i)},writeSpace(i){r(),e.writeSpace(i)},writeProperty(i){r(),e.writeProperty(i)},writeComment(i){r(),e.writeComment(i)},writeLine(){r(),e.writeLine()},increaseIndent(){r(),e.increaseIndent()},decreaseIndent(){r(),e.decreaseIndent()}}}function uR(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function Ly(e){return Cd(uR(e))}function i6(e,t,r){return t.moduleName||Wj(e,t.fileName,r&&r.fileName)}function Z0e(e,t){return e.getCanonicalFileName(_o(t,e.getCurrentDirectory()))}function Cie(e,t,r){let i=t.getExternalModuleFileFromDeclaration(r);if(!i||i.isDeclarationFile)return;let o=eR(r);if(!(o&&ss(o)&&!Lp(o.text)&&!Z0e(e,i.path).includes(Z0e(e,Fc(e.getCommonSourceDirectory())))))return i6(e,i)}function Wj(e,t,r){let i=p=>e.getCanonicalFileName(p),o=tl(r?oi(r):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),s=_o(t,e.getCurrentDirectory()),l=_I(o,s,o,i,!1),d=Su(l);return r?g0(d):d}function Nie(e,t,r){let i=t.getCompilerOptions(),o;return i.outDir?o=Su(l6(e,t,i.outDir)):o=Su(e),o+r}function Pie(e,t){return o6(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),r=>t.getCanonicalFileName(r))}function o6(e,t,r,i,o){let s=t.declarationDir||t.outDir,l=s?c6(e,s,r,i,o):e,d=a6(l);return Su(l)+d}function a6(e){return bc(e,[".mjs",".mts"])?".d.mts":bc(e,[".cjs",".cts"])?".d.cts":bc(e,[".json"])?".d.json.ts":".d.ts"}function Mie(e){return bc(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:bc(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:bc(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function Rs(e){return e.outFile||e.out}function s6(e,t){var r;if(e.paths)return e.baseUrl??R.checkDefined(e.pathsBasePath||((r=t.getCurrentDirectory)==null?void 0:r.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function Fj(e,t,r){let i=e.getCompilerOptions();if(Rs(i)){let o=Md(i),s=i.emitDeclarationOnly||o===2||o===4;return jr(e.getSourceFiles(),l=>(s||!oc(l))&&ET(l,e,r))}else{let o=t===void 0?e.getSourceFiles():[t];return jr(o,s=>ET(s,e,r))}}function ET(e,t,r){let i=t.getCompilerOptions();if(i.noEmitForJsFiles&&lu(e)||e.isDeclarationFile||t.isSourceFileFromExternalLibrary(e))return!1;if(r)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!Jf(e))return!0;if(t.getResolvedProjectReferenceToRedirect(e.fileName))return!1;if(Rs(i))return!0;if(!i.outDir)return!1;if(i.rootDir||i.composite&&i.configFilePath){let o=_o(VP(i,()=>[],t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),s=c6(e.fileName,i.outDir,t.getCurrentDirectory(),o,t.getCanonicalFileName);if(xg(e.fileName,s,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0)return!1}return!0}function l6(e,t,r){return c6(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),i=>t.getCanonicalFileName(i))}function c6(e,t,r,i,o){let s=_o(e,r);return s=o(s).indexOf(o(i))===0?s.substring(i.length):s,$r(t,s)}function RN(e,t,r,i,o,s,l){e.writeFile(r,i,o,d=>{t.add(jl(f.Could_not_write_file_0_Colon_1,r,d))},s,l)}function eSe(e,t,r){if(e.length>lh(e)&&!r(e)){let i=oi(e);eSe(i,t,r),t(e)}}function zj(e,t,r,i,o,s){try{i(e,t,r)}catch{eSe(oi(fa(e)),o,s),i(e,t,r)}}function DN(e,t){let r=Rg(e);return XC(r,t)}function ST(e,t){return XC(e,t)}function eg(e){return Vr(e.members,t=>Pl(t)&&Hf(t.body))}function CN(e){if(e&&e.parameters.length>0){let t=e.parameters.length===2&&k0(e.parameters[0]);return e.parameters[t?1:0]}}function Lie(e){let t=CN(e);return t&&t.type}function L0(e){if(e.parameters.length&&!vE(e)){let t=e.parameters[0];if(k0(t))return t}}function k0(e){return w0(e.name)}function w0(e){return!!e&&e.kind===80&&Bj(e)}function TT(e){return!!Fn(e,t=>t.kind===186?!0:t.kind===80||t.kind===166?!1:"quit")}function NI(e){if(!w0(e))return!1;for(;Tu(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===186}function Bj(e){return e.escapedText==="this"}function AT(e,t){let r,i,o,s;return Wv(t)?(r=t,t.kind===177?o=t:t.kind===178?s=t:R.fail("Accessor has wrong kind")):gn(e,l=>{if(Nv(l)&&na(l)===na(t)){let d=bT(l.name),p=bT(t.name);d===p&&(r?i||(i=l):r=l,l.kind===177&&!o&&(o=l),l.kind===178&&!s&&(s=l))}}),{firstAccessor:r,secondAccessor:i,getAccessor:o,setAccessor:s}}function hd(e){if(!ir(e)&&Ec(e))return;let t=e.type;return t||!ir(e)?t:iN(e)?e.typeExpression&&e.typeExpression.type:rE(e)}function kie(e){return e.type}function $f(e){return vE(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(ir(e)?$L(e):void 0)}function d6(e){return va(iE(e),t=>aBe(t)?t.typeParameters:void 0)}function aBe(e){return nm(e)&&!(e.parent.kind===327&&(e.parent.tags.some(qf)||e.parent.tags.some(kR)))}function wie(e){let t=CN(e);return t&&hd(t)}function Oie(e,t,r,i){Wie(e,t,r.pos,i)}function Wie(e,t,r,i){i&&i.length&&r!==i[0].pos&&ST(e,r)!==ST(e,i[0].pos)&&t.writeLine()}function Fie(e,t,r,i){r!==i&&ST(e,r)!==ST(e,i)&&t.writeLine()}function zie(e,t,r,i,o,s,l,d){if(i&&i.length>0){o&&r.writeSpace(" ");let p=!1;for(let h of i)p&&(r.writeSpace(" "),p=!1),d(e,t,r,h.pos,h.end,l),h.hasTrailingNewLine?r.writeLine():p=!0;p&&s&&r.writeSpace(" ")}}function Bie(e,t,r,i,o,s,l){let d,p;if(l?o.pos===0&&(d=jr(Uh(e,o.pos),h)):d=Uh(e,o.pos),d){let m=[],y;for(let E of d){if(y){let S=ST(t,y.end);if(ST(t,E.pos)>=S+2)break}m.push(E),y=E}if(m.length){let E=ST(t,Ja(m).end);ST(t,Pa(e,o.pos))>=E+2&&(Oie(t,r,o,d),zie(e,t,r,m,!1,!0,s,i),p={nodePos:o.pos,detachedCommentEndPos:Ja(m).end})}}return p;function h(m){return AF(e,m.pos)}}function pR(e,t,r,i,o,s){if(e.charCodeAt(i+1)===42){let l=Cx(t,i),d=t.length,p;for(let h=i,m=l.line;h0){let A=S%dR(),N=r6((S-A)/dR());for(r.rawWrite(N);A;)r.rawWrite(" "),A--}else r.rawWrite("")}sBe(e,o,r,s,h,y),h=y}}else r.writeComment(e.substring(i,o))}function sBe(e,t,r,i,o,s){let l=Math.min(t,s-1),d=e.substring(o,l).trim();d?(r.writeComment(d),l!==t&&r.writeLine()):r.rawWrite(i)}function tSe(e,t,r){let i=0;for(;t=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=Vj(e)|536870912),r||t&&ir(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=nSe(e)|268435456),rSe(e.modifierFlagsCache)):lBe(e.modifierFlagsCache))}function cu(e){return jie(e,!0)}function Uie(e){return jie(e,!0,!0)}function Fv(e){return jie(e,!1)}function nSe(e){let t=0;return e.parent&&!To(e)&&(ir(e)&&(ire(e)&&(t|=8388608),ore(e)&&(t|=16777216),are(e)&&(t|=33554432),sre(e)&&(t|=67108864),lre(e)&&(t|=134217728)),cre(e)&&(t|=65536)),t}function lBe(e){return e&65535}function rSe(e){return e&131071|(e&260046848)>>>23}function cBe(e){return rSe(nSe(e))}function Hie(e){return Vj(e)|cBe(e)}function Vj(e){let t=Am(e)?x_(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function x_(e){let t=0;if(e)for(let r of e)t|=MI(r.kind);return t}function MI(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function iSe(e){return e===57||e===56}function Kie(e){return iSe(e)||e===54}function PN(e){return e===76||e===77||e===78}function jj(e){return ur(e)&&PN(e.operatorToken.kind)}function Z2(e){return iSe(e)||e===61}function ek(e){return ur(e)&&Z2(e.operatorToken.kind)}function ky(e){return e>=64&&e<=79}function Uj(e){let t=Hj(e);return t&&!t.isImplements?t.class:void 0}function Hj(e){if(By(e)){if(ef(e.parent)&&di(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(a1(e.parent)){let t=dE(e.parent);if(t&&di(t))return{class:t,isImplements:!1}}}}function Pc(e,t){return ur(e)&&(t?e.operatorToken.kind===64:ky(e.operatorToken.kind))&&Yu(e.left)}function oSe(e){return Pc(e.parent)&&e.parent.left===e}function wy(e){if(Pc(e,!0)){let t=e.left.kind;return t===210||t===209}return!1}function f6(e){return Uj(e)!==void 0}function Bl(e){return e.kind===80||tk(e)}function Fp(e){switch(e.kind){case 80:return e;case 166:do e=e.left;while(e.kind!==80);return e;case 211:do e=e.expression;while(e.kind!==80);return e}}function MN(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===236||e.kind===211&&MN(e.expression)||e.kind===217&&MN(e.expression)}function tk(e){return wr(e)&&Fe(e.name)&&Bl(e.expression)}function nk(e){if(wr(e)){let t=nk(e.expression);if(t!==void 0)return t+"."+up(e.name)}else if(qs(e)){let t=nk(e.expression);if(t!==void 0&&rc(e.argumentExpression))return t+"."+bT(e.argumentExpression)}else{if(Fe(e))return Vi(e.escapedText);if(Xm(e))return ZN(e)}}function zv(e){return C0(e)&&Mg(e)==="prototype"}function LN(e){return e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e||e.parent.kind===236&&e.parent.name===e}function Kj(e){return!!e.parent&&(wr(e.parent)&&e.parent.name===e||qs(e.parent)&&e.parent.argumentExpression===e)}function Jie(e){return Tu(e.parent)&&e.parent.right===e||wr(e.parent)&&e.parent.name===e||yE(e.parent)&&e.parent.right===e}function m6(e){return ur(e)&&e.operatorToken.kind===104}function qie(e){return m6(e.parent)&&e===e.parent.right}function Jj(e){return e.kind===210&&e.properties.length===0}function Xie(e){return e.kind===209&&e.elements.length===0}function fR(e){if(!(!dBe(e)||!e.declarations)){for(let t of e.declarations)if(t.localSymbol)return t.localSymbol}}function dBe(e){return e&&Nn(e.declarations)>0&&Qr(e.declarations[0],2048)}function _6(e){return Vr(wSe,t=>Sl(e,t))}function uBe(e){let t=[],r=e.length;for(let i=0;i>6|192),t.push(o&63|128)):o<65536?(t.push(o>>12|224),t.push(o>>6&63|128),t.push(o&63|128)):o<131072?(t.push(o>>18|240),t.push(o>>12&63|128),t.push(o>>6&63|128),t.push(o&63|128)):R.assert(!1,"Unexpected code point")}return t}function Yie(e){let t="",r=uBe(e),i=0,o=r.length,s,l,d,p;for(;i>2,l=(r[i]&3)<<4|r[i+1]>>4,d=(r[i+1]&15)<<2|r[i+2]>>6,p=r[i+2]&63,i+1>=o?d=p=64:i+2>=o&&(p=64),t+=xT.charAt(s)+xT.charAt(l)+xT.charAt(d)+xT.charAt(p),i+=3;return t}function pBe(e){let t="",r=0,i=e.length;for(;r>4&3,m=(l&15)<<4|d>>2&15,y=(d&3)<<6|p&63;m===0&&d!==0?i.push(h):y===0&&p!==0?i.push(h,m):i.push(h,m,y),o+=4}return pBe(i)}function qj(e,t){let r=Co(t)?t:t.readFile(e);if(!r)return;let i=WH(e,r);return i.error?void 0:i.config}function kN(e,t){return qj(e,t)||{}}function h6(e){try{return JSON.parse(e)}catch{return}}function Hm(e,t){return!t.directoryExists||t.directoryExists(e)}function Oy(e){switch(e.newLine){case 0:return PSe;case 1:case void 0:return MSe}}function Ef(e,t=e){return R.assert(t>=e||t===-1),{pos:e,end:t}}function g6(e,t){return Ef(e.pos,t)}function pE(e,t){return Ef(t,e.end)}function kg(e){let t=Am(e)?sI(e.modifiers,yd):void 0;return t&&!Jm(t.end)?pE(e,t.end):e}function R_(e){if(Vo(e)||Ul(e))return pE(e,e.name.pos);let t=Am(e)?$s(e.modifiers):void 0;return t&&!Jm(t.end)?pE(e,t.end):kg(e)}function aSe(e){return e.pos===e.end}function Xj(e,t){return Ef(e,e+ca(t).length)}function IT(e,t){return eoe(e,e,t)}function y6(e,t,r){return Sf(wN(e,r,!1),wN(t,r,!1),r)}function Zie(e,t,r){return Sf(e.end,t.end,r)}function eoe(e,t,r){return Sf(wN(e,r,!1),t.end,r)}function rk(e,t,r){return Sf(e.end,wN(t,r,!1),r)}function Yj(e,t,r,i){let o=wN(t,r,i);return YC(r,e.end,o)}function sSe(e,t,r){return YC(r,e.end,t.end)}function toe(e,t){return!Sf(e.pos,e.end,t)}function Sf(e,t,r){return YC(r,e,t)===0}function wN(e,t,r){return Jm(e.pos)?-1:Pa(t.text,e.pos,!1,r)}function noe(e,t,r,i){let o=Pa(r.text,e,!1,i),s=fBe(o,t,r);return YC(r,s??t,o)}function roe(e,t,r,i){let o=Pa(r.text,e,!1,i);return YC(r,e,Math.min(t,o))}function fBe(e,t=0,r){for(;e-- >t;)if(!Dg(r.text.charCodeAt(e)))return e}function $j(e){let t=Ro(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function ON(e){return jr(e.declarations,ik)}function ik(e){return Oi(e)&&e.initializer!==void 0}function lSe(e){return e.watch&&Ts(e,"watch")}function Km(e){e.close()}function Tl(e){return e.flags&33554432?e.links.checkFlags:0}function Tf(e,t=!1){if(e.valueDeclaration){let r=t&&e.declarations&&Vr(e.declarations,hp)||e.flags&32768&&Vr(e.declarations,Zp)||e.valueDeclaration,i=eE(r);return e.parent&&e.parent.flags&32?i:i&-8}if(Tl(e)&6){let r=e.links.checkFlags,i=r&1024?2:r&256?1:4,o=r&2048?256:0;return i|o}return e.flags&4194304?257:0}function gd(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function mR(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function v6(e){return WN(e)===1}function LI(e){return WN(e)!==0}function WN(e){let{parent:t}=e;switch(t?.kind){case 217:return WN(t);case 225:case 224:let{operator:r}=t;return r===46||r===47?2:0;case 226:let{left:i,operatorToken:o}=t;return i===e&&ky(o.kind)?o.kind===64?1:2:0;case 211:return t.name!==e?0:WN(t);case 303:{let s=WN(t.parent);return e===t.name?mBe(s):s}case 304:return e===t.objectAssignmentInitializer?0:WN(t.parent);case 209:return WN(t);default:return 0}}function mBe(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return R.assertNever(e)}}function Qj(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(typeof e[r]=="object"){if(!Qj(e[r],t[r]))return!1}else if(typeof e[r]!="function"&&e[r]!==t[r])return!1;return!0}function $u(e,t){e.forEach(t),e.clear()}function tg(e,t,r){let{onDeleteValue:i,onExistingValue:o}=r;e.forEach((s,l)=>{var d;t?.has(l)?o&&o(s,(d=t.get)==null?void 0:d.call(t,l),l):(e.delete(l),i(s,l))})}function FN(e,t,r){tg(e,t,r);let{createNewValue:i}=r;t?.forEach((o,s)=>{e.has(s)||e.set(s,i(s,o))})}function ioe(e){if(e.flags&32){let t=wg(e);return!!t&&Qr(t,64)}return!1}function wg(e){var t;return(t=e.declarations)==null?void 0:t.find(di)}function kr(e){return e.flags&3899393?e.objectFlags:0}function cSe(e,t){return!!hm(e,r=>t(r)?!0:void 0)}function b6(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&zk(e.declarations[0])}function ooe({moduleSpecifier:e}){return Ca(e)?e.text:uc(e)}function Zj(e){let t;return Bo(e,r=>{Hf(r)&&(t=r)},r=>{for(let i=r.length-1;i>=0;i--)if(Hf(r[i])){t=r[i];break}}),t}function Em(e,t,r=!0){return e.has(t)?!1:(e.set(t,r),!0)}function kI(e){return di(e)||fu(e)||gp(e)}function eU(e){return e>=182&&e<=205||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===233||e===319||e===320||e===321||e===322||e===323||e===324||e===325}function Ps(e){return e.kind===211||e.kind===212}function tU(e){return e.kind===211?e.name:(R.assert(e.kind===212),e.argumentExpression)}function aoe(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function E6(e){return e.kind===275||e.kind===279}function _R(e){for(;Ps(e);)e=e.expression;return e}function soe(e,t){if(Ps(e.parent)&&Kj(e))return r(e.parent);function r(i){if(i.kind===211){let o=t(i.name);if(o!==void 0)return o}else if(i.kind===212)if(Fe(i.argumentExpression)||ss(i.argumentExpression)){let o=t(i.argumentExpression);if(o!==void 0)return o}else return;if(Ps(i.expression))return r(i.expression);if(Fe(i.expression))return t(i.expression)}}function hR(e,t){for(;;){switch(e.kind){case 225:e=e.operand;continue;case 226:e=e.left;continue;case 227:e=e.condition;continue;case 215:e=e.tag;continue;case 213:if(t)return e;case 234:case 212:case 211:case 235:case 360:case 238:e=e.expression;continue}return e}}function _Be(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function hBe(e,t){this.flags=t,(R.isDebugging||rr)&&(this.checker=e)}function gBe(e,t){this.flags=t,R.isDebugging&&(this.checker=e)}function loe(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function yBe(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function vBe(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function bBe(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(i=>i)}function coe(e){zoe.push(e),e(od)}function doe(e){Object.assign(od,e),gn(zoe,t=>t(od))}function ng(e,t){return e.replace(/{(\d+)}/g,(r,i)=>""+R.checkDefined(t[+i]))}function uoe(e){q6=e}function poe(e){!q6&&e&&(q6=e())}function ko(e){return q6&&q6[e.key]||e.message}function gR(e,t,r,i,o,...s){r+i>t.length&&(i=t.length-r),$re(t,r,i);let l=ko(o);return gt(s)&&(l=ng(l,s)),{file:void 0,start:r,length:i,messageText:l,category:o.category,code:o.code,reportsUnnecessary:o.reportsUnnecessary,fileName:e}}function EBe(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function dSe(e,t){let r=t.fileName||"",i=t.text.length;R.assertEqual(e.fileName,r),R.assertLessThanOrEqual(e.start,i),R.assertLessThanOrEqual(e.start+e.length,i);let o={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){o.relatedInformation=[];for(let s of e.relatedInformation)EBe(s)&&s.fileName===r?(R.assertLessThanOrEqual(s.start,i),R.assertLessThanOrEqual(s.start+s.length,i),o.relatedInformation.push(dSe(s,t))):o.relatedInformation.push(s)}return o}function wI(e,t){let r=[];for(let i of e)r.push(dSe(i,t));return r}function Yc(e,t,r,i,...o){$re(e.text,t,r);let s=ko(i);return gt(o)&&(s=ng(s,o)),{file:e,start:t,length:r,messageText:s,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function nU(e,...t){let r=ko(e);return gt(t)&&(r=ng(r,t)),r}function jl(e,...t){let r=ko(e);return gt(t)&&(r=ng(r,t)),{file:void 0,start:void 0,length:void 0,messageText:r,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function S6(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}}function Fo(e,t,...r){let i=ko(t);return gt(r)&&(i=ng(i,r)),{messageText:i,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function foe(e,t){let r=e;for(;r.next;)r=r.next[0];r.next=[t]}function uSe(e){return e.file?e.file.path:void 0}function zN(e,t){return T6(e,t)||SBe(e,t)||0}function T6(e,t){return Gd(uSe(e),uSe(t))||Zs(e.start,t.start)||Zs(e.length,t.length)||Zs(e.code,t.code)||pSe(e.messageText,t.messageText)||0}function SBe(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?Zs(e.relatedInformation.length,t.relatedInformation.length)||gn(e.relatedInformation,(r,i)=>{let o=t.relatedInformation[i];return zN(r,o)})||0:e.relatedInformation?-1:1}function pSe(e,t){if(typeof e=="string"&&typeof t=="string")return Gd(e,t);if(typeof e=="string")return-1;if(typeof t=="string")return 1;let r=Gd(e.messageText,t.messageText);if(r)return r;if(!e.next&&!t.next)return 0;if(!e.next)return-1;if(!t.next)return 1;let i=Math.min(e.next.length,t.next.length);for(let o=0;ot.next.length?1:0}function ok(e){return e===4||e===2||e===1||e===6?1:0}function fSe(e){if(e.transformFlags&2)return su(e)||q0(e)?e:Bo(e,fSe)}function TBe(e){return e.isDeclarationFile?void 0:fSe(e)}function ABe(e){return(e.impliedNodeFormat===99||bc(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function ak(e){switch(xU(e)){case 3:return o=>{o.externalModuleIndicator=Yk(o)||!o.isDeclarationFile||void 0};case 1:return o=>{o.externalModuleIndicator=Yk(o)};case 2:let t=[Yk];(e.jsx===4||e.jsx===5)&&t.push(TBe),t.push(ABe);let r=Um(...t);return o=>void(o.externalModuleIndicator=r(o))}}function obt(e){return e}function A6(e){return e>=5&&e<=99}function I6(e){switch(Md(e)){case 0:case 4:case 3:return!1}return!0}function rU(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function moe(e){return e.allowUnreachableCode===!1}function _oe(e){return e.allowUnusedLabels===!1}function OI(e){return e>=3&&e<=99||e===100}function du(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function hoe(e){return e.useDefineForClassFields!==!1&&rs(e)>=9}function goe(e,t){return Bx(t,e,KH)}function yoe(e,t){return Bx(t,e,JH)}function voe(e,t){return Bx(t,e,qH)}function x6(e,t){return t.strictFlag?du(e,t.name):t.allowJsFlag?jv(e):e[t.name]}function R6(e){let t=e.jsx;return t===2||t===4||t===5}function D6(e,t){let r=t?.pragmas.get("jsximportsource"),i=So(r)?r[r.length-1]:r;return e.jsx===4||e.jsx===5||e.jsxImportSource||i?i?.arguments.factory||e.jsxImportSource||"react":void 0}function C6(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function iU(e){let t=!1;for(let r=0;ro,getSymlinkedDirectories:()=>r,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(d,p)=>(o||(o=new Map)).set(d,p),setSymlinkedDirectory:(d,p)=>{let h=tl(d,e,t);qN(h)||(h=Fc(h),p!==!1&&!r?.has(h)&&(i||(i=Xp())).add(p.realPath,d),(r||(r=new Map)).set(h,p))},setSymlinksFromResolutions(d,p,h){R.assert(!s),s=!0,d(m=>l(this,m.resolvedModule)),p(m=>l(this,m.resolvedTypeReferenceDirective)),h.forEach(m=>l(this,m.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>s};function l(d,p){if(!p||!p.originalPath||!p.resolvedFileName)return;let{resolvedFileName:h,originalPath:m}=p;d.setSymlinkedFile(tl(m,e,t),h);let[y,E]=IBe(h,m,e,t)||Xe;y&&E&&d.setSymlinkedDirectory(E,{real:Fc(y),realPath:Fc(tl(y,e,t))})}}function IBe(e,t,r,i){let o=Wc(_o(e,r)),s=Wc(_o(t,r)),l=!1;for(;o.length>=2&&s.length>=2&&!mSe(o[o.length-2],i)&&!mSe(s[s.length-2],i)&&i(o[o.length-1])===i(s[s.length-1]);)o.pop(),s.pop(),l=!0;return l?[Av(o),Av(s)]:void 0}function mSe(e,t){return e!==void 0&&(t(e)==="node_modules"||ao(e,"@"))}function xBe(e){return oV(e.charCodeAt(0))?e.slice(1):void 0}function aU(e,t,r){let i=JG(e,t,r);return i===void 0?void 0:xBe(i)}function _Se(e){return e.replace(RU,RBe)}function RBe(e){return"\\"+e}function BN(e,t,r){let i=N6(e,t,r);return!i||!i.length?void 0:`^(${i.map(l=>`(${l})`).join("|")})${r==="exclude"?"($|/)":"$"}`}function N6(e,t,r){if(!(e===void 0||e.length===0))return va(e,i=>i&&P6(i,t,r,NU[r]))}function sU(e){return!/[.*?]/.test(e)}function boe(e,t,r){let i=e&&P6(e,t,r,NU[r]);return i&&`^(${i})${r==="exclude"?"($|/)":"$"}`}function P6(e,t,r,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:o,replaceWildcardCharacter:s}=NU[r]){let l="",d=!1,p=OL(e,t),h=Ja(p);if(r!=="exclude"&&h==="**")return;p[0]=Yb(p[0]),sU(h)&&p.push("**","*");let m=0;for(let y of p){if(y==="**")l+=o;else if(r==="directories"&&(l+="(",m++),d&&(l+=nl),r!=="exclude"){let E="";y.charCodeAt(0)===42?(E+="([^./]"+i+")?",y=y.substr(1)):y.charCodeAt(0)===63&&(E+="[^./]",y=y.substr(1)),E+=y.replace(RU,s),E!==y&&(l+=CU),l+=E}else l+=y.replace(RU,s);d=!0}for(;m>0;)l+=")?",m--;return l}function Eoe(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function M6(e,t,r,i,o){e=fa(e),o=fa(o);let s=$r(o,e);return{includeFilePatterns:mn(N6(r,s,"files"),l=>`^${l}$`),includeFilePattern:BN(r,s,"files"),includeDirectoryPattern:BN(r,s,"directories"),excludePattern:BN(t,s,"exclude"),basePaths:DBe(e,r,i)}}function Bv(e,t){return new RegExp(e,t?"":"i")}function lU(e,t,r,i,o,s,l,d,p){e=fa(e),s=fa(s);let h=M6(e,r,i,o,s),m=h.includeFilePatterns&&h.includeFilePatterns.map(w=>Bv(w,o)),y=h.includeDirectoryPattern&&Bv(h.includeDirectoryPattern,o),E=h.excludePattern&&Bv(h.excludePattern,o),S=m?m.map(()=>[]):[[]],A=new Map,N=Cd(o);for(let w of h.basePaths)D(w,$r(s,w),l);return pm(S);function D(w,j,K){let Y=N(p(j));if(A.has(Y))return;A.set(Y,!0);let{files:B,directories:ce}=d(w);for(let z of ZS(B,Gd)){let ee=$r(w,z),me=$r(j,z);if(!(t&&!bc(ee,t))&&!(E&&E.test(me)))if(!m)S[0].push(ee);else{let ge=Kl(m,q=>q.test(me));ge!==-1&&S[ge].push(ee)}}if(!(K!==void 0&&(K--,K===0)))for(let z of ZS(ce,Gd)){let ee=$r(w,z),me=$r(j,z);(!y||y.test(me))&&(!E||!E.test(me))&&D(ee,me,K)}}}function DBe(e,t,r){let i=[e];if(t){let o=[];for(let s of t){let l=cp(s)?s:fa($r(e,s));o.push(CBe(l))}o.sort(bx(!r));for(let s of o)oo(i,l=>!mm(l,s,e,!r))&&i.push(s)}return i}function CBe(e){let t=Xte(e,LSe);return t<0?mI(e)?Yb(oi(e)):e:e.substring(0,e.lastIndexOf(nl,t))}function L6(e,t){return t||k6(e)||3}function k6(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}function GN(e,t){let r=e&&jv(e);if(!t||t.length===0)return r?$6:SR;let i=r?$6:SR,o=pm(i);return[...i,...to(t,l=>l.scriptKind===7||r&&NBe(l.scriptKind)&&!o.includes(l.extension)?[l.extension]:void 0)]}function sk(e,t){return!e||!_E(e)?t:t===$6?OSe:t===SR?kSe:[...t,[".json"]]}function NBe(e){return e===1||e===2}function W0(e){return gt(TR,t=>Sl(e,t))}function WI(e){return gt(PU,t=>Sl(e,t))}function Soe({imports:e},t=Um(W0,WI)){return Wl(e,({text:r})=>Lp(r)&&!bc(r,bk)?t(r):void 0)||!1}function Toe(e,t,r,i){let o=uu(r),s=3<=o&&o<=99;if(e==="js"||t===99&&s)return qR(r)&&l()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!qR(r))return Soe(i)?2:0;return l();function l(){let d=!1,p=i.imports.length?i.imports:lu(i)?PBe(i).map(h=>h.arguments[0]):Xe;for(let h of p)if(Lp(h.text)){if(s&&t===1&&lJ(i,h,r)===99||bc(h.text,bk))continue;if(WI(h.text))return 3;W0(h.text)&&(d=!0)}return d?2:0}}function PBe(e){let t=0,r;for(let i of e.statements){if(t>3)break;pj(i)?r=bo(r,i.declarationList.declarations.map(o=>o.initializer)):Qc(i)&&Eu(i.expression,!0)?r=Tn(r,i.expression):t++}return r||Xe}function Aoe(e,t,r){if(!e)return!1;let i=GN(t,r);for(let o of pm(sk(t,i)))if(Sl(e,o))return!0;return!1}function hSe(e){let t=e.match(/\//g);return t?t.length:0}function lk(e,t){return Zs(hSe(e),hSe(t))}function Su(e){for(let t of kU){let r=Ioe(e,t);if(r!==void 0)return r}return e}function Ioe(e,t){return Sl(e,t)?ck(e,t):void 0}function ck(e,t){return e.substring(0,e.length-t.length)}function fE(e,t){return WL(e,t,kU,!1)}function yR(e){let t=e.indexOf("*");return t===-1?e:e.indexOf("*",t+1)!==-1?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function w6(e){return to(jh(e),t=>yR(t))}function Jm(e){return!(e>=0)}function O6(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||ao(e,".d.")&&El(e,".ts")}function VN(e){return O6(e)||e===".json"}function jN(e){let t=Og(e);return t!==void 0?t:R.fail(`File ${e} has unknown extension.`)}function gSe(e){return Og(e)!==void 0}function Og(e){return Vr(kU,t=>Sl(e,t))}function dk(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function cU(e,t){let r=[];for(let i of e){if(i===t)return t;Co(i)||r.push(i)}return KG(r,i=>i,t)}function dU(e,t){let r=e.indexOf(t);return R.assert(r!==-1),e.slice(r)}function Ma(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),R.assert(e.relatedInformation!==Xe,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function xoe(e,t){R.assert(e.length!==0);let r=t(e[0]),i=r;for(let o=1;oi&&(i=s)}return{min:r,max:i}}function uU(e){return{pos:aE(e),end:e.end}}function pU(e,t){let r=t.pos-1,i=Math.min(e.text.length,Pa(e.text,t.end)+1);return{pos:r,end:i}}function UN(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)}function W6(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&rne(e,t,W6)}function HN(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:let h=e.length-1,m=0;for(;e.charCodeAt(m)===48;)m++;return e.slice(m,h)||"0"}let r=2,i=e.length-1,o=(i-r)*t,s=new Uint16Array((o>>>4)+(o&15?1:0));for(let h=i-1,m=0;h>=r;h--,m+=t){let y=m>>>4,E=e.charCodeAt(h),A=(E<=57?E-48:10+E-(E<=70?65:97))<<(m&15);s[y]|=A;let N=A>>>16;N&&(s[y+1]|=N)}let l="",d=s.length-1,p=!0;for(;p;){let h=0;p=!1;for(let m=d;m>=0;m--){let y=h<<16|s[m],E=y/10|0;s[m]=E,h=y-E*10,E&&!p&&(d=m,p=!0)}l=h+l}return l}function F0({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function Roe(e){if(F6(e,!1))return fU(e)}function fU(e){let t=e.startsWith("-"),r=HN(`${t?e.slice(1):e}n`);return{negative:t,base10Value:r}}function F6(e,t){if(e==="")return!1;let r=Ry(99,!1),i=!0;r.setOnError(()=>i=!1),r.setText(e+"n");let o=r.scan(),s=o===41;s&&(o=r.scan());let l=r.getTokenFlags();return i&&o===10&&r.getTokenEnd()===e.length+1&&!(l&512)&&(!t||e===F0({negative:s,base10Value:HN(r.getTokenValue())}))}function mE(e){return!!(e.flags&33554432)||jF(e)||kBe(e)||LBe(e)||!(Yh(e)||MBe(e))}function MBe(e){return Fe(e)&&Zu(e.parent)&&e.parent.name===e}function LBe(e){for(;e.kind===80||e.kind===211;)e=e.parent;if(e.kind!==167)return!1;if(Qr(e.parent,64))return!0;let t=e.parent.parent.kind;return t===264||t===187}function kBe(e){if(e.kind!==80)return!1;let t=Fn(e.parent,r=>{switch(r.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}});return t?.token===119||t?.parent.kind===264}function Doe(e){return If(e)&&Fe(e.typeName)}function Coe(e,t=Ay){if(e.length<2)return!0;let r=e[0];for(let i=1,o=e.length;ie.includes(t))}function Moe(e){if(!e.parent)return;switch(e.kind){case 168:let{parent:r}=e;return r.kind===195?void 0:r.typeParameters;case 169:return e.parent.parameters;case 204:return e.parent.templateSpans;case 239:return e.parent.templateSpans;case 170:{let{parent:i}=e;return GT(i)?i.modifiers:void 0}case 298:return e.parent.heritageClauses}let{parent:t}=e;if(zx(e))return FT(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return lT(e)?t.members:void 0;case 192:case 193:return t.types;case 189:case 209:case 361:case 275:case 279:return t.elements;case 210:case 292:return t.properties;case 213:case 214:return ji(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 284:case 288:return d2(e)?t.children:void 0;case 286:case 285:return ji(e)?t.typeArguments:void 0;case 241:case 296:case 297:case 268:return t.statements;case 269:return t.clauses;case 263:case 231:return Xc(e)?t.members:void 0;case 266:return $0(e)?t.members:void 0;case 312:return t.statements}}function z6(e){if(!e.typeParameters){if(gt(e.parameters,t=>!hd(t)))return!0;if(e.kind!==219){let t=Jc(e.parameters);if(!(t&&k0(t)))return!0}}return!1}function XN(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function Loe(e){return e.kind===260&&e.parent.kind===299}function z0(e){return e.kind===218||e.kind===219}function B0(e){return e.replace(/\$/gm,()=>"\\$")}function rg(e){return(+e).toString()===e}function B6(e,t,r,i,o){let s=o&&e==="new";return!s&&$p(e,t)?L.createIdentifier(e):!i&&!s&&rg(e)&&+e>=0?L.createNumericLiteral(+e):L.createStringLiteral(e,!!r)}function YN(e){return!!(e.flags&262144&&e.isThisType)}function G6(e){let t=0,r=0,i=0,o=0,s;(h=>{h[h.BeforeNodeModules=0]="BeforeNodeModules",h[h.NodeModules=1]="NodeModules",h[h.Scope=2]="Scope",h[h.PackageContent=3]="PackageContent"})(s||(s={}));let l=0,d=0,p=0;for(;d>=0;)switch(l=d,d=e.indexOf("/",l+1),p){case 0:e.indexOf(Sh,l)===l&&(t=l,r=d,p=1);break;case 1:case 2:p===1&&e.charAt(l+1)==="@"?p=2:(i=d,p=3);break;case 3:e.indexOf(Sh,l)===l?p=1:p=3;break}return o=l,p>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:o}:void 0}function ySe(e){var t;return e.kind===348?(t=e.typeExpression)==null?void 0:t.type:e.type}function ER(e){switch(e.kind){case 168:case 263:case 264:case 265:case 266:case 353:case 345:case 347:return!0;case 273:return e.isTypeOnly;case 276:case 281:return e.parent.parent.isTypeOnly;default:return!1}}function uk(e){return gE(e)||Ml(e)||Ec(e)||Sc(e)||fu(e)||ER(e)||ql(e)&&!A0(e)&&!E_(e)}function pk(e){if(!iN(e))return!1;let{isBracketed:t,typeExpression:r}=e;return t||!!r&&r.type.kind===323}function _U(e,t){if(e.length===0)return!1;let r=e.charCodeAt(0);return r===35?e.length>1&&Hh(e.charCodeAt(1),t):Hh(r,t)}function koe(e){var t;return((t=jU(e))==null?void 0:t.kind)===0}function fk(e){return ir(e)&&(e.type&&e.type.kind===323||Lx(e).some(({isBracketed:t,typeExpression:r})=>t||!!r&&r.type.kind===323))}function $N(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||fk(e);case 355:case 348:return pk(e);default:return!1}}function woe(e){let t=e.kind;return(t===211||t===212)&&t1(e.expression)}function hU(e){return ir(e)&&Wu(e)&&kp(e)&&!!EV(e)}function gU(e){return R.checkDefined(V6(e))}function V6(e){let t=EV(e);return t&&t.typeExpression&&t.typeExpression.type}function QN(e){return Fe(e)?e.escapedText:FI(e)}function mk(e){return Fe(e)?yr(e):ZN(e)}function Ooe(e){let t=e.kind;return t===80||t===295}function FI(e){return`${e.namespace.escapedText}:${yr(e.name)}`}function ZN(e){return`${yr(e.namespace)}:${yr(e.name)}`}function yU(e){return Fe(e)?yr(e):ZN(e)}function Qf(e){return!!(e.flags&8576)}function Zf(e){return e.flags&8192?e.escapedName:e.flags&384?pl(""+e.value):R.fail()}function j6(e){return!!e&&(wr(e)||qs(e)||ur(e))}function Woe(e){return e===void 0?!1:!!$R(e.attributes)}function zI(e,t){return WSe.call(e,"*",t)}function U6(e){return Fe(e.name)?e.name.escapedText:pl(e.name.text)}var H6,Vv,_k,K6,hk,J6,vU,bU,vSe,bSe,EU,ESe,SSe,SU,TU,AU,IU,TSe,ASe,ISe,xSe,RSe,Foe,DSe,CSe,NSe,eP,xT,PSe,MSe,od,zoe,q6,fc,rs,Md,uu,xU,em,_h,RT,X6,Y6,_E,Af,G0,tP,gk,jv,nP,RU,LSe,DU,CU,Boe,Goe,Voe,NU,SR,PU,kSe,wSe,MU,TR,$6,OSe,yk,vk,bk,LU,kU,Q6,WSe,OBe=bt({"src/compiler/utilities.ts"(){"use strict";Zo(),H6=[],Vv="tslib",_k=160,K6=1e6,hk=z7e(),J6=bu(()=>new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast"]})),Iterator:new Map(Object.entries({es2015:Xe})),AsyncIterator:new Map(Object.entries({es2015:Xe})),Atomics:new Map(Object.entries({es2017:Xe})),SharedArrayBuffer:new Map(Object.entries({es2017:Xe})),AsyncIterable:new Map(Object.entries({es2018:Xe})),AsyncIterableIterator:new Map(Object.entries({es2018:Xe})),AsyncGenerator:new Map(Object.entries({es2018:Xe})),AsyncGeneratorFunction:new Map(Object.entries({es2018:Xe})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get","getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:Xe,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"]})),BigInt:new Map(Object.entries({es2020:Xe})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),BigInt64Array:new Map(Object.entries({es2020:Xe,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:Xe,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),vU=(e=>(e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",e))(vU||{}),bU=/^(\/\/\/\s*/,vSe=/^(\/\/\/\s*/,bSe=/^(\/\/\/\s*/,EU=/^(\/\/\/\s*/,ESe=/^\/\/\/\s*/,SSe=/^(\/\/\/\s*/,SU=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(SU||{}),TU=(e=>(e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator",e))(TU||{}),AU=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(AU||{}),IU=(e=>(e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",e))(IU||{}),TSe=/\$\{/g,ASe=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,ISe=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,xSe=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,RSe=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"})),Foe=/[^\u0000-\u007F]/g,DSe=/["\u0000-\u001f\u2028\u2029\u0085]/g,CSe=/['\u0000-\u001f\u2028\u2029\u0085]/g,NSe=new Map(Object.entries({'"':""","'":"'"})),eP=[""," "],xT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",PSe=`\r +`,MSe=` +`,od={getNodeConstructor:()=>loe,getTokenConstructor:()=>yBe,getIdentifierConstructor:()=>vBe,getPrivateIdentifierConstructor:()=>loe,getSourceFileConstructor:()=>loe,getSymbolConstructor:()=>_Be,getTypeConstructor:()=>hBe,getSignatureConstructor:()=>gBe,getSourceMapSourceConstructor:()=>bBe},zoe=[],fc={target:{dependencies:["module"],computeValue:e=>e.target??(e.module===100&&9||e.module===199&&99||1)},module:{dependencies:["target"],computeValue:e=>typeof e.module=="number"?e.module:fc.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(fc.module.computeValue(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1;break}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>e.moduleDetection||(fc.module.computeValue(e)===100||fc.module.computeValue(e)===199?3:2)},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!!(e.isolatedModules||e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(fc.module.computeValue(e)){case 100:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:fc.esModuleInterop.computeValue(e)||fc.module.computeValue(e)===4||fc.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{let t=fc.moduleResolution.computeValue(e);if(!OI(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{let t=fc.moduleResolution.computeValue(e);if(!OI(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>e.resolveJsonModule!==void 0?e.resolveJsonModule:fc.moduleResolution.computeValue(e)===100},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||fc.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&fc.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>e.allowJs===void 0?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>e.useDefineForClassFields===void 0?fc.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>du(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>du(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>du(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>du(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>du(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>du(e,"strictPropertyInitialization")},alwaysStrict:{dependencies:["strict"],computeValue:e=>du(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>du(e,"useUnknownInCatchVariables")}},rs=fc.target.computeValue,Md=fc.module.computeValue,uu=fc.moduleResolution.computeValue,xU=fc.moduleDetection.computeValue,em=fc.isolatedModules.computeValue,_h=fc.esModuleInterop.computeValue,RT=fc.allowSyntheticDefaultImports.computeValue,X6=fc.resolvePackageJsonExports.computeValue,Y6=fc.resolvePackageJsonImports.computeValue,_E=fc.resolveJsonModule.computeValue,Af=fc.declaration.computeValue,G0=fc.preserveConstEnums.computeValue,tP=fc.incremental.computeValue,gk=fc.declarationMap.computeValue,jv=fc.allowJs.computeValue,nP=fc.useDefineForClassFields.computeValue,RU=/[^\w\s/]/g,LSe=[42,63],DU=["node_modules","bower_components","jspm_packages"],CU=`(?!(${DU.join("|")})(/|$))`,Boe={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${CU}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Eoe(e,Boe.singleAsteriskRegexFragment)},Goe={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${CU}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Eoe(e,Goe.singleAsteriskRegexFragment)},Voe={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>Eoe(e,Voe.singleAsteriskRegexFragment)},NU={files:Boe,directories:Goe,exclude:Voe},SR=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],PU=pm(SR),kSe=[...SR,[".json"]],wSe=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],MU=[[".js",".jsx"],[".mjs"],[".cjs"]],TR=pm(MU),$6=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],OSe=[...$6,[".json"]],yk=[".d.ts",".d.cts",".d.mts"],vk=[".ts",".cts",".mts",".tsx"],bk=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],LU=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(LU||{}),kU=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],Q6={files:Xe,directories:Xe},WSe=String.prototype.replace}});function joe(){let e,t,r,i,o;return{createBaseSourceFileNode:s,createBaseIdentifierNode:l,createBasePrivateIdentifierNode:d,createBaseTokenNode:p,createBaseNode:h};function s(m){return new(o||(o=od.getSourceFileConstructor()))(m,-1,-1)}function l(m){return new(r||(r=od.getIdentifierConstructor()))(m,-1,-1)}function d(m){return new(i||(i=od.getPrivateIdentifierConstructor()))(m,-1,-1)}function p(m){return new(t||(t=od.getTokenConstructor()))(m,-1,-1)}function h(m){return new(e||(e=od.getNodeConstructor()))(m,-1,-1)}}var WBe=bt({"src/compiler/factory/baseNodeFactory.ts"(){"use strict";Zo()}});function Uoe(e){let t,r;return{getParenthesizeLeftSideOfBinaryForOperator:i,getParenthesizeRightSideOfBinaryForOperator:o,parenthesizeLeftSideOfBinary:h,parenthesizeRightSideOfBinary:m,parenthesizeExpressionOfComputedPropertyName:y,parenthesizeConditionOfConditionalExpression:E,parenthesizeBranchOfConditionalExpression:S,parenthesizeExpressionOfExportDefault:A,parenthesizeExpressionOfNew:N,parenthesizeLeftSideOfAccess:D,parenthesizeOperandOfPostfixUnary:w,parenthesizeOperandOfPrefixUnary:j,parenthesizeExpressionsOfCommaDelimitedList:K,parenthesizeExpressionForDisallowedComma:Y,parenthesizeExpressionOfExpressionStatement:B,parenthesizeConciseBodyOfArrowFunction:ce,parenthesizeCheckTypeOfConditionalType:z,parenthesizeExtendsTypeOfConditionalType:ee,parenthesizeConstituentTypesOfUnionType:ge,parenthesizeConstituentTypeOfUnionType:me,parenthesizeConstituentTypesOfIntersectionType:J,parenthesizeConstituentTypeOfIntersectionType:q,parenthesizeOperandOfTypeOperator:re,parenthesizeOperandOfReadonlyTypeOperator:pe,parenthesizeNonArrayTypeOfPostfixType:xe,parenthesizeElementTypesOfTupleType:fe,parenthesizeElementTypeOfTupleType:ne,parenthesizeTypeOfOptionalType:Ce,parenthesizeTypeArguments:Ie,parenthesizeLeadingTypeArgument:Ge};function i(De){t||(t=new Map);let Le=t.get(De);return Le||(Le=Et=>h(De,Et),t.set(De,Le)),Le}function o(De){r||(r=new Map);let Le=r.get(De);return Le||(Le=Et=>m(De,void 0,Et),r.set(De,Le)),Le}function s(De,Le,Et,be){let ze=X2(226,De),tt=Pj(226,De),Wt=gm(Le);if(!Et&&Le.kind===219&&ze>3)return!0;let _t=xN(Wt);switch(Zs(_t,ze)){case-1:return!(!Et&&tt===1&&Le.kind===229);case 1:return!1;case 0:if(Et)return tt===1;if(ur(Wt)&&Wt.operatorToken.kind===De){if(l(De))return!1;if(De===40){let ft=be?d(be):0;if(oN(ft)&&ft===d(Wt))return!1}}return Nj(Wt)===0}}function l(De){return De===42||De===52||De===51||De===53||De===28}function d(De){if(De=gm(De),oN(De.kind))return De.kind;if(De.kind===226&&De.operatorToken.kind===40){if(De.cachedLiteralKind!==void 0)return De.cachedLiteralKind;let Le=d(De.left),Et=oN(Le)&&Le===d(De.right)?Le:0;return De.cachedLiteralKind=Et,Et}return 0}function p(De,Le,Et,be){return gm(Le).kind===217?Le:s(De,Le,Et,be)?e.createParenthesizedExpression(Le):Le}function h(De,Le){return p(De,Le,!0)}function m(De,Le,Et){return p(De,Et,!1,Le)}function y(De){return yP(De)?e.createParenthesizedExpression(De):De}function E(De){let Le=X2(227,58),Et=gm(De),be=xN(Et);return Zs(be,Le)!==1?e.createParenthesizedExpression(De):De}function S(De){let Le=gm(De);return yP(Le)?e.createParenthesizedExpression(De):De}function A(De){let Le=gm(De),Et=yP(Le);if(!Et)switch(hR(Le,!1).kind){case 231:case 218:Et=!0}return Et?e.createParenthesizedExpression(De):De}function N(De){let Le=hR(De,!0);switch(Le.kind){case 213:return e.createParenthesizedExpression(De);case 214:return Le.arguments?De:e.createParenthesizedExpression(De)}return D(De)}function D(De,Le){let Et=gm(De);return Yu(Et)&&(Et.kind!==214||Et.arguments)&&(Le||!jd(Et))?De:at(e.createParenthesizedExpression(De),De)}function w(De){return Yu(De)?De:at(e.createParenthesizedExpression(De),De)}function j(De){return kV(De)?De:at(e.createParenthesizedExpression(De),De)}function K(De){let Le=Nc(De,Y);return at(e.createNodeArray(Le,De.hasTrailingComma),De)}function Y(De){let Le=gm(De),Et=xN(Le),be=X2(226,28);return Et>be?De:at(e.createParenthesizedExpression(De),De)}function B(De){let Le=gm(De);if(ra(Le)){let be=Le.expression,ze=gm(be).kind;if(ze===218||ze===219){let tt=e.updateCallExpression(Le,at(e.createParenthesizedExpression(be),be),Le.typeArguments,Le.arguments);return e.restoreOuterExpressions(De,tt,8)}}let Et=hR(Le,!1).kind;return Et===210||Et===218?at(e.createParenthesizedExpression(De),De):De}function ce(De){return!Ho(De)&&(yP(De)||hR(De,!1).kind===210)?at(e.createParenthesizedExpression(De),De):De}function z(De){switch(De.kind){case 184:case 185:case 194:return e.createParenthesizedType(De)}return De}function ee(De){switch(De.kind){case 194:return e.createParenthesizedType(De)}return De}function me(De){switch(De.kind){case 192:case 193:return e.createParenthesizedType(De)}return z(De)}function ge(De){return e.createNodeArray(Nc(De,me))}function q(De){switch(De.kind){case 192:case 193:return e.createParenthesizedType(De)}return me(De)}function J(De){return e.createNodeArray(Nc(De,q))}function re(De){switch(De.kind){case 193:return e.createParenthesizedType(De)}return q(De)}function pe(De){switch(De.kind){case 198:return e.createParenthesizedType(De)}return re(De)}function xe(De){switch(De.kind){case 195:case 198:case 186:return e.createParenthesizedType(De)}return re(De)}function fe(De){return e.createNodeArray(Nc(De,ne))}function ne(De){return he(De)?e.createParenthesizedType(De):De}function he(De){return MR(De)?De.postfix:RR(De)||gh(De)||xR(De)||PT(De)?he(De.type):ZI(De)?he(De.falseType):Kv(De)||QI(De)?he(Ja(De.types)):CT(De)?!!De.typeParameter.constraint&&he(De.typeParameter.constraint):!1}function Ce(De){return he(De)?e.createParenthesizedType(De):xe(De)}function Ge(De){return hre(De)&&De.typeParameters?e.createParenthesizedType(De):De}function ve(De,Le){return Le===0?Ge(De):De}function Ie(De){if(gt(De))return e.createNodeArray(Nc(De,ve))}}var wU,FBe=bt({"src/compiler/factory/parenthesizerRules.ts"(){"use strict";Zo(),wU={getParenthesizeLeftSideOfBinaryForOperator:e=>Qs,getParenthesizeRightSideOfBinaryForOperator:e=>Qs,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:Qs,parenthesizeConditionOfConditionalExpression:Qs,parenthesizeBranchOfConditionalExpression:Qs,parenthesizeExpressionOfExportDefault:Qs,parenthesizeExpressionOfNew:e=>ta(e,Yu),parenthesizeLeftSideOfAccess:e=>ta(e,Yu),parenthesizeOperandOfPostfixUnary:e=>ta(e,Yu),parenthesizeOperandOfPrefixUnary:e=>ta(e,kV),parenthesizeExpressionsOfCommaDelimitedList:e=>ta(e,b0),parenthesizeExpressionForDisallowedComma:Qs,parenthesizeExpressionOfExpressionStatement:Qs,parenthesizeConciseBodyOfArrowFunction:Qs,parenthesizeCheckTypeOfConditionalType:Qs,parenthesizeExtendsTypeOfConditionalType:Qs,parenthesizeConstituentTypesOfUnionType:e=>ta(e,b0),parenthesizeConstituentTypeOfUnionType:Qs,parenthesizeConstituentTypesOfIntersectionType:e=>ta(e,b0),parenthesizeConstituentTypeOfIntersectionType:Qs,parenthesizeOperandOfTypeOperator:Qs,parenthesizeOperandOfReadonlyTypeOperator:Qs,parenthesizeNonArrayTypeOfPostfixType:Qs,parenthesizeElementTypesOfTupleType:e=>ta(e,b0),parenthesizeElementTypeOfTupleType:Qs,parenthesizeTypeOfOptionalType:Qs,parenthesizeTypeArguments:e=>e&&ta(e,b0),parenthesizeLeadingTypeArgument:Qs}}});function Hoe(e){return{convertToFunctionBlock:t,convertToFunctionExpression:r,convertToClassExpression:i,convertToArrayAssignmentElement:o,convertToObjectAssignmentElement:s,convertToAssignmentPattern:l,convertToObjectAssignmentPattern:d,convertToArrayAssignmentPattern:p,convertToAssignmentElementTarget:h};function t(m,y){if(Ho(m))return m;let E=e.createReturnStatement(m);at(E,m);let S=e.createBlock([E],y);return at(S,m),S}function r(m){var y;if(!m.body)return R.fail("Cannot convert a FunctionDeclaration without a body");let E=e.createFunctionExpression((y=v0(m))==null?void 0:y.filter(S=>!JI(S)&&!w4(S)),m.asteriskToken,m.name,m.typeParameters,m.parameters,m.type,m.body);return Rr(E,m),at(E,m),rP(m)&&t4(E,!0),E}function i(m){var y;let E=e.createClassExpression((y=m.modifiers)==null?void 0:y.filter(S=>!JI(S)&&!w4(S)),m.name,m.typeParameters,m.heritageClauses,m.members);return Rr(E,m),at(E,m),rP(m)&&t4(E,!0),E}function o(m){if(Xa(m)){if(m.dotDotDotToken)return R.assertNode(m.name,Fe),Rr(at(e.createSpreadElement(m.name),m),m);let y=h(m.name);return m.initializer?Rr(at(e.createAssignment(y,m.initializer),m),m):y}return ta(m,ht)}function s(m){if(Xa(m)){if(m.dotDotDotToken)return R.assertNode(m.name,Fe),Rr(at(e.createSpreadAssignment(m.name),m),m);if(m.propertyName){let y=h(m.name);return Rr(at(e.createPropertyAssignment(m.propertyName,m.initializer?e.createAssignment(y,m.initializer):y),m),m)}return R.assertNode(m.name,Fe),Rr(at(e.createShorthandPropertyAssignment(m.name,m.initializer),m),m)}return ta(m,Ng)}function l(m){switch(m.kind){case 207:case 209:return p(m);case 206:case 210:return d(m)}}function d(m){return tm(m)?Rr(at(e.createObjectLiteralExpression(mn(m.elements,s)),m),m):ta(m,La)}function p(m){return j0(m)?Rr(at(e.createArrayLiteralExpression(mn(m.elements,o)),m),m):ta(m,pu)}function h(m){return $o(m)?l(m):ta(m,ht)}}var OU,zBe=bt({"src/compiler/factory/nodeConverters.ts"(){"use strict";Zo(),OU={convertToFunctionBlock:jo,convertToFunctionExpression:jo,convertToClassExpression:jo,convertToArrayAssignmentElement:jo,convertToObjectAssignmentElement:jo,convertToAssignmentPattern:jo,convertToObjectAssignmentPattern:jo,convertToArrayAssignmentPattern:jo,convertToAssignmentElementTarget:jo}}});function FSe(e){Joe.push(e)}function Ek(e,t){let r=e&8?Qs:Rr,i=bu(()=>e&1?wU:Uoe(w)),o=bu(()=>e&2?OU:Hoe(w)),s=ah(v=>(C,F)=>Se(C,v,F)),l=ah(v=>C=>rt(v,C)),d=ah(v=>C=>zt(C,v)),p=ah(v=>()=>GD(v)),h=ah(v=>C=>mA(v,C)),m=ah(v=>(C,F)=>bS(v,C,F)),y=ah(v=>(C,F)=>VD(v,C,F)),E=ah(v=>(C,F)=>Xs(v,C,F)),S=ah(v=>(C,F)=>UE(v,C,F)),A=ah(v=>(C,F,le)=>Lf(v,C,F,le)),N=ah(v=>(C,F,le)=>hb(v,C,F,le)),D=ah(v=>(C,F,le,Ke)=>gb(v,C,F,le,Ke)),w={get parenthesizer(){return i()},get converters(){return o()},baseFactory:t,flags:e,createNodeArray:j,createNumericLiteral:ce,createBigIntLiteral:z,createStringLiteral:me,createStringLiteralFromNode:ge,createRegularExpressionLiteral:q,createLiteralLikeNode:J,createIdentifier:xe,createTempVariable:fe,createLoopVariable:ne,createUniqueName:he,getGeneratedNameForNode:Ce,createPrivateIdentifier:ve,createUniquePrivateName:De,getGeneratedPrivateNameForNode:Le,createToken:be,createSuper:ze,createThis:tt,createNull:Wt,createTrue:_t,createFalse:Je,createModifier:ft,createModifiersFromModifierFlags:Zt,createQualifiedName:en,updateQualifiedName:Dn,createComputedPropertyName:Kn,updateComputedPropertyName:pn,createTypeParameterDeclaration:Yt,updateTypeParameterDeclaration:qt,createParameterDeclaration:hi,updateParameterDeclaration:uo,createDecorator:Li,updateDecorator:Eo,createPropertySignature:Qn,updatePropertySignature:Ur,createPropertyDeclaration:on,updatePropertyDeclaration:Ye,createMethodSignature:Ot,updateMethodSignature:In,createMethodDeclaration:si,updateMethodDeclaration:yi,createConstructorDeclaration:vn,updateConstructorDeclaration:kn,createGetAccessorDeclaration:ct,updateGetAccessorDeclaration:lt,createSetAccessorDeclaration:se,updateSetAccessorDeclaration:ke,createCallSignature:G,updateCallSignature:et,createConstructSignature:Tt,updateConstructSignature:He,createIndexSignature:pt,updateIndexSignature:Ft,createClassStaticBlockDeclaration:Ao,updateClassStaticBlockDeclaration:da,createTemplateLiteralTypeSpan:hn,updateTemplateLiteralTypeSpan:dn,createKeywordTypeNode:un,createTypePredicateNode:U,updateTypePredicateNode:Me,createTypeReferenceNode:Pt,updateTypeReferenceNode:k,createFunctionTypeNode:ie,updateFunctionTypeNode:H,createConstructorTypeNode:We,updateConstructorTypeNode:Ct,createTypeQueryNode:wn,updateTypeQueryNode:Bn,createTypeLiteralNode:gi,updateTypeLiteralNode:xi,createArrayTypeNode:er,updateArrayTypeNode:Fr,createTupleTypeNode:ho,updateTupleTypeNode:Pi,createNamedTupleMember:Ri,updateNamedTupleMember:Kr,createOptionalTypeNode:Io,updateOptionalTypeNode:xn,createRestTypeNode:ks,updateRestTypeNode:$l,createUnionTypeNode:zs,updateUnionTypeNode:ml,createIntersectionTypeNode:sd,updateIntersectionTypeNode:mo,createConditionalTypeNode:sa,updateConditionalTypeNode:ld,createInferTypeNode:Es,updateInferTypeNode:Na,createImportTypeNode:ac,updateImportTypeNode:xl,createParenthesizedType:al,updateParenthesizedType:Mo,createThisTypeNode:tn,createTypeOperatorNode:Bs,updateTypeOperatorNode:ed,createIndexedAccessTypeNode:cd,updateIndexedAccessTypeNode:Ep,createMappedTypeNode:Ds,updateMappedTypeNode:Ac,createLiteralTypeNode:de,updateLiteralTypeNode:$,createTemplateLiteralType:ul,updateTemplateLiteralType:Nf,createObjectBindingPattern:Pe,updateObjectBindingPattern:yt,createArrayBindingPattern:cn,updateArrayBindingPattern:vr,createBindingElement:fr,updateBindingElement:zr,createArrayLiteralExpression:Di,updateArrayLiteralExpression:Cr,createObjectLiteralExpression:Jo,updateObjectLiteralExpression:vl,createPropertyAccessExpression:e&4?(v,C)=>lr(Gs(v,C),262144):Gs,updatePropertyAccessExpression:hc,createPropertyAccessChain:e&4?(v,C,F)=>lr(vs(v,C,F),262144):vs,updatePropertyAccessChain:Uc,createElementAccessExpression:wc,updateElementAccessExpression:im,createElementAccessChain:mu,updateElementAccessChain:Re,createCallExpression:Un,updateCallExpression:go,createCallChain:qo,updateCallChain:Qo,createNewExpression:Ql,updateNewExpression:gc,createTaggedTemplateExpression:sl,updateTaggedTemplateExpression:_l,createTypeAssertion:Gl,updateTypeAssertion:Zl,createParenthesizedExpression:Hc,updateParenthesizedExpression:cf,createFunctionExpression:zu,updateFunctionExpression:Ru,createArrowFunction:Pf,updateArrowFunction:z_,createDeleteExpression:Ih,updateDeleteExpression:Ug,createTypeOfExpression:Wd,updateTypeOfExpression:Hg,createVoidExpression:Sp,updateVoidExpression:cg,createAwaitExpression:Bu,updateAwaitExpression:Z,createPrefixUnaryExpression:rt,updatePrefixUnaryExpression:wt,createPostfixUnaryExpression:zt,updatePostfixUnaryExpression:O,createBinaryExpression:Se,updateBinaryExpression:jt,createConditionalExpression:Zn,updateConditionalExpression:ii,createTemplateExpression:Yr,updateTemplateExpression:no,createTemplateHead:Tp,createTemplateMiddle:Gu,createTemplateTail:ab,createNoSubstitutionTemplateLiteral:cs,createTemplateLiteralLikeNode:Ic,createYieldExpression:Dm,updateYieldExpression:Cm,createSpreadElement:Ui,updateSpreadElement:Kg,createClassExpression:Qy,updateClassExpression:Nm,createOmittedExpression:fS,createExpressionWithTypeArguments:mS,updateExpressionWithTypeArguments:df,createAsExpression:B_,updateAsExpression:uf,createNonNullExpression:Jg,updateNonNullExpression:we,createSatisfiesExpression:qe,updateSatisfiesExpression:Mt,createNonNullChain:Bt,updateNonNullChain:_n,createMetaProperty:Jn,updateMetaProperty:fn,createTemplateSpan:qn,updateTemplateSpan:mi,createSemicolonClassElement:or,createBlock:ni,updateBlock:dr,createVariableStatement:Xo,updateVariableStatement:Ha,createEmptyStatement:Yd,createExpressionStatement:ud,updateExpressionStatement:qg,createIfStatement:kE,updateIfStatement:w1,createDoStatement:wE,updateDoStatement:LD,createWhileStatement:kD,updateWhileStatement:wD,createForStatement:oA,updateForStatement:_S,createForInStatement:O1,updateForInStatement:OD,createForOfStatement:W1,updateForOfStatement:F1,createContinueStatement:z1,updateContinueStatement:B1,createBreakStatement:aA,updateBreakStatement:G1,createReturnStatement:hS,updateReturnStatement:gS,createWithStatement:sb,updateWithStatement:lb,createSwitchStatement:dg,updateSwitchStatement:OE,createLabeledStatement:Qa,updateLabeledStatement:sA,createThrowStatement:WD,updateThrowStatement:WE,createTryStatement:Xg,updateTryStatement:xh,createDebuggerStatement:Mf,createVariableDeclaration:Vu,updateVariableDeclaration:Ap,createVariableDeclarationList:np,updateVariableDeclarationList:Zy,createFunctionDeclaration:lA,updateFunctionDeclaration:FD,createClassDeclaration:cb,updateClassDeclaration:FE,createInterfaceDeclaration:j1,updateInterfaceDeclaration:yc,createTypeAliasDeclaration:ev,updateTypeAliasDeclaration:U1,createEnumDeclaration:e_,updateEnumDeclaration:cA,createModuleDeclaration:Ve,updateModuleDeclaration:t_,createModuleBlock:pd,updateModuleBlock:zE,createCaseBlock:H1,updateCaseBlock:db,createNamespaceExportDeclaration:tv,updateNamespaceExportDeclaration:nv,createImportEqualsDeclaration:Ka,updateImportEqualsDeclaration:n_,createImportDeclaration:dA,updateImportDeclaration:uA,createImportClause:BE,updateImportClause:pA,createAssertClause:om,updateAssertClause:am,createAssertEntry:Yg,updateAssertEntry:K1,createImportTypeAssertionContainer:r_,updateImportTypeAssertionContainer:zD,createImportAttributes:yS,updateImportAttributes:qi,createImportAttribute:Zr,updateImportAttribute:Rh,createNamespaceImport:ju,updateNamespaceImport:TM,createNamespaceExport:$g,updateNamespaceExport:AM,createNamedImports:ub,updateNamedImports:hl,createImportSpecifier:Bp,updateImportSpecifier:ug,createExportAssignment:sm,updateExportAssignment:pb,createExportDeclaration:Pm,updateExportDeclaration:Qg,createNamedExports:fA,updateNamedExports:pg,createExportSpecifier:J1,updateExportSpecifier:fg,createMissingDeclaration:G_,createExternalModuleReference:rv,updateExternalModuleReference:BD,get createJSDocAllType(){return p(319)},get createJSDocUnknownType(){return p(320)},get createJSDocNonNullableType(){return y(322)},get updateJSDocNonNullableType(){return E(322)},get createJSDocNullableType(){return y(321)},get updateJSDocNullableType(){return E(321)},get createJSDocOptionalType(){return h(323)},get updateJSDocOptionalType(){return m(323)},get createJSDocVariadicType(){return h(325)},get updateJSDocVariadicType(){return m(325)},get createJSDocNamepathType(){return h(326)},get updateJSDocNamepathType(){return m(326)},createJSDocFunctionType:_A,updateJSDocFunctionType:Mm,createJSDocTypeLiteral:fb,updateJSDocTypeLiteral:jD,createJSDocTypeExpression:hA,updateJSDocTypeExpression:IM,createJSDocSignature:mr,updateJSDocSignature:td,createJSDocTemplateTag:V_,updateJSDocTemplateTag:ar,createJSDocTypedefTag:gA,updateJSDocTypedefTag:GE,createJSDocParameterTag:Kc,updateJSDocParameterTag:Dh,createJSDocPropertyTag:Lm,updateJSDocPropertyTag:ES,createJSDocCallbackTag:SS,updateJSDocCallbackTag:mb,createJSDocOverloadTag:Zg,updateJSDocOverloadTag:yA,createJSDocAugmentsTag:km,updateJSDocAugmentsTag:VE,createJSDocImplementsTag:mg,updateJSDocImplementsTag:rp,createJSDocSeeTag:_b,updateJSDocSeeTag:q1,createJSDocNameReference:jE,updateJSDocNameReference:UD,createJSDocMemberName:TS,updateJSDocMemberName:vA,createJSDocLink:Gp,updateJSDocLink:bA,createJSDocLinkCode:Vl,updateJSDocLinkCode:Oc,createJSDocLinkPlain:EA,updateJSDocLinkPlain:Ed,get createJSDocTypeTag(){return N(351)},get updateJSDocTypeTag(){return D(351)},get createJSDocReturnTag(){return N(349)},get updateJSDocReturnTag(){return D(349)},get createJSDocThisTag(){return N(350)},get updateJSDocThisTag(){return D(350)},get createJSDocAuthorTag(){return S(337)},get updateJSDocAuthorTag(){return A(337)},get createJSDocClassTag(){return S(339)},get updateJSDocClassTag(){return A(339)},get createJSDocPublicTag(){return S(340)},get updateJSDocPublicTag(){return A(340)},get createJSDocPrivateTag(){return S(341)},get updateJSDocPrivateTag(){return A(341)},get createJSDocProtectedTag(){return S(342)},get updateJSDocProtectedTag(){return A(342)},get createJSDocReadonlyTag(){return S(343)},get updateJSDocReadonlyTag(){return A(343)},get createJSDocOverrideTag(){return S(344)},get updateJSDocOverrideTag(){return A(344)},get createJSDocDeprecatedTag(){return S(338)},get updateJSDocDeprecatedTag(){return A(338)},get createJSDocThrowsTag(){return N(356)},get updateJSDocThrowsTag(){return D(356)},get createJSDocSatisfiesTag(){return N(357)},get updateJSDocSatisfiesTag(){return D(357)},createJSDocEnumTag:Vp,updateJSDocEnumTag:SA,createJSDocUnknownTag:nd,updateJSDocUnknownTag:X1,createJSDocText:TA,updateJSDocText:Vs,createJSDocComment:HD,updateJSDocComment:HE,createJsxElement:AS,updateJsxElement:xM,createJsxSelfClosingElement:_u,updateJsxSelfClosingElement:ey,createJsxOpeningElement:j_,updateJsxOpeningElement:Y1,createJsxClosingElement:Ip,updateJsxClosingElement:$1,createJsxFragment:ip,createJsxText:ov,updateJsxText:AA,createJsxOpeningFragment:KD,createJsxJsxClosingFragment:JD,updateJsxFragment:Q1,createJsxAttribute:IA,updateJsxAttribute:qD,createJsxAttributes:yb,updateJsxAttributes:xp,createJsxSpreadAttribute:Ch,updateJsxSpreadAttribute:XD,createJsxExpression:xA,updateJsxExpression:ts,createJsxNamespacedName:Sr,updateJsxNamespacedName:ff,createCaseClause:Du,updateCaseClause:IS,createDefaultClause:YD,updateDefaultClause:KE,createHeritageClause:xS,updateHeritageClause:RA,createCatchClause:_g,updateCatchClause:i_,createPropertyAssignment:mf,updatePropertyAssignment:wm,createShorthandPropertyAssignment:hg,updateShorthandPropertyAssignment:gg,createSpreadAssignment:sc,updateSpreadAssignment:$D,createEnumMember:kf,updateEnumMember:Nh,createSourceFile:_f,updateSourceFile:Cs,createRedirectedSourceFile:RS,createBundle:DS,updateBundle:CS,createUnparsedSource:ny,createUnparsedPrologue:qE,createUnparsedPrepend:I,createUnparsedTextLike:oe,createUnparsedSyntheticReference:dt,createInputFiles:nn,createSyntheticExpression:Lr,createSyntaxList:wi,createNotEmittedStatement:vi,createPartiallyEmittedExpression:Zi,updatePartiallyEmittedExpression:ma,createCommaListExpression:Cu,updateCommaListExpression:wf,createSyntheticReferenceExpression:bb,updateSyntheticReferenceExpression:Si,cloneNode:Sb,get createComma(){return s(28)},get createAssignment(){return s(64)},get createLogicalOr(){return s(57)},get createLogicalAnd(){return s(56)},get createBitwiseOr(){return s(52)},get createBitwiseXor(){return s(53)},get createBitwiseAnd(){return s(51)},get createStrictEquality(){return s(37)},get createStrictInequality(){return s(38)},get createEquality(){return s(35)},get createInequality(){return s(36)},get createLessThan(){return s(30)},get createLessThanEquals(){return s(33)},get createGreaterThan(){return s(32)},get createGreaterThanEquals(){return s(34)},get createLeftShift(){return s(48)},get createRightShift(){return s(49)},get createUnsignedRightShift(){return s(50)},get createAdd(){return s(40)},get createSubtract(){return s(41)},get createMultiply(){return s(42)},get createDivide(){return s(44)},get createModulo(){return s(45)},get createExponent(){return s(43)},get createPrefixPlus(){return l(40)},get createPrefixMinus(){return l(41)},get createPrefixIncrement(){return l(46)},get createPrefixDecrement(){return l(47)},get createBitwiseNot(){return l(55)},get createLogicalNot(){return l(54)},get createPostfixIncrement(){return d(46)},get createPostfixDecrement(){return d(47)},createImmediatelyInvokedFunctionExpression:CA,createImmediatelyInvokedArrowFunction:NS,createVoidZero:U_,createExportDefault:Mh,createExternalModuleExport:QD,createTypeCheck:NA,createIsNotTypeCheck:UB,createMethodCall:Tb,createGlobalMethodCall:o_,createFunctionBindCall:c8,createFunctionCallCall:d8,createFunctionApplyCall:XE,createArraySliceCall:RM,createArrayConcatCall:Lh,createObjectDefinePropertyCall:nx,createObjectGetOwnPropertyDescriptorCall:u8,createReflectGetCall:H_,createReflectSetCall:X,createPropertyDescriptor:Ue,createCallBinding:Ci,createAssignmentTargetWrapper:_i,inlineExpressions:Xi,getInternalName:Is,getLocalName:$a,getExportName:Of,getDeclarationName:K_,getNamespaceMemberName:yg,getExternalModuleOrNamespaceExportName:ry,restoreOuterExpressions:Ut,restoreEnclosingLabel:Or,createUseStrictPrologue:op,copyPrologue:iy,copyStandardPrologue:PA,copyCustomPrologue:ZD,ensureUseStrict:DM,liftToBlock:CM,mergeLexicalEnvironment:oy,replaceModifiers:Ib,replaceDecoratorsAndModifiers:eC,replacePropertyName:jp};return gn(Joe,v=>v(w)),w;function j(v,C){if(v===void 0||v===Xe)v=[];else if(b0(v)){if(C===void 0||v.hasTrailingComma===C)return v.transformFlags===void 0&&zSe(v),R.attachNodeArrayDebugInfo(v),v;let Ke=v.slice();return Ke.pos=v.pos,Ke.end=v.end,Ke.hasTrailingComma=C,Ke.transformFlags=v.transformFlags,R.attachNodeArrayDebugInfo(Ke),Ke}let F=v.length,le=F>=1&&F<=4?v.slice():v;return le.pos=-1,le.end=-1,le.hasTrailingComma=!!C,le.transformFlags=0,zSe(le),R.attachNodeArrayDebugInfo(le),le}function K(v){return t.createBaseNode(v)}function Y(v){let C=K(v);return C.symbol=void 0,C.localSymbol=void 0,C}function B(v,C){return v!==C&&(v.typeArguments=C.typeArguments),tr(v,C)}function ce(v,C=0){let F=typeof v=="number"?v+"":v;R.assert(F.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");let le=Y(9);return le.text=F,le.numericLiteralFlags=C,C&384&&(le.transformFlags|=1024),le}function z(v){let C=Et(10);return C.text=typeof v=="string"?v:F0(v)+"n",C.transformFlags|=32,C}function ee(v,C){let F=Y(11);return F.text=v,F.singleQuote=C,F}function me(v,C,F){let le=ee(v,C);return le.hasExtendedUnicodeEscape=F,F&&(le.transformFlags|=1024),le}function ge(v){let C=ee(Xf(v),void 0);return C.textSourceNode=v,C}function q(v){let C=Et(14);return C.text=v,C}function J(v,C){switch(v){case 9:return ce(C,0);case 10:return z(C);case 11:return me(C,void 0);case 12:return ov(C,!1);case 13:return ov(C,!0);case 14:return q(C);case 15:return Ic(v,C,void 0,0)}}function re(v){let C=t.createBaseIdentifierNode(80);return C.escapedText=v,C.jsDoc=void 0,C.flowNode=void 0,C.symbol=void 0,C}function pe(v,C,F,le){let Ke=re(pl(v));return Rk(Ke,{flags:C,id:e4,prefix:F,suffix:le}),e4++,Ke}function xe(v,C,F){C===void 0&&v&&(C=y0(v)),C===80&&(C=void 0);let le=re(pl(v));return F&&(le.flags|=256),le.escapedText==="await"&&(le.transformFlags|=67108864),le.flags&256&&(le.transformFlags|=1024),le}function fe(v,C,F,le){let Ke=1;C&&(Ke|=8);let Ht=pe("",Ke,F,le);return v&&v(Ht),Ht}function ne(v){let C=2;return v&&(C|=8),pe("",C,void 0,void 0)}function he(v,C=0,F,le){return R.assert(!(C&7),"Argument out of range: flags"),R.assert((C&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),pe(v,3|C,F,le)}function Ce(v,C=0,F,le){R.assert(!(C&7),"Argument out of range: flags");let Ke=v?Kh(v)?bE(!1,F,v,le,yr):`generated@${is(v)}`:"";(F||le)&&(C|=16);let Ht=pe(Ke,4|C,F,le);return Ht.original=v,Ht}function Ge(v){let C=t.createBasePrivateIdentifierNode(81);return C.escapedText=v,C.transformFlags|=16777216,C}function ve(v){return ao(v,"#")||R.fail("First character of private identifier must be #: "+v),Ge(pl(v))}function Ie(v,C,F,le){let Ke=Ge(pl(v));return Rk(Ke,{flags:C,id:e4,prefix:F,suffix:le}),e4++,Ke}function De(v,C,F){v&&!ao(v,"#")&&R.fail("First character of private identifier must be #: "+v);let le=8|(v?3:1);return Ie(v??"",le,C,F)}function Le(v,C,F){let le=Kh(v)?bE(!0,C,v,F,yr):`#generated@${is(v)}`,Ht=Ie(le,4|(C||F?16:0),C,F);return Ht.original=v,Ht}function Et(v){return t.createBaseTokenNode(v)}function be(v){R.assert(v>=0&&v<=165,"Invalid token"),R.assert(v<=15||v>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),R.assert(v<=9||v>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),R.assert(v!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let C=Et(v),F=0;switch(v){case 134:F=384;break;case 160:F=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:F=1;break;case 108:F=134218752,C.flowNode=void 0;break;case 126:F=1024;break;case 129:F=16777216;break;case 110:F=16384,C.flowNode=void 0;break}return F&&(C.transformFlags|=F),C}function ze(){return be(108)}function tt(){return be(110)}function Wt(){return be(106)}function _t(){return be(112)}function Je(){return be(97)}function ft(v){return be(v)}function Zt(v){let C=[];return v&32&&C.push(ft(95)),v&128&&C.push(ft(138)),v&2048&&C.push(ft(90)),v&4096&&C.push(ft(87)),v&1&&C.push(ft(125)),v&2&&C.push(ft(123)),v&4&&C.push(ft(124)),v&64&&C.push(ft(128)),v&256&&C.push(ft(126)),v&16&&C.push(ft(164)),v&8&&C.push(ft(148)),v&512&&C.push(ft(129)),v&1024&&C.push(ft(134)),v&8192&&C.push(ft(103)),v&16384&&C.push(ft(147)),C.length?C:void 0}function en(v,C){let F=K(166);return F.left=v,F.right=lc(C),F.transformFlags|=br(F.left)|Sk(F.right),F.flowNode=void 0,F}function Dn(v,C,F){return v.left!==C||v.right!==F?tr(en(C,F),v):v}function Kn(v){let C=K(167);return C.expression=i().parenthesizeExpressionOfComputedPropertyName(v),C.transformFlags|=br(C.expression)|1024|131072,C}function pn(v,C){return v.expression!==C?tr(Kn(C),v):v}function Yt(v,C,F,le){let Ke=Y(168);return Ke.modifiers=Ga(v),Ke.name=lc(C),Ke.constraint=F,Ke.default=le,Ke.transformFlags=1,Ke.expression=void 0,Ke.jsDoc=void 0,Ke}function qt(v,C,F,le,Ke){return v.modifiers!==C||v.name!==F||v.constraint!==le||v.default!==Ke?tr(Yt(C,F,le,Ke),v):v}function hi(v,C,F,le,Ke,Ht){let hr=Y(169);return hr.modifiers=Ga(v),hr.dotDotDotToken=C,hr.name=lc(F),hr.questionToken=le,hr.type=Ke,hr.initializer=rx(Ht),w0(hr.name)?hr.transformFlags=1:hr.transformFlags=Ua(hr.modifiers)|br(hr.dotDotDotToken)|Uv(hr.name)|br(hr.questionToken)|br(hr.initializer)|(hr.questionToken??hr.type?1:0)|(hr.dotDotDotToken??hr.initializer?1024:0)|(x_(hr.modifiers)&31?8192:0),hr.jsDoc=void 0,hr}function uo(v,C,F,le,Ke,Ht,hr){return v.modifiers!==C||v.dotDotDotToken!==F||v.name!==le||v.questionToken!==Ke||v.type!==Ht||v.initializer!==hr?tr(hi(C,F,le,Ke,Ht,hr),v):v}function Li(v){let C=K(170);return C.expression=i().parenthesizeLeftSideOfAccess(v,!1),C.transformFlags|=br(C.expression)|1|8192|33554432,C}function Eo(v,C){return v.expression!==C?tr(Li(C),v):v}function Qn(v,C,F,le){let Ke=Y(171);return Ke.modifiers=Ga(v),Ke.name=lc(C),Ke.type=le,Ke.questionToken=F,Ke.transformFlags=1,Ke.initializer=void 0,Ke.jsDoc=void 0,Ke}function Ur(v,C,F,le,Ke){return v.modifiers!==C||v.name!==F||v.questionToken!==le||v.type!==Ke?Er(Qn(C,F,le,Ke),v):v}function Er(v,C){return v!==C&&(v.initializer=C.initializer),tr(v,C)}function on(v,C,F,le,Ke){let Ht=Y(172);Ht.modifiers=Ga(v),Ht.name=lc(C),Ht.questionToken=F&&Hv(F)?F:void 0,Ht.exclamationToken=F&&Mk(F)?F:void 0,Ht.type=le,Ht.initializer=rx(Ke);let hr=Ht.flags&33554432||x_(Ht.modifiers)&128;return Ht.transformFlags=Ua(Ht.modifiers)|Uv(Ht.name)|br(Ht.initializer)|(hr||Ht.questionToken||Ht.exclamationToken||Ht.type?1:0)|(Ya(Ht.name)||x_(Ht.modifiers)&256&&Ht.initializer?8192:0)|16777216,Ht.jsDoc=void 0,Ht}function Ye(v,C,F,le,Ke,Ht){return v.modifiers!==C||v.name!==F||v.questionToken!==(le!==void 0&&Hv(le)?le:void 0)||v.exclamationToken!==(le!==void 0&&Mk(le)?le:void 0)||v.type!==Ke||v.initializer!==Ht?tr(on(C,F,le,Ke,Ht),v):v}function Ot(v,C,F,le,Ke,Ht){let hr=Y(173);return hr.modifiers=Ga(v),hr.name=lc(C),hr.questionToken=F,hr.typeParameters=Ga(le),hr.parameters=Ga(Ke),hr.type=Ht,hr.transformFlags=1,hr.jsDoc=void 0,hr.locals=void 0,hr.nextContainer=void 0,hr.typeArguments=void 0,hr}function In(v,C,F,le,Ke,Ht,hr){return v.modifiers!==C||v.name!==F||v.questionToken!==le||v.typeParameters!==Ke||v.parameters!==Ht||v.type!==hr?B(Ot(C,F,le,Ke,Ht,hr),v):v}function si(v,C,F,le,Ke,Ht,hr,eo){let js=Y(174);if(js.modifiers=Ga(v),js.asteriskToken=C,js.name=lc(F),js.questionToken=le,js.exclamationToken=void 0,js.typeParameters=Ga(Ke),js.parameters=j(Ht),js.type=hr,js.body=eo,!js.body)js.transformFlags=1;else{let a_=x_(js.modifiers)&1024,Rb=!!js.asteriskToken,Om=a_&&Rb;js.transformFlags=Ua(js.modifiers)|br(js.asteriskToken)|Uv(js.name)|br(js.questionToken)|Ua(js.typeParameters)|Ua(js.parameters)|br(js.type)|br(js.body)&-67108865|(Om?128:a_?256:Rb?2048:0)|(js.questionToken||js.typeParameters||js.type?1:0)|1024}return js.typeArguments=void 0,js.jsDoc=void 0,js.locals=void 0,js.nextContainer=void 0,js.flowNode=void 0,js.endFlowNode=void 0,js.returnFlowNode=void 0,js}function yi(v,C,F,le,Ke,Ht,hr,eo,js){return v.modifiers!==C||v.asteriskToken!==F||v.name!==le||v.questionToken!==Ke||v.typeParameters!==Ht||v.parameters!==hr||v.type!==eo||v.body!==js?$i(si(C,F,le,Ke,Ht,hr,eo,js),v):v}function $i(v,C){return v!==C&&(v.exclamationToken=C.exclamationToken),tr(v,C)}function Ao(v){let C=Y(175);return C.body=v,C.transformFlags=br(v)|16777216,C.modifiers=void 0,C.jsDoc=void 0,C.locals=void 0,C.nextContainer=void 0,C.endFlowNode=void 0,C.returnFlowNode=void 0,C}function da(v,C){return v.body!==C?Ba(Ao(C),v):v}function Ba(v,C){return v!==C&&(v.modifiers=C.modifiers),tr(v,C)}function vn(v,C,F){let le=Y(176);return le.modifiers=Ga(v),le.parameters=j(C),le.body=F,le.transformFlags=Ua(le.modifiers)|Ua(le.parameters)|br(le.body)&-67108865|1024,le.typeParameters=void 0,le.type=void 0,le.typeArguments=void 0,le.jsDoc=void 0,le.locals=void 0,le.nextContainer=void 0,le.endFlowNode=void 0,le.returnFlowNode=void 0,le}function kn(v,C,F,le){return v.modifiers!==C||v.parameters!==F||v.body!==le?Be(vn(C,F,le),v):v}function Be(v,C){return v!==C&&(v.typeParameters=C.typeParameters,v.type=C.type),B(v,C)}function ct(v,C,F,le,Ke){let Ht=Y(177);return Ht.modifiers=Ga(v),Ht.name=lc(C),Ht.parameters=j(F),Ht.type=le,Ht.body=Ke,Ht.body?Ht.transformFlags=Ua(Ht.modifiers)|Uv(Ht.name)|Ua(Ht.parameters)|br(Ht.type)|br(Ht.body)&-67108865|(Ht.type?1:0):Ht.transformFlags=1,Ht.typeArguments=void 0,Ht.typeParameters=void 0,Ht.jsDoc=void 0,Ht.locals=void 0,Ht.nextContainer=void 0,Ht.flowNode=void 0,Ht.endFlowNode=void 0,Ht.returnFlowNode=void 0,Ht}function lt(v,C,F,le,Ke,Ht){return v.modifiers!==C||v.name!==F||v.parameters!==le||v.type!==Ke||v.body!==Ht?Dt(ct(C,F,le,Ke,Ht),v):v}function Dt(v,C){return v!==C&&(v.typeParameters=C.typeParameters),B(v,C)}function se(v,C,F,le){let Ke=Y(178);return Ke.modifiers=Ga(v),Ke.name=lc(C),Ke.parameters=j(F),Ke.body=le,Ke.body?Ke.transformFlags=Ua(Ke.modifiers)|Uv(Ke.name)|Ua(Ke.parameters)|br(Ke.body)&-67108865|(Ke.type?1:0):Ke.transformFlags=1,Ke.typeArguments=void 0,Ke.typeParameters=void 0,Ke.type=void 0,Ke.jsDoc=void 0,Ke.locals=void 0,Ke.nextContainer=void 0,Ke.flowNode=void 0,Ke.endFlowNode=void 0,Ke.returnFlowNode=void 0,Ke}function ke(v,C,F,le,Ke){return v.modifiers!==C||v.name!==F||v.parameters!==le||v.body!==Ke?st(se(C,F,le,Ke),v):v}function st(v,C){return v!==C&&(v.typeParameters=C.typeParameters,v.type=C.type),B(v,C)}function G(v,C,F){let le=Y(179);return le.typeParameters=Ga(v),le.parameters=Ga(C),le.type=F,le.transformFlags=1,le.jsDoc=void 0,le.locals=void 0,le.nextContainer=void 0,le.typeArguments=void 0,le}function et(v,C,F,le){return v.typeParameters!==C||v.parameters!==F||v.type!==le?B(G(C,F,le),v):v}function Tt(v,C,F){let le=Y(180);return le.typeParameters=Ga(v),le.parameters=Ga(C),le.type=F,le.transformFlags=1,le.jsDoc=void 0,le.locals=void 0,le.nextContainer=void 0,le.typeArguments=void 0,le}function He(v,C,F,le){return v.typeParameters!==C||v.parameters!==F||v.type!==le?B(Tt(C,F,le),v):v}function pt(v,C,F){let le=Y(181);return le.modifiers=Ga(v),le.parameters=Ga(C),le.type=F,le.transformFlags=1,le.jsDoc=void 0,le.locals=void 0,le.nextContainer=void 0,le.typeArguments=void 0,le}function Ft(v,C,F,le){return v.parameters!==F||v.type!==le||v.modifiers!==C?B(pt(C,F,le),v):v}function hn(v,C){let F=K(204);return F.type=v,F.literal=C,F.transformFlags=1,F}function dn(v,C,F){return v.type!==C||v.literal!==F?tr(hn(C,F),v):v}function un(v){return be(v)}function U(v,C,F){let le=K(182);return le.assertsModifier=v,le.parameterName=lc(C),le.type=F,le.transformFlags=1,le}function Me(v,C,F,le){return v.assertsModifier!==C||v.parameterName!==F||v.type!==le?tr(U(C,F,le),v):v}function Pt(v,C){let F=K(183);return F.typeName=lc(v),F.typeArguments=C&&i().parenthesizeTypeArguments(j(C)),F.transformFlags=1,F}function k(v,C,F){return v.typeName!==C||v.typeArguments!==F?tr(Pt(C,F),v):v}function ie(v,C,F){let le=Y(184);return le.typeParameters=Ga(v),le.parameters=Ga(C),le.type=F,le.transformFlags=1,le.modifiers=void 0,le.jsDoc=void 0,le.locals=void 0,le.nextContainer=void 0,le.typeArguments=void 0,le}function H(v,C,F,le){return v.typeParameters!==C||v.parameters!==F||v.type!==le?ue(ie(C,F,le),v):v}function ue(v,C){return v!==C&&(v.modifiers=C.modifiers),B(v,C)}function We(...v){return v.length===4?Ne(...v):v.length===3?It(...v):R.fail("Incorrect number of arguments specified.")}function Ne(v,C,F,le){let Ke=Y(185);return Ke.modifiers=Ga(v),Ke.typeParameters=Ga(C),Ke.parameters=Ga(F),Ke.type=le,Ke.transformFlags=1,Ke.jsDoc=void 0,Ke.locals=void 0,Ke.nextContainer=void 0,Ke.typeArguments=void 0,Ke}function It(v,C,F){return Ne(void 0,v,C,F)}function Ct(...v){return v.length===5?Kt(...v):v.length===4?En(...v):R.fail("Incorrect number of arguments specified.")}function Kt(v,C,F,le,Ke){return v.modifiers!==C||v.typeParameters!==F||v.parameters!==le||v.type!==Ke?B(We(C,F,le,Ke),v):v}function En(v,C,F,le){return Kt(v,v.modifiers,C,F,le)}function wn(v,C){let F=K(186);return F.exprName=v,F.typeArguments=C&&i().parenthesizeTypeArguments(C),F.transformFlags=1,F}function Bn(v,C,F){return v.exprName!==C||v.typeArguments!==F?tr(wn(C,F),v):v}function gi(v){let C=Y(187);return C.members=j(v),C.transformFlags=1,C}function xi(v,C){return v.members!==C?tr(gi(C),v):v}function er(v){let C=K(188);return C.elementType=i().parenthesizeNonArrayTypeOfPostfixType(v),C.transformFlags=1,C}function Fr(v,C){return v.elementType!==C?tr(er(C),v):v}function ho(v){let C=K(189);return C.elements=j(i().parenthesizeElementTypesOfTupleType(v)),C.transformFlags=1,C}function Pi(v,C){return v.elements!==C?tr(ho(C),v):v}function Ri(v,C,F,le){let Ke=Y(202);return Ke.dotDotDotToken=v,Ke.name=C,Ke.questionToken=F,Ke.type=le,Ke.transformFlags=1,Ke.jsDoc=void 0,Ke}function Kr(v,C,F,le,Ke){return v.dotDotDotToken!==C||v.name!==F||v.questionToken!==le||v.type!==Ke?tr(Ri(C,F,le,Ke),v):v}function Io(v){let C=K(190);return C.type=i().parenthesizeTypeOfOptionalType(v),C.transformFlags=1,C}function xn(v,C){return v.type!==C?tr(Io(C),v):v}function ks(v){let C=K(191);return C.type=v,C.transformFlags=1,C}function $l(v,C){return v.type!==C?tr(ks(C),v):v}function Po(v,C,F){let le=K(v);return le.types=w.createNodeArray(F(C)),le.transformFlags=1,le}function ls(v,C,F){return v.types!==C?tr(Po(v.kind,C,F),v):v}function zs(v){return Po(192,v,i().parenthesizeConstituentTypesOfUnionType)}function ml(v,C){return ls(v,C,i().parenthesizeConstituentTypesOfUnionType)}function sd(v){return Po(193,v,i().parenthesizeConstituentTypesOfIntersectionType)}function mo(v,C){return ls(v,C,i().parenthesizeConstituentTypesOfIntersectionType)}function sa(v,C,F,le){let Ke=K(194);return Ke.checkType=i().parenthesizeCheckTypeOfConditionalType(v),Ke.extendsType=i().parenthesizeExtendsTypeOfConditionalType(C),Ke.trueType=F,Ke.falseType=le,Ke.transformFlags=1,Ke.locals=void 0,Ke.nextContainer=void 0,Ke}function ld(v,C,F,le,Ke){return v.checkType!==C||v.extendsType!==F||v.trueType!==le||v.falseType!==Ke?tr(sa(C,F,le,Ke),v):v}function Es(v){let C=K(195);return C.typeParameter=v,C.transformFlags=1,C}function Na(v,C){return v.typeParameter!==C?tr(Es(C),v):v}function ul(v,C){let F=K(203);return F.head=v,F.templateSpans=j(C),F.transformFlags=1,F}function Nf(v,C,F){return v.head!==C||v.templateSpans!==F?tr(ul(C,F),v):v}function ac(v,C,F,le,Ke=!1){let Ht=K(205);return Ht.argument=v,Ht.attributes=C,Ht.assertions&&Ht.assertions.assertClause&&Ht.attributes&&(Ht.assertions.assertClause=Ht.attributes),Ht.qualifier=F,Ht.typeArguments=le&&i().parenthesizeTypeArguments(le),Ht.isTypeOf=Ke,Ht.transformFlags=1,Ht}function xl(v,C,F,le,Ke,Ht=v.isTypeOf){return v.argument!==C||v.attributes!==F||v.qualifier!==le||v.typeArguments!==Ke||v.isTypeOf!==Ht?tr(ac(C,F,le,Ke,Ht),v):v}function al(v){let C=K(196);return C.type=v,C.transformFlags=1,C}function Mo(v,C){return v.type!==C?tr(al(C),v):v}function tn(){let v=K(197);return v.transformFlags=1,v}function Bs(v,C){let F=K(198);return F.operator=v,F.type=v===148?i().parenthesizeOperandOfReadonlyTypeOperator(C):i().parenthesizeOperandOfTypeOperator(C),F.transformFlags=1,F}function ed(v,C){return v.type!==C?tr(Bs(v.operator,C),v):v}function cd(v,C){let F=K(199);return F.objectType=i().parenthesizeNonArrayTypeOfPostfixType(v),F.indexType=C,F.transformFlags=1,F}function Ep(v,C,F){return v.objectType!==C||v.indexType!==F?tr(cd(C,F),v):v}function Ds(v,C,F,le,Ke,Ht){let hr=Y(200);return hr.readonlyToken=v,hr.typeParameter=C,hr.nameType=F,hr.questionToken=le,hr.type=Ke,hr.members=Ht&&j(Ht),hr.transformFlags=1,hr.locals=void 0,hr.nextContainer=void 0,hr}function Ac(v,C,F,le,Ke,Ht,hr){return v.readonlyToken!==C||v.typeParameter!==F||v.nameType!==le||v.questionToken!==Ke||v.type!==Ht||v.members!==hr?tr(Ds(C,F,le,Ke,Ht,hr),v):v}function de(v){let C=K(201);return C.literal=v,C.transformFlags=1,C}function $(v,C){return v.literal!==C?tr(de(C),v):v}function Pe(v){let C=K(206);return C.elements=j(v),C.transformFlags|=Ua(C.elements)|1024|524288,C.transformFlags&32768&&(C.transformFlags|=65664),C}function yt(v,C){return v.elements!==C?tr(Pe(C),v):v}function cn(v){let C=K(207);return C.elements=j(v),C.transformFlags|=Ua(C.elements)|1024|524288,C}function vr(v,C){return v.elements!==C?tr(cn(C),v):v}function fr(v,C,F,le){let Ke=Y(208);return Ke.dotDotDotToken=v,Ke.propertyName=lc(C),Ke.name=lc(F),Ke.initializer=rx(le),Ke.transformFlags|=br(Ke.dotDotDotToken)|Uv(Ke.propertyName)|Uv(Ke.name)|br(Ke.initializer)|(Ke.dotDotDotToken?32768:0)|1024,Ke.flowNode=void 0,Ke}function zr(v,C,F,le,Ke){return v.propertyName!==F||v.dotDotDotToken!==C||v.name!==le||v.initializer!==Ke?tr(fr(C,F,le,Ke),v):v}function Di(v,C){let F=K(209),le=v&&$s(v),Ke=j(v,le&&Gc(le)?!0:void 0);return F.elements=i().parenthesizeExpressionsOfCommaDelimitedList(Ke),F.multiLine=C,F.transformFlags|=Ua(F.elements),F}function Cr(v,C){return v.elements!==C?tr(Di(C,v.multiLine),v):v}function Jo(v,C){let F=Y(210);return F.properties=j(v),F.multiLine=C,F.transformFlags|=Ua(F.properties),F.jsDoc=void 0,F}function vl(v,C){return v.properties!==C?tr(Jo(C,v.multiLine),v):v}function jc(v,C,F){let le=Y(211);return le.expression=v,le.questionDotToken=C,le.name=F,le.transformFlags=br(le.expression)|br(le.questionDotToken)|(Fe(le.name)?Sk(le.name):br(le.name)|536870912),le.jsDoc=void 0,le.flowNode=void 0,le}function Gs(v,C){let F=jc(i().parenthesizeLeftSideOfAccess(v,!1),void 0,lc(C));return sP(v)&&(F.transformFlags|=384),F}function hc(v,C,F){return oF(v)?Uc(v,C,v.questionDotToken,ta(F,Fe)):v.expression!==C||v.name!==F?tr(Gs(C,F),v):v}function vs(v,C,F){let le=jc(i().parenthesizeLeftSideOfAccess(v,!0),C,lc(F));return le.flags|=64,le.transformFlags|=32,le}function Uc(v,C,F,le){return R.assert(!!(v.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),v.expression!==C||v.questionDotToken!==F||v.name!==le?tr(vs(C,F,le),v):v}function tp(v,C,F){let le=Y(212);return le.expression=v,le.questionDotToken=C,le.argumentExpression=F,le.transformFlags|=br(le.expression)|br(le.questionDotToken)|br(le.argumentExpression),le.jsDoc=void 0,le.flowNode=void 0,le}function wc(v,C){let F=tp(i().parenthesizeLeftSideOfAccess(v,!1),void 0,$E(C));return sP(v)&&(F.transformFlags|=384),F}function im(v,C,F){return SV(v)?Re(v,C,v.questionDotToken,F):v.expression!==C||v.argumentExpression!==F?tr(wc(C,F),v):v}function mu(v,C,F){let le=tp(i().parenthesizeLeftSideOfAccess(v,!0),C,$E(F));return le.flags|=64,le.transformFlags|=32,le}function Re(v,C,F,le){return R.assert(!!(v.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),v.expression!==C||v.questionDotToken!==F||v.argumentExpression!==le?tr(mu(C,F,le),v):v}function Lt(v,C,F,le){let Ke=Y(213);return Ke.expression=v,Ke.questionDotToken=C,Ke.typeArguments=F,Ke.arguments=le,Ke.transformFlags|=br(Ke.expression)|br(Ke.questionDotToken)|Ua(Ke.typeArguments)|Ua(Ke.arguments),Ke.typeArguments&&(Ke.transformFlags|=1),wu(Ke.expression)&&(Ke.transformFlags|=16384),Ke}function Un(v,C,F){let le=Lt(i().parenthesizeLeftSideOfAccess(v,!1),void 0,Ga(C),i().parenthesizeExpressionsOfCommaDelimitedList(j(F)));return lP(le.expression)&&(le.transformFlags|=8388608),le}function go(v,C,F,le){return oT(v)?Qo(v,C,v.questionDotToken,F,le):v.expression!==C||v.typeArguments!==F||v.arguments!==le?tr(Un(C,F,le),v):v}function qo(v,C,F,le){let Ke=Lt(i().parenthesizeLeftSideOfAccess(v,!0),C,Ga(F),i().parenthesizeExpressionsOfCommaDelimitedList(j(le)));return Ke.flags|=64,Ke.transformFlags|=32,Ke}function Qo(v,C,F,le,Ke){return R.assert(!!(v.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),v.expression!==C||v.questionDotToken!==F||v.typeArguments!==le||v.arguments!==Ke?tr(qo(C,F,le,Ke),v):v}function Ql(v,C,F){let le=Y(214);return le.expression=i().parenthesizeExpressionOfNew(v),le.typeArguments=Ga(C),le.arguments=F?i().parenthesizeExpressionsOfCommaDelimitedList(F):void 0,le.transformFlags|=br(le.expression)|Ua(le.typeArguments)|Ua(le.arguments)|32,le.typeArguments&&(le.transformFlags|=1),le}function gc(v,C,F,le){return v.expression!==C||v.typeArguments!==F||v.arguments!==le?tr(Ql(C,F,le),v):v}function sl(v,C,F){let le=K(215);return le.tag=i().parenthesizeLeftSideOfAccess(v,!1),le.typeArguments=Ga(C),le.template=F,le.transformFlags|=br(le.tag)|Ua(le.typeArguments)|br(le.template)|1024,le.typeArguments&&(le.transformFlags|=1),kj(le.template)&&(le.transformFlags|=128),le}function _l(v,C,F,le){return v.tag!==C||v.typeArguments!==F||v.template!==le?tr(sl(C,F,le),v):v}function Gl(v,C){let F=K(216);return F.expression=i().parenthesizeOperandOfPrefixUnary(C),F.type=v,F.transformFlags|=br(F.expression)|br(F.type)|1,F}function Zl(v,C,F){return v.type!==C||v.expression!==F?tr(Gl(C,F),v):v}function Hc(v){let C=K(217);return C.expression=v,C.transformFlags=br(C.expression),C.jsDoc=void 0,C}function cf(v,C){return v.expression!==C?tr(Hc(C),v):v}function zu(v,C,F,le,Ke,Ht,hr){let eo=Y(218);eo.modifiers=Ga(v),eo.asteriskToken=C,eo.name=lc(F),eo.typeParameters=Ga(le),eo.parameters=j(Ke),eo.type=Ht,eo.body=hr;let js=x_(eo.modifiers)&1024,a_=!!eo.asteriskToken,Rb=js&&a_;return eo.transformFlags=Ua(eo.modifiers)|br(eo.asteriskToken)|Uv(eo.name)|Ua(eo.typeParameters)|Ua(eo.parameters)|br(eo.type)|br(eo.body)&-67108865|(Rb?128:js?256:a_?2048:0)|(eo.typeParameters||eo.type?1:0)|4194304,eo.typeArguments=void 0,eo.jsDoc=void 0,eo.locals=void 0,eo.nextContainer=void 0,eo.flowNode=void 0,eo.endFlowNode=void 0,eo.returnFlowNode=void 0,eo}function Ru(v,C,F,le,Ke,Ht,hr,eo){return v.name!==le||v.modifiers!==C||v.asteriskToken!==F||v.typeParameters!==Ke||v.parameters!==Ht||v.type!==hr||v.body!==eo?B(zu(C,F,le,Ke,Ht,hr,eo),v):v}function Pf(v,C,F,le,Ke,Ht){let hr=Y(219);hr.modifiers=Ga(v),hr.typeParameters=Ga(C),hr.parameters=j(F),hr.type=le,hr.equalsGreaterThanToken=Ke??be(39),hr.body=i().parenthesizeConciseBodyOfArrowFunction(Ht);let eo=x_(hr.modifiers)&1024;return hr.transformFlags=Ua(hr.modifiers)|Ua(hr.typeParameters)|Ua(hr.parameters)|br(hr.type)|br(hr.equalsGreaterThanToken)|br(hr.body)&-67108865|(hr.typeParameters||hr.type?1:0)|(eo?16640:0)|1024,hr.typeArguments=void 0,hr.jsDoc=void 0,hr.locals=void 0,hr.nextContainer=void 0,hr.flowNode=void 0,hr.endFlowNode=void 0,hr.returnFlowNode=void 0,hr}function z_(v,C,F,le,Ke,Ht,hr){return v.modifiers!==C||v.typeParameters!==F||v.parameters!==le||v.type!==Ke||v.equalsGreaterThanToken!==Ht||v.body!==hr?B(Pf(C,F,le,Ke,Ht,hr),v):v}function Ih(v){let C=K(220);return C.expression=i().parenthesizeOperandOfPrefixUnary(v),C.transformFlags|=br(C.expression),C}function Ug(v,C){return v.expression!==C?tr(Ih(C),v):v}function Wd(v){let C=K(221);return C.expression=i().parenthesizeOperandOfPrefixUnary(v),C.transformFlags|=br(C.expression),C}function Hg(v,C){return v.expression!==C?tr(Wd(C),v):v}function Sp(v){let C=K(222);return C.expression=i().parenthesizeOperandOfPrefixUnary(v),C.transformFlags|=br(C.expression),C}function cg(v,C){return v.expression!==C?tr(Sp(C),v):v}function Bu(v){let C=K(223);return C.expression=i().parenthesizeOperandOfPrefixUnary(v),C.transformFlags|=br(C.expression)|256|128|2097152,C}function Z(v,C){return v.expression!==C?tr(Bu(C),v):v}function rt(v,C){let F=K(224);return F.operator=v,F.operand=i().parenthesizeOperandOfPrefixUnary(C),F.transformFlags|=br(F.operand),(v===46||v===47)&&Fe(F.operand)&&!rl(F.operand)&&!zg(F.operand)&&(F.transformFlags|=268435456),F}function wt(v,C){return v.operand!==C?tr(rt(v.operator,C),v):v}function zt(v,C){let F=K(225);return F.operator=C,F.operand=i().parenthesizeOperandOfPostfixUnary(v),F.transformFlags|=br(F.operand),Fe(F.operand)&&!rl(F.operand)&&!zg(F.operand)&&(F.transformFlags|=268435456),F}function O(v,C){return v.operand!==C?tr(zt(C,v.operator),v):v}function Se(v,C,F){let le=Y(226),Ke=NM(C),Ht=Ke.kind;return le.left=i().parenthesizeLeftSideOfBinary(Ht,v),le.operatorToken=Ke,le.right=i().parenthesizeRightSideOfBinary(Ht,le.left,F),le.transformFlags|=br(le.left)|br(le.operatorToken)|br(le.right),Ht===61?le.transformFlags|=32:Ht===64?La(le.left)?le.transformFlags|=5248|nt(le.left):pu(le.left)&&(le.transformFlags|=5120|nt(le.left)):Ht===43||Ht===68?le.transformFlags|=512:PN(Ht)&&(le.transformFlags|=16),Ht===103&&Ki(le.left)&&(le.transformFlags|=536870912),le.jsDoc=void 0,le}function nt(v){return Xk(v)?65536:0}function jt(v,C,F,le){return v.left!==C||v.operatorToken!==F||v.right!==le?tr(Se(C,F,le),v):v}function Zn(v,C,F,le,Ke){let Ht=K(227);return Ht.condition=i().parenthesizeConditionOfConditionalExpression(v),Ht.questionToken=C??be(58),Ht.whenTrue=i().parenthesizeBranchOfConditionalExpression(F),Ht.colonToken=le??be(59),Ht.whenFalse=i().parenthesizeBranchOfConditionalExpression(Ke),Ht.transformFlags|=br(Ht.condition)|br(Ht.questionToken)|br(Ht.whenTrue)|br(Ht.colonToken)|br(Ht.whenFalse),Ht}function ii(v,C,F,le,Ke,Ht){return v.condition!==C||v.questionToken!==F||v.whenTrue!==le||v.colonToken!==Ke||v.whenFalse!==Ht?tr(Zn(C,F,le,Ke,Ht),v):v}function Yr(v,C){let F=K(228);return F.head=v,F.templateSpans=j(C),F.transformFlags|=br(F.head)|Ua(F.templateSpans)|1024,F}function no(v,C,F){return v.head!==C||v.templateSpans!==F?tr(Yr(C,F),v):v}function ka(v,C,F,le=0){R.assert(!(le&-7177),"Unsupported template flags.");let Ke;if(F!==void 0&&F!==C&&(Ke=BBe(v,F),typeof Ke=="object"))return R.fail("Invalid raw text");if(C===void 0){if(Ke===void 0)return R.fail("Arguments 'text' and 'rawText' may not both be undefined.");C=Ke}else Ke!==void 0&&R.assert(C===Ke,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return C}function wa(v){let C=1024;return v&&(C|=128),C}function wl(v,C,F,le){let Ke=Et(v);return Ke.text=C,Ke.rawText=F,Ke.templateFlags=le&7176,Ke.transformFlags=wa(Ke.templateFlags),Ke}function dd(v,C,F,le){let Ke=Y(v);return Ke.text=C,Ke.rawText=F,Ke.templateFlags=le&7176,Ke.transformFlags=wa(Ke.templateFlags),Ke}function Ic(v,C,F,le){return v===15?dd(v,C,F,le):wl(v,C,F,le)}function Tp(v,C,F){return v=ka(16,v,C,F),Ic(16,v,C,F)}function Gu(v,C,F){return v=ka(16,v,C,F),Ic(17,v,C,F)}function ab(v,C,F){return v=ka(16,v,C,F),Ic(18,v,C,F)}function cs(v,C,F){return v=ka(16,v,C,F),dd(15,v,C,F)}function Dm(v,C){R.assert(!v||!!C,"A `YieldExpression` with an asteriskToken must have an expression.");let F=K(229);return F.expression=C&&i().parenthesizeExpressionForDisallowedComma(C),F.asteriskToken=v,F.transformFlags|=br(F.expression)|br(F.asteriskToken)|1024|128|1048576,F}function Cm(v,C,F){return v.expression!==F||v.asteriskToken!==C?tr(Dm(C,F),v):v}function Ui(v){let C=K(230);return C.expression=i().parenthesizeExpressionForDisallowedComma(v),C.transformFlags|=br(C.expression)|1024|32768,C}function Kg(v,C){return v.expression!==C?tr(Ui(C),v):v}function Qy(v,C,F,le,Ke){let Ht=Y(231);return Ht.modifiers=Ga(v),Ht.name=lc(C),Ht.typeParameters=Ga(F),Ht.heritageClauses=Ga(le),Ht.members=j(Ke),Ht.transformFlags|=Ua(Ht.modifiers)|Uv(Ht.name)|Ua(Ht.typeParameters)|Ua(Ht.heritageClauses)|Ua(Ht.members)|(Ht.typeParameters?1:0)|1024,Ht.jsDoc=void 0,Ht}function Nm(v,C,F,le,Ke,Ht){return v.modifiers!==C||v.name!==F||v.typeParameters!==le||v.heritageClauses!==Ke||v.members!==Ht?tr(Qy(C,F,le,Ke,Ht),v):v}function fS(){return K(232)}function mS(v,C){let F=K(233);return F.expression=i().parenthesizeLeftSideOfAccess(v,!1),F.typeArguments=C&&i().parenthesizeTypeArguments(C),F.transformFlags|=br(F.expression)|Ua(F.typeArguments)|1024,F}function df(v,C,F){return v.expression!==C||v.typeArguments!==F?tr(mS(C,F),v):v}function B_(v,C){let F=K(234);return F.expression=v,F.type=C,F.transformFlags|=br(F.expression)|br(F.type)|1,F}function uf(v,C,F){return v.expression!==C||v.type!==F?tr(B_(C,F),v):v}function Jg(v){let C=K(235);return C.expression=i().parenthesizeLeftSideOfAccess(v,!1),C.transformFlags|=br(C.expression)|1,C}function we(v,C){return sF(v)?_n(v,C):v.expression!==C?tr(Jg(C),v):v}function qe(v,C){let F=K(238);return F.expression=v,F.type=C,F.transformFlags|=br(F.expression)|br(F.type)|1,F}function Mt(v,C,F){return v.expression!==C||v.type!==F?tr(qe(C,F),v):v}function Bt(v){let C=K(235);return C.flags|=64,C.expression=i().parenthesizeLeftSideOfAccess(v,!0),C.transformFlags|=br(C.expression)|1,C}function _n(v,C){return R.assert(!!(v.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),v.expression!==C?tr(Bt(C),v):v}function Jn(v,C){let F=K(236);switch(F.keywordToken=v,F.name=C,F.transformFlags|=br(F.name),v){case 105:F.transformFlags|=1024;break;case 102:F.transformFlags|=32;break;default:return R.assertNever(v)}return F.flowNode=void 0,F}function fn(v,C){return v.name!==C?tr(Jn(v.keywordToken,C),v):v}function qn(v,C){let F=K(239);return F.expression=v,F.literal=C,F.transformFlags|=br(F.expression)|br(F.literal)|1024,F}function mi(v,C,F){return v.expression!==C||v.literal!==F?tr(qn(C,F),v):v}function or(){let v=K(240);return v.transformFlags|=1024,v}function ni(v,C){let F=K(241);return F.statements=j(v),F.multiLine=C,F.transformFlags|=Ua(F.statements),F.jsDoc=void 0,F.locals=void 0,F.nextContainer=void 0,F}function dr(v,C){return v.statements!==C?tr(ni(C,v.multiLine),v):v}function Xo(v,C){let F=K(243);return F.modifiers=Ga(v),F.declarationList=So(C)?np(C):C,F.transformFlags|=Ua(F.modifiers)|br(F.declarationList),x_(F.modifiers)&128&&(F.transformFlags=1),F.jsDoc=void 0,F.flowNode=void 0,F}function Ha(v,C,F){return v.modifiers!==C||v.declarationList!==F?tr(Xo(C,F),v):v}function Yd(){let v=K(242);return v.jsDoc=void 0,v}function ud(v){let C=K(244);return C.expression=i().parenthesizeExpressionOfExpressionStatement(v),C.transformFlags|=br(C.expression),C.jsDoc=void 0,C.flowNode=void 0,C}function qg(v,C){return v.expression!==C?tr(ud(C),v):v}function kE(v,C,F){let le=K(245);return le.expression=v,le.thenStatement=xb(C),le.elseStatement=xb(F),le.transformFlags|=br(le.expression)|br(le.thenStatement)|br(le.elseStatement),le.jsDoc=void 0,le.flowNode=void 0,le}function w1(v,C,F,le){return v.expression!==C||v.thenStatement!==F||v.elseStatement!==le?tr(kE(C,F,le),v):v}function wE(v,C){let F=K(246);return F.statement=xb(v),F.expression=C,F.transformFlags|=br(F.statement)|br(F.expression),F.jsDoc=void 0,F.flowNode=void 0,F}function LD(v,C,F){return v.statement!==C||v.expression!==F?tr(wE(C,F),v):v}function kD(v,C){let F=K(247);return F.expression=v,F.statement=xb(C),F.transformFlags|=br(F.expression)|br(F.statement),F.jsDoc=void 0,F.flowNode=void 0,F}function wD(v,C,F){return v.expression!==C||v.statement!==F?tr(kD(C,F),v):v}function oA(v,C,F,le){let Ke=K(248);return Ke.initializer=v,Ke.condition=C,Ke.incrementor=F,Ke.statement=xb(le),Ke.transformFlags|=br(Ke.initializer)|br(Ke.condition)|br(Ke.incrementor)|br(Ke.statement),Ke.jsDoc=void 0,Ke.locals=void 0,Ke.nextContainer=void 0,Ke.flowNode=void 0,Ke}function _S(v,C,F,le,Ke){return v.initializer!==C||v.condition!==F||v.incrementor!==le||v.statement!==Ke?tr(oA(C,F,le,Ke),v):v}function O1(v,C,F){let le=K(249);return le.initializer=v,le.expression=C,le.statement=xb(F),le.transformFlags|=br(le.initializer)|br(le.expression)|br(le.statement),le.jsDoc=void 0,le.locals=void 0,le.nextContainer=void 0,le.flowNode=void 0,le}function OD(v,C,F,le){return v.initializer!==C||v.expression!==F||v.statement!==le?tr(O1(C,F,le),v):v}function W1(v,C,F,le){let Ke=K(250);return Ke.awaitModifier=v,Ke.initializer=C,Ke.expression=i().parenthesizeExpressionForDisallowedComma(F),Ke.statement=xb(le),Ke.transformFlags|=br(Ke.awaitModifier)|br(Ke.initializer)|br(Ke.expression)|br(Ke.statement)|1024,v&&(Ke.transformFlags|=128),Ke.jsDoc=void 0,Ke.locals=void 0,Ke.nextContainer=void 0,Ke.flowNode=void 0,Ke}function F1(v,C,F,le,Ke){return v.awaitModifier!==C||v.initializer!==F||v.expression!==le||v.statement!==Ke?tr(W1(C,F,le,Ke),v):v}function z1(v){let C=K(251);return C.label=lc(v),C.transformFlags|=br(C.label)|4194304,C.jsDoc=void 0,C.flowNode=void 0,C}function B1(v,C){return v.label!==C?tr(z1(C),v):v}function aA(v){let C=K(252);return C.label=lc(v),C.transformFlags|=br(C.label)|4194304,C.jsDoc=void 0,C.flowNode=void 0,C}function G1(v,C){return v.label!==C?tr(aA(C),v):v}function hS(v){let C=K(253);return C.expression=v,C.transformFlags|=br(C.expression)|128|4194304,C.jsDoc=void 0,C.flowNode=void 0,C}function gS(v,C){return v.expression!==C?tr(hS(C),v):v}function sb(v,C){let F=K(254);return F.expression=v,F.statement=xb(C),F.transformFlags|=br(F.expression)|br(F.statement),F.jsDoc=void 0,F.flowNode=void 0,F}function lb(v,C,F){return v.expression!==C||v.statement!==F?tr(sb(C,F),v):v}function dg(v,C){let F=K(255);return F.expression=i().parenthesizeExpressionForDisallowedComma(v),F.caseBlock=C,F.transformFlags|=br(F.expression)|br(F.caseBlock),F.jsDoc=void 0,F.flowNode=void 0,F.possiblyExhaustive=!1,F}function OE(v,C,F){return v.expression!==C||v.caseBlock!==F?tr(dg(C,F),v):v}function Qa(v,C){let F=K(256);return F.label=lc(v),F.statement=xb(C),F.transformFlags|=br(F.label)|br(F.statement),F.jsDoc=void 0,F.flowNode=void 0,F}function sA(v,C,F){return v.label!==C||v.statement!==F?tr(Qa(C,F),v):v}function WD(v){let C=K(257);return C.expression=v,C.transformFlags|=br(C.expression),C.jsDoc=void 0,C.flowNode=void 0,C}function WE(v,C){return v.expression!==C?tr(WD(C),v):v}function Xg(v,C,F){let le=K(258);return le.tryBlock=v,le.catchClause=C,le.finallyBlock=F,le.transformFlags|=br(le.tryBlock)|br(le.catchClause)|br(le.finallyBlock),le.jsDoc=void 0,le.flowNode=void 0,le}function xh(v,C,F,le){return v.tryBlock!==C||v.catchClause!==F||v.finallyBlock!==le?tr(Xg(C,F,le),v):v}function Mf(){let v=K(259);return v.jsDoc=void 0,v.flowNode=void 0,v}function Vu(v,C,F,le){let Ke=Y(260);return Ke.name=lc(v),Ke.exclamationToken=C,Ke.type=F,Ke.initializer=rx(le),Ke.transformFlags|=Uv(Ke.name)|br(Ke.initializer)|(Ke.exclamationToken??Ke.type?1:0),Ke.jsDoc=void 0,Ke}function Ap(v,C,F,le,Ke){return v.name!==C||v.type!==le||v.exclamationToken!==F||v.initializer!==Ke?tr(Vu(C,F,le,Ke),v):v}function np(v,C=0){let F=K(261);return F.flags|=C&7,F.declarations=j(v),F.transformFlags|=Ua(F.declarations)|4194304,C&7&&(F.transformFlags|=263168),C&4&&(F.transformFlags|=4),F}function Zy(v,C){return v.declarations!==C?tr(np(C,v.flags),v):v}function lA(v,C,F,le,Ke,Ht,hr){let eo=Y(262);if(eo.modifiers=Ga(v),eo.asteriskToken=C,eo.name=lc(F),eo.typeParameters=Ga(le),eo.parameters=j(Ke),eo.type=Ht,eo.body=hr,!eo.body||x_(eo.modifiers)&128)eo.transformFlags=1;else{let js=x_(eo.modifiers)&1024,a_=!!eo.asteriskToken,Rb=js&&a_;eo.transformFlags=Ua(eo.modifiers)|br(eo.asteriskToken)|Uv(eo.name)|Ua(eo.typeParameters)|Ua(eo.parameters)|br(eo.type)|br(eo.body)&-67108865|(Rb?128:js?256:a_?2048:0)|(eo.typeParameters||eo.type?1:0)|4194304}return eo.typeArguments=void 0,eo.jsDoc=void 0,eo.locals=void 0,eo.nextContainer=void 0,eo.endFlowNode=void 0,eo.returnFlowNode=void 0,eo}function FD(v,C,F,le,Ke,Ht,hr,eo){return v.modifiers!==C||v.asteriskToken!==F||v.name!==le||v.typeParameters!==Ke||v.parameters!==Ht||v.type!==hr||v.body!==eo?V1(lA(C,F,le,Ke,Ht,hr,eo),v):v}function V1(v,C){return v!==C&&v.modifiers===C.modifiers&&(v.modifiers=C.modifiers),B(v,C)}function cb(v,C,F,le,Ke){let Ht=Y(263);return Ht.modifiers=Ga(v),Ht.name=lc(C),Ht.typeParameters=Ga(F),Ht.heritageClauses=Ga(le),Ht.members=j(Ke),x_(Ht.modifiers)&128?Ht.transformFlags=1:(Ht.transformFlags|=Ua(Ht.modifiers)|Uv(Ht.name)|Ua(Ht.typeParameters)|Ua(Ht.heritageClauses)|Ua(Ht.members)|(Ht.typeParameters?1:0)|1024,Ht.transformFlags&8192&&(Ht.transformFlags|=1)),Ht.jsDoc=void 0,Ht}function FE(v,C,F,le,Ke,Ht){return v.modifiers!==C||v.name!==F||v.typeParameters!==le||v.heritageClauses!==Ke||v.members!==Ht?tr(cb(C,F,le,Ke,Ht),v):v}function j1(v,C,F,le,Ke){let Ht=Y(264);return Ht.modifiers=Ga(v),Ht.name=lc(C),Ht.typeParameters=Ga(F),Ht.heritageClauses=Ga(le),Ht.members=j(Ke),Ht.transformFlags=1,Ht.jsDoc=void 0,Ht}function yc(v,C,F,le,Ke,Ht){return v.modifiers!==C||v.name!==F||v.typeParameters!==le||v.heritageClauses!==Ke||v.members!==Ht?tr(j1(C,F,le,Ke,Ht),v):v}function ev(v,C,F,le){let Ke=Y(265);return Ke.modifiers=Ga(v),Ke.name=lc(C),Ke.typeParameters=Ga(F),Ke.type=le,Ke.transformFlags=1,Ke.jsDoc=void 0,Ke.locals=void 0,Ke.nextContainer=void 0,Ke}function U1(v,C,F,le,Ke){return v.modifiers!==C||v.name!==F||v.typeParameters!==le||v.type!==Ke?tr(ev(C,F,le,Ke),v):v}function e_(v,C,F){let le=Y(266);return le.modifiers=Ga(v),le.name=lc(C),le.members=j(F),le.transformFlags|=Ua(le.modifiers)|br(le.name)|Ua(le.members)|1,le.transformFlags&=-67108865,le.jsDoc=void 0,le}function cA(v,C,F,le){return v.modifiers!==C||v.name!==F||v.members!==le?tr(e_(C,F,le),v):v}function Ve(v,C,F,le=0){let Ke=Y(267);return Ke.modifiers=Ga(v),Ke.flags|=le&2088,Ke.name=C,Ke.body=F,x_(Ke.modifiers)&128?Ke.transformFlags=1:Ke.transformFlags|=Ua(Ke.modifiers)|br(Ke.name)|br(Ke.body)|1,Ke.transformFlags&=-67108865,Ke.jsDoc=void 0,Ke.locals=void 0,Ke.nextContainer=void 0,Ke}function t_(v,C,F,le){return v.modifiers!==C||v.name!==F||v.body!==le?tr(Ve(C,F,le,v.flags),v):v}function pd(v){let C=K(268);return C.statements=j(v),C.transformFlags|=Ua(C.statements),C.jsDoc=void 0,C}function zE(v,C){return v.statements!==C?tr(pd(C),v):v}function H1(v){let C=K(269);return C.clauses=j(v),C.transformFlags|=Ua(C.clauses),C.locals=void 0,C.nextContainer=void 0,C}function db(v,C){return v.clauses!==C?tr(H1(C),v):v}function tv(v){let C=Y(270);return C.name=lc(v),C.transformFlags|=Sk(C.name)|1,C.modifiers=void 0,C.jsDoc=void 0,C}function nv(v,C){return v.name!==C?SM(tv(C),v):v}function SM(v,C){return v!==C&&(v.modifiers=C.modifiers),tr(v,C)}function Ka(v,C,F,le){let Ke=Y(271);return Ke.modifiers=Ga(v),Ke.name=lc(F),Ke.isTypeOnly=C,Ke.moduleReference=le,Ke.transformFlags|=Ua(Ke.modifiers)|Sk(Ke.name)|br(Ke.moduleReference),bh(Ke.moduleReference)||(Ke.transformFlags|=1),Ke.transformFlags&=-67108865,Ke.jsDoc=void 0,Ke}function n_(v,C,F,le,Ke){return v.modifiers!==C||v.isTypeOnly!==F||v.name!==le||v.moduleReference!==Ke?tr(Ka(C,F,le,Ke),v):v}function dA(v,C,F,le){let Ke=K(272);return Ke.modifiers=Ga(v),Ke.importClause=C,Ke.moduleSpecifier=F,Ke.attributes=Ke.assertClause=le,Ke.transformFlags|=br(Ke.importClause)|br(Ke.moduleSpecifier),Ke.transformFlags&=-67108865,Ke.jsDoc=void 0,Ke}function uA(v,C,F,le,Ke){return v.modifiers!==C||v.importClause!==F||v.moduleSpecifier!==le||v.attributes!==Ke?tr(dA(C,F,le,Ke),v):v}function BE(v,C,F){let le=Y(273);return le.isTypeOnly=v,le.name=C,le.namedBindings=F,le.transformFlags|=br(le.name)|br(le.namedBindings),v&&(le.transformFlags|=1),le.transformFlags&=-67108865,le}function pA(v,C,F,le){return v.isTypeOnly!==C||v.name!==F||v.namedBindings!==le?tr(BE(C,F,le),v):v}function om(v,C){let F=K(300);return F.elements=j(v),F.multiLine=C,F.token=132,F.transformFlags|=4,F}function am(v,C,F){return v.elements!==C||v.multiLine!==F?tr(om(C,F),v):v}function Yg(v,C){let F=K(301);return F.name=v,F.value=C,F.transformFlags|=4,F}function K1(v,C,F){return v.name!==C||v.value!==F?tr(Yg(C,F),v):v}function r_(v,C){let F=K(302);return F.assertClause=v,F.multiLine=C,F}function zD(v,C,F){return v.assertClause!==C||v.multiLine!==F?tr(r_(C,F),v):v}function yS(v,C,F){let le=K(300);return le.token=F??118,le.elements=j(v),le.multiLine=C,le.transformFlags|=4,le}function qi(v,C,F){return v.elements!==C||v.multiLine!==F?tr(yS(C,F,v.token),v):v}function Zr(v,C){let F=K(301);return F.name=v,F.value=C,F.transformFlags|=4,F}function Rh(v,C,F){return v.name!==C||v.value!==F?tr(Zr(C,F),v):v}function ju(v){let C=Y(274);return C.name=v,C.transformFlags|=br(C.name),C.transformFlags&=-67108865,C}function TM(v,C){return v.name!==C?tr(ju(C),v):v}function $g(v){let C=Y(280);return C.name=v,C.transformFlags|=br(C.name)|32,C.transformFlags&=-67108865,C}function AM(v,C){return v.name!==C?tr($g(C),v):v}function ub(v){let C=K(275);return C.elements=j(v),C.transformFlags|=Ua(C.elements),C.transformFlags&=-67108865,C}function hl(v,C){return v.elements!==C?tr(ub(C),v):v}function Bp(v,C,F){let le=Y(276);return le.isTypeOnly=v,le.propertyName=C,le.name=F,le.transformFlags|=br(le.propertyName)|br(le.name),le.transformFlags&=-67108865,le}function ug(v,C,F,le){return v.isTypeOnly!==C||v.propertyName!==F||v.name!==le?tr(Bp(C,F,le),v):v}function sm(v,C,F){let le=Y(277);return le.modifiers=Ga(v),le.isExportEquals=C,le.expression=C?i().parenthesizeRightSideOfBinary(64,void 0,F):i().parenthesizeExpressionOfExportDefault(F),le.transformFlags|=Ua(le.modifiers)|br(le.expression),le.transformFlags&=-67108865,le.jsDoc=void 0,le}function pb(v,C,F){return v.modifiers!==C||v.expression!==F?tr(sm(C,v.isExportEquals,F),v):v}function Pm(v,C,F,le,Ke){let Ht=Y(278);return Ht.modifiers=Ga(v),Ht.isTypeOnly=C,Ht.exportClause=F,Ht.moduleSpecifier=le,Ht.attributes=Ht.assertClause=Ke,Ht.transformFlags|=Ua(Ht.modifiers)|br(Ht.exportClause)|br(Ht.moduleSpecifier),Ht.transformFlags&=-67108865,Ht.jsDoc=void 0,Ht}function Qg(v,C,F,le,Ke,Ht){return v.modifiers!==C||v.isTypeOnly!==F||v.exportClause!==le||v.moduleSpecifier!==Ke||v.attributes!==Ht?vS(Pm(C,F,le,Ke,Ht),v):v}function vS(v,C){return v!==C&&v.modifiers===C.modifiers&&(v.modifiers=C.modifiers),tr(v,C)}function fA(v){let C=K(279);return C.elements=j(v),C.transformFlags|=Ua(C.elements),C.transformFlags&=-67108865,C}function pg(v,C){return v.elements!==C?tr(fA(C),v):v}function J1(v,C,F){let le=K(281);return le.isTypeOnly=v,le.propertyName=lc(C),le.name=lc(F),le.transformFlags|=br(le.propertyName)|br(le.name),le.transformFlags&=-67108865,le.jsDoc=void 0,le}function fg(v,C,F,le){return v.isTypeOnly!==C||v.propertyName!==F||v.name!==le?tr(J1(C,F,le),v):v}function G_(){let v=Y(282);return v.jsDoc=void 0,v}function rv(v){let C=K(283);return C.expression=v,C.transformFlags|=br(C.expression),C.transformFlags&=-67108865,C}function BD(v,C){return v.expression!==C?tr(rv(C),v):v}function GD(v){return K(v)}function VD(v,C,F=!1){let le=mA(v,F?C&&i().parenthesizeNonArrayTypeOfPostfixType(C):C);return le.postfix=F,le}function mA(v,C){let F=K(v);return F.type=C,F}function Xs(v,C,F){return C.type!==F?tr(VD(v,F,C.postfix),C):C}function bS(v,C,F){return C.type!==F?tr(mA(v,F),C):C}function _A(v,C){let F=Y(324);return F.parameters=Ga(v),F.type=C,F.transformFlags=Ua(F.parameters)|(F.type?1:0),F.jsDoc=void 0,F.locals=void 0,F.nextContainer=void 0,F.typeArguments=void 0,F}function Mm(v,C,F){return v.parameters!==C||v.type!==F?tr(_A(C,F),v):v}function fb(v,C=!1){let F=Y(329);return F.jsDocPropertyTags=Ga(v),F.isArrayType=C,F}function jD(v,C,F){return v.jsDocPropertyTags!==C||v.isArrayType!==F?tr(fb(C,F),v):v}function hA(v){let C=K(316);return C.type=v,C}function IM(v,C){return v.type!==C?tr(hA(C),v):v}function mr(v,C,F){let le=Y(330);return le.typeParameters=Ga(v),le.parameters=j(C),le.type=F,le.jsDoc=void 0,le.locals=void 0,le.nextContainer=void 0,le}function td(v,C,F,le){return v.typeParameters!==C||v.parameters!==F||v.type!==le?tr(mr(C,F,le),v):v}function Qi(v){let C=WU(v.kind);return v.tagName.escapedText===pl(C)?v.tagName:xe(C)}function pf(v,C,F){let le=K(v);return le.tagName=C,le.comment=F,le}function iv(v,C,F){let le=Y(v);return le.tagName=C,le.comment=F,le}function V_(v,C,F,le){let Ke=pf(352,v??xe("template"),le);return Ke.constraint=C,Ke.typeParameters=j(F),Ke}function ar(v,C=Qi(v),F,le,Ke){return v.tagName!==C||v.constraint!==F||v.typeParameters!==le||v.comment!==Ke?tr(V_(C,F,le,Ke),v):v}function gA(v,C,F,le){let Ke=iv(353,v??xe("typedef"),le);return Ke.typeExpression=C,Ke.fullName=F,Ke.name=SH(F),Ke.locals=void 0,Ke.nextContainer=void 0,Ke}function GE(v,C=Qi(v),F,le,Ke){return v.tagName!==C||v.typeExpression!==F||v.fullName!==le||v.comment!==Ke?tr(gA(C,F,le,Ke),v):v}function Kc(v,C,F,le,Ke,Ht){let hr=iv(348,v??xe("param"),Ht);return hr.typeExpression=le,hr.name=C,hr.isNameFirst=!!Ke,hr.isBracketed=F,hr}function Dh(v,C=Qi(v),F,le,Ke,Ht,hr){return v.tagName!==C||v.name!==F||v.isBracketed!==le||v.typeExpression!==Ke||v.isNameFirst!==Ht||v.comment!==hr?tr(Kc(C,F,le,Ke,Ht,hr),v):v}function Lm(v,C,F,le,Ke,Ht){let hr=iv(355,v??xe("prop"),Ht);return hr.typeExpression=le,hr.name=C,hr.isNameFirst=!!Ke,hr.isBracketed=F,hr}function ES(v,C=Qi(v),F,le,Ke,Ht,hr){return v.tagName!==C||v.name!==F||v.isBracketed!==le||v.typeExpression!==Ke||v.isNameFirst!==Ht||v.comment!==hr?tr(Lm(C,F,le,Ke,Ht,hr),v):v}function SS(v,C,F,le){let Ke=iv(345,v??xe("callback"),le);return Ke.typeExpression=C,Ke.fullName=F,Ke.name=SH(F),Ke.locals=void 0,Ke.nextContainer=void 0,Ke}function mb(v,C=Qi(v),F,le,Ke){return v.tagName!==C||v.typeExpression!==F||v.fullName!==le||v.comment!==Ke?tr(SS(C,F,le,Ke),v):v}function Zg(v,C,F){let le=pf(346,v??xe("overload"),F);return le.typeExpression=C,le}function yA(v,C=Qi(v),F,le){return v.tagName!==C||v.typeExpression!==F||v.comment!==le?tr(Zg(C,F,le),v):v}function km(v,C,F){let le=pf(335,v??xe("augments"),F);return le.class=C,le}function VE(v,C=Qi(v),F,le){return v.tagName!==C||v.class!==F||v.comment!==le?tr(km(C,F,le),v):v}function mg(v,C,F){let le=pf(336,v??xe("implements"),F);return le.class=C,le}function _b(v,C,F){let le=pf(354,v??xe("see"),F);return le.name=C,le}function q1(v,C,F,le){return v.tagName!==C||v.name!==F||v.comment!==le?tr(_b(C,F,le),v):v}function jE(v){let C=K(317);return C.name=v,C}function UD(v,C){return v.name!==C?tr(jE(C),v):v}function TS(v,C){let F=K(318);return F.left=v,F.right=C,F.transformFlags|=br(F.left)|br(F.right),F}function vA(v,C,F){return v.left!==C||v.right!==F?tr(TS(C,F),v):v}function Gp(v,C){let F=K(331);return F.name=v,F.text=C,F}function bA(v,C,F){return v.name!==C?tr(Gp(C,F),v):v}function Vl(v,C){let F=K(332);return F.name=v,F.text=C,F}function Oc(v,C,F){return v.name!==C?tr(Vl(C,F),v):v}function EA(v,C){let F=K(333);return F.name=v,F.text=C,F}function Ed(v,C,F){return v.name!==C?tr(EA(C,F),v):v}function rp(v,C=Qi(v),F,le){return v.tagName!==C||v.class!==F||v.comment!==le?tr(mg(C,F,le),v):v}function UE(v,C,F){return pf(v,C??xe(WU(v)),F)}function Lf(v,C,F=Qi(C),le){return C.tagName!==F||C.comment!==le?tr(UE(v,F,le),C):C}function hb(v,C,F,le){let Ke=pf(v,C??xe(WU(v)),le);return Ke.typeExpression=F,Ke}function gb(v,C,F=Qi(C),le,Ke){return C.tagName!==F||C.typeExpression!==le||C.comment!==Ke?tr(hb(v,F,le,Ke),C):C}function nd(v,C){return pf(334,v,C)}function X1(v,C,F){return v.tagName!==C||v.comment!==F?tr(nd(C,F),v):v}function Vp(v,C,F){let le=iv(347,v??xe(WU(347)),F);return le.typeExpression=C,le.locals=void 0,le.nextContainer=void 0,le}function SA(v,C=Qi(v),F,le){return v.tagName!==C||v.typeExpression!==F||v.comment!==le?tr(Vp(C,F,le),v):v}function TA(v){let C=K(328);return C.text=v,C}function Vs(v,C){return v.text!==C?tr(TA(C),v):v}function HD(v,C){let F=K(327);return F.comment=v,F.tags=Ga(C),F}function HE(v,C,F){return v.comment!==C||v.tags!==F?tr(HD(C,F),v):v}function AS(v,C,F){let le=K(284);return le.openingElement=v,le.children=j(C),le.closingElement=F,le.transformFlags|=br(le.openingElement)|Ua(le.children)|br(le.closingElement)|2,le}function xM(v,C,F,le){return v.openingElement!==C||v.children!==F||v.closingElement!==le?tr(AS(C,F,le),v):v}function _u(v,C,F){let le=K(285);return le.tagName=v,le.typeArguments=Ga(C),le.attributes=F,le.transformFlags|=br(le.tagName)|Ua(le.typeArguments)|br(le.attributes)|2,le.typeArguments&&(le.transformFlags|=1),le}function ey(v,C,F,le){return v.tagName!==C||v.typeArguments!==F||v.attributes!==le?tr(_u(C,F,le),v):v}function j_(v,C,F){let le=K(286);return le.tagName=v,le.typeArguments=Ga(C),le.attributes=F,le.transformFlags|=br(le.tagName)|Ua(le.typeArguments)|br(le.attributes)|2,C&&(le.transformFlags|=1),le}function Y1(v,C,F,le){return v.tagName!==C||v.typeArguments!==F||v.attributes!==le?tr(j_(C,F,le),v):v}function Ip(v){let C=K(287);return C.tagName=v,C.transformFlags|=br(C.tagName)|2,C}function $1(v,C){return v.tagName!==C?tr(Ip(C),v):v}function ip(v,C,F){let le=K(288);return le.openingFragment=v,le.children=j(C),le.closingFragment=F,le.transformFlags|=br(le.openingFragment)|Ua(le.children)|br(le.closingFragment)|2,le}function Q1(v,C,F,le){return v.openingFragment!==C||v.children!==F||v.closingFragment!==le?tr(ip(C,F,le),v):v}function ov(v,C){let F=K(12);return F.text=v,F.containsOnlyTriviaWhiteSpaces=!!C,F.transformFlags|=2,F}function AA(v,C,F){return v.text!==C||v.containsOnlyTriviaWhiteSpaces!==F?tr(ov(C,F),v):v}function KD(){let v=K(289);return v.transformFlags|=2,v}function JD(){let v=K(290);return v.transformFlags|=2,v}function IA(v,C){let F=Y(291);return F.name=v,F.initializer=C,F.transformFlags|=br(F.name)|br(F.initializer)|2,F}function qD(v,C,F){return v.name!==C||v.initializer!==F?tr(IA(C,F),v):v}function yb(v){let C=Y(292);return C.properties=j(v),C.transformFlags|=Ua(C.properties)|2,C}function xp(v,C){return v.properties!==C?tr(yb(C),v):v}function Ch(v){let C=K(293);return C.expression=v,C.transformFlags|=br(C.expression)|2,C}function XD(v,C){return v.expression!==C?tr(Ch(C),v):v}function xA(v,C){let F=K(294);return F.dotDotDotToken=v,F.expression=C,F.transformFlags|=br(F.dotDotDotToken)|br(F.expression)|2,F}function ts(v,C){return v.expression!==C?tr(xA(v.dotDotDotToken,C),v):v}function Sr(v,C){let F=K(295);return F.namespace=v,F.name=C,F.transformFlags|=br(F.namespace)|br(F.name)|2,F}function ff(v,C,F){return v.namespace!==C||v.name!==F?tr(Sr(C,F),v):v}function Du(v,C){let F=K(296);return F.expression=i().parenthesizeExpressionForDisallowedComma(v),F.statements=j(C),F.transformFlags|=br(F.expression)|Ua(F.statements),F.jsDoc=void 0,F}function IS(v,C,F){return v.expression!==C||v.statements!==F?tr(Du(C,F),v):v}function YD(v){let C=K(297);return C.statements=j(v),C.transformFlags=Ua(C.statements),C}function KE(v,C){return v.statements!==C?tr(YD(C),v):v}function xS(v,C){let F=K(298);switch(F.token=v,F.types=j(C),F.transformFlags|=Ua(F.types),v){case 96:F.transformFlags|=1024;break;case 119:F.transformFlags|=1;break;default:return R.assertNever(v)}return F}function RA(v,C){return v.types!==C?tr(xS(v.token,C),v):v}function _g(v,C){let F=K(299);return F.variableDeclaration=PM(v),F.block=C,F.transformFlags|=br(F.variableDeclaration)|br(F.block)|(v?0:64),F.locals=void 0,F.nextContainer=void 0,F}function i_(v,C,F){return v.variableDeclaration!==C||v.block!==F?tr(_g(C,F),v):v}function mf(v,C){let F=Y(303);return F.name=lc(v),F.initializer=i().parenthesizeExpressionForDisallowedComma(C),F.transformFlags|=Uv(F.name)|br(F.initializer),F.modifiers=void 0,F.questionToken=void 0,F.exclamationToken=void 0,F.jsDoc=void 0,F}function wm(v,C,F){return v.name!==C||v.initializer!==F?ty(mf(C,F),v):v}function ty(v,C){return v!==C&&(v.modifiers=C.modifiers,v.questionToken=C.questionToken,v.exclamationToken=C.exclamationToken),tr(v,C)}function hg(v,C){let F=Y(304);return F.name=lc(v),F.objectAssignmentInitializer=C&&i().parenthesizeExpressionForDisallowedComma(C),F.transformFlags|=Sk(F.name)|br(F.objectAssignmentInitializer)|1024,F.equalsToken=void 0,F.modifiers=void 0,F.questionToken=void 0,F.exclamationToken=void 0,F.jsDoc=void 0,F}function gg(v,C,F){return v.name!==C||v.objectAssignmentInitializer!==F?Z1(hg(C,F),v):v}function Z1(v,C){return v!==C&&(v.modifiers=C.modifiers,v.questionToken=C.questionToken,v.exclamationToken=C.exclamationToken,v.equalsToken=C.equalsToken),tr(v,C)}function sc(v){let C=Y(305);return C.expression=i().parenthesizeExpressionForDisallowedComma(v),C.transformFlags|=br(C.expression)|128|65536,C.jsDoc=void 0,C}function $D(v,C){return v.expression!==C?tr(sc(C),v):v}function kf(v,C){let F=Y(306);return F.name=lc(v),F.initializer=C&&i().parenthesizeExpressionForDisallowedComma(C),F.transformFlags|=br(F.name)|br(F.initializer)|1,F.jsDoc=void 0,F}function Nh(v,C,F){return v.name!==C||v.initializer!==F?tr(kf(C,F),v):v}function _f(v,C,F){let le=t.createBaseSourceFileNode(312);return le.statements=j(v),le.endOfFileToken=C,le.flags|=F,le.text="",le.fileName="",le.path="",le.resolvedPath="",le.originalFileName="",le.languageVersion=0,le.languageVariant=0,le.scriptKind=0,le.isDeclarationFile=!1,le.hasNoDefaultLib=!1,le.transformFlags|=Ua(le.statements)|br(le.endOfFileToken),le.locals=void 0,le.nextContainer=void 0,le.endFlowNode=void 0,le.nodeCount=0,le.identifierCount=0,le.symbolCount=0,le.parseDiagnostics=void 0,le.bindDiagnostics=void 0,le.bindSuggestionDiagnostics=void 0,le.lineMap=void 0,le.externalModuleIndicator=void 0,le.setExternalModuleIndicator=void 0,le.pragmas=void 0,le.checkJsDirective=void 0,le.referencedFiles=void 0,le.typeReferenceDirectives=void 0,le.libReferenceDirectives=void 0,le.amdDependencies=void 0,le.commentDirectives=void 0,le.identifiers=void 0,le.packageJsonLocations=void 0,le.packageJsonScope=void 0,le.imports=void 0,le.moduleAugmentations=void 0,le.ambientModuleNames=void 0,le.classifiableNames=void 0,le.impliedNodeFormat=void 0,le}function RS(v){let C=Object.create(v.redirectTarget);return Object.defineProperties(C,{id:{get(){return this.redirectInfo.redirectTarget.id},set(F){this.redirectInfo.redirectTarget.id=F}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(F){this.redirectInfo.redirectTarget.symbol=F}}}),C.redirectInfo=v,C}function JE(v){let C=RS(v.redirectInfo);return C.flags|=v.flags&-17,C.fileName=v.fileName,C.path=v.path,C.resolvedPath=v.resolvedPath,C.originalFileName=v.originalFileName,C.packageJsonLocations=v.packageJsonLocations,C.packageJsonScope=v.packageJsonScope,C.emitNode=void 0,C}function ex(v){let C=t.createBaseSourceFileNode(312);C.flags|=v.flags&-17;for(let F in v)if(!(Ts(C,F)||!Ts(v,F))){if(F==="emitNode"){C.emitNode=void 0;continue}C[F]=v[F]}return C}function DA(v){let C=v.redirectInfo?JE(v):ex(v);return r(C,v),C}function hf(v,C,F,le,Ke,Ht,hr){let eo=DA(v);return eo.statements=j(C),eo.isDeclarationFile=F,eo.referencedFiles=le,eo.typeReferenceDirectives=Ke,eo.hasNoDefaultLib=Ht,eo.libReferenceDirectives=hr,eo.transformFlags=Ua(eo.statements)|br(eo.endOfFileToken),eo}function Cs(v,C,F=v.isDeclarationFile,le=v.referencedFiles,Ke=v.typeReferenceDirectives,Ht=v.hasNoDefaultLib,hr=v.libReferenceDirectives){return v.statements!==C||v.isDeclarationFile!==F||v.referencedFiles!==le||v.typeReferenceDirectives!==Ke||v.hasNoDefaultLib!==Ht||v.libReferenceDirectives!==hr?tr(hf(v,C,F,le,Ke,Ht,hr),v):v}function DS(v,C=Xe){let F=K(313);return F.prepends=C,F.sourceFiles=v,F.syntheticFileReferences=void 0,F.syntheticTypeReferences=void 0,F.syntheticLibReferences=void 0,F.hasNoDefaultLib=void 0,F}function CS(v,C,F=Xe){return v.sourceFiles!==C||v.prepends!==F?tr(DS(C,F),v):v}function ny(v,C,F){let le=K(314);return le.prologues=v,le.syntheticReferences=C,le.texts=F,le.fileName="",le.text="",le.referencedFiles=Xe,le.libReferenceDirectives=Xe,le.getLineAndCharacterOfPosition=Ke=>gs(le,Ke),le}function vb(v,C){let F=K(v);return F.data=C,F}function qE(v){return vb(307,v)}function I(v,C){let F=vb(308,v);return F.texts=C,F}function oe(v,C){return vb(C?310:309,v)}function dt(v){let C=K(311);return C.data=v.data,C.section=v,C}function nn(){let v=K(315);return v.javascriptText="",v.declarationText="",v}function Lr(v,C=!1,F){let le=K(237);return le.type=v,le.isSpread=C,le.tupleNameSource=F,le}function wi(v){let C=K(358);return C._children=v,C}function vi(v){let C=K(359);return C.original=v,at(C,v),C}function Zi(v,C){let F=K(360);return F.expression=v,F.original=C,F.transformFlags|=br(F.expression)|1,at(F,C),F}function ma(v,C){return v.expression!==C?tr(Zi(C,v.original),v):v}function $d(v){if(Js(v)&&!eN(v)&&!v.original&&!v.emitNode&&!v.id){if(dP(v))return v.elements;if(ur(v)&&aae(v.operatorToken))return[v.left,v.right]}return v}function Cu(v){let C=K(361);return C.elements=j(Yte(v,$d)),C.transformFlags|=Ua(C.elements),C}function wf(v,C){return v.elements!==C?tr(Cu(C),v):v}function bb(v,C){let F=K(362);return F.expression=v,F.thisArg=C,F.transformFlags|=br(F.expression)|br(F.thisArg),F}function Si(v,C,F){return v.expression!==C||v.thisArg!==F?tr(bb(C,F),v):v}function Ph(v){let C=re(v.escapedText);return C.flags|=v.flags&-17,C.transformFlags=v.transformFlags,r(C,v),Rk(C,{...v.emitNode.autoGenerate}),C}function Vn(v){let C=re(v.escapedText);C.flags|=v.flags&-17,C.jsDoc=v.jsDoc,C.flowNode=v.flowNode,C.symbol=v.symbol,C.transformFlags=v.transformFlags,r(C,v);let F=DT(v);return F&&zy(C,F),C}function tx(v){let C=Ge(v.escapedText);return C.flags|=v.flags&-17,C.transformFlags=v.transformFlags,r(C,v),Rk(C,{...v.emitNode.autoGenerate}),C}function Eb(v){let C=Ge(v.escapedText);return C.flags|=v.flags&-17,C.transformFlags=v.transformFlags,r(C,v),C}function Sb(v){if(v===void 0)return v;if(Yi(v))return DA(v);if(rl(v))return Ph(v);if(Fe(v))return Vn(v);if(aT(v))return tx(v);if(Ki(v))return Eb(v);let C=e2(v.kind)?t.createBaseNode(v.kind):t.createBaseTokenNode(v.kind);C.flags|=v.flags&-17,C.transformFlags=v.transformFlags,r(C,v);for(let F in v)Ts(C,F)||!Ts(v,F)||(C[F]=v[F]);return C}function CA(v,C,F){return Un(zu(void 0,void 0,void 0,void 0,C?[C]:[],void 0,ni(v,!0)),void 0,F?[F]:[])}function NS(v,C,F){return Un(Pf(void 0,void 0,C?[C]:[],void 0,void 0,ni(v,!0)),void 0,F?[F]:[])}function U_(){return Sp(ce("0"))}function Mh(v){return sm(void 0,!1,v)}function QD(v){return Pm(void 0,!1,fA([J1(!1,void 0,v)]))}function NA(v,C){return C==="null"?w.createStrictEquality(v,Wt()):C==="undefined"?w.createStrictEquality(v,U_()):w.createStrictEquality(Wd(v),me(C))}function UB(v,C){return C==="null"?w.createStrictInequality(v,Wt()):C==="undefined"?w.createStrictInequality(v,U_()):w.createStrictInequality(Wd(v),me(C))}function Tb(v,C,F){return oT(v)?qo(vs(v,void 0,C),void 0,void 0,F):Un(Gs(v,C),void 0,F)}function c8(v,C,F){return Tb(v,"bind",[C,...F])}function d8(v,C,F){return Tb(v,"call",[C,...F])}function XE(v,C,F){return Tb(v,"apply",[C,F])}function o_(v,C,F){return Tb(xe(v),C,F)}function RM(v,C){return Tb(v,"slice",C===void 0?[]:[$E(C)])}function Lh(v,C){return Tb(v,"concat",C)}function nx(v,C,F){return o_("Object","defineProperty",[v,$E(C),F])}function u8(v,C){return o_("Object","getOwnPropertyDescriptor",[v,$E(C)])}function H_(v,C,F){return o_("Reflect","get",F?[v,C,F]:[v,C])}function X(v,C,F,le){return o_("Reflect","set",le?[v,C,F,le]:[v,C,F])}function Ae(v,C,F){return F?(v.push(mf(C,F)),!0):!1}function Ue(v,C){let F=[];Ae(F,"enumerable",$E(v.enumerable)),Ae(F,"configurable",$E(v.configurable));let le=Ae(F,"writable",$E(v.writable));le=Ae(F,"value",v.value)||le;let Ke=Ae(F,"get",v.get);return Ke=Ae(F,"set",v.set)||Ke,R.assert(!(le&&Ke),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Jo(F,!C)}function St(v,C){switch(v.kind){case 217:return cf(v,C);case 216:return Zl(v,v.type,C);case 234:return uf(v,C,v.type);case 238:return Mt(v,C,v.type);case 235:return we(v,C);case 360:return ma(v,C)}}function xt(v){return Wu(v)&&Js(v)&&Js(Fy(v))&&Js(C_(v))&&!gt(AR(v))&&!gt(xk(v))}function Ut(v,C,F=15){return v&&$4(v,F)&&!xt(v)?St(v,Ut(v.expression,C)):C}function Or(v,C,F){if(!C)return v;let le=sA(C,C.label,K0(C.statement)?Or(v,C.statement):v);return F&&F(C),le}function Wi(v,C){let F=ms(v);switch(F.kind){case 80:return C;case 110:case 9:case 10:case 11:return!1;case 209:return F.elements.length!==0;case 210:return F.properties.length>0;default:return!0}}function Ci(v,C,F,le=!1){let Ke=Yl(v,15),Ht,hr;return wu(Ke)?(Ht=tt(),hr=Ke):sP(Ke)?(Ht=tt(),hr=F!==void 0&&F<2?at(xe("_super"),Ke):Ke):za(Ke)&8192?(Ht=U_(),hr=i().parenthesizeLeftSideOfAccess(Ke,!1)):wr(Ke)?Wi(Ke.expression,le)?(Ht=fe(C),hr=Gs(at(w.createAssignment(Ht,Ke.expression),Ke.expression),Ke.name),at(hr,Ke)):(Ht=Ke.expression,hr=Ke):qs(Ke)?Wi(Ke.expression,le)?(Ht=fe(C),hr=wc(at(w.createAssignment(Ht,Ke.expression),Ke.expression),Ke.argumentExpression),at(hr,Ke)):(Ht=Ke.expression,hr=Ke):(Ht=U_(),hr=i().parenthesizeLeftSideOfAccess(v,!1)),{target:hr,thisArg:Ht}}function _i(v,C){return Gs(Hc(Jo([se(void 0,"value",[hi(void 0,void 0,v,void 0,void 0,void 0)],ni([ud(C)]))])),"value")}function Xi(v){return v.length>10?Cu(v):nu(v,w.createComma)}function ds(v,C,F,le=0,Ke){let Ht=Ke?v&&eF(v):No(v);if(Ht&&Fe(Ht)&&!rl(Ht)){let hr=ja(at(Sb(Ht),Ht),Ht.parent);return le|=za(Ht),F||(le|=96),C||(le|=3072),le&&lr(hr,le),hr}return Ce(v)}function Is(v,C,F){return ds(v,C,F,98304)}function $a(v,C,F,le){return ds(v,C,F,32768,le)}function Of(v,C,F){return ds(v,C,F,16384)}function K_(v,C,F){return ds(v,C,F)}function yg(v,C,F,le){let Ke=Gs(v,Js(C)?C:Sb(C));at(Ke,C);let Ht=0;return le||(Ht|=96),F||(Ht|=3072),Ht&&lr(Ke,Ht),Ke}function ry(v,C,F,le){return v&&Qr(C,32)?yg(v,ds(C),F,le):Of(C,F,le)}function iy(v,C,F,le){let Ke=PA(v,C,0,F);return ZD(v,C,Ke,le)}function Ab(v){return Ca(v.expression)&&v.expression.text==="use strict"}function op(){return Kd(ud(me("use strict")))}function PA(v,C,F=0,le){R.assert(C.length===0,"Prologue directives should be at the first statement in the target statements array");let Ke=!1,Ht=v.length;for(;Feo&&a_.splice(Ke,0,...C.slice(eo,js)),eo>hr&&a_.splice(le,0,...C.slice(hr,eo)),hr>Ht&&a_.splice(F,0,...C.slice(Ht,hr)),Ht>0)if(F===0)a_.splice(0,0,...C.slice(0,Ht));else{let Rb=new Map;for(let Om=0;Om=0;Om--){let QE=C[Om];Rb.has(QE.expression.text)||a_.unshift(QE)}}return b0(v)?at(j(a_,v.hasTrailingComma),v):v}function Ib(v,C){let F;return typeof C=="number"?F=Zt(C):F=C,fl(v)?qt(v,F,v.name,v.constraint,v.default):To(v)?uo(v,F,v.dotDotDotToken,v.name,v.questionToken,v.type,v.initializer):xR(v)?Kt(v,F,v.typeParameters,v.parameters,v.type):_p(v)?Ur(v,F,v.name,v.questionToken,v.type):Vo(v)?Ye(v,F,v.name,v.questionToken??v.exclamationToken,v.type,v.initializer):hh(v)?In(v,F,v.name,v.questionToken,v.typeParameters,v.parameters,v.type):Ul(v)?yi(v,F,v.asteriskToken,v.name,v.questionToken,v.typeParameters,v.parameters,v.type,v.body):Pl(v)?kn(v,F,v.parameters,v.body):Zp(v)?lt(v,F,v.name,v.parameters,v.type,v.body):hp(v)?ke(v,F,v.name,v.parameters,v.body):V0(v)?Ft(v,F,v.parameters,v.type):Ms(v)?Ru(v,F,v.asteriskToken,v.name,v.typeParameters,v.parameters,v.type,v.body):Fs(v)?z_(v,F,v.typeParameters,v.parameters,v.type,v.equalsGreaterThanToken,v.body):$c(v)?Nm(v,F,v.name,v.typeParameters,v.heritageClauses,v.members):Ml(v)?Ha(v,F,v.declarationList):Ec(v)?FD(v,F,v.asteriskToken,v.name,v.typeParameters,v.parameters,v.type,v.body):Sc(v)?FE(v,F,v.name,v.typeParameters,v.heritageClauses,v.members):fu(v)?yc(v,F,v.name,v.typeParameters,v.heritageClauses,v.members):Tm(v)?U1(v,F,v.name,v.typeParameters,v.type):gE(v)?cA(v,F,v.name,v.members):ql(v)?t_(v,F,v.name,v.body):Zc(v)?n_(v,F,v.isTypeOnly,v.name,v.moduleReference):Mc(v)?uA(v,F,v.importClause,v.moduleSpecifier,v.attributes):Ll(v)?pb(v,F,v.expression):Xl(v)?Qg(v,F,v.isTypeOnly,v.exportClause,v.moduleSpecifier,v.attributes):R.assertNever(v)}function eC(v,C){return To(v)?uo(v,C,v.dotDotDotToken,v.name,v.questionToken,v.type,v.initializer):Vo(v)?Ye(v,C,v.name,v.questionToken??v.exclamationToken,v.type,v.initializer):Ul(v)?yi(v,C,v.asteriskToken,v.name,v.questionToken,v.typeParameters,v.parameters,v.type,v.body):Zp(v)?lt(v,C,v.name,v.parameters,v.type,v.body):hp(v)?ke(v,C,v.name,v.parameters,v.body):$c(v)?Nm(v,C,v.name,v.typeParameters,v.heritageClauses,v.members):Sc(v)?FE(v,C,v.name,v.typeParameters,v.heritageClauses,v.members):R.assertNever(v)}function jp(v,C){switch(v.kind){case 177:return lt(v,v.modifiers,C,v.parameters,v.type,v.body);case 178:return ke(v,v.modifiers,C,v.parameters,v.body);case 174:return yi(v,v.modifiers,v.asteriskToken,C,v.questionToken,v.typeParameters,v.parameters,v.type,v.body);case 173:return In(v,v.modifiers,C,v.questionToken,v.typeParameters,v.parameters,v.type);case 172:return Ye(v,v.modifiers,C,v.questionToken??v.exclamationToken,v.type,v.initializer);case 171:return Ur(v,v.modifiers,C,v.questionToken,v.type);case 303:return wm(v,C,v.initializer)}}function Ga(v){return v?j(v):void 0}function lc(v){return typeof v=="string"?xe(v):v}function $E(v){return typeof v=="string"?me(v):typeof v=="number"?ce(v):typeof v=="boolean"?v?_t():Je():v}function rx(v){return v&&i().parenthesizeExpressionForDisallowedComma(v)}function NM(v){return typeof v=="number"?be(v):v}function xb(v){return v&&oH(v)?at(r(Yd(),v),v):v}function PM(v){return typeof v=="string"||v&&!Oi(v)?Vu(v,void 0,void 0,void 0):v}function tr(v,C){return v!==C&&(r(v,C),at(v,C)),v}}function WU(e){switch(e){case 351:return"type";case 349:return"returns";case 350:return"this";case 347:return"enum";case 337:return"author";case 339:return"class";case 340:return"public";case 341:return"private";case 342:return"protected";case 343:return"readonly";case 344:return"override";case 352:return"template";case 353:return"typedef";case 348:return"param";case 355:return"prop";case 345:return"callback";case 346:return"overload";case 335:return"augments";case 336:return"implements";default:return R.fail(`Unsupported kind: ${R.formatSyntaxKind(e)}`)}}function BBe(e,t){switch(Wy||(Wy=Ry(99,!1,0)),e){case 15:Wy.setText("`"+t+"`");break;case 16:Wy.setText("`"+t+"${");break;case 17:Wy.setText("}"+t+"${");break;case 18:Wy.setText("}"+t+"`");break}let r=Wy.scan();if(r===20&&(r=Wy.reScanTemplateToken(!1)),Wy.isUnterminated())return Wy.setText(void 0),qoe;let i;switch(r){case 15:case 16:case 17:case 18:i=Wy.getTokenValue();break}return i===void 0||Wy.scan()!==1?(Wy.setText(void 0),qoe):(Wy.setText(void 0),i)}function Uv(e){return e&&Fe(e)?Sk(e):br(e)}function Sk(e){return br(e)&-67108865}function GBe(e,t){return t|e.transformFlags&134234112}function br(e){if(!e)return 0;let t=e.transformFlags&~Koe(e.kind);return ou(e)&&rc(e.name)?GBe(e.name,t):t}function Ua(e){return e?e.transformFlags:0}function zSe(e){let t=0;for(let r of e)t|=br(r);e.transformFlags=t}function Koe(e){if(e>=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:return-2147450880;case 267:return-1941676032;case 169:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112;case 206:case 207:return-2147450880;case 216:case 238:case 234:case 360:case 217:case 108:return-2147483648;case 211:case 212:return-2147483648;default:return-2147483648}}function Z6(e){return e.flags|=16,e}function FU(e,t,r){let i,o,s,l,d,p,h,m,y,E;Co(e)?(s="",l=e,d=e.length,p=t,h=r):(R.assert(t==="js"||t==="dts"),s=(t==="js"?e.javascriptPath:e.declarationPath)||"",p=t==="js"?e.javascriptMapPath:e.declarationMapPath,m=()=>t==="js"?e.javascriptText:e.declarationText,y=()=>t==="js"?e.javascriptMapText:e.declarationMapText,d=()=>m().length,e.buildInfo&&e.buildInfo.bundle&&(R.assert(r===void 0||typeof r=="boolean"),i=r,o=t==="js"?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,E=e.oldFileOfCurrentEmit));let S=E?jBe(R.checkDefined(o)):VBe(o,i,d);return S.fileName=s,S.sourceMapPath=p,S.oldFileOfCurrentEmit=E,m&&y?(Object.defineProperty(S,"text",{get:m}),Object.defineProperty(S,"sourceMapText",{get:y})):(R.assert(!E),S.text=l??"",S.sourceMapText=h),S}function VBe(e,t,r){let i,o,s,l,d,p,h,m;for(let E of e?e.sections:Xe)switch(E.kind){case"prologue":i=Tn(i,at(L.createUnparsedPrologue(E.data),E));break;case"emitHelpers":o=Tn(o,JU().get(E.data));break;case"no-default-lib":m=!0;break;case"reference":s=Tn(s,{pos:-1,end:-1,fileName:E.data});break;case"type":l=Tn(l,{pos:-1,end:-1,fileName:E.data});break;case"type-import":l=Tn(l,{pos:-1,end:-1,fileName:E.data,resolutionMode:99});break;case"type-require":l=Tn(l,{pos:-1,end:-1,fileName:E.data,resolutionMode:1});break;case"lib":d=Tn(d,{pos:-1,end:-1,fileName:E.data});break;case"prepend":let S;for(let A of E.texts)(!t||A.kind!=="internal")&&(S=Tn(S,at(L.createUnparsedTextLike(A.data,A.kind==="internal"),A)));p=Hr(p,S),h=Tn(h,L.createUnparsedPrepend(E.data,S??Xe));break;case"internal":if(t){h||(h=[]);break}case"text":h=Tn(h,at(L.createUnparsedTextLike(E.data,E.kind==="internal"),E));break;default:R.assertNever(E)}if(!h){let E=L.createUnparsedTextLike(void 0,!1);JN(E,0,typeof r=="function"?r():r),h=[E]}let y=Eh.createUnparsedSource(i??Xe,void 0,h);return bR(i,y),bR(h,y),bR(p,y),y.hasNoDefaultLib=m,y.helpers=o,y.referencedFiles=s||Xe,y.typeReferenceDirectives=l,y.libReferenceDirectives=d||Xe,y}function jBe(e){let t,r;for(let o of e.sections)switch(o.kind){case"internal":case"text":t=Tn(t,at(L.createUnparsedTextLike(o.data,o.kind==="internal"),o));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":r=Tn(r,at(L.createUnparsedSyntheticReference(o),o));break;case"prologue":case"emitHelpers":case"prepend":break;default:R.assertNever(o)}let i=L.createUnparsedSource(Xe,r,t??Xe);return bR(r,i),bR(t,i),i.helpers=mn(e.sources&&e.sources.helpers,o=>JU().get(o)),i}function BSe(e,t,r,i,o,s){return Co(e)?BU(void 0,e,r,i,void 0,t,o,s):zU(e,t,r,i,o,s)}function zU(e,t,r,i,o,s,l,d){let p=Eh.createInputFiles();p.javascriptPath=t,p.javascriptMapPath=r,p.declarationPath=i,p.declarationMapPath=o,p.buildInfoPath=s;let h=new Map,m=A=>{if(A===void 0)return;let N=h.get(A);return N===void 0&&(N=e(A),h.set(A,N!==void 0?N:!1)),N!==!1?N:void 0},y=A=>{let N=m(A);return N!==void 0?N:`/* Input file ${A} was missing */\r +`},E;return Object.defineProperties(p,{javascriptText:{get:()=>y(t)},javascriptMapText:{get:()=>m(r)},declarationText:{get:()=>y(R.checkDefined(i))},declarationMapText:{get:()=>m(o)},buildInfo:{get:()=>{if(E===void 0&&s)if(l?.getBuildInfo)E=l.getBuildInfo(s,d.configFilePath)??!1;else{let A=m(s);E=A!==void 0?X3(s,A)??!1:!1}return E||void 0}}}),p}function BU(e,t,r,i,o,s,l,d,p,h,m){let y=Eh.createInputFiles();return y.javascriptPath=e,y.javascriptText=t,y.javascriptMapPath=r,y.javascriptMapText=i,y.declarationPath=o,y.declarationText=s,y.declarationMapPath=l,y.declarationMapText=d,y.buildInfoPath=p,y.buildInfo=h,y.oldFileOfCurrentEmit=m,y}function GSe(e,t,r){return new(jSe||(jSe=od.getSourceMapSourceConstructor()))(e,t,r)}function Rr(e,t){if(e.original!==t&&(e.original=t,t)){let r=t.emitNode;r&&(e.emitNode=UBe(r,e.emitNode))}return e}function UBe(e,t){let{flags:r,internalFlags:i,leadingComments:o,trailingComments:s,commentRange:l,sourceMapRange:d,tokenSourceMapRanges:p,constantValue:h,helpers:m,startsOnNewLine:y,snippetElement:E,classThis:S,assignedName:A}=e;if(t||(t={}),r&&(t.flags=r),i&&(t.internalFlags=i&-9),o&&(t.leadingComments=Hr(o.slice(),t.leadingComments)),s&&(t.trailingComments=Hr(s.slice(),t.trailingComments)),l&&(t.commentRange=l),d&&(t.sourceMapRange=d),p&&(t.tokenSourceMapRanges=HBe(p,t.tokenSourceMapRanges)),h!==void 0&&(t.constantValue=h),m)for(let N of m)t.helpers=Ig(t.helpers,N);return y!==void 0&&(t.startsOnNewLine=y),E!==void 0&&(t.snippetElement=E),S&&(t.classThis=S),A&&(t.assignedName=A),t}function HBe(e,t){t||(t=[]);for(let r in e)t[r]=e[r];return t}var e4,GU,Joe,Wy,qoe,Tk,VSe,L,jSe,KBe=bt({"src/compiler/factory/nodeFactory.ts"(){"use strict";Zo(),e4=0,GU=(e=>(e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode",e))(GU||{}),Joe=[],qoe={},Tk=joe(),VSe={createBaseSourceFileNode:e=>Z6(Tk.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>Z6(Tk.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>Z6(Tk.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>Z6(Tk.createBaseTokenNode(e)),createBaseNode:e=>Z6(Tk.createBaseNode(e))},L=Ek(4,VSe)}});function Ld(e){if(e.emitNode)R.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(eN(e)){if(e.kind===312)return e.emitNode={annotatedNodes:[e]};let t=Gn(Ro(Gn(e)))??R.fail("Could not determine parsed source file.");Ld(t).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function VU(e){var t,r;let i=(r=(t=Gn(Ro(e)))==null?void 0:t.emitNode)==null?void 0:r.annotatedNodes;if(i)for(let o of i)o.emitNode=void 0}function Ak(e){let t=Ld(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function lr(e,t){return Ld(e).flags=t,e}function D_(e,t){let r=Ld(e);return r.flags=r.flags|t,e}function Ik(e,t){return Ld(e).internalFlags=t,e}function BI(e,t){let r=Ld(e);return r.internalFlags=r.internalFlags|t,e}function Fy(e){var t;return((t=e.emitNode)==null?void 0:t.sourceMapRange)??e}function Da(e,t){return Ld(e).sourceMapRange=t,e}function USe(e,t){var r,i;return(i=(r=e.emitNode)==null?void 0:r.tokenSourceMapRanges)==null?void 0:i[t]}function Xoe(e,t,r){let i=Ld(e),o=i.tokenSourceMapRanges??(i.tokenSourceMapRanges=[]);return o[t]=r,e}function rP(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function t4(e,t){return Ld(e).startsOnNewLine=t,e}function C_(e){var t;return((t=e.emitNode)==null?void 0:t.commentRange)??e}function ic(e,t){return Ld(e).commentRange=t,e}function AR(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function hE(e,t){return Ld(e).leadingComments=t,e}function iP(e,t,r,i){return hE(e,Tn(AR(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function xk(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function GI(e,t){return Ld(e).trailingComments=t,e}function n4(e,t,r,i){return GI(e,Tn(xk(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function Yoe(e,t){hE(e,AR(t)),GI(e,xk(t));let r=Ld(t);return r.leadingComments=void 0,r.trailingComments=void 0,e}function $oe(e){var t;return(t=e.emitNode)==null?void 0:t.constantValue}function Qoe(e,t){let r=Ld(e);return r.constantValue=t,e}function VI(e,t){let r=Ld(e);return r.helpers=Tn(r.helpers,t),e}function Wg(e,t){if(gt(t)){let r=Ld(e);for(let i of t)r.helpers=Ig(r.helpers,i)}return e}function HSe(e,t){var r;let i=(r=e.emitNode)==null?void 0:r.helpers;return i?Sx(i,t):!1}function r4(e){var t;return(t=e.emitNode)==null?void 0:t.helpers}function Zoe(e,t,r){let i=e.emitNode,o=i&&i.helpers;if(!gt(o))return;let s=Ld(t),l=0;for(let d=0;d0&&(o[d-l]=p)}l>0&&(o.length-=l)}function jU(e){var t;return(t=e.emitNode)==null?void 0:t.snippetElement}function UU(e,t){let r=Ld(e);return r.snippetElement=t,e}function HU(e){return Ld(e).internalFlags|=4,e}function eae(e,t){let r=Ld(e);return r.typeNode=t,e}function tae(e){var t;return(t=e.emitNode)==null?void 0:t.typeNode}function zy(e,t){return Ld(e).identifierTypeArguments=t,e}function DT(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function Rk(e,t){return Ld(e).autoGenerate=t,e}function KSe(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function nae(e,t){return Ld(e).generatedImportReference=t,e}function rae(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var JBe=bt({"src/compiler/factory/emitNode.ts"(){"use strict";Zo()}});function iae(e){let t=e.factory,r=bu(()=>Ik(t.createTrue(),8)),i=bu(()=>Ik(t.createFalse(),8));return{getUnscopedHelperName:o,createDecorateHelper:s,createMetadataHelper:l,createParamHelper:d,createESDecorateHelper:N,createRunInitializersHelper:D,createAssignHelper:w,createAwaitHelper:j,createAsyncGeneratorHelper:K,createAsyncDelegatorHelper:Y,createAsyncValuesHelper:B,createRestHelper:ce,createAwaiterHelper:z,createExtendsHelper:ee,createTemplateObjectHelper:me,createSpreadArrayHelper:ge,createPropKeyHelper:q,createSetFunctionNameHelper:J,createValuesHelper:re,createReadHelper:pe,createGeneratorHelper:xe,createCreateBindingHelper:fe,createImportStarHelper:ne,createImportStarCallbackHelper:he,createImportDefaultHelper:Ce,createExportStarHelper:Ge,createClassPrivateFieldGetHelper:ve,createClassPrivateFieldSetHelper:Ie,createClassPrivateFieldInHelper:De,createAddDisposableResourceHelper:Le,createDisposeResourcesHelper:Et};function o(be){return lr(t.createIdentifier(be),8196)}function s(be,ze,tt,Wt){e.requestEmitHelper(i4);let _t=[];return _t.push(t.createArrayLiteralExpression(be,!0)),_t.push(ze),tt&&(_t.push(tt),Wt&&_t.push(Wt)),t.createCallExpression(o("__decorate"),void 0,_t)}function l(be,ze){return e.requestEmitHelper(o4),t.createCallExpression(o("__metadata"),void 0,[t.createStringLiteral(be),ze])}function d(be,ze,tt){return e.requestEmitHelper(a4),at(t.createCallExpression(o("__param"),void 0,[t.createNumericLiteral(ze+""),be]),tt)}function p(be){let ze=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),be.name),t.createPropertyAssignment(t.createIdentifier("metadata"),be.metadata)];return t.createObjectLiteralExpression(ze)}function h(be){let ze=be.computed?t.createElementAccessExpression(t.createIdentifier("obj"),be.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),be.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,ze))}function m(be){let ze=be.computed?t.createElementAccessExpression(t.createIdentifier("obj"),be.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),be.name);return t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj")),t.createParameterDeclaration(void 0,void 0,t.createIdentifier("value"))],void 0,void 0,t.createBlock([t.createExpressionStatement(t.createAssignment(ze,t.createIdentifier("value")))])))}function y(be){let ze=be.computed?be.name:Fe(be.name)?t.createStringLiteralFromNode(be.name):be.name;return t.createPropertyAssignment("has",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,t.createBinaryExpression(ze,103,t.createIdentifier("obj"))))}function E(be,ze){let tt=[];return tt.push(y(be)),ze.get&&tt.push(h(be)),ze.set&&tt.push(m(be)),t.createObjectLiteralExpression(tt)}function S(be){let ze=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral(be.kind)),t.createPropertyAssignment(t.createIdentifier("name"),be.name.computed?be.name.name:t.createStringLiteralFromNode(be.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),be.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),be.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),E(be.name,be.access)),t.createPropertyAssignment(t.createIdentifier("metadata"),be.metadata)];return t.createObjectLiteralExpression(ze)}function A(be){return be.kind==="class"?p(be):S(be)}function N(be,ze,tt,Wt,_t,Je){return e.requestEmitHelper(s4),t.createCallExpression(o("__esDecorate"),void 0,[be??t.createNull(),ze??t.createNull(),tt,A(Wt),_t,Je])}function D(be,ze,tt){return e.requestEmitHelper(l4),t.createCallExpression(o("__runInitializers"),void 0,tt?[be,ze,tt]:[be,ze])}function w(be){return rs(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,be):(e.requestEmitHelper(c4),t.createCallExpression(o("__assign"),void 0,be))}function j(be){return e.requestEmitHelper(jI),t.createCallExpression(o("__await"),void 0,[be])}function K(be,ze){return e.requestEmitHelper(jI),e.requestEmitHelper(d4),(be.emitNode||(be.emitNode={})).flags|=1572864,t.createCallExpression(o("__asyncGenerator"),void 0,[ze?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),be])}function Y(be){return e.requestEmitHelper(jI),e.requestEmitHelper(u4),t.createCallExpression(o("__asyncDelegator"),void 0,[be])}function B(be){return e.requestEmitHelper(p4),t.createCallExpression(o("__asyncValues"),void 0,[be])}function ce(be,ze,tt,Wt){e.requestEmitHelper(f4);let _t=[],Je=0;for(let ft=0;ft{let i="";for(let o=0;oe.name))}function oP(e,t){return ra(e)&&Fe(e.expression)&&(za(e.expression)&8192)!==0&&e.expression.escapedText===t}var qU,i4,o4,a4,s4,l4,c4,jI,d4,u4,p4,f4,m4,_4,h4,g4,y4,v4,b4,E4,S4,IR,T4,Dk,A4,I4,x4,R4,D4,C4,N4,JSe,Ck,Nk,qBe=bt({"src/compiler/factory/emitHelpers.ts"(){"use strict";Zo(),qU=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(qU||{}),i4={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:` var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); @@ -214,7 +214,7 @@ ${ue.join(` } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } - };`},xR={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:` + };`},IR={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:` var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); @@ -230,7 +230,7 @@ ${ue.join(` Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; - });`},Rk={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[xR,T4],priority:2,text:` + });`},Dk={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[IR,T4],priority:2,text:` var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; @@ -240,7 +240,7 @@ ${ue.join(` };`},A4={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:` var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; - };`},I4={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[xR],priority:2,text:` + };`},I4={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[IR],priority:2,text:` var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); };`},x4={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:` @@ -303,73 +303,73 @@ ${ue.join(` })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { var e = new Error(message); return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; - });`},Dk={name:"typescript:async-super",scoped:!0,text:KU` - const ${"_superIndex"} = name => super[name];`},Ck={name:"typescript:advanced-async-super",scoped:!0,text:KU` + });`},Ck={name:"typescript:async-super",scoped:!0,text:KU` + const ${"_superIndex"} = name => super[name];`},Nk={name:"typescript:advanced-async-super",scoped:!0,text:KU` const ${"_superIndex"} = (function (geti, seti) { const cache = Object.create(null); return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } }); - })(name => super[name], (name, value) => super[name] = value);`}}});function mp(e){return e.kind===9}function P4(e){return e.kind===10}function Da(e){return e.kind===11}function UI(e){return e.kind===12}function XU(e){return e.kind===14}function HI(e){return e.kind===15}function KI(e){return e.kind===16}function YU(e){return e.kind===17}function M4(e){return e.kind===18}function L4(e){return e.kind===26}function tae(e){return e.kind===28}function $U(e){return e.kind===40}function QU(e){return e.kind===41}function Nk(e){return e.kind===42}function Pk(e){return e.kind===54}function Uv(e){return e.kind===58}function nae(e){return e.kind===59}function k4(e){return e.kind===29}function rae(e){return e.kind===39}function Fe(e){return e.kind===80}function Ki(e){return e.kind===81}function JI(e){return e.kind===95}function w4(e){return e.kind===90}function oP(e){return e.kind===134}function iae(e){return e.kind===131}function ZU(e){return e.kind===135}function oae(e){return e.kind===148}function qI(e){return e.kind===126}function aae(e){return e.kind===128}function sae(e){return e.kind===164}function lae(e){return e.kind===129}function aP(e){return e.kind===108}function sP(e){return e.kind===102}function cae(e){return e.kind===84}function Su(e){return e.kind===166}function Ya(e){return e.kind===167}function fl(e){return e.kind===168}function Ao(e){return e.kind===169}function bd(e){return e.kind===170}function _p(e){return e.kind===171}function Uo(e){return e.kind===172}function _h(e){return e.kind===173}function Ul(e){return e.kind===174}function Al(e){return e.kind===175}function Pl(e){return e.kind===176}function Qp(e){return e.kind===177}function hp(e){return e.kind===178}function XI(e){return e.kind===179}function Mk(e){return e.kind===180}function G0(e){return e.kind===181}function Lk(e){return e.kind===182}function If(e){return e.kind===183}function hh(e){return e.kind===184}function RR(e){return e.kind===185}function YI(e){return e.kind===186}function gp(e){return e.kind===187}function kk(e){return e.kind===188}function $I(e){return e.kind===189}function DR(e){return e.kind===202}function O4(e){return e.kind===190}function W4(e){return e.kind===191}function Hv(e){return e.kind===192}function QI(e){return e.kind===193}function ZI(e){return e.kind===194}function CT(e){return e.kind===195}function NT(e){return e.kind===196}function wk(e){return e.kind===197}function PT(e){return e.kind===198}function MT(e){return e.kind===199}function CR(e){return e.kind===200}function Kv(e){return e.kind===201}function rg(e){return e.kind===205}function eH(e){return e.kind===204}function dae(e){return e.kind===203}function tm(e){return e.kind===206}function V0(e){return e.kind===207}function Xa(e){return e.kind===208}function uu(e){return e.kind===209}function Ma(e){return e.kind===210}function kr(e){return e.kind===211}function Js(e){return e.kind===212}function ia(e){return e.kind===213}function j0(e){return e.kind===214}function U0(e){return e.kind===215}function uae(e){return e.kind===216}function Ou(e){return e.kind===217}function Ps(e){return e.kind===218}function Os(e){return e.kind===219}function pae(e){return e.kind===220}function NR(e){return e.kind===221}function e1(e){return e.kind===222}function Jv(e){return e.kind===223}function qv(e){return e.kind===224}function tH(e){return e.kind===225}function dr(e){return e.kind===226}function PR(e){return e.kind===227}function F4(e){return e.kind===228}function z4(e){return e.kind===229}function Jm(e){return e.kind===230}function Zc(e){return e.kind===231}function jc(e){return e.kind===232}function zy(e){return e.kind===233}function Ok(e){return e.kind===234}function nH(e){return e.kind===238}function t1(e){return e.kind===235}function lP(e){return e.kind===236}function VSe(e){return e.kind===237}function B4(e){return e.kind===360}function cP(e){return e.kind===361}function dP(e){return e.kind===239}function fae(e){return e.kind===240}function Ko(e){return e.kind===241}function Ml(e){return e.kind===243}function rH(e){return e.kind===242}function ed(e){return e.kind===244}function LT(e){return e.kind===245}function jSe(e){return e.kind===246}function USe(e){return e.kind===247}function kT(e){return e.kind===248}function G4(e){return e.kind===249}function Wk(e){return e.kind===250}function HSe(e){return e.kind===251}function KSe(e){return e.kind===252}function Sm(e){return e.kind===253}function mae(e){return e.kind===254}function uP(e){return e.kind===255}function H0(e){return e.kind===256}function iH(e){return e.kind===257}function wT(e){return e.kind===258}function JSe(e){return e.kind===259}function wi(e){return e.kind===260}function Uc(e){return e.kind===261}function Ec(e){return e.kind===262}function Sc(e){return e.kind===263}function pu(e){return e.kind===264}function Tm(e){return e.kind===265}function hE(e){return e.kind===266}function ql(e){return e.kind===267}function N_(e){return e.kind===268}function pP(e){return e.kind===269}function Fk(e){return e.kind===270}function td(e){return e.kind===271}function Lc(e){return e.kind===272}function gh(e){return e.kind===273}function qSe(e){return e.kind===302}function _ae(e){return e.kind===300}function XSe(e){return e.kind===301}function n1(e){return e.kind===300}function hae(e){return e.kind===301}function Xv(e){return e.kind===274}function yh(e){return e.kind===280}function zg(e){return e.kind===275}function Qu(e){return e.kind===276}function Ll(e){return e.kind===277}function Xl(e){return e.kind===278}function xf(e){return e.kind===279}function Kd(e){return e.kind===281}function YSe(e){return e.kind===282}function oH(e){return e.kind===359}function r1(e){return e.kind===362}function vh(e){return e.kind===283}function ig(e){return e.kind===284}function OT(e){return e.kind===285}function P_(e){return e.kind===286}function K0(e){return e.kind===287}function J0(e){return e.kind===288}function i1(e){return e.kind===289}function gae(e){return e.kind===290}function M_(e){return e.kind===291}function q0(e){return e.kind===292}function o1(e){return e.kind===293}function fP(e){return e.kind===294}function qm(e){return e.kind===295}function MR(e){return e.kind===296}function mP(e){return e.kind===297}function Zp(e){return e.kind===298}function X0(e){return e.kind===299}function mc(e){return e.kind===303}function Zu(e){return e.kind===304}function By(e){return e.kind===305}function Y0(e){return e.kind===306}function yae(e){return e.kind===308}function Yi(e){return e.kind===312}function aH(e){return e.kind===313}function WT(e){return e.kind===314}function $0(e){return e.kind===316}function _P(e){return e.kind===317}function gE(e){return e.kind===318}function vae(e){return e.kind===331}function bae(e){return e.kind===332}function $Se(e){return e.kind===333}function Eae(e){return e.kind===319}function Sae(e){return e.kind===320}function LR(e){return e.kind===321}function V4(e){return e.kind===322}function sH(e){return e.kind===323}function kR(e){return e.kind===324}function j4(e){return e.kind===325}function QSe(e){return e.kind===326}function Xm(e){return e.kind===327}function FT(e){return e.kind===329}function yE(e){return e.kind===330}function a1(e){return e.kind===335}function ZSe(e){return e.kind===337}function Tae(e){return e.kind===339}function lH(e){return e.kind===345}function cH(e){return e.kind===340}function dH(e){return e.kind===341}function uH(e){return e.kind===342}function pH(e){return e.kind===343}function U4(e){return e.kind===344}function wR(e){return e.kind===346}function fH(e){return e.kind===338}function eTe(e){return e.kind===354}function zk(e){return e.kind===347}function Ym(e){return e.kind===348}function H4(e){return e.kind===349}function mH(e){return e.kind===350}function hP(e){return e.kind===351}function nm(e){return e.kind===352}function zT(e){return e.kind===353}function tTe(e){return e.kind===334}function Aae(e){return e.kind===355}function K4(e){return e.kind===336}function J4(e){return e.kind===357}function nTe(e){return e.kind===356}function OR(e){return e.kind===358}var VBe=bt({"src/compiler/factory/nodeTests.ts"(){"use strict";ea()}});function Bk(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function BT(e,t,r,i){if(Ya(r))return at(e.createElementAccessExpression(t,r.expression),i);{let o=at(Hh(r)?e.createPropertyAccessExpression(t,r):e.createElementAccessExpression(t,r),r);return D_(o,128),o}}function Iae(e,t){let r=bh.createIdentifier(e||"React");return ja(r,Do(t)),r}function xae(e,t,r){if(Su(t)){let i=xae(e,t.left,r),o=e.createIdentifier(gr(t.right));return o.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,o)}else return Iae(gr(t),r)}function _H(e,t,r,i){return t?xae(e,t,i):e.createPropertyAccessExpression(Iae(r,i),"createElement")}function jBe(e,t,r,i){return t?xae(e,t,i):e.createPropertyAccessExpression(Iae(r,i),"Fragment")}function Rae(e,t,r,i,o,s){let l=[r];if(i&&l.push(i),o&&o.length>0)if(i||l.push(e.createNull()),o.length>1)for(let d of o)Jd(d),l.push(d);else l.push(o[0]);return at(e.createCallExpression(t,void 0,l),s)}function Dae(e,t,r,i,o,s,l){let p=[jBe(e,r,i,s),e.createNull()];if(o&&o.length>0)if(o.length>1)for(let h of o)Jd(h),p.push(h);else p.push(o[0]);return at(e.createCallExpression(_H(e,t,i,s),void 0,p),l)}function hH(e,t,r){if(Uc(t)){let i=Va(t.declarations),o=e.updateVariableDeclaration(i,i.name,void 0,void 0,r);return at(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[o])),t)}else{let i=at(e.createAssignment(t,r),t);return at(e.createExpressionStatement(i),t)}}function rTe(e,t,r){return Ko(t)?e.updateBlock(t,at(e.createNodeArray([r,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,r]),!0)}function Gk(e,t){if(Su(t)){let r=Gk(e,t.left),i=ja(at(e.cloneNode(t.right),t.right),t.right.parent);return at(e.createPropertyAccessExpression(r,i),t)}else return ja(at(e.cloneNode(t),t),t.parent)}function gH(e,t){return Fe(t)?e.createStringLiteralFromNode(t):Ya(t)?ja(at(e.cloneNode(t.expression),t.expression),t.expression.parent):ja(at(e.cloneNode(t),t),t.parent)}function UBe(e,t,r,i,o){let{firstAccessor:s,getAccessor:l,setAccessor:d}=AT(t,r);if(r===s)return at(e.createObjectDefinePropertyCall(i,gH(e,r.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:l&&at(xr(e.createFunctionExpression(y0(l),void 0,void 0,void 0,l.parameters,void 0,l.body),l),l),set:d&&at(xr(e.createFunctionExpression(y0(d),void 0,void 0,void 0,d.parameters,void 0,d.body),d),d)},!o)),s)}function HBe(e,t,r){return xr(at(e.createAssignment(BT(e,r,t.name,t.name),t.initializer),t),t)}function KBe(e,t,r){return xr(at(e.createAssignment(BT(e,r,t.name,t.name),e.cloneNode(t.name)),t),t)}function JBe(e,t,r){return xr(at(e.createAssignment(BT(e,r,t.name,t.name),xr(at(e.createFunctionExpression(y0(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function Cae(e,t,r,i){switch(r.name&&Ki(r.name)&&x.failBadSyntaxKind(r.name,"Private identifiers are not allowed in object literals."),r.kind){case 177:case 178:return UBe(e,t.properties,r,i,!!t.multiLine);case 303:return HBe(e,r,i);case 304:return KBe(e,r,i);case 174:return JBe(e,r,i)}}function q4(e,t,r,i,o){let s=t.operator;x.assert(s===46||s===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");let l=e.createTempVariable(i);r=e.createAssignment(l,r),at(r,t.operand);let d=qv(t)?e.createPrefixUnaryExpression(s,l):e.createPostfixUnaryExpression(l,s);return at(d,t),o&&(d=e.createAssignment(o,d),at(d,t)),r=e.createComma(r,d),at(r,t),tH(t)&&(r=e.createComma(r,l),at(r,t)),r}function yH(e){return(za(e)&65536)!==0}function Bg(e){return(za(e)&32768)!==0}function X4(e){return(za(e)&16384)!==0}function iTe(e){return Da(e.expression)&&e.expression.text==="use strict"}function vH(e){for(let t of e)if(vm(t)){if(iTe(t))return t}else break}function Nae(e){let t=Xc(e);return t!==void 0&&vm(t)&&iTe(t)}function Vk(e){return e.kind===226&&e.operatorToken.kind===28}function gP(e){return Vk(e)||cP(e)}function WR(e){return Ou(e)&&ir(e)&&!!tE(e)}function Y4(e){let t=nE(e);return x.assertIsDefined(t),t}function $4(e,t=15){switch(e.kind){case 217:return t&16&&WR(e)?!1:(t&1)!==0;case 216:case 234:case 233:case 238:return(t&2)!==0;case 235:return(t&4)!==0;case 360:return(t&8)!==0}return!1}function Yl(e,t=15){for(;$4(e,t);)e=e.expression;return e}function Pae(e,t=15){let r=e.parent;for(;$4(r,t);)r=r.parent,x.assert(r);return r}function oTe(e){return Yl(e,6)}function Jd(e){return t4(e,!0)}function jk(e){let t=Nl(e,Yi),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function Mae(e){let t=Nl(e,Yi),r=t&&t.emitNode;return!!r&&(!!r.externalHelpersModuleName||!!r.externalHelpers)}function bH(e,t,r,i,o,s,l){if(i.importHelpers&&TI(r,i)){let d,p=Ld(i);if(p>=5&&p<=99||r.impliedNodeFormat===99){let h=r4(r);if(h){let m=[];for(let y of h)if(!y.scoped){let E=y.importName;E&&yf(m,E)}if(gt(m)){m.sort(Vd),d=e.createNamedImports(mn(m,S=>TF(r,S)?e.createImportSpecifier(!1,void 0,e.createIdentifier(S)):e.createImportSpecifier(!1,e.createIdentifier(S),t.getUnscopedHelperName(S))));let y=Nl(r,Yi),E=kd(y);E.externalHelpers=!0}}}else{let h=Lae(e,r,i,o,s||l);h&&(d=e.createNamespaceImport(h))}if(d){let h=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,d),e.createStringLiteral(Gv),void 0);return BI(h,2),h}}}function Lae(e,t,r,i,o){if(r.importHelpers&&TI(t,r)){let s=jk(t);if(s)return s;let l=Ld(r),d=(i||mh(r)&&o)&&l!==4&&(l<5||t.impliedNodeFormat===1);if(!d){let p=r4(t);if(p){for(let h of p)if(!h.scoped){d=!0;break}}}if(d){let p=Nl(t,Yi),h=kd(p);return h.externalHelpersModuleName||(h.externalHelpersModuleName=e.createUniqueName(Gv))}}}function FR(e,t,r){let i=nR(t);if(i&&!II(t)&&!IF(t)){let o=i.name;return rl(o)?o:e.createIdentifier(S0(r,o)||gr(o))}if(t.kind===272&&t.importClause||t.kind===278&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function s1(e,t,r,i,o,s){let l=tR(t);if(l&&Da(l))return XBe(t,i,e,o,s)||qBe(e,l,r)||e.cloneNode(l)}function qBe(e,t,r){let i=r.renamedDependencies&&r.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function Uk(e,t,r,i){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&xs(i))return e.createStringLiteral(Wj(r,t.fileName))}}function XBe(e,t,r,i,o){return Uk(r,i.getExternalModuleFileFromDeclaration(e),t,o)}function Hk(e){if(n2(e))return e.initializer;if(mc(e)){let t=e.initializer;return Mc(t,!0)?t.right:void 0}if(Zu(e))return e.objectAssignmentInitializer;if(Mc(e,!0))return e.right;if(Jm(e))return Hk(e.expression)}function Yv(e){if(n2(e))return e.name;if(Pg(e)){switch(e.kind){case 303:return Yv(e.initializer);case 304:return e.name;case 305:return Yv(e.expression)}return}return Mc(e,!0)?Yv(e.left):Jm(e)?Yv(e.expression):e}function Q4(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function EH(e){let t=Z4(e);return x.assert(!!t||By(e),"Invalid property name for binding element."),t}function Z4(e){switch(e.kind){case 208:if(e.propertyName){let r=e.propertyName;return Ki(r)?x.failBadSyntaxKind(r):Ya(r)&&aTe(r.expression)?r.expression:r}break;case 303:if(e.name){let r=e.name;return Ki(r)?x.failBadSyntaxKind(r):Ya(r)&&aTe(r.expression)?r.expression:r}break;case 305:return e.name&&Ki(e.name)?x.failBadSyntaxKind(e.name):e.name}let t=Yv(e);if(t&&rc(t))return t}function aTe(e){let t=e.kind;return t===11||t===9}function zR(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function SH(e){if(e){let t=e;for(;;){if(Fe(t)||!t.body)return Fe(t)?t:t.name;t=t.body}}}function sTe(e){let t=e.kind;return t===176||t===178}function kae(e){let t=e.kind;return t===176||t===177||t===178}function TH(e){let t=e.kind;return t===303||t===304||t===262||t===176||t===181||t===175||t===282||t===243||t===264||t===265||t===266||t===267||t===271||t===272||t===270||t===278||t===277}function wae(e){let t=e.kind;return t===175||t===303||t===304||t===282||t===270}function Oae(e){return Uv(e)||Pk(e)}function Wae(e){return Fe(e)||wk(e)}function Fae(e){return oae(e)||$U(e)||QU(e)}function zae(e){return Uv(e)||$U(e)||QU(e)}function Bae(e){return Fe(e)||Da(e)}function lTe(e){let t=e.kind;return t===106||t===112||t===97||b0(e)||qv(e)}function YBe(e){return e===43}function $Be(e){return e===42||e===44||e===45}function QBe(e){return YBe(e)||$Be(e)}function ZBe(e){return e===40||e===41}function e5e(e){return ZBe(e)||QBe(e)}function t5e(e){return e===48||e===49||e===50}function AH(e){return t5e(e)||e5e(e)}function n5e(e){return e===30||e===33||e===32||e===34||e===104||e===103}function r5e(e){return n5e(e)||AH(e)}function i5e(e){return e===35||e===37||e===36||e===38}function o5e(e){return i5e(e)||r5e(e)}function a5e(e){return e===51||e===52||e===53}function s5e(e){return a5e(e)||o5e(e)}function l5e(e){return e===56||e===57}function c5e(e){return l5e(e)||s5e(e)}function d5e(e){return e===61||c5e(e)||Ly(e)}function u5e(e){return d5e(e)||e===28}function Gae(e){return u5e(e.kind)}function e3(e,t,r,i,o,s){let l=new uTe(e,t,r,i,o,s);return d;function d(p,h){let m={value:void 0},y=[xH.enter],E=[p],S=[void 0],A=0;for(;y[A]!==xH.done;)A=y[A](l,A,y,E,S,m,h);return x.assertEqual(A,0),m.value}}function cTe(e){return e===95||e===90}function Kk(e){let t=e.kind;return cTe(t)}function dTe(e){let t=e.kind;return Dy(t)&&!cTe(t)}function Vae(e,t){if(t!==void 0)return t.length===0?t:at(e.createNodeArray([],t.hasTrailingComma),t)}function Jk(e){var t;let r=e.emitNode.autoGenerate;if(r.flags&4){let i=r.id,o=e,s=o.original;for(;s;){o=s;let l=(t=o.emitNode)==null?void 0:t.autoGenerate;if(Hh(o)&&(l===void 0||l.flags&4&&l.id!==i))break;s=o.original}return o}return e}function BR(e,t){return typeof e=="object"?vE(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function p5e(e,t){return typeof e=="string"?e:f5e(e,x.checkDefined(t))}function f5e(e,t){return aT(e)?t(e).slice(1):rl(e)?t(e):Ki(e)?e.escapedText.slice(1):gr(e)}function vE(e,t,r,i,o){return t=BR(t,o),i=BR(i,o),r=p5e(r,o),`${e?"#":""}${t}${r}${i}`}function IH(e,t,r,i){return e.updatePropertyDeclaration(t,r,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,i)}function jae(e,t,r,i,o=e.createThis()){return e.createGetAccessorDeclaration(r,i,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(o,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function Uae(e,t,r,i,o=e.createThis()){return e.createSetAccessorDeclaration(r,i,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(o,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function t3(e){let t=e.expression;for(;;){if(t=Yl(t),cP(t)){t=Ja(t.elements);continue}if(Vk(t)){t=t.right;continue}if(Mc(t,!0)&&rl(t.left))return t;break}}function m5e(e){return Ou(e)&&Ks(e)&&!e.emitNode}function n3(e,t){if(m5e(e))n3(e.expression,t);else if(Vk(e))n3(e.left,t),n3(e.right,t);else if(cP(e))for(let r of e.elements)n3(r,t);else t.push(e)}function Hae(e){let t=[];return n3(e,t),t}function qk(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of zR(e)){let r=Yv(t);if(r&&sN(r)&&(r.transformFlags&65536||r.transformFlags&128&&qk(r)))return!0}return!1}var xH,uTe,_5e=bt({"src/compiler/factory/utilities.ts"(){"use strict";ea(),(e=>{function t(m,y,E,S,A,N,D){let w=y>0?A[y-1]:void 0;return x.assertEqual(E[y],t),A[y]=m.onEnter(S[y],w,D),E[y]=d(m,t),y}e.enter=t;function r(m,y,E,S,A,N,D){x.assertEqual(E[y],r),x.assertIsDefined(m.onLeft),E[y]=d(m,r);let w=m.onLeft(S[y].left,A[y],S[y]);return w?(h(y,S,w),p(y,E,S,A,w)):y}e.left=r;function i(m,y,E,S,A,N,D){return x.assertEqual(E[y],i),x.assertIsDefined(m.onOperator),E[y]=d(m,i),m.onOperator(S[y].operatorToken,A[y],S[y]),y}e.operator=i;function o(m,y,E,S,A,N,D){x.assertEqual(E[y],o),x.assertIsDefined(m.onRight),E[y]=d(m,o);let w=m.onRight(S[y].right,A[y],S[y]);return w?(h(y,S,w),p(y,E,S,A,w)):y}e.right=o;function s(m,y,E,S,A,N,D){x.assertEqual(E[y],s),E[y]=d(m,s);let w=m.onExit(S[y],A[y]);if(y>0){if(y--,m.foldState){let j=E[y]===s?"right":"left";A[y]=m.foldState(A[y],w,j)}}else N.value=w;return y}e.exit=s;function l(m,y,E,S,A,N,D){return x.assertEqual(E[y],l),y}e.done=l;function d(m,y){switch(y){case t:if(m.onLeft)return r;case r:if(m.onOperator)return i;case i:if(m.onRight)return o;case o:return s;case s:return l;case l:return l;default:x.fail("Invalid state")}}e.nextState=d;function p(m,y,E,S,A){return m++,y[m]=t,E[m]=A,S[m]=void 0,m}function h(m,y,E){if(x.shouldAssert(2))for(;m>=0;)x.assert(y[m]!==E,"Circular traversal detected."),m--}})(xH||(xH={})),uTe=class{constructor(e,t,r,i,o,s){this.onEnter=e,this.onLeft=t,this.onOperator=r,this.onRight=i,this.onExit=o,this.foldState=s}}}});function at(e,t){return t?fh(e,t.pos,t.end):e}function Am(e){let t=e.kind;return t===168||t===169||t===171||t===172||t===173||t===174||t===176||t===177||t===178||t===181||t===185||t===218||t===219||t===231||t===243||t===262||t===263||t===264||t===265||t===266||t===267||t===271||t===272||t===277||t===278}function GT(e){let t=e.kind;return t===169||t===172||t===174||t===177||t===178||t===231||t===263}var h5e=bt({"src/compiler/factory/utilitiesPublic.ts"(){"use strict";ea()}});function Ht(e,t){return t&&e(t)}function zi(e,t,r){if(r){if(t)return t(r);for(let i of r){let o=e(i);if(o)return o}}}function RH(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function Xk(e){return gn(e.statements,g5e)||y5e(e)}function g5e(e){return Am(e)&&v5e(e,95)||td(e)&&vh(e.moduleReference)||Lc(e)||Ll(e)||Xl(e)?e:void 0}function y5e(e){return e.flags&8388608?pTe(e):void 0}function pTe(e){return b5e(e)?e:Go(e,pTe)}function v5e(e,t){return gt(e.modifiers,r=>r.kind===t)}function b5e(e){return lP(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function fTe(e,t,r){return zi(t,r,e.typeParameters)||zi(t,r,e.parameters)||Ht(t,e.type)}function mTe(e,t,r){return zi(t,r,e.types)}function _Te(e,t,r){return Ht(t,e.type)}function hTe(e,t,r){return zi(t,r,e.elements)}function gTe(e,t,r){return Ht(t,e.expression)||Ht(t,e.questionDotToken)||zi(t,r,e.typeArguments)||zi(t,r,e.arguments)}function yTe(e,t,r){return zi(t,r,e.statements)}function vTe(e,t,r){return Ht(t,e.label)}function bTe(e,t,r){return zi(t,r,e.modifiers)||Ht(t,e.name)||zi(t,r,e.typeParameters)||zi(t,r,e.heritageClauses)||zi(t,r,e.members)}function ETe(e,t,r){return zi(t,r,e.elements)}function STe(e,t,r){return Ht(t,e.propertyName)||Ht(t,e.name)}function TTe(e,t,r){return Ht(t,e.tagName)||zi(t,r,e.typeArguments)||Ht(t,e.attributes)}function yP(e,t,r){return Ht(t,e.type)}function ATe(e,t,r){return Ht(t,e.tagName)||(e.isNameFirst?Ht(t,e.name)||Ht(t,e.typeExpression):Ht(t,e.typeExpression)||Ht(t,e.name))||(typeof e.comment=="string"?void 0:zi(t,r,e.comment))}function vP(e,t,r){return Ht(t,e.tagName)||Ht(t,e.typeExpression)||(typeof e.comment=="string"?void 0:zi(t,r,e.comment))}function Kae(e,t,r){return Ht(t,e.name)}function GR(e,t,r){return Ht(t,e.tagName)||(typeof e.comment=="string"?void 0:zi(t,r,e.comment))}function E5e(e,t,r){return Ht(t,e.expression)}function Go(e,t,r){if(e===void 0||e.kind<=165)return;let i=kTe[e.kind];return i===void 0?void 0:i(e,t,r)}function bP(e,t,r){let i=ITe(e),o=[];for(;o.length=0;--d)i.push(s[d]),o.push(l)}else{let d=t(s,l);if(d){if(d==="skip")continue;return d}if(s.kind>=166)for(let p of ITe(s))i.push(p),o.push(s)}}}function ITe(e){let t=[];return Go(e,r,r),t;function r(i){t.unshift(i)}}function xTe(e){e.externalModuleIndicator=Xk(e)}function Yk(e,t,r,i=!1,o){var s,l,d,p;(s=rr)==null||s.push(rr.Phase.Parse,"createSourceFile",{path:e},!0),el("beforeParse");let h;(l=nu)==null||l.logStartParseSourceFile(e);let{languageVersion:m,setExternalModuleIndicator:y,impliedNodeFormat:E,jsDocParsingMode:S}=typeof r=="object"?r:{languageVersion:r};if(m===100)h=EE.parseSourceFile(e,t,m,void 0,i,6,qa,S);else{let A=E===void 0?y:N=>(N.impliedNodeFormat=E,(y||xTe)(N));h=EE.parseSourceFile(e,t,m,void 0,i,o,A,S)}return(d=nu)==null||d.logStopParseSourceFile(),el("afterParse"),Xp("Parse","beforeParse","afterParse"),(p=rr)==null||p.pop(),h}function l1(e,t){return EE.parseIsolatedEntityName(e,t)}function $k(e,t){return EE.parseJsonText(e,t)}function oc(e){return e.externalModuleIndicator!==void 0}function DH(e,t,r,i=!1){let o=LH.updateSourceFile(e,t,r,i);return o.flags|=e.flags&12582912,o}function Jae(e,t,r){let i=EE.JSDocParser.parseIsolatedJSDocComment(e,t,r);return i&&i.jsDoc&&EE.fixupParentReferences(i.jsDoc),i}function RTe(e,t,r){return EE.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)}function Ed(e){return CH(e)!==void 0}function CH(e){let t=Cx(e,gk,!1);if(t)return t;if(Sl(e,".ts")){let r=nc(e).lastIndexOf(".d.");if(r>=0)return e.substring(r)}}function S5e(e,t,r,i){if(e){if(e==="import")return 99;if(e==="require")return 1;i(t,r-t,f.resolution_mode_should_be_either_require_or_import)}}function NH(e,t){let r=[];for(let i of jh(t,0)||Xe){let o=t.substring(i.pos,i.end);A5e(r,i,o)}e.pragmas=new Map;for(let i of r){if(e.pragmas.has(i.name)){let o=e.pragmas.get(i.name);o instanceof Array?o.push(i.args):e.pragmas.set(i.name,[o,i.args]);continue}e.pragmas.set(i.name,i.args)}}function PH(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((r,i)=>{switch(i){case"reference":{let o=e.referencedFiles,s=e.typeReferenceDirectives,l=e.libReferenceDirectives;gn(dI(r),d=>{let{types:p,lib:h,path:m,["resolution-mode"]:y}=d.arguments;if(d.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(p){let E=S5e(y,p.pos,p.end,t);s.push({pos:p.pos,end:p.end,fileName:p.value,...E?{resolutionMode:E}:{}})}else h?l.push({pos:h.pos,end:h.end,fileName:h.value}):m?o.push({pos:m.pos,end:m.end,fileName:m.value}):t(d.range.pos,d.range.end-d.range.pos,f.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=mn(dI(r),o=>({name:o.arguments.name,path:o.arguments.path}));break}case"amd-module":{if(r instanceof Array)for(let o of r)e.moduleName&&t(o.range.pos,o.range.end-o.range.pos,f.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=o.arguments.name;else e.moduleName=r.arguments.name;break}case"ts-nocheck":case"ts-check":{gn(dI(r),o=>{(!e.checkJsDirective||o.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:i==="ts-check",end:o.range.end,pos:o.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:x.fail("Unhandled pragma kind")}})}function T5e(e){if(kH.has(e))return kH.get(e);let t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return kH.set(e,t),t}function A5e(e,t,r){let i=t.kind===2&&wTe.exec(r);if(i){let s=i[1].toLowerCase(),l=PL[s];if(!l||!(l.kind&1))return;if(l.args){let d={};for(let p of l.args){let m=T5e(p.name).exec(r);if(!m&&!p.optional)return;if(m){let y=m[2]||m[3];if(p.captureSpan){let E=t.pos+m.index+m[1].length+1;d[p.name]={value:y,pos:E,end:E+y.length}}else d[p.name]=y}}e.push({name:s,args:{arguments:d,range:t}})}else e.push({name:s,args:{arguments:{},range:t}});return}let o=t.kind===2&&OTe.exec(r);if(o)return DTe(e,t,2,o);if(t.kind===3){let s=/@(\S+)(\s+.*)?$/gim,l;for(;l=s.exec(r);)DTe(e,t,4,l)}}function DTe(e,t,r,i){if(!i)return;let o=i[1].toLowerCase(),s=PL[o];if(!s||!(s.kind&r))return;let l=i[2],d=I5e(s,l);d!=="fail"&&e.push({name:o,args:{arguments:d,range:t}})}function I5e(e,t){if(!t)return{};if(!e.args)return{};let r=t.trim().split(/\s+/),i={};for(let o=0;onew(LTe||(LTe=sd.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(PTe||(PTe=sd.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(MTe||(MTe=sd.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(NTe||(NTe=sd.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(CTe||(CTe=sd.getNodeConstructor()))(e,-1,-1)},bh=bk(1,MH),kTe={166:function(t,r,i){return Ht(r,t.left)||Ht(r,t.right)},168:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.name)||Ht(r,t.constraint)||Ht(r,t.default)||Ht(r,t.expression)},304:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.name)||Ht(r,t.questionToken)||Ht(r,t.exclamationToken)||Ht(r,t.equalsToken)||Ht(r,t.objectAssignmentInitializer)},305:function(t,r,i){return Ht(r,t.expression)},169:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.dotDotDotToken)||Ht(r,t.name)||Ht(r,t.questionToken)||Ht(r,t.type)||Ht(r,t.initializer)},172:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.name)||Ht(r,t.questionToken)||Ht(r,t.exclamationToken)||Ht(r,t.type)||Ht(r,t.initializer)},171:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.name)||Ht(r,t.questionToken)||Ht(r,t.type)||Ht(r,t.initializer)},303:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.name)||Ht(r,t.questionToken)||Ht(r,t.exclamationToken)||Ht(r,t.initializer)},260:function(t,r,i){return Ht(r,t.name)||Ht(r,t.exclamationToken)||Ht(r,t.type)||Ht(r,t.initializer)},208:function(t,r,i){return Ht(r,t.dotDotDotToken)||Ht(r,t.propertyName)||Ht(r,t.name)||Ht(r,t.initializer)},181:function(t,r,i){return zi(r,i,t.modifiers)||zi(r,i,t.typeParameters)||zi(r,i,t.parameters)||Ht(r,t.type)},185:function(t,r,i){return zi(r,i,t.modifiers)||zi(r,i,t.typeParameters)||zi(r,i,t.parameters)||Ht(r,t.type)},184:function(t,r,i){return zi(r,i,t.modifiers)||zi(r,i,t.typeParameters)||zi(r,i,t.parameters)||Ht(r,t.type)},179:fTe,180:fTe,174:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.asteriskToken)||Ht(r,t.name)||Ht(r,t.questionToken)||Ht(r,t.exclamationToken)||zi(r,i,t.typeParameters)||zi(r,i,t.parameters)||Ht(r,t.type)||Ht(r,t.body)},173:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.name)||Ht(r,t.questionToken)||zi(r,i,t.typeParameters)||zi(r,i,t.parameters)||Ht(r,t.type)},176:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.name)||zi(r,i,t.typeParameters)||zi(r,i,t.parameters)||Ht(r,t.type)||Ht(r,t.body)},177:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.name)||zi(r,i,t.typeParameters)||zi(r,i,t.parameters)||Ht(r,t.type)||Ht(r,t.body)},178:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.name)||zi(r,i,t.typeParameters)||zi(r,i,t.parameters)||Ht(r,t.type)||Ht(r,t.body)},262:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.asteriskToken)||Ht(r,t.name)||zi(r,i,t.typeParameters)||zi(r,i,t.parameters)||Ht(r,t.type)||Ht(r,t.body)},218:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.asteriskToken)||Ht(r,t.name)||zi(r,i,t.typeParameters)||zi(r,i,t.parameters)||Ht(r,t.type)||Ht(r,t.body)},219:function(t,r,i){return zi(r,i,t.modifiers)||zi(r,i,t.typeParameters)||zi(r,i,t.parameters)||Ht(r,t.type)||Ht(r,t.equalsGreaterThanToken)||Ht(r,t.body)},175:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.body)},183:function(t,r,i){return Ht(r,t.typeName)||zi(r,i,t.typeArguments)},182:function(t,r,i){return Ht(r,t.assertsModifier)||Ht(r,t.parameterName)||Ht(r,t.type)},186:function(t,r,i){return Ht(r,t.exprName)||zi(r,i,t.typeArguments)},187:function(t,r,i){return zi(r,i,t.members)},188:function(t,r,i){return Ht(r,t.elementType)},189:function(t,r,i){return zi(r,i,t.elements)},192:mTe,193:mTe,194:function(t,r,i){return Ht(r,t.checkType)||Ht(r,t.extendsType)||Ht(r,t.trueType)||Ht(r,t.falseType)},195:function(t,r,i){return Ht(r,t.typeParameter)},205:function(t,r,i){return Ht(r,t.argument)||Ht(r,t.attributes)||Ht(r,t.qualifier)||zi(r,i,t.typeArguments)},302:function(t,r,i){return Ht(r,t.assertClause)},196:_Te,198:_Te,199:function(t,r,i){return Ht(r,t.objectType)||Ht(r,t.indexType)},200:function(t,r,i){return Ht(r,t.readonlyToken)||Ht(r,t.typeParameter)||Ht(r,t.nameType)||Ht(r,t.questionToken)||Ht(r,t.type)||zi(r,i,t.members)},201:function(t,r,i){return Ht(r,t.literal)},202:function(t,r,i){return Ht(r,t.dotDotDotToken)||Ht(r,t.name)||Ht(r,t.questionToken)||Ht(r,t.type)},206:hTe,207:hTe,209:function(t,r,i){return zi(r,i,t.elements)},210:function(t,r,i){return zi(r,i,t.properties)},211:function(t,r,i){return Ht(r,t.expression)||Ht(r,t.questionDotToken)||Ht(r,t.name)},212:function(t,r,i){return Ht(r,t.expression)||Ht(r,t.questionDotToken)||Ht(r,t.argumentExpression)},213:gTe,214:gTe,215:function(t,r,i){return Ht(r,t.tag)||Ht(r,t.questionDotToken)||zi(r,i,t.typeArguments)||Ht(r,t.template)},216:function(t,r,i){return Ht(r,t.type)||Ht(r,t.expression)},217:function(t,r,i){return Ht(r,t.expression)},220:function(t,r,i){return Ht(r,t.expression)},221:function(t,r,i){return Ht(r,t.expression)},222:function(t,r,i){return Ht(r,t.expression)},224:function(t,r,i){return Ht(r,t.operand)},229:function(t,r,i){return Ht(r,t.asteriskToken)||Ht(r,t.expression)},223:function(t,r,i){return Ht(r,t.expression)},225:function(t,r,i){return Ht(r,t.operand)},226:function(t,r,i){return Ht(r,t.left)||Ht(r,t.operatorToken)||Ht(r,t.right)},234:function(t,r,i){return Ht(r,t.expression)||Ht(r,t.type)},235:function(t,r,i){return Ht(r,t.expression)},238:function(t,r,i){return Ht(r,t.expression)||Ht(r,t.type)},236:function(t,r,i){return Ht(r,t.name)},227:function(t,r,i){return Ht(r,t.condition)||Ht(r,t.questionToken)||Ht(r,t.whenTrue)||Ht(r,t.colonToken)||Ht(r,t.whenFalse)},230:function(t,r,i){return Ht(r,t.expression)},241:yTe,268:yTe,312:function(t,r,i){return zi(r,i,t.statements)||Ht(r,t.endOfFileToken)},243:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.declarationList)},261:function(t,r,i){return zi(r,i,t.declarations)},244:function(t,r,i){return Ht(r,t.expression)},245:function(t,r,i){return Ht(r,t.expression)||Ht(r,t.thenStatement)||Ht(r,t.elseStatement)},246:function(t,r,i){return Ht(r,t.statement)||Ht(r,t.expression)},247:function(t,r,i){return Ht(r,t.expression)||Ht(r,t.statement)},248:function(t,r,i){return Ht(r,t.initializer)||Ht(r,t.condition)||Ht(r,t.incrementor)||Ht(r,t.statement)},249:function(t,r,i){return Ht(r,t.initializer)||Ht(r,t.expression)||Ht(r,t.statement)},250:function(t,r,i){return Ht(r,t.awaitModifier)||Ht(r,t.initializer)||Ht(r,t.expression)||Ht(r,t.statement)},251:vTe,252:vTe,253:function(t,r,i){return Ht(r,t.expression)},254:function(t,r,i){return Ht(r,t.expression)||Ht(r,t.statement)},255:function(t,r,i){return Ht(r,t.expression)||Ht(r,t.caseBlock)},269:function(t,r,i){return zi(r,i,t.clauses)},296:function(t,r,i){return Ht(r,t.expression)||zi(r,i,t.statements)},297:function(t,r,i){return zi(r,i,t.statements)},256:function(t,r,i){return Ht(r,t.label)||Ht(r,t.statement)},257:function(t,r,i){return Ht(r,t.expression)},258:function(t,r,i){return Ht(r,t.tryBlock)||Ht(r,t.catchClause)||Ht(r,t.finallyBlock)},299:function(t,r,i){return Ht(r,t.variableDeclaration)||Ht(r,t.block)},170:function(t,r,i){return Ht(r,t.expression)},263:bTe,231:bTe,264:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.name)||zi(r,i,t.typeParameters)||zi(r,i,t.heritageClauses)||zi(r,i,t.members)},265:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.name)||zi(r,i,t.typeParameters)||Ht(r,t.type)},266:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.name)||zi(r,i,t.members)},306:function(t,r,i){return Ht(r,t.name)||Ht(r,t.initializer)},267:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.name)||Ht(r,t.body)},271:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.name)||Ht(r,t.moduleReference)},272:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.importClause)||Ht(r,t.moduleSpecifier)||Ht(r,t.attributes)},273:function(t,r,i){return Ht(r,t.name)||Ht(r,t.namedBindings)},300:function(t,r,i){return zi(r,i,t.elements)},301:function(t,r,i){return Ht(r,t.name)||Ht(r,t.value)},270:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.name)},274:function(t,r,i){return Ht(r,t.name)},280:function(t,r,i){return Ht(r,t.name)},275:ETe,279:ETe,278:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.exportClause)||Ht(r,t.moduleSpecifier)||Ht(r,t.attributes)},276:STe,281:STe,277:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.expression)},228:function(t,r,i){return Ht(r,t.head)||zi(r,i,t.templateSpans)},239:function(t,r,i){return Ht(r,t.expression)||Ht(r,t.literal)},203:function(t,r,i){return Ht(r,t.head)||zi(r,i,t.templateSpans)},204:function(t,r,i){return Ht(r,t.type)||Ht(r,t.literal)},167:function(t,r,i){return Ht(r,t.expression)},298:function(t,r,i){return zi(r,i,t.types)},233:function(t,r,i){return Ht(r,t.expression)||zi(r,i,t.typeArguments)},283:function(t,r,i){return Ht(r,t.expression)},282:function(t,r,i){return zi(r,i,t.modifiers)},361:function(t,r,i){return zi(r,i,t.elements)},284:function(t,r,i){return Ht(r,t.openingElement)||zi(r,i,t.children)||Ht(r,t.closingElement)},288:function(t,r,i){return Ht(r,t.openingFragment)||zi(r,i,t.children)||Ht(r,t.closingFragment)},285:TTe,286:TTe,292:function(t,r,i){return zi(r,i,t.properties)},291:function(t,r,i){return Ht(r,t.name)||Ht(r,t.initializer)},293:function(t,r,i){return Ht(r,t.expression)},294:function(t,r,i){return Ht(r,t.dotDotDotToken)||Ht(r,t.expression)},287:function(t,r,i){return Ht(r,t.tagName)},295:function(t,r,i){return Ht(r,t.namespace)||Ht(r,t.name)},190:yP,191:yP,316:yP,322:yP,321:yP,323:yP,325:yP,324:function(t,r,i){return zi(r,i,t.parameters)||Ht(r,t.type)},327:function(t,r,i){return(typeof t.comment=="string"?void 0:zi(r,i,t.comment))||zi(r,i,t.tags)},354:function(t,r,i){return Ht(r,t.tagName)||Ht(r,t.name)||(typeof t.comment=="string"?void 0:zi(r,i,t.comment))},317:function(t,r,i){return Ht(r,t.name)},318:function(t,r,i){return Ht(r,t.left)||Ht(r,t.right)},348:ATe,355:ATe,337:function(t,r,i){return Ht(r,t.tagName)||(typeof t.comment=="string"?void 0:zi(r,i,t.comment))},336:function(t,r,i){return Ht(r,t.tagName)||Ht(r,t.class)||(typeof t.comment=="string"?void 0:zi(r,i,t.comment))},335:function(t,r,i){return Ht(r,t.tagName)||Ht(r,t.class)||(typeof t.comment=="string"?void 0:zi(r,i,t.comment))},352:function(t,r,i){return Ht(r,t.tagName)||Ht(r,t.constraint)||zi(r,i,t.typeParameters)||(typeof t.comment=="string"?void 0:zi(r,i,t.comment))},353:function(t,r,i){return Ht(r,t.tagName)||(t.typeExpression&&t.typeExpression.kind===316?Ht(r,t.typeExpression)||Ht(r,t.fullName)||(typeof t.comment=="string"?void 0:zi(r,i,t.comment)):Ht(r,t.fullName)||Ht(r,t.typeExpression)||(typeof t.comment=="string"?void 0:zi(r,i,t.comment)))},345:function(t,r,i){return Ht(r,t.tagName)||Ht(r,t.fullName)||Ht(r,t.typeExpression)||(typeof t.comment=="string"?void 0:zi(r,i,t.comment))},349:vP,351:vP,350:vP,347:vP,357:vP,356:vP,346:vP,330:function(t,r,i){return gn(t.typeParameters,r)||gn(t.parameters,r)||Ht(r,t.type)},331:Kae,332:Kae,333:Kae,329:function(t,r,i){return gn(t.jsDocPropertyTags,r)},334:GR,339:GR,340:GR,341:GR,342:GR,343:GR,338:GR,344:GR,360:E5e},(e=>{var t=xy(99,!0),r=40960,i,o,s,l,d;function p(X){return Je++,X}var h={createBaseSourceFileNode:X=>p(new d(X,0,0)),createBaseIdentifierNode:X=>p(new s(X,0,0)),createBasePrivateIdentifierNode:X=>p(new l(X,0,0)),createBaseTokenNode:X=>p(new o(X,0,0)),createBaseNode:X=>p(new i(X,0,0))},m=bk(11,h),{createNodeArray:y,createNumericLiteral:E,createStringLiteral:S,createLiteralLikeNode:A,createIdentifier:N,createPrivateIdentifier:D,createToken:w,createArrayLiteralExpression:j,createObjectLiteralExpression:K,createPropertyAccessExpression:Y,createPropertyAccessChain:B,createElementAccessExpression:ce,createElementAccessChain:z,createCallExpression:Z,createCallChain:me,createNewExpression:ge,createParenthesizedExpression:q,createBlock:J,createVariableStatement:re,createExpressionStatement:pe,createIfStatement:xe,createWhileStatement:fe,createForStatement:ne,createForOfStatement:he,createVariableDeclaration:Ce,createVariableDeclarationList:Ge}=m,ve,Ae,De,Le,Et,be,ze,tt,Wt,_t,Je,pt,Zt,en,Dn,Kn,pn=!0,Xt=!1;function Kt(X,Te,Ue,St,xt=!1,Vt,wr,Oi=0){var Ci;if(Vt=L6(X,Vt),Vt===6){let Xi=uo(X,Te,Ue,St,xt);return ew(Xi,(Ci=Xi.statements[0])==null?void 0:Ci.expression,Xi.parseDiagnostics,!1,void 0),Xi.referencedFiles=Xe,Xi.typeReferenceDirectives=Xe,Xi.libReferenceDirectives=Xe,Xi.amdDependencies=Xe,Xi.hasNoDefaultLib=!1,Xi.pragmas=IW,Xi}Li(X,Te,Ue,St,Vt,Oi);let mi=Qn(Ue,xt,Vt,wr||xTe,Oi);return So(),mi}e.parseSourceFile=Kt;function hi(X,Te){Li("",X,Te,void 0,1,0),Ne();let Ue=Q(!0),St=H()===1&&!ze.length;return So(),St?Ue:void 0}e.parseIsolatedEntityName=hi;function uo(X,Te,Ue=2,St,xt=!1){Li(X,Te,Ue,St,6,0),Ae=Kn,Ne();let Vt=k(),wr,Oi;if(H()===1)wr=Lo([],Vt,Vt),Oi=ul();else{let Xi;for(;H()!==1;){let $a;switch(H()){case 23:$a=ES();break;case 112:case 97:case 106:$a=ul();break;case 41:Pi(()=>Ne()===9&&Ne()!==59)?$a=Qr():$a=ey();break;case 9:case 11:if(Pi(()=>Ne()!==59)){$a=Xr();break}default:$a=ey();break}Xi&&To(Xi)?Xi.push($a):Xi?Xi=[Xi,$a]:(Xi=$a,H()!==1&&dn(f.Unexpected_token))}let cs=To(Xi)?tn(j(Xi),Vt):x.checkDefined(Xi),As=pe(cs);tn(As,Vt),wr=Lo([As],Vt),Oi=bs(1,f.Unexpected_token)}let Ci=Ot(X,2,6,!1,wr,Oi,Ae,qa);xt&&Ye(Ci),Ci.nodeCount=Je,Ci.identifierCount=Zt,Ci.identifiers=pt,Ci.parseDiagnostics=wI(ze,Ci),tt&&(Ci.jsDocDiagnostics=wI(tt,Ci));let mi=Ci;return So(),mi}e.parseJsonText=uo;function Li(X,Te,Ue,St,xt,Vt){switch(i=sd.getNodeConstructor(),o=sd.getTokenConstructor(),s=sd.getIdentifierConstructor(),l=sd.getPrivateIdentifierConstructor(),d=sd.getSourceFileConstructor(),ve=ma(X),De=Te,Le=Ue,Wt=St,Et=xt,be=ik(xt),ze=[],en=0,pt=new Map,Zt=0,Je=0,Ae=0,pn=!0,Et){case 1:case 2:Kn=524288;break;case 6:Kn=134742016;break;default:Kn=0;break}Xt=!1,t.setText(De),t.setOnError(Nt),t.setScriptTarget(Le),t.setLanguageVariant(be),t.setScriptKind(Et),t.setJSDocParsingMode(Vt)}function So(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),De=void 0,Le=void 0,Wt=void 0,Et=void 0,be=void 0,Ae=0,ze=void 0,tt=void 0,en=0,pt=void 0,Dn=void 0,pn=!0}function Qn(X,Te,Ue,St,xt){let Vt=Ed(ve);Vt&&(Kn|=33554432),Ae=Kn,Ne();let wr=Zo(0,ip);x.assert(H()===1);let Oi=ie(),Ci=Er(ul(),Oi),mi=Ot(ve,X,Ue,Vt,wr,Ci,Ae,St);return NH(mi,De),PH(mi,Xi),mi.commentDirectives=t.getCommentDirectives(),mi.nodeCount=Je,mi.identifierCount=Zt,mi.identifiers=pt,mi.parseDiagnostics=wI(ze,mi),mi.jsDocParsingMode=xt,tt&&(mi.jsDocDiagnostics=wI(tt,mi)),Te&&Ye(mi),mi;function Xi(cs,As,$a){ze.push(yR(ve,De,cs,As,$a))}}let Ur=!1;function Er(X,Te){if(!Te)return X;x.assert(!X.jsDoc);let Ue=to(oj(X,De),St=>H_.parseJSDocComment(X,St.pos,St.end-St.pos));return Ue.length&&(X.jsDoc=Ue),Ur&&(Ur=!1,X.flags|=536870912),X}function on(X){let Te=Wt,Ue=LH.createSyntaxCursor(X);Wt={currentNode:Xi};let St=[],xt=ze;ze=[];let Vt=0,wr=Ci(X.statements,0);for(;wr!==-1;){let cs=X.statements[Vt],As=X.statements[wr];Hr(St,X.statements,Vt,wr),Vt=mi(X.statements,wr);let $a=Kl(xt,K_=>K_.start>=cs.pos),Of=$a>=0?Kl(xt,K_=>K_.start>=As.pos,$a):-1;$a>=0&&Hr(ze,xt,$a,Of>=0?Of:void 0),go(()=>{let K_=Kn;for(Kn|=65536,t.resetTokenState(As.pos),Ne();H()!==1;){let gg=t.getTokenFullStart(),iy=Ql(0,ip);if(St.push(iy),gg===t.getTokenFullStart()&&Ne(),Vt>=0){let oy=X.statements[Vt];if(iy.end===oy.pos)break;iy.end>oy.pos&&(Vt=mi(X.statements,Vt+1))}}Kn=K_},2),wr=Vt>=0?Ci(X.statements,Vt):-1}if(Vt>=0){let cs=X.statements[Vt];Hr(St,X.statements,Vt);let As=Kl(xt,$a=>$a.start>=cs.pos);As>=0&&Hr(ze,xt,As)}return Wt=Te,m.updateSourceFile(X,at(y(St),X.statements));function Oi(cs){return!(cs.flags&65536)&&!!(cs.transformFlags&67108864)}function Ci(cs,As){for(let $a=As;$a118}function xo(){return H()===80?!0:H()===127&&Tt()||H()===135&&hn()?!1:H()>118}function xn(X,Te,Ue=!0){return H()===X?(Ue&&Ne(),!0):(Te?dn(Te):dn(f._0_expected,da(X)),!1)}let Ls=Object.keys(UL).filter(X=>X.length>2);function $l(X){if(U0(X)){U(Na(De,X.template.pos),X.template.end,f.Module_declaration_names_may_only_use_or_quoted_strings);return}let Te=Fe(X)?gr(X):void 0;if(!Te||!Yp(Te,Le)){dn(f._0_expected,da(27));return}let Ue=Na(De,X.pos);switch(Te){case"const":case"let":case"var":U(Ue,X.end,f.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":Mo(f.Interface_name_cannot_be_0,f.Interface_must_be_given_a_name,19);return;case"is":U(Ue,t.getTokenStart(),f.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":Mo(f.Namespace_name_cannot_be_0,f.Namespace_must_be_given_a_name,19);return;case"type":Mo(f.Type_alias_name_cannot_be_0,f.Type_alias_must_be_given_a_name,64);return}let St=GC(Te,Ls,xt=>xt)??ss(Te);if(St){U(Ue,X.end,f.Unknown_keyword_or_identifier_Did_you_mean_0,St);return}H()!==0&&U(Ue,X.end,f.Unexpected_keyword_or_identifier)}function Mo(X,Te,Ue){H()===Ue?dn(Te):dn(X,t.getTokenValue())}function ss(X){for(let Te of Ls)if(X.length>Te.length+2&&ao(X,Te))return`${Te} ${X.slice(Te.length)}`}function Ws(X,Te,Ue){if(H()===60&&!t.hasPrecedingLineBreak()){dn(f.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(H()===21){dn(f.Cannot_start_a_function_call_in_a_type_annotation),Ne();return}if(Te&&!ac()){Ue?dn(f._0_expected,da(27)):dn(f.Expected_for_property_initializer);return}if(!xl()){if(Ue){dn(f._0_expected,da(27));return}$l(X)}}function ml(X){return H()===X?(It(),!0):(x.assert(ZF(X)),dn(f._0_expected,da(X)),!1)}function cd(X,Te,Ue,St){if(H()===Te){Ne();return}let xt=dn(f._0_expected,da(Te));Ue&&xt&&Pa(xt,yR(ve,De,St,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,da(X),da(Te)))}function mo(X){return H()===X?(Ne(),!0):!1}function la(X){if(H()===X)return ul()}function dd(X){if(H()===X)return Nf()}function bs(X,Te,Ue){return la(X)||Fs(X,!1,Te||f._0_expected,Ue||da(X))}function Ca(X){let Te=dd(X);return Te||(x.assert(ZF(X)),Fs(X,!1,f._0_expected,da(X)))}function ul(){let X=k(),Te=H();return Ne(),tn(w(Te),X)}function Nf(){let X=k(),Te=H();return It(),tn(w(Te),X)}function ac(){return H()===27?!0:H()===20||H()===1||t.hasPrecedingLineBreak()}function xl(){return ac()?(H()===27&&Ne(),!0):!1}function al(){return xl()||xn(27)}function Lo(X,Te,Ue,St){let xt=y(X,St);return fh(xt,Te,Ue??t.getTokenFullStart()),xt}function tn(X,Te,Ue){return fh(X,Te,Ue??t.getTokenFullStart()),Kn&&(X.flags|=Kn),Xt&&(Xt=!1,X.flags|=262144),X}function Fs(X,Te,Ue,...St){Te?un(t.getTokenFullStart(),0,Ue,...St):Ue&&dn(Ue,...St);let xt=k(),Vt=X===80?N("",void 0):Dv(X)?m.createTemplateLiteralLikeNode(X,"","",void 0):X===9?E("",void 0):X===11?S("",void 0):X===282?m.createMissingDeclaration():w(X);return tn(Vt,xt)}function nd(X){let Te=pt.get(X);return Te===void 0&&pt.set(X,Te=X),Te}function ud(X,Te,Ue){if(X){Zt++;let Oi=k(),Ci=H(),mi=nd(t.getTokenValue()),Xi=t.hasExtendedUnicodeEscape();return ue(),tn(N(mi,Ci,Xi),Oi)}if(H()===81)return dn(Ue||f.Private_identifiers_are_not_allowed_outside_class_bodies),ud(!0);if(H()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return ud(!0);Zt++;let St=H()===1,xt=t.isReservedWord(),Vt=t.getTokenText(),wr=xt?f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:f.Identifier_expected;return Fs(80,St,Te||wr,Vt)}function Ep(X){return ud(Kr(),void 0,X)}function Rs(X,Te){return ud(xo(),X,Te)}function Ac(X){return ud(ru(H()),X)}function de(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&dn(f.Unicode_escape_sequence_cannot_appear_here),ud(ru(H()))}function $(){return ru(H())||H()===11||H()===9}function Pe(){return ru(H())||H()===11}function yt(X){if(H()===11||H()===9){let Te=Xr();return Te.text=nd(Te.text),Te}return X&&H()===23?yr():H()===81?pr():Ac()}function cn(){return yt(!0)}function yr(){let X=k();xn(23);let Te=vn(Ve);return xn(24),tn(m.createComputedPropertyName(Te),X)}function pr(){let X=k(),Te=D(nd(t.getTokenValue()));return Ne(),tn(Te,X)}function zr(X){return H()===X&&Ri(Cr)}function Di(){return Ne(),t.hasPrecedingLineBreak()?!1:zs()}function Cr(){switch(H()){case 87:return Ne()===94;case 95:return Ne(),H()===90?Pi(hc):H()===156?Pi(bl):qo();case 90:return hc();case 126:case 139:case 153:return Ne(),zs();default:return Di()}}function qo(){return H()===60||H()!==42&&H()!==130&&H()!==19&&zs()}function bl(){return Ne(),qo()}function Hc(){return Dy(H())&&Ri(Cr)}function zs(){return H()===23||H()===19||H()===42||H()===26||$()}function hc(){return Ne(),H()===86||H()===100||H()===120||H()===60||H()===128&&Pi(SA)||H()===134&&Pi(TA)}function ys(X,Te){if(gc(X))return!0;switch(X){case 0:case 1:case 3:return!(H()===27&&Te)&&TS();case 2:return H()===84||H()===90;case 4:return Pi(Ha);case 5:return Pi(_g)||H()===27&&!Te;case 6:return H()===23||$();case 12:switch(H()){case 23:case 42:case 26:case 25:return!0;default:return $()}case 18:return $();case 9:return H()===23||H()===26||$();case 24:return Pe();case 7:return H()===19?Pi(Kc):Te?xo()&&!fu():U1()&&!fu();case 8:return es();case 10:return H()===28||H()===26||es();case 19:return H()===103||H()===87||xo();case 15:switch(H()){case 28:case 25:return!0}case 11:return H()===26||Zm();case 16:return B_(!1);case 17:return B_(!0);case 20:case 21:return H()===28||cg();case 22:return I();case 23:return H()===161&&Pi(qD)?!1:ru(H());case 13:return ru(H())||H()===19;case 14:return!0;case 25:return!0;case 26:return x.fail("ParsingContext.Count used as a context");default:x.assertNever(X,"Non-exhaustive case in 'isListElement'.")}}function Kc(){if(x.assert(H()===19),Ne()===20){let X=Ne();return X===28||X===19||X===96||X===119}return!0}function tp(){return Ne(),xo()}function Oc(){return Ne(),ru(H())}function im(){return Ne(),Pne(H())}function fu(){return H()===119||H()===96?Pi(Re):!1}function Re(){return Ne(),Zm()}function Lt(){return Ne(),cg()}function Un(X){if(H()===1)return!0;switch(X){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return H()===20;case 3:return H()===20||H()===84||H()===90;case 7:return H()===19||H()===96||H()===119;case 8:return yo();case 19:return H()===32||H()===21||H()===19||H()===96||H()===119;case 11:return H()===22||H()===27;case 15:case 21:case 10:return H()===24;case 17:case 16:case 18:return H()===22||H()===24;case 20:return H()!==28;case 22:return H()===19||H()===20;case 13:return H()===32||H()===44;case 14:return H()===30&&Pi(Si);default:return!1}}function yo(){return!!(ac()||$g(H())||H()===39)}function Xo(){x.assert(en,"Missing parsing context");for(let X=0;X<26;X++)if(en&1<=0)}function Kg(X){return X===6?f.An_enum_member_name_must_be_followed_by_a_or:void 0}function Sp(){let X=Lo([],k());return X.isMissingList=!0,X}function lg(X){return!!X.isMissingList}function zu(X,Te,Ue,St){if(xn(Ue)){let xt=Fd(X,Te);return xn(St),xt}return Sp()}function Q(X,Te){let Ue=k(),St=X?Ac(Te):Rs(Te);for(;mo(25)&&H()!==30;)St=tn(m.createQualifiedName(St,wt(X,!1,!0)),Ue);return St}function rt(X,Te){return tn(m.createQualifiedName(X,Te),X.pos)}function wt(X,Te,Ue){if(t.hasPrecedingLineBreak()&&ru(H())&&Pi(Vp))return Fs(80,!0,f.Identifier_expected);if(H()===81){let St=pr();return Te?St:Fs(80,!0,f.Identifier_expected)}return X?Ue?Ac():de():Rs()}function zt(X){let Te=k(),Ue=[],St;do St=ii(X),Ue.push(St);while(St.literal.kind===17);return Lo(Ue,Te)}function O(X){let Te=k();return tn(m.createTemplateExpression(no(X),zt(X)),Te)}function Ee(){let X=k();return tn(m.createTemplateLiteralType(no(!1),nt()),X)}function nt(){let X=k(),Te=[],Ue;do Ue=Gt(),Te.push(Ue);while(Ue.literal.kind===17);return Lo(Te,X)}function Gt(){let X=k();return tn(m.createTemplateLiteralTypeSpan(yc(),Zn(!1)),X)}function Zn(X){return H()===20?(wn(X),La()):bs(18,f._0_expected,da(20))}function ii(X){let Te=k();return tn(m.createTemplateSpan(vn(Ve),Zn(X)),Te)}function Xr(){return wl(H())}function no(X){!X&&t.getTokenFlags()&26656&&wn(!1);let Te=wl(H());return x.assert(Te.kind===16,"Template head has wrong token kind"),Te}function La(){let X=wl(H());return x.assert(X.kind===17||X.kind===18,"Template fragment has wrong token kind"),X}function ka(X){let Te=X===15||X===18,Ue=t.getTokenText();return Ue.substring(1,Ue.length-(t.isUnterminated()?0:Te?1:2))}function wl(X){let Te=k(),Ue=Dv(X)?m.createTemplateLiteralLikeNode(X,t.getTokenValue(),ka(X),t.getTokenFlags()&7176):X===9?E(t.getTokenValue(),t.getNumericLiteralFlags()):X===11?S(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):iN(X)?A(X,t.getTokenValue()):x.fail();return t.hasExtendedUnicodeEscape()&&(Ue.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(Ue.isUnterminated=!0),Ne(),tn(Ue,Te)}function pd(){return Q(!0,f.Type_expected)}function Ic(){if(!t.hasPrecedingLineBreak()&&Bn()===30)return zu(20,yc,30,32)}function Tp(){let X=k();return tn(m.createTypeReferenceNode(pd(),Ic()),X)}function Bu(X){switch(X.kind){case 183:return Fl(X.typeName);case 184:case 185:{let{parameters:Te,type:Ue}=X;return lg(Te)||Bu(Ue)}case 196:return Bu(X.type);default:return!1}}function ob(X){return Ne(),tn(m.createTypePredicateNode(void 0,X,yc()),X.pos)}function ls(){let X=k();return Ne(),tn(m.createThisTypeNode(),X)}function Dm(){let X=k();return Ne(),tn(m.createJSDocAllType(),X)}function Cm(){let X=k();return Ne(),tn(m.createJSDocNonNullableType(sb(),!1),X)}function Ui(){let X=k();return Ne(),H()===28||H()===20||H()===22||H()===32||H()===64||H()===52?tn(m.createJSDocUnknownType(),X):tn(m.createJSDocNullableType(yc(),!1),X)}function Jg(){let X=k(),Te=ie();if(Ri(wf)){let Ue=fn(36),St=Bt(59,!1);return Er(tn(m.createJSDocFunctionType(Ue,St),X),Te)}return tn(m.createTypeReferenceNode(Ac(),void 0),X)}function $y(){let X=k(),Te;return(H()===110||H()===105)&&(Te=Ac(),xn(59)),tn(m.createParameterDeclaration(void 0,void 0,Te,void 0,Nm(),void 0),X)}function Nm(){t.setInJSDocType(!0);let X=k();if(mo(144)){let St=m.createJSDocNamepathType(void 0);e:for(;;)switch(H()){case 20:case 1:case 28:case 5:break e;default:It()}return t.setInJSDocType(!1),tn(St,X)}let Te=mo(26),Ue=lb();return t.setInJSDocType(!1),Te&&(Ue=tn(m.createJSDocVariadicType(Ue),X)),H()===64?(Ne(),tn(m.createJSDocOptionalType(Ue),X)):Ue}function pS(){let X=k();xn(114);let Te=Q(!0),Ue=t.hasPrecedingLineBreak()?void 0:JE();return tn(m.createTypeQueryNode(Te,Ue),X)}function fS(){let X=k(),Te=Ch(!1,!0),Ue=Rs(),St,xt;mo(96)&&(cg()||!Zm()?St=yc():xt=db());let Vt=mo(64)?yc():void 0,wr=m.createTypeParameterDeclaration(Te,Ue,St,Vt);return wr.expression=xt,tn(wr,X)}function cf(){if(H()===30)return zu(19,fS,30,32)}function B_(X){return H()===26||es()||Dy(H())||H()===60||cg(!X)}function df(X){let Te=Sr(f.Private_identifiers_cannot_be_used_as_parameters);return u2(Te)===0&&!gt(X)&&Dy(H())&&Ne(),Te}function qg(){return Kr()||H()===23||H()===19}function we(X){return Pt(X)}function qe(X){return Pt(X,!1)}function Pt(X,Te=!0){let Ue=k(),St=ie(),xt=X?ae(()=>Ch(!0)):ke(()=>Ch(!0));if(H()===110){let Ci=m.createParameterDeclaration(xt,void 0,ud(!0),void 0,Zy(),void 0),mi=Xc(xt);return mi&&Me(mi,f.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Er(tn(Ci,Ue),St)}let Vt=pn;pn=!1;let wr=la(26);if(!Te&&!qg())return;let Oi=Er(tn(m.createParameterDeclaration(xt,wr,df(xt),la(58),Zy(),e_()),Ue),St);return pn=Vt,Oi}function Bt(X,Te){if(_n(X,Te))return Be(lb)}function _n(X,Te){return X===39?(xn(X),!0):mo(59)?!0:Te&&H()===39?(dn(f._0_expected,da(59)),Ne(),!0):!1}function Jn(X,Te){let Ue=Tt(),St=hn();yi(!!(X&1)),Io(!!(X&2));let xt=X&32?Fd(17,$y):Fd(16,()=>Te?we(St):qe(St));return yi(Ue),Io(St),xt}function fn(X){if(!xn(21))return Sp();let Te=Jn(X,!0);return xn(22),Te}function qn(){mo(28)||al()}function fi(X){let Te=k(),Ue=ie();X===180&&xn(105);let St=cf(),xt=fn(4),Vt=Bt(59,!0);qn();let wr=X===179?m.createCallSignature(St,xt,Vt):m.createConstructSignature(St,xt,Vt);return Er(tn(wr,Te),Ue)}function or(){return H()===23&&Pi(ni)}function ni(){if(Ne(),H()===26||H()===24)return!0;if(Dy(H())){if(Ne(),xo())return!0}else if(xo())Ne();else return!1;return H()===59||H()===28?!0:H()!==58?!1:(Ne(),H()===59||H()===28||H()===24)}function cr(X,Te,Ue){let St=zu(16,()=>we(!1),23,24),xt=Zy();qn();let Vt=m.createIndexSignature(Ue,St,xt);return Er(tn(Vt,X),Te)}function Yo(X,Te,Ue){let St=cn(),xt=la(58),Vt;if(H()===21||H()===30){let wr=cf(),Oi=fn(4),Ci=Bt(59,!0);Vt=m.createMethodSignature(Ue,St,xt,wr,Oi,Ci)}else{let wr=Zy();Vt=m.createPropertySignature(Ue,St,xt,wr),H()===64&&(Vt.initializer=e_())}return qn(),Er(tn(Vt,X),Te)}function Ha(){if(H()===21||H()===30||H()===139||H()===153)return!0;let X=!1;for(;Dy(H());)X=!0,Ne();return H()===23?!0:($()&&(X=!0,Ne()),X?H()===21||H()===30||H()===58||H()===59||H()===28||ac():!1)}function $d(){if(H()===21||H()===30)return fi(179);if(H()===105&&Pi(fd))return fi(180);let X=k(),Te=ie(),Ue=Ch(!1);return zr(139)?ny(X,Te,Ue,177,4):zr(153)?ny(X,Te,Ue,178,4):or()?cr(X,Te,Ue):Yo(X,Te,Ue)}function fd(){return Ne(),H()===21||H()===30}function Xg(){return Ne()===25}function LE(){switch(Ne()){case 21:case 30:case 25:return!0}return!1}function w1(){let X=k();return tn(m.createTypeLiteralNode(kE()),X)}function kE(){let X;return xn(19)?(X=Zo(4,$d),xn(20)):X=Sp(),X}function kD(){return Ne(),H()===40||H()===41?Ne()===148:(H()===148&&Ne(),H()===23&&tp()&&Ne()===103)}function wD(){let X=k(),Te=Ac();xn(103);let Ue=yc();return tn(m.createTypeParameterDeclaration(void 0,Te,Ue,void 0),X)}function OD(){let X=k();xn(19);let Te;(H()===148||H()===40||H()===41)&&(Te=ul(),Te.kind!==148&&xn(148)),xn(23);let Ue=wD(),St=mo(130)?yc():void 0;xn(24);let xt;(H()===58||H()===40||H()===41)&&(xt=ul(),xt.kind!==58&&xn(58));let Vt=Zy();al();let wr=Zo(4,$d);return xn(20),tn(m.createMappedTypeNode(Te,Ue,St,xt,Vt,wr),X)}function oA(){let X=k();if(mo(26))return tn(m.createRestTypeNode(yc()),X);let Te=yc();if(LR(Te)&&Te.pos===Te.type.pos){let Ue=m.createOptionalTypeNode(Te.type);return at(Ue,Te),Ue.flags=Te.flags,Ue}return Te}function mS(){return Ne()===59||H()===58&&Ne()===59}function O1(){return H()===26?ru(Ne())&&mS():ru(H())&&mS()}function WD(){if(Pi(O1)){let X=k(),Te=ie(),Ue=la(26),St=Ac(),xt=la(58);xn(59);let Vt=oA(),wr=m.createNamedTupleMember(Ue,St,xt,Vt);return Er(tn(wr,X),Te)}return oA()}function W1(){let X=k();return tn(m.createTupleTypeNode(zu(21,WD,23,24)),X)}function F1(){let X=k();xn(21);let Te=yc();return xn(22),tn(m.createParenthesizedType(Te),X)}function z1(){let X;if(H()===128){let Te=k();Ne();let Ue=tn(w(128),Te);X=Lo([Ue],Te)}return X}function B1(){let X=k(),Te=ie(),Ue=z1(),St=mo(105);x.assert(!Ue||St,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let xt=cf(),Vt=fn(4),wr=Bt(39,!1),Oi=St?m.createConstructorTypeNode(Ue,xt,Vt,wr):m.createFunctionTypeNode(xt,Vt,wr);return Er(tn(Oi,X),Te)}function aA(){let X=ul();return H()===25?void 0:X}function G1(X){let Te=k();X&&Ne();let Ue=H()===112||H()===97||H()===106?ul():wl(H());return X&&(Ue=tn(m.createPrefixUnaryExpression(41,Ue),Te)),tn(m.createLiteralTypeNode(Ue),Te)}function _S(){return Ne(),H()===102}function hS(){Ae|=4194304;let X=k(),Te=mo(114);xn(102),xn(21);let Ue=yc(),St;if(mo(28)){let wr=t.getTokenStart();xn(19);let Oi=H();if(Oi===118||Oi===132?Ne():dn(f._0_expected,da(118)),xn(59),St=bb(Oi,!0),!xn(20)){let Ci=$s(ze);Ci&&Ci.code===f._0_expected.code&&Pa(Ci,yR(ve,De,wr,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}xn(22);let xt=mo(25)?pd():void 0,Vt=Ic();return tn(m.createImportTypeNode(Ue,St,xt,Vt,Te),X)}function ab(){return Ne(),H()===9||H()===10}function sb(){switch(H()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return Ri(aA)||Tp();case 67:t.reScanAsteriskEqualsToken();case 42:return Dm();case 61:t.reScanQuestionToken();case 58:return Ui();case 100:return Jg();case 54:return Cm();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return G1();case 41:return Pi(ab)?G1(!0):Tp();case 116:return ul();case 110:{let X=ls();return H()===142&&!t.hasPrecedingLineBreak()?ob(X):X}case 114:return Pi(_S)?hS():pS();case 19:return Pi(kD)?OD():w1();case 23:return W1();case 21:return F1();case 102:return hS();case 131:return Pi(Vp)?j1():Tp();case 16:return Ee();default:return Tp()}}function cg(X){switch(H()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!X;case 41:return!X&&Pi(ab);case 21:return!X&&Pi(wE);default:return xo()}}function wE(){return Ne(),H()===22||B_(!1)||cg()}function Qa(){let X=k(),Te=sb();for(;!t.hasPrecedingLineBreak();)switch(H()){case 54:Ne(),Te=tn(m.createJSDocNonNullableType(Te,!0),X);break;case 58:if(Pi(Lt))return Te;Ne(),Te=tn(m.createJSDocNullableType(Te,!0),X);break;case 23:if(xn(23),cg()){let Ue=yc();xn(24),Te=tn(m.createIndexedAccessTypeNode(Te,Ue),X)}else xn(24),Te=tn(m.createArrayTypeNode(Te),X);break;default:return Te}return Te}function sA(X){let Te=k();return xn(X),tn(m.createTypeOperatorNode(X,Ih()),Te)}function FD(){if(mo(96)){let X=ct(yc);if(ut()||H()!==58)return X}}function OE(){let X=k(),Te=Rs(),Ue=Ri(FD),St=m.createTypeParameterDeclaration(void 0,Te,Ue);return tn(St,X)}function Yg(){let X=k();return xn(140),tn(m.createInferTypeNode(OE()),X)}function Ih(){let X=H();switch(X){case 143:case 158:case 148:return sA(X);case 140:return Yg()}return Be(Qa)}function Mf(X){if(lA()){let Te=B1(),Ue;return hh(Te)?Ue=X?f.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:f.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:Ue=X?f.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:f.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,Me(Te,Ue),Te}}function Gu(X,Te,Ue){let St=k(),xt=X===52,Vt=mo(X),wr=Vt&&Mf(xt)||Te();if(H()===X||Vt){let Oi=[wr];for(;mo(X);)Oi.push(Mf(xt)||Te());wr=tn(Ue(Lo(Oi,St)),St)}return wr}function Ap(){return Gu(51,Ih,m.createIntersectionTypeNode)}function np(){return Gu(52,Ap,m.createUnionTypeNode)}function Qy(){return Ne(),H()===105}function lA(){return H()===30||H()===21&&Pi(V1)?!0:H()===105||H()===128&&Pi(Qy)}function zD(){if(Dy(H())&&Ch(!1),xo()||H()===110)return Ne(),!0;if(H()===23||H()===19){let X=ze.length;return Sr(),X===ze.length}return!1}function V1(){return Ne(),!!(H()===22||H()===26||zD()&&(H()===59||H()===28||H()===58||H()===64||H()===22&&(Ne(),H()===39)))}function lb(){let X=k(),Te=xo()&&Ri(WE),Ue=yc();return Te?tn(m.createTypePredicateNode(void 0,Te,Ue),X):Ue}function WE(){let X=Rs();if(H()===142&&!t.hasPrecedingLineBreak())return Ne(),X}function j1(){let X=k(),Te=bs(131),Ue=H()===110?ls():Rs(),St=mo(142)?yc():void 0;return tn(m.createTypePredicateNode(Te,Ue,St),X)}function yc(){if(Kn&81920)return ua(81920,yc);if(lA())return B1();let X=k(),Te=np();if(!ut()&&!t.hasPrecedingLineBreak()&&mo(96)){let Ue=ct(yc);xn(58);let St=Be(yc);xn(59);let xt=Be(yc);return tn(m.createConditionalTypeNode(Te,Ue,St,xt),X)}return Te}function Zy(){return mo(59)?yc():void 0}function U1(){switch(H()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return Pi(LE);default:return xo()}}function Zm(){if(U1())return!0;switch(H()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return n_()?!0:xo()}}function cA(){return H()!==19&&H()!==100&&H()!==86&&H()!==60&&Zm()}function Ve(){let X=Ft();X&&$i(!1);let Te=k(),Ue=md(!0),St;for(;St=la(28);)Ue=gS(Ue,St,md(!0),Te);return X&&$i(!0),Ue}function e_(){return mo(64)?md(!0):void 0}function md(X){if(FE())return cb();let Te=tv(X)||dA(X);if(Te)return Te;let Ue=k(),St=ie(),xt=am(0);return xt.kind===80&&H()===39?ev(Ue,xt,X,St,void 0):Yu(xt)&&Ly(Ut())?gS(xt,ul(),md(X),Ue):om(xt,Ue,X)}function FE(){return H()===127?Tt()?!0:Pi(Bs):!1}function H1(){return Ne(),!t.hasPrecedingLineBreak()&&xo()}function cb(){let X=k();return Ne(),!t.hasPrecedingLineBreak()&&(H()===42||Zm())?tn(m.createYieldExpression(la(42),md(!0)),X):tn(m.createYieldExpression(void 0,void 0),X)}function ev(X,Te,Ue,St,xt){x.assert(H()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let Vt=m.createParameterDeclaration(void 0,void 0,Te,void 0,void 0,void 0);tn(Vt,Te.pos);let wr=Lo([Vt],Vt.pos,Vt.end),Oi=bs(39),Ci=pA(!!xt,Ue),mi=m.createArrowFunction(xt,void 0,wr,void 0,Oi,Ci);return Er(tn(mi,X),St)}function tv(X){let Te=EM();if(Te!==0)return Te===1?zE(!0,!0):Ri(()=>t_(X))}function EM(){return H()===21||H()===30||H()===134?Pi(Ka):H()===39?1:0}function Ka(){if(H()===134&&(Ne(),t.hasPrecedingLineBreak()||H()!==21&&H()!==30))return 0;let X=H(),Te=Ne();if(X===21){if(Te===22)switch(Ne()){case 39:case 59:case 19:return 1;default:return 0}if(Te===23||Te===19)return 2;if(Te===26)return 1;if(Dy(Te)&&Te!==134&&Pi(tp))return Ne()===130?0:1;if(!xo()&&Te!==110)return 0;switch(Ne()){case 59:return 1;case 58:return Ne(),H()===59||H()===28||H()===64||H()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return x.assert(X===30),!xo()&&H()!==87?0:be===1?Pi(()=>{mo(87);let St=Ne();if(St===96)switch(Ne()){case 64:case 32:case 44:return!1;default:return!0}else if(St===28||St===64)return!0;return!1})?1:0:2}function t_(X){let Te=t.getTokenStart();if(Dn?.has(Te))return;let Ue=zE(!1,X);return Ue||(Dn||(Dn=new Set)).add(Te),Ue}function dA(X){if(H()===134&&Pi(uA)===1){let Te=k(),Ue=ie(),St=mf(),xt=am(0);return ev(Te,xt,X,Ue,St)}}function uA(){if(H()===134){if(Ne(),t.hasPrecedingLineBreak()||H()===39)return 0;let X=am(0);if(!t.hasPrecedingLineBreak()&&X.kind===80&&H()===39)return 1}return 0}function zE(X,Te){let Ue=k(),St=ie(),xt=mf(),Vt=gt(xt,oP)?2:0,wr=cf(),Oi;if(xn(21)){if(X)Oi=Jn(Vt,X);else{let gg=Jn(Vt,X);if(!gg)return;Oi=gg}if(!xn(22)&&!X)return}else{if(!X)return;Oi=Sp()}let Ci=H()===59,mi=Bt(59,!1);if(mi&&!X&&Bu(mi))return;let Xi=mi;for(;Xi?.kind===196;)Xi=Xi.type;let cs=Xi&&kR(Xi);if(!X&&H()!==39&&(cs||H()!==19))return;let As=H(),$a=bs(39),Of=As===39||As===19?pA(gt(xt,oP),Te):Rs();if(!Te&&Ci&&H()!==59)return;let K_=m.createArrowFunction(xt,wr,Oi,mi,$a,Of);return Er(tn(K_,Ue),St)}function pA(X,Te){if(H()===19)return mb(X?2:0);if(H()!==27&&H()!==100&&H()!==86&&TS()&&!cA())return mb(16|(X?2:0));let Ue=pn;pn=!1;let St=X?ae(()=>md(Te)):ke(()=>md(Te));return pn=Ue,St}function om(X,Te,Ue){let St=la(58);if(!St)return X;let xt;return tn(m.createConditionalExpression(X,St,ua(r,()=>md(!1)),xt=bs(59),Hf(xt)?md(Ue):Fs(80,!1,f._0_expected,da(59))),Te)}function am(X){let Te=k(),Ue=db();return K1(X,Ue,Te)}function $g(X){return X===103||X===165}function K1(X,Te,Ue){for(;;){Ut();let St=X2(H());if(!(H()===43?St>=X:St>X)||H()===103&&He())break;if(H()===130||H()===152){if(t.hasPrecedingLineBreak())break;{let Vt=H();Ne(),Te=Vt===152?BD(Te,yc()):qi(Te,yc())}}else Te=gS(Te,ul(),am(St),Ue)}return Te}function n_(){return He()&&H()===103?!1:X2(H())>0}function BD(X,Te){return tn(m.createSatisfiesExpression(X,Te),X.pos)}function gS(X,Te,Ue,St){return tn(m.createBinaryExpression(X,Te,Ue),St)}function qi(X,Te){return tn(m.createAsExpression(X,Te),X.pos)}function Qr(){let X=k();return tn(m.createPrefixUnaryExpression(H(),We(hl)),X)}function xh(){let X=k();return tn(m.createDeleteExpression(We(hl)),X)}function Vu(){let X=k();return tn(m.createTypeOfExpression(We(hl)),X)}function SM(){let X=k();return tn(m.createVoidExpression(We(hl)),X)}function Qg(){return H()===135?hn()?!0:Pi(Bs):!1}function TM(){let X=k();return tn(m.createAwaitExpression(We(hl)),X)}function db(){if(Bp()){let Ue=k(),St=dg();return H()===43?K1(X2(H()),St,Ue):St}let X=H(),Te=hl();if(H()===43){let Ue=Na(De,Te.pos),{end:St}=Te;Te.kind===216?U(Ue,St,f.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(x.assert(ZF(X)),U(Ue,St,f.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,da(X)))}return Te}function hl(){switch(H()){case 40:case 41:case 55:case 54:return Qr();case 91:return xh();case 114:return Vu();case 116:return SM();case 30:return be===1?Zg(!0,void 0,void 0,!0):Mm();case 135:if(Qg())return TM();default:return dg()}}function Bp(){switch(H()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(be!==1)return!1;default:return!0}}function dg(){if(H()===46||H()===47){let Te=k();return tn(m.createPrefixUnaryExpression(H(),We(sm)),Te)}else if(be===1&&H()===30&&Pi(im))return Zg(!0);let X=sm();if(x.assert(Yu(X)),(H()===46||H()===47)&&!t.hasPrecedingLineBreak()){let Te=H();return Ne(),tn(m.createPostfixUnaryExpression(X,Te),X.pos)}return X}function sm(){let X=k(),Te;return H()===102?Pi(fd)?(Ae|=4194304,Te=ul()):Pi(Xg)?(Ne(),Ne(),Te=tn(m.createMetaProperty(102,Ac()),X),Ae|=8388608):Te=ub():Te=H()===108?Pm():ub(),rv(X,Te)}function ub(){let X=k(),Te=BE();return rd(X,Te,!0)}function Pm(){let X=k(),Te=ul();if(H()===30){let Ue=k(),St=Ri(ar);St!==void 0&&(U(Ue,k(),f.super_may_not_use_type_arguments),Qi()||(Te=m.createExpressionWithTypeArguments(Te,St)))}return H()===21||H()===25||H()===23?Te:(bs(25,f.super_must_be_followed_by_an_argument_list_or_member_access),tn(Y(Te,wt(!0,!0,!0)),X))}function Zg(X,Te,Ue,St=!1){let xt=k(),Vt=pg(X),wr;if(Vt.kind===286){let Oi=ug(Vt),Ci,mi=Oi[Oi.length-1];if(mi?.kind===284&&!bE(mi.openingElement.tagName,mi.closingElement.tagName)&&bE(Vt.tagName,mi.closingElement.tagName)){let Xi=mi.children.end,cs=tn(m.createJsxElement(mi.openingElement,mi.children,tn(m.createJsxClosingElement(tn(N(""),Xi,Xi)),Xi,Xi)),mi.openingElement.pos,Xi);Oi=Lo([...Oi.slice(0,Oi.length-1),cs],Oi.pos,Xi),Ci=mi.closingElement}else Ci=vS(Vt,X),bE(Vt.tagName,Ci.tagName)||(Ue&&P_(Ue)&&bE(Ci.tagName,Ue.tagName)?Me(Vt.tagName,f.JSX_element_0_has_no_corresponding_closing_tag,dN(De,Vt.tagName)):Me(Ci.tagName,f.Expected_corresponding_JSX_closing_tag_for_0,dN(De,Vt.tagName)));wr=tn(m.createJsxElement(Vt,Oi,Ci),xt)}else Vt.kind===289?wr=tn(m.createJsxFragment(Vt,ug(Vt),_A(X)),xt):(x.assert(Vt.kind===285),wr=Vt);if(!St&&X&&H()===30){let Oi=typeof Te>"u"?wr.pos:Te,Ci=Ri(()=>Zg(!0,Oi));if(Ci){let mi=Fs(28,!1);return KN(mi,Ci.pos,0),U(Na(De,Oi),Ci.end,f.JSX_expressions_must_have_one_parent_element),tn(m.createBinaryExpression(wr,mi,Ci),xt)}}return wr}function yS(){let X=k(),Te=m.createJsxText(t.getTokenValue(),_t===13);return _t=t.scanJsxToken(),tn(Te,X)}function fA(X,Te){switch(Te){case 1:if(i1(X))Me(X,f.JSX_fragment_has_no_corresponding_closing_tag);else{let Ue=X.tagName,St=Math.min(Na(De,Ue.pos),Ue.end);U(St,Ue.end,f.JSX_element_0_has_no_corresponding_closing_tag,dN(De,X.tagName))}return;case 31:case 7:return;case 12:case 13:return yS();case 19:return GD(!1);case 30:return Zg(!1,void 0,X);default:return x.assertNever(Te)}}function ug(X){let Te=[],Ue=k(),St=en;for(en|=16384;;){let xt=fA(X,_t=t.reScanJsxToken());if(!xt||(Te.push(xt),P_(X)&&xt?.kind===284&&!bE(xt.openingElement.tagName,xt.closingElement.tagName)&&bE(X.tagName,xt.closingElement.tagName)))break}return en=St,Lo(Te,Ue)}function J1(){let X=k();return tn(m.createJsxAttributes(Zo(13,VD)),X)}function pg(X){let Te=k();if(xn(30),H()===32)return er(),tn(m.createJsxOpeningFragment(),Te);let Ue=G_(),St=Kn&524288?void 0:JE(),xt=J1(),Vt;return H()===32?(er(),Vt=m.createJsxOpeningElement(Ue,St,xt)):(xn(44),xn(32,void 0,!1)&&(X?Ne():er()),Vt=m.createJsxSelfClosingElement(Ue,St,xt)),tn(Vt,Te)}function G_(){let X=k(),Te=nv();if(qm(Te))return Te;let Ue=Te;for(;mo(25);)Ue=tn(Y(Ue,wt(!0,!1,!1)),X);return Ue}function nv(){let X=k();xi();let Te=H()===110,Ue=de();return mo(59)?(xi(),tn(m.createJsxNamespacedName(Ue,de()),X)):Te?tn(m.createToken(110),X):Ue}function GD(X){let Te=k();if(!xn(19))return;let Ue,St;return H()!==20&&(X||(Ue=la(26)),St=Ve()),X?xn(20):xn(20,void 0,!1)&&er(),tn(m.createJsxExpression(Ue,St),Te)}function VD(){if(H()===19)return qs();let X=k();return tn(m.createJsxAttribute(mA(),jD()),X)}function jD(){if(H()===64){if(Fr()===11)return Xr();if(H()===19)return GD(!0);if(H()===30)return Zg(!0);dn(f.or_JSX_element_expected)}}function mA(){let X=k();xi();let Te=de();return mo(59)?(xi(),tn(m.createJsxNamespacedName(Te,de()),X)):Te}function qs(){let X=k();xn(19),xn(26);let Te=Ve();return xn(20),tn(m.createJsxSpreadAttribute(Te),X)}function vS(X,Te){let Ue=k();xn(31);let St=G_();return xn(32,void 0,!1)&&(Te||!bE(X.tagName,St)?Ne():er()),tn(m.createJsxClosingElement(St),Ue)}function _A(X){let Te=k();return xn(31),xn(32,f.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(X?Ne():er()),tn(m.createJsxJsxClosingFragment(),Te)}function Mm(){x.assert(be!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let X=k();xn(30);let Te=yc();xn(32);let Ue=hl();return tn(m.createTypeAssertion(Te,Ue),X)}function pb(){return Ne(),ru(H())||H()===23||Qi()}function UD(){return H()===29&&Pi(pb)}function hA(X){if(X.flags&64)return!0;if(t1(X)){let Te=X.expression;for(;t1(Te)&&!(Te.flags&64);)Te=Te.expression;if(Te.flags&64){for(;t1(X);)X.flags|=64,X=X.expression;return!0}}return!1}function AM(X,Te,Ue){let St=wt(!0,!0,!0),xt=Ue||hA(Te),Vt=xt?B(Te,Ue,St):Y(Te,St);if(xt&&Ki(Vt.name)&&Me(Vt.name,f.An_optional_chain_cannot_contain_private_identifiers),zy(Te)&&Te.typeArguments){let wr=Te.typeArguments.pos-1,Oi=Na(De,Te.typeArguments.end)+1;U(wr,Oi,f.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return tn(Vt,X)}function fr(X,Te,Ue){let St;if(H()===24)St=Fs(80,!0,f.An_element_access_expression_should_take_an_argument);else{let Vt=vn(Ve);$p(Vt)&&(Vt.text=nd(Vt.text)),St=Vt}xn(24);let xt=Ue||hA(Te)?z(Te,Ue,St):ce(Te,St);return tn(xt,X)}function rd(X,Te,Ue){for(;;){let St,xt=!1;if(Ue&&UD()?(St=bs(29),xt=ru(H())):xt=mo(25),xt){Te=AM(X,Te,St);continue}if((St||!Ft())&&mo(23)){Te=fr(X,Te,St);continue}if(Qi()){Te=!St&&Te.kind===233?uf(X,Te.expression,St,Te.typeArguments):uf(X,Te,St,void 0);continue}if(!St){if(H()===54&&!t.hasPrecedingLineBreak()){Ne(),Te=tn(m.createNonNullExpression(Te),X);continue}let Vt=Ri(ar);if(Vt){Te=tn(m.createExpressionWithTypeArguments(Te,Vt),X);continue}}return Te}}function Qi(){return H()===15||H()===16}function uf(X,Te,Ue,St){let xt=m.createTaggedTemplateExpression(Te,St,H()===15?(wn(!0),Xr()):O(!0));return(Ue||Te.flags&64)&&(xt.flags|=64),xt.questionDotToken=Ue,tn(xt,X)}function rv(X,Te){for(;;){Te=rd(X,Te,!0);let Ue,St=la(29);if(St&&(Ue=Ri(ar),Qi())){Te=uf(X,Te,St,Ue);continue}if(Ue||H()===21){!St&&Te.kind===233&&(Ue=Te.typeArguments,Te=Te.expression);let xt=V_(),Vt=St||hA(Te)?me(Te,St,Ue,xt):Z(Te,Ue,xt);Te=tn(Vt,X);continue}if(St){let xt=Fs(80,!1,f.Identifier_expected);Te=tn(B(Te,St,xt),X)}break}return Te}function V_(){xn(21);let X=Fd(11,bS);return xn(22),X}function ar(){if(Kn&524288||Bn()!==30)return;Ne();let X=Fd(20,yc);if(Ut()===32)return Ne(),X&&gA()?X:void 0}function gA(){switch(H()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||n_()||!Zm()}function BE(){switch(H()){case 15:t.getTokenFlags()&26656&&wn(!1);case 9:case 10:case 11:return Xr();case 110:case 108:case 106:case 112:case 97:return ul();case 21:return qc();case 23:return ES();case 19:return ey();case 134:if(!Pi(TA))break;return yA();case 60:return KE();case 86:return ex();case 100:return yA();case 105:return GE();case 44:case 69:if(En()===14)return Xr();break;case 16:return O(!1);case 81:return pr()}return Rs(f.Expression_expected)}function qc(){let X=k(),Te=ie();xn(21);let Ue=vn(Ve);return xn(22),Er(tn(q(Ue),X),Te)}function Rh(){let X=k();xn(26);let Te=md(!0);return tn(m.createSpreadElement(Te),X)}function Lm(){return H()===26?Rh():H()===28?tn(m.createOmittedExpression(),k()):md(!0)}function bS(){return ua(r,Lm)}function ES(){let X=k(),Te=t.getTokenStart(),Ue=xn(23),St=t.hasPrecedingLineBreak(),xt=Fd(15,Lm);return cd(23,24,Ue,Te),tn(j(xt,St),X)}function fb(){let X=k(),Te=ie();if(la(26)){let Xi=md(!0);return Er(tn(m.createSpreadAssignment(Xi),X),Te)}let Ue=Ch(!0);if(zr(139))return ny(X,Te,Ue,177,0);if(zr(153))return ny(X,Te,Ue,178,0);let St=la(42),xt=xo(),Vt=cn(),wr=la(58),Oi=la(54);if(St||H()===21||H()===30)return r_(X,Te,Ue,St,Vt,wr,Oi);let Ci;if(xt&&H()!==59){let Xi=la(64),cs=Xi?vn(()=>md(!0)):void 0;Ci=m.createShorthandPropertyAssignment(Vt,cs),Ci.equalsToken=Xi}else{xn(59);let Xi=vn(()=>md(!0));Ci=m.createPropertyAssignment(Vt,Xi)}return Ci.modifiers=Ue,Ci.questionToken=wr,Ci.exclamationToken=Oi,Er(tn(Ci,X),Te)}function ey(){let X=k(),Te=t.getTokenStart(),Ue=xn(19),St=t.hasPrecedingLineBreak(),xt=Fd(12,fb,!0);return cd(19,20,Ue,Te),tn(K(xt,St),X)}function yA(){let X=Ft();$i(!1);let Te=k(),Ue=ie(),St=Ch(!1);xn(100);let xt=la(42),Vt=xt?1:0,wr=gt(St,oP)?2:0,Oi=Vt&&wr?st(km):Vt?lt(km):wr?ae(km):km(),Ci=cf(),mi=fn(Vt|wr),Xi=Bt(59,!1),cs=mb(Vt|wr);$i(X);let As=m.createFunctionExpression(St,xt,Oi,Ci,mi,Xi,cs);return Er(tn(As,Te),Ue)}function km(){return Kr()?Ep():void 0}function GE(){let X=k();if(xn(105),mo(25)){let Vt=Ac();return tn(m.createMetaProperty(105,Vt),X)}let Te=k(),Ue=rd(Te,BE(),!1),St;Ue.kind===233&&(St=Ue.typeArguments,Ue=Ue.expression),H()===29&&dn(f.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,dN(De,Ue));let xt=H()===21?V_():void 0;return tn(ge(Ue,St,xt),X)}function fg(X,Te){let Ue=k(),St=ie(),xt=t.getTokenStart(),Vt=xn(19,Te);if(Vt||X){let wr=t.hasPrecedingLineBreak(),Oi=Zo(1,ip);cd(19,20,Vt,xt);let Ci=Er(tn(J(Oi,wr),Ue),St);return H()===64&&(dn(f.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),Ne()),Ci}else{let wr=Sp();return Er(tn(J(wr,void 0),Ue),St)}}function mb(X,Te){let Ue=Tt();yi(!!(X&1));let St=hn();Io(!!(X&2));let xt=pn;pn=!1;let Vt=Ft();Vt&&$i(!1);let wr=fg(!!(X&16),Te);return Vt&&$i(!0),pn=xt,yi(Ue),Io(St),wr}function q1(){let X=k(),Te=ie();return xn(27),Er(tn(m.createEmptyStatement(),X),Te)}function VE(){let X=k(),Te=ie();xn(101);let Ue=t.getTokenStart(),St=xn(21),xt=vn(Ve);cd(21,22,St,Ue);let Vt=ip(),wr=mo(93)?ip():void 0;return Er(tn(xe(xt,Vt,wr),X),Te)}function HD(){let X=k(),Te=ie();xn(92);let Ue=ip();xn(117);let St=t.getTokenStart(),xt=xn(21),Vt=vn(Ve);return cd(21,22,xt,St),mo(27),Er(tn(m.createDoStatement(Ue,Vt),X),Te)}function SS(){let X=k(),Te=ie();xn(117);let Ue=t.getTokenStart(),St=xn(21),xt=vn(Ve);cd(21,22,St,Ue);let Vt=ip();return Er(tn(fe(xt,Vt),X),Te)}function vA(){let X=k(),Te=ie();xn(99);let Ue=la(135);xn(21);let St;H()!==27&&(H()===115||H()===121||H()===87||H()===160&&Pi(ty)||H()===135&&Pi(Ip)?St=AS(!0):St=kn(Ve));let xt;if(Ue?xn(165):mo(165)){let Vt=vn(()=>md(!0));xn(22),xt=he(Ue,St,Vt,ip())}else if(mo(103)){let Vt=vn(Ve);xn(22),xt=m.createForInStatement(St,Vt,ip())}else{xn(27);let Vt=H()!==27&&H()!==22?vn(Ve):void 0;xn(27);let wr=H()!==22?vn(Ve):void 0;xn(22),xt=ne(St,Vt,wr,ip())}return Er(tn(xt,X),Te)}function Gp(X){let Te=k(),Ue=ie();xn(X===252?83:88);let St=ac()?void 0:Rs();al();let xt=X===252?m.createBreakStatement(St):m.createContinueStatement(St);return Er(tn(xt,Te),Ue)}function bA(){let X=k(),Te=ie();xn(107);let Ue=ac()?void 0:vn(Ve);return al(),Er(tn(m.createReturnStatement(Ue),X),Te)}function Vl(){let X=k(),Te=ie();xn(118);let Ue=t.getTokenStart(),St=xn(21),xt=vn(Ve);cd(21,22,St,Ue);let Vt=Ba(67108864,ip);return Er(tn(m.createWithStatement(xt,Vt),X),Te)}function Wc(){let X=k(),Te=ie();xn(84);let Ue=vn(Ve);xn(59);let St=Zo(3,ip);return Er(tn(m.createCaseClause(Ue,St),X),Te)}function EA(){let X=k();xn(90),xn(59);let Te=Zo(3,ip);return tn(m.createDefaultClause(Te),X)}function Td(){return H()===84?Wc():EA()}function rp(){let X=k();xn(19);let Te=Zo(2,Td);return xn(20),tn(m.createCaseBlock(Te),X)}function jE(){let X=k(),Te=ie();xn(109),xn(21);let Ue=vn(Ve);xn(22);let St=rp();return Er(tn(m.createSwitchStatement(Ue,St),X),Te)}function Lf(){let X=k(),Te=ie();xn(111);let Ue=t.hasPrecedingLineBreak()?void 0:vn(Ve);return Ue===void 0&&(Zt++,Ue=tn(N(""),k())),xl()||$l(Ue),Er(tn(m.createThrowStatement(Ue),X),Te)}function _b(){let X=k(),Te=ie();xn(113);let Ue=fg(!1),St=H()===85?hb():void 0,xt;return(!St||H()===98)&&(xn(98,f.catch_or_finally_expected),xt=fg(!1)),Er(tn(m.createTryStatement(Ue,St,xt),X),Te)}function hb(){let X=k();xn(85);let Te;mo(21)?(Te=Ru(),xn(22)):Te=void 0;let Ue=fg(!1);return tn(m.createCatchClause(Te,Ue),X)}function id(){let X=k(),Te=ie();return xn(89),al(),Er(tn(m.createDebuggerStatement(),X),Te)}function X1(){let X=k(),Te=ie(),Ue,St=H()===21,xt=vn(Ve);return Fe(xt)&&mo(59)?Ue=m.createLabeledStatement(xt,ip()):(xl()||$l(xt),Ue=pe(xt),St&&(Te=!1)),Er(tn(Ue,X),Te)}function Vp(){return Ne(),ru(H())&&!t.hasPrecedingLineBreak()}function SA(){return Ne(),H()===86&&!t.hasPrecedingLineBreak()}function TA(){return Ne(),H()===100&&!t.hasPrecedingLineBreak()}function Bs(){return Ne(),(ru(H())||H()===9||H()===10||H()===11)&&!t.hasPrecedingLineBreak()}function KD(){for(;;)switch(H()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return Y1();case 135:return $1();case 120:case 156:return H1();case 144:case 145:return XD();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:let X=H();if(Ne(),t.hasPrecedingLineBreak())return!1;if(X===138&&H()===156)return!0;continue;case 162:return Ne(),H()===19||H()===80||H()===95;case 102:return Ne(),H()===11||H()===42||H()===19||ru(H());case 95:let Te=Ne();if(Te===156&&(Te=Pi(Ne)),Te===64||Te===42||Te===19||Te===90||Te===130||Te===60)return!0;continue;case 126:Ne();continue;default:return!1}}function UE(){return Pi(KD)}function TS(){switch(H()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return UE()||Pi(LE);case 87:case 95:return UE();case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return UE()||!Pi(Vp);default:return Zm()}}function IM(){return Ne(),Kr()||H()===19||H()===23}function mu(){return Pi(IM)}function ty(){return j_(!0)}function j_(X){return Ne(),X&&H()===165?!1:(Kr()||H()===19)&&!t.hasPrecedingLineBreak()}function Y1(){return Pi(j_)}function Ip(X){return Ne()===160?j_(X):!1}function $1(){return Pi(Ip)}function ip(){switch(H()){case 27:return q1();case 19:return fg(!1);case 115:return HE(k(),ie(),void 0);case 121:if(mu())return HE(k(),ie(),void 0);break;case 135:if($1())return HE(k(),ie(),void 0);break;case 160:if(Y1())return HE(k(),ie(),void 0);break;case 100:return IS(k(),ie(),void 0);case 86:return DA(k(),ie(),void 0);case 101:return VE();case 92:return HD();case 117:return SS();case 99:return vA();case 88:return Gp(251);case 83:return Gp(252);case 107:return bA();case 118:return Vl();case 109:return jE();case 111:return Lf();case 113:case 85:case 98:return _b();case 89:return id();case 60:return iv();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(UE())return iv();break}return X1()}function Q1(X){return X.kind===138}function iv(){let X=k(),Te=ie(),Ue=Ch(!0);if(gt(Ue,Q1)){let xt=AA(X);if(xt)return xt;for(let Vt of Ue)Vt.flags|=33554432;return Ba(33554432,()=>JD(X,Te,Ue))}else return JD(X,Te,Ue)}function AA(X){return Ba(33554432,()=>{let Te=gc(en,X);if(Te)return sl(Te)})}function JD(X,Te,Ue){switch(H()){case 115:case 121:case 87:case 160:case 135:return HE(X,Te,Ue);case 100:return IS(X,Te,Ue);case 86:return DA(X,Te,Ue);case 120:return dt(X,Te,Ue);case 156:return nn(X,Te,Ue);case 94:return ki(X,Te,Ue);case 162:case 144:case 145:return Qd(X,Te,Ue);case 102:return Vn(X,Te,Ue);case 95:switch(Ne(),H()){case 90:case 64:return Mh(X,Te,Ue);case 130:return Nh(X,Te,Ue);default:return xM(X,Te,Ue)}default:if(Ue){let St=Fs(282,!0,f.Declaration_expected);return HN(St,X),St.modifiers=Ue,St}return}}function qD(){return Ne()===11}function IA(){return Ne(),H()===161||H()===64}function XD(){return Ne(),!t.hasPrecedingLineBreak()&&(xo()||H()===11)}function gb(X,Te){if(H()!==19){if(X&4){qn();return}if(ac()){al();return}}return mb(X,Te)}function xp(){let X=k();if(H()===28)return tn(m.createOmittedExpression(),X);let Te=la(26),Ue=Sr(),St=e_();return tn(m.createBindingElement(Te,void 0,Ue,St),X)}function Dh(){let X=k(),Te=la(26),Ue=Kr(),St=cn(),xt;Ue&&H()!==59?(xt=St,St=void 0):(xn(59),xt=Sr());let Vt=e_();return tn(m.createBindingElement(Te,St,xt,Vt),X)}function YD(){let X=k();xn(19);let Te=vn(()=>Fd(9,Dh));return xn(20),tn(m.createObjectBindingPattern(Te),X)}function xA(){let X=k();xn(23);let Te=vn(()=>Fd(10,xp));return xn(24),tn(m.createArrayBindingPattern(Te),X)}function es(){return H()===19||H()===23||H()===81||Kr()}function Sr(X){return H()===23?xA():H()===19?YD():Ep(X)}function pf(){return Ru(!0)}function Ru(X){let Te=k(),Ue=ie(),St=Sr(f.Private_identifiers_are_not_allowed_in_variable_declarations),xt;X&&St.kind===80&&H()===54&&!t.hasPrecedingLineBreak()&&(xt=ul());let Vt=Zy(),wr=$g(H())?void 0:e_(),Oi=Ce(St,xt,Vt,wr);return Er(tn(Oi,Te),Ue)}function AS(X){let Te=k(),Ue=0;switch(H()){case 115:break;case 121:Ue|=1;break;case 87:Ue|=2;break;case 160:Ue|=4;break;case 135:x.assert($1()),Ue|=6,Ne();break;default:x.fail()}Ne();let St;if(H()===165&&Pi($D))St=Sp();else{let xt=He();si(X),St=Fd(8,X?Ru:pf),si(xt)}return tn(Ge(St,Ue),Te)}function $D(){return tp()&&Ne()===22}function HE(X,Te,Ue){let St=AS(!1);al();let xt=re(Ue,St);return Er(tn(xt,X),Te)}function IS(X,Te,Ue){let St=hn(),xt=x_(Ue);xn(100);let Vt=la(42),wr=xt&2048?km():Ep(),Oi=Vt?1:0,Ci=xt&1024?2:0,mi=cf();xt&32&&Io(!0);let Xi=fn(Oi|Ci),cs=Bt(59,!1),As=gb(Oi|Ci,f.or_expected);Io(St);let $a=m.createFunctionDeclaration(Ue,Vt,wr,mi,Xi,cs,As);return Er(tn($a,X),Te)}function RA(){if(H()===137)return xn(137);if(H()===11&&Pi(Ne)===21)return Ri(()=>{let X=Xr();return X.text==="constructor"?X:void 0})}function mg(X,Te,Ue){return Ri(()=>{if(RA()){let St=cf(),xt=fn(0),Vt=Bt(59,!1),wr=gb(0,f.or_expected),Oi=m.createConstructorDeclaration(Ue,xt,wr);return Oi.typeParameters=St,Oi.type=Vt,Er(tn(Oi,X),Te)}})}function r_(X,Te,Ue,St,xt,Vt,wr,Oi){let Ci=St?1:0,mi=gt(Ue,oP)?2:0,Xi=cf(),cs=fn(Ci|mi),As=Bt(59,!1),$a=gb(Ci|mi,Oi),Of=m.createMethodDeclaration(Ue,St,xt,Vt,Xi,cs,As,$a);return Of.exclamationToken=wr,Er(tn(Of,X),Te)}function ff(X,Te,Ue,St,xt){let Vt=!xt&&!t.hasPrecedingLineBreak()?la(54):void 0,wr=Zy(),Oi=ua(90112,e_);Ws(St,wr,Oi);let Ci=m.createPropertyDeclaration(Ue,St,xt||Vt,wr,Oi);return Er(tn(Ci,X),Te)}function wm(X,Te,Ue){let St=la(42),xt=cn(),Vt=la(58);return St||H()===21||H()===30?r_(X,Te,Ue,St,xt,Vt,void 0,f.or_expected):ff(X,Te,Ue,xt,Vt)}function ny(X,Te,Ue,St,xt){let Vt=cn(),wr=cf(),Oi=fn(0),Ci=Bt(59,!1),mi=gb(xt),Xi=St===177?m.createGetAccessorDeclaration(Ue,Vt,Oi,Ci,mi):m.createSetAccessorDeclaration(Ue,Vt,Oi,mi);return Xi.typeParameters=wr,hp(Xi)&&(Xi.type=Ci),Er(tn(Xi,X),Te)}function _g(){let X;if(H()===60)return!0;for(;Dy(H());){if(X=H(),CV(X))return!0;Ne()}if(H()===42||($()&&(X=H(),Ne()),H()===23))return!0;if(X!==void 0){if(!wu(X)||X===153||X===139)return!0;switch(H()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return ac()}}return!1}function hg(X,Te,Ue){bs(126);let St=Z1(),xt=Er(tn(m.createClassStaticBlockDeclaration(St),X),Te);return xt.modifiers=Ue,xt}function Z1(){let X=Tt(),Te=hn();yi(!1),Io(!0);let Ue=fg(!1);return yi(X),Io(Te),Ue}function sc(){if(hn()&&H()===135){let X=k(),Te=Rs(f.Expression_expected);Ne();let Ue=rd(X,Te,!0);return rv(X,Ue)}return sm()}function QD(){let X=k();if(!mo(60))return;let Te=Rt(sc);return tn(m.createDecorator(Te),X)}function kf(X,Te,Ue){let St=k(),xt=H();if(H()===87&&Te){if(!Ri(Di))return}else{if(Ue&&H()===126&&Pi(vb))return;if(X&&H()===126)return;if(!Hc())return}return tn(w(xt),St)}function Ch(X,Te,Ue){let St=k(),xt,Vt,wr,Oi=!1,Ci=!1,mi=!1;if(X&&H()===60)for(;Vt=QD();)xt=Tn(xt,Vt);for(;wr=kf(Oi,Te,Ue);)wr.kind===126&&(Oi=!0),xt=Tn(xt,wr),Ci=!0;if(Ci&&X&&H()===60)for(;Vt=QD();)xt=Tn(xt,Vt),mi=!0;if(mi)for(;wr=kf(Oi,Te,Ue);)wr.kind===126&&(Oi=!0),xt=Tn(xt,wr);return xt&&Lo(xt,St)}function mf(){let X;if(H()===134){let Te=k();Ne();let Ue=tn(w(134),Te);X=Lo([Ue],Te)}return X}function xS(){let X=k(),Te=ie();if(H()===27)return Ne(),Er(tn(m.createSemicolonClassElement(),X),Te);let Ue=Ch(!0,!0,!0);if(H()===126&&Pi(vb))return hg(X,Te,Ue);if(zr(139))return ny(X,Te,Ue,177,0);if(zr(153))return ny(X,Te,Ue,178,0);if(H()===137||H()===11){let St=mg(X,Te,Ue);if(St)return St}if(or())return cr(X,Te,Ue);if(ru(H())||H()===11||H()===9||H()===42||H()===23)if(gt(Ue,Q1)){for(let xt of Ue)xt.flags|=33554432;return Ba(33554432,()=>wm(X,Te,Ue))}else return wm(X,Te,Ue);if(Ue){let St=Fs(80,!0,f.Declaration_expected);return ff(X,Te,Ue,St,void 0)}return x.fail("Should not have attempted to parse class member declaration.")}function KE(){let X=k(),Te=ie(),Ue=Ch(!0);if(H()===86)return _f(X,Te,Ue,231);let St=Fs(282,!0,f.Expression_expected);return HN(St,X),St.modifiers=Ue,St}function ex(){return _f(k(),ie(),void 0,231)}function DA(X,Te,Ue){return _f(X,Te,Ue,263)}function _f(X,Te,Ue,St){let xt=hn();xn(86);let Vt=Ds(),wr=cf();gt(Ue,JI)&&Io(!0);let Oi=DS(),Ci;xn(19)?(Ci=oe(),xn(20)):Ci=Sp(),Io(xt);let mi=St===263?m.createClassDeclaration(Ue,Vt,wr,Oi,Ci):m.createClassExpression(Ue,Vt,wr,Oi,Ci);return Er(tn(mi,X),Te)}function Ds(){return Kr()&&!RS()?ud(Kr()):void 0}function RS(){return H()===119&&Pi(Oc)}function DS(){if(I())return Zo(22,ry)}function ry(){let X=k(),Te=H();x.assert(Te===96||Te===119),Ne();let Ue=Fd(7,yb);return tn(m.createHeritageClause(Te,Ue),X)}function yb(){let X=k(),Te=sm();if(Te.kind===233)return Te;let Ue=JE();return tn(m.createExpressionWithTypeArguments(Te,Ue),X)}function JE(){return H()===30?zu(20,yc,30,32):void 0}function I(){return H()===96||H()===119}function oe(){return Zo(5,xS)}function dt(X,Te,Ue){xn(120);let St=Rs(),xt=cf(),Vt=DS(),wr=kE(),Oi=m.createInterfaceDeclaration(Ue,St,xt,Vt,wr);return Er(tn(Oi,X),Te)}function nn(X,Te,Ue){xn(156),t.hasPrecedingLineBreak()&&dn(f.Line_break_not_permitted_here);let St=Rs(),xt=cf();xn(64);let Vt=H()===141&&Ri(aA)||yc();al();let wr=m.createTypeAliasDeclaration(Ue,St,xt,Vt);return Er(tn(wr,X),Te)}function Mr(){let X=k(),Te=ie(),Ue=cn(),St=vn(e_);return Er(tn(m.createEnumMember(Ue,St),X),Te)}function ki(X,Te,Ue){xn(94);let St=Rs(),xt;xn(19)?(xt=G(()=>Fd(6,Mr)),xn(20)):xt=Sp();let Vt=m.createEnumDeclaration(Ue,St,xt);return Er(tn(Vt,X),Te)}function vi(){let X=k(),Te;return xn(19)?(Te=Zo(1,ip),xn(20)):Te=Sp(),tn(m.createModuleBlock(Te),X)}function Zi(X,Te,Ue,St){let xt=St&32,Vt=St&8?Ac():Rs(),wr=mo(25)?Zi(k(),!1,void 0,8|xt):vi(),Oi=m.createModuleDeclaration(Ue,Vt,wr,St);return Er(tn(Oi,X),Te)}function _a(X,Te,Ue){let St=0,xt;H()===162?(xt=Rs(),St|=2048):(xt=Xr(),xt.text=nd(xt.text));let Vt;H()===19?Vt=vi():al();let wr=m.createModuleDeclaration(Ue,xt,Vt,St);return Er(tn(wr,X),Te)}function Qd(X,Te,Ue){let St=0;if(H()===162)return _a(X,Te,Ue);if(mo(145))St|=32;else if(xn(144),H()===11)return _a(X,Te,Ue);return Zi(X,Te,Ue,St)}function Du(){return H()===149&&Pi(wf)}function wf(){return Ne()===21}function vb(){return Ne()===19}function Si(){return Ne()===44}function Nh(X,Te,Ue){xn(130),xn(145);let St=Rs();al();let xt=m.createNamespaceExportDeclaration(St);return xt.modifiers=Ue,Er(tn(xt,X),Te)}function Vn(X,Te,Ue){xn(102);let St=t.getTokenFullStart(),xt;xo()&&(xt=Rs());let Vt=!1;if(xt?.escapedText==="type"&&(H()!==161||xo()&&Pi(IA))&&(xo()||Eb())&&(Vt=!0,xt=xo()?Rs():void 0),xt&&!CA())return CS(X,Te,Ue,xt,Vt);let wr;(xt||H()===42||H()===19)&&(wr=U_(xt,St,Vt),xn(161));let Oi=NA(),Ci=H(),mi;(Ci===118||Ci===132)&&!t.hasPrecedingLineBreak()&&(mi=bb(Ci)),al();let Xi=m.createImportDeclaration(Ue,wr,Oi,mi);return Er(tn(Xi,X),Te)}function tx(){let X=k(),Te=ru(H())?Ac():wl(11);xn(59);let Ue=md(!0);return tn(m.createImportAttribute(Te,Ue),X)}function bb(X,Te){let Ue=k();Te||xn(X);let St=t.getTokenStart();if(xn(19)){let xt=t.hasPrecedingLineBreak(),Vt=Fd(24,tx,!0);if(!xn(20)){let wr=$s(ze);wr&&wr.code===f._0_expected.code&&Pa(wr,yR(ve,De,St,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return tn(m.createImportAttributes(Vt,xt,X),Ue)}else{let xt=Lo([],k(),void 0,!1);return tn(m.createImportAttributes(xt,!1,X),Ue)}}function Eb(){return H()===42||H()===19}function CA(){return H()===28||H()===161}function CS(X,Te,Ue,St,xt){xn(64);let Vt=Ph();al();let wr=m.createImportEqualsDeclaration(Ue,xt,St,Vt);return Er(tn(wr,X),Te)}function U_(X,Te,Ue){let St;return(!X||mo(28))&&(St=H()===42?UB():Sb(275)),tn(m.createImportClause(Ue,X,St),Te)}function Ph(){return Du()?ZD():Q(!1)}function ZD(){let X=k();xn(149),xn(21);let Te=NA();return xn(22),tn(m.createExternalModuleReference(Te),X)}function NA(){if(H()===11){let X=Xr();return X.text=nd(X.text),X}else return Ve()}function UB(){let X=k();xn(42),xn(130);let Te=Rs();return tn(m.createNamespaceImport(Te),X)}function Sb(X){let Te=k(),Ue=X===275?m.createNamedImports(zu(23,c8,19,20)):m.createNamedExports(zu(23,l8,19,20));return tn(Ue,Te)}function l8(){let X=ie();return Er(qE(281),X)}function c8(){return qE(276)}function qE(X){let Te=k(),Ue=wu(H())&&!xo(),St=t.getTokenStart(),xt=t.getTokenEnd(),Vt=!1,wr,Oi=!0,Ci=Ac();if(Ci.escapedText==="type")if(H()===130){let cs=Ac();if(H()===130){let As=Ac();ru(H())?(Vt=!0,wr=cs,Ci=Xi(),Oi=!1):(wr=Ci,Ci=As,Oi=!1)}else ru(H())?(wr=Ci,Oi=!1,Ci=Xi()):(Vt=!0,Ci=cs)}else ru(H())&&(Vt=!0,Ci=Xi());Oi&&H()===130&&(wr=Ci,xn(130),Ci=Xi()),X===276&&Ue&&U(St,xt,f.Identifier_expected);let mi=X===276?m.createImportSpecifier(Vt,wr,Ci):m.createExportSpecifier(Vt,wr,Ci);return tn(mi,Te);function Xi(){return Ue=wu(H())&&!xo(),St=t.getTokenStart(),xt=t.getTokenEnd(),Ac()}}function i_(X){return tn(m.createNamespaceExport(Ac()),X)}function xM(X,Te,Ue){let St=hn();Io(!0);let xt,Vt,wr,Oi=mo(156),Ci=k();mo(42)?(mo(130)&&(xt=i_(Ci)),xn(161),Vt=NA()):(xt=Sb(279),(H()===161||H()===11&&!t.hasPrecedingLineBreak())&&(xn(161),Vt=NA()));let mi=H();Vt&&(mi===118||mi===132)&&!t.hasPrecedingLineBreak()&&(wr=bb(mi)),al(),Io(St);let Xi=m.createExportDeclaration(Ue,Oi,xt,Vt,wr);return Er(tn(Xi,X),Te)}function Mh(X,Te,Ue){let St=hn();Io(!0);let xt;mo(64)?xt=!0:xn(90);let Vt=md(!0);al(),Io(St);let wr=m.createExportAssignment(Ue,xt,Vt);return Er(tn(wr,X),Te)}let nx;(X=>{X[X.SourceElements=0]="SourceElements",X[X.BlockStatements=1]="BlockStatements",X[X.SwitchClauses=2]="SwitchClauses",X[X.SwitchClauseStatements=3]="SwitchClauseStatements",X[X.TypeMembers=4]="TypeMembers",X[X.ClassMembers=5]="ClassMembers",X[X.EnumMembers=6]="EnumMembers",X[X.HeritageClauseElement=7]="HeritageClauseElement",X[X.VariableDeclarations=8]="VariableDeclarations",X[X.ObjectBindingElements=9]="ObjectBindingElements",X[X.ArrayBindingElements=10]="ArrayBindingElements",X[X.ArgumentExpressions=11]="ArgumentExpressions",X[X.ObjectLiteralMembers=12]="ObjectLiteralMembers",X[X.JsxAttributes=13]="JsxAttributes",X[X.JsxChildren=14]="JsxChildren",X[X.ArrayLiteralMembers=15]="ArrayLiteralMembers",X[X.Parameters=16]="Parameters",X[X.JSDocParameters=17]="JSDocParameters",X[X.RestProperties=18]="RestProperties",X[X.TypeParameters=19]="TypeParameters",X[X.TypeArguments=20]="TypeArguments",X[X.TupleElementTypes=21]="TupleElementTypes",X[X.HeritageClauses=22]="HeritageClauses",X[X.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",X[X.ImportAttributes=24]="ImportAttributes",X[X.JSDocComment=25]="JSDocComment",X[X.Count=26]="Count"})(nx||(nx={}));let d8;(X=>{X[X.False=0]="False",X[X.True=1]="True",X[X.Unknown=2]="Unknown"})(d8||(d8={}));let H_;(X=>{function Te(mi,Xi,cs){Li("file.js",mi,99,void 0,1,0),t.setText(mi,Xi,cs),_t=t.scan();let As=Ue(),$a=Ot("file.js",99,1,!1,[],w(1),0,qa),Of=wI(ze,$a);return tt&&($a.jsDocDiagnostics=wI(tt,$a)),So(),As?{jsDocTypeExpression:As,diagnostics:Of}:void 0}X.parseJSDocTypeExpressionForTests=Te;function Ue(mi){let Xi=k(),cs=(mi?mo:xn)(19),As=Ba(16777216,Nm);(!mi||cs)&&ml(20);let $a=m.createJSDocTypeExpression(As);return Ye($a),tn($a,Xi)}X.parseJSDocTypeExpression=Ue;function St(){let mi=k(),Xi=mo(19),cs=k(),As=Q(!1);for(;H()===81;)gi(),It(),As=tn(m.createJSDocMemberName(As,Rs()),cs);Xi&&ml(20);let $a=m.createJSDocNameReference(As);return Ye($a),tn($a,mi)}X.parseJSDocNameReference=St;function xt(mi,Xi,cs){Li("",mi,99,void 0,1,0);let As=Ba(16777216,()=>Ci(Xi,cs)),Of=wI(ze,{languageVariant:0,text:mi});return So(),As?{jsDoc:As,diagnostics:Of}:void 0}X.parseIsolatedJSDocComment=xt;function Vt(mi,Xi,cs){let As=_t,$a=ze.length,Of=Xt,K_=Ba(16777216,()=>Ci(Xi,cs));return ja(K_,mi),Kn&524288&&(tt||(tt=[]),Hr(tt,ze,$a)),_t=As,ze.length=$a,Xt=Of,K_}X.parseJSDocComment=Vt;let wr;(mi=>{mi[mi.BeginningOfLine=0]="BeginningOfLine",mi[mi.SawAsterisk=1]="SawAsterisk",mi[mi.SavingComments=2]="SavingComments",mi[mi.SavingBackticks=3]="SavingBackticks"})(wr||(wr={}));let Oi;(mi=>{mi[mi.Property=1]="Property",mi[mi.Parameter=2]="Parameter",mi[mi.CallbackParameter=4]="CallbackParameter"})(Oi||(Oi={}));function Ci(mi=0,Xi){let cs=De,As=Xi===void 0?cs.length:mi+Xi;if(Xi=As-mi,x.assert(mi>=0),x.assert(mi<=As),x.assert(As<=cs.length),!RH(cs,mi))return;let $a,Of,K_,gg,iy,oy=[],Tb=[],op=en;en|=1<<25;let PA=t.scanRange(mi+3,Xi-5,eC);return en=op,PA;function eC(){let Rn=1,Or,Nr=mi-(cs.lastIndexOf(` -`,mi)+1)+4;function Wi(Es){Or||(Or=Nr),oy.push(Es),Nr+=Es.length}for(It();ov(5););ov(4)&&(Rn=0,Nr=0);e:for(;;){switch(H()){case 60:DM(oy),iy||(iy=k()),NM(tC(Nr)),Rn=0,Or=void 0;break;case 4:oy.push(t.getTokenText()),Rn=0,Nr=0;break;case 42:let Es=t.getTokenText();Rn===1?(Rn=2,Wi(Es)):(x.assert(Rn===0),Rn=1,Nr+=Es.length);break;case 5:x.assert(Rn!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let Zd=t.getTokenText();Or!==void 0&&Nr+Zd.length>Or&&oy.push(Zd.slice(Or-Nr)),Nr+=Zd.length;break;case 1:break e;case 82:Rn=2,Wi(t.getTokenValue());break;case 19:Rn=2;let Lh=t.getTokenFullStart(),Rp=t.getTokenEnd()-1,a_=lc(Rp);if(a_){gg||RM(oy),Tb.push(tn(m.createJSDocText(oy.join("")),gg??mi,Lh)),Tb.push(a_),oy=[],gg=t.getTokenEnd();break}default:Rn=2,Wi(t.getTokenText());break}Rn===2?Dt(!1):It()}let Mi=oy.join("").trimEnd();Tb.length&&Mi.length&&Tb.push(tn(m.createJSDocText(Mi),gg??mi,iy)),Tb.length&&$a&&x.assertIsDefined(iy,"having parsed tags implies that the end of the comment span should be set");let ts=$a&&Lo($a,Of,K_);return tn(m.createJSDocComment(Tb.length?Lo(Tb,mi,iy):Mi.length?Mi:void 0,ts),mi,As)}function RM(Rn){for(;Rn.length&&(Rn[0]===` -`||Rn[0]==="\r");)Rn.shift()}function DM(Rn){for(;Rn.length;){let Or=Rn[Rn.length-1].trimEnd();if(Or==="")Rn.pop();else if(Or.lengthZd&&(Wi.push(sy.slice(Zd-Rn)),Es=2),Rn+=sy.length;break;case 19:Es=2;let Dp=t.getTokenFullStart(),iC=t.getTokenEnd()-1,u8=lc(iC);u8?(Mi.push(tn(m.createJSDocText(Wi.join("")),ts??Nr,Dp)),Mi.push(u8),Wi=[],ts=t.getTokenEnd()):Lh(t.getTokenText());break;case 62:Es===3?Es=2:Es=3,Lh(t.getTokenText());break;case 82:Es!==3&&(Es=2),Lh(t.getTokenValue());break;case 42:if(Es===0){Es=1,Rn+=1;break}default:Es!==3&&(Es=2),Lh(t.getTokenText());break}Es===2||Es===3?Rp=Dt(Es===3):Rp=It()}RM(Wi);let a_=Wi.join("").trimEnd();if(Mi.length)return a_.length&&Mi.push(tn(m.createJSDocText(a_),ts??Nr)),Lo(Mi,Nr,t.getTokenEnd());if(a_.length)return a_}function lc(Rn){let Or=Ri(rx);if(!Or)return;It(),ay();let Nr=YE(),Wi=[];for(;H()!==20&&H()!==4&&H()!==1;)Wi.push(t.getTokenText()),It();let Mi=Or==="link"?m.createJSDocLink:Or==="linkcode"?m.createJSDocLinkCode:m.createJSDocLinkPlain;return tn(Mi(Nr,Wi.join("")),Rn,t.getTokenEnd())}function YE(){if(ru(H())){let Rn=k(),Or=Ac();for(;mo(25);)Or=tn(m.createQualifiedName(Or,H()===81?Fs(80,!1):Rs()),Rn);for(;H()===81;)gi(),It(),Or=tn(m.createJSDocMemberName(Or,Rs()),Rn);return Or}}function rx(){if(Ab(),H()===19&&It()===60&&ru(It())){let Rn=t.getTokenValue();if(CM(Rn))return Rn}}function CM(Rn){return Rn==="link"||Rn==="linkcode"||Rn==="linkplain"}function Ib(Rn,Or,Nr,Wi){return tn(m.createJSDocUnknownTag(Or,jp(Rn,k(),Nr,Wi)),Rn)}function NM(Rn){Rn&&($a?$a.push(Rn):($a=[Rn],Of=Rn.pos),K_=Rn.end)}function tr(){return Ab(),H()===19?Ue():void 0}function v(){let Rn=ov(23);Rn&&ay();let Or=ov(62),Nr=rC();return Or&&Ca(62),Rn&&(ay(),la(64)&&Ve(),xn(24)),{name:Nr,isBracketed:Rn}}function C(Rn){switch(Rn.kind){case 151:return!0;case 188:return C(Rn.elementType);default:return If(Rn)&&Fe(Rn.typeName)&&Rn.typeName.escapedText==="Object"&&!Rn.typeArguments}}function F(Rn,Or,Nr,Wi){let Mi=tr(),ts=!Mi;Ab();let{name:Es,isBracketed:Zd}=v(),Lh=Ab();ts&&!Pi(rx)&&(Mi=tr());let Rp=jp(Rn,k(),Wi,Lh),a_=se(Mi,Es,Nr,Wi);a_&&(Mi=a_,ts=!0);let sy=Nr===1?m.createJSDocPropertyTag(Or,Es,Zd,Mi,ts,Rp):m.createJSDocParameterTag(Or,Es,Zd,Mi,ts,Rp);return tn(sy,Rn)}function se(Rn,Or,Nr,Wi){if(Rn&&C(Rn.type)){let Mi=k(),ts,Es;for(;ts=Ri(()=>JB(Nr,Wi,Or));)ts.kind===348||ts.kind===355?Es=Tn(Es,ts):ts.kind===352&&Me(ts.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(Es){let Zd=tn(m.createJSDocTypeLiteral(Es,Rn.type.kind===188),Mi);return tn(m.createJSDocTypeExpression(Zd),Mi)}}}function Ke(Rn,Or,Nr,Wi){gt($a,H4)&&U(Or.pos,t.getTokenStart(),f._0_tag_already_specified,Vi(Or.escapedText));let Mi=tr();return tn(m.createJSDocReturnTag(Or,Mi,jp(Rn,k(),Nr,Wi)),Rn)}function jt(Rn,Or,Nr,Wi){gt($a,hP)&&U(Or.pos,t.getTokenStart(),f._0_tag_already_specified,Vi(Or.escapedText));let Mi=Ue(!0),ts=Nr!==void 0&&Wi!==void 0?jp(Rn,k(),Nr,Wi):void 0;return tn(m.createJSDocTypeTag(Or,Mi,ts),Rn)}function _r(Rn,Or,Nr,Wi){let ts=H()===23||Pi(()=>It()===60&&ru(It())&&CM(t.getTokenValue()))?void 0:St(),Es=Nr!==void 0&&Wi!==void 0?jp(Rn,k(),Nr,Wi):void 0;return tn(m.createJSDocSeeTag(Or,ts,Es),Rn)}function eo(Rn,Or,Nr,Wi){let Mi=tr(),ts=jp(Rn,k(),Nr,Wi);return tn(m.createJSDocThrowsTag(Or,Mi,ts),Rn)}function Gs(Rn,Or,Nr,Wi){let Mi=k(),ts=o_(),Es=t.getTokenFullStart(),Zd=jp(Rn,Es,Nr,Wi);Zd||(Es=t.getTokenFullStart());let Lh=typeof Zd!="string"?Lo(Eo([tn(ts,Mi,Es)],Zd),Mi):ts.text+Zd;return tn(m.createJSDocAuthorTag(Or,Lh),Rn)}function o_(){let Rn=[],Or=!1,Nr=t.getToken();for(;Nr!==1&&Nr!==4;){if(Nr===30)Or=!0;else{if(Nr===60&&!Or)break;if(Nr===32&&Or){Rn.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}Rn.push(t.getTokenText()),Nr=It()}return m.createJSDocText(Rn.join(""))}function xb(Rn,Or,Nr,Wi){let Mi=sZ();return tn(m.createJSDocImplementsTag(Or,Mi,jp(Rn,k(),Nr,Wi)),Rn)}function Om(Rn,Or,Nr,Wi){let Mi=sZ();return tn(m.createJSDocAugmentsTag(Or,Mi,jp(Rn,k(),Nr,Wi)),Rn)}function $E(Rn,Or,Nr,Wi){let Mi=Ue(!1),ts=Nr!==void 0&&Wi!==void 0?jp(Rn,k(),Nr,Wi):void 0;return tn(m.createJSDocSatisfiesTag(Or,Mi,ts),Rn)}function sZ(){let Rn=mo(19),Or=k(),Nr=zhe();t.setInJSDocType(!0);let Wi=JE();t.setInJSDocType(!1);let Mi=m.createExpressionWithTypeArguments(Nr,Wi),ts=tn(Mi,Or);return Rn&&xn(20),ts}function zhe(){let Rn=k(),Or=ZE();for(;mo(25);){let Nr=ZE();Or=tn(Y(Or,Nr),Rn)}return Or}function QE(Rn,Or,Nr,Wi,Mi){return tn(Or(Nr,jp(Rn,k(),Wi,Mi)),Rn)}function HB(Rn,Or,Nr,Wi){let Mi=Ue(!0);return ay(),tn(m.createJSDocThisTag(Or,Mi,jp(Rn,k(),Nr,Wi)),Rn)}function lZ(Rn,Or,Nr,Wi){let Mi=Ue(!0);return ay(),tn(m.createJSDocEnumTag(Or,Mi,jp(Rn,k(),Nr,Wi)),Rn)}function PM(Rn,Or,Nr,Wi){let Mi=tr();Ab();let ts=KB();ay();let Es=Ga(Nr),Zd;if(!Mi||C(Mi.type)){let Rp,a_,sy,Dp=!1;for(;(Rp=Ri(()=>uZ(Nr)))&&Rp.kind!==352;)if(Dp=!0,Rp.kind===351)if(a_){let iC=dn(f.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);iC&&Pa(iC,yR(ve,De,0,0,f.The_tag_was_first_specified_here));break}else a_=Rp;else sy=Tn(sy,Rp);if(Dp){let iC=Mi&&Mi.type.kind===188,u8=m.createJSDocTypeLiteral(sy,iC);Mi=a_&&a_.typeExpression&&!C(a_.typeExpression.type)?a_.typeExpression:tn(u8,Rn),Zd=Mi.end}}Zd=Zd||Es!==void 0?k():(ts??Mi??Or).end,Es||(Es=jp(Rn,Zd,Nr,Wi));let Lh=m.createJSDocTypedefTag(Or,Mi,ts,Es);return tn(Lh,Rn,Zd)}function KB(Rn){let Or=t.getTokenStart();if(!ru(H()))return;let Nr=ZE();if(mo(25)){let Wi=KB(!0),Mi=m.createModuleDeclaration(void 0,Nr,Wi,Rn?8:void 0);return tn(Mi,Or)}return Rn&&(Nr.flags|=4096),Nr}function cZ(Rn){let Or=k(),Nr,Wi;for(;Nr=Ri(()=>JB(4,Rn));){if(Nr.kind===352){Me(Nr.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}Wi=Tn(Wi,Nr)}return Lo(Wi||[],Or)}function dZ(Rn,Or){let Nr=cZ(Or),Wi=Ri(()=>{if(ov(60)){let Mi=tC(Or);if(Mi&&Mi.kind===349)return Mi}});return tn(m.createJSDocSignature(void 0,Nr,Wi),Rn)}function Bhe(Rn,Or,Nr,Wi){let Mi=KB();ay();let ts=Ga(Nr),Es=dZ(Rn,Nr);ts||(ts=jp(Rn,k(),Nr,Wi));let Zd=ts!==void 0?k():Es.end;return tn(m.createJSDocCallbackTag(Or,Es,Mi,ts),Rn,Zd)}function Ghe(Rn,Or,Nr,Wi){ay();let Mi=Ga(Nr),ts=dZ(Rn,Nr);Mi||(Mi=jp(Rn,k(),Nr,Wi));let Es=Mi!==void 0?k():ts.end;return tn(m.createJSDocOverloadTag(Or,ts,Mi),Rn,Es)}function nC(Rn,Or){for(;!Fe(Rn)||!Fe(Or);)if(!Fe(Rn)&&!Fe(Or)&&Rn.right.escapedText===Or.right.escapedText)Rn=Rn.left,Or=Or.left;else return!1;return Rn.escapedText===Or.escapedText}function uZ(Rn){return JB(1,Rn)}function JB(Rn,Or,Nr){let Wi=!0,Mi=!1;for(;;)switch(It()){case 60:if(Wi){let ts=NS(Rn,Or);return ts&&(ts.kind===348||ts.kind===355)&&Nr&&(Fe(ts.name)||!nC(Nr,ts.name.left))?!1:ts}Mi=!1;break;case 4:Wi=!0,Mi=!1;break;case 42:Mi&&(Wi=!1),Mi=!0;break;case 80:Wi=!1;break;case 1:return!1}}function NS(Rn,Or){x.assert(H()===60);let Nr=t.getTokenFullStart();It();let Wi=ZE(),Mi=Ab(),ts;switch(Wi.escapedText){case"type":return Rn===1&&jt(Nr,Wi);case"prop":case"property":ts=1;break;case"arg":case"argument":case"param":ts=6;break;case"template":return Db(Nr,Wi,Or,Mi);case"this":return HB(Nr,Wi,Or,Mi);default:return!1}return Rn&ts?F(Nr,Wi,Rn,Or):!1}function sr(){let Rn=k(),Or=ov(23);Or&&ay();let Nr=Ch(!1,!0),Wi=ZE(f.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),Mi;if(Or&&(ay(),xn(64),Mi=Ba(16777216,Nm),xn(24)),!Fl(Wi))return tn(m.createTypeParameterDeclaration(Nr,Wi,void 0,Mi),Rn)}function Rb(){let Rn=k(),Or=[];do{ay();let Nr=sr();Nr!==void 0&&Or.push(Nr),Ab()}while(ov(28));return Lo(Or,Rn)}function Db(Rn,Or,Nr,Wi){let Mi=H()===19?Ue():void 0,ts=Rb();return tn(m.createJSDocTemplateTag(Or,Mi,ts,jp(Rn,k(),Nr,Wi)),Rn)}function ov(Rn){return H()===Rn?(It(),!0):!1}function rC(){let Rn=ZE();for(mo(23)&&xn(24);mo(25);){let Or=ZE();mo(23)&&xn(24),Rn=rt(Rn,Or)}return Rn}function ZE(Rn){if(!ru(H()))return Fs(80,!Rn,Rn||f.Identifier_expected);Zt++;let Or=t.getTokenStart(),Nr=t.getTokenEnd(),Wi=H(),Mi=nd(t.getTokenValue()),ts=tn(N(Mi,Wi),Or,Nr);return It(),ts}}})(H_=e.JSDocParser||(e.JSDocParser={}))})(EE||(EE={})),(e=>{function t(S,A,N,D){if(D=D||x.shouldAssert(2),m(S,A,N,D),Gne(N))return S;if(S.statements.length===0)return EE.parseSourceFile(S.fileName,A,S.languageVersion,void 0,!0,S.scriptKind,S.setExternalModuleIndicator,S.jsDocParsingMode);let w=S;x.assert(!w.hasBeenIncrementallyParsed),w.hasBeenIncrementallyParsed=!0,EE.fixupParentReferences(w);let j=S.text,K=y(S),Y=p(S,N);m(S,A,Y,D),x.assert(Y.span.start<=N.span.start),x.assert(Jl(Y.span)===Jl(N.span)),x.assert(Jl(QC(Y))===Jl(QC(N)));let B=QC(Y).length-Y.span.length;d(w,Y.span.start,Jl(Y.span),Jl(QC(Y)),B,j,A,D);let ce=EE.parseSourceFile(S.fileName,A,S.languageVersion,K,!0,S.scriptKind,S.setExternalModuleIndicator,S.jsDocParsingMode);return ce.commentDirectives=r(S.commentDirectives,ce.commentDirectives,Y.span.start,Jl(Y.span),B,j,A,D),ce.impliedNodeFormat=S.impliedNodeFormat,ce}e.updateSourceFile=t;function r(S,A,N,D,w,j,K,Y){if(!S)return A;let B,ce=!1;for(let Z of S){let{range:me,type:ge}=Z;if(me.endD){z();let q={range:{pos:me.pos+w,end:me.end+w},type:ge};B=Tn(B,q),Y&&x.assert(j.substring(me.pos,me.end)===K.substring(q.range.pos,q.range.end))}}return z(),B;function z(){ce||(ce=!0,B?A&&B.push(...A):B=A)}}function i(S,A,N,D,w,j){A?Y(S):K(S);return;function K(B){let ce="";if(j&&o(B)&&(ce=D.substring(B.pos,B.end)),B._children&&(B._children=void 0),fh(B,B.pos+N,B.end+N),j&&o(B)&&x.assert(ce===w.substring(B.pos,B.end)),Go(B,K,Y),kp(B))for(let z of B.jsDoc)K(z);l(B,j)}function Y(B){B._children=void 0,fh(B,B.pos+N,B.end+N);for(let ce of B)K(ce)}}function o(S){switch(S.kind){case 11:case 9:case 80:return!0}return!1}function s(S,A,N,D,w){x.assert(S.end>=A,"Adjusting an element that was entirely before the change range"),x.assert(S.pos<=N,"Adjusting an element that was entirely after the change range"),x.assert(S.pos<=S.end);let j=Math.min(S.pos,D),K=S.end>=N?S.end+w:Math.min(S.end,D);x.assert(j<=K),S.parent&&(x.assertGreaterThanOrEqual(j,S.parent.pos),x.assertLessThanOrEqual(K,S.parent.end)),fh(S,j,K)}function l(S,A){if(A){let N=S.pos,D=w=>{x.assert(w.pos>=N),N=w.end};if(kp(S))for(let w of S.jsDoc)D(w);Go(S,D),x.assert(N<=S.end)}}function d(S,A,N,D,w,j,K,Y){B(S);return;function B(z){if(x.assert(z.pos<=z.end),z.pos>N){i(z,!1,w,j,K,Y);return}let Z=z.end;if(Z>=A){if(z.intersectsChange=!0,z._children=void 0,s(z,A,N,D,w),Go(z,B,ce),kp(z))for(let me of z.jsDoc)B(me);l(z,Y);return}x.assert(ZN){i(z,!0,w,j,K,Y);return}let Z=z.end;if(Z>=A){z.intersectsChange=!0,z._children=void 0,s(z,A,N,D,w);for(let me of z)B(me);return}x.assert(Z0&&K<=1;K++){let Y=h(S,D);x.assert(Y.pos<=D);let B=Y.pos;D=Math.max(0,B-1)}let w=dc(D,Jl(A.span)),j=A.newLength+(A.span.start-D);return qL(w,j)}function h(S,A){let N=S,D;if(Go(S,j),D){let K=w(D);K.pos>N.pos&&(N=K)}return N;function w(K){for(;;){let Y=Zj(K);if(Y)K=Y;else return K}}function j(K){if(!Fl(K))if(K.pos<=A){if(K.pos>=N.pos&&(N=K),AA),!0}}function m(S,A,N,D){let w=S.text;if(N&&(x.assert(w.length-N.span.length+N.newLength===A.length),D||x.shouldAssert(3))){let j=w.substr(0,N.span.start),K=A.substr(0,N.span.start);x.assert(j===K);let Y=w.substring(Jl(N.span),w.length),B=A.substring(Jl(QC(N)),A.length);x.assert(Y===B)}}function y(S){let A=S.statements,N=0;x.assert(N=ce.pos&&K=ce.pos&&K{S[S.Value=-1]="Value"})(E||(E={}))})(LH||(LH={})),kH=new Map,wTe=/^\/\/\/\s*<(\S+)\s.*?\/>/im,OTe=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im}});function r3(e){let t=new Map,r=new Map;return gn(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&r.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:r}}function VR(){return bAe||(bAe=r3(og))}function qae(e){return WTe(e,jl)}function WTe(e,t){let r=Wo(e.type.keys()),i=(e.deprecatedKeys?r.filter(o=>!e.deprecatedKeys.has(o)):r).map(o=>`'${o}'`).join(", ");return t(f.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,i)}function i3(e,t,r){return _Ae(e,(t??"").trim(),r)}function Xae(e,t="",r){if(t=t.trim(),ao(t,"-"))return;if(e.type==="listOrElement"&&!t.includes(","))return c1(e,t,r);if(t==="")return[];let i=t.split(",");switch(e.element.type){case"number":return to(i,o=>c1(e.element,parseInt(o),r));case"string":return to(i,o=>c1(e.element,o||"",r));case"boolean":case"object":return x.fail(`List of ${e.element.type} is not yet supported.`);default:return to(i,o=>i3(e.element,o,r))}}function FTe(e){return e.name}function Yae(e,t,r,i,o){var s;if((s=t.alternateMode)!=null&&s.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return SE(o,i,t.alternateMode.diagnostic,e);let l=GC(e,t.optionDeclarations,FTe);return l?SE(o,i,t.unknownDidYouMeanDiagnostic,r||e,l.name):SE(o,i,t.unknownOptionDiagnostic,r||e)}function wH(e,t,r){let i={},o,s=[],l=[];return d(t),{options:i,watchOptions:o,fileNames:s,errors:l};function d(h){let m=0;for(;mhd.readFile(S)));if(!No(m)){l.push(m);return}let y=[],E=0;for(;;){for(;E=m.length)break;let S=E;if(m.charCodeAt(S)===34){for(E++;E32;)E++;y.push(m.substring(S,E))}}d(y)}}function zTe(e,t,r,i,o,s){if(i.isTSConfigOnly){let l=e[t];l==="null"?(o[i.name]=void 0,t++):i.type==="boolean"?l==="false"?(o[i.name]=c1(i,!1,s),t++):(l==="true"&&t++,s.push(jl(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(s.push(jl(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),l&&!ao(l,"-")&&t++)}else if(!e[t]&&i.type!=="boolean"&&s.push(jl(r.optionTypeMismatchDiagnostic,i.name,zH(i))),e[t]!=="null")switch(i.type){case"number":o[i.name]=c1(i,parseInt(e[t]),s),t++;break;case"boolean":let l=e[t];o[i.name]=c1(i,l!=="false",s),(l==="false"||l==="true")&&t++;break;case"string":o[i.name]=c1(i,e[t]||"",s),t++;break;case"list":let d=Xae(i,e[t],s);o[i.name]=d||[],d&&t++;break;case"listOrElement":x.fail("listOrElement not supported here");break;default:o[i.name]=i3(i,e[t],s),t++;break}else o[i.name]=void 0,t++;return t}function BTe(e,t){return wH(lw,e,t)}function OH(e,t){return $ae(VR,e,t)}function $ae(e,t,r=!1){t=t.toLowerCase();let{optionsNameMap:i,shortOptionNames:o}=e();if(r){let s=o.get(t);s!==void 0&&(t=s)}return i.get(t)}function GTe(){return SAe||(SAe=r3(p3))}function VTe(e){let{options:t,watchOptions:r,fileNames:i,errors:o}=wH(AAe,e),s=t;return i.length===0&&i.push("."),s.clean&&s.force&&o.push(jl(f.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(jl(f.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(jl(f.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(jl(f.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:r,projects:i,errors:o}}function jTe(e,...t){return na(jl(e,...t).messageText,No)}function Qk(e,t,r,i,o,s){let l=EP(e,h=>r.readFile(h));if(!No(l)){r.onUnRecoverableConfigFileDiagnostic(l);return}let d=$k(e,l),p=r.getCurrentDirectory();return d.path=tl(e,p,Nd(r.useCaseSensitiveFileNames)),d.resolvedPath=d.path,d.originalFileName=d.fileName,tw(d,r,ho(oi(e),p),t,ho(e,p),void 0,s,i,o)}function Zk(e,t){let r=EP(e,t);return No(r)?WH(e,r):{config:{},error:r}}function WH(e,t){let r=$k(e,t);return{config:qTe(r,r.parseDiagnostics,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function Qae(e,t){let r=EP(e,t);return No(r)?$k(e,r):{fileName:e,parseDiagnostics:[r]}}function EP(e,t){let r;try{r=t(e)}catch(i){return jl(f.Cannot_read_file_0_Colon_1,e,i.message)}return r===void 0?jl(f.Cannot_read_file_0,e):r}function FH(e){return _0(e,FTe)}function UTe(){return IAe||(IAe=r3(jR))}function HTe(){return xAe||(xAe=FH(og))}function KTe(){return RAe||(RAe=FH(jR))}function JTe(){return DAe||(DAe=FH(sw))}function R5e(){return fse===void 0&&(fse={name:void 0,type:"object",elementOptions:FH([dse,use,pse,cw,{name:"references",type:"list",element:{name:"references",type:"object"},category:f.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:f.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:f.File_Management,defaultValueDescription:f.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:f.File_Management,defaultValueDescription:f.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},rw])}),fse}function qTe(e,t,r){var i;let o=(i=e.statements[0])==null?void 0:i.expression;if(o&&o.kind!==210){if(t.push(Kf(e,o,f.The_root_value_of_a_0_file_must_be_an_object,nc(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),uu(o)){let s=Vr(o.elements,Ma);if(s)return ew(e,s,t,!0,r)}return{}}return ew(e,o,t,!0,r)}function Zae(e,t){var r;return ew(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0)}function ew(e,t,r,i,o){if(!t)return i?{}:void 0;return d(t,o?.rootOptions);function s(h,m){var y;let E=i?{}:void 0;for(let S of h.properties){if(S.kind!==303){r.push(Kf(e,S,f.Property_assignment_expected));continue}S.questionToken&&r.push(Kf(e,S.questionToken,f.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),p(S.name)||r.push(Kf(e,S.name,f.String_literal_with_double_quotes_expected));let A=h2(S.name)?void 0:Ux(S.name),N=A&&Vi(A),D=N?(y=m?.elementOptions)==null?void 0:y.get(N):void 0,w=d(S.initializer,D);typeof N<"u"&&(i&&(E[N]=w),o?.onPropertySet(N,w,S,m,D))}return E}function l(h,m){if(!i){h.forEach(y=>d(y,m));return}return jr(h.map(y=>d(y,m)),y=>y!==void 0)}function d(h,m){switch(h.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return p(h)||r.push(Kf(e,h,f.String_literal_with_double_quotes_expected)),h.text;case 9:return Number(h.text);case 224:if(h.operator!==41||h.operand.kind!==9)break;return-Number(h.operand.text);case 210:return s(h,m);case 209:return l(h.elements,m&&m.element)}m?r.push(Kf(e,h,f.Compiler_option_0_requires_a_value_of_type_1,m.name,zH(m))):r.push(Kf(e,h,f.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function p(h){return Da(h)&&JF(h,e)}}function zH(e){return e.type==="listOrElement"?`${zH(e.element)} or Array`:e.type==="list"?"Array":No(e.type)?e.type:"string"}function XTe(e,t){if(e){if(nw(t))return!e.disallowNullOrUndefined;if(e.type==="list")return To(t);if(e.type==="listOrElement")return To(t)||XTe(e.element,t);let r=No(e.type)?e.type:"string";return typeof t===r}return!1}function YTe(e,t,r){var i,o,s;let l=Nd(r.useCaseSensitiveFileNames),d=mn(jr(e.fileNames,(o=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&o.validatedIncludeSpecs?C5e(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):Sy),A=>WL(ho(t,r.getCurrentDirectory()),ho(A,r.getCurrentDirectory()),l)),p={configFilePath:ho(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames},h=a3(e.options,p),m=e.watchOptions&&N5e(e.watchOptions),y={compilerOptions:{...o3(h),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:m&&o3(m),references:mn(e.projectReferences,A=>({...A,path:A.originalPath?A.originalPath:"",originalPath:void 0})),files:Nn(d)?d:void 0,...(s=e.options.configFile)!=null&&s.configFileSpecs?{include:D5e(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0},E=new Set(h.keys()),S={};for(let A in fc)if(!E.has(A)&>(fc[A].dependencies,N=>E.has(N))){let N=fc[A].computeValue(e.options),D=fc[A].computeValue({});N!==D&&(S[A]=fc[A].computeValue(e.options))}return bx(y.compilerOptions,o3(a3(S,p))),y}function o3(e){return{...Wo(e.entries()).reduce((t,r)=>({...t,[r[0]]:r[1]}),{})}}function D5e(e){if(Nn(e)){if(Nn(e)!==1)return e;if(e[0]!==_3)return e}}function C5e(e,t,r,i){if(!t)return Sy;let o=M6(e,r,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),s=o.excludePattern&&zv(o.excludePattern,i.useCaseSensitiveFileNames),l=o.includeFilePattern&&zv(o.includeFilePattern,i.useCaseSensitiveFileNames);return l?s?d=>!(l.test(d)&&!s.test(d)):d=>!l.test(d):s?d=>s.test(d):Sy}function $Te(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return $Te(e.element);default:return e.type}}function BH(e,t){return Gc(t,(r,i)=>{if(r===e)return i})}function a3(e,t){return QTe(e,VR(),t)}function N5e(e){return QTe(e,UTe())}function QTe(e,{optionsNameMap:t},r){let i=new Map,o=r&&Nd(r.useCaseSensitiveFileNames);for(let s in e)if(Ss(e,s)){if(t.has(s)&&(t.get(s).category===f.Command_line_Options||t.get(s).category===f.Output_Formatting))continue;let l=e[s],d=t.get(s.toLowerCase());if(d){x.assert(d.type!=="listOrElement");let p=$Te(d);p?d.type==="list"?i.set(s,l.map(h=>BH(h,p))):i.set(s,BH(l,p)):r&&d.isFilePath?i.set(s,WL(r.configFilePath,ho(l,oi(r.configFilePath)),o)):i.set(s,l)}}return i}function ZTe(e,t){let r=eAe(e);return o();function i(s){return Array(s+1).join(" ")}function o(){let s=[],l=i(2);return HH.forEach(d=>{if(!r.has(d.name))return;let p=r.get(d.name),h=ase(d);p!==h?s.push(`${l}${d.name}: ${p}`):Ss(f3,d.name)&&s.push(`${l}${d.name}: ${h}`)}),s.join(t)+t}}function eAe(e){let t=gW(e,f3);return a3(t)}function tAe(e,t,r){let i=eAe(e);return l();function o(d){return Array(d+1).join(" ")}function s({category:d,name:p,isCommandLineOnly:h}){let m=[f.Command_line_Options,f.Editor_Support,f.Compiler_Diagnostics,f.Backwards_Compatibility,f.Watch_and_Build_Modes,f.Output_Formatting];return!h&&d!==void 0&&(!m.includes(d)||i.has(p))}function l(){let d=new Map;d.set(f.Projects,[]),d.set(f.Language_and_Environment,[]),d.set(f.Modules,[]),d.set(f.JavaScript_Support,[]),d.set(f.Emit,[]),d.set(f.Interop_Constraints,[]),d.set(f.Type_Checking,[]),d.set(f.Completeness,[]);for(let S of og)if(s(S)){let A=d.get(S.category);A||d.set(S.category,A=[]),A.push(S)}let p=0,h=0,m=[];d.forEach((S,A)=>{m.length!==0&&m.push({value:""}),m.push({value:`/* ${wo(A)} */`});for(let N of S){let D;i.has(N.name)?D=`"${N.name}": ${JSON.stringify(i.get(N.name))}${(h+=1)===i.size?"":","}`:D=`// "${N.name}": ${JSON.stringify(ase(N))},`,m.push({value:D,description:`/* ${N.description&&wo(N.description)||N.name} */`}),p=Math.max(D.length,p)}});let y=o(2),E=[];E.push("{"),E.push(`${y}"compilerOptions": {`),E.push(`${y}${y}/* ${wo(f.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),E.push("");for(let S of m){let{value:A,description:N=""}=S;E.push(A&&`${y}${y}${A}${N&&o(p-A.length+2)+N}`)}if(t.length){E.push(`${y}},`),E.push(`${y}"files": [`);for(let S=0;Stypeof fe=="object","object"),me=Y(B("files"));if(me){let fe=Z==="no-prop"||To(Z)&&Z.length===0,ne=Ss(E,"extends");if(me.length===0&&fe&&!ne)if(t){let he=l||"tsconfig.json",Ce=f.The_files_list_in_config_file_0_is_empty,Ge=E2(t,"files",Ae=>Ae.initializer),ve=SE(t,Ge,Ce,he);m.push(ve)}else z(f.The_files_list_in_config_file_0_is_empty,l||"tsconfig.json")}let ge=Y(B("include")),q=B("exclude"),J=!1,re=Y(q);if(q==="no-prop"&&E.compilerOptions){let fe=E.compilerOptions.outDir,ne=E.compilerOptions.declarationDir;(fe||ne)&&(re=[fe,ne].filter(he=>!!he))}me===void 0&&ge===void 0&&(ge=[_3],J=!0);let pe,xe;return ge&&(pe=vAe(ge,m,!0,t,"include")),re&&(xe=vAe(re,m,!1,t,"exclude")),{filesSpecs:me,includeSpecs:ge,excludeSpecs:re,validatedFilesSpec:jr(me,No),validatedIncludeSpecs:pe,validatedExcludeSpecs:xe,pathPatterns:void 0,isDefaultIncludeSpec:J}}function j(Z){let me=TP(N,Z,S,r,p);return aAe(me,SP(E),d)&&m.push(oAe(N,l)),me}function K(Z){let me,ge=ce("references",q=>typeof q=="object","object");if(To(ge))for(let q of ge)typeof q.path!="string"?z(f.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(me||(me=[])).push({path:ho(q.path,Z),originalPath:q.path,prepend:q.prepend,circular:q.circular});return me}function Y(Z){return To(Z)?Z:void 0}function B(Z){return ce(Z,No,"string")}function ce(Z,me,ge){if(Ss(E,Z)&&!nw(E[Z]))if(To(E[Z])){let q=E[Z];return!t&&!oo(q,me)&&m.push(jl(f.Compiler_option_0_requires_a_value_of_type_1,Z,ge)),q}else return z(f.Compiler_option_0_requires_a_value_of_type_1,Z,"Array"),"not-array";return"no-prop"}function z(Z,...me){t||m.push(jl(Z,...me))}}function M5e(e){return e.code===f.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function oAe({includeSpecs:e,excludeSpecs:t},r){return jl(f.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,r||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(t||[]))}function aAe(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function SP(e){return!Ss(e,"files")&&!Ss(e,"references")}function s3(e,t,r,i,o){let s=i.length;return aAe(e,o)?i.push(oAe(r,t)):CG(i,l=>!M5e(l)),s!==i.length}function L5e(e){return!!e.options}function sAe(e,t,r,i,o,s,l,d){var p;i=Pd(i);let h=ho(o||"",i);if(s.includes(h))return l.push(jl(f.Circularity_detected_while_resolving_configuration_Colon_0,[...s,h].join(" -> "))),{raw:e||Zae(t,l)};let m=e?k5e(e,r,i,o,l):w5e(t,r,i,o,l);if((p=m.options)!=null&&p.paths&&(m.options.pathsBasePath=i),m.extendedConfigPath){s=s.concat([h]);let E={options:{}};No(m.extendedConfigPath)?y(E,m.extendedConfigPath):m.extendedConfigPath.forEach(S=>y(E,S)),!m.raw.include&&E.include&&(m.raw.include=E.include),!m.raw.exclude&&E.exclude&&(m.raw.exclude=E.exclude),!m.raw.files&&E.files&&(m.raw.files=E.files),m.raw.compileOnSave===void 0&&E.compileOnSave&&(m.raw.compileOnSave=E.compileOnSave),t&&E.extendedSourceFiles&&(t.extendedSourceFiles=Wo(E.extendedSourceFiles.keys())),m.options=bx(E.options,m.options),m.watchOptions=m.watchOptions&&E.watchOptions?bx(E.watchOptions,m.watchOptions):m.watchOptions||E.watchOptions}return m;function y(E,S){let A=O5e(t,S,r,s,l,d,E);if(A&&L5e(A)){let N=A.raw,D,w=j=>{N[j]&&(E[j]=mn(N[j],K=>cp(K)?K:Yr(D||(D=JC(oi(S),i,Nd(r.useCaseSensitiveFileNames))),K)))};w("include"),w("exclude"),w("files"),N.compileOnSave!==void 0&&(E.compileOnSave=N.compileOnSave),bx(E.options,A.options),E.watchOptions=E.watchOptions&&A.watchOptions?bx({},E.watchOptions,A.watchOptions):E.watchOptions||A.watchOptions}}}function k5e(e,t,r,i,o){Ss(e,"excludes")&&o.push(jl(f.Unknown_option_excludes_Did_you_mean_exclude));let s=fAe(e.compilerOptions,r,o,i),l=mAe(e.typeAcquisition,r,o,i),d=F5e(e.watchOptions,r,o);e.compileOnSave=W5e(e,r,o);let p=e.extends||e.extends===""?lAe(e.extends,t,r,i,o):void 0;return{raw:e,options:s,watchOptions:d,typeAcquisition:l,extendedConfigPath:p}}function lAe(e,t,r,i,o,s,l,d){let p,h=i?rAe(i,r):r;if(No(e))p=cAe(e,t,h,o,l,d);else if(To(e)){p=[];for(let m=0;mj.name===S)&&(h=Tn(h,N.name))))}}function cAe(e,t,r,i,o,s){if(e=Pd(e),cp(e)||ao(e,"./")||ao(e,"../")){let d=ho(e,r);if(!t.fileExists(d)&&!El(d,".json")&&(d=`${d}.json`,!t.fileExists(d))){i.push(SE(s,o,f.File_0_not_found,e));return}return d}let l=Tse(e,Yr(r,"tsconfig.json"),t);if(l.resolvedModule)return l.resolvedModule.resolvedFileName;e===""?i.push(SE(s,o,f.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):i.push(SE(s,o,f.File_0_not_found,e))}function O5e(e,t,r,i,o,s,l){let d=r.useCaseSensitiveFileNames?t:ih(t),p,h,m;if(s&&(p=s.get(d))?{extendedResult:h,extendedConfig:m}=p:(h=Qae(t,y=>r.readFile(y)),h.parseDiagnostics.length||(m=sAe(void 0,h,r,oi(t),nc(t),i,o,s)),s&&s.set(d,{extendedResult:h,extendedConfig:m})),e&&((l.extendedSourceFiles??(l.extendedSourceFiles=new Set)).add(h.fileName),h.extendedSourceFiles))for(let y of h.extendedSourceFiles)l.extendedSourceFiles.add(y);if(h.parseDiagnostics.length){o.push(...h.parseDiagnostics);return}return m}function W5e(e,t,r){if(!Ss(e,rw.name))return!1;let i=VT(rw,e.compileOnSave,t,r);return typeof i=="boolean"&&i}function dAe(e,t,r){let i=[];return{options:fAe(e,t,i,r),errors:i}}function uAe(e,t,r){let i=[];return{options:mAe(e,t,i,r),errors:i}}function pAe(e){return e&&nc(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function fAe(e,t,r,i){let o=pAe(i);return ese(HTe(),e,t,o,lw,r),i&&(o.configFilePath=Pd(i)),o}function jH(e){return{enable:!!e&&nc(e)==="jsconfig.json",include:[],exclude:[]}}function mAe(e,t,r,i){let o=jH(i);return ese(JTe(),e,t,o,cse,r),o}function F5e(e,t,r){return ese(KTe(),e,t,void 0,m3,r)}function ese(e,t,r,i,o,s){if(t){for(let l in t){let d=e.get(l);d?(i||(i={}))[d.name]=VT(d,t[l],r,s):s.push(Yae(l,o))}return i}}function SE(e,t,r,...i){return e&&t?Kf(e,t,r,...i):jl(r,...i)}function VT(e,t,r,i,o,s,l){if(e.isCommandLineOnly){i.push(SE(l,o?.name,f.Option_0_can_only_be_specified_on_command_line,e.name));return}if(XTe(e,t)){let d=e.type;if(d==="list"&&To(t))return hAe(e,t,r,i,o,s,l);if(d==="listOrElement")return To(t)?hAe(e,t,r,i,o,s,l):VT(e.element,t,r,i,o,s,l);if(!No(e.type))return _Ae(e,t,i,s,l);let p=c1(e,t,i,s,l);return nw(p)?p:z5e(e,r,p)}else i.push(SE(l,s,f.Compiler_option_0_requires_a_value_of_type_1,e.name,zH(e)))}function z5e(e,t,r){return e.isFilePath&&(r=ho(r,t),r===""&&(r=".")),r}function c1(e,t,r,i,o){var s;if(nw(t))return;let l=(s=e.extraValidation)==null?void 0:s.call(e,t);if(!l)return t;r.push(SE(o,i,...l))}function _Ae(e,t,r,i,o){if(nw(t))return;let s=t.toLowerCase(),l=e.type.get(s);if(l!==void 0)return c1(e,l,r,i,o);r.push(WTe(e,(d,...p)=>SE(o,i,d,...p)))}function hAe(e,t,r,i,o,s,l){return jr(mn(t,(d,p)=>VT(e.element,d,r,i,o,s?.elements[p],l)),d=>e.listPreserveFalsyValues?!0:!!d)}function TP(e,t,r,i,o=Xe){t=ma(t);let s=Nd(i.useCaseSensitiveFileNames),l=new Map,d=new Map,p=new Map,{validatedFilesSpec:h,validatedIncludeSpecs:m,validatedExcludeSpecs:y}=e,E=BN(r,o),S=ak(r,E);if(h)for(let w of h){let j=ho(w,t);l.set(s(j),j)}let A;if(m&&m.length>0)for(let w of i.readDirectory(t,pm(S),y,m,void 0)){if(Sl(w,".json")){if(!A){let Y=m.filter(ce=>El(ce,".json")),B=mn(N6(Y,t,"files"),ce=>`^${ce}$`);A=B?B.map(ce=>zv(ce,i.useCaseSensitiveFileNames)):Xe}if(Kl(A,Y=>Y.test(w))!==-1){let Y=s(w);!l.has(Y)&&!p.has(Y)&&p.set(Y,w)}continue}if(V5e(w,l,d,E,s))continue;j5e(w,d,E,s);let j=s(w);!l.has(j)&&!d.has(j)&&d.set(j,w)}let N=Wo(l.values()),D=Wo(d.values());return N.concat(D,Wo(p.values()))}function tse(e,t,r,i,o){let{validatedFilesSpec:s,validatedIncludeSpecs:l,validatedExcludeSpecs:d}=t;if(!Nn(l)||!Nn(d))return!1;r=ma(r);let p=Nd(i);if(s){for(let h of s)if(p(ho(h,r))===e)return!1}return yAe(e,d,i,o,r)}function gAe(e){let t=ao(e,"**/")?0:e.indexOf("/**/");return t===-1?!1:(El(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function l3(e,t,r,i){return yAe(e,jr(t,o=>!gAe(o)),r,i)}function yAe(e,t,r,i,o){let s=zN(t,Yr(ma(i),o),"exclude"),l=s&&zv(s,r);return l?l.test(e)?!0:!mI(e)&&l.test(Bc(e)):!1}function vAe(e,t,r,i,o){return e.filter(l=>{if(!No(l))return!1;let d=nse(l,r);return d!==void 0&&t.push(s(...d)),d===void 0});function s(l,d){let p=wF(i,o,d);return SE(i,p,l,d)}}function nse(e,t){if(x.assert(typeof e=="string"),t&&CAe.test(e))return[f.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(gAe(e))return[f.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function B5e({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,i){let o=zN(t,r,"exclude"),s=o&&new RegExp(o,i?"":"i"),l={},d=new Map;if(e!==void 0){let p=[];for(let h of e){let m=ma(Yr(r,h));if(s&&s.test(m))continue;let y=G5e(m,i);if(y){let{key:E,path:S,flags:A}=y,N=d.get(E),D=N!==void 0?l[N]:void 0;(D===void 0||Dbc(e,l)?l:void 0);if(!s)return!1;for(let l of s){if(Sl(e,l)&&(l!==".ts"||!Sl(e,".d.ts")))return!1;let d=o(pE(e,l));if(t.has(d)||r.has(d)){if(l===".d.ts"&&(Sl(e,".js")||Sl(e,".jsx")))continue;return!0}}return!1}function j5e(e,t,r,i){let o=gn(r,s=>bc(e,s)?s:void 0);if(o)for(let s=o.length-1;s>=0;s--){let l=o[s];if(Sl(e,l))return;let d=i(pE(e,l));t.delete(d)}}function ise(e){let t={};for(let r in e)if(Ss(e,r)){let i=OH(r);i!==void 0&&(t[r]=ose(e[r],i))}return t}function ose(e,t){if(e===void 0)return e;switch(t.type){case"object":return"";case"string":return"";case"number":return typeof e=="number"?e:"";case"boolean":return typeof e=="boolean"?e:"";case"listOrElement":if(!To(e))return ose(e,t.element);case"list":let r=t.element;return To(e)?to(e,i=>ose(i,r)):"";default:return Gc(t.type,(i,o)=>{if(i===e)return o})}}function ase(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":let t=e.defaultValueDescription;return e.isFilePath?`./${t&&typeof t=="string"?t:""}`:"";case"list":return[];case"listOrElement":return ase(e.element);case"object":return{};default:let r=mW(e.type.keys());return r!==void 0?r:x.fail("Expected 'option.type' to have entries.")}}var rw,sse,AP,lse,iw,c3,jR,ow,aw,UH,HH,og,KH,JH,qH,d3,u3,XH,YH,$H,p3,sw,bAe,EAe,f3,lw,SAe,TAe,AAe,cse,IAe,m3,xAe,RAe,DAe,cw,dse,use,pse,fse,_3,CAe,NAe,U5e=bt({"src/compiler/commandLineParser.ts"(){"use strict";ea(),rw={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},sse=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),AP=new Map(kC(sse.entries(),([e,t])=>[""+t,e])),lse=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["es2023","lib.es2023.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["dom.asynciterable","lib.dom.asynciterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["webworker.asynciterable","lib.webworker.asynciterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2016.intl","lib.es2016.intl.d.ts"],["es2017.date","lib.es2017.date.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.sharedmemory","lib.es2022.sharedmemory.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["es2023.collection","lib.es2023.collection.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.collection","lib.esnext.collection.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.disposable","lib.esnext.disposable.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.esnext.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["esnext.object","lib.esnext.object.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],iw=lse.map(e=>e[0]),c3=new Map(lse),jR=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:f.Watch_and_Build_Modes,description:f.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:"watchDirectory",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:f.Watch_and_Build_Modes,description:f.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:"fallbackPolling",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:f.Watch_and_Build_Modes,description:f.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:f.Watch_and_Build_Modes,description:f.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:nse},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:nse},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_files_from_the_watch_mode_s_processing}],ow=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:f.Command_line_Options,description:f.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:f.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:f.Command_line_Options,description:f.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:f.Output_Formatting,description:f.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:f.Compiler_Diagnostics,description:f.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:f.Compiler_Diagnostics,description:f.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:f.Compiler_Diagnostics,description:f.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:f.Output_Formatting,description:f.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:f.Compiler_Diagnostics,description:f.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:f.Compiler_Diagnostics,description:f.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:f.Compiler_Diagnostics,description:f.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:f.FILE_OR_DIRECTORY,category:f.Compiler_Diagnostics,description:f.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:f.DIRECTORY,category:f.Compiler_Diagnostics,description:f.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:f.Projects,description:f.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:f.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,transpileOptionValue:void 0,description:f.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:f.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:f.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,defaultValueDescription:!1,description:f.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:f.Emit,description:f.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Watch_and_Build_Modes,description:f.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:f.Platform_specific}],aw={name:"target",shortName:"t",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set(["es3"]),paramType:f.VERSION,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},UH={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:f.KIND,showInSimplifiedHelpView:!0,category:f.Modules,description:f.Specify_what_module_code_is_generated,defaultValueDescription:void 0},HH=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:f.Command_line_Options,paramType:f.FILE_OR_DIRECTORY,description:f.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},aw,UH,{name:"lib",type:"list",element:{name:"lib",type:c3,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.JavaScript_Support,description:f.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.JavaScript_Support,description:f.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:sse,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:f.KIND,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.FILE,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.DIRECTORY,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.LOCATION,category:f.Modules,description:f.Specify_the_root_folder_within_your_source_files,defaultValueDescription:f.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:f.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:f.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:f.FILE,category:f.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:f.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,defaultValueDescription:!1,description:f.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:f.Emit,description:f.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:f.Interop_Constraints,description:f.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",category:f.Interop_Constraints,description:f.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Type_Checking,description:f.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:f.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:f.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:f.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Ensure_use_strict_is_always_emitted,defaultValueDescription:f.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:f.Type_Checking,description:f.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:f.STRATEGY,category:f.Modules,description:f.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:f.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:f.Modules,description:f.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:f.Modules,description:f.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:f.Modules,description:f.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:f.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:f.Modules,description:f.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:f.Modules,description:f.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Interop_Constraints,description:f.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:f.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Interop_Constraints,description:f.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:f.Interop_Constraints,description:f.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:f.Modules,description:f.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:f.Modules,description:f.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:f.Modules,description:f.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:f.Modules,description:f.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:f.LOCATION,category:f.Emit,description:f.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:f.LOCATION,category:f.Emit,description:f.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:f.Language_and_Environment,description:f.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:f.Language_and_Environment,description:f.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,category:f.Language_and_Environment,description:f.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:f.Modules,description:f.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:f.Modules,description:f.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:f.Backwards_Compatibility,paramType:f.FILE,transpileOptionValue:void 0,description:f.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:f.Completeness,description:f.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:f.Backwards_Compatibility,description:f.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:f.NEWLINE,category:f.Emit,description:f.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Output_Formatting,description:f.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:f.Language_and_Environment,affectsProgramStructure:!0,description:f.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:f.Modules,description:f.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:f.Editor_Support,description:f.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:f.Projects,description:f.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:f.Projects,description:f.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:f.Projects,description:f.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,transpileOptionValue:void 0,description:f.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.DIRECTORY,category:f.Emit,transpileOptionValue:void 0,description:f.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:f.Completeness,description:f.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:f.Interop_Constraints,description:f.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:f.JavaScript_Support,description:f.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:f.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:f.Backwards_Compatibility,description:f.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:f.Specify_a_list_of_language_service_plugins_to_include,category:f.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:f.Control_what_method_is_used_to_detect_module_format_JS_files,category:f.Language_and_Environment,defaultValueDescription:f.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:"ignoreDeprecations",type:"string",defaultValueDescription:void 0}],og=[...ow,...HH],KH=og.filter(e=>!!e.affectsSemanticDiagnostics),JH=og.filter(e=>!!e.affectsEmit),qH=og.filter(e=>!!e.affectsDeclarationPath),d3=og.filter(e=>!!e.affectsModuleResolution),u3=og.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),XH=og.filter(e=>!!e.affectsProgramStructure),YH=og.filter(e=>Ss(e,"transpileOptionValue")),$H=[{name:"verbose",shortName:"v",category:f.Command_line_Options,description:f.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:f.Command_line_Options,description:f.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:f.Command_line_Options,description:f.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:f.Command_line_Options,description:f.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],p3=[...ow,...$H],sw=[{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}],EAe={diagnostic:f.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:GTe},f3={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},lw={alternateMode:EAe,getOptionsNameMap:VR,optionDeclarations:og,unknownOptionDiagnostic:f.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:f.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Compiler_option_0_expects_an_argument},TAe={diagnostic:f.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:VR},AAe={alternateMode:TAe,getOptionsNameMap:GTe,optionDeclarations:p3,unknownOptionDiagnostic:f.Unknown_build_option_0,unknownDidYouMeanDiagnostic:f.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Build_option_0_requires_a_value_of_type_1},cse={optionDeclarations:sw,unknownOptionDiagnostic:f.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:f.Unknown_type_acquisition_option_0_Did_you_mean_1},m3={getOptionsNameMap:UTe,optionDeclarations:jR,unknownOptionDiagnostic:f.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:f.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Watch_option_0_requires_a_value_of_type_1},cw={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:f.File_Management,disallowNullOrUndefined:!0},dse={name:"compilerOptions",type:"object",elementOptions:HTe(),extraKeyDiagnostics:lw},use={name:"watchOptions",type:"object",elementOptions:KTe(),extraKeyDiagnostics:m3},pse={name:"typeAcquisition",type:"object",elementOptions:JTe(),extraKeyDiagnostics:cse},_3="**/*",CAe=/(^|\/)\*\*\/?$/,NAe=/^[^*?]*(?=\/[^/]*[*?])/}});function vo(e,t,...r){e.trace(nU(t,...r))}function Gg(e,t){return!!e.traceResolution&&t.trace!==void 0}function d1(e,t){let r;if(t&&e){let i=e.contents.packageJsonContent;typeof i.name=="string"&&typeof i.version=="string"&&(r={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+nl.length),version:i.version})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function QH(e){return d1(void 0,e)}function PAe(e){if(e)return x.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function h3(e){let t=[];return e&1&&t.push("TypeScript"),e&2&&t.push("JavaScript"),e&4&&t.push("Declaration"),e&8&&t.push("JSON"),t.join(", ")}function H5e(e){let t=[];return e&1&&t.push(...yk),e&2&&t.push(...AR),e&4&&t.push(...gk),e&8&&t.push(".json"),t}function mse(e){if(e)return x.assert(O6(e.extension)),{fileName:e.path,packageId:e.packageId}}function MAe(e,t,r,i,o,s,l,d,p){if(!l.resultFromCache&&!l.compilerOptions.preserveSymlinks&&t&&r&&!t.originalPath&&!Yc(e)){let{resolvedFileName:h,originalPath:m}=wAe(t.path,l.host,l.traceEnabled);m&&(t={...t,path:h,originalPath:m})}return LAe(t,r,i,o,s,l.resultFromCache,d,p)}function LAe(e,t,r,i,o,s,l,d){return s?l?.isReadonly?{...s,failedLookupLocations:_se(s.failedLookupLocations,r),affectingLocations:_se(s.affectingLocations,i),resolutionDiagnostics:_se(s.resolutionDiagnostics,o)}:(s.failedLookupLocations=UR(s.failedLookupLocations,r),s.affectingLocations=UR(s.affectingLocations,i),s.resolutionDiagnostics=UR(s.resolutionDiagnostics,o),s):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:e.originalPath===!0?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:IP(r),affectingLocations:IP(i),resolutionDiagnostics:IP(o),alternateResult:d}}function IP(e){return e.length?e:void 0}function UR(e,t){return t?.length?e?.length?(e.push(...t),e):t:e}function _se(e,t){return e?.length?t.length?[...e,...t]:e.slice():IP(t)}function kAe(e,t,r,i){if(!Ss(e,t)){i.traceEnabled&&vo(i.host,f.package_json_does_not_have_a_0_field,t);return}let o=e[t];if(typeof o!==r||o===null){i.traceEnabled&&vo(i.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,r,o===null?"null":typeof o);return}return o}function ZH(e,t,r,i){let o=kAe(e,t,"string",i);if(o===void 0)return;if(!o){i.traceEnabled&&vo(i.host,f.package_json_had_a_falsy_0_field,t);return}let s=ma(Yr(r,o));return i.traceEnabled&&vo(i.host,f.package_json_has_0_field_1_that_references_2,t,o,s),s}function K5e(e,t,r){return ZH(e,"typings",t,r)||ZH(e,"types",t,r)}function J5e(e,t,r){return ZH(e,"tsconfig",t,r)}function q5e(e,t,r){return ZH(e,"main",t,r)}function X5e(e,t){let r=kAe(e,"typesVersions","object",t);if(r!==void 0)return t.traceEnabled&&vo(t.host,f.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),r}function Y5e(e,t){let r=X5e(e,t);if(r===void 0)return;if(t.traceEnabled)for(let l in r)Ss(r,l)&&!xL.tryParse(l)&&vo(t.host,f.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,l);let i=g3(r);if(!i){t.traceEnabled&&vo(t.host,f.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,g_);return}let{version:o,paths:s}=i;if(typeof s!="object"){t.traceEnabled&&vo(t.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${o}']`,"object",typeof s);return}return i}function g3(e){Cse||(Cse=new fm(Jp));for(let t in e){if(!Ss(e,t))continue;let r=xL.tryParse(t);if(r!==void 0&&r.test(Cse))return{version:t,paths:e[t]}}}function xP(e,t){if(e.typeRoots)return e.typeRoots;let r;if(e.configFilePath?r=oi(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),r!==void 0)return $5e(r)}function $5e(e){let t;return hm(ma(e),r=>{let i=Yr(r,rIe);(t??(t=[])).push(i)}),t}function Q5e(e,t,r){let i=typeof r.useCaseSensitiveFileNames=="function"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return Rg(e,t,!i)===0}function wAe(e,t,r){let i=dGe(e,t,r),o=Q5e(e,i,t);return{resolvedFileName:o?e:i,originalPath:o?void 0:e}}function OAe(e,t,r){let i=El(e,"/node_modules/@types")||El(e,"/node_modules/@types/")?eIe(t,r):t;return Yr(e,i)}function hse(e,t,r,i,o,s,l){x.assert(typeof e=="string","Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");let d=Gg(r,i);o&&(r=o.commandLine.options);let p=t?oi(t):void 0,h=p?s?.getFromDirectoryCache(e,l,p,o):void 0;if(!h&&p&&!Yc(e)&&(h=s?.getFromNonRelativeNameCache(e,l,p,o)),h)return d&&(vo(i,f.Resolving_type_reference_directive_0_containing_file_1,e,t),o&&vo(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName),vo(i,f.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,p),B(h)),h;let m=xP(r,i);d&&(t===void 0?m===void 0?vo(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):vo(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,m):m===void 0?vo(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):vo(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,m),o&&vo(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));let y=[],E=[],S=gse(r);l!==void 0&&(S|=30);let A=du(r);l===99&&3<=A&&A<=99&&(S|=32);let N=S&8?$v(r,l):[],D=[],w={compilerOptions:r,host:i,traceEnabled:d,failedLookupLocations:y,affectingLocations:E,packageJsonInfoCache:s,features:S,conditions:N,requestContainingDirectory:p,reportDiagnostic:Z=>void D.push(Z),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},j=ce(),K=!0;j||(j=z(),K=!1);let Y;if(j){let{fileName:Z,packageId:me}=j,ge=Z,q;r.preserveSymlinks||({resolvedFileName:ge,originalPath:q}=wAe(Z,i,d)),Y={primary:K,resolvedFileName:ge,originalPath:q,packageId:me,isExternalLibraryImport:TE(Z)}}return h={resolvedTypeReferenceDirective:Y,failedLookupLocations:IP(y),affectingLocations:IP(E),resolutionDiagnostics:IP(D)},p&&s&&!s.isReadonly&&(s.getOrCreateCacheForDirectory(p,o).set(e,l,h),Yc(e)||s.getOrCreateCacheForNonRelativeName(e,l,o).set(p,h)),d&&B(h),h;function B(Z){var me;(me=Z.resolvedTypeReferenceDirective)!=null&&me.resolvedFileName?Z.resolvedTypeReferenceDirective.packageId?vo(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,Z.resolvedTypeReferenceDirective.resolvedFileName,Lv(Z.resolvedTypeReferenceDirective.packageId),Z.resolvedTypeReferenceDirective.primary):vo(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,Z.resolvedTypeReferenceDirective.resolvedFileName,Z.resolvedTypeReferenceDirective.primary):vo(i,f.Type_reference_directive_0_was_not_resolved,e)}function ce(){if(m&&m.length)return d&&vo(i,f.Resolving_with_primary_search_path_0,m.join(", ")),Wl(m,Z=>{let me=OAe(Z,e,w),ge=Um(Z,i);if(!ge&&d&&vo(i,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,Z),r.typeRoots){let q=JR(4,me,!ge,w);if(q){let J=uw(q.path),re=J?Q0(J,!1,w):void 0;return mse(d1(re,q))}}return mse(Ise(4,me,!ge,w))});d&&vo(i,f.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function z(){let Z=t&&oi(t);if(Z!==void 0){let me;if(!r.typeRoots||!El(t,tD))if(d&&vo(i,f.Looking_up_in_node_modules_folder_initial_location_0,Z),Yc(e)){let{path:ge}=VAe(Z,e);me=iK(4,ge,!1,w,!0)}else{let ge=YAe(4,e,Z,w,void 0,void 0);me=ge&&ge.value}else d&&vo(i,f.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return mse(me)}else d&&vo(i,f.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function gse(e){let t=0;switch(du(e)){case 3:t=30;break;case 99:t=30;break;case 100:t=30;break}return e.resolvePackageJsonExports?t|=8:e.resolvePackageJsonExports===!1&&(t&=-9),e.resolvePackageJsonImports?t|=2:e.resolvePackageJsonImports===!1&&(t&=-3),t}function $v(e,t){let r=du(e);if(t===void 0){if(r===100)t=99;else if(r===2)return[]}let i=t===99?["import"]:["require"];return e.noDtsResolution||i.push("types"),r!==100&&i.push("node"),Eo(i,e.customConditions)}function eK(e,t,r,i,o){let s=pw(o?.getPackageJsonInfoCache(),i,r);return hm(t,l=>{if(nc(l)!=="node_modules"){let d=Yr(l,"node_modules"),p=Yr(d,e);return Q0(p,!1,s)}})}function y3(e,t){if(e.types)return e.types;let r=[];if(t.directoryExists&&t.getDirectories){let i=xP(e,t);if(i){for(let o of i)if(t.directoryExists(o))for(let s of t.getDirectories(o)){let l=ma(s),d=Yr(o,l,"package.json");if(!(t.fileExists(d)&&LN(d,t).typings===null)){let h=nc(l);h.charCodeAt(0)!==46&&r.push(h)}}}}return r}function v3(e){return!!e?.contents}function yse(e){return!!e&&!e.contents}function vse(e){var t;if(e===null||typeof e!="object")return""+e;if(To(e))return`[${(t=e.map(i=>vse(i)))==null?void 0:t.join(",")}]`;let r="{";for(let i in e)Ss(e,i)&&(r+=`${i}: ${vse(e[i])}`);return r+"}"}function tK(e,t){return t.map(r=>vse(x6(e,r))).join("|")+`|${e.pathsBasePath}`}function nK(e,t){let r=new Map,i=new Map,o=new Map;return e&&r.set(e,o),{getMapOfCacheRedirects:s,getOrCreateMapOfCacheRedirects:l,update:d,clear:h,getOwnMap:()=>o};function s(y){return y?p(y.commandLine.options,!1):o}function l(y){return y?p(y.commandLine.options,!0):o}function d(y){e!==y&&(e?o=p(y,!0):r.set(y,o),e=y)}function p(y,E){let S=r.get(y);if(S)return S;let A=m(y);if(S=i.get(A),!S){if(e){let N=m(e);N===A?S=o:i.has(N)||i.set(N,o)}E&&(S??(S=new Map)),S&&i.set(A,S)}return S&&r.set(y,S),S}function h(){let y=e&&t.get(e);o.clear(),r.clear(),t.clear(),i.clear(),e&&(y&&t.set(e,y),r.set(e,o))}function m(y){let E=t.get(y);return E||t.set(y,E=tK(y,d3)),E}}function Z5e(e,t){let r;return{getPackageJsonInfo:i,setPackageJsonInfo:o,clear:s,getInternalMap:l};function i(d){return r?.get(tl(d,e,t))}function o(d,p){(r||(r=new Map)).set(tl(d,e,t),p)}function s(){r=void 0}function l(){return r}}function WAe(e,t,r,i){let o=e.getOrCreateMapOfCacheRedirects(t),s=o.get(r);return s||(s=i(),o.set(r,s)),s}function eGe(e,t,r,i){let o=nK(r,i);return{getFromDirectoryCache:p,getOrCreateCacheForDirectory:d,clear:s,update:l,directoryToModuleNameMap:o};function s(){o.clear()}function l(h){o.update(h)}function d(h,m){let y=tl(h,e,t);return WAe(o,m,y,()=>u1())}function p(h,m,y,E){var S,A;let N=tl(y,e,t);return(A=(S=o.getMapOfCacheRedirects(E))==null?void 0:S.get(N))==null?void 0:A.get(h,m)}}function RP(e,t){return t===void 0?e:`${t}|${e}`}function u1(){let e=new Map,t=new Map,r={get(o,s){return e.get(i(o,s))},set(o,s,l){return e.set(i(o,s),l),r},delete(o,s){return e.delete(i(o,s)),r},has(o,s){return e.has(i(o,s))},forEach(o){return e.forEach((s,l)=>{let[d,p]=t.get(l);return o(s,d,p)})},size(){return e.size}};return r;function i(o,s){let l=RP(o,s);return t.set(l,[o,s]),l}}function tGe(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function nGe(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function rGe(e,t,r,i,o){let s=nK(r,o);return{getFromNonRelativeNameCache:p,getOrCreateCacheForNonRelativeName:h,clear:l,update:d};function l(){s.clear()}function d(y){s.update(y)}function p(y,E,S,A){var N,D;return x.assert(!Yc(y)),(D=(N=s.getMapOfCacheRedirects(A))==null?void 0:N.get(RP(y,E)))==null?void 0:D.get(S)}function h(y,E,S){return x.assert(!Yc(y)),WAe(s,S,RP(y,E),m)}function m(){let y=new Map;return{get:E,set:S};function E(N){return y.get(tl(N,e,t))}function S(N,D){let w=tl(N,e,t);if(y.has(w))return;y.set(w,D);let j=i(D),K=j&&A(w,j),Y=w;for(;Y!==K;){let B=oi(Y);if(B===Y||y.has(B))break;y.set(B,D),Y=B}}function A(N,D){let w=tl(oi(D),e,t),j=0,K=Math.min(N.length,w.length);for(;ji,clearAllExceptPackageJsonInfoCache:h,optionsToRedirectsKey:s};function p(){h(),i.clear()}function h(){l.clear(),d.clear()}function m(y){l.update(y),d.update(y)}}function HR(e,t,r,i,o){let s=FAe(e,t,r,i,tGe,o);return s.getOrCreateCacheForModuleName=(l,d,p)=>s.getOrCreateCacheForNonRelativeName(l,d,p),s}function b3(e,t,r,i,o){return FAe(e,t,r,i,nGe,o)}function rK(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function E3(e,t,r,i,o){return KR(e,t,rK(r),i,o)}function zAe(e,t,r,i){let o=oi(t);return r.getFromDirectoryCache(e,i,o,void 0)}function KR(e,t,r,i,o,s,l){var d,p,h;let m=Gg(r,i);s&&(r=s.commandLine.options),m&&(vo(i,f.Resolving_module_0_from_1,e,t),s&&vo(i,f.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));let y=oi(t),E=o?.getFromDirectoryCache(e,l,y,s);if(E)m&&vo(i,f.Resolution_for_module_0_was_found_in_cache_from_location_1,e,y);else{let S=r.moduleResolution;switch(S===void 0?(S=du(r),m&&vo(i,f.Module_resolution_kind_is_not_specified_using_0,Dx[S])):m&&vo(i,f.Explicitly_specified_module_resolution_kind_Colon_0,Dx[S]),(d=nu)==null||d.logStartResolveModule(e),S){case 3:E=sGe(e,t,r,i,o,s,l);break;case 99:E=lGe(e,t,r,i,o,s,l);break;case 2:E=Sse(e,t,r,i,o,s,l?$v(r,l):void 0);break;case 1:E=Rse(e,t,r,i,o,s);break;case 100:E=Ese(e,t,r,i,o,s,l?$v(r,l):void 0);break;default:return x.fail(`Unexpected moduleResolution: ${S}`)}E&&E.resolvedModule&&((p=nu)==null||p.logInfoEvent(`Module "${e}" resolved to "${E.resolvedModule.resolvedFileName}"`)),(h=nu)==null||h.logStopResolveModule(E&&E.resolvedModule?""+E.resolvedModule.resolvedFileName:"null"),o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(y,s).set(e,l,E),Yc(e)||o.getOrCreateCacheForNonRelativeName(e,l,s).set(y,E))}return m&&(E.resolvedModule?E.resolvedModule.packageId?vo(i,f.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,E.resolvedModule.resolvedFileName,Lv(E.resolvedModule.packageId)):vo(i,f.Module_name_0_was_successfully_resolved_to_1,e,E.resolvedModule.resolvedFileName):vo(i,f.Module_name_0_was_not_resolved,e)),E}function BAe(e,t,r,i,o){let s=iGe(e,t,i,o);return s?s.value:Yc(t)?oGe(e,t,r,i,o):aGe(e,t,i,o)}function iGe(e,t,r,i){var o;let{baseUrl:s,paths:l,configFile:d}=i.compilerOptions;if(l&&!Lp(t)){i.traceEnabled&&(s&&vo(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,t),vo(i.host,f.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));let p=s6(i.compilerOptions,i.host),h=d?.configFileSpecs?(o=d.configFileSpecs).pathPatterns||(o.pathPatterns=w6(l)):void 0;return xse(e,t,p,l,h,r,!1,i)}}function oGe(e,t,r,i,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&vo(o.host,f.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);let s=ma(Yr(r,t)),l,d;for(let p of o.compilerOptions.rootDirs){let h=ma(p);El(h,nl)||(h+=nl);let m=ao(s,h)&&(d===void 0||d.lengthvoid K.push(Z),isConfigLookup:d,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};N&&OI(j)&&vo(o,f.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",Y.conditions.map(Z=>`'${Z}'`).join(", "));let B;if(j===2){let Z=l&5,me=l&-6;B=Z&&z(Z,Y)||me&&z(me,Y)||void 0}else B=z(l,Y);let ce;if(Y.resolvedPackageDirectory&&!d&&!Yc(t)){let Z=B?.value&&l&5&&!JAe(5,B.value.resolved.extension);if((m=B?.value)!=null&&m.isExternalLibraryImport&&Z&&e&8&&h?.includes("import")){Qv(Y,f.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);let me={...Y,features:Y.features&-9,reportDiagnostic:qa},ge=z(l&5,me);(y=ge?.value)!=null&&y.isExternalLibraryImport&&(ce=ge.value.resolved.path)}else if((!B?.value||Z)&&j===2){Qv(Y,f.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);let me={...Y.compilerOptions,moduleResolution:100},ge={...Y,compilerOptions:me,features:30,conditions:$v(me),reportDiagnostic:qa},q=z(l&5,ge);(E=q?.value)!=null&&E.isExternalLibraryImport&&(ce=q.value.resolved.path)}}return MAe(t,(S=B?.value)==null?void 0:S.resolved,(A=B?.value)==null?void 0:A.isExternalLibraryImport,D,w,K,Y,s,ce);function z(Z,me){let q=BAe(Z,t,r,(J,re,pe,xe)=>iK(J,re,pe,xe,!0),me);if(q)return ef({resolved:q,isExternalLibraryImport:TE(q.path)});if(Yc(t)){let{path:J,parts:re}=VAe(r,t),pe=iK(Z,J,!1,me,!0);return pe&&ef({resolved:pe,isExternalLibraryImport:Bo(re,"node_modules")})}else{let J;if(e&2&&ao(t,"#")&&(J=mGe(Z,t,r,me,s,p)),!J&&e&4&&(J=fGe(Z,t,r,me,s,p)),!J){if(t.includes(":")){N&&vo(o,f.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,h3(Z));return}N&&vo(o,f.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,h3(Z)),J=YAe(Z,t,r,me,s,p)}return Z&4&&(J??(J=nIe(t,me))),J&&{value:J.value&&{resolved:J.value,isExternalLibraryImport:!0}}}}}function VAe(e,t){let r=Yr(e,t),i=zc(r),o=$s(i);return{path:o==="."||o===".."?Bc(ma(r)):ma(r),parts:i}}function dGe(e,t,r){if(!t.realpath)return e;let i=ma(t.realpath(e));return r&&vo(t,f.Resolving_real_path_for_0_result_1,e,i),i}function iK(e,t,r,i,o){if(i.traceEnabled&&vo(i.host,f.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,h3(e)),!Iy(t)){if(!r){let l=oi(t);Um(l,i.host)||(i.traceEnabled&&vo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),r=!0)}let s=JR(e,t,r,i);if(s){let l=o?uw(s.path):void 0,d=l?Q0(l,!1,i):void 0;return d1(d,s)}}if(r||Um(t,i.host)||(i.traceEnabled&&vo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(i.features&32))return Ise(e,t,r,i,o)}function TE(e){return e.includes(Eh)}function uw(e,t){let r=ma(e),i=r.lastIndexOf(Eh);if(i===-1)return;let o=i+Eh.length,s=jAe(r,o,t);return r.charCodeAt(o)===64&&(s=jAe(r,s,t)),r.slice(0,s)}function jAe(e,t,r){let i=e.indexOf(nl,t+1);return i===-1?r?e.length:t:i}function Ase(e,t,r,i){return QH(JR(e,t,r,i))}function JR(e,t,r,i){let o=UAe(e,t,r,i);if(o)return o;if(!(i.features&32)){let s=HAe(t,e,"",r,i);if(s)return s}}function UAe(e,t,r,i){if(!nc(t).includes("."))return;let s=Eu(t);s===t&&(s=t.substring(0,t.lastIndexOf(".")));let l=t.substring(s.length);return i.traceEnabled&&vo(i.host,f.File_name_0_has_a_1_extension_stripping_it,t,l),HAe(s,e,l,r,i)}function oK(e,t,r,i){return e&1&&bc(t,yk)||e&4&&bc(t,gk)?aK(t,r,i)!==void 0?{path:t,ext:_6(t),resolvedUsingTsExtension:void 0}:void 0:i.isConfigLookup&&e===8&&Sl(t,".json")?aK(t,r,i)!==void 0?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:UAe(e,t,r,i)}function HAe(e,t,r,i,o){if(!i){let l=oi(e);l&&(i=!Um(l,o.host))}switch(r){case".mjs":case".mts":case".d.mts":return t&1&&s(".mts",r===".mts"||r===".d.mts")||t&4&&s(".d.mts",r===".mts"||r===".d.mts")||t&2&&s(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return t&1&&s(".cts",r===".cts"||r===".d.cts")||t&4&&s(".d.cts",r===".cts"||r===".d.cts")||t&2&&s(".cjs")||void 0;case".json":return t&4&&s(".d.json.ts")||t&8&&s(".json")||void 0;case".tsx":case".jsx":return t&1&&(s(".tsx",r===".tsx")||s(".ts",r===".tsx"))||t&4&&s(".d.ts",r===".tsx")||t&2&&(s(".jsx")||s(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return t&1&&(s(".ts",r===".ts"||r===".d.ts")||s(".tsx",r===".ts"||r===".d.ts"))||t&4&&s(".d.ts",r===".ts"||r===".d.ts")||t&2&&(s(".js")||s(".jsx"))||o.isConfigLookup&&s(".json")||void 0;default:return t&4&&!Ed(e+r)&&s(`.d${r}.ts`)||void 0}function s(l,d){let p=aK(e+l,i,o);return p===void 0?void 0:{path:p,ext:l,resolvedUsingTsExtension:!o.candidateIsFromPackageJsonField&&d}}}function aK(e,t,r){var i;if(!((i=r.compilerOptions.moduleSuffixes)!=null&&i.length))return KAe(e,t,r);let o=Wg(e)??"",s=o?lk(e,o):e;return gn(r.compilerOptions.moduleSuffixes,l=>KAe(s+l+o,t,r))}function KAe(e,t,r){var i;if(!t){if(r.host.fileExists(e))return r.traceEnabled&&vo(r.host,f.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&vo(r.host,f.File_0_does_not_exist,e)}(i=r.failedLookupLocations)==null||i.push(e)}function Ise(e,t,r,i,o=!0){let s=o?Q0(t,r,i):void 0,l=s&&s.contents.packageJsonContent,d=s&&S3(s,i);return d1(s,lK(e,t,r,i,l,d))}function sK(e,t,r,i,o){if(!o&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let s,l=5|(o?2:0),d=gse(t),p=pw(i?.getPackageJsonInfoCache(),r,t);p.conditions=$v(t),p.requestContainingDirectory=e.packageDirectory;let h=lK(l,e.packageDirectory,!1,p,e.contents.packageJsonContent,S3(e,p));if(s=Tn(s,h?.path),d&8&&e.contents.packageJsonContent.exports){let m=m0([$v(t,99),$v(t,1)],Gm);for(let y of m){let E={...p,failedLookupLocations:[],conditions:y,host:r},S=uGe(e,e.contents.packageJsonContent.exports,E,l);if(S)for(let A of S)s=xg(s,A.path)}}return e.contents.resolvedEntrypoints=s||!1}function uGe(e,t,r,i){let o;if(To(t))for(let l of t)s(l);else if(typeof t=="object"&&t!==null&&T3(t))for(let l in t)s(t[l]);else s(t);return o;function s(l){var d,p;if(typeof l=="string"&&ao(l,"./"))if(l.includes("*")&&r.host.readDirectory){if(l.indexOf("*")!==l.lastIndexOf("*"))return!1;r.host.readDirectory(e.packageDirectory,H5e(i),void 0,[Dne(zI(l,"**/*"),".*")]).forEach(h=>{o=xg(o,{path:h,ext:Cx(h),resolvedUsingTsExtension:void 0})})}else{let h=zc(l).slice(2);if(h.includes("..")||h.includes(".")||h.includes("node_modules"))return!1;let m=Yr(e.packageDirectory,l),y=ho(m,(p=(d=r.host).getCurrentDirectory)==null?void 0:p.call(d)),E=oK(i,y,!1,r);if(E)return o=xg(o,E,(S,A)=>S.path===A.path),!0}else if(Array.isArray(l)){for(let h of l)if(s(h))return!0}else if(typeof l=="object"&&l!==null)return gn(Vh(l),h=>{if(h==="default"||Bo(r.conditions,h)||_w(r.conditions,h))return s(l[h]),!0})}}function pw(e,t,r){return{host:t,compilerOptions:r,traceEnabled:Gg(r,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:Xe,requestContainingDirectory:void 0,reportDiagnostic:qa,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function fw(e,t){let r=zc(e);for(r.pop();r.length>0;){let i=Q0(Tv(r),!1,t);if(i)return i;r.pop()}}function S3(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=Y5e(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function Q0(e,t,r){var i,o,s,l,d,p;let{host:h,traceEnabled:m}=r,y=Yr(e,"package.json");if(t){(i=r.failedLookupLocations)==null||i.push(y);return}let E=(o=r.packageJsonInfoCache)==null?void 0:o.getPackageJsonInfo(y);if(E!==void 0){if(v3(E))return m&&vo(h,f.File_0_exists_according_to_earlier_cached_lookups,y),(s=r.affectingLocations)==null||s.push(y),E.packageDirectory===e?E:{packageDirectory:e,contents:E.contents};E.directoryExists&&m&&vo(h,f.File_0_does_not_exist_according_to_earlier_cached_lookups,y),(l=r.failedLookupLocations)==null||l.push(y);return}let S=Um(e,h);if(S&&h.fileExists(y)){let A=LN(y,h);m&&vo(h,f.Found_package_json_at_0,y);let N={packageDirectory:e,contents:{packageJsonContent:A,versionPaths:void 0,resolvedEntrypoints:void 0}};return r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(y,N),(d=r.affectingLocations)==null||d.push(y),N}else S&&m&&vo(h,f.File_0_does_not_exist,y),r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(y,{packageDirectory:e,directoryExists:S}),(p=r.failedLookupLocations)==null||p.push(y)}function lK(e,t,r,i,o,s){let l;o&&(i.isConfigLookup?l=J5e(o,t,i):l=e&4&&K5e(o,t,i)||e&7&&q5e(o,t,i)||void 0);let d=(E,S,A,N)=>{let D=oK(E,S,A,N);if(D)return QH(D);let w=E===4?5:E,j=N.features,K=N.candidateIsFromPackageJsonField;N.candidateIsFromPackageJsonField=!0,o?.type!=="module"&&(N.features&=-33);let Y=iK(w,S,A,N,!1);return N.features=j,N.candidateIsFromPackageJsonField=K,Y},p=l?!Um(oi(l),i.host):void 0,h=r||!Um(t,i.host),m=Yr(t,i.isConfigLookup?"tsconfig":"index");if(s&&(!l||mm(t,l))){let E=_m(t,l||m,!1);i.traceEnabled&&vo(i.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,s.version,Jp,E);let S=xse(e,E,t,s.paths,void 0,d,p||h,i);if(S)return PAe(S.value)}let y=l&&PAe(d(e,l,p,i));if(y)return y;if(!(i.features&32))return JR(e,m,h,i)}function JAe(e,t){return e&2&&(t===".js"||t===".jsx"||t===".mjs"||t===".cjs")||e&1&&(t===".ts"||t===".tsx"||t===".mts"||t===".cts")||e&4&&(t===".d.ts"||t===".d.mts"||t===".d.cts")||e&8&&t===".json"||!1}function mw(e){let t=e.indexOf(nl);return e[0]==="@"&&(t=e.indexOf(nl,t+1)),t===-1?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function T3(e){return oo(Vh(e),t=>ao(t,"."))}function pGe(e){return!gt(Vh(e),t=>ao(t,"."))}function fGe(e,t,r,i,o,s){var l,d;let p=ho(Yr(r,"dummy"),(d=(l=i.host).getCurrentDirectory)==null?void 0:d.call(l)),h=fw(p,i);if(!h||!h.contents.packageJsonContent.exports||typeof h.contents.packageJsonContent.name!="string")return;let m=zc(t),y=zc(h.contents.packageJsonContent.name);if(!oo(y,(D,w)=>m[w]===D))return;let E=m.slice(y.length),S=Nn(E)?`.${nl}${E.join(nl)}`:".";if(Vv(i.compilerOptions)&&!TE(r))return cK(h,e,S,i,o,s);let A=e&5,N=e&-6;return cK(h,A,S,i,o,s)||cK(h,N,S,i,o,s)}function cK(e,t,r,i,o,s){if(e.contents.packageJsonContent.exports){if(r==="."){let l;if(typeof e.contents.packageJsonContent.exports=="string"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports=="object"&&pGe(e.contents.packageJsonContent.exports)?l=e.contents.packageJsonContent.exports:Ss(e.contents.packageJsonContent.exports,".")&&(l=e.contents.packageJsonContent.exports["."]),l)return XAe(t,i,o,s,r,e,!1)(l,"",!1,".")}else if(T3(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return i.traceEnabled&&vo(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),ef(void 0);let l=qAe(t,i,o,s,r,e.contents.packageJsonContent.exports,e,!1);if(l)return l}return i.traceEnabled&&vo(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),ef(void 0)}}function mGe(e,t,r,i,o,s){var l,d;if(t==="#"||ao(t,"#/"))return i.traceEnabled&&vo(i.host,f.Invalid_import_specifier_0_has_no_possible_resolutions,t),ef(void 0);let p=ho(Yr(r,"dummy"),(d=(l=i.host).getCurrentDirectory)==null?void 0:d.call(l)),h=fw(p,i);if(!h)return i.traceEnabled&&vo(i.host,f.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,p),ef(void 0);if(!h.contents.packageJsonContent.imports)return i.traceEnabled&&vo(i.host,f.package_json_scope_0_has_no_imports_defined,h.packageDirectory),ef(void 0);let m=qAe(e,i,o,s,t,h.contents.packageJsonContent.imports,h,!0);return m||(i.traceEnabled&&vo(i.host,f.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,h.packageDirectory),ef(void 0))}function dK(e,t){let r=e.indexOf("*"),i=t.indexOf("*"),o=r===-1?e.length:r+1,s=i===-1?t.length:i+1;return o>s?-1:s>o||r===-1?1:i===-1||e.length>t.length?-1:t.length>e.length?1:0}function qAe(e,t,r,i,o,s,l,d){let p=XAe(e,t,r,i,o,l,d);if(!El(o,nl)&&!o.includes("*")&&Ss(s,o)){let y=s[o];return p(y,"",!1,o)}let h=ZS(jr(Vh(s),y=>y.includes("*")||El(y,"/")),dK);for(let y of h)if(t.features&16&&m(y,o)){let E=s[y],S=y.indexOf("*"),A=o.substring(y.substring(0,S).length,o.length-(y.length-1-S));return p(E,A,!0,y)}else if(El(y,"*")&&ao(o,y.substring(0,y.length-1))){let E=s[y],S=o.substring(y.length-1);return p(E,S,!0,y)}else if(ao(o,y)){let E=s[y],S=o.substring(y.length);return p(E,S,!1,y)}function m(y,E){if(El(y,"*"))return!1;let S=y.indexOf("*");return S===-1?!1:ao(E,y.substring(0,S))&&El(E,y.substring(S+1))}}function XAe(e,t,r,i,o,s,l){return d;function d(p,h,m,y){if(typeof p=="string"){if(!m&&h.length>0&&!El(p,"/"))return t.traceEnabled&&vo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),ef(void 0);if(!ao(p,"./")){if(l&&!ao(p,"../")&&!ao(p,"/")&&!cp(p)){let B=m?p.replace(/\*/g,h):p+h;Qv(t,f.Using_0_subpath_1_with_target_2,"imports",y,B),Qv(t,f.Resolving_module_0_from_1,B,s.packageDirectory+"/");let ce=dw(t.features,B,s.packageDirectory+"/",t.compilerOptions,t.host,r,e,!1,i,t.conditions);return ef(ce.resolvedModule?{path:ce.resolvedModule.resolvedFileName,extension:ce.resolvedModule.extension,packageId:ce.resolvedModule.packageId,originalPath:ce.resolvedModule.originalPath,resolvedUsingTsExtension:ce.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&vo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),ef(void 0)}let D=(Lp(p)?zc(p).slice(1):zc(p)).slice(1);if(D.includes("..")||D.includes(".")||D.includes("node_modules"))return t.traceEnabled&&vo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),ef(void 0);let w=Yr(s.packageDirectory,p),j=zc(h);if(j.includes("..")||j.includes(".")||j.includes("node_modules"))return t.traceEnabled&&vo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),ef(void 0);t.traceEnabled&&vo(t.host,f.Using_0_subpath_1_with_target_2,l?"imports":"exports",y,m?p.replace(/\*/g,h):p+h);let K=E(m?w.replace(/\*/g,h):w+h),Y=A(K,h,Yr(s.packageDirectory,"package.json"),l);return Y||ef(d1(s,oK(e,K,!1,t)))}else if(typeof p=="object"&&p!==null)if(Array.isArray(p)){if(!Nn(p))return t.traceEnabled&&vo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),ef(void 0);for(let N of p){let D=d(N,h,m,y);if(D)return D}}else{Qv(t,f.Entering_conditional_exports);for(let N of Vh(p))if(N==="default"||t.conditions.includes(N)||_w(t.conditions,N)){Qv(t,f.Matched_0_condition_1,l?"imports":"exports",N);let D=p[N],w=d(D,h,m,y);if(w)return Qv(t,f.Resolved_under_condition_0,N),Qv(t,f.Exiting_conditional_exports),w;Qv(t,f.Failed_to_resolve_under_condition_0,N)}else Qv(t,f.Saw_non_matching_condition_0,N);Qv(t,f.Exiting_conditional_exports);return}else if(p===null)return t.traceEnabled&&vo(t.host,f.package_json_scope_0_explicitly_maps_specifier_1_to_null,s.packageDirectory,o),ef(void 0);return t.traceEnabled&&vo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),ef(void 0);function E(N){var D,w;return N===void 0?N:ho(N,(w=(D=t.host).getCurrentDirectory)==null?void 0:w.call(D))}function S(N,D){return Bc(Yr(N,D))}function A(N,D,w,j){var K,Y,B,ce;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!N.includes("/node_modules/")&&(!t.compilerOptions.configFile||mm(s.packageDirectory,E(t.compilerOptions.configFile.fileName),!uK(t)))){let Z=My({useCaseSensitiveFileNames:()=>uK(t)}),me=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){let ge=E(GP(t.compilerOptions,()=>[],((Y=(K=t.host).getCurrentDirectory)==null?void 0:Y.call(K))||"",Z));me.push(ge)}else if(t.requestContainingDirectory){let ge=E(Yr(t.requestContainingDirectory,"index.ts")),q=E(GP(t.compilerOptions,()=>[ge,E(w)],((ce=(B=t.host).getCurrentDirectory)==null?void 0:ce.call(B))||"",Z));me.push(q);let J=Bc(q);for(;J&&J.length>1;){let re=zc(J);re.pop();let pe=Tv(re);me.unshift(pe),J=Bc(pe)}}me.length>1&&t.reportDiagnostic(jl(j?f.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:f.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,D===""?".":D,w));for(let ge of me){let q=z(ge);for(let J of q)if(mm(J,N,!uK(t))){let re=N.slice(J.length+1),pe=Yr(ge,re),xe=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(let fe of xe)if(Sl(pe,fe)){let ne=Rie(pe);for(let he of ne){if(!JAe(e,he))continue;let Ce=OL(pe,he,fe,!uK(t));if(t.host.fileExists(Ce))return ef(d1(s,oK(e,Ce,!1,t)))}}}}}return;function z(Z){var me,ge;let q=t.compilerOptions.configFile?((ge=(me=t.host).getCurrentDirectory)==null?void 0:ge.call(me))||"":Z,J=[];return t.compilerOptions.declarationDir&&J.push(E(S(q,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&J.push(E(S(q,t.compilerOptions.outDir))),J}}}}function _w(e,t){if(!e.includes("types")||!ao(t,"types@"))return!1;let r=xL.tryParse(t.substring(6));return r?r.test(Jp):!1}function YAe(e,t,r,i,o,s){return $Ae(e,t,r,i,!1,o,s)}function _Ge(e,t,r){return $Ae(4,e,t,r,!0,void 0,void 0)}function $Ae(e,t,r,i,o,s,l){let d=i.features===0?void 0:i.features&32?99:1,p=e&5,h=e&-6;if(p){Qv(i,f.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,h3(p));let y=m(p);if(y)return y}if(h&&!o)return Qv(i,f.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,h3(h)),m(h);function m(y){return hm(Pd(r),E=>{if(nc(E)!=="node_modules"){let S=tIe(s,t,d,E,l,i);return S||ef(QAe(y,t,E,i,o,s,l))}})}}function QAe(e,t,r,i,o,s,l){let d=Yr(r,"node_modules"),p=Um(d,i.host);if(!p&&i.traceEnabled&&vo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,d),!o){let h=ZAe(e,t,d,p,i,s,l);if(h)return h}if(e&4){let h=Yr(d,"@types"),m=p;return p&&!Um(h,i.host)&&(i.traceEnabled&&vo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,h),m=!1),ZAe(4,eIe(t,i),h,m,i,s,l)}}function ZAe(e,t,r,i,o,s,l){var d,p;let h=ma(Yr(r,t)),{packageName:m,rest:y}=mw(t),E=Yr(r,m),S,A=Q0(h,!i,o);if(y!==""&&A&&(!(o.features&8)||!Ss(((d=S=Q0(E,!i,o))==null?void 0:d.contents.packageJsonContent)??Xe,"exports"))){let w=JR(e,h,!i,o);if(w)return QH(w);let j=lK(e,h,!i,o,A.contents.packageJsonContent,S3(A,o));return d1(A,j)}let N=(w,j,K,Y)=>{let B=(y||!(Y.features&32))&&JR(w,j,K,Y)||lK(w,j,K,Y,A&&A.contents.packageJsonContent,A&&S3(A,Y));return!B&&A&&(A.contents.packageJsonContent.exports===void 0||A.contents.packageJsonContent.exports===null)&&Y.features&32&&(B=JR(w,Yr(j,"index.js"),K,Y)),d1(A,B)};if(y!==""&&(A=S??Q0(E,!i,o)),A&&(o.resolvedPackageDirectory=!0),A&&A.contents.packageJsonContent.exports&&o.features&8)return(p=cK(A,e,Yr(".",y),o,s,l))==null?void 0:p.value;let D=y!==""&&A?S3(A,o):void 0;if(D){o.traceEnabled&&vo(o.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,D.version,Jp,y);let w=i&&Um(E,o.host),j=xse(e,y,E,D.paths,void 0,N,!w,o);if(j)return j.value}return N(e,h,!i,o)}function xse(e,t,r,i,o,s,l,d){o||(o=w6(i));let p=cU(o,t);if(p){let h=No(p)?void 0:lne(p,t),m=No(p)?p:sne(p);return d.traceEnabled&&vo(d.host,f.Module_name_0_matched_pattern_1,t,m),{value:gn(i[m],E=>{let S=h?zI(E,h):E,A=ma(Yr(r,S));d.traceEnabled&&vo(d.host,f.Trying_substitution_0_candidate_module_location_Colon_1,E,S);let N=Wg(E);if(N!==void 0){let D=aK(A,l,d);if(D!==void 0)return QH({path:D,ext:N,resolvedUsingTsExtension:void 0})}return s(e,A,l||!Um(oi(A),d.host),d)})}}}function eIe(e,t){let r=qR(e);return t.traceEnabled&&r!==e&&vo(t.host,f.Scoped_package_detected_looking_in_0,r),r}function A3(e){return`@types/${qR(e)}`}function qR(e){if(ao(e,"@")){let t=e.replace(nl,fK);if(t!==e)return t.slice(1)}return e}function DP(e){let t=VC(e,"@types/");return t!==e?hw(t):e}function hw(e){return e.includes(fK)?"@"+e.replace(fK,nl):e}function tIe(e,t,r,i,o,s){let l=e&&e.getFromNonRelativeNameCache(t,r,i,o);if(l)return s.traceEnabled&&vo(s.host,f.Resolution_for_module_0_was_found_in_cache_from_location_1,t,i),s.resultFromCache=l,{value:l.resolvedModule&&{path:l.resolvedModule.resolvedFileName,originalPath:l.resolvedModule.originalPath||!0,extension:l.resolvedModule.extension,packageId:l.resolvedModule.packageId,resolvedUsingTsExtension:l.resolvedModule.resolvedUsingTsExtension}}}function Rse(e,t,r,i,o,s){let l=Gg(r,i),d=[],p=[],h=oi(t),m=[],y={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:d,affectingLocations:p,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:h,reportDiagnostic:A=>void m.push(A),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},E=S(5)||S(2|(r.resolveJsonModule?8:0));return MAe(e,E&&E.value,E?.value&&TE(E.value.path),d,p,m,y,o);function S(A){let N=BAe(A,e,h,Ase,y);if(N)return{value:N};if(Yc(e)){let D=ma(Yr(h,e));return ef(Ase(A,D,!1,y))}else{let D=hm(h,w=>{let j=tIe(o,e,void 0,w,s,y);if(j)return j;let K=ma(Yr(w,e));return ef(Ase(A,K,!1,y))});if(D)return D;if(A&5){let w=_Ge(e,h,y);return A&4&&(w??(w=nIe(e,y))),w}}}}function nIe(e,t){if(t.compilerOptions.typeRoots)for(let r of t.compilerOptions.typeRoots){let i=OAe(r,e,t),o=Um(r,t.host);!o&&t.traceEnabled&&vo(t.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,r);let s=JR(4,i,!o,t);if(s){let d=uw(s.path),p=d?Q0(d,!1,t):void 0;return ef(d1(p,s))}let l=Ise(4,i,!o,t);if(l)return ef(l)}}function XR(e,t){return!!e.allowImportingTsExtensions||t&&Ed(t)}function Dse(e,t,r,i,o,s){let l=Gg(r,i);l&&vo(i,f.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,o);let d=[],p=[],h=[],m={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:d,affectingLocations:p,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:E=>void h.push(E),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},y=QAe(4,e,o,m,!1,void 0,void 0);return LAe(y,!0,d,p,h,m.resultFromCache,void 0)}function ef(e){return e!==void 0?{value:e}:void 0}function Qv(e,t,...r){e.traceEnabled&&vo(e.host,t,...r)}function uK(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames=="boolean"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var Cse,rIe,pK,Eh,fK,hGe=bt({"src/compiler/moduleNameResolver.ts"(){"use strict";ea(),rIe=Yr("node_modules","@types"),pK=(e=>(e[e.None=0]="None",e[e.Imports=2]="Imports",e[e.SelfName=4]="SelfName",e[e.Exports=8]="Exports",e[e.ExportsPatternTrailers=16]="ExportsPatternTrailers",e[e.AllFeatures=30]="AllFeatures",e[e.Node16Default=30]="Node16Default",e[e.NodeNextDefault=30]="NodeNextDefault",e[e.BundlerDefault=30]="BundlerDefault",e[e.EsmMode=32]="EsmMode",e))(pK||{}),Eh="/node_modules/",fK="__"}});function Vg(e,t){return e.body&&!e.body.parent&&(ja(e.body,e),Bv(e.body,!1)),e.body?Nse(e.body,t):1}function Nse(e,t=new Map){let r=rs(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);let i=gGe(e,t);return t.set(r,i),i}function gGe(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(A0(e))return 2;break;case 272:case 271:if(!$r(e,32))return 0;break;case 278:let r=e;if(!r.moduleSpecifier&&r.exportClause&&r.exportClause.kind===279){let i=0;for(let o of r.exportClause.elements){let s=yGe(o,t);if(s>i&&(i=s),i===1)return i}return i}break;case 268:{let i=0;return Go(e,o=>{let s=Nse(o,t);switch(s){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:x.assertNever(s)}}),i}case 267:return Vg(e,t);case 80:if(e.flags&4096)return 0}return 1}function yGe(e,t){let r=e.propertyName||e.name,i=e.parent;for(;i;){if(Ko(i)||N_(i)||Yi(i)){let o=i.statements,s;for(let l of o)if(XL(l,r)){l.parent||(ja(l,i),Bv(l,!1));let d=Nse(l,t);if((s===void 0||d>s)&&(s=d),s===1)return s;l.kind===271&&(s=1)}if(s!==void 0)return s}i=i.parent}return 1}function p1(e){return x.attachFlowNodeDebugInfo(e),e}function Pse(e,t){var r,i;el("beforeBind"),(r=nu)==null||r.logStartBindFile(""+e.fileName),oIe(e,t),(i=nu)==null||i.logStopBindFile(),el("afterBind"),Xp("Bind","beforeBind","afterBind")}function vGe(){var e,t,r,i,o,s,l,d,p,h,m,y,E,S,A,N,D,w,j,K,Y,B,ce=!1,z=0,Z,me,ge={flags:1},q={flags:1},J=U();return pe;function re(O,Ee,...nt){return Kf(Gn(O)||e,O,Ee,...nt)}function pe(O,Ee){var nt,Gt;e=O,t=Ee,r=ns(t),B=xe(e,Ee),me=new Set,z=0,Z=sd.getSymbolConstructor(),x.attachFlowNodeDebugInfo(ge),x.attachFlowNodeDebugInfo(q),e.locals||((nt=rr)==null||nt.push(rr.Phase.Bind,"bindSourceFile",{path:e.path},!0),Pe(e),(Gt=rr)==null||Gt.pop(),e.symbolCount=z,e.classifiableNames=me,cd()),e=void 0,t=void 0,r=void 0,i=void 0,o=void 0,s=void 0,l=void 0,d=void 0,p=void 0,h=!1,m=void 0,y=void 0,E=void 0,S=void 0,A=void 0,N=void 0,D=void 0,j=void 0,K=!1,ce=!1,Y=0}function xe(O,Ee){return cu(Ee,"alwaysStrict")&&!O.isDeclarationFile?!0:!!O.externalModuleIndicator}function fe(O,Ee){return z++,new Z(O,Ee)}function ne(O,Ee,nt){O.flags|=nt,Ee.symbol=O,O.declarations=xg(O.declarations,Ee),nt&1955&&!O.exports&&(O.exports=aa()),nt&6240&&!O.members&&(O.members=aa()),O.constEnumOnlyModule&&O.flags&304&&(O.constEnumOnlyModule=!1),nt&111551&&w2(O,Ee)}function he(O){if(O.kind===277)return O.isExportEquals?"export=":"default";let Ee=Po(O);if(Ee){if(Md(O)){let nt=Xf(Ee);return E_(O)?"__global":`"${nt}"`}if(Ee.kind===167){let nt=Ee.expression;if($p(nt))return pl(nt.text);if(t6(nt))return da(nt.operator)+nt.operand.text;x.fail("Only computed properties with literal names have declaration names")}if(Ki(Ee)){let nt=ad(O);if(!nt)return;let Gt=nt.symbol;return K2(Gt,Ee.escapedText)}return qm(Ee)?FI(Ee):T_(Ee)?TN(Ee):void 0}switch(O.kind){case 176:return"__constructor";case 184:case 179:case 330:return"__call";case 185:case 180:return"__new";case 181:return"__index";case 278:return"__export";case 312:return"export=";case 226:if(zl(O)===2)return"export=";x.fail("Unknown binary declaration kind");break;case 324:return rR(O)?"__new":"__call";case 169:return x.assert(O.parent.kind===324,"Impossible parameter parent kind",()=>`parent is: ${x.formatSyntaxKind(O.parent.kind)}, expected JSDocFunctionType`),"arg"+O.parent.parameters.indexOf(O)}}function Ce(O){return iu(O)?Ts(O.name):Vi(x.checkDefined(he(O)))}function Ge(O,Ee,nt,Gt,Zn,ii,Xr){x.assert(Xr||!Ov(nt));let no=$r(nt,2048)||Kd(nt)&&nt.name.escapedText==="default",La=Xr?"__computed":no&&Ee?"default":he(nt),ka;if(La===void 0)ka=fe(0,"__missing");else if(ka=O.get(La),Gt&2885600&&me.add(La),!ka)O.set(La,ka=fe(0,La)),ii&&(ka.isReplaceableByMethod=!0);else{if(ii&&!ka.isReplaceableByMethod)return ka;if(ka.flags&Zn){if(ka.isReplaceableByMethod)O.set(La,ka=fe(0,La));else if(!(Gt&3&&ka.flags&67108864)){iu(nt)&&ja(nt.name,nt);let wl=ka.flags&2?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,pd=!0;(ka.flags&384||Gt&384)&&(wl=f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,pd=!1);let Ic=!1;Nn(ka.declarations)&&(no||ka.declarations&&ka.declarations.length&&nt.kind===277&&!nt.isExportEquals)&&(wl=f.A_module_cannot_have_multiple_default_exports,pd=!1,Ic=!0);let Tp=[];Tm(nt)&&Fl(nt.type)&&$r(nt,32)&&ka.flags&2887656&&Tp.push(re(nt,f.Did_you_mean_0,`export type { ${Vi(nt.name.escapedText)} }`));let Bu=Po(nt)||nt;gn(ka.declarations,(ls,Dm)=>{let Cm=Po(ls)||ls,Ui=pd?re(Cm,wl,Ce(ls)):re(Cm,wl);e.bindDiagnostics.push(Ic?Pa(Ui,re(Bu,Dm===0?f.Another_export_default_is_here:f.and_here)):Ui),Ic&&Tp.push(re(Cm,f.The_first_export_default_is_here))});let ob=pd?re(Bu,wl,Ce(nt)):re(Bu,wl);e.bindDiagnostics.push(Pa(ob,...Tp)),ka=fe(0,La)}}}return ne(ka,nt,Gt),ka.parent?x.assert(ka.parent===Ee,"Existing symbol parent should match new one"):ka.parent=Ee,ka}function ve(O,Ee,nt){let Gt=!!(Zb(O)&32)||Ae(O);if(Ee&2097152)return O.kind===281||O.kind===271&&Gt?Ge(o.symbol.exports,o.symbol,O,Ee,nt):(x.assertNode(o,lh),Ge(o.locals,void 0,O,Ee,nt));if(qf(O)&&x.assert(ir(O)),!Md(O)&&(Gt||o.flags&128)){if(!lh(o)||!o.locals||$r(O,2048)&&!he(O))return Ge(o.symbol.exports,o.symbol,O,Ee,nt);let Zn=Ee&111551?1048576:0,ii=Ge(o.locals,void 0,O,Zn,nt);return ii.exportSymbol=Ge(o.symbol.exports,o.symbol,O,Ee,nt),O.localSymbol=ii,ii}else return x.assertNode(o,lh),Ge(o.locals,void 0,O,Ee,nt)}function Ae(O){if(O.parent&&ql(O)&&(O=O.parent),!qf(O))return!1;if(!zk(O)&&O.fullName)return!0;let Ee=Po(O);return Ee?!!(ek(Ee.parent)&&Zl(Ee.parent)||Hd(Ee.parent)&&Zb(Ee.parent)&32):!1}function De(O,Ee){let nt=o,Gt=s,Zn=l;if(Ee&1?(O.kind!==219&&(s=o),o=l=O,Ee&32&&(o.locals=aa(),er(o))):Ee&2&&(l=O,Ee&32&&(l.locals=void 0)),Ee&4){let ii=m,Xr=y,no=E,La=S,ka=D,wl=j,pd=K,Ic=Ee&16&&!$r(O,1024)&&!O.asteriskToken&&!!_T(O)||O.kind===175;Ic||(m=p1({flags:2}),Ee&144&&(m.node=O)),S=Ic||O.kind===176||ir(O)&&(O.kind===262||O.kind===218)?Dn():void 0,D=void 0,y=void 0,E=void 0,j=void 0,K=!1,ze(O),O.flags&=-5633,!(m.flags&1)&&Ee&8&&Hf(O.body)&&(O.flags|=512,K&&(O.flags|=1024),O.endFlowNode=m),O.kind===312&&(O.flags|=Y,O.endFlowNode=m),S&&(Kt(S,m),m=Qn(S),(O.kind===176||O.kind===175||ir(O)&&(O.kind===262||O.kind===218))&&(O.returnFlowNode=m)),Ic||(m=ii),y=Xr,E=no,S=La,D=ka,j=wl,K=pd}else Ee&64?(h=!1,ze(O),x.assertNotNode(O,Fe),O.flags=h?O.flags|256:O.flags&-257):ze(O);o=nt,s=Gt,l=Zn}function Le(O){Et(O,Ee=>Ee.kind===262?Pe(Ee):void 0),Et(O,Ee=>Ee.kind!==262?Pe(Ee):void 0)}function Et(O,Ee=Pe){O!==void 0&&gn(O,Ee)}function be(O){Go(O,Pe,Et)}function ze(O){let Ee=ce;if(ce=!1,zt(O)){be(O),yt(O),ce=Ee;return}switch(O.kind>=243&&O.kind<=259&&!t.allowUnreachableCode&&(O.flowNode=m),O.kind){case 247:$i(O);break;case 246:Io(O);break;case 248:ua(O);break;case 249:case 250:Ba(O);break;case 245:vn(O);break;case 253:case 257:kn(O);break;case 252:case 251:lt(O);break;case 258:Rt(O);break;case 255:ae(O);break;case 269:ke(O);break;case 296:st(O);break;case 244:G(O);break;case 256:Tt(O);break;case 224:hn(O);break;case 225:dn(O);break;case 226:if(ky(O)){ce=Ee,un(O);return}J(O);break;case 220:Me(O);break;case 227:Nt(O);break;case 260:ie(O);break;case 211:case 212:gi(O);break;case 213:xi(O);break;case 235:Bn(O);break;case 353:case 345:case 347:Ne(O);break;case 312:{Le(O.statements),Pe(O.endOfFileToken);break}case 241:case 268:Le(O.statements);break;case 208:H(O);break;case 169:ue(O);break;case 210:case 209:case 303:case 230:ce=Ee;default:be(O);break}yt(O),ce=Ee}function tt(O){switch(O.kind){case 80:case 81:case 110:case 211:case 212:return _t(O);case 213:return Je(O);case 217:if(WR(O))return!1;case 235:return tt(O.expression);case 226:return Zt(O);case 224:return O.operator===54&&tt(O.operand);case 221:return tt(O.expression)}return!1}function Wt(O){return PN(O)||(kr(O)||t1(O)||Ou(O))&&Wt(O.expression)||dr(O)&&O.operatorToken.kind===28&&Wt(O.right)||Js(O)&&($p(O.argumentExpression)||Bl(O.argumentExpression))&&Wt(O.expression)||Mc(O)&&Wt(O.left)}function _t(O){return Wt(O)||Ud(O)&&_t(O.expression)}function Je(O){if(O.arguments){for(let Ee of O.arguments)if(_t(Ee))return!0}return!!(O.expression.kind===211&&_t(O.expression.expression))}function pt(O,Ee){return NR(O)&&en(O.expression)&&as(Ee)}function Zt(O){switch(O.operatorToken.kind){case 64:case 76:case 77:case 78:return _t(O.left);case 35:case 36:case 37:case 38:return en(O.left)||en(O.right)||pt(O.right,O.left)||pt(O.left,O.right)||aN(O.right)&&tt(O.left)||aN(O.left)&&tt(O.right);case 104:return en(O.left);case 103:return tt(O.right);case 28:return tt(O.right)}return!1}function en(O){switch(O.kind){case 217:return en(O.expression);case 226:switch(O.operatorToken.kind){case 64:return en(O.left);case 28:return en(O.right)}}return _t(O)}function Dn(){return p1({flags:4,antecedents:void 0})}function Kn(){return p1({flags:8,antecedents:void 0})}function pn(O,Ee,nt){return p1({flags:1024,target:O,antecedents:Ee,antecedent:nt})}function Xt(O){O.flags|=O.flags&2048?4096:2048}function Kt(O,Ee){!(Ee.flags&1)&&!Bo(O.antecedents,Ee)&&((O.antecedents||(O.antecedents=[])).push(Ee),Xt(Ee))}function hi(O,Ee,nt){return Ee.flags&1?Ee:nt?(nt.kind===112&&O&64||nt.kind===97&&O&32)&&!aF(nt)&&!TV(nt.parent)?ge:tt(nt)?(Xt(Ee),p1({flags:O,antecedent:Ee,node:nt})):Ee:O&32?Ee:ge}function uo(O,Ee,nt,Gt){return Xt(O),p1({flags:128,antecedent:O,switchStatement:Ee,clauseStart:nt,clauseEnd:Gt})}function Li(O,Ee,nt){Xt(Ee);let Gt=p1({flags:O,antecedent:Ee,node:nt});return D&&Kt(D,Gt),Gt}function So(O,Ee){return Xt(O),p1({flags:512,antecedent:O,node:Ee})}function Qn(O){let Ee=O.antecedents;return Ee?Ee.length===1?Ee[0]:O:ge}function Ur(O){let Ee=O.parent;switch(Ee.kind){case 245:case 247:case 246:return Ee.expression===O;case 248:case 227:return Ee.condition===O}return!1}function Er(O){for(;;)if(O.kind===217)O=O.expression;else if(O.kind===224&&O.operator===54)O=O.operand;else return Z2(O)}function on(O){return jj(fs(O))}function Ye(O){for(;Ou(O.parent)||qv(O.parent)&&O.parent.operator===54;)O=O.parent;return!Ur(O)&&!Er(O.parent)&&!(Ud(O.parent)&&O.parent.expression===O)}function Ot(O,Ee,nt,Gt){let Zn=A,ii=N;A=nt,N=Gt,O(Ee),A=Zn,N=ii}function In(O,Ee,nt){Ot(Pe,O,Ee,nt),(!O||!on(O)&&!Er(O)&&!(Ud(O)&&tN(O)))&&(Kt(Ee,hi(32,m,O)),Kt(nt,hi(64,m,O)))}function si(O,Ee,nt){let Gt=y,Zn=E;y=Ee,E=nt,Pe(O),y=Gt,E=Zn}function yi(O,Ee){let nt=j;for(;nt&&O.parent.kind===256;)nt.continueTarget=Ee,nt=nt.next,O=O.parent;return Ee}function $i(O){let Ee=yi(O,Kn()),nt=Dn(),Gt=Dn();Kt(Ee,m),m=Ee,In(O.expression,nt,Gt),m=Qn(nt),si(O.statement,Gt,Ee),Kt(Ee,m),m=Qn(Gt)}function Io(O){let Ee=Kn(),nt=yi(O,Dn()),Gt=Dn();Kt(Ee,m),m=Ee,si(O.statement,Gt,nt),Kt(nt,m),m=Qn(nt),In(O.expression,Ee,Gt),m=Qn(Gt)}function ua(O){let Ee=yi(O,Kn()),nt=Dn(),Gt=Dn();Pe(O.initializer),Kt(Ee,m),m=Ee,In(O.condition,nt,Gt),m=Qn(nt),si(O.statement,Gt,Ee),Pe(O.incrementor),Kt(Ee,m),m=Qn(Gt)}function Ba(O){let Ee=yi(O,Kn()),nt=Dn();Pe(O.expression),Kt(Ee,m),m=Ee,O.kind===250&&Pe(O.awaitModifier),Kt(nt,m),Pe(O.initializer),O.initializer.kind!==261&&ut(O.initializer),si(O.statement,nt,Ee),Kt(Ee,m),m=Qn(nt)}function vn(O){let Ee=Dn(),nt=Dn(),Gt=Dn();In(O.expression,Ee,nt),m=Qn(Ee),Pe(O.thenStatement),Kt(Gt,m),m=Qn(nt),Pe(O.elseStatement),Kt(Gt,m),m=Qn(Gt)}function kn(O){Pe(O.expression),O.kind===253&&(K=!0,S&&Kt(S,m)),m=ge}function Be(O){for(let Ee=j;Ee;Ee=Ee.next)if(Ee.name===O)return Ee}function ct(O,Ee,nt){let Gt=O.kind===252?Ee:nt;Gt&&(Kt(Gt,m),m=ge)}function lt(O){if(Pe(O.label),O.label){let Ee=Be(O.label.escapedText);Ee&&(Ee.referenced=!0,ct(O,Ee.breakTarget,Ee.continueTarget))}else ct(O,y,E)}function Rt(O){let Ee=S,nt=D,Gt=Dn(),Zn=Dn(),ii=Dn();if(O.finallyBlock&&(S=Zn),Kt(ii,m),D=ii,Pe(O.tryBlock),Kt(Gt,m),O.catchClause&&(m=Qn(ii),ii=Dn(),Kt(ii,m),D=ii,Pe(O.catchClause),Kt(Gt,m)),S=Ee,D=nt,O.finallyBlock){let Xr=Dn();Xr.antecedents=Eo(Eo(Gt.antecedents,ii.antecedents),Zn.antecedents),m=Xr,Pe(O.finallyBlock),m.flags&1?m=ge:(S&&Zn.antecedents&&Kt(S,pn(Xr,Zn.antecedents,m)),D&&ii.antecedents&&Kt(D,pn(Xr,ii.antecedents,m)),m=Gt.antecedents?pn(Xr,Gt.antecedents,m):ge)}else m=Qn(Gt)}function ae(O){let Ee=Dn();Pe(O.expression);let nt=y,Gt=w;y=Ee,w=m,Pe(O.caseBlock),Kt(Ee,m);let Zn=gn(O.caseBlock.clauses,ii=>ii.kind===297);O.possiblyExhaustive=!Zn&&!Ee.antecedents,Zn||Kt(Ee,uo(w,O,0,0)),y=nt,w=Gt,m=Qn(Ee)}function ke(O){let Ee=O.clauses,nt=O.parent.expression.kind===112||tt(O.parent.expression),Gt=ge;for(let Zn=0;ZnXl(nt)||Ll(nt))}function Kr(O){O.flags&33554432&&!Ri(O)?O.flags|=128:O.flags&=-129}function xo(O){if(Kr(O),Md(O))if($r(O,32)&&Rs(O,f.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),XV(O))xn(O);else{let Ee;if(O.name.kind===11){let{text:Gt}=O.name;Ee=vR(Gt),Ee===void 0&&Rs(O.name,f.Pattern_0_can_have_at_most_one_Asterisk_character,Gt)}let nt=Fr(O,512,110735);e.patternAmbientModules=Tn(e.patternAmbientModules,Ee&&!No(Ee)?{pattern:Ee,symbol:nt}:void 0)}else{let Ee=xn(O);if(Ee!==0){let{symbol:nt}=O;nt.constEnumOnlyModule=!(nt.flags&304)&&Ee===2&&nt.constEnumOnlyModule!==!1}}}function xn(O){let Ee=Vg(O),nt=Ee!==0;return Fr(O,nt?512:1024,nt?110735:0),Ee}function Ls(O){let Ee=fe(131072,he(O));ne(Ee,O,131072);let nt=fe(2048,"__type");ne(nt,O,2048),nt.members=aa(),nt.members.set(Ee.escapedName,Ee)}function $l(O){return Ws(O,4096,"__object")}function Mo(O){return Ws(O,4096,"__jsxAttributes")}function ss(O,Ee,nt){return Fr(O,Ee,nt)}function Ws(O,Ee,nt){let Gt=fe(Ee,nt);return Ee&106508&&(Gt.parent=o.symbol),ne(Gt,O,Ee),Gt}function ml(O,Ee,nt){switch(l.kind){case 267:ve(O,Ee,nt);break;case 312:if(wp(o)){ve(O,Ee,nt);break}default:x.assertNode(l,lh),l.locals||(l.locals=aa(),er(l)),Ge(l.locals,void 0,O,Ee,nt)}}function cd(){if(!p)return;let O=o,Ee=d,nt=l,Gt=i,Zn=m;for(let ii of p){let Xr=ii.parent.parent;o=nj(Xr)||e,l=uh(Xr)||e,m=p1({flags:2}),i=ii,Pe(ii.typeExpression);let no=Po(ii);if((zk(ii)||!ii.fullName)&&no&&ek(no.parent)){let La=Zl(no.parent);if(La){_l(e.symbol,no.parent,La,!!Fn(no,wl=>kr(wl)&&wl.name.escapedText==="prototype"),!1);let ka=o;switch(L2(no.parent)){case 1:case 2:wp(e)?o=e:o=void 0;break;case 4:o=no.parent.expression;break;case 3:o=no.parent.expression.name;break;case 5:o=Z0(e,no.parent.expression)?e:kr(no.parent.expression)?no.parent.expression.name:no.parent.expression;break;case 0:return x.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}o&&ve(ii,524288,788968),o=ka}}else zk(ii)||!ii.fullName||ii.fullName.kind===80?(i=ii.parent,ml(ii,524288,788968)):Pe(ii.fullName)}o=O,d=Ee,l=nt,i=Gt,m=Zn}function mo(O){if(!e.parseDiagnostics.length&&!(O.flags&33554432)&&!(O.flags&16777216)&&!vie(O)){let Ee=eE(O);if(Ee===void 0)return;B&&Ee>=119&&Ee<=127?e.bindDiagnostics.push(re(O,la(O),Ts(O))):Ee===135?oc(e)&&FF(O)?e.bindDiagnostics.push(re(O,f.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,Ts(O))):O.flags&65536&&e.bindDiagnostics.push(re(O,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Ts(O))):Ee===127&&O.flags&16384&&e.bindDiagnostics.push(re(O,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Ts(O)))}}function la(O){return ad(O)?f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:f.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function dd(O){O.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(re(O,f.constructor_is_a_reserved_word,Ts(O))))}function bs(O){B&&Yu(O.left)&&Ly(O.operatorToken.kind)&&ac(O,O.left)}function Ca(O){B&&O.variableDeclaration&&ac(O,O.variableDeclaration.name)}function ul(O){if(B&&O.expression.kind===80){let Ee=fT(e,O.expression);e.bindDiagnostics.push(Qc(e,Ee.start,Ee.length,f.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Nf(O){return Fe(O)&&(O.escapedText==="eval"||O.escapedText==="arguments")}function ac(O,Ee){if(Ee&&Ee.kind===80){let nt=Ee;if(Nf(nt)){let Gt=fT(e,Ee);e.bindDiagnostics.push(Qc(e,Gt.start,Gt.length,xl(O),gr(nt)))}}}function xl(O){return ad(O)?f.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:e.externalModuleIndicator?f.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:f.Invalid_use_of_0_in_strict_mode}function al(O){B&&ac(O,O.name)}function Lo(O){return ad(O)?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function tn(O){if(r<2&&l.kind!==312&&l.kind!==267&&!Wx(l)){let Ee=fT(e,O);e.bindDiagnostics.push(Qc(e,Ee.start,Ee.length,Lo(O)))}}function Fs(O){B&&ac(O,O.operand)}function nd(O){B&&(O.operator===46||O.operator===47)&&ac(O,O.operand)}function ud(O){B&&Rs(O,f.with_statements_are_not_allowed_in_strict_mode)}function Ep(O){B&&ns(t)>=2&&(Sre(O.statement)||Ml(O.statement))&&Rs(O.label,f.A_label_is_not_allowed_here)}function Rs(O,Ee,...nt){let Gt=ph(e,O.pos);e.bindDiagnostics.push(Qc(e,Gt.start,Gt.length,Ee,...nt))}function Ac(O,Ee,nt){de(O,Ee,Ee,nt)}function de(O,Ee,nt,Gt){$(O,{pos:oE(Ee,e),end:nt.end},Gt)}function $(O,Ee,nt){let Gt=Qc(e,Ee.pos,Ee.end-Ee.pos,nt);O?e.bindDiagnostics.push(Gt):e.bindSuggestionDiagnostics=Tn(e.bindSuggestionDiagnostics,{...Gt,category:2})}function Pe(O){if(!O)return;ja(O,i),rr&&(O.tracingPath=e.path);let Ee=B;if(pr(O),O.kind>165){let nt=i;i=O;let Gt=mK(O);Gt===0?ze(O):De(O,Gt),i=nt}else{let nt=i;O.kind===1&&(i=O),yt(O),i=nt}B=Ee}function yt(O){if(kp(O))if(ir(O))for(let Ee of O.jsDoc)Pe(Ee);else for(let Ee of O.jsDoc)ja(Ee,O),Bv(Ee,!1)}function cn(O){if(!B)for(let Ee of O){if(!vm(Ee))return;if(yr(Ee)){B=!0;return}}}function yr(O){let Ee=S0(e,O.expression);return Ee==='"use strict"'||Ee==="'use strict'"}function pr(O){switch(O.kind){case 80:if(O.flags&4096){let Xr=O.parent;for(;Xr&&!qf(Xr);)Xr=Xr.parent;ml(Xr,524288,788968);break}case 110:return m&&(ht(O)||i.kind===304)&&(O.flowNode=m),mo(O);case 166:m&&jF(O)&&(O.flowNode=m);break;case 236:case 108:O.flowNode=m;break;case 81:return dd(O);case 211:case 212:let Ee=O;m&&Wt(Ee)&&(Ee.flowNode=m),pie(Ee)&&Un(Ee),ir(Ee)&&e.commonJsModuleIndicator&&Yh(Ee)&&!I3(l,"module")&&Ge(e.locals,void 0,Ee.expression,134217729,111550);break;case 226:switch(zl(O)){case 1:tp(O);break;case 2:Oc(O);break;case 3:Zo(O.left,O);break;case 6:yo(O);break;case 4:fu(O);break;case 5:let Xr=O.left.expression;if(ir(O)&&Fe(Xr)){let no=I3(l,Xr.escapedText);if(zF(no?.valueDeclaration)){fu(O);break}}gc(O);break;case 0:break;default:x.fail("Unknown binary expression special property assignment kind")}return bs(O);case 299:return Ca(O);case 220:return ul(O);case 225:return Fs(O);case 224:return nd(O);case 254:return ud(O);case 256:return Ep(O);case 197:h=!0;return;case 182:break;case 168:return rt(O);case 169:return Kg(O);case 260:return Fd(O);case 208:return O.flowNode=m,Fd(O);case 172:case 171:return zr(O);case 303:case 304:return zu(O,4,0);case 306:return zu(O,8,900095);case 179:case 180:case 181:return Fr(O,131072,0);case 174:case 173:return zu(O,8192|(O.questionToken?16777216:0),bm(O)?0:103359);case 262:return Sp(O);case 176:return Fr(O,16384,0);case 177:return zu(O,32768,46015);case 178:return zu(O,65536,78783);case 184:case 324:case 330:case 185:return Ls(O);case 187:case 329:case 200:return Di(O);case 339:return It(O);case 210:return $l(O);case 218:case 219:return lg(O);case 213:switch(zl(O)){case 7:return Ql(O);case 8:return Kc(O);case 9:return Xo(O);case 0:break;default:return x.fail("Unknown call expression assignment declaration kind")}ir(O)&&z_(O);break;case 231:case 263:return B=!0,Ah(O);case 264:return ml(O,64,788872);case 265:return ml(O,524288,788968);case 266:return Hg(O);case 267:return xo(O);case 292:return Mo(O);case 291:return ss(O,4,0);case 271:case 274:case 276:case 281:return Fr(O,2097152,2097152);case 270:return Hc(O);case 273:return hc(O);case 278:return zs(O);case 277:return bl(O);case 312:return cn(O.statements),Cr();case 241:if(!Wx(O.parent))return;case 268:return cn(O.statements);case 348:if(O.parent.kind===330)return Kg(O);if(O.parent.kind!==329)break;case 355:let Zn=O,ii=Zn.isBracketed||Zn.typeExpression&&Zn.typeExpression.type.kind===323?16777220:4;return Fr(Zn,ii,0);case 353:case 345:case 347:return(p||(p=[])).push(O);case 346:return Pe(O.typeExpression)}}function zr(O){let Ee=Mu(O),nt=Ee?98304:4,Gt=Ee?13247:0;return zu(O,nt|(O.questionToken?16777216:0),Gt)}function Di(O){return Ws(O,2048,"__type")}function Cr(){if(Kr(e),oc(e))qo();else if(Jf(e)){qo();let O=e.symbol;Ge(e.symbol.exports,e.symbol,e,4,-1),e.symbol=O}}function qo(){Ws(e,512,`"${Eu(e.fileName)}"`)}function bl(O){if(!o.symbol||!o.symbol.exports)Ws(O,111551,he(O));else{let Ee=oR(O)?2097152:4,nt=Ge(o.symbol.exports,o.symbol,O,Ee,-1);O.isExportEquals&&w2(nt,O)}}function Hc(O){gt(O.modifiers)&&e.bindDiagnostics.push(re(O,f.Modifiers_cannot_appear_here));let Ee=Yi(O.parent)?oc(O.parent)?O.parent.isDeclarationFile?void 0:f.Global_module_exports_may_only_appear_in_declaration_files:f.Global_module_exports_may_only_appear_in_module_files:f.Global_module_exports_may_only_appear_at_top_level;Ee?e.bindDiagnostics.push(re(O,Ee)):(e.symbol.globalExports=e.symbol.globalExports||aa(),Ge(e.symbol.globalExports,e.symbol,O,2097152,2097152))}function zs(O){!o.symbol||!o.symbol.exports?Ws(O,8388608,he(O)):O.exportClause?yh(O.exportClause)&&(ja(O.exportClause,O),Ge(o.symbol.exports,o.symbol,O.exportClause,2097152,2097152)):Ge(o.symbol.exports,o.symbol,O,8388608,0)}function hc(O){O.name&&Fr(O,2097152,2097152)}function ys(O){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=O,e.externalModuleIndicator||qo()),!0)}function Kc(O){if(!ys(O))return;let Ee=Pf(O.arguments[0],void 0,(nt,Gt)=>(Gt&&ne(Gt,nt,67110400),Gt));Ee&&Ge(Ee.exports,Ee,O,1048580,0)}function tp(O){if(!ys(O))return;let Ee=Pf(O.left.expression,void 0,(nt,Gt)=>(Gt&&ne(Gt,nt,67110400),Gt));if(Ee){let Gt=U2(O.right)&&(hT(O.left.expression)||Yh(O.left.expression))?2097152:1048580;ja(O.left,O),Ge(Ee.exports,Ee,O.left,Gt,0)}}function Oc(O){if(!ys(O))return;let Ee=N2(O.right);if(Jj(Ee)||o===e&&Z0(e,Ee))return;if(Ma(Ee)&&oo(Ee.properties,Zu)){gn(Ee.properties,im);return}let nt=oR(O)?2097152:1049092,Gt=Ge(e.symbol.exports,e.symbol,O,nt|67108864,0);w2(Gt,O)}function im(O){Ge(e.symbol.exports,e.symbol,O,69206016,0)}function fu(O){if(x.assert(ir(O)),dr(O)&&kr(O.left)&&Ki(O.left.name)||kr(O)&&Ki(O.name))return;let nt=Lu(O,!1,!1);switch(nt.kind){case 262:case 218:let Gt=nt.symbol;if(dr(nt.parent)&&nt.parent.operatorToken.kind===64){let Xr=nt.parent.left;D0(Xr)&&Fv(Xr.expression)&&(Gt=xu(Xr.expression.expression,s))}Gt&&Gt.valueDeclaration&&(Gt.members=Gt.members||aa(),Ov(O)?Re(O,Gt,Gt.members):Ge(Gt.members,Gt,O,67108868,0),ne(Gt,Gt.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:let Zn=nt.parent,ii=ra(nt)?Zn.symbol.exports:Zn.symbol.members;Ov(O)?Re(O,Zn.symbol,ii):Ge(ii,Zn.symbol,O,67108868,0,!0);break;case 312:if(Ov(O))break;nt.commonJsModuleIndicator?Ge(nt.symbol.exports,nt.symbol,O,1048580,0):Fr(O,1,111550);break;case 267:break;default:x.failBadSyntaxKind(nt)}}function Re(O,Ee,nt){Ge(nt,Ee,O,4,0,!0,!0),Lt(O,Ee)}function Lt(O,Ee){Ee&&(Ee.assignmentDeclarationMembers||(Ee.assignmentDeclarationMembers=new Map)).set(rs(O),O)}function Un(O){O.expression.kind===110?fu(O):D0(O)&&O.parent.parent.kind===312&&(Fv(O.expression)?Zo(O,O.parent):sl(O))}function yo(O){ja(O.left,O),ja(O.right,O),Jc(O.left.expression,O.left,!1,!0)}function Xo(O){let Ee=xu(O.arguments[0].expression);Ee&&Ee.valueDeclaration&&ne(Ee,Ee.valueDeclaration,32),Gl(O,Ee,!0)}function Zo(O,Ee){let nt=O.expression,Gt=nt.expression;ja(Gt,nt),ja(nt,O),ja(O,Ee),Jc(Gt,O,!0,!0)}function Ql(O){let Ee=xu(O.arguments[0]),nt=O.parent.parent.kind===312;Ee=_l(Ee,O.arguments[0],nt,!1,!1),Gl(O,Ee,!1)}function gc(O){var Ee;let nt=xu(O.left.expression,l)||xu(O.left.expression,o);if(!ir(O)&&!fie(nt))return;let Gt=hR(O.left);if(!(Fe(Gt)&&((Ee=I3(o,Gt.escapedText))==null?void 0:Ee.flags)&2097152))if(ja(O.left,O),ja(O.right,O),Fe(O.left.expression)&&o===e&&Z0(e,O.left.expression))tp(O);else if(Ov(O)){Ws(O,67108868,"__computed");let Zn=_l(nt,O.left.expression,Zl(O.left),!1,!1);Lt(O,Zn)}else sl(na(O.left,yT))}function sl(O){x.assert(!Fe(O)),ja(O.expression,O),Jc(O.expression,O,!1,!1)}function _l(O,Ee,nt,Gt,Zn){return O?.flags&2097152||(nt&&!Gt&&(O=Pf(Ee,O,(no,La,ka)=>{if(La)return ne(La,no,67110400),La;{let wl=ka?ka.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=aa());return Ge(wl,ka,no,67110400,110735)}})),Zn&&O&&O.valueDeclaration&&ne(O,O.valueDeclaration,32)),O}function Gl(O,Ee,nt){if(!Ee||!lf(Ee))return;let Gt=nt?Ee.members||(Ee.members=aa()):Ee.exports||(Ee.exports=aa()),Zn=0,ii=0;ws(AI(O))?(Zn=8192,ii=103359):ia(O)&&gT(O)&&(gt(O.arguments[2].properties,Xr=>{let no=Po(Xr);return!!no&&Fe(no)&&gr(no)==="set"})&&(Zn|=65540,ii|=78783),gt(O.arguments[2].properties,Xr=>{let no=Po(Xr);return!!no&&Fe(no)&&gr(no)==="get"})&&(Zn|=32772,ii|=46015)),Zn===0&&(Zn=4,ii=0),Ge(Gt,Ee,O,Zn|67108864,ii&-67108865)}function Zl(O){return dr(O.parent)?Fu(O.parent).parent.kind===312:O.parent.parent.kind===312}function Jc(O,Ee,nt,Gt){let Zn=xu(O,l)||xu(O,o),ii=Zl(Ee);Zn=_l(Zn,Ee.expression,ii,nt,Gt),Gl(Ee,Zn,nt)}function lf(O){if(O.flags&1072)return!0;let Ee=O.valueDeclaration;if(Ee&&ia(Ee))return!!AI(Ee);let nt=Ee?wi(Ee)?Ee.initializer:dr(Ee)?Ee.right:kr(Ee)&&dr(Ee.parent)?Ee.parent.right:void 0:void 0;if(nt=nt&&N2(nt),nt){let Gt=Fv(wi(Ee)?Ee.name:dr(Ee)?Ee.left:Ee);return!!sE(dr(nt)&&(nt.operatorToken.kind===57||nt.operatorToken.kind===61)?nt.right:nt,Gt)}return!1}function Fu(O){for(;dr(O.parent);)O=O.parent;return O.parent}function xu(O,Ee=o){if(Fe(O))return I3(Ee,O.escapedText);{let nt=xu(O.expression);return nt&&nt.exports&&nt.exports.get(Lg(O))}}function Pf(O,Ee,nt){if(Z0(e,O))return e.symbol;if(Fe(O))return nt(O,xu(O),Ee);{let Gt=Pf(O.expression,Ee,nt),Zn=M2(O);return Ki(Zn)&&x.fail("unexpected PrivateIdentifier"),nt(Zn,Gt&&Gt.exports&&Gt.exports.get(Lg(O)),Gt)}}function z_(O){!e.commonJsModuleIndicator&&bu(O,!1)&&ys(O)}function Ah(O){if(O.kind===263)ml(O,32,899503);else{let Zn=O.name?O.name.escapedText:"__class";Ws(O,32,Zn),O.name&&me.add(O.name.escapedText)}let{symbol:Ee}=O,nt=fe(4194308,"prototype"),Gt=Ee.exports.get(nt.escapedName);Gt&&(O.name&&ja(O.name,O),e.bindDiagnostics.push(re(Gt.declarations[0],f.Duplicate_identifier_0,vl(nt)))),Ee.exports.set(nt.escapedName,nt),nt.parent=Ee}function Hg(O){return A0(O)?ml(O,128,899967):ml(O,256,899327)}function Fd(O){if(B&&ac(O,O.name),!Qo(O.name)){let Ee=O.kind===260?O:O.parent.parent;ir(O)&&R0(Ee)&&!tE(O)&&!(Zb(O)&32)?Fr(O,2097152,2097152):KV(O)?ml(O,2,111551):P0(O)?Fr(O,1,111551):Fr(O,1,111550)}}function Kg(O){if(!(O.kind===348&&o.kind!==330)&&(B&&!(O.flags&33554432)&&ac(O,O.name),Qo(O.name)?Ws(O,1,"__"+O.parent.parameters.indexOf(O)):Fr(O,1,111551),dp(O,O.parent))){let Ee=O.parent.parent;Ge(Ee.symbol.members,Ee.symbol,O,4|(O.questionToken?16777216:0),0)}}function Sp(O){!e.isDeclarationFile&&!(O.flags&33554432)&&SN(O)&&(Y|=4096),al(O),B?(tn(O),ml(O,16,110991)):Fr(O,16,110991)}function lg(O){!e.isDeclarationFile&&!(O.flags&33554432)&&SN(O)&&(Y|=4096),m&&(O.flowNode=m),al(O);let Ee=O.name?O.name.escapedText:"__function";return Ws(O,16,Ee)}function zu(O,Ee,nt){return!e.isDeclarationFile&&!(O.flags&33554432)&&SN(O)&&(Y|=4096),m&&kF(O)&&(O.flowNode=m),Ov(O)?Ws(O,Ee,"__computed"):Fr(O,Ee,nt)}function Q(O){let Ee=Fn(O,nt=>nt.parent&&ZI(nt.parent)&&nt.parent.extendsType===nt);return Ee&&Ee.parent}function rt(O){if(nm(O.parent)){let Ee=QF(O.parent);Ee?(x.assertNode(Ee,lh),Ee.locals??(Ee.locals=aa()),Ge(Ee.locals,void 0,O,262144,526824)):Fr(O,262144,526824)}else if(O.parent.kind===195){let Ee=Q(O.parent);Ee?(x.assertNode(Ee,lh),Ee.locals??(Ee.locals=aa()),Ge(Ee.locals,void 0,O,262144,526824)):Ws(O,262144,he(O))}else Fr(O,262144,526824)}function wt(O){let Ee=Vg(O);return Ee===1||Ee===2&&B0(t)}function zt(O){if(!(m.flags&1))return!1;if(m===ge&&(l2(O)&&O.kind!==242||O.kind===263||O.kind===267&&wt(O))&&(m=q,!t.allowUnreachableCode)){let nt=coe(t)&&!(O.flags&33554432)&&(!Ml(O)||!!(Ry(O.declarationList)&7)||O.declarationList.declarations.some(Gt=>!!Gt.initializer));bGe(O,(Gt,Zn)=>de(nt,Gt,Zn,f.Unreachable_code_detected))}return!0}}function bGe(e,t){if(Hi(e)&&iIe(e)&&Ko(e.parent)){let{statements:r}=e.parent,i=dU(r,e);LG(i,iIe,(o,s)=>t(i[o],i[s-1]))}else t(e,e)}function iIe(e){return!Ec(e)&&!EGe(e)&&!hE(e)&&!(Ml(e)&&!(Ry(e)&7)&&e.declarationList.declarations.some(t=>!t.initializer))}function EGe(e){switch(e.kind){case 264:case 265:return!0;case 267:return Vg(e)!==1;case 266:return $r(e,4096);default:return!1}}function Z0(e,t){let r=0,i=AL();for(i.enqueue(t);!i.isEmpty()&&r<100;){if(r++,t=i.dequeue(),hT(t)||Yh(t))return!0;if(Fe(t)){let o=I3(e,t.escapedText);if(o&&o.valueDeclaration&&wi(o.valueDeclaration)&&o.valueDeclaration.initializer){let s=o.valueDeclaration.initializer;i.enqueue(s),Mc(s,!0)&&(i.enqueue(s.left),i.enqueue(s.right))}}}return!1}function mK(e){switch(e.kind){case 231:case 263:case 266:case 210:case 187:case 329:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 312:return 37;case 177:case 178:case 174:if(kF(e))return 173;case 176:case 262:case 173:case 179:case 330:case 324:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return e.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return $o(e.parent)||Al(e.parent)?0:34}return 0}function I3(e,t){var r,i,o,s;let l=(i=(r=ri(e,lh))==null?void 0:r.locals)==null?void 0:i.get(t);if(l)return l.exportSymbol??l;if(Yi(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(b_(e))return(s=(o=e.symbol)==null?void 0:o.exports)==null?void 0:s.get(t)}var _K,hK,oIe,SGe=bt({"src/compiler/binder.ts"(){"use strict";ea(),nT(),_K=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(_K||{}),hK=(e=>(e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor",e))(hK||{}),oIe=vGe()}});function Mse(e,t,r,i,o,s,l,d,p,h){return m;function m(y=()=>!0){let E=[],S=[];return{walkType:me=>{try{return A(me),{visitedTypes:cI(E),visitedSymbols:cI(S)}}finally{Gh(E),Gh(S)}},walkSymbol:me=>{try{return Z(me),{visitedTypes:cI(E),visitedSymbols:cI(S)}}finally{Gh(E),Gh(S)}}};function A(me){if(!(!me||E[me.id]||(E[me.id]=me,Z(me.symbol)))){if(me.flags&524288){let q=me,J=q.objectFlags;J&4&&N(me),J&32&&Y(me),J&3&&ce(me),J&24&&z(q)}me.flags&262144&&D(me),me.flags&3145728&&w(me),me.flags&4194304&&j(me),me.flags&8388608&&K(me)}}function N(me){A(me.target),gn(h(me),A)}function D(me){A(d(me))}function w(me){gn(me.types,A)}function j(me){A(me.type)}function K(me){A(me.objectType),A(me.indexType),A(me.constraint)}function Y(me){A(me.typeParameter),A(me.constraintType),A(me.templateType),A(me.modifiersType)}function B(me){let ge=t(me);ge&&A(ge.type),gn(me.typeParameters,A);for(let q of me.parameters)Z(q);A(e(me)),A(r(me))}function ce(me){z(me),gn(me.typeParameters,A),gn(i(me),A),A(me.thisType)}function z(me){let ge=o(me);for(let q of ge.indexInfos)A(q.keyType),A(q.type);for(let q of ge.callSignatures)B(q);for(let q of ge.constructSignatures)B(q);for(let q of ge.properties)Z(q)}function Z(me){if(!me)return!1;let ge=ba(me);if(S[ge])return!1;if(S[ge]=me,!y(me))return!0;let q=s(me);return A(q),me.exports&&me.exports.forEach(Z),gn(me.declarations,J=>{if(J.type&&J.type.kind===186){let re=J.type,pe=l(p(re.exprName));Z(pe)}}),!1}}}var TGe=bt({"src/compiler/symbolWalker.ts"(){"use strict";ea()}});function gw({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},r,i,o){let s=l();return{relativePreference:o!==void 0?Yc(o)?0:1:e==="relative"?0:e==="non-relative"?1:e==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:d=>{let p=d!==i.impliedNodeFormat?l(d):s;if((d??i.impliedNodeFormat)===99)return XR(r,i.fileName)?[3,2]:[2];if(du(r)===1)return p===2?[2,1]:[1,2];let h=XR(r,i.fileName);switch(p){case 2:return h?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return h?[1,0,3,2]:[1,0,2];case 0:return h?[0,1,3,2]:[0,1,2];default:x.assertNever(p)}}};function l(d){if(o!==void 0){if(O0(o))return 2;if(El(o,"/index"))return 1}return yoe(t,d??i.impliedNodeFormat,r,i)}}function AGe(e,t,r,i,o,s,l={}){let d=aIe(e,t,r,i,o,gw({},e,t,s),{},l);if(d!==s)return d}function x3(e,t,r,i,o,s={}){return aIe(e,t,r,i,o,gw({},e,t),{},s)}function IGe(e,t,r,i,o,s={}){let l=gK(t.fileName,i),d=fIe(l,r,i,o,s);return Wl(d,p=>kse(p,l,t,i,e,o,!0,s.overrideImportMode))}function aIe(e,t,r,i,o,s,l,d={}){let p=gK(r,o),h=fIe(p,i,o,l,d);return Wl(h,m=>kse(m,p,t,o,e,l,void 0,d.overrideImportMode))||dIe(i,p,e,o,d.overrideImportMode||t.impliedNodeFormat,s)}function xGe(e,t,r,i,o={}){return sIe(e,t,r,i,o)[0]}function sIe(e,t,r,i,o={}){var s;let l=SF(e);if(!l)return Xe;let d=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r),p=d?.get(t.path,l.path,i,o);return[p?.moduleSpecifiers,l,p?.modulePaths,d]}function lIe(e,t,r,i,o,s,l={}){return cIe(e,t,r,i,o,s,l,!1).moduleSpecifiers}function cIe(e,t,r,i,o,s,l={},d){let p=!1,h=CGe(e,t);if(h)return{moduleSpecifiers:[h],computedWithoutCache:p};let[m,y,E,S]=sIe(e,i,o,s,l);if(m)return{moduleSpecifiers:m,computedWithoutCache:p};if(!y)return{moduleSpecifiers:Xe,computedWithoutCache:p};p=!0,E||(E=mIe(gK(i.fileName,o),y.originalFileName,o));let A=RGe(E,r,i,o,s,l,d);return S?.set(i.path,y.path,s,l,E,A),{moduleSpecifiers:A,computedWithoutCache:p}}function RGe(e,t,r,i,o,s={},l){let d=gK(r.fileName,i),p=gw(o,t,r),h=gn(e,N=>gn(i.getFileIncludeReasons().get(tl(N.path,i.getCurrentDirectory(),d.getCanonicalFileName)),D=>{if(D.kind!==3||D.file!==r.path||r.impliedNodeFormat&&r.impliedNodeFormat!==Ule(r,D.index,t))return;let w=kw(r,D.index).text;return p.relativePreference!==1||!Lp(w)?w:void 0}));if(h)return[h];let m=gt(e,N=>N.isInNodeModules),y,E,S,A;for(let N of e){let D=N.isInNodeModules?kse(N,d,r,i,t,o,void 0,s.overrideImportMode):void 0;if(y=Tn(y,D),D&&N.isRedirect)return y;if(!D){let w=dIe(N.path,d,t,i,s.overrideImportMode||r.impliedNodeFormat,p,N.isRedirect);if(!w)continue;N.isRedirect?S=Tn(S,w):sV(w)?TE(w)?A=Tn(A,w):E=Tn(E,w):(l||!m||N.isInNodeModules)&&(A=Tn(A,w))}}return E?.length?E:S?.length?S:y?.length?y:x.checkDefined(A)}function gK(e,t){e=ho(e,t.getCurrentDirectory());let r=Nd(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=oi(e);return{getCanonicalFileName:r,importingSourceFileName:e,sourceDirectory:i,canonicalSourceDirectory:r(i)}}function dIe(e,t,r,i,o,{getAllowedEndingsInPreferredOrder:s,relativePreference:l},d){let{baseUrl:p,paths:h,rootDirs:m}=r;if(d&&!h)return;let{sourceDirectory:y,canonicalSourceDirectory:E,getCanonicalFileName:S}=t,A=s(o),N=m&&MGe(m,e,y,S,A,r)||yw(h0(_m(y,e,S)),A,r);if(!p&&!h&&!Y6(r)||l===0)return d?void 0:N;let D=ho(s6(r,i)||p,i.getCurrentDirectory()),w=yIe(e,D,S);if(!w)return d?void 0:N;let j=d?void 0:PGe(e,y,r,i,o),K=d||j===void 0?h&&_Ie(w,h,A,i,r):void 0;if(d)return K;let Y=j??(K===void 0&&p!==void 0?yw(w,A,r):K);if(!Y)return N;if(l===1&&!Lp(Y))return Y;if(l===3&&!Lp(Y)){let B=r.configFilePath?tl(oi(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),ce=tl(e,B,S),z=ao(E,B),Z=ao(ce,B);if(z&&!Z||!z&&Z)return Y;let me=Lse(i,oi(ce)),ge=Lse(i,y),q=!pR(i);return DGe(me,ge,q)?N:Y}return vIe(Y)||R3(N)e.fileExists(Yr(r,"package.json"))?r:void 0)}function pIe(e,t,r,i,o){var s;let l=My(r),d=r.getCurrentDirectory(),p=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0,h=tl(t,d,l),m=r.redirectTargetsMap.get(h)||Xe,E=[...p?[p]:Xe,t,...m].map(w=>ho(w,d)),S=!oo(E,JN);if(!i){let w=gn(E,j=>!(S&&JN(j))&&o(j,p===j));if(w)return w}let A=(s=r.getSymlinkCache)==null?void 0:s.call(r).getSymlinkedDirectoriesByRealpath(),N=ho(t,d);return A&&hm(oi(N),w=>{let j=A.get(Bc(tl(w,d,l)));if(j)return cV(e,w,l)?!1:gn(E,K=>{if(!cV(K,w,l))return;let Y=_m(w,K,l);for(let B of j){let ce=Av(B,Y),z=o(ce,K===p);if(S=!0,z)return z}})})||(i?gn(E,w=>S&&JN(w)?void 0:o(w,w===p)):void 0)}function fIe(e,t,r,i,o={}){var s;let l=tl(e.importingSourceFileName,r.getCurrentDirectory(),My(r)),d=tl(t,r.getCurrentDirectory(),My(r)),p=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r);if(p){let m=p.get(l,d,i,o);if(m?.modulePaths)return m.modulePaths}let h=mIe(e,t,r);return p&&p.setModulePaths(l,d,i,o,h),h}function mIe(e,t,r){let i=new Map,o=!1;pIe(e.importingSourceFileName,t,r,!0,(l,d)=>{let p=TE(l);i.set(l,{path:e.getCanonicalFileName(l),isRedirect:d,isInNodeModules:p}),o=o||p});let s=[];for(let l=e.canonicalSourceDirectory;i.size!==0;){let d=Bc(l),p;i.forEach(({path:m,isRedirect:y,isInNodeModules:E},S)=>{ao(m,d)&&((p||(p=[])).push({path:S,isRedirect:y,isInNodeModules:E}),i.delete(S))}),p&&(p.length>1&&p.sort(uIe),s.push(...p));let h=oi(l);if(h===l)break;l=h}if(i.size){let l=Wo(i.entries(),([d,{isRedirect:p,isInNodeModules:h}])=>({path:d,isRedirect:p,isInNodeModules:h}));l.length>1&&l.sort(uIe),s.push(...l)}return s}function CGe(e,t){var r;let i=(r=e.declarations)==null?void 0:r.find(l=>qV(l)&&(!T0(l)||!Yc(Xf(l.name))));if(i)return i.name.text;let s=to(e.declarations,l=>{var d,p,h,m;if(!ql(l))return;let y=N(l);if(!((d=y?.parent)!=null&&d.parent&&N_(y.parent)&&Md(y.parent.parent)&&Yi(y.parent.parent.parent)))return;let E=(m=(h=(p=y.parent.parent.symbol.exports)==null?void 0:p.get("export="))==null?void 0:h.valueDeclaration)==null?void 0:m.expression;if(!E)return;let S=t.getSymbolAtLocation(E);if(!S)return;if((S?.flags&2097152?t.getAliasedSymbol(S):S)===l.symbol)return y.parent.parent;function N(D){for(;D.flags&8;)D=D.parent;return D}})[0];if(s)return s.name.text}function _Ie(e,t,r,i,o){for(let l in t)for(let d of t[l]){let p=ma(d),h=p.indexOf("*"),m=r.map(y=>({ending:y,value:yw(e,[y],o)}));if(Wg(p)&&m.push({ending:void 0,value:e}),h!==-1){let y=p.substring(0,h),E=p.substring(h+1);for(let{ending:S,value:A}of m)if(A.length>=y.length+E.length&&ao(A,y)&&El(A,E)&&s({ending:S,value:A})){let N=A.substring(y.length,A.length-E.length);if(!Lp(N))return zI(l,N)}}else if(gt(m,y=>y.ending!==0&&p===y.value)||gt(m,y=>y.ending===0&&p===y.value&&s(y)))return l}function s({ending:l,value:d}){return l!==0||d===yw(e,[l],o,i)}}function D3(e,t,r,i,o,s,l,d,p){if(typeof s=="string"){let h=!pR(t),m=()=>t.getCommonSourceDirectory(),y=p&&JK(r,e,h,m),E=p&&KK(r,e,h,m),S=ho(Yr(i,s),void 0),A=WI(r)?Eu(r)+Ose(r,e):void 0;switch(d){case 0:if(A&&Rg(A,S,h)===0||Rg(r,S,h)===0||y&&Rg(y,S,h)===0||E&&Rg(E,S,h)===0)return{moduleFileToTry:o};break;case 1:if(A&&mm(S,A,h)){let j=_m(S,A,!1);return{moduleFileToTry:ho(Yr(Yr(o,s),j),void 0)}}if(mm(S,r,h)){let j=_m(S,r,!1);return{moduleFileToTry:ho(Yr(Yr(o,s),j),void 0)}}if(y&&mm(S,y,h)){let j=_m(S,y,!1);return{moduleFileToTry:Yr(o,j)}}if(E&&mm(S,E,h)){let j=_m(S,E,!1);return{moduleFileToTry:Yr(o,j)}}break;case 2:let N=S.indexOf("*"),D=S.slice(0,N),w=S.slice(N+1);if(A&&ao(A,D,h)&&El(A,w,h)){let j=A.slice(D.length,A.length-w.length);return{moduleFileToTry:zI(o,j)}}if(ao(r,D,h)&&El(r,w,h)){let j=r.slice(D.length,r.length-w.length);return{moduleFileToTry:zI(o,j)}}if(y&&ao(y,D,h)&&El(y,w,h)){let j=y.slice(D.length,y.length-w.length);return{moduleFileToTry:zI(o,j)}}if(E&&ao(E,D,h)&&El(E,w,h)){let j=E.slice(D.length,E.length-w.length);return{moduleFileToTry:zI(o,j)}}break}}else{if(Array.isArray(s))return gn(s,h=>D3(e,t,r,i,o,h,l,d,p));if(typeof s=="object"&&s!==null){for(let h of Vh(s))if(h==="default"||l.indexOf(h)>=0||_w(l,h)){let m=s[h],y=D3(e,t,r,i,o,m,l,d,p);if(y)return y}}}}function NGe(e,t,r,i,o,s,l){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&T3(s)?gn(Vh(s),d=>{let p=ho(Yr(o,d),void 0),h=El(d,"/")?1:d.includes("*")?2:0;return D3(e,t,r,i,p,s[d],l,h,!1)}):D3(e,t,r,i,o,s,l,0,!1)}function PGe(e,t,r,i,o){var s,l,d;if(!i.readFile||!Y6(r))return;let p=Lse(i,t);if(!p)return;let h=Yr(p,"package.json"),m=(l=(s=i.getPackageJsonInfoCache)==null?void 0:s.call(i))==null?void 0:l.getPackageJsonInfo(h);if(yse(m)||!i.fileExists(h))return;let y=m?.contents.packageJsonContent||h6(i.readFile(h)),E=y?.imports;if(!E)return;let S=$v(r,o);return(d=gn(Vh(E),A=>{if(!ao(A,"#")||A==="#"||ao(A,"#/"))return;let N=El(A,"/")?1:A.includes("*")?2:0;return D3(r,i,e,p,A,E[A],S,N,!0)}))==null?void 0:d.moduleFileToTry}function MGe(e,t,r,i,o,s){let l=hIe(t,e,i);if(l===void 0)return;let d=hIe(r,e,i),p=va(d,m=>mn(l,y=>h0(_m(m,y,i)))),h=jG(p,sk);if(h)return yw(h,o,s)}function kse({path:e,isRedirect:t},{getCanonicalFileName:r,canonicalSourceDirectory:i},o,s,l,d,p,h){if(!s.fileExists||!s.readFile)return;let m=G6(e);if(!m)return;let E=gw(d,l,o).getAllowedEndingsInPreferredOrder(),S=e,A=!1;if(!p){let Y=m.packageRootIndex,B;for(;;){let{moduleFileToTry:ce,packageRootPath:z,blockedByExports:Z,verbatimFromExports:me}=K(Y);if(du(l)!==1){if(Z)return;if(me)return ce}if(z){S=z,A=!0;break}if(B||(B=ce),Y=e.indexOf(nl,Y+1),Y===-1){S=yw(B,E,l,s);break}}}if(t&&!A)return;let N=s.getGlobalTypingsCacheLocation&&s.getGlobalTypingsCacheLocation(),D=r(S.substring(0,m.topLevelNodeModulesIndex));if(!(ao(i,D)||N&&ao(r(N),D)))return;let w=S.substring(m.topLevelPackageNameIndex+1),j=DP(w);return du(l)===1&&j===w?void 0:j;function K(Y){var B,ce;let z=e.substring(0,Y),Z=Yr(z,"package.json"),me=e,ge=!1,q=(ce=(B=s.getPackageJsonInfoCache)==null?void 0:B.call(s))==null?void 0:ce.getPackageJsonInfo(Z);if(v3(q)||q===void 0&&s.fileExists(Z)){let J=q?.contents.packageJsonContent||h6(s.readFile(Z)),re=h||o.impliedNodeFormat;if(X6(l)){let fe=z.substring(m.topLevelPackageNameIndex+1),ne=DP(fe),he=$v(l,re),Ce=J?.exports?NGe(l,s,e,z,ne,J.exports,he):void 0;if(Ce)return{...Ce,verbatimFromExports:!0};if(J?.exports)return{moduleFileToTry:e,blockedByExports:!0}}let pe=J?.typesVersions?g3(J.typesVersions):void 0;if(pe){let fe=e.slice(z.length+1),ne=_Ie(fe,pe.paths,E,s,l);ne===void 0?ge=!0:me=Yr(z,ne)}let xe=J?.typings||J?.types||J?.main||"index.js";if(No(xe)&&!(ge&&cU(w6(pe.paths),xe))){let fe=tl(xe,z,r),ne=r(me);if(Eu(fe)===Eu(ne))return{packageRootPath:z,moduleFileToTry:me};if(J?.type!=="module"&&!bc(ne,vk)&&ao(ne,fe)&&oi(ne)===Xb(fe)&&Eu(nc(ne))==="index")return{packageRootPath:z,moduleFileToTry:me}}}else{let J=r(me.substring(m.packageRootIndex+1));if(J==="index.d.ts"||J==="index.js"||J==="index.ts"||J==="index.tsx")return{moduleFileToTry:me,packageRootPath:z}}return{moduleFileToTry:me}}}function LGe(e,t){if(!e.fileExists)return;let r=pm(BN({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(let i of r){let o=t+i;if(e.fileExists(o))return o}}function hIe(e,t,r){return to(t,i=>{let o=yIe(e,i,r);return o!==void 0&&vIe(o)?void 0:o})}function yw(e,t,r,i){if(bc(e,[".json",".mjs",".cjs"]))return e;let o=Eu(e);if(e===o)return e;let s=t.indexOf(2),l=t.indexOf(3);if(bc(e,[".mts",".cts"])&&l!==-1&&lh===0||h===1);return p!==-1&&p(e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative",e))(Wse||{})}}),eS={};xa(eS,{RelativePreference:()=>Wse,countPathComponents:()=>R3,forEachFileNameOfModule:()=>pIe,getModuleSpecifier:()=>x3,getModuleSpecifierPreferences:()=>gw,getModuleSpecifiers:()=>lIe,getModuleSpecifiersWithCacheInfo:()=>cIe,getNodeModulesPackageName:()=>IGe,tryGetJSExtensionForFile:()=>Ose,tryGetModuleSpecifiersFromCache:()=>xGe,tryGetRealFileNameForNonJsDeclarationFileName:()=>gIe,updateModuleSpecifier:()=>AGe});var zse=bt({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){"use strict";Fse()}});function kGe(){this.flags=0}function rs(e){return e.id||(e.id=Vse,Vse++),e.id}function ba(e){return e.id||(e.id=Gse,Gse++),e.id}function yK(e,t){let r=Vg(e);return r===1||t&&r===2}function Bse(e){var t=[],r=n=>{t.push(n)},i,o=new Set,s,l,d=sd.getSymbolConstructor(),p=sd.getTypeConstructor(),h=sd.getSignatureConstructor(),m=0,y=0,E=0,S=0,A=0,N=0,D,w,j=!1,K=aa(),Y=[1],B=e.getCompilerOptions(),ce=ns(B),z=Ld(B),Z=!!B.experimentalDecorators,me=tP(B),ge=uoe(B),q=RT(B),J=cu(B,"strictNullChecks"),re=cu(B,"strictFunctionTypes"),pe=cu(B,"strictBindCallApply"),xe=cu(B,"strictPropertyInitialization"),fe=cu(B,"noImplicitAny"),ne=cu(B,"noImplicitThis"),he=cu(B,"useUnknownInCatchVariables"),Ce=!!B.keyofStringsOnly,Ge=Ce?1:0,ve=B.suppressExcessPropertyErrors?0:8192,Ae=B.exactOptionalPropertyTypes,De=pft(),Le=Hht(),Et=U_(),be=aa(),ze=Ka(4,"undefined");ze.declarations=[];var tt=Ka(1536,"globalThis",8);tt.exports=be,tt.declarations=[],be.set(tt.escapedName,tt);var Wt=Ka(4,"arguments"),_t=Ka(4,"require"),Je=B.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",pt=!B.verbatimModuleSyntax||!!B.importsNotUsedAsValues,Zt,en,Dn=0,Kn,pn=0;let Xt={getNodeCount:()=>tu(e.getSourceFiles(),(n,a)=>n+a.nodeCount,0),getIdentifierCount:()=>tu(e.getSourceFiles(),(n,a)=>n+a.identifierCount,0),getSymbolCount:()=>tu(e.getSourceFiles(),(n,a)=>n+a.symbolCount,y),getTypeCount:()=>m,getInstantiationCount:()=>E,getRelationCacheSizes:()=>({assignable:Gu.size,identity:np.size,subtype:Ih.size,strictSubtype:Mf.size}),isUndefinedSymbol:n=>n===ze,isArgumentsSymbol:n=>n===Wt,isUnknownSymbol:n=>n===lt,getMergedSymbol:es,getDiagnostics:G6e,getGlobalDiagnostics:sht,getRecursionIdentity:UZ,getUnmatchedProperties:hye,getTypeOfSymbolAtLocation:(n,a)=>{let c=Do(a);return c?edt(n,c):ut},getTypeOfSymbol:sr,getSymbolsOfParameterPropertyDeclaration:(n,a)=>{let c=Do(n,Ao);return c===void 0?x.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(x.assert(dp(c,c.parent)),SM(c,pl(a)))},getDeclaredTypeOfSymbol:Xs,getPropertiesOfType:ms,getPropertyOfType:(n,a)=>ha(n,pl(a)),getPrivateIdentifierPropertyOfType:(n,a,c)=>{let u=Do(c);if(!u)return;let _=pl(a),g=Eee(_,u);return g?tve(n,g):void 0},getTypeOfPropertyOfType:(n,a)=>Ue(n,pl(a)),getIndexInfoOfType:(n,a)=>vg(n,a===0?Ne:It),getIndexInfosOfType:_u,getIndexInfosOfIndexSymbol:dge,getSignaturesOfType:Jo,getIndexTypeOfType:(n,a)=>t0(n,a===0?Ne:It),getIndexType:n=>J_(n),getBaseTypes:Dp,getBaseTypeOfLiteralType:my,getWidenedType:Hp,getTypeFromTypeNode:n=>{let a=Do(n,ji);return a?Ti(a):ut},getParameterType:p_,getParameterIdentifierInfoAtPosition:Npt,getPromisedTypeOfPromise:U8,getAwaitedType:n=>eI(n),getReturnTypeOfSignature:ds,isNullableType:F5,getNullableType:S5,getNonNullableType:_y,getNonOptionalType:qZ,getTypeArguments:Vs,typeToTypeNode:Et.typeToTypeNode,indexInfoToIndexSignatureDeclaration:Et.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Et.signatureToSignatureDeclaration,symbolToEntityName:Et.symbolToEntityName,symbolToExpression:Et.symbolToExpression,symbolToNode:Et.symbolToNode,symbolToTypeParameterDeclarations:Et.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:Et.symbolToParameterDeclaration,typeParameterToDeclaration:Et.typeParameterToDeclaration,getSymbolsInScope:(n,a)=>{let c=Do(n);return c?lht(c,a):[]},getSymbolAtLocation:n=>{let a=Do(n);return a?zm(a,!0):void 0},getIndexInfosAtLocation:n=>{let a=Do(n);return a?hht(a):void 0},getShorthandAssignmentValueSymbol:n=>{let a=Do(n);return a?ght(a):void 0},getExportSpecifierLocalTargetSymbol:n=>{let a=Do(n,Kd);return a?yht(a):void 0},getExportSymbolOfSymbol(n){return es(n.exportSymbol||n)},getTypeAtLocation:n=>{let a=Do(n);return a?fx(a):ut},getTypeOfAssignmentPattern:n=>{let a=Do(n,sN);return a&&$ee(a)||ut},getPropertySymbolOfDestructuringAssignment:n=>{let a=Do(n,Fe);return a?vht(a):void 0},signatureToString:(n,a,c,u)=>Nh(n,Do(a),c,u),typeToString:(n,a,c)=>Vn(n,Do(a),c),symbolToString:(n,a,c,u)=>Si(n,Do(a),c,u),typePredicateToString:(n,a,c)=>Ph(n,Do(a),c),writeSignature:(n,a,c,u,_)=>Nh(n,Do(a),c,u,_),writeType:(n,a,c,u)=>Vn(n,Do(a),c,u),writeSymbol:(n,a,c,u,_)=>Si(n,Do(a),c,u,_),writeTypePredicate:(n,a,c,u)=>Ph(n,Do(a),c,u),getAugmentedPropertiesOfType:nbe,getRootSymbols:X6e,getSymbolOfExpando:Nee,getContextualType:(n,a)=>{let c=Do(n,ht);if(c)return a&4?uo(c,()=>Hu(c,a)):Hu(c,a)},getContextualTypeForObjectLiteralElement:n=>{let a=Do(n,Pg);return a?Gye(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,a)=>{let c=Do(n,E0);return c&&Bye(c,a)},getContextualTypeForJsxAttribute:n=>{let a=Do(n,fF);return a&&cWe(a,void 0)},isContextSensitive:zf,getTypeOfPropertyOfContextualType:d0,getFullyQualifiedName:Vp,getResolvedSignature:(n,a,c)=>Li(n,a,c,0),getCandidateSignaturesForStringLiteralCompletions:Kt,getResolvedSignatureForSignatureHelp:(n,a,c)=>hi(n,()=>Li(n,a,c,16)),getExpandedParameters:dwe,hasEffectiveRestParameter:zh,containsArgumentsReference:sge,getConstantValue:n=>{let a=Do(n,e4e);return a?rbe(a):void 0},isValidPropertyAccess:(n,a)=>{let c=Do(n,fre);return!!c&&zut(c,pl(a))},isValidPropertyAccessForCompletions:(n,a,c)=>{let u=Do(n,kr);return!!u&&zWe(u,a,c)},getSignatureFromDeclaration:n=>{let a=Do(n,$o);return a?lm(a):void 0},isImplementationOfOverload:n=>{let a=Do(n,$o);return a?Q6e(a):void 0},getImmediateAliasedSymbol:Kye,getAliasedSymbol:Wc,getEmitResolver:Zy,getExportsOfModule:AA,getExportsAndPropertiesOfModule:JD,forEachExportAndPropertyOfModule:qD,getSymbolWalker:Mse(Sat,Ff,ds,Dp,l_,sr,Wm,Cu,Fp,Vs),getAmbientModules:kgt,getJsxIntrinsicTagNamesAt:yut,isOptionalParameter:n=>{let a=Do(n,Ao);return a?_8(a):!1},tryGetMemberInModuleExports:(n,a)=>IA(pl(n),a),tryGetMemberInModuleExportsAndProperties:(n,a)=>XD(pl(n),a),tryFindAmbientModule:n=>hZ(n,!0),tryFindAmbientModuleWithoutAugmentations:n=>hZ(n,!1),getApparentType:Nu,getUnionType:ei,isTypeAssignableTo:ya,createAnonymousType:Ds,createSignature:yg,createSymbol:Ka,createIndexInfo:Oh,getAnyType:()=>G,getStringType:()=>Ne,getStringLiteralType:Uu,getNumberType:()=>It,getNumberLiteralType:d_,getBigIntType:()=>Dt,createPromiseType:X5,createArrayType:Bd,getElementTypeOfArrayType:E5,getBooleanType:()=>gi,getFalseType:n=>n?Ut:En,getTrueType:n=>n?wn:Bn,getVoidType:()=>er,getUndefinedType:()=>Me,getNullType:()=>ue,getESSymbolType:()=>xi,getNeverType:()=>Fr,getOptionalType:()=>H,getPromiseType:()=>o5(!1),getPromiseLikeType:()=>$we(!1),getAsyncIterableType:()=>{let n=xZ(!1);if(n!==Lo)return n},isSymbolAccessible:ki,isArrayType:Gf,isTupleType:wa,isArrayLikeType:uv,isEmptyAnonymousObjectType:Fh,isTypeInvalidDueToUnionDiscriminant:rat,getExactOptionalProperties:Nlt,getAllPossiblePropertiesOfTypes:iat,getSuggestedSymbolForNonexistentProperty:ive,getSuggestionForNonexistentProperty:ove,getSuggestedSymbolForNonexistentJSXAttribute:WWe,getSuggestedSymbolForNonexistentSymbol:(n,a,c)=>ave(n,pl(a),c),getSuggestionForNonexistentSymbol:(n,a,c)=>wut(n,pl(a),c),getSuggestedSymbolForNonexistentModule:Tee,getSuggestionForNonexistentExport:Out,getSuggestedSymbolForNonexistentClassMember:OWe,getBaseConstraintOfType:zd,getDefaultFromTypeParameter:n=>n&&n.flags&262144?OA(n):void 0,resolveName(n,a,c,u){return hl(a,pl(n),c,void 0,void 0,!1,u)},getJsxNamespace:n=>Vi(WE(n)),getJsxFragmentFactory:n=>{let a=obe(n);return a&&Vi(Fp(a).escapedText)},getAccessibleSymbolChain:yb,getTypePredicateOfSignature:Ff,resolveExternalModuleName:n=>{let a=Do(n,ht);return a&&mu(a,a,!0)},resolveExternalModuleSymbol:Ip,tryGetThisTypeAt:(n,a,c)=>{let u=Do(n);return u&&Oye(u,a,c)},getTypeArgumentConstraint:n=>{let a=Do(n,ji);return a&&Uft(a)},getSuggestionDiagnostics:(n,a)=>{let c=Do(n,Yi)||x.fail("Could not determine parsed source file.");if(jN(c,B,e))return Xe;let u;try{return i=a,ebe(c),x.assert(!!(Qr(c).flags&1)),u=Hr(u,sA.getDiagnostics(c.fileName)),r6e(B6e(c),(_,g,T)=>{!Vx(_)&&!z6e(g,!!(_.flags&33554432))&&(u||(u=[])).push({...T,category:2})}),u||Xe}finally{i=void 0}},runWithCancellationToken:(n,a)=>{try{return i=n,a(Xt)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Nr,isDeclarationVisible:i_,isPropertyAccessible:lve,getTypeOnlyAliasDeclaration:Lf,getMemberOverrideModifierStatus:S_t,isTypeParameterPossiblyReferenced:p5,typeHasCallOrConstructSignatures:Qee};function Kt(n,a){let c=new Set,u=[];uo(a,()=>Li(n,u,void 0,0));for(let _ of u)c.add(_);u.length=0,hi(a,()=>Li(n,u,void 0,0));for(let _ of u)c.add(_);return Wo(c)}function hi(n,a){if(n=Fn(n,LV),n){let c=[],u=[];for(;n;){let g=Qr(n);if(c.push([g,g.resolvedSignature]),g.resolvedSignature=void 0,F0(n)){let T=qi(Sr(n)),P=T.type;u.push([T,P]),T.type=void 0}n=Fn(n.parent,LV)}let _=a();for(let[g,T]of c)g.resolvedSignature=T;for(let[g,T]of u)g.type=T;return _}return a()}function uo(n,a){let c=Fn(n,E0);if(c){let _=n;do Qr(_).skipDirectInference=!0,_=_.parent;while(_&&_!==c)}j=!0;let u=hi(n,a);if(j=!1,c){let _=n;do Qr(_).skipDirectInference=void 0,_=_.parent;while(_&&_!==c)}return u}function Li(n,a,c,u){let _=Do(n,E0);Zt=c;let g=_?vC(_,a,u):void 0;return Zt=void 0,g}var So=new Map,Qn=new Map,Ur=new Map,Er=new Map,on=new Map,Ye=new Map,Ot=new Map,In=new Map,si=new Map,yi=new Map,$i=new Map,Io=new Map,ua=new Map,Ba=new Map,vn=new Map,kn=[],Be=new Map,ct=new Set,lt=Ka(4,"unknown"),Rt=Ka(0,"__resolving__"),ae=new Map,ke=new Map,st=new Set,G=sc(1,"any"),et=sc(1,"any",262144,"auto"),Tt=sc(1,"any",void 0,"wildcard"),He=sc(1,"any",void 0,"blocked string"),ut=sc(1,"error"),Ft=sc(1,"unresolved"),hn=sc(1,"any",65536,"non-inferrable"),dn=sc(1,"intrinsic"),un=sc(2,"unknown"),U=sc(2,"unknown",void 0,"non-null"),Me=sc(32768,"undefined"),Nt=J?Me:sc(32768,"undefined",65536,"widening"),k=sc(32768,"undefined",void 0,"missing"),ie=Ae?k:Me,H=sc(32768,"undefined",void 0,"optional"),ue=sc(65536,"null"),We=J?ue:sc(65536,"null",65536,"widening"),Ne=sc(4,"string"),It=sc(8,"number"),Dt=sc(64,"bigint"),Ut=sc(512,"false",void 0,"fresh"),En=sc(512,"false"),wn=sc(512,"true",void 0,"fresh"),Bn=sc(512,"true");wn.regularType=Bn,wn.freshType=wn,Bn.regularType=Bn,Bn.freshType=wn,Ut.regularType=En,Ut.freshType=Ut,En.regularType=En,En.freshType=Ut;var gi=ei([En,Bn]),xi=sc(4096,"symbol"),er=sc(16384,"void"),Fr=sc(131072,"never"),go=sc(131072,"never",262144,"silent"),Pi=sc(131072,"never",void 0,"implicit"),Ri=sc(131072,"never",void 0,"unreachable"),Kr=sc(67108864,"object"),xo=ei([Ne,It]),xn=ei([Ne,It,xi]),Ls=Ce?Ne:xn,$l=ei([It,Dt]),Mo=ei([Ne,It,gi,Dt,ue,Me]),ss=FA(["",""],[It]),Ws=u5(n=>n.flags&262144?rlt(n):n,()=>"(restrictive mapper)"),ml=u5(n=>n.flags&262144?Tt:n,()=>"(permissive mapper)"),cd=sc(131072,"never",void 0,"unique literal"),mo=u5(n=>n.flags&262144?cd:n,()=>"(unique literal mapper)"),la,dd=u5(n=>(la&&(n===Ep||n===Rs||n===Ac)&&la(!0),n),()=>"(unmeasurable reporter)"),bs=u5(n=>(la&&(n===Ep||n===Rs||n===Ac)&&la(!1),n),()=>"(unreliable reporter)"),Ca=Ds(void 0,K,Xe,Xe,Xe),ul=Ds(void 0,K,Xe,Xe,Xe);ul.objectFlags|=2048;var Nf=Ka(2048,"__type");Nf.members=aa();var ac=Ds(Nf,K,Xe,Xe,Xe),xl=Ds(void 0,K,Xe,Xe,Xe),al=J?ei([Me,ue,xl]):un,Lo=Ds(void 0,K,Xe,Xe,Xe);Lo.instantiations=new Map;var tn=Ds(void 0,K,Xe,Xe,Xe);tn.objectFlags|=262144;var Fs=Ds(void 0,K,Xe,Xe,Xe),nd=Ds(void 0,K,Xe,Xe,Xe),ud=Ds(void 0,K,Xe,Xe,Xe),Ep=mf(),Rs=mf();Rs.constraint=Ep;var Ac=mf(),de=mf(),$=mf();$.constraint=de;var Pe=r5(1,"<>",0,G),yt=yg(void 0,void 0,void 0,Xe,G,void 0,0,0),cn=yg(void 0,void 0,void 0,Xe,ut,void 0,0,0),yr=yg(void 0,void 0,void 0,Xe,G,void 0,0,0),pr=yg(void 0,void 0,void 0,Xe,go,void 0,0,0),zr=Oh(It,Ne,!0),Di=new Map,Cr={get yieldType(){return x.fail("Not supported")},get returnType(){return x.fail("Not supported")},get nextType(){return x.fail("Not supported")}},qo=mv(G,G,G),bl=mv(G,G,un),Hc=mv(Fr,G,Me),zs={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:Wat,getGlobalIterableType:xZ,getGlobalIterableIteratorType:Fat,getGlobalGeneratorType:zat,resolveIterationType:(n,a)=>eI(n,a,f.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:f.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:f.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:f.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},hc={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:Bat,getGlobalIterableType:Sge,getGlobalIterableIteratorType:Gat,getGlobalGeneratorType:Vat,resolveIterationType:(n,a)=>n,mustHaveANextMethodDiagnostic:f.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:f.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:f.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},ys,Kc=new Map,tp=[],Oc,im,fu,Re,Lt,Un,yo,Xo,Zo,Ql,gc,sl,_l,Gl,Zl,Jc,lf,Fu,xu,Pf,z_,Ah,Hg,Fd,Kg,Sp,lg,zu,Q,rt,wt,zt,O,Ee,nt,Gt,Zn,ii,Xr,no,La,ka,wl,pd,Ic,Tp,Bu,ob,ls,Dm,Cm,Ui,Jg,$y,Nm,pS,fS,cf=new Map,B_=0,df=0,qg=0,we=!1,qe=0,Pt,Bt,_n,Jn=[],fn=[],qn=[],fi=0,or=[],ni=[],cr=0,Yo=Uu(""),Ha=d_(0),$d=PZ({negative:!1,base10Value:"0"}),fd=[],Xg=[],LE=[],w1=0,kE=!1,kD=0,wD=10,OD=[],oA=[],mS=[],O1=[],WD=[],W1=[],F1=[],z1=[],B1=[],aA=[],G1=[],_S=[],hS=[],ab=[],sb=[],cg=[],wE=[],Qa=cR(),sA=cR(),FD=Ch(),OE,Yg,Ih=new Map,Mf=new Map,Gu=new Map,Ap=new Map,np=new Map,Qy=new Map,lA=aa();lA.set(ze.escapedName,ze);var zD=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",B.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return Kht(),Xt;function V1(n){return n?vn.get(n):void 0}function lb(n,a){return n&&vn.set(n,a),a}function WE(n){if(n){let a=Gn(n);if(a)if(i1(n)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;let c=a.pragmas.get("jsxfrag");if(c){let _=To(c)?c[0]:c;if(a.localJsxFragmentFactory=l1(_.arguments.factory,ce),$e(a.localJsxFragmentFactory,yc,Xu),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=Fp(a.localJsxFragmentFactory).escapedText}let u=obe(n);if(u)return a.localJsxFragmentFactory=u,a.localJsxFragmentNamespace=Fp(u).escapedText}else{let c=j1(a);if(c)return a.localJsxNamespace=c}}return OE||(OE="React",B.jsxFactory?(Yg=l1(B.jsxFactory,ce),$e(Yg,yc),Yg&&(OE=Fp(Yg).escapedText)):B.reactNamespace&&(OE=pl(B.reactNamespace))),Yg||(Yg=L.createQualifiedName(L.createIdentifier(Vi(OE)),"createElement")),OE}function j1(n){if(n.localJsxNamespace)return n.localJsxNamespace;let a=n.pragmas.get("jsx");if(a){let c=To(a)?a[0]:a;if(n.localJsxFactory=l1(c.arguments.factory,ce),$e(n.localJsxFactory,yc,Xu),n.localJsxFactory)return n.localJsxNamespace=Fp(n.localJsxFactory).escapedText}}function yc(n){return fh(n,-1,-1),Sn(n,yc,void 0)}function Zy(n,a){return G6e(n,a),Le}function U1(n,a,...c){let u=n?Pr(n,a,...c):jl(a,...c),_=Qa.lookup(u);return _||(Qa.add(u),u)}function Zm(n,a,c,...u){let _=Ve(a,c,...u);return _.skippedOn=n,_}function cA(n,a,...c){return n?Pr(n,a,...c):jl(a,...c)}function Ve(n,a,...c){let u=cA(n,a,...c);return Qa.add(u),u}function e_(n,a){n?Qa.add(a):sA.add({...a,category:2})}function md(n,a,c,...u){if(a.pos<0||a.end<0){if(!n)return;let _=Gn(a);e_(n,"message"in c?Qc(_,0,0,c,...u):rj(_,c));return}e_(n,"message"in c?Pr(a,c,...u):Mg(Gn(a),a,c))}function FE(n,a,c,...u){let _=Ve(n,c,...u);if(a){let g=Pr(n,f.Did_you_forget_to_use_await);Pa(_,g)}return _}function H1(n,a){let c=Array.isArray(n)?gn(n,vV):vV(n);return c&&Pa(a,Pr(c,f.The_declaration_was_marked_as_deprecated_here)),sA.add(a),a}function cb(n){let a=Ru(n);return a&&Nn(n.declarations)>1?a.flags&64?gt(n.declarations,ev):oo(n.declarations,ev):!!n.valueDeclaration&&ev(n.valueDeclaration)||Nn(n.declarations)&&oo(n.declarations,ev)}function ev(n){return!!(KS(n)&536870912)}function tv(n,a,c){let u=Pr(n,f._0_is_deprecated,c);return H1(a,u)}function EM(n,a,c,u){let _=c?Pr(n,f.The_signature_0_of_1_is_deprecated,u,c):Pr(n,f._0_is_deprecated,u);return H1(a,_)}function Ka(n,a,c){y++;let u=new d(n|33554432,a);return u.links=new Hse,u.links.checkFlags=c||0,u}function t_(n,a){let c=Ka(1,n);return c.links.type=a,c}function dA(n,a){let c=Ka(4,n);return c.links.type=a,c}function uA(n){let a=0;return n&2&&(a|=111551),n&1&&(a|=111550),n&4&&(a|=0),n&8&&(a|=900095),n&16&&(a|=110991),n&32&&(a|=899503),n&64&&(a|=788872),n&256&&(a|=899327),n&128&&(a|=899967),n&512&&(a|=110735),n&8192&&(a|=103359),n&32768&&(a|=46015),n&65536&&(a|=78783),n&262144&&(a|=526824),n&524288&&(a|=788968),n&2097152&&(a|=2097152),a}function zE(n,a){a.mergeId||(a.mergeId=jse,jse++),OD[a.mergeId]=n}function pA(n){let a=Ka(n.flags,n.escapedName);return a.declarations=n.declarations?n.declarations.slice():[],a.parent=n.parent,n.valueDeclaration&&(a.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(a.constEnumOnlyModule=!0),n.members&&(a.members=new Map(n.members)),n.exports&&(a.exports=new Map(n.exports)),zE(a,n),a}function om(n,a,c=!1){if(!(n.flags&uA(a.flags))||(a.flags|n.flags)&67108864){if(a===n)return n;if(!(n.flags&33554432)){let _=Vl(n);if(_===lt)return a;n=pA(_)}a.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!a.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=a.flags,a.valueDeclaration&&w2(n,a.valueDeclaration),Hr(n.declarations,a.declarations),a.members&&(n.members||(n.members=aa()),n_(n.members,a.members,c)),a.exports&&(n.exports||(n.exports=aa()),n_(n.exports,a.exports,c)),c||zE(n,a)}else if(n.flags&1024)n!==tt&&Ve(a.declarations&&Po(a.declarations[0]),f.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Si(n));else{let _=!!(n.flags&384||a.flags&384),g=!!(n.flags&2||a.flags&2),T=_?f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:g?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,P=a.declarations&&Gn(a.declarations[0]),W=n.declarations&&Gn(n.declarations[0]),V=p2(P,B.checkJs),te=p2(W,B.checkJs),ye=Si(a);if(P&&W&&ys&&!_&&P!==W){let _e=Rg(P.path,W.path)===-1?P:W,je=_e===P?W:P,mt=WC(ys,`${_e.path}|${je.path}`,()=>({firstFile:_e,secondFile:je,conflictingSymbols:new Map})),At=WC(mt.conflictingSymbols,ye,()=>({isBlockScoped:g,firstFileLocations:[],secondFileLocations:[]}));V||u(At.firstFileLocations,a),te||u(At.secondFileLocations,n)}else V||am(a,T,ye,n),te||am(n,T,ye,a)}return n;function u(_,g){if(g.declarations)for(let T of g.declarations)yf(_,T)}}function am(n,a,c,u){gn(n.declarations,_=>{$g(_,a,c,u.declarations)})}function $g(n,a,c,u){let _=(sE(n,!1)?fj(n):Po(n))||n,g=U1(_,a,c);for(let T of u||Xe){let P=(sE(T,!1)?fj(T):Po(T))||T;if(P===_)continue;g.relatedInformation=g.relatedInformation||[];let W=Pr(P,f._0_was_also_declared_here,c),V=Pr(P,f.and_here);Nn(g.relatedInformation)>=5||gt(g.relatedInformation,te=>FN(te,V)===0||FN(te,W)===0)||Pa(g,Nn(g.relatedInformation)?V:W)}}function K1(n,a){if(!n?.size)return a;if(!a?.size)return n;let c=aa();return n_(c,n),n_(c,a),c}function n_(n,a,c=!1){a.forEach((u,_)=>{let g=n.get(_);n.set(_,g?om(g,u,c):es(u))})}function BD(n){var a,c,u;let _=n.parent;if(((a=_.symbol.declarations)==null?void 0:a[0])!==_){x.assert(_.symbol.declarations.length>1);return}if(E_(_))n_(be,_.symbol.exports);else{let g=n.parent.parent.flags&33554432?void 0:f.Invalid_module_name_in_augmentation_module_0_cannot_be_found,T=ty(n,n,g,!0);if(!T)return;if(T=Ip(T),T.flags&1920)if(gt(im,P=>T===P.symbol)){let P=om(_.symbol,T,!0);fu||(fu=new Map),fu.set(n.text,P)}else{if((c=T.exports)!=null&&c.get("__export")&&((u=_.symbol.exports)!=null&&u.size)){let P=Uhe(T,"resolvedExports");for(let[W,V]of Wo(_.symbol.exports.entries()))P.has(W)&&!T.exports.has(W)&&om(P.get(W),V)}om(T,_.symbol)}else Ve(n,f.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function gS(n,a,c){a.forEach((_,g)=>{let T=n.get(g);T?gn(T.declarations,u(Vi(g),c)):n.set(g,_)});function u(_,g){return T=>Qa.add(Pr(T,g,_))}}function qi(n){if(n.flags&33554432)return n.links;let a=ba(n);return oA[a]??(oA[a]=new Hse)}function Qr(n){let a=rs(n);return mS[a]||(mS[a]=new kGe)}function xh(n){return n.kind===312&&!wp(n)}function Vu(n,a,c){if(c){let u=es(n.get(a));if(u&&(x.assert((Tl(u)&1)===0,"Should never get an instantiated symbol here."),u.flags&c||u.flags&2097152&&Td(u)&c))return u}}function SM(n,a){let c=n.parent,u=n.parent.parent,_=Vu(c.locals,a,111551),g=Vu(Cb(u.symbol),a,111551);return _&&g?[_,g]:x.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function Qg(n,a){let c=Gn(n),u=Gn(a),_=uh(n);if(c!==u){if(z&&(c.externalModuleIndicator||u.externalModuleIndicator)||!xs(B)||TT(a)||n.flags&33554432||T(a,n))return!0;let W=e.getSourceFiles();return W.indexOf(c)<=W.indexOf(u)}if(a.flags&16777216||TT(a)||Tye(a))return!0;if(n.pos<=a.pos&&!(Uo(n)&&T2(a.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===208){let W=dE(a,208);return W?Fn(W,Xa)!==Fn(n,Xa)||n.posYa(W)&&W.parent.parent===n);if(Uo(n))return!P(n,a,!1);if(dp(n,n.parent))return!(ge&&ad(n)===ad(a)&&T(a,n))}return!0}if(a.parent.kind===281||a.parent.kind===277&&a.parent.isExportEquals||a.kind===277&&a.isExportEquals)return!0;if(T(a,n))return ge&&ad(n)&&(Uo(n)||dp(n,n.parent))?!P(n,a,!0):!0;return!1;function g(W,V){switch(W.parent.parent.kind){case 243:case 248:case 250:if(vS(V,W,_))return!0;break}let te=W.parent.parent;return Fx(te)&&vS(V,te.expression,_)}function T(W,V){return!!Fn(W,te=>{if(te===_)return"quit";if($o(te))return!0;if(Al(te))return V.posW.end?!1:Fn(V,_e=>{if(_e===W)return"quit";switch(_e.kind){case 219:return!0;case 172:return te&&(Uo(W)&&_e.parent===W.parent||dp(W,W.parent)&&_e.parent===W.parent.parent)?"quit":!0;case 241:switch(_e.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function TM(n,a,c){let u=ns(B),_=a;if(Ao(c)&&_.body&&n.valueDeclaration&&n.valueDeclaration.pos>=_.body.pos&&n.valueDeclaration.end<=_.body.end&&u>=2){let P=Qr(_);return P.declarationRequiresScopeChange===void 0&&(P.declarationRequiresScopeChange=gn(_.parameters,g)||!1),!P.declarationRequiresScopeChange}return!1;function g(P){return T(P.name)||!!P.initializer&&T(P.initializer)}function T(P){switch(P.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return T(P.name);case 172:return pc(P)?!ge:T(P.name);default:return TV(P)||Ud(P)?u<7:Xa(P)&&P.dotDotDotToken&&tm(P.parent)?u<4:ji(P)?!1:Go(P,T)||!1}}}function db(n){return cT(n)&&Ng(n.type)||hP(n)&&Ng(n.typeExpression)}function hl(n,a,c,u,_,g,T=!1,P=!0){return Bp(n,a,c,u,_,g,T,P,Vu)}function Bp(n,a,c,u,_,g,T,P,W){var V,te,ye;let _e=n,je,mt,At,rn,sn,nr=!1,Mn=n,an,On=!1;e:for(;n;){if(a==="const"&&db(n))return;if(s2(n)&&mt&&n.name===mt&&(mt=n,n=n.parent),lh(n)&&n.locals&&!xh(n)&&(je=W(n.locals,a,c))){let Yn=!0;if($o(n)&&mt&&mt!==n.body?(c&je.flags&788968&&mt.kind!==327&&(Yn=je.flags&262144?mt===n.type||mt.kind===169||mt.kind===348||mt.kind===349||mt.kind===168:!1),c&je.flags&3&&(TM(je,n,mt)?Yn=!1:je.flags&1&&(Yn=mt.kind===169||mt===n.type&&!!Fn(je.valueDeclaration,Ao)))):n.kind===194&&(Yn=mt===n.trueType),Yn)break e;je=void 0}switch(nr=nr||sm(n,mt),n.kind){case 312:if(!wp(n))break;On=!0;case 267:let Yn=((V=Sr(n))==null?void 0:V.exports)||K;if(n.kind===312||ql(n)&&n.flags&33554432&&!E_(n)){if(je=Yn.get("default")){let Ro=mR(je);if(Ro&&je.flags&c&&Ro.escapedName===a)break e;je=void 0}let $n=Yn.get(a);if($n&&$n.flags===2097152&&(cl($n,281)||cl($n,280)))break}if(a!=="default"&&(je=W(Yn,a,c&2623475)))if(Yi(n)&&n.commonJsModuleIndicator&&!((te=je.declarations)!=null&&te.some(qf)))je=void 0;else break e;break;case 266:if(je=W(((ye=Sr(n))==null?void 0:ye.exports)||K,a,c&8)){u&&em(B)&&!(n.flags&33554432)&&Gn(n)!==Gn(je.valueDeclaration)&&Ve(Mn,f.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Vi(a),Je,`${Vi(pf(n).escapedName)}.${Vi(a)}`);break e}break;case 172:if(!ra(n)){let $n=ny(n.parent);$n&&$n.locals&&W($n.locals,a,c&111551)&&(x.assertNode(n,Uo),rn=n)}break;case 263:case 231:case 264:if(je=W(Sr(n).members||K,a,c&788968)){if(!Zg(je,n)){je=void 0;break}if(mt&&ra(mt)){u&&Ve(Mn,f.Static_members_cannot_reference_class_type_parameters);return}break e}if(Zc(n)&&c&32){let $n=n.name;if($n&&a===$n.escapedText){je=n.symbol;break e}}break;case 233:if(mt===n.expression&&n.parent.token===96){let $n=n.parent.parent;if(ci($n)&&(je=W(Sr($n).members,a,c&788968))){u&&Ve(Mn,f.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(an=n.parent.parent,(ci(an)||an.kind===264)&&(je=W(Sr(an).members,a,c&788968))){u&&Ve(Mn,f.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(ns(B)>=2)break;case 174:case 176:case 177:case 178:case 262:if(c&3&&a==="arguments"){je=Wt;break e}break;case 218:if(c&3&&a==="arguments"){je=Wt;break e}if(c&16){let $n=n.name;if($n&&a===$n.escapedText){je=n.symbol;break e}}break;case 170:n.parent&&n.parent.kind===169&&(n=n.parent),n.parent&&($c(n.parent)||n.parent.kind===263)&&(n=n.parent);break;case 353:case 345:case 347:let jn=iR(n);jn&&(n=jn.parent);break;case 169:mt&&(mt===n.initializer||mt===n.name&&Qo(mt))&&(sn||(sn=n));break;case 208:mt&&(mt===n.initializer||mt===n.name&&Qo(mt))&&P0(n)&&!sn&&(sn=n);break;case 195:if(c&262144){let $n=n.typeParameter.name;if($n&&a===$n.escapedText){je=n.typeParameter.symbol;break e}}break;case 281:mt&&mt===n.propertyName&&n.parent.parent.moduleSpecifier&&(n=n.parent.parent.parent);break}ub(n)&&(At=n),mt=n,n=nm(n)?QF(n)||n.parent:(Ym(n)||H4(n))&&lE(n)||n.parent}if(g&&je&&(!At||je!==At.symbol)&&(je.isReferenced|=c),!je){if(mt&&(x.assertNode(mt,Yi),mt.commonJsModuleIndicator&&a==="exports"&&c&mt.symbol.flags))return mt.symbol;T||(je=W(be,a,c))}if(!je&&_e&&ir(_e)&&_e.parent&&bu(_e.parent,!1))return _t;function Ln(){return rn&&!ge?(Ve(Mn,Mn&&rn.type&&KL(rn.type,Mn.pos)?f.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:f.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,Ts(rn.name),Pm(_)),!0):!1}if(je){if(u&&Ln())return}else{u&&r(()=>{if(!Mn||Mn.parent.kind!==331&&!yS(Mn,a,_)&&!Ln()&&!fA(Mn)&&!J1(Mn,a,c)&&!nv(Mn,a)&&!mA(Mn,a,c)&&!GD(Mn,a,c)&&!pg(Mn,a,c)){let Yn,jn;if(_&&(jn=Lut(_),jn&&Ve(Mn,u,Pm(_),jn)),!jn&&P&&kD{var Yn;if(Mn&&(c&2||(c&32||c&384)&&(c&111551)===111551)){let jn=ff(je);(jn.flags&2||jn.flags&32||jn.flags&384)&&qs(jn,Mn)}if(je&&On&&(c&111551)===111551&&!(_e.flags&16777216)){let jn=es(je);Nn(jn.declarations)&&oo(jn.declarations,$n=>Fk($n)||Yi($n)&&!!$n.symbol.globalExports)&&md(!B.allowUmdGlobalAccess,Mn,f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Vi(a))}if(je&&sn&&!nr&&(c&111551)===111551){let jn=es(fZ(je)),$n=A_(sn);jn===Sr(sn)?Ve(Mn,f.Parameter_0_cannot_reference_itself,Ts(sn.name)):jn.valueDeclaration&&jn.valueDeclaration.pos>sn.pos&&$n.parent.locals&&W($n.parent.locals,jn.escapedName,c)===jn&&Ve(Mn,f.Parameter_0_cannot_reference_identifier_1_declared_after_it,Ts(sn.name),Ts(Mn))}if(je&&Mn&&c&111551&&je.flags&2097152&&!(je.flags&111551)&&!fE(Mn)){let jn=Lf(je,111551);if(jn){let $n=jn.kind===281||jn.kind===278||jn.kind===280?f._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,Ro=Vi(a);dg(Ve(Mn,$n,Ro),jn,Ro)}}if(B.isolatedModules&&je&&On&&(c&111551)===111551){let $n=W(be,a,c)===je&&Yi(mt)&&mt.locals&&W(mt.locals,a,-111552);if($n){let Ro=(Yn=$n.declarations)==null?void 0:Yn.find(bo=>bo.kind===276||bo.kind===273||bo.kind===274||bo.kind===271);Ro&&!e2(Ro)&&Ve(Ro,f.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Vi(a))}}}),je}function dg(n,a,c){return a?Pa(n,Pr(a,a.kind===281||a.kind===278||a.kind===280?f._0_was_exported_here:f._0_was_imported_here,c)):n}function sm(n,a){return n.kind!==219&&n.kind!==218?YI(n)||(ws(n)||n.kind===172&&!ra(n))&&(!a||a!==n.name):a&&a===n.name?!1:n.asteriskToken||$r(n,1024)?!0:!_T(n)}function ub(n){switch(n.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function Pm(n){return No(n)?Vi(n):Ts(n)}function Zg(n,a){if(n.declarations){for(let c of n.declarations)if(c.kind===168&&(nm(c.parent)?vT(c.parent):c.parent)===a)return!(nm(c.parent)&&Vr(c.parent.parent.tags,qf))}return!1}function yS(n,a,c){if(!Fe(n)||n.escapedText!==a||V6e(n)||TT(n))return!1;let u=Lu(n,!1,!1),_=u;for(;_;){if(ci(_.parent)){let g=Sr(_.parent);if(!g)break;let T=sr(g);if(ha(T,a))return Ve(n,f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Pm(c),Si(g)),!0;if(_===u&&!ra(_)){let P=Xs(g).thisType;if(ha(P,a))return Ve(n,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Pm(c)),!0}}_=_.parent}return!1}function fA(n){let a=ug(n);return a&&Bs(a,64,!0)?(Ve(n,f.Cannot_extend_an_interface_0_Did_you_mean_implements,uc(a)),!0):!1}function ug(n){switch(n.kind){case 80:case 211:return n.parent?ug(n.parent):void 0;case 233:if(Bl(n.expression))return n.expression;default:return}}function J1(n,a,c){let u=1920|(ir(n)?111551:0);if(c===u){let _=Vl(hl(n,a,788968&~u,void 0,void 0,!1)),g=n.parent;if(_){if(Su(g)){x.assert(g.left===n,"Should only be resolving left side of qualified name as a namespace");let T=g.right.escapedText;if(ha(Xs(_),T))return Ve(g,f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Vi(a),Vi(T)),!0}return Ve(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Vi(a)),!0}}return!1}function pg(n,a,c){if(c&788584){let u=Vl(hl(n,a,111127,void 0,void 0,!1));if(u&&!(u.flags&1920))return Ve(n,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Vi(a)),!0}return!1}function G_(n){return n==="any"||n==="string"||n==="number"||n==="boolean"||n==="never"||n==="unknown"}function nv(n,a){return G_(a)&&n.parent.kind===281?(Ve(n,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function GD(n,a,c){if(c&111551){if(G_(a)){let g=n.parent.parent;if(g&&g.parent&&Zp(g)){let T=g.token,P=g.parent.kind;P===264&&T===96?Ve(n,f.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Vi(a)):P===263&&T===96?Ve(n,f.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Vi(a)):P===263&&T===119&&Ve(n,f.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Vi(a))}else Ve(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Vi(a));return!0}let u=Vl(hl(n,a,788544,void 0,void 0,!1)),_=u&&Td(u);if(u&&_!==void 0&&!(_&111551)){let g=Vi(a);return jD(a)?Ve(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,g):VD(n,u)?Ve(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,g,g==="K"?"P":"K"):Ve(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,g),!0}}return!1}function VD(n,a){let c=Fn(n.parent,u=>Ya(u)||_p(u)?!1:gp(u)||"quit");if(c&&c.members.length===1){let u=Xs(a);return!!(u.flags&1048576)&&Q5(u,384,!0)}return!1}function jD(n){switch(n){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function mA(n,a,c){if(c&111127){if(Vl(hl(n,a,1024,void 0,void 0,!1)))return Ve(n,f.Cannot_use_namespace_0_as_a_value,Vi(a)),!0}else if(c&788544&&Vl(hl(n,a,1536,void 0,void 0,!1)))return Ve(n,f.Cannot_use_namespace_0_as_a_type,Vi(a)),!0;return!1}function qs(n,a){var c;if(x.assert(!!(n.flags&2||n.flags&32||n.flags&384)),n.flags&67108881&&n.flags&32)return;let u=(c=n.declarations)==null?void 0:c.find(_=>KV(_)||ci(_)||_.kind===266);if(u===void 0)return x.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(u.flags&33554432)&&!Qg(u,a)){let _,g=Ts(Po(u));n.flags&2?_=Ve(a,f.Block_scoped_variable_0_used_before_its_declaration,g):n.flags&32?_=Ve(a,f.Class_0_used_before_its_declaration,g):n.flags&256?_=Ve(a,f.Enum_0_used_before_its_declaration,g):(x.assert(!!(n.flags&128)),em(B)&&(_=Ve(a,f.Enum_0_used_before_its_declaration,g))),_&&Pa(_,Pr(u,f._0_is_declared_here,g))}}function vS(n,a,c){return!!a&&!!Fn(n,u=>u===a||(u===c||$o(u)&&(!_T(u)||Vc(u)&3)?"quit":!1))}function _A(n){switch(n.kind){case 271:return n;case 273:return n.parent;case 274:return n.parent.parent;case 276:return n.parent.parent.parent;default:return}}function Mm(n){return n.declarations&&sI(n.declarations,pb)}function pb(n){return n.kind===271||n.kind===270||n.kind===273&&!!n.name||n.kind===274||n.kind===280||n.kind===276||n.kind===281||n.kind===277&&oR(n)||dr(n)&&zl(n)===2&&oR(n)||Ns(n)&&dr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64&&UD(n.parent.right)||n.kind===304||n.kind===303&&UD(n.initializer)||n.kind===260&&R0(n)||n.kind===208&&R0(n.parent.parent)}function UD(n){return U2(n)||Ps(n)&&$_(n)}function hA(n,a){let c=mb(n);if(c){let _=hR(c.expression).arguments[0];return Fe(c.name)?Vl(ha(Nwe(_),c.name.escapedText)):void 0}if(wi(n)||n.moduleReference.kind===283){let _=mu(n,dj(n)||hN(n)),g=Ip(_);return rp(n,_,g,!1),g}let u=X1(n.moduleReference,a);return AM(n,u),u}function AM(n,a){if(rp(n,void 0,a,!1)&&!n.isTypeOnly){let c=Lf(Sr(n)),u=c.kind===281||c.kind===278,_=u?f.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:f.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,g=u?f._0_was_exported_here:f._0_was_imported_here,T=c.kind===278?"*":Vi(c.name.escapedText);Pa(Ve(n.moduleReference,_),Pr(c,g,T))}}function fr(n,a,c,u){let _=n.exports.get("export="),g=_?ha(sr(_),a,!0):n.exports.get(a),T=Vl(g,u);return rp(c,g,T,!1),T}function rd(n){return Ll(n)&&!n.isExportEquals||$r(n,2048)||Kd(n)||yh(n)}function Qi(n){return as(n)?e.getModeForUsageLocation(Gn(n),n):void 0}function uf(n,a){return n===99&&a===1}function rv(n){return Qi(n)===99&&El(n.text,".json")}function V_(n,a,c,u){let _=n&&Qi(u);if(n&&_!==void 0&&100<=z&&z<=199){let g=uf(_,n.impliedNodeFormat);if(_===99||g)return g}if(!q)return!1;if(!n||n.isDeclarationFile){let g=fr(a,"default",void 0,!0);return!(g&>(g.declarations,rd)||fr(a,pl("__esModule"),void 0,c))}return su(n)?typeof n.externalModuleIndicator!="object"&&!fr(a,pl("__esModule"),void 0,c):iv(a)}function ar(n,a){let c=mu(n,n.parent.moduleSpecifier);if(c)return gA(c,n,a)}function gA(n,a,c){var u;let _;uN(n)?_=n:_=fr(n,"default",a,c);let g=(u=n.declarations)==null?void 0:u.find(Yi),T=BE(a);if(!T)return _;let P=rv(T),W=V_(g,n,c,T);if(!_&&!W&&!P)if(iv(n)&&!q){let V=z>=5?"allowSyntheticDefaultImports":"esModuleInterop",ye=n.exports.get("export=").valueDeclaration,_e=Ve(a.name,f.Module_0_can_only_be_default_imported_using_the_1_flag,Si(n),V);ye&&Pa(_e,Pr(ye,f.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,V))}else gh(a)?qc(n,a):yA(n,n,a,yI(a)&&a.propertyName||a.name);else if(W||P){let V=Ip(n,c)||Vl(n,c);return rp(a,n,V,!1),V}return rp(a,_,void 0,!1),_}function BE(n){switch(n.kind){case 273:return n.parent.moduleSpecifier;case 271:return vh(n.moduleReference)?n.moduleReference.expression:void 0;case 274:return n.parent.parent.moduleSpecifier;case 276:return n.parent.parent.parent.moduleSpecifier;case 281:return n.parent.parent.moduleSpecifier;default:return x.assertNever(n)}}function qc(n,a){var c,u,_;if((c=n.exports)!=null&&c.has(a.symbol.escapedName))Ve(a.name,f.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Si(n),Si(a.symbol));else{let g=Ve(a.name,f.Module_0_has_no_default_export,Si(n)),T=(u=n.exports)==null?void 0:u.get("__export");if(T){let P=(_=T.declarations)==null?void 0:_.find(W=>{var V,te;return!!(Xl(W)&&W.moduleSpecifier&&((te=(V=mu(W,W.moduleSpecifier))==null?void 0:V.exports)!=null&&te.has("default")))});P&&Pa(g,Pr(P,f.export_Asterisk_does_not_re_export_a_default))}}}function Rh(n,a){let c=n.parent.parent.moduleSpecifier,u=mu(n,c),_=ip(u,c,a,!1);return rp(n,u,_,!1),_}function Lm(n,a){let c=n.parent.moduleSpecifier,u=c&&mu(n,c),_=c&&ip(u,c,a,!1);return rp(n,u,_,!1),_}function bS(n,a){if(n===lt&&a===lt)return lt;if(n.flags&790504)return n;let c=Ka(n.flags|a.flags,n.escapedName);return x.assert(n.declarations||a.declarations),c.declarations=m0(Eo(n.declarations,a.declarations),Ty),c.parent=n.parent||a.parent,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration),a.members&&(c.members=new Map(a.members)),n.exports&&(c.exports=new Map(n.exports)),c}function ES(n,a,c,u){var _;if(n.flags&1536){let g=xp(n).get(a.escapedText),T=Vl(g,u),P=(_=qi(n).typeOnlyExportStarMap)==null?void 0:_.get(a.escapedText);return rp(c,g,T,!1,P,a.escapedText),T}}function fb(n,a){if(n.flags&3){let c=n.valueDeclaration.type;if(c)return Vl(ha(Ti(c),a))}}function ey(n,a,c=!1){var u;let _=dj(n)||n.moduleSpecifier,g=mu(n,_),T=!kr(a)&&a.propertyName||a.name;if(!Fe(T))return;let P=T.escapedText==="default"&&q,W=ip(g,_,!1,P);if(W&&T.escapedText){if(uN(g))return g;let V;g&&g.exports&&g.exports.get("export=")?V=ha(sr(W),T.escapedText,!0):V=fb(W,T.escapedText),V=Vl(V,c);let te=ES(W,T,a,c);if(te===void 0&&T.escapedText==="default"){let _e=(u=g.declarations)==null?void 0:u.find(Yi);(rv(_)||V_(_e,g,c,_))&&(te=Ip(g,c)||Vl(g,c))}let ye=te&&V&&te!==V?bS(V,te):te||V;return ye||yA(g,W,n,T),ye}}function yA(n,a,c,u){var _;let g=Vp(n,c),T=Ts(u),P=Tee(u,a);if(P!==void 0){let W=Si(P),V=Ve(u,f._0_has_no_exported_member_named_1_Did_you_mean_2,g,T,W);P.valueDeclaration&&Pa(V,Pr(P.valueDeclaration,f._0_is_declared_here,W))}else(_=n.exports)!=null&&_.has("default")?Ve(u,f.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,g,T):km(c,u,T,n,g)}function km(n,a,c,u,_){var g,T;let P=(T=(g=ri(u.valueDeclaration,lh))==null?void 0:g.locals)==null?void 0:T.get(a.escapedText),W=u.exports;if(P){let V=W?.get("export=");if(V)r_(V,P)?GE(n,a,c,_):Ve(a,f.Module_0_has_no_exported_member_1,_,c);else{let te=W?Vr(age(W),_e=>!!r_(_e,P)):void 0,ye=te?Ve(a,f.Module_0_declares_1_locally_but_it_is_exported_as_2,_,c,Si(te)):Ve(a,f.Module_0_declares_1_locally_but_it_is_not_exported,_,c);P.declarations&&Pa(ye,...mn(P.declarations,(_e,je)=>Pr(_e,je===0?f._0_is_declared_here:f.and_here,c)))}}else Ve(a,f.Module_0_has_no_exported_member_1,_,c)}function GE(n,a,c,u){if(z>=5){let _=mh(B)?f._0_can_only_be_imported_by_using_a_default_import:f._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Ve(a,_,c)}else if(ir(n)){let _=mh(B)?f._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:f._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Ve(a,_,c)}else{let _=mh(B)?f._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:f._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Ve(a,_,c,c,u)}}function fg(n,a){if(Qu(n)&&gr(n.propertyName||n.name)==="default"){let T=BE(n),P=T&&mu(n,T);if(P)return gA(P,n,a)}let c=Xa(n)?A_(n):n.parent.parent.parent,u=mb(c),_=ey(c,u||n,a),g=n.propertyName||n.name;return u&&_&&Fe(g)?Vl(ha(sr(_),g.escapedText),a):(rp(n,void 0,_,!1),_)}function mb(n){if(wi(n)&&n.initializer&&kr(n.initializer))return n.initializer}function q1(n,a){if(b_(n.parent)){let c=Ip(n.parent.symbol,a);return rp(n,void 0,c,!1),c}}function VE(n,a,c){if(gr(n.propertyName||n.name)==="default"){let _=BE(n),g=_&&mu(n,_);if(g)return gA(g,n,!!c)}let u=n.parent.parent.moduleSpecifier?ey(n.parent.parent,n,c):Bs(n.propertyName||n.name,a,!1,c);return rp(n,void 0,u,!1),u}function HD(n,a){let c=Ll(n)?n.expression:n.right,u=SS(c,a);return rp(n,void 0,u,!1),u}function SS(n,a){if(Zc(n))return tc(n).symbol;if(!Xu(n)&&!Bl(n))return;let c=Bs(n,901119,!0,a);return c||(tc(n),Qr(n).resolvedSymbol)}function vA(n,a){if(dr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64)return SS(n.parent.right,a)}function Gp(n,a=!1){switch(n.kind){case 271:case 260:return hA(n,a);case 273:return ar(n,a);case 274:return Rh(n,a);case 280:return Lm(n,a);case 276:case 208:return fg(n,a);case 281:return VE(n,901119,a);case 277:case 226:return HD(n,a);case 270:return q1(n,a);case 304:return Bs(n.name,901119,!0,a);case 303:return SS(n.initializer,a);case 212:case 211:return vA(n,a);default:return x.fail()}}function bA(n,a=901119){return n?(n.flags&(2097152|a))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function Vl(n,a){return!a&&bA(n)?Wc(n):n}function Wc(n){x.assert((n.flags&2097152)!==0,"Should only get Alias here.");let a=qi(n);if(a.aliasTarget)a.aliasTarget===Rt&&(a.aliasTarget=lt);else{a.aliasTarget=Rt;let c=Mm(n);if(!c)return x.fail();let u=Gp(c);a.aliasTarget===Rt?a.aliasTarget=u||lt:Ve(c,f.Circular_definition_of_import_alias_0,Si(n))}return a.aliasTarget}function EA(n){if(qi(n).aliasTarget!==Rt)return Wc(n)}function Td(n,a,c){let u=a&&Lf(n),_=u&&Xl(u),g=u&&(_?mu(u.moduleSpecifier,u.moduleSpecifier,!0):Wc(u.symbol)),T=_&&g?Dh(g):void 0,P=c?0:n.flags,W;for(;n.flags&2097152;){let V=ff(Wc(n));if(!_&&V===g||T?.get(V.escapedName)===V)break;if(V===lt)return-1;if(V===n||W?.has(V))break;V.flags&2097152&&(W?W.add(V):W=new Set([n,V])),P|=V.flags,n=V}return P}function rp(n,a,c,u,_,g){if(!n||kr(n))return!1;let T=Sr(n);if(iE(n)){let W=qi(T);return W.typeOnlyDeclaration=n,!0}if(_){let W=qi(T);return W.typeOnlyDeclaration=_,T.escapedName!==g&&(W.typeOnlyExportStarName=g),!0}let P=qi(T);return jE(P,a,u)||jE(P,c,u)}function jE(n,a,c){var u;if(a&&(n.typeOnlyDeclaration===void 0||c&&n.typeOnlyDeclaration===!1)){let _=((u=a.exports)==null?void 0:u.get("export="))??a,g=_.declarations&&Vr(_.declarations,iE);n.typeOnlyDeclaration=g??qi(_).typeOnlyDeclaration??!1}return!!n.typeOnlyDeclaration}function Lf(n,a){if(!(n.flags&2097152))return;let c=qi(n);if(a===void 0)return c.typeOnlyDeclaration||void 0;if(c.typeOnlyDeclaration){let u=c.typeOnlyDeclaration.kind===278?Vl(Dh(c.typeOnlyDeclaration.symbol.parent).get(c.typeOnlyExportStarName||n.escapedName)):Wc(c.typeOnlyDeclaration.symbol);return Td(u)&a?c.typeOnlyDeclaration:void 0}}function _b(n){if(!pt)return;let a=Sr(n),c=Wc(a);c&&(c===lt||Td(a,!0)&111551&&!Y8(c))&&hb(a)}function hb(n){x.assert(pt);let a=qi(n);if(!a.referenced){a.referenced=!0;let c=Mm(n);if(!c)return x.fail();Qx(c)&&Td(Vl(n))&111551&&tc(c.moduleReference)}}function id(n){let a=qi(n);a.constEnumReferenced||(a.constEnumReferenced=!0)}function X1(n,a){return n.kind===80&&MN(n)&&(n=n.parent),n.kind===80||n.parent.kind===166?Bs(n,1920,!1,a):(x.assert(n.parent.kind===271),Bs(n,901119,!1,a))}function Vp(n,a){return n.parent?Vp(n.parent,a)+"."+Si(n):Si(n,a,void 0,36)}function SA(n){for(;Su(n.parent);)n=n.parent;return n}function TA(n){let a=Fp(n),c=hl(a,a.escapedText,111551,void 0,a,!0);if(c){for(;Su(a.parent);){let u=sr(c);if(c=ha(u,a.parent.right.escapedText),!c)return;a=a.parent}return c}}function Bs(n,a,c,u,_){if(Fl(n))return;let g=1920|(ir(n)?a&111551:0),T;if(n.kind===80){let P=a===g||Ks(n)?f.Cannot_find_namespace_0:T8e(Fp(n)),W=ir(n)&&!Ks(n)?KD(n,a):void 0;if(T=es(hl(_||n,n.escapedText,a,c||W?void 0:P,n,!0,!1)),!T)return es(W)}else if(n.kind===166||n.kind===211){let P=n.kind===166?n.left:n.expression,W=n.kind===166?n.right:n.name,V=Bs(P,g,c,!1,_);if(!V||Fl(W))return;if(V===lt)return V;if(V.valueDeclaration&&ir(V.valueDeclaration)&&du(B)!==100&&wi(V.valueDeclaration)&&V.valueDeclaration.initializer&&sFe(V.valueDeclaration.initializer)){let te=V.valueDeclaration.initializer.arguments[0],ye=mu(te,te);if(ye){let _e=Ip(ye);_e&&(V=_e)}}if(T=es(Vu(xp(V),W.escapedText,a)),!T&&V.flags&2097152&&(T=es(Vu(xp(Wc(V)),W.escapedText,a))),!T){if(!c){let te=Vp(V),ye=Ts(W),_e=Tee(W,V);if(_e){Ve(W,f._0_has_no_exported_member_named_1_Did_you_mean_2,te,ye,Si(_e));return}let je=Su(n)&&SA(n);if(Re&&a&788968&&je&&!NR(je.parent)&&TA(je)){Ve(je,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,up(je));return}if(a&1920&&Su(n.parent)){let At=es(Vu(xp(V),W.escapedText,788968));if(At){Ve(n.parent.right,f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Si(At),Vi(n.parent.right.escapedText));return}}Ve(W,f.Namespace_0_has_no_exported_member_1,te,ye)}return}}else x.assertNever(n,"Unknown entity name kind.");return x.assert((Tl(T)&1)===0,"Should never get an instantiated symbol here."),!Ks(n)&&Xu(n)&&(T.flags&2097152||n.parent.kind===277)&&rp(Sj(n),T,void 0,!0),T.flags&a||u?T:Wc(T)}function KD(n,a){if(AZ(n.parent)){let c=UE(n.parent);if(c)return hl(c,n.escapedText,a,void 0,n,!0)}}function UE(n){if(Fn(n,_=>zx(_)||_.flags&16777216?qf(_):"quit"))return;let c=vT(n);if(c&&ed(c)&&k2(c.expression)){let _=Sr(c.expression.left);if(_)return TS(_)}if(c&&Ps(c)&&k2(c.parent)&&ed(c.parent.parent)){let _=Sr(c.parent.left);if(_)return TS(_)}if(c&&(bm(c)||mc(c))&&dr(c.parent.parent)&&zl(c.parent.parent)===6){let _=Sr(c.parent.parent.left);if(_)return TS(_)}let u=cE(n);if(u&&$o(u)){let _=Sr(u);return _&&_.valueDeclaration}}function TS(n){let a=n.parent.valueDeclaration;return a?(gN(a)?AI(a):dT(a)?C2(a):void 0)||a:void 0}function IM(n){let a=n.valueDeclaration;if(!a||!ir(a)||n.flags&524288||sE(a,!1))return;let c=wi(a)?C2(a):AI(a);if(c){let u=pf(c);if(u)return _ve(u,n)}}function mu(n,a,c){let _=du(B)===1?f.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:f.Cannot_find_module_0_or_its_corresponding_type_declarations;return ty(n,a,c?void 0:_)}function ty(n,a,c,u=!1){return as(a)?j_(n,a.text,c,a,u):void 0}function j_(n,a,c,u,_=!1){var g,T,P,W,V,te,ye,_e,je,mt,At;if(ao(a,"@types/")){let $n=f.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,Ro=VC(a,"@types/");Ve(u,$n,Ro,a)}let rn=hZ(a,!0);if(rn)return rn;let sn=Gn(n),nr=as(n)?n:((g=ql(n)?n:n.parent&&ql(n.parent)&&n.parent.name===n?n.parent:void 0)==null?void 0:g.name)||((T=wv(n)?n:void 0)==null?void 0:T.argument.literal)||(wi(n)&&n.initializer&&bu(n.initializer,!0)?n.initializer.arguments[0]:void 0)||((P=Fn(n,Op))==null?void 0:P.arguments[0])||((W=Fn(n,Lc))==null?void 0:W.moduleSpecifier)||((V=Fn(n,aE))==null?void 0:V.moduleReference.expression)||((te=Fn(n,Xl))==null?void 0:te.moduleSpecifier),Mn=nr&&as(nr)?e.getModeForUsageLocation(sn,nr):sn.impliedNodeFormat,an=du(B),On=(ye=e.getResolvedModule(sn,a,Mn))==null?void 0:ye.resolvedModule,Ln=On&&yJ(B,On,sn),Yn=On&&(!Ln||Ln===f.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(On.resolvedFileName);if(Yn){if(Ln&&Ve(u,Ln,a,On.resolvedFileName),On.resolvedUsingTsExtension&&Ed(a)){let $n=((_e=Fn(n,Lc))==null?void 0:_e.importClause)||Fn(n,jm(td,Xl));($n&&!$n.isTypeOnly||Fn(n,Op))&&Ve(u,f.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,jn(x.checkDefined(_6(a))))}else if(On.resolvedUsingTsExtension&&!XR(B,sn.fileName)){let $n=((je=Fn(n,Lc))==null?void 0:je.importClause)||Fn(n,jm(td,Xl));if(!($n?.isTypeOnly||Fn(n,rg))){let Ro=x.checkDefined(_6(a));Ve(u,f.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,Ro)}}if(Yn.symbol){if(On.isExternalLibraryImport&&!GN(On.extension)&&Y1(!1,u,sn,Mn,On,a),an===3||an===99){let $n=sn.impliedNodeFormat===1&&!Fn(n,Op)||!!Fn(n,td),Ro=Fn(n,bo=>rg(bo)||Xl(bo)||Lc(bo));if($n&&Yn.impliedNodeFormat===99&&!Moe(Ro))if(Fn(n,td))Ve(u,f.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,a);else{let bo,Fo=Wg(sn.fileName);if(Fo===".ts"||Fo===".js"||Fo===".tsx"||Fo===".jsx"){let fo=sn.packageJsonScope,Rc=Fo===".ts"?".mts":Fo===".js"?".mjs":void 0;fo&&!fo.contents.packageJsonContent.type?Rc?bo=zo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,Rc,Yr(fo.packageDirectory,"package.json")):bo=zo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,Yr(fo.packageDirectory,"package.json")):Rc?bo=zo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,Rc):bo=zo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}Qa.add(Mg(Gn(u),u,zo(bo,f.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,a)))}}return es(Yn.symbol)}c&&Ve(u,f.File_0_is_not_a_module,Yn.fileName);return}if(im){let $n=KG(im,Ro=>Ro.pattern,a);if($n){let Ro=fu&&fu.get(a);return es(Ro||$n.symbol)}}if(On&&!GN(On.extension)&&Ln===void 0||Ln===f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(_){let $n=f.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;Ve(u,$n,a,On.resolvedFileName)}else Y1(fe&&!!c,u,sn,Mn,On,a);return}if(c){if(On){let $n=e.getProjectReferenceRedirect(On.resolvedFileName);if($n){Ve(u,f.Output_file_0_has_not_been_built_from_source_file_1,$n,On.resolvedFileName);return}}if(Ln)Ve(u,Ln,a,On.resolvedFileName);else{let $n=Lp(a)&&!mI(a),Ro=an===3||an===99;if(!mE(B)&&Sl(a,".json")&&an!==1&&I6(B))Ve(u,f.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(Mn===99&&Ro&&$n){let bo=ho(a,oi(sn.path)),Fo=(mt=zD.find(([fo,Rc])=>e.fileExists(bo+fo)))==null?void 0:mt[1];Fo?Ve(u,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+Fo):Ve(u,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else if((At=e.getResolvedModule(sn,a,Mn))!=null&&At.alternateResult){let bo=bF(sn,e,a,Mn,a);md(!0,u,zo(bo,c,a))}else Ve(u,c,a)}}return;function jn($n){let Ro=lk(a,$n);if(A6(z)||Mn===99){let bo=Ed(a)&&XR(B);return Ro+($n===".mts"||$n===".d.mts"?bo?".mts":".mjs":$n===".cts"||$n===".d.mts"?bo?".cts":".cjs":bo?".ts":".js")}return Ro}}function Y1(n,a,c,u,{packageId:_,resolvedFileName:g},T){let P;!Yc(T)&&_&&(P=bF(c,e,T,u,_.name)),md(n,a,zo(P,f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,T,g))}function Ip(n,a){if(n?.exports){let c=Vl(n.exports.get("export="),a),u=$1(es(c),es(n));return es(u)||n}}function $1(n,a){if(!n||n===lt||n===a||a.exports.size===1||n.flags&2097152)return n;let c=qi(n);if(c.cjsExportMerged)return c.cjsExportMerged;let u=n.flags&33554432?n:pA(n);return u.flags=u.flags|512,u.exports===void 0&&(u.exports=aa()),a.exports.forEach((_,g)=>{g!=="export="&&u.exports.set(g,u.exports.has(g)?om(u.exports.get(g),_):_)}),u===n&&(qi(u).resolvedExports=void 0,qi(u).resolvedMembers=void 0),qi(u).cjsExportMerged=u,c.cjsExportMerged=u}function ip(n,a,c,u){var _;let g=Ip(n,c);if(!c&&g){if(!u&&!(g.flags&1539)&&!cl(g,312)){let P=z>=5?"allowSyntheticDefaultImports":"esModuleInterop";return Ve(a,f.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,P),g}let T=a.parent;if(Lc(T)&&nR(T)||Op(T)){let P=Op(T)?T.arguments[0]:T.moduleSpecifier,W=sr(g),V=oFe(W,g,n,P);if(V)return Q1(g,V,T);let te=(_=n?.declarations)==null?void 0:_.find(Yi),ye=te&&uf(Qi(P),te.impliedNodeFormat);if(mh(B)||ye){let _e=n5(W,0);if((!_e||!_e.length)&&(_e=n5(W,1)),_e&&_e.length||ha(W,"default",!0)||ye){let je=W.flags&3670016?aFe(W,g,n,P):hve(g,g.parent);return Q1(g,je,T)}}}}return g}function Q1(n,a,c){let u=Ka(n.flags,n.escapedName);u.declarations=n.declarations?n.declarations.slice():[],u.parent=n.parent,u.links.target=n,u.links.originatingImport=c,n.valueDeclaration&&(u.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(u.constEnumOnlyModule=!0),n.members&&(u.members=new Map(n.members)),n.exports&&(u.exports=new Map(n.exports));let _=l_(a);return u.links.type=Ds(u,_.members,Xe,Xe,_.indexInfos),u}function iv(n){return n.exports.get("export=")!==void 0}function AA(n){return age(Dh(n))}function JD(n){let a=AA(n),c=Ip(n);if(c!==n){let u=sr(c);gb(u)&&Hr(a,ms(u))}return a}function qD(n,a){Dh(n).forEach((_,g)=>{xS(g)||a(_,g)});let u=Ip(n);if(u!==n){let _=sr(u);gb(_)&&nat(_,(g,T)=>{a(g,T)})}}function IA(n,a){let c=Dh(a);if(c)return c.get(n)}function XD(n,a){let c=IA(n,a);if(c)return c;let u=Ip(a);if(u===a)return;let _=sr(u);return gb(_)?ha(_,n):void 0}function gb(n){return!(n.flags&402784252||Lr(n)&1||Gf(n)||wa(n))}function xp(n){return n.flags&6256?Uhe(n,"resolvedExports"):n.flags&1536?Dh(n):n.exports||K}function Dh(n){let a=qi(n);if(!a.resolvedExports){let{exports:c,typeOnlyExportStarMap:u}=xA(n);a.resolvedExports=c,a.typeOnlyExportStarMap=u}return a.resolvedExports}function YD(n,a,c,u){a&&a.forEach((_,g)=>{if(g==="default")return;let T=n.get(g);if(!T)n.set(g,_),c&&u&&c.set(g,{specifierText:uc(u.moduleSpecifier)});else if(c&&u&&T&&Vl(T)!==Vl(_)){let P=c.get(g);P.exportsWithDuplicate?P.exportsWithDuplicate.push(u):P.exportsWithDuplicate=[u]}})}function xA(n){let a=[],c,u=new Set;n=Ip(n);let _=g(n)||K;return c&&u.forEach(T=>c.delete(T)),{exports:_,typeOnlyExportStarMap:c};function g(T,P,W){if(!W&&T?.exports&&T.exports.forEach((ye,_e)=>u.add(_e)),!(T&&T.exports&&yf(a,T)))return;let V=new Map(T.exports),te=T.exports.get("__export");if(te){let ye=aa(),_e=new Map;if(te.declarations)for(let je of te.declarations){let mt=mu(je,je.moduleSpecifier),At=g(mt,je,W||je.isTypeOnly);YD(ye,At,_e,je)}_e.forEach(({exportsWithDuplicate:je},mt)=>{if(!(mt==="export="||!(je&&je.length)||V.has(mt)))for(let At of je)Qa.add(Pr(At,f.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,_e.get(mt).specifierText,Vi(mt)))}),YD(V,ye)}return P?.isTypeOnly&&(c??(c=new Map),V.forEach((ye,_e)=>c.set(_e,P))),V}}function es(n){let a;return n&&n.mergeId&&(a=OD[n.mergeId])?a:n}function Sr(n){return es(n.symbol&&fZ(n.symbol))}function pf(n){return b_(n)?Sr(n):void 0}function Ru(n){return es(n.parent&&fZ(n.parent))}function AS(n){var a,c;return(((a=n.valueDeclaration)==null?void 0:a.kind)===219||((c=n.valueDeclaration)==null?void 0:c.kind)===218)&&pf(n.valueDeclaration.parent)||n}function $D(n,a){let c=Gn(a),u=rs(c),_=qi(n),g;if(_.extendedContainersByFile&&(g=_.extendedContainersByFile.get(u)))return g;if(c&&c.imports){for(let P of c.imports){if(Ks(P))continue;let W=mu(a,P,!0);!W||!mg(W,n)||(g=Tn(g,W))}if(Nn(g))return(_.extendedContainersByFile||(_.extendedContainersByFile=new Map)).set(u,g),g}if(_.extendedContainers)return _.extendedContainers;let T=e.getSourceFiles();for(let P of T){if(!oc(P))continue;let W=Sr(P);mg(W,n)&&(g=Tn(g,W))}return _.extendedContainers=g||Xe}function HE(n,a,c){let u=Ru(n);if(u&&!(n.flags&262144))return W(u);let _=to(n.declarations,te=>{if(!Md(te)&&te.parent){if(Qd(te.parent))return Sr(te.parent);if(N_(te.parent)&&te.parent.parent&&Ip(Sr(te.parent.parent))===n)return Sr(te.parent.parent)}if(Zc(te)&&dr(te.parent)&&te.parent.operatorToken.kind===64&&Ns(te.parent.left)&&Bl(te.parent.left.expression))return Yh(te.parent.left)||hT(te.parent.left.expression)?Sr(Gn(te)):(tc(te.parent.left.expression),Qr(te.parent.left.expression).resolvedSymbol)});if(!Nn(_))return;let g=to(_,te=>mg(te,n)?te:void 0),T=[],P=[];for(let te of g){let[ye,..._e]=W(te);T=Tn(T,ye),P=Hr(P,_e)}return Eo(T,P);function W(te){let ye=to(te.declarations,V),_e=a&&$D(n,a),je=IS(te,c);if(a&&te.flags&ry(c)&&yb(te,a,1920,!1))return Tn(Eo(Eo([te],ye),_e),je);let mt=!(te.flags&ry(c))&&te.flags&788968&&Xs(te).flags&524288&&c===111551?DS(a,rn=>Gc(rn,sn=>{if(sn.flags&ry(c)&&sr(sn)===Xs(te))return sn})):void 0,At=mt?[mt,...ye,te]:[...ye,te];return At=Tn(At,je),At=Hr(At,_e),At}function V(te){return u&&RA(te,u)}}function IS(n,a){let c=!!Nn(n.declarations)&&Va(n.declarations);if(a&111551&&c&&c.parent&&wi(c.parent)&&(Ma(c)&&c===c.parent.initializer||gp(c)&&c===c.parent.type))return Sr(c.parent)}function RA(n,a){let c=Zi(n),u=c&&c.exports&&c.exports.get("export=");return u&&r_(u,a)?c:void 0}function mg(n,a){if(n===Ru(a))return a;let c=n.exports&&n.exports.get("export=");if(c&&r_(c,a))return n;let u=xp(n),_=u.get(a.escapedName);return _&&r_(_,a)?_:Gc(u,g=>{if(r_(g,a))return g})}function r_(n,a){if(es(Vl(es(n)))===es(Vl(es(a))))return n}function ff(n){return es(n&&(n.flags&1048576)!==0&&n.exportSymbol||n)}function wm(n,a){return!!(n.flags&111551||n.flags&2097152&&Td(n,!a)&111551)}function ny(n){let a=n.members;for(let c of a)if(c.kind===176&&Hf(c.body))return c}function _g(n){var a;let c=new p(Xt,n);return m++,c.id=m,(a=rr)==null||a.recordType(c),c}function hg(n,a){let c=_g(n);return c.symbol=a,c}function Z1(n){return new p(Xt,n)}function sc(n,a,c=0,u){QD(a,u);let _=_g(n);return _.intrinsicName=a,_.debugIntrinsicName=u,_.objectFlags=c|524288|2097152|33554432|16777216,_}function QD(n,a){let c=`${n},${a??""}`;st.has(c)&&x.fail(`Duplicate intrinsic type name ${n}${a?` (${a})`:""}; you may need to pass a name to createIntrinsicType.`),st.add(c)}function kf(n,a){let c=hg(524288,a);return c.objectFlags=n,c.members=void 0,c.properties=void 0,c.callSignatures=void 0,c.constructSignatures=void 0,c.indexInfos=void 0,c}function Ch(){return ei(Wo(EK.keys(),Uu))}function mf(n){return hg(262144,n)}function xS(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function KE(n){let a;return n.forEach((c,u)=>{ex(c,u)&&(a||(a=[])).push(c)}),a||Xe}function ex(n,a){return!xS(a)&&wm(n)}function DA(n){let a=KE(n),c=vZ(n);return c?Eo(a,[c]):a}function _f(n,a,c,u,_){let g=n;return g.members=a,g.properties=Xe,g.callSignatures=c,g.constructSignatures=u,g.indexInfos=_,a!==K&&(g.properties=KE(a)),g}function Ds(n,a,c,u,_){return _f(kf(16,n),a,c,u,_)}function RS(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;let a=jr(n.constructSignatures,u=>!(u.flags&4));if(n.constructSignatures===a)return n;let c=Ds(n.symbol,n.members,n.callSignatures,gt(a)?a:Xe,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=c,c.objectTypeWithoutAbstractConstructSignatures=c,c}function DS(n,a){let c;for(let u=n;u;u=u.parent){if(lh(u)&&u.locals&&!xh(u)&&(c=a(u.locals,void 0,!0,u)))return c;switch(u.kind){case 312:if(!wp(u))break;case 267:let _=Sr(u);if(c=a(_?.exports||K,void 0,!0,u))return c;break;case 263:case 231:case 264:let g;if((Sr(u).members||K).forEach((T,P)=>{T.flags&788968&&(g||(g=aa())).set(P,T)}),g&&(c=a(g,void 0,!1,u)))return c;break}}return a(be,void 0,!0)}function ry(n){return n===111551?111551:1920}function yb(n,a,c,u,_=new Map){if(!(n&&!I(n)))return;let g=qi(n),T=g.accessibleChainCache||(g.accessibleChainCache=new Map),P=DS(a,(sn,nr,Mn,an)=>an),W=`${u?0:1}|${P&&rs(P)}|${c}`;if(T.has(W))return T.get(W);let V=ba(n),te=_.get(V);te||_.set(V,te=[]);let ye=DS(a,_e);return T.set(W,ye),ye;function _e(sn,nr,Mn){if(!yf(te,sn))return;let an=At(sn,nr,Mn);return te.pop(),an}function je(sn,nr){return!JE(sn,a,nr)||!!yb(sn.parent,a,ry(nr),u,_)}function mt(sn,nr,Mn){return(n===(nr||sn)||es(n)===es(nr||sn))&&!gt(sn.declarations,Qd)&&(Mn||je(es(sn),c))}function At(sn,nr,Mn){return mt(sn.get(n.escapedName),void 0,nr)?[n]:Gc(sn,On=>{if(On.flags&2097152&&On.escapedName!=="export="&&On.escapedName!=="default"&&!(b6(On)&&a&&oc(Gn(a)))&&(!u||gt(On.declarations,aE))&&(!Mn||!gt(On.declarations,cie))&&(nr||!cl(On,281))){let Ln=Wc(On),Yn=rn(On,Ln,nr);if(Yn)return Yn}if(On.escapedName===n.escapedName&&On.exportSymbol&&mt(es(On.exportSymbol),void 0,nr))return[n]})||(sn===be?rn(tt,tt,nr):void 0)}function rn(sn,nr,Mn){if(mt(sn,nr,Mn))return[sn];let an=xp(nr),On=an&&_e(an,!0);if(On&&je(sn,ry(c)))return[sn].concat(On)}}function JE(n,a,c){let u=!1;return DS(a,_=>{let g=es(_.get(n.escapedName));if(!g)return!1;if(g===n)return!0;let T=g.flags&2097152&&!cl(g,281);return g=T?Wc(g):g,(T?Td(g):g.flags)&c?(u=!0,!0):!1}),u}function I(n){if(n.declarations&&n.declarations.length){for(let a of n.declarations)switch(a.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function oe(n,a){return vi(n,a,788968,!1,!0).accessibility===0}function dt(n,a){return vi(n,a,111551,!1,!0).accessibility===0}function nn(n,a,c){return vi(n,a,c,!1,!1).accessibility===0}function Mr(n,a,c,u,_,g){if(!Nn(n))return;let T,P=!1;for(let W of n){let V=yb(W,a,u,!1);if(V){T=W;let _e=Du(V[0],_);if(_e)return _e}if(g&>(W.declarations,Qd)){if(_){P=!0;continue}return{accessibility:0}}let te=HE(W,a,u),ye=Mr(te,a,c,c===W?ry(u):u,_,g);if(ye)return ye}if(P)return{accessibility:0};if(T)return{accessibility:1,errorSymbolName:Si(c,a,u),errorModuleName:T!==c?Si(T,a,1920):void 0}}function ki(n,a,c,u){return vi(n,a,c,u,!0)}function vi(n,a,c,u,_){if(n&&a){let g=Mr([n],a,n,c,u,_);if(g)return g;let T=gn(n.declarations,Zi);if(T){let P=Zi(a);if(T!==P)return{accessibility:2,errorSymbolName:Si(n,a,c),errorModuleName:Si(T),errorNode:ir(a)?a:void 0}}return{accessibility:1,errorSymbolName:Si(n,a,c)}}return{accessibility:0}}function Zi(n){let a=Fn(n,_a);return a&&Sr(a)}function _a(n){return Md(n)||n.kind===312&&wp(n)}function Qd(n){return xF(n)||n.kind===312&&wp(n)}function Du(n,a){let c;if(!oo(jr(n.declarations,g=>g.kind!==80),u))return;return{accessibility:0,aliasesToMakeVisible:c};function u(g){var T,P;if(!i_(g)){let W=_A(g);if(W&&!$r(W,32)&&i_(W.parent))return _(g,W);if(wi(g)&&Ml(g.parent.parent)&&!$r(g.parent.parent,32)&&i_(g.parent.parent.parent))return _(g,g.parent.parent);if(RF(g)&&!$r(g,32)&&i_(g.parent))return _(g,g);if(Xa(g)){if(n.flags&2097152&&ir(g)&&((T=g.parent)!=null&&T.parent)&&wi(g.parent.parent)&&((P=g.parent.parent.parent)!=null&&P.parent)&&Ml(g.parent.parent.parent.parent)&&!$r(g.parent.parent.parent.parent,32)&&g.parent.parent.parent.parent.parent&&i_(g.parent.parent.parent.parent.parent))return _(g,g.parent.parent.parent.parent);if(n.flags&2){let V=Fn(g,Ml);return $r(V,32)?!0:i_(V.parent)?_(g,V):!1}}return!1}return!0}function _(g,T){return a&&(Qr(g).isVisible=!0,c=xg(c,T)),!0}}function wf(n){let a;return n.parent.kind===186||n.parent.kind===233&&!qh(n.parent)||n.parent.kind===167?a=1160127:n.kind===166||n.kind===211||n.parent.kind===271||n.parent.kind===166&&n.parent.left===n||n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n?a=1920:a=788968,a}function vb(n,a){let c=wf(n),u=Fp(n),_=hl(a,u.escapedText,c,void 0,void 0,!1);return _&&_.flags&262144&&c&788968?{accessibility:0}:!_&&k0(u)&&ki(Sr(Lu(u,!1,!1)),u,c,!1).accessibility===0?{accessibility:0}:_&&Du(_,!0)||{accessibility:1,errorSymbolName:uc(u),errorNode:u}}function Si(n,a,c,u=4,_){let g=70221824;u&2&&(g|=128),u&1&&(g|=512),u&8&&(g|=16384),u&32&&(g|=134217728),u&16&&(g|=1073741824);let T=u&4?Et.symbolToNode:Et.symbolToEntityName;return _?P(_).getText():cN(P);function P(W){let V=T(n,c,a,g),te=a?.kind===312?YK():rS(),ye=a&&Gn(a);return te.writeNode(4,V,ye,W),W}}function Nh(n,a,c=0,u,_){return _?g(_).getText():cN(g);function g(T){let P;c&262144?P=u===1?185:184:P=u===1?180:179;let W=Et.signatureToSignatureDeclaration(n,P,a,CA(c)|70221824|512),V=xw(),te=a&&Gn(a);return V.writeNode(4,W,te,Oj(T)),T}}function Vn(n,a,c=1064960,u=$2("")){let _=B.noErrorTruncation||c&1,g=Et.typeToTypeNode(n,a,CA(c)|70221824|(_?1:0));if(g===void 0)return x.fail("should always get typenode");let T=n!==Ft?rS():XK(),P=a&&Gn(a);T.writeNode(4,g,P,u);let W=u.getText(),V=_?K6*2:mk*2;return V&&W&&W.length>=V?W.substr(0,V-3)+"...":W}function tx(n,a){let c=Eb(n.symbol)?Vn(n,n.symbol.valueDeclaration):Vn(n),u=Eb(a.symbol)?Vn(a,a.symbol.valueDeclaration):Vn(a);return c===u&&(c=bb(n),u=bb(a)),[c,u]}function bb(n){return Vn(n,void 0,64)}function Eb(n){return n&&!!n.valueDeclaration&&ht(n.valueDeclaration)&&!zf(n.valueDeclaration)}function CA(n=0){return n&848330095}function CS(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===Wf(n.symbol)||!!(n.flags&524288)&&!!(Lr(n)&16777216))}function U_(){return{typeToTypeNode:(ot,Se,Cn,Rr)=>a(Se,Cn,Rr,di=>u(ot,di)),indexInfoToIndexSignatureDeclaration:(ot,Se,Cn,Rr)=>a(Se,Cn,Rr,di=>te(ot,di,void 0)),signatureToSignatureDeclaration:(ot,Se,Cn,Rr,di)=>a(Cn,Rr,di,Ai=>ye(ot,Se,Ai)),symbolToEntityName:(ot,Se,Cn,Rr,di)=>a(Cn,Rr,di,Ai=>fo(ot,Ai,Se,!1)),symbolToExpression:(ot,Se,Cn,Rr,di)=>a(Cn,Rr,di,Ai=>Rc(ot,Ai,Se)),symbolToTypeParameterDeclarations:(ot,Se,Cn,Rr)=>a(Se,Cn,Rr,di=>On(ot,di)),symbolToParameterDeclaration:(ot,Se,Cn,Rr)=>a(Se,Cn,Rr,di=>rn(ot,di)),typeParameterToDeclaration:(ot,Se,Cn,Rr)=>a(Se,Cn,Rr,di=>mt(ot,di)),symbolTableToDeclarationStatements:(ot,Se,Cn,Rr,di)=>a(Se,Cn,Rr,Ai=>gl(ot,Ai,di)),symbolToNode:(ot,Se,Cn,Rr,di)=>a(Cn,Rr,di,Ai=>n(ot,Ai,Se))};function n(ot,Se,Cn){if(Se.flags&1073741824){if(ot.valueDeclaration){let di=Po(ot.valueDeclaration);if(di&&Ya(di))return di}let Rr=qi(ot).nameType;if(Rr&&Rr.flags&9216)return Se.enclosingDeclaration=Rr.symbol.valueDeclaration,L.createComputedPropertyName(Rc(Rr.symbol,Se,Cn))}return Rc(ot,Se,Cn)}function a(ot,Se,Cn,Rr){x.assert(ot===void 0||(ot.flags&16)===0);let di=Cn?.trackSymbol?Cn.moduleResolverHost:Se&134217728?OGe(e):void 0,Ai={enclosingDeclaration:ot,flags:Se||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0};Ai.tracker=new SK(Ai,Cn,di);let Ii=Rr(Ai);return Ai.truncating&&Ai.flags&1&&Ai.tracker.reportTruncationError(),Ai.encounteredError?void 0:Ii}function c(ot){return ot.truncating?ot.truncating:ot.truncating=ot.approximateLength>(ot.flags&1?K6:mk)}function u(ot,Se){let Cn=Se.flags,Rr=_(ot,Se);return Se.flags=Cn,Rr}function _(ot,Se){var Cn,Rr;i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let di=Se.flags&8388608;if(Se.flags&=-8388609,!ot){if(!(Se.flags&262144)){Se.encounteredError=!0;return}return Se.approximateLength+=3,L.createKeywordTypeNode(133)}if(Se.flags&536870912||(ot=c_(ot)),ot.flags&1)return ot.aliasSymbol?L.createTypeReferenceNode($n(ot.aliasSymbol),W(ot.aliasTypeArguments,Se)):ot===Ft?rP(L.createKeywordTypeNode(133),3,"unresolved"):(Se.approximateLength+=3,L.createKeywordTypeNode(ot===dn?141:133));if(ot.flags&2)return L.createKeywordTypeNode(159);if(ot.flags&4)return Se.approximateLength+=6,L.createKeywordTypeNode(154);if(ot.flags&8)return Se.approximateLength+=6,L.createKeywordTypeNode(150);if(ot.flags&64)return Se.approximateLength+=6,L.createKeywordTypeNode(163);if(ot.flags&16&&!ot.aliasSymbol)return Se.approximateLength+=7,L.createKeywordTypeNode(136);if(ot.flags&1056){if(ot.symbol.flags&8){let An=Ru(ot.symbol),Zr=Ro(An,Se,788968);if(Xs(An)===ot)return Zr;let Gi=vl(ot.symbol);return Yp(Gi,0)?bi(Zr,L.createTypeReferenceNode(Gi,void 0)):rg(Zr)?(Zr.isTypeOf=!0,L.createIndexedAccessTypeNode(Zr,L.createLiteralTypeNode(L.createStringLiteral(Gi)))):If(Zr)?L.createIndexedAccessTypeNode(L.createTypeQueryNode(Zr.typeName),L.createLiteralTypeNode(L.createStringLiteral(Gi))):x.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return Ro(ot.symbol,Se,788968)}if(ot.flags&128)return Se.approximateLength+=ot.value.length+2,L.createLiteralTypeNode(lr(L.createStringLiteral(ot.value,!!(Se.flags&268435456)),16777216));if(ot.flags&256){let An=ot.value;return Se.approximateLength+=(""+An).length,L.createLiteralTypeNode(An<0?L.createPrefixUnaryExpression(41,L.createNumericLiteral(-An)):L.createNumericLiteral(An))}if(ot.flags&2048)return Se.approximateLength+=W0(ot.value).length+1,L.createLiteralTypeNode(L.createBigIntLiteral(ot.value));if(ot.flags&512)return Se.approximateLength+=ot.intrinsicName.length,L.createLiteralTypeNode(ot.intrinsicName==="true"?L.createTrue():L.createFalse());if(ot.flags&8192){if(!(Se.flags&1048576)){if(dt(ot.symbol,Se.enclosingDeclaration))return Se.approximateLength+=6,Ro(ot.symbol,Se,111551);Se.tracker.reportInaccessibleUniqueSymbolError&&Se.tracker.reportInaccessibleUniqueSymbolError()}return Se.approximateLength+=13,L.createTypeOperatorNode(158,L.createKeywordTypeNode(155))}if(ot.flags&16384)return Se.approximateLength+=4,L.createKeywordTypeNode(116);if(ot.flags&32768)return Se.approximateLength+=9,L.createKeywordTypeNode(157);if(ot.flags&65536)return Se.approximateLength+=4,L.createLiteralTypeNode(L.createNull());if(ot.flags&131072)return Se.approximateLength+=5,L.createKeywordTypeNode(146);if(ot.flags&4096)return Se.approximateLength+=6,L.createKeywordTypeNode(155);if(ot.flags&67108864)return Se.approximateLength+=6,L.createKeywordTypeNode(151);if(XN(ot))return Se.flags&4194304&&(!Se.encounteredError&&!(Se.flags&32768)&&(Se.encounteredError=!0),(Rr=(Cn=Se.tracker).reportInaccessibleThisError)==null||Rr.call(Cn)),Se.approximateLength+=4,L.createThisTypeNode();if(!di&&ot.aliasSymbol&&(Se.flags&16384||oe(ot.aliasSymbol,Se.enclosingDeclaration))){let An=W(ot.aliasTypeArguments,Se);return xS(ot.aliasSymbol.escapedName)&&!(ot.aliasSymbol.flags&32)?L.createTypeReferenceNode(L.createIdentifier(""),An):Nn(An)===1&&ot.aliasSymbol===Xo.symbol?L.createArrayTypeNode(An[0]):Ro(ot.aliasSymbol,Se,788968,An)}let Ai=Lr(ot);if(Ai&4)return x.assert(!!(ot.flags&524288)),ot.node?Jt(ot,Wn):Wn(ot);if(ot.flags&262144||Ai&3){if(ot.flags&262144&&Bo(Se.inferTypeParameters,ot)){Se.approximateLength+=vl(ot.symbol).length+6;let Zr,Gi=Cu(ot);if(Gi){let co=kwe(ot,!0);co&&py(Gi,co)||(Se.approximateLength+=9,Zr=Gi&&u(Gi,Se))}return L.createInferTypeNode(je(ot,Se,Zr))}if(Se.flags&4&&ot.flags&262144){let Zr=Fo(ot,Se);return Se.approximateLength+=gr(Zr).length,L.createTypeReferenceNode(L.createIdentifier(gr(Zr)),void 0)}if(ot.symbol)return Ro(ot.symbol,Se,788968);let An=(ot===de||ot===$)&&w&&w.symbol?(ot===$?"sub-":"super-")+vl(w.symbol):"?";return L.createTypeReferenceNode(L.createIdentifier(An),void 0)}if(ot.flags&1048576&&ot.origin&&(ot=ot.origin),ot.flags&3145728){let An=ot.flags&1048576?ZD(ot.types):ot.types;if(Nn(An)===1)return u(An[0],Se);let Zr=W(An,Se,!0);if(Zr&&Zr.length>0)return ot.flags&1048576?L.createUnionTypeNode(Zr):L.createIntersectionTypeNode(Zr);!Se.encounteredError&&!(Se.flags&262144)&&(Se.encounteredError=!0);return}if(Ai&48)return x.assert(!!(ot.flags&524288)),Qt(ot);if(ot.flags&4194304){let An=ot.type;Se.approximateLength+=6;let Zr=u(An,Se);return L.createTypeOperatorNode(143,Zr)}if(ot.flags&134217728){let An=ot.texts,Zr=ot.types,Gi=L.createTemplateHead(An[0]),co=L.createNodeArray(mn(Zr,(ca,vc)=>L.createTemplateLiteralTypeSpan(u(ca,Se),(vcIi(An));if(ot.flags&33554432){let An=u(ot.baseType,Se),Zr=wM(ot)&&vge("NoInfer",!1);return Zr?Ro(Zr,Se,788968,[An]):An}return x.fail("Should be unreachable.");function Ii(An){let Zr=u(An.checkType,Se);if(Se.approximateLength+=15,Se.flags&4&&An.root.isDistributive&&!(An.checkType.flags&262144)){let Dl=mf(Ka(262144,"T")),os=Fo(Dl,Se),Dc=L.createTypeReferenceNode(os);Se.approximateLength+=37;let js=VA(An.root.checkType,Dl,An.mapper),m_=Se.inferTypeParameters;Se.inferTypeParameters=An.root.inferTypeParameters;let Qe=u(io(An.root.extendsType,js),Se);Se.inferTypeParameters=m_;let vt=Br(io(Ti(An.root.node.trueType),js)),$t=Br(io(Ti(An.root.node.falseType),js));return L.createConditionalTypeNode(Zr,L.createInferTypeNode(L.createTypeParameterDeclaration(void 0,L.cloneNode(Dc.typeName))),L.createConditionalTypeNode(L.createTypeReferenceNode(L.cloneNode(os)),u(An.checkType,Se),L.createConditionalTypeNode(Dc,Qe,vt,$t),L.createKeywordTypeNode(146)),L.createKeywordTypeNode(146))}let Gi=Se.inferTypeParameters;Se.inferTypeParameters=An.root.inferTypeParameters;let co=u(An.extendsType,Se);Se.inferTypeParameters=Gi;let ca=Br(r0(An)),vc=Br(i0(An));return L.createConditionalTypeNode(Zr,co,ca,vc)}function Br(An){var Zr,Gi,co;return An.flags&1048576?(Zr=Se.visitedTypes)!=null&&Zr.has(hu(An))?(Se.flags&131072||(Se.encounteredError=!0,(co=(Gi=Se.tracker)==null?void 0:Gi.reportCyclicStructureError)==null||co.call(Gi)),g(Se)):Jt(An,ca=>u(ca,Se)):u(An,Se)}function Tr(An){return!!T8(An)}function it(An){return!!An.target&&Tr(An.target)&&!Tr(An)}function kt(An){var Zr;x.assert(!!(An.flags&524288));let Gi=An.declaration.readonlyToken?L.createToken(An.declaration.readonlyToken.kind):void 0,co=An.declaration.questionToken?L.createToken(An.declaration.questionToken.kind):void 0,ca,vc,Dl=!aC(An)&&!(LA(An).flags&2)&&Se.flags&4&&!(hf(An).flags&262144&&((Zr=Cu(hf(An)))==null?void 0:Zr.flags)&4194304);if(aC(An)){if(it(An)&&Se.flags&4){let vt=mf(Ka(262144,"T")),$t=Fo(vt,Se);vc=L.createTypeReferenceNode($t)}ca=L.createTypeOperatorNode(143,vc||u(LA(An),Se))}else if(Dl){let vt=mf(Ka(262144,"T")),$t=Fo(vt,Se);vc=L.createTypeReferenceNode($t),ca=vc}else ca=u(hf(An),Se);let os=je(s_(An),Se,ca),Dc=An.declaration.nameType?u(av(An),Se):void 0,js=u(Bb(ly(An),!!(kh(An)&4)),Se),m_=L.createMappedTypeNode(Gi,os,Dc,co,js,void 0);Se.approximateLength+=10;let Qe=lr(m_,1);if(it(An)&&Se.flags&4){let vt=io(Cu(Ti(An.declaration.typeParameter.constraint.type))||un,An.mapper);return L.createConditionalTypeNode(u(LA(An),Se),L.createInferTypeNode(L.createTypeParameterDeclaration(void 0,L.cloneNode(vc.typeName),vt.flags&2?void 0:u(vt,Se))),Qe,L.createKeywordTypeNode(146))}else if(Dl)return L.createConditionalTypeNode(u(hf(An),Se),L.createInferTypeNode(L.createTypeParameterDeclaration(void 0,L.cloneNode(vc.typeName),L.createTypeOperatorNode(143,u(LA(An),Se)))),Qe,L.createKeywordTypeNode(146));return Qe}function Qt(An){var Zr,Gi;let co=An.id,ca=An.symbol;if(ca){if(!!(Lr(An)&8388608)){let js=An.node;if(YI(js)&&Ti(js)===An){let m_=Ol(Se,js);if(m_)return m_}return(Zr=Se.visitedTypes)!=null&&Zr.has(co)?g(Se):Jt(An,ln)}let os=CS(An)?788968:111551;if($_(ca.valueDeclaration))return Ro(ca,Se,os);if(ca.flags&32&&!lZ(ca)&&!(ca.valueDeclaration&&ci(ca.valueDeclaration)&&Se.flags&2048&&(!Sc(ca.valueDeclaration)||ki(ca,Se.enclosingDeclaration,os,!1).accessibility!==0))||ca.flags&896||vc())return Ro(ca,Se,os);if((Gi=Se.visitedTypes)!=null&&Gi.has(co)){let Dc=UB(An);return Dc?Ro(Dc,Se,788968):g(Se)}else return Jt(An,ln)}else return ln(An);function vc(){var Dl;let os=!!(ca.flags&8192)&>(ca.declarations,js=>ra(js)),Dc=!!(ca.flags&16)&&(ca.parent||gn(ca.declarations,js=>js.parent.kind===312||js.parent.kind===268));if(os||Dc)return(!!(Se.flags&4096)||((Dl=Se.visitedTypes)==null?void 0:Dl.has(co)))&&(!(Se.flags&8)||dt(ca,Se.enclosingDeclaration))}}function Jt(An,Zr){var Gi,co,ca;let vc=An.id,Dl=Lr(An)&16&&An.symbol&&An.symbol.flags&32,os=Lr(An)&4&&An.node?"N"+rs(An.node):An.flags&16777216?"N"+rs(An.root.node):An.symbol?(Dl?"+":"")+ba(An.symbol):void 0;Se.visitedTypes||(Se.visitedTypes=new Set),os&&!Se.symbolDepth&&(Se.symbolDepth=new Map);let Dc=Se.enclosingDeclaration&&Qr(Se.enclosingDeclaration),js=`${hu(An)}|${Se.flags}`;Dc&&(Dc.serializedTypes||(Dc.serializedTypes=new Map));let m_=(Gi=Dc?.serializedTypes)==null?void 0:Gi.get(js);if(m_)return(co=m_.trackedSymbols)==null||co.forEach(([Gr,Fi,Oo])=>Se.tracker.trackSymbol(Gr,Fi,Oo)),m_.truncating&&(Se.truncating=!0),Se.approximateLength+=m_.addedLength,bn(m_.node);let Qe;if(os){if(Qe=Se.symbolDepth.get(os)||0,Qe>10)return g(Se);Se.symbolDepth.set(os,Qe+1)}Se.visitedTypes.add(vc);let vt=Se.trackedSymbols;Se.trackedSymbols=void 0;let $t=Se.approximateLength,Hn=Zr(An),Ar=Se.approximateLength-$t;return!Se.reportedDiagnostic&&!Se.encounteredError&&((ca=Dc?.serializedTypes)==null||ca.set(js,{node:Hn,truncating:Se.truncating,addedLength:Ar,trackedSymbols:Se.trackedSymbols})),Se.visitedTypes.delete(vc),os&&Se.symbolDepth.set(os,Qe),Se.trackedSymbols=vt,Hn;function bn(Gr){return!Ks(Gr)&&Do(Gr)===Gr?Gr:at(L.cloneNode(Sn(Gr,bn,void 0,mr)),Gr)}function mr(Gr,Fi,Oo,pa,fa){return Gr&&Gr.length===0?at(L.createNodeArray(void 0,Gr.hasTrailingComma),Gr):zn(Gr,Fi,Oo,pa,fa)}}function ln(An){if(ju(An)||An.containsError)return kt(An);let Zr=l_(An);if(!Zr.properties.length&&!Zr.indexInfos.length){if(!Zr.callSignatures.length&&!Zr.constructSignatures.length)return Se.approximateLength+=2,lr(L.createTypeLiteralNode(void 0),1);if(Zr.callSignatures.length===1&&!Zr.constructSignatures.length){let Dl=Zr.callSignatures[0];return ye(Dl,184,Se)}if(Zr.constructSignatures.length===1&&!Zr.callSignatures.length){let Dl=Zr.constructSignatures[0];return ye(Dl,185,Se)}}let Gi=jr(Zr.constructSignatures,Dl=>!!(Dl.flags&4));if(gt(Gi)){let Dl=mn(Gi,WA);return Zr.callSignatures.length+(Zr.constructSignatures.length-Gi.length)+Zr.indexInfos.length+(Se.flags&2048?yv(Zr.properties,Dc=>!(Dc.flags&4194304)):Nn(Zr.properties))&&Dl.push(RS(Zr)),u(ga(Dl),Se)}let co=Se.flags;Se.flags|=4194304;let ca=lo(Zr);Se.flags=co;let vc=L.createTypeLiteralNode(ca);return Se.approximateLength+=2,lr(vc,Se.flags&1024?0:1),vc}function Wn(An){let Zr=Vs(An);if(An.target===Xo||An.target===Zo){if(Se.flags&2){let ca=u(Zr[0],Se);return L.createTypeReferenceNode(An.target===Xo?"Array":"ReadonlyArray",[ca])}let Gi=u(Zr[0],Se),co=L.createArrayTypeNode(Gi);return An.target===Xo?co:L.createTypeOperatorNode(148,co)}else if(An.target.objectFlags&8){if(Zr=Pc(Zr,(Gi,co)=>Bb(Gi,!!(An.target.elementFlags[co]&2))),Zr.length>0){let Gi=lv(An),co=W(Zr.slice(0,Gi),Se);if(co){let{labeledElementDeclarations:ca}=An.target;for(let Dl=0;Dl0){let Dc=(An.target.typeParameters||Xe).length;vc=W(Zr.slice(co,Dc),Se)}let Dl=Se.flags;Se.flags|=16;let os=Ro(An.symbol,Se,788968,vc);return Se.flags=Dl,ca?bi(ca,os):os}}}function bi(An,Zr){if(rg(An)){let Gi=An.typeArguments,co=An.qualifier;co&&(Fe(co)?Gi!==DT(co)&&(co=Fy(L.cloneNode(co),Gi)):Gi!==DT(co.right)&&(co=L.updateQualifiedName(co,co.left,Fy(L.cloneNode(co.right),Gi)))),Gi=Zr.typeArguments;let ca=ui(Zr);for(let vc of ca)co=co?L.createQualifiedName(co,vc):vc;return L.updateImportTypeNode(An,An.argument,An.attributes,co,Gi,An.isTypeOf)}else{let Gi=An.typeArguments,co=An.typeName;Fe(co)?Gi!==DT(co)&&(co=Fy(L.cloneNode(co),Gi)):Gi!==DT(co.right)&&(co=L.updateQualifiedName(co,co.left,Fy(L.cloneNode(co.right),Gi))),Gi=Zr.typeArguments;let ca=ui(Zr);for(let vc of ca)co=L.createQualifiedName(co,vc);return L.updateTypeReferenceNode(An,co,Gi)}}function ui(An){let Zr=An.typeName,Gi=[];for(;!Fe(Zr);)Gi.unshift(Zr.right),Zr=Zr.left;return Gi.unshift(Zr),Gi}function lo(An){if(c(Se))return[L.createPropertySignature(void 0,"...",void 0,void 0)];let Zr=[];for(let ca of An.callSignatures)Zr.push(ye(ca,179,Se));for(let ca of An.constructSignatures)ca.flags&4||Zr.push(ye(ca,180,Se));for(let ca of An.indexInfos)Zr.push(te(ca,Se,An.objectFlags&1024?g(Se):void 0));let Gi=An.properties;if(!Gi)return Zr;let co=0;for(let ca of Gi){if(co++,Se.flags&2048){if(ca.flags&4194304)continue;Tf(ca)&6&&Se.tracker.reportPrivateInBaseOfClassExpression&&Se.tracker.reportPrivateInBaseOfClassExpression(Vi(ca.escapedName))}if(c(Se)&&co+2!(Wn.flags&32768)),0);for(let Wn of ln){let bi=ye(Wn,173,Se,{name:Br,questionToken:Tr});Cn.push(Jt(bi))}if(ln.length||!Tr)return}let it;T(ot,Se)?it=g(Se):(di&&(Se.reverseMappedStack||(Se.reverseMappedStack=[]),Se.reverseMappedStack.push(ot)),it=Ai?vs(Se,Ai,ot,Ii):L.createKeywordTypeNode(133),di&&Se.reverseMappedStack.pop());let kt=f_(ot)?[L.createToken(148)]:void 0;kt&&(Se.approximateLength+=9);let Qt=L.createPropertySignature(kt,Br,Tr,it);Cn.push(Jt(Qt));function Jt(ln){var Wn;let bi=(Wn=ot.declarations)==null?void 0:Wn.find(ui=>ui.kind===355);if(bi){let ui=QL(bi.comment);ui&&_E(ln,[{kind:3,text:`* - * `+ui.replace(/\n/g,` + })(name => super[name], (name, value) => super[name] = value);`}}});function mp(e){return e.kind===9}function P4(e){return e.kind===10}function Ca(e){return e.kind===11}function UI(e){return e.kind===12}function XU(e){return e.kind===14}function HI(e){return e.kind===15}function KI(e){return e.kind===16}function YU(e){return e.kind===17}function M4(e){return e.kind===18}function L4(e){return e.kind===26}function aae(e){return e.kind===28}function $U(e){return e.kind===40}function QU(e){return e.kind===41}function Pk(e){return e.kind===42}function Mk(e){return e.kind===54}function Hv(e){return e.kind===58}function sae(e){return e.kind===59}function k4(e){return e.kind===29}function lae(e){return e.kind===39}function Fe(e){return e.kind===80}function Ki(e){return e.kind===81}function JI(e){return e.kind===95}function w4(e){return e.kind===90}function aP(e){return e.kind===134}function cae(e){return e.kind===131}function ZU(e){return e.kind===135}function dae(e){return e.kind===148}function qI(e){return e.kind===126}function uae(e){return e.kind===128}function pae(e){return e.kind===164}function fae(e){return e.kind===129}function sP(e){return e.kind===108}function lP(e){return e.kind===102}function mae(e){return e.kind===84}function Tu(e){return e.kind===166}function Ya(e){return e.kind===167}function fl(e){return e.kind===168}function To(e){return e.kind===169}function yd(e){return e.kind===170}function _p(e){return e.kind===171}function Vo(e){return e.kind===172}function hh(e){return e.kind===173}function Ul(e){return e.kind===174}function Al(e){return e.kind===175}function Pl(e){return e.kind===176}function Zp(e){return e.kind===177}function hp(e){return e.kind===178}function XI(e){return e.kind===179}function Lk(e){return e.kind===180}function V0(e){return e.kind===181}function kk(e){return e.kind===182}function If(e){return e.kind===183}function gh(e){return e.kind===184}function xR(e){return e.kind===185}function YI(e){return e.kind===186}function gp(e){return e.kind===187}function wk(e){return e.kind===188}function $I(e){return e.kind===189}function RR(e){return e.kind===202}function O4(e){return e.kind===190}function W4(e){return e.kind===191}function Kv(e){return e.kind===192}function QI(e){return e.kind===193}function ZI(e){return e.kind===194}function CT(e){return e.kind===195}function NT(e){return e.kind===196}function Ok(e){return e.kind===197}function PT(e){return e.kind===198}function MT(e){return e.kind===199}function DR(e){return e.kind===200}function Jv(e){return e.kind===201}function ig(e){return e.kind===205}function eH(e){return e.kind===204}function _ae(e){return e.kind===203}function tm(e){return e.kind===206}function j0(e){return e.kind===207}function Xa(e){return e.kind===208}function pu(e){return e.kind===209}function La(e){return e.kind===210}function wr(e){return e.kind===211}function qs(e){return e.kind===212}function ra(e){return e.kind===213}function U0(e){return e.kind===214}function H0(e){return e.kind===215}function hae(e){return e.kind===216}function Wu(e){return e.kind===217}function Ms(e){return e.kind===218}function Fs(e){return e.kind===219}function gae(e){return e.kind===220}function CR(e){return e.kind===221}function e1(e){return e.kind===222}function qv(e){return e.kind===223}function Xv(e){return e.kind===224}function tH(e){return e.kind===225}function ur(e){return e.kind===226}function NR(e){return e.kind===227}function F4(e){return e.kind===228}function z4(e){return e.kind===229}function qm(e){return e.kind===230}function $c(e){return e.kind===231}function Gc(e){return e.kind===232}function By(e){return e.kind===233}function Wk(e){return e.kind===234}function nH(e){return e.kind===238}function t1(e){return e.kind===235}function cP(e){return e.kind===236}function qSe(e){return e.kind===237}function B4(e){return e.kind===360}function dP(e){return e.kind===361}function uP(e){return e.kind===239}function yae(e){return e.kind===240}function Ho(e){return e.kind===241}function Ml(e){return e.kind===243}function rH(e){return e.kind===242}function Qc(e){return e.kind===244}function LT(e){return e.kind===245}function XSe(e){return e.kind===246}function YSe(e){return e.kind===247}function kT(e){return e.kind===248}function G4(e){return e.kind===249}function Fk(e){return e.kind===250}function $Se(e){return e.kind===251}function QSe(e){return e.kind===252}function Sm(e){return e.kind===253}function vae(e){return e.kind===254}function pP(e){return e.kind===255}function K0(e){return e.kind===256}function iH(e){return e.kind===257}function wT(e){return e.kind===258}function ZSe(e){return e.kind===259}function Oi(e){return e.kind===260}function Vc(e){return e.kind===261}function Ec(e){return e.kind===262}function Sc(e){return e.kind===263}function fu(e){return e.kind===264}function Tm(e){return e.kind===265}function gE(e){return e.kind===266}function ql(e){return e.kind===267}function N_(e){return e.kind===268}function fP(e){return e.kind===269}function zk(e){return e.kind===270}function Zc(e){return e.kind===271}function Mc(e){return e.kind===272}function yh(e){return e.kind===273}function eTe(e){return e.kind===302}function bae(e){return e.kind===300}function tTe(e){return e.kind===301}function n1(e){return e.kind===300}function Eae(e){return e.kind===301}function Yv(e){return e.kind===274}function vh(e){return e.kind===280}function Fg(e){return e.kind===275}function Qu(e){return e.kind===276}function Ll(e){return e.kind===277}function Xl(e){return e.kind===278}function xf(e){return e.kind===279}function Hd(e){return e.kind===281}function nTe(e){return e.kind===282}function oH(e){return e.kind===359}function r1(e){return e.kind===362}function bh(e){return e.kind===283}function og(e){return e.kind===284}function OT(e){return e.kind===285}function P_(e){return e.kind===286}function J0(e){return e.kind===287}function q0(e){return e.kind===288}function i1(e){return e.kind===289}function Sae(e){return e.kind===290}function M_(e){return e.kind===291}function X0(e){return e.kind===292}function o1(e){return e.kind===293}function mP(e){return e.kind===294}function Xm(e){return e.kind===295}function PR(e){return e.kind===296}function _P(e){return e.kind===297}function ef(e){return e.kind===298}function Y0(e){return e.kind===299}function mc(e){return e.kind===303}function Zu(e){return e.kind===304}function Gy(e){return e.kind===305}function $0(e){return e.kind===306}function Tae(e){return e.kind===308}function Yi(e){return e.kind===312}function aH(e){return e.kind===313}function WT(e){return e.kind===314}function Q0(e){return e.kind===316}function hP(e){return e.kind===317}function yE(e){return e.kind===318}function Aae(e){return e.kind===331}function Iae(e){return e.kind===332}function rTe(e){return e.kind===333}function xae(e){return e.kind===319}function Rae(e){return e.kind===320}function MR(e){return e.kind===321}function V4(e){return e.kind===322}function sH(e){return e.kind===323}function LR(e){return e.kind===324}function j4(e){return e.kind===325}function iTe(e){return e.kind===326}function Ym(e){return e.kind===327}function FT(e){return e.kind===329}function vE(e){return e.kind===330}function a1(e){return e.kind===335}function oTe(e){return e.kind===337}function Dae(e){return e.kind===339}function lH(e){return e.kind===345}function cH(e){return e.kind===340}function dH(e){return e.kind===341}function uH(e){return e.kind===342}function pH(e){return e.kind===343}function U4(e){return e.kind===344}function kR(e){return e.kind===346}function fH(e){return e.kind===338}function aTe(e){return e.kind===354}function Bk(e){return e.kind===347}function $m(e){return e.kind===348}function H4(e){return e.kind===349}function mH(e){return e.kind===350}function gP(e){return e.kind===351}function nm(e){return e.kind===352}function zT(e){return e.kind===353}function sTe(e){return e.kind===334}function Cae(e){return e.kind===355}function K4(e){return e.kind===336}function J4(e){return e.kind===357}function lTe(e){return e.kind===356}function wR(e){return e.kind===358}var XBe=bt({"src/compiler/factory/nodeTests.ts"(){"use strict";Zo()}});function Gk(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function BT(e,t,r,i){if(Ya(r))return at(e.createElementAccessExpression(t,r.expression),i);{let o=at(Kh(r)?e.createPropertyAccessExpression(t,r):e.createElementAccessExpression(t,r),r);return D_(o,128),o}}function Nae(e,t){let r=Eh.createIdentifier(e||"React");return ja(r,Ro(t)),r}function Pae(e,t,r){if(Tu(t)){let i=Pae(e,t.left,r),o=e.createIdentifier(yr(t.right));return o.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,o)}else return Nae(yr(t),r)}function _H(e,t,r,i){return t?Pae(e,t,i):e.createPropertyAccessExpression(Nae(r,i),"createElement")}function YBe(e,t,r,i){return t?Pae(e,t,i):e.createPropertyAccessExpression(Nae(r,i),"Fragment")}function Mae(e,t,r,i,o,s){let l=[r];if(i&&l.push(i),o&&o.length>0)if(i||l.push(e.createNull()),o.length>1)for(let d of o)Kd(d),l.push(d);else l.push(o[0]);return at(e.createCallExpression(t,void 0,l),s)}function Lae(e,t,r,i,o,s,l){let p=[YBe(e,r,i,s),e.createNull()];if(o&&o.length>0)if(o.length>1)for(let h of o)Kd(h),p.push(h);else p.push(o[0]);return at(e.createCallExpression(_H(e,t,i,s),void 0,p),l)}function hH(e,t,r){if(Vc(t)){let i=Va(t.declarations),o=e.updateVariableDeclaration(i,i.name,void 0,void 0,r);return at(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[o])),t)}else{let i=at(e.createAssignment(t,r),t);return at(e.createExpressionStatement(i),t)}}function cTe(e,t,r){return Ho(t)?e.updateBlock(t,at(e.createNodeArray([r,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,r]),!0)}function Vk(e,t){if(Tu(t)){let r=Vk(e,t.left),i=ja(at(e.cloneNode(t.right),t.right),t.right.parent);return at(e.createPropertyAccessExpression(r,i),t)}else return ja(at(e.cloneNode(t),t),t.parent)}function gH(e,t){return Fe(t)?e.createStringLiteralFromNode(t):Ya(t)?ja(at(e.cloneNode(t.expression),t.expression),t.expression.parent):ja(at(e.cloneNode(t),t),t.parent)}function $Be(e,t,r,i,o){let{firstAccessor:s,getAccessor:l,setAccessor:d}=AT(t,r);if(r===s)return at(e.createObjectDefinePropertyCall(i,gH(e,r.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:l&&at(Rr(e.createFunctionExpression(v0(l),void 0,void 0,void 0,l.parameters,void 0,l.body),l),l),set:d&&at(Rr(e.createFunctionExpression(v0(d),void 0,void 0,void 0,d.parameters,void 0,d.body),d),d)},!o)),s)}function QBe(e,t,r){return Rr(at(e.createAssignment(BT(e,r,t.name,t.name),t.initializer),t),t)}function ZBe(e,t,r){return Rr(at(e.createAssignment(BT(e,r,t.name,t.name),e.cloneNode(t.name)),t),t)}function e5e(e,t,r){return Rr(at(e.createAssignment(BT(e,r,t.name,t.name),Rr(at(e.createFunctionExpression(v0(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function kae(e,t,r,i){switch(r.name&&Ki(r.name)&&R.failBadSyntaxKind(r.name,"Private identifiers are not allowed in object literals."),r.kind){case 177:case 178:return $Be(e,t.properties,r,i,!!t.multiLine);case 303:return QBe(e,r,i);case 304:return ZBe(e,r,i);case 174:return e5e(e,r,i)}}function q4(e,t,r,i,o){let s=t.operator;R.assert(s===46||s===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");let l=e.createTempVariable(i);r=e.createAssignment(l,r),at(r,t.operand);let d=Xv(t)?e.createPrefixUnaryExpression(s,l):e.createPostfixUnaryExpression(l,s);return at(d,t),o&&(d=e.createAssignment(o,d),at(d,t)),r=e.createComma(r,d),at(r,t),tH(t)&&(r=e.createComma(r,l),at(r,t)),r}function yH(e){return(za(e)&65536)!==0}function zg(e){return(za(e)&32768)!==0}function X4(e){return(za(e)&16384)!==0}function dTe(e){return Ca(e.expression)&&e.expression.text==="use strict"}function vH(e){for(let t of e)if(vm(t)){if(dTe(t))return t}else break}function wae(e){let t=Jc(e);return t!==void 0&&vm(t)&&dTe(t)}function jk(e){return e.kind===226&&e.operatorToken.kind===28}function yP(e){return jk(e)||dP(e)}function OR(e){return Wu(e)&&ir(e)&&!!nE(e)}function Y4(e){let t=rE(e);return R.assertIsDefined(t),t}function $4(e,t=15){switch(e.kind){case 217:return t&16&&OR(e)?!1:(t&1)!==0;case 216:case 234:case 233:case 238:return(t&2)!==0;case 235:return(t&4)!==0;case 360:return(t&8)!==0}return!1}function Yl(e,t=15){for(;$4(e,t);)e=e.expression;return e}function Oae(e,t=15){let r=e.parent;for(;$4(r,t);)r=r.parent,R.assert(r);return r}function uTe(e){return Yl(e,6)}function Kd(e){return t4(e,!0)}function Uk(e){let t=Nl(e,Yi),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function Wae(e){let t=Nl(e,Yi),r=t&&t.emitNode;return!!r&&(!!r.externalHelpersModuleName||!!r.externalHelpers)}function bH(e,t,r,i,o,s,l){if(i.importHelpers&&TI(r,i)){let d,p=Md(i);if(p>=5&&p<=99||r.impliedNodeFormat===99){let h=r4(r);if(h){let m=[];for(let y of h)if(!y.scoped){let E=y.importName;E&&yf(m,E)}if(gt(m)){m.sort(Gd),d=e.createNamedImports(mn(m,S=>TF(r,S)?e.createImportSpecifier(!1,void 0,e.createIdentifier(S)):e.createImportSpecifier(!1,e.createIdentifier(S),t.getUnscopedHelperName(S))));let y=Nl(r,Yi),E=Ld(y);E.externalHelpers=!0}}}else{let h=Fae(e,r,i,o,s||l);h&&(d=e.createNamespaceImport(h))}if(d){let h=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,d),e.createStringLiteral(Vv),void 0);return BI(h,2),h}}}function Fae(e,t,r,i,o){if(r.importHelpers&&TI(t,r)){let s=Uk(t);if(s)return s;let l=Md(r),d=(i||_h(r)&&o)&&l!==4&&(l<5||t.impliedNodeFormat===1);if(!d){let p=r4(t);if(p){for(let h of p)if(!h.scoped){d=!0;break}}}if(d){let p=Nl(t,Yi),h=Ld(p);return h.externalHelpersModuleName||(h.externalHelpersModuleName=e.createUniqueName(Vv))}}}function WR(e,t,r){let i=tR(t);if(i&&!II(t)&&!IF(t)){let o=i.name;return rl(o)?o:e.createIdentifier(T0(r,o)||yr(o))}if(t.kind===272&&t.importClause||t.kind===278&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function s1(e,t,r,i,o,s){let l=eR(t);if(l&&Ca(l))return n5e(t,i,e,o,s)||t5e(e,l,r)||e.cloneNode(l)}function t5e(e,t,r){let i=r.renamedDependencies&&r.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function Hk(e,t,r,i){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&Rs(i))return e.createStringLiteral(Wj(r,t.fileName))}}function n5e(e,t,r,i,o){return Hk(r,i.getExternalModuleFileFromDeclaration(e),t,o)}function Kk(e){if(r2(e))return e.initializer;if(mc(e)){let t=e.initializer;return Pc(t,!0)?t.right:void 0}if(Zu(e))return e.objectAssignmentInitializer;if(Pc(e,!0))return e.right;if(qm(e))return Kk(e.expression)}function $v(e){if(r2(e))return e.name;if(Ng(e)){switch(e.kind){case 303:return $v(e.initializer);case 304:return e.name;case 305:return $v(e.expression)}return}return Pc(e,!0)?$v(e.left):qm(e)?$v(e.expression):e}function Q4(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function EH(e){let t=Z4(e);return R.assert(!!t||Gy(e),"Invalid property name for binding element."),t}function Z4(e){switch(e.kind){case 208:if(e.propertyName){let r=e.propertyName;return Ki(r)?R.failBadSyntaxKind(r):Ya(r)&&pTe(r.expression)?r.expression:r}break;case 303:if(e.name){let r=e.name;return Ki(r)?R.failBadSyntaxKind(r):Ya(r)&&pTe(r.expression)?r.expression:r}break;case 305:return e.name&&Ki(e.name)?R.failBadSyntaxKind(e.name):e.name}let t=$v(e);if(t&&rc(t))return t}function pTe(e){let t=e.kind;return t===11||t===9}function FR(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function SH(e){if(e){let t=e;for(;;){if(Fe(t)||!t.body)return Fe(t)?t:t.name;t=t.body}}}function fTe(e){let t=e.kind;return t===176||t===178}function zae(e){let t=e.kind;return t===176||t===177||t===178}function TH(e){let t=e.kind;return t===303||t===304||t===262||t===176||t===181||t===175||t===282||t===243||t===264||t===265||t===266||t===267||t===271||t===272||t===270||t===278||t===277}function Bae(e){let t=e.kind;return t===175||t===303||t===304||t===282||t===270}function Gae(e){return Hv(e)||Mk(e)}function Vae(e){return Fe(e)||Ok(e)}function jae(e){return dae(e)||$U(e)||QU(e)}function Uae(e){return Hv(e)||$U(e)||QU(e)}function Hae(e){return Fe(e)||Ca(e)}function mTe(e){let t=e.kind;return t===106||t===112||t===97||E0(e)||Xv(e)}function r5e(e){return e===43}function i5e(e){return e===42||e===44||e===45}function o5e(e){return r5e(e)||i5e(e)}function a5e(e){return e===40||e===41}function s5e(e){return a5e(e)||o5e(e)}function l5e(e){return e===48||e===49||e===50}function AH(e){return l5e(e)||s5e(e)}function c5e(e){return e===30||e===33||e===32||e===34||e===104||e===103}function d5e(e){return c5e(e)||AH(e)}function u5e(e){return e===35||e===37||e===36||e===38}function p5e(e){return u5e(e)||d5e(e)}function f5e(e){return e===51||e===52||e===53}function m5e(e){return f5e(e)||p5e(e)}function _5e(e){return e===56||e===57}function h5e(e){return _5e(e)||m5e(e)}function g5e(e){return e===61||h5e(e)||ky(e)}function y5e(e){return g5e(e)||e===28}function Kae(e){return y5e(e.kind)}function e3(e,t,r,i,o,s){let l=new gTe(e,t,r,i,o,s);return d;function d(p,h){let m={value:void 0},y=[xH.enter],E=[p],S=[void 0],A=0;for(;y[A]!==xH.done;)A=y[A](l,A,y,E,S,m,h);return R.assertEqual(A,0),m.value}}function _Te(e){return e===95||e===90}function Jk(e){let t=e.kind;return _Te(t)}function hTe(e){let t=e.kind;return Cy(t)&&!_Te(t)}function Jae(e,t){if(t!==void 0)return t.length===0?t:at(e.createNodeArray([],t.hasTrailingComma),t)}function qk(e){var t;let r=e.emitNode.autoGenerate;if(r.flags&4){let i=r.id,o=e,s=o.original;for(;s;){o=s;let l=(t=o.emitNode)==null?void 0:t.autoGenerate;if(Kh(o)&&(l===void 0||l.flags&4&&l.id!==i))break;s=o.original}return o}return e}function zR(e,t){return typeof e=="object"?bE(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function v5e(e,t){return typeof e=="string"?e:b5e(e,R.checkDefined(t))}function b5e(e,t){return aT(e)?t(e).slice(1):rl(e)?t(e):Ki(e)?e.escapedText.slice(1):yr(e)}function bE(e,t,r,i,o){return t=zR(t,o),i=zR(i,o),r=v5e(r,o),`${e?"#":""}${t}${r}${i}`}function IH(e,t,r,i){return e.updatePropertyDeclaration(t,r,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,i)}function qae(e,t,r,i,o=e.createThis()){return e.createGetAccessorDeclaration(r,i,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(o,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function Xae(e,t,r,i,o=e.createThis()){return e.createSetAccessorDeclaration(r,i,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(o,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function t3(e){let t=e.expression;for(;;){if(t=Yl(t),dP(t)){t=Ja(t.elements);continue}if(jk(t)){t=t.right;continue}if(Pc(t,!0)&&rl(t.left))return t;break}}function E5e(e){return Wu(e)&&Js(e)&&!e.emitNode}function n3(e,t){if(E5e(e))n3(e.expression,t);else if(jk(e))n3(e.left,t),n3(e.right,t);else if(dP(e))for(let r of e.elements)n3(r,t);else t.push(e)}function Yae(e){let t=[];return n3(e,t),t}function Xk(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of FR(e)){let r=$v(t);if(r&&lN(r)&&(r.transformFlags&65536||r.transformFlags&128&&Xk(r)))return!0}return!1}var xH,gTe,S5e=bt({"src/compiler/factory/utilities.ts"(){"use strict";Zo(),(e=>{function t(m,y,E,S,A,N,D){let w=y>0?A[y-1]:void 0;return R.assertEqual(E[y],t),A[y]=m.onEnter(S[y],w,D),E[y]=d(m,t),y}e.enter=t;function r(m,y,E,S,A,N,D){R.assertEqual(E[y],r),R.assertIsDefined(m.onLeft),E[y]=d(m,r);let w=m.onLeft(S[y].left,A[y],S[y]);return w?(h(y,S,w),p(y,E,S,A,w)):y}e.left=r;function i(m,y,E,S,A,N,D){return R.assertEqual(E[y],i),R.assertIsDefined(m.onOperator),E[y]=d(m,i),m.onOperator(S[y].operatorToken,A[y],S[y]),y}e.operator=i;function o(m,y,E,S,A,N,D){R.assertEqual(E[y],o),R.assertIsDefined(m.onRight),E[y]=d(m,o);let w=m.onRight(S[y].right,A[y],S[y]);return w?(h(y,S,w),p(y,E,S,A,w)):y}e.right=o;function s(m,y,E,S,A,N,D){R.assertEqual(E[y],s),E[y]=d(m,s);let w=m.onExit(S[y],A[y]);if(y>0){if(y--,m.foldState){let j=E[y]===s?"right":"left";A[y]=m.foldState(A[y],w,j)}}else N.value=w;return y}e.exit=s;function l(m,y,E,S,A,N,D){return R.assertEqual(E[y],l),y}e.done=l;function d(m,y){switch(y){case t:if(m.onLeft)return r;case r:if(m.onOperator)return i;case i:if(m.onRight)return o;case o:return s;case s:return l;case l:return l;default:R.fail("Invalid state")}}e.nextState=d;function p(m,y,E,S,A){return m++,y[m]=t,E[m]=A,S[m]=void 0,m}function h(m,y,E){if(R.shouldAssert(2))for(;m>=0;)R.assert(y[m]!==E,"Circular traversal detected."),m--}})(xH||(xH={})),gTe=class{constructor(e,t,r,i,o,s){this.onEnter=e,this.onLeft=t,this.onOperator=r,this.onRight=i,this.onExit=o,this.foldState=s}}}});function at(e,t){return t?mh(e,t.pos,t.end):e}function Am(e){let t=e.kind;return t===168||t===169||t===171||t===172||t===173||t===174||t===176||t===177||t===178||t===181||t===185||t===218||t===219||t===231||t===243||t===262||t===263||t===264||t===265||t===266||t===267||t===271||t===272||t===277||t===278}function GT(e){let t=e.kind;return t===169||t===172||t===174||t===177||t===178||t===231||t===263}var T5e=bt({"src/compiler/factory/utilitiesPublic.ts"(){"use strict";Zo()}});function Jt(e,t){return t&&e(t)}function Bi(e,t,r){if(r){if(t)return t(r);for(let i of r){let o=e(i);if(o)return o}}}function RH(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function Yk(e){return gn(e.statements,A5e)||I5e(e)}function A5e(e){return Am(e)&&x5e(e,95)||Zc(e)&&bh(e.moduleReference)||Mc(e)||Ll(e)||Xl(e)?e:void 0}function I5e(e){return e.flags&8388608?yTe(e):void 0}function yTe(e){return R5e(e)?e:Bo(e,yTe)}function x5e(e,t){return gt(e.modifiers,r=>r.kind===t)}function R5e(e){return cP(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function vTe(e,t,r){return Bi(t,r,e.typeParameters)||Bi(t,r,e.parameters)||Jt(t,e.type)}function bTe(e,t,r){return Bi(t,r,e.types)}function ETe(e,t,r){return Jt(t,e.type)}function STe(e,t,r){return Bi(t,r,e.elements)}function TTe(e,t,r){return Jt(t,e.expression)||Jt(t,e.questionDotToken)||Bi(t,r,e.typeArguments)||Bi(t,r,e.arguments)}function ATe(e,t,r){return Bi(t,r,e.statements)}function ITe(e,t,r){return Jt(t,e.label)}function xTe(e,t,r){return Bi(t,r,e.modifiers)||Jt(t,e.name)||Bi(t,r,e.typeParameters)||Bi(t,r,e.heritageClauses)||Bi(t,r,e.members)}function RTe(e,t,r){return Bi(t,r,e.elements)}function DTe(e,t,r){return Jt(t,e.propertyName)||Jt(t,e.name)}function CTe(e,t,r){return Jt(t,e.tagName)||Bi(t,r,e.typeArguments)||Jt(t,e.attributes)}function vP(e,t,r){return Jt(t,e.type)}function NTe(e,t,r){return Jt(t,e.tagName)||(e.isNameFirst?Jt(t,e.name)||Jt(t,e.typeExpression):Jt(t,e.typeExpression)||Jt(t,e.name))||(typeof e.comment=="string"?void 0:Bi(t,r,e.comment))}function bP(e,t,r){return Jt(t,e.tagName)||Jt(t,e.typeExpression)||(typeof e.comment=="string"?void 0:Bi(t,r,e.comment))}function $ae(e,t,r){return Jt(t,e.name)}function BR(e,t,r){return Jt(t,e.tagName)||(typeof e.comment=="string"?void 0:Bi(t,r,e.comment))}function D5e(e,t,r){return Jt(t,e.expression)}function Bo(e,t,r){if(e===void 0||e.kind<=165)return;let i=BTe[e.kind];return i===void 0?void 0:i(e,t,r)}function EP(e,t,r){let i=PTe(e),o=[];for(;o.length=0;--d)i.push(s[d]),o.push(l)}else{let d=t(s,l);if(d){if(d==="skip")continue;return d}if(s.kind>=166)for(let p of PTe(s))i.push(p),o.push(s)}}}function PTe(e){let t=[];return Bo(e,r,r),t;function r(i){t.unshift(i)}}function MTe(e){e.externalModuleIndicator=Yk(e)}function $k(e,t,r,i=!1,o){var s,l,d,p;(s=rr)==null||s.push(rr.Phase.Parse,"createSourceFile",{path:e},!0),el("beforeParse");let h;(l=ru)==null||l.logStartParseSourceFile(e);let{languageVersion:m,setExternalModuleIndicator:y,impliedNodeFormat:E,jsDocParsingMode:S}=typeof r=="object"?r:{languageVersion:r};if(m===100)h=SE.parseSourceFile(e,t,m,void 0,i,6,qa,S);else{let A=E===void 0?y:N=>(N.impliedNodeFormat=E,(y||MTe)(N));h=SE.parseSourceFile(e,t,m,void 0,i,o,A,S)}return(d=ru)==null||d.logStopParseSourceFile(),el("afterParse"),Yp("Parse","beforeParse","afterParse"),(p=rr)==null||p.pop(),h}function l1(e,t){return SE.parseIsolatedEntityName(e,t)}function Qk(e,t){return SE.parseJsonText(e,t)}function oc(e){return e.externalModuleIndicator!==void 0}function DH(e,t,r,i=!1){let o=LH.updateSourceFile(e,t,r,i);return o.flags|=e.flags&12582912,o}function Qae(e,t,r){let i=SE.JSDocParser.parseIsolatedJSDocComment(e,t,r);return i&&i.jsDoc&&SE.fixupParentReferences(i.jsDoc),i}function LTe(e,t,r){return SE.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)}function vd(e){return CH(e)!==void 0}function CH(e){let t=Dx(e,yk,!1);if(t)return t;if(Sl(e,".ts")){let r=nc(e).lastIndexOf(".d.");if(r>=0)return e.substring(r)}}function C5e(e,t,r,i){if(e){if(e==="import")return 99;if(e==="require")return 1;i(t,r-t,f.resolution_mode_should_be_either_require_or_import)}}function NH(e,t){let r=[];for(let i of Uh(t,0)||Xe){let o=t.substring(i.pos,i.end);P5e(r,i,o)}e.pragmas=new Map;for(let i of r){if(e.pragmas.has(i.name)){let o=e.pragmas.get(i.name);o instanceof Array?o.push(i.args):e.pragmas.set(i.name,[o,i.args]);continue}e.pragmas.set(i.name,i.args)}}function PH(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((r,i)=>{switch(i){case"reference":{let o=e.referencedFiles,s=e.typeReferenceDirectives,l=e.libReferenceDirectives;gn(dI(r),d=>{let{types:p,lib:h,path:m,["resolution-mode"]:y}=d.arguments;if(d.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(p){let E=C5e(y,p.pos,p.end,t);s.push({pos:p.pos,end:p.end,fileName:p.value,...E?{resolutionMode:E}:{}})}else h?l.push({pos:h.pos,end:h.end,fileName:h.value}):m?o.push({pos:m.pos,end:m.end,fileName:m.value}):t(d.range.pos,d.range.end-d.range.pos,f.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=mn(dI(r),o=>({name:o.arguments.name,path:o.arguments.path}));break}case"amd-module":{if(r instanceof Array)for(let o of r)e.moduleName&&t(o.range.pos,o.range.end-o.range.pos,f.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=o.arguments.name;else e.moduleName=r.arguments.name;break}case"ts-nocheck":case"ts-check":{gn(dI(r),o=>{(!e.checkJsDirective||o.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:i==="ts-check",end:o.range.end,pos:o.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:R.fail("Unhandled pragma kind")}})}function N5e(e){if(kH.has(e))return kH.get(e);let t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return kH.set(e,t),t}function P5e(e,t,r){let i=t.kind===2&>e.exec(r);if(i){let s=i[1].toLowerCase(),l=ML[s];if(!l||!(l.kind&1))return;if(l.args){let d={};for(let p of l.args){let m=N5e(p.name).exec(r);if(!m&&!p.optional)return;if(m){let y=m[2]||m[3];if(p.captureSpan){let E=t.pos+m.index+m[1].length+1;d[p.name]={value:y,pos:E,end:E+y.length}}else d[p.name]=y}}e.push({name:s,args:{arguments:d,range:t}})}else e.push({name:s,args:{arguments:{},range:t}});return}let o=t.kind===2&&VTe.exec(r);if(o)return kTe(e,t,2,o);if(t.kind===3){let s=/@(\S+)(\s+.*)?$/gim,l;for(;l=s.exec(r);)kTe(e,t,4,l)}}function kTe(e,t,r,i){if(!i)return;let o=i[1].toLowerCase(),s=ML[o];if(!s||!(s.kind&r))return;let l=i[2],d=M5e(s,l);d!=="fail"&&e.push({name:o,args:{arguments:d,range:t}})}function M5e(e,t){if(!t)return{};if(!e.args)return{};let r=t.trim().split(/\s+/),i={};for(let o=0;onew(zTe||(zTe=od.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(WTe||(WTe=od.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(FTe||(FTe=od.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(OTe||(OTe=od.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(wTe||(wTe=od.getNodeConstructor()))(e,-1,-1)},Eh=Ek(1,MH),BTe={166:function(t,r,i){return Jt(r,t.left)||Jt(r,t.right)},168:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Jt(r,t.constraint)||Jt(r,t.default)||Jt(r,t.expression)},304:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Jt(r,t.questionToken)||Jt(r,t.exclamationToken)||Jt(r,t.equalsToken)||Jt(r,t.objectAssignmentInitializer)},305:function(t,r,i){return Jt(r,t.expression)},169:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.dotDotDotToken)||Jt(r,t.name)||Jt(r,t.questionToken)||Jt(r,t.type)||Jt(r,t.initializer)},172:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Jt(r,t.questionToken)||Jt(r,t.exclamationToken)||Jt(r,t.type)||Jt(r,t.initializer)},171:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Jt(r,t.questionToken)||Jt(r,t.type)||Jt(r,t.initializer)},303:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Jt(r,t.questionToken)||Jt(r,t.exclamationToken)||Jt(r,t.initializer)},260:function(t,r,i){return Jt(r,t.name)||Jt(r,t.exclamationToken)||Jt(r,t.type)||Jt(r,t.initializer)},208:function(t,r,i){return Jt(r,t.dotDotDotToken)||Jt(r,t.propertyName)||Jt(r,t.name)||Jt(r,t.initializer)},181:function(t,r,i){return Bi(r,i,t.modifiers)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Jt(r,t.type)},185:function(t,r,i){return Bi(r,i,t.modifiers)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Jt(r,t.type)},184:function(t,r,i){return Bi(r,i,t.modifiers)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Jt(r,t.type)},179:vTe,180:vTe,174:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.asteriskToken)||Jt(r,t.name)||Jt(r,t.questionToken)||Jt(r,t.exclamationToken)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Jt(r,t.type)||Jt(r,t.body)},173:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Jt(r,t.questionToken)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Jt(r,t.type)},176:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Jt(r,t.type)||Jt(r,t.body)},177:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Jt(r,t.type)||Jt(r,t.body)},178:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Jt(r,t.type)||Jt(r,t.body)},262:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.asteriskToken)||Jt(r,t.name)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Jt(r,t.type)||Jt(r,t.body)},218:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.asteriskToken)||Jt(r,t.name)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Jt(r,t.type)||Jt(r,t.body)},219:function(t,r,i){return Bi(r,i,t.modifiers)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Jt(r,t.type)||Jt(r,t.equalsGreaterThanToken)||Jt(r,t.body)},175:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.body)},183:function(t,r,i){return Jt(r,t.typeName)||Bi(r,i,t.typeArguments)},182:function(t,r,i){return Jt(r,t.assertsModifier)||Jt(r,t.parameterName)||Jt(r,t.type)},186:function(t,r,i){return Jt(r,t.exprName)||Bi(r,i,t.typeArguments)},187:function(t,r,i){return Bi(r,i,t.members)},188:function(t,r,i){return Jt(r,t.elementType)},189:function(t,r,i){return Bi(r,i,t.elements)},192:bTe,193:bTe,194:function(t,r,i){return Jt(r,t.checkType)||Jt(r,t.extendsType)||Jt(r,t.trueType)||Jt(r,t.falseType)},195:function(t,r,i){return Jt(r,t.typeParameter)},205:function(t,r,i){return Jt(r,t.argument)||Jt(r,t.attributes)||Jt(r,t.qualifier)||Bi(r,i,t.typeArguments)},302:function(t,r,i){return Jt(r,t.assertClause)},196:ETe,198:ETe,199:function(t,r,i){return Jt(r,t.objectType)||Jt(r,t.indexType)},200:function(t,r,i){return Jt(r,t.readonlyToken)||Jt(r,t.typeParameter)||Jt(r,t.nameType)||Jt(r,t.questionToken)||Jt(r,t.type)||Bi(r,i,t.members)},201:function(t,r,i){return Jt(r,t.literal)},202:function(t,r,i){return Jt(r,t.dotDotDotToken)||Jt(r,t.name)||Jt(r,t.questionToken)||Jt(r,t.type)},206:STe,207:STe,209:function(t,r,i){return Bi(r,i,t.elements)},210:function(t,r,i){return Bi(r,i,t.properties)},211:function(t,r,i){return Jt(r,t.expression)||Jt(r,t.questionDotToken)||Jt(r,t.name)},212:function(t,r,i){return Jt(r,t.expression)||Jt(r,t.questionDotToken)||Jt(r,t.argumentExpression)},213:TTe,214:TTe,215:function(t,r,i){return Jt(r,t.tag)||Jt(r,t.questionDotToken)||Bi(r,i,t.typeArguments)||Jt(r,t.template)},216:function(t,r,i){return Jt(r,t.type)||Jt(r,t.expression)},217:function(t,r,i){return Jt(r,t.expression)},220:function(t,r,i){return Jt(r,t.expression)},221:function(t,r,i){return Jt(r,t.expression)},222:function(t,r,i){return Jt(r,t.expression)},224:function(t,r,i){return Jt(r,t.operand)},229:function(t,r,i){return Jt(r,t.asteriskToken)||Jt(r,t.expression)},223:function(t,r,i){return Jt(r,t.expression)},225:function(t,r,i){return Jt(r,t.operand)},226:function(t,r,i){return Jt(r,t.left)||Jt(r,t.operatorToken)||Jt(r,t.right)},234:function(t,r,i){return Jt(r,t.expression)||Jt(r,t.type)},235:function(t,r,i){return Jt(r,t.expression)},238:function(t,r,i){return Jt(r,t.expression)||Jt(r,t.type)},236:function(t,r,i){return Jt(r,t.name)},227:function(t,r,i){return Jt(r,t.condition)||Jt(r,t.questionToken)||Jt(r,t.whenTrue)||Jt(r,t.colonToken)||Jt(r,t.whenFalse)},230:function(t,r,i){return Jt(r,t.expression)},241:ATe,268:ATe,312:function(t,r,i){return Bi(r,i,t.statements)||Jt(r,t.endOfFileToken)},243:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.declarationList)},261:function(t,r,i){return Bi(r,i,t.declarations)},244:function(t,r,i){return Jt(r,t.expression)},245:function(t,r,i){return Jt(r,t.expression)||Jt(r,t.thenStatement)||Jt(r,t.elseStatement)},246:function(t,r,i){return Jt(r,t.statement)||Jt(r,t.expression)},247:function(t,r,i){return Jt(r,t.expression)||Jt(r,t.statement)},248:function(t,r,i){return Jt(r,t.initializer)||Jt(r,t.condition)||Jt(r,t.incrementor)||Jt(r,t.statement)},249:function(t,r,i){return Jt(r,t.initializer)||Jt(r,t.expression)||Jt(r,t.statement)},250:function(t,r,i){return Jt(r,t.awaitModifier)||Jt(r,t.initializer)||Jt(r,t.expression)||Jt(r,t.statement)},251:ITe,252:ITe,253:function(t,r,i){return Jt(r,t.expression)},254:function(t,r,i){return Jt(r,t.expression)||Jt(r,t.statement)},255:function(t,r,i){return Jt(r,t.expression)||Jt(r,t.caseBlock)},269:function(t,r,i){return Bi(r,i,t.clauses)},296:function(t,r,i){return Jt(r,t.expression)||Bi(r,i,t.statements)},297:function(t,r,i){return Bi(r,i,t.statements)},256:function(t,r,i){return Jt(r,t.label)||Jt(r,t.statement)},257:function(t,r,i){return Jt(r,t.expression)},258:function(t,r,i){return Jt(r,t.tryBlock)||Jt(r,t.catchClause)||Jt(r,t.finallyBlock)},299:function(t,r,i){return Jt(r,t.variableDeclaration)||Jt(r,t.block)},170:function(t,r,i){return Jt(r,t.expression)},263:xTe,231:xTe,264:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Bi(r,i,t.typeParameters)||Bi(r,i,t.heritageClauses)||Bi(r,i,t.members)},265:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Bi(r,i,t.typeParameters)||Jt(r,t.type)},266:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Bi(r,i,t.members)},306:function(t,r,i){return Jt(r,t.name)||Jt(r,t.initializer)},267:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Jt(r,t.body)},271:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Jt(r,t.moduleReference)},272:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.importClause)||Jt(r,t.moduleSpecifier)||Jt(r,t.attributes)},273:function(t,r,i){return Jt(r,t.name)||Jt(r,t.namedBindings)},300:function(t,r,i){return Bi(r,i,t.elements)},301:function(t,r,i){return Jt(r,t.name)||Jt(r,t.value)},270:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)},274:function(t,r,i){return Jt(r,t.name)},280:function(t,r,i){return Jt(r,t.name)},275:RTe,279:RTe,278:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.exportClause)||Jt(r,t.moduleSpecifier)||Jt(r,t.attributes)},276:DTe,281:DTe,277:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.expression)},228:function(t,r,i){return Jt(r,t.head)||Bi(r,i,t.templateSpans)},239:function(t,r,i){return Jt(r,t.expression)||Jt(r,t.literal)},203:function(t,r,i){return Jt(r,t.head)||Bi(r,i,t.templateSpans)},204:function(t,r,i){return Jt(r,t.type)||Jt(r,t.literal)},167:function(t,r,i){return Jt(r,t.expression)},298:function(t,r,i){return Bi(r,i,t.types)},233:function(t,r,i){return Jt(r,t.expression)||Bi(r,i,t.typeArguments)},283:function(t,r,i){return Jt(r,t.expression)},282:function(t,r,i){return Bi(r,i,t.modifiers)},361:function(t,r,i){return Bi(r,i,t.elements)},284:function(t,r,i){return Jt(r,t.openingElement)||Bi(r,i,t.children)||Jt(r,t.closingElement)},288:function(t,r,i){return Jt(r,t.openingFragment)||Bi(r,i,t.children)||Jt(r,t.closingFragment)},285:CTe,286:CTe,292:function(t,r,i){return Bi(r,i,t.properties)},291:function(t,r,i){return Jt(r,t.name)||Jt(r,t.initializer)},293:function(t,r,i){return Jt(r,t.expression)},294:function(t,r,i){return Jt(r,t.dotDotDotToken)||Jt(r,t.expression)},287:function(t,r,i){return Jt(r,t.tagName)},295:function(t,r,i){return Jt(r,t.namespace)||Jt(r,t.name)},190:vP,191:vP,316:vP,322:vP,321:vP,323:vP,325:vP,324:function(t,r,i){return Bi(r,i,t.parameters)||Jt(r,t.type)},327:function(t,r,i){return(typeof t.comment=="string"?void 0:Bi(r,i,t.comment))||Bi(r,i,t.tags)},354:function(t,r,i){return Jt(r,t.tagName)||Jt(r,t.name)||(typeof t.comment=="string"?void 0:Bi(r,i,t.comment))},317:function(t,r,i){return Jt(r,t.name)},318:function(t,r,i){return Jt(r,t.left)||Jt(r,t.right)},348:NTe,355:NTe,337:function(t,r,i){return Jt(r,t.tagName)||(typeof t.comment=="string"?void 0:Bi(r,i,t.comment))},336:function(t,r,i){return Jt(r,t.tagName)||Jt(r,t.class)||(typeof t.comment=="string"?void 0:Bi(r,i,t.comment))},335:function(t,r,i){return Jt(r,t.tagName)||Jt(r,t.class)||(typeof t.comment=="string"?void 0:Bi(r,i,t.comment))},352:function(t,r,i){return Jt(r,t.tagName)||Jt(r,t.constraint)||Bi(r,i,t.typeParameters)||(typeof t.comment=="string"?void 0:Bi(r,i,t.comment))},353:function(t,r,i){return Jt(r,t.tagName)||(t.typeExpression&&t.typeExpression.kind===316?Jt(r,t.typeExpression)||Jt(r,t.fullName)||(typeof t.comment=="string"?void 0:Bi(r,i,t.comment)):Jt(r,t.fullName)||Jt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:Bi(r,i,t.comment)))},345:function(t,r,i){return Jt(r,t.tagName)||Jt(r,t.fullName)||Jt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:Bi(r,i,t.comment))},349:bP,351:bP,350:bP,347:bP,357:bP,356:bP,346:bP,330:function(t,r,i){return gn(t.typeParameters,r)||gn(t.parameters,r)||Jt(r,t.type)},331:$ae,332:$ae,333:$ae,329:function(t,r,i){return gn(t.jsDocPropertyTags,r)},334:BR,339:BR,340:BR,341:BR,342:BR,343:BR,338:BR,344:BR,360:D5e},(e=>{var t=Ry(99,!0),r=40960,i,o,s,l,d;function p(X){return Je++,X}var h={createBaseSourceFileNode:X=>p(new d(X,0,0)),createBaseIdentifierNode:X=>p(new s(X,0,0)),createBasePrivateIdentifierNode:X=>p(new l(X,0,0)),createBaseTokenNode:X=>p(new o(X,0,0)),createBaseNode:X=>p(new i(X,0,0))},m=Ek(11,h),{createNodeArray:y,createNumericLiteral:E,createStringLiteral:S,createLiteralLikeNode:A,createIdentifier:N,createPrivateIdentifier:D,createToken:w,createArrayLiteralExpression:j,createObjectLiteralExpression:K,createPropertyAccessExpression:Y,createPropertyAccessChain:B,createElementAccessExpression:ce,createElementAccessChain:z,createCallExpression:ee,createCallChain:me,createNewExpression:ge,createParenthesizedExpression:q,createBlock:J,createVariableStatement:re,createExpressionStatement:pe,createIfStatement:xe,createWhileStatement:fe,createForStatement:ne,createForOfStatement:he,createVariableDeclaration:Ce,createVariableDeclarationList:Ge}=m,ve,Ie,De,Le,Et,be,ze,tt,Wt,_t,Je,ft,Zt,en,Dn,Kn,pn=!0,Yt=!1;function qt(X,Ae,Ue,St,xt=!1,Ut,Or,Wi=0){var Ci;if(Ut=L6(X,Ut),Ut===6){let Xi=uo(X,Ae,Ue,St,xt);return tw(Xi,(Ci=Xi.statements[0])==null?void 0:Ci.expression,Xi.parseDiagnostics,!1,void 0),Xi.referencedFiles=Xe,Xi.typeReferenceDirectives=Xe,Xi.libReferenceDirectives=Xe,Xi.amdDependencies=Xe,Xi.hasNoDefaultLib=!1,Xi.pragmas=IW,Xi}Li(X,Ae,Ue,St,Ut,Wi);let _i=Qn(Ue,xt,Ut,Or||MTe,Wi);return Eo(),_i}e.parseSourceFile=qt;function hi(X,Ae){Li("",X,Ae,void 0,1,0),Ne();let Ue=Z(!0),St=H()===1&&!ze.length;return Eo(),St?Ue:void 0}e.parseIsolatedEntityName=hi;function uo(X,Ae,Ue=2,St,xt=!1){Li(X,Ae,Ue,St,6,0),Ie=Kn,Ne();let Ut=k(),Or,Wi;if(H()===1)Or=Mo([],Ut,Ut),Wi=ul();else{let Xi;for(;H()!==1;){let $a;switch(H()){case 23:$a=SS();break;case 112:case 97:case 106:$a=ul();break;case 41:Pi(()=>Ne()===9&&Ne()!==59)?$a=Zr():$a=Zg();break;case 9:case 11:if(Pi(()=>Ne()!==59)){$a=Yr();break}default:$a=Zg();break}Xi&&So(Xi)?Xi.push($a):Xi?Xi=[Xi,$a]:(Xi=$a,H()!==1&&dn(f.Unexpected_token))}let ds=So(Xi)?tn(j(Xi),Ut):R.checkDefined(Xi),Is=pe(ds);tn(Is,Ut),Or=Mo([Is],Ut),Wi=Es(1,f.Unexpected_token)}let Ci=Ot(X,2,6,!1,Or,Wi,Ie,qa);xt&&Ye(Ci),Ci.nodeCount=Je,Ci.identifierCount=Zt,Ci.identifiers=ft,Ci.parseDiagnostics=wI(ze,Ci),tt&&(Ci.jsDocDiagnostics=wI(tt,Ci));let _i=Ci;return Eo(),_i}e.parseJsonText=uo;function Li(X,Ae,Ue,St,xt,Ut){switch(i=od.getNodeConstructor(),o=od.getTokenConstructor(),s=od.getIdentifierConstructor(),l=od.getPrivateIdentifierConstructor(),d=od.getSourceFileConstructor(),ve=fa(X),De=Ae,Le=Ue,Wt=St,Et=xt,be=ok(xt),ze=[],en=0,ft=new Map,Zt=0,Je=0,Ie=0,pn=!0,Et){case 1:case 2:Kn=524288;break;case 6:Kn=134742016;break;default:Kn=0;break}Yt=!1,t.setText(De),t.setOnError(Pt),t.setScriptTarget(Le),t.setLanguageVariant(be),t.setScriptKind(Et),t.setJSDocParsingMode(Ut)}function Eo(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),De=void 0,Le=void 0,Wt=void 0,Et=void 0,be=void 0,Ie=0,ze=void 0,tt=void 0,en=0,ft=void 0,Dn=void 0,pn=!0}function Qn(X,Ae,Ue,St,xt){let Ut=vd(ve);Ut&&(Kn|=33554432),Ie=Kn,Ne();let Or=Qo(0,ip);R.assert(H()===1);let Wi=ie(),Ci=Er(ul(),Wi),_i=Ot(ve,X,Ue,Ut,Or,Ci,Ie,St);return NH(_i,De),PH(_i,Xi),_i.commentDirectives=t.getCommentDirectives(),_i.nodeCount=Je,_i.identifierCount=Zt,_i.identifiers=ft,_i.parseDiagnostics=wI(ze,_i),_i.jsDocParsingMode=xt,tt&&(_i.jsDocDiagnostics=wI(tt,_i)),Ae&&Ye(_i),_i;function Xi(ds,Is,$a){ze.push(gR(ve,De,ds,Is,$a))}}let Ur=!1;function Er(X,Ae){if(!Ae)return X;R.assert(!X.jsDoc);let Ue=to(oj(X,De),St=>H_.parseJSDocComment(X,St.pos,St.end-St.pos));return Ue.length&&(X.jsDoc=Ue),Ur&&(Ur=!1,X.flags|=536870912),X}function on(X){let Ae=Wt,Ue=LH.createSyntaxCursor(X);Wt={currentNode:Xi};let St=[],xt=ze;ze=[];let Ut=0,Or=Ci(X.statements,0);for(;Or!==-1;){let ds=X.statements[Ut],Is=X.statements[Or];Hr(St,X.statements,Ut,Or),Ut=_i(X.statements,Or);let $a=Kl(xt,K_=>K_.start>=ds.pos),Of=$a>=0?Kl(xt,K_=>K_.start>=Is.pos,$a):-1;$a>=0&&Hr(ze,xt,$a,Of>=0?Of:void 0),ho(()=>{let K_=Kn;for(Kn|=65536,t.resetTokenState(Is.pos),Ne();H()!==1;){let yg=t.getTokenFullStart(),ry=Ql(0,ip);if(St.push(ry),yg===t.getTokenFullStart()&&Ne(),Ut>=0){let iy=X.statements[Ut];if(ry.end===iy.pos)break;ry.end>iy.pos&&(Ut=_i(X.statements,Ut+1))}}Kn=K_},2),Or=Ut>=0?Ci(X.statements,Ut):-1}if(Ut>=0){let ds=X.statements[Ut];Hr(St,X.statements,Ut);let Is=Kl(xt,$a=>$a.start>=ds.pos);Is>=0&&Hr(ze,xt,Is)}return Wt=Ae,m.updateSourceFile(X,at(y(St),X.statements));function Wi(ds){return!(ds.flags&65536)&&!!(ds.transformFlags&67108864)}function Ci(ds,Is){for(let $a=Is;$a118}function Io(){return H()===80?!0:H()===127&&Tt()||H()===135&&hn()?!1:H()>118}function xn(X,Ae,Ue=!0){return H()===X?(Ue&&Ne(),!0):(Ae?dn(Ae):dn(f._0_expected,ca(X)),!1)}let ks=Object.keys(HL).filter(X=>X.length>2);function $l(X){if(H0(X)){U(Pa(De,X.template.pos),X.template.end,f.Module_declaration_names_may_only_use_or_quoted_strings);return}let Ae=Fe(X)?yr(X):void 0;if(!Ae||!$p(Ae,Le)){dn(f._0_expected,ca(27));return}let Ue=Pa(De,X.pos);switch(Ae){case"const":case"let":case"var":U(Ue,X.end,f.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":Po(f.Interface_name_cannot_be_0,f.Interface_must_be_given_a_name,19);return;case"is":U(Ue,t.getTokenStart(),f.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":Po(f.Namespace_name_cannot_be_0,f.Namespace_must_be_given_a_name,19);return;case"type":Po(f.Type_alias_name_cannot_be_0,f.Type_alias_must_be_given_a_name,64);return}let St=VC(Ae,ks,xt=>xt)??ls(Ae);if(St){U(Ue,X.end,f.Unknown_keyword_or_identifier_Did_you_mean_0,St);return}H()!==0&&U(Ue,X.end,f.Unexpected_keyword_or_identifier)}function Po(X,Ae,Ue){H()===Ue?dn(Ae):dn(X,t.getTokenValue())}function ls(X){for(let Ae of ks)if(X.length>Ae.length+2&&ao(X,Ae))return`${Ae} ${X.slice(Ae.length)}`}function zs(X,Ae,Ue){if(H()===60&&!t.hasPrecedingLineBreak()){dn(f.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(H()===21){dn(f.Cannot_start_a_function_call_in_a_type_annotation),Ne();return}if(Ae&&!ac()){Ue?dn(f._0_expected,ca(27)):dn(f.Expected_for_property_initializer);return}if(!xl()){if(Ue){dn(f._0_expected,ca(27));return}$l(X)}}function ml(X){return H()===X?(It(),!0):(R.assert(ZF(X)),dn(f._0_expected,ca(X)),!1)}function sd(X,Ae,Ue,St){if(H()===Ae){Ne();return}let xt=dn(f._0_expected,ca(Ae));Ue&&xt&&Ma(xt,gR(ve,De,St,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,ca(X),ca(Ae)))}function mo(X){return H()===X?(Ne(),!0):!1}function sa(X){if(H()===X)return ul()}function ld(X){if(H()===X)return Nf()}function Es(X,Ae,Ue){return sa(X)||Bs(X,!1,Ae||f._0_expected,Ue||ca(X))}function Na(X){let Ae=ld(X);return Ae||(R.assert(ZF(X)),Bs(X,!1,f._0_expected,ca(X)))}function ul(){let X=k(),Ae=H();return Ne(),tn(w(Ae),X)}function Nf(){let X=k(),Ae=H();return It(),tn(w(Ae),X)}function ac(){return H()===27?!0:H()===20||H()===1||t.hasPrecedingLineBreak()}function xl(){return ac()?(H()===27&&Ne(),!0):!1}function al(){return xl()||xn(27)}function Mo(X,Ae,Ue,St){let xt=y(X,St);return mh(xt,Ae,Ue??t.getTokenFullStart()),xt}function tn(X,Ae,Ue){return mh(X,Ae,Ue??t.getTokenFullStart()),Kn&&(X.flags|=Kn),Yt&&(Yt=!1,X.flags|=262144),X}function Bs(X,Ae,Ue,...St){Ae?un(t.getTokenFullStart(),0,Ue,...St):Ue&&dn(Ue,...St);let xt=k(),Ut=X===80?N("",void 0):Cv(X)?m.createTemplateLiteralLikeNode(X,"","",void 0):X===9?E("",void 0):X===11?S("",void 0):X===282?m.createMissingDeclaration():w(X);return tn(Ut,xt)}function ed(X){let Ae=ft.get(X);return Ae===void 0&&ft.set(X,Ae=X),Ae}function cd(X,Ae,Ue){if(X){Zt++;let Wi=k(),Ci=H(),_i=ed(t.getTokenValue()),Xi=t.hasExtendedUnicodeEscape();return ue(),tn(N(_i,Ci,Xi),Wi)}if(H()===81)return dn(Ue||f.Private_identifiers_are_not_allowed_outside_class_bodies),cd(!0);if(H()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return cd(!0);Zt++;let St=H()===1,xt=t.isReservedWord(),Ut=t.getTokenText(),Or=xt?f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:f.Identifier_expected;return Bs(80,St,Ae||Or,Ut)}function Ep(X){return cd(Kr(),void 0,X)}function Ds(X,Ae){return cd(Io(),X,Ae)}function Ac(X){return cd(iu(H()),X)}function de(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&dn(f.Unicode_escape_sequence_cannot_appear_here),cd(iu(H()))}function $(){return iu(H())||H()===11||H()===9}function Pe(){return iu(H())||H()===11}function yt(X){if(H()===11||H()===9){let Ae=Yr();return Ae.text=ed(Ae.text),Ae}return X&&H()===23?vr():H()===81?fr():Ac()}function cn(){return yt(!0)}function vr(){let X=k();xn(23);let Ae=vn(Ve);return xn(24),tn(m.createComputedPropertyName(Ae),X)}function fr(){let X=k(),Ae=D(ed(t.getTokenValue()));return Ne(),tn(Ae,X)}function zr(X){return H()===X&&Ri(Cr)}function Di(){return Ne(),t.hasPrecedingLineBreak()?!1:Gs()}function Cr(){switch(H()){case 87:return Ne()===94;case 95:return Ne(),H()===90?Pi(hc):H()===156?Pi(vl):Jo();case 90:return hc();case 126:case 139:case 153:return Ne(),Gs();default:return Di()}}function Jo(){return H()===60||H()!==42&&H()!==130&&H()!==19&&Gs()}function vl(){return Ne(),Jo()}function jc(){return Cy(H())&&Ri(Cr)}function Gs(){return H()===23||H()===19||H()===42||H()===26||$()}function hc(){return Ne(),H()===86||H()===100||H()===120||H()===60||H()===128&&Pi(SA)||H()===134&&Pi(TA)}function vs(X,Ae){if(gc(X))return!0;switch(X){case 0:case 1:case 3:return!(H()===27&&Ae)&&AS();case 2:return H()===84||H()===90;case 4:return Pi(Ha);case 5:return Pi(hg)||H()===27&&!Ae;case 6:return H()===23||$();case 12:switch(H()){case 23:case 42:case 26:case 25:return!0;default:return $()}case 18:return $();case 9:return H()===23||H()===26||$();case 24:return Pe();case 7:return H()===19?Pi(Uc):Ae?Io()&&!mu():U1()&&!mu();case 8:return ts();case 10:return H()===28||H()===26||ts();case 19:return H()===103||H()===87||Io();case 15:switch(H()){case 28:case 25:return!0}case 11:return H()===26||e_();case 16:return B_(!1);case 17:return B_(!0);case 20:case 21:return H()===28||dg();case 22:return I();case 23:return H()===161&&Pi(JD)?!1:iu(H());case 13:return iu(H())||H()===19;case 14:return!0;case 25:return!0;case 26:return R.fail("ParsingContext.Count used as a context");default:R.assertNever(X,"Non-exhaustive case in 'isListElement'.")}}function Uc(){if(R.assert(H()===19),Ne()===20){let X=Ne();return X===28||X===19||X===96||X===119}return!0}function tp(){return Ne(),Io()}function wc(){return Ne(),iu(H())}function im(){return Ne(),One(H())}function mu(){return H()===119||H()===96?Pi(Re):!1}function Re(){return Ne(),e_()}function Lt(){return Ne(),dg()}function Un(X){if(H()===1)return!0;switch(X){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return H()===20;case 3:return H()===20||H()===84||H()===90;case 7:return H()===19||H()===96||H()===119;case 8:return go();case 19:return H()===32||H()===21||H()===19||H()===96||H()===119;case 11:return H()===22||H()===27;case 15:case 21:case 10:return H()===24;case 17:case 16:case 18:return H()===22||H()===24;case 20:return H()!==28;case 22:return H()===19||H()===20;case 13:return H()===32||H()===44;case 14:return H()===30&&Pi(Si);default:return!1}}function go(){return!!(ac()||Yg(H())||H()===39)}function qo(){R.assert(en,"Missing parsing context");for(let X=0;X<26;X++)if(en&1<=0)}function Hg(X){return X===6?f.An_enum_member_name_must_be_followed_by_a_or:void 0}function Sp(){let X=Mo([],k());return X.isMissingList=!0,X}function cg(X){return!!X.isMissingList}function Bu(X,Ae,Ue,St){if(xn(Ue)){let xt=Wd(X,Ae);return xn(St),xt}return Sp()}function Z(X,Ae){let Ue=k(),St=X?Ac(Ae):Ds(Ae);for(;mo(25)&&H()!==30;)St=tn(m.createQualifiedName(St,wt(X,!1,!0)),Ue);return St}function rt(X,Ae){return tn(m.createQualifiedName(X,Ae),X.pos)}function wt(X,Ae,Ue){if(t.hasPrecedingLineBreak()&&iu(H())&&Pi(Vp))return Bs(80,!0,f.Identifier_expected);if(H()===81){let St=fr();return Ae?St:Bs(80,!0,f.Identifier_expected)}return X?Ue?Ac():de():Ds()}function zt(X){let Ae=k(),Ue=[],St;do St=ii(X),Ue.push(St);while(St.literal.kind===17);return Mo(Ue,Ae)}function O(X){let Ae=k();return tn(m.createTemplateExpression(no(X),zt(X)),Ae)}function Se(){let X=k();return tn(m.createTemplateLiteralType(no(!1),nt()),X)}function nt(){let X=k(),Ae=[],Ue;do Ue=jt(),Ae.push(Ue);while(Ue.literal.kind===17);return Mo(Ae,X)}function jt(){let X=k();return tn(m.createTemplateLiteralTypeSpan(yc(),Zn(!1)),X)}function Zn(X){return H()===20?(wn(X),ka()):Es(18,f._0_expected,ca(20))}function ii(X){let Ae=k();return tn(m.createTemplateSpan(vn(Ve),Zn(X)),Ae)}function Yr(){return wl(H())}function no(X){!X&&t.getTokenFlags()&26656&&wn(!1);let Ae=wl(H());return R.assert(Ae.kind===16,"Template head has wrong token kind"),Ae}function ka(){let X=wl(H());return R.assert(X.kind===17||X.kind===18,"Template fragment has wrong token kind"),X}function wa(X){let Ae=X===15||X===18,Ue=t.getTokenText();return Ue.substring(1,Ue.length-(t.isUnterminated()?0:Ae?1:2))}function wl(X){let Ae=k(),Ue=Cv(X)?m.createTemplateLiteralLikeNode(X,t.getTokenValue(),wa(X),t.getTokenFlags()&7176):X===9?E(t.getTokenValue(),t.getNumericLiteralFlags()):X===11?S(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):oN(X)?A(X,t.getTokenValue()):R.fail();return t.hasExtendedUnicodeEscape()&&(Ue.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(Ue.isUnterminated=!0),Ne(),tn(Ue,Ae)}function dd(){return Z(!0,f.Type_expected)}function Ic(){if(!t.hasPrecedingLineBreak()&&Bn()===30)return Bu(20,yc,30,32)}function Tp(){let X=k();return tn(m.createTypeReferenceNode(dd(),Ic()),X)}function Gu(X){switch(X.kind){case 183:return Fl(X.typeName);case 184:case 185:{let{parameters:Ae,type:Ue}=X;return cg(Ae)||Gu(Ue)}case 196:return Gu(X.type);default:return!1}}function ab(X){return Ne(),tn(m.createTypePredicateNode(void 0,X,yc()),X.pos)}function cs(){let X=k();return Ne(),tn(m.createThisTypeNode(),X)}function Dm(){let X=k();return Ne(),tn(m.createJSDocAllType(),X)}function Cm(){let X=k();return Ne(),tn(m.createJSDocNonNullableType(lb(),!1),X)}function Ui(){let X=k();return Ne(),H()===28||H()===20||H()===22||H()===32||H()===64||H()===52?tn(m.createJSDocUnknownType(),X):tn(m.createJSDocNullableType(yc(),!1),X)}function Kg(){let X=k(),Ae=ie();if(Ri(wf)){let Ue=fn(36),St=Bt(59,!1);return Er(tn(m.createJSDocFunctionType(Ue,St),X),Ae)}return tn(m.createTypeReferenceNode(Ac(),void 0),X)}function Qy(){let X=k(),Ae;return(H()===110||H()===105)&&(Ae=Ac(),xn(59)),tn(m.createParameterDeclaration(void 0,void 0,Ae,void 0,Nm(),void 0),X)}function Nm(){t.setInJSDocType(!0);let X=k();if(mo(144)){let St=m.createJSDocNamepathType(void 0);e:for(;;)switch(H()){case 20:case 1:case 28:case 5:break e;default:It()}return t.setInJSDocType(!1),tn(St,X)}let Ae=mo(26),Ue=cb();return t.setInJSDocType(!1),Ae&&(Ue=tn(m.createJSDocVariadicType(Ue),X)),H()===64?(Ne(),tn(m.createJSDocOptionalType(Ue),X)):Ue}function fS(){let X=k();xn(114);let Ae=Z(!0),Ue=t.hasPrecedingLineBreak()?void 0:qE();return tn(m.createTypeQueryNode(Ae,Ue),X)}function mS(){let X=k(),Ae=Nh(!1,!0),Ue=Ds(),St,xt;mo(96)&&(dg()||!e_()?St=yc():xt=ub());let Ut=mo(64)?yc():void 0,Or=m.createTypeParameterDeclaration(Ae,Ue,St,Ut);return Or.expression=xt,tn(Or,X)}function df(){if(H()===30)return Bu(19,mS,30,32)}function B_(X){return H()===26||ts()||Cy(H())||H()===60||dg(!X)}function uf(X){let Ae=Sr(f.Private_identifiers_cannot_be_used_as_parameters);return p2(Ae)===0&&!gt(X)&&Cy(H())&&Ne(),Ae}function Jg(){return Kr()||H()===23||H()===19}function we(X){return Mt(X)}function qe(X){return Mt(X,!1)}function Mt(X,Ae=!0){let Ue=k(),St=ie(),xt=X?se(()=>Nh(!0)):ke(()=>Nh(!0));if(H()===110){let Ci=m.createParameterDeclaration(xt,void 0,cd(!0),void 0,ev(),void 0),_i=Jc(xt);return _i&&Me(_i,f.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Er(tn(Ci,Ue),St)}let Ut=pn;pn=!1;let Or=sa(26);if(!Ae&&!Jg())return;let Wi=Er(tn(m.createParameterDeclaration(xt,Or,uf(xt),sa(58),ev(),t_()),Ue),St);return pn=Ut,Wi}function Bt(X,Ae){if(_n(X,Ae))return Be(cb)}function _n(X,Ae){return X===39?(xn(X),!0):mo(59)?!0:Ae&&H()===39?(dn(f._0_expected,ca(59)),Ne(),!0):!1}function Jn(X,Ae){let Ue=Tt(),St=hn();yi(!!(X&1)),Ao(!!(X&2));let xt=X&32?Wd(17,Qy):Wd(16,()=>Ae?we(St):qe(St));return yi(Ue),Ao(St),xt}function fn(X){if(!xn(21))return Sp();let Ae=Jn(X,!0);return xn(22),Ae}function qn(){mo(28)||al()}function mi(X){let Ae=k(),Ue=ie();X===180&&xn(105);let St=df(),xt=fn(4),Ut=Bt(59,!0);qn();let Or=X===179?m.createCallSignature(St,xt,Ut):m.createConstructSignature(St,xt,Ut);return Er(tn(Or,Ae),Ue)}function or(){return H()===23&&Pi(ni)}function ni(){if(Ne(),H()===26||H()===24)return!0;if(Cy(H())){if(Ne(),Io())return!0}else if(Io())Ne();else return!1;return H()===59||H()===28?!0:H()!==58?!1:(Ne(),H()===59||H()===28||H()===24)}function dr(X,Ae,Ue){let St=Bu(16,()=>we(!1),23,24),xt=ev();qn();let Ut=m.createIndexSignature(Ue,St,xt);return Er(tn(Ut,X),Ae)}function Xo(X,Ae,Ue){let St=cn(),xt=sa(58),Ut;if(H()===21||H()===30){let Or=df(),Wi=fn(4),Ci=Bt(59,!0);Ut=m.createMethodSignature(Ue,St,xt,Or,Wi,Ci)}else{let Or=ev();Ut=m.createPropertySignature(Ue,St,xt,Or),H()===64&&(Ut.initializer=t_())}return qn(),Er(tn(Ut,X),Ae)}function Ha(){if(H()===21||H()===30||H()===139||H()===153)return!0;let X=!1;for(;Cy(H());)X=!0,Ne();return H()===23?!0:($()&&(X=!0,Ne()),X?H()===21||H()===30||H()===58||H()===59||H()===28||ac():!1)}function Yd(){if(H()===21||H()===30)return mi(179);if(H()===105&&Pi(ud))return mi(180);let X=k(),Ae=ie(),Ue=Nh(!1);return zr(139)?ty(X,Ae,Ue,177,4):zr(153)?ty(X,Ae,Ue,178,4):or()?dr(X,Ae,Ue):Xo(X,Ae,Ue)}function ud(){return Ne(),H()===21||H()===30}function qg(){return Ne()===25}function kE(){switch(Ne()){case 21:case 30:case 25:return!0}return!1}function w1(){let X=k();return tn(m.createTypeLiteralNode(wE()),X)}function wE(){let X;return xn(19)?(X=Qo(4,Yd),xn(20)):X=Sp(),X}function LD(){return Ne(),H()===40||H()===41?Ne()===148:(H()===148&&Ne(),H()===23&&tp()&&Ne()===103)}function kD(){let X=k(),Ae=Ac();xn(103);let Ue=yc();return tn(m.createTypeParameterDeclaration(void 0,Ae,Ue,void 0),X)}function wD(){let X=k();xn(19);let Ae;(H()===148||H()===40||H()===41)&&(Ae=ul(),Ae.kind!==148&&xn(148)),xn(23);let Ue=kD(),St=mo(130)?yc():void 0;xn(24);let xt;(H()===58||H()===40||H()===41)&&(xt=ul(),xt.kind!==58&&xn(58));let Ut=ev();al();let Or=Qo(4,Yd);return xn(20),tn(m.createMappedTypeNode(Ae,Ue,St,xt,Ut,Or),X)}function oA(){let X=k();if(mo(26))return tn(m.createRestTypeNode(yc()),X);let Ae=yc();if(MR(Ae)&&Ae.pos===Ae.type.pos){let Ue=m.createOptionalTypeNode(Ae.type);return at(Ue,Ae),Ue.flags=Ae.flags,Ue}return Ae}function _S(){return Ne()===59||H()===58&&Ne()===59}function O1(){return H()===26?iu(Ne())&&_S():iu(H())&&_S()}function OD(){if(Pi(O1)){let X=k(),Ae=ie(),Ue=sa(26),St=Ac(),xt=sa(58);xn(59);let Ut=oA(),Or=m.createNamedTupleMember(Ue,St,xt,Ut);return Er(tn(Or,X),Ae)}return oA()}function W1(){let X=k();return tn(m.createTupleTypeNode(Bu(21,OD,23,24)),X)}function F1(){let X=k();xn(21);let Ae=yc();return xn(22),tn(m.createParenthesizedType(Ae),X)}function z1(){let X;if(H()===128){let Ae=k();Ne();let Ue=tn(w(128),Ae);X=Mo([Ue],Ae)}return X}function B1(){let X=k(),Ae=ie(),Ue=z1(),St=mo(105);R.assert(!Ue||St,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let xt=df(),Ut=fn(4),Or=Bt(39,!1),Wi=St?m.createConstructorTypeNode(Ue,xt,Ut,Or):m.createFunctionTypeNode(xt,Ut,Or);return Er(tn(Wi,X),Ae)}function aA(){let X=ul();return H()===25?void 0:X}function G1(X){let Ae=k();X&&Ne();let Ue=H()===112||H()===97||H()===106?ul():wl(H());return X&&(Ue=tn(m.createPrefixUnaryExpression(41,Ue),Ae)),tn(m.createLiteralTypeNode(Ue),Ae)}function hS(){return Ne(),H()===102}function gS(){Ie|=4194304;let X=k(),Ae=mo(114);xn(102),xn(21);let Ue=yc(),St;if(mo(28)){let Or=t.getTokenStart();xn(19);let Wi=H();if(Wi===118||Wi===132?Ne():dn(f._0_expected,ca(118)),xn(59),St=Eb(Wi,!0),!xn(20)){let Ci=$s(ze);Ci&&Ci.code===f._0_expected.code&&Ma(Ci,gR(ve,De,Or,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}xn(22);let xt=mo(25)?dd():void 0,Ut=Ic();return tn(m.createImportTypeNode(Ue,St,xt,Ut,Ae),X)}function sb(){return Ne(),H()===9||H()===10}function lb(){switch(H()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return Ri(aA)||Tp();case 67:t.reScanAsteriskEqualsToken();case 42:return Dm();case 61:t.reScanQuestionToken();case 58:return Ui();case 100:return Kg();case 54:return Cm();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return G1();case 41:return Pi(sb)?G1(!0):Tp();case 116:return ul();case 110:{let X=cs();return H()===142&&!t.hasPrecedingLineBreak()?ab(X):X}case 114:return Pi(hS)?gS():fS();case 19:return Pi(LD)?wD():w1();case 23:return W1();case 21:return F1();case 102:return gS();case 131:return Pi(Vp)?j1():Tp();case 16:return Se();default:return Tp()}}function dg(X){switch(H()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!X;case 41:return!X&&Pi(sb);case 21:return!X&&Pi(OE);default:return Io()}}function OE(){return Ne(),H()===22||B_(!1)||dg()}function Qa(){let X=k(),Ae=lb();for(;!t.hasPrecedingLineBreak();)switch(H()){case 54:Ne(),Ae=tn(m.createJSDocNonNullableType(Ae,!0),X);break;case 58:if(Pi(Lt))return Ae;Ne(),Ae=tn(m.createJSDocNullableType(Ae,!0),X);break;case 23:if(xn(23),dg()){let Ue=yc();xn(24),Ae=tn(m.createIndexedAccessTypeNode(Ae,Ue),X)}else xn(24),Ae=tn(m.createArrayTypeNode(Ae),X);break;default:return Ae}return Ae}function sA(X){let Ae=k();return xn(X),tn(m.createTypeOperatorNode(X,xh()),Ae)}function WD(){if(mo(96)){let X=ct(yc);if(pt()||H()!==58)return X}}function WE(){let X=k(),Ae=Ds(),Ue=Ri(WD),St=m.createTypeParameterDeclaration(void 0,Ae,Ue);return tn(St,X)}function Xg(){let X=k();return xn(140),tn(m.createInferTypeNode(WE()),X)}function xh(){let X=H();switch(X){case 143:case 158:case 148:return sA(X);case 140:return Xg()}return Be(Qa)}function Mf(X){if(lA()){let Ae=B1(),Ue;return gh(Ae)?Ue=X?f.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:f.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:Ue=X?f.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:f.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,Me(Ae,Ue),Ae}}function Vu(X,Ae,Ue){let St=k(),xt=X===52,Ut=mo(X),Or=Ut&&Mf(xt)||Ae();if(H()===X||Ut){let Wi=[Or];for(;mo(X);)Wi.push(Mf(xt)||Ae());Or=tn(Ue(Mo(Wi,St)),St)}return Or}function Ap(){return Vu(51,xh,m.createIntersectionTypeNode)}function np(){return Vu(52,Ap,m.createUnionTypeNode)}function Zy(){return Ne(),H()===105}function lA(){return H()===30||H()===21&&Pi(V1)?!0:H()===105||H()===128&&Pi(Zy)}function FD(){if(Cy(H())&&Nh(!1),Io()||H()===110)return Ne(),!0;if(H()===23||H()===19){let X=ze.length;return Sr(),X===ze.length}return!1}function V1(){return Ne(),!!(H()===22||H()===26||FD()&&(H()===59||H()===28||H()===58||H()===64||H()===22&&(Ne(),H()===39)))}function cb(){let X=k(),Ae=Io()&&Ri(FE),Ue=yc();return Ae?tn(m.createTypePredicateNode(void 0,Ae,Ue),X):Ue}function FE(){let X=Ds();if(H()===142&&!t.hasPrecedingLineBreak())return Ne(),X}function j1(){let X=k(),Ae=Es(131),Ue=H()===110?cs():Ds(),St=mo(142)?yc():void 0;return tn(m.createTypePredicateNode(Ae,Ue,St),X)}function yc(){if(Kn&81920)return da(81920,yc);if(lA())return B1();let X=k(),Ae=np();if(!pt()&&!t.hasPrecedingLineBreak()&&mo(96)){let Ue=ct(yc);xn(58);let St=Be(yc);xn(59);let xt=Be(yc);return tn(m.createConditionalTypeNode(Ae,Ue,St,xt),X)}return Ae}function ev(){return mo(59)?yc():void 0}function U1(){switch(H()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return Pi(kE);default:return Io()}}function e_(){if(U1())return!0;switch(H()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return r_()?!0:Io()}}function cA(){return H()!==19&&H()!==100&&H()!==86&&H()!==60&&e_()}function Ve(){let X=Ft();X&&$i(!1);let Ae=k(),Ue=pd(!0),St;for(;St=sa(28);)Ue=yS(Ue,St,pd(!0),Ae);return X&&$i(!0),Ue}function t_(){return mo(64)?pd(!0):void 0}function pd(X){if(zE())return db();let Ae=nv(X)||dA(X);if(Ae)return Ae;let Ue=k(),St=ie(),xt=am(0);return xt.kind===80&&H()===39?tv(Ue,xt,X,St,void 0):Yu(xt)&&ky(Kt())?yS(xt,ul(),pd(X),Ue):om(xt,Ue,X)}function zE(){return H()===127?Tt()?!0:Pi(Vs):!1}function H1(){return Ne(),!t.hasPrecedingLineBreak()&&Io()}function db(){let X=k();return Ne(),!t.hasPrecedingLineBreak()&&(H()===42||e_())?tn(m.createYieldExpression(sa(42),pd(!0)),X):tn(m.createYieldExpression(void 0,void 0),X)}function tv(X,Ae,Ue,St,xt){R.assert(H()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let Ut=m.createParameterDeclaration(void 0,void 0,Ae,void 0,void 0,void 0);tn(Ut,Ae.pos);let Or=Mo([Ut],Ut.pos,Ut.end),Wi=Es(39),Ci=pA(!!xt,Ue),_i=m.createArrowFunction(xt,void 0,Or,void 0,Wi,Ci);return Er(tn(_i,X),St)}function nv(X){let Ae=SM();if(Ae!==0)return Ae===1?BE(!0,!0):Ri(()=>n_(X))}function SM(){return H()===21||H()===30||H()===134?Pi(Ka):H()===39?1:0}function Ka(){if(H()===134&&(Ne(),t.hasPrecedingLineBreak()||H()!==21&&H()!==30))return 0;let X=H(),Ae=Ne();if(X===21){if(Ae===22)switch(Ne()){case 39:case 59:case 19:return 1;default:return 0}if(Ae===23||Ae===19)return 2;if(Ae===26)return 1;if(Cy(Ae)&&Ae!==134&&Pi(tp))return Ne()===130?0:1;if(!Io()&&Ae!==110)return 0;switch(Ne()){case 59:return 1;case 58:return Ne(),H()===59||H()===28||H()===64||H()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return R.assert(X===30),!Io()&&H()!==87?0:be===1?Pi(()=>{mo(87);let St=Ne();if(St===96)switch(Ne()){case 64:case 32:case 44:return!1;default:return!0}else if(St===28||St===64)return!0;return!1})?1:0:2}function n_(X){let Ae=t.getTokenStart();if(Dn?.has(Ae))return;let Ue=BE(!1,X);return Ue||(Dn||(Dn=new Set)).add(Ae),Ue}function dA(X){if(H()===134&&Pi(uA)===1){let Ae=k(),Ue=ie(),St=_f(),xt=am(0);return tv(Ae,xt,X,Ue,St)}}function uA(){if(H()===134){if(Ne(),t.hasPrecedingLineBreak()||H()===39)return 0;let X=am(0);if(!t.hasPrecedingLineBreak()&&X.kind===80&&H()===39)return 1}return 0}function BE(X,Ae){let Ue=k(),St=ie(),xt=_f(),Ut=gt(xt,aP)?2:0,Or=df(),Wi;if(xn(21)){if(X)Wi=Jn(Ut,X);else{let yg=Jn(Ut,X);if(!yg)return;Wi=yg}if(!xn(22)&&!X)return}else{if(!X)return;Wi=Sp()}let Ci=H()===59,_i=Bt(59,!1);if(_i&&!X&&Gu(_i))return;let Xi=_i;for(;Xi?.kind===196;)Xi=Xi.type;let ds=Xi&&LR(Xi);if(!X&&H()!==39&&(ds||H()!==19))return;let Is=H(),$a=Es(39),Of=Is===39||Is===19?pA(gt(xt,aP),Ae):Ds();if(!Ae&&Ci&&H()!==59)return;let K_=m.createArrowFunction(xt,Or,Wi,_i,$a,Of);return Er(tn(K_,Ue),St)}function pA(X,Ae){if(H()===19)return _b(X?2:0);if(H()!==27&&H()!==100&&H()!==86&&AS()&&!cA())return _b(16|(X?2:0));let Ue=pn;pn=!1;let St=X?se(()=>pd(Ae)):ke(()=>pd(Ae));return pn=Ue,St}function om(X,Ae,Ue){let St=sa(58);if(!St)return X;let xt;return tn(m.createConditionalExpression(X,St,da(r,()=>pd(!1)),xt=Es(59),Hf(xt)?pd(Ue):Bs(80,!1,f._0_expected,ca(59))),Ae)}function am(X){let Ae=k(),Ue=ub();return K1(X,Ue,Ae)}function Yg(X){return X===103||X===165}function K1(X,Ae,Ue){for(;;){Kt();let St=Y2(H());if(!(H()===43?St>=X:St>X)||H()===103&&He())break;if(H()===130||H()===152){if(t.hasPrecedingLineBreak())break;{let Ut=H();Ne(),Ae=Ut===152?zD(Ae,yc()):qi(Ae,yc())}}else Ae=yS(Ae,ul(),am(St),Ue)}return Ae}function r_(){return He()&&H()===103?!1:Y2(H())>0}function zD(X,Ae){return tn(m.createSatisfiesExpression(X,Ae),X.pos)}function yS(X,Ae,Ue,St){return tn(m.createBinaryExpression(X,Ae,Ue),St)}function qi(X,Ae){return tn(m.createAsExpression(X,Ae),X.pos)}function Zr(){let X=k();return tn(m.createPrefixUnaryExpression(H(),We(hl)),X)}function Rh(){let X=k();return tn(m.createDeleteExpression(We(hl)),X)}function ju(){let X=k();return tn(m.createTypeOfExpression(We(hl)),X)}function TM(){let X=k();return tn(m.createVoidExpression(We(hl)),X)}function $g(){return H()===135?hn()?!0:Pi(Vs):!1}function AM(){let X=k();return tn(m.createAwaitExpression(We(hl)),X)}function ub(){if(Bp()){let Ue=k(),St=ug();return H()===43?K1(Y2(H()),St,Ue):St}let X=H(),Ae=hl();if(H()===43){let Ue=Pa(De,Ae.pos),{end:St}=Ae;Ae.kind===216?U(Ue,St,f.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(R.assert(ZF(X)),U(Ue,St,f.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,ca(X)))}return Ae}function hl(){switch(H()){case 40:case 41:case 55:case 54:return Zr();case 91:return Rh();case 114:return ju();case 116:return TM();case 30:return be===1?Qg(!0,void 0,void 0,!0):Mm();case 135:if($g())return AM();default:return ug()}}function Bp(){switch(H()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(be!==1)return!1;default:return!0}}function ug(){if(H()===46||H()===47){let Ae=k();return tn(m.createPrefixUnaryExpression(H(),We(sm)),Ae)}else if(be===1&&H()===30&&Pi(im))return Qg(!0);let X=sm();if(R.assert(Yu(X)),(H()===46||H()===47)&&!t.hasPrecedingLineBreak()){let Ae=H();return Ne(),tn(m.createPostfixUnaryExpression(X,Ae),X.pos)}return X}function sm(){let X=k(),Ae;return H()===102?Pi(ud)?(Ie|=4194304,Ae=ul()):Pi(qg)?(Ne(),Ne(),Ae=tn(m.createMetaProperty(102,Ac()),X),Ie|=8388608):Ae=pb():Ae=H()===108?Pm():pb(),iv(X,Ae)}function pb(){let X=k(),Ae=GE();return td(X,Ae,!0)}function Pm(){let X=k(),Ae=ul();if(H()===30){let Ue=k(),St=Ri(ar);St!==void 0&&(U(Ue,k(),f.super_may_not_use_type_arguments),Qi()||(Ae=m.createExpressionWithTypeArguments(Ae,St)))}return H()===21||H()===25||H()===23?Ae:(Es(25,f.super_must_be_followed_by_an_argument_list_or_member_access),tn(Y(Ae,wt(!0,!0,!0)),X))}function Qg(X,Ae,Ue,St=!1){let xt=k(),Ut=fg(X),Or;if(Ut.kind===286){let Wi=pg(Ut),Ci,_i=Wi[Wi.length-1];if(_i?.kind===284&&!EE(_i.openingElement.tagName,_i.closingElement.tagName)&&EE(Ut.tagName,_i.closingElement.tagName)){let Xi=_i.children.end,ds=tn(m.createJsxElement(_i.openingElement,_i.children,tn(m.createJsxClosingElement(tn(N(""),Xi,Xi)),Xi,Xi)),_i.openingElement.pos,Xi);Wi=Mo([...Wi.slice(0,Wi.length-1),ds],Wi.pos,Xi),Ci=_i.closingElement}else Ci=bS(Ut,X),EE(Ut.tagName,Ci.tagName)||(Ue&&P_(Ue)&&EE(Ci.tagName,Ue.tagName)?Me(Ut.tagName,f.JSX_element_0_has_no_corresponding_closing_tag,uN(De,Ut.tagName)):Me(Ci.tagName,f.Expected_corresponding_JSX_closing_tag_for_0,uN(De,Ut.tagName)));Or=tn(m.createJsxElement(Ut,Wi,Ci),xt)}else Ut.kind===289?Or=tn(m.createJsxFragment(Ut,pg(Ut),_A(X)),xt):(R.assert(Ut.kind===285),Or=Ut);if(!St&&X&&H()===30){let Wi=typeof Ae>"u"?Or.pos:Ae,Ci=Ri(()=>Qg(!0,Wi));if(Ci){let _i=Bs(28,!1);return JN(_i,Ci.pos,0),U(Pa(De,Wi),Ci.end,f.JSX_expressions_must_have_one_parent_element),tn(m.createBinaryExpression(Or,_i,Ci),xt)}}return Or}function vS(){let X=k(),Ae=m.createJsxText(t.getTokenValue(),_t===13);return _t=t.scanJsxToken(),tn(Ae,X)}function fA(X,Ae){switch(Ae){case 1:if(i1(X))Me(X,f.JSX_fragment_has_no_corresponding_closing_tag);else{let Ue=X.tagName,St=Math.min(Pa(De,Ue.pos),Ue.end);U(St,Ue.end,f.JSX_element_0_has_no_corresponding_closing_tag,uN(De,X.tagName))}return;case 31:case 7:return;case 12:case 13:return vS();case 19:return BD(!1);case 30:return Qg(!1,void 0,X);default:return R.assertNever(Ae)}}function pg(X){let Ae=[],Ue=k(),St=en;for(en|=16384;;){let xt=fA(X,_t=t.reScanJsxToken());if(!xt||(Ae.push(xt),P_(X)&&xt?.kind===284&&!EE(xt.openingElement.tagName,xt.closingElement.tagName)&&EE(X.tagName,xt.closingElement.tagName)))break}return en=St,Mo(Ae,Ue)}function J1(){let X=k();return tn(m.createJsxAttributes(Qo(13,GD)),X)}function fg(X){let Ae=k();if(xn(30),H()===32)return er(),tn(m.createJsxOpeningFragment(),Ae);let Ue=G_(),St=Kn&524288?void 0:qE(),xt=J1(),Ut;return H()===32?(er(),Ut=m.createJsxOpeningElement(Ue,St,xt)):(xn(44),xn(32,void 0,!1)&&(X?Ne():er()),Ut=m.createJsxSelfClosingElement(Ue,St,xt)),tn(Ut,Ae)}function G_(){let X=k(),Ae=rv();if(Xm(Ae))return Ae;let Ue=Ae;for(;mo(25);)Ue=tn(Y(Ue,wt(!0,!1,!1)),X);return Ue}function rv(){let X=k();xi();let Ae=H()===110,Ue=de();return mo(59)?(xi(),tn(m.createJsxNamespacedName(Ue,de()),X)):Ae?tn(m.createToken(110),X):Ue}function BD(X){let Ae=k();if(!xn(19))return;let Ue,St;return H()!==20&&(X||(Ue=sa(26)),St=Ve()),X?xn(20):xn(20,void 0,!1)&&er(),tn(m.createJsxExpression(Ue,St),Ae)}function GD(){if(H()===19)return Xs();let X=k();return tn(m.createJsxAttribute(mA(),VD()),X)}function VD(){if(H()===64){if(Fr()===11)return Yr();if(H()===19)return BD(!0);if(H()===30)return Qg(!0);dn(f.or_JSX_element_expected)}}function mA(){let X=k();xi();let Ae=de();return mo(59)?(xi(),tn(m.createJsxNamespacedName(Ae,de()),X)):Ae}function Xs(){let X=k();xn(19),xn(26);let Ae=Ve();return xn(20),tn(m.createJsxSpreadAttribute(Ae),X)}function bS(X,Ae){let Ue=k();xn(31);let St=G_();return xn(32,void 0,!1)&&(Ae||!EE(X.tagName,St)?Ne():er()),tn(m.createJsxClosingElement(St),Ue)}function _A(X){let Ae=k();return xn(31),xn(32,f.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(X?Ne():er()),tn(m.createJsxJsxClosingFragment(),Ae)}function Mm(){R.assert(be!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let X=k();xn(30);let Ae=yc();xn(32);let Ue=hl();return tn(m.createTypeAssertion(Ae,Ue),X)}function fb(){return Ne(),iu(H())||H()===23||Qi()}function jD(){return H()===29&&Pi(fb)}function hA(X){if(X.flags&64)return!0;if(t1(X)){let Ae=X.expression;for(;t1(Ae)&&!(Ae.flags&64);)Ae=Ae.expression;if(Ae.flags&64){for(;t1(X);)X.flags|=64,X=X.expression;return!0}}return!1}function IM(X,Ae,Ue){let St=wt(!0,!0,!0),xt=Ue||hA(Ae),Ut=xt?B(Ae,Ue,St):Y(Ae,St);if(xt&&Ki(Ut.name)&&Me(Ut.name,f.An_optional_chain_cannot_contain_private_identifiers),By(Ae)&&Ae.typeArguments){let Or=Ae.typeArguments.pos-1,Wi=Pa(De,Ae.typeArguments.end)+1;U(Or,Wi,f.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return tn(Ut,X)}function mr(X,Ae,Ue){let St;if(H()===24)St=Bs(80,!0,f.An_element_access_expression_should_take_an_argument);else{let Ut=vn(Ve);Qp(Ut)&&(Ut.text=ed(Ut.text)),St=Ut}xn(24);let xt=Ue||hA(Ae)?z(Ae,Ue,St):ce(Ae,St);return tn(xt,X)}function td(X,Ae,Ue){for(;;){let St,xt=!1;if(Ue&&jD()?(St=Es(29),xt=iu(H())):xt=mo(25),xt){Ae=IM(X,Ae,St);continue}if((St||!Ft())&&mo(23)){Ae=mr(X,Ae,St);continue}if(Qi()){Ae=!St&&Ae.kind===233?pf(X,Ae.expression,St,Ae.typeArguments):pf(X,Ae,St,void 0);continue}if(!St){if(H()===54&&!t.hasPrecedingLineBreak()){Ne(),Ae=tn(m.createNonNullExpression(Ae),X);continue}let Ut=Ri(ar);if(Ut){Ae=tn(m.createExpressionWithTypeArguments(Ae,Ut),X);continue}}return Ae}}function Qi(){return H()===15||H()===16}function pf(X,Ae,Ue,St){let xt=m.createTaggedTemplateExpression(Ae,St,H()===15?(wn(!0),Yr()):O(!0));return(Ue||Ae.flags&64)&&(xt.flags|=64),xt.questionDotToken=Ue,tn(xt,X)}function iv(X,Ae){for(;;){Ae=td(X,Ae,!0);let Ue,St=sa(29);if(St&&(Ue=Ri(ar),Qi())){Ae=pf(X,Ae,St,Ue);continue}if(Ue||H()===21){!St&&Ae.kind===233&&(Ue=Ae.typeArguments,Ae=Ae.expression);let xt=V_(),Ut=St||hA(Ae)?me(Ae,St,Ue,xt):ee(Ae,Ue,xt);Ae=tn(Ut,X);continue}if(St){let xt=Bs(80,!1,f.Identifier_expected);Ae=tn(B(Ae,St,xt),X)}break}return Ae}function V_(){xn(21);let X=Wd(11,ES);return xn(22),X}function ar(){if(Kn&524288||Bn()!==30)return;Ne();let X=Wd(20,yc);if(Kt()===32)return Ne(),X&&gA()?X:void 0}function gA(){switch(H()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||r_()||!e_()}function GE(){switch(H()){case 15:t.getTokenFlags()&26656&&wn(!1);case 9:case 10:case 11:return Yr();case 110:case 108:case 106:case 112:case 97:return ul();case 21:return Kc();case 23:return SS();case 19:return Zg();case 134:if(!Pi(TA))break;return yA();case 60:return JE();case 86:return ex();case 100:return yA();case 105:return VE();case 44:case 69:if(En()===14)return Yr();break;case 16:return O(!1);case 81:return fr()}return Ds(f.Expression_expected)}function Kc(){let X=k(),Ae=ie();xn(21);let Ue=vn(Ve);return xn(22),Er(tn(q(Ue),X),Ae)}function Dh(){let X=k();xn(26);let Ae=pd(!0);return tn(m.createSpreadElement(Ae),X)}function Lm(){return H()===26?Dh():H()===28?tn(m.createOmittedExpression(),k()):pd(!0)}function ES(){return da(r,Lm)}function SS(){let X=k(),Ae=t.getTokenStart(),Ue=xn(23),St=t.hasPrecedingLineBreak(),xt=Wd(15,Lm);return sd(23,24,Ue,Ae),tn(j(xt,St),X)}function mb(){let X=k(),Ae=ie();if(sa(26)){let Xi=pd(!0);return Er(tn(m.createSpreadAssignment(Xi),X),Ae)}let Ue=Nh(!0);if(zr(139))return ty(X,Ae,Ue,177,0);if(zr(153))return ty(X,Ae,Ue,178,0);let St=sa(42),xt=Io(),Ut=cn(),Or=sa(58),Wi=sa(54);if(St||H()===21||H()===30)return i_(X,Ae,Ue,St,Ut,Or,Wi);let Ci;if(xt&&H()!==59){let Xi=sa(64),ds=Xi?vn(()=>pd(!0)):void 0;Ci=m.createShorthandPropertyAssignment(Ut,ds),Ci.equalsToken=Xi}else{xn(59);let Xi=vn(()=>pd(!0));Ci=m.createPropertyAssignment(Ut,Xi)}return Ci.modifiers=Ue,Ci.questionToken=Or,Ci.exclamationToken=Wi,Er(tn(Ci,X),Ae)}function Zg(){let X=k(),Ae=t.getTokenStart(),Ue=xn(19),St=t.hasPrecedingLineBreak(),xt=Wd(12,mb,!0);return sd(19,20,Ue,Ae),tn(K(xt,St),X)}function yA(){let X=Ft();$i(!1);let Ae=k(),Ue=ie(),St=Nh(!1);xn(100);let xt=sa(42),Ut=xt?1:0,Or=gt(St,aP)?2:0,Wi=Ut&&Or?st(km):Ut?lt(km):Or?se(km):km(),Ci=df(),_i=fn(Ut|Or),Xi=Bt(59,!1),ds=_b(Ut|Or);$i(X);let Is=m.createFunctionExpression(St,xt,Wi,Ci,_i,Xi,ds);return Er(tn(Is,Ae),Ue)}function km(){return Kr()?Ep():void 0}function VE(){let X=k();if(xn(105),mo(25)){let Ut=Ac();return tn(m.createMetaProperty(105,Ut),X)}let Ae=k(),Ue=td(Ae,GE(),!1),St;Ue.kind===233&&(St=Ue.typeArguments,Ue=Ue.expression),H()===29&&dn(f.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,uN(De,Ue));let xt=H()===21?V_():void 0;return tn(ge(Ue,St,xt),X)}function mg(X,Ae){let Ue=k(),St=ie(),xt=t.getTokenStart(),Ut=xn(19,Ae);if(Ut||X){let Or=t.hasPrecedingLineBreak(),Wi=Qo(1,ip);sd(19,20,Ut,xt);let Ci=Er(tn(J(Wi,Or),Ue),St);return H()===64&&(dn(f.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),Ne()),Ci}else{let Or=Sp();return Er(tn(J(Or,void 0),Ue),St)}}function _b(X,Ae){let Ue=Tt();yi(!!(X&1));let St=hn();Ao(!!(X&2));let xt=pn;pn=!1;let Ut=Ft();Ut&&$i(!1);let Or=mg(!!(X&16),Ae);return Ut&&$i(!0),pn=xt,yi(Ue),Ao(St),Or}function q1(){let X=k(),Ae=ie();return xn(27),Er(tn(m.createEmptyStatement(),X),Ae)}function jE(){let X=k(),Ae=ie();xn(101);let Ue=t.getTokenStart(),St=xn(21),xt=vn(Ve);sd(21,22,St,Ue);let Ut=ip(),Or=mo(93)?ip():void 0;return Er(tn(xe(xt,Ut,Or),X),Ae)}function UD(){let X=k(),Ae=ie();xn(92);let Ue=ip();xn(117);let St=t.getTokenStart(),xt=xn(21),Ut=vn(Ve);return sd(21,22,xt,St),mo(27),Er(tn(m.createDoStatement(Ue,Ut),X),Ae)}function TS(){let X=k(),Ae=ie();xn(117);let Ue=t.getTokenStart(),St=xn(21),xt=vn(Ve);sd(21,22,St,Ue);let Ut=ip();return Er(tn(fe(xt,Ut),X),Ae)}function vA(){let X=k(),Ae=ie();xn(99);let Ue=sa(135);xn(21);let St;H()!==27&&(H()===115||H()===121||H()===87||H()===160&&Pi(ey)||H()===135&&Pi(Ip)?St=IS(!0):St=kn(Ve));let xt;if(Ue?xn(165):mo(165)){let Ut=vn(()=>pd(!0));xn(22),xt=he(Ue,St,Ut,ip())}else if(mo(103)){let Ut=vn(Ve);xn(22),xt=m.createForInStatement(St,Ut,ip())}else{xn(27);let Ut=H()!==27&&H()!==22?vn(Ve):void 0;xn(27);let Or=H()!==22?vn(Ve):void 0;xn(22),xt=ne(St,Ut,Or,ip())}return Er(tn(xt,X),Ae)}function Gp(X){let Ae=k(),Ue=ie();xn(X===252?83:88);let St=ac()?void 0:Ds();al();let xt=X===252?m.createBreakStatement(St):m.createContinueStatement(St);return Er(tn(xt,Ae),Ue)}function bA(){let X=k(),Ae=ie();xn(107);let Ue=ac()?void 0:vn(Ve);return al(),Er(tn(m.createReturnStatement(Ue),X),Ae)}function Vl(){let X=k(),Ae=ie();xn(118);let Ue=t.getTokenStart(),St=xn(21),xt=vn(Ve);sd(21,22,St,Ue);let Ut=Ba(67108864,ip);return Er(tn(m.createWithStatement(xt,Ut),X),Ae)}function Oc(){let X=k(),Ae=ie();xn(84);let Ue=vn(Ve);xn(59);let St=Qo(3,ip);return Er(tn(m.createCaseClause(Ue,St),X),Ae)}function EA(){let X=k();xn(90),xn(59);let Ae=Qo(3,ip);return tn(m.createDefaultClause(Ae),X)}function Ed(){return H()===84?Oc():EA()}function rp(){let X=k();xn(19);let Ae=Qo(2,Ed);return xn(20),tn(m.createCaseBlock(Ae),X)}function UE(){let X=k(),Ae=ie();xn(109),xn(21);let Ue=vn(Ve);xn(22);let St=rp();return Er(tn(m.createSwitchStatement(Ue,St),X),Ae)}function Lf(){let X=k(),Ae=ie();xn(111);let Ue=t.hasPrecedingLineBreak()?void 0:vn(Ve);return Ue===void 0&&(Zt++,Ue=tn(N(""),k())),xl()||$l(Ue),Er(tn(m.createThrowStatement(Ue),X),Ae)}function hb(){let X=k(),Ae=ie();xn(113);let Ue=mg(!1),St=H()===85?gb():void 0,xt;return(!St||H()===98)&&(xn(98,f.catch_or_finally_expected),xt=mg(!1)),Er(tn(m.createTryStatement(Ue,St,xt),X),Ae)}function gb(){let X=k();xn(85);let Ae;mo(21)?(Ae=Du(),xn(22)):Ae=void 0;let Ue=mg(!1);return tn(m.createCatchClause(Ae,Ue),X)}function nd(){let X=k(),Ae=ie();return xn(89),al(),Er(tn(m.createDebuggerStatement(),X),Ae)}function X1(){let X=k(),Ae=ie(),Ue,St=H()===21,xt=vn(Ve);return Fe(xt)&&mo(59)?Ue=m.createLabeledStatement(xt,ip()):(xl()||$l(xt),Ue=pe(xt),St&&(Ae=!1)),Er(tn(Ue,X),Ae)}function Vp(){return Ne(),iu(H())&&!t.hasPrecedingLineBreak()}function SA(){return Ne(),H()===86&&!t.hasPrecedingLineBreak()}function TA(){return Ne(),H()===100&&!t.hasPrecedingLineBreak()}function Vs(){return Ne(),(iu(H())||H()===9||H()===10||H()===11)&&!t.hasPrecedingLineBreak()}function HD(){for(;;)switch(H()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return Y1();case 135:return $1();case 120:case 156:return H1();case 144:case 145:return qD();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:let X=H();if(Ne(),t.hasPrecedingLineBreak())return!1;if(X===138&&H()===156)return!0;continue;case 162:return Ne(),H()===19||H()===80||H()===95;case 102:return Ne(),H()===11||H()===42||H()===19||iu(H());case 95:let Ae=Ne();if(Ae===156&&(Ae=Pi(Ne)),Ae===64||Ae===42||Ae===19||Ae===90||Ae===130||Ae===60)return!0;continue;case 126:Ne();continue;default:return!1}}function HE(){return Pi(HD)}function AS(){switch(H()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return HE()||Pi(kE);case 87:case 95:return HE();case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return HE()||!Pi(Vp);default:return e_()}}function xM(){return Ne(),Kr()||H()===19||H()===23}function _u(){return Pi(xM)}function ey(){return j_(!0)}function j_(X){return Ne(),X&&H()===165?!1:(Kr()||H()===19)&&!t.hasPrecedingLineBreak()}function Y1(){return Pi(j_)}function Ip(X){return Ne()===160?j_(X):!1}function $1(){return Pi(Ip)}function ip(){switch(H()){case 27:return q1();case 19:return mg(!1);case 115:return KE(k(),ie(),void 0);case 121:if(_u())return KE(k(),ie(),void 0);break;case 135:if($1())return KE(k(),ie(),void 0);break;case 160:if(Y1())return KE(k(),ie(),void 0);break;case 100:return xS(k(),ie(),void 0);case 86:return DA(k(),ie(),void 0);case 101:return jE();case 92:return UD();case 117:return TS();case 99:return vA();case 88:return Gp(251);case 83:return Gp(252);case 107:return bA();case 118:return Vl();case 109:return UE();case 111:return Lf();case 113:case 85:case 98:return hb();case 89:return nd();case 60:return ov();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(HE())return ov();break}return X1()}function Q1(X){return X.kind===138}function ov(){let X=k(),Ae=ie(),Ue=Nh(!0);if(gt(Ue,Q1)){let xt=AA(X);if(xt)return xt;for(let Ut of Ue)Ut.flags|=33554432;return Ba(33554432,()=>KD(X,Ae,Ue))}else return KD(X,Ae,Ue)}function AA(X){return Ba(33554432,()=>{let Ae=gc(en,X);if(Ae)return sl(Ae)})}function KD(X,Ae,Ue){switch(H()){case 115:case 121:case 87:case 160:case 135:return KE(X,Ae,Ue);case 100:return xS(X,Ae,Ue);case 86:return DA(X,Ae,Ue);case 120:return dt(X,Ae,Ue);case 156:return nn(X,Ae,Ue);case 94:return wi(X,Ae,Ue);case 162:case 144:case 145:return $d(X,Ae,Ue);case 102:return Vn(X,Ae,Ue);case 95:switch(Ne(),H()){case 90:case 64:return Lh(X,Ae,Ue);case 130:return Ph(X,Ae,Ue);default:return RM(X,Ae,Ue)}default:if(Ue){let St=Bs(282,!0,f.Declaration_expected);return KN(St,X),St.modifiers=Ue,St}return}}function JD(){return Ne()===11}function IA(){return Ne(),H()===161||H()===64}function qD(){return Ne(),!t.hasPrecedingLineBreak()&&(Io()||H()===11)}function yb(X,Ae){if(H()!==19){if(X&4){qn();return}if(ac()){al();return}}return _b(X,Ae)}function xp(){let X=k();if(H()===28)return tn(m.createOmittedExpression(),X);let Ae=sa(26),Ue=Sr(),St=t_();return tn(m.createBindingElement(Ae,void 0,Ue,St),X)}function Ch(){let X=k(),Ae=sa(26),Ue=Kr(),St=cn(),xt;Ue&&H()!==59?(xt=St,St=void 0):(xn(59),xt=Sr());let Ut=t_();return tn(m.createBindingElement(Ae,St,xt,Ut),X)}function XD(){let X=k();xn(19);let Ae=vn(()=>Wd(9,Ch));return xn(20),tn(m.createObjectBindingPattern(Ae),X)}function xA(){let X=k();xn(23);let Ae=vn(()=>Wd(10,xp));return xn(24),tn(m.createArrayBindingPattern(Ae),X)}function ts(){return H()===19||H()===23||H()===81||Kr()}function Sr(X){return H()===23?xA():H()===19?XD():Ep(X)}function ff(){return Du(!0)}function Du(X){let Ae=k(),Ue=ie(),St=Sr(f.Private_identifiers_are_not_allowed_in_variable_declarations),xt;X&&St.kind===80&&H()===54&&!t.hasPrecedingLineBreak()&&(xt=ul());let Ut=ev(),Or=Yg(H())?void 0:t_(),Wi=Ce(St,xt,Ut,Or);return Er(tn(Wi,Ae),Ue)}function IS(X){let Ae=k(),Ue=0;switch(H()){case 115:break;case 121:Ue|=1;break;case 87:Ue|=2;break;case 160:Ue|=4;break;case 135:R.assert($1()),Ue|=6,Ne();break;default:R.fail()}Ne();let St;if(H()===165&&Pi(YD))St=Sp();else{let xt=He();si(X),St=Wd(8,X?Du:ff),si(xt)}return tn(Ge(St,Ue),Ae)}function YD(){return tp()&&Ne()===22}function KE(X,Ae,Ue){let St=IS(!1);al();let xt=re(Ue,St);return Er(tn(xt,X),Ae)}function xS(X,Ae,Ue){let St=hn(),xt=x_(Ue);xn(100);let Ut=sa(42),Or=xt&2048?km():Ep(),Wi=Ut?1:0,Ci=xt&1024?2:0,_i=df();xt&32&&Ao(!0);let Xi=fn(Wi|Ci),ds=Bt(59,!1),Is=yb(Wi|Ci,f.or_expected);Ao(St);let $a=m.createFunctionDeclaration(Ue,Ut,Or,_i,Xi,ds,Is);return Er(tn($a,X),Ae)}function RA(){if(H()===137)return xn(137);if(H()===11&&Pi(Ne)===21)return Ri(()=>{let X=Yr();return X.text==="constructor"?X:void 0})}function _g(X,Ae,Ue){return Ri(()=>{if(RA()){let St=df(),xt=fn(0),Ut=Bt(59,!1),Or=yb(0,f.or_expected),Wi=m.createConstructorDeclaration(Ue,xt,Or);return Wi.typeParameters=St,Wi.type=Ut,Er(tn(Wi,X),Ae)}})}function i_(X,Ae,Ue,St,xt,Ut,Or,Wi){let Ci=St?1:0,_i=gt(Ue,aP)?2:0,Xi=df(),ds=fn(Ci|_i),Is=Bt(59,!1),$a=yb(Ci|_i,Wi),Of=m.createMethodDeclaration(Ue,St,xt,Ut,Xi,ds,Is,$a);return Of.exclamationToken=Or,Er(tn(Of,X),Ae)}function mf(X,Ae,Ue,St,xt){let Ut=!xt&&!t.hasPrecedingLineBreak()?sa(54):void 0,Or=ev(),Wi=da(90112,t_);zs(St,Or,Wi);let Ci=m.createPropertyDeclaration(Ue,St,xt||Ut,Or,Wi);return Er(tn(Ci,X),Ae)}function wm(X,Ae,Ue){let St=sa(42),xt=cn(),Ut=sa(58);return St||H()===21||H()===30?i_(X,Ae,Ue,St,xt,Ut,void 0,f.or_expected):mf(X,Ae,Ue,xt,Ut)}function ty(X,Ae,Ue,St,xt){let Ut=cn(),Or=df(),Wi=fn(0),Ci=Bt(59,!1),_i=yb(xt),Xi=St===177?m.createGetAccessorDeclaration(Ue,Ut,Wi,Ci,_i):m.createSetAccessorDeclaration(Ue,Ut,Wi,_i);return Xi.typeParameters=Or,hp(Xi)&&(Xi.type=Ci),Er(tn(Xi,X),Ae)}function hg(){let X;if(H()===60)return!0;for(;Cy(H());){if(X=H(),CV(X))return!0;Ne()}if(H()===42||($()&&(X=H(),Ne()),H()===23))return!0;if(X!==void 0){if(!Ou(X)||X===153||X===139)return!0;switch(H()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return ac()}}return!1}function gg(X,Ae,Ue){Es(126);let St=Z1(),xt=Er(tn(m.createClassStaticBlockDeclaration(St),X),Ae);return xt.modifiers=Ue,xt}function Z1(){let X=Tt(),Ae=hn();yi(!1),Ao(!0);let Ue=mg(!1);return yi(X),Ao(Ae),Ue}function sc(){if(hn()&&H()===135){let X=k(),Ae=Ds(f.Expression_expected);Ne();let Ue=td(X,Ae,!0);return iv(X,Ue)}return sm()}function $D(){let X=k();if(!mo(60))return;let Ae=Dt(sc);return tn(m.createDecorator(Ae),X)}function kf(X,Ae,Ue){let St=k(),xt=H();if(H()===87&&Ae){if(!Ri(Di))return}else{if(Ue&&H()===126&&Pi(bb))return;if(X&&H()===126)return;if(!jc())return}return tn(w(xt),St)}function Nh(X,Ae,Ue){let St=k(),xt,Ut,Or,Wi=!1,Ci=!1,_i=!1;if(X&&H()===60)for(;Ut=$D();)xt=Tn(xt,Ut);for(;Or=kf(Wi,Ae,Ue);)Or.kind===126&&(Wi=!0),xt=Tn(xt,Or),Ci=!0;if(Ci&&X&&H()===60)for(;Ut=$D();)xt=Tn(xt,Ut),_i=!0;if(_i)for(;Or=kf(Wi,Ae,Ue);)Or.kind===126&&(Wi=!0),xt=Tn(xt,Or);return xt&&Mo(xt,St)}function _f(){let X;if(H()===134){let Ae=k();Ne();let Ue=tn(w(134),Ae);X=Mo([Ue],Ae)}return X}function RS(){let X=k(),Ae=ie();if(H()===27)return Ne(),Er(tn(m.createSemicolonClassElement(),X),Ae);let Ue=Nh(!0,!0,!0);if(H()===126&&Pi(bb))return gg(X,Ae,Ue);if(zr(139))return ty(X,Ae,Ue,177,0);if(zr(153))return ty(X,Ae,Ue,178,0);if(H()===137||H()===11){let St=_g(X,Ae,Ue);if(St)return St}if(or())return dr(X,Ae,Ue);if(iu(H())||H()===11||H()===9||H()===42||H()===23)if(gt(Ue,Q1)){for(let xt of Ue)xt.flags|=33554432;return Ba(33554432,()=>wm(X,Ae,Ue))}else return wm(X,Ae,Ue);if(Ue){let St=Bs(80,!0,f.Declaration_expected);return mf(X,Ae,Ue,St,void 0)}return R.fail("Should not have attempted to parse class member declaration.")}function JE(){let X=k(),Ae=ie(),Ue=Nh(!0);if(H()===86)return hf(X,Ae,Ue,231);let St=Bs(282,!0,f.Expression_expected);return KN(St,X),St.modifiers=Ue,St}function ex(){return hf(k(),ie(),void 0,231)}function DA(X,Ae,Ue){return hf(X,Ae,Ue,263)}function hf(X,Ae,Ue,St){let xt=hn();xn(86);let Ut=Cs(),Or=df();gt(Ue,JI)&&Ao(!0);let Wi=CS(),Ci;xn(19)?(Ci=oe(),xn(20)):Ci=Sp(),Ao(xt);let _i=St===263?m.createClassDeclaration(Ue,Ut,Or,Wi,Ci):m.createClassExpression(Ue,Ut,Or,Wi,Ci);return Er(tn(_i,X),Ae)}function Cs(){return Kr()&&!DS()?cd(Kr()):void 0}function DS(){return H()===119&&Pi(wc)}function CS(){if(I())return Qo(22,ny)}function ny(){let X=k(),Ae=H();R.assert(Ae===96||Ae===119),Ne();let Ue=Wd(7,vb);return tn(m.createHeritageClause(Ae,Ue),X)}function vb(){let X=k(),Ae=sm();if(Ae.kind===233)return Ae;let Ue=qE();return tn(m.createExpressionWithTypeArguments(Ae,Ue),X)}function qE(){return H()===30?Bu(20,yc,30,32):void 0}function I(){return H()===96||H()===119}function oe(){return Qo(5,RS)}function dt(X,Ae,Ue){xn(120);let St=Ds(),xt=df(),Ut=CS(),Or=wE(),Wi=m.createInterfaceDeclaration(Ue,St,xt,Ut,Or);return Er(tn(Wi,X),Ae)}function nn(X,Ae,Ue){xn(156),t.hasPrecedingLineBreak()&&dn(f.Line_break_not_permitted_here);let St=Ds(),xt=df();xn(64);let Ut=H()===141&&Ri(aA)||yc();al();let Or=m.createTypeAliasDeclaration(Ue,St,xt,Ut);return Er(tn(Or,X),Ae)}function Lr(){let X=k(),Ae=ie(),Ue=cn(),St=vn(t_);return Er(tn(m.createEnumMember(Ue,St),X),Ae)}function wi(X,Ae,Ue){xn(94);let St=Ds(),xt;xn(19)?(xt=G(()=>Wd(6,Lr)),xn(20)):xt=Sp();let Ut=m.createEnumDeclaration(Ue,St,xt);return Er(tn(Ut,X),Ae)}function vi(){let X=k(),Ae;return xn(19)?(Ae=Qo(1,ip),xn(20)):Ae=Sp(),tn(m.createModuleBlock(Ae),X)}function Zi(X,Ae,Ue,St){let xt=St&32,Ut=St&8?Ac():Ds(),Or=mo(25)?Zi(k(),!1,void 0,8|xt):vi(),Wi=m.createModuleDeclaration(Ue,Ut,Or,St);return Er(tn(Wi,X),Ae)}function ma(X,Ae,Ue){let St=0,xt;H()===162?(xt=Ds(),St|=2048):(xt=Yr(),xt.text=ed(xt.text));let Ut;H()===19?Ut=vi():al();let Or=m.createModuleDeclaration(Ue,xt,Ut,St);return Er(tn(Or,X),Ae)}function $d(X,Ae,Ue){let St=0;if(H()===162)return ma(X,Ae,Ue);if(mo(145))St|=32;else if(xn(144),H()===11)return ma(X,Ae,Ue);return Zi(X,Ae,Ue,St)}function Cu(){return H()===149&&Pi(wf)}function wf(){return Ne()===21}function bb(){return Ne()===19}function Si(){return Ne()===44}function Ph(X,Ae,Ue){xn(130),xn(145);let St=Ds();al();let xt=m.createNamespaceExportDeclaration(St);return xt.modifiers=Ue,Er(tn(xt,X),Ae)}function Vn(X,Ae,Ue){xn(102);let St=t.getTokenFullStart(),xt;Io()&&(xt=Ds());let Ut=!1;if(xt?.escapedText==="type"&&(H()!==161||Io()&&Pi(IA))&&(Io()||Sb())&&(Ut=!0,xt=Io()?Ds():void 0),xt&&!CA())return NS(X,Ae,Ue,xt,Ut);let Or;(xt||H()===42||H()===19)&&(Or=U_(xt,St,Ut),xn(161));let Wi=NA(),Ci=H(),_i;(Ci===118||Ci===132)&&!t.hasPrecedingLineBreak()&&(_i=Eb(Ci)),al();let Xi=m.createImportDeclaration(Ue,Or,Wi,_i);return Er(tn(Xi,X),Ae)}function tx(){let X=k(),Ae=iu(H())?Ac():wl(11);xn(59);let Ue=pd(!0);return tn(m.createImportAttribute(Ae,Ue),X)}function Eb(X,Ae){let Ue=k();Ae||xn(X);let St=t.getTokenStart();if(xn(19)){let xt=t.hasPrecedingLineBreak(),Ut=Wd(24,tx,!0);if(!xn(20)){let Or=$s(ze);Or&&Or.code===f._0_expected.code&&Ma(Or,gR(ve,De,St,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return tn(m.createImportAttributes(Ut,xt,X),Ue)}else{let xt=Mo([],k(),void 0,!1);return tn(m.createImportAttributes(xt,!1,X),Ue)}}function Sb(){return H()===42||H()===19}function CA(){return H()===28||H()===161}function NS(X,Ae,Ue,St,xt){xn(64);let Ut=Mh();al();let Or=m.createImportEqualsDeclaration(Ue,xt,St,Ut);return Er(tn(Or,X),Ae)}function U_(X,Ae,Ue){let St;return(!X||mo(28))&&(St=H()===42?UB():Tb(275)),tn(m.createImportClause(Ue,X,St),Ae)}function Mh(){return Cu()?QD():Z(!1)}function QD(){let X=k();xn(149),xn(21);let Ae=NA();return xn(22),tn(m.createExternalModuleReference(Ae),X)}function NA(){if(H()===11){let X=Yr();return X.text=ed(X.text),X}else return Ve()}function UB(){let X=k();xn(42),xn(130);let Ae=Ds();return tn(m.createNamespaceImport(Ae),X)}function Tb(X){let Ae=k(),Ue=X===275?m.createNamedImports(Bu(23,d8,19,20)):m.createNamedExports(Bu(23,c8,19,20));return tn(Ue,Ae)}function c8(){let X=ie();return Er(XE(281),X)}function d8(){return XE(276)}function XE(X){let Ae=k(),Ue=Ou(H())&&!Io(),St=t.getTokenStart(),xt=t.getTokenEnd(),Ut=!1,Or,Wi=!0,Ci=Ac();if(Ci.escapedText==="type")if(H()===130){let ds=Ac();if(H()===130){let Is=Ac();iu(H())?(Ut=!0,Or=ds,Ci=Xi(),Wi=!1):(Or=Ci,Ci=Is,Wi=!1)}else iu(H())?(Or=Ci,Wi=!1,Ci=Xi()):(Ut=!0,Ci=ds)}else iu(H())&&(Ut=!0,Ci=Xi());Wi&&H()===130&&(Or=Ci,xn(130),Ci=Xi()),X===276&&Ue&&U(St,xt,f.Identifier_expected);let _i=X===276?m.createImportSpecifier(Ut,Or,Ci):m.createExportSpecifier(Ut,Or,Ci);return tn(_i,Ae);function Xi(){return Ue=Ou(H())&&!Io(),St=t.getTokenStart(),xt=t.getTokenEnd(),Ac()}}function o_(X){return tn(m.createNamespaceExport(Ac()),X)}function RM(X,Ae,Ue){let St=hn();Ao(!0);let xt,Ut,Or,Wi=mo(156),Ci=k();mo(42)?(mo(130)&&(xt=o_(Ci)),xn(161),Ut=NA()):(xt=Tb(279),(H()===161||H()===11&&!t.hasPrecedingLineBreak())&&(xn(161),Ut=NA()));let _i=H();Ut&&(_i===118||_i===132)&&!t.hasPrecedingLineBreak()&&(Or=Eb(_i)),al(),Ao(St);let Xi=m.createExportDeclaration(Ue,Wi,xt,Ut,Or);return Er(tn(Xi,X),Ae)}function Lh(X,Ae,Ue){let St=hn();Ao(!0);let xt;mo(64)?xt=!0:xn(90);let Ut=pd(!0);al(),Ao(St);let Or=m.createExportAssignment(Ue,xt,Ut);return Er(tn(Or,X),Ae)}let nx;(X=>{X[X.SourceElements=0]="SourceElements",X[X.BlockStatements=1]="BlockStatements",X[X.SwitchClauses=2]="SwitchClauses",X[X.SwitchClauseStatements=3]="SwitchClauseStatements",X[X.TypeMembers=4]="TypeMembers",X[X.ClassMembers=5]="ClassMembers",X[X.EnumMembers=6]="EnumMembers",X[X.HeritageClauseElement=7]="HeritageClauseElement",X[X.VariableDeclarations=8]="VariableDeclarations",X[X.ObjectBindingElements=9]="ObjectBindingElements",X[X.ArrayBindingElements=10]="ArrayBindingElements",X[X.ArgumentExpressions=11]="ArgumentExpressions",X[X.ObjectLiteralMembers=12]="ObjectLiteralMembers",X[X.JsxAttributes=13]="JsxAttributes",X[X.JsxChildren=14]="JsxChildren",X[X.ArrayLiteralMembers=15]="ArrayLiteralMembers",X[X.Parameters=16]="Parameters",X[X.JSDocParameters=17]="JSDocParameters",X[X.RestProperties=18]="RestProperties",X[X.TypeParameters=19]="TypeParameters",X[X.TypeArguments=20]="TypeArguments",X[X.TupleElementTypes=21]="TupleElementTypes",X[X.HeritageClauses=22]="HeritageClauses",X[X.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",X[X.ImportAttributes=24]="ImportAttributes",X[X.JSDocComment=25]="JSDocComment",X[X.Count=26]="Count"})(nx||(nx={}));let u8;(X=>{X[X.False=0]="False",X[X.True=1]="True",X[X.Unknown=2]="Unknown"})(u8||(u8={}));let H_;(X=>{function Ae(_i,Xi,ds){Li("file.js",_i,99,void 0,1,0),t.setText(_i,Xi,ds),_t=t.scan();let Is=Ue(),$a=Ot("file.js",99,1,!1,[],w(1),0,qa),Of=wI(ze,$a);return tt&&($a.jsDocDiagnostics=wI(tt,$a)),Eo(),Is?{jsDocTypeExpression:Is,diagnostics:Of}:void 0}X.parseJSDocTypeExpressionForTests=Ae;function Ue(_i){let Xi=k(),ds=(_i?mo:xn)(19),Is=Ba(16777216,Nm);(!_i||ds)&&ml(20);let $a=m.createJSDocTypeExpression(Is);return Ye($a),tn($a,Xi)}X.parseJSDocTypeExpression=Ue;function St(){let _i=k(),Xi=mo(19),ds=k(),Is=Z(!1);for(;H()===81;)gi(),It(),Is=tn(m.createJSDocMemberName(Is,Ds()),ds);Xi&&ml(20);let $a=m.createJSDocNameReference(Is);return Ye($a),tn($a,_i)}X.parseJSDocNameReference=St;function xt(_i,Xi,ds){Li("",_i,99,void 0,1,0);let Is=Ba(16777216,()=>Ci(Xi,ds)),Of=wI(ze,{languageVariant:0,text:_i});return Eo(),Is?{jsDoc:Is,diagnostics:Of}:void 0}X.parseIsolatedJSDocComment=xt;function Ut(_i,Xi,ds){let Is=_t,$a=ze.length,Of=Yt,K_=Ba(16777216,()=>Ci(Xi,ds));return ja(K_,_i),Kn&524288&&(tt||(tt=[]),Hr(tt,ze,$a)),_t=Is,ze.length=$a,Yt=Of,K_}X.parseJSDocComment=Ut;let Or;(_i=>{_i[_i.BeginningOfLine=0]="BeginningOfLine",_i[_i.SawAsterisk=1]="SawAsterisk",_i[_i.SavingComments=2]="SavingComments",_i[_i.SavingBackticks=3]="SavingBackticks"})(Or||(Or={}));let Wi;(_i=>{_i[_i.Property=1]="Property",_i[_i.Parameter=2]="Parameter",_i[_i.CallbackParameter=4]="CallbackParameter"})(Wi||(Wi={}));function Ci(_i=0,Xi){let ds=De,Is=Xi===void 0?ds.length:_i+Xi;if(Xi=Is-_i,R.assert(_i>=0),R.assert(_i<=Is),R.assert(Is<=ds.length),!RH(ds,_i))return;let $a,Of,K_,yg,ry,iy=[],Ab=[],op=en;en|=1<<25;let PA=t.scanRange(_i+3,Xi-5,ZD);return en=op,PA;function ZD(){let Rn=1,Wr,Nr=_i-(ds.lastIndexOf(` +`,_i)+1)+4;function Fi(Ss){Wr||(Wr=Nr),iy.push(Ss),Nr+=Ss.length}for(It();av(5););av(4)&&(Rn=0,Nr=0);e:for(;;){switch(H()){case 60:CM(iy),ry||(ry=k()),PM(eC(Nr)),Rn=0,Wr=void 0;break;case 4:iy.push(t.getTokenText()),Rn=0,Nr=0;break;case 42:let Ss=t.getTokenText();Rn===1?(Rn=2,Fi(Ss)):(R.assert(Rn===0),Rn=1,Nr+=Ss.length);break;case 5:R.assert(Rn!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let Qd=t.getTokenText();Wr!==void 0&&Nr+Qd.length>Wr&&iy.push(Qd.slice(Wr-Nr)),Nr+=Qd.length;break;case 1:break e;case 82:Rn=2,Fi(t.getTokenValue());break;case 19:Rn=2;let kh=t.getTokenFullStart(),Rp=t.getTokenEnd()-1,s_=lc(Rp);if(s_){yg||DM(iy),Ab.push(tn(m.createJSDocText(iy.join("")),yg??_i,kh)),Ab.push(s_),iy=[],yg=t.getTokenEnd();break}default:Rn=2,Fi(t.getTokenText());break}Rn===2?Ct(!1):It()}let Mi=iy.join("").trimEnd();Ab.length&&Mi.length&&Ab.push(tn(m.createJSDocText(Mi),yg??_i,ry)),Ab.length&&$a&&R.assertIsDefined(ry,"having parsed tags implies that the end of the comment span should be set");let ns=$a&&Mo($a,Of,K_);return tn(m.createJSDocComment(Ab.length?Mo(Ab,_i,ry):Mi.length?Mi:void 0,ns),_i,Is)}function DM(Rn){for(;Rn.length&&(Rn[0]===` +`||Rn[0]==="\r");)Rn.shift()}function CM(Rn){for(;Rn.length;){let Wr=Rn[Rn.length-1].trimEnd();if(Wr==="")Rn.pop();else if(Wr.lengthQd&&(Fi.push(ay.slice(Qd-Rn)),Ss=2),Rn+=ay.length;break;case 19:Ss=2;let Dp=t.getTokenFullStart(),rC=t.getTokenEnd()-1,p8=lc(rC);p8?(Mi.push(tn(m.createJSDocText(Fi.join("")),ns??Nr,Dp)),Mi.push(p8),Fi=[],ns=t.getTokenEnd()):kh(t.getTokenText());break;case 62:Ss===3?Ss=2:Ss=3,kh(t.getTokenText());break;case 82:Ss!==3&&(Ss=2),kh(t.getTokenValue());break;case 42:if(Ss===0){Ss=1,Rn+=1;break}default:Ss!==3&&(Ss=2),kh(t.getTokenText());break}Ss===2||Ss===3?Rp=Ct(Ss===3):Rp=It()}DM(Fi);let s_=Fi.join("").trimEnd();if(Mi.length)return s_.length&&Mi.push(tn(m.createJSDocText(s_),ns??Nr)),Mo(Mi,Nr,t.getTokenEnd());if(s_.length)return s_}function lc(Rn){let Wr=Ri(rx);if(!Wr)return;It(),oy();let Nr=$E(),Fi=[];for(;H()!==20&&H()!==4&&H()!==1;)Fi.push(t.getTokenText()),It();let Mi=Wr==="link"?m.createJSDocLink:Wr==="linkcode"?m.createJSDocLinkCode:m.createJSDocLinkPlain;return tn(Mi(Nr,Fi.join("")),Rn,t.getTokenEnd())}function $E(){if(iu(H())){let Rn=k(),Wr=Ac();for(;mo(25);)Wr=tn(m.createQualifiedName(Wr,H()===81?Bs(80,!1):Ds()),Rn);for(;H()===81;)gi(),It(),Wr=tn(m.createJSDocMemberName(Wr,Ds()),Rn);return Wr}}function rx(){if(Ib(),H()===19&&It()===60&&iu(It())){let Rn=t.getTokenValue();if(NM(Rn))return Rn}}function NM(Rn){return Rn==="link"||Rn==="linkcode"||Rn==="linkplain"}function xb(Rn,Wr,Nr,Fi){return tn(m.createJSDocUnknownTag(Wr,jp(Rn,k(),Nr,Fi)),Rn)}function PM(Rn){Rn&&($a?$a.push(Rn):($a=[Rn],Of=Rn.pos),K_=Rn.end)}function tr(){return Ib(),H()===19?Ue():void 0}function v(){let Rn=av(23);Rn&&oy();let Wr=av(62),Nr=nC();return Wr&&Na(62),Rn&&(oy(),sa(64)&&Ve(),xn(24)),{name:Nr,isBracketed:Rn}}function C(Rn){switch(Rn.kind){case 151:return!0;case 188:return C(Rn.elementType);default:return If(Rn)&&Fe(Rn.typeName)&&Rn.typeName.escapedText==="Object"&&!Rn.typeArguments}}function F(Rn,Wr,Nr,Fi){let Mi=tr(),ns=!Mi;Ib();let{name:Ss,isBracketed:Qd}=v(),kh=Ib();ns&&!Pi(rx)&&(Mi=tr());let Rp=jp(Rn,k(),Fi,kh),s_=le(Mi,Ss,Nr,Fi);s_&&(Mi=s_,ns=!0);let ay=Nr===1?m.createJSDocPropertyTag(Wr,Ss,Qd,Mi,ns,Rp):m.createJSDocParameterTag(Wr,Ss,Qd,Mi,ns,Rp);return tn(ay,Rn)}function le(Rn,Wr,Nr,Fi){if(Rn&&C(Rn.type)){let Mi=k(),ns,Ss;for(;ns=Ri(()=>JB(Nr,Fi,Wr));)ns.kind===348||ns.kind===355?Ss=Tn(Ss,ns):ns.kind===352&&Me(ns.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(Ss){let Qd=tn(m.createJSDocTypeLiteral(Ss,Rn.type.kind===188),Mi);return tn(m.createJSDocTypeExpression(Qd),Mi)}}}function Ke(Rn,Wr,Nr,Fi){gt($a,H4)&&U(Wr.pos,t.getTokenStart(),f._0_tag_already_specified,Vi(Wr.escapedText));let Mi=tr();return tn(m.createJSDocReturnTag(Wr,Mi,jp(Rn,k(),Nr,Fi)),Rn)}function Ht(Rn,Wr,Nr,Fi){gt($a,gP)&&U(Wr.pos,t.getTokenStart(),f._0_tag_already_specified,Vi(Wr.escapedText));let Mi=Ue(!0),ns=Nr!==void 0&&Fi!==void 0?jp(Rn,k(),Nr,Fi):void 0;return tn(m.createJSDocTypeTag(Wr,Mi,ns),Rn)}function hr(Rn,Wr,Nr,Fi){let ns=H()===23||Pi(()=>It()===60&&iu(It())&&NM(t.getTokenValue()))?void 0:St(),Ss=Nr!==void 0&&Fi!==void 0?jp(Rn,k(),Nr,Fi):void 0;return tn(m.createJSDocSeeTag(Wr,ns,Ss),Rn)}function eo(Rn,Wr,Nr,Fi){let Mi=tr(),ns=jp(Rn,k(),Nr,Fi);return tn(m.createJSDocThrowsTag(Wr,Mi,ns),Rn)}function js(Rn,Wr,Nr,Fi){let Mi=k(),ns=a_(),Ss=t.getTokenFullStart(),Qd=jp(Rn,Ss,Nr,Fi);Qd||(Ss=t.getTokenFullStart());let kh=typeof Qd!="string"?Mo(bo([tn(ns,Mi,Ss)],Qd),Mi):ns.text+Qd;return tn(m.createJSDocAuthorTag(Wr,kh),Rn)}function a_(){let Rn=[],Wr=!1,Nr=t.getToken();for(;Nr!==1&&Nr!==4;){if(Nr===30)Wr=!0;else{if(Nr===60&&!Wr)break;if(Nr===32&&Wr){Rn.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}Rn.push(t.getTokenText()),Nr=It()}return m.createJSDocText(Rn.join(""))}function Rb(Rn,Wr,Nr,Fi){let Mi=sZ();return tn(m.createJSDocImplementsTag(Wr,Mi,jp(Rn,k(),Nr,Fi)),Rn)}function Om(Rn,Wr,Nr,Fi){let Mi=sZ();return tn(m.createJSDocAugmentsTag(Wr,Mi,jp(Rn,k(),Nr,Fi)),Rn)}function QE(Rn,Wr,Nr,Fi){let Mi=Ue(!1),ns=Nr!==void 0&&Fi!==void 0?jp(Rn,k(),Nr,Fi):void 0;return tn(m.createJSDocSatisfiesTag(Wr,Mi,ns),Rn)}function sZ(){let Rn=mo(19),Wr=k(),Nr=Uhe();t.setInJSDocType(!0);let Fi=qE();t.setInJSDocType(!1);let Mi=m.createExpressionWithTypeArguments(Nr,Fi),ns=tn(Mi,Wr);return Rn&&xn(20),ns}function Uhe(){let Rn=k(),Wr=e0();for(;mo(25);){let Nr=e0();Wr=tn(Y(Wr,Nr),Rn)}return Wr}function ZE(Rn,Wr,Nr,Fi,Mi){return tn(Wr(Nr,jp(Rn,k(),Fi,Mi)),Rn)}function HB(Rn,Wr,Nr,Fi){let Mi=Ue(!0);return oy(),tn(m.createJSDocThisTag(Wr,Mi,jp(Rn,k(),Nr,Fi)),Rn)}function lZ(Rn,Wr,Nr,Fi){let Mi=Ue(!0);return oy(),tn(m.createJSDocEnumTag(Wr,Mi,jp(Rn,k(),Nr,Fi)),Rn)}function MM(Rn,Wr,Nr,Fi){let Mi=tr();Ib();let ns=KB();oy();let Ss=Ga(Nr),Qd;if(!Mi||C(Mi.type)){let Rp,s_,ay,Dp=!1;for(;(Rp=Ri(()=>uZ(Nr)))&&Rp.kind!==352;)if(Dp=!0,Rp.kind===351)if(s_){let rC=dn(f.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);rC&&Ma(rC,gR(ve,De,0,0,f.The_tag_was_first_specified_here));break}else s_=Rp;else ay=Tn(ay,Rp);if(Dp){let rC=Mi&&Mi.type.kind===188,p8=m.createJSDocTypeLiteral(ay,rC);Mi=s_&&s_.typeExpression&&!C(s_.typeExpression.type)?s_.typeExpression:tn(p8,Rn),Qd=Mi.end}}Qd=Qd||Ss!==void 0?k():(ns??Mi??Wr).end,Ss||(Ss=jp(Rn,Qd,Nr,Fi));let kh=m.createJSDocTypedefTag(Wr,Mi,ns,Ss);return tn(kh,Rn,Qd)}function KB(Rn){let Wr=t.getTokenStart();if(!iu(H()))return;let Nr=e0();if(mo(25)){let Fi=KB(!0),Mi=m.createModuleDeclaration(void 0,Nr,Fi,Rn?8:void 0);return tn(Mi,Wr)}return Rn&&(Nr.flags|=4096),Nr}function cZ(Rn){let Wr=k(),Nr,Fi;for(;Nr=Ri(()=>JB(4,Rn));){if(Nr.kind===352){Me(Nr.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}Fi=Tn(Fi,Nr)}return Mo(Fi||[],Wr)}function dZ(Rn,Wr){let Nr=cZ(Wr),Fi=Ri(()=>{if(av(60)){let Mi=eC(Wr);if(Mi&&Mi.kind===349)return Mi}});return tn(m.createJSDocSignature(void 0,Nr,Fi),Rn)}function Hhe(Rn,Wr,Nr,Fi){let Mi=KB();oy();let ns=Ga(Nr),Ss=dZ(Rn,Nr);ns||(ns=jp(Rn,k(),Nr,Fi));let Qd=ns!==void 0?k():Ss.end;return tn(m.createJSDocCallbackTag(Wr,Ss,Mi,ns),Rn,Qd)}function Khe(Rn,Wr,Nr,Fi){oy();let Mi=Ga(Nr),ns=dZ(Rn,Nr);Mi||(Mi=jp(Rn,k(),Nr,Fi));let Ss=Mi!==void 0?k():ns.end;return tn(m.createJSDocOverloadTag(Wr,ns,Mi),Rn,Ss)}function tC(Rn,Wr){for(;!Fe(Rn)||!Fe(Wr);)if(!Fe(Rn)&&!Fe(Wr)&&Rn.right.escapedText===Wr.right.escapedText)Rn=Rn.left,Wr=Wr.left;else return!1;return Rn.escapedText===Wr.escapedText}function uZ(Rn){return JB(1,Rn)}function JB(Rn,Wr,Nr){let Fi=!0,Mi=!1;for(;;)switch(It()){case 60:if(Fi){let ns=PS(Rn,Wr);return ns&&(ns.kind===348||ns.kind===355)&&Nr&&(Fe(ns.name)||!tC(Nr,ns.name.left))?!1:ns}Mi=!1;break;case 4:Fi=!0,Mi=!1;break;case 42:Mi&&(Fi=!1),Mi=!0;break;case 80:Fi=!1;break;case 1:return!1}}function PS(Rn,Wr){R.assert(H()===60);let Nr=t.getTokenFullStart();It();let Fi=e0(),Mi=Ib(),ns;switch(Fi.escapedText){case"type":return Rn===1&&Ht(Nr,Fi);case"prop":case"property":ns=1;break;case"arg":case"argument":case"param":ns=6;break;case"template":return Cb(Nr,Fi,Wr,Mi);case"this":return HB(Nr,Fi,Wr,Mi);default:return!1}return Rn&ns?F(Nr,Fi,Rn,Wr):!1}function sr(){let Rn=k(),Wr=av(23);Wr&&oy();let Nr=Nh(!1,!0),Fi=e0(f.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),Mi;if(Wr&&(oy(),xn(64),Mi=Ba(16777216,Nm),xn(24)),!Fl(Fi))return tn(m.createTypeParameterDeclaration(Nr,Fi,void 0,Mi),Rn)}function Db(){let Rn=k(),Wr=[];do{oy();let Nr=sr();Nr!==void 0&&Wr.push(Nr),Ib()}while(av(28));return Mo(Wr,Rn)}function Cb(Rn,Wr,Nr,Fi){let Mi=H()===19?Ue():void 0,ns=Db();return tn(m.createJSDocTemplateTag(Wr,Mi,ns,jp(Rn,k(),Nr,Fi)),Rn)}function av(Rn){return H()===Rn?(It(),!0):!1}function nC(){let Rn=e0();for(mo(23)&&xn(24);mo(25);){let Wr=e0();mo(23)&&xn(24),Rn=rt(Rn,Wr)}return Rn}function e0(Rn){if(!iu(H()))return Bs(80,!Rn,Rn||f.Identifier_expected);Zt++;let Wr=t.getTokenStart(),Nr=t.getTokenEnd(),Fi=H(),Mi=ed(t.getTokenValue()),ns=tn(N(Mi,Fi),Wr,Nr);return It(),ns}}})(H_=e.JSDocParser||(e.JSDocParser={}))})(SE||(SE={})),(e=>{function t(S,A,N,D){if(D=D||R.shouldAssert(2),m(S,A,N,D),Kne(N))return S;if(S.statements.length===0)return SE.parseSourceFile(S.fileName,A,S.languageVersion,void 0,!0,S.scriptKind,S.setExternalModuleIndicator,S.jsDocParsingMode);let w=S;R.assert(!w.hasBeenIncrementallyParsed),w.hasBeenIncrementallyParsed=!0,SE.fixupParentReferences(w);let j=S.text,K=y(S),Y=p(S,N);m(S,A,Y,D),R.assert(Y.span.start<=N.span.start),R.assert(Jl(Y.span)===Jl(N.span)),R.assert(Jl(ZC(Y))===Jl(ZC(N)));let B=ZC(Y).length-Y.span.length;d(w,Y.span.start,Jl(Y.span),Jl(ZC(Y)),B,j,A,D);let ce=SE.parseSourceFile(S.fileName,A,S.languageVersion,K,!0,S.scriptKind,S.setExternalModuleIndicator,S.jsDocParsingMode);return ce.commentDirectives=r(S.commentDirectives,ce.commentDirectives,Y.span.start,Jl(Y.span),B,j,A,D),ce.impliedNodeFormat=S.impliedNodeFormat,ce}e.updateSourceFile=t;function r(S,A,N,D,w,j,K,Y){if(!S)return A;let B,ce=!1;for(let ee of S){let{range:me,type:ge}=ee;if(me.endD){z();let q={range:{pos:me.pos+w,end:me.end+w},type:ge};B=Tn(B,q),Y&&R.assert(j.substring(me.pos,me.end)===K.substring(q.range.pos,q.range.end))}}return z(),B;function z(){ce||(ce=!0,B?A&&B.push(...A):B=A)}}function i(S,A,N,D,w,j){A?Y(S):K(S);return;function K(B){let ce="";if(j&&o(B)&&(ce=D.substring(B.pos,B.end)),B._children&&(B._children=void 0),mh(B,B.pos+N,B.end+N),j&&o(B)&&R.assert(ce===w.substring(B.pos,B.end)),Bo(B,K,Y),kp(B))for(let z of B.jsDoc)K(z);l(B,j)}function Y(B){B._children=void 0,mh(B,B.pos+N,B.end+N);for(let ce of B)K(ce)}}function o(S){switch(S.kind){case 11:case 9:case 80:return!0}return!1}function s(S,A,N,D,w){R.assert(S.end>=A,"Adjusting an element that was entirely before the change range"),R.assert(S.pos<=N,"Adjusting an element that was entirely after the change range"),R.assert(S.pos<=S.end);let j=Math.min(S.pos,D),K=S.end>=N?S.end+w:Math.min(S.end,D);R.assert(j<=K),S.parent&&(R.assertGreaterThanOrEqual(j,S.parent.pos),R.assertLessThanOrEqual(K,S.parent.end)),mh(S,j,K)}function l(S,A){if(A){let N=S.pos,D=w=>{R.assert(w.pos>=N),N=w.end};if(kp(S))for(let w of S.jsDoc)D(w);Bo(S,D),R.assert(N<=S.end)}}function d(S,A,N,D,w,j,K,Y){B(S);return;function B(z){if(R.assert(z.pos<=z.end),z.pos>N){i(z,!1,w,j,K,Y);return}let ee=z.end;if(ee>=A){if(z.intersectsChange=!0,z._children=void 0,s(z,A,N,D,w),Bo(z,B,ce),kp(z))for(let me of z.jsDoc)B(me);l(z,Y);return}R.assert(eeN){i(z,!0,w,j,K,Y);return}let ee=z.end;if(ee>=A){z.intersectsChange=!0,z._children=void 0,s(z,A,N,D,w);for(let me of z)B(me);return}R.assert(ee0&&K<=1;K++){let Y=h(S,D);R.assert(Y.pos<=D);let B=Y.pos;D=Math.max(0,B-1)}let w=dc(D,Jl(A.span)),j=A.newLength+(A.span.start-D);return XL(w,j)}function h(S,A){let N=S,D;if(Bo(S,j),D){let K=w(D);K.pos>N.pos&&(N=K)}return N;function w(K){for(;;){let Y=Zj(K);if(Y)K=Y;else return K}}function j(K){if(!Fl(K))if(K.pos<=A){if(K.pos>=N.pos&&(N=K),AA),!0}}function m(S,A,N,D){let w=S.text;if(N&&(R.assert(w.length-N.span.length+N.newLength===A.length),D||R.shouldAssert(3))){let j=w.substr(0,N.span.start),K=A.substr(0,N.span.start);R.assert(j===K);let Y=w.substring(Jl(N.span),w.length),B=A.substring(Jl(ZC(N)),A.length);R.assert(Y===B)}}function y(S){let A=S.statements,N=0;R.assert(N=ce.pos&&K=ce.pos&&K{S[S.Value=-1]="Value"})(E||(E={}))})(LH||(LH={})),kH=new Map,GTe=/^\/\/\/\s*<(\S+)\s.*?\/>/im,VTe=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im}});function r3(e){let t=new Map,r=new Map;return gn(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&r.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:r}}function GR(){return xAe||(xAe=r3(ag))}function Zae(e){return jTe(e,jl)}function jTe(e,t){let r=Oo(e.type.keys()),i=(e.deprecatedKeys?r.filter(o=>!e.deprecatedKeys.has(o)):r).map(o=>`'${o}'`).join(", ");return t(f.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,i)}function i3(e,t,r){return EAe(e,(t??"").trim(),r)}function ese(e,t="",r){if(t=t.trim(),ao(t,"-"))return;if(e.type==="listOrElement"&&!t.includes(","))return c1(e,t,r);if(t==="")return[];let i=t.split(",");switch(e.element.type){case"number":return to(i,o=>c1(e.element,parseInt(o),r));case"string":return to(i,o=>c1(e.element,o||"",r));case"boolean":case"object":return R.fail(`List of ${e.element.type} is not yet supported.`);default:return to(i,o=>i3(e.element,o,r))}}function UTe(e){return e.name}function tse(e,t,r,i,o){var s;if((s=t.alternateMode)!=null&&s.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return TE(o,i,t.alternateMode.diagnostic,e);let l=VC(e,t.optionDeclarations,UTe);return l?TE(o,i,t.unknownDidYouMeanDiagnostic,r||e,l.name):TE(o,i,t.unknownOptionDiagnostic,r||e)}function wH(e,t,r){let i={},o,s=[],l=[];return d(t),{options:i,watchOptions:o,fileNames:s,errors:l};function d(h){let m=0;for(;mmd.readFile(S)));if(!Co(m)){l.push(m);return}let y=[],E=0;for(;;){for(;E=m.length)break;let S=E;if(m.charCodeAt(S)===34){for(E++;E32;)E++;y.push(m.substring(S,E))}}d(y)}}function HTe(e,t,r,i,o,s){if(i.isTSConfigOnly){let l=e[t];l==="null"?(o[i.name]=void 0,t++):i.type==="boolean"?l==="false"?(o[i.name]=c1(i,!1,s),t++):(l==="true"&&t++,s.push(jl(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(s.push(jl(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),l&&!ao(l,"-")&&t++)}else if(!e[t]&&i.type!=="boolean"&&s.push(jl(r.optionTypeMismatchDiagnostic,i.name,zH(i))),e[t]!=="null")switch(i.type){case"number":o[i.name]=c1(i,parseInt(e[t]),s),t++;break;case"boolean":let l=e[t];o[i.name]=c1(i,l!=="false",s),(l==="false"||l==="true")&&t++;break;case"string":o[i.name]=c1(i,e[t]||"",s),t++;break;case"list":let d=ese(i,e[t],s);o[i.name]=d||[],d&&t++;break;case"listOrElement":R.fail("listOrElement not supported here");break;default:o[i.name]=i3(i,e[t],s),t++;break}else o[i.name]=void 0,t++;return t}function KTe(e,t){return wH(cw,e,t)}function OH(e,t){return nse(GR,e,t)}function nse(e,t,r=!1){t=t.toLowerCase();let{optionsNameMap:i,shortOptionNames:o}=e();if(r){let s=o.get(t);s!==void 0&&(t=s)}return i.get(t)}function JTe(){return DAe||(DAe=r3(p3))}function qTe(e){let{options:t,watchOptions:r,fileNames:i,errors:o}=wH(NAe,e),s=t;return i.length===0&&i.push("."),s.clean&&s.force&&o.push(jl(f.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(jl(f.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(jl(f.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(jl(f.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:r,projects:i,errors:o}}function XTe(e,...t){return ta(jl(e,...t).messageText,Co)}function Zk(e,t,r,i,o,s){let l=SP(e,h=>r.readFile(h));if(!Co(l)){r.onUnRecoverableConfigFileDiagnostic(l);return}let d=Qk(e,l),p=r.getCurrentDirectory();return d.path=tl(e,p,Cd(r.useCaseSensitiveFileNames)),d.resolvedPath=d.path,d.originalFileName=d.fileName,nw(d,r,_o(oi(e),p),t,_o(e,p),void 0,s,i,o)}function ew(e,t){let r=SP(e,t);return Co(r)?WH(e,r):{config:{},error:r}}function WH(e,t){let r=Qk(e,t);return{config:eAe(r,r.parseDiagnostics,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function rse(e,t){let r=SP(e,t);return Co(r)?Qk(e,r):{fileName:e,parseDiagnostics:[r]}}function SP(e,t){let r;try{r=t(e)}catch(i){return jl(f.Cannot_read_file_0_Colon_1,e,i.message)}return r===void 0?jl(f.Cannot_read_file_0,e):r}function FH(e){return h0(e,UTe)}function YTe(){return PAe||(PAe=r3(VR))}function $Te(){return MAe||(MAe=FH(ag))}function QTe(){return LAe||(LAe=FH(VR))}function ZTe(){return kAe||(kAe=FH(lw))}function k5e(){return yse===void 0&&(yse={name:void 0,type:"object",elementOptions:FH([_se,hse,gse,dw,{name:"references",type:"list",element:{name:"references",type:"object"},category:f.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:f.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:f.File_Management,defaultValueDescription:f.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:f.File_Management,defaultValueDescription:f.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},iw])}),yse}function eAe(e,t,r){var i;let o=(i=e.statements[0])==null?void 0:i.expression;if(o&&o.kind!==210){if(t.push(Kf(e,o,f.The_root_value_of_a_0_file_must_be_an_object,nc(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),pu(o)){let s=Vr(o.elements,La);if(s)return tw(e,s,t,!0,r)}return{}}return tw(e,o,t,!0,r)}function ise(e,t){var r;return tw(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0)}function tw(e,t,r,i,o){if(!t)return i?{}:void 0;return d(t,o?.rootOptions);function s(h,m){var y;let E=i?{}:void 0;for(let S of h.properties){if(S.kind!==303){r.push(Kf(e,S,f.Property_assignment_expected));continue}S.questionToken&&r.push(Kf(e,S.questionToken,f.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),p(S.name)||r.push(Kf(e,S.name,f.String_literal_with_double_quotes_expected));let A=g2(S.name)?void 0:jx(S.name),N=A&&Vi(A),D=N?(y=m?.elementOptions)==null?void 0:y.get(N):void 0,w=d(S.initializer,D);typeof N<"u"&&(i&&(E[N]=w),o?.onPropertySet(N,w,S,m,D))}return E}function l(h,m){if(!i){h.forEach(y=>d(y,m));return}return jr(h.map(y=>d(y,m)),y=>y!==void 0)}function d(h,m){switch(h.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return p(h)||r.push(Kf(e,h,f.String_literal_with_double_quotes_expected)),h.text;case 9:return Number(h.text);case 224:if(h.operator!==41||h.operand.kind!==9)break;return-Number(h.operand.text);case 210:return s(h,m);case 209:return l(h.elements,m&&m.element)}m?r.push(Kf(e,h,f.Compiler_option_0_requires_a_value_of_type_1,m.name,zH(m))):r.push(Kf(e,h,f.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function p(h){return Ca(h)&&JF(h,e)}}function zH(e){return e.type==="listOrElement"?`${zH(e.element)} or Array`:e.type==="list"?"Array":Co(e.type)?e.type:"string"}function tAe(e,t){if(e){if(rw(t))return!e.disallowNullOrUndefined;if(e.type==="list")return So(t);if(e.type==="listOrElement")return So(t)||tAe(e.element,t);let r=Co(e.type)?e.type:"string";return typeof t===r}return!1}function nAe(e,t,r){var i,o,s;let l=Cd(r.useCaseSensitiveFileNames),d=mn(jr(e.fileNames,(o=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&o.validatedIncludeSpecs?O5e(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):Ty),A=>FL(_o(t,r.getCurrentDirectory()),_o(A,r.getCurrentDirectory()),l)),p={configFilePath:_o(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames},h=a3(e.options,p),m=e.watchOptions&&W5e(e.watchOptions),y={compilerOptions:{...o3(h),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:m&&o3(m),references:mn(e.projectReferences,A=>({...A,path:A.originalPath?A.originalPath:"",originalPath:void 0})),files:Nn(d)?d:void 0,...(s=e.options.configFile)!=null&&s.configFileSpecs?{include:w5e(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0},E=new Set(h.keys()),S={};for(let A in fc)if(!E.has(A)&>(fc[A].dependencies,N=>E.has(N))){let N=fc[A].computeValue(e.options),D=fc[A].computeValue({});N!==D&&(S[A]=fc[A].computeValue(e.options))}return vx(y.compilerOptions,o3(a3(S,p))),y}function o3(e){return{...Oo(e.entries()).reduce((t,r)=>({...t,[r[0]]:r[1]}),{})}}function w5e(e){if(Nn(e)){if(Nn(e)!==1)return e;if(e[0]!==_3)return e}}function O5e(e,t,r,i){if(!t)return Ty;let o=M6(e,r,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),s=o.excludePattern&&Bv(o.excludePattern,i.useCaseSensitiveFileNames),l=o.includeFilePattern&&Bv(o.includeFilePattern,i.useCaseSensitiveFileNames);return l?s?d=>!(l.test(d)&&!s.test(d)):d=>!l.test(d):s?d=>s.test(d):Ty}function rAe(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return rAe(e.element);default:return e.type}}function BH(e,t){return zc(t,(r,i)=>{if(r===e)return i})}function a3(e,t){return iAe(e,GR(),t)}function W5e(e){return iAe(e,YTe())}function iAe(e,{optionsNameMap:t},r){let i=new Map,o=r&&Cd(r.useCaseSensitiveFileNames);for(let s in e)if(Ts(e,s)){if(t.has(s)&&(t.get(s).category===f.Command_line_Options||t.get(s).category===f.Output_Formatting))continue;let l=e[s],d=t.get(s.toLowerCase());if(d){R.assert(d.type!=="listOrElement");let p=rAe(d);p?d.type==="list"?i.set(s,l.map(h=>BH(h,p))):i.set(s,BH(l,p)):r&&d.isFilePath?i.set(s,FL(r.configFilePath,_o(l,oi(r.configFilePath)),o)):i.set(s,l)}}return i}function oAe(e,t){let r=aAe(e);return o();function i(s){return Array(s+1).join(" ")}function o(){let s=[],l=i(2);return HH.forEach(d=>{if(!r.has(d.name))return;let p=r.get(d.name),h=use(d);p!==h?s.push(`${l}${d.name}: ${p}`):Ts(f3,d.name)&&s.push(`${l}${d.name}: ${h}`)}),s.join(t)+t}}function aAe(e){let t=gW(e,f3);return a3(t)}function sAe(e,t,r){let i=aAe(e);return l();function o(d){return Array(d+1).join(" ")}function s({category:d,name:p,isCommandLineOnly:h}){let m=[f.Command_line_Options,f.Editor_Support,f.Compiler_Diagnostics,f.Backwards_Compatibility,f.Watch_and_Build_Modes,f.Output_Formatting];return!h&&d!==void 0&&(!m.includes(d)||i.has(p))}function l(){let d=new Map;d.set(f.Projects,[]),d.set(f.Language_and_Environment,[]),d.set(f.Modules,[]),d.set(f.JavaScript_Support,[]),d.set(f.Emit,[]),d.set(f.Interop_Constraints,[]),d.set(f.Type_Checking,[]),d.set(f.Completeness,[]);for(let S of ag)if(s(S)){let A=d.get(S.category);A||d.set(S.category,A=[]),A.push(S)}let p=0,h=0,m=[];d.forEach((S,A)=>{m.length!==0&&m.push({value:""}),m.push({value:`/* ${ko(A)} */`});for(let N of S){let D;i.has(N.name)?D=`"${N.name}": ${JSON.stringify(i.get(N.name))}${(h+=1)===i.size?"":","}`:D=`// "${N.name}": ${JSON.stringify(use(N))},`,m.push({value:D,description:`/* ${N.description&&ko(N.description)||N.name} */`}),p=Math.max(D.length,p)}});let y=o(2),E=[];E.push("{"),E.push(`${y}"compilerOptions": {`),E.push(`${y}${y}/* ${ko(f.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),E.push("");for(let S of m){let{value:A,description:N=""}=S;E.push(A&&`${y}${y}${A}${N&&o(p-A.length+2)+N}`)}if(t.length){E.push(`${y}},`),E.push(`${y}"files": [`);for(let S=0;Stypeof fe=="object","object"),me=Y(B("files"));if(me){let fe=ee==="no-prop"||So(ee)&&ee.length===0,ne=Ts(E,"extends");if(me.length===0&&fe&&!ne)if(t){let he=l||"tsconfig.json",Ce=f.The_files_list_in_config_file_0_is_empty,Ge=S2(t,"files",Ie=>Ie.initializer),ve=TE(t,Ge,Ce,he);m.push(ve)}else z(f.The_files_list_in_config_file_0_is_empty,l||"tsconfig.json")}let ge=Y(B("include")),q=B("exclude"),J=!1,re=Y(q);if(q==="no-prop"&&E.compilerOptions){let fe=E.compilerOptions.outDir,ne=E.compilerOptions.declarationDir;(fe||ne)&&(re=[fe,ne].filter(he=>!!he))}me===void 0&&ge===void 0&&(ge=[_3],J=!0);let pe,xe;return ge&&(pe=IAe(ge,m,!0,t,"include")),re&&(xe=IAe(re,m,!1,t,"exclude")),{filesSpecs:me,includeSpecs:ge,excludeSpecs:re,validatedFilesSpec:jr(me,Co),validatedIncludeSpecs:pe,validatedExcludeSpecs:xe,pathPatterns:void 0,isDefaultIncludeSpec:J}}function j(ee){let me=AP(N,ee,S,r,p);return pAe(me,TP(E),d)&&m.push(uAe(N,l)),me}function K(ee){let me,ge=ce("references",q=>typeof q=="object","object");if(So(ge))for(let q of ge)typeof q.path!="string"?z(f.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(me||(me=[])).push({path:_o(q.path,ee),originalPath:q.path,prepend:q.prepend,circular:q.circular});return me}function Y(ee){return So(ee)?ee:void 0}function B(ee){return ce(ee,Co,"string")}function ce(ee,me,ge){if(Ts(E,ee)&&!rw(E[ee]))if(So(E[ee])){let q=E[ee];return!t&&!oo(q,me)&&m.push(jl(f.Compiler_option_0_requires_a_value_of_type_1,ee,ge)),q}else return z(f.Compiler_option_0_requires_a_value_of_type_1,ee,"Array"),"not-array";return"no-prop"}function z(ee,...me){t||m.push(jl(ee,...me))}}function z5e(e){return e.code===f.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function uAe({includeSpecs:e,excludeSpecs:t},r){return jl(f.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,r||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(t||[]))}function pAe(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function TP(e){return!Ts(e,"files")&&!Ts(e,"references")}function s3(e,t,r,i,o){let s=i.length;return pAe(e,o)?i.push(uAe(r,t)):CG(i,l=>!z5e(l)),s!==i.length}function B5e(e){return!!e.options}function fAe(e,t,r,i,o,s,l,d){var p;i=Nd(i);let h=_o(o||"",i);if(s.includes(h))return l.push(jl(f.Circularity_detected_while_resolving_configuration_Colon_0,[...s,h].join(" -> "))),{raw:e||ise(t,l)};let m=e?G5e(e,r,i,o,l):V5e(t,r,i,o,l);if((p=m.options)!=null&&p.paths&&(m.options.pathsBasePath=i),m.extendedConfigPath){s=s.concat([h]);let E={options:{}};Co(m.extendedConfigPath)?y(E,m.extendedConfigPath):m.extendedConfigPath.forEach(S=>y(E,S)),!m.raw.include&&E.include&&(m.raw.include=E.include),!m.raw.exclude&&E.exclude&&(m.raw.exclude=E.exclude),!m.raw.files&&E.files&&(m.raw.files=E.files),m.raw.compileOnSave===void 0&&E.compileOnSave&&(m.raw.compileOnSave=E.compileOnSave),t&&E.extendedSourceFiles&&(t.extendedSourceFiles=Oo(E.extendedSourceFiles.keys())),m.options=vx(E.options,m.options),m.watchOptions=m.watchOptions&&E.watchOptions?vx(E.watchOptions,m.watchOptions):m.watchOptions||E.watchOptions}return m;function y(E,S){let A=j5e(t,S,r,s,l,d,E);if(A&&B5e(A)){let N=A.raw,D,w=j=>{N[j]&&(E[j]=mn(N[j],K=>cp(K)?K:$r(D||(D=qC(oi(S),i,Cd(r.useCaseSensitiveFileNames))),K)))};w("include"),w("exclude"),w("files"),N.compileOnSave!==void 0&&(E.compileOnSave=N.compileOnSave),vx(E.options,A.options),E.watchOptions=E.watchOptions&&A.watchOptions?vx({},E.watchOptions,A.watchOptions):E.watchOptions||A.watchOptions}}}function G5e(e,t,r,i,o){Ts(e,"excludes")&&o.push(jl(f.Unknown_option_excludes_Did_you_mean_exclude));let s=vAe(e.compilerOptions,r,o,i),l=bAe(e.typeAcquisition,r,o,i),d=H5e(e.watchOptions,r,o);e.compileOnSave=U5e(e,r,o);let p=e.extends||e.extends===""?mAe(e.extends,t,r,i,o):void 0;return{raw:e,options:s,watchOptions:d,typeAcquisition:l,extendedConfigPath:p}}function mAe(e,t,r,i,o,s,l,d){let p,h=i?cAe(i,r):r;if(Co(e))p=_Ae(e,t,h,o,l,d);else if(So(e)){p=[];for(let m=0;mj.name===S)&&(h=Tn(h,N.name))))}}function _Ae(e,t,r,i,o,s){if(e=Nd(e),cp(e)||ao(e,"./")||ao(e,"../")){let d=_o(e,r);if(!t.fileExists(d)&&!El(d,".json")&&(d=`${d}.json`,!t.fileExists(d))){i.push(TE(s,o,f.File_0_not_found,e));return}return d}let l=Dse(e,$r(r,"tsconfig.json"),t);if(l.resolvedModule)return l.resolvedModule.resolvedFileName;e===""?i.push(TE(s,o,f.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):i.push(TE(s,o,f.File_0_not_found,e))}function j5e(e,t,r,i,o,s,l){let d=r.useCaseSensitiveFileNames?t:oh(t),p,h,m;if(s&&(p=s.get(d))?{extendedResult:h,extendedConfig:m}=p:(h=rse(t,y=>r.readFile(y)),h.parseDiagnostics.length||(m=fAe(void 0,h,r,oi(t),nc(t),i,o,s)),s&&s.set(d,{extendedResult:h,extendedConfig:m})),e&&((l.extendedSourceFiles??(l.extendedSourceFiles=new Set)).add(h.fileName),h.extendedSourceFiles))for(let y of h.extendedSourceFiles)l.extendedSourceFiles.add(y);if(h.parseDiagnostics.length){o.push(...h.parseDiagnostics);return}return m}function U5e(e,t,r){if(!Ts(e,iw.name))return!1;let i=VT(iw,e.compileOnSave,t,r);return typeof i=="boolean"&&i}function hAe(e,t,r){let i=[];return{options:vAe(e,t,i,r),errors:i}}function gAe(e,t,r){let i=[];return{options:bAe(e,t,i,r),errors:i}}function yAe(e){return e&&nc(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function vAe(e,t,r,i){let o=yAe(i);return ose($Te(),e,t,o,cw,r),i&&(o.configFilePath=Nd(i)),o}function jH(e){return{enable:!!e&&nc(e)==="jsconfig.json",include:[],exclude:[]}}function bAe(e,t,r,i){let o=jH(i);return ose(ZTe(),e,t,o,mse,r),o}function H5e(e,t,r){return ose(QTe(),e,t,void 0,m3,r)}function ose(e,t,r,i,o,s){if(t){for(let l in t){let d=e.get(l);d?(i||(i={}))[d.name]=VT(d,t[l],r,s):s.push(tse(l,o))}return i}}function TE(e,t,r,...i){return e&&t?Kf(e,t,r,...i):jl(r,...i)}function VT(e,t,r,i,o,s,l){if(e.isCommandLineOnly){i.push(TE(l,o?.name,f.Option_0_can_only_be_specified_on_command_line,e.name));return}if(tAe(e,t)){let d=e.type;if(d==="list"&&So(t))return SAe(e,t,r,i,o,s,l);if(d==="listOrElement")return So(t)?SAe(e,t,r,i,o,s,l):VT(e.element,t,r,i,o,s,l);if(!Co(e.type))return EAe(e,t,i,s,l);let p=c1(e,t,i,s,l);return rw(p)?p:K5e(e,r,p)}else i.push(TE(l,s,f.Compiler_option_0_requires_a_value_of_type_1,e.name,zH(e)))}function K5e(e,t,r){return e.isFilePath&&(r=_o(r,t),r===""&&(r=".")),r}function c1(e,t,r,i,o){var s;if(rw(t))return;let l=(s=e.extraValidation)==null?void 0:s.call(e,t);if(!l)return t;r.push(TE(o,i,...l))}function EAe(e,t,r,i,o){if(rw(t))return;let s=t.toLowerCase(),l=e.type.get(s);if(l!==void 0)return c1(e,l,r,i,o);r.push(jTe(e,(d,...p)=>TE(o,i,d,...p)))}function SAe(e,t,r,i,o,s,l){return jr(mn(t,(d,p)=>VT(e.element,d,r,i,o,s?.elements[p],l)),d=>e.listPreserveFalsyValues?!0:!!d)}function AP(e,t,r,i,o=Xe){t=fa(t);let s=Cd(i.useCaseSensitiveFileNames),l=new Map,d=new Map,p=new Map,{validatedFilesSpec:h,validatedIncludeSpecs:m,validatedExcludeSpecs:y}=e,E=GN(r,o),S=sk(r,E);if(h)for(let w of h){let j=_o(w,t);l.set(s(j),j)}let A;if(m&&m.length>0)for(let w of i.readDirectory(t,pm(S),y,m,void 0)){if(Sl(w,".json")){if(!A){let Y=m.filter(ce=>El(ce,".json")),B=mn(N6(Y,t,"files"),ce=>`^${ce}$`);A=B?B.map(ce=>Bv(ce,i.useCaseSensitiveFileNames)):Xe}if(Kl(A,Y=>Y.test(w))!==-1){let Y=s(w);!l.has(Y)&&!p.has(Y)&&p.set(Y,w)}continue}if(X5e(w,l,d,E,s))continue;Y5e(w,d,E,s);let j=s(w);!l.has(j)&&!d.has(j)&&d.set(j,w)}let N=Oo(l.values()),D=Oo(d.values());return N.concat(D,Oo(p.values()))}function ase(e,t,r,i,o){let{validatedFilesSpec:s,validatedIncludeSpecs:l,validatedExcludeSpecs:d}=t;if(!Nn(l)||!Nn(d))return!1;r=fa(r);let p=Cd(i);if(s){for(let h of s)if(p(_o(h,r))===e)return!1}return AAe(e,d,i,o,r)}function TAe(e){let t=ao(e,"**/")?0:e.indexOf("/**/");return t===-1?!1:(El(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function l3(e,t,r,i){return AAe(e,jr(t,o=>!TAe(o)),r,i)}function AAe(e,t,r,i,o){let s=BN(t,$r(fa(i),o),"exclude"),l=s&&Bv(s,r);return l?l.test(e)?!0:!mI(e)&&l.test(Fc(e)):!1}function IAe(e,t,r,i,o){return e.filter(l=>{if(!Co(l))return!1;let d=sse(l,r);return d!==void 0&&t.push(s(...d)),d===void 0});function s(l,d){let p=wF(i,o,d);return TE(i,p,l,d)}}function sse(e,t){if(R.assert(typeof e=="string"),t&&wAe.test(e))return[f.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(TAe(e))return[f.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function J5e({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,i){let o=BN(t,r,"exclude"),s=o&&new RegExp(o,i?"":"i"),l={},d=new Map;if(e!==void 0){let p=[];for(let h of e){let m=fa($r(r,h));if(s&&s.test(m))continue;let y=q5e(m,i);if(y){let{key:E,path:S,flags:A}=y,N=d.get(E),D=N!==void 0?l[N]:void 0;(D===void 0||Dbc(e,l)?l:void 0);if(!s)return!1;for(let l of s){if(Sl(e,l)&&(l!==".ts"||!Sl(e,".d.ts")))return!1;let d=o(fE(e,l));if(t.has(d)||r.has(d)){if(l===".d.ts"&&(Sl(e,".js")||Sl(e,".jsx")))continue;return!0}}return!1}function Y5e(e,t,r,i){let o=gn(r,s=>bc(e,s)?s:void 0);if(o)for(let s=o.length-1;s>=0;s--){let l=o[s];if(Sl(e,l))return;let d=i(fE(e,l));t.delete(d)}}function cse(e){let t={};for(let r in e)if(Ts(e,r)){let i=OH(r);i!==void 0&&(t[r]=dse(e[r],i))}return t}function dse(e,t){if(e===void 0)return e;switch(t.type){case"object":return"";case"string":return"";case"number":return typeof e=="number"?e:"";case"boolean":return typeof e=="boolean"?e:"";case"listOrElement":if(!So(e))return dse(e,t.element);case"list":let r=t.element;return So(e)?to(e,i=>dse(i,r)):"";default:return zc(t.type,(i,o)=>{if(i===e)return o})}}function use(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":let t=e.defaultValueDescription;return e.isFilePath?`./${t&&typeof t=="string"?t:""}`:"";case"list":return[];case"listOrElement":return use(e.element);case"object":return{};default:let r=mW(e.type.keys());return r!==void 0?r:R.fail("Expected 'option.type' to have entries.")}}var iw,pse,IP,fse,ow,c3,VR,aw,sw,UH,HH,ag,KH,JH,qH,d3,u3,XH,YH,$H,p3,lw,xAe,RAe,f3,cw,DAe,CAe,NAe,mse,PAe,m3,MAe,LAe,kAe,dw,_se,hse,gse,yse,_3,wAe,OAe,$5e=bt({"src/compiler/commandLineParser.ts"(){"use strict";Zo(),iw={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},pse=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),IP=new Map(wC(pse.entries(),([e,t])=>[""+t,e])),fse=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["es2023","lib.es2023.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["dom.asynciterable","lib.dom.asynciterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["webworker.asynciterable","lib.webworker.asynciterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2016.intl","lib.es2016.intl.d.ts"],["es2017.date","lib.es2017.date.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.sharedmemory","lib.es2022.sharedmemory.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["es2023.collection","lib.es2023.collection.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.collection","lib.esnext.collection.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.disposable","lib.esnext.disposable.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.esnext.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["esnext.object","lib.esnext.object.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],ow=fse.map(e=>e[0]),c3=new Map(fse),VR=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:f.Watch_and_Build_Modes,description:f.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:"watchDirectory",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:f.Watch_and_Build_Modes,description:f.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:"fallbackPolling",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:f.Watch_and_Build_Modes,description:f.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:f.Watch_and_Build_Modes,description:f.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:sse},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:sse},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_files_from_the_watch_mode_s_processing}],aw=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:f.Command_line_Options,description:f.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:f.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:f.Command_line_Options,description:f.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:f.Output_Formatting,description:f.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:f.Compiler_Diagnostics,description:f.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:f.Compiler_Diagnostics,description:f.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:f.Compiler_Diagnostics,description:f.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:f.Output_Formatting,description:f.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:f.Compiler_Diagnostics,description:f.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:f.Compiler_Diagnostics,description:f.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:f.Compiler_Diagnostics,description:f.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:f.FILE_OR_DIRECTORY,category:f.Compiler_Diagnostics,description:f.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:f.DIRECTORY,category:f.Compiler_Diagnostics,description:f.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:f.Projects,description:f.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:f.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,transpileOptionValue:void 0,description:f.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:f.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:f.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,defaultValueDescription:!1,description:f.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:f.Emit,description:f.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Watch_and_Build_Modes,description:f.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:f.Platform_specific}],sw={name:"target",shortName:"t",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set(["es3"]),paramType:f.VERSION,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},UH={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:f.KIND,showInSimplifiedHelpView:!0,category:f.Modules,description:f.Specify_what_module_code_is_generated,defaultValueDescription:void 0},HH=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:f.Command_line_Options,paramType:f.FILE_OR_DIRECTORY,description:f.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},sw,UH,{name:"lib",type:"list",element:{name:"lib",type:c3,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.JavaScript_Support,description:f.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.JavaScript_Support,description:f.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:pse,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:f.KIND,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.FILE,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.DIRECTORY,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.LOCATION,category:f.Modules,description:f.Specify_the_root_folder_within_your_source_files,defaultValueDescription:f.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:f.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:f.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:f.FILE,category:f.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:f.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,defaultValueDescription:!1,description:f.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:f.Emit,description:f.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:f.Interop_Constraints,description:f.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",category:f.Interop_Constraints,description:f.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Type_Checking,description:f.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:f.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:f.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:f.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Ensure_use_strict_is_always_emitted,defaultValueDescription:f.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:f.Type_Checking,description:f.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:f.STRATEGY,category:f.Modules,description:f.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:f.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:f.Modules,description:f.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:f.Modules,description:f.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:f.Modules,description:f.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:f.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:f.Modules,description:f.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:f.Modules,description:f.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Interop_Constraints,description:f.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:f.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Interop_Constraints,description:f.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:f.Interop_Constraints,description:f.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:f.Modules,description:f.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:f.Modules,description:f.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:f.Modules,description:f.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:f.Modules,description:f.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:f.LOCATION,category:f.Emit,description:f.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:f.LOCATION,category:f.Emit,description:f.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:f.Language_and_Environment,description:f.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:f.Language_and_Environment,description:f.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,category:f.Language_and_Environment,description:f.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:f.Modules,description:f.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:f.Modules,description:f.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:f.Backwards_Compatibility,paramType:f.FILE,transpileOptionValue:void 0,description:f.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:f.Completeness,description:f.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:f.Backwards_Compatibility,description:f.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:f.NEWLINE,category:f.Emit,description:f.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Output_Formatting,description:f.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:f.Language_and_Environment,affectsProgramStructure:!0,description:f.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:f.Modules,description:f.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:f.Editor_Support,description:f.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:f.Projects,description:f.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:f.Projects,description:f.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:f.Projects,description:f.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,transpileOptionValue:void 0,description:f.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.DIRECTORY,category:f.Emit,transpileOptionValue:void 0,description:f.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:f.Completeness,description:f.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:f.Interop_Constraints,description:f.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:f.JavaScript_Support,description:f.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:f.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:f.Backwards_Compatibility,description:f.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:f.Specify_a_list_of_language_service_plugins_to_include,category:f.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:f.Control_what_method_is_used_to_detect_module_format_JS_files,category:f.Language_and_Environment,defaultValueDescription:f.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:"ignoreDeprecations",type:"string",defaultValueDescription:void 0}],ag=[...aw,...HH],KH=ag.filter(e=>!!e.affectsSemanticDiagnostics),JH=ag.filter(e=>!!e.affectsEmit),qH=ag.filter(e=>!!e.affectsDeclarationPath),d3=ag.filter(e=>!!e.affectsModuleResolution),u3=ag.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),XH=ag.filter(e=>!!e.affectsProgramStructure),YH=ag.filter(e=>Ts(e,"transpileOptionValue")),$H=[{name:"verbose",shortName:"v",category:f.Command_line_Options,description:f.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:f.Command_line_Options,description:f.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:f.Command_line_Options,description:f.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:f.Command_line_Options,description:f.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],p3=[...aw,...$H],lw=[{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}],RAe={diagnostic:f.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:JTe},f3={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},cw={alternateMode:RAe,getOptionsNameMap:GR,optionDeclarations:ag,unknownOptionDiagnostic:f.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:f.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Compiler_option_0_expects_an_argument},CAe={diagnostic:f.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:GR},NAe={alternateMode:CAe,getOptionsNameMap:JTe,optionDeclarations:p3,unknownOptionDiagnostic:f.Unknown_build_option_0,unknownDidYouMeanDiagnostic:f.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Build_option_0_requires_a_value_of_type_1},mse={optionDeclarations:lw,unknownOptionDiagnostic:f.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:f.Unknown_type_acquisition_option_0_Did_you_mean_1},m3={getOptionsNameMap:YTe,optionDeclarations:VR,unknownOptionDiagnostic:f.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:f.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Watch_option_0_requires_a_value_of_type_1},dw={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:f.File_Management,disallowNullOrUndefined:!0},_se={name:"compilerOptions",type:"object",elementOptions:$Te(),extraKeyDiagnostics:cw},hse={name:"watchOptions",type:"object",elementOptions:QTe(),extraKeyDiagnostics:m3},gse={name:"typeAcquisition",type:"object",elementOptions:ZTe(),extraKeyDiagnostics:mse},_3="**/*",wAe=/(^|\/)\*\*\/?$/,OAe=/^[^*?]*(?=\/[^/]*[*?])/}});function yo(e,t,...r){e.trace(nU(t,...r))}function Bg(e,t){return!!e.traceResolution&&t.trace!==void 0}function d1(e,t){let r;if(t&&e){let i=e.contents.packageJsonContent;typeof i.name=="string"&&typeof i.version=="string"&&(r={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+nl.length),version:i.version})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function QH(e){return d1(void 0,e)}function WAe(e){if(e)return R.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function h3(e){let t=[];return e&1&&t.push("TypeScript"),e&2&&t.push("JavaScript"),e&4&&t.push("Declaration"),e&8&&t.push("JSON"),t.join(", ")}function Q5e(e){let t=[];return e&1&&t.push(...vk),e&2&&t.push(...TR),e&4&&t.push(...yk),e&8&&t.push(".json"),t}function vse(e){if(e)return R.assert(O6(e.extension)),{fileName:e.path,packageId:e.packageId}}function FAe(e,t,r,i,o,s,l,d,p){if(!l.resultFromCache&&!l.compilerOptions.preserveSymlinks&&t&&r&&!t.originalPath&&!qc(e)){let{resolvedFileName:h,originalPath:m}=GAe(t.path,l.host,l.traceEnabled);m&&(t={...t,path:h,originalPath:m})}return zAe(t,r,i,o,s,l.resultFromCache,d,p)}function zAe(e,t,r,i,o,s,l,d){return s?l?.isReadonly?{...s,failedLookupLocations:bse(s.failedLookupLocations,r),affectingLocations:bse(s.affectingLocations,i),resolutionDiagnostics:bse(s.resolutionDiagnostics,o)}:(s.failedLookupLocations=jR(s.failedLookupLocations,r),s.affectingLocations=jR(s.affectingLocations,i),s.resolutionDiagnostics=jR(s.resolutionDiagnostics,o),s):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:e.originalPath===!0?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:xP(r),affectingLocations:xP(i),resolutionDiagnostics:xP(o),alternateResult:d}}function xP(e){return e.length?e:void 0}function jR(e,t){return t?.length?e?.length?(e.push(...t),e):t:e}function bse(e,t){return e?.length?t.length?[...e,...t]:e.slice():xP(t)}function BAe(e,t,r,i){if(!Ts(e,t)){i.traceEnabled&&yo(i.host,f.package_json_does_not_have_a_0_field,t);return}let o=e[t];if(typeof o!==r||o===null){i.traceEnabled&&yo(i.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,r,o===null?"null":typeof o);return}return o}function ZH(e,t,r,i){let o=BAe(e,t,"string",i);if(o===void 0)return;if(!o){i.traceEnabled&&yo(i.host,f.package_json_had_a_falsy_0_field,t);return}let s=fa($r(r,o));return i.traceEnabled&&yo(i.host,f.package_json_has_0_field_1_that_references_2,t,o,s),s}function Z5e(e,t,r){return ZH(e,"typings",t,r)||ZH(e,"types",t,r)}function eGe(e,t,r){return ZH(e,"tsconfig",t,r)}function tGe(e,t,r){return ZH(e,"main",t,r)}function nGe(e,t){let r=BAe(e,"typesVersions","object",t);if(r!==void 0)return t.traceEnabled&&yo(t.host,f.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),r}function rGe(e,t){let r=nGe(e,t);if(r===void 0)return;if(t.traceEnabled)for(let l in r)Ts(r,l)&&!RL.tryParse(l)&&yo(t.host,f.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,l);let i=g3(r);if(!i){t.traceEnabled&&yo(t.host,f.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,g_);return}let{version:o,paths:s}=i;if(typeof s!="object"){t.traceEnabled&&yo(t.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${o}']`,"object",typeof s);return}return i}function g3(e){kse||(kse=new fm(qp));for(let t in e){if(!Ts(e,t))continue;let r=RL.tryParse(t);if(r!==void 0&&r.test(kse))return{version:t,paths:e[t]}}}function RP(e,t){if(e.typeRoots)return e.typeRoots;let r;if(e.configFilePath?r=oi(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),r!==void 0)return iGe(r)}function iGe(e){let t;return hm(fa(e),r=>{let i=$r(r,cIe);(t??(t=[])).push(i)}),t}function oGe(e,t,r){let i=typeof r.useCaseSensitiveFileNames=="function"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return xg(e,t,!i)===0}function GAe(e,t,r){let i=gGe(e,t,r),o=oGe(e,i,t);return{resolvedFileName:o?e:i,originalPath:o?void 0:e}}function VAe(e,t,r){let i=El(e,"/node_modules/@types")||El(e,"/node_modules/@types/")?aIe(t,r):t;return $r(e,i)}function Ese(e,t,r,i,o,s,l){R.assert(typeof e=="string","Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");let d=Bg(r,i);o&&(r=o.commandLine.options);let p=t?oi(t):void 0,h=p?s?.getFromDirectoryCache(e,l,p,o):void 0;if(!h&&p&&!qc(e)&&(h=s?.getFromNonRelativeNameCache(e,l,p,o)),h)return d&&(yo(i,f.Resolving_type_reference_directive_0_containing_file_1,e,t),o&&yo(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName),yo(i,f.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,p),B(h)),h;let m=RP(r,i);d&&(t===void 0?m===void 0?yo(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):yo(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,m):m===void 0?yo(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):yo(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,m),o&&yo(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));let y=[],E=[],S=Sse(r);l!==void 0&&(S|=30);let A=uu(r);l===99&&3<=A&&A<=99&&(S|=32);let N=S&8?Qv(r,l):[],D=[],w={compilerOptions:r,host:i,traceEnabled:d,failedLookupLocations:y,affectingLocations:E,packageJsonInfoCache:s,features:S,conditions:N,requestContainingDirectory:p,reportDiagnostic:ee=>void D.push(ee),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},j=ce(),K=!0;j||(j=z(),K=!1);let Y;if(j){let{fileName:ee,packageId:me}=j,ge=ee,q;r.preserveSymlinks||({resolvedFileName:ge,originalPath:q}=GAe(ee,i,d)),Y={primary:K,resolvedFileName:ge,originalPath:q,packageId:me,isExternalLibraryImport:AE(ee)}}return h={resolvedTypeReferenceDirective:Y,failedLookupLocations:xP(y),affectingLocations:xP(E),resolutionDiagnostics:xP(D)},p&&s&&!s.isReadonly&&(s.getOrCreateCacheForDirectory(p,o).set(e,l,h),qc(e)||s.getOrCreateCacheForNonRelativeName(e,l,o).set(p,h)),d&&B(h),h;function B(ee){var me;(me=ee.resolvedTypeReferenceDirective)!=null&&me.resolvedFileName?ee.resolvedTypeReferenceDirective.packageId?yo(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,ee.resolvedTypeReferenceDirective.resolvedFileName,kv(ee.resolvedTypeReferenceDirective.packageId),ee.resolvedTypeReferenceDirective.primary):yo(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,ee.resolvedTypeReferenceDirective.resolvedFileName,ee.resolvedTypeReferenceDirective.primary):yo(i,f.Type_reference_directive_0_was_not_resolved,e)}function ce(){if(m&&m.length)return d&&yo(i,f.Resolving_with_primary_search_path_0,m.join(", ")),Wl(m,ee=>{let me=VAe(ee,e,w),ge=Hm(ee,i);if(!ge&&d&&yo(i,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,ee),r.typeRoots){let q=KR(4,me,!ge,w);if(q){let J=pw(q.path),re=J?Z0(J,!1,w):void 0;return vse(d1(re,q))}}return vse(Nse(4,me,!ge,w))});d&&yo(i,f.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function z(){let ee=t&&oi(t);if(ee!==void 0){let me;if(!r.typeRoots||!El(t,eD))if(d&&yo(i,f.Looking_up_in_node_modules_folder_initial_location_0,ee),qc(e)){let{path:ge}=qAe(ee,e);me=iK(4,ge,!1,w,!0)}else{let ge=nIe(4,e,ee,w,void 0,void 0);me=ge&&ge.value}else d&&yo(i,f.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return vse(me)}else d&&yo(i,f.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function Sse(e){let t=0;switch(uu(e)){case 3:t=30;break;case 99:t=30;break;case 100:t=30;break}return e.resolvePackageJsonExports?t|=8:e.resolvePackageJsonExports===!1&&(t&=-9),e.resolvePackageJsonImports?t|=2:e.resolvePackageJsonImports===!1&&(t&=-3),t}function Qv(e,t){let r=uu(e);if(t===void 0){if(r===100)t=99;else if(r===2)return[]}let i=t===99?["import"]:["require"];return e.noDtsResolution||i.push("types"),r!==100&&i.push("node"),bo(i,e.customConditions)}function eK(e,t,r,i,o){let s=fw(o?.getPackageJsonInfoCache(),i,r);return hm(t,l=>{if(nc(l)!=="node_modules"){let d=$r(l,"node_modules"),p=$r(d,e);return Z0(p,!1,s)}})}function y3(e,t){if(e.types)return e.types;let r=[];if(t.directoryExists&&t.getDirectories){let i=RP(e,t);if(i){for(let o of i)if(t.directoryExists(o))for(let s of t.getDirectories(o)){let l=fa(s),d=$r(o,l,"package.json");if(!(t.fileExists(d)&&kN(d,t).typings===null)){let h=nc(l);h.charCodeAt(0)!==46&&r.push(h)}}}}return r}function v3(e){return!!e?.contents}function Tse(e){return!!e&&!e.contents}function Ase(e){var t;if(e===null||typeof e!="object")return""+e;if(So(e))return`[${(t=e.map(i=>Ase(i)))==null?void 0:t.join(",")}]`;let r="{";for(let i in e)Ts(e,i)&&(r+=`${i}: ${Ase(e[i])}`);return r+"}"}function tK(e,t){return t.map(r=>Ase(x6(e,r))).join("|")+`|${e.pathsBasePath}`}function nK(e,t){let r=new Map,i=new Map,o=new Map;return e&&r.set(e,o),{getMapOfCacheRedirects:s,getOrCreateMapOfCacheRedirects:l,update:d,clear:h,getOwnMap:()=>o};function s(y){return y?p(y.commandLine.options,!1):o}function l(y){return y?p(y.commandLine.options,!0):o}function d(y){e!==y&&(e?o=p(y,!0):r.set(y,o),e=y)}function p(y,E){let S=r.get(y);if(S)return S;let A=m(y);if(S=i.get(A),!S){if(e){let N=m(e);N===A?S=o:i.has(N)||i.set(N,o)}E&&(S??(S=new Map)),S&&i.set(A,S)}return S&&r.set(y,S),S}function h(){let y=e&&t.get(e);o.clear(),r.clear(),t.clear(),i.clear(),e&&(y&&t.set(e,y),r.set(e,o))}function m(y){let E=t.get(y);return E||t.set(y,E=tK(y,d3)),E}}function aGe(e,t){let r;return{getPackageJsonInfo:i,setPackageJsonInfo:o,clear:s,getInternalMap:l};function i(d){return r?.get(tl(d,e,t))}function o(d,p){(r||(r=new Map)).set(tl(d,e,t),p)}function s(){r=void 0}function l(){return r}}function jAe(e,t,r,i){let o=e.getOrCreateMapOfCacheRedirects(t),s=o.get(r);return s||(s=i(),o.set(r,s)),s}function sGe(e,t,r,i){let o=nK(r,i);return{getFromDirectoryCache:p,getOrCreateCacheForDirectory:d,clear:s,update:l,directoryToModuleNameMap:o};function s(){o.clear()}function l(h){o.update(h)}function d(h,m){let y=tl(h,e,t);return jAe(o,m,y,()=>u1())}function p(h,m,y,E){var S,A;let N=tl(y,e,t);return(A=(S=o.getMapOfCacheRedirects(E))==null?void 0:S.get(N))==null?void 0:A.get(h,m)}}function DP(e,t){return t===void 0?e:`${t}|${e}`}function u1(){let e=new Map,t=new Map,r={get(o,s){return e.get(i(o,s))},set(o,s,l){return e.set(i(o,s),l),r},delete(o,s){return e.delete(i(o,s)),r},has(o,s){return e.has(i(o,s))},forEach(o){return e.forEach((s,l)=>{let[d,p]=t.get(l);return o(s,d,p)})},size(){return e.size}};return r;function i(o,s){let l=DP(o,s);return t.set(l,[o,s]),l}}function lGe(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function cGe(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function dGe(e,t,r,i,o){let s=nK(r,o);return{getFromNonRelativeNameCache:p,getOrCreateCacheForNonRelativeName:h,clear:l,update:d};function l(){s.clear()}function d(y){s.update(y)}function p(y,E,S,A){var N,D;return R.assert(!qc(y)),(D=(N=s.getMapOfCacheRedirects(A))==null?void 0:N.get(DP(y,E)))==null?void 0:D.get(S)}function h(y,E,S){return R.assert(!qc(y)),jAe(s,S,DP(y,E),m)}function m(){let y=new Map;return{get:E,set:S};function E(N){return y.get(tl(N,e,t))}function S(N,D){let w=tl(N,e,t);if(y.has(w))return;y.set(w,D);let j=i(D),K=j&&A(w,j),Y=w;for(;Y!==K;){let B=oi(Y);if(B===Y||y.has(B))break;y.set(B,D),Y=B}}function A(N,D){let w=tl(oi(D),e,t),j=0,K=Math.min(N.length,w.length);for(;ji,clearAllExceptPackageJsonInfoCache:h,optionsToRedirectsKey:s};function p(){h(),i.clear()}function h(){l.clear(),d.clear()}function m(y){l.update(y),d.update(y)}}function UR(e,t,r,i,o){let s=UAe(e,t,r,i,lGe,o);return s.getOrCreateCacheForModuleName=(l,d,p)=>s.getOrCreateCacheForNonRelativeName(l,d,p),s}function b3(e,t,r,i,o){return UAe(e,t,r,i,cGe,o)}function rK(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function E3(e,t,r,i,o){return HR(e,t,rK(r),i,o)}function HAe(e,t,r,i){let o=oi(t);return r.getFromDirectoryCache(e,i,o,void 0)}function HR(e,t,r,i,o,s,l){var d,p,h;let m=Bg(r,i);s&&(r=s.commandLine.options),m&&(yo(i,f.Resolving_module_0_from_1,e,t),s&&yo(i,f.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));let y=oi(t),E=o?.getFromDirectoryCache(e,l,y,s);if(E)m&&yo(i,f.Resolution_for_module_0_was_found_in_cache_from_location_1,e,y);else{let S=r.moduleResolution;switch(S===void 0?(S=uu(r),m&&yo(i,f.Module_resolution_kind_is_not_specified_using_0,Rx[S])):m&&yo(i,f.Explicitly_specified_module_resolution_kind_Colon_0,Rx[S]),(d=ru)==null||d.logStartResolveModule(e),S){case 3:E=mGe(e,t,r,i,o,s,l);break;case 99:E=_Ge(e,t,r,i,o,s,l);break;case 2:E=Rse(e,t,r,i,o,s,l?Qv(r,l):void 0);break;case 1:E=Mse(e,t,r,i,o,s);break;case 100:E=xse(e,t,r,i,o,s,l?Qv(r,l):void 0);break;default:return R.fail(`Unexpected moduleResolution: ${S}`)}E&&E.resolvedModule&&((p=ru)==null||p.logInfoEvent(`Module "${e}" resolved to "${E.resolvedModule.resolvedFileName}"`)),(h=ru)==null||h.logStopResolveModule(E&&E.resolvedModule?""+E.resolvedModule.resolvedFileName:"null"),o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(y,s).set(e,l,E),qc(e)||o.getOrCreateCacheForNonRelativeName(e,l,s).set(y,E))}return m&&(E.resolvedModule?E.resolvedModule.packageId?yo(i,f.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,E.resolvedModule.resolvedFileName,kv(E.resolvedModule.packageId)):yo(i,f.Module_name_0_was_successfully_resolved_to_1,e,E.resolvedModule.resolvedFileName):yo(i,f.Module_name_0_was_not_resolved,e)),E}function KAe(e,t,r,i,o){let s=uGe(e,t,i,o);return s?s.value:qc(t)?pGe(e,t,r,i,o):fGe(e,t,i,o)}function uGe(e,t,r,i){var o;let{baseUrl:s,paths:l,configFile:d}=i.compilerOptions;if(l&&!Lp(t)){i.traceEnabled&&(s&&yo(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,t),yo(i.host,f.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));let p=s6(i.compilerOptions,i.host),h=d?.configFileSpecs?(o=d.configFileSpecs).pathPatterns||(o.pathPatterns=w6(l)):void 0;return Pse(e,t,p,l,h,r,!1,i)}}function pGe(e,t,r,i,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&yo(o.host,f.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);let s=fa($r(r,t)),l,d;for(let p of o.compilerOptions.rootDirs){let h=fa(p);El(h,nl)||(h+=nl);let m=ao(s,h)&&(d===void 0||d.lengthvoid K.push(ee),isConfigLookup:d,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};N&&OI(j)&&yo(o,f.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",Y.conditions.map(ee=>`'${ee}'`).join(", "));let B;if(j===2){let ee=l&5,me=l&-6;B=ee&&z(ee,Y)||me&&z(me,Y)||void 0}else B=z(l,Y);let ce;if(Y.resolvedPackageDirectory&&!d&&!qc(t)){let ee=B?.value&&l&5&&!ZAe(5,B.value.resolved.extension);if((m=B?.value)!=null&&m.isExternalLibraryImport&&ee&&e&8&&h?.includes("import")){Zv(Y,f.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);let me={...Y,features:Y.features&-9,reportDiagnostic:qa},ge=z(l&5,me);(y=ge?.value)!=null&&y.isExternalLibraryImport&&(ce=ge.value.resolved.path)}else if((!B?.value||ee)&&j===2){Zv(Y,f.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);let me={...Y.compilerOptions,moduleResolution:100},ge={...Y,compilerOptions:me,features:30,conditions:Qv(me),reportDiagnostic:qa},q=z(l&5,ge);(E=q?.value)!=null&&E.isExternalLibraryImport&&(ce=q.value.resolved.path)}}return FAe(t,(S=B?.value)==null?void 0:S.resolved,(A=B?.value)==null?void 0:A.isExternalLibraryImport,D,w,K,Y,s,ce);function z(ee,me){let q=KAe(ee,t,r,(J,re,pe,xe)=>iK(J,re,pe,xe,!0),me);if(q)return tf({resolved:q,isExternalLibraryImport:AE(q.path)});if(qc(t)){let{path:J,parts:re}=qAe(r,t),pe=iK(ee,J,!1,me,!0);return pe&&tf({resolved:pe,isExternalLibraryImport:zo(re,"node_modules")})}else{let J;if(e&2&&ao(t,"#")&&(J=EGe(ee,t,r,me,s,p)),!J&&e&4&&(J=bGe(ee,t,r,me,s,p)),!J){if(t.includes(":")){N&&yo(o,f.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,h3(ee));return}N&&yo(o,f.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,h3(ee)),J=nIe(ee,t,r,me,s,p)}return ee&4&&(J??(J=lIe(t,me))),J&&{value:J.value&&{resolved:J.value,isExternalLibraryImport:!0}}}}}function qAe(e,t){let r=$r(e,t),i=Wc(r),o=$s(i);return{path:o==="."||o===".."?Fc(fa(r)):fa(r),parts:i}}function gGe(e,t,r){if(!t.realpath)return e;let i=fa(t.realpath(e));return r&&yo(t,f.Resolving_real_path_for_0_result_1,e,i),i}function iK(e,t,r,i,o){if(i.traceEnabled&&yo(i.host,f.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,h3(e)),!xy(t)){if(!r){let l=oi(t);Hm(l,i.host)||(i.traceEnabled&&yo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),r=!0)}let s=KR(e,t,r,i);if(s){let l=o?pw(s.path):void 0,d=l?Z0(l,!1,i):void 0;return d1(d,s)}}if(r||Hm(t,i.host)||(i.traceEnabled&&yo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(i.features&32))return Nse(e,t,r,i,o)}function AE(e){return e.includes(Sh)}function pw(e,t){let r=fa(e),i=r.lastIndexOf(Sh);if(i===-1)return;let o=i+Sh.length,s=XAe(r,o,t);return r.charCodeAt(o)===64&&(s=XAe(r,s,t)),r.slice(0,s)}function XAe(e,t,r){let i=e.indexOf(nl,t+1);return i===-1?r?e.length:t:i}function Cse(e,t,r,i){return QH(KR(e,t,r,i))}function KR(e,t,r,i){let o=YAe(e,t,r,i);if(o)return o;if(!(i.features&32)){let s=$Ae(t,e,"",r,i);if(s)return s}}function YAe(e,t,r,i){if(!nc(t).includes("."))return;let s=Su(t);s===t&&(s=t.substring(0,t.lastIndexOf(".")));let l=t.substring(s.length);return i.traceEnabled&&yo(i.host,f.File_name_0_has_a_1_extension_stripping_it,t,l),$Ae(s,e,l,r,i)}function oK(e,t,r,i){return e&1&&bc(t,vk)||e&4&&bc(t,yk)?aK(t,r,i)!==void 0?{path:t,ext:_6(t),resolvedUsingTsExtension:void 0}:void 0:i.isConfigLookup&&e===8&&Sl(t,".json")?aK(t,r,i)!==void 0?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:YAe(e,t,r,i)}function $Ae(e,t,r,i,o){if(!i){let l=oi(e);l&&(i=!Hm(l,o.host))}switch(r){case".mjs":case".mts":case".d.mts":return t&1&&s(".mts",r===".mts"||r===".d.mts")||t&4&&s(".d.mts",r===".mts"||r===".d.mts")||t&2&&s(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return t&1&&s(".cts",r===".cts"||r===".d.cts")||t&4&&s(".d.cts",r===".cts"||r===".d.cts")||t&2&&s(".cjs")||void 0;case".json":return t&4&&s(".d.json.ts")||t&8&&s(".json")||void 0;case".tsx":case".jsx":return t&1&&(s(".tsx",r===".tsx")||s(".ts",r===".tsx"))||t&4&&s(".d.ts",r===".tsx")||t&2&&(s(".jsx")||s(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return t&1&&(s(".ts",r===".ts"||r===".d.ts")||s(".tsx",r===".ts"||r===".d.ts"))||t&4&&s(".d.ts",r===".ts"||r===".d.ts")||t&2&&(s(".js")||s(".jsx"))||o.isConfigLookup&&s(".json")||void 0;default:return t&4&&!vd(e+r)&&s(`.d${r}.ts`)||void 0}function s(l,d){let p=aK(e+l,i,o);return p===void 0?void 0:{path:p,ext:l,resolvedUsingTsExtension:!o.candidateIsFromPackageJsonField&&d}}}function aK(e,t,r){var i;if(!((i=r.compilerOptions.moduleSuffixes)!=null&&i.length))return QAe(e,t,r);let o=Og(e)??"",s=o?ck(e,o):e;return gn(r.compilerOptions.moduleSuffixes,l=>QAe(s+l+o,t,r))}function QAe(e,t,r){var i;if(!t){if(r.host.fileExists(e))return r.traceEnabled&&yo(r.host,f.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&yo(r.host,f.File_0_does_not_exist,e)}(i=r.failedLookupLocations)==null||i.push(e)}function Nse(e,t,r,i,o=!0){let s=o?Z0(t,r,i):void 0,l=s&&s.contents.packageJsonContent,d=s&&S3(s,i);return d1(s,lK(e,t,r,i,l,d))}function sK(e,t,r,i,o){if(!o&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let s,l=5|(o?2:0),d=Sse(t),p=fw(i?.getPackageJsonInfoCache(),r,t);p.conditions=Qv(t),p.requestContainingDirectory=e.packageDirectory;let h=lK(l,e.packageDirectory,!1,p,e.contents.packageJsonContent,S3(e,p));if(s=Tn(s,h?.path),d&8&&e.contents.packageJsonContent.exports){let m=_0([Qv(t,99),Qv(t,1)],Vm);for(let y of m){let E={...p,failedLookupLocations:[],conditions:y,host:r},S=yGe(e,e.contents.packageJsonContent.exports,E,l);if(S)for(let A of S)s=Ig(s,A.path)}}return e.contents.resolvedEntrypoints=s||!1}function yGe(e,t,r,i){let o;if(So(t))for(let l of t)s(l);else if(typeof t=="object"&&t!==null&&T3(t))for(let l in t)s(t[l]);else s(t);return o;function s(l){var d,p;if(typeof l=="string"&&ao(l,"./"))if(l.includes("*")&&r.host.readDirectory){if(l.indexOf("*")!==l.lastIndexOf("*"))return!1;r.host.readDirectory(e.packageDirectory,Q5e(i),void 0,[Lne(zI(l,"**/*"),".*")]).forEach(h=>{o=Ig(o,{path:h,ext:Dx(h),resolvedUsingTsExtension:void 0})})}else{let h=Wc(l).slice(2);if(h.includes("..")||h.includes(".")||h.includes("node_modules"))return!1;let m=$r(e.packageDirectory,l),y=_o(m,(p=(d=r.host).getCurrentDirectory)==null?void 0:p.call(d)),E=oK(i,y,!1,r);if(E)return o=Ig(o,E,(S,A)=>S.path===A.path),!0}else if(Array.isArray(l)){for(let h of l)if(s(h))return!0}else if(typeof l=="object"&&l!==null)return gn(jh(l),h=>{if(h==="default"||zo(r.conditions,h)||hw(r.conditions,h))return s(l[h]),!0})}}function fw(e,t,r){return{host:t,compilerOptions:r,traceEnabled:Bg(r,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:Xe,requestContainingDirectory:void 0,reportDiagnostic:qa,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function mw(e,t){let r=Wc(e);for(r.pop();r.length>0;){let i=Z0(Av(r),!1,t);if(i)return i;r.pop()}}function S3(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=rGe(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function Z0(e,t,r){var i,o,s,l,d,p;let{host:h,traceEnabled:m}=r,y=$r(e,"package.json");if(t){(i=r.failedLookupLocations)==null||i.push(y);return}let E=(o=r.packageJsonInfoCache)==null?void 0:o.getPackageJsonInfo(y);if(E!==void 0){if(v3(E))return m&&yo(h,f.File_0_exists_according_to_earlier_cached_lookups,y),(s=r.affectingLocations)==null||s.push(y),E.packageDirectory===e?E:{packageDirectory:e,contents:E.contents};E.directoryExists&&m&&yo(h,f.File_0_does_not_exist_according_to_earlier_cached_lookups,y),(l=r.failedLookupLocations)==null||l.push(y);return}let S=Hm(e,h);if(S&&h.fileExists(y)){let A=kN(y,h);m&&yo(h,f.Found_package_json_at_0,y);let N={packageDirectory:e,contents:{packageJsonContent:A,versionPaths:void 0,resolvedEntrypoints:void 0}};return r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(y,N),(d=r.affectingLocations)==null||d.push(y),N}else S&&m&&yo(h,f.File_0_does_not_exist,y),r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(y,{packageDirectory:e,directoryExists:S}),(p=r.failedLookupLocations)==null||p.push(y)}function lK(e,t,r,i,o,s){let l;o&&(i.isConfigLookup?l=eGe(o,t,i):l=e&4&&Z5e(o,t,i)||e&7&&tGe(o,t,i)||void 0);let d=(E,S,A,N)=>{let D=oK(E,S,A,N);if(D)return QH(D);let w=E===4?5:E,j=N.features,K=N.candidateIsFromPackageJsonField;N.candidateIsFromPackageJsonField=!0,o?.type!=="module"&&(N.features&=-33);let Y=iK(w,S,A,N,!1);return N.features=j,N.candidateIsFromPackageJsonField=K,Y},p=l?!Hm(oi(l),i.host):void 0,h=r||!Hm(t,i.host),m=$r(t,i.isConfigLookup?"tsconfig":"index");if(s&&(!l||mm(t,l))){let E=_m(t,l||m,!1);i.traceEnabled&&yo(i.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,s.version,qp,E);let S=Pse(e,E,t,s.paths,void 0,d,p||h,i);if(S)return WAe(S.value)}let y=l&&WAe(d(e,l,p,i));if(y)return y;if(!(i.features&32))return KR(e,m,h,i)}function ZAe(e,t){return e&2&&(t===".js"||t===".jsx"||t===".mjs"||t===".cjs")||e&1&&(t===".ts"||t===".tsx"||t===".mts"||t===".cts")||e&4&&(t===".d.ts"||t===".d.mts"||t===".d.cts")||e&8&&t===".json"||!1}function _w(e){let t=e.indexOf(nl);return e[0]==="@"&&(t=e.indexOf(nl,t+1)),t===-1?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function T3(e){return oo(jh(e),t=>ao(t,"."))}function vGe(e){return!gt(jh(e),t=>ao(t,"."))}function bGe(e,t,r,i,o,s){var l,d;let p=_o($r(r,"dummy"),(d=(l=i.host).getCurrentDirectory)==null?void 0:d.call(l)),h=mw(p,i);if(!h||!h.contents.packageJsonContent.exports||typeof h.contents.packageJsonContent.name!="string")return;let m=Wc(t),y=Wc(h.contents.packageJsonContent.name);if(!oo(y,(D,w)=>m[w]===D))return;let E=m.slice(y.length),S=Nn(E)?`.${nl}${E.join(nl)}`:".";if(jv(i.compilerOptions)&&!AE(r))return cK(h,e,S,i,o,s);let A=e&5,N=e&-6;return cK(h,A,S,i,o,s)||cK(h,N,S,i,o,s)}function cK(e,t,r,i,o,s){if(e.contents.packageJsonContent.exports){if(r==="."){let l;if(typeof e.contents.packageJsonContent.exports=="string"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports=="object"&&vGe(e.contents.packageJsonContent.exports)?l=e.contents.packageJsonContent.exports:Ts(e.contents.packageJsonContent.exports,".")&&(l=e.contents.packageJsonContent.exports["."]),l)return tIe(t,i,o,s,r,e,!1)(l,"",!1,".")}else if(T3(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return i.traceEnabled&&yo(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),tf(void 0);let l=eIe(t,i,o,s,r,e.contents.packageJsonContent.exports,e,!1);if(l)return l}return i.traceEnabled&&yo(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),tf(void 0)}}function EGe(e,t,r,i,o,s){var l,d;if(t==="#"||ao(t,"#/"))return i.traceEnabled&&yo(i.host,f.Invalid_import_specifier_0_has_no_possible_resolutions,t),tf(void 0);let p=_o($r(r,"dummy"),(d=(l=i.host).getCurrentDirectory)==null?void 0:d.call(l)),h=mw(p,i);if(!h)return i.traceEnabled&&yo(i.host,f.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,p),tf(void 0);if(!h.contents.packageJsonContent.imports)return i.traceEnabled&&yo(i.host,f.package_json_scope_0_has_no_imports_defined,h.packageDirectory),tf(void 0);let m=eIe(e,i,o,s,t,h.contents.packageJsonContent.imports,h,!0);return m||(i.traceEnabled&&yo(i.host,f.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,h.packageDirectory),tf(void 0))}function dK(e,t){let r=e.indexOf("*"),i=t.indexOf("*"),o=r===-1?e.length:r+1,s=i===-1?t.length:i+1;return o>s?-1:s>o||r===-1?1:i===-1||e.length>t.length?-1:t.length>e.length?1:0}function eIe(e,t,r,i,o,s,l,d){let p=tIe(e,t,r,i,o,l,d);if(!El(o,nl)&&!o.includes("*")&&Ts(s,o)){let y=s[o];return p(y,"",!1,o)}let h=ZS(jr(jh(s),y=>y.includes("*")||El(y,"/")),dK);for(let y of h)if(t.features&16&&m(y,o)){let E=s[y],S=y.indexOf("*"),A=o.substring(y.substring(0,S).length,o.length-(y.length-1-S));return p(E,A,!0,y)}else if(El(y,"*")&&ao(o,y.substring(0,y.length-1))){let E=s[y],S=o.substring(y.length-1);return p(E,S,!0,y)}else if(ao(o,y)){let E=s[y],S=o.substring(y.length);return p(E,S,!1,y)}function m(y,E){if(El(y,"*"))return!1;let S=y.indexOf("*");return S===-1?!1:ao(E,y.substring(0,S))&&El(E,y.substring(S+1))}}function tIe(e,t,r,i,o,s,l){return d;function d(p,h,m,y){if(typeof p=="string"){if(!m&&h.length>0&&!El(p,"/"))return t.traceEnabled&&yo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),tf(void 0);if(!ao(p,"./")){if(l&&!ao(p,"../")&&!ao(p,"/")&&!cp(p)){let B=m?p.replace(/\*/g,h):p+h;Zv(t,f.Using_0_subpath_1_with_target_2,"imports",y,B),Zv(t,f.Resolving_module_0_from_1,B,s.packageDirectory+"/");let ce=uw(t.features,B,s.packageDirectory+"/",t.compilerOptions,t.host,r,e,!1,i,t.conditions);return tf(ce.resolvedModule?{path:ce.resolvedModule.resolvedFileName,extension:ce.resolvedModule.extension,packageId:ce.resolvedModule.packageId,originalPath:ce.resolvedModule.originalPath,resolvedUsingTsExtension:ce.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&yo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),tf(void 0)}let D=(Lp(p)?Wc(p).slice(1):Wc(p)).slice(1);if(D.includes("..")||D.includes(".")||D.includes("node_modules"))return t.traceEnabled&&yo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),tf(void 0);let w=$r(s.packageDirectory,p),j=Wc(h);if(j.includes("..")||j.includes(".")||j.includes("node_modules"))return t.traceEnabled&&yo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),tf(void 0);t.traceEnabled&&yo(t.host,f.Using_0_subpath_1_with_target_2,l?"imports":"exports",y,m?p.replace(/\*/g,h):p+h);let K=E(m?w.replace(/\*/g,h):w+h),Y=A(K,h,$r(s.packageDirectory,"package.json"),l);return Y||tf(d1(s,oK(e,K,!1,t)))}else if(typeof p=="object"&&p!==null)if(Array.isArray(p)){if(!Nn(p))return t.traceEnabled&&yo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),tf(void 0);for(let N of p){let D=d(N,h,m,y);if(D)return D}}else{Zv(t,f.Entering_conditional_exports);for(let N of jh(p))if(N==="default"||t.conditions.includes(N)||hw(t.conditions,N)){Zv(t,f.Matched_0_condition_1,l?"imports":"exports",N);let D=p[N],w=d(D,h,m,y);if(w)return Zv(t,f.Resolved_under_condition_0,N),Zv(t,f.Exiting_conditional_exports),w;Zv(t,f.Failed_to_resolve_under_condition_0,N)}else Zv(t,f.Saw_non_matching_condition_0,N);Zv(t,f.Exiting_conditional_exports);return}else if(p===null)return t.traceEnabled&&yo(t.host,f.package_json_scope_0_explicitly_maps_specifier_1_to_null,s.packageDirectory,o),tf(void 0);return t.traceEnabled&&yo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),tf(void 0);function E(N){var D,w;return N===void 0?N:_o(N,(w=(D=t.host).getCurrentDirectory)==null?void 0:w.call(D))}function S(N,D){return Fc($r(N,D))}function A(N,D,w,j){var K,Y,B,ce;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!N.includes("/node_modules/")&&(!t.compilerOptions.configFile||mm(s.packageDirectory,E(t.compilerOptions.configFile.fileName),!uK(t)))){let ee=Ly({useCaseSensitiveFileNames:()=>uK(t)}),me=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){let ge=E(VP(t.compilerOptions,()=>[],((Y=(K=t.host).getCurrentDirectory)==null?void 0:Y.call(K))||"",ee));me.push(ge)}else if(t.requestContainingDirectory){let ge=E($r(t.requestContainingDirectory,"index.ts")),q=E(VP(t.compilerOptions,()=>[ge,E(w)],((ce=(B=t.host).getCurrentDirectory)==null?void 0:ce.call(B))||"",ee));me.push(q);let J=Fc(q);for(;J&&J.length>1;){let re=Wc(J);re.pop();let pe=Av(re);me.unshift(pe),J=Fc(pe)}}me.length>1&&t.reportDiagnostic(jl(j?f.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:f.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,D===""?".":D,w));for(let ge of me){let q=z(ge);for(let J of q)if(mm(J,N,!uK(t))){let re=N.slice(J.length+1),pe=$r(ge,re),xe=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(let fe of xe)if(Sl(pe,fe)){let ne=Mie(pe);for(let he of ne){if(!ZAe(e,he))continue;let Ce=WL(pe,he,fe,!uK(t));if(t.host.fileExists(Ce))return tf(d1(s,oK(e,Ce,!1,t)))}}}}}return;function z(ee){var me,ge;let q=t.compilerOptions.configFile?((ge=(me=t.host).getCurrentDirectory)==null?void 0:ge.call(me))||"":ee,J=[];return t.compilerOptions.declarationDir&&J.push(E(S(q,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&J.push(E(S(q,t.compilerOptions.outDir))),J}}}}function hw(e,t){if(!e.includes("types")||!ao(t,"types@"))return!1;let r=RL.tryParse(t.substring(6));return r?r.test(qp):!1}function nIe(e,t,r,i,o,s){return rIe(e,t,r,i,!1,o,s)}function SGe(e,t,r){return rIe(4,e,t,r,!0,void 0,void 0)}function rIe(e,t,r,i,o,s,l){let d=i.features===0?void 0:i.features&32?99:1,p=e&5,h=e&-6;if(p){Zv(i,f.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,h3(p));let y=m(p);if(y)return y}if(h&&!o)return Zv(i,f.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,h3(h)),m(h);function m(y){return hm(Nd(r),E=>{if(nc(E)!=="node_modules"){let S=sIe(s,t,d,E,l,i);return S||tf(iIe(y,t,E,i,o,s,l))}})}}function iIe(e,t,r,i,o,s,l){let d=$r(r,"node_modules"),p=Hm(d,i.host);if(!p&&i.traceEnabled&&yo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,d),!o){let h=oIe(e,t,d,p,i,s,l);if(h)return h}if(e&4){let h=$r(d,"@types"),m=p;return p&&!Hm(h,i.host)&&(i.traceEnabled&&yo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,h),m=!1),oIe(4,aIe(t,i),h,m,i,s,l)}}function oIe(e,t,r,i,o,s,l){var d,p;let h=fa($r(r,t)),{packageName:m,rest:y}=_w(t),E=$r(r,m),S,A=Z0(h,!i,o);if(y!==""&&A&&(!(o.features&8)||!Ts(((d=S=Z0(E,!i,o))==null?void 0:d.contents.packageJsonContent)??Xe,"exports"))){let w=KR(e,h,!i,o);if(w)return QH(w);let j=lK(e,h,!i,o,A.contents.packageJsonContent,S3(A,o));return d1(A,j)}let N=(w,j,K,Y)=>{let B=(y||!(Y.features&32))&&KR(w,j,K,Y)||lK(w,j,K,Y,A&&A.contents.packageJsonContent,A&&S3(A,Y));return!B&&A&&(A.contents.packageJsonContent.exports===void 0||A.contents.packageJsonContent.exports===null)&&Y.features&32&&(B=KR(w,$r(j,"index.js"),K,Y)),d1(A,B)};if(y!==""&&(A=S??Z0(E,!i,o)),A&&(o.resolvedPackageDirectory=!0),A&&A.contents.packageJsonContent.exports&&o.features&8)return(p=cK(A,e,$r(".",y),o,s,l))==null?void 0:p.value;let D=y!==""&&A?S3(A,o):void 0;if(D){o.traceEnabled&&yo(o.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,D.version,qp,y);let w=i&&Hm(E,o.host),j=Pse(e,y,E,D.paths,void 0,N,!w,o);if(j)return j.value}return N(e,h,!i,o)}function Pse(e,t,r,i,o,s,l,d){o||(o=w6(i));let p=cU(o,t);if(p){let h=Co(p)?void 0:fne(p,t),m=Co(p)?p:pne(p);return d.traceEnabled&&yo(d.host,f.Module_name_0_matched_pattern_1,t,m),{value:gn(i[m],E=>{let S=h?zI(E,h):E,A=fa($r(r,S));d.traceEnabled&&yo(d.host,f.Trying_substitution_0_candidate_module_location_Colon_1,E,S);let N=Og(E);if(N!==void 0){let D=aK(A,l,d);if(D!==void 0)return QH({path:D,ext:N,resolvedUsingTsExtension:void 0})}return s(e,A,l||!Hm(oi(A),d.host),d)})}}}function aIe(e,t){let r=JR(e);return t.traceEnabled&&r!==e&&yo(t.host,f.Scoped_package_detected_looking_in_0,r),r}function A3(e){return`@types/${JR(e)}`}function JR(e){if(ao(e,"@")){let t=e.replace(nl,fK);if(t!==e)return t.slice(1)}return e}function CP(e){let t=jC(e,"@types/");return t!==e?gw(t):e}function gw(e){return e.includes(fK)?"@"+e.replace(fK,nl):e}function sIe(e,t,r,i,o,s){let l=e&&e.getFromNonRelativeNameCache(t,r,i,o);if(l)return s.traceEnabled&&yo(s.host,f.Resolution_for_module_0_was_found_in_cache_from_location_1,t,i),s.resultFromCache=l,{value:l.resolvedModule&&{path:l.resolvedModule.resolvedFileName,originalPath:l.resolvedModule.originalPath||!0,extension:l.resolvedModule.extension,packageId:l.resolvedModule.packageId,resolvedUsingTsExtension:l.resolvedModule.resolvedUsingTsExtension}}}function Mse(e,t,r,i,o,s){let l=Bg(r,i),d=[],p=[],h=oi(t),m=[],y={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:d,affectingLocations:p,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:h,reportDiagnostic:A=>void m.push(A),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},E=S(5)||S(2|(r.resolveJsonModule?8:0));return FAe(e,E&&E.value,E?.value&&AE(E.value.path),d,p,m,y,o);function S(A){let N=KAe(A,e,h,Cse,y);if(N)return{value:N};if(qc(e)){let D=fa($r(h,e));return tf(Cse(A,D,!1,y))}else{let D=hm(h,w=>{let j=sIe(o,e,void 0,w,s,y);if(j)return j;let K=fa($r(w,e));return tf(Cse(A,K,!1,y))});if(D)return D;if(A&5){let w=SGe(e,h,y);return A&4&&(w??(w=lIe(e,y))),w}}}}function lIe(e,t){if(t.compilerOptions.typeRoots)for(let r of t.compilerOptions.typeRoots){let i=VAe(r,e,t),o=Hm(r,t.host);!o&&t.traceEnabled&&yo(t.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,r);let s=KR(4,i,!o,t);if(s){let d=pw(s.path),p=d?Z0(d,!1,t):void 0;return tf(d1(p,s))}let l=Nse(4,i,!o,t);if(l)return tf(l)}}function qR(e,t){return!!e.allowImportingTsExtensions||t&&vd(t)}function Lse(e,t,r,i,o,s){let l=Bg(r,i);l&&yo(i,f.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,o);let d=[],p=[],h=[],m={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:d,affectingLocations:p,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:E=>void h.push(E),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},y=iIe(4,e,o,m,!1,void 0,void 0);return zAe(y,!0,d,p,h,m.resultFromCache,void 0)}function tf(e){return e!==void 0?{value:e}:void 0}function Zv(e,t,...r){e.traceEnabled&&yo(e.host,t,...r)}function uK(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames=="boolean"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var kse,cIe,pK,Sh,fK,TGe=bt({"src/compiler/moduleNameResolver.ts"(){"use strict";Zo(),cIe=$r("node_modules","@types"),pK=(e=>(e[e.None=0]="None",e[e.Imports=2]="Imports",e[e.SelfName=4]="SelfName",e[e.Exports=8]="Exports",e[e.ExportsPatternTrailers=16]="ExportsPatternTrailers",e[e.AllFeatures=30]="AllFeatures",e[e.Node16Default=30]="Node16Default",e[e.NodeNextDefault=30]="NodeNextDefault",e[e.BundlerDefault=30]="BundlerDefault",e[e.EsmMode=32]="EsmMode",e))(pK||{}),Sh="/node_modules/",fK="__"}});function Gg(e,t){return e.body&&!e.body.parent&&(ja(e.body,e),Gv(e.body,!1)),e.body?wse(e.body,t):1}function wse(e,t=new Map){let r=is(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);let i=AGe(e,t);return t.set(r,i),i}function AGe(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(I0(e))return 2;break;case 272:case 271:if(!Qr(e,32))return 0;break;case 278:let r=e;if(!r.moduleSpecifier&&r.exportClause&&r.exportClause.kind===279){let i=0;for(let o of r.exportClause.elements){let s=IGe(o,t);if(s>i&&(i=s),i===1)return i}return i}break;case 268:{let i=0;return Bo(e,o=>{let s=wse(o,t);switch(s){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:R.assertNever(s)}}),i}case 267:return Gg(e,t);case 80:if(e.flags&4096)return 0}return 1}function IGe(e,t){let r=e.propertyName||e.name,i=e.parent;for(;i;){if(Ho(i)||N_(i)||Yi(i)){let o=i.statements,s;for(let l of o)if(YL(l,r)){l.parent||(ja(l,i),Gv(l,!1));let d=wse(l,t);if((s===void 0||d>s)&&(s=d),s===1)return s;l.kind===271&&(s=1)}if(s!==void 0)return s}i=i.parent}return 1}function p1(e){return R.attachFlowNodeDebugInfo(e),e}function Ose(e,t){var r,i;el("beforeBind"),(r=ru)==null||r.logStartBindFile(""+e.fileName),uIe(e,t),(i=ru)==null||i.logStopBindFile(),el("afterBind"),Yp("Bind","beforeBind","afterBind")}function xGe(){var e,t,r,i,o,s,l,d,p,h,m,y,E,S,A,N,D,w,j,K,Y,B,ce=!1,z=0,ee,me,ge={flags:1},q={flags:1},J=U();return pe;function re(O,Se,...nt){return Kf(Gn(O)||e,O,Se,...nt)}function pe(O,Se){var nt,jt;e=O,t=Se,r=rs(t),B=xe(e,Se),me=new Set,z=0,ee=od.getSymbolConstructor(),R.attachFlowNodeDebugInfo(ge),R.attachFlowNodeDebugInfo(q),e.locals||((nt=rr)==null||nt.push(rr.Phase.Bind,"bindSourceFile",{path:e.path},!0),Pe(e),(jt=rr)==null||jt.pop(),e.symbolCount=z,e.classifiableNames=me,sd()),e=void 0,t=void 0,r=void 0,i=void 0,o=void 0,s=void 0,l=void 0,d=void 0,p=void 0,h=!1,m=void 0,y=void 0,E=void 0,S=void 0,A=void 0,N=void 0,D=void 0,j=void 0,K=!1,ce=!1,Y=0}function xe(O,Se){return du(Se,"alwaysStrict")&&!O.isDeclarationFile?!0:!!O.externalModuleIndicator}function fe(O,Se){return z++,new ee(O,Se)}function ne(O,Se,nt){O.flags|=nt,Se.symbol=O,O.declarations=Ig(O.declarations,Se),nt&1955&&!O.exports&&(O.exports=oa()),nt&6240&&!O.members&&(O.members=oa()),O.constEnumOnlyModule&&O.flags&304&&(O.constEnumOnlyModule=!1),nt&111551&&O2(O,Se)}function he(O){if(O.kind===277)return O.isExportEquals?"export=":"default";let Se=No(O);if(Se){if(Pd(O)){let nt=Xf(Se);return E_(O)?"__global":`"${nt}"`}if(Se.kind===167){let nt=Se.expression;if(Qp(nt))return pl(nt.text);if(t6(nt))return ca(nt.operator)+nt.operand.text;R.fail("Only computed properties with literal names have declaration names")}if(Ki(Se)){let nt=id(O);if(!nt)return;let jt=nt.symbol;return J2(jt,Se.escapedText)}return Xm(Se)?FI(Se):T_(Se)?AN(Se):void 0}switch(O.kind){case 176:return"__constructor";case 184:case 179:case 330:return"__call";case 185:case 180:return"__new";case 181:return"__index";case 278:return"__export";case 312:return"export=";case 226:if(zl(O)===2)return"export=";R.fail("Unknown binary declaration kind");break;case 324:return nR(O)?"__new":"__call";case 169:return R.assert(O.parent.kind===324,"Impossible parameter parent kind",()=>`parent is: ${R.formatSyntaxKind(O.parent.kind)}, expected JSDocFunctionType`),"arg"+O.parent.parameters.indexOf(O)}}function Ce(O){return ou(O)?As(O.name):Vi(R.checkDefined(he(O)))}function Ge(O,Se,nt,jt,Zn,ii,Yr){R.assert(Yr||!Wv(nt));let no=Qr(nt,2048)||Hd(nt)&&nt.name.escapedText==="default",ka=Yr?"__computed":no&&Se?"default":he(nt),wa;if(ka===void 0)wa=fe(0,"__missing");else if(wa=O.get(ka),jt&2885600&&me.add(ka),!wa)O.set(ka,wa=fe(0,ka)),ii&&(wa.isReplaceableByMethod=!0);else{if(ii&&!wa.isReplaceableByMethod)return wa;if(wa.flags&Zn){if(wa.isReplaceableByMethod)O.set(ka,wa=fe(0,ka));else if(!(jt&3&&wa.flags&67108864)){ou(nt)&&ja(nt.name,nt);let wl=wa.flags&2?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,dd=!0;(wa.flags&384||jt&384)&&(wl=f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,dd=!1);let Ic=!1;Nn(wa.declarations)&&(no||wa.declarations&&wa.declarations.length&&nt.kind===277&&!nt.isExportEquals)&&(wl=f.A_module_cannot_have_multiple_default_exports,dd=!1,Ic=!0);let Tp=[];Tm(nt)&&Fl(nt.type)&&Qr(nt,32)&&wa.flags&2887656&&Tp.push(re(nt,f.Did_you_mean_0,`export type { ${Vi(nt.name.escapedText)} }`));let Gu=No(nt)||nt;gn(wa.declarations,(cs,Dm)=>{let Cm=No(cs)||cs,Ui=dd?re(Cm,wl,Ce(cs)):re(Cm,wl);e.bindDiagnostics.push(Ic?Ma(Ui,re(Gu,Dm===0?f.Another_export_default_is_here:f.and_here)):Ui),Ic&&Tp.push(re(Cm,f.The_first_export_default_is_here))});let ab=dd?re(Gu,wl,Ce(nt)):re(Gu,wl);e.bindDiagnostics.push(Ma(ab,...Tp)),wa=fe(0,ka)}}}return ne(wa,nt,jt),wa.parent?R.assert(wa.parent===Se,"Existing symbol parent should match new one"):wa.parent=Se,wa}function ve(O,Se,nt){let jt=!!(eE(O)&32)||Ie(O);if(Se&2097152)return O.kind===281||O.kind===271&&jt?Ge(o.symbol.exports,o.symbol,O,Se,nt):(R.assertNode(o,ch),Ge(o.locals,void 0,O,Se,nt));if(qf(O)&&R.assert(ir(O)),!Pd(O)&&(jt||o.flags&128)){if(!ch(o)||!o.locals||Qr(O,2048)&&!he(O))return Ge(o.symbol.exports,o.symbol,O,Se,nt);let Zn=Se&111551?1048576:0,ii=Ge(o.locals,void 0,O,Zn,nt);return ii.exportSymbol=Ge(o.symbol.exports,o.symbol,O,Se,nt),O.localSymbol=ii,ii}else return R.assertNode(o,ch),Ge(o.locals,void 0,O,Se,nt)}function Ie(O){if(O.parent&&ql(O)&&(O=O.parent),!qf(O))return!1;if(!Bk(O)&&O.fullName)return!0;let Se=No(O);return Se?!!(tk(Se.parent)&&Zl(Se.parent)||Ud(Se.parent)&&eE(Se.parent)&32):!1}function De(O,Se){let nt=o,jt=s,Zn=l;if(Se&1?(O.kind!==219&&(s=o),o=l=O,Se&32&&(o.locals=oa(),er(o))):Se&2&&(l=O,Se&32&&(l.locals=void 0)),Se&4){let ii=m,Yr=y,no=E,ka=S,wa=D,wl=j,dd=K,Ic=Se&16&&!Qr(O,1024)&&!O.asteriskToken&&!!_T(O)||O.kind===175;Ic||(m=p1({flags:2}),Se&144&&(m.node=O)),S=Ic||O.kind===176||ir(O)&&(O.kind===262||O.kind===218)?Dn():void 0,D=void 0,y=void 0,E=void 0,j=void 0,K=!1,ze(O),O.flags&=-5633,!(m.flags&1)&&Se&8&&Hf(O.body)&&(O.flags|=512,K&&(O.flags|=1024),O.endFlowNode=m),O.kind===312&&(O.flags|=Y,O.endFlowNode=m),S&&(qt(S,m),m=Qn(S),(O.kind===176||O.kind===175||ir(O)&&(O.kind===262||O.kind===218))&&(O.returnFlowNode=m)),Ic||(m=ii),y=Yr,E=no,S=ka,D=wa,j=wl,K=dd}else Se&64?(h=!1,ze(O),R.assertNotNode(O,Fe),O.flags=h?O.flags|256:O.flags&-257):ze(O);o=nt,s=jt,l=Zn}function Le(O){Et(O,Se=>Se.kind===262?Pe(Se):void 0),Et(O,Se=>Se.kind!==262?Pe(Se):void 0)}function Et(O,Se=Pe){O!==void 0&&gn(O,Se)}function be(O){Bo(O,Pe,Et)}function ze(O){let Se=ce;if(ce=!1,zt(O)){be(O),yt(O),ce=Se;return}switch(O.kind>=243&&O.kind<=259&&!t.allowUnreachableCode&&(O.flowNode=m),O.kind){case 247:$i(O);break;case 246:Ao(O);break;case 248:da(O);break;case 249:case 250:Ba(O);break;case 245:vn(O);break;case 253:case 257:kn(O);break;case 252:case 251:lt(O);break;case 258:Dt(O);break;case 255:se(O);break;case 269:ke(O);break;case 296:st(O);break;case 244:G(O);break;case 256:Tt(O);break;case 224:hn(O);break;case 225:dn(O);break;case 226:if(wy(O)){ce=Se,un(O);return}J(O);break;case 220:Me(O);break;case 227:Pt(O);break;case 260:ie(O);break;case 211:case 212:gi(O);break;case 213:xi(O);break;case 235:Bn(O);break;case 353:case 345:case 347:Ne(O);break;case 312:{Le(O.statements),Pe(O.endOfFileToken);break}case 241:case 268:Le(O.statements);break;case 208:H(O);break;case 169:ue(O);break;case 210:case 209:case 303:case 230:ce=Se;default:be(O);break}yt(O),ce=Se}function tt(O){switch(O.kind){case 80:case 81:case 110:case 211:case 212:return _t(O);case 213:return Je(O);case 217:if(OR(O))return!1;case 235:return tt(O.expression);case 226:return Zt(O);case 224:return O.operator===54&&tt(O.operand);case 221:return tt(O.expression)}return!1}function Wt(O){return MN(O)||(wr(O)||t1(O)||Wu(O))&&Wt(O.expression)||ur(O)&&O.operatorToken.kind===28&&Wt(O.right)||qs(O)&&(Qp(O.argumentExpression)||Bl(O.argumentExpression))&&Wt(O.expression)||Pc(O)&&Wt(O.left)}function _t(O){return Wt(O)||jd(O)&&_t(O.expression)}function Je(O){if(O.arguments){for(let Se of O.arguments)if(_t(Se))return!0}return!!(O.expression.kind===211&&_t(O.expression.expression))}function ft(O,Se){return CR(O)&&en(O.expression)&&ss(Se)}function Zt(O){switch(O.operatorToken.kind){case 64:case 76:case 77:case 78:return _t(O.left);case 35:case 36:case 37:case 38:return en(O.left)||en(O.right)||ft(O.right,O.left)||ft(O.left,O.right)||sN(O.right)&&tt(O.left)||sN(O.left)&&tt(O.right);case 104:return en(O.left);case 103:return tt(O.right);case 28:return tt(O.right)}return!1}function en(O){switch(O.kind){case 217:return en(O.expression);case 226:switch(O.operatorToken.kind){case 64:return en(O.left);case 28:return en(O.right)}}return _t(O)}function Dn(){return p1({flags:4,antecedents:void 0})}function Kn(){return p1({flags:8,antecedents:void 0})}function pn(O,Se,nt){return p1({flags:1024,target:O,antecedents:Se,antecedent:nt})}function Yt(O){O.flags|=O.flags&2048?4096:2048}function qt(O,Se){!(Se.flags&1)&&!zo(O.antecedents,Se)&&((O.antecedents||(O.antecedents=[])).push(Se),Yt(Se))}function hi(O,Se,nt){return Se.flags&1?Se:nt?(nt.kind===112&&O&64||nt.kind===97&&O&32)&&!aF(nt)&&!TV(nt.parent)?ge:tt(nt)?(Yt(Se),p1({flags:O,antecedent:Se,node:nt})):Se:O&32?Se:ge}function uo(O,Se,nt,jt){return Yt(O),p1({flags:128,antecedent:O,switchStatement:Se,clauseStart:nt,clauseEnd:jt})}function Li(O,Se,nt){Yt(Se);let jt=p1({flags:O,antecedent:Se,node:nt});return D&&qt(D,jt),jt}function Eo(O,Se){return Yt(O),p1({flags:512,antecedent:O,node:Se})}function Qn(O){let Se=O.antecedents;return Se?Se.length===1?Se[0]:O:ge}function Ur(O){let Se=O.parent;switch(Se.kind){case 245:case 247:case 246:return Se.expression===O;case 248:case 227:return Se.condition===O}return!1}function Er(O){for(;;)if(O.kind===217)O=O.expression;else if(O.kind===224&&O.operator===54)O=O.operand;else return ek(O)}function on(O){return jj(ms(O))}function Ye(O){for(;Wu(O.parent)||Xv(O.parent)&&O.parent.operator===54;)O=O.parent;return!Ur(O)&&!Er(O.parent)&&!(jd(O.parent)&&O.parent.expression===O)}function Ot(O,Se,nt,jt){let Zn=A,ii=N;A=nt,N=jt,O(Se),A=Zn,N=ii}function In(O,Se,nt){Ot(Pe,O,Se,nt),(!O||!on(O)&&!Er(O)&&!(jd(O)&&nN(O)))&&(qt(Se,hi(32,m,O)),qt(nt,hi(64,m,O)))}function si(O,Se,nt){let jt=y,Zn=E;y=Se,E=nt,Pe(O),y=jt,E=Zn}function yi(O,Se){let nt=j;for(;nt&&O.parent.kind===256;)nt.continueTarget=Se,nt=nt.next,O=O.parent;return Se}function $i(O){let Se=yi(O,Kn()),nt=Dn(),jt=Dn();qt(Se,m),m=Se,In(O.expression,nt,jt),m=Qn(nt),si(O.statement,jt,Se),qt(Se,m),m=Qn(jt)}function Ao(O){let Se=Kn(),nt=yi(O,Dn()),jt=Dn();qt(Se,m),m=Se,si(O.statement,jt,nt),qt(nt,m),m=Qn(nt),In(O.expression,Se,jt),m=Qn(jt)}function da(O){let Se=yi(O,Kn()),nt=Dn(),jt=Dn();Pe(O.initializer),qt(Se,m),m=Se,In(O.condition,nt,jt),m=Qn(nt),si(O.statement,jt,Se),Pe(O.incrementor),qt(Se,m),m=Qn(jt)}function Ba(O){let Se=yi(O,Kn()),nt=Dn();Pe(O.expression),qt(Se,m),m=Se,O.kind===250&&Pe(O.awaitModifier),qt(nt,m),Pe(O.initializer),O.initializer.kind!==261&&pt(O.initializer),si(O.statement,nt,Se),qt(Se,m),m=Qn(nt)}function vn(O){let Se=Dn(),nt=Dn(),jt=Dn();In(O.expression,Se,nt),m=Qn(Se),Pe(O.thenStatement),qt(jt,m),m=Qn(nt),Pe(O.elseStatement),qt(jt,m),m=Qn(jt)}function kn(O){Pe(O.expression),O.kind===253&&(K=!0,S&&qt(S,m)),m=ge}function Be(O){for(let Se=j;Se;Se=Se.next)if(Se.name===O)return Se}function ct(O,Se,nt){let jt=O.kind===252?Se:nt;jt&&(qt(jt,m),m=ge)}function lt(O){if(Pe(O.label),O.label){let Se=Be(O.label.escapedText);Se&&(Se.referenced=!0,ct(O,Se.breakTarget,Se.continueTarget))}else ct(O,y,E)}function Dt(O){let Se=S,nt=D,jt=Dn(),Zn=Dn(),ii=Dn();if(O.finallyBlock&&(S=Zn),qt(ii,m),D=ii,Pe(O.tryBlock),qt(jt,m),O.catchClause&&(m=Qn(ii),ii=Dn(),qt(ii,m),D=ii,Pe(O.catchClause),qt(jt,m)),S=Se,D=nt,O.finallyBlock){let Yr=Dn();Yr.antecedents=bo(bo(jt.antecedents,ii.antecedents),Zn.antecedents),m=Yr,Pe(O.finallyBlock),m.flags&1?m=ge:(S&&Zn.antecedents&&qt(S,pn(Yr,Zn.antecedents,m)),D&&ii.antecedents&&qt(D,pn(Yr,ii.antecedents,m)),m=jt.antecedents?pn(Yr,jt.antecedents,m):ge)}else m=Qn(jt)}function se(O){let Se=Dn();Pe(O.expression);let nt=y,jt=w;y=Se,w=m,Pe(O.caseBlock),qt(Se,m);let Zn=gn(O.caseBlock.clauses,ii=>ii.kind===297);O.possiblyExhaustive=!Zn&&!Se.antecedents,Zn||qt(Se,uo(w,O,0,0)),y=nt,w=jt,m=Qn(Se)}function ke(O){let Se=O.clauses,nt=O.parent.expression.kind===112||tt(O.parent.expression),jt=ge;for(let Zn=0;ZnXl(nt)||Ll(nt))}function Kr(O){O.flags&33554432&&!Ri(O)?O.flags|=128:O.flags&=-129}function Io(O){if(Kr(O),Pd(O))if(Qr(O,32)&&Ds(O,f.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),XV(O))xn(O);else{let Se;if(O.name.kind===11){let{text:jt}=O.name;Se=yR(jt),Se===void 0&&Ds(O.name,f.Pattern_0_can_have_at_most_one_Asterisk_character,jt)}let nt=Fr(O,512,110735);e.patternAmbientModules=Tn(e.patternAmbientModules,Se&&!Co(Se)?{pattern:Se,symbol:nt}:void 0)}else{let Se=xn(O);if(Se!==0){let{symbol:nt}=O;nt.constEnumOnlyModule=!(nt.flags&304)&&Se===2&&nt.constEnumOnlyModule!==!1}}}function xn(O){let Se=Gg(O),nt=Se!==0;return Fr(O,nt?512:1024,nt?110735:0),Se}function ks(O){let Se=fe(131072,he(O));ne(Se,O,131072);let nt=fe(2048,"__type");ne(nt,O,2048),nt.members=oa(),nt.members.set(Se.escapedName,Se)}function $l(O){return zs(O,4096,"__object")}function Po(O){return zs(O,4096,"__jsxAttributes")}function ls(O,Se,nt){return Fr(O,Se,nt)}function zs(O,Se,nt){let jt=fe(Se,nt);return Se&106508&&(jt.parent=o.symbol),ne(jt,O,Se),jt}function ml(O,Se,nt){switch(l.kind){case 267:ve(O,Se,nt);break;case 312:if(wp(o)){ve(O,Se,nt);break}default:R.assertNode(l,ch),l.locals||(l.locals=oa(),er(l)),Ge(l.locals,void 0,O,Se,nt)}}function sd(){if(!p)return;let O=o,Se=d,nt=l,jt=i,Zn=m;for(let ii of p){let Yr=ii.parent.parent;o=nj(Yr)||e,l=ph(Yr)||e,m=p1({flags:2}),i=ii,Pe(ii.typeExpression);let no=No(ii);if((Bk(ii)||!ii.fullName)&&no&&tk(no.parent)){let ka=Zl(no.parent);if(ka){_l(e.symbol,no.parent,ka,!!Fn(no,wl=>wr(wl)&&wl.name.escapedText==="prototype"),!1);let wa=o;switch(k2(no.parent)){case 1:case 2:wp(e)?o=e:o=void 0;break;case 4:o=no.parent.expression;break;case 3:o=no.parent.expression.name;break;case 5:o=eS(e,no.parent.expression)?e:wr(no.parent.expression)?no.parent.expression.name:no.parent.expression;break;case 0:return R.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}o&&ve(ii,524288,788968),o=wa}}else Bk(ii)||!ii.fullName||ii.fullName.kind===80?(i=ii.parent,ml(ii,524288,788968)):Pe(ii.fullName)}o=O,d=Se,l=nt,i=jt,m=Zn}function mo(O){if(!e.parseDiagnostics.length&&!(O.flags&33554432)&&!(O.flags&16777216)&&!Aie(O)){let Se=tE(O);if(Se===void 0)return;B&&Se>=119&&Se<=127?e.bindDiagnostics.push(re(O,sa(O),As(O))):Se===135?oc(e)&&FF(O)?e.bindDiagnostics.push(re(O,f.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,As(O))):O.flags&65536&&e.bindDiagnostics.push(re(O,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,As(O))):Se===127&&O.flags&16384&&e.bindDiagnostics.push(re(O,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,As(O)))}}function sa(O){return id(O)?f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:f.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function ld(O){O.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(re(O,f.constructor_is_a_reserved_word,As(O))))}function Es(O){B&&Yu(O.left)&&ky(O.operatorToken.kind)&&ac(O,O.left)}function Na(O){B&&O.variableDeclaration&&ac(O,O.variableDeclaration.name)}function ul(O){if(B&&O.expression.kind===80){let Se=fT(e,O.expression);e.bindDiagnostics.push(Yc(e,Se.start,Se.length,f.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Nf(O){return Fe(O)&&(O.escapedText==="eval"||O.escapedText==="arguments")}function ac(O,Se){if(Se&&Se.kind===80){let nt=Se;if(Nf(nt)){let jt=fT(e,Se);e.bindDiagnostics.push(Yc(e,jt.start,jt.length,xl(O),yr(nt)))}}}function xl(O){return id(O)?f.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:e.externalModuleIndicator?f.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:f.Invalid_use_of_0_in_strict_mode}function al(O){B&&ac(O,O.name)}function Mo(O){return id(O)?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function tn(O){if(r<2&&l.kind!==312&&l.kind!==267&&!Ox(l)){let Se=fT(e,O);e.bindDiagnostics.push(Yc(e,Se.start,Se.length,Mo(O)))}}function Bs(O){B&&ac(O,O.operand)}function ed(O){B&&(O.operator===46||O.operator===47)&&ac(O,O.operand)}function cd(O){B&&Ds(O,f.with_statements_are_not_allowed_in_strict_mode)}function Ep(O){B&&rs(t)>=2&&(Rre(O.statement)||Ml(O.statement))&&Ds(O.label,f.A_label_is_not_allowed_here)}function Ds(O,Se,...nt){let jt=fh(e,O.pos);e.bindDiagnostics.push(Yc(e,jt.start,jt.length,Se,...nt))}function Ac(O,Se,nt){de(O,Se,Se,nt)}function de(O,Se,nt,jt){$(O,{pos:aE(Se,e),end:nt.end},jt)}function $(O,Se,nt){let jt=Yc(e,Se.pos,Se.end-Se.pos,nt);O?e.bindDiagnostics.push(jt):e.bindSuggestionDiagnostics=Tn(e.bindSuggestionDiagnostics,{...jt,category:2})}function Pe(O){if(!O)return;ja(O,i),rr&&(O.tracingPath=e.path);let Se=B;if(fr(O),O.kind>165){let nt=i;i=O;let jt=mK(O);jt===0?ze(O):De(O,jt),i=nt}else{let nt=i;O.kind===1&&(i=O),yt(O),i=nt}B=Se}function yt(O){if(kp(O))if(ir(O))for(let Se of O.jsDoc)Pe(Se);else for(let Se of O.jsDoc)ja(Se,O),Gv(Se,!1)}function cn(O){if(!B)for(let Se of O){if(!vm(Se))return;if(vr(Se)){B=!0;return}}}function vr(O){let Se=T0(e,O.expression);return Se==='"use strict"'||Se==="'use strict'"}function fr(O){switch(O.kind){case 80:if(O.flags&4096){let Yr=O.parent;for(;Yr&&!qf(Yr);)Yr=Yr.parent;ml(Yr,524288,788968);break}case 110:return m&&(ht(O)||i.kind===304)&&(O.flowNode=m),mo(O);case 166:m&&jF(O)&&(O.flowNode=m);break;case 236:case 108:O.flowNode=m;break;case 81:return ld(O);case 211:case 212:let Se=O;m&&Wt(Se)&&(Se.flowNode=m),gie(Se)&&Un(Se),ir(Se)&&e.commonJsModuleIndicator&&$h(Se)&&!I3(l,"module")&&Ge(e.locals,void 0,Se.expression,134217729,111550);break;case 226:switch(zl(O)){case 1:tp(O);break;case 2:wc(O);break;case 3:Qo(O.left,O);break;case 6:go(O);break;case 4:mu(O);break;case 5:let Yr=O.left.expression;if(ir(O)&&Fe(Yr)){let no=I3(l,Yr.escapedText);if(zF(no?.valueDeclaration)){mu(O);break}}gc(O);break;case 0:break;default:R.fail("Unknown binary expression special property assignment kind")}return Es(O);case 299:return Na(O);case 220:return ul(O);case 225:return Bs(O);case 224:return ed(O);case 254:return cd(O);case 256:return Ep(O);case 197:h=!0;return;case 182:break;case 168:return rt(O);case 169:return Hg(O);case 260:return Wd(O);case 208:return O.flowNode=m,Wd(O);case 172:case 171:return zr(O);case 303:case 304:return Bu(O,4,0);case 306:return Bu(O,8,900095);case 179:case 180:case 181:return Fr(O,131072,0);case 174:case 173:return Bu(O,8192|(O.questionToken?16777216:0),bm(O)?0:103359);case 262:return Sp(O);case 176:return Fr(O,16384,0);case 177:return Bu(O,32768,46015);case 178:return Bu(O,65536,78783);case 184:case 324:case 330:case 185:return ks(O);case 187:case 329:case 200:return Di(O);case 339:return It(O);case 210:return $l(O);case 218:case 219:return cg(O);case 213:switch(zl(O)){case 7:return Ql(O);case 8:return Uc(O);case 9:return qo(O);case 0:break;default:return R.fail("Unknown call expression assignment declaration kind")}ir(O)&&z_(O);break;case 231:case 263:return B=!0,Ih(O);case 264:return ml(O,64,788872);case 265:return ml(O,524288,788968);case 266:return Ug(O);case 267:return Io(O);case 292:return Po(O);case 291:return ls(O,4,0);case 271:case 274:case 276:case 281:return Fr(O,2097152,2097152);case 270:return jc(O);case 273:return hc(O);case 278:return Gs(O);case 277:return vl(O);case 312:return cn(O.statements),Cr();case 241:if(!Ox(O.parent))return;case 268:return cn(O.statements);case 348:if(O.parent.kind===330)return Hg(O);if(O.parent.kind!==329)break;case 355:let Zn=O,ii=Zn.isBracketed||Zn.typeExpression&&Zn.typeExpression.type.kind===323?16777220:4;return Fr(Zn,ii,0);case 353:case 345:case 347:return(p||(p=[])).push(O);case 346:return Pe(O.typeExpression)}}function zr(O){let Se=Lu(O),nt=Se?98304:4,jt=Se?13247:0;return Bu(O,nt|(O.questionToken?16777216:0),jt)}function Di(O){return zs(O,2048,"__type")}function Cr(){if(Kr(e),oc(e))Jo();else if(Jf(e)){Jo();let O=e.symbol;Ge(e.symbol.exports,e.symbol,e,4,-1),e.symbol=O}}function Jo(){zs(e,512,`"${Su(e.fileName)}"`)}function vl(O){if(!o.symbol||!o.symbol.exports)zs(O,111551,he(O));else{let Se=iR(O)?2097152:4,nt=Ge(o.symbol.exports,o.symbol,O,Se,-1);O.isExportEquals&&O2(nt,O)}}function jc(O){gt(O.modifiers)&&e.bindDiagnostics.push(re(O,f.Modifiers_cannot_appear_here));let Se=Yi(O.parent)?oc(O.parent)?O.parent.isDeclarationFile?void 0:f.Global_module_exports_may_only_appear_in_declaration_files:f.Global_module_exports_may_only_appear_in_module_files:f.Global_module_exports_may_only_appear_at_top_level;Se?e.bindDiagnostics.push(re(O,Se)):(e.symbol.globalExports=e.symbol.globalExports||oa(),Ge(e.symbol.globalExports,e.symbol,O,2097152,2097152))}function Gs(O){!o.symbol||!o.symbol.exports?zs(O,8388608,he(O)):O.exportClause?vh(O.exportClause)&&(ja(O.exportClause,O),Ge(o.symbol.exports,o.symbol,O.exportClause,2097152,2097152)):Ge(o.symbol.exports,o.symbol,O,8388608,0)}function hc(O){O.name&&Fr(O,2097152,2097152)}function vs(O){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=O,e.externalModuleIndicator||Jo()),!0)}function Uc(O){if(!vs(O))return;let Se=Pf(O.arguments[0],void 0,(nt,jt)=>(jt&&ne(jt,nt,67110400),jt));Se&&Ge(Se.exports,Se,O,1048580,0)}function tp(O){if(!vs(O))return;let Se=Pf(O.left.expression,void 0,(nt,jt)=>(jt&&ne(jt,nt,67110400),jt));if(Se){let jt=H2(O.right)&&(hT(O.left.expression)||$h(O.left.expression))?2097152:1048580;ja(O.left,O),Ge(Se.exports,Se,O.left,jt,0)}}function wc(O){if(!vs(O))return;let Se=P2(O.right);if(Jj(Se)||o===e&&eS(e,Se))return;if(La(Se)&&oo(Se.properties,Zu)){gn(Se.properties,im);return}let nt=iR(O)?2097152:1049092,jt=Ge(e.symbol.exports,e.symbol,O,nt|67108864,0);O2(jt,O)}function im(O){Ge(e.symbol.exports,e.symbol,O,69206016,0)}function mu(O){if(R.assert(ir(O)),ur(O)&&wr(O.left)&&Ki(O.left.name)||wr(O)&&Ki(O.name))return;let nt=ku(O,!1,!1);switch(nt.kind){case 262:case 218:let jt=nt.symbol;if(ur(nt.parent)&&nt.parent.operatorToken.kind===64){let Yr=nt.parent.left;C0(Yr)&&zv(Yr.expression)&&(jt=Ru(Yr.expression.expression,s))}jt&&jt.valueDeclaration&&(jt.members=jt.members||oa(),Wv(O)?Re(O,jt,jt.members):Ge(jt.members,jt,O,67108868,0),ne(jt,jt.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:let Zn=nt.parent,ii=na(nt)?Zn.symbol.exports:Zn.symbol.members;Wv(O)?Re(O,Zn.symbol,ii):Ge(ii,Zn.symbol,O,67108868,0,!0);break;case 312:if(Wv(O))break;nt.commonJsModuleIndicator?Ge(nt.symbol.exports,nt.symbol,O,1048580,0):Fr(O,1,111550);break;case 267:break;default:R.failBadSyntaxKind(nt)}}function Re(O,Se,nt){Ge(nt,Se,O,4,0,!0,!0),Lt(O,Se)}function Lt(O,Se){Se&&(Se.assignmentDeclarationMembers||(Se.assignmentDeclarationMembers=new Map)).set(is(O),O)}function Un(O){O.expression.kind===110?mu(O):C0(O)&&O.parent.parent.kind===312&&(zv(O.expression)?Qo(O,O.parent):sl(O))}function go(O){ja(O.left,O),ja(O.right,O),Hc(O.left.expression,O.left,!1,!0)}function qo(O){let Se=Ru(O.arguments[0].expression);Se&&Se.valueDeclaration&&ne(Se,Se.valueDeclaration,32),Gl(O,Se,!0)}function Qo(O,Se){let nt=O.expression,jt=nt.expression;ja(jt,nt),ja(nt,O),ja(O,Se),Hc(jt,O,!0,!0)}function Ql(O){let Se=Ru(O.arguments[0]),nt=O.parent.parent.kind===312;Se=_l(Se,O.arguments[0],nt,!1,!1),Gl(O,Se,!1)}function gc(O){var Se;let nt=Ru(O.left.expression,l)||Ru(O.left.expression,o);if(!ir(O)&&!yie(nt))return;let jt=_R(O.left);if(!(Fe(jt)&&((Se=I3(o,jt.escapedText))==null?void 0:Se.flags)&2097152))if(ja(O.left,O),ja(O.right,O),Fe(O.left.expression)&&o===e&&eS(e,O.left.expression))tp(O);else if(Wv(O)){zs(O,67108868,"__computed");let Zn=_l(nt,O.left.expression,Zl(O.left),!1,!1);Lt(O,Zn)}else sl(ta(O.left,yT))}function sl(O){R.assert(!Fe(O)),ja(O.expression,O),Hc(O.expression,O,!1,!1)}function _l(O,Se,nt,jt,Zn){return O?.flags&2097152||(nt&&!jt&&(O=Pf(Se,O,(no,ka,wa)=>{if(ka)return ne(ka,no,67110400),ka;{let wl=wa?wa.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=oa());return Ge(wl,wa,no,67110400,110735)}})),Zn&&O&&O.valueDeclaration&&ne(O,O.valueDeclaration,32)),O}function Gl(O,Se,nt){if(!Se||!cf(Se))return;let jt=nt?Se.members||(Se.members=oa()):Se.exports||(Se.exports=oa()),Zn=0,ii=0;Ws(AI(O))?(Zn=8192,ii=103359):ra(O)&&gT(O)&&(gt(O.arguments[2].properties,Yr=>{let no=No(Yr);return!!no&&Fe(no)&&yr(no)==="set"})&&(Zn|=65540,ii|=78783),gt(O.arguments[2].properties,Yr=>{let no=No(Yr);return!!no&&Fe(no)&&yr(no)==="get"})&&(Zn|=32772,ii|=46015)),Zn===0&&(Zn=4,ii=0),Ge(jt,Se,O,Zn|67108864,ii&-67108865)}function Zl(O){return ur(O.parent)?zu(O.parent).parent.kind===312:O.parent.parent.kind===312}function Hc(O,Se,nt,jt){let Zn=Ru(O,l)||Ru(O,o),ii=Zl(Se);Zn=_l(Zn,Se.expression,ii,nt,jt),Gl(Se,Zn,nt)}function cf(O){if(O.flags&1072)return!0;let Se=O.valueDeclaration;if(Se&&ra(Se))return!!AI(Se);let nt=Se?Oi(Se)?Se.initializer:ur(Se)?Se.right:wr(Se)&&ur(Se.parent)?Se.parent.right:void 0:void 0;if(nt=nt&&P2(nt),nt){let jt=zv(Oi(Se)?Se.name:ur(Se)?Se.left:Se);return!!lE(ur(nt)&&(nt.operatorToken.kind===57||nt.operatorToken.kind===61)?nt.right:nt,jt)}return!1}function zu(O){for(;ur(O.parent);)O=O.parent;return O.parent}function Ru(O,Se=o){if(Fe(O))return I3(Se,O.escapedText);{let nt=Ru(O.expression);return nt&&nt.exports&&nt.exports.get(Mg(O))}}function Pf(O,Se,nt){if(eS(e,O))return e.symbol;if(Fe(O))return nt(O,Ru(O),Se);{let jt=Pf(O.expression,Se,nt),Zn=L2(O);return Ki(Zn)&&R.fail("unexpected PrivateIdentifier"),nt(Zn,jt&&jt.exports&&jt.exports.get(Mg(O)),jt)}}function z_(O){!e.commonJsModuleIndicator&&Eu(O,!1)&&vs(O)}function Ih(O){if(O.kind===263)ml(O,32,899503);else{let Zn=O.name?O.name.escapedText:"__class";zs(O,32,Zn),O.name&&me.add(O.name.escapedText)}let{symbol:Se}=O,nt=fe(4194308,"prototype"),jt=Se.exports.get(nt.escapedName);jt&&(O.name&&ja(O.name,O),e.bindDiagnostics.push(re(jt.declarations[0],f.Duplicate_identifier_0,yl(nt)))),Se.exports.set(nt.escapedName,nt),nt.parent=Se}function Ug(O){return I0(O)?ml(O,128,899967):ml(O,256,899327)}function Wd(O){if(B&&ac(O,O.name),!$o(O.name)){let Se=O.kind===260?O:O.parent.parent;ir(O)&&D0(Se)&&!nE(O)&&!(eE(O)&32)?Fr(O,2097152,2097152):KV(O)?ml(O,2,111551):M0(O)?Fr(O,1,111551):Fr(O,1,111550)}}function Hg(O){if(!(O.kind===348&&o.kind!==330)&&(B&&!(O.flags&33554432)&&ac(O,O.name),$o(O.name)?zs(O,1,"__"+O.parent.parameters.indexOf(O)):Fr(O,1,111551),dp(O,O.parent))){let Se=O.parent.parent;Ge(Se.symbol.members,Se.symbol,O,4|(O.questionToken?16777216:0),0)}}function Sp(O){!e.isDeclarationFile&&!(O.flags&33554432)&&TN(O)&&(Y|=4096),al(O),B?(tn(O),ml(O,16,110991)):Fr(O,16,110991)}function cg(O){!e.isDeclarationFile&&!(O.flags&33554432)&&TN(O)&&(Y|=4096),m&&(O.flowNode=m),al(O);let Se=O.name?O.name.escapedText:"__function";return zs(O,16,Se)}function Bu(O,Se,nt){return!e.isDeclarationFile&&!(O.flags&33554432)&&TN(O)&&(Y|=4096),m&&kF(O)&&(O.flowNode=m),Wv(O)?zs(O,Se,"__computed"):Fr(O,Se,nt)}function Z(O){let Se=Fn(O,nt=>nt.parent&&ZI(nt.parent)&&nt.parent.extendsType===nt);return Se&&Se.parent}function rt(O){if(nm(O.parent)){let Se=QF(O.parent);Se?(R.assertNode(Se,ch),Se.locals??(Se.locals=oa()),Ge(Se.locals,void 0,O,262144,526824)):Fr(O,262144,526824)}else if(O.parent.kind===195){let Se=Z(O.parent);Se?(R.assertNode(Se,ch),Se.locals??(Se.locals=oa()),Ge(Se.locals,void 0,O,262144,526824)):zs(O,262144,he(O))}else Fr(O,262144,526824)}function wt(O){let Se=Gg(O);return Se===1||Se===2&&G0(t)}function zt(O){if(!(m.flags&1))return!1;if(m===ge&&(c2(O)&&O.kind!==242||O.kind===263||O.kind===267&&wt(O))&&(m=q,!t.allowUnreachableCode)){let nt=moe(t)&&!(O.flags&33554432)&&(!Ml(O)||!!(Dy(O.declarationList)&7)||O.declarationList.declarations.some(jt=>!!jt.initializer));RGe(O,(jt,Zn)=>de(nt,jt,Zn,f.Unreachable_code_detected))}return!0}}function RGe(e,t){if(Hi(e)&&dIe(e)&&Ho(e.parent)){let{statements:r}=e.parent,i=dU(r,e);LG(i,dIe,(o,s)=>t(i[o],i[s-1]))}else t(e,e)}function dIe(e){return!Ec(e)&&!DGe(e)&&!gE(e)&&!(Ml(e)&&!(Dy(e)&7)&&e.declarationList.declarations.some(t=>!t.initializer))}function DGe(e){switch(e.kind){case 264:case 265:return!0;case 267:return Gg(e)!==1;case 266:return Qr(e,4096);default:return!1}}function eS(e,t){let r=0,i=IL();for(i.enqueue(t);!i.isEmpty()&&r<100;){if(r++,t=i.dequeue(),hT(t)||$h(t))return!0;if(Fe(t)){let o=I3(e,t.escapedText);if(o&&o.valueDeclaration&&Oi(o.valueDeclaration)&&o.valueDeclaration.initializer){let s=o.valueDeclaration.initializer;i.enqueue(s),Pc(s,!0)&&(i.enqueue(s.left),i.enqueue(s.right))}}}return!1}function mK(e){switch(e.kind){case 231:case 263:case 266:case 210:case 187:case 329:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 312:return 37;case 177:case 178:case 174:if(kF(e))return 173;case 176:case 262:case 173:case 179:case 330:case 324:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return e.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return Yo(e.parent)||Al(e.parent)?0:34}return 0}function I3(e,t){var r,i,o,s;let l=(i=(r=ri(e,ch))==null?void 0:r.locals)==null?void 0:i.get(t);if(l)return l.exportSymbol??l;if(Yi(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(b_(e))return(s=(o=e.symbol)==null?void 0:o.exports)==null?void 0:s.get(t)}var _K,hK,uIe,CGe=bt({"src/compiler/binder.ts"(){"use strict";Zo(),nT(),_K=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(_K||{}),hK=(e=>(e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor",e))(hK||{}),uIe=xGe()}});function Wse(e,t,r,i,o,s,l,d,p,h){return m;function m(y=()=>!0){let E=[],S=[];return{walkType:me=>{try{return A(me),{visitedTypes:cI(E),visitedSymbols:cI(S)}}finally{Vh(E),Vh(S)}},walkSymbol:me=>{try{return ee(me),{visitedTypes:cI(E),visitedSymbols:cI(S)}}finally{Vh(E),Vh(S)}}};function A(me){if(!(!me||E[me.id]||(E[me.id]=me,ee(me.symbol)))){if(me.flags&524288){let q=me,J=q.objectFlags;J&4&&N(me),J&32&&Y(me),J&3&&ce(me),J&24&&z(q)}me.flags&262144&&D(me),me.flags&3145728&&w(me),me.flags&4194304&&j(me),me.flags&8388608&&K(me)}}function N(me){A(me.target),gn(h(me),A)}function D(me){A(d(me))}function w(me){gn(me.types,A)}function j(me){A(me.type)}function K(me){A(me.objectType),A(me.indexType),A(me.constraint)}function Y(me){A(me.typeParameter),A(me.constraintType),A(me.templateType),A(me.modifiersType)}function B(me){let ge=t(me);ge&&A(ge.type),gn(me.typeParameters,A);for(let q of me.parameters)ee(q);A(e(me)),A(r(me))}function ce(me){z(me),gn(me.typeParameters,A),gn(i(me),A),A(me.thisType)}function z(me){let ge=o(me);for(let q of ge.indexInfos)A(q.keyType),A(q.type);for(let q of ge.callSignatures)B(q);for(let q of ge.constructSignatures)B(q);for(let q of ge.properties)ee(q)}function ee(me){if(!me)return!1;let ge=ba(me);if(S[ge])return!1;if(S[ge]=me,!y(me))return!0;let q=s(me);return A(q),me.exports&&me.exports.forEach(ee),gn(me.declarations,J=>{if(J.type&&J.type.kind===186){let re=J.type,pe=l(p(re.exprName));ee(pe)}}),!1}}}var NGe=bt({"src/compiler/symbolWalker.ts"(){"use strict";Zo()}});function yw({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},r,i,o){let s=l();return{relativePreference:o!==void 0?qc(o)?0:1:e==="relative"?0:e==="non-relative"?1:e==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:d=>{let p=d!==i.impliedNodeFormat?l(d):s;if((d??i.impliedNodeFormat)===99)return qR(r,i.fileName)?[3,2]:[2];if(uu(r)===1)return p===2?[2,1]:[1,2];let h=qR(r,i.fileName);switch(p){case 2:return h?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return h?[1,0,3,2]:[1,0,2];case 0:return h?[0,1,3,2]:[0,1,2];default:R.assertNever(p)}}};function l(d){if(o!==void 0){if(W0(o))return 2;if(El(o,"/index"))return 1}return Toe(t,d??i.impliedNodeFormat,r,i)}}function PGe(e,t,r,i,o,s,l={}){let d=pIe(e,t,r,i,o,yw({},e,t,s),{},l);if(d!==s)return d}function x3(e,t,r,i,o,s={}){return pIe(e,t,r,i,o,yw({},e,t),{},s)}function MGe(e,t,r,i,o,s={}){let l=gK(t.fileName,i),d=vIe(l,r,i,o,s);return Wl(d,p=>zse(p,l,t,i,e,o,!0,s.overrideImportMode))}function pIe(e,t,r,i,o,s,l,d={}){let p=gK(r,o),h=vIe(p,i,o,l,d);return Wl(h,m=>zse(m,p,t,o,e,l,void 0,d.overrideImportMode))||hIe(i,p,e,o,d.overrideImportMode||t.impliedNodeFormat,s)}function LGe(e,t,r,i,o={}){return fIe(e,t,r,i,o)[0]}function fIe(e,t,r,i,o={}){var s;let l=SF(e);if(!l)return Xe;let d=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r),p=d?.get(t.path,l.path,i,o);return[p?.moduleSpecifiers,l,p?.modulePaths,d]}function mIe(e,t,r,i,o,s,l={}){return _Ie(e,t,r,i,o,s,l,!1).moduleSpecifiers}function _Ie(e,t,r,i,o,s,l={},d){let p=!1,h=OGe(e,t);if(h)return{moduleSpecifiers:[h],computedWithoutCache:p};let[m,y,E,S]=fIe(e,i,o,s,l);if(m)return{moduleSpecifiers:m,computedWithoutCache:p};if(!y)return{moduleSpecifiers:Xe,computedWithoutCache:p};p=!0,E||(E=bIe(gK(i.fileName,o),y.originalFileName,o));let A=kGe(E,r,i,o,s,l,d);return S?.set(i.path,y.path,s,l,E,A),{moduleSpecifiers:A,computedWithoutCache:p}}function kGe(e,t,r,i,o,s={},l){let d=gK(r.fileName,i),p=yw(o,t,r),h=gn(e,N=>gn(i.getFileIncludeReasons().get(tl(N.path,i.getCurrentDirectory(),d.getCanonicalFileName)),D=>{if(D.kind!==3||D.file!==r.path||r.impliedNodeFormat&&r.impliedNodeFormat!==Xle(r,D.index,t))return;let w=ww(r,D.index).text;return p.relativePreference!==1||!Lp(w)?w:void 0}));if(h)return[h];let m=gt(e,N=>N.isInNodeModules),y,E,S,A;for(let N of e){let D=N.isInNodeModules?zse(N,d,r,i,t,o,void 0,s.overrideImportMode):void 0;if(y=Tn(y,D),D&&N.isRedirect)return y;if(!D){let w=hIe(N.path,d,t,i,s.overrideImportMode||r.impliedNodeFormat,p,N.isRedirect);if(!w)continue;N.isRedirect?S=Tn(S,w):sV(w)?AE(w)?A=Tn(A,w):E=Tn(E,w):(l||!m||N.isInNodeModules)&&(A=Tn(A,w))}}return E?.length?E:S?.length?S:y?.length?y:R.checkDefined(A)}function gK(e,t){e=_o(e,t.getCurrentDirectory());let r=Cd(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=oi(e);return{getCanonicalFileName:r,importingSourceFileName:e,sourceDirectory:i,canonicalSourceDirectory:r(i)}}function hIe(e,t,r,i,o,{getAllowedEndingsInPreferredOrder:s,relativePreference:l},d){let{baseUrl:p,paths:h,rootDirs:m}=r;if(d&&!h)return;let{sourceDirectory:y,canonicalSourceDirectory:E,getCanonicalFileName:S}=t,A=s(o),N=m&&zGe(m,e,y,S,A,r)||vw(g0(_m(y,e,S)),A,r);if(!p&&!h&&!Y6(r)||l===0)return d?void 0:N;let D=_o(s6(r,i)||p,i.getCurrentDirectory()),w=AIe(e,D,S);if(!w)return d?void 0:N;let j=d?void 0:FGe(e,y,r,i,o),K=d||j===void 0?h&&EIe(w,h,A,i,r):void 0;if(d)return K;let Y=j??(K===void 0&&p!==void 0?vw(w,A,r):K);if(!Y)return N;if(l===1&&!Lp(Y))return Y;if(l===3&&!Lp(Y)){let B=r.configFilePath?tl(oi(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),ce=tl(e,B,S),z=ao(E,B),ee=ao(ce,B);if(z&&!ee||!z&&ee)return Y;let me=Fse(i,oi(ce)),ge=Fse(i,y),q=!uR(i);return wGe(me,ge,q)?N:Y}return IIe(Y)||R3(N)e.fileExists($r(r,"package.json"))?r:void 0)}function yIe(e,t,r,i,o){var s;let l=Ly(r),d=r.getCurrentDirectory(),p=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0,h=tl(t,d,l),m=r.redirectTargetsMap.get(h)||Xe,E=[...p?[p]:Xe,t,...m].map(w=>_o(w,d)),S=!oo(E,qN);if(!i){let w=gn(E,j=>!(S&&qN(j))&&o(j,p===j));if(w)return w}let A=(s=r.getSymlinkCache)==null?void 0:s.call(r).getSymlinkedDirectoriesByRealpath(),N=_o(t,d);return A&&hm(oi(N),w=>{let j=A.get(Fc(tl(w,d,l)));if(j)return cV(e,w,l)?!1:gn(E,K=>{if(!cV(K,w,l))return;let Y=_m(w,K,l);for(let B of j){let ce=Iv(B,Y),z=o(ce,K===p);if(S=!0,z)return z}})})||(i?gn(E,w=>S&&qN(w)?void 0:o(w,w===p)):void 0)}function vIe(e,t,r,i,o={}){var s;let l=tl(e.importingSourceFileName,r.getCurrentDirectory(),Ly(r)),d=tl(t,r.getCurrentDirectory(),Ly(r)),p=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r);if(p){let m=p.get(l,d,i,o);if(m?.modulePaths)return m.modulePaths}let h=bIe(e,t,r);return p&&p.setModulePaths(l,d,i,o,h),h}function bIe(e,t,r){let i=new Map,o=!1;yIe(e.importingSourceFileName,t,r,!0,(l,d)=>{let p=AE(l);i.set(l,{path:e.getCanonicalFileName(l),isRedirect:d,isInNodeModules:p}),o=o||p});let s=[];for(let l=e.canonicalSourceDirectory;i.size!==0;){let d=Fc(l),p;i.forEach(({path:m,isRedirect:y,isInNodeModules:E},S)=>{ao(m,d)&&((p||(p=[])).push({path:S,isRedirect:y,isInNodeModules:E}),i.delete(S))}),p&&(p.length>1&&p.sort(gIe),s.push(...p));let h=oi(l);if(h===l)break;l=h}if(i.size){let l=Oo(i.entries(),([d,{isRedirect:p,isInNodeModules:h}])=>({path:d,isRedirect:p,isInNodeModules:h}));l.length>1&&l.sort(gIe),s.push(...l)}return s}function OGe(e,t){var r;let i=(r=e.declarations)==null?void 0:r.find(l=>qV(l)&&(!A0(l)||!qc(Xf(l.name))));if(i)return i.name.text;let s=to(e.declarations,l=>{var d,p,h,m;if(!ql(l))return;let y=N(l);if(!((d=y?.parent)!=null&&d.parent&&N_(y.parent)&&Pd(y.parent.parent)&&Yi(y.parent.parent.parent)))return;let E=(m=(h=(p=y.parent.parent.symbol.exports)==null?void 0:p.get("export="))==null?void 0:h.valueDeclaration)==null?void 0:m.expression;if(!E)return;let S=t.getSymbolAtLocation(E);if(!S)return;if((S?.flags&2097152?t.getAliasedSymbol(S):S)===l.symbol)return y.parent.parent;function N(D){for(;D.flags&8;)D=D.parent;return D}})[0];if(s)return s.name.text}function EIe(e,t,r,i,o){for(let l in t)for(let d of t[l]){let p=fa(d),h=p.indexOf("*"),m=r.map(y=>({ending:y,value:vw(e,[y],o)}));if(Og(p)&&m.push({ending:void 0,value:e}),h!==-1){let y=p.substring(0,h),E=p.substring(h+1);for(let{ending:S,value:A}of m)if(A.length>=y.length+E.length&&ao(A,y)&&El(A,E)&&s({ending:S,value:A})){let N=A.substring(y.length,A.length-E.length);if(!Lp(N))return zI(l,N)}}else if(gt(m,y=>y.ending!==0&&p===y.value)||gt(m,y=>y.ending===0&&p===y.value&&s(y)))return l}function s({ending:l,value:d}){return l!==0||d===vw(e,[l],o,i)}}function D3(e,t,r,i,o,s,l,d,p){if(typeof s=="string"){let h=!uR(t),m=()=>t.getCommonSourceDirectory(),y=p&&JK(r,e,h,m),E=p&&KK(r,e,h,m),S=_o($r(i,s),void 0),A=WI(r)?Su(r)+Gse(r,e):void 0;switch(d){case 0:if(A&&xg(A,S,h)===0||xg(r,S,h)===0||y&&xg(y,S,h)===0||E&&xg(E,S,h)===0)return{moduleFileToTry:o};break;case 1:if(A&&mm(S,A,h)){let j=_m(S,A,!1);return{moduleFileToTry:_o($r($r(o,s),j),void 0)}}if(mm(S,r,h)){let j=_m(S,r,!1);return{moduleFileToTry:_o($r($r(o,s),j),void 0)}}if(y&&mm(S,y,h)){let j=_m(S,y,!1);return{moduleFileToTry:$r(o,j)}}if(E&&mm(S,E,h)){let j=_m(S,E,!1);return{moduleFileToTry:$r(o,j)}}break;case 2:let N=S.indexOf("*"),D=S.slice(0,N),w=S.slice(N+1);if(A&&ao(A,D,h)&&El(A,w,h)){let j=A.slice(D.length,A.length-w.length);return{moduleFileToTry:zI(o,j)}}if(ao(r,D,h)&&El(r,w,h)){let j=r.slice(D.length,r.length-w.length);return{moduleFileToTry:zI(o,j)}}if(y&&ao(y,D,h)&&El(y,w,h)){let j=y.slice(D.length,y.length-w.length);return{moduleFileToTry:zI(o,j)}}if(E&&ao(E,D,h)&&El(E,w,h)){let j=E.slice(D.length,E.length-w.length);return{moduleFileToTry:zI(o,j)}}break}}else{if(Array.isArray(s))return gn(s,h=>D3(e,t,r,i,o,h,l,d,p));if(typeof s=="object"&&s!==null){for(let h of jh(s))if(h==="default"||l.indexOf(h)>=0||hw(l,h)){let m=s[h],y=D3(e,t,r,i,o,m,l,d,p);if(y)return y}}}}function WGe(e,t,r,i,o,s,l){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&T3(s)?gn(jh(s),d=>{let p=_o($r(o,d),void 0),h=El(d,"/")?1:d.includes("*")?2:0;return D3(e,t,r,i,p,s[d],l,h,!1)}):D3(e,t,r,i,o,s,l,0,!1)}function FGe(e,t,r,i,o){var s,l,d;if(!i.readFile||!Y6(r))return;let p=Fse(i,t);if(!p)return;let h=$r(p,"package.json"),m=(l=(s=i.getPackageJsonInfoCache)==null?void 0:s.call(i))==null?void 0:l.getPackageJsonInfo(h);if(Tse(m)||!i.fileExists(h))return;let y=m?.contents.packageJsonContent||h6(i.readFile(h)),E=y?.imports;if(!E)return;let S=Qv(r,o);return(d=gn(jh(E),A=>{if(!ao(A,"#")||A==="#"||ao(A,"#/"))return;let N=El(A,"/")?1:A.includes("*")?2:0;return D3(r,i,e,p,A,E[A],S,N,!0)}))==null?void 0:d.moduleFileToTry}function zGe(e,t,r,i,o,s){let l=SIe(t,e,i);if(l===void 0)return;let d=SIe(r,e,i),p=va(d,m=>mn(l,y=>g0(_m(m,y,i)))),h=jG(p,lk);if(h)return vw(h,o,s)}function zse({path:e,isRedirect:t},{getCanonicalFileName:r,canonicalSourceDirectory:i},o,s,l,d,p,h){if(!s.fileExists||!s.readFile)return;let m=G6(e);if(!m)return;let E=yw(d,l,o).getAllowedEndingsInPreferredOrder(),S=e,A=!1;if(!p){let Y=m.packageRootIndex,B;for(;;){let{moduleFileToTry:ce,packageRootPath:z,blockedByExports:ee,verbatimFromExports:me}=K(Y);if(uu(l)!==1){if(ee)return;if(me)return ce}if(z){S=z,A=!0;break}if(B||(B=ce),Y=e.indexOf(nl,Y+1),Y===-1){S=vw(B,E,l,s);break}}}if(t&&!A)return;let N=s.getGlobalTypingsCacheLocation&&s.getGlobalTypingsCacheLocation(),D=r(S.substring(0,m.topLevelNodeModulesIndex));if(!(ao(i,D)||N&&ao(r(N),D)))return;let w=S.substring(m.topLevelPackageNameIndex+1),j=CP(w);return uu(l)===1&&j===w?void 0:j;function K(Y){var B,ce;let z=e.substring(0,Y),ee=$r(z,"package.json"),me=e,ge=!1,q=(ce=(B=s.getPackageJsonInfoCache)==null?void 0:B.call(s))==null?void 0:ce.getPackageJsonInfo(ee);if(v3(q)||q===void 0&&s.fileExists(ee)){let J=q?.contents.packageJsonContent||h6(s.readFile(ee)),re=h||o.impliedNodeFormat;if(X6(l)){let fe=z.substring(m.topLevelPackageNameIndex+1),ne=CP(fe),he=Qv(l,re),Ce=J?.exports?WGe(l,s,e,z,ne,J.exports,he):void 0;if(Ce)return{...Ce,verbatimFromExports:!0};if(J?.exports)return{moduleFileToTry:e,blockedByExports:!0}}let pe=J?.typesVersions?g3(J.typesVersions):void 0;if(pe){let fe=e.slice(z.length+1),ne=EIe(fe,pe.paths,E,s,l);ne===void 0?ge=!0:me=$r(z,ne)}let xe=J?.typings||J?.types||J?.main||"index.js";if(Co(xe)&&!(ge&&cU(w6(pe.paths),xe))){let fe=tl(xe,z,r),ne=r(me);if(Su(fe)===Su(ne))return{packageRootPath:z,moduleFileToTry:me};if(J?.type!=="module"&&!bc(ne,bk)&&ao(ne,fe)&&oi(ne)===Yb(fe)&&Su(nc(ne))==="index")return{packageRootPath:z,moduleFileToTry:me}}}else{let J=r(me.substring(m.packageRootIndex+1));if(J==="index.d.ts"||J==="index.js"||J==="index.ts"||J==="index.tsx")return{moduleFileToTry:me,packageRootPath:z}}return{moduleFileToTry:me}}}function BGe(e,t){if(!e.fileExists)return;let r=pm(GN({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(let i of r){let o=t+i;if(e.fileExists(o))return o}}function SIe(e,t,r){return to(t,i=>{let o=AIe(e,i,r);return o!==void 0&&IIe(o)?void 0:o})}function vw(e,t,r,i){if(bc(e,[".json",".mjs",".cjs"]))return e;let o=Su(e);if(e===o)return e;let s=t.indexOf(2),l=t.indexOf(3);if(bc(e,[".mts",".cts"])&&l!==-1&&lh===0||h===1);return p!==-1&&p(e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative",e))(Vse||{})}}),tS={};Ra(tS,{RelativePreference:()=>Vse,countPathComponents:()=>R3,forEachFileNameOfModule:()=>yIe,getModuleSpecifier:()=>x3,getModuleSpecifierPreferences:()=>yw,getModuleSpecifiers:()=>mIe,getModuleSpecifiersWithCacheInfo:()=>_Ie,getNodeModulesPackageName:()=>MGe,tryGetJSExtensionForFile:()=>Gse,tryGetModuleSpecifiersFromCache:()=>LGe,tryGetRealFileNameForNonJsDeclarationFileName:()=>TIe,updateModuleSpecifier:()=>PGe});var Use=bt({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){"use strict";jse()}});function GGe(){this.flags=0}function is(e){return e.id||(e.id=Jse,Jse++),e.id}function ba(e){return e.id||(e.id=Kse,Kse++),e.id}function yK(e,t){let r=Gg(e);return r===1||t&&r===2}function Hse(e){var t=[],r=n=>{t.push(n)},i,o=new Set,s,l,d=od.getSymbolConstructor(),p=od.getTypeConstructor(),h=od.getSignatureConstructor(),m=0,y=0,E=0,S=0,A=0,N=0,D,w,j=!1,K=oa(),Y=[1],B=e.getCompilerOptions(),ce=rs(B),z=Md(B),ee=!!B.experimentalDecorators,me=nP(B),ge=hoe(B),q=RT(B),J=du(B,"strictNullChecks"),re=du(B,"strictFunctionTypes"),pe=du(B,"strictBindCallApply"),xe=du(B,"strictPropertyInitialization"),fe=du(B,"noImplicitAny"),ne=du(B,"noImplicitThis"),he=du(B,"useUnknownInCatchVariables"),Ce=!!B.keyofStringsOnly,Ge=Ce?1:0,ve=B.suppressExcessPropertyErrors?0:8192,Ie=B.exactOptionalPropertyTypes,De=vft(),Le=Qht(),Et=U_(),be=oa(),ze=Ka(4,"undefined");ze.declarations=[];var tt=Ka(1536,"globalThis",8);tt.exports=be,tt.declarations=[],be.set(tt.escapedName,tt);var Wt=Ka(4,"arguments"),_t=Ka(4,"require"),Je=B.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",ft=!B.verbatimModuleSyntax||!!B.importsNotUsedAsValues,Zt,en,Dn=0,Kn,pn=0;let Yt={getNodeCount:()=>nu(e.getSourceFiles(),(n,a)=>n+a.nodeCount,0),getIdentifierCount:()=>nu(e.getSourceFiles(),(n,a)=>n+a.identifierCount,0),getSymbolCount:()=>nu(e.getSourceFiles(),(n,a)=>n+a.symbolCount,y),getTypeCount:()=>m,getInstantiationCount:()=>E,getRelationCacheSizes:()=>({assignable:Vu.size,identity:np.size,subtype:xh.size,strictSubtype:Mf.size}),isUndefinedSymbol:n=>n===ze,isArgumentsSymbol:n=>n===Wt,isUnknownSymbol:n=>n===lt,getMergedSymbol:ts,getDiagnostics:J6e,getGlobalDiagnostics:mht,getRecursionIdentity:UZ,getUnmatchedProperties:Eye,getTypeOfSymbolAtLocation:(n,a)=>{let c=Ro(a);return c?sdt(n,c):pt},getTypeOfSymbol:sr,getSymbolsOfParameterPropertyDeclaration:(n,a)=>{let c=Ro(n,To);return c===void 0?R.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(R.assert(dp(c,c.parent)),TM(c,pl(a)))},getDeclaredTypeOfSymbol:Ys,getPropertiesOfType:_s,getPropertyOfType:(n,a)=>_a(n,pl(a)),getPrivateIdentifierPropertyOfType:(n,a,c)=>{let u=Ro(c);if(!u)return;let _=pl(a),g=Eee(_,u);return g?ave(n,g):void 0},getTypeOfPropertyOfType:(n,a)=>Ue(n,pl(a)),getIndexInfoOfType:(n,a)=>bg(n,a===0?Ne:It),getIndexInfosOfType:hu,getIndexInfosOfIndexSymbol:_ge,getSignaturesOfType:Ko,getIndexTypeOfType:(n,a)=>n0(n,a===0?Ne:It),getIndexType:n=>J_(n),getBaseTypes:Dp,getBaseTypeOfLiteralType:fy,getWidenedType:Hp,getTypeFromTypeNode:n=>{let a=Ro(n,ji);return a?Ti(a):pt},getParameterType:f_,getParameterIdentifierInfoAtPosition:Wpt,getPromisedTypeOfPromise:H8,getAwaitedType:n=>eI(n),getReturnTypeOfSignature:us,isNullableType:F5,getNullableType:S5,getNonNullableType:my,getNonOptionalType:qZ,getTypeArguments:Us,typeToTypeNode:Et.typeToTypeNode,indexInfoToIndexSignatureDeclaration:Et.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Et.signatureToSignatureDeclaration,symbolToEntityName:Et.symbolToEntityName,symbolToExpression:Et.symbolToExpression,symbolToNode:Et.symbolToNode,symbolToTypeParameterDeclarations:Et.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:Et.symbolToParameterDeclaration,typeParameterToDeclaration:Et.typeParameterToDeclaration,getSymbolsInScope:(n,a)=>{let c=Ro(n);return c?_ht(c,a):[]},getSymbolAtLocation:n=>{let a=Ro(n);return a?zm(a,!0):void 0},getIndexInfosAtLocation:n=>{let a=Ro(n);return a?Tht(a):void 0},getShorthandAssignmentValueSymbol:n=>{let a=Ro(n);return a?Aht(a):void 0},getExportSpecifierLocalTargetSymbol:n=>{let a=Ro(n,Hd);return a?Iht(a):void 0},getExportSymbolOfSymbol(n){return ts(n.exportSymbol||n)},getTypeAtLocation:n=>{let a=Ro(n);return a?fx(a):pt},getTypeOfAssignmentPattern:n=>{let a=Ro(n,lN);return a&&$ee(a)||pt},getPropertySymbolOfDestructuringAssignment:n=>{let a=Ro(n,Fe);return a?xht(a):void 0},signatureToString:(n,a,c,u)=>Ph(n,Ro(a),c,u),typeToString:(n,a,c)=>Vn(n,Ro(a),c),symbolToString:(n,a,c,u)=>Si(n,Ro(a),c,u),typePredicateToString:(n,a,c)=>Mh(n,Ro(a),c),writeSignature:(n,a,c,u,_)=>Ph(n,Ro(a),c,u,_),writeType:(n,a,c,u)=>Vn(n,Ro(a),c,u),writeSymbol:(n,a,c,u,_)=>Si(n,Ro(a),c,u,_),writeTypePredicate:(n,a,c,u)=>Mh(n,Ro(a),c,u),getAugmentedPropertiesOfType:sbe,getRootSymbols:t4e,getSymbolOfExpando:Nee,getContextualType:(n,a)=>{let c=Ro(n,ht);if(c)return a&4?uo(c,()=>Ku(c,a)):Ku(c,a)},getContextualTypeForObjectLiteralElement:n=>{let a=Ro(n,Ng);return a?Kye(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,a)=>{let c=Ro(n,S0);return c&&Hye(c,a)},getContextualTypeForJsxAttribute:n=>{let a=Ro(n,fF);return a&&_We(a,void 0)},isContextSensitive:zf,getTypeOfPropertyOfContextualType:u0,getFullyQualifiedName:Vp,getResolvedSignature:(n,a,c)=>Li(n,a,c,0),getCandidateSignaturesForStringLiteralCompletions:qt,getResolvedSignatureForSignatureHelp:(n,a,c)=>hi(n,()=>Li(n,a,c,16)),getExpandedParameters:hwe,hasEffectiveRestParameter:Bh,containsArgumentsReference:pge,getConstantValue:n=>{let a=Ro(n,a4e);return a?lbe(a):void 0},isValidPropertyAccess:(n,a)=>{let c=Ro(n,yre);return!!c&&Kut(c,pl(a))},isValidPropertyAccessForCompletions:(n,a,c)=>{let u=Ro(n,wr);return!!u&&HWe(u,a,c)},getSignatureFromDeclaration:n=>{let a=Ro(n,Yo);return a?lm(a):void 0},isImplementationOfOverload:n=>{let a=Ro(n,Yo);return a?i4e(a):void 0},getImmediateAliasedSymbol:$ye,getAliasedSymbol:Oc,getEmitResolver:ev,getExportsOfModule:AA,getExportsAndPropertiesOfModule:KD,forEachExportAndPropertyOfModule:JD,getSymbolWalker:Wse(Cat,Ff,us,Dp,c_,sr,Wm,Nu,Fp,Us),getAmbientModules:Ggt,getJsxIntrinsicTagNamesAt:Iut,isOptionalParameter:n=>{let a=Ro(n,To);return a?h8(a):!1},tryGetMemberInModuleExports:(n,a)=>IA(pl(n),a),tryGetMemberInModuleExportsAndProperties:(n,a)=>qD(pl(n),a),tryFindAmbientModule:n=>hZ(n,!0),tryFindAmbientModuleWithoutAugmentations:n=>hZ(n,!1),getApparentType:Pu,getUnionType:ti,isTypeAssignableTo:ga,createAnonymousType:Cs,createSignature:vg,createSymbol:Ka,createIndexInfo:Wh,getAnyType:()=>G,getStringType:()=>Ne,getStringLiteralType:Hu,getNumberType:()=>It,getNumberLiteralType:u_,getBigIntType:()=>Ct,createPromiseType:X5,createArrayType:zd,getElementTypeOfArrayType:E5,getBooleanType:()=>gi,getFalseType:n=>n?Kt:En,getTrueType:n=>n?wn:Bn,getVoidType:()=>er,getUndefinedType:()=>Me,getNullType:()=>ue,getESSymbolType:()=>xi,getNeverType:()=>Fr,getOptionalType:()=>H,getPromiseType:()=>o5(!1),getPromiseLikeType:()=>rOe(!1),getAsyncIterableType:()=>{let n=xZ(!1);if(n!==Mo)return n},isSymbolAccessible:wi,isArrayType:Gf,isTupleType:Oa,isArrayLikeType:pv,isEmptyAnonymousObjectType:zh,isTypeInvalidDueToUnionDiscriminant:dat,getExactOptionalProperties:Wlt,getAllPossiblePropertiesOfTypes:uat,getSuggestedSymbolForNonexistentProperty:cve,getSuggestionForNonexistentProperty:dve,getSuggestedSymbolForNonexistentJSXAttribute:jWe,getSuggestedSymbolForNonexistentSymbol:(n,a,c)=>uve(n,pl(a),c),getSuggestionForNonexistentSymbol:(n,a,c)=>Vut(n,pl(a),c),getSuggestedSymbolForNonexistentModule:Tee,getSuggestionForNonexistentExport:jut,getSuggestedSymbolForNonexistentClassMember:VWe,getBaseConstraintOfType:Fd,getDefaultFromTypeParameter:n=>n&&n.flags&262144?OA(n):void 0,resolveName(n,a,c,u){return hl(a,pl(n),c,void 0,void 0,!1,u)},getJsxNamespace:n=>Vi(FE(n)),getJsxFragmentFactory:n=>{let a=dbe(n);return a&&Vi(Fp(a).escapedText)},getAccessibleSymbolChain:vb,getTypePredicateOfSignature:Ff,resolveExternalModuleName:n=>{let a=Ro(n,ht);return a&&_u(a,a,!0)},resolveExternalModuleSymbol:Ip,tryGetThisTypeAt:(n,a,c)=>{let u=Ro(n);return u&&Gye(u,a,c)},getTypeArgumentConstraint:n=>{let a=Ro(n,ji);return a&&$ft(a)},getSuggestionDiagnostics:(n,a)=>{let c=Ro(n,Yi)||R.fail("Could not determine parsed source file.");if(UN(c,B,e))return Xe;let u;try{return i=a,obe(c),R.assert(!!(Zr(c).flags&1)),u=Hr(u,sA.getDiagnostics(c.fileName)),c6e(K6e(c),(_,g,T)=>{!Gx(_)&&!H6e(g,!!(_.flags&33554432))&&(u||(u=[])).push({...T,category:2})}),u||Xe}finally{i=void 0}},runWithCancellationToken:(n,a)=>{try{return i=n,a(Yt)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Nr,isDeclarationVisible:o_,isPropertyAccessible:fve,getTypeOnlyAliasDeclaration:Lf,getMemberOverrideModifierStatus:C_t,isTypeParameterPossiblyReferenced:p5,typeHasCallOrConstructSignatures:Qee};function qt(n,a){let c=new Set,u=[];uo(a,()=>Li(n,u,void 0,0));for(let _ of u)c.add(_);u.length=0,hi(a,()=>Li(n,u,void 0,0));for(let _ of u)c.add(_);return Oo(c)}function hi(n,a){if(n=Fn(n,LV),n){let c=[],u=[];for(;n;){let g=Zr(n);if(c.push([g,g.resolvedSignature]),g.resolvedSignature=void 0,z0(n)){let T=qi(Sr(n)),M=T.type;u.push([T,M]),T.type=void 0}n=Fn(n.parent,LV)}let _=a();for(let[g,T]of c)g.resolvedSignature=T;for(let[g,T]of u)g.type=T;return _}return a()}function uo(n,a){let c=Fn(n,S0);if(c){let _=n;do Zr(_).skipDirectInference=!0,_=_.parent;while(_&&_!==c)}j=!0;let u=hi(n,a);if(j=!1,c){let _=n;do Zr(_).skipDirectInference=void 0,_=_.parent;while(_&&_!==c)}return u}function Li(n,a,c,u){let _=Ro(n,S0);Zt=c;let g=_?yC(_,a,u):void 0;return Zt=void 0,g}var Eo=new Map,Qn=new Map,Ur=new Map,Er=new Map,on=new Map,Ye=new Map,Ot=new Map,In=new Map,si=new Map,yi=new Map,$i=new Map,Ao=new Map,da=new Map,Ba=new Map,vn=new Map,kn=[],Be=new Map,ct=new Set,lt=Ka(4,"unknown"),Dt=Ka(0,"__resolving__"),se=new Map,ke=new Map,st=new Set,G=sc(1,"any"),et=sc(1,"any",262144,"auto"),Tt=sc(1,"any",void 0,"wildcard"),He=sc(1,"any",void 0,"blocked string"),pt=sc(1,"error"),Ft=sc(1,"unresolved"),hn=sc(1,"any",65536,"non-inferrable"),dn=sc(1,"intrinsic"),un=sc(2,"unknown"),U=sc(2,"unknown",void 0,"non-null"),Me=sc(32768,"undefined"),Pt=J?Me:sc(32768,"undefined",65536,"widening"),k=sc(32768,"undefined",void 0,"missing"),ie=Ie?k:Me,H=sc(32768,"undefined",void 0,"optional"),ue=sc(65536,"null"),We=J?ue:sc(65536,"null",65536,"widening"),Ne=sc(4,"string"),It=sc(8,"number"),Ct=sc(64,"bigint"),Kt=sc(512,"false",void 0,"fresh"),En=sc(512,"false"),wn=sc(512,"true",void 0,"fresh"),Bn=sc(512,"true");wn.regularType=Bn,wn.freshType=wn,Bn.regularType=Bn,Bn.freshType=wn,Kt.regularType=En,Kt.freshType=Kt,En.regularType=En,En.freshType=Kt;var gi=ti([En,Bn]),xi=sc(4096,"symbol"),er=sc(16384,"void"),Fr=sc(131072,"never"),ho=sc(131072,"never",262144,"silent"),Pi=sc(131072,"never",void 0,"implicit"),Ri=sc(131072,"never",void 0,"unreachable"),Kr=sc(67108864,"object"),Io=ti([Ne,It]),xn=ti([Ne,It,xi]),ks=Ce?Ne:xn,$l=ti([It,Ct]),Po=ti([Ne,It,gi,Ct,ue,Me]),ls=FA(["",""],[It]),zs=u5(n=>n.flags&262144?dlt(n):n,()=>"(restrictive mapper)"),ml=u5(n=>n.flags&262144?Tt:n,()=>"(permissive mapper)"),sd=sc(131072,"never",void 0,"unique literal"),mo=u5(n=>n.flags&262144?sd:n,()=>"(unique literal mapper)"),sa,ld=u5(n=>(sa&&(n===Ep||n===Ds||n===Ac)&&sa(!0),n),()=>"(unmeasurable reporter)"),Es=u5(n=>(sa&&(n===Ep||n===Ds||n===Ac)&&sa(!1),n),()=>"(unreliable reporter)"),Na=Cs(void 0,K,Xe,Xe,Xe),ul=Cs(void 0,K,Xe,Xe,Xe);ul.objectFlags|=2048;var Nf=Ka(2048,"__type");Nf.members=oa();var ac=Cs(Nf,K,Xe,Xe,Xe),xl=Cs(void 0,K,Xe,Xe,Xe),al=J?ti([Me,ue,xl]):un,Mo=Cs(void 0,K,Xe,Xe,Xe);Mo.instantiations=new Map;var tn=Cs(void 0,K,Xe,Xe,Xe);tn.objectFlags|=262144;var Bs=Cs(void 0,K,Xe,Xe,Xe),ed=Cs(void 0,K,Xe,Xe,Xe),cd=Cs(void 0,K,Xe,Xe,Xe),Ep=_f(),Ds=_f();Ds.constraint=Ep;var Ac=_f(),de=_f(),$=_f();$.constraint=de;var Pe=r5(1,"<>",0,G),yt=vg(void 0,void 0,void 0,Xe,G,void 0,0,0),cn=vg(void 0,void 0,void 0,Xe,pt,void 0,0,0),vr=vg(void 0,void 0,void 0,Xe,G,void 0,0,0),fr=vg(void 0,void 0,void 0,Xe,ho,void 0,0,0),zr=Wh(It,Ne,!0),Di=new Map,Cr={get yieldType(){return R.fail("Not supported")},get returnType(){return R.fail("Not supported")},get nextType(){return R.fail("Not supported")}},Jo=_v(G,G,G),vl=_v(G,G,un),jc=_v(Fr,G,Me),Gs={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:Uat,getGlobalIterableType:xZ,getGlobalIterableIteratorType:Hat,getGlobalGeneratorType:Kat,resolveIterationType:(n,a)=>eI(n,a,f.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:f.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:f.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:f.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},hc={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:Jat,getGlobalIterableType:Rge,getGlobalIterableIteratorType:qat,getGlobalGeneratorType:Xat,resolveIterationType:(n,a)=>n,mustHaveANextMethodDiagnostic:f.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:f.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:f.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},vs,Uc=new Map,tp=[],wc,im,mu,Re,Lt,Un,go,qo,Qo,Ql,gc,sl,_l,Gl,Zl,Hc,cf,zu,Ru,Pf,z_,Ih,Ug,Wd,Hg,Sp,cg,Bu,Z,rt,wt,zt,O,Se,nt,jt,Zn,ii,Yr,no,ka,wa,wl,dd,Ic,Tp,Gu,ab,cs,Dm,Cm,Ui,Kg,Qy,Nm,fS,mS,df=new Map,B_=0,uf=0,Jg=0,we=!1,qe=0,Mt,Bt,_n,Jn=[],fn=[],qn=[],mi=0,or=[],ni=[],dr=0,Xo=Hu(""),Ha=u_(0),Yd=PZ({negative:!1,base10Value:"0"}),ud=[],qg=[],kE=[],w1=0,wE=!1,LD=0,kD=10,wD=[],oA=[],_S=[],O1=[],OD=[],W1=[],F1=[],z1=[],B1=[],aA=[],G1=[],hS=[],gS=[],sb=[],lb=[],dg=[],OE=[],Qa=lR(),sA=lR(),WD=Nh(),WE,Xg,xh=new Map,Mf=new Map,Vu=new Map,Ap=new Map,np=new Map,Zy=new Map,lA=oa();lA.set(ze.escapedName,ze);var FD=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",B.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return Zht(),Yt;function V1(n){return n?vn.get(n):void 0}function cb(n,a){return n&&vn.set(n,a),a}function FE(n){if(n){let a=Gn(n);if(a)if(i1(n)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;let c=a.pragmas.get("jsxfrag");if(c){let _=So(c)?c[0]:c;if(a.localJsxFragmentFactory=l1(_.arguments.factory,ce),Qe(a.localJsxFragmentFactory,yc,Xu),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=Fp(a.localJsxFragmentFactory).escapedText}let u=dbe(n);if(u)return a.localJsxFragmentFactory=u,a.localJsxFragmentNamespace=Fp(u).escapedText}else{let c=j1(a);if(c)return a.localJsxNamespace=c}}return WE||(WE="React",B.jsxFactory?(Xg=l1(B.jsxFactory,ce),Qe(Xg,yc),Xg&&(WE=Fp(Xg).escapedText)):B.reactNamespace&&(WE=pl(B.reactNamespace))),Xg||(Xg=L.createQualifiedName(L.createIdentifier(Vi(WE)),"createElement")),WE}function j1(n){if(n.localJsxNamespace)return n.localJsxNamespace;let a=n.pragmas.get("jsx");if(a){let c=So(a)?a[0]:a;if(n.localJsxFactory=l1(c.arguments.factory,ce),Qe(n.localJsxFactory,yc,Xu),n.localJsxFactory)return n.localJsxNamespace=Fp(n.localJsxFactory).escapedText}}function yc(n){return mh(n,-1,-1),Sn(n,yc,void 0)}function ev(n,a){return J6e(n,a),Le}function U1(n,a,...c){let u=n?Pr(n,a,...c):jl(a,...c),_=Qa.lookup(u);return _||(Qa.add(u),u)}function e_(n,a,c,...u){let _=Ve(a,c,...u);return _.skippedOn=n,_}function cA(n,a,...c){return n?Pr(n,a,...c):jl(a,...c)}function Ve(n,a,...c){let u=cA(n,a,...c);return Qa.add(u),u}function t_(n,a){n?Qa.add(a):sA.add({...a,category:2})}function pd(n,a,c,...u){if(a.pos<0||a.end<0){if(!n)return;let _=Gn(a);t_(n,"message"in c?Yc(_,0,0,c,...u):rj(_,c));return}t_(n,"message"in c?Pr(a,c,...u):Pg(Gn(a),a,c))}function zE(n,a,c,...u){let _=Ve(n,c,...u);if(a){let g=Pr(n,f.Did_you_forget_to_use_await);Ma(_,g)}return _}function H1(n,a){let c=Array.isArray(n)?gn(n,vV):vV(n);return c&&Ma(a,Pr(c,f.The_declaration_was_marked_as_deprecated_here)),sA.add(a),a}function db(n){let a=Du(n);return a&&Nn(n.declarations)>1?a.flags&64?gt(n.declarations,tv):oo(n.declarations,tv):!!n.valueDeclaration&&tv(n.valueDeclaration)||Nn(n.declarations)&&oo(n.declarations,tv)}function tv(n){return!!(JS(n)&536870912)}function nv(n,a,c){let u=Pr(n,f._0_is_deprecated,c);return H1(a,u)}function SM(n,a,c,u){let _=c?Pr(n,f.The_signature_0_of_1_is_deprecated,u,c):Pr(n,f._0_is_deprecated,u);return H1(a,_)}function Ka(n,a,c){y++;let u=new d(n|33554432,a);return u.links=new Yse,u.links.checkFlags=c||0,u}function n_(n,a){let c=Ka(1,n);return c.links.type=a,c}function dA(n,a){let c=Ka(4,n);return c.links.type=a,c}function uA(n){let a=0;return n&2&&(a|=111551),n&1&&(a|=111550),n&4&&(a|=0),n&8&&(a|=900095),n&16&&(a|=110991),n&32&&(a|=899503),n&64&&(a|=788872),n&256&&(a|=899327),n&128&&(a|=899967),n&512&&(a|=110735),n&8192&&(a|=103359),n&32768&&(a|=46015),n&65536&&(a|=78783),n&262144&&(a|=526824),n&524288&&(a|=788968),n&2097152&&(a|=2097152),a}function BE(n,a){a.mergeId||(a.mergeId=qse,qse++),wD[a.mergeId]=n}function pA(n){let a=Ka(n.flags,n.escapedName);return a.declarations=n.declarations?n.declarations.slice():[],a.parent=n.parent,n.valueDeclaration&&(a.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(a.constEnumOnlyModule=!0),n.members&&(a.members=new Map(n.members)),n.exports&&(a.exports=new Map(n.exports)),BE(a,n),a}function om(n,a,c=!1){if(!(n.flags&uA(a.flags))||(a.flags|n.flags)&67108864){if(a===n)return n;if(!(n.flags&33554432)){let _=Vl(n);if(_===lt)return a;n=pA(_)}a.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!a.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=a.flags,a.valueDeclaration&&O2(n,a.valueDeclaration),Hr(n.declarations,a.declarations),a.members&&(n.members||(n.members=oa()),r_(n.members,a.members,c)),a.exports&&(n.exports||(n.exports=oa()),r_(n.exports,a.exports,c)),c||BE(n,a)}else if(n.flags&1024)n!==tt&&Ve(a.declarations&&No(a.declarations[0]),f.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Si(n));else{let _=!!(n.flags&384||a.flags&384),g=!!(n.flags&2||a.flags&2),T=_?f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:g?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,M=a.declarations&&Gn(a.declarations[0]),W=n.declarations&&Gn(n.declarations[0]),V=f2(M,B.checkJs),te=f2(W,B.checkJs),ye=Si(a);if(M&&W&&vs&&!_&&M!==W){let _e=xg(M.path,W.path)===-1?M:W,je=_e===M?W:M,mt=FC(vs,`${_e.path}|${je.path}`,()=>({firstFile:_e,secondFile:je,conflictingSymbols:new Map})),At=FC(mt.conflictingSymbols,ye,()=>({isBlockScoped:g,firstFileLocations:[],secondFileLocations:[]}));V||u(At.firstFileLocations,a),te||u(At.secondFileLocations,n)}else V||am(a,T,ye,n),te||am(n,T,ye,a)}return n;function u(_,g){if(g.declarations)for(let T of g.declarations)yf(_,T)}}function am(n,a,c,u){gn(n.declarations,_=>{Yg(_,a,c,u.declarations)})}function Yg(n,a,c,u){let _=(lE(n,!1)?fj(n):No(n))||n,g=U1(_,a,c);for(let T of u||Xe){let M=(lE(T,!1)?fj(T):No(T))||T;if(M===_)continue;g.relatedInformation=g.relatedInformation||[];let W=Pr(M,f._0_was_also_declared_here,c),V=Pr(M,f.and_here);Nn(g.relatedInformation)>=5||gt(g.relatedInformation,te=>zN(te,V)===0||zN(te,W)===0)||Ma(g,Nn(g.relatedInformation)?V:W)}}function K1(n,a){if(!n?.size)return a;if(!a?.size)return n;let c=oa();return r_(c,n),r_(c,a),c}function r_(n,a,c=!1){a.forEach((u,_)=>{let g=n.get(_);n.set(_,g?om(g,u,c):ts(u))})}function zD(n){var a,c,u;let _=n.parent;if(((a=_.symbol.declarations)==null?void 0:a[0])!==_){R.assert(_.symbol.declarations.length>1);return}if(E_(_))r_(be,_.symbol.exports);else{let g=n.parent.parent.flags&33554432?void 0:f.Invalid_module_name_in_augmentation_module_0_cannot_be_found,T=ey(n,n,g,!0);if(!T)return;if(T=Ip(T),T.flags&1920)if(gt(im,M=>T===M.symbol)){let M=om(_.symbol,T,!0);mu||(mu=new Map),mu.set(n.text,M)}else{if((c=T.exports)!=null&&c.get("__export")&&((u=_.symbol.exports)!=null&&u.size)){let M=Xhe(T,"resolvedExports");for(let[W,V]of Oo(_.symbol.exports.entries()))M.has(W)&&!T.exports.has(W)&&om(M.get(W),V)}om(T,_.symbol)}else Ve(n,f.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function yS(n,a,c){a.forEach((_,g)=>{let T=n.get(g);T?gn(T.declarations,u(Vi(g),c)):n.set(g,_)});function u(_,g){return T=>Qa.add(Pr(T,g,_))}}function qi(n){if(n.flags&33554432)return n.links;let a=ba(n);return oA[a]??(oA[a]=new Yse)}function Zr(n){let a=is(n);return _S[a]||(_S[a]=new GGe)}function Rh(n){return n.kind===312&&!wp(n)}function ju(n,a,c){if(c){let u=ts(n.get(a));if(u&&(R.assert((Tl(u)&1)===0,"Should never get an instantiated symbol here."),u.flags&c||u.flags&2097152&&Ed(u)&c))return u}}function TM(n,a){let c=n.parent,u=n.parent.parent,_=ju(c.locals,a,111551),g=ju(Nb(u.symbol),a,111551);return _&&g?[_,g]:R.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function $g(n,a){let c=Gn(n),u=Gn(a),_=ph(n);if(c!==u){if(z&&(c.externalModuleIndicator||u.externalModuleIndicator)||!Rs(B)||TT(a)||n.flags&33554432||T(a,n))return!0;let W=e.getSourceFiles();return W.indexOf(c)<=W.indexOf(u)}if(a.flags&16777216||TT(a)||Dye(a))return!0;if(n.pos<=a.pos&&!(Vo(n)&&A2(a.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===208){let W=uE(a,208);return W?Fn(W,Xa)!==Fn(n,Xa)||n.posYa(W)&&W.parent.parent===n);if(Vo(n))return!M(n,a,!1);if(dp(n,n.parent))return!(ge&&id(n)===id(a)&&T(a,n))}return!0}if(a.parent.kind===281||a.parent.kind===277&&a.parent.isExportEquals||a.kind===277&&a.isExportEquals)return!0;if(T(a,n))return ge&&id(n)&&(Vo(n)||dp(n,n.parent))?!M(n,a,!0):!0;return!1;function g(W,V){switch(W.parent.parent.kind){case 243:case 248:case 250:if(bS(V,W,_))return!0;break}let te=W.parent.parent;return Wx(te)&&bS(V,te.expression,_)}function T(W,V){return!!Fn(W,te=>{if(te===_)return"quit";if(Yo(te))return!0;if(Al(te))return V.posW.end?!1:Fn(V,_e=>{if(_e===W)return"quit";switch(_e.kind){case 219:return!0;case 172:return te&&(Vo(W)&&_e.parent===W.parent||dp(W,W.parent)&&_e.parent===W.parent.parent)?"quit":!0;case 241:switch(_e.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function AM(n,a,c){let u=rs(B),_=a;if(To(c)&&_.body&&n.valueDeclaration&&n.valueDeclaration.pos>=_.body.pos&&n.valueDeclaration.end<=_.body.end&&u>=2){let M=Zr(_);return M.declarationRequiresScopeChange===void 0&&(M.declarationRequiresScopeChange=gn(_.parameters,g)||!1),!M.declarationRequiresScopeChange}return!1;function g(M){return T(M.name)||!!M.initializer&&T(M.initializer)}function T(M){switch(M.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return T(M.name);case 172:return pc(M)?!ge:T(M.name);default:return TV(M)||jd(M)?u<7:Xa(M)&&M.dotDotDotToken&&tm(M.parent)?u<4:ji(M)?!1:Bo(M,T)||!1}}}function ub(n){return cT(n)&&Cg(n.type)||gP(n)&&Cg(n.typeExpression)}function hl(n,a,c,u,_,g,T=!1,M=!0){return Bp(n,a,c,u,_,g,T,M,ju)}function Bp(n,a,c,u,_,g,T,M,W){var V,te,ye;let _e=n,je,mt,At,rn,sn,nr=!1,Mn=n,an,On=!1;e:for(;n;){if(a==="const"&&ub(n))return;if(l2(n)&&mt&&n.name===mt&&(mt=n,n=n.parent),ch(n)&&n.locals&&!Rh(n)&&(je=W(n.locals,a,c))){let Yn=!0;if(Yo(n)&&mt&&mt!==n.body?(c&je.flags&788968&&mt.kind!==327&&(Yn=je.flags&262144?mt===n.type||mt.kind===169||mt.kind===348||mt.kind===349||mt.kind===168:!1),c&je.flags&3&&(AM(je,n,mt)?Yn=!1:je.flags&1&&(Yn=mt.kind===169||mt===n.type&&!!Fn(je.valueDeclaration,To)))):n.kind===194&&(Yn=mt===n.trueType),Yn)break e;je=void 0}switch(nr=nr||sm(n,mt),n.kind){case 312:if(!wp(n))break;On=!0;case 267:let Yn=((V=Sr(n))==null?void 0:V.exports)||K;if(n.kind===312||ql(n)&&n.flags&33554432&&!E_(n)){if(je=Yn.get("default")){let xo=fR(je);if(xo&&je.flags&c&&xo.escapedName===a)break e;je=void 0}let $n=Yn.get(a);if($n&&$n.flags===2097152&&(cl($n,281)||cl($n,280)))break}if(a!=="default"&&(je=W(Yn,a,c&2623475)))if(Yi(n)&&n.commonJsModuleIndicator&&!((te=je.declarations)!=null&&te.some(qf)))je=void 0;else break e;break;case 266:if(je=W(((ye=Sr(n))==null?void 0:ye.exports)||K,a,c&8)){u&&em(B)&&!(n.flags&33554432)&&Gn(n)!==Gn(je.valueDeclaration)&&Ve(Mn,f.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Vi(a),Je,`${Vi(ff(n).escapedName)}.${Vi(a)}`);break e}break;case 172:if(!na(n)){let $n=ty(n.parent);$n&&$n.locals&&W($n.locals,a,c&111551)&&(R.assertNode(n,Vo),rn=n)}break;case 263:case 231:case 264:if(je=W(Sr(n).members||K,a,c&788968)){if(!Qg(je,n)){je=void 0;break}if(mt&&na(mt)){u&&Ve(Mn,f.Static_members_cannot_reference_class_type_parameters);return}break e}if($c(n)&&c&32){let $n=n.name;if($n&&a===$n.escapedText){je=n.symbol;break e}}break;case 233:if(mt===n.expression&&n.parent.token===96){let $n=n.parent.parent;if(di($n)&&(je=W(Sr($n).members,a,c&788968))){u&&Ve(Mn,f.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(an=n.parent.parent,(di(an)||an.kind===264)&&(je=W(Sr(an).members,a,c&788968))){u&&Ve(Mn,f.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(rs(B)>=2)break;case 174:case 176:case 177:case 178:case 262:if(c&3&&a==="arguments"){je=Wt;break e}break;case 218:if(c&3&&a==="arguments"){je=Wt;break e}if(c&16){let $n=n.name;if($n&&a===$n.escapedText){je=n.symbol;break e}}break;case 170:n.parent&&n.parent.kind===169&&(n=n.parent),n.parent&&(Xc(n.parent)||n.parent.kind===263)&&(n=n.parent);break;case 353:case 345:case 347:let jn=rR(n);jn&&(n=jn.parent);break;case 169:mt&&(mt===n.initializer||mt===n.name&&$o(mt))&&(sn||(sn=n));break;case 208:mt&&(mt===n.initializer||mt===n.name&&$o(mt))&&M0(n)&&!sn&&(sn=n);break;case 195:if(c&262144){let $n=n.typeParameter.name;if($n&&a===$n.escapedText){je=n.typeParameter.symbol;break e}}break;case 281:mt&&mt===n.propertyName&&n.parent.parent.moduleSpecifier&&(n=n.parent.parent.parent);break}pb(n)&&(At=n),mt=n,n=nm(n)?QF(n)||n.parent:($m(n)||H4(n))&&cE(n)||n.parent}if(g&&je&&(!At||je!==At.symbol)&&(je.isReferenced|=c),!je){if(mt&&(R.assertNode(mt,Yi),mt.commonJsModuleIndicator&&a==="exports"&&c&mt.symbol.flags))return mt.symbol;T||(je=W(be,a,c))}if(!je&&_e&&ir(_e)&&_e.parent&&Eu(_e.parent,!1))return _t;function Ln(){return rn&&!ge?(Ve(Mn,Mn&&rn.type&&JL(rn.type,Mn.pos)?f.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:f.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,As(rn.name),Pm(_)),!0):!1}if(je){if(u&&Ln())return}else{u&&r(()=>{if(!Mn||Mn.parent.kind!==331&&!vS(Mn,a,_)&&!Ln()&&!fA(Mn)&&!J1(Mn,a,c)&&!rv(Mn,a)&&!mA(Mn,a,c)&&!BD(Mn,a,c)&&!fg(Mn,a,c)){let Yn,jn;if(_&&(jn=But(_),jn&&Ve(Mn,u,Pm(_),jn)),!jn&&M&&LD{var Yn;if(Mn&&(c&2||(c&32||c&384)&&(c&111551)===111551)){let jn=mf(je);(jn.flags&2||jn.flags&32||jn.flags&384)&&Xs(jn,Mn)}if(je&&On&&(c&111551)===111551&&!(_e.flags&16777216)){let jn=ts(je);Nn(jn.declarations)&&oo(jn.declarations,$n=>zk($n)||Yi($n)&&!!$n.symbol.globalExports)&&pd(!B.allowUmdGlobalAccess,Mn,f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Vi(a))}if(je&&sn&&!nr&&(c&111551)===111551){let jn=ts(fZ(je)),$n=A_(sn);jn===Sr(sn)?Ve(Mn,f.Parameter_0_cannot_reference_itself,As(sn.name)):jn.valueDeclaration&&jn.valueDeclaration.pos>sn.pos&&$n.parent.locals&&W($n.parent.locals,jn.escapedName,c)===jn&&Ve(Mn,f.Parameter_0_cannot_reference_identifier_1_declared_after_it,As(sn.name),As(Mn))}if(je&&Mn&&c&111551&&je.flags&2097152&&!(je.flags&111551)&&!mE(Mn)){let jn=Lf(je,111551);if(jn){let $n=jn.kind===281||jn.kind===278||jn.kind===280?f._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,xo=Vi(a);ug(Ve(Mn,$n,xo),jn,xo)}}if(B.isolatedModules&&je&&On&&(c&111551)===111551){let $n=W(be,a,c)===je&&Yi(mt)&&mt.locals&&W(mt.locals,a,-111552);if($n){let xo=(Yn=$n.declarations)==null?void 0:Yn.find(vo=>vo.kind===276||vo.kind===273||vo.kind===274||vo.kind===271);xo&&!t2(xo)&&Ve(xo,f.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Vi(a))}}}),je}function ug(n,a,c){return a?Ma(n,Pr(a,a.kind===281||a.kind===278||a.kind===280?f._0_was_exported_here:f._0_was_imported_here,c)):n}function sm(n,a){return n.kind!==219&&n.kind!==218?YI(n)||(Ws(n)||n.kind===172&&!na(n))&&(!a||a!==n.name):a&&a===n.name?!1:n.asteriskToken||Qr(n,1024)?!0:!_T(n)}function pb(n){switch(n.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function Pm(n){return Co(n)?Vi(n):As(n)}function Qg(n,a){if(n.declarations){for(let c of n.declarations)if(c.kind===168&&(nm(c.parent)?vT(c.parent):c.parent)===a)return!(nm(c.parent)&&Vr(c.parent.parent.tags,qf))}return!1}function vS(n,a,c){if(!Fe(n)||n.escapedText!==a||q6e(n)||TT(n))return!1;let u=ku(n,!1,!1),_=u;for(;_;){if(di(_.parent)){let g=Sr(_.parent);if(!g)break;let T=sr(g);if(_a(T,a))return Ve(n,f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Pm(c),Si(g)),!0;if(_===u&&!na(_)){let M=Ys(g).thisType;if(_a(M,a))return Ve(n,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Pm(c)),!0}}_=_.parent}return!1}function fA(n){let a=pg(n);return a&&Vs(a,64,!0)?(Ve(n,f.Cannot_extend_an_interface_0_Did_you_mean_implements,uc(a)),!0):!1}function pg(n){switch(n.kind){case 80:case 211:return n.parent?pg(n.parent):void 0;case 233:if(Bl(n.expression))return n.expression;default:return}}function J1(n,a,c){let u=1920|(ir(n)?111551:0);if(c===u){let _=Vl(hl(n,a,788968&~u,void 0,void 0,!1)),g=n.parent;if(_){if(Tu(g)){R.assert(g.left===n,"Should only be resolving left side of qualified name as a namespace");let T=g.right.escapedText;if(_a(Ys(_),T))return Ve(g,f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Vi(a),Vi(T)),!0}return Ve(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Vi(a)),!0}}return!1}function fg(n,a,c){if(c&788584){let u=Vl(hl(n,a,111127,void 0,void 0,!1));if(u&&!(u.flags&1920))return Ve(n,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Vi(a)),!0}return!1}function G_(n){return n==="any"||n==="string"||n==="number"||n==="boolean"||n==="never"||n==="unknown"}function rv(n,a){return G_(a)&&n.parent.kind===281?(Ve(n,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function BD(n,a,c){if(c&111551){if(G_(a)){let g=n.parent.parent;if(g&&g.parent&&ef(g)){let T=g.token,M=g.parent.kind;M===264&&T===96?Ve(n,f.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Vi(a)):M===263&&T===96?Ve(n,f.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Vi(a)):M===263&&T===119&&Ve(n,f.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Vi(a))}else Ve(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Vi(a));return!0}let u=Vl(hl(n,a,788544,void 0,void 0,!1)),_=u&&Ed(u);if(u&&_!==void 0&&!(_&111551)){let g=Vi(a);return VD(a)?Ve(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,g):GD(n,u)?Ve(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,g,g==="K"?"P":"K"):Ve(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,g),!0}}return!1}function GD(n,a){let c=Fn(n.parent,u=>Ya(u)||_p(u)?!1:gp(u)||"quit");if(c&&c.members.length===1){let u=Ys(a);return!!(u.flags&1048576)&&Q5(u,384,!0)}return!1}function VD(n){switch(n){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function mA(n,a,c){if(c&111127){if(Vl(hl(n,a,1024,void 0,void 0,!1)))return Ve(n,f.Cannot_use_namespace_0_as_a_value,Vi(a)),!0}else if(c&788544&&Vl(hl(n,a,1536,void 0,void 0,!1)))return Ve(n,f.Cannot_use_namespace_0_as_a_type,Vi(a)),!0;return!1}function Xs(n,a){var c;if(R.assert(!!(n.flags&2||n.flags&32||n.flags&384)),n.flags&67108881&&n.flags&32)return;let u=(c=n.declarations)==null?void 0:c.find(_=>KV(_)||di(_)||_.kind===266);if(u===void 0)return R.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(u.flags&33554432)&&!$g(u,a)){let _,g=As(No(u));n.flags&2?_=Ve(a,f.Block_scoped_variable_0_used_before_its_declaration,g):n.flags&32?_=Ve(a,f.Class_0_used_before_its_declaration,g):n.flags&256?_=Ve(a,f.Enum_0_used_before_its_declaration,g):(R.assert(!!(n.flags&128)),em(B)&&(_=Ve(a,f.Enum_0_used_before_its_declaration,g))),_&&Ma(_,Pr(u,f._0_is_declared_here,g))}}function bS(n,a,c){return!!a&&!!Fn(n,u=>u===a||(u===c||Yo(u)&&(!_T(u)||Bc(u)&3)?"quit":!1))}function _A(n){switch(n.kind){case 271:return n;case 273:return n.parent;case 274:return n.parent.parent;case 276:return n.parent.parent.parent;default:return}}function Mm(n){return n.declarations&&sI(n.declarations,fb)}function fb(n){return n.kind===271||n.kind===270||n.kind===273&&!!n.name||n.kind===274||n.kind===280||n.kind===276||n.kind===281||n.kind===277&&iR(n)||ur(n)&&zl(n)===2&&iR(n)||Ps(n)&&ur(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64&&jD(n.parent.right)||n.kind===304||n.kind===303&&jD(n.initializer)||n.kind===260&&D0(n)||n.kind===208&&D0(n.parent.parent)}function jD(n){return H2(n)||Ms(n)&&$_(n)}function hA(n,a){let c=_b(n);if(c){let _=_R(c.expression).arguments[0];return Fe(c.name)?Vl(_a(Owe(_),c.name.escapedText)):void 0}if(Oi(n)||n.moduleReference.kind===283){let _=_u(n,dj(n)||gN(n)),g=Ip(_);return rp(n,_,g,!1),g}let u=X1(n.moduleReference,a);return IM(n,u),u}function IM(n,a){if(rp(n,void 0,a,!1)&&!n.isTypeOnly){let c=Lf(Sr(n)),u=c.kind===281||c.kind===278,_=u?f.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:f.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,g=u?f._0_was_exported_here:f._0_was_imported_here,T=c.kind===278?"*":Vi(c.name.escapedText);Ma(Ve(n.moduleReference,_),Pr(c,g,T))}}function mr(n,a,c,u){let _=n.exports.get("export="),g=_?_a(sr(_),a,!0):n.exports.get(a),T=Vl(g,u);return rp(c,g,T,!1),T}function td(n){return Ll(n)&&!n.isExportEquals||Qr(n,2048)||Hd(n)||vh(n)}function Qi(n){return ss(n)?e.getModeForUsageLocation(Gn(n),n):void 0}function pf(n,a){return n===99&&a===1}function iv(n){return Qi(n)===99&&El(n.text,".json")}function V_(n,a,c,u){let _=n&&Qi(u);if(n&&_!==void 0&&100<=z&&z<=199){let g=pf(_,n.impliedNodeFormat);if(_===99||g)return g}if(!q)return!1;if(!n||n.isDeclarationFile){let g=mr(a,"default",void 0,!0);return!(g&>(g.declarations,td)||mr(a,pl("__esModule"),void 0,c))}return lu(n)?typeof n.externalModuleIndicator!="object"&&!mr(a,pl("__esModule"),void 0,c):ov(a)}function ar(n,a){let c=_u(n,n.parent.moduleSpecifier);if(c)return gA(c,n,a)}function gA(n,a,c){var u;let _;pN(n)?_=n:_=mr(n,"default",a,c);let g=(u=n.declarations)==null?void 0:u.find(Yi),T=GE(a);if(!T)return _;let M=iv(T),W=V_(g,n,c,T);if(!_&&!W&&!M)if(ov(n)&&!q){let V=z>=5?"allowSyntheticDefaultImports":"esModuleInterop",ye=n.exports.get("export=").valueDeclaration,_e=Ve(a.name,f.Module_0_can_only_be_default_imported_using_the_1_flag,Si(n),V);ye&&Ma(_e,Pr(ye,f.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,V))}else yh(a)?Kc(n,a):yA(n,n,a,yI(a)&&a.propertyName||a.name);else if(W||M){let V=Ip(n,c)||Vl(n,c);return rp(a,n,V,!1),V}return rp(a,_,void 0,!1),_}function GE(n){switch(n.kind){case 273:return n.parent.moduleSpecifier;case 271:return bh(n.moduleReference)?n.moduleReference.expression:void 0;case 274:return n.parent.parent.moduleSpecifier;case 276:return n.parent.parent.parent.moduleSpecifier;case 281:return n.parent.parent.moduleSpecifier;default:return R.assertNever(n)}}function Kc(n,a){var c,u,_;if((c=n.exports)!=null&&c.has(a.symbol.escapedName))Ve(a.name,f.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Si(n),Si(a.symbol));else{let g=Ve(a.name,f.Module_0_has_no_default_export,Si(n)),T=(u=n.exports)==null?void 0:u.get("__export");if(T){let M=(_=T.declarations)==null?void 0:_.find(W=>{var V,te;return!!(Xl(W)&&W.moduleSpecifier&&((te=(V=_u(W,W.moduleSpecifier))==null?void 0:V.exports)!=null&&te.has("default")))});M&&Ma(g,Pr(M,f.export_Asterisk_does_not_re_export_a_default))}}}function Dh(n,a){let c=n.parent.parent.moduleSpecifier,u=_u(n,c),_=ip(u,c,a,!1);return rp(n,u,_,!1),_}function Lm(n,a){let c=n.parent.moduleSpecifier,u=c&&_u(n,c),_=c&&ip(u,c,a,!1);return rp(n,u,_,!1),_}function ES(n,a){if(n===lt&&a===lt)return lt;if(n.flags&790504)return n;let c=Ka(n.flags|a.flags,n.escapedName);return R.assert(n.declarations||a.declarations),c.declarations=_0(bo(n.declarations,a.declarations),Ay),c.parent=n.parent||a.parent,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration),a.members&&(c.members=new Map(a.members)),n.exports&&(c.exports=new Map(n.exports)),c}function SS(n,a,c,u){var _;if(n.flags&1536){let g=xp(n).get(a.escapedText),T=Vl(g,u),M=(_=qi(n).typeOnlyExportStarMap)==null?void 0:_.get(a.escapedText);return rp(c,g,T,!1,M,a.escapedText),T}}function mb(n,a){if(n.flags&3){let c=n.valueDeclaration.type;if(c)return Vl(_a(Ti(c),a))}}function Zg(n,a,c=!1){var u;let _=dj(n)||n.moduleSpecifier,g=_u(n,_),T=!wr(a)&&a.propertyName||a.name;if(!Fe(T))return;let M=T.escapedText==="default"&&q,W=ip(g,_,!1,M);if(W&&T.escapedText){if(pN(g))return g;let V;g&&g.exports&&g.exports.get("export=")?V=_a(sr(W),T.escapedText,!0):V=mb(W,T.escapedText),V=Vl(V,c);let te=SS(W,T,a,c);if(te===void 0&&T.escapedText==="default"){let _e=(u=g.declarations)==null?void 0:u.find(Yi);(iv(_)||V_(_e,g,c,_))&&(te=Ip(g,c)||Vl(g,c))}let ye=te&&V&&te!==V?ES(V,te):te||V;return ye||yA(g,W,n,T),ye}}function yA(n,a,c,u){var _;let g=Vp(n,c),T=As(u),M=Tee(u,a);if(M!==void 0){let W=Si(M),V=Ve(u,f._0_has_no_exported_member_named_1_Did_you_mean_2,g,T,W);M.valueDeclaration&&Ma(V,Pr(M.valueDeclaration,f._0_is_declared_here,W))}else(_=n.exports)!=null&&_.has("default")?Ve(u,f.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,g,T):km(c,u,T,n,g)}function km(n,a,c,u,_){var g,T;let M=(T=(g=ri(u.valueDeclaration,ch))==null?void 0:g.locals)==null?void 0:T.get(a.escapedText),W=u.exports;if(M){let V=W?.get("export=");if(V)i_(V,M)?VE(n,a,c,_):Ve(a,f.Module_0_has_no_exported_member_1,_,c);else{let te=W?Vr(uge(W),_e=>!!i_(_e,M)):void 0,ye=te?Ve(a,f.Module_0_declares_1_locally_but_it_is_exported_as_2,_,c,Si(te)):Ve(a,f.Module_0_declares_1_locally_but_it_is_not_exported,_,c);M.declarations&&Ma(ye,...mn(M.declarations,(_e,je)=>Pr(_e,je===0?f._0_is_declared_here:f.and_here,c)))}}else Ve(a,f.Module_0_has_no_exported_member_1,_,c)}function VE(n,a,c,u){if(z>=5){let _=_h(B)?f._0_can_only_be_imported_by_using_a_default_import:f._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Ve(a,_,c)}else if(ir(n)){let _=_h(B)?f._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:f._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Ve(a,_,c)}else{let _=_h(B)?f._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:f._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Ve(a,_,c,c,u)}}function mg(n,a){if(Qu(n)&&yr(n.propertyName||n.name)==="default"){let T=GE(n),M=T&&_u(n,T);if(M)return gA(M,n,a)}let c=Xa(n)?A_(n):n.parent.parent.parent,u=_b(c),_=Zg(c,u||n,a),g=n.propertyName||n.name;return u&&_&&Fe(g)?Vl(_a(sr(_),g.escapedText),a):(rp(n,void 0,_,!1),_)}function _b(n){if(Oi(n)&&n.initializer&&wr(n.initializer))return n.initializer}function q1(n,a){if(b_(n.parent)){let c=Ip(n.parent.symbol,a);return rp(n,void 0,c,!1),c}}function jE(n,a,c){if(yr(n.propertyName||n.name)==="default"){let _=GE(n),g=_&&_u(n,_);if(g)return gA(g,n,!!c)}let u=n.parent.parent.moduleSpecifier?Zg(n.parent.parent,n,c):Vs(n.propertyName||n.name,a,!1,c);return rp(n,void 0,u,!1),u}function UD(n,a){let c=Ll(n)?n.expression:n.right,u=TS(c,a);return rp(n,void 0,u,!1),u}function TS(n,a){if($c(n))return tc(n).symbol;if(!Xu(n)&&!Bl(n))return;let c=Vs(n,901119,!0,a);return c||(tc(n),Zr(n).resolvedSymbol)}function vA(n,a){if(ur(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64)return TS(n.parent.right,a)}function Gp(n,a=!1){switch(n.kind){case 271:case 260:return hA(n,a);case 273:return ar(n,a);case 274:return Dh(n,a);case 280:return Lm(n,a);case 276:case 208:return mg(n,a);case 281:return jE(n,901119,a);case 277:case 226:return UD(n,a);case 270:return q1(n,a);case 304:return Vs(n.name,901119,!0,a);case 303:return TS(n.initializer,a);case 212:case 211:return vA(n,a);default:return R.fail()}}function bA(n,a=901119){return n?(n.flags&(2097152|a))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function Vl(n,a){return!a&&bA(n)?Oc(n):n}function Oc(n){R.assert((n.flags&2097152)!==0,"Should only get Alias here.");let a=qi(n);if(a.aliasTarget)a.aliasTarget===Dt&&(a.aliasTarget=lt);else{a.aliasTarget=Dt;let c=Mm(n);if(!c)return R.fail();let u=Gp(c);a.aliasTarget===Dt?a.aliasTarget=u||lt:Ve(c,f.Circular_definition_of_import_alias_0,Si(n))}return a.aliasTarget}function EA(n){if(qi(n).aliasTarget!==Dt)return Oc(n)}function Ed(n,a,c){let u=a&&Lf(n),_=u&&Xl(u),g=u&&(_?_u(u.moduleSpecifier,u.moduleSpecifier,!0):Oc(u.symbol)),T=_&&g?Ch(g):void 0,M=c?0:n.flags,W;for(;n.flags&2097152;){let V=mf(Oc(n));if(!_&&V===g||T?.get(V.escapedName)===V)break;if(V===lt)return-1;if(V===n||W?.has(V))break;V.flags&2097152&&(W?W.add(V):W=new Set([n,V])),M|=V.flags,n=V}return M}function rp(n,a,c,u,_,g){if(!n||wr(n))return!1;let T=Sr(n);if(oE(n)){let W=qi(T);return W.typeOnlyDeclaration=n,!0}if(_){let W=qi(T);return W.typeOnlyDeclaration=_,T.escapedName!==g&&(W.typeOnlyExportStarName=g),!0}let M=qi(T);return UE(M,a,u)||UE(M,c,u)}function UE(n,a,c){var u;if(a&&(n.typeOnlyDeclaration===void 0||c&&n.typeOnlyDeclaration===!1)){let _=((u=a.exports)==null?void 0:u.get("export="))??a,g=_.declarations&&Vr(_.declarations,oE);n.typeOnlyDeclaration=g??qi(_).typeOnlyDeclaration??!1}return!!n.typeOnlyDeclaration}function Lf(n,a){if(!(n.flags&2097152))return;let c=qi(n);if(a===void 0)return c.typeOnlyDeclaration||void 0;if(c.typeOnlyDeclaration){let u=c.typeOnlyDeclaration.kind===278?Vl(Ch(c.typeOnlyDeclaration.symbol.parent).get(c.typeOnlyExportStarName||n.escapedName)):Oc(c.typeOnlyDeclaration.symbol);return Ed(u)&a?c.typeOnlyDeclaration:void 0}}function hb(n){if(!ft)return;let a=Sr(n),c=Oc(a);c&&(c===lt||Ed(a,!0)&111551&&!$8(c))&&gb(a)}function gb(n){R.assert(ft);let a=qi(n);if(!a.referenced){a.referenced=!0;let c=Mm(n);if(!c)return R.fail();$x(c)&&Ed(Vl(n))&111551&&tc(c.moduleReference)}}function nd(n){let a=qi(n);a.constEnumReferenced||(a.constEnumReferenced=!0)}function X1(n,a){return n.kind===80&&LN(n)&&(n=n.parent),n.kind===80||n.parent.kind===166?Vs(n,1920,!1,a):(R.assert(n.parent.kind===271),Vs(n,901119,!1,a))}function Vp(n,a){return n.parent?Vp(n.parent,a)+"."+Si(n):Si(n,a,void 0,36)}function SA(n){for(;Tu(n.parent);)n=n.parent;return n}function TA(n){let a=Fp(n),c=hl(a,a.escapedText,111551,void 0,a,!0);if(c){for(;Tu(a.parent);){let u=sr(c);if(c=_a(u,a.parent.right.escapedText),!c)return;a=a.parent}return c}}function Vs(n,a,c,u,_){if(Fl(n))return;let g=1920|(ir(n)?a&111551:0),T;if(n.kind===80){let M=a===g||Js(n)?f.Cannot_find_namespace_0:C8e(Fp(n)),W=ir(n)&&!Js(n)?HD(n,a):void 0;if(T=ts(hl(_||n,n.escapedText,a,c||W?void 0:M,n,!0,!1)),!T)return ts(W)}else if(n.kind===166||n.kind===211){let M=n.kind===166?n.left:n.expression,W=n.kind===166?n.right:n.name,V=Vs(M,g,c,!1,_);if(!V||Fl(W))return;if(V===lt)return V;if(V.valueDeclaration&&ir(V.valueDeclaration)&&uu(B)!==100&&Oi(V.valueDeclaration)&&V.valueDeclaration.initializer&&fFe(V.valueDeclaration.initializer)){let te=V.valueDeclaration.initializer.arguments[0],ye=_u(te,te);if(ye){let _e=Ip(ye);_e&&(V=_e)}}if(T=ts(ju(xp(V),W.escapedText,a)),!T&&V.flags&2097152&&(T=ts(ju(xp(Oc(V)),W.escapedText,a))),!T){if(!c){let te=Vp(V),ye=As(W),_e=Tee(W,V);if(_e){Ve(W,f._0_has_no_exported_member_named_1_Did_you_mean_2,te,ye,Si(_e));return}let je=Tu(n)&&SA(n);if(Re&&a&788968&&je&&!CR(je.parent)&&TA(je)){Ve(je,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,up(je));return}if(a&1920&&Tu(n.parent)){let At=ts(ju(xp(V),W.escapedText,788968));if(At){Ve(n.parent.right,f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Si(At),Vi(n.parent.right.escapedText));return}}Ve(W,f.Namespace_0_has_no_exported_member_1,te,ye)}return}}else R.assertNever(n,"Unknown entity name kind.");return R.assert((Tl(T)&1)===0,"Should never get an instantiated symbol here."),!Js(n)&&Xu(n)&&(T.flags&2097152||n.parent.kind===277)&&rp(Sj(n),T,void 0,!0),T.flags&a||u?T:Oc(T)}function HD(n,a){if(AZ(n.parent)){let c=HE(n.parent);if(c)return hl(c,n.escapedText,a,void 0,n,!0)}}function HE(n){if(Fn(n,_=>Fx(_)||_.flags&16777216?qf(_):"quit"))return;let c=vT(n);if(c&&Qc(c)&&w2(c.expression)){let _=Sr(c.expression.left);if(_)return AS(_)}if(c&&Ms(c)&&w2(c.parent)&&Qc(c.parent.parent)){let _=Sr(c.parent.left);if(_)return AS(_)}if(c&&(bm(c)||mc(c))&&ur(c.parent.parent)&&zl(c.parent.parent)===6){let _=Sr(c.parent.parent.left);if(_)return AS(_)}let u=dE(n);if(u&&Yo(u)){let _=Sr(u);return _&&_.valueDeclaration}}function AS(n){let a=n.parent.valueDeclaration;return a?(yN(a)?AI(a):dT(a)?N2(a):void 0)||a:void 0}function xM(n){let a=n.valueDeclaration;if(!a||!ir(a)||n.flags&524288||lE(a,!1))return;let c=Oi(a)?N2(a):AI(a);if(c){let u=ff(c);if(u)return bve(u,n)}}function _u(n,a,c){let _=uu(B)===1?f.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:f.Cannot_find_module_0_or_its_corresponding_type_declarations;return ey(n,a,c?void 0:_)}function ey(n,a,c,u=!1){return ss(a)?j_(n,a.text,c,a,u):void 0}function j_(n,a,c,u,_=!1){var g,T,M,W,V,te,ye,_e,je,mt,At;if(ao(a,"@types/")){let $n=f.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,xo=jC(a,"@types/");Ve(u,$n,xo,a)}let rn=hZ(a,!0);if(rn)return rn;let sn=Gn(n),nr=ss(n)?n:((g=ql(n)?n:n.parent&&ql(n.parent)&&n.parent.name===n?n.parent:void 0)==null?void 0:g.name)||((T=Ov(n)?n:void 0)==null?void 0:T.argument.literal)||(Oi(n)&&n.initializer&&Eu(n.initializer,!0)?n.initializer.arguments[0]:void 0)||((M=Fn(n,Op))==null?void 0:M.arguments[0])||((W=Fn(n,Mc))==null?void 0:W.moduleSpecifier)||((V=Fn(n,sE))==null?void 0:V.moduleReference.expression)||((te=Fn(n,Xl))==null?void 0:te.moduleSpecifier),Mn=nr&&ss(nr)?e.getModeForUsageLocation(sn,nr):sn.impliedNodeFormat,an=uu(B),On=(ye=e.getResolvedModule(sn,a,Mn))==null?void 0:ye.resolvedModule,Ln=On&&yJ(B,On,sn),Yn=On&&(!Ln||Ln===f.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(On.resolvedFileName);if(Yn){if(Ln&&Ve(u,Ln,a,On.resolvedFileName),On.resolvedUsingTsExtension&&vd(a)){let $n=((_e=Fn(n,Mc))==null?void 0:_e.importClause)||Fn(n,Um(Zc,Xl));($n&&!$n.isTypeOnly||Fn(n,Op))&&Ve(u,f.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,jn(R.checkDefined(_6(a))))}else if(On.resolvedUsingTsExtension&&!qR(B,sn.fileName)){let $n=((je=Fn(n,Mc))==null?void 0:je.importClause)||Fn(n,Um(Zc,Xl));if(!($n?.isTypeOnly||Fn(n,ig))){let xo=R.checkDefined(_6(a));Ve(u,f.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,xo)}}if(Yn.symbol){if(On.isExternalLibraryImport&&!VN(On.extension)&&Y1(!1,u,sn,Mn,On,a),an===3||an===99){let $n=sn.impliedNodeFormat===1&&!Fn(n,Op)||!!Fn(n,Zc),xo=Fn(n,vo=>ig(vo)||Xl(vo)||Mc(vo));if($n&&Yn.impliedNodeFormat===99&&!Woe(xo))if(Fn(n,Zc))Ve(u,f.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,a);else{let vo,Wo=Og(sn.fileName);if(Wo===".ts"||Wo===".js"||Wo===".tsx"||Wo===".jsx"){let fo=sn.packageJsonScope,Rc=Wo===".ts"?".mts":Wo===".js"?".mjs":void 0;fo&&!fo.contents.packageJsonContent.type?Rc?vo=Fo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,Rc,$r(fo.packageDirectory,"package.json")):vo=Fo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,$r(fo.packageDirectory,"package.json")):Rc?vo=Fo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,Rc):vo=Fo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}Qa.add(Pg(Gn(u),u,Fo(vo,f.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,a)))}}return ts(Yn.symbol)}c&&Ve(u,f.File_0_is_not_a_module,Yn.fileName);return}if(im){let $n=KG(im,xo=>xo.pattern,a);if($n){let xo=mu&&mu.get(a);return ts(xo||$n.symbol)}}if(On&&!VN(On.extension)&&Ln===void 0||Ln===f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(_){let $n=f.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;Ve(u,$n,a,On.resolvedFileName)}else Y1(fe&&!!c,u,sn,Mn,On,a);return}if(c){if(On){let $n=e.getProjectReferenceRedirect(On.resolvedFileName);if($n){Ve(u,f.Output_file_0_has_not_been_built_from_source_file_1,$n,On.resolvedFileName);return}}if(Ln)Ve(u,Ln,a,On.resolvedFileName);else{let $n=Lp(a)&&!mI(a),xo=an===3||an===99;if(!_E(B)&&Sl(a,".json")&&an!==1&&I6(B))Ve(u,f.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(Mn===99&&xo&&$n){let vo=_o(a,oi(sn.path)),Wo=(mt=FD.find(([fo,Rc])=>e.fileExists(vo+fo)))==null?void 0:mt[1];Wo?Ve(u,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+Wo):Ve(u,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else if((At=e.getResolvedModule(sn,a,Mn))!=null&&At.alternateResult){let vo=bF(sn,e,a,Mn,a);pd(!0,u,Fo(vo,c,a))}else Ve(u,c,a)}}return;function jn($n){let xo=ck(a,$n);if(A6(z)||Mn===99){let vo=vd(a)&&qR(B);return xo+($n===".mts"||$n===".d.mts"?vo?".mts":".mjs":$n===".cts"||$n===".d.mts"?vo?".cts":".cjs":vo?".ts":".js")}return xo}}function Y1(n,a,c,u,{packageId:_,resolvedFileName:g},T){let M;!qc(T)&&_&&(M=bF(c,e,T,u,_.name)),pd(n,a,Fo(M,f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,T,g))}function Ip(n,a){if(n?.exports){let c=Vl(n.exports.get("export="),a),u=$1(ts(c),ts(n));return ts(u)||n}}function $1(n,a){if(!n||n===lt||n===a||a.exports.size===1||n.flags&2097152)return n;let c=qi(n);if(c.cjsExportMerged)return c.cjsExportMerged;let u=n.flags&33554432?n:pA(n);return u.flags=u.flags|512,u.exports===void 0&&(u.exports=oa()),a.exports.forEach((_,g)=>{g!=="export="&&u.exports.set(g,u.exports.has(g)?om(u.exports.get(g),_):_)}),u===n&&(qi(u).resolvedExports=void 0,qi(u).resolvedMembers=void 0),qi(u).cjsExportMerged=u,c.cjsExportMerged=u}function ip(n,a,c,u){var _;let g=Ip(n,c);if(!c&&g){if(!u&&!(g.flags&1539)&&!cl(g,312)){let M=z>=5?"allowSyntheticDefaultImports":"esModuleInterop";return Ve(a,f.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,M),g}let T=a.parent;if(Mc(T)&&tR(T)||Op(T)){let M=Op(T)?T.arguments[0]:T.moduleSpecifier,W=sr(g),V=uFe(W,g,n,M);if(V)return Q1(g,V,T);let te=(_=n?.declarations)==null?void 0:_.find(Yi),ye=te&&pf(Qi(M),te.impliedNodeFormat);if(_h(B)||ye){let _e=n5(W,0);if((!_e||!_e.length)&&(_e=n5(W,1)),_e&&_e.length||_a(W,"default",!0)||ye){let je=W.flags&3670016?pFe(W,g,n,M):Eve(g,g.parent);return Q1(g,je,T)}}}}return g}function Q1(n,a,c){let u=Ka(n.flags,n.escapedName);u.declarations=n.declarations?n.declarations.slice():[],u.parent=n.parent,u.links.target=n,u.links.originatingImport=c,n.valueDeclaration&&(u.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(u.constEnumOnlyModule=!0),n.members&&(u.members=new Map(n.members)),n.exports&&(u.exports=new Map(n.exports));let _=c_(a);return u.links.type=Cs(u,_.members,Xe,Xe,_.indexInfos),u}function ov(n){return n.exports.get("export=")!==void 0}function AA(n){return uge(Ch(n))}function KD(n){let a=AA(n),c=Ip(n);if(c!==n){let u=sr(c);yb(u)&&Hr(a,_s(u))}return a}function JD(n,a){Ch(n).forEach((_,g)=>{RS(g)||a(_,g)});let u=Ip(n);if(u!==n){let _=sr(u);yb(_)&&cat(_,(g,T)=>{a(g,T)})}}function IA(n,a){let c=Ch(a);if(c)return c.get(n)}function qD(n,a){let c=IA(n,a);if(c)return c;let u=Ip(a);if(u===a)return;let _=sr(u);return yb(_)?_a(_,n):void 0}function yb(n){return!(n.flags&402784252||kr(n)&1||Gf(n)||Oa(n))}function xp(n){return n.flags&6256?Xhe(n,"resolvedExports"):n.flags&1536?Ch(n):n.exports||K}function Ch(n){let a=qi(n);if(!a.resolvedExports){let{exports:c,typeOnlyExportStarMap:u}=xA(n);a.resolvedExports=c,a.typeOnlyExportStarMap=u}return a.resolvedExports}function XD(n,a,c,u){a&&a.forEach((_,g)=>{if(g==="default")return;let T=n.get(g);if(!T)n.set(g,_),c&&u&&c.set(g,{specifierText:uc(u.moduleSpecifier)});else if(c&&u&&T&&Vl(T)!==Vl(_)){let M=c.get(g);M.exportsWithDuplicate?M.exportsWithDuplicate.push(u):M.exportsWithDuplicate=[u]}})}function xA(n){let a=[],c,u=new Set;n=Ip(n);let _=g(n)||K;return c&&u.forEach(T=>c.delete(T)),{exports:_,typeOnlyExportStarMap:c};function g(T,M,W){if(!W&&T?.exports&&T.exports.forEach((ye,_e)=>u.add(_e)),!(T&&T.exports&&yf(a,T)))return;let V=new Map(T.exports),te=T.exports.get("__export");if(te){let ye=oa(),_e=new Map;if(te.declarations)for(let je of te.declarations){let mt=_u(je,je.moduleSpecifier),At=g(mt,je,W||je.isTypeOnly);XD(ye,At,_e,je)}_e.forEach(({exportsWithDuplicate:je},mt)=>{if(!(mt==="export="||!(je&&je.length)||V.has(mt)))for(let At of je)Qa.add(Pr(At,f.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,_e.get(mt).specifierText,Vi(mt)))}),XD(V,ye)}return M?.isTypeOnly&&(c??(c=new Map),V.forEach((ye,_e)=>c.set(_e,M))),V}}function ts(n){let a;return n&&n.mergeId&&(a=wD[n.mergeId])?a:n}function Sr(n){return ts(n.symbol&&fZ(n.symbol))}function ff(n){return b_(n)?Sr(n):void 0}function Du(n){return ts(n.parent&&fZ(n.parent))}function IS(n){var a,c;return(((a=n.valueDeclaration)==null?void 0:a.kind)===219||((c=n.valueDeclaration)==null?void 0:c.kind)===218)&&ff(n.valueDeclaration.parent)||n}function YD(n,a){let c=Gn(a),u=is(c),_=qi(n),g;if(_.extendedContainersByFile&&(g=_.extendedContainersByFile.get(u)))return g;if(c&&c.imports){for(let M of c.imports){if(Js(M))continue;let W=_u(a,M,!0);!W||!_g(W,n)||(g=Tn(g,W))}if(Nn(g))return(_.extendedContainersByFile||(_.extendedContainersByFile=new Map)).set(u,g),g}if(_.extendedContainers)return _.extendedContainers;let T=e.getSourceFiles();for(let M of T){if(!oc(M))continue;let W=Sr(M);_g(W,n)&&(g=Tn(g,W))}return _.extendedContainers=g||Xe}function KE(n,a,c){let u=Du(n);if(u&&!(n.flags&262144))return W(u);let _=to(n.declarations,te=>{if(!Pd(te)&&te.parent){if($d(te.parent))return Sr(te.parent);if(N_(te.parent)&&te.parent.parent&&Ip(Sr(te.parent.parent))===n)return Sr(te.parent.parent)}if($c(te)&&ur(te.parent)&&te.parent.operatorToken.kind===64&&Ps(te.parent.left)&&Bl(te.parent.left.expression))return $h(te.parent.left)||hT(te.parent.left.expression)?Sr(Gn(te)):(tc(te.parent.left.expression),Zr(te.parent.left.expression).resolvedSymbol)});if(!Nn(_))return;let g=to(_,te=>_g(te,n)?te:void 0),T=[],M=[];for(let te of g){let[ye,..._e]=W(te);T=Tn(T,ye),M=Hr(M,_e)}return bo(T,M);function W(te){let ye=to(te.declarations,V),_e=a&&YD(n,a),je=xS(te,c);if(a&&te.flags&ny(c)&&vb(te,a,1920,!1))return Tn(bo(bo([te],ye),_e),je);let mt=!(te.flags&ny(c))&&te.flags&788968&&Ys(te).flags&524288&&c===111551?CS(a,rn=>zc(rn,sn=>{if(sn.flags&ny(c)&&sr(sn)===Ys(te))return sn})):void 0,At=mt?[mt,...ye,te]:[...ye,te];return At=Tn(At,je),At=Hr(At,_e),At}function V(te){return u&&RA(te,u)}}function xS(n,a){let c=!!Nn(n.declarations)&&Va(n.declarations);if(a&111551&&c&&c.parent&&Oi(c.parent)&&(La(c)&&c===c.parent.initializer||gp(c)&&c===c.parent.type))return Sr(c.parent)}function RA(n,a){let c=Zi(n),u=c&&c.exports&&c.exports.get("export=");return u&&i_(u,a)?c:void 0}function _g(n,a){if(n===Du(a))return a;let c=n.exports&&n.exports.get("export=");if(c&&i_(c,a))return n;let u=xp(n),_=u.get(a.escapedName);return _&&i_(_,a)?_:zc(u,g=>{if(i_(g,a))return g})}function i_(n,a){if(ts(Vl(ts(n)))===ts(Vl(ts(a))))return n}function mf(n){return ts(n&&(n.flags&1048576)!==0&&n.exportSymbol||n)}function wm(n,a){return!!(n.flags&111551||n.flags&2097152&&Ed(n,!a)&111551)}function ty(n){let a=n.members;for(let c of a)if(c.kind===176&&Hf(c.body))return c}function hg(n){var a;let c=new p(Yt,n);return m++,c.id=m,(a=rr)==null||a.recordType(c),c}function gg(n,a){let c=hg(n);return c.symbol=a,c}function Z1(n){return new p(Yt,n)}function sc(n,a,c=0,u){$D(a,u);let _=hg(n);return _.intrinsicName=a,_.debugIntrinsicName=u,_.objectFlags=c|524288|2097152|33554432|16777216,_}function $D(n,a){let c=`${n},${a??""}`;st.has(c)&&R.fail(`Duplicate intrinsic type name ${n}${a?` (${a})`:""}; you may need to pass a name to createIntrinsicType.`),st.add(c)}function kf(n,a){let c=gg(524288,a);return c.objectFlags=n,c.members=void 0,c.properties=void 0,c.callSignatures=void 0,c.constructSignatures=void 0,c.indexInfos=void 0,c}function Nh(){return ti(Oo(EK.keys(),Hu))}function _f(n){return gg(262144,n)}function RS(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function JE(n){let a;return n.forEach((c,u)=>{ex(c,u)&&(a||(a=[])).push(c)}),a||Xe}function ex(n,a){return!RS(a)&&wm(n)}function DA(n){let a=JE(n),c=vZ(n);return c?bo(a,[c]):a}function hf(n,a,c,u,_){let g=n;return g.members=a,g.properties=Xe,g.callSignatures=c,g.constructSignatures=u,g.indexInfos=_,a!==K&&(g.properties=JE(a)),g}function Cs(n,a,c,u,_){return hf(kf(16,n),a,c,u,_)}function DS(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;let a=jr(n.constructSignatures,u=>!(u.flags&4));if(n.constructSignatures===a)return n;let c=Cs(n.symbol,n.members,n.callSignatures,gt(a)?a:Xe,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=c,c.objectTypeWithoutAbstractConstructSignatures=c,c}function CS(n,a){let c;for(let u=n;u;u=u.parent){if(ch(u)&&u.locals&&!Rh(u)&&(c=a(u.locals,void 0,!0,u)))return c;switch(u.kind){case 312:if(!wp(u))break;case 267:let _=Sr(u);if(c=a(_?.exports||K,void 0,!0,u))return c;break;case 263:case 231:case 264:let g;if((Sr(u).members||K).forEach((T,M)=>{T.flags&788968&&(g||(g=oa())).set(M,T)}),g&&(c=a(g,void 0,!1,u)))return c;break}}return a(be,void 0,!0)}function ny(n){return n===111551?111551:1920}function vb(n,a,c,u,_=new Map){if(!(n&&!I(n)))return;let g=qi(n),T=g.accessibleChainCache||(g.accessibleChainCache=new Map),M=CS(a,(sn,nr,Mn,an)=>an),W=`${u?0:1}|${M&&is(M)}|${c}`;if(T.has(W))return T.get(W);let V=ba(n),te=_.get(V);te||_.set(V,te=[]);let ye=CS(a,_e);return T.set(W,ye),ye;function _e(sn,nr,Mn){if(!yf(te,sn))return;let an=At(sn,nr,Mn);return te.pop(),an}function je(sn,nr){return!qE(sn,a,nr)||!!vb(sn.parent,a,ny(nr),u,_)}function mt(sn,nr,Mn){return(n===(nr||sn)||ts(n)===ts(nr||sn))&&!gt(sn.declarations,$d)&&(Mn||je(ts(sn),c))}function At(sn,nr,Mn){return mt(sn.get(n.escapedName),void 0,nr)?[n]:zc(sn,On=>{if(On.flags&2097152&&On.escapedName!=="export="&&On.escapedName!=="default"&&!(b6(On)&&a&&oc(Gn(a)))&&(!u||gt(On.declarations,sE))&&(!Mn||!gt(On.declarations,mie))&&(nr||!cl(On,281))){let Ln=Oc(On),Yn=rn(On,Ln,nr);if(Yn)return Yn}if(On.escapedName===n.escapedName&&On.exportSymbol&&mt(ts(On.exportSymbol),void 0,nr))return[n]})||(sn===be?rn(tt,tt,nr):void 0)}function rn(sn,nr,Mn){if(mt(sn,nr,Mn))return[sn];let an=xp(nr),On=an&&_e(an,!0);if(On&&je(sn,ny(c)))return[sn].concat(On)}}function qE(n,a,c){let u=!1;return CS(a,_=>{let g=ts(_.get(n.escapedName));if(!g)return!1;if(g===n)return!0;let T=g.flags&2097152&&!cl(g,281);return g=T?Oc(g):g,(T?Ed(g):g.flags)&c?(u=!0,!0):!1}),u}function I(n){if(n.declarations&&n.declarations.length){for(let a of n.declarations)switch(a.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function oe(n,a){return vi(n,a,788968,!1,!0).accessibility===0}function dt(n,a){return vi(n,a,111551,!1,!0).accessibility===0}function nn(n,a,c){return vi(n,a,c,!1,!1).accessibility===0}function Lr(n,a,c,u,_,g){if(!Nn(n))return;let T,M=!1;for(let W of n){let V=vb(W,a,u,!1);if(V){T=W;let _e=Cu(V[0],_);if(_e)return _e}if(g&>(W.declarations,$d)){if(_){M=!0;continue}return{accessibility:0}}let te=KE(W,a,u),ye=Lr(te,a,c,c===W?ny(u):u,_,g);if(ye)return ye}if(M)return{accessibility:0};if(T)return{accessibility:1,errorSymbolName:Si(c,a,u),errorModuleName:T!==c?Si(T,a,1920):void 0}}function wi(n,a,c,u){return vi(n,a,c,u,!0)}function vi(n,a,c,u,_){if(n&&a){let g=Lr([n],a,n,c,u,_);if(g)return g;let T=gn(n.declarations,Zi);if(T){let M=Zi(a);if(T!==M)return{accessibility:2,errorSymbolName:Si(n,a,c),errorModuleName:Si(T),errorNode:ir(a)?a:void 0}}return{accessibility:1,errorSymbolName:Si(n,a,c)}}return{accessibility:0}}function Zi(n){let a=Fn(n,ma);return a&&Sr(a)}function ma(n){return Pd(n)||n.kind===312&&wp(n)}function $d(n){return xF(n)||n.kind===312&&wp(n)}function Cu(n,a){let c;if(!oo(jr(n.declarations,g=>g.kind!==80),u))return;return{accessibility:0,aliasesToMakeVisible:c};function u(g){var T,M;if(!o_(g)){let W=_A(g);if(W&&!Qr(W,32)&&o_(W.parent))return _(g,W);if(Oi(g)&&Ml(g.parent.parent)&&!Qr(g.parent.parent,32)&&o_(g.parent.parent.parent))return _(g,g.parent.parent);if(RF(g)&&!Qr(g,32)&&o_(g.parent))return _(g,g);if(Xa(g)){if(n.flags&2097152&&ir(g)&&((T=g.parent)!=null&&T.parent)&&Oi(g.parent.parent)&&((M=g.parent.parent.parent)!=null&&M.parent)&&Ml(g.parent.parent.parent.parent)&&!Qr(g.parent.parent.parent.parent,32)&&g.parent.parent.parent.parent.parent&&o_(g.parent.parent.parent.parent.parent))return _(g,g.parent.parent.parent.parent);if(n.flags&2){let V=Fn(g,Ml);return Qr(V,32)?!0:o_(V.parent)?_(g,V):!1}}return!1}return!0}function _(g,T){return a&&(Zr(g).isVisible=!0,c=Ig(c,T)),!0}}function wf(n){let a;return n.parent.kind===186||n.parent.kind===233&&!Xh(n.parent)||n.parent.kind===167?a=1160127:n.kind===166||n.kind===211||n.parent.kind===271||n.parent.kind===166&&n.parent.left===n||n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n?a=1920:a=788968,a}function bb(n,a){let c=wf(n),u=Fp(n),_=hl(a,u.escapedText,c,void 0,void 0,!1);return _&&_.flags&262144&&c&788968?{accessibility:0}:!_&&w0(u)&&wi(Sr(ku(u,!1,!1)),u,c,!1).accessibility===0?{accessibility:0}:_&&Cu(_,!0)||{accessibility:1,errorSymbolName:uc(u),errorNode:u}}function Si(n,a,c,u=4,_){let g=70221824;u&2&&(g|=128),u&1&&(g|=512),u&8&&(g|=16384),u&32&&(g|=134217728),u&16&&(g|=1073741824);let T=u&4?Et.symbolToNode:Et.symbolToEntityName;return _?M(_).getText():dN(M);function M(W){let V=T(n,c,a,g),te=a?.kind===312?YK():iS(),ye=a&&Gn(a);return te.writeNode(4,V,ye,W),W}}function Ph(n,a,c=0,u,_){return _?g(_).getText():dN(g);function g(T){let M;c&262144?M=u===1?185:184:M=u===1?180:179;let W=Et.signatureToSignatureDeclaration(n,M,a,CA(c)|70221824|512),V=Rw(),te=a&&Gn(a);return V.writeNode(4,W,te,Oj(T)),T}}function Vn(n,a,c=1064960,u=Q2("")){let _=B.noErrorTruncation||c&1,g=Et.typeToTypeNode(n,a,CA(c)|70221824|(_?1:0));if(g===void 0)return R.fail("should always get typenode");let T=n!==Ft?iS():XK(),M=a&&Gn(a);T.writeNode(4,g,M,u);let W=u.getText(),V=_?K6*2:_k*2;return V&&W&&W.length>=V?W.substr(0,V-3)+"...":W}function tx(n,a){let c=Sb(n.symbol)?Vn(n,n.symbol.valueDeclaration):Vn(n),u=Sb(a.symbol)?Vn(a,a.symbol.valueDeclaration):Vn(a);return c===u&&(c=Eb(n),u=Eb(a)),[c,u]}function Eb(n){return Vn(n,void 0,64)}function Sb(n){return n&&!!n.valueDeclaration&&ht(n.valueDeclaration)&&!zf(n.valueDeclaration)}function CA(n=0){return n&848330095}function NS(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===Wf(n.symbol)||!!(n.flags&524288)&&!!(kr(n)&16777216))}function U_(){return{typeToTypeNode:(ot,Te,Cn,Dr)=>a(Te,Cn,Dr,ui=>u(ot,ui)),indexInfoToIndexSignatureDeclaration:(ot,Te,Cn,Dr)=>a(Te,Cn,Dr,ui=>te(ot,ui,void 0)),signatureToSignatureDeclaration:(ot,Te,Cn,Dr,ui)=>a(Cn,Dr,ui,Ai=>ye(ot,Te,Ai)),symbolToEntityName:(ot,Te,Cn,Dr,ui)=>a(Cn,Dr,ui,Ai=>fo(ot,Ai,Te,!1)),symbolToExpression:(ot,Te,Cn,Dr,ui)=>a(Cn,Dr,ui,Ai=>Rc(ot,Ai,Te)),symbolToTypeParameterDeclarations:(ot,Te,Cn,Dr)=>a(Te,Cn,Dr,ui=>On(ot,ui)),symbolToParameterDeclaration:(ot,Te,Cn,Dr)=>a(Te,Cn,Dr,ui=>rn(ot,ui)),typeParameterToDeclaration:(ot,Te,Cn,Dr)=>a(Te,Cn,Dr,ui=>mt(ot,ui)),symbolTableToDeclarationStatements:(ot,Te,Cn,Dr,ui)=>a(Te,Cn,Dr,Ai=>gl(ot,Ai,ui)),symbolToNode:(ot,Te,Cn,Dr,ui)=>a(Cn,Dr,ui,Ai=>n(ot,Ai,Te))};function n(ot,Te,Cn){if(Te.flags&1073741824){if(ot.valueDeclaration){let ui=No(ot.valueDeclaration);if(ui&&Ya(ui))return ui}let Dr=qi(ot).nameType;if(Dr&&Dr.flags&9216)return Te.enclosingDeclaration=Dr.symbol.valueDeclaration,L.createComputedPropertyName(Rc(Dr.symbol,Te,Cn))}return Rc(ot,Te,Cn)}function a(ot,Te,Cn,Dr){R.assert(ot===void 0||(ot.flags&16)===0);let ui=Cn?.trackSymbol?Cn.moduleResolverHost:Te&134217728?jGe(e):void 0,Ai={enclosingDeclaration:ot,flags:Te||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0};Ai.tracker=new SK(Ai,Cn,ui);let Ii=Dr(Ai);return Ai.truncating&&Ai.flags&1&&Ai.tracker.reportTruncationError(),Ai.encounteredError?void 0:Ii}function c(ot){return ot.truncating?ot.truncating:ot.truncating=ot.approximateLength>(ot.flags&1?K6:_k)}function u(ot,Te){let Cn=Te.flags,Dr=_(ot,Te);return Te.flags=Cn,Dr}function _(ot,Te){var Cn,Dr;i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let ui=Te.flags&8388608;if(Te.flags&=-8388609,!ot){if(!(Te.flags&262144)){Te.encounteredError=!0;return}return Te.approximateLength+=3,L.createKeywordTypeNode(133)}if(Te.flags&536870912||(ot=d_(ot)),ot.flags&1)return ot.aliasSymbol?L.createTypeReferenceNode($n(ot.aliasSymbol),W(ot.aliasTypeArguments,Te)):ot===Ft?iP(L.createKeywordTypeNode(133),3,"unresolved"):(Te.approximateLength+=3,L.createKeywordTypeNode(ot===dn?141:133));if(ot.flags&2)return L.createKeywordTypeNode(159);if(ot.flags&4)return Te.approximateLength+=6,L.createKeywordTypeNode(154);if(ot.flags&8)return Te.approximateLength+=6,L.createKeywordTypeNode(150);if(ot.flags&64)return Te.approximateLength+=6,L.createKeywordTypeNode(163);if(ot.flags&16&&!ot.aliasSymbol)return Te.approximateLength+=7,L.createKeywordTypeNode(136);if(ot.flags&1056){if(ot.symbol.flags&8){let An=Du(ot.symbol),ei=xo(An,Te,788968);if(Ys(An)===ot)return ei;let Gi=yl(ot.symbol);return $p(Gi,0)?bi(ei,L.createTypeReferenceNode(Gi,void 0)):ig(ei)?(ei.isTypeOf=!0,L.createIndexedAccessTypeNode(ei,L.createLiteralTypeNode(L.createStringLiteral(Gi)))):If(ei)?L.createIndexedAccessTypeNode(L.createTypeQueryNode(ei.typeName),L.createLiteralTypeNode(L.createStringLiteral(Gi))):R.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return xo(ot.symbol,Te,788968)}if(ot.flags&128)return Te.approximateLength+=ot.value.length+2,L.createLiteralTypeNode(lr(L.createStringLiteral(ot.value,!!(Te.flags&268435456)),16777216));if(ot.flags&256){let An=ot.value;return Te.approximateLength+=(""+An).length,L.createLiteralTypeNode(An<0?L.createPrefixUnaryExpression(41,L.createNumericLiteral(-An)):L.createNumericLiteral(An))}if(ot.flags&2048)return Te.approximateLength+=F0(ot.value).length+1,L.createLiteralTypeNode(L.createBigIntLiteral(ot.value));if(ot.flags&512)return Te.approximateLength+=ot.intrinsicName.length,L.createLiteralTypeNode(ot.intrinsicName==="true"?L.createTrue():L.createFalse());if(ot.flags&8192){if(!(Te.flags&1048576)){if(dt(ot.symbol,Te.enclosingDeclaration))return Te.approximateLength+=6,xo(ot.symbol,Te,111551);Te.tracker.reportInaccessibleUniqueSymbolError&&Te.tracker.reportInaccessibleUniqueSymbolError()}return Te.approximateLength+=13,L.createTypeOperatorNode(158,L.createKeywordTypeNode(155))}if(ot.flags&16384)return Te.approximateLength+=4,L.createKeywordTypeNode(116);if(ot.flags&32768)return Te.approximateLength+=9,L.createKeywordTypeNode(157);if(ot.flags&65536)return Te.approximateLength+=4,L.createLiteralTypeNode(L.createNull());if(ot.flags&131072)return Te.approximateLength+=5,L.createKeywordTypeNode(146);if(ot.flags&4096)return Te.approximateLength+=6,L.createKeywordTypeNode(155);if(ot.flags&67108864)return Te.approximateLength+=6,L.createKeywordTypeNode(151);if(YN(ot))return Te.flags&4194304&&(!Te.encounteredError&&!(Te.flags&32768)&&(Te.encounteredError=!0),(Dr=(Cn=Te.tracker).reportInaccessibleThisError)==null||Dr.call(Cn)),Te.approximateLength+=4,L.createThisTypeNode();if(!ui&&ot.aliasSymbol&&(Te.flags&16384||oe(ot.aliasSymbol,Te.enclosingDeclaration))){let An=W(ot.aliasTypeArguments,Te);return RS(ot.aliasSymbol.escapedName)&&!(ot.aliasSymbol.flags&32)?L.createTypeReferenceNode(L.createIdentifier(""),An):Nn(An)===1&&ot.aliasSymbol===qo.symbol?L.createArrayTypeNode(An[0]):xo(ot.aliasSymbol,Te,788968,An)}let Ai=kr(ot);if(Ai&4)return R.assert(!!(ot.flags&524288)),ot.node?Xt(ot,Wn):Wn(ot);if(ot.flags&262144||Ai&3){if(ot.flags&262144&&zo(Te.inferTypeParameters,ot)){Te.approximateLength+=yl(ot.symbol).length+6;let ei,Gi=Nu(ot);if(Gi){let co=Bwe(ot,!0);co&&uy(Gi,co)||(Te.approximateLength+=9,ei=Gi&&u(Gi,Te))}return L.createInferTypeNode(je(ot,Te,ei))}if(Te.flags&4&&ot.flags&262144){let ei=Wo(ot,Te);return Te.approximateLength+=yr(ei).length,L.createTypeReferenceNode(L.createIdentifier(yr(ei)),void 0)}if(ot.symbol)return xo(ot.symbol,Te,788968);let An=(ot===de||ot===$)&&w&&w.symbol?(ot===$?"sub-":"super-")+yl(w.symbol):"?";return L.createTypeReferenceNode(L.createIdentifier(An),void 0)}if(ot.flags&1048576&&ot.origin&&(ot=ot.origin),ot.flags&3145728){let An=ot.flags&1048576?QD(ot.types):ot.types;if(Nn(An)===1)return u(An[0],Te);let ei=W(An,Te,!0);if(ei&&ei.length>0)return ot.flags&1048576?L.createUnionTypeNode(ei):L.createIntersectionTypeNode(ei);!Te.encounteredError&&!(Te.flags&262144)&&(Te.encounteredError=!0);return}if(Ai&48)return R.assert(!!(ot.flags&524288)),Qt(ot);if(ot.flags&4194304){let An=ot.type;Te.approximateLength+=6;let ei=u(An,Te);return L.createTypeOperatorNode(143,ei)}if(ot.flags&134217728){let An=ot.texts,ei=ot.types,Gi=L.createTemplateHead(An[0]),co=L.createNodeArray(mn(ei,(la,vc)=>L.createTemplateLiteralTypeSpan(u(la,Te),(vcIi(An));if(ot.flags&33554432){let An=u(ot.baseType,Te),ei=OM(ot)&&Age("NoInfer",!1);return ei?xo(ei,Te,788968,[An]):An}return R.fail("Should be unreachable.");function Ii(An){let ei=u(An.checkType,Te);if(Te.approximateLength+=15,Te.flags&4&&An.root.isDistributive&&!(An.checkType.flags&262144)){let Dl=_f(Ka(262144,"T")),as=Wo(Dl,Te),Dc=L.createTypeReferenceNode(as);Te.approximateLength+=37;let Hs=VA(An.root.checkType,Dl,An.mapper),__=Te.inferTypeParameters;Te.inferTypeParameters=An.root.inferTypeParameters;let Ze=u(io(An.root.extendsType,Hs),Te);Te.inferTypeParameters=__;let vt=Br(io(Ti(An.root.node.trueType),Hs)),$t=Br(io(Ti(An.root.node.falseType),Hs));return L.createConditionalTypeNode(ei,L.createInferTypeNode(L.createTypeParameterDeclaration(void 0,L.cloneNode(Dc.typeName))),L.createConditionalTypeNode(L.createTypeReferenceNode(L.cloneNode(as)),u(An.checkType,Te),L.createConditionalTypeNode(Dc,Ze,vt,$t),L.createKeywordTypeNode(146)),L.createKeywordTypeNode(146))}let Gi=Te.inferTypeParameters;Te.inferTypeParameters=An.root.inferTypeParameters;let co=u(An.extendsType,Te);Te.inferTypeParameters=Gi;let la=Br(i0(An)),vc=Br(o0(An));return L.createConditionalTypeNode(ei,co,la,vc)}function Br(An){var ei,Gi,co;return An.flags&1048576?(ei=Te.visitedTypes)!=null&&ei.has(gu(An))?(Te.flags&131072||(Te.encounteredError=!0,(co=(Gi=Te.tracker)==null?void 0:Gi.reportCyclicStructureError)==null||co.call(Gi)),g(Te)):Xt(An,la=>u(la,Te)):u(An,Te)}function Tr(An){return!!A8(An)}function it(An){return!!An.target&&Tr(An.target)&&!Tr(An)}function kt(An){var ei;R.assert(!!(An.flags&524288));let Gi=An.declaration.readonlyToken?L.createToken(An.declaration.readonlyToken.kind):void 0,co=An.declaration.questionToken?L.createToken(An.declaration.questionToken.kind):void 0,la,vc,Dl=!oC(An)&&!(LA(An).flags&2)&&Te.flags&4&&!(gf(An).flags&262144&&((ei=Nu(gf(An)))==null?void 0:ei.flags)&4194304);if(oC(An)){if(it(An)&&Te.flags&4){let vt=_f(Ka(262144,"T")),$t=Wo(vt,Te);vc=L.createTypeReferenceNode($t)}la=L.createTypeOperatorNode(143,vc||u(LA(An),Te))}else if(Dl){let vt=_f(Ka(262144,"T")),$t=Wo(vt,Te);vc=L.createTypeReferenceNode($t),la=vc}else la=u(gf(An),Te);let as=je(l_(An),Te,la),Dc=An.declaration.nameType?u(sv(An),Te):void 0,Hs=u(Gb(sy(An),!!(wh(An)&4)),Te),__=L.createMappedTypeNode(Gi,as,Dc,co,Hs,void 0);Te.approximateLength+=10;let Ze=lr(__,1);if(it(An)&&Te.flags&4){let vt=io(Nu(Ti(An.declaration.typeParameter.constraint.type))||un,An.mapper);return L.createConditionalTypeNode(u(LA(An),Te),L.createInferTypeNode(L.createTypeParameterDeclaration(void 0,L.cloneNode(vc.typeName),vt.flags&2?void 0:u(vt,Te))),Ze,L.createKeywordTypeNode(146))}else if(Dl)return L.createConditionalTypeNode(u(gf(An),Te),L.createInferTypeNode(L.createTypeParameterDeclaration(void 0,L.cloneNode(vc.typeName),L.createTypeOperatorNode(143,u(LA(An),Te)))),Ze,L.createKeywordTypeNode(146));return Ze}function Qt(An){var ei,Gi;let co=An.id,la=An.symbol;if(la){if(!!(kr(An)&8388608)){let Hs=An.node;if(YI(Hs)&&Ti(Hs)===An){let __=Ol(Te,Hs);if(__)return __}return(ei=Te.visitedTypes)!=null&&ei.has(co)?g(Te):Xt(An,ln)}let as=NS(An)?788968:111551;if($_(la.valueDeclaration))return xo(la,Te,as);if(la.flags&32&&!lZ(la)&&!(la.valueDeclaration&&di(la.valueDeclaration)&&Te.flags&2048&&(!Sc(la.valueDeclaration)||wi(la,Te.enclosingDeclaration,as,!1).accessibility!==0))||la.flags&896||vc())return xo(la,Te,as);if((Gi=Te.visitedTypes)!=null&&Gi.has(co)){let Dc=UB(An);return Dc?xo(Dc,Te,788968):g(Te)}else return Xt(An,ln)}else return ln(An);function vc(){var Dl;let as=!!(la.flags&8192)&>(la.declarations,Hs=>na(Hs)),Dc=!!(la.flags&16)&&(la.parent||gn(la.declarations,Hs=>Hs.parent.kind===312||Hs.parent.kind===268));if(as||Dc)return(!!(Te.flags&4096)||((Dl=Te.visitedTypes)==null?void 0:Dl.has(co)))&&(!(Te.flags&8)||dt(la,Te.enclosingDeclaration))}}function Xt(An,ei){var Gi,co,la;let vc=An.id,Dl=kr(An)&16&&An.symbol&&An.symbol.flags&32,as=kr(An)&4&&An.node?"N"+is(An.node):An.flags&16777216?"N"+is(An.root.node):An.symbol?(Dl?"+":"")+ba(An.symbol):void 0;Te.visitedTypes||(Te.visitedTypes=new Set),as&&!Te.symbolDepth&&(Te.symbolDepth=new Map);let Dc=Te.enclosingDeclaration&&Zr(Te.enclosingDeclaration),Hs=`${gu(An)}|${Te.flags}`;Dc&&(Dc.serializedTypes||(Dc.serializedTypes=new Map));let __=(Gi=Dc?.serializedTypes)==null?void 0:Gi.get(Hs);if(__)return(co=__.trackedSymbols)==null||co.forEach(([Gr,zi,wo])=>Te.tracker.trackSymbol(Gr,zi,wo)),__.truncating&&(Te.truncating=!0),Te.approximateLength+=__.addedLength,bn(__.node);let Ze;if(as){if(Ze=Te.symbolDepth.get(as)||0,Ze>10)return g(Te);Te.symbolDepth.set(as,Ze+1)}Te.visitedTypes.add(vc);let vt=Te.trackedSymbols;Te.trackedSymbols=void 0;let $t=Te.approximateLength,Hn=ei(An),Ir=Te.approximateLength-$t;return!Te.reportedDiagnostic&&!Te.encounteredError&&((la=Dc?.serializedTypes)==null||la.set(Hs,{node:Hn,truncating:Te.truncating,addedLength:Ir,trackedSymbols:Te.trackedSymbols})),Te.visitedTypes.delete(vc),as&&Te.symbolDepth.set(as,Ze),Te.trackedSymbols=vt,Hn;function bn(Gr){return!Js(Gr)&&Ro(Gr)===Gr?Gr:at(L.cloneNode(Sn(Gr,bn,void 0,_r)),Gr)}function _r(Gr,zi,wo,ua,pa){return Gr&&Gr.length===0?at(L.createNodeArray(void 0,Gr.hasTrailingComma),Gr):zn(Gr,zi,wo,ua,pa)}}function ln(An){if(Uu(An)||An.containsError)return kt(An);let ei=c_(An);if(!ei.properties.length&&!ei.indexInfos.length){if(!ei.callSignatures.length&&!ei.constructSignatures.length)return Te.approximateLength+=2,lr(L.createTypeLiteralNode(void 0),1);if(ei.callSignatures.length===1&&!ei.constructSignatures.length){let Dl=ei.callSignatures[0];return ye(Dl,184,Te)}if(ei.constructSignatures.length===1&&!ei.callSignatures.length){let Dl=ei.constructSignatures[0];return ye(Dl,185,Te)}}let Gi=jr(ei.constructSignatures,Dl=>!!(Dl.flags&4));if(gt(Gi)){let Dl=mn(Gi,WA);return ei.callSignatures.length+(ei.constructSignatures.length-Gi.length)+ei.indexInfos.length+(Te.flags&2048?vv(ei.properties,Dc=>!(Dc.flags&4194304)):Nn(ei.properties))&&Dl.push(DS(ei)),u(ha(Dl),Te)}let co=Te.flags;Te.flags|=4194304;let la=lo(ei);Te.flags=co;let vc=L.createTypeLiteralNode(la);return Te.approximateLength+=2,lr(vc,Te.flags&1024?0:1),vc}function Wn(An){let ei=Us(An);if(An.target===qo||An.target===Qo){if(Te.flags&2){let la=u(ei[0],Te);return L.createTypeReferenceNode(An.target===qo?"Array":"ReadonlyArray",[la])}let Gi=u(ei[0],Te),co=L.createArrayTypeNode(Gi);return An.target===qo?co:L.createTypeOperatorNode(148,co)}else if(An.target.objectFlags&8){if(ei=Nc(ei,(Gi,co)=>Gb(Gi,!!(An.target.elementFlags[co]&2))),ei.length>0){let Gi=cv(An),co=W(ei.slice(0,Gi),Te);if(co){let{labeledElementDeclarations:la}=An.target;for(let Dl=0;Dl0){let Dc=(An.target.typeParameters||Xe).length;vc=W(ei.slice(co,Dc),Te)}let Dl=Te.flags;Te.flags|=16;let as=xo(An.symbol,Te,788968,vc);return Te.flags=Dl,la?bi(la,as):as}}}function bi(An,ei){if(ig(An)){let Gi=An.typeArguments,co=An.qualifier;co&&(Fe(co)?Gi!==DT(co)&&(co=zy(L.cloneNode(co),Gi)):Gi!==DT(co.right)&&(co=L.updateQualifiedName(co,co.left,zy(L.cloneNode(co.right),Gi)))),Gi=ei.typeArguments;let la=pi(ei);for(let vc of la)co=co?L.createQualifiedName(co,vc):vc;return L.updateImportTypeNode(An,An.argument,An.attributes,co,Gi,An.isTypeOf)}else{let Gi=An.typeArguments,co=An.typeName;Fe(co)?Gi!==DT(co)&&(co=zy(L.cloneNode(co),Gi)):Gi!==DT(co.right)&&(co=L.updateQualifiedName(co,co.left,zy(L.cloneNode(co.right),Gi))),Gi=ei.typeArguments;let la=pi(ei);for(let vc of la)co=L.createQualifiedName(co,vc);return L.updateTypeReferenceNode(An,co,Gi)}}function pi(An){let ei=An.typeName,Gi=[];for(;!Fe(ei);)Gi.unshift(ei.right),ei=ei.left;return Gi.unshift(ei),Gi}function lo(An){if(c(Te))return[L.createPropertySignature(void 0,"...",void 0,void 0)];let ei=[];for(let la of An.callSignatures)ei.push(ye(la,179,Te));for(let la of An.constructSignatures)la.flags&4||ei.push(ye(la,180,Te));for(let la of An.indexInfos)ei.push(te(la,Te,An.objectFlags&1024?g(Te):void 0));let Gi=An.properties;if(!Gi)return ei;let co=0;for(let la of Gi){if(co++,Te.flags&2048){if(la.flags&4194304)continue;Tf(la)&6&&Te.tracker.reportPrivateInBaseOfClassExpression&&Te.tracker.reportPrivateInBaseOfClassExpression(Vi(la.escapedName))}if(c(Te)&&co+2!(Wn.flags&32768)),0);for(let Wn of ln){let bi=ye(Wn,173,Te,{name:Br,questionToken:Tr});Cn.push(Xt(bi))}if(ln.length||!Tr)return}let it;T(ot,Te)?it=g(Te):(ui&&(Te.reverseMappedStack||(Te.reverseMappedStack=[]),Te.reverseMappedStack.push(ot)),it=Ai?bs(Te,Ai,ot,Ii):L.createKeywordTypeNode(133),ui&&Te.reverseMappedStack.pop());let kt=m_(ot)?[L.createToken(148)]:void 0;kt&&(Te.approximateLength+=9);let Qt=L.createPropertySignature(kt,Br,Tr,it);Cn.push(Xt(Qt));function Xt(ln){var Wn;let bi=(Wn=ot.declarations)==null?void 0:Wn.find(pi=>pi.kind===355);if(bi){let pi=ZL(bi.comment);pi&&hE(ln,[{kind:3,text:`* + * `+pi.replace(/\n/g,` * `)+` - `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else ot.valueDeclaration&&ic(ln,ot.valueDeclaration);return ln}}function W(ot,Se,Cn){if(gt(ot)){if(c(Se))if(Cn){if(ot.length>2)return[u(ot[0],Se),L.createTypeReferenceNode(`... ${ot.length-2} more ...`,void 0),u(ot[ot.length-1],Se)]}else return[L.createTypeReferenceNode("...",void 0)];let di=!(Se.flags&64)?qp():void 0,Ai=[],Ii=0;for(let Br of ot){if(Ii++,c(Se)&&Ii+2{if(!Aoe(Tr,([it],[kt])=>V(it,kt)))for(let[it,kt]of Tr)Ai[kt]=u(it,Se)}),Se.flags=Br}return Ai}}function V(ot,Se){return ot===Se||!!ot.symbol&&ot.symbol===Se.symbol||!!ot.aliasSymbol&&ot.aliasSymbol===Se.aliasSymbol}function te(ot,Se,Cn){let Rr=Hre(ot)||"x",di=u(ot.keyType,Se),Ai=L.createParameterDeclaration(void 0,void 0,Rr,void 0,di,void 0);return Cn||(Cn=u(ot.type||G,Se)),!ot.type&&!(Se.flags&2097152)&&(Se.encounteredError=!0),Se.approximateLength+=Rr.length+4,L.createIndexSignature(ot.isReadonly?[L.createToken(148)]:void 0,[Ai],Cn)}function ye(ot,Se,Cn,Rr){var di;let Ai=Cn.flags&256;Ai&&(Cn.flags&=-257),Cn.approximateLength+=3;let Ii,Br;Cn.flags&32&&ot.target&&ot.mapper&&ot.target.typeParameters?Br=ot.target.typeParameters.map(lo=>u(io(lo,ot.mapper),Cn)):Ii=ot.typeParameters&&ot.typeParameters.map(lo=>mt(lo,Cn));let Tr=dwe(ot,!0)[0],it;if(Cn.enclosingDeclaration&&ot.declaration&&ot.declaration!==Cn.enclosingDeclaration&&!ir(ot.declaration)&&(gt(Tr)||gt(ot.typeParameters))){let lo=function(An,Zr){x.assert(Cn.enclosingDeclaration);let Gi;Qr(Cn.enclosingDeclaration).fakeScopeForSignatureDeclaration===An?Gi=Cn.enclosingDeclaration:Cn.enclosingDeclaration.parent&&Qr(Cn.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===An&&(Gi=Cn.enclosingDeclaration.parent),x.assertOptionalNode(Gi,Ko);let co=Gi?.locals??aa(),ca;if(Zr((os,Dc)=>{co.has(os)||(ca=Tn(ca,os),co.set(os,Dc))}),!ca)return;let vc=it;function Dl(){gn(ca,os=>co.delete(os)),vc?.()}if(Gi)it=Dl;else{let os=bh.createBlock(Xe);Qr(os).fakeScopeForSignatureDeclaration=An,os.locals=co;let Dc=Cn.enclosingDeclaration;ja(os,Dc),Cn.enclosingDeclaration=os,it=()=>{Cn.enclosingDeclaration=Dc,Dl()}}};var kt=lo;lo("params",An=>{for(let Zr of Tr)An(Zr.escapedName,Zr)}),Cn.flags&4&&lo("typeParams",An=>{for(let Zr of ot.typeParameters??Xe){let Gi=Fo(Zr,Cn).escapedText;An(Gi,Zr.symbol)}})}let Qt=(gt(Tr,lo=>lo!==Tr[Tr.length-1]&&!!(Tl(lo)&32768))?ot.parameters:Tr).map(lo=>rn(lo,Cn,Se===176,Rr?.privateSymbolVisitor,Rr?.bundledImports)),Jt=Cn.flags&33554432?void 0:_e(ot,Cn);Jt&&Qt.unshift(Jt);let ln,Wn=Ff(ot);if(Wn){let lo=Wn.kind===2||Wn.kind===3?L.createToken(131):void 0,An=Wn.kind===1||Wn.kind===3?lr(L.createIdentifier(Wn.parameterName),16777216):L.createThisTypeNode(),Zr=Wn.type&&u(Wn.type,Cn);ln=L.createTypePredicateNode(lo,An,Zr)}else{let lo=ds(ot);lo&&!(Ai&&xt(lo))?ln=Oa(Cn,lo,ot,Rr?.privateSymbolVisitor,Rr?.bundledImports):Ai||(ln=L.createKeywordTypeNode(133))}let bi=Rr?.modifiers;if(Se===185&&ot.flags&4){let lo=x_(bi);bi=L.createModifiersFromModifierFlags(lo|64)}let ui=Se===179?L.createCallSignature(Ii,Qt,ln):Se===180?L.createConstructSignature(Ii,Qt,ln):Se===173?L.createMethodSignature(bi,Rr?.name??L.createIdentifier(""),Rr?.questionToken,Ii,Qt,ln):Se===174?L.createMethodDeclaration(bi,void 0,Rr?.name??L.createIdentifier(""),void 0,Ii,Qt,ln,void 0):Se===176?L.createConstructorDeclaration(bi,Qt,void 0):Se===177?L.createGetAccessorDeclaration(bi,Rr?.name??L.createIdentifier(""),Qt,ln,void 0):Se===178?L.createSetAccessorDeclaration(bi,Rr?.name??L.createIdentifier(""),Qt,void 0):Se===181?L.createIndexSignature(bi,Qt,ln):Se===324?L.createJSDocFunctionType(Qt,ln):Se===184?L.createFunctionTypeNode(Ii,Qt,ln??L.createTypeReferenceNode(L.createIdentifier(""))):Se===185?L.createConstructorTypeNode(bi,Ii,Qt,ln??L.createTypeReferenceNode(L.createIdentifier(""))):Se===262?L.createFunctionDeclaration(bi,void 0,Rr?.name?na(Rr.name,Fe):L.createIdentifier(""),Ii,Qt,ln,void 0):Se===218?L.createFunctionExpression(bi,void 0,Rr?.name?na(Rr.name,Fe):L.createIdentifier(""),Ii,Qt,ln,L.createBlock([])):Se===219?L.createArrowFunction(bi,Ii,Qt,ln,void 0,L.createBlock([])):x.assertNever(Se);if(Br&&(ui.typeArguments=L.createNodeArray(Br)),((di=ot.declaration)==null?void 0:di.kind)===330&&ot.declaration.parent.kind===346){let lo=uc(ot.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(An=>An.replace(/^\s+/," ")).join(` -`);rP(ui,3,lo,!0)}return it?.(),ui}function _e(ot,Se){if(ot.thisParameter)return rn(ot.thisParameter,Se);if(ot.declaration&&ir(ot.declaration)){let Cn=nF(ot.declaration);if(Cn&&Cn.typeExpression)return L.createParameterDeclaration(void 0,void 0,"this",void 0,u(Ti(Cn.typeExpression),Se))}}function je(ot,Se,Cn){let Rr=Se.flags;Se.flags&=-513;let di=L.createModifiersFromModifierFlags(tye(ot)),Ai=Fo(ot,Se),Ii=OA(ot),Br=Ii&&u(Ii,Se);return Se.flags=Rr,L.createTypeParameterDeclaration(di,Ai,Cn,Br)}function mt(ot,Se,Cn=Cu(ot)){let Rr=Cn&&u(Cn,Se);return je(ot,Se,Rr)}function At(ot){let Se=cl(ot,169);if(Se)return Se;if(!ch(ot))return cl(ot,348)}function rn(ot,Se,Cn,Rr,di){let Ai=At(ot),Ii=sr(ot);Ai&&Z6e(Ai)&&(Ii=zb(Ii));let Br=vs(Se,Ii,ot,Se.enclosingDeclaration,Rr,di),Tr=!(Se.flags&8192)&&Cn&&Ai&&Am(Ai)?mn(y0(Ai),L.cloneNode):void 0,kt=Ai&&Kh(Ai)||Tl(ot)&32768?L.createToken(26):void 0,Qt=sn(ot,Ai,Se),ln=Ai&&_8(Ai)||Tl(ot)&16384?L.createToken(58):void 0,Wn=L.createParameterDeclaration(Tr,kt,Qt,ln,Br,void 0);return Se.approximateLength+=vl(ot).length+3,Wn}function sn(ot,Se,Cn){return Se&&Se.name?Se.name.kind===80?lr(L.cloneNode(Se.name),16777216):Se.name.kind===166?lr(L.cloneNode(Se.name.right),16777216):Rr(Se.name):vl(ot);function Rr(di){return Ai(di);function Ai(Ii){Cn.tracker.canTrackSymbol&&Ya(Ii)&&jhe(Ii)&&nr(Ii.expression,Cn.enclosingDeclaration,Cn);let Br=Sn(Ii,Ai,void 0,void 0,Ai);return Xa(Br)&&(Br=L.updateBindingElement(Br,Br.dotDotDotToken,Br.propertyName,Br.name,void 0)),Ks(Br)||(Br=L.cloneNode(Br)),lr(Br,16777217)}}}function nr(ot,Se,Cn){if(!Cn.tracker.canTrackSymbol)return;let Rr=Fp(ot),di=hl(Rr,Rr.escapedText,1160127,void 0,void 0,!0);di&&Cn.tracker.trackSymbol(di,Se,111551)}function Mn(ot,Se,Cn,Rr){return Se.tracker.trackSymbol(ot,Se.enclosingDeclaration,Cn),an(ot,Se,Cn,Rr)}function an(ot,Se,Cn,Rr){let di;return!(ot.flags&262144)&&(Se.enclosingDeclaration||Se.flags&64)&&!(Se.flags&134217728)?(di=x.checkDefined(Ii(ot,Cn,!0)),x.assert(di&&di.length>0)):di=[ot],di;function Ii(Br,Tr,it){let kt=yb(Br,Se.enclosingDeclaration,Tr,!!(Se.flags&128)),Qt;if(!kt||JE(kt[0],Se.enclosingDeclaration,kt.length===1?Tr:ry(Tr))){let ln=HE(kt?kt[0]:Br,Se.enclosingDeclaration,Tr);if(Nn(ln)){Qt=ln.map(ui=>gt(ui.declarations,Qd)?jn(ui,Se):void 0);let Wn=ln.map((ui,lo)=>lo);Wn.sort(Jt);let bi=Wn.map(ui=>ln[ui]);for(let ui of bi){let lo=Ii(ui,ry(Tr),!1);if(lo){if(ui.exports&&ui.exports.get("export=")&&r_(ui.exports.get("export="),Br)){kt=lo;break}kt=lo.concat(kt||[mg(ui,Br)||Br]);break}}}}if(kt)return kt;if(it||!(Br.flags&6144))return!it&&!Rr&&gn(Br.declarations,Qd)?void 0:[Br];function Jt(ln,Wn){let bi=Qt[ln],ui=Qt[Wn];if(bi&&ui){let lo=Lp(ui);return Lp(bi)===lo?R3(bi)-R3(ui):lo?-1:1}return 0}}}function On(ot,Se){let Cn;return TC(ot).flags&524384&&(Cn=L.createNodeArray(mn(Nr(ot),di=>mt(di,Se)))),Cn}function Ln(ot,Se,Cn){var Rr;x.assert(ot&&0<=Se&&Sewb(kt,Tr.links.mapper)),Cn)}else Ii=On(di,Cn)}return Ii}function Yn(ot){return MT(ot.objectType)?Yn(ot.objectType):ot}function jn(ot,Se,Cn){let Rr=cl(ot,312);if(!Rr){let it=Wl(ot.declarations,kt=>RA(kt,ot));it&&(Rr=cl(it,312))}if(Rr&&Rr.moduleName!==void 0)return Rr.moduleName;if(!Rr){if(Se.tracker.trackReferencedAmbientModule){let it=jr(ot.declarations,Md);if(Nn(it))for(let kt of it)Se.tracker.trackReferencedAmbientModule(kt,ot)}if(bK.test(ot.escapedName))return ot.escapedName.substring(1,ot.escapedName.length-1)}if(!Se.enclosingDeclaration||!Se.tracker.moduleResolverHost)return bK.test(ot.escapedName)?ot.escapedName.substring(1,ot.escapedName.length-1):Gn(YV(ot)).fileName;let di=Gn(Nl(Se.enclosingDeclaration)),Ai=Cn||di?.impliedNodeFormat,Ii=RP(di.path,Ai),Br=qi(ot),Tr=Br.specifierCache&&Br.specifierCache.get(Ii);if(!Tr){let it=!!xs(B),{moduleResolverHost:kt}=Se.tracker,Qt=it?{...B,baseUrl:kt.getCommonSourceDirectory()}:B;Tr=Va(lIe(ot,Xt,Qt,di,kt,{importModuleSpecifierPreference:it?"non-relative":"project-relative",importModuleSpecifierEnding:it?"minimal":Ai===99?"js":void 0},{overrideImportMode:Cn})),Br.specifierCache??(Br.specifierCache=new Map),Br.specifierCache.set(Ii,Tr)}return Tr}function $n(ot){let Se=L.createIdentifier(Vi(ot.escapedName));return ot.parent?L.createQualifiedName($n(ot.parent),Se):Se}function Ro(ot,Se,Cn,Rr){let di=Mn(ot,Se,Cn,!(Se.flags&16384)),Ai=Cn===111551;if(gt(di[0].declarations,Qd)){let Tr=di.length>1?Br(di,di.length-1,1):void 0,it=Rr||Ln(di,0,Se),kt=Gn(Nl(Se.enclosingDeclaration)),Qt=SF(di[0]),Jt,ln;if((du(B)===3||du(B)===99)&&Qt?.impliedNodeFormat===99&&Qt.impliedNodeFormat!==kt?.impliedNodeFormat&&(Jt=jn(di[0],Se,99),ln=L.createImportAttributes(L.createNodeArray([L.createImportAttribute(L.createStringLiteral("resolution-mode"),L.createStringLiteral("import"))]))),Jt||(Jt=jn(di[0],Se)),!(Se.flags&67108864)&&du(B)!==1&&Jt.includes("/node_modules/")){let bi=Jt;if(du(B)===3||du(B)===99){let ui=kt?.impliedNodeFormat===99?1:99;Jt=jn(di[0],Se,ui),Jt.includes("/node_modules/")?Jt=bi:ln=L.createImportAttributes(L.createNodeArray([L.createImportAttribute(L.createStringLiteral("resolution-mode"),L.createStringLiteral(ui===99?"import":"require"))]))}ln||(Se.encounteredError=!0,Se.tracker.reportLikelyUnsafeImportRequiredError&&Se.tracker.reportLikelyUnsafeImportRequiredError(bi))}let Wn=L.createLiteralTypeNode(L.createStringLiteral(Jt));if(Se.tracker.trackExternalModuleSymbolOfImportTypeNode&&Se.tracker.trackExternalModuleSymbolOfImportTypeNode(di[0]),Se.approximateLength+=Jt.length+10,!Tr||Xu(Tr)){if(Tr){let bi=Fe(Tr)?Tr:Tr.right;Fy(bi,void 0)}return L.createImportTypeNode(Wn,ln,Tr,it,Ai)}else{let bi=Yn(Tr),ui=bi.objectType.typeName;return L.createIndexedAccessTypeNode(L.createImportTypeNode(Wn,ln,ui,it,Ai),bi.indexType)}}let Ii=Br(di,di.length-1,0);if(MT(Ii))return Ii;if(Ai)return L.createTypeQueryNode(Ii);{let Tr=Fe(Ii)?Ii:Ii.right,it=DT(Tr);return Fy(Tr,void 0),L.createTypeReferenceNode(Ii,it)}function Br(Tr,it,kt){let Qt=it===Tr.length-1?Rr:Ln(Tr,it,Se),Jt=Tr[it],ln=Tr[it-1],Wn;if(it===0)Se.flags|=16777216,Wn=qE(Jt,Se),Se.approximateLength+=(Wn?Wn.length:0)+1,Se.flags^=16777216;else if(ln&&xp(ln)){let ui=xp(ln);Gc(ui,(lo,An)=>{if(r_(lo,Jt)&&!p8(An)&&An!=="export=")return Wn=Vi(An),!0})}if(Wn===void 0){let ui=Wl(Jt.declarations,Po);if(ui&&Ya(ui)&&Xu(ui.expression)){let lo=Br(Tr,it-1,kt);return Xu(lo)?L.createIndexedAccessTypeNode(L.createParenthesizedType(L.createTypeQueryNode(lo)),L.createTypeQueryNode(ui.expression)):lo}Wn=qE(Jt,Se)}if(Se.approximateLength+=Wn.length+1,!(Se.flags&16)&&ln&&Cb(ln)&&Cb(ln).get(Jt.escapedName)&&r_(Cb(ln).get(Jt.escapedName),Jt)){let ui=Br(Tr,it-1,kt);return MT(ui)?L.createIndexedAccessTypeNode(ui,L.createLiteralTypeNode(L.createStringLiteral(Wn))):L.createIndexedAccessTypeNode(L.createTypeReferenceNode(ui,Qt),L.createLiteralTypeNode(L.createStringLiteral(Wn)))}let bi=lr(L.createIdentifier(Wn),16777216);if(Qt&&Fy(bi,L.createNodeArray(Qt)),bi.symbol=Jt,it>kt){let ui=Br(Tr,it-1,kt);return Xu(ui)?L.createQualifiedName(ui,bi):x.fail("Impossible construct - an export of an indexed access cannot be reachable")}return bi}}function bo(ot,Se,Cn){let Rr=hl(Se.enclosingDeclaration,ot,788968,void 0,ot,!1);return Rr&&Rr.flags&262144?Rr!==Cn.symbol:!1}function Fo(ot,Se){var Cn,Rr;if(Se.flags&4&&Se.typeParameterNames){let Ai=Se.typeParameterNames.get(hu(ot));if(Ai)return Ai}let di=fo(ot.symbol,Se,788968,!0);if(!(di.kind&80))return L.createIdentifier("(Missing type parameter)");if(Se.flags&4){let Ai=di.escapedText,Ii=((Cn=Se.typeParameterNamesByTextNextNameCount)==null?void 0:Cn.get(Ai))||0,Br=Ai;for(;(Rr=Se.typeParameterNamesByText)!=null&&Rr.has(Br)||bo(Br,Se,ot);)Ii++,Br=`${Ai}_${Ii}`;if(Br!==Ai){let Tr=DT(di);di=L.createIdentifier(Br),Fy(di,Tr)}(Se.typeParameterNamesByTextNextNameCount||(Se.typeParameterNamesByTextNextNameCount=new Map)).set(Ai,Ii),(Se.typeParameterNames||(Se.typeParameterNames=new Map)).set(hu(ot),di),(Se.typeParameterNamesByText||(Se.typeParameterNamesByText=new Set)).add(Br)}return di}function fo(ot,Se,Cn,Rr){let di=Mn(ot,Se,Cn);return Rr&&di.length!==1&&!Se.encounteredError&&!(Se.flags&65536)&&(Se.encounteredError=!0),Ai(di,di.length-1);function Ai(Ii,Br){let Tr=Ln(Ii,Br,Se),it=Ii[Br];Br===0&&(Se.flags|=16777216);let kt=qE(it,Se);Br===0&&(Se.flags^=16777216);let Qt=lr(L.createIdentifier(kt),16777216);return Tr&&Fy(Qt,L.createNodeArray(Tr)),Qt.symbol=it,Br>0?L.createQualifiedName(Ai(Ii,Br-1),Qt):Qt}}function Rc(ot,Se,Cn){let Rr=Mn(ot,Se,Cn);return di(Rr,Rr.length-1);function di(Ai,Ii){let Br=Ln(Ai,Ii,Se),Tr=Ai[Ii];Ii===0&&(Se.flags|=16777216);let it=qE(Tr,Se);Ii===0&&(Se.flags^=16777216);let kt=it.charCodeAt(0);if(R2(kt)&>(Tr.declarations,Qd))return L.createStringLiteral(jn(Tr,Se));if(Ii===0||_U(it,ce)){let Qt=lr(L.createIdentifier(it),16777216);return Br&&Fy(Qt,L.createNodeArray(Br)),Qt.symbol=Tr,Ii>0?L.createPropertyAccessExpression(di(Ai,Ii-1),Qt):Qt}else{kt===91&&(it=it.substring(1,it.length-1),kt=it.charCodeAt(0));let Qt;if(R2(kt)&&!(Tr.flags&8)?Qt=L.createStringLiteral(Yf(it).replace(/\\./g,Jt=>Jt.substring(1)),kt===39):""+ +it===it&&(Qt=L.createNumericLiteral(+it)),!Qt){let Jt=lr(L.createIdentifier(it),16777216);Br&&Fy(Jt,L.createNodeArray(Br)),Jt.symbol=Tr,Qt=Jt}return L.createElementAccessExpression(di(Ai,Ii-1),Qt)}}}function Vf(ot){let Se=Po(ot);return Se?Ya(Se)?!!(po(Se.expression).flags&402653316):Js(Se)?!!(po(Se.argumentExpression).flags&402653316):Da(Se):!1}function sp(ot){let Se=Po(ot);return!!(Se&&Da(Se)&&(Se.singleQuote||!Ks(Se)&&ao(uc(Se,!1),"'")))}function Pn(ot,Se){let Cn=!!Nn(ot.declarations)&&oo(ot.declarations,Vf),Rr=!!Nn(ot.declarations)&&oo(ot.declarations,sp),di=!!(ot.flags&8192),Ai=Xn(ot,Se,Rr,Cn,di);if(Ai)return Ai;let Ii=Vi(ot.escapedName);return B6(Ii,ns(B),Rr,Cn,di)}function Xn(ot,Se,Cn,Rr,di){let Ai=qi(ot).nameType;if(Ai){if(Ai.flags&384){let Ii=""+Ai.value;return!Yp(Ii,ns(B))&&(Rr||!ng(Ii))?L.createStringLiteral(Ii,!!Cn):ng(Ii)&&ao(Ii,"-")?L.createComputedPropertyName(L.createPrefixUnaryExpression(41,L.createNumericLiteral(-Ii))):B6(Ii,ns(B),Cn,Rr,di)}if(Ai.flags&8192)return L.createComputedPropertyName(Rc(Ai.symbol,Se,111551))}}function ro(ot){let Se={...ot};return Se.typeParameterNames&&(Se.typeParameterNames=new Map(Se.typeParameterNames)),Se.typeParameterNamesByText&&(Se.typeParameterNamesByText=new Set(Se.typeParameterNamesByText)),Se.typeParameterSymbolList&&(Se.typeParameterSymbolList=new Set(Se.typeParameterSymbolList)),Se.tracker=new SK(Se,Se.tracker.inner,Se.tracker.moduleResolverHost),Se}function hr(ot,Se){return ot.declarations&&Vr(ot.declarations,Cn=>!!yd(Cn)&&(!Se||!!Fn(Cn,Rr=>Rr===Se)))}function Co(ot,Se){return!(Lr(Se)&4)||!If(ot)||Nn(ot.typeArguments)>=wh(Se.target.typeParameters)}function is(ot){for(;Qr(ot).fakeScopeForSignatureDeclaration;)ot=ot.parent;return ot}function vs(ot,Se,Cn,Rr,di,Ai){if(!Vt(Se)&&Rr){let Tr=hr(Cn,is(Rr));if(Tr&&!ws(Tr)&&!Qp(Tr)){let it=yd(Tr);if(Gd(it,Tr,Se)&&Co(it,Se)){let kt=Ol(ot,it,di,Ai);if(kt)return kt}}}let Ii=ot.flags;Se.flags&8192&&Se.symbol===Cn&&(!ot.enclosingDeclaration||gt(Cn.declarations,Tr=>Gn(Tr)===Gn(ot.enclosingDeclaration)))&&(ot.flags|=1048576);let Br=u(Se,ot);return ot.flags=Ii,Br}function Gd(ot,Se,Cn){let Rr=Ti(ot);return Rr===Cn?!0:Ao(Se)&&Se.questionToken?um(Cn,524288)===Rr:!1}function Oa(ot,Se,Cn,Rr,di){if(!Vt(Se)&&ot.enclosingDeclaration){let Ai=Cn.declaration&&$f(Cn.declaration),Ii=is(ot.enclosingDeclaration);if(Fn(Ai,Br=>Br===Ii)&&Ai){let Br=Ti(Ai);if((Br.flags&262144&&Br.isThisType?io(Br,Cn.mapper):Br)===Se&&Co(Ai,Se)){let it=Ol(ot,Ai,Rr,di);if(it)return it}}}return u(Se,ot)}function Pu(ot,Se,Cn){let Rr=!1,di=Fp(ot);if(ir(ot)&&(hT(di)||Yh(di.parent)||Su(di.parent)&&mj(di.parent.left)&&hT(di.parent.right)))return Rr=!0,{introducesError:Rr,node:ot};let Ai=wf(ot),Ii=Bs(di,Ai,!0,!0);if(Ii&&(ki(Ii,Se.enclosingDeclaration,Ai,!1).accessibility!==0?Rr=!0:(Se.tracker.trackSymbol(Ii,Se.enclosingDeclaration,Ai),Cn?.(Ii)),Fe(ot))){let Br=Xs(Ii),Tr=Ii.flags&262144?Fo(Br,Se):L.cloneNode(ot);return Tr.symbol=Ii,{introducesError:Rr,node:lr(xr(Tr,ot),16777216)}}return{introducesError:Rr,node:ot}}function Ol(ot,Se,Cn,Rr){i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let di=!1,Ai=Gn(Se),Ii=$e(Se,Br,ji);if(di)return;return Ii===Se?at(L.cloneNode(Se),Se):Ii;function Br(Tr){if(Eae(Tr)||Tr.kind===326)return L.createKeywordTypeNode(133);if(Sae(Tr))return L.createKeywordTypeNode(159);if(LR(Tr))return L.createUnionTypeNode([$e(Tr.type,Br,ji),L.createLiteralTypeNode(L.createNull())]);if(sH(Tr))return L.createUnionTypeNode([$e(Tr.type,Br,ji),L.createKeywordTypeNode(157)]);if(V4(Tr))return $e(Tr.type,Br);if(j4(Tr))return L.createArrayTypeNode($e(Tr.type,Br,ji));if(FT(Tr))return L.createTypeLiteralNode(mn(Tr.jsDocPropertyTags,Jt=>{let ln=Fe(Jt.name)?Jt.name:Jt.name.right,Wn=Ue(Ti(Tr),ln.escapedText),bi=Wn&&Jt.typeExpression&&Ti(Jt.typeExpression.type)!==Wn?u(Wn,ot):void 0;return L.createPropertySignature(void 0,ln,Jt.isBracketed||Jt.typeExpression&&sH(Jt.typeExpression.type)?L.createToken(58):void 0,bi||Jt.typeExpression&&$e(Jt.typeExpression.type,Br,ji)||L.createKeywordTypeNode(133))}));if(If(Tr)&&Fe(Tr.typeName)&&Tr.typeName.escapedText==="")return xr(L.createKeywordTypeNode(133),Tr);if((zy(Tr)||If(Tr))&&HF(Tr))return L.createTypeLiteralNode([L.createIndexSignature(void 0,[L.createParameterDeclaration(void 0,void 0,"x",void 0,$e(Tr.typeArguments[0],Br,ji))],$e(Tr.typeArguments[1],Br,ji))]);if(kR(Tr))if(rR(Tr)){let Jt;return L.createConstructorTypeNode(void 0,zn(Tr.typeParameters,Br,fl),to(Tr.parameters,(ln,Wn)=>ln.name&&Fe(ln.name)&&ln.name.escapedText==="new"?(Jt=ln.type,void 0):L.createParameterDeclaration(void 0,it(ln),kt(ln,Wn),ln.questionToken,$e(ln.type,Br,ji),void 0)),$e(Jt||Tr.type,Br,ji)||L.createKeywordTypeNode(133))}else return L.createFunctionTypeNode(zn(Tr.typeParameters,Br,fl),mn(Tr.parameters,(Jt,ln)=>L.createParameterDeclaration(void 0,it(Jt),kt(Jt,ln),Jt.questionToken,$e(Jt.type,Br,ji),void 0)),$e(Tr.type,Br,ji)||L.createKeywordTypeNode(133));if(If(Tr)&&x2(Tr)&&(!Co(Tr,Ti(Tr))||jwe(Tr)||lt===dC(Tr,788968,!0)))return xr(u(Ti(Tr),ot),Tr);if(wv(Tr)){let Jt=Qr(Tr).resolvedSymbol;return x2(Tr)&&Jt&&(!Tr.isTypeOf&&!(Jt.flags&788968)||!(Nn(Tr.typeArguments)>=wh(Nr(Jt))))?xr(u(Ti(Tr),ot),Tr):L.updateImportTypeNode(Tr,L.updateLiteralTypeNode(Tr.argument,Qt(Tr,Tr.argument.literal)),Tr.attributes,Tr.qualifier,zn(Tr.typeArguments,Br,ji),Tr.isTypeOf)}if(Xu(Tr)||Bl(Tr)){let{introducesError:Jt,node:ln}=Pu(Tr,ot,Cn);if(di=di||Jt,ln!==Tr)return ln}return Ai&&$I(Tr)&&hs(Ai,Tr.pos).line===hs(Ai,Tr.end).line&&lr(Tr,1),Sn(Tr,Br,void 0);function it(Jt){return Jt.dotDotDotToken||(Jt.type&&j4(Jt.type)?L.createToken(26):void 0)}function kt(Jt,ln){return Jt.name&&Fe(Jt.name)&&Jt.name.escapedText==="this"?"this":it(Jt)?"args":`arg${ln}`}function Qt(Jt,ln){if(Rr){if(ot.tracker&&ot.tracker.moduleResolverHost){let Wn=abe(Jt);if(Wn){let ui={getCanonicalFileName:Nd(!!e.useCaseSensitiveFileNames),getCurrentDirectory:()=>ot.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>ot.tracker.moduleResolverHost.getCommonSourceDirectory()},lo=i6(ui,Wn);return L.createStringLiteral(lo)}}}else if(ot.tracker&&ot.tracker.trackExternalModuleSymbolOfImportTypeNode){let Wn=ty(ln,ln,void 0);Wn&&ot.tracker.trackExternalModuleSymbolOfImportTypeNode(Wn)}return ln}}}function gl(ot,Se,Cn){var Rr;let di=us(L.createPropertyDeclaration,174,!0),Ai=us((Ct,Ir,pi,Jr)=>L.createPropertySignature(Ct,Ir,pi,Jr),173,!1),Ii=Se.enclosingDeclaration,Br=[],Tr=new Set,it=[],kt=Se;Se={...kt,usedSymbolNames:new Set(kt.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((Rr=kt.remappedSymbolReferences)==null?void 0:Rr.entries()),tracker:void 0};let Qt={...kt.tracker.inner,trackSymbol:(Ct,Ir,pi)=>{var Jr,li;if((Jr=Se.remappedSymbolNames)!=null&&Jr.has(ba(Ct)))return!1;if(ki(Ct,Ir,pi,!1).accessibility===0){let sa=an(Ct,Se,pi);if(!(Ct.flags&4)){let Vo=sa[0],ks=Gn(kt.enclosingDeclaration);gt(Vo.declarations,ps=>Gn(ps)===ks)&&os(Vo)}}else if((li=kt.tracker.inner)!=null&&li.trackSymbol)return kt.tracker.inner.trackSymbol(Ct,Ir,pi);return!1}};Se.tracker=new SK(Se,Qt,kt.tracker.moduleResolverHost),Gc(ot,(Ct,Ir)=>{let pi=Vi(Ir);Bm(Ct,pi)});let Jt=!Cn,ln=ot.get("export=");return ln&&ot.size>1&&ln.flags&2098688&&(ot=aa(),ot.set("export=",ln)),ca(ot),Zr(Br);function Wn(Ct){return!!Ct&&Ct.kind===80}function bi(Ct){return Ml(Ct)?jr(mn(Ct.declarationList.declarations,Po),Wn):jr([Po(Ct)],Wn)}function ui(Ct){let Ir=Vr(Ct,Ll),pi=Kl(Ct,ql),Jr=pi!==-1?Ct[pi]:void 0;if(Jr&&Ir&&Ir.isExportEquals&&Fe(Ir.expression)&&Fe(Jr.name)&&gr(Jr.name)===gr(Ir.expression)&&Jr.body&&N_(Jr.body)){let li=jr(Ct,Vo=>!!(lu(Vo)&32)),Za=Jr.name,sa=Jr.body;if(Nn(li)&&(Jr=L.updateModuleDeclaration(Jr,Jr.modifiers,Jr.name,sa=L.updateModuleBlock(sa,L.createNodeArray([...Jr.body.statements,L.createExportDeclaration(void 0,!1,L.createNamedExports(mn(va(li,Vo=>bi(Vo)),Vo=>L.createExportSpecifier(!1,void 0,Vo))),void 0)]))),Ct=[...Ct.slice(0,pi),Jr,...Ct.slice(pi+1)]),!Vr(Ct,Vo=>Vo!==Jr&&XL(Vo,Za))){Br=[];let Vo=!gt(sa.statements,ks=>$r(ks,32)||Ll(ks)||Xl(ks));gn(sa.statements,ks=>{js(ks,Vo?32:0)}),Ct=[...jr(Ct,ks=>ks!==Jr&&ks!==Ir),...Br]}}return Ct}function lo(Ct){let Ir=jr(Ct,Jr=>Xl(Jr)&&!Jr.moduleSpecifier&&!!Jr.exportClause&&xf(Jr.exportClause));Nn(Ir)>1&&(Ct=[...jr(Ct,li=>!Xl(li)||!!li.moduleSpecifier||!li.exportClause),L.createExportDeclaration(void 0,!1,L.createNamedExports(va(Ir,li=>na(li.exportClause,xf).elements)),void 0)]);let pi=jr(Ct,Jr=>Xl(Jr)&&!!Jr.moduleSpecifier&&!!Jr.exportClause&&xf(Jr.exportClause));if(Nn(pi)>1){let Jr=BC(pi,li=>Da(li.moduleSpecifier)?">"+li.moduleSpecifier.text:">");if(Jr.length!==pi.length)for(let li of Jr)li.length>1&&(Ct=[...jr(Ct,Za=>!li.includes(Za)),L.createExportDeclaration(void 0,!1,L.createNamedExports(va(li,Za=>na(Za.exportClause,xf).elements)),li[0].moduleSpecifier)])}return Ct}function An(Ct){let Ir=Kl(Ct,pi=>Xl(pi)&&!pi.moduleSpecifier&&!pi.attributes&&!!pi.exportClause&&xf(pi.exportClause));if(Ir>=0){let pi=Ct[Ir],Jr=to(pi.exportClause.elements,li=>{if(!li.propertyName){let Za=EL(Ct),sa=jr(Za,Vo=>XL(Ct[Vo],li.name));if(Nn(sa)&&oo(sa,Vo=>dk(Ct[Vo]))){for(let Vo of sa)Ct[Vo]=Gi(Ct[Vo]);return}}return li});Nn(Jr)?Ct[Ir]=L.updateExportDeclaration(pi,pi.modifiers,pi.isTypeOnly,L.updateNamedExports(pi.exportClause,Jr),pi.moduleSpecifier,pi.attributes):Ev(Ct,Ir)}return Ct}function Zr(Ct){return Ct=ui(Ct),Ct=lo(Ct),Ct=An(Ct),Ii&&(Yi(Ii)&&wp(Ii)||ql(Ii))&&(!gt(Ct,a2)||!yre(Ct)&>(Ct,uF))&&Ct.push(Bk(L)),Ct}function Gi(Ct){let Ir=(lu(Ct)|32)&-129;return L.replaceModifiers(Ct,Ir)}function co(Ct){let Ir=lu(Ct)&-33;return L.replaceModifiers(Ct,Ir)}function ca(Ct,Ir,pi){Ir||it.push(new Map),Ct.forEach(Jr=>{vc(Jr,!1,!!pi)}),Ir||(it[it.length-1].forEach(Jr=>{vc(Jr,!0,!!pi)}),it.pop())}function vc(Ct,Ir,pi){let Jr=es(Ct);if(Tr.has(ba(Jr)))return;if(Tr.add(ba(Jr)),!Ir||Nn(Ct.declarations)&>(Ct.declarations,Za=>!!Fn(Za,sa=>sa===Ii))){let Za=Se;Se=ro(Se),Dl(Ct,Ir,pi),Se.reportedDiagnostic&&(kt.reportedDiagnostic=Se.reportedDiagnostic),Se.trackedSymbols&&(Za.trackedSymbols?x.assert(Se.trackedSymbols===Za.trackedSymbols):Za.trackedSymbols=Se.trackedSymbols),Se=Za}}function Dl(Ct,Ir,pi,Jr=Ct.escapedName){var li,Za,sa,Vo,ks,ps;let Wa=Vi(Jr),Rd=Jr==="default";if(Ir&&!(Se.flags&131072)&&CI(Wa)&&!Rd){Se.encounteredError=!0;return}let Dd=Rd&&!!(Ct.flags&-113||Ct.flags&16&&Nn(ms(sr(Ct))))&&!(Ct.flags&2097152),yu=!Dd&&!Ir&&CI(Wa)&&!Rd;(Dd||yu)&&(Ir=!0);let Hl=(Ir?0:32)|(Rd&&!Dd?2048:0),Cd=Ct.flags&1536&&Ct.flags&7&&Jr!=="export=",Ku=Cd&&Is(sr(Ct),Ct);if((Ct.flags&8208||Ku)&&bn(sr(Ct),Ct,Bm(Ct,Wa),Hl),Ct.flags&524288&&m_(Ct,Wa,Hl),Ct.flags&98311&&Jr!=="export="&&!(Ct.flags&4194304)&&!(Ct.flags&32)&&!(Ct.flags&8192)&&!Ku)if(pi)Aa(Ct)&&(yu=!1,Dd=!1);else{let od=sr(Ct),Pp=Bm(Ct,Wa);if(od.symbol&&od.symbol!==Ct&&od.symbol.flags&16&>(od.symbol.declarations,F0)&&((li=od.symbol.members)!=null&&li.size||(Za=od.symbol.exports)!=null&&Za.size))Se.remappedSymbolReferences||(Se.remappedSymbolReferences=new Map),Se.remappedSymbolReferences.set(ba(od.symbol),Ct),Dl(od.symbol,Ir,pi,Jr),Se.remappedSymbolReferences.delete(ba(od.symbol));else if(!(Ct.flags&16)&&Is(od,Ct))bn(od,Ct,Pp,Hl);else{let hx=Ct.flags&2?JM(Ct)?2:1:(sa=Ct.parent)!=null&&sa.valueDeclaration&&Yi((Vo=Ct.parent)==null?void 0:Vo.valueDeclaration)?2:void 0,Z_=Dd||!(Ct.flags&4)?Pp:__(Pp,Ct),jb=Ct.declarations&&Vr(Ct.declarations,Q8=>wi(Q8));jb&&Uc(jb.parent)&&jb.parent.declarations.length===1&&(jb=jb.parent.parent);let Ub=(ks=Ct.declarations)==null?void 0:ks.find(kr);if(Ub&&dr(Ub.parent)&&Fe(Ub.parent.right)&&((ps=od.symbol)!=null&&ps.valueDeclaration)&&Yi(od.symbol.valueDeclaration)){let Q8=Pp===Ub.parent.right.escapedText?void 0:Ub.parent.right;js(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Q8,Pp)])),0),Se.tracker.trackSymbol(od.symbol,Se.enclosingDeclaration,111551)}else{let Q8=at(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Z_,void 0,vs(Se,od,Ct,Ii,os,Cn))],hx)),jb);js(Q8,Z_!==Pp?Hl&-33:Hl),Z_!==Pp&&!Ir&&(js(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Z_,Pp)])),0),yu=!1,Dd=!1)}}}if(Ct.flags&384&&Ar(Ct,Wa,Hl),Ct.flags&32&&(Ct.flags&4&&Ct.valueDeclaration&&dr(Ct.valueDeclaration.parent)&&Zc(Ct.valueDeclaration.parent.right)?Ei(Ct,Bm(Ct,Wa),Hl):pa(Ct,Bm(Ct,Wa),Hl)),(Ct.flags&1536&&(!Cd||$t(Ct))||Ku)&&Hn(Ct,Wa,Hl),Ct.flags&64&&!(Ct.flags&32)&&Qe(Ct,Wa,Hl),Ct.flags&2097152&&Ei(Ct,Bm(Ct,Wa),Hl),Ct.flags&4&&Ct.escapedName==="export="&&Aa(Ct),Ct.flags&8388608&&Ct.declarations)for(let od of Ct.declarations){let Pp=mu(od,od.moduleSpecifier);Pp&&js(L.createExportDeclaration(void 0,od.isTypeOnly,void 0,L.createStringLiteral(jn(Pp,Se))),0)}Dd?js(L.createExportAssignment(void 0,!1,L.createIdentifier(Bm(Ct,Wa))),0):yu&&js(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Bm(Ct,Wa),Wa)])),0)}function os(Ct){if(gt(Ct.declarations,P0))return;x.assertIsDefined(it[it.length-1]),__(Vi(Ct.escapedName),Ct);let Ir=!!(Ct.flags&2097152)&&!gt(Ct.declarations,pi=>!!Fn(pi,Xl)||yh(pi)||td(pi)&&!vh(pi.moduleReference));it[Ir?0:it.length-1].set(ba(Ct),Ct)}function Dc(Ct){return Yi(Ct)&&(wp(Ct)||Jf(Ct))||Md(Ct)&&!E_(Ct)}function js(Ct,Ir){if(Am(Ct)){let pi=0,Jr=Se.enclosingDeclaration&&(qf(Se.enclosingDeclaration)?Gn(Se.enclosingDeclaration):Se.enclosingDeclaration);Ir&32&&Jr&&(Dc(Jr)||ql(Jr))&&dk(Ct)&&(pi|=32),Jt&&!(pi&32)&&(!Jr||!(Jr.flags&33554432))&&(hE(Ct)||Ml(Ct)||Ec(Ct)||Sc(Ct)||ql(Ct))&&(pi|=128),Ir&2048&&(Sc(Ct)||pu(Ct)||Ec(Ct))&&(pi|=2048),pi&&(Ct=L.replaceModifiers(Ct,pi|lu(Ct)))}Br.push(Ct)}function m_(Ct,Ir,pi){var Jr;let li=Qke(Ct),Za=qi(Ct).typeParameters,sa=mn(Za,Dd=>mt(Dd,Se)),Vo=(Jr=Ct.declarations)==null?void 0:Jr.find(qf),ks=QL(Vo?Vo.comment||Vo.parent.comment:void 0),ps=Se.flags;Se.flags|=8388608;let Wa=Se.enclosingDeclaration;Se.enclosingDeclaration=Vo;let Rd=Vo&&Vo.typeExpression&&$0(Vo.typeExpression)&&Ol(Se,Vo.typeExpression.type,os,Cn)||u(li,Se);js(_E(L.createTypeAliasDeclaration(void 0,Bm(Ct,Ir),sa,Rd),ks?[{kind:3,text:`* - * `+ks.replace(/\n/g,` + `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else ot.valueDeclaration&&ic(ln,ot.valueDeclaration);return ln}}function W(ot,Te,Cn){if(gt(ot)){if(c(Te))if(Cn){if(ot.length>2)return[u(ot[0],Te),L.createTypeReferenceNode(`... ${ot.length-2} more ...`,void 0),u(ot[ot.length-1],Te)]}else return[L.createTypeReferenceNode("...",void 0)];let ui=!(Te.flags&64)?Xp():void 0,Ai=[],Ii=0;for(let Br of ot){if(Ii++,c(Te)&&Ii+2{if(!Coe(Tr,([it],[kt])=>V(it,kt)))for(let[it,kt]of Tr)Ai[kt]=u(it,Te)}),Te.flags=Br}return Ai}}function V(ot,Te){return ot===Te||!!ot.symbol&&ot.symbol===Te.symbol||!!ot.aliasSymbol&&ot.aliasSymbol===Te.aliasSymbol}function te(ot,Te,Cn){let Dr=Yre(ot)||"x",ui=u(ot.keyType,Te),Ai=L.createParameterDeclaration(void 0,void 0,Dr,void 0,ui,void 0);return Cn||(Cn=u(ot.type||G,Te)),!ot.type&&!(Te.flags&2097152)&&(Te.encounteredError=!0),Te.approximateLength+=Dr.length+4,L.createIndexSignature(ot.isReadonly?[L.createToken(148)]:void 0,[Ai],Cn)}function ye(ot,Te,Cn,Dr){var ui;let Ai=Cn.flags&256;Ai&&(Cn.flags&=-257),Cn.approximateLength+=3;let Ii,Br;Cn.flags&32&&ot.target&&ot.mapper&&ot.target.typeParameters?Br=ot.target.typeParameters.map(lo=>u(io(lo,ot.mapper),Cn)):Ii=ot.typeParameters&&ot.typeParameters.map(lo=>mt(lo,Cn));let Tr=hwe(ot,!0)[0],it;if(Cn.enclosingDeclaration&&ot.declaration&&ot.declaration!==Cn.enclosingDeclaration&&!ir(ot.declaration)&&(gt(Tr)||gt(ot.typeParameters))){let lo=function(An,ei){R.assert(Cn.enclosingDeclaration);let Gi;Zr(Cn.enclosingDeclaration).fakeScopeForSignatureDeclaration===An?Gi=Cn.enclosingDeclaration:Cn.enclosingDeclaration.parent&&Zr(Cn.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===An&&(Gi=Cn.enclosingDeclaration.parent),R.assertOptionalNode(Gi,Ho);let co=Gi?.locals??oa(),la;if(ei((as,Dc)=>{co.has(as)||(la=Tn(la,as),co.set(as,Dc))}),!la)return;let vc=it;function Dl(){gn(la,as=>co.delete(as)),vc?.()}if(Gi)it=Dl;else{let as=Eh.createBlock(Xe);Zr(as).fakeScopeForSignatureDeclaration=An,as.locals=co;let Dc=Cn.enclosingDeclaration;ja(as,Dc),Cn.enclosingDeclaration=as,it=()=>{Cn.enclosingDeclaration=Dc,Dl()}}};var kt=lo;lo("params",An=>{for(let ei of Tr)An(ei.escapedName,ei)}),Cn.flags&4&&lo("typeParams",An=>{for(let ei of ot.typeParameters??Xe){let Gi=Wo(ei,Cn).escapedText;An(Gi,ei.symbol)}})}let Qt=(gt(Tr,lo=>lo!==Tr[Tr.length-1]&&!!(Tl(lo)&32768))?ot.parameters:Tr).map(lo=>rn(lo,Cn,Te===176,Dr?.privateSymbolVisitor,Dr?.bundledImports)),Xt=Cn.flags&33554432?void 0:_e(ot,Cn);Xt&&Qt.unshift(Xt);let ln,Wn=Ff(ot);if(Wn){let lo=Wn.kind===2||Wn.kind===3?L.createToken(131):void 0,An=Wn.kind===1||Wn.kind===3?lr(L.createIdentifier(Wn.parameterName),16777216):L.createThisTypeNode(),ei=Wn.type&&u(Wn.type,Cn);ln=L.createTypePredicateNode(lo,An,ei)}else{let lo=us(ot);lo&&!(Ai&&xt(lo))?ln=Wa(Cn,lo,ot,Dr?.privateSymbolVisitor,Dr?.bundledImports):Ai||(ln=L.createKeywordTypeNode(133))}let bi=Dr?.modifiers;if(Te===185&&ot.flags&4){let lo=x_(bi);bi=L.createModifiersFromModifierFlags(lo|64)}let pi=Te===179?L.createCallSignature(Ii,Qt,ln):Te===180?L.createConstructSignature(Ii,Qt,ln):Te===173?L.createMethodSignature(bi,Dr?.name??L.createIdentifier(""),Dr?.questionToken,Ii,Qt,ln):Te===174?L.createMethodDeclaration(bi,void 0,Dr?.name??L.createIdentifier(""),void 0,Ii,Qt,ln,void 0):Te===176?L.createConstructorDeclaration(bi,Qt,void 0):Te===177?L.createGetAccessorDeclaration(bi,Dr?.name??L.createIdentifier(""),Qt,ln,void 0):Te===178?L.createSetAccessorDeclaration(bi,Dr?.name??L.createIdentifier(""),Qt,void 0):Te===181?L.createIndexSignature(bi,Qt,ln):Te===324?L.createJSDocFunctionType(Qt,ln):Te===184?L.createFunctionTypeNode(Ii,Qt,ln??L.createTypeReferenceNode(L.createIdentifier(""))):Te===185?L.createConstructorTypeNode(bi,Ii,Qt,ln??L.createTypeReferenceNode(L.createIdentifier(""))):Te===262?L.createFunctionDeclaration(bi,void 0,Dr?.name?ta(Dr.name,Fe):L.createIdentifier(""),Ii,Qt,ln,void 0):Te===218?L.createFunctionExpression(bi,void 0,Dr?.name?ta(Dr.name,Fe):L.createIdentifier(""),Ii,Qt,ln,L.createBlock([])):Te===219?L.createArrowFunction(bi,Ii,Qt,ln,void 0,L.createBlock([])):R.assertNever(Te);if(Br&&(pi.typeArguments=L.createNodeArray(Br)),((ui=ot.declaration)==null?void 0:ui.kind)===330&&ot.declaration.parent.kind===346){let lo=uc(ot.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(An=>An.replace(/^\s+/," ")).join(` +`);iP(pi,3,lo,!0)}return it?.(),pi}function _e(ot,Te){if(ot.thisParameter)return rn(ot.thisParameter,Te);if(ot.declaration&&ir(ot.declaration)){let Cn=nF(ot.declaration);if(Cn&&Cn.typeExpression)return L.createParameterDeclaration(void 0,void 0,"this",void 0,u(Ti(Cn.typeExpression),Te))}}function je(ot,Te,Cn){let Dr=Te.flags;Te.flags&=-513;let ui=L.createModifiersFromModifierFlags(aye(ot)),Ai=Wo(ot,Te),Ii=OA(ot),Br=Ii&&u(Ii,Te);return Te.flags=Dr,L.createTypeParameterDeclaration(ui,Ai,Cn,Br)}function mt(ot,Te,Cn=Nu(ot)){let Dr=Cn&&u(Cn,Te);return je(ot,Te,Dr)}function At(ot){let Te=cl(ot,169);if(Te)return Te;if(!dh(ot))return cl(ot,348)}function rn(ot,Te,Cn,Dr,ui){let Ai=At(ot),Ii=sr(ot);Ai&&o4e(Ai)&&(Ii=Bb(Ii));let Br=bs(Te,Ii,ot,Te.enclosingDeclaration,Dr,ui),Tr=!(Te.flags&8192)&&Cn&&Ai&&Am(Ai)?mn(v0(Ai),L.cloneNode):void 0,kt=Ai&&Jh(Ai)||Tl(ot)&32768?L.createToken(26):void 0,Qt=sn(ot,Ai,Te),ln=Ai&&h8(Ai)||Tl(ot)&16384?L.createToken(58):void 0,Wn=L.createParameterDeclaration(Tr,kt,Qt,ln,Br,void 0);return Te.approximateLength+=yl(ot).length+3,Wn}function sn(ot,Te,Cn){return Te&&Te.name?Te.name.kind===80?lr(L.cloneNode(Te.name),16777216):Te.name.kind===166?lr(L.cloneNode(Te.name.right),16777216):Dr(Te.name):yl(ot);function Dr(ui){return Ai(ui);function Ai(Ii){Cn.tracker.canTrackSymbol&&Ya(Ii)&&qhe(Ii)&&nr(Ii.expression,Cn.enclosingDeclaration,Cn);let Br=Sn(Ii,Ai,void 0,void 0,Ai);return Xa(Br)&&(Br=L.updateBindingElement(Br,Br.dotDotDotToken,Br.propertyName,Br.name,void 0)),Js(Br)||(Br=L.cloneNode(Br)),lr(Br,16777217)}}}function nr(ot,Te,Cn){if(!Cn.tracker.canTrackSymbol)return;let Dr=Fp(ot),ui=hl(Dr,Dr.escapedText,1160127,void 0,void 0,!0);ui&&Cn.tracker.trackSymbol(ui,Te,111551)}function Mn(ot,Te,Cn,Dr){return Te.tracker.trackSymbol(ot,Te.enclosingDeclaration,Cn),an(ot,Te,Cn,Dr)}function an(ot,Te,Cn,Dr){let ui;return!(ot.flags&262144)&&(Te.enclosingDeclaration||Te.flags&64)&&!(Te.flags&134217728)?(ui=R.checkDefined(Ii(ot,Cn,!0)),R.assert(ui&&ui.length>0)):ui=[ot],ui;function Ii(Br,Tr,it){let kt=vb(Br,Te.enclosingDeclaration,Tr,!!(Te.flags&128)),Qt;if(!kt||qE(kt[0],Te.enclosingDeclaration,kt.length===1?Tr:ny(Tr))){let ln=KE(kt?kt[0]:Br,Te.enclosingDeclaration,Tr);if(Nn(ln)){Qt=ln.map(pi=>gt(pi.declarations,$d)?jn(pi,Te):void 0);let Wn=ln.map((pi,lo)=>lo);Wn.sort(Xt);let bi=Wn.map(pi=>ln[pi]);for(let pi of bi){let lo=Ii(pi,ny(Tr),!1);if(lo){if(pi.exports&&pi.exports.get("export=")&&i_(pi.exports.get("export="),Br)){kt=lo;break}kt=lo.concat(kt||[_g(pi,Br)||Br]);break}}}}if(kt)return kt;if(it||!(Br.flags&6144))return!it&&!Dr&&gn(Br.declarations,$d)?void 0:[Br];function Xt(ln,Wn){let bi=Qt[ln],pi=Qt[Wn];if(bi&&pi){let lo=Lp(pi);return Lp(bi)===lo?R3(bi)-R3(pi):lo?-1:1}return 0}}}function On(ot,Te){let Cn;return SC(ot).flags&524384&&(Cn=L.createNodeArray(mn(Nr(ot),ui=>mt(ui,Te)))),Cn}function Ln(ot,Te,Cn){var Dr;R.assert(ot&&0<=Te&&TeOb(kt,Tr.links.mapper)),Cn)}else Ii=On(ui,Cn)}return Ii}function Yn(ot){return MT(ot.objectType)?Yn(ot.objectType):ot}function jn(ot,Te,Cn){let Dr=cl(ot,312);if(!Dr){let it=Wl(ot.declarations,kt=>RA(kt,ot));it&&(Dr=cl(it,312))}if(Dr&&Dr.moduleName!==void 0)return Dr.moduleName;if(!Dr){if(Te.tracker.trackReferencedAmbientModule){let it=jr(ot.declarations,Pd);if(Nn(it))for(let kt of it)Te.tracker.trackReferencedAmbientModule(kt,ot)}if(bK.test(ot.escapedName))return ot.escapedName.substring(1,ot.escapedName.length-1)}if(!Te.enclosingDeclaration||!Te.tracker.moduleResolverHost)return bK.test(ot.escapedName)?ot.escapedName.substring(1,ot.escapedName.length-1):Gn(YV(ot)).fileName;let ui=Gn(Nl(Te.enclosingDeclaration)),Ai=Cn||ui?.impliedNodeFormat,Ii=DP(ui.path,Ai),Br=qi(ot),Tr=Br.specifierCache&&Br.specifierCache.get(Ii);if(!Tr){let it=!!Rs(B),{moduleResolverHost:kt}=Te.tracker,Qt=it?{...B,baseUrl:kt.getCommonSourceDirectory()}:B;Tr=Va(mIe(ot,Yt,Qt,ui,kt,{importModuleSpecifierPreference:it?"non-relative":"project-relative",importModuleSpecifierEnding:it?"minimal":Ai===99?"js":void 0},{overrideImportMode:Cn})),Br.specifierCache??(Br.specifierCache=new Map),Br.specifierCache.set(Ii,Tr)}return Tr}function $n(ot){let Te=L.createIdentifier(Vi(ot.escapedName));return ot.parent?L.createQualifiedName($n(ot.parent),Te):Te}function xo(ot,Te,Cn,Dr){let ui=Mn(ot,Te,Cn,!(Te.flags&16384)),Ai=Cn===111551;if(gt(ui[0].declarations,$d)){let Tr=ui.length>1?Br(ui,ui.length-1,1):void 0,it=Dr||Ln(ui,0,Te),kt=Gn(Nl(Te.enclosingDeclaration)),Qt=SF(ui[0]),Xt,ln;if((uu(B)===3||uu(B)===99)&&Qt?.impliedNodeFormat===99&&Qt.impliedNodeFormat!==kt?.impliedNodeFormat&&(Xt=jn(ui[0],Te,99),ln=L.createImportAttributes(L.createNodeArray([L.createImportAttribute(L.createStringLiteral("resolution-mode"),L.createStringLiteral("import"))]))),Xt||(Xt=jn(ui[0],Te)),!(Te.flags&67108864)&&uu(B)!==1&&Xt.includes("/node_modules/")){let bi=Xt;if(uu(B)===3||uu(B)===99){let pi=kt?.impliedNodeFormat===99?1:99;Xt=jn(ui[0],Te,pi),Xt.includes("/node_modules/")?Xt=bi:ln=L.createImportAttributes(L.createNodeArray([L.createImportAttribute(L.createStringLiteral("resolution-mode"),L.createStringLiteral(pi===99?"import":"require"))]))}ln||(Te.encounteredError=!0,Te.tracker.reportLikelyUnsafeImportRequiredError&&Te.tracker.reportLikelyUnsafeImportRequiredError(bi))}let Wn=L.createLiteralTypeNode(L.createStringLiteral(Xt));if(Te.tracker.trackExternalModuleSymbolOfImportTypeNode&&Te.tracker.trackExternalModuleSymbolOfImportTypeNode(ui[0]),Te.approximateLength+=Xt.length+10,!Tr||Xu(Tr)){if(Tr){let bi=Fe(Tr)?Tr:Tr.right;zy(bi,void 0)}return L.createImportTypeNode(Wn,ln,Tr,it,Ai)}else{let bi=Yn(Tr),pi=bi.objectType.typeName;return L.createIndexedAccessTypeNode(L.createImportTypeNode(Wn,ln,pi,it,Ai),bi.indexType)}}let Ii=Br(ui,ui.length-1,0);if(MT(Ii))return Ii;if(Ai)return L.createTypeQueryNode(Ii);{let Tr=Fe(Ii)?Ii:Ii.right,it=DT(Tr);return zy(Tr,void 0),L.createTypeReferenceNode(Ii,it)}function Br(Tr,it,kt){let Qt=it===Tr.length-1?Dr:Ln(Tr,it,Te),Xt=Tr[it],ln=Tr[it-1],Wn;if(it===0)Te.flags|=16777216,Wn=XE(Xt,Te),Te.approximateLength+=(Wn?Wn.length:0)+1,Te.flags^=16777216;else if(ln&&xp(ln)){let pi=xp(ln);zc(pi,(lo,An)=>{if(i_(lo,Xt)&&!f8(An)&&An!=="export=")return Wn=Vi(An),!0})}if(Wn===void 0){let pi=Wl(Xt.declarations,No);if(pi&&Ya(pi)&&Xu(pi.expression)){let lo=Br(Tr,it-1,kt);return Xu(lo)?L.createIndexedAccessTypeNode(L.createParenthesizedType(L.createTypeQueryNode(lo)),L.createTypeQueryNode(pi.expression)):lo}Wn=XE(Xt,Te)}if(Te.approximateLength+=Wn.length+1,!(Te.flags&16)&&ln&&Nb(ln)&&Nb(ln).get(Xt.escapedName)&&i_(Nb(ln).get(Xt.escapedName),Xt)){let pi=Br(Tr,it-1,kt);return MT(pi)?L.createIndexedAccessTypeNode(pi,L.createLiteralTypeNode(L.createStringLiteral(Wn))):L.createIndexedAccessTypeNode(L.createTypeReferenceNode(pi,Qt),L.createLiteralTypeNode(L.createStringLiteral(Wn)))}let bi=lr(L.createIdentifier(Wn),16777216);if(Qt&&zy(bi,L.createNodeArray(Qt)),bi.symbol=Xt,it>kt){let pi=Br(Tr,it-1,kt);return Xu(pi)?L.createQualifiedName(pi,bi):R.fail("Impossible construct - an export of an indexed access cannot be reachable")}return bi}}function vo(ot,Te,Cn){let Dr=hl(Te.enclosingDeclaration,ot,788968,void 0,ot,!1);return Dr&&Dr.flags&262144?Dr!==Cn.symbol:!1}function Wo(ot,Te){var Cn,Dr;if(Te.flags&4&&Te.typeParameterNames){let Ai=Te.typeParameterNames.get(gu(ot));if(Ai)return Ai}let ui=fo(ot.symbol,Te,788968,!0);if(!(ui.kind&80))return L.createIdentifier("(Missing type parameter)");if(Te.flags&4){let Ai=ui.escapedText,Ii=((Cn=Te.typeParameterNamesByTextNextNameCount)==null?void 0:Cn.get(Ai))||0,Br=Ai;for(;(Dr=Te.typeParameterNamesByText)!=null&&Dr.has(Br)||vo(Br,Te,ot);)Ii++,Br=`${Ai}_${Ii}`;if(Br!==Ai){let Tr=DT(ui);ui=L.createIdentifier(Br),zy(ui,Tr)}(Te.typeParameterNamesByTextNextNameCount||(Te.typeParameterNamesByTextNextNameCount=new Map)).set(Ai,Ii),(Te.typeParameterNames||(Te.typeParameterNames=new Map)).set(gu(ot),ui),(Te.typeParameterNamesByText||(Te.typeParameterNamesByText=new Set)).add(Br)}return ui}function fo(ot,Te,Cn,Dr){let ui=Mn(ot,Te,Cn);return Dr&&ui.length!==1&&!Te.encounteredError&&!(Te.flags&65536)&&(Te.encounteredError=!0),Ai(ui,ui.length-1);function Ai(Ii,Br){let Tr=Ln(Ii,Br,Te),it=Ii[Br];Br===0&&(Te.flags|=16777216);let kt=XE(it,Te);Br===0&&(Te.flags^=16777216);let Qt=lr(L.createIdentifier(kt),16777216);return Tr&&zy(Qt,L.createNodeArray(Tr)),Qt.symbol=it,Br>0?L.createQualifiedName(Ai(Ii,Br-1),Qt):Qt}}function Rc(ot,Te,Cn){let Dr=Mn(ot,Te,Cn);return ui(Dr,Dr.length-1);function ui(Ai,Ii){let Br=Ln(Ai,Ii,Te),Tr=Ai[Ii];Ii===0&&(Te.flags|=16777216);let it=XE(Tr,Te);Ii===0&&(Te.flags^=16777216);let kt=it.charCodeAt(0);if(D2(kt)&>(Tr.declarations,$d))return L.createStringLiteral(jn(Tr,Te));if(Ii===0||_U(it,ce)){let Qt=lr(L.createIdentifier(it),16777216);return Br&&zy(Qt,L.createNodeArray(Br)),Qt.symbol=Tr,Ii>0?L.createPropertyAccessExpression(ui(Ai,Ii-1),Qt):Qt}else{kt===91&&(it=it.substring(1,it.length-1),kt=it.charCodeAt(0));let Qt;if(D2(kt)&&!(Tr.flags&8)?Qt=L.createStringLiteral(Yf(it).replace(/\\./g,Xt=>Xt.substring(1)),kt===39):""+ +it===it&&(Qt=L.createNumericLiteral(+it)),!Qt){let Xt=lr(L.createIdentifier(it),16777216);Br&&zy(Xt,L.createNodeArray(Br)),Xt.symbol=Tr,Qt=Xt}return L.createElementAccessExpression(ui(Ai,Ii-1),Qt)}}}function Vf(ot){let Te=No(ot);return Te?Ya(Te)?!!(po(Te.expression).flags&402653316):qs(Te)?!!(po(Te.argumentExpression).flags&402653316):Ca(Te):!1}function sp(ot){let Te=No(ot);return!!(Te&&Ca(Te)&&(Te.singleQuote||!Js(Te)&&ao(uc(Te,!1),"'")))}function Pn(ot,Te){let Cn=!!Nn(ot.declarations)&&oo(ot.declarations,Vf),Dr=!!Nn(ot.declarations)&&oo(ot.declarations,sp),ui=!!(ot.flags&8192),Ai=Xn(ot,Te,Dr,Cn,ui);if(Ai)return Ai;let Ii=Vi(ot.escapedName);return B6(Ii,rs(B),Dr,Cn,ui)}function Xn(ot,Te,Cn,Dr,ui){let Ai=qi(ot).nameType;if(Ai){if(Ai.flags&384){let Ii=""+Ai.value;return!$p(Ii,rs(B))&&(Dr||!rg(Ii))?L.createStringLiteral(Ii,!!Cn):rg(Ii)&&ao(Ii,"-")?L.createComputedPropertyName(L.createPrefixUnaryExpression(41,L.createNumericLiteral(-Ii))):B6(Ii,rs(B),Cn,Dr,ui)}if(Ai.flags&8192)return L.createComputedPropertyName(Rc(Ai.symbol,Te,111551))}}function ro(ot){let Te={...ot};return Te.typeParameterNames&&(Te.typeParameterNames=new Map(Te.typeParameterNames)),Te.typeParameterNamesByText&&(Te.typeParameterNamesByText=new Set(Te.typeParameterNamesByText)),Te.typeParameterSymbolList&&(Te.typeParameterSymbolList=new Set(Te.typeParameterSymbolList)),Te.tracker=new SK(Te,Te.tracker.inner,Te.tracker.moduleResolverHost),Te}function gr(ot,Te){return ot.declarations&&Vr(ot.declarations,Cn=>!!hd(Cn)&&(!Te||!!Fn(Cn,Dr=>Dr===Te)))}function Do(ot,Te){return!(kr(Te)&4)||!If(ot)||Nn(ot.typeArguments)>=Oh(Te.target.typeParameters)}function os(ot){for(;Zr(ot).fakeScopeForSignatureDeclaration;)ot=ot.parent;return ot}function bs(ot,Te,Cn,Dr,ui,Ai){if(!Ut(Te)&&Dr){let Tr=gr(Cn,os(Dr));if(Tr&&!Ws(Tr)&&!Zp(Tr)){let it=hd(Tr);if(Bd(it,Tr,Te)&&Do(it,Te)){let kt=Ol(ot,it,ui,Ai);if(kt)return kt}}}let Ii=ot.flags;Te.flags&8192&&Te.symbol===Cn&&(!ot.enclosingDeclaration||gt(Cn.declarations,Tr=>Gn(Tr)===Gn(ot.enclosingDeclaration)))&&(ot.flags|=1048576);let Br=u(Te,ot);return ot.flags=Ii,Br}function Bd(ot,Te,Cn){let Dr=Ti(ot);return Dr===Cn?!0:To(Te)&&Te.questionToken?um(Cn,524288)===Dr:!1}function Wa(ot,Te,Cn,Dr,ui){if(!Ut(Te)&&ot.enclosingDeclaration){let Ai=Cn.declaration&&$f(Cn.declaration),Ii=os(ot.enclosingDeclaration);if(Fn(Ai,Br=>Br===Ii)&&Ai){let Br=Ti(Ai);if((Br.flags&262144&&Br.isThisType?io(Br,Cn.mapper):Br)===Te&&Do(Ai,Te)){let it=Ol(ot,Ai,Dr,ui);if(it)return it}}}return u(Te,ot)}function Mu(ot,Te,Cn){let Dr=!1,ui=Fp(ot);if(ir(ot)&&(hT(ui)||$h(ui.parent)||Tu(ui.parent)&&mj(ui.parent.left)&&hT(ui.parent.right)))return Dr=!0,{introducesError:Dr,node:ot};let Ai=wf(ot),Ii=Vs(ui,Ai,!0,!0);if(Ii&&(wi(Ii,Te.enclosingDeclaration,Ai,!1).accessibility!==0?Dr=!0:(Te.tracker.trackSymbol(Ii,Te.enclosingDeclaration,Ai),Cn?.(Ii)),Fe(ot))){let Br=Ys(Ii),Tr=Ii.flags&262144?Wo(Br,Te):L.cloneNode(ot);return Tr.symbol=Ii,{introducesError:Dr,node:lr(Rr(Tr,ot),16777216)}}return{introducesError:Dr,node:ot}}function Ol(ot,Te,Cn,Dr){i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let ui=!1,Ai=Gn(Te),Ii=Qe(Te,Br,ji);if(ui)return;return Ii===Te?at(L.cloneNode(Te),Te):Ii;function Br(Tr){if(xae(Tr)||Tr.kind===326)return L.createKeywordTypeNode(133);if(Rae(Tr))return L.createKeywordTypeNode(159);if(MR(Tr))return L.createUnionTypeNode([Qe(Tr.type,Br,ji),L.createLiteralTypeNode(L.createNull())]);if(sH(Tr))return L.createUnionTypeNode([Qe(Tr.type,Br,ji),L.createKeywordTypeNode(157)]);if(V4(Tr))return Qe(Tr.type,Br);if(j4(Tr))return L.createArrayTypeNode(Qe(Tr.type,Br,ji));if(FT(Tr))return L.createTypeLiteralNode(mn(Tr.jsDocPropertyTags,Xt=>{let ln=Fe(Xt.name)?Xt.name:Xt.name.right,Wn=Ue(Ti(Tr),ln.escapedText),bi=Wn&&Xt.typeExpression&&Ti(Xt.typeExpression.type)!==Wn?u(Wn,ot):void 0;return L.createPropertySignature(void 0,ln,Xt.isBracketed||Xt.typeExpression&&sH(Xt.typeExpression.type)?L.createToken(58):void 0,bi||Xt.typeExpression&&Qe(Xt.typeExpression.type,Br,ji)||L.createKeywordTypeNode(133))}));if(If(Tr)&&Fe(Tr.typeName)&&Tr.typeName.escapedText==="")return Rr(L.createKeywordTypeNode(133),Tr);if((By(Tr)||If(Tr))&&HF(Tr))return L.createTypeLiteralNode([L.createIndexSignature(void 0,[L.createParameterDeclaration(void 0,void 0,"x",void 0,Qe(Tr.typeArguments[0],Br,ji))],Qe(Tr.typeArguments[1],Br,ji))]);if(LR(Tr))if(nR(Tr)){let Xt;return L.createConstructorTypeNode(void 0,zn(Tr.typeParameters,Br,fl),to(Tr.parameters,(ln,Wn)=>ln.name&&Fe(ln.name)&&ln.name.escapedText==="new"?(Xt=ln.type,void 0):L.createParameterDeclaration(void 0,it(ln),kt(ln,Wn),ln.questionToken,Qe(ln.type,Br,ji),void 0)),Qe(Xt||Tr.type,Br,ji)||L.createKeywordTypeNode(133))}else return L.createFunctionTypeNode(zn(Tr.typeParameters,Br,fl),mn(Tr.parameters,(Xt,ln)=>L.createParameterDeclaration(void 0,it(Xt),kt(Xt,ln),Xt.questionToken,Qe(Xt.type,Br,ji),void 0)),Qe(Tr.type,Br,ji)||L.createKeywordTypeNode(133));if(If(Tr)&&R2(Tr)&&(!Do(Tr,Ti(Tr))||Xwe(Tr)||lt===cC(Tr,788968,!0)))return Rr(u(Ti(Tr),ot),Tr);if(Ov(Tr)){let Xt=Zr(Tr).resolvedSymbol;return R2(Tr)&&Xt&&(!Tr.isTypeOf&&!(Xt.flags&788968)||!(Nn(Tr.typeArguments)>=Oh(Nr(Xt))))?Rr(u(Ti(Tr),ot),Tr):L.updateImportTypeNode(Tr,L.updateLiteralTypeNode(Tr.argument,Qt(Tr,Tr.argument.literal)),Tr.attributes,Tr.qualifier,zn(Tr.typeArguments,Br,ji),Tr.isTypeOf)}if(Xu(Tr)||Bl(Tr)){let{introducesError:Xt,node:ln}=Mu(Tr,ot,Cn);if(ui=ui||Xt,ln!==Tr)return ln}return Ai&&$I(Tr)&&gs(Ai,Tr.pos).line===gs(Ai,Tr.end).line&&lr(Tr,1),Sn(Tr,Br,void 0);function it(Xt){return Xt.dotDotDotToken||(Xt.type&&j4(Xt.type)?L.createToken(26):void 0)}function kt(Xt,ln){return Xt.name&&Fe(Xt.name)&&Xt.name.escapedText==="this"?"this":it(Xt)?"args":`arg${ln}`}function Qt(Xt,ln){if(Dr){if(ot.tracker&&ot.tracker.moduleResolverHost){let Wn=ube(Xt);if(Wn){let pi={getCanonicalFileName:Cd(!!e.useCaseSensitiveFileNames),getCurrentDirectory:()=>ot.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>ot.tracker.moduleResolverHost.getCommonSourceDirectory()},lo=i6(pi,Wn);return L.createStringLiteral(lo)}}}else if(ot.tracker&&ot.tracker.trackExternalModuleSymbolOfImportTypeNode){let Wn=ey(ln,ln,void 0);Wn&&ot.tracker.trackExternalModuleSymbolOfImportTypeNode(Wn)}return ln}}}function gl(ot,Te,Cn){var Dr;let ui=ps(L.createPropertyDeclaration,174,!0),Ai=ps((Nt,xr,fi,qr)=>L.createPropertySignature(Nt,xr,fi,qr),173,!1),Ii=Te.enclosingDeclaration,Br=[],Tr=new Set,it=[],kt=Te;Te={...kt,usedSymbolNames:new Set(kt.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((Dr=kt.remappedSymbolReferences)==null?void 0:Dr.entries()),tracker:void 0};let Qt={...kt.tracker.inner,trackSymbol:(Nt,xr,fi)=>{var qr,li;if((qr=Te.remappedSymbolNames)!=null&&qr.has(ba(Nt)))return!1;if(wi(Nt,xr,fi,!1).accessibility===0){let aa=an(Nt,Te,fi);if(!(Nt.flags&4)){let Go=aa[0],ws=Gn(kt.enclosingDeclaration);gt(Go.declarations,fs=>Gn(fs)===ws)&&as(Go)}}else if((li=kt.tracker.inner)!=null&&li.trackSymbol)return kt.tracker.inner.trackSymbol(Nt,xr,fi);return!1}};Te.tracker=new SK(Te,Qt,kt.tracker.moduleResolverHost),zc(ot,(Nt,xr)=>{let fi=Vi(xr);Bm(Nt,fi)});let Xt=!Cn,ln=ot.get("export=");return ln&&ot.size>1&&ln.flags&2098688&&(ot=oa(),ot.set("export=",ln)),la(ot),ei(Br);function Wn(Nt){return!!Nt&&Nt.kind===80}function bi(Nt){return Ml(Nt)?jr(mn(Nt.declarationList.declarations,No),Wn):jr([No(Nt)],Wn)}function pi(Nt){let xr=Vr(Nt,Ll),fi=Kl(Nt,ql),qr=fi!==-1?Nt[fi]:void 0;if(qr&&xr&&xr.isExportEquals&&Fe(xr.expression)&&Fe(qr.name)&&yr(qr.name)===yr(xr.expression)&&qr.body&&N_(qr.body)){let li=jr(Nt,Go=>!!(cu(Go)&32)),Za=qr.name,aa=qr.body;if(Nn(li)&&(qr=L.updateModuleDeclaration(qr,qr.modifiers,qr.name,aa=L.updateModuleBlock(aa,L.createNodeArray([...qr.body.statements,L.createExportDeclaration(void 0,!1,L.createNamedExports(mn(va(li,Go=>bi(Go)),Go=>L.createExportSpecifier(!1,void 0,Go))),void 0)]))),Nt=[...Nt.slice(0,fi),qr,...Nt.slice(fi+1)]),!Vr(Nt,Go=>Go!==qr&&YL(Go,Za))){Br=[];let Go=!gt(aa.statements,ws=>Qr(ws,32)||Ll(ws)||Xl(ws));gn(aa.statements,ws=>{Hs(ws,Go?32:0)}),Nt=[...jr(Nt,ws=>ws!==qr&&ws!==xr),...Br]}}return Nt}function lo(Nt){let xr=jr(Nt,qr=>Xl(qr)&&!qr.moduleSpecifier&&!!qr.exportClause&&xf(qr.exportClause));Nn(xr)>1&&(Nt=[...jr(Nt,li=>!Xl(li)||!!li.moduleSpecifier||!li.exportClause),L.createExportDeclaration(void 0,!1,L.createNamedExports(va(xr,li=>ta(li.exportClause,xf).elements)),void 0)]);let fi=jr(Nt,qr=>Xl(qr)&&!!qr.moduleSpecifier&&!!qr.exportClause&&xf(qr.exportClause));if(Nn(fi)>1){let qr=GC(fi,li=>Ca(li.moduleSpecifier)?">"+li.moduleSpecifier.text:">");if(qr.length!==fi.length)for(let li of qr)li.length>1&&(Nt=[...jr(Nt,Za=>!li.includes(Za)),L.createExportDeclaration(void 0,!1,L.createNamedExports(va(li,Za=>ta(Za.exportClause,xf).elements)),li[0].moduleSpecifier)])}return Nt}function An(Nt){let xr=Kl(Nt,fi=>Xl(fi)&&!fi.moduleSpecifier&&!fi.attributes&&!!fi.exportClause&&xf(fi.exportClause));if(xr>=0){let fi=Nt[xr],qr=to(fi.exportClause.elements,li=>{if(!li.propertyName){let Za=SL(Nt),aa=jr(Za,Go=>YL(Nt[Go],li.name));if(Nn(aa)&&oo(aa,Go=>uk(Nt[Go]))){for(let Go of aa)Nt[Go]=Gi(Nt[Go]);return}}return li});Nn(qr)?Nt[xr]=L.updateExportDeclaration(fi,fi.modifiers,fi.isTypeOnly,L.updateNamedExports(fi.exportClause,qr),fi.moduleSpecifier,fi.attributes):Sv(Nt,xr)}return Nt}function ei(Nt){return Nt=pi(Nt),Nt=lo(Nt),Nt=An(Nt),Ii&&(Yi(Ii)&&wp(Ii)||ql(Ii))&&(!gt(Nt,s2)||!Tre(Nt)&>(Nt,uF))&&Nt.push(Gk(L)),Nt}function Gi(Nt){let xr=(cu(Nt)|32)&-129;return L.replaceModifiers(Nt,xr)}function co(Nt){let xr=cu(Nt)&-33;return L.replaceModifiers(Nt,xr)}function la(Nt,xr,fi){xr||it.push(new Map),Nt.forEach(qr=>{vc(qr,!1,!!fi)}),xr||(it[it.length-1].forEach(qr=>{vc(qr,!0,!!fi)}),it.pop())}function vc(Nt,xr,fi){let qr=ts(Nt);if(Tr.has(ba(qr)))return;if(Tr.add(ba(qr)),!xr||Nn(Nt.declarations)&>(Nt.declarations,Za=>!!Fn(Za,aa=>aa===Ii))){let Za=Te;Te=ro(Te),Dl(Nt,xr,fi),Te.reportedDiagnostic&&(kt.reportedDiagnostic=Te.reportedDiagnostic),Te.trackedSymbols&&(Za.trackedSymbols?R.assert(Te.trackedSymbols===Za.trackedSymbols):Za.trackedSymbols=Te.trackedSymbols),Te=Za}}function Dl(Nt,xr,fi,qr=Nt.escapedName){var li,Za,aa,Go,ws,fs;let Fa=Vi(qr),Id=qr==="default";if(xr&&!(Te.flags&131072)&&CI(Fa)&&!Id){Te.encounteredError=!0;return}let xd=Id&&!!(Nt.flags&-113||Nt.flags&16&&Nn(_s(sr(Nt))))&&!(Nt.flags&2097152),vu=!xd&&!xr&&CI(Fa)&&!Id;(xd||vu)&&(xr=!0);let Hl=(xr?0:32)|(Id&&!xd?2048:0),Rd=Nt.flags&1536&&Nt.flags&7&&qr!=="export=",Ju=Rd&&xs(sr(Nt),Nt);if((Nt.flags&8208||Ju)&&bn(sr(Nt),Nt,Bm(Nt,Fa),Hl),Nt.flags&524288&&__(Nt,Fa,Hl),Nt.flags&98311&&qr!=="export="&&!(Nt.flags&4194304)&&!(Nt.flags&32)&&!(Nt.flags&8192)&&!Ju)if(fi)Ia(Nt)&&(vu=!1,xd=!1);else{let rd=sr(Nt),Pp=Bm(Nt,Fa);if(rd.symbol&&rd.symbol!==Nt&&rd.symbol.flags&16&>(rd.symbol.declarations,z0)&&((li=rd.symbol.members)!=null&&li.size||(Za=rd.symbol.exports)!=null&&Za.size))Te.remappedSymbolReferences||(Te.remappedSymbolReferences=new Map),Te.remappedSymbolReferences.set(ba(rd.symbol),Nt),Dl(rd.symbol,xr,fi,qr),Te.remappedSymbolReferences.delete(ba(rd.symbol));else if(!(Nt.flags&16)&&xs(rd,Nt))bn(rd,Nt,Pp,Hl);else{let hx=Nt.flags&2?qM(Nt)?2:1:(aa=Nt.parent)!=null&&aa.valueDeclaration&&Yi((Go=Nt.parent)==null?void 0:Go.valueDeclaration)?2:void 0,Z_=xd||!(Nt.flags&4)?Pp:h_(Pp,Nt),Ub=Nt.declarations&&Vr(Nt.declarations,Z8=>Oi(Z8));Ub&&Vc(Ub.parent)&&Ub.parent.declarations.length===1&&(Ub=Ub.parent.parent);let Hb=(ws=Nt.declarations)==null?void 0:ws.find(wr);if(Hb&&ur(Hb.parent)&&Fe(Hb.parent.right)&&((fs=rd.symbol)!=null&&fs.valueDeclaration)&&Yi(rd.symbol.valueDeclaration)){let Z8=Pp===Hb.parent.right.escapedText?void 0:Hb.parent.right;Hs(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Z8,Pp)])),0),Te.tracker.trackSymbol(rd.symbol,Te.enclosingDeclaration,111551)}else{let Z8=at(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Z_,void 0,bs(Te,rd,Nt,Ii,as,Cn))],hx)),Ub);Hs(Z8,Z_!==Pp?Hl&-33:Hl),Z_!==Pp&&!xr&&(Hs(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Z_,Pp)])),0),vu=!1,xd=!1)}}}if(Nt.flags&384&&Ir(Nt,Fa,Hl),Nt.flags&32&&(Nt.flags&4&&Nt.valueDeclaration&&ur(Nt.valueDeclaration.parent)&&$c(Nt.valueDeclaration.parent.right)?Ei(Nt,Bm(Nt,Fa),Hl):ua(Nt,Bm(Nt,Fa),Hl)),(Nt.flags&1536&&(!Rd||$t(Nt))||Ju)&&Hn(Nt,Fa,Hl),Nt.flags&64&&!(Nt.flags&32)&&Ze(Nt,Fa,Hl),Nt.flags&2097152&&Ei(Nt,Bm(Nt,Fa),Hl),Nt.flags&4&&Nt.escapedName==="export="&&Ia(Nt),Nt.flags&8388608&&Nt.declarations)for(let rd of Nt.declarations){let Pp=_u(rd,rd.moduleSpecifier);Pp&&Hs(L.createExportDeclaration(void 0,rd.isTypeOnly,void 0,L.createStringLiteral(jn(Pp,Te))),0)}xd?Hs(L.createExportAssignment(void 0,!1,L.createIdentifier(Bm(Nt,Fa))),0):vu&&Hs(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Bm(Nt,Fa),Fa)])),0)}function as(Nt){if(gt(Nt.declarations,M0))return;R.assertIsDefined(it[it.length-1]),h_(Vi(Nt.escapedName),Nt);let xr=!!(Nt.flags&2097152)&&!gt(Nt.declarations,fi=>!!Fn(fi,Xl)||vh(fi)||Zc(fi)&&!bh(fi.moduleReference));it[xr?0:it.length-1].set(ba(Nt),Nt)}function Dc(Nt){return Yi(Nt)&&(wp(Nt)||Jf(Nt))||Pd(Nt)&&!E_(Nt)}function Hs(Nt,xr){if(Am(Nt)){let fi=0,qr=Te.enclosingDeclaration&&(qf(Te.enclosingDeclaration)?Gn(Te.enclosingDeclaration):Te.enclosingDeclaration);xr&32&&qr&&(Dc(qr)||ql(qr))&&uk(Nt)&&(fi|=32),Xt&&!(fi&32)&&(!qr||!(qr.flags&33554432))&&(gE(Nt)||Ml(Nt)||Ec(Nt)||Sc(Nt)||ql(Nt))&&(fi|=128),xr&2048&&(Sc(Nt)||fu(Nt)||Ec(Nt))&&(fi|=2048),fi&&(Nt=L.replaceModifiers(Nt,fi|cu(Nt)))}Br.push(Nt)}function __(Nt,xr,fi){var qr;let li=iwe(Nt),Za=qi(Nt).typeParameters,aa=mn(Za,xd=>mt(xd,Te)),Go=(qr=Nt.declarations)==null?void 0:qr.find(qf),ws=ZL(Go?Go.comment||Go.parent.comment:void 0),fs=Te.flags;Te.flags|=8388608;let Fa=Te.enclosingDeclaration;Te.enclosingDeclaration=Go;let Id=Go&&Go.typeExpression&&Q0(Go.typeExpression)&&Ol(Te,Go.typeExpression.type,as,Cn)||u(li,Te);Hs(hE(L.createTypeAliasDeclaration(void 0,Bm(Nt,xr),aa,Id),ws?[{kind:3,text:`* + * `+ws.replace(/\n/g,` * `)+` - `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),pi),Se.flags=ps,Se.enclosingDeclaration=Wa}function Qe(Ct,Ir,pi){let Jr=Wf(Ct),li=Nr(Ct),Za=mn(li,yu=>mt(yu,Se)),sa=Dp(Jr),Vo=Nn(sa)?ga(sa):void 0,ks=va(ms(Jr),yu=>Cc(yu,Vo)),ps=Bh(0,Jr,Vo,179),Wa=Bh(1,Jr,Vo,180),Rd=yy(Jr,Vo),Dd=Nn(sa)?[L.createHeritageClause(96,to(sa,yu=>nI(yu,111551)))]:void 0;js(L.createInterfaceDeclaration(void 0,Bm(Ct,Ir),Za,Dd,[...Rd,...Wa,...ps,...ks]),pi)}function vt(Ct){let Ir=Wo(xp(Ct).values()),pi=es(Ct);if(pi!==Ct){let Jr=new Set(Ir);for(let li of xp(pi).values())Td(Vl(li))&111551||Jr.add(li);Ir=Wo(Jr)}return jr(Ir,Jr=>Fi(Jr)&&Yp(Jr.escapedName,99))}function $t(Ct){return oo(vt(Ct),Ir=>!(Td(Vl(Ir))&111551))}function Hn(Ct,Ir,pi){let Jr=vt(Ct),li=TL(Jr,Vo=>Vo.parent&&Vo.parent===Ct?"real":"merged"),Za=li.get("real")||Xe,sa=li.get("merged")||Xe;if(Nn(Za)){let Vo=Bm(Ct,Ir);Gr(Za,Vo,pi,!!(Ct.flags&67108880))}if(Nn(sa)){let Vo=Gn(Se.enclosingDeclaration),ks=Bm(Ct,Ir),ps=L.createModuleBlock([L.createExportDeclaration(void 0,!1,L.createNamedExports(to(jr(sa,Wa=>Wa.escapedName!=="export="),Wa=>{var Rd,Dd;let yu=Vi(Wa.escapedName),Hl=Bm(Wa,yu),Cd=Wa.declarations&&Mm(Wa);if(Vo&&(Cd?Vo!==Gn(Cd):!gt(Wa.declarations,Pp=>Gn(Pp)===Vo))){(Dd=(Rd=Se.tracker)==null?void 0:Rd.reportNonlocalAugmentation)==null||Dd.call(Rd,Vo,Ct,Wa);return}let Ku=Cd&&Gp(Cd,!0);os(Ku||Wa);let od=Ku?Bm(Ku,Vi(Ku.escapedName)):Hl;return L.createExportSpecifier(!1,yu===od?void 0:od,yu)})))]);js(L.createModuleDeclaration(void 0,L.createIdentifier(ks),ps,32),0)}}function Ar(Ct,Ir,pi){js(L.createEnumDeclaration(L.createModifiersFromModifierFlags(Rve(Ct)?4096:0),Bm(Ct,Ir),mn(jr(ms(sr(Ct)),Jr=>!!(Jr.flags&8)),Jr=>{let li=Jr.declarations&&Jr.declarations[0]&&Y0(Jr.declarations[0])?rbe(Jr.declarations[0]):void 0;return L.createEnumMember(Vi(Jr.escapedName),li===void 0?void 0:typeof li=="string"?L.createStringLiteral(li):L.createNumericLiteral(li))})),pi)}function bn(Ct,Ir,pi,Jr){let li=Jo(Ct,0);for(let Za of li){let sa=ye(Za,262,Se,{name:L.createIdentifier(pi),privateSymbolVisitor:os,bundledImports:Cn});js(at(sa,mr(Za)),Jr)}if(!(Ir.flags&1536&&Ir.exports&&Ir.exports.size)){let Za=jr(ms(Ct),Fi);Gr(Za,pi,Jr,!0)}}function mr(Ct){if(Ct.declaration&&Ct.declaration.parent){if(dr(Ct.declaration.parent)&&zl(Ct.declaration.parent)===5)return Ct.declaration.parent;if(wi(Ct.declaration.parent)&&Ct.declaration.parent.parent)return Ct.declaration.parent.parent}return Ct.declaration}function Gr(Ct,Ir,pi,Jr){if(Nn(Ct)){let Za=TL(Ct,Hl=>!Nn(Hl.declarations)||gt(Hl.declarations,Cd=>Gn(Cd)===Gn(Se.enclosingDeclaration))?"local":"remote").get("local")||Xe,sa=bh.createModuleDeclaration(void 0,L.createIdentifier(Ir),L.createModuleBlock([]),32);ja(sa,Ii),sa.locals=aa(Ct),sa.symbol=Ct[0].parent;let Vo=Br;Br=[];let ks=Jt;Jt=!1;let ps={...Se,enclosingDeclaration:sa},Wa=Se;Se=ps,ca(aa(Za),Jr,!0),Se=Wa,Jt=ks;let Rd=Br;Br=Vo;let Dd=mn(Rd,Hl=>Ll(Hl)&&!Hl.isExportEquals&&Fe(Hl.expression)?L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Hl.expression,L.createIdentifier("default"))])):Hl),yu=oo(Dd,Hl=>$r(Hl,32))?mn(Dd,co):Dd;sa=L.updateModuleDeclaration(sa,sa.modifiers,sa.name,L.createModuleBlock(yu)),js(sa,pi)}}function Fi(Ct){return!!(Ct.flags&2887656)||!(Ct.flags&4194304||Ct.escapedName==="prototype"||Ct.valueDeclaration&&ra(Ct.valueDeclaration)&&ci(Ct.valueDeclaration.parent))}function Oo(Ct){let Ir=to(Ct,pi=>{let Jr=Se.enclosingDeclaration;Se.enclosingDeclaration=pi;let li=pi.expression;if(Bl(li)){if(Fe(li)&&gr(li)==="")return Za(void 0);let sa;if({introducesError:sa,node:li}=Pu(li,Se,os),sa)return Za(void 0)}return Za(L.createExpressionWithTypeArguments(li,mn(pi.typeArguments,sa=>Ol(Se,sa,os,Cn)||u(Ti(sa),Se))));function Za(sa){return Se.enclosingDeclaration=Jr,sa}});if(Ir.length===Ct.length)return Ir}function pa(Ct,Ir,pi){var Jr,li;let Za=(Jr=Ct.declarations)==null?void 0:Jr.find(ci),sa=Se.enclosingDeclaration;Se.enclosingDeclaration=Za||sa;let Vo=Nr(Ct),ks=mn(Vo,eh=>mt(eh,Se)),ps=Up(Wf(Ct)),Wa=Dp(ps),Rd=Za&&aR(Za),Dd=Rd&&Oo(Rd)||to(a_(ps),aL),yu=sr(Ct),Hl=!!((li=yu.symbol)!=null&&li.valueDeclaration)&&ci(yu.symbol.valueDeclaration),Cd=Hl?Rp(yu):G,Ku=[...Nn(Wa)?[L.createHeritageClause(96,mn(Wa,eh=>tI(eh,Cd,Ir)))]:[],...Nn(Dd)?[L.createHeritageClause(119,Dd)]:[]],od=I_t(ps,Wa,ms(ps)),Pp=jr(od,eh=>{let sL=eh.valueDeclaration;return!!sL&&!(iu(sL)&&Ki(sL.name))}),Z_=gt(od,eh=>{let sL=eh.valueDeclaration;return!!sL&&iu(sL)&&Ki(sL.name)})?[L.createPropertyDeclaration(void 0,L.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:Xe,jb=va(Pp,eh=>di(eh,!1,Wa[0])),Ub=va(jr(ms(yu),eh=>!(eh.flags&4194304)&&eh.escapedName!=="prototype"&&!Fi(eh)),eh=>di(eh,!0,Cd)),Vgt=!Hl&&!!Ct.valueDeclaration&&ir(Ct.valueDeclaration)&&!gt(Jo(yu,1))?[L.createConstructorDeclaration(L.createModifiersFromModifierFlags(2),[],void 0)]:Bh(1,yu,Cd,176),jgt=yy(ps,Wa[0]);Se.enclosingDeclaration=sa,js(at(L.createClassDeclaration(void 0,Ir,ks,Ku,[...jgt,...Ub,...Vgt,...jb,...Z_]),Ct.declarations&&jr(Ct.declarations,eh=>Sc(eh)||Zc(eh))[0]),pi)}function fa(Ct){return Wl(Ct,Ir=>{if(Qu(Ir)||Kd(Ir))return gr(Ir.propertyName||Ir.name);if(dr(Ir)||Ll(Ir)){let pi=Ll(Ir)?Ir.expression:Ir.right;if(kr(pi))return gr(pi.name)}if(pb(Ir)){let pi=Po(Ir);if(pi&&Fe(pi))return gr(pi)}})}function Ei(Ct,Ir,pi){var Jr,li,Za,sa,Vo,ks;let ps=Mm(Ct);if(!ps)return x.fail();let Wa=es(Gp(ps,!0));if(!Wa)return;let Rd=uN(Wa)&&fa(Ct.declarations)||Vi(Wa.escapedName);Rd==="export="&&q&&(Rd="default");let Dd=Bm(Wa,Rd);switch(os(Wa),ps.kind){case 208:if(((li=(Jr=ps.parent)==null?void 0:Jr.parent)==null?void 0:li.kind)===260){let Cd=jn(Wa.parent||Wa,Se),{propertyName:Ku}=ps;js(L.createImportDeclaration(void 0,L.createImportClause(!1,void 0,L.createNamedImports([L.createImportSpecifier(!1,Ku&&Fe(Ku)?L.createIdentifier(gr(Ku)):void 0,L.createIdentifier(Ir))])),L.createStringLiteral(Cd),void 0),0);break}x.failBadSyntaxKind(((Za=ps.parent)==null?void 0:Za.parent)||ps,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:((Vo=(sa=ps.parent)==null?void 0:sa.parent)==null?void 0:Vo.kind)===226&&ko(Vi(Ct.escapedName),Dd);break;case 260:if(kr(ps.initializer)){let Cd=ps.initializer,Ku=L.createUniqueName(Ir),od=jn(Wa.parent||Wa,Se);js(L.createImportEqualsDeclaration(void 0,!1,Ku,L.createExternalModuleReference(L.createStringLiteral(od))),0),js(L.createImportEqualsDeclaration(void 0,!1,L.createIdentifier(Ir),L.createQualifiedName(Ku,Cd.name)),pi);break}case 271:if(Wa.escapedName==="export="&>(Wa.declarations,Cd=>Yi(Cd)&&Jf(Cd))){Aa(Ct);break}let yu=!(Wa.flags&512)&&!wi(ps);js(L.createImportEqualsDeclaration(void 0,!1,L.createIdentifier(Ir),yu?fo(Wa,Se,-1,!1):L.createExternalModuleReference(L.createStringLiteral(jn(Wa,Se)))),yu?pi:0);break;case 270:js(L.createNamespaceExportDeclaration(gr(ps.name)),0);break;case 273:{let Cd=jn(Wa.parent||Wa,Se),Ku=Cn?L.createStringLiteral(Cd):ps.parent.moduleSpecifier;js(L.createImportDeclaration(void 0,L.createImportClause(!1,L.createIdentifier(Ir),void 0),Ku,ps.parent.attributes),0);break}case 274:{let Cd=jn(Wa.parent||Wa,Se),Ku=Cn?L.createStringLiteral(Cd):ps.parent.parent.moduleSpecifier;js(L.createImportDeclaration(void 0,L.createImportClause(!1,void 0,L.createNamespaceImport(L.createIdentifier(Ir))),Ku,ps.parent.attributes),0);break}case 280:js(L.createExportDeclaration(void 0,!1,L.createNamespaceExport(L.createIdentifier(Ir)),L.createStringLiteral(jn(Wa,Se))),0);break;case 276:{let Cd=jn(Wa.parent||Wa,Se),Ku=Cn?L.createStringLiteral(Cd):ps.parent.parent.parent.moduleSpecifier;js(L.createImportDeclaration(void 0,L.createImportClause(!1,void 0,L.createNamedImports([L.createImportSpecifier(!1,Ir!==Rd?L.createIdentifier(Rd):void 0,L.createIdentifier(Ir))])),Ku,ps.parent.parent.parent.attributes),0);break}case 281:let Hl=ps.parent.parent.moduleSpecifier;Hl&&((ks=ps.propertyName)==null?void 0:ks.escapedText)==="default"&&(Rd="default"),ko(Vi(Ct.escapedName),Hl?Rd:Dd,Hl&&as(Hl)?L.createStringLiteral(Hl.text):void 0);break;case 277:Aa(Ct);break;case 226:case 211:case 212:Ct.escapedName==="default"||Ct.escapedName==="export="?Aa(Ct):ko(Ir,Dd);break;default:return x.failBadSyntaxKind(ps,"Unhandled alias declaration kind in symbol serializer!")}}function ko(Ct,Ir,pi){js(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Ct!==Ir?Ir:void 0,Ct)]),pi),0)}function Aa(Ct){var Ir;if(Ct.flags&4194304)return!1;let pi=Vi(Ct.escapedName),Jr=pi==="export=",Za=Jr||pi==="default",sa=Ct.declarations&&Mm(Ct),Vo=sa&&Gp(sa,!0);if(Vo&&Nn(Vo.declarations)&>(Vo.declarations,ks=>Gn(ks)===Gn(Ii))){let ks=sa&&(Ll(sa)||dr(sa)?Tj(sa):bie(sa)),ps=ks&&Bl(ks)?z_t(ks):void 0,Wa=ps&&Bs(ps,-1,!0,!0,Ii);(Wa||Vo)&&os(Wa||Vo);let Rd=Se.tracker.disableTrackSymbol;if(Se.tracker.disableTrackSymbol=!0,Za)Br.push(L.createExportAssignment(void 0,Jr,Rc(Vo,Se,-1)));else if(ps===ks&&ps)ko(pi,gr(ps));else if(ks&&Zc(ks))ko(pi,Bm(Vo,vl(Vo)));else{let Dd=__(pi,Ct);js(L.createImportEqualsDeclaration(void 0,!1,L.createIdentifier(Dd),fo(Vo,Se,-1,!1)),0),ko(pi,Dd)}return Se.tracker.disableTrackSymbol=Rd,!0}else{let ks=__(pi,Ct),ps=Hp(sr(es(Ct)));if(Is(ps,Ct))bn(ps,Ct,ks,Za?0:32);else{let Wa=((Ir=Se.enclosingDeclaration)==null?void 0:Ir.kind)===267&&(!(Ct.flags&98304)||Ct.flags&65536)?1:2,Rd=L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(ks,void 0,vs(Se,ps,Ct,Ii,os,Cn))],Wa));js(Rd,Vo&&Vo.flags&4&&Vo.escapedName==="export="?128:pi===ks?32:0)}return Za?(Br.push(L.createExportAssignment(void 0,Jr,L.createIdentifier(ks))),!0):pi!==ks?(ko(pi,ks),!0):!1}}function Is(Ct,Ir){let pi=Gn(Se.enclosingDeclaration);return Lr(Ct)&48&&!Nn(_u(Ct))&&!CS(Ct)&&!!(Nn(jr(ms(Ct),Fi))||Nn(Jo(Ct,0)))&&!Nn(Jo(Ct,1))&&!hr(Ir,Ii)&&!(Ct.symbol&>(Ct.symbol.declarations,Jr=>Gn(Jr)!==pi))&&!gt(ms(Ct),Jr=>p8(Jr.escapedName))&&!gt(ms(Ct),Jr=>gt(Jr.declarations,li=>Gn(li)!==pi))&&oo(ms(Ct),Jr=>Yp(vl(Jr),ce)?Jr.flags&98304?Rb(Jr)===NS(Jr):!0:!1)}function us(Ct,Ir,pi){return function(li,Za,sa){var Vo,ks,ps,Wa,Rd;let Dd=Tf(li),yu=!!(Dd&2);if(Za&&li.flags&2887656)return[];if(li.flags&4194304||li.escapedName==="constructor"||sa&&ha(sa,li.escapedName)&&f_(ha(sa,li.escapedName))===f_(li)&&(li.flags&16777216)===(ha(sa,li.escapedName).flags&16777216)&&py(sr(li),Ue(sa,li.escapedName)))return[];let Hl=Dd&-1025|(Za?256:0),Cd=Pn(li,Se),Ku=(Vo=li.declarations)==null?void 0:Vo.find(jm(Uo,Cv,wi,_p,dr,kr));if(li.flags&98304&&pi){let od=[];if(li.flags&65536){let Pp=li.declarations&&gn(li.declarations,Z_=>{if(Z_.kind===178)return Z_;if(ia(Z_)&&gT(Z_))return gn(Z_.arguments[2].properties,jb=>{let Ub=Po(jb);if(Ub&&Fe(Ub)&&gr(Ub)==="set")return jb})});x.assert(!!Pp);let hx=ws(Pp)?lm(Pp).parameters[0]:void 0;od.push(at(L.createSetAccessorDeclaration(L.createModifiersFromModifierFlags(Hl),Cd,[L.createParameterDeclaration(void 0,void 0,hx?sn(hx,At(hx),Se):"value",void 0,yu?void 0:vs(Se,sr(li),li,Ii,os,Cn))],void 0),((ks=li.declarations)==null?void 0:ks.find(Cy))||Ku))}if(li.flags&32768){let Pp=Dd&2;od.push(at(L.createGetAccessorDeclaration(L.createModifiersFromModifierFlags(Hl),Cd,[],Pp?void 0:vs(Se,sr(li),li,Ii,os,Cn),void 0),((ps=li.declarations)==null?void 0:ps.find(Pv))||Ku))}return od}else if(li.flags&98311)return at(Ct(L.createModifiersFromModifierFlags((f_(li)?8:0)|Hl),Cd,li.flags&16777216?L.createToken(58):void 0,yu?void 0:vs(Se,NS(li),li,Ii,os,Cn),void 0),((Wa=li.declarations)==null?void 0:Wa.find(jm(Uo,wi)))||Ku);if(li.flags&8208){let od=sr(li),Pp=Jo(od,0);if(Hl&2)return at(Ct(L.createModifiersFromModifierFlags((f_(li)?8:0)|Hl),Cd,li.flags&16777216?L.createToken(58):void 0,void 0,void 0),((Rd=li.declarations)==null?void 0:Rd.find(ws))||Pp[0]&&Pp[0].declaration||li.declarations&&li.declarations[0]);let hx=[];for(let Z_ of Pp){let jb=ye(Z_,Ir,Se,{name:Cd,questionToken:li.flags&16777216?L.createToken(58):void 0,modifiers:Hl?L.createModifiersFromModifierFlags(Hl):void 0}),Ub=Z_.declaration&&k2(Z_.declaration.parent)?Z_.declaration.parent:Z_.declaration;hx.push(at(jb,Ub))}return hx}return x.fail(`Unhandled class member kind! ${li.__debugFlags||li.flags}`)}}function Cc(Ct,Ir){return Ai(Ct,!1,Ir)}function Bh(Ct,Ir,pi,Jr){let li=Jo(Ir,Ct);if(Ct===1){if(!pi&&oo(li,Vo=>Nn(Vo.parameters)===0))return[];if(pi){let Vo=Jo(pi,1);if(!Nn(Vo)&&oo(li,ks=>Nn(ks.parameters)===0))return[];if(Vo.length===li.length){let ks=!1;for(let ps=0;psu(li,Se)),Jr=Rc(Ct.target.symbol,Se,788968)):Ct.symbol&&nn(Ct.symbol,Ii,Ir)&&(Jr=Rc(Ct.symbol,Se,788968)),Jr)return L.createExpressionWithTypeArguments(Jr,pi)}function aL(Ct){let Ir=nI(Ct,788968);if(Ir)return Ir;if(Ct.symbol)return L.createExpressionWithTypeArguments(Rc(Ct.symbol,Se,788968),void 0)}function __(Ct,Ir){var pi,Jr;let li=Ir?ba(Ir):void 0;if(li&&Se.remappedSymbolNames.has(li))return Se.remappedSymbolNames.get(li);Ir&&(Ct=_x(Ir,Ct));let Za=0,sa=Ct;for(;(pi=Se.usedSymbolNames)!=null&&pi.has(Ct);)Za++,Ct=`${sa}_${Za}`;return(Jr=Se.usedSymbolNames)==null||Jr.add(Ct),li&&Se.remappedSymbolNames.set(li,Ct),Ct}function _x(Ct,Ir){if(Ir==="default"||Ir==="__class"||Ir==="__function"){let pi=Se.flags;Se.flags|=16777216;let Jr=qE(Ct,Se);Se.flags=pi,Ir=Jr.length>0&&R2(Jr.charCodeAt(0))?Yf(Jr):Jr}return Ir==="default"?Ir="_default":Ir==="export="&&(Ir="_exports"),Ir=Yp(Ir,ce)&&!CI(Ir)?Ir:"_"+Ir.replace(/[^a-zA-Z0-9]/g,"_"),Ir}function Bm(Ct,Ir){let pi=ba(Ct);return Se.remappedSymbolNames.has(pi)?Se.remappedSymbolNames.get(pi):(Ir=_x(Ct,Ir),Se.remappedSymbolNames.set(pi,Ir),Ir)}}}function Ph(n,a,c=16384,u){return u?_(u).getText():cN(_);function _(g){let T=L.createTypePredicateNode(n.kind===2||n.kind===3?L.createToken(131):void 0,n.kind===1||n.kind===3?L.createIdentifier(n.parameterName):L.createThisTypeNode(),n.type&&Et.typeToTypeNode(n.type,a,CA(c)|70221824|512)),P=rS(),W=a&&Gn(a);return P.writeNode(4,T,W,g),g}}function ZD(n){let a=[],c=0;for(let u=0;uPo(T)?T:void 0),g=_&&Po(_);if(_&&g){if(ia(_)&&gT(_))return vl(n);if(Ya(g)&&!(Tl(n)&4096)){let T=qi(n).nameType;if(T&&T.flags&384){let P=c8(n,a);if(P!==void 0)return P}}return Ts(g)}if(_||(_=n.declarations[0]),_.parent&&_.parent.kind===260)return Ts(_.parent.name);switch(_.kind){case 231:case 218:case 219:return a&&!a.encounteredError&&!(a.flags&131072)&&(a.encounteredError=!0),_.kind===231?"(Anonymous class)":"(Anonymous function)"}}let u=c8(n,a);return u!==void 0?u:vl(n)}function i_(n){if(n){let c=Qr(n);return c.isVisible===void 0&&(c.isVisible=!!a()),c.isVisible}return!1;function a(){switch(n.kind){case 345:case 353:case 347:return!!(n.parent&&n.parent.parent&&n.parent.parent.parent&&Yi(n.parent.parent.parent));case 208:return i_(n.parent.parent);case 260:if(Qo(n.name)&&!n.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(T0(n))return!0;let c=X(n);return!(ite(n)&32)&&!(n.kind!==271&&c.kind!==312&&c.flags&33554432)?xh(c):i_(c);case 172:case 171:case 177:case 178:case 174:case 173:if(fp(n,6))return!1;case 176:case 180:case 179:case 181:case 169:case 268:case 184:case 185:case 187:case 183:case 188:case 189:case 192:case 193:case 196:case 202:return i_(n.parent);case 273:case 274:case 276:return!1;case 168:case 312:case 270:return!0;case 277:return!1;default:return!1}}}function xM(n,a){let c;n.parent&&n.parent.kind===277?c=hl(n,n.escapedText,2998271,void 0,n,!1):n.parent.kind===281&&(c=VE(n.parent,2998271));let u,_;return c&&(_=new Set,_.add(ba(c)),g(c.declarations)),u;function g(T){gn(T,P=>{let W=_A(P)||P;if(a?Qr(P).isVisible=!0:(u=u||[],yf(u,W)),Qx(P)){let V=P.moduleReference,te=Fp(V),ye=hl(P,te.escapedText,901119,void 0,void 0,!1);ye&&_&&Kb(_,ba(ye))&&g(ye.declarations)}})}}function Mh(n,a){let c=nx(n,a);if(c>=0){let{length:u}=fd;for(let _=c;_=w1;c--){if(d8(fd[c],LE[c]))return-1;if(fd[c]===n&&LE[c]===a)return c}return-1}function d8(n,a){switch(a){case 0:return!!qi(n).type;case 5:return!!Qr(n).resolvedEnumType;case 2:return!!qi(n).declaredType;case 1:return!!n.resolvedBaseConstructorType;case 3:return!!n.resolvedReturnType;case 4:return!!n.immediateBaseConstraint;case 6:return!!n.resolvedTypeArguments;case 7:return!!n.baseTypesResolved;case 8:return!!qi(n).writeType;case 9:return Qr(n).parameterInitializerContainsUndefined!==void 0}return x.assertNever(a)}function H_(){return fd.pop(),LE.pop(),Xg.pop()}function X(n){return Fn(A_(n),a=>{switch(a.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}}).parent}function Te(n){let a=Xs(Ru(n));return a.typeParameters?sv(a,mn(a.typeParameters,c=>G)):a}function Ue(n,a){let c=ha(n,a);return c?sr(c):void 0}function St(n,a){var c;let u;return Ue(n,a)||(u=(c=ox(n,a))==null?void 0:c.type)&&op(u,!0,!0)}function xt(n){return n&&(n.flags&1)!==0}function Vt(n){return n===ut||!!(n.flags&1&&n.aliasSymbol)}function wr(n,a){if(a!==0)return PA(n,!1,a);let c=Sr(n);return c&&qi(c).type||PA(n,!1,a)}function Oi(n,a,c){if(n=cc(n,W=>!(W.flags&98304)),n.flags&131072)return Ca;if(n.flags&1048576)return ll(n,W=>Oi(W,a,c));let u=ei(mn(a,cv)),_=[],g=[];for(let W of ms(n)){let V=uC(W,8576);!ya(V,u)&&!(Tf(W)&6)&&NZ(W)?_.push(W):g.push(V)}if(BA(n)||GA(u)){if(g.length&&(u=ei([u,...g])),u.flags&131072)return n;let W=Jat();return W?cC(W,[n,u]):ut}let T=aa();for(let W of _)T.set(W.escapedName,Bge(W,!1));let P=Ds(c,T,Xe,Xe,_u(n));return P.objectFlags|=4194304,P}function Ci(n){return!!(n.flags&465829888)&&Rl(zd(n)||un,32768)}function mi(n){let a=Fm(n,Ci)?ll(n,c=>c.flags&465829888?cy(c):c):n;return um(a,524288)}function Xi(n,a){let c=cs(n);return c?Gb(c,a):a}function cs(n){let a=As(n);if(a&&F2(a)&&a.flowNode){let c=$a(n);if(c){let u=at(bh.createStringLiteral(c),n),_=Yu(a)?a:bh.createParenthesizedExpression(a),g=at(bh.createElementAccessExpression(_,u),n);return ja(u,g),ja(g,n),_!==a&&ja(_,g),g.flowNode=a.flowNode,g}}}function As(n){let a=n.parent.parent;switch(a.kind){case 208:case 303:return cs(a);case 209:return cs(n.parent);case 260:return a.initializer;case 226:return a.right}}function $a(n){let a=n.parent;return n.kind===208&&a.kind===206?Of(n.propertyName||n.name):n.kind===303||n.kind===304?Of(n.name):""+a.elements.indexOf(n)}function Of(n){let a=cv(n);return a.flags&384?""+a.value:void 0}function K_(n){let a=n.dotDotDotToken?32:0,c=wr(n.parent.parent,a);return c&&gg(n,c,!1)}function gg(n,a,c){if(xt(a))return a;let u=n.parent;J&&n.flags&33554432&&P0(n)?a=_y(a):J&&u.parent.initializer&&!dm(k8e(u.parent.initializer),65536)&&(a=um(a,524288));let _;if(u.kind===206)if(n.dotDotDotToken){if(a=c_(a),a.flags&2||!k5(a))return Ve(n,f.Rest_types_may_only_be_created_from_object_types),ut;let g=[];for(let T of u.elements)T.dotDotDotToken||g.push(T.propertyName||T.name);_=Oi(a,g,n.symbol)}else{let g=n.propertyName||n.name,T=cv(g),P=Cp(a,T,32,g);_=Xi(n,P)}else{let g=fv(65|(n.dotDotDotToken?0:128),a,Me,u),T=u.elements.indexOf(n);if(n.dotDotDotToken){let P=ll(a,W=>W.flags&58982400?cy(W):W);_=ap(P,wa)?ll(P,W=>WM(W,T)):Bd(g)}else if(uv(a)){let P=d_(T),W=32|(c||qM(n)?16:0),V=Lb(a,P,W,n.name)||ut;_=Xi(n,V)}else _=g}return n.initializer?yd(Lx(n))?J&&!dm(YM(n,0),16777216)?mi(_):_:wee(n,ei([mi(_),YM(n,0)],2)):_}function iy(n){let a=nE(n);if(a)return Ti(a)}function oy(n){let a=fs(n,!0);return a.kind===106||a.kind===80&&Wm(a)===ze}function Tb(n){let a=fs(n,!0);return a.kind===209&&a.elements.length===0}function op(n,a=!1,c=!0){return J&&c?zb(n,a):n}function PA(n,a,c){if(wi(n)&&n.parent.parent.kind===249){let T=J_(eve(po(n.parent.parent.expression,c)));return T.flags&4456448?gOe(T):Ne}if(wi(n)&&n.parent.parent.kind===250){let T=n.parent.parent;return aG(T)||G}if(Qo(n.parent))return K_(n);let u=Uo(n)&&!I_(n)||_p(n)||Aae(n),_=a&&YN(n),g=eo(n);if(JV(n))return g?xt(g)||g===un?g:ut:he?un:G;if(g)return op(g,u,_);if((fe||ir(n))&&wi(n)&&!Qo(n.name)&&!(ite(n)&32)&&!(n.flags&33554432)){if(!(KS(n)&6)&&(!n.initializer||oy(n.initializer)))return et;if(n.initializer&&Tb(n.initializer))return Jc}if(Ao(n)){let T=n.parent;if(T.kind===178&&oC(T)){let V=cl(Sr(n.parent),177);if(V){let te=lm(V),ye=cbe(T);return ye&&n===ye?(x.assert(!ye.type),sr(te.thisParameter)):ds(te)}}let P=vat(T,n);if(P)return P;let W=n.symbol.escapedName==="this"?rWe(T):iWe(n);if(W)return op(W,!1,_)}if(dT(n)&&n.initializer){if(ir(n)&&!Ao(n)){let P=Ga(n,Sr(n),C2(n));if(P)return P}let T=wee(n,YM(n,c));return op(T,u,_)}if(Uo(n)&&(fe||ir(n)))if(pc(n)){let T=jr(n.parent.members,Al),P=T.length?ay(n.symbol,T):lu(n)&128?jZ(n.symbol):void 0;return P&&op(P,!0,_)}else{let T=ny(n.parent),P=T?Ab(n.symbol,T):lu(n)&128?jZ(n.symbol):void 0;return P&&op(P,!0,_)}if(M_(n))return wn;if(Qo(n.name))return C(n.name,!1,!0)}function eC(n){if(n.valueDeclaration&&dr(n.valueDeclaration)){let a=qi(n);return a.isConstructorDeclaredProperty===void 0&&(a.isConstructorDeclaredProperty=!1,a.isConstructorDeclaredProperty=!!DM(n)&&oo(n.declarations,c=>dr(c)&&mee(c)&&(c.left.kind!==212||$p(c.left.argumentExpression))&&!lc(void 0,c,n,c))),a.isConstructorDeclaredProperty}return!1}function RM(n){let a=n.valueDeclaration;return a&&Uo(a)&&!yd(a)&&!a.initializer&&(fe||ir(a))}function DM(n){if(n.declarations)for(let a of n.declarations){let c=Lu(a,!1,!1);if(c&&(c.kind===176||$_(c)))return c}}function XE(n){let a=Gn(n.declarations[0]),c=Vi(n.escapedName),u=n.declarations.every(g=>ir(g)&&Ns(g)&&Yh(g.expression)),_=u?L.createPropertyAccessExpression(L.createPropertyAccessExpression(L.createIdentifier("module"),L.createIdentifier("exports")),c):L.createPropertyAccessExpression(L.createIdentifier("exports"),c);return u&&ja(_.expression.expression,_.expression),ja(_.expression,_),ja(_,a),_.flowNode=a.endFlowNode,Gb(_,et,Me)}function ay(n,a){let c=ao(n.escapedName,"__#")?L.createPrivateIdentifier(n.escapedName.split("@")[1]):Vi(n.escapedName);for(let u of a){let _=L.createPropertyAccessExpression(L.createThis(),c);ja(_.expression,_),ja(_,u),_.flowNode=u.returnFlowNode;let g=tC(_,n);if(fe&&(g===et||g===Jc)&&Ve(n.valueDeclaration,f.Member_0_implicitly_has_an_1_type,Si(n),Vn(g)),!ap(g,F5))return X8(g)}}function Ab(n,a){let c=ao(n.escapedName,"__#")?L.createPrivateIdentifier(n.escapedName.split("@")[1]):Vi(n.escapedName),u=L.createPropertyAccessExpression(L.createThis(),c);ja(u.expression,u),ja(u,a),u.flowNode=a.returnFlowNode;let _=tC(u,n);return fe&&(_===et||_===Jc)&&Ve(n.valueDeclaration,f.Member_0_implicitly_has_an_1_type,Si(n),Vn(_)),ap(_,F5)?void 0:X8(_)}function tC(n,a){let c=a?.valueDeclaration&&(!RM(a)||lu(a.valueDeclaration)&128)&&jZ(a)||Me;return Gb(n,et,c)}function jp(n,a){let c=AI(n.valueDeclaration);if(c){let P=ir(c)?tE(c):void 0;return P&&P.typeExpression?Ti(P.typeExpression):n.valueDeclaration&&Ga(n.valueDeclaration,n,c)||FS(tc(c))}let u,_=!1,g=!1;if(eC(n)&&(u=Ab(n,DM(n))),!u){let P;if(n.declarations){let W;for(let V of n.declarations){let te=dr(V)||ia(V)?V:Ns(V)?dr(V.parent)?V.parent:V:void 0;if(!te)continue;let ye=Ns(te)?L2(te):zl(te);(ye===4||dr(te)&&mee(te,ye))&&(CM(te)?_=!0:g=!0),ia(te)||(W=lc(W,te,n,V)),W||(P||(P=[])).push(dr(te)||ia(te)?YE(n,a,te,ye):Fr)}u=W}if(!u){if(!Nn(P))return ut;let W=_&&n.declarations?Ib(P,n.declarations):void 0;if(g){let te=jZ(n);te&&((W||(W=[])).push(te),_=!0)}let V=gt(W,te=>!!(te.flags&-98305))?W:P;u=ei(V)}}let T=Hp(op(u,!1,g&&!_));return n.valueDeclaration&&ir(n.valueDeclaration)&&cc(T,P=>!!(P.flags&-98305))===Fr?(s0(n.valueDeclaration,G),G):T}function Ga(n,a,c){var u,_;if(!ir(n)||!c||!Ma(c)||c.properties.length)return;let g=aa();for(;dr(n)||kr(n);){let W=pf(n);(u=W?.exports)!=null&&u.size&&n_(g,W.exports),n=dr(n)?n.parent:n.parent.parent}let T=pf(n);(_=T?.exports)!=null&&_.size&&n_(g,T.exports);let P=Ds(a,g,Xe,Xe,Xe);return P.objectFlags|=4096,P}function lc(n,a,c,u){var _;let g=yd(a.parent);if(g){let T=Hp(Ti(g));if(n)!Vt(n)&&!Vt(T)&&!py(n,T)&&l6e(void 0,n,u,T);else return T}if((_=c.parent)!=null&&_.valueDeclaration){let T=AS(c.parent);if(T.valueDeclaration){let P=yd(T.valueDeclaration);if(P){let W=ha(Ti(P),c.escapedName);if(W)return Rb(W)}}}return n}function YE(n,a,c,u){if(ia(c)){if(a)return sr(a);let T=tc(c.arguments[2]),P=Ue(T,"value");if(P)return P;let W=Ue(T,"get");if(W){let te=QA(W);if(te)return ds(te)}let V=Ue(T,"set");if(V){let te=QA(V);if(te)return Eve(te)}return G}if(rx(c.left,c.right))return G;let _=u===1&&(kr(c.left)||Js(c.left))&&(Yh(c.left.expression)||Fe(c.left.expression)&&hT(c.left.expression)),g=a?sr(a):_?gu(tc(c.right)):FS(tc(c.right));if(g.flags&524288&&u===2&&n.escapedName==="export="){let T=l_(g),P=aa();vF(T.members,P);let W=P.size;a&&!a.exports&&(a.exports=aa()),(a||n).exports.forEach((te,ye)=>{var _e;let je=P.get(ye);if(je&&je!==te&&!(te.flags&2097152))if(te.flags&111551&&je.flags&111551){if(te.valueDeclaration&&je.valueDeclaration&&Gn(te.valueDeclaration)!==Gn(je.valueDeclaration)){let At=Vi(te.escapedName),rn=((_e=ri(je.valueDeclaration,iu))==null?void 0:_e.name)||je.valueDeclaration;Pa(Ve(te.valueDeclaration,f.Duplicate_identifier_0,At),Pr(rn,f._0_was_also_declared_here,At)),Pa(Ve(rn,f.Duplicate_identifier_0,At),Pr(te.valueDeclaration,f._0_was_also_declared_here,At))}let mt=Ka(te.flags|je.flags,ye);mt.links.type=ei([sr(te),sr(je)]),mt.valueDeclaration=je.valueDeclaration,mt.declarations=Eo(je.declarations,te.declarations),P.set(ye,mt)}else P.set(ye,om(te,je));else P.set(ye,te)});let V=Ds(W!==P.size?void 0:T.symbol,P,T.callSignatures,T.constructSignatures,T.indexInfos);if(W===P.size&&(g.aliasSymbol&&(V.aliasSymbol=g.aliasSymbol,V.aliasTypeArguments=g.aliasTypeArguments),Lr(g)&4)){V.aliasSymbol=g.symbol;let te=Vs(g);V.aliasTypeArguments=Nn(te)?te:void 0}return V.objectFlags|=Lr(g)&4096,V.symbol&&V.symbol.flags&32&&g===Wf(V.symbol)&&(V.objectFlags|=16777216),V}return HZ(g)?(s0(c,Zl),Zl):g}function rx(n,a){return kr(n)&&n.expression.kind===110&&bP(a,c=>Ad(n,c))}function CM(n){let a=Lu(n,!1,!1);return a.kind===176||a.kind===262||a.kind===218&&!k2(a.parent)}function Ib(n,a){return x.assert(n.length===a.length),n.filter((c,u)=>{let _=a[u],g=dr(_)?_:dr(_.parent)?_.parent:void 0;return g&&CM(g)})}function NM(n,a,c){if(n.initializer){let u=Qo(n.name)?C(n.name,!0,!1):un;return op(wee(n,YM(n,c?0:1,u)))}return Qo(n.name)?C(n.name,a,c):(c&&!_r(n)&&s0(n,G),a?hn:G)}function tr(n,a,c){let u=aa(),_,g=131200;gn(n.elements,P=>{let W=P.propertyName||P.name;if(P.dotDotDotToken){_=Oh(Ne,G,!1);return}let V=cv(W);if(!Qf(V)){g|=512;return}let te=Zf(V),ye=4|(P.initializer?16777216:0),_e=Ka(ye,te);_e.links.type=NM(P,a,c),_e.links.bindingElement=P,u.set(_e.escapedName,_e)});let T=Ds(void 0,u,Xe,Xe,_?[_]:Xe);return T.objectFlags|=g,a&&(T.pattern=n,T.objectFlags|=131072),T}function v(n,a,c){let u=n.elements,_=$s(u),g=_&&_.kind===208&&_.dotDotDotToken?_:void 0;if(u.length===0||u.length===1&&g)return ce>=2?tOe(G):Zl;let T=mn(u,te=>jc(te)?G:NM(te,a,c)),P=pW(u,te=>!(te===g||jc(te)||qM(te)),u.length-1)+1,W=mn(u,(te,ye)=>te===g?4:ye>=P?2:1),V=Wh(T,W);return a&&(V=Owe(V),V.pattern=n,V.objectFlags|=131072),V}function C(n,a=!1,c=!1){return n.kind===206?tr(n,a,c):v(n,a,c)}function F(n,a){return jt(PA(n,!0,0),n,a)}function se(n){let a=Qr(n);if(!a.resolvedType){let c=Ka(4096,"__importAttributes"),u=aa();gn(n.elements,g=>{let T=Ka(4,U6(g));T.parent=c,T.links.type=B_t(g),T.links.target=T,u.set(T.escapedName,T)});let _=Ds(c,u,Xe,Xe,Xe);_.objectFlags|=262272,a.resolvedType=_}return a.resolvedType}function Ke(n){let a=pf(n),c=wat(!1);return c&&a&&a===c}function jt(n,a,c){return n?(n.flags&4096&&Ke(a.parent)&&(n=Gge(a)),c&&ZZ(a,n),n.flags&8192&&(Xa(a)||!a.type)&&n.symbol!==Sr(a)&&(n=xi),Hp(n)):(n=Ao(a)&&a.dotDotDotToken?Zl:G,c&&(_r(a)||s0(a,n)),n)}function _r(n){let a=A_(n),c=a.kind===169?a.parent:a;return tG(c)}function eo(n){let a=yd(n);if(a)return Ti(a)}function Gs(n){let a=n.valueDeclaration;return a?(Xa(a)&&(a=Lx(a)),Ao(a)?OZ(a.parent):!1):!1}function o_(n,a){let c=qi(n);if(!c.type){let u=xb(n,a);return!c.type&&!Gs(n)&&!a&&(c.type=u),u}return c.type}function xb(n,a){if(n.flags&4194304)return Te(n);if(n===_t)return G;if(n.flags&134217728&&n.valueDeclaration){let _=Sr(Gn(n.valueDeclaration)),g=Ka(_.flags,"exports");g.declarations=_.declarations?_.declarations.slice():[],g.parent=n,g.links.target=_,_.valueDeclaration&&(g.valueDeclaration=_.valueDeclaration),_.members&&(g.members=new Map(_.members)),_.exports&&(g.exports=new Map(_.exports));let T=aa();return T.set("exports",g),Ds(n,T,Xe,Xe,Xe)}x.assertIsDefined(n.valueDeclaration);let c=n.valueDeclaration;if(Yi(c)&&Jf(c))return c.statements.length?Hp(FS(po(c.statements[0].expression))):Ca;if(Cv(c))return QE(n);if(!Mh(n,0))return n.flags&512&&!(n.flags&67108864)?PM(n):Xa(c)&&a===1?ut:nC(n);let u;if(c.kind===277)u=jt(eo(c)||tc(c.expression),c);else if(dr(c)||ir(c)&&(ia(c)||(kr(c)||XF(c))&&dr(c.parent)))u=jp(n);else if(kr(c)||Js(c)||Fe(c)||as(c)||mp(c)||Sc(c)||Ec(c)||Ul(c)&&!bm(c)||_h(c)||Yi(c)){if(n.flags&9136)return PM(n);u=dr(c.parent)?jp(n):eo(c)||G}else if(mc(c))u=eo(c)||kFe(c);else if(M_(c))u=eo(c)||hWe(c);else if(Zu(c))u=eo(c)||QM(c.name,0);else if(bm(c))u=eo(c)||wFe(c,0);else if(Ao(c)||Uo(c)||_p(c)||wi(c)||Xa(c)||rN(c))u=F(c,!0);else if(hE(c))u=PM(n);else if(Y0(c))u=cZ(n);else return x.fail("Unhandled declaration kind! "+x.formatSyntaxKind(c.kind)+" for "+x.formatSymbol(n));return H_()?u:n.flags&512&&!(n.flags&67108864)?PM(n):Xa(c)&&a===1?u:nC(n)}function Om(n){if(n)switch(n.kind){case 177:return $f(n);case 178:return Nie(n);case 172:return x.assert(I_(n)),yd(n)}}function $E(n){let a=Om(n);return a&&Ti(a)}function sZ(n){let a=cbe(n);return a&&a.symbol}function zhe(n){return n0(lm(n))}function QE(n){let a=qi(n);if(!a.type){if(!Mh(n,0))return ut;let c=cl(n,177),u=cl(n,178),_=ri(cl(n,172),Mu),g=c&&ir(c)&&iy(c)||$E(c)||$E(u)||$E(_)||c&&c.body&&Mee(c)||_&&_.initializer&&F(_,!0);g||(u&&!tG(u)?md(fe,u,f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Si(n)):c&&!tG(c)?md(fe,c,f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Si(n)):_&&!tG(_)&&md(fe,_,f.Member_0_implicitly_has_an_1_type,Si(n),"any"),g=G),H_()||(Om(c)?Ve(c,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Si(n)):Om(u)||Om(_)?Ve(u,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Si(n)):c&&fe&&Ve(c,f._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Si(n)),g=G),a.type=g}return a.type}function HB(n){let a=qi(n);if(!a.writeType){if(!Mh(n,8))return ut;let c=cl(n,178)??ri(cl(n,172),Mu),u=$E(c);H_()||(Om(c)&&Ve(c,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Si(n)),u=G),a.writeType=u||QE(n)}return a.writeType}function lZ(n){let a=Rp(Wf(n));return a.flags&8650752?a:a.flags&2097152?Vr(a.types,c=>!!(c.flags&8650752)):void 0}function PM(n){let a=qi(n),c=a;if(!a.type){let u=n.valueDeclaration&&Nee(n.valueDeclaration,!1);if(u){let _=_ve(n,u);_&&(n=_,a=_.links)}c.type=a.type=KB(n)}return a.type}function KB(n){let a=n.valueDeclaration;if(n.flags&1536&&uN(n))return G;if(a&&(a.kind===226||Ns(a)&&a.parent.kind===226))return jp(n);if(n.flags&512&&a&&Yi(a)&&a.commonJsModuleIndicator){let u=Ip(n);if(u!==n){if(!Mh(n,0))return ut;let _=es(n.exports.get("export=")),g=jp(_,_===u?void 0:u);return H_()?g:nC(n)}}let c=kf(16,n);if(n.flags&32){let u=lZ(n);return u?ga([c,u]):c}else return J&&n.flags&16777216?zb(c,!0):c}function cZ(n){let a=qi(n);return a.type||(a.type=twe(n))}function dZ(n){let a=qi(n);if(!a.type){if(!Mh(n,0))return ut;let c=Wc(n),u=n.declarations&&Gp(Mm(n),!0),_=Wl(u?.declarations,g=>Ll(g)?eo(g):void 0);if(a.type=u?.declarations&&Xee(u.declarations)&&n.declarations.length?XE(u):Xee(n.declarations)?et:_||(Td(c)&111551?sr(c):ut),!H_())return nC(u??n),a.type=ut}return a.type}function Bhe(n){let a=qi(n);return a.type||(a.type=io(sr(a.target),a.mapper))}function Ghe(n){let a=qi(n);return a.writeType||(a.writeType=io(NS(a.target),a.mapper))}function nC(n){let a=n.valueDeclaration;if(a){if(yd(a))return Ve(n.valueDeclaration,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Si(n)),ut;fe&&(a.kind!==169||a.initializer)&&Ve(n.valueDeclaration,f._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Si(n))}else if(n.flags&2097152){let c=Mm(n);c&&Ve(c,f.Circular_definition_of_import_alias_0,Si(n))}return G}function uZ(n){let a=qi(n);return a.type||(x.assertIsDefined(a.deferralParent),x.assertIsDefined(a.deferralConstituents),a.type=a.deferralParent.flags&1048576?ei(a.deferralConstituents):ga(a.deferralConstituents)),a.type}function JB(n){let a=qi(n);return!a.writeType&&a.deferralWriteConstituents&&(x.assertIsDefined(a.deferralParent),x.assertIsDefined(a.deferralConstituents),a.writeType=a.deferralParent.flags&1048576?ei(a.deferralWriteConstituents):ga(a.deferralWriteConstituents)),a.writeType}function NS(n){let a=Tl(n);return n.flags&4?a&2?a&65536?JB(n)||uZ(n):n.links.writeType||n.links.type:Bb(sr(n),!!(n.flags&16777216)):n.flags&98304?a&1?Ghe(n):HB(n):sr(n)}function sr(n,a){let c=Tl(n);return c&65536?uZ(n):c&1?Bhe(n):c&262144?eat(n):c&8192?mct(n):n.flags&7?o_(n,a):n.flags&9136?PM(n):n.flags&8?cZ(n):n.flags&98304?QE(n):n.flags&2097152?dZ(n):ut}function Rb(n){return Bb(sr(n),!!(n.flags&16777216))}function Db(n,a){return n!==void 0&&a!==void 0&&(Lr(n)&4)!==0&&n.target===a}function ov(n){return Lr(n)&4?n.target:n}function rC(n,a){return c(n);function c(u){if(Lr(u)&7){let _=ov(u);return _===a||gt(Dp(_),c)}else if(u.flags&2097152)return gt(u.types,c);return!1}}function ZE(n,a){for(let c of a)n=xg(n,MA(Sr(c)));return n}function Rn(n,a){for(;;){if(n=n.parent,n&&dr(n)){let c=zl(n);if(c===6||c===3){let u=Sr(n.left);u&&u.parent&&!Fn(u.parent.valueDeclaration,_=>n===_)&&(n=u.parent.valueDeclaration)}}if(!n)return;switch(n.kind){case 263:case 231:case 264:case 179:case 180:case 173:case 184:case 185:case 324:case 262:case 174:case 218:case 219:case 265:case 352:case 353:case 347:case 345:case 200:case 194:{let u=Rn(n,a);if(n.kind===200)return Tn(u,MA(Sr(n.typeParameter)));if(n.kind===194)return Eo(u,DOe(n));let _=ZE(u,Rv(n)),g=a&&(n.kind===263||n.kind===231||n.kind===264||$_(n))&&Wf(Sr(n)).thisType;return g?Tn(_,g):_}case 348:let c=B2(n);c&&(n=c.valueDeclaration);break;case 327:{let u=Rn(n,a);return n.tags?ZE(u,va(n.tags,_=>nm(_)?_.typeParameters:void 0)):u}}}}function Or(n){var a;let c=n.flags&32||n.flags&16?n.valueDeclaration:(a=n.declarations)==null?void 0:a.find(u=>{if(u.kind===264)return!0;if(u.kind!==260)return!1;let _=u.initializer;return!!_&&(_.kind===218||_.kind===219)});return x.assert(!!c,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Rn(c)}function Nr(n){if(!n.declarations)return;let a;for(let c of n.declarations)(c.kind===264||c.kind===263||c.kind===231||$_(c)||W2(c))&&(a=ZE(a,Rv(c)));return a}function Wi(n){return Eo(Or(n),Nr(n))}function Mi(n){let a=Jo(n,1);if(a.length===1){let c=a[0];if(!c.typeParameters&&c.parameters.length===1&&qd(c)){let u=K5(c.parameters[0]);return xt(u)||E5(u)===G}}return!1}function ts(n){if(Jo(n,1).length>0)return!0;if(n.flags&8650752){let a=zd(n);return!!a&&Mi(a)}return!1}function Es(n){let a=Og(n.symbol);return a&&S_(a)}function Zd(n,a,c){let u=Nn(a),_=ir(c);return jr(Jo(n,1),g=>(_||u>=wh(g.typeParameters))&&u<=Nn(g.typeParameters))}function Lh(n,a,c){let u=Zd(n,a,c),_=mn(a,Ti);return Pc(u,g=>gt(g.typeParameters)?h8(g,_,ir(c)):g)}function Rp(n){if(!n.resolvedBaseConstructorType){let a=Og(n.symbol),c=a&&S_(a),u=Es(n);if(!u)return n.resolvedBaseConstructorType=Me;if(!Mh(n,1))return ut;let _=po(u.expression);if(c&&u!==c&&(x.assert(!c.typeArguments),po(c.expression)),_.flags&2621440&&l_(_),!H_())return Ve(n.symbol.valueDeclaration,f._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Si(n.symbol)),n.resolvedBaseConstructorType=ut;if(!(_.flags&1)&&_!==We&&!ts(_)){let g=Ve(u.expression,f.Type_0_is_not_a_constructor_function_type,Vn(_));if(_.flags&262144){let T=kM(_),P=un;if(T){let W=Jo(T,1);W[0]&&(P=ds(W[0]))}_.symbol.declarations&&Pa(g,Pr(_.symbol.declarations[0],f.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Si(_.symbol),Vn(P)))}return n.resolvedBaseConstructorType=ut}n.resolvedBaseConstructorType=_}return n.resolvedBaseConstructorType}function a_(n){let a=Xe;if(n.symbol.declarations)for(let c of n.symbol.declarations){let u=aR(c);if(u)for(let _ of u){let g=Ti(_);Vt(g)||(a===Xe?a=[g]:a.push(g))}}return a}function sy(n,a){Ve(n,f.Type_0_recursively_references_itself_as_a_base_type,Vn(a,void 0,2))}function Dp(n){if(!n.baseTypesResolved){if(Mh(n,7)&&(n.objectFlags&8?n.resolvedBaseTypes=[iC(n)]:n.symbol.flags&96?(n.symbol.flags&32&&u8(n),n.symbol.flags&64&&Cot(n)):x.fail("type must be class or interface"),!H_()&&n.symbol.declarations))for(let a of n.symbol.declarations)(a.kind===263||a.kind===264)&&sy(a,n);n.baseTypesResolved=!0}return n.resolvedBaseTypes}function iC(n){let a=Pc(n.typeParameters,(c,u)=>n.elementFlags[u]&8?Cp(c,It):c);return Bd(ei(a||Xe),n.readonly)}function u8(n){n.resolvedBaseTypes=H6;let a=Nu(Rp(n));if(!(a.flags&2621441))return n.resolvedBaseTypes=Xe;let c=Es(n),u,_=a.symbol?Xs(a.symbol):void 0;if(a.symbol&&a.symbol.flags&32&&Dot(_))u=Wwe(c,a.symbol);else if(a.flags&1)u=a;else{let T=Lh(a,c.typeArguments,c);if(!T.length)return Ve(c.expression,f.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=Xe;u=ds(T[0])}if(Vt(u))return n.resolvedBaseTypes=Xe;let g=c_(u);if(!qB(g)){let T=tge(void 0,u),P=zo(T,f.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Vn(g));return Qa.add(Mg(Gn(c.expression),c.expression,P)),n.resolvedBaseTypes=Xe}return n===g||rC(g,n)?(Ve(n.symbol.valueDeclaration,f.Type_0_recursively_references_itself_as_a_base_type,Vn(n,void 0,2)),n.resolvedBaseTypes=Xe):(n.resolvedBaseTypes===H6&&(n.members=void 0),n.resolvedBaseTypes=[g])}function Dot(n){let a=n.outerTypeParameters;if(a){let c=a.length-1,u=Vs(n);return a[c].symbol!==u[c].symbol}return!0}function qB(n){if(n.flags&262144){let a=zd(n);if(a)return qB(a)}return!!(n.flags&67633153&&!ju(n)||n.flags&2097152&&oo(n.types,qB))}function Cot(n){if(n.resolvedBaseTypes=n.resolvedBaseTypes||Xe,n.symbol.declarations){for(let a of n.symbol.declarations)if(a.kind===264&&EN(a))for(let c of EN(a)){let u=c_(Ti(c));Vt(u)||(qB(u)?n!==u&&!rC(u,n)?n.resolvedBaseTypes===Xe?n.resolvedBaseTypes=[u]:n.resolvedBaseTypes.push(u):sy(a,n):Ve(c,f.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function Not(n){if(!n.declarations)return!0;for(let a of n.declarations)if(a.kind===264){if(a.flags&256)return!1;let c=EN(a);if(c){for(let u of c)if(Bl(u.expression)){let _=Bs(u.expression,788968,!0);if(!_||!(_.flags&64)||Wf(_).thisType)return!1}}}return!0}function Wf(n){let a=qi(n),c=a;if(!a.declaredType){let u=n.flags&32?1:2,_=_ve(n,n.valueDeclaration&&ypt(n.valueDeclaration));_&&(n=_,a=_.links);let g=c.declaredType=a.declaredType=kf(u,n),T=Or(n),P=Nr(n);(T||P||u===1||!Not(n))&&(g.objectFlags|=4,g.typeParameters=Eo(T,P),g.outerTypeParameters=T,g.localTypeParameters=P,g.instantiations=new Map,g.instantiations.set(cm(g.typeParameters),g),g.target=g,g.resolvedTypeArguments=g.typeParameters,g.thisType=mf(n),g.thisType.isThisType=!0,g.thisType.constraint=g)}return a.declaredType}function Qke(n){var a;let c=qi(n);if(!c.declaredType){if(!Mh(n,2))return ut;let u=x.checkDefined((a=n.declarations)==null?void 0:a.find(W2),"Type alias symbol with no valid declaration found"),_=qf(u)?u.typeExpression:u.type,g=_?Ti(_):ut;if(H_()){let T=Nr(n);T&&(c.typeParameters=T,c.instantiations=new Map,c.instantiations.set(cm(T),g))}else g=ut,u.kind===347?Ve(u.typeExpression.type,f.Type_alias_0_circularly_references_itself,Si(n)):Ve(iu(u)&&u.name||u,f.Type_alias_0_circularly_references_itself,Si(n));c.declaredType=g}return c.declaredType}function pZ(n){return n.flags&1056&&n.symbol.flags&8?Xs(Ru(n.symbol)):n}function Zke(n){let a=qi(n);if(!a.declaredType){let c=[];if(n.declarations){for(let _ of n.declarations)if(_.kind===266){for(let g of _.members)if(oC(g)){let T=Sr(g),P=IC(g),W=cx(P!==void 0?Xst(P,ba(n),T):ewe(T));qi(T).declaredType=W,c.push(gu(W))}}}let u=c.length?ei(c,1,n,void 0):ewe(n);u.flags&1048576&&(u.flags|=1024,u.symbol=n),a.declaredType=u}return a.declaredType}function ewe(n){let a=hg(32,n),c=hg(32,n);return a.regularType=a,a.freshType=c,c.regularType=a,c.freshType=c,a}function twe(n){let a=qi(n);if(!a.declaredType){let c=Zke(Ru(n));a.declaredType||(a.declaredType=c)}return a.declaredType}function MA(n){let a=qi(n);return a.declaredType||(a.declaredType=mf(n))}function Pot(n){let a=qi(n);return a.declaredType||(a.declaredType=Xs(Wc(n)))}function Xs(n){return nwe(n)||ut}function nwe(n){if(n.flags&96)return Wf(n);if(n.flags&524288)return Qke(n);if(n.flags&262144)return MA(n);if(n.flags&384)return Zke(n);if(n.flags&8)return twe(n);if(n.flags&2097152)return Pot(n)}function XB(n){switch(n.kind){case 133:case 159:case 154:case 150:case 163:case 136:case 155:case 151:case 116:case 157:case 146:case 201:return!0;case 188:return XB(n.elementType);case 183:return!n.typeArguments||n.typeArguments.every(XB)}return!1}function Mot(n){let a=wx(n);return!a||XB(a)}function rwe(n){let a=yd(n);return a?XB(a):!Mv(n)}function Lot(n){let a=$f(n),c=Rv(n);return(n.kind===176||!!a&&XB(a))&&n.parameters.every(rwe)&&c.every(Mot)}function kot(n){if(n.declarations&&n.declarations.length===1){let a=n.declarations[0];if(a)switch(a.kind){case 172:case 171:return rwe(a);case 174:case 173:case 176:case 177:case 178:return Lot(a)}}return!1}function iwe(n,a,c){let u=aa();for(let _ of n)u.set(_.escapedName,c&&kot(_)?_:Uge(_,a));return u}function owe(n,a){for(let c of a){if(awe(c))continue;let u=n.get(c.escapedName);(!u||u.valueDeclaration&&dr(u.valueDeclaration)&&!eC(u)&&!oie(u.valueDeclaration))&&(n.set(c.escapedName,c),n.set(c.escapedName,c))}}function awe(n){return!!n.valueDeclaration&&ou(n.valueDeclaration)&&ra(n.valueDeclaration)}function Vhe(n){if(!n.declaredProperties){let a=n.symbol,c=Cb(a);n.declaredProperties=KE(c),n.declaredCallSignatures=Xe,n.declaredConstructSignatures=Xe,n.declaredIndexInfos=Xe,n.declaredCallSignatures=PS(c.get("__call")),n.declaredConstructSignatures=PS(c.get("__new")),n.declaredIndexInfos=Lwe(a)}return n}function jhe(n){if(!Ya(n)&&!Js(n))return!1;let a=Ya(n)?n.expression:n.argumentExpression;return Bl(a)&&Qf(Ya(n)?bg(n):tc(a))}function p8(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===64}function YB(n){let a=Po(n);return!!a&&jhe(a)}function oC(n){return!Ov(n)||YB(n)}function wot(n){return n6(n)&&!jhe(n)}function Oot(n,a,c){x.assert(!!(Tl(n)&4096),"Expected a late-bound symbol."),n.flags|=c,qi(a.symbol).lateSymbol=n,n.declarations?a.symbol.isReplaceableByMethod||n.declarations.push(a):n.declarations=[a],c&111551&&(!n.valueDeclaration||n.valueDeclaration.kind!==a.kind)&&(n.valueDeclaration=a)}function swe(n,a,c,u){x.assert(!!u.symbol,"The member is expected to have a symbol.");let _=Qr(u);if(!_.resolvedSymbol){_.resolvedSymbol=u.symbol;let g=dr(u)?u.left:u.name,T=Js(g)?tc(g.argumentExpression):bg(g);if(Qf(T)){let P=Zf(T),W=u.symbol.flags,V=c.get(P);V||c.set(P,V=Ka(0,P,4096));let te=a&&a.get(P);if(!(n.flags&32)&&(V.flags&uA(W)||te)){let ye=te?Eo(te.declarations,V.declarations):V.declarations,_e=!(T.flags&8192)&&Vi(P)||Ts(g);gn(ye,je=>Ve(Po(je)||je,f.Property_0_was_also_declared_here,_e)),Ve(g||u,f.Duplicate_property_0,_e),V=Ka(0,P,4096)}return V.links.nameType=T,Oot(V,u,W),V.parent?x.assert(V.parent===n,"Existing symbol parent should match new one"):V.parent=n,_.resolvedSymbol=V}}return _.resolvedSymbol}function Uhe(n,a){let c=qi(n);if(!c[a]){let u=a==="resolvedExports",_=u?n.flags&1536?xA(n).exports:n.exports:n.members;c[a]=_||K;let g=aa();for(let W of n.declarations||Xe){let V=$re(W);if(V)for(let te of V)u===pc(te)&&YB(te)&&swe(n,_,g,te)}let T=AS(n).assignmentDeclarationMembers;if(T){let W=Wo(T.values());for(let V of W){let te=zl(V),ye=te===3||dr(V)&&mee(V,te)||te===9||te===6;u===!ye&&YB(V)&&swe(n,_,g,V)}}let P=K1(_,g);if(n.flags&33554432&&c.cjsExportMerged&&n.declarations)for(let W of n.declarations){let V=qi(W.symbol)[a];if(!P){P=V;continue}V&&V.forEach((te,ye)=>{let _e=P.get(ye);if(!_e)P.set(ye,te);else{if(_e===te)return;P.set(ye,om(_e,te))}})}c[a]=P||K}return c[a]}function Cb(n){return n.flags&6256?Uhe(n,"resolvedMembers"):n.members||K}function fZ(n){if(n.flags&106500&&n.escapedName==="__computed"){let a=qi(n);if(!a.lateSymbol&>(n.declarations,YB)){let c=es(n.parent);gt(n.declarations,pc)?xp(c):Cb(c)}return a.lateSymbol||(a.lateSymbol=n)}return n}function Up(n,a,c){if(Lr(n)&4){let u=n.target,_=Vs(n);return Nn(u.typeParameters)===Nn(_)?sv(u,Eo(_,[a||u.thisType])):n}else if(n.flags&2097152){let u=Pc(n.types,_=>Up(_,a,c));return u!==n.types?ga(u):n}return c?Nu(n):n}function lwe(n,a,c,u){let _,g,T,P,W;OG(c,u,0,c.length)?(g=a.symbol?Cb(a.symbol):aa(a.declaredProperties),T=a.declaredCallSignatures,P=a.declaredConstructSignatures,W=a.declaredIndexInfos):(_=Np(c,u),g=iwe(a.declaredProperties,_,c.length===1),T=kZ(a.declaredCallSignatures,_),P=kZ(a.declaredConstructSignatures,_),W=kOe(a.declaredIndexInfos,_));let V=Dp(a);if(V.length){if(a.symbol&&g===Cb(a.symbol)){let ye=aa(a.declaredProperties),_e=cge(a.symbol);_e&&ye.set("__index",_e),g=ye}_f(n,g,T,P,W);let te=$s(u);for(let ye of V){let _e=te?Up(io(ye,_),te):ye;owe(g,ms(_e)),T=Eo(T,Jo(_e,0)),P=Eo(P,Jo(_e,1));let je=_e!==G?_u(_e):[Oh(Ne,G,!1)];W=Eo(W,jr(je,mt=>!nge(W,mt.keyType)))}}_f(n,g,T,P,W)}function Wot(n){lwe(n,Vhe(n),Xe,Xe)}function Fot(n){let a=Vhe(n.target),c=Eo(a.typeParameters,[a.thisType]),u=Vs(n),_=u.length===c.length?u:Eo(u,[n]);lwe(n,a,c,_)}function yg(n,a,c,u,_,g,T,P){let W=new h(Xt,P);return W.declaration=n,W.typeParameters=a,W.parameters=u,W.thisParameter=c,W.resolvedReturnType=_,W.resolvedTypePredicate=g,W.minArgumentCount=T,W.resolvedMinArgumentCount=void 0,W.target=void 0,W.mapper=void 0,W.compositeSignatures=void 0,W.compositeKind=void 0,W}function f8(n){let a=yg(n.declaration,n.typeParameters,n.thisParameter,n.parameters,void 0,void 0,n.minArgumentCount,n.flags&167);return a.target=n.target,a.mapper=n.mapper,a.compositeSignatures=n.compositeSignatures,a.compositeKind=n.compositeKind,a}function cwe(n,a){let c=f8(n);return c.compositeSignatures=a,c.compositeKind=1048576,c.target=void 0,c.mapper=void 0,c}function zot(n,a){if((n.flags&24)===a)return n;n.optionalCallSignatureCache||(n.optionalCallSignatureCache={});let c=a===8?"inner":"outer";return n.optionalCallSignatureCache[c]||(n.optionalCallSignatureCache[c]=Bot(n,a))}function Bot(n,a){x.assert(a===8||a===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");let c=f8(n);return c.flags|=a,c}function dwe(n,a){if(qd(n)){let _=n.parameters.length-1,g=n.parameters[_].escapedName,T=sr(n.parameters[_]);if(wa(T))return[c(T,_,g)];if(!a&&T.flags&1048576&&oo(T.types,wa))return mn(T.types,P=>c(P,_,g))}return[n.parameters];function c(_,g,T){let P=Vs(_),W=u(_,T),V=mn(P,(te,ye)=>{let _e=W&&W[ye]?W[ye]:XM(n,g+ye,_),je=_.target.elementFlags[ye],mt=je&12?32768:je&2?16384:0,At=Ka(1,_e,mt);return At.links.type=je&4?Bd(te):te,At});return Eo(n.parameters.slice(0,g),V)}function u(_,g){let T=new Map;return mn(_.target.labeledElementDeclarations,(P,W)=>{let V=bve(P,W,g),te=T.get(V);return te===void 0?(T.set(V,1),V):(T.set(V,te+1),`${V}_${te}`)})}}function Got(n){let a=Rp(n),c=Jo(a,1),u=Og(n.symbol),_=!!u&&$r(u,64);if(c.length===0)return[yg(void 0,n.localTypeParameters,void 0,Xe,n,void 0,0,_?4:0)];let g=Es(n),T=ir(g),P=i5(g),W=Nn(P),V=[];for(let te of c){let ye=wh(te.typeParameters),_e=Nn(te.typeParameters);if(T||W>=ye&&W<=_e){let je=_e?yZ(te,Pb(P,te.typeParameters,ye,T)):f8(te);je.typeParameters=n.localTypeParameters,je.resolvedReturnType=n,je.flags=_?je.flags|4:je.flags&-5,V.push(je)}}return V}function mZ(n,a,c,u,_){for(let g of n)if(v5(g,a,c,u,_,c?mlt:I8))return g}function Vot(n,a,c){if(a.typeParameters){if(c>0)return;for(let _=1;_1&&(c=c===void 0?u:-1);for(let _ of n[u])if(!a||!mZ(a,_,!1,!1,!0)){let g=Vot(n,_,u);if(g){let T=_;if(g.length>1){let P=_.thisParameter,W=gn(g,V=>V.thisParameter);if(W){let V=ga(to(g,te=>te.thisParameter&&sr(te.thisParameter)));P=UA(W,V)}T=cwe(_,g),T.thisParameter=P}(a||(a=[])).push(T)}}}if(!Nn(a)&&c!==-1){let u=n[c!==void 0?c:0],_=u.slice();for(let g of n)if(g!==u){let T=g[0];if(x.assert(!!T,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),_=T.typeParameters&>(_,P=>!!P.typeParameters&&!uwe(T.typeParameters,P.typeParameters))?void 0:mn(_,P=>Hot(P,T)),!_)break}a=_}return a||Xe}function uwe(n,a){if(Nn(n)!==Nn(a))return!1;if(!n||!a)return!0;let c=Np(a,n);for(let u=0;u=_?n:a,T=g===n?a:n,P=g===n?u:_,W=zh(n)||zh(a),V=W&&!zh(g),te=new Array(P+(V?1:0));for(let ye=0;ye=Q_(g)&&ye>=Q_(T),sn=ye>=u?void 0:XM(n,ye),nr=ye>=_?void 0:XM(a,ye),Mn=sn===nr?sn:sn?nr?void 0:sn:nr,an=Ka(1|(rn&&!At?16777216:0),Mn||`arg${ye}`,At?32768:rn?16384:0);an.links.type=At?Bd(mt):mt,te[ye]=an}if(V){let ye=Ka(1,"args",32768);ye.links.type=Bd(p_(T,P)),T===a&&(ye.links.type=io(ye.links.type,c)),te[P]=ye}return te}function Hot(n,a){let c=n.typeParameters||a.typeParameters,u;n.typeParameters&&a.typeParameters&&(u=Np(a.typeParameters,n.typeParameters));let _=n.declaration,g=Uot(n,a,u),T=jot(n.thisParameter,a.thisParameter,u),P=Math.max(n.minArgumentCount,a.minArgumentCount),W=yg(_,c,T,g,void 0,void 0,P,(n.flags|a.flags)&167);return W.compositeKind=1048576,W.compositeSignatures=Eo(n.compositeKind!==2097152&&n.compositeSignatures||[n],[a]),u?W.mapper=n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures?WS(n.mapper,u):u:n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures&&(W.mapper=n.mapper),W}function pwe(n){let a=_u(n[0]);if(a){let c=[];for(let u of a){let _=u.keyType;oo(n,g=>!!vg(g,_))&&c.push(Oh(_,ei(mn(n,g=>t0(g,_))),gt(n,g=>vg(g,_).isReadonly)))}return c}return Xe}function Kot(n){let a=Hhe(mn(n.types,_=>_===Lt?[cn]:Jo(_,0))),c=Hhe(mn(n.types,_=>Jo(_,1))),u=pwe(n.types);_f(n,K,a,c,u)}function $B(n,a){return n?a?ga([n,a]):n:a}function fwe(n){let a=yv(n,u=>Jo(u,1).length>0),c=mn(n,Mi);if(a>0&&a===yv(c,u=>u)){let u=c.indexOf(!0);c[u]=!1}return c}function Jot(n,a,c,u){let _=[];for(let g=0;gP);for(let P=0;P<_.length;P++){let W=n.types[P];if(!g[P]){let V=Jo(W,1);V.length&&T>0&&(V=mn(V,te=>{let ye=f8(te);return ye.resolvedReturnType=Jot(ds(te),_,g,P),ye})),c=mwe(c,V)}a=mwe(a,Jo(W,0)),u=tu(_u(W),(V,te)=>_we(V,te,!1),u)}_f(n,K,a||Xe,c||Xe,u||Xe)}function mwe(n,a){for(let c of a)(!n||oo(n,u=>!v5(u,c,!1,!1,!1,I8)))&&(n=Tn(n,c));return n}function _we(n,a,c){if(n)for(let u=0;u{var W;!(P.flags&418)&&!(P.flags&512&&((W=P.declarations)!=null&&W.length)&&oo(P.declarations,Md))&&T.set(P.escapedName,P)}),c=T}let _;if(_f(n,c,Xe,Xe,Xe),a.flags&32){let T=Wf(a),P=Rp(T);P.flags&11272192?(c=aa(DA(c)),owe(c,ms(P))):P===G&&(_=Oh(Ne,G,!1))}let g=vZ(c);if(g?u=dge(g):(_&&(u=Tn(u,_)),a.flags&384&&(Xs(a).flags&32||gt(n.properties,T=>!!(sr(T).flags&296)))&&(u=Tn(u,zr))),_f(n,c,Xe,Xe,u||Xe),a.flags&8208&&(n.callSignatures=PS(a)),a.flags&32){let T=Wf(a),P=a.members?PS(a.members.get("__constructor")):Xe;a.flags&16&&(P=Hr(P.slice(),to(n.callSignatures,W=>$_(W.declaration)?yg(W.declaration,W.typeParameters,W.thisParameter,W.parameters,T,void 0,W.minArgumentCount,W.flags&167):void 0))),P.length||(P=Got(T)),n.constructSignatures=P}}function Yot(n,a,c){return io(n,Np([a.indexType,a.objectType],[d_(0),Wh([c])]))}function $ot(n){let a=hf(n.mappedType);if(!(a.flags&1048576||a.flags&2097152))return;let c=a.flags&1048576?a.origin:a;if(!c||!(c.flags&2097152))return;let u=ga(c.types.filter(_=>_!==n.constraintType));return u!==Fr?u:void 0}function Qot(n){let a=vg(n.source,Ne),c=kh(n.mappedType),u=!(c&1),_=c&4?0:16777216,g=a?[Oh(Ne,tee(a.type,n.mappedType,n.constraintType),u&&a.isReadonly)]:Xe,T=aa(),P=$ot(n);for(let W of ms(n.source)){if(P){let ye=uC(W,8576);if(!ya(ye,P))continue}let V=8192|(u&&f_(W)?8:0),te=Ka(4|W.flags&_,W.escapedName,V);if(te.declarations=W.declarations,te.links.nameType=qi(W).nameType,te.links.propertyType=sr(W),n.constraintType.type.flags&8388608&&n.constraintType.type.objectType.flags&262144&&n.constraintType.type.indexType.flags&262144){let ye=n.constraintType.type.objectType,_e=Yot(n.mappedType,n.constraintType.type,ye);te.links.mappedType=_e,te.links.constraintType=J_(ye)}else te.links.mappedType=n.mappedType,te.links.constraintType=n.constraintType;T.set(W.escapedName,te)}_f(n,T,Xe,Xe,g)}function QB(n){if(n.flags&4194304){let a=Nu(n.type);return Fb(a)?oOe(a):J_(a)}if(n.flags&16777216){if(n.root.isDistributive){let a=n.checkType,c=QB(a);if(c!==a)return Kge(n,VA(n.root.checkType,c,n.mapper),!1)}return n}if(n.flags&1048576)return ll(n,QB,!0);if(n.flags&2097152){let a=n.types;return a.length===2&&a[0].flags&76&&a[1]===ac?n:ga(Pc(n.types,QB))}return n}function Khe(n){return Tl(n)&4096}function Jhe(n,a,c,u){for(let _ of ms(n))u(uC(_,a));if(n.flags&1)u(Ne);else for(let _ of _u(n))(!c||_.keyType.flags&134217732)&&u(_.keyType)}function Zot(n){let a=aa(),c;_f(n,K,Xe,Xe,Xe);let u=s_(n),_=hf(n),g=n.target||n,T=av(g),P=_Z(g)!==2,W=ly(g),V=Nu(LA(n)),te=kh(n),ye=Ce?128:8576;aC(n)?Jhe(V,ye,Ce,_e):qA(QB(_),_e),_f(n,a,Xe,Xe,c||Xe);function _e(mt){let At=T?io(T,S8(n.mapper,u,mt)):mt;qA(At,rn=>je(mt,rn))}function je(mt,At){if(Qf(At)){let rn=Zf(At),sn=a.get(rn);if(sn)sn.links.nameType=ei([sn.links.nameType,At]),sn.links.keyType=ei([sn.links.keyType,mt]);else{let nr=Qf(mt)?ha(V,Zf(mt)):void 0,Mn=!!(te&4||!(te&8)&&nr&&nr.flags&16777216),an=!!(te&1||!(te&2)&&nr&&f_(nr)),On=J&&!Mn&&nr&&nr.flags&16777216,Ln=nr?Khe(nr):0,Yn=Ka(4|(Mn?16777216:0),rn,Ln|262144|(an?8:0)|(On?524288:0));Yn.links.mappedType=n,Yn.links.nameType=At,Yn.links.keyType=mt,nr&&(Yn.links.syntheticOrigin=nr,Yn.declarations=P?nr.declarations:void 0),a.set(rn,Yn)}}else if(bZ(At)||At.flags&33){let rn=At.flags&5?Ne:At.flags&40?It:At,sn=io(W,S8(n.mapper,u,mt)),nr=m8(V,At),Mn=!!(te&1||!(te&2)&&nr?.isReadonly),an=Oh(rn,sn,Mn);c=_we(c,an,!0)}}}function eat(n){if(!n.links.type){let a=n.links.mappedType;if(!Mh(n,0))return a.containsError=!0,ut;let c=ly(a.target||a),u=S8(a.mapper,s_(a),n.links.keyType),_=io(c,u),g=J&&n.flags&16777216&&!Rl(_,49152)?zb(_,!0):n.links.checkFlags&524288?YZ(_):_;H_()||(Ve(D,f.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Si(n),Vn(a)),g=ut),n.links.type=g}return n.links.type}function s_(n){return n.typeParameter||(n.typeParameter=MA(Sr(n.declaration.typeParameter)))}function hf(n){return n.constraintType||(n.constraintType=Cu(s_(n))||ut)}function av(n){return n.declaration.nameType?n.nameType||(n.nameType=io(Ti(n.declaration.nameType),n.mapper)):void 0}function ly(n){return n.templateType||(n.templateType=n.declaration.type?io(op(Ti(n.declaration.type),!0,!!(kh(n)&4)),n.mapper):ut)}function hwe(n){return wx(n.declaration.typeParameter)}function aC(n){let a=hwe(n);return a.kind===198&&a.operator===143}function LA(n){if(!n.modifiersType)if(aC(n))n.modifiersType=io(Ti(hwe(n).type),n.mapper);else{let a=Oge(n.declaration),c=hf(a),u=c&&c.flags&262144?Cu(c):c;n.modifiersType=u&&u.flags&4194304?io(u.type,n.mapper):un}return n.modifiersType}function kh(n){let a=n.declaration;return(a.readonlyToken?a.readonlyToken.kind===41?2:1:0)|(a.questionToken?a.questionToken.kind===41?8:4:0)}function gwe(n){let a=kh(n);return a&8?-1:a&4?1:0}function qhe(n){let a=gwe(n),c=LA(n);return a||(ju(c)?gwe(c):0)}function tat(n){return!!(Lr(n)&32&&kh(n)&4)}function ju(n){if(Lr(n)&32){let a=hf(n);if(GA(a))return!0;let c=av(n);if(c&&GA(io(c,OS(s_(n),a))))return!0}return!1}function _Z(n){let a=av(n);return a?ya(a,s_(n))?1:2:0}function l_(n){return n.members||(n.flags&524288?n.objectFlags&4?Fot(n):n.objectFlags&3?Wot(n):n.objectFlags&1024?Qot(n):n.objectFlags&16?Xot(n):n.objectFlags&32?Zot(n):x.fail("Unhandled object type "+x.formatObjectFlags(n.objectFlags)):n.flags&1048576?Kot(n):n.flags&2097152?qot(n):x.fail("Unhandled type "+x.formatTypeFlags(n.flags))),n}function Nb(n){return n.flags&524288?l_(n).properties:Xe}function e0(n,a){if(n.flags&524288){let u=l_(n).members.get(a);if(u&&wm(u))return u}}function ZB(n){if(!n.resolvedProperties){let a=aa();for(let c of n.types){for(let u of ms(c))if(!a.has(u.escapedName)){let _=t5(n,u.escapedName,!!(n.flags&2097152));_&&a.set(u.escapedName,_)}if(n.flags&1048576&&_u(c).length===0)break}n.resolvedProperties=KE(a)}return n.resolvedProperties}function ms(n){return n=MM(n),n.flags&3145728?ZB(n):Nb(n)}function nat(n,a){n=MM(n),n.flags&3670016&&l_(n).members.forEach((c,u)=>{ex(c,u)&&a(c,u)})}function rat(n,a){return a.properties.some(u=>{let _=u.name&&(qm(u.name)?Uu(fk(u.name)):cv(u.name)),g=_&&Qf(_)?Zf(_):void 0,T=g===void 0?void 0:Ue(n,g);return!!T&&D8(T)&&!ya(fx(u),T)})}function iat(n){let a=ei(n);if(!(a.flags&1048576))return nbe(a);let c=aa();for(let u of n)for(let{escapedName:_}of nbe(u))if(!c.has(_)){let g=Awe(a,_);g&&c.set(_,g)}return Wo(c.values())}function kA(n){return n.flags&262144?Cu(n):n.flags&8388608?aat(n):n.flags&16777216?bwe(n):zd(n)}function Cu(n){return e5(n)?kM(n):void 0}function oat(n,a){let c=T8(n);return!!c&&wA(c,a)}function wA(n,a=0){var c;return a<5&&!!(n&&(n.flags&262144&>((c=n.symbol)==null?void 0:c.declarations,u=>$r(u,4096))||n.flags&3145728&>(n.types,u=>wA(u,a))||n.flags&8388608&&wA(n.objectType,a+1)||n.flags&16777216&&wA(bwe(n),a+1)||n.flags&33554432&&wA(n.baseType,a)||Lr(n)&32&&oat(n,a)||Fb(n)&&Kl(LS(n),(u,_)=>!!(n.target.elementFlags[_]&8)&&wA(u,a))>=0))}function aat(n){return e5(n)?sat(n):void 0}function Xhe(n){let a=uy(n,!1);return a!==n?a:kA(n)}function sat(n){if(Zhe(n))return DZ(n.objectType,n.indexType);let a=Xhe(n.indexType);if(a&&a!==n.indexType){let u=Lb(n.objectType,a,n.accessFlags);if(u)return u}let c=Xhe(n.objectType);if(c&&c!==n.objectType)return Lb(c,n.indexType,n.accessFlags)}function Yhe(n){if(!n.resolvedDefaultConstraint){let a=jst(n),c=i0(n);n.resolvedDefaultConstraint=xt(a)?c:xt(c)?a:ei([a,c])}return n.resolvedDefaultConstraint}function ywe(n){if(n.resolvedConstraintOfDistributive!==void 0)return n.resolvedConstraintOfDistributive||void 0;if(n.root.isDistributive&&n.restrictiveInstantiation!==n){let a=uy(n.checkType,!1),c=a===n.checkType?kA(a):a;if(c&&c!==n.checkType){let u=Kge(n,VA(n.root.checkType,c,n.mapper),!0);if(!(u.flags&131072))return n.resolvedConstraintOfDistributive=u,u}}n.resolvedConstraintOfDistributive=!1}function vwe(n){return ywe(n)||Yhe(n)}function bwe(n){return e5(n)?vwe(n):void 0}function lat(n,a){let c,u=!1;for(let _ of n)if(_.flags&465829888){let g=kA(_);for(;g&&g.flags&21233664;)g=kA(g);g&&(c=Tn(c,g),a&&(c=Tn(c,_)))}else(_.flags&469892092||Fh(_))&&(u=!0);if(c&&(a||u)){if(u)for(let _ of n)(_.flags&469892092||Fh(_))&&(c=Tn(c,_));return h5(ga(c),!1)}}function zd(n){if(n.flags&464781312||Fb(n)){let a=$he(n);return a!==Fs&&a!==nd?a:void 0}return n.flags&4194304?Ls:void 0}function cy(n){return zd(n)||n}function e5(n){return $he(n)!==nd}function $he(n){if(n.resolvedBaseConstraint)return n.resolvedBaseConstraint;let a=[];return n.resolvedBaseConstraint=c(n);function c(g){if(!g.immediateBaseConstraint){if(!Mh(g,4))return nd;let T,P=UZ(g);if((a.length<10||a.length<50&&!Bo(a,P))&&(a.push(P),T=_(uy(g,!1)),a.pop()),!H_()){if(g.flags&262144){let W=uge(g);if(W){let V=Ve(W,f.Type_parameter_0_has_a_circular_constraint,Vn(g));D&&!C0(W,D)&&!C0(D,W)&&Pa(V,Pr(D,f.Circularity_originates_in_type_at_this_location))}}T=nd}g.immediateBaseConstraint=T||Fs}return g.immediateBaseConstraint}function u(g){let T=c(g);return T!==Fs&&T!==nd?T:void 0}function _(g){if(g.flags&262144){let T=kM(g);return g.isThisType||!T?T:u(T)}if(g.flags&3145728){let T=g.types,P=[],W=!1;for(let V of T){let te=u(V);te?(te!==V&&(W=!0),P.push(te)):W=!0}return W?g.flags&1048576&&P.length===T.length?ei(P):g.flags&2097152&&P.length?ga(P):void 0:g}if(g.flags&4194304)return Ls;if(g.flags&134217728){let T=g.types,P=to(T,u);return P.length===T.length?FA(g.texts,P):Ne}if(g.flags&268435456){let T=u(g.type);return T&&T!==g.type?sx(g.symbol,T):Ne}if(g.flags&8388608){if(Zhe(g))return u(DZ(g.objectType,g.indexType));let T=u(g.objectType),P=u(g.indexType),W=T&&P&&Lb(T,P,g.accessFlags);return W&&u(W)}if(g.flags&16777216){let T=vwe(g);return T&&u(T)}if(g.flags&33554432)return u(hge(g));if(Fb(g)){let T=mn(LS(g),(P,W)=>{let V=P.flags&262144&&g.target.elementFlags[W]&8&&u(P)||P;return V!==P&&ap(V,te=>a0(te)&&!Fb(te))?V:P});return Wh(T,g.target.elementFlags,g.target.readonly,g.target.labeledElementDeclarations)}return g}}function cat(n,a){return n.resolvedApparentType||(n.resolvedApparentType=Up(n,a,!0))}function Qhe(n){if(n.default)n.default===ud&&(n.default=nd);else if(n.target){let a=Qhe(n.target);n.default=a?io(a,n.mapper):Fs}else{n.default=ud;let a=n.symbol&&gn(n.symbol.declarations,u=>fl(u)&&u.default),c=a?Ti(a):Fs;n.default===ud&&(n.default=c)}return n.default}function OA(n){let a=Qhe(n);return a!==Fs&&a!==nd?a:void 0}function dat(n){return Qhe(n)!==nd}function Ewe(n){return!!(n.symbol&&gn(n.symbol.declarations,a=>fl(a)&&a.default))}function Swe(n){return n.resolvedApparentType||(n.resolvedApparentType=uat(n))}function uat(n){let a=n.target??n,c=T8(a);if(c&&!a.declaration.nameType){let u=LA(n),_=ju(u)?Swe(u):zd(u);if(_&&ap(_,g=>a0(g)||Twe(g)))return io(a,VA(c,_,n.mapper))}return n}function Twe(n){return!!(n.flags&2097152)&&oo(n.types,a0)}function Zhe(n){let a;return!!(n.flags&8388608&&Lr(a=n.objectType)&32&&!ju(a)&&GA(n.indexType)&&!(kh(a)&8)&&!a.declaration.nameType)}function Nu(n){let a=n.flags&465829888?zd(n)||un:n,c=Lr(a);return c&32?Swe(a):c&4&&a!==n?Up(a,n):a.flags&2097152?cat(a,n):a.flags&402653316?Ql:a.flags&296?gc:a.flags&2112?qat():a.flags&528?sl:a.flags&12288?Ywe():a.flags&67108864?Ca:a.flags&4194304?Ls:a.flags&2&&!J?Ca:a}function MM(n){return c_(Nu(c_(n)))}function Awe(n,a,c){var u,_,g;let T,P,W,V=n.flags&1048576,te,ye=4,_e=V?0:8,je=!1;for(let Yn of n.types){let jn=Nu(Yn);if(!(Vt(jn)||jn.flags&131072)){let $n=ha(jn,a,c),Ro=$n?Tf($n):0;if($n){if($n.flags&106500&&(te??(te=V?0:16777216),V?te|=$n.flags&16777216:te&=$n.flags),!T)T=$n;else if($n!==T)if((TC($n)||$n)===(TC(T)||T)&&nye(T,$n,(Fo,fo)=>Fo===fo?-1:0)===-1)je=!!T.parent&&!!Nn(Nr(T.parent));else{P||(P=new Map,P.set(ba(T),T));let Fo=ba($n);P.has(Fo)||P.set(Fo,$n)}V&&f_($n)?_e|=8:!V&&!f_($n)&&(_e&=-9),_e|=(Ro&6?0:256)|(Ro&4?512:0)|(Ro&2?1024:0)|(Ro&256?2048:0),Qye($n)||(ye=2)}else if(V){let bo=!p8(a)&&ox(jn,a);bo?(_e|=32|(bo.isReadonly?8:0),W=Tn(W,wa(jn)?JZ(jn)||Me:bo.type)):c0(jn)&&!(Lr(jn)&2097152)?(_e|=32,W=Tn(W,Me)):_e|=16}}}if(!T||V&&(P||_e&48)&&_e&1536&&!(P&&pat(P.values())))return;if(!P&&!(_e&16)&&!W)if(je){let Yn=(u=ri(T,ch))==null?void 0:u.links,jn=UA(T,Yn?.type);return jn.parent=(g=(_=T.valueDeclaration)==null?void 0:_.symbol)==null?void 0:g.parent,jn.links.containingType=n,jn.links.mapper=Yn?.mapper,jn.links.writeType=NS(T),jn}else return T;let mt=P?Wo(P.values()):[T],At,rn,sn,nr=[],Mn,an,On=!1;for(let Yn of mt){an?Yn.valueDeclaration&&Yn.valueDeclaration!==an&&(On=!0):an=Yn.valueDeclaration,At=Hr(At,Yn.declarations);let jn=sr(Yn);rn||(rn=jn,sn=qi(Yn).nameType);let $n=NS(Yn);(Mn||$n!==jn)&&(Mn=Tn(Mn||nr.slice(),$n)),jn!==rn&&(_e|=64),(D8(jn)||zA(jn))&&(_e|=128),jn.flags&131072&&jn!==cd&&(_e|=131072),nr.push(jn)}Hr(nr,W);let Ln=Ka(4|(te??0),a,ye|_e);return Ln.links.containingType=n,!On&&an&&(Ln.valueDeclaration=an,an.symbol.parent&&(Ln.parent=an.symbol.parent)),Ln.declarations=At,Ln.links.nameType=sn,nr.length>2?(Ln.links.checkFlags|=65536,Ln.links.deferralParent=n,Ln.links.deferralConstituents=nr,Ln.links.deferralWriteConstituents=Mn):(Ln.links.type=V?ei(nr):ga(nr),Mn&&(Ln.links.writeType=V?ei(Mn):ga(Mn))),Ln}function Iwe(n,a,c){var u,_,g;let T=c?(u=n.propertyCacheWithoutObjectFunctionPropertyAugment)==null?void 0:u.get(a):(_=n.propertyCache)==null?void 0:_.get(a);return T||(T=Awe(n,a,c),T&&((c?n.propertyCacheWithoutObjectFunctionPropertyAugment||(n.propertyCacheWithoutObjectFunctionPropertyAugment=aa()):n.propertyCache||(n.propertyCache=aa())).set(a,T),c&&!(Tl(T)&48)&&!((g=n.propertyCache)!=null&&g.get(a))&&(n.propertyCache||(n.propertyCache=aa())).set(a,T))),T}function pat(n){let a;for(let c of n){if(!c.declarations)return;if(!a){a=new Set(c.declarations);continue}if(a.forEach(u=>{Bo(c.declarations,u)||a.delete(u)}),a.size===0)return}return a}function t5(n,a,c){let u=Iwe(n,a,c);return u&&!(Tl(u)&16)?u:void 0}function c_(n){return n.flags&1048576&&n.objectFlags&16777216?n.resolvedReducedType||(n.resolvedReducedType=fat(n)):n.flags&2097152?(n.objectFlags&16777216||(n.objectFlags|=16777216|(gt(ZB(n),mat)?33554432:0)),n.objectFlags&33554432?Fr:n):n}function fat(n){let a=Pc(n.types,c_);if(a===n.types)return n;let c=ei(a);return c.flags&1048576&&(c.resolvedReducedType=c),c}function mat(n){return xwe(n)||Rwe(n)}function xwe(n){return!(n.flags&16777216)&&(Tl(n)&131264)===192&&!!(sr(n).flags&131072)}function Rwe(n){return!n.valueDeclaration&&!!(Tl(n)&1024)}function ege(n){return!!(n.flags&1048576&&n.objectFlags&16777216&>(n.types,ege)||n.flags&2097152&&_at(n))}function _at(n){let a=n.uniqueLiteralFilledInstantiation||(n.uniqueLiteralFilledInstantiation=io(n,mo));return c_(a)!==a}function tge(n,a){if(a.flags&2097152&&Lr(a)&33554432){let c=Vr(ZB(a),xwe);if(c)return zo(n,f.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Vn(a,void 0,536870912),Si(c));let u=Vr(ZB(a),Rwe);if(u)return zo(n,f.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Vn(a,void 0,536870912),Si(u))}return n}function ha(n,a,c,u){var _,g;if(n=MM(n),n.flags&524288){let T=l_(n),P=T.members.get(a);if(P&&!u&&((_=n.symbol)==null?void 0:_.flags)&512&&((g=qi(n.symbol).typeOnlyExportStarMap)!=null&&g.has(a)))return;if(P&&wm(P,u))return P;if(c)return;let W=T===tn?Lt:T.callSignatures.length?Un:T.constructSignatures.length?yo:void 0;if(W){let V=e0(W,a);if(V)return V}return e0(Re,a)}if(n.flags&2097152){let T=t5(n,a,!0);return T||(c?void 0:t5(n,a,c))}if(n.flags&1048576)return t5(n,a,c)}function n5(n,a){if(n.flags&3670016){let c=l_(n);return a===0?c.callSignatures:c.constructSignatures}return Xe}function Jo(n,a){let c=n5(MM(n),a);if(a===0&&!Nn(c)&&n.flags&1048576){if(n.arrayFallbackSignatures)return n.arrayFallbackSignatures;let u;if(ap(n,_=>{var g;return!!((g=_.symbol)!=null&&g.parent)&&hat(_.symbol.parent)&&(u?u===_.symbol.escapedName:(u=_.symbol.escapedName,!0))})){let _=ll(n,T=>wb((Dwe(T.symbol.parent)?Zo:Xo).typeParameters[0],T.mapper)),g=Bd(_,Fm(n,T=>Dwe(T.symbol.parent)));return n.arrayFallbackSignatures=Jo(Ue(g,u),a)}n.arrayFallbackSignatures=c}return c}function hat(n){return!n||!Xo.symbol||!Zo.symbol?!1:!!r_(n,Xo.symbol)||!!r_(n,Zo.symbol)}function Dwe(n){return!n||!Zo.symbol?!1:!!r_(n,Zo.symbol)}function nge(n,a){return Vr(n,c=>c.keyType===a)}function rge(n,a){let c,u,_;for(let g of n)g.keyType===Ne?c=g:ix(a,g.keyType)&&(u?(_||(_=[u])).push(g):u=g);return _?Oh(un,ga(mn(_,g=>g.type)),tu(_,(g,T)=>g&&T.isReadonly,!0)):u||(c&&ix(a,Ne)?c:void 0)}function ix(n,a){return ya(n,a)||a===Ne&&ya(n,It)||a===It&&(n===ss||!!(n.flags&128)&&ng(n.value))}function ige(n){return n.flags&3670016?l_(n).indexInfos:Xe}function _u(n){return ige(MM(n))}function vg(n,a){return nge(_u(n),a)}function t0(n,a){var c;return(c=vg(n,a))==null?void 0:c.type}function oge(n,a){return _u(n).filter(c=>ix(a,c.keyType))}function m8(n,a){return rge(_u(n),a)}function ox(n,a){return m8(n,p8(a)?xi:Uu(Vi(a)))}function Cwe(n){var a;let c;for(let u of Rv(n))c=xg(c,MA(u.symbol));return c?.length?c:Ec(n)?(a=LM(n))==null?void 0:a.typeParameters:void 0}function age(n){let a=[];return n.forEach((c,u)=>{xS(u)||a.push(c)}),a}function hZ(n,a){if(Yc(n))return;let c=Vu(be,'"'+n+'"',512);return c&&a?es(c):c}function _8(n){if(xI(n)||uk(n)||pk(n))return!0;if(n.initializer){let c=lm(n.parent),u=n.parent.parameters.indexOf(n);return x.assert(u>=0),u>=Q_(c,3)}let a=_T(n.parent);return a?!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=Dee(a).length:!1}function gat(n){return Uo(n)&&!I_(n)&&n.questionToken}function r5(n,a,c,u){return{kind:n,parameterName:a,parameterIndex:c,type:u}}function wh(n){let a=0;if(n)for(let c=0;c=c&&g<=_){let T=n?n.slice():[];for(let W=g;W<_;W++)T[W]=ut;let P=Eye(u);for(let W=g;W<_;W++){let V=OA(a[W]);u&&V&&(py(V,un)||py(V,Ca))&&(V=G),T[W]=V?io(V,Np(a,T)):P}return T.length=a.length,T}return n&&n.slice()}function lm(n){let a=Qr(n);if(!a.resolvedSignature){let c=[],u=0,_=0,g,T=ir(n)?nF(n):void 0,P=!1,W=_T(n),V=rR(n);!W&&ir(n)&&gie(n)&&!Yne(n)&&!nE(n)&&(u|=32);for(let mt=V?1:0;mtW.arguments.length&&!sn||pk(At)||(_=c.length)}if((n.kind===177||n.kind===178)&&oC(n)&&(!P||!g)){let mt=n.kind===177?178:177,At=cl(Sr(n),mt);At&&(g=sZ(At))}T&&T.typeExpression&&(g=UA(Ka(1,"this"),Ti(T.typeExpression)));let ye=yE(n)?cE(n):n,_e=ye&&Pl(ye)?Wf(es(ye.parent.symbol)):void 0,je=_e?_e.localTypeParameters:Cwe(n);(FV(n)||ir(n)&&yat(n,c))&&(u|=1),(RR(n)&&$r(n,64)||Pl(n)&&$r(n.parent,64))&&(u|=4),a.resolvedSignature=yg(n,je,g,c,void 0,void 0,_,u)}return a.resolvedSignature}function yat(n,a){if(yE(n)||!sge(n))return!1;let c=$s(n.parameters),u=c?kx(c):rE(n).filter(Ym),_=Wl(u,T=>T.typeExpression&&j4(T.typeExpression.type)?T.typeExpression.type:void 0),g=Ka(3,"args",32768);return _?g.links.type=Bd(Ti(_.type)):(g.links.checkFlags|=65536,g.links.deferralParent=Fr,g.links.deferralConstituents=[Zl],g.links.deferralWriteConstituents=[Zl]),_&&a.pop(),a.push(g),!0}function LM(n){if(!(ir(n)&&ws(n)))return;let a=tE(n);return a?.typeExpression&&QA(Ti(a.typeExpression))}function vat(n,a){let c=LM(n);if(!c)return;let u=n.parameters.indexOf(a);return a.dotDotDotToken?J5(c,u):p_(c,u)}function bat(n){let a=LM(n);return a&&ds(a)}function sge(n){let a=Qr(n);return a.containsArgumentsReference===void 0&&(a.flags&512?a.containsArgumentsReference=!0:a.containsArgumentsReference=c(n.body)),a.containsArgumentsReference;function c(u){if(!u)return!1;switch(u.kind){case 80:return u.escapedText===Wt.escapedName&&$8(u)===Wt;case 172:case 174:case 177:case 178:return u.name.kind===167&&c(u.name);case 211:case 212:return c(u.expression);case 303:return c(u.initializer);default:return!Cj(u)&&!qh(u)&&!!Go(u,c)}}}function PS(n){if(!n||!n.declarations)return Xe;let a=[];for(let c=0;c0&&u.body){let _=n.declarations[c-1];if(u.parent===_.parent&&u.kind===_.kind&&u.pos===_.end)continue}if(ir(u)&&u.jsDoc){let _=vj(u);if(Nn(_)){for(let g of _){let T=g.typeExpression;T.type===void 0&&!Pl(u)&&s0(T,G),a.push(lm(T))}continue}}a.push(!F0(u)&&!bm(u)&&LM(u)||lm(u))}}return a}function Nwe(n){let a=mu(n,n);if(a){let c=Ip(a);if(c)return sr(c)}return G}function n0(n){if(n.thisParameter)return sr(n.thisParameter)}function Ff(n){if(!n.resolvedTypePredicate){if(n.target){let a=Ff(n.target);n.resolvedTypePredicate=a?ilt(a,n.mapper):Pe}else if(n.compositeSignatures)n.resolvedTypePredicate=vst(n.compositeSignatures,n.compositeKind)||Pe;else{let a=n.declaration&&$f(n.declaration),c;if(!a){let u=LM(n.declaration);u&&n!==u&&(c=Ff(u))}n.resolvedTypePredicate=a&&Lk(a)?Eat(a,n):c||Pe}x.assert(!!n.resolvedTypePredicate)}return n.resolvedTypePredicate===Pe?void 0:n.resolvedTypePredicate}function Eat(n,a){let c=n.parameterName,u=n.type&&Ti(n.type);return c.kind===197?r5(n.assertsModifier?2:0,void 0,void 0,u):r5(n.assertsModifier?3:1,c.escapedText,Kl(a.parameters,_=>_.escapedName===c.escapedText),u)}function Pwe(n,a,c){return a!==2097152?ei(n,c):ga(n)}function ds(n){if(!n.resolvedReturnType){if(!Mh(n,3))return ut;let a=n.target?io(ds(n.target),n.mapper):n.compositeSignatures?io(Pwe(mn(n.compositeSignatures,ds),n.compositeKind,2),n.mapper):sC(n.declaration)||(Fl(n.declaration.body)?G:Mee(n.declaration));if(n.flags&8?a=u8e(a):n.flags&16&&(a=zb(a)),!H_()){if(n.declaration){let c=$f(n.declaration);if(c)Ve(c,f.Return_type_annotation_circularly_references_itself);else if(fe){let u=n.declaration,_=Po(u);_?Ve(_,f._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Ts(_)):Ve(u,f.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}a=G}n.resolvedReturnType=a}return n.resolvedReturnType}function sC(n){if(n.kind===176)return Wf(es(n.parent.symbol));let a=$f(n);if(yE(n)){let c=iR(n);if(c&&Pl(c.parent)&&!a)return Wf(es(c.parent.parent.symbol))}if(rR(n))return Ti(n.parameters[0].type);if(a)return Ti(a);if(n.kind===177&&oC(n)){let c=ir(n)&&iy(n);if(c)return c;let u=cl(Sr(n),178),_=$E(u);if(_)return _}return bat(n)}function gZ(n){return n.compositeSignatures&>(n.compositeSignatures,gZ)||!n.resolvedReturnType&&nx(n,3)>=0}function Sat(n){return Mwe(n)||G}function Mwe(n){if(qd(n)){let a=sr(n.parameters[n.parameters.length-1]),c=wa(a)?JZ(a):a;return c&&t0(c,It)}}function h8(n,a,c,u){let _=lge(n,Pb(a,n.typeParameters,wh(n.typeParameters),c));if(u){let g=UWe(ds(_));if(g){let T=f8(g);T.typeParameters=u;let P=f8(_);return P.resolvedReturnType=WA(T),P}}return _}function lge(n,a){let c=n.instantiations||(n.instantiations=new Map),u=cm(a),_=c.get(u);return _||c.set(u,_=yZ(n,a)),_}function yZ(n,a){return mC(n,Tat(n,a),!0)}function Tat(n,a){return Np(n.typeParameters,a)}function g8(n){return n.typeParameters?n.erasedSignatureCache||(n.erasedSignatureCache=Aat(n)):n}function Aat(n){return mC(n,wOe(n.typeParameters),!0)}function Iat(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=xat(n)):n}function xat(n){return h8(n,mn(n.typeParameters,a=>a.target&&!Cu(a.target)?a.target:a),ir(n.declaration))}function Rat(n){let a=n.typeParameters;if(a){if(n.baseSignatureCache)return n.baseSignatureCache;let c=wOe(a),u=Np(a,mn(a,g=>Cu(g)||un)),_=mn(a,g=>io(g,u)||un);for(let g=0;g{bZ(_)&&!nge(a,_)&&a.push(Oh(_,c.type?Ti(c.type):G,fp(c,8),c))})}return a}return Xe}function bZ(n){return!!(n.flags&4108)||zA(n)||!!(n.flags&2097152)&&!pC(n)&>(n.types,bZ)}function uge(n){return to(jr(n.symbol&&n.symbol.declarations,fl),wx)[0]}function kwe(n,a){var c;let u;if((c=n.symbol)!=null&&c.declarations){for(let _ of n.symbol.declarations)if(_.parent.kind===195){let[g=_.parent,T]=yie(_.parent.parent);if(T.kind===183&&!a){let P=T,W=wve(P);if(W){let V=P.typeArguments.indexOf(g);if(V()=>Vft(P,W,mt))),_e=io(te,ye);_e!==n&&(u=Tn(u,_e))}}}}else if(T.kind===169&&T.dotDotDotToken||T.kind===191||T.kind===202&&T.dotDotDotToken)u=Tn(u,Bd(un));else if(T.kind===204)u=Tn(u,Ne);else if(T.kind===168&&T.parent.kind===200)u=Tn(u,Ls);else if(T.kind===200&&T.type&&fs(T.type)===_.parent&&T.parent.kind===194&&T.parent.extendsType===T&&T.parent.checkType.kind===200&&T.parent.checkType.type){let P=T.parent.checkType,W=Ti(P.type);u=Tn(u,io(W,OS(MA(Sr(P.typeParameter)),P.typeParameter.constraint?Ti(P.typeParameter.constraint):Ls)))}}}return u&&ga(u)}function kM(n){if(!n.constraint)if(n.target){let a=Cu(n.target);n.constraint=a?io(a,n.mapper):Fs}else{let a=uge(n);if(!a)n.constraint=kwe(n)||Fs;else{let c=Ti(a);c.flags&1&&!Vt(c)&&(c=a.parent.parent.kind===200?Ls:un),n.constraint=c}}return n.constraint===Fs?void 0:n.constraint}function wwe(n){let a=cl(n.symbol,168),c=nm(a.parent)?QF(a.parent):a.parent;return c&&pf(c)}function cm(n){let a="";if(n){let c=n.length,u=0;for(;u1&&(a+=":"+g),u+=g}}return a}function ax(n,a){return n?`@${ba(n)}`+(a?`:${cm(a)}`:""):""}function EZ(n,a){let c=0;for(let u of n)(a===void 0||!(u.flags&a))&&(c|=Lr(u));return c&458752}function lC(n,a){return gt(a)&&n===Lo?un:sv(n,a)}function sv(n,a){let c=cm(a),u=n.instantiations.get(c);return u||(u=kf(4,n.symbol),n.instantiations.set(c,u),u.objectFlags|=a?EZ(a):0,u.target=n,u.resolvedTypeArguments=a),u}function Owe(n){let a=hg(n.flags,n.symbol);return a.objectFlags=n.objectFlags,a.target=n.target,a.resolvedTypeArguments=n.resolvedTypeArguments,a}function pge(n,a,c,u,_){if(!u){u=lx(a);let T=fC(u);_=c?dv(T,c):T}let g=kf(4,n.symbol);return g.target=n,g.node=a,g.mapper=c,g.aliasSymbol=u,g.aliasTypeArguments=_,g}function Vs(n){var a,c;if(!n.resolvedTypeArguments){if(!Mh(n,6))return((a=n.target.localTypeParameters)==null?void 0:a.map(()=>ut))||Xe;let u=n.node,_=u?u.kind===183?Eo(n.target.outerTypeParameters,Wee(u,n.target.localTypeParameters)):u.kind===188?[Ti(u.elementType)]:mn(u.elements,Ti):Xe;H_()?n.resolvedTypeArguments=n.mapper?dv(_,n.mapper):_:(n.resolvedTypeArguments=((c=n.target.localTypeParameters)==null?void 0:c.map(()=>ut))||Xe,Ve(n.node||D,n.target.symbol?f.Type_arguments_for_0_circularly_reference_themselves:f.Tuple_type_arguments_circularly_reference_themselves,n.target.symbol&&Si(n.target.symbol)))}return n.resolvedTypeArguments}function lv(n){return Nn(n.target.typeParameters)}function Wwe(n,a){let c=Xs(es(a)),u=c.localTypeParameters;if(u){let _=Nn(n.typeArguments),g=wh(u),T=ir(n);if(!(!fe&&T)&&(_u.length)){let V=T&&zy(n)&&!a1(n.parent),te=g===u.length?V?f.Expected_0_type_arguments_provide_these_with_an_extends_tag:f.Generic_type_0_requires_1_type_argument_s:V?f.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:f.Generic_type_0_requires_between_1_and_2_type_arguments,ye=Vn(c,void 0,2);if(Ve(n,te,ye,g,u.length),!T)return ut}if(n.kind===183&&rOe(n,Nn(n.typeArguments)!==u.length))return pge(c,n,void 0);let W=Eo(c.outerTypeParameters,Pb(i5(n),u,g,T));return sv(c,W)}return MS(n,a)?c:ut}function cC(n,a,c,u){let _=Xs(n);if(_===dn){let V=L3.get(n.escapedName);if(V!==void 0&&a&&a.length===1)return V===4?fge(a[0]):sx(n,a[0])}let g=qi(n),T=g.typeParameters,P=cm(a)+ax(c,u),W=g.instantiations.get(P);return W||g.instantiations.set(P,W=FOe(_,Np(T,Pb(a,T,wh(T),ir(n.valueDeclaration))),c,u)),W}function Dat(n,a){if(Tl(a)&1048576){let _=i5(n),g=ax(a,_),T=ke.get(g);return T||(T=sc(1,"error",void 0,`alias ${g}`),T.aliasSymbol=a,T.aliasTypeArguments=_,ke.set(g,T)),T}let c=Xs(a),u=qi(a).typeParameters;if(u){let _=Nn(n.typeArguments),g=wh(u);if(_u.length)return Ve(n,g===u.length?f.Generic_type_0_requires_1_type_argument_s:f.Generic_type_0_requires_between_1_and_2_type_arguments,Si(a),g,u.length),ut;let T=lx(n),P=T&&(Fwe(a)||!Fwe(T))?T:void 0,W;if(P)W=fC(P);else if(gF(n)){let V=dC(n,2097152,!0);if(V&&V!==lt){let te=Wc(V);te&&te.flags&524288&&(P=te,W=i5(n)||(u?[]:void 0))}}return cC(a,i5(n),P,W)}return MS(n,a)?c:ut}function Fwe(n){var a;let c=(a=n.declarations)==null?void 0:a.find(W2);return!!(c&&Wp(c))}function Cat(n){switch(n.kind){case 183:return n.typeName;case 233:let a=n.expression;if(Bl(a))return a}}function zwe(n){return n.parent?`${zwe(n.parent)}.${n.escapedName}`:n.escapedName}function SZ(n){let c=(n.kind===166?n.right:n.kind===211?n.name:n).escapedText;if(c){let u=n.kind===166?SZ(n.left):n.kind===211?SZ(n.expression):void 0,_=u?`${zwe(u)}.${c}`:c,g=ae.get(_);return g||(ae.set(_,g=Ka(524288,c,1048576)),g.parent=u,g.links.declaredType=Ft),g}return lt}function dC(n,a,c){let u=Cat(n);if(!u)return lt;let _=Bs(u,a,c);return _&&_!==lt?_:c?lt:SZ(u)}function TZ(n,a){if(a===lt)return ut;if(a=IM(a)||a,a.flags&96)return Wwe(n,a);if(a.flags&524288)return Dat(n,a);let c=nwe(a);if(c)return MS(n,a)?gu(c):ut;if(a.flags&111551&&AZ(n)){let u=Nat(n,a);return u||(dC(n,788968),sr(a))}return ut}function Nat(n,a){let c=Qr(n);if(!c.resolvedJSDocType){let u=sr(a),_=u;if(a.valueDeclaration){let g=n.kind===205&&n.qualifier;u.symbol&&u.symbol!==a&&g&&(_=TZ(n,u.symbol))}c.resolvedJSDocType=_}return c.resolvedJSDocType}function fge(n){return mge(n)?Bwe(n,un):n}function mge(n){return!!(n.flags&3145728&>(n.types,mge)||n.flags&33554432&&!wM(n)&&mge(n.baseType)||n.flags&524288&&!Fh(n)||n.flags&432275456&&!zA(n))}function wM(n){return!!(n.flags&33554432&&n.constraint.flags&2)}function _ge(n,a){return a.flags&3||a===n||n.flags&1?n:Bwe(n,a)}function Bwe(n,a){let c=`${hu(n)}>${hu(a)}`,u=Io.get(c);if(u)return u;let _=_g(33554432);return _.baseType=n,_.constraint=a,Io.set(c,_),_}function hge(n){return wM(n)?n.baseType:ga([n.constraint,n.baseType])}function Gwe(n){return n.kind===189&&n.elements.length===1}function Vwe(n,a,c){return Gwe(a)&&Gwe(c)?Vwe(n,a.elements[0],c.elements[0]):kb(Ti(a))===kb(n)?Ti(c):void 0}function Pat(n,a){let c,u=!0;for(;a&&!Hi(a)&&a.kind!==327;){let _=a.parent;if(_.kind===169&&(u=!u),(u||n.flags&8650752)&&_.kind===194&&a===_.trueType){let g=Vwe(n,_.checkType,_.extendsType);g&&(c=Tn(c,g))}else if(n.flags&262144&&_.kind===200&&!_.nameType&&a===_.type){let g=Ti(_);if(s_(g)===kb(n)){let T=T8(g);if(T){let P=Cu(T);P&&ap(P,a0)&&(c=Tn(c,ei([It,ss])))}}}a=_}return c?_ge(n,ga(c)):n}function AZ(n){return!!(n.flags&16777216)&&(n.kind===183||n.kind===205)}function MS(n,a){return n.typeArguments?(Ve(n,f.Type_0_is_not_generic,a?Si(a):n.typeName?Ts(n.typeName):C3),!1):!0}function jwe(n){if(Fe(n.typeName)){let a=n.typeArguments;switch(n.typeName.escapedText){case"String":return MS(n),Ne;case"Number":return MS(n),It;case"Boolean":return MS(n),gi;case"Void":return MS(n),er;case"Undefined":return MS(n),Me;case"Null":return MS(n),ue;case"Function":case"function":return MS(n),Lt;case"array":return(!a||!a.length)&&!fe?Zl:void 0;case"promise":return(!a||!a.length)&&!fe?X5(G):void 0;case"Object":if(a&&a.length===2){if(HF(n)){let c=Ti(a[0]),u=Ti(a[1]),_=c===Ne||c===It?[Oh(c,u,!1)]:Xe;return Ds(void 0,K,Xe,Xe,_)}return G}return MS(n),fe?void 0:G}}}function Mat(n){let a=Ti(n.type);return J?S5(a,65536):a}function gge(n){let a=Qr(n);if(!a.resolvedType){if(Ng(n)&&cT(n.parent))return a.resolvedSymbol=lt,a.resolvedType=tc(n.parent.expression);let c,u,_=788968;AZ(n)&&(u=jwe(n),u||(c=dC(n,_,!0),c===lt?c=dC(n,_|111551):dC(n,_),u=TZ(n,c))),u||(c=dC(n,_),u=TZ(n,c)),a.resolvedSymbol=c,a.resolvedType=u}return a.resolvedType}function i5(n){return mn(n.typeArguments,Ti)}function Uwe(n){let a=Qr(n);if(!a.resolvedType){let c=dFe(n);a.resolvedType=gu(Hp(c))}return a.resolvedType}function Hwe(n,a){function c(_){let g=_.declarations;if(g)for(let T of g)switch(T.kind){case 263:case 264:case 266:return T}}if(!n)return a?Lo:Ca;let u=Xs(n);return u.flags&524288?Nn(u.typeParameters)!==a?(Ve(c(n),f.Global_type_0_must_have_1_type_parameter_s,vl(n),a),a?Lo:Ca):u:(Ve(c(n),f.Global_type_0_must_be_a_class_or_interface_type,vl(n)),a?Lo:Ca)}function yge(n,a){return OM(n,111551,a?f.Cannot_find_global_value_0:void 0)}function vge(n,a){return OM(n,788968,a?f.Cannot_find_global_type_0:void 0)}function IZ(n,a,c){let u=OM(n,788968,c?f.Cannot_find_global_type_0:void 0);if(u&&(Xs(u),Nn(qi(u).typeParameters)!==a)){let _=u.declarations&&Vr(u.declarations,Tm);Ve(_,f.Global_type_0_must_have_1_type_parameter_s,vl(u),a);return}return u}function OM(n,a,c){return hl(void 0,n,a,c,n,!1,!1,!1)}function ec(n,a,c){let u=vge(n,c);return u||c?Hwe(u,a):void 0}function Lat(){return Ah||(Ah=ec("TypedPropertyDescriptor",1,!0)||Lo)}function kat(){return Zn||(Zn=ec("TemplateStringsArray",0,!0)||Ca)}function Kwe(){return ii||(ii=ec("ImportMeta",0,!0)||Ca)}function Jwe(){if(!Xr){let n=Ka(0,"ImportMetaExpression"),a=Kwe(),c=Ka(4,"meta",8);c.parent=n,c.links.type=a;let u=aa([c]);n.members=u,Xr=Ds(n,u,Xe,Xe,Xe)}return Xr}function qwe(n){return no||(no=ec("ImportCallOptions",0,n))||Ca}function bge(n){return La||(La=ec("ImportAttributes",0,n))||Ca}function Xwe(n){return xu||(xu=yge("Symbol",n))}function wat(n){return Pf||(Pf=vge("SymbolConstructor",n))}function Ywe(){return z_||(z_=ec("Symbol",0,!1))||Ca}function o5(n){return Hg||(Hg=ec("Promise",1,n))||Lo}function $we(n){return Fd||(Fd=ec("PromiseLike",1,n))||Lo}function Ege(n){return Kg||(Kg=yge("Promise",n))}function Oat(n){return Sp||(Sp=ec("PromiseConstructorLike",0,n))||Ca}function xZ(n){return O||(O=ec("AsyncIterable",1,n))||Lo}function Wat(n){return Ee||(Ee=ec("AsyncIterator",3,n))||Lo}function Fat(n){return nt||(nt=ec("AsyncIterableIterator",1,n))||Lo}function zat(n){return Gt||(Gt=ec("AsyncGenerator",3,n))||Lo}function Sge(n){return lg||(lg=ec("Iterable",1,n))||Lo}function Bat(n){return zu||(zu=ec("Iterator",3,n))||Lo}function Gat(n){return Q||(Q=ec("IterableIterator",1,n))||Lo}function Vat(n){return rt||(rt=ec("Generator",3,n))||Lo}function jat(n){return wt||(wt=ec("IteratorYieldResult",1,n))||Lo}function Uat(n){return zt||(zt=ec("IteratorReturnResult",1,n))||Lo}function Qwe(n){return ka||(ka=ec("Disposable",0,n))||Ca}function Hat(n){return wl||(wl=ec("AsyncDisposable",0,n))||Ca}function Zwe(n,a=0){let c=OM(n,788968,void 0);return c&&Hwe(c,a)}function Kat(){return pd||(pd=IZ("Extract",2,!0)||lt),pd===lt?void 0:pd}function Jat(){return Ic||(Ic=IZ("Omit",2,!0)||lt),Ic===lt?void 0:Ic}function Tge(n){return Tp||(Tp=IZ("Awaited",1,n)||(n?lt:void 0)),Tp===lt?void 0:Tp}function qat(){return Bu||(Bu=ec("BigInt",0,!1))||Ca}function Xat(n){return Dm??(Dm=ec("ClassDecoratorContext",1,n))??Lo}function Yat(n){return Cm??(Cm=ec("ClassMethodDecoratorContext",2,n))??Lo}function $at(n){return Ui??(Ui=ec("ClassGetterDecoratorContext",2,n))??Lo}function Qat(n){return Jg??(Jg=ec("ClassSetterDecoratorContext",2,n))??Lo}function Zat(n){return $y??($y=ec("ClassAccessorDecoratorContext",2,n))??Lo}function est(n){return Nm??(Nm=ec("ClassAccessorDecoratorTarget",2,n))??Lo}function tst(n){return pS??(pS=ec("ClassAccessorDecoratorResult",2,n))??Lo}function nst(n){return fS??(fS=ec("ClassFieldDecoratorContext",2,n))??Lo}function rst(){return ob||(ob=yge("NaN",!1))}function ist(){return ls||(ls=IZ("Record",2,!0)||lt),ls===lt?void 0:ls}function y8(n,a){return n!==Lo?sv(n,a):Ca}function eOe(n){return y8(Lat(),[n])}function tOe(n){return y8(Sge(!0),[n])}function Bd(n,a){return y8(a?Zo:Xo,[n])}function Age(n){switch(n.kind){case 190:return 2;case 191:return nOe(n);case 202:return n.questionToken?2:n.dotDotDotToken?nOe(n):1;default:return 1}}function nOe(n){return d5(n.type)?4:8}function ost(n){let a=lst(n.parent);if(d5(n))return a?Zo:Xo;let u=mn(n.elements,Age);return Ige(u,a,mn(n.elements,ast))}function ast(n){return DR(n)||Ao(n)?n:void 0}function rOe(n,a){return!!lx(n)||iOe(n)&&(n.kind===188?Mb(n.elementType):n.kind===189?gt(n.elements,Mb):a||gt(n.typeArguments,Mb))}function iOe(n){let a=n.parent;switch(a.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return iOe(a);case 265:return!0}return!1}function Mb(n){switch(n.kind){case 183:return AZ(n)||!!(dC(n,788968).flags&524288);case 186:return!0;case 198:return n.operator!==158&&Mb(n.type);case 196:case 190:case 202:case 323:case 321:case 322:case 316:return Mb(n.type);case 191:return n.type.kind!==188||Mb(n.type.elementType);case 192:case 193:return gt(n.types,Mb);case 199:return Mb(n.objectType)||Mb(n.indexType);case 194:return Mb(n.checkType)||Mb(n.extendsType)||Mb(n.trueType)||Mb(n.falseType)}return!1}function sst(n){let a=Qr(n);if(!a.resolvedType){let c=ost(n);if(c===Lo)a.resolvedType=Ca;else if(!(n.kind===189&>(n.elements,u=>!!(Age(u)&8)))&&rOe(n))a.resolvedType=n.kind===189&&n.elements.length===0?c:pge(c,n,void 0);else{let u=n.kind===188?[Ti(n.elementType)]:mn(n.elements,Ti);a.resolvedType=xge(c,u)}}return a.resolvedType}function lst(n){return PT(n)&&n.operator===148}function Wh(n,a,c=!1,u=[]){let _=Ige(a||mn(n,g=>1),c,u);return _===Lo?Ca:n.length?xge(_,n):_}function Ige(n,a,c){if(n.length===1&&n[0]&4)return a?Zo:Xo;let u=mn(n,g=>g&1?"#":g&2?"?":g&4?".":"*").join()+(a?"R":"")+(gt(c,g=>!!g)?","+mn(c,g=>g?rs(g):"_").join(","):""),_=So.get(u);return _||So.set(u,_=cst(n,a,c)),_}function cst(n,a,c){let u=n.length,_=yv(n,ye=>!!(ye&9)),g,T=[],P=0;if(u){g=new Array(u);for(let ye=0;ye!!(n.elementFlags[rn]&8&&At.flags&1179648));if(mt>=0)return s5(mn(a,(At,rn)=>n.elementFlags[rn]&8?At:un))?ll(a[mt],At=>Rge(n,zG(a,mt,At))):ut}let T=[],P=[],W=[],V=-1,te=-1,ye=-1;for(let mt=0;mt=1e4)return Ve(D,qh(D)?f.Type_produces_a_tuple_type_that_is_too_large_to_represent:f.Expression_produces_a_tuple_type_that_is_too_large_to_represent),ut;gn(sn,(nr,Mn)=>{var an;return je(nr,At.target.elementFlags[Mn],(an=At.target.labeledElementDeclarations)==null?void 0:an[Mn])})}else je(uv(At)&&t0(At,It)||ut,4,(_=n.labeledElementDeclarations)==null?void 0:_[mt]);else je(At,rn,(g=n.labeledElementDeclarations)==null?void 0:g[mt])}for(let mt=0;mt=0&&teP[te+At]&8?Cp(mt,It):mt)),T.splice(te+1,ye-te),P.splice(te+1,ye-te),W.splice(te+1,ye-te));let _e=Ige(P,n.readonly,W);return _e===Lo?Ca:P.length?sv(_e,T):_e;function je(mt,At,rn){At&1&&(V=P.length),At&4&&te<0&&(te=P.length),At&6&&(ye=P.length),T.push(At&2?op(mt,!0):mt),P.push(At),W.push(rn)}}function WM(n,a,c=0){let u=n.target,_=lv(n)-c;return a>u.fixedLength?Xlt(n)||Wh(Xe):Wh(Vs(n).slice(a,_),u.elementFlags.slice(a,_),!1,u.labeledElementDeclarations&&u.labeledElementDeclarations.slice(a,_))}function oOe(n){return ei(Tn($te(n.target.fixedLength,a=>Uu(""+a)),J_(n.target.readonly?Zo:Xo)))}function dst(n,a){let c=Kl(n.elementFlags,u=>!(u&a));return c>=0?c:n.elementFlags.length}function v8(n,a){return n.elementFlags.length-pW(n.elementFlags,c=>!(c&a))-1}function Dge(n){return n.fixedLength+v8(n,3)}function LS(n){let a=Vs(n),c=lv(n);return a.length===c?a:a.slice(0,c)}function ust(n){return op(Ti(n.type),!0)}function hu(n){return n.id}function dy(n,a){return by(n,a,hu,Zs)>=0}function a5(n,a){let c=by(n,a,hu,Zs);return c<0?(n.splice(~c,0,a),!0):!1}function pst(n,a,c){let u=c.flags;if(!(u&131072))if(a|=u&473694207,u&465829888&&(a|=33554432),u&2097152&&Lr(c)&67108864&&(a|=536870912),c===Tt&&(a|=8388608),!J&&u&98304)Lr(c)&65536||(a|=4194304);else{let _=n.length,g=_&&c.id>n[_-1].id?~_:by(n,c,hu,Zs);g<0&&n.splice(~g,0,c)}return a}function aOe(n,a,c){let u;for(let _ of c)_!==u&&(a=_.flags&1048576?aOe(n,a|(yst(_)?1048576:0),_.types):pst(n,a,_),u=_);return a}function fst(n,a){var c;if(n.length<2)return n;let u=cm(n),_=ua.get(u);if(_)return _;let g=a&>(n,V=>!!(V.flags&524288)&&!ju(V)&&Yge(l_(V))),T=n.length,P=T,W=0;for(;P>0;){P--;let V=n[P];if(g||V.flags&469499904){if(V.flags&262144&&cy(V).flags&1048576){q_(V,ei(mn(n,_e=>_e===V?Fr:_e)),Mf)&&Ev(n,P);continue}let te=V.flags&61603840?Vr(ms(V),_e=>u_(sr(_e))):void 0,ye=te&&gu(sr(te));for(let _e of n)if(V!==_e){if(W===1e5&&W/(T-P)*T>1e6){(c=rr)==null||c.instant(rr.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:n.map(mt=>mt.id)}),Ve(D,f.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(W++,te&&_e.flags&61603840){let je=Ue(_e,te.escapedName);if(je&&u_(je)&&gu(je)!==ye)continue}if(q_(V,_e,Mf)&&(!(Lr(ov(V))&1)||!(Lr(ov(_e))&1)||o0(V,_e))){Ev(n,P);break}}}}return ua.set(u,n),n}function mst(n,a,c){let u=n.length;for(;u>0;){u--;let _=n[u],g=_.flags;(g&402653312&&a&4||g&256&&a&8||g&2048&&a&64||g&8192&&a&4096||c&&g&32768&&a&16384||wS(_)&&dy(n,_.regularType))&&Ev(n,u)}}function _st(n){let a=jr(n,zA);if(a.length){let c=n.length;for(;c>0;){c--;let u=n[c];u.flags&128&>(a,_=>hst(u,_))&&Ev(n,c)}}}function hst(n,a){return a.flags&134217728?ree(n,a):nee(n,a)}function gst(n){let a=[];for(let c of n)if(c.flags&2097152&&Lr(c)&67108864){let u=c.types[0].flags&8650752?0:1;yf(a,c.types[u])}for(let c of a){let u=[];for(let g of n)if(g.flags&2097152&&Lr(g)&67108864){let T=g.types[0].flags&8650752?0:1;g.types[T]===c&&a5(u,g.types[1-T])}let _=zd(c);if(ap(_,g=>dy(u,g))){let g=n.length;for(;g>0;){g--;let T=n[g];if(T.flags&2097152&&Lr(T)&67108864){let P=T.types[0].flags&8650752?0:1;T.types[P]===c&&dy(u,T.types[1-P])&&Ev(n,g)}}a5(n,c)}}}function yst(n){return!!(n.flags&1048576&&(n.aliasSymbol||n.origin))}function sOe(n,a){for(let c of a)if(c.flags&1048576){let u=c.origin;c.aliasSymbol||u&&!(u.flags&1048576)?yf(n,c):u&&u.flags&1048576&&sOe(n,u.types)}}function Cge(n,a){let c=Z1(n);return c.types=a,c}function ei(n,a=1,c,u,_){if(n.length===0)return Fr;if(n.length===1)return n[0];if(n.length===2&&!_&&(n[0].flags&1048576||n[1].flags&1048576)){let g=a===0?"N":a===2?"S":"L",T=n[0].id=2&&g[0]===Me&&g[1]===k&&Ev(g,1),(T&402664352||T&16384&&T&32768)&&mst(g,T,!!(a&2)),T&128&&T&402653184&&_st(g),T&536870912&&gst(g),a===2&&(g=fst(g,!!(T&524288)),!g))return ut;if(g.length===0)return T&65536?T&4194304?ue:We:T&32768?T&4194304?Me:Nt:Fr}if(!_&&T&1048576){let W=[];sOe(W,n);let V=[];for(let ye of g)gt(W,_e=>dy(_e.types,ye))||V.push(ye);if(!c&&W.length===1&&V.length===0)return W[0];if(tu(W,(ye,_e)=>ye+_e.types.length,0)+V.length===g.length){for(let ye of W)a5(V,ye);_=Cge(1048576,V)}}let P=(T&36323331?0:32768)|(T&2097152?16777216:0);return Pge(g,P,c,u,_)}function vst(n,a){let c,u=[];for(let g of n){let T=Ff(g);if(T){if(T.kind!==0&&T.kind!==1||c&&!Nge(c,T))return;c=T,u.push(T.type)}else{let P=a!==2097152?ds(g):void 0;if(P!==Ut&&P!==En)return}}if(!c)return;let _=Pwe(u,a);return r5(c.kind,c.parameterName,c.parameterIndex,_)}function Nge(n,a){return n.kind===a.kind&&n.parameterIndex===a.parameterIndex}function Pge(n,a,c,u,_){if(n.length===0)return Fr;if(n.length===1)return n[0];let T=(_?_.flags&1048576?`|${cm(_.types)}`:_.flags&2097152?`&${cm(_.types)}`:`#${_.type.id}|${cm(n)}`:cm(n))+ax(c,u),P=Qn.get(T);return P||(P=_g(1048576),P.objectFlags=a|EZ(n,98304),P.types=n,P.origin=_,P.aliasSymbol=c,P.aliasTypeArguments=u,n.length===2&&n[0].flags&512&&n[1].flags&512&&(P.flags|=16,P.intrinsicName="boolean"),Qn.set(T,P)),P}function bst(n){let a=Qr(n);if(!a.resolvedType){let c=lx(n);a.resolvedType=ei(mn(n.types,Ti),1,c,fC(c))}return a.resolvedType}function Est(n,a,c){let u=c.flags;return u&2097152?cOe(n,a,c.types):(Fh(c)?a&16777216||(a|=16777216,n.set(c.id.toString(),c)):(u&3?c===Tt&&(a|=8388608):(J||!(u&98304))&&(c===k&&(a|=262144,c=Me),n.has(c.id.toString())||(c.flags&109472&&a&109472&&(a|=67108864),n.set(c.id.toString(),c))),a|=u&473694207),a)}function cOe(n,a,c){for(let u of c)a=Est(n,a,gu(u));return a}function Sst(n,a){let c=n.length;for(;c>0;){c--;let u=n[c];(u.flags&4&&a&402653312||u.flags&8&&a&256||u.flags&64&&a&2048||u.flags&4096&&a&8192||u.flags&16384&&a&32768||Fh(u)&&a&470302716)&&Ev(n,c)}}function Tst(n,a){for(let c of n)if(!dy(c.types,a)){let u=a.flags&128?Ne:a.flags&288?It:a.flags&2048?Dt:a.flags&8192?xi:void 0;if(!u||!dy(c.types,u))return!1}return!0}function Ast(n){let a=n.length,c=jr(n,u=>!!(u.flags&128));for(;a>0;){a--;let u=n[a];if(u.flags&402653184){for(let _ of c)if(Ob(_,u)){Ev(n,a);break}else if(zA(u))return!0}}return!1}function dOe(n,a){for(let c=0;c!(u.flags&a))}function Ist(n){let a,c=Kl(n,T=>!!(Lr(T)&32768));if(c<0)return!1;let u=c+1;for(;u!!(mt.flags&469893116)||Fh(mt))){if(f5(je,_e))return ye;if(!(je.flags&1048576&&Fm(je,mt=>f5(mt,_e)))&&!f5(_e,je))return Fr;P=67108864}}}let W=cm(T)+ax(a,c),V=Er.get(W);if(!V){if(g&1048576)if(Ist(T))V=ga(T,a,c);else if(oo(T,te=>!!(te.flags&1048576&&te.types[0].flags&32768))){let te=gt(T,N8)?k:Me;dOe(T,32768),V=ei([ga(T),te],1,a,c)}else if(oo(T,te=>!!(te.flags&1048576&&(te.types[0].flags&65536||te.types[1].flags&65536))))dOe(T,65536),V=ei([ga(T),ue],1,a,c);else if(T.length>=4){let te=Math.floor(T.length/2);V=ga([ga(T.slice(0,te)),ga(T.slice(te))],a,c)}else{if(!s5(T))return ut;let te=Rst(T),ye=gt(te,_e=>!!(_e.flags&2097152))&&Mge(te)>Mge(T)?Cge(2097152,T):void 0;V=ei(te,1,a,c,ye)}else V=xst(T,P,a,c);Er.set(W,V)}return V}function uOe(n){return tu(n,(a,c)=>c.flags&1048576?a*c.types.length:c.flags&131072?0:a,1)}function s5(n){var a;let c=uOe(n);return c>=1e5?((a=rr)==null||a.instant(rr.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:n.map(u=>u.id),size:c}),Ve(D,f.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function Rst(n){let a=uOe(n),c=[];for(let u=0;u=0;P--)if(n[P].flags&1048576){let W=n[P].types,V=W.length;_[P]=W[g%V],g=Math.floor(g/V)}let T=ga(_);T.flags&131072||c.push(T)}return c}function pOe(n){return!(n.flags&3145728)||n.aliasSymbol?1:n.flags&1048576&&n.origin?pOe(n.origin):Mge(n.types)}function Mge(n){return tu(n,(a,c)=>a+pOe(c),0)}function Dst(n){let a=Qr(n);if(!a.resolvedType){let c=lx(n),u=mn(n.types,Ti),_=u.length===2?u.indexOf(ac):-1,g=_>=0?u[1-_]:un,T=!!(g.flags&76||g.flags&134217728&&zA(g));a.resolvedType=ga(u,c,fC(c),T)}return a.resolvedType}function fOe(n,a){let c=_g(4194304);return c.type=n,c.indexFlags=a,c}function Cst(n){let a=Z1(4194304);return a.type=n,a}function mOe(n,a){return a&1?n.resolvedStringIndexType||(n.resolvedStringIndexType=fOe(n,1)):n.resolvedIndexType||(n.resolvedIndexType=fOe(n,0))}function _Oe(n,a){let c=s_(n),u=hf(n),_=av(n.target||n);if(!_&&!(a&2))return u;let g=[];if(GA(u)){if(aC(n))return mOe(n,a);qA(u,P)}else if(aC(n)){let W=Nu(LA(n));Jhe(W,8576,!!(a&1),P)}else qA(QB(u),P);let T=a&2?cc(ei(g),W=>!(W.flags&5)):ei(g);if(T.flags&1048576&&u.flags&1048576&&cm(T.types)===cm(u.types))return u;return T;function P(W){let V=_?io(_,S8(n.mapper,c,W)):W;g.push(V===Ne?xo:V)}}function Nst(n){let a=s_(n);return c(av(n)||a);function c(u){return u.flags&470810623?!0:u.flags&16777216?u.root.isDistributive&&u.checkType===a:u.flags&137363456?oo(u.types,c):u.flags&8388608?c(u.objectType)&&c(u.indexType):u.flags&33554432?c(u.baseType)&&c(u.constraint):u.flags&268435456?c(u.type):!1}}function cv(n){if(Ki(n))return Fr;if(mp(n))return gu(po(n));if(Ya(n))return gu(bg(n));let a=bT(n);return a!==void 0?Uu(Vi(a)):ht(n)?gu(po(n)):Fr}function uC(n,a,c){if(c||!(Tf(n)&6)){let u=qi(fZ(n)).nameType;if(!u){let _=Po(n.valueDeclaration);u=n.escapedName==="default"?Uu("default"):_&&cv(_)||(J2(n)?void 0:Uu(vl(n)))}if(u&&u.flags&a)return u}return Fr}function hOe(n,a){return!!(n.flags&a||n.flags&2097152&>(n.types,c=>hOe(c,a)))}function Pst(n,a,c){let u=c&&(Lr(n)&7||n.aliasSymbol)?Cst(n):void 0,_=mn(ms(n),T=>uC(T,a)),g=mn(_u(n),T=>T!==zr&&hOe(T.keyType,a)?T.keyType===Ne&&a&8?xo:T.keyType:Fr);return ei(Eo(_,g),1,void 0,void 0,u)}function Lge(n,a=0){return!!(n.flags&58982400||Fb(n)||ju(n)&&(!Nst(n)||_Z(n)===2)||n.flags&1048576&&!(a&4)&&ege(n)||n.flags&2097152&&Rl(n,465829888)&>(n.types,Fh))}function J_(n,a=Ge){return n=c_(n),wM(n)?fge(J_(n.baseType,a)):Lge(n,a)?mOe(n,a):n.flags&1048576?ga(mn(n.types,c=>J_(c,a))):n.flags&2097152?ei(mn(n.types,c=>J_(c,a))):Lr(n)&32?_Oe(n,a):n===Tt?Tt:n.flags&2?Fr:n.flags&131073?Ls:Pst(n,(a&2?128:402653316)|(a&1?0:12584),a===Ge)}function gOe(n){if(Ce)return n;let a=Kat();return a?cC(a,[n,Ne]):Ne}function Mst(n){let a=gOe(J_(n));return a.flags&131072?Ne:a}function Lst(n){let a=Qr(n);if(!a.resolvedType)switch(n.operator){case 143:a.resolvedType=J_(Ti(n.type));break;case 158:a.resolvedType=n.type.kind===155?Gge(G2(n.parent)):ut;break;case 148:a.resolvedType=Ti(n.type);break;default:x.assertNever(n.operator)}return a.resolvedType}function kst(n){let a=Qr(n);return a.resolvedType||(a.resolvedType=FA([n.head.text,...mn(n.templateSpans,c=>c.literal.text)],mn(n.templateSpans,c=>Ti(c.type)))),a.resolvedType}function FA(n,a){let c=Kl(a,V=>!!(V.flags&1179648));if(c>=0)return s5(a)?ll(a[c],V=>FA(n,zG(a,c,V))):ut;if(Bo(a,Tt))return Tt;let u=[],_=[],g=n[0];if(!W(n,a))return Ne;if(u.length===0)return Uu(g);if(_.push(g),oo(_,V=>V==="")){if(oo(u,V=>!!(V.flags&4)))return Ne;if(u.length===1&&zA(u[0]))return u[0]}let T=`${cm(u)}|${mn(_,V=>V.length).join(",")}|${_.join("")}`,P=yi.get(T);return P||yi.set(T,P=Ost(_,u)),P;function W(V,te){for(let ye=0;yesx(n,c)):a.flags&128?Uu(yOe(n,a.value)):a.flags&134217728?FA(...Wst(n,a.texts,a.types)):a.flags&268435456&&n===a.symbol?a:a.flags&268435461||GA(a)?vOe(n,a):l5(a)?vOe(n,FA(["",""],[a])):a}function yOe(n,a){switch(L3.get(n.escapedName)){case 0:return a.toUpperCase();case 1:return a.toLowerCase();case 2:return a.charAt(0).toUpperCase()+a.slice(1);case 3:return a.charAt(0).toLowerCase()+a.slice(1)}return a}function Wst(n,a,c){switch(L3.get(n.escapedName)){case 0:return[a.map(u=>u.toUpperCase()),c.map(u=>sx(n,u))];case 1:return[a.map(u=>u.toLowerCase()),c.map(u=>sx(n,u))];case 2:return[a[0]===""?a:[a[0].charAt(0).toUpperCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[sx(n,c[0]),...c.slice(1)]:c];case 3:return[a[0]===""?a:[a[0].charAt(0).toLowerCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[sx(n,c[0]),...c.slice(1)]:c]}return[a,c]}function vOe(n,a){let c=`${ba(n)},${hu(a)}`,u=$i.get(c);return u||$i.set(c,u=Fst(n,a)),u}function Fst(n,a){let c=hg(268435456,n);return c.type=a,c}function zst(n,a,c,u,_){let g=_g(8388608);return g.objectType=n,g.indexType=a,g.accessFlags=c,g.aliasSymbol=u,g.aliasTypeArguments=_,g}function b8(n){if(fe)return!1;if(Lr(n)&4096)return!0;if(n.flags&1048576)return oo(n.types,b8);if(n.flags&2097152)return gt(n.types,b8);if(n.flags&465829888){let a=$he(n);return a!==n&&b8(a)}return!1}function RZ(n,a){return Qf(n)?Zf(n):a&&rc(a)?bT(a):void 0}function kge(n,a){if(a.flags&8208){let c=Fn(n.parent,u=>!Ns(u))||n.parent;return E0(c)?v_(c)&&Fe(n)&&D8e(c,n):oo(a.declarations,u=>!$o(u)||ev(u))}return!0}function bOe(n,a,c,u,_,g){let T=_&&_.kind===212?_:void 0,P=_&&Ki(_)?void 0:RZ(c,_);if(P!==void 0){if(g&256)return d0(a,P)||G;let V=ha(a,P);if(V){if(g&64&&_&&V.declarations&&cb(V)&&kge(_,V)){let ye=T?.argumentExpression??(MT(_)?_.indexType:_);tv(ye,V.declarations,P)}if(T){if(B5(V,T,FWe(T.expression,a.symbol)),RFe(T,V,DI(T))){Ve(T.argumentExpression,f.Cannot_assign_to_0_because_it_is_a_read_only_property,Si(V));return}if(g&8&&(Qr(_).resolvedSymbol=V),PWe(T,V))return et}let te=g&4?NS(V):sr(V);return T&&DI(T)!==1?Gb(T,te):_&&MT(_)&&N8(te)?ei([te,Me]):te}if(ap(a,wa)&&ng(P)){let te=+P;if(_&&ap(a,ye=>!ye.target.hasRestElement)&&!(g&16)){let ye=wge(_);if(wa(a)){if(te<0)return Ve(ye,f.A_tuple_type_cannot_be_indexed_with_a_negative_value),Me;Ve(ye,f.Tuple_type_0_of_length_1_has_no_element_at_index_2,Vn(a),lv(a),Vi(P))}else Ve(ye,f.Property_0_does_not_exist_on_type_1,Vi(P),Vn(a))}if(te>=0)return W(vg(a,It)),l8e(a,te,g&1?k:void 0)}}if(!(c.flags&98304)&&Id(c,402665900)){if(a.flags&131073)return a;let V=m8(a,c)||vg(a,Ne);if(V){if(g&2&&V.keyType!==It){T&&(g&4?Ve(T,f.Type_0_is_generic_and_can_only_be_indexed_for_reading,Vn(n)):Ve(T,f.Type_0_cannot_be_used_to_index_type_1,Vn(c),Vn(n)));return}if(_&&V.keyType===Ne&&!Id(c,12)){let te=wge(_);return Ve(te,f.Type_0_cannot_be_used_as_an_index_type,Vn(c)),g&1?ei([V.type,k]):V.type}return W(V),g&1&&!(a.symbol&&a.symbol.flags&384&&c.symbol&&c.flags&1024&&Ru(c.symbol)===a.symbol)?ei([V.type,k]):V.type}if(c.flags&131072)return Fr;if(b8(a))return G;if(T&&!kee(a)){if(c0(a)){if(fe&&c.flags&384)return Qa.add(Pr(T,f.Property_0_does_not_exist_on_type_1,c.value,Vn(a))),Me;if(c.flags&12){let te=mn(a.properties,ye=>sr(ye));return ei(Tn(te,Me))}}if(a.symbol===tt&&P!==void 0&&tt.exports.has(P)&&tt.exports.get(P).flags&418)Ve(T,f.Property_0_does_not_exist_on_type_1,Vi(P),Vn(a));else if(fe&&!B.suppressImplicitAnyIndexErrors&&!(g&128))if(P!==void 0&&wWe(P,a)){let te=Vn(a);Ve(T,f.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,P,te,te+"["+uc(T.argumentExpression)+"]")}else if(t0(a,It))Ve(T.argumentExpression,f.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let te;if(P!==void 0&&(te=ove(P,a)))te!==void 0&&Ve(T.argumentExpression,f.Property_0_does_not_exist_on_type_1_Did_you_mean_2,P,Vn(a),te);else{let ye=Wut(a,T,c);if(ye!==void 0)Ve(T,f.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Vn(a),ye);else{let _e;if(c.flags&1024)_e=zo(void 0,f.Property_0_does_not_exist_on_type_1,"["+Vn(c)+"]",Vn(a));else if(c.flags&8192){let je=Vp(c.symbol,T);_e=zo(void 0,f.Property_0_does_not_exist_on_type_1,"["+je+"]",Vn(a))}else c.flags&128||c.flags&256?_e=zo(void 0,f.Property_0_does_not_exist_on_type_1,c.value,Vn(a)):c.flags&12&&(_e=zo(void 0,f.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Vn(c),Vn(a)));_e=zo(_e,f.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Vn(u),Vn(a)),Qa.add(Mg(Gn(T),T,_e))}}}return}}if(b8(a))return G;if(_){let V=wge(_);c.flags&384?Ve(V,f.Property_0_does_not_exist_on_type_1,""+c.value,Vn(a)):c.flags&12?Ve(V,f.Type_0_has_no_matching_index_signature_for_type_1,Vn(a),Vn(c)):Ve(V,f.Type_0_cannot_be_used_as_an_index_type,Vn(c))}if(xt(c))return c;return;function W(V){V&&V.isReadonly&&T&&($h(T)||Ej(T))&&Ve(T,f.Index_signature_in_type_0_only_permits_reading,Vn(a))}}function wge(n){return n.kind===212?n.argumentExpression:n.kind===199?n.indexType:n.kind===167?n.expression:n}function l5(n){if(n.flags&2097152){let a=!1;for(let c of n.types)if(c.flags&101248||l5(c))a=!0;else if(!(c.flags&524288))return!1;return a}return!!(n.flags&77)||zA(n)}function zA(n){return!!(n.flags&134217728)&&oo(n.types,l5)||!!(n.flags&268435456)&&l5(n.type)}function EOe(n){return!!(n.flags&402653184)&&!zA(n)}function pC(n){return!!E8(n)}function BA(n){return!!(E8(n)&4194304)}function GA(n){return!!(E8(n)&8388608)}function E8(n){return n.flags&3145728?(n.objectFlags&2097152||(n.objectFlags|=2097152|tu(n.types,(a,c)=>a|E8(c),0)),n.objectFlags&12582912):n.flags&33554432?(n.objectFlags&2097152||(n.objectFlags|=2097152|E8(n.baseType)|E8(n.constraint)),n.objectFlags&12582912):(n.flags&58982400||ju(n)||Fb(n)?4194304:0)|(n.flags&63176704||EOe(n)?8388608:0)}function uy(n,a){return n.flags&8388608?Gst(n,a):n.flags&16777216?Vst(n,a):n}function SOe(n,a,c){if(n.flags&1048576||n.flags&2097152&&!Lge(n)){let u=mn(n.types,_=>uy(Cp(_,a),c));return n.flags&2097152||c?ga(u):ei(u)}}function Bst(n,a,c){if(a.flags&1048576){let u=mn(a.types,_=>uy(Cp(n,_),c));return c?ga(u):ei(u)}}function Gst(n,a){let c=a?"simplifiedForWriting":"simplifiedForReading";if(n[c])return n[c]===nd?n:n[c];n[c]=nd;let u=uy(n.objectType,a),_=uy(n.indexType,a),g=Bst(u,_,a);if(g)return n[c]=g;if(!(_.flags&465829888)){let T=SOe(u,_,a);if(T)return n[c]=T}if(Fb(u)&&_.flags&296){let T=VM(u,_.flags&8?0:u.target.fixedLength,0,a);if(T)return n[c]=T}return ju(u)&&_Z(u)!==2?n[c]=ll(DZ(u,n.indexType),T=>uy(T,a)):n[c]=n}function Vst(n,a){let c=n.checkType,u=n.extendsType,_=r0(n),g=i0(n);if(g.flags&131072&&kb(_)===kb(c)){if(c.flags&1||ya(jA(c),jA(u)))return uy(_,a);if(TOe(c,u))return Fr}else if(_.flags&131072&&kb(g)===kb(c)){if(!(c.flags&1)&&ya(jA(c),jA(u)))return Fr;if(c.flags&1||TOe(c,u))return uy(g,a)}return n}function TOe(n,a){return!!(ei([$B(n,a),Fr]).flags&131072)}function DZ(n,a){let c=Np([s_(n)],[a]),u=WS(n.mapper,c);return io(ly(n.target||n),u)}function Cp(n,a,c=0,u,_,g){return Lb(n,a,c,u,_,g)||(u?ut:un)}function AOe(n,a){return ap(n,c=>{if(c.flags&384){let u=Zf(c);if(ng(u)){let _=+u;return _>=0&&_0&&!gt(n.elements,a=>O4(a)||W4(a)||DR(a)&&!!(a.questionToken||a.dotDotDotToken))}function ROe(n,a){return pC(n)||a&&wa(n)&>(LS(n),pC)}function Wge(n,a,c,u,_){let g,T,P=0;for(;;){if(P===1e3)return Ve(D,f.Type_instantiation_is_excessively_deep_and_possibly_infinite),ut;let V=io(kb(n.checkType),a),te=io(n.extendsType,a);if(V===ut||te===ut)return ut;if(V===Tt||te===Tt)return Tt;let ye=V2(n.node.checkType),_e=V2(n.node.extendsType),je=xOe(ye)&&xOe(_e)&&Nn(ye.elements)===Nn(_e.elements),mt=ROe(V,je),At;if(n.inferTypeParameters){let sn=M8(n.inferTypeParameters,void 0,0);a&&(sn.nonFixingMapper=WS(sn.nonFixingMapper,a)),mt||hy(sn.inferences,V,te,1536),At=a?WS(sn.mapper,a):sn.mapper}let rn=At?io(n.extendsType,At):te;if(!mt&&!ROe(rn,je)){if(!(rn.flags&3)&&(V.flags&1||!ya(A8(V),A8(rn)))){(V.flags&1||c&&!(rn.flags&131072)&&Fm(A8(rn),nr=>ya(nr,A8(V))))&&(T||(T=[])).push(io(Ti(n.node.trueType),At||a));let sn=Ti(n.node.falseType);if(sn.flags&16777216){let nr=sn.root;if(nr.node.parent===n.node&&(!nr.isDistributive||nr.checkType===n.checkType)){n=nr;continue}if(W(sn,a))continue}g=io(sn,a);break}if(rn.flags&3||ya(jA(V),jA(rn))){let sn=Ti(n.node.trueType),nr=At||a;if(W(sn,nr))continue;g=io(sn,nr);break}}g=_g(16777216),g.root=n,g.checkType=io(n.checkType,a),g.extendsType=io(n.extendsType,a),g.mapper=a,g.combinedMapper=At,g.aliasSymbol=u||n.aliasSymbol,g.aliasTypeArguments=u?_:dv(n.aliasTypeArguments,a);break}return T?ei(Tn(T,g)):g;function W(V,te){if(V.flags&16777216&&te){let ye=V.root;if(ye.outerTypeParameters){let _e=WS(V.mapper,te),je=mn(ye.outerTypeParameters,rn=>wb(rn,_e)),mt=Np(ye.outerTypeParameters,je),At=ye.isDistributive?wb(ye.checkType,mt):void 0;if(!At||At===ye.checkType||!(At.flags&1179648))return n=ye,a=mt,u=void 0,_=void 0,ye.aliasSymbol&&P++,!0}}return!1}}function r0(n){return n.resolvedTrueType||(n.resolvedTrueType=io(Ti(n.root.node.trueType),n.mapper))}function i0(n){return n.resolvedFalseType||(n.resolvedFalseType=io(Ti(n.root.node.falseType),n.mapper))}function jst(n){return n.resolvedInferredTrueType||(n.resolvedInferredTrueType=n.combinedMapper?io(Ti(n.root.node.trueType),n.combinedMapper):r0(n))}function DOe(n){let a;return n.locals&&n.locals.forEach(c=>{c.flags&262144&&(a=Tn(a,Xs(c)))}),a}function Ust(n){return n.isDistributive&&(p5(n.checkType,n.node.trueType)||p5(n.checkType,n.node.falseType))}function Hst(n){let a=Qr(n);if(!a.resolvedType){let c=Ti(n.checkType),u=lx(n),_=fC(u),g=Rn(n,!0),T=_?g:jr(g,W=>p5(W,n)),P={node:n,checkType:c,extendsType:Ti(n.extendsType),isDistributive:!!(c.flags&262144),inferTypeParameters:DOe(n),outerTypeParameters:T,instantiations:void 0,aliasSymbol:u,aliasTypeArguments:_};a.resolvedType=Wge(P,void 0,!1),T&&(P.instantiations=new Map,P.instantiations.set(cm(T),a.resolvedType))}return a.resolvedType}function Kst(n){let a=Qr(n);return a.resolvedType||(a.resolvedType=MA(Sr(n.typeParameter))),a.resolvedType}function COe(n){return Fe(n)?[n]:Tn(COe(n.left),n.right)}function Jst(n){var a;let c=Qr(n);if(!c.resolvedType){if(!wv(n))return Ve(n.argument,f.String_literal_expected),c.resolvedSymbol=lt,c.resolvedType=ut;let u=n.isTypeOf?111551:n.flags&16777216?900095:788968,_=mu(n,n.argument.literal);if(!_)return c.resolvedSymbol=lt,c.resolvedType=ut;let g=!!((a=_.exports)!=null&&a.get("export=")),T=Ip(_,!1);if(Fl(n.qualifier))if(T.flags&u)c.resolvedType=NOe(n,c,T,u);else{let P=u===111551?f.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:f.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;Ve(n,P,n.argument.literal.text),c.resolvedSymbol=lt,c.resolvedType=ut}else{let P=COe(n.qualifier),W=T,V;for(;V=P.shift();){let te=P.length?1920:u,ye=es(Vl(W)),_e=n.isTypeOf||ir(n)&&g?ha(sr(ye),V.escapedText,!1,!0):void 0,mt=(n.isTypeOf?void 0:Vu(xp(ye),V.escapedText,te))??_e;if(!mt)return Ve(V,f.Namespace_0_has_no_exported_member_1,Vp(W),Ts(V)),c.resolvedType=ut;Qr(V).resolvedSymbol=mt,Qr(V.parent).resolvedSymbol=mt,W=mt}c.resolvedType=NOe(n,c,W,u)}}return c.resolvedType}function NOe(n,a,c,u){let _=Vl(c);return a.resolvedSymbol=_,u===111551?uFe(sr(c),n):TZ(n,_)}function POe(n){let a=Qr(n);if(!a.resolvedType){let c=lx(n);if(Cb(n.symbol).size===0&&!c)a.resolvedType=ac;else{let u=kf(16,n.symbol);u.aliasSymbol=c,u.aliasTypeArguments=fC(c),FT(n)&&n.isArrayType&&(u=Bd(u)),a.resolvedType=u}}return a.resolvedType}function lx(n){let a=n.parent;for(;NT(a)||$0(a)||PT(a)&&a.operator===148;)a=a.parent;return W2(a)?Sr(a):void 0}function fC(n){return n?Nr(n):void 0}function CZ(n){return!!(n.flags&524288)&&!ju(n)}function Fge(n){return fy(n)||!!(n.flags&474058748)}function zge(n,a){if(!(n.flags&1048576))return n;if(oo(n.types,Fge))return Vr(n.types,fy)||Ca;let c=Vr(n.types,g=>!Fge(g));if(!c||Vr(n.types,g=>g!==c&&!Fge(g)))return n;return _(c);function _(g){let T=aa();for(let W of ms(g))if(!(Tf(W)&6)){if(NZ(W)){let V=W.flags&65536&&!(W.flags&32768),ye=Ka(16777220,W.escapedName,Khe(W)|(a?8:0));ye.links.type=V?Me:op(sr(W),!0),ye.declarations=W.declarations,ye.links.nameType=qi(W).nameType,ye.links.syntheticOrigin=W,T.set(W.escapedName,ye)}}let P=Ds(g.symbol,T,Xe,Xe,_u(g));return P.objectFlags|=131200,P}}function kS(n,a,c,u,_){if(n.flags&1||a.flags&1)return G;if(n.flags&2||a.flags&2)return un;if(n.flags&131072)return a;if(a.flags&131072)return n;if(n=zge(n,_),n.flags&1048576)return s5([n,a])?ll(n,V=>kS(V,a,c,u,_)):ut;if(a=zge(a,_),a.flags&1048576)return s5([n,a])?ll(a,V=>kS(n,V,c,u,_)):ut;if(a.flags&473960444)return n;if(BA(n)||BA(a)){if(fy(n))return a;if(n.flags&2097152){let V=n.types,te=V[V.length-1];if(CZ(te)&&CZ(a))return ga(Eo(V.slice(0,V.length-1),[kS(te,a,c,u,_)]))}return ga([n,a])}let g=aa(),T=new Set,P=n===Ca?_u(a):pwe([n,a]);for(let V of ms(a))Tf(V)&6?T.add(V.escapedName):NZ(V)&&g.set(V.escapedName,Bge(V,_));for(let V of ms(n))if(!(T.has(V.escapedName)||!NZ(V)))if(g.has(V.escapedName)){let te=g.get(V.escapedName),ye=sr(te);if(te.flags&16777216){let _e=Eo(V.declarations,te.declarations),je=4|V.flags&16777216,mt=Ka(je,V.escapedName),At=sr(V),rn=YZ(At),sn=YZ(ye);mt.links.type=rn===sn?At:ei([At,sn],2),mt.links.leftSpread=V,mt.links.rightSpread=te,mt.declarations=_e,mt.links.nameType=qi(V).nameType,g.set(V.escapedName,mt)}}else g.set(V.escapedName,Bge(V,_));let W=Ds(c,g,Xe,Xe,Pc(P,V=>qst(V,_)));return W.objectFlags|=2228352|u,W}function NZ(n){var a;return!gt(n.declarations,ou)&&(!(n.flags&106496)||!((a=n.declarations)!=null&&a.some(c=>ci(c.parent))))}function Bge(n,a){let c=n.flags&65536&&!(n.flags&32768);if(!c&&a===f_(n))return n;let u=4|n.flags&16777216,_=Ka(u,n.escapedName,Khe(n)|(a?8:0));return _.links.type=c?Me:sr(n),_.declarations=n.declarations,_.links.nameType=qi(n).nameType,_.links.syntheticOrigin=n,_}function qst(n,a){return n.isReadonly!==a?Oh(n.keyType,n.type,a,n.declaration):n}function c5(n,a,c,u){let _=hg(n,c);return _.value=a,_.regularType=u||_,_}function cx(n){if(n.flags&2976){if(!n.freshType){let a=c5(n.flags,n.value,n.symbol,n);a.freshType=a,n.freshType=a}return n.freshType}return n}function gu(n){return n.flags&2976?n.regularType:n.flags&1048576?n.regularType||(n.regularType=ll(n,gu)):n}function wS(n){return!!(n.flags&2976)&&n.freshType===n}function Uu(n){let a;return on.get(n)||(on.set(n,a=c5(128,n)),a)}function d_(n){let a;return Ye.get(n)||(Ye.set(n,a=c5(256,n)),a)}function PZ(n){let a,c=W0(n);return Ot.get(c)||(Ot.set(c,a=c5(2048,n)),a)}function Xst(n,a,c){let u,_=`${a}${typeof n=="string"?"@":"#"}${n}`,g=1024|(typeof n=="string"?128:256);return In.get(_)||(In.set(_,u=c5(g,n,c)),u)}function Yst(n){if(n.literal.kind===106)return ue;let a=Qr(n);return a.resolvedType||(a.resolvedType=gu(po(n.literal))),a.resolvedType}function $st(n){let a=hg(8192,n);return a.escapedName=`__@${a.symbol.escapedName}@${ba(a.symbol)}`,a}function Gge(n){if(ir(n)&&$0(n)){let a=vT(n);a&&(n=RI(a)||a)}if(eie(n)){let a=LF(n)?pf(n.left):pf(n);if(a){let c=qi(a);return c.uniqueESSymbolType||(c.uniqueESSymbolType=$st(a))}}return xi}function Qst(n){let a=Lu(n,!1,!1),c=a&&a.parent;if(c&&(ci(c)||c.kind===264)&&!ra(a)&&(!Pl(a)||C0(n,a.body)))return Wf(Sr(c)).thisType;if(c&&Ma(c)&&dr(c.parent)&&zl(c.parent)===6)return Wf(pf(c.parent.left).parent).thisType;let u=n.flags&16777216?lE(n):void 0;return u&&Ps(u)&&dr(u.parent)&&zl(u.parent)===3?Wf(pf(u.parent.left).parent).thisType:$_(a)&&C0(n,a.body)?Wf(Sr(a)).thisType:(Ve(n,f.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),ut)}function MZ(n){let a=Qr(n);return a.resolvedType||(a.resolvedType=Qst(n)),a.resolvedType}function MOe(n){return Ti(d5(n.type)||n.type)}function d5(n){switch(n.kind){case 196:return d5(n.type);case 189:if(n.elements.length===1&&(n=n.elements[0],n.kind===191||n.kind===202&&n.dotDotDotToken))return d5(n.type);break;case 188:return n.elementType}}function Zst(n){let a=Qr(n);return a.resolvedType||(a.resolvedType=n.dotDotDotToken?MOe(n):op(Ti(n.type),!0,!!n.questionToken))}function Ti(n){return Pat(LOe(n),n)}function LOe(n){switch(n.kind){case 133:case 319:case 320:return G;case 159:return un;case 154:return Ne;case 150:return It;case 163:return Dt;case 136:return gi;case 155:return xi;case 116:return er;case 157:return Me;case 106:return ue;case 146:return Fr;case 151:return n.flags&524288&&!fe?G:Kr;case 141:return dn;case 197:case 110:return MZ(n);case 201:return Yst(n);case 183:return gge(n);case 182:return n.assertsModifier?er:gi;case 233:return gge(n);case 186:return Uwe(n);case 188:case 189:return sst(n);case 190:return ust(n);case 192:return bst(n);case 193:return Dst(n);case 321:return Mat(n);case 323:return op(Ti(n.type));case 202:return Zst(n);case 196:case 322:case 316:return Ti(n.type);case 191:return MOe(n);case 325:return tht(n);case 184:case 185:case 187:case 329:case 324:case 330:return POe(n);case 198:return Lst(n);case 199:return IOe(n);case 200:return Oge(n);case 194:return Hst(n);case 195:return Kst(n);case 203:return kst(n);case 205:return Jst(n);case 80:case 166:case 211:let a=zm(n);return a?Xs(a):ut;default:return ut}}function LZ(n,a,c){if(n&&n.length)for(let u=0;uu.typeParameter),mn(c,()=>un))}function WS(n,a){return n?wZ(4,n,a):a}function nlt(n,a){return n?wZ(5,n,a):a}function VA(n,a,c){return c?wZ(5,OS(n,a),c):OS(n,a)}function S8(n,a,c){return n?wZ(5,n,OS(a,c)):OS(a,c)}function rlt(n){return!n.constraint&&!uge(n)||n.constraint===Fs?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=mf(n.symbol),n.restrictiveInstantiation.constraint=Fs,n.restrictiveInstantiation)}function jge(n){let a=mf(n.symbol);return a.target=n,a}function ilt(n,a){return r5(n.kind,n.parameterName,n.parameterIndex,io(n.type,a))}function mC(n,a,c){let u;if(n.typeParameters&&!c){u=mn(n.typeParameters,jge),a=WS(Np(n.typeParameters,u),a);for(let g of u)g.mapper=a}let _=yg(n.declaration,u,n.thisParameter&&Uge(n.thisParameter,a),LZ(n.parameters,a,Uge),void 0,void 0,n.minArgumentCount,n.flags&167);return _.target=n,_.mapper=a,_}function Uge(n,a){let c=qi(n);if(c.type&&!l0(c.type)&&(!(n.flags&65536)||c.writeType&&!l0(c.writeType)))return n;Tl(n)&1&&(n=c.target,a=WS(c.mapper,a));let u=Ka(n.flags,n.escapedName,1|Tl(n)&53256);return u.declarations=n.declarations,u.parent=n.parent,u.links.target=n,u.links.mapper=a,n.valueDeclaration&&(u.valueDeclaration=n.valueDeclaration),c.nameType&&(u.links.nameType=c.nameType),u}function olt(n,a,c,u){let _=n.objectFlags&4||n.objectFlags&8388608?n.node:n.symbol.declarations[0],g=Qr(_),T=n.objectFlags&4?g.resolvedType:n.objectFlags&64?n.target:n,P=g.outerTypeParameters;if(!P){let W=Rn(_,!0);if($_(_)){let te=Cwe(_);W=Hr(W,te)}P=W||Xe;let V=n.objectFlags&8388612?[_]:n.symbol.declarations;P=(T.objectFlags&8388612||T.symbol.flags&8192||T.symbol.flags&2048)&&!T.aliasTypeArguments?jr(P,te=>gt(V,ye=>p5(te,ye))):P,g.outerTypeParameters=P}if(P.length){let W=WS(n.mapper,a),V=mn(P,mt=>wb(mt,W)),te=c||n.aliasSymbol,ye=c?u:dv(n.aliasTypeArguments,a),_e=cm(V)+ax(te,ye);T.instantiations||(T.instantiations=new Map,T.instantiations.set(cm(P)+ax(T.aliasSymbol,T.aliasTypeArguments),T));let je=T.instantiations.get(_e);if(!je){let mt=Np(P,V);je=T.objectFlags&4?pge(n.target,n.node,mt,te,ye):T.objectFlags&32?slt(T,mt,te,ye):Hge(T,mt,te,ye),T.instantiations.set(_e,je);let At=Lr(je);if(je.flags&3899393&&!(At&524288)){let rn=gt(V,l0);Lr(je)&524288||(At&52?je.objectFlags|=524288|(rn?1048576:0):je.objectFlags|=rn?0:524288)}}return je}return n}function alt(n){return!(n.parent.kind===183&&n.parent.typeArguments&&n===n.parent.typeName||n.parent.kind===205&&n.parent.typeArguments&&n===n.parent.qualifier)}function p5(n,a){if(n.symbol&&n.symbol.declarations&&n.symbol.declarations.length===1){let u=n.symbol.declarations[0].parent;for(let _=a;_!==u;_=_.parent)if(!_||_.kind===241||_.kind===194&&Go(_.extendsType,c))return!0;return c(a)}return!0;function c(u){switch(u.kind){case 197:return!!n.isThisType;case 80:return!n.isThisType&&qh(u)&&alt(u)&&LOe(u)===n;case 186:let _=u.exprName,g=Fp(_);if(!k0(g)){let T=Wm(g),P=n.symbol.declarations[0],W=P.kind===168?P.parent:n.isThisType?P:void 0;if(T.declarations&&W)return gt(T.declarations,V=>C0(V,W))||gt(u.typeArguments,c)}return!0;case 174:case 173:return!u.type&&!!u.body||gt(u.typeParameters,c)||gt(u.parameters,c)||!!u.type&&c(u.type)}return!!Go(u,c)}}function T8(n){let a=hf(n);if(a.flags&4194304){let c=kb(a.type);if(c.flags&262144)return c}}function slt(n,a,c,u){let _=T8(n);if(_){let T=io(_,a);if(_!==T)return F8e(c_(T),g,c,u)}return io(hf(n),a)===Tt?Tt:Hge(n,a,c,u);function g(T){if(T.flags&61603843&&T!==Tt&&!Vt(T)){if(!n.declaration.nameType){let P;if(Gf(T)||T.flags&1&&nx(_,4)<0&&(P=Cu(_))&&ap(P,a0))return clt(T,n,VA(_,T,a));if(wa(T))return llt(T,n,_,a);if(Twe(T))return ga(mn(T.types,g))}return Hge(n,VA(_,T,a))}return T}}function OOe(n,a){return a&1?!0:a&2?!1:n}function llt(n,a,c,u){let _=n.target.elementFlags,g=n.target.fixedLength,T=g?VA(c,n,u):u,P=mn(LS(n),(ye,_e)=>{let je=_[_e];return _eye&1?2:ye):W&8?mn(_,ye=>ye&2?1:ye):_,te=OOe(n.target.readonly,kh(a));return Bo(P,ut)?ut:Wh(P,V,te,n.target.labeledElementDeclarations)}function clt(n,a,c){let u=WOe(a,It,!0,c);return Vt(u)?ut:Bd(u,OOe(BM(n),kh(a)))}function WOe(n,a,c,u){let _=S8(u,s_(n),a),g=io(ly(n.target||n),_),T=kh(n);return J&&T&4&&!Rl(g,49152)?zb(g,!0):J&&T&8&&c?um(g,524288):g}function Hge(n,a,c,u){x.assert(n.symbol,"anonymous type must have symbol to be instantiated");let _=kf(n.objectFlags&-1572865|64,n.symbol);if(n.objectFlags&32){_.declaration=n.declaration;let g=s_(n),T=jge(g);_.typeParameter=T,a=WS(OS(g,T),a),T.mapper=a}return n.objectFlags&8388608&&(_.node=n.node),_.target=n,_.mapper=a,_.aliasSymbol=c||n.aliasSymbol,_.aliasTypeArguments=c?u:dv(n.aliasTypeArguments,a),_.objectFlags|=_.aliasTypeArguments?EZ(_.aliasTypeArguments):0,_}function Kge(n,a,c,u,_){let g=n.root;if(g.outerTypeParameters){let T=mn(g.outerTypeParameters,V=>wb(V,a)),P=(c?"C":"")+cm(T)+ax(u,_),W=g.instantiations.get(P);if(!W){let V=Np(g.outerTypeParameters,T),te=g.checkType,ye=g.isDistributive?c_(wb(te,V)):void 0;W=ye&&te!==ye&&ye.flags&1179648?F8e(ye,_e=>Wge(g,VA(te,_e,V),c),u,_):Wge(g,V,c,u,_),g.instantiations.set(P,W)}return W}return n}function io(n,a){return n&&a?FOe(n,a,void 0,void 0):n}function FOe(n,a,c,u){var _;if(!l0(n))return n;if(A===100||S>=5e6)return(_=rr)==null||_.instant(rr.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:n.id,instantiationDepth:A,instantiationCount:S}),Ve(D,f.Type_instantiation_is_excessively_deep_and_possibly_infinite),ut;E++,S++,A++;let g=dlt(n,a,c,u);return A--,g}function dlt(n,a,c,u){let _=n.flags;if(_&262144)return wb(n,a);if(_&524288){let g=n.objectFlags;if(g&52){if(g&4&&!n.node){let T=n.resolvedTypeArguments,P=dv(T,a);return P!==T?xge(n.target,P):n}return g&1024?ult(n,a):olt(n,a,c,u)}return n}if(_&3145728){let g=n.flags&1048576?n.origin:void 0,T=g&&g.flags&3145728?g.types:n.types,P=dv(T,a);if(P===T&&c===n.aliasSymbol)return n;let W=c||n.aliasSymbol,V=c?u:dv(n.aliasTypeArguments,a);return _&2097152||g&&g.flags&2097152?ga(P,W,V):ei(P,1,W,V)}if(_&4194304)return J_(io(n.type,a));if(_&134217728)return FA(n.texts,dv(n.types,a));if(_&268435456)return sx(n.symbol,io(n.type,a));if(_&8388608){let g=c||n.aliasSymbol,T=c?u:dv(n.aliasTypeArguments,a);return Cp(io(n.objectType,a),io(n.indexType,a),n.accessFlags,void 0,g,T)}if(_&16777216)return Kge(n,WS(n.mapper,a),!1,c,u);if(_&33554432){let g=io(n.baseType,a);if(wM(n))return fge(g);let T=io(n.constraint,a);return g.flags&8650752&&pC(T)?_ge(g,T):T.flags&3||ya(jA(g),jA(T))?g:g.flags&8650752?_ge(g,T):ga([T,g])}return n}function ult(n,a){let c=io(n.mappedType,a);if(!(Lr(c)&32))return n;let u=io(n.constraintType,a);if(!(u.flags&4194304))return n;let _=h8e(io(n.source,a),c,u);return _||n}function A8(n){return n.flags&402915327?n:n.permissiveInstantiation||(n.permissiveInstantiation=io(n,ml))}function jA(n){return n.flags&402915327?n:(n.restrictiveInstantiation||(n.restrictiveInstantiation=io(n,Ws),n.restrictiveInstantiation.restrictiveInstantiation=n.restrictiveInstantiation),n.restrictiveInstantiation)}function plt(n,a){return Oh(n.keyType,io(n.type,a),n.isReadonly,n.declaration)}function zf(n){switch(x.assert(n.kind!==174||bm(n)),n.kind){case 218:case 219:case 174:case 262:return zOe(n);case 210:return gt(n.properties,zf);case 209:return gt(n.elements,zf);case 227:return zf(n.whenTrue)||zf(n.whenFalse);case 226:return(n.operatorToken.kind===57||n.operatorToken.kind===61)&&(zf(n.left)||zf(n.right));case 303:return zf(n.initializer);case 217:return zf(n.expression);case 292:return gt(n.properties,zf)||P_(n.parent)&>(n.parent.parent.children,zf);case 291:{let{initializer:a}=n;return!!a&&zf(a)}case 294:{let{expression:a}=n;return!!a&&zf(a)}}return!1}function zOe(n){return z6(n)||flt(n)}function flt(n){return n.typeParameters||$f(n)||!n.body?!1:n.body.kind!==241?zf(n.body):!!I0(n.body,a=>!!a.expression&&zf(a.expression))}function OZ(n){return(F0(n)||bm(n))&&zOe(n)}function BOe(n){if(n.flags&524288){let a=l_(n);if(a.constructSignatures.length||a.callSignatures.length){let c=kf(16,n.symbol);return c.members=a.members,c.properties=a.properties,c.callSignatures=Xe,c.constructSignatures=Xe,c.indexInfos=Xe,c}}else if(n.flags&2097152)return ga(mn(n.types,BOe));return n}function py(n,a){return q_(n,a,np)}function I8(n,a){return q_(n,a,np)?-1:0}function Jge(n,a){return q_(n,a,Gu)?-1:0}function mlt(n,a){return q_(n,a,Ih)?-1:0}function Ob(n,a){return q_(n,a,Ih)}function f5(n,a){return q_(n,a,Mf)}function ya(n,a){return q_(n,a,Gu)}function o0(n,a){return n.flags&1048576?oo(n.types,c=>o0(c,a)):a.flags&1048576?gt(a.types,c=>o0(n,c)):n.flags&2097152?gt(n.types,c=>o0(c,a)):n.flags&58982400?o0(zd(n)||un,a):Fh(a)?!!(n.flags&67633152):a===Re?!!(n.flags&67633152)&&!Fh(n):a===Lt?!!(n.flags&524288)&&xye(n):rC(n,ov(a))||Gf(a)&&!BM(a)&&o0(n,Zo)}function WZ(n,a){return q_(n,a,Ap)}function m5(n,a){return WZ(n,a)||WZ(a,n)}function eu(n,a,c,u,_,g){return Bf(n,a,Gu,c,u,_,g)}function Wb(n,a,c,u,_,g){return qge(n,a,Gu,c,u,_,g,void 0)}function qge(n,a,c,u,_,g,T,P){return q_(n,a,c)?!0:!u||!x8(_,n,a,c,g,T,P)?Bf(n,a,c,u,g,T,P):!1}function GOe(n){return!!(n.flags&16777216||n.flags&2097152&>(n.types,GOe))}function x8(n,a,c,u,_,g,T){if(!n||GOe(c))return!1;if(!Bf(a,c,u,void 0)&&_lt(n,a,c,u,_,g,T))return!0;switch(n.kind){case 234:if(!db(n))break;case 294:case 217:return x8(n.expression,a,c,u,_,g,T);case 226:switch(n.operatorToken.kind){case 64:case 28:return x8(n.right,a,c,u,_,g,T)}break;case 210:return Tlt(n,a,c,u,g,T);case 209:return Elt(n,a,c,u,g,T);case 292:return blt(n,a,c,u,g,T);case 219:return hlt(n,a,c,u,g,T)}return!1}function _lt(n,a,c,u,_,g,T){let P=Jo(a,0),W=Jo(a,1);for(let V of[W,P])if(gt(V,te=>{let ye=ds(te);return!(ye.flags&131073)&&Bf(ye,c,u,void 0)})){let te=T||{};eu(a,c,n,_,g,te);let ye=te.errors[te.errors.length-1];return Pa(ye,Pr(n,V===W?f.Did_you_mean_to_use_new_with_this_expression:f.Did_you_mean_to_call_this_expression)),!0}return!1}function hlt(n,a,c,u,_,g){if(Ko(n.body)||gt(n.parameters,hF))return!1;let T=QA(a);if(!T)return!1;let P=Jo(c,0);if(!Nn(P))return!1;let W=n.body,V=ds(T),te=ei(mn(P,ds));if(!Bf(V,te,u,void 0)){let ye=W&&x8(W,V,te,u,void 0,_,g);if(ye)return ye;let _e=g||{};if(Bf(V,te,u,W,void 0,_,_e),_e.errors)return c.symbol&&Nn(c.symbol.declarations)&&Pa(_e.errors[_e.errors.length-1],Pr(c.symbol.declarations[0],f.The_expected_type_comes_from_the_return_type_of_this_signature)),!(Vc(n)&2)&&!Ue(V,"then")&&Bf(X5(V),te,u,void 0)&&Pa(_e.errors[_e.errors.length-1],Pr(n,f.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function VOe(n,a,c){let u=Lb(a,c);if(u)return u;if(a.flags&1048576){let _=YOe(n,a);if(_)return Lb(_,c)}}function jOe(n,a){L5(n,a,!1);let c=QM(n,1);return O8(),c}function _5(n,a,c,u,_,g){let T=!1;for(let P of n){let{errorNode:W,innerExpression:V,nameType:te,errorMessage:ye}=P,_e=VOe(a,c,te);if(!_e||_e.flags&8388608)continue;let je=Lb(a,te);if(!je)continue;let mt=RZ(te,void 0);if(!Bf(je,_e,u,void 0)){let At=V&&x8(V,je,_e,u,void 0,_,g);if(T=!0,!At){let rn=g||{},sn=V?jOe(V,je):je;if(Ae&&zZ(sn,_e)){let nr=Pr(W,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Vn(sn),Vn(_e));Qa.add(nr),rn.errors=[nr]}else{let nr=!!(mt&&(ha(c,mt)||lt).flags&16777216),Mn=!!(mt&&(ha(a,mt)||lt).flags&16777216);_e=Bb(_e,nr),je=Bb(je,nr&&Mn),Bf(sn,_e,u,W,ye,_,rn)&&sn!==je&&Bf(je,_e,u,W,ye,_,rn)}if(rn.errors){let nr=rn.errors[rn.errors.length-1],Mn=Qf(te)?Zf(te):void 0,an=Mn!==void 0?ha(c,Mn):void 0,On=!1;if(!an){let Ln=m8(c,te);Ln&&Ln.declaration&&!Gn(Ln.declaration).hasNoDefaultLib&&(On=!0,Pa(nr,Pr(Ln.declaration,f.The_expected_type_comes_from_this_index_signature)))}if(!On&&(an&&Nn(an.declarations)||c.symbol&&Nn(c.symbol.declarations))){let Ln=an&&Nn(an.declarations)?an.declarations[0]:c.symbol.declarations[0];Gn(Ln).hasNoDefaultLib||Pa(nr,Pr(Ln,f.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,Mn&&!(te.flags&8192)?Vi(Mn):Vn(te),Vn(c)))}}}}}return T}function glt(n,a,c,u,_,g){let T=cc(c,KZ),P=cc(c,te=>!KZ(te)),W=P!==Fr?Uve(13,0,P,void 0):void 0,V=!1;for(let te=n.next();!te.done;te=n.next()){let{errorNode:ye,innerExpression:_e,nameType:je,errorMessage:mt}=te.value,At=W,rn=T!==Fr?VOe(a,T,je):void 0;if(rn&&!(rn.flags&8388608)&&(At=W?ei([W,rn]):rn),!At)continue;let sn=Lb(a,je);if(!sn)continue;let nr=RZ(je,void 0);if(!Bf(sn,At,u,void 0)){let Mn=_e&&x8(_e,sn,At,u,void 0,_,g);if(V=!0,!Mn){let an=g||{},On=_e?jOe(_e,sn):sn;if(Ae&&zZ(On,At)){let Ln=Pr(ye,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Vn(On),Vn(At));Qa.add(Ln),an.errors=[Ln]}else{let Ln=!!(nr&&(ha(T,nr)||lt).flags&16777216),Yn=!!(nr&&(ha(a,nr)||lt).flags&16777216);At=Bb(At,Ln),sn=Bb(sn,Ln&&Yn),Bf(On,At,u,ye,mt,_,an)&&On!==sn&&Bf(sn,At,u,ye,mt,_,an)}}}}return V}function*ylt(n){if(Nn(n.properties))for(let a of n.properties)o1(a)||Jye(fk(a.name))||(yield{errorNode:a.name,innerExpression:a.initializer,nameType:Uu(fk(a.name))})}function*vlt(n,a){if(!Nn(n.children))return;let c=0;for(let u=0;u1,rn,sn;if(Sge(!1)!==Lo){let Mn=tOe(G);rn=cc(je,an=>ya(an,Mn)),sn=cc(je,an=>!ya(an,Mn))}else rn=cc(je,KZ),sn=cc(je,Mn=>!KZ(Mn));if(At){if(rn!==Fr){let Mn=Wh(yee(V,0)),an=vlt(V,W);T=glt(an,Mn,rn,u,_,g)||T}else if(!q_(Cp(a,_e),je,u)){T=!0;let Mn=Ve(V.openingElement.tagName,f.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,ye,Vn(je));g&&g.skipLogging&&(g.errors||(g.errors=[])).push(Mn)}}else if(sn!==Fr){let Mn=mt[0],an=UOe(Mn,_e,W);an&&(T=_5(function*(){yield an}(),a,c,u,_,g)||T)}else if(!q_(Cp(a,_e),je,u)){T=!0;let Mn=Ve(V.openingElement.tagName,f.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,ye,Vn(je));g&&g.skipLogging&&(g.errors||(g.errors=[])).push(Mn)}}return T;function W(){if(!P){let V=uc(n.parent.tagName),te=w5(YA(n)),ye=te===void 0?"children":Vi(te),_e=Cp(c,Uu(ye)),je=f._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;P={...je,key:"!!ALREADY FORMATTED!!",message:nU(je,V,ye,Vn(_e))}}return P}}function*HOe(n,a){let c=Nn(n.elements);if(c)for(let u=0;uW:Q_(n)>W))return u&&!(c&8)&&_(f.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,Q_(n),W),0;n.typeParameters&&n.typeParameters!==a.typeParameters&&(a=Iat(a),n=HWe(n,a,void 0,T));let te=Kp(n),ye=B8(n),_e=B8(a);(ye||_e)&&io(ye||_e,P);let je=a.declaration?a.declaration.kind:0,mt=!(c&3)&&re&&je!==174&&je!==173&&je!==176,At=-1,rn=n0(n);if(rn&&rn!==er){let Mn=n0(a);if(Mn){let an=!mt&&T(rn,Mn,!1)||T(Mn,rn,u);if(!an)return u&&_(f.The_this_types_of_each_signature_are_incompatible),0;At&=an}}let sn=ye||_e?Math.min(te,W):Math.max(te,W),nr=ye||_e?sn-1:-1;for(let Mn=0;Mn=Q_(n)&&Mn=3&&a[0].flags&32768&&a[1].flags&65536&>(a,Fh)?67108864:0)}return!!(n.objectFlags&67108864)}return!1}function FM(n){return!!((n.flags&1048576?n.types[0]:n).flags&32768)}function JOe(n){return n.flags&524288&&!ju(n)&&ms(n).length===0&&_u(n).length===1&&!!vg(n,Ne)||n.flags&3145728&&oo(n.types,JOe)||!1}function $ge(n,a,c){let u=n.flags&8?Ru(n):n,_=a.flags&8?Ru(a):a;if(u===_)return!0;if(u.escapedName!==_.escapedName||!(u.flags&256)||!(_.flags&256))return!1;let g=ba(u)+","+ba(_),T=Qy.get(g);if(T!==void 0&&!(!(T&4)&&T&2&&c))return!!(T&1);let P=sr(_);for(let W of ms(sr(u)))if(W.flags&8){let V=ha(P,W.escapedName);if(!V||!(V.flags&8))return c?(c(f.Property_0_is_missing_in_type_1,vl(W),Vn(Xs(_),void 0,64)),Qy.set(g,6)):Qy.set(g,2),!1;let te=IC(cl(W,306)),ye=IC(cl(V,306));if(te!==ye){let _e=typeof te=="string",je=typeof ye=="string";if(te!==void 0&&ye!==void 0){if(!c)Qy.set(g,2);else{let mt=_e?`"${Qh(te)}"`:te,At=je?`"${Qh(ye)}"`:ye;c(f.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given,vl(_),vl(V),At,mt),Qy.set(g,6)}return!1}if(_e||je){if(!c)Qy.set(g,2);else{let mt=te??ye;x.assert(typeof mt=="string");let At=`"${Qh(mt)}"`;c(f.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value,vl(_),vl(V),At),Qy.set(g,6)}return!1}}}return Qy.set(g,1),!0}function R8(n,a,c,u){let _=n.flags,g=a.flags;return g&1||_&131072||n===Tt||g&2&&!(c===Mf&&_&1)?!0:g&131072?!1:!!(_&402653316&&g&4||_&128&&_&1024&&g&128&&!(g&1024)&&n.value===a.value||_&296&&g&8||_&256&&_&1024&&g&256&&!(g&1024)&&n.value===a.value||_&2112&&g&64||_&528&&g&16||_&12288&&g&4096||_&32&&g&32&&n.symbol.escapedName===a.symbol.escapedName&&$ge(n.symbol,a.symbol,u)||_&1024&&g&1024&&(_&1048576&&g&1048576&&$ge(n.symbol,a.symbol,u)||_&2944&&g&2944&&n.value===a.value&&$ge(n.symbol,a.symbol,u))||_&32768&&(!J&&!(g&3145728)||g&49152)||_&65536&&(!J&&!(g&3145728)||g&65536)||_&524288&&g&67108864&&!(c===Mf&&Fh(n)&&!(Lr(n)&8192))||(c===Gu||c===Ap)&&(_&1||_&8&&(g&32||g&256&&g&1024)||_&256&&!(_&1024)&&(g&32||g&256&&g&1024&&n.value===a.value)||Rlt(a)))}function q_(n,a,c){if(wS(n)&&(n=n.regularType),wS(a)&&(a=a.regularType),n===a)return!0;if(c!==np){if(c===Ap&&!(a.flags&131072)&&R8(a,n,c)||R8(n,a,c))return!0}else if(!((n.flags|a.flags)&61865984)){if(n.flags!==a.flags)return!1;if(n.flags&67358815)return!0}if(n.flags&524288&&a.flags&524288){let u=c.get(VZ(n,a,0,c,!1));if(u!==void 0)return!!(u&1)}return n.flags&469499904||a.flags&469499904?Bf(n,a,c,void 0):!1}function qOe(n,a){return Lr(n)&2048&&Jye(a.escapedName)}function h5(n,a){for(;;){let c=wS(n)?n.regularType:Fb(n)?Clt(n,a):Lr(n)&4?n.node?sv(n.target,Vs(n)):iye(n)||n:n.flags&3145728?Dlt(n,a):n.flags&33554432?a?n.baseType:hge(n):n.flags&25165824?uy(n,a):n;if(c===n)return c;n=c}}function Dlt(n,a){let c=c_(n);if(c!==n)return c;if(n.flags&2097152&>(n.types,Fh)){let u=Pc(n.types,_=>h5(_,a));if(u!==n.types)return ga(u)}return n}function Clt(n,a){let c=LS(n),u=Pc(c,_=>_.flags&25165824?uy(_,a):_);return c!==u?Rge(n.target,u):n}function Bf(n,a,c,u,_,g,T){var P;let W,V,te,ye,_e,je,mt=0,At=0,rn=0,sn=0,nr=!1,Mn=0,an=0,On,Ln,Yn=16e6-c.size>>3;x.assert(c!==np||!u,"no error reporting in identity checking");let jn=hr(n,a,3,!!u,_);if(Ln&&Fo(),nr){let Qe=VZ(n,a,0,c,!1);c.set(Qe,6),(P=rr)==null||P.instant(rr.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:n.id,targetId:a.id,depth:At,targetDepth:rn});let vt=Yn<=0?f.Excessive_complexity_comparing_types_0_and_1:f.Excessive_stack_depth_comparing_types_0_and_1,$t=Ve(u||D,vt,Vn(n),Vn(a));T&&(T.errors||(T.errors=[])).push($t)}else if(W){if(g){let $t=g();$t&&(loe($t,W),W=$t)}let Qe;if(_&&u&&!jn&&n.symbol){let $t=qi(n.symbol);if($t.originatingImport&&!Op($t.originatingImport)&&Bf(sr($t.target),a,c,void 0)){let Ar=Pr($t.originatingImport,f.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);Qe=Tn(Qe,Ar)}}let vt=Mg(Gn(u),u,W,Qe);V&&Pa(vt,...V),T&&(T.errors||(T.errors=[])).push(vt),(!T||!T.skipLogging)&&Qa.add(vt)}return u&&T&&T.skipLogging&&jn===0&&x.assert(!!T.errors,"missed opportunity to interact with error."),jn!==0;function $n(Qe){W=Qe.errorInfo,On=Qe.lastSkippedInfo,Ln=Qe.incompatibleStack,Mn=Qe.overrideNextErrorInfo,an=Qe.skipParentCounter,V=Qe.relatedInfo}function Ro(){return{errorInfo:W,lastSkippedInfo:On,incompatibleStack:Ln?.slice(),overrideNextErrorInfo:Mn,skipParentCounter:an,relatedInfo:V?.slice()}}function bo(Qe,...vt){Mn++,On=void 0,(Ln||(Ln=[])).push([Qe,...vt])}function Fo(){let Qe=Ln||[];Ln=void 0;let vt=On;if(On=void 0,Qe.length===1){fo(...Qe[0]),vt&&sp(void 0,...vt);return}let $t="",Hn=[];for(;Qe.length;){let[Ar,...bn]=Qe.pop();switch(Ar.code){case f.Types_of_property_0_are_incompatible.code:{$t.indexOf("new ")===0&&($t=`(${$t})`);let mr=""+bn[0];$t.length===0?$t=`${mr}`:Yp(mr,ns(B))?$t=`${$t}.${mr}`:mr[0]==="["&&mr[mr.length-1]==="]"?$t=`${$t}${mr}`:$t=`${$t}[${mr}]`;break}case f.Call_signature_return_types_0_and_1_are_incompatible.code:case f.Construct_signature_return_types_0_and_1_are_incompatible.code:case f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if($t.length===0){let mr=Ar;Ar.code===f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?mr=f.Call_signature_return_types_0_and_1_are_incompatible:Ar.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(mr=f.Construct_signature_return_types_0_and_1_are_incompatible),Hn.unshift([mr,bn[0],bn[1]])}else{let mr=Ar.code===f.Construct_signature_return_types_0_and_1_are_incompatible.code||Ar.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",Gr=Ar.code===f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||Ar.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";$t=`${mr}${$t}(${Gr})`}break}case f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{Hn.unshift([f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,bn[0],bn[1]]);break}case f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{Hn.unshift([f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,bn[0],bn[1],bn[2]]);break}default:return x.fail(`Unhandled Diagnostic: ${Ar.code}`)}}$t?fo($t[$t.length-1]===")"?f.The_types_returned_by_0_are_incompatible_between_these_types:f.The_types_of_0_are_incompatible_between_these_types,$t):Hn.shift();for(let[Ar,...bn]of Hn){let mr=Ar.elidedInCompatabilityPyramid;Ar.elidedInCompatabilityPyramid=!1,fo(Ar,...bn),Ar.elidedInCompatabilityPyramid=mr}vt&&sp(void 0,...vt)}function fo(Qe,...vt){x.assert(!!u),Ln&&Fo(),!Qe.elidedInCompatabilityPyramid&&(an===0?W=zo(W,Qe,...vt):an--)}function Rc(Qe,...vt){fo(Qe,...vt),an++}function Vf(Qe){x.assert(!!W),V?V.push(Qe):V=[Qe]}function sp(Qe,vt,$t){Ln&&Fo();let[Hn,Ar]=tx(vt,$t),bn=vt,mr=Hn;if(D8(vt)&&!Qge($t)&&(bn=my(vt),x.assert(!ya(bn,$t),"generalized source shouldn't be assignable"),mr=bb(bn)),($t.flags&8388608&&!(vt.flags&8388608)?$t.objectType.flags:$t.flags)&262144&&$t!==de&&$t!==$){let Fi=zd($t),Oo;Fi&&(ya(bn,Fi)||(Oo=ya(vt,Fi)))?fo(f._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,Oo?Hn:mr,Ar,Vn(Fi)):(W=void 0,fo(f._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,Ar,mr))}if(Qe)Qe===f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&Ae&&XOe(vt,$t).length&&(Qe=f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(c===Ap)Qe=f.Type_0_is_not_comparable_to_type_1;else if(Hn===Ar)Qe=f.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(Ae&&XOe(vt,$t).length)Qe=f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(vt.flags&128&&$t.flags&1048576){let Fi=Fut(vt,$t);if(Fi){fo(f.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,mr,Ar,Vn(Fi));return}}Qe=f.Type_0_is_not_assignable_to_type_1}fo(Qe,mr,Ar)}function Pn(Qe,vt){let $t=Eb(Qe.symbol)?Vn(Qe,Qe.symbol.valueDeclaration):Vn(Qe),Hn=Eb(vt.symbol)?Vn(vt,vt.symbol.valueDeclaration):Vn(vt);(Ql===Qe&&Ne===vt||gc===Qe&&It===vt||sl===Qe&&gi===vt||Ywe()===Qe&&xi===vt)&&fo(f._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,Hn,$t)}function Xn(Qe,vt,$t){return wa(Qe)?Qe.target.readonly&&b5(vt)?($t&&fo(f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Vn(Qe),Vn(vt)),!1):a0(vt):BM(Qe)&&b5(vt)?($t&&fo(f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Vn(Qe),Vn(vt)),!1):wa(vt)?Gf(Qe):!0}function ro(Qe,vt,$t){return hr(Qe,vt,3,$t)}function hr(Qe,vt,$t=3,Hn=!1,Ar,bn=0){if(Qe===vt)return-1;if(Qe.flags&524288&&vt.flags&402784252)return c===Ap&&!(vt.flags&131072)&&R8(vt,Qe,c)||R8(Qe,vt,c,Hn?fo:void 0)?-1:(Hn&&Co(Qe,vt,Qe,vt,Ar),0);let mr=h5(Qe,!1),Gr=h5(vt,!0);if(mr===Gr)return-1;if(c===np)return mr.flags!==Gr.flags?0:mr.flags&67358815?-1:(is(mr,Gr),Ai(mr,Gr,!1,0,$t));if(mr.flags&262144&&kA(mr)===Gr)return-1;if(mr.flags&470302716&&Gr.flags&1048576){let Fi=Gr.types,Oo=Fi.length===2&&Fi[0].flags&98304?Fi[1]:Fi.length===3&&Fi[0].flags&98304&&Fi[1].flags&98304?Fi[2]:void 0;if(Oo&&!(Oo.flags&98304)&&(Gr=h5(Oo,!0),mr===Gr))return-1}if(c===Ap&&!(Gr.flags&131072)&&R8(Gr,mr,c)||R8(mr,Gr,c,Hn?fo:void 0))return-1;if(mr.flags&469499904||Gr.flags&469499904){if(!(bn&2)&&c0(mr)&&Lr(mr)&8192&&Gd(mr,Gr,Hn))return Hn&&sp(Ar,mr,vt.aliasSymbol?vt:Gr),0;let Oo=(c!==Ap||u_(mr))&&!(bn&2)&&mr.flags&405405692&&mr!==Re&&Gr.flags&2621440&&$Oe(Gr)&&(ms(mr).length>0||Qee(mr)),pa=!!(Lr(mr)&2048);if(Oo&&!Plt(mr,Gr,pa)){if(Hn){let ko=Vn(Qe.aliasSymbol?Qe:mr),Aa=Vn(vt.aliasSymbol?vt:Gr),Is=Jo(mr,0),us=Jo(mr,1);Is.length>0&&hr(ds(Is[0]),Gr,1,!1)||us.length>0&&hr(ds(us[0]),Gr,1,!1)?fo(f.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,ko,Aa):fo(f.Type_0_has_no_properties_in_common_with_type_1,ko,Aa)}return 0}is(mr,Gr);let Ei=mr.flags&1048576&&mr.types.length<4&&!(Gr.flags&1048576)||Gr.flags&1048576&&Gr.types.length<4&&!(mr.flags&469499904)?Pu(mr,Gr,Hn,bn):Ai(mr,Gr,Hn,bn,$t);if(Ei)return Ei}return Hn&&Co(Qe,vt,mr,Gr,Ar),0}function Co(Qe,vt,$t,Hn,Ar){var bn,mr;let Gr=!!iye(Qe),Fi=!!iye(vt);$t=Qe.aliasSymbol||Gr?Qe:$t,Hn=vt.aliasSymbol||Fi?vt:Hn;let Oo=Mn>0;if(Oo&&Mn--,$t.flags&524288&&Hn.flags&524288){let pa=W;Xn($t,Hn,!0),W!==pa&&(Oo=!!W)}if($t.flags&524288&&Hn.flags&402784252)Pn($t,Hn);else if($t.symbol&&$t.flags&524288&&Re===$t)fo(f.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(Lr($t)&2048&&Hn.flags&2097152){let pa=Hn.types,fa=GS(tf.IntrinsicAttributes,u),Ei=GS(tf.IntrinsicClassAttributes,u);if(!Vt(fa)&&!Vt(Ei)&&(Bo(pa,fa)||Bo(pa,Ei)))return}else W=tge(W,vt);if(!Ar&&Oo){On=[$t,Hn];return}if(sp(Ar,$t,Hn),$t.flags&262144&&((mr=(bn=$t.symbol)==null?void 0:bn.declarations)!=null&&mr[0])&&!kA($t)){let pa=jge($t);if(pa.constraint=io(Hn,OS($t,pa)),e5(pa)){let fa=Vn(Hn,$t.symbol.declarations[0]);Vf(Pr($t.symbol.declarations[0],f.This_type_parameter_might_need_an_extends_0_constraint,fa))}}}function is(Qe,vt){if(rr&&Qe.flags&3145728&&vt.flags&3145728){let $t=Qe,Hn=vt;if($t.objectFlags&Hn.objectFlags&32768)return;let Ar=$t.types.length,bn=Hn.types.length;Ar*bn>1e6&&rr.instant(rr.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:Qe.id,sourceSize:Ar,targetId:vt.id,targetSize:bn,pos:u?.pos,end:u?.end})}}function vs(Qe,vt){return ei(tu(Qe,(Hn,Ar)=>{var bn;Ar=Nu(Ar);let mr=Ar.flags&3145728?t5(Ar,vt):e0(Ar,vt),Gr=mr&&sr(mr)||((bn=ox(Ar,vt))==null?void 0:bn.type)||Me;return Tn(Hn,Gr)},void 0)||Xe)}function Gd(Qe,vt,$t){var Hn;if(!W5(vt)||!fe&&Lr(vt)&4096)return!1;let Ar=!!(Lr(Qe)&2048);if((c===Gu||c===Ap)&&(HM(Re,vt)||!Ar&&fy(vt)))return!1;let bn=vt,mr;vt.flags&1048576&&(bn=m4e(Qe,vt,hr)||Ggt(vt),mr=bn.flags&1048576?bn.types:[bn]);for(let Gr of ms(Qe))if(Oa(Gr,Qe.symbol)&&!qOe(Qe,Gr)){if(!Yye(bn,Gr.escapedName,Ar)){if($t){let Fi=cc(bn,W5);if(!u)return x.fail();if(q0(u)||au(u)||au(u.parent)){Gr.valueDeclaration&&M_(Gr.valueDeclaration)&&Gn(u)===Gn(Gr.valueDeclaration.name)&&(u=Gr.valueDeclaration.name);let Oo=Si(Gr),pa=WWe(Oo,Fi),fa=pa?Si(pa):void 0;fa?fo(f.Property_0_does_not_exist_on_type_1_Did_you_mean_2,Oo,Vn(Fi),fa):fo(f.Property_0_does_not_exist_on_type_1,Oo,Vn(Fi))}else{let Oo=((Hn=Qe.symbol)==null?void 0:Hn.declarations)&&Xc(Qe.symbol.declarations),pa;if(Gr.valueDeclaration&&Fn(Gr.valueDeclaration,fa=>fa===Oo)&&Gn(Oo)===Gn(u)){let fa=Gr.valueDeclaration;x.assertNode(fa,Pg);let Ei=fa.name;u=Ei,Fe(Ei)&&(pa=ove(Ei,Fi))}pa!==void 0?Rc(f.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Si(Gr),Vn(Fi),pa):Rc(f.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Si(Gr),Vn(Fi))}}return!0}if(mr&&!hr(sr(Gr),vs(mr,Gr.escapedName),3,$t))return $t&&bo(f.Types_of_property_0_are_incompatible,Si(Gr)),!0}return!1}function Oa(Qe,vt){return Qe.valueDeclaration&&vt.valueDeclaration&&Qe.valueDeclaration.parent===vt.valueDeclaration}function Pu(Qe,vt,$t,Hn){if(Qe.flags&1048576){if(vt.flags&1048576){let Ar=Qe.origin;if(Ar&&Ar.flags&2097152&&vt.aliasSymbol&&Bo(Ar.types,vt))return-1;let bn=vt.origin;if(bn&&bn.flags&1048576&&Qe.aliasSymbol&&Bo(bn.types,Qe))return-1}return c===Ap?Se(Qe,vt,$t&&!(Qe.flags&402784252),Hn):Rr(Qe,vt,$t&&!(Qe.flags&402784252),Hn)}if(vt.flags&1048576)return gl(P8(Qe),vt,$t&&!(Qe.flags&402784252)&&!(vt.flags&402784252),Hn);if(vt.flags&2097152)return ot(Qe,vt,$t,2);if(c===Ap&&vt.flags&402784252){let Ar=Pc(Qe.types,bn=>bn.flags&465829888?zd(bn)||un:bn);if(Ar!==Qe.types){if(Qe=ga(Ar),Qe.flags&131072)return 0;if(!(Qe.flags&2097152))return hr(Qe,vt,1,!1)||hr(vt,Qe,1,!1)}}return Se(Qe,vt,!1,1)}function Ol(Qe,vt){let $t=-1,Hn=Qe.types;for(let Ar of Hn){let bn=gl(Ar,vt,!1,0);if(!bn)return 0;$t&=bn}return $t}function gl(Qe,vt,$t,Hn){let Ar=vt.types;if(vt.flags&1048576){if(dy(Ar,Qe))return-1;if(c!==Ap&&Lr(vt)&32768&&!(Qe.flags&1024)&&(Qe.flags&2688||(c===Ih||c===Mf)&&Qe.flags&256)){let mr=Qe===Qe.regularType?Qe.freshType:Qe.regularType,Gr=Qe.flags&128?Ne:Qe.flags&256?It:Qe.flags&2048?Dt:void 0;return Gr&&dy(Ar,Gr)||mr&&dy(Ar,mr)?-1:0}let bn=x8e(vt,Qe);if(bn){let mr=hr(Qe,bn,2,!1,void 0,Hn);if(mr)return mr}}for(let bn of Ar){let mr=hr(Qe,bn,2,!1,void 0,Hn);if(mr)return mr}if($t){let bn=YOe(Qe,vt,hr);bn&&hr(Qe,bn,2,!0,void 0,Hn)}return 0}function ot(Qe,vt,$t,Hn){let Ar=-1,bn=vt.types;for(let mr of bn){let Gr=hr(Qe,mr,2,$t,void 0,Hn);if(!Gr)return 0;Ar&=Gr}return Ar}function Se(Qe,vt,$t,Hn){let Ar=Qe.types;if(Qe.flags&1048576&&dy(Ar,vt))return-1;let bn=Ar.length;for(let mr=0;mr=mr.types.length&&bn.length%mr.types.length===0){let pa=hr(Fi,mr.types[Gr%mr.types.length],3,!1,void 0,Hn);if(pa){Ar&=pa;continue}}let Oo=hr(Fi,vt,1,$t,void 0,Hn);if(!Oo)return 0;Ar&=Oo}return Ar}function di(Qe=Xe,vt=Xe,$t=Xe,Hn,Ar){if(Qe.length!==vt.length&&c===np)return 0;let bn=Qe.length<=vt.length?Qe.length:vt.length,mr=-1;for(let Gr=0;Gr(ko|=us?16:8,Ei(us)));let Aa;return sn===3?((bn=rr)==null||bn.instant(rr.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:Qe.id,sourceIdStack:_e.map(us=>us.id),targetId:vt.id,targetIdStack:je.map(us=>us.id),depth:At,targetDepth:rn}),Aa=3):((mr=rr)==null||mr.push(rr.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:Qe.id,targetId:vt.id}),Aa=Ii(Qe,vt,$t,Hn),(Gr=rr)==null||Gr.pop()),la&&(la=Ei),Ar&1&&At--,Ar&2&&rn--,sn=fa,Aa?(Aa===-1||At===0&&rn===0)&&Is(Aa===-1||Aa===3):(c.set(Fi,($t?4:0)|2|ko),Yn--,Is(!1)),Aa;function Is(us){for(let Cc=pa;CcGr!==Qe)&&(bn=hr(mr,vt,1,!1,void 0,Hn))}bn&&!(Hn&2)&&vt.flags&2097152&&!BA(vt)&&Qe.flags&2621440?(bn&=bi(Qe,vt,$t,void 0,!1,0),bn&&c0(Qe)&&Lr(Qe)&8192&&(bn&=os(Qe,vt,!1,$t,0))):bn&&CZ(vt)&&!a0(vt)&&Qe.flags&2097152&&Nu(Qe).flags&3670016&&!gt(Qe.types,mr=>mr===vt||!!(Lr(mr)&262144))&&(bn&=bi(Qe,vt,$t,void 0,!0,Hn))}return bn&&$n(Ar),bn}function Br(Qe,vt){let $t=Nu(LA(vt)),Hn=[];return Jhe($t,8576,!1,Ar=>void Hn.push(io(Qe,S8(vt.mapper,s_(vt),Ar)))),ei(Hn)}function Tr(Qe,vt,$t,Hn,Ar){let bn,mr,Gr=!1,Fi=Qe.flags,Oo=vt.flags;if(c===np){if(Fi&3145728){let Ei=Ol(Qe,vt);return Ei&&(Ei&=Ol(vt,Qe)),Ei}if(Fi&4194304)return hr(Qe.type,vt.type,3,!1);if(Fi&8388608&&(bn=hr(Qe.objectType,vt.objectType,3,!1))&&(bn&=hr(Qe.indexType,vt.indexType,3,!1))||Fi&16777216&&Qe.root.isDistributive===vt.root.isDistributive&&(bn=hr(Qe.checkType,vt.checkType,3,!1))&&(bn&=hr(Qe.extendsType,vt.extendsType,3,!1))&&(bn&=hr(r0(Qe),r0(vt),3,!1))&&(bn&=hr(i0(Qe),i0(vt),3,!1))||Fi&33554432&&(bn=hr(Qe.baseType,vt.baseType,3,!1))&&(bn&=hr(Qe.constraint,vt.constraint,3,!1)))return bn;if(!(Fi&524288))return 0}else if(Fi&3145728||Oo&3145728){if(bn=Pu(Qe,vt,$t,Hn))return bn;if(!(Fi&465829888||Fi&524288&&Oo&1048576||Fi&2097152&&Oo&467402752))return 0}if(Fi&17301504&&Qe.aliasSymbol&&Qe.aliasTypeArguments&&Qe.aliasSymbol===vt.aliasSymbol&&!(BZ(Qe)||BZ(vt))){let Ei=QOe(Qe.aliasSymbol);if(Ei===Xe)return 1;let ko=qi(Qe.aliasSymbol).typeParameters,Aa=wh(ko),Is=Pb(Qe.aliasTypeArguments,ko,Aa,ir(Qe.aliasSymbol.valueDeclaration)),us=Pb(vt.aliasTypeArguments,ko,Aa,ir(Qe.aliasSymbol.valueDeclaration)),Cc=fa(Is,us,Ei,Hn);if(Cc!==void 0)return Cc}if(s8e(Qe)&&!Qe.target.readonly&&(bn=hr(Vs(Qe)[0],vt,1))||s8e(vt)&&(vt.target.readonly||b5(zd(Qe)||Qe))&&(bn=hr(Qe,Vs(vt)[0],2)))return bn;if(Oo&262144){if(Lr(Qe)&32&&!Qe.declaration.nameType&&hr(J_(vt),hf(Qe),3)&&!(kh(Qe)&4)){let Ei=ly(Qe),ko=Cp(vt,s_(Qe));if(bn=hr(Ei,ko,3,$t))return bn}if(c===Ap&&Fi&262144){let Ei=Cu(Qe);if(Ei)for(;Ei&&Fm(Ei,ko=>!!(ko.flags&262144));){if(bn=hr(Ei,vt,1,!1))return bn;Ei=Cu(Ei)}return 0}}else if(Oo&4194304){let Ei=vt.type;if(Fi&4194304&&(bn=hr(Ei,Qe.type,3,!1)))return bn;if(wa(Ei)){if(bn=hr(Qe,oOe(Ei),2,$t))return bn}else{let ko=Xhe(Ei);if(ko){if(hr(Qe,J_(ko,vt.indexFlags|4),2,$t)===-1)return-1}else if(ju(Ei)){let Aa=av(Ei),Is=hf(Ei),us;if(Aa&&aC(Ei)){let Cc=Br(Aa,Ei);us=ei([Cc,Aa])}else us=Aa||Is;if(hr(Qe,us,2,$t)===-1)return-1}}}else if(Oo&8388608){if(Fi&8388608){if((bn=hr(Qe.objectType,vt.objectType,3,$t))&&(bn&=hr(Qe.indexType,vt.indexType,3,$t)),bn)return bn;$t&&(mr=W)}if(c===Gu||c===Ap){let Ei=vt.objectType,ko=vt.indexType,Aa=zd(Ei)||Ei,Is=zd(ko)||ko;if(!BA(Aa)&&!GA(Is)){let us=4|(Aa!==Ei?2:0),Cc=Lb(Aa,Is,us);if(Cc){if($t&&mr&&$n(Ar),bn=hr(Qe,Cc,2,$t,void 0,Hn))return bn;$t&&mr&&W&&(W=pa([mr])<=pa([W])?mr:W)}}}$t&&(mr=void 0)}else if(ju(vt)&&c!==np){let Ei=!!vt.declaration.nameType,ko=ly(vt),Aa=kh(vt);if(!(Aa&8)){if(!Ei&&ko.flags&8388608&&ko.objectType===Qe&&ko.indexType===s_(vt))return-1;if(!ju(Qe)){let Is=Ei?av(vt):hf(vt),us=J_(Qe,2),Cc=Aa&4,Bh=Cc?$B(Is,us):void 0;if(Cc?!(Bh.flags&131072):hr(Is,us,3)){let yy=ly(vt),tI=s_(vt),nI=KM(yy,-98305);if(!Ei&&nI.flags&8388608&&nI.indexType===tI){if(bn=hr(Qe,nI.objectType,2,$t))return bn}else{let aL=Ei?Bh||Is:Bh?ga([Bh,tI]):tI,__=Cp(Qe,aL);if(bn=hr(__,yy,3,$t))return bn}}mr=W,$n(Ar)}}}else if(Oo&16777216){if(zM(vt,je,rn,10))return 3;let Ei=vt;if(!Ei.root.inferTypeParameters&&!Ust(Ei.root)&&!(Qe.flags&16777216&&Qe.root===Ei.root)){let ko=!ya(A8(Ei.checkType),A8(Ei.extendsType)),Aa=!ko&&ya(jA(Ei.checkType),jA(Ei.extendsType));if((bn=ko?-1:hr(Qe,r0(Ei),2,!1,void 0,Hn))&&(bn&=Aa?-1:hr(Qe,i0(Ei),2,!1,void 0,Hn),bn))return bn}}else if(Oo&134217728){if(Fi&134217728){if(c===Ap)return gct(Qe,vt)?0:-1;io(Qe,dd)}if(ree(Qe,vt))return-1}else if(vt.flags&268435456&&!(Qe.flags&268435456)&&nee(Qe,vt))return-1;if(Fi&8650752){if(!(Fi&8388608&&Oo&8388608)){let Ei=kA(Qe)||un;if(bn=hr(Ei,vt,1,!1,void 0,Hn))return bn;if(bn=hr(Up(Ei,Qe),vt,1,$t&&Ei!==un&&!(Oo&Fi&262144),void 0,Hn))return bn;if(Zhe(Qe)){let ko=kA(Qe.indexType);if(ko&&(bn=hr(Cp(Qe.objectType,ko),vt,1,$t)))return bn}}}else if(Fi&4194304){let Ei=Lge(Qe.type,Qe.indexFlags)&&Lr(Qe.type)&32;if(bn=hr(Ls,vt,1,$t&&!Ei))return bn;if(Ei){let ko=Qe.type,Aa=av(ko),Is=Aa&&aC(ko)?Br(Aa,ko):Aa||hf(ko);if(bn=hr(Is,vt,1,$t))return bn}}else if(Fi&134217728&&!(Oo&524288)){if(!(Oo&134217728)){let Ei=zd(Qe);if(Ei&&Ei!==Qe&&(bn=hr(Ei,vt,1,$t)))return bn}}else if(Fi&268435456)if(Oo&268435456){if(Qe.symbol!==vt.symbol)return 0;if(bn=hr(Qe.type,vt.type,3,$t))return bn}else{let Ei=zd(Qe);if(Ei&&(bn=hr(Ei,vt,1,$t)))return bn}else if(Fi&16777216){if(zM(Qe,_e,At,10))return 3;if(Oo&16777216){let Aa=Qe.root.inferTypeParameters,Is=Qe.extendsType,us;if(Aa){let Cc=M8(Aa,void 0,0,ro);hy(Cc.inferences,vt.extendsType,Is,1536),Is=io(Is,Cc.mapper),us=Cc.mapper}if(py(Is,vt.extendsType)&&(hr(Qe.checkType,vt.checkType,3)||hr(vt.checkType,Qe.checkType,3))&&((bn=hr(io(r0(Qe),us),r0(vt),3,$t))&&(bn&=hr(i0(Qe),i0(vt),3,$t)),bn))return bn}let Ei=Yhe(Qe);if(Ei&&(bn=hr(Ei,vt,1,$t)))return bn;let ko=!(Oo&16777216)&&e5(Qe)?ywe(Qe):void 0;if(ko&&($n(Ar),bn=hr(ko,vt,1,$t)))return bn}else{if(c!==Ih&&c!==Mf&&tat(vt)&&fy(Qe))return-1;if(ju(vt))return ju(Qe)&&(bn=it(Qe,vt,$t))?bn:0;let Ei=!!(Fi&402784252);if(c!==np)Qe=Nu(Qe),Fi=Qe.flags;else if(ju(Qe))return 0;if(Lr(Qe)&4&&Lr(vt)&4&&Qe.target===vt.target&&!wa(Qe)&&!(BZ(Qe)||BZ(vt))){if(HZ(Qe))return-1;let ko=eye(Qe.target);if(ko===Xe)return 1;let Aa=fa(Vs(Qe),Vs(vt),ko,Hn);if(Aa!==void 0)return Aa}else{if(BM(vt)?ap(Qe,a0):Gf(vt)&&ap(Qe,ko=>wa(ko)&&!ko.target.readonly))return c!==np?hr(t0(Qe,It)||G,t0(vt,It)||G,3,$t):0;if(Fb(Qe)&&wa(vt)&&!Fb(vt)){let ko=cy(Qe);if(ko!==Qe)return hr(ko,vt,1,$t)}else if((c===Ih||c===Mf)&&fy(vt)&&Lr(vt)&8192&&!fy(Qe))return 0}if(Fi&2621440&&Oo&524288){let ko=$t&&W===Ar.errorInfo&&!Ei;if(bn=bi(Qe,vt,ko,void 0,!1,Hn),bn&&(bn&=lo(Qe,vt,0,ko,Hn),bn&&(bn&=lo(Qe,vt,1,ko,Hn),bn&&(bn&=os(Qe,vt,Ei,ko,Hn)))),Gr&&bn)W=mr||W||Ar.errorInfo;else if(bn)return bn}if(Fi&2621440&&Oo&1048576){let ko=KM(vt,36175872);if(ko.flags&1048576){let Aa=kt(Qe,ko);if(Aa)return Aa}}}return 0;function pa(Ei){return Ei?tu(Ei,(ko,Aa)=>ko+1+pa(Aa.next),0):0}function fa(Ei,ko,Aa,Is){if(bn=di(Ei,ko,Aa,$t,Is))return bn;if(gt(Aa,Cc=>!!(Cc&24))){mr=void 0,$n(Ar);return}let us=ko&&Mlt(ko,Aa);if(Gr=!us,Aa!==Xe&&!us){if(Gr&&!($t&>(Aa,Cc=>(Cc&7)===0)))return 0;mr=W,$n(Ar)}}}function it(Qe,vt,$t){if(c===Ap||(c===np?kh(Qe)===kh(vt):qhe(Qe)<=qhe(vt))){let Ar,bn=hf(vt),mr=io(hf(Qe),qhe(Qe)<0?bs:dd);if(Ar=hr(bn,mr,3,$t)){let Gr=Np([s_(Qe)],[s_(vt)]);if(io(av(Qe),Gr)===io(av(vt),Gr))return Ar&hr(io(ly(Qe),Gr),ly(vt),3,$t)}}return 0}function kt(Qe,vt){var $t;let Hn=ms(Qe),Ar=I8e(Hn,vt);if(!Ar)return 0;let bn=1;for(let fa of Ar)if(bn*=Hct(Rb(fa)),bn>25)return($t=rr)==null||$t.instant(rr.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:Qe.id,targetId:vt.id,numCombinations:bn}),0;let mr=new Array(Ar.length),Gr=new Set;for(let fa=0;fafa[Aa],!1,0,J||c===Ap))continue e}yf(Oo,ko,Ty),Ei=!0}if(!Ei)return 0}let pa=-1;for(let fa of Oo)if(pa&=bi(Qe,fa,!1,Gr,!1,0),pa&&(pa&=lo(Qe,fa,0,!1,0),pa&&(pa&=lo(Qe,fa,1,!1,0),pa&&!(wa(Qe)&&wa(fa))&&(pa&=os(Qe,fa,!1,!1,0)))),!pa)return pa;return pa}function Qt(Qe,vt){if(!vt||Qe.length===0)return Qe;let $t;for(let Hn=0;Hn5?fo(f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Vn(Qe),Vn(vt),mn(bn.slice(0,4),mr=>Si(mr)).join(", "),bn.length-4):fo(f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Vn(Qe),Vn(vt),mn(bn,mr=>Si(mr)).join(", ")),Ar&&W&&Mn++)}function bi(Qe,vt,$t,Hn,Ar,bn){if(c===np)return ui(Qe,vt,Hn);let mr=-1;if(wa(vt)){if(a0(Qe)){if(!vt.target.readonly&&(BM(Qe)||wa(Qe)&&Qe.target.readonly))return 0;let fa=lv(Qe),Ei=lv(vt),ko=wa(Qe)?Qe.target.combinedFlags&4:4,Aa=vt.target.combinedFlags&4,Is=wa(Qe)?Qe.target.minLength:0,us=vt.target.minLength;if(!ko&&fa=yy?Ei-1-Math.min(Bm,tI):__,Ir=vt.target.elementFlags[Ct];if(Ir&8&&!(_x&8))return $t&&fo(f.Source_provides_no_match_for_variadic_element_at_position_0_in_target,Ct),0;if(_x&8&&!(Ir&12))return $t&&fo(f.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,__,Ct),0;if(Ir&1&&!(_x&1))return $t&&fo(f.Source_provides_no_match_for_required_element_at_position_0_in_target,Ct),0;if(aL&&((_x&12||Ir&12)&&(aL=!1),aL&&Hn?.has(""+__)))continue;let pi=Bb(Cc[__],!!(_x&Ir&2)),Jr=Bh[Ct],li=_x&8&&Ir&4?Bd(Jr):Bb(Jr,!!(Ir&2)),Za=hr(pi,li,3,$t,void 0,bn);if(!Za)return $t&&(Ei>1||fa>1)&&(nI&&__>=yy&&Bm>=tI&&yy!==fa-tI-1?bo(f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,yy,fa-tI-1,Ct):bo(f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,__,Ct)),0;mr&=Za}return mr}if(vt.target.combinedFlags&12)return 0}let Gr=(c===Ih||c===Mf)&&!c0(Qe)&&!HZ(Qe)&&!wa(Qe),Fi=gye(Qe,vt,Gr,!1);if(Fi)return $t&&An(Qe,vt)&&Wn(Qe,vt,Fi,Gr),0;if(c0(vt)){for(let fa of Qt(ms(Qe),Hn))if(!e0(vt,fa.escapedName)&&!(sr(fa).flags&32768))return $t&&fo(f.Property_0_does_not_exist_on_type_1,Si(fa),Vn(vt)),0}let Oo=ms(vt),pa=wa(Qe)&&wa(vt);for(let fa of Qt(Oo,Hn)){let Ei=fa.escapedName;if(!(fa.flags&4194304)&&(!pa||ng(Ei)||Ei==="length")&&(!Ar||fa.flags&16777216)){let ko=ha(Qe,Ei);if(ko&&ko!==fa){let Aa=ln(Qe,vt,ko,fa,Rb,$t,bn,c===Ap);if(!Aa)return 0;mr&=Aa}}}return mr}function ui(Qe,vt,$t){if(!(Qe.flags&524288&&vt.flags&524288))return 0;let Hn=Qt(Nb(Qe),$t),Ar=Qt(Nb(vt),$t);if(Hn.length!==Ar.length)return 0;let bn=-1;for(let mr of Hn){let Gr=e0(vt,mr.escapedName);if(!Gr)return 0;let Fi=nye(mr,Gr,hr);if(!Fi)return 0;bn&=Fi}return bn}function lo(Qe,vt,$t,Hn,Ar){var bn,mr;if(c===np)return ca(Qe,vt,$t);if(vt===tn||Qe===tn)return-1;let Gr=Qe.symbol&&$_(Qe.symbol.valueDeclaration),Fi=vt.symbol&&$_(vt.symbol.valueDeclaration),Oo=Jo(Qe,Gr&&$t===1?0:$t),pa=Jo(vt,Fi&&$t===1?0:$t);if($t===1&&Oo.length&&pa.length){let Is=!!(Oo[0].flags&4),us=!!(pa[0].flags&4);if(Is&&!us)return Hn&&fo(f.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!m_(Oo[0],pa[0],Hn))return 0}let fa=-1,Ei=$t===1?Gi:Zr,ko=Lr(Qe),Aa=Lr(vt);if(ko&64&&Aa&64&&Qe.symbol===vt.symbol||ko&4&&Aa&4&&Qe.target===vt.target){x.assertEqual(Oo.length,pa.length);for(let Is=0;IsNh(yy,void 0,262144,$t);return fo(f.Type_0_is_not_assignable_to_type_1,Bh(us),Bh(Cc)),fo(f.Types_of_construct_signatures_are_incompatible),fa}}else e:for(let Is of pa){let us=Ro(),Cc=Hn;for(let Bh of Oo){let yy=co(Bh,Is,!0,Cc,Ar,Ei(Bh,Is));if(yy){fa&=yy,$n(us);continue e}Cc=!1}return Cc&&fo(f.Type_0_provides_no_match_for_the_signature_1,Vn(Qe),Nh(Is,void 0,void 0,$t)),0}return fa}function An(Qe,vt){let $t=n5(Qe,0),Hn=n5(Qe,1),Ar=Nb(Qe);return($t.length||Hn.length)&&!Ar.length?!!(Jo(vt,0).length&&$t.length||Jo(vt,1).length&&Hn.length):!0}function Zr(Qe,vt){return Qe.parameters.length===0&&vt.parameters.length===0?($t,Hn)=>bo(f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Vn($t),Vn(Hn)):($t,Hn)=>bo(f.Call_signature_return_types_0_and_1_are_incompatible,Vn($t),Vn(Hn))}function Gi(Qe,vt){return Qe.parameters.length===0&&vt.parameters.length===0?($t,Hn)=>bo(f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Vn($t),Vn(Hn)):($t,Hn)=>bo(f.Construct_signature_return_types_0_and_1_are_incompatible,Vn($t),Vn(Hn))}function co(Qe,vt,$t,Hn,Ar,bn){let mr=c===Ih?16:c===Mf?24:0;return Xge($t?g8(Qe):Qe,$t?g8(vt):vt,mr,Hn,fo,bn,Gr,dd);function Gr(Fi,Oo,pa){return hr(Fi,Oo,3,pa,void 0,Ar)}}function ca(Qe,vt,$t){let Hn=Jo(Qe,$t),Ar=Jo(vt,$t);if(Hn.length!==Ar.length)return 0;let bn=-1;for(let mr=0;mrFi.keyType===Ne),Gr=-1;for(let Fi of bn){let Oo=c!==Mf&&!$t&&mr&&Fi.type.flags&1?-1:ju(Qe)&&mr?hr(ly(Qe),Fi.type,3,Hn):Dc(Qe,Fi,Hn,Ar);if(!Oo)return 0;Gr&=Oo}return Gr}function Dc(Qe,vt,$t,Hn){let Ar=m8(Qe,vt.keyType);return Ar?Dl(Ar,vt,$t,Hn):!(Hn&1)&&(c!==Mf||Lr(Qe)&8192)&&$Z(Qe)?vc(Qe,vt,$t,Hn):($t&&fo(f.Index_signature_for_type_0_is_missing_in_type_1,Vn(vt.keyType),Vn(Qe)),0)}function js(Qe,vt){let $t=_u(Qe),Hn=_u(vt);if($t.length!==Hn.length)return 0;for(let Ar of Hn){let bn=vg(Qe,Ar.keyType);if(!(bn&&hr(bn.type,Ar.type,3)&&bn.isReadonly===Ar.isReadonly))return 0}return-1}function m_(Qe,vt,$t){if(!Qe.declaration||!vt.declaration)return!0;let Hn=PI(Qe.declaration,6),Ar=PI(vt.declaration,6);return Ar===2||Ar===4&&Hn!==2||Ar!==4&&!Hn?!0:($t&&fo(f.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,NA(Hn),NA(Ar)),!1)}}function Qge(n){if(n.flags&16)return!1;if(n.flags&3145728)return!!gn(n.types,Qge);if(n.flags&465829888){let a=kA(n);if(a&&a!==n)return Qge(a)}return u_(n)||!!(n.flags&134217728)||!!(n.flags&268435456)}function XOe(n,a){return wa(n)&&wa(a)?Xe:ms(a).filter(c=>zZ(Ue(n,c.escapedName),sr(c)))}function zZ(n,a){return!!n&&!!a&&Rl(n,32768)&&!!N8(a)}function Nlt(n){return ms(n).filter(a=>N8(sr(a)))}function YOe(n,a,c=Jge){return m4e(n,a,c)||Wgt(n,a)||Fgt(n,a)||zgt(n,a)||Bgt(n,a)}function Zge(n,a,c){let u=n.types,_=u.map(T=>T.flags&402784252?0:-1);for(let[T,P]of a){let W=!1;for(let V=0;V_[P]),0):n;return g.flags&131072?n:g}function $Oe(n){if(n.flags&524288){let a=l_(n);return a.callSignatures.length===0&&a.constructSignatures.length===0&&a.indexInfos.length===0&&a.properties.length>0&&oo(a.properties,c=>!!(c.flags&16777216))}return n.flags&2097152?oo(n.types,$Oe):!1}function Plt(n,a,c){for(let u of ms(n))if(Yye(a,u.escapedName,c))return!0;return!1}function eye(n){return n===Xo||n===Zo||n.objectFlags&8?Y:ZOe(n.symbol,n.typeParameters)}function QOe(n){return ZOe(n,qi(n).typeParameters)}function ZOe(n,a=Xe){var c,u;let _=qi(n);if(!_.variances){(c=rr)==null||c.push(rr.Phase.CheckTypes,"getVariancesWorker",{arity:a.length,id:hu(Xs(n))});let g=kE;kE||(kE=!0,w1=fd.length),_.variances=Xe;let T=[];for(let P of a){let W=tye(P),V=W&16384?W&8192?0:1:W&8192?2:void 0;if(V===void 0){let te=!1,ye=!1,_e=la;la=At=>At?ye=!0:te=!0;let je=g5(n,P,Ep),mt=g5(n,P,Rs);V=(ya(mt,je)?1:0)|(ya(je,mt)?2:0),V===3&&ya(g5(n,P,Ac),je)&&(V=4),la=_e,(te||ye)&&(te&&(V|=8),ye&&(V|=16))}T.push(V)}g||(kE=!1,w1=0),_.variances=T,(u=rr)==null||u.pop({variances:T.map(x.formatVariance)})}return _.variances}function g5(n,a,c){let u=OS(a,c),_=Xs(n);if(Vt(_))return _;let g=n.flags&524288?cC(n,dv(qi(n).typeParameters,u)):sv(_,dv(_.typeParameters,u));return ct.add(hu(g)),g}function BZ(n){return ct.has(hu(n))}function tye(n){var a;return tu((a=n.symbol)==null?void 0:a.declarations,(c,u)=>c|lu(u),0)&28672}function Mlt(n,a){for(let c=0;c!!(a.flags&262144)||GZ(a))}function wlt(n,a,c,u){let _=[],g="",T=W(n,0),P=W(a,0);return`${g}${T},${P}${c}`;function W(V,te=0){let ye=""+V.target.id;for(let _e of Vs(V)){if(_e.flags&262144){if(u||Llt(_e)){let je=_.indexOf(_e);je<0&&(je=_.length,_.push(_e)),ye+="="+je;continue}g="*"}else if(te<4&&GZ(_e)){ye+="<"+W(_e,te+1)+">";continue}ye+="-"+_e.id}return ye}}function VZ(n,a,c,u,_){if(u===np&&n.id>a.id){let T=n;n=a,a=T}let g=c?":"+c:"";return GZ(n)&&GZ(a)?wlt(n,a,g,_):`${n.id},${a.id}${g}`}function y5(n,a){if(Tl(n)&6){for(let c of n.links.containingType.types){let u=ha(c,n.escapedName),_=u&&y5(u,a);if(_)return _}return}return a(n)}function dx(n){return n.parent&&n.parent.flags&32?Xs(Ru(n)):void 0}function jZ(n){let a=dx(n),c=a&&Dp(a)[0];return c&&Ue(c,n.escapedName)}function Olt(n,a){return y5(n,c=>{let u=dx(c);return u?rC(u,a):!1})}function Wlt(n,a){return!y5(a,c=>Tf(c)&4?!Olt(n,dx(c)):!1)}function e8e(n,a,c){return y5(a,u=>Tf(u,c)&4?!rC(n,dx(u)):!1)?void 0:n}function zM(n,a,c,u=3){if(c>=u){if((Lr(n)&96)===96&&(n=t8e(n)),n.flags&2097152)return gt(n.types,P=>zM(P,a,c,u));let _=UZ(n),g=0,T=0;for(let P=0;P=T&&(g++,g>=u))return!0;T=W.id}}}return!1}function t8e(n){let a;for(;(Lr(n)&96)===96&&(a=LA(n))&&(a.symbol||a.flags&2097152&>(a.types,c=>!!c.symbol));)n=a;return n}function n8e(n,a){return(Lr(n)&96)===96&&(n=t8e(n)),n.flags&2097152?gt(n.types,c=>n8e(c,a)):UZ(n)===a}function UZ(n){if(n.flags&524288&&!vye(n)){if(Lr(n)&4&&n.node)return n.node;if(n.symbol&&!(Lr(n)&16&&n.symbol.flags&32))return n.symbol;if(wa(n))return n.target}if(n.flags&262144)return n.symbol;if(n.flags&8388608){do n=n.objectType;while(n.flags&8388608);return n}return n.flags&16777216?n.root:n}function Flt(n,a){return nye(n,a,I8)!==0}function nye(n,a,c){if(n===a)return-1;let u=Tf(n)&6,_=Tf(a)&6;if(u!==_)return 0;if(u){if(TC(n)!==TC(a))return 0}else if((n.flags&16777216)!==(a.flags&16777216))return 0;return f_(n)!==f_(a)?0:c(sr(n),sr(a))}function zlt(n,a,c){let u=Kp(n),_=Kp(a),g=Q_(n),T=Q_(a),P=zh(n),W=zh(a);return!!(u===_&&g===T&&P===W||c&&g<=T)}function v5(n,a,c,u,_,g){if(n===a)return-1;if(!zlt(n,a,c)||Nn(n.typeParameters)!==Nn(a.typeParameters))return 0;if(a.typeParameters){let W=Np(n.typeParameters,a.typeParameters);for(let V=0;Va|(c.flags&1048576?r8e(c.types):c.flags),0)}function Vlt(n){if(n.length===1)return n[0];let a=J?Pc(n,u=>cc(u,_=>!(_.flags&98304))):n,c=Glt(a)?ei(a):tu(a,(u,_)=>Ob(u,_)?_:u);return a===n?c:S5(c,r8e(n)&98304)}function jlt(n){return tu(n,(a,c)=>Ob(c,a)?c:a)}function Gf(n){return!!(Lr(n)&4)&&(n.target===Xo||n.target===Zo)}function BM(n){return!!(Lr(n)&4)&&n.target===Zo}function a0(n){return Gf(n)||wa(n)}function b5(n){return Gf(n)&&!BM(n)||wa(n)&&!n.target.readonly}function E5(n){return Gf(n)?Vs(n)[0]:void 0}function uv(n){return Gf(n)||!(n.flags&98304)&&ya(n,lf)}function rye(n){return b5(n)||!(n.flags&98305)&&ya(n,Zl)}function iye(n){if(!(Lr(n)&4)||!(Lr(n.target)&3))return;if(Lr(n)&33554432)return Lr(n)&67108864?n.cachedEquivalentBaseType:void 0;n.objectFlags|=33554432;let a=n.target;if(Lr(a)&1){let _=Es(a);if(_&&_.expression.kind!==80&&_.expression.kind!==211)return}let c=Dp(a);if(c.length!==1||Cb(n.symbol).size)return;let u=Nn(a.typeParameters)?io(c[0],Np(a.typeParameters,Vs(n).slice(0,a.typeParameters.length))):c[0];return Nn(Vs(n))>Nn(a.typeParameters)&&(u=Up(u,Ja(Vs(n)))),n.objectFlags|=67108864,n.cachedEquivalentBaseType=u}function i8e(n){return J?n===Pi:n===Nt}function HZ(n){let a=E5(n);return!!a&&i8e(a)}function GM(n){let a;return wa(n)||!!ha(n,"0")||uv(n)&&!!(a=Ue(n,"length"))&&ap(a,c=>!!(c.flags&256))}function KZ(n){return uv(n)||GM(n)}function Ult(n,a){let c=Ue(n,""+a);if(c)return c;if(ap(n,wa))return l8e(n,a,B.noUncheckedIndexedAccess?Me:void 0)}function Hlt(n){return!(n.flags&240544)}function u_(n){return!!(n.flags&109472)}function o8e(n){let a=cy(n);return a.flags&2097152?gt(a.types,u_):u_(a)}function Klt(n){return n.flags&2097152&&Vr(n.types,u_)||n}function D8(n){return n.flags&16?!0:n.flags&1048576?n.flags&1024?!0:oo(n.types,u_):u_(n)}function my(n){return n.flags&1056?pZ(n):n.flags&402653312?Ne:n.flags&256?It:n.flags&2048?Dt:n.flags&512?gi:n.flags&1048576?Jlt(n):n}function Jlt(n){let a=`B${hu(n)}`;return V1(a)??lb(a,ll(n,my))}function oye(n){return n.flags&402653312?Ne:n.flags&288?It:n.flags&2048?Dt:n.flags&512?gi:n.flags&1048576?ll(n,oye):n}function FS(n){return n.flags&1056&&wS(n)?pZ(n):n.flags&128&&wS(n)?Ne:n.flags&256&&wS(n)?It:n.flags&2048&&wS(n)?Dt:n.flags&512&&wS(n)?gi:n.flags&1048576?ll(n,FS):n}function a8e(n){return n.flags&8192?xi:n.flags&1048576?ll(n,a8e):n}function aye(n,a){return Oee(n,a)||(n=a8e(FS(n))),gu(n)}function qlt(n,a,c){if(n&&u_(n)){let u=a?c?U8(a):a:void 0;n=aye(n,u)}return n}function sye(n,a,c,u){if(n&&u_(n)){let _=a?jS(c,a,u):void 0;n=aye(n,_)}return n}function wa(n){return!!(Lr(n)&4&&n.target.objectFlags&8)}function Fb(n){return wa(n)&&!!(n.target.combinedFlags&8)}function s8e(n){return Fb(n)&&n.target.elementFlags.length===1}function JZ(n){return VM(n,n.target.fixedLength)}function l8e(n,a,c){return ll(n,u=>{let _=u,g=JZ(_);return g?c&&a>=Dge(_.target)?ei([g,c]):g:Me})}function Xlt(n){let a=JZ(n);return a&&Bd(a)}function VM(n,a,c=0,u=!1,_=!1){let g=lv(n)-c;if(a(c&12)===(a.target.elementFlags[u]&12))}function c8e({value:n}){return n.base10Value==="0"}function d8e(n){return cc(n,a=>dm(a,4194304))}function $lt(n){return ll(n,Qlt)}function Qlt(n){return n.flags&4?Yo:n.flags&8?Ha:n.flags&64?$d:n===En||n===Ut||n.flags&114691||n.flags&128&&n.value===""||n.flags&256&&n.value===0||n.flags&2048&&c8e(n)?n:Fr}function S5(n,a){let c=a&~n.flags&98304;return c===0?n:ei(c===32768?[n,Me]:c===65536?[n,ue]:[n,Me,ue])}function zb(n,a=!1){x.assert(J);let c=a?ie:Me;return n===c||n.flags&1048576&&n.types[0]===c?n:ei([n,c])}function Zlt(n){return Fu||(Fu=OM("NonNullable",524288,void 0)||lt),Fu!==lt?cC(Fu,[n]):ga([n,Ca])}function _y(n){return J?JA(n,2097152):n}function u8e(n){return J?ei([n,H]):n}function qZ(n){return J?aee(n,H):n}function XZ(n,a,c){return c?tN(a)?zb(n):u8e(n):n}function C8(n,a){return aF(a)?_y(n):Ud(a)?qZ(n):n}function Bb(n,a){return Ae&&a?aee(n,k):n}function N8(n){return n===k||!!(n.flags&1048576)&&n.types[0]===k}function YZ(n){return Ae?aee(n,k):um(n,524288)}function ect(n,a){return(n.flags&524)!==0&&(a.flags&28)!==0}function $Z(n){let a=Lr(n);return n.flags&2097152?oo(n.types,$Z):!!(n.symbol&&n.symbol.flags&7040&&!(n.symbol.flags&32)&&!Qee(n))||!!(a&4194304)||!!(a&1024&&$Z(n.source))}function UA(n,a){let c=Ka(n.flags,n.escapedName,Tl(n)&8);c.declarations=n.declarations,c.parent=n.parent,c.links.type=a,c.links.target=n,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration);let u=qi(n).nameType;return u&&(c.links.nameType=u),c}function tct(n,a){let c=aa();for(let u of Nb(n)){let _=sr(u),g=a(_);c.set(u.escapedName,g===_?u:UA(u,g))}return c}function P8(n){if(!(c0(n)&&Lr(n)&8192))return n;let a=n.regularType;if(a)return a;let c=n,u=tct(n,P8),_=Ds(c.symbol,u,c.callSignatures,c.constructSignatures,c.indexInfos);return _.flags=c.flags,_.objectFlags|=c.objectFlags&-8193,n.regularType=_,_}function p8e(n,a,c){return{parent:n,propertyName:a,siblings:c,resolvedProperties:void 0}}function f8e(n){if(!n.siblings){let a=[];for(let c of f8e(n.parent))if(c0(c)){let u=e0(c,n.propertyName);u&&qA(sr(u),_=>{a.push(_)})}n.siblings=a}return n.siblings}function nct(n){if(!n.resolvedProperties){let a=new Map;for(let c of f8e(n))if(c0(c)&&!(Lr(c)&2097152))for(let u of ms(c))a.set(u.escapedName,u);n.resolvedProperties=Wo(a.values())}return n.resolvedProperties}function rct(n,a){if(!(n.flags&4))return n;let c=sr(n),u=a&&p8e(a,n.escapedName,void 0),_=lye(c,u);return _===c?n:UA(n,_)}function ict(n){let a=Be.get(n.escapedName);if(a)return a;let c=UA(n,ie);return c.flags|=16777216,Be.set(n.escapedName,c),c}function oct(n,a){let c=aa();for(let _ of Nb(n))c.set(_.escapedName,rct(_,a));if(a)for(let _ of nct(a))c.has(_.escapedName)||c.set(_.escapedName,ict(_));let u=Ds(n.symbol,c,Xe,Xe,Pc(_u(n),_=>Oh(_.keyType,Hp(_.type),_.isReadonly)));return u.objectFlags|=Lr(n)&266240,u}function Hp(n){return lye(n,void 0)}function lye(n,a){if(Lr(n)&196608){if(a===void 0&&n.widened)return n.widened;let c;if(n.flags&98305)c=G;else if(c0(n))c=oct(n,a);else if(n.flags&1048576){let u=a||p8e(void 0,void 0,n.types),_=Pc(n.types,g=>g.flags&98304?g:lye(g,u));c=ei(_,gt(_,fy)?2:1)}else n.flags&2097152?c=ga(Pc(n.types,Hp)):a0(n)&&(c=sv(n.target,Pc(Vs(n),Hp)));return c&&a===void 0&&(n.widened=c),c||n}return n}function QZ(n){let a=!1;if(Lr(n)&65536){if(n.flags&1048576)if(gt(n.types,fy))a=!0;else for(let c of n.types)QZ(c)&&(a=!0);if(a0(n))for(let c of Vs(n))QZ(c)&&(a=!0);if(c0(n))for(let c of Nb(n)){let u=sr(c);Lr(u)&65536&&(QZ(u)||Ve(c.valueDeclaration,f.Object_literal_s_property_0_implicitly_has_an_1_type,Si(c),Vn(Hp(u))),a=!0)}}return a}function s0(n,a,c){let u=Vn(Hp(a));if(ir(n)&&!ck(Gn(n),B))return;let _;switch(n.kind){case 226:case 172:case 171:_=fe?f.Member_0_implicitly_has_an_1_type:f.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:let g=n;if(Fe(g.name)){let T=eE(g.name);if((XI(g.parent)||_h(g.parent)||hh(g.parent))&&g.parent.parameters.includes(g)&&(hl(g,g.name.escapedText,788968,void 0,g.name.escapedText,!0)||T&&eU(T))){let P="arg"+g.parent.parameters.indexOf(g),W=Ts(g.name)+(g.dotDotDotToken?"[]":"");md(fe,n,f.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,P,W);return}}_=n.dotDotDotToken?fe?f.Rest_parameter_0_implicitly_has_an_any_type:f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:fe?f.Parameter_0_implicitly_has_an_1_type:f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(_=f.Binding_element_0_implicitly_has_an_1_type,!fe)return;break;case 324:Ve(n,f.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,u);return;case 330:fe&&wR(n.parent)&&Ve(n.parent.tagName,f.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,u);return;case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(fe&&!n.name){c===3?Ve(n,f.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,u):Ve(n,f.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,u);return}_=fe?c===3?f._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:f._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:fe&&Ve(n,f.Mapped_object_type_implicitly_has_an_any_template_type);return;default:_=fe?f.Variable_0_implicitly_has_an_1_type:f.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}md(fe,n,_,Ts(Po(n)),u)}function ZZ(n,a,c){r(()=>{fe&&Lr(a)&65536&&(!c||!Uye(n))&&(QZ(a)||s0(n,a,c))})}function cye(n,a,c){let u=Kp(n),_=Kp(a),g=z8(n),T=z8(a),P=T?_-1:_,W=g?P:Math.min(u,P),V=n0(n);if(V){let te=n0(a);te&&c(V,te)}for(let te=0;tea.typeParameter),mn(n.inferences,(a,c)=>()=>(a.isFixed||(cct(n),eee(n.inferences),a.isFixed=!0),bye(n,c))))}function lct(n){return Vge(mn(n.inferences,a=>a.typeParameter),mn(n.inferences,(a,c)=>()=>bye(n,c)))}function eee(n){for(let a of n)a.isFixed||(a.inferredType=void 0)}function pye(n,a,c){(n.intraExpressionInferenceSites??(n.intraExpressionInferenceSites=[])).push({node:a,type:c})}function cct(n){if(n.intraExpressionInferenceSites){for(let{node:a,type:c}of n.intraExpressionInferenceSites){let u=a.kind===174?lWe(a,2):Hu(a,2);u&&hy(n.inferences,c,u)}n.intraExpressionInferenceSites=void 0}}function fye(n){return{typeParameter:n,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function m8e(n){return{typeParameter:n.typeParameter,candidates:n.candidates&&n.candidates.slice(),contraCandidates:n.contraCandidates&&n.contraCandidates.slice(),inferredType:n.inferredType,priority:n.priority,topLevel:n.topLevel,isFixed:n.isFixed,impliedArity:n.impliedArity}}function dct(n){let a=jr(n.inferences,EC);return a.length?uye(mn(a,m8e),n.signature,n.flags,n.compareTypes):void 0}function mye(n){return n&&n.mapper}function l0(n){let a=Lr(n);if(a&524288)return!!(a&1048576);let c=!!(n.flags&465829888||n.flags&524288&&!_8e(n)&&(a&4&&(n.node||gt(Vs(n),l0))||a&16&&n.symbol&&n.symbol.flags&14384&&n.symbol.declarations||a&12583968)||n.flags&3145728&&!(n.flags&1024)&&!_8e(n)&>(n.types,l0));return n.flags&3899393&&(n.objectFlags|=524288|(c?1048576:0)),c}function _8e(n){if(n.aliasSymbol&&!n.aliasTypeArguments){let a=cl(n.aliasSymbol,265);return!!(a&&Fn(a.parent,c=>c.kind===312?!0:c.kind===267?!1:"quit"))}return!1}function L8(n,a,c=0){return!!(n===a||n.flags&3145728&>(n.types,u=>L8(u,a,c))||c<3&&n.flags&16777216&&(L8(r0(n),a,c+1)||L8(i0(n),a,c+1)))}function uct(n,a){let c=Ff(n);return c?!!c.type&&L8(c.type,a):L8(ds(n),a)}function pct(n){let a=aa();qA(n,u=>{if(!(u.flags&128))return;let _=pl(u.value),g=Ka(4,_);g.links.type=G,u.symbol&&(g.declarations=u.symbol.declarations,g.valueDeclaration=u.symbol.valueDeclaration),a.set(_,g)});let c=n.flags&4?[Oh(Ne,Ca,!1)]:Xe;return Ds(void 0,a,Xe,Xe,c)}function h8e(n,a,c){let u=n.id+","+a.id+","+c.id;if(Kc.has(u))return Kc.get(u);let _=n.id+","+(a.target||a).id;if(Bo(tp,_))return;tp.push(_);let g=fct(n,a,c);return tp.pop(),Kc.set(u,g),g}function _ye(n){return!(Lr(n)&262144)||c0(n)&>(ms(n),a=>_ye(sr(a)))||wa(n)&>(LS(n),_ye)}function fct(n,a,c){if(!(vg(n,Ne)||ms(n).length!==0&&_ye(n)))return;if(Gf(n))return Bd(tee(Vs(n)[0],a,c),BM(n));if(wa(n)){let _=mn(LS(n),T=>tee(T,a,c)),g=kh(a)&4?Pc(n.target.elementFlags,T=>T&2?1:T):n.target.elementFlags;return Wh(_,g,n.target.readonly,n.target.labeledElementDeclarations)}let u=kf(1040,void 0);return u.source=n,u.mappedType=a,u.constraintType=c,u}function mct(n){let a=qi(n);return a.type||(a.type=tee(n.links.propertyType,n.links.mappedType,n.links.constraintType)),a.type}function tee(n,a,c){let u=Cp(c.type,s_(a)),_=ly(a),g=fye(u);return hy([g],n,_),g8e(g)||un}function*hye(n,a,c,u){let _=ms(a);for(let g of _)if(!awe(g)&&(c||!(g.flags&16777216||Tl(g)&48))){let T=ha(n,g.escapedName);if(!T)yield g;else if(u){let P=sr(g);if(P.flags&109472){let W=sr(T);W.flags&1||gu(W)===gu(P)||(yield g)}}}}function gye(n,a,c,u){return mW(hye(n,a,c,u))}function _ct(n,a){return!(a.target.combinedFlags&8)&&a.target.minLength>n.target.minLength||!a.target.hasRestElement&&(n.target.hasRestElement||a.target.fixedLengthsx(g,_),n)===n&&nee(n,a)}return!1}function b8e(n,a){if(a.flags&2097152)return oo(a.types,c=>c===ac||b8e(n,c));if(a.flags&4||ya(n,a))return!0;if(n.flags&128){let c=n.value;return!!(a.flags&8&&v8e(c,!1)||a.flags&64&&F6(c,!1)||a.flags&98816&&c===a.intrinsicName||a.flags&268435456&&nee(Uu(c),a)||a.flags&134217728&&ree(n,a))}if(n.flags&134217728){let c=n.texts;return c.length===2&&c[0]===""&&c[1]===""&&ya(n.types[0],a)}return!1}function E8e(n,a){return n.flags&128?S8e([n.value],Xe,a):n.flags&134217728?bL(n.texts,a.texts)?mn(n.types,vct):S8e(n.texts,n.types,a):void 0}function ree(n,a){let c=E8e(n,a);return!!c&&oo(c,(u,_)=>b8e(u,a.types[_]))}function vct(n){return n.flags&402653317?n:FA(["",""],[n])}function S8e(n,a,c){let u=n.length-1,_=n[0],g=n[u],T=c.texts,P=T.length-1,W=T[0],V=T[P];if(u===0&&_.length0){let nr=_e,Mn=je;for(;Mn=mt(nr).indexOf(sn,Mn),!(Mn>=0);){if(nr++,nr===n.length)return;Mn=0}At(nr,Mn),je+=sn.length}else if(je!Bo(hr,is)):Pn,Co?jr(Xn,is=>!Bo(Co,is)):Xn]}function nr(Pn,Xn,ro){let hr=Pn.length!!On(Co));if(!hr||Xn&&hr!==Xn)return;Xn=hr}return Xn}function Yn(Pn,Xn,ro){let hr=0;if(ro&1048576){let Co,is=Pn.flags&1048576?Pn.types:[Pn],vs=new Array(is.length),Gd=!1;for(let Oa of Xn)if(On(Oa))Co=Oa,hr++;else for(let Pu=0;Puvs[Ol]?void 0:Pu);if(Oa.length){_e(ei(Oa),Co);return}}}else for(let Co of Xn)On(Co)?hr++:_e(Pn,Co);if(ro&2097152?hr===1:hr>0)for(let Co of Xn)On(Co)&&je(Pn,Co,1)}function jn(Pn,Xn,ro){if(ro.flags&1048576||ro.flags&2097152){let hr=!1;for(let Co of ro.types)hr=jn(Pn,Xn,Co)||hr;return hr}if(ro.flags&4194304){let hr=On(ro.type);if(hr&&!hr.isFixed&&!y8e(Pn)){let Co=h8e(Pn,Xn,ro);Co&&je(Co,hr.typeParameter,Lr(Pn)&262144?16:8)}return!0}if(ro.flags&262144){je(J_(Pn,Pn.pattern?2:0),ro,32);let hr=kA(ro);if(hr&&jn(Pn,Xn,hr))return!0;let Co=mn(ms(Pn),sr),is=mn(_u(Pn),vs=>vs!==zr?vs.type:Fr);return _e(ei(Eo(Co,is)),ly(Xn)),!0}return!1}function $n(Pn,Xn){if(Pn.flags&16777216)_e(Pn.checkType,Xn.checkType),_e(Pn.extendsType,Xn.extendsType),_e(r0(Pn),r0(Xn)),_e(i0(Pn),i0(Xn));else{let ro=[r0(Xn),i0(Xn)];At(Pn,ro,Xn.flags,_?64:0)}}function Ro(Pn,Xn){let ro=E8e(Pn,Xn),hr=Xn.types;if(ro||oo(Xn.texts,Co=>Co.length===0))for(let Co=0;Cogl|ot.flags,0);if(!(Ol&4)){let gl=is.value;Ol&296&&!v8e(gl,!0)&&(Ol&=-297),Ol&2112&&!F6(gl,!0)&&(Ol&=-2113);let ot=tu(Pu,(Se,Cn)=>Cn.flags&Ol?Se.flags&4?Se:Cn.flags&4?is:Se.flags&134217728?Se:Cn.flags&134217728&&ree(is,Cn)?is:Se.flags&268435456?Se:Cn.flags&268435456&&gl===yOe(Cn.symbol,gl)?is:Se.flags&128?Se:Cn.flags&128&&Cn.value===gl?Cn:Se.flags&8?Se:Cn.flags&8?d_(+gl):Se.flags&32?Se:Cn.flags&32?d_(+gl):Se.flags&256?Se:Cn.flags&256&&Cn.value===+gl?Cn:Se.flags&64?Se:Cn.flags&64?yct(gl):Se.flags&2048?Se:Cn.flags&2048&&W0(Cn.value)===gl?Cn:Se.flags&16?Se:Cn.flags&16?gl==="true"?wn:gl==="false"?Ut:gi:Se.flags&512?Se:Cn.flags&512&&Cn.intrinsicName===gl?Cn:Se.flags&32768?Se:Cn.flags&32768&&Cn.intrinsicName===gl?Cn:Se.flags&65536?Se:Cn.flags&65536&&Cn.intrinsicName===gl?Cn:Se:Se,Fr);if(!(ot.flags&131072)){_e(ot,vs);continue}}}}_e(is,vs)}}function bo(Pn,Xn){_e(hf(Pn),hf(Xn)),_e(ly(Pn),ly(Xn));let ro=av(Pn),hr=av(Xn);ro&&hr&&_e(ro,hr)}function Fo(Pn,Xn){var ro,hr;if(Lr(Pn)&4&&Lr(Xn)&4&&(Pn.target===Xn.target||Gf(Pn)&&Gf(Xn))){nr(Vs(Pn),Vs(Xn),eye(Pn.target));return}if(ju(Pn)&&ju(Xn)&&bo(Pn,Xn),Lr(Xn)&32&&!Xn.declaration.nameType){let Co=hf(Xn);if(jn(Pn,Xn,Co))return}if(!hct(Pn,Xn)){if(a0(Pn)){if(wa(Xn)){let Co=lv(Pn),is=lv(Xn),vs=Vs(Xn),Gd=Xn.target.elementFlags;if(wa(Pn)&&Ylt(Pn,Xn)){for(let Ol=0;Ol0){let is=Jo(Xn,ro),vs=is.length;for(let Gd=0;Gd1){let a=jr(n,vye);if(a.length){let c=ei(a,2);return Eo(jr(n,u=>!vye(u)),[c])}}return n}function Act(n){return n.priority&416?ga(n.contraCandidates):jlt(n.contraCandidates)}function Ict(n,a){let c=Tct(n.candidates),u=Sct(n.typeParameter)||wA(n.typeParameter),_=!u&&n.topLevel&&(n.isFixed||!uct(a,n.typeParameter)),g=u?Pc(c,gu):_?Pc(c,FS):c,T=n.priority&416?ei(g,2):Vlt(g);return Hp(T)}function bye(n,a){let c=n.inferences[a];if(!c.inferredType){let u,_;if(n.signature){let T=c.candidates?Ict(c,n.signature):void 0,P=c.contraCandidates?Act(c):void 0;if(T||P){let W=T&&(!P||!(T.flags&131072)&>(c.contraCandidates,V=>Ob(T,V))&&oo(n.inferences,V=>V!==c&&Cu(V.typeParameter)!==c.typeParameter||oo(V.candidates,te=>Ob(te,T))));u=W?T:P,_=W?P:T}else if(n.flags&1)u=go;else{let W=OA(c.typeParameter);W&&(u=io(W,nlt(tlt(n,a),n.nonFixingMapper)))}}else u=g8e(c);c.inferredType=u||Eye(!!(n.flags&2));let g=Cu(c.typeParameter);if(g){let T=io(g,n.nonFixingMapper);(!u||!n.compareTypes(u,Up(T,u)))&&(c.inferredType=_&&n.compareTypes(_,Up(T,_))?_:T)}}return c.inferredType}function Eye(n){return n?G:un}function Sye(n){let a=[];for(let c=0;cpu(a)||Tm(a)||gp(a)))}function iee(n,a,c,u){switch(n.kind){case 80:if(!NI(n)){let T=Wm(n);return T!==lt?`${u?rs(u):"-1"}|${hu(a)}|${hu(c)}|${ba(T)}`:void 0}case 110:return`0|${u?rs(u):"-1"}|${hu(a)}|${hu(c)}`;case 235:case 217:return iee(n.expression,a,c,u);case 166:let _=iee(n.left,a,c,u);return _&&_+"."+n.right.escapedText;case 211:case 212:let g=HA(n);if(g!==void 0){let T=iee(n.expression,a,c,u);return T&&T+"."+g}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${rs(n)}#${hu(a)}`}}function Ad(n,a){switch(a.kind){case 217:case 235:return Ad(n,a.expression);case 226:return Mc(a)&&Ad(n,a.left)||dr(a)&&a.operatorToken.kind===28&&Ad(n,a.right)}switch(n.kind){case 236:return a.kind===236&&n.keywordToken===a.keywordToken&&n.name.escapedText===a.name.escapedText;case 80:case 81:return NI(n)?a.kind===110:a.kind===80&&Wm(n)===Wm(a)||(wi(a)||Xa(a))&&ff(Wm(n))===Sr(a);case 110:return a.kind===110;case 108:return a.kind===108;case 235:case 217:return Ad(n.expression,a);case 211:case 212:let c=HA(n),u=Ns(a)?HA(a):void 0;return c!==void 0&&u!==void 0&&u===c&&Ad(n.expression,a.expression);case 166:return Ns(a)&&n.right.escapedText===HA(a)&&Ad(n.left,a.expression);case 226:return dr(n)&&n.operatorToken.kind===28&&Ad(n.right,a)}return!1}function HA(n){if(kr(n))return n.name.escapedText;if(Js(n))return xct(n);if(Xa(n)){let a=$a(n);return a?pl(a):void 0}if(Ao(n))return""+n.parent.parameters.indexOf(n)}function Aye(n){return n.flags&8192?n.escapedName:n.flags&384?pl(""+n.value):void 0}function xct(n){return $p(n.argumentExpression)?pl(n.argumentExpression.text):Bl(n.argumentExpression)?Rct(n.argumentExpression):void 0}function Rct(n){let a=Bs(n,111551,!0);if(!a||!(JM(a)||a.flags&8))return;let c=a.valueDeclaration;if(c===void 0)return;let u=eo(c);if(u){let _=Aye(u);if(_!==void 0)return _}if(dT(c)&&Qg(c,n)){let _=D2(c);if(_){let g=Qo(c.parent)?K_(c):xd(_);return g&&Aye(g)}if(Y0(c))return Ux(c.name)}}function A8e(n,a){for(;Ns(n);)if(n=n.expression,Ad(n,a))return!0;return!1}function KA(n,a){for(;Ud(n);)if(n=n.expression,Ad(n,a))return!0;return!1}function jM(n,a){if(n&&n.flags&1048576){let c=Iwe(n,a);if(c&&Tl(c)&2)return c.links.isDiscriminantProperty===void 0&&(c.links.isDiscriminantProperty=(c.links.checkFlags&192)===192&&!pC(sr(c))),!!c.links.isDiscriminantProperty}return!1}function I8e(n,a){let c;for(let u of n)if(jM(a,u.escapedName)){if(c){c.push(u);continue}c=[u]}return c}function Dct(n,a){let c=new Map,u=0;for(let _ of n)if(_.flags&61603840){let g=Ue(_,a);if(g){if(!D8(g))return;let T=!1;qA(g,P=>{let W=hu(gu(P)),V=c.get(W);V?V!==un&&(c.set(W,un),T=!0):c.set(W,_)}),T||u++}}return u>=10&&u*2>=n.length?c:void 0}function T5(n){let a=n.types;if(!(a.length<10||Lr(n)&32768||yv(a,c=>!!(c.flags&59506688))<10)){if(n.keyPropertyName===void 0){let c=gn(a,_=>_.flags&59506688?gn(ms(_),g=>u_(sr(g))?g.escapedName:void 0):void 0),u=c&&Dct(a,c);n.keyPropertyName=u?c:"",n.constituentMap=u}return n.keyPropertyName.length?n.keyPropertyName:void 0}}function A5(n,a){var c;let u=(c=n.constituentMap)==null?void 0:c.get(hu(gu(a)));return u!==un?u:void 0}function x8e(n,a){let c=T5(n),u=c&&Ue(a,c);return u&&A5(n,u)}function Cct(n,a){let c=T5(n),u=c&&Vr(a.properties,g=>g.symbol&&g.kind===303&&g.symbol.escapedName===c&&M5(g.initializer)),_=u&&eG(u.initializer);return _&&A5(n,_)}function R8e(n,a){return Ad(n,a)||A8e(n,a)}function D8e(n,a){if(n.arguments){for(let c of n.arguments)if(R8e(a,c)||KA(c,a))return!0}return!!(n.expression.kind===211&&R8e(a,n.expression.expression))}function Iye(n){return(!n.id||n.id<0)&&(n.id=Use,Use++),n.id}function Nct(n,a){if(!(n.flags&1048576))return ya(n,a);for(let c of n.types)if(ya(c,a))return!0;return!1}function Pct(n,a){if(n===a)return n;if(a.flags&131072)return a;let c=`A${hu(n)},${hu(a)}`;return V1(c)??lb(c,Mct(n,a))}function Mct(n,a){let c=cc(n,_=>Nct(a,_)),u=a.flags&512&&wS(a)?ll(c,cx):c;return ya(a,u)?u:n}function xye(n){let a=l_(n);return!!(a.callSignatures.length||a.constructSignatures.length||a.members.get("bind")&&Ob(n,Lt))}function UM(n,a){return Rye(n,a)&a}function dm(n,a){return UM(n,a)!==0}function Rye(n,a){n.flags&467927040&&(n=zd(n)||un);let c=n.flags;if(c&268435460)return J?16317953:16776705;if(c&134217856){let u=c&128&&n.value==="";return J?u?12123649:7929345:u?12582401:16776705}if(c&40)return J?16317698:16776450;if(c&256){let u=n.value===0;return J?u?12123394:7929090:u?12582146:16776450}if(c&64)return J?16317188:16775940;if(c&2048){let u=c8e(n);return J?u?12122884:7928580:u?12581636:16775940}return c&16?J?16316168:16774920:c&528?J?n===Ut||n===En?12121864:7927560:n===Ut||n===En?12580616:16774920:c&524288?a&(J?83427327:83886079)?Lr(n)&16&&fy(n)?J?83427327:83886079:xye(n)?J?7880640:16728e3:J?7888800:16736160:0:c&16384?9830144:c&32768?26607360:c&65536?42917664:c&12288?J?7925520:16772880:c&67108864?J?7888800:16736160:c&131072?0:c&1048576?tu(n.types,(u,_)=>u|Rye(_,a),0):c&2097152?Lct(n,a):83886079}function Lct(n,a){let c=Rl(n,402784252),u=0,_=134217727;for(let g of n.types)if(!(c&&g.flags&524288)){let T=Rye(g,a);u|=T,_&=T}return u&8256|_&134209471}function um(n,a){return cc(n,c=>dm(c,a))}function JA(n,a){let c=C8e(um(J&&n.flags&2?al:n,a));if(J)switch(a){case 524288:return ll(c,u=>dm(u,65536)?ga([u,dm(u,131072)&&!Rl(c,65536)?ei([Ca,ue]):Ca]):u);case 1048576:return ll(c,u=>dm(u,131072)?ga([u,dm(u,65536)&&!Rl(c,32768)?ei([Ca,Me]):Ca]):u);case 2097152:case 4194304:return ll(c,u=>dm(u,262144)?Zlt(u):u)}return c}function C8e(n){return n===al?un:n}function Dye(n,a){return a?ei([mi(n),xd(a)]):n}function N8e(n,a){var c;let u=cv(a);if(!Qf(u))return ut;let _=Zf(u);return Ue(n,_)||k8((c=ox(n,_))==null?void 0:c.type)||ut}function P8e(n,a){return ap(n,GM)&&Ult(n,a)||k8(fv(65,n,Me,void 0))||ut}function k8(n){return n&&(B.noUncheckedIndexedAccess?ei([n,k]):n)}function M8e(n){return Bd(fv(65,n,Me,void 0)||ut)}function kct(n){return n.parent.kind===209&&Cye(n.parent)||n.parent.kind===303&&Cye(n.parent.parent)?Dye(I5(n),n.right):xd(n.right)}function Cye(n){return n.parent.kind===226&&n.parent.left===n||n.parent.kind===250&&n.parent.initializer===n}function wct(n,a){return P8e(I5(n),n.elements.indexOf(a))}function Oct(n){return M8e(I5(n.parent))}function L8e(n){return N8e(I5(n.parent),n.name)}function Wct(n){return Dye(L8e(n),n.objectAssignmentInitializer)}function I5(n){let{parent:a}=n;switch(a.kind){case 249:return Ne;case 250:return aG(a)||ut;case 226:return kct(a);case 220:return Me;case 209:return wct(a,n);case 230:return Oct(a);case 303:return L8e(a);case 304:return Wct(a)}return ut}function Fct(n){let a=n.parent,c=w8e(a.parent),u=a.kind===206?N8e(c,n.propertyName||n.name):n.dotDotDotToken?M8e(c):P8e(c,a.elements.indexOf(n));return Dye(u,n.initializer)}function k8e(n){return Qr(n).resolvedType||xd(n)}function zct(n){return n.initializer?k8e(n.initializer):n.parent.parent.kind===249?Ne:n.parent.parent.kind===250&&aG(n.parent.parent)||ut}function w8e(n){return n.kind===260?zct(n):Fct(n)}function Bct(n){return n.kind===260&&n.initializer&&Tb(n.initializer)||n.kind!==208&&n.parent.kind===226&&Tb(n.parent.right)}function zS(n){switch(n.kind){case 217:return zS(n.expression);case 226:switch(n.operatorToken.kind){case 64:case 76:case 77:case 78:return zS(n.left);case 28:return zS(n.right)}}return n}function O8e(n){let{parent:a}=n;return a.kind===217||a.kind===226&&a.operatorToken.kind===64&&a.left===n||a.kind===226&&a.operatorToken.kind===28&&a.right===n?O8e(a):n}function Gct(n){return n.kind===296?gu(xd(n.expression)):Fr}function oee(n){let a=Qr(n);if(!a.switchTypes){a.switchTypes=[];for(let c of n.caseBlock.clauses)a.switchTypes.push(Gct(c))}return a.switchTypes}function W8e(n){if(gt(n.caseBlock.clauses,c=>c.kind===296&&!as(c.expression)))return;let a=[];for(let c of n.caseBlock.clauses){let u=c.kind===296?c.expression.text:void 0;a.push(u&&!Bo(a,u)?u:void 0)}return a}function Vct(n,a){return n.flags&1048576?!gn(n.types,c=>!Bo(a,c)):Bo(a,n)}function HM(n,a){return!!(n===a||n.flags&131072||a.flags&1048576&&jct(n,a))}function jct(n,a){if(n.flags&1048576){for(let c of n.types)if(!dy(a.types,c))return!1;return!0}return n.flags&1056&&pZ(n)===a?!0:dy(a.types,n)}function qA(n,a){return n.flags&1048576?gn(n.types,a):a(n)}function Fm(n,a){return n.flags&1048576?gt(n.types,a):a(n)}function ap(n,a){return n.flags&1048576?oo(n.types,a):a(n)}function Uct(n,a){return n.flags&3145728?oo(n.types,a):a(n)}function cc(n,a){if(n.flags&1048576){let c=n.types,u=jr(c,a);if(u===c)return n;let _=n.origin,g;if(_&&_.flags&1048576){let T=_.types,P=jr(T,W=>!!(W.flags&1048576)||a(W));if(T.length-P.length===c.length-u.length){if(P.length===1)return P[0];g=Cge(1048576,P)}}return Pge(u,n.objectFlags&16809984,void 0,void 0,g)}return n.flags&131072||a(n)?n:Fr}function aee(n,a){return cc(n,c=>c!==a)}function Hct(n){return n.flags&1048576?n.types.length:1}function ll(n,a,c){if(n.flags&131072)return n;if(!(n.flags&1048576))return a(n);let u=n.origin,_=u&&u.flags&1048576?u.types:n.types,g,T=!1;for(let P of _){let W=P.flags&1048576?ll(P,a,c):a(P);T||(T=P!==W),W&&(g?g.push(W):g=[W])}return T?g&&ei(g,c?0:1):n}function F8e(n,a,c,u){return n.flags&1048576&&c?ei(mn(n.types,a),1,c,u):ll(n,a)}function KM(n,a){return cc(n,c=>(c.flags&a)!==0)}function z8e(n,a){return Rl(n,134217804)&&Rl(a,402655616)?ll(n,c=>c.flags&4?KM(a,402653316):zA(c)&&!Rl(a,402653188)?KM(a,128):c.flags&8?KM(a,264):c.flags&64?KM(a,2112):c):n}function _C(n){return n.flags===0}function XA(n){return n.flags===0?n.type:n}function hC(n,a){return a?{flags:0,type:n.flags&131072?go:n}:n}function Kct(n){let a=kf(256);return a.elementType=n,a}function Nye(n){return kn[n.id]||(kn[n.id]=Kct(n))}function B8e(n,a){let c=P8(my(eG(a)));return HM(c,n.elementType)?n:Nye(ei([n.elementType,c]))}function Jct(n){return n.flags&131072?Jc:Bd(n.flags&1048576?ei(n.types,2):n)}function qct(n){return n.finalArrayType||(n.finalArrayType=Jct(n.elementType))}function x5(n){return Lr(n)&256?qct(n):n}function Xct(n){return Lr(n)&256?n.elementType:Fr}function Yct(n){let a=!1;for(let c of n)if(!(c.flags&131072)){if(!(Lr(c)&256))return!1;a=!0}return a}function G8e(n){let a=O8e(n),c=a.parent,u=kr(c)&&(c.name.escapedText==="length"||c.parent.kind===213&&Fe(c.name)&&Dj(c.name)),_=c.kind===212&&c.expression===a&&c.parent.kind===226&&c.parent.operatorToken.kind===64&&c.parent.left===c&&!$h(c.parent)&&Id(xd(c.argumentExpression),296);return u||_}function $ct(n){return(wi(n)||Uo(n)||_p(n)||Ao(n))&&!!(yd(n)||ir(n)&&Mv(n)&&n.initializer&&F0(n.initializer)&&$f(n.initializer))}function see(n,a){if(n=Vl(n),n.flags&8752)return sr(n);if(n.flags&7){if(Tl(n)&262144){let u=n.links.syntheticOrigin;if(u&&see(u))return sr(n)}let c=n.valueDeclaration;if(c){if($ct(c))return sr(n);if(wi(c)&&c.parent.parent.kind===250){let u=c.parent.parent,_=R5(u.expression,void 0);if(_){let g=u.awaitModifier?15:13;return fv(g,_,Me,void 0)}}a&&Pa(a,Pr(c,f._0_needs_an_explicit_type_annotation,Si(n)))}}}function R5(n,a){if(!(n.flags&67108864))switch(n.kind){case 80:let c=ff(Wm(n));return see(c,a);case 110:return ydt(n);case 108:return Wye(n);case 211:{let u=R5(n.expression,a);if(u){let _=n.name,g;if(Ki(_)){if(!u.symbol)return;g=ha(u,K2(u.symbol,_.escapedText))}else g=ha(u,_.escapedText);return g&&see(g,a)}return}case 217:return R5(n.expression,a)}}function D5(n){let a=Qr(n),c=a.effectsSignature;if(c===void 0){let u;if(dr(n)){let T=gC(n.right);u=Dve(T)}else n.parent.kind===244?u=R5(n.expression,void 0):n.expression.kind!==108&&(Ud(n)?u=X_(C8(po(n.expression),n.expression),n.expression):u=gC(n.expression));let _=Jo(u&&Nu(u)||un,0),g=_.length===1&&!_[0].typeParameters?_[0]:gt(_,V8e)?vC(n):void 0;c=a.effectsSignature=g&&V8e(g)?g:cn}return c===cn?void 0:c}function V8e(n){return!!(Ff(n)||n.declaration&&(sC(n.declaration)||un).flags&131072)}function Qct(n,a){if(n.kind===1||n.kind===3)return a.arguments[n.parameterIndex];let c=fs(a.expression);return Ns(c)?fs(c.expression):void 0}function Zct(n){let a=Fn(n,NV),c=Gn(n),u=ph(c,a.statements.pos);Qa.add(Qc(c,u.start,u.length,f.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function C5(n){let a=lee(n,!1);return Pt=n,Bt=a,a}function N5(n){let a=fs(n,!0);return a.kind===97||a.kind===226&&(a.operatorToken.kind===56&&(N5(a.left)||N5(a.right))||a.operatorToken.kind===57&&N5(a.left)&&N5(a.right))}function lee(n,a){for(;;){if(n===Pt)return Bt;let c=n.flags;if(c&4096){if(!a){let u=Iye(n),_=aA[u];return _!==void 0?_:aA[u]=lee(n,!0)}a=!1}if(c&368)n=n.antecedent;else if(c&512){let u=D5(n.node);if(u){let _=Ff(u);if(_&&_.kind===3&&!_.type){let g=n.node.arguments[_.parameterIndex];if(g&&N5(g))return!1}if(ds(u).flags&131072)return!1}n=n.antecedent}else{if(c&4)return gt(n.antecedents,u=>lee(u,!1));if(c&8){let u=n.antecedents;if(u===void 0||u.length===0)return!1;n=u[0]}else if(c&128){if(n.clauseStart===n.clauseEnd&&TFe(n.switchStatement))return!1;n=n.antecedent}else if(c&1024){Pt=void 0;let u=n.target,_=u.antecedents;u.antecedents=n.antecedents;let g=lee(n.antecedent,!1);return u.antecedents=_,g}else return!(c&1)}}}function cee(n,a){for(;;){let c=n.flags;if(c&4096){if(!a){let u=Iye(n),_=G1[u];return _!==void 0?_:G1[u]=cee(n,!0)}a=!1}if(c&496)n=n.antecedent;else if(c&512){if(n.node.expression.kind===108)return!0;n=n.antecedent}else{if(c&4)return oo(n.antecedents,u=>cee(u,!1));if(c&8)n=n.antecedents[0];else if(c&1024){let u=n.target,_=u.antecedents;u.antecedents=n.antecedents;let g=cee(n.antecedent,!1);return u.antecedents=_,g}else return!!(c&1)}}}function j8e(n){switch(n.kind){case 110:return!0;case 80:if(!NI(n)){let c=Wm(n);return JM(c)||uee(c)&&!U8e(c)}break;case 211:case 212:return j8e(n.expression)&&f_(Qr(n).resolvedSymbol||lt);case 206:case 207:let a=A_(n.parent);return Ao(a)||Doe(a)?!Pye(a):wi(a)&&pG(a)}return!1}function Gb(n,a,c=a,u,_=(g=>(g=ri(n,F2))==null?void 0:g.flowNode)()){let g,T=!1,P=0;if(we)return ut;if(!_)return a;qe++;let W=qg,V=XA(_e(_));qg=W;let te=Lr(V)&256&&G8e(n)?Jc:x5(V);if(te===Ri||n.parent&&n.parent.kind===235&&!(te.flags&131072)&&um(te,2097152).flags&131072)return a;return te===U?un:te;function ye(){return T?g:(T=!0,g=iee(n,a,c,u))}function _e(it){var kt;if(P===2e3)return(kt=rr)==null||kt.instant(rr.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:it.id}),we=!0,Zct(n),ut;P++;let Qt;for(;;){let Jt=it.flags;if(Jt&4096){for(let Wn=W;Wn=0&&Qt.parameterIndex!(Wn.flags&163840)):kt.kind===221&&KA(kt.expression,n)&&(Jt=is(Jt,it.switchStatement,it.clauseStart,it.clauseEnd,Wn=>!(Wn.flags&131072||Wn.flags&128&&Wn.value==="undefined"))));let ln=jn(kt,Jt);ln&&(Jt=bo(Jt,ln,it.switchStatement,it.clauseStart,it.clauseEnd))}return hC(Jt,_C(Qt))}function an(it){let kt=[],Qt=!1,Jt=!1,ln;for(let Wn of it.antecedents){if(!ln&&Wn.flags&128&&Wn.clauseStart===Wn.clauseEnd){ln=Wn;continue}let bi=_e(Wn),ui=XA(bi);if(ui===a&&a===c)return ui;yf(kt,ui),HM(ui,c)||(Qt=!0),_C(bi)&&(Jt=!0)}if(ln){let Wn=_e(ln),bi=XA(Wn);if(!(bi.flags&131072)&&!Bo(kt,bi)&&!TFe(ln.switchStatement)){if(bi===a&&a===c)return bi;kt.push(bi),HM(bi,c)||(Qt=!0),_C(Wn)&&(Jt=!0)}}return hC(Ln(kt,Qt?2:1),Jt)}function On(it){let kt=Iye(it),Qt=O1[kt]||(O1[kt]=new Map),Jt=ye();if(!Jt)return a;let ln=Qt.get(Jt);if(ln)return ln;for(let An=B_;An{let An=St(lo,Jt)||un;return!(An.flags&131072)&&!(ui.flags&131072)&&m5(ui,An)})}function Ro(it,kt,Qt,Jt,ln){if((Qt===37||Qt===38)&&it.flags&1048576){let Wn=T5(it);if(Wn&&Wn===HA(kt)){let bi=A5(it,xd(Jt));if(bi)return Qt===(ln?37:38)?bi:u_(Ue(bi,Wn)||un)?aee(it,bi):it}}return $n(it,kt,Wn=>ro(Wn,Qt,Jt,ln))}function bo(it,kt,Qt,Jt,ln){if(JtA5(it,ui)||un));if(bi!==un)return bi}return $n(it,kt,Wn=>vs(Wn,Qt,Jt,ln))}function Fo(it,kt,Qt){if(Ad(n,kt))return JA(it,Qt?4194304:8388608);J&&Qt&&KA(kt,n)&&(it=JA(it,2097152));let Jt=jn(kt,it);return Jt?$n(it,Jt,ln=>um(ln,Qt?4194304:8388608)):it}function fo(it,kt,Qt){let Jt=ha(it,kt);return Jt?!!(Jt.flags&16777216||Tl(Jt)&48)||Qt:!!ox(it,kt)||!Qt}function Rc(it,kt,Qt){let Jt=Zf(kt);if(Fm(it,Wn=>fo(Wn,Jt,!0)))return cc(it,Wn=>fo(Wn,Jt,Qt));if(Qt){let Wn=ist();if(Wn)return ga([it,cC(Wn,[kt,un])])}return it}function Vf(it,kt,Qt,Jt,ln){return ln=ln!==(Qt.kind===112)!=(Jt!==38&&Jt!==36),Br(it,kt,ln)}function sp(it,kt,Qt){switch(kt.operatorToken.kind){case 64:case 76:case 77:case 78:return Fo(Br(it,kt.right,Qt),kt.left,Qt);case 35:case 36:case 37:case 38:let Jt=kt.operatorToken.kind,ln=zS(kt.left),Wn=zS(kt.right);if(ln.kind===221&&as(Wn))return hr(it,ln,Jt,Wn,Qt);if(Wn.kind===221&&as(ln))return hr(it,Wn,Jt,ln,Qt);if(Ad(n,ln))return ro(it,Jt,Wn,Qt);if(Ad(n,Wn))return ro(it,Jt,ln,Qt);J&&(KA(ln,n)?it=Xn(it,Jt,Wn,Qt):KA(Wn,n)&&(it=Xn(it,Jt,ln,Qt)));let bi=jn(ln,it);if(bi)return Ro(it,bi,Jt,Wn,Qt);let ui=jn(Wn,it);if(ui)return Ro(it,ui,Jt,ln,Qt);if(gl(ln))return ot(it,Jt,Wn,Qt);if(gl(Wn))return ot(it,Jt,ln,Qt);if(aN(Wn)&&!Ns(ln))return Vf(it,ln,Wn,Jt,Qt);if(aN(ln)&&!Ns(Wn))return Vf(it,Wn,ln,Jt,Qt);break;case 104:return Se(it,kt,Qt);case 103:if(Ki(kt.left))return Pn(it,kt,Qt);let lo=zS(kt.right);if(N8(it)&&Ns(n)&&Ad(n.expression,lo)){let An=xd(kt.left);if(Qf(An)&&HA(n)===Zf(An))return um(it,Qt?524288:65536)}if(Ad(n,lo)){let An=xd(kt.left);if(Qf(An))return Rc(it,An,Qt)}break;case 28:return Br(it,kt.right,Qt);case 56:return Qt?Br(Br(it,kt.left,!0),kt.right,!0):ei([Br(it,kt.left,!1),Br(it,kt.right,!1)]);case 57:return Qt?ei([Br(it,kt.left,!0),Br(it,kt.right,!0)]):Br(Br(it,kt.left,!1),kt.right,!1)}return it}function Pn(it,kt,Qt){let Jt=zS(kt.right);if(!Ad(n,Jt))return it;x.assertNode(kt.left,Ki);let ln=See(kt.left);if(ln===void 0)return it;let Wn=ln.parent,bi=pc(x.checkDefined(ln.valueDeclaration,"should always have a declaration"))?sr(Wn):Xs(Wn);return Rr(it,bi,Qt,!0)}function Xn(it,kt,Qt,Jt){let ln=kt===35||kt===37,Wn=kt===35||kt===36?98304:32768,bi=xd(Qt);return ln!==Jt&&ap(bi,lo=>!!(lo.flags&Wn))||ln===Jt&&ap(bi,lo=>!(lo.flags&(3|Wn)))?JA(it,2097152):it}function ro(it,kt,Qt,Jt){if(it.flags&1)return it;(kt===36||kt===38)&&(Jt=!Jt);let ln=xd(Qt),Wn=kt===35||kt===36;if(ln.flags&98304){if(!J)return it;let bi=Wn?Jt?262144:2097152:ln.flags&65536?Jt?131072:1048576:Jt?65536:524288;return JA(it,bi)}if(Jt){if(!Wn&&(it.flags&2||Fm(it,Fh))){if(ln.flags&469893116||Fh(ln))return ln;if(ln.flags&524288)return Kr}let bi=cc(it,ui=>m5(ui,ln)||Wn&&ect(ui,ln));return z8e(bi,ln)}return u_(ln)?cc(it,bi=>!(o8e(bi)&&m5(bi,ln))):it}function hr(it,kt,Qt,Jt,ln){(Qt===36||Qt===38)&&(ln=!ln);let Wn=zS(kt.expression);if(!Ad(n,Wn)){J&&KA(Wn,n)&&ln===(Jt.text!=="undefined")&&(it=JA(it,2097152));let bi=jn(Wn,it);return bi?$n(it,bi,ui=>Co(ui,Jt,ln)):it}return Co(it,Jt,ln)}function Co(it,kt,Qt){return Qt?Gd(it,kt.text):JA(it,EK.get(kt.text)||32768)}function is(it,kt,Qt,Jt,ln){return Qt!==Jt&&oo(oee(kt).slice(Qt,Jt),ln)?um(it,2097152):it}function vs(it,kt,Qt,Jt){let ln=oee(kt);if(!ln.length)return it;let Wn=ln.slice(Qt,Jt),bi=Qt===Jt||Bo(Wn,Fr);if(it.flags&2&&!bi){let Zr;for(let Gi=0;Gim5(ui,Zr)),ui);if(!bi)return lo;let An=cc(it,Zr=>!(o8e(Zr)&&Bo(ln,gu(Klt(Zr)))));return lo.flags&131072?An:ei([lo,An])}function Gd(it,kt){switch(kt){case"string":return Oa(it,Ne,1);case"number":return Oa(it,It,2);case"bigint":return Oa(it,Dt,4);case"boolean":return Oa(it,gi,8);case"symbol":return Oa(it,xi,16);case"object":return it.flags&1?it:ei([Oa(it,Kr,32),Oa(it,ue,131072)]);case"function":return it.flags&1?it:Oa(it,Lt,64);case"undefined":return Oa(it,Me,65536)}return Oa(it,Kr,128)}function Oa(it,kt,Qt){return ll(it,Jt=>q_(Jt,kt,Mf)?dm(Jt,Qt)?Jt:Fr:Ob(kt,Jt)?kt:dm(Jt,Qt)?ga([Jt,kt]):Fr)}function Pu(it,kt,Qt,Jt){let ln=W8e(kt);if(!ln)return it;let Wn=Kl(kt.caseBlock.clauses,lo=>lo.kind===297);if(Qt===Jt||Wn>=Qt&&WnUM(An,lo)===lo)}let ui=ln.slice(Qt,Jt);return ei(mn(ui,lo=>lo?Gd(it,lo):Fr))}function Ol(it,kt,Qt,Jt){let ln=Kl(kt.caseBlock.clauses,ui=>ui.kind===297),Wn=Qt===Jt||ln>=Qt&&lnui.kind===296?Br(it,ui.expression,!0):Fr))}function gl(it){return(kr(it)&&gr(it.name)==="constructor"||Js(it)&&as(it.argumentExpression)&&it.argumentExpression.text==="constructor")&&Ad(n,it.expression)}function ot(it,kt,Qt,Jt){if(Jt?kt!==35&&kt!==37:kt!==36&&kt!==38)return it;let ln=xd(Qt);if(!ibe(ln)&&!ts(ln))return it;let Wn=ha(ln,"prototype");if(!Wn)return it;let bi=sr(Wn),ui=xt(bi)?void 0:bi;if(!ui||ui===Re||ui===Lt)return it;if(xt(it))return ui;return cc(it,An=>lo(An,ui));function lo(An,Zr){return An.flags&524288&&Lr(An)&1||Zr.flags&524288&&Lr(Zr)&1?An.symbol===Zr.symbol:Ob(An,Zr)}}function Se(it,kt,Qt){let Jt=zS(kt.left);if(!Ad(n,Jt))return Qt&&J&&KA(Jt,n)?JA(it,2097152):it;let ln=kt.right,Wn=xd(ln);if(!o0(Wn,Re))return it;let bi=D5(kt),ui=bi&&Ff(bi);if(ui&&ui.kind===1&&ui.parameterIndex===0)return Rr(it,ui.type,Qt,!0);if(!o0(Wn,Lt))return it;let lo=ll(Wn,Cn);return xt(it)&&(lo===Re||lo===Lt)||!Qt&&!(lo.flags&524288&&!Fh(lo))?it:Rr(it,lo,Qt,!0)}function Cn(it){let kt=Ue(it,"prototype");if(kt&&!xt(kt))return kt;let Qt=Jo(it,1);return Qt.length?ei(mn(Qt,Jt=>ds(g8(Jt)))):Ca}function Rr(it,kt,Qt,Jt){let ln=it.flags&1048576?`N${hu(it)},${hu(kt)},${(Qt?1:0)|(Jt?2:0)}`:void 0;return V1(ln)??lb(ln,di(it,kt,Qt,Jt))}function di(it,kt,Qt,Jt){if(!Qt){if(it===kt)return Fr;if(Jt)return cc(it,lo=>!o0(lo,kt));let ui=Rr(it,kt,!0,!1);return cc(it,lo=>!HM(lo,ui))}if(it.flags&3||it===kt)return kt;let ln=Jt?o0:Ob,Wn=it.flags&1048576?T5(it):void 0,bi=ll(kt,ui=>{let lo=Wn&&Ue(ui,Wn),An=lo&&A5(it,lo),Zr=ll(An||it,Jt?Gi=>o0(Gi,ui)?Gi:o0(ui,Gi)?ui:Fr:Gi=>f5(Gi,ui)?Gi:f5(ui,Gi)?ui:Ob(Gi,ui)?Gi:Ob(ui,Gi)?ui:Fr);return Zr.flags&131072?ll(it,Gi=>Rl(Gi,465829888)&&ln(ui,zd(Gi)||un)?ga([Gi,ui]):Fr):Zr});return bi.flags&131072?Ob(kt,it)?kt:ya(it,kt)?it:ya(kt,it)?kt:ga([it,kt]):bi}function Ai(it,kt,Qt){if(D8e(kt,n)){let Jt=Qt||!oT(kt)?D5(kt):void 0,ln=Jt&&Ff(Jt);if(ln&&(ln.kind===0||ln.kind===1))return Ii(it,ln,kt,Qt)}if(N8(it)&&Ns(n)&&kr(kt.expression)){let Jt=kt.expression;if(Ad(n.expression,zS(Jt.expression))&&Fe(Jt.name)&&Jt.name.escapedText==="hasOwnProperty"&&kt.arguments.length===1){let ln=kt.arguments[0];if(as(ln)&&HA(n)===pl(ln.text))return um(it,Qt?524288:65536)}}return it}function Ii(it,kt,Qt,Jt){if(kt.type&&!(xt(it)&&(kt.type===Re||kt.type===Lt))){let ln=Qct(kt,Qt);if(ln){if(Ad(n,ln))return Rr(it,kt.type,Jt,!1);J&&KA(ln,n)&&(Jt&&!dm(kt.type,65536)||!Jt&&ap(kt.type,F5))&&(it=JA(it,2097152));let Wn=jn(ln,it);if(Wn)return $n(it,Wn,bi=>Rr(bi,kt.type,Jt,!1))}}return it}function Br(it,kt,Qt){if(aF(kt)||dr(kt.parent)&&(kt.parent.operatorToken.kind===61||kt.parent.operatorToken.kind===78)&&kt.parent.left===kt)return Tr(it,kt,Qt);switch(kt.kind){case 80:if(!Ad(n,kt)&&N<5){let Jt=Wm(kt);if(JM(Jt)){let ln=Jt.valueDeclaration;if(ln&&wi(ln)&&!ln.type&&ln.initializer&&j8e(n)){N++;let Wn=Br(it,ln.initializer,Qt);return N--,Wn}}}case 110:case 108:case 211:case 212:return Fo(it,kt,Qt);case 213:return Ai(it,kt,Qt);case 217:case 235:return Br(it,kt.expression,Qt);case 226:return sp(it,kt,Qt);case 224:if(kt.operator===54)return Br(it,kt.operand,!Qt);break}return it}function Tr(it,kt,Qt){if(Ad(n,kt))return JA(it,Qt?2097152:262144);let Jt=jn(kt,it);return Jt?$n(it,Jt,ln=>um(ln,Qt?2097152:262144)):it}}function edt(n,a){if(n=ff(n),(a.kind===80||a.kind===81)&&(MN(a)&&(a=a.parent),Xh(a)&&(!$h(a)||LI(a)))){let c=qZ(LI(a)&&a.kind===211?bee(a,void 0,!0):xd(a));if(ff(Qr(a).resolvedSymbol)===n)return c}return kg(a)&&Cy(a.parent)&&Om(a.parent)?HB(a.parent.symbol):Kj(a)&&LI(a.parent)?NS(n):Rb(n)}function w8(n){return Fn(n.parent,a=>$o(a)&&!_T(a)||a.kind===268||a.kind===312||a.kind===172)}function U8e(n){return!H8e(n,void 0)}function H8e(n,a){let c=Fn(n.valueDeclaration,dee);if(!c)return!1;let u=Qr(c);return u.flags&131072||(u.flags|=131072,tdt(c)||J8e(c)),!n.lastAssignmentPos||a&&n.lastAssignmentPosa.kind!==232&&K8e(a.name))}function tdt(n){return!!Fn(n.parent,a=>dee(a)&&!!(Qr(a).flags&131072))}function dee(n){return ws(n)||Yi(n)}function J8e(n){switch(n.kind){case 80:if($h(n)){let c=Wm(n);if(uee(c)&&c.lastAssignmentPos!==Number.MAX_VALUE){let u=Fn(n,dee),_=Fn(c.valueDeclaration,dee);c.lastAssignmentPos=u===_?ndt(n,c.valueDeclaration):Number.MAX_VALUE}}return;case 281:let a=n.parent.parent;if(!n.isTypeOnly&&!a.isTypeOnly&&!a.moduleSpecifier){let c=Bs(n.propertyName||n.name,111551,!0,!0);c&&uee(c)&&(c.lastAssignmentPos=Number.MAX_VALUE)}return;case 264:case 265:case 266:return}ji(n)||Go(n,J8e)}function ndt(n,a){let c=n.pos;for(;n&&n.pos>a.pos;){switch(n.kind){case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 258:case 263:c=n.end}n=n.parent}return c}function JM(n){return n.flags&3&&($ye(n)&6)!==0}function uee(n){let a=n.valueDeclaration&&A_(n.valueDeclaration);return!!a&&(Ao(a)||wi(a)&&(X0(a.parent)||rdt(a)))}function rdt(n){return!!(n.parent.flags&1)&&!(Zb(n)&32||n.parent.parent.kind===243&&xh(n.parent.parent.parent))}function idt(n){let a=Qr(n);if(a.parameterInitializerContainsUndefined===void 0){if(!Mh(n,9))return nC(n.symbol),!0;let c=!!dm(YM(n,0),16777216);if(!H_())return nC(n.symbol),!0;a.parameterInitializerContainsUndefined=c}return a.parameterInitializerContainsUndefined}function odt(n,a){return J&&a.kind===169&&a.initializer&&dm(n,16777216)&&!idt(a)?um(n,524288):n}function adt(n,a){let c=a.parent;return c.kind===211||c.kind===166||c.kind===213&&c.expression===a||c.kind===212&&c.expression===a&&!(Fm(n,X8e)&&GA(xd(c.argumentExpression)))}function q8e(n){return n.flags&2097152?gt(n.types,q8e):!!(n.flags&465829888&&cy(n).flags&1146880)}function X8e(n){return n.flags&2097152?gt(n.types,X8e):!!(n.flags&465829888&&!Rl(cy(n),98304))}function sdt(n,a){let c=(Fe(n)||kr(n)||Js(n))&&!((P_(n.parent)||OT(n.parent))&&n.parent.tagName===n)&&(a&&a&32?Hu(n,8):Hu(n,void 0));return c&&!pC(c)}function Mye(n,a,c){return!(c&&c&2)&&Fm(n,q8e)&&(adt(n,a)||sdt(a,c))?ll(n,cy):n}function Y8e(n){return!!Fn(n,a=>{let c=a.parent;return c===void 0?"quit":Ll(c)?c.expression===a&&Bl(a):Kd(c)?c.name===a||c.propertyName===a:!1})}function pee(n,a){if(pt&&bA(n,111551)&&!TT(a)){let c=Wc(n);Td(n,!0)&1160127&&(em(B)||B0(B)&&Y8e(a)||!Y8(ff(c))?hb(n):id(n))}}function ldt(n,a,c){var u;let _=sr(n,c),g=n.valueDeclaration;if(g){if(Xa(g)&&!g.initializer&&!g.dotDotDotToken&&g.parent.elements.length>=2){let T=g.parent.parent,P=A_(T);if(P.kind===260&&KS(P)&6||P.kind===169){let W=Qr(T);if(!(W.flags&4194304)){W.flags|=4194304;let V=wr(T,0),te=V&&ll(V,cy);if(W.flags&=-4194305,te&&te.flags&1048576&&!(P.kind===169&&Pye(P))){let ye=g.parent,_e=Gb(ye,te,te,void 0,a.flowNode);return _e.flags&131072?Fr:gg(g,_e,!0)}}}}if(Ao(g)&&!g.type&&!g.initializer&&!g.dotDotDotToken){let T=g.parent;if(T.parameters.length>=2&&OZ(T)){let P=W8(T);if(P&&P.parameters.length===1&&qd(P)){let W=MM(io(sr(P.parameters[0]),(u=BS(T))==null?void 0:u.nonFixingMapper));if(W.flags&1048576&&ap(W,wa)&&!gt(T.parameters,Pye)){let V=Gb(T,W,W,void 0,a.flowNode),te=T.parameters.indexOf(g)-(M0(T)?1:0);return Cp(V,d_(te))}}}}}return _}function cdt(n,a){if(NI(n))return P5(n);let c=Wm(n);if(c===lt)return ut;if(c===Wt){if(LWe(n))return Ve(n,f.arguments_cannot_be_referenced_in_property_initializers),ut;let an=Wp(n);if(an)for(ce<2&&(an.kind===219?Ve(n,f.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):$r(an,1024)&&Ve(n,f.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),Qr(an).flags|=512;an&&Os(an);)an=Wp(an),an&&(Qr(an).flags|=512);return sr(c)}udt(n)&&pee(c,n);let u=ff(c),_=Qve(u,n);cb(_)&&kge(n,_)&&_.declarations&&tv(n,_.declarations,n.escapedText);let g=u.valueDeclaration;if(g&&u.flags&32&&ci(g)&&g.name!==n){let an=Lu(n,!1,!1);for(;an.kind!==312&&an.parent!==g;)an=Lu(an,!1,!1);an.kind!==312&&(Qr(g).flags|=262144,Qr(an).flags|=262144,Qr(n).flags|=536870912)}mdt(n,c);let T=ldt(u,n,a),P=DI(n);if(P){if(!(u.flags&3)&&!(ir(n)&&u.flags&512)){let an=u.flags&384?f.Cannot_assign_to_0_because_it_is_an_enum:u.flags&32?f.Cannot_assign_to_0_because_it_is_a_class:u.flags&1536?f.Cannot_assign_to_0_because_it_is_a_namespace:u.flags&16?f.Cannot_assign_to_0_because_it_is_a_function:u.flags&2097152?f.Cannot_assign_to_0_because_it_is_an_import:f.Cannot_assign_to_0_because_it_is_not_a_variable;return Ve(n,an,Si(c)),ut}if(f_(u))return u.flags&3?Ve(n,f.Cannot_assign_to_0_because_it_is_a_constant,Si(c)):Ve(n,f.Cannot_assign_to_0_because_it_is_a_read_only_property,Si(c)),ut}let W=u.flags&2097152;if(u.flags&3){if(P===1)return bj(n)?my(T):T}else if(W)g=Mm(c);else return T;if(!g)return T;T=Mye(T,n,a);let V=A_(g).kind===169,te=w8(g),ye=w8(n),_e=ye!==te,je=n.parent&&n.parent.parent&&By(n.parent)&&Cye(n.parent.parent),mt=c.flags&134217728,At=T===et||T===Jc,rn=At&&n.parent.kind===235;for(;ye!==te&&(ye.kind===218||ye.kind===219||kF(ye))&&(JM(u)&&T!==Jc||uee(u)&&H8e(u,n));)ye=w8(ye);let sn=V||W||_e||je||mt||ddt(n,g)||T!==et&&T!==Jc&&(!J||(T.flags&16387)!==0||TT(n)||Tye(n)||n.parent.kind===281)||n.parent.kind===235||g.kind===260&&g.exclamationToken||g.flags&33554432,nr=rn?Me:sn?V?odt(T,g):T:At?Me:zb(T),Mn=rn?_y(Gb(n,T,nr,ye)):Gb(n,T,nr,ye);if(!G8e(n)&&(T===et||T===Jc)){if(Mn===et||Mn===Jc)return fe&&(Ve(Po(g),f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Si(c),Vn(Mn)),Ve(n,f.Variable_0_implicitly_has_an_1_type,Si(c),Vn(Mn))),X8(Mn)}else if(!sn&&!FM(T)&&FM(Mn))return Ve(n,f.Variable_0_is_used_before_being_assigned,Si(c)),T;return P?my(Mn):Mn}function ddt(n,a){if(Xa(a)){let c=Fn(n,Xa);return c&&A_(c)===A_(a)}}function udt(n){var a;let c=n.parent;if(c){if(kr(c)&&c.expression===n||Kd(c)&&c.isTypeOnly)return!1;let u=(a=c.parent)==null?void 0:a.parent;if(u&&Xl(u)&&u.isTypeOnly)return!1}return!0}function pdt(n,a){return!!Fn(n,c=>c===a?"quit":$o(c)||c.parent&&Uo(c.parent)&&!pc(c.parent)&&c.parent.initializer===c)}function fdt(n,a){return Fn(n,c=>c===a?"quit":c===a.initializer||c===a.condition||c===a.incrementor||c===a.statement)}function Lye(n){return Fn(n,a=>!a||Cj(a)?"quit":Nv(a,!1))}function mdt(n,a){if(ce>=2||!(a.flags&34)||!a.valueDeclaration||Yi(a.valueDeclaration)||a.valueDeclaration.parent.kind===299)return;let c=uh(a.valueDeclaration),u=pdt(n,c),_=Lye(c);if(_){if(u){let g=!0;if(kT(c)){let T=dE(a.valueDeclaration,261);if(T&&T.parent===c){let P=fdt(n.parent,c);if(P){let W=Qr(P);W.flags|=8192;let V=W.capturedBlockScopeBindings||(W.capturedBlockScopeBindings=[]);yf(V,a),P===c.initializer&&(g=!1)}}}g&&(Qr(_).flags|=4096)}if(kT(c)){let g=dE(a.valueDeclaration,261);g&&g.parent===c&&hdt(n,c)&&(Qr(a.valueDeclaration).flags|=65536)}Qr(a.valueDeclaration).flags|=32768}u&&(Qr(a.valueDeclaration).flags|=16384)}function _dt(n,a){let c=Qr(n);return!!c&&Bo(c.capturedBlockScopeBindings,Sr(a))}function hdt(n,a){let c=n;for(;c.parent.kind===217;)c=c.parent;let u=!1;if($h(c))u=!0;else if(c.parent.kind===224||c.parent.kind===225){let _=c.parent;u=_.operator===46||_.operator===47}return u?!!Fn(c,_=>_===a?"quit":_===a.statement):!1}function kye(n,a){if(Qr(n).flags|=2,a.kind===172||a.kind===176){let c=a.parent;Qr(c).flags|=4}else Qr(a).flags|=4}function $8e(n){return mT(n)?n:$o(n)?void 0:Go(n,$8e)}function wye(n){let a=Sr(n),c=Xs(a);return Rp(c)===We}function Q8e(n,a,c){let u=a.parent;N0(u)&&!wye(u)&&F2(n)&&n.flowNode&&!cee(n.flowNode,!1)&&Ve(n,c)}function gdt(n,a){Uo(a)&&pc(a)&&Z&&a.initializer&&KL(a.initializer,n.pos)&&bf(a.parent)&&Ve(n,f.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function P5(n){let a=TT(n),c=Lu(n,!0,!0),u=!1,_=!1;for(c.kind===176&&Q8e(n,c,f.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(c.kind===219&&(c=Lu(c,!1,!_),u=!0),c.kind===167){c=Lu(c,!u,!1),_=!0;continue}break}if(gdt(n,c),_)Ve(n,f.this_cannot_be_referenced_in_a_computed_property_name);else switch(c.kind){case 267:Ve(n,f.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:Ve(n,f.this_cannot_be_referenced_in_current_location);break;case 176:Z8e(n,c)&&Ve(n,f.this_cannot_be_referenced_in_constructor_arguments);break}!a&&u&&ce<2&&kye(n,c);let g=Oye(n,!0,c);if(ne){let T=sr(tt);if(g===T&&u)Ve(n,f.The_containing_arrow_function_captures_the_global_value_of_this);else if(!g){let P=Ve(n,f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!Yi(c)){let W=Oye(c);W&&W!==T&&Pa(P,Pr(c,f.An_outer_value_of_this_is_shadowed_by_this_container))}}}return g||G}function Oye(n,a=!0,c=Lu(n,!1,!1)){let u=ir(n);if($o(c)&&(!zye(n)||M0(c))){let _=zhe(c)||u&&bdt(c);if(!_){let g=vdt(c);if(u&&g){let T=po(g).symbol;T&&T.members&&T.flags&16&&(_=Xs(T).thisType)}else $_(c)&&(_=Xs(es(c.symbol)).thisType);_||(_=rWe(c))}if(_)return Gb(n,_)}if(ci(c.parent)){let _=Sr(c.parent),g=ra(c)?sr(_):Xs(_).thisType;return Gb(n,g)}if(Yi(c))if(c.commonJsModuleIndicator){let _=Sr(c);return _&&sr(_)}else{if(c.externalModuleIndicator)return Me;if(a)return sr(tt)}}function ydt(n){let a=Lu(n,!1,!1);if($o(a)){let c=lm(a);if(c.thisParameter)return see(c.thisParameter)}if(ci(a.parent)){let c=Sr(a.parent);return ra(a)?sr(c):Xs(c).thisType}}function vdt(n){if(n.kind===218&&dr(n.parent)&&zl(n.parent)===3)return n.parent.left.expression.expression;if(n.kind===174&&n.parent.kind===210&&dr(n.parent.parent)&&zl(n.parent.parent)===6)return n.parent.parent.left.expression;if(n.kind===218&&n.parent.kind===303&&n.parent.parent.kind===210&&dr(n.parent.parent.parent)&&zl(n.parent.parent.parent)===6)return n.parent.parent.parent.left.expression;if(n.kind===218&&mc(n.parent)&&Fe(n.parent.name)&&(n.parent.name.escapedText==="value"||n.parent.name.escapedText==="get"||n.parent.name.escapedText==="set")&&Ma(n.parent.parent)&&ia(n.parent.parent.parent)&&n.parent.parent.parent.arguments[2]===n.parent.parent&&zl(n.parent.parent.parent)===9)return n.parent.parent.parent.arguments[0].expression;if(Ul(n)&&Fe(n.name)&&(n.name.escapedText==="value"||n.name.escapedText==="get"||n.name.escapedText==="set")&&Ma(n.parent)&&ia(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&zl(n.parent.parent)===9)return n.parent.parent.arguments[0].expression}function bdt(n){let a=nF(n);if(a&&a.typeExpression)return Ti(a.typeExpression);let c=LM(n);if(c)return n0(c)}function Z8e(n,a){return!!Fn(n,c=>ws(c)?"quit":c.kind===169&&c.parent===a)}function Wye(n){let a=n.parent.kind===213&&n.parent.expression===n,c=S2(n,!0),u=c,_=!1,g=!1;if(!a){for(;u&&u.kind===219;)$r(u,1024)&&(g=!0),u=S2(u,!0),_=ce<2;u&&$r(u,1024)&&(g=!0)}let T=0;if(!u||!te(u)){let ye=Fn(n,_e=>_e===u?"quit":_e.kind===167);return ye&&ye.kind===167?Ve(n,f.super_cannot_be_referenced_in_a_computed_property_name):a?Ve(n,f.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!u||!u.parent||!(ci(u.parent)||u.parent.kind===210)?Ve(n,f.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):Ve(n,f.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),ut}if(!a&&c.kind===176&&Q8e(n,u,f.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),ra(u)||a?(T=32,!a&&ce>=2&&ce<=8&&(Uo(u)||Al(u))&&Ure(n.parent,ye=>{(!Yi(ye)||wp(ye))&&(Qr(ye).flags|=2097152)})):T=16,Qr(n).flags|=T,u.kind===174&&g&&(ku(n.parent)&&$h(n.parent)?Qr(u).flags|=256:Qr(u).flags|=128),_&&kye(n.parent,u),u.parent.kind===210)return ce<2?(Ve(n,f.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),ut):G;let P=u.parent;if(!N0(P))return Ve(n,f.super_can_only_be_referenced_in_a_derived_class),ut;if(wye(P))return a?ut:We;let W=Xs(Sr(P)),V=W&&Dp(W)[0];if(!V)return ut;if(u.kind===176&&Z8e(n,u))return Ve(n,f.super_cannot_be_referenced_in_constructor_arguments),ut;return T===32?Rp(W):Up(V,W.thisType);function te(ye){return a?ye.kind===176:ci(ye.parent)||ye.parent.kind===210?ra(ye)?ye.kind===174||ye.kind===173||ye.kind===177||ye.kind===178||ye.kind===172||ye.kind===175:ye.kind===174||ye.kind===173||ye.kind===177||ye.kind===178||ye.kind===172||ye.kind===171||ye.kind===176:!1}}function eWe(n){return(n.kind===174||n.kind===177||n.kind===178)&&n.parent.kind===210?n.parent:n.kind===218&&n.parent.kind===303?n.parent.parent:void 0}function tWe(n){return Lr(n)&4&&n.target===Gl?Vs(n)[0]:void 0}function Edt(n){return ll(n,a=>a.flags&2097152?gn(a.types,tWe):tWe(a))}function nWe(n,a){let c=n,u=a;for(;u;){let _=Edt(u);if(_)return _;if(c.parent.kind!==303)break;c=c.parent.parent,u=u0(c,void 0)}}function rWe(n){if(n.kind===219)return;if(OZ(n)){let c=W8(n);if(c){let u=c.thisParameter;if(u)return sr(u)}}let a=ir(n);if(ne||a){let c=eWe(n);if(c){let _=u0(c,void 0),g=nWe(c,_);return g?io(g,mye(BS(c))):Hp(_?_y(_):tc(c))}let u=Py(n.parent);if(Mc(u)){let _=u.left;if(Ns(_)){let{expression:g}=_;if(a&&Fe(g)){let T=Gn(u);if(T.commonJsModuleIndicator&&Wm(g)===T.symbol)return}return Hp(tc(g))}}}}function iWe(n){let a=n.parent;if(!OZ(a))return;let c=_T(a);if(c&&c.arguments){let _=Dee(c),g=a.parameters.indexOf(n);if(n.dotDotDotToken)return uve(_,g,_.length,G,void 0,0);let T=Qr(c),P=T.resolvedSignature;T.resolvedSignature=yt;let W=g<_.length?FS(po(_[g])):n.initializer?void 0:Nt;return T.resolvedSignature=P,W}let u=W8(a);if(u){let _=a.parameters.indexOf(n)-(M0(a)?1:0);return n.dotDotDotToken&&$s(a.parameters)===n?J5(u,_):VS(u,_)}}function Fye(n,a){let c=yd(n)||(ir(n)?V6(n):void 0);if(c)return Ti(c);switch(n.kind){case 169:return iWe(n);case 208:return Sdt(n,a);case 172:if(ra(n))return Tdt(n,a)}}function Sdt(n,a){let c=n.parent.parent,u=n.propertyName||n.name,_=Fye(c,a)||c.kind!==208&&c.initializer&&YM(c,n.dotDotDotToken?32:0);if(!_||Qo(u)||h2(u))return;if(c.name.kind===207){let T=jx(n.parent.elements,n);return T<0?void 0:Vye(_,T)}let g=cv(u);if(Qf(g)){let T=Zf(g);return Ue(_,T)}}function Tdt(n,a){let c=ht(n.parent)&&Hu(n.parent,a);if(c)return d0(c,Sr(n).escapedName)}function Adt(n,a){let c=n.parent;if(Mv(c)&&n===c.initializer){let u=Fye(c,a);if(u)return u;if(!(a&8)&&Qo(c.name)&&c.name.elements.length>0)return C(c.name,!0,!1)}}function Idt(n,a){let c=Wp(n);if(c){let u=fee(c,a);if(u){let _=Vc(c);if(_&1){let g=(_&2)!==0;u.flags&1048576&&(u=cc(u,P=>!!jS(1,P,g)));let T=jS(1,u,(_&2)!==0);if(!T)return;u=T}if(_&2){let g=ll(u,pv);return g&&ei([g,vFe(g)])}return u}}}function xdt(n,a){let c=Hu(n,a);if(c){let u=pv(c);return u&&ei([u,vFe(u)])}}function Rdt(n,a){let c=Wp(n);if(c){let u=Vc(c),_=fee(c,a);if(_){let g=(u&2)!==0;return!n.asteriskToken&&_.flags&1048576&&(_=cc(_,T=>!!jS(1,T,g))),n.asteriskToken?_:jS(0,_,g)}}}function zye(n){let a=!1;for(;n.parent&&!$o(n.parent);){if(Ao(n.parent)&&(a||n.parent.initializer===n))return!0;Xa(n.parent)&&n.parent.initializer===n&&(a=!0),n=n.parent}return!1}function oWe(n,a){let c=!!(Vc(a)&2),u=fee(a,void 0);if(u)return jS(n,u,c)||void 0}function fee(n,a){let c=sC(n);if(c)return c;let u=Uye(n);if(u&&!gZ(u)){let g=ds(u),T=Vc(n);return T&1?cc(g,P=>!!(P.flags&58998787)||Mve(P,T,void 0)):T&2?cc(g,P=>!!(P.flags&58998787)||!!ZM(P)):g}let _=_T(n);if(_)return Hu(_,a)}function aWe(n,a){let u=Dee(n).indexOf(a);return u===-1?void 0:Bye(n,u)}function Bye(n,a){if(Op(n))return a===0?Ne:a===1?qwe(!1):G;let c=Qr(n).resolvedSignature===yr?yr:vC(n);if(au(n)&&a===0)return gee(c,n);let u=c.parameters.length-1;return qd(c)&&a>=u?Cp(sr(c.parameters[u]),d_(a-u),256):p_(c,a)}function Ddt(n){let a=Ave(n);return a?WA(a):void 0}function Cdt(n,a){if(n.parent.kind===215)return aWe(n.parent,a)}function Ndt(n,a){let c=n.parent,{left:u,operatorToken:_,right:g}=c;switch(_.kind){case 64:case 77:case 76:case 78:return n===g?Mdt(c):void 0;case 57:case 61:let T=Hu(c,a);return n===g&&(T&&T.pattern||!T&&!uie(c))?xd(u):T;case 56:case 28:return n===g?Hu(c,a):void 0;default:return}}function Pdt(n){if(b_(n)&&n.symbol)return n.symbol;if(Fe(n))return Wm(n);if(kr(n)){let c=xd(n.expression);return Ki(n.name)?a(c,n.name):ha(c,n.name.escapedText)}if(Js(n)){let c=tc(n.argumentExpression);if(!Qf(c))return;let u=xd(n.expression);return ha(u,Zf(c))}return;function a(c,u){let _=Eee(u.escapedText,u);return _&&tve(c,_)}}function Mdt(n){var a,c;let u=zl(n);switch(u){case 0:case 4:let _=Pdt(n.left),g=_&&_.valueDeclaration;if(g&&(Uo(g)||_p(g))){let W=yd(g);return W&&io(Ti(W),qi(_).mapper)||(Uo(g)?g.initializer&&xd(n.left):void 0)}return u===0?xd(n.left):sWe(n);case 5:if(mee(n,u))return sWe(n);if(!b_(n.left)||!n.left.symbol)return xd(n.left);{let W=n.left.symbol.valueDeclaration;if(!W)return;let V=na(n.left,Ns),te=yd(W);if(te)return Ti(te);if(Fe(V.expression)){let ye=V.expression,_e=hl(ye,ye.escapedText,111551,void 0,ye.escapedText,!0);if(_e){let je=_e.valueDeclaration&&yd(_e.valueDeclaration);if(je){let mt=Lg(V);if(mt!==void 0)return d0(Ti(je),mt)}return}}return ir(W)||W===n.left?void 0:xd(n.left)}case 1:case 6:case 3:case 2:let T;u!==2&&(T=b_(n.left)?(a=n.left.symbol)==null?void 0:a.valueDeclaration:void 0),T||(T=(c=n.symbol)==null?void 0:c.valueDeclaration);let P=T&&yd(T);return P?Ti(P):void 0;case 7:case 8:case 9:return x.fail("Does not apply");default:return x.assertNever(u)}}function mee(n,a=zl(n)){if(a===4)return!0;if(!ir(n)||a!==5||!Fe(n.left.expression))return!1;let c=n.left.expression.escapedText,u=hl(n.left,c,111551,void 0,void 0,!0,!0);return zF(u?.valueDeclaration)}function sWe(n){if(!n.symbol)return xd(n.left);if(n.symbol.valueDeclaration){let _=yd(n.symbol.valueDeclaration);if(_){let g=Ti(_);if(g)return g}}let a=na(n.left,Ns);if(!bm(Lu(a.expression,!1,!1)))return;let c=P5(a.expression),u=Lg(a);return u!==void 0&&d0(c,u)||void 0}function Ldt(n){return!!(Tl(n)&262144&&!n.links.type&&nx(n,0)>=0)}function d0(n,a,c){return ll(n,u=>{var _;if(ju(u)&&!u.declaration.nameType){let g=hf(u),T=zd(g)||g,P=c||Uu(Vi(a));if(ya(P,T))return DZ(u,P)}else if(u.flags&3670016){let g=ha(u,a);if(g)return Ldt(g)?void 0:Bb(sr(g),!!(g&&g.flags&16777216));if(wa(u)&&ng(a)&&+a>=0){let T=VM(u,u.target.fixedLength,0,!1,!0);if(T)return T}return(_=rge(ige(u),c||Uu(Vi(a))))==null?void 0:_.type}},!0)}function lWe(n,a){if(x.assert(bm(n)),!(n.flags&67108864))return Gye(n,a)}function Gye(n,a){let c=n.parent,u=mc(n)&&Fye(n,a);if(u)return u;let _=u0(c,a);if(_){if(oC(n)){let g=Sr(n);return d0(_,g.escapedName,qi(g).nameType)}if(Ov(n)){let g=Po(n);if(g&&Ya(g)){let T=po(g.expression),P=Qf(T)&&d0(_,Zf(T));if(P)return P}}if(n.name){let g=cv(n.name);return ll(_,T=>{var P;return(P=rge(ige(T),g))==null?void 0:P.type},!0)}}}function kdt(n){let a,c;for(let u=0;u{if(wa(g)){if((u===void 0||a_)?c-a:0,P=T>0&&g.target.hasRestElement?v8(g.target,3):0;return T>0&&T<=P?Vs(g)[lv(g)-T]:VM(g,u===void 0?g.target.fixedLength:Math.min(g.target.fixedLength,u),c===void 0||_===void 0?P:Math.min(P,c-_),!1,!0)}return(!u||auv(W)?Cp(W,d_(T)):W,!0))}function Wdt(n,a){let c=n.parent;return fF(c)?Hu(n,a):ig(c)?Odt(c,n,a):void 0}function cWe(n,a){if(M_(n)){let c=u0(n.parent,a);return!c||xt(c)?void 0:d0(c,$N(n.name))}else return Hu(n.parent,a)}function M5(n){switch(n.kind){case 11:case 9:case 10:case 15:case 228:case 112:case 97:case 106:case 80:case 157:return!0;case 211:case 217:return M5(n.expression);case 294:return!n.expression||M5(n.expression)}return!1}function Fdt(n,a){return Cct(a,n)||Zge(a,Eo(mn(jr(n.properties,c=>c.symbol?c.kind===303?M5(c.initializer)&&jM(a,c.symbol.escapedName):c.kind===304?jM(a,c.symbol.escapedName):!1:!1),c=>[()=>eG(c.kind===303?c.initializer:c.name),c.symbol.escapedName]),mn(jr(ms(a),c=>{var u;return!!(c.flags&16777216)&&!!((u=n?.symbol)!=null&&u.members)&&!n.symbol.members.has(c.escapedName)&&jM(a,c.escapedName)}),c=>[()=>Me,c.escapedName])),ya)}function zdt(n,a){let c=w5(YA(n));return Zge(a,Eo(mn(jr(n.properties,u=>!!u.symbol&&u.kind===291&&jM(a,u.symbol.escapedName)&&(!u.initializer||M5(u.initializer))),u=>[u.initializer?()=>eG(u.initializer):()=>wn,u.symbol.escapedName]),mn(jr(ms(a),u=>{var _;if(!(u.flags&16777216)||!((_=n?.symbol)!=null&&_.members))return!1;let g=n.parent.parent;return u.escapedName===c&&ig(g)&&lR(g.children).length?!1:!n.symbol.members.has(u.escapedName)&&jM(a,u.escapedName)}),u=>[()=>Me,u.escapedName])),ya)}function u0(n,a){let c=bm(n)?lWe(n,a):Hu(n,a),u=_ee(c,n,a);if(u&&!(a&&a&2&&u.flags&8650752)){let _=ll(u,g=>Lr(g)&32?g:Nu(g),!0);return _.flags&1048576&&Ma(n)?Fdt(n,_):_.flags&1048576&&q0(n)?zdt(n,_):_}}function _ee(n,a,c){if(n&&Rl(n,465829888)){let u=BS(a);if(u&&c&1&>(u.inferences,Sft))return hee(n,u.nonFixingMapper);if(u?.returnMapper){let _=hee(n,u.returnMapper);return _.flags&1048576&&dy(_.types,En)&&dy(_.types,Bn)?cc(_,g=>g!==En&&g!==Bn):_}}return n}function hee(n,a){return n.flags&465829888?io(n,a):n.flags&1048576?ei(mn(n.types,c=>hee(c,a)),0):n.flags&2097152?ga(mn(n.types,c=>hee(c,a))):n}function Hu(n,a){var c;if(n.flags&67108864)return;let u=uWe(n,!a);if(u>=0)return fn[u];let{parent:_}=n;switch(_.kind){case 260:case 169:case 172:case 171:case 208:return Adt(n,a);case 219:case 253:return Idt(n,a);case 229:return Rdt(_,a);case 223:return xdt(_,a);case 213:case 214:return aWe(_,n);case 170:return Ddt(_);case 216:case 234:return Ng(_.type)?Hu(_,a):Ti(_.type);case 226:return Ndt(n,a);case 303:case 304:return Gye(_,a);case 305:return Hu(_.parent,a);case 209:{let g=_,T=u0(g,a),P=jx(g.elements,n),W=(c=Qr(g)).spreadIndices??(c.spreadIndices=kdt(g.elements));return Vye(T,P,g.elements.length,W.first,W.last)}case 227:return wdt(n,a);case 239:return x.assert(_.parent.kind===228),Cdt(_.parent,n);case 217:{if(ir(_)){if(hU(_))return Ti(gU(_));let g=tE(_);if(g&&!Ng(g.typeExpression.type))return Ti(g.typeExpression.type)}return Hu(_,a)}case 235:return Hu(_,a);case 238:return Ti(_.type);case 277:return eo(_);case 294:return Wdt(_,a);case 291:case 293:return cWe(_,a);case 286:case 285:return jdt(_,a);case 301:return Vdt(_)}}function dWe(n){L5(n,Hu(n,void 0),!0)}function L5(n,a,c){Jn[fi]=n,fn[fi]=a,qn[fi]=c,fi++}function O8(){fi--}function uWe(n,a){for(let c=fi-1;c>=0;c--)if(n===Jn[c]&&(a||!qn[c]))return c;return-1}function Bdt(n,a){or[cr]=n,ni[cr]=a,cr++}function Gdt(){cr--}function BS(n){for(let a=cr-1;a>=0;a--)if(C0(n,or[a]))return ni[a]}function Vdt(n){return d0(bge(!1),U6(n))}function jdt(n,a){if(P_(n)&&a!==4){let c=uWe(n.parent,!a);if(c>=0)return fn[c]}return Bye(n,0)}function gee(n,a){return qWe(a)!==0?Udt(n,a):Jdt(n,a)}function Udt(n,a){let c=Sve(n,un);c=pWe(a,YA(a),c);let u=GS(tf.IntrinsicAttributes,a);return Vt(u)||(c=$B(u,c)),c}function Hdt(n,a){if(n.compositeSignatures){let u=[];for(let _ of n.compositeSignatures){let g=ds(_);if(xt(g))return g;let T=Ue(g,a);if(!T)return;u.push(T)}return ga(u)}let c=ds(n);return xt(c)?c:Ue(c,a)}function Kdt(n){if(ux(n.tagName)){let c=EWe(n),u=Cee(n,c);return WA(u)}let a=tc(n.tagName);if(a.flags&128){let c=bWe(a,n);if(!c)return ut;let u=Cee(n,c);return WA(u)}return a}function pWe(n,a,c){let u=fut(a);if(u){let _=Kdt(n),g=AWe(u,ir(n),_,c);if(g)return g}return c}function Jdt(n,a){let c=YA(a),u=_ut(c),_=u===void 0?Sve(n,un):u===""?ds(n):Hdt(n,u);if(!_)return u&&Nn(a.attributes.properties)&&Ve(a,f.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Vi(u)),un;if(_=pWe(a,c,_),xt(_))return _;{let g=_,T=GS(tf.IntrinsicClassAttributes,a);if(!Vt(T)){let W=Nr(T.symbol),V=ds(n),te;if(W){let ye=Pb([V],W,wh(W),ir(a));te=io(T,Np(W,ye))}else te=T;g=$B(te,g)}let P=GS(tf.IntrinsicAttributes,a);return Vt(P)||(g=$B(P,g)),g}}function qdt(n){return cu(B,"noImplicitAny")?tu(n,(a,c)=>a===c||!a?a:uwe(a.typeParameters,c.typeParameters)?$dt(a,c):void 0):void 0}function Xdt(n,a,c){if(!n||!a)return n||a;let u=ei([sr(n),io(sr(a),c)]);return UA(n,u)}function Ydt(n,a,c){let u=Kp(n),_=Kp(a),g=u>=_?n:a,T=g===n?a:n,P=g===n?u:_,W=zh(n)||zh(a),V=W&&!zh(g),te=new Array(P+(V?1:0));for(let ye=0;ye=Q_(g)&&ye>=Q_(T),sn=ye>=u?void 0:XM(n,ye),nr=ye>=_?void 0:XM(a,ye),Mn=sn===nr?sn:sn?nr?void 0:sn:nr,an=Ka(1|(rn&&!At?16777216:0),Mn||`arg${ye}`);an.links.type=At?Bd(mt):mt,te[ye]=an}if(V){let ye=Ka(1,"args");ye.links.type=Bd(p_(T,P)),T===a&&(ye.links.type=io(ye.links.type,c)),te[P]=ye}return te}function $dt(n,a){let c=n.typeParameters||a.typeParameters,u;n.typeParameters&&a.typeParameters&&(u=Np(a.typeParameters,n.typeParameters));let _=n.declaration,g=Ydt(n,a,u),T=Xdt(n.thisParameter,a.thisParameter,u),P=Math.max(n.minArgumentCount,a.minArgumentCount),W=yg(_,c,T,g,void 0,void 0,P,(n.flags|a.flags)&167);return W.compositeKind=2097152,W.compositeSignatures=Eo(n.compositeKind===2097152&&n.compositeSignatures||[n],[a]),u&&(W.mapper=n.compositeKind===2097152&&n.mapper&&n.compositeSignatures?WS(n.mapper,u):u),W}function jye(n,a){let c=Jo(n,0),u=jr(c,_=>!Qdt(_,a));return u.length===1?u[0]:qdt(u)}function Qdt(n,a){let c=0;for(;cGM(_e)||ju(_e)&&!_e.nameType&&!!T8(_e.target||_e)),ye=!1;for(let _e=0;_e<_;_e++){let je=u[_e];if(je.kind===230){ce<2&&xc(je,B.downlevelIteration?1536:1024);let mt=po(je.expression,a,c);if(uv(mt))g.push(mt),T.push(8);else if(P){let At=t0(mt,It)||jve(65,mt,Me,void 0,!1)||un;g.push(At),T.push(4)}else g.push(fv(33,mt,Me,je.expression)),T.push(4)}else if(Ae&&je.kind===232)ye=!0,g.push(ie),T.push(2);else{let mt=QM(je,a,c);if(g.push(op(mt,!0,ye)),T.push(ye?2:1),te&&a&&a&2&&!(a&4)&&zf(je)){let At=BS(n);x.assert(At),pye(At,je,mt)}}}return O8(),P?Wh(g,T):mWe(c||W||te?Wh(g,T,W&&!(V&&Fm(V,rye))):Bd(g.length?ei(Pc(g,(_e,je)=>T[je]&8?Lb(_e,It)||G:_e),2):J?Pi:Nt,W))}function mWe(n){if(!(Lr(n)&4))return n;let a=n.literalType;return a||(a=n.literalType=Owe(n),a.objectFlags|=147456),a}function nut(n){switch(n.kind){case 167:return rut(n);case 80:return ng(n.escapedText);case 9:case 11:return ng(n.text);default:return!1}}function rut(n){return Id(bg(n),296)}function bg(n){let a=Qr(n.expression);if(!a.resolvedType){if((gp(n.parent.parent)||ci(n.parent.parent)||pu(n.parent.parent))&&dr(n.expression)&&n.expression.operatorToken.kind===103&&n.parent.kind!==177&&n.parent.kind!==178)return a.resolvedType=ut;if(a.resolvedType=po(n.expression),Uo(n.parent)&&!pc(n.parent)&&Zc(n.parent.parent)){let c=uh(n.parent.parent),u=Lye(c);u&&(Qr(u).flags|=4096,Qr(n).flags|=32768,Qr(n.parent.parent).flags|=32768)}(a.resolvedType.flags&98304||!Id(a.resolvedType,402665900)&&!ya(a.resolvedType,xn))&&Ve(n,f.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return a.resolvedType}function iut(n){var a;let c=(a=n.declarations)==null?void 0:a[0];return ng(n.escapedName)||c&&iu(c)&&nut(c.name)}function _We(n){var a;let c=(a=n.declarations)==null?void 0:a[0];return J2(n)||c&&iu(c)&&Ya(c.name)&&Id(bg(c.name),4096)}function Hye(n,a,c,u){let _=[];for(let T=a;T0&&(P=kS(P,On(),n.symbol,At,te),T=[],g=aa(),sn=!1,nr=!1,Mn=!1);let $n=c_(po(Ln.expression,a&2));if(k5($n)){let Ro=zge($n,te);if(_&&gWe(Ro,_,Ln),an=T.length,Vt(P))continue;P=kS(P,Ro,n.symbol,At,te)}else Ve(Ln,f.Spread_types_may_only_be_created_from_object_types),P=ut;continue}else x.assert(Ln.kind===177||Ln.kind===178),px(Ln);jn&&!(jn.flags&8576)?ya(jn,xn)&&(ya(jn,It)?nr=!0:ya(jn,xi)?Mn=!0:sn=!0,u&&(rn=!0)):g.set(Yn.escapedName,Yn),T.push(Yn)}if(O8(),V){let Ln=Fn(W.pattern.parent,jn=>jn.kind===260||jn.kind===226||jn.kind===169);if(Fn(n,jn=>jn===Ln||jn.kind===305).kind!==305)for(let jn of ms(W))!g.get(jn.escapedName)&&!ha(P,jn.escapedName)&&(jn.flags&16777216||Ve(jn.valueDeclaration||((c=ri(jn,ch))==null?void 0:c.links.bindingElement),f.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),g.set(jn.escapedName,jn),T.push(jn))}if(Vt(P))return ut;if(P!==Ca)return T.length>0&&(P=kS(P,On(),n.symbol,At,te),T=[],g=aa(),sn=!1,nr=!1),ll(P,Ln=>Ln===Ca?On():Ln);return On();function On(){let Ln=[];sn&&Ln.push(Hye(n,an,T,Ne)),nr&&Ln.push(Hye(n,an,T,It)),Mn&&Ln.push(Hye(n,an,T,xi));let Yn=Ds(n.symbol,g,Xe,Xe,Ln);return Yn.objectFlags|=At|128|131072,mt&&(Yn.objectFlags|=4096),rn&&(Yn.objectFlags|=512),u&&(Yn.pattern=n),Yn}}function k5(n){let a=d8e(ll(n,cy));return!!(a.flags&126615553||a.flags&3145728&&oo(a.types,k5))}function aut(n){Xye(n)}function sut(n,a){return px(n),O5(n)||G}function lut(n){Xye(n.openingElement),ux(n.closingElement.tagName)?vee(n.closingElement):po(n.closingElement.tagName),yee(n)}function cut(n,a){return px(n),O5(n)||G}function dut(n){Xye(n.openingFragment);let a=Gn(n);return R6(B)&&(B.jsxFactory||a.pragmas.has("jsx"))&&!B.jsxFragmentFactory&&!a.pragmas.has("jsxfrag")&&Ve(n,B.jsxFactory?f.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:f.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),yee(n),O5(n)||G}function Jye(n){return n.includes("-")}function ux(n){return Fe(n)&&dR(n.escapedText)||qm(n)}function hWe(n,a){return n.initializer?QM(n.initializer,a):wn}function uut(n,a=0){let c=n.attributes,u=Hu(c,0),_=J?aa():void 0,g=aa(),T=ul,P=!1,W,V=!1,te=2048,ye=w5(YA(n));for(let mt of c.properties){let At=mt.symbol;if(M_(mt)){let rn=hWe(mt,a);te|=Lr(rn)&458752;let sn=Ka(4|At.flags,At.escapedName);if(sn.declarations=At.declarations,sn.parent=At.parent,At.valueDeclaration&&(sn.valueDeclaration=At.valueDeclaration),sn.links.type=rn,sn.links.target=At,g.set(sn.escapedName,sn),_?.set(sn.escapedName,sn),$N(mt.name)===ye&&(V=!0),u){let nr=ha(u,At.escapedName);nr&&nr.declarations&&cb(nr)&&Fe(mt.name)&&tv(mt.name,nr.declarations,mt.name.escapedText)}if(u&&a&2&&!(a&4)&&zf(mt)){let nr=BS(c);x.assert(nr);let Mn=mt.initializer.expression;pye(nr,Mn,rn)}}else{x.assert(mt.kind===293),g.size>0&&(T=kS(T,je(),c.symbol,te,!1),g=aa());let rn=c_(po(mt.expression,a&2));xt(rn)&&(P=!0),k5(rn)?(T=kS(T,rn,c.symbol,te,!1),_&&gWe(rn,_,mt)):(Ve(mt.expression,f.Spread_types_may_only_be_created_from_object_types),W=W?ga([W,rn]):rn)}}P||g.size>0&&(T=kS(T,je(),c.symbol,te,!1));let _e=n.parent.kind===284?n.parent:void 0;if(_e&&_e.openingElement===n&&lR(_e.children).length>0){let mt=yee(_e,a);if(!P&&ye&&ye!==""){V&&Ve(c,f._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Vi(ye));let At=u0(n.attributes,void 0),rn=At&&d0(At,ye),sn=Ka(4,ye);sn.links.type=mt.length===1?mt[0]:rn&&Fm(rn,GM)?Wh(mt):Bd(ei(mt)),sn.valueDeclaration=L.createPropertySignature(void 0,Vi(ye),void 0,void 0),ja(sn.valueDeclaration,c),sn.valueDeclaration.symbol=sn;let nr=aa();nr.set(ye,sn),T=kS(T,Ds(c.symbol,nr,Xe,Xe,Xe),c.symbol,te,!1)}}if(P)return G;if(W&&T!==ul)return ga([W,T]);return W||(T===ul?je():T);function je(){te|=ve;let mt=Ds(c.symbol,g,Xe,Xe,Xe);return mt.objectFlags|=te|128|131072,mt}}function yee(n,a){let c=[];for(let u of n.children)if(u.kind===12)u.containsOnlyTriviaWhiteSpaces||c.push(Ne);else{if(u.kind===294&&!u.expression)continue;c.push(QM(u,a))}return c}function gWe(n,a,c){for(let u of ms(n))if(!(u.flags&16777216)){let _=a.get(u.escapedName);if(_){let g=Ve(_.valueDeclaration,f._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Vi(_.escapedName));Pa(g,Pr(c,f.This_spread_always_overwrites_this_property))}}}function put(n,a){return uut(n.parent,a)}function GS(n,a){let c=YA(a),u=c&&xp(c),_=u&&Vu(u,n,788968);return _?Xs(_):ut}function vee(n){let a=Qr(n);if(!a.resolvedSymbol){let c=GS(tf.IntrinsicElements,n);if(Vt(c))return fe&&Ve(n,f.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Vi(tf.IntrinsicElements)),a.resolvedSymbol=lt;{if(!Fe(n.tagName)&&!qm(n.tagName))return x.fail();let u=qm(n.tagName)?FI(n.tagName):n.tagName.escapedText,_=ha(c,u);if(_)return a.jsxFlags|=1,a.resolvedSymbol=_;let g=H6e(c,Uu(Vi(u)));return g?(a.jsxFlags|=2,a.resolvedSymbol=g):St(c,u)?(a.jsxFlags|=2,a.resolvedSymbol=c.symbol):(Ve(n,f.Property_0_does_not_exist_on_type_1,yU(n.tagName),"JSX."+tf.IntrinsicElements),a.resolvedSymbol=lt)}}return a.resolvedSymbol}function qye(n){let a=n&&Gn(n),c=a&&Qr(a);if(c&&c.jsxImplicitImportContainer===!1)return;if(c&&c.jsxImplicitImportContainer)return c.jsxImplicitImportContainer;let u=C6(D6(B,a),B);if(!u)return;let g=du(B)===1?f.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:f.Cannot_find_module_0_or_its_corresponding_type_declarations,T=B.importHelpers?1:0,P=a?.imports[T];P&&x.assert(Ks(P)&&P.text===u,`Expected sourceFile.imports[${T}] to be the synthesized JSX runtime import`);let W=j_(P||n,u,g,n),V=W&&W!==lt?es(Vl(W)):void 0;return c&&(c.jsxImplicitImportContainer=V||!1),V}function YA(n){let a=n&&Qr(n);if(a&&a.jsxNamespace)return a.jsxNamespace;if(!a||a.jsxNamespace!==!1){let u=qye(n);if(!u||u===lt){let _=WE(n);u=hl(n,_,1920,void 0,_,!1)}if(u){let _=Vl(Vu(xp(Vl(u)),tf.JSX,1920));if(_&&_!==lt)return a&&(a.jsxNamespace=_),_}a&&(a.jsxNamespace=!1)}let c=Vl(OM(tf.JSX,1920,void 0));if(c!==lt)return c}function yWe(n,a){let c=a&&Vu(a.exports,n,788968),u=c&&Xs(c),_=u&&ms(u);if(_){if(_.length===0)return"";if(_.length===1)return _[0].escapedName;_.length>1&&c.declarations&&Ve(c.declarations[0],f.The_global_type_JSX_0_may_not_have_more_than_one_property,Vi(n))}}function fut(n){return n&&Vu(n.exports,tf.LibraryManagedAttributes,788968)}function mut(n){return n&&Vu(n.exports,tf.ElementType,788968)}function _ut(n){return yWe(tf.ElementAttributesPropertyNameContainer,n)}function w5(n){return yWe(tf.ElementChildrenAttributeNameContainer,n)}function vWe(n,a){if(n.flags&4)return[yt];if(n.flags&128){let _=bWe(n,a);return _?[Cee(a,_)]:(Ve(a,f.Property_0_does_not_exist_on_type_1,n.value,"JSX."+tf.IntrinsicElements),Xe)}let c=Nu(n),u=Jo(c,1);return u.length===0&&(u=Jo(c,0)),u.length===0&&c.flags&1048576&&(u=Hhe(mn(c.types,_=>vWe(_,a)))),u}function bWe(n,a){let c=GS(tf.IntrinsicElements,a);if(!Vt(c)){let u=n.value,_=ha(c,pl(u));if(_)return sr(_);let g=t0(c,Ne);return g||void 0}return G}function hut(n,a,c){if(n===1){let _=TWe(c);_&&Bf(a,_,Gu,c.tagName,f.Its_return_type_0_is_not_a_valid_JSX_element,u)}else if(n===0){let _=SWe(c);_&&Bf(a,_,Gu,c.tagName,f.Its_instance_type_0_is_not_a_valid_JSX_element,u)}else{let _=TWe(c),g=SWe(c);if(!_||!g)return;let T=ei([_,g]);Bf(a,T,Gu,c.tagName,f.Its_element_type_0_is_not_a_valid_JSX_element,u)}function u(){let _=uc(c.tagName);return zo(void 0,f._0_cannot_be_used_as_a_JSX_component,_)}}function EWe(n){var a;x.assert(ux(n.tagName));let c=Qr(n);if(!c.resolvedJsxElementAttributesType){let u=vee(n);if(c.jsxFlags&1)return c.resolvedJsxElementAttributesType=sr(u)||ut;if(c.jsxFlags&2){let _=qm(n.tagName)?FI(n.tagName):n.tagName.escapedText;return c.resolvedJsxElementAttributesType=((a=ox(GS(tf.IntrinsicElements,n),_))==null?void 0:a.type)||ut}else return c.resolvedJsxElementAttributesType=ut}return c.resolvedJsxElementAttributesType}function SWe(n){let a=GS(tf.ElementClass,n);if(!Vt(a))return a}function O5(n){return GS(tf.Element,n)}function TWe(n){let a=O5(n);if(a)return ei([a,ue])}function gut(n){let a=YA(n);if(!a)return;let c=mut(a);if(!c)return;let u=AWe(c,ir(n));if(!(!u||Vt(u)))return u}function AWe(n,a,...c){let u=Xs(n);if(n.flags&524288){let _=qi(n).typeParameters;if(Nn(_)>=c.length){let g=Pb(c,_,c.length,a);return Nn(g)===0?u:cC(n,g)}}if(Nn(u.typeParameters)>=c.length){let _=Pb(c,u.typeParameters,c.length,a);return sv(u,_)}}function yut(n){let a=GS(tf.IntrinsicElements,n);return a?ms(a):Xe}function vut(n){(B.jsx||0)===0&&Ve(n,f.Cannot_use_JSX_unless_the_jsx_flag_is_provided),O5(n)===void 0&&fe&&Ve(n,f.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function Xye(n){let a=au(n);if(a&&pgt(n),vut(n),!qye(n)){let c=Qa&&B.jsx===2?f.Cannot_find_name_0:void 0,u=WE(n),_=a?n.tagName:n,g;if(i1(n)&&u==="null"||(g=hl(_,u,111551,c,u,!0)),g&&(g.isReferenced=-1,pt&&g.flags&2097152&&!Lf(g)&&hb(g)),i1(n)){let T=Gn(n),P=j1(T);P&&hl(_,P,111551,c,P,!0)}}if(a){let c=n,u=vC(c);Pee(u,n);let _=gut(c);if(_!==void 0){let g=c.tagName,T=ux(g)?Uu(yU(g)):po(g);Bf(T,_,Gu,g,f.Its_type_0_is_not_a_valid_JSX_element_type,()=>{let P=uc(g);return zo(void 0,f._0_cannot_be_used_as_a_JSX_component,P)})}else hut(qWe(c),ds(u),c)}}function Yye(n,a,c){if(n.flags&524288){if(e0(n,a)||ox(n,a)||p8(a)&&vg(n,Ne)||c&&Jye(a))return!0}else if(n.flags&3145728&&W5(n)){for(let u of n.types)if(Yye(u,a,c))return!0}return!1}function W5(n){return!!(n.flags&524288&&!(Lr(n)&512)||n.flags&67108864||n.flags&1048576&>(n.types,W5)||n.flags&2097152&&oo(n.types,W5))}function but(n,a){if(mgt(n),n.expression){let c=po(n.expression,a);return n.dotDotDotToken&&c!==G&&!Gf(c)&&Ve(n,f.JSX_spread_child_must_be_an_array_type),c}else return ut}function $ye(n){return n.valueDeclaration?KS(n.valueDeclaration):0}function Qye(n){if(n.flags&8192||Tl(n)&4)return!0;if(ir(n.valueDeclaration)){let a=n.valueDeclaration.parent;return a&&dr(a)&&zl(a)===3}}function Zye(n,a,c,u,_,g=!0){let T=g?n.kind===166?n.right:n.kind===205?n:n.kind===208&&n.propertyName?n.propertyName:n.name:void 0;return IWe(n,a,c,u,_,T)}function IWe(n,a,c,u,_,g){var T;let P=Tf(_,c);if(a){if(ce<2&&xWe(_))return g&&Ve(g,f.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(P&64)return g&&Ve(g,f.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Si(_),Vn(dx(_))),!1;if(!(P&256)&&((T=_.declarations)!=null&&T.some(dre)))return g&&Ve(g,f.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,Si(_)),!1}if(P&64&&xWe(_)&&(T2(n)||lie(n)||tm(n.parent)&&zF(n.parent.parent))){let V=Og(Ru(_));if(V&&uht(n))return g&&Ve(g,f.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Si(_),Xf(V.name)),!1}if(!(P&6))return!0;if(P&2){let V=Og(Ru(_));return tbe(n,V)?!0:(g&&Ve(g,f.Property_0_is_private_and_only_accessible_within_class_1,Si(_),Vn(dx(_))),!1)}if(a)return!0;let W=j6e(n,V=>{let te=Xs(Sr(V));return e8e(te,_,c)});return!W&&(W=Eut(n),W=W&&e8e(W,_,c),P&256||!W)?(g&&Ve(g,f.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Si(_),Vn(dx(_)||u)),!1):P&256?!0:(u.flags&262144&&(u=u.isThisType?Cu(u):zd(u)),!u||!rC(u,W)?(g&&Ve(g,f.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Si(_),Vn(W),Vn(u)),!1):!0)}function Eut(n){let a=Sut(n),c=a?.type&&Ti(a.type);if(c&&c.flags&262144&&(c=Cu(c)),c&&Lr(c)&7)return ov(c)}function Sut(n){let a=Lu(n,!1,!1);return a&&$o(a)?M0(a):void 0}function xWe(n){return!!y5(n,a=>!(a.flags&8192))}function gC(n){return X_(po(n),n)}function F5(n){return dm(n,50331648)}function eve(n){return F5(n)?_y(n):n}function Tut(n,a){let c=Bl(n)?up(n):void 0;if(n.kind===106){Ve(n,f.The_value_0_cannot_be_used_here,"null");return}if(c!==void 0&&c.length<100){if(Fe(n)&&c==="undefined"){Ve(n,f.The_value_0_cannot_be_used_here,"undefined");return}Ve(n,a&16777216?a&33554432?f._0_is_possibly_null_or_undefined:f._0_is_possibly_undefined:f._0_is_possibly_null,c)}else Ve(n,a&16777216?a&33554432?f.Object_is_possibly_null_or_undefined:f.Object_is_possibly_undefined:f.Object_is_possibly_null)}function Aut(n,a){Ve(n,a&16777216?a&33554432?f.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:f.Cannot_invoke_an_object_which_is_possibly_undefined:f.Cannot_invoke_an_object_which_is_possibly_null)}function RWe(n,a,c){if(J&&n.flags&2){if(Bl(a)){let _=up(a);if(_.length<100)return Ve(a,f._0_is_of_type_unknown,_),ut}return Ve(a,f.Object_is_of_type_unknown),ut}let u=UM(n,50331648);if(u&50331648){c(a,u);let _=_y(n);return _.flags&229376?ut:_}return n}function X_(n,a){return RWe(n,a,Tut)}function DWe(n,a){let c=X_(n,a);if(c.flags&16384){if(Bl(a)){let u=up(a);if(Fe(a)&&u==="undefined")return Ve(a,f.The_value_0_cannot_be_used_here,u),c;if(u.length<100)return Ve(a,f._0_is_possibly_undefined,u),c}Ve(a,f.Object_is_possibly_undefined)}return c}function bee(n,a,c){return n.flags&64?Iut(n,a):nve(n,n.expression,gC(n.expression),n.name,a,c)}function Iut(n,a){let c=po(n.expression),u=C8(c,n.expression);return XZ(nve(n,n.expression,X_(u,n.expression),n.name,a),n,u!==c)}function CWe(n,a){let c=jF(n)&&k0(n.left)?X_(P5(n.left),n.left):gC(n.left);return nve(n,n.left,c,n.right,a)}function NWe(n){for(;n.parent.kind===217;)n=n.parent;return v_(n.parent)&&n.parent.expression===n}function Eee(n,a){for(let c=WF(a);c;c=ad(c)){let{symbol:u}=c,_=K2(u,n),g=u.members&&u.members.get(_)||u.exports&&u.exports.get(_);if(g)return g}}function xut(n){if(!ad(n))return yn(n,f.Private_identifiers_are_not_allowed_outside_class_bodies);if(!G4(n.parent)){if(!Xh(n))return yn(n,f.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);let a=dr(n.parent)&&n.parent.operatorToken.kind===103;if(!See(n)&&!a)return yn(n,f.Cannot_find_name_0,gr(n))}return!1}function Rut(n){xut(n);let a=See(n);return a&&B5(a,void 0,!1),G}function See(n){if(!Xh(n))return;let a=Qr(n);return a.resolvedSymbol===void 0&&(a.resolvedSymbol=Eee(n.escapedText,n)),a.resolvedSymbol}function tve(n,a){return ha(n,a.escapedName)}function Dut(n,a,c){let u,_=ms(n);_&&gn(_,T=>{let P=T.valueDeclaration;if(P&&iu(P)&&Ki(P.name)&&P.name.escapedText===a.escapedText)return u=T,!0});let g=Pm(a);if(u){let T=x.checkDefined(u.valueDeclaration),P=x.checkDefined(ad(T));if(c?.valueDeclaration){let W=c.valueDeclaration,V=ad(W);if(x.assert(!!V),Fn(V,te=>P===te)){let te=Ve(a,f.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,g,Vn(n));return Pa(te,Pr(W,f.The_shadowing_declaration_of_0_is_defined_here,g),Pr(T,f.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,g)),!0}}return Ve(a,f.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,g,Pm(P.name||C3)),!0}return!1}function PWe(n,a){return(eC(a)||T2(n)&&RM(a))&&Lu(n,!0,!1)===DM(a)}function nve(n,a,c,u,_,g){let T=Qr(a).resolvedSymbol,P=DI(n),W=Nu(P!==0||NWe(n)?Hp(c):c),V=xt(W)||W===go,te;if(Ki(u)){ce<99&&(P!==0&&xc(n,1048576),P!==1&&xc(n,524288));let _e=Eee(u.escapedText,u);if(P&&_e&&_e.valueDeclaration&&Ul(_e.valueDeclaration)&&yn(u,f.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,gr(u)),V){if(_e)return Vt(W)?ut:W;if(WF(u)===void 0)return yn(u,f.Private_identifiers_are_not_allowed_outside_class_bodies),G}if(te=_e&&tve(c,_e),te===void 0){if(Dut(c,u,_e))return ut;let je=WF(u);je&&p2(Gn(je),B.checkJs)&&yn(u,f.Private_field_0_must_be_declared_in_an_enclosing_class,gr(u))}else te.flags&65536&&!(te.flags&32768)&&P!==1&&Ve(n,f.Private_accessor_was_defined_without_a_getter)}else{if(V)return Fe(a)&&T&&pee(T,n),Vt(W)?ut:W;te=ha(W,u.escapedText,kee(W),n.kind===166)}Fe(a)&&T&&(em(B)||!(te&&(Y8(te)||te.flags&8&&n.parent.kind===306))||B0(B)&&Y8e(n))&&pee(T,n);let ye;if(te){let _e=Qve(te,u);if(cb(_e)&&kge(n,_e)&&_e.declarations&&tv(u,_e.declarations,u.escapedText),Cut(te,n,u),B5(te,n,FWe(a,T)),Qr(n).resolvedSymbol=te,Zye(n,a.kind===108,LI(n),W,te),RFe(n,te,P))return Ve(u,f.Cannot_assign_to_0_because_it_is_a_read_only_property,gr(u)),ut;ye=PWe(n,te)?et:g||v6(n)?NS(te):sr(te)}else{let _e=!Ki(u)&&(P===0||!BA(c)||XN(c))?ox(W,u.escapedText):void 0;if(!(_e&&_e.type)){let je=rve(n,c.symbol,!0);return!je&&b8(c)?G:c.symbol===tt?(tt.exports.has(u.escapedText)&&tt.exports.get(u.escapedText).flags&418?Ve(u,f.Property_0_does_not_exist_on_type_1,Vi(u.escapedText),Vn(c)):fe&&Ve(u,f.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Vn(c)),G):(u.escapedText&&!fA(n)&&kWe(u,XN(c)?W:c,je),ut)}_e.isReadonly&&($h(n)||Ej(n))&&Ve(n,f.Index_signature_in_type_0_only_permits_reading,Vn(W)),ye=B.noUncheckedIndexedAccess&&!$h(n)?ei([_e.type,k]):_e.type,B.noPropertyAccessFromIndexSignature&&kr(n)&&Ve(u,f.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Vi(u.escapedText)),_e.declaration&&ev(_e.declaration)&&tv(u,[_e.declaration],u.escapedText)}return MWe(n,te,ye,u,_)}function rve(n,a,c){var u;let _=Gn(n);if(_&&B.checkJs===void 0&&_.checkJsDirective===void 0&&(_.scriptKind===1||_.scriptKind===2)){let g=gn(a?.declarations,Gn),T=!a?.valueDeclaration||!ci(a.valueDeclaration)||((u=a.valueDeclaration.heritageClauses)==null?void 0:u.length)||Ny(!1,a.valueDeclaration);return!(_!==g&&g&&xh(g))&&!(c&&a&&a.flags&32&&T)&&!(n&&c&&kr(n)&&n.expression.kind===110&&T)}return!1}function MWe(n,a,c,u,_){let g=DI(n);if(g===1)return Bb(c,!!(a&&a.flags&16777216));if(a&&!(a.flags&98311)&&!(a.flags&8192&&c.flags&1048576)&&!Xee(a.declarations))return c;if(c===et)return tC(n,a);c=Mye(c,n,_);let T=!1;if(J&&xe&&Ns(n)&&n.expression.kind===110){let W=a&&a.valueDeclaration;if(W&&N6e(W)&&!ra(W)){let V=w8(n);V.kind===176&&V.parent===W.parent&&!(W.flags&33554432)&&(T=!0)}}else J&&a&&a.valueDeclaration&&kr(a.valueDeclaration)&&L2(a.valueDeclaration)&&w8(n)===w8(a.valueDeclaration)&&(T=!0);let P=Gb(n,c,T?zb(c):c);return T&&!FM(c)&&FM(P)?(Ve(u,f.Property_0_is_used_before_being_assigned,Si(a)),c):g?my(P):P}function Cut(n,a,c){let{valueDeclaration:u}=n;if(!u||Gn(a).isDeclarationFile)return;let _,g=gr(c);LWe(a)&&!gat(u)&&!(Ns(a)&&Ns(a.expression))&&!Qg(u,c)&&!(Ul(u)&&ite(u)&256)&&(me||!Nut(n))?_=Ve(c,f.Property_0_is_used_before_its_initialization,g):u.kind===263&&a.parent.kind!==183&&!(u.flags&33554432)&&!Qg(u,c)&&(_=Ve(c,f.Class_0_used_before_its_declaration,g)),_&&Pa(_,Pr(u,f._0_is_declared_here,g))}function LWe(n){return!!Fn(n,a=>{switch(a.kind){case 172:return!0;case 303:case 174:case 177:case 178:case 305:case 167:case 239:case 294:case 291:case 292:case 293:case 286:case 233:case 298:return!1;case 219:case 244:return Ko(a.parent)&&Al(a.parent.parent)?!0:"quit";default:return Xh(a)?!1:"quit"}})}function Nut(n){if(!(n.parent.flags&32))return!1;let a=sr(n.parent);for(;;){if(a=a.symbol&&Put(a),!a)return!1;let c=ha(a,n.escapedName);if(c&&c.valueDeclaration)return!0}}function Put(n){let a=Dp(n);if(a.length!==0)return ga(a)}function kWe(n,a,c){let u,_;if(!Ki(n)&&a.flags&1048576&&!(a.flags&402784252)){for(let T of a.types)if(!ha(T,n.escapedText)&&!ox(T,n.escapedText)){u=zo(u,f.Property_0_does_not_exist_on_type_1,Ts(n),Vn(T));break}}if(wWe(n.escapedText,a)){let T=Ts(n),P=Vn(a);u=zo(u,f.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,T,P,P+"."+T)}else{let T=U8(a);if(T&&ha(T,n.escapedText))u=zo(u,f.Property_0_does_not_exist_on_type_1,Ts(n),Vn(a)),_=Pr(n,f.Did_you_forget_to_use_await);else{let P=Ts(n),W=Vn(a),V=kut(P,a);if(V!==void 0)u=zo(u,f.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,P,W,V);else{let te=ive(n,a);if(te!==void 0){let ye=vl(te),_e=c?f.Property_0_may_not_exist_on_type_1_Did_you_mean_2:f.Property_0_does_not_exist_on_type_1_Did_you_mean_2;u=zo(u,_e,P,W,ye),_=te.valueDeclaration&&Pr(te.valueDeclaration,f._0_is_declared_here,ye)}else{let ye=Mut(a)?f.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:f.Property_0_does_not_exist_on_type_1;u=zo(tge(u,a),ye,P,W)}}}}let g=Mg(Gn(n),n,u);_&&Pa(g,_),e_(!c||u.code!==f.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,g)}function Mut(n){return B.lib&&!B.lib.includes("dom")&&Uct(n,a=>a.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(Vi(a.symbol.escapedName)))&&fy(n)}function wWe(n,a){let c=a.symbol&&ha(sr(a.symbol),n);return c!==void 0&&!!c.valueDeclaration&&ra(c.valueDeclaration)}function Lut(n){let a=Pm(n),u=J6().get(a);return u&&WG(u.keys())}function kut(n,a){let c=Nu(a).symbol;if(!c)return;let u=vl(c),g=J6().get(u);if(g){for(let[T,P]of g)if(Bo(P,n))return T}}function OWe(n,a){return z5(n,ms(a),106500)}function ive(n,a){let c=ms(a);if(typeof n!="string"){let u=n.parent;kr(u)&&(c=jr(c,_=>zWe(u,a,_))),n=gr(n)}return z5(n,c,111551)}function WWe(n,a){let c=No(n)?n:gr(n),u=ms(a);return(c==="for"?Vr(u,g=>vl(g)==="htmlFor"):c==="class"?Vr(u,g=>vl(g)==="className"):void 0)??z5(c,u,111551)}function ove(n,a){let c=ive(n,a);return c&&vl(c)}function ave(n,a,c){return x.assert(a!==void 0,"outername should always be defined"),Bp(n,a,c,void 0,a,!1,!1,!0,(_,g,T)=>{x.assertEqual(a,g,"name should equal outerName");let P=Vu(_,g,T);if(P)return P;let W;return _===be?W=to(["string","number","boolean","object","bigint","symbol"],te=>_.has(te.charAt(0).toUpperCase()+te.slice(1))?Ka(524288,te):void 0).concat(Wo(_.values())):W=Wo(_.values()),z5(Vi(g),W,T)})}function wut(n,a,c){let u=ave(n,a,c);return u&&vl(u)}function Tee(n,a){return a.exports&&z5(gr(n),AA(a),2623475)}function Out(n,a){let c=Tee(n,a);return c&&vl(c)}function Wut(n,a,c){function u(T){let P=e0(n,T);if(P){let W=QA(sr(P));return!!W&&Q_(W)>=1&&ya(c,p_(W,0))}return!1}let _=$h(a)?"set":"get";if(!u(_))return;let g=tk(a.expression);return g===void 0?g=_:g+="."+_,g}function Fut(n,a){let c=a.types.filter(u=>!!(u.flags&128));return GC(n.value,c,u=>u.value)}function z5(n,a,c){return GC(n,a,u);function u(_){let g=vl(_);if(!ao(g,'"')){if(_.flags&c)return g;if(_.flags&2097152){let T=EA(_);if(T&&T.flags&c)return g}}}}function B5(n,a,c){let u=n&&n.flags&106500&&n.valueDeclaration;if(!u)return;let _=fp(u,2),g=n.valueDeclaration&&iu(n.valueDeclaration)&&Ki(n.valueDeclaration.name);if(!(!_&&!g)&&!(a&&v6(a)&&!(n.flags&65536))){if(c){let T=Fn(a,ws);if(T&&T.symbol===n)return}(Tl(n)&1?qi(n).target:n).isReferenced=-1}}function FWe(n,a){return n.kind===110||!!a&&Bl(n)&&a===Wm(Fp(n))}function zut(n,a){switch(n.kind){case 211:return sve(n,n.expression.kind===108,a,Hp(po(n.expression)));case 166:return sve(n,!1,a,Hp(po(n.left)));case 205:return sve(n,!1,a,Ti(n))}}function zWe(n,a,c){return lve(n,n.kind===211&&n.expression.kind===108,!1,a,c)}function sve(n,a,c,u){if(xt(u))return!0;let _=ha(u,c);return!!_&&lve(n,a,!1,u,_)}function lve(n,a,c,u,_){if(xt(u))return!0;if(_.valueDeclaration&&ou(_.valueDeclaration)){let g=ad(_.valueDeclaration);return!Ud(n)&&!!Fn(n,T=>T===g)}return IWe(n,a,c,u,_)}function But(n){let a=n.initializer;if(a.kind===261){let c=a.declarations[0];if(c&&!Qo(c.name))return Sr(c)}else if(a.kind===80)return Wm(a)}function Gut(n){return _u(n).length===1&&!!vg(n,It)}function Vut(n){let a=fs(n);if(a.kind===80){let c=Wm(a);if(c.flags&3){let u=n,_=n.parent;for(;_;){if(_.kind===249&&u===_.statement&&But(_)===c&&Gut(xd(_.expression)))return!0;u=_,_=_.parent}}}return!1}function jut(n,a){return n.flags&64?Uut(n,a):BWe(n,gC(n.expression),a)}function Uut(n,a){let c=po(n.expression),u=C8(c,n.expression);return XZ(BWe(n,X_(u,n.expression),a),n,u!==c)}function BWe(n,a,c){let u=DI(n)!==0||NWe(n)?Hp(a):a,_=n.argumentExpression,g=po(_);if(Vt(u)||u===go)return u;if(kee(u)&&!as(_))return Ve(_,f.A_const_enum_member_can_only_be_accessed_using_a_string_literal),ut;let T=Vut(_)?It:g,P=$h(n)?4|(BA(u)&&!XN(u)?2:0):32,W=Lb(u,T,P,n)||ut;return qFe(MWe(n,Qr(n).resolvedSymbol,W,_,c),n)}function GWe(n){return v_(n)||U0(n)||au(n)}function $A(n){return GWe(n)&&gn(n.typeArguments,Ia),n.kind===215?po(n.template):au(n)?po(n.attributes):dr(n)?po(n.left):v_(n)&&gn(n.arguments,a=>{po(a)}),yt}function Y_(n){return $A(n),cn}function Hut(n,a,c){let u,_,g=0,T,P=-1,W;x.assert(!a.length);for(let V of n){let te=V.declaration&&Sr(V.declaration),ye=V.declaration&&V.declaration.parent;!_||te===_?u&&ye===u?T=T+1:(u=ye,T=g):(T=g=a.length,u=ye),_=te,vK(V)?(P++,W=P,g++):W=T,a.splice(W,0,c?zot(V,c):V)}}function Aee(n){return!!n&&(n.kind===230||n.kind===237&&n.isSpread)}function Iee(n){return Kl(n,Aee)}function VWe(n){return!!(n.flags&16384)}function Kut(n){return!!(n.flags&49155)}function xee(n,a,c,u=!1){let _,g=!1,T=Kp(c),P=Q_(c);if(n.kind===215)if(_=a.length,n.template.kind===228){let W=Ja(n.template.templateSpans);g=Fl(W.literal)||!!W.literal.isUnterminated}else{let W=n.template;x.assert(W.kind===15),g=!!W.isUnterminated}else if(n.kind===170)_=YWe(n,c);else if(n.kind===226)_=1;else if(au(n)){if(g=n.attributes.end===n.end,g)return!0;_=P===0?a.length:1,T=a.length===0?T:1,P=Math.min(P,1)}else if(n.arguments){_=u?a.length+1:a.length,g=n.arguments.end===n.end;let W=Iee(a);if(W>=0)return W>=Q_(c)&&(zh(c)||WT)return!1;if(g||_>=P)return!0;for(let W=_;W=u&&a.length<=c}function jWe(n,a){let c;return!!(n.target&&(c=VS(n.target,a))&&pC(c))}function QA(n){return F8(n,0,!1)}function UWe(n){return F8(n,0,!1)||F8(n,1,!1)}function F8(n,a,c){if(n.flags&524288){let u=l_(n);if(c||u.properties.length===0&&u.indexInfos.length===0){if(a===0&&u.callSignatures.length===1&&u.constructSignatures.length===0)return u.callSignatures[0];if(a===1&&u.constructSignatures.length===1&&u.callSignatures.length===0)return u.constructSignatures[0]}}}function HWe(n,a,c,u){let _=M8(n.typeParameters,n,0,u),g=z8(a),T=c&&(g&&g.flags&262144?c.nonFixingMapper:c.mapper),P=T?mC(a,T):a;return cye(P,n,(W,V)=>{hy(_.inferences,W,V)}),c||dye(a,n,(W,V)=>{hy(_.inferences,W,V,128)}),h8(n,Sye(_),ir(a.declaration))}function Jut(n,a,c,u){let _=gee(a,n),g=bC(n.attributes,_,u,c);return hy(u.inferences,g,_),Sye(u)}function KWe(n){if(!n)return er;let a=po(n);return jie(n)?a:eN(n.parent)?_y(a):Ud(n.parent)?qZ(a):a}function dve(n,a,c,u,_){if(au(n))return Jut(n,a,u,_);if(n.kind!==170&&n.kind!==226){let W=oo(a.typeParameters,te=>!!OA(te)),V=Hu(n,W?8:0);if(V){let te=ds(a);if(l0(te)){let ye=BS(n);if(!(!W&&Hu(n,8)!==V)){let At=mye(act(ye,1)),rn=io(V,At),sn=QA(rn),nr=sn&&sn.typeParameters?WA(lge(sn,sn.typeParameters)):rn;hy(_.inferences,nr,te,128)}let je=M8(a.typeParameters,a,_.flags),mt=io(V,ye&&ye.returnMapper);hy(je.inferences,mt,te),_.returnMapper=gt(je.inferences,EC)?mye(dct(je)):void 0}}}let g=B8(a),T=g?Math.min(Kp(a)-1,c.length):c.length;if(g&&g.flags&262144){let W=Vr(_.inferences,V=>V.typeParameter===g);W&&(W.impliedArity=Kl(c,Aee,T)<0?c.length-T:void 0)}let P=n0(a);if(P&&l0(P)){let W=XWe(n);hy(_.inferences,KWe(W),P)}for(let W=0;W=c-1){let te=n[c-1];if(Aee(te)){let ye=te.kind===237?te.type:bC(te.expression,u,_,g);return uv(ye)?JWe(ye):Bd(fv(33,ye,Me,te.kind===230?te.expression:te),T)}}let P=[],W=[],V=[];for(let te=a;tezo(void 0,f.Type_0_does_not_satisfy_the_constraint_1):void 0,ye=u||f.Type_0_does_not_satisfy_the_constraint_1;P||(P=Np(g,T));let _e=T[W];if(!eu(_e,Up(io(V,P),_e),c?a[W]:void 0,ye,te))return}}return T}function qWe(n){if(ux(n.tagName))return 2;let a=Nu(po(n.tagName));return Nn(Jo(a,1))?0:Nn(Jo(a,0))?1:2}function qut(n,a,c,u,_,g,T){let P=gee(a,n),W=bC(n.attributes,P,void 0,u),V=u&4?P8(W):W;return te()&&qge(V,P,c,_?n.tagName:void 0,n.attributes,void 0,g,T);function te(){var ye;if(qye(n))return!0;let _e=(P_(n)||OT(n))&&!(ux(n.tagName)||qm(n.tagName))?po(n.tagName):void 0;if(!_e)return!0;let je=Jo(_e,0);if(!Nn(je))return!0;let mt=t4e(n);if(!mt)return!0;let At=Bs(mt,111551,!0,!1,n);if(!At)return!0;let rn=sr(At),sn=Jo(rn,0);if(!Nn(sn))return!0;let nr=!1,Mn=0;for(let On of sn){let Ln=p_(On,0),Yn=Jo(Ln,0);if(Nn(Yn))for(let jn of Yn){if(nr=!0,zh(jn))return!0;let $n=Kp(jn);$n>Mn&&(Mn=$n)}}if(!nr)return!0;let an=1/0;for(let On of je){let Ln=Q_(On);Ln{_.push(g.expression)}),_}if(n.kind===170)return Xut(n);if(n.kind===226)return[n.left];if(au(n))return n.attributes.properties.length>0||P_(n)&&n.parent.children.length>0?[n.attributes]:Xe;let a=n.arguments||Xe,c=Iee(a);if(c>=0){let u=a.slice(0,c);for(let _=c;_{var V;let te=T.target.elementFlags[W],ye=V5(g,te&4?Bd(P):P,!!(te&12),(V=T.target.labeledElementDeclarations)==null?void 0:V[W]);u.push(ye)}):u.push(g)}return u}return a}function Xut(n){let a=n.expression,c=Ave(n);if(c){let u=[];for(let _ of c.parameters){let g=sr(_);u.push(V5(a,g))}return u}return x.fail()}function YWe(n,a){return B.experimentalDecorators?Yut(n,a):2}function Yut(n,a){switch(n.parent.kind){case 263:case 231:return 1;case 172:return I_(n.parent)?3:2;case 174:case 177:case 178:return ce===0||a.parameters.length<=2?2:3;case 169:return 3;default:return x.fail()}}function $We(n){let a=Gn(n),{start:c,length:u}=fT(a,kr(n.expression)?n.expression.name:n.expression);return{start:c,length:u,sourceFile:a}}function j5(n,a,...c){if(ia(n)){let{sourceFile:u,start:_,length:g}=$We(n);return"message"in a?Qc(u,_,g,a,...c):rj(u,a)}else return"message"in a?Pr(n,a,...c):Mg(Gn(n),n,a)}function $ut(n){return v_(n)?kr(n.expression)?n.expression.name:n.expression:U0(n)?kr(n.tag)?n.tag.name:n.tag:au(n)?n.tagName:n}function Qut(n){if(!ia(n)||!Fe(n.expression))return!1;let a=hl(n.expression,n.expression.escapedText,111551,void 0,void 0,!1),c=a?.valueDeclaration;if(!c||!Ao(c)||!F0(c.parent)||!j0(c.parent.parent)||!Fe(c.parent.parent.expression))return!1;let u=Ege(!1);return u?zm(c.parent.parent.expression,!0)===u:!1}function QWe(n,a,c,u){var _;let g=Iee(c);if(g>-1)return Pr(c[g],f.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let T=Number.POSITIVE_INFINITY,P=Number.NEGATIVE_INFINITY,W=Number.NEGATIVE_INFINITY,V=Number.POSITIVE_INFINITY,te;for(let At of a){let rn=Q_(At),sn=Kp(At);rnW&&(W=rn),c.length_?T=Math.min(T,W):V<_&&(g=Math.max(g,V))}if(g!==-1/0&&T!==1/0){if(u){let P=zo(void 0,f.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,_,g,T);return P=zo(P,u),g2(Gn(n),c,P)}return Hx(Gn(n),c,f.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,_,g,T)}if(u){let P=zo(void 0,f.Expected_0_type_arguments_but_got_1,g===-1/0?T:g,_);return P=zo(P,u),g2(Gn(n),c,P)}return Hx(Gn(n),c,f.Expected_0_type_arguments_but_got_1,g===-1/0?T:g,_)}function yC(n,a,c,u,_,g){let T=n.kind===215,P=n.kind===170,W=au(n),V=n.kind===226,te=!j&&!c,ye;!P&&!V&&!mT(n)&&(ye=n.typeArguments,(T||W||n.expression.kind!==108)&&gn(ye,Ia));let _e=c||[];Hut(a,_e,_),x.assert(_e.length,"Revert #54442 and add a testcase with whatever triggered this");let je=Dee(n),mt=_e.length===1&&!_e[0].typeParameters,At=!P&&!mt&>(je,zf)?4:0,rn,sn,nr,Mn,an=!!(u&16)&&n.kind===213&&n.arguments.hasTrailingComma;if(_e.length>1&&(Mn=Ln(_e,Ih,mt,an)),Mn||(Mn=Ln(_e,Gu,mt,an)),Mn)return Mn;if(Mn=ept(n,_e,je,!!c,u),Qr(n).resolvedSignature=Mn,te)if(!g&&V&&(g=f.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),rn)if(rn.length===1||rn.length>3){let Yn=rn[rn.length-1],jn;rn.length>3&&(jn=zo(jn,f.The_last_overload_gave_the_following_error),jn=zo(jn,f.No_overload_matches_this_call)),g&&(jn=zo(jn,g));let $n=G5(n,je,Yn,Gu,0,!0,()=>jn);if($n)for(let Ro of $n)Yn.declaration&&rn.length>3&&Pa(Ro,Pr(Yn.declaration,f.The_last_overload_is_declared_here)),On(Yn,Ro),Qa.add(Ro);else x.fail("No error for last overload signature")}else{let Yn=[],jn=0,$n=Number.MAX_VALUE,Ro=0,bo=0;for(let sp of rn){let Xn=G5(n,je,sp,Gu,0,!0,()=>zo(void 0,f.Overload_0_of_1_2_gave_the_following_error,bo+1,_e.length,Nh(sp)));Xn?(Xn.length<=$n&&($n=Xn.length,Ro=bo),jn=Math.max(jn,Xn.length),Yn.push(Xn)):x.fail("No error for 3 or fewer overload signatures"),bo++}let Fo=jn>1?Yn[Ro]:pm(Yn);x.assert(Fo.length>0,"No errors reported for 3 or fewer overload signatures");let fo=zo(mn(Fo,Jre),f.No_overload_matches_this_call);g&&(fo=zo(fo,g));let Rc=[...va(Fo,sp=>sp.relatedInformation)],Vf;if(oo(Fo,sp=>sp.start===Fo[0].start&&sp.length===Fo[0].length&&sp.file===Fo[0].file)){let{file:sp,start:Pn,length:Xn}=Fo[0];Vf={file:sp,start:Pn,length:Xn,code:fo.code,category:fo.category,messageText:fo,relatedInformation:Rc}}else Vf=Mg(Gn(n),$ut(n),fo,Rc);On(rn[0],Vf),Qa.add(Vf)}else if(sn)Qa.add(QWe(n,[sn],je,g));else if(nr)pve(nr,n.typeArguments,!0,g);else{let Yn=jr(a,jn=>cve(jn,ye));Yn.length===0?Qa.add(Zut(n,a,ye,g)):Qa.add(QWe(n,Yn,je,g))}return Mn;function On(Yn,jn){var $n,Ro;let bo=rn,Fo=sn,fo=nr,Rc=((Ro=($n=Yn.declaration)==null?void 0:$n.symbol)==null?void 0:Ro.declarations)||Xe,sp=Rc.length>1?Vr(Rc,Pn=>ws(Pn)&&Hf(Pn.body)):void 0;if(sp){let Pn=lm(sp),Xn=!Pn.typeParameters;Ln([Pn],Gu,Xn)&&Pa(jn,Pr(sp,f.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}rn=bo,sn=Fo,nr=fo}function Ln(Yn,jn,$n,Ro=!1){if(rn=void 0,sn=void 0,nr=void 0,$n){let bo=Yn[0];if(gt(ye)||!xee(n,je,bo,Ro))return;if(G5(n,je,bo,jn,0,!1,void 0)){rn=[bo];return}return bo}for(let bo=0;bo0),px(n),u||a.length===1||a.some(g=>!!g.typeParameters)?rpt(n,a,c,_):tpt(a)}function tpt(n){let a=to(n,W=>W.thisParameter),c;a.length&&(c=ZWe(a,a.map(K5)));let{min:u,max:_}=Eoe(n,npt),g=[];for(let W=0;W<_;W++){let V=to(n,te=>qd(te)?WVS(te,W))))}let T=to(n,W=>qd(W)?Ja(W.parameters):void 0),P=128;if(T.length!==0){let W=Bd(ei(to(n,Mwe),2));g.push(eFe(T,W)),P|=1}return n.some(vK)&&(P|=2),yg(n[0].declaration,void 0,c,g,ga(n.map(ds)),void 0,u,P)}function npt(n){let a=n.parameters.length;return qd(n)?a-1:a}function ZWe(n,a){return eFe(n,ei(a,2))}function eFe(n,a){return UA(Va(n),a)}function rpt(n,a,c,u){let _=apt(a,Zt===void 0?c.length:Zt),g=a[_],{typeParameters:T}=g;if(!T)return g;let P=GWe(n)?n.typeArguments:void 0,W=P?yZ(g,ipt(P,T,ir(n))):opt(n,T,g,c,u);return a[_]=W,W}function ipt(n,a,c){let u=n.map(fx);for(;u.length>a.length;)u.pop();for(;u.length=a)return _;T>u&&(u=T,c=_)}return c}function spt(n,a,c){if(n.expression.kind===108){let W=Wye(n.expression);if(xt(W)){for(let V of n.arguments)po(V);return yt}if(!Vt(W)){let V=S_(ad(n));if(V){let te=Lh(W,V.typeArguments,V);return yC(n,te,a,c,0)}}return $A(n)}let u,_=po(n.expression);if(oT(n)){let W=C8(_,n.expression);u=W===_?0:tN(n)?16:8,_=W}else u=0;if(_=RWe(_,n.expression,Aut),_===go)return pr;let g=Nu(_);if(Vt(g))return Y_(n);let T=Jo(g,0),P=Jo(g,1).length;if(U5(_,g,T.length,P))return!Vt(_)&&n.typeArguments&&Ve(n,f.Untyped_function_calls_may_not_accept_type_arguments),$A(n);if(!T.length){if(P)Ve(n,f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Vn(_));else{let W;if(n.arguments.length===1){let V=Gn(n).text;jd(V.charCodeAt(Na(V,n.expression.end,!0)-1))&&(W=Pr(n.expression,f.Are_you_missing_a_semicolon))}mve(n.expression,g,0,W)}return Y_(n)}return c&8&&!n.typeArguments&&T.some(lpt)?(WFe(n,c),yr):T.some(W=>ir(W.declaration)&&!!yV(W.declaration))?(Ve(n,f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Vn(_)),Y_(n)):yC(n,T,a,c,u)}function lpt(n){return!!(n.typeParameters&&ibe(ds(n)))}function U5(n,a,c,u){return xt(n)||xt(a)&&!!(n.flags&262144)||!c&&!u&&!(a.flags&1048576)&&!(c_(a).flags&131072)&&ya(n,Lt)}function cpt(n,a,c){if(n.arguments&&ce<1){let T=Iee(n.arguments);T>=0&&Ve(n.arguments[T],f.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let u=gC(n.expression);if(u===go)return pr;if(u=Nu(u),Vt(u))return Y_(n);if(xt(u))return n.typeArguments&&Ve(n,f.Untyped_function_calls_may_not_accept_type_arguments),$A(n);let _=Jo(u,1);if(_.length){if(!dpt(n,_[0]))return Y_(n);if(tFe(_,P=>!!(P.flags&4)))return Ve(n,f.Cannot_create_an_instance_of_an_abstract_class),Y_(n);let T=u.symbol&&Og(u.symbol);return T&&$r(T,64)?(Ve(n,f.Cannot_create_an_instance_of_an_abstract_class),Y_(n)):yC(n,_,a,c,0)}let g=Jo(u,0);if(g.length){let T=yC(n,g,a,c,0);return fe||(T.declaration&&!$_(T.declaration)&&ds(T)!==er&&Ve(n,f.Only_a_void_function_can_be_called_with_the_new_keyword),n0(T)===er&&Ve(n,f.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),T}return mve(n.expression,u,1),Y_(n)}function tFe(n,a){return To(n)?gt(n,c=>tFe(c,a)):n.compositeKind===1048576?gt(n.compositeSignatures,a):a(n)}function fve(n,a){let c=Dp(a);if(!Nn(c))return!1;let u=c[0];if(u.flags&2097152){let _=u.types,g=fwe(_),T=0;for(let P of u.types){if(!g[T]&&Lr(P)&3&&(P.symbol===n||fve(n,P)))return!0;T++}return!1}return u.symbol===n?!0:fve(n,u)}function dpt(n,a){if(!a||!a.declaration)return!0;let c=a.declaration,u=PI(c,6);if(!u||c.kind!==176)return!0;let _=Og(c.parent.symbol),g=Xs(c.parent.symbol);if(!tbe(n,_)){let T=ad(n);if(T&&u&4){let P=fx(T);if(fve(c.parent.symbol,P))return!0}return u&2&&Ve(n,f.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Vn(g)),u&4&&Ve(n,f.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Vn(g)),!1}return!0}function nFe(n,a,c){let u,_=c===0,g=eI(a),T=g&&Jo(g,c).length>0;if(a.flags&1048576){let W=a.types,V=!1;for(let te of W)if(Jo(te,c).length!==0){if(V=!0,u)break}else if(u||(u=zo(u,_?f.Type_0_has_no_call_signatures:f.Type_0_has_no_construct_signatures,Vn(te)),u=zo(u,_?f.Not_all_constituents_of_type_0_are_callable:f.Not_all_constituents_of_type_0_are_constructable,Vn(a))),V)break;V||(u=zo(void 0,_?f.No_constituent_of_type_0_is_callable:f.No_constituent_of_type_0_is_constructable,Vn(a))),u||(u=zo(u,_?f.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:f.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Vn(a)))}else u=zo(u,_?f.Type_0_has_no_call_signatures:f.Type_0_has_no_construct_signatures,Vn(a));let P=_?f.This_expression_is_not_callable:f.This_expression_is_not_constructable;if(ia(n.parent)&&n.parent.arguments.length===0){let{resolvedSymbol:W}=Qr(n);W&&W.flags&32768&&(P=f.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:zo(u,P),relatedMessage:T?f.Did_you_forget_to_use_await:void 0}}function mve(n,a,c,u){let{messageChain:_,relatedMessage:g}=nFe(n,a,c),T=Mg(Gn(n),n,_);if(g&&Pa(T,Pr(n,g)),ia(n.parent)){let{start:P,length:W}=$We(n.parent);T.start=P,T.length=W}Qa.add(T),rFe(a,c,u?Pa(T,u):T)}function rFe(n,a,c){if(!n.symbol)return;let u=qi(n.symbol).originatingImport;if(u&&!Op(u)){let _=Jo(sr(qi(n.symbol).target),a);if(!_||!_.length)return;Pa(c,Pr(u,f.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function upt(n,a,c){let u=po(n.tag),_=Nu(u);if(Vt(_))return Y_(n);let g=Jo(_,0),T=Jo(_,1).length;if(U5(u,_,g.length,T))return $A(n);if(!g.length){if(uu(n.parent)){let P=Pr(n.tag,f.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return Qa.add(P),Y_(n)}return mve(n.tag,_,0),Y_(n)}return yC(n,g,a,c,0)}function ppt(n){switch(n.parent.kind){case 263:case 231:return f.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 169:return f.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 172:return f.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 174:case 177:case 178:return f.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return x.fail()}}function fpt(n,a,c){let u=po(n.expression),_=Nu(u);if(Vt(_))return Y_(n);let g=Jo(_,0),T=Jo(_,1).length;if(U5(u,_,g.length,T))return $A(n);if(hpt(n,g)&&!Ou(n.expression)){let W=uc(n.expression,!1);return Ve(n,f._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,W),Y_(n)}let P=ppt(n);if(!g.length){let W=nFe(n.expression,_,0),V=zo(W.messageChain,P),te=Mg(Gn(n.expression),n.expression,V);return W.relatedMessage&&Pa(te,Pr(n.expression,W.relatedMessage)),Qa.add(te),rFe(_,0,te),Y_(n)}return yC(n,g,a,c,0,P)}function Cee(n,a){let c=YA(n),u=c&&xp(c),_=u&&Vu(u,tf.Element,788968),g=_&&Et.symbolToEntityName(_,788968,n),T=L.createFunctionTypeNode(void 0,[L.createParameterDeclaration(void 0,void 0,"props",void 0,Et.typeToTypeNode(a,n))],g?L.createTypeReferenceNode(g,void 0):L.createKeywordTypeNode(133)),P=Ka(1,"props");return P.links.type=a,yg(T,void 0,void 0,[P],_?Xs(_):ut,void 0,1,0)}function mpt(n,a,c){if(ux(n.tagName)){let T=EWe(n),P=Cee(n,T);return Wb(bC(n.attributes,gee(P,n),void 0,0),T,n.tagName,n.attributes),Nn(n.typeArguments)&&(gn(n.typeArguments,Ia),Qa.add(Hx(Gn(n),n.typeArguments,f.Expected_0_type_arguments_but_got_1,0,Nn(n.typeArguments)))),P}let u=po(n.tagName),_=Nu(u);if(Vt(_))return Y_(n);let g=vWe(u,n);return U5(u,_,g.length,0)?$A(n):g.length===0?(Ve(n.tagName,f.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,uc(n.tagName)),Y_(n)):yC(n,g,a,c,0)}function _pt(n,a,c){let u=po(n.right);if(!xt(u)){let _=Dve(u);if(_){let g=Nu(_);if(Vt(g))return Y_(n);let T=Jo(g,0),P=Jo(g,1);if(U5(_,g,T.length,P.length))return $A(n);if(T.length)return yC(n,T,a,c,0)}else if(!(Qee(u)||Ob(u,Lt)))return Ve(n.right,f.The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method),Y_(n)}return yt}function hpt(n,a){return a.length&&oo(a,c=>c.minArgumentCount===0&&!qd(c)&&c.parameters.length1?tc(n.arguments[1]):void 0;for(let g=2;g{let T=Hp(_);WZ(g,T)||KOe(_,g,c,f.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)})}function Ipt(n){let a=po(n.expression),c=C8(a,n.expression);return XZ(_y(c),n,c!==a)}function xpt(n){return n.flags&64?Ipt(n):_y(po(n.expression))}function dFe(n){if(i4e(n),gn(n.typeArguments,Ia),n.kind===233){let c=Py(n.parent);c.kind===226&&c.operatorToken.kind===104&&C0(n,c.right)&&Ve(n,f.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}let a=n.kind===233?po(n.expression):k0(n.exprName)?P5(n.exprName):po(n.exprName);return uFe(a,n)}function uFe(n,a){let c=a.typeArguments;if(n===go||Vt(n)||!gt(c))return n;let u=!1,_,g=P(n),T=u?_:n;return T&&Qa.add(Hx(Gn(a),c,f.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,Vn(T))),g;function P(V){let te=!1,ye=!1,_e=je(V);return u||(u=ye),te&&!ye&&(_??(_=V)),_e;function je(mt){if(mt.flags&524288){let At=l_(mt),rn=W(At.callSignatures),sn=W(At.constructSignatures);if(te||(te=At.callSignatures.length!==0||At.constructSignatures.length!==0),ye||(ye=rn.length!==0||sn.length!==0),rn!==At.callSignatures||sn!==At.constructSignatures){let nr=Ds(Ka(0,"__instantiationExpression"),At.members,rn,sn,At.indexInfos);return nr.objectFlags|=8388608,nr.node=a,nr}}else if(mt.flags&58982400){let At=zd(mt);if(At){let rn=je(At);if(rn!==At)return rn}}else{if(mt.flags&1048576)return ll(mt,P);if(mt.flags&2097152)return ga(Pc(mt.types,je))}return mt}}function W(V){let te=jr(V,ye=>!!ye.typeParameters&&cve(ye,c));return Pc(te,ye=>{let _e=pve(ye,c,!0);return _e?h8(ye,_e,ir(ye.declaration)):ye})}}function Rpt(n){return Ia(n.type),yve(n.expression,n.type)}function yve(n,a,c){let u=po(n,c),_=Ti(a);if(Vt(_))return _;let g=Fn(a.parent,T=>T.kind===238||T.kind===357);return Wb(u,_,g,n,f.Type_0_does_not_satisfy_the_expected_type_1),u}function Dpt(n){return Agt(n),n.keywordToken===105?vve(n):n.keywordToken===102?Cpt(n):x.assertNever(n.keywordToken)}function pFe(n){switch(n.keywordToken){case 102:return Jwe();case 105:let a=vve(n);return Vt(a)?ut:Kpt(a);default:x.assertNever(n.keywordToken)}}function vve(n){let a=sie(n);if(a)if(a.kind===176){let c=Sr(a.parent);return sr(c)}else{let c=Sr(a);return sr(c)}else return Ve(n,f.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),ut}function Cpt(n){z===100||z===199?Gn(n).impliedNodeFormat!==99&&Ve(n,f.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):z<6&&z!==4&&Ve(n,f.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);let a=Gn(n);return x.assert(!!(a.flags&8388608),"Containing file is missing import meta node flag."),n.name.escapedText==="meta"?Kwe():ut}function K5(n){let a=n.valueDeclaration;return op(sr(n),!1,!!a&&(Mv(a)||YN(a)))}function bve(n,a,c="arg"){return n?(x.assert(Fe(n.name)),n.name.escapedText):`${c}_${a}`}function XM(n,a,c){let u=n.parameters.length-(qd(n)?1:0);if(a=u-1)return a===u-1?g:Bd(Cp(g,It));let T=[],P=[],W=[];for(let V=a;V!(W&1)),P=T<0?g.target.fixedLength:T;P>0&&(_=n.parameters.length-1+P)}}if(_===void 0){if(!c&&n.flags&32)return 0;_=n.minArgumentCount}if(u)return _;for(let g=_-1;g>=0;g--){let T=p_(n,g);if(cc(T,VWe).flags&131072)break;_=g}n.resolvedMinArgumentCount=_}return n.resolvedMinArgumentCount}function zh(n){if(qd(n)){let a=sr(n.parameters[n.parameters.length-1]);return!wa(a)||a.target.hasRestElement}return!1}function z8(n){if(qd(n)){let a=sr(n.parameters[n.parameters.length-1]);if(!wa(a))return xt(a)?Zl:a;if(a.target.hasRestElement)return WM(a,a.target.fixedLength)}}function B8(n){let a=z8(n);return a&&!Gf(a)&&!xt(a)?a:void 0}function Eve(n){return Sve(n,Fr)}function Sve(n,a){return n.parameters.length>0?p_(n,0):a}function hFe(n,a,c){let u=n.parameters.length-(qd(n)?1:0);for(let _=0;_=0);let g=Pl(u.parent)?sr(Sr(u.parent.parent)):J6e(u.parent),T=Pl(u.parent)?Me:q6e(u.parent),P=d_(_),W=t_("target",g),V=t_("propertyKey",T),te=t_("parameterIndex",P);c.decoratorSignature=K8(void 0,void 0,[W,V,te],er);break}case 174:case 177:case 178:case 172:{let u=a;if(!ci(u.parent))break;let _=J6e(u),g=t_("target",_),T=q6e(u),P=t_("propertyKey",T),W=Uo(u)?er:eOe(fx(u));if(ce!==0&&(!Uo(a)||I_(a))){let te=eOe(fx(u)),ye=t_("descriptor",te);c.decoratorSignature=K8(void 0,void 0,[g,P,ye],ei([W,er]))}else c.decoratorSignature=K8(void 0,void 0,[g,P],ei([W,er]));break}}return c.decoratorSignature===yt?void 0:c.decoratorSignature}function Ave(n){return Z?Hpt(n):Upt(n)}function X5(n){let a=o5(!0);return a!==Lo?(n=pv(eL(n))||un,sv(a,[n])):un}function vFe(n){let a=$we(!0);return a!==Lo?(n=pv(eL(n))||un,sv(a,[n])):un}function Y5(n,a){let c=X5(a);return c===un?(Ve(n,Op(n)?f.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:f.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),ut):(Ege(!0)||Ve(n,Op(n)?f.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:f.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),c)}function Kpt(n){let a=Ka(0,"NewTargetExpression"),c=Ka(4,"target",8);c.parent=a,c.links.type=n;let u=aa([c]);return a.members=u,Ds(a,u,Xe,Xe,Xe)}function Mee(n,a){if(!n.body)return ut;let c=Vc(n),u=(c&2)!==0,_=(c&1)!==0,g,T,P,W=er;if(n.body.kind!==241)g=tc(n.body,a&&a&-9),u&&(g=eL(H8(g,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(_){let V=IFe(n,a);V?V.length>0&&(g=ei(V,2)):W=Fr;let{yieldTypes:te,nextTypes:ye}=Jpt(n,a);T=gt(te)?ei(te,2):void 0,P=gt(ye)?ga(ye):void 0}else{let V=IFe(n,a);if(!V)return c&2?Y5(n,Fr):Fr;if(V.length===0){let te=fee(n,void 0),ye=te&&(sG(te,c)||er).flags&32768?Me:er;return c&2?Y5(n,ye):ye}g=ei(V,2)}if(g||T||P){if(T&&ZZ(n,T,3),g&&ZZ(n,g,1),P&&ZZ(n,P,2),g&&u_(g)||T&&u_(T)||P&&u_(P)){let V=Uye(n),te=V?V===lm(n)?_?void 0:g:_ee(ds(V),n,void 0):void 0;_?(T=sye(T,te,0,u),g=sye(g,te,1,u),P=sye(P,te,2,u)):g=qlt(g,te,u)}T&&(T=Hp(T)),g&&(g=Hp(g)),P&&(P=Hp(P))}return _?bFe(T||Fr,g||W,P||oWe(2,n)||un,u):u?X5(g||W):g||W}function bFe(n,a,c,u){let _=u?zs:hc,g=_.getGlobalGeneratorType(!1);if(n=_.resolveIterationType(n,void 0)||un,a=_.resolveIterationType(a,void 0)||un,c=_.resolveIterationType(c,void 0)||un,g===Lo){let T=_.getGlobalIterableIteratorType(!1),P=T!==Lo?p6e(T,_):void 0,W=P?P.returnType:G,V=P?P.nextType:Me;return ya(a,W)&&ya(V,c)?T!==Lo?y8(T,[n]):(_.getGlobalIterableIteratorType(!0),Ca):(_.getGlobalGeneratorType(!0),Ca)}return y8(g,[n,a,c])}function Jpt(n,a){let c=[],u=[],_=(Vc(n)&2)!==0;return Yre(n.body,g=>{let T=g.expression?po(g.expression,a):Nt;yf(c,EFe(g,T,G,_));let P;if(g.asteriskToken){let W=Hee(T,_?19:17,g.expression);P=W&&W.nextType}else P=Hu(g,void 0);P&&yf(u,P)}),{yieldTypes:c,nextTypes:u}}function EFe(n,a,c,u){let _=n.expression||n,g=n.asteriskToken?fv(u?19:17,a,c,_):a;return u?eI(g,_,n.asteriskToken?f.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:f.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):g}function SFe(n,a,c){let u=0;for(let _=0;_=a?c[_]:void 0;u|=g!==void 0?EK.get(g)||32768:0}return u}function TFe(n){let a=Qr(n);if(a.isExhaustive===void 0){a.isExhaustive=0;let c=qpt(n);a.isExhaustive===0&&(a.isExhaustive=c)}else a.isExhaustive===0&&(a.isExhaustive=!1);return a.isExhaustive}function qpt(n){if(n.expression.kind===221){let u=W8e(n);if(!u)return!1;let _=cy(tc(n.expression.expression)),g=SFe(0,0,u);return _.flags&3?(556800&g)===556800:!Fm(_,T=>UM(T,g)===g)}let a=tc(n.expression);if(!D8(a))return!1;let c=oee(n);return!c.length||gt(c,Hlt)?!1:Vct(ll(a,gu),c)}function AFe(n){return n.endFlowNode&&C5(n.endFlowNode)}function IFe(n,a){let c=Vc(n),u=[],_=AFe(n),g=!1;if(I0(n.body,T=>{let P=T.expression;if(P){if(P=fs(P,!0),c&2&&P.kind===223&&(P=fs(P.expression,!0)),P.kind===213&&P.expression.kind===80&&tc(P.expression).symbol===n.symbol){g=!0;return}let W=tc(P,a&&a&-9);c&2&&(W=eL(H8(W,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),W.flags&131072&&(g=!0),yf(u,W)}else _=!0}),!(u.length===0&&!_&&(g||Xpt(n))))return J&&u.length&&_&&!($_(n)&&u.some(T=>T.symbol===n.symbol))&&yf(u,Me),u}function Xpt(n){switch(n.kind){case 218:case 219:return!0;case 174:return n.parent.kind===210;default:return!1}}function Ive(n,a){r(c);return;function c(){let u=Vc(n),_=a&&sG(a,u);if(_&&(Rl(_,16384)||_.flags&32769)||n.kind===173||Fl(n.body)||n.body.kind!==241||!AFe(n))return;let g=n.flags&1024,T=$f(n)||n;if(_&&_.flags&131072)Ve(T,f.A_function_returning_never_cannot_have_a_reachable_end_point);else if(_&&!g)Ve(T,f.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(_&&J&&!ya(Me,_))Ve(T,f.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(B.noImplicitReturns){if(!_){if(!g)return;let P=ds(lm(n));if(b6e(n,P))return}Ve(T,f.Not_all_code_paths_return_a_value)}}}function xFe(n,a){if(x.assert(n.kind!==174||bm(n)),px(n),Ps(n)&&tL(n,n.name),a&&a&4&&zf(n)){if(!$f(n)&&!z6(n)){let u=W8(n);if(u&&l0(ds(u))){let _=Qr(n);if(_.contextFreeType)return _.contextFreeType;let g=Mee(n,a),T=yg(void 0,void 0,void 0,Xe,g,void 0,0,64),P=Ds(n.symbol,K,[T],Xe,Xe);return P.objectFlags|=262144,_.contextFreeType=P}}return tn}return!nte(n)&&n.kind===218&&sbe(n),Ypt(n,a),sr(Sr(n))}function Ypt(n,a){let c=Qr(n);if(!(c.flags&64)){let u=W8(n);if(!(c.flags&64)){c.flags|=64;let _=Xc(Jo(sr(Sr(n)),0));if(!_)return;if(zf(n))if(u){let g=BS(n),T;if(a&&a&2){hFe(_,u,g);let P=z8(u);P&&P.flags&262144&&(T=mC(u,g.nonFixingMapper))}T||(T=g?mC(u,g.mapper):u),Mpt(_,T)}else Lpt(_);else if(u&&!n.typeParameters&&u.parameters.length>n.parameters.length){let g=BS(n);a&&a&2&&hFe(_,u,g)}if(u&&!sC(n)&&!_.resolvedReturnType){let g=Mee(n,a);_.resolvedReturnType||(_.resolvedReturnType=g)}V8(n)}}}function $pt(n){x.assert(n.kind!==174||bm(n));let a=Vc(n),c=sC(n);if(Ive(n,c),n.body)if($f(n)||ds(lm(n)),n.body.kind===241)Ia(n.body);else{let u=po(n.body),_=c&&sG(c,a);if(_){let g=Ree(n.body);if((a&3)===2){let T=H8(u,!1,g,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);Wb(T,_,g,g)}else Wb(u,_,g,g)}}}function Lee(n,a,c,u=!1){if(!ya(a,$l)){let _=u&&ZM(a);return FE(n,!!_&&ya(_,$l),c),!1}return!0}function Qpt(n){if(!ia(n)||!gT(n))return!1;let a=tc(n.arguments[2]);if(Ue(a,"value")){let _=ha(a,"writable"),g=_&&sr(_);if(!g||g===Ut||g===En)return!0;if(_&&_.valueDeclaration&&mc(_.valueDeclaration)){let T=_.valueDeclaration.initializer,P=po(T);if(P===Ut||P===En)return!0}return!1}return!ha(a,"set")}function f_(n){return!!(Tl(n)&8||n.flags&4&&Tf(n)&8||n.flags&3&&$ye(n)&6||n.flags&98304&&!(n.flags&65536)||n.flags&8||gt(n.declarations,Qpt))}function RFe(n,a,c){var u,_;if(c===0)return!1;if(f_(a)){if(a.flags&4&&Ns(n)&&n.expression.kind===110){let g=Wp(n);if(!(g&&(g.kind===176||$_(g))))return!0;if(a.valueDeclaration){let T=dr(a.valueDeclaration),P=g.parent===a.valueDeclaration.parent,W=g===a.valueDeclaration.parent,V=T&&((u=a.parent)==null?void 0:u.valueDeclaration)===g.parent,te=T&&((_=a.parent)==null?void 0:_.valueDeclaration)===g;return!(P||W||V||te)}}return!0}if(Ns(n)){let g=fs(n.expression);if(g.kind===80){let T=Qr(g).resolvedSymbol;if(T.flags&2097152){let P=Mm(T);return!!P&&P.kind===274}}}return!1}function G8(n,a,c){let u=Yl(n,7);return u.kind!==80&&!Ns(u)?(Ve(n,a),!1):u.flags&64?(Ve(n,c),!1):!0}function Zpt(n){po(n.expression);let a=fs(n.expression);if(!Ns(a))return Ve(a,f.The_operand_of_a_delete_operator_must_be_a_property_reference),gi;kr(a)&&Ki(a.name)&&Ve(a,f.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);let c=Qr(a),u=ff(c.resolvedSymbol);return u&&(f_(u)?Ve(a,f.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):eft(a,u)),gi}function eft(n,a){let c=sr(a);J&&!(c.flags&131075)&&!(Ae?a.flags&16777216:dm(c,16777216))&&Ve(n,f.The_operand_of_a_delete_operator_must_be_optional)}function tft(n){return po(n.expression),FD}function nft(n){return px(n),Nt}function DFe(n){let a=!1,c=OF(n);if(c&&Al(c)){let u=Jv(n)?f.await_expression_cannot_be_used_inside_a_class_static_block:f.await_using_statements_cannot_be_used_inside_a_class_static_block;Ve(n,u),a=!0}else if(!(n.flags&65536))if(FF(n)){let u=Gn(n);if(!US(u)){let _;if(!TI(u,B)){_??(_=ph(u,n.pos));let g=Jv(n)?f.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:f.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module,T=Qc(u,_.start,_.length,g);Qa.add(T),a=!0}switch(z){case 100:case 199:if(u.impliedNodeFormat===1){_??(_=ph(u,n.pos)),Qa.add(Qc(u,_.start,_.length,f.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),a=!0;break}case 7:case 99:case 200:case 4:if(ce>=4)break;default:_??(_=ph(u,n.pos));let g=Jv(n)?f.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:f.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;Qa.add(Qc(u,_.start,_.length,g)),a=!0;break}}}else{let u=Gn(n);if(!US(u)){let _=ph(u,n.pos),g=Jv(n)?f.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:f.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,T=Qc(u,_.start,_.length,g);if(c&&c.kind!==176&&!(Vc(c)&2)){let P=Pr(c,f.Did_you_mean_to_mark_this_function_as_async);Pa(T,P)}Qa.add(T),a=!0}}return Jv(n)&&zye(n)&&(Ve(n,f.await_expressions_cannot_be_used_in_a_parameter_initializer),a=!0),a}function rft(n){r(()=>DFe(n));let a=po(n.expression),c=H8(a,!0,n,f.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return c===a&&!Vt(c)&&!(a.flags&3)&&e_(!1,Pr(n,f.await_has_no_effect_on_the_type_of_this_expression)),c}function ift(n){let a=po(n.operand);if(a===go)return go;switch(n.operand.kind){case 9:switch(n.operator){case 41:return cx(d_(-n.operand.text));case 40:return cx(d_(+n.operand.text))}break;case 10:if(n.operator===41)return cx(PZ({negative:!0,base10Value:UN(n.operand.text)}))}switch(n.operator){case 40:case 41:case 55:return X_(a,n.operand),$5(a,12288)&&Ve(n.operand,f.The_0_operator_cannot_be_applied_to_type_symbol,da(n.operator)),n.operator===40?($5(a,2112)&&Ve(n.operand,f.Operator_0_cannot_be_applied_to_type_1,da(n.operator),Vn(my(a))),It):xve(a);case 54:Vve(a,n.operand);let c=UM(a,12582912);return c===4194304?Ut:c===8388608?wn:gi;case 46:case 47:return Lee(n.operand,X_(a,n.operand),f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&G8(n.operand,f.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,f.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),xve(a)}return ut}function oft(n){let a=po(n.operand);return a===go?go:(Lee(n.operand,X_(a,n.operand),f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&G8(n.operand,f.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,f.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),xve(a))}function xve(n){return Rl(n,2112)?Id(n,3)||Rl(n,296)?$l:Dt:It}function $5(n,a){if(Rl(n,a))return!0;let c=cy(n);return!!c&&Rl(c,a)}function Rl(n,a){if(n.flags&a)return!0;if(n.flags&3145728){let c=n.types;for(let u of c)if(Rl(u,a))return!0}return!1}function Id(n,a,c){return n.flags&a?!0:c&&n.flags&114691?!1:!!(a&296)&&ya(n,It)||!!(a&2112)&&ya(n,Dt)||!!(a&402653316)&&ya(n,Ne)||!!(a&528)&&ya(n,gi)||!!(a&16384)&&ya(n,er)||!!(a&131072)&&ya(n,Fr)||!!(a&65536)&&ya(n,ue)||!!(a&32768)&&ya(n,Me)||!!(a&4096)&&ya(n,xi)||!!(a&67108864)&&ya(n,Kr)}function Q5(n,a,c){return n.flags&1048576?oo(n.types,u=>Q5(u,a,c)):Id(n,a,c)}function kee(n){return!!(Lr(n)&16)&&!!n.symbol&&Rve(n.symbol)}function Rve(n){return(n.flags&128)!==0}function Dve(n){let a=m6e("hasInstance"),c=e0(n,a);if(c){let u=sr(c);if(u&&Jo(u,0).length!==0)return u}}function aft(n,a,c,u,_){if(c===go||u===go)return go;!xt(c)&&Q5(c,402784252)&&Ve(n,f.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),x.assert(m6(n.parent));let g=vC(n.parent,void 0,_);if(g===yr)return go;let T=ds(g);return eu(T,gi,a,f.An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression),gi}function sft(n){return Fm(n,a=>a===xl||!!(a.flags&2097152)&&Fh(cy(a)))}function lft(n,a,c,u){if(c===go||u===go)return go;if(Ki(n)){if(ce<99&&xc(n,2097152),!Qr(n).resolvedSymbol&&ad(n)){let _=rve(n,u.symbol,!0);kWe(n,u,_)}}else eu(X_(c,n),xn,n);return eu(X_(u,a),Kr,a)&&sft(u)&&Ve(a,f.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,Vn(u)),gi}function cft(n,a,c){let u=n.properties;if(J&&u.length===0)return X_(a,n);for(let _=0;_WM(V,c)):Bd(u);return ZA(P,W,_)}}}}function ZA(n,a,c,u){let _;if(n.kind===304){let g=n;g.objectAssignmentInitializer&&(J&&!dm(po(g.objectAssignmentInitializer),16777216)&&(a=um(a,524288)),mft(g.name,g.equalsToken,g.objectAssignmentInitializer,c)),_=n.name}else _=n;return _.kind===226&&_.operatorToken.kind===64&&(De(_,c),_=_.left,J&&(a=um(a,524288))),_.kind===210?cft(_,a,u):_.kind===209?dft(_,a,c):uft(_,a,c)}function uft(n,a,c){let u=po(n,c),_=n.parent.kind===305?f.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:f.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,g=n.parent.kind===305?f.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:f.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return G8(n,_,g)&&Wb(a,u,n,n),Ox(n)&&xc(n.parent,1048576),a}function Z5(n){switch(n=fs(n),n.kind){case 80:case 11:case 14:case 215:case 228:case 15:case 9:case 10:case 112:case 97:case 106:case 157:case 218:case 231:case 219:case 209:case 210:case 221:case 235:case 285:case 284:return!0;case 227:return Z5(n.whenTrue)&&Z5(n.whenFalse);case 226:return Ly(n.operatorToken.kind)?!1:Z5(n.left)&&Z5(n.right);case 224:case 225:switch(n.operator){case 54:case 40:case 41:case 55:return!0}return!1;case 222:case 216:case 234:default:return!1}}function Cve(n,a){return(a.flags&98304)!==0||WZ(n,a)}function pft(){let n=e3(a,c,u,_,g,T);return(_e,je)=>{let mt=n(_e,je);return x.assertIsDefined(mt),mt};function a(_e,je,mt){return je?(je.stackIndex++,je.skip=!1,V(je,void 0),ye(je,void 0)):je={checkMode:mt,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},ir(_e)&&AI(_e)?(je.skip=!0,ye(je,po(_e.right,mt)),je):(fft(_e),_e.operatorToken.kind===64&&(_e.left.kind===210||_e.left.kind===209)&&(je.skip=!0,ye(je,ZA(_e.left,po(_e.right,mt),mt,_e.right.kind===110))),je)}function c(_e,je,mt){if(!je.skip)return P(je,_e)}function u(_e,je,mt){if(!je.skip){let At=te(je);x.assertIsDefined(At),V(je,At),ye(je,void 0);let rn=_e.kind;if(Q2(rn)){let sn=mt.parent;for(;sn.kind===217||Z2(sn);)sn=sn.parent;(rn===56||LT(sn))&&Gve(mt.left,At,LT(sn)?sn.thenStatement:void 0),Vve(At,mt.left)}}}function _(_e,je,mt){if(!je.skip)return P(je,_e)}function g(_e,je){let mt;if(je.skip)mt=te(je);else{let At=W(je);x.assertIsDefined(At);let rn=te(je);x.assertIsDefined(rn),mt=PFe(_e.left,_e.operatorToken,_e.right,At,rn,je.checkMode,_e)}return je.skip=!1,V(je,void 0),ye(je,void 0),je.stackIndex--,mt}function T(_e,je,mt){return ye(_e,je),_e}function P(_e,je){if(dr(je))return je;ye(_e,po(je,_e.checkMode))}function W(_e){return _e.typeStack[_e.stackIndex]}function V(_e,je){_e.typeStack[_e.stackIndex]=je}function te(_e){return _e.typeStack[_e.stackIndex+1]}function ye(_e,je){_e.typeStack[_e.stackIndex+1]=je}}function fft(n){let{left:a,operatorToken:c,right:u}=n;c.kind===61&&(dr(a)&&(a.operatorToken.kind===57||a.operatorToken.kind===56)&&yn(a,f._0_and_1_operations_cannot_be_mixed_without_parentheses,da(a.operatorToken.kind),da(c.kind)),dr(u)&&(u.operatorToken.kind===57||u.operatorToken.kind===56)&&yn(u,f._0_and_1_operations_cannot_be_mixed_without_parentheses,da(u.operatorToken.kind),da(c.kind)))}function mft(n,a,c,u,_){let g=a.kind;if(g===64&&(n.kind===210||n.kind===209))return ZA(n,po(c,u),u,c.kind===110);let T;Q2(g)?T=nL(n,u):T=po(n,u);let P=po(c,u);return PFe(n,a,c,T,P,u,_)}function PFe(n,a,c,u,_,g,T){let P=a.kind;switch(P){case 42:case 43:case 67:case 68:case 44:case 69:case 45:case 70:case 41:case 66:case 48:case 71:case 49:case 72:case 50:case 73:case 52:case 75:case 53:case 79:case 51:case 74:if(u===go||_===go)return go;u=X_(u,n),_=X_(_,c);let an;if(u.flags&528&&_.flags&528&&(an=_e(a.kind))!==void 0)return Ve(T||a,f.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,da(a.kind),da(an)),It;{let Yn=Lee(n,u,f.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),jn=Lee(c,_,f.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),$n;if(Id(u,3)&&Id(_,3)||!(Rl(u,2112)||Rl(_,2112)))$n=It;else if(W(u,_)){switch(P){case 50:case 73:rn();break;case 43:case 68:ce<3&&Ve(T,f.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}$n=Dt}else rn(W),$n=ut;return Yn&&jn&&je($n),$n}case 40:case 65:if(u===go||_===go)return go;!Id(u,402653316)&&!Id(_,402653316)&&(u=X_(u,n),_=X_(_,c));let On;return Id(u,296,!0)&&Id(_,296,!0)?On=It:Id(u,2112,!0)&&Id(_,2112,!0)?On=Dt:Id(u,402653316,!0)||Id(_,402653316,!0)?On=Ne:(xt(u)||xt(_))&&(On=Vt(u)||Vt(_)?ut:G),On&&!ye(P)?On:On?(P===65&&je(On),On):(rn((jn,$n)=>Id(jn,402655727)&&Id($n,402655727)),G);case 30:case 32:case 33:case 34:return ye(P)&&(u=oye(X_(u,n)),_=oye(X_(_,c)),At((Yn,jn)=>{if(xt(Yn)||xt(jn))return!0;let $n=ya(Yn,$l),Ro=ya(jn,$l);return $n&&Ro||!$n&&!Ro&&m5(Yn,jn)})),gi;case 35:case 36:case 37:case 38:if(!(g&&g&64)){if((RV(n)||RV(c))&&(!ir(n)||P===37||P===38)){let Yn=P===35||P===37;Ve(T,f.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,Yn?"false":"true")}nr(T,P,n,c),At((Yn,jn)=>Cve(Yn,jn)||Cve(jn,Yn))}return gi;case 104:return aft(n,c,u,_,g);case 103:return lft(n,c,u,_);case 56:case 77:{let Yn=dm(u,4194304)?ei([$lt(J?u:my(_)),_]):u;return P===77&&je(_),Yn}case 57:case 76:{let Yn=dm(u,8388608)?ei([_y(d8e(u)),_],2):u;return P===76&&je(_),Yn}case 61:case 78:{let Yn=dm(u,262144)?ei([_y(u),_],2):u;return P===78&&je(_),Yn}case 64:let Ln=dr(n.parent)?zl(n.parent):0;return V(Ln,_),mt(Ln)?((!(_.flags&524288)||Ln!==2&&Ln!==6&&!fy(_)&&!xye(_)&&!(Lr(_)&1))&&je(_),u):(je(_),_);case 28:if(!B.allowUnreachableCode&&Z5(n)&&!te(n.parent)){let Yn=Gn(n),jn=Yn.text,$n=Na(jn,n.pos);Yn.parseDiagnostics.some(bo=>bo.code!==f.JSX_expressions_must_have_one_parent_element.code?!1:_V(bo,$n))||Ve(n,f.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return _;default:return x.fail()}function W(an,On){return Id(an,2112)&&Id(On,2112)}function V(an,On){if(an===2)for(let Ln of Nb(On)){let Yn=sr(Ln);if(Yn.symbol&&Yn.symbol.flags&32){let jn=Ln.escapedName,$n=hl(Ln.valueDeclaration,jn,788968,void 0,jn,!1);$n?.declarations&&$n.declarations.some(zT)&&(am($n,f.Duplicate_identifier_0,Vi(jn),Ln),am(Ln,f.Duplicate_identifier_0,Vi(jn),$n))}}}function te(an){return an.parent.kind===217&&mp(an.left)&&an.left.text==="0"&&(ia(an.parent.parent)&&an.parent.parent.expression===an.parent||an.parent.parent.kind===215)&&(Ns(an.right)||Fe(an.right)&&an.right.escapedText==="eval")}function ye(an){let On=$5(u,12288)?n:$5(_,12288)?c:void 0;return On?(Ve(On,f.The_0_operator_cannot_be_applied_to_type_symbol,da(an)),!1):!0}function _e(an){switch(an){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function je(an){Ly(P)&&r(On);function On(){let Ln=u;if(NP(a.kind)&&n.kind===211&&(Ln=bee(n,void 0,!0)),G8(n,f.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,f.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let Yn;if(Ae&&kr(n)&&Rl(an,32768)){let jn=Ue(xd(n.expression),n.name.escapedText);zZ(an,jn)&&(Yn=f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}Wb(an,Ln,n,c,Yn)}}}function mt(an){var On;switch(an){case 2:return!0;case 1:case 5:case 6:case 3:case 4:let Ln=pf(n),Yn=AI(c);return!!Yn&&Ma(Yn)&&!!((On=Ln?.exports)!=null&&On.size);default:return!1}}function At(an){return an(u,_)?!1:(rn(an),!0)}function rn(an){let On=!1,Ln=T||a;if(an){let bo=pv(u),Fo=pv(_);On=!(bo===u&&Fo===_)&&!!(bo&&Fo)&&an(bo,Fo)}let Yn=u,jn=_;!On&&an&&([Yn,jn]=_ft(u,_,an));let[$n,Ro]=tx(Yn,jn);sn(Ln,On,$n,Ro)||FE(Ln,On,f.Operator_0_cannot_be_applied_to_types_1_and_2,da(a.kind),$n,Ro)}function sn(an,On,Ln,Yn){switch(a.kind){case 37:case 35:case 38:case 36:return FE(an,On,f.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,Ln,Yn);default:return}}function nr(an,On,Ln,Yn){let jn=Mn(fs(Ln)),$n=Mn(fs(Yn));if(jn||$n){let Ro=Ve(an,f.This_condition_will_always_return_0,da(On===37||On===35?97:112));if(jn&&$n)return;let bo=On===38||On===36?da(54):"",Fo=jn?Yn:Ln,fo=fs(Fo);Pa(Ro,Pr(Fo,f.Did_you_mean_0,`${bo}Number.isNaN(${Bl(fo)?up(fo):"..."})`))}}function Mn(an){if(Fe(an)&&an.escapedText==="NaN"){let On=rst();return!!On&&On===Wm(an)}return!1}}function _ft(n,a,c){let u=n,_=a,g=my(n),T=my(a);return c(g,T)||(u=g,_=T),[u,_]}function hft(n){r(_e);let a=Wp(n);if(!a)return G;let c=Vc(a);if(!(c&1))return G;let u=(c&2)!==0;n.asteriskToken&&(u&&ce<99&&xc(n,26624),!u&&ce<2&&B.downlevelIteration&&xc(n,256));let _=sC(a);_&&_.flags&1048576&&(_=cc(_,je=>Mve(je,c,void 0)));let g=_&&v6e(_,u),T=g&&g.yieldType||G,P=g&&g.nextType||G,W=u?eI(P)||G:P,V=n.expression?po(n.expression):Nt,te=EFe(n,V,W,u);if(_&&te&&Wb(te,T,n.expression||n,n.expression),n.asteriskToken)return Uve(u?19:17,1,V,n.expression)||G;if(_)return jS(2,_,u)||G;let ye=oWe(2,a);return ye||(ye=G,r(()=>{if(fe&&!xoe(n)){let je=Hu(n,void 0);(!je||xt(je))&&Ve(n,f.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),ye;function _e(){n.flags&16384||_d(n,f.A_yield_expression_is_only_allowed_in_a_generator_body),zye(n)&&Ve(n,f.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function gft(n,a){let c=nL(n.condition,a);Gve(n.condition,c,n.whenTrue);let u=po(n.whenTrue,a),_=po(n.whenFalse,a);return ei([u,_],2)}function MFe(n){let a=n.parent;return Ou(a)&&MFe(a)||Js(a)&&a.argumentExpression===n}function yft(n){let a=[n.head.text],c=[];for(let _ of n.templateSpans){let g=po(_.expression);$5(g,12288)&&Ve(_.expression,f.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),a.push(_.literal.text),c.push(ya(g,Mo)?g:Ne)}if($M(n)||MFe(n)||Fm(Hu(n,void 0)||un,vft))return FA(a,c);let u=n.parent.kind!==215&&k6e(n);return u?cx(Uu(u)):Ne}function vft(n){return!!(n.flags&134217856||n.flags&58982400&&Rl(zd(n)||un,402653316))}function bft(n){return q0(n)&&!OT(n.parent)?n.parent.parent:n}function bC(n,a,c,u){let _=bft(n);L5(_,a,!1),Bdt(_,c);let g=po(n,u|1|(c?2:0));c&&c.intraExpressionInferenceSites&&(c.intraExpressionInferenceSites=void 0);let T=Rl(g,2944)&&Oee(g,_ee(a,n,void 0))?gu(g):g;return Gdt(),O8(),T}function tc(n,a){if(a)return po(n,a);let c=Qr(n);if(!c.resolvedType){let u=B_,_=_n;B_=df,_n=void 0,c.resolvedType=po(n,a),_n=_,B_=u}return c.resolvedType}function LFe(n){return n=fs(n,!0),n.kind===216||n.kind===234||WR(n)}function YM(n,a,c){let u=D2(n);if(ir(n)){let g=V6(n);if(g)return yve(u,g,a)}let _=Pve(u)||(c?bC(u,c,void 0,a||0):tc(u,a));return Ao(n)&&n.name.kind===207&&wa(_)&&!_.target.hasRestElement&&lv(_)Oee(n,u))}if(a.flags&58982400){let c=zd(a)||un;return Rl(c,4)&&Rl(n,128)||Rl(c,8)&&Rl(n,256)||Rl(c,64)&&Rl(n,2048)||Rl(c,4096)&&Rl(n,8192)||Oee(n,c)}return!!(a.flags&406847616&&Rl(n,128)||a.flags&256&&Rl(n,256)||a.flags&2048&&Rl(n,2048)||a.flags&512&&Rl(n,512)||a.flags&8192&&Rl(n,8192))}return!1}function $M(n){let a=n.parent;return cT(a)&&Ng(a.type)||WR(a)&&Ng(Y4(a))||gve(n)&&wA(Hu(n,0))||(Ou(a)||uu(a)||Jm(a))&&$M(a)||(mc(a)||Zu(a)||dP(a))&&$M(a.parent)}function QM(n,a,c){let u=po(n,a,c);return $M(n)||Zre(n)?gu(u):LFe(n)?u:aye(u,_ee(Hu(n,void 0),n,void 0))}function kFe(n,a){return n.name.kind===167&&bg(n.name),QM(n.initializer,a)}function wFe(n,a){s4e(n),n.name.kind===167&&bg(n.name);let c=xFe(n,a);return OFe(n,c,a)}function OFe(n,a,c){if(c&&c&10){let u=F8(a,0,!0),_=F8(a,1,!0),g=u||_;if(g&&g.typeParameters){let T=u0(n,2);if(T){let P=F8(_y(T),u?0:1,!1);if(P&&!P.typeParameters){if(c&8)return WFe(n,c),tn;let W=BS(n),V=W.signature&&ds(W.signature),te=V&&UWe(V);if(te&&!te.typeParameters&&!oo(W.inferences,EC)){let ye=Ift(W,g.typeParameters),_e=lge(g,ye),je=mn(W.inferences,mt=>fye(mt.typeParameter));if(cye(_e,P,(mt,At)=>{hy(je,mt,At,0,!0)}),gt(je,EC)&&(dye(_e,P,(mt,At)=>{hy(je,mt,At)}),!Tft(W.inferences,je)))return Aft(W.inferences,je),W.inferredTypeParameters=Eo(W.inferredTypeParameters,ye),WA(_e)}return WA(HWe(g,P,W))}}}}return a}function WFe(n,a){if(a&2){let c=BS(n);c.flags|=4}}function EC(n){return!!(n.candidates||n.contraCandidates)}function Sft(n){return!!(n.candidates||n.contraCandidates||Ewe(n.typeParameter))}function Tft(n,a){for(let c=0;cc.symbol.escapedName===a)}function xft(n,a){let c=a.length;for(;c>1&&a.charCodeAt(c-1)>=48&&a.charCodeAt(c-1)<=57;)c--;let u=a.slice(0,c);for(let _=1;;_++){let g=u+_;if(!Nve(n,g))return g}}function FFe(n){let a=QA(n);if(a&&!a.typeParameters)return ds(a)}function Rft(n){let a=po(n.expression),c=C8(a,n.expression),u=FFe(a);return u&&XZ(u,n,c!==a)}function xd(n){let a=Pve(n);if(a)return a;if(n.flags&268435456&&_n){let _=_n[rs(n)];if(_)return _}let c=qe,u=po(n,64);if(qe!==c){let _=_n||(_n=[]);_[rs(n)]=u,Ioe(n,n.flags|268435456)}return u}function Pve(n){let a=fs(n,!0);if(WR(a)){let c=Y4(a);if(!Ng(c))return Ti(c)}if(a=fs(n),Jv(a)){let c=Pve(a.expression);return c?eI(c):void 0}if(ia(a)&&a.expression.kind!==108&&!bu(a,!0)&&!iFe(a))return oT(a)?Rft(a):FFe(gC(a.expression));if(cT(a)&&!Ng(a.type))return Ti(a.type);if(b0(n)||aN(n))return po(n)}function eG(n){let a=Qr(n);if(a.contextFreeType)return a.contextFreeType;L5(n,G,!1);let c=a.contextFreeType=po(n,4);return O8(),c}function po(n,a,c){var u,_;(u=rr)==null||u.push(rr.Phase.Check,"checkExpression",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});let g=D;D=n,S=0;let T=Nft(n,a,c),P=OFe(n,T,a);return kee(P)&&Dft(n,P),D=g,(_=rr)==null||_.pop(),P}function Dft(n,a){n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n||(n.kind===80||n.kind===166)&&Yee(n)||n.parent.kind===186&&n.parent.exprName===n||n.parent.kind===281||Ve(n,f.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),em(B)&&(x.assert(!!(a.symbol.flags&128)),a.symbol.valueDeclaration.flags&33554432&&!fE(n)&&Ve(n,f.Cannot_access_ambient_const_enums_when_0_is_enabled,Je))}function Cft(n,a){if(kp(n)){if(hU(n))return yve(n.expression,gU(n),a);if(WR(n))return lFe(n,a)}return po(n.expression,a)}function Nft(n,a,c){let u=n.kind;if(i)switch(u){case 231:case 218:case 219:i.throwIfCancellationRequested()}switch(u){case 80:return cdt(n,a);case 81:return Rut(n);case 110:return P5(n);case 108:return Wye(n);case 106:return We;case 15:case 11:return yye(n)?He:cx(Uu(n.text));case 9:return ube(n),cx(d_(+n.text));case 10:return Mgt(n),cx(PZ({negative:!1,base10Value:UN(n.text)}));case 112:return wn;case 97:return Ut;case 228:return yft(n);case 14:return _l;case 209:return fWe(n,a,c);case 210:return out(n,a);case 211:return bee(n,a);case 166:return CWe(n,a);case 212:return jut(n,a);case 213:if(n.expression.kind===102)return Ept(n);case 214:return bpt(n,a);case 215:return Spt(n);case 217:return Cft(n,a);case 231:return g_t(n);case 218:case 219:return xFe(n,a);case 221:return tft(n);case 216:case 234:return Tpt(n,a);case 235:return xpt(n);case 233:return dFe(n);case 238:return Rpt(n);case 236:return Dpt(n);case 220:return Zpt(n);case 222:return nft(n);case 223:return rft(n);case 224:return ift(n);case 225:return oft(n);case 226:return De(n,a);case 227:return gft(n,a);case 230:return Zdt(n,a);case 232:return Nt;case 229:return hft(n);case 237:return eut(n);case 294:return but(n,a);case 284:return cut(n,a);case 285:return sut(n,a);case 288:return dut(n);case 292:return put(n,a);case 286:x.fail("Shouldn't ever directly check a JsxOpeningElement")}return ut}function zFe(n){Sg(n),n.expression&&_d(n.expression,f.Type_expected),Ia(n.constraint),Ia(n.default);let a=MA(Sr(n));zd(a),dat(a)||Ve(n.default,f.Type_parameter_0_has_a_circular_default,Vn(a));let c=Cu(a),u=OA(a);c&&u&&eu(u,Up(io(c,OS(a,u)),u),n.default,f.Type_0_does_not_satisfy_the_constraint_1),px(n),r(()=>rL(n.name,f.Type_parameter_name_cannot_be_0))}function Pft(n){var a,c;if(pu(n.parent)||ci(n.parent)||Tm(n.parent)){let u=MA(Sr(n)),_=tye(u)&24576;if(_){let g=Sr(n.parent);if(Tm(n.parent)&&!(Lr(Xs(g))&52))Ve(n,f.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(_===8192||_===16384){(a=rr)==null||a.push(rr.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:hu(Xs(g)),id:hu(u)});let T=g5(g,u,_===16384?$:de),P=g5(g,u,_===16384?de:$),W=u;w=u,eu(T,P,n,f.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),w=W,(c=rr)==null||c.pop()}}}}function BFe(n){Sg(n),oG(n);let a=Wp(n);$r(n,31)&&(a.kind===176&&Hf(a.body)||Ve(n,f.A_parameter_property_is_only_allowed_in_a_constructor_implementation),a.kind===176&&Fe(n.name)&&n.name.escapedText==="constructor"&&Ve(n.name,f.constructor_cannot_be_used_as_a_parameter_property_name)),!n.initializer&&YN(n)&&Qo(n.name)&&a.body&&Ve(n,f.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),n.name&&Fe(n.name)&&(n.name.escapedText==="this"||n.name.escapedText==="new")&&(a.parameters.indexOf(n)!==0&&Ve(n,f.A_0_parameter_must_be_the_first_parameter,n.name.escapedText),(a.kind===176||a.kind===180||a.kind===185)&&Ve(n,f.A_constructor_cannot_have_a_this_parameter),a.kind===219&&Ve(n,f.An_arrow_function_cannot_have_a_this_parameter),(a.kind===177||a.kind===178)&&Ve(n,f.get_and_set_accessors_cannot_declare_this_parameters)),n.dotDotDotToken&&!Qo(n.name)&&!ya(c_(sr(n.symbol)),lf)&&Ve(n,f.A_rest_parameter_must_be_of_an_array_type)}function Mft(n){let a=Lft(n);if(!a){Ve(n,f.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}let c=lm(a),u=Ff(c);if(!u)return;Ia(n.type);let{parameterName:_}=n;if(u.kind===0||u.kind===2)MZ(_);else if(u.parameterIndex>=0){if(qd(c)&&u.parameterIndex===c.parameters.length-1)Ve(_,f.A_type_predicate_cannot_reference_a_rest_parameter);else if(u.type){let g=()=>zo(void 0,f.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);eu(u.type,sr(c.parameters[u.parameterIndex]),n.type,void 0,g)}}else if(_){let g=!1;for(let{name:T}of a.parameters)if(Qo(T)&&GFe(T,_,u.parameterName)){g=!0;break}g||Ve(n.parameterName,f.Cannot_find_parameter_0,u.parameterName)}}function Lft(n){switch(n.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:let a=n.parent;if(n===a.type)return a}}function GFe(n,a,c){for(let u of n.elements){if(jc(u))continue;let _=u.name;if(_.kind===80&&_.escapedText===c)return Ve(a,f.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,c),!0;if((_.kind===207||_.kind===206)&&GFe(_,a,c))return!0}}function V8(n){n.kind===181?agt(n):(n.kind===184||n.kind===262||n.kind===185||n.kind===179||n.kind===176||n.kind===180)&&nte(n);let a=Vc(n);a&4||((a&3)===3&&ce<99&&xc(n,6144),(a&3)===2&&ce<4&&xc(n,64),a&3&&ce<2&&xc(n,128)),lG(Rv(n)),m_t(n),gn(n.parameters,BFe),n.type&&Ia(n.type),r(c);function c(){Pmt(n);let u=$f(n),_=u;if(ir(n)){let g=tE(n);if(g&&g.typeExpression&&If(g.typeExpression.type)){let T=QA(Ti(g.typeExpression));T&&T.declaration&&(u=$f(T.declaration),_=g.typeExpression.type)}}if(fe&&!u)switch(n.kind){case 180:Ve(n,f.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:Ve(n,f.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(u&&_){let g=Vc(n);if((g&5)===1){let T=Ti(u);T===er?Ve(_,f.A_generator_cannot_have_a_void_type_annotation):Mve(T,g,_)}else(g&3)===2&&dmt(n,u,_)}n.kind!==181&&n.kind!==324&&Vb(n)}}function Mve(n,a,c){let u=jS(0,n,(a&2)!==0)||G,_=jS(1,n,(a&2)!==0)||u,g=jS(2,n,(a&2)!==0)||un,T=bFe(u,_,g,!!(a&2));return eu(T,n,c)}function kft(n){let a=new Map,c=new Map,u=new Map;for(let g of n.members)if(g.kind===176)for(let T of g.parameters)dp(T,g)&&!Qo(T.name)&&_(a,T.name,T.name.escapedText,3);else{let T=ra(g),P=g.name;if(!P)continue;let W=Ki(P),V=W&&T?16:0,te=W?u:T?c:a,ye=P&&pbe(P);if(ye)switch(g.kind){case 177:_(te,P,ye,1|V);break;case 178:_(te,P,ye,2|V);break;case 172:_(te,P,ye,3|V);break;case 174:_(te,P,ye,8|V);break}}function _(g,T,P,W){let V=g.get(P);if(V)if((V&16)!==(W&16))Ve(T,f.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,uc(T));else{let te=!!(V&8),ye=!!(W&8);te||ye?te!==ye&&Ve(T,f.Duplicate_identifier_0,uc(T)):V&W&-17?Ve(T,f.Duplicate_identifier_0,uc(T)):g.set(P,V|W)}else g.set(P,W)}}function wft(n){for(let a of n.members){let c=a.name;if(ra(a)&&c){let _=pbe(c);switch(_){case"name":case"length":case"caller":case"arguments":if(me)break;case"prototype":let g=f.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,T=qE(Sr(n));Ve(c,g,_,T);break}}}}function VFe(n){let a=new Map;for(let c of n.members)if(c.kind===171){let u,_=c.name;switch(_.kind){case 11:case 9:u=_.text;break;case 80:u=gr(_);break;default:continue}a.get(u)?(Ve(Po(c.symbol.valueDeclaration),f.Duplicate_identifier_0,u),Ve(c.name,f.Duplicate_identifier_0,u)):a.set(u,!0)}}function Lve(n){if(n.kind===264){let c=Sr(n);if(c.declarations&&c.declarations.length>0&&c.declarations[0]!==n)return}let a=cge(Sr(n));if(a?.declarations){let c=new Map;for(let u of a.declarations)u.parameters.length===1&&u.parameters[0].type&&qA(Ti(u.parameters[0].type),_=>{let g=c.get(hu(_));g?g.declarations.push(u):c.set(hu(_),{type:_,declarations:[u]})});c.forEach(u=>{if(u.declarations.length>1)for(let _ of u.declarations)Ve(_,f.Duplicate_index_signature_for_type_0,Vn(u.type))})}}function jFe(n){!Sg(n)&&!Dgt(n)&&rte(n.name),oG(n),kve(n),$r(n,64)&&n.kind===172&&n.initializer&&Ve(n,f.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,Ts(n.name))}function Oft(n){return Ki(n.name)&&Ve(n,f.Private_identifiers_are_not_allowed_outside_class_bodies),jFe(n)}function Wft(n){s4e(n)||rte(n.name),Ul(n)&&n.asteriskToken&&Fe(n.name)&&gr(n.name)==="constructor"&&Ve(n.name,f.Class_constructor_may_not_be_a_generator),n6e(n),$r(n,64)&&n.kind===174&&n.body&&Ve(n,f.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,Ts(n.name)),Ki(n.name)&&!ad(n)&&Ve(n,f.Private_identifiers_are_not_allowed_outside_class_bodies),kve(n)}function kve(n){if(Ki(n.name)&&ce<99){for(let a=uh(n);a;a=uh(a))Qr(a).flags|=1048576;if(Zc(n.parent)){let a=Lye(n.parent);a&&(Qr(n.name).flags|=32768,Qr(a).flags|=4096)}}}function Fft(n){Sg(n),Go(n,Ia)}function zft(n){V8(n),xgt(n)||Rgt(n),Ia(n.body);let a=Sr(n),c=cl(a,n.kind);if(n===c&&zee(a),Fl(n.body))return;r(_);return;function u(g){return ou(g)?!0:g.kind===172&&!ra(g)&&!!g.initializer}function _(){let g=n.parent;if(N0(g)){kye(n.parent,g);let T=wye(g),P=$8e(n.body);if(P){if(T&&Ve(P,f.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!ge&&(gt(n.parent.members,u)||gt(n.parameters,V=>$r(V,31))))if(!Bft(P,n.body))Ve(P,f.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers);else{let V;for(let te of n.body.statements){if(ed(te)&&mT(Yl(te.expression))){V=te;break}if(UFe(te))break}V===void 0&&Ve(n,f.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}}else T||Ve(n,f.Constructors_for_derived_classes_must_contain_a_super_call)}}}function Bft(n,a){let c=Py(n.parent);return ed(c)&&c.parent===a}function UFe(n){return n.kind===108||n.kind===110?!0:aie(n)?!1:!!Go(n,UFe)}function HFe(n){Fe(n.name)&&gr(n.name)==="constructor"&&ci(n.parent)&&Ve(n.name,f.Class_constructor_may_not_be_an_accessor),r(a),Ia(n.body),kve(n);function a(){if(!nte(n)&&!_gt(n)&&rte(n.name),nG(n),V8(n),n.kind===177&&!(n.flags&33554432)&&Hf(n.body)&&n.flags&512&&(n.flags&1024||Ve(n.name,f.A_get_accessor_must_return_a_value)),n.name.kind===167&&bg(n.name),oC(n)){let u=Sr(n),_=cl(u,177),g=cl(u,178);if(_&&g&&!(AC(_)&1)){Qr(_).flags|=1;let T=lu(_),P=lu(g);(T&64)!==(P&64)&&(Ve(_.name,f.Accessors_must_both_be_abstract_or_non_abstract),Ve(g.name,f.Accessors_must_both_be_abstract_or_non_abstract)),(T&4&&!(P&6)||T&2&&!(P&2))&&(Ve(_.name,f.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Ve(g.name,f.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}let c=QE(Sr(n));n.kind===177&&Ive(n,c)}}function Gft(n){nG(n)}function Vft(n,a,c){return n.typeArguments&&c{let u=wve(n);u&&KFe(n,u)});let c=Qr(n).resolvedSymbol;c&>(c.declarations,u=>SR(u)&&!!(u.flags&536870912))&&tv(H5(n),c.declarations,c.escapedName)}}function Uft(n){let a=ri(n.parent,gF);if(!a)return;let c=wve(a);if(!c)return;let u=Cu(c[a.typeArguments.indexOf(n)]);return u&&io(u,Np(c,Wee(a,c)))}function Hft(n){Uwe(n)}function Kft(n){gn(n.members,Ia),r(a);function a(){let c=POe(n);Kee(c,c.symbol),Lve(n),VFe(n)}}function Jft(n){Ia(n.elementType)}function qft(n){let a=!1,c=!1;for(let u of n.elements){let _=Age(u);if(_&8){let g=Ti(u.type);if(!uv(g)){Ve(u,f.A_rest_element_type_must_be_an_array_type);break}(Gf(g)||wa(g)&&g.target.combinedFlags&4)&&(_|=4)}if(_&4){if(c){yn(u,f.A_rest_element_cannot_follow_another_rest_element);break}c=!0}else if(_&2){if(c){yn(u,f.An_optional_element_cannot_follow_a_rest_element);break}a=!0}else if(_&1&&a){yn(u,f.A_required_element_cannot_follow_an_optional_element);break}}gn(n.elements,Ia),Ti(n)}function Xft(n){gn(n.types,Ia),Ti(n)}function qFe(n,a){if(!(n.flags&8388608))return n;let c=n.objectType,u=n.indexType,_=ju(c)&&_Z(c)===2?_Oe(c,0):J_(c,0),g=!!vg(c,It);if(ap(u,T=>ya(T,_)||g&&ix(T,It)))return a.kind===212&&$h(a)&&Lr(c)&32&&kh(c)&1&&Ve(a,f.Index_signature_in_type_0_only_permits_reading,Vn(c)),n;if(BA(c)){let T=RZ(u,a);if(T){let P=qA(Nu(c),W=>ha(W,T));if(P&&Tf(P)&6)return Ve(a,f.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Vi(T)),ut}}return Ve(a,f.Type_0_cannot_be_used_to_index_type_1,Vn(u),Vn(c)),ut}function Yft(n){Ia(n.objectType),Ia(n.indexType),qFe(IOe(n),n)}function $ft(n){Qft(n),Ia(n.typeParameter),Ia(n.nameType),Ia(n.type),n.type||s0(n,G);let a=Oge(n),c=av(a);if(c)eu(c,Ls,n.nameType);else{let u=hf(a);eu(u,Ls,wx(n.typeParameter))}}function Qft(n){var a;if((a=n.members)!=null&&a.length)return yn(n.members[0],f.A_mapped_type_may_not_declare_properties_or_methods)}function Zft(n){MZ(n)}function emt(n){ggt(n),Ia(n.type)}function tmt(n){Go(n,Ia)}function nmt(n){Fn(n,c=>c.parent&&c.parent.kind===194&&c.parent.extendsType===c)||yn(n,f.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),Ia(n.typeParameter);let a=Sr(n.typeParameter);if(a.declarations&&a.declarations.length>1){let c=qi(a);if(!c.typeParametersChecked){c.typeParametersChecked=!0;let u=MA(a),_=Dre(a,168);if(!T6e(_,[u],g=>[g])){let g=Si(a);for(let T of _)Ve(T.name,f.All_declarations_of_0_must_have_identical_constraints,g)}}}Vb(n)}function rmt(n){for(let a of n.templateSpans){Ia(a.type);let c=Ti(a.type);eu(c,Mo,a.type)}Ti(n)}function imt(n){Ia(n.argument),n.attributes&&QR(n.attributes,yn),JFe(n)}function omt(n){n.dotDotDotToken&&n.questionToken&&yn(n,f.A_tuple_member_cannot_be_both_optional_and_rest),n.type.kind===190&&yn(n.type,f.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),n.type.kind===191&&yn(n.type,f.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),Ia(n.type),Ti(n)}function tG(n){return(fp(n,2)||ou(n))&&!!(n.flags&33554432)}function Fee(n,a){let c=ite(n);if(n.parent.kind!==264&&n.parent.kind!==263&&n.parent.kind!==231&&n.flags&33554432){let u=nj(n);u&&u.flags&128&&!(c&128)&&!(N_(n.parent)&&ql(n.parent.parent)&&E_(n.parent.parent))&&(c|=32),c|=128}return c&a}function zee(n){r(()=>amt(n))}function amt(n){function a(an,On){return On!==void 0&&On.parent===an[0].parent?On:an[0]}function c(an,On,Ln,Yn,jn){if((Yn^jn)!==0){let Ro=Fee(a(an,On),Ln);gn(an,bo=>{let Fo=Fee(bo,Ln)^Ro;Fo&32?Ve(Po(bo),f.Overload_signatures_must_all_be_exported_or_non_exported):Fo&128?Ve(Po(bo),f.Overload_signatures_must_all_be_ambient_or_non_ambient):Fo&6?Ve(Po(bo)||bo,f.Overload_signatures_must_all_be_public_private_or_protected):Fo&64&&Ve(Po(bo),f.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function u(an,On,Ln,Yn){if(Ln!==Yn){let jn=xI(a(an,On));gn(an,$n=>{xI($n)!==jn&&Ve(Po($n),f.Overload_signatures_must_all_be_optional_or_required)})}}let _=230,g=0,T=_,P=!1,W=!0,V=!1,te,ye,_e,je=n.declarations,mt=(n.flags&16384)!==0;function At(an){if(an.name&&Fl(an.name))return;let On=!1,Ln=Go(an.parent,jn=>{if(On)return jn;On=jn===an});if(Ln&&Ln.pos===an.end&&Ln.kind===an.kind){let jn=Ln.name||Ln,$n=Ln.name;if(an.name&&$n&&(Ki(an.name)&&Ki($n)&&an.name.escapedText===$n.escapedText||Ya(an.name)&&Ya($n)&&py(bg(an.name),bg($n))||T_(an.name)&&T_($n)&&TN(an.name)===TN($n))){if((an.kind===174||an.kind===173)&&ra(an)!==ra(Ln)){let bo=ra(an)?f.Function_overload_must_be_static:f.Function_overload_must_not_be_static;Ve(jn,bo)}return}if(Hf(Ln.body)){Ve(jn,f.Function_implementation_name_must_be_0,Ts(an.name));return}}let Yn=an.name||an;mt?Ve(Yn,f.Constructor_implementation_is_missing):$r(an,64)?Ve(Yn,f.All_declarations_of_an_abstract_method_must_be_consecutive):Ve(Yn,f.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let rn=!1,sn=!1,nr=!1,Mn=[];if(je)for(let an of je){let On=an,Ln=On.flags&33554432,Yn=On.parent&&(On.parent.kind===264||On.parent.kind===187)||Ln;if(Yn&&(_e=void 0),(On.kind===263||On.kind===231)&&!Ln&&(nr=!0),On.kind===262||On.kind===174||On.kind===173||On.kind===176){Mn.push(On);let jn=Fee(On,_);g|=jn,T&=jn,P=P||xI(On),W=W&&xI(On);let $n=Hf(On.body);$n&&te?mt?sn=!0:rn=!0:_e?.parent===On.parent&&_e.end!==On.pos&&At(_e),$n?te||(te=On):V=!0,_e=On,Yn||(ye=On)}ir(an)&&$o(an)&&an.jsDoc&&(V=Nn(vj(an))>0)}if(sn&&gn(Mn,an=>{Ve(an,f.Multiple_constructor_implementations_are_not_allowed)}),rn&&gn(Mn,an=>{Ve(Po(an)||an,f.Duplicate_function_implementation)}),nr&&!mt&&n.flags&16&&je){let an=jr(je,On=>On.kind===263).map(On=>Pr(On,f.Consider_adding_a_declare_modifier_to_this_class));gn(je,On=>{let Ln=On.kind===263?f.Class_declaration_cannot_implement_overload_list_for_0:On.kind===262?f.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;Ln&&Pa(Ve(Po(On)||On,Ln,vl(n)),...an)})}if(ye&&!ye.body&&!$r(ye,64)&&!ye.questionToken&&At(ye),V&&(je&&(c(je,te,_,g,T),u(je,te,P,W)),te)){let an=PS(n),On=lm(te);for(let Ln of an)if(!xlt(On,Ln)){let Yn=Ln.declaration&&yE(Ln.declaration)?Ln.declaration.parent.tagName:Ln.declaration;Pa(Ve(Yn,f.This_overload_signature_is_not_compatible_with_its_implementation_signature),Pr(te,f.The_implementation_signature_is_declared_here));break}}}function j8(n){r(()=>smt(n))}function smt(n){let a=n.localSymbol;if(!a&&(a=Sr(n),!a.exportSymbol)||cl(a,n.kind)!==n)return;let c=0,u=0,_=0;for(let V of a.declarations){let te=W(V),ye=Fee(V,2080);ye&32?ye&2048?_|=te:c|=te:u|=te}let g=c|u,T=c&u,P=_&g;if(T||P)for(let V of a.declarations){let te=W(V),ye=Po(V);te&P?Ve(ye,f.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,Ts(ye)):te&T&&Ve(ye,f.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,Ts(ye))}function W(V){let te=V;switch(te.kind){case 264:case 265:case 353:case 345:case 347:return 2;case 267:return Md(te)||Vg(te)!==0?5:4;case 263:case 266:case 306:return 3;case 312:return 7;case 277:case 226:let ye=te,_e=Ll(ye)?ye.expression:ye.right;if(!Bl(_e))return 1;te=_e;case 271:case 274:case 273:let je=0,mt=Wc(Sr(te));return gn(mt.declarations,At=>{je|=W(At)}),je;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return x.failBadSyntaxKind(te)}}}function ZM(n,a,c,...u){let _=U8(n,a);return _&&eI(_,a,c,...u)}function U8(n,a,c){if(xt(n))return;let u=n;if(u.promisedTypeOfPromise)return u.promisedTypeOfPromise;if(Db(n,o5(!1)))return u.promisedTypeOfPromise=Vs(n)[0];if(Q5(cy(n),402915324))return;let _=Ue(n,"then");if(xt(_))return;let g=_?Jo(_,0):Xe;if(g.length===0){a&&Ve(a,f.A_promise_must_have_a_then_method);return}let T,P;for(let te of g){let ye=n0(te);ye&&ye!==er&&!q_(n,ye,Ih)?T=ye:P=Tn(P,te)}if(!P){x.assertIsDefined(T),c&&(c.value=T),a&&Ve(a,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Vn(n),Vn(T));return}let W=um(ei(mn(P,Eve)),2097152);if(xt(W))return;let V=Jo(W,0);if(V.length===0){a&&Ve(a,f.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return u.promisedTypeOfPromise=ei(mn(V,Eve),2)}function H8(n,a,c,u,..._){return(a?eI(n,c,u,..._):pv(n,c,u,..._))||ut}function XFe(n){if(Q5(cy(n),402915324))return!1;let a=Ue(n,"then");return!!a&&Jo(um(a,2097152),0).length>0}function Bee(n){var a;if(n.flags&16777216){let c=Tge(!1);return!!c&&n.aliasSymbol===c&&((a=n.aliasTypeArguments)==null?void 0:a.length)===1}return!1}function eL(n){return n.flags&1048576?ll(n,eL):Bee(n)?n.aliasTypeArguments[0]:n}function YFe(n){if(xt(n)||Bee(n))return!1;if(BA(n)){let a=zd(n);if(a?a.flags&3||fy(a)||Fm(a,XFe):Rl(n,8650752))return!0}return!1}function lmt(n){let a=Tge(!0);if(a)return cC(a,[eL(n)])}function cmt(n){if(YFe(n)){let a=lmt(n);if(a)return a}return x.assert(Bee(n)||U8(n)===void 0,"type provided should not be a non-generic 'promise'-like."),n}function eI(n,a,c,...u){let _=pv(n,a,c,...u);return _&&cmt(_)}function pv(n,a,c,...u){if(xt(n)||Bee(n))return n;let _=n;if(_.awaitedTypeOfType)return _.awaitedTypeOfType;if(n.flags&1048576){if(wE.lastIndexOf(n.id)>=0){a&&Ve(a,f.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}let P=a?V=>pv(V,a,c,...u):pv;wE.push(n.id);let W=ll(n,P);return wE.pop(),_.awaitedTypeOfType=W}if(YFe(n))return _.awaitedTypeOfType=n;let g={value:void 0},T=U8(n,void 0,g);if(T){if(n.id===T.id||wE.lastIndexOf(T.id)>=0){a&&Ve(a,f.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}wE.push(n.id);let P=pv(T,a,c,...u);return wE.pop(),P?_.awaitedTypeOfType=P:void 0}if(XFe(n)){if(a){x.assertIsDefined(c);let P;g.value&&(P=zo(P,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Vn(n),Vn(g.value))),P=zo(P,c,...u),Qa.add(Mg(Gn(a),a,P))}return}return _.awaitedTypeOfType=n}function dmt(n,a,c){let u=Ti(a);if(ce>=2){if(Vt(u))return;let g=o5(!0);if(g!==Lo&&!Db(u,g)){_(f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,a,c,Vn(pv(u)||er));return}}else{if(pmt(a),Vt(u))return;let g=A2(a);if(g===void 0){_(f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,Vn(u));return}let T=Bs(g,111551,!0),P=T?sr(T):ut;if(Vt(P)){g.kind===80&&g.escapedText==="Promise"&&ov(u)===o5(!1)?Ve(c,f.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):_(f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,up(g));return}let W=Oat(!0);if(W===Ca){_(f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,up(g));return}let V=f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!eu(P,W,c,V,()=>a===c?void 0:zo(void 0,f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;let ye=g&&Fp(g),_e=Vu(n.locals,ye.escapedText,111551);if(_e){Ve(_e.valueDeclaration,f.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,gr(ye),up(g));return}}H8(u,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);function _(g,T,P,W){if(T===P)Ve(P,g,W);else{let V=Ve(P,f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);Pa(V,Pr(T,g,W))}}}function umt(n){let a=vC(n);Pee(a,n);let c=ds(a);if(c.flags&1)return;let u=Ave(n);if(!u?.resolvedReturnType)return;let _,g=u.resolvedReturnType;switch(n.parent.kind){case 263:case 231:_=f.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!Z){_=f.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:_=f.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:_=f.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return x.failBadSyntaxKind(n.parent)}eu(c,g,n.expression,_)}function K8(n,a,c,u,_,g=c.length,T=0){let P=L.createFunctionTypeNode(void 0,Xe,L.createKeywordTypeNode(133));return yg(P,n,a,c,u,_,g,T)}function Wve(n,a,c,u,_,g,T){let P=K8(n,a,c,u,_,g,T);return WA(P)}function $Fe(n){return Wve(void 0,void 0,Xe,n)}function QFe(n){let a=t_("value",n);return Wve(void 0,void 0,[a],er)}function pmt(n){ZFe(n&&A2(n),!1)}function ZFe(n,a){if(!n)return;let c=Fp(n),u=(n.kind===80?788968:1920)|2097152,_=hl(c,c.escapedText,u,void 0,void 0,!0);if(_&&_.flags&2097152){if(pt&&wm(_)&&!Y8(Wc(_))&&!Lf(_))hb(_);else if(a&&em(B)&&Ld(B)>=5&&!wm(_)&&!gt(_.declarations,iE)){let g=Ve(n,f.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),T=Vr(_.declarations||Xe,pb);T&&Pa(g,Pr(T,f._0_was_imported_here,gr(c)))}}}function SC(n){let a=Fve(n);a&&Xu(a)&&ZFe(a,!0)}function Fve(n){if(n)switch(n.kind){case 193:case 192:return e6e(n.types);case 194:return e6e([n.trueType,n.falseType]);case 196:case 202:return Fve(n.type);case 183:return n.typeName}}function e6e(n){let a;for(let c of n){for(;c.kind===196||c.kind===202;)c=c.type;if(c.kind===146||!J&&(c.kind===201&&c.literal.kind===106||c.kind===157))continue;let u=Fve(c);if(!u)return;if(a){if(!Fe(a)||!Fe(u)||a.escapedText!==u.escapedText)return}else a=u}return a}function Gee(n){let a=yd(n);return Kh(n)?aj(a):a}function nG(n){if(!GT(n)||!bf(n)||!n.modifiers||!GF(Z,n,n.parent,n.parent.parent))return;let a=Vr(n.modifiers,bd);if(a){if(Z?(xc(a,8),n.kind===169&&xc(a,32)):ce<99&&(xc(a,8),Sc(n)?n.name?A6e(n)&&xc(a,8388608):xc(a,8388608):Zc(n)||(Ki(n.name)&&(Ul(n)||Cv(n)||Mu(n))&&xc(a,8388608),Ya(n.name)&&xc(a,16777216))),B.emitDecoratorMetadata)switch(xc(a,16),n.kind){case 263:let c=Zh(n);if(c)for(let T of c.parameters)SC(Gee(T));break;case 177:case 178:let u=n.kind===177?178:177,_=cl(Sr(n),u);SC(Om(n)||_&&Om(_));break;case 174:for(let T of n.parameters)SC(Gee(T));SC($f(n));break;case 172:SC(yd(n));break;case 169:SC(Gee(n));let g=n.parent;for(let T of g.parameters)SC(Gee(T));SC($f(g));break}for(let c of n.modifiers)bd(c)&&umt(c)}}function fmt(n){r(a);function a(){n6e(n),sbe(n),tL(n,n.name)}}function mmt(n){n.typeExpression||Ve(n.name,f.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),n.name&&rL(n.name,f.Type_alias_name_cannot_be_0),Ia(n.typeExpression),lG(Rv(n))}function _mt(n){Ia(n.constraint);for(let a of n.typeParameters)Ia(a)}function hmt(n){Ia(n.typeExpression)}function gmt(n){Ia(n.typeExpression);let a=cE(n);if(a){let c=rF(a,J4);if(Nn(c)>1)for(let u=1;u0),c.length>1&&Ve(c[1],f.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);let u=t6e(n.class.expression),_=N0(a);if(_){let g=t6e(_.expression);g&&u.escapedText!==g.escapedText&&Ve(u,f.JSDoc_0_1_does_not_match_the_extends_2_clause,gr(n.tagName),gr(u),gr(g))}}function Imt(n){let a=vT(n);a&&ou(a)&&Ve(n,f.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function t6e(n){switch(n.kind){case 80:return n;case 211:return n.name;default:return}}function n6e(n){var a;nG(n),V8(n);let c=Vc(n);if(n.name&&n.name.kind===167&&bg(n.name),oC(n)){let g=Sr(n),T=n.localSymbol||g,P=(a=T.declarations)==null?void 0:a.find(W=>W.kind===n.kind&&!(W.flags&524288));n===P&&zee(T),g.parent&&zee(g)}let u=n.kind===173?void 0:n.body;if(Ia(u),Ive(n,sC(n)),r(_),ir(n)){let g=tE(n);g&&g.typeExpression&&!jye(Ti(g.typeExpression),n)&&Ve(g.typeExpression.type,f.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function _(){$f(n)||(Fl(u)&&!tG(n)&&s0(n,G),c&1&&Hf(u)&&ds(lm(n)))}}function Vb(n){r(a);function a(){let c=Gn(n),u=cf.get(c.path);u||(u=[],cf.set(c.path,u)),u.push(n)}}function r6e(n,a){for(let c of n)switch(c.kind){case 263:case 231:xmt(c,a),zve(c,a);break;case 312:case 267:case 241:case 269:case 248:case 249:case 250:a6e(c,a);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:c.body&&a6e(c,a),zve(c,a);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:zve(c,a);break;case 195:Rmt(c,a);break;default:x.assertNever(c,"Node should not have been registered for unused identifiers check")}}function i6e(n,a,c){let u=Po(n)||n,_=SR(n)?f._0_is_declared_but_never_used:f._0_is_declared_but_its_value_is_never_read;c(n,0,Pr(u,_,a))}function J8(n){return Fe(n)&&gr(n).charCodeAt(0)===95}function xmt(n,a){for(let c of n.members)switch(c.kind){case 174:case 172:case 177:case 178:if(c.kind===178&&c.symbol.flags&32768)break;let u=Sr(c);!u.isReferenced&&(fp(c,2)||iu(c)&&Ki(c.name))&&!(c.flags&33554432)&&a(c,0,Pr(c.name,f._0_is_declared_but_its_value_is_never_read,Si(u)));break;case 176:for(let _ of c.parameters)!_.symbol.isReferenced&&$r(_,2)&&a(_,0,Pr(_.name,f.Property_0_is_declared_but_its_value_is_never_read,vl(_.symbol)));break;case 181:case 240:case 175:break;default:x.fail("Unexpected class member")}}function Rmt(n,a){let{typeParameter:c}=n;Bve(c)&&a(n,1,Pr(n,f._0_is_declared_but_its_value_is_never_read,gr(c.name)))}function zve(n,a){let c=Sr(n).declarations;if(!c||Ja(c)!==n)return;let u=Rv(n),_=new Set;for(let g of u){if(!Bve(g))continue;let T=gr(g.name),{parent:P}=g;if(P.kind!==195&&P.typeParameters.every(Bve)){if(Kb(_,P)){let W=Gn(P),V=nm(P)?uU(P):pU(W,P.typeParameters),ye=P.typeParameters.length===1?[f._0_is_declared_but_its_value_is_never_read,T]:[f.All_type_parameters_are_unused];a(g,1,Qc(W,V.pos,V.end-V.pos,...ye))}}else a(g,1,Pr(g,f._0_is_declared_but_its_value_is_never_read,T))}}function Bve(n){return!(es(n.symbol).isReferenced&262144)&&!J8(n.name)}function rG(n,a,c,u){let _=String(u(a)),g=n.get(_);g?g[1].push(c):n.set(_,[a,[c]])}function o6e(n){return ri(A_(n),Ao)}function Dmt(n){return Xa(n)?tm(n.parent)?!!(n.propertyName&&J8(n.name)):J8(n.name):Md(n)||(wi(n)&&Fx(n.parent.parent)||s6e(n))&&J8(n.name)}function a6e(n,a){let c=new Map,u=new Map,_=new Map;n.locals.forEach(g=>{if(!(g.flags&262144?!(g.flags&3&&!(g.isReferenced&3)):g.isReferenced||g.exportSymbol)&&g.declarations){for(let T of g.declarations)if(!Dmt(T))if(s6e(T))rG(c,Nmt(T),T,rs);else if(Xa(T)&&tm(T.parent)){let P=Ja(T.parent.elements);(T===P||!Ja(T.parent.elements).dotDotDotToken)&&rG(u,T.parent,T,rs)}else if(wi(T)){let P=KS(T)&7,W=Po(T);(P!==4&&P!==6||!W||!J8(W))&&rG(_,T.parent,T,rs)}else{let P=g.valueDeclaration&&o6e(g.valueDeclaration),W=g.valueDeclaration&&Po(g.valueDeclaration);P&&W?!dp(P,P.parent)&&!L0(P)&&!J8(W)&&(Xa(T)&&V0(T.parent)?rG(u,T.parent,T,rs):a(P,1,Pr(W,f._0_is_declared_but_its_value_is_never_read,vl(g)))):i6e(T,vl(g),a)}}}),c.forEach(([g,T])=>{let P=g.parent;if((g.name?1:0)+(g.namedBindings?g.namedBindings.kind===274?1:g.namedBindings.elements.length:0)===T.length)a(P,0,T.length===1?Pr(P,f._0_is_declared_but_its_value_is_never_read,gr(Va(T).name)):Pr(P,f.All_imports_in_import_declaration_are_unused));else for(let V of T)i6e(V,gr(V.name),a)}),u.forEach(([g,T])=>{let P=o6e(g.parent)?1:0;if(g.elements.length===T.length)T.length===1&&g.parent.kind===260&&g.parent.parent.kind===261?rG(_,g.parent.parent,g.parent,rs):a(g,P,T.length===1?Pr(g,f._0_is_declared_but_its_value_is_never_read,iG(Va(T).name)):Pr(g,f.All_destructured_elements_are_unused));else for(let W of T)a(W,P,Pr(W,f._0_is_declared_but_its_value_is_never_read,iG(W.name)))}),_.forEach(([g,T])=>{if(g.declarations.length===T.length)a(g,0,T.length===1?Pr(Va(T).name,f._0_is_declared_but_its_value_is_never_read,iG(Va(T).name)):Pr(g.parent.kind===243?g.parent:g,f.All_variables_are_unused));else for(let P of T)a(P,0,Pr(P,f._0_is_declared_but_its_value_is_never_read,iG(P.name)))})}function Cmt(){var n;for(let a of cg)if(!((n=Sr(a))!=null&&n.isReferenced)){let c=Lx(a);x.assert(P0(c),"Only parameter declaration should be checked here");let u=Pr(a.name,f._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,Ts(a.name),Ts(a.propertyName));c.type||Pa(u,Qc(Gn(c),c.end,1,f.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,Ts(a.propertyName))),Qa.add(u)}}function iG(n){switch(n.kind){case 80:return gr(n);case 207:case 206:return iG(na(Va(n.elements),Xa).name);default:return x.assertNever(n)}}function s6e(n){return n.kind===273||n.kind===276||n.kind===274}function Nmt(n){return n.kind===273?n:n.kind===274?n.parent:n.parent.parent}function Vee(n){if(n.kind===241&&gy(n),NV(n)){let a=we;gn(n.statements,Ia),we=a}else gn(n.statements,Ia);n.locals&&Vb(n)}function Pmt(n){ce>=2||!FV(n)||n.flags&33554432||Fl(n.body)||gn(n.parameters,a=>{a.name&&!Qo(a.name)&&a.name.escapedText===Wt.escapedName&&Zm("noEmit",a,f.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function q8(n,a,c){if(a?.escapedText!==c||n.kind===172||n.kind===171||n.kind===174||n.kind===173||n.kind===177||n.kind===178||n.kind===303||n.flags&33554432||(gh(n)||td(n)||Qu(n))&&iE(n))return!1;let u=A_(n);return!(Ao(u)&&Fl(u.parent.body))}function Mmt(n){Fn(n,a=>AC(a)&4?(n.kind!==80?Ve(Po(n),f.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Ve(n,f.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function Lmt(n){Fn(n,a=>AC(a)&8?(n.kind!==80?Ve(Po(n),f.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Ve(n,f.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function kmt(n,a){if(z>=5&&!(z>=100&&Gn(n).impliedNodeFormat===1)||!a||!q8(n,a,"require")&&!q8(n,a,"exports")||ql(n)&&Vg(n)!==1)return;let c=X(n);c.kind===312&&wp(c)&&Zm("noEmit",a,f.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,Ts(a),Ts(a))}function wmt(n,a){if(!a||ce>=4||!q8(n,a,"Promise")||ql(n)&&Vg(n)!==1)return;let c=X(n);c.kind===312&&wp(c)&&c.flags&4096&&Zm("noEmit",a,f.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,Ts(a),Ts(a))}function Omt(n,a){ce<=8&&(q8(n,a,"WeakMap")||q8(n,a,"WeakSet"))&&ab.push(n)}function Wmt(n){let a=uh(n);AC(a)&1048576&&(x.assert(iu(n)&&Fe(n.name)&&typeof n.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),Zm("noEmit",n,f.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,n.name.escapedText))}function Fmt(n,a){a&&ce>=2&&ce<=8&&q8(n,a,"Reflect")&&sb.push(n)}function zmt(n){let a=!1;if(Zc(n)){for(let c of n.members)if(AC(c)&2097152){a=!0;break}}else if(Ps(n))AC(n)&2097152&&(a=!0);else{let c=uh(n);c&&AC(c)&2097152&&(a=!0)}a&&(x.assert(iu(n)&&Fe(n.name),"The target of a Reflect collision check should be an identifier"),Zm("noEmit",n,f.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,Ts(n.name),"Reflect"))}function tL(n,a){a&&(kmt(n,a),wmt(n,a),Omt(n,a),Fmt(n,a),ci(n)?(rL(a,f.Class_name_cannot_be_0),n.flags&33554432||f_t(a)):hE(n)&&rL(a,f.Enum_name_cannot_be_0))}function Bmt(n){if(KS(n)&7||P0(n))return;let a=Sr(n);if(a.flags&1){if(!Fe(n.name))return x.fail();let c=hl(n,n.name.escapedText,3,void 0,void 0,!1);if(c&&c!==a&&c.flags&2&&$ye(c)&7){let u=dE(c.valueDeclaration,261),_=u.parent.kind===243&&u.parent.parent?u.parent.parent:void 0;if(!(_&&(_.kind===241&&$o(_.parent)||_.kind===268||_.kind===267||_.kind===312))){let T=Si(c);Ve(n,f.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,T,T)}}}}function X8(n){return n===et?G:n===Jc?Zl:n}function oG(n){var a;if(nG(n),Xa(n)||Ia(n.type),!n.name)return;if(n.name.kind===167&&(bg(n.name),dT(n)&&n.initializer&&tc(n.initializer)),Xa(n)){if(n.propertyName&&Fe(n.name)&&P0(n)&&Fl(Wp(n).body)){cg.push(n);return}tm(n.parent)&&n.dotDotDotToken&&ce<5&&xc(n,4),n.propertyName&&n.propertyName.kind===167&&bg(n.propertyName);let _=n.parent.parent,g=n.dotDotDotToken?32:0,T=wr(_,g),P=n.propertyName||n.name;if(T&&!Qo(P)){let W=cv(P);if(Qf(W)){let V=Zf(W),te=ha(T,V);te&&(B5(te,void 0,!1),Zye(n,!!_.initializer&&_.initializer.kind===108,!1,T,te))}}}if(Qo(n.name)&&(n.name.kind===207&&ce<2&&B.downlevelIteration&&xc(n,512),gn(n.name.elements,Ia)),n.initializer&&P0(n)&&Fl(Wp(n).body)){Ve(n,f.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(Qo(n.name)){if(Tye(n))return;let _=dT(n)&&n.initializer&&n.parent.parent.kind!==249,g=!gt(n.name.elements,SW(jc));if(_||g){let T=F(n);if(_){let P=tc(n.initializer);J&&g?DWe(P,n):Wb(P,F(n),n,n.initializer)}g&&(V0(n.name)?fv(65,T,Me,n):J&&DWe(T,n))}return}let c=Sr(n);if(c.flags&2097152&&(R0(n)||die(n))){Jee(n);return}let u=X8(sr(c));if(n===c.valueDeclaration){let _=dT(n)&&D2(n);if(_&&!(ir(n)&&Ma(_)&&(_.properties.length===0||Fv(n.name))&&!!((a=c.exports)!=null&&a.size))&&n.parent.parent.kind!==249){let T=tc(_);Wb(T,u,n,_,void 0);let P=KS(n)&7;if(P===6){let W=Hat(!0),V=Qwe(!0);if(W!==Ca&&V!==Ca){let te=ei([W,V,ue,Me]);eu(T,te,_,f.The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined)}}else if(P===4){let W=Qwe(!0);if(W!==Ca){let V=ei([W,ue,Me]);eu(T,V,_,f.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined)}}}c.declarations&&c.declarations.length>1&>(c.declarations,g=>g!==n&&qx(g)&&!c6e(g,n))&&Ve(n.name,f.All_declarations_of_0_must_have_identical_modifiers,Ts(n.name))}else{let _=X8(F(n));!Vt(u)&&!Vt(_)&&!py(u,_)&&!(c.flags&67108864)&&l6e(c.valueDeclaration,u,n,_),dT(n)&&n.initializer&&Wb(tc(n.initializer),_,n,n.initializer,void 0),c.valueDeclaration&&!c6e(n,c.valueDeclaration)&&Ve(n.name,f.All_declarations_of_0_must_have_identical_modifiers,Ts(n.name))}n.kind!==172&&n.kind!==171&&(j8(n),(n.kind===260||n.kind===208)&&Bmt(n),tL(n,n.name))}function l6e(n,a,c,u){let _=Po(c),g=c.kind===172||c.kind===171?f.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:f.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,T=Ts(_),P=Ve(_,g,T,Vn(a),Vn(u));n&&Pa(P,Pr(n,f._0_was_also_declared_here,T))}function c6e(n,a){if(n.kind===169&&a.kind===260||n.kind===260&&a.kind===169)return!0;if(xI(n)!==xI(a))return!1;let c=1358;return PI(n,c)===PI(a,c)}function Gmt(n){var a,c;(a=rr)==null||a.push(rr.Phase.Check,"checkVariableDeclaration",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath}),Sgt(n),oG(n),(c=rr)==null||c.pop()}function Vmt(n){return vgt(n),oG(n)}function jee(n){let a=Ry(n)&7;(a===4||a===6)&&xc(n,33554432),gn(n.declarations,Ia)}function jmt(n){!Sg(n)&&!dbe(n.declarationList)&&Tgt(n),jee(n.declarationList)}function Umt(n){gy(n),po(n.expression)}function Hmt(n){gy(n);let a=nL(n.expression);Gve(n.expression,a,n.thenStatement),Ia(n.thenStatement),n.thenStatement.kind===242&&Ve(n.thenStatement,f.The_body_of_an_if_statement_cannot_be_the_empty_statement),Ia(n.elseStatement)}function Gve(n,a,c){if(!J)return;u(n,c);function u(g,T){for(g=fs(g),_(g,T);dr(g)&&(g.operatorToken.kind===57||g.operatorToken.kind===61);)g=fs(g.left),_(g,T)}function _(g,T){let P=Z2(g)?fs(g.right):g;if(Yh(P))return;if(Z2(P)){u(P,T);return}let W=P===g?a:nL(P),V=kr(P)&&LFe(P.expression);if(!dm(W,4194304)||V)return;let te=Jo(W,0),ye=!!ZM(W);if(te.length===0&&!ye)return;let _e=Fe(P)?P:kr(P)?P.name:void 0,je=_e&&zm(_e);if(!je&&!ye)return;je&&dr(g.parent)&&Jmt(g.parent,je)||je&&T&&Kmt(g,T,_e,je)||(ye?FE(P,!0,f.This_condition_will_always_return_true_since_this_0_is_always_defined,bb(W)):Ve(P,f.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function Kmt(n,a,c,u){return!!Go(a,function _(g){if(Fe(g)){let T=zm(g);if(T&&T===u){if(Fe(n)||Fe(c)&&dr(c.parent))return!0;let P=c.parent,W=g.parent;for(;P&&W;){if(Fe(P)&&Fe(W)||P.kind===110&&W.kind===110)return zm(P)===zm(W);if(kr(P)&&kr(W)){if(zm(P.name)!==zm(W.name))return!1;W=W.expression,P=P.expression}else if(ia(P)&&ia(W))W=W.expression,P=P.expression;else return!1}}}return Go(g,_)})}function Jmt(n,a){for(;dr(n)&&n.operatorToken.kind===56;){if(Go(n.right,function u(_){if(Fe(_)){let g=zm(_);if(g&&g===a)return!0}return Go(_,u)}))return!0;n=n.parent}return!1}function qmt(n){gy(n),Ia(n.statement),nL(n.expression)}function Xmt(n){gy(n),nL(n.expression),Ia(n.statement)}function Vve(n,a){return n.flags&16384&&Ve(a,f.An_expression_of_type_void_cannot_be_tested_for_truthiness),n}function nL(n,a){return Vve(po(n,a),n)}function Ymt(n){gy(n)||n.initializer&&n.initializer.kind===261&&dbe(n.initializer),n.initializer&&(n.initializer.kind===261?jee(n.initializer):po(n.initializer)),n.condition&&nL(n.condition),n.incrementor&&po(n.incrementor),Ia(n.statement),n.locals&&Vb(n)}function $mt(n){a4e(n);let a=OF(n);if(n.awaitModifier?a&&Al(a)?yn(n.awaitModifier,f.for_await_loops_cannot_be_used_inside_a_class_static_block):(Vc(a)&6)===2&&ce<99&&xc(n,16384):B.downlevelIteration&&ce<2&&xc(n,256),n.initializer.kind===261)jee(n.initializer);else{let c=n.initializer,u=aG(n);if(c.kind===209||c.kind===210)ZA(c,u||ut);else{let _=po(c);G8(c,f.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,f.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),u&&Wb(u,_,c,n.expression)}}Ia(n.statement),n.locals&&Vb(n)}function Qmt(n){a4e(n);let a=eve(po(n.expression));if(n.initializer.kind===261){let c=n.initializer.declarations[0];c&&Qo(c.name)&&Ve(c.name,f.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),jee(n.initializer)}else{let c=n.initializer,u=po(c);c.kind===209||c.kind===210?Ve(c,f.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):ya(Mst(a),u)?G8(c,f.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,f.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):Ve(c,f.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(a===Fr||!Id(a,126091264))&&Ve(n.expression,f.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0,Vn(a)),Ia(n.statement),n.locals&&Vb(n)}function aG(n){let a=n.awaitModifier?15:13;return fv(a,gC(n.expression),Me,n.expression)}function fv(n,a,c,u){return xt(a)?a:jve(n,a,c,u,!0)||G}function jve(n,a,c,u,_){let g=(n&2)!==0;if(a===Fr){qve(u,a,g);return}let T=ce>=2,P=!T&&B.downlevelIteration,W=B.noUncheckedIndexedAccess&&!!(n&128);if(T||P||g){let mt=Hee(a,n,T?u:void 0);if(_&&mt){let At=n&8?f.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:n&32?f.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:n&64?f.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:n&16?f.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;At&&eu(c,mt.nextType,u,At)}if(mt||T)return W?k8(mt&&mt.yieldType):mt&&mt.yieldType}let V=a,te=!1,ye=!1;if(n&4){if(V.flags&1048576){let mt=a.types,At=jr(mt,rn=>!(rn.flags&402653316));At!==mt&&(V=ei(At,2))}else V.flags&402653316&&(V=Fr);if(ye=V!==a,ye&&(ce<1&&u&&(Ve(u,f.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),te=!0),V.flags&131072))return W?k8(Ne):Ne}if(!uv(V)){if(u&&!te){let mt=!!(n&4)&&!ye,[At,rn]=je(mt,P);FE(u,rn&&!!ZM(V),At,Vn(V))}return ye?W?k8(Ne):Ne:void 0}let _e=t0(V,It);if(ye&&_e)return _e.flags&402653316&&!B.noUncheckedIndexedAccess?Ne:ei(W?[_e,Ne,Me]:[_e,Ne],2);return n&128?k8(_e):_e;function je(mt,At){var rn;return At?mt?[f.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[f.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:Uve(n,0,a,void 0)?[f.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:Zmt((rn=a.symbol)==null?void 0:rn.escapedName)?[f.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:mt?[f.Type_0_is_not_an_array_type_or_a_string_type,!0]:[f.Type_0_is_not_an_array_type,!0]}}function Zmt(n){switch(n){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}function Uve(n,a,c,u){if(xt(c))return;let _=Hee(c,n,u);return _&&_[SIe(a)]}function mv(n=Fr,a=Fr,c=un){if(n.flags&67359327&&a.flags&180227&&c.flags&180227){let u=cm([n,a,c]),_=Di.get(u);return _||(_={yieldType:n,returnType:a,nextType:c},Di.set(u,_)),_}return{yieldType:n,returnType:a,nextType:c}}function d6e(n){let a,c,u;for(let _ of n)if(!(_===void 0||_===Cr)){if(_===qo)return qo;a=Tn(a,_.yieldType),c=Tn(c,_.returnType),u=Tn(u,_.nextType)}return a||c||u?mv(a&&ei(a),c&&ei(c),u&&ga(u)):Cr}function Uee(n,a){return n[a]}function Eg(n,a,c){return n[a]=c}function Hee(n,a,c){var u,_;if(xt(n))return qo;if(!(n.flags&1048576)){let V=c?{errors:void 0}:void 0,te=u6e(n,a,c,V);if(te===Cr){if(c){let ye=qve(c,n,!!(a&2));V?.errors&&Pa(ye,...V.errors)}return}else if((u=V?.errors)!=null&&u.length)for(let ye of V.errors)Qa.add(ye);return te}let g=a&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",T=Uee(n,g);if(T)return T===Cr?void 0:T;let P;for(let V of n.types){let te=c?{errors:void 0}:void 0,ye=u6e(V,a,c,te);if(ye===Cr){if(c){let _e=qve(c,n,!!(a&2));te?.errors&&Pa(_e,...te.errors)}Eg(n,g,Cr);return}else if((_=te?.errors)!=null&&_.length)for(let _e of te.errors)Qa.add(_e);P=Tn(P,ye)}let W=P?d6e(P):Cr;return Eg(n,g,W),W===Cr?void 0:W}function Hve(n,a){if(n===Cr)return Cr;if(n===qo)return qo;let{yieldType:c,returnType:u,nextType:_}=n;return a&&Tge(!0),mv(eI(c,a)||G,eI(u,a)||G,_)}function u6e(n,a,c,u){if(xt(n))return qo;let _=!1;if(a&2){let g=Kve(n,zs)||f6e(n,zs);if(g)if(g===Cr&&c)_=!0;else return a&8?Hve(g,c):g}if(a&1){let g=Kve(n,hc)||f6e(n,hc);if(g)if(g===Cr&&c)_=!0;else if(a&2){if(g!==Cr)return g=Hve(g,c),_?g:Eg(n,"iterationTypesOfAsyncIterable",g)}else return g}if(a&2){let g=Jve(n,zs,c,u,_);if(g!==Cr)return g}if(a&1){let g=Jve(n,hc,c,u,_);if(g!==Cr)return a&2?(g=Hve(g,c),_?g:Eg(n,"iterationTypesOfAsyncIterable",g)):g}return Cr}function Kve(n,a){return Uee(n,a.iterableCacheKey)}function p6e(n,a){let c=Kve(n,a)||Jve(n,a,void 0,void 0,!1);return c===Cr?Hc:c}function f6e(n,a){let c;if(Db(n,c=a.getGlobalIterableType(!1))||Db(n,c=a.getGlobalIterableIteratorType(!1))){let[u]=Vs(n),{returnType:_,nextType:g}=p6e(c,a);return Eg(n,a.iterableCacheKey,mv(a.resolveIterationType(u,void 0)||u,a.resolveIterationType(_,void 0)||_,g))}if(Db(n,a.getGlobalGeneratorType(!1))){let[u,_,g]=Vs(n);return Eg(n,a.iterableCacheKey,mv(a.resolveIterationType(u,void 0)||u,a.resolveIterationType(_,void 0)||_,g))}}function m6e(n){let a=Xwe(!1),c=a&&Ue(sr(a),pl(n));return c&&Qf(c)?Zf(c):`__@${n}`}function Jve(n,a,c,u,_){let g=ha(n,m6e(a.iteratorSymbolName)),T=g&&!(g.flags&16777216)?sr(g):void 0;if(xt(T))return _?qo:Eg(n,a.iterableCacheKey,qo);let P=T?Jo(T,0):void 0;if(!gt(P))return _?Cr:Eg(n,a.iterableCacheKey,Cr);let W=ga(mn(P,ds)),V=_6e(W,a,c,u,_)??Cr;return _?V:Eg(n,a.iterableCacheKey,V)}function qve(n,a,c){let u=c?f.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:f.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,_=!!ZM(a)||!c&&Wk(n.parent)&&n.parent.expression===n&&xZ(!1)!==Lo&&ya(a,xZ(!1));return FE(n,_,u,Vn(a))}function e_t(n,a,c,u){return _6e(n,a,c,u,!1)}function _6e(n,a,c,u,_){if(xt(n))return qo;let g=h6e(n,a)||t_t(n,a);return g===Cr&&c&&(g=void 0,_=!0),g??(g=y6e(n,a,c,u,_)),g===Cr?void 0:g}function h6e(n,a){return Uee(n,a.iteratorCacheKey)}function t_t(n,a){let c=a.getGlobalIterableIteratorType(!1);if(Db(n,c)){let[u]=Vs(n),_=h6e(c,a)||y6e(c,a,void 0,void 0,!1),{returnType:g,nextType:T}=_===Cr?Hc:_;return Eg(n,a.iteratorCacheKey,mv(u,g,T))}if(Db(n,a.getGlobalIteratorType(!1))||Db(n,a.getGlobalGeneratorType(!1))){let[u,_,g]=Vs(n);return Eg(n,a.iteratorCacheKey,mv(u,_,g))}}function g6e(n,a){let c=Ue(n,"done")||Ut;return ya(a===0?Ut:wn,c)}function n_t(n){return g6e(n,0)}function r_t(n){return g6e(n,1)}function i_t(n){if(xt(n))return qo;let a=Uee(n,"iterationTypesOfIteratorResult");if(a)return a;if(Db(n,jat(!1))){let T=Vs(n)[0];return Eg(n,"iterationTypesOfIteratorResult",mv(T,void 0,void 0))}if(Db(n,Uat(!1))){let T=Vs(n)[0];return Eg(n,"iterationTypesOfIteratorResult",mv(void 0,T,void 0))}let c=cc(n,n_t),u=c!==Fr?Ue(c,"value"):void 0,_=cc(n,r_t),g=_!==Fr?Ue(_,"value"):void 0;return!u&&!g?Eg(n,"iterationTypesOfIteratorResult",Cr):Eg(n,"iterationTypesOfIteratorResult",mv(u,g||er,void 0))}function Xve(n,a,c,u,_){var g,T,P,W;let V=ha(n,c);if(!V&&c!=="next")return;let te=V&&!(c==="next"&&V.flags&16777216)?c==="next"?sr(V):um(sr(V),2097152):void 0;if(xt(te))return c==="next"?qo:bl;let ye=te?Jo(te,0):Xe;if(ye.length===0){if(u){let an=c==="next"?a.mustHaveANextMethodDiagnostic:a.mustBeAMethodDiagnostic;_?(_.errors??(_.errors=[]),_.errors.push(Pr(u,an,c))):Ve(u,an,c)}return c==="next"?Cr:void 0}if(te?.symbol&&ye.length===1){let an=a.getGlobalGeneratorType(!1),On=a.getGlobalIteratorType(!1),Ln=((T=(g=an.symbol)==null?void 0:g.members)==null?void 0:T.get(c))===te.symbol,Yn=!Ln&&((W=(P=On.symbol)==null?void 0:P.members)==null?void 0:W.get(c))===te.symbol;if(Ln||Yn){let jn=Ln?an:On,{mapper:$n}=te;return mv(wb(jn.typeParameters[0],$n),wb(jn.typeParameters[1],$n),c==="next"?wb(jn.typeParameters[2],$n):void 0)}}let _e,je;for(let an of ye)c!=="throw"&>(an.parameters)&&(_e=Tn(_e,p_(an,0))),je=Tn(je,ds(an));let mt,At;if(c!=="throw"){let an=_e?ei(_e):un;if(c==="next")At=an;else if(c==="return"){let On=a.resolveIterationType(an,u)||G;mt=Tn(mt,On)}}let rn,sn=je?ga(je):Fr,nr=a.resolveIterationType(sn,u)||G,Mn=i_t(nr);return Mn===Cr?(u&&(_?(_.errors??(_.errors=[]),_.errors.push(Pr(u,a.mustHaveAValueDiagnostic,c))):Ve(u,a.mustHaveAValueDiagnostic,c)),rn=G,mt=Tn(mt,G)):(rn=Mn.yieldType,mt=Tn(mt,Mn.returnType)),mv(rn,ei(mt),At)}function y6e(n,a,c,u,_){let g=d6e([Xve(n,a,"next",c,u),Xve(n,a,"return",c,u),Xve(n,a,"throw",c,u)]);return _?g:Eg(n,a.iteratorCacheKey,g)}function jS(n,a,c){if(xt(a))return;let u=v6e(a,c);return u&&u[SIe(n)]}function v6e(n,a){if(xt(n))return qo;let c=a?2:1,u=a?zs:hc;return Hee(n,c,void 0)||e_t(n,u,void 0,void 0)}function o_t(n){gy(n)||ygt(n)}function sG(n,a){let c=!!(a&1),u=!!(a&2);if(c){let _=jS(1,n,u);return _?u?pv(eL(_)):_:ut}return u?pv(n)||ut:n}function b6e(n,a){let c=sG(a,Vc(n));return!!(c&&(Rl(c,16384)||c.flags&32769))}function a_t(n){if(gy(n))return;let a=OF(n);if(a&&Al(a)){_d(n,f.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!a){_d(n,f.A_return_statement_can_only_be_used_within_a_function_body);return}let c=lm(a),u=ds(c),_=Vc(a);if(J||n.expression||u.flags&131072){let g=n.expression?tc(n.expression):Me;if(a.kind===178)n.expression&&Ve(n,f.Setters_cannot_return_a_value);else if(a.kind===176)n.expression&&!Wb(g,u,n,n.expression)&&Ve(n,f.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(sC(a)){let T=sG(u,_)??u,P=_&2?H8(g,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):g;T&&Wb(P,T,n,n.expression)}}else a.kind!==176&&B.noImplicitReturns&&!b6e(a,u)&&Ve(n,f.Not_all_code_paths_return_a_value)}function s_t(n){gy(n)||n.flags&65536&&_d(n,f.with_statements_are_not_allowed_in_an_async_function_block),po(n.expression);let a=Gn(n);if(!US(a)){let c=ph(a,n.pos).start,u=n.statement.pos;HS(a,c,u-c,f.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function l_t(n){gy(n);let a,c=!1,u=po(n.expression);gn(n.caseBlock.clauses,_=>{_.kind===297&&!c&&(a===void 0?a=_:(yn(_,f.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),c=!0)),_.kind===296&&r(g(_)),gn(_.statements,Ia),B.noFallthroughCasesInSwitch&&_.fallthroughFlowNode&&C5(_.fallthroughFlowNode)&&Ve(_,f.Fallthrough_case_in_switch);function g(T){return()=>{let P=po(T.expression);Cve(u,P)||KOe(P,u,T.expression,void 0)}}}),n.caseBlock.locals&&Vb(n.caseBlock)}function c_t(n){gy(n)||Fn(n.parent,a=>$o(a)?"quit":a.kind===256&&a.label.escapedText===n.label.escapedText?(yn(n.label,f.Duplicate_label_0,uc(n.label)),!0):!1),Ia(n.statement)}function d_t(n){gy(n)||Fe(n.expression)&&!n.expression.escapedText&&Lgt(n,f.Line_break_not_permitted_here),n.expression&&po(n.expression)}function u_t(n){gy(n),Vee(n.tryBlock);let a=n.catchClause;if(a){if(a.variableDeclaration){let c=a.variableDeclaration;oG(c);let u=yd(c);if(u){let _=Ti(u);_&&!(_.flags&3)&&_d(u,f.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(c.initializer)_d(c.initializer,f.Catch_clause_variable_cannot_have_an_initializer);else{let _=a.block.locals;_&&dh(a.locals,g=>{let T=_.get(g);T?.valueDeclaration&&T.flags&2&&yn(T.valueDeclaration,f.Cannot_redeclare_identifier_0_in_catch_clause,Vi(g))})}}Vee(a.block)}n.finallyBlock&&Vee(n.finallyBlock)}function Kee(n,a,c){let u=_u(n);if(u.length===0)return;for(let g of Nb(n))c&&g.flags&4194304||E6e(n,g,uC(g,8576,!0),Rb(g));let _=a.valueDeclaration;if(_&&ci(_)){for(let g of _.members)if(!ra(g)&&!oC(g)){let T=Sr(g);E6e(n,T,xd(g.name.expression),Rb(T))}}if(u.length>1)for(let g of u)p_t(n,g)}function E6e(n,a,c,u){let _=a.valueDeclaration,g=Po(_);if(g&&Ki(g))return;let T=oge(n,c),P=Lr(n)&2?cl(n.symbol,264):void 0,W=_&&_.kind===226||g&&g.kind===167?_:void 0,V=Ru(a)===n.symbol?_:void 0;for(let te of T){let ye=te.declaration&&Ru(Sr(te.declaration))===n.symbol?te.declaration:void 0,_e=V||ye||(P&&!gt(Dp(n),je=>!!e0(je,a.escapedName)&&!!t0(je,te.keyType))?P:void 0);if(_e&&!ya(u,te.type)){let je=cA(_e,f.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Si(a),Vn(u),Vn(te.keyType),Vn(te.type));W&&_e!==W&&Pa(je,Pr(W,f._0_is_declared_here,Si(a))),Qa.add(je)}}}function p_t(n,a){let c=a.declaration,u=oge(n,a.keyType),_=Lr(n)&2?cl(n.symbol,264):void 0,g=c&&Ru(Sr(c))===n.symbol?c:void 0;for(let T of u){if(T===a)continue;let P=T.declaration&&Ru(Sr(T.declaration))===n.symbol?T.declaration:void 0,W=g||P||(_&&!gt(Dp(n),V=>!!vg(V,a.keyType)&&!!t0(V,T.keyType))?_:void 0);W&&!ya(a.type,T.type)&&Ve(W,f._0_index_type_1_is_not_assignable_to_2_index_type_3,Vn(a.keyType),Vn(a.type),Vn(T.keyType),Vn(T.type))}}function rL(n,a){switch(n.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":Ve(n,a,n.escapedText)}}function f_t(n){ce>=1&&n.escapedText==="Object"&&(z<5||Gn(n).impliedNodeFormat===1)&&Ve(n,f.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,UC[z])}function m_t(n){let a=jr(rE(n),Ym);if(!Nn(a))return;let c=ir(n),u=new Set,_=new Set;if(gn(n.parameters,({name:T},P)=>{Fe(T)&&u.add(T.escapedText),Qo(T)&&_.add(P)}),sge(n)){let T=a.length-1,P=a[T];c&&P&&Fe(P.name)&&P.typeExpression&&P.typeExpression.type&&!u.has(P.name.escapedText)&&!_.has(T)&&!Gf(Ti(P.typeExpression.type))&&Ve(P.name,f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,gr(P.name))}else gn(a,({name:T,isNameFirst:P},W)=>{_.has(W)||Fe(T)&&u.has(T.escapedText)||(Su(T)?c&&Ve(T,f.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,up(T),up(T.left)):P||md(c,T,f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,gr(T)))})}function lG(n){let a=!1;if(n)for(let u=0;u{u.default?(a=!0,__t(u.default,n,_)):a&&Ve(u,f.Required_type_parameters_may_not_follow_optional_type_parameters);for(let g=0;g<_;g++)n[g].symbol===u.symbol&&Ve(u.name,f.Duplicate_identifier_0,Ts(u.name))}}}function __t(n,a,c){u(n);function u(_){if(_.kind===183){let g=gge(_);if(g.flags&262144)for(let T=c;Tu)return!1;for(let W=0;Wpc(c)&&ou(c))&&yn(a,f.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!n.name&&!$r(n,2048)&&_d(n,f.A_class_declaration_without_the_default_modifier_must_have_a_name),I6e(n),gn(n.members,Ia),Vb(n)}function I6e(n){rgt(n),nG(n),tL(n,n.name),lG(Rv(n)),j8(n);let a=Sr(n),c=Xs(a),u=Up(c),_=sr(a);S6e(a),zee(a),kft(n),!!(n.flags&33554432)||wft(n);let T=S_(n);if(T){gn(T.typeArguments,Ia),ce<2&&xc(T.parent,1);let V=N0(n);V&&V!==T&&po(V.expression);let te=Dp(c);te.length&&r(()=>{let ye=te[0],_e=Rp(c),je=Nu(_e);if(E_t(je,T),Ia(T.expression),gt(T.typeArguments)){gn(T.typeArguments,Ia);for(let At of Zd(je,T.typeArguments,T))if(!KFe(T,At.typeParameters))break}let mt=Up(ye,c.thisType);if(eu(u,mt,void 0)?eu(_,BOe(je),n.name||n,f.Class_static_side_0_incorrectly_extends_base_class_static_side_1):D6e(n,u,mt,f.Class_0_incorrectly_extends_base_class_1),_e.flags&8650752&&(Mi(_)?Jo(_e,1).some(rn=>rn.flags&4)&&!$r(n,64)&&Ve(n.name||n,f.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):Ve(n.name||n,f.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(je.symbol&&je.symbol.flags&32)&&!(_e.flags&8650752)){let At=Lh(je,T.typeArguments,T);gn(At,rn=>!$_(rn.declaration)&&!py(ds(rn),ye))&&Ve(T.expression,f.Base_constructors_must_all_have_the_same_return_type)}A_t(c,ye)})}b_t(n,c,u,_);let P=aR(n);if(P)for(let V of P)(!Bl(V.expression)||Ud(V.expression))&&Ve(V.expression,f.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Ove(V),r(W(V));r(()=>{Kee(c,a),Kee(_,a,!0),Lve(n),R_t(n)});function W(V){return()=>{let te=c_(Ti(V));if(!Vt(te))if(qB(te)){let ye=te.symbol&&te.symbol.flags&32?f.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:f.Class_0_incorrectly_implements_interface_1,_e=Up(te,c.thisType);eu(u,_e,void 0)||D6e(n,u,_e,ye)}else Ve(V,f.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function b_t(n,a,c,u){let g=S_(n)&&Dp(a),T=g?.length?Up(Va(g),a.thisType):void 0,P=Rp(a);for(let W of n.members)Gj(W)||(Pl(W)&&gn(W.parameters,V=>{dp(V,W)&&x6e(n,u,P,T,a,c,V,!0)}),x6e(n,u,P,T,a,c,W,!1))}function x6e(n,a,c,u,_,g,T,P,W=!0){let V=T.name&&zm(T.name)||zm(T);return V?R6e(n,a,c,u,_,g,p6(T),w0(T),ra(T),P,vl(V),W?T:void 0):0}function R6e(n,a,c,u,_,g,T,P,W,V,te,ye){let _e=ir(n),je=!!(n.flags&33554432);if(u&&(T||B.noImplicitOverride)){let mt=pl(te),At=W?a:g,rn=W?c:u,sn=ha(At,mt),nr=ha(rn,mt),Mn=Vn(u);if(sn&&!nr&&T){if(ye){let an=OWe(te,rn);an?Ve(ye,_e?f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,Mn,Si(an)):Ve(ye,_e?f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,Mn)}return 2}else if(sn&&nr?.declarations&&B.noImplicitOverride&&!je){let an=gt(nr.declarations,w0);if(T)return 0;if(an){if(P&&an)return ye&&Ve(ye,f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,Mn),1}else{if(ye){let On=V?_e?f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:_e?f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;Ve(ye,On,Mn)}return 1}}}else if(T){if(ye){let mt=Vn(_);Ve(ye,_e?f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,mt)}return 2}return 0}function D6e(n,a,c,u){let _=!1;for(let g of n.members){if(ra(g))continue;let T=g.name&&zm(g.name)||zm(g);if(T){let P=ha(a,T.escapedName),W=ha(c,T.escapedName);if(P&&W){let V=()=>zo(void 0,f.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Si(T),Vn(a),Vn(c));eu(sr(P),sr(W),g.name||g,void 0,V)||(_=!0)}}}_||eu(a,c,n.name||n,u)}function E_t(n,a){let c=Jo(n,1);if(c.length){let u=c[0].declaration;if(u&&fp(u,2)){let _=Og(n.symbol);tbe(a,_)||Ve(a,f.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Vp(n.symbol))}}}function S_t(n,a,c){if(!a.name)return 0;let u=Sr(n),_=Xs(u),g=Up(_),T=sr(u),W=S_(n)&&Dp(_),V=W?.length?Up(Va(W),_.thisType):void 0,te=Rp(_),ye=a.parent?p6(a):$r(a,16);return R6e(n,T,te,V,_,g,ye,w0(a),ra(a),!1,vl(c))}function TC(n){return Tl(n)&1?n.links.target:n}function T_t(n){return jr(n.declarations,a=>a.kind===263||a.kind===264)}function A_t(n,a){var c,u,_,g;let T=ms(a),P;e:for(let W of T){let V=TC(W);if(V.flags&4194304)continue;let te=e0(n,V.escapedName);if(!te)continue;let ye=TC(te),_e=Tf(V);if(x.assert(!!ye,"derived should point to something, even if it is the base class' declaration."),ye===V){let je=Og(n.symbol);if(_e&64&&(!je||!$r(je,64))){for(let mt of Dp(n)){if(mt===a)continue;let At=e0(mt,V.escapedName),rn=At&&TC(At);if(rn&&rn!==V)continue e}P||(P=Ve(je,f.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,Vn(n),Vn(a))),je.kind===231?Pa(P,Pr(W.valueDeclaration??(W.declarations&&Va(W.declarations))??je,f.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Si(W),Vn(a))):Pa(P,Pr(W.valueDeclaration??(W.declarations&&Va(W.declarations))??je,f.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Vn(n),Si(W),Vn(a)))}}else{let je=Tf(ye);if(_e&2||je&2)continue;let mt,At=V.flags&98308,rn=ye.flags&98308;if(At&&rn){if((Tl(V)&6?(c=V.declarations)!=null&&c.some(Mn=>C6e(Mn,_e)):(u=V.declarations)!=null&&u.every(Mn=>C6e(Mn,_e)))||Tl(V)&262144||ye.valueDeclaration&&dr(ye.valueDeclaration))continue;let sn=At!==4&&rn===4;if(sn||At===4&&rn!==4){let Mn=sn?f._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:f._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;Ve(Po(ye.valueDeclaration)||ye.valueDeclaration,Mn,Si(V),Vn(a),Vn(n))}else if(me){let Mn=(_=ye.declarations)==null?void 0:_.find(an=>an.kind===172&&!an.initializer);if(Mn&&!(ye.flags&33554432)&&!(_e&64)&&!(je&64)&&!((g=ye.declarations)!=null&&g.some(an=>!!(an.flags&33554432)))){let an=ny(Og(n.symbol)),On=Mn.name;if(Mn.exclamationToken||!an||!Fe(On)||!J||!P6e(On,n,an)){let Ln=f.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;Ve(Po(ye.valueDeclaration)||ye.valueDeclaration,Ln,Si(V),Vn(a))}}}continue}else if(Qye(V)){if(Qye(ye)||ye.flags&4)continue;x.assert(!!(ye.flags&98304)),mt=f.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else V.flags&98304?mt=f.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:mt=f.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Ve(Po(ye.valueDeclaration)||ye.valueDeclaration,mt,Vn(a),Si(V),Vn(n))}}}function C6e(n,a){return a&64&&(!Uo(n)||!n.initializer)||pu(n.parent)}function I_t(n,a,c){if(!Nn(a))return c;let u=new Map;gn(c,_=>{u.set(_.escapedName,_)});for(let _ of a){let g=ms(Up(_,n.thisType));for(let T of g){let P=u.get(T.escapedName);P&&T.parent===P.parent&&u.delete(T.escapedName)}}return Wo(u.values())}function x_t(n,a){let c=Dp(n);if(c.length<2)return!0;let u=new Map;gn(Vhe(n).declaredProperties,g=>{u.set(g.escapedName,{prop:g,containingType:n})});let _=!0;for(let g of c){let T=ms(Up(g,n.thisType));for(let P of T){let W=u.get(P.escapedName);if(!W)u.set(P.escapedName,{prop:P,containingType:g});else if(W.containingType!==n&&!Flt(W.prop,P)){_=!1;let te=Vn(W.containingType),ye=Vn(g),_e=zo(void 0,f.Named_property_0_of_types_1_and_2_are_not_identical,Si(P),te,ye);_e=zo(_e,f.Interface_0_cannot_simultaneously_extend_types_1_and_2,Vn(n),te,ye),Qa.add(Mg(Gn(a),a,_e))}}}return _}function R_t(n){if(!J||!xe||n.flags&33554432)return;let a=ny(n);for(let c of n.members)if(!(lu(c)&128)&&!ra(c)&&N6e(c)){let u=c.name;if(Fe(u)||Ki(u)||Ya(u)){let _=sr(Sr(c));_.flags&3||FM(_)||(!a||!P6e(u,_,a))&&Ve(c.name,f.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,Ts(u))}}}function N6e(n){return n.kind===172&&!w0(n)&&!n.exclamationToken&&!n.initializer}function D_t(n,a,c,u,_){for(let g of c)if(g.pos>=u&&g.pos<=_){let T=L.createPropertyAccessExpression(L.createThis(),n);ja(T.expression,T),ja(T,g),T.flowNode=g.returnFlowNode;let P=Gb(T,a,zb(a));if(!FM(P))return!0}return!1}function P6e(n,a,c){let u=Ya(n)?L.createElementAccessExpression(L.createThis(),n.expression):L.createPropertyAccessExpression(L.createThis(),n);ja(u.expression,u),ja(u,c),u.flowNode=c.returnFlowNode;let _=Gb(u,a,zb(a));return!FM(_)}function C_t(n){Sg(n)||dgt(n),lG(n.typeParameters),r(()=>{rL(n.name,f.Interface_name_cannot_be_0),j8(n);let a=Sr(n);S6e(a);let c=cl(a,264);if(n===c){let u=Xs(a),_=Up(u);if(x_t(u,n.name)){for(let g of Dp(u))eu(_,Up(g,u.thisType),n.name,f.Interface_0_incorrectly_extends_interface_1);Kee(u,a)}}VFe(n)}),gn(EN(n),a=>{(!Bl(a.expression)||Ud(a.expression))&&Ve(a.expression,f.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Ove(a)}),gn(n.members,Ia),r(()=>{Lve(n),Vb(n)})}function N_t(n){Sg(n),rL(n.name,f.Type_alias_name_cannot_be_0),j8(n),lG(n.typeParameters),n.type.kind===141?(!L3.has(n.name.escapedText)||Nn(n.typeParameters)!==1)&&Ve(n.type,f.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(Ia(n.type),Vb(n))}function M6e(n){let a=Qr(n);if(!(a.flags&1024)){a.flags|=1024;let c=0;for(let u of n.members){let _=P_t(u,c);Qr(u).enumMemberValue=_,c=typeof _=="number"?_+1:void 0}}}function P_t(n,a){if(h2(n.name))Ve(n.name,f.Computed_property_names_are_not_allowed_in_enums);else{let c=Ux(n.name);ng(c)&&!qN(c)&&Ve(n.name,f.An_enum_member_cannot_have_a_numeric_name)}if(n.initializer)return M_t(n);if(!(n.parent.flags&33554432&&!A0(n.parent))){if(a!==void 0)return a;Ve(n.name,f.Enum_member_must_have_initializer)}}function M_t(n){let a=A0(n.parent),c=n.initializer,u=iL(c,n);return u!==void 0?a&&typeof u=="number"&&!isFinite(u)&&Ve(c,isNaN(u)?f.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:f.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):a?Ve(c,f.const_enum_member_initializers_must_be_constant_expressions):n.parent.flags&33554432?Ve(c,f.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):eu(po(c),It,c,f.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),u}function iL(n,a){switch(n.kind){case 224:let c=iL(n.operand,a);if(typeof c=="number")switch(n.operator){case 40:return c;case 41:return-c;case 55:return~c}break;case 226:let u=iL(n.left,a),_=iL(n.right,a);if(typeof u=="number"&&typeof _=="number")switch(n.operatorToken.kind){case 52:return u|_;case 51:return u&_;case 49:return u>>_;case 50:return u>>>_;case 48:return u<<_;case 53:return u^_;case 42:return u*_;case 44:return u/_;case 40:return u+_;case 41:return u-_;case 45:return u%_;case 43:return u**_}else if((typeof u=="string"||typeof u=="number")&&(typeof _=="string"||typeof _=="number")&&n.operatorToken.kind===40)return""+u+_;break;case 11:case 15:return n.text;case 228:return k6e(n,a);case 9:return ube(n),+n.text;case 217:return iL(n.expression,a);case 80:{let T=n;if(qN(T.escapedText)&&Bs(T,111551,!0)===OM(T.escapedText,111551,void 0))return+T.escapedText}case 211:if(Bl(n)){let T=Bs(n,111551,!0);if(T){if(T.flags&8)return a?L6e(n,T,a):IC(T.valueDeclaration);if(JM(T)){let P=T.valueDeclaration;if(P&&wi(P)&&!P.type&&P.initializer&&(!a||P!==a&&Qg(P,a)))return iL(P.initializer,P)}}}break;case 212:let g=n.expression;if(Bl(g)&&as(n.argumentExpression)){let T=Bs(g,111551,!0);if(T&&T.flags&384){let P=pl(n.argumentExpression.text),W=T.exports.get(P);if(W)return a?L6e(n,W,a):IC(W.valueDeclaration)}}break}}function L6e(n,a,c){let u=a.valueDeclaration;if(!u||u===c){Ve(n,f.Property_0_is_used_before_being_assigned,Si(a));return}return Qg(u,c)?IC(u):(Ve(n,f.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0)}function k6e(n,a){let c=n.head.text;for(let u of n.templateSpans){let _=iL(u.expression,a);if(_===void 0)return;c+=_,c+=u.literal.text}return c}function L_t(n){r(()=>k_t(n))}function k_t(n){Sg(n),tL(n,n.name),j8(n),n.members.forEach(w_t),M6e(n);let a=Sr(n),c=cl(a,n.kind);if(n===c){if(a.declarations&&a.declarations.length>1){let _=A0(n);gn(a.declarations,g=>{hE(g)&&A0(g)!==_&&Ve(Po(g),f.Enum_declarations_must_all_be_const_or_non_const)})}let u=!1;gn(a.declarations,_=>{if(_.kind!==266)return!1;let g=_;if(!g.members.length)return!1;let T=g.members[0];T.initializer||(u?Ve(T.name,f.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):u=!0)})}}function w_t(n){Ki(n.name)&&Ve(n,f.An_enum_member_cannot_be_named_with_a_private_identifier),n.initializer&&po(n.initializer)}function O_t(n){let a=n.declarations;if(a){for(let c of a)if((c.kind===263||c.kind===262&&Hf(c.body))&&!(c.flags&33554432))return c}}function W_t(n,a){let c=uh(n),u=uh(a);return xh(c)?xh(u):xh(u)?!1:c===u}function F_t(n){n.body&&(Ia(n.body),E_(n)||Vb(n)),r(a);function a(){var c,u;let _=E_(n),g=n.flags&33554432;_&&!g&&Ve(n.name,f.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);let T=Md(n),P=T?f.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:f.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(cG(n,P))return;Sg(n)||!g&&n.name.kind===11&&yn(n.name,f.Only_ambient_modules_can_use_quoted_names),Fe(n.name)&&tL(n,n.name),j8(n);let W=Sr(n);if(W.flags&512&&!g&&yK(n,B0(B))){if(em(B)&&!Gn(n).externalModuleIndicator&&Ve(n.name,f.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement,Je),((c=W.declarations)==null?void 0:c.length)>1){let V=O_t(W);V&&(Gn(n)!==Gn(V)?Ve(n.name,f.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):n.poste.kind===95);V&&Ve(V,f.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(T)if(T0(n)){if((_||Sr(n).flags&33554432)&&n.body)for(let te of n.body.statements)Yve(te,_)}else xh(n.parent)?_?Ve(n.name,f.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Yc(Xf(n.name))&&Ve(n.name,f.Ambient_module_declaration_cannot_specify_relative_module_name):_?Ve(n.name,f.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Ve(n.name,f.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function Yve(n,a){switch(n.kind){case 243:for(let u of n.declarationList.declarations)Yve(u,a);break;case 277:case 278:_d(n,f.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:case 272:_d(n,f.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:let c=n.name;if(Qo(c)){for(let u of c.elements)Yve(u,a);break}case 263:case 266:case 262:case 264:case 267:case 265:if(a)return;break}}function z_t(n){switch(n.kind){case 80:return n;case 166:do n=n.left;while(n.kind!==80);return n;case 211:do{if(Yh(n.expression)&&!Ki(n.name))return n.name;n=n.expression}while(n.kind!==80);return n}}function $ve(n){let a=tR(n);if(!a||Fl(a))return!1;if(!Da(a))return Ve(a,f.String_literal_expected),!1;let c=n.parent.kind===268&&Md(n.parent.parent);if(n.parent.kind!==312&&!c)return Ve(a,n.kind===278?f.Export_declarations_are_not_permitted_in_a_namespace:f.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(c&&Yc(a.text)&&!Sb(n))return Ve(n,f.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!td(n)&&n.attributes){let u=n.attributes.token===118?f.Import_attribute_values_must_be_string_literal_expressions:f.Import_assertion_values_must_be_string_literal_expressions,_=!1;for(let g of n.attributes.elements)Da(g.value)||(_=!0,Ve(g.value,u));return!_}return!0}function Jee(n){var a,c,u,_;let g=Sr(n),T=Wc(g);if(T!==lt){if(g=es(g.exportSymbol||g),ir(n)&&!(T.flags&111551)&&!iE(n)){let V=yI(n)?n.propertyName||n.name:iu(n)?n.name:n;if(x.assert(n.kind!==280),n.kind===281){let te=Ve(V,f.Types_cannot_appear_in_export_declarations_in_JavaScript_files),ye=(c=(a=Gn(n).symbol)==null?void 0:a.exports)==null?void 0:c.get((n.propertyName||n.name).escapedText);if(ye===T){let _e=(u=ye.declarations)==null?void 0:u.find(zx);_e&&Pa(te,Pr(_e,f._0_is_automatically_exported_here,Vi(ye.escapedName)))}}else{x.assert(n.kind!==260);let te=Fn(n,jm(Lc,td)),ye=(te&&((_=eR(te))==null?void 0:_.text))??"...",_e=Vi(Fe(V)?V.escapedText:g.escapedName);Ve(V,f._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,_e,`import("${ye}").${_e}`)}return}let P=Td(T),W=(g.flags&1160127?111551:0)|(g.flags&788968?788968:0)|(g.flags&1920?1920:0);if(P&W){let V=n.kind===281?f.Export_declaration_conflicts_with_exported_declaration_of_0:f.Import_declaration_conflicts_with_local_declaration_of_0;Ve(n,V,Si(g))}else n.kind!==281&&B.isolatedModules&&!Fn(n,iE)&&g.flags&1160127&&Ve(n,f.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Si(g),Je);if(em(B)&&!iE(n)&&!(n.flags&33554432)){let V=Lf(g),te=!(P&111551);if(te||V)switch(n.kind){case 273:case 276:case 271:{if(B.preserveValueImports||B.verbatimModuleSyntax){x.assertIsDefined(n.name,"An ImportClause with a symbol should have a name");let ye=B.verbatimModuleSyntax&&Qx(n)?f.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:te?B.verbatimModuleSyntax?f._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:f._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:B.verbatimModuleSyntax?f._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:f._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,_e=gr(n.kind===276&&n.propertyName||n.name);dg(Ve(n,ye,_e),te?void 0:V,_e)}te&&n.kind===271&&fp(n,32)&&Ve(n,f.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Je);break}case 281:if(B.verbatimModuleSyntax||Gn(V)!==Gn(n)){let ye=gr(n.propertyName||n.name),_e=te?Ve(n,f.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Je):Ve(n,f._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,ye,Je);dg(_e,te?void 0:V,ye);break}}B.verbatimModuleSyntax&&n.kind!==271&&!ir(n)&&(z===1||Gn(n).impliedNodeFormat===1)&&Ve(n,f.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(Qu(n)){let V=Qve(g,n);cb(V)&&V.declarations&&tv(n,V.declarations,V.escapedName)}}}function Qve(n,a){if(!(n.flags&2097152)||cb(n)||!Mm(n))return n;let c=Wc(n);if(c===lt)return c;for(;n.flags&2097152;){let u=Kye(n);if(u){if(u===c)break;if(u.declarations&&Nn(u.declarations))if(cb(u)){tv(a,u.declarations,u.escapedName);break}else{if(n===c)break;n=u}}else break}return c}function qee(n){tL(n,n.name),Jee(n),n.kind===276&&gr(n.propertyName||n.name)==="default"&&mh(B)&&z!==4&&(z<5||Gn(n).impliedNodeFormat===1)&&xc(n,131072)}function w6e(n){var a;let c=n.attributes;if(c){let u=bge(!0);u!==Ca&&eu(se(c),S5(u,32768),c);let _=sJ(n),g=QR(c,_?yn:void 0),T=n.attributes.token===118;if(_&&g)return;if((z===199&&n.moduleSpecifier&&Qi(n.moduleSpecifier))!==99&&z!==99&&z!==200){let W=T?z===199?f.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:f.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:z===199?f.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:f.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve;return yn(c,W)}if(Lc(n)?(a=n.importClause)!=null&&a.isTypeOnly:n.isTypeOnly)return yn(c,T?f.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:f.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(g)return yn(c,f.resolution_mode_can_only_be_set_for_type_only_imports)}}function B_t(n){return gu(tc(n.value))}function G_t(n){if(!cG(n,ir(n)?f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Sg(n)&&u6(n)&&_d(n,f.An_import_declaration_cannot_have_modifiers),$ve(n)){let a=n.importClause;a&&!wgt(a)&&(a.name&&qee(a),a.namedBindings&&(a.namedBindings.kind===274?(qee(a.namedBindings),z!==4&&(z<5||Gn(n).impliedNodeFormat===1)&&mh(B)&&xc(n,65536)):mu(n,n.moduleSpecifier)&&gn(a.namedBindings.elements,qee)))}w6e(n)}}function V_t(n){if(!cG(n,ir(n)?f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(Sg(n),Qx(n)||$ve(n)))if(qee(n),$r(n,32)&&_b(n),n.moduleReference.kind!==283){let a=Wc(Sr(n));if(a!==lt){let c=Td(a);if(c&111551){let u=Fp(n.moduleReference);Bs(u,112575).flags&1920||Ve(u,f.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,Ts(u))}c&788968&&rL(n.name,f.Import_name_cannot_be_0)}n.isTypeOnly&&yn(n,f.An_import_alias_cannot_use_import_type)}else z>=5&&z!==200&&Gn(n).impliedNodeFormat===void 0&&!n.isTypeOnly&&!(n.flags&33554432)&&yn(n,f.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}function j_t(n){if(!cG(n,ir(n)?f.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:f.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Sg(n)&&Oie(n)&&_d(n,f.An_export_declaration_cannot_have_modifiers),n.moduleSpecifier&&n.exportClause&&xf(n.exportClause)&&Nn(n.exportClause.elements)&&ce===0&&xc(n,4194304),U_t(n),!n.moduleSpecifier||$ve(n))if(n.exportClause&&!yh(n.exportClause)){gn(n.exportClause.elements,Y_t);let a=n.parent.kind===268&&Md(n.parent.parent),c=!a&&n.parent.kind===268&&!n.moduleSpecifier&&n.flags&33554432;n.parent.kind!==312&&!a&&!c&&Ve(n,f.Export_declarations_are_not_permitted_in_a_namespace)}else{let a=mu(n,n.moduleSpecifier);a&&iv(a)?Ve(n.moduleSpecifier,f.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Si(a)):n.exportClause&&Jee(n.exportClause),z!==4&&(z<5||Gn(n).impliedNodeFormat===1)&&(n.exportClause?mh(B)&&xc(n,65536):xc(n,32768))}w6e(n)}}function U_t(n){var a;return n.isTypeOnly&&((a=n.exportClause)==null?void 0:a.kind)===279?f4e(n.exportClause):!1}function cG(n,a){let c=n.parent.kind===312||n.parent.kind===268||n.parent.kind===267;return c||_d(n,a),!c}function H_t(n){return $F(n,a=>!!Sr(a).isReferenced)}function K_t(n){return $F(n,a=>!!qi(Sr(a)).constEnumReferenced)}function J_t(n){return Lc(n)&&n.importClause&&!n.importClause.isTypeOnly&&H_t(n.importClause)&&!ete(n.importClause,!0)&&!K_t(n.importClause)}function q_t(n){return td(n)&&vh(n.moduleReference)&&!n.isTypeOnly&&Sr(n).isReferenced&&!ete(n,!1)&&!qi(Sr(n)).constEnumReferenced}function X_t(n){if(pt)for(let a of n.statements)(J_t(a)||q_t(a))&&Ve(a,f.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}function Y_t(n){if(Jee(n),Af(B)&&xM(n.propertyName||n.name,!0),n.parent.parent.moduleSpecifier)mh(B)&&z!==4&&(z<5||Gn(n).impliedNodeFormat===1)&&gr(n.propertyName||n.name)==="default"&&xc(n,131072);else{let a=n.propertyName||n.name,c=hl(a,a.escapedText,2998271,void 0,void 0,!0);if(c&&(c===ze||c===tt||c.declarations&&xh(X(c.declarations[0]))))Ve(a,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,gr(a));else{!n.isTypeOnly&&!n.parent.parent.isTypeOnly&&_b(n);let u=c&&(c.flags&2097152?Wc(c):c);(!u||Td(u)&111551)&&tc(n.propertyName||n.name)}}}function $_t(n){let a=n.isExportEquals?f.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:f.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(cG(n,a))return;let c=n.parent.kind===312?n.parent:n.parent.parent;if(c.kind===267&&!Md(c)){n.isExportEquals?Ve(n,f.An_export_assignment_cannot_be_used_in_a_namespace):Ve(n,f.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!Sg(n)&&u6(n)&&_d(n,f.An_export_assignment_cannot_have_modifiers);let u=yd(n);u&&eu(tc(n.expression),Ti(u),n.expression);let _=!n.isExportEquals&&!(n.flags&33554432)&&B.verbatimModuleSyntax&&(z===1||Gn(n).impliedNodeFormat===1);if(n.expression.kind===80){let g=n.expression,T=ff(Bs(g,-1,!0,!0,n));if(T){let P=Lf(T,111551);if(pee(T,g),Td(T)&111551?(tc(g),!_&&!(n.flags&33554432)&&B.verbatimModuleSyntax&&P&&Ve(g,n.isExportEquals?f.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:f.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,gr(g))):!_&&!(n.flags&33554432)&&B.verbatimModuleSyntax&&Ve(g,n.isExportEquals?f.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:f.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,gr(g)),!_&&!(n.flags&33554432)&&em(B)&&!(T.flags&111551)){let W=Td(T,!1,!0);T.flags&2097152&&W&788968&&!(W&111551)&&(!P||Gn(P)!==Gn(n))?Ve(g,n.isExportEquals?f._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:f._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,gr(g),Je):P&&Gn(P)!==Gn(n)&&dg(Ve(g,n.isExportEquals?f._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:f._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,gr(g),Je),P,gr(g))}}else tc(g);Af(B)&&xM(g,!0)}else tc(n.expression);_&&Ve(n,f.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),O6e(c),n.flags&33554432&&!Bl(n.expression)&&yn(n.expression,f.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),n.isExportEquals&&(z>=5&&z!==200&&(n.flags&33554432&&Gn(n).impliedNodeFormat===99||!(n.flags&33554432)&&Gn(n).impliedNodeFormat!==1)?yn(n,f.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):z===4&&!(n.flags&33554432)&&yn(n,f.Export_assignment_is_not_supported_when_module_flag_is_system))}function Q_t(n){return Gc(n.exports,(a,c)=>c!=="export=")}function O6e(n){let a=Sr(n),c=qi(a);if(!c.exportsChecked){let u=a.exports.get("export=");if(u&&Q_t(a)){let g=Mm(u)||u.valueDeclaration;g&&!Sb(g)&&!ir(g)&&Ve(g,f.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}let _=Dh(a);_&&_.forEach(({declarations:g,flags:T},P)=>{if(P==="__export"||T&1920)return;let W=yv(g,EW(TIe,SW(pu)));if(!(T&524288&&W<=2)&&W>1&&!Xee(g))for(let V of g)bIe(V)&&Qa.add(Pr(V,f.Cannot_redeclare_exported_variable_0,Vi(P)))}),c.exportsChecked=!0}}function Xee(n){return n&&n.length>1&&n.every(a=>ir(a)&&Ns(a)&&(hT(a.expression)||Yh(a.expression)))}function Ia(n){if(n){let a=D;D=n,S=0,Z_t(n),D=a}}function Z_t(n){z2(n)&&gn(n.jsDoc,({comment:c,tags:u})=>{W6e(c),gn(u,_=>{W6e(_.comment),ir(n)&&Ia(_)})});let a=n.kind;if(i)switch(a){case 267:case 263:case 264:case 262:i.throwIfCancellationRequested()}switch(a>=243&&a<=259&&F2(n)&&n.flowNode&&!C5(n.flowNode)&&md(B.allowUnreachableCode===!1,n,f.Unreachable_code_detected),a){case 168:return zFe(n);case 169:return BFe(n);case 172:return jFe(n);case 171:return Oft(n);case 185:case 184:case 179:case 180:case 181:return V8(n);case 174:case 173:return Wft(n);case 175:return Fft(n);case 176:return zft(n);case 177:case 178:return HFe(n);case 183:return Ove(n);case 182:return Mft(n);case 186:return Hft(n);case 187:return Kft(n);case 188:return Jft(n);case 189:return qft(n);case 192:case 193:return Xft(n);case 196:case 190:case 191:return Ia(n.type);case 197:return Zft(n);case 198:return emt(n);case 194:return tmt(n);case 195:return nmt(n);case 203:return rmt(n);case 205:return imt(n);case 202:return omt(n);case 335:return Amt(n);case 336:return Tmt(n);case 353:case 345:case 347:return mmt(n);case 352:return _mt(n);case 351:return hmt(n);case 331:case 332:case 333:return ymt(n);case 348:return vmt(n);case 355:return bmt(n);case 324:Emt(n);case 322:case 321:case 319:case 320:case 329:F6e(n),Go(n,Ia);return;case 325:eht(n);return;case 316:return Ia(n.type);case 340:case 342:case 341:return Imt(n);case 357:return gmt(n);case 350:return Smt(n);case 199:return Yft(n);case 200:return $ft(n);case 262:return fmt(n);case 241:case 268:return Vee(n);case 243:return jmt(n);case 244:return Umt(n);case 245:return Hmt(n);case 246:return qmt(n);case 247:return Xmt(n);case 248:return Ymt(n);case 249:return Qmt(n);case 250:return $mt(n);case 251:case 252:return o_t(n);case 253:return a_t(n);case 254:return s_t(n);case 255:return l_t(n);case 256:return c_t(n);case 257:return d_t(n);case 258:return u_t(n);case 260:return Gmt(n);case 208:return Vmt(n);case 263:return v_t(n);case 264:return C_t(n);case 265:return N_t(n);case 266:return L_t(n);case 267:return F_t(n);case 272:return G_t(n);case 271:return V_t(n);case 278:return j_t(n);case 277:return $_t(n);case 242:case 259:gy(n);return;case 282:return Gft(n)}}function W6e(n){To(n)&&gn(n,a=>{SI(a)&&Ia(a)})}function F6e(n){if(!ir(n))if(V4(n)||LR(n)){let a=da(V4(n)?54:58),c=n.postfix?f._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:f._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,u=n.type,_=Ti(u);yn(n,c,a,Vn(LR(n)&&!(_===Fr||_===er)?ei(Tn([_,Me],n.postfix?void 0:ue)):_))}else yn(n,f.JSDoc_types_can_only_be_used_inside_documentation_comments)}function eht(n){F6e(n),Ia(n.type);let{parent:a}=n;if(Ao(a)&&kR(a.parent)){Ja(a.parent.parameters)!==a&&Ve(n,f.A_rest_parameter_must_be_last_in_a_parameter_list);return}$0(a)||Ve(n,f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);let c=n.parent.parent;if(!Ym(c)){Ve(n,f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}let u=B2(c);if(!u)return;let _=lE(c);(!_||Ja(_.parameters).symbol!==u)&&Ve(n,f.A_rest_parameter_must_be_last_in_a_parameter_list)}function tht(n){let a=Ti(n.type),{parent:c}=n,u=n.parent.parent;if($0(n.parent)&&Ym(u)){let _=lE(u),g=lH(u.parent.parent);if(_||g){let T=$s(g?u.parent.parent.typeExpression.parameters:_.parameters),P=B2(u);if(!T||P&&T.symbol===P&&Kh(T))return Bd(a)}}return Ao(c)&&kR(c.parent)?Bd(a):op(a)}function px(n){let a=Gn(n),c=Qr(a);c.flags&1?x.assert(!c.deferredNodes,"A type-checked file should have no deferred nodes."):(c.deferredNodes||(c.deferredNodes=new Set),c.deferredNodes.add(n))}function nht(n){let a=Qr(n);a.deferredNodes&&a.deferredNodes.forEach(rht),a.deferredNodes=void 0}function rht(n){var a,c;(a=rr)==null||a.push(rr.Phase.Check,"checkDeferredNode",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});let u=D;switch(D=n,S=0,n.kind){case 213:case 214:case 215:case 170:case 286:$A(n);break;case 218:case 219:case 174:case 173:$pt(n);break;case 177:case 178:HFe(n);break;case 231:y_t(n);break;case 168:Pft(n);break;case 285:aut(n);break;case 284:lut(n);break;case 216:case 234:case 217:Apt(n);break;case 222:po(n.expression);break;case 226:m6(n)&&$A(n);break}D=u,(c=rr)==null||c.pop()}function iht(n){var a,c;(a=rr)==null||a.push(rr.Phase.Check,"checkSourceFile",{path:n.path},!0),el("beforeCheck"),oht(n),el("afterCheck"),Xp("Check","beforeCheck","afterCheck"),(c=rr)==null||c.pop()}function z6e(n,a){if(a)return!1;switch(n){case 0:return!!B.noUnusedLocals;case 1:return!!B.noUnusedParameters;default:return x.assertNever(n)}}function B6e(n){return cf.get(n.path)||Xe}function oht(n){let a=Qr(n);if(!(a.flags&1)){if(jN(n,B,e))return;Pgt(n),Gh(_S),Gh(hS),Gh(ab),Gh(sb),Gh(cg),gn(n.statements,Ia),Ia(n.endOfFileToken),nht(n),wp(n)&&Vb(n),r(()=>{!n.isDeclarationFile&&(B.noUnusedLocals||B.noUnusedParameters)&&r6e(B6e(n),(c,u,_)=>{!Vx(c)&&z6e(u,!!(c.flags&33554432))&&Qa.add(_)}),n.isDeclarationFile||Cmt()}),B.importsNotUsedAsValues===2&&!n.isDeclarationFile&&oc(n)&&X_t(n),wp(n)&&O6e(n),_S.length&&(gn(_S,Mmt),Gh(_S)),hS.length&&(gn(hS,Lmt),Gh(hS)),ab.length&&(gn(ab,Wmt),Gh(ab)),sb.length&&(gn(sb,zmt),Gh(sb)),a.flags|=1}}function G6e(n,a){try{return i=a,aht(n)}finally{i=void 0}}function Zve(){for(let n of t)n();t=[]}function ebe(n){Zve();let a=r;r=c=>c(),iht(n),r=a}function aht(n){if(n){Zve();let a=Qa.getGlobalDiagnostics(),c=a.length;ebe(n);let u=Qa.getDiagnostics(n.fileName),_=Qa.getGlobalDiagnostics();if(_!==a){let g=Xte(a,_,FN);return Eo(g,u)}else if(c===0&&_.length>0)return Eo(_,u);return u}return gn(e.getSourceFiles(),ebe),Qa.getDiagnostics()}function sht(){return Zve(),Qa.getGlobalDiagnostics()}function lht(n,a){if(n.flags&67108864)return[];let c=aa(),u=!1;return _(),c.delete("this"),age(c);function _(){for(;n;){switch(lh(n)&&n.locals&&!xh(n)&&T(n.locals,a),n.kind){case 312:if(!oc(n))break;case 267:P(Sr(n).exports,a&2623475);break;case 266:T(Sr(n).exports,a&8);break;case 231:n.name&&g(n.symbol,a);case 263:case 264:u||T(Cb(Sr(n)),a&788968);break;case 218:n.name&&g(n.symbol,a);break}tie(n)&&g(Wt,a),u=ra(n),n=n.parent}T(be,a)}function g(W,V){if(_R(W)&V){let te=W.escapedName;c.has(te)||c.set(te,W)}}function T(W,V){V&&W.forEach(te=>{g(te,V)})}function P(W,V){V&&W.forEach(te=>{!cl(te,281)&&!cl(te,280)&&te.escapedName!=="default"&&g(te,V)})}}function cht(n){return n.kind===80&&SR(n.parent)&&Po(n.parent)===n}function V6e(n){for(;n.parent.kind===166;)n=n.parent;return n.parent.kind===183}function dht(n){for(;n.parent.kind===211;)n=n.parent;return n.parent.kind===233}function j6e(n,a){let c,u=ad(n);for(;u&&!(c=a(u));)u=ad(u);return c}function uht(n){return!!Fn(n,a=>Pl(a)&&Hf(a.body)||Uo(a)?!0:ci(a)||ws(a)?"quit":!1)}function tbe(n,a){return!!j6e(n,c=>c===a)}function pht(n){for(;n.parent.kind===166;)n=n.parent;if(n.parent.kind===271)return n.parent.moduleReference===n?n.parent:void 0;if(n.parent.kind===277)return n.parent.expression===n?n.parent:void 0}function Yee(n){return pht(n)!==void 0}function fht(n){switch(zl(n.parent.parent)){case 1:case 3:return pf(n.parent);case 5:if(kr(n.parent)&&hR(n.parent)===n)return;case 4:case 2:return Sr(n.parent.parent)}}function mht(n){let a=n.parent;for(;Su(a);)n=a,a=a.parent;if(a&&a.kind===205&&a.qualifier===n)return a}function _ht(n){if(n.expression.kind===110){let a=Lu(n,!1,!1);if($o(a)){let c=eWe(a);if(c){let u=u0(c,void 0),_=nWe(c,u);return _&&!xt(_)}}}}function U6e(n){if(kg(n))return pf(n.parent);if(ir(n)&&n.parent.kind===211&&n.parent===n.parent.parent.left&&!Ki(n)&&!gE(n)&&!_ht(n.parent)){let a=fht(n);if(a)return a}if(n.parent.kind===277&&Bl(n)){let a=Bs(n,2998271,!0);if(a&&a!==lt)return a}else if(Xu(n)&&Yee(n)){let a=dE(n,271);return x.assert(a!==void 0),X1(n,!0)}if(Xu(n)){let a=mht(n);if(a){Ti(a);let c=Qr(n).resolvedSymbol;return c===lt?void 0:c}}for(;Vie(n);)n=n.parent;if(dht(n)){let a=0;n.parent.kind===233?(a=qh(n)?788968:111551,f6(n.parent)&&(a|=111551)):a=1920,a|=2097152;let c=Bl(n)?Bs(n,a,!0):void 0;if(c)return c}if(n.parent.kind===348)return B2(n.parent);if(n.parent.kind===168&&n.parent.parent.kind===352){x.assert(!ir(n));let a=mie(n.parent);return a&&a.symbol}if(Xh(n)){if(Fl(n))return;let a=Fn(n,jm(SI,_P,gE)),c=a?901119:111551;if(n.kind===80){if($x(n)&&ux(n)){let _=vee(n.parent);return _===lt?void 0:_}let u=Bs(n,c,!0,!0,lE(n));if(!u&&a){let _=Fn(n,jm(ci,pu));if(_)return dG(n,!0,Sr(_))}if(u&&a){let _=vT(n);if(_&&Y0(_)&&_===u.valueDeclaration)return Bs(n,c,!0,!0,Gn(_))||u}return u}else{if(Ki(n))return See(n);if(n.kind===211||n.kind===166){let u=Qr(n);return u.resolvedSymbol?u.resolvedSymbol:(n.kind===211?(bee(n,0),u.resolvedSymbol||(u.resolvedSymbol=H6e(tc(n.expression),cv(n.name)))):CWe(n,0),!u.resolvedSymbol&&a&&Su(n)?dG(n):u.resolvedSymbol)}else if(gE(n))return dG(n)}}else if(V6e(n)){let a=n.parent.kind===183?788968:1920,c=Bs(n,a,!1,!0);return c&&c!==lt?c:SZ(n)}if(n.parent.kind===182)return Bs(n,1)}function H6e(n,a){let c=oge(n,a);if(c.length&&n.members){let u=vZ(l_(n).members);if(c===_u(n))return u;if(u){let _=qi(u),g=to(c,P=>P.declaration),T=mn(g,rs).join(",");if(_.filteredIndexSymbolCache||(_.filteredIndexSymbolCache=new Map),_.filteredIndexSymbolCache.has(T))return _.filteredIndexSymbolCache.get(T);{let P=Ka(131072,"__index");return P.declarations=to(c,W=>W.declaration),P.parent=n.aliasSymbol?n.aliasSymbol:n.symbol?n.symbol:zm(P.declarations[0].parent),_.filteredIndexSymbolCache.set(T,P),P}}}}function dG(n,a,c){if(Xu(n)){let T=Bs(n,901119,a,!0,lE(n));if(!T&&Fe(n)&&c&&(T=es(Vu(xp(c),n.escapedText,901119))),T)return T}let u=Fe(n)?c:dG(n.left,a,c),_=Fe(n)?n.escapedText:n.right.escapedText;if(u){let g=u.flags&111551&&ha(sr(u),"prototype"),T=g?sr(g):Xs(u);return ha(T,_)}}function zm(n,a){if(Yi(n))return oc(n)?es(n.symbol):void 0;let{parent:c}=n,u=c.parent;if(!(n.flags&67108864)){if(EIe(n)){let _=Sr(c);return yI(n.parent)&&n.parent.propertyName===n?Kye(_):_}else if(j2(n))return Sr(c.parent);if(n.kind===80){if(Yee(n))return U6e(n);if(c.kind===208&&u.kind===206&&n===c.propertyName){let _=fx(u),g=ha(_,n.escapedText);if(g)return g}else if(lP(c)&&c.name===n)return c.keywordToken===105&&gr(n)==="target"?vve(c).symbol:c.keywordToken===102&&gr(n)==="meta"?Jwe().members.get("meta"):void 0}switch(n.kind){case 80:case 81:case 211:case 166:if(!NI(n))return U6e(n);case 110:let _=Lu(n,!1,!1);if($o(_)){let P=lm(_);if(P.thisParameter)return P.thisParameter}if(VF(n))return po(n).symbol;case 197:return MZ(n).symbol;case 108:return po(n).symbol;case 137:let g=n.parent;return g&&g.kind===176?g.parent.symbol:void 0;case 11:case 15:if(aE(n.parent.parent)&&hN(n.parent.parent)===n||(n.parent.kind===272||n.parent.kind===278)&&n.parent.moduleSpecifier===n||ir(n)&&bu(n.parent,!1)||Op(n.parent)||Kv(n.parent)&&wv(n.parent.parent)&&n.parent.parent.argument===n.parent)return mu(n,n,a);if(ia(c)&&gT(c)&&c.arguments[1]===n)return Sr(c);case 9:let T=Js(c)?c.argumentExpression===n?xd(c.expression):void 0:Kv(c)&&MT(u)?Ti(u.objectType):void 0;return T&&ha(T,pl(n.text));case 90:case 100:case 39:case 86:return pf(n.parent);case 205:return wv(n)?zm(n.argument.literal,a):void 0;case 95:return Ll(n.parent)?x.checkDefined(n.parent.symbol):void 0;case 102:case 105:return lP(n.parent)?pFe(n.parent).symbol:void 0;case 104:if(dr(n.parent)){let P=xd(n.parent.right),W=Dve(P);return W?.symbol??P.symbol}return;case 236:return po(n).symbol;case 295:if($x(n)&&ux(n)){let P=vee(n.parent);return P===lt?void 0:P}default:return}}}function hht(n){if(Fe(n)&&kr(n.parent)&&n.parent.name===n){let a=cv(n),c=xd(n.parent.expression),u=c.flags&1048576?c.types:[c];return va(u,_=>jr(_u(_),g=>ix(a,g.keyType)))}}function ght(n){if(n&&n.kind===304)return Bs(n.name,2208703)}function yht(n){return Kd(n)?n.parent.parent.moduleSpecifier?ey(n.parent.parent,n):Bs(n.propertyName||n.name,2998271):Bs(n,2998271)}function fx(n){if(Yi(n)&&!oc(n)||n.flags&67108864)return ut;let a=Hj(n),c=a&&Wf(Sr(a.class));if(qh(n)){let u=Ti(n);return c?Up(u,c.thisType):u}if(Xh(n))return K6e(n);if(c&&!a.isImplements){let u=Xc(Dp(c));return u?Up(u,c.thisType):ut}if(SR(n)){let u=Sr(n);return Xs(u)}if(cht(n)){let u=zm(n);return u?Xs(u):ut}if(Xa(n))return PA(n,!0,0)||ut;if(Hd(n)){let u=Sr(n);return u?sr(u):ut}if(EIe(n)){let u=zm(n);return u?sr(u):ut}if(Qo(n))return PA(n.parent,!0,0)||ut;if(Yee(n)){let u=zm(n);if(u){let _=Xs(u);return Vt(_)?sr(u):_}}return lP(n.parent)&&n.parent.keywordToken===n.kind?pFe(n.parent):n1(n)?bge(!1):ut}function $ee(n){if(x.assert(n.kind===210||n.kind===209),n.parent.kind===250){let _=aG(n.parent);return ZA(n,_||ut)}if(n.parent.kind===226){let _=xd(n.parent.right);return ZA(n,_||ut)}if(n.parent.kind===303){let _=na(n.parent.parent,Ma),g=$ee(_)||ut,T=jx(_.properties,n.parent);return CFe(_,g,T)}let a=na(n.parent,uu),c=$ee(a)||ut,u=fv(65,c,Me,n.parent)||ut;return NFe(a,c,a.elements.indexOf(n),u)}function vht(n){let a=$ee(na(n.parent.parent,sN));return a&&ha(a,n.escapedText)}function K6e(n){return MN(n)&&(n=n.parent),gu(xd(n))}function J6e(n){let a=pf(n.parent);return ra(n)?sr(a):Xs(a)}function q6e(n){let a=n.name;switch(a.kind){case 80:return Uu(gr(a));case 9:case 11:return Uu(a.text);case 167:let c=bg(a);return Id(c,12288)?c:Ne;default:return x.fail("Unsupported property name.")}}function nbe(n){n=Nu(n);let a=aa(ms(n)),c=Jo(n,0).length?Un:Jo(n,1).length?yo:void 0;return c&&gn(ms(c),u=>{a.has(u.escapedName)||a.set(u.escapedName,u)}),KE(a)}function Qee(n){return Jo(n,0).length!==0||Jo(n,1).length!==0}function X6e(n){let a=bht(n);return a?va(a,X6e):[n]}function bht(n){if(Tl(n)&6)return to(qi(n).containingType.types,a=>ha(a,n.escapedName));if(n.flags&33554432){let{links:{leftSpread:a,rightSpread:c,syntheticOrigin:u}}=n;return a?[a,c]:u?[u]:pI(Eht(n))}}function Eht(n){let a,c=n;for(;c=qi(c).target;)a=c;return a}function Sht(n){if(rl(n))return!1;let a=Do(n,Fe);if(!a)return!1;let c=a.parent;return c?!((kr(c)||mc(c))&&c.name===a)&&$8(a)===Wt:!1}function Tht(n){let a=mu(n.parent,n);if(!a||uN(a))return!0;let c=iv(a);a=Ip(a);let u=qi(a);return u.exportsSomeValue===void 0&&(u.exportsSomeValue=c?!!(a.flags&111551):Gc(Dh(a),_)),u.exportsSomeValue;function _(g){return g=Vl(g),g&&!!(Td(g)&111551)}}function Aht(n){return s2(n.parent)&&n===n.parent.name}function Iht(n,a){var c;let u=Do(n,Fe);if(u){let _=$8(u,Aht(u));if(_){if(_.flags&1048576){let T=es(_.exportSymbol);if(!a&&T.flags&944&&!(T.flags&3))return;_=T}let g=Ru(_);if(g){if(g.flags&512&&((c=g.valueDeclaration)==null?void 0:c.kind)===312){let T=g.valueDeclaration,P=Gn(u);return T!==P?void 0:T}return Fn(u.parent,T=>s2(T)&&Sr(T)===g)}}}}function xht(n){let a=Qoe(n);if(a)return a;let c=Do(n,Fe);if(c){let u=zht(c);if(bA(u,111551)&&!Lf(u,111551))return Mm(u)}}function Rht(n){return n.valueDeclaration&&Xa(n.valueDeclaration)&&Lx(n.valueDeclaration).parent.kind===299}function Y6e(n){if(n.flags&418&&n.valueDeclaration&&!Yi(n.valueDeclaration)){let a=qi(n);if(a.isDeclarationWithCollidingName===void 0){let c=uh(n.valueDeclaration);if(kre(c)||Rht(n)){let u=Qr(n.valueDeclaration);if(hl(c.parent,n.escapedName,111551,void 0,void 0,!1))a.isDeclarationWithCollidingName=!0;else if(u.flags&16384){let _=u.flags&32768,g=Nv(c,!1),T=c.kind===241&&Nv(c.parent,!1);a.isDeclarationWithCollidingName=!Gre(c)&&(!_||!g&&!T)}else a.isDeclarationWithCollidingName=!1}}return a.isDeclarationWithCollidingName}return!1}function Dht(n){if(!rl(n)){let a=Do(n,Fe);if(a){let c=$8(a);if(c&&Y6e(c))return c.valueDeclaration}}}function Cht(n){let a=Do(n,Hd);if(a){let c=Sr(a);if(c)return Y6e(c)}return!1}function $6e(n){switch(x.assert(pt),n.kind){case 271:return Zee(Sr(n));case 273:case 274:case 276:case 281:let a=Sr(n);return!!a&&Zee(a,!0);case 278:let c=n.exportClause;return!!c&&(yh(c)||gt(c.elements,$6e));case 277:return n.expression&&n.expression.kind===80?Zee(Sr(n),!0):!0}return!1}function Nht(n){let a=Do(n,td);return a===void 0||a.parent.kind!==312||!Qx(a)?!1:Zee(Sr(a))&&a.moduleReference&&!Fl(a.moduleReference)}function Zee(n,a){if(!n)return!1;let c=ff(Wc(n));return c===lt?!a||!Lf(n):!!(Td(n,a,!0)&111551)&&(B0(B)||!Y8(c))}function Y8(n){return Rve(n)||!!n.constEnumOnlyModule}function ete(n,a){if(x.assert(pt),pb(n)){let c=Sr(n),u=c&&qi(c);if(u?.referenced)return!0;let _=qi(c).aliasTarget;if(_&&lu(n)&32&&Td(_)&111551&&(B0(B)||!Y8(_)))return!0}return a?!!Go(n,c=>ete(c,a)):!1}function Q6e(n){if(Hf(n.body)){if(Pv(n)||Cy(n))return!1;let a=Sr(n),c=PS(a);return c.length>1||c.length===1&&c[0].declaration!==n}return!1}function Z6e(n){return!!J&&!_8(n)&&!Ym(n)&&!!n.initializer&&!$r(n,31)}function Pht(n){return J&&_8(n)&&!n.initializer&&$r(n,31)}function Mht(n){let a=Do(n,Ec);if(!a)return!1;let c=Sr(a);return!c||!(c.flags&16)?!1:!!Gc(xp(c),u=>u.flags&111551&&j6(u.valueDeclaration))}function Lht(n){let a=Do(n,Ec);if(!a)return Xe;let c=Sr(a);return c&&ms(sr(c))||Xe}function AC(n){var a;let c=n.id||0;return c<0||c>=mS.length?0:((a=mS[c])==null?void 0:a.flags)||0}function IC(n){return M6e(n.parent),Qr(n).enumMemberValue}function e4e(n){switch(n.kind){case 306:case 211:case 212:return!0}return!1}function rbe(n){if(n.kind===306)return IC(n);let a=Qr(n).resolvedSymbol;if(a&&a.flags&8){let c=a.valueDeclaration;if(A0(c.parent))return IC(c)}}function ibe(n){return!!(n.flags&524288)&&Jo(n,0).length>0}function kht(n,a){var c;let u=Do(n,Xu);if(!u||a&&(a=Do(a),!a))return 0;let _=!1;if(Su(u)){let te=Bs(Fp(u),111551,!0,!0,a);_=!!((c=te?.declarations)!=null&&c.every(iE))}let g=Bs(u,111551,!0,!0,a),T=g&&g.flags&2097152?Wc(g):g;_||(_=!!(g&&Lf(g,111551)));let P=Bs(u,788968,!0,!0,a),W=P&&P.flags&2097152?Wc(P):P;if(g||_||(_=!!(P&&Lf(P,788968))),T&&T===W){let te=Ege(!1);if(te&&T===te)return 9;let ye=sr(T);if(ye&&ts(ye))return _?10:1}if(!W)return _?11:0;let V=Xs(W);return Vt(V)?_?11:0:V.flags&3?11:Id(V,245760)?2:Id(V,528)?6:Id(V,296)?3:Id(V,2112)?4:Id(V,402653316)?5:wa(V)?7:Id(V,12288)?8:ibe(V)?10:Gf(V)?7:11}function wht(n,a,c,u,_){let g=Do(n,Qre);if(!g)return L.createToken(133);let T=Sr(g),P=T&&!(T.flags&133120)?FS(sr(T)):ut;return P.flags&8192&&P.symbol===T&&(c|=1048576),_&&(P=zb(P)),Et.typeToTypeNode(P,a,c|1024,u)}function Oht(n,a,c,u){let _=Do(n,$o);if(!_)return L.createToken(133);let g=lm(_);return Et.typeToTypeNode(ds(g),a,c|1024,u)}function Wht(n,a,c,u){let _=Do(n,ht);if(!_)return L.createToken(133);let g=Hp(K6e(_));return Et.typeToTypeNode(g,a,c|1024,u)}function Fht(n){return be.has(pl(n))}function $8(n,a){let c=Qr(n).resolvedSymbol;if(c)return c;let u=n;if(a){let _=n.parent;Hd(_)&&n===_.name&&(u=X(_))}return hl(u,n.escapedText,3257279,void 0,void 0,!0)}function zht(n){let a=Qr(n).resolvedSymbol;return a&&a!==lt?a:hl(n,n.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function Bht(n){if(!rl(n)){let a=Do(n,Fe);if(a){let c=$8(a);if(c)return ff(c).valueDeclaration}}}function Ght(n){if(!rl(n)){let a=Do(n,Fe);if(a){let c=$8(a);if(c)return jr(ff(c).declarations,u=>{switch(u.kind){case 260:case 169:case 208:case 172:case 303:case 304:case 306:case 210:case 262:case 218:case 219:case 263:case 231:case 266:case 174:case 177:case 178:case 267:return!0}return!1})}}}function Vht(n){return CF(n)||wi(n)&&pG(n)?wS(sr(Sr(n))):!1}function jht(n,a,c){let u=n.flags&1056?Et.symbolToExpression(n.symbol,111551,a,void 0,c):n===wn?L.createTrue():n===Ut&&L.createFalse();if(u)return u;let _=n.value;return typeof _=="object"?L.createBigIntLiteral(_):typeof _=="string"?L.createStringLiteral(_):_<0?L.createPrefixUnaryExpression(41,L.createNumericLiteral(-_)):L.createNumericLiteral(_)}function Uht(n,a){let c=sr(Sr(n));return jht(c,n,a)}function t4e(n){return n?(WE(n),Gn(n).localJsxFactory||Yg):Yg}function obe(n){if(n){let a=Gn(n);if(a){if(a.localJsxFragmentFactory)return a.localJsxFragmentFactory;let c=a.pragmas.get("jsxfrag"),u=To(c)?c[0]:c;if(u)return a.localJsxFragmentFactory=l1(u.arguments.factory,ce),a.localJsxFragmentFactory}}if(B.jsxFragmentFactory)return l1(B.jsxFragmentFactory,ce)}function Hht(){let n=e.getResolvedTypeReferenceDirectives(),a;return n&&(a=new Map,n.forEach(({resolvedTypeReferenceDirective:W},V,te)=>{if(!W?.resolvedFileName)return;let ye=e.getSourceFile(W.resolvedFileName);ye&&P(ye,V,te)})),{getReferencedExportContainer:Iht,getReferencedImportDeclaration:xht,getReferencedDeclarationWithCollidingName:Dht,isDeclarationWithCollidingName:Cht,isValueAliasDeclaration:W=>{let V=Do(W);return V&&pt?$6e(V):!0},hasGlobalName:Fht,isReferencedAliasDeclaration:(W,V)=>{let te=Do(W);return te&&pt?ete(te,V):!0},getNodeCheckFlags:W=>{let V=Do(W);return V?AC(V):0},isTopLevelValueImportEqualsWithEntityName:Nht,isDeclarationVisible:i_,isImplementationOfOverload:Q6e,isRequiredInitializedParameter:Z6e,isOptionalUninitializedParameterProperty:Pht,isExpandoFunctionDeclaration:Mht,getPropertiesOfContainerFunction:Lht,createTypeOfDeclaration:wht,createReturnTypeOfSignatureDeclaration:Oht,createTypeOfExpression:Wht,createLiteralConstValue:Uht,isSymbolAccessible:ki,isEntityNameVisible:vb,getConstantValue:W=>{let V=Do(W,e4e);return V?rbe(V):void 0},collectLinkedAliases:xM,getReferencedValueDeclaration:Bht,getReferencedValueDeclarations:Ght,getTypeReferenceSerializationKind:kht,isOptionalParameter:_8,moduleExportsSomeValue:Tht,isArgumentsLocalBinding:Sht,getExternalModuleFileFromDeclaration:W=>{let V=Do(W,jre);return V&&abe(V)},getTypeReferenceDirectivesForEntityName:_,getTypeReferenceDirectivesForSymbol:g,isLiteralConstDeclaration:Vht,isLateBound:W=>{let V=Do(W,Hd),te=V&&Sr(V);return!!(te&&Tl(te)&4096)},getJsxFactoryEntity:t4e,getJsxFragmentFactoryEntity:obe,getAllAccessorDeclarations(W){W=Do(W,iF);let V=W.kind===178?177:178,te=cl(Sr(W),V),ye=te&&te.posty(W,W,void 0),isBindingCapturedByNode:(W,V)=>{let te=Do(W),ye=Do(V);return!!te&&!!ye&&(wi(ye)||Xa(ye))&&_dt(te,ye)},getDeclarationStatementsForSourceFile:(W,V,te,ye)=>{let _e=Do(W);x.assert(_e&&_e.kind===312,"Non-sourcefile node passed into getDeclarationsForSourceFile");let je=Sr(W);return je?je.exports?Et.symbolTableToDeclarationStatements(je.exports,W,V,te,ye):[]:W.locals?Et.symbolTableToDeclarationStatements(W.locals,W,V,te,ye):[]},isImportRequiredByAugmentation:c,tryFindAmbientModule:W=>{let V=Do(W),te=V&&as(V)?V.text:void 0;return te!==void 0?hZ(te,!0):void 0}};function c(W){let V=Gn(W);if(!V.symbol)return!1;let te=abe(W);if(!te||te===V)return!1;let ye=Dh(V.symbol);for(let _e of Wo(ye.values()))if(_e.mergeId){let je=es(_e);if(je.declarations){for(let mt of je.declarations)if(Gn(mt)===te)return!0}}return!1}function u(W){return W.parent&&W.parent.kind===233&&W.parent.parent&&W.parent.parent.kind===298}function _(W){if(!a)return;let V;W.parent.kind===167?V=1160127:(V=790504,(W.kind===80&&TT(W)||W.kind===211&&!u(W))&&(V=1160127));let te=Bs(W,V,!0);return te&&te!==lt?g(te,V):void 0}function g(W,V){if(!a||!T(W))return;let te;for(let ye of W.declarations)if(ye.symbol&&ye.symbol.flags&V){let _e=Gn(ye),je=a.get(_e.path);if(je)(te||(te=[])).push(je);else return}return te}function T(W){if(!W.declarations)return!1;let V=W;for(;;){let te=Ru(V);if(te)V=te;else break}if(V.valueDeclaration&&V.valueDeclaration.kind===312&&V.flags&512)return!1;for(let te of W.declarations){let ye=Gn(te);if(a.has(ye.path))return!0}return!1}function P(W,V,te){if(!a.has(W.path)){a.set(W.path,[V,te]);for(let{fileName:ye}of W.referencedFiles){let _e=ez(ye,W.fileName),je=e.getSourceFile(_e);je&&P(je,V,te||W.impliedNodeFormat)}}}}function abe(n){let a=n.kind===267?ri(n.name,Da):tR(n),c=ty(a,a,void 0);if(c)return cl(c,312)}function Kht(){for(let a of e.getSourceFiles())Pse(a,B);ys=new Map;let n;for(let a of e.getSourceFiles())if(!a.redirectInfo){if(!wp(a)){let c=a.locals.get("globalThis");if(c?.declarations)for(let u of c.declarations)Qa.add(Pr(u,f.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));n_(be,a.locals)}a.jsGlobalAugmentations&&n_(be,a.jsGlobalAugmentations),a.patternAmbientModules&&a.patternAmbientModules.length&&(im=Eo(im,a.patternAmbientModules)),a.moduleAugmentations.length&&(n||(n=[])).push(a.moduleAugmentations),a.symbol&&a.symbol.globalExports&&a.symbol.globalExports.forEach((u,_)=>{be.has(_)||be.set(_,u)})}if(n)for(let a of n)for(let c of a)E_(c.parent)&&BD(c);if(gS(be,lA,f.Declaration_name_conflicts_with_built_in_global_identifier_0),qi(ze).type=Nt,qi(Wt).type=ec("IArguments",0,!0),qi(lt).type=ut,qi(tt).type=kf(16,tt),Xo=ec("Array",1,!0),Re=ec("Object",0,!0),Lt=ec("Function",0,!0),Un=pe&&ec("CallableFunction",0,!0)||Lt,yo=pe&&ec("NewableFunction",0,!0)||Lt,Ql=ec("String",0,!0),gc=ec("Number",0,!0),sl=ec("Boolean",0,!0),_l=ec("RegExp",0,!0),Zl=Bd(G),Jc=Bd(et),Jc===Ca&&(Jc=Ds(void 0,K,Xe,Xe,Xe)),Zo=Zwe("ReadonlyArray",1)||Xo,lf=Zo?y8(Zo,[G]):Zl,Gl=Zwe("ThisType",1),n)for(let a of n)for(let c of a)E_(c.parent)||BD(c);ys.forEach(({firstFile:a,secondFile:c,conflictingSymbols:u})=>{if(u.size<8)u.forEach(({isBlockScoped:_,firstFileLocations:g,secondFileLocations:T},P)=>{let W=_?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0;for(let V of g)$g(V,W,P,T);for(let V of T)$g(V,W,P,g)});else{let _=Wo(u.keys()).join(", ");Qa.add(Pa(Pr(a,f.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,_),Pr(c,f.Conflicts_are_in_this_file))),Qa.add(Pa(Pr(c,f.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,_),Pr(a,f.Conflicts_are_in_this_file)))}}),ys=void 0}function xc(n,a){if((s&a)!==a&&B.importHelpers){let c=Gn(n);if(TI(c,B)&&!(n.flags&33554432)){let u=qht(c,n);if(u!==lt){let _=a&~s;for(let g=1;g<=33554432;g<<=1)if(_&g)for(let T of Jht(g)){if(o.has(T))continue;o.add(T);let P=Vl(Vu(Dh(u),pl(T),111551));P?g&524288?gt(PS(P),W=>Kp(W)>3)||Ve(n,f.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,Gv,T,4):g&1048576?gt(PS(P),W=>Kp(W)>4)||Ve(n,f.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,Gv,T,5):g&1024&&(gt(PS(P),W=>Kp(W)>2)||Ve(n,f.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,Gv,T,3)):Ve(n,f.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,Gv,T)}}s|=a}}}function Jht(n){switch(n){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return Z?["__decorate"]:["__esDecorate","__runInitializers"];case 16:return["__metadata"];case 32:return["__param"];case 64:return["__awaiter"];case 128:return["__generator"];case 256:return["__values"];case 512:return["__read"];case 1024:return["__spreadArray"];case 2048:return["__await"];case 4096:return["__asyncGenerator"];case 8192:return["__asyncDelegator"];case 16384:return["__asyncValues"];case 32768:return["__exportStar"];case 65536:return["__importStar"];case 131072:return["__importDefault"];case 262144:return["__makeTemplateObject"];case 524288:return["__classPrivateFieldGet"];case 1048576:return["__classPrivateFieldSet"];case 2097152:return["__classPrivateFieldIn"];case 4194304:return["__createBinding"];case 8388608:return["__setFunctionName"];case 16777216:return["__propKey"];case 33554432:return["__addDisposableResource","__disposeResources"];default:return x.fail("Unrecognized helper")}}function qht(n,a){return l||(l=j_(n,Gv,f.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,a)||lt),l}function Sg(n){var a;let c=$ht(n)||Xht(n);if(c!==void 0)return c;if(Ao(n)&&L0(n))return _d(n,f.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);let u=Ml(n)?n.declarationList.flags&7:0,_,g,T,P,W,V=0,te=!1,ye=!1;for(let _e of n.modifiers)if(bd(_e)){if(GF(Z,n,n.parent,n.parent.parent)){if(Z&&(n.kind===177||n.kind===178)){let je=AT(n.parent.members,n);if(bf(je.firstAccessor)&&n===je.secondAccessor)return _d(n,f.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return n.kind===174&&!Hf(n.body)?_d(n,f.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):_d(n,f.Decorators_are_not_valid_here);if(V&-34849)return yn(_e,f.Decorators_are_not_valid_here);if(ye&&V&98303){x.assertIsDefined(W);let je=Gn(_e);return US(je)?!1:(Pa(Ve(_e,f.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Pr(W,f.Decorator_used_before_export_here)),!0)}V|=32768,V&98303?V&32&&(te=!0):ye=!0,W??(W=_e)}else{if(_e.kind!==148){if(n.kind===171||n.kind===173)return yn(_e,f._0_modifier_cannot_appear_on_a_type_member,da(_e.kind));if(n.kind===181&&(_e.kind!==126||!ci(n.parent)))return yn(_e,f._0_modifier_cannot_appear_on_an_index_signature,da(_e.kind))}if(_e.kind!==103&&_e.kind!==147&&_e.kind!==87&&n.kind===168)return yn(_e,f._0_modifier_cannot_appear_on_a_type_parameter,da(_e.kind));switch(_e.kind){case 87:{if(n.kind!==266&&n.kind!==168)return yn(n,f.A_class_member_cannot_have_the_0_keyword,da(87));let At=nm(n.parent)&&cE(n.parent)||n.parent;if(n.kind===168&&!(ws(At)||ci(At)||hh(At)||RR(At)||XI(At)||Mk(At)||_h(At)))return yn(_e,f._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,da(_e.kind));break}case 164:if(V&16)return yn(_e,f._0_modifier_already_seen,"override");if(V&128)return yn(_e,f._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(V&8)return yn(_e,f._0_modifier_must_precede_1_modifier,"override","readonly");if(V&512)return yn(_e,f._0_modifier_must_precede_1_modifier,"override","accessor");if(V&1024)return yn(_e,f._0_modifier_must_precede_1_modifier,"override","async");V|=16,P=_e;break;case 125:case 124:case 123:let je=NA(MI(_e.kind));if(V&7)return yn(_e,f.Accessibility_modifier_already_seen);if(V&16)return yn(_e,f._0_modifier_must_precede_1_modifier,je,"override");if(V&256)return yn(_e,f._0_modifier_must_precede_1_modifier,je,"static");if(V&512)return yn(_e,f._0_modifier_must_precede_1_modifier,je,"accessor");if(V&8)return yn(_e,f._0_modifier_must_precede_1_modifier,je,"readonly");if(V&1024)return yn(_e,f._0_modifier_must_precede_1_modifier,je,"async");if(n.parent.kind===268||n.parent.kind===312)return yn(_e,f._0_modifier_cannot_appear_on_a_module_or_namespace_element,je);if(V&64)return _e.kind===123?yn(_e,f._0_modifier_cannot_be_used_with_1_modifier,je,"abstract"):yn(_e,f._0_modifier_must_precede_1_modifier,je,"abstract");if(ou(n))return yn(_e,f.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);V|=MI(_e.kind);break;case 126:if(V&256)return yn(_e,f._0_modifier_already_seen,"static");if(V&8)return yn(_e,f._0_modifier_must_precede_1_modifier,"static","readonly");if(V&1024)return yn(_e,f._0_modifier_must_precede_1_modifier,"static","async");if(V&512)return yn(_e,f._0_modifier_must_precede_1_modifier,"static","accessor");if(n.parent.kind===268||n.parent.kind===312)return yn(_e,f._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(n.kind===169)return yn(_e,f._0_modifier_cannot_appear_on_a_parameter,"static");if(V&64)return yn(_e,f._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(V&16)return yn(_e,f._0_modifier_must_precede_1_modifier,"static","override");V|=256,_=_e;break;case 129:if(V&512)return yn(_e,f._0_modifier_already_seen,"accessor");if(V&8)return yn(_e,f._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(V&128)return yn(_e,f._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(n.kind!==172)return yn(_e,f.accessor_modifier_can_only_appear_on_a_property_declaration);V|=512;break;case 148:if(V&8)return yn(_e,f._0_modifier_already_seen,"readonly");if(n.kind!==172&&n.kind!==171&&n.kind!==181&&n.kind!==169)return yn(_e,f.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(V&512)return yn(_e,f._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");V|=8;break;case 95:if(B.verbatimModuleSyntax&&!(n.flags&33554432)&&n.kind!==265&&n.kind!==264&&n.kind!==267&&n.parent.kind===312&&(z===1||Gn(n).impliedNodeFormat===1))return yn(_e,f.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(V&32)return yn(_e,f._0_modifier_already_seen,"export");if(V&128)return yn(_e,f._0_modifier_must_precede_1_modifier,"export","declare");if(V&64)return yn(_e,f._0_modifier_must_precede_1_modifier,"export","abstract");if(V&1024)return yn(_e,f._0_modifier_must_precede_1_modifier,"export","async");if(ci(n.parent))return yn(_e,f._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(n.kind===169)return yn(_e,f._0_modifier_cannot_appear_on_a_parameter,"export");if(u===4)return yn(_e,f._0_modifier_cannot_appear_on_a_using_declaration,"export");if(u===6)return yn(_e,f._0_modifier_cannot_appear_on_an_await_using_declaration,"export");V|=32;break;case 90:let mt=n.parent.kind===312?n.parent:n.parent.parent;if(mt.kind===267&&!Md(mt))return yn(_e,f.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(u===4)return yn(_e,f._0_modifier_cannot_appear_on_a_using_declaration,"default");if(u===6)return yn(_e,f._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(V&32){if(te)return yn(W,f.Decorators_are_not_valid_here)}else return yn(_e,f._0_modifier_must_precede_1_modifier,"export","default");V|=2048;break;case 138:if(V&128)return yn(_e,f._0_modifier_already_seen,"declare");if(V&1024)return yn(_e,f._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(V&16)return yn(_e,f._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(ci(n.parent)&&!Uo(n))return yn(_e,f._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(n.kind===169)return yn(_e,f._0_modifier_cannot_appear_on_a_parameter,"declare");if(u===4)return yn(_e,f._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(u===6)return yn(_e,f._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(n.parent.flags&33554432&&n.parent.kind===268)return yn(_e,f.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(ou(n))return yn(_e,f._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(V&512)return yn(_e,f._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");V|=128,g=_e;break;case 128:if(V&64)return yn(_e,f._0_modifier_already_seen,"abstract");if(n.kind!==263&&n.kind!==185){if(n.kind!==174&&n.kind!==172&&n.kind!==177&&n.kind!==178)return yn(_e,f.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(n.parent.kind===263&&$r(n.parent,64))){let At=n.kind===172?f.Abstract_properties_can_only_appear_within_an_abstract_class:f.Abstract_methods_can_only_appear_within_an_abstract_class;return yn(_e,At)}if(V&256)return yn(_e,f._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(V&2)return yn(_e,f._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(V&1024&&T)return yn(T,f._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(V&16)return yn(_e,f._0_modifier_must_precede_1_modifier,"abstract","override");if(V&512)return yn(_e,f._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(iu(n)&&n.name.kind===81)return yn(_e,f._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");V|=64;break;case 134:if(V&1024)return yn(_e,f._0_modifier_already_seen,"async");if(V&128||n.parent.flags&33554432)return yn(_e,f._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(n.kind===169)return yn(_e,f._0_modifier_cannot_appear_on_a_parameter,"async");if(V&64)return yn(_e,f._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");V|=1024,T=_e;break;case 103:case 147:{let At=_e.kind===103?8192:16384,rn=_e.kind===103?"in":"out",sn=nm(n.parent)&&(cE(n.parent)||Vr((a=iR(n.parent))==null?void 0:a.tags,zT))||n.parent;if(n.kind!==168||sn&&!(pu(sn)||ci(sn)||Tm(sn)||zT(sn)))return yn(_e,f._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,rn);if(V&At)return yn(_e,f._0_modifier_already_seen,rn);if(At&8192&&V&16384)return yn(_e,f._0_modifier_must_precede_1_modifier,"in","out");V|=At;break}}}return n.kind===176?V&256?yn(_,f._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):V&16?yn(P,f._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):V&1024?yn(T,f._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(n.kind===272||n.kind===271)&&V&128?yn(g,f.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):n.kind===169&&V&31&&Qo(n.name)?yn(n,f.A_parameter_property_may_not_be_declared_using_a_binding_pattern):n.kind===169&&V&31&&n.dotDotDotToken?yn(n,f.A_parameter_property_cannot_be_declared_using_a_rest_parameter):V&1024?Zht(n,T):!1}function Xht(n){if(!n.modifiers)return!1;let a=Yht(n);return a&&_d(a,f.Modifiers_cannot_appear_here)}function tte(n,a){let c=Vr(n.modifiers,Sa);return c&&c.kind!==a?c:void 0}function Yht(n){switch(n.kind){case 177:case 178:case 176:case 172:case 171:case 174:case 173:case 181:case 267:case 272:case 271:case 278:case 277:case 218:case 219:case 169:case 168:return;case 175:case 303:case 304:case 270:case 282:return Vr(n.modifiers,Sa);default:if(n.parent.kind===268||n.parent.kind===312)return;switch(n.kind){case 262:return tte(n,134);case 263:case 185:return tte(n,128);case 231:case 264:case 265:return Vr(n.modifiers,Sa);case 243:return n.declarationList.flags&4?tte(n,135):Vr(n.modifiers,Sa);case 266:return tte(n,87);default:x.assertNever(n)}}}function $ht(n){let a=Qht(n);return a&&_d(a,f.Decorators_are_not_valid_here)}function Qht(n){return TH(n)?Vr(n.modifiers,bd):void 0}function Zht(n,a){switch(n.kind){case 174:case 262:case 218:case 219:return!1}return yn(a,f._0_modifier_cannot_be_used_here,"async")}function mx(n,a=f.Trailing_comma_not_allowed){return n&&n.hasTrailingComma?HS(n[0],n.end-1,1,a):!1}function n4e(n,a){if(n&&n.length===0){let c=n.pos-1,u=Na(a.text,n.end)+1;return HS(a,c,u-c,f.Type_parameter_list_cannot_be_empty)}return!1}function egt(n){let a=!1,c=n.length;for(let u=0;u!!a.initializer||Qo(a.name)||Kh(a))}function ngt(n){if(ce>=3){let a=n.body&&Ko(n.body)&&vH(n.body.statements);if(a){let c=tgt(n.parameters);if(Nn(c)){gn(c,_=>{Pa(Ve(_,f.This_parameter_is_not_allowed_with_use_strict_directive),Pr(a,f.use_strict_directive_used_here))});let u=c.map((_,g)=>g===0?Pr(_,f.Non_simple_parameter_declared_here):Pr(_,f.and_here));return Pa(Ve(a,f.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...u),!0}}}return!1}function nte(n){let a=Gn(n);return Sg(n)||n4e(n.typeParameters,a)||egt(n.parameters)||igt(n,a)||ws(n)&&ngt(n)}function rgt(n){let a=Gn(n);return cgt(n)||n4e(n.typeParameters,a)}function igt(n,a){if(!Os(n))return!1;n.typeParameters&&!(Nn(n.typeParameters)>1||n.typeParameters.hasTrailingComma||n.typeParameters[0].constraint)&&a&&bc(a.fileName,[".mts",".cts"])&&yn(n.typeParameters[0],f.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);let{equalsGreaterThanToken:c}=n,u=hs(a,c.pos).line,_=hs(a,c.end).line;return u!==_&&yn(c,f.Line_terminator_not_permitted_before_arrow)}function ogt(n){let a=n.parameters[0];if(n.parameters.length!==1)return yn(a?a.name:n,f.An_index_signature_must_have_exactly_one_parameter);if(mx(n.parameters,f.An_index_signature_cannot_have_a_trailing_comma),a.dotDotDotToken)return yn(a.dotDotDotToken,f.An_index_signature_cannot_have_a_rest_parameter);if(u6(a))return yn(a.name,f.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(a.questionToken)return yn(a.questionToken,f.An_index_signature_parameter_cannot_have_a_question_mark);if(a.initializer)return yn(a.name,f.An_index_signature_parameter_cannot_have_an_initializer);if(!a.type)return yn(a.name,f.An_index_signature_parameter_must_have_a_type_annotation);let c=Ti(a.type);return Fm(c,u=>!!(u.flags&8576))||pC(c)?yn(a.name,f.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):ap(c,bZ)?n.type?!1:yn(n,f.An_index_signature_must_have_a_type_annotation):yn(a.name,f.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function agt(n){return Sg(n)||ogt(n)}function sgt(n,a){if(a&&a.length===0){let c=Gn(n),u=a.pos-1,_=Na(c.text,a.end)+1;return HS(c,u,_-u,f.Type_argument_list_cannot_be_empty)}return!1}function uG(n,a){return mx(a)||sgt(n,a)}function lgt(n){return n.questionDotToken||n.flags&64?yn(n.template,f.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function r4e(n){let a=n.types;if(mx(a))return!0;if(a&&a.length===0){let c=da(n.token);return HS(n,a.pos,0,f._0_list_cannot_be_empty,c)}return gt(a,i4e)}function i4e(n){return zy(n)&&sP(n.expression)&&n.typeArguments?yn(n,f.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):uG(n,n.typeArguments)}function cgt(n){let a=!1,c=!1;if(!Sg(n)&&n.heritageClauses)for(let u of n.heritageClauses){if(u.token===96){if(a)return _d(u,f.extends_clause_already_seen);if(c)return _d(u,f.extends_clause_must_precede_implements_clause);if(u.types.length>1)return _d(u.types[1],f.Classes_can_only_extend_a_single_class);a=!0}else{if(x.assert(u.token===119),c)return _d(u,f.implements_clause_already_seen);c=!0}r4e(u)}}function dgt(n){let a=!1;if(n.heritageClauses)for(let c of n.heritageClauses){if(c.token===96){if(a)return _d(c,f.extends_clause_already_seen);a=!0}else return x.assert(c.token===119),_d(c,f.Interface_declaration_cannot_have_implements_clause);r4e(c)}return!1}function rte(n){if(n.kind!==167)return!1;let a=n;return a.expression.kind===226&&a.expression.operatorToken.kind===28?yn(a.expression,f.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function sbe(n){if(n.asteriskToken){if(x.assert(n.kind===262||n.kind===218||n.kind===174),n.flags&33554432)return yn(n.asteriskToken,f.Generators_are_not_allowed_in_an_ambient_context);if(!n.body)return yn(n.asteriskToken,f.An_overload_signature_cannot_be_declared_as_a_generator)}}function lbe(n,a){return!!n&&yn(n,a)}function o4e(n,a){return!!n&&yn(n,a)}function ugt(n,a){let c=new Map;for(let u of n.properties){if(u.kind===305){if(a){let T=fs(u.expression);if(uu(T)||Ma(T))return yn(u.expression,f.A_rest_element_cannot_contain_a_binding_pattern)}continue}let _=u.name;if(_.kind===167&&rte(_),u.kind===304&&!a&&u.objectAssignmentInitializer&&yn(u.equalsToken,f.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern),_.kind===81&&yn(_,f.Private_identifiers_are_not_allowed_outside_class_bodies),Am(u)&&u.modifiers)for(let T of u.modifiers)Sa(T)&&(T.kind!==134||u.kind!==174)&&yn(T,f._0_modifier_cannot_be_used_here,uc(T));else if(wae(u)&&u.modifiers)for(let T of u.modifiers)Sa(T)&&yn(T,f._0_modifier_cannot_be_used_here,uc(T));let g;switch(u.kind){case 304:case 303:o4e(u.exclamationToken,f.A_definite_assignment_assertion_is_not_permitted_in_this_context),lbe(u.questionToken,f.An_object_member_cannot_be_declared_optional),_.kind===9&&ube(_),g=4;break;case 174:g=8;break;case 177:g=1;break;case 178:g=2;break;default:x.assertNever(u,"Unexpected syntax kind:"+u.kind)}if(!a){let T=pbe(_);if(T===void 0)continue;let P=c.get(T);if(!P)c.set(T,g);else if(g&8&&P&8)yn(_,f.Duplicate_identifier_0,uc(_));else if(g&4&&P&4)yn(_,f.An_object_literal_cannot_have_multiple_properties_with_the_same_name,uc(_));else if(g&3&&P&3)if(P!==3&&g!==P)c.set(T,g|P);else return yn(_,f.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return yn(_,f.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function pgt(n){fgt(n.tagName),uG(n,n.typeArguments);let a=new Map;for(let c of n.attributes.properties){if(c.kind===293)continue;let{name:u,initializer:_}=c,g=$N(u);if(!a.get(g))a.set(g,!0);else return yn(u,f.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(_&&_.kind===294&&!_.expression)return yn(_,f.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function fgt(n){if(kr(n)&&qm(n.expression))return yn(n.expression,f.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(qm(n)&&R6(B)&&!dR(n.namespace.escapedText))return yn(n,f.React_components_cannot_include_JSX_namespace_names)}function mgt(n){if(n.expression&&gP(n.expression))return yn(n.expression,f.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function a4e(n){if(gy(n))return!0;if(n.kind===250&&n.awaitModifier&&!(n.flags&65536)){let a=Gn(n);if(FF(n)){if(!US(a))switch(TI(a,B)||Qa.add(Pr(n.awaitModifier,f.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),z){case 100:case 199:if(a.impliedNodeFormat===1){Qa.add(Pr(n.awaitModifier,f.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(ce>=4)break;default:Qa.add(Pr(n.awaitModifier,f.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!US(a)){let c=Pr(n.awaitModifier,f.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),u=Wp(n);if(u&&u.kind!==176){x.assert((Vc(u)&2)===0,"Enclosing function should never be an async function.");let _=Pr(u,f.Did_you_mean_to_mark_this_function_as_async);Pa(c,_)}return Qa.add(c),!0}return!1}if(Wk(n)&&!(n.flags&65536)&&Fe(n.initializer)&&n.initializer.escapedText==="async")return yn(n.initializer,f.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(n.initializer.kind===261){let a=n.initializer;if(!dbe(a)){let c=a.declarations;if(!c.length)return!1;if(c.length>1){let _=n.kind===249?f.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:f.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return _d(a.declarations[1],_)}let u=c[0];if(u.initializer){let _=n.kind===249?f.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:f.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return yn(u.name,_)}if(u.type){let _=n.kind===249?f.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:f.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return yn(u,_)}}}return!1}function _gt(n){if(!(n.flags&33554432)&&n.parent.kind!==187&&n.parent.kind!==264){if(ce<1)return yn(n.name,f.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(ce<2&&Ki(n.name))return yn(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.body===void 0&&!$r(n,64))return HS(n,n.end-1,1,f._0_expected,"{")}if(n.body){if($r(n,64))return yn(n,f.An_abstract_accessor_cannot_have_an_implementation);if(n.parent.kind===187||n.parent.kind===264)return yn(n.body,f.An_implementation_cannot_be_declared_in_ambient_contexts)}if(n.typeParameters)return yn(n.name,f.An_accessor_cannot_have_type_parameters);if(!hgt(n))return yn(n.name,n.kind===177?f.A_get_accessor_cannot_have_parameters:f.A_set_accessor_must_have_exactly_one_parameter);if(n.kind===178){if(n.type)return yn(n.name,f.A_set_accessor_cannot_have_a_return_type_annotation);let a=x.checkDefined(DN(n),"Return value does not match parameter count assertion.");if(a.dotDotDotToken)return yn(a.dotDotDotToken,f.A_set_accessor_cannot_have_rest_parameter);if(a.questionToken)return yn(a.questionToken,f.A_set_accessor_cannot_have_an_optional_parameter);if(a.initializer)return yn(n.name,f.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function hgt(n){return cbe(n)||n.parameters.length===(n.kind===177?0:1)}function cbe(n){if(n.parameters.length===(n.kind===177?1:2))return M0(n)}function ggt(n){if(n.operator===158){if(n.type.kind!==155)return yn(n.type,f._0_expected,da(155));let a=G2(n.parent);if(ir(a)&&$0(a)){let c=vT(a);c&&(a=RI(c)||c)}switch(a.kind){case 260:let c=a;if(c.name.kind!==80)return yn(n,f.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!fN(c))return yn(n,f.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(c.parent.flags&2))return yn(a.name,f.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!ra(a)||!CN(a))return yn(a.name,f.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!$r(a,8))return yn(a.name,f.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return yn(n,f.unique_symbol_types_are_not_allowed_here)}}else if(n.operator===148&&n.type.kind!==188&&n.type.kind!==189)return _d(n,f.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,da(155))}function oL(n,a){if(wot(n))return yn(n,a)}function s4e(n){if(nte(n))return!0;if(n.kind===174){if(n.parent.kind===210){if(n.modifiers&&!(n.modifiers.length===1&&Va(n.modifiers).kind===134))return _d(n,f.Modifiers_cannot_appear_here);if(lbe(n.questionToken,f.An_object_member_cannot_be_declared_optional))return!0;if(o4e(n.exclamationToken,f.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(n.body===void 0)return HS(n,n.end-1,1,f._0_expected,"{")}if(sbe(n))return!0}if(ci(n.parent)){if(ce<2&&Ki(n.name))return yn(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.flags&33554432)return oL(n.name,f.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(n.kind===174&&!n.body)return oL(n.name,f.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(n.parent.kind===264)return oL(n.name,f.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(n.parent.kind===187)return oL(n.name,f.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function ygt(n){let a=n;for(;a;){if(Wx(a))return yn(n,f.Jump_target_cannot_cross_function_boundary);switch(a.kind){case 256:if(n.label&&a.label.escapedText===n.label.escapedText)return n.kind===251&&!Nv(a.statement,!0)?yn(n,f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 255:if(n.kind===252&&!n.label)return!1;break;default:if(Nv(a,!1)&&!n.label)return!1;break}a=a.parent}if(n.label){let c=n.kind===252?f.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return yn(n,c)}else{let c=n.kind===252?f.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:f.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return yn(n,c)}}function vgt(n){if(n.dotDotDotToken){let a=n.parent.elements;if(n!==Ja(a))return yn(n,f.A_rest_element_must_be_last_in_a_destructuring_pattern);if(mx(a,f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),n.propertyName)return yn(n.name,f.A_rest_element_cannot_have_a_property_name)}if(n.dotDotDotToken&&n.initializer)return HS(n,n.initializer.pos-1,1,f.A_rest_element_cannot_have_an_initializer)}function l4e(n){return $p(n)||n.kind===224&&n.operator===41&&n.operand.kind===9}function bgt(n){return n.kind===10||n.kind===224&&n.operator===41&&n.operand.kind===10}function Egt(n){if((kr(n)||Js(n)&&l4e(n.argumentExpression))&&Bl(n.expression))return!!(tc(n).flags&1056)}function c4e(n){let a=n.initializer;if(a){let c=!(l4e(a)||Egt(a)||a.kind===112||a.kind===97||bgt(a));if((CF(n)||wi(n)&&pG(n))&&!n.type){if(c)return yn(a,f.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return yn(a,f.Initializers_are_not_allowed_in_ambient_contexts)}}function Sgt(n){let a=KS(n),c=a&7;if(Qo(n.name))switch(c){case 6:return yn(n,f._0_declarations_may_not_have_binding_patterns,"await using");case 4:return yn(n,f._0_declarations_may_not_have_binding_patterns,"using")}if(n.parent.parent.kind!==249&&n.parent.parent.kind!==250){if(a&33554432)c4e(n);else if(!n.initializer){if(Qo(n.name)&&!Qo(n.parent))return yn(n,f.A_destructuring_declaration_must_have_an_initializer);switch(c){case 6:return yn(n,f._0_declarations_must_be_initialized,"await using");case 4:return yn(n,f._0_declarations_must_be_initialized,"using");case 2:return yn(n,f._0_declarations_must_be_initialized,"const")}}}if(n.exclamationToken&&(n.parent.parent.kind!==243||!n.type||n.initializer||a&33554432)){let u=n.initializer?f.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?f.A_definite_assignment_assertion_is_not_permitted_in_this_context:f.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return yn(n.exclamationToken,u)}return(z<5||Gn(n).impliedNodeFormat===1)&&z!==4&&!(n.parent.parent.flags&33554432)&&$r(n.parent.parent,32)&&d4e(n.name),!!c&&u4e(n.name)}function d4e(n){if(n.kind===80){if(gr(n)==="__esModule")return Igt("noEmit",n,f.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{let a=n.elements;for(let c of a)if(!jc(c))return d4e(c.name)}return!1}function u4e(n){if(n.kind===80){if(n.escapedText==="let")return yn(n,f.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{let a=n.elements;for(let c of a)jc(c)||u4e(c.name)}return!1}function dbe(n){let a=n.declarations;if(mx(n.declarations))return!0;if(!n.declarations.length)return HS(n,a.pos,a.end-a.pos,f.Variable_declaration_list_cannot_be_empty);let c=n.flags&7;return(c===4||c===6)&&G4(n.parent)?yn(n,c===4?f.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:f.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration):c===6?DFe(n):!1}function p4e(n){switch(n.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return p4e(n.parent)}return!0}function Tgt(n){if(!p4e(n.parent)){let a=KS(n.declarationList)&7;if(a){let c=a===1?"let":a===2?"const":a===4?"using":a===6?"await using":x.fail("Unknown BlockScope flag");return yn(n,f._0_declarations_can_only_be_declared_inside_a_block,c)}}}function Agt(n){let a=n.name.escapedText;switch(n.keywordToken){case 105:if(a!=="target")return yn(n.name,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Vi(n.name.escapedText),da(n.keywordToken),"target");break;case 102:if(a!=="meta")return yn(n.name,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Vi(n.name.escapedText),da(n.keywordToken),"meta");break}}function US(n){return n.parseDiagnostics.length>0}function _d(n,a,...c){let u=Gn(n);if(!US(u)){let _=ph(u,n.pos);return Qa.add(Qc(u,_.start,_.length,a,...c)),!0}return!1}function HS(n,a,c,u,..._){let g=Gn(n);return US(g)?!1:(Qa.add(Qc(g,a,c,u,..._)),!0)}function Igt(n,a,c,...u){let _=Gn(a);return US(_)?!1:(Zm(n,a,c,...u),!0)}function yn(n,a,...c){let u=Gn(n);return US(u)?!1:(Qa.add(Pr(n,a,...c)),!0)}function xgt(n){let a=ir(n)?d6(n):void 0,c=n.typeParameters||a&&Xc(a);if(c){let u=c.pos===c.end?c.pos:Na(Gn(n).text,c.pos);return HS(n,u,c.end-u,f.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function Rgt(n){let a=n.type||$f(n);if(a)return yn(a,f.Type_annotation_cannot_appear_on_a_constructor_declaration)}function Dgt(n){if(Ya(n.name)&&dr(n.name.expression)&&n.name.expression.operatorToken.kind===103)return yn(n.parent.members[0],f.A_mapped_type_may_not_declare_properties_or_methods);if(ci(n.parent)){if(Da(n.name)&&n.name.text==="constructor")return yn(n.name,f.Classes_may_not_have_a_field_named_constructor);if(oL(n.name,f.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(ce<2&&Ki(n.name))return yn(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(ce<2&&Mu(n))return yn(n.name,f.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(Mu(n)&&lbe(n.questionToken,f.An_accessor_property_cannot_be_declared_optional))return!0}else if(n.parent.kind===264){if(oL(n.name,f.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(x.assertNode(n,_p),n.initializer)return yn(n.initializer,f.An_interface_property_cannot_have_an_initializer)}else if(gp(n.parent)){if(oL(n.name,f.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(x.assertNode(n,_p),n.initializer)return yn(n.initializer,f.A_type_literal_property_cannot_have_an_initializer)}if(n.flags&33554432&&c4e(n),Uo(n)&&n.exclamationToken&&(!ci(n.parent)||!n.type||n.initializer||n.flags&33554432||ra(n)||w0(n))){let a=n.initializer?f.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?f.A_definite_assignment_assertion_is_not_permitted_in_this_context:f.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return yn(n.exclamationToken,a)}}function Cgt(n){return n.kind===264||n.kind===265||n.kind===272||n.kind===271||n.kind===278||n.kind===277||n.kind===270||$r(n,2208)?!1:_d(n,f.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function Ngt(n){for(let a of n.statements)if((Hd(a)||a.kind===243)&&Cgt(a))return!0;return!1}function Pgt(n){return!!(n.flags&33554432)&&Ngt(n)}function gy(n){if(n.flags&33554432){if(!Qr(n).hasReportedStatementInAmbientContext&&($o(n.parent)||Cv(n.parent)))return Qr(n).hasReportedStatementInAmbientContext=_d(n,f.An_implementation_cannot_be_declared_in_ambient_contexts);if(n.parent.kind===241||n.parent.kind===268||n.parent.kind===312){let c=Qr(n.parent);if(!c.hasReportedStatementInAmbientContext)return c.hasReportedStatementInAmbientContext=_d(n,f.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function ube(n){let a=uc(n).includes("."),c=n.numericLiteralFlags&16;a||c||+n.text<=2**53-1||e_(!1,Pr(n,f.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function Mgt(n){return!!(!(Kv(n.parent)||qv(n.parent)&&Kv(n.parent.parent))&&ce<7&&yn(n,f.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function Lgt(n,a,...c){let u=Gn(n);if(!US(u)){let _=ph(u,n.pos);return Qa.add(Qc(u,Jl(_),0,a,...c)),!0}return!1}function kgt(){return Oc||(Oc=[],be.forEach((n,a)=>{bK.test(a)&&Oc.push(n)})),Oc}function wgt(n){var a;return n.isTypeOnly&&n.name&&n.namedBindings?yn(n,f.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):n.isTypeOnly&&((a=n.namedBindings)==null?void 0:a.kind)===275?f4e(n.namedBindings):!1}function f4e(n){return!!gn(n.elements,a=>{if(a.isTypeOnly)return _d(a,a.kind===276?f.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:f.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function Ogt(n){if(B.verbatimModuleSyntax&&z===1)return yn(n,f.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(z===5)return yn(n,f.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(n.typeArguments)return yn(n,f.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);let a=n.arguments;if(z!==99&&z!==199&&z!==100&&(mx(a),a.length>1)){let u=a[1];return yn(u,f.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext)}if(a.length===0||a.length>2)return yn(n,f.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);let c=Vr(a,Jm);return c?yn(c,f.Argument_of_dynamic_import_cannot_be_spread_element):!1}function Wgt(n,a){let c=Lr(n);if(c&20&&a.flags&1048576)return Vr(a.types,u=>{if(u.flags&524288){let _=c&Lr(u);if(_&4)return n.target===u.target;if(_&16)return!!n.aliasSymbol&&n.aliasSymbol===u.aliasSymbol}return!1})}function Fgt(n,a){if(Lr(n)&128&&Fm(a,uv))return Vr(a.types,c=>!uv(c))}function zgt(n,a){let c=0;if(Jo(n,c).length>0||(c=1,Jo(n,c).length>0))return Vr(a.types,_=>Jo(_,c).length>0)}function Bgt(n,a){let c;if(!(n.flags&406978556)){let u=0;for(let _ of a.types)if(!(_.flags&406978556)){let g=ga([J_(n),J_(_)]);if(g.flags&4194304)return _;if(u_(g)||g.flags&1048576){let T=g.flags&1048576?yv(g.types,u_):1;T>=u&&(c=_,u=T)}}}return c}function Ggt(n){if(Rl(n,67108864)){let a=cc(n,c=>!(c.flags&402784252));if(!(a.flags&131072))return a}return n}function m4e(n,a,c){if(a.flags&1048576&&n.flags&2621440){let u=x8e(a,n);if(u)return u;let _=ms(n);if(_){let g=I8e(_,a);if(g){let T=Zge(a,mn(g,P=>[()=>sr(P),P.escapedName]),c);if(T!==a)return T}}}}function pbe(n){let a=bT(n);return a||(Ya(n)?Aye(xd(n.expression)):void 0)}function ite(n){return Kn===n||(Kn=n,pn=Zb(n)),pn}function KS(n){return en===n||(en=n,Dn=Ry(n)),Dn}function pG(n){let a=KS(n)&7;return a===2||a===4||a===6}}function wGe(e){return!Cv(e)}function bIe(e){return e.kind!==262&&e.kind!==174||!!e.body}function EIe(e){switch(e.parent.kind){case 276:case 281:return Fe(e);default:return kg(e)}}function SIe(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function qd(e){return!!(e.flags&1)}function vK(e){return!!(e.flags&2)}function OGe(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:ta(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return(t=e.getPackageJsonInfoCache)==null?void 0:t.call(e)},useCaseSensitiveFileNames:ta(e,e.useCaseSensitiveFileNames),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:t=>e.getProjectReferenceRedirect(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),fileExists:t=>e.fileExists(t),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?t=>e.readFile(t):void 0}}var bK,C3,Gse,Vse,jse,Use,N3,EK,P3,M3,TIe,L3,Hse,tf,SK,WGe=bt({"src/compiler/checker.ts"(){"use strict";ea(),zse(),nT(),bK=/^".+"$/,C3="(anonymous)",Gse=1,Vse=1,jse=1,Use=1,N3=(e=>(e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.IsUndefined=16777216]="IsUndefined",e[e.IsNull=33554432]="IsNull",e[e.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",e[e.All=134217727]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.VoidFacts=9830144]="VoidFacts",e[e.UndefinedFacts=26607360]="UndefinedFacts",e[e.NullFacts=42917664]="NullFacts",e[e.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",e[e.EmptyObjectFacts=83886079]="EmptyObjectFacts",e[e.UnknownFacts=83886079]="UnknownFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.OrFactsMask=8256]="OrFactsMask",e[e.AndFactsMask=134209471]="AndFactsMask",e))(N3||{}),EK=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),P3=(e=>(e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp",e[e.RestBindingElement=32]="RestBindingElement",e[e.TypeOnly=64]="TypeOnly",e))(P3||{}),M3=(e=>(e[e.None=0]="None",e[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.StrictTopSignature=16]="StrictTopSignature",e[e.Callback=3]="Callback",e))(M3||{}),TIe=EW(bIe,wGe),L3=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),Hse=class{},(e=>{e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.ElementType="ElementType",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"})(tf||(tf={})),SK=class F4e{constructor(t,r,i){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var o;r instanceof F4e;)r=r.inner;this.inner=r,this.moduleResolverHost=i,this.context=t,this.canTrackSymbol=!!((o=this.inner)!=null&&o.trackSymbol)}trackSymbol(t,r,i){var o,s;if((o=this.inner)!=null&&o.trackSymbol&&!this.disableTrackSymbol){if(this.inner.trackSymbol(t,r,i))return this.onDiagnosticReported(),!0;t.flags&262144||((s=this.context).trackedSymbols??(s.trackedSymbols=[])).push([t,r,i])}return!1}reportInaccessibleThisError(){var t;(t=this.inner)!=null&&t.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(t){var r;(r=this.inner)!=null&&r.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(t))}reportInaccessibleUniqueSymbolError(){var t;(t=this.inner)!=null&&t.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var t;(t=this.inner)!=null&&t.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(t){var r;(r=this.inner)!=null&&r.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(t))}reportTruncationError(){var t;(t=this.inner)!=null&&t.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}trackReferencedAmbientModule(t,r){var i;(i=this.inner)!=null&&i.trackReferencedAmbientModule&&(this.onDiagnosticReported(),this.inner.trackReferencedAmbientModule(t,r))}trackExternalModuleSymbolOfImportTypeNode(t){var r;(r=this.inner)!=null&&r.trackExternalModuleSymbolOfImportTypeNode&&(this.onDiagnosticReported(),this.inner.trackExternalModuleSymbolOfImportTypeNode(t))}reportNonlocalAugmentation(t,r,i){var o;(o=this.inner)!=null&&o.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(t,r,i))}reportNonSerializableProperty(t){var r;(r=this.inner)!=null&&r.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(t))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}}}});function $e(e,t,r,i){if(e===void 0)return e;let o=t(e),s;if(o!==void 0)return To(o)?s=(i||VGe)(o):s=o,x.assertNode(s,r),s}function zn(e,t,r,i,o){if(e===void 0)return e;let s=e.length;(i===void 0||i<0)&&(i=0),(o===void 0||o>s-i)&&(o=s-i);let l,d=-1,p=-1;i>0||os-i)&&(o=s-i),AIe(e,t,r,i,o)}function AIe(e,t,r,i,o){let s,l=e.length;(i>0||o=2&&(o=FGe(o,r)),r.setLexicalEnvironmentFlags(1,!1)),r.suspendLexicalEnvironment(),o}function FGe(e,t){let r;for(let i=0;i{let l=id,addSource:xe,setSourceContent:fe,addName:ne,addMapping:Ge,appendSourceMap:ve,toJSON:be,toString:()=>JSON.stringify(be())};function xe(tt){s();let Wt=_I(i,tt,e.getCurrentDirectory(),e.getCanonicalFileName,!0),_t=h.get(Wt);return _t===void 0&&(_t=p.length,p.push(Wt),d.push(tt),h.set(Wt,_t)),l(),_t}function fe(tt,Wt){if(s(),Wt!==null){for(m||(m=[]);m.lengthWt||me===Wt&&ge>_t)}function Ge(tt,Wt,_t,Je,pt,Zt){x.assert(tt>=ce,"generatedLine cannot backtrack"),x.assert(Wt>=0,"generatedCharacter cannot be negative"),x.assert(_t===void 0||_t>=0,"sourceIndex cannot be negative"),x.assert(Je===void 0||Je>=0,"sourceLine cannot be negative"),x.assert(pt===void 0||pt>=0,"sourceCharacter cannot be negative"),s(),(he(tt,Wt)||Ce(_t,Je,pt))&&(Le(),ce=tt,z=Wt,re=!1,pe=!1,J=!0),_t!==void 0&&Je!==void 0&&pt!==void 0&&(Z=_t,me=Je,ge=pt,re=!0,Zt!==void 0&&(q=Zt,pe=!0)),l()}function ve(tt,Wt,_t,Je,pt,Zt){x.assert(tt>=ce,"generatedLine cannot backtrack"),x.assert(Wt>=0,"generatedCharacter cannot be negative"),s();let en=[],Dn,Kn=xK(_t.mappings);for(let pn of Kn){if(Zt&&(pn.generatedLine>Zt.line||pn.generatedLine===Zt.line&&pn.generatedCharacter>Zt.character))break;if(pt&&(pn.generatedLine=1024&&Et()}function Le(){if(!(!J||!Ae())){if(s(),N0&&(A+=String.fromCharCode.apply(void 0,S),S.length=0)}function be(){return Le(),Et(),{version:3,file:t,sourceRoot:r,sources:p,names:y,mappings:A,sourcesContent:m}}function ze(tt){tt<0?tt=(-tt<<1)+1:tt=tt<<1;do{let Wt=tt&31;tt=tt>>5,tt>0&&(Wt=Wt|32),De(HGe(Wt))}while(tt>0)}}function AK(e,t){return{getLineCount:()=>t.length,getLineText:r=>e.substring(t[r],t[r+1])}}function Jse(e){for(let t=e.getLineCount()-1;t>=0;t--){let r=e.getLineText(t),i=k3.exec(r);if(i)return i[1].trimEnd();if(!r.match(w3))break}}function UGe(e){return typeof e=="string"||e===null}function qse(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&To(e.sources)&&oo(e.sources,No)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||To(e.sourcesContent)&&oo(e.sourcesContent,UGe))&&(e.names===void 0||e.names===null||To(e.names)&&oo(e.names,No))}function IK(e){try{let t=JSON.parse(e);if(qse(t))return t}catch{}}function xK(e){let t=!1,r=0,i=0,o=0,s=0,l=0,d=0,p=0,h;return{get pos(){return r},get error(){return h},get state(){return m(!0,!0)},next(){for(;!t&&r=e.length)return E("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;let Y=KGe(e.charCodeAt(r));if(Y===-1)return E("Invalid character in VLQ"),-1;w=(Y&32)!==0,K=K|(Y&31)<>1,K=-K):K=K>>1,K}}function xIe(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex}function Xse(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function HGe(e){return e>=0&&e<26?65+e:e>=26&&e<52?97+e-26:e>=52&&e<62?48+e-52:e===62?43:e===63?47:x.fail(`${e}: not a base64 value`)}function KGe(e){return e>=65&&e<=90?e-65:e>=97&&e<=122?e-97+26:e>=48&&e<=57?e-48+52:e===43?62:e===47?63:-1}function RIe(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function DIe(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function JGe(e,t){return x.assert(e.sourceIndex===t.sourceIndex),Zs(e.sourcePosition,t.sourcePosition)}function qGe(e,t){return Zs(e.generatedPosition,t.generatedPosition)}function XGe(e){return e.sourcePosition}function YGe(e){return e.generatedPosition}function Yse(e,t,r){let i=oi(r),o=t.sourceRoot?ho(t.sourceRoot,i):i,s=ho(t.file,i),l=e.getSourceFileLike(s),d=t.sources.map(j=>ho(j,o)),p=new Map(d.map((j,K)=>[e.getCanonicalFileName(j),K])),h,m,y;return{getSourcePosition:w,getGeneratedPosition:D};function E(j){let K=l!==void 0?BL(l,j.generatedLine,j.generatedCharacter,!0):-1,Y,B;if(Xse(j)){let ce=e.getSourceFileLike(d[j.sourceIndex]);Y=t.sources[j.sourceIndex],B=ce!==void 0?BL(ce,j.sourceLine,j.sourceCharacter,!0):-1}return{generatedPosition:K,source:Y,sourceIndex:j.sourceIndex,sourcePosition:B,nameIndex:j.nameIndex}}function S(){if(h===void 0){let j=xK(t.mappings),K=Wo(j,E);j.error!==void 0?(e.log&&e.log(`Encountered error while decoding sourcemap: ${j.error}`),h=Xe):h=K}return h}function A(j){if(y===void 0){let K=[];for(let Y of S()){if(!RIe(Y))continue;let B=K[Y.sourceIndex];B||(K[Y.sourceIndex]=B=[]),B.push(Y)}y=K.map(Y=>FC(Y,JGe,DIe))}return y[j]}function N(){if(m===void 0){let j=[];for(let K of S())j.push(K);m=FC(j,qGe,DIe)}return m}function D(j){let K=p.get(e.getCanonicalFileName(j.fileName));if(K===void 0)return j;let Y=A(K);if(!gt(Y))return j;let B=lI(Y,j.pos,XGe,Zs);B<0&&(B=~B);let ce=Y[B];return ce===void 0||ce.sourceIndex!==K?j:{fileName:s,pos:ce.generatedPosition}}function w(j){let K=N();if(!gt(K))return j;let Y=lI(K,j.pos,YGe,Zs);Y<0&&(Y=~Y);let B=K[Y];return B===void 0||!RIe(B)?j:{fileName:d[B.sourceIndex],pos:B.sourcePosition}}}var RK,k3,w3,O3,$Ge=bt({"src/compiler/sourcemap.ts"(){"use strict";ea(),nT(),RK=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,k3=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,w3=/^\s*(\/\/[@#] .*)?$/,O3={getSourcePosition:Qs,getGeneratedPosition:Qs}}});function wd(e){return e=Nl(e),e?rs(e):0}function QGe(e){return!e||!zg(e)?!1:gt(e.elements,CIe)}function CIe(e){return e.propertyName!==void 0&&e.propertyName.escapedText==="default"}function Im(e,t){return r;function r(o){return o.kind===312?t(o):i(o)}function i(o){return e.factory.createBundle(mn(o.sourceFiles,t),o.prepends)}}function $se(e){return!!nR(e)}function W3(e){if(nR(e))return!0;let t=e.importClause&&e.importClause.namedBindings;if(!t||!zg(t))return!1;let r=0;for(let i of t.elements)CIe(i)&&r++;return r>0&&r!==t.elements.length||!!(t.elements.length-r)&&II(e)}function DK(e){return!W3(e)&&(II(e)||!!e.importClause&&zg(e.importClause.namedBindings)&&QGe(e.importClause.namedBindings))}function CK(e,t){let r=e.getEmitResolver(),i=e.getCompilerOptions(),o=[],s=new LK,l=[],d=new Map,p,h=!1,m,y=!1,E=!1,S=!1;for(let D of t.statements)switch(D.kind){case 272:o.push(D),!E&&W3(D)&&(E=!0),!S&&DK(D)&&(S=!0);break;case 271:D.moduleReference.kind===283&&o.push(D);break;case 278:if(D.moduleSpecifier)if(!D.exportClause)o.push(D),y=!0;else if(o.push(D),xf(D.exportClause))N(D);else{let w=D.exportClause.name;d.get(gr(w))||(CP(l,wd(D),w),d.set(gr(w),!0),p=Tn(p,w)),E=!0}else N(D);break;case 277:D.isExportEquals&&!m&&(m=D);break;case 243:if($r(D,32))for(let w of D.declarationList.declarations)p=NIe(w,d,p,l);break;case 262:if($r(D,32))if($r(D,2048))h||(CP(l,wd(D),e.factory.getDeclarationName(D)),h=!0);else{let w=D.name;d.get(gr(w))||(CP(l,wd(D),w),d.set(gr(w),!0),p=Tn(p,w))}break;case 263:if($r(D,32))if($r(D,2048))h||(CP(l,wd(D),e.factory.getDeclarationName(D)),h=!0);else{let w=D.name;w&&!d.get(gr(w))&&(CP(l,wd(D),w),d.set(gr(w),!0),p=Tn(p,w))}break}let A=bH(e.factory,e.getEmitHelperFactory(),t,i,y,E,S);return A&&o.unshift(A),{externalImports:o,exportSpecifiers:s,exportEquals:m,hasExportStarsToExportValues:y,exportedBindings:l,exportedNames:p,externalHelpersImportDeclaration:A};function N(D){for(let w of na(D.exportClause,xf).elements)if(!d.get(gr(w.name))){let j=w.propertyName||w.name;D.moduleSpecifier||s.add(j,w);let K=r.getReferencedImportDeclaration(j)||r.getReferencedValueDeclaration(j);K&&CP(l,wd(K),w.name),d.set(gr(w.name),!0),p=Tn(p,w.name)}}}function NIe(e,t,r,i){if(Qo(e.name))for(let o of e.name.elements)jc(o)||(r=NIe(o,t,r,i));else if(!rl(e.name)){let o=gr(e.name);t.get(o)||(t.set(o,!0),r=Tn(r,e.name),Bg(e.name)&&CP(i,wd(e),e.name))}return r}function CP(e,t,r){let i=e[t];return i?i.push(r):e[t]=i=[r],i}function tS(e){return as(e)||e.kind===9||wu(e.kind)||Fe(e)}function L_(e){return!Fe(e)&&tS(e)}function NP(e){return e>=65&&e<=79}function PP(e){switch(e){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function F3(e){if(!ed(e))return;let t=fs(e.expression);return mT(t)?t:void 0}function PIe(e,t,r){for(let i=t;ie9e(i,t,r))}function ZGe(e){return t9e(e)||Al(e)}function B3(e){return jr(e.members,ZGe)}function e9e(e,t,r){return Uo(e)&&(!!e.initializer||!t)&&pc(e)===r}function t9e(e){return Uo(e)&&pc(e)}function Ew(e){return e.kind===172&&e.initializer!==void 0}function Qse(e){return!ra(e)&&(bI(e)||Mu(e))&&Ki(e.name)}function Zse(e){let t;if(e){let r=e.parameters,i=r.length>0&&L0(r[0]),o=i?1:0,s=i?r.length-1:r.length;for(let l=0;lMK(r.privateEnv,t))}function rle(e){return!e.initializer&&Fe(e.name)}function Sw(e){return oo(e,rle)}var f1,LK,i9e=bt({"src/compiler/transformers/utilities.ts"(){"use strict";ea(),f1=class DC{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(DC.toKey(t))}get(t){return this._map.get(DC.toKey(t))}set(t,r){return this._map.set(DC.toKey(t),r),this}delete(t){var r;return((r=this._map)==null?void 0:r.delete(DC.toKey(t)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(aT(t)||rl(t)){let r=t.emitNode.autoGenerate;if((r.flags&7)===4){let i=Jk(t),o=Hh(i)&&i!==t?DC.toKey(i):`(generated@${rs(i)})`;return vE(!1,r.prefix,o,r.suffix,DC.toKey)}else{let i=`(auto@${r.id})`;return vE(!1,r.prefix,i,r.suffix,DC.toKey)}}return Ki(t)?gr(t).slice(1):gr(t)}},LK=class extends f1{add(e,t){let r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}remove(e,t){let r=this.get(e);r&&(uI(r,t),r.length||this.delete(e))}}}});function UT(e,t,r,i,o,s){let l=e,d;if(ky(e))for(d=e.right;Uie(e.left)||Jj(e.left);)if(ky(d))l=e=d,d=e.right;else return x.checkDefined($e(d,t,ht));let p,h={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:m,emitBindingOrAssignment:y,createArrayBindingOrAssignmentPattern:E=>p9e(r.factory,E),createObjectBindingOrAssignmentPattern:E=>m9e(r.factory,E),createArrayBindingOrAssignmentElement:h9e,visitor:t};if(d&&(d=$e(d,t,ht),x.assert(d),Fe(d)&&ile(e,d.escapedText)||ole(e)?d=m1(h,d,!1,l):o?d=m1(h,d,!0,l):Ks(e)&&(l=d)),MP(h,e,d,l,ky(e)),d&&o){if(!gt(p))return d;p.push(d)}return r.factory.inlineExpressions(p)||r.factory.createOmittedExpression();function m(E){p=Tn(p,E)}function y(E,S,A,N){x.assertNode(E,s?Fe:ht);let D=s?s(E,S,A):at(r.factory.createAssignment(x.checkDefined($e(E,t,ht)),S),A);D.original=N,m(D)}}function ile(e,t){let r=Yv(e);return r2(r)?o9e(r,t):Fe(r)?r.escapedText===t:!1}function o9e(e,t){let r=zR(e);for(let i of r)if(ile(i,t))return!0;return!1}function ole(e){let t=Z4(e);if(t&&Ya(t)&&!b0(t.expression))return!0;let r=Yv(e);return!!r&&r2(r)&&a9e(r)}function a9e(e){return!!gn(zR(e),ole)}function nS(e,t,r,i,o,s=!1,l){let d,p=[],h=[],m={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:s,emitExpression:y,emitBindingOrAssignment:E,createArrayBindingOrAssignmentPattern:S=>u9e(r.factory,S),createObjectBindingOrAssignmentPattern:S=>f9e(r.factory,S),createArrayBindingOrAssignmentElement:S=>_9e(r.factory,S),visitor:t};if(wi(e)){let S=Hk(e);S&&(Fe(S)&&ile(e,S.escapedText)||ole(e))&&(S=m1(m,x.checkDefined($e(S,m.visitor,ht)),!1,S),e=r.factory.updateVariableDeclaration(e,e.name,void 0,void 0,S))}if(MP(m,e,o,e,l),d){let S=r.factory.createTempVariable(void 0);if(s){let A=r.factory.inlineExpressions(d);d=void 0,E(S,A,void 0,void 0)}else{r.hoistVariableDeclaration(S);let A=Ja(p);A.pendingExpressions=Tn(A.pendingExpressions,r.factory.createAssignment(S,A.value)),Hr(A.pendingExpressions,d),A.value=S}}for(let{pendingExpressions:S,name:A,value:N,location:D,original:w}of p){let j=r.factory.createVariableDeclaration(A,void 0,void 0,S?r.factory.inlineExpressions(Tn(S,N)):N);j.original=w,at(j,D),h.push(j)}return h;function y(S){d=Tn(d,S)}function E(S,A,N,D){x.assertNode(S,sT),d&&(A=r.factory.inlineExpressions(Tn(d,A)),d=void 0),p.push({pendingExpressions:d,name:S,value:A,location:N,original:D})}}function MP(e,t,r,i,o){let s=Yv(t);if(!o){let l=$e(Hk(t),e.visitor,ht);l?r?(r=c9e(e,r,l,i),!L_(l)&&r2(s)&&(r=m1(e,r,!0,i))):r=l:r||(r=e.context.factory.createVoidZero())}PV(s)?s9e(e,t,s,r,i):MV(s)?l9e(e,t,s,r,i):e.emitBindingOrAssignment(s,r,i,t)}function s9e(e,t,r,i,o){let s=zR(r),l=s.length;if(l!==1){let h=!n2(t)||l!==0;i=m1(e,i,h,o)}let d,p;for(let h=0;h=1&&!(m.transformFlags&98304)&&!(Yv(m).transformFlags&98304)&&!Ya(y))d=Tn(d,$e(m,e.visitor,pre));else{d&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(d),i,o,r),d=void 0);let E=d9e(e,i,y);Ya(y)&&(p=Tn(p,E.argumentExpression)),MP(e,m,E,m)}}}d&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(d),i,o,r)}function l9e(e,t,r,i,o){let s=zR(r),l=s.length;if(e.level<1&&e.downlevelIteration)i=m1(e,at(e.context.getEmitHelperFactory().createReadHelper(i,l>0&&Q4(s[l-1])?void 0:l),o),!1,o);else if(l!==1&&(e.level<1||l===0)||oo(s,jc)){let h=!n2(t)||l!==0;i=m1(e,i,h,o)}let d,p;for(let h=0;h=1)if(m.transformFlags&65536||e.hasTransformedPriorElement&&!LIe(m)){e.hasTransformedPriorElement=!0;let y=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(y),p=Tn(p,[y,m]),d=Tn(d,e.createArrayBindingOrAssignmentElement(y))}else d=Tn(d,m);else{if(jc(m))continue;if(Q4(m)){if(h===l-1){let y=e.context.factory.createArraySliceCall(i,h);MP(e,m,y,m)}}else{let y=e.context.factory.createElementAccessExpression(i,h);MP(e,m,y,m)}}}if(d&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(d),i,o,r),p)for(let[h,m]of p)MP(e,m,h,m)}function LIe(e){let t=Yv(e);if(!t||jc(t))return!0;let r=Z4(e);if(r&&!T_(r))return!1;let i=Hk(e);return i&&!L_(i)?!1:r2(t)?oo(zR(t),LIe):Fe(t)}function c9e(e,t,r,i){return t=m1(e,t,!0,i),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,r,void 0,t)}function d9e(e,t,r){let{factory:i}=e.context;if(Ya(r)){let o=m1(e,x.checkDefined($e(r.expression,e.visitor,ht)),!1,r);return e.context.factory.createElementAccessExpression(t,o)}else if($p(r)){let o=i.cloneNode(r);return e.context.factory.createElementAccessExpression(t,o)}else{let o=e.context.factory.createIdentifier(gr(r));return e.context.factory.createPropertyAccessExpression(t,o)}}function m1(e,t,r,i){if(Fe(t)&&r)return t;{let o=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(o),e.emitExpression(at(e.context.factory.createAssignment(o,t),i))):e.emitBindingOrAssignment(o,t,i,void 0),o}}function u9e(e,t){return x.assertEachNode(t,dF),e.createArrayBindingPattern(t)}function p9e(e,t){return x.assertEachNode(t,o2),e.createArrayLiteralExpression(mn(t,e.converters.convertToArrayAssignmentElement))}function f9e(e,t){return x.assertEachNode(t,Xa),e.createObjectBindingPattern(t)}function m9e(e,t){return x.assertEachNode(t,i2),e.createObjectLiteralExpression(mn(t,e.converters.convertToObjectAssignmentElement))}function _9e(e,t){return e.createBindingElement(void 0,void 0,t)}function h9e(e){return e}var kK,g9e=bt({"src/compiler/transformers/destructuring.ts"(){"use strict";ea(),kK=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(kK||{})}});function ale(e,t,r=e.createThis()){let i=e.createAssignment(t,r),o=e.createExpressionStatement(i),s=e.createBlock([o],!1),l=e.createClassStaticBlockDeclaration(s);return kd(l).classThis=t,l}function LP(e){var t;if(!Al(e)||e.body.statements.length!==1)return!1;let r=e.body.statements[0];return ed(r)&&Mc(r.expression,!0)&&Fe(r.expression.left)&&((t=e.emitNode)==null?void 0:t.classThis)===r.expression.left&&r.expression.right.kind===110}function wK(e){var t;return!!((t=e.emitNode)!=null&&t.classThis)&>(e.members,LP)}function sle(e,t,r,i){if(wK(t))return t;let o=ale(e,r,i);t.name&&Ra(o.body.statements[0],t.name);let s=e.createNodeArray([o,...t.members]);at(s,t.members);let l=Sc(t)?e.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,s):e.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,s);return kd(l).classThis=r,l}var y9e=bt({"src/compiler/transformers/classThis.ts"(){"use strict";ea()}});function kP(e,t,r){let i=Nl(Yl(r));return(Sc(i)||Ec(i))&&!i.name&&$r(i,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function kIe(e,t,r){let{factory:i}=e;if(r!==void 0)return{assignedName:i.createStringLiteral(r),name:t};if(T_(t)||Ki(t))return{assignedName:i.createStringLiteralFromNode(t),name:t};if(T_(t.expression)&&!Fe(t.expression))return{assignedName:i.createStringLiteralFromNode(t.expression),name:t};let o=i.getGeneratedNameForNode(t);e.hoistVariableDeclaration(o);let s=e.getEmitHelperFactory().createPropKeyHelper(t.expression),l=i.createAssignment(o,s),d=i.updateComputedPropertyName(t,l);return{assignedName:o,name:d}}function lle(e,t,r=e.factory.createThis()){let{factory:i}=e,o=e.getEmitHelperFactory().createSetFunctionNameHelper(r,t),s=i.createExpressionStatement(o),l=i.createBlock([s],!1),d=i.createClassStaticBlockDeclaration(l);return kd(d).assignedName=t,d}function _1(e){var t;if(!Al(e)||e.body.statements.length!==1)return!1;let r=e.body.statements[0];return ed(r)&&iP(r.expression,"___setFunctionName")&&r.expression.arguments.length>=2&&r.expression.arguments[1]===((t=e.emitNode)==null?void 0:t.assignedName)}function V3(e){var t;return!!((t=e.emitNode)!=null&&t.assignedName)&>(e.members,_1)}function OK(e){return!!e.name||V3(e)}function j3(e,t,r,i){if(V3(t))return t;let{factory:o}=e,s=lle(e,r,i);t.name&&Ra(s.body.statements[0],t.name);let l=Kl(t.members,LP)+1,d=t.members.slice(0,l),p=t.members.slice(l),h=o.createNodeArray([...d,s,...p]);return at(h,t.members),t=Sc(t)?o.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,h):o.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,h),kd(t).assignedName=r,t}function YR(e,t,r,i){if(i&&Da(r)&&cj(r))return t;let{factory:o}=e,s=Yl(t),l=Zc(s)?na(j3(e,s,r),Zc):e.getEmitHelperFactory().createSetFunctionNameHelper(s,r);return o.restoreOuterExpressions(t,l)}function v9e(e,t,r,i){let{factory:o}=e,{assignedName:s,name:l}=kIe(e,t.name,i),d=YR(e,t.initializer,s,r);return o.updatePropertyAssignment(t,l,d)}function b9e(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):kP(o,t.name,t.objectAssignmentInitializer),l=YR(e,t.objectAssignmentInitializer,s,r);return o.updateShorthandPropertyAssignment(t,t.name,l)}function E9e(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):kP(o,t.name,t.initializer),l=YR(e,t.initializer,s,r);return o.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,l)}function S9e(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):kP(o,t.name,t.initializer),l=YR(e,t.initializer,s,r);return o.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,l)}function T9e(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):kP(o,t.name,t.initializer),l=YR(e,t.initializer,s,r);return o.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,l)}function A9e(e,t,r,i){let{factory:o}=e,{assignedName:s,name:l}=kIe(e,t.name,i),d=YR(e,t.initializer,s,r);return o.updatePropertyDeclaration(t,t.modifiers,l,t.questionToken??t.exclamationToken,t.type,d)}function I9e(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):kP(o,t.left,t.right),l=YR(e,t.right,s,r);return o.updateBinaryExpression(t,t.left,t.operatorToken,l)}function x9e(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):o.createStringLiteral(t.isExportEquals?"":"default"),l=YR(e,t.expression,s,r);return o.updateExportAssignment(t,t.modifiers,l)}function yp(e,t,r,i){switch(t.kind){case 303:return v9e(e,t,r,i);case 304:return b9e(e,t,r,i);case 260:return E9e(e,t,r,i);case 169:return S9e(e,t,r,i);case 208:return T9e(e,t,r,i);case 172:return A9e(e,t,r,i);case 226:return I9e(e,t,r,i);case 277:return x9e(e,t,r,i)}}var R9e=bt({"src/compiler/transformers/namedEvaluation.ts"(){"use strict";ea()}});function WK(e,t,r,i,o,s){let l=$e(t.tag,r,ht);x.assert(l);let d=[void 0],p=[],h=[],m=t.template;if(s===0&&!kj(m))return Sn(t,r,e);let{factory:y}=e;if(HI(m))p.push(cle(y,m)),h.push(dle(y,m,i));else{p.push(cle(y,m.head)),h.push(dle(y,m.head,i));for(let S of m.templateSpans)p.push(cle(y,S.literal)),h.push(dle(y,S.literal,i)),d.push(x.checkDefined($e(S.expression,r,ht)))}let E=e.getEmitHelperFactory().createTemplateObjectHelper(y.createArrayLiteralExpression(p),y.createArrayLiteralExpression(h));if(oc(i)){let S=y.createUniqueName("templateObject");o(S),d[0]=y.createLogicalOr(S,y.createAssignment(S,E))}else d[0]=E;return y.createCallExpression(l,void 0,d)}function cle(e,t){return t.templateFlags&26656?e.createVoidZero():e.createStringLiteral(t.text)}function dle(e,t,r){let i=t.rawText;if(i===void 0){x.assertIsDefined(r,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),i=S0(r,t);let o=t.kind===15||t.kind===18;i=i.substring(1,i.length-(o?1:2))}return i=i.replace(/\r\n?/g,` -`),at(e.createStringLiteral(i),t)}var FK,D9e=bt({"src/compiler/transformers/taggedTemplate.ts"(){"use strict";ea(),FK=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(FK||{})}});function ule(e){let{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,d=e.getEmitResolver(),p=e.getCompilerOptions(),h=ns(p),m=Ld(p),y=!!p.experimentalDecorators,E=p.emitDecoratorMetadata?fle(e):void 0,S=e.onEmitNode,A=e.onSubstituteNode;e.onEmitNode=ac,e.onSubstituteNode=xl,e.enableSubstitution(211),e.enableSubstitution(212);let N,D,w,j,K,Y,B,ce;return z;function z($){return $.kind===313?Z($):me($)}function Z($){return t.createBundle($.sourceFiles.map(me),to($.prepends,Pe=>Pe.kind===315?FU(Pe,"js"):Pe))}function me($){if($.isDeclarationFile)return $;N=$;let Pe=ge($,tt);return Fg(Pe,e.readEmitHelpers()),N=void 0,Pe}function ge($,Pe){let yt=j,cn=K,yr=Y;q($);let pr=Pe($);return j!==yt&&(K=cn),j=yt,Y=yr,pr}function q($){switch($.kind){case 312:case 269:case 268:case 241:j=$,K=void 0;break;case 263:case 262:if($r($,128))break;$.name?H($):x.assert($.kind===263||$r($,2048));break}}function J($){return ge($,re)}function re($){return $.transformFlags&1?ze($):$}function pe($){return ge($,xe)}function xe($){switch($.kind){case 272:case 271:case 277:case 278:return ne($);default:return re($)}}function fe($){let Pe=Do($);if(Pe===$||Ll($))return!1;if(!Pe||Pe.kind!==$.kind)return!0;switch($.kind){case 272:if(x.assertNode(Pe,Lc),$.importClause!==Pe.importClause||$.attributes!==Pe.attributes)return!0;break;case 271:if(x.assertNode(Pe,td),$.name!==Pe.name||$.isTypeOnly!==Pe.isTypeOnly||$.moduleReference!==Pe.moduleReference&&(Xu($.moduleReference)||Xu(Pe.moduleReference)))return!0;break;case 278:if(x.assertNode(Pe,Xl),$.exportClause!==Pe.exportClause||$.attributes!==Pe.attributes)return!0;break}return!1}function ne($){if(fe($))return $.transformFlags&1?Sn($,J,e):$;switch($.kind){case 272:return En($);case 271:return xo($);case 277:return xi($);case 278:return er($);default:x.fail("Unhandled ellided statement")}}function he($){return ge($,Ce)}function Ce($){if(!($.kind===278||$.kind===272||$.kind===273||$.kind===271&&$.moduleReference.kind===283))return $.transformFlags&1||$r($,32)?ze($):$}function Ge($){return Pe=>ge(Pe,yt=>ve(yt,$))}function ve($,Pe){switch($.kind){case 176:return In($);case 172:return Ot($,Pe);case 177:return Ba($,Pe);case 178:return vn($,Pe);case 174:return Io($,Pe);case 175:return Sn($,J,e);case 240:return $;case 181:return;default:return x.failBadSyntaxKind($)}}function Ae($){return Pe=>ge(Pe,yt=>De(yt,$))}function De($,Pe){switch($.kind){case 303:case 304:case 305:return J($);case 177:return Ba($,Pe);case 178:return vn($,Pe);case 174:return Io($,Pe);default:return x.failBadSyntaxKind($)}}function Le($){return bd($)?void 0:J($)}function Et($){return Sa($)?void 0:J($)}function be($){if(!bd($)&&!(MI($.kind)&28895)&&!(D&&$.kind===95))return $}function ze($){if(Hi($)&&$r($,128))return t.createNotEmittedStatement($);switch($.kind){case 95:case 90:return D?void 0:$;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 188:case 189:case 190:case 191:case 187:case 182:case 168:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 185:case 184:case 186:case 183:case 192:case 193:case 194:case 196:case 197:case 198:case 199:case 200:case 201:case 181:return;case 265:return t.createNotEmittedStatement($);case 270:return;case 264:return t.createNotEmittedStatement($);case 263:return Zt($);case 231:return en($);case 298:return Er($);case 233:return on($);case 210:return Wt($);case 176:case 172:case 174:case 177:case 178:case 175:return x.fail("Class and object literal elements must be visited with their respective visitors");case 262:return kn($);case 218:return Be($);case 219:return ct($);case 169:return lt($);case 217:return st($);case 216:case 234:return G($);case 238:return Tt($);case 213:return He($);case 214:return ut($);case 215:return Ft($);case 235:return et($);case 266:return U($);case 243:return Rt($);case 260:return ke($);case 267:return It($);case 271:return xo($);case 285:return hn($);case 286:return dn($);default:return Sn($,J,e)}}function tt($){let Pe=cu(p,"alwaysStrict")&&!(oc($)&&m>=5)&&!Jf($);return t.updateSourceFile($,TK($.statements,pe,e,0,Pe))}function Wt($){return t.updateObjectLiteralExpression($,zn($.properties,Ae($),Pg))}function _t($){let Pe=0;gt(NK($,!0,!0))&&(Pe|=1);let yt=S_($);return yt&&Yl(yt.expression).kind!==106&&(Pe|=64),Ny(y,$)&&(Pe|=2),_N(y,$)&&(Pe|=4),xn($)?Pe|=8:Mo($)?Pe|=32:$l($)&&(Pe|=16),Pe}function Je($){return!!($.transformFlags&8192)}function pt($){return bf($)||gt($.typeParameters)||gt($.heritageClauses,Je)||gt($.members,Je)}function Zt($){let Pe=_t($),yt=h<=1&&!!(Pe&7);if(!pt($)&&!Ny(y,$)&&!xn($))return t.updateClassDeclaration($,zn($.modifiers,be,Sa),$.name,void 0,zn($.heritageClauses,J,Zp),zn($.members,Ge($),$c));yt&&e.startLexicalEnvironment();let cn=yt||Pe&8,yr=cn?zn($.modifiers,Et,il):zn($.modifiers,J,il);Pe&2&&(yr=Kn(yr,$));let zr=cn&&!$.name||Pe&4||Pe&1?$.name??t.getGeneratedNameForNode($):$.name,Di=t.updateClassDeclaration($,yr,zr,void 0,zn($.heritageClauses,J,Zp),Dn($)),Cr=za($);Pe&1&&(Cr|=64),lr(Di,Cr);let qo;if(yt){let bl=[Di],Hc=Xj(Na(N.text,$.members.end),20),zs=t.getInternalName($),hc=t.createPartiallyEmittedExpression(zs);bR(hc,Hc.end),lr(hc,3072);let ys=t.createReturnStatement(hc);HN(ys,Hc.pos),lr(ys,3840),bl.push(ys),Jh(bl,e.endLexicalEnvironment());let Kc=t.createImmediatelyInvokedArrowFunction(bl);Ak(Kc,1);let tp=t.createVariableDeclaration(t.getLocalName($,!1,!1),void 0,void 0,Kc);xr(tp,$);let Oc=t.createVariableStatement(void 0,t.createVariableDeclarationList([tp],1));xr(Oc,$),ic(Oc,$),Ra(Oc,wg($)),Jd(Oc),qo=Oc}else qo=Di;if(cn){if(Pe&8)return[qo,ss($)];if(Pe&32)return[qo,t.createExportDefault(t.getLocalName($,!1,!0))];if(Pe&16)return[qo,t.createExternalModuleExport(t.getDeclarationName($,!1,!0))]}return qo}function en($){let Pe=zn($.modifiers,Et,il);return Ny(y,$)&&(Pe=Kn(Pe,$)),t.updateClassExpression($,Pe,$.name,void 0,zn($.heritageClauses,J,Zp),Dn($))}function Dn($){let Pe=zn($.members,Ge($),$c),yt,cn=Zh($),yr=cn&&jr(cn.parameters,pr=>dp(pr,cn));if(yr)for(let pr of yr){let zr=t.createPropertyDeclaration(void 0,pr.name,void 0,void 0,void 0);xr(zr,pr),yt=Tn(yt,zr)}return yt?(yt=Hr(yt,Pe),at(t.createNodeArray(yt),$.members)):Pe}function Kn($,Pe){let yt=Xt(Pe,Pe);if(gt(yt)){let cn=[];Hr(cn,AW($,Kk)),Hr(cn,jr($,bd)),Hr(cn,yt),Hr(cn,jr(dne($,Kk),Sa)),$=at(t.createNodeArray(cn),$)}return $}function pn($,Pe,yt){if(ci(yt)&&lj(y,Pe,yt)){let cn=Xt(Pe,yt);if(gt(cn)){let yr=[];Hr(yr,jr($,bd)),Hr(yr,cn),Hr(yr,jr($,Sa)),$=at(t.createNodeArray(yr),$)}}return $}function Xt($,Pe){if(y)return wIe?hi($,Pe):Kt($,Pe)}function Kt($,Pe){if(E){let yt;if(uo($)){let cn=r().createMetadataHelper("design:type",E.serializeTypeOfNode({currentLexicalScope:j,currentNameScope:Pe},$));yt=Tn(yt,t.createDecorator(cn))}if(So($)){let cn=r().createMetadataHelper("design:paramtypes",E.serializeParameterTypesOfNode({currentLexicalScope:j,currentNameScope:Pe},$,Pe));yt=Tn(yt,t.createDecorator(cn))}if(Li($)){let cn=r().createMetadataHelper("design:returntype",E.serializeReturnTypeOfNode({currentLexicalScope:j,currentNameScope:Pe},$));yt=Tn(yt,t.createDecorator(cn))}return yt}}function hi($,Pe){if(E){let yt;if(uo($)){let cn=t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),E.serializeTypeOfNode({currentLexicalScope:j,currentNameScope:Pe},$)));yt=Tn(yt,cn)}if(So($)){let cn=t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),E.serializeParameterTypesOfNode({currentLexicalScope:j,currentNameScope:Pe},$,Pe)));yt=Tn(yt,cn)}if(Li($)){let cn=t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),E.serializeReturnTypeOfNode({currentLexicalScope:j,currentNameScope:Pe},$)));yt=Tn(yt,cn)}if(yt){let cn=r().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(yt,!0));return[t.createDecorator(cn)]}}}function uo($){let Pe=$.kind;return Pe===174||Pe===177||Pe===178||Pe===172}function Li($){return $.kind===174}function So($){switch($.kind){case 263:case 231:return Zh($)!==void 0;case 174:case 177:case 178:return!0}return!1}function Qn($,Pe){let yt=$.name;return Ki(yt)?t.createIdentifier(""):Ya(yt)?Pe&&!L_(yt.expression)?t.getGeneratedNameForNode(yt):yt.expression:Fe(yt)?t.createStringLiteral(gr(yt)):t.cloneNode(yt)}function Ur($){let Pe=$.name;if(Ya(Pe)&&(!pc($)&&Y||bf($)&&y)){let yt=$e(Pe.expression,J,ht);x.assert(yt);let cn=gm(yt);if(!L_(cn)){let yr=t.getGeneratedNameForNode(Pe);return l(yr),t.updateComputedPropertyName(Pe,t.createAssignment(yr,yt))}}return x.checkDefined($e(Pe,J,rc))}function Er($){if($.token!==119)return Sn($,J,e)}function on($){return t.updateExpressionWithTypeArguments($,x.checkDefined($e($.expression,J,Yu)),void 0)}function Ye($){return!Fl($.body)}function Ot($,Pe){let yt=$.flags&33554432||$r($,64);if(yt&&!(y&&bf($)))return;let cn=ci(Pe)?yt?zn($.modifiers,Et,il):zn($.modifiers,J,il):zn($.modifiers,Le,il);return cn=pn(cn,$,Pe),yt?t.updatePropertyDeclaration($,Eo(cn,t.createModifiersFromModifierFlags(128)),x.checkDefined($e($.name,J,rc)),void 0,void 0,void 0):t.updatePropertyDeclaration($,cn,Ur($),void 0,void 0,$e($.initializer,J,ht))}function In($){if(Ye($))return t.updateConstructorDeclaration($,void 0,Il($.parameters,J,e),yi($.body,$))}function si($,Pe,yt,cn,yr,pr){let zr=cn[yr],Di=Pe[zr];if(Hr($,zn(Pe,J,Hi,yt,zr-yt)),wT(Di)){let Cr=[];si(Cr,Di.tryBlock.statements,0,cn,yr+1,pr);let qo=t.createNodeArray(Cr);at(qo,Di.tryBlock.statements),$.push(t.updateTryStatement(Di,t.updateBlock(Di.tryBlock,Cr),$e(Di.catchClause,J,X0),$e(Di.finallyBlock,J,Ko)))}else Hr($,zn(Pe,J,Hi,zr,1)),Hr($,pr);Hr($,zn(Pe,J,Hi,zr+1))}function yi($,Pe){let yt=Pe&&jr(Pe.parameters,Cr=>dp(Cr,Pe));if(!gt(yt))return nf($,J,e);let cn=[];o();let yr=t.copyPrologue($.statements,cn,!1,J),pr=z3($.statements,yr),zr=to(yt,$i);pr.length?si(cn,$.statements,yr,pr,0,zr):(Hr(cn,zr),Hr(cn,zn($.statements,J,Hi,yr))),cn=t.mergeLexicalEnvironment(cn,s());let Di=t.createBlock(at(t.createNodeArray(cn),$.statements),!0);return at(Di,$),xr(Di,$),Di}function $i($){let Pe=$.name;if(!Fe(Pe))return;let yt=ja(at(t.cloneNode(Pe),Pe),Pe.parent);lr(yt,3168);let cn=ja(at(t.cloneNode(Pe),Pe),Pe.parent);return lr(cn,3072),Jd(Tk(at(xr(t.createExpressionStatement(t.createAssignment(at(t.createPropertyAccessExpression(t.createThis(),yt),$.name),cn)),$),uE($,-1))))}function Io($,Pe){if(!($.transformFlags&1))return $;if(!Ye($))return;let yt=ci(Pe)?zn($.modifiers,J,il):zn($.modifiers,Le,il);return yt=pn(yt,$,Pe),t.updateMethodDeclaration($,yt,$.asteriskToken,Ur($),void 0,void 0,Il($.parameters,J,e),void 0,nf($.body,J,e))}function ua($){return!(Fl($.body)&&$r($,64))}function Ba($,Pe){if(!($.transformFlags&1))return $;if(!ua($))return;let yt=ci(Pe)?zn($.modifiers,J,il):zn($.modifiers,Le,il);return yt=pn(yt,$,Pe),t.updateGetAccessorDeclaration($,yt,Ur($),Il($.parameters,J,e),void 0,nf($.body,J,e)||t.createBlock([]))}function vn($,Pe){if(!($.transformFlags&1))return $;if(!ua($))return;let yt=ci(Pe)?zn($.modifiers,J,il):zn($.modifiers,Le,il);return yt=pn(yt,$,Pe),t.updateSetAccessorDeclaration($,yt,Ur($),Il($.parameters,J,e),nf($.body,J,e)||t.createBlock([]))}function kn($){if(!Ye($))return t.createNotEmittedStatement($);let Pe=t.updateFunctionDeclaration($,zn($.modifiers,be,Sa),$.asteriskToken,$.name,void 0,Il($.parameters,J,e),void 0,nf($.body,J,e)||t.createBlock([]));if(xn($)){let yt=[Pe];return Ws(yt,$),yt}return Pe}function Be($){return Ye($)?t.updateFunctionExpression($,zn($.modifiers,be,Sa),$.asteriskToken,$.name,void 0,Il($.parameters,J,e),void 0,nf($.body,J,e)||t.createBlock([])):t.createOmittedExpression()}function ct($){return t.updateArrowFunction($,zn($.modifiers,be,Sa),void 0,Il($.parameters,J,e),void 0,$.equalsGreaterThanToken,nf($.body,J,e))}function lt($){if(L0($))return;let Pe=t.updateParameterDeclaration($,zn($.modifiers,yt=>bd(yt)?J(yt):void 0,il),$.dotDotDotToken,x.checkDefined($e($.name,J,sT)),void 0,void 0,$e($.initializer,J,ht));return Pe!==$&&(ic(Pe,$),at(Pe,R_($)),Ra(Pe,R_($)),lr(Pe.name,64)),Pe}function Rt($){if(xn($)){let Pe=wN($.declarationList);return Pe.length===0?void 0:at(t.createExpressionStatement(t.inlineExpressions(mn(Pe,ae))),$)}else return Sn($,J,e)}function ae($){let Pe=$.name;return Qo(Pe)?UT($,J,e,0,!1,cd):at(t.createAssignment(mo(Pe),x.checkDefined($e($.initializer,J,ht))),$)}function ke($){let Pe=t.updateVariableDeclaration($,x.checkDefined($e($.name,J,sT)),void 0,void 0,$e($.initializer,J,ht));return $.type&&Xoe(Pe.name,$.type),Pe}function st($){let Pe=Yl($.expression,-7);if(cT(Pe)){let yt=$e($.expression,J,ht);return x.assert(yt),t.createPartiallyEmittedExpression(yt,$)}return Sn($,J,e)}function G($){let Pe=$e($.expression,J,ht);return x.assert(Pe),t.createPartiallyEmittedExpression(Pe,$)}function et($){let Pe=$e($.expression,J,Yu);return x.assert(Pe),t.createPartiallyEmittedExpression(Pe,$)}function Tt($){let Pe=$e($.expression,J,ht);return x.assert(Pe),t.createPartiallyEmittedExpression(Pe,$)}function He($){return t.updateCallExpression($,x.checkDefined($e($.expression,J,ht)),void 0,zn($.arguments,J,ht))}function ut($){return t.updateNewExpression($,x.checkDefined($e($.expression,J,ht)),void 0,zn($.arguments,J,ht))}function Ft($){return t.updateTaggedTemplateExpression($,x.checkDefined($e($.tag,J,ht)),void 0,x.checkDefined($e($.template,J,EI)))}function hn($){return t.updateJsxSelfClosingElement($,x.checkDefined($e($.tagName,J,lN)),void 0,x.checkDefined($e($.attributes,J,q0)))}function dn($){return t.updateJsxOpeningElement($,x.checkDefined($e($.tagName,J,lN)),void 0,x.checkDefined($e($.attributes,J,q0)))}function un($){return!A0($)||B0(p)}function U($){if(!un($))return t.createNotEmittedStatement($);let Pe=[],yt=4,cn=Ne(Pe,$);cn&&(m!==4||j!==N)&&(yt|=1024);let yr=la($),pr=dd($),zr=xn($)?t.getExternalModuleOrNamespaceExportName(w,$,!1,!0):t.getDeclarationName($,!1,!0),Di=t.createLogicalOr(zr,t.createAssignment(zr,t.createObjectLiteralExpression()));if(xn($)){let qo=t.getLocalName($,!1,!0);Di=t.createAssignment(qo,Di)}let Cr=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,yr)],void 0,Me($,pr)),void 0,[Di]));return xr(Cr,$),cn&&(_E(Cr,void 0),GI(Cr,void 0)),at(Cr,$),D_(Cr,yt),Pe.push(Cr),Pe}function Me($,Pe){let yt=w;w=Pe;let cn=[];i();let yr=mn($.members,Nt);return Jh(cn,s()),Hr(cn,yr),w=yt,t.createBlock(at(t.createNodeArray(cn),$.members),!0)}function Nt($){let Pe=Qn($,!1),yt=k($),cn=t.createAssignment(t.createElementAccessExpression(w,Pe),yt),yr=yt.kind===11?cn:t.createAssignment(t.createElementAccessExpression(w,cn),Pe);return at(t.createExpressionStatement(at(yr,$)),$)}function k($){let Pe=d.getConstantValue($);return Pe!==void 0?typeof Pe=="string"?t.createStringLiteral(Pe):Pe<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-Pe)):t.createNumericLiteral(Pe):(bs(),$.initializer?x.checkDefined($e($.initializer,J,ht)):t.createVoidZero())}function ie($){let Pe=Do($,ql);return Pe?yK(Pe,B0(p)):!0}function H($){K||(K=new Map);let Pe=We($);K.has(Pe)||K.set(Pe,$)}function ue($){if(K){let Pe=We($);return K.get(Pe)===$}return!0}function We($){return x.assertNode($.name,Fe),$.name.escapedText}function Ne($,Pe){let yt=t.createVariableDeclaration(t.getLocalName(Pe,!1,!0)),cn=j.kind===312?0:1,yr=t.createVariableStatement(zn(Pe.modifiers,be,Sa),t.createVariableDeclarationList([yt],cn));return xr(yt,Pe),_E(yt,void 0),GI(yt,void 0),xr(yr,Pe),H(Pe),ue(Pe)?(Pe.kind===266?Ra(yr.declarationList,Pe):Ra(yr,Pe),ic(yr,Pe),D_(yr,2048),$.push(yr),!0):!1}function It($){if(!ie($))return t.createNotEmittedStatement($);x.assertNode($.name,Fe,"A TypeScript namespace should have an Identifier name."),Ca();let Pe=[],yt=4,cn=Ne(Pe,$);cn&&(m!==4||j!==N)&&(yt|=1024);let yr=la($),pr=dd($),zr=xn($)?t.getExternalModuleOrNamespaceExportName(w,$,!1,!0):t.getDeclarationName($,!1,!0),Di=t.createLogicalOr(zr,t.createAssignment(zr,t.createObjectLiteralExpression()));if(xn($)){let qo=t.getLocalName($,!1,!0);Di=t.createAssignment(qo,Di)}let Cr=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,yr)],void 0,Dt($,pr)),void 0,[Di]));return xr(Cr,$),cn&&(_E(Cr,void 0),GI(Cr,void 0)),at(Cr,$),D_(Cr,yt),Pe.push(Cr),Pe}function Dt($,Pe){let yt=w,cn=D,yr=K;w=Pe,D=$,K=void 0;let pr=[];i();let zr,Di;if($.body)if($.body.kind===268)ge($.body,qo=>Hr(pr,zn(qo.statements,he,Hi))),zr=$.body.statements,Di=$.body;else{let qo=It($.body);qo&&(To(qo)?Hr(pr,qo):pr.push(qo));let bl=Ut($).body;zr=uE(bl.statements,-1)}Jh(pr,s()),w=yt,D=cn,K=yr;let Cr=t.createBlock(at(t.createNodeArray(pr),zr),!0);return at(Cr,Di),(!$.body||$.body.kind!==268)&&lr(Cr,za(Cr)|3072),Cr}function Ut($){if($.body.kind===267)return Ut($.body)||$.body}function En($){if(!$.importClause)return $;if($.importClause.isTypeOnly)return;let Pe=$e($.importClause,wn,gh);return Pe||p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2?t.updateImportDeclaration($,void 0,Pe,$.moduleSpecifier,$.attributes):void 0}function wn($){x.assert(!$.isTypeOnly);let Pe=de($)?$.name:void 0,yt=$e($.namedBindings,Bn,OV);return Pe||yt?t.updateImportClause($,!1,Pe,yt):void 0}function Bn($){if($.kind===274)return de($)?$:void 0;{let Pe=p.verbatimModuleSyntax||p.preserveValueImports&&(p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2),yt=zn($.elements,gi,Qu);return Pe||gt(yt)?t.updateNamedImports($,yt):void 0}}function gi($){return!$.isTypeOnly&&de($)?$:void 0}function xi($){return p.verbatimModuleSyntax||d.isValueAliasDeclaration($)?Sn($,J,e):void 0}function er($){if($.isTypeOnly)return;if(!$.exportClause||yh($.exportClause))return $;let Pe=p.verbatimModuleSyntax||!!$.moduleSpecifier&&(p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2),yt=$e($.exportClause,cn=>Pi(cn,Pe),AV);return yt?t.updateExportDeclaration($,void 0,$.isTypeOnly,yt,$.moduleSpecifier,$.attributes):void 0}function Fr($,Pe){let yt=zn($.elements,Ri,Kd);return Pe||gt(yt)?t.updateNamedExports($,yt):void 0}function go($){return t.updateNamespaceExport($,x.checkDefined($e($.name,J,Fe)))}function Pi($,Pe){return yh($)?go($):Fr($,Pe)}function Ri($){return!$.isTypeOnly&&(p.verbatimModuleSyntax||d.isValueAliasDeclaration($))?$:void 0}function Kr($){return de($)||!oc(N)&&d.isTopLevelValueImportEqualsWithEntityName($)}function xo($){if($.isTypeOnly)return;if(aE($)){let yt=de($);return!yt&&p.importsNotUsedAsValues===1?xr(at(t.createImportDeclaration(void 0,void 0,$.moduleReference.expression,void 0),$),$):yt?Sn($,J,e):void 0}if(!Kr($))return;let Pe=Gk(t,$.moduleReference);return lr(Pe,7168),$l($)||!xn($)?xr(at(t.createVariableStatement(zn($.modifiers,be,Sa),t.createVariableDeclarationList([xr(t.createVariableDeclaration($.name,void 0,void 0,Pe),$)])),$),$):xr(ml($.name,Pe,$),$)}function xn($){return D!==void 0&&$r($,32)}function Ls($){return D===void 0&&$r($,32)}function $l($){return Ls($)&&!$r($,2048)}function Mo($){return Ls($)&&$r($,2048)}function ss($){let Pe=t.createAssignment(t.getExternalModuleOrNamespaceExportName(w,$,!1,!0),t.getLocalName($));Ra(Pe,Ef($.name?$.name.pos:$.pos,$.end));let yt=t.createExpressionStatement(Pe);return Ra(yt,Ef(-1,$.end)),yt}function Ws($,Pe){$.push(ss(Pe))}function ml($,Pe,yt){return at(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(w,$,!1,!0),Pe)),yt)}function cd($,Pe,yt){return at(t.createAssignment(mo($),Pe),yt)}function mo($){return t.getNamespaceMemberName(w,$,!1,!0)}function la($){let Pe=t.getGeneratedNameForNode($);return Ra(Pe,$.name),Pe}function dd($){return t.getGeneratedNameForNode($)}function bs(){B&8||(B|=8,e.enableSubstitution(80))}function Ca(){B&2||(B|=2,e.enableSubstitution(80),e.enableSubstitution(304),e.enableEmitNotification(267))}function ul($){return Nl($).kind===267}function Nf($){return Nl($).kind===266}function ac($,Pe,yt){let cn=ce,yr=N;Yi(Pe)&&(N=Pe),B&2&&ul(Pe)&&(ce|=2),B&8&&Nf(Pe)&&(ce|=8),S($,Pe,yt),ce=cn,N=yr}function xl($,Pe){return Pe=A($,Pe),$===1?Lo(Pe):Zu(Pe)?al(Pe):Pe}function al($){if(B&2){let Pe=$.name,yt=Fs(Pe);if(yt){if($.objectAssignmentInitializer){let cn=t.createAssignment(yt,$.objectAssignmentInitializer);return at(t.createPropertyAssignment(Pe,cn),$)}return at(t.createPropertyAssignment(Pe,yt),$)}}return $}function Lo($){switch($.kind){case 80:return tn($);case 211:return nd($);case 212:return ud($)}return $}function tn($){return Fs($)||$}function Fs($){if(B&ce&&!rl($)&&!Bg($)){let Pe=d.getReferencedExportContainer($,!1);if(Pe&&Pe.kind!==312&&(ce&2&&Pe.kind===267||ce&8&&Pe.kind===266))return at(t.createPropertyAccessExpression(t.getGeneratedNameForNode(Pe),$),$)}}function nd($){return Rs($)}function ud($){return Rs($)}function Ep($){return $.replace(/\*\//g,"*_/")}function Rs($){let Pe=Ac($);if(Pe!==void 0){Joe($,Pe);let yt=typeof Pe=="string"?t.createStringLiteral(Pe):Pe<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-Pe)):t.createNumericLiteral(Pe);if(!p.removeComments){let cn=Nl($,Ns);n4(yt,3,` ${Ep(uc(cn))} `)}return yt}return $}function Ac($){if(!em(p))return kr($)||Js($)?d.getConstantValue($):void 0}function de($){return p.verbatimModuleSyntax||ir($)||(p.preserveValueImports?d.isValueAliasDeclaration($):d.isReferencedAliasDeclaration($))}}var wIe,C9e=bt({"src/compiler/transformers/ts.ts"(){"use strict";ea(),wIe=!1}});function ple(e){let{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i,endLexicalEnvironment:o,startLexicalEnvironment:s,resumeLexicalEnvironment:l,addBlockScopedVariable:d}=e,p=e.getEmitResolver(),h=e.getCompilerOptions(),m=ns(h),y=tP(h),E=!!h.experimentalDecorators,S=!y,A=y&&m<9,N=S||A,D=m<9,w=m<99?-1:y?0:3,j=m<9,K=j&&m>=2,Y=N||D||w===-1,B=e.onSubstituteNode;e.onSubstituteNode=nd;let ce=e.onEmitNode;e.onEmitNode=Fs;let z=!1,Z,me,ge,q,J,re=new Map,pe=new Set,xe,fe,ne=!1,he=!1;return Im(e,Ce);function Ce(de){if(de.isDeclarationFile||(J=void 0,z=!!(ym(de)&32),!Y&&!z))return de;let $=Sn(de,ve,e);return Fg($,e.readEmitHelpers()),$}function Ge(de){switch(de.kind){case 129:return Ot()?void 0:de;default:return ri(de,Sa)}}function ve(de){if(!(de.transformFlags&16777216)&&!(de.transformFlags&134234112))return de;switch(de.kind){case 129:return x.fail("Use `modifierVisitor` instead.");case 263:return dn(de);case 231:return U(de);case 175:case 172:return x.fail("Use `classElementVisitor` instead.");case 303:return Je(de);case 243:return pt(de);case 260:return Zt(de);case 169:return en(de);case 208:return Dn(de);case 277:return Kn(de);case 81:return Wt(de);case 211:return ua(de);case 212:return Ba(de);case 224:case 225:return vn(de,!1);case 226:return st(de,!1);case 217:return et(de,!1);case 213:return lt(de);case 244:return Be(de);case 215:return Rt(de);case 248:return kn(de);case 110:return k(de);case 262:case 218:return Li(void 0,Ae,de);case 176:case 174:case 177:case 178:return Li(de,Ae,de);default:return Ae(de)}}function Ae(de){return Sn(de,ve,e)}function De(de){switch(de.kind){case 224:case 225:return vn(de,!0);case 226:return st(de,!0);case 361:return G(de,!0);case 217:return et(de,!0);default:return ve(de)}}function Le(de){switch(de.kind){case 298:return Sn(de,Le,e);case 233:return Ft(de);default:return ve(de)}}function Et(de){switch(de.kind){case 210:case 209:return tn(de);default:return ve(de)}}function be(de){switch(de.kind){case 176:return Li(de,Kt,de);case 177:case 178:case 174:return Li(de,uo,de);case 172:return Li(de,In,de);case 175:return Li(de,Nt,de);case 167:return Xt(de);case 240:return de;default:return il(de)?Ge(de):ve(de)}}function ze(de){switch(de.kind){case 167:return Xt(de);default:return ve(de)}}function tt(de){switch(de.kind){case 172:return Ye(de);case 177:case 178:return be(de);default:x.assertMissingNode(de,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function Wt(de){return!D||Hi(de.parent)?de:xr(t.createIdentifier(""),de)}function _t(de){let $=la(de.left);if($){let Pe=$e(de.right,ve,ht);return xr(r().createClassPrivateFieldInHelper($.brandCheckIdentifier,Pe),de)}return Sn(de,ve,e)}function Je(de){return pp(de,ke)&&(de=yp(e,de)),Sn(de,ve,e)}function pt(de){let $=q;q=[];let Pe=Sn(de,ve,e),yt=gt(q)?[Pe,...q]:Pe;return q=$,yt}function Zt(de){return pp(de,ke)&&(de=yp(e,de)),Sn(de,ve,e)}function en(de){return pp(de,ke)&&(de=yp(e,de)),Sn(de,ve,e)}function Dn(de){return pp(de,ke)&&(de=yp(e,de)),Sn(de,ve,e)}function Kn(de){return pp(de,ke)&&(de=yp(e,de,!0,de.isExportEquals?"":"default")),Sn(de,ve,e)}function pn(de){return gt(ge)&&(Ou(de)?(ge.push(de.expression),de=t.updateParenthesizedExpression(de,t.inlineExpressions(ge))):(ge.push(de),de=t.inlineExpressions(ge)),ge=void 0),de}function Xt(de){let $=$e(de.expression,ve,ht);return t.updateComputedPropertyName(de,pn($))}function Kt(de){return xe?ue(de,xe):Ae(de)}function hi(de){return!!(D||pc(de)&&ym(de)&32)}function uo(de){if(x.assert(!bf(de)),!ou(de)||!hi(de))return Sn(de,be,e);let $=la(de.name);if(x.assert($,"Undeclared private name for property declaration."),!$.isValid)return de;let Pe=So(de);Pe&&xo().push(t.createAssignment(Pe,t.createFunctionExpression(jr(de.modifiers,yt=>Sa(yt)&&!qI(yt)&&!lae(yt)),de.asteriskToken,Pe,void 0,Il(de.parameters,ve,e),void 0,nf(de.body,ve,e))))}function Li(de,$,Pe){if(de!==fe){let yt=fe;fe=de;let cn=$(Pe);return fe=yt,cn}return $(Pe)}function So(de){x.assert(Ki(de.name));let $=la(de.name);if(x.assert($,"Undeclared private name for property declaration."),$.kind==="m")return $.methodName;if($.kind==="a"){if(Pv(de))return $.getterName;if(Cy(de))return $.setterName}}function Qn(){let de=Ri(),$=de.classThis??de.classConstructor??xe?.name;return x.checkDefined($)}function Ur(de){let $=C_(de),Pe=Wy(de),yt=de.name,cn=yt,yr=yt;if(Ya(yt)&&!L_(yt.expression)){let Hc=t3(yt);if(Hc)cn=t.updateComputedPropertyName(yt,$e(yt.expression,ve,ht)),yr=t.updateComputedPropertyName(yt,Hc.left);else{let zs=t.createTempVariable(i);Ra(zs,yt.expression);let hc=$e(yt.expression,ve,ht),ys=t.createAssignment(zs,hc);Ra(ys,yt.expression),cn=t.updateComputedPropertyName(yt,ys),yr=t.updateComputedPropertyName(yt,zs)}}let pr=zn(de.modifiers,Ge,Sa),zr=IH(t,de,pr,de.initializer);xr(zr,de),lr(zr,3072),Ra(zr,Pe);let Di=ra(de)?Qn():t.createThis(),Cr=jae(t,de,pr,cn,Di);xr(Cr,de),ic(Cr,$),Ra(Cr,Pe);let qo=t.createModifiersFromModifierFlags(x_(pr)),bl=Uae(t,de,qo,yr,Di);return xr(bl,de),lr(bl,3072),Ra(bl,Pe),vw([zr,Cr,bl],tt,$c)}function Er(de){if(hi(de)){let $=la(de.name);if(x.assert($,"Undeclared private name for property declaration."),!$.isValid)return de;if($.isStatic&&!D){let Pe=Dt(de,t.createThis());if(Pe)return t.createClassStaticBlockDeclaration(t.createBlock([Pe],!0))}return}return S&&!ra(de)&&J?.data&&J.data.facts&16?t.updatePropertyDeclaration(de,zn(de.modifiers,ve,il),de.name,void 0,void 0,void 0):(pp(de,ke)&&(de=yp(e,de)),t.updatePropertyDeclaration(de,zn(de.modifiers,Ge,Sa),$e(de.name,ze,rc),void 0,void 0,$e(de.initializer,ve,ht)))}function on(de){if(N&&!Mu(de)){let $=Fr(de.name,!!de.initializer||y);if($&&xo().push(...Hae($)),ra(de)&&!D){let Pe=Dt(de,t.createThis());if(Pe){let yt=t.createClassStaticBlockDeclaration(t.createBlock([Pe]));return xr(yt,de),ic(yt,de),ic(Pe,{pos:-1,end:-1}),_E(Pe,void 0),GI(Pe,void 0),yt}}return}return t.updatePropertyDeclaration(de,zn(de.modifiers,Ge,Sa),$e(de.name,ze,rc),void 0,void 0,$e(de.initializer,ve,ht))}function Ye(de){return x.assert(!bf(de),"Decorators should already have been transformed and elided."),ou(de)?Er(de):on(de)}function Ot(){return w===-1||w===3&&!!J?.data&&!!(J.data.facts&16)}function In(de){return Mu(de)&&(Ot()||pc(de)&&ym(de)&32)?Ur(de):Ye(de)}function si(){return!!fe&&pc(fe)&&Cv(fe)&&Mu(Nl(fe))}function yi(de){if(si()){let $=Yl(de);$.kind===110&&pe.add($)}}function $i(de,$){return $=$e($,ve,ht),yi($),Io(de,$)}function Io(de,$){switch(ic($,uE($,-1)),de.kind){case"a":return r().createClassPrivateFieldGetHelper($,de.brandCheckIdentifier,de.kind,de.getterName);case"m":return r().createClassPrivateFieldGetHelper($,de.brandCheckIdentifier,de.kind,de.methodName);case"f":return r().createClassPrivateFieldGetHelper($,de.brandCheckIdentifier,de.kind,de.isStatic?de.variableName:void 0);case"untransformed":return x.fail("Access helpers should not be created for untransformed private elements");default:x.assertNever(de,"Unknown private element type")}}function ua(de){if(Ki(de.name)){let $=la(de.name);if($)return at(xr($i($,de.expression),de),de)}if(K&&fe&&ku(de)&&Fe(de.name)&&wP(fe)&&J?.data){let{classConstructor:$,superClassReference:Pe,facts:yt}=J.data;if(yt&1)return er(de);if($&&Pe){let cn=t.createReflectGetCall(Pe,t.createStringLiteralFromNode(de.name),$);return xr(cn,de.expression),at(cn,de.expression),cn}}return Sn(de,ve,e)}function Ba(de){if(K&&fe&&ku(de)&&wP(fe)&&J?.data){let{classConstructor:$,superClassReference:Pe,facts:yt}=J.data;if(yt&1)return er(de);if($&&Pe){let cn=t.createReflectGetCall(Pe,$e(de.argumentExpression,ve,ht),$);return xr(cn,de.expression),at(cn,de.expression),cn}}return Sn(de,ve,e)}function vn(de,$){if(de.operator===46||de.operator===47){let Pe=fs(de.operand);if(Ox(Pe)){let yt;if(yt=la(Pe.name)){let cn=$e(Pe.expression,ve,ht);yi(cn);let{readExpression:yr,initializeExpression:pr}=ct(cn),zr=$i(yt,yr),Di=qv(de)||$?void 0:t.createTempVariable(i);return zr=q4(t,de,zr,i,Di),zr=Tt(yt,pr||yr,zr,64),xr(zr,de),at(zr,de),Di&&(zr=t.createComma(zr,Di),at(zr,de)),zr}}else if(K&&fe&&ku(Pe)&&wP(fe)&&J?.data){let{classConstructor:yt,superClassReference:cn,facts:yr}=J.data;if(yr&1){let pr=er(Pe);return qv(de)?t.updatePrefixUnaryExpression(de,pr):t.updatePostfixUnaryExpression(de,pr)}if(yt&&cn){let pr,zr;if(kr(Pe)?Fe(Pe.name)&&(zr=pr=t.createStringLiteralFromNode(Pe.name)):L_(Pe.argumentExpression)?zr=pr=Pe.argumentExpression:(zr=t.createTempVariable(i),pr=t.createAssignment(zr,$e(Pe.argumentExpression,ve,ht))),pr&&zr){let Di=t.createReflectGetCall(cn,zr,yt);at(Di,Pe);let Cr=$?void 0:t.createTempVariable(i);return Di=q4(t,de,Di,i,Cr),Di=t.createReflectSetCall(cn,pr,Di,yt),xr(Di,de),at(Di,de),Cr&&(Di=t.createComma(Di,Cr),at(Di,de)),Di}}}}return Sn(de,ve,e)}function kn(de){return t.updateForStatement(de,$e(de.initializer,De,vf),$e(de.condition,ve,ht),$e(de.incrementor,De,ht),Tu(de.statement,ve,e))}function Be(de){return t.updateExpressionStatement(de,$e(de.expression,De,ht))}function ct(de){let $=Ks(de)?de:t.cloneNode(de);if(de.kind===110&&pe.has(de)&&pe.add($),L_(de))return{readExpression:$,initializeExpression:void 0};let Pe=t.createTempVariable(i),yt=t.createAssignment(Pe,$);return{readExpression:Pe,initializeExpression:yt}}function lt(de){var $;if(Ox(de.expression)&&la(de.expression.name)){let{thisArg:Pe,target:yt}=t.createCallBinding(de.expression,i,m);return oT(de)?t.updateCallChain(de,t.createPropertyAccessChain($e(yt,ve,ht),de.questionDotToken,"call"),void 0,void 0,[$e(Pe,ve,ht),...zn(de.arguments,ve,ht)]):t.updateCallExpression(de,t.createPropertyAccessExpression($e(yt,ve,ht),"call"),void 0,[$e(Pe,ve,ht),...zn(de.arguments,ve,ht)])}if(K&&fe&&ku(de.expression)&&wP(fe)&&(($=J?.data)!=null&&$.classConstructor)){let Pe=t.createFunctionCallCall($e(de.expression,ve,ht),J.data.classConstructor,zn(de.arguments,ve,ht));return xr(Pe,de),at(Pe,de),Pe}return Sn(de,ve,e)}function Rt(de){var $;if(Ox(de.tag)&&la(de.tag.name)){let{thisArg:Pe,target:yt}=t.createCallBinding(de.tag,i,m);return t.updateTaggedTemplateExpression(de,t.createCallExpression(t.createPropertyAccessExpression($e(yt,ve,ht),"bind"),void 0,[$e(Pe,ve,ht)]),void 0,$e(de.template,ve,EI))}if(K&&fe&&ku(de.tag)&&wP(fe)&&(($=J?.data)!=null&&$.classConstructor)){let Pe=t.createFunctionBindCall($e(de.tag,ve,ht),J.data.classConstructor,[]);return xr(Pe,de),at(Pe,de),t.updateTaggedTemplateExpression(de,Pe,void 0,$e(de.template,ve,EI))}return Sn(de,ve,e)}function ae(de){if(J&&re.set(Nl(de),J),D){if(LP(de)){let yt=$e(de.body.statements[0].expression,ve,ht);return Mc(yt,!0)&&yt.left===yt.right?void 0:yt}if(_1(de))return $e(de.body.statements[0].expression,ve,ht);s();let $=Li(de,yt=>zn(yt,ve,Hi),de.body.statements);$=t.mergeLexicalEnvironment($,o());let Pe=t.createImmediatelyInvokedArrowFunction($);return xr(fs(Pe.expression),de),D_(fs(Pe.expression),4),xr(Pe,de),at(Pe,de),Pe}}function ke(de){if(Zc(de)&&!de.name){let $=B3(de);return gt($,_1)?!1:(D||!!ym(de))&>($,yt=>Al(yt)||ou(yt)||N&&Ew(yt))}return!1}function st(de,$){if(ky(de)){let Pe=ge;ge=void 0,de=t.updateBinaryExpression(de,$e(de.left,Et,ht),de.operatorToken,$e(de.right,ve,ht));let yt=gt(ge)?t.inlineExpressions(SL([...ge,de])):de;return ge=Pe,yt}if(Mc(de)){pp(de,ke)&&(de=yp(e,de),x.assertNode(de,Mc));let Pe=Yl(de.left,9);if(Ox(Pe)){let yt=la(Pe.name);if(yt)return at(xr(Tt(yt,Pe.expression,de.right,de.operatorToken.kind),de),de)}else if(K&&fe&&ku(de.left)&&wP(fe)&&J?.data){let{classConstructor:yt,superClassReference:cn,facts:yr}=J.data;if(yr&1)return t.updateBinaryExpression(de,er(de.left),de.operatorToken,$e(de.right,ve,ht));if(yt&&cn){let pr=Js(de.left)?$e(de.left.argumentExpression,ve,ht):Fe(de.left.name)?t.createStringLiteralFromNode(de.left.name):void 0;if(pr){let zr=$e(de.right,ve,ht);if(NP(de.operatorToken.kind)){let Cr=pr;L_(pr)||(Cr=t.createTempVariable(i),pr=t.createAssignment(Cr,pr));let qo=t.createReflectGetCall(cn,Cr,yt);xr(qo,de.left),at(qo,de.left),zr=t.createBinaryExpression(qo,PP(de.operatorToken.kind),zr),at(zr,de)}let Di=$?void 0:t.createTempVariable(i);return Di&&(zr=t.createAssignment(Di,zr),at(Di,de)),zr=t.createReflectSetCall(cn,pr,zr,yt),xr(zr,de),at(zr,de),Di&&(zr=t.createComma(zr,Di),at(zr,de)),zr}}}}return k9e(de)?_t(de):Sn(de,ve,e)}function G(de,$){let Pe=$?bw(de.elements,De):bw(de.elements,ve,De);return t.updateCommaListExpression(de,Pe)}function et(de,$){let Pe=$?De:ve,yt=$e(de.expression,Pe,ht);return t.updateParenthesizedExpression(de,yt)}function Tt(de,$,Pe,yt){if($=$e($,ve,ht),Pe=$e(Pe,ve,ht),yi($),NP(yt)){let{readExpression:cn,initializeExpression:yr}=ct($);$=yr||cn,Pe=t.createBinaryExpression(Io(de,cn),PP(yt),Pe)}switch(ic($,uE($,-1)),de.kind){case"a":return r().createClassPrivateFieldSetHelper($,de.brandCheckIdentifier,Pe,de.kind,de.setterName);case"m":return r().createClassPrivateFieldSetHelper($,de.brandCheckIdentifier,Pe,de.kind,void 0);case"f":return r().createClassPrivateFieldSetHelper($,de.brandCheckIdentifier,Pe,de.kind,de.isStatic?de.variableName:void 0);case"untransformed":return x.fail("Access helpers should not be created for untransformed private elements");default:x.assertNever(de,"Unknown private element type")}}function He(de){return jr(de.members,Qse)}function ut(de){var $;let Pe=0,yt=Nl(de);Sc(yt)&&Ny(E,yt)&&(Pe|=1),D&&(wK(de)||V3(de))&&(Pe|=2);let cn=!1,yr=!1,pr=!1,zr=!1;for(let Cr of de.members)ra(Cr)?((Cr.name&&(Ki(Cr.name)||Mu(Cr))&&D||Mu(Cr)&&w===-1&&!de.name&&!(($=de.emitNode)!=null&&$.classThis))&&(Pe|=2),(Uo(Cr)||Al(Cr))&&(j&&Cr.transformFlags&16384&&(Pe|=8,Pe&1||(Pe|=2)),K&&Cr.transformFlags&134217728&&(Pe&1||(Pe|=6)))):w0(Nl(Cr))||(Mu(Cr)?(zr=!0,pr||(pr=ou(Cr))):ou(Cr)?(pr=!0,p.getNodeCheckFlags(Cr)&262144&&(Pe|=2)):Uo(Cr)&&(cn=!0,yr||(yr=!!Cr.initializer)));return(A&&cn||S&&yr||D&&pr||D&&zr&&w===-1)&&(Pe|=16),Pe}function Ft(de){var $;if(((($=J?.data)==null?void 0:$.facts)||0)&4){let yt=t.createTempVariable(i,!0);return Ri().superClassReference=yt,t.updateExpressionWithTypeArguments(de,t.createAssignment(yt,$e(de.expression,ve,ht)),void 0)}return Sn(de,ve,e)}function hn(de,$){var Pe;let yt=xe,cn=ge,yr=J;xe=de,ge=void 0,go();let pr=ym(de)&32;if(D||pr){let Cr=Po(de);if(Cr&&Fe(Cr))Kr().data.className=Cr;else if((Pe=de.emitNode)!=null&&Pe.assignedName&&Da(de.emitNode.assignedName)){if(de.emitNode.assignedName.textSourceNode&&Fe(de.emitNode.assignedName.textSourceNode))Kr().data.className=de.emitNode.assignedName.textSourceNode;else if(Yp(de.emitNode.assignedName.text,m)){let qo=t.createIdentifier(de.emitNode.assignedName.text);Kr().data.className=qo}}}if(D){let Cr=He(de);gt(Cr)&&(Kr().data.weakSetName=cd("instances",Cr[0].name))}let zr=ut(de);zr&&(Ri().facts=zr),zr&8&&gi();let Di=$(de,zr);return Pi(),x.assert(J===yr),xe=yt,ge=cn,Di}function dn(de){return hn(de,un)}function un(de,$){var Pe,yt;let cn;if($&2)if(D&&((Pe=de.emitNode)!=null&&Pe.classThis))Ri().classConstructor=de.emitNode.classThis,cn=t.createAssignment(de.emitNode.classThis,t.getInternalName(de));else{let ys=t.createTempVariable(i,!0);Ri().classConstructor=t.cloneNode(ys),cn=t.createAssignment(ys,t.getInternalName(de))}(yt=de.emitNode)!=null&&yt.classThis&&(Ri().classThis=de.emitNode.classThis);let yr=p.getNodeCheckFlags(de)&262144,pr=$r(de,32),zr=$r(de,2048),Di=zn(de.modifiers,Ge,Sa),Cr=zn(de.heritageClauses,Le,Zp),{members:qo,prologue:bl}=ie(de),Hc=[];if(cn&&xo().unshift(cn),gt(ge)&&Hc.push(t.createExpressionStatement(t.inlineExpressions(ge))),S||D||ym(de)&32){let ys=B3(de);gt(ys)&&It(Hc,ys,t.getInternalName(de))}Hc.length>0&&pr&&zr&&(Di=zn(Di,ys=>Kk(ys)?void 0:ys,Sa),Hc.push(t.createExportAssignment(void 0,!1,t.getLocalName(de,!1,!0))));let zs=Ri().classConstructor;yr&&zs&&(Bn(),me[wd(de)]=zs);let hc=t.updateClassDeclaration(de,Di,de.name,void 0,Cr,qo);return Hc.unshift(hc),bl&&Hc.unshift(t.createExpressionStatement(bl)),Hc}function U(de){return hn(de,Me)}function Me(de,$){var Pe,yt,cn;let yr=!!($&1),pr=B3(de),zr=p.getNodeCheckFlags(de),Di=zr&262144,Cr;function qo(){var Oc;if(D&&((Oc=de.emitNode)!=null&&Oc.classThis))return Ri().classConstructor=de.emitNode.classThis;let im=zr&32768,fu=t.createTempVariable(im?d:i,!0);return Ri().classConstructor=t.cloneNode(fu),fu}(Pe=de.emitNode)!=null&&Pe.classThis&&(Ri().classThis=de.emitNode.classThis),$&2&&(Cr??(Cr=qo()));let bl=zn(de.modifiers,Ge,Sa),Hc=zn(de.heritageClauses,Le,Zp),{members:zs,prologue:hc}=ie(de),ys=t.updateClassExpression(de,bl,de.name,void 0,Hc,zs),Kc=[];if(hc&&Kc.push(hc),(D||ym(de)&32)&>(pr,Oc=>Al(Oc)||ou(Oc)||N&&Ew(Oc))||gt(ge))if(yr)x.assertIsDefined(q,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),gt(ge)&&Hr(q,mn(ge,t.createExpressionStatement)),gt(pr)&&It(q,pr,((yt=de.emitNode)==null?void 0:yt.classThis)??t.getInternalName(de)),Cr?Kc.push(t.createAssignment(Cr,ys)):D&&((cn=de.emitNode)!=null&&cn.classThis)?Kc.push(t.createAssignment(de.emitNode.classThis,ys)):Kc.push(ys);else{if(Cr??(Cr=qo()),Di){Bn();let Oc=t.cloneNode(Cr);Oc.emitNode.autoGenerate.flags&=-9,me[wd(de)]=Oc}Kc.push(t.createAssignment(Cr,ys)),Hr(Kc,ge),Hr(Kc,Ut(pr,Cr)),Kc.push(t.cloneNode(Cr))}else Kc.push(ys);return Kc.length>1&&(D_(ys,131072),Kc.forEach(Jd)),t.inlineExpressions(Kc)}function Nt(de){if(!D)return Sn(de,ve,e)}function k(de){if(j&&fe&&Al(fe)&&J?.data){let{classThis:$,classConstructor:Pe}=J.data;return $??Pe??de}return de}function ie(de){let $=!!(ym(de)&32);if(D||z){for(let pr of de.members)if(ou(pr))if(hi(pr))ml(pr,pr.name,xn);else{let zr=Kr();jT(zr,pr.name,{kind:"untransformed"})}if(D&>(He(de))&&H(),Ot()){for(let pr of de.members)if(Mu(pr)){let zr=t.getGeneratedPrivateNameForNode(pr.name,void 0,"_accessor_storage");if(D||$&&pc(pr))ml(pr,zr,Ls);else{let Di=Kr();jT(Di,zr,{kind:"untransformed"})}}}}let Pe=zn(de.members,be,$c),yt;gt(Pe,Pl)||(yt=ue(void 0,de));let cn,yr;if(!D&>(ge)){let pr=t.createExpressionStatement(t.inlineExpressions(ge));if(pr.transformFlags&134234112){let Di=t.createTempVariable(i),Cr=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([pr]));cn=t.createAssignment(Di,Cr),pr=t.createExpressionStatement(t.createCallExpression(Di,void 0,[]))}let zr=t.createBlock([pr]);yr=t.createClassStaticBlockDeclaration(zr),ge=void 0}if(yt||yr){let pr,zr=Vr(Pe,LP),Di=Vr(Pe,_1);pr=Tn(pr,zr),pr=Tn(pr,Di),pr=Tn(pr,yt),pr=Tn(pr,yr);let Cr=zr||Di?jr(Pe,qo=>qo!==zr&&qo!==Di):Pe;pr=Hr(pr,Cr),Pe=at(t.createNodeArray(pr),de.members)}return{members:Pe,prologue:cn}}function H(){let{weakSetName:de}=Kr().data;x.assert(de,"weakSetName should be set in private identifier environment"),xo().push(t.createAssignment(de,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}function ue(de,$){if(de=$e(de,ve,Pl),!J?.data||!(J.data.facts&16))return de;let Pe=S_($),yt=!!(Pe&&Yl(Pe.expression).kind!==106),cn=Il(de?de.parameters:void 0,ve,e),yr=Ne($,de,yt);return yr?de?(x.assert(cn),t.updateConstructorDeclaration(de,void 0,cn,yr)):Jd(xr(at(t.createConstructorDeclaration(void 0,cn??[],yr),de||$),de)):de}function We(de,$,Pe,yt,cn,yr,pr){let zr=yt[cn],Di=$[zr];if(Hr(de,zn($,ve,Hi,Pe,zr-Pe)),Pe=zr+1,wT(Di)){let Cr=[];We(Cr,Di.tryBlock.statements,0,yt,cn+1,yr,pr);let qo=t.createNodeArray(Cr);at(qo,Di.tryBlock.statements),de.push(t.updateTryStatement(Di,t.updateBlock(Di.tryBlock,Cr),$e(Di.catchClause,ve,X0),$e(Di.finallyBlock,ve,Ko)))}else{for(Hr(de,zn($,ve,Hi,zr,1));Pe<$.length;){let Cr=$[Pe];if(dp(Nl(Cr),pr))Pe++;else break}Hr(de,yr)}Hr(de,zn($,ve,Hi,Pe))}function Ne(de,$,Pe){let yt=NK(de,!1,!1),cn=yt;y||(cn=jr(cn,zs=>!!zs.initializer||Ki(zs.name)||I_(zs)));let yr=He(de),pr=gt(cn)||gt(yr);if(!$&&!pr)return nf(void 0,ve,e);l();let zr=!$&&Pe,Di=0,Cr=[],qo=[],bl=t.createThis();if(xi(qo,yr,bl),$){let zs=jr(yt,ys=>dp(Nl(ys),$)),hc=jr(cn,ys=>!dp(Nl(ys),$));It(qo,zs,bl),It(qo,hc,bl)}else It(qo,cn,bl);if($?.body){Di=t.copyPrologue($.body.statements,Cr,!1,ve);let zs=z3($.body.statements,Di);if(zs.length)We(Cr,$.body.statements,Di,zs,0,qo,$);else{for(;Di<$.body.statements.length;){let hc=$.body.statements[Di];if(dp(Nl(hc),$))Di++;else break}Hr(Cr,qo),Hr(Cr,zn($.body.statements,ve,Hi,Di))}}else zr&&Cr.push(t.createExpressionStatement(t.createCallExpression(t.createSuper(),void 0,[t.createSpreadElement(t.createIdentifier("arguments"))]))),Hr(Cr,qo);if(Cr=t.mergeLexicalEnvironment(Cr,o()),Cr.length===0&&!$)return;let Hc=$?.body&&$.body.statements.length>=Cr.length?$.body.multiLine??Cr.length>0:Cr.length>0;return at(t.createBlock(at(t.createNodeArray(Cr),$?$.body.statements:de.members),Hc),$?$.body:void 0)}function It(de,$,Pe){for(let yt of $){if(ra(yt)&&!D)continue;let cn=Dt(yt,Pe);cn&&de.push(cn)}}function Dt(de,$){let Pe=Al(de)?Li(de,ae,de):En(de,$);if(!Pe)return;let yt=t.createExpressionStatement(Pe);xr(yt,de),D_(yt,za(de)&3072),ic(yt,de);let cn=Nl(de);return Ao(cn)?(Ra(yt,cn),Tk(yt)):Ra(yt,R_(de)),_E(Pe,void 0),GI(Pe,void 0),I_(cn)&&D_(yt,3072),yt}function Ut(de,$){let Pe=[];for(let yt of de){let cn=Al(yt)?Li(yt,ae,yt):Li(yt,()=>En(yt,$),void 0);cn&&(Jd(cn),xr(cn,yt),D_(cn,za(yt)&3072),Ra(cn,R_(yt)),ic(cn,yt),Pe.push(cn))}return Pe}function En(de,$){var Pe;let yt=fe,cn=wn(de,$);return cn&&pc(de)&&((Pe=J?.data)!=null&&Pe.facts)&&(xr(cn,de),D_(cn,4),Ra(cn,Wy(de.name)),re.set(Nl(de),J)),fe=yt,cn}function wn(de,$){let Pe=!y;pp(de,ke)&&(de=yp(e,de));let yt=I_(de)?t.getGeneratedPrivateNameForNode(de.name):Ya(de.name)&&!L_(de.name.expression)?t.updateComputedPropertyName(de.name,t.getGeneratedNameForNode(de.name)):de.name;if(pc(de)&&(fe=de),Ki(yt)&&hi(de)){let pr=la(yt);if(pr)return pr.kind==="f"?pr.isStatic?N9e(t,pr.variableName,$e(de.initializer,ve,ht)):P9e(t,$,$e(de.initializer,ve,ht),pr.brandCheckIdentifier):void 0;x.fail("Undeclared private name for property declaration.")}if((Ki(yt)||pc(de))&&!de.initializer)return;let cn=Nl(de);if($r(cn,64))return;let yr=$e(de.initializer,ve,ht);if(dp(cn,cn.parent)&&Fe(yt)){let pr=t.cloneNode(yt);yr?(Ou(yr)&&Vk(yr.expression)&&iP(yr.expression.left,"___runInitializers")&&e1(yr.expression.right)&&mp(yr.expression.right.expression)&&(yr=yr.expression.left),yr=t.inlineExpressions([yr,pr])):yr=pr,lr(yt,3168),Ra(pr,cn.name),lr(pr,3072)}else yr??(yr=t.createVoidZero());if(Pe||Ki(yt)){let pr=BT(t,$,yt,yt);return D_(pr,1024),t.createAssignment(pr,yr)}else{let pr=Ya(yt)?yt.expression:Fe(yt)?t.createStringLiteral(Vi(yt.escapedText)):yt,zr=t.createPropertyDescriptor({value:yr,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall($,pr,zr)}}function Bn(){Z&1||(Z|=1,e.enableSubstitution(80),me=[])}function gi(){Z&2||(Z|=2,e.enableSubstitution(110),e.enableEmitNotification(262),e.enableEmitNotification(218),e.enableEmitNotification(176),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(174),e.enableEmitNotification(172),e.enableEmitNotification(167))}function xi(de,$,Pe){if(!D||!gt($))return;let{weakSetName:yt}=Kr().data;x.assert(yt,"weakSetName should be set in private identifier environment"),de.push(t.createExpressionStatement(M9e(t,Pe,yt)))}function er(de){return kr(de)?t.updatePropertyAccessExpression(de,t.createVoidZero(),de.name):t.updateElementAccessExpression(de,t.createVoidZero(),$e(de.argumentExpression,ve,ht))}function Fr(de,$){if(Ya(de)){let Pe=t3(de),yt=$e(de.expression,ve,ht),cn=gm(yt),yr=L_(cn);if(!(!!Pe||Mc(cn)&&rl(cn.left))&&!yr&&$){let zr=t.getGeneratedNameForNode(de);return p.getNodeCheckFlags(de)&32768?d(zr):i(zr),t.createAssignment(zr,yt)}return yr||Fe(cn)?void 0:yt}}function go(){J={previous:J,data:void 0}}function Pi(){J=J?.previous}function Ri(){return x.assert(J),J.data??(J.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function Kr(){return x.assert(J),J.privateEnv??(J.privateEnv=tle({className:void 0,weakSetName:void 0}))}function xo(){return ge??(ge=[])}function xn(de,$,Pe,yt,cn,yr,pr){Mu(de)?Ws(de,$,Pe,yt,cn,yr,pr):Uo(de)?Ls(de,$,Pe,yt,cn,yr,pr):Ul(de)?$l(de,$,Pe,yt,cn,yr,pr):Qp(de)?Mo(de,$,Pe,yt,cn,yr,pr):hp(de)&&ss(de,$,Pe,yt,cn,yr,pr)}function Ls(de,$,Pe,yt,cn,yr,pr){if(cn){let zr=x.checkDefined(Pe.classThis??Pe.classConstructor,"classConstructor should be set in private identifier environment"),Di=mo($);jT(yt,$,{kind:"f",isStatic:!0,brandCheckIdentifier:zr,variableName:Di,isValid:yr})}else{let zr=mo($);jT(yt,$,{kind:"f",isStatic:!1,brandCheckIdentifier:zr,isValid:yr}),xo().push(t.createAssignment(zr,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function $l(de,$,Pe,yt,cn,yr,pr){let zr=mo($),Di=cn?x.checkDefined(Pe.classThis??Pe.classConstructor,"classConstructor should be set in private identifier environment"):x.checkDefined(yt.data.weakSetName,"weakSetName should be set in private identifier environment");jT(yt,$,{kind:"m",methodName:zr,brandCheckIdentifier:Di,isStatic:cn,isValid:yr})}function Mo(de,$,Pe,yt,cn,yr,pr){let zr=mo($,"_get"),Di=cn?x.checkDefined(Pe.classThis??Pe.classConstructor,"classConstructor should be set in private identifier environment"):x.checkDefined(yt.data.weakSetName,"weakSetName should be set in private identifier environment");pr?.kind==="a"&&pr.isStatic===cn&&!pr.getterName?pr.getterName=zr:jT(yt,$,{kind:"a",getterName:zr,setterName:void 0,brandCheckIdentifier:Di,isStatic:cn,isValid:yr})}function ss(de,$,Pe,yt,cn,yr,pr){let zr=mo($,"_set"),Di=cn?x.checkDefined(Pe.classThis??Pe.classConstructor,"classConstructor should be set in private identifier environment"):x.checkDefined(yt.data.weakSetName,"weakSetName should be set in private identifier environment");pr?.kind==="a"&&pr.isStatic===cn&&!pr.setterName?pr.setterName=zr:jT(yt,$,{kind:"a",getterName:void 0,setterName:zr,brandCheckIdentifier:Di,isStatic:cn,isValid:yr})}function Ws(de,$,Pe,yt,cn,yr,pr){let zr=mo($,"_get"),Di=mo($,"_set"),Cr=cn?x.checkDefined(Pe.classThis??Pe.classConstructor,"classConstructor should be set in private identifier environment"):x.checkDefined(yt.data.weakSetName,"weakSetName should be set in private identifier environment");jT(yt,$,{kind:"a",getterName:zr,setterName:Di,brandCheckIdentifier:Cr,isStatic:cn,isValid:yr})}function ml(de,$,Pe){let yt=Ri(),cn=Kr(),yr=MK(cn,$),pr=pc(de),zr=!L9e($)&&yr===void 0;Pe(de,$,yt,cn,pr,zr,yr)}function cd(de,$,Pe){let{className:yt}=Kr().data,cn=yt?{prefix:"_",node:yt,suffix:"_"}:"_",yr=typeof de=="object"?t.getGeneratedNameForNode(de,24,cn,Pe):typeof de=="string"?t.createUniqueName(de,16,cn,Pe):t.createTempVariable(void 0,!0,cn,Pe);return p.getNodeCheckFlags($)&32768?d(yr):i(yr),yr}function mo(de,$){let Pe=pN(de);return cd(Pe?.substring(1)??de,de,$)}function la(de){let $=nle(J,de);return $?.kind==="untransformed"?void 0:$}function dd(de){let $=t.getGeneratedNameForNode(de),Pe=la(de.name);if(!Pe)return Sn(de,ve,e);let yt=de.expression;return(T2(de)||ku(de)||!tS(de.expression))&&(yt=t.createTempVariable(i,!0),xo().push(t.createBinaryExpression(yt,64,$e(de.expression,ve,ht)))),t.createAssignmentTargetWrapper($,Tt(Pe,yt,$,64))}function bs(de){if(Ma(de)||uu(de))return tn(de);if(Ox(de))return dd(de);if(K&&fe&&ku(de)&&wP(fe)&&J?.data){let{classConstructor:$,superClassReference:Pe,facts:yt}=J.data;if(yt&1)return er(de);if($&&Pe){let cn=Js(de)?$e(de.argumentExpression,ve,ht):Fe(de.name)?t.createStringLiteralFromNode(de.name):void 0;if(cn){let yr=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(yr,t.createReflectSetCall(Pe,cn,yr,$))}}}return Sn(de,ve,e)}function Ca(de){if(pp(de,ke)&&(de=yp(e,de)),Mc(de,!0)){let $=bs(de.left),Pe=$e(de.right,ve,ht);return t.updateBinaryExpression(de,$,de.operatorToken,Pe)}return bs(de)}function ul(de){if(Yu(de.expression)){let $=bs(de.expression);return t.updateSpreadElement(de,$)}return Sn(de,ve,e)}function Nf(de){if(o2(de)){if(Jm(de))return ul(de);if(!jc(de))return Ca(de)}return Sn(de,ve,e)}function ac(de){let $=$e(de.name,ve,rc);if(Mc(de.initializer,!0)){let Pe=Ca(de.initializer);return t.updatePropertyAssignment(de,$,Pe)}if(Yu(de.initializer)){let Pe=bs(de.initializer);return t.updatePropertyAssignment(de,$,Pe)}return Sn(de,ve,e)}function xl(de){return pp(de,ke)&&(de=yp(e,de)),Sn(de,ve,e)}function al(de){if(Yu(de.expression)){let $=bs(de.expression);return t.updateSpreadAssignment(de,$)}return Sn(de,ve,e)}function Lo(de){return x.assertNode(de,i2),By(de)?al(de):Zu(de)?xl(de):mc(de)?ac(de):Sn(de,ve,e)}function tn(de){return uu(de)?t.updateArrayLiteralExpression(de,zn(de.elements,Nf,ht)):t.updateObjectLiteralExpression(de,zn(de.properties,Lo,Pg))}function Fs(de,$,Pe){let yt=Nl($),cn=re.get(yt);if(cn){let yr=J,pr=he;J=cn,he=ne,ne=!Al(yt)||!(ym(yt)&32),ce(de,$,Pe),ne=he,he=pr,J=yr;return}switch($.kind){case 218:if(Os(yt)||za($)&524288)break;case 262:case 176:case 177:case 178:case 174:case 172:{let yr=J,pr=he;J=void 0,he=ne,ne=!1,ce(de,$,Pe),ne=he,he=pr,J=yr;return}case 167:{let yr=J,pr=ne;J=J?.previous,ne=he,ce(de,$,Pe),ne=pr,J=yr;return}}ce(de,$,Pe)}function nd(de,$){return $=B(de,$),de===1?ud($):$}function ud(de){switch(de.kind){case 80:return Rs(de);case 110:return Ep(de)}return de}function Ep(de){if(Z&2&&J?.data&&!pe.has(de)){let{facts:$,classConstructor:Pe,classThis:yt}=J.data,cn=ne?yt??Pe:Pe;if(cn)return at(xr(t.cloneNode(cn),de),de);if($&1&&E)return t.createParenthesizedExpression(t.createVoidZero())}return de}function Rs(de){return Ac(de)||de}function Ac(de){if(Z&1&&p.getNodeCheckFlags(de)&536870912){let $=p.getReferencedValueDeclaration(de);if($){let Pe=me[$.id];if(Pe){let yt=t.cloneNode(Pe);return Ra(yt,de),ic(yt,de),yt}}}}}function N9e(e,t,r){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment("value",r||e.createVoidZero())]))}function P9e(e,t,r,i){return e.createCallExpression(e.createPropertyAccessExpression(i,"set"),void 0,[t,r||e.createVoidZero()])}function M9e(e,t,r){return e.createCallExpression(e.createPropertyAccessExpression(r,"add"),void 0,[t])}function L9e(e){return!aT(e)&&e.escapedText==="#constructor"}function k9e(e){return Ki(e.left)&&e.operatorToken.kind===103}function w9e(e){return Uo(e)&&pc(e)}function wP(e){return Al(e)||w9e(e)}var O9e=bt({"src/compiler/transformers/classFields.ts"(){"use strict";ea()}});function fle(e){let{factory:t,hoistVariableDeclaration:r}=e,i=e.getEmitResolver(),o=e.getCompilerOptions(),s=ns(o),l=cu(o,"strictNullChecks"),d,p;return{serializeTypeNode:(ge,q)=>h(ge,N,q),serializeTypeOfNode:(ge,q)=>h(ge,y,q),serializeParameterTypesOfNode:(ge,q,J)=>h(ge,E,q,J),serializeReturnTypeOfNode:(ge,q)=>h(ge,A,q)};function h(ge,q,J,re){let pe=d,xe=p;d=ge.currentLexicalScope,p=ge.currentNameScope;let fe=re===void 0?q(J):q(J,re);return d=pe,p=xe,fe}function m(ge){let q=i.getAllAccessorDeclarations(ge);return q.setAccessor&&Die(q.setAccessor)||q.getAccessor&&$f(q.getAccessor)}function y(ge){switch(ge.kind){case 172:case 169:return N(ge.type);case 178:case 177:return N(m(ge));case 263:case 231:case 174:return t.createIdentifier("Function");default:return t.createVoidZero()}}function E(ge,q){let J=ci(ge)?Zh(ge):$o(ge)&&Hf(ge.body)?ge:void 0,re=[];if(J){let pe=S(J,q),xe=pe.length;for(let fe=0;fepe.parent&&ZI(pe.parent)&&(pe.parent.trueType===pe||pe.parent.falseType===pe)))return t.createIdentifier("Object");let J=B(ge.typeName),re=t.createTempVariable(r);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(re,J),"function"),void 0,re,void 0,t.createIdentifier("Object"));case 1:return ce(ge.typeName);case 2:return t.createVoidZero();case 4:return me("BigInt",7);case 6:return t.createIdentifier("Boolean");case 3:return t.createIdentifier("Number");case 5:return t.createIdentifier("String");case 7:return t.createIdentifier("Array");case 8:return me("Symbol",2);case 10:return t.createIdentifier("Function");case 9:return t.createIdentifier("Promise");case 11:return t.createIdentifier("Object");default:return x.assertNever(q)}}function Y(ge,q){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(ge),t.createStringLiteral("undefined")),q)}function B(ge){if(ge.kind===80){let re=ce(ge);return Y(re,re)}if(ge.left.kind===80)return Y(ce(ge.left),ce(ge));let q=B(ge.left),J=t.createTempVariable(r);return t.createLogicalAnd(t.createLogicalAnd(q.left,t.createStrictInequality(t.createAssignment(J,q.right),t.createVoidZero())),t.createPropertyAccessExpression(J,ge.right))}function ce(ge){switch(ge.kind){case 80:let q=ja(at(bh.cloneNode(ge),ge),ge.parent);return q.original=void 0,ja(q,Do(d)),q;case 166:return z(ge)}}function z(ge){return t.createPropertyAccessExpression(ce(ge.left),ge.right)}function Z(ge){return t.createConditionalExpression(t.createTypeCheck(t.createIdentifier(ge),"function"),void 0,t.createIdentifier(ge),void 0,t.createIdentifier("Object"))}function me(ge,q){return sKk(Ot)||bd(Ot)?void 0:Ot,il),Kn=R_(Je),pn=Le(Je),Xt=l<2?t.getInternalName(Je,!1,!0):t.getLocalName(Je,!1,!0),Kt=zn(Je.heritageClauses,y,Zp),hi=zn(Je.members,y,$c),uo=[];({members:hi,decorationStatements:uo}=D(Je,hi));let Li=l>=9&&!!pn&>(hi,Ot=>Uo(Ot)&&$r(Ot,256)||Al(Ot));Li&&(hi=at(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(pn,t.createThis()))])),...hi]),hi));let So=t.createClassExpression(Dn,pt&&rl(pt)?void 0:pt,void 0,Kt,hi);xr(So,Je),at(So,Kn);let Qn=pn&&!Li?t.createAssignment(pn,So):So,Ur=t.createVariableDeclaration(Xt,void 0,void 0,Qn);xr(Ur,Je);let Er=t.createVariableDeclarationList([Ur],1),on=t.createVariableStatement(void 0,Er);xr(on,Je),at(on,Kn),ic(on,Je);let Ye=[on];if(Hr(Ye,uo),he(Ye,Je),Zt)if(en){let Ot=t.createExportDefault(Xt);Ye.push(Ot)}else{let Ot=t.createExternalModuleExport(t.getDeclarationName(Je));Ye.push(Ot)}return Ye}function K(Je){return t.updateClassExpression(Je,zn(Je.modifiers,m,Sa),Je.name,void 0,zn(Je.heritageClauses,y,Zp),zn(Je.members,y,$c))}function Y(Je){return t.updateConstructorDeclaration(Je,zn(Je.modifiers,m,Sa),zn(Je.parameters,y,Ao),$e(Je.body,y,Ko))}function B(Je,pt){return Je!==pt&&(ic(Je,pt),Ra(Je,R_(pt))),Je}function ce(Je){return B(t.updateMethodDeclaration(Je,zn(Je.modifiers,m,Sa),Je.asteriskToken,x.checkDefined($e(Je.name,y,rc)),void 0,void 0,zn(Je.parameters,y,Ao),void 0,$e(Je.body,y,Ko)),Je)}function z(Je){return B(t.updateGetAccessorDeclaration(Je,zn(Je.modifiers,m,Sa),x.checkDefined($e(Je.name,y,rc)),zn(Je.parameters,y,Ao),void 0,$e(Je.body,y,Ko)),Je)}function Z(Je){return B(t.updateSetAccessorDeclaration(Je,zn(Je.modifiers,m,Sa),x.checkDefined($e(Je.name,y,rc)),zn(Je.parameters,y,Ao),$e(Je.body,y,Ko)),Je)}function me(Je){if(!(Je.flags&33554432||$r(Je,128)))return B(t.updatePropertyDeclaration(Je,zn(Je.modifiers,m,Sa),x.checkDefined($e(Je.name,y,rc)),void 0,void 0,$e(Je.initializer,y,ht)),Je)}function ge(Je){let pt=t.updateParameterDeclaration(Je,Vae(t,Je.modifiers),Je.dotDotDotToken,x.checkDefined($e(Je.name,y,sT)),void 0,void 0,$e(Je.initializer,y,ht));return pt!==Je&&(ic(pt,Je),at(pt,R_(Je)),Ra(pt,R_(Je)),lr(pt.name,64)),pt}function q(Je){return iP(Je.expression,"___metadata")}function J(Je){if(!Je)return;let{false:pt,true:Zt}=hW(Je.decorators,q),en=[];return Hr(en,mn(pt,Ge)),Hr(en,va(Je.parameters,ve)),Hr(en,mn(Zt,Ge)),en}function re(Je,pt,Zt){Hr(Je,mn(fe(pt,Zt),en=>t.createExpressionStatement(en)))}function pe(Je,pt,Zt){return I2(!0,Je,Zt)&&pt===ra(Je)}function xe(Je,pt){return jr(Je.members,Zt=>pe(Zt,pt,Je))}function fe(Je,pt){let Zt=xe(Je,pt),en;for(let Dn of Zt)en=Tn(en,ne(Je,Dn));return en}function ne(Je,pt){let Zt=G3(pt,Je,!0),en=J(Zt);if(!en)return;let Dn=be(Je,pt),Kn=Ae(pt,!$r(pt,128)),pn=l>0?Uo(pt)&&!I_(pt)?t.createVoidZero():t.createNull():void 0,Xt=r().createDecorateHelper(en,Dn,Kn,pn);return lr(Xt,3072),Ra(Xt,R_(pt)),Xt}function he(Je,pt){let Zt=Ce(pt);Zt&&Je.push(xr(t.createExpressionStatement(Zt),pt))}function Ce(Je){let pt=PK(Je),Zt=J(pt);if(!Zt)return;let en=p&&p[wd(Je)],Dn=l<2?t.getInternalName(Je,!1,!0):t.getDeclarationName(Je,!1,!0),Kn=r().createDecorateHelper(Zt,Dn),pn=t.createAssignment(Dn,en?t.createAssignment(en,Kn):Kn);return lr(pn,3072),Ra(pn,R_(Je)),pn}function Ge(Je){return x.checkDefined($e(Je.expression,y,ht))}function ve(Je,pt){let Zt;if(Je){Zt=[];for(let en of Je){let Dn=r().createParamHelper(Ge(en),pt);at(Dn,en.expression),lr(Dn,3072),Zt.push(Dn)}}return Zt}function Ae(Je,pt){let Zt=Je.name;return Ki(Zt)?t.createIdentifier(""):Ya(Zt)?pt&&!L_(Zt.expression)?t.getGeneratedNameForNode(Zt):Zt.expression:Fe(Zt)?t.createStringLiteral(gr(Zt)):t.cloneNode(Zt)}function De(){p||(e.enableSubstitution(80),p=[])}function Le(Je){if(o.getNodeCheckFlags(Je)&262144){De();let pt=t.createUniqueName(Je.name&&!rl(Je.name)?gr(Je.name):"default");return p[wd(Je)]=pt,i(pt),pt}}function Et(Je){return t.createPropertyAccessExpression(t.getDeclarationName(Je),"prototype")}function be(Je,pt){return ra(pt)?t.getDeclarationName(Je):Et(Je)}function ze(Je,pt){return pt=d(Je,pt),Je===1?tt(pt):pt}function tt(Je){switch(Je.kind){case 80:return Wt(Je)}return Je}function Wt(Je){return _t(Je)??Je}function _t(Je){if(p&&o.getNodeCheckFlags(Je)&536870912){let pt=o.getReferencedValueDeclaration(Je);if(pt){let Zt=p[pt.id];if(Zt){let en=t.cloneNode(Zt);return Ra(en,Je),ic(en,Je),en}}}}}var F9e=bt({"src/compiler/transformers/legacyDecorators.ts"(){"use strict";ea()}});function _le(e){let{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=ns(e.getCompilerOptions()),d,p,h,m,y,E;return Im(e,S);function S(k){d=void 0,E=!1;let ie=Sn(k,Z,e);return Fg(ie,e.readEmitHelpers()),E&&(BI(ie,32),E=!1),ie}function A(){switch(p=void 0,h=void 0,m=void 0,d?.kind){case"class":p=d.classInfo;break;case"class-element":p=d.next.classInfo,h=d.classThis,m=d.classSuper;break;case"name":let k=d.next.next.next;k?.kind==="class-element"&&(p=k.next.classInfo,h=k.classThis,m=k.classSuper);break}}function N(k){d={kind:"class",next:d,classInfo:k,savedPendingExpressions:y},y=void 0,A()}function D(){x.assert(d?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${d?.kind}' instead.`),y=d.savedPendingExpressions,d=d.next,A()}function w(k){var ie,H;x.assert(d?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${d?.kind}' instead.`),d={kind:"class-element",next:d},(Al(k)||Uo(k)&&pc(k))&&(d.classThis=(ie=d.next.classInfo)==null?void 0:ie.classThis,d.classSuper=(H=d.next.classInfo)==null?void 0:H.classSuper),A()}function j(){var k;x.assert(d?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${d?.kind}' instead.`),x.assert(((k=d.next)==null?void 0:k.kind)==="class","Incorrect value for top.next.kind.",()=>{var ie;return`Expected top.next.kind to be 'class' but got '${(ie=d.next)==null?void 0:ie.kind}' instead.`}),d=d.next,A()}function K(){x.assert(d?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${d?.kind}' instead.`),d={kind:"name",next:d},A()}function Y(){x.assert(d?.kind==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${d?.kind}' instead.`),d=d.next,A()}function B(){d?.kind==="other"?(x.assert(!y),d.depth++):(d={kind:"other",next:d,depth:0,savedPendingExpressions:y},y=void 0,A())}function ce(){x.assert(d?.kind==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${d?.kind}' instead.`),d.depth>0?(x.assert(!y),d.depth--):(y=d.savedPendingExpressions,d=d.next,A())}function z(k){return!!(k.transformFlags&33554432)||!!h&&!!(k.transformFlags&16384)||!!h&&!!m&&!!(k.transformFlags&134217728)}function Z(k){if(!z(k))return k;switch(k.kind){case 170:return x.fail("Use `modifierVisitor` instead.");case 263:return Ce(k);case 231:return Ge(k);case 176:case 172:case 175:return x.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return Kn(k);case 226:return uo(k,!1);case 303:return on(k);case 260:return Ye(k);case 208:return Ot(k);case 277:return Be(k);case 110:return Je(k);case 248:return Kt(k);case 244:return hi(k);case 361:return So(k,!1);case 217:return ct(k,!1);case 360:return lt(k,!1);case 213:return pt(k);case 215:return Zt(k);case 224:case 225:return Li(k,!1);case 211:return en(k);case 212:return Dn(k);case 167:return Er(k);case 174:case 178:case 177:case 218:case 262:{B();let ie=Sn(k,me,e);return ce(),ie}default:return Sn(k,me,e)}}function me(k){switch(k.kind){case 170:return;default:return Z(k)}}function ge(k){switch(k.kind){case 170:return;default:return k}}function q(k){switch(k.kind){case 176:return De(k);case 174:return be(k);case 177:return ze(k);case 178:return tt(k);case 172:return _t(k);case 175:return Wt(k);default:return Z(k)}}function J(k){switch(k.kind){case 224:case 225:return Li(k,!0);case 226:return uo(k,!0);case 361:return So(k,!0);case 217:return ct(k,!0);default:return Z(k)}}function re(k){let ie=k.name&&Fe(k.name)&&!rl(k.name)?gr(k.name):k.name&&Ki(k.name)&&!rl(k.name)?gr(k.name).slice(1):k.name&&Da(k.name)&&Yp(k.name.text,99)?k.name.text:ci(k)?"class":"member";return Pv(k)&&(ie=`get_${ie}`),Cy(k)&&(ie=`set_${ie}`),k.name&&Ki(k.name)&&(ie=`private_${ie}`),ra(k)&&(ie=`static_${ie}`),"_"+ie}function pe(k,ie){return t.createUniqueName(`${re(k)}_${ie}`,24)}function xe(k,ie){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(k,void 0,void 0,ie)],1))}function fe(k){let ie=t.createUniqueName("_metadata",48),H,ue,We=!1,Ne=!1,It=!1,Dt,Ut,En;if(Yx(!1,k)){let wn=gt(k.members,Bn=>(ou(Bn)||Mu(Bn))&&pc(Bn));Dt=t.createUniqueName("_classThis",wn?24:48)}for(let wn of k.members){if(bI(wn)&&I2(!1,wn,k))if(pc(wn)){if(!ue){ue=t.createUniqueName("_staticExtraInitializers",48);let Bn=r().createRunInitializersHelper(Dt??t.createThis(),ue);Ra(Bn,k.name??wg(k)),Ut??(Ut=[]),Ut.push(Bn)}}else{if(!H){H=t.createUniqueName("_instanceExtraInitializers",48);let Bn=r().createRunInitializersHelper(t.createThis(),H);Ra(Bn,k.name??wg(k)),En??(En=[]),En.push(Bn)}H??(H=t.createUniqueName("_instanceExtraInitializers",48))}if(Al(wn)?_1(wn)||(We=!0):Uo(wn)&&(pc(wn)?We||(We=!!wn.initializer||bf(wn)):Ne||(Ne=!QV(wn))),(ou(wn)||Mu(wn))&&pc(wn)&&(It=!0),ue&&H&&We&&Ne&&It)break}return{class:k,classThis:Dt,metadataReference:ie,instanceMethodExtraInitializersName:H,staticMethodExtraInitializersName:ue,hasStaticInitializers:We,hasNonAmbientInstanceFields:Ne,hasStaticPrivateClassElements:It,pendingStaticInitializers:Ut,pendingInstanceInitializers:En}}function ne(k){i(),!OK(k)&&Ny(!1,k)&&(k=j3(e,k,t.createStringLiteral("")));let ie=t.getLocalName(k,!1,!1,!0),H=fe(k),ue=[],We,Ne,It,Dt,Ut=!1,En=st(PK(k));En&&(H.classDecoratorsName=t.createUniqueName("_classDecorators",48),H.classDescriptorName=t.createUniqueName("_classDescriptor",48),H.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48),x.assertIsDefined(H.classThis),ue.push(xe(H.classDecoratorsName,t.createArrayLiteralExpression(En)),xe(H.classDescriptorName),xe(H.classExtraInitializersName,t.createArrayLiteralExpression()),xe(H.classThis)),H.hasStaticPrivateClassElements&&(Ut=!0,E=!0));let wn=H2(k.heritageClauses,96),Bn=wn&&Xc(wn.types),gi=Bn&&$e(Bn.expression,Z,ht);if(gi){H.classSuper=t.createUniqueName("_classSuper",48);let Kr=Yl(gi),xo=Zc(Kr)&&!Kr.name||Ps(Kr)&&!Kr.name||Os(Kr)?t.createComma(t.createNumericLiteral(0),gi):gi;ue.push(xe(H.classSuper,xo));let xn=t.updateExpressionWithTypeArguments(Bn,H.classSuper,void 0),Ls=t.updateHeritageClause(wn,[xn]);Dt=t.createNodeArray([Ls])}let xi=H.classThis??t.createThis();N(H),We=Tn(We,U(H.metadataReference,H.classSuper));let er=k.members;if(er=zn(er,Kr=>Pl(Kr)?Kr:q(Kr),$c),er=zn(er,Kr=>Pl(Kr)?q(Kr):Kr,$c),y){let Kr;for(let xo of y){xo=$e(xo,function Ls($l){if(!($l.transformFlags&16384))return $l;switch($l.kind){case 110:return Kr||(Kr=t.createUniqueName("_outerThis",16),ue.unshift(xe(Kr,t.createThis()))),Kr;default:return Sn($l,Ls,e)}},ht);let xn=t.createExpressionStatement(xo);We=Tn(We,xn)}y=void 0}if(D(),gt(H.pendingInstanceInitializers)&&!Zh(k)){let Kr=ve(k,H);if(Kr){let xo=S_(k),xn=!!(xo&&Yl(xo.expression).kind!==106),Ls=[];if(xn){let Mo=t.createSpreadElement(t.createIdentifier("arguments")),ss=t.createCallExpression(t.createSuper(),void 0,[Mo]);Ls.push(t.createExpressionStatement(ss))}Hr(Ls,Kr);let $l=t.createBlock(Ls,!0);It=t.createConstructorDeclaration(void 0,[],$l)}}if(H.staticMethodExtraInitializersName&&ue.push(xe(H.staticMethodExtraInitializersName,t.createArrayLiteralExpression())),H.instanceMethodExtraInitializersName&&ue.push(xe(H.instanceMethodExtraInitializersName,t.createArrayLiteralExpression())),H.memberInfos&&Gc(H.memberInfos,(Kr,xo)=>{ra(xo)&&(ue.push(xe(Kr.memberDecoratorsName)),Kr.memberInitializersName&&ue.push(xe(Kr.memberInitializersName,t.createArrayLiteralExpression())),Kr.memberExtraInitializersName&&ue.push(xe(Kr.memberExtraInitializersName,t.createArrayLiteralExpression())),Kr.memberDescriptorName&&ue.push(xe(Kr.memberDescriptorName)))}),H.memberInfos&&Gc(H.memberInfos,(Kr,xo)=>{ra(xo)||(ue.push(xe(Kr.memberDecoratorsName)),Kr.memberInitializersName&&ue.push(xe(Kr.memberInitializersName,t.createArrayLiteralExpression())),Kr.memberExtraInitializersName&&ue.push(xe(Kr.memberExtraInitializersName,t.createArrayLiteralExpression())),Kr.memberDescriptorName&&ue.push(xe(Kr.memberDescriptorName)))}),We=Hr(We,H.staticNonFieldDecorationStatements),We=Hr(We,H.nonStaticNonFieldDecorationStatements),We=Hr(We,H.staticFieldDecorationStatements),We=Hr(We,H.nonStaticFieldDecorationStatements),H.classDescriptorName&&H.classDecoratorsName&&H.classExtraInitializersName&&H.classThis){We??(We=[]);let Kr=t.createPropertyAssignment("value",xi),xo=t.createObjectLiteralExpression([Kr]),xn=t.createAssignment(H.classDescriptorName,xo),Ls=t.createPropertyAccessExpression(xi,"name"),$l=r().createESDecorateHelper(t.createNull(),xn,H.classDecoratorsName,{kind:"class",name:Ls,metadata:H.metadataReference},t.createNull(),H.classExtraInitializersName),Mo=t.createExpressionStatement($l);Ra(Mo,wg(k)),We.push(Mo);let ss=t.createPropertyAccessExpression(H.classDescriptorName,"value"),Ws=t.createAssignment(H.classThis,ss),ml=t.createAssignment(ie,Ws);We.push(t.createExpressionStatement(ml))}if(We.push(Me(xi,H.metadataReference)),gt(H.pendingStaticInitializers)){for(let Kr of H.pendingStaticInitializers){let xo=t.createExpressionStatement(Kr);Ra(xo,Wy(Kr)),Ne=Tn(Ne,xo)}H.pendingStaticInitializers=void 0}if(H.classExtraInitializersName){let Kr=r().createRunInitializersHelper(xi,H.classExtraInitializersName),xo=t.createExpressionStatement(Kr);Ra(xo,k.name??wg(k)),Ne=Tn(Ne,xo)}We&&Ne&&!H.hasStaticInitializers&&(Hr(We,Ne),Ne=void 0);let Fr=We&&t.createClassStaticBlockDeclaration(t.createBlock(We,!0));Fr&&Ut&&Ak(Fr,32);let go=Ne&&t.createClassStaticBlockDeclaration(t.createBlock(Ne,!0));if(Fr||It||go){let Kr=[],xo=er.findIndex(_1);Fr?(Hr(Kr,er,0,xo+1),Kr.push(Fr),Hr(Kr,er,xo+1)):Hr(Kr,er),It&&Kr.push(It),go&&Kr.push(go),er=at(t.createNodeArray(Kr),er)}let Pi=o(),Ri;if(En){Ri=t.createClassExpression(void 0,void 0,void 0,Dt,er),H.classThis&&(Ri=sle(t,Ri,H.classThis));let Kr=t.createVariableDeclaration(ie,void 0,void 0,Ri),xo=t.createVariableDeclarationList([Kr]),xn=H.classThis?t.createAssignment(ie,H.classThis):ie;ue.push(t.createVariableStatement(void 0,xo),t.createReturnStatement(xn))}else Ri=t.createClassExpression(void 0,k.name,void 0,Dt,er),ue.push(t.createReturnStatement(Ri));if(Ut){BI(Ri,32);for(let Kr of Ri.members)(ou(Kr)||Mu(Kr))&&pc(Kr)&&BI(Kr,32)}return xr(Ri,k),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(ue,Pi))}function he(k){return Ny(!1,k)||_N(!1,k)}function Ce(k){if(he(k)){let ie=[],H=Nl(k,ci)??k,ue=H.name?t.createStringLiteralFromNode(H.name):t.createStringLiteral("default"),We=$r(k,32),Ne=$r(k,2048);if(k.name||(k=j3(e,k,ue)),We&&Ne){let It=ne(k);if(k.name){let Dt=t.createVariableDeclaration(t.getLocalName(k),void 0,void 0,It);xr(Dt,k);let Ut=t.createVariableDeclarationList([Dt],1),En=t.createVariableStatement(void 0,Ut);ie.push(En);let wn=t.createExportDefault(t.getDeclarationName(k));xr(wn,k),ic(wn,C_(k)),Ra(wn,wg(k)),ie.push(wn)}else{let Dt=t.createExportDefault(It);xr(Dt,k),ic(Dt,C_(k)),Ra(Dt,wg(k)),ie.push(Dt)}}else{x.assertIsDefined(k.name,"A class declaration that is not a default export must have a name.");let It=ne(k),Dt=We?xi=>JI(xi)?void 0:ge(xi):ge,Ut=zn(k.modifiers,Dt,Sa),En=t.getLocalName(k,!1,!0),wn=t.createVariableDeclaration(En,void 0,void 0,It);xr(wn,k);let Bn=t.createVariableDeclarationList([wn],1),gi=t.createVariableStatement(Ut,Bn);if(xr(gi,k),ic(gi,C_(k)),ie.push(gi),We){let xi=t.createExternalModuleExport(En);xr(xi,k),ie.push(xi)}}return rh(ie)}else{let ie=zn(k.modifiers,ge,Sa),H=zn(k.heritageClauses,Z,Zp);N(void 0);let ue=zn(k.members,q,$c);return D(),t.updateClassDeclaration(k,ie,k.name,void 0,H,ue)}}function Ge(k){if(he(k)){let ie=ne(k);return xr(ie,k),ie}else{let ie=zn(k.modifiers,ge,Sa),H=zn(k.heritageClauses,Z,Zp);N(void 0);let ue=zn(k.members,q,$c);return D(),t.updateClassExpression(k,ie,k.name,void 0,H,ue)}}function ve(k,ie){if(gt(ie.pendingInstanceInitializers)){let H=[];return H.push(t.createExpressionStatement(t.inlineExpressions(ie.pendingInstanceInitializers))),ie.pendingInstanceInitializers=void 0,H}}function Ae(k,ie,H,ue,We,Ne){let It=ue[We],Dt=ie[It];if(Hr(k,zn(ie,Z,Hi,H,It-H)),wT(Dt)){let Ut=[];Ae(Ut,Dt.tryBlock.statements,0,ue,We+1,Ne);let En=t.createNodeArray(Ut);at(En,Dt.tryBlock.statements),k.push(t.updateTryStatement(Dt,t.updateBlock(Dt.tryBlock,Ut),$e(Dt.catchClause,Z,X0),$e(Dt.finallyBlock,Z,Ko)))}else Hr(k,zn(ie,Z,Hi,It,1)),Hr(k,Ne);Hr(k,zn(ie,Z,Hi,It+1))}function De(k){w(k);let ie=zn(k.modifiers,ge,Sa),H=zn(k.parameters,Z,Ao),ue;if(k.body&&p){let We=ve(p.class,p);if(We){let Ne=[],It=t.copyPrologue(k.body.statements,Ne,!1,Z),Dt=z3(k.body.statements,It);Dt.length>0?Ae(Ne,k.body.statements,It,Dt,0,We):(Hr(Ne,We),Hr(Ne,zn(k.body.statements,Z,Hi))),ue=t.createBlock(Ne,!0),xr(ue,k.body),at(ue,k.body)}}return ue??(ue=$e(k.body,Z,Ko)),j(),t.updateConstructorDeclaration(k,ie,H,ue)}function Le(k,ie){return k!==ie&&(ic(k,ie),Ra(k,wg(ie))),k}function Et(k,ie,H){let ue,We,Ne,It,Dt,Ut;if(!ie){let Bn=zn(k.modifiers,ge,Sa);return K(),We=Ur(k.name),Y(),{modifiers:Bn,referencedName:ue,name:We,initializersName:Ne,descriptorName:Ut,thisArg:Dt}}let En=st(G3(k,ie.class,!1)),wn=zn(k.modifiers,ge,Sa);if(En){let Bn=pe(k,"decorators"),gi=t.createArrayLiteralExpression(En),xi=t.createAssignment(Bn,gi),er={memberDecoratorsName:Bn};ie.memberInfos??(ie.memberInfos=new Map),ie.memberInfos.set(k,er),y??(y=[]),y.push(xi);let Fr=bI(k)||Mu(k)?ra(k)?ie.staticNonFieldDecorationStatements??(ie.staticNonFieldDecorationStatements=[]):ie.nonStaticNonFieldDecorationStatements??(ie.nonStaticNonFieldDecorationStatements=[]):Uo(k)&&!Mu(k)?ra(k)?ie.staticFieldDecorationStatements??(ie.staticFieldDecorationStatements=[]):ie.nonStaticFieldDecorationStatements??(ie.nonStaticFieldDecorationStatements=[]):x.fail(),go=Qp(k)?"getter":hp(k)?"setter":Ul(k)?"method":Mu(k)?"accessor":Uo(k)?"field":x.fail(),Pi;if(Fe(k.name)||Ki(k.name))Pi={computed:!1,name:k.name};else if(T_(k.name))Pi={computed:!0,name:t.createStringLiteralFromNode(k.name)};else{let Kr=k.name.expression;T_(Kr)&&!Fe(Kr)?Pi={computed:!0,name:t.createStringLiteralFromNode(Kr)}:(K(),{referencedName:ue,name:We}=Qn(k.name),Pi={computed:!0,name:ue},Y())}let Ri={kind:go,name:Pi,static:ra(k),private:Ki(k.name),access:{get:Uo(k)||Qp(k)||Ul(k),set:Uo(k)||hp(k)},metadata:ie.metadataReference};if(bI(k)){let Kr=ra(k)?ie.staticMethodExtraInitializersName:ie.instanceMethodExtraInitializersName;x.assertIsDefined(Kr);let xo;ou(k)&&H&&(xo=H(k,zn(wn,$l=>ri($l,oP),Sa)),er.memberDescriptorName=Ut=pe(k,"descriptor"),xo=t.createAssignment(Ut,xo));let xn=r().createESDecorateHelper(t.createThis(),xo??t.createNull(),Bn,Ri,t.createNull(),Kr),Ls=t.createExpressionStatement(xn);Ra(Ls,wg(k)),Fr.push(Ls)}else if(Uo(k)){Ne=er.memberInitializersName??(er.memberInitializersName=pe(k,"initializers")),It=er.memberExtraInitializersName??(er.memberExtraInitializersName=pe(k,"extraInitializers")),ra(k)&&(Dt=ie.classThis);let Kr;ou(k)&&I_(k)&&H&&(Kr=H(k,void 0),er.memberDescriptorName=Ut=pe(k,"descriptor"),Kr=t.createAssignment(Ut,Kr));let xo=r().createESDecorateHelper(Mu(k)?t.createThis():t.createNull(),Kr??t.createNull(),Bn,Ri,Ne,It),xn=t.createExpressionStatement(xo);Ra(xn,wg(k)),Fr.push(xn)}}return We===void 0&&(K(),We=Ur(k.name),Y()),!gt(wn)&&(Ul(k)||Uo(k))&&lr(We,1024),{modifiers:wn,referencedName:ue,name:We,initializersName:Ne,extraInitializersName:It,descriptorName:Ut,thisArg:Dt}}function be(k){w(k);let{modifiers:ie,name:H,descriptorName:ue}=Et(k,p,Tt);if(ue)return j(),Le(hn(ie,H,ue),k);{let We=zn(k.parameters,Z,Ao),Ne=$e(k.body,Z,Ko);return j(),Le(t.updateMethodDeclaration(k,ie,k.asteriskToken,H,void 0,void 0,We,void 0,Ne),k)}}function ze(k){w(k);let{modifiers:ie,name:H,descriptorName:ue}=Et(k,p,He);if(ue)return j(),Le(dn(ie,H,ue),k);{let We=zn(k.parameters,Z,Ao),Ne=$e(k.body,Z,Ko);return j(),Le(t.updateGetAccessorDeclaration(k,ie,H,We,void 0,Ne),k)}}function tt(k){w(k);let{modifiers:ie,name:H,descriptorName:ue}=Et(k,p,ut);if(ue)return j(),Le(un(ie,H,ue),k);{let We=zn(k.parameters,Z,Ao),Ne=$e(k.body,Z,Ko);return j(),Le(t.updateSetAccessorDeclaration(k,ie,H,We,Ne),k)}}function Wt(k){w(k);let ie;if(_1(k))ie=Sn(k,Z,e);else if(LP(k)){let H=h;h=void 0,ie=Sn(k,Z,e),h=H}else if(k=Sn(k,Z,e),ie=k,p&&(p.hasStaticInitializers=!0,gt(p.pendingStaticInitializers))){let H=[];for(let Ne of p.pendingStaticInitializers){let It=t.createExpressionStatement(Ne);Ra(It,Wy(Ne)),H.push(It)}let ue=t.createBlock(H,!0);ie=[t.createClassStaticBlockDeclaration(ue),ie],p.pendingStaticInitializers=void 0}return j(),ie}function _t(k){pp(k,pn)&&(k=yp(e,k,Xt(k.initializer))),w(k),x.assert(!QV(k),"Not yet implemented.");let{modifiers:ie,name:H,initializersName:ue,extraInitializersName:We,descriptorName:Ne,thisArg:It}=Et(k,p,I_(k)?Ft:void 0);i();let Dt=$e(k.initializer,Z,ht);ue&&(Dt=r().createRunInitializersHelper(It??t.createThis(),ue,Dt??t.createVoidZero())),ra(k)&&p&&Dt&&(p.hasStaticInitializers=!0);let Ut=o();if(gt(Ut)&&(Dt=t.createImmediatelyInvokedArrowFunction([...Ut,t.createReturnStatement(Dt)])),p&&(ra(k)?(Dt=ke(p,!0,Dt),We&&(p.pendingStaticInitializers??(p.pendingStaticInitializers=[]),p.pendingStaticInitializers.push(r().createRunInitializersHelper(p.classThis??t.createThis(),We)))):(Dt=ke(p,!1,Dt),We&&(p.pendingInstanceInitializers??(p.pendingInstanceInitializers=[]),p.pendingInstanceInitializers.push(r().createRunInitializersHelper(t.createThis(),We))))),j(),I_(k)&&Ne){let En=C_(k),wn=Wy(k),Bn=k.name,gi=Bn,xi=Bn;if(Ya(Bn)&&!L_(Bn.expression)){let Ri=t3(Bn);if(Ri)gi=t.updateComputedPropertyName(Bn,$e(Bn.expression,Z,ht)),xi=t.updateComputedPropertyName(Bn,Ri.left);else{let Kr=t.createTempVariable(s);Ra(Kr,Bn.expression);let xo=$e(Bn.expression,Z,ht),xn=t.createAssignment(Kr,xo);Ra(xn,Bn.expression),gi=t.updateComputedPropertyName(Bn,xn),xi=t.updateComputedPropertyName(Bn,Kr)}}let er=zn(ie,Ri=>Ri.kind!==129?Ri:void 0,Sa),Fr=IH(t,k,er,Dt);xr(Fr,k),lr(Fr,3072),Ra(Fr,wn),Ra(Fr.name,k.name);let go=dn(er,gi,Ne);xr(go,k),ic(go,En),Ra(go,wn);let Pi=un(er,xi,Ne);return xr(Pi,k),lr(Pi,3072),Ra(Pi,wn),[Fr,go,Pi]}return Le(t.updatePropertyDeclaration(k,ie,H,void 0,void 0,Dt),k)}function Je(k){return h??k}function pt(k){if(ku(k.expression)&&h){let ie=$e(k.expression,Z,ht),H=zn(k.arguments,Z,ht),ue=t.createFunctionCallCall(ie,h,H);return xr(ue,k),at(ue,k),ue}return Sn(k,Z,e)}function Zt(k){if(ku(k.tag)&&h){let ie=$e(k.tag,Z,ht),H=t.createFunctionBindCall(ie,h,[]);xr(H,k),at(H,k);let ue=$e(k.template,Z,EI);return t.updateTaggedTemplateExpression(k,H,void 0,ue)}return Sn(k,Z,e)}function en(k){if(ku(k)&&Fe(k.name)&&h&&m){let ie=t.createStringLiteralFromNode(k.name),H=t.createReflectGetCall(m,ie,h);return xr(H,k.expression),at(H,k.expression),H}return Sn(k,Z,e)}function Dn(k){if(ku(k)&&h&&m){let ie=$e(k.argumentExpression,Z,ht),H=t.createReflectGetCall(m,ie,h);return xr(H,k.expression),at(H,k.expression),H}return Sn(k,Z,e)}function Kn(k){pp(k,pn)&&(k=yp(e,k,Xt(k.initializer)));let ie=t.updateParameterDeclaration(k,void 0,k.dotDotDotToken,$e(k.name,Z,sT),void 0,void 0,$e(k.initializer,Z,ht));return ie!==k&&(ic(ie,k),at(ie,R_(k)),Ra(ie,R_(k)),lr(ie.name,64)),ie}function pn(k){return Zc(k)&&!k.name&&he(k)}function Xt(k){let ie=Yl(k);return Zc(ie)&&!ie.name&&!Ny(!1,ie)}function Kt(k){return t.updateForStatement(k,$e(k.initializer,J,vf),$e(k.condition,Z,ht),$e(k.incrementor,J,ht),Tu(k.statement,Z,e))}function hi(k){return Sn(k,J,e)}function uo(k,ie){if(ky(k)){let H=kn(k.left),ue=$e(k.right,Z,ht);return t.updateBinaryExpression(k,H,k.operatorToken,ue)}if(Mc(k)){if(pp(k,pn))return k=yp(e,k,Xt(k.right)),Sn(k,Z,e);if(ku(k.left)&&h&&m){let H=Js(k.left)?$e(k.left.argumentExpression,Z,ht):Fe(k.left.name)?t.createStringLiteralFromNode(k.left.name):void 0;if(H){let ue=$e(k.right,Z,ht);if(NP(k.operatorToken.kind)){let Ne=H;L_(H)||(Ne=t.createTempVariable(s),H=t.createAssignment(Ne,H));let It=t.createReflectGetCall(m,Ne,h);xr(It,k.left),at(It,k.left),ue=t.createBinaryExpression(It,PP(k.operatorToken.kind),ue),at(ue,k)}let We=ie?void 0:t.createTempVariable(s);return We&&(ue=t.createAssignment(We,ue),at(We,k)),ue=t.createReflectSetCall(m,H,ue,h),xr(ue,k),at(ue,k),We&&(ue=t.createComma(ue,We),at(ue,k)),ue}}}if(k.operatorToken.kind===28){let H=$e(k.left,J,ht),ue=$e(k.right,ie?J:Z,ht);return t.updateBinaryExpression(k,H,k.operatorToken,ue)}return Sn(k,Z,e)}function Li(k,ie){if(k.operator===46||k.operator===47){let H=fs(k.operand);if(ku(H)&&h&&m){let ue=Js(H)?$e(H.argumentExpression,Z,ht):Fe(H.name)?t.createStringLiteralFromNode(H.name):void 0;if(ue){let We=ue;L_(ue)||(We=t.createTempVariable(s),ue=t.createAssignment(We,ue));let Ne=t.createReflectGetCall(m,We,h);xr(Ne,k),at(Ne,k);let It=ie?void 0:t.createTempVariable(s);return Ne=q4(t,k,Ne,s,It),Ne=t.createReflectSetCall(m,ue,Ne,h),xr(Ne,k),at(Ne,k),It&&(Ne=t.createComma(Ne,It),at(Ne,k)),Ne}}}return Sn(k,Z,e)}function So(k,ie){let H=ie?bw(k.elements,J):bw(k.elements,Z,J);return t.updateCommaListExpression(k,H)}function Qn(k){if(T_(k)||Ki(k)){let Ne=t.createStringLiteralFromNode(k),It=$e(k,Z,rc);return{referencedName:Ne,name:It}}if(T_(k.expression)&&!Fe(k.expression)){let Ne=t.createStringLiteralFromNode(k.expression),It=$e(k,Z,rc);return{referencedName:Ne,name:It}}let ie=t.getGeneratedNameForNode(k);s(ie);let H=r().createPropKeyHelper($e(k.expression,Z,ht)),ue=t.createAssignment(ie,H),We=t.updateComputedPropertyName(k,ae(ue));return{referencedName:ie,name:We}}function Ur(k){return Ya(k)?Er(k):$e(k,Z,rc)}function Er(k){let ie=$e(k.expression,Z,ht);return L_(ie)||(ie=ae(ie)),t.updateComputedPropertyName(k,ie)}function on(k){return pp(k,pn)&&(k=yp(e,k,Xt(k.initializer))),Sn(k,Z,e)}function Ye(k){return pp(k,pn)&&(k=yp(e,k,Xt(k.initializer))),Sn(k,Z,e)}function Ot(k){return pp(k,pn)&&(k=yp(e,k,Xt(k.initializer))),Sn(k,Z,e)}function In(k){if(Ma(k)||uu(k))return kn(k);if(ku(k)&&h&&m){let ie=Js(k)?$e(k.argumentExpression,Z,ht):Fe(k.name)?t.createStringLiteralFromNode(k.name):void 0;if(ie){let H=t.createTempVariable(void 0),ue=t.createAssignmentTargetWrapper(H,t.createReflectSetCall(m,ie,H,h));return xr(ue,k),at(ue,k),ue}}return Sn(k,Z,e)}function si(k){if(Mc(k,!0)){pp(k,pn)&&(k=yp(e,k,Xt(k.right)));let ie=In(k.left),H=$e(k.right,Z,ht);return t.updateBinaryExpression(k,ie,k.operatorToken,H)}else return In(k)}function yi(k){if(Yu(k.expression)){let ie=In(k.expression);return t.updateSpreadElement(k,ie)}return Sn(k,Z,e)}function $i(k){return x.assertNode(k,o2),Jm(k)?yi(k):jc(k)?Sn(k,Z,e):si(k)}function Io(k){let ie=$e(k.name,Z,rc);if(Mc(k.initializer,!0)){let H=si(k.initializer);return t.updatePropertyAssignment(k,ie,H)}if(Yu(k.initializer)){let H=In(k.initializer);return t.updatePropertyAssignment(k,ie,H)}return Sn(k,Z,e)}function ua(k){return pp(k,pn)&&(k=yp(e,k,Xt(k.objectAssignmentInitializer))),Sn(k,Z,e)}function Ba(k){if(Yu(k.expression)){let ie=In(k.expression);return t.updateSpreadAssignment(k,ie)}return Sn(k,Z,e)}function vn(k){return x.assertNode(k,i2),By(k)?Ba(k):Zu(k)?ua(k):mc(k)?Io(k):Sn(k,Z,e)}function kn(k){if(uu(k)){let ie=zn(k.elements,$i,ht);return t.updateArrayLiteralExpression(k,ie)}else{let ie=zn(k.properties,vn,Pg);return t.updateObjectLiteralExpression(k,ie)}}function Be(k){return pp(k,pn)&&(k=yp(e,k,Xt(k.expression))),Sn(k,Z,e)}function ct(k,ie){let H=ie?J:Z,ue=$e(k.expression,H,ht);return t.updateParenthesizedExpression(k,ue)}function lt(k,ie){let H=ie?J:Z,ue=$e(k.expression,H,ht);return t.updatePartiallyEmittedExpression(k,ue)}function Rt(k,ie){return gt(k)&&(ie?Ou(ie)?(k.push(ie.expression),ie=t.updateParenthesizedExpression(ie,t.inlineExpressions(k))):(k.push(ie),ie=t.inlineExpressions(k)):ie=t.inlineExpressions(k)),ie}function ae(k){let ie=Rt(y,k);return x.assertIsDefined(ie),ie!==k&&(y=void 0),ie}function ke(k,ie,H){let ue=Rt(ie?k.pendingStaticInitializers:k.pendingInstanceInitializers,H);return ue!==H&&(ie?k.pendingStaticInitializers=void 0:k.pendingInstanceInitializers=void 0),ue}function st(k){if(!k)return;let ie=[];return Hr(ie,mn(k.decorators,G)),ie}function G(k){let ie=$e(k.expression,Z,ht);lr(ie,3072);let H=Yl(ie);if(Ns(H)){let{target:ue,thisArg:We}=t.createCallBinding(ie,s,l,!0);return t.restoreOuterExpressions(ie,t.createFunctionBindCall(ue,We,[]))}return ie}function et(k,ie,H,ue,We,Ne,It){let Dt=t.createFunctionExpression(H,ue,void 0,void 0,Ne,void 0,It??t.createBlock([]));xr(Dt,k),Ra(Dt,wg(k)),lr(Dt,3072);let Ut=We==="get"||We==="set"?We:void 0,En=t.createStringLiteralFromNode(ie,void 0),wn=r().createSetFunctionNameHelper(Dt,En,Ut),Bn=t.createPropertyAssignment(t.createIdentifier(We),wn);return xr(Bn,k),Ra(Bn,wg(k)),lr(Bn,3072),Bn}function Tt(k,ie){return t.createObjectLiteralExpression([et(k,k.name,ie,k.asteriskToken,"value",zn(k.parameters,Z,Ao),$e(k.body,Z,Ko))])}function He(k,ie){return t.createObjectLiteralExpression([et(k,k.name,ie,void 0,"get",[],$e(k.body,Z,Ko))])}function ut(k,ie){return t.createObjectLiteralExpression([et(k,k.name,ie,void 0,"set",zn(k.parameters,Z,Ao),$e(k.body,Z,Ko))])}function Ft(k,ie){return t.createObjectLiteralExpression([et(k,k.name,ie,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(k.name)))])),et(k,k.name,ie,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(k.name)),t.createIdentifier("value")))]))])}function hn(k,ie,H){return k=zn(k,ue=>qI(ue)?ue:void 0,Sa),t.createGetAccessorDeclaration(k,ie,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(H,t.createIdentifier("value")))]))}function dn(k,ie,H){return k=zn(k,ue=>qI(ue)?ue:void 0,Sa),t.createGetAccessorDeclaration(k,ie,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(H,t.createIdentifier("get")),t.createThis(),[]))]))}function un(k,ie,H){return k=zn(k,ue=>qI(ue)?ue:void 0,Sa),t.createSetAccessorDeclaration(k,ie,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(H,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function U(k,ie){let H=t.createVariableDeclaration(k,void 0,void 0,t.createConditionalExpression(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("Symbol"),"function"),t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),t.createToken(58),t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[ie?Nt(ie):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([H],2))}function Me(k,ie){let H=t.createObjectDefinePropertyCall(k,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:ie},!0));return lr(t.createIfStatement(ie,t.createExpressionStatement(H)),1)}function Nt(k){return t.createBinaryExpression(t.createElementAccessExpression(k,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}var z9e=bt({"src/compiler/transformers/esDecorators.ts"(){"use strict";ea()}});function hle(e){let{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),d=e.getCompilerOptions(),p=ns(d),h,m=0,y,E,S,A,N=[],D=0,w=e.onEmitNode,j=e.onSubstituteNode;return e.onEmitNode=hi,e.onSubstituteNode=uo,Im(e,K);function K(Ye){if(Ye.isDeclarationFile)return Ye;Y(1,!1),Y(2,!$V(Ye,d));let Ot=Sn(Ye,q,e);return Fg(Ot,e.readEmitHelpers()),Ot}function Y(Ye,Ot){D=Ot?D|Ye:D&~Ye}function B(Ye){return(D&Ye)!==0}function ce(){return!B(1)}function z(){return B(2)}function Z(Ye,Ot,In){let si=Ye&~D;if(si){Y(si,!0);let yi=Ot(In);return Y(si,!1),yi}return Ot(In)}function me(Ye){return Sn(Ye,q,e)}function ge(Ye){switch(Ye.kind){case 218:case 262:case 174:case 177:case 178:case 176:return Ye;case 169:case 208:case 260:break;case 80:if(A&&l.isArgumentsLocalBinding(Ye))return A;break}return Sn(Ye,ge,e)}function q(Ye){if(!(Ye.transformFlags&256))return A?ge(Ye):Ye;switch(Ye.kind){case 134:return;case 223:return he(Ye);case 174:return Z(3,Ge,Ye);case 262:return Z(3,De,Ye);case 218:return Z(3,Le,Ye);case 219:return Z(1,Et,Ye);case 211:return E&&kr(Ye)&&Ye.expression.kind===108&&E.add(Ye.name.escapedText),Sn(Ye,q,e);case 212:return E&&Ye.expression.kind===108&&(S=!0),Sn(Ye,q,e);case 177:return Z(3,ve,Ye);case 178:return Z(3,Ae,Ye);case 176:return Z(3,Ce,Ye);case 263:case 231:return Z(3,me,Ye);default:return Sn(Ye,q,e)}}function J(Ye){if(hie(Ye))switch(Ye.kind){case 243:return pe(Ye);case 248:return ne(Ye);case 249:return xe(Ye);case 250:return fe(Ye);case 299:return re(Ye);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return Sn(Ye,J,e);default:return x.assertNever(Ye,"Unhandled node.")}return q(Ye)}function re(Ye){let Ot=new Set;be(Ye.variableDeclaration,Ot);let In;if(Ot.forEach((si,yi)=>{y.has(yi)&&(In||(In=new Set(y)),In.delete(yi))}),In){let si=y;y=In;let yi=Sn(Ye,J,e);return y=si,yi}else return Sn(Ye,J,e)}function pe(Ye){if(ze(Ye.declarationList)){let Ot=tt(Ye.declarationList,!1);return Ot?t.createExpressionStatement(Ot):void 0}return Sn(Ye,q,e)}function xe(Ye){return t.updateForInStatement(Ye,ze(Ye.initializer)?tt(Ye.initializer,!0):x.checkDefined($e(Ye.initializer,q,vf)),x.checkDefined($e(Ye.expression,q,ht)),Tu(Ye.statement,J,e))}function fe(Ye){return t.updateForOfStatement(Ye,$e(Ye.awaitModifier,q,ZU),ze(Ye.initializer)?tt(Ye.initializer,!0):x.checkDefined($e(Ye.initializer,q,vf)),x.checkDefined($e(Ye.expression,q,ht)),Tu(Ye.statement,J,e))}function ne(Ye){let Ot=Ye.initializer;return t.updateForStatement(Ye,ze(Ot)?tt(Ot,!1):$e(Ye.initializer,q,vf),$e(Ye.condition,q,ht),$e(Ye.incrementor,q,ht),Tu(Ye.statement,J,e))}function he(Ye){return ce()?Sn(Ye,q,e):xr(at(t.createYieldExpression(void 0,$e(Ye.expression,q,ht)),Ye),Ye)}function Ce(Ye){let Ot=A;A=void 0;let In=t.updateConstructorDeclaration(Ye,zn(Ye.modifiers,q,Sa),Il(Ye.parameters,q,e),Zt(Ye));return A=Ot,In}function Ge(Ye){let Ot,In=Vc(Ye),si=A;A=void 0;let yi=t.updateMethodDeclaration(Ye,zn(Ye.modifiers,q,il),Ye.asteriskToken,Ye.name,void 0,void 0,Ot=In&2?Dn(Ye):Il(Ye.parameters,q,e),void 0,In&2?Kn(Ye,Ot):Zt(Ye));return A=si,yi}function ve(Ye){let Ot=A;A=void 0;let In=t.updateGetAccessorDeclaration(Ye,zn(Ye.modifiers,q,il),Ye.name,Il(Ye.parameters,q,e),void 0,Zt(Ye));return A=Ot,In}function Ae(Ye){let Ot=A;A=void 0;let In=t.updateSetAccessorDeclaration(Ye,zn(Ye.modifiers,q,il),Ye.name,Il(Ye.parameters,q,e),Zt(Ye));return A=Ot,In}function De(Ye){let Ot,In=A;A=void 0;let si=Vc(Ye),yi=t.updateFunctionDeclaration(Ye,zn(Ye.modifiers,q,il),Ye.asteriskToken,Ye.name,void 0,Ot=si&2?Dn(Ye):Il(Ye.parameters,q,e),void 0,si&2?Kn(Ye,Ot):nf(Ye.body,q,e));return A=In,yi}function Le(Ye){let Ot,In=A;A=void 0;let si=Vc(Ye),yi=t.updateFunctionExpression(Ye,zn(Ye.modifiers,q,Sa),Ye.asteriskToken,Ye.name,void 0,Ot=si&2?Dn(Ye):Il(Ye.parameters,q,e),void 0,si&2?Kn(Ye,Ot):nf(Ye.body,q,e));return A=In,yi}function Et(Ye){let Ot,In=Vc(Ye);return t.updateArrowFunction(Ye,zn(Ye.modifiers,q,Sa),void 0,Ot=In&2?Dn(Ye):Il(Ye.parameters,q,e),void 0,Ye.equalsGreaterThanToken,In&2?Kn(Ye,Ot):nf(Ye.body,q,e))}function be({name:Ye},Ot){if(Fe(Ye))Ot.add(Ye.escapedText);else for(let In of Ye.elements)jc(In)||be(In,Ot)}function ze(Ye){return!!Ye&&Uc(Ye)&&!(Ye.flags&7)&&Ye.declarations.some(pt)}function tt(Ye,Ot){Wt(Ye);let In=wN(Ye);return In.length===0?Ot?$e(t.converters.convertToAssignmentElementTarget(Ye.declarations[0].name),q,ht):void 0:t.inlineExpressions(mn(In,Je))}function Wt(Ye){gn(Ye.declarations,_t)}function _t({name:Ye}){if(Fe(Ye))s(Ye);else for(let Ot of Ye.elements)jc(Ot)||_t(Ot)}function Je(Ye){let Ot=Ra(t.createAssignment(t.converters.convertToAssignmentElementTarget(Ye.name),Ye.initializer),Ye);return x.checkDefined($e(Ot,q,ht))}function pt({name:Ye}){if(Fe(Ye))return y.has(Ye.escapedText);for(let Ot of Ye.elements)if(!jc(Ot)&&pt(Ot))return!0;return!1}function Zt(Ye){x.assertIsDefined(Ye.body);let Ot=E,In=S;E=new Set,S=!1;let si=nf(Ye.body,q,e),yi=Nl(Ye,ws);if(p>=2&&l.getNodeCheckFlags(Ye)&384&&(Vc(yi)&3)!==3){if(Kt(),E.size){let Io=U3(t,l,Ye,E);N[rs(Io)]=!0;let ua=si.statements.slice();Jh(ua,[Io]),si=t.updateBlock(si,ua)}S&&(l.getNodeCheckFlags(Ye)&256?VI(si,Ck):l.getNodeCheckFlags(Ye)&128&&VI(si,Dk))}return E=Ot,S=In,si}function en(){x.assert(A);let Ye=t.createVariableDeclaration(A,void 0,void 0,t.createIdentifier("arguments")),Ot=t.createVariableStatement(void 0,[Ye]);return Jd(Ot),D_(Ot,2097152),Ot}function Dn(Ye){if(Sw(Ye.parameters))return Il(Ye.parameters,q,e);let Ot=[];for(let si of Ye.parameters){if(si.initializer||si.dotDotDotToken){if(Ye.kind===219){let $i=t.createParameterDeclaration(void 0,t.createToken(26),t.createUniqueName("args",8));Ot.push($i)}break}let yi=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(si.name,8));Ot.push(yi)}let In=t.createNodeArray(Ot);return at(In,Ye.parameters),In}function Kn(Ye,Ot){let In=Sw(Ye.parameters)?void 0:Il(Ye.parameters,q,e);i();let yi=Nl(Ye,$o).type,$i=p<2?Xt(yi):void 0,Io=Ye.kind===219,ua=A,vn=(l.getNodeCheckFlags(Ye)&512)!==0&&!A;vn&&(A=t.createUniqueName("arguments"));let kn;if(In)if(Io){let st=[];x.assert(Ot.length<=Ye.parameters.length);for(let G=0;G=2&&l.getNodeCheckFlags(Ye)&384;if(G&&(Kt(),E.size)){let Tt=U3(t,l,Ye,E);N[rs(Tt)]=!0,Jh(st,[Tt])}vn&&Jh(st,[en()]);let et=t.createBlock(st,!0);at(et,Ye.body),G&&S&&(l.getNodeCheckFlags(Ye)&256?VI(et,Ck):l.getNodeCheckFlags(Ye)&128&&VI(et,Dk)),ke=et}return y=Be,Io||(E=ct,S=lt,A=ua),ke}function pn(Ye,Ot){return Ko(Ye)?t.updateBlock(Ye,zn(Ye.statements,J,Hi,Ot)):t.converters.convertToFunctionBlock(x.checkDefined($e(Ye,J,pF)))}function Xt(Ye){let Ot=Ye&&A2(Ye);if(Ot&&Xu(Ot)){let In=l.getTypeReferenceSerializationKind(Ot);if(In===1||In===0)return Ot}}function Kt(){h&1||(h|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function hi(Ye,Ot,In){if(h&1&&Er(Ot)){let si=l.getNodeCheckFlags(Ot)&384;if(si!==m){let yi=m;m=si,w(Ye,Ot,In),m=yi;return}}else if(h&&N[rs(Ot)]){let si=m;m=0,w(Ye,Ot,In),m=si;return}w(Ye,Ot,In)}function uo(Ye,Ot){return Ot=j(Ye,Ot),Ye===1&&m?Li(Ot):Ot}function Li(Ye){switch(Ye.kind){case 211:return So(Ye);case 212:return Qn(Ye);case 213:return Ur(Ye)}return Ye}function So(Ye){return Ye.expression.kind===108?at(t.createPropertyAccessExpression(t.createUniqueName("_super",48),Ye.name),Ye):Ye}function Qn(Ye){return Ye.expression.kind===108?on(Ye.argumentExpression,Ye):Ye}function Ur(Ye){let Ot=Ye.expression;if(ku(Ot)){let In=kr(Ot)?So(Ot):Qn(Ot);return t.createCallExpression(t.createPropertyAccessExpression(In,"call"),void 0,[t.createThis(),...Ye.arguments])}return Ye}function Er(Ye){let Ot=Ye.kind;return Ot===263||Ot===176||Ot===174||Ot===177||Ot===178}function on(Ye,Ot){return m&256?at(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[Ye]),"value"),Ot):at(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[Ye]),Ot)}}function U3(e,t,r,i){let o=(t.getNodeCheckFlags(r)&256)!==0,s=[];return i.forEach((l,d)=>{let p=Vi(d),h=[];h.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,lr(e.createPropertyAccessExpression(lr(e.createSuper(),8),p),8)))),o&&h.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(lr(e.createPropertyAccessExpression(lr(e.createSuper(),8),p),8),e.createIdentifier("v"))))),s.push(e.createPropertyAssignment(p,e.createObjectLiteralExpression(h)))}),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createUniqueName("_super",48),void 0,void 0,e.createCallExpression(e.createPropertyAccessExpression(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteralExpression(s,!0)]))],2))}var B9e=bt({"src/compiler/transformers/es2017.ts"(){"use strict";ea()}});function gle(e){let{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),d=e.getCompilerOptions(),p=ns(d),h=e.onEmitNode;e.onEmitNode=ua;let m=e.onSubstituteNode;e.onSubstituteNode=Ba;let y=!1,E,S,A,N=0,D=0,w,j,K,Y,B=[];return Im(e,ge);function ce(ae,ke){return D!==(D&~ae|ke)}function z(ae,ke){let st=D;return D=(D&~ae|ke)&3,st}function Z(ae){D=ae}function me(ae){j=Tn(j,t.createVariableDeclaration(ae))}function ge(ae){if(ae.isDeclarationFile)return ae;w=ae;let ke=Et(ae);return Fg(ke,e.readEmitHelpers()),w=void 0,j=void 0,ke}function q(ae){return fe(ae,!1)}function J(ae){return fe(ae,!0)}function re(ae){if(ae.kind!==134)return ae}function pe(ae,ke,st,G){if(ce(st,G)){let et=z(st,G),Tt=ae(ke);return Z(et),Tt}return ae(ke)}function xe(ae){return Sn(ae,q,e)}function fe(ae,ke){if(!(ae.transformFlags&128))return ae;switch(ae.kind){case 223:return ne(ae);case 229:return he(ae);case 253:return Ce(ae);case 256:return Ge(ae);case 210:return Ae(ae);case 226:return ze(ae,ke);case 361:return tt(ae,ke);case 299:return Wt(ae);case 243:return _t(ae);case 260:return Je(ae);case 246:case 247:case 249:return pe(xe,ae,0,2);case 250:return Dn(ae,void 0);case 248:return pe(Zt,ae,0,2);case 222:return en(ae);case 176:return pe(So,ae,2,1);case 174:return pe(Er,ae,2,1);case 177:return pe(Qn,ae,2,1);case 178:return pe(Ur,ae,2,1);case 262:return pe(on,ae,2,1);case 218:return pe(Ot,ae,2,1);case 219:return pe(Ye,ae,2,0);case 169:return uo(ae);case 244:return De(ae);case 217:return Le(ae,ke);case 215:return be(ae);case 211:return K&&kr(ae)&&ae.expression.kind===108&&K.add(ae.name.escapedText),Sn(ae,q,e);case 212:return K&&ae.expression.kind===108&&(Y=!0),Sn(ae,q,e);case 263:case 231:return pe(xe,ae,2,1);default:return Sn(ae,q,e)}}function ne(ae){return S&2&&S&1?xr(at(t.createYieldExpression(void 0,r().createAwaitHelper($e(ae.expression,q,ht))),ae),ae):Sn(ae,q,e)}function he(ae){if(S&2&&S&1){if(ae.asteriskToken){let ke=$e(x.checkDefined(ae.expression),q,ht);return xr(at(t.createYieldExpression(void 0,r().createAwaitHelper(t.updateYieldExpression(ae,ae.asteriskToken,at(r().createAsyncDelegatorHelper(at(r().createAsyncValuesHelper(ke),ke)),ke)))),ae),ae)}return xr(at(t.createYieldExpression(void 0,Xt(ae.expression?$e(ae.expression,q,ht):t.createVoidZero())),ae),ae)}return Sn(ae,q,e)}function Ce(ae){return S&2&&S&1?t.updateReturnStatement(ae,Xt(ae.expression?$e(ae.expression,q,ht):t.createVoidZero())):Sn(ae,q,e)}function Ge(ae){if(S&2){let ke=sj(ae);return ke.kind===250&&ke.awaitModifier?Dn(ke,ae):t.restoreEnclosingLabel($e(ke,q,Hi,t.liftToBlock),ae)}return Sn(ae,q,e)}function ve(ae){let ke,st=[];for(let G of ae)if(G.kind===305){ke&&(st.push(t.createObjectLiteralExpression(ke)),ke=void 0);let et=G.expression;st.push($e(et,q,ht))}else ke=Tn(ke,G.kind===303?t.createPropertyAssignment(G.name,$e(G.initializer,q,ht)):$e(G,q,Pg));return ke&&st.push(t.createObjectLiteralExpression(ke)),st}function Ae(ae){if(ae.transformFlags&65536){let ke=ve(ae.properties);ke.length&&ke[0].kind!==210&&ke.unshift(t.createObjectLiteralExpression());let st=ke[0];if(ke.length>1){for(let G=1;G=2&&l.getNodeCheckFlags(ae)&384;if(ut){Io();let hn=U3(t,l,ae,K);B[rs(hn)]=!0,Jh(et,[hn])}et.push(He);let Ft=t.updateBlock(ae.body,et);return ut&&Y&&(l.getNodeCheckFlags(ae)&256?VI(Ft,Ck):l.getNodeCheckFlags(ae)&128&&VI(Ft,Dk)),K=st,Y=G,Ft}function yi(ae){i();let ke=0,st=[],G=$e(ae.body,q,pF)??t.createBlock([]);Ko(G)&&(ke=t.copyPrologue(G.statements,st,!1,q)),Hr(st,$i(void 0,ae));let et=o();if(ke>0||gt(st)||gt(et)){let Tt=t.converters.convertToFunctionBlock(G,!0);return Jh(st,et),Hr(st,Tt.statements.slice(ke)),t.updateBlock(Tt,at(t.createNodeArray(st),Tt.statements))}return G}function $i(ae,ke){let st=!1;for(let G of ke.parameters)if(st){if(Qo(G.name)){if(G.name.elements.length>0){let et=nS(G,q,e,0,t.getGeneratedNameForNode(G));if(gt(et)){let Tt=t.createVariableDeclarationList(et),He=t.createVariableStatement(void 0,Tt);lr(He,2097152),ae=Tn(ae,He)}}else if(G.initializer){let et=t.getGeneratedNameForNode(G),Tt=$e(G.initializer,q,ht),He=t.createAssignment(et,Tt),ut=t.createExpressionStatement(He);lr(ut,2097152),ae=Tn(ae,ut)}}else if(G.initializer){let et=t.cloneNode(G.name);at(et,G.name),lr(et,96);let Tt=$e(G.initializer,q,ht);D_(Tt,3168);let He=t.createAssignment(et,Tt);at(He,G),lr(He,3072);let ut=t.createBlock([t.createExpressionStatement(He)]);at(ut,G),lr(ut,3905);let Ft=t.createTypeCheck(t.cloneNode(G.name),"undefined"),hn=t.createIfStatement(Ft,ut);Jd(hn),at(hn,G),lr(hn,2101056),ae=Tn(ae,hn)}}else if(G.transformFlags&65536){st=!0;let et=nS(G,q,e,1,t.getGeneratedNameForNode(G),!1,!0);if(gt(et)){let Tt=t.createVariableDeclarationList(et),He=t.createVariableStatement(void 0,Tt);lr(He,2097152),ae=Tn(ae,He)}}return ae}function Io(){E&1||(E|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function ua(ae,ke,st){if(E&1&<(ke)){let G=l.getNodeCheckFlags(ke)&384;if(G!==N){let et=N;N=G,h(ae,ke,st),N=et;return}}else if(E&&B[rs(ke)]){let G=N;N=0,h(ae,ke,st),N=G;return}h(ae,ke,st)}function Ba(ae,ke){return ke=m(ae,ke),ae===1&&N?vn(ke):ke}function vn(ae){switch(ae.kind){case 211:return kn(ae);case 212:return Be(ae);case 213:return ct(ae)}return ae}function kn(ae){return ae.expression.kind===108?at(t.createPropertyAccessExpression(t.createUniqueName("_super",48),ae.name),ae):ae}function Be(ae){return ae.expression.kind===108?Rt(ae.argumentExpression,ae):ae}function ct(ae){let ke=ae.expression;if(ku(ke)){let st=kr(ke)?kn(ke):Be(ke);return t.createCallExpression(t.createPropertyAccessExpression(st,"call"),void 0,[t.createThis(),...ae.arguments])}return ae}function lt(ae){let ke=ae.kind;return ke===263||ke===176||ke===174||ke===177||ke===178}function Rt(ae,ke){return N&256?at(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[ae]),"value"),ke):at(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[ae]),ke)}}var G9e=bt({"src/compiler/transformers/es2018.ts"(){"use strict";ea()}});function yle(e){let t=e.factory;return Im(e,r);function r(s){return s.isDeclarationFile?s:Sn(s,i,e)}function i(s){if(!(s.transformFlags&64))return s;switch(s.kind){case 299:return o(s);default:return Sn(s,i,e)}}function o(s){return s.variableDeclaration?Sn(s,i,e):t.updateCatchClause(s,t.createVariableDeclaration(t.createTempVariable(void 0)),$e(s.block,i,Ko))}}var V9e=bt({"src/compiler/transformers/es2019.ts"(){"use strict";ea()}});function vle(e){let{factory:t,hoistVariableDeclaration:r}=e;return Im(e,i);function i(A){return A.isDeclarationFile?A:Sn(A,o,e)}function o(A){if(!(A.transformFlags&32))return A;switch(A.kind){case 213:{let N=p(A,!1);return x.assertNotNode(N,r1),N}case 211:case 212:if(Ud(A)){let N=m(A,!1,!1);return x.assertNotNode(N,r1),N}return Sn(A,o,e);case 226:return A.operatorToken.kind===61?E(A):Sn(A,o,e);case 220:return S(A);default:return Sn(A,o,e)}}function s(A){x.assertNotNode(A,sF);let N=[A];for(;!A.questionDotToken&&!U0(A);)A=na(gm(A.expression),Ud),x.assertNotNode(A,sF),N.unshift(A);return{expression:A.expression,chain:N}}function l(A,N,D){let w=h(A.expression,N,D);return r1(w)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(A,w.expression),w.thisArg):t.updateParenthesizedExpression(A,w)}function d(A,N,D){if(Ud(A))return m(A,N,D);let w=$e(A.expression,o,ht);x.assertNotNode(w,r1);let j;return N&&(tS(w)?j=w:(j=t.createTempVariable(r),w=t.createAssignment(j,w))),w=A.kind===211?t.updatePropertyAccessExpression(A,w,$e(A.name,o,Fe)):t.updateElementAccessExpression(A,w,$e(A.argumentExpression,o,ht)),j?t.createSyntheticReferenceExpression(w,j):w}function p(A,N){if(Ud(A))return m(A,N,!1);if(Ou(A.expression)&&Ud(fs(A.expression))){let D=l(A.expression,!0,!1),w=zn(A.arguments,o,ht);return r1(D)?at(t.createFunctionCallCall(D.expression,D.thisArg,w),A):t.updateCallExpression(A,D,void 0,w)}return Sn(A,o,e)}function h(A,N,D){switch(A.kind){case 217:return l(A,N,D);case 211:case 212:return d(A,N,D);case 213:return p(A,N);default:return $e(A,o,ht)}}function m(A,N,D){let{expression:w,chain:j}=s(A),K=h(gm(w),oT(j[0]),!1),Y=r1(K)?K.thisArg:void 0,B=r1(K)?K.expression:K,ce=t.restoreOuterExpressions(w,B,8);tS(B)||(B=t.createTempVariable(r),ce=t.createAssignment(B,ce));let z=B,Z;for(let ge=0;gefe&&Hr(ne,zn(pe.statements,y,Hi,fe,he-fe));break}he++}x.assert(heD(ne,fe))))],fe,xe===2)}return Sn(pe,y,e)}function j(pe,xe,fe,ne,he){let Ce=[];for(let Ae=xe;Aet&&(t=i)}return t}function K9e(e){let t=0;for(let r of e){let i=zK(r.statements);if(i===2)return 2;i>t&&(t=i)}return t}var J9e=bt({"src/compiler/transformers/esnext.ts"(){"use strict";ea()}});function Ile(e){let{factory:t,getEmitHelperFactory:r}=e,i=e.getCompilerOptions(),o,s;return Im(e,y);function l(){if(s.filenameDeclaration)return s.filenameDeclaration.name;let be=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(o.fileName));return s.filenameDeclaration=be,s.filenameDeclaration.name}function d(be){return i.jsx===5?"jsxDEV":be?"jsxs":"jsx"}function p(be){let ze=d(be);return m(ze)}function h(){return m("Fragment")}function m(be){var ze,tt;let Wt=be==="createElement"?s.importSpecifier:C6(s.importSpecifier,i),_t=(tt=(ze=s.utilizedImplicitRuntimeImports)==null?void 0:ze.get(Wt))==null?void 0:tt.get(be);if(_t)return _t.name;s.utilizedImplicitRuntimeImports||(s.utilizedImplicitRuntimeImports=new Map);let Je=s.utilizedImplicitRuntimeImports.get(Wt);Je||(Je=new Map,s.utilizedImplicitRuntimeImports.set(Wt,Je));let pt=t.createUniqueName(`_${be}`,112),Zt=t.createImportSpecifier(!1,t.createIdentifier(be),pt);return $oe(pt,Zt),Je.set(be,Zt),pt}function y(be){if(be.isDeclarationFile)return be;o=be,s={},s.importSpecifier=D6(i,be);let ze=Sn(be,E,e);Fg(ze,e.readEmitHelpers());let tt=ze.statements;if(s.filenameDeclaration&&(tt=uT(tt.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([s.filenameDeclaration],2)))),s.utilizedImplicitRuntimeImports){for(let[Wt,_t]of Wo(s.utilizedImplicitRuntimeImports.entries()))if(oc(be)){let Je=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(Wo(_t.values()))),t.createStringLiteral(Wt),void 0);Bv(Je,!1),tt=uT(tt.slice(),Je)}else if(wp(be)){let Je=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(Wo(_t.values(),pt=>t.createBindingElement(void 0,pt.propertyName,pt.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(Wt)]))],2));Bv(Je,!1),tt=uT(tt.slice(),Je)}}return tt!==ze.statements&&(ze=t.updateSourceFile(ze,tt)),s=void 0,ze}function E(be){return be.transformFlags&2?S(be):be}function S(be){switch(be.kind){case 284:return j(be,!1);case 285:return K(be,!1);case 288:return Y(be,!1);case 294:return Et(be);default:return Sn(be,E,e)}}function A(be){switch(be.kind){case 12:return he(be);case 294:return Et(be);case 284:return j(be,!0);case 285:return K(be,!0);case 288:return Y(be,!0);default:return x.failBadSyntaxKind(be)}}function N(be){return be.properties.some(ze=>mc(ze)&&(Fe(ze.name)&&gr(ze.name)==="__proto__"||Da(ze.name)&&ze.name.text==="__proto__"))}function D(be){let ze=!1;for(let tt of be.attributes.properties)if(o1(tt)&&(!Ma(tt.expression)||tt.expression.properties.some(By)))ze=!0;else if(ze&&M_(tt)&&Fe(tt.name)&&tt.name.escapedText==="key")return!0;return!1}function w(be){return s.importSpecifier===void 0||D(be)}function j(be,ze){return(w(be.openingElement)?me:z)(be.openingElement,be.children,ze,be)}function K(be,ze){return(w(be)?me:z)(be,void 0,ze,be)}function Y(be,ze){return(s.importSpecifier===void 0?q:ge)(be.openingFragment,be.children,ze,be)}function B(be){let ze=ce(be);return ze&&t.createObjectLiteralExpression([ze])}function ce(be){let ze=lR(be);if(Nn(ze)===1&&!ze[0].dotDotDotToken){let Wt=A(ze[0]);return Wt&&t.createPropertyAssignment("children",Wt)}let tt=to(be,A);return Nn(tt)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(tt)):void 0}function z(be,ze,tt,Wt){let _t=De(be),Je=ze&&ze.length?ce(ze):void 0,pt=Vr(be.attributes.properties,Dn=>!!Dn.name&&Fe(Dn.name)&&Dn.name.escapedText==="key"),Zt=pt?jr(be.attributes.properties,Dn=>Dn!==pt):be.attributes.properties,en=Nn(Zt)?re(Zt,Je):t.createObjectLiteralExpression(Je?[Je]:Xe);return Z(_t,en,pt,ze||Xe,tt,Wt)}function Z(be,ze,tt,Wt,_t,Je){var pt;let Zt=lR(Wt),en=Nn(Zt)>1||!!((pt=Zt[0])!=null&&pt.dotDotDotToken),Dn=[be,ze];if(tt&&Dn.push(ne(tt.initializer)),i.jsx===5){let pn=Nl(o);if(pn&&Yi(pn)){tt===void 0&&Dn.push(t.createVoidZero()),Dn.push(en?t.createTrue():t.createFalse());let Xt=hs(pn,Je.pos);Dn.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",l()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(Xt.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(Xt.character+1))])),Dn.push(t.createThis())}}let Kn=at(t.createCallExpression(p(en),void 0,Dn),Je);return _t&&Jd(Kn),Kn}function me(be,ze,tt,Wt){let _t=De(be),Je=be.attributes.properties,pt=Nn(Je)?re(Je):t.createNull(),Zt=s.importSpecifier===void 0?_H(t,e.getEmitResolver().getJsxFactoryEntity(o),i.reactNamespace,be):m("createElement"),en=Rae(t,Zt,_t,pt,to(ze,A),Wt);return tt&&Jd(en),en}function ge(be,ze,tt,Wt){let _t;if(ze&&ze.length){let Je=B(ze);Je&&(_t=Je)}return Z(h(),_t||t.createObjectLiteralExpression([]),void 0,ze,tt,Wt)}function q(be,ze,tt,Wt){let _t=Dae(t,e.getEmitResolver().getJsxFactoryEntity(o),e.getEmitResolver().getJsxFragmentFactoryEntity(o),i.reactNamespace,to(ze,A),be,Wt);return tt&&Jd(_t),_t}function J(be){return Ma(be.expression)&&!N(be.expression)?Pc(be.expression.properties,ze=>x.checkDefined($e(ze,E,Pg))):t.createSpreadAssignment(x.checkDefined($e(be.expression,E,ht)))}function re(be,ze){let tt=ns(i);return tt&&tt>=5?t.createObjectLiteralExpression(pe(be,ze)):xe(be,ze)}function pe(be,ze){let tt=pm(MG(be,o1,(Wt,_t)=>pm(mn(Wt,Je=>_t?J(Je):fe(Je)))));return ze&&tt.push(ze),tt}function xe(be,ze){let tt=[],Wt=[];for(let Je of be){if(o1(Je)){if(Ma(Je.expression)&&!N(Je.expression)){for(let pt of Je.expression.properties){if(By(pt)){_t(),tt.push(x.checkDefined($e(pt.expression,E,ht)));continue}Wt.push(x.checkDefined($e(pt,E)))}continue}_t(),tt.push(x.checkDefined($e(Je.expression,E,ht)));continue}Wt.push(fe(Je))}return ze&&Wt.push(ze),_t(),tt.length&&!Ma(tt[0])&&tt.unshift(t.createObjectLiteralExpression()),nh(tt)||r().createAssignHelper(tt);function _t(){Wt.length&&(tt.push(t.createObjectLiteralExpression(Wt)),Wt=[])}}function fe(be){let ze=Le(be),tt=ne(be.initializer);return t.createPropertyAssignment(ze,tt)}function ne(be){if(be===void 0)return t.createTrue();if(be.kind===11){let ze=be.singleQuote!==void 0?be.singleQuote:!JF(be,o),tt=t.createStringLiteral(Ae(be.text)||be.text,ze);return at(tt,be)}return be.kind===294?be.expression===void 0?t.createTrue():x.checkDefined($e(be.expression,E,ht)):ig(be)?j(be,!1):OT(be)?K(be,!1):J0(be)?Y(be,!1):x.failBadSyntaxKind(be)}function he(be){let ze=Ce(be.text);return ze===void 0?void 0:t.createStringLiteral(ze)}function Ce(be){let ze,tt=0,Wt=-1;for(let _t=0;_t{if(Je)return Px(parseInt(Je,10));if(pt)return Px(parseInt(pt,16));{let en=WIe.get(Zt);return en?Px(en):ze}})}function Ae(be){let ze=ve(be);return ze===be?void 0:ze}function De(be){if(be.kind===284)return De(be.openingElement);{let ze=be.tagName;return Fe(ze)&&dR(ze.escapedText)?t.createStringLiteral(gr(ze)):qm(ze)?t.createStringLiteral(gr(ze.namespace)+":"+gr(ze.name)):Gk(t,ze)}}function Le(be){let ze=be.name;if(Fe(ze)){let tt=gr(ze);return/^[A-Za-z_]\w*$/.test(tt)?ze:t.createStringLiteral(tt)}return t.createStringLiteral(gr(ze.namespace)+":"+gr(ze.name))}function Et(be){let ze=$e(be.expression,E,ht);return be.dotDotDotToken?t.createSpreadElement(ze):ze}}var WIe,q9e=bt({"src/compiler/transformers/jsx.ts"(){"use strict";ea(),WIe=new Map(Object.entries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}))}});function xle(e){let{factory:t,hoistVariableDeclaration:r}=e;return Im(e,i);function i(p){return p.isDeclarationFile?p:Sn(p,o,e)}function o(p){if(!(p.transformFlags&512))return p;switch(p.kind){case 226:return s(p);default:return Sn(p,o,e)}}function s(p){switch(p.operatorToken.kind){case 68:return l(p);case 43:return d(p);default:return Sn(p,o,e)}}function l(p){let h,m,y=$e(p.left,o,ht),E=$e(p.right,o,ht);if(Js(y)){let S=t.createTempVariable(r),A=t.createTempVariable(r);h=at(t.createElementAccessExpression(at(t.createAssignment(S,y.expression),y.expression),at(t.createAssignment(A,y.argumentExpression),y.argumentExpression)),y),m=at(t.createElementAccessExpression(S,A),y)}else if(kr(y)){let S=t.createTempVariable(r);h=at(t.createPropertyAccessExpression(at(t.createAssignment(S,y.expression),y.expression),y.name),y),m=at(t.createPropertyAccessExpression(S,y.name),y)}else h=y,m=y;return at(t.createAssignment(h,at(t.createGlobalMethodCall("Math","pow",[m,E]),p)),p)}function d(p){let h=$e(p.left,o,ht),m=$e(p.right,o,ht);return at(t.createGlobalMethodCall("Math","pow",[h,m]),p)}}var X9e=bt({"src/compiler/transformers/es2016.ts"(){"use strict";ea()}});function FIe(e,t){return{kind:e,expression:t}}function Rle(e){let{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,d=e.getCompilerOptions(),p=e.getEmitResolver(),h=e.onSubstituteNode,m=e.onEmitNode;e.onEmitNode=lf,e.onSubstituteNode=Pf;let y,E,S,A;function N(Q){A=Tn(A,t.createVariableDeclaration(Q))}let D,w;return Im(e,j);function j(Q){if(Q.isDeclarationFile)return Q;y=Q,E=Q.text;let rt=re(Q);return Fg(rt,e.readEmitHelpers()),y=void 0,E=void 0,A=void 0,S=0,rt}function K(Q,rt){let wt=S;return S=(S&~Q|rt)&32767,wt}function Y(Q,rt,wt){S=(S&~rt|wt)&-32768|Q}function B(Q){return(S&8192)!==0&&Q.kind===253&&!Q.expression}function ce(Q){return Q.transformFlags&4194304&&(Sm(Q)||LT(Q)||mae(Q)||uP(Q)||pP(Q)||MR(Q)||mP(Q)||wT(Q)||X0(Q)||H0(Q)||Nv(Q,!1)||Ko(Q))}function z(Q){return(Q.transformFlags&1024)!==0||D!==void 0||S&8192&&ce(Q)||Nv(Q,!1)&&mo(Q)||(ym(Q)&1)!==0}function Z(Q){return z(Q)?J(Q,!1):Q}function me(Q){return z(Q)?J(Q,!0):Q}function ge(Q){if(z(Q)){let rt=Nl(Q);if(Uo(rt)&&pc(rt)){let wt=K(32670,16449),zt=J(Q,!1);return Y(wt,229376,0),zt}return J(Q,!1)}return Q}function q(Q){return Q.kind===108?Zl(Q,!0):Z(Q)}function J(Q,rt){switch(Q.kind){case 126:return;case 263:return De(Q);case 231:return Le(Q);case 169:return Ba(Q);case 262:return dn(Q);case 219:return Ft(Q);case 218:return hn(Q);case 260:return En(Q);case 80:return ve(Q);case 261:return Ne(Q);case 255:return pe(Q);case 269:return xe(Q);case 241:return Me(Q,!1);case 252:case 251:return Ae(Q);case 256:return gi(Q);case 246:case 247:return Fr(Q,void 0);case 248:return go(Q,void 0);case 249:return Ri(Q,void 0);case 250:return Kr(Q,void 0);case 244:return Nt(Q);case 210:return Mo(Q);case 299:return Di(Q);case 304:return Hc(Q);case 167:return zs(Q);case 209:return ys(Q);case 213:return Kc(Q);case 214:return im(Q);case 217:return k(Q,rt);case 226:return ie(Q,rt);case 361:return H(Q,rt);case 15:case 16:case 17:case 18:return Zo(Q);case 11:return Ql(Q);case 9:return gc(Q);case 215:return sl(Q);case 228:return _l(Q);case 229:return hc(Q);case 230:return Xo(Q);case 108:return Zl(Q,!1);case 110:return Ce(Q);case 236:return Jc(Q);case 174:return qo(Q);case 177:case 178:return bl(Q);case 243:return We(Q);case 253:return he(Q);case 222:return Ge(Q);default:return Sn(Q,Z,e)}}function re(Q){let rt=K(8064,64),wt=[],zt=[];i();let O=t.copyPrologue(Q.statements,wt,!1,Z);return Hr(zt,zn(Q.statements,Z,Hi,O)),A&&zt.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(A))),t.mergeLexicalEnvironment(wt,s()),ae(wt,Q),Y(rt,0,0),t.updateSourceFile(Q,at(t.createNodeArray(Eo(wt,zt)),Q.statements))}function pe(Q){if(D!==void 0){let rt=D.allowedNonLabeledJumps;D.allowedNonLabeledJumps|=2;let wt=Sn(Q,Z,e);return D.allowedNonLabeledJumps=rt,wt}return Sn(Q,Z,e)}function xe(Q){let rt=K(7104,0),wt=Sn(Q,Z,e);return Y(rt,0,0),wt}function fe(Q){return xr(t.createReturnStatement(ne()),Q)}function ne(){return t.createUniqueName("_this",48)}function he(Q){return D?(D.nonLocalJumps|=8,B(Q)&&(Q=fe(Q)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),Q.expression?x.checkDefined($e(Q.expression,Z,ht)):t.createVoidZero())]))):B(Q)?fe(Q):Sn(Q,Z,e)}function Ce(Q){return S|=65536,S&2&&!(S&16384)&&(S|=131072),D?S&2?(D.containsLexicalThis=!0,Q):D.thisName||(D.thisName=t.createUniqueName("this")):Q}function Ge(Q){return Sn(Q,me,e)}function ve(Q){return D&&p.isArgumentsLocalBinding(Q)?D.argumentsName||(D.argumentsName=t.createUniqueName("arguments")):Q.flags&256?xr(at(t.createIdentifier(Vi(Q.escapedText)),Q),Q):Q}function Ae(Q){if(D){let rt=Q.kind===252?2:4;if(!(Q.label&&D.labels&&D.labels.get(gr(Q.label))||!Q.label&&D.allowedNonLabeledJumps&rt)){let zt,O=Q.label;O?Q.kind===252?(zt=`break-${O.escapedText}`,$(D,!0,gr(O),zt)):(zt=`continue-${O.escapedText}`,$(D,!1,gr(O),zt)):Q.kind===252?(D.nonLocalJumps|=2,zt="break"):(D.nonLocalJumps|=4,zt="continue");let Ee=t.createStringLiteral(zt);if(D.loopOutParameters.length){let nt=D.loopOutParameters,Gt;for(let Zn=0;ZnFe(rt.name)&&!rt.initializer)}function pt(Q){if(mT(Q))return!0;if(!(Q.transformFlags&134217728))return!1;switch(Q.kind){case 219:case 218:case 262:case 176:case 175:return!1;case 177:case 178:case 174:case 172:{let rt=Q;return Ya(rt.name)?!!Go(rt.name,pt):!1}}return!!Go(Q,pt)}function Zt(Q,rt,wt,zt){let O=!!wt&&Yl(wt.expression).kind!==106;if(!Q)return _t(rt,O);let Ee=[],nt=[];o();let Gt=t.copyStandardPrologue(Q.body.statements,Ee,0);(zt||pt(Q.body))&&(S|=8192),Hr(nt,zn(Q.body.statements,Z,Hi,Gt));let Zn=O||S&8192;kn(Ee,Q),Rt(Ee,Q,zt),st(Ee,Q),Zn?ke(Ee,Q,Io()):ae(Ee,Q),t.mergeLexicalEnvironment(Ee,s()),Zn&&!$i(Q.body)&&nt.push(t.createReturnStatement(ne()));let ii=t.createBlock(at(t.createNodeArray([...Ee,...nt]),Q.body.statements),!0);return at(ii,Q.body),yi(ii,Q.body,zt)}function en(Q){return rl(Q)&&gr(Q)==="_this"}function Dn(Q){return rl(Q)&&gr(Q)==="_super"}function Kn(Q){return Ml(Q)&&Q.declarationList.declarations.length===1&&pn(Q.declarationList.declarations[0])}function pn(Q){return wi(Q)&&en(Q.name)&&!!Q.initializer}function Xt(Q){return Mc(Q,!0)&&en(Q.left)}function Kt(Q){return ia(Q)&&kr(Q.expression)&&Dn(Q.expression.expression)&&Fe(Q.expression.name)&&(gr(Q.expression.name)==="call"||gr(Q.expression.name)==="apply")&&Q.arguments.length>=1&&Q.arguments[0].kind===110}function hi(Q){return dr(Q)&&Q.operatorToken.kind===57&&Q.right.kind===110&&Kt(Q.left)}function uo(Q){return dr(Q)&&Q.operatorToken.kind===56&&dr(Q.left)&&Q.left.operatorToken.kind===38&&Dn(Q.left.left)&&Q.left.right.kind===106&&Kt(Q.right)&&gr(Q.right.expression.name)==="apply"}function Li(Q){return dr(Q)&&Q.operatorToken.kind===57&&Q.right.kind===110&&uo(Q.left)}function So(Q){return Xt(Q)&&hi(Q.right)}function Qn(Q){return Xt(Q)&&Li(Q.right)}function Ur(Q){return Kt(Q)||hi(Q)||So(Q)||uo(Q)||Li(Q)||Qn(Q)}function Er(Q){for(let rt=0;rt0;zt--){let O=Q.statements[zt];if(Sm(O)&&O.expression&&en(O.expression)){let Ee=Q.statements[zt-1],nt;if(ed(Ee)&&So(Yl(Ee.expression)))nt=Ee.expression;else if(wt&&Kn(Ee)){let ii=Ee.declarationList.declarations[0];Ur(Yl(ii.initializer))&&(nt=t.createAssignment(ne(),ii.initializer))}if(!nt)break;let Gt=t.createReturnStatement(nt);xr(Gt,Ee),at(Gt,Ee);let Zn=t.createNodeArray([...Q.statements.slice(0,zt-1),Gt,...Q.statements.slice(zt+1)]);return at(Zn,Q.statements),t.updateBlock(Q,Zn)}}return Q}function Ye(Q){if(Kn(Q)){if(Q.declarationList.declarations[0].initializer.kind===110)return}else if(Xt(Q))return t.createPartiallyEmittedExpression(Q.right,Q);switch(Q.kind){case 219:case 218:case 262:case 176:case 175:return Q;case 177:case 178:case 174:case 172:{let rt=Q;return Ya(rt.name)?t.replacePropertyName(rt,Sn(rt.name,Ye,void 0)):Q}}return Sn(Q,Ye,void 0)}function Ot(Q,rt){if(rt.transformFlags&16384||S&65536||S&131072)return Q;for(let wt of rt.statements)if(wt.transformFlags&134217728&&!F3(wt))return Q;return t.updateBlock(Q,zn(Q.statements,Ye,Hi))}function In(Q){if(Kt(Q)&&Q.arguments.length===2&&Fe(Q.arguments[1])&&gr(Q.arguments[1])==="arguments")return t.createLogicalAnd(t.createStrictInequality(Gl(),t.createNull()),Q);switch(Q.kind){case 219:case 218:case 262:case 176:case 175:return Q;case 177:case 178:case 174:case 172:{let rt=Q;return Ya(rt.name)?t.replacePropertyName(rt,Sn(rt.name,In,void 0)):Q}}return Sn(Q,In,void 0)}function si(Q){return t.updateBlock(Q,zn(Q.statements,In,Hi))}function yi(Q,rt,wt){let zt=Q;return Q=Er(Q),Q=on(Q,rt),Q!==zt&&(Q=Ot(Q,rt)),wt&&(Q=si(Q)),Q}function $i(Q){if(Q.kind===253)return!0;if(Q.kind===245){let rt=Q;if(rt.elseStatement)return $i(rt.thenStatement)&&$i(rt.elseStatement)}else if(Q.kind===241){let rt=$s(Q.statements);if(rt&&$i(rt))return!0}return!1}function Io(){return lr(t.createThis(),8)}function ua(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(Gl(),t.createNull()),t.createFunctionApplyCall(Gl(),Io(),t.createIdentifier("arguments"))),Io())}function Ba(Q){if(!Q.dotDotDotToken)return Qo(Q.name)?xr(at(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(Q),void 0,void 0,void 0),Q),Q):Q.initializer?xr(at(t.createParameterDeclaration(void 0,void 0,Q.name,void 0,void 0,void 0),Q),Q):Q}function vn(Q){return Q.initializer!==void 0||Qo(Q.name)}function kn(Q,rt){if(!gt(rt.parameters,vn))return!1;let wt=!1;for(let zt of rt.parameters){let{name:O,initializer:Ee,dotDotDotToken:nt}=zt;nt||(Qo(O)?wt=Be(Q,zt,O,Ee)||wt:Ee&&(ct(Q,zt,O,Ee),wt=!0))}return wt}function Be(Q,rt,wt,zt){return wt.elements.length>0?(uT(Q,lr(t.createVariableStatement(void 0,t.createVariableDeclarationList(nS(rt,Z,e,0,t.getGeneratedNameForNode(rt)))),2097152)),!0):zt?(uT(Q,lr(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(rt),x.checkDefined($e(zt,Z,ht)))),2097152)),!0):!1}function ct(Q,rt,wt,zt){zt=x.checkDefined($e(zt,Z,ht));let O=t.createIfStatement(t.createTypeCheck(t.cloneNode(wt),"undefined"),lr(at(t.createBlock([t.createExpressionStatement(lr(at(t.createAssignment(lr(ja(at(t.cloneNode(wt),wt),wt.parent),96),lr(zt,96|za(zt)|3072)),rt),3072))]),rt),3905));Jd(O),at(O,rt),lr(O,2101056),uT(Q,O)}function lt(Q,rt){return!!(Q&&Q.dotDotDotToken&&!rt)}function Rt(Q,rt,wt){let zt=[],O=$s(rt.parameters);if(!lt(O,wt))return!1;let Ee=O.name.kind===80?ja(at(t.cloneNode(O.name),O.name),O.name.parent):t.createTempVariable(void 0);lr(Ee,96);let nt=O.name.kind===80?t.cloneNode(O.name):Ee,Gt=rt.parameters.length-1,Zn=t.createLoopVariable();zt.push(lr(at(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Ee,void 0,void 0,t.createArrayLiteralExpression([]))])),O),2097152));let ii=t.createForStatement(at(t.createVariableDeclarationList([t.createVariableDeclaration(Zn,void 0,void 0,t.createNumericLiteral(Gt))]),O),at(t.createLessThan(Zn,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),O),at(t.createPostfixIncrement(Zn),O),t.createBlock([Jd(at(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(nt,Gt===0?Zn:t.createSubtract(Zn,t.createNumericLiteral(Gt))),t.createElementAccessExpression(t.createIdentifier("arguments"),Zn))),O))]));return lr(ii,2097152),Jd(ii),zt.push(ii),O.name.kind!==80&&zt.push(lr(at(t.createVariableStatement(void 0,t.createVariableDeclarationList(nS(O,Z,e,0,nt))),O),2097152)),jV(Q,zt),!0}function ae(Q,rt){return S&131072&&rt.kind!==219?(ke(Q,rt,t.createThis()),!0):!1}function ke(Q,rt,wt){xu();let zt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ne(),void 0,void 0,wt)]));lr(zt,2100224),Ra(zt,rt),uT(Q,zt)}function st(Q,rt){if(S&32768){let wt;switch(rt.kind){case 219:return Q;case 174:case 177:case 178:wt=t.createVoidZero();break;case 176:wt=t.createPropertyAccessExpression(lr(t.createThis(),8),"constructor");break;case 262:case 218:wt=t.createConditionalExpression(t.createLogicalAnd(lr(t.createThis(),8),t.createBinaryExpression(lr(t.createThis(),8),104,t.getLocalName(rt))),void 0,t.createPropertyAccessExpression(lr(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return x.failBadSyntaxKind(rt)}let zt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,wt)]));lr(zt,2100224),uT(Q,zt)}return Q}function G(Q,rt){for(let wt of rt.members)switch(wt.kind){case 240:Q.push(et(wt));break;case 174:Q.push(Tt(lg(rt,wt),wt,rt));break;case 177:case 178:let zt=AT(rt.members,wt);wt===zt.firstAccessor&&Q.push(He(lg(rt,wt),zt,rt));break;case 176:case 175:break;default:x.failBadSyntaxKind(wt,y&&y.fileName);break}}function et(Q){return at(t.createEmptyStatement(),Q)}function Tt(Q,rt,wt){let zt=C_(rt),O=Wy(rt),Ee=un(rt,rt,void 0,wt),nt=$e(rt.name,Z,rc);x.assert(nt);let Gt;if(!Ki(nt)&&tP(e.getCompilerOptions())){let ii=Ya(nt)?nt.expression:Fe(nt)?t.createStringLiteral(Vi(nt.escapedText)):nt;Gt=t.createObjectDefinePropertyCall(Q,ii,t.createPropertyDescriptor({value:Ee,enumerable:!1,writable:!0,configurable:!0}))}else{let ii=BT(t,Q,nt,rt.name);Gt=t.createAssignment(ii,Ee)}lr(Ee,3072),Ra(Ee,O);let Zn=at(t.createExpressionStatement(Gt),rt);return xr(Zn,rt),ic(Zn,zt),lr(Zn,96),Zn}function He(Q,rt,wt){let zt=t.createExpressionStatement(ut(Q,rt,wt,!1));return lr(zt,3072),Ra(zt,Wy(rt.firstAccessor)),zt}function ut(Q,{firstAccessor:rt,getAccessor:wt,setAccessor:zt},O,Ee){let nt=ja(at(t.cloneNode(Q),Q),Q.parent);lr(nt,3136),Ra(nt,rt.name);let Gt=$e(rt.name,Z,rc);if(x.assert(Gt),Ki(Gt))return x.failBadSyntaxKind(Gt,"Encountered unhandled private identifier while transforming ES2015.");let Zn=gH(t,Gt);lr(Zn,3104),Ra(Zn,rt.name);let ii=[];if(wt){let no=un(wt,void 0,void 0,O);Ra(no,Wy(wt)),lr(no,1024);let La=t.createPropertyAssignment("get",no);ic(La,C_(wt)),ii.push(La)}if(zt){let no=un(zt,void 0,void 0,O);Ra(no,Wy(zt)),lr(no,1024);let La=t.createPropertyAssignment("set",no);ic(La,C_(zt)),ii.push(La)}ii.push(t.createPropertyAssignment("enumerable",wt||zt?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));let Xr=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[nt,Zn,t.createObjectLiteralExpression(ii,!0)]);return Ee&&Jd(Xr),Xr}function Ft(Q){Q.transformFlags&16384&&!(S&16384)&&(S|=131072);let rt=D;D=void 0;let wt=K(15232,66),zt=t.createFunctionExpression(void 0,void 0,void 0,void 0,Il(Q.parameters,Z,e),void 0,U(Q));return at(zt,Q),xr(zt,Q),lr(zt,16),Y(wt,0,0),D=rt,zt}function hn(Q){let rt=za(Q)&524288?K(32662,69):K(32670,65),wt=D;D=void 0;let zt=Il(Q.parameters,Z,e),O=U(Q),Ee=S&32768?t.getLocalName(Q):Q.name;return Y(rt,229376,0),D=wt,t.updateFunctionExpression(Q,void 0,Q.asteriskToken,Ee,void 0,zt,void 0,O)}function dn(Q){let rt=D;D=void 0;let wt=K(32670,65),zt=Il(Q.parameters,Z,e),O=U(Q),Ee=S&32768?t.getLocalName(Q):Q.name;return Y(wt,229376,0),D=rt,t.updateFunctionDeclaration(Q,zn(Q.modifiers,Z,Sa),Q.asteriskToken,Ee,void 0,zt,void 0,O)}function un(Q,rt,wt,zt){let O=D;D=void 0;let Ee=zt&&ci(zt)&&!ra(Q)?K(32670,73):K(32670,65),nt=Il(Q.parameters,Z,e),Gt=U(Q);return S&32768&&!wt&&(Q.kind===262||Q.kind===218)&&(wt=t.getGeneratedNameForNode(Q)),Y(Ee,229376,0),D=O,xr(at(t.createFunctionExpression(void 0,Q.asteriskToken,wt,void 0,nt,void 0,Gt),rt),Q)}function U(Q){let rt=!1,wt=!1,zt,O,Ee=[],nt=[],Gt=Q.body,Zn;if(o(),Ko(Gt)&&(Zn=t.copyStandardPrologue(Gt.statements,Ee,0,!1),Zn=t.copyCustomPrologue(Gt.statements,nt,Zn,Z,PF),Zn=t.copyCustomPrologue(Gt.statements,nt,Zn,Z,MF)),rt=kn(nt,Q)||rt,rt=Rt(nt,Q,!1)||rt,Ko(Gt))Zn=t.copyCustomPrologue(Gt.statements,nt,Zn,Z),zt=Gt.statements,Hr(nt,zn(Gt.statements,Z,Hi,Zn)),!rt&&Gt.multiLine&&(rt=!0);else{x.assert(Q.kind===219),zt=g6(Gt,-1);let Xr=Q.equalsGreaterThanToken;!Ks(Xr)&&!Ks(Gt)&&(nk(Xr,Gt,y)?wt=!0:rt=!0);let no=$e(Gt,Z,ht),La=t.createReturnStatement(no);at(La,Gt),Hoe(La,Gt),lr(La,2880),nt.push(La),O=Gt}if(t.mergeLexicalEnvironment(Ee,s()),st(Ee,Q),ae(Ee,Q),gt(Ee)&&(rt=!0),nt.unshift(...Ee),Ko(Gt)&&Gm(nt,Gt.statements))return Gt;let ii=t.createBlock(at(t.createNodeArray(nt),zt),rt);return at(ii,Q.body),!rt&&wt&&lr(ii,1),O&&Uoe(ii,20,O),xr(ii,Q.body),ii}function Me(Q,rt){if(rt)return Sn(Q,Z,e);let wt=S&256?K(7104,512):K(6976,128),zt=Sn(Q,Z,e);return Y(wt,0,0),zt}function Nt(Q){return Sn(Q,me,e)}function k(Q,rt){return Sn(Q,rt?me:Z,e)}function ie(Q,rt){return ky(Q)?UT(Q,Z,e,0,!rt):Q.operatorToken.kind===28?t.updateBinaryExpression(Q,x.checkDefined($e(Q.left,me,ht)),Q.operatorToken,x.checkDefined($e(Q.right,rt?me:Z,ht))):Sn(Q,Z,e)}function H(Q,rt){if(rt)return Sn(Q,me,e);let wt;for(let O=0;OZn.name)),Gt=zt?t.createYieldExpression(t.createToken(42),lr(nt,8388608)):nt;if(Ee)O.push(t.createExpressionStatement(Gt)),Rs(rt.loopOutParameters,1,0,O);else{let Zn=t.createUniqueName("state"),ii=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Zn,void 0,void 0,Gt)]));if(O.push(ii),Rs(rt.loopOutParameters,1,0,O),rt.nonLocalJumps&8){let Xr;wt?(wt.nonLocalJumps|=8,Xr=t.createReturnStatement(Zn)):Xr=t.createReturnStatement(t.createPropertyAccessExpression(Zn,"value")),O.push(t.createIfStatement(t.createTypeCheck(Zn,"object"),Xr))}if(rt.nonLocalJumps&2&&O.push(t.createIfStatement(t.createStrictEquality(Zn,t.createStringLiteral("break")),t.createBreakStatement())),rt.labeledNonLocalBreaks||rt.labeledNonLocalContinues){let Xr=[];Pe(rt.labeledNonLocalBreaks,!0,Zn,wt,Xr),Pe(rt.labeledNonLocalContinues,!1,Zn,wt,Xr),O.push(t.createSwitchStatement(Zn,t.createCaseBlock(Xr)))}}return O}function $(Q,rt,wt,zt){rt?(Q.labeledNonLocalBreaks||(Q.labeledNonLocalBreaks=new Map),Q.labeledNonLocalBreaks.set(wt,zt)):(Q.labeledNonLocalContinues||(Q.labeledNonLocalContinues=new Map),Q.labeledNonLocalContinues.set(wt,zt))}function Pe(Q,rt,wt,zt,O){Q&&Q.forEach((Ee,nt)=>{let Gt=[];if(!zt||zt.labels&&zt.labels.get(nt)){let Zn=t.createIdentifier(nt);Gt.push(rt?t.createBreakStatement(Zn):t.createContinueStatement(Zn))}else $(zt,rt,nt,Ee),Gt.push(t.createReturnStatement(wt));O.push(t.createCaseClause(t.createStringLiteral(Ee),Gt))})}function yt(Q,rt,wt,zt,O){let Ee=rt.name;if(Qo(Ee))for(let nt of Ee.elements)jc(nt)||yt(Q,nt,wt,zt,O);else{wt.push(t.createParameterDeclaration(void 0,void 0,Ee));let nt=p.getNodeCheckFlags(rt);if(nt&65536||O){let Gt=t.createUniqueName("out_"+gr(Ee)),Zn=0;nt&65536&&(Zn|=1),kT(Q)&&(Q.initializer&&p.isBindingCapturedByNode(Q.initializer,rt)&&(Zn|=2),(Q.condition&&p.isBindingCapturedByNode(Q.condition,rt)||Q.incrementor&&p.isBindingCapturedByNode(Q.incrementor,rt))&&(Zn|=1)),zt.push({flags:Zn,originalName:Ee,outParamName:Gt})}}}function cn(Q,rt,wt,zt){let O=rt.properties,Ee=O.length;for(let nt=zt;ntMl(Bu)&&!!Va(Bu.declarationList.declarations).initializer,zt=D;D=void 0;let O=zn(rt.statements,ge,Hi);D=zt;let Ee=jr(O,wt),nt=jr(O,Bu=>!wt(Bu)),Zn=na(Va(Ee),Ml).declarationList.declarations[0],ii=Yl(Zn.initializer),Xr=ri(ii,Mc);!Xr&&dr(ii)&&ii.operatorToken.kind===28&&(Xr=ri(ii.left,Mc));let no=na(Xr?Yl(Xr.right):ii,ia),La=na(Yl(no.expression),Ps),ka=La.body.statements,wl=0,pd=-1,Ic=[];if(Xr){let Bu=ri(ka[wl],ed);Bu&&(Ic.push(Bu),wl++),Ic.push(ka[wl]),wl++,Ic.push(t.createExpressionStatement(t.createAssignment(Xr.left,na(Zn.name,Fe))))}for(;!Sm(Ay(ka,pd));)pd--;Hr(Ic,ka,wl,pd),pd<-1&&Hr(Ic,ka,pd+1);let Tp=ri(Ay(ka,pd),Sm);for(let Bu of nt)Sm(Bu)&&Tp?.expression&&!Fe(Tp.expression)?Ic.push(Tp):Ic.push(Bu);return Hr(Ic,Ee,1),t.restoreOuterExpressions(Q.expression,t.restoreOuterExpressions(Zn.initializer,t.restoreOuterExpressions(Xr&&Xr.right,t.updateCallExpression(no,t.restoreOuterExpressions(no.expression,t.updateFunctionExpression(La,void 0,void 0,void 0,void 0,La.parameters,void 0,t.updateBlock(La.body,Ic))),void 0,no.arguments))))}function Oc(Q,rt){if(Q.transformFlags&32768||Q.expression.kind===108||ku(Yl(Q.expression))){let{target:wt,thisArg:zt}=t.createCallBinding(Q.expression,l);Q.expression.kind===108&&lr(zt,8);let O;if(Q.transformFlags&32768?O=t.createFunctionApplyCall(x.checkDefined($e(wt,q,ht)),Q.expression.kind===108?zt:x.checkDefined($e(zt,Z,ht)),fu(Q.arguments,!0,!1,!1)):O=at(t.createFunctionCallCall(x.checkDefined($e(wt,q,ht)),Q.expression.kind===108?zt:x.checkDefined($e(zt,Z,ht)),zn(Q.arguments,Z,ht)),Q),Q.expression.kind===108){let Ee=t.createLogicalOr(O,Io());O=rt?t.createAssignment(ne(),Ee):Ee}return xr(O,Q)}return mT(Q)&&(S|=131072),Sn(Q,Z,e)}function im(Q){if(gt(Q.arguments,Jm)){let{target:rt,thisArg:wt}=t.createCallBinding(t.createPropertyAccessExpression(Q.expression,"bind"),l);return t.createNewExpression(t.createFunctionApplyCall(x.checkDefined($e(rt,Z,ht)),wt,fu(t.createNodeArray([t.createVoidZero(),...Q.arguments]),!0,!1,!1)),void 0,[])}return Sn(Q,Z,e)}function fu(Q,rt,wt,zt){let O=Q.length,Ee=pm(MG(Q,Re,(ii,Xr,no,La)=>Xr(ii,wt,zt&&La===O)));if(Ee.length===1){let ii=Ee[0];if(rt&&!d.downlevelIteration||mU(ii.expression)||iP(ii.expression,"___spreadArray"))return ii.expression}let nt=r(),Gt=Ee[0].kind!==0,Zn=Gt?t.createArrayLiteralExpression():Ee[0].expression;for(let ii=Gt?0:1;ii0&&zt.push(t.createStringLiteral(wt.literal.text)),rt=t.createCallExpression(t.createPropertyAccessExpression(rt,"concat"),void 0,zt)}return at(rt,Q)}function Gl(){return t.createUniqueName("_super",48)}function Zl(Q,rt){let wt=S&8&&!rt?t.createPropertyAccessExpression(xr(Gl(),Q),"prototype"):Gl();return xr(wt,Q),ic(wt,Q),Ra(wt,Q),wt}function Jc(Q){return Q.keywordToken===105&&Q.name.escapedText==="target"?(S|=32768,t.createUniqueName("_newTarget",48)):Q}function lf(Q,rt,wt){if(w&1&&$o(rt)){let zt=K(32670,za(rt)&16?81:65);m(Q,rt,wt),Y(zt,0,0);return}m(Q,rt,wt)}function Fu(){w&2||(w|=2,e.enableSubstitution(80))}function xu(){w&1||(w|=1,e.enableSubstitution(110),e.enableEmitNotification(176),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(219),e.enableEmitNotification(218),e.enableEmitNotification(262))}function Pf(Q,rt){return rt=h(Q,rt),Q===1?Hg(rt):Fe(rt)?z_(rt):rt}function z_(Q){if(w&2&&!yH(Q)){let rt=Do(Q,Fe);if(rt&&Ah(rt))return at(t.getGeneratedNameForNode(rt),Q)}return Q}function Ah(Q){switch(Q.parent.kind){case 208:case 263:case 266:case 260:return Q.parent.name===Q&&p.isDeclarationWithCollidingName(Q.parent)}return!1}function Hg(Q){switch(Q.kind){case 80:return Fd(Q);case 110:return Sp(Q)}return Q}function Fd(Q){if(w&2&&!yH(Q)){let rt=p.getReferencedDeclarationWithCollidingName(Q);if(rt&&!(ci(rt)&&Kg(rt,Q)))return at(t.getGeneratedNameForNode(Po(rt)),Q)}return Q}function Kg(Q,rt){let wt=Do(rt);if(!wt||wt===Q||wt.end<=Q.pos||wt.pos>=Q.end)return!1;let zt=uh(Q);for(;wt;){if(wt===zt||wt===Q)return!1;if($c(wt)&&wt.parent===Q)return!0;wt=wt.parent}return!1}function Sp(Q){return w&1&&S&16?at(ne(),Q):Q}function lg(Q,rt){return ra(rt)?t.getInternalName(Q):t.createPropertyAccessExpression(t.getInternalName(Q),"prototype")}function zu(Q,rt){if(!Q||!rt||gt(Q.parameters))return!1;let wt=Xc(Q.body.statements);if(!wt||!Ks(wt)||wt.kind!==244)return!1;let zt=wt.expression;if(!Ks(zt)||zt.kind!==213)return!1;let O=zt.expression;if(!Ks(O)||O.kind!==108)return!1;let Ee=nh(zt.arguments);if(!Ee||!Ks(Ee)||Ee.kind!==230)return!1;let nt=Ee.expression;return Fe(nt)&&nt.escapedText==="arguments"}}var Y9e=bt({"src/compiler/transformers/es2015.ts"(){"use strict";ea()}});function Dle(e){let{factory:t}=e,r=e.getCompilerOptions(),i,o;(r.jsx===1||r.jsx===3)&&(i=e.onEmitNode,e.onEmitNode=d,e.enableEmitNotification(286),e.enableEmitNotification(287),e.enableEmitNotification(285),o=[]);let s=e.onSubstituteNode;return e.onSubstituteNode=p,e.enableSubstitution(211),e.enableSubstitution(303),Im(e,l);function l(E){return E}function d(E,S,A){switch(S.kind){case 286:case 287:case 285:let N=S.tagName;o[wd(N)]=!0;break}i(E,S,A)}function p(E,S){return S.id&&o&&o[S.id]?s(E,S):(S=s(E,S),kr(S)?h(S):mc(S)?m(S):S)}function h(E){if(Ki(E.name))return E;let S=y(E.name);return S?at(t.createElementAccessExpression(E.expression,S),E):E}function m(E){let S=Fe(E.name)&&y(E.name);return S?t.updatePropertyAssignment(E,S,E.initializer):E}function y(E){let S=eE(E);if(S!==void 0&&S>=83&&S<=118)return at(t.createStringLiteralFromNode(E),E)}}var $9e=bt({"src/compiler/transformers/es5.ts"(){"use strict";ea()}});function Q9e(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function Cle(e){let{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistFunctionDeclaration:s,hoistVariableDeclaration:l}=e,d=e.getCompilerOptions(),p=ns(d),h=e.getEmitResolver(),m=e.onSubstituteNode;e.onSubstituteNode=Nt;let y,E,S,A,N,D,w,j,K,Y,B=1,ce,z,Z,me,ge=0,q=0,J,re,pe,xe,fe,ne,he,Ce;return Im(e,Ge);function Ge(Re){if(Re.isDeclarationFile||!(Re.transformFlags&2048))return Re;let Lt=Sn(Re,ve,e);return Fg(Lt,e.readEmitHelpers()),Lt}function ve(Re){let Lt=Re.transformFlags;return A?Ae(Re):S?De(Re):ws(Re)&&Re.asteriskToken?Et(Re):Lt&2048?Sn(Re,ve,e):Re}function Ae(Re){switch(Re.kind){case 246:return ua(Re);case 247:return vn(Re);case 255:return ut(Re);case 256:return hn(Re);default:return De(Re)}}function De(Re){switch(Re.kind){case 262:return be(Re);case 218:return ze(Re);case 177:case 178:return tt(Re);case 243:return _t(Re);case 248:return Be(Re);case 249:return lt(Re);case 252:return st(Re);case 251:return ae(Re);case 253:return et(Re);default:return Re.transformFlags&1048576?Le(Re):Re.transformFlags&4196352?Sn(Re,ve,e):Re}}function Le(Re){switch(Re.kind){case 226:return Je(Re);case 361:return Dn(Re);case 227:return pn(Re);case 229:return Xt(Re);case 209:return Kt(Re);case 210:return uo(Re);case 212:return Li(Re);case 213:return So(Re);case 214:return Qn(Re);default:return Sn(Re,ve,e)}}function Et(Re){switch(Re.kind){case 262:return be(Re);case 218:return ze(Re);default:return x.failBadSyntaxKind(Re)}}function be(Re){if(Re.asteriskToken)Re=xr(at(t.createFunctionDeclaration(Re.modifiers,void 0,Re.name,void 0,Il(Re.parameters,ve,e),void 0,Wt(Re.body)),Re),Re);else{let Lt=S,Un=A;S=!1,A=!1,Re=Sn(Re,ve,e),S=Lt,A=Un}if(S){s(Re);return}else return Re}function ze(Re){if(Re.asteriskToken)Re=xr(at(t.createFunctionExpression(void 0,void 0,Re.name,void 0,Il(Re.parameters,ve,e),void 0,Wt(Re.body)),Re),Re);else{let Lt=S,Un=A;S=!1,A=!1,Re=Sn(Re,ve,e),S=Lt,A=Un}return Re}function tt(Re){let Lt=S,Un=A;return S=!1,A=!1,Re=Sn(Re,ve,e),S=Lt,A=Un,Re}function Wt(Re){let Lt=[],Un=S,yo=A,Xo=N,Zo=D,Ql=w,gc=j,sl=K,_l=Y,Gl=B,Zl=ce,Jc=z,lf=Z,Fu=me;S=!0,A=!1,N=void 0,D=void 0,w=void 0,j=void 0,K=void 0,Y=void 0,B=1,ce=void 0,z=void 0,Z=void 0,me=t.createTempVariable(void 0),i();let xu=t.copyPrologue(Re.statements,Lt,!1,ve);Ur(Re.statements,xu);let Pf=$();return Jh(Lt,o()),Lt.push(t.createReturnStatement(Pf)),S=Un,A=yo,N=Xo,D=Zo,w=Ql,j=gc,K=sl,Y=_l,B=Gl,ce=Zl,z=Jc,Z=lf,me=Fu,at(t.createBlock(Lt,Re.multiLine),Re)}function _t(Re){if(Re.transformFlags&1048576){si(Re.declarationList);return}else{if(za(Re)&2097152)return Re;for(let Un of Re.declarationList.declarations)l(Un.name);let Lt=wN(Re.declarationList);return Lt.length===0?void 0:Ra(t.createExpressionStatement(t.inlineExpressions(mn(Lt,yi))),Re)}}function Je(Re){let Lt=Nj(Re);switch(Lt){case 0:return Zt(Re);case 1:return pt(Re);default:return x.assertNever(Lt)}}function pt(Re){let{left:Lt,right:Un}=Re;if(U(Un)){let yo;switch(Lt.kind){case 211:yo=t.updatePropertyAccessExpression(Lt,H(x.checkDefined($e(Lt.expression,ve,Yu))),Lt.name);break;case 212:yo=t.updateElementAccessExpression(Lt,H(x.checkDefined($e(Lt.expression,ve,Yu))),H(x.checkDefined($e(Lt.argumentExpression,ve,ht))));break;default:yo=x.checkDefined($e(Lt,ve,ht));break}let Xo=Re.operatorToken.kind;return NP(Xo)?at(t.createAssignment(yo,at(t.createBinaryExpression(H(yo),PP(Xo),x.checkDefined($e(Un,ve,ht))),Re)),Re):t.updateBinaryExpression(Re,yo,Re.operatorToken,x.checkDefined($e(Un,ve,ht)))}return Sn(Re,ve,e)}function Zt(Re){return U(Re.right)?Gie(Re.operatorToken.kind)?Kn(Re):Re.operatorToken.kind===28?en(Re):t.updateBinaryExpression(Re,H(x.checkDefined($e(Re.left,ve,ht))),Re.operatorToken,x.checkDefined($e(Re.right,ve,ht))):Sn(Re,ve,e)}function en(Re){let Lt=[];return Un(Re.left),Un(Re.right),t.inlineExpressions(Lt);function Un(yo){dr(yo)&&yo.operatorToken.kind===28?(Un(yo.left),Un(yo.right)):(U(yo)&&Lt.length>0&&(de(1,[t.createExpressionStatement(t.inlineExpressions(Lt))]),Lt=[]),Lt.push(x.checkDefined($e(yo,ve,ht))))}}function Dn(Re){let Lt=[];for(let Un of Re.elements)dr(Un)&&Un.operatorToken.kind===28?Lt.push(en(Un)):(U(Un)&&Lt.length>0&&(de(1,[t.createExpressionStatement(t.inlineExpressions(Lt))]),Lt=[]),Lt.push(x.checkDefined($e(Un,ve,ht))));return t.inlineExpressions(Lt)}function Kn(Re){let Lt=We(),Un=ue();return al(Un,x.checkDefined($e(Re.left,ve,ht)),Re.left),Re.operatorToken.kind===56?Fs(Lt,Un,Re.left):tn(Lt,Un,Re.left),al(Un,x.checkDefined($e(Re.right,ve,ht)),Re.right),Ne(Lt),Un}function pn(Re){if(U(Re.whenTrue)||U(Re.whenFalse)){let Lt=We(),Un=We(),yo=ue();return Fs(Lt,x.checkDefined($e(Re.condition,ve,ht)),Re.condition),al(yo,x.checkDefined($e(Re.whenTrue,ve,ht)),Re.whenTrue),Lo(Un),Ne(Lt),al(yo,x.checkDefined($e(Re.whenFalse,ve,ht)),Re.whenFalse),Ne(Un),yo}return Sn(Re,ve,e)}function Xt(Re){let Lt=We(),Un=$e(Re.expression,ve,ht);if(Re.asteriskToken){let yo=za(Re.expression)&8388608?Un:at(r().createValuesHelper(Un),Re);nd(yo,Re)}else ud(Un,Re);return Ne(Lt),Nf(Re)}function Kt(Re){return hi(Re.elements,void 0,void 0,Re.multiLine)}function hi(Re,Lt,Un,yo){let Xo=Me(Re),Zo;if(Xo>0){Zo=ue();let sl=zn(Re,ve,ht,0,Xo);al(Zo,t.createArrayLiteralExpression(Lt?[Lt,...sl]:sl)),Lt=void 0}let Ql=tu(Re,gc,[],Xo);return Zo?t.createArrayConcatCall(Zo,[t.createArrayLiteralExpression(Ql,yo)]):at(t.createArrayLiteralExpression(Lt?[Lt,...Ql]:Ql,yo),Un);function gc(sl,_l){if(U(_l)&&sl.length>0){let Gl=Zo!==void 0;Zo||(Zo=ue()),al(Zo,Gl?t.createArrayConcatCall(Zo,[t.createArrayLiteralExpression(sl,yo)]):t.createArrayLiteralExpression(Lt?[Lt,...sl]:sl,yo)),Lt=void 0,sl=[]}return sl.push(x.checkDefined($e(_l,ve,ht))),sl}}function uo(Re){let Lt=Re.properties,Un=Re.multiLine,yo=Me(Lt),Xo=ue();al(Xo,t.createObjectLiteralExpression(zn(Lt,ve,Pg,0,yo),Un));let Zo=tu(Lt,Ql,[],yo);return Zo.push(Un?Jd(ja(at(t.cloneNode(Xo),Xo),Xo.parent)):Xo),t.inlineExpressions(Zo);function Ql(gc,sl){U(sl)&&gc.length>0&&(xl(t.createExpressionStatement(t.inlineExpressions(gc))),gc=[]);let _l=Cae(t,Re,sl,Xo),Gl=$e(_l,ve,ht);return Gl&&(Un&&Jd(Gl),gc.push(Gl)),gc}}function Li(Re){return U(Re.argumentExpression)?t.updateElementAccessExpression(Re,H(x.checkDefined($e(Re.expression,ve,Yu))),x.checkDefined($e(Re.argumentExpression,ve,ht))):Sn(Re,ve,e)}function So(Re){if(!Op(Re)&&gn(Re.arguments,U)){let{target:Lt,thisArg:Un}=t.createCallBinding(Re.expression,l,p,!0);return xr(at(t.createFunctionApplyCall(H(x.checkDefined($e(Lt,ve,Yu))),Un,hi(Re.arguments)),Re),Re)}return Sn(Re,ve,e)}function Qn(Re){if(gn(Re.arguments,U)){let{target:Lt,thisArg:Un}=t.createCallBinding(t.createPropertyAccessExpression(Re.expression,"bind"),l);return xr(at(t.createNewExpression(t.createFunctionApplyCall(H(x.checkDefined($e(Lt,ve,ht))),Un,hi(Re.arguments,t.createVoidZero())),void 0,[]),Re),Re)}return Sn(Re,ve,e)}function Ur(Re,Lt=0){let Un=Re.length;for(let yo=Lt;yo0)break;Xo.push(yi(Ql))}Xo.length&&(xl(t.createExpressionStatement(t.inlineExpressions(Xo))),yo+=Xo.length,Xo=[])}}function yi(Re){return Ra(t.createAssignment(Ra(t.cloneNode(Re.name),Re.name),x.checkDefined($e(Re.initializer,ve,ht))),Re)}function $i(Re){if(U(Re))if(U(Re.thenStatement)||U(Re.elseStatement)){let Lt=We(),Un=Re.elseStatement?We():void 0;Fs(Re.elseStatement?Un:Lt,x.checkDefined($e(Re.expression,ve,ht)),Re.expression),Er(Re.thenStatement),Re.elseStatement&&(Lo(Lt),Ne(Un),Er(Re.elseStatement)),Ne(Lt)}else xl($e(Re,ve,Hi));else xl($e(Re,ve,Hi))}function Io(Re){if(U(Re)){let Lt=We(),Un=We();Pi(Lt),Ne(Un),Er(Re.statement),Ne(Lt),tn(Un,x.checkDefined($e(Re.expression,ve,ht))),Ri()}else xl($e(Re,ve,Hi))}function ua(Re){return A?(go(),Re=Sn(Re,ve,e),Ri(),Re):Sn(Re,ve,e)}function Ba(Re){if(U(Re)){let Lt=We(),Un=Pi(Lt);Ne(Lt),Fs(Un,x.checkDefined($e(Re.expression,ve,ht))),Er(Re.statement),Lo(Lt),Ri()}else xl($e(Re,ve,Hi))}function vn(Re){return A?(go(),Re=Sn(Re,ve,e),Ri(),Re):Sn(Re,ve,e)}function kn(Re){if(U(Re)){let Lt=We(),Un=We(),yo=Pi(Un);if(Re.initializer){let Xo=Re.initializer;Uc(Xo)?si(Xo):xl(at(t.createExpressionStatement(x.checkDefined($e(Xo,ve,ht))),Xo))}Ne(Lt),Re.condition&&Fs(yo,x.checkDefined($e(Re.condition,ve,ht))),Er(Re.statement),Ne(Un),Re.incrementor&&xl(at(t.createExpressionStatement(x.checkDefined($e(Re.incrementor,ve,ht))),Re.incrementor)),Lo(Lt),Ri()}else xl($e(Re,ve,Hi))}function Be(Re){A&&go();let Lt=Re.initializer;if(Lt&&Uc(Lt)){for(let yo of Lt.declarations)l(yo.name);let Un=wN(Lt);Re=t.updateForStatement(Re,Un.length>0?t.inlineExpressions(mn(Un,yi)):void 0,$e(Re.condition,ve,ht),$e(Re.incrementor,ve,ht),Tu(Re.statement,ve,e))}else Re=Sn(Re,ve,e);return A&&Ri(),Re}function ct(Re){if(U(Re)){let Lt=ue(),Un=ue(),yo=ue(),Xo=t.createLoopVariable(),Zo=Re.initializer;l(Xo),al(Lt,x.checkDefined($e(Re.expression,ve,ht))),al(Un,t.createArrayLiteralExpression()),xl(t.createForInStatement(yo,Lt,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(Un,"push"),void 0,[yo])))),al(Xo,t.createNumericLiteral(0));let Ql=We(),gc=We(),sl=Pi(gc);Ne(Ql),Fs(sl,t.createLessThan(Xo,t.createPropertyAccessExpression(Un,"length"))),al(yo,t.createElementAccessExpression(Un,Xo)),Fs(gc,t.createBinaryExpression(yo,103,Lt));let _l;if(Uc(Zo)){for(let Gl of Zo.declarations)l(Gl.name);_l=t.cloneNode(Zo.declarations[0].name)}else _l=x.checkDefined($e(Zo,ve,ht)),x.assert(Yu(_l));al(_l,yo),Er(Re.statement),Ne(gc),xl(t.createExpressionStatement(t.createPostfixIncrement(Xo))),Lo(Ql),Ri()}else xl($e(Re,ve,Hi))}function lt(Re){A&&go();let Lt=Re.initializer;if(Uc(Lt)){for(let Un of Lt.declarations)l(Un.name);Re=t.updateForInStatement(Re,Lt.declarations[0].name,x.checkDefined($e(Re.expression,ve,ht)),x.checkDefined($e(Re.statement,ve,Hi,t.liftToBlock)))}else Re=Sn(Re,ve,e);return A&&Ri(),Re}function Rt(Re){let Lt=la(Re.label?gr(Re.label):void 0);Lt>0?Lo(Lt,Re):xl(Re)}function ae(Re){if(A){let Lt=la(Re.label&&gr(Re.label));if(Lt>0)return Ca(Lt,Re)}return Sn(Re,ve,e)}function ke(Re){let Lt=mo(Re.label?gr(Re.label):void 0);Lt>0?Lo(Lt,Re):xl(Re)}function st(Re){if(A){let Lt=mo(Re.label&&gr(Re.label));if(Lt>0)return Ca(Lt,Re)}return Sn(Re,ve,e)}function G(Re){Ep($e(Re.expression,ve,ht),Re)}function et(Re){return ul($e(Re.expression,ve,ht),Re)}function Tt(Re){U(Re)?(wn(H(x.checkDefined($e(Re.expression,ve,ht)))),Er(Re.statement),Bn()):xl($e(Re,ve,Hi))}function He(Re){if(U(Re.caseBlock)){let Lt=Re.caseBlock,Un=Lt.clauses.length,yo=xo(),Xo=H(x.checkDefined($e(Re.expression,ve,ht))),Zo=[],Ql=-1;for(let _l=0;_l0)break;sl.push(t.createCaseClause(x.checkDefined($e(Zl.expression,ve,ht)),[Ca(Zo[Gl],Zl.expression)]))}else _l++}sl.length&&(xl(t.createSwitchStatement(Xo,t.createCaseBlock(sl))),gc+=sl.length,sl=[]),_l>0&&(gc+=_l,_l=0)}Ql>=0?Lo(Zo[Ql]):Lo(yo);for(let _l=0;_l=0;Un--){let yo=j[Un];if(Ws(yo)){if(yo.labelText===Re)return!0}else break}return!1}function mo(Re){if(j)if(Re)for(let Lt=j.length-1;Lt>=0;Lt--){let Un=j[Lt];if(Ws(Un)&&Un.labelText===Re)return Un.breakLabel;if(ss(Un)&&cd(Re,Lt-1))return Un.breakLabel}else for(let Lt=j.length-1;Lt>=0;Lt--){let Un=j[Lt];if(ss(Un))return Un.breakLabel}return 0}function la(Re){if(j)if(Re)for(let Lt=j.length-1;Lt>=0;Lt--){let Un=j[Lt];if(ml(Un)&&cd(Re,Lt-1))return Un.continueLabel}else for(let Lt=j.length-1;Lt>=0;Lt--){let Un=j[Lt];if(ml(Un))return Un.continueLabel}return 0}function dd(Re){if(Re!==void 0&&Re>0){Y===void 0&&(Y=[]);let Lt=t.createNumericLiteral(Number.MAX_SAFE_INTEGER);return Y[Re]===void 0?Y[Re]=[Lt]:Y[Re].push(Lt),Lt}return t.createOmittedExpression()}function bs(Re){let Lt=t.createNumericLiteral(Re);return n4(Lt,3,Q9e(Re)),Lt}function Ca(Re,Lt){return x.assertLessThan(0,Re,"Invalid label"),at(t.createReturnStatement(t.createArrayLiteralExpression([bs(3),dd(Re)])),Lt)}function ul(Re,Lt){return at(t.createReturnStatement(t.createArrayLiteralExpression(Re?[bs(2),Re]:[bs(2)])),Lt)}function Nf(Re){return at(t.createCallExpression(t.createPropertyAccessExpression(me,"sent"),void 0,[]),Re)}function ac(){de(0)}function xl(Re){Re?de(1,[Re]):ac()}function al(Re,Lt,Un){de(2,[Re,Lt],Un)}function Lo(Re,Lt){de(3,[Re],Lt)}function tn(Re,Lt,Un){de(4,[Re,Lt],Un)}function Fs(Re,Lt,Un){de(5,[Re,Lt],Un)}function nd(Re,Lt){de(7,[Re],Lt)}function ud(Re,Lt){de(6,[Re],Lt)}function Ep(Re,Lt){de(8,[Re],Lt)}function Rs(Re,Lt){de(9,[Re],Lt)}function Ac(){de(10)}function de(Re,Lt,Un){ce===void 0&&(ce=[],z=[],Z=[]),K===void 0&&Ne(We());let yo=ce.length;ce[yo]=Re,z[yo]=Lt,Z[yo]=Un}function $(){ge=0,q=0,J=void 0,re=!1,pe=!1,xe=void 0,fe=void 0,ne=void 0,he=void 0,Ce=void 0;let Re=Pe();return r().createGeneratorHelper(lr(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,me)],void 0,t.createBlock(Re,Re.length>0)),1048576))}function Pe(){if(ce){for(let Re=0;Re=0;Lt--){let Un=Ce[Lt];fe=[t.createWithStatement(Un.expression,t.createBlock(fe))]}if(he){let{startLabel:Lt,catchLabel:Un,finallyLabel:yo,endLabel:Xo}=he;fe.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(me,"trys"),"push"),void 0,[t.createArrayLiteralExpression([dd(Lt),dd(Un),dd(yo),dd(Xo)])]))),he=void 0}Re&&fe.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(me,"label"),t.createNumericLiteral(q+1))))}xe.push(t.createCaseClause(t.createNumericLiteral(q),fe||[])),fe=void 0}function zr(Re){if(K)for(let Lt=0;Ltr.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(gr(Ne))),We),r.createVoidZero())));Tn(Me,$e(D.externalHelpersImportDeclaration,J,Hi)),Hr(Me,zn(U.statements,J,Hi,k)),q(Me,!1),Jh(Me,s());let ie=r.updateSourceFile(U,at(r.createNodeArray(Me),U.statements));return Fg(ie,e.readEmitHelpers()),ie}function ce(U){let Me=r.createIdentifier("define"),Nt=Uk(r,U,h,d),k=Jf(U)&&U,{aliasedModuleNames:ie,unaliasedModuleNames:H,importAliasNames:ue}=Z(U,!0),We=r.updateSourceFile(U,at(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(Me,void 0,[...Nt?[Nt]:[],r.createArrayLiteralExpression(k?Xe:[r.createStringLiteral("require"),r.createStringLiteral("exports"),...ie,...H]),k?k.statements.length?k.statements[0].expression:r.createObjectLiteralExpression():r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"require"),r.createParameterDeclaration(void 0,void 0,"exports"),...ue],void 0,ge(U))]))]),U.statements));return Fg(We,e.readEmitHelpers()),We}function z(U){let{aliasedModuleNames:Me,unaliasedModuleNames:Nt,importAliasNames:k}=Z(U,!1),ie=Uk(r,U,h,d),H=r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"factory")],void 0,at(r.createBlock([r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("module"),"object"),r.createTypeCheck(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),"object")),r.createBlock([r.createVariableStatement(void 0,[r.createVariableDeclaration("v",void 0,void 0,r.createCallExpression(r.createIdentifier("factory"),void 0,[r.createIdentifier("require"),r.createIdentifier("exports")]))]),lr(r.createIfStatement(r.createStrictInequality(r.createIdentifier("v"),r.createIdentifier("undefined")),r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),r.createIdentifier("v")))),1)]),r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("define"),"function"),r.createPropertyAccessExpression(r.createIdentifier("define"),"amd")),r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("define"),void 0,[...ie?[ie]:[],r.createArrayLiteralExpression([r.createStringLiteral("require"),r.createStringLiteral("exports"),...Me,...Nt]),r.createIdentifier("factory")]))])))],!0),void 0)),ue=r.updateSourceFile(U,at(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(H,void 0,[r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"require"),r.createParameterDeclaration(void 0,void 0,"exports"),...k],void 0,ge(U))]))]),U.statements));return Fg(ue,e.readEmitHelpers()),ue}function Z(U,Me){let Nt=[],k=[],ie=[];for(let H of U.amdDependencies)H.name?(Nt.push(r.createStringLiteral(H.path)),ie.push(r.createParameterDeclaration(void 0,void 0,H.name))):k.push(r.createStringLiteral(H.path));for(let H of D.externalImports){let ue=s1(r,H,N,h,p,d),We=FR(r,H,N);ue&&(Me&&We?(lr(We,8),Nt.push(ue),ie.push(r.createParameterDeclaration(void 0,void 0,We))):k.push(ue))}return{aliasedModuleNames:Nt,unaliasedModuleNames:k,importAliasNames:ie}}function me(U){if(td(U)||Xl(U)||!s1(r,U,N,h,p,d))return;let Me=FR(r,U,N),Nt=So(U,Me);if(Nt!==Me)return r.createExpressionStatement(r.createAssignment(Me,Nt))}function ge(U){o();let Me=[],Nt=r.copyPrologue(U.statements,Me,!d.noImplicitUseStrict,J);Y()&&Tn(Me,Rt()),Nn(D.exportedNames)&&Tn(Me,r.createExpressionStatement(tu(D.exportedNames,(ie,H)=>r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(gr(H))),ie),r.createVoidZero()))),Tn(Me,$e(D.externalHelpersImportDeclaration,J,Hi)),y===2&&Hr(Me,to(D.externalImports,me)),Hr(Me,zn(U.statements,J,Hi,Nt)),q(Me,!0),Jh(Me,s());let k=r.createBlock(Me,!0);return j&&VI(k,zIe),k}function q(U,Me){if(D.exportEquals){let Nt=$e(D.exportEquals.expression,xe,ht);if(Nt)if(Me){let k=r.createReturnStatement(Nt);at(k,D.exportEquals),lr(k,3840),U.push(k)}else{let k=r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),Nt));at(k,D.exportEquals),lr(k,3072),U.push(k)}}}function J(U){switch(U.kind){case 272:return Qn(U);case 271:return Er(U);case 278:return on(U);case 277:return Ye(U);default:return re(U)}}function re(U){switch(U.kind){case 243:return si(U);case 262:return Ot(U);case 263:return In(U);case 248:return Ce(U,!0);case 249:return Ge(U);case 250:return ve(U);case 246:return Ae(U);case 247:return De(U);case 256:return Le(U);case 254:return Et(U);case 245:return be(U);case 255:return ze(U);case 269:return tt(U);case 296:return Wt(U);case 297:return _t(U);case 258:return Je(U);case 299:return pt(U);case 241:return Zt(U);default:return xe(U)}}function pe(U,Me){if(!(U.transformFlags&276828160))return U;switch(U.kind){case 248:return Ce(U,!1);case 244:return en(U);case 217:return Dn(U,Me);case 360:return Kn(U,Me);case 213:if(Op(U)&&N.impliedNodeFormat===void 0)return Xt(U);break;case 226:if(ky(U))return he(U,Me);break;case 224:case 225:return pn(U,Me)}return Sn(U,xe,e)}function xe(U){return pe(U,!1)}function fe(U){return pe(U,!0)}function ne(U){if(Ma(U))for(let Me of U.properties)switch(Me.kind){case 303:if(ne(Me.initializer))return!0;break;case 304:if(ne(Me.name))return!0;break;case 305:if(ne(Me.expression))return!0;break;case 174:case 177:case 178:return!1;default:x.assertNever(Me,"Unhandled object member kind")}else if(uu(U)){for(let Me of U.elements)if(Jm(Me)){if(ne(Me.expression))return!0}else if(ne(Me))return!0}else if(Fe(U))return Nn(un(U))>(X4(U)?1:0);return!1}function he(U,Me){return ne(U.left)?UT(U,xe,e,0,!Me,yi):Sn(U,xe,e)}function Ce(U,Me){if(Me&&U.initializer&&Uc(U.initializer)&&!(U.initializer.flags&7)){let Nt=vn(void 0,U.initializer,!1);if(Nt){let k=[],ie=$e(U.initializer,fe,Uc),H=r.createVariableStatement(void 0,ie);k.push(H),Hr(k,Nt);let ue=$e(U.condition,xe,ht),We=$e(U.incrementor,fe,ht),Ne=Tu(U.statement,Me?re:xe,e);return k.push(r.updateForStatement(U,void 0,ue,We,Ne)),k}}return r.updateForStatement(U,$e(U.initializer,fe,vf),$e(U.condition,xe,ht),$e(U.incrementor,fe,ht),Tu(U.statement,Me?re:xe,e))}function Ge(U){if(Uc(U.initializer)&&!(U.initializer.flags&7)){let Me=vn(void 0,U.initializer,!0);if(gt(Me)){let Nt=$e(U.initializer,fe,vf),k=$e(U.expression,xe,ht),ie=Tu(U.statement,re,e),H=Ko(ie)?r.updateBlock(ie,[...Me,...ie.statements]):r.createBlock([...Me,ie],!0);return r.updateForInStatement(U,Nt,k,H)}}return r.updateForInStatement(U,$e(U.initializer,fe,vf),$e(U.expression,xe,ht),Tu(U.statement,re,e))}function ve(U){if(Uc(U.initializer)&&!(U.initializer.flags&7)){let Me=vn(void 0,U.initializer,!0),Nt=$e(U.initializer,fe,vf),k=$e(U.expression,xe,ht),ie=Tu(U.statement,re,e);return gt(Me)&&(ie=Ko(ie)?r.updateBlock(ie,[...Me,...ie.statements]):r.createBlock([...Me,ie],!0)),r.updateForOfStatement(U,U.awaitModifier,Nt,k,ie)}return r.updateForOfStatement(U,U.awaitModifier,$e(U.initializer,fe,vf),$e(U.expression,xe,ht),Tu(U.statement,re,e))}function Ae(U){return r.updateDoStatement(U,Tu(U.statement,re,e),$e(U.expression,xe,ht))}function De(U){return r.updateWhileStatement(U,$e(U.expression,xe,ht),Tu(U.statement,re,e))}function Le(U){return r.updateLabeledStatement(U,U.label,x.checkDefined($e(U.statement,re,Hi,r.liftToBlock)))}function Et(U){return r.updateWithStatement(U,$e(U.expression,xe,ht),x.checkDefined($e(U.statement,re,Hi,r.liftToBlock)))}function be(U){return r.updateIfStatement(U,$e(U.expression,xe,ht),x.checkDefined($e(U.thenStatement,re,Hi,r.liftToBlock)),$e(U.elseStatement,re,Hi,r.liftToBlock))}function ze(U){return r.updateSwitchStatement(U,$e(U.expression,xe,ht),x.checkDefined($e(U.caseBlock,re,pP)))}function tt(U){return r.updateCaseBlock(U,zn(U.clauses,re,mF))}function Wt(U){return r.updateCaseClause(U,$e(U.expression,xe,ht),zn(U.statements,re,Hi))}function _t(U){return Sn(U,re,e)}function Je(U){return Sn(U,re,e)}function pt(U){return r.updateCatchClause(U,U.variableDeclaration,x.checkDefined($e(U.block,re,Ko)))}function Zt(U){return U=Sn(U,re,e),U}function en(U){return r.updateExpressionStatement(U,$e(U.expression,fe,ht))}function Dn(U,Me){return r.updateParenthesizedExpression(U,$e(U.expression,Me?fe:xe,ht))}function Kn(U,Me){return r.updatePartiallyEmittedExpression(U,$e(U.expression,Me?fe:xe,ht))}function pn(U,Me){if((U.operator===46||U.operator===47)&&Fe(U.operand)&&!rl(U.operand)&&!Bg(U.operand)&&!$j(U.operand)){let Nt=un(U.operand);if(Nt){let k,ie=$e(U.operand,xe,ht);qv(U)?ie=r.updatePrefixUnaryExpression(U,ie):(ie=r.updatePostfixUnaryExpression(U,ie),Me||(k=r.createTempVariable(l),ie=r.createAssignment(k,ie),at(ie,U)),ie=r.createComma(ie,r.cloneNode(U.operand)),at(ie,U));for(let H of Nt)w[rs(ie)]=!0,ie=ke(H,ie),at(ie,U);return k&&(w[rs(ie)]=!0,ie=r.createComma(ie,k),at(ie,U)),ie}}return Sn(U,xe,e)}function Xt(U){if(y===0&&m>=7)return Sn(U,xe,e);let Me=s1(r,U,N,h,p,d),Nt=$e(Xc(U.arguments),xe,ht),k=Me&&(!Nt||!Da(Nt)||Nt.text!==Me.text)?Me:Nt,ie=!!(U.transformFlags&16384);switch(d.module){case 2:return hi(k,ie);case 3:return Kt(k??r.createVoidZero(),ie);case 1:default:return uo(k)}}function Kt(U,Me){if(j=!0,tS(U)){let Nt=rl(U)?U:Da(U)?r.createStringLiteralFromNode(U):lr(at(r.cloneNode(U),U),3072);return r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,uo(U),void 0,hi(Nt,Me))}else{let Nt=r.createTempVariable(l);return r.createComma(r.createAssignment(Nt,U),r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,uo(Nt,!0),void 0,hi(Nt,Me)))}}function hi(U,Me){let Nt=r.createUniqueName("resolve"),k=r.createUniqueName("reject"),ie=[r.createParameterDeclaration(void 0,void 0,Nt),r.createParameterDeclaration(void 0,void 0,k)],H=r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("require"),void 0,[r.createArrayLiteralExpression([U||r.createOmittedExpression()]),Nt,k]))]),ue;m>=2?ue=r.createArrowFunction(void 0,void 0,ie,void 0,void 0,H):(ue=r.createFunctionExpression(void 0,void 0,void 0,void 0,ie,void 0,H),Me&&lr(ue,16));let We=r.createNewExpression(r.createIdentifier("Promise"),void 0,[ue]);return mh(d)?r.createCallExpression(r.createPropertyAccessExpression(We,r.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):We}function uo(U,Me){let Nt=U&&!L_(U)&&!Me,k=r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Promise"),"resolve"),void 0,Nt?m>=2?[r.createTemplateExpression(r.createTemplateHead(""),[r.createTemplateSpan(U,r.createTemplateTail(""))])]:[r.createCallExpression(r.createPropertyAccessExpression(r.createStringLiteral(""),"concat"),void 0,[U])]:[]),ie=r.createCallExpression(r.createIdentifier("require"),void 0,Nt?[r.createIdentifier("s")]:U?[U]:[]);mh(d)&&(ie=i().createImportStarHelper(ie));let H=Nt?[r.createParameterDeclaration(void 0,void 0,"s")]:[],ue;return m>=2?ue=r.createArrowFunction(void 0,void 0,H,void 0,void 0,ie):ue=r.createFunctionExpression(void 0,void 0,void 0,void 0,H,void 0,r.createBlock([r.createReturnStatement(ie)])),r.createCallExpression(r.createPropertyAccessExpression(k,"then"),void 0,[ue])}function Li(U,Me){return!mh(d)||ym(U)&2?Me:$se(U)?i().createImportStarHelper(Me):Me}function So(U,Me){return!mh(d)||ym(U)&2?Me:W3(U)?i().createImportStarHelper(Me):DK(U)?i().createImportDefaultHelper(Me):Me}function Qn(U){let Me,Nt=nR(U);if(y!==2)if(U.importClause){let k=[];Nt&&!II(U)?k.push(r.createVariableDeclaration(r.cloneNode(Nt.name),void 0,void 0,So(U,Ur(U)))):(k.push(r.createVariableDeclaration(r.getGeneratedNameForNode(U),void 0,void 0,So(U,Ur(U)))),Nt&&II(U)&&k.push(r.createVariableDeclaration(r.cloneNode(Nt.name),void 0,void 0,r.getGeneratedNameForNode(U)))),Me=Tn(Me,xr(at(r.createVariableStatement(void 0,r.createVariableDeclarationList(k,m>=2?2:0)),U),U))}else return xr(at(r.createExpressionStatement(Ur(U)),U),U);else Nt&&II(U)&&(Me=Tn(Me,r.createVariableStatement(void 0,r.createVariableDeclarationList([xr(at(r.createVariableDeclaration(r.cloneNode(Nt.name),void 0,void 0,r.getGeneratedNameForNode(U)),U),U)],m>=2?2:0))));return Me=Io(Me,U),rh(Me)}function Ur(U){let Me=s1(r,U,N,h,p,d),Nt=[];return Me&&Nt.push(Me),r.createCallExpression(r.createIdentifier("require"),void 0,Nt)}function Er(U){x.assert(aE(U),"import= for internal module references should be handled in an earlier transformer.");let Me;return y!==2?$r(U,32)?Me=Tn(Me,xr(at(r.createExpressionStatement(ke(U.name,Ur(U))),U),U)):Me=Tn(Me,xr(at(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.cloneNode(U.name),void 0,void 0,Ur(U))],m>=2?2:0)),U),U)):$r(U,32)&&(Me=Tn(Me,xr(at(r.createExpressionStatement(ke(r.getExportName(U),r.getLocalName(U))),U),U))),Me=ua(Me,U),rh(Me)}function on(U){if(!U.moduleSpecifier)return;let Me=r.getGeneratedNameForNode(U);if(U.exportClause&&xf(U.exportClause)){let Nt=[];y!==2&&Nt.push(xr(at(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(Me,void 0,void 0,Ur(U))])),U),U));for(let k of U.exportClause.elements)if(m===0)Nt.push(xr(at(r.createExpressionStatement(i().createCreateBindingHelper(Me,r.createStringLiteralFromNode(k.propertyName||k.name),k.propertyName?r.createStringLiteralFromNode(k.name):void 0)),k),k));else{let ie=!!mh(d)&&!(ym(U)&2)&&gr(k.propertyName||k.name)==="default",H=r.createPropertyAccessExpression(ie?i().createImportDefaultHelper(Me):Me,k.propertyName||k.name);Nt.push(xr(at(r.createExpressionStatement(ke(r.getExportName(k),H,void 0,!0)),k),k))}return rh(Nt)}else if(U.exportClause){let Nt=[];return Nt.push(xr(at(r.createExpressionStatement(ke(r.cloneNode(U.exportClause.name),Li(U,y!==2?Ur(U):IF(U)?Me:r.createIdentifier(gr(U.exportClause.name))))),U),U)),rh(Nt)}else return xr(at(r.createExpressionStatement(i().createExportStarHelper(y!==2?Ur(U):Me)),U),U)}function Ye(U){if(!U.isExportEquals)return ae(r.createIdentifier("default"),$e(U.expression,xe,ht),U,!0)}function Ot(U){let Me;return $r(U,32)?Me=Tn(Me,xr(at(r.createFunctionDeclaration(zn(U.modifiers,st,Sa),U.asteriskToken,r.getDeclarationName(U,!0,!0),void 0,zn(U.parameters,xe,Ao),void 0,Sn(U.body,xe,e)),U),U)):Me=Tn(Me,Sn(U,xe,e)),Me=Be(Me,U),rh(Me)}function In(U){let Me;return $r(U,32)?Me=Tn(Me,xr(at(r.createClassDeclaration(zn(U.modifiers,st,il),r.getDeclarationName(U,!0,!0),void 0,zn(U.heritageClauses,xe,Zp),zn(U.members,xe,$c)),U),U)):Me=Tn(Me,Sn(U,xe,e)),Me=Be(Me,U),rh(Me)}function si(U){let Me,Nt,k;if($r(U,32)){let ie,H=!1;for(let ue of U.declarationList.declarations)if(Fe(ue.name)&&Bg(ue.name))if(ie||(ie=zn(U.modifiers,st,Sa)),ue.initializer){let We=r.updateVariableDeclaration(ue,ue.name,void 0,void 0,ke(ue.name,$e(ue.initializer,xe,ht)));Nt=Tn(Nt,We)}else Nt=Tn(Nt,ue);else if(ue.initializer)if(!Qo(ue.name)&&(Os(ue.initializer)||Ps(ue.initializer)||Zc(ue.initializer))){let We=r.createAssignment(at(r.createPropertyAccessExpression(r.createIdentifier("exports"),ue.name),ue.name),r.createIdentifier(Xf(ue.name))),Ne=r.createVariableDeclaration(ue.name,ue.exclamationToken,ue.type,$e(ue.initializer,xe,ht));Nt=Tn(Nt,Ne),k=Tn(k,We),H=!0}else k=Tn(k,$i(ue));if(Nt&&(Me=Tn(Me,r.updateVariableStatement(U,ie,r.updateVariableDeclarationList(U.declarationList,Nt)))),k){let ue=xr(at(r.createExpressionStatement(r.inlineExpressions(k)),U),U);H&&Tk(ue),Me=Tn(Me,ue)}}else Me=Tn(Me,Sn(U,xe,e));return Me=Ba(Me,U),rh(Me)}function yi(U,Me,Nt){let k=un(U);if(k){let ie=X4(U)?Me:r.createAssignment(U,Me);for(let H of k)lr(ie,8),ie=ke(H,ie,Nt);return ie}return r.createAssignment(U,Me)}function $i(U){return Qo(U.name)?UT($e(U,xe,rk),xe,e,0,!1,yi):r.createAssignment(at(r.createPropertyAccessExpression(r.createIdentifier("exports"),U.name),U.name),U.initializer?$e(U.initializer,xe,ht):r.createVoidZero())}function Io(U,Me){if(D.exportEquals)return U;let Nt=Me.importClause;if(!Nt)return U;let k=new f1;Nt.name&&(U=ct(U,k,Nt));let ie=Nt.namedBindings;if(ie)switch(ie.kind){case 274:U=ct(U,k,ie);break;case 275:for(let H of ie.elements)U=ct(U,k,H,!0);break}return U}function ua(U,Me){return D.exportEquals?U:ct(U,new f1,Me)}function Ba(U,Me){return vn(U,Me.declarationList,!1)}function vn(U,Me,Nt){if(D.exportEquals)return U;for(let k of Me.declarations)U=kn(U,k,Nt);return U}function kn(U,Me,Nt){if(D.exportEquals)return U;if(Qo(Me.name))for(let k of Me.name.elements)jc(k)||(U=kn(U,k,Nt));else!rl(Me.name)&&(!wi(Me)||Me.initializer||Nt)&&(U=ct(U,new f1,Me));return U}function Be(U,Me){if(D.exportEquals)return U;let Nt=new f1;if($r(Me,32)){let k=$r(Me,2048)?r.createIdentifier("default"):r.getDeclarationName(Me);U=lt(U,Nt,k,r.getLocalName(Me),Me)}return Me.name&&(U=ct(U,Nt,Me)),U}function ct(U,Me,Nt,k){let ie=r.getDeclarationName(Nt),H=D.exportSpecifiers.get(ie);if(H)for(let ue of H)U=lt(U,Me,ue.name,ie,ue.name,void 0,k);return U}function lt(U,Me,Nt,k,ie,H,ue){return Me.has(Nt)||(Me.set(Nt,!0),U=Tn(U,ae(Nt,k,ie,H,ue))),U}function Rt(){let U;return m===0?U=r.createExpressionStatement(ke(r.createIdentifier("__esModule"),r.createTrue())):U=r.createExpressionStatement(r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteral("__esModule"),r.createObjectLiteralExpression([r.createPropertyAssignment("value",r.createTrue())])])),lr(U,2097152),U}function ae(U,Me,Nt,k,ie){let H=at(r.createExpressionStatement(ke(U,Me,void 0,ie)),Nt);return Jd(H),k||lr(H,3072),H}function ke(U,Me,Nt,k){return at(k&&m!==0?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteralFromNode(U),r.createObjectLiteralExpression([r.createPropertyAssignment("enumerable",r.createTrue()),r.createPropertyAssignment("get",r.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,r.createBlock([r.createReturnStatement(Me)])))])]):r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(U)),Me),Nt)}function st(U){switch(U.kind){case 95:case 90:return}return U}function G(U,Me,Nt){Me.kind===312?(N=Me,D=A[wd(N)],S(U,Me,Nt),N=void 0,D=void 0):S(U,Me,Nt)}function et(U,Me){return Me=E(U,Me),Me.id&&w[Me.id]?Me:U===1?He(Me):Zu(Me)?Tt(Me):Me}function Tt(U){let Me=U.name,Nt=hn(Me);if(Nt!==Me){if(U.objectAssignmentInitializer){let k=r.createAssignment(Nt,U.objectAssignmentInitializer);return at(r.createPropertyAssignment(Me,k),U)}return at(r.createPropertyAssignment(Me,Nt),U)}return U}function He(U){switch(U.kind){case 80:return hn(U);case 213:return ut(U);case 215:return Ft(U);case 226:return dn(U)}return U}function ut(U){if(Fe(U.expression)){let Me=hn(U.expression);if(w[rs(Me)]=!0,!Fe(Me)&&!(za(U.expression)&8192))return BI(r.updateCallExpression(U,Me,void 0,U.arguments),16)}return U}function Ft(U){if(Fe(U.tag)){let Me=hn(U.tag);if(w[rs(Me)]=!0,!Fe(Me)&&!(za(U.tag)&8192))return BI(r.updateTaggedTemplateExpression(U,Me,void 0,U.template),16)}return U}function hn(U){var Me,Nt;if(za(U)&8192){let k=jk(N);return k?r.createPropertyAccessExpression(k,U):U}else if(!(rl(U)&&!(U.emitNode.autoGenerate.flags&64))&&!Bg(U)){let k=p.getReferencedExportContainer(U,X4(U));if(k&&k.kind===312)return at(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(U)),U);let ie=p.getReferencedImportDeclaration(U);if(ie){if(gh(ie))return at(r.createPropertyAccessExpression(r.getGeneratedNameForNode(ie.parent),r.createIdentifier("default")),U);if(Qu(ie)){let H=ie.propertyName||ie.name;return at(r.createPropertyAccessExpression(r.getGeneratedNameForNode(((Nt=(Me=ie.parent)==null?void 0:Me.parent)==null?void 0:Nt.parent)||ie),r.cloneNode(H)),U)}}}return U}function dn(U){if(Ly(U.operatorToken.kind)&&Fe(U.left)&&(!rl(U.left)||t2(U.left))&&!Bg(U.left)){let Me=un(U.left);if(Me){let Nt=U;for(let k of Me)w[rs(Nt)]=!0,Nt=ke(k,Nt,U);return Nt}}return U}function un(U){if(rl(U)){if(t2(U)){let Me=D?.exportSpecifiers.get(U);if(Me){let Nt=[];for(let k of Me)Nt.push(k.name);return Nt}}}else{let Me=p.getReferencedImportDeclaration(U);if(Me)return D?.exportedBindings[wd(Me)];let Nt=new Set,k=p.getReferencedValueDeclarations(U);if(k){for(let ie of k){let H=D?.exportedBindings[wd(ie)];if(H)for(let ue of H)Nt.add(ue)}if(Nt.size)return Wo(Nt)}}}}var zIe,eVe=bt({"src/compiler/transformers/module/module.ts"(){"use strict";ea(),zIe={name:"typescript:dynamicimport-sync-require",scoped:!0,text:` - var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}}});function Nle(e){let{factory:t,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,s=e.getCompilerOptions(),l=e.getEmitResolver(),d=e.getEmitHost(),p=e.onSubstituteNode,h=e.onEmitNode;e.onSubstituteNode=ke,e.onEmitNode=ae,e.enableSubstitution(80),e.enableSubstitution(304),e.enableSubstitution(226),e.enableSubstitution(236),e.enableEmitNotification(312);let m=[],y=[],E=[],S=[],A,N,D,w,j,K,Y;return Im(e,B);function B(U){if(U.isDeclarationFile||!(TI(U,s)||U.transformFlags&8388608))return U;let Me=wd(U);A=U,K=U,N=m[Me]=CK(e,U),D=t.createUniqueName("exports"),y[Me]=D,w=S[Me]=t.createUniqueName("context");let Nt=ce(N.externalImports),k=z(U,Nt),ie=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,D),t.createParameterDeclaration(void 0,void 0,w)],void 0,k),H=Uk(t,U,d,s),ue=t.createArrayLiteralExpression(mn(Nt,Ne=>Ne.name)),We=lr(t.updateSourceFile(U,at(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,H?[H,ue,ie]:[ue,ie]))]),U.statements)),2048);return xs(s)||qoe(We,k,Ne=>!Ne.scoped),Y&&(E[Me]=Y,Y=void 0),A=void 0,N=void 0,D=void 0,w=void 0,j=void 0,K=void 0,We}function ce(U){let Me=new Map,Nt=[];for(let k of U){let ie=s1(t,k,A,d,l,s);if(ie){let H=ie.text,ue=Me.get(H);ue!==void 0?Nt[ue].externalImports.push(k):(Me.set(H,Nt.length),Nt.push({name:ie,externalImports:[k]}))}}return Nt}function z(U,Me){let Nt=[];r();let k=cu(s,"alwaysStrict")||!s.noImplicitUseStrict&&oc(A),ie=t.copyPrologue(U.statements,Nt,k,q);Nt.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(w,t.createPropertyAccessExpression(w,"id")))]))),$e(N.externalHelpersImportDeclaration,q,Hi);let H=zn(U.statements,q,Hi,ie);Hr(Nt,j),Jh(Nt,i());let ue=Z(Nt),We=U.transformFlags&2097152?t.createModifiersFromModifierFlags(1024):void 0,Ne=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",ge(ue,Me)),t.createPropertyAssignment("execute",t.createFunctionExpression(We,void 0,void 0,void 0,[],void 0,t.createBlock(H,!0)))],!0);return Nt.push(t.createReturnStatement(Ne)),t.createBlock(Nt,!0)}function Z(U){if(!N.hasExportStarsToExportValues)return;if(!N.exportedNames&&N.exportSpecifiers.size===0){let ie=!1;for(let H of N.externalImports)if(H.kind===278&&H.exportClause){ie=!0;break}if(!ie){let H=me(void 0);return U.push(H),H.name}}let Me=[];if(N.exportedNames)for(let ie of N.exportedNames)ie.escapedText!=="default"&&Me.push(t.createPropertyAssignment(t.createStringLiteralFromNode(ie),t.createTrue()));let Nt=t.createUniqueName("exportedNames");U.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Nt,void 0,void 0,t.createObjectLiteralExpression(Me,!0))])));let k=me(Nt);return U.push(k),k.name}function me(U){let Me=t.createUniqueName("exportStar"),Nt=t.createIdentifier("m"),k=t.createIdentifier("n"),ie=t.createIdentifier("exports"),H=t.createStrictInequality(k,t.createStringLiteral("default"));return U&&(H=t.createLogicalAnd(H,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(U,"hasOwnProperty"),void 0,[k])))),t.createFunctionDeclaration(void 0,void 0,Me,void 0,[t.createParameterDeclaration(void 0,void 0,Nt)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ie,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(k)]),Nt,t.createBlock([lr(t.createIfStatement(H,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(ie,k),t.createElementAccessExpression(Nt,k)))),1)])),t.createExpressionStatement(t.createCallExpression(D,void 0,[ie]))],!0))}function ge(U,Me){let Nt=[];for(let k of Me){let ie=gn(k.externalImports,We=>FR(t,We,A)),H=ie?t.getGeneratedNameForNode(ie):t.createUniqueName(""),ue=[];for(let We of k.externalImports){let Ne=FR(t,We,A);switch(We.kind){case 272:if(!We.importClause)break;case 271:x.assert(Ne!==void 0),ue.push(t.createExpressionStatement(t.createAssignment(Ne,H))),$r(We,32)&&ue.push(t.createExpressionStatement(t.createCallExpression(D,void 0,[t.createStringLiteral(gr(Ne)),H])));break;case 278:if(x.assert(Ne!==void 0),We.exportClause)if(xf(We.exportClause)){let It=[];for(let Dt of We.exportClause.elements)It.push(t.createPropertyAssignment(t.createStringLiteral(gr(Dt.name)),t.createElementAccessExpression(H,t.createStringLiteral(gr(Dt.propertyName||Dt.name)))));ue.push(t.createExpressionStatement(t.createCallExpression(D,void 0,[t.createObjectLiteralExpression(It,!0)])))}else ue.push(t.createExpressionStatement(t.createCallExpression(D,void 0,[t.createStringLiteral(gr(We.exportClause.name)),H])));else ue.push(t.createExpressionStatement(t.createCallExpression(U,void 0,[H])));break}}Nt.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,H)],void 0,t.createBlock(ue,!0)))}return t.createArrayLiteralExpression(Nt,!0)}function q(U){switch(U.kind){case 272:return J(U);case 271:return pe(U);case 278:return re(U);case 277:return xe(U);default:return en(U)}}function J(U){let Me;return U.importClause&&o(FR(t,U,A)),rh(Et(Me,U))}function re(U){x.assertIsDefined(U)}function pe(U){x.assert(aE(U),"import= for internal module references should be handled in an earlier transformer.");let Me;return o(FR(t,U,A)),rh(be(Me,U))}function xe(U){if(U.isExportEquals)return;let Me=$e(U.expression,$i,ht);return pt(t.createIdentifier("default"),Me,!0)}function fe(U){$r(U,32)?j=Tn(j,t.updateFunctionDeclaration(U,zn(U.modifiers,Rt,il),U.asteriskToken,t.getDeclarationName(U,!0,!0),void 0,zn(U.parameters,$i,Ao),void 0,$e(U.body,$i,Ko))):j=Tn(j,Sn(U,$i,e)),j=Wt(j,U)}function ne(U){let Me,Nt=t.getLocalName(U);return o(Nt),Me=Tn(Me,at(t.createExpressionStatement(t.createAssignment(Nt,at(t.createClassExpression(zn(U.modifiers,Rt,il),U.name,void 0,zn(U.heritageClauses,$i,Zp),zn(U.members,$i,$c)),U))),U)),Me=Wt(Me,U),rh(Me)}function he(U){if(!Ge(U.declarationList))return $e(U,$i,Hi);let Me;if(v2(U.declarationList)||y2(U.declarationList)){let Nt=zn(U.modifiers,Rt,il),k=[];for(let H of U.declarationList.declarations)k.push(t.updateVariableDeclaration(H,t.getGeneratedNameForNode(H.name),void 0,void 0,ve(H,!1)));let ie=t.updateVariableDeclarationList(U.declarationList,k);Me=Tn(Me,t.updateVariableStatement(U,Nt,ie))}else{let Nt,k=$r(U,32);for(let ie of U.declarationList.declarations)ie.initializer?Nt=Tn(Nt,ve(ie,k)):Ce(ie);Nt&&(Me=Tn(Me,at(t.createExpressionStatement(t.inlineExpressions(Nt)),U)))}return Me=ze(Me,U,!1),rh(Me)}function Ce(U){if(Qo(U.name))for(let Me of U.name.elements)jc(Me)||Ce(Me);else o(t.cloneNode(U.name))}function Ge(U){return(za(U)&4194304)===0&&(K.kind===312||(Nl(U).flags&7)===0)}function ve(U,Me){let Nt=Me?Ae:De;return Qo(U.name)?UT(U,$i,e,0,!1,Nt):U.initializer?Nt(U.name,$e(U.initializer,$i,ht)):U.name}function Ae(U,Me,Nt){return Le(U,Me,Nt,!0)}function De(U,Me,Nt){return Le(U,Me,Nt,!1)}function Le(U,Me,Nt,k){return o(t.cloneNode(U)),k?Zt(U,dn(at(t.createAssignment(U,Me),Nt))):dn(at(t.createAssignment(U,Me),Nt))}function Et(U,Me){if(N.exportEquals)return U;let Nt=Me.importClause;if(!Nt)return U;Nt.name&&(U=_t(U,Nt));let k=Nt.namedBindings;if(k)switch(k.kind){case 274:U=_t(U,k);break;case 275:for(let ie of k.elements)U=_t(U,ie);break}return U}function be(U,Me){return N.exportEquals?U:_t(U,Me)}function ze(U,Me,Nt){if(N.exportEquals)return U;for(let k of Me.declarationList.declarations)(k.initializer||Nt)&&(U=tt(U,k,Nt));return U}function tt(U,Me,Nt){if(N.exportEquals)return U;if(Qo(Me.name))for(let k of Me.name.elements)jc(k)||(U=tt(U,k,Nt));else if(!rl(Me.name)){let k;Nt&&(U=Je(U,Me.name,t.getLocalName(Me)),k=gr(Me.name)),U=_t(U,Me,k)}return U}function Wt(U,Me){if(N.exportEquals)return U;let Nt;if($r(Me,32)){let k=$r(Me,2048)?t.createStringLiteral("default"):Me.name;U=Je(U,k,t.getLocalName(Me)),Nt=Xf(k)}return Me.name&&(U=_t(U,Me,Nt)),U}function _t(U,Me,Nt){if(N.exportEquals)return U;let k=t.getDeclarationName(Me),ie=N.exportSpecifiers.get(k);if(ie)for(let H of ie)H.name.escapedText!==Nt&&(U=Je(U,H.name,k));return U}function Je(U,Me,Nt,k){return U=Tn(U,pt(Me,Nt,k)),U}function pt(U,Me,Nt){let k=t.createExpressionStatement(Zt(U,Me));return Jd(k),Nt||lr(k,3072),k}function Zt(U,Me){let Nt=Fe(U)?t.createStringLiteralFromNode(U):U;return lr(Me,za(Me)|3072),ic(t.createCallExpression(D,void 0,[Nt,Me]),Me)}function en(U){switch(U.kind){case 243:return he(U);case 262:return fe(U);case 263:return ne(U);case 248:return Dn(U,!0);case 249:return Kn(U);case 250:return pn(U);case 246:return hi(U);case 247:return uo(U);case 256:return Li(U);case 254:return So(U);case 245:return Qn(U);case 255:return Ur(U);case 269:return Er(U);case 296:return on(U);case 297:return Ye(U);case 258:return Ot(U);case 299:return In(U);case 241:return si(U);default:return $i(U)}}function Dn(U,Me){let Nt=K;return K=U,U=t.updateForStatement(U,$e(U.initializer,Me?Kt:Io,vf),$e(U.condition,$i,ht),$e(U.incrementor,Io,ht),Tu(U.statement,Me?en:$i,e)),K=Nt,U}function Kn(U){let Me=K;return K=U,U=t.updateForInStatement(U,Kt(U.initializer),$e(U.expression,$i,ht),Tu(U.statement,en,e)),K=Me,U}function pn(U){let Me=K;return K=U,U=t.updateForOfStatement(U,U.awaitModifier,Kt(U.initializer),$e(U.expression,$i,ht),Tu(U.statement,en,e)),K=Me,U}function Xt(U){return Uc(U)&&Ge(U)}function Kt(U){if(Xt(U)){let Me;for(let Nt of U.declarations)Me=Tn(Me,ve(Nt,!1)),Nt.initializer||Ce(Nt);return Me?t.inlineExpressions(Me):t.createOmittedExpression()}else return $e(U,Io,vf)}function hi(U){return t.updateDoStatement(U,Tu(U.statement,en,e),$e(U.expression,$i,ht))}function uo(U){return t.updateWhileStatement(U,$e(U.expression,$i,ht),Tu(U.statement,en,e))}function Li(U){return t.updateLabeledStatement(U,U.label,x.checkDefined($e(U.statement,en,Hi,t.liftToBlock)))}function So(U){return t.updateWithStatement(U,$e(U.expression,$i,ht),x.checkDefined($e(U.statement,en,Hi,t.liftToBlock)))}function Qn(U){return t.updateIfStatement(U,$e(U.expression,$i,ht),x.checkDefined($e(U.thenStatement,en,Hi,t.liftToBlock)),$e(U.elseStatement,en,Hi,t.liftToBlock))}function Ur(U){return t.updateSwitchStatement(U,$e(U.expression,$i,ht),x.checkDefined($e(U.caseBlock,en,pP)))}function Er(U){let Me=K;return K=U,U=t.updateCaseBlock(U,zn(U.clauses,en,mF)),K=Me,U}function on(U){return t.updateCaseClause(U,$e(U.expression,$i,ht),zn(U.statements,en,Hi))}function Ye(U){return Sn(U,en,e)}function Ot(U){return Sn(U,en,e)}function In(U){let Me=K;return K=U,U=t.updateCatchClause(U,U.variableDeclaration,x.checkDefined($e(U.block,en,Ko))),K=Me,U}function si(U){let Me=K;return K=U,U=Sn(U,en,e),K=Me,U}function yi(U,Me){if(!(U.transformFlags&276828160))return U;switch(U.kind){case 248:return Dn(U,!1);case 244:return ua(U);case 217:return Ba(U,Me);case 360:return vn(U,Me);case 226:if(ky(U))return Be(U,Me);break;case 213:if(Op(U))return kn(U);break;case 224:case 225:return lt(U,Me)}return Sn(U,$i,e)}function $i(U){return yi(U,!1)}function Io(U){return yi(U,!0)}function ua(U){return t.updateExpressionStatement(U,$e(U.expression,Io,ht))}function Ba(U,Me){return t.updateParenthesizedExpression(U,$e(U.expression,Me?Io:$i,ht))}function vn(U,Me){return t.updatePartiallyEmittedExpression(U,$e(U.expression,Me?Io:$i,ht))}function kn(U){let Me=s1(t,U,A,d,l,s),Nt=$e(Xc(U.arguments),$i,ht),k=Me&&(!Nt||!Da(Nt)||Nt.text!==Me.text)?Me:Nt;return t.createCallExpression(t.createPropertyAccessExpression(w,t.createIdentifier("import")),void 0,k?[k]:[])}function Be(U,Me){return ct(U.left)?UT(U,$i,e,0,!Me):Sn(U,$i,e)}function ct(U){if(Mc(U,!0))return ct(U.left);if(Jm(U))return ct(U.expression);if(Ma(U))return gt(U.properties,ct);if(uu(U))return gt(U.elements,ct);if(Zu(U))return ct(U.name);if(mc(U))return ct(U.initializer);if(Fe(U)){let Me=l.getReferencedExportContainer(U);return Me!==void 0&&Me.kind===312}else return!1}function lt(U,Me){if((U.operator===46||U.operator===47)&&Fe(U.operand)&&!rl(U.operand)&&!Bg(U.operand)&&!$j(U.operand)){let Nt=Ft(U.operand);if(Nt){let k,ie=$e(U.operand,$i,ht);qv(U)?ie=t.updatePrefixUnaryExpression(U,ie):(ie=t.updatePostfixUnaryExpression(U,ie),Me||(k=t.createTempVariable(o),ie=t.createAssignment(k,ie),at(ie,U)),ie=t.createComma(ie,t.cloneNode(U.operand)),at(ie,U));for(let H of Nt)ie=Zt(H,dn(ie));return k&&(ie=t.createComma(ie,k),at(ie,U)),ie}}return Sn(U,$i,e)}function Rt(U){switch(U.kind){case 95:case 90:return}return U}function ae(U,Me,Nt){if(Me.kind===312){let k=wd(Me);A=Me,N=m[k],D=y[k],Y=E[k],w=S[k],Y&&delete E[k],h(U,Me,Nt),A=void 0,N=void 0,D=void 0,w=void 0,Y=void 0}else h(U,Me,Nt)}function ke(U,Me){return Me=p(U,Me),un(Me)?Me:U===1?et(Me):U===4?st(Me):Me}function st(U){switch(U.kind){case 304:return G(U)}return U}function G(U){var Me,Nt;let k=U.name;if(!rl(k)&&!Bg(k)){let ie=l.getReferencedImportDeclaration(k);if(ie){if(gh(ie))return at(t.createPropertyAssignment(t.cloneNode(k),t.createPropertyAccessExpression(t.getGeneratedNameForNode(ie.parent),t.createIdentifier("default"))),U);if(Qu(ie))return at(t.createPropertyAssignment(t.cloneNode(k),t.createPropertyAccessExpression(t.getGeneratedNameForNode(((Nt=(Me=ie.parent)==null?void 0:Me.parent)==null?void 0:Nt.parent)||ie),t.cloneNode(ie.propertyName||ie.name))),U)}}return U}function et(U){switch(U.kind){case 80:return Tt(U);case 226:return He(U);case 236:return ut(U)}return U}function Tt(U){var Me,Nt;if(za(U)&8192){let k=jk(A);return k?t.createPropertyAccessExpression(k,U):U}if(!rl(U)&&!Bg(U)){let k=l.getReferencedImportDeclaration(U);if(k){if(gh(k))return at(t.createPropertyAccessExpression(t.getGeneratedNameForNode(k.parent),t.createIdentifier("default")),U);if(Qu(k))return at(t.createPropertyAccessExpression(t.getGeneratedNameForNode(((Nt=(Me=k.parent)==null?void 0:Me.parent)==null?void 0:Nt.parent)||k),t.cloneNode(k.propertyName||k.name)),U)}}return U}function He(U){if(Ly(U.operatorToken.kind)&&Fe(U.left)&&(!rl(U.left)||t2(U.left))&&!Bg(U.left)){let Me=Ft(U.left);if(Me){let Nt=U;for(let k of Me)Nt=Zt(k,dn(Nt));return Nt}}return U}function ut(U){return Jx(U)?t.createPropertyAccessExpression(w,t.createIdentifier("meta")):U}function Ft(U){let Me,Nt=hn(U);if(Nt){let k=l.getReferencedExportContainer(U,!1);k&&k.kind===312&&(Me=Tn(Me,t.getDeclarationName(Nt))),Me=Hr(Me,N?.exportedBindings[wd(Nt)])}else if(rl(U)&&t2(U)){let k=N?.exportSpecifiers.get(U);if(k){let ie=[];for(let H of k)ie.push(H.name);return ie}}return Me}function hn(U){if(!rl(U)){let Me=l.getReferencedImportDeclaration(U);if(Me)return Me;let Nt=l.getReferencedValueDeclaration(U);if(Nt&&N?.exportedBindings[wd(Nt)])return Nt;let k=l.getReferencedValueDeclarations(U);if(k){for(let ie of k)if(ie!==Nt&&N?.exportedBindings[wd(ie)])return ie}return Nt}}function dn(U){return Y===void 0&&(Y=[]),Y[rs(U)]=!0,U}function un(U){return Y&&U.id&&Y[U.id]}}var tVe=bt({"src/compiler/transformers/module/system.ts"(){"use strict";ea()}});function GK(e){let{factory:t,getEmitHelperFactory:r}=e,i=e.getEmitHost(),o=e.getEmitResolver(),s=e.getCompilerOptions(),l=ns(s),d=e.onEmitNode,p=e.onSubstituteNode;e.onEmitNode=Y,e.onSubstituteNode=B,e.enableEmitNotification(312),e.enableSubstitution(80);let h,m,y;return Im(e,E);function E(z){if(z.isDeclarationFile)return z;if(oc(z)||em(s)){m=z,y=void 0;let Z=S(z);return m=void 0,y&&(Z=t.updateSourceFile(Z,at(t.createNodeArray(jV(Z.statements.slice(),y)),Z.statements))),!oc(z)||Ld(s)===200||gt(Z.statements,a2)?Z:t.updateSourceFile(Z,at(t.createNodeArray([...Z.statements,Bk(t)]),Z.statements))}return z}function S(z){let Z=bH(t,r(),z,s);if(Z){let me=[],ge=t.copyPrologue(z.statements,me);return Tn(me,Z),Hr(me,zn(z.statements,A,Hi,ge)),t.updateSourceFile(z,at(t.createNodeArray(me),z.statements))}else return Sn(z,A,e)}function A(z){switch(z.kind){case 271:return Ld(s)>=100?D(z):void 0;case 277:return j(z);case 278:return K(z)}return z}function N(z){let Z=s1(t,z,x.checkDefined(m),i,o,s),me=[];if(Z&&me.push(Z),Ld(s)===200)return t.createCallExpression(t.createIdentifier("require"),void 0,me);if(!y){let q=t.createUniqueName("_createRequire",48),J=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),q)])),t.createStringLiteral("module"),void 0),re=t.createUniqueName("__require",48),pe=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(re,void 0,void 0,t.createCallExpression(t.cloneNode(q),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],l>=2?2:0));y=[J,pe]}let ge=y[1].declarationList.declarations[0].name;return x.assertNode(ge,Fe),t.createCallExpression(t.cloneNode(ge),void 0,me)}function D(z){x.assert(aE(z),"import= for internal module references should be handled in an earlier transformer.");let Z;return Z=Tn(Z,xr(at(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(z.name),void 0,void 0,N(z))],l>=2?2:0)),z),z)),Z=w(Z,z),rh(Z)}function w(z,Z){return $r(Z,32)&&(z=Tn(z,t.createExportDeclaration(void 0,Z.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,gr(Z.name))])))),z}function j(z){return z.isExportEquals?Ld(s)===200?xr(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),z.expression)),z):void 0:z}function K(z){if(s.module!==void 0&&s.module>5||!z.exportClause||!yh(z.exportClause)||!z.moduleSpecifier)return z;let Z=z.exportClause.name,me=t.getGeneratedNameForNode(Z),ge=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport(me)),z.moduleSpecifier,z.attributes);xr(ge,z.exportClause);let q=IF(z)?t.createExportDefault(me):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,me,Z)]));return xr(q,z),[ge,q]}function Y(z,Z,me){Yi(Z)?((oc(Z)||em(s))&&s.importHelpers&&(h=new Map),d(z,Z,me),h=void 0):d(z,Z,me)}function B(z,Z){return Z=p(z,Z),h&&Fe(Z)&&za(Z)&8192?ce(Z):Z}function ce(z){let Z=gr(z),me=h.get(Z);return me||h.set(Z,me=t.createUniqueName(Z,48)),me}}var nVe=bt({"src/compiler/transformers/module/esnextAnd2015.ts"(){"use strict";ea()}});function Ple(e){let t=e.onSubstituteNode,r=e.onEmitNode,i=GK(e),o=e.onSubstituteNode,s=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=r;let l=BK(e),d=e.onSubstituteNode,p=e.onEmitNode;e.onSubstituteNode=m,e.onEmitNode=y,e.enableSubstitution(312),e.enableEmitNotification(312);let h;return A;function m(D,w){return Yi(w)?(h=w,t(D,w)):h?h.impliedNodeFormat===99?o(D,w):d(D,w):t(D,w)}function y(D,w,j){return Yi(w)&&(h=w),h?h.impliedNodeFormat===99?s(D,w,j):p(D,w,j):r(D,w,j)}function E(D){return D.impliedNodeFormat===99?i:l}function S(D){if(D.isDeclarationFile)return D;h=D;let w=E(D)(D);return h=void 0,x.assert(Yi(w)),w}function A(D){return D.kind===312?S(D):N(D)}function N(D){return e.factory.createBundle(mn(D.sourceFiles,S),D.prepends)}}var rVe=bt({"src/compiler/transformers/module/node.ts"(){"use strict";ea()}});function H3(e){return wi(e)||Uo(e)||_p(e)||Xa(e)||Cy(e)||Pv(e)||Mk(e)||XI(e)||Ul(e)||_h(e)||Ec(e)||Ao(e)||fl(e)||zy(e)||td(e)||Tm(e)||Pl(e)||G0(e)||kr(e)||Js(e)||dr(e)||qf(e)}function Mle(e){if(Cy(e)||Pv(e))return t;return _h(e)||Ul(e)?i:Gy(e);function t(s){let l=r(s);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function r(s){return ra(e)?s.errorModuleName?s.accessibility===2?f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?s.errorModuleName?s.accessibility===2?f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_property_0_of_exported_class_has_or_is_using_private_name_1:s.errorModuleName?f.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Property_0_of_exported_interface_has_or_is_using_private_name_1}function i(s){let l=o(s);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function o(s){return ra(e)?s.errorModuleName?s.accessibility===2?f.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?s.errorModuleName?s.accessibility===2?f.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_method_0_of_exported_class_has_or_is_using_private_name_1:s.errorModuleName?f.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function Gy(e){if(wi(e)||Uo(e)||_p(e)||kr(e)||Js(e)||dr(e)||Xa(e)||Pl(e))return r;return Cy(e)||Pv(e)?i:Mk(e)||XI(e)||Ul(e)||_h(e)||Ec(e)||G0(e)?o:Ao(e)?dp(e,e.parent)&&$r(e.parent,2)?r:s:fl(e)?d:zy(e)?p:td(e)?h:Tm(e)||qf(e)?m:x.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${x.formatSyntaxKind(e.kind)}`);function t(y){if(e.kind===260||e.kind===208)return y.errorModuleName?y.accessibility===2?f.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:f.Exported_variable_0_has_or_is_using_private_name_1;if(e.kind===172||e.kind===211||e.kind===212||e.kind===226||e.kind===171||e.kind===169&&$r(e.parent,2))return ra(e)?y.errorModuleName?y.accessibility===2?f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263||e.kind===169?y.errorModuleName?y.accessibility===2?f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_property_0_of_exported_class_has_or_is_using_private_name_1:y.errorModuleName?f.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Property_0_of_exported_interface_has_or_is_using_private_name_1}function r(y){let E=t(y);return E!==void 0?{diagnosticMessage:E,errorNode:e,typeName:e.name}:void 0}function i(y){let E;return e.kind===178?ra(e)?E=y.errorModuleName?f.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:E=y.errorModuleName?f.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:ra(e)?E=y.errorModuleName?y.accessibility===2?f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:E=y.errorModuleName?y.accessibility===2?f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:E,errorNode:e.name,typeName:e.name}}function o(y){let E;switch(e.kind){case 180:E=y.errorModuleName?f.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:E=y.errorModuleName?f.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:E=y.errorModuleName?f.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:ra(e)?E=y.errorModuleName?y.accessibility===2?f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:e.parent.kind===263?E=y.errorModuleName?y.accessibility===2?f.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:f.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:E=y.errorModuleName?f.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:E=y.errorModuleName?y.accessibility===2?f.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:f.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return x.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:E,errorNode:e.name||e}}function s(y){let E=l(y);return E!==void 0?{diagnosticMessage:E,errorNode:e,typeName:e.name}:void 0}function l(y){switch(e.parent.kind){case 176:return y.errorModuleName?y.accessibility===2?f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return y.errorModuleName?f.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return y.errorModuleName?f.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return y.errorModuleName?f.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return ra(e.parent)?y.errorModuleName?y.accessibility===2?f.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?y.errorModuleName?y.accessibility===2?f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:y.errorModuleName?f.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return y.errorModuleName?y.accessibility===2?f.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return y.errorModuleName?y.accessibility===2?f.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return x.fail(`Unknown parent for parameter: ${x.formatSyntaxKind(e.parent.kind)}`)}}function d(){let y;switch(e.parent.kind){case 263:y=f.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:y=f.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:y=f.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:y=f.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:y=f.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:ra(e.parent)?y=f.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?y=f.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:y=f.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:y=f.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:y=f.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:y=f.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return x.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:y,errorNode:e,typeName:e.name}}function p(){let y;return Sc(e.parent.parent)?y=Zp(e.parent)&&e.parent.token===119?f.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?f.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:f.extends_clause_of_exported_class_has_or_is_using_private_name_0:y=f.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:y,errorNode:e,typeName:Po(e.parent.parent)}}function h(){return{diagnosticMessage:f.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}function m(y){return{diagnosticMessage:y.errorModuleName?f.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:f.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:qf(e)?x.checkDefined(e.typeExpression):e.type,typeName:qf(e)?Po(e):e.name}}}var iVe=bt({"src/compiler/transformers/declarations/diagnostics.ts"(){"use strict";ea()}});function Lle(e,t,r){let i=e.getCompilerOptions();return Aw(t,e,L,i,r?[r]:jr(e.getSourceFiles(),uj),[VK],!1).diagnostics}function VK(e){let t=()=>x.fail("Diagnostic emitted without context"),r=t,i=!0,o=!1,s=!1,l=!1,d=!1,p,h,m,y,E,S,{factory:A}=e,N=e.getEmitHost(),D={trackSymbol:fe,reportInaccessibleThisError:ve,reportInaccessibleUniqueSymbolError:Ce,reportCyclicStructureError:Ge,reportPrivateInBaseOfClassExpression:ne,reportLikelyUnsafeImportRequiredError:Ae,reportTruncationError:De,moduleResolverHost:N,trackReferencedAmbientModule:J,trackExternalModuleSymbolOfImportTypeNode:xe,reportNonlocalAugmentation:Le,reportNonSerializableProperty:Et},w,j,K,Y,B,ce,z=e.getEmitResolver(),Z=e.getCompilerOptions(),{noResolve:me,stripInternal:ge}=Z;return ze;function q(G){if(G){h=h||new Set;for(let et of G)h.add(et)}}function J(G,et){let Tt=z.getTypeReferenceDirectivesForSymbol(et,-1);if(Nn(Tt))return q(Tt);let He=Gn(G);Y.set(wd(He),He)}function re(G){let et=eR(G),Tt=et&&z.tryFindAmbientModule(et);if(Tt?.declarations)for(let He of Tt.declarations)Md(He)&&Gn(He)!==K&&J(He,Tt)}function pe(G){if(G.accessibility===0){if(G.aliasesToMakeVisible)if(!m)m=G.aliasesToMakeVisible;else for(let et of G.aliasesToMakeVisible)yf(m,et)}else{let et=r(G);if(et)return et.typeName?e.addDiagnostic(Pr(G.errorNode||et.errorNode,et.diagnosticMessage,uc(et.typeName),G.errorSymbolName,G.errorModuleName)):e.addDiagnostic(Pr(G.errorNode||et.errorNode,et.diagnosticMessage,G.errorSymbolName,G.errorModuleName)),!0}return!1}function xe(G){o||(S||(S=[])).push(G)}function fe(G,et,Tt){if(G.flags&262144)return!1;let He=pe(z.isSymbolAccessible(G,et,Tt,!0));return q(z.getTypeReferenceDirectivesForSymbol(G,Tt)),He}function ne(G){(w||j)&&e.addDiagnostic(Pr(w||j,f.Property_0_of_exported_class_expression_may_not_be_private_or_protected,G))}function he(){return w?Ts(w):j&&Po(j)?Ts(Po(j)):j&&Ll(j)?j.isExportEquals?"export=":"default":"(Missing)"}function Ce(){(w||j)&&e.addDiagnostic(Pr(w||j,f.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,he(),"unique symbol"))}function Ge(){(w||j)&&e.addDiagnostic(Pr(w||j,f.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,he()))}function ve(){(w||j)&&e.addDiagnostic(Pr(w||j,f.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,he(),"this"))}function Ae(G){(w||j)&&e.addDiagnostic(Pr(w||j,f.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,he(),G))}function De(){(w||j)&&e.addDiagnostic(Pr(w||j,f.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function Le(G,et,Tt){var He;let ut=(He=et.declarations)==null?void 0:He.find(hn=>Gn(hn)===G),Ft=jr(Tt.declarations,hn=>Gn(hn)!==G);if(ut&&Ft)for(let hn of Ft)e.addDiagnostic(Pa(Pr(hn,f.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),Pr(ut,f.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function Et(G){(w||j)&&e.addDiagnostic(Pr(w||j,f.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,G))}function be(G,et){let Tt=r;r=ut=>ut.errorNode&&H3(ut.errorNode)?Gy(ut.errorNode)(ut):{diagnosticMessage:ut.errorModuleName?f.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:f.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:ut.errorNode||G};let He=z.getDeclarationStatementsForSourceFile(G,HT,D,et);return r=Tt,He}function ze(G){if(G.kind===312&&G.isDeclarationFile)return G;if(G.kind===313){o=!0,Y=new Map,B=new Map;let Me=!1,Nt=A.createBundle(mn(G.sourceFiles,H=>{if(H.isDeclarationFile)return;if(Me=Me||H.hasNoDefaultLib,K=H,p=H,m=void 0,E=!1,y=new Map,r=t,l=!1,d=!1,tt(H,Y),Wt(H,B),wp(H)||Jf(H)){s=!1,i=!1;let We=su(H)?A.createNodeArray(be(H,!0)):zn(H.statements,si,Hi);return A.updateSourceFile(H,[A.createModuleDeclaration([A.createModifier(138)],A.createStringLiteral(i6(e.getEmitHost(),H)),A.createModuleBlock(at(A.createNodeArray(Ye(We)),H.statements)))],!0,[],[],!1,[])}i=!0;let ue=su(H)?A.createNodeArray(be(H)):zn(H.statements,si,Hi);return A.updateSourceFile(H,Ye(ue),!0,[],[],!1,[])}),to(G.prepends,H=>{if(H.kind===315){let ue=FU(H,"dts",ge);return Me=Me||!!ue.hasNoDefaultLib,tt(ue,Y),q(mn(ue.typeReferenceDirectives,We=>[We.fileName,We.resolutionMode])),Wt(ue,B),ue}return H}));Nt.syntheticFileReferences=[],Nt.syntheticTypeReferences=dn(),Nt.syntheticLibReferences=hn(),Nt.hasNoDefaultLib=Me;let k=oi(Pd(zP(G,N,!0).declarationFilePath)),ie=U(Nt.syntheticFileReferences,k);return Y.forEach(ie),Nt}i=!0,l=!1,d=!1,p=G,K=G,r=t,o=!1,s=!1,E=!1,m=void 0,y=new Map,h=void 0,Y=tt(K,new Map),B=Wt(K,new Map);let et=[],Tt=oi(Pd(zP(G,N,!0).declarationFilePath)),He=U(et,Tt),ut;if(su(K))ut=A.createNodeArray(be(G)),Y.forEach(He),ce=jr(ut,pT);else{let Me=zn(G.statements,si,Hi);ut=at(A.createNodeArray(Ye(Me)),G.statements),Y.forEach(He),ce=jr(ut,pT),oc(G)&&(!s||l&&!d)&&(ut=at(A.createNodeArray([...ut,Bk(A)]),ut))}let Ft=A.updateSourceFile(G,ut,!0,et,dn(),G.hasNoDefaultLib,hn());return Ft.exportedModulesFromDeclarationEmit=S,Ft;function hn(){return Wo(B.keys(),Me=>({fileName:Me,pos:-1,end:-1}))}function dn(){return h?to(Wo(h.keys()),un):[]}function un([Me,Nt]){if(ce){for(let k of ce)if(td(k)&&vh(k.moduleReference)){let ie=k.moduleReference.expression;if(as(ie)&&ie.text===Me)return}else if(Lc(k)&&Da(k.moduleSpecifier)&&k.moduleSpecifier.text===Me)return}return{fileName:Me,pos:-1,end:-1,...Nt?{resolutionMode:Nt}:void 0}}function U(Me,Nt){return k=>{if(S?.includes(k.symbol))return;let ie;if(k.isDeclarationFile)ie=k.fileName;else{if(o&&Bo(G.sourceFiles,k))return;let H=zP(k,N,!0);ie=H.declarationFilePath||H.jsFilePath||k.fileName}if(ie){let H=x3(Z,K,ho(Nt,N.getCurrentDirectory()),ho(ie,N.getCurrentDirectory()),N);if(!Lp(H)){q([[H,void 0]]);return}let ue=_I(Nt,ie,N.getCurrentDirectory(),N.getCanonicalFileName,!1);if(ao(ue,"./")&&mI(ue)&&(ue=ue.substring(2)),ao(ue,"node_modules/")||TE(ue))return;Me.push({pos:-1,end:-1,fileName:ue})}}}}function tt(G,et){return me||!WT(G)&&su(G)||gn(G.referencedFiles,Tt=>{let He=N.getSourceFileFromReference(G,Tt);He&&et.set(wd(He),He)}),et}function Wt(G,et){return gn(G.libReferenceDirectives,Tt=>{N.getLibFileFromReference(Tt)&&et.set(ih(Tt.fileName),!0)}),et}function _t(G){if(G.kind===80)return G;return G.kind===207?A.updateArrayBindingPattern(G,zn(G.elements,et,dF)):A.updateObjectBindingPattern(G,zn(G.elements,et,Xa));function et(Tt){return Tt.kind===232?Tt:(Tt.propertyName&&Ya(Tt.propertyName)&&Bl(Tt.propertyName.expression)&&Li(Tt.propertyName.expression,p),A.updateBindingElement(Tt,Tt.dotDotDotToken,Tt.propertyName,_t(Tt.name),pt(Tt)?Tt.initializer:void 0))}}function Je(G,et,Tt){let He;E||(He=r,r=Gy(G));let ut=A.updateParameterDeclaration(G,aVe(A,G,et),G.dotDotDotToken,_t(G.name),z.isOptionalParameter(G)?G.questionToken||A.createToken(58):void 0,en(G,Tt||G.type,!0),Zt(G));return E||(r=He),ut}function pt(G){return sVe(G)&&z.isLiteralConstDeclaration(Do(G))}function Zt(G){if(pt(G))return z.createLiteralConstValue(Do(G),D)}function en(G,et,Tt){if(!Tt&&fp(G,2)||pt(G))return;let He=G.kind===169&&(z.isRequiredInitializedParameter(G)||z.isOptionalUninitializedParameterProperty(G));if(et&&!He)return $e(et,Ot,ji);if(!Do(G))return et?$e(et,Ot,ji):A.createKeywordTypeNode(133);if(G.kind===178)return A.createKeywordTypeNode(133);w=G.name;let ut;if(E||(ut=r,r=Gy(G)),G.kind===260||G.kind===208)return Ft(z.createTypeOfDeclaration(G,p,HT,D));if(G.kind===169||G.kind===172||G.kind===171)return _p(G)||!G.initializer?Ft(z.createTypeOfDeclaration(G,p,HT,D,He)):Ft(z.createTypeOfDeclaration(G,p,HT,D,He)||z.createTypeOfExpression(G.initializer,p,HT,D));return Ft(z.createReturnTypeOfSignatureDeclaration(G,p,HT,D));function Ft(hn){return w=void 0,E||(r=ut),hn||A.createKeywordTypeNode(133)}}function Dn(G){switch(G=Do(G),G.kind){case 262:case 267:case 264:case 263:case 265:case 266:return!z.isDeclarationVisible(G);case 260:return!pn(G);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function Kn(G){var et;if(G.body)return!0;let Tt=(et=G.symbol.declarations)==null?void 0:et.filter(He=>Ec(He)&&!He.body);return!Tt||Tt.indexOf(G)===Tt.length-1}function pn(G){return jc(G)?!1:Qo(G.name)?gt(G.name.elements,pn):z.isDeclarationVisible(G)}function Xt(G,et,Tt){if(fp(G,2))return A.createNodeArray();let He=mn(et,ut=>Je(ut,Tt));return He?A.createNodeArray(He,et.hasTrailingComma):A.createNodeArray()}function Kt(G,et){let Tt;if(!et){let He=M0(G);He&&(Tt=[Je(He)])}if(hp(G)){let He;if(!et){let ut=DN(G);if(ut){let Ft=ke(G,z.getAllAccessorDeclarations(G));He=Je(ut,void 0,Ft)}}He||(He=A.createParameterDeclaration(void 0,void 0,"value")),Tt=Tn(Tt,He)}return A.createNodeArray(Tt||Xe)}function hi(G,et){return fp(G,2)?void 0:zn(et,Ot,fl)}function uo(G){return Yi(G)||Tm(G)||ql(G)||Sc(G)||pu(G)||$o(G)||G0(G)||CR(G)}function Li(G,et){let Tt=z.isEntityNameVisible(G,et);pe(Tt),q(z.getTypeReferenceDirectivesForEntityName(G))}function So(G,et){return kp(G)&&kp(et)&&(G.jsDoc=et.jsDoc),ic(G,C_(et))}function Qn(G,et){if(et){if(s=s||G.kind!==267&&G.kind!==205,as(et))if(o){let Tt=Aie(e.getEmitHost(),z,G);if(Tt)return A.createStringLiteral(Tt)}else{let Tt=z.getSymbolOfExternalModuleSpecifier(et);Tt&&(S||(S=[])).push(Tt)}return et}}function Ur(G){if(z.isDeclarationVisible(G))if(G.moduleReference.kind===283){let et=hN(G);return A.updateImportEqualsDeclaration(G,G.modifiers,G.isTypeOnly,G.name,A.updateExternalModuleReference(G.moduleReference,Qn(G,et)))}else{let et=r;return r=Gy(G),Li(G.moduleReference,p),r=et,G}}function Er(G){if(!G.importClause)return A.updateImportDeclaration(G,G.modifiers,G.importClause,Qn(G,G.moduleSpecifier),on(G.attributes));let et=G.importClause&&G.importClause.name&&z.isDeclarationVisible(G.importClause)?G.importClause.name:void 0;if(!G.importClause.namedBindings)return et&&A.updateImportDeclaration(G,G.modifiers,A.updateImportClause(G.importClause,G.importClause.isTypeOnly,et,void 0),Qn(G,G.moduleSpecifier),on(G.attributes));if(G.importClause.namedBindings.kind===274){let He=z.isDeclarationVisible(G.importClause.namedBindings)?G.importClause.namedBindings:void 0;return et||He?A.updateImportDeclaration(G,G.modifiers,A.updateImportClause(G.importClause,G.importClause.isTypeOnly,et,He),Qn(G,G.moduleSpecifier),on(G.attributes)):void 0}let Tt=to(G.importClause.namedBindings.elements,He=>z.isDeclarationVisible(He)?He:void 0);if(Tt&&Tt.length||et)return A.updateImportDeclaration(G,G.modifiers,A.updateImportClause(G.importClause,G.importClause.isTypeOnly,et,Tt&&Tt.length?A.updateNamedImports(G.importClause.namedBindings,Tt):void 0),Qn(G,G.moduleSpecifier),on(G.attributes));if(z.isImportRequiredByAugmentation(G))return A.updateImportDeclaration(G,G.modifiers,void 0,Qn(G,G.moduleSpecifier),on(G.attributes))}function on(G){let et=QR(G);return G&&et!==void 0?G:void 0}function Ye(G){for(;Nn(m);){let Tt=m.shift();if(!RF(Tt))return x.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${x.formatSyntaxKind(Tt.kind)}`);let He=i;i=Tt.parent&&Yi(Tt.parent)&&!(oc(Tt.parent)&&o);let ut=Io(Tt);i=He,y.set(wd(Tt),ut)}return zn(G,et,Hi);function et(Tt){if(RF(Tt)){let He=wd(Tt);if(y.has(He)){let ut=y.get(He);return y.delete(He),ut&&((To(ut)?gt(ut,uF):uF(ut))&&(l=!0),Yi(Tt.parent)&&(To(ut)?gt(ut,a2):a2(ut))&&(s=!0)),ut}}return Tt}}function Ot(G){if(Be(G)||Hd(G)&&(Dn(G)||Ov(G)&&!z.isLateBound(Do(G)))||$o(G)&&z.isImplementationOfOverload(G)||fae(G))return;let et;uo(G)&&(et=p,p=G);let Tt=r,He=H3(G),ut=E,Ft=(G.kind===187||G.kind===200)&&G.parent.kind!==265;if((Ul(G)||_h(G))&&fp(G,2))return G.symbol&&G.symbol.declarations&&G.symbol.declarations[0]!==G?void 0:hn(A.createPropertyDeclaration(Rt(G),G.name,void 0,void 0,void 0));if(He&&!E&&(r=Gy(G)),YI(G)&&Li(G.exprName,p),Ft&&(E=!0),cVe(G))switch(G.kind){case 233:{(Xu(G.expression)||Bl(G.expression))&&Li(G.expression,p);let dn=Sn(G,Ot,e);return hn(A.updateExpressionWithTypeArguments(dn,dn.expression,dn.typeArguments))}case 183:{Li(G.typeName,p);let dn=Sn(G,Ot,e);return hn(A.updateTypeReferenceNode(dn,dn.typeName,dn.typeArguments))}case 180:return hn(A.updateConstructSignature(G,hi(G,G.typeParameters),Xt(G,G.parameters),en(G,G.type)));case 176:{let dn=A.createConstructorDeclaration(Rt(G),Xt(G,G.parameters,0),void 0);return hn(dn)}case 174:{if(Ki(G.name))return hn(void 0);let dn=A.createMethodDeclaration(Rt(G),void 0,G.name,G.questionToken,hi(G,G.typeParameters),Xt(G,G.parameters),en(G,G.type),void 0);return hn(dn)}case 177:{if(Ki(G.name))return hn(void 0);let dn=ke(G,z.getAllAccessorDeclarations(G));return hn(A.updateGetAccessorDeclaration(G,Rt(G),G.name,Kt(G,fp(G,2)),en(G,dn),void 0))}case 178:return Ki(G.name)?hn(void 0):hn(A.updateSetAccessorDeclaration(G,Rt(G),G.name,Kt(G,fp(G,2)),void 0));case 172:return Ki(G.name)?hn(void 0):hn(A.updatePropertyDeclaration(G,Rt(G),G.name,G.questionToken,en(G,G.type),Zt(G)));case 171:return Ki(G.name)?hn(void 0):hn(A.updatePropertySignature(G,Rt(G),G.name,G.questionToken,en(G,G.type)));case 173:return Ki(G.name)?hn(void 0):hn(A.updateMethodSignature(G,Rt(G),G.name,G.questionToken,hi(G,G.typeParameters),Xt(G,G.parameters),en(G,G.type)));case 179:return hn(A.updateCallSignature(G,hi(G,G.typeParameters),Xt(G,G.parameters),en(G,G.type)));case 181:return hn(A.updateIndexSignature(G,Rt(G),Xt(G,G.parameters),$e(G.type,Ot,ji)||A.createKeywordTypeNode(133)));case 260:return Qo(G.name)?Ba(G.name):(Ft=!0,E=!0,hn(A.updateVariableDeclaration(G,G.name,void 0,en(G,G.type),Zt(G))));case 168:return In(G)&&(G.default||G.constraint)?hn(A.updateTypeParameterDeclaration(G,G.modifiers,G.name,void 0,void 0)):hn(Sn(G,Ot,e));case 194:{let dn=$e(G.checkType,Ot,ji),un=$e(G.extendsType,Ot,ji),U=p;p=G.trueType;let Me=$e(G.trueType,Ot,ji);p=U;let Nt=$e(G.falseType,Ot,ji);return x.assert(dn),x.assert(un),x.assert(Me),x.assert(Nt),hn(A.updateConditionalTypeNode(G,dn,un,Me,Nt))}case 184:return hn(A.updateFunctionTypeNode(G,zn(G.typeParameters,Ot,fl),Xt(G,G.parameters),x.checkDefined($e(G.type,Ot,ji))));case 185:return hn(A.updateConstructorTypeNode(G,Rt(G),zn(G.typeParameters,Ot,fl),Xt(G,G.parameters),x.checkDefined($e(G.type,Ot,ji))));case 205:return wv(G)?(re(G),hn(A.updateImportTypeNode(G,A.updateLiteralTypeNode(G.argument,Qn(G,G.argument.literal)),G.attributes,G.qualifier,zn(G.typeArguments,Ot,ji),G.isTypeOf))):hn(G);default:x.assertNever(G,`Attempted to process unhandled node kind: ${x.formatSyntaxKind(G.kind)}`)}return $I(G)&&hs(K,G.pos).line===hs(K,G.end).line&&lr(G,1),hn(Sn(G,Ot,e));function hn(dn){return dn&&He&&Ov(G)&&kn(G),uo(G)&&(p=et),He&&!E&&(r=Tt),Ft&&(E=ut),dn===G?dn:dn&&xr(So(dn,G),G)}}function In(G){return G.parent.kind===174&&fp(G.parent,2)}function si(G){if(!lVe(G)||Be(G))return;switch(G.kind){case 278:return Yi(G.parent)&&(s=!0),d=!0,re(G),A.updateExportDeclaration(G,G.modifiers,G.isTypeOnly,G.exportClause,Qn(G,G.moduleSpecifier),on(G.attributes));case 277:{if(Yi(G.parent)&&(s=!0),d=!0,G.expression.kind===80)return G;{let Tt=A.createUniqueName("_default",16);r=()=>({diagnosticMessage:f.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:G}),j=G;let He=A.createVariableDeclaration(Tt,void 0,z.createTypeOfExpression(G.expression,G,HT,D),void 0);j=void 0;let ut=A.createVariableStatement(i?[A.createModifier(138)]:[],A.createVariableDeclarationList([He],2));return So(ut,G),Tk(G),[ut,A.updateExportAssignment(G,G.modifiers,Tt)]}}}let et=Io(G);return y.set(wd(G),et),G}function yi(G){if(td(G)||fp(G,2048)||!Am(G))return G;let et=A.createModifiersFromModifierFlags(lu(G)&131039);return A.replaceModifiers(G,et)}function $i(G,et,Tt,He){let ut=A.updateModuleDeclaration(G,et,Tt,He);if(Md(ut)||ut.flags&32)return ut;let Ft=A.createModuleDeclaration(ut.modifiers,ut.name,ut.body,ut.flags|32);return xr(Ft,ut),at(Ft,ut),Ft}function Io(G){if(m)for(;Tx(m,G););if(Be(G))return;switch(G.kind){case 271:{let hn=Ur(G);return hn&&re(G),hn}case 272:{let hn=Er(G);return hn&&re(G),hn}}if(Hd(G)&&Dn(G)||$o(G)&&z.isImplementationOfOverload(G))return;let et;uo(G)&&(et=p,p=G);let Tt=H3(G),He=r;Tt&&(r=Gy(G));let ut=i;switch(G.kind){case 265:{i=!1;let hn=Ft(A.updateTypeAliasDeclaration(G,Rt(G),G.name,zn(G.typeParameters,Ot,fl),x.checkDefined($e(G.type,Ot,ji))));return i=ut,hn}case 264:return Ft(A.updateInterfaceDeclaration(G,Rt(G),G.name,hi(G,G.typeParameters),st(G.heritageClauses),zn(G.members,Ot,lT)));case 262:{let hn=Ft(A.updateFunctionDeclaration(G,Rt(G),void 0,G.name,hi(G,G.typeParameters),Xt(G,G.parameters),en(G,G.type),void 0));if(hn&&z.isExpandoFunctionDeclaration(G)&&Kn(G)){let dn=z.getPropertiesOfContainerFunction(G),un=bh.createModuleDeclaration(void 0,hn.name||A.createIdentifier("_default"),A.createModuleBlock([]),32);ja(un,p),un.locals=aa(dn),un.symbol=dn[0].parent;let U=[],Me=to(dn,We=>{if(!j6(We.valueDeclaration))return;let Ne=Vi(We.escapedName);if(!Yp(Ne,99))return;r=Gy(We.valueDeclaration);let It=z.createTypeOfDeclaration(We.valueDeclaration,un,HT,D);r=He;let Dt=CI(Ne),Ut=Dt?A.getGeneratedNameForNode(We.valueDeclaration):A.createIdentifier(Ne);Dt&&U.push([Ut,Ne]);let En=A.createVariableDeclaration(Ut,void 0,It,void 0);return A.createVariableStatement(Dt?void 0:[A.createToken(95)],A.createVariableDeclarationList([En]))});U.length?Me.push(A.createExportDeclaration(void 0,!1,A.createNamedExports(mn(U,([We,Ne])=>A.createExportSpecifier(!1,We,Ne))))):Me=to(Me,We=>A.replaceModifiers(We,0));let Nt=A.createModuleDeclaration(Rt(G),G.name,A.createModuleBlock(Me),32);if(!fp(hn,2048))return[hn,Nt];let k=A.createModifiersFromModifierFlags(lu(hn)&-2081|128),ie=A.updateFunctionDeclaration(hn,k,void 0,hn.name,hn.typeParameters,hn.parameters,hn.type,void 0),H=A.updateModuleDeclaration(Nt,k,Nt.name,Nt.body),ue=A.createExportAssignment(void 0,!1,Nt.name);return Yi(G.parent)&&(s=!0),d=!0,[ie,H,ue]}else return hn}case 267:{i=!1;let hn=G.body;if(hn&&hn.kind===268){let dn=l,un=d;d=!1,l=!1;let U=zn(hn.statements,si,Hi),Me=Ye(U);G.flags&33554432&&(l=!1),!E_(G)&&!lt(Me)&&!d&&(l?Me=A.createNodeArray([...Me,Bk(A)]):Me=zn(Me,yi,Hi));let Nt=A.updateModuleBlock(hn,Me);i=ut,l=dn,d=un;let k=Rt(G);return Ft($i(G,k,T0(G)?Qn(G,G.name):G.name,Nt))}else{i=ut;let dn=Rt(G);i=!1,$e(hn,si);let un=wd(hn),U=y.get(un);return y.delete(un),Ft($i(G,dn,G.name,U))}}case 263:{w=G.name,j=G;let hn=A.createNodeArray(Rt(G)),dn=hi(G,G.typeParameters),un=Zh(G),U;if(un){let ue=r;U=SL(va(un.parameters,We=>{if(!$r(We,31)||Be(We))return;if(r=Gy(We),We.name.kind===80)return So(A.createPropertyDeclaration(Rt(We),We.name,We.questionToken,en(We,We.type),Zt(We)),We);return Ne(We.name);function Ne(It){let Dt;for(let Ut of It.elements)jc(Ut)||(Qo(Ut.name)&&(Dt=Eo(Dt,Ne(Ut.name))),Dt=Dt||[],Dt.push(A.createPropertyDeclaration(Rt(We),Ut.name,void 0,en(Ut,void 0),void 0)));return Dt}})),r=ue}let Nt=gt(G.members,ue=>!!ue.name&&Ki(ue.name))?[A.createPropertyDeclaration(void 0,A.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,k=Eo(Eo(Nt,U),zn(G.members,Ot,$c)),ie=A.createNodeArray(k),H=S_(G);if(H&&!Bl(H.expression)&&H.expression.kind!==106){let ue=G.name?Vi(G.name.escapedText):"default",We=A.createUniqueName(`${ue}_base`,16);r=()=>({diagnosticMessage:f.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:H,typeName:G.name});let Ne=A.createVariableDeclaration(We,void 0,z.createTypeOfExpression(H.expression,G,HT,D),void 0),It=A.createVariableStatement(i?[A.createModifier(138)]:[],A.createVariableDeclarationList([Ne],2)),Dt=A.createNodeArray(mn(G.heritageClauses,Ut=>{if(Ut.token===96){let En=r;r=Gy(Ut.types[0]);let wn=A.updateHeritageClause(Ut,mn(Ut.types,Bn=>A.updateExpressionWithTypeArguments(Bn,We,zn(Bn.typeArguments,Ot,ji))));return r=En,wn}return A.updateHeritageClause(Ut,zn(A.createNodeArray(jr(Ut.types,En=>Bl(En.expression)||En.expression.kind===106)),Ot,zy))}));return[It,Ft(A.updateClassDeclaration(G,hn,G.name,dn,Dt,ie))]}else{let ue=st(G.heritageClauses);return Ft(A.updateClassDeclaration(G,hn,G.name,dn,ue,ie))}}case 243:return Ft(ua(G));case 266:return Ft(A.updateEnumDeclaration(G,A.createNodeArray(Rt(G)),G.name,A.createNodeArray(to(G.members,hn=>{if(Be(hn))return;let dn=z.getConstantValue(hn),un=dn===void 0?void 0:typeof dn=="string"?A.createStringLiteral(dn):dn<0?A.createPrefixUnaryExpression(41,A.createNumericLiteral(-dn)):A.createNumericLiteral(dn);return So(A.updateEnumMember(hn,hn.name,un),hn)}))))}return x.assertNever(G,`Unhandled top-level node in declaration emit: ${x.formatSyntaxKind(G.kind)}`);function Ft(hn){return uo(G)&&(p=et),Tt&&(r=He),G.kind===267&&(i=ut),hn===G?hn:(j=void 0,w=void 0,hn&&xr(So(hn,G),G))}}function ua(G){if(!gn(G.declarationList.declarations,pn))return;let et=zn(G.declarationList.declarations,Ot,wi);if(!Nn(et))return;let Tt=A.createNodeArray(Rt(G)),He;return v2(G.declarationList)||y2(G.declarationList)?(He=A.createVariableDeclarationList(et,2),xr(He,G.declarationList),at(He,G.declarationList),ic(He,G.declarationList)):He=A.updateVariableDeclarationList(G.declarationList,et),A.updateVariableStatement(G,Tt,He)}function Ba(G){return pm(to(G.elements,et=>vn(et)))}function vn(G){if(G.kind!==232&&G.name)return pn(G)?Qo(G.name)?Ba(G.name):A.createVariableDeclaration(G.name,void 0,en(G,void 0),void 0):void 0}function kn(G){let et;E||(et=r,r=Mle(G)),w=G.name,x.assert(z.isLateBound(Do(G)));let He=G.name.expression;Li(He,p),E||(r=et),w=void 0}function Be(G){return!!ge&&!!G&&zV(G,K)}function ct(G){return Ll(G)||Xl(G)}function lt(G){return gt(G,ct)}function Rt(G){let et=lu(G),Tt=ae(G);return et===Tt?vw(G.modifiers,He=>ri(He,Sa),Sa):A.createModifiersFromModifierFlags(Tt)}function ae(G){let et=130030,Tt=i&&!oVe(G)?128:0,He=G.parent.kind===312;return(!He||o&&He&&oc(G.parent))&&(et^=128,Tt=0),BIe(G,et,Tt)}function ke(G,et){let Tt=kle(G);return!Tt&&G!==et.firstAccessor&&(Tt=kle(et.firstAccessor),r=Gy(et.firstAccessor)),!Tt&&et.secondAccessor&&G!==et.secondAccessor&&(Tt=kle(et.secondAccessor),r=Gy(et.secondAccessor)),Tt}function st(G){return A.createNodeArray(jr(mn(G,et=>A.updateHeritageClause(et,zn(A.createNodeArray(jr(et.types,Tt=>Bl(Tt.expression)||et.token===96&&Tt.expression.kind===106)),Ot,zy))),et=>et.types&&!!et.types.length))}}function oVe(e){return e.kind===264}function aVe(e,t,r,i){return e.createModifiersFromModifierFlags(BIe(t,r,i))}function BIe(e,t=131070,r=0){let i=lu(e)&t|r;return i&2048&&!(i&32)&&(i^=32),i&2048&&i&128&&(i^=128),i}function kle(e){if(e)return e.kind===177?e.type:e.parameters.length>0?e.parameters[0].type:void 0}function sVe(e){switch(e.kind){case 172:case 171:return!fp(e,2);case 169:case 260:return!0}return!1}function lVe(e){switch(e.kind){case 262:case 267:case 271:case 264:case 263:case 265:case 266:case 243:case 272:case 278:case 277:return!0}return!1}function cVe(e){switch(e.kind){case 180:case 176:case 174:case 177:case 178:case 172:case 171:case 173:case 179:case 181:case 260:case 168:case 233:case 183:case 194:case 184:case 185:case 205:return!0}return!1}var HT,dVe=bt({"src/compiler/transformers/declarations.ts"(){"use strict";ea(),zse(),HT=531469}});function uVe(e){switch(e){case 99:case 7:case 6:case 5:case 200:return GK;case 4:return Nle;case 100:case 199:return Ple;default:return BK}}function jK(e,t,r){return{scriptTransformers:pVe(e,t,r),declarationTransformers:fVe(t)}}function pVe(e,t,r){if(r)return Xe;let i=ns(e),o=Ld(e),s=tP(e),l=[];return Hr(l,t&&mn(t.before,VIe)),l.push(ule),e.experimentalDecorators&&l.push(mle),R6(e)&&l.push(Ile),i<99&&l.push(Ele),!e.experimentalDecorators&&(i<99||!s)&&l.push(_le),l.push(ple),i<8&&l.push(ble),i<7&&l.push(vle),i<6&&l.push(yle),i<5&&l.push(gle),i<4&&l.push(hle),i<3&&l.push(xle),i<2&&(l.push(Rle),l.push(Cle)),l.push(uVe(o)),i<1&&l.push(Dle),Hr(l,t&&mn(t.after,VIe)),l}function fVe(e){let t=[];return t.push(VK),Hr(t,e&&mn(e.afterDeclarations,_Ve)),t}function mVe(e){return t=>aH(t)?e.transformBundle(t):e.transformSourceFile(t)}function GIe(e,t){return r=>{let i=e(r);return typeof i=="function"?t(r,i):mVe(i)}}function VIe(e){return GIe(e,Im)}function _Ve(e){return GIe(e,(t,r)=>r)}function OP(e,t){return t}function Tw(e,t,r){r(e,t)}function Aw(e,t,r,i,o,s,l){var d,p;let h=new Array(363),m,y,E,S=0,A=[],N=[],D=[],w=[],j=0,K=!1,Y=[],B=0,ce,z,Z=OP,me=Tw,ge=0,q=[],J={factory:r,getCompilerOptions:()=>i,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:vu(()=>Zoe(J)),startLexicalEnvironment:be,suspendLexicalEnvironment:ze,resumeLexicalEnvironment:tt,endLexicalEnvironment:Wt,setLexicalEnvironmentFlags:_t,getLexicalEnvironmentFlags:Je,hoistVariableDeclaration:De,hoistFunctionDeclaration:Le,addInitializationStatement:Et,startBlockScope:pt,endBlockScope:Zt,addBlockScopedVariable:en,requestEmitHelper:Dn,readEmitHelpers:Kn,enableSubstitution:ne,enableEmitNotification:Ge,isSubstitutionEnabled:he,isEmitNotificationEnabled:ve,get onSubstituteNode(){return Z},set onSubstituteNode(Xt){x.assert(ge<1,"Cannot modify transformation hooks after initialization has completed."),x.assert(Xt!==void 0,"Value must not be 'undefined'"),Z=Xt},get onEmitNode(){return me},set onEmitNode(Xt){x.assert(ge<1,"Cannot modify transformation hooks after initialization has completed."),x.assert(Xt!==void 0,"Value must not be 'undefined'"),me=Xt},addDiagnostic(Xt){q.push(Xt)}};for(let Xt of o)VU(Gn(Do(Xt)));el("beforeTransform");let re=s.map(Xt=>Xt(J)),pe=Xt=>{for(let Kt of re)Xt=Kt(Xt);return Xt};ge=1;let xe=[];for(let Xt of o)(d=rr)==null||d.push(rr.Phase.Emit,"transformNodes",Xt.kind===312?{path:Xt.path}:{kind:Xt.kind,pos:Xt.pos,end:Xt.end}),xe.push((l?pe:fe)(Xt)),(p=rr)==null||p.pop();return ge=2,el("afterTransform"),Xp("transformTime","beforeTransform","afterTransform"),{transformed:xe,substituteNode:Ce,emitNodeWithNotification:Ae,isEmitNotificationEnabled:ve,dispose:pn,diagnostics:q};function fe(Xt){return Xt&&(!Yi(Xt)||!Xt.isDeclarationFile)?pe(Xt):Xt}function ne(Xt){x.assert(ge<2,"Cannot modify the transformation context after transformation has completed."),h[Xt]|=1}function he(Xt){return(h[Xt.kind]&1)!==0&&(za(Xt)&8)===0}function Ce(Xt,Kt){return x.assert(ge<3,"Cannot substitute a node after the result is disposed."),Kt&&he(Kt)&&Z(Xt,Kt)||Kt}function Ge(Xt){x.assert(ge<2,"Cannot modify the transformation context after transformation has completed."),h[Xt]|=2}function ve(Xt){return(h[Xt.kind]&2)!==0||(za(Xt)&4)!==0}function Ae(Xt,Kt,hi){x.assert(ge<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),Kt&&(ve(Kt)?me(Xt,Kt,hi):hi(Xt,Kt))}function De(Xt){x.assert(ge>0,"Cannot modify the lexical environment during initialization."),x.assert(ge<2,"Cannot modify the lexical environment after transformation has completed.");let Kt=lr(r.createVariableDeclaration(Xt),128);m?m.push(Kt):m=[Kt],S&1&&(S|=2)}function Le(Xt){x.assert(ge>0,"Cannot modify the lexical environment during initialization."),x.assert(ge<2,"Cannot modify the lexical environment after transformation has completed."),lr(Xt,2097152),y?y.push(Xt):y=[Xt]}function Et(Xt){x.assert(ge>0,"Cannot modify the lexical environment during initialization."),x.assert(ge<2,"Cannot modify the lexical environment after transformation has completed."),lr(Xt,2097152),E?E.push(Xt):E=[Xt]}function be(){x.assert(ge>0,"Cannot modify the lexical environment during initialization."),x.assert(ge<2,"Cannot modify the lexical environment after transformation has completed."),x.assert(!K,"Lexical environment is suspended."),A[j]=m,N[j]=y,D[j]=E,w[j]=S,j++,m=void 0,y=void 0,E=void 0,S=0}function ze(){x.assert(ge>0,"Cannot modify the lexical environment during initialization."),x.assert(ge<2,"Cannot modify the lexical environment after transformation has completed."),x.assert(!K,"Lexical environment is already suspended."),K=!0}function tt(){x.assert(ge>0,"Cannot modify the lexical environment during initialization."),x.assert(ge<2,"Cannot modify the lexical environment after transformation has completed."),x.assert(K,"Lexical environment is not suspended."),K=!1}function Wt(){x.assert(ge>0,"Cannot modify the lexical environment during initialization."),x.assert(ge<2,"Cannot modify the lexical environment after transformation has completed."),x.assert(!K,"Lexical environment is suspended.");let Xt;if(m||y||E){if(y&&(Xt=[...y]),m){let Kt=r.createVariableStatement(void 0,r.createVariableDeclarationList(m));lr(Kt,2097152),Xt?Xt.push(Kt):Xt=[Kt]}E&&(Xt?Xt=[...Xt,...E]:Xt=[...E])}return j--,m=A[j],y=N[j],E=D[j],S=w[j],j===0&&(A=[],N=[],D=[],w=[]),Xt}function _t(Xt,Kt){S=Kt?S|Xt:S&~Xt}function Je(){return S}function pt(){x.assert(ge>0,"Cannot start a block scope during initialization."),x.assert(ge<2,"Cannot start a block scope after transformation has completed."),Y[B]=ce,B++,ce=void 0}function Zt(){x.assert(ge>0,"Cannot end a block scope during initialization."),x.assert(ge<2,"Cannot end a block scope after transformation has completed.");let Xt=gt(ce)?[r.createVariableStatement(void 0,r.createVariableDeclarationList(ce.map(Kt=>r.createVariableDeclaration(Kt)),1))]:void 0;return B--,ce=Y[B],B===0&&(Y=[]),Xt}function en(Xt){x.assert(B>0,"Cannot add a block scoped variable outside of an iteration body."),(ce||(ce=[])).push(Xt)}function Dn(Xt){if(x.assert(ge>0,"Cannot modify the transformation context during initialization."),x.assert(ge<2,"Cannot modify the transformation context after transformation has completed."),x.assert(!Xt.scoped,"Cannot request a scoped emit helper."),Xt.dependencies)for(let Kt of Xt.dependencies)Dn(Kt);z=Tn(z,Xt)}function Kn(){x.assert(ge>0,"Cannot modify the transformation context during initialization."),x.assert(ge<2,"Cannot modify the transformation context after transformation has completed.");let Xt=z;return z=void 0,Xt}function pn(){if(ge<3){for(let Xt of o)VU(Gn(Do(Xt)));m=void 0,A=void 0,y=void 0,N=void 0,Z=void 0,me=void 0,z=void 0,ge=3}}}var UK,WP,hVe=bt({"src/compiler/transformer.ts"(){"use strict";ea(),nT(),UK={scriptTransformers:Xe,declarationTransformers:Xe},WP={factory:L,getCompilerOptions:()=>({}),getEmitResolver:Ho,getEmitHost:Ho,getEmitHelperFactory:Ho,startLexicalEnvironment:qa,resumeLexicalEnvironment:qa,suspendLexicalEnvironment:qa,endLexicalEnvironment:Jb,setLexicalEnvironmentFlags:qa,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:qa,hoistFunctionDeclaration:qa,addInitializationStatement:qa,startBlockScope:qa,endBlockScope:Jb,addBlockScopedVariable:qa,requestEmitHelper:qa,readEmitHelpers:Ho,enableSubstitution:qa,enableEmitNotification:qa,isSubstitutionEnabled:Ho,isEmitNotificationEnabled:Ho,onSubstituteNode:OP,onEmitNode:Tw,addDiagnostic:qa}}});function wle(e){return Sl(e,".tsbuildinfo")}function HK(e,t,r,i=!1,o,s){let l=To(r)?r:Fj(e,r,i),d=e.getCompilerOptions();if(xs(d)){let p=e.getPrependNodes();if(l.length||p.length){let h=L.createBundle(l,p),m=t(zP(h,e,i),h);if(m)return m}}else{if(!o)for(let p of l){let h=t(zP(p,e,i),p);if(h)return h}if(s){let p=Vy(d);if(p)return t({buildInfoPath:p},void 0)}}}function Vy(e){let t=e.configFilePath;if(!eP(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;let r=xs(e),i;if(r)i=Eu(r);else{if(!t)return;let o=Eu(t);i=e.outDir?e.rootDir?Av(e.outDir,_m(e.rootDir,o,!0)):Yr(e.outDir,nc(o)):o}return i+".tsbuildinfo"}function FP(e,t){let r=xs(e),i=e.emitDeclarationOnly?void 0:r,o=i&&jIe(i,e),s=t||Af(e)?Eu(r)+".d.ts":void 0,l=s&&hk(e)?s+".map":void 0,d=Vy(e);return{jsFilePath:i,sourceMapFilePath:o,declarationFilePath:s,declarationMapPath:l,buildInfoPath:d}}function zP(e,t,r){let i=t.getCompilerOptions();if(e.kind===313)return FP(i,r);{let o=Iie(e.fileName,t,K3(e.fileName,i)),s=Jf(e),l=s&&Rg(e.fileName,o,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,d=i.emitDeclarationOnly||l?void 0:o,p=!d||Jf(e)?void 0:jIe(d,i),h=r||Af(i)&&!s?xie(e.fileName,t):void 0,m=h&&hk(i)?h+".map":void 0;return{jsFilePath:d,sourceMapFilePath:p,declarationFilePath:h,declarationMapPath:m,buildInfoPath:void 0}}}function jIe(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function K3(e,t){return Sl(e,".json")?".json":t.jsx===1&&bc(e,[".jsx",".tsx"])?".jsx":bc(e,[".mts",".mjs"])?".mjs":bc(e,[".cts",".cjs"])?".cjs":".js"}function UIe(e,t,r,i){return r?Av(r,_m(i(),e,t)):e}function BP(e,t,r,i=()=>$R(t,r)){return KK(e,t.options,r,i)}function KK(e,t,r,i){return pE(UIe(e,r,t.declarationDir||t.outDir,i),a6(e))}function HIe(e,t,r,i=()=>$R(t,r)){if(t.options.emitDeclarationOnly)return;let o=Sl(e,".json"),s=JK(e,t.options,r,i);return!o||Rg(e,s,x.checkDefined(t.options.configFilePath),r)!==0?s:void 0}function JK(e,t,r,i){return pE(UIe(e,r,t.outDir,i),K3(e,t))}function KIe(){let e;return{addOutput:t,getOutputs:r};function t(i){i&&(e||(e=[])).push(i)}function r(){return e||Xe}}function JIe(e,t){let{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:o,declarationMapPath:s,buildInfoPath:l}=FP(e.options,!1);t(r),t(i),t(o),t(s),t(l)}function qIe(e,t,r,i,o){if(Ed(t))return;let s=HIe(t,e,r,o);if(i(s),!Sl(t,".json")&&(s&&e.options.sourceMap&&i(`${s}.map`),Af(e.options))){let l=BP(t,e,r,o);i(l),e.options.declarationMap&&i(`${l}.map`)}}function GP(e,t,r,i,o){let s;return e.rootDir?(s=ho(e.rootDir,r),o?.(e.rootDir)):e.composite&&e.configFilePath?(s=oi(Pd(e.configFilePath)),o?.(s)):s=Gle(t(),r,i),s&&s[s.length-1]!==nl&&(s+=nl),s}function $R({options:e,fileNames:t},r){return GP(e,()=>jr(t,i=>!(e.noEmitForJsFiles&&bc(i,AR))&&!Ed(i)),oi(Pd(x.checkDefined(e.configFilePath))),Nd(!r))}function J3(e,t){let{addOutput:r,getOutputs:i}=KIe();if(xs(e.options))JIe(e,r);else{let o=vu(()=>$R(e,t));for(let s of e.fileNames)qIe(e,s,t,r,o);r(Vy(e.options))}return i()}function XIe(e,t,r){t=ma(t),x.assert(Bo(e.fileNames,t),"Expected fileName to be present in command line");let{addOutput:i,getOutputs:o}=KIe();return xs(e.options)?JIe(e,i):qIe(e,t,r,i),o()}function qK(e,t){if(xs(e.options)){let{jsFilePath:o,declarationFilePath:s}=FP(e.options,!1);return x.checkDefined(o||s,`project ${e.options.configFilePath} expected to have at least one output`)}let r=vu(()=>$R(e,t));for(let o of e.fileNames){if(Ed(o))continue;let s=HIe(o,e,t,r);if(s)return s;if(!Sl(o,".json")&&Af(e.options))return BP(o,e,t,r)}let i=Vy(e.options);return i||x.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function q3(e,t,r,{scriptTransformers:i,declarationTransformers:o},s,l,d){var p=t.getCompilerOptions(),h=p.sourceMap||p.inlineSourceMap||hk(p)?[]:void 0,m=p.listEmittedFiles?[]:void 0,y=cR(),E=wy(p),S=$2(E),{enter:A,exit:N}=t9("printTime","beforePrint","afterPrint"),D,w=!1;return A(),HK(t,j,Fj(t,r,d),d,l,!r),N(),{emitSkipped:w,diagnostics:y.getDiagnostics(),emittedFiles:m,sourceMaps:h};function j({jsFilePath:J,sourceMapFilePath:re,declarationFilePath:pe,declarationMapPath:xe,buildInfoPath:fe},ne){var he,Ce,Ge,ve,Ae,De;let Le;fe&&ne&&aH(ne)&&(Le=oi(ho(fe,t.getCurrentDirectory())),D={commonSourceDirectory:Et(t.getCommonSourceDirectory()),sourceFiles:ne.sourceFiles.map(be=>Et(ho(be.fileName,t.getCurrentDirectory())))}),(he=rr)==null||he.push(rr.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:J}),Y(ne,J,re,Et),(Ce=rr)==null||Ce.pop(),(Ge=rr)==null||Ge.push(rr.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:pe}),B(ne,pe,xe,Et),(ve=rr)==null||ve.pop(),(Ae=rr)==null||Ae.push(rr.Phase.Emit,"emitBuildInfo",{buildInfoPath:fe}),K(D,fe),(De=rr)==null||De.pop();function Et(be){return h0(_m(Le,be,t.getCanonicalFileName))}}function K(J,re){if(!re||r||w)return;if(t.isEmitBlocked(re)){w=!0;return}let pe=t.getBuildInfo(J)||Iw(void 0,J);xN(t,y,re,Ole(pe),!1,void 0,{buildInfo:pe}),m?.push(re)}function Y(J,re,pe,xe){if(!J||s||!re)return;if(t.isEmitBlocked(re)||p.noEmit){w=!0;return}let fe=Aw(e,t,L,p,[J],i,!1),ne={removeComments:p.removeComments,newLine:p.newLine,noEmitHelpers:p.noEmitHelpers,module:p.module,target:p.target,sourceMap:p.sourceMap,inlineSourceMap:p.inlineSourceMap,inlineSources:p.inlineSources,extendedDiagnostics:p.extendedDiagnostics,writeBundleFileInfo:!!D,relativeToBuildInfo:xe},he=AE(ne,{hasGlobalName:e.hasGlobalName,onEmitNode:fe.emitNodeWithNotification,isEmitNotificationEnabled:fe.isEmitNotificationEnabled,substituteNode:fe.substituteNode});x.assert(fe.transformed.length===1,"Should only see one output from the transform"),z(re,pe,fe,he,p),fe.dispose(),D&&(D.js=he.bundleFileInfo),m&&(m.push(re),pe&&m.push(pe))}function B(J,re,pe,xe){if(!J||s===0)return;if(!re){(s||p.emitDeclarationOnly)&&(w=!0);return}let fe=Yi(J)?[J]:J.sourceFiles,ne=d?fe:jr(fe,uj),he=xs(p)?[L.createBundle(ne,Yi(J)?void 0:J.prepends)]:ne;s&&!Af(p)&&ne.forEach(ce);let Ce=Aw(e,t,L,p,he,o,!1);if(Nn(Ce.diagnostics))for(let ve of Ce.diagnostics)y.add(ve);let Ge=!!Ce.diagnostics&&!!Ce.diagnostics.length||!!t.isEmitBlocked(re)||!!p.noEmit;if(w=w||Ge,!Ge||d){x.assert(Ce.transformed.length===1,"Should only see one output from the decl transform");let ve={removeComments:p.removeComments,newLine:p.newLine,noEmitHelpers:!0,module:p.module,target:p.target,sourceMap:!d&&p.declarationMap,inlineSourceMap:p.inlineSourceMap,extendedDiagnostics:p.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0,writeBundleFileInfo:!!D,recordInternalSection:!!D,relativeToBuildInfo:xe},Ae=AE(ve,{hasGlobalName:e.hasGlobalName,onEmitNode:Ce.emitNodeWithNotification,isEmitNotificationEnabled:Ce.isEmitNotificationEnabled,substituteNode:Ce.substituteNode});z(re,pe,Ce,Ae,{sourceMap:ve.sourceMap,sourceRoot:p.sourceRoot,mapRoot:p.mapRoot,extendedDiagnostics:p.extendedDiagnostics}),m&&(m.push(re),pe&&m.push(pe)),D&&(D.dts=Ae.bundleFileInfo)}Ce.dispose()}function ce(J){if(Ll(J)){J.expression.kind===80&&e.collectLinkedAliases(J.expression,!0);return}else if(Kd(J)){e.collectLinkedAliases(J.propertyName||J.name,!0);return}Go(J,ce)}function z(J,re,pe,xe,fe){let ne=pe.transformed[0],he=ne.kind===313?ne:void 0,Ce=ne.kind===312?ne:void 0,Ge=he?he.sourceFiles:[Ce],ve;Z(fe,ne)&&(ve=Kse(t,nc(Pd(J)),me(fe),ge(fe,J,Ce),fe)),he?xe.writeBundle(he,S,ve):xe.writeFile(Ce,S,ve);let Ae;if(ve){h&&h.push({inputSourceFileNames:ve.getSources(),sourceMap:ve.toJSON()});let Le=q(fe,ve,J,re,Ce);if(Le&&(S.isAtStartOfLine()||S.rawWrite(E),Ae=S.getTextPos(),S.writeComment(`//# sourceMappingURL=${Le}`)),re){let Et=ve.toString();xN(t,y,re,Et,!1,Ge),xe.bundleFileInfo&&(xe.bundleFileInfo.mapHash=JT(Et,t))}}else S.writeLine();let De=S.getText();xN(t,y,J,De,!!p.emitBOM,Ge,{sourceMapUrlPos:Ae,diagnostics:pe.diagnostics}),xe.bundleFileInfo&&(xe.bundleFileInfo.hash=JT(De,t)),S.clear()}function Z(J,re){return(J.sourceMap||J.inlineSourceMap)&&(re.kind!==312||!Sl(re.fileName,".json"))}function me(J){let re=Pd(J.sourceRoot||"");return re&&Bc(re)}function ge(J,re,pe){if(J.sourceRoot)return t.getCommonSourceDirectory();if(J.mapRoot){let xe=Pd(J.mapRoot);return pe&&(xe=oi(l6(pe.fileName,t,xe))),sh(xe)===0&&(xe=Yr(t.getCommonSourceDirectory(),xe)),xe}return oi(ma(re))}function q(J,re,pe,xe,fe){if(J.inlineSourceMap){let he=re.toString();return`data:application/json;base64,${Kie(hd,he)}`}let ne=nc(Pd(x.checkDefined(xe)));if(J.mapRoot){let he=Pd(J.mapRoot);return fe&&(he=oi(l6(fe.fileName,t,he))),sh(he)===0?(he=Yr(t.getCommonSourceDirectory(),he),encodeURI(_I(oi(ma(pe)),Yr(he,ne),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(Yr(he,ne))}return encodeURI(ne)}}function Iw(e,t){return{bundle:t,program:e,version:Jp}}function Ole(e){return JSON.stringify(e)}function X3(e,t){return qj(e,t)}function gVe(e,t,r){var i;let o=x.checkDefined(e.js),s=((i=o.sources)==null?void 0:i.prologues)&&_0(o.sources.prologues,l=>l.file);return e.sourceFiles.map((l,d)=>{let p=s?.get(d),h=p?.directives.map(E=>{let S=at(L.createStringLiteral(E.expression.text),E.expression),A=at(L.createExpressionStatement(S),E);return ja(S,A),A}),m=L.createToken(1),y=L.createSourceFile(h??[],m,0);return y.fileName=_m(r.getCurrentDirectory(),ho(l,t),!r.useCaseSensitiveFileNames()),y.text=p?.text??"",KN(y,0,p?.text.length??0),ER(y.statements,y),KN(m,y.end,0),ja(m,y),y})}function Wle(e,t,r,i){var o,s;(o=rr)==null||o.push(rr.Phase.Emit,"emitUsingBuildInfo",{},!0),el("beforeEmit");let l=yVe(e,t,r,i);return el("afterEmit"),Xp("Emit","beforeEmit","afterEmit"),(s=rr)==null||s.pop(),l}function yVe(e,t,r,i){let{buildInfoPath:o,jsFilePath:s,sourceMapFilePath:l,declarationFilePath:d,declarationMapPath:p}=FP(e.options,!1),h=t.getBuildInfo(o,e.options.configFilePath);if(!h||!h.bundle||!h.bundle.js||d&&!h.bundle.dts)return o;let m=t.readFile(x.checkDefined(s));if(!m||JT(m,t)!==h.bundle.js.hash)return s;let y=l&&t.readFile(l);if(l&&!y||e.options.inlineSourceMap)return l||"inline sourcemap decoding";if(l&&JT(y,t)!==h.bundle.js.mapHash)return l;let E=d&&t.readFile(d);if(d&&!E||d&&JT(E,t)!==h.bundle.dts.hash)return d;let S=p&&t.readFile(p);if(p&&!S||e.options.inlineSourceMap)return p||"inline sourcemap decoding";if(p&&JT(S,t)!==h.bundle.dts.mapHash)return p;let A=oi(ho(o,t.getCurrentDirectory())),N=BU(s,m,l,y,d,E,p,S,o,h,!0),D=[],w=gJ(e.projectReferences,r,ce=>t.readFile(ce),t),j=gVe(h.bundle,A,t),K,Y,B={getPrependNodes:vu(()=>[...w,N]),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:()=>ho(h.bundle.commonSourceDirectory,A),getCompilerOptions:()=>e.options,getCurrentDirectory:()=>t.getCurrentDirectory(),getSourceFile:Jb,getSourceFileByPath:Jb,getSourceFiles:()=>j,getLibFileFromReference:Ho,isSourceFileFromExternalLibrary:Vm,getResolvedProjectReferenceToRedirect:Jb,getProjectReferenceRedirect:Jb,isSourceOfProjectReferenceRedirect:Vm,writeFile:(ce,z,Z,me,ge,q)=>{switch(ce){case s:if(m===z)return;break;case l:if(y===z)return;break;case o:break;case d:if(E===z)return;K=z,Y=q;break;case p:if(S===z)return;break;default:x.fail(`Unexpected path: ${ce}`)}D.push({name:ce,text:z,writeByteOrderMark:Z,data:q})},isEmitBlocked:Vm,readFile:ce=>t.readFile(ce),fileExists:ce=>t.fileExists(ce),useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames(),getBuildInfo:ce=>{let z=h.program;z&&K!==void 0&&e.options.composite&&(z.outSignature=JT(K,t,Y));let{js:Z,dts:me,sourceFiles:ge}=h.bundle;return ce.js.sources=Z.sources,me&&(ce.dts.sources=me.sources),ce.sourceFiles=ge,Iw(z,ce)},getSourceFileFromReference:Jb,redirectTargetsMap:qp(),getFileIncludeReasons:Ho,createHash:ta(t,t.createHash)};return q3(Y3,B,void 0,jK(e.options,i)),D}function AE(e={},t={}){var{hasGlobalName:r,onEmitNode:i=Tw,isEmitNotificationEnabled:o,substituteNode:s=OP,onBeforeEmitNode:l,onAfterEmitNode:d,onBeforeEmitNodeArray:p,onAfterEmitNodeArray:h,onBeforeEmitToken:m,onAfterEmitToken:y}=t,E=!!e.extendedDiagnostics,S=!!e.omitBraceSourceMapPositions,A=wy(e),N=Ld(e),D=new Map,w,j,K,Y,B,ce,z,Z,me,ge,q,J,re,pe,xe,fe=e.preserveSourceNewlines,ne,he,Ce,Ge=hA,ve,Ae=e.writeBundleFileInfo?{sections:[]}:void 0,De=Ae?x.checkDefined(e.relativeToBuildInfo):void 0,Le=e.recordInternalSection,Et=0,be="text",ze=!0,tt,Wt,_t=-1,Je,pt=-1,Zt=-1,en=-1,Dn=-1,Kn,pn,Xt=!1,Kt=!!e.removeComments,hi,uo,{enter:Li,exit:So}=DEe(E,"commentTime","beforeComment","afterComment"),Qn=L.parenthesizer,Ur={select:I=>I===0?Qn.parenthesizeLeadingTypeArgument:void 0},Er=Kg();return et(),{printNode:on,printList:Ye,printFile:In,printBundle:Ot,writeNode:yi,writeList:$i,writeFile:lt,writeBundle:Be,bundleFileInfo:Ae};function on(I,oe,dt){switch(I){case 0:x.assert(Yi(oe),"Expected a SourceFile node.");break;case 2:x.assert(Fe(oe),"Expected an Identifier node.");break;case 1:x.assert(ht(oe),"Expected an Expression node.");break}switch(oe.kind){case 312:return In(oe);case 313:return Ot(oe);case 314:return si(oe)}return yi(I,oe,dt,Rt()),ae()}function Ye(I,oe,dt){return $i(I,oe,dt,Rt()),ae()}function Ot(I){return Be(I,Rt(),void 0),ae()}function In(I){return lt(I,Rt(),void 0),ae()}function si(I){return ct(I,Rt()),ae()}function yi(I,oe,dt,nn){let Mr=he;G(nn,void 0),ke(I,oe,dt),et(),he=Mr}function $i(I,oe,dt,nn){let Mr=he;G(nn,void 0),dt&&st(dt),qs(void 0,oe,I),et(),he=Mr}function Io(){return he.getTextPosWithWriteLine?he.getTextPosWithWriteLine():he.getTextPos()}function ua(I,oe,dt){let nn=$s(Ae.sections);nn&&nn.kind===dt?nn.end=oe:Ae.sections.push({pos:I,end:oe,kind:dt})}function Ba(I){if(Le&&Ae&&w&&(Hd(I)||Ml(I))&&zV(I,w)&&be!=="internal"){let oe=be;return kn(he.getTextPos()),Et=Io(),be="internal",oe}}function vn(I){I&&(kn(he.getTextPos()),Et=Io(),be=I)}function kn(I){return Etx.assert(toe(_a))),Ae.sections.push({pos:ki,end:he.getTextPos(),kind:"prepend",data:De(Mr.fileName),texts:Zi}))}}Et=Io();for(let Mr of I.sourceFiles)ke(0,Mr,Mr);if(Ae&&I.sourceFiles.length){let Mr=he.getTextPos();if(kn(Mr)){let ki=TM(I);ki&&(Ae.sources||(Ae.sources={}),Ae.sources.prologues=ki);let vi=Dt(I);vi&&(Ae.sources||(Ae.sources={}),Ae.sources.helpers=vi)}}et(),he=nn}function ct(I,oe){let dt=he;G(oe,void 0),ke(4,I,void 0),et(),he=dt}function lt(I,oe,dt){ve=!0;let nn=he;G(oe,dt),db(I),Qg(I),ke(0,I,I),et(),he=nn}function Rt(){return Ce||(Ce=$2(A))}function ae(){let I=Ce.getText();return Ce.clear(),I}function ke(I,oe,dt){dt&&st(dt),U(I,oe,void 0)}function st(I){w=I,Kn=void 0,pn=void 0,I&&ry(I)}function G(I,oe){I&&e.omitTrailingSemicolon&&(I=Oj(I)),he=I,tt=oe,ze=!he||!tt}function et(){j=[],K=[],Y=[],B=new Set,ce=[],z=new Map,Z=[],me=0,ge=[],q=0,J=[],re=void 0,pe=[],xe=void 0,w=void 0,Kn=void 0,pn=void 0,G(void 0,void 0)}function Tt(){return Kn||(Kn=Dg(x.checkDefined(w)))}function He(I,oe){if(I===void 0)return;let dt=Ba(I);U(4,I,oe),vn(dt)}function ut(I){I!==void 0&&U(2,I,void 0)}function Ft(I,oe){I!==void 0&&U(1,I,oe)}function hn(I){U(Da(I)?6:4,I)}function dn(I){fe&&ym(I)&4&&(fe=!1)}function un(I){fe=I}function U(I,oe,dt){uo=dt,k(0,I,oe)(I,oe),uo=void 0}function Me(I){return!Kt&&!Yi(I)}function Nt(I){return!ze&&!Yi(I)&&!UF(I)&&!WT(I)&&!yae(I)}function k(I,oe,dt){switch(I){case 0:if(i!==Tw&&(!o||o(dt)))return H;case 1:if(s!==OP&&(hi=s(oe,dt)||dt)!==dt)return uo&&(hi=uo(hi)),It;case 2:if(Me(dt))return qD;case 3:if(Nt(dt))return KE;case 4:return ue;default:return x.assertNever(I)}}function ie(I,oe,dt){return k(I+1,oe,dt)}function H(I,oe){let dt=ie(0,I,oe);i(I,oe,dt)}function ue(I,oe){if(l?.(oe),fe){let dt=fe;dn(oe),We(I,oe),un(dt)}else We(I,oe);d?.(oe),uo=void 0}function We(I,oe,dt=!0){if(dt){let nn=jU(oe);if(nn)return go(I,oe,nn)}if(I===0)return K1(na(oe,Yi));if(I===2)return Kr(na(oe,Fe));if(I===6)return Bn(na(oe,Da),!0);if(I===3)return Ne(na(oe,fl));if(I===7)return z1(na(oe,n1));if(I===5)return x.assertNode(oe,rH),no(!0);if(I===4){switch(oe.kind){case 16:case 17:case 18:return Bn(oe,!1);case 80:return Kr(oe);case 81:return xo(oe);case 166:return xn(oe);case 167:return $l(oe);case 168:return Mo(oe);case 169:return ss(oe);case 170:return Ws(oe);case 171:return ml(oe);case 172:return cd(oe);case 173:return mo(oe);case 174:return la(oe);case 175:return dd(oe);case 176:return bs(oe);case 177:case 178:return Ca(oe);case 179:return ul(oe);case 180:return Nf(oe);case 181:return ac(oe);case 182:return Lo(oe);case 183:return tn(oe);case 184:return Fs(oe);case 185:return Ac(oe);case 186:return de(oe);case 187:return $(oe);case 188:return Pe(oe);case 189:return cn(oe);case 190:return pr(oe);case 192:return zr(oe);case 193:return Di(oe);case 194:return Cr(oe);case 195:return qo(oe);case 196:return bl(oe);case 233:return wt(oe);case 197:return Hc();case 198:return zs(oe);case 199:return hc(oe);case 200:return ys(oe);case 201:return Kc(oe);case 202:return yr(oe);case 203:return tp(oe);case 204:return xl(oe);case 205:return Oc(oe);case 206:return im(oe);case 207:return fu(oe);case 208:return Re(oe);case 239:return Gt(oe);case 240:return al();case 241:return Zn(oe);case 243:return Xr(oe);case 242:return no(!1);case 244:return La(oe);case 245:return ka(oe);case 246:return pd(oe);case 247:return Ic(oe);case 248:return Tp(oe);case 249:return Bu(oe);case 250:return ob(oe);case 251:return Dm(oe);case 252:return Cm(oe);case 253:return fS(oe);case 254:return cf(oe);case 255:return B_(oe);case 256:return df(oe);case 257:return qg(oe);case 258:return we(oe);case 259:return qe(oe);case 260:return Pt(oe);case 261:return Bt(oe);case 262:return _n(oe);case 263:return Yo(oe);case 264:return $d(oe);case 265:return fd(oe);case 266:return Xg(oe);case 267:return LE(oe);case 268:return w1(oe);case 269:return kE(oe);case 270:return G1(oe);case 271:return kD(oe);case 272:return OD(oe);case 273:return oA(oe);case 274:return mS(oe);case 280:return _S(oe);case 275:return O1(oe);case 276:return WD(oe);case 277:return W1(oe);case 278:return F1(oe);case 279:return hS(oe);case 281:return ab(oe);case 300:return B1(oe);case 301:return aA(oe);case 282:return;case 283:return wE(oe);case 12:return Yg(oe);case 286:case 289:return OE(oe);case 287:case 290:return Ih(oe);case 291:return Gu(oe);case 292:return Mf(oe);case 293:return Ap(oe);case 294:return zD(oe);case 295:return V1(oe);case 296:return WE(oe);case 297:return j1(oe);case 298:return Zy(oe);case 299:return U1(oe);case 303:return Zm(oe);case 304:return cA(oe);case 305:return Ve(oe);case 306:return e_(oe);case 307:return xi(oe);case 314:case 308:return gi(oe);case 309:case 310:return er(oe);case 311:return Fr(oe);case 312:return K1(oe);case 313:return x.fail("Bundles should be printed using printBundle");case 315:return x.fail("InputFiles should not be printed");case 316:return $g(oe);case 317:return cb(oe);case 319:return fr("*");case 320:return fr("?");case 321:return ud(oe);case 322:return Ep(oe);case 323:return Rs(oe);case 324:return nd(oe);case 191:case 325:return yt(oe);case 326:return;case 327:return md(oe);case 329:return uA(oe);case 330:return zE(oe);case 334:case 339:case 344:return dA(oe);case 335:case 336:return ev(oe);case 337:case 338:return;case 340:case 341:case 342:case 343:return;case 345:return Ka(oe);case 346:return t_(oe);case 348:case 355:return pA(oe);case 347:case 349:case 350:case 351:case 356:case 357:return FE(oe);case 352:return tv(oe);case 353:return EM(oe);case 354:return H1(oe);case 359:return}if(ht(oe)&&(I=1,s!==OP)){let nn=s(I,oe)||oe;nn!==oe&&(oe=nn,uo&&(oe=uo(oe)))}}if(I===1)switch(oe.kind){case 9:case 10:return wn(oe);case 11:case 14:case 15:return Bn(oe,!1);case 80:return Kr(oe);case 81:return xo(oe);case 209:return Lt(oe);case 210:return Un(oe);case 211:return yo(oe);case 212:return Zo(oe);case 213:return Ql(oe);case 214:return gc(oe);case 215:return sl(oe);case 216:return _l(oe);case 217:return Gl(oe);case 218:return Zl(oe);case 219:return Jc(oe);case 220:return Fu(oe);case 221:return xu(oe);case 222:return Pf(oe);case 223:return z_(oe);case 224:return Ah(oe);case 225:return Fd(oe);case 226:return Er(oe);case 227:return Sp(oe);case 228:return lg(oe);case 229:return zu(oe);case 230:return Q(oe);case 231:return rt(oe);case 232:return;case 234:return zt(oe);case 235:return O(oe);case 233:return wt(oe);case 238:return Ee(oe);case 236:return nt(oe);case 237:return x.fail("SyntheticExpression should never be printed.");case 282:return;case 284:return Qa(oe);case 285:return sA(oe);case 288:return FD(oe);case 358:return x.fail("SyntaxList should not be printed");case 359:return;case 360:return Qr(oe);case 361:return xh(oe);case 362:return x.fail("SyntheticReferenceExpression should not be printed")}if(wu(oe.kind))return ES(oe,Qi);if(xV(oe.kind))return ES(oe,fr);x.fail(`Unhandled SyntaxKind: ${x.formatSyntaxKind(oe.kind)}.`)}function Ne(I){He(I.name),ar(),Qi("in"),ar(),He(I.constraint)}function It(I,oe){let dt=ie(1,I,oe);x.assertIsDefined(hi),oe=hi,hi=void 0,dt(I,oe)}function Dt(I){let oe;if(N===0||e.noEmitHelpers)return;let dt=new Map;for(let nn of I.sourceFiles){let Mr=jk(nn)!==void 0,ki=En(nn);if(ki)for(let vi of ki)!vi.scoped&&!Mr&&!dt.get(vi.name)&&(dt.set(vi.name,!0),(oe||(oe=[])).push(vi.name))}return oe}function Ut(I){let oe=!1,dt=I.kind===313?I:void 0;if(dt&&N===0)return;let nn=dt?dt.prepends.length:0,Mr=dt?dt.sourceFiles.length+nn:1;for(let ki=0;ki"),ar(),He(I.type),rp(I)}function nd(I){Qi("function"),nv(I,I.parameters),fr(":"),He(I.type)}function ud(I){fr("?"),He(I.type)}function Ep(I){fr("!"),He(I.type)}function Rs(I){He(I.type),fr("=")}function Ac(I){Td(I),dg(I,I.modifiers),Qi("new"),ar(),G_(I,I.typeParameters),nv(I,I.parameters),ar(),fr("=>"),ar(),He(I.type),rp(I)}function de(I){Qi("typeof"),ar(),He(I.exprName),pg(I,I.typeArguments)}function $(I){Lf(0,void 0),fr("{");let oe=za(I)&1?768:32897;qs(I,I.members,oe|524288),fr("}"),_b()}function Pe(I){He(I.elementType,Qn.parenthesizeNonArrayTypeOfPostfixType),fr("["),fr("]")}function yt(I){fr("..."),He(I.type)}function cn(I){Ui(23,I.pos,fr,I);let oe=za(I)&1?528:657;qs(I,I.elements,oe|524288,Qn.parenthesizeElementTypeOfTupleType),Ui(24,I.elements.end,fr,I)}function yr(I){He(I.dotDotDotToken),He(I.name),He(I.questionToken),Ui(59,I.name.end,fr,I),ar(),He(I.type)}function pr(I){He(I.type,Qn.parenthesizeTypeOfOptionalType),fr("?")}function zr(I){qs(I,I.types,516,Qn.parenthesizeConstituentTypeOfUnionType)}function Di(I){qs(I,I.types,520,Qn.parenthesizeConstituentTypeOfIntersectionType)}function Cr(I){He(I.checkType,Qn.parenthesizeCheckTypeOfConditionalType),ar(),Qi("extends"),ar(),He(I.extendsType,Qn.parenthesizeExtendsTypeOfConditionalType),ar(),fr("?"),ar(),He(I.trueType),ar(),fr(":"),ar(),He(I.falseType)}function qo(I){Qi("infer"),ar(),He(I.typeParameter)}function bl(I){fr("("),He(I.type),fr(")")}function Hc(){Qi("this")}function zs(I){fb(I.operator,Qi),ar();let oe=I.operator===148?Qn.parenthesizeOperandOfReadonlyTypeOperator:Qn.parenthesizeOperandOfTypeOperator;He(I.type,oe)}function hc(I){He(I.objectType,Qn.parenthesizeNonArrayTypeOfPostfixType),fr("["),He(I.indexType),fr("]")}function ys(I){let oe=za(I);fr("{"),oe&1?ar():(qc(),Rh()),I.readonlyToken&&(He(I.readonlyToken),I.readonlyToken.kind!==148&&Qi("readonly"),ar()),fr("["),U(3,I.typeParameter),I.nameType&&(ar(),Qi("as"),ar(),He(I.nameType)),fr("]"),I.questionToken&&(He(I.questionToken),I.questionToken.kind!==58&&fr("?")),fr(":"),ar(),He(I.type),rd(),oe&1?ar():(qc(),Lm()),qs(I,I.members,2),fr("}")}function Kc(I){Ft(I.literal)}function tp(I){He(I.head),qs(I,I.templateSpans,262144)}function Oc(I){I.isTypeOf&&(Qi("typeof"),ar()),Qi("import"),fr("("),He(I.argument),I.attributes&&(fr(","),ar(),U(7,I.attributes)),fr(")"),I.qualifier&&(fr("."),He(I.qualifier)),pg(I,I.typeArguments)}function im(I){fr("{"),qs(I,I.elements,525136),fr("}")}function fu(I){fr("["),qs(I,I.elements,524880),fr("]")}function Re(I){He(I.dotDotDotToken),I.propertyName&&(He(I.propertyName),fr(":"),ar()),He(I.name),ub(I.initializer,I.name.end,I,Qn.parenthesizeExpressionForDisallowedComma)}function Lt(I){let oe=I.elements,dt=I.multiLine?65536:0;vS(I,oe,8914|dt,Qn.parenthesizeExpressionForDisallowedComma)}function Un(I){Lf(0,void 0),gn(I.properties,X1);let oe=za(I)&131072;oe&&Rh();let dt=I.multiLine?65536:0,nn=w&&w.languageVersion>=1&&!Jf(w)?64:0;qs(I,I.properties,526226|nn|dt),oe&&Lm(),_b()}function yo(I){Ft(I.expression,Qn.parenthesizeLeftSideOfAccess);let oe=I.questionDotToken||fh(L.createToken(25),I.expression.end,I.name.pos),dt=Gp(I,I.expression,oe),nn=Gp(I,oe,I.name);km(dt,!1),oe.kind!==29&&Xo(I.expression)&&!he.hasTrailingComment()&&!he.hasTrailingWhitespace()&&fr("."),I.questionDotToken?He(oe):Ui(oe.kind,I.expression.end,fr,I),km(nn,!1),He(I.name),GE(dt,nn)}function Xo(I){if(I=gm(I),mp(I)){let oe=EA(I,!0,!1);return!(I.numericLiteralFlags&448)&&!oe.includes(da(25))&&!oe.includes("E")&&!oe.includes("e")}else if(Ns(I)){let oe=Koe(I);return typeof oe=="number"&&isFinite(oe)&&oe>=0&&Math.floor(oe)===oe}}function Zo(I){Ft(I.expression,Qn.parenthesizeLeftSideOfAccess),He(I.questionDotToken),Ui(23,I.expression.end,fr,I),Ft(I.argumentExpression),Ui(24,I.argumentExpression.end,fr,I)}function Ql(I){let oe=ym(I)&16;oe&&(fr("("),pb("0"),fr(","),ar()),Ft(I.expression,Qn.parenthesizeLeftSideOfAccess),oe&&fr(")"),He(I.questionDotToken),pg(I,I.typeArguments),vS(I,I.arguments,2576,Qn.parenthesizeExpressionForDisallowedComma)}function gc(I){Ui(105,I.pos,Qi,I),ar(),Ft(I.expression,Qn.parenthesizeExpressionOfNew),pg(I,I.typeArguments),vS(I,I.arguments,18960,Qn.parenthesizeExpressionForDisallowedComma)}function sl(I){let oe=ym(I)&16;oe&&(fr("("),pb("0"),fr(","),ar()),Ft(I.tag,Qn.parenthesizeLeftSideOfAccess),oe&&fr(")"),pg(I,I.typeArguments),ar(),Ft(I.template)}function _l(I){fr("<"),He(I.type),fr(">"),Ft(I.expression,Qn.parenthesizeOperandOfPrefixUnary)}function Gl(I){let oe=Ui(21,I.pos,fr,I),dt=HD(I.expression,I);Ft(I.expression,void 0),SS(I.expression,I),GE(dt),Ui(22,I.expression?I.expression.end:oe,fr,I)}function Zl(I){Vp(I.name),Jn(I)}function Jc(I){dg(I,I.modifiers),fn(I,lf)}function lf(I){G_(I,I.typeParameters),VD(I,I.parameters),sm(I.type),ar(),He(I.equalsGreaterThanToken)}function Fu(I){Ui(91,I.pos,Qi,I),ar(),Ft(I.expression,Qn.parenthesizeOperandOfPrefixUnary)}function xu(I){Ui(114,I.pos,Qi,I),ar(),Ft(I.expression,Qn.parenthesizeOperandOfPrefixUnary)}function Pf(I){Ui(116,I.pos,Qi,I),ar(),Ft(I.expression,Qn.parenthesizeOperandOfPrefixUnary)}function z_(I){Ui(135,I.pos,Qi,I),ar(),Ft(I.expression,Qn.parenthesizeOperandOfPrefixUnary)}function Ah(I){fb(I.operator,uf),Hg(I)&&ar(),Ft(I.operand,Qn.parenthesizeOperandOfPrefixUnary)}function Hg(I){let oe=I.operand;return oe.kind===224&&(I.operator===40&&(oe.operator===40||oe.operator===46)||I.operator===41&&(oe.operator===41||oe.operator===47))}function Fd(I){Ft(I.operand,Qn.parenthesizeOperandOfPostfixUnary),fb(I.operator,uf)}function Kg(){return e3(I,oe,dt,nn,Mr,void 0);function I(vi,Zi){if(Zi){Zi.stackIndex++,Zi.preserveSourceNewlinesStack[Zi.stackIndex]=fe,Zi.containerPosStack[Zi.stackIndex]=Zt,Zi.containerEndStack[Zi.stackIndex]=en,Zi.declarationListContainerEndStack[Zi.stackIndex]=Dn;let _a=Zi.shouldEmitCommentsStack[Zi.stackIndex]=Me(vi),Qd=Zi.shouldEmitSourceMapsStack[Zi.stackIndex]=Nt(vi);l?.(vi),_a&&IA(vi),Qd&&ex(vi),dn(vi)}else Zi={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return Zi}function oe(vi,Zi,_a){return ki(vi,_a,"left")}function dt(vi,Zi,_a){let Qd=vi.kind!==28,Du=Gp(_a,_a.left,vi),wf=Gp(_a,vi,_a.right);km(Du,Qd),mg(vi.pos),ES(vi,vi.kind===103?Qi:uf),wm(vi.end,!0),km(wf,!0)}function nn(vi,Zi,_a){return ki(vi,_a,"right")}function Mr(vi,Zi){let _a=Gp(vi,vi.left,vi.operatorToken),Qd=Gp(vi,vi.operatorToken,vi.right);if(GE(_a,Qd),Zi.stackIndex>0){let Du=Zi.preserveSourceNewlinesStack[Zi.stackIndex],wf=Zi.containerPosStack[Zi.stackIndex],vb=Zi.containerEndStack[Zi.stackIndex],Si=Zi.declarationListContainerEndStack[Zi.stackIndex],Nh=Zi.shouldEmitCommentsStack[Zi.stackIndex],Vn=Zi.shouldEmitSourceMapsStack[Zi.stackIndex];un(Du),Vn&&DA(vi),Nh&&XD(vi,wf,vb,Si),d?.(vi),Zi.stackIndex--}}function ki(vi,Zi,_a){let Qd=_a==="left"?Qn.getParenthesizeLeftSideOfBinaryForOperator(Zi.operatorToken.kind):Qn.getParenthesizeRightSideOfBinaryForOperator(Zi.operatorToken.kind),Du=k(0,1,vi);if(Du===It&&(x.assertIsDefined(hi),vi=Qd(na(hi,ht)),Du=ie(1,1,vi),hi=void 0),(Du===qD||Du===KE||Du===ue)&&dr(vi))return vi;uo=Qd,Du(1,vi)}}function Sp(I){let oe=Gp(I,I.condition,I.questionToken),dt=Gp(I,I.questionToken,I.whenTrue),nn=Gp(I,I.whenTrue,I.colonToken),Mr=Gp(I,I.colonToken,I.whenFalse);Ft(I.condition,Qn.parenthesizeConditionOfConditionalExpression),km(oe,!0),He(I.questionToken),km(dt,!0),Ft(I.whenTrue,Qn.parenthesizeBranchOfConditionalExpression),GE(oe,dt),km(nn,!0),He(I.colonToken),km(Mr,!0),Ft(I.whenFalse,Qn.parenthesizeBranchOfConditionalExpression),GE(nn,Mr)}function lg(I){He(I.head),qs(I,I.templateSpans,262144)}function zu(I){Ui(127,I.pos,Qi,I),He(I.asteriskToken),yS(I.expression&&Nm(I.expression),pS)}function Q(I){Ui(26,I.pos,fr,I),Ft(I.expression,Qn.parenthesizeExpressionForDisallowedComma)}function rt(I){Vp(I.name),Ha(I)}function wt(I){Ft(I.expression,Qn.parenthesizeLeftSideOfAccess),pg(I,I.typeArguments)}function zt(I){Ft(I.expression,void 0),I.type&&(ar(),Qi("as"),ar(),He(I.type))}function O(I){Ft(I.expression,Qn.parenthesizeLeftSideOfAccess),uf("!")}function Ee(I){Ft(I.expression,void 0),I.type&&(ar(),Qi("satisfies"),ar(),He(I.type))}function nt(I){bS(I.keywordToken,I.pos,fr),fr("."),He(I.name)}function Gt(I){Ft(I.expression),He(I.literal)}function Zn(I){ii(I,!I.multiLine&&bA(I))}function ii(I,oe){Ui(19,I.pos,fr,I);let dt=oe||za(I)&1?768:129;qs(I,I.statements,dt),Ui(20,I.statements.end,fr,I,!!(dt&1))}function Xr(I){Bp(I,I.modifiers,!1),He(I.declarationList),rd()}function no(I){I?fr(";"):rd()}function La(I){Ft(I.expression,Qn.parenthesizeExpressionOfExpressionStatement),(!w||!Jf(w)||Ks(I.expression))&&rd()}function ka(I){let oe=Ui(101,I.pos,Qi,I);ar(),Ui(21,oe,fr,I),Ft(I.expression),Ui(22,I.expression.end,fr,I),ug(I,I.thenStatement),I.elseStatement&&(ey(I,I.thenStatement,I.elseStatement),Ui(93,I.thenStatement.end,Qi,I),I.elseStatement.kind===245?(ar(),He(I.elseStatement)):ug(I,I.elseStatement))}function wl(I,oe){let dt=Ui(117,oe,Qi,I);ar(),Ui(21,dt,fr,I),Ft(I.expression),Ui(22,I.expression.end,fr,I)}function pd(I){Ui(92,I.pos,Qi,I),ug(I,I.statement),Ko(I.statement)&&!fe?ar():ey(I,I.statement,I.expression),wl(I,I.statement.end),rd()}function Ic(I){wl(I,I.pos),ug(I,I.statement)}function Tp(I){let oe=Ui(99,I.pos,Qi,I);ar();let dt=Ui(21,oe,fr,I);ls(I.initializer),dt=Ui(27,I.initializer?I.initializer.end:dt,fr,I),yS(I.condition),dt=Ui(27,I.condition?I.condition.end:dt,fr,I),yS(I.incrementor),Ui(22,I.incrementor?I.incrementor.end:dt,fr,I),ug(I,I.statement)}function Bu(I){let oe=Ui(99,I.pos,Qi,I);ar(),Ui(21,oe,fr,I),ls(I.initializer),ar(),Ui(103,I.initializer.end,Qi,I),ar(),Ft(I.expression),Ui(22,I.expression.end,fr,I),ug(I,I.statement)}function ob(I){let oe=Ui(99,I.pos,Qi,I);ar(),fA(I.awaitModifier),Ui(21,oe,fr,I),ls(I.initializer),ar(),Ui(165,I.initializer.end,Qi,I),ar(),Ft(I.expression),Ui(22,I.expression.end,fr,I),ug(I,I.statement)}function ls(I){I!==void 0&&(I.kind===261?He(I):Ft(I))}function Dm(I){Ui(88,I.pos,Qi,I),Zg(I.label),rd()}function Cm(I){Ui(83,I.pos,Qi,I),Zg(I.label),rd()}function Ui(I,oe,dt,nn,Mr){let ki=Do(nn),vi=ki&&ki.kind===nn.kind,Zi=oe;if(vi&&w&&(oe=Na(w.text,oe)),vi&&nn.pos!==Zi){let _a=Mr&&w&&!Sf(Zi,oe,w);_a&&Rh(),mg(Zi),_a&&Lm()}if(!S&&(I===19||I===20)?oe=bS(I,oe,dt,nn):oe=fb(I,dt,oe),vi&&nn.end!==oe){let _a=nn.kind===294;wm(oe,!_a,_a)}return oe}function Jg(I){return I.kind===2||!!I.hasTrailingNewLine}function $y(I){if(!w)return!1;let oe=jh(w.text,I.pos);if(oe){let dt=Do(I);if(dt&&Ou(dt.parent))return!0}return gt(oe,Jg)||gt(IR(I),Jg)?!0:B4(I)?I.pos!==I.expression.pos&>(Yb(w.text,I.expression.pos),Jg)?!0:$y(I.expression):!1}function Nm(I){if(!Kt&&B4(I)&&$y(I)){let oe=Do(I);if(oe&&Ou(oe)){let dt=L.createParenthesizedExpression(I.expression);return xr(dt,I),at(dt,oe),dt}return L.createParenthesizedExpression(I)}return I}function pS(I){return Nm(Qn.parenthesizeExpressionForDisallowedComma(I))}function fS(I){Ui(107,I.pos,Qi,I),yS(I.expression&&Nm(I.expression),Nm),rd()}function cf(I){let oe=Ui(118,I.pos,Qi,I);ar(),Ui(21,oe,fr,I),Ft(I.expression),Ui(22,I.expression.end,fr,I),ug(I,I.statement)}function B_(I){let oe=Ui(109,I.pos,Qi,I);ar(),Ui(21,oe,fr,I),Ft(I.expression),Ui(22,I.expression.end,fr,I),ar(),He(I.caseBlock)}function df(I){He(I.label),Ui(59,I.label.end,fr,I),ar(),He(I.statement)}function qg(I){Ui(111,I.pos,Qi,I),yS(Nm(I.expression),Nm),rd()}function we(I){Ui(113,I.pos,Qi,I),ar(),He(I.tryBlock),I.catchClause&&(ey(I,I.tryBlock,I.catchClause),He(I.catchClause)),I.finallyBlock&&(ey(I,I.catchClause||I.tryBlock,I.finallyBlock),Ui(98,(I.catchClause||I.tryBlock).end,Qi,I),ar(),He(I.finallyBlock))}function qe(I){bS(89,I.pos,Qi),rd()}function Pt(I){var oe,dt,nn;He(I.name),He(I.exclamationToken),sm(I.type),ub(I.initializer,((oe=I.type)==null?void 0:oe.end)??((nn=(dt=I.name.emitNode)==null?void 0:dt.typeNode)==null?void 0:nn.end)??I.name.end,I,Qn.parenthesizeExpressionForDisallowedComma)}function Bt(I){if(y2(I))Qi("await"),ar(),Qi("using");else{let oe=NF(I)?"let":Kx(I)?"const":v2(I)?"using":"var";Qi(oe)}ar(),qs(I,I.declarations,528)}function _n(I){Jn(I)}function Jn(I){Bp(I,I.modifiers,!1),Qi("function"),He(I.asteriskToken),ar(),ut(I.name),fn(I,qn)}function fn(I,oe){let dt=I.body;if(dt)if(Ko(dt)){let nn=za(I)&131072;nn&&Rh(),Td(I),gn(I.parameters,id),id(I.body),oe(I),or(dt),rp(I),nn&&Lm()}else oe(I),ar(),Ft(dt,Qn.parenthesizeConciseBodyOfArrowFunction);else oe(I),rd()}function qn(I){G_(I,I.typeParameters),nv(I,I.parameters),sm(I.type)}function fi(I){if(za(I)&1)return!0;if(I.multiLine||!Ks(I)&&w&&!IT(I,w)||fg(I,Xc(I.statements),2)||q1(I,$s(I.statements),2,I.statements))return!1;let oe;for(let dt of I.statements){if(mb(oe,dt,2)>0)return!1;oe=dt}return!0}function or(I){l?.(I),ar(),fr("{"),Rh();let oe=fi(I)?ni:cr;Sr(I,I.statements,oe),Lm(),bS(20,I.statements.end,fr,I),d?.(I)}function ni(I){cr(I,!0)}function cr(I,oe){let dt=Vu(I.statements),nn=he.getTextPos();Ut(I),dt===0&&nn===he.getTextPos()&&oe?(Lm(),qs(I,I.statements,768),Rh()):qs(I,I.statements,1,void 0,dt)}function Yo(I){Ha(I)}function Ha(I){Lf(0,void 0),gn(I.members,X1),Bp(I,I.modifiers,!0),Ui(86,R_(I).pos,Qi,I),I.name&&(ar(),ut(I.name));let oe=za(I)&131072;oe&&Rh(),G_(I,I.typeParameters),qs(I,I.heritageClauses,0),ar(),fr("{"),qs(I,I.members,129),fr("}"),oe&&Lm(),_b()}function $d(I){Lf(0,void 0),Bp(I,I.modifiers,!1),Qi("interface"),ar(),He(I.name),G_(I,I.typeParameters),qs(I,I.heritageClauses,512),ar(),fr("{"),qs(I,I.members,129),fr("}"),_b()}function fd(I){Bp(I,I.modifiers,!1),Qi("type"),ar(),He(I.name),G_(I,I.typeParameters),ar(),fr("="),ar(),He(I.type),rd()}function Xg(I){Bp(I,I.modifiers,!1),Qi("enum"),ar(),He(I.name),ar(),fr("{"),qs(I,I.members,145),fr("}")}function LE(I){Bp(I,I.modifiers,!1),~I.flags&2048&&(Qi(I.flags&32?"namespace":"module"),ar()),He(I.name);let oe=I.body;if(!oe)return rd();for(;oe&&ql(oe);)fr("."),He(oe.name),oe=oe.body;ar(),He(oe)}function w1(I){Td(I),gn(I.statements,id),ii(I,bA(I)),rp(I)}function kE(I){Ui(19,I.pos,fr,I),qs(I,I.clauses,129),Ui(20,I.clauses.end,fr,I,!0)}function kD(I){Bp(I,I.modifiers,!1),Ui(102,I.modifiers?I.modifiers.end:I.pos,Qi,I),ar(),I.isTypeOnly&&(Ui(156,I.pos,Qi,I),ar()),He(I.name),ar(),Ui(64,I.name.end,fr,I),ar(),wD(I.moduleReference),rd()}function wD(I){I.kind===80?Ft(I):He(I)}function OD(I){Bp(I,I.modifiers,!1),Ui(102,I.modifiers?I.modifiers.end:I.pos,Qi,I),ar(),I.importClause&&(He(I.importClause),ar(),Ui(161,I.importClause.end,Qi,I),ar()),Ft(I.moduleSpecifier),I.attributes&&Zg(I.attributes),rd()}function oA(I){I.isTypeOnly&&(Ui(156,I.pos,Qi,I),ar()),He(I.name),I.name&&I.namedBindings&&(Ui(28,I.name.end,fr,I),ar()),He(I.namedBindings)}function mS(I){let oe=Ui(42,I.pos,fr,I);ar(),Ui(130,oe,Qi,I),ar(),He(I.name)}function O1(I){sb(I)}function WD(I){cg(I)}function W1(I){let oe=Ui(95,I.pos,Qi,I);ar(),I.isExportEquals?Ui(64,oe,uf,I):Ui(90,oe,Qi,I),ar(),Ft(I.expression,I.isExportEquals?Qn.getParenthesizeRightSideOfBinaryForOperator(64):Qn.parenthesizeExpressionOfExportDefault),rd()}function F1(I){Bp(I,I.modifiers,!1);let oe=Ui(95,I.pos,Qi,I);if(ar(),I.isTypeOnly&&(oe=Ui(156,oe,Qi,I),ar()),I.exportClause?He(I.exportClause):oe=Ui(42,oe,fr,I),I.moduleSpecifier){ar();let dt=I.exportClause?I.exportClause.end:oe;Ui(161,dt,Qi,I),ar(),Ft(I.moduleSpecifier)}I.attributes&&Zg(I.attributes),rd()}function z1(I){fr("{"),ar(),Qi(I.token===132?"assert":"with"),fr(":"),ar();let oe=I.elements;qs(I,oe,526226),ar(),fr("}")}function B1(I){Ui(I.token,I.pos,Qi,I),ar();let oe=I.elements;qs(I,oe,526226)}function aA(I){He(I.name),fr(":"),ar();let oe=I.value;if(!(za(oe)&1024)){let dt=C_(oe);wm(dt.pos)}He(oe)}function G1(I){let oe=Ui(95,I.pos,Qi,I);ar(),oe=Ui(130,oe,Qi,I),ar(),oe=Ui(145,oe,Qi,I),ar(),He(I.name),rd()}function _S(I){let oe=Ui(42,I.pos,fr,I);ar(),Ui(130,oe,Qi,I),ar(),He(I.name)}function hS(I){sb(I)}function ab(I){cg(I)}function sb(I){fr("{"),qs(I,I.elements,525136),fr("}")}function cg(I){I.isTypeOnly&&(Qi("type"),ar()),I.propertyName&&(He(I.propertyName),ar(),Ui(130,I.propertyName.end,Qi,I),ar()),He(I.name)}function wE(I){Qi("require"),fr("("),Ft(I.expression),fr(")")}function Qa(I){He(I.openingElement),qs(I,I.children,262144),He(I.closingElement)}function sA(I){fr("<"),lb(I.tagName),pg(I,I.typeArguments),ar(),He(I.attributes),fr("/>")}function FD(I){He(I.openingFragment),qs(I,I.children,262144),He(I.closingFragment)}function OE(I){if(fr("<"),P_(I)){let oe=HD(I.tagName,I);lb(I.tagName),pg(I,I.typeArguments),I.attributes.properties&&I.attributes.properties.length>0&&ar(),He(I.attributes),SS(I.attributes,I),GE(oe)}fr(">")}function Yg(I){he.writeLiteral(I.text)}function Ih(I){fr("")}function Mf(I){qs(I,I.properties,262656)}function Gu(I){He(I.name),Pm("=",fr,I.initializer,hn)}function Ap(I){fr("{..."),Ft(I.expression),fr("}")}function np(I){let oe=!1;return jL(w?.text||"",I+1,()=>oe=!0),oe}function Qy(I){let oe=!1;return VL(w?.text||"",I+1,()=>oe=!0),oe}function lA(I){return np(I)||Qy(I)}function zD(I){var oe;if(I.expression||!Kt&&!Ks(I)&&lA(I.pos)){let dt=w&&!Ks(I)&&hs(w,I.pos).line!==hs(w,I.end).line;dt&&he.increaseIndent();let nn=Ui(19,I.pos,fr,I);He(I.dotDotDotToken),Ft(I.expression),Ui(20,((oe=I.expression)==null?void 0:oe.end)||nn,fr,I),dt&&he.decreaseIndent()}}function V1(I){ut(I.namespace),fr(":"),ut(I.name)}function lb(I){I.kind===80?Ft(I):He(I)}function WE(I){Ui(84,I.pos,Qi,I),ar(),Ft(I.expression,Qn.parenthesizeExpressionForDisallowedComma),yc(I,I.statements,I.expression.end)}function j1(I){let oe=Ui(90,I.pos,Qi,I);yc(I,I.statements,oe)}function yc(I,oe,dt){let nn=oe.length===1&&(!w||Ks(I)||Ks(oe[0])||y6(I,oe[0],w)),Mr=163969;nn?(bS(59,dt,fr,I),ar(),Mr&=-130):Ui(59,dt,fr,I),qs(I,oe,Mr)}function Zy(I){ar(),fb(I.token,Qi),ar(),qs(I,I.types,528)}function U1(I){let oe=Ui(85,I.pos,Qi,I);ar(),I.variableDeclaration&&(Ui(21,oe,fr,I),He(I.variableDeclaration),Ui(22,I.variableDeclaration.end,fr,I),ar()),He(I.block)}function Zm(I){He(I.name),fr(":"),ar();let oe=I.initializer;if(!(za(oe)&1024)){let dt=C_(oe);wm(dt.pos)}Ft(oe,Qn.parenthesizeExpressionForDisallowedComma)}function cA(I){He(I.name),I.objectAssignmentInitializer&&(ar(),fr("="),ar(),Ft(I.objectAssignmentInitializer,Qn.parenthesizeExpressionForDisallowedComma))}function Ve(I){I.expression&&(Ui(26,I.pos,fr,I),Ft(I.expression,Qn.parenthesizeExpressionForDisallowedComma))}function e_(I){He(I.name),ub(I.initializer,I.name.end,I,Qn.parenthesizeExpressionForDisallowedComma)}function md(I){if(Ge("/**"),I.comment){let oe=QL(I.comment);if(oe){let dt=oe.split(/\r\n?|\n/g);for(let nn of dt)qc(),ar(),fr("*"),ar(),Ge(nn)}}I.tags&&(I.tags.length===1&&I.tags[0].kind===351&&!I.comment?(ar(),He(I.tags[0])):qs(I,I.tags,33)),ar(),Ge("*/")}function FE(I){om(I.tagName),$g(I.typeExpression),am(I.comment)}function H1(I){om(I.tagName),He(I.name),am(I.comment)}function cb(I){ar(),fr("{"),He(I.name),fr("}")}function ev(I){om(I.tagName),ar(),fr("{"),He(I.class),fr("}"),am(I.comment)}function tv(I){om(I.tagName),$g(I.constraint),ar(),qs(I,I.typeParameters,528),am(I.comment)}function EM(I){om(I.tagName),I.typeExpression&&(I.typeExpression.kind===316?$g(I.typeExpression):(ar(),fr("{"),Ge("Object"),I.typeExpression.isArrayType&&(fr("["),fr("]")),fr("}"))),I.fullName&&(ar(),He(I.fullName)),am(I.comment),I.typeExpression&&I.typeExpression.kind===329&&uA(I.typeExpression)}function Ka(I){om(I.tagName),I.name&&(ar(),He(I.name)),am(I.comment),zE(I.typeExpression)}function t_(I){am(I.comment),zE(I.typeExpression)}function dA(I){om(I.tagName),am(I.comment)}function uA(I){qs(I,L.createNodeArray(I.jsDocPropertyTags),33)}function zE(I){I.typeParameters&&qs(I,L.createNodeArray(I.typeParameters),33),I.parameters&&qs(I,L.createNodeArray(I.parameters),33),I.type&&(qc(),ar(),fr("*"),ar(),He(I.type))}function pA(I){om(I.tagName),$g(I.typeExpression),ar(),I.isBracketed&&fr("["),He(I.name),I.isBracketed&&fr("]"),am(I.comment)}function om(I){fr("@"),He(I)}function am(I){let oe=QL(I);oe&&(ar(),Ge(oe))}function $g(I){I&&(ar(),fr("{"),He(I.type),fr("}"))}function K1(I){qc();let oe=I.statements;if(oe.length===0||!vm(oe[0])||Ks(oe[0])){Sr(I,oe,qi);return}qi(I)}function n_(I){gS(!!I.hasNoDefaultLib,I.syntheticFileReferences||[],I.syntheticTypeReferences||[],I.syntheticLibReferences||[]);for(let oe of I.prepends)if(WT(oe)&&oe.syntheticReferences)for(let dt of oe.syntheticReferences)He(dt),qc()}function BD(I){I.isDeclarationFile&&gS(I.hasNoDefaultLib,I.referencedFiles,I.typeReferenceDirectives,I.libReferenceDirectives)}function gS(I,oe,dt,nn){if(I){let Mr=he.getTextPos();V_('/// '),Ae&&Ae.sections.push({pos:Mr,end:he.getTextPos(),kind:"no-default-lib"}),qc()}if(w&&w.moduleName&&(V_(`/// `),qc()),w&&w.amdDependencies)for(let Mr of w.amdDependencies)Mr.name?V_(`/// `):V_(`/// `),qc();for(let Mr of oe){let ki=he.getTextPos();V_(`/// `),Ae&&Ae.sections.push({pos:ki,end:he.getTextPos(),kind:"reference",data:Mr.fileName}),qc()}for(let Mr of dt){let ki=he.getTextPos(),vi=Mr.resolutionMode&&Mr.resolutionMode!==w?.impliedNodeFormat?`resolution-mode="${Mr.resolutionMode===99?"import":"require"}"`:"";V_(`/// `),Ae&&Ae.sections.push({pos:ki,end:he.getTextPos(),kind:Mr.resolutionMode?Mr.resolutionMode===99?"type-import":"type-require":"type",data:Mr.fileName}),qc()}for(let Mr of nn){let ki=he.getTextPos();V_(`/// `),Ae&&Ae.sections.push({pos:ki,end:he.getTextPos(),kind:"lib",data:Mr.fileName}),qc()}}function qi(I){let oe=I.statements;Td(I),gn(I.statements,id),Ut(I);let dt=Kl(oe,nn=>!vm(nn));BD(I),qs(I,oe,1,void 0,dt===-1?oe.length:dt),rp(I)}function Qr(I){let oe=za(I);!(oe&1024)&&I.pos!==I.expression.pos&&wm(I.expression.pos),Ft(I.expression),!(oe&2048)&&I.end!==I.expression.end&&mg(I.expression.end)}function xh(I){vS(I,I.elements,528,void 0)}function Vu(I,oe,dt,nn){let Mr=!!oe;for(let ki=0;ki=dt.length||vi===0;if(_a&&nn&32768){p?.(dt),h?.(dt);return}nn&15360&&(fr(bVe(nn)),_a&&dt&&wm(dt.pos,!0)),p?.(dt),_a?nn&1&&!(fe&&(!oe||w&&IT(oe,w)))?qc():nn&256&&!(nn&524288)&&ar():Mm(I,oe,dt,nn,Mr,ki,vi,dt.hasTrailingComma,dt),h?.(dt),nn&15360&&(_a&&dt&&mg(dt.end),fr(EVe(nn)))}function Mm(I,oe,dt,nn,Mr,ki,vi,Zi,_a){let Qd=(nn&262144)===0,Du=Qd,wf=fg(oe,dt[ki],nn);wf?(qc(wf),Du=!1):nn&256&&ar(),nn&128&&Rh();let vb=IVe(I,Mr),Si,Nh,Vn=!1;for(let CS=0;CS0){if(nn&131||(Rh(),Vn=!0),Du&&nn&60&&!Km(U_.pos)){let ZD=C_(U_);wm(ZD.pos,!!(nn&512),!0)}qc(Ph),Du=!1}else Si&&nn&512&&ar()}if(Nh=Ba(U_),Du){let Ph=C_(U_);wm(Ph.pos)}else Du=Qd;ne=U_.pos,vb(U_,I,Mr,CS),Vn&&(Lm(),Vn=!1),Si=U_}let tx=Si?za(Si):0,bb=Kt||!!(tx&2048),Eb=Zi&&nn&64&&nn&16;Eb&&(Si&&!bb?Ui(28,Si.end,fr,Si):fr(",")),Si&&(oe?oe.end:-1)!==Si.end&&nn&60&&!bb&&mg(Eb&&_a?.end?_a.end:Si.end),nn&128&&Lm(),vn(Nh);let CA=q1(oe,dt[ki+vi-1],nn,_a);CA?qc(CA):nn&2097408&&ar()}function pb(I){he.writeLiteral(I)}function UD(I){he.writeStringLiteral(I)}function hA(I){he.write(I)}function AM(I,oe){he.writeSymbol(I,oe)}function fr(I){he.writePunctuation(I)}function rd(){he.writeTrailingSemicolon(";")}function Qi(I){he.writeKeyword(I)}function uf(I){he.writeOperator(I)}function rv(I){he.writeParameter(I)}function V_(I){he.writeComment(I)}function ar(){he.writeSpace(" ")}function gA(I){he.writeProperty(I)}function BE(I){he.nonEscapingWrite?he.nonEscapingWrite(I):he.write(I)}function qc(I=1){for(let oe=0;oe0)}function Rh(){he.increaseIndent()}function Lm(){he.decreaseIndent()}function bS(I,oe,dt,nn){return ze?fb(I,dt,oe):DS(nn,I,dt,oe,fb)}function ES(I,oe){m&&m(I),oe(da(I.kind)),y&&y(I)}function fb(I,oe,dt){let nn=da(I);return oe(nn),dt<0?dt:dt+nn.length}function ey(I,oe,dt){if(za(I)&1)ar();else if(fe){let nn=Gp(I,oe,dt);nn?qc(nn):ar()}else qc()}function yA(I){let oe=I.split(/\r\n?|\n/g),dt=xre(oe);for(let nn of oe){let Mr=dt?nn.slice(dt):nn;Mr.length&&(qc(),Ge(Mr))}}function km(I,oe){I?(Rh(),qc(I)):oe&&ar()}function GE(I,oe){I&&Lm(),oe&&Lm()}function fg(I,oe,dt){if(dt&2||fe){if(dt&65536)return 1;if(oe===void 0)return!I||w&&IT(I,w)?0:1;if(oe.pos===ne||oe.kind===12)return 0;if(w&&I&&!Km(I.pos)&&!Ks(oe)&&(!oe.parent||Nl(oe.parent)===Nl(I)))return fe?VE(nn=>$ie(oe.pos,I.pos,w,nn)):y6(I,oe,w)?0:1;if(vA(oe,dt))return 1}return dt&1?1:0}function mb(I,oe,dt){if(dt&2||fe){if(I===void 0||oe===void 0||oe.kind===12)return 0;if(w&&!Ks(I)&&!Ks(oe))return fe&&Ru(I,oe)?VE(nn=>Yj(I,oe,w,nn)):!fe&&pf(I,oe)?nk(I,oe,w)?0:1:dt&65536?1:0;if(vA(I,dt)||vA(oe,dt))return 1}else if(nP(oe))return 1;return dt&1?1:0}function q1(I,oe,dt,nn){if(dt&2||fe){if(dt&65536)return 1;if(oe===void 0)return!I||w&&IT(I,w)?0:1;if(w&&I&&!Km(I.pos)&&!Ks(oe)&&(!oe.parent||oe.parent===I)){if(fe){let Mr=nn&&!Km(nn.end)?nn.end:oe.end;return VE(ki=>Qie(Mr,I.end,w,ki))}return qie(I,oe,w)?0:1}if(vA(oe,dt))return 1}return dt&1&&!(dt&131072)?1:0}function VE(I){x.assert(!!fe);let oe=I(!0);return oe===0?I(!1):oe}function HD(I,oe){let dt=fe&&fg(oe,I,0);return dt&&km(dt,!1),!!dt}function SS(I,oe){let dt=fe&&q1(oe,I,0,void 0);dt&&qc(dt)}function vA(I,oe){if(Ks(I)){let dt=nP(I);return dt===void 0?(oe&65536)!==0:dt}return(oe&65536)!==0}function Gp(I,oe,dt){return za(I)&262144?0:(I=Vl(I),oe=Vl(oe),dt=Vl(dt),nP(dt)?1:w&&!Ks(I)&&!Ks(oe)&&!Ks(dt)?fe?VE(nn=>Yj(oe,dt,w,nn)):nk(oe,dt,w)?0:1:0)}function bA(I){return I.statements.length===0&&(!w||nk(I,I,w))}function Vl(I){for(;I.kind===217&&Ks(I);)I=I.expression;return I}function Wc(I,oe){if(rl(I)||aT(I))return SA(I);if(Da(I)&&I.textSourceNode)return Wc(I.textSourceNode,oe);let dt=w,nn=!!dt&&!!I.parent&&!Ks(I);if(Hh(I)){if(!nn||Gn(I)!==Nl(dt))return gr(I)}else if(qm(I)){if(!nn||Gn(I)!==Nl(dt))return QN(I)}else if(x.assertNode(I,b0),!nn)return I.text;return S0(dt,I,oe)}function EA(I,oe,dt){if(I.kind===11&&I.textSourceNode){let Mr=I.textSourceNode;if(Fe(Mr)||Ki(Mr)||mp(Mr)||qm(Mr)){let ki=mp(Mr)?Mr.text:Wc(Mr);return dt?`"${wj(ki)}"`:oe||za(I)&16777216?`"${Qh(ki)}"`:`"${Y2(ki)}"`}else return EA(Mr,oe,dt)}let nn=(oe?1:0)|(dt?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0);return Wre(I,w,nn)}function Td(I){I&&za(I)&1048576||(ge.push(q),q=0,ce.push(z),z=void 0,J.push(re))}function rp(I){I&&za(I)&1048576||(q=ge.pop(),z=ce.pop(),re=J.pop())}function jE(I){(!re||re===$s(J))&&(re=new Set),re.add(I)}function Lf(I,oe){Z.push(me),me=I,pe.push(re),xe=oe}function _b(){me=Z.pop(),xe=pe.pop()}function hb(I){(!xe||xe===$s(pe))&&(xe=new Set),xe.add(I)}function id(I){if(I)switch(I.kind){case 241:gn(I.statements,id);break;case 256:case 254:case 246:case 247:id(I.statement);break;case 245:id(I.thenStatement),id(I.elseStatement);break;case 248:case 250:case 249:id(I.initializer),id(I.statement);break;case 255:id(I.caseBlock);break;case 269:gn(I.clauses,id);break;case 296:case 297:gn(I.statements,id);break;case 258:id(I.tryBlock),id(I.catchClause),id(I.finallyBlock);break;case 299:id(I.variableDeclaration),id(I.block);break;case 243:id(I.declarationList);break;case 261:gn(I.declarations,id);break;case 260:case 169:case 208:case 263:Vp(I.name);break;case 262:Vp(I.name),za(I)&1048576&&(gn(I.parameters,id),id(I.body));break;case 206:case 207:gn(I.elements,id);break;case 272:id(I.importClause);break;case 273:Vp(I.name),id(I.namedBindings);break;case 274:Vp(I.name);break;case 280:Vp(I.name);break;case 275:gn(I.elements,id);break;case 276:Vp(I.propertyName||I.name);break}}function X1(I){if(I)switch(I.kind){case 303:case 304:case 172:case 174:case 177:case 178:Vp(I.name);break}}function Vp(I){I&&(rl(I)||aT(I)?SA(I):Qo(I)&&id(I))}function SA(I){let oe=I.emitNode.autoGenerate;if((oe.flags&7)===4)return TA(Jk(I),Ki(I),oe.flags,oe.prefix,oe.suffix);{let dt=oe.id;return Y[dt]||(Y[dt]=JD(I))}}function TA(I,oe,dt,nn,Mr){let ki=rs(I),vi=oe?K:j;return vi[ki]||(vi[ki]=AA(I,oe,dt??0,BR(nn,SA),BR(Mr)))}function Bs(I,oe){return UE(I,oe)&&!KD(I,oe)&&!B.has(I)}function KD(I,oe){return oe?!!xe?.has(I):!!re?.has(I)}function UE(I,oe){return w?TF(w,I,r):!0}function TS(I,oe){for(let dt=oe;dt&&C0(dt,oe);dt=dt.nextContainer)if(lh(dt)&&dt.locals){let nn=dt.locals.get(pl(I));if(nn&&nn.flags&3257279)return!1}return!0}function IM(I){switch(I){case"":return q;case"#":return me;default:return z?.get(I)??0}}function mu(I,oe){switch(I){case"":q=oe;break;case"#":me=oe;break;default:z??(z=new Map),z.set(I,oe);break}}function ty(I,oe,dt,nn,Mr){nn.length>0&&nn.charCodeAt(0)===35&&(nn=nn.slice(1));let ki=vE(dt,nn,"",Mr),vi=IM(ki);if(I&&!(vi&I)){let _a=vE(dt,nn,I===268435456?"_i":"_n",Mr);if(Bs(_a,dt))return vi|=I,dt?hb(_a):oe&&jE(_a),mu(ki,vi),_a}for(;;){let Zi=vi&268435455;if(vi++,Zi!==8&&Zi!==13){let _a=Zi<26?"_"+String.fromCharCode(97+Zi):"_"+(Zi-26),Qd=vE(dt,nn,_a,Mr);if(Bs(Qd,dt))return dt?hb(Qd):oe&&jE(Qd),mu(ki,vi),Qd}}}function j_(I,oe=Bs,dt,nn,Mr,ki,vi){if(I.length>0&&I.charCodeAt(0)===35&&(I=I.slice(1)),ki.length>0&&ki.charCodeAt(0)===35&&(ki=ki.slice(1)),dt){let _a=vE(Mr,ki,I,vi);if(oe(_a,Mr))return Mr?hb(_a):nn?jE(_a):B.add(_a),_a}I.charCodeAt(I.length-1)!==95&&(I+="_");let Zi=1;for(;;){let _a=vE(Mr,ki,I+Zi,vi);if(oe(_a,Mr))return Mr?hb(_a):nn?jE(_a):B.add(_a),_a;Zi++}}function Y1(I){return j_(I,UE,!0,!1,!1,"","")}function Ip(I){let oe=Wc(I.name);return TS(oe,ri(I,lh))?oe:j_(oe,Bs,!1,!1,!1,"","")}function $1(I){let oe=tR(I),dt=Da(oe)?zre(oe.text):"module";return j_(dt,Bs,!1,!1,!1,"","")}function ip(){return j_("default",Bs,!1,!1,!1,"","")}function Q1(){return j_("class",Bs,!1,!1,!1,"","")}function iv(I,oe,dt,nn){return Fe(I.name)?TA(I.name,oe):ty(0,!1,oe,dt,nn)}function AA(I,oe,dt,nn,Mr){switch(I.kind){case 80:case 81:return j_(Wc(I),Bs,!!(dt&16),!!(dt&8),oe,nn,Mr);case 267:case 266:return x.assert(!nn&&!Mr&&!oe),Ip(I);case 272:case 278:return x.assert(!nn&&!Mr&&!oe),$1(I);case 262:case 263:{x.assert(!nn&&!Mr&&!oe);let ki=I.name;return ki&&!rl(ki)?AA(ki,!1,dt,nn,Mr):ip()}case 277:return x.assert(!nn&&!Mr&&!oe),ip();case 231:return x.assert(!nn&&!Mr&&!oe),Q1();case 174:case 177:case 178:return iv(I,oe,nn,Mr);case 167:return ty(0,!0,oe,nn,Mr);default:return ty(0,!1,oe,nn,Mr)}}function JD(I){let oe=I.emitNode.autoGenerate,dt=BR(oe.prefix,SA),nn=BR(oe.suffix);switch(oe.flags&7){case 1:return ty(0,!!(oe.flags&8),Ki(I),dt,nn);case 2:return x.assertNode(I,Fe),ty(268435456,!!(oe.flags&8),!1,dt,nn);case 3:return j_(gr(I),oe.flags&32?UE:Bs,!!(oe.flags&16),!!(oe.flags&8),Ki(I),dt,nn)}return x.fail(`Unsupported GeneratedIdentifierKind: ${x.formatEnum(oe.flags&7,PW,!0)}.`)}function qD(I,oe){let dt=ie(2,I,oe),nn=Zt,Mr=en,ki=Dn;IA(oe),dt(I,oe),XD(oe,nn,Mr,ki)}function IA(I){let oe=za(I),dt=C_(I);gb(I,oe,dt.pos,dt.end),oe&4096&&(Kt=!0)}function XD(I,oe,dt,nn){let Mr=za(I),ki=C_(I);Mr&4096&&(Kt=!1),xp(I,Mr,ki.pos,ki.end,oe,dt,nn);let vi=Yoe(I);vi&&xp(I,Mr,vi.pos,vi.end,oe,dt,nn)}function gb(I,oe,dt,nn){Li(),Xt=!1;let Mr=dt<0||(oe&1024)!==0||I.kind===12,ki=nn<0||(oe&2048)!==0||I.kind===12;(dt>0||nn>0)&&dt!==nn&&(Mr||AS(dt,I.kind!==359),(!Mr||dt>=0&&oe&1024)&&(Zt=dt),(!ki||nn>=0&&oe&2048)&&(en=nn,I.kind===261&&(Dn=nn))),gn(IR(I),Dh),So()}function xp(I,oe,dt,nn,Mr,ki,vi){Li();let Zi=nn<0||(oe&2048)!==0||I.kind===12;gn(Ik(I),YD),(dt>0||nn>0)&&dt!==nn&&(Zt=Mr,en=ki,Dn=vi,!Zi&&I.kind!==359&&r_(nn)),So()}function Dh(I){(I.hasLeadingNewline||I.kind===2)&&he.writeLine(),xA(I),I.hasTrailingNewLine||I.kind===2?he.writeLine():he.writeSpace(" ")}function YD(I){he.isAtStartOfLine()||he.writeSpace(" "),xA(I),I.hasTrailingNewLine&&he.writeLine()}function xA(I){let oe=es(I),dt=I.kind===3?hI(oe):void 0;fR(oe,dt,he,0,oe.length,A)}function es(I){return I.kind===3?`/*${I.text}*/`:`//${I.text}`}function Sr(I,oe,dt){Li();let{pos:nn,end:Mr}=oe,ki=za(I),vi=nn<0||(ki&1024)!==0,Zi=Kt||Mr<0||(ki&2048)!==0;vi||kf(oe),So(),ki&4096&&!Kt?(Kt=!0,dt(I),Kt=!1):dt(I),Li(),Zi||(AS(oe.end,!0),Xt&&!he.isAtStartOfLine()&&he.writeLine()),So()}function pf(I,oe){return I=Nl(I),I.parent&&I.parent===Nl(oe).parent}function Ru(I,oe){if(oe.pos-1&&nn.indexOf(oe)===Mr+1}function AS(I,oe){Xt=!1,oe?I===0&&w?.isDeclarationFile?hg(I,HE):hg(I,RA):I===0&&hg(I,$D)}function $D(I,oe,dt,nn,Mr){mf(I,oe)&&RA(I,oe,dt,nn,Mr)}function HE(I,oe,dt,nn,Mr){mf(I,oe)||RA(I,oe,dt,nn,Mr)}function IS(I,oe){return e.onlyPrintJsDocStyle?RH(I,oe)||AF(I,oe):!0}function RA(I,oe,dt,nn,Mr){!w||!IS(w.text,I)||(Xt||(Lie(Tt(),he,Mr,I),Xt=!0),Ds(I),fR(w.text,Tt(),he,I,oe,A),Ds(oe),nn?he.writeLine():dt===3&&he.writeSpace(" "))}function mg(I){Kt||I===-1||AS(I,!0)}function r_(I){Z1(I,ff)}function ff(I,oe,dt,nn){!w||!IS(w.text,I)||(he.isAtStartOfLine()||he.writeSpace(" "),Ds(I),fR(w.text,Tt(),he,I,oe,A),Ds(oe),nn&&he.writeLine())}function wm(I,oe,dt){Kt||(Li(),Z1(I,oe?ff:dt?ny:_g),So())}function ny(I,oe,dt){w&&(Ds(I),fR(w.text,Tt(),he,I,oe,A),Ds(oe),dt===2&&he.writeLine())}function _g(I,oe,dt,nn){w&&(Ds(I),fR(w.text,Tt(),he,I,oe,A),Ds(oe),nn?he.writeLine():he.writeSpace(" "))}function hg(I,oe){w&&(Zt===-1||I!==Zt)&&(sc(I)?QD(oe):VL(w.text,I,oe,I))}function Z1(I,oe){w&&(en===-1||I!==en&&I!==Dn)&&jL(w.text,I,oe)}function sc(I){return pn!==void 0&&Ja(pn).nodePos===I}function QD(I){if(!w)return;let oe=Ja(pn).detachedCommentEndPos;pn.length-1?pn.pop():pn=void 0,VL(w.text,oe,I,oe)}function kf(I){let oe=w&&wie(w.text,Tt(),he,Ch,I,A,Kt);oe&&(pn?pn.push(oe):pn=[oe])}function Ch(I,oe,dt,nn,Mr,ki){!w||!IS(w.text,nn)||(Ds(nn),fR(I,oe,dt,nn,Mr,ki),Ds(Mr))}function mf(I,oe){return!!w&&UV(w.text,I,oe)}function xS(I){return I.parsedSourceMap===void 0&&I.sourceMapText!==void 0&&(I.parsedSourceMap=IK(I.sourceMapText)||!1),I.parsedSourceMap||void 0}function KE(I,oe){let dt=ie(3,I,oe);ex(oe),dt(I,oe),DA(oe)}function ex(I){let oe=za(I),dt=Wy(I);if(IV(I)){x.assertIsDefined(I.parent,"UnparsedNodes must have parent pointers");let nn=xS(I.parent);nn&&tt&&tt.appendSourceMap(he.getLine(),he.getColumn(),nn,I.parent.sourceMapPath,I.parent.getLineAndCharacterOfPosition(I.pos),I.parent.getLineAndCharacterOfPosition(I.end))}else{let nn=dt.source||Wt;I.kind!==359&&!(oe&32)&&dt.pos>=0&&RS(dt.source||Wt,_f(nn,dt.pos)),oe&128&&(ze=!0)}}function DA(I){let oe=za(I),dt=Wy(I);IV(I)||(oe&128&&(ze=!1),I.kind!==359&&!(oe&64)&&dt.end>=0&&RS(dt.source||Wt,dt.end))}function _f(I,oe){return I.skipTrivia?I.skipTrivia(oe):Na(I.text,oe)}function Ds(I){if(ze||Km(I)||JE(Wt))return;let{line:oe,character:dt}=hs(Wt,I);tt.addMapping(he.getLine(),he.getColumn(),_t,oe,dt,void 0)}function RS(I,oe){if(I!==Wt){let dt=Wt,nn=_t;ry(I),Ds(oe),yb(dt,nn)}else Ds(oe)}function DS(I,oe,dt,nn,Mr){if(ze||I&&UF(I))return Mr(oe,dt,nn);let ki=I&&I.emitNode,vi=ki&&ki.flags||0,Zi=ki&&ki.tokenSourceMapRanges&&ki.tokenSourceMapRanges[oe],_a=Zi&&Zi.source||Wt;return nn=_f(_a,Zi?Zi.pos:nn),!(vi&256)&&nn>=0&&RS(_a,nn),nn=Mr(oe,dt,nn),Zi&&(nn=Zi.end),!(vi&512)&&nn>=0&&RS(_a,nn),nn}function ry(I){if(!ze){if(Wt=I,I===Je){_t=pt;return}JE(I)||(_t=tt.addSource(I.fileName),e.inlineSources&&tt.setSourceContent(_t,I.text),Je=I,pt=_t)}}function yb(I,oe){Wt=I,_t=oe}function JE(I){return Sl(I.fileName,".json")}}function vVe(){let e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function bVe(e){return Fle[e&15360][0]}function EVe(e){return Fle[e&15360][1]}function SVe(e,t,r,i){t(e)}function TVe(e,t,r,i){t(e,r.select(i))}function AVe(e,t,r,i){t(e,r)}function IVe(e,t){return e.length===1?SVe:typeof t=="object"?TVe:AVe}var Fle,Y3,XK,rS,YK,xw,xVe=bt({"src/compiler/emitter.ts"(){"use strict";ea(),ea(),nT(),Fle=vVe(),Y3={hasGlobalName:Ho,getReferencedExportContainer:Ho,getReferencedImportDeclaration:Ho,getReferencedDeclarationWithCollidingName:Ho,isDeclarationWithCollidingName:Ho,isValueAliasDeclaration:Ho,isReferencedAliasDeclaration:Ho,isTopLevelValueImportEqualsWithEntityName:Ho,getNodeCheckFlags:Ho,isDeclarationVisible:Ho,isLateBound:e=>!1,collectLinkedAliases:Ho,isImplementationOfOverload:Ho,isRequiredInitializedParameter:Ho,isOptionalUninitializedParameterProperty:Ho,isExpandoFunctionDeclaration:Ho,getPropertiesOfContainerFunction:Ho,createTypeOfDeclaration:Ho,createReturnTypeOfSignatureDeclaration:Ho,createTypeOfExpression:Ho,createLiteralConstValue:Ho,isSymbolAccessible:Ho,isEntityNameVisible:Ho,getConstantValue:Ho,getReferencedValueDeclaration:Ho,getReferencedValueDeclarations:Ho,getTypeReferenceSerializationKind:Ho,isOptionalParameter:Ho,moduleExportsSomeValue:Ho,isArgumentsLocalBinding:Ho,getExternalModuleFileFromDeclaration:Ho,getTypeReferenceDirectivesForEntityName:Ho,getTypeReferenceDirectivesForSymbol:Ho,isLiteralConstDeclaration:Ho,getJsxFactoryEntity:Ho,getJsxFragmentFactoryEntity:Ho,getAllAccessorDeclarations:Ho,getSymbolOfExternalModuleSpecifier:Ho,isBindingCapturedByNode:Ho,getDeclarationStatementsForSourceFile:Ho,isImportRequiredByAugmentation:Ho,tryFindAmbientModule:Ho},XK=vu(()=>AE({})),rS=vu(()=>AE({removeComments:!0})),YK=vu(()=>AE({removeComments:!0,neverAsciiEscape:!0})),xw=vu(()=>AE({removeComments:!0,omitTrailingSemicolon:!0}))}});function $3(e,t,r){if(!e.getDirectories||!e.readDirectory)return;let i=new Map,o=Nd(r);return{useCaseSensitiveFileNames:r,fileExists:S,readFile:(z,Z)=>e.readFile(z,Z),directoryExists:e.directoryExists&&A,getDirectories:D,readDirectory:w,createDirectory:e.createDirectory&&N,writeFile:e.writeFile&&E,addOrDeleteFileOrDirectory:K,addOrDeleteFile:Y,clearCache:ce,realpath:e.realpath&&j};function s(z){return tl(z,t,o)}function l(z){return i.get(Bc(z))}function d(z){let Z=l(oi(z));return Z&&(Z.sortedAndCanonicalizedFiles||(Z.sortedAndCanonicalizedFiles=Z.files.map(o).sort(),Z.sortedAndCanonicalizedDirectories=Z.directories.map(o).sort()),Z)}function p(z){return nc(ma(z))}function h(z,Z){var me;if(!e.realpath||Bc(s(e.realpath(z)))===Z){let ge={files:mn(e.readDirectory(z,void 0,void 0,["*.*"]),p)||[],directories:e.getDirectories(z)||[]};return i.set(Bc(Z),ge),ge}if((me=e.directoryExists)!=null&&me.call(e,z))return i.set(Z,!1),!1}function m(z,Z){Z=Bc(Z);let me=l(Z);if(me)return me;try{return h(z,Z)}catch{x.assert(!i.has(Bc(Z)));return}}function y(z,Z){return by(z,Z,Qs,Vd)>=0}function E(z,Z,me){let ge=s(z),q=d(ge);return q&&B(q,p(z),!0),e.writeFile(z,Z,me)}function S(z){let Z=s(z),me=d(Z);return me&&y(me.sortedAndCanonicalizedFiles,o(p(z)))||e.fileExists(z)}function A(z){let Z=s(z);return i.has(Bc(Z))||e.directoryExists(z)}function N(z){let Z=s(z),me=d(Z);if(me){let ge=p(z),q=o(ge),J=me.sortedAndCanonicalizedDirectories;vv(J,q,Vd)&&me.directories.push(ge)}e.createDirectory(z)}function D(z){let Z=s(z),me=m(z,Z);return me?me.directories.slice():e.getDirectories(z)}function w(z,Z,me,ge,q){let J=s(z),re=m(z,J),pe;if(re!==void 0)return lU(z,Z,me,ge,r,t,q,xe,j);return e.readDirectory(z,Z,me,ge,q);function xe(ne){let he=s(ne);if(he===J)return re||fe(ne,he);let Ce=m(ne,he);return Ce!==void 0?Ce||fe(ne,he):Q6}function fe(ne,he){if(pe&&he===J)return pe;let Ce={files:mn(e.readDirectory(ne,void 0,void 0,["*.*"]),p)||Xe,directories:e.getDirectories(ne)||Xe};return he===J&&(pe=Ce),Ce}}function j(z){return e.realpath?e.realpath(z):z}function K(z,Z){if(l(Z)!==void 0){ce();return}let ge=d(Z);if(!ge)return;if(!e.directoryExists){ce();return}let q=p(z),J={fileExists:e.fileExists(z),directoryExists:e.directoryExists(z)};return J.directoryExists||y(ge.sortedAndCanonicalizedDirectories,o(q))?ce():B(ge,q,J.fileExists),J}function Y(z,Z,me){if(me===1)return;let ge=d(Z);ge&&B(ge,p(z),me===0)}function B(z,Z,me){let ge=z.sortedAndCanonicalizedFiles,q=o(Z);if(me)vv(ge,q,Vd)&&z.files.push(Z);else{let J=by(ge,q,Qs,Vd);if(J>=0){ge.splice(J,1);let re=z.files.findIndex(pe=>o(pe)===q);z.files.splice(re,1)}}}function ce(){i.clear()}}function Q3(e,t,r,i,o){var s;let l=_0(((s=t?.configFile)==null?void 0:s.extendedSourceFiles)||Xe,o);r.forEach((d,p)=>{l.has(p)||(d.projects.delete(e),d.close())}),l.forEach((d,p)=>{let h=r.get(p);h?h.projects.add(e):r.set(p,{projects:new Set([e]),watcher:i(d,p),close:()=>{let m=r.get(p);!m||m.projects.size!==0||(m.watcher.close(),r.delete(p))}})})}function $K(e,t){t.forEach(r=>{r.projects.delete(e)&&r.close()})}function Z3(e,t,r){e.delete(t)&&e.forEach(({extendedResult:i},o)=>{var s;(s=i.extendedSourceFiles)!=null&&s.some(l=>r(l)===t)&&Z3(e,o,r)})}function QK(e,t,r){WN(t,e.getMissingFilePaths(),{createNewValue:r,onDeleteValue:Hm})}function Rw(e,t,r){t?WN(e,new Map(Object.entries(t)),{createNewValue:i,onDeleteValue:Rf,onExistingValue:o}):$u(e,Rf);function i(s,l){return{watcher:r(s,l),flags:l}}function o(s,l,d){s.flags!==l&&(s.watcher.close(),e.set(d,i(d,l)))}}function Dw({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:i,options:o,program:s,extraFileExtensions:l,currentDirectory:d,useCaseSensitiveFileNames:p,writeLog:h,toPath:m,getScriptKind:y}){let E=uz(r);if(!E)return h(`Project: ${i} Detected ignored path: ${t}`),!0;if(r=E,r===e)return!1;if(mI(r)&&!(voe(t,o,l)||w()))return h(`Project: ${i} Detected file add/remove of non supported extension: ${t}`),!0;if(tse(t,o.configFile.configFileSpecs,ho(oi(i),d),p,d))return h(`Project: ${i} Detected excluded file: ${t}`),!0;if(!s||xs(o)||o.outDir)return!1;if(Ed(r)){if(o.declarationDir)return!1}else if(!bc(r,AR))return!1;let S=Eu(r),A=To(s)?void 0:RVe(s)?s.getProgramOrUndefined():s,N=!A&&!To(s)?s:void 0;if(D(S+".ts")||D(S+".tsx"))return h(`Project: ${i} Detected output file: ${t}`),!0;return!1;function D(j){return A?!!A.getSourceFileByPath(j):N?N.getState().fileInfos.has(j):!!Vr(s,K=>m(K)===j)}function w(){if(!y)return!1;switch(y(t)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return Vv(o);case 6:return mE(o);case 0:return!1}}}function RVe(e){return!!e.getState}function zle(e,t){return e?e.isEmittedFile(t):!1}function ZK(e,t,r,i){Tne(t===2?r:qa);let o={watchFile:(N,D,w,j)=>e.watchFile(N,D,w,j),watchDirectory:(N,D,w,j)=>e.watchDirectory(N,D,(w&1)!==0,j)},s=t!==0?{watchFile:S("watchFile"),watchDirectory:S("watchDirectory")}:void 0,l=t===2?{watchFile:y,watchDirectory:E}:s||o,d=t===2?m:oD;return{watchFile:p("watchFile"),watchDirectory:p("watchDirectory")};function p(N){return(D,w,j,K,Y,B)=>{var ce;return l3(D,N==="watchFile"?K?.excludeFiles:K?.excludeDirectories,h(),((ce=e.getCurrentDirectory)==null?void 0:ce.call(e))||"")?d(D,j,K,Y,B):l[N].call(void 0,D,w,j,K,Y,B)}}function h(){return typeof e.useCaseSensitiveFileNames=="boolean"?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function m(N,D,w,j,K){return r(`ExcludeWatcher:: Added:: ${A(N,D,w,j,K,i)}`),{close:()=>r(`ExcludeWatcher:: Close:: ${A(N,D,w,j,K,i)}`)}}function y(N,D,w,j,K,Y){r(`FileWatcher:: Added:: ${A(N,w,j,K,Y,i)}`);let B=s.watchFile(N,D,w,j,K,Y);return{close:()=>{r(`FileWatcher:: Close:: ${A(N,w,j,K,Y,i)}`),B.close()}}}function E(N,D,w,j,K,Y){let B=`DirectoryWatcher:: Added:: ${A(N,w,j,K,Y,i)}`;r(B);let ce=Hs(),z=s.watchDirectory(N,D,w,j,K,Y),Z=Hs()-ce;return r(`Elapsed:: ${Z}ms ${B}`),{close:()=>{let me=`DirectoryWatcher:: Close:: ${A(N,w,j,K,Y,i)}`;r(me);let ge=Hs();z.close();let q=Hs()-ge;r(`Elapsed:: ${q}ms ${me}`)}}}function S(N){return(D,w,j,K,Y,B)=>o[N].call(void 0,D,(...ce)=>{let z=`${N==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${ce[0]} ${ce[1]!==void 0?ce[1]:""}:: ${A(D,j,K,Y,B,i)}`;r(z);let Z=Hs();w.call(void 0,...ce);let me=Hs()-Z;r(`Elapsed:: ${me}ms ${z}`)},j,K,Y,B)}function A(N,D,w,j,K,Y){return`WatchInfo: ${N} ${D} ${JSON.stringify(w)} ${Y?Y(j,K):K===void 0?j:`${j} ${K}`}`}}function Cw(e){let t=e?.fallbackPolling;return{watchFile:t!==void 0?t:1}}function Rf(e){e.watcher.close()}var eJ,tJ,DVe=bt({"src/compiler/watchUtilities.ts"(){"use strict";ea(),eJ=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(eJ||{}),tJ=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(tJ||{})}});function Ble(e,t,r="tsconfig.json"){return hm(e,i=>{let o=Yr(i,r);return t(o)?o:void 0})}function ez(e,t){let r=oi(t),i=cp(e)?e:Yr(r,e);return ma(i)}function Gle(e,t,r){let i;return gn(e,s=>{let l=wL(s,t);if(l.pop(),!i){i=l;return}let d=Math.min(i.length,l.length);for(let p=0;p{let l;try{el("beforeIORead"),l=e(i,t().charset),el("afterIORead"),Xp("I/O Read","beforeIORead","afterIORead")}catch(d){s&&s(d.message),l=""}return l!==void 0?Yk(i,l,o,r):void 0}}function rJ(e,t,r){return(i,o,s,l)=>{try{el("beforeIOWrite"),zj(i,o,s,e,t,r),el("afterIOWrite"),Xp("I/O Write","beforeIOWrite","afterIOWrite")}catch(d){l&&l(d.message)}}}function iJ(e,t,r=hd){let i=new Map,o=Nd(r.useCaseSensitiveFileNames);function s(m){return i.has(m)?!0:(h.directoryExists||r.directoryExists)(m)?(i.set(m,!0),!0):!1}function l(){return oi(ma(r.getExecutingFilePath()))}let d=wy(e),p=r.realpath&&(m=>r.realpath(m)),h={getSourceFile:nJ(m=>h.readFile(m),()=>e,t),getDefaultLibLocation:l,getDefaultLibFileName:m=>Yr(l(),HL(m)),writeFile:rJ((m,y,E)=>r.writeFile(m,y,E),m=>(h.createDirectory||r.createDirectory)(m),m=>s(m)),getCurrentDirectory:vu(()=>r.getCurrentDirectory()),useCaseSensitiveFileNames:()=>r.useCaseSensitiveFileNames,getCanonicalFileName:o,getNewLine:()=>d,fileExists:m=>r.fileExists(m),readFile:m=>r.readFile(m),trace:m=>r.write(m+d),directoryExists:m=>r.directoryExists(m),getEnvironmentVariable:m=>r.getEnvironmentVariable?r.getEnvironmentVariable(m):"",getDirectories:m=>r.getDirectories(m),realpath:p,readDirectory:(m,y,E,S,A)=>r.readDirectory(m,y,E,S,A),createDirectory:m=>r.createDirectory(m),createHash:ta(r,r.createHash)};return h}function Nw(e,t,r){let i=e.readFile,o=e.fileExists,s=e.directoryExists,l=e.createDirectory,d=e.writeFile,p=new Map,h=new Map,m=new Map,y=new Map,E=N=>{let D=t(N),w=p.get(D);return w!==void 0?w!==!1?w:void 0:S(D,N)},S=(N,D)=>{let w=i.call(e,D);return p.set(N,w!==void 0?w:!1),w};e.readFile=N=>{let D=t(N),w=p.get(D);return w!==void 0?w!==!1?w:void 0:!Sl(N,".json")&&!wle(N)?i.call(e,N):S(D,N)};let A=r?(N,D,w,j)=>{let K=t(N),Y=typeof D=="object"?D.impliedNodeFormat:void 0,B=y.get(Y),ce=B?.get(K);if(ce)return ce;let z=r(N,D,w,j);return z&&(Ed(N)||Sl(N,".json"))&&y.set(Y,(B||new Map).set(K,z)),z}:void 0;return e.fileExists=N=>{let D=t(N),w=h.get(D);if(w!==void 0)return w;let j=o.call(e,N);return h.set(D,!!j),j},d&&(e.writeFile=(N,D,...w)=>{let j=t(N);h.delete(j);let K=p.get(j);K!==void 0&&K!==D?(p.delete(j),y.forEach(Y=>Y.delete(j))):A&&y.forEach(Y=>{let B=Y.get(j);B&&B.text!==D&&Y.delete(j)}),d.call(e,N,D,...w)}),s&&(e.directoryExists=N=>{let D=t(N),w=m.get(D);if(w!==void 0)return w;let j=s.call(e,N);return m.set(D,!!j),j},l&&(e.createDirectory=N=>{let D=t(N);m.delete(D),l.call(e,N)})),{originalReadFile:i,originalFileExists:o,originalDirectoryExists:s,originalCreateDirectory:l,originalWriteFile:d,getSourceFileWithCache:A,readFileWithCache:E}}function YIe(e,t,r){let i;return i=Hr(i,e.getConfigFileParsingDiagnostics()),i=Hr(i,e.getOptionsDiagnostics(r)),i=Hr(i,e.getSyntacticDiagnostics(t,r)),i=Hr(i,e.getGlobalDiagnostics(r)),i=Hr(i,e.getSemanticDiagnostics(t,r)),Af(e.getCompilerOptions())&&(i=Hr(i,e.getDeclarationDiagnostics(t,r))),Mx(i||Xe)}function $Ie(e,t){let r="";for(let i of e)r+=oJ(i,t);return r}function oJ(e,t){let r=`${rT(e)} TS${e.code}: ${k_(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){let{line:i,character:o}=hs(e.file,e.start),s=e.file.fileName;return`${JC(s,t.getCurrentDirectory(),d=>t.getCanonicalFileName(d))}(${i+1},${o+1}): `+r}return r}function QIe(e){switch(e){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return x.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function iS(e,t){return t+e+Kle}function ZIe(e,t,r,i,o,s){let{line:l,character:d}=hs(e,t),{line:p,character:h}=hs(e,t+r),m=hs(e,e.text.length).line,y=p-l>=4,E=(p+1+"").length;y&&(E=Math.max(Jle.length,E));let S="";for(let A=l;A<=p;A++){S+=s.getNewLine(),y&&l+1r.getCanonicalFileName(p)):e.fileName,d="";return d+=i(l,"\x1B[96m"),d+=":",d+=i(`${o+1}`,"\x1B[93m"),d+=":",d+=i(`${s+1}`,"\x1B[93m"),d}function jle(e,t){let r="";for(let i of e){if(i.file){let{file:o,start:s}=i;r+=aJ(o,s,t),r+=" - "}if(r+=iS(rT(i),QIe(i.category)),r+=iS(` TS${i.code}: `,"\x1B[90m"),r+=k_(i.messageText,t.getNewLine()),i.file&&i.code!==f.File_appears_to_be_binary.code&&(r+=t.getNewLine(),r+=ZIe(i.file,i.start,i.length,"",QIe(i.category),t)),i.relatedInformation){r+=t.getNewLine();for(let{file:o,start:s,length:l,messageText:d}of i.relatedInformation)o&&(r+=t.getNewLine(),r+=n1e+aJ(o,s,t),r+=ZIe(o,s,l,qle,"\x1B[96m",t)),r+=t.getNewLine(),r+=qle+k_(d,t.getNewLine())}r+=t.getNewLine()}return r}function k_(e,t,r=0){if(No(e))return e;if(e===void 0)return"";let i="";if(r){i+=t;for(let o=0;oKR(s,e,r,i,o,t,l)}}function uJ(e){return No(e)?e:ih(e.fileName)}function tz(e,t,r,i,o){return{nameAndMode:r1e,resolve:(s,l)=>hse(s,e,r,i,t,o,l)}}function Mw(e,t,r,i,o,s,l,d){if(e.length===0)return Xe;let p=[],h=new Map,m=d(t,r,i,s,l);for(let y of e){let E=m.nameAndMode.getName(y),S=m.nameAndMode.getMode(y,o,r?.commandLine.options||i),A=RP(E,S),N=h.get(A);N||h.set(A,N=m.resolve(E,S)),p.push(N)}return p}function pJ(e,t){return nz(void 0,e,(r,i)=>r&&t(r,i))}function nz(e,t,r,i){let o;return s(e,t,void 0);function s(l,d,p){if(i){let h=i(l,p);if(h)return h}return gn(d,(h,m)=>{if(h&&o?.has(h.sourceFile.path))return;let y=r(h,p,m);return y||!h?y:((o||(o=new Set)).add(h.sourceFile.path),s(h.commandLine.projectReferences,h.references,h))})}}function rz(e,t,r){let i=e.configFilePath?oi(e.configFilePath):t;return Yr(i,`__lib_node_modules_lookup_${r}__.ts`)}function fJ(e){let t=e.split("."),r=t[1],i=2;for(;t[i]&&t[i]!=="d";)r+=(i===2?"/":"-")+t[i],i++;return"@typescript/lib-"+r}function e1e(e){let t=ih(e.fileName),r=c3.get(t);return{libName:t,libFileName:r}}function IE(e){switch(e?.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function ZR(e){return e.pos!==void 0}function VP(e,t){var r,i,o,s;let l=x.checkDefined(e.getSourceFileByPath(t.file)),{kind:d,index:p}=t,h,m,y,E;switch(d){case 3:let S=kw(l,p);if(y=(i=(r=e.getResolvedModule(l,S.text,e.getModeForUsageLocation(l,S)))==null?void 0:r.resolvedModule)==null?void 0:i.packageId,S.pos===-1)return{file:l,packageId:y,text:S.text};h=Na(l.text,S.pos),m=S.end;break;case 4:({pos:h,end:m}=l.referencedFiles[p]);break;case 5:({pos:h,end:m,resolutionMode:E}=l.typeReferenceDirectives[p]),y=(s=(o=e.getResolvedTypeReferenceDirective(l,ih(l.typeReferenceDirectives[p].fileName),E||l.impliedNodeFormat))==null?void 0:o.resolvedTypeReferenceDirective)==null?void 0:s.packageId;break;case 7:({pos:h,end:m}=l.libReferenceDirectives[p]);break;default:return x.assertNever(d)}return{file:l,pos:h,end:m,packageId:y}}function mJ(e,t,r,i,o,s,l,d,p,h){if(!e||d?.()||!Gm(e.getRootFileNames(),t))return!1;let m;if(!Gm(e.getProjectReferences(),h,N)||e.getSourceFiles().some(S))return!1;let y=e.getMissingFilePaths();if(y&&Gc(y,o))return!1;let E=e.getCompilerOptions();if(!Qj(E,r)||e.resolvedLibReferences&&Gc(e.resolvedLibReferences,(w,j)=>l(j)))return!1;if(E.configFile&&r.configFile)return E.configFile.text===r.configFile.text;return!0;function S(w){return!A(w)||s(w.path)}function A(w){return w.version===i(w.resolvedPath,w.fileName)}function N(w,j,K){return GV(w,j)&&D(e.getResolvedProjectReferences()[K],w)}function D(w,j){if(w){if(Bo(m,w))return!0;let Y=eD(j),B=p(Y);return!B||w.commandLine.options.configFile!==B.options.configFile||!Gm(w.commandLine.fileNames,B.fileNames)?!1:((m||(m=[])).push(w),!gn(w.references,(ce,z)=>!D(ce,w.commandLine.projectReferences[z])))}let K=eD(j);return!p(K)}}function KT(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function Lw(e,t,r,i){let o=_J(e,t,r,i);return typeof o=="object"?o.impliedNodeFormat:o}function _J(e,t,r,i){switch(du(i)){case 3:case 99:return bc(e,[".d.mts",".mts",".mjs"])?99:bc(e,[".d.cts",".cts",".cjs"])?1:bc(e,[".d.ts",".ts",".tsx",".js",".jsx"])?o():void 0;default:return}function o(){let s=pw(t,r,i),l=[];s.failedLookupLocations=l,s.affectingLocations=l;let d=fw(e,s);return{impliedNodeFormat:d?.contents.packageJsonContent.type==="module"?99:1,packageJsonLocations:l,packageJsonScope:d}}}function CVe(e,t){return e?Gx(e.getCompilerOptions(),t,u3):!1}function NVe(e,t,r,i,o,s){return{rootNames:e,options:t,host:r,oldProgram:i,configFileParsingDiagnostics:o,typeScriptVersion:s}}function iz(e,t,r,i,o){var s,l,d,p,h,m,y,E,S,A,N,D,w,j,K,Y;let B=To(e)?NVe(e,t,r,i,o):e,{rootNames:ce,options:z,configFileParsingDiagnostics:Z,projectReferences:me,typeScriptVersion:ge}=B,{oldProgram:q}=B,J=vu(()=>Dm("ignoreDeprecations",f.Invalid_value_for_ignoreDeprecations)),re,pe,xe,fe,ne,he,Ce,Ge=new Map,ve=qp(),Ae={},De={},Le=u1(),Et,be,ze,tt,Wt,_t,Je,pt,Zt,en,Dn=typeof z.maxNodeModuleJsDepth=="number"?z.maxNodeModuleJsDepth:0,Kn=0,pn=new Map,Xt=new Map;(s=rr)==null||s.push(rr.Phase.Program,"createProgram",{configFilePath:z.configFilePath,rootDir:z.rootDir},!0),el("beforeProgram");let Kt=B.host||Vle(z),hi=az(Kt),uo=z.noLib,Li=vu(()=>Kt.getDefaultLibFileName(z)),So=Kt.getDefaultLibLocation?Kt.getDefaultLibLocation():oi(Li()),Qn=cR(),Ur=Kt.getCurrentDirectory(),Er=BN(z),on=ak(z,Er),Ye=new Map,Ot,In,si,yi=Kt.hasInvalidatedResolutions||Vm;Kt.resolveModuleNameLiterals?(si=Kt.resolveModuleNameLiterals.bind(Kt),In=(l=Kt.getModuleResolutionCache)==null?void 0:l.call(Kt)):Kt.resolveModuleNames?(si=(we,qe,Pt,Bt,_n,Jn)=>Kt.resolveModuleNames(we.map(Hle),qe,Jn?.map(Hle),Pt,Bt,_n).map(fn=>fn?fn.extension!==void 0?{resolvedModule:fn}:{resolvedModule:{...fn,extension:VN(fn.resolvedFileName)}}:Xle),In=(d=Kt.getModuleResolutionCache)==null?void 0:d.call(Kt)):(In=HR(Ur,Q,z),si=(we,qe,Pt,Bt,_n)=>Mw(we,qe,Pt,Bt,_n,Kt,In,dJ));let $i;if(Kt.resolveTypeReferenceDirectiveReferences)$i=Kt.resolveTypeReferenceDirectiveReferences.bind(Kt);else if(Kt.resolveTypeReferenceDirectives)$i=(we,qe,Pt,Bt,_n)=>Kt.resolveTypeReferenceDirectives(we.map(uJ),qe,Pt,Bt,_n?.impliedNodeFormat).map(Jn=>({resolvedTypeReferenceDirective:Jn}));else{let we=b3(Ur,Q,void 0,In?.getPackageJsonInfoCache(),In?.optionsToRedirectsKey);$i=(qe,Pt,Bt,_n,Jn)=>Mw(qe,Pt,Bt,_n,Jn,Kt,we,tz)}let Io=Kt.hasInvalidatedLibResolutions||Vm,ua;if(Kt.resolveLibrary)ua=Kt.resolveLibrary.bind(Kt);else{let we=HR(Ur,Q,z,In?.getPackageJsonInfoCache());ua=(qe,Pt,Bt)=>E3(qe,Pt,Bt,Kt,we)}let Ba=new Map,vn=new Map,kn=qp(),Be=!1,ct=new Map,lt=new Map,Rt=Kt.useCaseSensitiveFileNames()?new Map:void 0,ae,ke,st,G,et=!!((p=Kt.useSourceOfProjectReferenceRedirect)!=null&&p.call(Kt))&&!z.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Tt,fileExists:He,directoryExists:ut}=PVe({compilerHost:Kt,getSymlinkCache:B_,useSourceOfProjectReferenceRedirect:et,toPath:er,getResolvedProjectReferences:Mo,getSourceOfProjectReferenceRedirect:xu,forEachResolvedProjectReference:Fu}),Ft=Kt.readFile.bind(Kt);(h=rr)==null||h.push(rr.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!q});let hn=CVe(q,z);(m=rr)==null||m.pop();let dn;if((y=rr)==null||y.push(rr.Phase.Program,"tryReuseStructureFromOldProgram",{}),dn=xo(),(E=rr)==null||E.pop(),dn!==2){if(re=[],pe=[],me&&(ae||(ae=me.map(zt)),ce.length&&ae?.forEach((we,qe)=>{if(!we)return;let Pt=xs(we.commandLine.options);if(et){if(Pt||Ld(we.commandLine.options)===0)for(let Bt of we.commandLine.fileNames)Lt(Bt,{kind:1,index:qe})}else if(Pt)Lt(pE(Pt,".d.ts"),{kind:2,index:qe});else if(Ld(we.commandLine.options)===0){let Bt=vu(()=>$R(we.commandLine,!Kt.useCaseSensitiveFileNames()));for(let _n of we.commandLine.fileNames)!Ed(_n)&&!Sl(_n,".json")&&Lt(BP(_n,we.commandLine,!Kt.useCaseSensitiveFileNames(),Bt),{kind:2,index:qe})}})),(S=rr)==null||S.push(rr.Phase.Program,"processRootFiles",{count:ce.length}),gn(ce,(we,qe)=>zs(we,!1,!1,{kind:0,index:qe})),(A=rr)==null||A.pop(),be??(be=ce.length?y3(z,Kt):Xe),ze=u1(),be.length){(N=rr)==null||N.push(rr.Phase.Program,"processTypeReferences",{count:be.length});let we=z.configFilePath?oi(z.configFilePath):Ur,qe=Yr(we,tD),Pt=Ri(be,qe);for(let Bt=0;Bt{zs(Sp(qe),!0,!1,{kind:6,index:Pt})})}xe=vy(re,gi).concat(pe),re=void 0,pe=void 0}if(q&&Kt.onReleaseOldSourceFile){let we=q.getSourceFiles();for(let qe of we){let Pt=ul(qe.resolvedPath);(hn||!Pt||Pt.impliedNodeFormat!==qe.impliedNodeFormat||qe.resolvedPath===qe.path&&Pt.resolvedPath!==qe.path)&&Kt.onReleaseOldSourceFile(qe,q.getCompilerOptions(),!!ul(qe.path))}Kt.getParsedCommandLine||q.forEachResolvedProjectReference(qe=>{z_(qe.sourceFile.path)||Kt.onReleaseOldSourceFile(qe.sourceFile,q.getCompilerOptions(),!1)})}q&&Kt.onReleaseParsedCommandLine&&nz(q.getProjectReferences(),q.getResolvedProjectReferences(),(we,qe,Pt)=>{let Bt=qe?.commandLine.projectReferences[Pt]||q.getProjectReferences()[Pt],_n=eD(Bt);ke?.has(er(_n))||Kt.onReleaseParsedCommandLine(_n,we,q.getCompilerOptions())}),q=void 0,Wt=void 0,Je=void 0,Zt=void 0;let un={getRootFileNames:()=>ce,getSourceFile:Ca,getSourceFileByPath:ul,getSourceFiles:()=>xe,getMissingFilePaths:()=>lt,getModuleResolutionCache:()=>In,getFilesByNameMap:()=>ct,getCompilerOptions:()=>z,getSyntacticDiagnostics:ac,getOptionsDiagnostics:Cr,getGlobalDiagnostics:bl,getSemanticDiagnostics:xl,getCachedSemanticDiagnostics:al,getSuggestionDiagnostics:Pe,getDeclarationDiagnostics:Fs,getBindAndCheckDiagnostics:Lo,getProgramDiagnostics:tn,getTypeChecker:mo,getClassifiableNames:go,getCommonSourceDirectory:Fr,emit:la,getCurrentDirectory:()=>Ur,getNodeCount:()=>mo().getNodeCount(),getIdentifierCount:()=>mo().getIdentifierCount(),getSymbolCount:()=>mo().getSymbolCount(),getTypeCount:()=>mo().getTypeCount(),getInstantiationCount:()=>mo().getInstantiationCount(),getRelationCacheSizes:()=>mo().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>Et,getResolvedTypeReferenceDirectives:()=>Le,getAutomaticTypeDirectiveNames:()=>be,getAutomaticTypeDirectiveResolutions:()=>ze,isSourceFileFromExternalLibrary:ml,isSourceFileDefaultLibrary:cd,getModeForUsageLocation:df,getModeForResolutionAtIndex:qg,getSourceFileFromReference:im,getLibFileFromReference:Oc,sourceFileToPackageName:vn,redirectTargetsMap:kn,usesUriStyleNodeCoreModules:Be,resolvedModules:_t,resolvedTypeReferenceDirectiveNames:pt,resolvedLibReferences:tt,getResolvedModule:U,getResolvedModuleFromModuleSpecifier:Me,getResolvedTypeReferenceDirective:Nt,forEachResolvedModule:k,forEachResolvedTypeReferenceDirective:ie,getCurrentPackagesMap:()=>en,typesPackageExists:We,packageBundlesTypes:Ne,isEmittedFile:fS,getConfigFileParsingDiagnostics:Hc,getProjectReferences:ss,getResolvedProjectReferences:Mo,getProjectReferenceRedirect:Gl,getResolvedProjectReferenceToRedirect:lf,getResolvedProjectReferenceByPath:z_,forEachResolvedProjectReference:Fu,isSourceOfProjectReferenceRedirect:Pf,emitBuildInfo:$l,fileExists:He,readFile:Ft,directoryExists:ut,getSymlinkCache:B_,realpath:(K=Kt.realpath)==null?void 0:K.bind(Kt),useCaseSensitiveFileNames:()=>Kt.useCaseSensitiveFileNames(),getCanonicalFileName:Q,getFileIncludeReasons:()=>ve,structureIsReused:dn,writeFile:Ls};return Tt(),Et?.forEach(we=>{switch(we.kind){case 1:return Qn.add(ii(we.file&&ul(we.file),we.fileProcessingReason,we.diagnostic,we.args||Xe));case 0:let{file:qe,pos:Pt,end:Bt}=VP(un,we.reason);return Qn.add(Qc(qe,x.checkDefined(Pt),x.checkDefined(Bt)-Pt,we.diagnostic,...we.args||Xe));case 2:return we.diagnostics.forEach(_n=>Qn.add(_n));default:x.assertNever(we)}}),O(),el("afterProgram"),Xp("Program","beforeProgram","afterProgram"),(Y=rr)==null||Y.pop(),un;function U(we,qe,Pt){var Bt;return(Bt=_t?.get(we.path))==null?void 0:Bt.get(qe,Pt)}function Me(we){let qe=Gn(we);return x.assertIsDefined(qe,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),U(qe,we.text,df(qe,we))}function Nt(we,qe,Pt){var Bt;return(Bt=pt?.get(we.path))==null?void 0:Bt.get(qe,Pt)}function k(we,qe){H(_t,we,qe)}function ie(we,qe){H(pt,we,qe)}function H(we,qe,Pt){var Bt;Pt?(Bt=we?.get(Pt.path))==null||Bt.forEach((_n,Jn,fn)=>qe(_n,Jn,fn,Pt.path)):we?.forEach((_n,Jn)=>_n.forEach((fn,qn,fi)=>qe(fn,qn,fi,Jn)))}function ue(){return en||(en=new Map,k(({resolvedModule:we})=>{we?.packageId&&en.set(we.packageId.name,we.extension===".d.ts"||!!en.get(we.packageId.name))}),en)}function We(we){return ue().has(A3(we))}function Ne(we){return!!ue().get(we)}function It(we){var qe;(qe=we.resolutionDiagnostics)!=null&&qe.length&&(Et??(Et=[])).push({kind:2,diagnostics:we.resolutionDiagnostics})}function Dt(we,qe,Pt,Bt){if(Kt.resolveModuleNameLiterals||!Kt.resolveModuleNames)return It(Pt);if(!In||Yc(qe))return;let _n=ho(we.originalFileName,Ur),Jn=oi(_n),fn=wn(we),qn=In.getFromNonRelativeNameCache(qe,Bt,Jn,fn);qn&&It(qn)}function Ut(we,qe,Pt){var Bt,_n;if(!we.length)return Xe;let Jn=ho(qe.originalFileName,Ur),fn=wn(qe);(Bt=rr)==null||Bt.push(rr.Phase.Program,"resolveModuleNamesWorker",{containingFileName:Jn}),el("beforeResolveModule");let qn=si(we,Jn,fn,z,qe,Pt);return el("afterResolveModule"),Xp("ResolveModule","beforeResolveModule","afterResolveModule"),(_n=rr)==null||_n.pop(),qn}function En(we,qe,Pt){var Bt,_n;if(!we.length)return[];let Jn=No(qe)?void 0:qe,fn=No(qe)?qe:ho(qe.originalFileName,Ur),qn=Jn&&wn(Jn);(Bt=rr)==null||Bt.push(rr.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:fn}),el("beforeResolveTypeReference");let fi=$i(we,fn,qn,z,Jn,Pt);return el("afterResolveTypeReference"),Xp("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(_n=rr)==null||_n.pop(),fi}function wn(we){let qe=lf(we.originalFileName);if(qe||!Ed(we.originalFileName))return qe;let Pt=Bn(we.path);if(Pt)return Pt;if(!Kt.realpath||!z.preserveSymlinks||!we.originalFileName.includes(Eh))return;let Bt=er(Kt.realpath(we.originalFileName));return Bt===we.path?void 0:Bn(Bt)}function Bn(we){let qe=xu(we);if(No(qe))return lf(qe);if(qe)return Fu(Pt=>{let Bt=xs(Pt.commandLine.options);if(Bt)return er(Bt)===we?Pt:void 0})}function gi(we,qe){return Zs(xi(we),xi(qe))}function xi(we){if(mm(So,we.fileName,!1)){let qe=nc(we.fileName);if(qe==="lib.d.ts"||qe==="lib.es6.d.ts")return 0;let Pt=Sx(VC(qe,"lib."),".d.ts"),Bt=iw.indexOf(Pt);if(Bt!==-1)return Bt+1}return iw.length+2}function er(we){return tl(we,Ur,Q)}function Fr(){if(ne===void 0){let we=jr(xe,qe=>ET(qe,un));ne=GP(z,()=>to(we,qe=>qe.isDeclarationFile?void 0:qe.fileName),Ur,Q,qe=>wt(we,qe))}return ne}function go(){var we;if(!Ce){mo(),Ce=new Set;for(let qe of xe)(we=qe.classifiableNames)==null||we.forEach(Pt=>Ce.add(Pt))}return Ce}function Pi(we,qe){if(dn===0&&!qe.ambientModuleNames.length)return Ut(we,qe,void 0);let Pt,Bt,_n,Jn=Xle,fn=q&&q.getSourceFile(qe.fileName);for(let ni=0;ni{let Bt=(qe?qe.commandLine.projectReferences:me)[Pt],_n=zt(Bt);return we?!_n||_n.sourceFile!==we.sourceFile||!Gm(we.commandLine.fileNames,_n.commandLine.fileNames):_n!==void 0},(we,qe)=>{let Pt=qe?z_(qe.sourceFile.path).commandLine.projectReferences:me;return!Gm(we,Pt,GV)})}function xo(){var we;if(!q)return 0;let qe=q.getCompilerOptions();if(yF(qe,z))return 0;let Pt=q.getRootFileNames();if(!Gm(Pt,ce)||!Kr())return 0;me&&(ae=me.map(zt));let Bt=[],_n=[];if(dn=2,Gc(q.getMissingFilePaths(),or=>Kt.fileExists(or)))return 0;let Jn=q.getSourceFiles(),fn;(or=>{or[or.Exists=0]="Exists",or[or.Modified=1]="Modified"})(fn||(fn={}));let qn=new Map;for(let or of Jn){let ni=Zo(or.fileName,In,Kt,z),cr=Kt.getSourceFileByPath?Kt.getSourceFileByPath(or.fileName,or.resolvedPath,ni,void 0,hn):Kt.getSourceFile(or.fileName,ni,void 0,hn);if(!cr)return 0;cr.packageJsonLocations=(we=ni.packageJsonLocations)!=null&&we.length?ni.packageJsonLocations:void 0,cr.packageJsonScope=ni.packageJsonScope,x.assert(!cr.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let Yo;if(or.redirectInfo){if(cr!==or.redirectInfo.unredirected)return 0;Yo=!1,cr=or}else if(q.redirectTargetsMap.has(or.path)){if(cr!==or)return 0;Yo=!1}else Yo=cr!==or;cr.path=or.path,cr.originalFileName=or.originalFileName,cr.resolvedPath=or.resolvedPath,cr.fileName=or.fileName;let Ha=q.sourceFileToPackageName.get(or.path);if(Ha!==void 0){let $d=qn.get(Ha),fd=Yo?1:0;if($d!==void 0&&fd===1||$d===1)return 0;qn.set(Ha,fd)}if(Yo)or.impliedNodeFormat!==cr.impliedNodeFormat?dn=1:Gm(or.libReferenceDirectives,cr.libReferenceDirectives,hc)?or.hasNoDefaultLib!==cr.hasNoDefaultLib?dn=1:Gm(or.referencedFiles,cr.referencedFiles,hc)?(tp(cr),Gm(or.imports,cr.imports,ys)&&Gm(or.moduleAugmentations,cr.moduleAugmentations,ys)?(or.flags&12582912)!==(cr.flags&12582912)?dn=1:Gm(or.typeReferenceDirectives,cr.typeReferenceDirectives,hc)||(dn=1):dn=1):dn=1:dn=1,_n.push(cr);else if(yi(or.path))dn=1,_n.push(cr);else for(let $d of or.ambientModuleNames)Ge.set($d,or.fileName);Bt.push(cr)}if(dn!==2)return dn;for(let or of _n){let ni=t1e(or),cr=Pi(ni,or);(Je??(Je=new Map)).set(or.path,cr),VV(ni,cr,Xg=>q.getResolvedModule(or,Xg.text,df(or,Xg)),Mre)&&(dn=1);let Ha=or.typeReferenceDirectives,$d=Ri(Ha,or);(Zt??(Zt=new Map)).set(or.path,$d),VV(Ha,$d,Xg=>q.getResolvedTypeReferenceDirective(or,uJ(Xg),Pw(Xg,or.impliedNodeFormat)),Lre)&&(dn=1)}if(dn!==2)return dn;if(Nre(qe,z)||q.resolvedLibReferences&&Gc(q.resolvedLibReferences,(or,ni)=>lg(ni).actual!==or.actual))return 1;if(Kt.hasChangedAutomaticTypeDirectiveNames){if(Kt.hasChangedAutomaticTypeDirectiveNames())return 1}else if(be=y3(z,Kt),!Gm(q.getAutomaticTypeDirectiveNames(),be))return 1;lt=q.getMissingFilePaths(),x.assert(Bt.length===q.getSourceFiles().length);for(let or of Bt)ct.set(or.path,or);return q.getFilesByNameMap().forEach((or,ni)=>{if(!or){ct.set(ni,or);return}if(or.path===ni){q.isSourceFileFromExternalLibrary(or)&&Xt.set(or.path,!0);return}ct.set(ni,ct.get(or.path))}),xe=Bt,ve=q.getFileIncludeReasons(),Et=q.getFileProcessingDiagnostics(),Le=q.getResolvedTypeReferenceDirectives(),be=q.getAutomaticTypeDirectiveNames(),ze=q.getAutomaticTypeDirectiveResolutions(),vn=q.sourceFileToPackageName,kn=q.redirectTargetsMap,Be=q.usesUriStyleNodeCoreModules,_t=q.resolvedModules,pt=q.resolvedTypeReferenceDirectiveNames,tt=q.resolvedLibReferences,en=q.getCurrentPackagesMap(),2}function xn(we){return{getPrependNodes:Ws,getCanonicalFileName:Q,getCommonSourceDirectory:un.getCommonSourceDirectory,getCompilerOptions:un.getCompilerOptions,getCurrentDirectory:()=>Ur,getSourceFile:un.getSourceFile,getSourceFileByPath:un.getSourceFileByPath,getSourceFiles:un.getSourceFiles,getLibFileFromReference:un.getLibFileFromReference,isSourceFileFromExternalLibrary:ml,getResolvedProjectReferenceToRedirect:lf,getProjectReferenceRedirect:Gl,isSourceOfProjectReferenceRedirect:Pf,getSymlinkCache:B_,writeFile:we||Ls,isEmitBlocked:dd,readFile:qe=>Kt.readFile(qe),fileExists:qe=>{let Pt=er(qe);return ul(Pt)?!0:lt.has(Pt)?!1:Kt.fileExists(qe)},useCaseSensitiveFileNames:()=>Kt.useCaseSensitiveFileNames(),getBuildInfo:qe=>{var Pt;return(Pt=un.getBuildInfo)==null?void 0:Pt.call(un,qe)},getSourceFileFromReference:(qe,Pt)=>un.getSourceFileFromReference(qe,Pt),redirectTargetsMap:kn,getFileIncludeReasons:un.getFileIncludeReasons,createHash:ta(Kt,Kt.createHash)}}function Ls(we,qe,Pt,Bt,_n,Jn){Kt.writeFile(we,qe,Pt,Bt,_n,Jn)}function $l(we){var qe,Pt;x.assert(!xs(z)),(qe=rr)==null||qe.push(rr.Phase.Emit,"emitBuildInfo",{},!0),el("beforeEmit");let Bt=q3(Y3,xn(we),void 0,UK,!1,!0);return el("afterEmit"),Xp("Emit","beforeEmit","afterEmit"),(Pt=rr)==null||Pt.pop(),Bt}function Mo(){return ae}function ss(){return me}function Ws(){return gJ(me,(we,qe)=>{var Pt;return(Pt=ae[qe])==null?void 0:Pt.commandLine},we=>{let qe=er(we),Pt=ul(qe);return Pt?Pt.text:ct.has(qe)?void 0:Kt.readFile(qe)},Kt)}function ml(we){return!!Xt.get(we.path)}function cd(we){if(!we.isDeclarationFile)return!1;if(we.hasNoDefaultLib)return!0;if(!z.noLib)return!1;let qe=Kt.useCaseSensitiveFileNames()?eT:qb;return z.lib?gt(z.lib,Pt=>qe(we.fileName,tt.get(Pt).actual)):qe(we.fileName,Li())}function mo(){return he||(he=Bse(un))}function la(we,qe,Pt,Bt,_n,Jn){var fn,qn;(fn=rr)==null||fn.push(rr.Phase.Emit,"emit",{path:we?.path},!0);let fi=ud(()=>bs(un,we,qe,Pt,Bt,_n,Jn));return(qn=rr)==null||qn.pop(),fi}function dd(we){return Ye.has(er(we))}function bs(we,qe,Pt,Bt,_n,Jn,fn){if(!fn){let or=hJ(we,qe,Pt,Bt);if(or)return or}let qn=mo().getEmitResolver(xs(z)?void 0:qe,Bt);el("beforeEmit");let fi=q3(qn,xn(Pt),qe,jK(z,Jn,_n),_n,!1,fn);return el("afterEmit"),Xp("Emit","beforeEmit","afterEmit"),fi}function Ca(we){return ul(er(we))}function ul(we){return ct.get(we)||void 0}function Nf(we,qe,Pt){return Mx(we?qe(we,Pt):va(un.getSourceFiles(),Bt=>(Pt&&Pt.throwIfCancellationRequested(),qe(Bt,Pt))))}function ac(we,qe){return Nf(we,nd,qe)}function xl(we,qe){return Nf(we,Ep,qe)}function al(we){var qe;return we?(qe=Ae.perFile)==null?void 0:qe.get(we.path):Ae.allDiagnostics}function Lo(we,qe){return Rs(we,qe)}function tn(we){var qe;if(jN(we,z,un))return Xe;let Pt=Qn.getDiagnostics(we.fileName);return(qe=we.commentDirectives)!=null&&qe.length?$(we,we.commentDirectives,Pt).diagnostics:Pt}function Fs(we,qe){let Pt=un.getCompilerOptions();return!we||xs(Pt)?yr(we,qe):Nf(we,Di,qe)}function nd(we){return su(we)?(we.additionalSyntacticDiagnostics||(we.additionalSyntacticDiagnostics=cn(we)),Eo(we.additionalSyntacticDiagnostics,we.parseDiagnostics)):we.parseDiagnostics}function ud(we){try{return we()}catch(qe){throw qe instanceof Rx&&(he=void 0),qe}}function Ep(we,qe){return Eo(oz(Rs(we,qe),z),tn(we))}function Rs(we,qe){return zr(we,qe,Ae,Ac)}function Ac(we,qe){return ud(()=>{if(jN(we,z,un))return Xe;let Pt=mo();x.assert(!!we.bindDiagnostics);let _n=(we.scriptKind===1||we.scriptKind===2)&&ck(we,z),Jn=p2(we,z.checkJs),qn=!(!!we.checkJsDirective&&we.checkJsDirective.enabled===!1)&&(we.scriptKind===3||we.scriptKind===4||we.scriptKind===5||Jn||_n||we.scriptKind===7),fi=qn?we.bindDiagnostics:Xe,or=qn?Pt.getDiagnostics(we,qe):Xe;return Jn&&(fi=jr(fi,ni=>lz.has(ni.code)),or=jr(or,ni=>lz.has(ni.code))),de(we,qn&&!Jn,fi,or,_n?we.jsDocDiagnostics:void 0)})}function de(we,qe,...Pt){var Bt;let _n=pm(Pt);if(!qe||!((Bt=we.commentDirectives)!=null&&Bt.length))return _n;let{diagnostics:Jn,directives:fn}=$(we,we.commentDirectives,_n);for(let qn of fn.getUnusedExpectations())Jn.push(qre(we,qn.range,f.Unused_ts_expect_error_directive));return Jn}function $(we,qe,Pt){let Bt=Ore(we,qe);return{diagnostics:Pt.filter(Jn=>yt(Jn,Bt)===-1),directives:Bt}}function Pe(we,qe){return ud(()=>mo().getSuggestionDiagnostics(we,qe))}function yt(we,qe){let{file:Pt,start:Bt}=we;if(!Pt)return-1;let _n=Dg(Pt),Jn=Nx(_n,Bt).line-1;for(;Jn>=0;){if(qe.markUsed(Jn))return Jn;let fn=Pt.text.slice(_n[Jn],_n[Jn+1]).trim();if(fn!==""&&!/^(\s*)\/\/(.*)$/.test(fn))return-1;Jn--}return-1}function cn(we){return ud(()=>{let qe=[];return Pt(we,we),bP(we,Pt,Bt),qe;function Pt(qn,fi){switch(fi.kind){case 169:case 172:case 174:if(fi.questionToken===qn)return qe.push(fn(qn,f.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 173:case 176:case 177:case 178:case 218:case 262:case 219:case 260:if(fi.type===qn)return qe.push(fn(qn,f.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(qn.kind){case 273:if(qn.isTypeOnly)return qe.push(fn(fi,f._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(qn.isTypeOnly)return qe.push(fn(qn,f._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(qn.isTypeOnly)return qe.push(fn(qn,f._0_declarations_can_only_be_used_in_TypeScript_files,Qu(qn)?"import...type":"export...type")),"skip";break;case 271:return qe.push(fn(qn,f.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(qn.isExportEquals)return qe.push(fn(qn,f.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(qn.token===119)return qe.push(fn(qn,f.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:let ni=da(120);return x.assertIsDefined(ni),qe.push(fn(qn,f._0_declarations_can_only_be_used_in_TypeScript_files,ni)),"skip";case 267:let cr=qn.flags&32?da(145):da(144);return x.assertIsDefined(cr),qe.push(fn(qn,f._0_declarations_can_only_be_used_in_TypeScript_files,cr)),"skip";case 265:return qe.push(fn(qn,f.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return qn.body?void 0:(qe.push(fn(qn,f.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:let Yo=x.checkDefined(da(94));return qe.push(fn(qn,f._0_declarations_can_only_be_used_in_TypeScript_files,Yo)),"skip";case 235:return qe.push(fn(qn,f.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return qe.push(fn(qn.type,f.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return qe.push(fn(qn.type,f.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:x.fail()}}function Bt(qn,fi){if(TH(fi)){let or=Vr(fi.modifiers,bd);or&&qe.push(fn(or,f.Decorators_are_not_valid_here))}else if(GT(fi)&&fi.modifiers){let or=Kl(fi.modifiers,bd);if(or>=0){if(Ao(fi)&&!z.experimentalDecorators)qe.push(fn(fi.modifiers[or],f.Decorators_are_not_valid_here));else if(Sc(fi)){let ni=Kl(fi.modifiers,JI);if(ni>=0){let cr=Kl(fi.modifiers,w4);if(or>ni&&cr>=0&&or=0&&or=0&&qe.push(Pa(fn(fi.modifiers[Yo],f.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),fn(fi.modifiers[or],f.Decorator_used_before_export_here)))}}}}}switch(fi.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(qn===fi.typeParameters)return qe.push(Jn(qn,f.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(qn===fi.modifiers)return _n(fi.modifiers,fi.kind===243),"skip";break;case 172:if(qn===fi.modifiers){for(let or of qn)Sa(or)&&or.kind!==126&&or.kind!==129&&qe.push(fn(or,f.The_0_modifier_can_only_be_used_in_TypeScript_files,da(or.kind)));return"skip"}break;case 169:if(qn===fi.modifiers&>(qn,Sa))return qe.push(Jn(qn,f.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if(qn===fi.typeArguments)return qe.push(Jn(qn,f.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function _n(qn,fi){for(let or of qn)switch(or.kind){case 87:if(fi)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:qe.push(fn(or,f.The_0_modifier_can_only_be_used_in_TypeScript_files,da(or.kind)));break;case 126:case 95:case 90:case 129:}}function Jn(qn,fi,...or){let ni=qn.pos;return Qc(we,ni,qn.end-ni,fi,...or)}function fn(qn,fi,...or){return Kf(we,qn,fi,...or)}})}function yr(we,qe){return zr(we,qe,De,pr)}function pr(we,qe){return ud(()=>{let Pt=mo().getEmitResolver(we,qe);return Lle(xn(qa),Pt,we)||Xe})}function zr(we,qe,Pt,Bt){var _n;let Jn=we?(_n=Pt.perFile)==null?void 0:_n.get(we.path):Pt.allDiagnostics;if(Jn)return Jn;let fn=Bt(we,qe);return we?(Pt.perFile||(Pt.perFile=new Map)).set(we.path,fn):Pt.allDiagnostics=fn,fn}function Di(we,qe){return we.isDeclarationFile?[]:yr(we,qe)}function Cr(){return Mx(Eo(Qn.getGlobalDiagnostics(),qo()))}function qo(){if(!z.configFile)return Xe;let we=Qn.getDiagnostics(z.configFile.fileName);return Fu(qe=>{we=Eo(we,Qn.getDiagnostics(qe.sourceFile.fileName))}),we}function bl(){return ce.length?Mx(mo().getGlobalDiagnostics().slice()):Xe}function Hc(){return Z||Xe}function zs(we,qe,Pt,Bt){Re(ma(we),qe,Pt,void 0,Bt)}function hc(we,qe){return we.fileName===qe.fileName}function ys(we,qe){return we.kind===80?qe.kind===80&&we.escapedText===qe.escapedText:qe.kind===11&&we.text===qe.text}function Kc(we,qe){let Pt=L.createStringLiteral(we),Bt=L.createImportDeclaration(void 0,void 0,Pt,void 0);return BI(Bt,2),ja(Pt,Bt),ja(Bt,qe),Pt.flags&=-17,Bt.flags&=-17,Pt}function tp(we){if(we.imports)return;let qe=su(we),Pt=oc(we),Bt,_n,Jn;if((em(z)||Pt)&&!we.isDeclarationFile){z.importHelpers&&(Bt=[Kc(Gv,we)]);let or=C6(D6(z,we),z);or&&(Bt||(Bt=[])).push(Kc(or,we))}for(let or of we.statements)fn(or,!1);(we.flags&4194304||qe)&&qn(we),we.imports=Bt||Xe,we.moduleAugmentations=_n||Xe,we.ambientModuleNames=Jn||Xe;return;function fn(or,ni){if(_2(or)){let cr=tR(or);cr&&Da(cr)&&cr.text&&(!ni||!Yc(cr.text))&&(Bv(or,!1),Bt=Tn(Bt,cr),!Be&&Kn===0&&!we.isDeclarationFile&&(Be=ao(cr.text,"node:")))}else if(ql(or)&&Md(or)&&(ni||$r(or,128)||we.isDeclarationFile)){or.name.parent=or;let cr=Xf(or.name);if(Pt||ni&&!Yc(cr))(_n||(_n=[])).push(or.name);else if(!ni){we.isDeclarationFile&&(Jn||(Jn=[])).push(cr);let Yo=or.body;if(Yo)for(let Ha of Yo.statements)fn(Ha,!0)}}}function qn(or){let ni=/import|require/g;for(;ni.exec(or.text)!==null;){let cr=fi(or,ni.lastIndex);qe&&bu(cr,!0)||Op(cr)&&cr.arguments.length>=1&&as(cr.arguments[0])?(Bv(cr,!1),Bt=Tn(Bt,cr.arguments[0])):wv(cr)&&(Bv(cr,!1),Bt=Tn(Bt,cr.argument.literal))}}function fi(or,ni){let cr=or,Yo=Ha=>{if(Ha.pos<=ni&&(niSl(_n,fn))){Pt&&(O0(_n)?Pt(f.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,we):Pt(f.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,we,"'"+pm(Er).join("', '")+"'"));return}let Jn=qe(we);if(Pt)if(Jn)IE(Bt)&&_n===Kt.getCanonicalFileName(ul(Bt.file).fileName)&&Pt(f.A_file_cannot_have_a_reference_to_itself);else{let fn=Gl(we);fn?Pt(f.Output_file_0_has_not_been_built_from_source_file_1,fn,we):Pt(f.File_0_not_found,we)}return Jn}else{let _n=z.allowNonTsExtensions&&qe(we);if(_n)return _n;if(Pt&&z.allowNonTsExtensions){Pt(f.File_0_not_found,we);return}let Jn=gn(Er[0],fn=>qe(we+fn));return Pt&&!Jn&&Pt(f.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,we,"'"+pm(Er).join("', '")+"'"),Jn}}function Re(we,qe,Pt,Bt,_n){fu(we,Jn=>Xo(Jn,qe,Pt,_n,Bt),(Jn,...fn)=>Xr(void 0,_n,Jn,fn),_n)}function Lt(we,qe){return Re(we,!1,!1,void 0,qe)}function Un(we,qe,Pt){!IE(Pt)&>(ve.get(qe.path),IE)?Xr(qe,Pt,f.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[qe.fileName,we]):Xr(qe,Pt,f.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[we,qe.fileName])}function yo(we,qe,Pt,Bt,_n,Jn,fn){var qn;let fi=bh.createRedirectedSourceFile({redirectTarget:we,unredirected:qe});return fi.fileName=Pt,fi.path=Bt,fi.resolvedPath=_n,fi.originalFileName=Jn,fi.packageJsonLocations=(qn=fn.packageJsonLocations)!=null&&qn.length?fn.packageJsonLocations:void 0,fi.packageJsonScope=fn.packageJsonScope,Xt.set(Bt,Kn>0),fi}function Xo(we,qe,Pt,Bt,_n){var Jn,fn;(Jn=rr)==null||Jn.push(rr.Phase.Program,"findSourceFile",{fileName:we,isDefaultLib:qe||void 0,fileIncludeKind:MW[Bt.kind]});let qn=Ql(we,qe,Pt,Bt,_n);return(fn=rr)==null||fn.pop(),qn}function Zo(we,qe,Pt,Bt){let _n=_J(ho(we,Ur),qe?.getPackageJsonInfoCache(),Pt,Bt),Jn=ns(Bt),fn=ok(Bt);return typeof _n=="object"?{..._n,languageVersion:Jn,setExternalModuleIndicator:fn,jsDocParsingMode:Pt.jsDocParsingMode}:{languageVersion:Jn,impliedNodeFormat:_n,setExternalModuleIndicator:fn,jsDocParsingMode:Pt.jsDocParsingMode}}function Ql(we,qe,Pt,Bt,_n){var Jn;let fn=er(we);if(et){let cr=xu(fn);if(!cr&&Kt.realpath&&z.preserveSymlinks&&Ed(we)&&we.includes(Eh)){let Yo=er(Kt.realpath(we));Yo!==fn&&(cr=xu(Yo))}if(cr){let Yo=No(cr)?Xo(cr,qe,Pt,Bt,_n):void 0;return Yo&&sl(Yo,fn,we,void 0),Yo}}let qn=we;if(ct.has(fn)){let cr=ct.get(fn);if(gc(cr||void 0,Bt),cr&&z.forceConsistentCasingInFileNames!==!1){let Yo=cr.fileName;er(Yo)!==er(we)&&(we=Gl(we)||we);let $d=lV(Yo,Ur),fd=lV(we,Ur);$d!==fd&&Un(we,cr,Bt)}return cr&&Xt.get(cr.path)&&Kn===0?(Xt.set(cr.path,!1),z.noResolve||(Ah(cr,qe),Hg(cr)),z.noLib||zu(cr),pn.set(cr.path,!1),rt(cr)):cr&&pn.get(cr.path)&&KnXr(void 0,Bt,f.Cannot_read_file_0_Colon_1,[we,cr]),hn);if(_n){let cr=Lv(_n),Yo=Ba.get(cr);if(Yo){let Ha=yo(Yo,ni,we,fn,er(we),qn,or);return kn.add(Yo.path,we),sl(Ha,fn,we,fi),gc(Ha,Bt),vn.set(fn,EF(_n)),pe.push(Ha),Ha}else ni&&(Ba.set(cr,ni),vn.set(fn,EF(_n)))}if(sl(ni,fn,we,fi),ni){if(Xt.set(fn,Kn>0),ni.fileName=we,ni.path=fn,ni.resolvedPath=er(we),ni.originalFileName=qn,ni.packageJsonLocations=(Jn=or.packageJsonLocations)!=null&&Jn.length?or.packageJsonLocations:void 0,ni.packageJsonScope=or.packageJsonScope,gc(ni,Bt),Kt.useCaseSensitiveFileNames()){let cr=ih(fn),Yo=Rt.get(cr);Yo?Un(we,Yo,Bt):Rt.set(cr,ni)}uo=uo||ni.hasNoDefaultLib&&!Pt,z.noResolve||(Ah(ni,qe),Hg(ni)),z.noLib||zu(ni),rt(ni),qe?re.push(ni):pe.push(ni)}return ni}function gc(we,qe){we&&ve.add(we.path,qe)}function sl(we,qe,Pt,Bt){Bt?(_l(Pt,Bt,we),_l(Pt,qe,we||!1)):_l(Pt,qe,we)}function _l(we,qe,Pt){ct.set(qe,Pt),Pt!==void 0?lt.delete(qe):lt.set(qe,we)}function Gl(we){let qe=Zl(we);return qe&&Jc(qe,we)}function Zl(we){if(!(!ae||!ae.length||Ed(we)||Sl(we,".json")))return lf(we)}function Jc(we,qe){let Pt=xs(we.commandLine.options);return Pt?pE(Pt,".d.ts"):BP(qe,we.commandLine,!Kt.useCaseSensitiveFileNames())}function lf(we){st===void 0&&(st=new Map,Fu(Pt=>{er(z.configFilePath)!==Pt.sourceFile.path&&Pt.commandLine.fileNames.forEach(Bt=>st.set(er(Bt),Pt.sourceFile.path))}));let qe=st.get(er(we));return qe&&z_(qe)}function Fu(we){return pJ(ae,we)}function xu(we){if(Ed(we))return G===void 0&&(G=new Map,Fu(qe=>{let Pt=xs(qe.commandLine.options);if(Pt){let Bt=pE(Pt,".d.ts");G.set(er(Bt),!0)}else{let Bt=vu(()=>$R(qe.commandLine,!Kt.useCaseSensitiveFileNames()));gn(qe.commandLine.fileNames,_n=>{if(!Ed(_n)&&!Sl(_n,".json")){let Jn=BP(_n,qe.commandLine,!Kt.useCaseSensitiveFileNames(),Bt);G.set(er(Jn),_n)}})}})),G.get(we)}function Pf(we){return et&&!!lf(we)}function z_(we){if(ke)return ke.get(we)||void 0}function Ah(we,qe){gn(we.referencedFiles,(Pt,Bt)=>{Re(ez(Pt.fileName,we.fileName),qe,!1,void 0,{kind:4,file:we.path,index:Bt})})}function Hg(we){let qe=we.typeReferenceDirectives;if(!qe.length)return;let Pt=Zt?.get(we.path)||Ri(qe,we),Bt=u1();(pt??(pt=new Map)).set(we.path,Bt);for(let _n=0;_n{let{libName:Bt,libFileName:_n}=e1e(qe);if(_n)zs(Sp(_n),!0,!0,{kind:7,file:we.path,index:Pt});else{let Jn=Sx(VC(Bt,"lib."),".d.ts"),fn=GC(Jn,iw,Qs),qn=fn?f.Cannot_find_lib_definition_for_0_Did_you_mean_1:f.Cannot_find_lib_definition_for_0,fi=fn?[Bt,fn]:[Bt];(Et||(Et=[])).push({kind:0,reason:{kind:7,file:we.path,index:Pt},diagnostic:qn,args:fi})}})}function Q(we){return Kt.getCanonicalFileName(we)}function rt(we){var qe;if(tp(we),we.imports.length||we.moduleAugmentations.length){let Pt=t1e(we),Bt=Je?.get(we.path)||Pi(Pt,we);x.assert(Bt.length===Pt.length);let _n=((qe=wn(we))==null?void 0:qe.commandLine.options)||z,Jn=u1();(_t??(_t=new Map)).set(we.path,Jn);for(let fn=0;fnDn,fd=Ha&&!yJ(_n,qn,we)&&!_n.noResolve&&fnoc(fn)&&!fn.isDeclarationFile);if(z.isolatedModules||z.verbatimModuleSyntax)z.module===0&&qe<2&&z.isolatedModules&&ls(f.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),z.preserveConstEnums===!1&&ls(f.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,z.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(Pt&&qe<2&&z.module===0){let fn=fT(Pt,typeof Pt.externalModuleIndicator=="boolean"?Pt:Pt.externalModuleIndicator);Qn.add(Qc(Pt,fn.start,fn.length,f.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(we&&!z.emitDeclarationOnly){if(z.module&&!(z.module===2||z.module===4))ls(f.Only_amd_and_system_modules_are_supported_alongside_0,z.out?"out":"outFile","module");else if(z.module===void 0&&Pt){let fn=fT(Pt,typeof Pt.externalModuleIndicator=="boolean"?Pt:Pt.externalModuleIndicator);Qn.add(Qc(Pt,fn.start,fn.length,f.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,z.out?"out":"outFile"))}}if(mE(z)&&(du(z)===1?ls(f.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):I6(z)||ls(f.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,"resolveJsonModule","module")),z.outDir||z.rootDir||z.sourceRoot||z.mapRoot){let fn=Fr();z.outDir&&fn===""&&xe.some(qn=>sh(qn.fileName)>1)&&ls(f.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}z.useDefineForClassFields&&qe===0&&ls(f.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),z.checkJs&&!Vv(z)&&Qn.add(jl(f.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),z.emitDeclarationOnly&&(Af(z)||ls(f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),z.noEmit&&ls(f.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),z.emitDecoratorMetadata&&!z.experimentalDecorators&&ls(f.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),z.jsxFactory?(z.reactNamespace&&ls(f.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(z.jsx===4||z.jsx===5)&&ls(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",AP.get(""+z.jsx)),l1(z.jsxFactory,qe)||Dm("jsxFactory",f.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,z.jsxFactory)):z.reactNamespace&&!Yp(z.reactNamespace,qe)&&Dm("reactNamespace",f.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,z.reactNamespace),z.jsxFragmentFactory&&(z.jsxFactory||ls(f.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(z.jsx===4||z.jsx===5)&&ls(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",AP.get(""+z.jsx)),l1(z.jsxFragmentFactory,qe)||Dm("jsxFragmentFactory",f.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,z.jsxFragmentFactory)),z.reactNamespace&&(z.jsx===4||z.jsx===5)&&ls(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",AP.get(""+z.jsx)),z.jsxImportSource&&z.jsx===2&&ls(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",AP.get(""+z.jsx)),z.preserveValueImports&&Ld(z)<5&&ls(f.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"preserveValueImports");let Bt=Ld(z);z.verbatimModuleSyntax&&((Bt===2||Bt===3||Bt===4)&&ls(f.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),z.preserveValueImports&&Nm("preserveValueImports","verbatimModuleSyntax"),z.importsNotUsedAsValues&&Nm("importsNotUsedAsValues","verbatimModuleSyntax")),z.allowImportingTsExtensions&&!(z.noEmit||z.emitDeclarationOnly)&&Dm("allowImportingTsExtensions",f.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);let _n=du(z);if(z.resolvePackageJsonExports&&!OI(_n)&&ls(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),z.resolvePackageJsonImports&&!OI(_n)&&ls(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),z.customConditions&&!OI(_n)&&ls(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),_n===100&&!A6(Bt)&&Bt!==200&&Dm("moduleResolution",f.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),UC[Bt]&&100<=Bt&&Bt<=199&&!(3<=_n&&_n<=99)){let fn=UC[Bt];Dm("moduleResolution",f.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,fn,fn)}else if(Dx[_n]&&3<=_n&&_n<=99&&!(100<=Bt&&Bt<=199)){let fn=Dx[_n];Dm("module",f.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,fn,fn)}if(!z.noEmit&&!z.suppressOutputPathCheck){let fn=xn(),qn=new Set;HK(fn,fi=>{z.emitDeclarationOnly||Jn(fi.jsFilePath,qn),Jn(fi.declarationFilePath,qn)})}function Jn(fn,qn){if(fn){let fi=er(fn);if(ct.has(fi)){let ni;z.configFilePath||(ni=zo(void 0,f.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),ni=zo(ni,f.Cannot_write_file_0_because_it_would_overwrite_input_file,fn),pS(fn,S6(ni))}let or=Kt.useCaseSensitiveFileNames()?fi:ih(fi);qn.has(or)?pS(fn,jl(f.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,fn)):qn.add(or)}}}function Ee(){let we=z.ignoreDeprecations;if(we){if(we==="5.0")return new fm(we);J()}return fm.zero}function nt(we,qe,Pt,Bt){let _n=new fm(we),Jn=new fm(qe),fn=new fm(ge||g_),qn=Ee(),fi=Jn.compareTo(fn)!==1,or=!fi&&qn.compareTo(_n)===-1;(fi||or)&&Bt((ni,cr,Yo)=>{fi?cr===void 0?Pt(ni,cr,Yo,f.Option_0_has_been_removed_Please_remove_it_from_your_configuration,ni):Pt(ni,cr,Yo,f.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,ni,cr):cr===void 0?Pt(ni,cr,Yo,f.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,ni,qe,we):Pt(ni,cr,Yo,f.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,ni,cr,qe,we)})}function Gt(){function we(qe,Pt,Bt,_n,...Jn){if(Bt){let fn=zo(void 0,f.Use_0_instead,Bt),qn=zo(fn,_n,...Jn);Ui(!Pt,qe,void 0,qn)}else Ui(!Pt,qe,void 0,_n,...Jn)}nt("5.0","5.5",we,qe=>{z.target===0&&qe("target","ES3"),z.noImplicitUseStrict&&qe("noImplicitUseStrict"),z.keyofStringsOnly&&qe("keyofStringsOnly"),z.suppressExcessPropertyErrors&&qe("suppressExcessPropertyErrors"),z.suppressImplicitAnyIndexErrors&&qe("suppressImplicitAnyIndexErrors"),z.noStrictGenericChecks&&qe("noStrictGenericChecks"),z.charset&&qe("charset"),z.out&&qe("out",void 0,"outFile"),z.importsNotUsedAsValues&&qe("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),z.preserveValueImports&&qe("preserveValueImports",void 0,"verbatimModuleSyntax")})}function Zn(we,qe,Pt){function Bt(_n,Jn,fn,qn,...fi){Cm(qe,Pt,qn,...fi)}nt("5.0","5.5",Bt,_n=>{we.prepend&&_n("prepend")})}function ii(we,qe,Pt,Bt){var _n;let Jn,fn,qn=IE(qe)?qe:void 0;we&&((_n=ve.get(we.path))==null||_n.forEach(Yo)),qe&&Yo(qe),qn&&Jn?.length===1&&(Jn=void 0);let fi=qn&&VP(un,qn),or=Jn&&zo(Jn,f.The_file_is_in_the_program_because_Colon),ni=we&&wJ(we),cr=zo(ni?or?[or,...ni]:ni:or,Pt,...Bt||Xe);return fi&&ZR(fi)?DF(fi.file,fi.pos,fi.end-fi.pos,cr,fn):S6(cr,fn);function Yo(Ha){(Jn||(Jn=[])).push(FJ(un,Ha)),!qn&&IE(Ha)?qn=Ha:qn!==Ha&&(fn=Tn(fn,La(Ha))),Ha===qe&&(qe=void 0)}}function Xr(we,qe,Pt,Bt){(Et||(Et=[])).push({kind:1,file:we&&we.path,fileProcessingReason:qe,diagnostic:Pt,args:Bt})}function no(we,qe,Pt){Qn.add(ii(we,void 0,qe,Pt))}function La(we){if(IE(we)){let Bt=VP(un,we),_n;switch(we.kind){case 3:_n=f.File_is_included_via_import_here;break;case 4:_n=f.File_is_included_via_reference_here;break;case 5:_n=f.File_is_included_via_type_library_reference_here;break;case 7:_n=f.File_is_included_via_library_reference_here;break;default:x.assertNever(we)}return ZR(Bt)?Qc(Bt.file,Bt.pos,Bt.end-Bt.pos,_n):void 0}if(!z.configFile)return;let qe,Pt;switch(we.kind){case 0:if(!z.configFile.configFileSpecs)return;let Bt=ho(ce[we.index],Ur),_n=OJ(un,Bt);if(_n){qe=wF(z.configFile,"files",_n),Pt=f.File_is_matched_by_files_list_specified_here;break}let Jn=WJ(un,Bt);if(!Jn||!No(Jn))return;qe=wF(z.configFile,"include",Jn),Pt=f.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:let fn=x.checkDefined(ae?.[we.index]),qn=nz(me,ae,(Yo,Ha,$d)=>Yo===fn?{sourceFile:Ha?.sourceFile||z.configFile,index:$d}:void 0);if(!qn)return;let{sourceFile:fi,index:or}=qn,ni=E2(fi,"references",Yo=>uu(Yo.initializer)?Yo.initializer:void 0);return ni&&ni.elements.length>or?Kf(fi,ni.elements[or],we.kind===2?f.File_is_output_from_referenced_project_specified_here:f.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!z.types)return;qe=ob("types",we.typeReference),Pt=f.File_is_entry_point_of_type_library_specified_here;break;case 6:if(we.index!==void 0){qe=ob("lib",z.lib[we.index]),Pt=f.File_is_library_specified_here;break}let cr=Gc(aw.type,(Yo,Ha)=>Yo===ns(z)?Ha:void 0);qe=cr?Bu("target",cr):void 0,Pt=f.File_is_default_library_for_target_specified_here;break;default:x.assertNever(we)}return qe&&Kf(z.configFile,qe,Pt)}function ka(){let we=z.suppressOutputPathCheck?void 0:Vy(z);nz(me,ae,(qe,Pt,Bt)=>{let _n=(Pt?Pt.commandLine.projectReferences:me)[Bt],Jn=Pt&&Pt.sourceFile;if(Zn(_n,Jn,Bt),!qe){Cm(Jn,Bt,f.File_0_not_found,_n.path);return}let fn=qe.commandLine.options;if((!fn.composite||fn.noEmit)&&(Pt?Pt.commandLine.fileNames:ce).length&&(fn.composite||Cm(Jn,Bt,f.Referenced_project_0_must_have_setting_composite_Colon_true,_n.path),fn.noEmit&&Cm(Jn,Bt,f.Referenced_project_0_may_not_disable_emit,_n.path)),_n.prepend){let qn=xs(fn);qn?Kt.fileExists(qn)||Cm(Jn,Bt,f.Output_file_0_from_project_1_does_not_exist,qn,_n.path):Cm(Jn,Bt,f.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,_n.path)}!Pt&&we&&we===Vy(fn)&&(Cm(Jn,Bt,f.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,we,_n.path),Ye.set(er(we),!0))})}function wl(we,qe,Pt,...Bt){let _n=!0;Tp(Jn=>{Ma(Jn.initializer)&&Xx(Jn.initializer,we,fn=>{let qn=fn.initializer;uu(qn)&&qn.elements.length>qe&&(Qn.add(Kf(z.configFile,qn.elements[qe],Pt,...Bt)),_n=!1)})}),_n&&Qn.add(jl(Pt,...Bt))}function pd(we,qe,Pt,...Bt){let _n=!0;Tp(Jn=>{Ma(Jn.initializer)&&$y(Jn.initializer,we,qe,void 0,Pt,...Bt)&&(_n=!1)}),_n&&Qn.add(jl(Pt,...Bt))}function Ic(we,qe){return Xx(Jg(),we,qe)}function Tp(we){return Ic("paths",we)}function Bu(we,qe){return Ic(we,Pt=>Da(Pt.initializer)&&Pt.initializer.text===qe?Pt.initializer:void 0)}function ob(we,qe){let Pt=Jg();return Pt&&rie(Pt,we,qe)}function ls(we,qe,Pt,Bt){Ui(!0,qe,Pt,we,qe,Pt,Bt)}function Dm(we,qe,...Pt){Ui(!1,we,void 0,qe,...Pt)}function Cm(we,qe,Pt,...Bt){let _n=E2(we||z.configFile,"references",Jn=>uu(Jn.initializer)?Jn.initializer:void 0);_n&&_n.elements.length>qe?Qn.add(Kf(we||z.configFile,_n.elements[qe],Pt,...Bt)):Qn.add(jl(Pt,...Bt))}function Ui(we,qe,Pt,Bt,..._n){let Jn=Jg();(!Jn||!$y(Jn,we,qe,Pt,Bt,..._n))&&("messageText"in Bt?Qn.add(S6(Bt)):Qn.add(jl(Bt,..._n)))}function Jg(){return Ot===void 0&&(Ot=Xx(mN(z.configFile),"compilerOptions",we=>Ma(we.initializer)?we.initializer:void 0)||!1),Ot||void 0}function $y(we,qe,Pt,Bt,_n,...Jn){let fn=!1;return Xx(we,Pt,qn=>{"messageText"in _n?Qn.add(Mg(z.configFile,qe?qn.name:qn.initializer,_n)):Qn.add(Kf(z.configFile,qe?qn.name:qn.initializer,_n,...Jn)),fn=!0},Bt),fn}function Nm(we,qe){let Pt=Jg();Pt?$y(Pt,!0,we,void 0,f.Option_0_is_redundant_and_cannot_be_specified_with_option_1,we,qe):ls(f.Option_0_is_redundant_and_cannot_be_specified_with_option_1,we,qe)}function pS(we,qe){Ye.set(er(we),!0),Qn.add(qe)}function fS(we){if(z.noEmit)return!1;let qe=er(we);if(ul(qe))return!1;let Pt=xs(z);if(Pt)return cf(qe,Pt)||cf(qe,Eu(Pt)+".d.ts");if(z.declarationDir&&mm(z.declarationDir,qe,Ur,!Kt.useCaseSensitiveFileNames()))return!0;if(z.outDir)return mm(z.outDir,qe,Ur,!Kt.useCaseSensitiveFileNames());if(bc(qe,AR)||Ed(qe)){let Bt=Eu(qe);return!!ul(Bt+".ts")||!!ul(Bt+".tsx")}return!1}function cf(we,qe){return Rg(we,qe,Ur,!Kt.useCaseSensitiveFileNames())===0}function B_(){return Kt.getSymlinkCache?Kt.getSymlinkCache():(fe||(fe=oU(Ur,Q)),xe&&!fe.hasProcessedResolutions()&&fe.setSymlinksFromResolutions(k,ie,ze),fe)}function df(we,qe){var Pt;let Bt=((Pt=wn(we))==null?void 0:Pt.commandLine.options)||z;return cJ(we,qe,Bt)}function qg(we,qe){return df(we,kw(we,qe))}}function PVe(e){let t,r=e.compilerHost.fileExists,i=e.compilerHost.directoryExists,o=e.compilerHost.getDirectories,s=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:qa,fileExists:p};e.compilerHost.fileExists=p;let l;return i&&(l=e.compilerHost.directoryExists=S=>i.call(e.compilerHost,S)?(y(S),!0):e.getResolvedProjectReferences()?(t||(t=new Set,e.forEachResolvedProjectReference(A=>{let N=xs(A.commandLine.options);if(N)t.add(oi(e.toPath(N)));else{let D=A.commandLine.options.declarationDir||A.commandLine.options.outDir;D&&t.add(e.toPath(D))}})),E(S,!1)):!1),o&&(e.compilerHost.getDirectories=S=>!e.getResolvedProjectReferences()||i&&i.call(e.compilerHost,S)?o.call(e.compilerHost,S):[]),s&&(e.compilerHost.realpath=S=>{var A;return((A=e.getSymlinkCache().getSymlinkedFiles())==null?void 0:A.get(e.toPath(S)))||s.call(e.compilerHost,S)}),{onProgramCreateComplete:d,fileExists:p,directoryExists:l};function d(){e.compilerHost.fileExists=r,e.compilerHost.directoryExists=i,e.compilerHost.getDirectories=o}function p(S){return r.call(e.compilerHost,S)?!0:!e.getResolvedProjectReferences()||!Ed(S)?!1:E(S,!0)}function h(S){let A=e.getSourceOfProjectReferenceRedirect(e.toPath(S));return A!==void 0?No(A)?r.call(e.compilerHost,A):!0:void 0}function m(S){let A=e.toPath(S),N=`${A}${nl}`;return dh(t,D=>A===D||ao(D,N)||ao(A,`${D}/`))}function y(S){var A;if(!e.getResolvedProjectReferences()||JN(S)||!s||!S.includes(Eh))return;let N=e.getSymlinkCache(),D=Bc(e.toPath(S));if((A=N.getSymlinkedDirectories())!=null&&A.has(D))return;let w=ma(s.call(e.compilerHost,S)),j;if(w===S||(j=Bc(e.toPath(w)))===D){N.setSymlinkedDirectory(D,!1);return}N.setSymlinkedDirectory(S,{real:Bc(w),realPath:j})}function E(S,A){var N;let D=A?B=>h(B):B=>m(B),w=D(S);if(w!==void 0)return w;let j=e.getSymlinkCache(),K=j.getSymlinkedDirectories();if(!K)return!1;let Y=e.toPath(S);return Y.includes(Eh)?A&&((N=j.getSymlinkedFiles())!=null&&N.has(Y))?!0:vL(K.entries(),([B,ce])=>{if(!ce||!ao(Y,B))return;let z=D(Y.replace(B,ce.realPath));if(A&&z){let Z=ho(S,e.compilerHost.getCurrentDirectory());j.setSymlinkedFile(Y,`${ce.real}${Z.replace(new RegExp(B,"i"),"")}`)}return z})||!1:!1}}function hJ(e,t,r,i){let o=e.getCompilerOptions();if(o.noEmit)return e.getSemanticDiagnostics(t,i),t||xs(o)?cz:e.emitBuildInfo(r,i);if(!o.noEmitOnError)return;let s=[...e.getOptionsDiagnostics(i),...e.getSyntacticDiagnostics(t,i),...e.getGlobalDiagnostics(i),...e.getSemanticDiagnostics(t,i)];if(s.length===0&&Af(e.getCompilerOptions())&&(s=e.getDeclarationDiagnostics(void 0,i)),!s.length)return;let l;if(!t&&!xs(o)){let d=e.emitBuildInfo(r,i);d.diagnostics&&(s=[...s,...d.diagnostics]),l=d.emittedFiles}return{diagnostics:s,sourceMaps:void 0,emittedFiles:l,emitSkipped:!0}}function oz(e,t){return jr(e,r=>!r.skippedOn||!t[r.skippedOn])}function az(e,t=e){return{fileExists:r=>t.fileExists(r),readDirectory(r,i,o,s,l){return x.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,i,o,s,l)},readFile:r=>t.readFile(r),directoryExists:ta(t,t.directoryExists),getDirectories:ta(t,t.getDirectories),realpath:ta(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||Jb,trace:e.trace?r=>e.trace(r):void 0}}function gJ(e,t,r,i){if(!e)return Xe;let o;for(let s=0;si);for(let i of t)i.kind===11&&r.push(i);return r}function kw({imports:e,moduleAugmentations:t},r){if(r(e.Grey="\x1B[90m",e.Red="\x1B[91m",e.Yellow="\x1B[93m",e.Blue="\x1B[94m",e.Cyan="\x1B[96m",e))(vJ||{}),bJ="\x1B[7m",EJ=" ",Kle="\x1B[0m",Jle="...",n1e=" ",qle=" ",Xle={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},sz={getName:Hle,getMode:(e,t,r)=>lJ(t,e,r)},r1e={getName:uJ,getMode:(e,t)=>Pw(e,t?.impliedNodeFormat)},tD="__inferred type names__.ts",lz=new Set([f.Cannot_redeclare_block_scoped_variable_0.code,f.A_module_cannot_have_multiple_default_exports.code,f.Another_export_default_is_here.code,f.The_first_export_default_is_here.code,f.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,f.constructor_is_a_reserved_word.code,f.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,f.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,f.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,f.Invalid_use_of_0_in_strict_mode.code,f.A_label_is_not_allowed_here.code,f.with_statements_are_not_allowed_in_strict_mode.code,f.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,f.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,f.A_class_declaration_without_the_default_modifier_must_have_a_name.code,f.A_class_member_cannot_have_the_0_keyword.code,f.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,f.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,f.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,f.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,f.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,f.A_destructuring_declaration_must_have_an_initializer.code,f.A_get_accessor_cannot_have_parameters.code,f.A_rest_element_cannot_contain_a_binding_pattern.code,f.A_rest_element_cannot_have_a_property_name.code,f.A_rest_element_cannot_have_an_initializer.code,f.A_rest_element_must_be_last_in_a_destructuring_pattern.code,f.A_rest_parameter_cannot_have_an_initializer.code,f.A_rest_parameter_must_be_last_in_a_parameter_list.code,f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,f.A_return_statement_cannot_be_used_inside_a_class_static_block.code,f.A_set_accessor_cannot_have_rest_parameter.code,f.A_set_accessor_must_have_exactly_one_parameter.code,f.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,f.An_export_declaration_cannot_have_modifiers.code,f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,f.An_import_declaration_cannot_have_modifiers.code,f.An_object_member_cannot_be_declared_optional.code,f.Argument_of_dynamic_import_cannot_be_spread_element.code,f.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,f.Cannot_redeclare_identifier_0_in_catch_clause.code,f.Catch_clause_variable_cannot_have_an_initializer.code,f.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,f.Classes_can_only_extend_a_single_class.code,f.Classes_may_not_have_a_field_named_constructor.code,f.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,f.Duplicate_label_0.code,f.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,f.for_await_loops_cannot_be_used_inside_a_class_static_block.code,f.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,f.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,f.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,f.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,f.Jump_target_cannot_cross_function_boundary.code,f.Line_terminator_not_permitted_before_arrow.code,f.Modifiers_cannot_appear_here.code,f.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,f.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,f.Private_identifiers_are_not_allowed_outside_class_bodies.code,f.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,f.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,f.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,f.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,f.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,f.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,f.Trailing_comma_not_allowed.code,f.Variable_declaration_list_cannot_be_empty.code,f._0_and_1_operations_cannot_be_mixed_without_parentheses.code,f._0_expected.code,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,f._0_list_cannot_be_empty.code,f._0_modifier_already_seen.code,f._0_modifier_cannot_appear_on_a_constructor_declaration.code,f._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,f._0_modifier_cannot_appear_on_a_parameter.code,f._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,f._0_modifier_cannot_be_used_here.code,f._0_modifier_must_precede_1_modifier.code,f._0_declarations_can_only_be_declared_inside_a_block.code,f._0_declarations_must_be_initialized.code,f.extends_clause_already_seen.code,f.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,f.Class_constructor_may_not_be_a_generator.code,f.Class_constructor_may_not_be_an_accessor.code,f.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.Private_field_0_must_be_declared_in_an_enclosing_class.code,f.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]),cz={diagnostics:Xe,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),LVe=bt({"src/compiler/builderStatePublic.ts"(){"use strict"}});function Yle(e,t,r,i,o,s){let l=[],{emitSkipped:d,diagnostics:p}=e.emit(t,h,i,r,o,s);return{outputFiles:l,emitSkipped:d,diagnostics:p};function h(m,y,E){l.push({name:m,writeByteOrderMark:E,text:y})}}var xm,kVe=bt({"src/compiler/builderState.ts"(){"use strict";ea(),(e=>{function t(){function q(J,re,pe){let xe={getKeys:fe=>re.get(fe),getValues:fe=>J.get(fe),keys:()=>J.keys(),deleteKey:fe=>{(pe||(pe=new Set)).add(fe);let ne=J.get(fe);return ne?(ne.forEach(he=>i(re,he,fe)),J.delete(fe),!0):!1},set:(fe,ne)=>{pe?.delete(fe);let he=J.get(fe);return J.set(fe,ne),he?.forEach(Ce=>{ne.has(Ce)||i(re,Ce,fe)}),ne.forEach(Ce=>{he?.has(Ce)||r(re,Ce,fe)}),xe}};return xe}return q(new Map,new Map,void 0)}e.createManyToManyPathMap=t;function r(q,J,re){let pe=q.get(J);pe||(pe=new Set,q.set(J,pe)),pe.add(re)}function i(q,J,re){let pe=q.get(J);return pe?.delete(re)?(pe.size||q.delete(J),!0):!1}function o(q){return to(q.declarations,J=>{var re;return(re=Gn(J))==null?void 0:re.resolvedPath})}function s(q,J){let re=q.getSymbolAtLocation(J);return re&&o(re)}function l(q,J,re,pe){return tl(q.getProjectReferenceRedirect(J)||J,re,pe)}function d(q,J,re){let pe;if(J.imports&&J.imports.length>0){let he=q.getTypeChecker();for(let Ce of J.imports){let Ge=s(he,Ce);Ge?.forEach(ne)}}let xe=oi(J.resolvedPath);if(J.referencedFiles&&J.referencedFiles.length>0)for(let he of J.referencedFiles){let Ce=l(q,he.fileName,xe,re);ne(Ce)}if(q.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:he})=>{if(!he)return;let Ce=he.resolvedFileName,Ge=l(q,Ce,xe,re);ne(Ge)},J),J.moduleAugmentations.length){let he=q.getTypeChecker();for(let Ce of J.moduleAugmentations){if(!Da(Ce))continue;let Ge=he.getSymbolAtLocation(Ce);Ge&&fe(Ge)}}for(let he of q.getTypeChecker().getAmbientModules())he.declarations&&he.declarations.length>1&&fe(he);return pe;function fe(he){if(he.declarations)for(let Ce of he.declarations){let Ge=Gn(Ce);Ge&&Ge!==J&&ne(Ge.resolvedPath)}}function ne(he){(pe||(pe=new Set)).add(he)}}function p(q,J){return J&&!J.referencedMap==!q}e.canReuseOldState=p;function h(q,J,re){var pe,xe,fe;let ne=new Map,he=q.getCompilerOptions(),Ce=xs(he),Ge=he.module!==0&&!Ce?t():void 0,ve=Ge?t():void 0,Ae=p(Ge,J);q.getTypeChecker();for(let De of q.getSourceFiles()){let Le=x.checkDefined(De.version,"Program intended to be used with Builder should have source files with versions set"),Et=Ae?(pe=J.oldSignatures)==null?void 0:pe.get(De.resolvedPath):void 0,be=Et===void 0?Ae?(xe=J.fileInfos.get(De.resolvedPath))==null?void 0:xe.signature:void 0:Et||void 0;if(Ge){let ze=d(q,De,q.getCanonicalFileName);if(ze&&Ge.set(De.resolvedPath,ze),Ae){let tt=(fe=J.oldExportedModulesMap)==null?void 0:fe.get(De.resolvedPath),Wt=tt===void 0?J.exportedModulesMap.getValues(De.resolvedPath):tt||void 0;Wt&&ve.set(De.resolvedPath,Wt)}}ne.set(De.resolvedPath,{version:Le,signature:be,affectsGlobalScope:Ce?void 0:z(De)||void 0,impliedFormat:De.impliedNodeFormat})}return{fileInfos:ne,referencedMap:Ge,exportedModulesMap:ve,useFileVersionAsSignature:!re&&!Ae}}e.create=h;function m(q){q.allFilesExcludingDefaultLibraryFile=void 0,q.allFileNames=void 0}e.releaseCache=m;function y(q,J,re,pe,xe){var fe,ne;let he=E(q,J,re,pe,xe);return(fe=q.oldSignatures)==null||fe.clear(),(ne=q.oldExportedModulesMap)==null||ne.clear(),he}e.getFilesAffectedBy=y;function E(q,J,re,pe,xe){let fe=J.getSourceFileByPath(re);return fe?N(q,J,fe,pe,xe)?(q.referencedMap?ge:me)(q,J,fe,pe,xe):[fe]:Xe}e.getFilesAffectedByWithOldState=E;function S(q,J,re){q.fileInfos.get(re).signature=J,(q.hasCalledUpdateShapeSignature||(q.hasCalledUpdateShapeSignature=new Set)).add(re)}e.updateSignatureOfFile=S;function A(q,J,re,pe,xe){q.emit(J,(fe,ne,he,Ce,Ge,ve)=>{x.assert(Ed(fe),`File extension for signature expected to be dts: Got:: ${fe}`),xe(TJ(q,J,ne,pe,ve),Ge)},re,!0,void 0,!0)}e.computeDtsSignature=A;function N(q,J,re,pe,xe,fe=q.useFileVersionAsSignature){var ne;if((ne=q.hasCalledUpdateShapeSignature)!=null&&ne.has(re.resolvedPath))return!1;let he=q.fileInfos.get(re.resolvedPath),Ce=he.signature,Ge;if(!re.isDeclarationFile&&!fe&&A(J,re,pe,xe,(ve,Ae)=>{Ge=ve,Ge!==Ce&&D(q,re,Ae[0].exportedModulesFromDeclarationEmit)}),Ge===void 0&&(Ge=re.version,q.exportedModulesMap&&Ge!==Ce)){(q.oldExportedModulesMap||(q.oldExportedModulesMap=new Map)).set(re.resolvedPath,q.exportedModulesMap.getValues(re.resolvedPath)||!1);let ve=q.referencedMap?q.referencedMap.getValues(re.resolvedPath):void 0;ve?q.exportedModulesMap.set(re.resolvedPath,ve):q.exportedModulesMap.deleteKey(re.resolvedPath)}return(q.oldSignatures||(q.oldSignatures=new Map)).set(re.resolvedPath,Ce||!1),(q.hasCalledUpdateShapeSignature||(q.hasCalledUpdateShapeSignature=new Set)).add(re.resolvedPath),he.signature=Ge,Ge!==Ce}e.updateShapeSignature=N;function D(q,J,re){if(!q.exportedModulesMap)return;(q.oldExportedModulesMap||(q.oldExportedModulesMap=new Map)).set(J.resolvedPath,q.exportedModulesMap.getValues(J.resolvedPath)||!1);let pe=w(re);pe?q.exportedModulesMap.set(J.resolvedPath,pe):q.exportedModulesMap.deleteKey(J.resolvedPath)}e.updateExportedModules=D;function w(q){let J;return q?.forEach(re=>o(re).forEach(pe=>(J??(J=new Set)).add(pe))),J}e.getExportedModules=w;function j(q,J,re){let pe=J.getCompilerOptions();if(xs(pe)||!q.referencedMap||z(re))return K(q,J);let xe=new Set,fe=[re.resolvedPath];for(;fe.length;){let ne=fe.pop();if(!xe.has(ne)){xe.add(ne);let he=q.referencedMap.getValues(ne);if(he)for(let Ce of he.keys())fe.push(Ce)}}return Wo(OC(xe.keys(),ne=>{var he;return((he=J.getSourceFileByPath(ne))==null?void 0:he.fileName)??ne}))}e.getAllDependencies=j;function K(q,J){if(!q.allFileNames){let re=J.getSourceFiles();q.allFileNames=re===Xe?Xe:re.map(pe=>pe.fileName)}return q.allFileNames}function Y(q,J){let re=q.referencedMap.getKeys(J);return re?Wo(re.keys()):[]}e.getReferencedByPaths=Y;function B(q){for(let J of q.statements)if(!xF(J))return!1;return!0}function ce(q){return gt(q.moduleAugmentations,J=>E_(J.parent))}function z(q){return ce(q)||!wp(q)&&!Jf(q)&&!B(q)}function Z(q,J,re){if(q.allFilesExcludingDefaultLibraryFile)return q.allFilesExcludingDefaultLibraryFile;let pe;re&&xe(re);for(let fe of J.getSourceFiles())fe!==re&&xe(fe);return q.allFilesExcludingDefaultLibraryFile=pe||Xe,q.allFilesExcludingDefaultLibraryFile;function xe(fe){J.isSourceFileDefaultLibrary(fe)||(pe||(pe=[])).push(fe)}}e.getAllFilesExcludingDefaultLibraryFile=Z;function me(q,J,re){let pe=J.getCompilerOptions();return pe&&xs(pe)?[re]:Z(q,J,re)}function ge(q,J,re,pe,xe){if(z(re))return Z(q,J,re);let fe=J.getCompilerOptions();if(fe&&(em(fe)||xs(fe)))return[re];let ne=new Map;ne.set(re.resolvedPath,re);let he=Y(q,re.resolvedPath);for(;he.length>0;){let Ce=he.pop();if(!ne.has(Ce)){let Ge=J.getSourceFileByPath(Ce);ne.set(Ce,Ge),Ge&&N(q,J,Ge,pe,xe)&&he.push(...Y(q,Ge.resolvedPath))}}return Wo(OC(ne.values(),Ce=>Ce))}})(xm||(xm={}))}});function Zv(e){let t=1;return e.sourceMap&&(t=t|2),e.inlineSourceMap&&(t=t|4),Af(e)&&(t=t|8),e.declarationMap&&(t=t|16),e.emitDeclarationOnly&&(t=t&24),t}function nD(e,t){let r=t&&(Ey(t)?t:Zv(t)),i=Ey(e)?e:Zv(e);if(r===i)return 0;if(!r||!i)return i;let o=r^i,s=0;return o&7&&(s=i&7),o&24&&(s=s|i&24),s}function wVe(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!dh(e,r=>!t.has(r))}function OVe(e,t){var r,i;let o=xm.create(e,t,!1);o.program=e;let s=e.getCompilerOptions();o.compilerOptions=s;let l=xs(s);l?s.composite&&t?.outSignature&&l===xs(t?.compilerOptions)&&(o.outSignature=t.outSignature&&o1e(s,t.compilerOptions,t.outSignature)):o.semanticDiagnosticsPerFile=new Map,o.changedFilesSet=new Set,o.latestChangedDtsFile=s.composite?t?.latestChangedDtsFile:void 0;let d=xm.canReuseOldState(o.referencedMap,t),p=d?t.compilerOptions:void 0,h=d&&t.semanticDiagnosticsPerFile&&!!o.semanticDiagnosticsPerFile&&!poe(s,p),m=s.composite&&t?.emitSignatures&&!l&&!moe(s,t.compilerOptions);d?((r=t.changedFilesSet)==null||r.forEach(N=>o.changedFilesSet.add(N)),!l&&((i=t.affectedFilesPendingEmit)!=null&&i.size)&&(o.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),o.seenAffectedFiles=new Set),o.programEmitPending=t.programEmitPending):o.buildInfoEmitPending=!0;let y=o.referencedMap,E=d?t.referencedMap:void 0,S=h&&!s.skipLibCheck==!p.skipLibCheck,A=S&&!s.skipDefaultLibCheck==!p.skipDefaultLibCheck;if(o.fileInfos.forEach((N,D)=>{var w;let j,K;if(!d||!(j=t.fileInfos.get(D))||j.version!==N.version||j.impliedFormat!==N.impliedFormat||!wVe(K=y&&y.getValues(D),E&&E.getValues(D))||K&&dh(K,Y=>!o.fileInfos.has(Y)&&t.fileInfos.has(Y)))i1e(o,D);else{let Y=e.getSourceFileByPath(D),B=(w=t.emitDiagnosticsPerFile)==null?void 0:w.get(D);if(B&&(o.emitDiagnosticsPerFile??(o.emitDiagnosticsPerFile=new Map)).set(D,t.hasReusableDiagnostic?l1e(B,e):a1e(B,e)),h){if(Y.isDeclarationFile&&!S||Y.hasNoDefaultLib&&!A)return;let ce=t.semanticDiagnosticsPerFile.get(D);ce&&(o.semanticDiagnosticsPerFile.set(D,t.hasReusableDiagnostic?l1e(ce,e):a1e(ce,e)),(o.semanticDiagnosticsFromOldState??(o.semanticDiagnosticsFromOldState=new Set)).add(D))}}if(m){let Y=t.emitSignatures.get(D);Y&&(o.emitSignatures??(o.emitSignatures=new Map)).set(D,o1e(s,t.compilerOptions,Y))}}),d&&Gc(t.fileInfos,(N,D)=>o.fileInfos.has(D)?!1:l||N.affectsGlobalScope?!0:(o.buildInfoEmitPending=!0,!1)))xm.getAllFilesExcludingDefaultLibraryFile(o,e,void 0).forEach(N=>i1e(o,N.resolvedPath));else if(p){let N=foe(s,p)?Zv(s):nD(s,p);N!==0&&(l?o.programEmitPending=o.programEmitPending?o.programEmitPending|N:N:(e.getSourceFiles().forEach(D=>{o.changedFilesSet.has(D.resolvedPath)||nce(o,D.resolvedPath,N)}),x.assert(!o.seenAffectedFiles||!o.seenAffectedFiles.size),o.seenAffectedFiles=o.seenAffectedFiles||new Set,o.buildInfoEmitPending=!0))}return l&&!o.changedFilesSet.size&&(d&&(o.bundle=t.bundle),gt(e.getProjectReferences(),N=>!!N.prepend)&&(o.programEmitPending=Zv(s))),o}function i1e(e,t){e.changedFilesSet.add(t),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function o1e(e,t,r){return!!e.declarationMap==!!t.declarationMap?r:No(r)?[r]:r[0]}function a1e(e,t){return e.length?Pc(e,r=>{if(No(r.messageText))return r;let i=$le(r.messageText,r.file,t,o=>{var s;return(s=o.repopulateInfo)==null?void 0:s.call(o)});return i===r.messageText?r:{...r,messageText:i}}):e}function $le(e,t,r,i){let o=i(e);if(o)return{...bF(t,r,o.moduleReference,o.mode,o.packageName||o.moduleReference),next:s1e(e.next,t,r,i)};let s=s1e(e.next,t,r,i);return s===e.next?e:{...e,next:s}}function s1e(e,t,r,i){return Pc(e,o=>$le(o,t,r,i))}function l1e(e,t){if(!e.length)return Xe;let r;return e.map(o=>{let s=c1e(o,t,i);s.reportsUnnecessary=o.reportsUnnecessary,s.reportsDeprecated=o.reportDeprecated,s.source=o.source,s.skippedOn=o.skippedOn;let{relatedInformation:l}=o;return s.relatedInformation=l?l.length?l.map(d=>c1e(d,t,i)):[]:void 0,s});function i(o){return r??(r=oi(ho(Vy(t.getCompilerOptions()),t.getCurrentDirectory()))),tl(o,r,t.getCanonicalFileName)}}function c1e(e,t,r){let{file:i}=e,o=i?t.getSourceFileByPath(r(i)):void 0;return{...e,file:o,messageText:No(e.messageText)?e.messageText:$le(e.messageText,o,t,s=>s.info)}}function WVe(e){xm.releaseCache(e),e.program=void 0}function FVe(e){let t=xs(e.compilerOptions);return x.assert(!e.changedFilesSet.size||t),{affectedFilesPendingEmit:e.affectedFilesPendingEmit&&new Map(e.affectedFilesPendingEmit),seenEmittedFiles:e.seenEmittedFiles&&new Map(e.seenEmittedFiles),programEmitPending:e.programEmitPending,emitSignatures:e.emitSignatures&&new Map(e.emitSignatures),outSignature:e.outSignature,latestChangedDtsFile:e.latestChangedDtsFile,hasChangedEmitSignature:e.hasChangedEmitSignature,changedFilesSet:t?new Set(e.changedFilesSet):void 0,buildInfoEmitPending:e.buildInfoEmitPending,emitDiagnosticsPerFile:e.emitDiagnosticsPerFile&&new Map(e.emitDiagnosticsPerFile)}}function zVe(e,t){e.affectedFilesPendingEmit=t.affectedFilesPendingEmit,e.seenEmittedFiles=t.seenEmittedFiles,e.programEmitPending=t.programEmitPending,e.emitSignatures=t.emitSignatures,e.outSignature=t.outSignature,e.latestChangedDtsFile=t.latestChangedDtsFile,e.hasChangedEmitSignature=t.hasChangedEmitSignature,e.buildInfoEmitPending=t.buildInfoEmitPending,e.emitDiagnosticsPerFile=t.emitDiagnosticsPerFile,t.changedFilesSet&&(e.changedFilesSet=t.changedFilesSet)}function d1e(e,t){x.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function u1e(e,t,r){for(var i,o;;){let{affectedFiles:s}=e;if(s){let h=e.seenAffectedFiles,m=e.affectedFilesIndex;for(;m{let s=i&7;s?e.affectedFilesPendingEmit.set(o,s):e.affectedFilesPendingEmit.delete(o)})}}function GVe(e,t){var r;if((r=e.affectedFilesPendingEmit)!=null&&r.size)return Gc(e.affectedFilesPendingEmit,(i,o)=>{var s;let l=e.program.getSourceFileByPath(o);if(!l||!ET(l,e.program)){e.affectedFilesPendingEmit.delete(o);return}let d=(s=e.seenEmittedFiles)==null?void 0:s.get(l.resolvedPath),p=nD(i,d);if(t&&(p=p&24),p)return{affectedFile:l,emitKind:p}})}function VVe(e){var t;if((t=e.emitDiagnosticsPerFile)!=null&&t.size)return Gc(e.emitDiagnosticsPerFile,(r,i)=>{var o;let s=e.program.getSourceFileByPath(i);if(!s||!ET(s,e.program)){e.emitDiagnosticsPerFile.delete(i);return}let l=((o=e.seenEmittedFiles)==null?void 0:o.get(s.resolvedPath))||0;if(!(l&24))return{affectedFile:s,diagnostics:r,seenKind:l}})}function p1e(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;let t=x.checkDefined(e.program),r=t.getCompilerOptions();gn(t.getSourceFiles(),i=>t.isSourceFileDefaultLibrary(i)&&!jN(i,r,t)&&Qle(e,i.resolvedPath))}}function jVe(e,t,r,i){if(Qle(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){p1e(e),xm.updateShapeSignature(e,x.checkDefined(e.program),t,r,i);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||UVe(e,t,r,i)}function SJ(e,t,r,i){if(Qle(e,t),!e.changedFilesSet.has(t)){let o=x.checkDefined(e.program),s=o.getSourceFileByPath(t);s&&(xm.updateShapeSignature(e,o,s,r,i,!0),Af(e.compilerOptions)&&nce(e,t,e.compilerOptions.declarationMap?24:8))}}function Qle(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function f1e(e,t){let r=x.checkDefined(e.oldSignatures).get(t)||void 0;return x.checkDefined(e.fileInfos.get(t)).signature!==r}function Zle(e,t,r,i){var o;return(o=e.fileInfos.get(t))!=null&&o.affectsGlobalScope?(xm.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(s=>SJ(e,s.resolvedPath,r,i)),p1e(e),!0):!1}function UVe(e,t,r,i){var o;if(!e.exportedModulesMap||!e.changedFilesSet.has(t.resolvedPath)||!f1e(e,t.resolvedPath))return;if(em(e.compilerOptions)){let l=new Map;l.set(t.resolvedPath,!0);let d=xm.getReferencedByPaths(e,t.resolvedPath);for(;d.length>0;){let p=d.pop();if(!l.has(p)){if(l.set(p,!0),Zle(e,p,r,i))return;if(SJ(e,p,r,i),f1e(e,p)){let h=x.checkDefined(e.program).getSourceFileByPath(p);d.push(...xm.getReferencedByPaths(e,h.resolvedPath))}}}}let s=new Set;(o=e.exportedModulesMap.getKeys(t.resolvedPath))==null||o.forEach(l=>{if(Zle(e,l,r,i))return!0;let d=e.referencedMap.getKeys(l);return d&&dh(d,p=>m1e(e,p,s,r,i))})}function m1e(e,t,r,i,o){var s,l;if(Kb(r,t)){if(Zle(e,t,i,o))return!0;SJ(e,t,i,o),(s=e.exportedModulesMap.getKeys(t))==null||s.forEach(d=>m1e(e,d,r,i,o)),(l=e.referencedMap.getKeys(t))==null||l.forEach(d=>!r.has(d)&&SJ(e,d,i,o))}}function ece(e,t,r){return Eo(HVe(e,t,r),x.checkDefined(e.program).getProgramDiagnostics(t))}function HVe(e,t,r){let i=t.resolvedPath;if(e.semanticDiagnosticsPerFile){let s=e.semanticDiagnosticsPerFile.get(i);if(s)return oz(s,e.compilerOptions)}let o=x.checkDefined(e.program).getBindAndCheckDiagnostics(t,r);return e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(i,o),oz(o,e.compilerOptions)}function tce(e){return!!xs(e.options||{})}function KVe(e,t){var r,i,o;let s=x.checkDefined(e.program).getCurrentDirectory(),l=oi(ho(Vy(e.compilerOptions),s)),d=e.latestChangedDtsFile?ce(e.latestChangedDtsFile):void 0,p=[],h=new Map,m=[];if(xs(e.compilerOptions)){let he=Wo(e.fileInfos.entries(),([Le,Et])=>{let be=Z(Le);return ge(Le,be),Et.impliedFormat?{version:Et.version,impliedFormat:Et.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:Et.version}),Ce={fileNames:p,fileInfos:he,root:m,options:q(e.compilerOptions),outSignature:e.outSignature,latestChangedDtsFile:d,pendingEmit:e.programEmitPending?e.programEmitPending===Zv(e.compilerOptions)?!1:e.programEmitPending:void 0},{js:Ge,dts:ve,commonSourceDirectory:Ae,sourceFiles:De}=t;return e.bundle=t={commonSourceDirectory:Ae,sourceFiles:De,js:Ge||(e.compilerOptions.emitDeclarationOnly||(r=e.bundle)==null?void 0:r.js),dts:ve||(Af(e.compilerOptions)?(i=e.bundle)==null?void 0:i.dts:void 0)},Iw(Ce,t)}let y,E,S,A=Wo(e.fileInfos.entries(),([he,Ce])=>{var Ge,ve;let Ae=Z(he);ge(he,Ae),x.assert(p[Ae-1]===z(he));let De=(Ge=e.oldSignatures)==null?void 0:Ge.get(he),Le=De!==void 0?De||void 0:Ce.signature;if(e.compilerOptions.composite){let Et=e.program.getSourceFileByPath(he);if(!Jf(Et)&&ET(Et,e.program)){let be=(ve=e.emitSignatures)==null?void 0:ve.get(he);be!==Le&&(S||(S=[])).push(be===void 0?Ae:[Ae,!No(be)&&be[0]===Le?Xe:be])}}return Ce.version===Le?Ce.affectsGlobalScope||Ce.impliedFormat?{version:Ce.version,signature:void 0,affectsGlobalScope:Ce.affectsGlobalScope,impliedFormat:Ce.impliedFormat}:Ce.version:Le!==void 0?De===void 0?Ce:{version:Ce.version,signature:Le,affectsGlobalScope:Ce.affectsGlobalScope,impliedFormat:Ce.impliedFormat}:{version:Ce.version,signature:!1,affectsGlobalScope:Ce.affectsGlobalScope,impliedFormat:Ce.impliedFormat}}),N;e.referencedMap&&(N=Wo(e.referencedMap.keys()).sort(Vd).map(he=>[Z(he),me(e.referencedMap.getValues(he))]));let D;e.exportedModulesMap&&(D=to(Wo(e.exportedModulesMap.keys()).sort(Vd),he=>{var Ce;let Ge=(Ce=e.oldExportedModulesMap)==null?void 0:Ce.get(he);if(Ge===void 0)return[Z(he),me(e.exportedModulesMap.getValues(he))];if(Ge)return[Z(he),me(Ge)]}));let w=re(e.semanticDiagnosticsPerFile),j;if((o=e.affectedFilesPendingEmit)!=null&&o.size){let he=Zv(e.compilerOptions),Ce=new Set;for(let Ge of Wo(e.affectedFilesPendingEmit.keys()).sort(Vd))if(Kb(Ce,Ge)){let ve=e.program.getSourceFileByPath(Ge);if(!ve||!ET(ve,e.program))continue;let Ae=Z(Ge),De=e.affectedFilesPendingEmit.get(Ge);(j||(j=[])).push(De===he?Ae:De===8?[Ae]:[Ae,De])}}let K;if(e.changedFilesSet.size)for(let he of Wo(e.changedFilesSet.keys()).sort(Vd))(K||(K=[])).push(Z(he));let Y=re(e.emitDiagnosticsPerFile),B={fileNames:p,fileInfos:A,root:m,options:q(e.compilerOptions),fileIdsList:y,referencedMap:N,exportedModulesMap:D,semanticDiagnosticsPerFile:w,emitDiagnosticsPerFile:Y,affectedFilesPendingEmit:j,changeFileSet:K,emitSignatures:S,latestChangedDtsFile:d};return Iw(B,t);function ce(he){return z(ho(he,s))}function z(he){return h0(_m(l,he,e.program.getCanonicalFileName))}function Z(he){let Ce=h.get(he);return Ce===void 0&&(p.push(z(he)),h.set(he,Ce=p.length)),Ce}function me(he){let Ce=Wo(he.keys(),Z).sort(Zs),Ge=Ce.join(),ve=E?.get(Ge);return ve===void 0&&((y||(y=[])).push(Ce),(E||(E=new Map)).set(Ge,ve=y.length)),ve}function ge(he,Ce){let Ge=e.program.getSourceFile(he);if(!e.program.getFileIncludeReasons().get(Ge.path).some(Le=>Le.kind===0))return;if(!m.length)return m.push(Ce);let ve=m[m.length-1],Ae=To(ve);if(Ae&&ve[1]===Ce-1)return ve[1]=Ce;if(Ae||m.length===1||ve!==Ce-1)return m.push(Ce);let De=m[m.length-2];return!Ey(De)||De!==ve-1?m.push(Ce):(m[m.length-2]=[De,Ce],m.length=m.length-1)}function q(he){let Ce,{optionsNameMap:Ge}=VR();for(let ve of Vh(he).sort(Vd)){let Ae=Ge.get(ve.toLowerCase());Ae?.affectsBuildInfo&&((Ce||(Ce={}))[ve]=J(Ae,he[ve]))}return Ce}function J(he,Ce){if(he){if(x.assert(he.type!=="listOrElement"),he.type==="list"){let Ge=Ce;if(he.element.isFilePath&&Ge.length)return Ge.map(ce)}else if(he.isFilePath)return ce(Ce)}return Ce}function re(he){let Ce;if(he)for(let Ge of Wo(he.keys()).sort(Vd)){let ve=he.get(Ge);(Ce||(Ce=[])).push(ve.length?[Z(Ge),pe(ve)]:Z(Ge))}return Ce}function pe(he){return x.assert(!!he.length),he.map(Ce=>{let Ge=xe(Ce);Ge.reportsUnnecessary=Ce.reportsUnnecessary,Ge.reportDeprecated=Ce.reportsDeprecated,Ge.source=Ce.source,Ge.skippedOn=Ce.skippedOn;let{relatedInformation:ve}=Ce;return Ge.relatedInformation=ve?ve.length?ve.map(Ae=>xe(Ae)):[]:void 0,Ge})}function xe(he){let{file:Ce}=he;return{...he,file:Ce?z(Ce.resolvedPath):void 0,messageText:No(he.messageText)?he.messageText:fe(he.messageText)}}function fe(he){if(he.repopulateInfo)return{info:he.repopulateInfo(),next:ne(he.next)};let Ce=ne(he.next);return Ce===he.next?he:{...he,next:Ce}}function ne(he){return he&&(gn(he,(Ce,Ge)=>{let ve=fe(Ce);if(Ce===ve)return;let Ae=Ge>0?he.slice(0,Ge-1):[];Ae.push(ve);for(let De=Ge+1;De`${p(h)}${NL[h.category]}${h.code}: ${d(h.messageText)}`).join(` -`)),(i.createHash??HC)(r);function d(h){return No(h)?h:h===void 0?"":h.next?h.messageText+h.next.map(d).join(` -`):h.messageText}function p(h){return h.file.resolvedPath===t.resolvedPath?`(${h.start},${h.length})`:(l===void 0&&(l=oi(t.resolvedPath)),`${h0(_m(l,h.file.resolvedPath,e.getCanonicalFileName))}(${h.start},${h.length})`)}}function JT(e,t,r){return(t.createHash??HC)(_1e(e,r))}function AJ(e,{newProgram:t,host:r,oldProgram:i,configFileParsingDiagnostics:o}){let s=i&&i.getState();if(s&&t===s.program&&o===t.getConfigFileParsingDiagnostics())return t=void 0,s=void 0,i;let l=OVe(t,s);t.getBuildInfo=N=>KVe(l,N),t=void 0,i=void 0,s=void 0;let d=()=>l,p=xJ(d,o);return p.getState=d,p.saveEmitState=()=>FVe(l),p.restoreEmitState=N=>zVe(l,N),p.hasChangedEmitSignature=()=>!!l.hasChangedEmitSignature,p.getAllDependencies=N=>xm.getAllDependencies(l,x.checkDefined(l.program),N),p.getSemanticDiagnostics=A,p.emit=E,p.releaseProgram=()=>WVe(l),e===0?p.getSemanticDiagnosticsOfNextAffectedFile=S:e===1?(p.getSemanticDiagnosticsOfNextAffectedFile=S,p.emitNextAffectedFile=m,p.emitBuildInfo=h):Ho(),p;function h(N,D){if(l.buildInfoEmitPending){let w=x.checkDefined(l.program).emitBuildInfo(N||ta(r,r.writeFile),D);return l.buildInfoEmitPending=!1,w}return cz}function m(N,D,w,j){var K,Y,B;let ce=u1e(l,D,r),z=Zv(l.compilerOptions),Z=w?z&24:z;if(!ce)if(xs(l.compilerOptions)){if(!l.programEmitPending||(Z=l.programEmitPending,w&&(Z=Z&24),!Z))return;ce=l.program}else{let q=GVe(l,w);if(!q){let J=VVe(l);if(J)return(l.seenEmittedFiles??(l.seenEmittedFiles=new Map)).set(J.affectedFile.resolvedPath,J.seenKind|24),{result:{emitSkipped:!0,diagnostics:J.diagnostics},affected:J.affectedFile};if(!l.buildInfoEmitPending)return;let re=l.program,pe=re.emitBuildInfo(N||ta(r,r.writeFile),D);return l.buildInfoEmitPending=!1,{result:pe,affected:re}}({affectedFile:ce,emitKind:Z}=q)}let me;Z&7&&(me=0),Z&24&&(me=me===void 0?1:void 0),ce===l.program&&(l.programEmitPending=l.changedFilesSet.size?nD(z,Z):l.programEmitPending?nD(l.programEmitPending,Z):void 0);let ge=l.program.emit(ce===l.program?void 0:ce,y(N,j),D,me,j);if(ce!==l.program){let q=ce;l.seenAffectedFiles.add(q.resolvedPath),l.affectedFilesIndex!==void 0&&l.affectedFilesIndex++,l.buildInfoEmitPending=!0;let J=((K=l.seenEmittedFiles)==null?void 0:K.get(q.resolvedPath))||0;(l.seenEmittedFiles??(l.seenEmittedFiles=new Map)).set(q.resolvedPath,Z|J);let re=((Y=l.affectedFilesPendingEmit)==null?void 0:Y.get(q.resolvedPath))||z,pe=nD(re,Z|J);pe?(l.affectedFilesPendingEmit??(l.affectedFilesPendingEmit=new Map)).set(q.resolvedPath,pe):(B=l.affectedFilesPendingEmit)==null||B.delete(q.resolvedPath),ge.diagnostics.length&&(l.emitDiagnosticsPerFile??(l.emitDiagnosticsPerFile=new Map)).set(q.resolvedPath,ge.diagnostics)}else l.changedFilesSet.clear();return{result:ge,affected:ce}}function y(N,D){return Af(l.compilerOptions)?(w,j,K,Y,B,ce)=>{var z,Z,me,ge;if(Ed(w))if(xs(l.compilerOptions)){if(l.compilerOptions.composite){let J=q(l.outSignature,void 0);if(!J)return;l.outSignature=J}}else{x.assert(B?.length===1);let J;if(!D){let re=B[0],pe=l.fileInfos.get(re.resolvedPath);if(pe.signature===re.version){let xe=TJ(l.program,re,j,r,ce);(z=ce?.diagnostics)!=null&&z.length||(J=xe),xe!==re.version&&(r.storeFilesChangingSignatureDuringEmit&&(l.filesChangingSignature??(l.filesChangingSignature=new Set)).add(re.resolvedPath),l.exportedModulesMap&&xm.updateExportedModules(l,re,re.exportedModulesFromDeclarationEmit),l.affectedFiles?(((Z=l.oldSignatures)==null?void 0:Z.get(re.resolvedPath))===void 0&&(l.oldSignatures??(l.oldSignatures=new Map)).set(re.resolvedPath,pe.signature||!1),pe.signature=xe):(pe.signature=xe,(me=l.oldExportedModulesMap)==null||me.clear()))}}if(l.compilerOptions.composite){let re=B[0].resolvedPath;if(J=q((ge=l.emitSignatures)==null?void 0:ge.get(re),J),!J)return;(l.emitSignatures??(l.emitSignatures=new Map)).set(re,J)}}N?N(w,j,K,Y,B,ce):r.writeFile?r.writeFile(w,j,K,Y,B,ce):l.program.writeFile(w,j,K,Y,B,ce);function q(J,re){let pe=!J||No(J)?J:J[0];if(re??(re=JT(j,r,ce)),re===pe){if(J===pe)return;ce?ce.differsOnlyInMap=!0:ce={differsOnlyInMap:!0}}else l.hasChangedEmitSignature=!0,l.latestChangedDtsFile=w;return re}}:N||ta(r,r.writeFile)}function E(N,D,w,j,K){e===1&&d1e(l,N);let Y=hJ(p,N,D,w);if(Y)return Y;if(!N)if(e===1){let B=[],ce=!1,z,Z=[],me;for(;me=m(D,w,j,K);)ce=ce||me.result.emitSkipped,z=Hr(z,me.result.diagnostics),Z=Hr(Z,me.result.emittedFiles),B=Hr(B,me.result.sourceMaps);return{emitSkipped:ce,diagnostics:z||Xe,emittedFiles:Z,sourceMaps:B}}else BVe(l,j);return x.checkDefined(l.program).emit(N,y(D,K),w,j,K)}function S(N,D){for(;;){let w=u1e(l,N,r),j;if(w)if(w!==l.program){let K=w;if((!D||!D(K))&&(j=ece(l,K,N)),l.seenAffectedFiles.add(K.resolvedPath),l.affectedFilesIndex++,l.buildInfoEmitPending=!0,!j)continue}else j=l.program.getSemanticDiagnostics(void 0,N),l.changedFilesSet.clear(),l.programEmitPending=Zv(l.compilerOptions);else return;return{result:j,affected:w}}}function A(N,D){d1e(l,N);let w=x.checkDefined(l.program).getCompilerOptions();if(xs(w))return x.assert(!l.semanticDiagnosticsPerFile),x.checkDefined(l.program).getSemanticDiagnostics(N,D);if(N)return ece(l,N,D);for(;S(D););let j;for(let K of x.checkDefined(l.program).getSourceFiles())j=Hr(j,ece(l,K,D));return j||Xe}}function nce(e,t,r){var i,o;let s=((i=e.affectedFilesPendingEmit)==null?void 0:i.get(t))||0;(e.affectedFilesPendingEmit??(e.affectedFilesPendingEmit=new Map)).set(t,s|r),(o=e.emitDiagnosticsPerFile)==null||o.delete(t)}function rce(e){return No(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:No(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function ice(e,t){return Ey(e)?t:e[1]||8}function oce(e,t){return e||Zv(t||{})}function ace(e,t,r){var i,o,s,l;let d=e.program,p=oi(ho(t,r.getCurrentDirectory())),h=Nd(r.useCaseSensitiveFileNames()),m,y=(i=d.fileNames)==null?void 0:i.map(A),E,S=d.latestChangedDtsFile?N(d.latestChangedDtsFile):void 0;if(tce(d)){let Y=new Map;d.fileInfos.forEach((B,ce)=>{let z=D(ce+1);Y.set(z,No(B)?{version:B,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:B)}),m={fileInfos:Y,compilerOptions:d.options?GH(d.options,N):{},latestChangedDtsFile:S,outSignature:d.outSignature,programEmitPending:d.pendingEmit===void 0?void 0:oce(d.pendingEmit,d.options),bundle:e.bundle}}else{E=(o=d.fileIdsList)==null?void 0:o.map(z=>new Set(z.map(D)));let Y=new Map,B=(s=d.options)!=null&&s.composite&&!xs(d.options)?new Map:void 0;d.fileInfos.forEach((z,Z)=>{let me=D(Z+1),ge=rce(z);Y.set(me,ge),B&&ge.signature&&B.set(me,ge.signature)}),(l=d.emitSignatures)==null||l.forEach(z=>{if(Ey(z))B.delete(D(z));else{let Z=D(z[0]);B.set(Z,!No(z[1])&&!z[1].length?[B.get(Z)]:z[1])}});let ce=d.affectedFilesPendingEmit?Zv(d.options||{}):void 0;m={fileInfos:Y,compilerOptions:d.options?GH(d.options,N):{},referencedMap:j(d.referencedMap),exportedModulesMap:j(d.exportedModulesMap),semanticDiagnosticsPerFile:K(d.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:K(d.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,affectedFilesPendingEmit:d.affectedFilesPendingEmit&&_0(d.affectedFilesPendingEmit,z=>D(Ey(z)?z:z[0]),z=>ice(z,ce)),changedFilesSet:new Set(mn(d.changeFileSet,D)),latestChangedDtsFile:S,emitSignatures:B?.size?B:void 0}}return{getState:()=>m,saveEmitState:qa,restoreEmitState:qa,getProgram:Ho,getProgramOrUndefined:Jb,releaseProgram:qa,getCompilerOptions:()=>m.compilerOptions,getSourceFile:Ho,getSourceFiles:Ho,getOptionsDiagnostics:Ho,getGlobalDiagnostics:Ho,getConfigFileParsingDiagnostics:Ho,getSyntacticDiagnostics:Ho,getDeclarationDiagnostics:Ho,getSemanticDiagnostics:Ho,emit:Ho,getAllDependencies:Ho,getCurrentDirectory:Ho,emitNextAffectedFile:Ho,getSemanticDiagnosticsOfNextAffectedFile:Ho,emitBuildInfo:Ho,close:qa,hasChangedEmitSignature:Vm};function A(Y){return tl(Y,p,h)}function N(Y){return ho(Y,p)}function D(Y){return y[Y-1]}function w(Y){return E[Y-1]}function j(Y){if(!Y)return;let B=xm.createManyToManyPathMap();return Y.forEach(([ce,z])=>B.set(D(ce),w(z))),B}function K(Y){return Y&&_0(Y,B=>D(Ey(B)?B:B[0]),B=>Ey(B)?Xe:B[1])}}function IJ(e,t,r){let i=oi(ho(t,r.getCurrentDirectory())),o=Nd(r.useCaseSensitiveFileNames()),s=new Map,l=0,d=[];return e.fileInfos.forEach((p,h)=>{let m=tl(e.fileNames[h],i,o),y=No(p)?p:p.version;if(s.set(m,y),le().program,releaseProgram:()=>e().program=void 0,getCompilerOptions:()=>e().compilerOptions,getSourceFile:i=>r().getSourceFile(i),getSourceFiles:()=>r().getSourceFiles(),getOptionsDiagnostics:i=>r().getOptionsDiagnostics(i),getGlobalDiagnostics:i=>r().getGlobalDiagnostics(i),getConfigFileParsingDiagnostics:()=>t,getSyntacticDiagnostics:(i,o)=>r().getSyntacticDiagnostics(i,o),getDeclarationDiagnostics:(i,o)=>r().getDeclarationDiagnostics(i,o),getSemanticDiagnostics:(i,o)=>r().getSemanticDiagnostics(i,o),emit:(i,o,s,l,d)=>r().emit(i,o,s,l,d),emitBuildInfo:(i,o)=>r().emitBuildInfo(i,o),getAllDependencies:Ho,getCurrentDirectory:()=>r().getCurrentDirectory(),close:qa};function r(){return x.checkDefined(e().program)}}var RJ,DJ,JVe=bt({"src/compiler/builder.ts"(){"use strict";ea(),RJ=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.Dts=8]="Dts",e[e.DtsMap=16]="DtsMap",e[e.AllJs=7]="AllJs",e[e.AllDts=24]="AllDts",e[e.All=31]="All",e))(RJ||{}),DJ=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(DJ||{})}});function h1e(e,t,r,i,o,s){return AJ(0,dz(e,t,r,i,o,s))}function CJ(e,t,r,i,o,s){return AJ(1,dz(e,t,r,i,o,s))}function g1e(e,t,r,i,o,s){let{newProgram:l,configFileParsingDiagnostics:d}=dz(e,t,r,i,o,s);return xJ(()=>({program:l,compilerOptions:l.getCompilerOptions()}),d)}var qVe=bt({"src/compiler/builderPublic.ts"(){"use strict";ea()}});function uz(e){return El(e,"/node_modules/.staging")?Sx(e,"/.staging"):gt(kL,t=>e.includes(t))?void 0:e}function sce(e,t){if(t<=1)return 1;let r=1,i=e[0].search(/[a-zA-Z]:/)===0;if(e[0]!==nl&&!i&&e[1].search(/[a-zA-Z]\$$/)===0){if(t===2)return 2;r=2,i=!0}return i&&!e[r].match(/^users$/i)?r:e[r].match(/^workspaces$/i)?r+1:r+2}function pz(e,t){if(t===void 0&&(t=e.length),t<=2)return!1;let r=sce(e,t);return t>r+1}function lce(e){return v1e(oi(e))}function y1e(e,t){if(t.lengtho.length+1?dce(d,l,Math.max(o.length+1,p+1)):{dir:r,dirPath:i,nonRecursive:!0}:b1e(d,l,l.length-1,p,h,o)}function b1e(e,t,r,i,o,s){if(o!==-1)return dce(e,t,o+1);let l=!0,d=r;for(let p=0;pXVe(i,o,s,e,r,t,l)}}function XVe(e,t,r,i,o,s,l){let d=fz(e),p=KR(r,i,o,d,t,s,l);if(!e.getGlobalCache)return p;let h=e.getGlobalCache();if(h!==void 0&&!Yc(r)&&!(p.resolvedModule&&O6(p.resolvedModule.extension))){let{resolvedModule:m,failedLookupLocations:y,affectingLocations:E,resolutionDiagnostics:S}=Dse(x.checkDefined(e.globalCacheResolutionModuleName)(r),e.projectName,o,d,h,t);if(m)return p.resolvedModule=m,p.failedLookupLocations=UR(p.failedLookupLocations,y),p.affectingLocations=UR(p.affectingLocations,E),p.resolutionDiagnostics=UR(p.resolutionDiagnostics,S),p}return p}function PJ(e,t,r){let i,o,s,l=qp(),d=new Set,p=new Set,h=new Map,m=new Map,y=!1,E,S,A,N,D,w=!1,j=vu(()=>e.getCurrentDirectory()),K=e.getCachedDirectoryStructureHost(),Y=new Map,B=HR(j(),e.getCanonicalFileName,e.getCompilationSettings()),ce=new Map,z=b3(j(),e.getCanonicalFileName,e.getCompilationSettings(),B.getPackageJsonInfoCache(),B.optionsToRedirectsKey),Z=new Map,me=HR(j(),e.getCanonicalFileName,rK(e.getCompilationSettings()),B.getPackageJsonInfoCache()),ge=new Map,q=new Map,J=pce(t,j),re=e.toPath(J),pe=zc(re),xe=new Map;return{rootDirForResolution:t,resolvedModuleNames:Y,resolvedTypeReferenceDirectives:ce,resolvedLibraries:Z,resolvedFileToResolution:h,resolutionsWithFailedLookups:d,resolutionsWithOnlyAffectingLocations:p,directoryWatchesOfFailedLookups:ge,fileWatchesOfAffectingLocations:q,watchFailedLookupLocationsOfExternalModuleResolutions:Dn,getModuleResolutionCache:()=>B,startRecordingFilesWithChangedResolutions:Ge,finishRecordingFilesWithChangedResolutions:ve,startCachingPerDirectoryResolution:Le,finishCachingPerDirectoryResolution:be,resolveModuleNameLiterals:Je,resolveTypeReferenceDirectiveReferences:_t,resolveLibrary:pt,resolveSingleModuleNameWithoutWatching:Zt,removeResolutionsFromProjectReferenceRedirects:Ye,removeResolutionsOfFile:Ot,hasChangedAutomaticTypeDirectiveNames:()=>y,invalidateResolutionOfFile:si,invalidateResolutionsOfFailedLookupLocations:ua,setFilesWithInvalidatedNonRelativeUnresolvedImports:yi,createHasInvalidatedResolutions:De,isFileWithInvalidatedNonRelativeUnresolvedImports:Ae,updateTypeRootsWatch:lt,closeTypeRootsWatch:Be,clear:he,onChangesAffectModuleResolution:Ce};function fe(ae){return ae.resolvedModule}function ne(ae){return ae.resolvedTypeReferenceDirective}function he(){$u(ge,Rf),$u(q,Rf),l.clear(),Be(),Y.clear(),ce.clear(),h.clear(),d.clear(),p.clear(),A=void 0,N=void 0,D=void 0,S=void 0,E=void 0,w=!1,B.clear(),z.clear(),B.update(e.getCompilationSettings()),z.update(e.getCompilationSettings()),me.clear(),m.clear(),Z.clear(),y=!1}function Ce(){w=!0,B.clearAllExceptPackageJsonInfoCache(),z.clearAllExceptPackageJsonInfoCache(),B.update(e.getCompilationSettings()),z.update(e.getCompilationSettings())}function Ge(){i=[]}function ve(){let ae=i;return i=void 0,ae}function Ae(ae){if(!s)return!1;let ke=s.get(ae);return!!ke&&!!ke.length}function De(ae,ke){ua();let st=o;return o=void 0,{hasInvalidatedResolutions:G=>ae(G)||w||!!st?.has(G)||Ae(G),hasInvalidatedLibResolutions:G=>{var et;return ke(G)||!!((et=Z?.get(G))!=null&&et.isInvalidated)}}}function Le(){B.isReadonly=void 0,z.isReadonly=void 0,me.isReadonly=void 0,B.getPackageJsonInfoCache().isReadonly=void 0,B.clearAllExceptPackageJsonInfoCache(),z.clearAllExceptPackageJsonInfoCache(),me.clearAllExceptPackageJsonInfoCache(),l.forEach(uo),l.clear()}function Et(ae){Z.forEach((ke,st)=>{var G;(G=ae?.resolvedLibReferences)!=null&&G.has(st)||(Qn(ke,e.toPath(rz(e.getCompilationSettings(),j(),st)),fe),Z.delete(st))})}function be(ae,ke){s=void 0,w=!1,l.forEach(uo),l.clear(),ae!==ke&&(Et(ae),ae?.getSourceFiles().forEach(st=>{var G;let et=wp(st)?((G=st.packageJsonLocations)==null?void 0:G.length)??0:0,Tt=m.get(st.path)??Xe;for(let He=Tt.length;Heet)for(let He=et;He{ae?.getSourceFileByPath(G)||(st.forEach(et=>q.get(et).files--),m.delete(G))})),ge.forEach(ze),q.forEach(tt),y=!1,B.isReadonly=!0,z.isReadonly=!0,me.isReadonly=!0,B.getPackageJsonInfoCache().isReadonly=!0}function ze(ae,ke){ae.refCount===0&&(ge.delete(ke),ae.watcher.close())}function tt(ae,ke){var st;ae.files===0&&ae.resolutions===0&&!((st=ae.symlinks)!=null&&st.size)&&(q.delete(ke),ae.watcher.close())}function Wt({entries:ae,containingFile:ke,containingSourceFile:st,redirectedReference:G,options:et,perFileCache:Tt,reusedNames:He,loader:ut,getResolutionWithResolvedFileName:Ft,deferWatchingNonRelativeResolution:hn,shouldRetryResolution:dn,logChanges:un}){let U=e.toPath(ke),Me=Tt.get(U)||Tt.set(U,u1()).get(U),Nt=[],k=un&&Ae(U),ie=e.getCurrentProgram(),H=ie&&ie.getResolvedProjectReferenceToRedirect(ke),ue=H?!G||G.sourceFile.path!==H.sourceFile.path:!!G,We=u1();for(let It of ae){let Dt=ut.nameAndMode.getName(It),Ut=ut.nameAndMode.getMode(It,st,G?.commandLine.options||et),En=Me.get(Dt,Ut);if(!We.has(Dt,Ut)&&(w||ue||!En||En.isInvalidated||k&&!Yc(Dt)&&dn(En))){let wn=En;En=ut.resolve(Dt,Ut),e.onDiscoveredSymlink&&YVe(En)&&e.onDiscoveredSymlink(),Me.set(Dt,Ut,En),En!==wn&&(Dn(Dt,En,U,Ft,hn),wn&&Qn(wn,U,Ft)),un&&i&&!Ne(wn,En)&&(i.push(U),un=!1)}else{let wn=fz(e);if(Gg(et,wn)&&!We.has(Dt,Ut)){let Bn=Ft(En);vo(wn,Tt===Y?Bn?.resolvedFileName?Bn.packageId?f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:Bn?.resolvedFileName?Bn.packageId?f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,Dt,ke,Bn?.resolvedFileName,Bn?.packageId&&Lv(Bn.packageId))}}x.assert(En!==void 0&&!En.isInvalidated),We.set(Dt,Ut,!0),Nt.push(En)}return He?.forEach(It=>We.set(ut.nameAndMode.getName(It),ut.nameAndMode.getMode(It,st,G?.commandLine.options||et),!0)),Me.size()!==We.size()&&Me.forEach((It,Dt,Ut)=>{We.has(Dt,Ut)||(Qn(It,U,Ft),Me.delete(Dt,Ut))}),Nt;function Ne(It,Dt){if(It===Dt)return!0;if(!It||!Dt)return!1;let Ut=Ft(It),En=Ft(Dt);return Ut===En?!0:!Ut||!En?!1:Ut.resolvedFileName===En.resolvedFileName}}function _t(ae,ke,st,G,et,Tt){return Wt({entries:ae,containingFile:ke,containingSourceFile:et,redirectedReference:st,options:G,reusedNames:Tt,perFileCache:ce,loader:tz(ke,st,G,fz(e),z),getResolutionWithResolvedFileName:ne,shouldRetryResolution:He=>He.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function Je(ae,ke,st,G,et,Tt){return Wt({entries:ae,containingFile:ke,containingSourceFile:et,redirectedReference:st,options:G,reusedNames:Tt,perFileCache:Y,loader:fce(ke,st,G,e,B),getResolutionWithResolvedFileName:fe,shouldRetryResolution:He=>!He.resolvedModule||!GN(He.resolvedModule.extension),logChanges:r,deferWatchingNonRelativeResolution:!0})}function pt(ae,ke,st,G){let et=fz(e),Tt=Z?.get(G);if(!Tt||Tt.isInvalidated){let He=Tt;Tt=E3(ae,ke,st,et,me);let ut=e.toPath(ke);Dn(ae,Tt,ut,fe,!1),Z.set(G,Tt),He&&Qn(He,ut,fe)}else if(Gg(st,et)){let He=fe(Tt);vo(et,He?.resolvedFileName?He.packageId?f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,ae,ke,He?.resolvedFileName,He?.packageId&&Lv(He.packageId))}return Tt}function Zt(ae,ke){var st,G;let et=e.toPath(ke),Tt=Y.get(et),He=Tt?.get(ae,void 0);if(He&&!He.isInvalidated)return He;let ut=(st=e.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:st.call(e,B),Ft=fz(e),hn=KR(ae,ke,e.getCompilationSettings(),Ft,B);return(G=e.afterResolveSingleModuleNameWithoutWatching)==null||G.call(e,B,ae,ke,hn,ut),hn}function en(ae){return El(ae,"/node_modules/@types")}function Dn(ae,ke,st,G,et){var Tt;if(ke.refCount)ke.refCount++,x.assertIsDefined(ke.files);else{ke.refCount=1,x.assert(!((Tt=ke.files)!=null&&Tt.size)),!et||Yc(ae)?pn(ke):l.add(ae,ke);let He=G(ke);if(He&&He.resolvedFileName){let ut=e.toPath(He.resolvedFileName),Ft=h.get(ut);Ft||h.set(ut,Ft=new Set),Ft.add(ke)}}(ke.files??(ke.files=new Set)).add(st)}function Kn(ae,ke){let st=e.toPath(ae),G=NJ(ae,st,J,re,pe,j);if(G){let{dir:et,dirPath:Tt,nonRecursive:He}=G;Tt===re?(x.assert(He),ke=!0):Li(et,Tt,He)}return ke}function pn(ae){x.assert(!!ae.refCount);let{failedLookupLocations:ke,affectingLocations:st,alternateResult:G}=ae;if(!ke?.length&&!st?.length&&!G)return;(ke?.length||G)&&d.add(ae);let et=!1;if(ke)for(let Tt of ke)et=Kn(Tt,et);G&&(et=Kn(G,et)),et&&Li(J,re,!0),Xt(ae,!ke?.length&&!G)}function Xt(ae,ke){x.assert(!!ae.refCount);let{affectingLocations:st}=ae;if(st?.length){ke&&p.add(ae);for(let G of st)Kt(G,!0)}}function Kt(ae,ke){let st=q.get(ae);if(st){ke?st.resolutions++:st.files++;return}let G=ae,et=!1,Tt;e.realpath&&(G=e.realpath(ae),ae!==G&&(et=!0,Tt=q.get(G)));let He=ke?1:0,ut=ke?0:1;if(!et||!Tt){let Ft={watcher:cce(e.toPath(G))?e.watchAffectingFileLocation(G,(hn,dn)=>{K?.addOrDeleteFile(hn,e.toPath(G),dn),hi(G,B.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):iD,resolutions:et?0:He,files:et?0:ut,symlinks:void 0};q.set(G,Ft),et&&(Tt=Ft)}if(et){x.assert(!!Tt);let Ft={watcher:{close:()=>{var hn;let dn=q.get(G);(hn=dn?.symlinks)!=null&&hn.delete(ae)&&!dn.symlinks.size&&!dn.resolutions&&!dn.files&&(q.delete(G),dn.watcher.close())}},resolutions:He,files:ut,symlinks:void 0};q.set(ae,Ft),(Tt.symlinks??(Tt.symlinks=new Set)).add(ae)}}function hi(ae,ke){var st;let G=q.get(ae);G?.resolutions&&(S??(S=new Set)).add(ae),G?.files&&(E??(E=new Set)).add(ae),(st=G?.symlinks)==null||st.forEach(et=>hi(et,ke)),ke?.delete(e.toPath(ae))}function uo(ae,ke){let st=e.getCurrentProgram();!st||!st.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(ke)?ae.forEach(pn):ae.forEach(G=>Xt(G,!0))}function Li(ae,ke,st){let G=ge.get(ke);G?(x.assert(!!st==!!G.nonRecursive),G.refCount++):ge.set(ke,{watcher:Er(ae,ke,st),refCount:1,nonRecursive:st})}function So(ae,ke,st){let G=e.toPath(ae),et=NJ(ae,G,J,re,pe,j);if(et){let{dirPath:Tt}=et;Tt===re?ke=!0:Ur(Tt,st)}return ke}function Qn(ae,ke,st,G){if(x.checkDefined(ae.files).delete(ke),ae.refCount--,ae.refCount)return;let et=st(ae);if(et&&et.resolvedFileName){let Ft=e.toPath(et.resolvedFileName),hn=h.get(Ft);hn?.delete(ae)&&!hn.size&&h.delete(Ft)}let{failedLookupLocations:Tt,affectingLocations:He,alternateResult:ut}=ae;if(d.delete(ae)){let Ft=!1;if(Tt)for(let hn of Tt)Ft=So(hn,Ft,G);ut&&(Ft=So(ut,Ft,G)),Ft&&Ur(re,G)}else He?.length&&p.delete(ae);if(He)for(let Ft of He){let hn=q.get(Ft);hn.resolutions--,G&&tt(hn,Ft)}}function Ur(ae,ke){let st=ge.get(ae);st.refCount--,ke&&ze(st,ae)}function Er(ae,ke,st){return e.watchDirectoryOfFailedLookupLocation(ae,G=>{let et=e.toPath(G);K&&K.addOrDeleteFileOrDirectory(G,et),$i(et,ke===et)},st?0:1)}function on(ae,ke,st,G){let et=ae.get(ke);et&&(et.forEach(Tt=>Qn(Tt,ke,st,G)),ae.delete(ke))}function Ye(ae){if(!Sl(ae,".json"))return;let ke=e.getCurrentProgram();if(!ke)return;let st=ke.getResolvedProjectReferenceByPath(ae);st&&st.commandLine.fileNames.forEach(G=>Ot(e.toPath(G)))}function Ot(ae,ke){on(Y,ae,fe,ke),on(ce,ae,ne,ke)}function In(ae,ke){if(!ae)return!1;let st=!1;return ae.forEach(G=>{if(!(G.isInvalidated||!ke(G))){G.isInvalidated=st=!0;for(let et of x.checkDefined(G.files))(o??(o=new Set)).add(et),y=y||El(et,tD)}}),st}function si(ae){Ot(ae);let ke=y;In(h.get(ae),Sy)&&y&&!ke&&e.onChangedAutomaticTypeDirectiveNames()}function yi(ae){x.assert(s===ae||s===void 0),s=ae}function $i(ae,ke){if(ke)(D||(D=new Set)).add(ae);else{let st=uz(ae);if(!st||(ae=st,e.fileIsOpen(ae)))return!1;let G=oi(ae);if(en(ae)||KW(ae)||en(G)||KW(G))(A||(A=new Set)).add(ae),(N||(N=new Set)).add(ae);else{if(zle(e.getCurrentProgram(),ae)||Sl(ae,".map"))return!1;(A||(A=new Set)).add(ae);let et=uw(ae,!0);et&&(N||(N=new Set)).add(et)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function Io(){let ae=B.getPackageJsonInfoCache().getInternalMap();ae&&(A||N||D)&&ae.forEach((ke,st)=>vn(st)?ae.delete(st):void 0)}function ua(){var ae;if(w)return E=void 0,Io(),(A||N||D||S)&&In(Z,Ba),A=void 0,N=void 0,D=void 0,S=void 0,!0;let ke=!1;return E&&((ae=e.getCurrentProgram())==null||ae.getSourceFiles().forEach(st=>{gt(st.packageJsonLocations,G=>E.has(G))&&((o??(o=new Set)).add(st.path),ke=!0)}),E=void 0),!A&&!N&&!D&&!S||(ke=In(d,Ba)||ke,Io(),A=void 0,N=void 0,D=void 0,ke=In(p,kn)||ke,S=void 0),ke}function Ba(ae){var ke;return kn(ae)?!0:!A&&!N&&!D?!1:((ke=ae.failedLookupLocations)==null?void 0:ke.some(st=>vn(e.toPath(st))))||!!ae.alternateResult&&vn(e.toPath(ae.alternateResult))}function vn(ae){return A?.has(ae)||vL(N?.keys()||[],ke=>ao(ae,ke)?!0:void 0)||vL(D?.keys()||[],ke=>ae.length>ke.length&&ao(ae,ke)&&(aV(ke)||ae[ke.length]===nl)?!0:void 0)}function kn(ae){var ke;return!!S&&((ke=ae.affectingLocations)==null?void 0:ke.some(st=>S.has(st)))}function Be(){$u(xe,Hm)}function ct(ae){return Rt(ae)?e.watchTypeRootsDirectory(ae,ke=>{let st=e.toPath(ke);K&&K.addOrDeleteFileOrDirectory(ke,st),y=!0,e.onChangedAutomaticTypeDirectiveNames();let G=uce(ae,e.toPath(ae),re,pe,j,et=>ge.has(et));G&&$i(st,G===st)},1):iD}function lt(){let ae=e.getCompilationSettings();if(ae.types){Be();return}let ke=xP(ae,{getCurrentDirectory:j});ke?WN(xe,new Set(ke),{createNewValue:ct,onDeleteValue:Hm}):Be()}function Rt(ae){return e.getCompilationSettings().typeRoots?!0:lce(e.toPath(ae))}}function YVe(e){var t,r;return!!((t=e.resolvedModule)!=null&&t.originalPath||(r=e.resolvedTypeReferenceDirective)!=null&&r.originalPath)}var $Ve=bt({"src/compiler/resolutionCache.ts"(){"use strict";ea()}});function ww(e,t){let r=e===hd&&bce?bce:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:Nd(e.useCaseSensitiveFileNames)};if(!t)return o=>e.write(oJ(o,r));let i=new Array(1);return o=>{i[0]=o,e.write(jle(i,r)+r.getNewLine()),i[0]=void 0}}function S1e(e,t,r){return e.clearScreen&&!r.preserveWatchOutput&&!r.extendedDiagnostics&&!r.diagnostics&&Bo(vz,t.code)?(e.clearScreen(),!0):!1}function QVe(e,t){return Bo(vz,e.code)?t+t:t}function Ow(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace("\u202F"," "):new Date().toLocaleTimeString()}function mce(e,t){return t?(r,i,o)=>{S1e(e,r,o);let s=`[${iS(Ow(e),"\x1B[90m")}] `;s+=`${k_(r.messageText,e.newLine)}${i+i}`,e.write(s)}:(r,i,o)=>{let s="";S1e(e,r,o)||(s+=i),s+=`${Ow(e)} - `,s+=`${k_(r.messageText,e.newLine)}${QVe(r,i)}`,e.write(s)}}function T1e(e,t,r,i,o,s){let l=o;l.onUnRecoverableConfigFileDiagnostic=p=>x1e(o,s,p);let d=Qk(e,t,l,r,i);return l.onUnRecoverableConfigFileDiagnostic=void 0,d}function mz(e){return yv(e,t=>t.category===1)}function _z(e){return jr(e,r=>r.category===1).map(r=>{if(r.file!==void 0)return`${r.file.fileName}`}).map(r=>{if(r===void 0)return;let i=Vr(e,o=>o.file!==void 0&&o.file.fileName===r);if(i!==void 0){let{line:o}=hs(i.file,i.start);return{fileName:r,line:o+1}}})}function MJ(e){return e===1?f.Found_1_error_Watching_for_file_changes:f.Found_0_errors_Watching_for_file_changes}function A1e(e,t){let r=iS(":"+e.line,"\x1B[90m");return KC(e.fileName)&&KC(t)?_m(t,e.fileName,!1)+r:e.fileName+r}function _ce(e,t,r,i){if(e===0)return"";let o=t.filter(m=>m!==void 0),s=o.map(m=>`${m.fileName}:${m.line}`).filter((m,y,E)=>E.indexOf(m)===y),l=o[0]&&A1e(o[0],i.getCurrentDirectory()),d;e===1?d=t[0]!==void 0?[f.Found_1_error_in_0,l]:[f.Found_1_error]:d=s.length===0?[f.Found_0_errors,e]:s.length===1?[f.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,l]:[f.Found_0_errors_in_1_files,e,s.length];let p=jl(...d),h=s.length>1?ZVe(o,i):"";return`${r}${k_(p.messageText,r)}${r}${r}${h}`}function ZVe(e,t){let r=e.filter((y,E,S)=>E===S.findIndex(A=>A?.fileName===y?.fileName));if(r.length===0)return"";let i=y=>Math.log(y)*Math.LOG10E+1,o=r.map(y=>[y,yv(e,E=>E.fileName===y.fileName)]),s=o.reduce((y,E)=>Math.max(y,E[1]||0),0),l=f.Errors_Files.message,d=l.split(" ")[0].length,p=Math.max(d,i(s)),h=Math.max(i(s)-d,0),m="";return m+=" ".repeat(h)+l+` -`,o.forEach(y=>{let[E,S]=y,A=Math.log(S)*Math.LOG10E+1|0,N=A{t(i.fileName)})}function kJ(e,t){var r,i;let o=e.getFileIncludeReasons(),s=l=>JC(l,e.getCurrentDirectory(),e.getCanonicalFileName);for(let l of e.getSourceFiles())t(`${rD(l,s)}`),(r=o.get(l.path))==null||r.forEach(d=>t(` ${FJ(e,d,s).messageText}`)),(i=wJ(l,s))==null||i.forEach(d=>t(` ${d.messageText}`))}function wJ(e,t){var r;let i;if(e.path!==e.resolvedPath&&(i??(i=[])).push(zo(void 0,f.File_is_output_of_project_reference_source_0,rD(e.originalFileName,t))),e.redirectInfo&&(i??(i=[])).push(zo(void 0,f.File_redirects_to_file_0,rD(e.redirectInfo.redirectTarget,t))),wp(e))switch(e.impliedNodeFormat){case 99:e.packageJsonScope&&(i??(i=[])).push(zo(void 0,f.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,rD(Ja(e.packageJsonLocations),t)));break;case 1:e.packageJsonScope?(i??(i=[])).push(zo(void 0,e.packageJsonScope.contents.packageJsonContent.type?f.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:f.File_is_CommonJS_module_because_0_does_not_have_field_type,rD(Ja(e.packageJsonLocations),t))):(r=e.packageJsonLocations)!=null&&r.length&&(i??(i=[])).push(zo(void 0,f.File_is_CommonJS_module_because_package_json_was_not_found));break}return i}function OJ(e,t){var r;let i=e.getCompilerOptions().configFile;if(!((r=i?.configFileSpecs)!=null&&r.validatedFilesSpec))return;let o=e.getCanonicalFileName(t),s=oi(ho(i.fileName,e.getCurrentDirectory()));return Vr(i.configFileSpecs.validatedFilesSpec,l=>e.getCanonicalFileName(ho(l,s))===o)}function WJ(e,t){var r,i;let o=e.getCompilerOptions().configFile;if(!((r=o?.configFileSpecs)!=null&&r.validatedIncludeSpecs))return;if(o.configFileSpecs.isDefaultIncludeSpec)return!0;let s=Sl(t,".json"),l=oi(ho(o.fileName,e.getCurrentDirectory())),d=e.useCaseSensitiveFileNames();return Vr((i=o?.configFileSpecs)==null?void 0:i.validatedIncludeSpecs,p=>{if(s&&!El(p,".json"))return!1;let h=_oe(p,l,"files");return!!h&&zv(`(${h})$`,d).test(t)})}function FJ(e,t,r){var i,o;let s=e.getCompilerOptions();if(IE(t)){let l=VP(e,t),d=ZR(l)?l.file.text.substring(l.pos,l.end):`"${l.text}"`,p;switch(x.assert(ZR(l)||t.kind===3,"Only synthetic references are imports"),t.kind){case 3:ZR(l)?p=l.packageId?f.Imported_via_0_from_file_1_with_packageId_2:f.Imported_via_0_from_file_1:l.text===Gv?p=l.packageId?f.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:f.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:p=l.packageId?f.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:f.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:x.assert(!l.packageId),p=f.Referenced_via_0_from_file_1;break;case 5:p=l.packageId?f.Type_library_referenced_via_0_from_file_1_with_packageId_2:f.Type_library_referenced_via_0_from_file_1;break;case 7:x.assert(!l.packageId),p=f.Library_referenced_via_0_from_file_1;break;default:x.assertNever(t)}return zo(void 0,p,d,rD(l.file,r),l.packageId&&Lv(l.packageId))}switch(t.kind){case 0:if(!((i=s.configFile)!=null&&i.configFileSpecs))return zo(void 0,f.Root_file_specified_for_compilation);let l=ho(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(OJ(e,l))return zo(void 0,f.Part_of_files_list_in_tsconfig_json);let p=WJ(e,l);return No(p)?zo(void 0,f.Matched_by_include_pattern_0_in_1,p,rD(s.configFile,r)):zo(void 0,p?f.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:f.Root_file_specified_for_compilation);case 1:case 2:let h=t.kind===2,m=x.checkDefined((o=e.getResolvedProjectReferences())==null?void 0:o[t.index]);return zo(void 0,xs(s)?h?f.Output_from_referenced_project_0_included_because_1_specified:f.Source_from_referenced_project_0_included_because_1_specified:h?f.Output_from_referenced_project_0_included_because_module_is_specified_as_none:f.Source_from_referenced_project_0_included_because_module_is_specified_as_none,rD(m.sourceFile.fileName,r),s.outFile?"--outFile":"--out");case 8:{let y=s.types?t.packageId?[f.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,Lv(t.packageId)]:[f.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]:t.packageId?[f.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,Lv(t.packageId)]:[f.Entry_point_for_implicit_type_library_0,t.typeReference];return zo(void 0,...y)}case 6:{if(t.index!==void 0)return zo(void 0,f.Library_0_specified_in_compilerOptions,s.lib[t.index]);let y=Gc(aw.type,(S,A)=>S===ns(s)?A:void 0),E=y?[f.Default_library_for_target_0,y]:[f.Default_library];return zo(void 0,...E)}default:x.assertNever(t)}}function rD(e,t){let r=No(e)?e:e.fileName;return t?t(r):r}function hz(e,t,r,i,o,s,l,d){let p=!!e.getCompilerOptions().listFilesOnly,h=e.getConfigFileParsingDiagnostics().slice(),m=h.length;Hr(h,e.getSyntacticDiagnostics(void 0,s)),h.length===m&&(Hr(h,e.getOptionsDiagnostics(s)),p||(Hr(h,e.getGlobalDiagnostics(s)),h.length===m&&Hr(h,e.getSemanticDiagnostics(void 0,s))));let y=p?{emitSkipped:!0,diagnostics:Xe}:e.emit(void 0,o,s,l,d),{emittedFiles:E,diagnostics:S}=y;Hr(h,S);let A=Mx(h);if(A.forEach(t),r){let N=e.getCurrentDirectory();gn(E,D=>{let w=ho(D,N);r(`TSFILE: ${w}`)}),LJ(e,r)}return i&&i(mz(A),_z(A)),{emitResult:y,diagnostics:A}}function gce(e,t,r,i,o,s,l,d){let{emitResult:p,diagnostics:h}=hz(e,t,r,i,o,s,l,d);return p.emitSkipped&&h.length>0?1:h.length>0?2:0}function zJ(e=hd,t){return{onWatchStatusChange:t||mce(e),watchFile:ta(e,e.watchFile)||oD,watchDirectory:ta(e,e.watchDirectory)||oD,setTimeout:ta(e,e.setTimeout)||qa,clearTimeout:ta(e,e.clearTimeout)||qa}}function BJ(e,t){let r=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,i=r!==0?s=>e.trace(s):qa,o=ZK(e,r,i);return o.writeLog=i,o}function GJ(e,t,r=e){let i=e.useCaseSensitiveFileNames(),o={getSourceFile:nJ((s,l)=>l?e.readFile(s,l):o.readFile(s),t,void 0),getDefaultLibLocation:ta(e,e.getDefaultLibLocation),getDefaultLibFileName:s=>e.getDefaultLibFileName(s),writeFile:rJ((s,l,d)=>e.writeFile(s,l,d),s=>e.createDirectory(s),s=>e.directoryExists(s)),getCurrentDirectory:vu(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:Nd(i),getNewLine:()=>wy(t()),fileExists:s=>e.fileExists(s),readFile:s=>e.readFile(s),trace:ta(e,e.trace),directoryExists:ta(r,r.directoryExists),getDirectories:ta(r,r.getDirectories),realpath:ta(e,e.realpath),getEnvironmentVariable:ta(e,e.getEnvironmentVariable)||(()=>""),createHash:ta(e,e.createHash),readDirectory:ta(e,e.readDirectory),storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,jsDocParsingMode:e.jsDocParsingMode};return o}function gz(e,t){if(t.match(RK)){let r=t.length,i=r;for(let o=r-1;o>=0;o--){let s=t.charCodeAt(o);switch(s){case 10:o&&t.charCodeAt(o-1)===13&&o--;case 13:break;default:if(s<127||!jd(s)){i=o;continue}break}let l=t.substring(i,r);if(l.match(k3)){t=t.substring(0,i);break}else if(!l.match(w3))break;r=i}}return(e.createHash||HC)(t)}function yz(e){let t=e.getSourceFile;e.getSourceFile=(...r)=>{let i=t.call(e,...r);return i&&(i.version=gz(e,i.text)),i}}function VJ(e,t){let r=vu(()=>oi(ma(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:vu(()=>e.getCurrentDirectory()),getDefaultLibLocation:r,getDefaultLibFileName:i=>Yr(r(),HL(i)),fileExists:i=>e.fileExists(i),readFile:(i,o)=>e.readFile(i,o),directoryExists:i=>e.directoryExists(i),getDirectories:i=>e.getDirectories(i),readDirectory:(i,o,s,l,d)=>e.readDirectory(i,o,s,l,d),realpath:ta(e,e.realpath),getEnvironmentVariable:ta(e,e.getEnvironmentVariable),trace:i=>e.write(i+e.newLine),createDirectory:i=>e.createDirectory(i),writeFile:(i,o,s)=>e.writeFile(i,o,s),createHash:ta(e,e.createHash),createProgram:t||CJ,storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,now:ta(e,e.now)}}function I1e(e=hd,t,r,i){let o=l=>e.write(l+e.newLine),s=VJ(e,t);return GG(s,zJ(e,i)),s.afterProgramCreate=l=>{let d=l.getCompilerOptions(),p=wy(d);hz(l,r,o,h=>s.onWatchStatusChange(jl(MJ(h),h),p,d,h))},s}function x1e(e,t,r){t(r),e.exit(1)}function yce({configFileName:e,optionsToExtend:t,watchOptionsToExtend:r,extraFileExtensions:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:d}){let p=l||ww(o),h=I1e(o,s,p,d);return h.onUnRecoverableConfigFileDiagnostic=m=>x1e(o,p,m),h.configFileName=e,h.optionsToExtend=t,h.watchOptionsToExtend=r,h.extraFileExtensions=i,h}function vce({rootFiles:e,options:t,watchOptions:r,projectReferences:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:d}){let p=I1e(o,s,l||ww(o),d);return p.rootFiles=e,p.options=t,p.watchOptions=r,p.projectReferences=i,p}function R1e(e){let t=e.system||hd,r=e.host||(e.host=jJ(e.options,t)),i=Ece(e),o=gce(i,e.reportDiagnostic||ww(t),s=>r.trace&&r.trace(s),e.reportErrorSummary||e.options.pretty?(s,l)=>t.write(_ce(s,l,t.newLine,r)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(i),o}var bce,vz,iD,oD,kc,eje=bt({"src/compiler/watch.ts"(){"use strict";ea(),bce=hd?{getCurrentDirectory:()=>hd.getCurrentDirectory(),getNewLine:()=>hd.newLine,getCanonicalFileName:Nd(hd.useCaseSensitiveFileNames)}:void 0,vz=[f.Starting_compilation_in_watch_mode.code,f.File_change_detected_Starting_incremental_compilation.code],iD={close:qa},oD=()=>iD,kc={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation",TypingInstallerLocationFile:"File location for typing installer",TypingInstallerLocationDirectory:"Directory location for typing installer"}}});function bz(e,t){let r=Vy(e);if(!r)return;let i;if(t.getBuildInfo)i=t.getBuildInfo(r,e.configFilePath);else{let o=t.readFile(r);if(!o)return;i=X3(r,o)}if(!(!i||i.version!==Jp||!i.program))return ace(i,r,t)}function jJ(e,t=hd){let r=iJ(e,void 0,t);return r.createHash=ta(t,t.createHash),r.storeFilesChangingSignatureDuringEmit=t.storeFilesChangingSignatureDuringEmit,yz(r),Nw(r,i=>tl(i,r.getCurrentDirectory(),r.getCanonicalFileName)),r}function Ece({rootNames:e,options:t,configFileParsingDiagnostics:r,projectReferences:i,host:o,createProgram:s}){o=o||jJ(t),s=s||CJ;let l=bz(t,o);return s(e,t,o,l,r,i)}function D1e(e,t,r,i,o,s,l,d){return To(e)?vce({rootFiles:e,options:t,watchOptions:d,projectReferences:l,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s}):yce({configFileName:e,optionsToExtend:t,watchOptionsToExtend:l,extraFileExtensions:d,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s})}function C1e(e){let t,r,i,o,s,l,d,p,h=e.extendedConfigCache,m=!1,y=new Map,E,S=!1,A=e.useCaseSensitiveFileNames(),N=e.getCurrentDirectory(),{configFileName:D,optionsToExtend:w={},watchOptionsToExtend:j,extraFileExtensions:K,createProgram:Y}=e,{rootFiles:B,options:ce,watchOptions:z,projectReferences:Z}=e,me,ge,q=!1,J=!1,re=D===void 0?void 0:$3(e,N,A),pe=re||e,xe=az(e,pe),fe=Dn();D&&e.configFileParsingResult&&(Ba(e.configFileParsingResult),fe=Dn()),Qn(f.Starting_compilation_in_watch_mode),D&&!e.configFileParsingResult&&(fe=wy(w),x.assert(!B),ua(),fe=Dn()),x.assert(ce),x.assert(B);let{watchFile:ne,watchDirectory:he,writeLog:Ce}=BJ(e,ce),Ge=Nd(A);Ce(`Current directory: ${N} CaseSensitiveFileNames: ${A}`);let ve;D&&(ve=ne(D,In,2e3,z,kc.ConfigFile));let Ae=GJ(e,()=>ce,pe);yz(Ae);let De=Ae.getSourceFile;Ae.getSourceFile=(He,...ut)=>hi(He,Kn(He),...ut),Ae.getSourceFileByPath=hi,Ae.getNewLine=()=>fe,Ae.fileExists=Kt,Ae.onReleaseOldSourceFile=So,Ae.onReleaseParsedCommandLine=Be,Ae.toPath=Kn,Ae.getCompilationSettings=()=>ce,Ae.useSourceOfProjectReferenceRedirect=ta(e,e.useSourceOfProjectReferenceRedirect),Ae.watchDirectoryOfFailedLookupLocation=(He,ut,Ft)=>he(He,ut,Ft,z,kc.FailedLookupLocations),Ae.watchAffectingFileLocation=(He,ut)=>ne(He,ut,2e3,z,kc.AffectingFileLocation),Ae.watchTypeRootsDirectory=(He,ut,Ft)=>he(He,ut,Ft,z,kc.TypeRoots),Ae.getCachedDirectoryStructureHost=()=>re,Ae.scheduleInvalidateResolutionsOfFailedLookupLocations=on,Ae.onInvalidatedResolution=Ot,Ae.onChangedAutomaticTypeDirectiveNames=Ot,Ae.fileIsOpen=Vm,Ae.getCurrentProgram=Je,Ae.writeLog=Ce,Ae.getParsedCommandLine=vn;let Le=PJ(Ae,D?oi(ho(D,N)):N,!1);Ae.resolveModuleNameLiterals=ta(e,e.resolveModuleNameLiterals),Ae.resolveModuleNames=ta(e,e.resolveModuleNames),!Ae.resolveModuleNameLiterals&&!Ae.resolveModuleNames&&(Ae.resolveModuleNameLiterals=Le.resolveModuleNameLiterals.bind(Le)),Ae.resolveTypeReferenceDirectiveReferences=ta(e,e.resolveTypeReferenceDirectiveReferences),Ae.resolveTypeReferenceDirectives=ta(e,e.resolveTypeReferenceDirectives),!Ae.resolveTypeReferenceDirectiveReferences&&!Ae.resolveTypeReferenceDirectives&&(Ae.resolveTypeReferenceDirectiveReferences=Le.resolveTypeReferenceDirectiveReferences.bind(Le)),Ae.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):Le.resolveLibrary.bind(Le),Ae.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?ta(e,e.getModuleResolutionCache):()=>Le.getModuleResolutionCache();let be=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?ta(e,e.hasInvalidatedResolutions)||Sy:Vm,ze=e.resolveLibrary?ta(e,e.hasInvalidatedLibResolutions)||Sy:Vm;return t=bz(ce,Ae),pt(),st(),D&&et(Kn(D),ce,z,kc.ExtendedConfigFile),D?{getCurrentProgram:_t,getProgram:yi,close:tt,getResolutionCache:Wt}:{getCurrentProgram:_t,getProgram:yi,updateRootFileNames:en,close:tt,getResolutionCache:Wt};function tt(){Er(),Le.clear(),$u(y,He=>{He&&He.fileWatcher&&(He.fileWatcher.close(),He.fileWatcher=void 0)}),ve&&(ve.close(),ve=void 0),h?.clear(),h=void 0,p&&($u(p,Rf),p=void 0),o&&($u(o,Rf),o=void 0),i&&($u(i,Hm),i=void 0),d&&($u(d,He=>{var ut;(ut=He.watcher)==null||ut.close(),He.watcher=void 0,He.watchedDirectories&&$u(He.watchedDirectories,Rf),He.watchedDirectories=void 0}),d=void 0)}function Wt(){return Le}function _t(){return t}function Je(){return t&&t.getProgramOrUndefined()}function pt(){Ce("Synchronizing program"),x.assert(ce),x.assert(B),Er();let He=_t();S&&(fe=Dn(),He&&yF(He.getCompilerOptions(),ce)&&Le.onChangesAffectModuleResolution());let{hasInvalidatedResolutions:ut,hasInvalidatedLibResolutions:Ft}=Le.createHasInvalidatedResolutions(be,ze),{originalReadFile:hn,originalFileExists:dn,originalDirectoryExists:un,originalCreateDirectory:U,originalWriteFile:Me,readFileWithCache:Nt}=Nw(Ae,Kn);return mJ(Je(),B,ce,k=>Li(k,Nt),k=>Ae.fileExists(k),ut,Ft,Ur,vn,Z)?J&&(m&&Qn(f.File_change_detected_Starting_incremental_compilation),t=Y(void 0,void 0,Ae,t,ge,Z),J=!1):(m&&Qn(f.File_change_detected_Starting_incremental_compilation),Zt(ut,Ft)),m=!1,e.afterProgramCreate&&He!==t&&e.afterProgramCreate(t),Ae.readFile=hn,Ae.fileExists=dn,Ae.directoryExists=un,Ae.createDirectory=U,Ae.writeFile=Me,t}function Zt(He,ut){Ce("CreatingProgramWith::"),Ce(` roots: ${JSON.stringify(B)}`),Ce(` options: ${JSON.stringify(ce)}`),Z&&Ce(` projectReferences: ${JSON.stringify(Z)}`);let Ft=S||!Je();S=!1,J=!1,Le.startCachingPerDirectoryResolution(),Ae.hasInvalidatedResolutions=He,Ae.hasInvalidatedLibResolutions=ut,Ae.hasChangedAutomaticTypeDirectiveNames=Ur;let hn=Je();if(t=Y(B,ce,Ae,t,ge,Z),Le.finishCachingPerDirectoryResolution(t.getProgram(),hn),QK(t.getProgram(),i||(i=new Map),ae),Ft&&Le.updateTypeRootsWatch(),E){for(let dn of E)i.has(dn)||y.delete(dn);E=void 0}}function en(He){x.assert(!D,"Cannot update root file names with config file watch mode"),B=He,Ot()}function Dn(){return wy(ce||w)}function Kn(He){return tl(He,N,Ge)}function pn(He){return typeof He=="boolean"}function Xt(He){return typeof He.version=="boolean"}function Kt(He){let ut=Kn(He);return pn(y.get(ut))?!1:pe.fileExists(He)}function hi(He,ut,Ft,hn,dn){let un=y.get(ut);if(pn(un))return;let U=typeof Ft=="object"?Ft.impliedNodeFormat:void 0;if(un===void 0||dn||Xt(un)||un.sourceFile.impliedNodeFormat!==U){let Me=De(He,Ft,hn);if(un)Me?(un.sourceFile=Me,un.version=Me.version,un.fileWatcher||(un.fileWatcher=ct(ut,He,lt,250,z,kc.SourceFile))):(un.fileWatcher&&un.fileWatcher.close(),y.set(ut,!1));else if(Me){let Nt=ct(ut,He,lt,250,z,kc.SourceFile);y.set(ut,{sourceFile:Me,version:Me.version,fileWatcher:Nt})}else y.set(ut,!1);return Me}return un.sourceFile}function uo(He){let ut=y.get(He);ut!==void 0&&(pn(ut)?y.set(He,{version:!1}):ut.version=!1)}function Li(He,ut){let Ft=y.get(He);if(!Ft)return;if(Ft.version)return Ft.version;let hn=ut(He);return hn!==void 0?gz(Ae,hn):void 0}function So(He,ut,Ft){let hn=y.get(He.resolvedPath);hn!==void 0&&(pn(hn)?(E||(E=[])).push(He.path):hn.sourceFile===He&&(hn.fileWatcher&&hn.fileWatcher.close(),y.delete(He.resolvedPath),Ft||Le.removeResolutionsOfFile(He.path)))}function Qn(He){e.onWatchStatusChange&&e.onWatchStatusChange(jl(He),fe,ce||w)}function Ur(){return Le.hasChangedAutomaticTypeDirectiveNames()}function Er(){return l?(e.clearTimeout(l),l=void 0,!0):!1}function on(){if(!e.setTimeout||!e.clearTimeout)return Le.invalidateResolutionsOfFailedLookupLocations();let He=Er();Ce(`Scheduling invalidateFailedLookup${He?", Cancelled earlier one":""}`),l=e.setTimeout(Ye,250,"timerToInvalidateFailedLookupResolutions")}function Ye(){l=void 0,Le.invalidateResolutionsOfFailedLookupLocations()&&Ot()}function Ot(){!e.setTimeout||!e.clearTimeout||(s&&e.clearTimeout(s),Ce("Scheduling update"),s=e.setTimeout(si,250,"timerToUpdateProgram"))}function In(){x.assert(!!D),r=2,Ot()}function si(){s=void 0,m=!0,yi()}function yi(){var He,ut,Ft,hn;switch(r){case 1:(He=nu)==null||He.logStartUpdateProgram("PartialConfigReload"),$i();break;case 2:(ut=nu)==null||ut.logStartUpdateProgram("FullConfigReload"),Io();break;default:(Ft=nu)==null||Ft.logStartUpdateProgram("SynchronizeProgram"),pt();break}return(hn=nu)==null||hn.logStopUpdateProgram("Done"),_t()}function $i(){Ce("Reloading new file names and options"),x.assert(ce),x.assert(D),r=0,B=TP(ce.configFile.configFileSpecs,ho(oi(D),N),ce,xe,K),s3(B,ho(D,N),ce.configFile.configFileSpecs,ge,q)&&(J=!0),pt()}function Io(){x.assert(D),Ce(`Reloading config file: ${D}`),r=0,re&&re.clearCache(),ua(),S=!0,pt(),st(),et(Kn(D),ce,z,kc.ExtendedConfigFile)}function ua(){x.assert(D),Ba(Qk(D,w,xe,h||(h=new Map),j,K))}function Ba(He){B=He.fileNames,ce=He.options,z=He.watchOptions,Z=He.projectReferences,me=He.wildcardDirectories,ge=KT(He).slice(),q=SP(He.raw),J=!0}function vn(He){let ut=Kn(He),Ft=d?.get(ut);if(Ft){if(!Ft.updateLevel)return Ft.parsedCommandLine;if(Ft.parsedCommandLine&&Ft.updateLevel===1&&!e.getParsedCommandLine){Ce("Reloading new file names and options"),x.assert(ce);let dn=TP(Ft.parsedCommandLine.options.configFile.configFileSpecs,ho(oi(He),N),ce,xe);return Ft.parsedCommandLine={...Ft.parsedCommandLine,fileNames:dn},Ft.updateLevel=void 0,Ft.parsedCommandLine}}Ce(`Loading config file: ${He}`);let hn=e.getParsedCommandLine?e.getParsedCommandLine(He):kn(He);return Ft?(Ft.parsedCommandLine=hn,Ft.updateLevel=void 0):(d||(d=new Map)).set(ut,Ft={parsedCommandLine:hn}),Tt(He,ut,Ft),hn}function kn(He){let ut=xe.onUnRecoverableConfigFileDiagnostic;xe.onUnRecoverableConfigFileDiagnostic=qa;let Ft=Qk(He,void 0,xe,h||(h=new Map),j);return xe.onUnRecoverableConfigFileDiagnostic=ut,Ft}function Be(He){var ut;let Ft=Kn(He),hn=d?.get(Ft);hn&&(d.delete(Ft),hn.watchedDirectories&&$u(hn.watchedDirectories,Rf),(ut=hn.watcher)==null||ut.close(),$K(Ft,p))}function ct(He,ut,Ft,hn,dn,un){return ne(ut,(U,Me)=>Ft(U,Me,He),hn,dn,un)}function lt(He,ut,Ft){Rt(He,Ft,ut),ut===2&&y.has(Ft)&&Le.invalidateResolutionOfFile(Ft),uo(Ft),Ot()}function Rt(He,ut,Ft){re&&re.addOrDeleteFile(He,ut,Ft)}function ae(He,ut){return d?.has(He)?iD:ct(He,ut,ke,500,z,kc.MissingFile)}function ke(He,ut,Ft){Rt(He,Ft,ut),ut===0&&i.has(Ft)&&(i.get(Ft).close(),i.delete(Ft),uo(Ft),Ot())}function st(){Rw(o||(o=new Map),me,G)}function G(He,ut){return he(He,Ft=>{x.assert(D),x.assert(ce);let hn=Kn(Ft);re&&re.addOrDeleteFileOrDirectory(Ft,hn),uo(hn),!Dw({watchedDirPath:Kn(He),fileOrDirectory:Ft,fileOrDirectoryPath:hn,configFileName:D,extraFileExtensions:K,options:ce,program:_t()||B,currentDirectory:N,useCaseSensitiveFileNames:A,writeLog:Ce,toPath:Kn})&&r!==2&&(r=1,Ot())},ut,z,kc.WildcardDirectory)}function et(He,ut,Ft,hn){Q3(He,ut,p||(p=new Map),(dn,un)=>ne(dn,(U,Me)=>{var Nt;Rt(dn,un,Me),h&&Z3(h,un,Kn);let k=(Nt=p.get(un))==null?void 0:Nt.projects;k?.size&&k.forEach(ie=>{if(D&&Kn(D)===ie)r=2;else{let H=d?.get(ie);H&&(H.updateLevel=2),Le.removeResolutionsFromProjectReferenceRedirects(ie)}Ot()})},2e3,Ft,hn),Kn)}function Tt(He,ut,Ft){var hn,dn,un,U;Ft.watcher||(Ft.watcher=ne(He,(Me,Nt)=>{Rt(He,ut,Nt);let k=d?.get(ut);k&&(k.updateLevel=2),Le.removeResolutionsFromProjectReferenceRedirects(ut),Ot()},2e3,((hn=Ft.parsedCommandLine)==null?void 0:hn.watchOptions)||z,kc.ConfigFileOfReferencedProject)),Rw(Ft.watchedDirectories||(Ft.watchedDirectories=new Map),(dn=Ft.parsedCommandLine)==null?void 0:dn.wildcardDirectories,(Me,Nt)=>{var k;return he(Me,ie=>{let H=Kn(ie);re&&re.addOrDeleteFileOrDirectory(ie,H),uo(H);let ue=d?.get(ut);ue?.parsedCommandLine&&(Dw({watchedDirPath:Kn(Me),fileOrDirectory:ie,fileOrDirectoryPath:H,configFileName:He,options:ue.parsedCommandLine.options,program:ue.parsedCommandLine.fileNames,currentDirectory:N,useCaseSensitiveFileNames:A,writeLog:Ce,toPath:Kn})||ue.updateLevel!==2&&(ue.updateLevel=1,Ot()))},Nt,((k=Ft.parsedCommandLine)==null?void 0:k.watchOptions)||z,kc.WildcardDirectoryOfReferencedProject)}),et(ut,(un=Ft.parsedCommandLine)==null?void 0:un.options,((U=Ft.parsedCommandLine)==null?void 0:U.watchOptions)||z,kc.ExtendedConfigOfReferencedProject)}}var tje=bt({"src/compiler/watchPublic.ts"(){"use strict";ea()}});function UJ(e){return Sl(e,".json")?e:Yr(e,"tsconfig.json")}var HJ,nje=bt({"src/compiler/tsbuild.ts"(){"use strict";ea(),HJ=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",e[e.OutputMissing=4]="OutputMissing",e[e.ErrorReadingFile=5]="ErrorReadingFile",e[e.OutOfDateWithSelf=6]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=7]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfo=8]="OutOfDateBuildInfo",e[e.OutOfDateOptions=9]="OutOfDateOptions",e[e.OutOfDateRoots=10]="OutOfDateRoots",e[e.UpstreamOutOfDate=11]="UpstreamOutOfDate",e[e.UpstreamBlocked=12]="UpstreamBlocked",e[e.ComputingUpstream=13]="ComputingUpstream",e[e.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",e[e.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",e[e.ContainerOnly=16]="ContainerOnly",e[e.ForceBuild=17]="ForceBuild",e))(HJ||{})}});function rje(e,t,r){let i=e.get(t),o;return i||(o=r(),e.set(t,o)),i||o}function Sce(e,t){return rje(e,t,()=>new Map)}function Ww(e){return e.now?e.now():new Date}function h1(e){return!!e&&!!e.buildOrder}function Ez(e){return h1(e)?e.buildOrder:e}function Tce(e,t){return r=>{let i=t?`[${iS(Ow(e),"\x1B[90m")}] `:`${Ow(e)} - `;i+=`${k_(r.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(i)}}function N1e(e,t,r,i){let o=VJ(e,t);return o.getModifiedTime=e.getModifiedTime?s=>e.getModifiedTime(s):Jb,o.setModifiedTime=e.setModifiedTime?(s,l)=>e.setModifiedTime(s,l):qa,o.deleteFile=e.deleteFile?s=>e.deleteFile(s):qa,o.reportDiagnostic=r||ww(e),o.reportSolutionBuilderStatus=i||Tce(e),o.now=ta(e,e.now),o}function P1e(e=hd,t,r,i,o){let s=N1e(e,t,r,i);return s.reportErrorSummary=o,s}function M1e(e=hd,t,r,i,o){let s=N1e(e,t,r,i),l=zJ(e,o);return GG(s,l),s}function ije(e){let t={};return ow.forEach(r=>{Ss(e,r.name)&&(t[r.name]=e[r.name])}),t}function L1e(e,t,r){return rxe(!1,e,t,r)}function k1e(e,t,r,i){return rxe(!0,e,t,r,i)}function oje(e,t,r,i,o){let s=t,l=t,d=ije(i),p=GJ(s,()=>N.projectCompilerOptions);yz(p),p.getParsedCommandLine=D=>g1(N,D,w_(N,D)),p.resolveModuleNameLiterals=ta(s,s.resolveModuleNameLiterals),p.resolveTypeReferenceDirectiveReferences=ta(s,s.resolveTypeReferenceDirectiveReferences),p.resolveLibrary=ta(s,s.resolveLibrary),p.resolveModuleNames=ta(s,s.resolveModuleNames),p.resolveTypeReferenceDirectives=ta(s,s.resolveTypeReferenceDirectives),p.getModuleResolutionCache=ta(s,s.getModuleResolutionCache);let h,m;!p.resolveModuleNameLiterals&&!p.resolveModuleNames&&(h=HR(p.getCurrentDirectory(),p.getCanonicalFileName),p.resolveModuleNameLiterals=(D,w,j,K,Y)=>Mw(D,w,j,K,Y,s,h,dJ),p.getModuleResolutionCache=()=>h),!p.resolveTypeReferenceDirectiveReferences&&!p.resolveTypeReferenceDirectives&&(m=b3(p.getCurrentDirectory(),p.getCanonicalFileName,void 0,h?.getPackageJsonInfoCache(),h?.optionsToRedirectsKey),p.resolveTypeReferenceDirectiveReferences=(D,w,j,K,Y)=>Mw(D,w,j,K,Y,s,m,tz));let y;p.resolveLibrary||(y=HR(p.getCurrentDirectory(),p.getCanonicalFileName,void 0,h?.getPackageJsonInfoCache()),p.resolveLibrary=(D,w,j)=>E3(D,w,j,s,y)),p.getBuildInfo=(D,w)=>q1e(N,D,w_(N,w),void 0);let{watchFile:E,watchDirectory:S,writeLog:A}=BJ(l,i),N={host:s,hostWithWatch:l,parseConfigFileHost:az(s),write:ta(s,s.trace),options:i,baseCompilerOptions:d,rootNames:r,baseWatchOptions:o,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:p,moduleResolutionCache:h,typeReferenceDirectiveResolutionCache:m,libraryResolutionCache:y,buildOrder:void 0,readFileWithCache:D=>s.readFile(D),projectCompilerOptions:d,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,watch:e,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:E,watchDirectory:S,writeLog:A};return N}function Df(e,t){return tl(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function w_(e,t){let{resolvedConfigFilePaths:r}=e,i=r.get(t);if(i!==void 0)return i;let o=Df(e,t);return r.set(t,o),o}function w1e(e){return!!e.options}function aje(e,t){let r=e.configFileCache.get(t);return r&&w1e(r)?r:void 0}function g1(e,t,r){let{configFileCache:i}=e,o=i.get(r);if(o)return w1e(o)?o:void 0;el("SolutionBuilder::beforeConfigFileParsing");let s,{parseConfigFileHost:l,baseCompilerOptions:d,baseWatchOptions:p,extendedConfigCache:h,host:m}=e,y;return m.getParsedCommandLine?(y=m.getParsedCommandLine(t),y||(s=jl(f.File_0_not_found,t))):(l.onUnRecoverableConfigFileDiagnostic=E=>s=E,y=Qk(t,d,l,h,p),l.onUnRecoverableConfigFileDiagnostic=qa),i.set(r,y||s),el("SolutionBuilder::afterConfigFileParsing"),Xp("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),y}function jP(e,t){return UJ(Av(e.compilerHost.getCurrentDirectory(),t))}function O1e(e,t){let r=new Map,i=new Map,o=[],s,l;for(let p of t)d(p);return l?{buildOrder:s||Xe,circularDiagnostics:l}:s||Xe;function d(p,h){let m=w_(e,p);if(i.has(m))return;if(r.has(m)){h||(l||(l=[])).push(jl(f.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,o.join(`\r -`)));return}r.set(m,!0),o.push(p);let y=g1(e,p,m);if(y&&y.projectReferences)for(let E of y.projectReferences){let S=jP(e,E.path);d(S,h||E.circular)}o.pop(),i.set(m,!0),(s||(s=[])).push(p)}}function Sz(e){return e.buildOrder||sje(e)}function sje(e){let t=O1e(e,e.rootNames.map(o=>jP(e,o)));e.resolvedConfigFilePaths.clear();let r=new Set(Ez(t).map(o=>w_(e,o))),i={onDeleteValue:qa};return eg(e.configFileCache,r,i),eg(e.projectStatus,r,i),eg(e.builderPrograms,r,i),eg(e.diagnostics,r,i),eg(e.projectPendingBuild,r,i),eg(e.projectErrorsReported,r,i),eg(e.buildInfoCache,r,i),eg(e.outputTimeStamps,r,i),eg(e.lastCachedPackageJsonLookups,r,i),e.watch&&(eg(e.allWatchedConfigFiles,r,{onDeleteValue:Hm}),e.allWatchedExtendedConfigFiles.forEach(o=>{o.projects.forEach(s=>{r.has(s)||o.projects.delete(s)}),o.close()}),eg(e.allWatchedWildcardDirectories,r,{onDeleteValue:o=>o.forEach(Rf)}),eg(e.allWatchedInputFiles,r,{onDeleteValue:o=>o.forEach(Hm)}),eg(e.allWatchedPackageJsonFiles,r,{onDeleteValue:o=>o.forEach(Hm)})),e.buildOrder=t}function W1e(e,t,r){let i=t&&jP(e,t),o=Sz(e);if(h1(o))return o;if(i){let l=w_(e,i);if(Kl(o,p=>w_(e,p)===l)===-1)return}let s=i?O1e(e,[i]):o;return x.assert(!h1(s)),x.assert(!r||i!==void 0),x.assert(!r||s[s.length-1]===i),r?s.slice(0,s.length-1):s}function F1e(e){e.cache&&Ace(e);let{compilerHost:t,host:r}=e,i=e.readFileWithCache,o=t.getSourceFile,{originalReadFile:s,originalFileExists:l,originalDirectoryExists:d,originalCreateDirectory:p,originalWriteFile:h,getSourceFileWithCache:m,readFileWithCache:y}=Nw(r,E=>Df(e,E),(...E)=>o.call(t,...E));e.readFileWithCache=y,t.getSourceFile=m,e.cache={originalReadFile:s,originalFileExists:l,originalDirectoryExists:d,originalCreateDirectory:p,originalWriteFile:h,originalReadFileWithCache:i,originalGetSourceFile:o}}function Ace(e){if(!e.cache)return;let{cache:t,host:r,compilerHost:i,extendedConfigCache:o,moduleResolutionCache:s,typeReferenceDirectiveResolutionCache:l,libraryResolutionCache:d}=e;r.readFile=t.originalReadFile,r.fileExists=t.originalFileExists,r.directoryExists=t.originalDirectoryExists,r.createDirectory=t.originalCreateDirectory,r.writeFile=t.originalWriteFile,i.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,o.clear(),s?.clear(),l?.clear(),d?.clear(),e.cache=void 0}function z1e(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function B1e({projectPendingBuild:e},t,r){let i=e.get(t);(i===void 0||ie.projectPendingBuild.set(w_(e,i),0)),t&&t.throwIfCancellationRequested()}function V1e(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function lje(e,t,r,i,o){let s=!0;return{kind:2,project:t,projectPath:r,buildOrder:o,getCompilerOptions:()=>i.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{Y1e(e,i,r),s=!1},done:()=>(s&&Y1e(e,i,r),el("SolutionBuilder::Timestamps only updates"),V1e(e,r))}}function j1e(e,t,r,i,o,s,l){let d=e===0?0:4,p,h,m;return e===0?{kind:e,project:r,projectPath:i,buildOrder:l,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>E(Qs),getProgram:()=>E(z=>z.getProgramOrUndefined()),getSourceFile:z=>E(Z=>Z.getSourceFile(z)),getSourceFiles:()=>S(z=>z.getSourceFiles()),getOptionsDiagnostics:z=>S(Z=>Z.getOptionsDiagnostics(z)),getGlobalDiagnostics:z=>S(Z=>Z.getGlobalDiagnostics(z)),getConfigFileParsingDiagnostics:()=>S(z=>z.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(z,Z)=>S(me=>me.getSyntacticDiagnostics(z,Z)),getAllDependencies:z=>S(Z=>Z.getAllDependencies(z)),getSemanticDiagnostics:(z,Z)=>S(me=>me.getSemanticDiagnostics(z,Z)),getSemanticDiagnosticsOfNextAffectedFile:(z,Z)=>E(me=>me.getSemanticDiagnosticsOfNextAffectedFile&&me.getSemanticDiagnosticsOfNextAffectedFile(z,Z)),emit:(z,Z,me,ge,q)=>{if(z||ge)return E(J=>{var re,pe;return J.emit(z,Z,me,ge,q||((pe=(re=t.host).getCustomTransformers)==null?void 0:pe.call(re,r)))});if(ce(2,me),d===5)return K(Z,me);if(d===3)return j(Z,me,q)},done:y}:{kind:e,project:r,projectPath:i,buildOrder:l,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),emit:(z,Z)=>d!==4?m:B(z,Z),done:y};function y(z,Z,me){return ce(8,z,Z,me),el(e===0?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),V1e(t,i)}function E(z){return ce(0),p&&z(p)}function S(z){return E(z)||Xe}function A(){var z,Z,me;if(x.assert(p===void 0),t.options.dry){Au(t,f.A_non_dry_build_would_build_project_0,r),h=1,d=7;return}if(t.options.verbose&&Au(t,f.Building_project_0,r),s.fileNames.length===0){UP(t,i,KT(s)),h=0,d=7;return}let{host:ge,compilerHost:q}=t;if(t.projectCompilerOptions=s.options,(z=t.moduleResolutionCache)==null||z.update(s.options),(Z=t.typeReferenceDirectiveResolutionCache)==null||Z.update(s.options),p=ge.createProgram(s.fileNames,s.options,q,dje(t,i,s),KT(s),s.projectReferences),t.watch){let J=(me=t.moduleResolutionCache)==null?void 0:me.getPackageJsonInfoCache().getInternalMap();t.lastCachedPackageJsonLookups.set(i,J&&new Set(Wo(J.values(),re=>t.host.realpath&&(v3(re)||re.directoryExists)?t.host.realpath(Yr(re.packageDirectory,"package.json")):Yr(re.packageDirectory,"package.json")))),t.builderPrograms.set(i,p)}d++}function N(z,Z,me){z.length?{buildResult:h,step:d}=Rce(t,i,p,s,z,Z,me):d++}function D(z){x.assertIsDefined(p),N([...p.getConfigFileParsingDiagnostics(),...p.getOptionsDiagnostics(z),...p.getGlobalDiagnostics(z),...p.getSyntacticDiagnostics(void 0,z)],8,"Syntactic")}function w(z){N(x.checkDefined(p).getSemanticDiagnostics(void 0,z),16,"Semantic")}function j(z,Z,me){var ge,q,J;x.assertIsDefined(p),x.assert(d===3);let re=p.saveEmitState(),pe,xe=ze=>(pe||(pe=[])).push(ze),fe=[],{emitResult:ne}=hz(p,xe,void 0,void 0,(ze,tt,Wt,_t,Je,pt)=>fe.push({name:ze,text:tt,writeByteOrderMark:Wt,data:pt}),Z,!1,me||((q=(ge=t.host).getCustomTransformers)==null?void 0:q.call(ge,r)));if(pe)return p.restoreEmitState(re),{buildResult:h,step:d}=Rce(t,i,p,s,pe,32,"Declaration file"),{emitSkipped:!0,diagnostics:ne.diagnostics};let{host:he,compilerHost:Ce}=t,Ge=(J=p.hasChangedEmitSignature)!=null&&J.call(p)?0:2,ve=cR(),Ae=new Map,De=p.getCompilerOptions(),Le=eP(De),Et,be;return fe.forEach(({name:ze,text:tt,writeByteOrderMark:Wt,data:_t})=>{let Je=Df(t,ze);Ae.set(Df(t,ze),ze),_t?.buildInfo&&Cce(t,_t.buildInfo,i,De,Ge);let pt=_t?.differsOnlyInMap?fI(t.host,ze):void 0;xN(z?{writeFile:z}:Ce,ve,ze,tt,Wt),_t?.differsOnlyInMap?t.host.setModifiedTime(ze,pt):!Le&&t.watch&&(Et||(Et=Dce(t,i))).set(Je,be||(be=Ww(t.host)))}),Y(ve,Ae,fe.length?fe[0].name:qK(s,!he.useCaseSensitiveFileNames()),Ge),ne}function K(z,Z){x.assertIsDefined(p),x.assert(d===5);let me=p.emitBuildInfo((ge,q,J,re,pe,xe)=>{xe?.buildInfo&&Cce(t,xe.buildInfo,i,p.getCompilerOptions(),2),z?z(ge,q,J,re,pe,xe):t.compilerHost.writeFile(ge,q,J,re,pe,xe)},Z);return me.diagnostics.length&&(Az(t,me.diagnostics),t.diagnostics.set(i,[...t.diagnostics.get(i),...me.diagnostics]),h=64&h),me.emittedFiles&&t.write&&me.emittedFiles.forEach(ge=>K1e(t,s,ge)),xce(t,p,s),d=7,me}function Y(z,Z,me,ge){let q=z.getDiagnostics();return q.length?({buildResult:h,step:d}=Rce(t,i,p,s,q,64,"Emit"),q):(t.write&&Z.forEach(J=>K1e(t,s,J)),X1e(t,s,i,f.Updating_unchanged_output_timestamps_of_project_0,Z),t.diagnostics.delete(i),t.projectStatus.set(i,{type:1,oldestOutputFileName:me}),xce(t,p,s),d=7,h=ge,q)}function B(z,Z){var me,ge,q,J;if(x.assert(e===1),t.options.dry){Au(t,f.A_non_dry_build_would_update_output_of_project_0,r),h=1,d=7;return}t.options.verbose&&Au(t,f.Updating_output_of_project_0,r);let{compilerHost:re}=t;t.projectCompilerOptions=s.options,(ge=(me=t.host).beforeEmitBundle)==null||ge.call(me,s);let pe=Wle(s,re,Ge=>{let ve=jP(t,Ge.path);return g1(t,ve,w_(t,ve))},Z||((J=(q=t.host).getCustomTransformers)==null?void 0:J.call(q,r)));if(No(pe))return Au(t,f.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,r,ld(t,pe)),d=6,m=j1e(0,t,r,i,o,s,l);x.assert(!!pe.length);let xe=cR(),fe=new Map,ne=2,he=t.buildInfoCache.get(i).buildInfo||void 0;return pe.forEach(({name:Ge,text:ve,writeByteOrderMark:Ae,data:De})=>{var Le,Et;fe.set(Df(t,Ge),Ge),De?.buildInfo&&(((Le=De.buildInfo.program)==null?void 0:Le.outSignature)!==((Et=he?.program)==null?void 0:Et.outSignature)&&(ne&=-3),Cce(t,De.buildInfo,i,s.options,ne)),xN(z?{writeFile:z}:re,xe,Ge,ve,Ae)}),{emitSkipped:!1,diagnostics:Y(xe,fe,pe[0].name,ne)}}function ce(z,Z,me,ge){for(;d<=z&&d<8;){let q=d;switch(d){case 0:A();break;case 1:D(Z);break;case 2:w(Z);break;case 3:j(me,Z,ge);break;case 5:K(me,Z);break;case 4:B(me,ge);break;case 6:x.checkDefined(m).done(Z,me,ge),d=8;break;case 7:mje(t,r,i,o,s,l,x.checkDefined(h)),d++;break;case 8:default:}x.assert(d>q)}}}function cje({options:e},t,r){return t.type!==3||e.force?!0:r.fileNames.length===0||!!KT(r).length||!eP(r.options)}function U1e(e,t,r){if(!e.projectPendingBuild.size||h1(t))return;let{options:i,projectPendingBuild:o}=e;for(let s=0;s{let S=x.checkDefined(e.filesWatched.get(d));x.assert(KJ(S)),S.modifiedTime=E,S.callbacks.forEach(A=>A(m,y,E))},i,o,s,l);e.filesWatched.set(d,{callbacks:[r],watcher:h,modifiedTime:p})}return{close:()=>{let h=x.checkDefined(e.filesWatched.get(d));x.assert(KJ(h)),h.callbacks.length===1?(e.filesWatched.delete(d),Rf(h)):uI(h.callbacks,r)}}}function Dce(e,t){if(!e.watch)return;let r=e.outputTimeStamps.get(t);return r||e.outputTimeStamps.set(t,r=new Map),r}function Cce(e,t,r,i,o){let s=Vy(i),l=Nce(e,s,r),d=Ww(e.host);l?(l.buildInfo=t,l.modifiedTime=d,o&2||(l.latestChangedDtsTime=d)):e.buildInfoCache.set(r,{path:Df(e,s),buildInfo:t,modifiedTime:d,latestChangedDtsTime:o&2?void 0:d})}function Nce(e,t,r){let i=Df(e,t),o=e.buildInfoCache.get(r);return o?.path===i?o:void 0}function q1e(e,t,r,i){let o=Df(e,t),s=e.buildInfoCache.get(r);if(s!==void 0&&s.path===o)return s.buildInfo||void 0;let l=e.readFileWithCache(t),d=l?X3(t,l):void 0;return e.buildInfoCache.set(r,{path:o,buildInfo:d||!1,modifiedTime:i||Mp}),d}function Pce(e,t,r,i){let o=J1e(e,t);if(rD&&(N=q,D=J),S&&j.add(Df(e,q))}if(S){A||(A=IJ(S,h,p));for(let q of A.roots)if(!j.has(q))return{type:10,buildInfoFile:h,inputFile:q}}if(!h){let q=J3(t,!p.useCaseSensitiveFileNames()),J=Dce(e,r);for(let re of q){let pe=Df(e,re),xe=J?.get(pe);if(xe||(xe=fI(e.host,re),J?.set(pe,xe)),xe===Mp)return{type:4,missingOutputFileName:re};if(xePce(e,q,y,m));if(Z)return Z;let me=e.lastCachedPackageJsonLookups.get(r),ge=me&&dh(me,q=>Pce(e,q,y,m));return ge||(B&&Y?{type:3,outOfDateOutputFileName:m,newerProjectName:ce}:{type:Y?2:w?15:1,newestInputFileTime:D,newestInputFileName:N,oldestOutputFileName:m})}function pje(e,t,r){return e.buildInfoCache.get(r).path===t.path}function Mce(e,t,r){if(t===void 0)return{type:0,reason:"File deleted mid-build"};let i=e.projectStatus.get(r);if(i!==void 0)return i;el("SolutionBuilder::beforeUpToDateCheck");let o=uje(e,t,r);return el("SolutionBuilder::afterUpToDateCheck"),Xp("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(r,o),o}function X1e(e,t,r,i,o){if(t.options.noEmit)return;let s,l=Vy(t.options);if(l){o?.has(Df(e,l))||(e.options.verbose&&Au(e,i,t.options.configFilePath),e.host.setModifiedTime(l,s=Ww(e.host)),Nce(e,l,r).modifiedTime=s),e.outputTimeStamps.delete(r);return}let{host:d}=e,p=J3(t,!d.useCaseSensitiveFileNames()),h=Dce(e,r),m=h?new Set:void 0;if(!o||p.length!==o.size){let y=!!e.options.verbose;for(let E of p){let S=Df(e,E);o?.has(S)||(y&&(y=!1,Au(e,i,t.options.configFilePath)),d.setModifiedTime(E,s||(s=Ww(e.host))),h&&(h.set(S,s),m.add(S)))}}h?.forEach((y,E)=>{!o?.has(E)&&!m.has(E)&&h.delete(E)})}function fje(e,t,r){if(!t.composite)return;let i=x.checkDefined(e.buildInfoCache.get(r));if(i.latestChangedDtsTime!==void 0)return i.latestChangedDtsTime||void 0;let o=i.buildInfo&&i.buildInfo.program&&i.buildInfo.program.latestChangedDtsFile?e.host.getModifiedTime(ho(i.buildInfo.program.latestChangedDtsFile,oi(i.path))):void 0;return i.latestChangedDtsTime=o||!1,o}function Y1e(e,t,r){if(e.options.dry)return Au(e,f.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);X1e(e,t,r,f.Updating_output_timestamps_of_project_0),e.projectStatus.set(r,{type:1,oldestOutputFileName:qK(t,!e.host.useCaseSensitiveFileNames())})}function mje(e,t,r,i,o,s,l){if(!(l&124)&&o.options.composite)for(let d=i+1;de.diagnostics.has(w_(e,h)))?p?2:1:0}function Q1e(e,t,r){el("SolutionBuilder::beforeClean");let i=hje(e,t,r);return el("SolutionBuilder::afterClean"),Xp("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),i}function hje(e,t,r){let i=W1e(e,t,r);if(!i)return 3;if(h1(i))return Az(e,i.circularDiagnostics),4;let{options:o,host:s}=e,l=o.dry?[]:void 0;for(let d of i){let p=w_(e,d),h=g1(e,d,p);if(h===void 0){ixe(e,p);continue}let m=J3(h,!s.useCaseSensitiveFileNames());if(!m.length)continue;let y=new Set(h.fileNames.map(E=>Df(e,E)));for(let E of m)y.has(Df(e,E))||s.fileExists(E)&&(l?l.push(E):(s.deleteFile(E),Lce(e,p,0)))}return l&&Au(e,f.A_non_dry_build_would_delete_the_following_files_Colon_0,l.map(d=>`\r - * ${d}`).join("")),0}function Lce(e,t,r){e.host.getParsedCommandLine&&r===1&&(r=2),r===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,z1e(e,t),B1e(e,t,r),F1e(e)}function Tz(e,t,r){e.reportFileChangeDetected=!0,Lce(e,t,r),Z1e(e,250,!0)}function Z1e(e,t,r){let{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout(gje,t,"timerToBuildInvalidatedProject",e,r))}function gje(e,t,r){el("SolutionBuilder::beforeBuild");let i=yje(t,r);el("SolutionBuilder::afterBuild"),Xp("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),i&&oxe(t,i)}function yje(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),Oce(e,f.File_change_detected_Starting_incremental_compilation));let r=0,i=Sz(e),o=Ice(e,i,!1);if(o)for(o.done(),r++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;let s=U1e(e,i,!1);if(!s)break;if(s.kind!==2&&(t||r===5)){Z1e(e,100,!1);return}H1e(e,s,i).done(),s.kind!==2&&r++}return Ace(e),i}function exe(e,t,r,i){!e.watch||e.allWatchedConfigFiles.has(r)||e.allWatchedConfigFiles.set(r,JJ(e,t,()=>Tz(e,r,2),2e3,i?.watchOptions,kc.ConfigFile,t))}function txe(e,t,r){Q3(t,r?.options,e.allWatchedExtendedConfigFiles,(i,o)=>JJ(e,i,()=>{var s;return(s=e.allWatchedExtendedConfigFiles.get(o))==null?void 0:s.projects.forEach(l=>Tz(e,l,2))},2e3,r?.watchOptions,kc.ExtendedConfigFile),i=>Df(e,i))}function nxe(e,t,r,i){e.watch&&Rw(Sce(e.allWatchedWildcardDirectories,r),i.wildcardDirectories,(o,s)=>e.watchDirectory(o,l=>{var d;Dw({watchedDirPath:Df(e,o),fileOrDirectory:l,fileOrDirectoryPath:Df(e,l),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:i.options,program:e.builderPrograms.get(r)||((d=aje(e,r))==null?void 0:d.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:p=>e.writeLog(p),toPath:p=>Df(e,p)})||Tz(e,r,1)},s,i?.watchOptions,kc.WildcardDirectory,t))}function kce(e,t,r,i){e.watch&&WN(Sce(e.allWatchedInputFiles,r),new Set(i.fileNames),{createNewValue:o=>JJ(e,o,()=>Tz(e,r,0),250,i?.watchOptions,kc.SourceFile,t),onDeleteValue:Hm})}function wce(e,t,r,i){!e.watch||!e.lastCachedPackageJsonLookups||WN(Sce(e.allWatchedPackageJsonFiles,r),e.lastCachedPackageJsonLookups.get(r),{createNewValue:o=>JJ(e,o,()=>Tz(e,r,0),2e3,i?.watchOptions,kc.PackageJson,t),onDeleteValue:Hm})}function vje(e,t){if(e.watchAllProjectsPending){el("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(let r of Ez(t)){let i=w_(e,r),o=g1(e,r,i);exe(e,r,i,o),txe(e,i,o),o&&(nxe(e,r,i,o),kce(e,r,i,o),wce(e,r,i,o))}el("SolutionBuilder::afterWatcherCreation"),Xp("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function bje(e){$u(e.allWatchedConfigFiles,Hm),$u(e.allWatchedExtendedConfigFiles,Rf),$u(e.allWatchedWildcardDirectories,t=>$u(t,Rf)),$u(e.allWatchedInputFiles,t=>$u(t,Hm)),$u(e.allWatchedPackageJsonFiles,t=>$u(t,Hm))}function rxe(e,t,r,i,o){let s=oje(e,t,r,i,o);return{build:(l,d,p,h)=>$1e(s,l,d,p,h),clean:l=>Q1e(s,l),buildReferences:(l,d,p,h)=>$1e(s,l,d,p,h,!0),cleanReferences:l=>Q1e(s,l,!0),getNextInvalidatedProject:l=>(G1e(s,l),Ice(s,Sz(s),!1)),getBuildOrder:()=>Sz(s),getUpToDateStatusOfProject:l=>{let d=jP(s,l),p=w_(s,d);return Mce(s,g1(s,d,p),p)},invalidateProject:(l,d)=>Lce(s,l,d||0),close:()=>bje(s)}}function ld(e,t){return JC(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function Au(e,t,...r){e.host.reportSolutionBuilderStatus(jl(t,...r))}function Oce(e,t,...r){var i,o;(o=(i=e.hostWithWatch).onWatchStatusChange)==null||o.call(i,jl(t,...r),e.host.getNewLine(),e.baseCompilerOptions)}function Az({host:e},t){t.forEach(r=>e.reportDiagnostic(r))}function UP(e,t,r){Az(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function ixe(e,t){UP(e,t,[e.configFileCache.get(t)])}function oxe(e,t){if(!e.needsSummary)return;e.needsSummary=!1;let r=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e,o=0,s=[];h1(t)?(axe(e,t.buildOrder),Az(e,t.circularDiagnostics),r&&(o+=mz(t.circularDiagnostics)),r&&(s=[...s,..._z(t.circularDiagnostics)])):(t.forEach(l=>{let d=w_(e,l);e.projectErrorsReported.has(d)||Az(e,i.get(d)||Xe)}),r&&i.forEach(l=>o+=mz(l)),r&&i.forEach(l=>[...s,..._z(l)])),e.watch?Oce(e,MJ(o),o):e.host.reportErrorSummary&&e.host.reportErrorSummary(o,s)}function axe(e,t){e.options.verbose&&Au(e,f.Projects_in_this_build_Colon_0,t.map(r=>`\r - * `+ld(e,r)).join(""))}function Eje(e,t,r){switch(r.type){case 6:return Au(e,f.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,ld(e,t),ld(e,r.outOfDateOutputFileName),ld(e,r.newerInputFileName));case 7:return Au(e,f.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,ld(e,t),ld(e,r.outOfDateOutputFileName),ld(e,r.newerProjectName));case 4:return Au(e,f.Project_0_is_out_of_date_because_output_file_1_does_not_exist,ld(e,t),ld(e,r.missingOutputFileName));case 5:return Au(e,f.Project_0_is_out_of_date_because_there_was_error_reading_file_1,ld(e,t),ld(e,r.fileName));case 8:return Au(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,ld(e,t),ld(e,r.buildInfoFile));case 9:return Au(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,ld(e,t),ld(e,r.buildInfoFile));case 10:return Au(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,ld(e,t),ld(e,r.buildInfoFile),ld(e,r.inputFile));case 1:if(r.newestInputFileTime!==void 0)return Au(e,f.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,ld(e,t),ld(e,r.newestInputFileName||""),ld(e,r.oldestOutputFileName||""));break;case 3:return Au(e,f.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,ld(e,t),ld(e,r.newerProjectName));case 2:return Au(e,f.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,ld(e,t));case 15:return Au(e,f.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,ld(e,t));case 11:return Au(e,f.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,ld(e,t),ld(e,r.upstreamProjectName));case 12:return Au(e,r.upstreamProjectBlocked?f.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:f.Project_0_can_t_be_built_because_its_dependency_1_has_errors,ld(e,t),ld(e,r.upstreamProjectName));case 0:return Au(e,f.Failed_to_parse_file_0_Colon_1,ld(e,t),r.reason);case 14:return Au(e,f.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,ld(e,t),r.version,Jp);case 17:return Au(e,f.Project_0_is_being_forcibly_rebuilt,ld(e,t));case 16:case 13:break;default:}}function qJ(e,t,r){e.options.verbose&&Eje(e,t,r)}var sxe,lxe,XJ,Sje=bt({"src/compiler/tsbuildPublic.ts"(){"use strict";ea(),nT(),sxe=new Date(-864e13),lxe=new Date(864e13),XJ=(e=>(e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",e))(XJ||{})}}),ea=bt({"src/compiler/_namespaces/ts.ts"(){"use strict";Aze(),Lze(),kze(),Uze(),Jze(),qze(),o7e(),CEe(),m7e(),v7e(),b7e(),I7e(),P7e(),CBe(),NBe(),PBe(),MBe(),zBe(),BBe(),GBe(),VBe(),_5e(),h5e(),x5e(),U5e(),hGe(),SGe(),TGe(),WGe(),jGe(),$Ge(),i9e(),g9e(),y9e(),R9e(),D9e(),C9e(),O9e(),W9e(),F9e(),z9e(),B9e(),G9e(),V9e(),j9e(),U9e(),J9e(),q9e(),X9e(),Y9e(),$9e(),Z9e(),eVe(),tVe(),nVe(),rVe(),iVe(),dVe(),hVe(),xVe(),DVe(),MVe(),LVe(),kVe(),JVe(),qVe(),$Ve(),eje(),tje(),nje(),Sje(),zse(),nT()}});function cxe(e){return hd.args.includes(e)}function dxe(e){let t=hd.args.indexOf(e);return t>=0&&t{e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})($J||($J={})),Wce=` - `}}),Aje=bt({"src/jsTyping/types.ts"(){"use strict"}}),Dz=bt({"src/jsTyping/_namespaces/ts.server.ts"(){"use strict";Tje(),Aje()}});function pxe(e,t){return new fm(_W(t,`ts${g_}`)||_W(t,"latest")).compareTo(e.version)<=0}function fxe(e){return Vce.has(e)?"node":e}function Ije(e,t){let r=Zk(t,i=>e.readFile(i));return new Map(Object.entries(r.config))}function xje(e,t){var r;let i=Zk(t,o=>e.readFile(o));if((r=i.config)!=null&&r.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function Rje(e,t,r,i,o,s,l,d,p,h){if(!l||!l.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};let m=new Map;r=to(r,Y=>{let B=ma(Y);if(O0(B))return B});let y=[];l.include&&w(l.include,"Explicitly included types");let E=l.exclude||[];if(!h.types){let Y=new Set(r.map(oi));Y.add(i),Y.forEach(B=>{j(B,"bower.json","bower_components",y),j(B,"package.json","node_modules",y)})}if(l.disableFilenameBasedTypeAcquisition||K(r),d){let Y=m0(d.map(fxe),eT,Vd);w(Y,"Inferred typings from unresolved imports")}for(let Y of E)m.delete(Y)&&t&&t(`Typing for ${Y} is in exclude list, will be ignored.`);s.forEach((Y,B)=>{let ce=p.get(B);m.get(B)===!1&&ce!==void 0&&pxe(Y,ce)&&m.set(B,Y.typingLocation)});let S=[],A=[];m.forEach((Y,B)=>{Y?A.push(Y):S.push(B)});let N={cachedTypingPaths:A,newTypingNames:S,filesToWatch:y};return t&&t(`Finished typings discovery:${xE(N)}`),N;function D(Y){m.has(Y)||m.set(Y,!1)}function w(Y,B){t&&t(`${B}: ${JSON.stringify(Y)}`),gn(Y,D)}function j(Y,B,ce,z){let Z=Yr(Y,B),me,ge;e.fileExists(Z)&&(z.push(Z),me=Zk(Z,pe=>e.readFile(pe)).config,ge=va([me.dependencies,me.devDependencies,me.optionalDependencies,me.peerDependencies],Vh),w(ge,`Typing names in '${Z}' dependencies`));let q=Yr(Y,ce);if(z.push(q),!e.directoryExists(q))return;let J=[],re=ge?ge.map(pe=>Yr(q,pe,B)):e.readDirectory(q,[".json"],void 0,void 0,3).filter(pe=>{if(nc(pe)!==B)return!1;let xe=zc(ma(pe)),fe=xe[xe.length-3][0]==="@";return fe&&ih(xe[xe.length-4])===ce||!fe&&ih(xe[xe.length-3])===ce});t&&t(`Searching for typing names in ${q}; all files: ${JSON.stringify(re)}`);for(let pe of re){let xe=ma(pe),ne=Zk(xe,Ce=>e.readFile(Ce)).config;if(!ne.name)continue;let he=ne.types||ne.typings;if(he){let Ce=ho(he,oi(xe));e.fileExists(Ce)?(t&&t(` Package '${ne.name}' provides its own types.`),m.set(ne.name,Ce)):t&&t(` Package '${ne.name}' provides its own types but they are missing.`)}else J.push(ne.name)}w(J," Found package names")}function K(Y){let B=to(Y,z=>{if(!O0(z))return;let Z=Eu(ih(nc(z))),me=UG(Z);return o.get(me)});B.length&&w(B,"Inferred typings from file names"),gt(Y,z=>Sl(z,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),D("react"))}}function Dje(e){return Fce(e,!0)}function Fce(e,t){if(!e)return 1;if(e.length>Uce)return 2;if(e.charCodeAt(0)===46)return 3;if(e.charCodeAt(0)===95)return 4;if(t){let r=/^@([^/]+)\/([^/]+)$/.exec(e);if(r){let i=Fce(r[1],!1);if(i!==0)return{name:r[1],isScopeName:!0,result:i};let o=Fce(r[2],!1);return o!==0?{name:r[2],isScopeName:!1,result:o}:0}}return encodeURIComponent(e)!==e?5:0}function Cje(e,t){return typeof e=="object"?mxe(t,e.result,e.name,e.isScopeName):mxe(t,e,t,!1)}function mxe(e,t,r,i){let o=i?"Scope":"Package";switch(t){case 1:return`'${e}':: ${o} name '${r}' cannot be empty`;case 2:return`'${e}':: ${o} name '${r}' should be less than ${Uce} characters`;case 3:return`'${e}':: ${o} name '${r}' cannot start with '.'`;case 4:return`'${e}':: ${o} name '${r}' cannot start with '_'`;case 5:return`'${e}':: ${o} name '${r}' contains non URI safe characters`;case 0:return x.fail();default:x.assertNever(t)}}var zce,Bce,Gce,Vce,jce,Uce,Nje=bt({"src/jsTyping/jsTyping.ts"(){"use strict";Gw(),Dz(),zce=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","https","http2","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","string_decoder","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],Bce=zce.map(e=>`node:${e}`),Gce=[...zce,...Bce],Vce=new Set(Gce),jce=(e=>(e[e.Ok=0]="Ok",e[e.EmptyName=1]="EmptyName",e[e.NameTooLong=2]="NameTooLong",e[e.NameStartsWithDot=3]="NameStartsWithDot",e[e.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",e))(jce||{}),Uce=214}}),O_={};xa(O_,{NameValidationResult:()=>jce,discoverTypings:()=>Rje,isTypingUpToDate:()=>pxe,loadSafeList:()=>Ije,loadTypesMap:()=>xje,nodeCoreModuleList:()=>Gce,nodeCoreModules:()=>Vce,nonRelativeModuleNameForTypingCache:()=>fxe,prefixedNodeCoreModuleList:()=>Bce,renderPackageNameValidationFailure:()=>Cje,validatePackageName:()=>Dje});var Pje=bt({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){"use strict";Nje()}}),Gw=bt({"src/jsTyping/_namespaces/ts.ts"(){"use strict";ea(),Pje(),Dz()}});function Cz(e){return{indentSize:4,tabSize:4,newLineCharacter:e||` -`,convertTabsToSpaces:!0,indentStyle:2,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:"ignore",trimTrailingWhitespace:!0,indentSwitchCase:!0}}var Nz,QJ,ZJ,eq,Cf,tq,nq,rq,iq,oq,aq,sq,Hce,Vw,lq,cq,dq,uq,pq,fq,mq,_q,hq,Mje=bt({"src/services/types.ts"(){"use strict";(e=>{class t{constructor(o){this.text=o}getText(o,s){return o===0&&s===this.text.length?this.text:this.text.substring(o,s)}getLength(){return this.text.length}getChangeRange(){}}function r(i){return new t(i)}e.fromString=r})(Nz||(Nz={})),QJ=(e=>(e[e.Dependencies=1]="Dependencies",e[e.DevDependencies=2]="DevDependencies",e[e.PeerDependencies=4]="PeerDependencies",e[e.OptionalDependencies=8]="OptionalDependencies",e[e.All=15]="All",e))(QJ||{}),ZJ=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(ZJ||{}),eq=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(eq||{}),Cf={},tq=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(tq||{}),nq=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(nq||{}),rq=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(rq||{}),iq=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(iq||{}),oq=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(oq||{}),aq=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(aq||{}),sq=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(sq||{}),Hce=Cz(` -`),Vw=(e=>(e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral",e[e.link=22]="link",e[e.linkName=23]="linkName",e[e.linkText=24]="linkText",e))(Vw||{}),lq=(e=>(e[e.None=0]="None",e[e.MayIncludeAutoImports=1]="MayIncludeAutoImports",e[e.IsImportStatementCompletion=2]="IsImportStatementCompletion",e[e.IsContinuation=4]="IsContinuation",e[e.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",e[e.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",e[e.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",e))(lq||{}),cq=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(cq||{}),dq=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(dq||{}),uq=(e=>(e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",e))(uq||{}),pq=(e=>(e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.BigIntLiteral=7]="BigIntLiteral",e[e.StringLiteral=8]="StringLiteral",e[e.RegExpLiteral=9]="RegExpLiteral",e))(pq||{}),fq=(e=>(e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.variableUsingElement="using",e.variableAwaitUsingElement="await using",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.memberAccessorVariableElement="accessor",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string",e.link="link",e.linkName="link name",e.linkText="link text",e))(fq||{}),mq=(e=>(e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional",e.deprecatedModifier="deprecated",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json",e.dmtsModifier=".d.mts",e.mtsModifier=".mts",e.mjsModifier=".mjs",e.dctsModifier=".d.cts",e.ctsModifier=".cts",e.cjsModifier=".cjs",e))(mq||{}),_q=(e=>(e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.bigintLiteral="bigint",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value",e))(_q||{}),hq=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral",e))(hq||{})}});function jw(e){switch(e.kind){case 260:return ir(e)&&bV(e)?7:1;case 169:case 208:case 172:case 171:case 303:case 304:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 299:case 291:return 1;case 168:case 264:case 265:case 187:return 2;case 353:return e.name===void 0?3:2;case 306:case 263:return 3;case 267:return Md(e)||Vg(e)===1?5:4;case 266:case 275:case 276:case 271:case 272:case 277:case 278:return 7;case 312:return 5}return 7}function qT(e){e=Cq(e);let t=e.parent;return e.kind===312?1:Ll(t)||Kd(t)||vh(t)||Qu(t)||gh(t)||td(t)&&e===t.name?7:Pz(e)?Lje(e):kg(e)?jw(t):Xu(e)&&Fn(e,jm(_P,SI,gE))?7:Wje(e)?2:kje(e)?4:fl(t)?(x.assert(nm(t.parent)),2):Kv(t)?3:1}function Lje(e){let t=e.kind===166?e:Su(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&t.parent.kind===271?7:4}function Pz(e){for(;e.parent.kind===166;)e=e.parent;return Qx(e.parent)&&e.parent.moduleReference===e}function kje(e){return wje(e)||Oje(e)}function wje(e){let t=e,r=!0;if(t.parent.kind===166){for(;t.parent&&t.parent.kind===166;)t=t.parent;r=t.right===e}return t.parent.kind===183&&!r}function Oje(e){let t=e,r=!0;if(t.parent.kind===211){for(;t.parent&&t.parent.kind===211;)t=t.parent;r=t.name===e}if(!r&&t.parent.kind===233&&t.parent.parent.kind===298){let i=t.parent.parent.parent;return i.kind===263&&t.parent.parent.token===119||i.kind===264&&t.parent.parent.token===96}return!1}function Wje(e){switch(MN(e)&&(e=e.parent),e.kind){case 110:return!Xh(e);case 197:return!0}switch(e.parent.kind){case 183:return!0;case 205:return!e.parent.isTypeOf;case 233:return qh(e.parent)}return!1}function gq(e,t=!1,r=!1){return Uw(e,ia,vq,t,r)}function JP(e,t=!1,r=!1){return Uw(e,j0,vq,t,r)}function yq(e,t=!1,r=!1){return Uw(e,v_,vq,t,r)}function Kce(e,t=!1,r=!1){return Uw(e,U0,Fje,t,r)}function Jce(e,t=!1,r=!1){return Uw(e,bd,vq,t,r)}function qce(e,t=!1,r=!1){return Uw(e,au,zje,t,r)}function vq(e){return e.expression}function Fje(e){return e.tag}function zje(e){return e.tagName}function Uw(e,t,r,i,o){let s=i?Xce(e):Mz(e);return o&&(s=Yl(s)),!!s&&!!s.parent&&t(s.parent)&&r(s.parent)===s}function Mz(e){return aD(e)?e.parent:e}function Xce(e){return aD(e)||Tq(e)?e.parent:e}function Lz(e,t){for(;e;){if(e.kind===256&&e.label.escapedText===t)return e.label;e=e.parent}}function Hw(e,t){return kr(e.expression)?e.expression.name.text===t:!1}function Kw(e){var t;return Fe(e)&&((t=ri(e.parent,nN))==null?void 0:t.label)===e}function bq(e){var t;return Fe(e)&&((t=ri(e.parent,H0))==null?void 0:t.label)===e}function Eq(e){return bq(e)||Kw(e)}function Sq(e){var t;return((t=ri(e.parent,Bx))==null?void 0:t.tagName)===e}function Yce(e){var t;return((t=ri(e.parent,Su))==null?void 0:t.right)===e}function aD(e){var t;return((t=ri(e.parent,kr))==null?void 0:t.name)===e}function Tq(e){var t;return((t=ri(e.parent,Js))==null?void 0:t.argumentExpression)===e}function Aq(e){var t;return((t=ri(e.parent,ql))==null?void 0:t.name)===e}function Iq(e){var t;return Fe(e)&&((t=ri(e.parent,$o))==null?void 0:t.name)===e}function kz(e){switch(e.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return Po(e.parent)===e;case 212:return e.parent.argumentExpression===e;case 167:return!0;case 201:return e.parent.parent.kind===199;default:return!1}}function $ce(e){return aE(e.parent.parent)&&hN(e.parent.parent)===e}function XT(e){for(qf(e)&&(e=e.parent.parent);;){if(e=e.parent,!e)return;switch(e.kind){case 312:case 174:case 173:case 262:case 218:case 177:case 178:case 263:case 264:case 266:case 267:return e}}}function oS(e){switch(e.kind){case 312:return oc(e)?"module":"script";case 267:return"module";case 263:case 231:return"class";case 264:return"interface";case 265:case 345:case 353:return"type";case 266:return"enum";case 260:return t(e);case 208:return t(A_(e));case 219:case 262:case 218:return"function";case 177:return"getter";case 178:return"setter";case 174:case 173:return"method";case 303:let{initializer:r}=e;return $o(r)?"method":"property";case 172:case 171:case 304:case 305:return"property";case 181:return"index";case 180:return"construct";case 179:return"call";case 176:case 175:return"constructor";case 168:return"type parameter";case 306:return"enum member";case 169:return $r(e,31)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:let i=zl(e),{right:o}=e;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:let l=oS(o);return l===""?"const":l;case 3:return Ps(o)?"method":"property";case 4:return"property";case 5:return Ps(o)?"method":"property";case 6:return"local class";default:return""}case 80:return gh(e.parent)?"alias":"";case 277:let s=oS(e.expression);return s===""?"const":s;default:return""}function t(r){return Kx(r)?"const":NF(r)?"let":"var"}}function sD(e){switch(e.kind){case 110:return!0;case 80:return Bj(e)&&e.parent.kind===169;default:return!1}}function rm(e,t){let r=Dg(t),i=t.getLineAndCharacterOfPosition(e).line;return r[i]}function rf(e,t){return xq(e.pos,e.end,t)}function Qce(e,t){return qw(e,t.pos)&&qw(e,t.end)}function Jw(e,t){return e.pos<=t&&t<=e.end}function qw(e,t){return e.pos=r.end}function Xw(e,t,r){return e.pos<=t&&e.end>=r}function qP(e,t,r){return Oz(e.pos,e.end,t,r)}function wz(e,t,r,i){return Oz(e.getStart(t),e.end,r,i)}function Oz(e,t,r,i){let o=Math.max(e,r),s=Math.min(t,i);return oi.kind===t)}function Wz(e){let t=Vr(e.parent.getChildren(),r=>OR(r)&&rf(r,e));return x.assert(!t||Bo(t.getChildren(),e)),t}function _xe(e){return e.kind===90}function Bje(e){return e.kind===86}function Gje(e){return e.kind===100}function Vje(e){if(iu(e))return e.name;if(Sc(e)){let t=e.modifiers&&Vr(e.modifiers,_xe);if(t)return t}if(Zc(e)){let t=Vr(e.getChildren(),Bje);if(t)return t}}function jje(e){if(iu(e))return e.name;if(Ec(e)){let t=Vr(e.modifiers,_xe);if(t)return t}if(Ps(e)){let t=Vr(e.getChildren(),Gje);if(t)return t}}function Uje(e){let t;return Fn(e,r=>(ji(r)&&(t=r),!Su(r.parent)&&!ji(r.parent)&&!lT(r.parent))),t}function Fz(e,t){if(e.flags&16777216)return;let r=r7(e,t);if(r)return r;let i=Uje(e);return i&&t.getTypeAtLocation(i)}function Hje(e,t){if(!t)switch(e.kind){case 263:case 231:return Vje(e);case 262:case 218:return jje(e);case 176:return e}if(iu(e))return e.name}function hxe(e,t){if(e.importClause){if(e.importClause.name&&e.importClause.namedBindings)return;if(e.importClause.name)return e.importClause.name;if(e.importClause.namedBindings){if(zg(e.importClause.namedBindings)){let r=nh(e.importClause.namedBindings.elements);return r?r.name:void 0}else if(Xv(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function gxe(e,t){if(e.exportClause){if(xf(e.exportClause))return nh(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(yh(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function Kje(e){if(e.types.length===1)return e.types[0].expression}function yxe(e,t){let{parent:r}=e;if(Sa(e)&&(t||e.kind!==90)?Am(r)&&Bo(r.modifiers,e):e.kind===86?Sc(r)||Zc(e):e.kind===100?Ec(r)||Ps(e):e.kind===120?pu(r):e.kind===94?hE(r):e.kind===156?Tm(r):e.kind===145||e.kind===144?ql(r):e.kind===102?td(r):e.kind===139?Qp(r):e.kind===153&&hp(r)){let i=Hje(r,t);if(i)return i}if((e.kind===115||e.kind===87||e.kind===121)&&Uc(r)&&r.declarations.length===1){let i=r.declarations[0];if(Fe(i.name))return i.name}if(e.kind===156){if(gh(r)&&r.isTypeOnly){let i=hxe(r.parent,t);if(i)return i}if(Xl(r)&&r.isTypeOnly){let i=gxe(r,t);if(i)return i}}if(e.kind===130){if(Qu(r)&&r.propertyName||Kd(r)&&r.propertyName||Xv(r)||yh(r))return r.name;if(Xl(r)&&r.exportClause&&yh(r.exportClause))return r.exportClause.name}if(e.kind===102&&Lc(r)){let i=hxe(r,t);if(i)return i}if(e.kind===95){if(Xl(r)){let i=gxe(r,t);if(i)return i}if(Ll(r))return Yl(r.expression)}if(e.kind===149&&vh(r))return r.expression;if(e.kind===161&&(Lc(r)||Xl(r))&&r.moduleSpecifier)return r.moduleSpecifier;if((e.kind===96||e.kind===119)&&Zp(r)&&r.token===e.kind){let i=Kje(r);if(i)return i}if(e.kind===96){if(fl(r)&&r.constraint&&If(r.constraint))return r.constraint.typeName;if(ZI(r)&&If(r.extendsType))return r.extendsType.typeName}if(e.kind===140&&CT(r))return r.typeParameter.name;if(e.kind===103&&fl(r)&&CR(r.parent))return r.name;if(e.kind===143&&PT(r)&&r.operator===143&&If(r.type))return r.type.typeName;if(e.kind===148&&PT(r)&&r.operator===148&&kk(r.type)&&If(r.type.elementType))return r.type.elementType.typeName;if(!t){if((e.kind===105&&j0(r)||e.kind===116&&e1(r)||e.kind===114&&NR(r)||e.kind===135&&Jv(r)||e.kind===127&&z4(r)||e.kind===91&&pae(r))&&r.expression)return Yl(r.expression);if((e.kind===103||e.kind===104)&&dr(r)&&r.operatorToken===e)return Yl(r.right);if(e.kind===130&&Ok(r)&&If(r.type))return r.type.typeName;if(e.kind===103&&G4(r)||e.kind===165&&Wk(r))return Yl(r.expression)}return e}function Cq(e){return yxe(e,!1)}function zz(e){return yxe(e,!0)}function Wu(e,t){return lD(e,t,r=>T_(r)||wu(r.kind)||Ki(r))}function lD(e,t,r){return vxe(e,t,!1,r,!1)}function so(e,t){return vxe(e,t,!0,void 0,!1)}function vxe(e,t,r,i,o){let s=e,l;e:for(;;){let p=s.getChildren(e),h=lI(p,t,(m,y)=>y,(m,y)=>{let E=p[m].getEnd();if(Et?1:d(p[m],S,E)?p[m-1]&&d(p[m-1])?1:0:i&&S===t&&p[m-1]&&p[m-1].getEnd()===t&&d(p[m-1])?1:-1});if(l)return l;if(h>=0&&p[h]){s=p[h];continue e}return s}function d(p,h,m){if(m??(m=p.getEnd()),mt))return!1;if(tr.getStart(e)&&t(s.pos<=e.pos&&s.end>e.end||s.pos===e.end)&&sde(s,r)?i(s):void 0)}}function Tc(e,t,r,i){let o=s(r||t);return x.assert(!(o&&Gz(o))),o;function s(l){if(bxe(l)&&l.kind!==1)return l;let d=l.getChildren(t),p=lI(d,e,(m,y)=>y,(m,y)=>e=d[m-1].end?0:1:-1);if(p>=0&&d[p]){let m=d[p];if(e=e||!sde(m,t)||Gz(m)){let S=nde(d,p,t,l.kind);return S?!i&&_F(S)&&S.getChildren(t).length?s(S):tde(S,t):void 0}else return s(m)}x.assert(r!==void 0||l.kind===312||l.kind===1||_F(l));let h=nde(d,d.length,t,l.kind);return h&&tde(h,t)}}function bxe(e){return gI(e)&&!Gz(e)}function tde(e,t){if(bxe(e))return e;let r=e.getChildren(t);if(r.length===0)return e;let i=nde(r,r.length,t,e.kind);return i&&tde(i,t)}function nde(e,t,r,i){for(let o=t-1;o>=0;o--){let s=e[o];if(Gz(s))o===0&&(i===12||i===285)&&x.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(sde(e[o],r))return e[o]}}function y1(e,t,r=Tc(t,e)){if(r&&DV(r)){let i=r.getStart(e),o=r.getEnd();if(ir.getStart(e)}function ide(e,t){let r=so(e,t);return!!(UI(r)||r.kind===19&&fP(r.parent)&&ig(r.parent.parent)||r.kind===30&&au(r.parent)&&ig(r.parent.parent))}function Vz(e,t){function r(i){for(;i;)if(i.kind>=285&&i.kind<=294||i.kind===12||i.kind===30||i.kind===32||i.kind===80||i.kind===20||i.kind===19||i.kind===44)i=i.parent;else if(i.kind===284){if(t>i.getStart(e))return!0;i=i.parent}else return!1;return!1}return r(so(e,t))}function jz(e,t,r){let i=da(e.kind),o=da(t),s=e.getFullStart(),l=r.text.lastIndexOf(o,s);if(l===-1)return;if(r.text.lastIndexOf(i,s-1)!!s.typeParameters&&s.typeParameters.length>=t)}function Mq(e,t){if(t.text.lastIndexOf("<",e?e.pos:t.text.length)===-1)return;let r=e,i=0,o=0;for(;r;){switch(r.kind){case 30:if(r=Tc(r.getFullStart(),t),r&&r.kind===29&&(r=Tc(r.getFullStart(),t)),!r||!Fe(r))return;if(!i)return kg(r)?void 0:{called:r,nTypeArguments:o};i--;break;case 50:i=3;break;case 49:i=2;break;case 32:i++;break;case 20:if(r=jz(r,19,t),!r)return;break;case 22:if(r=jz(r,21,t),!r)return;break;case 24:if(r=jz(r,23,t),!r)return;break;case 28:o++;break;case 39:case 80:case 11:case 9:case 10:case 112:case 97:case 114:case 96:case 143:case 25:case 52:case 58:case 59:break;default:if(ji(r))break;return}r=Tc(r.getFullStart(),t)}}function jy(e,t,r){return wc.getRangeOfEnclosingComment(e,t,void 0,r)}function ade(e,t){let r=so(e,t);return!!Fn(r,Xm)}function sde(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function XP(e,t=0){let r=[],i=Hd(e)?hV(e)&~t:0;return i&2&&r.push("private"),i&4&&r.push("protected"),i&1&&r.push("public"),(i&256||Al(e))&&r.push("static"),i&64&&r.push("abstract"),i&32&&r.push("export"),i&65536&&r.push("deprecated"),e.flags&33554432&&r.push("declare"),e.kind===277&&r.push("export"),r.length>0?r.join(","):""}function lde(e){if(e.kind===183||e.kind===213)return e.typeArguments;if($o(e)||e.kind===263||e.kind===264)return e.typeParameters}function Uz(e){return e===2||e===3}function Lq(e){return!!(e===11||e===14||Dv(e))}function Exe(e,t,r){return!!(t.flags&4)&&e.isEmptyAnonymousObjectType(r)}function cde(e){if(!e.isIntersection())return!1;let{types:t,checker:r}=e;return t.length===2&&(Exe(r,t[0],t[1])||Exe(r,t[1],t[0]))}function Qw(e,t,r){return Dv(e.kind)&&e.getStart(r){let r=rs(t);return!e[r]&&(e[r]=!0)}}function cD(e){return e.getText(0,e.getLength())}function tO(e,t){let r="";for(let i=0;i!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function fde(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function Gq(e){return!!e.module||ns(e)>=2||!!e.noEmit}function YT(e,t){return{fileExists:r=>e.fileExists(r),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:ta(t,t.readFile),useCaseSensitiveFileNames:ta(t,t.useCaseSensitiveFileNames),getSymlinkCache:ta(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:ta(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var r;return(r=e.getModuleResolutionCache())==null?void 0:r.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:ta(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:r=>e.getProjectReferenceRedirect(r),isSourceOfProjectReferenceRedirect:r=>e.isSourceOfProjectReferenceRedirect(r),getNearestAncestorDirectoryWithPackageJson:ta(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons(),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function Vq(e,t){return{...YT(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function qz(e){return e===2||e>=3&&e<=99||e===100}function mde(e,t,r,i){return e||t&&t.length?Hy(e,t,r,i):void 0}function Hy(e,t,r,i,o){return L.createImportDeclaration(void 0,e||t?L.createImportClause(!!o,e,t&&t.length?L.createNamedImports(t):void 0):void 0,typeof r=="string"?b1(r,i):r,void 0)}function b1(e,t){return L.createStringLiteral(e,t===0)}function jq(e,t){return JF(e,t)?1:0}function of(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{let r=e.imports&&Vr(e.imports,i=>Da(i)&&!Ks(i.parent));return r?jq(r,e):1}}function Uq(e){switch(e){case 0:return"'";case 1:return'"';default:return x.assertNever(e)}}function Xz(e){let t=Yz(e);return t===void 0?void 0:Vi(t)}function Yz(e){return e.escapedName!=="default"?e.escapedName:Wl(e.declarations,t=>{let r=Po(t);return r&&r.kind===80?r.escapedText:void 0})}function $z(e){return as(e)&&(vh(e.parent)||Lc(e.parent)||bu(e.parent,!1)&&e.parent.arguments[0]===e||Op(e.parent)&&e.parent.arguments[0]===e)}function rO(e){return Xa(e)&&tm(e.parent)&&Fe(e.name)&&!e.propertyName}function Qz(e,t){let r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)}function iO(e,t,r){if(e)for(;e.parent;){if(Yi(e.parent)||!Jje(r,e.parent,t))return e;e=e.parent}}function Jje(e,t,r){return _V(e,t.getStart(r))&&t.getEnd()<=Jl(e)}function dD(e,t){return Am(e)?Vr(e.modifiers,r=>r.kind===t):void 0}function $P(e,t,r,i,o){let l=(To(r)?r[0]:r).kind===243?pj:pT,d=jr(t.statements,l),p=To(r)?Rm.detectImportDeclarationSorting(r,o):3,h=Rm.getOrganizeImportsComparer(o,p===2),m=To(r)?vy(r,(y,E)=>Rm.compareImportsOrRequireStatements(y,E,h)):[r];if(!d.length)e.insertNodesAtTopOfFile(t,m,i);else if(d&&(p=Rm.detectImportDeclarationSorting(d,o))){let y=Rm.getOrganizeImportsComparer(o,p===2);for(let E of m){let S=Rm.getImportDeclarationInsertionIndex(d,E,y);if(S===0){let A=d[0]===t.statements[0]?{leadingTriviaOption:ur.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,d[0],E,!1,A)}else{let A=d[S-1];e.insertNodeAfter(t,A,E)}}}else{let y=$s(d);y?e.insertNodesAfter(t,y,m):e.insertNodesAtTopOfFile(t,m,i)}}function Hq(e,t){return x.assert(e.isTypeOnly),na(e.getChildAt(0,t),zq)}function uD(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function Kq(e,t,r){return(r?eT:qb)(e.fileName,t.fileName)&&uD(e.textSpan,t.textSpan)}function Jq(e){return(t,r)=>Kq(t,r,e)}function qq(e,t){if(e){for(let r=0;rAo(r)?!0:Xa(r)||tm(r)||V0(r)?!1:"quit")}function qje(){let e=mk*10,t,r,i,o;m();let s=y=>d(y,17);return{displayParts:()=>{let y=t.length&&t[t.length-1].text;return o>e&&y&&y!=="..."&&(Cg(y.charCodeAt(y.length-1))||t.push(ep(" ",16)),t.push(ep("...",15))),t},writeKeyword:y=>d(y,5),writeOperator:y=>d(y,12),writePunctuation:y=>d(y,15),writeTrailingSemicolon:y=>d(y,15),writeSpace:y=>d(y,16),writeStringLiteral:y=>d(y,8),writeParameter:y=>d(y,13),writeProperty:y=>d(y,14),writeLiteral:y=>d(y,8),writeSymbol:p,writeLine:h,write:s,writeComment:s,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:Ho,getIndent:()=>i,increaseIndent:()=>{i++},decreaseIndent:()=>{i--},clear:m};function l(){if(!(o>e)&&r){let y=r6(i);y&&(o+=y.length,t.push(ep(y,16))),r=!1}}function d(y,E){o>e||(l(),o+=y.length,t.push(ep(y,E)))}function p(y,E){o>e||(l(),o+=y.length,t.push(hde(y,E)))}function h(){o>e||(o+=1,t.push(pD()),r=!0)}function m(){t=[],r=!0,i=0,o=0}}function hde(e,t){return ep(e,r(t));function r(i){let o=i.flags;return o&3?Yq(i)?13:9:o&4||o&32768||o&65536?14:o&8?19:o&16?20:o&32?1:o&64?4:o&384?2:o&1536?11:o&8192?10:o&262144?18:o&524288||o&2097152?0:17}}function ep(e,t){return{text:e,kind:Vw[t]}}function kl(){return ep(" ",16)}function vp(e){return ep(da(e),5)}function Xd(e){return ep(da(e),15)}function ZP(e){return ep(da(e),12)}function gde(e){return ep(e,13)}function yde(e){return ep(e,14)}function $q(e){let t=g0(e);return t===void 0?af(e):vp(t)}function af(e){return ep(e,17)}function vde(e){return ep(e,0)}function bde(e){return ep(e,18)}function e7(e){return ep(e,24)}function Ede(e,t){return{text:e,kind:Vw[23],target:{fileName:Gn(t).fileName,textSpan:Iu(t)}}}function Qq(e){return ep(e,22)}function Sde(e,t){var r;let i=vae(e)?"link":bae(e)?"linkcode":"linkplain",o=[Qq(`{@${i} `)];if(!e.name)e.text&&o.push(e7(e.text));else{let s=t?.getSymbolAtLocation(e.name),l=s&&t?tX(s,t):void 0,d=Yje(e.text),p=uc(e.name)+e.text.slice(0,d),h=Xje(e.text.slice(d)),m=l?.valueDeclaration||((r=l?.declarations)==null?void 0:r[0]);if(m)o.push(Ede(p,m)),h&&o.push(e7(h));else{let y=d===0||e.text.charCodeAt(d)===124&&p.charCodeAt(p.length-1)!==32?" ":"";o.push(e7(p+y+h))}}return o.push(Qq("}")),o}function Xje(e){let t=0;if(e.charCodeAt(t++)===124){for(;t"&&r--,i++,!r)return i}return 0}function Ky(e,t){var r;return t?.newLineCharacter||((r=e.getNewLine)==null?void 0:r.call(e))||Pxe}function pD(){return ep(` -`,6)}function tb(e){try{return e(yX),yX.displayParts()}finally{yX.clear()}}function oO(e,t,r,i=0){return tb(o=>{e.writeType(t,r,i|1024|16384,o)})}function eM(e,t,r,i,o=0){return tb(s=>{e.writeSymbol(t,r,i,o|8,s)})}function Zq(e,t,r,i=0){return i|=25632,tb(o=>{e.writeSignature(t,r,i,void 0,o)})}function Txe(e,t){let r=t.getSourceFile();return tb(i=>{xw().writeNode(4,e,r,i)})}function Tde(e){return!!e.parent&&yI(e.parent)&&e.parent.propertyName===e}function eX(e,t){return L6(e,t.getScriptKind&&t.getScriptKind(e))}function tX(e,t){let r=e;for(;$je(r)||ch(r)&&r.links.target;)ch(r)&&r.links.target?r=r.links.target:r=vd(r,t);return r}function $je(e){return(e.flags&2097152)!==0}function Ade(e,t){return ba(vd(e,t))}function Ide(e,t){for(;Cg(e.charCodeAt(t));)t+=1;return t}function t7(e,t){for(;t>-1&&y_(e.charCodeAt(t));)t-=1;return t+1}function ol(e,t=!0){let r=e&&Axe(e);return r&&!t&&bp(r),r}function aO(e,t,r){let i=r(e);return i?xr(i,e):i=Axe(e,r),i&&!t&&bp(i),i}function Axe(e,t){let r=t?s=>aO(s,!0,t):ol,o=Sn(e,r,void 0,t?s=>s&&nX(s,!0,t):s=>s&&sS(s),r);if(o===e){let s=Da(e)?xr(L.createStringLiteralFromNode(e),e):mp(e)?xr(L.createNumericLiteral(e.text,e.numericLiteralFlags),e):L.cloneNode(e);return at(s,e)}return o.parent=void 0,o}function sS(e,t=!0){if(e){let r=L.createNodeArray(e.map(i=>ol(i,t)),e.hasTrailingComma);return at(r,e),r}return e}function nX(e,t,r){return L.createNodeArray(e.map(i=>aO(i,t,r)),e.hasTrailingComma)}function bp(e){rX(e),xde(e)}function rX(e){Rde(e,1024,Zje)}function xde(e){Rde(e,2048,Zj)}function $T(e,t){let r=e.getSourceFile(),i=r.text;Qje(e,i)?fD(e,t,r):lO(e,t,r),tM(e,t,r)}function Qje(e,t){let r=e.getFullStart(),i=e.getStart();for(let o=r;ot)}function QT(e,t){let r=e;for(let i=1;!TF(t,r);i++)r=`${e}_${i}`;return r}function sO(e,t,r,i){let o=0,s=-1;for(let{fileName:l,textChanges:d}of e){x.assert(l===t);for(let p of d){let{span:h,newText:m}=p,y=eUe(m,Qh(r));if(y!==-1&&(s=h.start+o+y,!i))return s;o+=m.length-h.length}}return x.assert(i),x.assert(s>=0),s}function fD(e,t,r,i,o){VL(r.text,e.pos,Dde(t,r,i,o,rP))}function tM(e,t,r,i,o){jL(r.text,e.end,Dde(t,r,i,o,n4))}function lO(e,t,r,i,o){jL(r.text,e.pos,Dde(t,r,i,o,rP))}function Dde(e,t,r,i,o){return(s,l,d,p)=>{d===3?(s+=2,l-=2):s+=2,o(e,r||d,t.text.slice(s,l),i!==void 0?i:p)}}function eUe(e,t){if(ao(e,t))return 0;let r=e.indexOf(" "+t);return r===-1&&(r=e.indexOf("."+t)),r===-1&&(r=e.indexOf('"'+t)),r===-1?-1:r+1}function n7(e){return dr(e)&&e.operatorToken.kind===28||Ma(e)||(Ok(e)||nH(e))&&Ma(e.expression)}function r7(e,t,r){let i=Py(e.parent);switch(i.kind){case 214:return t.getContextualType(i,r);case 226:{let{left:o,operatorToken:s,right:l}=i;return i7(s.kind)?t.getTypeAtLocation(e===l?o:l):t.getContextualType(e,r)}case 296:return oX(i,t);default:return t.getContextualType(e,r)}}function nM(e,t,r){let i=of(e,t),o=JSON.stringify(r);return i===0?`'${Yf(o).replace(/'/g,()=>"\\'").replace(/\\"/g,'"')}'`:o}function i7(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function Cde(e){switch(e.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function iX(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function oX(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function rM(e,t,r,i){let o=r.getTypeChecker(),s=!0,l=()=>s=!1,d=o.typeToTypeNode(e,t,1,{trackSymbol:(p,h,m)=>(s=s&&o.isSymbolAccessible(p,h,m,!1).accessibility===0,!s),reportInaccessibleThisError:l,reportPrivateInBaseOfClassExpression:l,reportInaccessibleUniqueSymbolError:l,moduleResolverHost:Vq(r,i)});return s?d:void 0}function Nde(e){return e===179||e===180||e===181||e===171||e===173}function Ixe(e){return e===262||e===176||e===174||e===177||e===178}function xxe(e){return e===267}function o7(e){return e===243||e===244||e===246||e===251||e===252||e===253||e===257||e===259||e===172||e===265||e===272||e===271||e===278||e===270||e===277}function tUe(e,t){let r=e.getLastToken(t);if(r&&r.kind===27)return!1;if(Nde(e.kind)){if(r&&r.kind===28)return!1}else if(xxe(e.kind)){let d=Ja(e.getChildren(t));if(d&&N_(d))return!1}else if(Ixe(e.kind)){let d=Ja(e.getChildren(t));if(d&&x0(d))return!1}else if(!o7(e.kind))return!1;if(e.kind===246)return!0;let i=Fn(e,d=>!d.parent),o=aS(e,i,t);if(!o||o.kind===20)return!0;let s=t.getLineAndCharacterOfPosition(e.getEnd()).line,l=t.getLineAndCharacterOfPosition(o.getStart(t)).line;return s!==l}function a7(e,t,r){let i=Fn(t,o=>o.end!==e?"quit":vX(o.kind));return!!i&&tUe(i,r)}function cO(e){let t=0,r=0,i=5;return Go(e,function o(s){if(o7(s.kind)){let l=s.getLastToken(e);l?.kind===27?t++:r++}else if(Nde(s.kind)){let l=s.getLastToken(e);if(l?.kind===27)t++;else if(l&&l.kind!==28){let d=hs(e,l.getStart(e)).line,p=hs(e,ph(e,l.end).start).line;d!==p&&r++}}return t+r>=i?!0:Go(s,o)}),t===0&&r<=1?!0:t/r>1/i}function s7(e,t){return d7(e,e.getDirectories,t)||[]}function aX(e,t,r,i,o){return d7(e,e.readDirectory,t,r,i,o)||Xe}function dO(e,t){return d7(e,e.fileExists,t)}function l7(e,t){return c7(()=>Um(t,e))||!1}function c7(e){try{return e()}catch{return}}function d7(e,t,...r){return c7(()=>t&&t.apply(e,r))}function sX(e,t,r){let i=[];return hm(e,o=>{if(o===r)return!0;let s=Yr(o,"package.json");dO(t,s)&&i.push(s)}),i}function Pde(e,t){let r;return hm(e,i=>{if(i==="node_modules"||(r=Ble(i,o=>dO(t,o),"package.json"),r))return!0}),r}function Mde(e,t){if(!t.fileExists)return[];let r=[];return hm(oi(e),i=>{let o=Yr(i,"package.json");if(t.fileExists(o)){let s=lX(o,t);s&&r.push(s)}}),r}function lX(e,t){if(!t.readFile)return;let r=["dependencies","devDependencies","optionalDependencies","peerDependencies"],i=t.readFile(e)||"",o=h6(i),s={};if(o)for(let p of r){let h=o[p];if(!h)continue;let m=new Map;for(let y in h)m.set(y,h[y]);s[p]=m}let l=[[1,s.dependencies],[2,s.devDependencies],[8,s.optionalDependencies],[4,s.peerDependencies]];return{...s,parseable:!!o,fileName:e,get:d,has(p,h){return!!d(p,h)}};function d(p,h=15){for(let[m,y]of l)if(y&&h&m){let E=y.get(p);if(E!==void 0)return E}}}function iM(e,t,r){let i=(r.getPackageJsonsVisibleToFile&&r.getPackageJsonsVisibleToFile(e.fileName)||Mde(e.fileName,r)).filter(A=>A.parseable),o,s,l;return{allowsImportingAmbientModule:p,allowsImportingSourceFile:h,allowsImportingSpecifier:m};function d(A){let N=S(A);for(let D of i)if(D.has(N)||D.has(A3(N)))return!0;return!1}function p(A,N){if(!i.length||!A.valueDeclaration)return!0;if(!s)s=new Map;else{let Y=s.get(A);if(Y!==void 0)return Y}let D=Yf(A.getName());if(y(D))return s.set(A,!0),!0;let w=A.valueDeclaration.getSourceFile(),j=E(w.fileName,N);if(typeof j>"u")return s.set(A,!0),!0;let K=d(j)||d(D);return s.set(A,K),K}function h(A,N){if(!i.length)return!0;if(!l)l=new Map;else{let j=l.get(A);if(j!==void 0)return j}let D=E(A.fileName,N);if(!D)return l.set(A,!0),!0;let w=d(D);return l.set(A,w),w}function m(A){return!i.length||y(A)||Lp(A)||cp(A)?!0:d(A)}function y(A){return!!(su(e)&&O_.nodeCoreModules.has(A)&&(o===void 0&&(o=u7(e)),o))}function E(A,N){if(!A.includes("node_modules"))return;let D=eS.getNodeModulesPackageName(r.getCompilationSettings(),e,A,N,t);if(D&&!Lp(D)&&!cp(D))return S(D)}function S(A){let N=zc(DP(A)).slice(1);return ao(N[0],"@")?`${N[0]}/${N[1]}`:N[0]}}function u7(e){return gt(e.imports,({text:t})=>O_.nodeCoreModules.has(t))}function uO(e){return Bo(zc(e),"node_modules")}function cX(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function Lde(e,t){let r=Iu(e),i=lI(t,r,Qs,yW);if(i>=0){let o=t[i];return x.assertEqual(o.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),na(o,cX)}}function kde(e,t){var r;let i=lI(t,e.start,l=>l.start,Zs);for(i<0&&(i=~i);((r=t[i-1])==null?void 0:r.start)===e.start;)i--;let o=[],s=Jl(e);for(;;){let l=ri(t[i],cX);if(!l||l.start>s)break;Wne(e,l)&&o.push(l),i++}return o}function E1({startPosition:e,endPosition:t}){return dc(e,t===void 0?e:t)}function dX(e,t){let r=so(e,t.start);return Fn(r,o=>o.getStart(e)Jl(t)?"quit":ht(o)&&uD(t,Iu(o,e)))}function uX(e,t,r=Qs){return e?To(e)?r(mn(e,t)):t(e,0):void 0}function pX(e){return To(e)?Va(e):e}function wde(e,t){if(Rxe(e)){let r=Dxe(e);if(r)return r;let i=Od.moduleSymbolToValidIdentifier(Ode(e),t,!1),o=Od.moduleSymbolToValidIdentifier(Ode(e),t,!0);return i===o?i:[i,o]}return e.name}function p7(e,t,r){return Rxe(e)?Dxe(e)||Od.moduleSymbolToValidIdentifier(Ode(e),t,!!r):e.name}function Rxe(e){return!(e.flags&33554432)&&(e.escapedName==="export="||e.escapedName==="default")}function Dxe(e){return Wl(e.declarations,t=>{var r,i,o;return Ll(t)?(r=ri(Yl(t.expression),Fe))==null?void 0:r.text:Kd(t)&&t.symbol.flags===2097152?(i=ri(t.propertyName,Fe))==null?void 0:i.text:(o=ri(Po(t),Fe))==null?void 0:o.text})}function Ode(e){var t;return x.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${x.formatSymbolFlags(e.flags)}. Declarations: ${(t=e.declarations)==null?void 0:t.map(r=>{let i=x.formatSyntaxKind(r.kind),o=ir(r),{expression:s}=r;return(o?"[JS]":"")+i+(s?` (expression: ${x.formatSyntaxKind(s.kind)})`:"")}).join(", ")}.`)}function Wde(e,t,r){let i=t.length;if(i+r>e.length)return!1;for(let o=0;oql(r)&&E_(r))}function f7(e){return!!(hV(e)&65536)}function m7(e,t){return Wl(e.imports,i=>{if(O_.nodeCoreModules.has(i.text))return ao(i.text,"node:")})??t.usesUriStyleNodeCoreModules}function pO(e){return e===` -`?1:0}function ZT(e){return To(e)?tg(wo(e[0]),e.slice(1)):wo(e)}function _7({options:e},t){let r=!e.semicolons||e.semicolons==="ignore",i=e.semicolons==="remove"||r&&!cO(t);return{...e,semicolons:i?"remove":"ignore"}}function mX(e){return e===2||e===3}function mD(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function h7(e,t){let r=new Set,i=new Set,o=new Set;for(let d of t)if(!mP(d)){let p=fs(d.expression);if(b0(p))switch(p.kind){case 15:case 11:r.add(p.text);break;case 9:i.add(parseInt(p.text));break;case 10:let h=Soe(El(p.text,"n")?p.text.slice(0,-1):p.text);h&&o.add(W0(h));break}else{let h=e.getSymbolAtLocation(d.expression);if(h&&h.valueDeclaration&&Y0(h.valueDeclaration)){let m=e.getConstantValue(h.valueDeclaration);m!==void 0&&s(m)}}}return{addValue:s,hasValue:l};function s(d){switch(typeof d){case"string":r.add(d);break;case"number":i.add(d)}}function l(d){switch(typeof d){case"string":return r.has(d);case"number":return i.has(d);case"object":return o.has(W0(d))}}}function _X(e,t,r,i){var o;let s=typeof e=="string"?e:e.fileName;if(!O0(s))return!1;let l=t.getCompilerOptions(),d=Ld(l),p=typeof e=="string"?Lw(tl(e,r.getCurrentDirectory(),My(r)),(o=t.getPackageJsonInfoCache)==null?void 0:o.call(t),r,l):e.impliedNodeFormat;if(p===99)return!1;if(p===1||l.verbatimModuleSyntax&&d===1)return!0;if(l.verbatimModuleSyntax&&A6(d))return!1;if(typeof e=="object"){if(e.commonJsModuleIndicator)return!0;if(e.externalModuleIndicator)return!1}return i}var Yd,hX,Nxe,g7,gX,yX,Pxe,y7,vX,nUe=bt({"src/services/utilities.ts"(){"use strict";ai(),Yd=xy(99,!0),hX=(e=>(e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All",e))(hX||{}),Nxe=/^\/\/\/\s*(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(gX||{}),yX=qje(),Pxe=` -`,y7="anonymous function",vX=jm(Nde,Ixe,xxe,o7)}});function bX(e){let t=1,r=qp(),i=new Map,o=new Map,s,l={isUsableByFile:S=>S===s,isEmpty:()=>!r.size,clear:()=>{r.clear(),i.clear(),s=void 0},add:(S,A,N,D,w,j,K,Y)=>{S!==s&&(l.clear(),s=S);let B;if(w){let fe=G6(w.fileName);if(fe){let{topLevelNodeModulesIndex:ne,topLevelPackageNameIndex:he,packageRootIndex:Ce}=fe;if(B=hw(DP(w.fileName.substring(he+1,Ce))),ao(S,w.path.substring(0,ne))){let Ge=o.get(B),ve=w.fileName.substring(0,he+1);if(Ge){let Ae=Ge.indexOf(Eh);ne>Ae&&o.set(B,ve)}else o.set(B,ve)}}}let z=j===1&&mR(A)||A,Z=j===0||eO(z)?Vi(N):wde(z,void 0),me=typeof Z=="string"?Z:Z[0],ge=typeof Z=="string"?void 0:Z[1],q=Yf(D.name),J=t++,re=vd(A,Y),pe=A.flags&33554432?void 0:A,xe=D.flags&33554432?void 0:D;(!pe||!xe)&&i.set(J,[A,D]),r.add(p(me,A,Yc(q)?void 0:q,Y),{id:J,symbolTableKey:N,symbolName:me,capitalizedSymbolName:ge,moduleName:q,moduleFile:w,moduleFileName:w?.fileName,packageName:B,exportKind:j,targetFlags:re.flags,isFromPackageJson:K,symbol:pe,moduleSymbol:xe})},get:(S,A)=>{if(S!==s)return;let N=r.get(A);return N?.map(d)},search:(S,A,N,D)=>{if(S===s)return Gc(r,(w,j)=>{let{symbolName:K,ambientModuleName:Y}=h(j),B=A&&w[0].capitalizedSymbolName||K;if(N(B,w[0].targetFlags)){let z=w.map(d).filter((Z,me)=>E(Z,w[me].packageName));if(z.length){let Z=D(z,B,!!Y,j);if(Z!==void 0)return Z}}})},releaseSymbols:()=>{i.clear()},onFileChanged:(S,A,N)=>m(S)&&m(A)?!1:s&&s!==A.path||N&&u7(S)!==u7(A)||!Gm(S.moduleAugmentations,A.moduleAugmentations)||!y(S,A)?(l.clear(),!0):(s=A.path,!1)};return x.isDebugging&&Object.defineProperty(l,"__cache",{value:r}),l;function d(S){if(S.symbol&&S.moduleSymbol)return S;let{id:A,exportKind:N,targetFlags:D,isFromPackageJson:w,moduleFileName:j}=S,[K,Y]=i.get(A)||Xe;if(K&&Y)return{symbol:K,moduleSymbol:Y,moduleFileName:j,exportKind:N,targetFlags:D,isFromPackageJson:w};let B=(w?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),ce=S.moduleSymbol||Y||x.checkDefined(S.moduleFile?B.getMergedSymbol(S.moduleFile.symbol):B.tryFindAmbientModule(S.moduleName)),z=S.symbol||K||x.checkDefined(N===2?B.resolveExternalModuleSymbol(ce):B.tryGetMemberInModuleExportsAndProperties(Vi(S.symbolTableKey),ce),`Could not find symbol '${S.symbolName}' by key '${S.symbolTableKey}' in module ${ce.name}`);return i.set(A,[z,ce]),{symbol:z,moduleSymbol:ce,moduleFileName:j,exportKind:N,targetFlags:D,isFromPackageJson:w}}function p(S,A,N,D){let w=N||"";return`${S.length} ${ba(vd(A,D))} ${S} ${w}`}function h(S){let A=S.indexOf(" "),N=S.indexOf(" ",A+1),D=parseInt(S.substring(0,A),10),w=S.substring(N+1),j=w.substring(0,D),K=w.substring(D+1);return{symbolName:j,ambientModuleName:K===""?void 0:K}}function m(S){return!S.commonJsModuleIndicator&&!S.externalModuleIndicator&&!S.moduleAugmentations&&!S.ambientModuleNames}function y(S,A){if(!Gm(S.ambientModuleNames,A.ambientModuleNames))return!1;let N=-1,D=-1;for(let w of A.ambientModuleNames){let j=K=>qV(K)&&K.name.text===w;if(N=Kl(S.statements,j,N+1),D=Kl(A.statements,j,D+1),S.statements[N]!==A.statements[D])return!1}return!0}function E(S,A){if(!A||!S.moduleFileName)return!0;let N=e.getGlobalTypingsCacheLocation();if(N&&ao(S.moduleFileName,N))return!0;let D=o.get(A);return!D||ao(S.moduleFileName,D)}}function EX(e,t,r,i,o,s,l){var d;if(t===r)return!1;let p=l?.get(t.path,r.path,i,{});if(p?.isBlockedByPackageJsonDependencies!==void 0)return!p.isBlockedByPackageJsonDependencies;let h=My(s),m=(d=s.getGlobalTypingsCacheLocation)==null?void 0:d.call(s),y=!!eS.forEachFileNameOfModule(t.fileName,r.fileName,s,!1,E=>{let S=e.getSourceFile(E);return(S===r||!S)&&rUe(t.fileName,E,h,m)});if(o){let E=y&&o.allowsImportingSourceFile(r,s);return l?.setBlockedByPackageJsonDependencies(t.path,r.path,i,{},!E),E}return y}function rUe(e,t,r,i){let o=hm(t,l=>nc(l)==="node_modules"?l:void 0),s=o&&oi(r(o));return s===void 0||ao(r(e),s)||!!i&&ao(r(i),s)}function SX(e,t,r,i,o){var s,l;let d=pR(t),p=r.autoImportFileExcludePatterns&&to(r.autoImportFileExcludePatterns,m=>{let y=P6(m,"","exclude");return y?zv(y,d):void 0});Mxe(e.getTypeChecker(),e.getSourceFiles(),p,t,(m,y)=>o(m,y,e,!1));let h=i&&((s=t.getPackageJsonAutoImportProvider)==null?void 0:s.call(t));if(h){let m=Hs(),y=e.getTypeChecker();Mxe(h.getTypeChecker(),h.getSourceFiles(),p,t,(E,S)=>{(S&&!e.getSourceFile(S.fileName)||!S&&!y.resolveName(E.name,void 0,1536,!1))&&o(E,S,h,!0)}),(l=t.log)==null||l.call(t,`forEachExternalModuleToImportFrom autoImportProvider: ${Hs()-m}`)}}function Mxe(e,t,r,i,o){var s,l;let d=(s=i.getSymlinkCache)==null?void 0:s.call(i).getSymlinkedDirectoriesByRealpath(),p=r&&(({fileName:h,path:m})=>{if(r.some(y=>y.test(h)))return!0;if(d?.size&&TE(h)){let y=oi(h);return hm(oi(m),E=>{let S=d.get(Bc(E));if(S)return S.some(A=>r.some(N=>N.test(h.replace(y,A))));y=oi(y)})??!1}return!1});for(let h of e.getAmbientModules())!h.name.includes("*")&&!(r&&((l=h.declarations)!=null&&l.every(m=>p(m.getSourceFile()))))&&o(h,void 0);for(let h of t)wp(h)&&!p?.(h)&&o(e.getMergedSymbol(h.symbol),h)}function fO(e,t,r,i,o){var s,l,d,p,h;let m=Hs();(s=t.getPackageJsonAutoImportProvider)==null||s.call(t);let y=((l=t.getCachedExportInfoMap)==null?void 0:l.call(t))||bX({getCurrentProgram:()=>r,getPackageJsonAutoImportProvider:()=>{var A;return(A=t.getPackageJsonAutoImportProvider)==null?void 0:A.call(t)},getGlobalTypingsCacheLocation:()=>{var A;return(A=t.getGlobalTypingsCacheLocation)==null?void 0:A.call(t)}});if(y.isUsableByFile(e.path))return(d=t.log)==null||d.call(t,"getExportInfoMap: cache hit"),y;(p=t.log)==null||p.call(t,"getExportInfoMap: cache miss or empty; calculating new results");let E=r.getCompilerOptions(),S=0;try{SX(r,t,i,!0,(A,N,D,w)=>{++S%100===0&&o?.throwIfCancellationRequested();let j=new Map,K=D.getTypeChecker(),Y=v7(A,K,E);Y&&Lxe(Y.symbol,K)&&y.add(e.path,Y.symbol,Y.exportKind===1?"default":"export=",A,N,Y.exportKind,w,K),K.forEachExportAndPropertyOfModule(A,(B,ce)=>{B!==Y?.symbol&&Lxe(B,K)&&Em(j,ce)&&y.add(e.path,B,ce,A,N,0,w,K)})})}catch(A){throw y.clear(),A}return(h=t.log)==null||h.call(t,`getExportInfoMap: done in ${Hs()-m} ms`),y}function v7(e,t,r){let i=iUe(e,t);if(!i)return;let{symbol:o,exportKind:s}=i,l=b7(o,t,r);return l&&{symbol:o,exportKind:s,...l}}function Lxe(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!J2(e)&&!Eie(e)}function iUe(e,t){let r=t.resolveExternalModuleSymbol(e);if(r!==e)return{symbol:r,exportKind:2};let i=t.tryGetMemberInModuleExports("default",e);if(i)return{symbol:i,exportKind:1}}function b7(e,t,r){let i=mR(e);if(i)return{resolvedSymbol:i,name:i.name};let o=oUe(e);if(o!==void 0)return{resolvedSymbol:e,name:o};if(e.flags&2097152){let s=t.getImmediateAliasedSymbol(e);if(s&&s.parent)return b7(s,t,r)}return e.escapedName!=="default"&&e.escapedName!=="export="?{resolvedSymbol:e,name:e.getName()}:{resolvedSymbol:e,name:p7(e,r.target)}}function oUe(e){return e.declarations&&Wl(e.declarations,t=>{var r;if(Ll(t))return(r=ri(Yl(t.expression),Fe))==null?void 0:r.text;if(Kd(t))return x.assert(t.name.text==="default","Expected the specifier to be a default export"),t.propertyName&&t.propertyName.text})}var TX,AX,aUe=bt({"src/services/exportInfoMap.ts"(){"use strict";ai(),TX=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(TX||{}),AX=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))(AX||{})}});function kxe(){let e=xy(99,!1);function t(i,o,s){return cUe(r(i,o,s),i)}function r(i,o,s){let l=0,d=0,p=[],{prefix:h,pushTemplate:m}=pUe(o);i=h+i;let y=h.length;m&&p.push(16),e.setText(i);let E=0,S=[],A=0;do{l=e.scan(),sR(l)||(N(),d=l);let D=e.getTokenEnd();if(lUe(e.getTokenStart(),D,y,_Ue(l),S),D>=i.length){let w=sUe(e,l,$s(p));w!==void 0&&(E=w)}}while(l!==1);function N(){switch(l){case 44:case 69:!Fxe[d]&&e.reScanSlashToken()===14&&(l=14);break;case 30:d===80&&A++;break;case 32:A>0&&A--;break;case 133:case 154:case 150:case 136:case 155:A>0&&!s&&(l=80);break;case 16:p.push(l);break;case 19:p.length>0&&p.push(l);break;case 20:if(p.length>0){let D=$s(p);D===16?(l=e.reScanTemplateToken(!1),l===18?p.pop():x.assertEqual(l,17,"Should have been a template middle.")):(x.assertEqual(D,19,"Should have been an open brace"),p.pop())}break;default:if(!wu(l))break;(d===25||wu(d)&&wu(l)&&!uUe(d,l))&&(l=80)}}return{endOfLineState:E,spans:S}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:r}}function sUe(e,t,r){switch(t){case 11:{if(!e.isUnterminated())return;let i=e.getTokenText(),o=i.length-1,s=0;for(;i.charCodeAt(o-s)===92;)s++;return s&1?i.charCodeAt(0)===34?3:2:void 0}case 3:return e.isUnterminated()?1:void 0;default:if(Dv(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return x.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return r===16?6:void 0}}function lUe(e,t,r,i,o){if(i===8)return;e===0&&r>0&&(e+=r);let s=t-e;s>0&&o.push(e-r,s,i)}function cUe(e,t){let r=[],i=e.spans,o=0;for(let l=0;l=0){let m=d-o;m>0&&r.push({length:m,classification:4})}r.push({length:p,classification:dUe(h)}),o=d+p}let s=t.length-o;return s>0&&r.push({length:s,classification:4}),{entries:r,finalLexState:e.endOfLineState}}function dUe(e){switch(e){case 1:return 3;case 3:return 1;case 4:return 6;case 25:return 7;case 5:return 2;case 6:return 8;case 8:return 4;case 10:return 0;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return 5;default:return}}function uUe(e,t){if(!kq(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function pUe(e){switch(e){case 3:return{prefix:`"\\ + `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),fi),Te.flags=fs,Te.enclosingDeclaration=Fa}function Ze(Nt,xr,fi){let qr=Wf(Nt),li=Nr(Nt),Za=mn(li,vu=>mt(vu,Te)),aa=Dp(qr),Go=Nn(aa)?ha(aa):void 0,ws=va(_s(qr),vu=>Cc(vu,Go)),fs=Gh(0,qr,Go,179),Fa=Gh(1,qr,Go,180),Id=gy(qr,Go),xd=Nn(aa)?[L.createHeritageClause(96,to(aa,vu=>nI(vu,111551)))]:void 0;Hs(L.createInterfaceDeclaration(void 0,Bm(Nt,xr),Za,xd,[...Id,...Fa,...fs,...ws]),fi)}function vt(Nt){let xr=Oo(xp(Nt).values()),fi=ts(Nt);if(fi!==Nt){let qr=new Set(xr);for(let li of xp(fi).values())Ed(Vl(li))&111551||qr.add(li);xr=Oo(qr)}return jr(xr,qr=>zi(qr)&&$p(qr.escapedName,99))}function $t(Nt){return oo(vt(Nt),xr=>!(Ed(Vl(xr))&111551))}function Hn(Nt,xr,fi){let qr=vt(Nt),li=AL(qr,Go=>Go.parent&&Go.parent===Nt?"real":"merged"),Za=li.get("real")||Xe,aa=li.get("merged")||Xe;if(Nn(Za)){let Go=Bm(Nt,xr);Gr(Za,Go,fi,!!(Nt.flags&67108880))}if(Nn(aa)){let Go=Gn(Te.enclosingDeclaration),ws=Bm(Nt,xr),fs=L.createModuleBlock([L.createExportDeclaration(void 0,!1,L.createNamedExports(to(jr(aa,Fa=>Fa.escapedName!=="export="),Fa=>{var Id,xd;let vu=Vi(Fa.escapedName),Hl=Bm(Fa,vu),Rd=Fa.declarations&&Mm(Fa);if(Go&&(Rd?Go!==Gn(Rd):!gt(Fa.declarations,Pp=>Gn(Pp)===Go))){(xd=(Id=Te.tracker)==null?void 0:Id.reportNonlocalAugmentation)==null||xd.call(Id,Go,Nt,Fa);return}let Ju=Rd&&Gp(Rd,!0);as(Ju||Fa);let rd=Ju?Bm(Ju,Vi(Ju.escapedName)):Hl;return L.createExportSpecifier(!1,vu===rd?void 0:rd,vu)})))]);Hs(L.createModuleDeclaration(void 0,L.createIdentifier(ws),fs,32),0)}}function Ir(Nt,xr,fi){Hs(L.createEnumDeclaration(L.createModifiersFromModifierFlags(Mve(Nt)?4096:0),Bm(Nt,xr),mn(jr(_s(sr(Nt)),qr=>!!(qr.flags&8)),qr=>{let li=qr.declarations&&qr.declarations[0]&&$0(qr.declarations[0])?lbe(qr.declarations[0]):void 0;return L.createEnumMember(Vi(qr.escapedName),li===void 0?void 0:typeof li=="string"?L.createStringLiteral(li):L.createNumericLiteral(li))})),fi)}function bn(Nt,xr,fi,qr){let li=Ko(Nt,0);for(let Za of li){let aa=ye(Za,262,Te,{name:L.createIdentifier(fi),privateSymbolVisitor:as,bundledImports:Cn});Hs(at(aa,_r(Za)),qr)}if(!(xr.flags&1536&&xr.exports&&xr.exports.size)){let Za=jr(_s(Nt),zi);Gr(Za,fi,qr,!0)}}function _r(Nt){if(Nt.declaration&&Nt.declaration.parent){if(ur(Nt.declaration.parent)&&zl(Nt.declaration.parent)===5)return Nt.declaration.parent;if(Oi(Nt.declaration.parent)&&Nt.declaration.parent.parent)return Nt.declaration.parent.parent}return Nt.declaration}function Gr(Nt,xr,fi,qr){if(Nn(Nt)){let Za=AL(Nt,Hl=>!Nn(Hl.declarations)||gt(Hl.declarations,Rd=>Gn(Rd)===Gn(Te.enclosingDeclaration))?"local":"remote").get("local")||Xe,aa=Eh.createModuleDeclaration(void 0,L.createIdentifier(xr),L.createModuleBlock([]),32);ja(aa,Ii),aa.locals=oa(Nt),aa.symbol=Nt[0].parent;let Go=Br;Br=[];let ws=Xt;Xt=!1;let fs={...Te,enclosingDeclaration:aa},Fa=Te;Te=fs,la(oa(Za),qr,!0),Te=Fa,Xt=ws;let Id=Br;Br=Go;let xd=mn(Id,Hl=>Ll(Hl)&&!Hl.isExportEquals&&Fe(Hl.expression)?L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Hl.expression,L.createIdentifier("default"))])):Hl),vu=oo(xd,Hl=>Qr(Hl,32))?mn(xd,co):xd;aa=L.updateModuleDeclaration(aa,aa.modifiers,aa.name,L.createModuleBlock(vu)),Hs(aa,fi)}}function zi(Nt){return!!(Nt.flags&2887656)||!(Nt.flags&4194304||Nt.escapedName==="prototype"||Nt.valueDeclaration&&na(Nt.valueDeclaration)&&di(Nt.valueDeclaration.parent))}function wo(Nt){let xr=to(Nt,fi=>{let qr=Te.enclosingDeclaration;Te.enclosingDeclaration=fi;let li=fi.expression;if(Bl(li)){if(Fe(li)&&yr(li)==="")return Za(void 0);let aa;if({introducesError:aa,node:li}=Mu(li,Te,as),aa)return Za(void 0)}return Za(L.createExpressionWithTypeArguments(li,mn(fi.typeArguments,aa=>Ol(Te,aa,as,Cn)||u(Ti(aa),Te))));function Za(aa){return Te.enclosingDeclaration=qr,aa}});if(xr.length===Nt.length)return xr}function ua(Nt,xr,fi){var qr,li;let Za=(qr=Nt.declarations)==null?void 0:qr.find(di),aa=Te.enclosingDeclaration;Te.enclosingDeclaration=Za||aa;let Go=Nr(Nt),ws=mn(Go,eh=>mt(eh,Te)),fs=Up(Wf(Nt)),Fa=Dp(fs),Id=Za&&oR(Za),xd=Id&&wo(Id)||to(s_(fs),sL),vu=sr(Nt),Hl=!!((li=vu.symbol)!=null&&li.valueDeclaration)&&di(vu.symbol.valueDeclaration),Rd=Hl?Rp(vu):G,Ju=[...Nn(Fa)?[L.createHeritageClause(96,mn(Fa,eh=>tI(eh,Rd,xr)))]:[],...Nn(xd)?[L.createHeritageClause(119,xd)]:[]],rd=M_t(fs,Fa,_s(fs)),Pp=jr(rd,eh=>{let lL=eh.valueDeclaration;return!!lL&&!(ou(lL)&&Ki(lL.name))}),Z_=gt(rd,eh=>{let lL=eh.valueDeclaration;return!!lL&&ou(lL)&&Ki(lL.name)})?[L.createPropertyDeclaration(void 0,L.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:Xe,Ub=va(Pp,eh=>ui(eh,!1,Fa[0])),Hb=va(jr(_s(vu),eh=>!(eh.flags&4194304)&&eh.escapedName!=="prototype"&&!zi(eh)),eh=>ui(eh,!0,Rd)),Xgt=!Hl&&!!Nt.valueDeclaration&&ir(Nt.valueDeclaration)&&!gt(Ko(vu,1))?[L.createConstructorDeclaration(L.createModifiersFromModifierFlags(2),[],void 0)]:Gh(1,vu,Rd,176),Ygt=gy(fs,Fa[0]);Te.enclosingDeclaration=aa,Hs(at(L.createClassDeclaration(void 0,xr,ws,Ju,[...Ygt,...Hb,...Xgt,...Ub,...Z_]),Nt.declarations&&jr(Nt.declarations,eh=>Sc(eh)||$c(eh))[0]),fi)}function pa(Nt){return Wl(Nt,xr=>{if(Qu(xr)||Hd(xr))return yr(xr.propertyName||xr.name);if(ur(xr)||Ll(xr)){let fi=Ll(xr)?xr.expression:xr.right;if(wr(fi))return yr(fi.name)}if(fb(xr)){let fi=No(xr);if(fi&&Fe(fi))return yr(fi)}})}function Ei(Nt,xr,fi){var qr,li,Za,aa,Go,ws;let fs=Mm(Nt);if(!fs)return R.fail();let Fa=ts(Gp(fs,!0));if(!Fa)return;let Id=pN(Fa)&&pa(Nt.declarations)||Vi(Fa.escapedName);Id==="export="&&q&&(Id="default");let xd=Bm(Fa,Id);switch(as(Fa),fs.kind){case 208:if(((li=(qr=fs.parent)==null?void 0:qr.parent)==null?void 0:li.kind)===260){let Rd=jn(Fa.parent||Fa,Te),{propertyName:Ju}=fs;Hs(L.createImportDeclaration(void 0,L.createImportClause(!1,void 0,L.createNamedImports([L.createImportSpecifier(!1,Ju&&Fe(Ju)?L.createIdentifier(yr(Ju)):void 0,L.createIdentifier(xr))])),L.createStringLiteral(Rd),void 0),0);break}R.failBadSyntaxKind(((Za=fs.parent)==null?void 0:Za.parent)||fs,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:((Go=(aa=fs.parent)==null?void 0:aa.parent)==null?void 0:Go.kind)===226&&Lo(Vi(Nt.escapedName),xd);break;case 260:if(wr(fs.initializer)){let Rd=fs.initializer,Ju=L.createUniqueName(xr),rd=jn(Fa.parent||Fa,Te);Hs(L.createImportEqualsDeclaration(void 0,!1,Ju,L.createExternalModuleReference(L.createStringLiteral(rd))),0),Hs(L.createImportEqualsDeclaration(void 0,!1,L.createIdentifier(xr),L.createQualifiedName(Ju,Rd.name)),fi);break}case 271:if(Fa.escapedName==="export="&>(Fa.declarations,Rd=>Yi(Rd)&&Jf(Rd))){Ia(Nt);break}let vu=!(Fa.flags&512)&&!Oi(fs);Hs(L.createImportEqualsDeclaration(void 0,!1,L.createIdentifier(xr),vu?fo(Fa,Te,-1,!1):L.createExternalModuleReference(L.createStringLiteral(jn(Fa,Te)))),vu?fi:0);break;case 270:Hs(L.createNamespaceExportDeclaration(yr(fs.name)),0);break;case 273:{let Rd=jn(Fa.parent||Fa,Te),Ju=Cn?L.createStringLiteral(Rd):fs.parent.moduleSpecifier;Hs(L.createImportDeclaration(void 0,L.createImportClause(!1,L.createIdentifier(xr),void 0),Ju,fs.parent.attributes),0);break}case 274:{let Rd=jn(Fa.parent||Fa,Te),Ju=Cn?L.createStringLiteral(Rd):fs.parent.parent.moduleSpecifier;Hs(L.createImportDeclaration(void 0,L.createImportClause(!1,void 0,L.createNamespaceImport(L.createIdentifier(xr))),Ju,fs.parent.attributes),0);break}case 280:Hs(L.createExportDeclaration(void 0,!1,L.createNamespaceExport(L.createIdentifier(xr)),L.createStringLiteral(jn(Fa,Te))),0);break;case 276:{let Rd=jn(Fa.parent||Fa,Te),Ju=Cn?L.createStringLiteral(Rd):fs.parent.parent.parent.moduleSpecifier;Hs(L.createImportDeclaration(void 0,L.createImportClause(!1,void 0,L.createNamedImports([L.createImportSpecifier(!1,xr!==Id?L.createIdentifier(Id):void 0,L.createIdentifier(xr))])),Ju,fs.parent.parent.parent.attributes),0);break}case 281:let Hl=fs.parent.parent.moduleSpecifier;Hl&&((ws=fs.propertyName)==null?void 0:ws.escapedText)==="default"&&(Id="default"),Lo(Vi(Nt.escapedName),Hl?Id:xd,Hl&&ss(Hl)?L.createStringLiteral(Hl.text):void 0);break;case 277:Ia(Nt);break;case 226:case 211:case 212:Nt.escapedName==="default"||Nt.escapedName==="export="?Ia(Nt):Lo(xr,xd);break;default:return R.failBadSyntaxKind(fs,"Unhandled alias declaration kind in symbol serializer!")}}function Lo(Nt,xr,fi){Hs(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Nt!==xr?xr:void 0,Nt)]),fi),0)}function Ia(Nt){var xr;if(Nt.flags&4194304)return!1;let fi=Vi(Nt.escapedName),qr=fi==="export=",Za=qr||fi==="default",aa=Nt.declarations&&Mm(Nt),Go=aa&&Gp(aa,!0);if(Go&&Nn(Go.declarations)&>(Go.declarations,ws=>Gn(ws)===Gn(Ii))){let ws=aa&&(Ll(aa)||ur(aa)?Tj(aa):Iie(aa)),fs=ws&&Bl(ws)?K_t(ws):void 0,Fa=fs&&Vs(fs,-1,!0,!0,Ii);(Fa||Go)&&as(Fa||Go);let Id=Te.tracker.disableTrackSymbol;if(Te.tracker.disableTrackSymbol=!0,Za)Br.push(L.createExportAssignment(void 0,qr,Rc(Go,Te,-1)));else if(fs===ws&&fs)Lo(fi,yr(fs));else if(ws&&$c(ws))Lo(fi,Bm(Go,yl(Go)));else{let xd=h_(fi,Nt);Hs(L.createImportEqualsDeclaration(void 0,!1,L.createIdentifier(xd),fo(Go,Te,-1,!1)),0),Lo(fi,xd)}return Te.tracker.disableTrackSymbol=Id,!0}else{let ws=h_(fi,Nt),fs=Hp(sr(ts(Nt)));if(xs(fs,Nt))bn(fs,Nt,ws,Za?0:32);else{let Fa=((xr=Te.enclosingDeclaration)==null?void 0:xr.kind)===267&&(!(Nt.flags&98304)||Nt.flags&65536)?1:2,Id=L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(ws,void 0,bs(Te,fs,Nt,Ii,as,Cn))],Fa));Hs(Id,Go&&Go.flags&4&&Go.escapedName==="export="?128:fi===ws?32:0)}return Za?(Br.push(L.createExportAssignment(void 0,qr,L.createIdentifier(ws))),!0):fi!==ws?(Lo(fi,ws),!0):!1}}function xs(Nt,xr){let fi=Gn(Te.enclosingDeclaration);return kr(Nt)&48&&!Nn(hu(Nt))&&!NS(Nt)&&!!(Nn(jr(_s(Nt),zi))||Nn(Ko(Nt,0)))&&!Nn(Ko(Nt,1))&&!gr(xr,Ii)&&!(Nt.symbol&>(Nt.symbol.declarations,qr=>Gn(qr)!==fi))&&!gt(_s(Nt),qr=>f8(qr.escapedName))&&!gt(_s(Nt),qr=>gt(qr.declarations,li=>Gn(li)!==fi))&&oo(_s(Nt),qr=>$p(yl(qr),ce)?qr.flags&98304?Db(qr)===PS(qr):!0:!1)}function ps(Nt,xr,fi){return function(li,Za,aa){var Go,ws,fs,Fa,Id;let xd=Tf(li),vu=!!(xd&2);if(Za&&li.flags&2887656)return[];if(li.flags&4194304||li.escapedName==="constructor"||aa&&_a(aa,li.escapedName)&&m_(_a(aa,li.escapedName))===m_(li)&&(li.flags&16777216)===(_a(aa,li.escapedName).flags&16777216)&&uy(sr(li),Ue(aa,li.escapedName)))return[];let Hl=xd&-1025|(Za?256:0),Rd=Pn(li,Te),Ju=(Go=li.declarations)==null?void 0:Go.find(Um(Vo,Nv,Oi,_p,ur,wr));if(li.flags&98304&&fi){let rd=[];if(li.flags&65536){let Pp=li.declarations&&gn(li.declarations,Z_=>{if(Z_.kind===178)return Z_;if(ra(Z_)&&gT(Z_))return gn(Z_.arguments[2].properties,Ub=>{let Hb=No(Ub);if(Hb&&Fe(Hb)&&yr(Hb)==="set")return Ub})});R.assert(!!Pp);let hx=Ws(Pp)?lm(Pp).parameters[0]:void 0;rd.push(at(L.createSetAccessorDeclaration(L.createModifiersFromModifierFlags(Hl),Rd,[L.createParameterDeclaration(void 0,void 0,hx?sn(hx,At(hx),Te):"value",void 0,vu?void 0:bs(Te,sr(li),li,Ii,as,Cn))],void 0),((ws=li.declarations)==null?void 0:ws.find(Ny))||Ju))}if(li.flags&32768){let Pp=xd&2;rd.push(at(L.createGetAccessorDeclaration(L.createModifiersFromModifierFlags(Hl),Rd,[],Pp?void 0:bs(Te,sr(li),li,Ii,as,Cn),void 0),((fs=li.declarations)==null?void 0:fs.find(Mv))||Ju))}return rd}else if(li.flags&98311)return at(Nt(L.createModifiersFromModifierFlags((m_(li)?8:0)|Hl),Rd,li.flags&16777216?L.createToken(58):void 0,vu?void 0:bs(Te,PS(li),li,Ii,as,Cn),void 0),((Fa=li.declarations)==null?void 0:Fa.find(Um(Vo,Oi)))||Ju);if(li.flags&8208){let rd=sr(li),Pp=Ko(rd,0);if(Hl&2)return at(Nt(L.createModifiersFromModifierFlags((m_(li)?8:0)|Hl),Rd,li.flags&16777216?L.createToken(58):void 0,void 0,void 0),((Id=li.declarations)==null?void 0:Id.find(Ws))||Pp[0]&&Pp[0].declaration||li.declarations&&li.declarations[0]);let hx=[];for(let Z_ of Pp){let Ub=ye(Z_,xr,Te,{name:Rd,questionToken:li.flags&16777216?L.createToken(58):void 0,modifiers:Hl?L.createModifiersFromModifierFlags(Hl):void 0}),Hb=Z_.declaration&&w2(Z_.declaration.parent)?Z_.declaration.parent:Z_.declaration;hx.push(at(Ub,Hb))}return hx}return R.fail(`Unhandled class member kind! ${li.__debugFlags||li.flags}`)}}function Cc(Nt,xr){return Ai(Nt,!1,xr)}function Gh(Nt,xr,fi,qr){let li=Ko(xr,Nt);if(Nt===1){if(!fi&&oo(li,Go=>Nn(Go.parameters)===0))return[];if(fi){let Go=Ko(fi,1);if(!Nn(Go)&&oo(li,ws=>Nn(ws.parameters)===0))return[];if(Go.length===li.length){let ws=!1;for(let fs=0;fsu(li,Te)),qr=Rc(Nt.target.symbol,Te,788968)):Nt.symbol&&nn(Nt.symbol,Ii,xr)&&(qr=Rc(Nt.symbol,Te,788968)),qr)return L.createExpressionWithTypeArguments(qr,fi)}function sL(Nt){let xr=nI(Nt,788968);if(xr)return xr;if(Nt.symbol)return L.createExpressionWithTypeArguments(Rc(Nt.symbol,Te,788968),void 0)}function h_(Nt,xr){var fi,qr;let li=xr?ba(xr):void 0;if(li&&Te.remappedSymbolNames.has(li))return Te.remappedSymbolNames.get(li);xr&&(Nt=_x(xr,Nt));let Za=0,aa=Nt;for(;(fi=Te.usedSymbolNames)!=null&&fi.has(Nt);)Za++,Nt=`${aa}_${Za}`;return(qr=Te.usedSymbolNames)==null||qr.add(Nt),li&&Te.remappedSymbolNames.set(li,Nt),Nt}function _x(Nt,xr){if(xr==="default"||xr==="__class"||xr==="__function"){let fi=Te.flags;Te.flags|=16777216;let qr=XE(Nt,Te);Te.flags=fi,xr=qr.length>0&&D2(qr.charCodeAt(0))?Yf(qr):qr}return xr==="default"?xr="_default":xr==="export="&&(xr="_exports"),xr=$p(xr,ce)&&!CI(xr)?xr:"_"+xr.replace(/[^a-zA-Z0-9]/g,"_"),xr}function Bm(Nt,xr){let fi=ba(Nt);return Te.remappedSymbolNames.has(fi)?Te.remappedSymbolNames.get(fi):(xr=_x(Nt,xr),Te.remappedSymbolNames.set(fi,xr),xr)}}}function Mh(n,a,c=16384,u){return u?_(u).getText():dN(_);function _(g){let T=L.createTypePredicateNode(n.kind===2||n.kind===3?L.createToken(131):void 0,n.kind===1||n.kind===3?L.createIdentifier(n.parameterName):L.createThisTypeNode(),n.type&&Et.typeToTypeNode(n.type,a,CA(c)|70221824|512)),M=iS(),W=a&&Gn(a);return M.writeNode(4,T,W,g),g}}function QD(n){let a=[],c=0;for(let u=0;uNo(T)?T:void 0),g=_&&No(_);if(_&&g){if(ra(_)&&gT(_))return yl(n);if(Ya(g)&&!(Tl(n)&4096)){let T=qi(n).nameType;if(T&&T.flags&384){let M=d8(n,a);if(M!==void 0)return M}}return As(g)}if(_||(_=n.declarations[0]),_.parent&&_.parent.kind===260)return As(_.parent.name);switch(_.kind){case 231:case 218:case 219:return a&&!a.encounteredError&&!(a.flags&131072)&&(a.encounteredError=!0),_.kind===231?"(Anonymous class)":"(Anonymous function)"}}let u=d8(n,a);return u!==void 0?u:yl(n)}function o_(n){if(n){let c=Zr(n);return c.isVisible===void 0&&(c.isVisible=!!a()),c.isVisible}return!1;function a(){switch(n.kind){case 345:case 353:case 347:return!!(n.parent&&n.parent.parent&&n.parent.parent.parent&&Yi(n.parent.parent.parent));case 208:return o_(n.parent.parent);case 260:if($o(n.name)&&!n.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(A0(n))return!0;let c=X(n);return!(ite(n)&32)&&!(n.kind!==271&&c.kind!==312&&c.flags&33554432)?Rh(c):o_(c);case 172:case 171:case 177:case 178:case 174:case 173:if(fp(n,6))return!1;case 176:case 180:case 179:case 181:case 169:case 268:case 184:case 185:case 187:case 183:case 188:case 189:case 192:case 193:case 196:case 202:return o_(n.parent);case 273:case 274:case 276:return!1;case 168:case 312:case 270:return!0;case 277:return!1;default:return!1}}}function RM(n,a){let c;n.parent&&n.parent.kind===277?c=hl(n,n.escapedText,2998271,void 0,n,!1):n.parent.kind===281&&(c=jE(n.parent,2998271));let u,_;return c&&(_=new Set,_.add(ba(c)),g(c.declarations)),u;function g(T){gn(T,M=>{let W=_A(M)||M;if(a?Zr(M).isVisible=!0:(u=u||[],yf(u,W)),$x(M)){let V=M.moduleReference,te=Fp(V),ye=hl(M,te.escapedText,901119,void 0,void 0,!1);ye&&_&&Jb(_,ba(ye))&&g(ye.declarations)}})}}function Lh(n,a){let c=nx(n,a);if(c>=0){let{length:u}=ud;for(let _=c;_=w1;c--){if(u8(ud[c],kE[c]))return-1;if(ud[c]===n&&kE[c]===a)return c}return-1}function u8(n,a){switch(a){case 0:return!!qi(n).type;case 5:return!!Zr(n).resolvedEnumType;case 2:return!!qi(n).declaredType;case 1:return!!n.resolvedBaseConstructorType;case 3:return!!n.resolvedReturnType;case 4:return!!n.immediateBaseConstraint;case 6:return!!n.resolvedTypeArguments;case 7:return!!n.baseTypesResolved;case 8:return!!qi(n).writeType;case 9:return Zr(n).parameterInitializerContainsUndefined!==void 0}return R.assertNever(a)}function H_(){return ud.pop(),kE.pop(),qg.pop()}function X(n){return Fn(A_(n),a=>{switch(a.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}}).parent}function Ae(n){let a=Ys(Du(n));return a.typeParameters?lv(a,mn(a.typeParameters,c=>G)):a}function Ue(n,a){let c=_a(n,a);return c?sr(c):void 0}function St(n,a){var c;let u;return Ue(n,a)||(u=(c=ox(n,a))==null?void 0:c.type)&&op(u,!0,!0)}function xt(n){return n&&(n.flags&1)!==0}function Ut(n){return n===pt||!!(n.flags&1&&n.aliasSymbol)}function Or(n,a){if(a!==0)return PA(n,!1,a);let c=Sr(n);return c&&qi(c).type||PA(n,!1,a)}function Wi(n,a,c){if(n=cc(n,W=>!(W.flags&98304)),n.flags&131072)return Na;if(n.flags&1048576)return ll(n,W=>Wi(W,a,c));let u=ti(mn(a,dv)),_=[],g=[];for(let W of _s(n)){let V=dC(W,8576);!ga(V,u)&&!(Tf(W)&6)&&NZ(W)?_.push(W):g.push(V)}if(BA(n)||GA(u)){if(g.length&&(u=ti([u,...g])),u.flags&131072)return n;let W=est();return W?lC(W,[n,u]):pt}let T=oa();for(let W of _)T.set(W.escapedName,Hge(W,!1));let M=Cs(c,T,Xe,Xe,hu(n));return M.objectFlags|=4194304,M}function Ci(n){return!!(n.flags&465829888)&&Rl(Fd(n)||un,32768)}function _i(n){let a=Fm(n,Ci)?ll(n,c=>c.flags&465829888?ly(c):c):n;return um(a,524288)}function Xi(n,a){let c=ds(n);return c?Vb(c,a):a}function ds(n){let a=Is(n);if(a&&z2(a)&&a.flowNode){let c=$a(n);if(c){let u=at(Eh.createStringLiteral(c),n),_=Yu(a)?a:Eh.createParenthesizedExpression(a),g=at(Eh.createElementAccessExpression(_,u),n);return ja(u,g),ja(g,n),_!==a&&ja(_,g),g.flowNode=a.flowNode,g}}}function Is(n){let a=n.parent.parent;switch(a.kind){case 208:case 303:return ds(a);case 209:return ds(n.parent);case 260:return a.initializer;case 226:return a.right}}function $a(n){let a=n.parent;return n.kind===208&&a.kind===206?Of(n.propertyName||n.name):n.kind===303||n.kind===304?Of(n.name):""+a.elements.indexOf(n)}function Of(n){let a=dv(n);return a.flags&384?""+a.value:void 0}function K_(n){let a=n.dotDotDotToken?32:0,c=Or(n.parent.parent,a);return c&&yg(n,c,!1)}function yg(n,a,c){if(xt(a))return a;let u=n.parent;J&&n.flags&33554432&&M0(n)?a=my(a):J&&u.parent.initializer&&!dm(B8e(u.parent.initializer),65536)&&(a=um(a,524288));let _;if(u.kind===206)if(n.dotDotDotToken){if(a=d_(a),a.flags&2||!k5(a))return Ve(n,f.Rest_types_may_only_be_created_from_object_types),pt;let g=[];for(let T of u.elements)T.dotDotDotToken||g.push(T.propertyName||T.name);_=Wi(a,g,n.symbol)}else{let g=n.propertyName||n.name,T=dv(g),M=Cp(a,T,32,g);_=Xi(n,M)}else{let g=mv(65|(n.dotDotDotToken?0:128),a,Me,u),T=u.elements.indexOf(n);if(n.dotDotDotToken){let M=ll(a,W=>W.flags&58982400?ly(W):W);_=ap(M,Oa)?ll(M,W=>FM(W,T)):zd(g)}else if(pv(a)){let M=u_(T),W=32|(c||XM(n)?16:0),V=kb(a,M,W,n.name)||pt;_=Xi(n,V)}else _=g}return n.initializer?hd(Mx(n))?J&&!dm($M(n,0),16777216)?_i(_):_:wee(n,ti([_i(_),$M(n,0)],2)):_}function ry(n){let a=rE(n);if(a)return Ti(a)}function iy(n){let a=ms(n,!0);return a.kind===106||a.kind===80&&Wm(a)===ze}function Ab(n){let a=ms(n,!0);return a.kind===209&&a.elements.length===0}function op(n,a=!1,c=!0){return J&&c?Bb(n,a):n}function PA(n,a,c){if(Oi(n)&&n.parent.parent.kind===249){let T=J_(ove(po(n.parent.parent.expression,c)));return T.flags&4456448?TOe(T):Ne}if(Oi(n)&&n.parent.parent.kind===250){let T=n.parent.parent;return aG(T)||G}if($o(n.parent))return K_(n);let u=Vo(n)&&!I_(n)||_p(n)||Cae(n),_=a&&$N(n),g=eo(n);if(JV(n))return g?xt(g)||g===un?g:pt:he?un:G;if(g)return op(g,u,_);if((fe||ir(n))&&Oi(n)&&!$o(n.name)&&!(ite(n)&32)&&!(n.flags&33554432)){if(!(JS(n)&6)&&(!n.initializer||iy(n.initializer)))return et;if(n.initializer&&Ab(n.initializer))return Hc}if(To(n)){let T=n.parent;if(T.kind===178&&iC(T)){let V=cl(Sr(n.parent),177);if(V){let te=lm(V),ye=mbe(T);return ye&&n===ye?(R.assert(!ye.type),sr(te.thisParameter)):us(te)}}let M=xat(T,n);if(M)return M;let W=n.symbol.escapedName==="this"?cWe(T):dWe(n);if(W)return op(W,!1,_)}if(dT(n)&&n.initializer){if(ir(n)&&!To(n)){let M=Ga(n,Sr(n),N2(n));if(M)return M}let T=wee(n,$M(n,c));return op(T,u,_)}if(Vo(n)&&(fe||ir(n)))if(pc(n)){let T=jr(n.parent.members,Al),M=T.length?oy(n.symbol,T):cu(n)&128?jZ(n.symbol):void 0;return M&&op(M,!0,_)}else{let T=ty(n.parent),M=T?Ib(n.symbol,T):cu(n)&128?jZ(n.symbol):void 0;return M&&op(M,!0,_)}if(M_(n))return wn;if($o(n.name))return C(n.name,!1,!0)}function ZD(n){if(n.valueDeclaration&&ur(n.valueDeclaration)){let a=qi(n);return a.isConstructorDeclaredProperty===void 0&&(a.isConstructorDeclaredProperty=!1,a.isConstructorDeclaredProperty=!!CM(n)&&oo(n.declarations,c=>ur(c)&&mee(c)&&(c.left.kind!==212||Qp(c.left.argumentExpression))&&!lc(void 0,c,n,c))),a.isConstructorDeclaredProperty}return!1}function DM(n){let a=n.valueDeclaration;return a&&Vo(a)&&!hd(a)&&!a.initializer&&(fe||ir(a))}function CM(n){if(n.declarations)for(let a of n.declarations){let c=ku(a,!1,!1);if(c&&(c.kind===176||$_(c)))return c}}function YE(n){let a=Gn(n.declarations[0]),c=Vi(n.escapedName),u=n.declarations.every(g=>ir(g)&&Ps(g)&&$h(g.expression)),_=u?L.createPropertyAccessExpression(L.createPropertyAccessExpression(L.createIdentifier("module"),L.createIdentifier("exports")),c):L.createPropertyAccessExpression(L.createIdentifier("exports"),c);return u&&ja(_.expression.expression,_.expression),ja(_.expression,_),ja(_,a),_.flowNode=a.endFlowNode,Vb(_,et,Me)}function oy(n,a){let c=ao(n.escapedName,"__#")?L.createPrivateIdentifier(n.escapedName.split("@")[1]):Vi(n.escapedName);for(let u of a){let _=L.createPropertyAccessExpression(L.createThis(),c);ja(_.expression,_),ja(_,u),_.flowNode=u.returnFlowNode;let g=eC(_,n);if(fe&&(g===et||g===Hc)&&Ve(n.valueDeclaration,f.Member_0_implicitly_has_an_1_type,Si(n),Vn(g)),!ap(g,F5))return Y8(g)}}function Ib(n,a){let c=ao(n.escapedName,"__#")?L.createPrivateIdentifier(n.escapedName.split("@")[1]):Vi(n.escapedName),u=L.createPropertyAccessExpression(L.createThis(),c);ja(u.expression,u),ja(u,a),u.flowNode=a.returnFlowNode;let _=eC(u,n);return fe&&(_===et||_===Hc)&&Ve(n.valueDeclaration,f.Member_0_implicitly_has_an_1_type,Si(n),Vn(_)),ap(_,F5)?void 0:Y8(_)}function eC(n,a){let c=a?.valueDeclaration&&(!DM(a)||cu(a.valueDeclaration)&128)&&jZ(a)||Me;return Vb(n,et,c)}function jp(n,a){let c=AI(n.valueDeclaration);if(c){let M=ir(c)?nE(c):void 0;return M&&M.typeExpression?Ti(M.typeExpression):n.valueDeclaration&&Ga(n.valueDeclaration,n,c)||zS(tc(c))}let u,_=!1,g=!1;if(ZD(n)&&(u=Ib(n,CM(n))),!u){let M;if(n.declarations){let W;for(let V of n.declarations){let te=ur(V)||ra(V)?V:Ps(V)?ur(V.parent)?V.parent:V:void 0;if(!te)continue;let ye=Ps(te)?k2(te):zl(te);(ye===4||ur(te)&&mee(te,ye))&&(NM(te)?_=!0:g=!0),ra(te)||(W=lc(W,te,n,V)),W||(M||(M=[])).push(ur(te)||ra(te)?$E(n,a,te,ye):Fr)}u=W}if(!u){if(!Nn(M))return pt;let W=_&&n.declarations?xb(M,n.declarations):void 0;if(g){let te=jZ(n);te&&((W||(W=[])).push(te),_=!0)}let V=gt(W,te=>!!(te.flags&-98305))?W:M;u=ti(V)}}let T=Hp(op(u,!1,g&&!_));return n.valueDeclaration&&ir(n.valueDeclaration)&&cc(T,M=>!!(M.flags&-98305))===Fr?(l0(n.valueDeclaration,G),G):T}function Ga(n,a,c){var u,_;if(!ir(n)||!c||!La(c)||c.properties.length)return;let g=oa();for(;ur(n)||wr(n);){let W=ff(n);(u=W?.exports)!=null&&u.size&&r_(g,W.exports),n=ur(n)?n.parent:n.parent.parent}let T=ff(n);(_=T?.exports)!=null&&_.size&&r_(g,T.exports);let M=Cs(a,g,Xe,Xe,Xe);return M.objectFlags|=4096,M}function lc(n,a,c,u){var _;let g=hd(a.parent);if(g){let T=Hp(Ti(g));if(n)!Ut(n)&&!Ut(T)&&!uy(n,T)&&m6e(void 0,n,u,T);else return T}if((_=c.parent)!=null&&_.valueDeclaration){let T=IS(c.parent);if(T.valueDeclaration){let M=hd(T.valueDeclaration);if(M){let W=_a(Ti(M),c.escapedName);if(W)return Db(W)}}}return n}function $E(n,a,c,u){if(ra(c)){if(a)return sr(a);let T=tc(c.arguments[2]),M=Ue(T,"value");if(M)return M;let W=Ue(T,"get");if(W){let te=QA(W);if(te)return us(te)}let V=Ue(T,"set");if(V){let te=QA(V);if(te)return xve(te)}return G}if(rx(c.left,c.right))return G;let _=u===1&&(wr(c.left)||qs(c.left))&&($h(c.left.expression)||Fe(c.left.expression)&&hT(c.left.expression)),g=a?sr(a):_?yu(tc(c.right)):zS(tc(c.right));if(g.flags&524288&&u===2&&n.escapedName==="export="){let T=c_(g),M=oa();vF(T.members,M);let W=M.size;a&&!a.exports&&(a.exports=oa()),(a||n).exports.forEach((te,ye)=>{var _e;let je=M.get(ye);if(je&&je!==te&&!(te.flags&2097152))if(te.flags&111551&&je.flags&111551){if(te.valueDeclaration&&je.valueDeclaration&&Gn(te.valueDeclaration)!==Gn(je.valueDeclaration)){let At=Vi(te.escapedName),rn=((_e=ri(je.valueDeclaration,ou))==null?void 0:_e.name)||je.valueDeclaration;Ma(Ve(te.valueDeclaration,f.Duplicate_identifier_0,At),Pr(rn,f._0_was_also_declared_here,At)),Ma(Ve(rn,f.Duplicate_identifier_0,At),Pr(te.valueDeclaration,f._0_was_also_declared_here,At))}let mt=Ka(te.flags|je.flags,ye);mt.links.type=ti([sr(te),sr(je)]),mt.valueDeclaration=je.valueDeclaration,mt.declarations=bo(je.declarations,te.declarations),M.set(ye,mt)}else M.set(ye,om(te,je));else M.set(ye,te)});let V=Cs(W!==M.size?void 0:T.symbol,M,T.callSignatures,T.constructSignatures,T.indexInfos);if(W===M.size&&(g.aliasSymbol&&(V.aliasSymbol=g.aliasSymbol,V.aliasTypeArguments=g.aliasTypeArguments),kr(g)&4)){V.aliasSymbol=g.symbol;let te=Us(g);V.aliasTypeArguments=Nn(te)?te:void 0}return V.objectFlags|=kr(g)&4096,V.symbol&&V.symbol.flags&32&&g===Wf(V.symbol)&&(V.objectFlags|=16777216),V}return HZ(g)?(l0(c,Zl),Zl):g}function rx(n,a){return wr(n)&&n.expression.kind===110&&EP(a,c=>Sd(n,c))}function NM(n){let a=ku(n,!1,!1);return a.kind===176||a.kind===262||a.kind===218&&!w2(a.parent)}function xb(n,a){return R.assert(n.length===a.length),n.filter((c,u)=>{let _=a[u],g=ur(_)?_:ur(_.parent)?_.parent:void 0;return g&&NM(g)})}function PM(n,a,c){if(n.initializer){let u=$o(n.name)?C(n.name,!0,!1):un;return op(wee(n,$M(n,c?0:1,u)))}return $o(n.name)?C(n.name,a,c):(c&&!hr(n)&&l0(n,G),a?hn:G)}function tr(n,a,c){let u=oa(),_,g=131200;gn(n.elements,M=>{let W=M.propertyName||M.name;if(M.dotDotDotToken){_=Wh(Ne,G,!1);return}let V=dv(W);if(!Qf(V)){g|=512;return}let te=Zf(V),ye=4|(M.initializer?16777216:0),_e=Ka(ye,te);_e.links.type=PM(M,a,c),_e.links.bindingElement=M,u.set(_e.escapedName,_e)});let T=Cs(void 0,u,Xe,Xe,_?[_]:Xe);return T.objectFlags|=g,a&&(T.pattern=n,T.objectFlags|=131072),T}function v(n,a,c){let u=n.elements,_=$s(u),g=_&&_.kind===208&&_.dotDotDotToken?_:void 0;if(u.length===0||u.length===1&&g)return ce>=2?sOe(G):Zl;let T=mn(u,te=>Gc(te)?G:PM(te,a,c)),M=pW(u,te=>!(te===g||Gc(te)||XM(te)),u.length-1)+1,W=mn(u,(te,ye)=>te===g?4:ye>=M?2:1),V=Fh(T,W);return a&&(V=Vwe(V),V.pattern=n,V.objectFlags|=131072),V}function C(n,a=!1,c=!1){return n.kind===206?tr(n,a,c):v(n,a,c)}function F(n,a){return Ht(PA(n,!0,0),n,a)}function le(n){let a=Zr(n);if(!a.resolvedType){let c=Ka(4096,"__importAttributes"),u=oa();gn(n.elements,g=>{let T=Ka(4,U6(g));T.parent=c,T.links.type=J_t(g),T.links.target=T,u.set(T.escapedName,T)});let _=Cs(c,u,Xe,Xe,Xe);_.objectFlags|=262272,a.resolvedType=_}return a.resolvedType}function Ke(n){let a=ff(n),c=Vat(!1);return c&&a&&a===c}function Ht(n,a,c){return n?(n.flags&4096&&Ke(a.parent)&&(n=Kge(a)),c&&ZZ(a,n),n.flags&8192&&(Xa(a)||!a.type)&&n.symbol!==Sr(a)&&(n=xi),Hp(n)):(n=To(a)&&a.dotDotDotToken?Zl:G,c&&(hr(a)||l0(a,n)),n)}function hr(n){let a=A_(n),c=a.kind===169?a.parent:a;return tG(c)}function eo(n){let a=hd(n);if(a)return Ti(a)}function js(n){let a=n.valueDeclaration;return a?(Xa(a)&&(a=Mx(a)),To(a)?OZ(a.parent):!1):!1}function a_(n,a){let c=qi(n);if(!c.type){let u=Rb(n,a);return!c.type&&!js(n)&&!a&&(c.type=u),u}return c.type}function Rb(n,a){if(n.flags&4194304)return Ae(n);if(n===_t)return G;if(n.flags&134217728&&n.valueDeclaration){let _=Sr(Gn(n.valueDeclaration)),g=Ka(_.flags,"exports");g.declarations=_.declarations?_.declarations.slice():[],g.parent=n,g.links.target=_,_.valueDeclaration&&(g.valueDeclaration=_.valueDeclaration),_.members&&(g.members=new Map(_.members)),_.exports&&(g.exports=new Map(_.exports));let T=oa();return T.set("exports",g),Cs(n,T,Xe,Xe,Xe)}R.assertIsDefined(n.valueDeclaration);let c=n.valueDeclaration;if(Yi(c)&&Jf(c))return c.statements.length?Hp(zS(po(c.statements[0].expression))):Na;if(Nv(c))return ZE(n);if(!Lh(n,0))return n.flags&512&&!(n.flags&67108864)?MM(n):Xa(c)&&a===1?pt:tC(n);let u;if(c.kind===277)u=Ht(eo(c)||tc(c.expression),c);else if(ur(c)||ir(c)&&(ra(c)||(wr(c)||XF(c))&&ur(c.parent)))u=jp(n);else if(wr(c)||qs(c)||Fe(c)||ss(c)||mp(c)||Sc(c)||Ec(c)||Ul(c)&&!bm(c)||hh(c)||Yi(c)){if(n.flags&9136)return MM(n);u=ur(c.parent)?jp(n):eo(c)||G}else if(mc(c))u=eo(c)||BFe(c);else if(M_(c))u=eo(c)||SWe(c);else if(Zu(c))u=eo(c)||ZM(c.name,0);else if(bm(c))u=eo(c)||GFe(c,0);else if(To(c)||Vo(c)||_p(c)||Oi(c)||Xa(c)||iN(c))u=F(c,!0);else if(gE(c))u=MM(n);else if($0(c))u=cZ(n);else return R.fail("Unhandled declaration kind! "+R.formatSyntaxKind(c.kind)+" for "+R.formatSymbol(n));return H_()?u:n.flags&512&&!(n.flags&67108864)?MM(n):Xa(c)&&a===1?u:tC(n)}function Om(n){if(n)switch(n.kind){case 177:return $f(n);case 178:return wie(n);case 172:return R.assert(I_(n)),hd(n)}}function QE(n){let a=Om(n);return a&&Ti(a)}function sZ(n){let a=mbe(n);return a&&a.symbol}function Uhe(n){return r0(lm(n))}function ZE(n){let a=qi(n);if(!a.type){if(!Lh(n,0))return pt;let c=cl(n,177),u=cl(n,178),_=ri(cl(n,172),Lu),g=c&&ir(c)&&ry(c)||QE(c)||QE(u)||QE(_)||c&&c.body&&Mee(c)||_&&_.initializer&&F(_,!0);g||(u&&!tG(u)?pd(fe,u,f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Si(n)):c&&!tG(c)?pd(fe,c,f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Si(n)):_&&!tG(_)&&pd(fe,_,f.Member_0_implicitly_has_an_1_type,Si(n),"any"),g=G),H_()||(Om(c)?Ve(c,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Si(n)):Om(u)||Om(_)?Ve(u,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Si(n)):c&&fe&&Ve(c,f._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Si(n)),g=G),a.type=g}return a.type}function HB(n){let a=qi(n);if(!a.writeType){if(!Lh(n,8))return pt;let c=cl(n,178)??ri(cl(n,172),Lu),u=QE(c);H_()||(Om(c)&&Ve(c,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Si(n)),u=G),a.writeType=u||ZE(n)}return a.writeType}function lZ(n){let a=Rp(Wf(n));return a.flags&8650752?a:a.flags&2097152?Vr(a.types,c=>!!(c.flags&8650752)):void 0}function MM(n){let a=qi(n),c=a;if(!a.type){let u=n.valueDeclaration&&Nee(n.valueDeclaration,!1);if(u){let _=bve(n,u);_&&(n=_,a=_.links)}c.type=a.type=KB(n)}return a.type}function KB(n){let a=n.valueDeclaration;if(n.flags&1536&&pN(n))return G;if(a&&(a.kind===226||Ps(a)&&a.parent.kind===226))return jp(n);if(n.flags&512&&a&&Yi(a)&&a.commonJsModuleIndicator){let u=Ip(n);if(u!==n){if(!Lh(n,0))return pt;let _=ts(n.exports.get("export=")),g=jp(_,_===u?void 0:u);return H_()?g:tC(n)}}let c=kf(16,n);if(n.flags&32){let u=lZ(n);return u?ha([c,u]):c}else return J&&n.flags&16777216?Bb(c,!0):c}function cZ(n){let a=qi(n);return a.type||(a.type=swe(n))}function dZ(n){let a=qi(n);if(!a.type){if(!Lh(n,0))return pt;let c=Oc(n),u=n.declarations&&Gp(Mm(n),!0),_=Wl(u?.declarations,g=>Ll(g)?eo(g):void 0);if(a.type=u?.declarations&&Xee(u.declarations)&&n.declarations.length?YE(u):Xee(n.declarations)?et:_||(Ed(c)&111551?sr(c):pt),!H_())return tC(u??n),a.type=pt}return a.type}function Hhe(n){let a=qi(n);return a.type||(a.type=io(sr(a.target),a.mapper))}function Khe(n){let a=qi(n);return a.writeType||(a.writeType=io(PS(a.target),a.mapper))}function tC(n){let a=n.valueDeclaration;if(a){if(hd(a))return Ve(n.valueDeclaration,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Si(n)),pt;fe&&(a.kind!==169||a.initializer)&&Ve(n.valueDeclaration,f._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Si(n))}else if(n.flags&2097152){let c=Mm(n);c&&Ve(c,f.Circular_definition_of_import_alias_0,Si(n))}return G}function uZ(n){let a=qi(n);return a.type||(R.assertIsDefined(a.deferralParent),R.assertIsDefined(a.deferralConstituents),a.type=a.deferralParent.flags&1048576?ti(a.deferralConstituents):ha(a.deferralConstituents)),a.type}function JB(n){let a=qi(n);return!a.writeType&&a.deferralWriteConstituents&&(R.assertIsDefined(a.deferralParent),R.assertIsDefined(a.deferralConstituents),a.writeType=a.deferralParent.flags&1048576?ti(a.deferralWriteConstituents):ha(a.deferralWriteConstituents)),a.writeType}function PS(n){let a=Tl(n);return n.flags&4?a&2?a&65536?JB(n)||uZ(n):n.links.writeType||n.links.type:Gb(sr(n),!!(n.flags&16777216)):n.flags&98304?a&1?Khe(n):HB(n):sr(n)}function sr(n,a){let c=Tl(n);return c&65536?uZ(n):c&1?Hhe(n):c&262144?sat(n):c&8192?Ect(n):n.flags&7?a_(n,a):n.flags&9136?MM(n):n.flags&8?cZ(n):n.flags&98304?ZE(n):n.flags&2097152?dZ(n):pt}function Db(n){return Gb(sr(n),!!(n.flags&16777216))}function Cb(n,a){return n!==void 0&&a!==void 0&&(kr(n)&4)!==0&&n.target===a}function av(n){return kr(n)&4?n.target:n}function nC(n,a){return c(n);function c(u){if(kr(u)&7){let _=av(u);return _===a||gt(Dp(_),c)}else if(u.flags&2097152)return gt(u.types,c);return!1}}function e0(n,a){for(let c of a)n=Ig(n,MA(Sr(c)));return n}function Rn(n,a){for(;;){if(n=n.parent,n&&ur(n)){let c=zl(n);if(c===6||c===3){let u=Sr(n.left);u&&u.parent&&!Fn(u.parent.valueDeclaration,_=>n===_)&&(n=u.parent.valueDeclaration)}}if(!n)return;switch(n.kind){case 263:case 231:case 264:case 179:case 180:case 173:case 184:case 185:case 324:case 262:case 174:case 218:case 219:case 265:case 352:case 353:case 347:case 345:case 200:case 194:{let u=Rn(n,a);if(n.kind===200)return Tn(u,MA(Sr(n.typeParameter)));if(n.kind===194)return bo(u,kOe(n));let _=e0(u,Dv(n)),g=a&&(n.kind===263||n.kind===231||n.kind===264||$_(n))&&Wf(Sr(n)).thisType;return g?Tn(_,g):_}case 348:let c=G2(n);c&&(n=c.valueDeclaration);break;case 327:{let u=Rn(n,a);return n.tags?e0(u,va(n.tags,_=>nm(_)?_.typeParameters:void 0)):u}}}}function Wr(n){var a;let c=n.flags&32||n.flags&16?n.valueDeclaration:(a=n.declarations)==null?void 0:a.find(u=>{if(u.kind===264)return!0;if(u.kind!==260)return!1;let _=u.initializer;return!!_&&(_.kind===218||_.kind===219)});return R.assert(!!c,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Rn(c)}function Nr(n){if(!n.declarations)return;let a;for(let c of n.declarations)(c.kind===264||c.kind===263||c.kind===231||$_(c)||F2(c))&&(a=e0(a,Dv(c)));return a}function Fi(n){return bo(Wr(n),Nr(n))}function Mi(n){let a=Ko(n,1);if(a.length===1){let c=a[0];if(!c.typeParameters&&c.parameters.length===1&&Jd(c)){let u=K5(c.parameters[0]);return xt(u)||E5(u)===G}}return!1}function ns(n){if(Ko(n,1).length>0)return!0;if(n.flags&8650752){let a=Fd(n);return!!a&&Mi(a)}return!1}function Ss(n){let a=wg(n.symbol);return a&&S_(a)}function Qd(n,a,c){let u=Nn(a),_=ir(c);return jr(Ko(n,1),g=>(_||u>=Oh(g.typeParameters))&&u<=Nn(g.typeParameters))}function kh(n,a,c){let u=Qd(n,a,c),_=mn(a,Ti);return Nc(u,g=>gt(g.typeParameters)?g8(g,_,ir(c)):g)}function Rp(n){if(!n.resolvedBaseConstructorType){let a=wg(n.symbol),c=a&&S_(a),u=Ss(n);if(!u)return n.resolvedBaseConstructorType=Me;if(!Lh(n,1))return pt;let _=po(u.expression);if(c&&u!==c&&(R.assert(!c.typeArguments),po(c.expression)),_.flags&2621440&&c_(_),!H_())return Ve(n.symbol.valueDeclaration,f._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Si(n.symbol)),n.resolvedBaseConstructorType=pt;if(!(_.flags&1)&&_!==We&&!ns(_)){let g=Ve(u.expression,f.Type_0_is_not_a_constructor_function_type,Vn(_));if(_.flags&262144){let T=wM(_),M=un;if(T){let W=Ko(T,1);W[0]&&(M=us(W[0]))}_.symbol.declarations&&Ma(g,Pr(_.symbol.declarations[0],f.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Si(_.symbol),Vn(M)))}return n.resolvedBaseConstructorType=pt}n.resolvedBaseConstructorType=_}return n.resolvedBaseConstructorType}function s_(n){let a=Xe;if(n.symbol.declarations)for(let c of n.symbol.declarations){let u=oR(c);if(u)for(let _ of u){let g=Ti(_);Ut(g)||(a===Xe?a=[g]:a.push(g))}}return a}function ay(n,a){Ve(n,f.Type_0_recursively_references_itself_as_a_base_type,Vn(a,void 0,2))}function Dp(n){if(!n.baseTypesResolved){if(Lh(n,7)&&(n.objectFlags&8?n.resolvedBaseTypes=[rC(n)]:n.symbol.flags&96?(n.symbol.flags&32&&p8(n),n.symbol.flags&64&&Oot(n)):R.fail("type must be class or interface"),!H_()&&n.symbol.declarations))for(let a of n.symbol.declarations)(a.kind===263||a.kind===264)&&ay(a,n);n.baseTypesResolved=!0}return n.resolvedBaseTypes}function rC(n){let a=Nc(n.typeParameters,(c,u)=>n.elementFlags[u]&8?Cp(c,It):c);return zd(ti(a||Xe),n.readonly)}function p8(n){n.resolvedBaseTypes=H6;let a=Pu(Rp(n));if(!(a.flags&2621441))return n.resolvedBaseTypes=Xe;let c=Ss(n),u,_=a.symbol?Ys(a.symbol):void 0;if(a.symbol&&a.symbol.flags&32&&wot(_))u=jwe(c,a.symbol);else if(a.flags&1)u=a;else{let T=kh(a,c.typeArguments,c);if(!T.length)return Ve(c.expression,f.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=Xe;u=us(T[0])}if(Ut(u))return n.resolvedBaseTypes=Xe;let g=d_(u);if(!qB(g)){let T=age(void 0,u),M=Fo(T,f.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Vn(g));return Qa.add(Pg(Gn(c.expression),c.expression,M)),n.resolvedBaseTypes=Xe}return n===g||nC(g,n)?(Ve(n.symbol.valueDeclaration,f.Type_0_recursively_references_itself_as_a_base_type,Vn(n,void 0,2)),n.resolvedBaseTypes=Xe):(n.resolvedBaseTypes===H6&&(n.members=void 0),n.resolvedBaseTypes=[g])}function wot(n){let a=n.outerTypeParameters;if(a){let c=a.length-1,u=Us(n);return a[c].symbol!==u[c].symbol}return!0}function qB(n){if(n.flags&262144){let a=Fd(n);if(a)return qB(a)}return!!(n.flags&67633153&&!Uu(n)||n.flags&2097152&&oo(n.types,qB))}function Oot(n){if(n.resolvedBaseTypes=n.resolvedBaseTypes||Xe,n.symbol.declarations){for(let a of n.symbol.declarations)if(a.kind===264&&SN(a))for(let c of SN(a)){let u=d_(Ti(c));Ut(u)||(qB(u)?n!==u&&!nC(u,n)?n.resolvedBaseTypes===Xe?n.resolvedBaseTypes=[u]:n.resolvedBaseTypes.push(u):ay(a,n):Ve(c,f.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function Wot(n){if(!n.declarations)return!0;for(let a of n.declarations)if(a.kind===264){if(a.flags&256)return!1;let c=SN(a);if(c){for(let u of c)if(Bl(u.expression)){let _=Vs(u.expression,788968,!0);if(!_||!(_.flags&64)||Wf(_).thisType)return!1}}}return!0}function Wf(n){let a=qi(n),c=a;if(!a.declaredType){let u=n.flags&32?1:2,_=bve(n,n.valueDeclaration&&Ipt(n.valueDeclaration));_&&(n=_,a=_.links);let g=c.declaredType=a.declaredType=kf(u,n),T=Wr(n),M=Nr(n);(T||M||u===1||!Wot(n))&&(g.objectFlags|=4,g.typeParameters=bo(T,M),g.outerTypeParameters=T,g.localTypeParameters=M,g.instantiations=new Map,g.instantiations.set(cm(g.typeParameters),g),g.target=g,g.resolvedTypeArguments=g.typeParameters,g.thisType=_f(n),g.thisType.isThisType=!0,g.thisType.constraint=g)}return a.declaredType}function iwe(n){var a;let c=qi(n);if(!c.declaredType){if(!Lh(n,2))return pt;let u=R.checkDefined((a=n.declarations)==null?void 0:a.find(F2),"Type alias symbol with no valid declaration found"),_=qf(u)?u.typeExpression:u.type,g=_?Ti(_):pt;if(H_()){let T=Nr(n);T&&(c.typeParameters=T,c.instantiations=new Map,c.instantiations.set(cm(T),g))}else g=pt,u.kind===347?Ve(u.typeExpression.type,f.Type_alias_0_circularly_references_itself,Si(n)):Ve(ou(u)&&u.name||u,f.Type_alias_0_circularly_references_itself,Si(n));c.declaredType=g}return c.declaredType}function pZ(n){return n.flags&1056&&n.symbol.flags&8?Ys(Du(n.symbol)):n}function owe(n){let a=qi(n);if(!a.declaredType){let c=[];if(n.declarations){for(let _ of n.declarations)if(_.kind===266){for(let g of _.members)if(iC(g)){let T=Sr(g),M=AC(g),W=cx(M!==void 0?nlt(M,ba(n),T):awe(T));qi(T).declaredType=W,c.push(yu(W))}}}let u=c.length?ti(c,1,n,void 0):awe(n);u.flags&1048576&&(u.flags|=1024,u.symbol=n),a.declaredType=u}return a.declaredType}function awe(n){let a=gg(32,n),c=gg(32,n);return a.regularType=a,a.freshType=c,c.regularType=a,c.freshType=c,a}function swe(n){let a=qi(n);if(!a.declaredType){let c=owe(Du(n));a.declaredType||(a.declaredType=c)}return a.declaredType}function MA(n){let a=qi(n);return a.declaredType||(a.declaredType=_f(n))}function Fot(n){let a=qi(n);return a.declaredType||(a.declaredType=Ys(Oc(n)))}function Ys(n){return lwe(n)||pt}function lwe(n){if(n.flags&96)return Wf(n);if(n.flags&524288)return iwe(n);if(n.flags&262144)return MA(n);if(n.flags&384)return owe(n);if(n.flags&8)return swe(n);if(n.flags&2097152)return Fot(n)}function XB(n){switch(n.kind){case 133:case 159:case 154:case 150:case 163:case 136:case 155:case 151:case 116:case 157:case 146:case 201:return!0;case 188:return XB(n.elementType);case 183:return!n.typeArguments||n.typeArguments.every(XB)}return!1}function zot(n){let a=kx(n);return!a||XB(a)}function cwe(n){let a=hd(n);return a?XB(a):!Lv(n)}function Bot(n){let a=$f(n),c=Dv(n);return(n.kind===176||!!a&&XB(a))&&n.parameters.every(cwe)&&c.every(zot)}function Got(n){if(n.declarations&&n.declarations.length===1){let a=n.declarations[0];if(a)switch(a.kind){case 172:case 171:return cwe(a);case 174:case 173:case 176:case 177:case 178:return Bot(a)}}return!1}function dwe(n,a,c){let u=oa();for(let _ of n)u.set(_.escapedName,c&&Got(_)?_:Xge(_,a));return u}function uwe(n,a){for(let c of a){if(pwe(c))continue;let u=n.get(c.escapedName);(!u||u.valueDeclaration&&ur(u.valueDeclaration)&&!ZD(u)&&!die(u.valueDeclaration))&&(n.set(c.escapedName,c),n.set(c.escapedName,c))}}function pwe(n){return!!n.valueDeclaration&&au(n.valueDeclaration)&&na(n.valueDeclaration)}function Jhe(n){if(!n.declaredProperties){let a=n.symbol,c=Nb(a);n.declaredProperties=JE(c),n.declaredCallSignatures=Xe,n.declaredConstructSignatures=Xe,n.declaredIndexInfos=Xe,n.declaredCallSignatures=MS(c.get("__call")),n.declaredConstructSignatures=MS(c.get("__new")),n.declaredIndexInfos=zwe(a)}return n}function qhe(n){if(!Ya(n)&&!qs(n))return!1;let a=Ya(n)?n.expression:n.argumentExpression;return Bl(a)&&Qf(Ya(n)?Eg(n):tc(a))}function f8(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===64}function YB(n){let a=No(n);return!!a&&qhe(a)}function iC(n){return!Wv(n)||YB(n)}function Vot(n){return n6(n)&&!qhe(n)}function jot(n,a,c){R.assert(!!(Tl(n)&4096),"Expected a late-bound symbol."),n.flags|=c,qi(a.symbol).lateSymbol=n,n.declarations?a.symbol.isReplaceableByMethod||n.declarations.push(a):n.declarations=[a],c&111551&&(!n.valueDeclaration||n.valueDeclaration.kind!==a.kind)&&(n.valueDeclaration=a)}function fwe(n,a,c,u){R.assert(!!u.symbol,"The member is expected to have a symbol.");let _=Zr(u);if(!_.resolvedSymbol){_.resolvedSymbol=u.symbol;let g=ur(u)?u.left:u.name,T=qs(g)?tc(g.argumentExpression):Eg(g);if(Qf(T)){let M=Zf(T),W=u.symbol.flags,V=c.get(M);V||c.set(M,V=Ka(0,M,4096));let te=a&&a.get(M);if(!(n.flags&32)&&(V.flags&uA(W)||te)){let ye=te?bo(te.declarations,V.declarations):V.declarations,_e=!(T.flags&8192)&&Vi(M)||As(g);gn(ye,je=>Ve(No(je)||je,f.Property_0_was_also_declared_here,_e)),Ve(g||u,f.Duplicate_property_0,_e),V=Ka(0,M,4096)}return V.links.nameType=T,jot(V,u,W),V.parent?R.assert(V.parent===n,"Existing symbol parent should match new one"):V.parent=n,_.resolvedSymbol=V}}return _.resolvedSymbol}function Xhe(n,a){let c=qi(n);if(!c[a]){let u=a==="resolvedExports",_=u?n.flags&1536?xA(n).exports:n.exports:n.members;c[a]=_||K;let g=oa();for(let W of n.declarations||Xe){let V=nie(W);if(V)for(let te of V)u===pc(te)&&YB(te)&&fwe(n,_,g,te)}let T=IS(n).assignmentDeclarationMembers;if(T){let W=Oo(T.values());for(let V of W){let te=zl(V),ye=te===3||ur(V)&&mee(V,te)||te===9||te===6;u===!ye&&YB(V)&&fwe(n,_,g,V)}}let M=K1(_,g);if(n.flags&33554432&&c.cjsExportMerged&&n.declarations)for(let W of n.declarations){let V=qi(W.symbol)[a];if(!M){M=V;continue}V&&V.forEach((te,ye)=>{let _e=M.get(ye);if(!_e)M.set(ye,te);else{if(_e===te)return;M.set(ye,om(_e,te))}})}c[a]=M||K}return c[a]}function Nb(n){return n.flags&6256?Xhe(n,"resolvedMembers"):n.members||K}function fZ(n){if(n.flags&106500&&n.escapedName==="__computed"){let a=qi(n);if(!a.lateSymbol&>(n.declarations,YB)){let c=ts(n.parent);gt(n.declarations,pc)?xp(c):Nb(c)}return a.lateSymbol||(a.lateSymbol=n)}return n}function Up(n,a,c){if(kr(n)&4){let u=n.target,_=Us(n);return Nn(u.typeParameters)===Nn(_)?lv(u,bo(_,[a||u.thisType])):n}else if(n.flags&2097152){let u=Nc(n.types,_=>Up(_,a,c));return u!==n.types?ha(u):n}return c?Pu(n):n}function mwe(n,a,c,u){let _,g,T,M,W;OG(c,u,0,c.length)?(g=a.symbol?Nb(a.symbol):oa(a.declaredProperties),T=a.declaredCallSignatures,M=a.declaredConstructSignatures,W=a.declaredIndexInfos):(_=Np(c,u),g=dwe(a.declaredProperties,_,c.length===1),T=kZ(a.declaredCallSignatures,_),M=kZ(a.declaredConstructSignatures,_),W=BOe(a.declaredIndexInfos,_));let V=Dp(a);if(V.length){if(a.symbol&&g===Nb(a.symbol)){let ye=oa(a.declaredProperties),_e=mge(a.symbol);_e&&ye.set("__index",_e),g=ye}hf(n,g,T,M,W);let te=$s(u);for(let ye of V){let _e=te?Up(io(ye,_),te):ye;uwe(g,_s(_e)),T=bo(T,Ko(_e,0)),M=bo(M,Ko(_e,1));let je=_e!==G?hu(_e):[Wh(Ne,G,!1)];W=bo(W,jr(je,mt=>!sge(W,mt.keyType)))}}hf(n,g,T,M,W)}function Uot(n){mwe(n,Jhe(n),Xe,Xe)}function Hot(n){let a=Jhe(n.target),c=bo(a.typeParameters,[a.thisType]),u=Us(n),_=u.length===c.length?u:bo(u,[n]);mwe(n,a,c,_)}function vg(n,a,c,u,_,g,T,M){let W=new h(Yt,M);return W.declaration=n,W.typeParameters=a,W.parameters=u,W.thisParameter=c,W.resolvedReturnType=_,W.resolvedTypePredicate=g,W.minArgumentCount=T,W.resolvedMinArgumentCount=void 0,W.target=void 0,W.mapper=void 0,W.compositeSignatures=void 0,W.compositeKind=void 0,W}function m8(n){let a=vg(n.declaration,n.typeParameters,n.thisParameter,n.parameters,void 0,void 0,n.minArgumentCount,n.flags&167);return a.target=n.target,a.mapper=n.mapper,a.compositeSignatures=n.compositeSignatures,a.compositeKind=n.compositeKind,a}function _we(n,a){let c=m8(n);return c.compositeSignatures=a,c.compositeKind=1048576,c.target=void 0,c.mapper=void 0,c}function Kot(n,a){if((n.flags&24)===a)return n;n.optionalCallSignatureCache||(n.optionalCallSignatureCache={});let c=a===8?"inner":"outer";return n.optionalCallSignatureCache[c]||(n.optionalCallSignatureCache[c]=Jot(n,a))}function Jot(n,a){R.assert(a===8||a===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");let c=m8(n);return c.flags|=a,c}function hwe(n,a){if(Jd(n)){let _=n.parameters.length-1,g=n.parameters[_].escapedName,T=sr(n.parameters[_]);if(Oa(T))return[c(T,_,g)];if(!a&&T.flags&1048576&&oo(T.types,Oa))return mn(T.types,M=>c(M,_,g))}return[n.parameters];function c(_,g,T){let M=Us(_),W=u(_,T),V=mn(M,(te,ye)=>{let _e=W&&W[ye]?W[ye]:YM(n,g+ye,_),je=_.target.elementFlags[ye],mt=je&12?32768:je&2?16384:0,At=Ka(1,_e,mt);return At.links.type=je&4?zd(te):te,At});return bo(n.parameters.slice(0,g),V)}function u(_,g){let T=new Map;return mn(_.target.labeledElementDeclarations,(M,W)=>{let V=Ive(M,W,g),te=T.get(V);return te===void 0?(T.set(V,1),V):(T.set(V,te+1),`${V}_${te}`)})}}function qot(n){let a=Rp(n),c=Ko(a,1),u=wg(n.symbol),_=!!u&&Qr(u,64);if(c.length===0)return[vg(void 0,n.localTypeParameters,void 0,Xe,n,void 0,0,_?4:0)];let g=Ss(n),T=ir(g),M=i5(g),W=Nn(M),V=[];for(let te of c){let ye=Oh(te.typeParameters),_e=Nn(te.typeParameters);if(T||W>=ye&&W<=_e){let je=_e?yZ(te,Mb(M,te.typeParameters,ye,T)):m8(te);je.typeParameters=n.localTypeParameters,je.resolvedReturnType=n,je.flags=_?je.flags|4:je.flags&-5,V.push(je)}}return V}function mZ(n,a,c,u,_){for(let g of n)if(v5(g,a,c,u,_,c?Elt:x8))return g}function Xot(n,a,c){if(a.typeParameters){if(c>0)return;for(let _=1;_1&&(c=c===void 0?u:-1);for(let _ of n[u])if(!a||!mZ(a,_,!1,!1,!0)){let g=Xot(n,_,u);if(g){let T=_;if(g.length>1){let M=_.thisParameter,W=gn(g,V=>V.thisParameter);if(W){let V=ha(to(g,te=>te.thisParameter&&sr(te.thisParameter)));M=UA(W,V)}T=_we(_,g),T.thisParameter=M}(a||(a=[])).push(T)}}}if(!Nn(a)&&c!==-1){let u=n[c!==void 0?c:0],_=u.slice();for(let g of n)if(g!==u){let T=g[0];if(R.assert(!!T,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),_=T.typeParameters&>(_,M=>!!M.typeParameters&&!gwe(T.typeParameters,M.typeParameters))?void 0:mn(_,M=>Qot(M,T)),!_)break}a=_}return a||Xe}function gwe(n,a){if(Nn(n)!==Nn(a))return!1;if(!n||!a)return!0;let c=Np(a,n);for(let u=0;u=_?n:a,T=g===n?a:n,M=g===n?u:_,W=Bh(n)||Bh(a),V=W&&!Bh(g),te=new Array(M+(V?1:0));for(let ye=0;ye=Q_(g)&&ye>=Q_(T),sn=ye>=u?void 0:YM(n,ye),nr=ye>=_?void 0:YM(a,ye),Mn=sn===nr?sn:sn?nr?void 0:sn:nr,an=Ka(1|(rn&&!At?16777216:0),Mn||`arg${ye}`,At?32768:rn?16384:0);an.links.type=At?zd(mt):mt,te[ye]=an}if(V){let ye=Ka(1,"args",32768);ye.links.type=zd(f_(T,M)),T===a&&(ye.links.type=io(ye.links.type,c)),te[M]=ye}return te}function Qot(n,a){let c=n.typeParameters||a.typeParameters,u;n.typeParameters&&a.typeParameters&&(u=Np(a.typeParameters,n.typeParameters));let _=n.declaration,g=$ot(n,a,u),T=Yot(n.thisParameter,a.thisParameter,u),M=Math.max(n.minArgumentCount,a.minArgumentCount),W=vg(_,c,T,g,void 0,void 0,M,(n.flags|a.flags)&167);return W.compositeKind=1048576,W.compositeSignatures=bo(n.compositeKind!==2097152&&n.compositeSignatures||[n],[a]),u?W.mapper=n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures?FS(n.mapper,u):u:n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures&&(W.mapper=n.mapper),W}function ywe(n){let a=hu(n[0]);if(a){let c=[];for(let u of a){let _=u.keyType;oo(n,g=>!!bg(g,_))&&c.push(Wh(_,ti(mn(n,g=>n0(g,_))),gt(n,g=>bg(g,_).isReadonly)))}return c}return Xe}function Zot(n){let a=Yhe(mn(n.types,_=>_===Lt?[cn]:Ko(_,0))),c=Yhe(mn(n.types,_=>Ko(_,1))),u=ywe(n.types);hf(n,K,a,c,u)}function $B(n,a){return n?a?ha([n,a]):n:a}function vwe(n){let a=vv(n,u=>Ko(u,1).length>0),c=mn(n,Mi);if(a>0&&a===vv(c,u=>u)){let u=c.indexOf(!0);c[u]=!1}return c}function eat(n,a,c,u){let _=[];for(let g=0;gM);for(let M=0;M<_.length;M++){let W=n.types[M];if(!g[M]){let V=Ko(W,1);V.length&&T>0&&(V=mn(V,te=>{let ye=m8(te);return ye.resolvedReturnType=eat(us(te),_,g,M),ye})),c=bwe(c,V)}a=bwe(a,Ko(W,0)),u=nu(hu(W),(V,te)=>Ewe(V,te,!1),u)}hf(n,K,a||Xe,c||Xe,u||Xe)}function bwe(n,a){for(let c of a)(!n||oo(n,u=>!v5(u,c,!1,!1,!1,x8)))&&(n=Tn(n,c));return n}function Ewe(n,a,c){if(n)for(let u=0;u{var W;!(M.flags&418)&&!(M.flags&512&&((W=M.declarations)!=null&&W.length)&&oo(M.declarations,Pd))&&T.set(M.escapedName,M)}),c=T}let _;if(hf(n,c,Xe,Xe,Xe),a.flags&32){let T=Wf(a),M=Rp(T);M.flags&11272192?(c=oa(DA(c)),uwe(c,_s(M))):M===G&&(_=Wh(Ne,G,!1))}let g=vZ(c);if(g?u=_ge(g):(_&&(u=Tn(u,_)),a.flags&384&&(Ys(a).flags&32||gt(n.properties,T=>!!(sr(T).flags&296)))&&(u=Tn(u,zr))),hf(n,c,Xe,Xe,u||Xe),a.flags&8208&&(n.callSignatures=MS(a)),a.flags&32){let T=Wf(a),M=a.members?MS(a.members.get("__constructor")):Xe;a.flags&16&&(M=Hr(M.slice(),to(n.callSignatures,W=>$_(W.declaration)?vg(W.declaration,W.typeParameters,W.thisParameter,W.parameters,T,void 0,W.minArgumentCount,W.flags&167):void 0))),M.length||(M=qot(T)),n.constructSignatures=M}}function rat(n,a,c){return io(n,Np([a.indexType,a.objectType],[u_(0),Fh([c])]))}function iat(n){let a=gf(n.mappedType);if(!(a.flags&1048576||a.flags&2097152))return;let c=a.flags&1048576?a.origin:a;if(!c||!(c.flags&2097152))return;let u=ha(c.types.filter(_=>_!==n.constraintType));return u!==Fr?u:void 0}function oat(n){let a=bg(n.source,Ne),c=wh(n.mappedType),u=!(c&1),_=c&4?0:16777216,g=a?[Wh(Ne,tee(a.type,n.mappedType,n.constraintType),u&&a.isReadonly)]:Xe,T=oa(),M=iat(n);for(let W of _s(n.source)){if(M){let ye=dC(W,8576);if(!ga(ye,M))continue}let V=8192|(u&&m_(W)?8:0),te=Ka(4|W.flags&_,W.escapedName,V);if(te.declarations=W.declarations,te.links.nameType=qi(W).nameType,te.links.propertyType=sr(W),n.constraintType.type.flags&8388608&&n.constraintType.type.objectType.flags&262144&&n.constraintType.type.indexType.flags&262144){let ye=n.constraintType.type.objectType,_e=rat(n.mappedType,n.constraintType.type,ye);te.links.mappedType=_e,te.links.constraintType=J_(ye)}else te.links.mappedType=n.mappedType,te.links.constraintType=n.constraintType;T.set(W.escapedName,te)}hf(n,T,Xe,Xe,g)}function QB(n){if(n.flags&4194304){let a=Pu(n.type);return zb(a)?uOe(a):J_(a)}if(n.flags&16777216){if(n.root.isDistributive){let a=n.checkType,c=QB(a);if(c!==a)return $ge(n,VA(n.root.checkType,c,n.mapper),!1)}return n}if(n.flags&1048576)return ll(n,QB,!0);if(n.flags&2097152){let a=n.types;return a.length===2&&a[0].flags&76&&a[1]===ac?n:ha(Nc(n.types,QB))}return n}function $he(n){return Tl(n)&4096}function Qhe(n,a,c,u){for(let _ of _s(n))u(dC(_,a));if(n.flags&1)u(Ne);else for(let _ of hu(n))(!c||_.keyType.flags&134217732)&&u(_.keyType)}function aat(n){let a=oa(),c;hf(n,K,Xe,Xe,Xe);let u=l_(n),_=gf(n),g=n.target||n,T=sv(g),M=_Z(g)!==2,W=sy(g),V=Pu(LA(n)),te=wh(n),ye=Ce?128:8576;oC(n)?Qhe(V,ye,Ce,_e):qA(QB(_),_e),hf(n,a,Xe,Xe,c||Xe);function _e(mt){let At=T?io(T,T8(n.mapper,u,mt)):mt;qA(At,rn=>je(mt,rn))}function je(mt,At){if(Qf(At)){let rn=Zf(At),sn=a.get(rn);if(sn)sn.links.nameType=ti([sn.links.nameType,At]),sn.links.keyType=ti([sn.links.keyType,mt]);else{let nr=Qf(mt)?_a(V,Zf(mt)):void 0,Mn=!!(te&4||!(te&8)&&nr&&nr.flags&16777216),an=!!(te&1||!(te&2)&&nr&&m_(nr)),On=J&&!Mn&&nr&&nr.flags&16777216,Ln=nr?$he(nr):0,Yn=Ka(4|(Mn?16777216:0),rn,Ln|262144|(an?8:0)|(On?524288:0));Yn.links.mappedType=n,Yn.links.nameType=At,Yn.links.keyType=mt,nr&&(Yn.links.syntheticOrigin=nr,Yn.declarations=M?nr.declarations:void 0),a.set(rn,Yn)}}else if(bZ(At)||At.flags&33){let rn=At.flags&5?Ne:At.flags&40?It:At,sn=io(W,T8(n.mapper,u,mt)),nr=_8(V,At),Mn=!!(te&1||!(te&2)&&nr?.isReadonly),an=Wh(rn,sn,Mn);c=Ewe(c,an,!0)}}}function sat(n){if(!n.links.type){let a=n.links.mappedType;if(!Lh(n,0))return a.containsError=!0,pt;let c=sy(a.target||a),u=T8(a.mapper,l_(a),n.links.keyType),_=io(c,u),g=J&&n.flags&16777216&&!Rl(_,49152)?Bb(_,!0):n.links.checkFlags&524288?YZ(_):_;H_()||(Ve(D,f.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Si(n),Vn(a)),g=pt),n.links.type=g}return n.links.type}function l_(n){return n.typeParameter||(n.typeParameter=MA(Sr(n.declaration.typeParameter)))}function gf(n){return n.constraintType||(n.constraintType=Nu(l_(n))||pt)}function sv(n){return n.declaration.nameType?n.nameType||(n.nameType=io(Ti(n.declaration.nameType),n.mapper)):void 0}function sy(n){return n.templateType||(n.templateType=n.declaration.type?io(op(Ti(n.declaration.type),!0,!!(wh(n)&4)),n.mapper):pt)}function Swe(n){return kx(n.declaration.typeParameter)}function oC(n){let a=Swe(n);return a.kind===198&&a.operator===143}function LA(n){if(!n.modifiersType)if(oC(n))n.modifiersType=io(Ti(Swe(n).type),n.mapper);else{let a=Gge(n.declaration),c=gf(a),u=c&&c.flags&262144?Nu(c):c;n.modifiersType=u&&u.flags&4194304?io(u.type,n.mapper):un}return n.modifiersType}function wh(n){let a=n.declaration;return(a.readonlyToken?a.readonlyToken.kind===41?2:1:0)|(a.questionToken?a.questionToken.kind===41?8:4:0)}function Twe(n){let a=wh(n);return a&8?-1:a&4?1:0}function Zhe(n){let a=Twe(n),c=LA(n);return a||(Uu(c)?Twe(c):0)}function lat(n){return!!(kr(n)&32&&wh(n)&4)}function Uu(n){if(kr(n)&32){let a=gf(n);if(GA(a))return!0;let c=sv(n);if(c&&GA(io(c,WS(l_(n),a))))return!0}return!1}function _Z(n){let a=sv(n);return a?ga(a,l_(n))?1:2:0}function c_(n){return n.members||(n.flags&524288?n.objectFlags&4?Hot(n):n.objectFlags&3?Uot(n):n.objectFlags&1024?oat(n):n.objectFlags&16?nat(n):n.objectFlags&32?aat(n):R.fail("Unhandled object type "+R.formatObjectFlags(n.objectFlags)):n.flags&1048576?Zot(n):n.flags&2097152?tat(n):R.fail("Unhandled type "+R.formatTypeFlags(n.flags))),n}function Pb(n){return n.flags&524288?c_(n).properties:Xe}function t0(n,a){if(n.flags&524288){let u=c_(n).members.get(a);if(u&&wm(u))return u}}function ZB(n){if(!n.resolvedProperties){let a=oa();for(let c of n.types){for(let u of _s(c))if(!a.has(u.escapedName)){let _=t5(n,u.escapedName,!!(n.flags&2097152));_&&a.set(u.escapedName,_)}if(n.flags&1048576&&hu(c).length===0)break}n.resolvedProperties=JE(a)}return n.resolvedProperties}function _s(n){return n=LM(n),n.flags&3145728?ZB(n):Pb(n)}function cat(n,a){n=LM(n),n.flags&3670016&&c_(n).members.forEach((c,u)=>{ex(c,u)&&a(c,u)})}function dat(n,a){return a.properties.some(u=>{let _=u.name&&(Xm(u.name)?Hu(mk(u.name)):dv(u.name)),g=_&&Qf(_)?Zf(_):void 0,T=g===void 0?void 0:Ue(n,g);return!!T&&C8(T)&&!ga(fx(u),T)})}function uat(n){let a=ti(n);if(!(a.flags&1048576))return sbe(a);let c=oa();for(let u of n)for(let{escapedName:_}of sbe(u))if(!c.has(_)){let g=Nwe(a,_);g&&c.set(_,g)}return Oo(c.values())}function kA(n){return n.flags&262144?Nu(n):n.flags&8388608?fat(n):n.flags&16777216?xwe(n):Fd(n)}function Nu(n){return e5(n)?wM(n):void 0}function pat(n,a){let c=A8(n);return!!c&&wA(c,a)}function wA(n,a=0){var c;return a<5&&!!(n&&(n.flags&262144&>((c=n.symbol)==null?void 0:c.declarations,u=>Qr(u,4096))||n.flags&3145728&>(n.types,u=>wA(u,a))||n.flags&8388608&&wA(n.objectType,a+1)||n.flags&16777216&&wA(xwe(n),a+1)||n.flags&33554432&&wA(n.baseType,a)||kr(n)&32&&pat(n,a)||zb(n)&&Kl(kS(n),(u,_)=>!!(n.target.elementFlags[_]&8)&&wA(u,a))>=0))}function fat(n){return e5(n)?mat(n):void 0}function ege(n){let a=dy(n,!1);return a!==n?a:kA(n)}function mat(n){if(ige(n))return DZ(n.objectType,n.indexType);let a=ege(n.indexType);if(a&&a!==n.indexType){let u=kb(n.objectType,a,n.accessFlags);if(u)return u}let c=ege(n.objectType);if(c&&c!==n.objectType)return kb(c,n.indexType,n.accessFlags)}function tge(n){if(!n.resolvedDefaultConstraint){let a=Yst(n),c=o0(n);n.resolvedDefaultConstraint=xt(a)?c:xt(c)?a:ti([a,c])}return n.resolvedDefaultConstraint}function Awe(n){if(n.resolvedConstraintOfDistributive!==void 0)return n.resolvedConstraintOfDistributive||void 0;if(n.root.isDistributive&&n.restrictiveInstantiation!==n){let a=dy(n.checkType,!1),c=a===n.checkType?kA(a):a;if(c&&c!==n.checkType){let u=$ge(n,VA(n.root.checkType,c,n.mapper),!0);if(!(u.flags&131072))return n.resolvedConstraintOfDistributive=u,u}}n.resolvedConstraintOfDistributive=!1}function Iwe(n){return Awe(n)||tge(n)}function xwe(n){return e5(n)?Iwe(n):void 0}function _at(n,a){let c,u=!1;for(let _ of n)if(_.flags&465829888){let g=kA(_);for(;g&&g.flags&21233664;)g=kA(g);g&&(c=Tn(c,g),a&&(c=Tn(c,_)))}else(_.flags&469892092||zh(_))&&(u=!0);if(c&&(a||u)){if(u)for(let _ of n)(_.flags&469892092||zh(_))&&(c=Tn(c,_));return h5(ha(c),!1)}}function Fd(n){if(n.flags&464781312||zb(n)){let a=nge(n);return a!==Bs&&a!==ed?a:void 0}return n.flags&4194304?ks:void 0}function ly(n){return Fd(n)||n}function e5(n){return nge(n)!==ed}function nge(n){if(n.resolvedBaseConstraint)return n.resolvedBaseConstraint;let a=[];return n.resolvedBaseConstraint=c(n);function c(g){if(!g.immediateBaseConstraint){if(!Lh(g,4))return ed;let T,M=UZ(g);if((a.length<10||a.length<50&&!zo(a,M))&&(a.push(M),T=_(dy(g,!1)),a.pop()),!H_()){if(g.flags&262144){let W=hge(g);if(W){let V=Ve(W,f.Type_parameter_0_has_a_circular_constraint,Vn(g));D&&!N0(W,D)&&!N0(D,W)&&Ma(V,Pr(D,f.Circularity_originates_in_type_at_this_location))}}T=ed}g.immediateBaseConstraint=T||Bs}return g.immediateBaseConstraint}function u(g){let T=c(g);return T!==Bs&&T!==ed?T:void 0}function _(g){if(g.flags&262144){let T=wM(g);return g.isThisType||!T?T:u(T)}if(g.flags&3145728){let T=g.types,M=[],W=!1;for(let V of T){let te=u(V);te?(te!==V&&(W=!0),M.push(te)):W=!0}return W?g.flags&1048576&&M.length===T.length?ti(M):g.flags&2097152&&M.length?ha(M):void 0:g}if(g.flags&4194304)return ks;if(g.flags&134217728){let T=g.types,M=to(T,u);return M.length===T.length?FA(g.texts,M):Ne}if(g.flags&268435456){let T=u(g.type);return T&&T!==g.type?sx(g.symbol,T):Ne}if(g.flags&8388608){if(ige(g))return u(DZ(g.objectType,g.indexType));let T=u(g.objectType),M=u(g.indexType),W=T&&M&&kb(T,M,g.accessFlags);return W&&u(W)}if(g.flags&16777216){let T=Iwe(g);return T&&u(T)}if(g.flags&33554432)return u(Ege(g));if(zb(g)){let T=mn(kS(g),(M,W)=>{let V=M.flags&262144&&g.target.elementFlags[W]&8&&u(M)||M;return V!==M&&ap(V,te=>s0(te)&&!zb(te))?V:M});return Fh(T,g.target.elementFlags,g.target.readonly,g.target.labeledElementDeclarations)}return g}}function hat(n,a){return n.resolvedApparentType||(n.resolvedApparentType=Up(n,a,!0))}function rge(n){if(n.default)n.default===cd&&(n.default=ed);else if(n.target){let a=rge(n.target);n.default=a?io(a,n.mapper):Bs}else{n.default=cd;let a=n.symbol&&gn(n.symbol.declarations,u=>fl(u)&&u.default),c=a?Ti(a):Bs;n.default===cd&&(n.default=c)}return n.default}function OA(n){let a=rge(n);return a!==Bs&&a!==ed?a:void 0}function gat(n){return rge(n)!==ed}function Rwe(n){return!!(n.symbol&&gn(n.symbol.declarations,a=>fl(a)&&a.default))}function Dwe(n){return n.resolvedApparentType||(n.resolvedApparentType=yat(n))}function yat(n){let a=n.target??n,c=A8(a);if(c&&!a.declaration.nameType){let u=LA(n),_=Uu(u)?Dwe(u):Fd(u);if(_&&ap(_,g=>s0(g)||Cwe(g)))return io(a,VA(c,_,n.mapper))}return n}function Cwe(n){return!!(n.flags&2097152)&&oo(n.types,s0)}function ige(n){let a;return!!(n.flags&8388608&&kr(a=n.objectType)&32&&!Uu(a)&&GA(n.indexType)&&!(wh(a)&8)&&!a.declaration.nameType)}function Pu(n){let a=n.flags&465829888?Fd(n)||un:n,c=kr(a);return c&32?Dwe(a):c&4&&a!==n?Up(a,n):a.flags&2097152?hat(a,n):a.flags&402653316?Ql:a.flags&296?gc:a.flags&2112?tst():a.flags&528?sl:a.flags&12288?nOe():a.flags&67108864?Na:a.flags&4194304?ks:a.flags&2&&!J?Na:a}function LM(n){return d_(Pu(d_(n)))}function Nwe(n,a,c){var u,_,g;let T,M,W,V=n.flags&1048576,te,ye=4,_e=V?0:8,je=!1;for(let Yn of n.types){let jn=Pu(Yn);if(!(Ut(jn)||jn.flags&131072)){let $n=_a(jn,a,c),xo=$n?Tf($n):0;if($n){if($n.flags&106500&&(te??(te=V?0:16777216),V?te|=$n.flags&16777216:te&=$n.flags),!T)T=$n;else if($n!==T)if((SC($n)||$n)===(SC(T)||T)&&sye(T,$n,(Wo,fo)=>Wo===fo?-1:0)===-1)je=!!T.parent&&!!Nn(Nr(T.parent));else{M||(M=new Map,M.set(ba(T),T));let Wo=ba($n);M.has(Wo)||M.set(Wo,$n)}V&&m_($n)?_e|=8:!V&&!m_($n)&&(_e&=-9),_e|=(xo&6?0:256)|(xo&4?512:0)|(xo&2?1024:0)|(xo&256?2048:0),rve($n)||(ye=2)}else if(V){let vo=!f8(a)&&ox(jn,a);vo?(_e|=32|(vo.isReadonly?8:0),W=Tn(W,Oa(jn)?JZ(jn)||Me:vo.type)):d0(jn)&&!(kr(jn)&2097152)?(_e|=32,W=Tn(W,Me)):_e|=16}}}if(!T||V&&(M||_e&48)&&_e&1536&&!(M&&vat(M.values())))return;if(!M&&!(_e&16)&&!W)if(je){let Yn=(u=ri(T,dh))==null?void 0:u.links,jn=UA(T,Yn?.type);return jn.parent=(g=(_=T.valueDeclaration)==null?void 0:_.symbol)==null?void 0:g.parent,jn.links.containingType=n,jn.links.mapper=Yn?.mapper,jn.links.writeType=PS(T),jn}else return T;let mt=M?Oo(M.values()):[T],At,rn,sn,nr=[],Mn,an,On=!1;for(let Yn of mt){an?Yn.valueDeclaration&&Yn.valueDeclaration!==an&&(On=!0):an=Yn.valueDeclaration,At=Hr(At,Yn.declarations);let jn=sr(Yn);rn||(rn=jn,sn=qi(Yn).nameType);let $n=PS(Yn);(Mn||$n!==jn)&&(Mn=Tn(Mn||nr.slice(),$n)),jn!==rn&&(_e|=64),(C8(jn)||zA(jn))&&(_e|=128),jn.flags&131072&&jn!==sd&&(_e|=131072),nr.push(jn)}Hr(nr,W);let Ln=Ka(4|(te??0),a,ye|_e);return Ln.links.containingType=n,!On&&an&&(Ln.valueDeclaration=an,an.symbol.parent&&(Ln.parent=an.symbol.parent)),Ln.declarations=At,Ln.links.nameType=sn,nr.length>2?(Ln.links.checkFlags|=65536,Ln.links.deferralParent=n,Ln.links.deferralConstituents=nr,Ln.links.deferralWriteConstituents=Mn):(Ln.links.type=V?ti(nr):ha(nr),Mn&&(Ln.links.writeType=V?ti(Mn):ha(Mn))),Ln}function Pwe(n,a,c){var u,_,g;let T=c?(u=n.propertyCacheWithoutObjectFunctionPropertyAugment)==null?void 0:u.get(a):(_=n.propertyCache)==null?void 0:_.get(a);return T||(T=Nwe(n,a,c),T&&((c?n.propertyCacheWithoutObjectFunctionPropertyAugment||(n.propertyCacheWithoutObjectFunctionPropertyAugment=oa()):n.propertyCache||(n.propertyCache=oa())).set(a,T),c&&!(Tl(T)&48)&&!((g=n.propertyCache)!=null&&g.get(a))&&(n.propertyCache||(n.propertyCache=oa())).set(a,T))),T}function vat(n){let a;for(let c of n){if(!c.declarations)return;if(!a){a=new Set(c.declarations);continue}if(a.forEach(u=>{zo(c.declarations,u)||a.delete(u)}),a.size===0)return}return a}function t5(n,a,c){let u=Pwe(n,a,c);return u&&!(Tl(u)&16)?u:void 0}function d_(n){return n.flags&1048576&&n.objectFlags&16777216?n.resolvedReducedType||(n.resolvedReducedType=bat(n)):n.flags&2097152?(n.objectFlags&16777216||(n.objectFlags|=16777216|(gt(ZB(n),Eat)?33554432:0)),n.objectFlags&33554432?Fr:n):n}function bat(n){let a=Nc(n.types,d_);if(a===n.types)return n;let c=ti(a);return c.flags&1048576&&(c.resolvedReducedType=c),c}function Eat(n){return Mwe(n)||Lwe(n)}function Mwe(n){return!(n.flags&16777216)&&(Tl(n)&131264)===192&&!!(sr(n).flags&131072)}function Lwe(n){return!n.valueDeclaration&&!!(Tl(n)&1024)}function oge(n){return!!(n.flags&1048576&&n.objectFlags&16777216&>(n.types,oge)||n.flags&2097152&&Sat(n))}function Sat(n){let a=n.uniqueLiteralFilledInstantiation||(n.uniqueLiteralFilledInstantiation=io(n,mo));return d_(a)!==a}function age(n,a){if(a.flags&2097152&&kr(a)&33554432){let c=Vr(ZB(a),Mwe);if(c)return Fo(n,f.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Vn(a,void 0,536870912),Si(c));let u=Vr(ZB(a),Lwe);if(u)return Fo(n,f.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Vn(a,void 0,536870912),Si(u))}return n}function _a(n,a,c,u){var _,g;if(n=LM(n),n.flags&524288){let T=c_(n),M=T.members.get(a);if(M&&!u&&((_=n.symbol)==null?void 0:_.flags)&512&&((g=qi(n.symbol).typeOnlyExportStarMap)!=null&&g.has(a)))return;if(M&&wm(M,u))return M;if(c)return;let W=T===tn?Lt:T.callSignatures.length?Un:T.constructSignatures.length?go:void 0;if(W){let V=t0(W,a);if(V)return V}return t0(Re,a)}if(n.flags&2097152){let T=t5(n,a,!0);return T||(c?void 0:t5(n,a,c))}if(n.flags&1048576)return t5(n,a,c)}function n5(n,a){if(n.flags&3670016){let c=c_(n);return a===0?c.callSignatures:c.constructSignatures}return Xe}function Ko(n,a){let c=n5(LM(n),a);if(a===0&&!Nn(c)&&n.flags&1048576){if(n.arrayFallbackSignatures)return n.arrayFallbackSignatures;let u;if(ap(n,_=>{var g;return!!((g=_.symbol)!=null&&g.parent)&&Tat(_.symbol.parent)&&(u?u===_.symbol.escapedName:(u=_.symbol.escapedName,!0))})){let _=ll(n,T=>Ob((kwe(T.symbol.parent)?Qo:qo).typeParameters[0],T.mapper)),g=zd(_,Fm(n,T=>kwe(T.symbol.parent)));return n.arrayFallbackSignatures=Ko(Ue(g,u),a)}n.arrayFallbackSignatures=c}return c}function Tat(n){return!n||!qo.symbol||!Qo.symbol?!1:!!i_(n,qo.symbol)||!!i_(n,Qo.symbol)}function kwe(n){return!n||!Qo.symbol?!1:!!i_(n,Qo.symbol)}function sge(n,a){return Vr(n,c=>c.keyType===a)}function lge(n,a){let c,u,_;for(let g of n)g.keyType===Ne?c=g:ix(a,g.keyType)&&(u?(_||(_=[u])).push(g):u=g);return _?Wh(un,ha(mn(_,g=>g.type)),nu(_,(g,T)=>g&&T.isReadonly,!0)):u||(c&&ix(a,Ne)?c:void 0)}function ix(n,a){return ga(n,a)||a===Ne&&ga(n,It)||a===It&&(n===ls||!!(n.flags&128)&&rg(n.value))}function cge(n){return n.flags&3670016?c_(n).indexInfos:Xe}function hu(n){return cge(LM(n))}function bg(n,a){return sge(hu(n),a)}function n0(n,a){var c;return(c=bg(n,a))==null?void 0:c.type}function dge(n,a){return hu(n).filter(c=>ix(a,c.keyType))}function _8(n,a){return lge(hu(n),a)}function ox(n,a){return _8(n,f8(a)?xi:Hu(Vi(a)))}function wwe(n){var a;let c;for(let u of Dv(n))c=Ig(c,MA(u.symbol));return c?.length?c:Ec(n)?(a=kM(n))==null?void 0:a.typeParameters:void 0}function uge(n){let a=[];return n.forEach((c,u)=>{RS(u)||a.push(c)}),a}function hZ(n,a){if(qc(n))return;let c=ju(be,'"'+n+'"',512);return c&&a?ts(c):c}function h8(n){if(xI(n)||pk(n)||fk(n))return!0;if(n.initializer){let c=lm(n.parent),u=n.parent.parameters.indexOf(n);return R.assert(u>=0),u>=Q_(c,3)}let a=_T(n.parent);return a?!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=Dee(a).length:!1}function Aat(n){return Vo(n)&&!I_(n)&&n.questionToken}function r5(n,a,c,u){return{kind:n,parameterName:a,parameterIndex:c,type:u}}function Oh(n){let a=0;if(n)for(let c=0;c=c&&g<=_){let T=n?n.slice():[];for(let W=g;W<_;W++)T[W]=pt;let M=xye(u);for(let W=g;W<_;W++){let V=OA(a[W]);u&&V&&(uy(V,un)||uy(V,Na))&&(V=G),T[W]=V?io(V,Np(a,T)):M}return T.length=a.length,T}return n&&n.slice()}function lm(n){let a=Zr(n);if(!a.resolvedSignature){let c=[],u=0,_=0,g,T=ir(n)?nF(n):void 0,M=!1,W=_T(n),V=nR(n);!W&&ir(n)&&Sie(n)&&!tre(n)&&!rE(n)&&(u|=32);for(let mt=V?1:0;mtW.arguments.length&&!sn||fk(At)||(_=c.length)}if((n.kind===177||n.kind===178)&&iC(n)&&(!M||!g)){let mt=n.kind===177?178:177,At=cl(Sr(n),mt);At&&(g=sZ(At))}T&&T.typeExpression&&(g=UA(Ka(1,"this"),Ti(T.typeExpression)));let ye=vE(n)?dE(n):n,_e=ye&&Pl(ye)?Wf(ts(ye.parent.symbol)):void 0,je=_e?_e.localTypeParameters:wwe(n);(FV(n)||ir(n)&&Iat(n,c))&&(u|=1),(xR(n)&&Qr(n,64)||Pl(n)&&Qr(n.parent,64))&&(u|=4),a.resolvedSignature=vg(n,je,g,c,void 0,void 0,_,u)}return a.resolvedSignature}function Iat(n,a){if(vE(n)||!pge(n))return!1;let c=$s(n.parameters),u=c?Lx(c):iE(n).filter($m),_=Wl(u,T=>T.typeExpression&&j4(T.typeExpression.type)?T.typeExpression.type:void 0),g=Ka(3,"args",32768);return _?g.links.type=zd(Ti(_.type)):(g.links.checkFlags|=65536,g.links.deferralParent=Fr,g.links.deferralConstituents=[Zl],g.links.deferralWriteConstituents=[Zl]),_&&a.pop(),a.push(g),!0}function kM(n){if(!(ir(n)&&Ws(n)))return;let a=nE(n);return a?.typeExpression&&QA(Ti(a.typeExpression))}function xat(n,a){let c=kM(n);if(!c)return;let u=n.parameters.indexOf(a);return a.dotDotDotToken?J5(c,u):f_(c,u)}function Rat(n){let a=kM(n);return a&&us(a)}function pge(n){let a=Zr(n);return a.containsArgumentsReference===void 0&&(a.flags&512?a.containsArgumentsReference=!0:a.containsArgumentsReference=c(n.body)),a.containsArgumentsReference;function c(u){if(!u)return!1;switch(u.kind){case 80:return u.escapedText===Wt.escapedName&&Q8(u)===Wt;case 172:case 174:case 177:case 178:return u.name.kind===167&&c(u.name);case 211:case 212:return c(u.expression);case 303:return c(u.initializer);default:return!Cj(u)&&!Xh(u)&&!!Bo(u,c)}}}function MS(n){if(!n||!n.declarations)return Xe;let a=[];for(let c=0;c0&&u.body){let _=n.declarations[c-1];if(u.parent===_.parent&&u.kind===_.kind&&u.pos===_.end)continue}if(ir(u)&&u.jsDoc){let _=vj(u);if(Nn(_)){for(let g of _){let T=g.typeExpression;T.type===void 0&&!Pl(u)&&l0(T,G),a.push(lm(T))}continue}}a.push(!z0(u)&&!bm(u)&&kM(u)||lm(u))}}return a}function Owe(n){let a=_u(n,n);if(a){let c=Ip(a);if(c)return sr(c)}return G}function r0(n){if(n.thisParameter)return sr(n.thisParameter)}function Ff(n){if(!n.resolvedTypePredicate){if(n.target){let a=Ff(n.target);n.resolvedTypePredicate=a?ult(a,n.mapper):Pe}else if(n.compositeSignatures)n.resolvedTypePredicate=xst(n.compositeSignatures,n.compositeKind)||Pe;else{let a=n.declaration&&$f(n.declaration),c;if(!a){let u=kM(n.declaration);u&&n!==u&&(c=Ff(u))}n.resolvedTypePredicate=a&&kk(a)?Dat(a,n):c||Pe}R.assert(!!n.resolvedTypePredicate)}return n.resolvedTypePredicate===Pe?void 0:n.resolvedTypePredicate}function Dat(n,a){let c=n.parameterName,u=n.type&&Ti(n.type);return c.kind===197?r5(n.assertsModifier?2:0,void 0,void 0,u):r5(n.assertsModifier?3:1,c.escapedText,Kl(a.parameters,_=>_.escapedName===c.escapedText),u)}function Wwe(n,a,c){return a!==2097152?ti(n,c):ha(n)}function us(n){if(!n.resolvedReturnType){if(!Lh(n,3))return pt;let a=n.target?io(us(n.target),n.mapper):n.compositeSignatures?io(Wwe(mn(n.compositeSignatures,us),n.compositeKind,2),n.mapper):aC(n.declaration)||(Fl(n.declaration.body)?G:Mee(n.declaration));if(n.flags&8?a=g8e(a):n.flags&16&&(a=Bb(a)),!H_()){if(n.declaration){let c=$f(n.declaration);if(c)Ve(c,f.Return_type_annotation_circularly_references_itself);else if(fe){let u=n.declaration,_=No(u);_?Ve(_,f._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,As(_)):Ve(u,f.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}a=G}n.resolvedReturnType=a}return n.resolvedReturnType}function aC(n){if(n.kind===176)return Wf(ts(n.parent.symbol));let a=$f(n);if(vE(n)){let c=rR(n);if(c&&Pl(c.parent)&&!a)return Wf(ts(c.parent.parent.symbol))}if(nR(n))return Ti(n.parameters[0].type);if(a)return Ti(a);if(n.kind===177&&iC(n)){let c=ir(n)&&ry(n);if(c)return c;let u=cl(Sr(n),178),_=QE(u);if(_)return _}return Rat(n)}function gZ(n){return n.compositeSignatures&>(n.compositeSignatures,gZ)||!n.resolvedReturnType&&nx(n,3)>=0}function Cat(n){return Fwe(n)||G}function Fwe(n){if(Jd(n)){let a=sr(n.parameters[n.parameters.length-1]),c=Oa(a)?JZ(a):a;return c&&n0(c,It)}}function g8(n,a,c,u){let _=fge(n,Mb(a,n.typeParameters,Oh(n.typeParameters),c));if(u){let g=YWe(us(_));if(g){let T=m8(g);T.typeParameters=u;let M=m8(_);return M.resolvedReturnType=WA(T),M}}return _}function fge(n,a){let c=n.instantiations||(n.instantiations=new Map),u=cm(a),_=c.get(u);return _||c.set(u,_=yZ(n,a)),_}function yZ(n,a){return fC(n,Nat(n,a),!0)}function Nat(n,a){return Np(n.typeParameters,a)}function y8(n){return n.typeParameters?n.erasedSignatureCache||(n.erasedSignatureCache=Pat(n)):n}function Pat(n){return fC(n,GOe(n.typeParameters),!0)}function Mat(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=Lat(n)):n}function Lat(n){return g8(n,mn(n.typeParameters,a=>a.target&&!Nu(a.target)?a.target:a),ir(n.declaration))}function kat(n){let a=n.typeParameters;if(a){if(n.baseSignatureCache)return n.baseSignatureCache;let c=GOe(a),u=Np(a,mn(a,g=>Nu(g)||un)),_=mn(a,g=>io(g,u)||un);for(let g=0;g{bZ(_)&&!sge(a,_)&&a.push(Wh(_,c.type?Ti(c.type):G,fp(c,8),c))})}return a}return Xe}function bZ(n){return!!(n.flags&4108)||zA(n)||!!(n.flags&2097152)&&!uC(n)&>(n.types,bZ)}function hge(n){return to(jr(n.symbol&&n.symbol.declarations,fl),kx)[0]}function Bwe(n,a){var c;let u;if((c=n.symbol)!=null&&c.declarations){for(let _ of n.symbol.declarations)if(_.parent.kind===195){let[g=_.parent,T]=Tie(_.parent.parent);if(T.kind===183&&!a){let M=T,W=Bve(M);if(W){let V=M.typeArguments.indexOf(g);if(V()=>Xft(M,W,mt))),_e=io(te,ye);_e!==n&&(u=Tn(u,_e))}}}}else if(T.kind===169&&T.dotDotDotToken||T.kind===191||T.kind===202&&T.dotDotDotToken)u=Tn(u,zd(un));else if(T.kind===204)u=Tn(u,Ne);else if(T.kind===168&&T.parent.kind===200)u=Tn(u,ks);else if(T.kind===200&&T.type&&ms(T.type)===_.parent&&T.parent.kind===194&&T.parent.extendsType===T&&T.parent.checkType.kind===200&&T.parent.checkType.type){let M=T.parent.checkType,W=Ti(M.type);u=Tn(u,io(W,WS(MA(Sr(M.typeParameter)),M.typeParameter.constraint?Ti(M.typeParameter.constraint):ks)))}}}return u&&ha(u)}function wM(n){if(!n.constraint)if(n.target){let a=Nu(n.target);n.constraint=a?io(a,n.mapper):Bs}else{let a=hge(n);if(!a)n.constraint=Bwe(n)||Bs;else{let c=Ti(a);c.flags&1&&!Ut(c)&&(c=a.parent.parent.kind===200?ks:un),n.constraint=c}}return n.constraint===Bs?void 0:n.constraint}function Gwe(n){let a=cl(n.symbol,168),c=nm(a.parent)?QF(a.parent):a.parent;return c&&ff(c)}function cm(n){let a="";if(n){let c=n.length,u=0;for(;u1&&(a+=":"+g),u+=g}}return a}function ax(n,a){return n?`@${ba(n)}`+(a?`:${cm(a)}`:""):""}function EZ(n,a){let c=0;for(let u of n)(a===void 0||!(u.flags&a))&&(c|=kr(u));return c&458752}function sC(n,a){return gt(a)&&n===Mo?un:lv(n,a)}function lv(n,a){let c=cm(a),u=n.instantiations.get(c);return u||(u=kf(4,n.symbol),n.instantiations.set(c,u),u.objectFlags|=a?EZ(a):0,u.target=n,u.resolvedTypeArguments=a),u}function Vwe(n){let a=gg(n.flags,n.symbol);return a.objectFlags=n.objectFlags,a.target=n.target,a.resolvedTypeArguments=n.resolvedTypeArguments,a}function gge(n,a,c,u,_){if(!u){u=lx(a);let T=pC(u);_=c?uv(T,c):T}let g=kf(4,n.symbol);return g.target=n,g.node=a,g.mapper=c,g.aliasSymbol=u,g.aliasTypeArguments=_,g}function Us(n){var a,c;if(!n.resolvedTypeArguments){if(!Lh(n,6))return((a=n.target.localTypeParameters)==null?void 0:a.map(()=>pt))||Xe;let u=n.node,_=u?u.kind===183?bo(n.target.outerTypeParameters,Wee(u,n.target.localTypeParameters)):u.kind===188?[Ti(u.elementType)]:mn(u.elements,Ti):Xe;H_()?n.resolvedTypeArguments=n.mapper?uv(_,n.mapper):_:(n.resolvedTypeArguments=((c=n.target.localTypeParameters)==null?void 0:c.map(()=>pt))||Xe,Ve(n.node||D,n.target.symbol?f.Type_arguments_for_0_circularly_reference_themselves:f.Tuple_type_arguments_circularly_reference_themselves,n.target.symbol&&Si(n.target.symbol)))}return n.resolvedTypeArguments}function cv(n){return Nn(n.target.typeParameters)}function jwe(n,a){let c=Ys(ts(a)),u=c.localTypeParameters;if(u){let _=Nn(n.typeArguments),g=Oh(u),T=ir(n);if(!(!fe&&T)&&(_u.length)){let V=T&&By(n)&&!a1(n.parent),te=g===u.length?V?f.Expected_0_type_arguments_provide_these_with_an_extends_tag:f.Generic_type_0_requires_1_type_argument_s:V?f.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:f.Generic_type_0_requires_between_1_and_2_type_arguments,ye=Vn(c,void 0,2);if(Ve(n,te,ye,g,u.length),!T)return pt}if(n.kind===183&&cOe(n,Nn(n.typeArguments)!==u.length))return gge(c,n,void 0);let W=bo(c.outerTypeParameters,Mb(i5(n),u,g,T));return lv(c,W)}return LS(n,a)?c:pt}function lC(n,a,c,u){let _=Ys(n);if(_===dn){let V=L3.get(n.escapedName);if(V!==void 0&&a&&a.length===1)return V===4?yge(a[0]):sx(n,a[0])}let g=qi(n),T=g.typeParameters,M=cm(a)+ax(c,u),W=g.instantiations.get(M);return W||g.instantiations.set(M,W=UOe(_,Np(T,Mb(a,T,Oh(T),ir(n.valueDeclaration))),c,u)),W}function wat(n,a){if(Tl(a)&1048576){let _=i5(n),g=ax(a,_),T=ke.get(g);return T||(T=sc(1,"error",void 0,`alias ${g}`),T.aliasSymbol=a,T.aliasTypeArguments=_,ke.set(g,T)),T}let c=Ys(a),u=qi(a).typeParameters;if(u){let _=Nn(n.typeArguments),g=Oh(u);if(_u.length)return Ve(n,g===u.length?f.Generic_type_0_requires_1_type_argument_s:f.Generic_type_0_requires_between_1_and_2_type_arguments,Si(a),g,u.length),pt;let T=lx(n),M=T&&(Uwe(a)||!Uwe(T))?T:void 0,W;if(M)W=pC(M);else if(gF(n)){let V=cC(n,2097152,!0);if(V&&V!==lt){let te=Oc(V);te&&te.flags&524288&&(M=te,W=i5(n)||(u?[]:void 0))}}return lC(a,i5(n),M,W)}return LS(n,a)?c:pt}function Uwe(n){var a;let c=(a=n.declarations)==null?void 0:a.find(F2);return!!(c&&Wp(c))}function Oat(n){switch(n.kind){case 183:return n.typeName;case 233:let a=n.expression;if(Bl(a))return a}}function Hwe(n){return n.parent?`${Hwe(n.parent)}.${n.escapedName}`:n.escapedName}function SZ(n){let c=(n.kind===166?n.right:n.kind===211?n.name:n).escapedText;if(c){let u=n.kind===166?SZ(n.left):n.kind===211?SZ(n.expression):void 0,_=u?`${Hwe(u)}.${c}`:c,g=se.get(_);return g||(se.set(_,g=Ka(524288,c,1048576)),g.parent=u,g.links.declaredType=Ft),g}return lt}function cC(n,a,c){let u=Oat(n);if(!u)return lt;let _=Vs(u,a,c);return _&&_!==lt?_:c?lt:SZ(u)}function TZ(n,a){if(a===lt)return pt;if(a=xM(a)||a,a.flags&96)return jwe(n,a);if(a.flags&524288)return wat(n,a);let c=lwe(a);if(c)return LS(n,a)?yu(c):pt;if(a.flags&111551&&AZ(n)){let u=Wat(n,a);return u||(cC(n,788968),sr(a))}return pt}function Wat(n,a){let c=Zr(n);if(!c.resolvedJSDocType){let u=sr(a),_=u;if(a.valueDeclaration){let g=n.kind===205&&n.qualifier;u.symbol&&u.symbol!==a&&g&&(_=TZ(n,u.symbol))}c.resolvedJSDocType=_}return c.resolvedJSDocType}function yge(n){return vge(n)?Kwe(n,un):n}function vge(n){return!!(n.flags&3145728&>(n.types,vge)||n.flags&33554432&&!OM(n)&&vge(n.baseType)||n.flags&524288&&!zh(n)||n.flags&432275456&&!zA(n))}function OM(n){return!!(n.flags&33554432&&n.constraint.flags&2)}function bge(n,a){return a.flags&3||a===n||n.flags&1?n:Kwe(n,a)}function Kwe(n,a){let c=`${gu(n)}>${gu(a)}`,u=Ao.get(c);if(u)return u;let _=hg(33554432);return _.baseType=n,_.constraint=a,Ao.set(c,_),_}function Ege(n){return OM(n)?n.baseType:ha([n.constraint,n.baseType])}function Jwe(n){return n.kind===189&&n.elements.length===1}function qwe(n,a,c){return Jwe(a)&&Jwe(c)?qwe(n,a.elements[0],c.elements[0]):wb(Ti(a))===wb(n)?Ti(c):void 0}function Fat(n,a){let c,u=!0;for(;a&&!Hi(a)&&a.kind!==327;){let _=a.parent;if(_.kind===169&&(u=!u),(u||n.flags&8650752)&&_.kind===194&&a===_.trueType){let g=qwe(n,_.checkType,_.extendsType);g&&(c=Tn(c,g))}else if(n.flags&262144&&_.kind===200&&!_.nameType&&a===_.type){let g=Ti(_);if(l_(g)===wb(n)){let T=A8(g);if(T){let M=Nu(T);M&&ap(M,s0)&&(c=Tn(c,ti([It,ls])))}}}a=_}return c?bge(n,ha(c)):n}function AZ(n){return!!(n.flags&16777216)&&(n.kind===183||n.kind===205)}function LS(n,a){return n.typeArguments?(Ve(n,f.Type_0_is_not_generic,a?Si(a):n.typeName?As(n.typeName):C3),!1):!0}function Xwe(n){if(Fe(n.typeName)){let a=n.typeArguments;switch(n.typeName.escapedText){case"String":return LS(n),Ne;case"Number":return LS(n),It;case"Boolean":return LS(n),gi;case"Void":return LS(n),er;case"Undefined":return LS(n),Me;case"Null":return LS(n),ue;case"Function":case"function":return LS(n),Lt;case"array":return(!a||!a.length)&&!fe?Zl:void 0;case"promise":return(!a||!a.length)&&!fe?X5(G):void 0;case"Object":if(a&&a.length===2){if(HF(n)){let c=Ti(a[0]),u=Ti(a[1]),_=c===Ne||c===It?[Wh(c,u,!1)]:Xe;return Cs(void 0,K,Xe,Xe,_)}return G}return LS(n),fe?void 0:G}}}function zat(n){let a=Ti(n.type);return J?S5(a,65536):a}function Sge(n){let a=Zr(n);if(!a.resolvedType){if(Cg(n)&&cT(n.parent))return a.resolvedSymbol=lt,a.resolvedType=tc(n.parent.expression);let c,u,_=788968;AZ(n)&&(u=Xwe(n),u||(c=cC(n,_,!0),c===lt?c=cC(n,_|111551):cC(n,_),u=TZ(n,c))),u||(c=cC(n,_),u=TZ(n,c)),a.resolvedSymbol=c,a.resolvedType=u}return a.resolvedType}function i5(n){return mn(n.typeArguments,Ti)}function Ywe(n){let a=Zr(n);if(!a.resolvedType){let c=hFe(n);a.resolvedType=yu(Hp(c))}return a.resolvedType}function $we(n,a){function c(_){let g=_.declarations;if(g)for(let T of g)switch(T.kind){case 263:case 264:case 266:return T}}if(!n)return a?Mo:Na;let u=Ys(n);return u.flags&524288?Nn(u.typeParameters)!==a?(Ve(c(n),f.Global_type_0_must_have_1_type_parameter_s,yl(n),a),a?Mo:Na):u:(Ve(c(n),f.Global_type_0_must_be_a_class_or_interface_type,yl(n)),a?Mo:Na)}function Tge(n,a){return WM(n,111551,a?f.Cannot_find_global_value_0:void 0)}function Age(n,a){return WM(n,788968,a?f.Cannot_find_global_type_0:void 0)}function IZ(n,a,c){let u=WM(n,788968,c?f.Cannot_find_global_type_0:void 0);if(u&&(Ys(u),Nn(qi(u).typeParameters)!==a)){let _=u.declarations&&Vr(u.declarations,Tm);Ve(_,f.Global_type_0_must_have_1_type_parameter_s,yl(u),a);return}return u}function WM(n,a,c){return hl(void 0,n,a,c,n,!1,!1,!1)}function ec(n,a,c){let u=Age(n,c);return u||c?$we(u,a):void 0}function Bat(){return Ih||(Ih=ec("TypedPropertyDescriptor",1,!0)||Mo)}function Gat(){return Zn||(Zn=ec("TemplateStringsArray",0,!0)||Na)}function Qwe(){return ii||(ii=ec("ImportMeta",0,!0)||Na)}function Zwe(){if(!Yr){let n=Ka(0,"ImportMetaExpression"),a=Qwe(),c=Ka(4,"meta",8);c.parent=n,c.links.type=a;let u=oa([c]);n.members=u,Yr=Cs(n,u,Xe,Xe,Xe)}return Yr}function eOe(n){return no||(no=ec("ImportCallOptions",0,n))||Na}function Ige(n){return ka||(ka=ec("ImportAttributes",0,n))||Na}function tOe(n){return Ru||(Ru=Tge("Symbol",n))}function Vat(n){return Pf||(Pf=Age("SymbolConstructor",n))}function nOe(){return z_||(z_=ec("Symbol",0,!1))||Na}function o5(n){return Ug||(Ug=ec("Promise",1,n))||Mo}function rOe(n){return Wd||(Wd=ec("PromiseLike",1,n))||Mo}function xge(n){return Hg||(Hg=Tge("Promise",n))}function jat(n){return Sp||(Sp=ec("PromiseConstructorLike",0,n))||Na}function xZ(n){return O||(O=ec("AsyncIterable",1,n))||Mo}function Uat(n){return Se||(Se=ec("AsyncIterator",3,n))||Mo}function Hat(n){return nt||(nt=ec("AsyncIterableIterator",1,n))||Mo}function Kat(n){return jt||(jt=ec("AsyncGenerator",3,n))||Mo}function Rge(n){return cg||(cg=ec("Iterable",1,n))||Mo}function Jat(n){return Bu||(Bu=ec("Iterator",3,n))||Mo}function qat(n){return Z||(Z=ec("IterableIterator",1,n))||Mo}function Xat(n){return rt||(rt=ec("Generator",3,n))||Mo}function Yat(n){return wt||(wt=ec("IteratorYieldResult",1,n))||Mo}function $at(n){return zt||(zt=ec("IteratorReturnResult",1,n))||Mo}function iOe(n){return wa||(wa=ec("Disposable",0,n))||Na}function Qat(n){return wl||(wl=ec("AsyncDisposable",0,n))||Na}function oOe(n,a=0){let c=WM(n,788968,void 0);return c&&$we(c,a)}function Zat(){return dd||(dd=IZ("Extract",2,!0)||lt),dd===lt?void 0:dd}function est(){return Ic||(Ic=IZ("Omit",2,!0)||lt),Ic===lt?void 0:Ic}function Dge(n){return Tp||(Tp=IZ("Awaited",1,n)||(n?lt:void 0)),Tp===lt?void 0:Tp}function tst(){return Gu||(Gu=ec("BigInt",0,!1))||Na}function nst(n){return Dm??(Dm=ec("ClassDecoratorContext",1,n))??Mo}function rst(n){return Cm??(Cm=ec("ClassMethodDecoratorContext",2,n))??Mo}function ist(n){return Ui??(Ui=ec("ClassGetterDecoratorContext",2,n))??Mo}function ost(n){return Kg??(Kg=ec("ClassSetterDecoratorContext",2,n))??Mo}function ast(n){return Qy??(Qy=ec("ClassAccessorDecoratorContext",2,n))??Mo}function sst(n){return Nm??(Nm=ec("ClassAccessorDecoratorTarget",2,n))??Mo}function lst(n){return fS??(fS=ec("ClassAccessorDecoratorResult",2,n))??Mo}function cst(n){return mS??(mS=ec("ClassFieldDecoratorContext",2,n))??Mo}function dst(){return ab||(ab=Tge("NaN",!1))}function ust(){return cs||(cs=IZ("Record",2,!0)||lt),cs===lt?void 0:cs}function v8(n,a){return n!==Mo?lv(n,a):Na}function aOe(n){return v8(Bat(),[n])}function sOe(n){return v8(Rge(!0),[n])}function zd(n,a){return v8(a?Qo:qo,[n])}function Cge(n){switch(n.kind){case 190:return 2;case 191:return lOe(n);case 202:return n.questionToken?2:n.dotDotDotToken?lOe(n):1;default:return 1}}function lOe(n){return d5(n.type)?4:8}function pst(n){let a=_st(n.parent);if(d5(n))return a?Qo:qo;let u=mn(n.elements,Cge);return Nge(u,a,mn(n.elements,fst))}function fst(n){return RR(n)||To(n)?n:void 0}function cOe(n,a){return!!lx(n)||dOe(n)&&(n.kind===188?Lb(n.elementType):n.kind===189?gt(n.elements,Lb):a||gt(n.typeArguments,Lb))}function dOe(n){let a=n.parent;switch(a.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return dOe(a);case 265:return!0}return!1}function Lb(n){switch(n.kind){case 183:return AZ(n)||!!(cC(n,788968).flags&524288);case 186:return!0;case 198:return n.operator!==158&&Lb(n.type);case 196:case 190:case 202:case 323:case 321:case 322:case 316:return Lb(n.type);case 191:return n.type.kind!==188||Lb(n.type.elementType);case 192:case 193:return gt(n.types,Lb);case 199:return Lb(n.objectType)||Lb(n.indexType);case 194:return Lb(n.checkType)||Lb(n.extendsType)||Lb(n.trueType)||Lb(n.falseType)}return!1}function mst(n){let a=Zr(n);if(!a.resolvedType){let c=pst(n);if(c===Mo)a.resolvedType=Na;else if(!(n.kind===189&>(n.elements,u=>!!(Cge(u)&8)))&&cOe(n))a.resolvedType=n.kind===189&&n.elements.length===0?c:gge(c,n,void 0);else{let u=n.kind===188?[Ti(n.elementType)]:mn(n.elements,Ti);a.resolvedType=Pge(c,u)}}return a.resolvedType}function _st(n){return PT(n)&&n.operator===148}function Fh(n,a,c=!1,u=[]){let _=Nge(a||mn(n,g=>1),c,u);return _===Mo?Na:n.length?Pge(_,n):_}function Nge(n,a,c){if(n.length===1&&n[0]&4)return a?Qo:qo;let u=mn(n,g=>g&1?"#":g&2?"?":g&4?".":"*").join()+(a?"R":"")+(gt(c,g=>!!g)?","+mn(c,g=>g?is(g):"_").join(","):""),_=Eo.get(u);return _||Eo.set(u,_=hst(n,a,c)),_}function hst(n,a,c){let u=n.length,_=vv(n,ye=>!!(ye&9)),g,T=[],M=0;if(u){g=new Array(u);for(let ye=0;ye!!(n.elementFlags[rn]&8&&At.flags&1179648));if(mt>=0)return s5(mn(a,(At,rn)=>n.elementFlags[rn]&8?At:un))?ll(a[mt],At=>Mge(n,zG(a,mt,At))):pt}let T=[],M=[],W=[],V=-1,te=-1,ye=-1;for(let mt=0;mt=1e4)return Ve(D,Xh(D)?f.Type_produces_a_tuple_type_that_is_too_large_to_represent:f.Expression_produces_a_tuple_type_that_is_too_large_to_represent),pt;gn(sn,(nr,Mn)=>{var an;return je(nr,At.target.elementFlags[Mn],(an=At.target.labeledElementDeclarations)==null?void 0:an[Mn])})}else je(pv(At)&&n0(At,It)||pt,4,(_=n.labeledElementDeclarations)==null?void 0:_[mt]);else je(At,rn,(g=n.labeledElementDeclarations)==null?void 0:g[mt])}for(let mt=0;mt=0&&teM[te+At]&8?Cp(mt,It):mt)),T.splice(te+1,ye-te),M.splice(te+1,ye-te),W.splice(te+1,ye-te));let _e=Nge(M,n.readonly,W);return _e===Mo?Na:M.length?lv(_e,T):_e;function je(mt,At,rn){At&1&&(V=M.length),At&4&&te<0&&(te=M.length),At&6&&(ye=M.length),T.push(At&2?op(mt,!0):mt),M.push(At),W.push(rn)}}function FM(n,a,c=0){let u=n.target,_=cv(n)-c;return a>u.fixedLength?nct(n)||Fh(Xe):Fh(Us(n).slice(a,_),u.elementFlags.slice(a,_),!1,u.labeledElementDeclarations&&u.labeledElementDeclarations.slice(a,_))}function uOe(n){return ti(Tn(nne(n.target.fixedLength,a=>Hu(""+a)),J_(n.target.readonly?Qo:qo)))}function gst(n,a){let c=Kl(n.elementFlags,u=>!(u&a));return c>=0?c:n.elementFlags.length}function b8(n,a){return n.elementFlags.length-pW(n.elementFlags,c=>!(c&a))-1}function Lge(n){return n.fixedLength+b8(n,3)}function kS(n){let a=Us(n),c=cv(n);return a.length===c?a:a.slice(0,c)}function yst(n){return op(Ti(n.type),!0)}function gu(n){return n.id}function cy(n,a){return Ey(n,a,gu,Zs)>=0}function a5(n,a){let c=Ey(n,a,gu,Zs);return c<0?(n.splice(~c,0,a),!0):!1}function vst(n,a,c){let u=c.flags;if(!(u&131072))if(a|=u&473694207,u&465829888&&(a|=33554432),u&2097152&&kr(c)&67108864&&(a|=536870912),c===Tt&&(a|=8388608),!J&&u&98304)kr(c)&65536||(a|=4194304);else{let _=n.length,g=_&&c.id>n[_-1].id?~_:Ey(n,c,gu,Zs);g<0&&n.splice(~g,0,c)}return a}function pOe(n,a,c){let u;for(let _ of c)_!==u&&(a=_.flags&1048576?pOe(n,a|(Ist(_)?1048576:0),_.types):vst(n,a,_),u=_);return a}function bst(n,a){var c;if(n.length<2)return n;let u=cm(n),_=da.get(u);if(_)return _;let g=a&>(n,V=>!!(V.flags&524288)&&!Uu(V)&&tye(c_(V))),T=n.length,M=T,W=0;for(;M>0;){M--;let V=n[M];if(g||V.flags&469499904){if(V.flags&262144&&ly(V).flags&1048576){q_(V,ti(mn(n,_e=>_e===V?Fr:_e)),Mf)&&Sv(n,M);continue}let te=V.flags&61603840?Vr(_s(V),_e=>p_(sr(_e))):void 0,ye=te&&yu(sr(te));for(let _e of n)if(V!==_e){if(W===1e5&&W/(T-M)*T>1e6){(c=rr)==null||c.instant(rr.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:n.map(mt=>mt.id)}),Ve(D,f.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(W++,te&&_e.flags&61603840){let je=Ue(_e,te.escapedName);if(je&&p_(je)&&yu(je)!==ye)continue}if(q_(V,_e,Mf)&&(!(kr(av(V))&1)||!(kr(av(_e))&1)||a0(V,_e))){Sv(n,M);break}}}}return da.set(u,n),n}function Est(n,a,c){let u=n.length;for(;u>0;){u--;let _=n[u],g=_.flags;(g&402653312&&a&4||g&256&&a&8||g&2048&&a&64||g&8192&&a&4096||c&&g&32768&&a&16384||OS(_)&&cy(n,_.regularType))&&Sv(n,u)}}function Sst(n){let a=jr(n,zA);if(a.length){let c=n.length;for(;c>0;){c--;let u=n[c];u.flags&128&>(a,_=>Tst(u,_))&&Sv(n,c)}}}function Tst(n,a){return a.flags&134217728?ree(n,a):nee(n,a)}function Ast(n){let a=[];for(let c of n)if(c.flags&2097152&&kr(c)&67108864){let u=c.types[0].flags&8650752?0:1;yf(a,c.types[u])}for(let c of a){let u=[];for(let g of n)if(g.flags&2097152&&kr(g)&67108864){let T=g.types[0].flags&8650752?0:1;g.types[T]===c&&a5(u,g.types[1-T])}let _=Fd(c);if(ap(_,g=>cy(u,g))){let g=n.length;for(;g>0;){g--;let T=n[g];if(T.flags&2097152&&kr(T)&67108864){let M=T.types[0].flags&8650752?0:1;T.types[M]===c&&cy(u,T.types[1-M])&&Sv(n,g)}}a5(n,c)}}}function Ist(n){return!!(n.flags&1048576&&(n.aliasSymbol||n.origin))}function fOe(n,a){for(let c of a)if(c.flags&1048576){let u=c.origin;c.aliasSymbol||u&&!(u.flags&1048576)?yf(n,c):u&&u.flags&1048576&&fOe(n,u.types)}}function kge(n,a){let c=Z1(n);return c.types=a,c}function ti(n,a=1,c,u,_){if(n.length===0)return Fr;if(n.length===1)return n[0];if(n.length===2&&!_&&(n[0].flags&1048576||n[1].flags&1048576)){let g=a===0?"N":a===2?"S":"L",T=n[0].id=2&&g[0]===Me&&g[1]===k&&Sv(g,1),(T&402664352||T&16384&&T&32768)&&Est(g,T,!!(a&2)),T&128&&T&402653184&&Sst(g),T&536870912&&Ast(g),a===2&&(g=bst(g,!!(T&524288)),!g))return pt;if(g.length===0)return T&65536?T&4194304?ue:We:T&32768?T&4194304?Me:Pt:Fr}if(!_&&T&1048576){let W=[];fOe(W,n);let V=[];for(let ye of g)gt(W,_e=>cy(_e.types,ye))||V.push(ye);if(!c&&W.length===1&&V.length===0)return W[0];if(nu(W,(ye,_e)=>ye+_e.types.length,0)+V.length===g.length){for(let ye of W)a5(V,ye);_=kge(1048576,V)}}let M=(T&36323331?0:32768)|(T&2097152?16777216:0);return Oge(g,M,c,u,_)}function xst(n,a){let c,u=[];for(let g of n){let T=Ff(g);if(T){if(T.kind!==0&&T.kind!==1||c&&!wge(c,T))return;c=T,u.push(T.type)}else{let M=a!==2097152?us(g):void 0;if(M!==Kt&&M!==En)return}}if(!c)return;let _=Wwe(u,a);return r5(c.kind,c.parameterName,c.parameterIndex,_)}function wge(n,a){return n.kind===a.kind&&n.parameterIndex===a.parameterIndex}function Oge(n,a,c,u,_){if(n.length===0)return Fr;if(n.length===1)return n[0];let T=(_?_.flags&1048576?`|${cm(_.types)}`:_.flags&2097152?`&${cm(_.types)}`:`#${_.type.id}|${cm(n)}`:cm(n))+ax(c,u),M=Qn.get(T);return M||(M=hg(1048576),M.objectFlags=a|EZ(n,98304),M.types=n,M.origin=_,M.aliasSymbol=c,M.aliasTypeArguments=u,n.length===2&&n[0].flags&512&&n[1].flags&512&&(M.flags|=16,M.intrinsicName="boolean"),Qn.set(T,M)),M}function Rst(n){let a=Zr(n);if(!a.resolvedType){let c=lx(n);a.resolvedType=ti(mn(n.types,Ti),1,c,pC(c))}return a.resolvedType}function Dst(n,a,c){let u=c.flags;return u&2097152?_Oe(n,a,c.types):(zh(c)?a&16777216||(a|=16777216,n.set(c.id.toString(),c)):(u&3?c===Tt&&(a|=8388608):(J||!(u&98304))&&(c===k&&(a|=262144,c=Me),n.has(c.id.toString())||(c.flags&109472&&a&109472&&(a|=67108864),n.set(c.id.toString(),c))),a|=u&473694207),a)}function _Oe(n,a,c){for(let u of c)a=Dst(n,a,yu(u));return a}function Cst(n,a){let c=n.length;for(;c>0;){c--;let u=n[c];(u.flags&4&&a&402653312||u.flags&8&&a&256||u.flags&64&&a&2048||u.flags&4096&&a&8192||u.flags&16384&&a&32768||zh(u)&&a&470302716)&&Sv(n,c)}}function Nst(n,a){for(let c of n)if(!cy(c.types,a)){let u=a.flags&128?Ne:a.flags&288?It:a.flags&2048?Ct:a.flags&8192?xi:void 0;if(!u||!cy(c.types,u))return!1}return!0}function Pst(n){let a=n.length,c=jr(n,u=>!!(u.flags&128));for(;a>0;){a--;let u=n[a];if(u.flags&402653184){for(let _ of c)if(Wb(_,u)){Sv(n,a);break}else if(zA(u))return!0}}return!1}function hOe(n,a){for(let c=0;c!(u.flags&a))}function Mst(n){let a,c=Kl(n,T=>!!(kr(T)&32768));if(c<0)return!1;let u=c+1;for(;u!!(mt.flags&469893116)||zh(mt))){if(f5(je,_e))return ye;if(!(je.flags&1048576&&Fm(je,mt=>f5(mt,_e)))&&!f5(_e,je))return Fr;M=67108864}}}let W=cm(T)+ax(a,c),V=Er.get(W);if(!V){if(g&1048576)if(Mst(T))V=ha(T,a,c);else if(oo(T,te=>!!(te.flags&1048576&&te.types[0].flags&32768))){let te=gt(T,P8)?k:Me;hOe(T,32768),V=ti([ha(T),te],1,a,c)}else if(oo(T,te=>!!(te.flags&1048576&&(te.types[0].flags&65536||te.types[1].flags&65536))))hOe(T,65536),V=ti([ha(T),ue],1,a,c);else if(T.length>=4){let te=Math.floor(T.length/2);V=ha([ha(T.slice(0,te)),ha(T.slice(te))],a,c)}else{if(!s5(T))return pt;let te=kst(T),ye=gt(te,_e=>!!(_e.flags&2097152))&&Wge(te)>Wge(T)?kge(2097152,T):void 0;V=ti(te,1,a,c,ye)}else V=Lst(T,M,a,c);Er.set(W,V)}return V}function gOe(n){return nu(n,(a,c)=>c.flags&1048576?a*c.types.length:c.flags&131072?0:a,1)}function s5(n){var a;let c=gOe(n);return c>=1e5?((a=rr)==null||a.instant(rr.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:n.map(u=>u.id),size:c}),Ve(D,f.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function kst(n){let a=gOe(n),c=[];for(let u=0;u=0;M--)if(n[M].flags&1048576){let W=n[M].types,V=W.length;_[M]=W[g%V],g=Math.floor(g/V)}let T=ha(_);T.flags&131072||c.push(T)}return c}function yOe(n){return!(n.flags&3145728)||n.aliasSymbol?1:n.flags&1048576&&n.origin?yOe(n.origin):Wge(n.types)}function Wge(n){return nu(n,(a,c)=>a+yOe(c),0)}function wst(n){let a=Zr(n);if(!a.resolvedType){let c=lx(n),u=mn(n.types,Ti),_=u.length===2?u.indexOf(ac):-1,g=_>=0?u[1-_]:un,T=!!(g.flags&76||g.flags&134217728&&zA(g));a.resolvedType=ha(u,c,pC(c),T)}return a.resolvedType}function vOe(n,a){let c=hg(4194304);return c.type=n,c.indexFlags=a,c}function Ost(n){let a=Z1(4194304);return a.type=n,a}function bOe(n,a){return a&1?n.resolvedStringIndexType||(n.resolvedStringIndexType=vOe(n,1)):n.resolvedIndexType||(n.resolvedIndexType=vOe(n,0))}function EOe(n,a){let c=l_(n),u=gf(n),_=sv(n.target||n);if(!_&&!(a&2))return u;let g=[];if(GA(u)){if(oC(n))return bOe(n,a);qA(u,M)}else if(oC(n)){let W=Pu(LA(n));Qhe(W,8576,!!(a&1),M)}else qA(QB(u),M);let T=a&2?cc(ti(g),W=>!(W.flags&5)):ti(g);if(T.flags&1048576&&u.flags&1048576&&cm(T.types)===cm(u.types))return u;return T;function M(W){let V=_?io(_,T8(n.mapper,c,W)):W;g.push(V===Ne?Io:V)}}function Wst(n){let a=l_(n);return c(sv(n)||a);function c(u){return u.flags&470810623?!0:u.flags&16777216?u.root.isDistributive&&u.checkType===a:u.flags&137363456?oo(u.types,c):u.flags&8388608?c(u.objectType)&&c(u.indexType):u.flags&33554432?c(u.baseType)&&c(u.constraint):u.flags&268435456?c(u.type):!1}}function dv(n){if(Ki(n))return Fr;if(mp(n))return yu(po(n));if(Ya(n))return yu(Eg(n));let a=bT(n);return a!==void 0?Hu(Vi(a)):ht(n)?yu(po(n)):Fr}function dC(n,a,c){if(c||!(Tf(n)&6)){let u=qi(fZ(n)).nameType;if(!u){let _=No(n.valueDeclaration);u=n.escapedName==="default"?Hu("default"):_&&dv(_)||(q2(n)?void 0:Hu(yl(n)))}if(u&&u.flags&a)return u}return Fr}function SOe(n,a){return!!(n.flags&a||n.flags&2097152&>(n.types,c=>SOe(c,a)))}function Fst(n,a,c){let u=c&&(kr(n)&7||n.aliasSymbol)?Ost(n):void 0,_=mn(_s(n),T=>dC(T,a)),g=mn(hu(n),T=>T!==zr&&SOe(T.keyType,a)?T.keyType===Ne&&a&8?Io:T.keyType:Fr);return ti(bo(_,g),1,void 0,void 0,u)}function Fge(n,a=0){return!!(n.flags&58982400||zb(n)||Uu(n)&&(!Wst(n)||_Z(n)===2)||n.flags&1048576&&!(a&4)&&oge(n)||n.flags&2097152&&Rl(n,465829888)&>(n.types,zh))}function J_(n,a=Ge){return n=d_(n),OM(n)?yge(J_(n.baseType,a)):Fge(n,a)?bOe(n,a):n.flags&1048576?ha(mn(n.types,c=>J_(c,a))):n.flags&2097152?ti(mn(n.types,c=>J_(c,a))):kr(n)&32?EOe(n,a):n===Tt?Tt:n.flags&2?Fr:n.flags&131073?ks:Fst(n,(a&2?128:402653316)|(a&1?0:12584),a===Ge)}function TOe(n){if(Ce)return n;let a=Zat();return a?lC(a,[n,Ne]):Ne}function zst(n){let a=TOe(J_(n));return a.flags&131072?Ne:a}function Bst(n){let a=Zr(n);if(!a.resolvedType)switch(n.operator){case 143:a.resolvedType=J_(Ti(n.type));break;case 158:a.resolvedType=n.type.kind===155?Kge(V2(n.parent)):pt;break;case 148:a.resolvedType=Ti(n.type);break;default:R.assertNever(n.operator)}return a.resolvedType}function Gst(n){let a=Zr(n);return a.resolvedType||(a.resolvedType=FA([n.head.text,...mn(n.templateSpans,c=>c.literal.text)],mn(n.templateSpans,c=>Ti(c.type)))),a.resolvedType}function FA(n,a){let c=Kl(a,V=>!!(V.flags&1179648));if(c>=0)return s5(a)?ll(a[c],V=>FA(n,zG(a,c,V))):pt;if(zo(a,Tt))return Tt;let u=[],_=[],g=n[0];if(!W(n,a))return Ne;if(u.length===0)return Hu(g);if(_.push(g),oo(_,V=>V==="")){if(oo(u,V=>!!(V.flags&4)))return Ne;if(u.length===1&&zA(u[0]))return u[0]}let T=`${cm(u)}|${mn(_,V=>V.length).join(",")}|${_.join("")}`,M=yi.get(T);return M||yi.set(T,M=jst(_,u)),M;function W(V,te){for(let ye=0;yesx(n,c)):a.flags&128?Hu(AOe(n,a.value)):a.flags&134217728?FA(...Ust(n,a.texts,a.types)):a.flags&268435456&&n===a.symbol?a:a.flags&268435461||GA(a)?IOe(n,a):l5(a)?IOe(n,FA(["",""],[a])):a}function AOe(n,a){switch(L3.get(n.escapedName)){case 0:return a.toUpperCase();case 1:return a.toLowerCase();case 2:return a.charAt(0).toUpperCase()+a.slice(1);case 3:return a.charAt(0).toLowerCase()+a.slice(1)}return a}function Ust(n,a,c){switch(L3.get(n.escapedName)){case 0:return[a.map(u=>u.toUpperCase()),c.map(u=>sx(n,u))];case 1:return[a.map(u=>u.toLowerCase()),c.map(u=>sx(n,u))];case 2:return[a[0]===""?a:[a[0].charAt(0).toUpperCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[sx(n,c[0]),...c.slice(1)]:c];case 3:return[a[0]===""?a:[a[0].charAt(0).toLowerCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[sx(n,c[0]),...c.slice(1)]:c]}return[a,c]}function IOe(n,a){let c=`${ba(n)},${gu(a)}`,u=$i.get(c);return u||$i.set(c,u=Hst(n,a)),u}function Hst(n,a){let c=gg(268435456,n);return c.type=a,c}function Kst(n,a,c,u,_){let g=hg(8388608);return g.objectType=n,g.indexType=a,g.accessFlags=c,g.aliasSymbol=u,g.aliasTypeArguments=_,g}function E8(n){if(fe)return!1;if(kr(n)&4096)return!0;if(n.flags&1048576)return oo(n.types,E8);if(n.flags&2097152)return gt(n.types,E8);if(n.flags&465829888){let a=nge(n);return a!==n&&E8(a)}return!1}function RZ(n,a){return Qf(n)?Zf(n):a&&rc(a)?bT(a):void 0}function zge(n,a){if(a.flags&8208){let c=Fn(n.parent,u=>!Ps(u))||n.parent;return S0(c)?v_(c)&&Fe(n)&&k8e(c,n):oo(a.declarations,u=>!Yo(u)||tv(u))}return!0}function xOe(n,a,c,u,_,g){let T=_&&_.kind===212?_:void 0,M=_&&Ki(_)?void 0:RZ(c,_);if(M!==void 0){if(g&256)return u0(a,M)||G;let V=_a(a,M);if(V){if(g&64&&_&&V.declarations&&db(V)&&zge(_,V)){let ye=T?.argumentExpression??(MT(_)?_.indexType:_);nv(ye,V.declarations,M)}if(T){if(B5(V,T,UWe(T.expression,a.symbol)),LFe(T,V,DI(T))){Ve(T.argumentExpression,f.Cannot_assign_to_0_because_it_is_a_read_only_property,Si(V));return}if(g&8&&(Zr(_).resolvedSymbol=V),WWe(T,V))return et}let te=g&4?PS(V):sr(V);return T&&DI(T)!==1?Vb(T,te):_&&MT(_)&&P8(te)?ti([te,Me]):te}if(ap(a,Oa)&&rg(M)){let te=+M;if(_&&ap(a,ye=>!ye.target.hasRestElement)&&!(g&16)){let ye=Bge(_);if(Oa(a)){if(te<0)return Ve(ye,f.A_tuple_type_cannot_be_indexed_with_a_negative_value),Me;Ve(ye,f.Tuple_type_0_of_length_1_has_no_element_at_index_2,Vn(a),cv(a),Vi(M))}else Ve(ye,f.Property_0_does_not_exist_on_type_1,Vi(M),Vn(a))}if(te>=0)return W(bg(a,It)),m8e(a,te,g&1?k:void 0)}}if(!(c.flags&98304)&&Td(c,402665900)){if(a.flags&131073)return a;let V=_8(a,c)||bg(a,Ne);if(V){if(g&2&&V.keyType!==It){T&&(g&4?Ve(T,f.Type_0_is_generic_and_can_only_be_indexed_for_reading,Vn(n)):Ve(T,f.Type_0_cannot_be_used_to_index_type_1,Vn(c),Vn(n)));return}if(_&&V.keyType===Ne&&!Td(c,12)){let te=Bge(_);return Ve(te,f.Type_0_cannot_be_used_as_an_index_type,Vn(c)),g&1?ti([V.type,k]):V.type}return W(V),g&1&&!(a.symbol&&a.symbol.flags&384&&c.symbol&&c.flags&1024&&Du(c.symbol)===a.symbol)?ti([V.type,k]):V.type}if(c.flags&131072)return Fr;if(E8(a))return G;if(T&&!kee(a)){if(d0(a)){if(fe&&c.flags&384)return Qa.add(Pr(T,f.Property_0_does_not_exist_on_type_1,c.value,Vn(a))),Me;if(c.flags&12){let te=mn(a.properties,ye=>sr(ye));return ti(Tn(te,Me))}}if(a.symbol===tt&&M!==void 0&&tt.exports.has(M)&&tt.exports.get(M).flags&418)Ve(T,f.Property_0_does_not_exist_on_type_1,Vi(M),Vn(a));else if(fe&&!B.suppressImplicitAnyIndexErrors&&!(g&128))if(M!==void 0&&GWe(M,a)){let te=Vn(a);Ve(T,f.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,M,te,te+"["+uc(T.argumentExpression)+"]")}else if(n0(a,It))Ve(T.argumentExpression,f.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let te;if(M!==void 0&&(te=dve(M,a)))te!==void 0&&Ve(T.argumentExpression,f.Property_0_does_not_exist_on_type_1_Did_you_mean_2,M,Vn(a),te);else{let ye=Uut(a,T,c);if(ye!==void 0)Ve(T,f.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Vn(a),ye);else{let _e;if(c.flags&1024)_e=Fo(void 0,f.Property_0_does_not_exist_on_type_1,"["+Vn(c)+"]",Vn(a));else if(c.flags&8192){let je=Vp(c.symbol,T);_e=Fo(void 0,f.Property_0_does_not_exist_on_type_1,"["+je+"]",Vn(a))}else c.flags&128||c.flags&256?_e=Fo(void 0,f.Property_0_does_not_exist_on_type_1,c.value,Vn(a)):c.flags&12&&(_e=Fo(void 0,f.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Vn(c),Vn(a)));_e=Fo(_e,f.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Vn(u),Vn(a)),Qa.add(Pg(Gn(T),T,_e))}}}return}}if(E8(a))return G;if(_){let V=Bge(_);c.flags&384?Ve(V,f.Property_0_does_not_exist_on_type_1,""+c.value,Vn(a)):c.flags&12?Ve(V,f.Type_0_has_no_matching_index_signature_for_type_1,Vn(a),Vn(c)):Ve(V,f.Type_0_cannot_be_used_as_an_index_type,Vn(c))}if(xt(c))return c;return;function W(V){V&&V.isReadonly&&T&&(Qh(T)||Ej(T))&&Ve(T,f.Index_signature_in_type_0_only_permits_reading,Vn(a))}}function Bge(n){return n.kind===212?n.argumentExpression:n.kind===199?n.indexType:n.kind===167?n.expression:n}function l5(n){if(n.flags&2097152){let a=!1;for(let c of n.types)if(c.flags&101248||l5(c))a=!0;else if(!(c.flags&524288))return!1;return a}return!!(n.flags&77)||zA(n)}function zA(n){return!!(n.flags&134217728)&&oo(n.types,l5)||!!(n.flags&268435456)&&l5(n.type)}function ROe(n){return!!(n.flags&402653184)&&!zA(n)}function uC(n){return!!S8(n)}function BA(n){return!!(S8(n)&4194304)}function GA(n){return!!(S8(n)&8388608)}function S8(n){return n.flags&3145728?(n.objectFlags&2097152||(n.objectFlags|=2097152|nu(n.types,(a,c)=>a|S8(c),0)),n.objectFlags&12582912):n.flags&33554432?(n.objectFlags&2097152||(n.objectFlags|=2097152|S8(n.baseType)|S8(n.constraint)),n.objectFlags&12582912):(n.flags&58982400||Uu(n)||zb(n)?4194304:0)|(n.flags&63176704||ROe(n)?8388608:0)}function dy(n,a){return n.flags&8388608?qst(n,a):n.flags&16777216?Xst(n,a):n}function DOe(n,a,c){if(n.flags&1048576||n.flags&2097152&&!Fge(n)){let u=mn(n.types,_=>dy(Cp(_,a),c));return n.flags&2097152||c?ha(u):ti(u)}}function Jst(n,a,c){if(a.flags&1048576){let u=mn(a.types,_=>dy(Cp(n,_),c));return c?ha(u):ti(u)}}function qst(n,a){let c=a?"simplifiedForWriting":"simplifiedForReading";if(n[c])return n[c]===ed?n:n[c];n[c]=ed;let u=dy(n.objectType,a),_=dy(n.indexType,a),g=Jst(u,_,a);if(g)return n[c]=g;if(!(_.flags&465829888)){let T=DOe(u,_,a);if(T)return n[c]=T}if(zb(u)&&_.flags&296){let T=jM(u,_.flags&8?0:u.target.fixedLength,0,a);if(T)return n[c]=T}return Uu(u)&&_Z(u)!==2?n[c]=ll(DZ(u,n.indexType),T=>dy(T,a)):n[c]=n}function Xst(n,a){let c=n.checkType,u=n.extendsType,_=i0(n),g=o0(n);if(g.flags&131072&&wb(_)===wb(c)){if(c.flags&1||ga(jA(c),jA(u)))return dy(_,a);if(COe(c,u))return Fr}else if(_.flags&131072&&wb(g)===wb(c)){if(!(c.flags&1)&&ga(jA(c),jA(u)))return Fr;if(c.flags&1||COe(c,u))return dy(g,a)}return n}function COe(n,a){return!!(ti([$B(n,a),Fr]).flags&131072)}function DZ(n,a){let c=Np([l_(n)],[a]),u=FS(n.mapper,c);return io(sy(n.target||n),u)}function Cp(n,a,c=0,u,_,g){return kb(n,a,c,u,_,g)||(u?pt:un)}function NOe(n,a){return ap(n,c=>{if(c.flags&384){let u=Zf(c);if(rg(u)){let _=+u;return _>=0&&_0&&!gt(n.elements,a=>O4(a)||W4(a)||RR(a)&&!!(a.questionToken||a.dotDotDotToken))}function LOe(n,a){return uC(n)||a&&Oa(n)&>(kS(n),uC)}function Vge(n,a,c,u,_){let g,T,M=0;for(;;){if(M===1e3)return Ve(D,f.Type_instantiation_is_excessively_deep_and_possibly_infinite),pt;let V=io(wb(n.checkType),a),te=io(n.extendsType,a);if(V===pt||te===pt)return pt;if(V===Tt||te===Tt)return Tt;let ye=j2(n.node.checkType),_e=j2(n.node.extendsType),je=MOe(ye)&&MOe(_e)&&Nn(ye.elements)===Nn(_e.elements),mt=LOe(V,je),At;if(n.inferTypeParameters){let sn=L8(n.inferTypeParameters,void 0,0);a&&(sn.nonFixingMapper=FS(sn.nonFixingMapper,a)),mt||_y(sn.inferences,V,te,1536),At=a?FS(sn.mapper,a):sn.mapper}let rn=At?io(n.extendsType,At):te;if(!mt&&!LOe(rn,je)){if(!(rn.flags&3)&&(V.flags&1||!ga(I8(V),I8(rn)))){(V.flags&1||c&&!(rn.flags&131072)&&Fm(I8(rn),nr=>ga(nr,I8(V))))&&(T||(T=[])).push(io(Ti(n.node.trueType),At||a));let sn=Ti(n.node.falseType);if(sn.flags&16777216){let nr=sn.root;if(nr.node.parent===n.node&&(!nr.isDistributive||nr.checkType===n.checkType)){n=nr;continue}if(W(sn,a))continue}g=io(sn,a);break}if(rn.flags&3||ga(jA(V),jA(rn))){let sn=Ti(n.node.trueType),nr=At||a;if(W(sn,nr))continue;g=io(sn,nr);break}}g=hg(16777216),g.root=n,g.checkType=io(n.checkType,a),g.extendsType=io(n.extendsType,a),g.mapper=a,g.combinedMapper=At,g.aliasSymbol=u||n.aliasSymbol,g.aliasTypeArguments=u?_:uv(n.aliasTypeArguments,a);break}return T?ti(Tn(T,g)):g;function W(V,te){if(V.flags&16777216&&te){let ye=V.root;if(ye.outerTypeParameters){let _e=FS(V.mapper,te),je=mn(ye.outerTypeParameters,rn=>Ob(rn,_e)),mt=Np(ye.outerTypeParameters,je),At=ye.isDistributive?Ob(ye.checkType,mt):void 0;if(!At||At===ye.checkType||!(At.flags&1179648))return n=ye,a=mt,u=void 0,_=void 0,ye.aliasSymbol&&M++,!0}}return!1}}function i0(n){return n.resolvedTrueType||(n.resolvedTrueType=io(Ti(n.root.node.trueType),n.mapper))}function o0(n){return n.resolvedFalseType||(n.resolvedFalseType=io(Ti(n.root.node.falseType),n.mapper))}function Yst(n){return n.resolvedInferredTrueType||(n.resolvedInferredTrueType=n.combinedMapper?io(Ti(n.root.node.trueType),n.combinedMapper):i0(n))}function kOe(n){let a;return n.locals&&n.locals.forEach(c=>{c.flags&262144&&(a=Tn(a,Ys(c)))}),a}function $st(n){return n.isDistributive&&(p5(n.checkType,n.node.trueType)||p5(n.checkType,n.node.falseType))}function Qst(n){let a=Zr(n);if(!a.resolvedType){let c=Ti(n.checkType),u=lx(n),_=pC(u),g=Rn(n,!0),T=_?g:jr(g,W=>p5(W,n)),M={node:n,checkType:c,extendsType:Ti(n.extendsType),isDistributive:!!(c.flags&262144),inferTypeParameters:kOe(n),outerTypeParameters:T,instantiations:void 0,aliasSymbol:u,aliasTypeArguments:_};a.resolvedType=Vge(M,void 0,!1),T&&(M.instantiations=new Map,M.instantiations.set(cm(T),a.resolvedType))}return a.resolvedType}function Zst(n){let a=Zr(n);return a.resolvedType||(a.resolvedType=MA(Sr(n.typeParameter))),a.resolvedType}function wOe(n){return Fe(n)?[n]:Tn(wOe(n.left),n.right)}function elt(n){var a;let c=Zr(n);if(!c.resolvedType){if(!Ov(n))return Ve(n.argument,f.String_literal_expected),c.resolvedSymbol=lt,c.resolvedType=pt;let u=n.isTypeOf?111551:n.flags&16777216?900095:788968,_=_u(n,n.argument.literal);if(!_)return c.resolvedSymbol=lt,c.resolvedType=pt;let g=!!((a=_.exports)!=null&&a.get("export=")),T=Ip(_,!1);if(Fl(n.qualifier))if(T.flags&u)c.resolvedType=OOe(n,c,T,u);else{let M=u===111551?f.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:f.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;Ve(n,M,n.argument.literal.text),c.resolvedSymbol=lt,c.resolvedType=pt}else{let M=wOe(n.qualifier),W=T,V;for(;V=M.shift();){let te=M.length?1920:u,ye=ts(Vl(W)),_e=n.isTypeOf||ir(n)&&g?_a(sr(ye),V.escapedText,!1,!0):void 0,mt=(n.isTypeOf?void 0:ju(xp(ye),V.escapedText,te))??_e;if(!mt)return Ve(V,f.Namespace_0_has_no_exported_member_1,Vp(W),As(V)),c.resolvedType=pt;Zr(V).resolvedSymbol=mt,Zr(V.parent).resolvedSymbol=mt,W=mt}c.resolvedType=OOe(n,c,W,u)}}return c.resolvedType}function OOe(n,a,c,u){let _=Vl(c);return a.resolvedSymbol=_,u===111551?gFe(sr(c),n):TZ(n,_)}function WOe(n){let a=Zr(n);if(!a.resolvedType){let c=lx(n);if(Nb(n.symbol).size===0&&!c)a.resolvedType=ac;else{let u=kf(16,n.symbol);u.aliasSymbol=c,u.aliasTypeArguments=pC(c),FT(n)&&n.isArrayType&&(u=zd(u)),a.resolvedType=u}}return a.resolvedType}function lx(n){let a=n.parent;for(;NT(a)||Q0(a)||PT(a)&&a.operator===148;)a=a.parent;return F2(a)?Sr(a):void 0}function pC(n){return n?Nr(n):void 0}function CZ(n){return!!(n.flags&524288)&&!Uu(n)}function jge(n){return py(n)||!!(n.flags&474058748)}function Uge(n,a){if(!(n.flags&1048576))return n;if(oo(n.types,jge))return Vr(n.types,py)||Na;let c=Vr(n.types,g=>!jge(g));if(!c||Vr(n.types,g=>g!==c&&!jge(g)))return n;return _(c);function _(g){let T=oa();for(let W of _s(g))if(!(Tf(W)&6)){if(NZ(W)){let V=W.flags&65536&&!(W.flags&32768),ye=Ka(16777220,W.escapedName,$he(W)|(a?8:0));ye.links.type=V?Me:op(sr(W),!0),ye.declarations=W.declarations,ye.links.nameType=qi(W).nameType,ye.links.syntheticOrigin=W,T.set(W.escapedName,ye)}}let M=Cs(g.symbol,T,Xe,Xe,hu(g));return M.objectFlags|=131200,M}}function wS(n,a,c,u,_){if(n.flags&1||a.flags&1)return G;if(n.flags&2||a.flags&2)return un;if(n.flags&131072)return a;if(a.flags&131072)return n;if(n=Uge(n,_),n.flags&1048576)return s5([n,a])?ll(n,V=>wS(V,a,c,u,_)):pt;if(a=Uge(a,_),a.flags&1048576)return s5([n,a])?ll(a,V=>wS(n,V,c,u,_)):pt;if(a.flags&473960444)return n;if(BA(n)||BA(a)){if(py(n))return a;if(n.flags&2097152){let V=n.types,te=V[V.length-1];if(CZ(te)&&CZ(a))return ha(bo(V.slice(0,V.length-1),[wS(te,a,c,u,_)]))}return ha([n,a])}let g=oa(),T=new Set,M=n===Na?hu(a):ywe([n,a]);for(let V of _s(a))Tf(V)&6?T.add(V.escapedName):NZ(V)&&g.set(V.escapedName,Hge(V,_));for(let V of _s(n))if(!(T.has(V.escapedName)||!NZ(V)))if(g.has(V.escapedName)){let te=g.get(V.escapedName),ye=sr(te);if(te.flags&16777216){let _e=bo(V.declarations,te.declarations),je=4|V.flags&16777216,mt=Ka(je,V.escapedName),At=sr(V),rn=YZ(At),sn=YZ(ye);mt.links.type=rn===sn?At:ti([At,sn],2),mt.links.leftSpread=V,mt.links.rightSpread=te,mt.declarations=_e,mt.links.nameType=qi(V).nameType,g.set(V.escapedName,mt)}}else g.set(V.escapedName,Hge(V,_));let W=Cs(c,g,Xe,Xe,Nc(M,V=>tlt(V,_)));return W.objectFlags|=2228352|u,W}function NZ(n){var a;return!gt(n.declarations,au)&&(!(n.flags&106496)||!((a=n.declarations)!=null&&a.some(c=>di(c.parent))))}function Hge(n,a){let c=n.flags&65536&&!(n.flags&32768);if(!c&&a===m_(n))return n;let u=4|n.flags&16777216,_=Ka(u,n.escapedName,$he(n)|(a?8:0));return _.links.type=c?Me:sr(n),_.declarations=n.declarations,_.links.nameType=qi(n).nameType,_.links.syntheticOrigin=n,_}function tlt(n,a){return n.isReadonly!==a?Wh(n.keyType,n.type,a,n.declaration):n}function c5(n,a,c,u){let _=gg(n,c);return _.value=a,_.regularType=u||_,_}function cx(n){if(n.flags&2976){if(!n.freshType){let a=c5(n.flags,n.value,n.symbol,n);a.freshType=a,n.freshType=a}return n.freshType}return n}function yu(n){return n.flags&2976?n.regularType:n.flags&1048576?n.regularType||(n.regularType=ll(n,yu)):n}function OS(n){return!!(n.flags&2976)&&n.freshType===n}function Hu(n){let a;return on.get(n)||(on.set(n,a=c5(128,n)),a)}function u_(n){let a;return Ye.get(n)||(Ye.set(n,a=c5(256,n)),a)}function PZ(n){let a,c=F0(n);return Ot.get(c)||(Ot.set(c,a=c5(2048,n)),a)}function nlt(n,a,c){let u,_=`${a}${typeof n=="string"?"@":"#"}${n}`,g=1024|(typeof n=="string"?128:256);return In.get(_)||(In.set(_,u=c5(g,n,c)),u)}function rlt(n){if(n.literal.kind===106)return ue;let a=Zr(n);return a.resolvedType||(a.resolvedType=yu(po(n.literal))),a.resolvedType}function ilt(n){let a=gg(8192,n);return a.escapedName=`__@${a.symbol.escapedName}@${ba(a.symbol)}`,a}function Kge(n){if(ir(n)&&Q0(n)){let a=vT(n);a&&(n=RI(a)||a)}if(oie(n)){let a=LF(n)?ff(n.left):ff(n);if(a){let c=qi(a);return c.uniqueESSymbolType||(c.uniqueESSymbolType=ilt(a))}}return xi}function olt(n){let a=ku(n,!1,!1),c=a&&a.parent;if(c&&(di(c)||c.kind===264)&&!na(a)&&(!Pl(a)||N0(n,a.body)))return Wf(Sr(c)).thisType;if(c&&La(c)&&ur(c.parent)&&zl(c.parent)===6)return Wf(ff(c.parent.left).parent).thisType;let u=n.flags&16777216?cE(n):void 0;return u&&Ms(u)&&ur(u.parent)&&zl(u.parent)===3?Wf(ff(u.parent.left).parent).thisType:$_(a)&&N0(n,a.body)?Wf(Sr(a)).thisType:(Ve(n,f.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),pt)}function MZ(n){let a=Zr(n);return a.resolvedType||(a.resolvedType=olt(n)),a.resolvedType}function FOe(n){return Ti(d5(n.type)||n.type)}function d5(n){switch(n.kind){case 196:return d5(n.type);case 189:if(n.elements.length===1&&(n=n.elements[0],n.kind===191||n.kind===202&&n.dotDotDotToken))return d5(n.type);break;case 188:return n.elementType}}function alt(n){let a=Zr(n);return a.resolvedType||(a.resolvedType=n.dotDotDotToken?FOe(n):op(Ti(n.type),!0,!!n.questionToken))}function Ti(n){return Fat(zOe(n),n)}function zOe(n){switch(n.kind){case 133:case 319:case 320:return G;case 159:return un;case 154:return Ne;case 150:return It;case 163:return Ct;case 136:return gi;case 155:return xi;case 116:return er;case 157:return Me;case 106:return ue;case 146:return Fr;case 151:return n.flags&524288&&!fe?G:Kr;case 141:return dn;case 197:case 110:return MZ(n);case 201:return rlt(n);case 183:return Sge(n);case 182:return n.assertsModifier?er:gi;case 233:return Sge(n);case 186:return Ywe(n);case 188:case 189:return mst(n);case 190:return yst(n);case 192:return Rst(n);case 193:return wst(n);case 321:return zat(n);case 323:return op(Ti(n.type));case 202:return alt(n);case 196:case 322:case 316:return Ti(n.type);case 191:return FOe(n);case 325:return lht(n);case 184:case 185:case 187:case 329:case 324:case 330:return WOe(n);case 198:return Bst(n);case 199:return POe(n);case 200:return Gge(n);case 194:return Qst(n);case 195:return Zst(n);case 203:return Gst(n);case 205:return elt(n);case 80:case 166:case 211:let a=zm(n);return a?Ys(a):pt;default:return pt}}function LZ(n,a,c){if(n&&n.length)for(let u=0;uu.typeParameter),mn(c,()=>un))}function FS(n,a){return n?wZ(4,n,a):a}function clt(n,a){return n?wZ(5,n,a):a}function VA(n,a,c){return c?wZ(5,WS(n,a),c):WS(n,a)}function T8(n,a,c){return n?wZ(5,n,WS(a,c)):WS(a,c)}function dlt(n){return!n.constraint&&!hge(n)||n.constraint===Bs?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=_f(n.symbol),n.restrictiveInstantiation.constraint=Bs,n.restrictiveInstantiation)}function qge(n){let a=_f(n.symbol);return a.target=n,a}function ult(n,a){return r5(n.kind,n.parameterName,n.parameterIndex,io(n.type,a))}function fC(n,a,c){let u;if(n.typeParameters&&!c){u=mn(n.typeParameters,qge),a=FS(Np(n.typeParameters,u),a);for(let g of u)g.mapper=a}let _=vg(n.declaration,u,n.thisParameter&&Xge(n.thisParameter,a),LZ(n.parameters,a,Xge),void 0,void 0,n.minArgumentCount,n.flags&167);return _.target=n,_.mapper=a,_}function Xge(n,a){let c=qi(n);if(c.type&&!c0(c.type)&&(!(n.flags&65536)||c.writeType&&!c0(c.writeType)))return n;Tl(n)&1&&(n=c.target,a=FS(c.mapper,a));let u=Ka(n.flags,n.escapedName,1|Tl(n)&53256);return u.declarations=n.declarations,u.parent=n.parent,u.links.target=n,u.links.mapper=a,n.valueDeclaration&&(u.valueDeclaration=n.valueDeclaration),c.nameType&&(u.links.nameType=c.nameType),u}function plt(n,a,c,u){let _=n.objectFlags&4||n.objectFlags&8388608?n.node:n.symbol.declarations[0],g=Zr(_),T=n.objectFlags&4?g.resolvedType:n.objectFlags&64?n.target:n,M=g.outerTypeParameters;if(!M){let W=Rn(_,!0);if($_(_)){let te=wwe(_);W=Hr(W,te)}M=W||Xe;let V=n.objectFlags&8388612?[_]:n.symbol.declarations;M=(T.objectFlags&8388612||T.symbol.flags&8192||T.symbol.flags&2048)&&!T.aliasTypeArguments?jr(M,te=>gt(V,ye=>p5(te,ye))):M,g.outerTypeParameters=M}if(M.length){let W=FS(n.mapper,a),V=mn(M,mt=>Ob(mt,W)),te=c||n.aliasSymbol,ye=c?u:uv(n.aliasTypeArguments,a),_e=cm(V)+ax(te,ye);T.instantiations||(T.instantiations=new Map,T.instantiations.set(cm(M)+ax(T.aliasSymbol,T.aliasTypeArguments),T));let je=T.instantiations.get(_e);if(!je){let mt=Np(M,V);je=T.objectFlags&4?gge(n.target,n.node,mt,te,ye):T.objectFlags&32?mlt(T,mt,te,ye):Yge(T,mt,te,ye),T.instantiations.set(_e,je);let At=kr(je);if(je.flags&3899393&&!(At&524288)){let rn=gt(V,c0);kr(je)&524288||(At&52?je.objectFlags|=524288|(rn?1048576:0):je.objectFlags|=rn?0:524288)}}return je}return n}function flt(n){return!(n.parent.kind===183&&n.parent.typeArguments&&n===n.parent.typeName||n.parent.kind===205&&n.parent.typeArguments&&n===n.parent.qualifier)}function p5(n,a){if(n.symbol&&n.symbol.declarations&&n.symbol.declarations.length===1){let u=n.symbol.declarations[0].parent;for(let _=a;_!==u;_=_.parent)if(!_||_.kind===241||_.kind===194&&Bo(_.extendsType,c))return!0;return c(a)}return!0;function c(u){switch(u.kind){case 197:return!!n.isThisType;case 80:return!n.isThisType&&Xh(u)&&flt(u)&&zOe(u)===n;case 186:let _=u.exprName,g=Fp(_);if(!w0(g)){let T=Wm(g),M=n.symbol.declarations[0],W=M.kind===168?M.parent:n.isThisType?M:void 0;if(T.declarations&&W)return gt(T.declarations,V=>N0(V,W))||gt(u.typeArguments,c)}return!0;case 174:case 173:return!u.type&&!!u.body||gt(u.typeParameters,c)||gt(u.parameters,c)||!!u.type&&c(u.type)}return!!Bo(u,c)}}function A8(n){let a=gf(n);if(a.flags&4194304){let c=wb(a.type);if(c.flags&262144)return c}}function mlt(n,a,c,u){let _=A8(n);if(_){let T=io(_,a);if(_!==T)return U8e(d_(T),g,c,u)}return io(gf(n),a)===Tt?Tt:Yge(n,a,c,u);function g(T){if(T.flags&61603843&&T!==Tt&&!Ut(T)){if(!n.declaration.nameType){let M;if(Gf(T)||T.flags&1&&nx(_,4)<0&&(M=Nu(_))&&ap(M,s0))return hlt(T,n,VA(_,T,a));if(Oa(T))return _lt(T,n,_,a);if(Cwe(T))return ha(mn(T.types,g))}return Yge(n,VA(_,T,a))}return T}}function VOe(n,a){return a&1?!0:a&2?!1:n}function _lt(n,a,c,u){let _=n.target.elementFlags,g=n.target.fixedLength,T=g?VA(c,n,u):u,M=mn(kS(n),(ye,_e)=>{let je=_[_e];return _eye&1?2:ye):W&8?mn(_,ye=>ye&2?1:ye):_,te=VOe(n.target.readonly,wh(a));return zo(M,pt)?pt:Fh(M,V,te,n.target.labeledElementDeclarations)}function hlt(n,a,c){let u=jOe(a,It,!0,c);return Ut(u)?pt:zd(u,VOe(GM(n),wh(a)))}function jOe(n,a,c,u){let _=T8(u,l_(n),a),g=io(sy(n.target||n),_),T=wh(n);return J&&T&4&&!Rl(g,49152)?Bb(g,!0):J&&T&8&&c?um(g,524288):g}function Yge(n,a,c,u){R.assert(n.symbol,"anonymous type must have symbol to be instantiated");let _=kf(n.objectFlags&-1572865|64,n.symbol);if(n.objectFlags&32){_.declaration=n.declaration;let g=l_(n),T=qge(g);_.typeParameter=T,a=FS(WS(g,T),a),T.mapper=a}return n.objectFlags&8388608&&(_.node=n.node),_.target=n,_.mapper=a,_.aliasSymbol=c||n.aliasSymbol,_.aliasTypeArguments=c?u:uv(n.aliasTypeArguments,a),_.objectFlags|=_.aliasTypeArguments?EZ(_.aliasTypeArguments):0,_}function $ge(n,a,c,u,_){let g=n.root;if(g.outerTypeParameters){let T=mn(g.outerTypeParameters,V=>Ob(V,a)),M=(c?"C":"")+cm(T)+ax(u,_),W=g.instantiations.get(M);if(!W){let V=Np(g.outerTypeParameters,T),te=g.checkType,ye=g.isDistributive?d_(Ob(te,V)):void 0;W=ye&&te!==ye&&ye.flags&1179648?U8e(ye,_e=>Vge(g,VA(te,_e,V),c),u,_):Vge(g,V,c,u,_),g.instantiations.set(M,W)}return W}return n}function io(n,a){return n&&a?UOe(n,a,void 0,void 0):n}function UOe(n,a,c,u){var _;if(!c0(n))return n;if(A===100||S>=5e6)return(_=rr)==null||_.instant(rr.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:n.id,instantiationDepth:A,instantiationCount:S}),Ve(D,f.Type_instantiation_is_excessively_deep_and_possibly_infinite),pt;E++,S++,A++;let g=glt(n,a,c,u);return A--,g}function glt(n,a,c,u){let _=n.flags;if(_&262144)return Ob(n,a);if(_&524288){let g=n.objectFlags;if(g&52){if(g&4&&!n.node){let T=n.resolvedTypeArguments,M=uv(T,a);return M!==T?Pge(n.target,M):n}return g&1024?ylt(n,a):plt(n,a,c,u)}return n}if(_&3145728){let g=n.flags&1048576?n.origin:void 0,T=g&&g.flags&3145728?g.types:n.types,M=uv(T,a);if(M===T&&c===n.aliasSymbol)return n;let W=c||n.aliasSymbol,V=c?u:uv(n.aliasTypeArguments,a);return _&2097152||g&&g.flags&2097152?ha(M,W,V):ti(M,1,W,V)}if(_&4194304)return J_(io(n.type,a));if(_&134217728)return FA(n.texts,uv(n.types,a));if(_&268435456)return sx(n.symbol,io(n.type,a));if(_&8388608){let g=c||n.aliasSymbol,T=c?u:uv(n.aliasTypeArguments,a);return Cp(io(n.objectType,a),io(n.indexType,a),n.accessFlags,void 0,g,T)}if(_&16777216)return $ge(n,FS(n.mapper,a),!1,c,u);if(_&33554432){let g=io(n.baseType,a);if(OM(n))return yge(g);let T=io(n.constraint,a);return g.flags&8650752&&uC(T)?bge(g,T):T.flags&3||ga(jA(g),jA(T))?g:g.flags&8650752?bge(g,T):ha([T,g])}return n}function ylt(n,a){let c=io(n.mappedType,a);if(!(kr(c)&32))return n;let u=io(n.constraintType,a);if(!(u.flags&4194304))return n;let _=S8e(io(n.source,a),c,u);return _||n}function I8(n){return n.flags&402915327?n:n.permissiveInstantiation||(n.permissiveInstantiation=io(n,ml))}function jA(n){return n.flags&402915327?n:(n.restrictiveInstantiation||(n.restrictiveInstantiation=io(n,zs),n.restrictiveInstantiation.restrictiveInstantiation=n.restrictiveInstantiation),n.restrictiveInstantiation)}function vlt(n,a){return Wh(n.keyType,io(n.type,a),n.isReadonly,n.declaration)}function zf(n){switch(R.assert(n.kind!==174||bm(n)),n.kind){case 218:case 219:case 174:case 262:return HOe(n);case 210:return gt(n.properties,zf);case 209:return gt(n.elements,zf);case 227:return zf(n.whenTrue)||zf(n.whenFalse);case 226:return(n.operatorToken.kind===57||n.operatorToken.kind===61)&&(zf(n.left)||zf(n.right));case 303:return zf(n.initializer);case 217:return zf(n.expression);case 292:return gt(n.properties,zf)||P_(n.parent)&>(n.parent.parent.children,zf);case 291:{let{initializer:a}=n;return!!a&&zf(a)}case 294:{let{expression:a}=n;return!!a&&zf(a)}}return!1}function HOe(n){return z6(n)||blt(n)}function blt(n){return n.typeParameters||$f(n)||!n.body?!1:n.body.kind!==241?zf(n.body):!!x0(n.body,a=>!!a.expression&&zf(a.expression))}function OZ(n){return(z0(n)||bm(n))&&HOe(n)}function KOe(n){if(n.flags&524288){let a=c_(n);if(a.constructSignatures.length||a.callSignatures.length){let c=kf(16,n.symbol);return c.members=a.members,c.properties=a.properties,c.callSignatures=Xe,c.constructSignatures=Xe,c.indexInfos=Xe,c}}else if(n.flags&2097152)return ha(mn(n.types,KOe));return n}function uy(n,a){return q_(n,a,np)}function x8(n,a){return q_(n,a,np)?-1:0}function Qge(n,a){return q_(n,a,Vu)?-1:0}function Elt(n,a){return q_(n,a,xh)?-1:0}function Wb(n,a){return q_(n,a,xh)}function f5(n,a){return q_(n,a,Mf)}function ga(n,a){return q_(n,a,Vu)}function a0(n,a){return n.flags&1048576?oo(n.types,c=>a0(c,a)):a.flags&1048576?gt(a.types,c=>a0(n,c)):n.flags&2097152?gt(n.types,c=>a0(c,a)):n.flags&58982400?a0(Fd(n)||un,a):zh(a)?!!(n.flags&67633152):a===Re?!!(n.flags&67633152)&&!zh(n):a===Lt?!!(n.flags&524288)&&Pye(n):nC(n,av(a))||Gf(a)&&!GM(a)&&a0(n,Qo)}function WZ(n,a){return q_(n,a,Ap)}function m5(n,a){return WZ(n,a)||WZ(a,n)}function Zd(n,a,c,u,_,g){return Bf(n,a,Vu,c,u,_,g)}function Fb(n,a,c,u,_,g){return Zge(n,a,Vu,c,u,_,g,void 0)}function Zge(n,a,c,u,_,g,T,M){return q_(n,a,c)?!0:!u||!R8(_,n,a,c,g,T,M)?Bf(n,a,c,u,g,T,M):!1}function JOe(n){return!!(n.flags&16777216||n.flags&2097152&>(n.types,JOe))}function R8(n,a,c,u,_,g,T){if(!n||JOe(c))return!1;if(!Bf(a,c,u,void 0)&&Slt(n,a,c,u,_,g,T))return!0;switch(n.kind){case 234:if(!ub(n))break;case 294:case 217:return R8(n.expression,a,c,u,_,g,T);case 226:switch(n.operatorToken.kind){case 64:case 28:return R8(n.right,a,c,u,_,g,T)}break;case 210:return Nlt(n,a,c,u,g,T);case 209:return Dlt(n,a,c,u,g,T);case 292:return Rlt(n,a,c,u,g,T);case 219:return Tlt(n,a,c,u,g,T)}return!1}function Slt(n,a,c,u,_,g,T){let M=Ko(a,0),W=Ko(a,1);for(let V of[W,M])if(gt(V,te=>{let ye=us(te);return!(ye.flags&131073)&&Bf(ye,c,u,void 0)})){let te=T||{};Zd(a,c,n,_,g,te);let ye=te.errors[te.errors.length-1];return Ma(ye,Pr(n,V===W?f.Did_you_mean_to_use_new_with_this_expression:f.Did_you_mean_to_call_this_expression)),!0}return!1}function Tlt(n,a,c,u,_,g){if(Ho(n.body)||gt(n.parameters,hF))return!1;let T=QA(a);if(!T)return!1;let M=Ko(c,0);if(!Nn(M))return!1;let W=n.body,V=us(T),te=ti(mn(M,us));if(!Bf(V,te,u,void 0)){let ye=W&&R8(W,V,te,u,void 0,_,g);if(ye)return ye;let _e=g||{};if(Bf(V,te,u,W,void 0,_,_e),_e.errors)return c.symbol&&Nn(c.symbol.declarations)&&Ma(_e.errors[_e.errors.length-1],Pr(c.symbol.declarations[0],f.The_expected_type_comes_from_the_return_type_of_this_signature)),!(Bc(n)&2)&&!Ue(V,"then")&&Bf(X5(V),te,u,void 0)&&Ma(_e.errors[_e.errors.length-1],Pr(n,f.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function qOe(n,a,c){let u=kb(a,c);if(u)return u;if(a.flags&1048576){let _=n8e(n,a);if(_)return kb(_,c)}}function XOe(n,a){L5(n,a,!1);let c=ZM(n,1);return W8(),c}function _5(n,a,c,u,_,g){let T=!1;for(let M of n){let{errorNode:W,innerExpression:V,nameType:te,errorMessage:ye}=M,_e=qOe(a,c,te);if(!_e||_e.flags&8388608)continue;let je=kb(a,te);if(!je)continue;let mt=RZ(te,void 0);if(!Bf(je,_e,u,void 0)){let At=V&&R8(V,je,_e,u,void 0,_,g);if(T=!0,!At){let rn=g||{},sn=V?XOe(V,je):je;if(Ie&&zZ(sn,_e)){let nr=Pr(W,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Vn(sn),Vn(_e));Qa.add(nr),rn.errors=[nr]}else{let nr=!!(mt&&(_a(c,mt)||lt).flags&16777216),Mn=!!(mt&&(_a(a,mt)||lt).flags&16777216);_e=Gb(_e,nr),je=Gb(je,nr&&Mn),Bf(sn,_e,u,W,ye,_,rn)&&sn!==je&&Bf(je,_e,u,W,ye,_,rn)}if(rn.errors){let nr=rn.errors[rn.errors.length-1],Mn=Qf(te)?Zf(te):void 0,an=Mn!==void 0?_a(c,Mn):void 0,On=!1;if(!an){let Ln=_8(c,te);Ln&&Ln.declaration&&!Gn(Ln.declaration).hasNoDefaultLib&&(On=!0,Ma(nr,Pr(Ln.declaration,f.The_expected_type_comes_from_this_index_signature)))}if(!On&&(an&&Nn(an.declarations)||c.symbol&&Nn(c.symbol.declarations))){let Ln=an&&Nn(an.declarations)?an.declarations[0]:c.symbol.declarations[0];Gn(Ln).hasNoDefaultLib||Ma(nr,Pr(Ln,f.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,Mn&&!(te.flags&8192)?Vi(Mn):Vn(te),Vn(c)))}}}}}return T}function Alt(n,a,c,u,_,g){let T=cc(c,KZ),M=cc(c,te=>!KZ(te)),W=M!==Fr?Xve(13,0,M,void 0):void 0,V=!1;for(let te=n.next();!te.done;te=n.next()){let{errorNode:ye,innerExpression:_e,nameType:je,errorMessage:mt}=te.value,At=W,rn=T!==Fr?qOe(a,T,je):void 0;if(rn&&!(rn.flags&8388608)&&(At=W?ti([W,rn]):rn),!At)continue;let sn=kb(a,je);if(!sn)continue;let nr=RZ(je,void 0);if(!Bf(sn,At,u,void 0)){let Mn=_e&&R8(_e,sn,At,u,void 0,_,g);if(V=!0,!Mn){let an=g||{},On=_e?XOe(_e,sn):sn;if(Ie&&zZ(On,At)){let Ln=Pr(ye,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Vn(On),Vn(At));Qa.add(Ln),an.errors=[Ln]}else{let Ln=!!(nr&&(_a(T,nr)||lt).flags&16777216),Yn=!!(nr&&(_a(a,nr)||lt).flags&16777216);At=Gb(At,Ln),sn=Gb(sn,Ln&&Yn),Bf(On,At,u,ye,mt,_,an)&&On!==sn&&Bf(sn,At,u,ye,mt,_,an)}}}}return V}function*Ilt(n){if(Nn(n.properties))for(let a of n.properties)o1(a)||Qye(mk(a.name))||(yield{errorNode:a.name,innerExpression:a.initializer,nameType:Hu(mk(a.name))})}function*xlt(n,a){if(!Nn(n.children))return;let c=0;for(let u=0;u1,rn,sn;if(Rge(!1)!==Mo){let Mn=sOe(G);rn=cc(je,an=>ga(an,Mn)),sn=cc(je,an=>!ga(an,Mn))}else rn=cc(je,KZ),sn=cc(je,Mn=>!KZ(Mn));if(At){if(rn!==Fr){let Mn=Fh(yee(V,0)),an=xlt(V,W);T=Alt(an,Mn,rn,u,_,g)||T}else if(!q_(Cp(a,_e),je,u)){T=!0;let Mn=Ve(V.openingElement.tagName,f.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,ye,Vn(je));g&&g.skipLogging&&(g.errors||(g.errors=[])).push(Mn)}}else if(sn!==Fr){let Mn=mt[0],an=YOe(Mn,_e,W);an&&(T=_5(function*(){yield an}(),a,c,u,_,g)||T)}else if(!q_(Cp(a,_e),je,u)){T=!0;let Mn=Ve(V.openingElement.tagName,f.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,ye,Vn(je));g&&g.skipLogging&&(g.errors||(g.errors=[])).push(Mn)}}return T;function W(){if(!M){let V=uc(n.parent.tagName),te=w5(YA(n)),ye=te===void 0?"children":Vi(te),_e=Cp(c,Hu(ye)),je=f._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;M={...je,key:"!!ALREADY FORMATTED!!",message:nU(je,V,ye,Vn(_e))}}return M}}function*$Oe(n,a){let c=Nn(n.elements);if(c)for(let u=0;uW:Q_(n)>W))return u&&!(c&8)&&_(f.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,Q_(n),W),0;n.typeParameters&&n.typeParameters!==a.typeParameters&&(a=Mat(a),n=$We(n,a,void 0,T));let te=Kp(n),ye=G8(n),_e=G8(a);(ye||_e)&&io(ye||_e,M);let je=a.declaration?a.declaration.kind:0,mt=!(c&3)&&re&&je!==174&&je!==173&&je!==176,At=-1,rn=r0(n);if(rn&&rn!==er){let Mn=r0(a);if(Mn){let an=!mt&&T(rn,Mn,!1)||T(Mn,rn,u);if(!an)return u&&_(f.The_this_types_of_each_signature_are_incompatible),0;At&=an}}let sn=ye||_e?Math.min(te,W):Math.max(te,W),nr=ye||_e?sn-1:-1;for(let Mn=0;Mn=Q_(n)&&Mn=3&&a[0].flags&32768&&a[1].flags&65536&>(a,zh)?67108864:0)}return!!(n.objectFlags&67108864)}return!1}function zM(n){return!!((n.flags&1048576?n.types[0]:n).flags&32768)}function ZOe(n){return n.flags&524288&&!Uu(n)&&_s(n).length===0&&hu(n).length===1&&!!bg(n,Ne)||n.flags&3145728&&oo(n.types,ZOe)||!1}function nye(n,a,c){let u=n.flags&8?Du(n):n,_=a.flags&8?Du(a):a;if(u===_)return!0;if(u.escapedName!==_.escapedName||!(u.flags&256)||!(_.flags&256))return!1;let g=ba(u)+","+ba(_),T=Zy.get(g);if(T!==void 0&&!(!(T&4)&&T&2&&c))return!!(T&1);let M=sr(_);for(let W of _s(sr(u)))if(W.flags&8){let V=_a(M,W.escapedName);if(!V||!(V.flags&8))return c?(c(f.Property_0_is_missing_in_type_1,yl(W),Vn(Ys(_),void 0,64)),Zy.set(g,6)):Zy.set(g,2),!1;let te=AC(cl(W,306)),ye=AC(cl(V,306));if(te!==ye){let _e=typeof te=="string",je=typeof ye=="string";if(te!==void 0&&ye!==void 0){if(!c)Zy.set(g,2);else{let mt=_e?`"${Zh(te)}"`:te,At=je?`"${Zh(ye)}"`:ye;c(f.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given,yl(_),yl(V),At,mt),Zy.set(g,6)}return!1}if(_e||je){if(!c)Zy.set(g,2);else{let mt=te??ye;R.assert(typeof mt=="string");let At=`"${Zh(mt)}"`;c(f.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value,yl(_),yl(V),At),Zy.set(g,6)}return!1}}}return Zy.set(g,1),!0}function D8(n,a,c,u){let _=n.flags,g=a.flags;return g&1||_&131072||n===Tt||g&2&&!(c===Mf&&_&1)?!0:g&131072?!1:!!(_&402653316&&g&4||_&128&&_&1024&&g&128&&!(g&1024)&&n.value===a.value||_&296&&g&8||_&256&&_&1024&&g&256&&!(g&1024)&&n.value===a.value||_&2112&&g&64||_&528&&g&16||_&12288&&g&4096||_&32&&g&32&&n.symbol.escapedName===a.symbol.escapedName&&nye(n.symbol,a.symbol,u)||_&1024&&g&1024&&(_&1048576&&g&1048576&&nye(n.symbol,a.symbol,u)||_&2944&&g&2944&&n.value===a.value&&nye(n.symbol,a.symbol,u))||_&32768&&(!J&&!(g&3145728)||g&49152)||_&65536&&(!J&&!(g&3145728)||g&65536)||_&524288&&g&67108864&&!(c===Mf&&zh(n)&&!(kr(n)&8192))||(c===Vu||c===Ap)&&(_&1||_&8&&(g&32||g&256&&g&1024)||_&256&&!(_&1024)&&(g&32||g&256&&g&1024&&n.value===a.value)||klt(a)))}function q_(n,a,c){if(OS(n)&&(n=n.regularType),OS(a)&&(a=a.regularType),n===a)return!0;if(c!==np){if(c===Ap&&!(a.flags&131072)&&D8(a,n,c)||D8(n,a,c))return!0}else if(!((n.flags|a.flags)&61865984)){if(n.flags!==a.flags)return!1;if(n.flags&67358815)return!0}if(n.flags&524288&&a.flags&524288){let u=c.get(VZ(n,a,0,c,!1));if(u!==void 0)return!!(u&1)}return n.flags&469499904||a.flags&469499904?Bf(n,a,c,void 0):!1}function e8e(n,a){return kr(n)&2048&&Qye(a.escapedName)}function h5(n,a){for(;;){let c=OS(n)?n.regularType:zb(n)?Olt(n,a):kr(n)&4?n.node?lv(n.target,Us(n)):cye(n)||n:n.flags&3145728?wlt(n,a):n.flags&33554432?a?n.baseType:Ege(n):n.flags&25165824?dy(n,a):n;if(c===n)return c;n=c}}function wlt(n,a){let c=d_(n);if(c!==n)return c;if(n.flags&2097152&>(n.types,zh)){let u=Nc(n.types,_=>h5(_,a));if(u!==n.types)return ha(u)}return n}function Olt(n,a){let c=kS(n),u=Nc(c,_=>_.flags&25165824?dy(_,a):_);return c!==u?Mge(n.target,u):n}function Bf(n,a,c,u,_,g,T){var M;let W,V,te,ye,_e,je,mt=0,At=0,rn=0,sn=0,nr=!1,Mn=0,an=0,On,Ln,Yn=16e6-c.size>>3;R.assert(c!==np||!u,"no error reporting in identity checking");let jn=gr(n,a,3,!!u,_);if(Ln&&Wo(),nr){let Ze=VZ(n,a,0,c,!1);c.set(Ze,6),(M=rr)==null||M.instant(rr.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:n.id,targetId:a.id,depth:At,targetDepth:rn});let vt=Yn<=0?f.Excessive_complexity_comparing_types_0_and_1:f.Excessive_stack_depth_comparing_types_0_and_1,$t=Ve(u||D,vt,Vn(n),Vn(a));T&&(T.errors||(T.errors=[])).push($t)}else if(W){if(g){let $t=g();$t&&(foe($t,W),W=$t)}let Ze;if(_&&u&&!jn&&n.symbol){let $t=qi(n.symbol);if($t.originatingImport&&!Op($t.originatingImport)&&Bf(sr($t.target),a,c,void 0)){let Ir=Pr($t.originatingImport,f.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);Ze=Tn(Ze,Ir)}}let vt=Pg(Gn(u),u,W,Ze);V&&Ma(vt,...V),T&&(T.errors||(T.errors=[])).push(vt),(!T||!T.skipLogging)&&Qa.add(vt)}return u&&T&&T.skipLogging&&jn===0&&R.assert(!!T.errors,"missed opportunity to interact with error."),jn!==0;function $n(Ze){W=Ze.errorInfo,On=Ze.lastSkippedInfo,Ln=Ze.incompatibleStack,Mn=Ze.overrideNextErrorInfo,an=Ze.skipParentCounter,V=Ze.relatedInfo}function xo(){return{errorInfo:W,lastSkippedInfo:On,incompatibleStack:Ln?.slice(),overrideNextErrorInfo:Mn,skipParentCounter:an,relatedInfo:V?.slice()}}function vo(Ze,...vt){Mn++,On=void 0,(Ln||(Ln=[])).push([Ze,...vt])}function Wo(){let Ze=Ln||[];Ln=void 0;let vt=On;if(On=void 0,Ze.length===1){fo(...Ze[0]),vt&&sp(void 0,...vt);return}let $t="",Hn=[];for(;Ze.length;){let[Ir,...bn]=Ze.pop();switch(Ir.code){case f.Types_of_property_0_are_incompatible.code:{$t.indexOf("new ")===0&&($t=`(${$t})`);let _r=""+bn[0];$t.length===0?$t=`${_r}`:$p(_r,rs(B))?$t=`${$t}.${_r}`:_r[0]==="["&&_r[_r.length-1]==="]"?$t=`${$t}${_r}`:$t=`${$t}[${_r}]`;break}case f.Call_signature_return_types_0_and_1_are_incompatible.code:case f.Construct_signature_return_types_0_and_1_are_incompatible.code:case f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if($t.length===0){let _r=Ir;Ir.code===f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?_r=f.Call_signature_return_types_0_and_1_are_incompatible:Ir.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(_r=f.Construct_signature_return_types_0_and_1_are_incompatible),Hn.unshift([_r,bn[0],bn[1]])}else{let _r=Ir.code===f.Construct_signature_return_types_0_and_1_are_incompatible.code||Ir.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",Gr=Ir.code===f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||Ir.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";$t=`${_r}${$t}(${Gr})`}break}case f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{Hn.unshift([f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,bn[0],bn[1]]);break}case f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{Hn.unshift([f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,bn[0],bn[1],bn[2]]);break}default:return R.fail(`Unhandled Diagnostic: ${Ir.code}`)}}$t?fo($t[$t.length-1]===")"?f.The_types_returned_by_0_are_incompatible_between_these_types:f.The_types_of_0_are_incompatible_between_these_types,$t):Hn.shift();for(let[Ir,...bn]of Hn){let _r=Ir.elidedInCompatabilityPyramid;Ir.elidedInCompatabilityPyramid=!1,fo(Ir,...bn),Ir.elidedInCompatabilityPyramid=_r}vt&&sp(void 0,...vt)}function fo(Ze,...vt){R.assert(!!u),Ln&&Wo(),!Ze.elidedInCompatabilityPyramid&&(an===0?W=Fo(W,Ze,...vt):an--)}function Rc(Ze,...vt){fo(Ze,...vt),an++}function Vf(Ze){R.assert(!!W),V?V.push(Ze):V=[Ze]}function sp(Ze,vt,$t){Ln&&Wo();let[Hn,Ir]=tx(vt,$t),bn=vt,_r=Hn;if(C8(vt)&&!rye($t)&&(bn=fy(vt),R.assert(!ga(bn,$t),"generalized source shouldn't be assignable"),_r=Eb(bn)),($t.flags&8388608&&!(vt.flags&8388608)?$t.objectType.flags:$t.flags)&262144&&$t!==de&&$t!==$){let zi=Fd($t),wo;zi&&(ga(bn,zi)||(wo=ga(vt,zi)))?fo(f._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,wo?Hn:_r,Ir,Vn(zi)):(W=void 0,fo(f._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,Ir,_r))}if(Ze)Ze===f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&Ie&&t8e(vt,$t).length&&(Ze=f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(c===Ap)Ze=f.Type_0_is_not_comparable_to_type_1;else if(Hn===Ir)Ze=f.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(Ie&&t8e(vt,$t).length)Ze=f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(vt.flags&128&&$t.flags&1048576){let zi=Hut(vt,$t);if(zi){fo(f.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,_r,Ir,Vn(zi));return}}Ze=f.Type_0_is_not_assignable_to_type_1}fo(Ze,_r,Ir)}function Pn(Ze,vt){let $t=Sb(Ze.symbol)?Vn(Ze,Ze.symbol.valueDeclaration):Vn(Ze),Hn=Sb(vt.symbol)?Vn(vt,vt.symbol.valueDeclaration):Vn(vt);(Ql===Ze&&Ne===vt||gc===Ze&&It===vt||sl===Ze&&gi===vt||nOe()===Ze&&xi===vt)&&fo(f._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,Hn,$t)}function Xn(Ze,vt,$t){return Oa(Ze)?Ze.target.readonly&&b5(vt)?($t&&fo(f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Vn(Ze),Vn(vt)),!1):s0(vt):GM(Ze)&&b5(vt)?($t&&fo(f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Vn(Ze),Vn(vt)),!1):Oa(vt)?Gf(Ze):!0}function ro(Ze,vt,$t){return gr(Ze,vt,3,$t)}function gr(Ze,vt,$t=3,Hn=!1,Ir,bn=0){if(Ze===vt)return-1;if(Ze.flags&524288&&vt.flags&402784252)return c===Ap&&!(vt.flags&131072)&&D8(vt,Ze,c)||D8(Ze,vt,c,Hn?fo:void 0)?-1:(Hn&&Do(Ze,vt,Ze,vt,Ir),0);let _r=h5(Ze,!1),Gr=h5(vt,!0);if(_r===Gr)return-1;if(c===np)return _r.flags!==Gr.flags?0:_r.flags&67358815?-1:(os(_r,Gr),Ai(_r,Gr,!1,0,$t));if(_r.flags&262144&&kA(_r)===Gr)return-1;if(_r.flags&470302716&&Gr.flags&1048576){let zi=Gr.types,wo=zi.length===2&&zi[0].flags&98304?zi[1]:zi.length===3&&zi[0].flags&98304&&zi[1].flags&98304?zi[2]:void 0;if(wo&&!(wo.flags&98304)&&(Gr=h5(wo,!0),_r===Gr))return-1}if(c===Ap&&!(Gr.flags&131072)&&D8(Gr,_r,c)||D8(_r,Gr,c,Hn?fo:void 0))return-1;if(_r.flags&469499904||Gr.flags&469499904){if(!(bn&2)&&d0(_r)&&kr(_r)&8192&&Bd(_r,Gr,Hn))return Hn&&sp(Ir,_r,vt.aliasSymbol?vt:Gr),0;let wo=(c!==Ap||p_(_r))&&!(bn&2)&&_r.flags&405405692&&_r!==Re&&Gr.flags&2621440&&r8e(Gr)&&(_s(_r).length>0||Qee(_r)),ua=!!(kr(_r)&2048);if(wo&&!Flt(_r,Gr,ua)){if(Hn){let Lo=Vn(Ze.aliasSymbol?Ze:_r),Ia=Vn(vt.aliasSymbol?vt:Gr),xs=Ko(_r,0),ps=Ko(_r,1);xs.length>0&&gr(us(xs[0]),Gr,1,!1)||ps.length>0&&gr(us(ps[0]),Gr,1,!1)?fo(f.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Lo,Ia):fo(f.Type_0_has_no_properties_in_common_with_type_1,Lo,Ia)}return 0}os(_r,Gr);let Ei=_r.flags&1048576&&_r.types.length<4&&!(Gr.flags&1048576)||Gr.flags&1048576&&Gr.types.length<4&&!(_r.flags&469499904)?Mu(_r,Gr,Hn,bn):Ai(_r,Gr,Hn,bn,$t);if(Ei)return Ei}return Hn&&Do(Ze,vt,_r,Gr,Ir),0}function Do(Ze,vt,$t,Hn,Ir){var bn,_r;let Gr=!!cye(Ze),zi=!!cye(vt);$t=Ze.aliasSymbol||Gr?Ze:$t,Hn=vt.aliasSymbol||zi?vt:Hn;let wo=Mn>0;if(wo&&Mn--,$t.flags&524288&&Hn.flags&524288){let ua=W;Xn($t,Hn,!0),W!==ua&&(wo=!!W)}if($t.flags&524288&&Hn.flags&402784252)Pn($t,Hn);else if($t.symbol&&$t.flags&524288&&Re===$t)fo(f.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(kr($t)&2048&&Hn.flags&2097152){let ua=Hn.types,pa=VS(nf.IntrinsicAttributes,u),Ei=VS(nf.IntrinsicClassAttributes,u);if(!Ut(pa)&&!Ut(Ei)&&(zo(ua,pa)||zo(ua,Ei)))return}else W=age(W,vt);if(!Ir&&wo){On=[$t,Hn];return}if(sp(Ir,$t,Hn),$t.flags&262144&&((_r=(bn=$t.symbol)==null?void 0:bn.declarations)!=null&&_r[0])&&!kA($t)){let ua=qge($t);if(ua.constraint=io(Hn,WS($t,ua)),e5(ua)){let pa=Vn(Hn,$t.symbol.declarations[0]);Vf(Pr($t.symbol.declarations[0],f.This_type_parameter_might_need_an_extends_0_constraint,pa))}}}function os(Ze,vt){if(rr&&Ze.flags&3145728&&vt.flags&3145728){let $t=Ze,Hn=vt;if($t.objectFlags&Hn.objectFlags&32768)return;let Ir=$t.types.length,bn=Hn.types.length;Ir*bn>1e6&&rr.instant(rr.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:Ze.id,sourceSize:Ir,targetId:vt.id,targetSize:bn,pos:u?.pos,end:u?.end})}}function bs(Ze,vt){return ti(nu(Ze,(Hn,Ir)=>{var bn;Ir=Pu(Ir);let _r=Ir.flags&3145728?t5(Ir,vt):t0(Ir,vt),Gr=_r&&sr(_r)||((bn=ox(Ir,vt))==null?void 0:bn.type)||Me;return Tn(Hn,Gr)},void 0)||Xe)}function Bd(Ze,vt,$t){var Hn;if(!W5(vt)||!fe&&kr(vt)&4096)return!1;let Ir=!!(kr(Ze)&2048);if((c===Vu||c===Ap)&&(KM(Re,vt)||!Ir&&py(vt)))return!1;let bn=vt,_r;vt.flags&1048576&&(bn=b4e(Ze,vt,gr)||qgt(vt),_r=bn.flags&1048576?bn.types:[bn]);for(let Gr of _s(Ze))if(Wa(Gr,Ze.symbol)&&!e8e(Ze,Gr)){if(!tve(bn,Gr.escapedName,Ir)){if($t){let zi=cc(bn,W5);if(!u)return R.fail();if(X0(u)||su(u)||su(u.parent)){Gr.valueDeclaration&&M_(Gr.valueDeclaration)&&Gn(u)===Gn(Gr.valueDeclaration.name)&&(u=Gr.valueDeclaration.name);let wo=Si(Gr),ua=jWe(wo,zi),pa=ua?Si(ua):void 0;pa?fo(f.Property_0_does_not_exist_on_type_1_Did_you_mean_2,wo,Vn(zi),pa):fo(f.Property_0_does_not_exist_on_type_1,wo,Vn(zi))}else{let wo=((Hn=Ze.symbol)==null?void 0:Hn.declarations)&&Jc(Ze.symbol.declarations),ua;if(Gr.valueDeclaration&&Fn(Gr.valueDeclaration,pa=>pa===wo)&&Gn(wo)===Gn(u)){let pa=Gr.valueDeclaration;R.assertNode(pa,Ng);let Ei=pa.name;u=Ei,Fe(Ei)&&(ua=dve(Ei,zi))}ua!==void 0?Rc(f.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Si(Gr),Vn(zi),ua):Rc(f.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Si(Gr),Vn(zi))}}return!0}if(_r&&!gr(sr(Gr),bs(_r,Gr.escapedName),3,$t))return $t&&vo(f.Types_of_property_0_are_incompatible,Si(Gr)),!0}return!1}function Wa(Ze,vt){return Ze.valueDeclaration&&vt.valueDeclaration&&Ze.valueDeclaration.parent===vt.valueDeclaration}function Mu(Ze,vt,$t,Hn){if(Ze.flags&1048576){if(vt.flags&1048576){let Ir=Ze.origin;if(Ir&&Ir.flags&2097152&&vt.aliasSymbol&&zo(Ir.types,vt))return-1;let bn=vt.origin;if(bn&&bn.flags&1048576&&Ze.aliasSymbol&&zo(bn.types,Ze))return-1}return c===Ap?Te(Ze,vt,$t&&!(Ze.flags&402784252),Hn):Dr(Ze,vt,$t&&!(Ze.flags&402784252),Hn)}if(vt.flags&1048576)return gl(M8(Ze),vt,$t&&!(Ze.flags&402784252)&&!(vt.flags&402784252),Hn);if(vt.flags&2097152)return ot(Ze,vt,$t,2);if(c===Ap&&vt.flags&402784252){let Ir=Nc(Ze.types,bn=>bn.flags&465829888?Fd(bn)||un:bn);if(Ir!==Ze.types){if(Ze=ha(Ir),Ze.flags&131072)return 0;if(!(Ze.flags&2097152))return gr(Ze,vt,1,!1)||gr(vt,Ze,1,!1)}}return Te(Ze,vt,!1,1)}function Ol(Ze,vt){let $t=-1,Hn=Ze.types;for(let Ir of Hn){let bn=gl(Ir,vt,!1,0);if(!bn)return 0;$t&=bn}return $t}function gl(Ze,vt,$t,Hn){let Ir=vt.types;if(vt.flags&1048576){if(cy(Ir,Ze))return-1;if(c!==Ap&&kr(vt)&32768&&!(Ze.flags&1024)&&(Ze.flags&2688||(c===xh||c===Mf)&&Ze.flags&256)){let _r=Ze===Ze.regularType?Ze.freshType:Ze.regularType,Gr=Ze.flags&128?Ne:Ze.flags&256?It:Ze.flags&2048?Ct:void 0;return Gr&&cy(Ir,Gr)||_r&&cy(Ir,_r)?-1:0}let bn=M8e(vt,Ze);if(bn){let _r=gr(Ze,bn,2,!1,void 0,Hn);if(_r)return _r}}for(let bn of Ir){let _r=gr(Ze,bn,2,!1,void 0,Hn);if(_r)return _r}if($t){let bn=n8e(Ze,vt,gr);bn&&gr(Ze,bn,2,!0,void 0,Hn)}return 0}function ot(Ze,vt,$t,Hn){let Ir=-1,bn=vt.types;for(let _r of bn){let Gr=gr(Ze,_r,2,$t,void 0,Hn);if(!Gr)return 0;Ir&=Gr}return Ir}function Te(Ze,vt,$t,Hn){let Ir=Ze.types;if(Ze.flags&1048576&&cy(Ir,vt))return-1;let bn=Ir.length;for(let _r=0;_r=_r.types.length&&bn.length%_r.types.length===0){let ua=gr(zi,_r.types[Gr%_r.types.length],3,!1,void 0,Hn);if(ua){Ir&=ua;continue}}let wo=gr(zi,vt,1,$t,void 0,Hn);if(!wo)return 0;Ir&=wo}return Ir}function ui(Ze=Xe,vt=Xe,$t=Xe,Hn,Ir){if(Ze.length!==vt.length&&c===np)return 0;let bn=Ze.length<=vt.length?Ze.length:vt.length,_r=-1;for(let Gr=0;Gr(Lo|=ps?16:8,Ei(ps)));let Ia;return sn===3?((bn=rr)==null||bn.instant(rr.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:Ze.id,sourceIdStack:_e.map(ps=>ps.id),targetId:vt.id,targetIdStack:je.map(ps=>ps.id),depth:At,targetDepth:rn}),Ia=3):((_r=rr)==null||_r.push(rr.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:Ze.id,targetId:vt.id}),Ia=Ii(Ze,vt,$t,Hn),(Gr=rr)==null||Gr.pop()),sa&&(sa=Ei),Ir&1&&At--,Ir&2&&rn--,sn=pa,Ia?(Ia===-1||At===0&&rn===0)&&xs(Ia===-1||Ia===3):(c.set(zi,($t?4:0)|2|Lo),Yn--,xs(!1)),Ia;function xs(ps){for(let Cc=ua;CcGr!==Ze)&&(bn=gr(_r,vt,1,!1,void 0,Hn))}bn&&!(Hn&2)&&vt.flags&2097152&&!BA(vt)&&Ze.flags&2621440?(bn&=bi(Ze,vt,$t,void 0,!1,0),bn&&d0(Ze)&&kr(Ze)&8192&&(bn&=as(Ze,vt,!1,$t,0))):bn&&CZ(vt)&&!s0(vt)&&Ze.flags&2097152&&Pu(Ze).flags&3670016&&!gt(Ze.types,_r=>_r===vt||!!(kr(_r)&262144))&&(bn&=bi(Ze,vt,$t,void 0,!0,Hn))}return bn&&$n(Ir),bn}function Br(Ze,vt){let $t=Pu(LA(vt)),Hn=[];return Qhe($t,8576,!1,Ir=>void Hn.push(io(Ze,T8(vt.mapper,l_(vt),Ir)))),ti(Hn)}function Tr(Ze,vt,$t,Hn,Ir){let bn,_r,Gr=!1,zi=Ze.flags,wo=vt.flags;if(c===np){if(zi&3145728){let Ei=Ol(Ze,vt);return Ei&&(Ei&=Ol(vt,Ze)),Ei}if(zi&4194304)return gr(Ze.type,vt.type,3,!1);if(zi&8388608&&(bn=gr(Ze.objectType,vt.objectType,3,!1))&&(bn&=gr(Ze.indexType,vt.indexType,3,!1))||zi&16777216&&Ze.root.isDistributive===vt.root.isDistributive&&(bn=gr(Ze.checkType,vt.checkType,3,!1))&&(bn&=gr(Ze.extendsType,vt.extendsType,3,!1))&&(bn&=gr(i0(Ze),i0(vt),3,!1))&&(bn&=gr(o0(Ze),o0(vt),3,!1))||zi&33554432&&(bn=gr(Ze.baseType,vt.baseType,3,!1))&&(bn&=gr(Ze.constraint,vt.constraint,3,!1)))return bn;if(!(zi&524288))return 0}else if(zi&3145728||wo&3145728){if(bn=Mu(Ze,vt,$t,Hn))return bn;if(!(zi&465829888||zi&524288&&wo&1048576||zi&2097152&&wo&467402752))return 0}if(zi&17301504&&Ze.aliasSymbol&&Ze.aliasTypeArguments&&Ze.aliasSymbol===vt.aliasSymbol&&!(BZ(Ze)||BZ(vt))){let Ei=i8e(Ze.aliasSymbol);if(Ei===Xe)return 1;let Lo=qi(Ze.aliasSymbol).typeParameters,Ia=Oh(Lo),xs=Mb(Ze.aliasTypeArguments,Lo,Ia,ir(Ze.aliasSymbol.valueDeclaration)),ps=Mb(vt.aliasTypeArguments,Lo,Ia,ir(Ze.aliasSymbol.valueDeclaration)),Cc=pa(xs,ps,Ei,Hn);if(Cc!==void 0)return Cc}if(f8e(Ze)&&!Ze.target.readonly&&(bn=gr(Us(Ze)[0],vt,1))||f8e(vt)&&(vt.target.readonly||b5(Fd(Ze)||Ze))&&(bn=gr(Ze,Us(vt)[0],2)))return bn;if(wo&262144){if(kr(Ze)&32&&!Ze.declaration.nameType&&gr(J_(vt),gf(Ze),3)&&!(wh(Ze)&4)){let Ei=sy(Ze),Lo=Cp(vt,l_(Ze));if(bn=gr(Ei,Lo,3,$t))return bn}if(c===Ap&&zi&262144){let Ei=Nu(Ze);if(Ei)for(;Ei&&Fm(Ei,Lo=>!!(Lo.flags&262144));){if(bn=gr(Ei,vt,1,!1))return bn;Ei=Nu(Ei)}return 0}}else if(wo&4194304){let Ei=vt.type;if(zi&4194304&&(bn=gr(Ei,Ze.type,3,!1)))return bn;if(Oa(Ei)){if(bn=gr(Ze,uOe(Ei),2,$t))return bn}else{let Lo=ege(Ei);if(Lo){if(gr(Ze,J_(Lo,vt.indexFlags|4),2,$t)===-1)return-1}else if(Uu(Ei)){let Ia=sv(Ei),xs=gf(Ei),ps;if(Ia&&oC(Ei)){let Cc=Br(Ia,Ei);ps=ti([Cc,Ia])}else ps=Ia||xs;if(gr(Ze,ps,2,$t)===-1)return-1}}}else if(wo&8388608){if(zi&8388608){if((bn=gr(Ze.objectType,vt.objectType,3,$t))&&(bn&=gr(Ze.indexType,vt.indexType,3,$t)),bn)return bn;$t&&(_r=W)}if(c===Vu||c===Ap){let Ei=vt.objectType,Lo=vt.indexType,Ia=Fd(Ei)||Ei,xs=Fd(Lo)||Lo;if(!BA(Ia)&&!GA(xs)){let ps=4|(Ia!==Ei?2:0),Cc=kb(Ia,xs,ps);if(Cc){if($t&&_r&&$n(Ir),bn=gr(Ze,Cc,2,$t,void 0,Hn))return bn;$t&&_r&&W&&(W=ua([_r])<=ua([W])?_r:W)}}}$t&&(_r=void 0)}else if(Uu(vt)&&c!==np){let Ei=!!vt.declaration.nameType,Lo=sy(vt),Ia=wh(vt);if(!(Ia&8)){if(!Ei&&Lo.flags&8388608&&Lo.objectType===Ze&&Lo.indexType===l_(vt))return-1;if(!Uu(Ze)){let xs=Ei?sv(vt):gf(vt),ps=J_(Ze,2),Cc=Ia&4,Gh=Cc?$B(xs,ps):void 0;if(Cc?!(Gh.flags&131072):gr(xs,ps,3)){let gy=sy(vt),tI=l_(vt),nI=JM(gy,-98305);if(!Ei&&nI.flags&8388608&&nI.indexType===tI){if(bn=gr(Ze,nI.objectType,2,$t))return bn}else{let sL=Ei?Gh||xs:Gh?ha([Gh,tI]):tI,h_=Cp(Ze,sL);if(bn=gr(h_,gy,3,$t))return bn}}_r=W,$n(Ir)}}}else if(wo&16777216){if(BM(vt,je,rn,10))return 3;let Ei=vt;if(!Ei.root.inferTypeParameters&&!$st(Ei.root)&&!(Ze.flags&16777216&&Ze.root===Ei.root)){let Lo=!ga(I8(Ei.checkType),I8(Ei.extendsType)),Ia=!Lo&&ga(jA(Ei.checkType),jA(Ei.extendsType));if((bn=Lo?-1:gr(Ze,i0(Ei),2,!1,void 0,Hn))&&(bn&=Ia?-1:gr(Ze,o0(Ei),2,!1,void 0,Hn),bn))return bn}}else if(wo&134217728){if(zi&134217728){if(c===Ap)return Act(Ze,vt)?0:-1;io(Ze,ld)}if(ree(Ze,vt))return-1}else if(vt.flags&268435456&&!(Ze.flags&268435456)&&nee(Ze,vt))return-1;if(zi&8650752){if(!(zi&8388608&&wo&8388608)){let Ei=kA(Ze)||un;if(bn=gr(Ei,vt,1,!1,void 0,Hn))return bn;if(bn=gr(Up(Ei,Ze),vt,1,$t&&Ei!==un&&!(wo&zi&262144),void 0,Hn))return bn;if(ige(Ze)){let Lo=kA(Ze.indexType);if(Lo&&(bn=gr(Cp(Ze.objectType,Lo),vt,1,$t)))return bn}}}else if(zi&4194304){let Ei=Fge(Ze.type,Ze.indexFlags)&&kr(Ze.type)&32;if(bn=gr(ks,vt,1,$t&&!Ei))return bn;if(Ei){let Lo=Ze.type,Ia=sv(Lo),xs=Ia&&oC(Lo)?Br(Ia,Lo):Ia||gf(Lo);if(bn=gr(xs,vt,1,$t))return bn}}else if(zi&134217728&&!(wo&524288)){if(!(wo&134217728)){let Ei=Fd(Ze);if(Ei&&Ei!==Ze&&(bn=gr(Ei,vt,1,$t)))return bn}}else if(zi&268435456)if(wo&268435456){if(Ze.symbol!==vt.symbol)return 0;if(bn=gr(Ze.type,vt.type,3,$t))return bn}else{let Ei=Fd(Ze);if(Ei&&(bn=gr(Ei,vt,1,$t)))return bn}else if(zi&16777216){if(BM(Ze,_e,At,10))return 3;if(wo&16777216){let Ia=Ze.root.inferTypeParameters,xs=Ze.extendsType,ps;if(Ia){let Cc=L8(Ia,void 0,0,ro);_y(Cc.inferences,vt.extendsType,xs,1536),xs=io(xs,Cc.mapper),ps=Cc.mapper}if(uy(xs,vt.extendsType)&&(gr(Ze.checkType,vt.checkType,3)||gr(vt.checkType,Ze.checkType,3))&&((bn=gr(io(i0(Ze),ps),i0(vt),3,$t))&&(bn&=gr(o0(Ze),o0(vt),3,$t)),bn))return bn}let Ei=tge(Ze);if(Ei&&(bn=gr(Ei,vt,1,$t)))return bn;let Lo=!(wo&16777216)&&e5(Ze)?Awe(Ze):void 0;if(Lo&&($n(Ir),bn=gr(Lo,vt,1,$t)))return bn}else{if(c!==xh&&c!==Mf&&lat(vt)&&py(Ze))return-1;if(Uu(vt))return Uu(Ze)&&(bn=it(Ze,vt,$t))?bn:0;let Ei=!!(zi&402784252);if(c!==np)Ze=Pu(Ze),zi=Ze.flags;else if(Uu(Ze))return 0;if(kr(Ze)&4&&kr(vt)&4&&Ze.target===vt.target&&!Oa(Ze)&&!(BZ(Ze)||BZ(vt))){if(HZ(Ze))return-1;let Lo=oye(Ze.target);if(Lo===Xe)return 1;let Ia=pa(Us(Ze),Us(vt),Lo,Hn);if(Ia!==void 0)return Ia}else{if(GM(vt)?ap(Ze,s0):Gf(vt)&&ap(Ze,Lo=>Oa(Lo)&&!Lo.target.readonly))return c!==np?gr(n0(Ze,It)||G,n0(vt,It)||G,3,$t):0;if(zb(Ze)&&Oa(vt)&&!zb(vt)){let Lo=ly(Ze);if(Lo!==Ze)return gr(Lo,vt,1,$t)}else if((c===xh||c===Mf)&&py(vt)&&kr(vt)&8192&&!py(Ze))return 0}if(zi&2621440&&wo&524288){let Lo=$t&&W===Ir.errorInfo&&!Ei;if(bn=bi(Ze,vt,Lo,void 0,!1,Hn),bn&&(bn&=lo(Ze,vt,0,Lo,Hn),bn&&(bn&=lo(Ze,vt,1,Lo,Hn),bn&&(bn&=as(Ze,vt,Ei,Lo,Hn)))),Gr&&bn)W=_r||W||Ir.errorInfo;else if(bn)return bn}if(zi&2621440&&wo&1048576){let Lo=JM(vt,36175872);if(Lo.flags&1048576){let Ia=kt(Ze,Lo);if(Ia)return Ia}}}return 0;function ua(Ei){return Ei?nu(Ei,(Lo,Ia)=>Lo+1+ua(Ia.next),0):0}function pa(Ei,Lo,Ia,xs){if(bn=ui(Ei,Lo,Ia,$t,xs))return bn;if(gt(Ia,Cc=>!!(Cc&24))){_r=void 0,$n(Ir);return}let ps=Lo&&zlt(Lo,Ia);if(Gr=!ps,Ia!==Xe&&!ps){if(Gr&&!($t&>(Ia,Cc=>(Cc&7)===0)))return 0;_r=W,$n(Ir)}}}function it(Ze,vt,$t){if(c===Ap||(c===np?wh(Ze)===wh(vt):Zhe(Ze)<=Zhe(vt))){let Ir,bn=gf(vt),_r=io(gf(Ze),Zhe(Ze)<0?Es:ld);if(Ir=gr(bn,_r,3,$t)){let Gr=Np([l_(Ze)],[l_(vt)]);if(io(sv(Ze),Gr)===io(sv(vt),Gr))return Ir&gr(io(sy(Ze),Gr),sy(vt),3,$t)}}return 0}function kt(Ze,vt){var $t;let Hn=_s(Ze),Ir=P8e(Hn,vt);if(!Ir)return 0;let bn=1;for(let pa of Ir)if(bn*=Qct(Db(pa)),bn>25)return($t=rr)==null||$t.instant(rr.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:Ze.id,targetId:vt.id,numCombinations:bn}),0;let _r=new Array(Ir.length),Gr=new Set;for(let pa=0;papa[Ia],!1,0,J||c===Ap))continue e}yf(wo,Lo,Ay),Ei=!0}if(!Ei)return 0}let ua=-1;for(let pa of wo)if(ua&=bi(Ze,pa,!1,Gr,!1,0),ua&&(ua&=lo(Ze,pa,0,!1,0),ua&&(ua&=lo(Ze,pa,1,!1,0),ua&&!(Oa(Ze)&&Oa(pa))&&(ua&=as(Ze,pa,!1,!1,0)))),!ua)return ua;return ua}function Qt(Ze,vt){if(!vt||Ze.length===0)return Ze;let $t;for(let Hn=0;Hn5?fo(f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Vn(Ze),Vn(vt),mn(bn.slice(0,4),_r=>Si(_r)).join(", "),bn.length-4):fo(f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Vn(Ze),Vn(vt),mn(bn,_r=>Si(_r)).join(", ")),Ir&&W&&Mn++)}function bi(Ze,vt,$t,Hn,Ir,bn){if(c===np)return pi(Ze,vt,Hn);let _r=-1;if(Oa(vt)){if(s0(Ze)){if(!vt.target.readonly&&(GM(Ze)||Oa(Ze)&&Ze.target.readonly))return 0;let pa=cv(Ze),Ei=cv(vt),Lo=Oa(Ze)?Ze.target.combinedFlags&4:4,Ia=vt.target.combinedFlags&4,xs=Oa(Ze)?Ze.target.minLength:0,ps=vt.target.minLength;if(!Lo&&pa=gy?Ei-1-Math.min(Bm,tI):h_,xr=vt.target.elementFlags[Nt];if(xr&8&&!(_x&8))return $t&&fo(f.Source_provides_no_match_for_variadic_element_at_position_0_in_target,Nt),0;if(_x&8&&!(xr&12))return $t&&fo(f.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,h_,Nt),0;if(xr&1&&!(_x&1))return $t&&fo(f.Source_provides_no_match_for_required_element_at_position_0_in_target,Nt),0;if(sL&&((_x&12||xr&12)&&(sL=!1),sL&&Hn?.has(""+h_)))continue;let fi=Gb(Cc[h_],!!(_x&xr&2)),qr=Gh[Nt],li=_x&8&&xr&4?zd(qr):Gb(qr,!!(xr&2)),Za=gr(fi,li,3,$t,void 0,bn);if(!Za)return $t&&(Ei>1||pa>1)&&(nI&&h_>=gy&&Bm>=tI&&gy!==pa-tI-1?vo(f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,gy,pa-tI-1,Nt):vo(f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,h_,Nt)),0;_r&=Za}return _r}if(vt.target.combinedFlags&12)return 0}let Gr=(c===xh||c===Mf)&&!d0(Ze)&&!HZ(Ze)&&!Oa(Ze),zi=Sye(Ze,vt,Gr,!1);if(zi)return $t&&An(Ze,vt)&&Wn(Ze,vt,zi,Gr),0;if(d0(vt)){for(let pa of Qt(_s(Ze),Hn))if(!t0(vt,pa.escapedName)&&!(sr(pa).flags&32768))return $t&&fo(f.Property_0_does_not_exist_on_type_1,Si(pa),Vn(vt)),0}let wo=_s(vt),ua=Oa(Ze)&&Oa(vt);for(let pa of Qt(wo,Hn)){let Ei=pa.escapedName;if(!(pa.flags&4194304)&&(!ua||rg(Ei)||Ei==="length")&&(!Ir||pa.flags&16777216)){let Lo=_a(Ze,Ei);if(Lo&&Lo!==pa){let Ia=ln(Ze,vt,Lo,pa,Db,$t,bn,c===Ap);if(!Ia)return 0;_r&=Ia}}}return _r}function pi(Ze,vt,$t){if(!(Ze.flags&524288&&vt.flags&524288))return 0;let Hn=Qt(Pb(Ze),$t),Ir=Qt(Pb(vt),$t);if(Hn.length!==Ir.length)return 0;let bn=-1;for(let _r of Hn){let Gr=t0(vt,_r.escapedName);if(!Gr)return 0;let zi=sye(_r,Gr,gr);if(!zi)return 0;bn&=zi}return bn}function lo(Ze,vt,$t,Hn,Ir){var bn,_r;if(c===np)return la(Ze,vt,$t);if(vt===tn||Ze===tn)return-1;let Gr=Ze.symbol&&$_(Ze.symbol.valueDeclaration),zi=vt.symbol&&$_(vt.symbol.valueDeclaration),wo=Ko(Ze,Gr&&$t===1?0:$t),ua=Ko(vt,zi&&$t===1?0:$t);if($t===1&&wo.length&&ua.length){let xs=!!(wo[0].flags&4),ps=!!(ua[0].flags&4);if(xs&&!ps)return Hn&&fo(f.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!__(wo[0],ua[0],Hn))return 0}let pa=-1,Ei=$t===1?Gi:ei,Lo=kr(Ze),Ia=kr(vt);if(Lo&64&&Ia&64&&Ze.symbol===vt.symbol||Lo&4&&Ia&4&&Ze.target===vt.target){R.assertEqual(wo.length,ua.length);for(let xs=0;xsPh(gy,void 0,262144,$t);return fo(f.Type_0_is_not_assignable_to_type_1,Gh(ps),Gh(Cc)),fo(f.Types_of_construct_signatures_are_incompatible),pa}}else e:for(let xs of ua){let ps=xo(),Cc=Hn;for(let Gh of wo){let gy=co(Gh,xs,!0,Cc,Ir,Ei(Gh,xs));if(gy){pa&=gy,$n(ps);continue e}Cc=!1}return Cc&&fo(f.Type_0_provides_no_match_for_the_signature_1,Vn(Ze),Ph(xs,void 0,void 0,$t)),0}return pa}function An(Ze,vt){let $t=n5(Ze,0),Hn=n5(Ze,1),Ir=Pb(Ze);return($t.length||Hn.length)&&!Ir.length?!!(Ko(vt,0).length&&$t.length||Ko(vt,1).length&&Hn.length):!0}function ei(Ze,vt){return Ze.parameters.length===0&&vt.parameters.length===0?($t,Hn)=>vo(f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Vn($t),Vn(Hn)):($t,Hn)=>vo(f.Call_signature_return_types_0_and_1_are_incompatible,Vn($t),Vn(Hn))}function Gi(Ze,vt){return Ze.parameters.length===0&&vt.parameters.length===0?($t,Hn)=>vo(f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Vn($t),Vn(Hn)):($t,Hn)=>vo(f.Construct_signature_return_types_0_and_1_are_incompatible,Vn($t),Vn(Hn))}function co(Ze,vt,$t,Hn,Ir,bn){let _r=c===xh?16:c===Mf?24:0;return eye($t?y8(Ze):Ze,$t?y8(vt):vt,_r,Hn,fo,bn,Gr,ld);function Gr(zi,wo,ua){return gr(zi,wo,3,ua,void 0,Ir)}}function la(Ze,vt,$t){let Hn=Ko(Ze,$t),Ir=Ko(vt,$t);if(Hn.length!==Ir.length)return 0;let bn=-1;for(let _r=0;_rzi.keyType===Ne),Gr=-1;for(let zi of bn){let wo=c!==Mf&&!$t&&_r&&zi.type.flags&1?-1:Uu(Ze)&&_r?gr(sy(Ze),zi.type,3,Hn):Dc(Ze,zi,Hn,Ir);if(!wo)return 0;Gr&=wo}return Gr}function Dc(Ze,vt,$t,Hn){let Ir=_8(Ze,vt.keyType);return Ir?Dl(Ir,vt,$t,Hn):!(Hn&1)&&(c!==Mf||kr(Ze)&8192)&&$Z(Ze)?vc(Ze,vt,$t,Hn):($t&&fo(f.Index_signature_for_type_0_is_missing_in_type_1,Vn(vt.keyType),Vn(Ze)),0)}function Hs(Ze,vt){let $t=hu(Ze),Hn=hu(vt);if($t.length!==Hn.length)return 0;for(let Ir of Hn){let bn=bg(Ze,Ir.keyType);if(!(bn&&gr(bn.type,Ir.type,3)&&bn.isReadonly===Ir.isReadonly))return 0}return-1}function __(Ze,vt,$t){if(!Ze.declaration||!vt.declaration)return!0;let Hn=PI(Ze.declaration,6),Ir=PI(vt.declaration,6);return Ir===2||Ir===4&&Hn!==2||Ir!==4&&!Hn?!0:($t&&fo(f.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,NA(Hn),NA(Ir)),!1)}}function rye(n){if(n.flags&16)return!1;if(n.flags&3145728)return!!gn(n.types,rye);if(n.flags&465829888){let a=kA(n);if(a&&a!==n)return rye(a)}return p_(n)||!!(n.flags&134217728)||!!(n.flags&268435456)}function t8e(n,a){return Oa(n)&&Oa(a)?Xe:_s(a).filter(c=>zZ(Ue(n,c.escapedName),sr(c)))}function zZ(n,a){return!!n&&!!a&&Rl(n,32768)&&!!P8(a)}function Wlt(n){return _s(n).filter(a=>P8(sr(a)))}function n8e(n,a,c=Qge){return b4e(n,a,c)||Ugt(n,a)||Hgt(n,a)||Kgt(n,a)||Jgt(n,a)}function iye(n,a,c){let u=n.types,_=u.map(T=>T.flags&402784252?0:-1);for(let[T,M]of a){let W=!1;for(let V=0;V_[M]),0):n;return g.flags&131072?n:g}function r8e(n){if(n.flags&524288){let a=c_(n);return a.callSignatures.length===0&&a.constructSignatures.length===0&&a.indexInfos.length===0&&a.properties.length>0&&oo(a.properties,c=>!!(c.flags&16777216))}return n.flags&2097152?oo(n.types,r8e):!1}function Flt(n,a,c){for(let u of _s(n))if(tve(a,u.escapedName,c))return!0;return!1}function oye(n){return n===qo||n===Qo||n.objectFlags&8?Y:o8e(n.symbol,n.typeParameters)}function i8e(n){return o8e(n,qi(n).typeParameters)}function o8e(n,a=Xe){var c,u;let _=qi(n);if(!_.variances){(c=rr)==null||c.push(rr.Phase.CheckTypes,"getVariancesWorker",{arity:a.length,id:gu(Ys(n))});let g=wE;wE||(wE=!0,w1=ud.length),_.variances=Xe;let T=[];for(let M of a){let W=aye(M),V=W&16384?W&8192?0:1:W&8192?2:void 0;if(V===void 0){let te=!1,ye=!1,_e=sa;sa=At=>At?ye=!0:te=!0;let je=g5(n,M,Ep),mt=g5(n,M,Ds);V=(ga(mt,je)?1:0)|(ga(je,mt)?2:0),V===3&&ga(g5(n,M,Ac),je)&&(V=4),sa=_e,(te||ye)&&(te&&(V|=8),ye&&(V|=16))}T.push(V)}g||(wE=!1,w1=0),_.variances=T,(u=rr)==null||u.pop({variances:T.map(R.formatVariance)})}return _.variances}function g5(n,a,c){let u=WS(a,c),_=Ys(n);if(Ut(_))return _;let g=n.flags&524288?lC(n,uv(qi(n).typeParameters,u)):lv(_,uv(_.typeParameters,u));return ct.add(gu(g)),g}function BZ(n){return ct.has(gu(n))}function aye(n){var a;return nu((a=n.symbol)==null?void 0:a.declarations,(c,u)=>c|cu(u),0)&28672}function zlt(n,a){for(let c=0;c!!(a.flags&262144)||GZ(a))}function Vlt(n,a,c,u){let _=[],g="",T=W(n,0),M=W(a,0);return`${g}${T},${M}${c}`;function W(V,te=0){let ye=""+V.target.id;for(let _e of Us(V)){if(_e.flags&262144){if(u||Blt(_e)){let je=_.indexOf(_e);je<0&&(je=_.length,_.push(_e)),ye+="="+je;continue}g="*"}else if(te<4&&GZ(_e)){ye+="<"+W(_e,te+1)+">";continue}ye+="-"+_e.id}return ye}}function VZ(n,a,c,u,_){if(u===np&&n.id>a.id){let T=n;n=a,a=T}let g=c?":"+c:"";return GZ(n)&&GZ(a)?Vlt(n,a,g,_):`${n.id},${a.id}${g}`}function y5(n,a){if(Tl(n)&6){for(let c of n.links.containingType.types){let u=_a(c,n.escapedName),_=u&&y5(u,a);if(_)return _}return}return a(n)}function dx(n){return n.parent&&n.parent.flags&32?Ys(Du(n)):void 0}function jZ(n){let a=dx(n),c=a&&Dp(a)[0];return c&&Ue(c,n.escapedName)}function jlt(n,a){return y5(n,c=>{let u=dx(c);return u?nC(u,a):!1})}function Ult(n,a){return!y5(a,c=>Tf(c)&4?!jlt(n,dx(c)):!1)}function a8e(n,a,c){return y5(a,u=>Tf(u,c)&4?!nC(n,dx(u)):!1)?void 0:n}function BM(n,a,c,u=3){if(c>=u){if((kr(n)&96)===96&&(n=s8e(n)),n.flags&2097152)return gt(n.types,M=>BM(M,a,c,u));let _=UZ(n),g=0,T=0;for(let M=0;M=T&&(g++,g>=u))return!0;T=W.id}}}return!1}function s8e(n){let a;for(;(kr(n)&96)===96&&(a=LA(n))&&(a.symbol||a.flags&2097152&>(a.types,c=>!!c.symbol));)n=a;return n}function l8e(n,a){return(kr(n)&96)===96&&(n=s8e(n)),n.flags&2097152?gt(n.types,c=>l8e(c,a)):UZ(n)===a}function UZ(n){if(n.flags&524288&&!Aye(n)){if(kr(n)&4&&n.node)return n.node;if(n.symbol&&!(kr(n)&16&&n.symbol.flags&32))return n.symbol;if(Oa(n))return n.target}if(n.flags&262144)return n.symbol;if(n.flags&8388608){do n=n.objectType;while(n.flags&8388608);return n}return n.flags&16777216?n.root:n}function Hlt(n,a){return sye(n,a,x8)!==0}function sye(n,a,c){if(n===a)return-1;let u=Tf(n)&6,_=Tf(a)&6;if(u!==_)return 0;if(u){if(SC(n)!==SC(a))return 0}else if((n.flags&16777216)!==(a.flags&16777216))return 0;return m_(n)!==m_(a)?0:c(sr(n),sr(a))}function Klt(n,a,c){let u=Kp(n),_=Kp(a),g=Q_(n),T=Q_(a),M=Bh(n),W=Bh(a);return!!(u===_&&g===T&&M===W||c&&g<=T)}function v5(n,a,c,u,_,g){if(n===a)return-1;if(!Klt(n,a,c)||Nn(n.typeParameters)!==Nn(a.typeParameters))return 0;if(a.typeParameters){let W=Np(n.typeParameters,a.typeParameters);for(let V=0;Va|(c.flags&1048576?c8e(c.types):c.flags),0)}function Xlt(n){if(n.length===1)return n[0];let a=J?Nc(n,u=>cc(u,_=>!(_.flags&98304))):n,c=qlt(a)?ti(a):nu(a,(u,_)=>Wb(u,_)?_:u);return a===n?c:S5(c,c8e(n)&98304)}function Ylt(n){return nu(n,(a,c)=>Wb(c,a)?c:a)}function Gf(n){return!!(kr(n)&4)&&(n.target===qo||n.target===Qo)}function GM(n){return!!(kr(n)&4)&&n.target===Qo}function s0(n){return Gf(n)||Oa(n)}function b5(n){return Gf(n)&&!GM(n)||Oa(n)&&!n.target.readonly}function E5(n){return Gf(n)?Us(n)[0]:void 0}function pv(n){return Gf(n)||!(n.flags&98304)&&ga(n,cf)}function lye(n){return b5(n)||!(n.flags&98305)&&ga(n,Zl)}function cye(n){if(!(kr(n)&4)||!(kr(n.target)&3))return;if(kr(n)&33554432)return kr(n)&67108864?n.cachedEquivalentBaseType:void 0;n.objectFlags|=33554432;let a=n.target;if(kr(a)&1){let _=Ss(a);if(_&&_.expression.kind!==80&&_.expression.kind!==211)return}let c=Dp(a);if(c.length!==1||Nb(n.symbol).size)return;let u=Nn(a.typeParameters)?io(c[0],Np(a.typeParameters,Us(n).slice(0,a.typeParameters.length))):c[0];return Nn(Us(n))>Nn(a.typeParameters)&&(u=Up(u,Ja(Us(n)))),n.objectFlags|=67108864,n.cachedEquivalentBaseType=u}function d8e(n){return J?n===Pi:n===Pt}function HZ(n){let a=E5(n);return!!a&&d8e(a)}function VM(n){let a;return Oa(n)||!!_a(n,"0")||pv(n)&&!!(a=Ue(n,"length"))&&ap(a,c=>!!(c.flags&256))}function KZ(n){return pv(n)||VM(n)}function $lt(n,a){let c=Ue(n,""+a);if(c)return c;if(ap(n,Oa))return m8e(n,a,B.noUncheckedIndexedAccess?Me:void 0)}function Qlt(n){return!(n.flags&240544)}function p_(n){return!!(n.flags&109472)}function u8e(n){let a=ly(n);return a.flags&2097152?gt(a.types,p_):p_(a)}function Zlt(n){return n.flags&2097152&&Vr(n.types,p_)||n}function C8(n){return n.flags&16?!0:n.flags&1048576?n.flags&1024?!0:oo(n.types,p_):p_(n)}function fy(n){return n.flags&1056?pZ(n):n.flags&402653312?Ne:n.flags&256?It:n.flags&2048?Ct:n.flags&512?gi:n.flags&1048576?ect(n):n}function ect(n){let a=`B${gu(n)}`;return V1(a)??cb(a,ll(n,fy))}function dye(n){return n.flags&402653312?Ne:n.flags&288?It:n.flags&2048?Ct:n.flags&512?gi:n.flags&1048576?ll(n,dye):n}function zS(n){return n.flags&1056&&OS(n)?pZ(n):n.flags&128&&OS(n)?Ne:n.flags&256&&OS(n)?It:n.flags&2048&&OS(n)?Ct:n.flags&512&&OS(n)?gi:n.flags&1048576?ll(n,zS):n}function p8e(n){return n.flags&8192?xi:n.flags&1048576?ll(n,p8e):n}function uye(n,a){return Oee(n,a)||(n=p8e(zS(n))),yu(n)}function tct(n,a,c){if(n&&p_(n)){let u=a?c?H8(a):a:void 0;n=uye(n,u)}return n}function pye(n,a,c,u){if(n&&p_(n)){let _=a?US(c,a,u):void 0;n=uye(n,_)}return n}function Oa(n){return!!(kr(n)&4&&n.target.objectFlags&8)}function zb(n){return Oa(n)&&!!(n.target.combinedFlags&8)}function f8e(n){return zb(n)&&n.target.elementFlags.length===1}function JZ(n){return jM(n,n.target.fixedLength)}function m8e(n,a,c){return ll(n,u=>{let _=u,g=JZ(_);return g?c&&a>=Lge(_.target)?ti([g,c]):g:Me})}function nct(n){let a=JZ(n);return a&&zd(a)}function jM(n,a,c=0,u=!1,_=!1){let g=cv(n)-c;if(a(c&12)===(a.target.elementFlags[u]&12))}function _8e({value:n}){return n.base10Value==="0"}function h8e(n){return cc(n,a=>dm(a,4194304))}function ict(n){return ll(n,oct)}function oct(n){return n.flags&4?Xo:n.flags&8?Ha:n.flags&64?Yd:n===En||n===Kt||n.flags&114691||n.flags&128&&n.value===""||n.flags&256&&n.value===0||n.flags&2048&&_8e(n)?n:Fr}function S5(n,a){let c=a&~n.flags&98304;return c===0?n:ti(c===32768?[n,Me]:c===65536?[n,ue]:[n,Me,ue])}function Bb(n,a=!1){R.assert(J);let c=a?ie:Me;return n===c||n.flags&1048576&&n.types[0]===c?n:ti([n,c])}function act(n){return zu||(zu=WM("NonNullable",524288,void 0)||lt),zu!==lt?lC(zu,[n]):ha([n,Na])}function my(n){return J?JA(n,2097152):n}function g8e(n){return J?ti([n,H]):n}function qZ(n){return J?aee(n,H):n}function XZ(n,a,c){return c?nN(a)?Bb(n):g8e(n):n}function N8(n,a){return aF(a)?my(n):jd(a)?qZ(n):n}function Gb(n,a){return Ie&&a?aee(n,k):n}function P8(n){return n===k||!!(n.flags&1048576)&&n.types[0]===k}function YZ(n){return Ie?aee(n,k):um(n,524288)}function sct(n,a){return(n.flags&524)!==0&&(a.flags&28)!==0}function $Z(n){let a=kr(n);return n.flags&2097152?oo(n.types,$Z):!!(n.symbol&&n.symbol.flags&7040&&!(n.symbol.flags&32)&&!Qee(n))||!!(a&4194304)||!!(a&1024&&$Z(n.source))}function UA(n,a){let c=Ka(n.flags,n.escapedName,Tl(n)&8);c.declarations=n.declarations,c.parent=n.parent,c.links.type=a,c.links.target=n,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration);let u=qi(n).nameType;return u&&(c.links.nameType=u),c}function lct(n,a){let c=oa();for(let u of Pb(n)){let _=sr(u),g=a(_);c.set(u.escapedName,g===_?u:UA(u,g))}return c}function M8(n){if(!(d0(n)&&kr(n)&8192))return n;let a=n.regularType;if(a)return a;let c=n,u=lct(n,M8),_=Cs(c.symbol,u,c.callSignatures,c.constructSignatures,c.indexInfos);return _.flags=c.flags,_.objectFlags|=c.objectFlags&-8193,n.regularType=_,_}function y8e(n,a,c){return{parent:n,propertyName:a,siblings:c,resolvedProperties:void 0}}function v8e(n){if(!n.siblings){let a=[];for(let c of v8e(n.parent))if(d0(c)){let u=t0(c,n.propertyName);u&&qA(sr(u),_=>{a.push(_)})}n.siblings=a}return n.siblings}function cct(n){if(!n.resolvedProperties){let a=new Map;for(let c of v8e(n))if(d0(c)&&!(kr(c)&2097152))for(let u of _s(c))a.set(u.escapedName,u);n.resolvedProperties=Oo(a.values())}return n.resolvedProperties}function dct(n,a){if(!(n.flags&4))return n;let c=sr(n),u=a&&y8e(a,n.escapedName,void 0),_=fye(c,u);return _===c?n:UA(n,_)}function uct(n){let a=Be.get(n.escapedName);if(a)return a;let c=UA(n,ie);return c.flags|=16777216,Be.set(n.escapedName,c),c}function pct(n,a){let c=oa();for(let _ of Pb(n))c.set(_.escapedName,dct(_,a));if(a)for(let _ of cct(a))c.has(_.escapedName)||c.set(_.escapedName,uct(_));let u=Cs(n.symbol,c,Xe,Xe,Nc(hu(n),_=>Wh(_.keyType,Hp(_.type),_.isReadonly)));return u.objectFlags|=kr(n)&266240,u}function Hp(n){return fye(n,void 0)}function fye(n,a){if(kr(n)&196608){if(a===void 0&&n.widened)return n.widened;let c;if(n.flags&98305)c=G;else if(d0(n))c=pct(n,a);else if(n.flags&1048576){let u=a||y8e(void 0,void 0,n.types),_=Nc(n.types,g=>g.flags&98304?g:fye(g,u));c=ti(_,gt(_,py)?2:1)}else n.flags&2097152?c=ha(Nc(n.types,Hp)):s0(n)&&(c=lv(n.target,Nc(Us(n),Hp)));return c&&a===void 0&&(n.widened=c),c||n}return n}function QZ(n){let a=!1;if(kr(n)&65536){if(n.flags&1048576)if(gt(n.types,py))a=!0;else for(let c of n.types)QZ(c)&&(a=!0);if(s0(n))for(let c of Us(n))QZ(c)&&(a=!0);if(d0(n))for(let c of Pb(n)){let u=sr(c);kr(u)&65536&&(QZ(u)||Ve(c.valueDeclaration,f.Object_literal_s_property_0_implicitly_has_an_1_type,Si(c),Vn(Hp(u))),a=!0)}}return a}function l0(n,a,c){let u=Vn(Hp(a));if(ir(n)&&!dk(Gn(n),B))return;let _;switch(n.kind){case 226:case 172:case 171:_=fe?f.Member_0_implicitly_has_an_1_type:f.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:let g=n;if(Fe(g.name)){let T=tE(g.name);if((XI(g.parent)||hh(g.parent)||gh(g.parent))&&g.parent.parameters.includes(g)&&(hl(g,g.name.escapedText,788968,void 0,g.name.escapedText,!0)||T&&eU(T))){let M="arg"+g.parent.parameters.indexOf(g),W=As(g.name)+(g.dotDotDotToken?"[]":"");pd(fe,n,f.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,M,W);return}}_=n.dotDotDotToken?fe?f.Rest_parameter_0_implicitly_has_an_any_type:f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:fe?f.Parameter_0_implicitly_has_an_1_type:f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(_=f.Binding_element_0_implicitly_has_an_1_type,!fe)return;break;case 324:Ve(n,f.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,u);return;case 330:fe&&kR(n.parent)&&Ve(n.parent.tagName,f.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,u);return;case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(fe&&!n.name){c===3?Ve(n,f.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,u):Ve(n,f.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,u);return}_=fe?c===3?f._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:f._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:fe&&Ve(n,f.Mapped_object_type_implicitly_has_an_any_template_type);return;default:_=fe?f.Variable_0_implicitly_has_an_1_type:f.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}pd(fe,n,_,As(No(n)),u)}function ZZ(n,a,c){r(()=>{fe&&kr(a)&65536&&(!c||!Xye(n))&&(QZ(a)||l0(n,a,c))})}function mye(n,a,c){let u=Kp(n),_=Kp(a),g=B8(n),T=B8(a),M=T?_-1:_,W=g?M:Math.min(u,M),V=r0(n);if(V){let te=r0(a);te&&c(V,te)}for(let te=0;tea.typeParameter),mn(n.inferences,(a,c)=>()=>(a.isFixed||(hct(n),eee(n.inferences),a.isFixed=!0),Iye(n,c))))}function _ct(n){return Jge(mn(n.inferences,a=>a.typeParameter),mn(n.inferences,(a,c)=>()=>Iye(n,c)))}function eee(n){for(let a of n)a.isFixed||(a.inferredType=void 0)}function gye(n,a,c){(n.intraExpressionInferenceSites??(n.intraExpressionInferenceSites=[])).push({node:a,type:c})}function hct(n){if(n.intraExpressionInferenceSites){for(let{node:a,type:c}of n.intraExpressionInferenceSites){let u=a.kind===174?mWe(a,2):Ku(a,2);u&&_y(n.inferences,c,u)}n.intraExpressionInferenceSites=void 0}}function yye(n){return{typeParameter:n,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function b8e(n){return{typeParameter:n.typeParameter,candidates:n.candidates&&n.candidates.slice(),contraCandidates:n.contraCandidates&&n.contraCandidates.slice(),inferredType:n.inferredType,priority:n.priority,topLevel:n.topLevel,isFixed:n.isFixed,impliedArity:n.impliedArity}}function gct(n){let a=jr(n.inferences,bC);return a.length?hye(mn(a,b8e),n.signature,n.flags,n.compareTypes):void 0}function vye(n){return n&&n.mapper}function c0(n){let a=kr(n);if(a&524288)return!!(a&1048576);let c=!!(n.flags&465829888||n.flags&524288&&!E8e(n)&&(a&4&&(n.node||gt(Us(n),c0))||a&16&&n.symbol&&n.symbol.flags&14384&&n.symbol.declarations||a&12583968)||n.flags&3145728&&!(n.flags&1024)&&!E8e(n)&>(n.types,c0));return n.flags&3899393&&(n.objectFlags|=524288|(c?1048576:0)),c}function E8e(n){if(n.aliasSymbol&&!n.aliasTypeArguments){let a=cl(n.aliasSymbol,265);return!!(a&&Fn(a.parent,c=>c.kind===312?!0:c.kind===267?!1:"quit"))}return!1}function k8(n,a,c=0){return!!(n===a||n.flags&3145728&>(n.types,u=>k8(u,a,c))||c<3&&n.flags&16777216&&(k8(i0(n),a,c+1)||k8(o0(n),a,c+1)))}function yct(n,a){let c=Ff(n);return c?!!c.type&&k8(c.type,a):k8(us(n),a)}function vct(n){let a=oa();qA(n,u=>{if(!(u.flags&128))return;let _=pl(u.value),g=Ka(4,_);g.links.type=G,u.symbol&&(g.declarations=u.symbol.declarations,g.valueDeclaration=u.symbol.valueDeclaration),a.set(_,g)});let c=n.flags&4?[Wh(Ne,Na,!1)]:Xe;return Cs(void 0,a,Xe,Xe,c)}function S8e(n,a,c){let u=n.id+","+a.id+","+c.id;if(Uc.has(u))return Uc.get(u);let _=n.id+","+(a.target||a).id;if(zo(tp,_))return;tp.push(_);let g=bct(n,a,c);return tp.pop(),Uc.set(u,g),g}function bye(n){return!(kr(n)&262144)||d0(n)&>(_s(n),a=>bye(sr(a)))||Oa(n)&>(kS(n),bye)}function bct(n,a,c){if(!(bg(n,Ne)||_s(n).length!==0&&bye(n)))return;if(Gf(n))return zd(tee(Us(n)[0],a,c),GM(n));if(Oa(n)){let _=mn(kS(n),T=>tee(T,a,c)),g=wh(a)&4?Nc(n.target.elementFlags,T=>T&2?1:T):n.target.elementFlags;return Fh(_,g,n.target.readonly,n.target.labeledElementDeclarations)}let u=kf(1040,void 0);return u.source=n,u.mappedType=a,u.constraintType=c,u}function Ect(n){let a=qi(n);return a.type||(a.type=tee(n.links.propertyType,n.links.mappedType,n.links.constraintType)),a.type}function tee(n,a,c){let u=Cp(c.type,l_(a)),_=sy(a),g=yye(u);return _y([g],n,_),T8e(g)||un}function*Eye(n,a,c,u){let _=_s(a);for(let g of _)if(!pwe(g)&&(c||!(g.flags&16777216||Tl(g)&48))){let T=_a(n,g.escapedName);if(!T)yield g;else if(u){let M=sr(g);if(M.flags&109472){let W=sr(T);W.flags&1||yu(W)===yu(M)||(yield g)}}}}function Sye(n,a,c,u){return mW(Eye(n,a,c,u))}function Sct(n,a){return!(a.target.combinedFlags&8)&&a.target.minLength>n.target.minLength||!a.target.hasRestElement&&(n.target.hasRestElement||a.target.fixedLengthsx(g,_),n)===n&&nee(n,a)}return!1}function x8e(n,a){if(a.flags&2097152)return oo(a.types,c=>c===ac||x8e(n,c));if(a.flags&4||ga(n,a))return!0;if(n.flags&128){let c=n.value;return!!(a.flags&8&&I8e(c,!1)||a.flags&64&&F6(c,!1)||a.flags&98816&&c===a.intrinsicName||a.flags&268435456&&nee(Hu(c),a)||a.flags&134217728&&ree(n,a))}if(n.flags&134217728){let c=n.texts;return c.length===2&&c[0]===""&&c[1]===""&&ga(n.types[0],a)}return!1}function R8e(n,a){return n.flags&128?D8e([n.value],Xe,a):n.flags&134217728?EL(n.texts,a.texts)?mn(n.types,xct):D8e(n.texts,n.types,a):void 0}function ree(n,a){let c=R8e(n,a);return!!c&&oo(c,(u,_)=>x8e(u,a.types[_]))}function xct(n){return n.flags&402653317?n:FA(["",""],[n])}function D8e(n,a,c){let u=n.length-1,_=n[0],g=n[u],T=c.texts,M=T.length-1,W=T[0],V=T[M];if(u===0&&_.length0){let nr=_e,Mn=je;for(;Mn=mt(nr).indexOf(sn,Mn),!(Mn>=0);){if(nr++,nr===n.length)return;Mn=0}At(nr,Mn),je+=sn.length}else if(je!zo(gr,os)):Pn,Do?jr(Xn,os=>!zo(Do,os)):Xn]}function nr(Pn,Xn,ro){let gr=Pn.length!!On(Do));if(!gr||Xn&&gr!==Xn)return;Xn=gr}return Xn}function Yn(Pn,Xn,ro){let gr=0;if(ro&1048576){let Do,os=Pn.flags&1048576?Pn.types:[Pn],bs=new Array(os.length),Bd=!1;for(let Wa of Xn)if(On(Wa))Do=Wa,gr++;else for(let Mu=0;Mubs[Ol]?void 0:Mu);if(Wa.length){_e(ti(Wa),Do);return}}}else for(let Do of Xn)On(Do)?gr++:_e(Pn,Do);if(ro&2097152?gr===1:gr>0)for(let Do of Xn)On(Do)&&je(Pn,Do,1)}function jn(Pn,Xn,ro){if(ro.flags&1048576||ro.flags&2097152){let gr=!1;for(let Do of ro.types)gr=jn(Pn,Xn,Do)||gr;return gr}if(ro.flags&4194304){let gr=On(ro.type);if(gr&&!gr.isFixed&&!A8e(Pn)){let Do=S8e(Pn,Xn,ro);Do&&je(Do,gr.typeParameter,kr(Pn)&262144?16:8)}return!0}if(ro.flags&262144){je(J_(Pn,Pn.pattern?2:0),ro,32);let gr=kA(ro);if(gr&&jn(Pn,Xn,gr))return!0;let Do=mn(_s(Pn),sr),os=mn(hu(Pn),bs=>bs!==zr?bs.type:Fr);return _e(ti(bo(Do,os)),sy(Xn)),!0}return!1}function $n(Pn,Xn){if(Pn.flags&16777216)_e(Pn.checkType,Xn.checkType),_e(Pn.extendsType,Xn.extendsType),_e(i0(Pn),i0(Xn)),_e(o0(Pn),o0(Xn));else{let ro=[i0(Xn),o0(Xn)];At(Pn,ro,Xn.flags,_?64:0)}}function xo(Pn,Xn){let ro=R8e(Pn,Xn),gr=Xn.types;if(ro||oo(Xn.texts,Do=>Do.length===0))for(let Do=0;Dogl|ot.flags,0);if(!(Ol&4)){let gl=os.value;Ol&296&&!I8e(gl,!0)&&(Ol&=-297),Ol&2112&&!F6(gl,!0)&&(Ol&=-2113);let ot=nu(Mu,(Te,Cn)=>Cn.flags&Ol?Te.flags&4?Te:Cn.flags&4?os:Te.flags&134217728?Te:Cn.flags&134217728&&ree(os,Cn)?os:Te.flags&268435456?Te:Cn.flags&268435456&&gl===AOe(Cn.symbol,gl)?os:Te.flags&128?Te:Cn.flags&128&&Cn.value===gl?Cn:Te.flags&8?Te:Cn.flags&8?u_(+gl):Te.flags&32?Te:Cn.flags&32?u_(+gl):Te.flags&256?Te:Cn.flags&256&&Cn.value===+gl?Cn:Te.flags&64?Te:Cn.flags&64?Ict(gl):Te.flags&2048?Te:Cn.flags&2048&&F0(Cn.value)===gl?Cn:Te.flags&16?Te:Cn.flags&16?gl==="true"?wn:gl==="false"?Kt:gi:Te.flags&512?Te:Cn.flags&512&&Cn.intrinsicName===gl?Cn:Te.flags&32768?Te:Cn.flags&32768&&Cn.intrinsicName===gl?Cn:Te.flags&65536?Te:Cn.flags&65536&&Cn.intrinsicName===gl?Cn:Te:Te,Fr);if(!(ot.flags&131072)){_e(ot,bs);continue}}}}_e(os,bs)}}function vo(Pn,Xn){_e(gf(Pn),gf(Xn)),_e(sy(Pn),sy(Xn));let ro=sv(Pn),gr=sv(Xn);ro&&gr&&_e(ro,gr)}function Wo(Pn,Xn){var ro,gr;if(kr(Pn)&4&&kr(Xn)&4&&(Pn.target===Xn.target||Gf(Pn)&&Gf(Xn))){nr(Us(Pn),Us(Xn),oye(Pn.target));return}if(Uu(Pn)&&Uu(Xn)&&vo(Pn,Xn),kr(Xn)&32&&!Xn.declaration.nameType){let Do=gf(Xn);if(jn(Pn,Xn,Do))return}if(!Tct(Pn,Xn)){if(s0(Pn)){if(Oa(Xn)){let Do=cv(Pn),os=cv(Xn),bs=Us(Xn),Bd=Xn.target.elementFlags;if(Oa(Pn)&&rct(Pn,Xn)){for(let Ol=0;Ol0){let os=Ko(Xn,ro),bs=os.length;for(let Bd=0;Bd1){let a=jr(n,Aye);if(a.length){let c=ti(a,2);return bo(jr(n,u=>!Aye(u)),[c])}}return n}function Pct(n){return n.priority&416?ha(n.contraCandidates):Ylt(n.contraCandidates)}function Mct(n,a){let c=Nct(n.candidates),u=Cct(n.typeParameter)||wA(n.typeParameter),_=!u&&n.topLevel&&(n.isFixed||!yct(a,n.typeParameter)),g=u?Nc(c,yu):_?Nc(c,zS):c,T=n.priority&416?ti(g,2):Xlt(g);return Hp(T)}function Iye(n,a){let c=n.inferences[a];if(!c.inferredType){let u,_;if(n.signature){let T=c.candidates?Mct(c,n.signature):void 0,M=c.contraCandidates?Pct(c):void 0;if(T||M){let W=T&&(!M||!(T.flags&131072)&>(c.contraCandidates,V=>Wb(T,V))&&oo(n.inferences,V=>V!==c&&Nu(V.typeParameter)!==c.typeParameter||oo(V.candidates,te=>Wb(te,T))));u=W?T:M,_=W?M:T}else if(n.flags&1)u=ho;else{let W=OA(c.typeParameter);W&&(u=io(W,clt(llt(n,a),n.nonFixingMapper)))}}else u=T8e(c);c.inferredType=u||xye(!!(n.flags&2));let g=Nu(c.typeParameter);if(g){let T=io(g,n.nonFixingMapper);(!u||!n.compareTypes(u,Up(T,u)))&&(c.inferredType=_&&n.compareTypes(_,Up(T,_))?_:T)}}return c.inferredType}function xye(n){return n?G:un}function Rye(n){let a=[];for(let c=0;cfu(a)||Tm(a)||gp(a)))}function iee(n,a,c,u){switch(n.kind){case 80:if(!NI(n)){let T=Wm(n);return T!==lt?`${u?is(u):"-1"}|${gu(a)}|${gu(c)}|${ba(T)}`:void 0}case 110:return`0|${u?is(u):"-1"}|${gu(a)}|${gu(c)}`;case 235:case 217:return iee(n.expression,a,c,u);case 166:let _=iee(n.left,a,c,u);return _&&_+"."+n.right.escapedText;case 211:case 212:let g=HA(n);if(g!==void 0){let T=iee(n.expression,a,c,u);return T&&T+"."+g}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${is(n)}#${gu(a)}`}}function Sd(n,a){switch(a.kind){case 217:case 235:return Sd(n,a.expression);case 226:return Pc(a)&&Sd(n,a.left)||ur(a)&&a.operatorToken.kind===28&&Sd(n,a.right)}switch(n.kind){case 236:return a.kind===236&&n.keywordToken===a.keywordToken&&n.name.escapedText===a.name.escapedText;case 80:case 81:return NI(n)?a.kind===110:a.kind===80&&Wm(n)===Wm(a)||(Oi(a)||Xa(a))&&mf(Wm(n))===Sr(a);case 110:return a.kind===110;case 108:return a.kind===108;case 235:case 217:return Sd(n.expression,a);case 211:case 212:let c=HA(n),u=Ps(a)?HA(a):void 0;return c!==void 0&&u!==void 0&&u===c&&Sd(n.expression,a.expression);case 166:return Ps(a)&&n.right.escapedText===HA(a)&&Sd(n.left,a.expression);case 226:return ur(n)&&n.operatorToken.kind===28&&Sd(n.right,a)}return!1}function HA(n){if(wr(n))return n.name.escapedText;if(qs(n))return Lct(n);if(Xa(n)){let a=$a(n);return a?pl(a):void 0}if(To(n))return""+n.parent.parameters.indexOf(n)}function Cye(n){return n.flags&8192?n.escapedName:n.flags&384?pl(""+n.value):void 0}function Lct(n){return Qp(n.argumentExpression)?pl(n.argumentExpression.text):Bl(n.argumentExpression)?kct(n.argumentExpression):void 0}function kct(n){let a=Vs(n,111551,!0);if(!a||!(qM(a)||a.flags&8))return;let c=a.valueDeclaration;if(c===void 0)return;let u=eo(c);if(u){let _=Cye(u);if(_!==void 0)return _}if(dT(c)&&$g(c,n)){let _=C2(c);if(_){let g=$o(c.parent)?K_(c):Ad(_);return g&&Cye(g)}if($0(c))return jx(c.name)}}function N8e(n,a){for(;Ps(n);)if(n=n.expression,Sd(n,a))return!0;return!1}function KA(n,a){for(;jd(n);)if(n=n.expression,Sd(n,a))return!0;return!1}function UM(n,a){if(n&&n.flags&1048576){let c=Pwe(n,a);if(c&&Tl(c)&2)return c.links.isDiscriminantProperty===void 0&&(c.links.isDiscriminantProperty=(c.links.checkFlags&192)===192&&!uC(sr(c))),!!c.links.isDiscriminantProperty}return!1}function P8e(n,a){let c;for(let u of n)if(UM(a,u.escapedName)){if(c){c.push(u);continue}c=[u]}return c}function wct(n,a){let c=new Map,u=0;for(let _ of n)if(_.flags&61603840){let g=Ue(_,a);if(g){if(!C8(g))return;let T=!1;qA(g,M=>{let W=gu(yu(M)),V=c.get(W);V?V!==un&&(c.set(W,un),T=!0):c.set(W,_)}),T||u++}}return u>=10&&u*2>=n.length?c:void 0}function T5(n){let a=n.types;if(!(a.length<10||kr(n)&32768||vv(a,c=>!!(c.flags&59506688))<10)){if(n.keyPropertyName===void 0){let c=gn(a,_=>_.flags&59506688?gn(_s(_),g=>p_(sr(g))?g.escapedName:void 0):void 0),u=c&&wct(a,c);n.keyPropertyName=u?c:"",n.constituentMap=u}return n.keyPropertyName.length?n.keyPropertyName:void 0}}function A5(n,a){var c;let u=(c=n.constituentMap)==null?void 0:c.get(gu(yu(a)));return u!==un?u:void 0}function M8e(n,a){let c=T5(n),u=c&&Ue(a,c);return u&&A5(n,u)}function Oct(n,a){let c=T5(n),u=c&&Vr(a.properties,g=>g.symbol&&g.kind===303&&g.symbol.escapedName===c&&M5(g.initializer)),_=u&&eG(u.initializer);return _&&A5(n,_)}function L8e(n,a){return Sd(n,a)||N8e(n,a)}function k8e(n,a){if(n.arguments){for(let c of n.arguments)if(L8e(a,c)||KA(c,a))return!0}return!!(n.expression.kind===211&&L8e(a,n.expression.expression))}function Nye(n){return(!n.id||n.id<0)&&(n.id=Xse,Xse++),n.id}function Wct(n,a){if(!(n.flags&1048576))return ga(n,a);for(let c of n.types)if(ga(c,a))return!0;return!1}function Fct(n,a){if(n===a)return n;if(a.flags&131072)return a;let c=`A${gu(n)},${gu(a)}`;return V1(c)??cb(c,zct(n,a))}function zct(n,a){let c=cc(n,_=>Wct(a,_)),u=a.flags&512&&OS(a)?ll(c,cx):c;return ga(a,u)?u:n}function Pye(n){let a=c_(n);return!!(a.callSignatures.length||a.constructSignatures.length||a.members.get("bind")&&Wb(n,Lt))}function HM(n,a){return Mye(n,a)&a}function dm(n,a){return HM(n,a)!==0}function Mye(n,a){n.flags&467927040&&(n=Fd(n)||un);let c=n.flags;if(c&268435460)return J?16317953:16776705;if(c&134217856){let u=c&128&&n.value==="";return J?u?12123649:7929345:u?12582401:16776705}if(c&40)return J?16317698:16776450;if(c&256){let u=n.value===0;return J?u?12123394:7929090:u?12582146:16776450}if(c&64)return J?16317188:16775940;if(c&2048){let u=_8e(n);return J?u?12122884:7928580:u?12581636:16775940}return c&16?J?16316168:16774920:c&528?J?n===Kt||n===En?12121864:7927560:n===Kt||n===En?12580616:16774920:c&524288?a&(J?83427327:83886079)?kr(n)&16&&py(n)?J?83427327:83886079:Pye(n)?J?7880640:16728e3:J?7888800:16736160:0:c&16384?9830144:c&32768?26607360:c&65536?42917664:c&12288?J?7925520:16772880:c&67108864?J?7888800:16736160:c&131072?0:c&1048576?nu(n.types,(u,_)=>u|Mye(_,a),0):c&2097152?Bct(n,a):83886079}function Bct(n,a){let c=Rl(n,402784252),u=0,_=134217727;for(let g of n.types)if(!(c&&g.flags&524288)){let T=Mye(g,a);u|=T,_&=T}return u&8256|_&134209471}function um(n,a){return cc(n,c=>dm(c,a))}function JA(n,a){let c=w8e(um(J&&n.flags&2?al:n,a));if(J)switch(a){case 524288:return ll(c,u=>dm(u,65536)?ha([u,dm(u,131072)&&!Rl(c,65536)?ti([Na,ue]):Na]):u);case 1048576:return ll(c,u=>dm(u,131072)?ha([u,dm(u,65536)&&!Rl(c,32768)?ti([Na,Me]):Na]):u);case 2097152:case 4194304:return ll(c,u=>dm(u,262144)?act(u):u)}return c}function w8e(n){return n===al?un:n}function Lye(n,a){return a?ti([_i(n),Ad(a)]):n}function O8e(n,a){var c;let u=dv(a);if(!Qf(u))return pt;let _=Zf(u);return Ue(n,_)||w8((c=ox(n,_))==null?void 0:c.type)||pt}function W8e(n,a){return ap(n,VM)&&$lt(n,a)||w8(mv(65,n,Me,void 0))||pt}function w8(n){return n&&(B.noUncheckedIndexedAccess?ti([n,k]):n)}function F8e(n){return zd(mv(65,n,Me,void 0)||pt)}function Gct(n){return n.parent.kind===209&&kye(n.parent)||n.parent.kind===303&&kye(n.parent.parent)?Lye(I5(n),n.right):Ad(n.right)}function kye(n){return n.parent.kind===226&&n.parent.left===n||n.parent.kind===250&&n.parent.initializer===n}function Vct(n,a){return W8e(I5(n),n.elements.indexOf(a))}function jct(n){return F8e(I5(n.parent))}function z8e(n){return O8e(I5(n.parent),n.name)}function Uct(n){return Lye(z8e(n),n.objectAssignmentInitializer)}function I5(n){let{parent:a}=n;switch(a.kind){case 249:return Ne;case 250:return aG(a)||pt;case 226:return Gct(a);case 220:return Me;case 209:return Vct(a,n);case 230:return jct(a);case 303:return z8e(a);case 304:return Uct(a)}return pt}function Hct(n){let a=n.parent,c=G8e(a.parent),u=a.kind===206?O8e(c,n.propertyName||n.name):n.dotDotDotToken?F8e(c):W8e(c,a.elements.indexOf(n));return Lye(u,n.initializer)}function B8e(n){return Zr(n).resolvedType||Ad(n)}function Kct(n){return n.initializer?B8e(n.initializer):n.parent.parent.kind===249?Ne:n.parent.parent.kind===250&&aG(n.parent.parent)||pt}function G8e(n){return n.kind===260?Kct(n):Hct(n)}function Jct(n){return n.kind===260&&n.initializer&&Ab(n.initializer)||n.kind!==208&&n.parent.kind===226&&Ab(n.parent.right)}function BS(n){switch(n.kind){case 217:return BS(n.expression);case 226:switch(n.operatorToken.kind){case 64:case 76:case 77:case 78:return BS(n.left);case 28:return BS(n.right)}}return n}function V8e(n){let{parent:a}=n;return a.kind===217||a.kind===226&&a.operatorToken.kind===64&&a.left===n||a.kind===226&&a.operatorToken.kind===28&&a.right===n?V8e(a):n}function qct(n){return n.kind===296?yu(Ad(n.expression)):Fr}function oee(n){let a=Zr(n);if(!a.switchTypes){a.switchTypes=[];for(let c of n.caseBlock.clauses)a.switchTypes.push(qct(c))}return a.switchTypes}function j8e(n){if(gt(n.caseBlock.clauses,c=>c.kind===296&&!ss(c.expression)))return;let a=[];for(let c of n.caseBlock.clauses){let u=c.kind===296?c.expression.text:void 0;a.push(u&&!zo(a,u)?u:void 0)}return a}function Xct(n,a){return n.flags&1048576?!gn(n.types,c=>!zo(a,c)):zo(a,n)}function KM(n,a){return!!(n===a||n.flags&131072||a.flags&1048576&&Yct(n,a))}function Yct(n,a){if(n.flags&1048576){for(let c of n.types)if(!cy(a.types,c))return!1;return!0}return n.flags&1056&&pZ(n)===a?!0:cy(a.types,n)}function qA(n,a){return n.flags&1048576?gn(n.types,a):a(n)}function Fm(n,a){return n.flags&1048576?gt(n.types,a):a(n)}function ap(n,a){return n.flags&1048576?oo(n.types,a):a(n)}function $ct(n,a){return n.flags&3145728?oo(n.types,a):a(n)}function cc(n,a){if(n.flags&1048576){let c=n.types,u=jr(c,a);if(u===c)return n;let _=n.origin,g;if(_&&_.flags&1048576){let T=_.types,M=jr(T,W=>!!(W.flags&1048576)||a(W));if(T.length-M.length===c.length-u.length){if(M.length===1)return M[0];g=kge(1048576,M)}}return Oge(u,n.objectFlags&16809984,void 0,void 0,g)}return n.flags&131072||a(n)?n:Fr}function aee(n,a){return cc(n,c=>c!==a)}function Qct(n){return n.flags&1048576?n.types.length:1}function ll(n,a,c){if(n.flags&131072)return n;if(!(n.flags&1048576))return a(n);let u=n.origin,_=u&&u.flags&1048576?u.types:n.types,g,T=!1;for(let M of _){let W=M.flags&1048576?ll(M,a,c):a(M);T||(T=M!==W),W&&(g?g.push(W):g=[W])}return T?g&&ti(g,c?0:1):n}function U8e(n,a,c,u){return n.flags&1048576&&c?ti(mn(n.types,a),1,c,u):ll(n,a)}function JM(n,a){return cc(n,c=>(c.flags&a)!==0)}function H8e(n,a){return Rl(n,134217804)&&Rl(a,402655616)?ll(n,c=>c.flags&4?JM(a,402653316):zA(c)&&!Rl(a,402653188)?JM(a,128):c.flags&8?JM(a,264):c.flags&64?JM(a,2112):c):n}function mC(n){return n.flags===0}function XA(n){return n.flags===0?n.type:n}function _C(n,a){return a?{flags:0,type:n.flags&131072?ho:n}:n}function Zct(n){let a=kf(256);return a.elementType=n,a}function wye(n){return kn[n.id]||(kn[n.id]=Zct(n))}function K8e(n,a){let c=M8(fy(eG(a)));return KM(c,n.elementType)?n:wye(ti([n.elementType,c]))}function edt(n){return n.flags&131072?Hc:zd(n.flags&1048576?ti(n.types,2):n)}function tdt(n){return n.finalArrayType||(n.finalArrayType=edt(n.elementType))}function x5(n){return kr(n)&256?tdt(n):n}function ndt(n){return kr(n)&256?n.elementType:Fr}function rdt(n){let a=!1;for(let c of n)if(!(c.flags&131072)){if(!(kr(c)&256))return!1;a=!0}return a}function J8e(n){let a=V8e(n),c=a.parent,u=wr(c)&&(c.name.escapedText==="length"||c.parent.kind===213&&Fe(c.name)&&Dj(c.name)),_=c.kind===212&&c.expression===a&&c.parent.kind===226&&c.parent.operatorToken.kind===64&&c.parent.left===c&&!Qh(c.parent)&&Td(Ad(c.argumentExpression),296);return u||_}function idt(n){return(Oi(n)||Vo(n)||_p(n)||To(n))&&!!(hd(n)||ir(n)&&Lv(n)&&n.initializer&&z0(n.initializer)&&$f(n.initializer))}function see(n,a){if(n=Vl(n),n.flags&8752)return sr(n);if(n.flags&7){if(Tl(n)&262144){let u=n.links.syntheticOrigin;if(u&&see(u))return sr(n)}let c=n.valueDeclaration;if(c){if(idt(c))return sr(n);if(Oi(c)&&c.parent.parent.kind===250){let u=c.parent.parent,_=R5(u.expression,void 0);if(_){let g=u.awaitModifier?15:13;return mv(g,_,Me,void 0)}}a&&Ma(a,Pr(c,f._0_needs_an_explicit_type_annotation,Si(n)))}}}function R5(n,a){if(!(n.flags&67108864))switch(n.kind){case 80:let c=mf(Wm(n));return see(c,a);case 110:return Idt(n);case 108:return Vye(n);case 211:{let u=R5(n.expression,a);if(u){let _=n.name,g;if(Ki(_)){if(!u.symbol)return;g=_a(u,J2(u.symbol,_.escapedText))}else g=_a(u,_.escapedText);return g&&see(g,a)}return}case 217:return R5(n.expression,a)}}function D5(n){let a=Zr(n),c=a.effectsSignature;if(c===void 0){let u;if(ur(n)){let T=hC(n.right);u=Lve(T)}else n.parent.kind===244?u=R5(n.expression,void 0):n.expression.kind!==108&&(jd(n)?u=X_(N8(po(n.expression),n.expression),n.expression):u=hC(n.expression));let _=Ko(u&&Pu(u)||un,0),g=_.length===1&&!_[0].typeParameters?_[0]:gt(_,q8e)?yC(n):void 0;c=a.effectsSignature=g&&q8e(g)?g:cn}return c===cn?void 0:c}function q8e(n){return!!(Ff(n)||n.declaration&&(aC(n.declaration)||un).flags&131072)}function odt(n,a){if(n.kind===1||n.kind===3)return a.arguments[n.parameterIndex];let c=ms(a.expression);return Ps(c)?ms(c.expression):void 0}function adt(n){let a=Fn(n,NV),c=Gn(n),u=fh(c,a.statements.pos);Qa.add(Yc(c,u.start,u.length,f.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function C5(n){let a=lee(n,!1);return Mt=n,Bt=a,a}function N5(n){let a=ms(n,!0);return a.kind===97||a.kind===226&&(a.operatorToken.kind===56&&(N5(a.left)||N5(a.right))||a.operatorToken.kind===57&&N5(a.left)&&N5(a.right))}function lee(n,a){for(;;){if(n===Mt)return Bt;let c=n.flags;if(c&4096){if(!a){let u=Nye(n),_=aA[u];return _!==void 0?_:aA[u]=lee(n,!0)}a=!1}if(c&368)n=n.antecedent;else if(c&512){let u=D5(n.node);if(u){let _=Ff(u);if(_&&_.kind===3&&!_.type){let g=n.node.arguments[_.parameterIndex];if(g&&N5(g))return!1}if(us(u).flags&131072)return!1}n=n.antecedent}else{if(c&4)return gt(n.antecedents,u=>lee(u,!1));if(c&8){let u=n.antecedents;if(u===void 0||u.length===0)return!1;n=u[0]}else if(c&128){if(n.clauseStart===n.clauseEnd&&CFe(n.switchStatement))return!1;n=n.antecedent}else if(c&1024){Mt=void 0;let u=n.target,_=u.antecedents;u.antecedents=n.antecedents;let g=lee(n.antecedent,!1);return u.antecedents=_,g}else return!(c&1)}}}function cee(n,a){for(;;){let c=n.flags;if(c&4096){if(!a){let u=Nye(n),_=G1[u];return _!==void 0?_:G1[u]=cee(n,!0)}a=!1}if(c&496)n=n.antecedent;else if(c&512){if(n.node.expression.kind===108)return!0;n=n.antecedent}else{if(c&4)return oo(n.antecedents,u=>cee(u,!1));if(c&8)n=n.antecedents[0];else if(c&1024){let u=n.target,_=u.antecedents;u.antecedents=n.antecedents;let g=cee(n.antecedent,!1);return u.antecedents=_,g}else return!!(c&1)}}}function X8e(n){switch(n.kind){case 110:return!0;case 80:if(!NI(n)){let c=Wm(n);return qM(c)||uee(c)&&!Y8e(c)}break;case 211:case 212:return X8e(n.expression)&&m_(Zr(n).resolvedSymbol||lt);case 206:case 207:let a=A_(n.parent);return To(a)||Loe(a)?!Oye(a):Oi(a)&&pG(a)}return!1}function Vb(n,a,c=a,u,_=(g=>(g=ri(n,z2))==null?void 0:g.flowNode)()){let g,T=!1,M=0;if(we)return pt;if(!_)return a;qe++;let W=Jg,V=XA(_e(_));Jg=W;let te=kr(V)&256&&J8e(n)?Hc:x5(V);if(te===Ri||n.parent&&n.parent.kind===235&&!(te.flags&131072)&&um(te,2097152).flags&131072)return a;return te===U?un:te;function ye(){return T?g:(T=!0,g=iee(n,a,c,u))}function _e(it){var kt;if(M===2e3)return(kt=rr)==null||kt.instant(rr.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:it.id}),we=!0,adt(n),pt;M++;let Qt;for(;;){let Xt=it.flags;if(Xt&4096){for(let Wn=W;Wn=0&&Qt.parameterIndex!(Wn.flags&163840)):kt.kind===221&&KA(kt.expression,n)&&(Xt=os(Xt,it.switchStatement,it.clauseStart,it.clauseEnd,Wn=>!(Wn.flags&131072||Wn.flags&128&&Wn.value==="undefined"))));let ln=jn(kt,Xt);ln&&(Xt=vo(Xt,ln,it.switchStatement,it.clauseStart,it.clauseEnd))}return _C(Xt,mC(Qt))}function an(it){let kt=[],Qt=!1,Xt=!1,ln;for(let Wn of it.antecedents){if(!ln&&Wn.flags&128&&Wn.clauseStart===Wn.clauseEnd){ln=Wn;continue}let bi=_e(Wn),pi=XA(bi);if(pi===a&&a===c)return pi;yf(kt,pi),KM(pi,c)||(Qt=!0),mC(bi)&&(Xt=!0)}if(ln){let Wn=_e(ln),bi=XA(Wn);if(!(bi.flags&131072)&&!zo(kt,bi)&&!CFe(ln.switchStatement)){if(bi===a&&a===c)return bi;kt.push(bi),KM(bi,c)||(Qt=!0),mC(Wn)&&(Xt=!0)}}return _C(Ln(kt,Qt?2:1),Xt)}function On(it){let kt=Nye(it),Qt=O1[kt]||(O1[kt]=new Map),Xt=ye();if(!Xt)return a;let ln=Qt.get(Xt);if(ln)return ln;for(let An=B_;An{let An=St(lo,Xt)||un;return!(An.flags&131072)&&!(pi.flags&131072)&&m5(pi,An)})}function xo(it,kt,Qt,Xt,ln){if((Qt===37||Qt===38)&&it.flags&1048576){let Wn=T5(it);if(Wn&&Wn===HA(kt)){let bi=A5(it,Ad(Xt));if(bi)return Qt===(ln?37:38)?bi:p_(Ue(bi,Wn)||un)?aee(it,bi):it}}return $n(it,kt,Wn=>ro(Wn,Qt,Xt,ln))}function vo(it,kt,Qt,Xt,ln){if(XtA5(it,pi)||un));if(bi!==un)return bi}return $n(it,kt,Wn=>bs(Wn,Qt,Xt,ln))}function Wo(it,kt,Qt){if(Sd(n,kt))return JA(it,Qt?4194304:8388608);J&&Qt&&KA(kt,n)&&(it=JA(it,2097152));let Xt=jn(kt,it);return Xt?$n(it,Xt,ln=>um(ln,Qt?4194304:8388608)):it}function fo(it,kt,Qt){let Xt=_a(it,kt);return Xt?!!(Xt.flags&16777216||Tl(Xt)&48)||Qt:!!ox(it,kt)||!Qt}function Rc(it,kt,Qt){let Xt=Zf(kt);if(Fm(it,Wn=>fo(Wn,Xt,!0)))return cc(it,Wn=>fo(Wn,Xt,Qt));if(Qt){let Wn=ust();if(Wn)return ha([it,lC(Wn,[kt,un])])}return it}function Vf(it,kt,Qt,Xt,ln){return ln=ln!==(Qt.kind===112)!=(Xt!==38&&Xt!==36),Br(it,kt,ln)}function sp(it,kt,Qt){switch(kt.operatorToken.kind){case 64:case 76:case 77:case 78:return Wo(Br(it,kt.right,Qt),kt.left,Qt);case 35:case 36:case 37:case 38:let Xt=kt.operatorToken.kind,ln=BS(kt.left),Wn=BS(kt.right);if(ln.kind===221&&ss(Wn))return gr(it,ln,Xt,Wn,Qt);if(Wn.kind===221&&ss(ln))return gr(it,Wn,Xt,ln,Qt);if(Sd(n,ln))return ro(it,Xt,Wn,Qt);if(Sd(n,Wn))return ro(it,Xt,ln,Qt);J&&(KA(ln,n)?it=Xn(it,Xt,Wn,Qt):KA(Wn,n)&&(it=Xn(it,Xt,ln,Qt)));let bi=jn(ln,it);if(bi)return xo(it,bi,Xt,Wn,Qt);let pi=jn(Wn,it);if(pi)return xo(it,pi,Xt,ln,Qt);if(gl(ln))return ot(it,Xt,Wn,Qt);if(gl(Wn))return ot(it,Xt,ln,Qt);if(sN(Wn)&&!Ps(ln))return Vf(it,ln,Wn,Xt,Qt);if(sN(ln)&&!Ps(Wn))return Vf(it,Wn,ln,Xt,Qt);break;case 104:return Te(it,kt,Qt);case 103:if(Ki(kt.left))return Pn(it,kt,Qt);let lo=BS(kt.right);if(P8(it)&&Ps(n)&&Sd(n.expression,lo)){let An=Ad(kt.left);if(Qf(An)&&HA(n)===Zf(An))return um(it,Qt?524288:65536)}if(Sd(n,lo)){let An=Ad(kt.left);if(Qf(An))return Rc(it,An,Qt)}break;case 28:return Br(it,kt.right,Qt);case 56:return Qt?Br(Br(it,kt.left,!0),kt.right,!0):ti([Br(it,kt.left,!1),Br(it,kt.right,!1)]);case 57:return Qt?ti([Br(it,kt.left,!0),Br(it,kt.right,!0)]):Br(Br(it,kt.left,!1),kt.right,!1)}return it}function Pn(it,kt,Qt){let Xt=BS(kt.right);if(!Sd(n,Xt))return it;R.assertNode(kt.left,Ki);let ln=See(kt.left);if(ln===void 0)return it;let Wn=ln.parent,bi=pc(R.checkDefined(ln.valueDeclaration,"should always have a declaration"))?sr(Wn):Ys(Wn);return Dr(it,bi,Qt,!0)}function Xn(it,kt,Qt,Xt){let ln=kt===35||kt===37,Wn=kt===35||kt===36?98304:32768,bi=Ad(Qt);return ln!==Xt&&ap(bi,lo=>!!(lo.flags&Wn))||ln===Xt&&ap(bi,lo=>!(lo.flags&(3|Wn)))?JA(it,2097152):it}function ro(it,kt,Qt,Xt){if(it.flags&1)return it;(kt===36||kt===38)&&(Xt=!Xt);let ln=Ad(Qt),Wn=kt===35||kt===36;if(ln.flags&98304){if(!J)return it;let bi=Wn?Xt?262144:2097152:ln.flags&65536?Xt?131072:1048576:Xt?65536:524288;return JA(it,bi)}if(Xt){if(!Wn&&(it.flags&2||Fm(it,zh))){if(ln.flags&469893116||zh(ln))return ln;if(ln.flags&524288)return Kr}let bi=cc(it,pi=>m5(pi,ln)||Wn&&sct(pi,ln));return H8e(bi,ln)}return p_(ln)?cc(it,bi=>!(u8e(bi)&&m5(bi,ln))):it}function gr(it,kt,Qt,Xt,ln){(Qt===36||Qt===38)&&(ln=!ln);let Wn=BS(kt.expression);if(!Sd(n,Wn)){J&&KA(Wn,n)&&ln===(Xt.text!=="undefined")&&(it=JA(it,2097152));let bi=jn(Wn,it);return bi?$n(it,bi,pi=>Do(pi,Xt,ln)):it}return Do(it,Xt,ln)}function Do(it,kt,Qt){return Qt?Bd(it,kt.text):JA(it,EK.get(kt.text)||32768)}function os(it,kt,Qt,Xt,ln){return Qt!==Xt&&oo(oee(kt).slice(Qt,Xt),ln)?um(it,2097152):it}function bs(it,kt,Qt,Xt){let ln=oee(kt);if(!ln.length)return it;let Wn=ln.slice(Qt,Xt),bi=Qt===Xt||zo(Wn,Fr);if(it.flags&2&&!bi){let ei;for(let Gi=0;Gim5(pi,ei)),pi);if(!bi)return lo;let An=cc(it,ei=>!(u8e(ei)&&zo(ln,yu(Zlt(ei)))));return lo.flags&131072?An:ti([lo,An])}function Bd(it,kt){switch(kt){case"string":return Wa(it,Ne,1);case"number":return Wa(it,It,2);case"bigint":return Wa(it,Ct,4);case"boolean":return Wa(it,gi,8);case"symbol":return Wa(it,xi,16);case"object":return it.flags&1?it:ti([Wa(it,Kr,32),Wa(it,ue,131072)]);case"function":return it.flags&1?it:Wa(it,Lt,64);case"undefined":return Wa(it,Me,65536)}return Wa(it,Kr,128)}function Wa(it,kt,Qt){return ll(it,Xt=>q_(Xt,kt,Mf)?dm(Xt,Qt)?Xt:Fr:Wb(kt,Xt)?kt:dm(Xt,Qt)?ha([Xt,kt]):Fr)}function Mu(it,kt,Qt,Xt){let ln=j8e(kt);if(!ln)return it;let Wn=Kl(kt.caseBlock.clauses,lo=>lo.kind===297);if(Qt===Xt||Wn>=Qt&&WnHM(An,lo)===lo)}let pi=ln.slice(Qt,Xt);return ti(mn(pi,lo=>lo?Bd(it,lo):Fr))}function Ol(it,kt,Qt,Xt){let ln=Kl(kt.caseBlock.clauses,pi=>pi.kind===297),Wn=Qt===Xt||ln>=Qt&&lnpi.kind===296?Br(it,pi.expression,!0):Fr))}function gl(it){return(wr(it)&&yr(it.name)==="constructor"||qs(it)&&ss(it.argumentExpression)&&it.argumentExpression.text==="constructor")&&Sd(n,it.expression)}function ot(it,kt,Qt,Xt){if(Xt?kt!==35&&kt!==37:kt!==36&&kt!==38)return it;let ln=Ad(Qt);if(!cbe(ln)&&!ns(ln))return it;let Wn=_a(ln,"prototype");if(!Wn)return it;let bi=sr(Wn),pi=xt(bi)?void 0:bi;if(!pi||pi===Re||pi===Lt)return it;if(xt(it))return pi;return cc(it,An=>lo(An,pi));function lo(An,ei){return An.flags&524288&&kr(An)&1||ei.flags&524288&&kr(ei)&1?An.symbol===ei.symbol:Wb(An,ei)}}function Te(it,kt,Qt){let Xt=BS(kt.left);if(!Sd(n,Xt))return Qt&&J&&KA(Xt,n)?JA(it,2097152):it;let ln=kt.right,Wn=Ad(ln);if(!a0(Wn,Re))return it;let bi=D5(kt),pi=bi&&Ff(bi);if(pi&&pi.kind===1&&pi.parameterIndex===0)return Dr(it,pi.type,Qt,!0);if(!a0(Wn,Lt))return it;let lo=ll(Wn,Cn);return xt(it)&&(lo===Re||lo===Lt)||!Qt&&!(lo.flags&524288&&!zh(lo))?it:Dr(it,lo,Qt,!0)}function Cn(it){let kt=Ue(it,"prototype");if(kt&&!xt(kt))return kt;let Qt=Ko(it,1);return Qt.length?ti(mn(Qt,Xt=>us(y8(Xt)))):Na}function Dr(it,kt,Qt,Xt){let ln=it.flags&1048576?`N${gu(it)},${gu(kt)},${(Qt?1:0)|(Xt?2:0)}`:void 0;return V1(ln)??cb(ln,ui(it,kt,Qt,Xt))}function ui(it,kt,Qt,Xt){if(!Qt){if(it===kt)return Fr;if(Xt)return cc(it,lo=>!a0(lo,kt));let pi=Dr(it,kt,!0,!1);return cc(it,lo=>!KM(lo,pi))}if(it.flags&3||it===kt)return kt;let ln=Xt?a0:Wb,Wn=it.flags&1048576?T5(it):void 0,bi=ll(kt,pi=>{let lo=Wn&&Ue(pi,Wn),An=lo&&A5(it,lo),ei=ll(An||it,Xt?Gi=>a0(Gi,pi)?Gi:a0(pi,Gi)?pi:Fr:Gi=>f5(Gi,pi)?Gi:f5(pi,Gi)?pi:Wb(Gi,pi)?Gi:Wb(pi,Gi)?pi:Fr);return ei.flags&131072?ll(it,Gi=>Rl(Gi,465829888)&&ln(pi,Fd(Gi)||un)?ha([Gi,pi]):Fr):ei});return bi.flags&131072?Wb(kt,it)?kt:ga(it,kt)?it:ga(kt,it)?kt:ha([it,kt]):bi}function Ai(it,kt,Qt){if(k8e(kt,n)){let Xt=Qt||!oT(kt)?D5(kt):void 0,ln=Xt&&Ff(Xt);if(ln&&(ln.kind===0||ln.kind===1))return Ii(it,ln,kt,Qt)}if(P8(it)&&Ps(n)&&wr(kt.expression)){let Xt=kt.expression;if(Sd(n.expression,BS(Xt.expression))&&Fe(Xt.name)&&Xt.name.escapedText==="hasOwnProperty"&&kt.arguments.length===1){let ln=kt.arguments[0];if(ss(ln)&&HA(n)===pl(ln.text))return um(it,Qt?524288:65536)}}return it}function Ii(it,kt,Qt,Xt){if(kt.type&&!(xt(it)&&(kt.type===Re||kt.type===Lt))){let ln=odt(kt,Qt);if(ln){if(Sd(n,ln))return Dr(it,kt.type,Xt,!1);J&&KA(ln,n)&&(Xt&&!dm(kt.type,65536)||!Xt&&ap(kt.type,F5))&&(it=JA(it,2097152));let Wn=jn(ln,it);if(Wn)return $n(it,Wn,bi=>Dr(bi,kt.type,Xt,!1))}}return it}function Br(it,kt,Qt){if(aF(kt)||ur(kt.parent)&&(kt.parent.operatorToken.kind===61||kt.parent.operatorToken.kind===78)&&kt.parent.left===kt)return Tr(it,kt,Qt);switch(kt.kind){case 80:if(!Sd(n,kt)&&N<5){let Xt=Wm(kt);if(qM(Xt)){let ln=Xt.valueDeclaration;if(ln&&Oi(ln)&&!ln.type&&ln.initializer&&X8e(n)){N++;let Wn=Br(it,ln.initializer,Qt);return N--,Wn}}}case 110:case 108:case 211:case 212:return Wo(it,kt,Qt);case 213:return Ai(it,kt,Qt);case 217:case 235:return Br(it,kt.expression,Qt);case 226:return sp(it,kt,Qt);case 224:if(kt.operator===54)return Br(it,kt.operand,!Qt);break}return it}function Tr(it,kt,Qt){if(Sd(n,kt))return JA(it,Qt?2097152:262144);let Xt=jn(kt,it);return Xt?$n(it,Xt,ln=>um(ln,Qt?2097152:262144)):it}}function sdt(n,a){if(n=mf(n),(a.kind===80||a.kind===81)&&(LN(a)&&(a=a.parent),Yh(a)&&(!Qh(a)||LI(a)))){let c=qZ(LI(a)&&a.kind===211?bee(a,void 0,!0):Ad(a));if(mf(Zr(a).resolvedSymbol)===n)return c}return Lg(a)&&Ny(a.parent)&&Om(a.parent)?HB(a.parent.symbol):Kj(a)&&LI(a.parent)?PS(n):Db(n)}function O8(n){return Fn(n.parent,a=>Yo(a)&&!_T(a)||a.kind===268||a.kind===312||a.kind===172)}function Y8e(n){return!$8e(n,void 0)}function $8e(n,a){let c=Fn(n.valueDeclaration,dee);if(!c)return!1;let u=Zr(c);return u.flags&131072||(u.flags|=131072,ldt(c)||Z8e(c)),!n.lastAssignmentPos||a&&n.lastAssignmentPosa.kind!==232&&Q8e(a.name))}function ldt(n){return!!Fn(n.parent,a=>dee(a)&&!!(Zr(a).flags&131072))}function dee(n){return Ws(n)||Yi(n)}function Z8e(n){switch(n.kind){case 80:if(Qh(n)){let c=Wm(n);if(uee(c)&&c.lastAssignmentPos!==Number.MAX_VALUE){let u=Fn(n,dee),_=Fn(c.valueDeclaration,dee);c.lastAssignmentPos=u===_?cdt(n,c.valueDeclaration):Number.MAX_VALUE}}return;case 281:let a=n.parent.parent;if(!n.isTypeOnly&&!a.isTypeOnly&&!a.moduleSpecifier){let c=Vs(n.propertyName||n.name,111551,!0,!0);c&&uee(c)&&(c.lastAssignmentPos=Number.MAX_VALUE)}return;case 264:case 265:case 266:return}ji(n)||Bo(n,Z8e)}function cdt(n,a){let c=n.pos;for(;n&&n.pos>a.pos;){switch(n.kind){case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 258:case 263:c=n.end}n=n.parent}return c}function qM(n){return n.flags&3&&(nve(n)&6)!==0}function uee(n){let a=n.valueDeclaration&&A_(n.valueDeclaration);return!!a&&(To(a)||Oi(a)&&(Y0(a.parent)||ddt(a)))}function ddt(n){return!!(n.parent.flags&1)&&!(eE(n)&32||n.parent.parent.kind===243&&Rh(n.parent.parent.parent))}function udt(n){let a=Zr(n);if(a.parameterInitializerContainsUndefined===void 0){if(!Lh(n,9))return tC(n.symbol),!0;let c=!!dm($M(n,0),16777216);if(!H_())return tC(n.symbol),!0;a.parameterInitializerContainsUndefined=c}return a.parameterInitializerContainsUndefined}function pdt(n,a){return J&&a.kind===169&&a.initializer&&dm(n,16777216)&&!udt(a)?um(n,524288):n}function fdt(n,a){let c=a.parent;return c.kind===211||c.kind===166||c.kind===213&&c.expression===a||c.kind===212&&c.expression===a&&!(Fm(n,tWe)&&GA(Ad(c.argumentExpression)))}function eWe(n){return n.flags&2097152?gt(n.types,eWe):!!(n.flags&465829888&&ly(n).flags&1146880)}function tWe(n){return n.flags&2097152?gt(n.types,tWe):!!(n.flags&465829888&&!Rl(ly(n),98304))}function mdt(n,a){let c=(Fe(n)||wr(n)||qs(n))&&!((P_(n.parent)||OT(n.parent))&&n.parent.tagName===n)&&(a&&a&32?Ku(n,8):Ku(n,void 0));return c&&!uC(c)}function Wye(n,a,c){return!(c&&c&2)&&Fm(n,eWe)&&(fdt(n,a)||mdt(a,c))?ll(n,ly):n}function nWe(n){return!!Fn(n,a=>{let c=a.parent;return c===void 0?"quit":Ll(c)?c.expression===a&&Bl(a):Hd(c)?c.name===a||c.propertyName===a:!1})}function pee(n,a){if(ft&&bA(n,111551)&&!TT(a)){let c=Oc(n);Ed(n,!0)&1160127&&(em(B)||G0(B)&&nWe(a)||!$8(mf(c))?gb(n):nd(n))}}function _dt(n,a,c){var u;let _=sr(n,c),g=n.valueDeclaration;if(g){if(Xa(g)&&!g.initializer&&!g.dotDotDotToken&&g.parent.elements.length>=2){let T=g.parent.parent,M=A_(T);if(M.kind===260&&JS(M)&6||M.kind===169){let W=Zr(T);if(!(W.flags&4194304)){W.flags|=4194304;let V=Or(T,0),te=V&&ll(V,ly);if(W.flags&=-4194305,te&&te.flags&1048576&&!(M.kind===169&&Oye(M))){let ye=g.parent,_e=Vb(ye,te,te,void 0,a.flowNode);return _e.flags&131072?Fr:yg(g,_e,!0)}}}}if(To(g)&&!g.type&&!g.initializer&&!g.dotDotDotToken){let T=g.parent;if(T.parameters.length>=2&&OZ(T)){let M=F8(T);if(M&&M.parameters.length===1&&Jd(M)){let W=LM(io(sr(M.parameters[0]),(u=GS(T))==null?void 0:u.nonFixingMapper));if(W.flags&1048576&&ap(W,Oa)&&!gt(T.parameters,Oye)){let V=Vb(T,W,W,void 0,a.flowNode),te=T.parameters.indexOf(g)-(L0(T)?1:0);return Cp(V,u_(te))}}}}}return _}function hdt(n,a){if(NI(n))return P5(n);let c=Wm(n);if(c===lt)return pt;if(c===Wt){if(zWe(n))return Ve(n,f.arguments_cannot_be_referenced_in_property_initializers),pt;let an=Wp(n);if(an)for(ce<2&&(an.kind===219?Ve(n,f.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):Qr(an,1024)&&Ve(n,f.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),Zr(an).flags|=512;an&&Fs(an);)an=Wp(an),an&&(Zr(an).flags|=512);return sr(c)}ydt(n)&&pee(c,n);let u=mf(c),_=rbe(u,n);db(_)&&zge(n,_)&&_.declarations&&nv(n,_.declarations,n.escapedText);let g=u.valueDeclaration;if(g&&u.flags&32&&di(g)&&g.name!==n){let an=ku(n,!1,!1);for(;an.kind!==312&&an.parent!==g;)an=ku(an,!1,!1);an.kind!==312&&(Zr(g).flags|=262144,Zr(an).flags|=262144,Zr(n).flags|=536870912)}Edt(n,c);let T=_dt(u,n,a),M=DI(n);if(M){if(!(u.flags&3)&&!(ir(n)&&u.flags&512)){let an=u.flags&384?f.Cannot_assign_to_0_because_it_is_an_enum:u.flags&32?f.Cannot_assign_to_0_because_it_is_a_class:u.flags&1536?f.Cannot_assign_to_0_because_it_is_a_namespace:u.flags&16?f.Cannot_assign_to_0_because_it_is_a_function:u.flags&2097152?f.Cannot_assign_to_0_because_it_is_an_import:f.Cannot_assign_to_0_because_it_is_not_a_variable;return Ve(n,an,Si(c)),pt}if(m_(u))return u.flags&3?Ve(n,f.Cannot_assign_to_0_because_it_is_a_constant,Si(c)):Ve(n,f.Cannot_assign_to_0_because_it_is_a_read_only_property,Si(c)),pt}let W=u.flags&2097152;if(u.flags&3){if(M===1)return bj(n)?fy(T):T}else if(W)g=Mm(c);else return T;if(!g)return T;T=Wye(T,n,a);let V=A_(g).kind===169,te=O8(g),ye=O8(n),_e=ye!==te,je=n.parent&&n.parent.parent&&Gy(n.parent)&&kye(n.parent.parent),mt=c.flags&134217728,At=T===et||T===Hc,rn=At&&n.parent.kind===235;for(;ye!==te&&(ye.kind===218||ye.kind===219||kF(ye))&&(qM(u)&&T!==Hc||uee(u)&&$8e(u,n));)ye=O8(ye);let sn=V||W||_e||je||mt||gdt(n,g)||T!==et&&T!==Hc&&(!J||(T.flags&16387)!==0||TT(n)||Dye(n)||n.parent.kind===281)||n.parent.kind===235||g.kind===260&&g.exclamationToken||g.flags&33554432,nr=rn?Me:sn?V?pdt(T,g):T:At?Me:Bb(T),Mn=rn?my(Vb(n,T,nr,ye)):Vb(n,T,nr,ye);if(!J8e(n)&&(T===et||T===Hc)){if(Mn===et||Mn===Hc)return fe&&(Ve(No(g),f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Si(c),Vn(Mn)),Ve(n,f.Variable_0_implicitly_has_an_1_type,Si(c),Vn(Mn))),Y8(Mn)}else if(!sn&&!zM(T)&&zM(Mn))return Ve(n,f.Variable_0_is_used_before_being_assigned,Si(c)),T;return M?fy(Mn):Mn}function gdt(n,a){if(Xa(a)){let c=Fn(n,Xa);return c&&A_(c)===A_(a)}}function ydt(n){var a;let c=n.parent;if(c){if(wr(c)&&c.expression===n||Hd(c)&&c.isTypeOnly)return!1;let u=(a=c.parent)==null?void 0:a.parent;if(u&&Xl(u)&&u.isTypeOnly)return!1}return!0}function vdt(n,a){return!!Fn(n,c=>c===a?"quit":Yo(c)||c.parent&&Vo(c.parent)&&!pc(c.parent)&&c.parent.initializer===c)}function bdt(n,a){return Fn(n,c=>c===a?"quit":c===a.initializer||c===a.condition||c===a.incrementor||c===a.statement)}function Fye(n){return Fn(n,a=>!a||Cj(a)?"quit":Pv(a,!1))}function Edt(n,a){if(ce>=2||!(a.flags&34)||!a.valueDeclaration||Yi(a.valueDeclaration)||a.valueDeclaration.parent.kind===299)return;let c=ph(a.valueDeclaration),u=vdt(n,c),_=Fye(c);if(_){if(u){let g=!0;if(kT(c)){let T=uE(a.valueDeclaration,261);if(T&&T.parent===c){let M=bdt(n.parent,c);if(M){let W=Zr(M);W.flags|=8192;let V=W.capturedBlockScopeBindings||(W.capturedBlockScopeBindings=[]);yf(V,a),M===c.initializer&&(g=!1)}}}g&&(Zr(_).flags|=4096)}if(kT(c)){let g=uE(a.valueDeclaration,261);g&&g.parent===c&&Tdt(n,c)&&(Zr(a.valueDeclaration).flags|=65536)}Zr(a.valueDeclaration).flags|=32768}u&&(Zr(a.valueDeclaration).flags|=16384)}function Sdt(n,a){let c=Zr(n);return!!c&&zo(c.capturedBlockScopeBindings,Sr(a))}function Tdt(n,a){let c=n;for(;c.parent.kind===217;)c=c.parent;let u=!1;if(Qh(c))u=!0;else if(c.parent.kind===224||c.parent.kind===225){let _=c.parent;u=_.operator===46||_.operator===47}return u?!!Fn(c,_=>_===a?"quit":_===a.statement):!1}function zye(n,a){if(Zr(n).flags|=2,a.kind===172||a.kind===176){let c=a.parent;Zr(c).flags|=4}else Zr(a).flags|=4}function rWe(n){return mT(n)?n:Yo(n)?void 0:Bo(n,rWe)}function Bye(n){let a=Sr(n),c=Ys(a);return Rp(c)===We}function iWe(n,a,c){let u=a.parent;P0(u)&&!Bye(u)&&z2(n)&&n.flowNode&&!cee(n.flowNode,!1)&&Ve(n,c)}function Adt(n,a){Vo(a)&&pc(a)&&ee&&a.initializer&&JL(a.initializer,n.pos)&&bf(a.parent)&&Ve(n,f.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function P5(n){let a=TT(n),c=ku(n,!0,!0),u=!1,_=!1;for(c.kind===176&&iWe(n,c,f.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(c.kind===219&&(c=ku(c,!1,!_),u=!0),c.kind===167){c=ku(c,!u,!1),_=!0;continue}break}if(Adt(n,c),_)Ve(n,f.this_cannot_be_referenced_in_a_computed_property_name);else switch(c.kind){case 267:Ve(n,f.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:Ve(n,f.this_cannot_be_referenced_in_current_location);break;case 176:oWe(n,c)&&Ve(n,f.this_cannot_be_referenced_in_constructor_arguments);break}!a&&u&&ce<2&&zye(n,c);let g=Gye(n,!0,c);if(ne){let T=sr(tt);if(g===T&&u)Ve(n,f.The_containing_arrow_function_captures_the_global_value_of_this);else if(!g){let M=Ve(n,f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!Yi(c)){let W=Gye(c);W&&W!==T&&Ma(M,Pr(c,f.An_outer_value_of_this_is_shadowed_by_this_container))}}}return g||G}function Gye(n,a=!0,c=ku(n,!1,!1)){let u=ir(n);if(Yo(c)&&(!Uye(n)||L0(c))){let _=Uhe(c)||u&&Rdt(c);if(!_){let g=xdt(c);if(u&&g){let T=po(g).symbol;T&&T.members&&T.flags&16&&(_=Ys(T).thisType)}else $_(c)&&(_=Ys(ts(c.symbol)).thisType);_||(_=cWe(c))}if(_)return Vb(n,_)}if(di(c.parent)){let _=Sr(c.parent),g=na(c)?sr(_):Ys(_).thisType;return Vb(n,g)}if(Yi(c))if(c.commonJsModuleIndicator){let _=Sr(c);return _&&sr(_)}else{if(c.externalModuleIndicator)return Me;if(a)return sr(tt)}}function Idt(n){let a=ku(n,!1,!1);if(Yo(a)){let c=lm(a);if(c.thisParameter)return see(c.thisParameter)}if(di(a.parent)){let c=Sr(a.parent);return na(a)?sr(c):Ys(c).thisType}}function xdt(n){if(n.kind===218&&ur(n.parent)&&zl(n.parent)===3)return n.parent.left.expression.expression;if(n.kind===174&&n.parent.kind===210&&ur(n.parent.parent)&&zl(n.parent.parent)===6)return n.parent.parent.left.expression;if(n.kind===218&&n.parent.kind===303&&n.parent.parent.kind===210&&ur(n.parent.parent.parent)&&zl(n.parent.parent.parent)===6)return n.parent.parent.parent.left.expression;if(n.kind===218&&mc(n.parent)&&Fe(n.parent.name)&&(n.parent.name.escapedText==="value"||n.parent.name.escapedText==="get"||n.parent.name.escapedText==="set")&&La(n.parent.parent)&&ra(n.parent.parent.parent)&&n.parent.parent.parent.arguments[2]===n.parent.parent&&zl(n.parent.parent.parent)===9)return n.parent.parent.parent.arguments[0].expression;if(Ul(n)&&Fe(n.name)&&(n.name.escapedText==="value"||n.name.escapedText==="get"||n.name.escapedText==="set")&&La(n.parent)&&ra(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&zl(n.parent.parent)===9)return n.parent.parent.arguments[0].expression}function Rdt(n){let a=nF(n);if(a&&a.typeExpression)return Ti(a.typeExpression);let c=kM(n);if(c)return r0(c)}function oWe(n,a){return!!Fn(n,c=>Ws(c)?"quit":c.kind===169&&c.parent===a)}function Vye(n){let a=n.parent.kind===213&&n.parent.expression===n,c=T2(n,!0),u=c,_=!1,g=!1;if(!a){for(;u&&u.kind===219;)Qr(u,1024)&&(g=!0),u=T2(u,!0),_=ce<2;u&&Qr(u,1024)&&(g=!0)}let T=0;if(!u||!te(u)){let ye=Fn(n,_e=>_e===u?"quit":_e.kind===167);return ye&&ye.kind===167?Ve(n,f.super_cannot_be_referenced_in_a_computed_property_name):a?Ve(n,f.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!u||!u.parent||!(di(u.parent)||u.parent.kind===210)?Ve(n,f.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):Ve(n,f.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),pt}if(!a&&c.kind===176&&iWe(n,u,f.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),na(u)||a?(T=32,!a&&ce>=2&&ce<=8&&(Vo(u)||Al(u))&&Xre(n.parent,ye=>{(!Yi(ye)||wp(ye))&&(Zr(ye).flags|=2097152)})):T=16,Zr(n).flags|=T,u.kind===174&&g&&(wu(n.parent)&&Qh(n.parent)?Zr(u).flags|=256:Zr(u).flags|=128),_&&zye(n.parent,u),u.parent.kind===210)return ce<2?(Ve(n,f.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),pt):G;let M=u.parent;if(!P0(M))return Ve(n,f.super_can_only_be_referenced_in_a_derived_class),pt;if(Bye(M))return a?pt:We;let W=Ys(Sr(M)),V=W&&Dp(W)[0];if(!V)return pt;if(u.kind===176&&oWe(n,u))return Ve(n,f.super_cannot_be_referenced_in_constructor_arguments),pt;return T===32?Rp(W):Up(V,W.thisType);function te(ye){return a?ye.kind===176:di(ye.parent)||ye.parent.kind===210?na(ye)?ye.kind===174||ye.kind===173||ye.kind===177||ye.kind===178||ye.kind===172||ye.kind===175:ye.kind===174||ye.kind===173||ye.kind===177||ye.kind===178||ye.kind===172||ye.kind===171||ye.kind===176:!1}}function aWe(n){return(n.kind===174||n.kind===177||n.kind===178)&&n.parent.kind===210?n.parent:n.kind===218&&n.parent.kind===303?n.parent.parent:void 0}function sWe(n){return kr(n)&4&&n.target===Gl?Us(n)[0]:void 0}function Ddt(n){return ll(n,a=>a.flags&2097152?gn(a.types,sWe):sWe(a))}function lWe(n,a){let c=n,u=a;for(;u;){let _=Ddt(u);if(_)return _;if(c.parent.kind!==303)break;c=c.parent.parent,u=p0(c,void 0)}}function cWe(n){if(n.kind===219)return;if(OZ(n)){let c=F8(n);if(c){let u=c.thisParameter;if(u)return sr(u)}}let a=ir(n);if(ne||a){let c=aWe(n);if(c){let _=p0(c,void 0),g=lWe(c,_);return g?io(g,vye(GS(c))):Hp(_?my(_):tc(c))}let u=My(n.parent);if(Pc(u)){let _=u.left;if(Ps(_)){let{expression:g}=_;if(a&&Fe(g)){let T=Gn(u);if(T.commonJsModuleIndicator&&Wm(g)===T.symbol)return}return Hp(tc(g))}}}}function dWe(n){let a=n.parent;if(!OZ(a))return;let c=_T(a);if(c&&c.arguments){let _=Dee(c),g=a.parameters.indexOf(n);if(n.dotDotDotToken)return hve(_,g,_.length,G,void 0,0);let T=Zr(c),M=T.resolvedSignature;T.resolvedSignature=yt;let W=g<_.length?zS(po(_[g])):n.initializer?void 0:Pt;return T.resolvedSignature=M,W}let u=F8(a);if(u){let _=a.parameters.indexOf(n)-(L0(a)?1:0);return n.dotDotDotToken&&$s(a.parameters)===n?J5(u,_):jS(u,_)}}function jye(n,a){let c=hd(n)||(ir(n)?V6(n):void 0);if(c)return Ti(c);switch(n.kind){case 169:return dWe(n);case 208:return Cdt(n,a);case 172:if(na(n))return Ndt(n,a)}}function Cdt(n,a){let c=n.parent.parent,u=n.propertyName||n.name,_=jye(c,a)||c.kind!==208&&c.initializer&&$M(c,n.dotDotDotToken?32:0);if(!_||$o(u)||g2(u))return;if(c.name.kind===207){let T=Vx(n.parent.elements,n);return T<0?void 0:Jye(_,T)}let g=dv(u);if(Qf(g)){let T=Zf(g);return Ue(_,T)}}function Ndt(n,a){let c=ht(n.parent)&&Ku(n.parent,a);if(c)return u0(c,Sr(n).escapedName)}function Pdt(n,a){let c=n.parent;if(Lv(c)&&n===c.initializer){let u=jye(c,a);if(u)return u;if(!(a&8)&&$o(c.name)&&c.name.elements.length>0)return C(c.name,!0,!1)}}function Mdt(n,a){let c=Wp(n);if(c){let u=fee(c,a);if(u){let _=Bc(c);if(_&1){let g=(_&2)!==0;u.flags&1048576&&(u=cc(u,M=>!!US(1,M,g)));let T=US(1,u,(_&2)!==0);if(!T)return;u=T}if(_&2){let g=ll(u,fv);return g&&ti([g,IFe(g)])}return u}}}function Ldt(n,a){let c=Ku(n,a);if(c){let u=fv(c);return u&&ti([u,IFe(u)])}}function kdt(n,a){let c=Wp(n);if(c){let u=Bc(c),_=fee(c,a);if(_){let g=(u&2)!==0;return!n.asteriskToken&&_.flags&1048576&&(_=cc(_,T=>!!US(1,T,g))),n.asteriskToken?_:US(0,_,g)}}}function Uye(n){let a=!1;for(;n.parent&&!Yo(n.parent);){if(To(n.parent)&&(a||n.parent.initializer===n))return!0;Xa(n.parent)&&n.parent.initializer===n&&(a=!0),n=n.parent}return!1}function uWe(n,a){let c=!!(Bc(a)&2),u=fee(a,void 0);if(u)return US(n,u,c)||void 0}function fee(n,a){let c=aC(n);if(c)return c;let u=Xye(n);if(u&&!gZ(u)){let g=us(u),T=Bc(n);return T&1?cc(g,M=>!!(M.flags&58998787)||Wve(M,T,void 0)):T&2?cc(g,M=>!!(M.flags&58998787)||!!eL(M)):g}let _=_T(n);if(_)return Ku(_,a)}function pWe(n,a){let u=Dee(n).indexOf(a);return u===-1?void 0:Hye(n,u)}function Hye(n,a){if(Op(n))return a===0?Ne:a===1?eOe(!1):G;let c=Zr(n).resolvedSignature===vr?vr:yC(n);if(su(n)&&a===0)return gee(c,n);let u=c.parameters.length-1;return Jd(c)&&a>=u?Cp(sr(c.parameters[u]),u_(a-u),256):f_(c,a)}function wdt(n){let a=Cve(n);return a?WA(a):void 0}function Odt(n,a){if(n.parent.kind===215)return pWe(n.parent,a)}function Wdt(n,a){let c=n.parent,{left:u,operatorToken:_,right:g}=c;switch(_.kind){case 64:case 77:case 76:case 78:return n===g?zdt(c):void 0;case 57:case 61:let T=Ku(c,a);return n===g&&(T&&T.pattern||!T&&!hie(c))?Ad(u):T;case 56:case 28:return n===g?Ku(c,a):void 0;default:return}}function Fdt(n){if(b_(n)&&n.symbol)return n.symbol;if(Fe(n))return Wm(n);if(wr(n)){let c=Ad(n.expression);return Ki(n.name)?a(c,n.name):_a(c,n.name.escapedText)}if(qs(n)){let c=tc(n.argumentExpression);if(!Qf(c))return;let u=Ad(n.expression);return _a(u,Zf(c))}return;function a(c,u){let _=Eee(u.escapedText,u);return _&&ave(c,_)}}function zdt(n){var a,c;let u=zl(n);switch(u){case 0:case 4:let _=Fdt(n.left),g=_&&_.valueDeclaration;if(g&&(Vo(g)||_p(g))){let W=hd(g);return W&&io(Ti(W),qi(_).mapper)||(Vo(g)?g.initializer&&Ad(n.left):void 0)}return u===0?Ad(n.left):fWe(n);case 5:if(mee(n,u))return fWe(n);if(!b_(n.left)||!n.left.symbol)return Ad(n.left);{let W=n.left.symbol.valueDeclaration;if(!W)return;let V=ta(n.left,Ps),te=hd(W);if(te)return Ti(te);if(Fe(V.expression)){let ye=V.expression,_e=hl(ye,ye.escapedText,111551,void 0,ye.escapedText,!0);if(_e){let je=_e.valueDeclaration&&hd(_e.valueDeclaration);if(je){let mt=Mg(V);if(mt!==void 0)return u0(Ti(je),mt)}return}}return ir(W)||W===n.left?void 0:Ad(n.left)}case 1:case 6:case 3:case 2:let T;u!==2&&(T=b_(n.left)?(a=n.left.symbol)==null?void 0:a.valueDeclaration:void 0),T||(T=(c=n.symbol)==null?void 0:c.valueDeclaration);let M=T&&hd(T);return M?Ti(M):void 0;case 7:case 8:case 9:return R.fail("Does not apply");default:return R.assertNever(u)}}function mee(n,a=zl(n)){if(a===4)return!0;if(!ir(n)||a!==5||!Fe(n.left.expression))return!1;let c=n.left.expression.escapedText,u=hl(n.left,c,111551,void 0,void 0,!0,!0);return zF(u?.valueDeclaration)}function fWe(n){if(!n.symbol)return Ad(n.left);if(n.symbol.valueDeclaration){let _=hd(n.symbol.valueDeclaration);if(_){let g=Ti(_);if(g)return g}}let a=ta(n.left,Ps);if(!bm(ku(a.expression,!1,!1)))return;let c=P5(a.expression),u=Mg(a);return u!==void 0&&u0(c,u)||void 0}function Bdt(n){return!!(Tl(n)&262144&&!n.links.type&&nx(n,0)>=0)}function u0(n,a,c){return ll(n,u=>{var _;if(Uu(u)&&!u.declaration.nameType){let g=gf(u),T=Fd(g)||g,M=c||Hu(Vi(a));if(ga(M,T))return DZ(u,M)}else if(u.flags&3670016){let g=_a(u,a);if(g)return Bdt(g)?void 0:Gb(sr(g),!!(g&&g.flags&16777216));if(Oa(u)&&rg(a)&&+a>=0){let T=jM(u,u.target.fixedLength,0,!1,!0);if(T)return T}return(_=lge(cge(u),c||Hu(Vi(a))))==null?void 0:_.type}},!0)}function mWe(n,a){if(R.assert(bm(n)),!(n.flags&67108864))return Kye(n,a)}function Kye(n,a){let c=n.parent,u=mc(n)&&jye(n,a);if(u)return u;let _=p0(c,a);if(_){if(iC(n)){let g=Sr(n);return u0(_,g.escapedName,qi(g).nameType)}if(Wv(n)){let g=No(n);if(g&&Ya(g)){let T=po(g.expression),M=Qf(T)&&u0(_,Zf(T));if(M)return M}}if(n.name){let g=dv(n.name);return ll(_,T=>{var M;return(M=lge(cge(T),g))==null?void 0:M.type},!0)}}}function Gdt(n){let a,c;for(let u=0;u{if(Oa(g)){if((u===void 0||a_)?c-a:0,M=T>0&&g.target.hasRestElement?b8(g.target,3):0;return T>0&&T<=M?Us(g)[cv(g)-T]:jM(g,u===void 0?g.target.fixedLength:Math.min(g.target.fixedLength,u),c===void 0||_===void 0?M:Math.min(M,c-_),!1,!0)}return(!u||apv(W)?Cp(W,u_(T)):W,!0))}function Udt(n,a){let c=n.parent;return fF(c)?Ku(n,a):og(c)?jdt(c,n,a):void 0}function _We(n,a){if(M_(n)){let c=p0(n.parent,a);return!c||xt(c)?void 0:u0(c,QN(n.name))}else return Ku(n.parent,a)}function M5(n){switch(n.kind){case 11:case 9:case 10:case 15:case 228:case 112:case 97:case 106:case 80:case 157:return!0;case 211:case 217:return M5(n.expression);case 294:return!n.expression||M5(n.expression)}return!1}function Hdt(n,a){return Oct(a,n)||iye(a,bo(mn(jr(n.properties,c=>c.symbol?c.kind===303?M5(c.initializer)&&UM(a,c.symbol.escapedName):c.kind===304?UM(a,c.symbol.escapedName):!1:!1),c=>[()=>eG(c.kind===303?c.initializer:c.name),c.symbol.escapedName]),mn(jr(_s(a),c=>{var u;return!!(c.flags&16777216)&&!!((u=n?.symbol)!=null&&u.members)&&!n.symbol.members.has(c.escapedName)&&UM(a,c.escapedName)}),c=>[()=>Me,c.escapedName])),ga)}function Kdt(n,a){let c=w5(YA(n));return iye(a,bo(mn(jr(n.properties,u=>!!u.symbol&&u.kind===291&&UM(a,u.symbol.escapedName)&&(!u.initializer||M5(u.initializer))),u=>[u.initializer?()=>eG(u.initializer):()=>wn,u.symbol.escapedName]),mn(jr(_s(a),u=>{var _;if(!(u.flags&16777216)||!((_=n?.symbol)!=null&&_.members))return!1;let g=n.parent.parent;return u.escapedName===c&&og(g)&&sR(g.children).length?!1:!n.symbol.members.has(u.escapedName)&&UM(a,u.escapedName)}),u=>[()=>Me,u.escapedName])),ga)}function p0(n,a){let c=bm(n)?mWe(n,a):Ku(n,a),u=_ee(c,n,a);if(u&&!(a&&a&2&&u.flags&8650752)){let _=ll(u,g=>kr(g)&32?g:Pu(g),!0);return _.flags&1048576&&La(n)?Hdt(n,_):_.flags&1048576&&X0(n)?Kdt(n,_):_}}function _ee(n,a,c){if(n&&Rl(n,465829888)){let u=GS(a);if(u&&c&1&>(u.inferences,Cft))return hee(n,u.nonFixingMapper);if(u?.returnMapper){let _=hee(n,u.returnMapper);return _.flags&1048576&&cy(_.types,En)&&cy(_.types,Bn)?cc(_,g=>g!==En&&g!==Bn):_}}return n}function hee(n,a){return n.flags&465829888?io(n,a):n.flags&1048576?ti(mn(n.types,c=>hee(c,a)),0):n.flags&2097152?ha(mn(n.types,c=>hee(c,a))):n}function Ku(n,a){var c;if(n.flags&67108864)return;let u=gWe(n,!a);if(u>=0)return fn[u];let{parent:_}=n;switch(_.kind){case 260:case 169:case 172:case 171:case 208:return Pdt(n,a);case 219:case 253:return Mdt(n,a);case 229:return kdt(_,a);case 223:return Ldt(_,a);case 213:case 214:return pWe(_,n);case 170:return wdt(_);case 216:case 234:return Cg(_.type)?Ku(_,a):Ti(_.type);case 226:return Wdt(n,a);case 303:case 304:return Kye(_,a);case 305:return Ku(_.parent,a);case 209:{let g=_,T=p0(g,a),M=Vx(g.elements,n),W=(c=Zr(g)).spreadIndices??(c.spreadIndices=Gdt(g.elements));return Jye(T,M,g.elements.length,W.first,W.last)}case 227:return Vdt(n,a);case 239:return R.assert(_.parent.kind===228),Odt(_.parent,n);case 217:{if(ir(_)){if(hU(_))return Ti(gU(_));let g=nE(_);if(g&&!Cg(g.typeExpression.type))return Ti(g.typeExpression.type)}return Ku(_,a)}case 235:return Ku(_,a);case 238:return Ti(_.type);case 277:return eo(_);case 294:return Udt(_,a);case 291:case 293:return _We(_,a);case 286:case 285:return Ydt(_,a);case 301:return Xdt(_)}}function hWe(n){L5(n,Ku(n,void 0),!0)}function L5(n,a,c){Jn[mi]=n,fn[mi]=a,qn[mi]=c,mi++}function W8(){mi--}function gWe(n,a){for(let c=mi-1;c>=0;c--)if(n===Jn[c]&&(a||!qn[c]))return c;return-1}function Jdt(n,a){or[dr]=n,ni[dr]=a,dr++}function qdt(){dr--}function GS(n){for(let a=dr-1;a>=0;a--)if(N0(n,or[a]))return ni[a]}function Xdt(n){return u0(Ige(!1),U6(n))}function Ydt(n,a){if(P_(n)&&a!==4){let c=gWe(n.parent,!a);if(c>=0)return fn[c]}return Hye(n,0)}function gee(n,a){return eFe(a)!==0?$dt(n,a):eut(n,a)}function $dt(n,a){let c=Rve(n,un);c=yWe(a,YA(a),c);let u=VS(nf.IntrinsicAttributes,a);return Ut(u)||(c=$B(u,c)),c}function Qdt(n,a){if(n.compositeSignatures){let u=[];for(let _ of n.compositeSignatures){let g=us(_);if(xt(g))return g;let T=Ue(g,a);if(!T)return;u.push(T)}return ha(u)}let c=us(n);return xt(c)?c:Ue(c,a)}function Zdt(n){if(ux(n.tagName)){let c=RWe(n),u=Cee(n,c);return WA(u)}let a=tc(n.tagName);if(a.flags&128){let c=xWe(a,n);if(!c)return pt;let u=Cee(n,c);return WA(u)}return a}function yWe(n,a,c){let u=but(a);if(u){let _=Zdt(n),g=NWe(u,ir(n),_,c);if(g)return g}return c}function eut(n,a){let c=YA(a),u=Sut(c),_=u===void 0?Rve(n,un):u===""?us(n):Qdt(n,u);if(!_)return u&&Nn(a.attributes.properties)&&Ve(a,f.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Vi(u)),un;if(_=yWe(a,c,_),xt(_))return _;{let g=_,T=VS(nf.IntrinsicClassAttributes,a);if(!Ut(T)){let W=Nr(T.symbol),V=us(n),te;if(W){let ye=Mb([V],W,Oh(W),ir(a));te=io(T,Np(W,ye))}else te=T;g=$B(te,g)}let M=VS(nf.IntrinsicAttributes,a);return Ut(M)||(g=$B(M,g)),g}}function tut(n){return du(B,"noImplicitAny")?nu(n,(a,c)=>a===c||!a?a:gwe(a.typeParameters,c.typeParameters)?iut(a,c):void 0):void 0}function nut(n,a,c){if(!n||!a)return n||a;let u=ti([sr(n),io(sr(a),c)]);return UA(n,u)}function rut(n,a,c){let u=Kp(n),_=Kp(a),g=u>=_?n:a,T=g===n?a:n,M=g===n?u:_,W=Bh(n)||Bh(a),V=W&&!Bh(g),te=new Array(M+(V?1:0));for(let ye=0;ye=Q_(g)&&ye>=Q_(T),sn=ye>=u?void 0:YM(n,ye),nr=ye>=_?void 0:YM(a,ye),Mn=sn===nr?sn:sn?nr?void 0:sn:nr,an=Ka(1|(rn&&!At?16777216:0),Mn||`arg${ye}`);an.links.type=At?zd(mt):mt,te[ye]=an}if(V){let ye=Ka(1,"args");ye.links.type=zd(f_(T,M)),T===a&&(ye.links.type=io(ye.links.type,c)),te[M]=ye}return te}function iut(n,a){let c=n.typeParameters||a.typeParameters,u;n.typeParameters&&a.typeParameters&&(u=Np(a.typeParameters,n.typeParameters));let _=n.declaration,g=rut(n,a,u),T=nut(n.thisParameter,a.thisParameter,u),M=Math.max(n.minArgumentCount,a.minArgumentCount),W=vg(_,c,T,g,void 0,void 0,M,(n.flags|a.flags)&167);return W.compositeKind=2097152,W.compositeSignatures=bo(n.compositeKind===2097152&&n.compositeSignatures||[n],[a]),u&&(W.mapper=n.compositeKind===2097152&&n.mapper&&n.compositeSignatures?FS(n.mapper,u):u),W}function qye(n,a){let c=Ko(n,0),u=jr(c,_=>!out(_,a));return u.length===1?u[0]:tut(u)}function out(n,a){let c=0;for(;cVM(_e)||Uu(_e)&&!_e.nameType&&!!A8(_e.target||_e)),ye=!1;for(let _e=0;_e<_;_e++){let je=u[_e];if(je.kind===230){ce<2&&xc(je,B.downlevelIteration?1536:1024);let mt=po(je.expression,a,c);if(pv(mt))g.push(mt),T.push(8);else if(M){let At=n0(mt,It)||qve(65,mt,Me,void 0,!1)||un;g.push(At),T.push(4)}else g.push(mv(33,mt,Me,je.expression)),T.push(4)}else if(Ie&&je.kind===232)ye=!0,g.push(ie),T.push(2);else{let mt=ZM(je,a,c);if(g.push(op(mt,!0,ye)),T.push(ye?2:1),te&&a&&a&2&&!(a&4)&&zf(je)){let At=GS(n);R.assert(At),gye(At,je,mt)}}}return W8(),M?Fh(g,T):bWe(c||W||te?Fh(g,T,W&&!(V&&Fm(V,lye))):zd(g.length?ti(Nc(g,(_e,je)=>T[je]&8?kb(_e,It)||G:_e),2):J?Pi:Pt,W))}function bWe(n){if(!(kr(n)&4))return n;let a=n.literalType;return a||(a=n.literalType=Vwe(n),a.objectFlags|=147456),a}function cut(n){switch(n.kind){case 167:return dut(n);case 80:return rg(n.escapedText);case 9:case 11:return rg(n.text);default:return!1}}function dut(n){return Td(Eg(n),296)}function Eg(n){let a=Zr(n.expression);if(!a.resolvedType){if((gp(n.parent.parent)||di(n.parent.parent)||fu(n.parent.parent))&&ur(n.expression)&&n.expression.operatorToken.kind===103&&n.parent.kind!==177&&n.parent.kind!==178)return a.resolvedType=pt;if(a.resolvedType=po(n.expression),Vo(n.parent)&&!pc(n.parent)&&$c(n.parent.parent)){let c=ph(n.parent.parent),u=Fye(c);u&&(Zr(u).flags|=4096,Zr(n).flags|=32768,Zr(n.parent.parent).flags|=32768)}(a.resolvedType.flags&98304||!Td(a.resolvedType,402665900)&&!ga(a.resolvedType,xn))&&Ve(n,f.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return a.resolvedType}function uut(n){var a;let c=(a=n.declarations)==null?void 0:a[0];return rg(n.escapedName)||c&&ou(c)&&cut(c.name)}function EWe(n){var a;let c=(a=n.declarations)==null?void 0:a[0];return q2(n)||c&&ou(c)&&Ya(c.name)&&Td(Eg(c.name),4096)}function Yye(n,a,c,u){let _=[];for(let T=a;T0&&(M=wS(M,On(),n.symbol,At,te),T=[],g=oa(),sn=!1,nr=!1,Mn=!1);let $n=d_(po(Ln.expression,a&2));if(k5($n)){let xo=Uge($n,te);if(_&&TWe(xo,_,Ln),an=T.length,Ut(M))continue;M=wS(M,xo,n.symbol,At,te)}else Ve(Ln,f.Spread_types_may_only_be_created_from_object_types),M=pt;continue}else R.assert(Ln.kind===177||Ln.kind===178),px(Ln);jn&&!(jn.flags&8576)?ga(jn,xn)&&(ga(jn,It)?nr=!0:ga(jn,xi)?Mn=!0:sn=!0,u&&(rn=!0)):g.set(Yn.escapedName,Yn),T.push(Yn)}if(W8(),V){let Ln=Fn(W.pattern.parent,jn=>jn.kind===260||jn.kind===226||jn.kind===169);if(Fn(n,jn=>jn===Ln||jn.kind===305).kind!==305)for(let jn of _s(W))!g.get(jn.escapedName)&&!_a(M,jn.escapedName)&&(jn.flags&16777216||Ve(jn.valueDeclaration||((c=ri(jn,dh))==null?void 0:c.links.bindingElement),f.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),g.set(jn.escapedName,jn),T.push(jn))}if(Ut(M))return pt;if(M!==Na)return T.length>0&&(M=wS(M,On(),n.symbol,At,te),T=[],g=oa(),sn=!1,nr=!1),ll(M,Ln=>Ln===Na?On():Ln);return On();function On(){let Ln=[];sn&&Ln.push(Yye(n,an,T,Ne)),nr&&Ln.push(Yye(n,an,T,It)),Mn&&Ln.push(Yye(n,an,T,xi));let Yn=Cs(n.symbol,g,Xe,Xe,Ln);return Yn.objectFlags|=At|128|131072,mt&&(Yn.objectFlags|=4096),rn&&(Yn.objectFlags|=512),u&&(Yn.pattern=n),Yn}}function k5(n){let a=h8e(ll(n,ly));return!!(a.flags&126615553||a.flags&3145728&&oo(a.types,k5))}function fut(n){eve(n)}function mut(n,a){return px(n),O5(n)||G}function _ut(n){eve(n.openingElement),ux(n.closingElement.tagName)?vee(n.closingElement):po(n.closingElement.tagName),yee(n)}function hut(n,a){return px(n),O5(n)||G}function gut(n){eve(n.openingFragment);let a=Gn(n);return R6(B)&&(B.jsxFactory||a.pragmas.has("jsx"))&&!B.jsxFragmentFactory&&!a.pragmas.has("jsxfrag")&&Ve(n,B.jsxFactory?f.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:f.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),yee(n),O5(n)||G}function Qye(n){return n.includes("-")}function ux(n){return Fe(n)&&cR(n.escapedText)||Xm(n)}function SWe(n,a){return n.initializer?ZM(n.initializer,a):wn}function yut(n,a=0){let c=n.attributes,u=Ku(c,0),_=J?oa():void 0,g=oa(),T=ul,M=!1,W,V=!1,te=2048,ye=w5(YA(n));for(let mt of c.properties){let At=mt.symbol;if(M_(mt)){let rn=SWe(mt,a);te|=kr(rn)&458752;let sn=Ka(4|At.flags,At.escapedName);if(sn.declarations=At.declarations,sn.parent=At.parent,At.valueDeclaration&&(sn.valueDeclaration=At.valueDeclaration),sn.links.type=rn,sn.links.target=At,g.set(sn.escapedName,sn),_?.set(sn.escapedName,sn),QN(mt.name)===ye&&(V=!0),u){let nr=_a(u,At.escapedName);nr&&nr.declarations&&db(nr)&&Fe(mt.name)&&nv(mt.name,nr.declarations,mt.name.escapedText)}if(u&&a&2&&!(a&4)&&zf(mt)){let nr=GS(c);R.assert(nr);let Mn=mt.initializer.expression;gye(nr,Mn,rn)}}else{R.assert(mt.kind===293),g.size>0&&(T=wS(T,je(),c.symbol,te,!1),g=oa());let rn=d_(po(mt.expression,a&2));xt(rn)&&(M=!0),k5(rn)?(T=wS(T,rn,c.symbol,te,!1),_&&TWe(rn,_,mt)):(Ve(mt.expression,f.Spread_types_may_only_be_created_from_object_types),W=W?ha([W,rn]):rn)}}M||g.size>0&&(T=wS(T,je(),c.symbol,te,!1));let _e=n.parent.kind===284?n.parent:void 0;if(_e&&_e.openingElement===n&&sR(_e.children).length>0){let mt=yee(_e,a);if(!M&&ye&&ye!==""){V&&Ve(c,f._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Vi(ye));let At=p0(n.attributes,void 0),rn=At&&u0(At,ye),sn=Ka(4,ye);sn.links.type=mt.length===1?mt[0]:rn&&Fm(rn,VM)?Fh(mt):zd(ti(mt)),sn.valueDeclaration=L.createPropertySignature(void 0,Vi(ye),void 0,void 0),ja(sn.valueDeclaration,c),sn.valueDeclaration.symbol=sn;let nr=oa();nr.set(ye,sn),T=wS(T,Cs(c.symbol,nr,Xe,Xe,Xe),c.symbol,te,!1)}}if(M)return G;if(W&&T!==ul)return ha([W,T]);return W||(T===ul?je():T);function je(){te|=ve;let mt=Cs(c.symbol,g,Xe,Xe,Xe);return mt.objectFlags|=te|128|131072,mt}}function yee(n,a){let c=[];for(let u of n.children)if(u.kind===12)u.containsOnlyTriviaWhiteSpaces||c.push(Ne);else{if(u.kind===294&&!u.expression)continue;c.push(ZM(u,a))}return c}function TWe(n,a,c){for(let u of _s(n))if(!(u.flags&16777216)){let _=a.get(u.escapedName);if(_){let g=Ve(_.valueDeclaration,f._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Vi(_.escapedName));Ma(g,Pr(c,f.This_spread_always_overwrites_this_property))}}}function vut(n,a){return yut(n.parent,a)}function VS(n,a){let c=YA(a),u=c&&xp(c),_=u&&ju(u,n,788968);return _?Ys(_):pt}function vee(n){let a=Zr(n);if(!a.resolvedSymbol){let c=VS(nf.IntrinsicElements,n);if(Ut(c))return fe&&Ve(n,f.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Vi(nf.IntrinsicElements)),a.resolvedSymbol=lt;{if(!Fe(n.tagName)&&!Xm(n.tagName))return R.fail();let u=Xm(n.tagName)?FI(n.tagName):n.tagName.escapedText,_=_a(c,u);if(_)return a.jsxFlags|=1,a.resolvedSymbol=_;let g=$6e(c,Hu(Vi(u)));return g?(a.jsxFlags|=2,a.resolvedSymbol=g):St(c,u)?(a.jsxFlags|=2,a.resolvedSymbol=c.symbol):(Ve(n,f.Property_0_does_not_exist_on_type_1,yU(n.tagName),"JSX."+nf.IntrinsicElements),a.resolvedSymbol=lt)}}return a.resolvedSymbol}function Zye(n){let a=n&&Gn(n),c=a&&Zr(a);if(c&&c.jsxImplicitImportContainer===!1)return;if(c&&c.jsxImplicitImportContainer)return c.jsxImplicitImportContainer;let u=C6(D6(B,a),B);if(!u)return;let g=uu(B)===1?f.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:f.Cannot_find_module_0_or_its_corresponding_type_declarations,T=B.importHelpers?1:0,M=a?.imports[T];M&&R.assert(Js(M)&&M.text===u,`Expected sourceFile.imports[${T}] to be the synthesized JSX runtime import`);let W=j_(M||n,u,g,n),V=W&&W!==lt?ts(Vl(W)):void 0;return c&&(c.jsxImplicitImportContainer=V||!1),V}function YA(n){let a=n&&Zr(n);if(a&&a.jsxNamespace)return a.jsxNamespace;if(!a||a.jsxNamespace!==!1){let u=Zye(n);if(!u||u===lt){let _=FE(n);u=hl(n,_,1920,void 0,_,!1)}if(u){let _=Vl(ju(xp(Vl(u)),nf.JSX,1920));if(_&&_!==lt)return a&&(a.jsxNamespace=_),_}a&&(a.jsxNamespace=!1)}let c=Vl(WM(nf.JSX,1920,void 0));if(c!==lt)return c}function AWe(n,a){let c=a&&ju(a.exports,n,788968),u=c&&Ys(c),_=u&&_s(u);if(_){if(_.length===0)return"";if(_.length===1)return _[0].escapedName;_.length>1&&c.declarations&&Ve(c.declarations[0],f.The_global_type_JSX_0_may_not_have_more_than_one_property,Vi(n))}}function but(n){return n&&ju(n.exports,nf.LibraryManagedAttributes,788968)}function Eut(n){return n&&ju(n.exports,nf.ElementType,788968)}function Sut(n){return AWe(nf.ElementAttributesPropertyNameContainer,n)}function w5(n){return AWe(nf.ElementChildrenAttributeNameContainer,n)}function IWe(n,a){if(n.flags&4)return[yt];if(n.flags&128){let _=xWe(n,a);return _?[Cee(a,_)]:(Ve(a,f.Property_0_does_not_exist_on_type_1,n.value,"JSX."+nf.IntrinsicElements),Xe)}let c=Pu(n),u=Ko(c,1);return u.length===0&&(u=Ko(c,0)),u.length===0&&c.flags&1048576&&(u=Yhe(mn(c.types,_=>IWe(_,a)))),u}function xWe(n,a){let c=VS(nf.IntrinsicElements,a);if(!Ut(c)){let u=n.value,_=_a(c,pl(u));if(_)return sr(_);let g=n0(c,Ne);return g||void 0}return G}function Tut(n,a,c){if(n===1){let _=CWe(c);_&&Bf(a,_,Vu,c.tagName,f.Its_return_type_0_is_not_a_valid_JSX_element,u)}else if(n===0){let _=DWe(c);_&&Bf(a,_,Vu,c.tagName,f.Its_instance_type_0_is_not_a_valid_JSX_element,u)}else{let _=CWe(c),g=DWe(c);if(!_||!g)return;let T=ti([_,g]);Bf(a,T,Vu,c.tagName,f.Its_element_type_0_is_not_a_valid_JSX_element,u)}function u(){let _=uc(c.tagName);return Fo(void 0,f._0_cannot_be_used_as_a_JSX_component,_)}}function RWe(n){var a;R.assert(ux(n.tagName));let c=Zr(n);if(!c.resolvedJsxElementAttributesType){let u=vee(n);if(c.jsxFlags&1)return c.resolvedJsxElementAttributesType=sr(u)||pt;if(c.jsxFlags&2){let _=Xm(n.tagName)?FI(n.tagName):n.tagName.escapedText;return c.resolvedJsxElementAttributesType=((a=ox(VS(nf.IntrinsicElements,n),_))==null?void 0:a.type)||pt}else return c.resolvedJsxElementAttributesType=pt}return c.resolvedJsxElementAttributesType}function DWe(n){let a=VS(nf.ElementClass,n);if(!Ut(a))return a}function O5(n){return VS(nf.Element,n)}function CWe(n){let a=O5(n);if(a)return ti([a,ue])}function Aut(n){let a=YA(n);if(!a)return;let c=Eut(a);if(!c)return;let u=NWe(c,ir(n));if(!(!u||Ut(u)))return u}function NWe(n,a,...c){let u=Ys(n);if(n.flags&524288){let _=qi(n).typeParameters;if(Nn(_)>=c.length){let g=Mb(c,_,c.length,a);return Nn(g)===0?u:lC(n,g)}}if(Nn(u.typeParameters)>=c.length){let _=Mb(c,u.typeParameters,c.length,a);return lv(u,_)}}function Iut(n){let a=VS(nf.IntrinsicElements,n);return a?_s(a):Xe}function xut(n){(B.jsx||0)===0&&Ve(n,f.Cannot_use_JSX_unless_the_jsx_flag_is_provided),O5(n)===void 0&&fe&&Ve(n,f.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function eve(n){let a=su(n);if(a&&vgt(n),xut(n),!Zye(n)){let c=Qa&&B.jsx===2?f.Cannot_find_name_0:void 0,u=FE(n),_=a?n.tagName:n,g;if(i1(n)&&u==="null"||(g=hl(_,u,111551,c,u,!0)),g&&(g.isReferenced=-1,ft&&g.flags&2097152&&!Lf(g)&&gb(g)),i1(n)){let T=Gn(n),M=j1(T);M&&hl(_,M,111551,c,M,!0)}}if(a){let c=n,u=yC(c);Pee(u,n);let _=Aut(c);if(_!==void 0){let g=c.tagName,T=ux(g)?Hu(yU(g)):po(g);Bf(T,_,Vu,g,f.Its_type_0_is_not_a_valid_JSX_element_type,()=>{let M=uc(g);return Fo(void 0,f._0_cannot_be_used_as_a_JSX_component,M)})}else Tut(eFe(c),us(u),c)}}function tve(n,a,c){if(n.flags&524288){if(t0(n,a)||ox(n,a)||f8(a)&&bg(n,Ne)||c&&Qye(a))return!0}else if(n.flags&3145728&&W5(n)){for(let u of n.types)if(tve(u,a,c))return!0}return!1}function W5(n){return!!(n.flags&524288&&!(kr(n)&512)||n.flags&67108864||n.flags&1048576&>(n.types,W5)||n.flags&2097152&&oo(n.types,W5))}function Rut(n,a){if(Egt(n),n.expression){let c=po(n.expression,a);return n.dotDotDotToken&&c!==G&&!Gf(c)&&Ve(n,f.JSX_spread_child_must_be_an_array_type),c}else return pt}function nve(n){return n.valueDeclaration?JS(n.valueDeclaration):0}function rve(n){if(n.flags&8192||Tl(n)&4)return!0;if(ir(n.valueDeclaration)){let a=n.valueDeclaration.parent;return a&&ur(a)&&zl(a)===3}}function ive(n,a,c,u,_,g=!0){let T=g?n.kind===166?n.right:n.kind===205?n:n.kind===208&&n.propertyName?n.propertyName:n.name:void 0;return PWe(n,a,c,u,_,T)}function PWe(n,a,c,u,_,g){var T;let M=Tf(_,c);if(a){if(ce<2&&MWe(_))return g&&Ve(g,f.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(M&64)return g&&Ve(g,f.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Si(_),Vn(dx(_))),!1;if(!(M&256)&&((T=_.declarations)!=null&&T.some(_re)))return g&&Ve(g,f.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,Si(_)),!1}if(M&64&&MWe(_)&&(A2(n)||fie(n)||tm(n.parent)&&zF(n.parent.parent))){let V=wg(Du(_));if(V&&yht(n))return g&&Ve(g,f.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Si(_),Xf(V.name)),!1}if(!(M&6))return!0;if(M&2){let V=wg(Du(_));return abe(n,V)?!0:(g&&Ve(g,f.Property_0_is_private_and_only_accessible_within_class_1,Si(_),Vn(dx(_))),!1)}if(a)return!0;let W=X6e(n,V=>{let te=Ys(Sr(V));return a8e(te,_,c)});return!W&&(W=Dut(n),W=W&&a8e(W,_,c),M&256||!W)?(g&&Ve(g,f.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Si(_),Vn(dx(_)||u)),!1):M&256?!0:(u.flags&262144&&(u=u.isThisType?Nu(u):Fd(u)),!u||!nC(u,W)?(g&&Ve(g,f.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Si(_),Vn(W),Vn(u)),!1):!0)}function Dut(n){let a=Cut(n),c=a?.type&&Ti(a.type);if(c&&c.flags&262144&&(c=Nu(c)),c&&kr(c)&7)return av(c)}function Cut(n){let a=ku(n,!1,!1);return a&&Yo(a)?L0(a):void 0}function MWe(n){return!!y5(n,a=>!(a.flags&8192))}function hC(n){return X_(po(n),n)}function F5(n){return dm(n,50331648)}function ove(n){return F5(n)?my(n):n}function Nut(n,a){let c=Bl(n)?up(n):void 0;if(n.kind===106){Ve(n,f.The_value_0_cannot_be_used_here,"null");return}if(c!==void 0&&c.length<100){if(Fe(n)&&c==="undefined"){Ve(n,f.The_value_0_cannot_be_used_here,"undefined");return}Ve(n,a&16777216?a&33554432?f._0_is_possibly_null_or_undefined:f._0_is_possibly_undefined:f._0_is_possibly_null,c)}else Ve(n,a&16777216?a&33554432?f.Object_is_possibly_null_or_undefined:f.Object_is_possibly_undefined:f.Object_is_possibly_null)}function Put(n,a){Ve(n,a&16777216?a&33554432?f.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:f.Cannot_invoke_an_object_which_is_possibly_undefined:f.Cannot_invoke_an_object_which_is_possibly_null)}function LWe(n,a,c){if(J&&n.flags&2){if(Bl(a)){let _=up(a);if(_.length<100)return Ve(a,f._0_is_of_type_unknown,_),pt}return Ve(a,f.Object_is_of_type_unknown),pt}let u=HM(n,50331648);if(u&50331648){c(a,u);let _=my(n);return _.flags&229376?pt:_}return n}function X_(n,a){return LWe(n,a,Nut)}function kWe(n,a){let c=X_(n,a);if(c.flags&16384){if(Bl(a)){let u=up(a);if(Fe(a)&&u==="undefined")return Ve(a,f.The_value_0_cannot_be_used_here,u),c;if(u.length<100)return Ve(a,f._0_is_possibly_undefined,u),c}Ve(a,f.Object_is_possibly_undefined)}return c}function bee(n,a,c){return n.flags&64?Mut(n,a):sve(n,n.expression,hC(n.expression),n.name,a,c)}function Mut(n,a){let c=po(n.expression),u=N8(c,n.expression);return XZ(sve(n,n.expression,X_(u,n.expression),n.name,a),n,u!==c)}function wWe(n,a){let c=jF(n)&&w0(n.left)?X_(P5(n.left),n.left):hC(n.left);return sve(n,n.left,c,n.right,a)}function OWe(n){for(;n.parent.kind===217;)n=n.parent;return v_(n.parent)&&n.parent.expression===n}function Eee(n,a){for(let c=WF(a);c;c=id(c)){let{symbol:u}=c,_=J2(u,n),g=u.members&&u.members.get(_)||u.exports&&u.exports.get(_);if(g)return g}}function Lut(n){if(!id(n))return yn(n,f.Private_identifiers_are_not_allowed_outside_class_bodies);if(!G4(n.parent)){if(!Yh(n))return yn(n,f.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);let a=ur(n.parent)&&n.parent.operatorToken.kind===103;if(!See(n)&&!a)return yn(n,f.Cannot_find_name_0,yr(n))}return!1}function kut(n){Lut(n);let a=See(n);return a&&B5(a,void 0,!1),G}function See(n){if(!Yh(n))return;let a=Zr(n);return a.resolvedSymbol===void 0&&(a.resolvedSymbol=Eee(n.escapedText,n)),a.resolvedSymbol}function ave(n,a){return _a(n,a.escapedName)}function wut(n,a,c){let u,_=_s(n);_&&gn(_,T=>{let M=T.valueDeclaration;if(M&&ou(M)&&Ki(M.name)&&M.name.escapedText===a.escapedText)return u=T,!0});let g=Pm(a);if(u){let T=R.checkDefined(u.valueDeclaration),M=R.checkDefined(id(T));if(c?.valueDeclaration){let W=c.valueDeclaration,V=id(W);if(R.assert(!!V),Fn(V,te=>M===te)){let te=Ve(a,f.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,g,Vn(n));return Ma(te,Pr(W,f.The_shadowing_declaration_of_0_is_defined_here,g),Pr(T,f.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,g)),!0}}return Ve(a,f.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,g,Pm(M.name||C3)),!0}return!1}function WWe(n,a){return(ZD(a)||A2(n)&&DM(a))&&ku(n,!0,!1)===CM(a)}function sve(n,a,c,u,_,g){let T=Zr(a).resolvedSymbol,M=DI(n),W=Pu(M!==0||OWe(n)?Hp(c):c),V=xt(W)||W===ho,te;if(Ki(u)){ce<99&&(M!==0&&xc(n,1048576),M!==1&&xc(n,524288));let _e=Eee(u.escapedText,u);if(M&&_e&&_e.valueDeclaration&&Ul(_e.valueDeclaration)&&yn(u,f.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,yr(u)),V){if(_e)return Ut(W)?pt:W;if(WF(u)===void 0)return yn(u,f.Private_identifiers_are_not_allowed_outside_class_bodies),G}if(te=_e&&ave(c,_e),te===void 0){if(wut(c,u,_e))return pt;let je=WF(u);je&&f2(Gn(je),B.checkJs)&&yn(u,f.Private_field_0_must_be_declared_in_an_enclosing_class,yr(u))}else te.flags&65536&&!(te.flags&32768)&&M!==1&&Ve(n,f.Private_accessor_was_defined_without_a_getter)}else{if(V)return Fe(a)&&T&&pee(T,n),Ut(W)?pt:W;te=_a(W,u.escapedText,kee(W),n.kind===166)}Fe(a)&&T&&(em(B)||!(te&&($8(te)||te.flags&8&&n.parent.kind===306))||G0(B)&&nWe(n))&&pee(T,n);let ye;if(te){let _e=rbe(te,u);if(db(_e)&&zge(n,_e)&&_e.declarations&&nv(u,_e.declarations,u.escapedText),Out(te,n,u),B5(te,n,UWe(a,T)),Zr(n).resolvedSymbol=te,ive(n,a.kind===108,LI(n),W,te),LFe(n,te,M))return Ve(u,f.Cannot_assign_to_0_because_it_is_a_read_only_property,yr(u)),pt;ye=WWe(n,te)?et:g||v6(n)?PS(te):sr(te)}else{let _e=!Ki(u)&&(M===0||!BA(c)||YN(c))?ox(W,u.escapedText):void 0;if(!(_e&&_e.type)){let je=lve(n,c.symbol,!0);return!je&&E8(c)?G:c.symbol===tt?(tt.exports.has(u.escapedText)&&tt.exports.get(u.escapedText).flags&418?Ve(u,f.Property_0_does_not_exist_on_type_1,Vi(u.escapedText),Vn(c)):fe&&Ve(u,f.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Vn(c)),G):(u.escapedText&&!fA(n)&&BWe(u,YN(c)?W:c,je),pt)}_e.isReadonly&&(Qh(n)||Ej(n))&&Ve(n,f.Index_signature_in_type_0_only_permits_reading,Vn(W)),ye=B.noUncheckedIndexedAccess&&!Qh(n)?ti([_e.type,k]):_e.type,B.noPropertyAccessFromIndexSignature&&wr(n)&&Ve(u,f.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Vi(u.escapedText)),_e.declaration&&tv(_e.declaration)&&nv(u,[_e.declaration],u.escapedText)}return FWe(n,te,ye,u,_)}function lve(n,a,c){var u;let _=Gn(n);if(_&&B.checkJs===void 0&&_.checkJsDirective===void 0&&(_.scriptKind===1||_.scriptKind===2)){let g=gn(a?.declarations,Gn),T=!a?.valueDeclaration||!di(a.valueDeclaration)||((u=a.valueDeclaration.heritageClauses)==null?void 0:u.length)||Py(!1,a.valueDeclaration);return!(_!==g&&g&&Rh(g))&&!(c&&a&&a.flags&32&&T)&&!(n&&c&&wr(n)&&n.expression.kind===110&&T)}return!1}function FWe(n,a,c,u,_){let g=DI(n);if(g===1)return Gb(c,!!(a&&a.flags&16777216));if(a&&!(a.flags&98311)&&!(a.flags&8192&&c.flags&1048576)&&!Xee(a.declarations))return c;if(c===et)return eC(n,a);c=Wye(c,n,_);let T=!1;if(J&&xe&&Ps(n)&&n.expression.kind===110){let W=a&&a.valueDeclaration;if(W&&O6e(W)&&!na(W)){let V=O8(n);V.kind===176&&V.parent===W.parent&&!(W.flags&33554432)&&(T=!0)}}else J&&a&&a.valueDeclaration&&wr(a.valueDeclaration)&&k2(a.valueDeclaration)&&O8(n)===O8(a.valueDeclaration)&&(T=!0);let M=Vb(n,c,T?Bb(c):c);return T&&!zM(c)&&zM(M)?(Ve(u,f.Property_0_is_used_before_being_assigned,Si(a)),c):g?fy(M):M}function Out(n,a,c){let{valueDeclaration:u}=n;if(!u||Gn(a).isDeclarationFile)return;let _,g=yr(c);zWe(a)&&!Aat(u)&&!(Ps(a)&&Ps(a.expression))&&!$g(u,c)&&!(Ul(u)&&ite(u)&256)&&(me||!Wut(n))?_=Ve(c,f.Property_0_is_used_before_its_initialization,g):u.kind===263&&a.parent.kind!==183&&!(u.flags&33554432)&&!$g(u,c)&&(_=Ve(c,f.Class_0_used_before_its_declaration,g)),_&&Ma(_,Pr(u,f._0_is_declared_here,g))}function zWe(n){return!!Fn(n,a=>{switch(a.kind){case 172:return!0;case 303:case 174:case 177:case 178:case 305:case 167:case 239:case 294:case 291:case 292:case 293:case 286:case 233:case 298:return!1;case 219:case 244:return Ho(a.parent)&&Al(a.parent.parent)?!0:"quit";default:return Yh(a)?!1:"quit"}})}function Wut(n){if(!(n.parent.flags&32))return!1;let a=sr(n.parent);for(;;){if(a=a.symbol&&Fut(a),!a)return!1;let c=_a(a,n.escapedName);if(c&&c.valueDeclaration)return!0}}function Fut(n){let a=Dp(n);if(a.length!==0)return ha(a)}function BWe(n,a,c){let u,_;if(!Ki(n)&&a.flags&1048576&&!(a.flags&402784252)){for(let T of a.types)if(!_a(T,n.escapedText)&&!ox(T,n.escapedText)){u=Fo(u,f.Property_0_does_not_exist_on_type_1,As(n),Vn(T));break}}if(GWe(n.escapedText,a)){let T=As(n),M=Vn(a);u=Fo(u,f.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,T,M,M+"."+T)}else{let T=H8(a);if(T&&_a(T,n.escapedText))u=Fo(u,f.Property_0_does_not_exist_on_type_1,As(n),Vn(a)),_=Pr(n,f.Did_you_forget_to_use_await);else{let M=As(n),W=Vn(a),V=Gut(M,a);if(V!==void 0)u=Fo(u,f.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,M,W,V);else{let te=cve(n,a);if(te!==void 0){let ye=yl(te),_e=c?f.Property_0_may_not_exist_on_type_1_Did_you_mean_2:f.Property_0_does_not_exist_on_type_1_Did_you_mean_2;u=Fo(u,_e,M,W,ye),_=te.valueDeclaration&&Pr(te.valueDeclaration,f._0_is_declared_here,ye)}else{let ye=zut(a)?f.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:f.Property_0_does_not_exist_on_type_1;u=Fo(age(u,a),ye,M,W)}}}}let g=Pg(Gn(n),n,u);_&&Ma(g,_),t_(!c||u.code!==f.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,g)}function zut(n){return B.lib&&!B.lib.includes("dom")&&$ct(n,a=>a.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(Vi(a.symbol.escapedName)))&&py(n)}function GWe(n,a){let c=a.symbol&&_a(sr(a.symbol),n);return c!==void 0&&!!c.valueDeclaration&&na(c.valueDeclaration)}function But(n){let a=Pm(n),u=J6().get(a);return u&&WG(u.keys())}function Gut(n,a){let c=Pu(a).symbol;if(!c)return;let u=yl(c),g=J6().get(u);if(g){for(let[T,M]of g)if(zo(M,n))return T}}function VWe(n,a){return z5(n,_s(a),106500)}function cve(n,a){let c=_s(a);if(typeof n!="string"){let u=n.parent;wr(u)&&(c=jr(c,_=>HWe(u,a,_))),n=yr(n)}return z5(n,c,111551)}function jWe(n,a){let c=Co(n)?n:yr(n),u=_s(a);return(c==="for"?Vr(u,g=>yl(g)==="htmlFor"):c==="class"?Vr(u,g=>yl(g)==="className"):void 0)??z5(c,u,111551)}function dve(n,a){let c=cve(n,a);return c&&yl(c)}function uve(n,a,c){return R.assert(a!==void 0,"outername should always be defined"),Bp(n,a,c,void 0,a,!1,!1,!0,(_,g,T)=>{R.assertEqual(a,g,"name should equal outerName");let M=ju(_,g,T);if(M)return M;let W;return _===be?W=to(["string","number","boolean","object","bigint","symbol"],te=>_.has(te.charAt(0).toUpperCase()+te.slice(1))?Ka(524288,te):void 0).concat(Oo(_.values())):W=Oo(_.values()),z5(Vi(g),W,T)})}function Vut(n,a,c){let u=uve(n,a,c);return u&&yl(u)}function Tee(n,a){return a.exports&&z5(yr(n),AA(a),2623475)}function jut(n,a){let c=Tee(n,a);return c&&yl(c)}function Uut(n,a,c){function u(T){let M=t0(n,T);if(M){let W=QA(sr(M));return!!W&&Q_(W)>=1&&ga(c,f_(W,0))}return!1}let _=Qh(a)?"set":"get";if(!u(_))return;let g=nk(a.expression);return g===void 0?g=_:g+="."+_,g}function Hut(n,a){let c=a.types.filter(u=>!!(u.flags&128));return VC(n.value,c,u=>u.value)}function z5(n,a,c){return VC(n,a,u);function u(_){let g=yl(_);if(!ao(g,'"')){if(_.flags&c)return g;if(_.flags&2097152){let T=EA(_);if(T&&T.flags&c)return g}}}}function B5(n,a,c){let u=n&&n.flags&106500&&n.valueDeclaration;if(!u)return;let _=fp(u,2),g=n.valueDeclaration&&ou(n.valueDeclaration)&&Ki(n.valueDeclaration.name);if(!(!_&&!g)&&!(a&&v6(a)&&!(n.flags&65536))){if(c){let T=Fn(a,Ws);if(T&&T.symbol===n)return}(Tl(n)&1?qi(n).target:n).isReferenced=-1}}function UWe(n,a){return n.kind===110||!!a&&Bl(n)&&a===Wm(Fp(n))}function Kut(n,a){switch(n.kind){case 211:return pve(n,n.expression.kind===108,a,Hp(po(n.expression)));case 166:return pve(n,!1,a,Hp(po(n.left)));case 205:return pve(n,!1,a,Ti(n))}}function HWe(n,a,c){return fve(n,n.kind===211&&n.expression.kind===108,!1,a,c)}function pve(n,a,c,u){if(xt(u))return!0;let _=_a(u,c);return!!_&&fve(n,a,!1,u,_)}function fve(n,a,c,u,_){if(xt(u))return!0;if(_.valueDeclaration&&au(_.valueDeclaration)){let g=id(_.valueDeclaration);return!jd(n)&&!!Fn(n,T=>T===g)}return PWe(n,a,c,u,_)}function Jut(n){let a=n.initializer;if(a.kind===261){let c=a.declarations[0];if(c&&!$o(c.name))return Sr(c)}else if(a.kind===80)return Wm(a)}function qut(n){return hu(n).length===1&&!!bg(n,It)}function Xut(n){let a=ms(n);if(a.kind===80){let c=Wm(a);if(c.flags&3){let u=n,_=n.parent;for(;_;){if(_.kind===249&&u===_.statement&&Jut(_)===c&&qut(Ad(_.expression)))return!0;u=_,_=_.parent}}}return!1}function Yut(n,a){return n.flags&64?$ut(n,a):KWe(n,hC(n.expression),a)}function $ut(n,a){let c=po(n.expression),u=N8(c,n.expression);return XZ(KWe(n,X_(u,n.expression),a),n,u!==c)}function KWe(n,a,c){let u=DI(n)!==0||OWe(n)?Hp(a):a,_=n.argumentExpression,g=po(_);if(Ut(u)||u===ho)return u;if(kee(u)&&!ss(_))return Ve(_,f.A_const_enum_member_can_only_be_accessed_using_a_string_literal),pt;let T=Xut(_)?It:g,M=Qh(n)?4|(BA(u)&&!YN(u)?2:0):32,W=kb(u,T,M,n)||pt;return e6e(FWe(n,Zr(n).resolvedSymbol,W,_,c),n)}function JWe(n){return v_(n)||H0(n)||su(n)}function $A(n){return JWe(n)&&gn(n.typeArguments,xa),n.kind===215?po(n.template):su(n)?po(n.attributes):ur(n)?po(n.left):v_(n)&&gn(n.arguments,a=>{po(a)}),yt}function Y_(n){return $A(n),cn}function Qut(n,a,c){let u,_,g=0,T,M=-1,W;R.assert(!a.length);for(let V of n){let te=V.declaration&&Sr(V.declaration),ye=V.declaration&&V.declaration.parent;!_||te===_?u&&ye===u?T=T+1:(u=ye,T=g):(T=g=a.length,u=ye),_=te,vK(V)?(M++,W=M,g++):W=T,a.splice(W,0,c?Kot(V,c):V)}}function Aee(n){return!!n&&(n.kind===230||n.kind===237&&n.isSpread)}function Iee(n){return Kl(n,Aee)}function qWe(n){return!!(n.flags&16384)}function Zut(n){return!!(n.flags&49155)}function xee(n,a,c,u=!1){let _,g=!1,T=Kp(c),M=Q_(c);if(n.kind===215)if(_=a.length,n.template.kind===228){let W=Ja(n.template.templateSpans);g=Fl(W.literal)||!!W.literal.isUnterminated}else{let W=n.template;R.assert(W.kind===15),g=!!W.isUnterminated}else if(n.kind===170)_=nFe(n,c);else if(n.kind===226)_=1;else if(su(n)){if(g=n.attributes.end===n.end,g)return!0;_=M===0?a.length:1,T=a.length===0?T:1,M=Math.min(M,1)}else if(n.arguments){_=u?a.length+1:a.length,g=n.arguments.end===n.end;let W=Iee(a);if(W>=0)return W>=Q_(c)&&(Bh(c)||WT)return!1;if(g||_>=M)return!0;for(let W=_;W=u&&a.length<=c}function XWe(n,a){let c;return!!(n.target&&(c=jS(n.target,a))&&uC(c))}function QA(n){return z8(n,0,!1)}function YWe(n){return z8(n,0,!1)||z8(n,1,!1)}function z8(n,a,c){if(n.flags&524288){let u=c_(n);if(c||u.properties.length===0&&u.indexInfos.length===0){if(a===0&&u.callSignatures.length===1&&u.constructSignatures.length===0)return u.callSignatures[0];if(a===1&&u.constructSignatures.length===1&&u.callSignatures.length===0)return u.constructSignatures[0]}}}function $We(n,a,c,u){let _=L8(n.typeParameters,n,0,u),g=B8(a),T=c&&(g&&g.flags&262144?c.nonFixingMapper:c.mapper),M=T?fC(a,T):a;return mye(M,n,(W,V)=>{_y(_.inferences,W,V)}),c||_ye(a,n,(W,V)=>{_y(_.inferences,W,V,128)}),g8(n,Rye(_),ir(a.declaration))}function ept(n,a,c,u){let _=gee(a,n),g=vC(n.attributes,_,u,c);return _y(u.inferences,g,_),Rye(u)}function QWe(n){if(!n)return er;let a=po(n);return qie(n)?a:tN(n.parent)?my(a):jd(n.parent)?qZ(a):a}function _ve(n,a,c,u,_){if(su(n))return ept(n,a,u,_);if(n.kind!==170&&n.kind!==226){let W=oo(a.typeParameters,te=>!!OA(te)),V=Ku(n,W?8:0);if(V){let te=us(a);if(c0(te)){let ye=GS(n);if(!(!W&&Ku(n,8)!==V)){let At=vye(fct(ye,1)),rn=io(V,At),sn=QA(rn),nr=sn&&sn.typeParameters?WA(fge(sn,sn.typeParameters)):rn;_y(_.inferences,nr,te,128)}let je=L8(a.typeParameters,a,_.flags),mt=io(V,ye&&ye.returnMapper);_y(je.inferences,mt,te),_.returnMapper=gt(je.inferences,bC)?vye(gct(je)):void 0}}}let g=G8(a),T=g?Math.min(Kp(a)-1,c.length):c.length;if(g&&g.flags&262144){let W=Vr(_.inferences,V=>V.typeParameter===g);W&&(W.impliedArity=Kl(c,Aee,T)<0?c.length-T:void 0)}let M=r0(a);if(M&&c0(M)){let W=tFe(n);_y(_.inferences,QWe(W),M)}for(let W=0;W=c-1){let te=n[c-1];if(Aee(te)){let ye=te.kind===237?te.type:vC(te.expression,u,_,g);return pv(ye)?ZWe(ye):zd(mv(33,ye,Me,te.kind===230?te.expression:te),T)}}let M=[],W=[],V=[];for(let te=a;teFo(void 0,f.Type_0_does_not_satisfy_the_constraint_1):void 0,ye=u||f.Type_0_does_not_satisfy_the_constraint_1;M||(M=Np(g,T));let _e=T[W];if(!Zd(_e,Up(io(V,M),_e),c?a[W]:void 0,ye,te))return}}return T}function eFe(n){if(ux(n.tagName))return 2;let a=Pu(po(n.tagName));return Nn(Ko(a,1))?0:Nn(Ko(a,0))?1:2}function tpt(n,a,c,u,_,g,T){let M=gee(a,n),W=vC(n.attributes,M,void 0,u),V=u&4?M8(W):W;return te()&&Zge(V,M,c,_?n.tagName:void 0,n.attributes,void 0,g,T);function te(){var ye;if(Zye(n))return!0;let _e=(P_(n)||OT(n))&&!(ux(n.tagName)||Xm(n.tagName))?po(n.tagName):void 0;if(!_e)return!0;let je=Ko(_e,0);if(!Nn(je))return!0;let mt=s4e(n);if(!mt)return!0;let At=Vs(mt,111551,!0,!1,n);if(!At)return!0;let rn=sr(At),sn=Ko(rn,0);if(!Nn(sn))return!0;let nr=!1,Mn=0;for(let On of sn){let Ln=f_(On,0),Yn=Ko(Ln,0);if(Nn(Yn))for(let jn of Yn){if(nr=!0,Bh(jn))return!0;let $n=Kp(jn);$n>Mn&&(Mn=$n)}}if(!nr)return!0;let an=1/0;for(let On of je){let Ln=Q_(On);Ln{_.push(g.expression)}),_}if(n.kind===170)return npt(n);if(n.kind===226)return[n.left];if(su(n))return n.attributes.properties.length>0||P_(n)&&n.parent.children.length>0?[n.attributes]:Xe;let a=n.arguments||Xe,c=Iee(a);if(c>=0){let u=a.slice(0,c);for(let _=c;_{var V;let te=T.target.elementFlags[W],ye=V5(g,te&4?zd(M):M,!!(te&12),(V=T.target.labeledElementDeclarations)==null?void 0:V[W]);u.push(ye)}):u.push(g)}return u}return a}function npt(n){let a=n.expression,c=Cve(n);if(c){let u=[];for(let _ of c.parameters){let g=sr(_);u.push(V5(a,g))}return u}return R.fail()}function nFe(n,a){return B.experimentalDecorators?rpt(n,a):2}function rpt(n,a){switch(n.parent.kind){case 263:case 231:return 1;case 172:return I_(n.parent)?3:2;case 174:case 177:case 178:return ce===0||a.parameters.length<=2?2:3;case 169:return 3;default:return R.fail()}}function rFe(n){let a=Gn(n),{start:c,length:u}=fT(a,wr(n.expression)?n.expression.name:n.expression);return{start:c,length:u,sourceFile:a}}function j5(n,a,...c){if(ra(n)){let{sourceFile:u,start:_,length:g}=rFe(n);return"message"in a?Yc(u,_,g,a,...c):rj(u,a)}else return"message"in a?Pr(n,a,...c):Pg(Gn(n),n,a)}function ipt(n){return v_(n)?wr(n.expression)?n.expression.name:n.expression:H0(n)?wr(n.tag)?n.tag.name:n.tag:su(n)?n.tagName:n}function opt(n){if(!ra(n)||!Fe(n.expression))return!1;let a=hl(n.expression,n.expression.escapedText,111551,void 0,void 0,!1),c=a?.valueDeclaration;if(!c||!To(c)||!z0(c.parent)||!U0(c.parent.parent)||!Fe(c.parent.parent.expression))return!1;let u=xge(!1);return u?zm(c.parent.parent.expression,!0)===u:!1}function iFe(n,a,c,u){var _;let g=Iee(c);if(g>-1)return Pr(c[g],f.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let T=Number.POSITIVE_INFINITY,M=Number.NEGATIVE_INFINITY,W=Number.NEGATIVE_INFINITY,V=Number.POSITIVE_INFINITY,te;for(let At of a){let rn=Q_(At),sn=Kp(At);rnW&&(W=rn),c.length_?T=Math.min(T,W):V<_&&(g=Math.max(g,V))}if(g!==-1/0&&T!==1/0){if(u){let M=Fo(void 0,f.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,_,g,T);return M=Fo(M,u),y2(Gn(n),c,M)}return Ux(Gn(n),c,f.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,_,g,T)}if(u){let M=Fo(void 0,f.Expected_0_type_arguments_but_got_1,g===-1/0?T:g,_);return M=Fo(M,u),y2(Gn(n),c,M)}return Ux(Gn(n),c,f.Expected_0_type_arguments_but_got_1,g===-1/0?T:g,_)}function gC(n,a,c,u,_,g){let T=n.kind===215,M=n.kind===170,W=su(n),V=n.kind===226,te=!j&&!c,ye;!M&&!V&&!mT(n)&&(ye=n.typeArguments,(T||W||n.expression.kind!==108)&&gn(ye,xa));let _e=c||[];Qut(a,_e,_),R.assert(_e.length,"Revert #54442 and add a testcase with whatever triggered this");let je=Dee(n),mt=_e.length===1&&!_e[0].typeParameters,At=!M&&!mt&>(je,zf)?4:0,rn,sn,nr,Mn,an=!!(u&16)&&n.kind===213&&n.arguments.hasTrailingComma;if(_e.length>1&&(Mn=Ln(_e,xh,mt,an)),Mn||(Mn=Ln(_e,Vu,mt,an)),Mn)return Mn;if(Mn=spt(n,_e,je,!!c,u),Zr(n).resolvedSignature=Mn,te)if(!g&&V&&(g=f.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),rn)if(rn.length===1||rn.length>3){let Yn=rn[rn.length-1],jn;rn.length>3&&(jn=Fo(jn,f.The_last_overload_gave_the_following_error),jn=Fo(jn,f.No_overload_matches_this_call)),g&&(jn=Fo(jn,g));let $n=G5(n,je,Yn,Vu,0,!0,()=>jn);if($n)for(let xo of $n)Yn.declaration&&rn.length>3&&Ma(xo,Pr(Yn.declaration,f.The_last_overload_is_declared_here)),On(Yn,xo),Qa.add(xo);else R.fail("No error for last overload signature")}else{let Yn=[],jn=0,$n=Number.MAX_VALUE,xo=0,vo=0;for(let sp of rn){let Xn=G5(n,je,sp,Vu,0,!0,()=>Fo(void 0,f.Overload_0_of_1_2_gave_the_following_error,vo+1,_e.length,Ph(sp)));Xn?(Xn.length<=$n&&($n=Xn.length,xo=vo),jn=Math.max(jn,Xn.length),Yn.push(Xn)):R.fail("No error for 3 or fewer overload signatures"),vo++}let Wo=jn>1?Yn[xo]:pm(Yn);R.assert(Wo.length>0,"No errors reported for 3 or fewer overload signatures");let fo=Fo(mn(Wo,Qre),f.No_overload_matches_this_call);g&&(fo=Fo(fo,g));let Rc=[...va(Wo,sp=>sp.relatedInformation)],Vf;if(oo(Wo,sp=>sp.start===Wo[0].start&&sp.length===Wo[0].length&&sp.file===Wo[0].file)){let{file:sp,start:Pn,length:Xn}=Wo[0];Vf={file:sp,start:Pn,length:Xn,code:fo.code,category:fo.category,messageText:fo,relatedInformation:Rc}}else Vf=Pg(Gn(n),ipt(n),fo,Rc);On(rn[0],Vf),Qa.add(Vf)}else if(sn)Qa.add(iFe(n,[sn],je,g));else if(nr)gve(nr,n.typeArguments,!0,g);else{let Yn=jr(a,jn=>mve(jn,ye));Yn.length===0?Qa.add(apt(n,a,ye,g)):Qa.add(iFe(n,Yn,je,g))}return Mn;function On(Yn,jn){var $n,xo;let vo=rn,Wo=sn,fo=nr,Rc=((xo=($n=Yn.declaration)==null?void 0:$n.symbol)==null?void 0:xo.declarations)||Xe,sp=Rc.length>1?Vr(Rc,Pn=>Ws(Pn)&&Hf(Pn.body)):void 0;if(sp){let Pn=lm(sp),Xn=!Pn.typeParameters;Ln([Pn],Vu,Xn)&&Ma(jn,Pr(sp,f.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}rn=vo,sn=Wo,nr=fo}function Ln(Yn,jn,$n,xo=!1){if(rn=void 0,sn=void 0,nr=void 0,$n){let vo=Yn[0];if(gt(ye)||!xee(n,je,vo,xo))return;if(G5(n,je,vo,jn,0,!1,void 0)){rn=[vo];return}return vo}for(let vo=0;vo0),px(n),u||a.length===1||a.some(g=>!!g.typeParameters)?dpt(n,a,c,_):lpt(a)}function lpt(n){let a=to(n,W=>W.thisParameter),c;a.length&&(c=oFe(a,a.map(K5)));let{min:u,max:_}=xoe(n,cpt),g=[];for(let W=0;W<_;W++){let V=to(n,te=>Jd(te)?WjS(te,W))))}let T=to(n,W=>Jd(W)?Ja(W.parameters):void 0),M=128;if(T.length!==0){let W=zd(ti(to(n,Fwe),2));g.push(aFe(T,W)),M|=1}return n.some(vK)&&(M|=2),vg(n[0].declaration,void 0,c,g,ha(n.map(us)),void 0,u,M)}function cpt(n){let a=n.parameters.length;return Jd(n)?a-1:a}function oFe(n,a){return aFe(n,ti(a,2))}function aFe(n,a){return UA(Va(n),a)}function dpt(n,a,c,u){let _=fpt(a,Zt===void 0?c.length:Zt),g=a[_],{typeParameters:T}=g;if(!T)return g;let M=JWe(n)?n.typeArguments:void 0,W=M?yZ(g,upt(M,T,ir(n))):ppt(n,T,g,c,u);return a[_]=W,W}function upt(n,a,c){let u=n.map(fx);for(;u.length>a.length;)u.pop();for(;u.length=a)return _;T>u&&(u=T,c=_)}return c}function mpt(n,a,c){if(n.expression.kind===108){let W=Vye(n.expression);if(xt(W)){for(let V of n.arguments)po(V);return yt}if(!Ut(W)){let V=S_(id(n));if(V){let te=kh(W,V.typeArguments,V);return gC(n,te,a,c,0)}}return $A(n)}let u,_=po(n.expression);if(oT(n)){let W=N8(_,n.expression);u=W===_?0:nN(n)?16:8,_=W}else u=0;if(_=LWe(_,n.expression,Put),_===ho)return fr;let g=Pu(_);if(Ut(g))return Y_(n);let T=Ko(g,0),M=Ko(g,1).length;if(U5(_,g,T.length,M))return!Ut(_)&&n.typeArguments&&Ve(n,f.Untyped_function_calls_may_not_accept_type_arguments),$A(n);if(!T.length){if(M)Ve(n,f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Vn(_));else{let W;if(n.arguments.length===1){let V=Gn(n).text;Vd(V.charCodeAt(Pa(V,n.expression.end,!0)-1))&&(W=Pr(n.expression,f.Are_you_missing_a_semicolon))}vve(n.expression,g,0,W)}return Y_(n)}return c&8&&!n.typeArguments&&T.some(_pt)?(jFe(n,c),vr):T.some(W=>ir(W.declaration)&&!!yV(W.declaration))?(Ve(n,f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Vn(_)),Y_(n)):gC(n,T,a,c,u)}function _pt(n){return!!(n.typeParameters&&cbe(us(n)))}function U5(n,a,c,u){return xt(n)||xt(a)&&!!(n.flags&262144)||!c&&!u&&!(a.flags&1048576)&&!(d_(a).flags&131072)&&ga(n,Lt)}function hpt(n,a,c){if(n.arguments&&ce<1){let T=Iee(n.arguments);T>=0&&Ve(n.arguments[T],f.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let u=hC(n.expression);if(u===ho)return fr;if(u=Pu(u),Ut(u))return Y_(n);if(xt(u))return n.typeArguments&&Ve(n,f.Untyped_function_calls_may_not_accept_type_arguments),$A(n);let _=Ko(u,1);if(_.length){if(!gpt(n,_[0]))return Y_(n);if(sFe(_,M=>!!(M.flags&4)))return Ve(n,f.Cannot_create_an_instance_of_an_abstract_class),Y_(n);let T=u.symbol&&wg(u.symbol);return T&&Qr(T,64)?(Ve(n,f.Cannot_create_an_instance_of_an_abstract_class),Y_(n)):gC(n,_,a,c,0)}let g=Ko(u,0);if(g.length){let T=gC(n,g,a,c,0);return fe||(T.declaration&&!$_(T.declaration)&&us(T)!==er&&Ve(n,f.Only_a_void_function_can_be_called_with_the_new_keyword),r0(T)===er&&Ve(n,f.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),T}return vve(n.expression,u,1),Y_(n)}function sFe(n,a){return So(n)?gt(n,c=>sFe(c,a)):n.compositeKind===1048576?gt(n.compositeSignatures,a):a(n)}function yve(n,a){let c=Dp(a);if(!Nn(c))return!1;let u=c[0];if(u.flags&2097152){let _=u.types,g=vwe(_),T=0;for(let M of u.types){if(!g[T]&&kr(M)&3&&(M.symbol===n||yve(n,M)))return!0;T++}return!1}return u.symbol===n?!0:yve(n,u)}function gpt(n,a){if(!a||!a.declaration)return!0;let c=a.declaration,u=PI(c,6);if(!u||c.kind!==176)return!0;let _=wg(c.parent.symbol),g=Ys(c.parent.symbol);if(!abe(n,_)){let T=id(n);if(T&&u&4){let M=fx(T);if(yve(c.parent.symbol,M))return!0}return u&2&&Ve(n,f.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Vn(g)),u&4&&Ve(n,f.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Vn(g)),!1}return!0}function lFe(n,a,c){let u,_=c===0,g=eI(a),T=g&&Ko(g,c).length>0;if(a.flags&1048576){let W=a.types,V=!1;for(let te of W)if(Ko(te,c).length!==0){if(V=!0,u)break}else if(u||(u=Fo(u,_?f.Type_0_has_no_call_signatures:f.Type_0_has_no_construct_signatures,Vn(te)),u=Fo(u,_?f.Not_all_constituents_of_type_0_are_callable:f.Not_all_constituents_of_type_0_are_constructable,Vn(a))),V)break;V||(u=Fo(void 0,_?f.No_constituent_of_type_0_is_callable:f.No_constituent_of_type_0_is_constructable,Vn(a))),u||(u=Fo(u,_?f.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:f.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Vn(a)))}else u=Fo(u,_?f.Type_0_has_no_call_signatures:f.Type_0_has_no_construct_signatures,Vn(a));let M=_?f.This_expression_is_not_callable:f.This_expression_is_not_constructable;if(ra(n.parent)&&n.parent.arguments.length===0){let{resolvedSymbol:W}=Zr(n);W&&W.flags&32768&&(M=f.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:Fo(u,M),relatedMessage:T?f.Did_you_forget_to_use_await:void 0}}function vve(n,a,c,u){let{messageChain:_,relatedMessage:g}=lFe(n,a,c),T=Pg(Gn(n),n,_);if(g&&Ma(T,Pr(n,g)),ra(n.parent)){let{start:M,length:W}=rFe(n.parent);T.start=M,T.length=W}Qa.add(T),cFe(a,c,u?Ma(T,u):T)}function cFe(n,a,c){if(!n.symbol)return;let u=qi(n.symbol).originatingImport;if(u&&!Op(u)){let _=Ko(sr(qi(n.symbol).target),a);if(!_||!_.length)return;Ma(c,Pr(u,f.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function ypt(n,a,c){let u=po(n.tag),_=Pu(u);if(Ut(_))return Y_(n);let g=Ko(_,0),T=Ko(_,1).length;if(U5(u,_,g.length,T))return $A(n);if(!g.length){if(pu(n.parent)){let M=Pr(n.tag,f.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return Qa.add(M),Y_(n)}return vve(n.tag,_,0),Y_(n)}return gC(n,g,a,c,0)}function vpt(n){switch(n.parent.kind){case 263:case 231:return f.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 169:return f.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 172:return f.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 174:case 177:case 178:return f.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return R.fail()}}function bpt(n,a,c){let u=po(n.expression),_=Pu(u);if(Ut(_))return Y_(n);let g=Ko(_,0),T=Ko(_,1).length;if(U5(u,_,g.length,T))return $A(n);if(Tpt(n,g)&&!Wu(n.expression)){let W=uc(n.expression,!1);return Ve(n,f._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,W),Y_(n)}let M=vpt(n);if(!g.length){let W=lFe(n.expression,_,0),V=Fo(W.messageChain,M),te=Pg(Gn(n.expression),n.expression,V);return W.relatedMessage&&Ma(te,Pr(n.expression,W.relatedMessage)),Qa.add(te),cFe(_,0,te),Y_(n)}return gC(n,g,a,c,0,M)}function Cee(n,a){let c=YA(n),u=c&&xp(c),_=u&&ju(u,nf.Element,788968),g=_&&Et.symbolToEntityName(_,788968,n),T=L.createFunctionTypeNode(void 0,[L.createParameterDeclaration(void 0,void 0,"props",void 0,Et.typeToTypeNode(a,n))],g?L.createTypeReferenceNode(g,void 0):L.createKeywordTypeNode(133)),M=Ka(1,"props");return M.links.type=a,vg(T,void 0,void 0,[M],_?Ys(_):pt,void 0,1,0)}function Ept(n,a,c){if(ux(n.tagName)){let T=RWe(n),M=Cee(n,T);return Fb(vC(n.attributes,gee(M,n),void 0,0),T,n.tagName,n.attributes),Nn(n.typeArguments)&&(gn(n.typeArguments,xa),Qa.add(Ux(Gn(n),n.typeArguments,f.Expected_0_type_arguments_but_got_1,0,Nn(n.typeArguments)))),M}let u=po(n.tagName),_=Pu(u);if(Ut(_))return Y_(n);let g=IWe(u,n);return U5(u,_,g.length,0)?$A(n):g.length===0?(Ve(n.tagName,f.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,uc(n.tagName)),Y_(n)):gC(n,g,a,c,0)}function Spt(n,a,c){let u=po(n.right);if(!xt(u)){let _=Lve(u);if(_){let g=Pu(_);if(Ut(g))return Y_(n);let T=Ko(g,0),M=Ko(g,1);if(U5(_,g,T.length,M.length))return $A(n);if(T.length)return gC(n,T,a,c,0)}else if(!(Qee(u)||Wb(u,Lt)))return Ve(n.right,f.The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method),Y_(n)}return yt}function Tpt(n,a){return a.length&&oo(a,c=>c.minArgumentCount===0&&!Jd(c)&&c.parameters.length1?tc(n.arguments[1]):void 0;for(let g=2;g{let T=Hp(_);WZ(g,T)||QOe(_,g,c,f.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)})}function Mpt(n){let a=po(n.expression),c=N8(a,n.expression);return XZ(my(c),n,c!==a)}function Lpt(n){return n.flags&64?Mpt(n):my(po(n.expression))}function hFe(n){if(d4e(n),gn(n.typeArguments,xa),n.kind===233){let c=My(n.parent);c.kind===226&&c.operatorToken.kind===104&&N0(n,c.right)&&Ve(n,f.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}let a=n.kind===233?po(n.expression):w0(n.exprName)?P5(n.exprName):po(n.exprName);return gFe(a,n)}function gFe(n,a){let c=a.typeArguments;if(n===ho||Ut(n)||!gt(c))return n;let u=!1,_,g=M(n),T=u?_:n;return T&&Qa.add(Ux(Gn(a),c,f.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,Vn(T))),g;function M(V){let te=!1,ye=!1,_e=je(V);return u||(u=ye),te&&!ye&&(_??(_=V)),_e;function je(mt){if(mt.flags&524288){let At=c_(mt),rn=W(At.callSignatures),sn=W(At.constructSignatures);if(te||(te=At.callSignatures.length!==0||At.constructSignatures.length!==0),ye||(ye=rn.length!==0||sn.length!==0),rn!==At.callSignatures||sn!==At.constructSignatures){let nr=Cs(Ka(0,"__instantiationExpression"),At.members,rn,sn,At.indexInfos);return nr.objectFlags|=8388608,nr.node=a,nr}}else if(mt.flags&58982400){let At=Fd(mt);if(At){let rn=je(At);if(rn!==At)return rn}}else{if(mt.flags&1048576)return ll(mt,M);if(mt.flags&2097152)return ha(Nc(mt.types,je))}return mt}}function W(V){let te=jr(V,ye=>!!ye.typeParameters&&mve(ye,c));return Nc(te,ye=>{let _e=gve(ye,c,!0);return _e?g8(ye,_e,ir(ye.declaration)):ye})}}function kpt(n){return xa(n.type),Tve(n.expression,n.type)}function Tve(n,a,c){let u=po(n,c),_=Ti(a);if(Ut(_))return _;let g=Fn(a.parent,T=>T.kind===238||T.kind===357);return Fb(u,_,g,n,f.Type_0_does_not_satisfy_the_expected_type_1),u}function wpt(n){return Pgt(n),n.keywordToken===105?Ave(n):n.keywordToken===102?Opt(n):R.assertNever(n.keywordToken)}function yFe(n){switch(n.keywordToken){case 102:return Zwe();case 105:let a=Ave(n);return Ut(a)?pt:Zpt(a);default:R.assertNever(n.keywordToken)}}function Ave(n){let a=pie(n);if(a)if(a.kind===176){let c=Sr(a.parent);return sr(c)}else{let c=Sr(a);return sr(c)}else return Ve(n,f.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),pt}function Opt(n){z===100||z===199?Gn(n).impliedNodeFormat!==99&&Ve(n,f.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):z<6&&z!==4&&Ve(n,f.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);let a=Gn(n);return R.assert(!!(a.flags&8388608),"Containing file is missing import meta node flag."),n.name.escapedText==="meta"?Qwe():pt}function K5(n){let a=n.valueDeclaration;return op(sr(n),!1,!!a&&(Lv(a)||$N(a)))}function Ive(n,a,c="arg"){return n?(R.assert(Fe(n.name)),n.name.escapedText):`${c}_${a}`}function YM(n,a,c){let u=n.parameters.length-(Jd(n)?1:0);if(a=u-1)return a===u-1?g:zd(Cp(g,It));let T=[],M=[],W=[];for(let V=a;V!(W&1)),M=T<0?g.target.fixedLength:T;M>0&&(_=n.parameters.length-1+M)}}if(_===void 0){if(!c&&n.flags&32)return 0;_=n.minArgumentCount}if(u)return _;for(let g=_-1;g>=0;g--){let T=f_(n,g);if(cc(T,qWe).flags&131072)break;_=g}n.resolvedMinArgumentCount=_}return n.resolvedMinArgumentCount}function Bh(n){if(Jd(n)){let a=sr(n.parameters[n.parameters.length-1]);return!Oa(a)||a.target.hasRestElement}return!1}function B8(n){if(Jd(n)){let a=sr(n.parameters[n.parameters.length-1]);if(!Oa(a))return xt(a)?Zl:a;if(a.target.hasRestElement)return FM(a,a.target.fixedLength)}}function G8(n){let a=B8(n);return a&&!Gf(a)&&!xt(a)?a:void 0}function xve(n){return Rve(n,Fr)}function Rve(n,a){return n.parameters.length>0?f_(n,0):a}function SFe(n,a,c){let u=n.parameters.length-(Jd(n)?1:0);for(let _=0;_=0);let g=Pl(u.parent)?sr(Sr(u.parent.parent)):Z6e(u.parent),T=Pl(u.parent)?Me:e4e(u.parent),M=u_(_),W=n_("target",g),V=n_("propertyKey",T),te=n_("parameterIndex",M);c.decoratorSignature=J8(void 0,void 0,[W,V,te],er);break}case 174:case 177:case 178:case 172:{let u=a;if(!di(u.parent))break;let _=Z6e(u),g=n_("target",_),T=e4e(u),M=n_("propertyKey",T),W=Vo(u)?er:aOe(fx(u));if(ce!==0&&(!Vo(a)||I_(a))){let te=aOe(fx(u)),ye=n_("descriptor",te);c.decoratorSignature=J8(void 0,void 0,[g,M,ye],ti([W,er]))}else c.decoratorSignature=J8(void 0,void 0,[g,M],ti([W,er]));break}}return c.decoratorSignature===yt?void 0:c.decoratorSignature}function Cve(n){return ee?Qpt(n):$pt(n)}function X5(n){let a=o5(!0);return a!==Mo?(n=fv(tL(n))||un,lv(a,[n])):un}function IFe(n){let a=rOe(!0);return a!==Mo?(n=fv(tL(n))||un,lv(a,[n])):un}function Y5(n,a){let c=X5(a);return c===un?(Ve(n,Op(n)?f.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:f.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),pt):(xge(!0)||Ve(n,Op(n)?f.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:f.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),c)}function Zpt(n){let a=Ka(0,"NewTargetExpression"),c=Ka(4,"target",8);c.parent=a,c.links.type=n;let u=oa([c]);return a.members=u,Cs(a,u,Xe,Xe,Xe)}function Mee(n,a){if(!n.body)return pt;let c=Bc(n),u=(c&2)!==0,_=(c&1)!==0,g,T,M,W=er;if(n.body.kind!==241)g=tc(n.body,a&&a&-9),u&&(g=tL(K8(g,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(_){let V=PFe(n,a);V?V.length>0&&(g=ti(V,2)):W=Fr;let{yieldTypes:te,nextTypes:ye}=eft(n,a);T=gt(te)?ti(te,2):void 0,M=gt(ye)?ha(ye):void 0}else{let V=PFe(n,a);if(!V)return c&2?Y5(n,Fr):Fr;if(V.length===0){let te=fee(n,void 0),ye=te&&(sG(te,c)||er).flags&32768?Me:er;return c&2?Y5(n,ye):ye}g=ti(V,2)}if(g||T||M){if(T&&ZZ(n,T,3),g&&ZZ(n,g,1),M&&ZZ(n,M,2),g&&p_(g)||T&&p_(T)||M&&p_(M)){let V=Xye(n),te=V?V===lm(n)?_?void 0:g:_ee(us(V),n,void 0):void 0;_?(T=pye(T,te,0,u),g=pye(g,te,1,u),M=pye(M,te,2,u)):g=tct(g,te,u)}T&&(T=Hp(T)),g&&(g=Hp(g)),M&&(M=Hp(M))}return _?xFe(T||Fr,g||W,M||uWe(2,n)||un,u):u?X5(g||W):g||W}function xFe(n,a,c,u){let _=u?Gs:hc,g=_.getGlobalGeneratorType(!1);if(n=_.resolveIterationType(n,void 0)||un,a=_.resolveIterationType(a,void 0)||un,c=_.resolveIterationType(c,void 0)||un,g===Mo){let T=_.getGlobalIterableIteratorType(!1),M=T!==Mo?y6e(T,_):void 0,W=M?M.returnType:G,V=M?M.nextType:Me;return ga(a,W)&&ga(V,c)?T!==Mo?v8(T,[n]):(_.getGlobalIterableIteratorType(!0),Na):(_.getGlobalGeneratorType(!0),Na)}return v8(g,[n,a,c])}function eft(n,a){let c=[],u=[],_=(Bc(n)&2)!==0;return tie(n.body,g=>{let T=g.expression?po(g.expression,a):Pt;yf(c,RFe(g,T,G,_));let M;if(g.asteriskToken){let W=Hee(T,_?19:17,g.expression);M=W&&W.nextType}else M=Ku(g,void 0);M&&yf(u,M)}),{yieldTypes:c,nextTypes:u}}function RFe(n,a,c,u){let _=n.expression||n,g=n.asteriskToken?mv(u?19:17,a,c,_):a;return u?eI(g,_,n.asteriskToken?f.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:f.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):g}function DFe(n,a,c){let u=0;for(let _=0;_=a?c[_]:void 0;u|=g!==void 0?EK.get(g)||32768:0}return u}function CFe(n){let a=Zr(n);if(a.isExhaustive===void 0){a.isExhaustive=0;let c=tft(n);a.isExhaustive===0&&(a.isExhaustive=c)}else a.isExhaustive===0&&(a.isExhaustive=!1);return a.isExhaustive}function tft(n){if(n.expression.kind===221){let u=j8e(n);if(!u)return!1;let _=ly(tc(n.expression.expression)),g=DFe(0,0,u);return _.flags&3?(556800&g)===556800:!Fm(_,T=>HM(T,g)===g)}let a=tc(n.expression);if(!C8(a))return!1;let c=oee(n);return!c.length||gt(c,Qlt)?!1:Xct(ll(a,yu),c)}function NFe(n){return n.endFlowNode&&C5(n.endFlowNode)}function PFe(n,a){let c=Bc(n),u=[],_=NFe(n),g=!1;if(x0(n.body,T=>{let M=T.expression;if(M){if(M=ms(M,!0),c&2&&M.kind===223&&(M=ms(M.expression,!0)),M.kind===213&&M.expression.kind===80&&tc(M.expression).symbol===n.symbol){g=!0;return}let W=tc(M,a&&a&-9);c&2&&(W=tL(K8(W,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),W.flags&131072&&(g=!0),yf(u,W)}else _=!0}),!(u.length===0&&!_&&(g||nft(n))))return J&&u.length&&_&&!($_(n)&&u.some(T=>T.symbol===n.symbol))&&yf(u,Me),u}function nft(n){switch(n.kind){case 218:case 219:return!0;case 174:return n.parent.kind===210;default:return!1}}function Nve(n,a){r(c);return;function c(){let u=Bc(n),_=a&&sG(a,u);if(_&&(Rl(_,16384)||_.flags&32769)||n.kind===173||Fl(n.body)||n.body.kind!==241||!NFe(n))return;let g=n.flags&1024,T=$f(n)||n;if(_&&_.flags&131072)Ve(T,f.A_function_returning_never_cannot_have_a_reachable_end_point);else if(_&&!g)Ve(T,f.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(_&&J&&!ga(Me,_))Ve(T,f.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(B.noImplicitReturns){if(!_){if(!g)return;let M=us(lm(n));if(x6e(n,M))return}Ve(T,f.Not_all_code_paths_return_a_value)}}}function MFe(n,a){if(R.assert(n.kind!==174||bm(n)),px(n),Ms(n)&&nL(n,n.name),a&&a&4&&zf(n)){if(!$f(n)&&!z6(n)){let u=F8(n);if(u&&c0(us(u))){let _=Zr(n);if(_.contextFreeType)return _.contextFreeType;let g=Mee(n,a),T=vg(void 0,void 0,void 0,Xe,g,void 0,0,64),M=Cs(n.symbol,K,[T],Xe,Xe);return M.objectFlags|=262144,_.contextFreeType=M}}return tn}return!nte(n)&&n.kind===218&&pbe(n),rft(n,a),sr(Sr(n))}function rft(n,a){let c=Zr(n);if(!(c.flags&64)){let u=F8(n);if(!(c.flags&64)){c.flags|=64;let _=Jc(Ko(sr(Sr(n)),0));if(!_)return;if(zf(n))if(u){let g=GS(n),T;if(a&&a&2){SFe(_,u,g);let M=B8(u);M&&M.flags&262144&&(T=fC(u,g.nonFixingMapper))}T||(T=g?fC(u,g.mapper):u),zpt(_,T)}else Bpt(_);else if(u&&!n.typeParameters&&u.parameters.length>n.parameters.length){let g=GS(n);a&&a&2&&SFe(_,u,g)}if(u&&!aC(n)&&!_.resolvedReturnType){let g=Mee(n,a);_.resolvedReturnType||(_.resolvedReturnType=g)}j8(n)}}}function ift(n){R.assert(n.kind!==174||bm(n));let a=Bc(n),c=aC(n);if(Nve(n,c),n.body)if($f(n)||us(lm(n)),n.body.kind===241)xa(n.body);else{let u=po(n.body),_=c&&sG(c,a);if(_){let g=Ree(n.body);if((a&3)===2){let T=K8(u,!1,g,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);Fb(T,_,g,g)}else Fb(u,_,g,g)}}}function Lee(n,a,c,u=!1){if(!ga(a,$l)){let _=u&&eL(a);return zE(n,!!_&&ga(_,$l),c),!1}return!0}function oft(n){if(!ra(n)||!gT(n))return!1;let a=tc(n.arguments[2]);if(Ue(a,"value")){let _=_a(a,"writable"),g=_&&sr(_);if(!g||g===Kt||g===En)return!0;if(_&&_.valueDeclaration&&mc(_.valueDeclaration)){let T=_.valueDeclaration.initializer,M=po(T);if(M===Kt||M===En)return!0}return!1}return!_a(a,"set")}function m_(n){return!!(Tl(n)&8||n.flags&4&&Tf(n)&8||n.flags&3&&nve(n)&6||n.flags&98304&&!(n.flags&65536)||n.flags&8||gt(n.declarations,oft))}function LFe(n,a,c){var u,_;if(c===0)return!1;if(m_(a)){if(a.flags&4&&Ps(n)&&n.expression.kind===110){let g=Wp(n);if(!(g&&(g.kind===176||$_(g))))return!0;if(a.valueDeclaration){let T=ur(a.valueDeclaration),M=g.parent===a.valueDeclaration.parent,W=g===a.valueDeclaration.parent,V=T&&((u=a.parent)==null?void 0:u.valueDeclaration)===g.parent,te=T&&((_=a.parent)==null?void 0:_.valueDeclaration)===g;return!(M||W||V||te)}}return!0}if(Ps(n)){let g=ms(n.expression);if(g.kind===80){let T=Zr(g).resolvedSymbol;if(T.flags&2097152){let M=Mm(T);return!!M&&M.kind===274}}}return!1}function V8(n,a,c){let u=Yl(n,7);return u.kind!==80&&!Ps(u)?(Ve(n,a),!1):u.flags&64?(Ve(n,c),!1):!0}function aft(n){po(n.expression);let a=ms(n.expression);if(!Ps(a))return Ve(a,f.The_operand_of_a_delete_operator_must_be_a_property_reference),gi;wr(a)&&Ki(a.name)&&Ve(a,f.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);let c=Zr(a),u=mf(c.resolvedSymbol);return u&&(m_(u)?Ve(a,f.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):sft(a,u)),gi}function sft(n,a){let c=sr(a);J&&!(c.flags&131075)&&!(Ie?a.flags&16777216:dm(c,16777216))&&Ve(n,f.The_operand_of_a_delete_operator_must_be_optional)}function lft(n){return po(n.expression),WD}function cft(n){return px(n),Pt}function kFe(n){let a=!1,c=OF(n);if(c&&Al(c)){let u=qv(n)?f.await_expression_cannot_be_used_inside_a_class_static_block:f.await_using_statements_cannot_be_used_inside_a_class_static_block;Ve(n,u),a=!0}else if(!(n.flags&65536))if(FF(n)){let u=Gn(n);if(!HS(u)){let _;if(!TI(u,B)){_??(_=fh(u,n.pos));let g=qv(n)?f.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:f.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module,T=Yc(u,_.start,_.length,g);Qa.add(T),a=!0}switch(z){case 100:case 199:if(u.impliedNodeFormat===1){_??(_=fh(u,n.pos)),Qa.add(Yc(u,_.start,_.length,f.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),a=!0;break}case 7:case 99:case 200:case 4:if(ce>=4)break;default:_??(_=fh(u,n.pos));let g=qv(n)?f.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:f.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;Qa.add(Yc(u,_.start,_.length,g)),a=!0;break}}}else{let u=Gn(n);if(!HS(u)){let _=fh(u,n.pos),g=qv(n)?f.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:f.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,T=Yc(u,_.start,_.length,g);if(c&&c.kind!==176&&!(Bc(c)&2)){let M=Pr(c,f.Did_you_mean_to_mark_this_function_as_async);Ma(T,M)}Qa.add(T),a=!0}}return qv(n)&&Uye(n)&&(Ve(n,f.await_expressions_cannot_be_used_in_a_parameter_initializer),a=!0),a}function dft(n){r(()=>kFe(n));let a=po(n.expression),c=K8(a,!0,n,f.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return c===a&&!Ut(c)&&!(a.flags&3)&&t_(!1,Pr(n,f.await_has_no_effect_on_the_type_of_this_expression)),c}function uft(n){let a=po(n.operand);if(a===ho)return ho;switch(n.operand.kind){case 9:switch(n.operator){case 41:return cx(u_(-n.operand.text));case 40:return cx(u_(+n.operand.text))}break;case 10:if(n.operator===41)return cx(PZ({negative:!0,base10Value:HN(n.operand.text)}))}switch(n.operator){case 40:case 41:case 55:return X_(a,n.operand),$5(a,12288)&&Ve(n.operand,f.The_0_operator_cannot_be_applied_to_type_symbol,ca(n.operator)),n.operator===40?($5(a,2112)&&Ve(n.operand,f.Operator_0_cannot_be_applied_to_type_1,ca(n.operator),Vn(fy(a))),It):Pve(a);case 54:Jve(a,n.operand);let c=HM(a,12582912);return c===4194304?Kt:c===8388608?wn:gi;case 46:case 47:return Lee(n.operand,X_(a,n.operand),f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&V8(n.operand,f.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,f.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Pve(a)}return pt}function pft(n){let a=po(n.operand);return a===ho?ho:(Lee(n.operand,X_(a,n.operand),f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&V8(n.operand,f.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,f.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Pve(a))}function Pve(n){return Rl(n,2112)?Td(n,3)||Rl(n,296)?$l:Ct:It}function $5(n,a){if(Rl(n,a))return!0;let c=ly(n);return!!c&&Rl(c,a)}function Rl(n,a){if(n.flags&a)return!0;if(n.flags&3145728){let c=n.types;for(let u of c)if(Rl(u,a))return!0}return!1}function Td(n,a,c){return n.flags&a?!0:c&&n.flags&114691?!1:!!(a&296)&&ga(n,It)||!!(a&2112)&&ga(n,Ct)||!!(a&402653316)&&ga(n,Ne)||!!(a&528)&&ga(n,gi)||!!(a&16384)&&ga(n,er)||!!(a&131072)&&ga(n,Fr)||!!(a&65536)&&ga(n,ue)||!!(a&32768)&&ga(n,Me)||!!(a&4096)&&ga(n,xi)||!!(a&67108864)&&ga(n,Kr)}function Q5(n,a,c){return n.flags&1048576?oo(n.types,u=>Q5(u,a,c)):Td(n,a,c)}function kee(n){return!!(kr(n)&16)&&!!n.symbol&&Mve(n.symbol)}function Mve(n){return(n.flags&128)!==0}function Lve(n){let a=b6e("hasInstance"),c=t0(n,a);if(c){let u=sr(c);if(u&&Ko(u,0).length!==0)return u}}function fft(n,a,c,u,_){if(c===ho||u===ho)return ho;!xt(c)&&Q5(c,402784252)&&Ve(n,f.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),R.assert(m6(n.parent));let g=yC(n.parent,void 0,_);if(g===vr)return ho;let T=us(g);return Zd(T,gi,a,f.An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression),gi}function mft(n){return Fm(n,a=>a===xl||!!(a.flags&2097152)&&zh(ly(a)))}function _ft(n,a,c,u){if(c===ho||u===ho)return ho;if(Ki(n)){if(ce<99&&xc(n,2097152),!Zr(n).resolvedSymbol&&id(n)){let _=lve(n,u.symbol,!0);BWe(n,u,_)}}else Zd(X_(c,n),xn,n);return Zd(X_(u,a),Kr,a)&&mft(u)&&Ve(a,f.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,Vn(u)),gi}function hft(n,a,c){let u=n.properties;if(J&&u.length===0)return X_(a,n);for(let _=0;_FM(V,c)):zd(u);return ZA(M,W,_)}}}}function ZA(n,a,c,u){let _;if(n.kind===304){let g=n;g.objectAssignmentInitializer&&(J&&!dm(po(g.objectAssignmentInitializer),16777216)&&(a=um(a,524288)),Eft(g.name,g.equalsToken,g.objectAssignmentInitializer,c)),_=n.name}else _=n;return _.kind===226&&_.operatorToken.kind===64&&(De(_,c),_=_.left,J&&(a=um(a,524288))),_.kind===210?hft(_,a,u):_.kind===209?gft(_,a,c):yft(_,a,c)}function yft(n,a,c){let u=po(n,c),_=n.parent.kind===305?f.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:f.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,g=n.parent.kind===305?f.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:f.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return V8(n,_,g)&&Fb(a,u,n,n),wx(n)&&xc(n.parent,1048576),a}function Z5(n){switch(n=ms(n),n.kind){case 80:case 11:case 14:case 215:case 228:case 15:case 9:case 10:case 112:case 97:case 106:case 157:case 218:case 231:case 219:case 209:case 210:case 221:case 235:case 285:case 284:return!0;case 227:return Z5(n.whenTrue)&&Z5(n.whenFalse);case 226:return ky(n.operatorToken.kind)?!1:Z5(n.left)&&Z5(n.right);case 224:case 225:switch(n.operator){case 54:case 40:case 41:case 55:return!0}return!1;case 222:case 216:case 234:default:return!1}}function kve(n,a){return(a.flags&98304)!==0||WZ(n,a)}function vft(){let n=e3(a,c,u,_,g,T);return(_e,je)=>{let mt=n(_e,je);return R.assertIsDefined(mt),mt};function a(_e,je,mt){return je?(je.stackIndex++,je.skip=!1,V(je,void 0),ye(je,void 0)):je={checkMode:mt,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},ir(_e)&&AI(_e)?(je.skip=!0,ye(je,po(_e.right,mt)),je):(bft(_e),_e.operatorToken.kind===64&&(_e.left.kind===210||_e.left.kind===209)&&(je.skip=!0,ye(je,ZA(_e.left,po(_e.right,mt),mt,_e.right.kind===110))),je)}function c(_e,je,mt){if(!je.skip)return M(je,_e)}function u(_e,je,mt){if(!je.skip){let At=te(je);R.assertIsDefined(At),V(je,At),ye(je,void 0);let rn=_e.kind;if(Z2(rn)){let sn=mt.parent;for(;sn.kind===217||ek(sn);)sn=sn.parent;(rn===56||LT(sn))&&Kve(mt.left,At,LT(sn)?sn.thenStatement:void 0),Jve(At,mt.left)}}}function _(_e,je,mt){if(!je.skip)return M(je,_e)}function g(_e,je){let mt;if(je.skip)mt=te(je);else{let At=W(je);R.assertIsDefined(At);let rn=te(je);R.assertIsDefined(rn),mt=WFe(_e.left,_e.operatorToken,_e.right,At,rn,je.checkMode,_e)}return je.skip=!1,V(je,void 0),ye(je,void 0),je.stackIndex--,mt}function T(_e,je,mt){return ye(_e,je),_e}function M(_e,je){if(ur(je))return je;ye(_e,po(je,_e.checkMode))}function W(_e){return _e.typeStack[_e.stackIndex]}function V(_e,je){_e.typeStack[_e.stackIndex]=je}function te(_e){return _e.typeStack[_e.stackIndex+1]}function ye(_e,je){_e.typeStack[_e.stackIndex+1]=je}}function bft(n){let{left:a,operatorToken:c,right:u}=n;c.kind===61&&(ur(a)&&(a.operatorToken.kind===57||a.operatorToken.kind===56)&&yn(a,f._0_and_1_operations_cannot_be_mixed_without_parentheses,ca(a.operatorToken.kind),ca(c.kind)),ur(u)&&(u.operatorToken.kind===57||u.operatorToken.kind===56)&&yn(u,f._0_and_1_operations_cannot_be_mixed_without_parentheses,ca(u.operatorToken.kind),ca(c.kind)))}function Eft(n,a,c,u,_){let g=a.kind;if(g===64&&(n.kind===210||n.kind===209))return ZA(n,po(c,u),u,c.kind===110);let T;Z2(g)?T=rL(n,u):T=po(n,u);let M=po(c,u);return WFe(n,a,c,T,M,u,_)}function WFe(n,a,c,u,_,g,T){let M=a.kind;switch(M){case 42:case 43:case 67:case 68:case 44:case 69:case 45:case 70:case 41:case 66:case 48:case 71:case 49:case 72:case 50:case 73:case 52:case 75:case 53:case 79:case 51:case 74:if(u===ho||_===ho)return ho;u=X_(u,n),_=X_(_,c);let an;if(u.flags&528&&_.flags&528&&(an=_e(a.kind))!==void 0)return Ve(T||a,f.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,ca(a.kind),ca(an)),It;{let Yn=Lee(n,u,f.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),jn=Lee(c,_,f.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),$n;if(Td(u,3)&&Td(_,3)||!(Rl(u,2112)||Rl(_,2112)))$n=It;else if(W(u,_)){switch(M){case 50:case 73:rn();break;case 43:case 68:ce<3&&Ve(T,f.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}$n=Ct}else rn(W),$n=pt;return Yn&&jn&&je($n),$n}case 40:case 65:if(u===ho||_===ho)return ho;!Td(u,402653316)&&!Td(_,402653316)&&(u=X_(u,n),_=X_(_,c));let On;return Td(u,296,!0)&&Td(_,296,!0)?On=It:Td(u,2112,!0)&&Td(_,2112,!0)?On=Ct:Td(u,402653316,!0)||Td(_,402653316,!0)?On=Ne:(xt(u)||xt(_))&&(On=Ut(u)||Ut(_)?pt:G),On&&!ye(M)?On:On?(M===65&&je(On),On):(rn((jn,$n)=>Td(jn,402655727)&&Td($n,402655727)),G);case 30:case 32:case 33:case 34:return ye(M)&&(u=dye(X_(u,n)),_=dye(X_(_,c)),At((Yn,jn)=>{if(xt(Yn)||xt(jn))return!0;let $n=ga(Yn,$l),xo=ga(jn,$l);return $n&&xo||!$n&&!xo&&m5(Yn,jn)})),gi;case 35:case 36:case 37:case 38:if(!(g&&g&64)){if((RV(n)||RV(c))&&(!ir(n)||M===37||M===38)){let Yn=M===35||M===37;Ve(T,f.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,Yn?"false":"true")}nr(T,M,n,c),At((Yn,jn)=>kve(Yn,jn)||kve(jn,Yn))}return gi;case 104:return fft(n,c,u,_,g);case 103:return _ft(n,c,u,_);case 56:case 77:{let Yn=dm(u,4194304)?ti([ict(J?u:fy(_)),_]):u;return M===77&&je(_),Yn}case 57:case 76:{let Yn=dm(u,8388608)?ti([my(h8e(u)),_],2):u;return M===76&&je(_),Yn}case 61:case 78:{let Yn=dm(u,262144)?ti([my(u),_],2):u;return M===78&&je(_),Yn}case 64:let Ln=ur(n.parent)?zl(n.parent):0;return V(Ln,_),mt(Ln)?((!(_.flags&524288)||Ln!==2&&Ln!==6&&!py(_)&&!Pye(_)&&!(kr(_)&1))&&je(_),u):(je(_),_);case 28:if(!B.allowUnreachableCode&&Z5(n)&&!te(n.parent)){let Yn=Gn(n),jn=Yn.text,$n=Pa(jn,n.pos);Yn.parseDiagnostics.some(vo=>vo.code!==f.JSX_expressions_must_have_one_parent_element.code?!1:_V(vo,$n))||Ve(n,f.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return _;default:return R.fail()}function W(an,On){return Td(an,2112)&&Td(On,2112)}function V(an,On){if(an===2)for(let Ln of Pb(On)){let Yn=sr(Ln);if(Yn.symbol&&Yn.symbol.flags&32){let jn=Ln.escapedName,$n=hl(Ln.valueDeclaration,jn,788968,void 0,jn,!1);$n?.declarations&&$n.declarations.some(zT)&&(am($n,f.Duplicate_identifier_0,Vi(jn),Ln),am(Ln,f.Duplicate_identifier_0,Vi(jn),$n))}}}function te(an){return an.parent.kind===217&&mp(an.left)&&an.left.text==="0"&&(ra(an.parent.parent)&&an.parent.parent.expression===an.parent||an.parent.parent.kind===215)&&(Ps(an.right)||Fe(an.right)&&an.right.escapedText==="eval")}function ye(an){let On=$5(u,12288)?n:$5(_,12288)?c:void 0;return On?(Ve(On,f.The_0_operator_cannot_be_applied_to_type_symbol,ca(an)),!1):!0}function _e(an){switch(an){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function je(an){ky(M)&&r(On);function On(){let Ln=u;if(PP(a.kind)&&n.kind===211&&(Ln=bee(n,void 0,!0)),V8(n,f.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,f.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let Yn;if(Ie&&wr(n)&&Rl(an,32768)){let jn=Ue(Ad(n.expression),n.name.escapedText);zZ(an,jn)&&(Yn=f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}Fb(an,Ln,n,c,Yn)}}}function mt(an){var On;switch(an){case 2:return!0;case 1:case 5:case 6:case 3:case 4:let Ln=ff(n),Yn=AI(c);return!!Yn&&La(Yn)&&!!((On=Ln?.exports)!=null&&On.size);default:return!1}}function At(an){return an(u,_)?!1:(rn(an),!0)}function rn(an){let On=!1,Ln=T||a;if(an){let vo=fv(u),Wo=fv(_);On=!(vo===u&&Wo===_)&&!!(vo&&Wo)&&an(vo,Wo)}let Yn=u,jn=_;!On&&an&&([Yn,jn]=Sft(u,_,an));let[$n,xo]=tx(Yn,jn);sn(Ln,On,$n,xo)||zE(Ln,On,f.Operator_0_cannot_be_applied_to_types_1_and_2,ca(a.kind),$n,xo)}function sn(an,On,Ln,Yn){switch(a.kind){case 37:case 35:case 38:case 36:return zE(an,On,f.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,Ln,Yn);default:return}}function nr(an,On,Ln,Yn){let jn=Mn(ms(Ln)),$n=Mn(ms(Yn));if(jn||$n){let xo=Ve(an,f.This_condition_will_always_return_0,ca(On===37||On===35?97:112));if(jn&&$n)return;let vo=On===38||On===36?ca(54):"",Wo=jn?Yn:Ln,fo=ms(Wo);Ma(xo,Pr(Wo,f.Did_you_mean_0,`${vo}Number.isNaN(${Bl(fo)?up(fo):"..."})`))}}function Mn(an){if(Fe(an)&&an.escapedText==="NaN"){let On=dst();return!!On&&On===Wm(an)}return!1}}function Sft(n,a,c){let u=n,_=a,g=fy(n),T=fy(a);return c(g,T)||(u=g,_=T),[u,_]}function Tft(n){r(_e);let a=Wp(n);if(!a)return G;let c=Bc(a);if(!(c&1))return G;let u=(c&2)!==0;n.asteriskToken&&(u&&ce<99&&xc(n,26624),!u&&ce<2&&B.downlevelIteration&&xc(n,256));let _=aC(a);_&&_.flags&1048576&&(_=cc(_,je=>Wve(je,c,void 0)));let g=_&&I6e(_,u),T=g&&g.yieldType||G,M=g&&g.nextType||G,W=u?eI(M)||G:M,V=n.expression?po(n.expression):Pt,te=RFe(n,V,W,u);if(_&&te&&Fb(te,T,n.expression||n,n.expression),n.asteriskToken)return Xve(u?19:17,1,V,n.expression)||G;if(_)return US(2,_,u)||G;let ye=uWe(2,a);return ye||(ye=G,r(()=>{if(fe&&!Poe(n)){let je=Ku(n,void 0);(!je||xt(je))&&Ve(n,f.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),ye;function _e(){n.flags&16384||fd(n,f.A_yield_expression_is_only_allowed_in_a_generator_body),Uye(n)&&Ve(n,f.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function Aft(n,a){let c=rL(n.condition,a);Kve(n.condition,c,n.whenTrue);let u=po(n.whenTrue,a),_=po(n.whenFalse,a);return ti([u,_],2)}function FFe(n){let a=n.parent;return Wu(a)&&FFe(a)||qs(a)&&a.argumentExpression===n}function Ift(n){let a=[n.head.text],c=[];for(let _ of n.templateSpans){let g=po(_.expression);$5(g,12288)&&Ve(_.expression,f.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),a.push(_.literal.text),c.push(ga(g,Po)?g:Ne)}if(QM(n)||FFe(n)||Fm(Ku(n,void 0)||un,xft))return FA(a,c);let u=n.parent.kind!==215&&B6e(n);return u?cx(Hu(u)):Ne}function xft(n){return!!(n.flags&134217856||n.flags&58982400&&Rl(Fd(n)||un,402653316))}function Rft(n){return X0(n)&&!OT(n.parent)?n.parent.parent:n}function vC(n,a,c,u){let _=Rft(n);L5(_,a,!1),Jdt(_,c);let g=po(n,u|1|(c?2:0));c&&c.intraExpressionInferenceSites&&(c.intraExpressionInferenceSites=void 0);let T=Rl(g,2944)&&Oee(g,_ee(a,n,void 0))?yu(g):g;return qdt(),W8(),T}function tc(n,a){if(a)return po(n,a);let c=Zr(n);if(!c.resolvedType){let u=B_,_=_n;B_=uf,_n=void 0,c.resolvedType=po(n,a),_n=_,B_=u}return c.resolvedType}function zFe(n){return n=ms(n,!0),n.kind===216||n.kind===234||OR(n)}function $M(n,a,c){let u=C2(n);if(ir(n)){let g=V6(n);if(g)return Tve(u,g,a)}let _=Ove(u)||(c?vC(u,c,void 0,a||0):tc(u,a));return To(n)&&n.name.kind===207&&Oa(_)&&!_.target.hasRestElement&&cv(_)Oee(n,u))}if(a.flags&58982400){let c=Fd(a)||un;return Rl(c,4)&&Rl(n,128)||Rl(c,8)&&Rl(n,256)||Rl(c,64)&&Rl(n,2048)||Rl(c,4096)&&Rl(n,8192)||Oee(n,c)}return!!(a.flags&406847616&&Rl(n,128)||a.flags&256&&Rl(n,256)||a.flags&2048&&Rl(n,2048)||a.flags&512&&Rl(n,512)||a.flags&8192&&Rl(n,8192))}return!1}function QM(n){let a=n.parent;return cT(a)&&Cg(a.type)||OR(a)&&Cg(Y4(a))||Sve(n)&&wA(Ku(n,0))||(Wu(a)||pu(a)||qm(a))&&QM(a)||(mc(a)||Zu(a)||uP(a))&&QM(a.parent)}function ZM(n,a,c){let u=po(n,a,c);return QM(n)||iie(n)?yu(u):zFe(n)?u:uye(u,_ee(Ku(n,void 0),n,void 0))}function BFe(n,a){return n.name.kind===167&&Eg(n.name),ZM(n.initializer,a)}function GFe(n,a){f4e(n),n.name.kind===167&&Eg(n.name);let c=MFe(n,a);return VFe(n,c,a)}function VFe(n,a,c){if(c&&c&10){let u=z8(a,0,!0),_=z8(a,1,!0),g=u||_;if(g&&g.typeParameters){let T=p0(n,2);if(T){let M=z8(my(T),u?0:1,!1);if(M&&!M.typeParameters){if(c&8)return jFe(n,c),tn;let W=GS(n),V=W.signature&&us(W.signature),te=V&&YWe(V);if(te&&!te.typeParameters&&!oo(W.inferences,bC)){let ye=Mft(W,g.typeParameters),_e=fge(g,ye),je=mn(W.inferences,mt=>yye(mt.typeParameter));if(mye(_e,M,(mt,At)=>{_y(je,mt,At,0,!0)}),gt(je,bC)&&(_ye(_e,M,(mt,At)=>{_y(je,mt,At)}),!Nft(W.inferences,je)))return Pft(W.inferences,je),W.inferredTypeParameters=bo(W.inferredTypeParameters,ye),WA(_e)}return WA($We(g,M,W))}}}}return a}function jFe(n,a){if(a&2){let c=GS(n);c.flags|=4}}function bC(n){return!!(n.candidates||n.contraCandidates)}function Cft(n){return!!(n.candidates||n.contraCandidates||Rwe(n.typeParameter))}function Nft(n,a){for(let c=0;cc.symbol.escapedName===a)}function Lft(n,a){let c=a.length;for(;c>1&&a.charCodeAt(c-1)>=48&&a.charCodeAt(c-1)<=57;)c--;let u=a.slice(0,c);for(let _=1;;_++){let g=u+_;if(!wve(n,g))return g}}function UFe(n){let a=QA(n);if(a&&!a.typeParameters)return us(a)}function kft(n){let a=po(n.expression),c=N8(a,n.expression),u=UFe(a);return u&&XZ(u,n,c!==a)}function Ad(n){let a=Ove(n);if(a)return a;if(n.flags&268435456&&_n){let _=_n[is(n)];if(_)return _}let c=qe,u=po(n,64);if(qe!==c){let _=_n||(_n=[]);_[is(n)]=u,Noe(n,n.flags|268435456)}return u}function Ove(n){let a=ms(n,!0);if(OR(a)){let c=Y4(a);if(!Cg(c))return Ti(c)}if(a=ms(n),qv(a)){let c=Ove(a.expression);return c?eI(c):void 0}if(ra(a)&&a.expression.kind!==108&&!Eu(a,!0)&&!dFe(a))return oT(a)?kft(a):UFe(hC(a.expression));if(cT(a)&&!Cg(a.type))return Ti(a.type);if(E0(n)||sN(n))return po(n)}function eG(n){let a=Zr(n);if(a.contextFreeType)return a.contextFreeType;L5(n,G,!1);let c=a.contextFreeType=po(n,4);return W8(),c}function po(n,a,c){var u,_;(u=rr)==null||u.push(rr.Phase.Check,"checkExpression",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});let g=D;D=n,S=0;let T=Wft(n,a,c),M=VFe(n,T,a);return kee(M)&&wft(n,M),D=g,(_=rr)==null||_.pop(),M}function wft(n,a){n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n||(n.kind===80||n.kind===166)&&Yee(n)||n.parent.kind===186&&n.parent.exprName===n||n.parent.kind===281||Ve(n,f.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),em(B)&&(R.assert(!!(a.symbol.flags&128)),a.symbol.valueDeclaration.flags&33554432&&!mE(n)&&Ve(n,f.Cannot_access_ambient_const_enums_when_0_is_enabled,Je))}function Oft(n,a){if(kp(n)){if(hU(n))return Tve(n.expression,gU(n),a);if(OR(n))return mFe(n,a)}return po(n.expression,a)}function Wft(n,a,c){let u=n.kind;if(i)switch(u){case 231:case 218:case 219:i.throwIfCancellationRequested()}switch(u){case 80:return hdt(n,a);case 81:return kut(n);case 110:return P5(n);case 108:return Vye(n);case 106:return We;case 15:case 11:return Tye(n)?He:cx(Hu(n.text));case 9:return hbe(n),cx(u_(+n.text));case 10:return zgt(n),cx(PZ({negative:!1,base10Value:HN(n.text)}));case 112:return wn;case 97:return Kt;case 228:return Ift(n);case 14:return _l;case 209:return vWe(n,a,c);case 210:return put(n,a);case 211:return bee(n,a);case 166:return wWe(n,a);case 212:return Yut(n,a);case 213:if(n.expression.kind===102)return Dpt(n);case 214:return Rpt(n,a);case 215:return Cpt(n);case 217:return Oft(n,a);case 231:return A_t(n);case 218:case 219:return MFe(n,a);case 221:return lft(n);case 216:case 234:return Npt(n,a);case 235:return Lpt(n);case 233:return hFe(n);case 238:return kpt(n);case 236:return wpt(n);case 220:return aft(n);case 222:return cft(n);case 223:return dft(n);case 224:return uft(n);case 225:return pft(n);case 226:return De(n,a);case 227:return Aft(n,a);case 230:return aut(n,a);case 232:return Pt;case 229:return Tft(n);case 237:return sut(n);case 294:return Rut(n,a);case 284:return hut(n,a);case 285:return mut(n,a);case 288:return gut(n);case 292:return vut(n,a);case 286:R.fail("Shouldn't ever directly check a JsxOpeningElement")}return pt}function HFe(n){Tg(n),n.expression&&fd(n.expression,f.Type_expected),xa(n.constraint),xa(n.default);let a=MA(Sr(n));Fd(a),gat(a)||Ve(n.default,f.Type_parameter_0_has_a_circular_default,Vn(a));let c=Nu(a),u=OA(a);c&&u&&Zd(u,Up(io(c,WS(a,u)),u),n.default,f.Type_0_does_not_satisfy_the_constraint_1),px(n),r(()=>iL(n.name,f.Type_parameter_name_cannot_be_0))}function Fft(n){var a,c;if(fu(n.parent)||di(n.parent)||Tm(n.parent)){let u=MA(Sr(n)),_=aye(u)&24576;if(_){let g=Sr(n.parent);if(Tm(n.parent)&&!(kr(Ys(g))&52))Ve(n,f.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(_===8192||_===16384){(a=rr)==null||a.push(rr.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:gu(Ys(g)),id:gu(u)});let T=g5(g,u,_===16384?$:de),M=g5(g,u,_===16384?de:$),W=u;w=u,Zd(T,M,n,f.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),w=W,(c=rr)==null||c.pop()}}}}function KFe(n){Tg(n),oG(n);let a=Wp(n);Qr(n,31)&&(a.kind===176&&Hf(a.body)||Ve(n,f.A_parameter_property_is_only_allowed_in_a_constructor_implementation),a.kind===176&&Fe(n.name)&&n.name.escapedText==="constructor"&&Ve(n.name,f.constructor_cannot_be_used_as_a_parameter_property_name)),!n.initializer&&$N(n)&&$o(n.name)&&a.body&&Ve(n,f.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),n.name&&Fe(n.name)&&(n.name.escapedText==="this"||n.name.escapedText==="new")&&(a.parameters.indexOf(n)!==0&&Ve(n,f.A_0_parameter_must_be_the_first_parameter,n.name.escapedText),(a.kind===176||a.kind===180||a.kind===185)&&Ve(n,f.A_constructor_cannot_have_a_this_parameter),a.kind===219&&Ve(n,f.An_arrow_function_cannot_have_a_this_parameter),(a.kind===177||a.kind===178)&&Ve(n,f.get_and_set_accessors_cannot_declare_this_parameters)),n.dotDotDotToken&&!$o(n.name)&&!ga(d_(sr(n.symbol)),cf)&&Ve(n,f.A_rest_parameter_must_be_of_an_array_type)}function zft(n){let a=Bft(n);if(!a){Ve(n,f.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}let c=lm(a),u=Ff(c);if(!u)return;xa(n.type);let{parameterName:_}=n;if(u.kind===0||u.kind===2)MZ(_);else if(u.parameterIndex>=0){if(Jd(c)&&u.parameterIndex===c.parameters.length-1)Ve(_,f.A_type_predicate_cannot_reference_a_rest_parameter);else if(u.type){let g=()=>Fo(void 0,f.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);Zd(u.type,sr(c.parameters[u.parameterIndex]),n.type,void 0,g)}}else if(_){let g=!1;for(let{name:T}of a.parameters)if($o(T)&&JFe(T,_,u.parameterName)){g=!0;break}g||Ve(n.parameterName,f.Cannot_find_parameter_0,u.parameterName)}}function Bft(n){switch(n.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:let a=n.parent;if(n===a.type)return a}}function JFe(n,a,c){for(let u of n.elements){if(Gc(u))continue;let _=u.name;if(_.kind===80&&_.escapedText===c)return Ve(a,f.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,c),!0;if((_.kind===207||_.kind===206)&&JFe(_,a,c))return!0}}function j8(n){n.kind===181?fgt(n):(n.kind===184||n.kind===262||n.kind===185||n.kind===179||n.kind===176||n.kind===180)&&nte(n);let a=Bc(n);a&4||((a&3)===3&&ce<99&&xc(n,6144),(a&3)===2&&ce<4&&xc(n,64),a&3&&ce<2&&xc(n,128)),lG(Dv(n)),E_t(n),gn(n.parameters,KFe),n.type&&xa(n.type),r(c);function c(){Fmt(n);let u=$f(n),_=u;if(ir(n)){let g=nE(n);if(g&&g.typeExpression&&If(g.typeExpression.type)){let T=QA(Ti(g.typeExpression));T&&T.declaration&&(u=$f(T.declaration),_=g.typeExpression.type)}}if(fe&&!u)switch(n.kind){case 180:Ve(n,f.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:Ve(n,f.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(u&&_){let g=Bc(n);if((g&5)===1){let T=Ti(u);T===er?Ve(_,f.A_generator_cannot_have_a_void_type_annotation):Wve(T,g,_)}else(g&3)===2&&gmt(n,u,_)}n.kind!==181&&n.kind!==324&&jb(n)}}function Wve(n,a,c){let u=US(0,n,(a&2)!==0)||G,_=US(1,n,(a&2)!==0)||u,g=US(2,n,(a&2)!==0)||un,T=xFe(u,_,g,!!(a&2));return Zd(T,n,c)}function Gft(n){let a=new Map,c=new Map,u=new Map;for(let g of n.members)if(g.kind===176)for(let T of g.parameters)dp(T,g)&&!$o(T.name)&&_(a,T.name,T.name.escapedText,3);else{let T=na(g),M=g.name;if(!M)continue;let W=Ki(M),V=W&&T?16:0,te=W?u:T?c:a,ye=M&&gbe(M);if(ye)switch(g.kind){case 177:_(te,M,ye,1|V);break;case 178:_(te,M,ye,2|V);break;case 172:_(te,M,ye,3|V);break;case 174:_(te,M,ye,8|V);break}}function _(g,T,M,W){let V=g.get(M);if(V)if((V&16)!==(W&16))Ve(T,f.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,uc(T));else{let te=!!(V&8),ye=!!(W&8);te||ye?te!==ye&&Ve(T,f.Duplicate_identifier_0,uc(T)):V&W&-17?Ve(T,f.Duplicate_identifier_0,uc(T)):g.set(M,V|W)}else g.set(M,W)}}function Vft(n){for(let a of n.members){let c=a.name;if(na(a)&&c){let _=gbe(c);switch(_){case"name":case"length":case"caller":case"arguments":if(me)break;case"prototype":let g=f.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,T=XE(Sr(n));Ve(c,g,_,T);break}}}}function qFe(n){let a=new Map;for(let c of n.members)if(c.kind===171){let u,_=c.name;switch(_.kind){case 11:case 9:u=_.text;break;case 80:u=yr(_);break;default:continue}a.get(u)?(Ve(No(c.symbol.valueDeclaration),f.Duplicate_identifier_0,u),Ve(c.name,f.Duplicate_identifier_0,u)):a.set(u,!0)}}function Fve(n){if(n.kind===264){let c=Sr(n);if(c.declarations&&c.declarations.length>0&&c.declarations[0]!==n)return}let a=mge(Sr(n));if(a?.declarations){let c=new Map;for(let u of a.declarations)u.parameters.length===1&&u.parameters[0].type&&qA(Ti(u.parameters[0].type),_=>{let g=c.get(gu(_));g?g.declarations.push(u):c.set(gu(_),{type:_,declarations:[u]})});c.forEach(u=>{if(u.declarations.length>1)for(let _ of u.declarations)Ve(_,f.Duplicate_index_signature_for_type_0,Vn(u.type))})}}function XFe(n){!Tg(n)&&!wgt(n)&&rte(n.name),oG(n),zve(n),Qr(n,64)&&n.kind===172&&n.initializer&&Ve(n,f.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,As(n.name))}function jft(n){return Ki(n.name)&&Ve(n,f.Private_identifiers_are_not_allowed_outside_class_bodies),XFe(n)}function Uft(n){f4e(n)||rte(n.name),Ul(n)&&n.asteriskToken&&Fe(n.name)&&yr(n.name)==="constructor"&&Ve(n.name,f.Class_constructor_may_not_be_a_generator),l6e(n),Qr(n,64)&&n.kind===174&&n.body&&Ve(n,f.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,As(n.name)),Ki(n.name)&&!id(n)&&Ve(n,f.Private_identifiers_are_not_allowed_outside_class_bodies),zve(n)}function zve(n){if(Ki(n.name)&&ce<99){for(let a=ph(n);a;a=ph(a))Zr(a).flags|=1048576;if($c(n.parent)){let a=Fye(n.parent);a&&(Zr(n.name).flags|=32768,Zr(a).flags|=4096)}}}function Hft(n){Tg(n),Bo(n,xa)}function Kft(n){j8(n),Lgt(n)||kgt(n),xa(n.body);let a=Sr(n),c=cl(a,n.kind);if(n===c&&zee(a),Fl(n.body))return;r(_);return;function u(g){return au(g)?!0:g.kind===172&&!na(g)&&!!g.initializer}function _(){let g=n.parent;if(P0(g)){zye(n.parent,g);let T=Bye(g),M=rWe(n.body);if(M){if(T&&Ve(M,f.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!ge&&(gt(n.parent.members,u)||gt(n.parameters,V=>Qr(V,31))))if(!Jft(M,n.body))Ve(M,f.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers);else{let V;for(let te of n.body.statements){if(Qc(te)&&mT(Yl(te.expression))){V=te;break}if(YFe(te))break}V===void 0&&Ve(n,f.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}}else T||Ve(n,f.Constructors_for_derived_classes_must_contain_a_super_call)}}}function Jft(n,a){let c=My(n.parent);return Qc(c)&&c.parent===a}function YFe(n){return n.kind===108||n.kind===110?!0:uie(n)?!1:!!Bo(n,YFe)}function $Fe(n){Fe(n.name)&&yr(n.name)==="constructor"&&di(n.parent)&&Ve(n.name,f.Class_constructor_may_not_be_an_accessor),r(a),xa(n.body),zve(n);function a(){if(!nte(n)&&!Sgt(n)&&rte(n.name),nG(n),j8(n),n.kind===177&&!(n.flags&33554432)&&Hf(n.body)&&n.flags&512&&(n.flags&1024||Ve(n.name,f.A_get_accessor_must_return_a_value)),n.name.kind===167&&Eg(n.name),iC(n)){let u=Sr(n),_=cl(u,177),g=cl(u,178);if(_&&g&&!(TC(_)&1)){Zr(_).flags|=1;let T=cu(_),M=cu(g);(T&64)!==(M&64)&&(Ve(_.name,f.Accessors_must_both_be_abstract_or_non_abstract),Ve(g.name,f.Accessors_must_both_be_abstract_or_non_abstract)),(T&4&&!(M&6)||T&2&&!(M&2))&&(Ve(_.name,f.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Ve(g.name,f.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}let c=ZE(Sr(n));n.kind===177&&Nve(n,c)}}function qft(n){nG(n)}function Xft(n,a,c){return n.typeArguments&&c{let u=Bve(n);u&&QFe(n,u)});let c=Zr(n).resolvedSymbol;c&>(c.declarations,u=>ER(u)&&!!(u.flags&536870912))&&nv(H5(n),c.declarations,c.escapedName)}}function $ft(n){let a=ri(n.parent,gF);if(!a)return;let c=Bve(a);if(!c)return;let u=Nu(c[a.typeArguments.indexOf(n)]);return u&&io(u,Np(c,Wee(a,c)))}function Qft(n){Ywe(n)}function Zft(n){gn(n.members,xa),r(a);function a(){let c=WOe(n);Kee(c,c.symbol),Fve(n),qFe(n)}}function emt(n){xa(n.elementType)}function tmt(n){let a=!1,c=!1;for(let u of n.elements){let _=Cge(u);if(_&8){let g=Ti(u.type);if(!pv(g)){Ve(u,f.A_rest_element_type_must_be_an_array_type);break}(Gf(g)||Oa(g)&&g.target.combinedFlags&4)&&(_|=4)}if(_&4){if(c){yn(u,f.A_rest_element_cannot_follow_another_rest_element);break}c=!0}else if(_&2){if(c){yn(u,f.An_optional_element_cannot_follow_a_rest_element);break}a=!0}else if(_&1&&a){yn(u,f.A_required_element_cannot_follow_an_optional_element);break}}gn(n.elements,xa),Ti(n)}function nmt(n){gn(n.types,xa),Ti(n)}function e6e(n,a){if(!(n.flags&8388608))return n;let c=n.objectType,u=n.indexType,_=Uu(c)&&_Z(c)===2?EOe(c,0):J_(c,0),g=!!bg(c,It);if(ap(u,T=>ga(T,_)||g&&ix(T,It)))return a.kind===212&&Qh(a)&&kr(c)&32&&wh(c)&1&&Ve(a,f.Index_signature_in_type_0_only_permits_reading,Vn(c)),n;if(BA(c)){let T=RZ(u,a);if(T){let M=qA(Pu(c),W=>_a(W,T));if(M&&Tf(M)&6)return Ve(a,f.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Vi(T)),pt}}return Ve(a,f.Type_0_cannot_be_used_to_index_type_1,Vn(u),Vn(c)),pt}function rmt(n){xa(n.objectType),xa(n.indexType),e6e(POe(n),n)}function imt(n){omt(n),xa(n.typeParameter),xa(n.nameType),xa(n.type),n.type||l0(n,G);let a=Gge(n),c=sv(a);if(c)Zd(c,ks,n.nameType);else{let u=gf(a);Zd(u,ks,kx(n.typeParameter))}}function omt(n){var a;if((a=n.members)!=null&&a.length)return yn(n.members[0],f.A_mapped_type_may_not_declare_properties_or_methods)}function amt(n){MZ(n)}function smt(n){Agt(n),xa(n.type)}function lmt(n){Bo(n,xa)}function cmt(n){Fn(n,c=>c.parent&&c.parent.kind===194&&c.parent.extendsType===c)||yn(n,f.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),xa(n.typeParameter);let a=Sr(n.typeParameter);if(a.declarations&&a.declarations.length>1){let c=qi(a);if(!c.typeParametersChecked){c.typeParametersChecked=!0;let u=MA(a),_=Lre(a,168);if(!C6e(_,[u],g=>[g])){let g=Si(a);for(let T of _)Ve(T.name,f.All_declarations_of_0_must_have_identical_constraints,g)}}}jb(n)}function dmt(n){for(let a of n.templateSpans){xa(a.type);let c=Ti(a.type);Zd(c,Po,a.type)}Ti(n)}function umt(n){xa(n.argument),n.attributes&&$R(n.attributes,yn),ZFe(n)}function pmt(n){n.dotDotDotToken&&n.questionToken&&yn(n,f.A_tuple_member_cannot_be_both_optional_and_rest),n.type.kind===190&&yn(n.type,f.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),n.type.kind===191&&yn(n.type,f.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),xa(n.type),Ti(n)}function tG(n){return(fp(n,2)||au(n))&&!!(n.flags&33554432)}function Fee(n,a){let c=ite(n);if(n.parent.kind!==264&&n.parent.kind!==263&&n.parent.kind!==231&&n.flags&33554432){let u=nj(n);u&&u.flags&128&&!(c&128)&&!(N_(n.parent)&&ql(n.parent.parent)&&E_(n.parent.parent))&&(c|=32),c|=128}return c&a}function zee(n){r(()=>fmt(n))}function fmt(n){function a(an,On){return On!==void 0&&On.parent===an[0].parent?On:an[0]}function c(an,On,Ln,Yn,jn){if((Yn^jn)!==0){let xo=Fee(a(an,On),Ln);gn(an,vo=>{let Wo=Fee(vo,Ln)^xo;Wo&32?Ve(No(vo),f.Overload_signatures_must_all_be_exported_or_non_exported):Wo&128?Ve(No(vo),f.Overload_signatures_must_all_be_ambient_or_non_ambient):Wo&6?Ve(No(vo)||vo,f.Overload_signatures_must_all_be_public_private_or_protected):Wo&64&&Ve(No(vo),f.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function u(an,On,Ln,Yn){if(Ln!==Yn){let jn=xI(a(an,On));gn(an,$n=>{xI($n)!==jn&&Ve(No($n),f.Overload_signatures_must_all_be_optional_or_required)})}}let _=230,g=0,T=_,M=!1,W=!0,V=!1,te,ye,_e,je=n.declarations,mt=(n.flags&16384)!==0;function At(an){if(an.name&&Fl(an.name))return;let On=!1,Ln=Bo(an.parent,jn=>{if(On)return jn;On=jn===an});if(Ln&&Ln.pos===an.end&&Ln.kind===an.kind){let jn=Ln.name||Ln,$n=Ln.name;if(an.name&&$n&&(Ki(an.name)&&Ki($n)&&an.name.escapedText===$n.escapedText||Ya(an.name)&&Ya($n)&&uy(Eg(an.name),Eg($n))||T_(an.name)&&T_($n)&&AN(an.name)===AN($n))){if((an.kind===174||an.kind===173)&&na(an)!==na(Ln)){let vo=na(an)?f.Function_overload_must_be_static:f.Function_overload_must_not_be_static;Ve(jn,vo)}return}if(Hf(Ln.body)){Ve(jn,f.Function_implementation_name_must_be_0,As(an.name));return}}let Yn=an.name||an;mt?Ve(Yn,f.Constructor_implementation_is_missing):Qr(an,64)?Ve(Yn,f.All_declarations_of_an_abstract_method_must_be_consecutive):Ve(Yn,f.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let rn=!1,sn=!1,nr=!1,Mn=[];if(je)for(let an of je){let On=an,Ln=On.flags&33554432,Yn=On.parent&&(On.parent.kind===264||On.parent.kind===187)||Ln;if(Yn&&(_e=void 0),(On.kind===263||On.kind===231)&&!Ln&&(nr=!0),On.kind===262||On.kind===174||On.kind===173||On.kind===176){Mn.push(On);let jn=Fee(On,_);g|=jn,T&=jn,M=M||xI(On),W=W&&xI(On);let $n=Hf(On.body);$n&&te?mt?sn=!0:rn=!0:_e?.parent===On.parent&&_e.end!==On.pos&&At(_e),$n?te||(te=On):V=!0,_e=On,Yn||(ye=On)}ir(an)&&Yo(an)&&an.jsDoc&&(V=Nn(vj(an))>0)}if(sn&&gn(Mn,an=>{Ve(an,f.Multiple_constructor_implementations_are_not_allowed)}),rn&&gn(Mn,an=>{Ve(No(an)||an,f.Duplicate_function_implementation)}),nr&&!mt&&n.flags&16&&je){let an=jr(je,On=>On.kind===263).map(On=>Pr(On,f.Consider_adding_a_declare_modifier_to_this_class));gn(je,On=>{let Ln=On.kind===263?f.Class_declaration_cannot_implement_overload_list_for_0:On.kind===262?f.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;Ln&&Ma(Ve(No(On)||On,Ln,yl(n)),...an)})}if(ye&&!ye.body&&!Qr(ye,64)&&!ye.questionToken&&At(ye),V&&(je&&(c(je,te,_,g,T),u(je,te,M,W)),te)){let an=MS(n),On=lm(te);for(let Ln of an)if(!Llt(On,Ln)){let Yn=Ln.declaration&&vE(Ln.declaration)?Ln.declaration.parent.tagName:Ln.declaration;Ma(Ve(Yn,f.This_overload_signature_is_not_compatible_with_its_implementation_signature),Pr(te,f.The_implementation_signature_is_declared_here));break}}}function U8(n){r(()=>mmt(n))}function mmt(n){let a=n.localSymbol;if(!a&&(a=Sr(n),!a.exportSymbol)||cl(a,n.kind)!==n)return;let c=0,u=0,_=0;for(let V of a.declarations){let te=W(V),ye=Fee(V,2080);ye&32?ye&2048?_|=te:c|=te:u|=te}let g=c|u,T=c&u,M=_&g;if(T||M)for(let V of a.declarations){let te=W(V),ye=No(V);te&M?Ve(ye,f.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,As(ye)):te&T&&Ve(ye,f.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,As(ye))}function W(V){let te=V;switch(te.kind){case 264:case 265:case 353:case 345:case 347:return 2;case 267:return Pd(te)||Gg(te)!==0?5:4;case 263:case 266:case 306:return 3;case 312:return 7;case 277:case 226:let ye=te,_e=Ll(ye)?ye.expression:ye.right;if(!Bl(_e))return 1;te=_e;case 271:case 274:case 273:let je=0,mt=Oc(Sr(te));return gn(mt.declarations,At=>{je|=W(At)}),je;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return R.failBadSyntaxKind(te)}}}function eL(n,a,c,...u){let _=H8(n,a);return _&&eI(_,a,c,...u)}function H8(n,a,c){if(xt(n))return;let u=n;if(u.promisedTypeOfPromise)return u.promisedTypeOfPromise;if(Cb(n,o5(!1)))return u.promisedTypeOfPromise=Us(n)[0];if(Q5(ly(n),402915324))return;let _=Ue(n,"then");if(xt(_))return;let g=_?Ko(_,0):Xe;if(g.length===0){a&&Ve(a,f.A_promise_must_have_a_then_method);return}let T,M;for(let te of g){let ye=r0(te);ye&&ye!==er&&!q_(n,ye,xh)?T=ye:M=Tn(M,te)}if(!M){R.assertIsDefined(T),c&&(c.value=T),a&&Ve(a,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Vn(n),Vn(T));return}let W=um(ti(mn(M,xve)),2097152);if(xt(W))return;let V=Ko(W,0);if(V.length===0){a&&Ve(a,f.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return u.promisedTypeOfPromise=ti(mn(V,xve),2)}function K8(n,a,c,u,..._){return(a?eI(n,c,u,..._):fv(n,c,u,..._))||pt}function t6e(n){if(Q5(ly(n),402915324))return!1;let a=Ue(n,"then");return!!a&&Ko(um(a,2097152),0).length>0}function Bee(n){var a;if(n.flags&16777216){let c=Dge(!1);return!!c&&n.aliasSymbol===c&&((a=n.aliasTypeArguments)==null?void 0:a.length)===1}return!1}function tL(n){return n.flags&1048576?ll(n,tL):Bee(n)?n.aliasTypeArguments[0]:n}function n6e(n){if(xt(n)||Bee(n))return!1;if(BA(n)){let a=Fd(n);if(a?a.flags&3||py(a)||Fm(a,t6e):Rl(n,8650752))return!0}return!1}function _mt(n){let a=Dge(!0);if(a)return lC(a,[tL(n)])}function hmt(n){if(n6e(n)){let a=_mt(n);if(a)return a}return R.assert(Bee(n)||H8(n)===void 0,"type provided should not be a non-generic 'promise'-like."),n}function eI(n,a,c,...u){let _=fv(n,a,c,...u);return _&&hmt(_)}function fv(n,a,c,...u){if(xt(n)||Bee(n))return n;let _=n;if(_.awaitedTypeOfType)return _.awaitedTypeOfType;if(n.flags&1048576){if(OE.lastIndexOf(n.id)>=0){a&&Ve(a,f.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}let M=a?V=>fv(V,a,c,...u):fv;OE.push(n.id);let W=ll(n,M);return OE.pop(),_.awaitedTypeOfType=W}if(n6e(n))return _.awaitedTypeOfType=n;let g={value:void 0},T=H8(n,void 0,g);if(T){if(n.id===T.id||OE.lastIndexOf(T.id)>=0){a&&Ve(a,f.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}OE.push(n.id);let M=fv(T,a,c,...u);return OE.pop(),M?_.awaitedTypeOfType=M:void 0}if(t6e(n)){if(a){R.assertIsDefined(c);let M;g.value&&(M=Fo(M,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Vn(n),Vn(g.value))),M=Fo(M,c,...u),Qa.add(Pg(Gn(a),a,M))}return}return _.awaitedTypeOfType=n}function gmt(n,a,c){let u=Ti(a);if(ce>=2){if(Ut(u))return;let g=o5(!0);if(g!==Mo&&!Cb(u,g)){_(f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,a,c,Vn(fv(u)||er));return}}else{if(vmt(a),Ut(u))return;let g=I2(a);if(g===void 0){_(f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,Vn(u));return}let T=Vs(g,111551,!0),M=T?sr(T):pt;if(Ut(M)){g.kind===80&&g.escapedText==="Promise"&&av(u)===o5(!1)?Ve(c,f.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):_(f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,up(g));return}let W=jat(!0);if(W===Na){_(f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,up(g));return}let V=f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!Zd(M,W,c,V,()=>a===c?void 0:Fo(void 0,f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;let ye=g&&Fp(g),_e=ju(n.locals,ye.escapedText,111551);if(_e){Ve(_e.valueDeclaration,f.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,yr(ye),up(g));return}}K8(u,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);function _(g,T,M,W){if(T===M)Ve(M,g,W);else{let V=Ve(M,f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);Ma(V,Pr(T,g,W))}}}function ymt(n){let a=yC(n);Pee(a,n);let c=us(a);if(c.flags&1)return;let u=Cve(n);if(!u?.resolvedReturnType)return;let _,g=u.resolvedReturnType;switch(n.parent.kind){case 263:case 231:_=f.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!ee){_=f.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:_=f.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:_=f.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return R.failBadSyntaxKind(n.parent)}Zd(c,g,n.expression,_)}function J8(n,a,c,u,_,g=c.length,T=0){let M=L.createFunctionTypeNode(void 0,Xe,L.createKeywordTypeNode(133));return vg(M,n,a,c,u,_,g,T)}function Vve(n,a,c,u,_,g,T){let M=J8(n,a,c,u,_,g,T);return WA(M)}function r6e(n){return Vve(void 0,void 0,Xe,n)}function i6e(n){let a=n_("value",n);return Vve(void 0,void 0,[a],er)}function vmt(n){o6e(n&&I2(n),!1)}function o6e(n,a){if(!n)return;let c=Fp(n),u=(n.kind===80?788968:1920)|2097152,_=hl(c,c.escapedText,u,void 0,void 0,!0);if(_&&_.flags&2097152){if(ft&&wm(_)&&!$8(Oc(_))&&!Lf(_))gb(_);else if(a&&em(B)&&Md(B)>=5&&!wm(_)&&!gt(_.declarations,oE)){let g=Ve(n,f.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),T=Vr(_.declarations||Xe,fb);T&&Ma(g,Pr(T,f._0_was_imported_here,yr(c)))}}}function EC(n){let a=jve(n);a&&Xu(a)&&o6e(a,!0)}function jve(n){if(n)switch(n.kind){case 193:case 192:return a6e(n.types);case 194:return a6e([n.trueType,n.falseType]);case 196:case 202:return jve(n.type);case 183:return n.typeName}}function a6e(n){let a;for(let c of n){for(;c.kind===196||c.kind===202;)c=c.type;if(c.kind===146||!J&&(c.kind===201&&c.literal.kind===106||c.kind===157))continue;let u=jve(c);if(!u)return;if(a){if(!Fe(a)||!Fe(u)||a.escapedText!==u.escapedText)return}else a=u}return a}function Gee(n){let a=hd(n);return Jh(n)?aj(a):a}function nG(n){if(!GT(n)||!bf(n)||!n.modifiers||!GF(ee,n,n.parent,n.parent.parent))return;let a=Vr(n.modifiers,yd);if(a){if(ee?(xc(a,8),n.kind===169&&xc(a,32)):ce<99&&(xc(a,8),Sc(n)?n.name?N6e(n)&&xc(a,8388608):xc(a,8388608):$c(n)||(Ki(n.name)&&(Ul(n)||Nv(n)||Lu(n))&&xc(a,8388608),Ya(n.name)&&xc(a,16777216))),B.emitDecoratorMetadata)switch(xc(a,16),n.kind){case 263:let c=eg(n);if(c)for(let T of c.parameters)EC(Gee(T));break;case 177:case 178:let u=n.kind===177?178:177,_=cl(Sr(n),u);EC(Om(n)||_&&Om(_));break;case 174:for(let T of n.parameters)EC(Gee(T));EC($f(n));break;case 172:EC(hd(n));break;case 169:EC(Gee(n));let g=n.parent;for(let T of g.parameters)EC(Gee(T));EC($f(g));break}for(let c of n.modifiers)yd(c)&&ymt(c)}}function bmt(n){r(a);function a(){l6e(n),pbe(n),nL(n,n.name)}}function Emt(n){n.typeExpression||Ve(n.name,f.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),n.name&&iL(n.name,f.Type_alias_name_cannot_be_0),xa(n.typeExpression),lG(Dv(n))}function Smt(n){xa(n.constraint);for(let a of n.typeParameters)xa(a)}function Tmt(n){xa(n.typeExpression)}function Amt(n){xa(n.typeExpression);let a=dE(n);if(a){let c=rF(a,J4);if(Nn(c)>1)for(let u=1;u0),c.length>1&&Ve(c[1],f.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);let u=s6e(n.class.expression),_=P0(a);if(_){let g=s6e(_.expression);g&&u.escapedText!==g.escapedText&&Ve(u,f.JSDoc_0_1_does_not_match_the_extends_2_clause,yr(n.tagName),yr(u),yr(g))}}function Mmt(n){let a=vT(n);a&&au(a)&&Ve(n,f.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function s6e(n){switch(n.kind){case 80:return n;case 211:return n.name;default:return}}function l6e(n){var a;nG(n),j8(n);let c=Bc(n);if(n.name&&n.name.kind===167&&Eg(n.name),iC(n)){let g=Sr(n),T=n.localSymbol||g,M=(a=T.declarations)==null?void 0:a.find(W=>W.kind===n.kind&&!(W.flags&524288));n===M&&zee(T),g.parent&&zee(g)}let u=n.kind===173?void 0:n.body;if(xa(u),Nve(n,aC(n)),r(_),ir(n)){let g=nE(n);g&&g.typeExpression&&!qye(Ti(g.typeExpression),n)&&Ve(g.typeExpression.type,f.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function _(){$f(n)||(Fl(u)&&!tG(n)&&l0(n,G),c&1&&Hf(u)&&us(lm(n)))}}function jb(n){r(a);function a(){let c=Gn(n),u=df.get(c.path);u||(u=[],df.set(c.path,u)),u.push(n)}}function c6e(n,a){for(let c of n)switch(c.kind){case 263:case 231:Lmt(c,a),Uve(c,a);break;case 312:case 267:case 241:case 269:case 248:case 249:case 250:p6e(c,a);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:c.body&&p6e(c,a),Uve(c,a);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:Uve(c,a);break;case 195:kmt(c,a);break;default:R.assertNever(c,"Node should not have been registered for unused identifiers check")}}function d6e(n,a,c){let u=No(n)||n,_=ER(n)?f._0_is_declared_but_never_used:f._0_is_declared_but_its_value_is_never_read;c(n,0,Pr(u,_,a))}function q8(n){return Fe(n)&&yr(n).charCodeAt(0)===95}function Lmt(n,a){for(let c of n.members)switch(c.kind){case 174:case 172:case 177:case 178:if(c.kind===178&&c.symbol.flags&32768)break;let u=Sr(c);!u.isReferenced&&(fp(c,2)||ou(c)&&Ki(c.name))&&!(c.flags&33554432)&&a(c,0,Pr(c.name,f._0_is_declared_but_its_value_is_never_read,Si(u)));break;case 176:for(let _ of c.parameters)!_.symbol.isReferenced&&Qr(_,2)&&a(_,0,Pr(_.name,f.Property_0_is_declared_but_its_value_is_never_read,yl(_.symbol)));break;case 181:case 240:case 175:break;default:R.fail("Unexpected class member")}}function kmt(n,a){let{typeParameter:c}=n;Hve(c)&&a(n,1,Pr(n,f._0_is_declared_but_its_value_is_never_read,yr(c.name)))}function Uve(n,a){let c=Sr(n).declarations;if(!c||Ja(c)!==n)return;let u=Dv(n),_=new Set;for(let g of u){if(!Hve(g))continue;let T=yr(g.name),{parent:M}=g;if(M.kind!==195&&M.typeParameters.every(Hve)){if(Jb(_,M)){let W=Gn(M),V=nm(M)?uU(M):pU(W,M.typeParameters),ye=M.typeParameters.length===1?[f._0_is_declared_but_its_value_is_never_read,T]:[f.All_type_parameters_are_unused];a(g,1,Yc(W,V.pos,V.end-V.pos,...ye))}}else a(g,1,Pr(g,f._0_is_declared_but_its_value_is_never_read,T))}}function Hve(n){return!(ts(n.symbol).isReferenced&262144)&&!q8(n.name)}function rG(n,a,c,u){let _=String(u(a)),g=n.get(_);g?g[1].push(c):n.set(_,[a,[c]])}function u6e(n){return ri(A_(n),To)}function wmt(n){return Xa(n)?tm(n.parent)?!!(n.propertyName&&q8(n.name)):q8(n.name):Pd(n)||(Oi(n)&&Wx(n.parent.parent)||f6e(n))&&q8(n.name)}function p6e(n,a){let c=new Map,u=new Map,_=new Map;n.locals.forEach(g=>{if(!(g.flags&262144?!(g.flags&3&&!(g.isReferenced&3)):g.isReferenced||g.exportSymbol)&&g.declarations){for(let T of g.declarations)if(!wmt(T))if(f6e(T))rG(c,Wmt(T),T,is);else if(Xa(T)&&tm(T.parent)){let M=Ja(T.parent.elements);(T===M||!Ja(T.parent.elements).dotDotDotToken)&&rG(u,T.parent,T,is)}else if(Oi(T)){let M=JS(T)&7,W=No(T);(M!==4&&M!==6||!W||!q8(W))&&rG(_,T.parent,T,is)}else{let M=g.valueDeclaration&&u6e(g.valueDeclaration),W=g.valueDeclaration&&No(g.valueDeclaration);M&&W?!dp(M,M.parent)&&!k0(M)&&!q8(W)&&(Xa(T)&&j0(T.parent)?rG(u,T.parent,T,is):a(M,1,Pr(W,f._0_is_declared_but_its_value_is_never_read,yl(g)))):d6e(T,yl(g),a)}}}),c.forEach(([g,T])=>{let M=g.parent;if((g.name?1:0)+(g.namedBindings?g.namedBindings.kind===274?1:g.namedBindings.elements.length:0)===T.length)a(M,0,T.length===1?Pr(M,f._0_is_declared_but_its_value_is_never_read,yr(Va(T).name)):Pr(M,f.All_imports_in_import_declaration_are_unused));else for(let V of T)d6e(V,yr(V.name),a)}),u.forEach(([g,T])=>{let M=u6e(g.parent)?1:0;if(g.elements.length===T.length)T.length===1&&g.parent.kind===260&&g.parent.parent.kind===261?rG(_,g.parent.parent,g.parent,is):a(g,M,T.length===1?Pr(g,f._0_is_declared_but_its_value_is_never_read,iG(Va(T).name)):Pr(g,f.All_destructured_elements_are_unused));else for(let W of T)a(W,M,Pr(W,f._0_is_declared_but_its_value_is_never_read,iG(W.name)))}),_.forEach(([g,T])=>{if(g.declarations.length===T.length)a(g,0,T.length===1?Pr(Va(T).name,f._0_is_declared_but_its_value_is_never_read,iG(Va(T).name)):Pr(g.parent.kind===243?g.parent:g,f.All_variables_are_unused));else for(let M of T)a(M,0,Pr(M,f._0_is_declared_but_its_value_is_never_read,iG(M.name)))})}function Omt(){var n;for(let a of dg)if(!((n=Sr(a))!=null&&n.isReferenced)){let c=Mx(a);R.assert(M0(c),"Only parameter declaration should be checked here");let u=Pr(a.name,f._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,As(a.name),As(a.propertyName));c.type||Ma(u,Yc(Gn(c),c.end,1,f.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,As(a.propertyName))),Qa.add(u)}}function iG(n){switch(n.kind){case 80:return yr(n);case 207:case 206:return iG(ta(Va(n.elements),Xa).name);default:return R.assertNever(n)}}function f6e(n){return n.kind===273||n.kind===276||n.kind===274}function Wmt(n){return n.kind===273?n:n.kind===274?n.parent:n.parent.parent}function Vee(n){if(n.kind===241&&hy(n),NV(n)){let a=we;gn(n.statements,xa),we=a}else gn(n.statements,xa);n.locals&&jb(n)}function Fmt(n){ce>=2||!FV(n)||n.flags&33554432||Fl(n.body)||gn(n.parameters,a=>{a.name&&!$o(a.name)&&a.name.escapedText===Wt.escapedName&&e_("noEmit",a,f.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function X8(n,a,c){if(a?.escapedText!==c||n.kind===172||n.kind===171||n.kind===174||n.kind===173||n.kind===177||n.kind===178||n.kind===303||n.flags&33554432||(yh(n)||Zc(n)||Qu(n))&&oE(n))return!1;let u=A_(n);return!(To(u)&&Fl(u.parent.body))}function zmt(n){Fn(n,a=>TC(a)&4?(n.kind!==80?Ve(No(n),f.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Ve(n,f.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function Bmt(n){Fn(n,a=>TC(a)&8?(n.kind!==80?Ve(No(n),f.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Ve(n,f.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function Gmt(n,a){if(z>=5&&!(z>=100&&Gn(n).impliedNodeFormat===1)||!a||!X8(n,a,"require")&&!X8(n,a,"exports")||ql(n)&&Gg(n)!==1)return;let c=X(n);c.kind===312&&wp(c)&&e_("noEmit",a,f.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,As(a),As(a))}function Vmt(n,a){if(!a||ce>=4||!X8(n,a,"Promise")||ql(n)&&Gg(n)!==1)return;let c=X(n);c.kind===312&&wp(c)&&c.flags&4096&&e_("noEmit",a,f.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,As(a),As(a))}function jmt(n,a){ce<=8&&(X8(n,a,"WeakMap")||X8(n,a,"WeakSet"))&&sb.push(n)}function Umt(n){let a=ph(n);TC(a)&1048576&&(R.assert(ou(n)&&Fe(n.name)&&typeof n.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),e_("noEmit",n,f.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,n.name.escapedText))}function Hmt(n,a){a&&ce>=2&&ce<=8&&X8(n,a,"Reflect")&&lb.push(n)}function Kmt(n){let a=!1;if($c(n)){for(let c of n.members)if(TC(c)&2097152){a=!0;break}}else if(Ms(n))TC(n)&2097152&&(a=!0);else{let c=ph(n);c&&TC(c)&2097152&&(a=!0)}a&&(R.assert(ou(n)&&Fe(n.name),"The target of a Reflect collision check should be an identifier"),e_("noEmit",n,f.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,As(n.name),"Reflect"))}function nL(n,a){a&&(Gmt(n,a),Vmt(n,a),jmt(n,a),Hmt(n,a),di(n)?(iL(a,f.Class_name_cannot_be_0),n.flags&33554432||b_t(a)):gE(n)&&iL(a,f.Enum_name_cannot_be_0))}function Jmt(n){if(JS(n)&7||M0(n))return;let a=Sr(n);if(a.flags&1){if(!Fe(n.name))return R.fail();let c=hl(n,n.name.escapedText,3,void 0,void 0,!1);if(c&&c!==a&&c.flags&2&&nve(c)&7){let u=uE(c.valueDeclaration,261),_=u.parent.kind===243&&u.parent.parent?u.parent.parent:void 0;if(!(_&&(_.kind===241&&Yo(_.parent)||_.kind===268||_.kind===267||_.kind===312))){let T=Si(c);Ve(n,f.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,T,T)}}}}function Y8(n){return n===et?G:n===Hc?Zl:n}function oG(n){var a;if(nG(n),Xa(n)||xa(n.type),!n.name)return;if(n.name.kind===167&&(Eg(n.name),dT(n)&&n.initializer&&tc(n.initializer)),Xa(n)){if(n.propertyName&&Fe(n.name)&&M0(n)&&Fl(Wp(n).body)){dg.push(n);return}tm(n.parent)&&n.dotDotDotToken&&ce<5&&xc(n,4),n.propertyName&&n.propertyName.kind===167&&Eg(n.propertyName);let _=n.parent.parent,g=n.dotDotDotToken?32:0,T=Or(_,g),M=n.propertyName||n.name;if(T&&!$o(M)){let W=dv(M);if(Qf(W)){let V=Zf(W),te=_a(T,V);te&&(B5(te,void 0,!1),ive(n,!!_.initializer&&_.initializer.kind===108,!1,T,te))}}}if($o(n.name)&&(n.name.kind===207&&ce<2&&B.downlevelIteration&&xc(n,512),gn(n.name.elements,xa)),n.initializer&&M0(n)&&Fl(Wp(n).body)){Ve(n,f.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if($o(n.name)){if(Dye(n))return;let _=dT(n)&&n.initializer&&n.parent.parent.kind!==249,g=!gt(n.name.elements,SW(Gc));if(_||g){let T=F(n);if(_){let M=tc(n.initializer);J&&g?kWe(M,n):Fb(M,F(n),n,n.initializer)}g&&(j0(n.name)?mv(65,T,Me,n):J&&kWe(T,n))}return}let c=Sr(n);if(c.flags&2097152&&(D0(n)||_ie(n))){Jee(n);return}let u=Y8(sr(c));if(n===c.valueDeclaration){let _=dT(n)&&C2(n);if(_&&!(ir(n)&&La(_)&&(_.properties.length===0||zv(n.name))&&!!((a=c.exports)!=null&&a.size))&&n.parent.parent.kind!==249){let T=tc(_);Fb(T,u,n,_,void 0);let M=JS(n)&7;if(M===6){let W=Qat(!0),V=iOe(!0);if(W!==Na&&V!==Na){let te=ti([W,V,ue,Me]);Zd(T,te,_,f.The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined)}}else if(M===4){let W=iOe(!0);if(W!==Na){let V=ti([W,ue,Me]);Zd(T,V,_,f.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined)}}}c.declarations&&c.declarations.length>1&>(c.declarations,g=>g!==n&&Jx(g)&&!_6e(g,n))&&Ve(n.name,f.All_declarations_of_0_must_have_identical_modifiers,As(n.name))}else{let _=Y8(F(n));!Ut(u)&&!Ut(_)&&!uy(u,_)&&!(c.flags&67108864)&&m6e(c.valueDeclaration,u,n,_),dT(n)&&n.initializer&&Fb(tc(n.initializer),_,n,n.initializer,void 0),c.valueDeclaration&&!_6e(n,c.valueDeclaration)&&Ve(n.name,f.All_declarations_of_0_must_have_identical_modifiers,As(n.name))}n.kind!==172&&n.kind!==171&&(U8(n),(n.kind===260||n.kind===208)&&Jmt(n),nL(n,n.name))}function m6e(n,a,c,u){let _=No(c),g=c.kind===172||c.kind===171?f.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:f.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,T=As(_),M=Ve(_,g,T,Vn(a),Vn(u));n&&Ma(M,Pr(n,f._0_was_also_declared_here,T))}function _6e(n,a){if(n.kind===169&&a.kind===260||n.kind===260&&a.kind===169)return!0;if(xI(n)!==xI(a))return!1;let c=1358;return PI(n,c)===PI(a,c)}function qmt(n){var a,c;(a=rr)==null||a.push(rr.Phase.Check,"checkVariableDeclaration",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath}),Cgt(n),oG(n),(c=rr)==null||c.pop()}function Xmt(n){return xgt(n),oG(n)}function jee(n){let a=Dy(n)&7;(a===4||a===6)&&xc(n,33554432),gn(n.declarations,xa)}function Ymt(n){!Tg(n)&&!_be(n.declarationList)&&Ngt(n),jee(n.declarationList)}function $mt(n){hy(n),po(n.expression)}function Qmt(n){hy(n);let a=rL(n.expression);Kve(n.expression,a,n.thenStatement),xa(n.thenStatement),n.thenStatement.kind===242&&Ve(n.thenStatement,f.The_body_of_an_if_statement_cannot_be_the_empty_statement),xa(n.elseStatement)}function Kve(n,a,c){if(!J)return;u(n,c);function u(g,T){for(g=ms(g),_(g,T);ur(g)&&(g.operatorToken.kind===57||g.operatorToken.kind===61);)g=ms(g.left),_(g,T)}function _(g,T){let M=ek(g)?ms(g.right):g;if($h(M))return;if(ek(M)){u(M,T);return}let W=M===g?a:rL(M),V=wr(M)&&zFe(M.expression);if(!dm(W,4194304)||V)return;let te=Ko(W,0),ye=!!eL(W);if(te.length===0&&!ye)return;let _e=Fe(M)?M:wr(M)?M.name:void 0,je=_e&&zm(_e);if(!je&&!ye)return;je&&ur(g.parent)&&e_t(g.parent,je)||je&&T&&Zmt(g,T,_e,je)||(ye?zE(M,!0,f.This_condition_will_always_return_true_since_this_0_is_always_defined,Eb(W)):Ve(M,f.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function Zmt(n,a,c,u){return!!Bo(a,function _(g){if(Fe(g)){let T=zm(g);if(T&&T===u){if(Fe(n)||Fe(c)&&ur(c.parent))return!0;let M=c.parent,W=g.parent;for(;M&&W;){if(Fe(M)&&Fe(W)||M.kind===110&&W.kind===110)return zm(M)===zm(W);if(wr(M)&&wr(W)){if(zm(M.name)!==zm(W.name))return!1;W=W.expression,M=M.expression}else if(ra(M)&&ra(W))W=W.expression,M=M.expression;else return!1}}}return Bo(g,_)})}function e_t(n,a){for(;ur(n)&&n.operatorToken.kind===56;){if(Bo(n.right,function u(_){if(Fe(_)){let g=zm(_);if(g&&g===a)return!0}return Bo(_,u)}))return!0;n=n.parent}return!1}function t_t(n){hy(n),xa(n.statement),rL(n.expression)}function n_t(n){hy(n),rL(n.expression),xa(n.statement)}function Jve(n,a){return n.flags&16384&&Ve(a,f.An_expression_of_type_void_cannot_be_tested_for_truthiness),n}function rL(n,a){return Jve(po(n,a),n)}function r_t(n){hy(n)||n.initializer&&n.initializer.kind===261&&_be(n.initializer),n.initializer&&(n.initializer.kind===261?jee(n.initializer):po(n.initializer)),n.condition&&rL(n.condition),n.incrementor&&po(n.incrementor),xa(n.statement),n.locals&&jb(n)}function i_t(n){p4e(n);let a=OF(n);if(n.awaitModifier?a&&Al(a)?yn(n.awaitModifier,f.for_await_loops_cannot_be_used_inside_a_class_static_block):(Bc(a)&6)===2&&ce<99&&xc(n,16384):B.downlevelIteration&&ce<2&&xc(n,256),n.initializer.kind===261)jee(n.initializer);else{let c=n.initializer,u=aG(n);if(c.kind===209||c.kind===210)ZA(c,u||pt);else{let _=po(c);V8(c,f.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,f.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),u&&Fb(u,_,c,n.expression)}}xa(n.statement),n.locals&&jb(n)}function o_t(n){p4e(n);let a=ove(po(n.expression));if(n.initializer.kind===261){let c=n.initializer.declarations[0];c&&$o(c.name)&&Ve(c.name,f.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),jee(n.initializer)}else{let c=n.initializer,u=po(c);c.kind===209||c.kind===210?Ve(c,f.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):ga(zst(a),u)?V8(c,f.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,f.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):Ve(c,f.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(a===Fr||!Td(a,126091264))&&Ve(n.expression,f.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0,Vn(a)),xa(n.statement),n.locals&&jb(n)}function aG(n){let a=n.awaitModifier?15:13;return mv(a,hC(n.expression),Me,n.expression)}function mv(n,a,c,u){return xt(a)?a:qve(n,a,c,u,!0)||G}function qve(n,a,c,u,_){let g=(n&2)!==0;if(a===Fr){Zve(u,a,g);return}let T=ce>=2,M=!T&&B.downlevelIteration,W=B.noUncheckedIndexedAccess&&!!(n&128);if(T||M||g){let mt=Hee(a,n,T?u:void 0);if(_&&mt){let At=n&8?f.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:n&32?f.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:n&64?f.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:n&16?f.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;At&&Zd(c,mt.nextType,u,At)}if(mt||T)return W?w8(mt&&mt.yieldType):mt&&mt.yieldType}let V=a,te=!1,ye=!1;if(n&4){if(V.flags&1048576){let mt=a.types,At=jr(mt,rn=>!(rn.flags&402653316));At!==mt&&(V=ti(At,2))}else V.flags&402653316&&(V=Fr);if(ye=V!==a,ye&&(ce<1&&u&&(Ve(u,f.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),te=!0),V.flags&131072))return W?w8(Ne):Ne}if(!pv(V)){if(u&&!te){let mt=!!(n&4)&&!ye,[At,rn]=je(mt,M);zE(u,rn&&!!eL(V),At,Vn(V))}return ye?W?w8(Ne):Ne:void 0}let _e=n0(V,It);if(ye&&_e)return _e.flags&402653316&&!B.noUncheckedIndexedAccess?Ne:ti(W?[_e,Ne,Me]:[_e,Ne],2);return n&128?w8(_e):_e;function je(mt,At){var rn;return At?mt?[f.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[f.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:Xve(n,0,a,void 0)?[f.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:a_t((rn=a.symbol)==null?void 0:rn.escapedName)?[f.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:mt?[f.Type_0_is_not_an_array_type_or_a_string_type,!0]:[f.Type_0_is_not_an_array_type,!0]}}function a_t(n){switch(n){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}function Xve(n,a,c,u){if(xt(c))return;let _=Hee(c,n,u);return _&&_[DIe(a)]}function _v(n=Fr,a=Fr,c=un){if(n.flags&67359327&&a.flags&180227&&c.flags&180227){let u=cm([n,a,c]),_=Di.get(u);return _||(_={yieldType:n,returnType:a,nextType:c},Di.set(u,_)),_}return{yieldType:n,returnType:a,nextType:c}}function h6e(n){let a,c,u;for(let _ of n)if(!(_===void 0||_===Cr)){if(_===Jo)return Jo;a=Tn(a,_.yieldType),c=Tn(c,_.returnType),u=Tn(u,_.nextType)}return a||c||u?_v(a&&ti(a),c&&ti(c),u&&ha(u)):Cr}function Uee(n,a){return n[a]}function Sg(n,a,c){return n[a]=c}function Hee(n,a,c){var u,_;if(xt(n))return Jo;if(!(n.flags&1048576)){let V=c?{errors:void 0}:void 0,te=g6e(n,a,c,V);if(te===Cr){if(c){let ye=Zve(c,n,!!(a&2));V?.errors&&Ma(ye,...V.errors)}return}else if((u=V?.errors)!=null&&u.length)for(let ye of V.errors)Qa.add(ye);return te}let g=a&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",T=Uee(n,g);if(T)return T===Cr?void 0:T;let M;for(let V of n.types){let te=c?{errors:void 0}:void 0,ye=g6e(V,a,c,te);if(ye===Cr){if(c){let _e=Zve(c,n,!!(a&2));te?.errors&&Ma(_e,...te.errors)}Sg(n,g,Cr);return}else if((_=te?.errors)!=null&&_.length)for(let _e of te.errors)Qa.add(_e);M=Tn(M,ye)}let W=M?h6e(M):Cr;return Sg(n,g,W),W===Cr?void 0:W}function Yve(n,a){if(n===Cr)return Cr;if(n===Jo)return Jo;let{yieldType:c,returnType:u,nextType:_}=n;return a&&Dge(!0),_v(eI(c,a)||G,eI(u,a)||G,_)}function g6e(n,a,c,u){if(xt(n))return Jo;let _=!1;if(a&2){let g=$ve(n,Gs)||v6e(n,Gs);if(g)if(g===Cr&&c)_=!0;else return a&8?Yve(g,c):g}if(a&1){let g=$ve(n,hc)||v6e(n,hc);if(g)if(g===Cr&&c)_=!0;else if(a&2){if(g!==Cr)return g=Yve(g,c),_?g:Sg(n,"iterationTypesOfAsyncIterable",g)}else return g}if(a&2){let g=Qve(n,Gs,c,u,_);if(g!==Cr)return g}if(a&1){let g=Qve(n,hc,c,u,_);if(g!==Cr)return a&2?(g=Yve(g,c),_?g:Sg(n,"iterationTypesOfAsyncIterable",g)):g}return Cr}function $ve(n,a){return Uee(n,a.iterableCacheKey)}function y6e(n,a){let c=$ve(n,a)||Qve(n,a,void 0,void 0,!1);return c===Cr?jc:c}function v6e(n,a){let c;if(Cb(n,c=a.getGlobalIterableType(!1))||Cb(n,c=a.getGlobalIterableIteratorType(!1))){let[u]=Us(n),{returnType:_,nextType:g}=y6e(c,a);return Sg(n,a.iterableCacheKey,_v(a.resolveIterationType(u,void 0)||u,a.resolveIterationType(_,void 0)||_,g))}if(Cb(n,a.getGlobalGeneratorType(!1))){let[u,_,g]=Us(n);return Sg(n,a.iterableCacheKey,_v(a.resolveIterationType(u,void 0)||u,a.resolveIterationType(_,void 0)||_,g))}}function b6e(n){let a=tOe(!1),c=a&&Ue(sr(a),pl(n));return c&&Qf(c)?Zf(c):`__@${n}`}function Qve(n,a,c,u,_){let g=_a(n,b6e(a.iteratorSymbolName)),T=g&&!(g.flags&16777216)?sr(g):void 0;if(xt(T))return _?Jo:Sg(n,a.iterableCacheKey,Jo);let M=T?Ko(T,0):void 0;if(!gt(M))return _?Cr:Sg(n,a.iterableCacheKey,Cr);let W=ha(mn(M,us)),V=E6e(W,a,c,u,_)??Cr;return _?V:Sg(n,a.iterableCacheKey,V)}function Zve(n,a,c){let u=c?f.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:f.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,_=!!eL(a)||!c&&Fk(n.parent)&&n.parent.expression===n&&xZ(!1)!==Mo&&ga(a,xZ(!1));return zE(n,_,u,Vn(a))}function s_t(n,a,c,u){return E6e(n,a,c,u,!1)}function E6e(n,a,c,u,_){if(xt(n))return Jo;let g=S6e(n,a)||l_t(n,a);return g===Cr&&c&&(g=void 0,_=!0),g??(g=A6e(n,a,c,u,_)),g===Cr?void 0:g}function S6e(n,a){return Uee(n,a.iteratorCacheKey)}function l_t(n,a){let c=a.getGlobalIterableIteratorType(!1);if(Cb(n,c)){let[u]=Us(n),_=S6e(c,a)||A6e(c,a,void 0,void 0,!1),{returnType:g,nextType:T}=_===Cr?jc:_;return Sg(n,a.iteratorCacheKey,_v(u,g,T))}if(Cb(n,a.getGlobalIteratorType(!1))||Cb(n,a.getGlobalGeneratorType(!1))){let[u,_,g]=Us(n);return Sg(n,a.iteratorCacheKey,_v(u,_,g))}}function T6e(n,a){let c=Ue(n,"done")||Kt;return ga(a===0?Kt:wn,c)}function c_t(n){return T6e(n,0)}function d_t(n){return T6e(n,1)}function u_t(n){if(xt(n))return Jo;let a=Uee(n,"iterationTypesOfIteratorResult");if(a)return a;if(Cb(n,Yat(!1))){let T=Us(n)[0];return Sg(n,"iterationTypesOfIteratorResult",_v(T,void 0,void 0))}if(Cb(n,$at(!1))){let T=Us(n)[0];return Sg(n,"iterationTypesOfIteratorResult",_v(void 0,T,void 0))}let c=cc(n,c_t),u=c!==Fr?Ue(c,"value"):void 0,_=cc(n,d_t),g=_!==Fr?Ue(_,"value"):void 0;return!u&&!g?Sg(n,"iterationTypesOfIteratorResult",Cr):Sg(n,"iterationTypesOfIteratorResult",_v(u,g||er,void 0))}function ebe(n,a,c,u,_){var g,T,M,W;let V=_a(n,c);if(!V&&c!=="next")return;let te=V&&!(c==="next"&&V.flags&16777216)?c==="next"?sr(V):um(sr(V),2097152):void 0;if(xt(te))return c==="next"?Jo:vl;let ye=te?Ko(te,0):Xe;if(ye.length===0){if(u){let an=c==="next"?a.mustHaveANextMethodDiagnostic:a.mustBeAMethodDiagnostic;_?(_.errors??(_.errors=[]),_.errors.push(Pr(u,an,c))):Ve(u,an,c)}return c==="next"?Cr:void 0}if(te?.symbol&&ye.length===1){let an=a.getGlobalGeneratorType(!1),On=a.getGlobalIteratorType(!1),Ln=((T=(g=an.symbol)==null?void 0:g.members)==null?void 0:T.get(c))===te.symbol,Yn=!Ln&&((W=(M=On.symbol)==null?void 0:M.members)==null?void 0:W.get(c))===te.symbol;if(Ln||Yn){let jn=Ln?an:On,{mapper:$n}=te;return _v(Ob(jn.typeParameters[0],$n),Ob(jn.typeParameters[1],$n),c==="next"?Ob(jn.typeParameters[2],$n):void 0)}}let _e,je;for(let an of ye)c!=="throw"&>(an.parameters)&&(_e=Tn(_e,f_(an,0))),je=Tn(je,us(an));let mt,At;if(c!=="throw"){let an=_e?ti(_e):un;if(c==="next")At=an;else if(c==="return"){let On=a.resolveIterationType(an,u)||G;mt=Tn(mt,On)}}let rn,sn=je?ha(je):Fr,nr=a.resolveIterationType(sn,u)||G,Mn=u_t(nr);return Mn===Cr?(u&&(_?(_.errors??(_.errors=[]),_.errors.push(Pr(u,a.mustHaveAValueDiagnostic,c))):Ve(u,a.mustHaveAValueDiagnostic,c)),rn=G,mt=Tn(mt,G)):(rn=Mn.yieldType,mt=Tn(mt,Mn.returnType)),_v(rn,ti(mt),At)}function A6e(n,a,c,u,_){let g=h6e([ebe(n,a,"next",c,u),ebe(n,a,"return",c,u),ebe(n,a,"throw",c,u)]);return _?g:Sg(n,a.iteratorCacheKey,g)}function US(n,a,c){if(xt(a))return;let u=I6e(a,c);return u&&u[DIe(n)]}function I6e(n,a){if(xt(n))return Jo;let c=a?2:1,u=a?Gs:hc;return Hee(n,c,void 0)||s_t(n,u,void 0,void 0)}function p_t(n){hy(n)||Igt(n)}function sG(n,a){let c=!!(a&1),u=!!(a&2);if(c){let _=US(1,n,u);return _?u?fv(tL(_)):_:pt}return u?fv(n)||pt:n}function x6e(n,a){let c=sG(a,Bc(n));return!!(c&&(Rl(c,16384)||c.flags&32769))}function f_t(n){if(hy(n))return;let a=OF(n);if(a&&Al(a)){fd(n,f.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!a){fd(n,f.A_return_statement_can_only_be_used_within_a_function_body);return}let c=lm(a),u=us(c),_=Bc(a);if(J||n.expression||u.flags&131072){let g=n.expression?tc(n.expression):Me;if(a.kind===178)n.expression&&Ve(n,f.Setters_cannot_return_a_value);else if(a.kind===176)n.expression&&!Fb(g,u,n,n.expression)&&Ve(n,f.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(aC(a)){let T=sG(u,_)??u,M=_&2?K8(g,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):g;T&&Fb(M,T,n,n.expression)}}else a.kind!==176&&B.noImplicitReturns&&!x6e(a,u)&&Ve(n,f.Not_all_code_paths_return_a_value)}function m_t(n){hy(n)||n.flags&65536&&fd(n,f.with_statements_are_not_allowed_in_an_async_function_block),po(n.expression);let a=Gn(n);if(!HS(a)){let c=fh(a,n.pos).start,u=n.statement.pos;KS(a,c,u-c,f.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function __t(n){hy(n);let a,c=!1,u=po(n.expression);gn(n.caseBlock.clauses,_=>{_.kind===297&&!c&&(a===void 0?a=_:(yn(_,f.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),c=!0)),_.kind===296&&r(g(_)),gn(_.statements,xa),B.noFallthroughCasesInSwitch&&_.fallthroughFlowNode&&C5(_.fallthroughFlowNode)&&Ve(_,f.Fallthrough_case_in_switch);function g(T){return()=>{let M=po(T.expression);kve(u,M)||QOe(M,u,T.expression,void 0)}}}),n.caseBlock.locals&&jb(n.caseBlock)}function h_t(n){hy(n)||Fn(n.parent,a=>Yo(a)?"quit":a.kind===256&&a.label.escapedText===n.label.escapedText?(yn(n.label,f.Duplicate_label_0,uc(n.label)),!0):!1),xa(n.statement)}function g_t(n){hy(n)||Fe(n.expression)&&!n.expression.escapedText&&Bgt(n,f.Line_break_not_permitted_here),n.expression&&po(n.expression)}function y_t(n){hy(n),Vee(n.tryBlock);let a=n.catchClause;if(a){if(a.variableDeclaration){let c=a.variableDeclaration;oG(c);let u=hd(c);if(u){let _=Ti(u);_&&!(_.flags&3)&&fd(u,f.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(c.initializer)fd(c.initializer,f.Catch_clause_variable_cannot_have_an_initializer);else{let _=a.block.locals;_&&uh(a.locals,g=>{let T=_.get(g);T?.valueDeclaration&&T.flags&2&&yn(T.valueDeclaration,f.Cannot_redeclare_identifier_0_in_catch_clause,Vi(g))})}}Vee(a.block)}n.finallyBlock&&Vee(n.finallyBlock)}function Kee(n,a,c){let u=hu(n);if(u.length===0)return;for(let g of Pb(n))c&&g.flags&4194304||R6e(n,g,dC(g,8576,!0),Db(g));let _=a.valueDeclaration;if(_&&di(_)){for(let g of _.members)if(!na(g)&&!iC(g)){let T=Sr(g);R6e(n,T,Ad(g.name.expression),Db(T))}}if(u.length>1)for(let g of u)v_t(n,g)}function R6e(n,a,c,u){let _=a.valueDeclaration,g=No(_);if(g&&Ki(g))return;let T=dge(n,c),M=kr(n)&2?cl(n.symbol,264):void 0,W=_&&_.kind===226||g&&g.kind===167?_:void 0,V=Du(a)===n.symbol?_:void 0;for(let te of T){let ye=te.declaration&&Du(Sr(te.declaration))===n.symbol?te.declaration:void 0,_e=V||ye||(M&&!gt(Dp(n),je=>!!t0(je,a.escapedName)&&!!n0(je,te.keyType))?M:void 0);if(_e&&!ga(u,te.type)){let je=cA(_e,f.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Si(a),Vn(u),Vn(te.keyType),Vn(te.type));W&&_e!==W&&Ma(je,Pr(W,f._0_is_declared_here,Si(a))),Qa.add(je)}}}function v_t(n,a){let c=a.declaration,u=dge(n,a.keyType),_=kr(n)&2?cl(n.symbol,264):void 0,g=c&&Du(Sr(c))===n.symbol?c:void 0;for(let T of u){if(T===a)continue;let M=T.declaration&&Du(Sr(T.declaration))===n.symbol?T.declaration:void 0,W=g||M||(_&&!gt(Dp(n),V=>!!bg(V,a.keyType)&&!!n0(V,T.keyType))?_:void 0);W&&!ga(a.type,T.type)&&Ve(W,f._0_index_type_1_is_not_assignable_to_2_index_type_3,Vn(a.keyType),Vn(a.type),Vn(T.keyType),Vn(T.type))}}function iL(n,a){switch(n.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":Ve(n,a,n.escapedText)}}function b_t(n){ce>=1&&n.escapedText==="Object"&&(z<5||Gn(n).impliedNodeFormat===1)&&Ve(n,f.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,HC[z])}function E_t(n){let a=jr(iE(n),$m);if(!Nn(a))return;let c=ir(n),u=new Set,_=new Set;if(gn(n.parameters,({name:T},M)=>{Fe(T)&&u.add(T.escapedText),$o(T)&&_.add(M)}),pge(n)){let T=a.length-1,M=a[T];c&&M&&Fe(M.name)&&M.typeExpression&&M.typeExpression.type&&!u.has(M.name.escapedText)&&!_.has(T)&&!Gf(Ti(M.typeExpression.type))&&Ve(M.name,f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,yr(M.name))}else gn(a,({name:T,isNameFirst:M},W)=>{_.has(W)||Fe(T)&&u.has(T.escapedText)||(Tu(T)?c&&Ve(T,f.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,up(T),up(T.left)):M||pd(c,T,f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,yr(T)))})}function lG(n){let a=!1;if(n)for(let u=0;u{u.default?(a=!0,S_t(u.default,n,_)):a&&Ve(u,f.Required_type_parameters_may_not_follow_optional_type_parameters);for(let g=0;g<_;g++)n[g].symbol===u.symbol&&Ve(u.name,f.Duplicate_identifier_0,As(u.name))}}}function S_t(n,a,c){u(n);function u(_){if(_.kind===183){let g=Sge(_);if(g.flags&262144)for(let T=c;Tu)return!1;for(let W=0;Wpc(c)&&au(c))&&yn(a,f.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!n.name&&!Qr(n,2048)&&fd(n,f.A_class_declaration_without_the_default_modifier_must_have_a_name),P6e(n),gn(n.members,xa),jb(n)}function P6e(n){dgt(n),nG(n),nL(n,n.name),lG(Dv(n)),U8(n);let a=Sr(n),c=Ys(a),u=Up(c),_=sr(a);D6e(a),zee(a),Gft(n),!!(n.flags&33554432)||Vft(n);let T=S_(n);if(T){gn(T.typeArguments,xa),ce<2&&xc(T.parent,1);let V=P0(n);V&&V!==T&&po(V.expression);let te=Dp(c);te.length&&r(()=>{let ye=te[0],_e=Rp(c),je=Pu(_e);if(D_t(je,T),xa(T.expression),gt(T.typeArguments)){gn(T.typeArguments,xa);for(let At of Qd(je,T.typeArguments,T))if(!QFe(T,At.typeParameters))break}let mt=Up(ye,c.thisType);if(Zd(u,mt,void 0)?Zd(_,KOe(je),n.name||n,f.Class_static_side_0_incorrectly_extends_base_class_static_side_1):k6e(n,u,mt,f.Class_0_incorrectly_extends_base_class_1),_e.flags&8650752&&(Mi(_)?Ko(_e,1).some(rn=>rn.flags&4)&&!Qr(n,64)&&Ve(n.name||n,f.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):Ve(n.name||n,f.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(je.symbol&&je.symbol.flags&32)&&!(_e.flags&8650752)){let At=kh(je,T.typeArguments,T);gn(At,rn=>!$_(rn.declaration)&&!uy(us(rn),ye))&&Ve(T.expression,f.Base_constructors_must_all_have_the_same_return_type)}P_t(c,ye)})}R_t(n,c,u,_);let M=oR(n);if(M)for(let V of M)(!Bl(V.expression)||jd(V.expression))&&Ve(V.expression,f.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Gve(V),r(W(V));r(()=>{Kee(c,a),Kee(_,a,!0),Fve(n),k_t(n)});function W(V){return()=>{let te=d_(Ti(V));if(!Ut(te))if(qB(te)){let ye=te.symbol&&te.symbol.flags&32?f.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:f.Class_0_incorrectly_implements_interface_1,_e=Up(te,c.thisType);Zd(u,_e,void 0)||k6e(n,u,_e,ye)}else Ve(V,f.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function R_t(n,a,c,u){let g=S_(n)&&Dp(a),T=g?.length?Up(Va(g),a.thisType):void 0,M=Rp(a);for(let W of n.members)Gj(W)||(Pl(W)&&gn(W.parameters,V=>{dp(V,W)&&M6e(n,u,M,T,a,c,V,!0)}),M6e(n,u,M,T,a,c,W,!1))}function M6e(n,a,c,u,_,g,T,M,W=!0){let V=T.name&&zm(T.name)||zm(T);return V?L6e(n,a,c,u,_,g,p6(T),O0(T),na(T),M,yl(V),W?T:void 0):0}function L6e(n,a,c,u,_,g,T,M,W,V,te,ye){let _e=ir(n),je=!!(n.flags&33554432);if(u&&(T||B.noImplicitOverride)){let mt=pl(te),At=W?a:g,rn=W?c:u,sn=_a(At,mt),nr=_a(rn,mt),Mn=Vn(u);if(sn&&!nr&&T){if(ye){let an=VWe(te,rn);an?Ve(ye,_e?f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,Mn,Si(an)):Ve(ye,_e?f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,Mn)}return 2}else if(sn&&nr?.declarations&&B.noImplicitOverride&&!je){let an=gt(nr.declarations,O0);if(T)return 0;if(an){if(M&&an)return ye&&Ve(ye,f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,Mn),1}else{if(ye){let On=V?_e?f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:_e?f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;Ve(ye,On,Mn)}return 1}}}else if(T){if(ye){let mt=Vn(_);Ve(ye,_e?f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,mt)}return 2}return 0}function k6e(n,a,c,u){let _=!1;for(let g of n.members){if(na(g))continue;let T=g.name&&zm(g.name)||zm(g);if(T){let M=_a(a,T.escapedName),W=_a(c,T.escapedName);if(M&&W){let V=()=>Fo(void 0,f.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Si(T),Vn(a),Vn(c));Zd(sr(M),sr(W),g.name||g,void 0,V)||(_=!0)}}}_||Zd(a,c,n.name||n,u)}function D_t(n,a){let c=Ko(n,1);if(c.length){let u=c[0].declaration;if(u&&fp(u,2)){let _=wg(n.symbol);abe(a,_)||Ve(a,f.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Vp(n.symbol))}}}function C_t(n,a,c){if(!a.name)return 0;let u=Sr(n),_=Ys(u),g=Up(_),T=sr(u),W=S_(n)&&Dp(_),V=W?.length?Up(Va(W),_.thisType):void 0,te=Rp(_),ye=a.parent?p6(a):Qr(a,16);return L6e(n,T,te,V,_,g,ye,O0(a),na(a),!1,yl(c))}function SC(n){return Tl(n)&1?n.links.target:n}function N_t(n){return jr(n.declarations,a=>a.kind===263||a.kind===264)}function P_t(n,a){var c,u,_,g;let T=_s(a),M;e:for(let W of T){let V=SC(W);if(V.flags&4194304)continue;let te=t0(n,V.escapedName);if(!te)continue;let ye=SC(te),_e=Tf(V);if(R.assert(!!ye,"derived should point to something, even if it is the base class' declaration."),ye===V){let je=wg(n.symbol);if(_e&64&&(!je||!Qr(je,64))){for(let mt of Dp(n)){if(mt===a)continue;let At=t0(mt,V.escapedName),rn=At&&SC(At);if(rn&&rn!==V)continue e}M||(M=Ve(je,f.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,Vn(n),Vn(a))),je.kind===231?Ma(M,Pr(W.valueDeclaration??(W.declarations&&Va(W.declarations))??je,f.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Si(W),Vn(a))):Ma(M,Pr(W.valueDeclaration??(W.declarations&&Va(W.declarations))??je,f.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Vn(n),Si(W),Vn(a)))}}else{let je=Tf(ye);if(_e&2||je&2)continue;let mt,At=V.flags&98308,rn=ye.flags&98308;if(At&&rn){if((Tl(V)&6?(c=V.declarations)!=null&&c.some(Mn=>w6e(Mn,_e)):(u=V.declarations)!=null&&u.every(Mn=>w6e(Mn,_e)))||Tl(V)&262144||ye.valueDeclaration&&ur(ye.valueDeclaration))continue;let sn=At!==4&&rn===4;if(sn||At===4&&rn!==4){let Mn=sn?f._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:f._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;Ve(No(ye.valueDeclaration)||ye.valueDeclaration,Mn,Si(V),Vn(a),Vn(n))}else if(me){let Mn=(_=ye.declarations)==null?void 0:_.find(an=>an.kind===172&&!an.initializer);if(Mn&&!(ye.flags&33554432)&&!(_e&64)&&!(je&64)&&!((g=ye.declarations)!=null&&g.some(an=>!!(an.flags&33554432)))){let an=ty(wg(n.symbol)),On=Mn.name;if(Mn.exclamationToken||!an||!Fe(On)||!J||!W6e(On,n,an)){let Ln=f.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;Ve(No(ye.valueDeclaration)||ye.valueDeclaration,Ln,Si(V),Vn(a))}}}continue}else if(rve(V)){if(rve(ye)||ye.flags&4)continue;R.assert(!!(ye.flags&98304)),mt=f.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else V.flags&98304?mt=f.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:mt=f.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Ve(No(ye.valueDeclaration)||ye.valueDeclaration,mt,Vn(a),Si(V),Vn(n))}}}function w6e(n,a){return a&64&&(!Vo(n)||!n.initializer)||fu(n.parent)}function M_t(n,a,c){if(!Nn(a))return c;let u=new Map;gn(c,_=>{u.set(_.escapedName,_)});for(let _ of a){let g=_s(Up(_,n.thisType));for(let T of g){let M=u.get(T.escapedName);M&&T.parent===M.parent&&u.delete(T.escapedName)}}return Oo(u.values())}function L_t(n,a){let c=Dp(n);if(c.length<2)return!0;let u=new Map;gn(Jhe(n).declaredProperties,g=>{u.set(g.escapedName,{prop:g,containingType:n})});let _=!0;for(let g of c){let T=_s(Up(g,n.thisType));for(let M of T){let W=u.get(M.escapedName);if(!W)u.set(M.escapedName,{prop:M,containingType:g});else if(W.containingType!==n&&!Hlt(W.prop,M)){_=!1;let te=Vn(W.containingType),ye=Vn(g),_e=Fo(void 0,f.Named_property_0_of_types_1_and_2_are_not_identical,Si(M),te,ye);_e=Fo(_e,f.Interface_0_cannot_simultaneously_extend_types_1_and_2,Vn(n),te,ye),Qa.add(Pg(Gn(a),a,_e))}}}return _}function k_t(n){if(!J||!xe||n.flags&33554432)return;let a=ty(n);for(let c of n.members)if(!(cu(c)&128)&&!na(c)&&O6e(c)){let u=c.name;if(Fe(u)||Ki(u)||Ya(u)){let _=sr(Sr(c));_.flags&3||zM(_)||(!a||!W6e(u,_,a))&&Ve(c.name,f.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,As(u))}}}function O6e(n){return n.kind===172&&!O0(n)&&!n.exclamationToken&&!n.initializer}function w_t(n,a,c,u,_){for(let g of c)if(g.pos>=u&&g.pos<=_){let T=L.createPropertyAccessExpression(L.createThis(),n);ja(T.expression,T),ja(T,g),T.flowNode=g.returnFlowNode;let M=Vb(T,a,Bb(a));if(!zM(M))return!0}return!1}function W6e(n,a,c){let u=Ya(n)?L.createElementAccessExpression(L.createThis(),n.expression):L.createPropertyAccessExpression(L.createThis(),n);ja(u.expression,u),ja(u,c),u.flowNode=c.returnFlowNode;let _=Vb(u,a,Bb(a));return!zM(_)}function O_t(n){Tg(n)||ggt(n),lG(n.typeParameters),r(()=>{iL(n.name,f.Interface_name_cannot_be_0),U8(n);let a=Sr(n);D6e(a);let c=cl(a,264);if(n===c){let u=Ys(a),_=Up(u);if(L_t(u,n.name)){for(let g of Dp(u))Zd(_,Up(g,u.thisType),n.name,f.Interface_0_incorrectly_extends_interface_1);Kee(u,a)}}qFe(n)}),gn(SN(n),a=>{(!Bl(a.expression)||jd(a.expression))&&Ve(a.expression,f.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Gve(a)}),gn(n.members,xa),r(()=>{Fve(n),jb(n)})}function W_t(n){Tg(n),iL(n.name,f.Type_alias_name_cannot_be_0),U8(n),lG(n.typeParameters),n.type.kind===141?(!L3.has(n.name.escapedText)||Nn(n.typeParameters)!==1)&&Ve(n.type,f.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(xa(n.type),jb(n))}function F6e(n){let a=Zr(n);if(!(a.flags&1024)){a.flags|=1024;let c=0;for(let u of n.members){let _=F_t(u,c);Zr(u).enumMemberValue=_,c=typeof _=="number"?_+1:void 0}}}function F_t(n,a){if(g2(n.name))Ve(n.name,f.Computed_property_names_are_not_allowed_in_enums);else{let c=jx(n.name);rg(c)&&!XN(c)&&Ve(n.name,f.An_enum_member_cannot_have_a_numeric_name)}if(n.initializer)return z_t(n);if(!(n.parent.flags&33554432&&!I0(n.parent))){if(a!==void 0)return a;Ve(n.name,f.Enum_member_must_have_initializer)}}function z_t(n){let a=I0(n.parent),c=n.initializer,u=oL(c,n);return u!==void 0?a&&typeof u=="number"&&!isFinite(u)&&Ve(c,isNaN(u)?f.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:f.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):a?Ve(c,f.const_enum_member_initializers_must_be_constant_expressions):n.parent.flags&33554432?Ve(c,f.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):Zd(po(c),It,c,f.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),u}function oL(n,a){switch(n.kind){case 224:let c=oL(n.operand,a);if(typeof c=="number")switch(n.operator){case 40:return c;case 41:return-c;case 55:return~c}break;case 226:let u=oL(n.left,a),_=oL(n.right,a);if(typeof u=="number"&&typeof _=="number")switch(n.operatorToken.kind){case 52:return u|_;case 51:return u&_;case 49:return u>>_;case 50:return u>>>_;case 48:return u<<_;case 53:return u^_;case 42:return u*_;case 44:return u/_;case 40:return u+_;case 41:return u-_;case 45:return u%_;case 43:return u**_}else if((typeof u=="string"||typeof u=="number")&&(typeof _=="string"||typeof _=="number")&&n.operatorToken.kind===40)return""+u+_;break;case 11:case 15:return n.text;case 228:return B6e(n,a);case 9:return hbe(n),+n.text;case 217:return oL(n.expression,a);case 80:{let T=n;if(XN(T.escapedText)&&Vs(T,111551,!0)===WM(T.escapedText,111551,void 0))return+T.escapedText}case 211:if(Bl(n)){let T=Vs(n,111551,!0);if(T){if(T.flags&8)return a?z6e(n,T,a):AC(T.valueDeclaration);if(qM(T)){let M=T.valueDeclaration;if(M&&Oi(M)&&!M.type&&M.initializer&&(!a||M!==a&&$g(M,a)))return oL(M.initializer,M)}}}break;case 212:let g=n.expression;if(Bl(g)&&ss(n.argumentExpression)){let T=Vs(g,111551,!0);if(T&&T.flags&384){let M=pl(n.argumentExpression.text),W=T.exports.get(M);if(W)return a?z6e(n,W,a):AC(W.valueDeclaration)}}break}}function z6e(n,a,c){let u=a.valueDeclaration;if(!u||u===c){Ve(n,f.Property_0_is_used_before_being_assigned,Si(a));return}return $g(u,c)?AC(u):(Ve(n,f.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0)}function B6e(n,a){let c=n.head.text;for(let u of n.templateSpans){let _=oL(u.expression,a);if(_===void 0)return;c+=_,c+=u.literal.text}return c}function B_t(n){r(()=>G_t(n))}function G_t(n){Tg(n),nL(n,n.name),U8(n),n.members.forEach(V_t),F6e(n);let a=Sr(n),c=cl(a,n.kind);if(n===c){if(a.declarations&&a.declarations.length>1){let _=I0(n);gn(a.declarations,g=>{gE(g)&&I0(g)!==_&&Ve(No(g),f.Enum_declarations_must_all_be_const_or_non_const)})}let u=!1;gn(a.declarations,_=>{if(_.kind!==266)return!1;let g=_;if(!g.members.length)return!1;let T=g.members[0];T.initializer||(u?Ve(T.name,f.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):u=!0)})}}function V_t(n){Ki(n.name)&&Ve(n,f.An_enum_member_cannot_be_named_with_a_private_identifier),n.initializer&&po(n.initializer)}function j_t(n){let a=n.declarations;if(a){for(let c of a)if((c.kind===263||c.kind===262&&Hf(c.body))&&!(c.flags&33554432))return c}}function U_t(n,a){let c=ph(n),u=ph(a);return Rh(c)?Rh(u):Rh(u)?!1:c===u}function H_t(n){n.body&&(xa(n.body),E_(n)||jb(n)),r(a);function a(){var c,u;let _=E_(n),g=n.flags&33554432;_&&!g&&Ve(n.name,f.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);let T=Pd(n),M=T?f.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:f.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(cG(n,M))return;Tg(n)||!g&&n.name.kind===11&&yn(n.name,f.Only_ambient_modules_can_use_quoted_names),Fe(n.name)&&nL(n,n.name),U8(n);let W=Sr(n);if(W.flags&512&&!g&&yK(n,G0(B))){if(em(B)&&!Gn(n).externalModuleIndicator&&Ve(n.name,f.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement,Je),((c=W.declarations)==null?void 0:c.length)>1){let V=j_t(W);V&&(Gn(n)!==Gn(V)?Ve(n.name,f.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):n.poste.kind===95);V&&Ve(V,f.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(T)if(A0(n)){if((_||Sr(n).flags&33554432)&&n.body)for(let te of n.body.statements)tbe(te,_)}else Rh(n.parent)?_?Ve(n.name,f.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):qc(Xf(n.name))&&Ve(n.name,f.Ambient_module_declaration_cannot_specify_relative_module_name):_?Ve(n.name,f.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Ve(n.name,f.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function tbe(n,a){switch(n.kind){case 243:for(let u of n.declarationList.declarations)tbe(u,a);break;case 277:case 278:fd(n,f.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:case 272:fd(n,f.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:let c=n.name;if($o(c)){for(let u of c.elements)tbe(u,a);break}case 263:case 266:case 262:case 264:case 267:case 265:if(a)return;break}}function K_t(n){switch(n.kind){case 80:return n;case 166:do n=n.left;while(n.kind!==80);return n;case 211:do{if($h(n.expression)&&!Ki(n.name))return n.name;n=n.expression}while(n.kind!==80);return n}}function nbe(n){let a=eR(n);if(!a||Fl(a))return!1;if(!Ca(a))return Ve(a,f.String_literal_expected),!1;let c=n.parent.kind===268&&Pd(n.parent.parent);if(n.parent.kind!==312&&!c)return Ve(a,n.kind===278?f.Export_declarations_are_not_permitted_in_a_namespace:f.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(c&&qc(a.text)&&!Tb(n))return Ve(n,f.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!Zc(n)&&n.attributes){let u=n.attributes.token===118?f.Import_attribute_values_must_be_string_literal_expressions:f.Import_assertion_values_must_be_string_literal_expressions,_=!1;for(let g of n.attributes.elements)Ca(g.value)||(_=!0,Ve(g.value,u));return!_}return!0}function Jee(n){var a,c,u,_;let g=Sr(n),T=Oc(g);if(T!==lt){if(g=ts(g.exportSymbol||g),ir(n)&&!(T.flags&111551)&&!oE(n)){let V=yI(n)?n.propertyName||n.name:ou(n)?n.name:n;if(R.assert(n.kind!==280),n.kind===281){let te=Ve(V,f.Types_cannot_appear_in_export_declarations_in_JavaScript_files),ye=(c=(a=Gn(n).symbol)==null?void 0:a.exports)==null?void 0:c.get((n.propertyName||n.name).escapedText);if(ye===T){let _e=(u=ye.declarations)==null?void 0:u.find(Fx);_e&&Ma(te,Pr(_e,f._0_is_automatically_exported_here,Vi(ye.escapedName)))}}else{R.assert(n.kind!==260);let te=Fn(n,Um(Mc,Zc)),ye=(te&&((_=Zx(te))==null?void 0:_.text))??"...",_e=Vi(Fe(V)?V.escapedText:g.escapedName);Ve(V,f._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,_e,`import("${ye}").${_e}`)}return}let M=Ed(T),W=(g.flags&1160127?111551:0)|(g.flags&788968?788968:0)|(g.flags&1920?1920:0);if(M&W){let V=n.kind===281?f.Export_declaration_conflicts_with_exported_declaration_of_0:f.Import_declaration_conflicts_with_local_declaration_of_0;Ve(n,V,Si(g))}else n.kind!==281&&B.isolatedModules&&!Fn(n,oE)&&g.flags&1160127&&Ve(n,f.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Si(g),Je);if(em(B)&&!oE(n)&&!(n.flags&33554432)){let V=Lf(g),te=!(M&111551);if(te||V)switch(n.kind){case 273:case 276:case 271:{if(B.preserveValueImports||B.verbatimModuleSyntax){R.assertIsDefined(n.name,"An ImportClause with a symbol should have a name");let ye=B.verbatimModuleSyntax&&$x(n)?f.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:te?B.verbatimModuleSyntax?f._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:f._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:B.verbatimModuleSyntax?f._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:f._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,_e=yr(n.kind===276&&n.propertyName||n.name);ug(Ve(n,ye,_e),te?void 0:V,_e)}te&&n.kind===271&&fp(n,32)&&Ve(n,f.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Je);break}case 281:if(B.verbatimModuleSyntax||Gn(V)!==Gn(n)){let ye=yr(n.propertyName||n.name),_e=te?Ve(n,f.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Je):Ve(n,f._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,ye,Je);ug(_e,te?void 0:V,ye);break}}B.verbatimModuleSyntax&&n.kind!==271&&!ir(n)&&(z===1||Gn(n).impliedNodeFormat===1)&&Ve(n,f.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(Qu(n)){let V=rbe(g,n);db(V)&&V.declarations&&nv(n,V.declarations,V.escapedName)}}}function rbe(n,a){if(!(n.flags&2097152)||db(n)||!Mm(n))return n;let c=Oc(n);if(c===lt)return c;for(;n.flags&2097152;){let u=$ye(n);if(u){if(u===c)break;if(u.declarations&&Nn(u.declarations))if(db(u)){nv(a,u.declarations,u.escapedName);break}else{if(n===c)break;n=u}}else break}return c}function qee(n){nL(n,n.name),Jee(n),n.kind===276&&yr(n.propertyName||n.name)==="default"&&_h(B)&&z!==4&&(z<5||Gn(n).impliedNodeFormat===1)&&xc(n,131072)}function G6e(n){var a;let c=n.attributes;if(c){let u=Ige(!0);u!==Na&&Zd(le(c),S5(u,32768),c);let _=sJ(n),g=$R(c,_?yn:void 0),T=n.attributes.token===118;if(_&&g)return;if((z===199&&n.moduleSpecifier&&Qi(n.moduleSpecifier))!==99&&z!==99&&z!==200){let W=T?z===199?f.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:f.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:z===199?f.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:f.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve;return yn(c,W)}if(Mc(n)?(a=n.importClause)!=null&&a.isTypeOnly:n.isTypeOnly)return yn(c,T?f.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:f.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(g)return yn(c,f.resolution_mode_can_only_be_set_for_type_only_imports)}}function J_t(n){return yu(tc(n.value))}function q_t(n){if(!cG(n,ir(n)?f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Tg(n)&&u6(n)&&fd(n,f.An_import_declaration_cannot_have_modifiers),nbe(n)){let a=n.importClause;a&&!Vgt(a)&&(a.name&&qee(a),a.namedBindings&&(a.namedBindings.kind===274?(qee(a.namedBindings),z!==4&&(z<5||Gn(n).impliedNodeFormat===1)&&_h(B)&&xc(n,65536)):_u(n,n.moduleSpecifier)&&gn(a.namedBindings.elements,qee)))}G6e(n)}}function X_t(n){if(!cG(n,ir(n)?f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(Tg(n),$x(n)||nbe(n)))if(qee(n),Qr(n,32)&&hb(n),n.moduleReference.kind!==283){let a=Oc(Sr(n));if(a!==lt){let c=Ed(a);if(c&111551){let u=Fp(n.moduleReference);Vs(u,112575).flags&1920||Ve(u,f.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,As(u))}c&788968&&iL(n.name,f.Import_name_cannot_be_0)}n.isTypeOnly&&yn(n,f.An_import_alias_cannot_use_import_type)}else z>=5&&z!==200&&Gn(n).impliedNodeFormat===void 0&&!n.isTypeOnly&&!(n.flags&33554432)&&yn(n,f.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}function Y_t(n){if(!cG(n,ir(n)?f.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:f.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Tg(n)&&Gie(n)&&fd(n,f.An_export_declaration_cannot_have_modifiers),n.moduleSpecifier&&n.exportClause&&xf(n.exportClause)&&Nn(n.exportClause.elements)&&ce===0&&xc(n,4194304),$_t(n),!n.moduleSpecifier||nbe(n))if(n.exportClause&&!vh(n.exportClause)){gn(n.exportClause.elements,rht);let a=n.parent.kind===268&&Pd(n.parent.parent),c=!a&&n.parent.kind===268&&!n.moduleSpecifier&&n.flags&33554432;n.parent.kind!==312&&!a&&!c&&Ve(n,f.Export_declarations_are_not_permitted_in_a_namespace)}else{let a=_u(n,n.moduleSpecifier);a&&ov(a)?Ve(n.moduleSpecifier,f.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Si(a)):n.exportClause&&Jee(n.exportClause),z!==4&&(z<5||Gn(n).impliedNodeFormat===1)&&(n.exportClause?_h(B)&&xc(n,65536):xc(n,32768))}G6e(n)}}function $_t(n){var a;return n.isTypeOnly&&((a=n.exportClause)==null?void 0:a.kind)===279?v4e(n.exportClause):!1}function cG(n,a){let c=n.parent.kind===312||n.parent.kind===268||n.parent.kind===267;return c||fd(n,a),!c}function Q_t(n){return $F(n,a=>!!Sr(a).isReferenced)}function Z_t(n){return $F(n,a=>!!qi(Sr(a)).constEnumReferenced)}function eht(n){return Mc(n)&&n.importClause&&!n.importClause.isTypeOnly&&Q_t(n.importClause)&&!ete(n.importClause,!0)&&!Z_t(n.importClause)}function tht(n){return Zc(n)&&bh(n.moduleReference)&&!n.isTypeOnly&&Sr(n).isReferenced&&!ete(n,!1)&&!qi(Sr(n)).constEnumReferenced}function nht(n){if(ft)for(let a of n.statements)(eht(a)||tht(a))&&Ve(a,f.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}function rht(n){if(Jee(n),Af(B)&&RM(n.propertyName||n.name,!0),n.parent.parent.moduleSpecifier)_h(B)&&z!==4&&(z<5||Gn(n).impliedNodeFormat===1)&&yr(n.propertyName||n.name)==="default"&&xc(n,131072);else{let a=n.propertyName||n.name,c=hl(a,a.escapedText,2998271,void 0,void 0,!0);if(c&&(c===ze||c===tt||c.declarations&&Rh(X(c.declarations[0]))))Ve(a,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,yr(a));else{!n.isTypeOnly&&!n.parent.parent.isTypeOnly&&hb(n);let u=c&&(c.flags&2097152?Oc(c):c);(!u||Ed(u)&111551)&&tc(n.propertyName||n.name)}}}function iht(n){let a=n.isExportEquals?f.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:f.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(cG(n,a))return;let c=n.parent.kind===312?n.parent:n.parent.parent;if(c.kind===267&&!Pd(c)){n.isExportEquals?Ve(n,f.An_export_assignment_cannot_be_used_in_a_namespace):Ve(n,f.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!Tg(n)&&u6(n)&&fd(n,f.An_export_assignment_cannot_have_modifiers);let u=hd(n);u&&Zd(tc(n.expression),Ti(u),n.expression);let _=!n.isExportEquals&&!(n.flags&33554432)&&B.verbatimModuleSyntax&&(z===1||Gn(n).impliedNodeFormat===1);if(n.expression.kind===80){let g=n.expression,T=mf(Vs(g,-1,!0,!0,n));if(T){let M=Lf(T,111551);if(pee(T,g),Ed(T)&111551?(tc(g),!_&&!(n.flags&33554432)&&B.verbatimModuleSyntax&&M&&Ve(g,n.isExportEquals?f.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:f.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,yr(g))):!_&&!(n.flags&33554432)&&B.verbatimModuleSyntax&&Ve(g,n.isExportEquals?f.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:f.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,yr(g)),!_&&!(n.flags&33554432)&&em(B)&&!(T.flags&111551)){let W=Ed(T,!1,!0);T.flags&2097152&&W&788968&&!(W&111551)&&(!M||Gn(M)!==Gn(n))?Ve(g,n.isExportEquals?f._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:f._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,yr(g),Je):M&&Gn(M)!==Gn(n)&&ug(Ve(g,n.isExportEquals?f._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:f._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,yr(g),Je),M,yr(g))}}else tc(g);Af(B)&&RM(g,!0)}else tc(n.expression);_&&Ve(n,f.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),V6e(c),n.flags&33554432&&!Bl(n.expression)&&yn(n.expression,f.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),n.isExportEquals&&(z>=5&&z!==200&&(n.flags&33554432&&Gn(n).impliedNodeFormat===99||!(n.flags&33554432)&&Gn(n).impliedNodeFormat!==1)?yn(n,f.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):z===4&&!(n.flags&33554432)&&yn(n,f.Export_assignment_is_not_supported_when_module_flag_is_system))}function oht(n){return zc(n.exports,(a,c)=>c!=="export=")}function V6e(n){let a=Sr(n),c=qi(a);if(!c.exportsChecked){let u=a.exports.get("export=");if(u&&oht(a)){let g=Mm(u)||u.valueDeclaration;g&&!Tb(g)&&!ir(g)&&Ve(g,f.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}let _=Ch(a);_&&_.forEach(({declarations:g,flags:T},M)=>{if(M==="__export"||T&1920)return;let W=vv(g,EW(CIe,SW(fu)));if(!(T&524288&&W<=2)&&W>1&&!Xee(g))for(let V of g)xIe(V)&&Qa.add(Pr(V,f.Cannot_redeclare_exported_variable_0,Vi(M)))}),c.exportsChecked=!0}}function Xee(n){return n&&n.length>1&&n.every(a=>ir(a)&&Ps(a)&&(hT(a.expression)||$h(a.expression)))}function xa(n){if(n){let a=D;D=n,S=0,aht(n),D=a}}function aht(n){B2(n)&&gn(n.jsDoc,({comment:c,tags:u})=>{j6e(c),gn(u,_=>{j6e(_.comment),ir(n)&&xa(_)})});let a=n.kind;if(i)switch(a){case 267:case 263:case 264:case 262:i.throwIfCancellationRequested()}switch(a>=243&&a<=259&&z2(n)&&n.flowNode&&!C5(n.flowNode)&&pd(B.allowUnreachableCode===!1,n,f.Unreachable_code_detected),a){case 168:return HFe(n);case 169:return KFe(n);case 172:return XFe(n);case 171:return jft(n);case 185:case 184:case 179:case 180:case 181:return j8(n);case 174:case 173:return Uft(n);case 175:return Hft(n);case 176:return Kft(n);case 177:case 178:return $Fe(n);case 183:return Gve(n);case 182:return zft(n);case 186:return Qft(n);case 187:return Zft(n);case 188:return emt(n);case 189:return tmt(n);case 192:case 193:return nmt(n);case 196:case 190:case 191:return xa(n.type);case 197:return amt(n);case 198:return smt(n);case 194:return lmt(n);case 195:return cmt(n);case 203:return dmt(n);case 205:return umt(n);case 202:return pmt(n);case 335:return Pmt(n);case 336:return Nmt(n);case 353:case 345:case 347:return Emt(n);case 352:return Smt(n);case 351:return Tmt(n);case 331:case 332:case 333:return Imt(n);case 348:return xmt(n);case 355:return Rmt(n);case 324:Dmt(n);case 322:case 321:case 319:case 320:case 329:U6e(n),Bo(n,xa);return;case 325:sht(n);return;case 316:return xa(n.type);case 340:case 342:case 341:return Mmt(n);case 357:return Amt(n);case 350:return Cmt(n);case 199:return rmt(n);case 200:return imt(n);case 262:return bmt(n);case 241:case 268:return Vee(n);case 243:return Ymt(n);case 244:return $mt(n);case 245:return Qmt(n);case 246:return t_t(n);case 247:return n_t(n);case 248:return r_t(n);case 249:return o_t(n);case 250:return i_t(n);case 251:case 252:return p_t(n);case 253:return f_t(n);case 254:return m_t(n);case 255:return __t(n);case 256:return h_t(n);case 257:return g_t(n);case 258:return y_t(n);case 260:return qmt(n);case 208:return Xmt(n);case 263:return x_t(n);case 264:return O_t(n);case 265:return W_t(n);case 266:return B_t(n);case 267:return H_t(n);case 272:return q_t(n);case 271:return X_t(n);case 278:return Y_t(n);case 277:return iht(n);case 242:case 259:hy(n);return;case 282:return qft(n)}}function j6e(n){So(n)&&gn(n,a=>{SI(a)&&xa(a)})}function U6e(n){if(!ir(n))if(V4(n)||MR(n)){let a=ca(V4(n)?54:58),c=n.postfix?f._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:f._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,u=n.type,_=Ti(u);yn(n,c,a,Vn(MR(n)&&!(_===Fr||_===er)?ti(Tn([_,Me],n.postfix?void 0:ue)):_))}else yn(n,f.JSDoc_types_can_only_be_used_inside_documentation_comments)}function sht(n){U6e(n),xa(n.type);let{parent:a}=n;if(To(a)&&LR(a.parent)){Ja(a.parent.parameters)!==a&&Ve(n,f.A_rest_parameter_must_be_last_in_a_parameter_list);return}Q0(a)||Ve(n,f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);let c=n.parent.parent;if(!$m(c)){Ve(n,f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}let u=G2(c);if(!u)return;let _=cE(c);(!_||Ja(_.parameters).symbol!==u)&&Ve(n,f.A_rest_parameter_must_be_last_in_a_parameter_list)}function lht(n){let a=Ti(n.type),{parent:c}=n,u=n.parent.parent;if(Q0(n.parent)&&$m(u)){let _=cE(u),g=lH(u.parent.parent);if(_||g){let T=$s(g?u.parent.parent.typeExpression.parameters:_.parameters),M=G2(u);if(!T||M&&T.symbol===M&&Jh(T))return zd(a)}}return To(c)&&LR(c.parent)?zd(a):op(a)}function px(n){let a=Gn(n),c=Zr(a);c.flags&1?R.assert(!c.deferredNodes,"A type-checked file should have no deferred nodes."):(c.deferredNodes||(c.deferredNodes=new Set),c.deferredNodes.add(n))}function cht(n){let a=Zr(n);a.deferredNodes&&a.deferredNodes.forEach(dht),a.deferredNodes=void 0}function dht(n){var a,c;(a=rr)==null||a.push(rr.Phase.Check,"checkDeferredNode",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});let u=D;switch(D=n,S=0,n.kind){case 213:case 214:case 215:case 170:case 286:$A(n);break;case 218:case 219:case 174:case 173:ift(n);break;case 177:case 178:$Fe(n);break;case 231:I_t(n);break;case 168:Fft(n);break;case 285:fut(n);break;case 284:_ut(n);break;case 216:case 234:case 217:Ppt(n);break;case 222:po(n.expression);break;case 226:m6(n)&&$A(n);break}D=u,(c=rr)==null||c.pop()}function uht(n){var a,c;(a=rr)==null||a.push(rr.Phase.Check,"checkSourceFile",{path:n.path},!0),el("beforeCheck"),pht(n),el("afterCheck"),Yp("Check","beforeCheck","afterCheck"),(c=rr)==null||c.pop()}function H6e(n,a){if(a)return!1;switch(n){case 0:return!!B.noUnusedLocals;case 1:return!!B.noUnusedParameters;default:return R.assertNever(n)}}function K6e(n){return df.get(n.path)||Xe}function pht(n){let a=Zr(n);if(!(a.flags&1)){if(UN(n,B,e))return;Fgt(n),Vh(hS),Vh(gS),Vh(sb),Vh(lb),Vh(dg),gn(n.statements,xa),xa(n.endOfFileToken),cht(n),wp(n)&&jb(n),r(()=>{!n.isDeclarationFile&&(B.noUnusedLocals||B.noUnusedParameters)&&c6e(K6e(n),(c,u,_)=>{!Gx(c)&&H6e(u,!!(c.flags&33554432))&&Qa.add(_)}),n.isDeclarationFile||Omt()}),B.importsNotUsedAsValues===2&&!n.isDeclarationFile&&oc(n)&&nht(n),wp(n)&&V6e(n),hS.length&&(gn(hS,zmt),Vh(hS)),gS.length&&(gn(gS,Bmt),Vh(gS)),sb.length&&(gn(sb,Umt),Vh(sb)),lb.length&&(gn(lb,Kmt),Vh(lb)),a.flags|=1}}function J6e(n,a){try{return i=a,fht(n)}finally{i=void 0}}function ibe(){for(let n of t)n();t=[]}function obe(n){ibe();let a=r;r=c=>c(),uht(n),r=a}function fht(n){if(n){ibe();let a=Qa.getGlobalDiagnostics(),c=a.length;obe(n);let u=Qa.getDiagnostics(n.fileName),_=Qa.getGlobalDiagnostics();if(_!==a){let g=ene(a,_,zN);return bo(g,u)}else if(c===0&&_.length>0)return bo(_,u);return u}return gn(e.getSourceFiles(),obe),Qa.getDiagnostics()}function mht(){return ibe(),Qa.getGlobalDiagnostics()}function _ht(n,a){if(n.flags&67108864)return[];let c=oa(),u=!1;return _(),c.delete("this"),uge(c);function _(){for(;n;){switch(ch(n)&&n.locals&&!Rh(n)&&T(n.locals,a),n.kind){case 312:if(!oc(n))break;case 267:M(Sr(n).exports,a&2623475);break;case 266:T(Sr(n).exports,a&8);break;case 231:n.name&&g(n.symbol,a);case 263:case 264:u||T(Nb(Sr(n)),a&788968);break;case 218:n.name&&g(n.symbol,a);break}aie(n)&&g(Wt,a),u=na(n),n=n.parent}T(be,a)}function g(W,V){if(mR(W)&V){let te=W.escapedName;c.has(te)||c.set(te,W)}}function T(W,V){V&&W.forEach(te=>{g(te,V)})}function M(W,V){V&&W.forEach(te=>{!cl(te,281)&&!cl(te,280)&&te.escapedName!=="default"&&g(te,V)})}}function hht(n){return n.kind===80&&ER(n.parent)&&No(n.parent)===n}function q6e(n){for(;n.parent.kind===166;)n=n.parent;return n.parent.kind===183}function ght(n){for(;n.parent.kind===211;)n=n.parent;return n.parent.kind===233}function X6e(n,a){let c,u=id(n);for(;u&&!(c=a(u));)u=id(u);return c}function yht(n){return!!Fn(n,a=>Pl(a)&&Hf(a.body)||Vo(a)?!0:di(a)||Ws(a)?"quit":!1)}function abe(n,a){return!!X6e(n,c=>c===a)}function vht(n){for(;n.parent.kind===166;)n=n.parent;if(n.parent.kind===271)return n.parent.moduleReference===n?n.parent:void 0;if(n.parent.kind===277)return n.parent.expression===n?n.parent:void 0}function Yee(n){return vht(n)!==void 0}function bht(n){switch(zl(n.parent.parent)){case 1:case 3:return ff(n.parent);case 5:if(wr(n.parent)&&_R(n.parent)===n)return;case 4:case 2:return Sr(n.parent.parent)}}function Eht(n){let a=n.parent;for(;Tu(a);)n=a,a=a.parent;if(a&&a.kind===205&&a.qualifier===n)return a}function Sht(n){if(n.expression.kind===110){let a=ku(n,!1,!1);if(Yo(a)){let c=aWe(a);if(c){let u=p0(c,void 0),_=lWe(c,u);return _&&!xt(_)}}}}function Y6e(n){if(Lg(n))return ff(n.parent);if(ir(n)&&n.parent.kind===211&&n.parent===n.parent.parent.left&&!Ki(n)&&!yE(n)&&!Sht(n.parent)){let a=bht(n);if(a)return a}if(n.parent.kind===277&&Bl(n)){let a=Vs(n,2998271,!0);if(a&&a!==lt)return a}else if(Xu(n)&&Yee(n)){let a=uE(n,271);return R.assert(a!==void 0),X1(n,!0)}if(Xu(n)){let a=Eht(n);if(a){Ti(a);let c=Zr(n).resolvedSymbol;return c===lt?void 0:c}}for(;Jie(n);)n=n.parent;if(ght(n)){let a=0;n.parent.kind===233?(a=Xh(n)?788968:111551,f6(n.parent)&&(a|=111551)):a=1920,a|=2097152;let c=Bl(n)?Vs(n,a,!0):void 0;if(c)return c}if(n.parent.kind===348)return G2(n.parent);if(n.parent.kind===168&&n.parent.parent.kind===352){R.assert(!ir(n));let a=vie(n.parent);return a&&a.symbol}if(Yh(n)){if(Fl(n))return;let a=Fn(n,Um(SI,hP,yE)),c=a?901119:111551;if(n.kind===80){if(Yx(n)&&ux(n)){let _=vee(n.parent);return _===lt?void 0:_}let u=Vs(n,c,!0,!0,cE(n));if(!u&&a){let _=Fn(n,Um(di,fu));if(_)return dG(n,!0,Sr(_))}if(u&&a){let _=vT(n);if(_&&$0(_)&&_===u.valueDeclaration)return Vs(n,c,!0,!0,Gn(_))||u}return u}else{if(Ki(n))return See(n);if(n.kind===211||n.kind===166){let u=Zr(n);return u.resolvedSymbol?u.resolvedSymbol:(n.kind===211?(bee(n,0),u.resolvedSymbol||(u.resolvedSymbol=$6e(tc(n.expression),dv(n.name)))):wWe(n,0),!u.resolvedSymbol&&a&&Tu(n)?dG(n):u.resolvedSymbol)}else if(yE(n))return dG(n)}}else if(q6e(n)){let a=n.parent.kind===183?788968:1920,c=Vs(n,a,!1,!0);return c&&c!==lt?c:SZ(n)}if(n.parent.kind===182)return Vs(n,1)}function $6e(n,a){let c=dge(n,a);if(c.length&&n.members){let u=vZ(c_(n).members);if(c===hu(n))return u;if(u){let _=qi(u),g=to(c,M=>M.declaration),T=mn(g,is).join(",");if(_.filteredIndexSymbolCache||(_.filteredIndexSymbolCache=new Map),_.filteredIndexSymbolCache.has(T))return _.filteredIndexSymbolCache.get(T);{let M=Ka(131072,"__index");return M.declarations=to(c,W=>W.declaration),M.parent=n.aliasSymbol?n.aliasSymbol:n.symbol?n.symbol:zm(M.declarations[0].parent),_.filteredIndexSymbolCache.set(T,M),M}}}}function dG(n,a,c){if(Xu(n)){let T=Vs(n,901119,a,!0,cE(n));if(!T&&Fe(n)&&c&&(T=ts(ju(xp(c),n.escapedText,901119))),T)return T}let u=Fe(n)?c:dG(n.left,a,c),_=Fe(n)?n.escapedText:n.right.escapedText;if(u){let g=u.flags&111551&&_a(sr(u),"prototype"),T=g?sr(g):Ys(u);return _a(T,_)}}function zm(n,a){if(Yi(n))return oc(n)?ts(n.symbol):void 0;let{parent:c}=n,u=c.parent;if(!(n.flags&67108864)){if(RIe(n)){let _=Sr(c);return yI(n.parent)&&n.parent.propertyName===n?$ye(_):_}else if(U2(n))return Sr(c.parent);if(n.kind===80){if(Yee(n))return Y6e(n);if(c.kind===208&&u.kind===206&&n===c.propertyName){let _=fx(u),g=_a(_,n.escapedText);if(g)return g}else if(cP(c)&&c.name===n)return c.keywordToken===105&&yr(n)==="target"?Ave(c).symbol:c.keywordToken===102&&yr(n)==="meta"?Zwe().members.get("meta"):void 0}switch(n.kind){case 80:case 81:case 211:case 166:if(!NI(n))return Y6e(n);case 110:let _=ku(n,!1,!1);if(Yo(_)){let M=lm(_);if(M.thisParameter)return M.thisParameter}if(VF(n))return po(n).symbol;case 197:return MZ(n).symbol;case 108:return po(n).symbol;case 137:let g=n.parent;return g&&g.kind===176?g.parent.symbol:void 0;case 11:case 15:if(sE(n.parent.parent)&&gN(n.parent.parent)===n||(n.parent.kind===272||n.parent.kind===278)&&n.parent.moduleSpecifier===n||ir(n)&&Eu(n.parent,!1)||Op(n.parent)||Jv(n.parent)&&Ov(n.parent.parent)&&n.parent.parent.argument===n.parent)return _u(n,n,a);if(ra(c)&&gT(c)&&c.arguments[1]===n)return Sr(c);case 9:let T=qs(c)?c.argumentExpression===n?Ad(c.expression):void 0:Jv(c)&&MT(u)?Ti(u.objectType):void 0;return T&&_a(T,pl(n.text));case 90:case 100:case 39:case 86:return ff(n.parent);case 205:return Ov(n)?zm(n.argument.literal,a):void 0;case 95:return Ll(n.parent)?R.checkDefined(n.parent.symbol):void 0;case 102:case 105:return cP(n.parent)?yFe(n.parent).symbol:void 0;case 104:if(ur(n.parent)){let M=Ad(n.parent.right),W=Lve(M);return W?.symbol??M.symbol}return;case 236:return po(n).symbol;case 295:if(Yx(n)&&ux(n)){let M=vee(n.parent);return M===lt?void 0:M}default:return}}}function Tht(n){if(Fe(n)&&wr(n.parent)&&n.parent.name===n){let a=dv(n),c=Ad(n.parent.expression),u=c.flags&1048576?c.types:[c];return va(u,_=>jr(hu(_),g=>ix(a,g.keyType)))}}function Aht(n){if(n&&n.kind===304)return Vs(n.name,2208703)}function Iht(n){return Hd(n)?n.parent.parent.moduleSpecifier?Zg(n.parent.parent,n):Vs(n.propertyName||n.name,2998271):Vs(n,2998271)}function fx(n){if(Yi(n)&&!oc(n)||n.flags&67108864)return pt;let a=Hj(n),c=a&&Wf(Sr(a.class));if(Xh(n)){let u=Ti(n);return c?Up(u,c.thisType):u}if(Yh(n))return Q6e(n);if(c&&!a.isImplements){let u=Jc(Dp(c));return u?Up(u,c.thisType):pt}if(ER(n)){let u=Sr(n);return Ys(u)}if(hht(n)){let u=zm(n);return u?Ys(u):pt}if(Xa(n))return PA(n,!0,0)||pt;if(Ud(n)){let u=Sr(n);return u?sr(u):pt}if(RIe(n)){let u=zm(n);return u?sr(u):pt}if($o(n))return PA(n.parent,!0,0)||pt;if(Yee(n)){let u=zm(n);if(u){let _=Ys(u);return Ut(_)?sr(u):_}}return cP(n.parent)&&n.parent.keywordToken===n.kind?yFe(n.parent):n1(n)?Ige(!1):pt}function $ee(n){if(R.assert(n.kind===210||n.kind===209),n.parent.kind===250){let _=aG(n.parent);return ZA(n,_||pt)}if(n.parent.kind===226){let _=Ad(n.parent.right);return ZA(n,_||pt)}if(n.parent.kind===303){let _=ta(n.parent.parent,La),g=$ee(_)||pt,T=Vx(_.properties,n.parent);return wFe(_,g,T)}let a=ta(n.parent,pu),c=$ee(a)||pt,u=mv(65,c,Me,n.parent)||pt;return OFe(a,c,a.elements.indexOf(n),u)}function xht(n){let a=$ee(ta(n.parent.parent,lN));return a&&_a(a,n.escapedText)}function Q6e(n){return LN(n)&&(n=n.parent),yu(Ad(n))}function Z6e(n){let a=ff(n.parent);return na(n)?sr(a):Ys(a)}function e4e(n){let a=n.name;switch(a.kind){case 80:return Hu(yr(a));case 9:case 11:return Hu(a.text);case 167:let c=Eg(a);return Td(c,12288)?c:Ne;default:return R.fail("Unsupported property name.")}}function sbe(n){n=Pu(n);let a=oa(_s(n)),c=Ko(n,0).length?Un:Ko(n,1).length?go:void 0;return c&&gn(_s(c),u=>{a.has(u.escapedName)||a.set(u.escapedName,u)}),JE(a)}function Qee(n){return Ko(n,0).length!==0||Ko(n,1).length!==0}function t4e(n){let a=Rht(n);return a?va(a,t4e):[n]}function Rht(n){if(Tl(n)&6)return to(qi(n).containingType.types,a=>_a(a,n.escapedName));if(n.flags&33554432){let{links:{leftSpread:a,rightSpread:c,syntheticOrigin:u}}=n;return a?[a,c]:u?[u]:pI(Dht(n))}}function Dht(n){let a,c=n;for(;c=qi(c).target;)a=c;return a}function Cht(n){if(rl(n))return!1;let a=Ro(n,Fe);if(!a)return!1;let c=a.parent;return c?!((wr(c)||mc(c))&&c.name===a)&&Q8(a)===Wt:!1}function Nht(n){let a=_u(n.parent,n);if(!a||pN(a))return!0;let c=ov(a);a=Ip(a);let u=qi(a);return u.exportsSomeValue===void 0&&(u.exportsSomeValue=c?!!(a.flags&111551):zc(Ch(a),_)),u.exportsSomeValue;function _(g){return g=Vl(g),g&&!!(Ed(g)&111551)}}function Pht(n){return l2(n.parent)&&n===n.parent.name}function Mht(n,a){var c;let u=Ro(n,Fe);if(u){let _=Q8(u,Pht(u));if(_){if(_.flags&1048576){let T=ts(_.exportSymbol);if(!a&&T.flags&944&&!(T.flags&3))return;_=T}let g=Du(_);if(g){if(g.flags&512&&((c=g.valueDeclaration)==null?void 0:c.kind)===312){let T=g.valueDeclaration,M=Gn(u);return T!==M?void 0:T}return Fn(u.parent,T=>l2(T)&&Sr(T)===g)}}}}function Lht(n){let a=rae(n);if(a)return a;let c=Ro(n,Fe);if(c){let u=Kht(c);if(bA(u,111551)&&!Lf(u,111551))return Mm(u)}}function kht(n){return n.valueDeclaration&&Xa(n.valueDeclaration)&&Mx(n.valueDeclaration).parent.kind===299}function n4e(n){if(n.flags&418&&n.valueDeclaration&&!Yi(n.valueDeclaration)){let a=qi(n);if(a.isDeclarationWithCollidingName===void 0){let c=ph(n.valueDeclaration);if(zre(c)||kht(n)){let u=Zr(n.valueDeclaration);if(hl(c.parent,n.escapedName,111551,void 0,void 0,!1))a.isDeclarationWithCollidingName=!0;else if(u.flags&16384){let _=u.flags&32768,g=Pv(c,!1),T=c.kind===241&&Pv(c.parent,!1);a.isDeclarationWithCollidingName=!Kre(c)&&(!_||!g&&!T)}else a.isDeclarationWithCollidingName=!1}}return a.isDeclarationWithCollidingName}return!1}function wht(n){if(!rl(n)){let a=Ro(n,Fe);if(a){let c=Q8(a);if(c&&n4e(c))return c.valueDeclaration}}}function Oht(n){let a=Ro(n,Ud);if(a){let c=Sr(a);if(c)return n4e(c)}return!1}function r4e(n){switch(R.assert(ft),n.kind){case 271:return Zee(Sr(n));case 273:case 274:case 276:case 281:let a=Sr(n);return!!a&&Zee(a,!0);case 278:let c=n.exportClause;return!!c&&(vh(c)||gt(c.elements,r4e));case 277:return n.expression&&n.expression.kind===80?Zee(Sr(n),!0):!0}return!1}function Wht(n){let a=Ro(n,Zc);return a===void 0||a.parent.kind!==312||!$x(a)?!1:Zee(Sr(a))&&a.moduleReference&&!Fl(a.moduleReference)}function Zee(n,a){if(!n)return!1;let c=mf(Oc(n));return c===lt?!a||!Lf(n):!!(Ed(n,a,!0)&111551)&&(G0(B)||!$8(c))}function $8(n){return Mve(n)||!!n.constEnumOnlyModule}function ete(n,a){if(R.assert(ft),fb(n)){let c=Sr(n),u=c&&qi(c);if(u?.referenced)return!0;let _=qi(c).aliasTarget;if(_&&cu(n)&32&&Ed(_)&111551&&(G0(B)||!$8(_)))return!0}return a?!!Bo(n,c=>ete(c,a)):!1}function i4e(n){if(Hf(n.body)){if(Mv(n)||Ny(n))return!1;let a=Sr(n),c=MS(a);return c.length>1||c.length===1&&c[0].declaration!==n}return!1}function o4e(n){return!!J&&!h8(n)&&!$m(n)&&!!n.initializer&&!Qr(n,31)}function Fht(n){return J&&h8(n)&&!n.initializer&&Qr(n,31)}function zht(n){let a=Ro(n,Ec);if(!a)return!1;let c=Sr(a);return!c||!(c.flags&16)?!1:!!zc(xp(c),u=>u.flags&111551&&j6(u.valueDeclaration))}function Bht(n){let a=Ro(n,Ec);if(!a)return Xe;let c=Sr(a);return c&&_s(sr(c))||Xe}function TC(n){var a;let c=n.id||0;return c<0||c>=_S.length?0:((a=_S[c])==null?void 0:a.flags)||0}function AC(n){return F6e(n.parent),Zr(n).enumMemberValue}function a4e(n){switch(n.kind){case 306:case 211:case 212:return!0}return!1}function lbe(n){if(n.kind===306)return AC(n);let a=Zr(n).resolvedSymbol;if(a&&a.flags&8){let c=a.valueDeclaration;if(I0(c.parent))return AC(c)}}function cbe(n){return!!(n.flags&524288)&&Ko(n,0).length>0}function Ght(n,a){var c;let u=Ro(n,Xu);if(!u||a&&(a=Ro(a),!a))return 0;let _=!1;if(Tu(u)){let te=Vs(Fp(u),111551,!0,!0,a);_=!!((c=te?.declarations)!=null&&c.every(oE))}let g=Vs(u,111551,!0,!0,a),T=g&&g.flags&2097152?Oc(g):g;_||(_=!!(g&&Lf(g,111551)));let M=Vs(u,788968,!0,!0,a),W=M&&M.flags&2097152?Oc(M):M;if(g||_||(_=!!(M&&Lf(M,788968))),T&&T===W){let te=xge(!1);if(te&&T===te)return 9;let ye=sr(T);if(ye&&ns(ye))return _?10:1}if(!W)return _?11:0;let V=Ys(W);return Ut(V)?_?11:0:V.flags&3?11:Td(V,245760)?2:Td(V,528)?6:Td(V,296)?3:Td(V,2112)?4:Td(V,402653316)?5:Oa(V)?7:Td(V,12288)?8:cbe(V)?10:Gf(V)?7:11}function Vht(n,a,c,u,_){let g=Ro(n,rie);if(!g)return L.createToken(133);let T=Sr(g),M=T&&!(T.flags&133120)?zS(sr(T)):pt;return M.flags&8192&&M.symbol===T&&(c|=1048576),_&&(M=Bb(M)),Et.typeToTypeNode(M,a,c|1024,u)}function jht(n,a,c,u){let _=Ro(n,Yo);if(!_)return L.createToken(133);let g=lm(_);return Et.typeToTypeNode(us(g),a,c|1024,u)}function Uht(n,a,c,u){let _=Ro(n,ht);if(!_)return L.createToken(133);let g=Hp(Q6e(_));return Et.typeToTypeNode(g,a,c|1024,u)}function Hht(n){return be.has(pl(n))}function Q8(n,a){let c=Zr(n).resolvedSymbol;if(c)return c;let u=n;if(a){let _=n.parent;Ud(_)&&n===_.name&&(u=X(_))}return hl(u,n.escapedText,3257279,void 0,void 0,!0)}function Kht(n){let a=Zr(n).resolvedSymbol;return a&&a!==lt?a:hl(n,n.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function Jht(n){if(!rl(n)){let a=Ro(n,Fe);if(a){let c=Q8(a);if(c)return mf(c).valueDeclaration}}}function qht(n){if(!rl(n)){let a=Ro(n,Fe);if(a){let c=Q8(a);if(c)return jr(mf(c).declarations,u=>{switch(u.kind){case 260:case 169:case 208:case 172:case 303:case 304:case 306:case 210:case 262:case 218:case 219:case 263:case 231:case 266:case 174:case 177:case 178:case 267:return!0}return!1})}}}function Xht(n){return CF(n)||Oi(n)&&pG(n)?OS(sr(Sr(n))):!1}function Yht(n,a,c){let u=n.flags&1056?Et.symbolToExpression(n.symbol,111551,a,void 0,c):n===wn?L.createTrue():n===Kt&&L.createFalse();if(u)return u;let _=n.value;return typeof _=="object"?L.createBigIntLiteral(_):typeof _=="string"?L.createStringLiteral(_):_<0?L.createPrefixUnaryExpression(41,L.createNumericLiteral(-_)):L.createNumericLiteral(_)}function $ht(n,a){let c=sr(Sr(n));return Yht(c,n,a)}function s4e(n){return n?(FE(n),Gn(n).localJsxFactory||Xg):Xg}function dbe(n){if(n){let a=Gn(n);if(a){if(a.localJsxFragmentFactory)return a.localJsxFragmentFactory;let c=a.pragmas.get("jsxfrag"),u=So(c)?c[0]:c;if(u)return a.localJsxFragmentFactory=l1(u.arguments.factory,ce),a.localJsxFragmentFactory}}if(B.jsxFragmentFactory)return l1(B.jsxFragmentFactory,ce)}function Qht(){let n=e.getResolvedTypeReferenceDirectives(),a;return n&&(a=new Map,n.forEach(({resolvedTypeReferenceDirective:W},V,te)=>{if(!W?.resolvedFileName)return;let ye=e.getSourceFile(W.resolvedFileName);ye&&M(ye,V,te)})),{getReferencedExportContainer:Mht,getReferencedImportDeclaration:Lht,getReferencedDeclarationWithCollidingName:wht,isDeclarationWithCollidingName:Oht,isValueAliasDeclaration:W=>{let V=Ro(W);return V&&ft?r4e(V):!0},hasGlobalName:Hht,isReferencedAliasDeclaration:(W,V)=>{let te=Ro(W);return te&&ft?ete(te,V):!0},getNodeCheckFlags:W=>{let V=Ro(W);return V?TC(V):0},isTopLevelValueImportEqualsWithEntityName:Wht,isDeclarationVisible:o_,isImplementationOfOverload:i4e,isRequiredInitializedParameter:o4e,isOptionalUninitializedParameterProperty:Fht,isExpandoFunctionDeclaration:zht,getPropertiesOfContainerFunction:Bht,createTypeOfDeclaration:Vht,createReturnTypeOfSignatureDeclaration:jht,createTypeOfExpression:Uht,createLiteralConstValue:$ht,isSymbolAccessible:wi,isEntityNameVisible:bb,getConstantValue:W=>{let V=Ro(W,a4e);return V?lbe(V):void 0},collectLinkedAliases:RM,getReferencedValueDeclaration:Jht,getReferencedValueDeclarations:qht,getTypeReferenceSerializationKind:Ght,isOptionalParameter:h8,moduleExportsSomeValue:Nht,isArgumentsLocalBinding:Cht,getExternalModuleFileFromDeclaration:W=>{let V=Ro(W,qre);return V&&ube(V)},getTypeReferenceDirectivesForEntityName:_,getTypeReferenceDirectivesForSymbol:g,isLiteralConstDeclaration:Xht,isLateBound:W=>{let V=Ro(W,Ud),te=V&&Sr(V);return!!(te&&Tl(te)&4096)},getJsxFactoryEntity:s4e,getJsxFragmentFactoryEntity:dbe,getAllAccessorDeclarations(W){W=Ro(W,iF);let V=W.kind===178?177:178,te=cl(Sr(W),V),ye=te&&te.posey(W,W,void 0),isBindingCapturedByNode:(W,V)=>{let te=Ro(W),ye=Ro(V);return!!te&&!!ye&&(Oi(ye)||Xa(ye))&&Sdt(te,ye)},getDeclarationStatementsForSourceFile:(W,V,te,ye)=>{let _e=Ro(W);R.assert(_e&&_e.kind===312,"Non-sourcefile node passed into getDeclarationsForSourceFile");let je=Sr(W);return je?je.exports?Et.symbolTableToDeclarationStatements(je.exports,W,V,te,ye):[]:W.locals?Et.symbolTableToDeclarationStatements(W.locals,W,V,te,ye):[]},isImportRequiredByAugmentation:c,tryFindAmbientModule:W=>{let V=Ro(W),te=V&&ss(V)?V.text:void 0;return te!==void 0?hZ(te,!0):void 0}};function c(W){let V=Gn(W);if(!V.symbol)return!1;let te=ube(W);if(!te||te===V)return!1;let ye=Ch(V.symbol);for(let _e of Oo(ye.values()))if(_e.mergeId){let je=ts(_e);if(je.declarations){for(let mt of je.declarations)if(Gn(mt)===te)return!0}}return!1}function u(W){return W.parent&&W.parent.kind===233&&W.parent.parent&&W.parent.parent.kind===298}function _(W){if(!a)return;let V;W.parent.kind===167?V=1160127:(V=790504,(W.kind===80&&TT(W)||W.kind===211&&!u(W))&&(V=1160127));let te=Vs(W,V,!0);return te&&te!==lt?g(te,V):void 0}function g(W,V){if(!a||!T(W))return;let te;for(let ye of W.declarations)if(ye.symbol&&ye.symbol.flags&V){let _e=Gn(ye),je=a.get(_e.path);if(je)(te||(te=[])).push(je);else return}return te}function T(W){if(!W.declarations)return!1;let V=W;for(;;){let te=Du(V);if(te)V=te;else break}if(V.valueDeclaration&&V.valueDeclaration.kind===312&&V.flags&512)return!1;for(let te of W.declarations){let ye=Gn(te);if(a.has(ye.path))return!0}return!1}function M(W,V,te){if(!a.has(W.path)){a.set(W.path,[V,te]);for(let{fileName:ye}of W.referencedFiles){let _e=ez(ye,W.fileName),je=e.getSourceFile(_e);je&&M(je,V,te||W.impliedNodeFormat)}}}}function ube(n){let a=n.kind===267?ri(n.name,Ca):eR(n),c=ey(a,a,void 0);if(c)return cl(c,312)}function Zht(){for(let a of e.getSourceFiles())Ose(a,B);vs=new Map;let n;for(let a of e.getSourceFiles())if(!a.redirectInfo){if(!wp(a)){let c=a.locals.get("globalThis");if(c?.declarations)for(let u of c.declarations)Qa.add(Pr(u,f.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));r_(be,a.locals)}a.jsGlobalAugmentations&&r_(be,a.jsGlobalAugmentations),a.patternAmbientModules&&a.patternAmbientModules.length&&(im=bo(im,a.patternAmbientModules)),a.moduleAugmentations.length&&(n||(n=[])).push(a.moduleAugmentations),a.symbol&&a.symbol.globalExports&&a.symbol.globalExports.forEach((u,_)=>{be.has(_)||be.set(_,u)})}if(n)for(let a of n)for(let c of a)E_(c.parent)&&zD(c);if(yS(be,lA,f.Declaration_name_conflicts_with_built_in_global_identifier_0),qi(ze).type=Pt,qi(Wt).type=ec("IArguments",0,!0),qi(lt).type=pt,qi(tt).type=kf(16,tt),qo=ec("Array",1,!0),Re=ec("Object",0,!0),Lt=ec("Function",0,!0),Un=pe&&ec("CallableFunction",0,!0)||Lt,go=pe&&ec("NewableFunction",0,!0)||Lt,Ql=ec("String",0,!0),gc=ec("Number",0,!0),sl=ec("Boolean",0,!0),_l=ec("RegExp",0,!0),Zl=zd(G),Hc=zd(et),Hc===Na&&(Hc=Cs(void 0,K,Xe,Xe,Xe)),Qo=oOe("ReadonlyArray",1)||qo,cf=Qo?v8(Qo,[G]):Zl,Gl=oOe("ThisType",1),n)for(let a of n)for(let c of a)E_(c.parent)||zD(c);vs.forEach(({firstFile:a,secondFile:c,conflictingSymbols:u})=>{if(u.size<8)u.forEach(({isBlockScoped:_,firstFileLocations:g,secondFileLocations:T},M)=>{let W=_?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0;for(let V of g)Yg(V,W,M,T);for(let V of T)Yg(V,W,M,g)});else{let _=Oo(u.keys()).join(", ");Qa.add(Ma(Pr(a,f.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,_),Pr(c,f.Conflicts_are_in_this_file))),Qa.add(Ma(Pr(c,f.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,_),Pr(a,f.Conflicts_are_in_this_file)))}}),vs=void 0}function xc(n,a){if((s&a)!==a&&B.importHelpers){let c=Gn(n);if(TI(c,B)&&!(n.flags&33554432)){let u=tgt(c,n);if(u!==lt){let _=a&~s;for(let g=1;g<=33554432;g<<=1)if(_&g)for(let T of egt(g)){if(o.has(T))continue;o.add(T);let M=Vl(ju(Ch(u),pl(T),111551));M?g&524288?gt(MS(M),W=>Kp(W)>3)||Ve(n,f.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,Vv,T,4):g&1048576?gt(MS(M),W=>Kp(W)>4)||Ve(n,f.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,Vv,T,5):g&1024&&(gt(MS(M),W=>Kp(W)>2)||Ve(n,f.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,Vv,T,3)):Ve(n,f.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,Vv,T)}}s|=a}}}function egt(n){switch(n){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return ee?["__decorate"]:["__esDecorate","__runInitializers"];case 16:return["__metadata"];case 32:return["__param"];case 64:return["__awaiter"];case 128:return["__generator"];case 256:return["__values"];case 512:return["__read"];case 1024:return["__spreadArray"];case 2048:return["__await"];case 4096:return["__asyncGenerator"];case 8192:return["__asyncDelegator"];case 16384:return["__asyncValues"];case 32768:return["__exportStar"];case 65536:return["__importStar"];case 131072:return["__importDefault"];case 262144:return["__makeTemplateObject"];case 524288:return["__classPrivateFieldGet"];case 1048576:return["__classPrivateFieldSet"];case 2097152:return["__classPrivateFieldIn"];case 4194304:return["__createBinding"];case 8388608:return["__setFunctionName"];case 16777216:return["__propKey"];case 33554432:return["__addDisposableResource","__disposeResources"];default:return R.fail("Unrecognized helper")}}function tgt(n,a){return l||(l=j_(n,Vv,f.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,a)||lt),l}function Tg(n){var a;let c=igt(n)||ngt(n);if(c!==void 0)return c;if(To(n)&&k0(n))return fd(n,f.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);let u=Ml(n)?n.declarationList.flags&7:0,_,g,T,M,W,V=0,te=!1,ye=!1;for(let _e of n.modifiers)if(yd(_e)){if(GF(ee,n,n.parent,n.parent.parent)){if(ee&&(n.kind===177||n.kind===178)){let je=AT(n.parent.members,n);if(bf(je.firstAccessor)&&n===je.secondAccessor)return fd(n,f.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return n.kind===174&&!Hf(n.body)?fd(n,f.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):fd(n,f.Decorators_are_not_valid_here);if(V&-34849)return yn(_e,f.Decorators_are_not_valid_here);if(ye&&V&98303){R.assertIsDefined(W);let je=Gn(_e);return HS(je)?!1:(Ma(Ve(_e,f.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Pr(W,f.Decorator_used_before_export_here)),!0)}V|=32768,V&98303?V&32&&(te=!0):ye=!0,W??(W=_e)}else{if(_e.kind!==148){if(n.kind===171||n.kind===173)return yn(_e,f._0_modifier_cannot_appear_on_a_type_member,ca(_e.kind));if(n.kind===181&&(_e.kind!==126||!di(n.parent)))return yn(_e,f._0_modifier_cannot_appear_on_an_index_signature,ca(_e.kind))}if(_e.kind!==103&&_e.kind!==147&&_e.kind!==87&&n.kind===168)return yn(_e,f._0_modifier_cannot_appear_on_a_type_parameter,ca(_e.kind));switch(_e.kind){case 87:{if(n.kind!==266&&n.kind!==168)return yn(n,f.A_class_member_cannot_have_the_0_keyword,ca(87));let At=nm(n.parent)&&dE(n.parent)||n.parent;if(n.kind===168&&!(Ws(At)||di(At)||gh(At)||xR(At)||XI(At)||Lk(At)||hh(At)))return yn(_e,f._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,ca(_e.kind));break}case 164:if(V&16)return yn(_e,f._0_modifier_already_seen,"override");if(V&128)return yn(_e,f._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(V&8)return yn(_e,f._0_modifier_must_precede_1_modifier,"override","readonly");if(V&512)return yn(_e,f._0_modifier_must_precede_1_modifier,"override","accessor");if(V&1024)return yn(_e,f._0_modifier_must_precede_1_modifier,"override","async");V|=16,M=_e;break;case 125:case 124:case 123:let je=NA(MI(_e.kind));if(V&7)return yn(_e,f.Accessibility_modifier_already_seen);if(V&16)return yn(_e,f._0_modifier_must_precede_1_modifier,je,"override");if(V&256)return yn(_e,f._0_modifier_must_precede_1_modifier,je,"static");if(V&512)return yn(_e,f._0_modifier_must_precede_1_modifier,je,"accessor");if(V&8)return yn(_e,f._0_modifier_must_precede_1_modifier,je,"readonly");if(V&1024)return yn(_e,f._0_modifier_must_precede_1_modifier,je,"async");if(n.parent.kind===268||n.parent.kind===312)return yn(_e,f._0_modifier_cannot_appear_on_a_module_or_namespace_element,je);if(V&64)return _e.kind===123?yn(_e,f._0_modifier_cannot_be_used_with_1_modifier,je,"abstract"):yn(_e,f._0_modifier_must_precede_1_modifier,je,"abstract");if(au(n))return yn(_e,f.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);V|=MI(_e.kind);break;case 126:if(V&256)return yn(_e,f._0_modifier_already_seen,"static");if(V&8)return yn(_e,f._0_modifier_must_precede_1_modifier,"static","readonly");if(V&1024)return yn(_e,f._0_modifier_must_precede_1_modifier,"static","async");if(V&512)return yn(_e,f._0_modifier_must_precede_1_modifier,"static","accessor");if(n.parent.kind===268||n.parent.kind===312)return yn(_e,f._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(n.kind===169)return yn(_e,f._0_modifier_cannot_appear_on_a_parameter,"static");if(V&64)return yn(_e,f._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(V&16)return yn(_e,f._0_modifier_must_precede_1_modifier,"static","override");V|=256,_=_e;break;case 129:if(V&512)return yn(_e,f._0_modifier_already_seen,"accessor");if(V&8)return yn(_e,f._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(V&128)return yn(_e,f._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(n.kind!==172)return yn(_e,f.accessor_modifier_can_only_appear_on_a_property_declaration);V|=512;break;case 148:if(V&8)return yn(_e,f._0_modifier_already_seen,"readonly");if(n.kind!==172&&n.kind!==171&&n.kind!==181&&n.kind!==169)return yn(_e,f.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(V&512)return yn(_e,f._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");V|=8;break;case 95:if(B.verbatimModuleSyntax&&!(n.flags&33554432)&&n.kind!==265&&n.kind!==264&&n.kind!==267&&n.parent.kind===312&&(z===1||Gn(n).impliedNodeFormat===1))return yn(_e,f.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(V&32)return yn(_e,f._0_modifier_already_seen,"export");if(V&128)return yn(_e,f._0_modifier_must_precede_1_modifier,"export","declare");if(V&64)return yn(_e,f._0_modifier_must_precede_1_modifier,"export","abstract");if(V&1024)return yn(_e,f._0_modifier_must_precede_1_modifier,"export","async");if(di(n.parent))return yn(_e,f._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(n.kind===169)return yn(_e,f._0_modifier_cannot_appear_on_a_parameter,"export");if(u===4)return yn(_e,f._0_modifier_cannot_appear_on_a_using_declaration,"export");if(u===6)return yn(_e,f._0_modifier_cannot_appear_on_an_await_using_declaration,"export");V|=32;break;case 90:let mt=n.parent.kind===312?n.parent:n.parent.parent;if(mt.kind===267&&!Pd(mt))return yn(_e,f.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(u===4)return yn(_e,f._0_modifier_cannot_appear_on_a_using_declaration,"default");if(u===6)return yn(_e,f._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(V&32){if(te)return yn(W,f.Decorators_are_not_valid_here)}else return yn(_e,f._0_modifier_must_precede_1_modifier,"export","default");V|=2048;break;case 138:if(V&128)return yn(_e,f._0_modifier_already_seen,"declare");if(V&1024)return yn(_e,f._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(V&16)return yn(_e,f._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(di(n.parent)&&!Vo(n))return yn(_e,f._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(n.kind===169)return yn(_e,f._0_modifier_cannot_appear_on_a_parameter,"declare");if(u===4)return yn(_e,f._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(u===6)return yn(_e,f._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(n.parent.flags&33554432&&n.parent.kind===268)return yn(_e,f.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(au(n))return yn(_e,f._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(V&512)return yn(_e,f._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");V|=128,g=_e;break;case 128:if(V&64)return yn(_e,f._0_modifier_already_seen,"abstract");if(n.kind!==263&&n.kind!==185){if(n.kind!==174&&n.kind!==172&&n.kind!==177&&n.kind!==178)return yn(_e,f.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(n.parent.kind===263&&Qr(n.parent,64))){let At=n.kind===172?f.Abstract_properties_can_only_appear_within_an_abstract_class:f.Abstract_methods_can_only_appear_within_an_abstract_class;return yn(_e,At)}if(V&256)return yn(_e,f._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(V&2)return yn(_e,f._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(V&1024&&T)return yn(T,f._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(V&16)return yn(_e,f._0_modifier_must_precede_1_modifier,"abstract","override");if(V&512)return yn(_e,f._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(ou(n)&&n.name.kind===81)return yn(_e,f._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");V|=64;break;case 134:if(V&1024)return yn(_e,f._0_modifier_already_seen,"async");if(V&128||n.parent.flags&33554432)return yn(_e,f._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(n.kind===169)return yn(_e,f._0_modifier_cannot_appear_on_a_parameter,"async");if(V&64)return yn(_e,f._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");V|=1024,T=_e;break;case 103:case 147:{let At=_e.kind===103?8192:16384,rn=_e.kind===103?"in":"out",sn=nm(n.parent)&&(dE(n.parent)||Vr((a=rR(n.parent))==null?void 0:a.tags,zT))||n.parent;if(n.kind!==168||sn&&!(fu(sn)||di(sn)||Tm(sn)||zT(sn)))return yn(_e,f._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,rn);if(V&At)return yn(_e,f._0_modifier_already_seen,rn);if(At&8192&&V&16384)return yn(_e,f._0_modifier_must_precede_1_modifier,"in","out");V|=At;break}}}return n.kind===176?V&256?yn(_,f._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):V&16?yn(M,f._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):V&1024?yn(T,f._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(n.kind===272||n.kind===271)&&V&128?yn(g,f.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):n.kind===169&&V&31&&$o(n.name)?yn(n,f.A_parameter_property_may_not_be_declared_using_a_binding_pattern):n.kind===169&&V&31&&n.dotDotDotToken?yn(n,f.A_parameter_property_cannot_be_declared_using_a_rest_parameter):V&1024?agt(n,T):!1}function ngt(n){if(!n.modifiers)return!1;let a=rgt(n);return a&&fd(a,f.Modifiers_cannot_appear_here)}function tte(n,a){let c=Vr(n.modifiers,Ta);return c&&c.kind!==a?c:void 0}function rgt(n){switch(n.kind){case 177:case 178:case 176:case 172:case 171:case 174:case 173:case 181:case 267:case 272:case 271:case 278:case 277:case 218:case 219:case 169:case 168:return;case 175:case 303:case 304:case 270:case 282:return Vr(n.modifiers,Ta);default:if(n.parent.kind===268||n.parent.kind===312)return;switch(n.kind){case 262:return tte(n,134);case 263:case 185:return tte(n,128);case 231:case 264:case 265:return Vr(n.modifiers,Ta);case 243:return n.declarationList.flags&4?tte(n,135):Vr(n.modifiers,Ta);case 266:return tte(n,87);default:R.assertNever(n)}}}function igt(n){let a=ogt(n);return a&&fd(a,f.Decorators_are_not_valid_here)}function ogt(n){return TH(n)?Vr(n.modifiers,yd):void 0}function agt(n,a){switch(n.kind){case 174:case 262:case 218:case 219:return!1}return yn(a,f._0_modifier_cannot_be_used_here,"async")}function mx(n,a=f.Trailing_comma_not_allowed){return n&&n.hasTrailingComma?KS(n[0],n.end-1,1,a):!1}function l4e(n,a){if(n&&n.length===0){let c=n.pos-1,u=Pa(a.text,n.end)+1;return KS(a,c,u-c,f.Type_parameter_list_cannot_be_empty)}return!1}function sgt(n){let a=!1,c=n.length;for(let u=0;u!!a.initializer||$o(a.name)||Jh(a))}function cgt(n){if(ce>=3){let a=n.body&&Ho(n.body)&&vH(n.body.statements);if(a){let c=lgt(n.parameters);if(Nn(c)){gn(c,_=>{Ma(Ve(_,f.This_parameter_is_not_allowed_with_use_strict_directive),Pr(a,f.use_strict_directive_used_here))});let u=c.map((_,g)=>g===0?Pr(_,f.Non_simple_parameter_declared_here):Pr(_,f.and_here));return Ma(Ve(a,f.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...u),!0}}}return!1}function nte(n){let a=Gn(n);return Tg(n)||l4e(n.typeParameters,a)||sgt(n.parameters)||ugt(n,a)||Ws(n)&&cgt(n)}function dgt(n){let a=Gn(n);return hgt(n)||l4e(n.typeParameters,a)}function ugt(n,a){if(!Fs(n))return!1;n.typeParameters&&!(Nn(n.typeParameters)>1||n.typeParameters.hasTrailingComma||n.typeParameters[0].constraint)&&a&&bc(a.fileName,[".mts",".cts"])&&yn(n.typeParameters[0],f.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);let{equalsGreaterThanToken:c}=n,u=gs(a,c.pos).line,_=gs(a,c.end).line;return u!==_&&yn(c,f.Line_terminator_not_permitted_before_arrow)}function pgt(n){let a=n.parameters[0];if(n.parameters.length!==1)return yn(a?a.name:n,f.An_index_signature_must_have_exactly_one_parameter);if(mx(n.parameters,f.An_index_signature_cannot_have_a_trailing_comma),a.dotDotDotToken)return yn(a.dotDotDotToken,f.An_index_signature_cannot_have_a_rest_parameter);if(u6(a))return yn(a.name,f.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(a.questionToken)return yn(a.questionToken,f.An_index_signature_parameter_cannot_have_a_question_mark);if(a.initializer)return yn(a.name,f.An_index_signature_parameter_cannot_have_an_initializer);if(!a.type)return yn(a.name,f.An_index_signature_parameter_must_have_a_type_annotation);let c=Ti(a.type);return Fm(c,u=>!!(u.flags&8576))||uC(c)?yn(a.name,f.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):ap(c,bZ)?n.type?!1:yn(n,f.An_index_signature_must_have_a_type_annotation):yn(a.name,f.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function fgt(n){return Tg(n)||pgt(n)}function mgt(n,a){if(a&&a.length===0){let c=Gn(n),u=a.pos-1,_=Pa(c.text,a.end)+1;return KS(c,u,_-u,f.Type_argument_list_cannot_be_empty)}return!1}function uG(n,a){return mx(a)||mgt(n,a)}function _gt(n){return n.questionDotToken||n.flags&64?yn(n.template,f.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function c4e(n){let a=n.types;if(mx(a))return!0;if(a&&a.length===0){let c=ca(n.token);return KS(n,a.pos,0,f._0_list_cannot_be_empty,c)}return gt(a,d4e)}function d4e(n){return By(n)&&lP(n.expression)&&n.typeArguments?yn(n,f.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):uG(n,n.typeArguments)}function hgt(n){let a=!1,c=!1;if(!Tg(n)&&n.heritageClauses)for(let u of n.heritageClauses){if(u.token===96){if(a)return fd(u,f.extends_clause_already_seen);if(c)return fd(u,f.extends_clause_must_precede_implements_clause);if(u.types.length>1)return fd(u.types[1],f.Classes_can_only_extend_a_single_class);a=!0}else{if(R.assert(u.token===119),c)return fd(u,f.implements_clause_already_seen);c=!0}c4e(u)}}function ggt(n){let a=!1;if(n.heritageClauses)for(let c of n.heritageClauses){if(c.token===96){if(a)return fd(c,f.extends_clause_already_seen);a=!0}else return R.assert(c.token===119),fd(c,f.Interface_declaration_cannot_have_implements_clause);c4e(c)}return!1}function rte(n){if(n.kind!==167)return!1;let a=n;return a.expression.kind===226&&a.expression.operatorToken.kind===28?yn(a.expression,f.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function pbe(n){if(n.asteriskToken){if(R.assert(n.kind===262||n.kind===218||n.kind===174),n.flags&33554432)return yn(n.asteriskToken,f.Generators_are_not_allowed_in_an_ambient_context);if(!n.body)return yn(n.asteriskToken,f.An_overload_signature_cannot_be_declared_as_a_generator)}}function fbe(n,a){return!!n&&yn(n,a)}function u4e(n,a){return!!n&&yn(n,a)}function ygt(n,a){let c=new Map;for(let u of n.properties){if(u.kind===305){if(a){let T=ms(u.expression);if(pu(T)||La(T))return yn(u.expression,f.A_rest_element_cannot_contain_a_binding_pattern)}continue}let _=u.name;if(_.kind===167&&rte(_),u.kind===304&&!a&&u.objectAssignmentInitializer&&yn(u.equalsToken,f.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern),_.kind===81&&yn(_,f.Private_identifiers_are_not_allowed_outside_class_bodies),Am(u)&&u.modifiers)for(let T of u.modifiers)Ta(T)&&(T.kind!==134||u.kind!==174)&&yn(T,f._0_modifier_cannot_be_used_here,uc(T));else if(Bae(u)&&u.modifiers)for(let T of u.modifiers)Ta(T)&&yn(T,f._0_modifier_cannot_be_used_here,uc(T));let g;switch(u.kind){case 304:case 303:u4e(u.exclamationToken,f.A_definite_assignment_assertion_is_not_permitted_in_this_context),fbe(u.questionToken,f.An_object_member_cannot_be_declared_optional),_.kind===9&&hbe(_),g=4;break;case 174:g=8;break;case 177:g=1;break;case 178:g=2;break;default:R.assertNever(u,"Unexpected syntax kind:"+u.kind)}if(!a){let T=gbe(_);if(T===void 0)continue;let M=c.get(T);if(!M)c.set(T,g);else if(g&8&&M&8)yn(_,f.Duplicate_identifier_0,uc(_));else if(g&4&&M&4)yn(_,f.An_object_literal_cannot_have_multiple_properties_with_the_same_name,uc(_));else if(g&3&&M&3)if(M!==3&&g!==M)c.set(T,g|M);else return yn(_,f.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return yn(_,f.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function vgt(n){bgt(n.tagName),uG(n,n.typeArguments);let a=new Map;for(let c of n.attributes.properties){if(c.kind===293)continue;let{name:u,initializer:_}=c,g=QN(u);if(!a.get(g))a.set(g,!0);else return yn(u,f.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(_&&_.kind===294&&!_.expression)return yn(_,f.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function bgt(n){if(wr(n)&&Xm(n.expression))return yn(n.expression,f.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(Xm(n)&&R6(B)&&!cR(n.namespace.escapedText))return yn(n,f.React_components_cannot_include_JSX_namespace_names)}function Egt(n){if(n.expression&&yP(n.expression))return yn(n.expression,f.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function p4e(n){if(hy(n))return!0;if(n.kind===250&&n.awaitModifier&&!(n.flags&65536)){let a=Gn(n);if(FF(n)){if(!HS(a))switch(TI(a,B)||Qa.add(Pr(n.awaitModifier,f.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),z){case 100:case 199:if(a.impliedNodeFormat===1){Qa.add(Pr(n.awaitModifier,f.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(ce>=4)break;default:Qa.add(Pr(n.awaitModifier,f.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!HS(a)){let c=Pr(n.awaitModifier,f.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),u=Wp(n);if(u&&u.kind!==176){R.assert((Bc(u)&2)===0,"Enclosing function should never be an async function.");let _=Pr(u,f.Did_you_mean_to_mark_this_function_as_async);Ma(c,_)}return Qa.add(c),!0}return!1}if(Fk(n)&&!(n.flags&65536)&&Fe(n.initializer)&&n.initializer.escapedText==="async")return yn(n.initializer,f.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(n.initializer.kind===261){let a=n.initializer;if(!_be(a)){let c=a.declarations;if(!c.length)return!1;if(c.length>1){let _=n.kind===249?f.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:f.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return fd(a.declarations[1],_)}let u=c[0];if(u.initializer){let _=n.kind===249?f.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:f.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return yn(u.name,_)}if(u.type){let _=n.kind===249?f.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:f.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return yn(u,_)}}}return!1}function Sgt(n){if(!(n.flags&33554432)&&n.parent.kind!==187&&n.parent.kind!==264){if(ce<1)return yn(n.name,f.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(ce<2&&Ki(n.name))return yn(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.body===void 0&&!Qr(n,64))return KS(n,n.end-1,1,f._0_expected,"{")}if(n.body){if(Qr(n,64))return yn(n,f.An_abstract_accessor_cannot_have_an_implementation);if(n.parent.kind===187||n.parent.kind===264)return yn(n.body,f.An_implementation_cannot_be_declared_in_ambient_contexts)}if(n.typeParameters)return yn(n.name,f.An_accessor_cannot_have_type_parameters);if(!Tgt(n))return yn(n.name,n.kind===177?f.A_get_accessor_cannot_have_parameters:f.A_set_accessor_must_have_exactly_one_parameter);if(n.kind===178){if(n.type)return yn(n.name,f.A_set_accessor_cannot_have_a_return_type_annotation);let a=R.checkDefined(CN(n),"Return value does not match parameter count assertion.");if(a.dotDotDotToken)return yn(a.dotDotDotToken,f.A_set_accessor_cannot_have_rest_parameter);if(a.questionToken)return yn(a.questionToken,f.A_set_accessor_cannot_have_an_optional_parameter);if(a.initializer)return yn(n.name,f.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function Tgt(n){return mbe(n)||n.parameters.length===(n.kind===177?0:1)}function mbe(n){if(n.parameters.length===(n.kind===177?1:2))return L0(n)}function Agt(n){if(n.operator===158){if(n.type.kind!==155)return yn(n.type,f._0_expected,ca(155));let a=V2(n.parent);if(ir(a)&&Q0(a)){let c=vT(a);c&&(a=RI(c)||c)}switch(a.kind){case 260:let c=a;if(c.name.kind!==80)return yn(n,f.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!mN(c))return yn(n,f.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(c.parent.flags&2))return yn(a.name,f.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!na(a)||!NN(a))return yn(a.name,f.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!Qr(a,8))return yn(a.name,f.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return yn(n,f.unique_symbol_types_are_not_allowed_here)}}else if(n.operator===148&&n.type.kind!==188&&n.type.kind!==189)return fd(n,f.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,ca(155))}function aL(n,a){if(Vot(n))return yn(n,a)}function f4e(n){if(nte(n))return!0;if(n.kind===174){if(n.parent.kind===210){if(n.modifiers&&!(n.modifiers.length===1&&Va(n.modifiers).kind===134))return fd(n,f.Modifiers_cannot_appear_here);if(fbe(n.questionToken,f.An_object_member_cannot_be_declared_optional))return!0;if(u4e(n.exclamationToken,f.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(n.body===void 0)return KS(n,n.end-1,1,f._0_expected,"{")}if(pbe(n))return!0}if(di(n.parent)){if(ce<2&&Ki(n.name))return yn(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.flags&33554432)return aL(n.name,f.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(n.kind===174&&!n.body)return aL(n.name,f.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(n.parent.kind===264)return aL(n.name,f.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(n.parent.kind===187)return aL(n.name,f.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function Igt(n){let a=n;for(;a;){if(Ox(a))return yn(n,f.Jump_target_cannot_cross_function_boundary);switch(a.kind){case 256:if(n.label&&a.label.escapedText===n.label.escapedText)return n.kind===251&&!Pv(a.statement,!0)?yn(n,f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 255:if(n.kind===252&&!n.label)return!1;break;default:if(Pv(a,!1)&&!n.label)return!1;break}a=a.parent}if(n.label){let c=n.kind===252?f.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return yn(n,c)}else{let c=n.kind===252?f.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:f.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return yn(n,c)}}function xgt(n){if(n.dotDotDotToken){let a=n.parent.elements;if(n!==Ja(a))return yn(n,f.A_rest_element_must_be_last_in_a_destructuring_pattern);if(mx(a,f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),n.propertyName)return yn(n.name,f.A_rest_element_cannot_have_a_property_name)}if(n.dotDotDotToken&&n.initializer)return KS(n,n.initializer.pos-1,1,f.A_rest_element_cannot_have_an_initializer)}function m4e(n){return Qp(n)||n.kind===224&&n.operator===41&&n.operand.kind===9}function Rgt(n){return n.kind===10||n.kind===224&&n.operator===41&&n.operand.kind===10}function Dgt(n){if((wr(n)||qs(n)&&m4e(n.argumentExpression))&&Bl(n.expression))return!!(tc(n).flags&1056)}function _4e(n){let a=n.initializer;if(a){let c=!(m4e(a)||Dgt(a)||a.kind===112||a.kind===97||Rgt(a));if((CF(n)||Oi(n)&&pG(n))&&!n.type){if(c)return yn(a,f.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return yn(a,f.Initializers_are_not_allowed_in_ambient_contexts)}}function Cgt(n){let a=JS(n),c=a&7;if($o(n.name))switch(c){case 6:return yn(n,f._0_declarations_may_not_have_binding_patterns,"await using");case 4:return yn(n,f._0_declarations_may_not_have_binding_patterns,"using")}if(n.parent.parent.kind!==249&&n.parent.parent.kind!==250){if(a&33554432)_4e(n);else if(!n.initializer){if($o(n.name)&&!$o(n.parent))return yn(n,f.A_destructuring_declaration_must_have_an_initializer);switch(c){case 6:return yn(n,f._0_declarations_must_be_initialized,"await using");case 4:return yn(n,f._0_declarations_must_be_initialized,"using");case 2:return yn(n,f._0_declarations_must_be_initialized,"const")}}}if(n.exclamationToken&&(n.parent.parent.kind!==243||!n.type||n.initializer||a&33554432)){let u=n.initializer?f.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?f.A_definite_assignment_assertion_is_not_permitted_in_this_context:f.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return yn(n.exclamationToken,u)}return(z<5||Gn(n).impliedNodeFormat===1)&&z!==4&&!(n.parent.parent.flags&33554432)&&Qr(n.parent.parent,32)&&h4e(n.name),!!c&&g4e(n.name)}function h4e(n){if(n.kind===80){if(yr(n)==="__esModule")return Mgt("noEmit",n,f.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{let a=n.elements;for(let c of a)if(!Gc(c))return h4e(c.name)}return!1}function g4e(n){if(n.kind===80){if(n.escapedText==="let")return yn(n,f.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{let a=n.elements;for(let c of a)Gc(c)||g4e(c.name)}return!1}function _be(n){let a=n.declarations;if(mx(n.declarations))return!0;if(!n.declarations.length)return KS(n,a.pos,a.end-a.pos,f.Variable_declaration_list_cannot_be_empty);let c=n.flags&7;return(c===4||c===6)&&G4(n.parent)?yn(n,c===4?f.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:f.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration):c===6?kFe(n):!1}function y4e(n){switch(n.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return y4e(n.parent)}return!0}function Ngt(n){if(!y4e(n.parent)){let a=JS(n.declarationList)&7;if(a){let c=a===1?"let":a===2?"const":a===4?"using":a===6?"await using":R.fail("Unknown BlockScope flag");return yn(n,f._0_declarations_can_only_be_declared_inside_a_block,c)}}}function Pgt(n){let a=n.name.escapedText;switch(n.keywordToken){case 105:if(a!=="target")return yn(n.name,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Vi(n.name.escapedText),ca(n.keywordToken),"target");break;case 102:if(a!=="meta")return yn(n.name,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Vi(n.name.escapedText),ca(n.keywordToken),"meta");break}}function HS(n){return n.parseDiagnostics.length>0}function fd(n,a,...c){let u=Gn(n);if(!HS(u)){let _=fh(u,n.pos);return Qa.add(Yc(u,_.start,_.length,a,...c)),!0}return!1}function KS(n,a,c,u,..._){let g=Gn(n);return HS(g)?!1:(Qa.add(Yc(g,a,c,u,..._)),!0)}function Mgt(n,a,c,...u){let _=Gn(a);return HS(_)?!1:(e_(n,a,c,...u),!0)}function yn(n,a,...c){let u=Gn(n);return HS(u)?!1:(Qa.add(Pr(n,a,...c)),!0)}function Lgt(n){let a=ir(n)?d6(n):void 0,c=n.typeParameters||a&&Jc(a);if(c){let u=c.pos===c.end?c.pos:Pa(Gn(n).text,c.pos);return KS(n,u,c.end-u,f.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function kgt(n){let a=n.type||$f(n);if(a)return yn(a,f.Type_annotation_cannot_appear_on_a_constructor_declaration)}function wgt(n){if(Ya(n.name)&&ur(n.name.expression)&&n.name.expression.operatorToken.kind===103)return yn(n.parent.members[0],f.A_mapped_type_may_not_declare_properties_or_methods);if(di(n.parent)){if(Ca(n.name)&&n.name.text==="constructor")return yn(n.name,f.Classes_may_not_have_a_field_named_constructor);if(aL(n.name,f.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(ce<2&&Ki(n.name))return yn(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(ce<2&&Lu(n))return yn(n.name,f.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(Lu(n)&&fbe(n.questionToken,f.An_accessor_property_cannot_be_declared_optional))return!0}else if(n.parent.kind===264){if(aL(n.name,f.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(R.assertNode(n,_p),n.initializer)return yn(n.initializer,f.An_interface_property_cannot_have_an_initializer)}else if(gp(n.parent)){if(aL(n.name,f.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(R.assertNode(n,_p),n.initializer)return yn(n.initializer,f.A_type_literal_property_cannot_have_an_initializer)}if(n.flags&33554432&&_4e(n),Vo(n)&&n.exclamationToken&&(!di(n.parent)||!n.type||n.initializer||n.flags&33554432||na(n)||O0(n))){let a=n.initializer?f.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?f.A_definite_assignment_assertion_is_not_permitted_in_this_context:f.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return yn(n.exclamationToken,a)}}function Ogt(n){return n.kind===264||n.kind===265||n.kind===272||n.kind===271||n.kind===278||n.kind===277||n.kind===270||Qr(n,2208)?!1:fd(n,f.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function Wgt(n){for(let a of n.statements)if((Ud(a)||a.kind===243)&&Ogt(a))return!0;return!1}function Fgt(n){return!!(n.flags&33554432)&&Wgt(n)}function hy(n){if(n.flags&33554432){if(!Zr(n).hasReportedStatementInAmbientContext&&(Yo(n.parent)||Nv(n.parent)))return Zr(n).hasReportedStatementInAmbientContext=fd(n,f.An_implementation_cannot_be_declared_in_ambient_contexts);if(n.parent.kind===241||n.parent.kind===268||n.parent.kind===312){let c=Zr(n.parent);if(!c.hasReportedStatementInAmbientContext)return c.hasReportedStatementInAmbientContext=fd(n,f.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function hbe(n){let a=uc(n).includes("."),c=n.numericLiteralFlags&16;a||c||+n.text<=2**53-1||t_(!1,Pr(n,f.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function zgt(n){return!!(!(Jv(n.parent)||Xv(n.parent)&&Jv(n.parent.parent))&&ce<7&&yn(n,f.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function Bgt(n,a,...c){let u=Gn(n);if(!HS(u)){let _=fh(u,n.pos);return Qa.add(Yc(u,Jl(_),0,a,...c)),!0}return!1}function Ggt(){return wc||(wc=[],be.forEach((n,a)=>{bK.test(a)&&wc.push(n)})),wc}function Vgt(n){var a;return n.isTypeOnly&&n.name&&n.namedBindings?yn(n,f.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):n.isTypeOnly&&((a=n.namedBindings)==null?void 0:a.kind)===275?v4e(n.namedBindings):!1}function v4e(n){return!!gn(n.elements,a=>{if(a.isTypeOnly)return fd(a,a.kind===276?f.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:f.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function jgt(n){if(B.verbatimModuleSyntax&&z===1)return yn(n,f.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(z===5)return yn(n,f.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(n.typeArguments)return yn(n,f.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);let a=n.arguments;if(z!==99&&z!==199&&z!==100&&(mx(a),a.length>1)){let u=a[1];return yn(u,f.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext)}if(a.length===0||a.length>2)return yn(n,f.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);let c=Vr(a,qm);return c?yn(c,f.Argument_of_dynamic_import_cannot_be_spread_element):!1}function Ugt(n,a){let c=kr(n);if(c&20&&a.flags&1048576)return Vr(a.types,u=>{if(u.flags&524288){let _=c&kr(u);if(_&4)return n.target===u.target;if(_&16)return!!n.aliasSymbol&&n.aliasSymbol===u.aliasSymbol}return!1})}function Hgt(n,a){if(kr(n)&128&&Fm(a,pv))return Vr(a.types,c=>!pv(c))}function Kgt(n,a){let c=0;if(Ko(n,c).length>0||(c=1,Ko(n,c).length>0))return Vr(a.types,_=>Ko(_,c).length>0)}function Jgt(n,a){let c;if(!(n.flags&406978556)){let u=0;for(let _ of a.types)if(!(_.flags&406978556)){let g=ha([J_(n),J_(_)]);if(g.flags&4194304)return _;if(p_(g)||g.flags&1048576){let T=g.flags&1048576?vv(g.types,p_):1;T>=u&&(c=_,u=T)}}}return c}function qgt(n){if(Rl(n,67108864)){let a=cc(n,c=>!(c.flags&402784252));if(!(a.flags&131072))return a}return n}function b4e(n,a,c){if(a.flags&1048576&&n.flags&2621440){let u=M8e(a,n);if(u)return u;let _=_s(n);if(_){let g=P8e(_,a);if(g){let T=iye(a,mn(g,M=>[()=>sr(M),M.escapedName]),c);if(T!==a)return T}}}}function gbe(n){let a=bT(n);return a||(Ya(n)?Cye(Ad(n.expression)):void 0)}function ite(n){return Kn===n||(Kn=n,pn=eE(n)),pn}function JS(n){return en===n||(en=n,Dn=Dy(n)),Dn}function pG(n){let a=JS(n)&7;return a===2||a===4||a===6}}function VGe(e){return!Nv(e)}function xIe(e){return e.kind!==262&&e.kind!==174||!!e.body}function RIe(e){switch(e.parent.kind){case 276:case 281:return Fe(e);default:return Lg(e)}}function DIe(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function Jd(e){return!!(e.flags&1)}function vK(e){return!!(e.flags&2)}function jGe(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:ea(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return(t=e.getPackageJsonInfoCache)==null?void 0:t.call(e)},useCaseSensitiveFileNames:ea(e,e.useCaseSensitiveFileNames),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:t=>e.getProjectReferenceRedirect(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),fileExists:t=>e.fileExists(t),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?t=>e.readFile(t):void 0}}var bK,C3,Kse,Jse,qse,Xse,N3,EK,P3,M3,CIe,L3,Yse,nf,SK,UGe=bt({"src/compiler/checker.ts"(){"use strict";Zo(),Use(),nT(),bK=/^".+"$/,C3="(anonymous)",Kse=1,Jse=1,qse=1,Xse=1,N3=(e=>(e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.IsUndefined=16777216]="IsUndefined",e[e.IsNull=33554432]="IsNull",e[e.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",e[e.All=134217727]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.VoidFacts=9830144]="VoidFacts",e[e.UndefinedFacts=26607360]="UndefinedFacts",e[e.NullFacts=42917664]="NullFacts",e[e.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",e[e.EmptyObjectFacts=83886079]="EmptyObjectFacts",e[e.UnknownFacts=83886079]="UnknownFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.OrFactsMask=8256]="OrFactsMask",e[e.AndFactsMask=134209471]="AndFactsMask",e))(N3||{}),EK=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),P3=(e=>(e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp",e[e.RestBindingElement=32]="RestBindingElement",e[e.TypeOnly=64]="TypeOnly",e))(P3||{}),M3=(e=>(e[e.None=0]="None",e[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.StrictTopSignature=16]="StrictTopSignature",e[e.Callback=3]="Callback",e))(M3||{}),CIe=EW(xIe,VGe),L3=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),Yse=class{},(e=>{e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.ElementType="ElementType",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"})(nf||(nf={})),SK=class U4e{constructor(t,r,i){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var o;r instanceof U4e;)r=r.inner;this.inner=r,this.moduleResolverHost=i,this.context=t,this.canTrackSymbol=!!((o=this.inner)!=null&&o.trackSymbol)}trackSymbol(t,r,i){var o,s;if((o=this.inner)!=null&&o.trackSymbol&&!this.disableTrackSymbol){if(this.inner.trackSymbol(t,r,i))return this.onDiagnosticReported(),!0;t.flags&262144||((s=this.context).trackedSymbols??(s.trackedSymbols=[])).push([t,r,i])}return!1}reportInaccessibleThisError(){var t;(t=this.inner)!=null&&t.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(t){var r;(r=this.inner)!=null&&r.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(t))}reportInaccessibleUniqueSymbolError(){var t;(t=this.inner)!=null&&t.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var t;(t=this.inner)!=null&&t.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(t){var r;(r=this.inner)!=null&&r.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(t))}reportTruncationError(){var t;(t=this.inner)!=null&&t.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}trackReferencedAmbientModule(t,r){var i;(i=this.inner)!=null&&i.trackReferencedAmbientModule&&(this.onDiagnosticReported(),this.inner.trackReferencedAmbientModule(t,r))}trackExternalModuleSymbolOfImportTypeNode(t){var r;(r=this.inner)!=null&&r.trackExternalModuleSymbolOfImportTypeNode&&(this.onDiagnosticReported(),this.inner.trackExternalModuleSymbolOfImportTypeNode(t))}reportNonlocalAugmentation(t,r,i){var o;(o=this.inner)!=null&&o.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(t,r,i))}reportNonSerializableProperty(t){var r;(r=this.inner)!=null&&r.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(t))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}}}});function Qe(e,t,r,i){if(e===void 0)return e;let o=t(e),s;if(o!==void 0)return So(o)?s=(i||XGe)(o):s=o,R.assertNode(s,r),s}function zn(e,t,r,i,o){if(e===void 0)return e;let s=e.length;(i===void 0||i<0)&&(i=0),(o===void 0||o>s-i)&&(o=s-i);let l,d=-1,p=-1;i>0||os-i)&&(o=s-i),NIe(e,t,r,i,o)}function NIe(e,t,r,i,o){let s,l=e.length;(i>0||o=2&&(o=HGe(o,r)),r.setLexicalEnvironmentFlags(1,!1)),r.suspendLexicalEnvironment(),o}function HGe(e,t){let r;for(let i=0;i{let l=id,addSource:xe,setSourceContent:fe,addName:ne,addMapping:Ge,appendSourceMap:ve,toJSON:be,toString:()=>JSON.stringify(be())};function xe(tt){s();let Wt=_I(i,tt,e.getCurrentDirectory(),e.getCanonicalFileName,!0),_t=h.get(Wt);return _t===void 0&&(_t=p.length,p.push(Wt),d.push(tt),h.set(Wt,_t)),l(),_t}function fe(tt,Wt){if(s(),Wt!==null){for(m||(m=[]);m.lengthWt||me===Wt&&ge>_t)}function Ge(tt,Wt,_t,Je,ft,Zt){R.assert(tt>=ce,"generatedLine cannot backtrack"),R.assert(Wt>=0,"generatedCharacter cannot be negative"),R.assert(_t===void 0||_t>=0,"sourceIndex cannot be negative"),R.assert(Je===void 0||Je>=0,"sourceLine cannot be negative"),R.assert(ft===void 0||ft>=0,"sourceCharacter cannot be negative"),s(),(he(tt,Wt)||Ce(_t,Je,ft))&&(Le(),ce=tt,z=Wt,re=!1,pe=!1,J=!0),_t!==void 0&&Je!==void 0&&ft!==void 0&&(ee=_t,me=Je,ge=ft,re=!0,Zt!==void 0&&(q=Zt,pe=!0)),l()}function ve(tt,Wt,_t,Je,ft,Zt){R.assert(tt>=ce,"generatedLine cannot backtrack"),R.assert(Wt>=0,"generatedCharacter cannot be negative"),s();let en=[],Dn,Kn=xK(_t.mappings);for(let pn of Kn){if(Zt&&(pn.generatedLine>Zt.line||pn.generatedLine===Zt.line&&pn.generatedCharacter>Zt.character))break;if(ft&&(pn.generatedLine=1024&&Et()}function Le(){if(!(!J||!Ie())){if(s(),N0&&(A+=String.fromCharCode.apply(void 0,S),S.length=0)}function be(){return Le(),Et(),{version:3,file:t,sourceRoot:r,sources:p,names:y,mappings:A,sourcesContent:m}}function ze(tt){tt<0?tt=(-tt<<1)+1:tt=tt<<1;do{let Wt=tt&31;tt=tt>>5,tt>0&&(Wt=Wt|32),De(QGe(Wt))}while(tt>0)}}function AK(e,t){return{getLineCount:()=>t.length,getLineText:r=>e.substring(t[r],t[r+1])}}function Qse(e){for(let t=e.getLineCount()-1;t>=0;t--){let r=e.getLineText(t),i=k3.exec(r);if(i)return i[1].trimEnd();if(!r.match(w3))break}}function $Ge(e){return typeof e=="string"||e===null}function Zse(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&So(e.sources)&&oo(e.sources,Co)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||So(e.sourcesContent)&&oo(e.sourcesContent,$Ge))&&(e.names===void 0||e.names===null||So(e.names)&&oo(e.names,Co))}function IK(e){try{let t=JSON.parse(e);if(Zse(t))return t}catch{}}function xK(e){let t=!1,r=0,i=0,o=0,s=0,l=0,d=0,p=0,h;return{get pos(){return r},get error(){return h},get state(){return m(!0,!0)},next(){for(;!t&&r=e.length)return E("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;let Y=ZGe(e.charCodeAt(r));if(Y===-1)return E("Invalid character in VLQ"),-1;w=(Y&32)!==0,K=K|(Y&31)<>1,K=-K):K=K>>1,K}}function MIe(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex}function ele(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function QGe(e){return e>=0&&e<26?65+e:e>=26&&e<52?97+e-26:e>=52&&e<62?48+e-52:e===62?43:e===63?47:R.fail(`${e}: not a base64 value`)}function ZGe(e){return e>=65&&e<=90?e-65:e>=97&&e<=122?e-97+26:e>=48&&e<=57?e-48+52:e===43?62:e===47?63:-1}function LIe(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function kIe(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function e9e(e,t){return R.assert(e.sourceIndex===t.sourceIndex),Zs(e.sourcePosition,t.sourcePosition)}function t9e(e,t){return Zs(e.generatedPosition,t.generatedPosition)}function n9e(e){return e.sourcePosition}function r9e(e){return e.generatedPosition}function tle(e,t,r){let i=oi(r),o=t.sourceRoot?_o(t.sourceRoot,i):i,s=_o(t.file,i),l=e.getSourceFileLike(s),d=t.sources.map(j=>_o(j,o)),p=new Map(d.map((j,K)=>[e.getCanonicalFileName(j),K])),h,m,y;return{getSourcePosition:w,getGeneratedPosition:D};function E(j){let K=l!==void 0?GL(l,j.generatedLine,j.generatedCharacter,!0):-1,Y,B;if(ele(j)){let ce=e.getSourceFileLike(d[j.sourceIndex]);Y=t.sources[j.sourceIndex],B=ce!==void 0?GL(ce,j.sourceLine,j.sourceCharacter,!0):-1}return{generatedPosition:K,source:Y,sourceIndex:j.sourceIndex,sourcePosition:B,nameIndex:j.nameIndex}}function S(){if(h===void 0){let j=xK(t.mappings),K=Oo(j,E);j.error!==void 0?(e.log&&e.log(`Encountered error while decoding sourcemap: ${j.error}`),h=Xe):h=K}return h}function A(j){if(y===void 0){let K=[];for(let Y of S()){if(!LIe(Y))continue;let B=K[Y.sourceIndex];B||(K[Y.sourceIndex]=B=[]),B.push(Y)}y=K.map(Y=>zC(Y,e9e,kIe))}return y[j]}function N(){if(m===void 0){let j=[];for(let K of S())j.push(K);m=zC(j,t9e,kIe)}return m}function D(j){let K=p.get(e.getCanonicalFileName(j.fileName));if(K===void 0)return j;let Y=A(K);if(!gt(Y))return j;let B=lI(Y,j.pos,n9e,Zs);B<0&&(B=~B);let ce=Y[B];return ce===void 0||ce.sourceIndex!==K?j:{fileName:s,pos:ce.generatedPosition}}function w(j){let K=N();if(!gt(K))return j;let Y=lI(K,j.pos,r9e,Zs);Y<0&&(Y=~Y);let B=K[Y];return B===void 0||!LIe(B)?j:{fileName:d[B.sourceIndex],pos:B.sourcePosition}}}var RK,k3,w3,O3,i9e=bt({"src/compiler/sourcemap.ts"(){"use strict";Zo(),nT(),RK=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,k3=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,w3=/^\s*(\/\/[@#] .*)?$/,O3={getSourcePosition:Qs,getGeneratedPosition:Qs}}});function kd(e){return e=Nl(e),e?is(e):0}function o9e(e){return!e||!Fg(e)?!1:gt(e.elements,wIe)}function wIe(e){return e.propertyName!==void 0&&e.propertyName.escapedText==="default"}function Im(e,t){return r;function r(o){return o.kind===312?t(o):i(o)}function i(o){return e.factory.createBundle(mn(o.sourceFiles,t),o.prepends)}}function nle(e){return!!tR(e)}function W3(e){if(tR(e))return!0;let t=e.importClause&&e.importClause.namedBindings;if(!t||!Fg(t))return!1;let r=0;for(let i of t.elements)wIe(i)&&r++;return r>0&&r!==t.elements.length||!!(t.elements.length-r)&&II(e)}function DK(e){return!W3(e)&&(II(e)||!!e.importClause&&Fg(e.importClause.namedBindings)&&o9e(e.importClause.namedBindings))}function CK(e,t){let r=e.getEmitResolver(),i=e.getCompilerOptions(),o=[],s=new LK,l=[],d=new Map,p,h=!1,m,y=!1,E=!1,S=!1;for(let D of t.statements)switch(D.kind){case 272:o.push(D),!E&&W3(D)&&(E=!0),!S&&DK(D)&&(S=!0);break;case 271:D.moduleReference.kind===283&&o.push(D);break;case 278:if(D.moduleSpecifier)if(!D.exportClause)o.push(D),y=!0;else if(o.push(D),xf(D.exportClause))N(D);else{let w=D.exportClause.name;d.get(yr(w))||(NP(l,kd(D),w),d.set(yr(w),!0),p=Tn(p,w)),E=!0}else N(D);break;case 277:D.isExportEquals&&!m&&(m=D);break;case 243:if(Qr(D,32))for(let w of D.declarationList.declarations)p=OIe(w,d,p,l);break;case 262:if(Qr(D,32))if(Qr(D,2048))h||(NP(l,kd(D),e.factory.getDeclarationName(D)),h=!0);else{let w=D.name;d.get(yr(w))||(NP(l,kd(D),w),d.set(yr(w),!0),p=Tn(p,w))}break;case 263:if(Qr(D,32))if(Qr(D,2048))h||(NP(l,kd(D),e.factory.getDeclarationName(D)),h=!0);else{let w=D.name;w&&!d.get(yr(w))&&(NP(l,kd(D),w),d.set(yr(w),!0),p=Tn(p,w))}break}let A=bH(e.factory,e.getEmitHelperFactory(),t,i,y,E,S);return A&&o.unshift(A),{externalImports:o,exportSpecifiers:s,exportEquals:m,hasExportStarsToExportValues:y,exportedBindings:l,exportedNames:p,externalHelpersImportDeclaration:A};function N(D){for(let w of ta(D.exportClause,xf).elements)if(!d.get(yr(w.name))){let j=w.propertyName||w.name;D.moduleSpecifier||s.add(j,w);let K=r.getReferencedImportDeclaration(j)||r.getReferencedValueDeclaration(j);K&&NP(l,kd(K),w.name),d.set(yr(w.name),!0),p=Tn(p,w.name)}}}function OIe(e,t,r,i){if($o(e.name))for(let o of e.name.elements)Gc(o)||(r=OIe(o,t,r,i));else if(!rl(e.name)){let o=yr(e.name);t.get(o)||(t.set(o,!0),r=Tn(r,e.name),zg(e.name)&&NP(i,kd(e),e.name))}return r}function NP(e,t,r){let i=e[t];return i?i.push(r):e[t]=i=[r],i}function nS(e){return ss(e)||e.kind===9||Ou(e.kind)||Fe(e)}function L_(e){return!Fe(e)&&nS(e)}function PP(e){return e>=65&&e<=79}function MP(e){switch(e){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function F3(e){if(!Qc(e))return;let t=ms(e.expression);return mT(t)?t:void 0}function WIe(e,t,r){for(let i=t;is9e(i,t,r))}function a9e(e){return l9e(e)||Al(e)}function B3(e){return jr(e.members,a9e)}function s9e(e,t,r){return Vo(e)&&(!!e.initializer||!t)&&pc(e)===r}function l9e(e){return Vo(e)&&pc(e)}function Sw(e){return e.kind===172&&e.initializer!==void 0}function rle(e){return!na(e)&&(bI(e)||Lu(e))&&Ki(e.name)}function ile(e){let t;if(e){let r=e.parameters,i=r.length>0&&k0(r[0]),o=i?1:0,s=i?r.length-1:r.length;for(let l=0;lMK(r.privateEnv,t))}function lle(e){return!e.initializer&&Fe(e.name)}function Tw(e){return oo(e,lle)}var f1,LK,u9e=bt({"src/compiler/transformers/utilities.ts"(){"use strict";Zo(),f1=class RC{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(RC.toKey(t))}get(t){return this._map.get(RC.toKey(t))}set(t,r){return this._map.set(RC.toKey(t),r),this}delete(t){var r;return((r=this._map)==null?void 0:r.delete(RC.toKey(t)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(aT(t)||rl(t)){let r=t.emitNode.autoGenerate;if((r.flags&7)===4){let i=qk(t),o=Kh(i)&&i!==t?RC.toKey(i):`(generated@${is(i)})`;return bE(!1,r.prefix,o,r.suffix,RC.toKey)}else{let i=`(auto@${r.id})`;return bE(!1,r.prefix,i,r.suffix,RC.toKey)}}return Ki(t)?yr(t).slice(1):yr(t)}},LK=class extends f1{add(e,t){let r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}remove(e,t){let r=this.get(e);r&&(uI(r,t),r.length||this.delete(e))}}}});function UT(e,t,r,i,o,s){let l=e,d;if(wy(e))for(d=e.right;Xie(e.left)||Jj(e.left);)if(wy(d))l=e=d,d=e.right;else return R.checkDefined(Qe(d,t,ht));let p,h={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:m,emitBindingOrAssignment:y,createArrayBindingOrAssignmentPattern:E=>v9e(r.factory,E),createObjectBindingOrAssignmentPattern:E=>E9e(r.factory,E),createArrayBindingOrAssignmentElement:T9e,visitor:t};if(d&&(d=Qe(d,t,ht),R.assert(d),Fe(d)&&cle(e,d.escapedText)||dle(e)?d=m1(h,d,!1,l):o?d=m1(h,d,!0,l):Js(e)&&(l=d)),LP(h,e,d,l,wy(e)),d&&o){if(!gt(p))return d;p.push(d)}return r.factory.inlineExpressions(p)||r.factory.createOmittedExpression();function m(E){p=Tn(p,E)}function y(E,S,A,N){R.assertNode(E,s?Fe:ht);let D=s?s(E,S,A):at(r.factory.createAssignment(R.checkDefined(Qe(E,t,ht)),S),A);D.original=N,m(D)}}function cle(e,t){let r=$v(e);return i2(r)?p9e(r,t):Fe(r)?r.escapedText===t:!1}function p9e(e,t){let r=FR(e);for(let i of r)if(cle(i,t))return!0;return!1}function dle(e){let t=Z4(e);if(t&&Ya(t)&&!E0(t.expression))return!0;let r=$v(e);return!!r&&i2(r)&&f9e(r)}function f9e(e){return!!gn(FR(e),dle)}function rS(e,t,r,i,o,s=!1,l){let d,p=[],h=[],m={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:s,emitExpression:y,emitBindingOrAssignment:E,createArrayBindingOrAssignmentPattern:S=>y9e(r.factory,S),createObjectBindingOrAssignmentPattern:S=>b9e(r.factory,S),createArrayBindingOrAssignmentElement:S=>S9e(r.factory,S),visitor:t};if(Oi(e)){let S=Kk(e);S&&(Fe(S)&&cle(e,S.escapedText)||dle(e))&&(S=m1(m,R.checkDefined(Qe(S,m.visitor,ht)),!1,S),e=r.factory.updateVariableDeclaration(e,e.name,void 0,void 0,S))}if(LP(m,e,o,e,l),d){let S=r.factory.createTempVariable(void 0);if(s){let A=r.factory.inlineExpressions(d);d=void 0,E(S,A,void 0,void 0)}else{r.hoistVariableDeclaration(S);let A=Ja(p);A.pendingExpressions=Tn(A.pendingExpressions,r.factory.createAssignment(S,A.value)),Hr(A.pendingExpressions,d),A.value=S}}for(let{pendingExpressions:S,name:A,value:N,location:D,original:w}of p){let j=r.factory.createVariableDeclaration(A,void 0,void 0,S?r.factory.inlineExpressions(Tn(S,N)):N);j.original=w,at(j,D),h.push(j)}return h;function y(S){d=Tn(d,S)}function E(S,A,N,D){R.assertNode(S,sT),d&&(A=r.factory.inlineExpressions(Tn(d,A)),d=void 0),p.push({pendingExpressions:d,name:S,value:A,location:N,original:D})}}function LP(e,t,r,i,o){let s=$v(t);if(!o){let l=Qe(Kk(t),e.visitor,ht);l?r?(r=h9e(e,r,l,i),!L_(l)&&i2(s)&&(r=m1(e,r,!0,i))):r=l:r||(r=e.context.factory.createVoidZero())}PV(s)?m9e(e,t,s,r,i):MV(s)?_9e(e,t,s,r,i):e.emitBindingOrAssignment(s,r,i,t)}function m9e(e,t,r,i,o){let s=FR(r),l=s.length;if(l!==1){let h=!r2(t)||l!==0;i=m1(e,i,h,o)}let d,p;for(let h=0;h=1&&!(m.transformFlags&98304)&&!($v(m).transformFlags&98304)&&!Ya(y))d=Tn(d,Qe(m,e.visitor,gre));else{d&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(d),i,o,r),d=void 0);let E=g9e(e,i,y);Ya(y)&&(p=Tn(p,E.argumentExpression)),LP(e,m,E,m)}}}d&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(d),i,o,r)}function _9e(e,t,r,i,o){let s=FR(r),l=s.length;if(e.level<1&&e.downlevelIteration)i=m1(e,at(e.context.getEmitHelperFactory().createReadHelper(i,l>0&&Q4(s[l-1])?void 0:l),o),!1,o);else if(l!==1&&(e.level<1||l===0)||oo(s,Gc)){let h=!r2(t)||l!==0;i=m1(e,i,h,o)}let d,p;for(let h=0;h=1)if(m.transformFlags&65536||e.hasTransformedPriorElement&&!zIe(m)){e.hasTransformedPriorElement=!0;let y=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(y),p=Tn(p,[y,m]),d=Tn(d,e.createArrayBindingOrAssignmentElement(y))}else d=Tn(d,m);else{if(Gc(m))continue;if(Q4(m)){if(h===l-1){let y=e.context.factory.createArraySliceCall(i,h);LP(e,m,y,m)}}else{let y=e.context.factory.createElementAccessExpression(i,h);LP(e,m,y,m)}}}if(d&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(d),i,o,r),p)for(let[h,m]of p)LP(e,m,h,m)}function zIe(e){let t=$v(e);if(!t||Gc(t))return!0;let r=Z4(e);if(r&&!T_(r))return!1;let i=Kk(e);return i&&!L_(i)?!1:i2(t)?oo(FR(t),zIe):Fe(t)}function h9e(e,t,r,i){return t=m1(e,t,!0,i),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,r,void 0,t)}function g9e(e,t,r){let{factory:i}=e.context;if(Ya(r)){let o=m1(e,R.checkDefined(Qe(r.expression,e.visitor,ht)),!1,r);return e.context.factory.createElementAccessExpression(t,o)}else if(Qp(r)){let o=i.cloneNode(r);return e.context.factory.createElementAccessExpression(t,o)}else{let o=e.context.factory.createIdentifier(yr(r));return e.context.factory.createPropertyAccessExpression(t,o)}}function m1(e,t,r,i){if(Fe(t)&&r)return t;{let o=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(o),e.emitExpression(at(e.context.factory.createAssignment(o,t),i))):e.emitBindingOrAssignment(o,t,i,void 0),o}}function y9e(e,t){return R.assertEachNode(t,dF),e.createArrayBindingPattern(t)}function v9e(e,t){return R.assertEachNode(t,a2),e.createArrayLiteralExpression(mn(t,e.converters.convertToArrayAssignmentElement))}function b9e(e,t){return R.assertEachNode(t,Xa),e.createObjectBindingPattern(t)}function E9e(e,t){return R.assertEachNode(t,o2),e.createObjectLiteralExpression(mn(t,e.converters.convertToObjectAssignmentElement))}function S9e(e,t){return e.createBindingElement(void 0,void 0,t)}function T9e(e){return e}var kK,A9e=bt({"src/compiler/transformers/destructuring.ts"(){"use strict";Zo(),kK=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(kK||{})}});function ule(e,t,r=e.createThis()){let i=e.createAssignment(t,r),o=e.createExpressionStatement(i),s=e.createBlock([o],!1),l=e.createClassStaticBlockDeclaration(s);return Ld(l).classThis=t,l}function kP(e){var t;if(!Al(e)||e.body.statements.length!==1)return!1;let r=e.body.statements[0];return Qc(r)&&Pc(r.expression,!0)&&Fe(r.expression.left)&&((t=e.emitNode)==null?void 0:t.classThis)===r.expression.left&&r.expression.right.kind===110}function wK(e){var t;return!!((t=e.emitNode)!=null&&t.classThis)&>(e.members,kP)}function ple(e,t,r,i){if(wK(t))return t;let o=ule(e,r,i);t.name&&Da(o.body.statements[0],t.name);let s=e.createNodeArray([o,...t.members]);at(s,t.members);let l=Sc(t)?e.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,s):e.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,s);return Ld(l).classThis=r,l}var I9e=bt({"src/compiler/transformers/classThis.ts"(){"use strict";Zo()}});function wP(e,t,r){let i=Nl(Yl(r));return(Sc(i)||Ec(i))&&!i.name&&Qr(i,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function BIe(e,t,r){let{factory:i}=e;if(r!==void 0)return{assignedName:i.createStringLiteral(r),name:t};if(T_(t)||Ki(t))return{assignedName:i.createStringLiteralFromNode(t),name:t};if(T_(t.expression)&&!Fe(t.expression))return{assignedName:i.createStringLiteralFromNode(t.expression),name:t};let o=i.getGeneratedNameForNode(t);e.hoistVariableDeclaration(o);let s=e.getEmitHelperFactory().createPropKeyHelper(t.expression),l=i.createAssignment(o,s),d=i.updateComputedPropertyName(t,l);return{assignedName:o,name:d}}function fle(e,t,r=e.factory.createThis()){let{factory:i}=e,o=e.getEmitHelperFactory().createSetFunctionNameHelper(r,t),s=i.createExpressionStatement(o),l=i.createBlock([s],!1),d=i.createClassStaticBlockDeclaration(l);return Ld(d).assignedName=t,d}function _1(e){var t;if(!Al(e)||e.body.statements.length!==1)return!1;let r=e.body.statements[0];return Qc(r)&&oP(r.expression,"___setFunctionName")&&r.expression.arguments.length>=2&&r.expression.arguments[1]===((t=e.emitNode)==null?void 0:t.assignedName)}function V3(e){var t;return!!((t=e.emitNode)!=null&&t.assignedName)&>(e.members,_1)}function OK(e){return!!e.name||V3(e)}function j3(e,t,r,i){if(V3(t))return t;let{factory:o}=e,s=fle(e,r,i);t.name&&Da(s.body.statements[0],t.name);let l=Kl(t.members,kP)+1,d=t.members.slice(0,l),p=t.members.slice(l),h=o.createNodeArray([...d,s,...p]);return at(h,t.members),t=Sc(t)?o.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,h):o.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,h),Ld(t).assignedName=r,t}function XR(e,t,r,i){if(i&&Ca(r)&&cj(r))return t;let{factory:o}=e,s=Yl(t),l=$c(s)?ta(j3(e,s,r),$c):e.getEmitHelperFactory().createSetFunctionNameHelper(s,r);return o.restoreOuterExpressions(t,l)}function x9e(e,t,r,i){let{factory:o}=e,{assignedName:s,name:l}=BIe(e,t.name,i),d=XR(e,t.initializer,s,r);return o.updatePropertyAssignment(t,l,d)}function R9e(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):wP(o,t.name,t.objectAssignmentInitializer),l=XR(e,t.objectAssignmentInitializer,s,r);return o.updateShorthandPropertyAssignment(t,t.name,l)}function D9e(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):wP(o,t.name,t.initializer),l=XR(e,t.initializer,s,r);return o.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,l)}function C9e(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):wP(o,t.name,t.initializer),l=XR(e,t.initializer,s,r);return o.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,l)}function N9e(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):wP(o,t.name,t.initializer),l=XR(e,t.initializer,s,r);return o.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,l)}function P9e(e,t,r,i){let{factory:o}=e,{assignedName:s,name:l}=BIe(e,t.name,i),d=XR(e,t.initializer,s,r);return o.updatePropertyDeclaration(t,t.modifiers,l,t.questionToken??t.exclamationToken,t.type,d)}function M9e(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):wP(o,t.left,t.right),l=XR(e,t.right,s,r);return o.updateBinaryExpression(t,t.left,t.operatorToken,l)}function L9e(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):o.createStringLiteral(t.isExportEquals?"":"default"),l=XR(e,t.expression,s,r);return o.updateExportAssignment(t,t.modifiers,l)}function yp(e,t,r,i){switch(t.kind){case 303:return x9e(e,t,r,i);case 304:return R9e(e,t,r,i);case 260:return D9e(e,t,r,i);case 169:return C9e(e,t,r,i);case 208:return N9e(e,t,r,i);case 172:return P9e(e,t,r,i);case 226:return M9e(e,t,r,i);case 277:return L9e(e,t,r,i)}}var k9e=bt({"src/compiler/transformers/namedEvaluation.ts"(){"use strict";Zo()}});function WK(e,t,r,i,o,s){let l=Qe(t.tag,r,ht);R.assert(l);let d=[void 0],p=[],h=[],m=t.template;if(s===0&&!kj(m))return Sn(t,r,e);let{factory:y}=e;if(HI(m))p.push(mle(y,m)),h.push(_le(y,m,i));else{p.push(mle(y,m.head)),h.push(_le(y,m.head,i));for(let S of m.templateSpans)p.push(mle(y,S.literal)),h.push(_le(y,S.literal,i)),d.push(R.checkDefined(Qe(S.expression,r,ht)))}let E=e.getEmitHelperFactory().createTemplateObjectHelper(y.createArrayLiteralExpression(p),y.createArrayLiteralExpression(h));if(oc(i)){let S=y.createUniqueName("templateObject");o(S),d[0]=y.createLogicalOr(S,y.createAssignment(S,E))}else d[0]=E;return y.createCallExpression(l,void 0,d)}function mle(e,t){return t.templateFlags&26656?e.createVoidZero():e.createStringLiteral(t.text)}function _le(e,t,r){let i=t.rawText;if(i===void 0){R.assertIsDefined(r,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),i=T0(r,t);let o=t.kind===15||t.kind===18;i=i.substring(1,i.length-(o?1:2))}return i=i.replace(/\r\n?/g,` +`),at(e.createStringLiteral(i),t)}var FK,w9e=bt({"src/compiler/transformers/taggedTemplate.ts"(){"use strict";Zo(),FK=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(FK||{})}});function hle(e){let{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,d=e.getEmitResolver(),p=e.getCompilerOptions(),h=rs(p),m=Md(p),y=!!p.experimentalDecorators,E=p.emitDecoratorMetadata?yle(e):void 0,S=e.onEmitNode,A=e.onSubstituteNode;e.onEmitNode=ac,e.onSubstituteNode=xl,e.enableSubstitution(211),e.enableSubstitution(212);let N,D,w,j,K,Y,B,ce;return z;function z($){return $.kind===313?ee($):me($)}function ee($){return t.createBundle($.sourceFiles.map(me),to($.prepends,Pe=>Pe.kind===315?FU(Pe,"js"):Pe))}function me($){if($.isDeclarationFile)return $;N=$;let Pe=ge($,tt);return Wg(Pe,e.readEmitHelpers()),N=void 0,Pe}function ge($,Pe){let yt=j,cn=K,vr=Y;q($);let fr=Pe($);return j!==yt&&(K=cn),j=yt,Y=vr,fr}function q($){switch($.kind){case 312:case 269:case 268:case 241:j=$,K=void 0;break;case 263:case 262:if(Qr($,128))break;$.name?H($):R.assert($.kind===263||Qr($,2048));break}}function J($){return ge($,re)}function re($){return $.transformFlags&1?ze($):$}function pe($){return ge($,xe)}function xe($){switch($.kind){case 272:case 271:case 277:case 278:return ne($);default:return re($)}}function fe($){let Pe=Ro($);if(Pe===$||Ll($))return!1;if(!Pe||Pe.kind!==$.kind)return!0;switch($.kind){case 272:if(R.assertNode(Pe,Mc),$.importClause!==Pe.importClause||$.attributes!==Pe.attributes)return!0;break;case 271:if(R.assertNode(Pe,Zc),$.name!==Pe.name||$.isTypeOnly!==Pe.isTypeOnly||$.moduleReference!==Pe.moduleReference&&(Xu($.moduleReference)||Xu(Pe.moduleReference)))return!0;break;case 278:if(R.assertNode(Pe,Xl),$.exportClause!==Pe.exportClause||$.attributes!==Pe.attributes)return!0;break}return!1}function ne($){if(fe($))return $.transformFlags&1?Sn($,J,e):$;switch($.kind){case 272:return En($);case 271:return Io($);case 277:return xi($);case 278:return er($);default:R.fail("Unhandled ellided statement")}}function he($){return ge($,Ce)}function Ce($){if(!($.kind===278||$.kind===272||$.kind===273||$.kind===271&&$.moduleReference.kind===283))return $.transformFlags&1||Qr($,32)?ze($):$}function Ge($){return Pe=>ge(Pe,yt=>ve(yt,$))}function ve($,Pe){switch($.kind){case 176:return In($);case 172:return Ot($,Pe);case 177:return Ba($,Pe);case 178:return vn($,Pe);case 174:return Ao($,Pe);case 175:return Sn($,J,e);case 240:return $;case 181:return;default:return R.failBadSyntaxKind($)}}function Ie($){return Pe=>ge(Pe,yt=>De(yt,$))}function De($,Pe){switch($.kind){case 303:case 304:case 305:return J($);case 177:return Ba($,Pe);case 178:return vn($,Pe);case 174:return Ao($,Pe);default:return R.failBadSyntaxKind($)}}function Le($){return yd($)?void 0:J($)}function Et($){return Ta($)?void 0:J($)}function be($){if(!yd($)&&!(MI($.kind)&28895)&&!(D&&$.kind===95))return $}function ze($){if(Hi($)&&Qr($,128))return t.createNotEmittedStatement($);switch($.kind){case 95:case 90:return D?void 0:$;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 188:case 189:case 190:case 191:case 187:case 182:case 168:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 185:case 184:case 186:case 183:case 192:case 193:case 194:case 196:case 197:case 198:case 199:case 200:case 201:case 181:return;case 265:return t.createNotEmittedStatement($);case 270:return;case 264:return t.createNotEmittedStatement($);case 263:return Zt($);case 231:return en($);case 298:return Er($);case 233:return on($);case 210:return Wt($);case 176:case 172:case 174:case 177:case 178:case 175:return R.fail("Class and object literal elements must be visited with their respective visitors");case 262:return kn($);case 218:return Be($);case 219:return ct($);case 169:return lt($);case 217:return st($);case 216:case 234:return G($);case 238:return Tt($);case 213:return He($);case 214:return pt($);case 215:return Ft($);case 235:return et($);case 266:return U($);case 243:return Dt($);case 260:return ke($);case 267:return It($);case 271:return Io($);case 285:return hn($);case 286:return dn($);default:return Sn($,J,e)}}function tt($){let Pe=du(p,"alwaysStrict")&&!(oc($)&&m>=5)&&!Jf($);return t.updateSourceFile($,TK($.statements,pe,e,0,Pe))}function Wt($){return t.updateObjectLiteralExpression($,zn($.properties,Ie($),Ng))}function _t($){let Pe=0;gt(NK($,!0,!0))&&(Pe|=1);let yt=S_($);return yt&&Yl(yt.expression).kind!==106&&(Pe|=64),Py(y,$)&&(Pe|=2),hN(y,$)&&(Pe|=4),xn($)?Pe|=8:Po($)?Pe|=32:$l($)&&(Pe|=16),Pe}function Je($){return!!($.transformFlags&8192)}function ft($){return bf($)||gt($.typeParameters)||gt($.heritageClauses,Je)||gt($.members,Je)}function Zt($){let Pe=_t($),yt=h<=1&&!!(Pe&7);if(!ft($)&&!Py(y,$)&&!xn($))return t.updateClassDeclaration($,zn($.modifiers,be,Ta),$.name,void 0,zn($.heritageClauses,J,ef),zn($.members,Ge($),Xc));yt&&e.startLexicalEnvironment();let cn=yt||Pe&8,vr=cn?zn($.modifiers,Et,il):zn($.modifiers,J,il);Pe&2&&(vr=Kn(vr,$));let zr=cn&&!$.name||Pe&4||Pe&1?$.name??t.getGeneratedNameForNode($):$.name,Di=t.updateClassDeclaration($,vr,zr,void 0,zn($.heritageClauses,J,ef),Dn($)),Cr=za($);Pe&1&&(Cr|=64),lr(Di,Cr);let Jo;if(yt){let vl=[Di],jc=Xj(Pa(N.text,$.members.end),20),Gs=t.getInternalName($),hc=t.createPartiallyEmittedExpression(Gs);vR(hc,jc.end),lr(hc,3072);let vs=t.createReturnStatement(hc);KN(vs,jc.pos),lr(vs,3840),vl.push(vs),qh(vl,e.endLexicalEnvironment());let Uc=t.createImmediatelyInvokedArrowFunction(vl);Ik(Uc,1);let tp=t.createVariableDeclaration(t.getLocalName($,!1,!1),void 0,void 0,Uc);Rr(tp,$);let wc=t.createVariableStatement(void 0,t.createVariableDeclarationList([tp],1));Rr(wc,$),ic(wc,$),Da(wc,kg($)),Kd(wc),Jo=wc}else Jo=Di;if(cn){if(Pe&8)return[Jo,ls($)];if(Pe&32)return[Jo,t.createExportDefault(t.getLocalName($,!1,!0))];if(Pe&16)return[Jo,t.createExternalModuleExport(t.getDeclarationName($,!1,!0))]}return Jo}function en($){let Pe=zn($.modifiers,Et,il);return Py(y,$)&&(Pe=Kn(Pe,$)),t.updateClassExpression($,Pe,$.name,void 0,zn($.heritageClauses,J,ef),Dn($))}function Dn($){let Pe=zn($.members,Ge($),Xc),yt,cn=eg($),vr=cn&&jr(cn.parameters,fr=>dp(fr,cn));if(vr)for(let fr of vr){let zr=t.createPropertyDeclaration(void 0,fr.name,void 0,void 0,void 0);Rr(zr,fr),yt=Tn(yt,zr)}return yt?(yt=Hr(yt,Pe),at(t.createNodeArray(yt),$.members)):Pe}function Kn($,Pe){let yt=Yt(Pe,Pe);if(gt(yt)){let cn=[];Hr(cn,AW($,Jk)),Hr(cn,jr($,yd)),Hr(cn,yt),Hr(cn,jr(_ne($,Jk),Ta)),$=at(t.createNodeArray(cn),$)}return $}function pn($,Pe,yt){if(di(yt)&&lj(y,Pe,yt)){let cn=Yt(Pe,yt);if(gt(cn)){let vr=[];Hr(vr,jr($,yd)),Hr(vr,cn),Hr(vr,jr($,Ta)),$=at(t.createNodeArray(vr),$)}}return $}function Yt($,Pe){if(y)return GIe?hi($,Pe):qt($,Pe)}function qt($,Pe){if(E){let yt;if(uo($)){let cn=r().createMetadataHelper("design:type",E.serializeTypeOfNode({currentLexicalScope:j,currentNameScope:Pe},$));yt=Tn(yt,t.createDecorator(cn))}if(Eo($)){let cn=r().createMetadataHelper("design:paramtypes",E.serializeParameterTypesOfNode({currentLexicalScope:j,currentNameScope:Pe},$,Pe));yt=Tn(yt,t.createDecorator(cn))}if(Li($)){let cn=r().createMetadataHelper("design:returntype",E.serializeReturnTypeOfNode({currentLexicalScope:j,currentNameScope:Pe},$));yt=Tn(yt,t.createDecorator(cn))}return yt}}function hi($,Pe){if(E){let yt;if(uo($)){let cn=t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),E.serializeTypeOfNode({currentLexicalScope:j,currentNameScope:Pe},$)));yt=Tn(yt,cn)}if(Eo($)){let cn=t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),E.serializeParameterTypesOfNode({currentLexicalScope:j,currentNameScope:Pe},$,Pe)));yt=Tn(yt,cn)}if(Li($)){let cn=t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),E.serializeReturnTypeOfNode({currentLexicalScope:j,currentNameScope:Pe},$)));yt=Tn(yt,cn)}if(yt){let cn=r().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(yt,!0));return[t.createDecorator(cn)]}}}function uo($){let Pe=$.kind;return Pe===174||Pe===177||Pe===178||Pe===172}function Li($){return $.kind===174}function Eo($){switch($.kind){case 263:case 231:return eg($)!==void 0;case 174:case 177:case 178:return!0}return!1}function Qn($,Pe){let yt=$.name;return Ki(yt)?t.createIdentifier(""):Ya(yt)?Pe&&!L_(yt.expression)?t.getGeneratedNameForNode(yt):yt.expression:Fe(yt)?t.createStringLiteral(yr(yt)):t.cloneNode(yt)}function Ur($){let Pe=$.name;if(Ya(Pe)&&(!pc($)&&Y||bf($)&&y)){let yt=Qe(Pe.expression,J,ht);R.assert(yt);let cn=gm(yt);if(!L_(cn)){let vr=t.getGeneratedNameForNode(Pe);return l(vr),t.updateComputedPropertyName(Pe,t.createAssignment(vr,yt))}}return R.checkDefined(Qe(Pe,J,rc))}function Er($){if($.token!==119)return Sn($,J,e)}function on($){return t.updateExpressionWithTypeArguments($,R.checkDefined(Qe($.expression,J,Yu)),void 0)}function Ye($){return!Fl($.body)}function Ot($,Pe){let yt=$.flags&33554432||Qr($,64);if(yt&&!(y&&bf($)))return;let cn=di(Pe)?yt?zn($.modifiers,Et,il):zn($.modifiers,J,il):zn($.modifiers,Le,il);return cn=pn(cn,$,Pe),yt?t.updatePropertyDeclaration($,bo(cn,t.createModifiersFromModifierFlags(128)),R.checkDefined(Qe($.name,J,rc)),void 0,void 0,void 0):t.updatePropertyDeclaration($,cn,Ur($),void 0,void 0,Qe($.initializer,J,ht))}function In($){if(Ye($))return t.updateConstructorDeclaration($,void 0,Il($.parameters,J,e),yi($.body,$))}function si($,Pe,yt,cn,vr,fr){let zr=cn[vr],Di=Pe[zr];if(Hr($,zn(Pe,J,Hi,yt,zr-yt)),wT(Di)){let Cr=[];si(Cr,Di.tryBlock.statements,0,cn,vr+1,fr);let Jo=t.createNodeArray(Cr);at(Jo,Di.tryBlock.statements),$.push(t.updateTryStatement(Di,t.updateBlock(Di.tryBlock,Cr),Qe(Di.catchClause,J,Y0),Qe(Di.finallyBlock,J,Ho)))}else Hr($,zn(Pe,J,Hi,zr,1)),Hr($,fr);Hr($,zn(Pe,J,Hi,zr+1))}function yi($,Pe){let yt=Pe&&jr(Pe.parameters,Cr=>dp(Cr,Pe));if(!gt(yt))return rf($,J,e);let cn=[];o();let vr=t.copyPrologue($.statements,cn,!1,J),fr=z3($.statements,vr),zr=to(yt,$i);fr.length?si(cn,$.statements,vr,fr,0,zr):(Hr(cn,zr),Hr(cn,zn($.statements,J,Hi,vr))),cn=t.mergeLexicalEnvironment(cn,s());let Di=t.createBlock(at(t.createNodeArray(cn),$.statements),!0);return at(Di,$),Rr(Di,$),Di}function $i($){let Pe=$.name;if(!Fe(Pe))return;let yt=ja(at(t.cloneNode(Pe),Pe),Pe.parent);lr(yt,3168);let cn=ja(at(t.cloneNode(Pe),Pe),Pe.parent);return lr(cn,3072),Kd(Ak(at(Rr(t.createExpressionStatement(t.createAssignment(at(t.createPropertyAccessExpression(t.createThis(),yt),$.name),cn)),$),pE($,-1))))}function Ao($,Pe){if(!($.transformFlags&1))return $;if(!Ye($))return;let yt=di(Pe)?zn($.modifiers,J,il):zn($.modifiers,Le,il);return yt=pn(yt,$,Pe),t.updateMethodDeclaration($,yt,$.asteriskToken,Ur($),void 0,void 0,Il($.parameters,J,e),void 0,rf($.body,J,e))}function da($){return!(Fl($.body)&&Qr($,64))}function Ba($,Pe){if(!($.transformFlags&1))return $;if(!da($))return;let yt=di(Pe)?zn($.modifiers,J,il):zn($.modifiers,Le,il);return yt=pn(yt,$,Pe),t.updateGetAccessorDeclaration($,yt,Ur($),Il($.parameters,J,e),void 0,rf($.body,J,e)||t.createBlock([]))}function vn($,Pe){if(!($.transformFlags&1))return $;if(!da($))return;let yt=di(Pe)?zn($.modifiers,J,il):zn($.modifiers,Le,il);return yt=pn(yt,$,Pe),t.updateSetAccessorDeclaration($,yt,Ur($),Il($.parameters,J,e),rf($.body,J,e)||t.createBlock([]))}function kn($){if(!Ye($))return t.createNotEmittedStatement($);let Pe=t.updateFunctionDeclaration($,zn($.modifiers,be,Ta),$.asteriskToken,$.name,void 0,Il($.parameters,J,e),void 0,rf($.body,J,e)||t.createBlock([]));if(xn($)){let yt=[Pe];return zs(yt,$),yt}return Pe}function Be($){return Ye($)?t.updateFunctionExpression($,zn($.modifiers,be,Ta),$.asteriskToken,$.name,void 0,Il($.parameters,J,e),void 0,rf($.body,J,e)||t.createBlock([])):t.createOmittedExpression()}function ct($){return t.updateArrowFunction($,zn($.modifiers,be,Ta),void 0,Il($.parameters,J,e),void 0,$.equalsGreaterThanToken,rf($.body,J,e))}function lt($){if(k0($))return;let Pe=t.updateParameterDeclaration($,zn($.modifiers,yt=>yd(yt)?J(yt):void 0,il),$.dotDotDotToken,R.checkDefined(Qe($.name,J,sT)),void 0,void 0,Qe($.initializer,J,ht));return Pe!==$&&(ic(Pe,$),at(Pe,R_($)),Da(Pe,R_($)),lr(Pe.name,64)),Pe}function Dt($){if(xn($)){let Pe=ON($.declarationList);return Pe.length===0?void 0:at(t.createExpressionStatement(t.inlineExpressions(mn(Pe,se))),$)}else return Sn($,J,e)}function se($){let Pe=$.name;return $o(Pe)?UT($,J,e,0,!1,sd):at(t.createAssignment(mo(Pe),R.checkDefined(Qe($.initializer,J,ht))),$)}function ke($){let Pe=t.updateVariableDeclaration($,R.checkDefined(Qe($.name,J,sT)),void 0,void 0,Qe($.initializer,J,ht));return $.type&&eae(Pe.name,$.type),Pe}function st($){let Pe=Yl($.expression,-7);if(cT(Pe)){let yt=Qe($.expression,J,ht);return R.assert(yt),t.createPartiallyEmittedExpression(yt,$)}return Sn($,J,e)}function G($){let Pe=Qe($.expression,J,ht);return R.assert(Pe),t.createPartiallyEmittedExpression(Pe,$)}function et($){let Pe=Qe($.expression,J,Yu);return R.assert(Pe),t.createPartiallyEmittedExpression(Pe,$)}function Tt($){let Pe=Qe($.expression,J,ht);return R.assert(Pe),t.createPartiallyEmittedExpression(Pe,$)}function He($){return t.updateCallExpression($,R.checkDefined(Qe($.expression,J,ht)),void 0,zn($.arguments,J,ht))}function pt($){return t.updateNewExpression($,R.checkDefined(Qe($.expression,J,ht)),void 0,zn($.arguments,J,ht))}function Ft($){return t.updateTaggedTemplateExpression($,R.checkDefined(Qe($.tag,J,ht)),void 0,R.checkDefined(Qe($.template,J,EI)))}function hn($){return t.updateJsxSelfClosingElement($,R.checkDefined(Qe($.tagName,J,cN)),void 0,R.checkDefined(Qe($.attributes,J,X0)))}function dn($){return t.updateJsxOpeningElement($,R.checkDefined(Qe($.tagName,J,cN)),void 0,R.checkDefined(Qe($.attributes,J,X0)))}function un($){return!I0($)||G0(p)}function U($){if(!un($))return t.createNotEmittedStatement($);let Pe=[],yt=4,cn=Ne(Pe,$);cn&&(m!==4||j!==N)&&(yt|=1024);let vr=sa($),fr=ld($),zr=xn($)?t.getExternalModuleOrNamespaceExportName(w,$,!1,!0):t.getDeclarationName($,!1,!0),Di=t.createLogicalOr(zr,t.createAssignment(zr,t.createObjectLiteralExpression()));if(xn($)){let Jo=t.getLocalName($,!1,!0);Di=t.createAssignment(Jo,Di)}let Cr=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,vr)],void 0,Me($,fr)),void 0,[Di]));return Rr(Cr,$),cn&&(hE(Cr,void 0),GI(Cr,void 0)),at(Cr,$),D_(Cr,yt),Pe.push(Cr),Pe}function Me($,Pe){let yt=w;w=Pe;let cn=[];i();let vr=mn($.members,Pt);return qh(cn,s()),Hr(cn,vr),w=yt,t.createBlock(at(t.createNodeArray(cn),$.members),!0)}function Pt($){let Pe=Qn($,!1),yt=k($),cn=t.createAssignment(t.createElementAccessExpression(w,Pe),yt),vr=yt.kind===11?cn:t.createAssignment(t.createElementAccessExpression(w,cn),Pe);return at(t.createExpressionStatement(at(vr,$)),$)}function k($){let Pe=d.getConstantValue($);return Pe!==void 0?typeof Pe=="string"?t.createStringLiteral(Pe):Pe<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-Pe)):t.createNumericLiteral(Pe):(Es(),$.initializer?R.checkDefined(Qe($.initializer,J,ht)):t.createVoidZero())}function ie($){let Pe=Ro($,ql);return Pe?yK(Pe,G0(p)):!0}function H($){K||(K=new Map);let Pe=We($);K.has(Pe)||K.set(Pe,$)}function ue($){if(K){let Pe=We($);return K.get(Pe)===$}return!0}function We($){return R.assertNode($.name,Fe),$.name.escapedText}function Ne($,Pe){let yt=t.createVariableDeclaration(t.getLocalName(Pe,!1,!0)),cn=j.kind===312?0:1,vr=t.createVariableStatement(zn(Pe.modifiers,be,Ta),t.createVariableDeclarationList([yt],cn));return Rr(yt,Pe),hE(yt,void 0),GI(yt,void 0),Rr(vr,Pe),H(Pe),ue(Pe)?(Pe.kind===266?Da(vr.declarationList,Pe):Da(vr,Pe),ic(vr,Pe),D_(vr,2048),$.push(vr),!0):!1}function It($){if(!ie($))return t.createNotEmittedStatement($);R.assertNode($.name,Fe,"A TypeScript namespace should have an Identifier name."),Na();let Pe=[],yt=4,cn=Ne(Pe,$);cn&&(m!==4||j!==N)&&(yt|=1024);let vr=sa($),fr=ld($),zr=xn($)?t.getExternalModuleOrNamespaceExportName(w,$,!1,!0):t.getDeclarationName($,!1,!0),Di=t.createLogicalOr(zr,t.createAssignment(zr,t.createObjectLiteralExpression()));if(xn($)){let Jo=t.getLocalName($,!1,!0);Di=t.createAssignment(Jo,Di)}let Cr=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,vr)],void 0,Ct($,fr)),void 0,[Di]));return Rr(Cr,$),cn&&(hE(Cr,void 0),GI(Cr,void 0)),at(Cr,$),D_(Cr,yt),Pe.push(Cr),Pe}function Ct($,Pe){let yt=w,cn=D,vr=K;w=Pe,D=$,K=void 0;let fr=[];i();let zr,Di;if($.body)if($.body.kind===268)ge($.body,Jo=>Hr(fr,zn(Jo.statements,he,Hi))),zr=$.body.statements,Di=$.body;else{let Jo=It($.body);Jo&&(So(Jo)?Hr(fr,Jo):fr.push(Jo));let vl=Kt($).body;zr=pE(vl.statements,-1)}qh(fr,s()),w=yt,D=cn,K=vr;let Cr=t.createBlock(at(t.createNodeArray(fr),zr),!0);return at(Cr,Di),(!$.body||$.body.kind!==268)&&lr(Cr,za(Cr)|3072),Cr}function Kt($){if($.body.kind===267)return Kt($.body)||$.body}function En($){if(!$.importClause)return $;if($.importClause.isTypeOnly)return;let Pe=Qe($.importClause,wn,yh);return Pe||p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2?t.updateImportDeclaration($,void 0,Pe,$.moduleSpecifier,$.attributes):void 0}function wn($){R.assert(!$.isTypeOnly);let Pe=de($)?$.name:void 0,yt=Qe($.namedBindings,Bn,OV);return Pe||yt?t.updateImportClause($,!1,Pe,yt):void 0}function Bn($){if($.kind===274)return de($)?$:void 0;{let Pe=p.verbatimModuleSyntax||p.preserveValueImports&&(p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2),yt=zn($.elements,gi,Qu);return Pe||gt(yt)?t.updateNamedImports($,yt):void 0}}function gi($){return!$.isTypeOnly&&de($)?$:void 0}function xi($){return p.verbatimModuleSyntax||d.isValueAliasDeclaration($)?Sn($,J,e):void 0}function er($){if($.isTypeOnly)return;if(!$.exportClause||vh($.exportClause))return $;let Pe=p.verbatimModuleSyntax||!!$.moduleSpecifier&&(p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2),yt=Qe($.exportClause,cn=>Pi(cn,Pe),AV);return yt?t.updateExportDeclaration($,void 0,$.isTypeOnly,yt,$.moduleSpecifier,$.attributes):void 0}function Fr($,Pe){let yt=zn($.elements,Ri,Hd);return Pe||gt(yt)?t.updateNamedExports($,yt):void 0}function ho($){return t.updateNamespaceExport($,R.checkDefined(Qe($.name,J,Fe)))}function Pi($,Pe){return vh($)?ho($):Fr($,Pe)}function Ri($){return!$.isTypeOnly&&(p.verbatimModuleSyntax||d.isValueAliasDeclaration($))?$:void 0}function Kr($){return de($)||!oc(N)&&d.isTopLevelValueImportEqualsWithEntityName($)}function Io($){if($.isTypeOnly)return;if(sE($)){let yt=de($);return!yt&&p.importsNotUsedAsValues===1?Rr(at(t.createImportDeclaration(void 0,void 0,$.moduleReference.expression,void 0),$),$):yt?Sn($,J,e):void 0}if(!Kr($))return;let Pe=Vk(t,$.moduleReference);return lr(Pe,7168),$l($)||!xn($)?Rr(at(t.createVariableStatement(zn($.modifiers,be,Ta),t.createVariableDeclarationList([Rr(t.createVariableDeclaration($.name,void 0,void 0,Pe),$)])),$),$):Rr(ml($.name,Pe,$),$)}function xn($){return D!==void 0&&Qr($,32)}function ks($){return D===void 0&&Qr($,32)}function $l($){return ks($)&&!Qr($,2048)}function Po($){return ks($)&&Qr($,2048)}function ls($){let Pe=t.createAssignment(t.getExternalModuleOrNamespaceExportName(w,$,!1,!0),t.getLocalName($));Da(Pe,Ef($.name?$.name.pos:$.pos,$.end));let yt=t.createExpressionStatement(Pe);return Da(yt,Ef(-1,$.end)),yt}function zs($,Pe){$.push(ls(Pe))}function ml($,Pe,yt){return at(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(w,$,!1,!0),Pe)),yt)}function sd($,Pe,yt){return at(t.createAssignment(mo($),Pe),yt)}function mo($){return t.getNamespaceMemberName(w,$,!1,!0)}function sa($){let Pe=t.getGeneratedNameForNode($);return Da(Pe,$.name),Pe}function ld($){return t.getGeneratedNameForNode($)}function Es(){B&8||(B|=8,e.enableSubstitution(80))}function Na(){B&2||(B|=2,e.enableSubstitution(80),e.enableSubstitution(304),e.enableEmitNotification(267))}function ul($){return Nl($).kind===267}function Nf($){return Nl($).kind===266}function ac($,Pe,yt){let cn=ce,vr=N;Yi(Pe)&&(N=Pe),B&2&&ul(Pe)&&(ce|=2),B&8&&Nf(Pe)&&(ce|=8),S($,Pe,yt),ce=cn,N=vr}function xl($,Pe){return Pe=A($,Pe),$===1?Mo(Pe):Zu(Pe)?al(Pe):Pe}function al($){if(B&2){let Pe=$.name,yt=Bs(Pe);if(yt){if($.objectAssignmentInitializer){let cn=t.createAssignment(yt,$.objectAssignmentInitializer);return at(t.createPropertyAssignment(Pe,cn),$)}return at(t.createPropertyAssignment(Pe,yt),$)}}return $}function Mo($){switch($.kind){case 80:return tn($);case 211:return ed($);case 212:return cd($)}return $}function tn($){return Bs($)||$}function Bs($){if(B&ce&&!rl($)&&!zg($)){let Pe=d.getReferencedExportContainer($,!1);if(Pe&&Pe.kind!==312&&(ce&2&&Pe.kind===267||ce&8&&Pe.kind===266))return at(t.createPropertyAccessExpression(t.getGeneratedNameForNode(Pe),$),$)}}function ed($){return Ds($)}function cd($){return Ds($)}function Ep($){return $.replace(/\*\//g,"*_/")}function Ds($){let Pe=Ac($);if(Pe!==void 0){Qoe($,Pe);let yt=typeof Pe=="string"?t.createStringLiteral(Pe):Pe<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-Pe)):t.createNumericLiteral(Pe);if(!p.removeComments){let cn=Nl($,Ps);n4(yt,3,` ${Ep(uc(cn))} `)}return yt}return $}function Ac($){if(!em(p))return wr($)||qs($)?d.getConstantValue($):void 0}function de($){return p.verbatimModuleSyntax||ir($)||(p.preserveValueImports?d.isValueAliasDeclaration($):d.isReferencedAliasDeclaration($))}}var GIe,O9e=bt({"src/compiler/transformers/ts.ts"(){"use strict";Zo(),GIe=!1}});function gle(e){let{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i,endLexicalEnvironment:o,startLexicalEnvironment:s,resumeLexicalEnvironment:l,addBlockScopedVariable:d}=e,p=e.getEmitResolver(),h=e.getCompilerOptions(),m=rs(h),y=nP(h),E=!!h.experimentalDecorators,S=!y,A=y&&m<9,N=S||A,D=m<9,w=m<99?-1:y?0:3,j=m<9,K=j&&m>=2,Y=N||D||w===-1,B=e.onSubstituteNode;e.onSubstituteNode=ed;let ce=e.onEmitNode;e.onEmitNode=Bs;let z=!1,ee,me,ge,q,J,re=new Map,pe=new Set,xe,fe,ne=!1,he=!1;return Im(e,Ce);function Ce(de){if(de.isDeclarationFile||(J=void 0,z=!!(ym(de)&32),!Y&&!z))return de;let $=Sn(de,ve,e);return Wg($,e.readEmitHelpers()),$}function Ge(de){switch(de.kind){case 129:return Ot()?void 0:de;default:return ri(de,Ta)}}function ve(de){if(!(de.transformFlags&16777216)&&!(de.transformFlags&134234112))return de;switch(de.kind){case 129:return R.fail("Use `modifierVisitor` instead.");case 263:return dn(de);case 231:return U(de);case 175:case 172:return R.fail("Use `classElementVisitor` instead.");case 303:return Je(de);case 243:return ft(de);case 260:return Zt(de);case 169:return en(de);case 208:return Dn(de);case 277:return Kn(de);case 81:return Wt(de);case 211:return da(de);case 212:return Ba(de);case 224:case 225:return vn(de,!1);case 226:return st(de,!1);case 217:return et(de,!1);case 213:return lt(de);case 244:return Be(de);case 215:return Dt(de);case 248:return kn(de);case 110:return k(de);case 262:case 218:return Li(void 0,Ie,de);case 176:case 174:case 177:case 178:return Li(de,Ie,de);default:return Ie(de)}}function Ie(de){return Sn(de,ve,e)}function De(de){switch(de.kind){case 224:case 225:return vn(de,!0);case 226:return st(de,!0);case 361:return G(de,!0);case 217:return et(de,!0);default:return ve(de)}}function Le(de){switch(de.kind){case 298:return Sn(de,Le,e);case 233:return Ft(de);default:return ve(de)}}function Et(de){switch(de.kind){case 210:case 209:return tn(de);default:return ve(de)}}function be(de){switch(de.kind){case 176:return Li(de,qt,de);case 177:case 178:case 174:return Li(de,uo,de);case 172:return Li(de,In,de);case 175:return Li(de,Pt,de);case 167:return Yt(de);case 240:return de;default:return il(de)?Ge(de):ve(de)}}function ze(de){switch(de.kind){case 167:return Yt(de);default:return ve(de)}}function tt(de){switch(de.kind){case 172:return Ye(de);case 177:case 178:return be(de);default:R.assertMissingNode(de,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function Wt(de){return!D||Hi(de.parent)?de:Rr(t.createIdentifier(""),de)}function _t(de){let $=sa(de.left);if($){let Pe=Qe(de.right,ve,ht);return Rr(r().createClassPrivateFieldInHelper($.brandCheckIdentifier,Pe),de)}return Sn(de,ve,e)}function Je(de){return pp(de,ke)&&(de=yp(e,de)),Sn(de,ve,e)}function ft(de){let $=q;q=[];let Pe=Sn(de,ve,e),yt=gt(q)?[Pe,...q]:Pe;return q=$,yt}function Zt(de){return pp(de,ke)&&(de=yp(e,de)),Sn(de,ve,e)}function en(de){return pp(de,ke)&&(de=yp(e,de)),Sn(de,ve,e)}function Dn(de){return pp(de,ke)&&(de=yp(e,de)),Sn(de,ve,e)}function Kn(de){return pp(de,ke)&&(de=yp(e,de,!0,de.isExportEquals?"":"default")),Sn(de,ve,e)}function pn(de){return gt(ge)&&(Wu(de)?(ge.push(de.expression),de=t.updateParenthesizedExpression(de,t.inlineExpressions(ge))):(ge.push(de),de=t.inlineExpressions(ge)),ge=void 0),de}function Yt(de){let $=Qe(de.expression,ve,ht);return t.updateComputedPropertyName(de,pn($))}function qt(de){return xe?ue(de,xe):Ie(de)}function hi(de){return!!(D||pc(de)&&ym(de)&32)}function uo(de){if(R.assert(!bf(de)),!au(de)||!hi(de))return Sn(de,be,e);let $=sa(de.name);if(R.assert($,"Undeclared private name for property declaration."),!$.isValid)return de;let Pe=Eo(de);Pe&&Io().push(t.createAssignment(Pe,t.createFunctionExpression(jr(de.modifiers,yt=>Ta(yt)&&!qI(yt)&&!fae(yt)),de.asteriskToken,Pe,void 0,Il(de.parameters,ve,e),void 0,rf(de.body,ve,e))))}function Li(de,$,Pe){if(de!==fe){let yt=fe;fe=de;let cn=$(Pe);return fe=yt,cn}return $(Pe)}function Eo(de){R.assert(Ki(de.name));let $=sa(de.name);if(R.assert($,"Undeclared private name for property declaration."),$.kind==="m")return $.methodName;if($.kind==="a"){if(Mv(de))return $.getterName;if(Ny(de))return $.setterName}}function Qn(){let de=Ri(),$=de.classThis??de.classConstructor??xe?.name;return R.checkDefined($)}function Ur(de){let $=C_(de),Pe=Fy(de),yt=de.name,cn=yt,vr=yt;if(Ya(yt)&&!L_(yt.expression)){let jc=t3(yt);if(jc)cn=t.updateComputedPropertyName(yt,Qe(yt.expression,ve,ht)),vr=t.updateComputedPropertyName(yt,jc.left);else{let Gs=t.createTempVariable(i);Da(Gs,yt.expression);let hc=Qe(yt.expression,ve,ht),vs=t.createAssignment(Gs,hc);Da(vs,yt.expression),cn=t.updateComputedPropertyName(yt,vs),vr=t.updateComputedPropertyName(yt,Gs)}}let fr=zn(de.modifiers,Ge,Ta),zr=IH(t,de,fr,de.initializer);Rr(zr,de),lr(zr,3072),Da(zr,Pe);let Di=na(de)?Qn():t.createThis(),Cr=qae(t,de,fr,cn,Di);Rr(Cr,de),ic(Cr,$),Da(Cr,Pe);let Jo=t.createModifiersFromModifierFlags(x_(fr)),vl=Xae(t,de,Jo,vr,Di);return Rr(vl,de),lr(vl,3072),Da(vl,Pe),bw([zr,Cr,vl],tt,Xc)}function Er(de){if(hi(de)){let $=sa(de.name);if(R.assert($,"Undeclared private name for property declaration."),!$.isValid)return de;if($.isStatic&&!D){let Pe=Ct(de,t.createThis());if(Pe)return t.createClassStaticBlockDeclaration(t.createBlock([Pe],!0))}return}return S&&!na(de)&&J?.data&&J.data.facts&16?t.updatePropertyDeclaration(de,zn(de.modifiers,ve,il),de.name,void 0,void 0,void 0):(pp(de,ke)&&(de=yp(e,de)),t.updatePropertyDeclaration(de,zn(de.modifiers,Ge,Ta),Qe(de.name,ze,rc),void 0,void 0,Qe(de.initializer,ve,ht)))}function on(de){if(N&&!Lu(de)){let $=Fr(de.name,!!de.initializer||y);if($&&Io().push(...Yae($)),na(de)&&!D){let Pe=Ct(de,t.createThis());if(Pe){let yt=t.createClassStaticBlockDeclaration(t.createBlock([Pe]));return Rr(yt,de),ic(yt,de),ic(Pe,{pos:-1,end:-1}),hE(Pe,void 0),GI(Pe,void 0),yt}}return}return t.updatePropertyDeclaration(de,zn(de.modifiers,Ge,Ta),Qe(de.name,ze,rc),void 0,void 0,Qe(de.initializer,ve,ht))}function Ye(de){return R.assert(!bf(de),"Decorators should already have been transformed and elided."),au(de)?Er(de):on(de)}function Ot(){return w===-1||w===3&&!!J?.data&&!!(J.data.facts&16)}function In(de){return Lu(de)&&(Ot()||pc(de)&&ym(de)&32)?Ur(de):Ye(de)}function si(){return!!fe&&pc(fe)&&Nv(fe)&&Lu(Nl(fe))}function yi(de){if(si()){let $=Yl(de);$.kind===110&&pe.add($)}}function $i(de,$){return $=Qe($,ve,ht),yi($),Ao(de,$)}function Ao(de,$){switch(ic($,pE($,-1)),de.kind){case"a":return r().createClassPrivateFieldGetHelper($,de.brandCheckIdentifier,de.kind,de.getterName);case"m":return r().createClassPrivateFieldGetHelper($,de.brandCheckIdentifier,de.kind,de.methodName);case"f":return r().createClassPrivateFieldGetHelper($,de.brandCheckIdentifier,de.kind,de.isStatic?de.variableName:void 0);case"untransformed":return R.fail("Access helpers should not be created for untransformed private elements");default:R.assertNever(de,"Unknown private element type")}}function da(de){if(Ki(de.name)){let $=sa(de.name);if($)return at(Rr($i($,de.expression),de),de)}if(K&&fe&&wu(de)&&Fe(de.name)&&OP(fe)&&J?.data){let{classConstructor:$,superClassReference:Pe,facts:yt}=J.data;if(yt&1)return er(de);if($&&Pe){let cn=t.createReflectGetCall(Pe,t.createStringLiteralFromNode(de.name),$);return Rr(cn,de.expression),at(cn,de.expression),cn}}return Sn(de,ve,e)}function Ba(de){if(K&&fe&&wu(de)&&OP(fe)&&J?.data){let{classConstructor:$,superClassReference:Pe,facts:yt}=J.data;if(yt&1)return er(de);if($&&Pe){let cn=t.createReflectGetCall(Pe,Qe(de.argumentExpression,ve,ht),$);return Rr(cn,de.expression),at(cn,de.expression),cn}}return Sn(de,ve,e)}function vn(de,$){if(de.operator===46||de.operator===47){let Pe=ms(de.operand);if(wx(Pe)){let yt;if(yt=sa(Pe.name)){let cn=Qe(Pe.expression,ve,ht);yi(cn);let{readExpression:vr,initializeExpression:fr}=ct(cn),zr=$i(yt,vr),Di=Xv(de)||$?void 0:t.createTempVariable(i);return zr=q4(t,de,zr,i,Di),zr=Tt(yt,fr||vr,zr,64),Rr(zr,de),at(zr,de),Di&&(zr=t.createComma(zr,Di),at(zr,de)),zr}}else if(K&&fe&&wu(Pe)&&OP(fe)&&J?.data){let{classConstructor:yt,superClassReference:cn,facts:vr}=J.data;if(vr&1){let fr=er(Pe);return Xv(de)?t.updatePrefixUnaryExpression(de,fr):t.updatePostfixUnaryExpression(de,fr)}if(yt&&cn){let fr,zr;if(wr(Pe)?Fe(Pe.name)&&(zr=fr=t.createStringLiteralFromNode(Pe.name)):L_(Pe.argumentExpression)?zr=fr=Pe.argumentExpression:(zr=t.createTempVariable(i),fr=t.createAssignment(zr,Qe(Pe.argumentExpression,ve,ht))),fr&&zr){let Di=t.createReflectGetCall(cn,zr,yt);at(Di,Pe);let Cr=$?void 0:t.createTempVariable(i);return Di=q4(t,de,Di,i,Cr),Di=t.createReflectSetCall(cn,fr,Di,yt),Rr(Di,de),at(Di,de),Cr&&(Di=t.createComma(Di,Cr),at(Di,de)),Di}}}}return Sn(de,ve,e)}function kn(de){return t.updateForStatement(de,Qe(de.initializer,De,vf),Qe(de.condition,ve,ht),Qe(de.incrementor,De,ht),Au(de.statement,ve,e))}function Be(de){return t.updateExpressionStatement(de,Qe(de.expression,De,ht))}function ct(de){let $=Js(de)?de:t.cloneNode(de);if(de.kind===110&&pe.has(de)&&pe.add($),L_(de))return{readExpression:$,initializeExpression:void 0};let Pe=t.createTempVariable(i),yt=t.createAssignment(Pe,$);return{readExpression:Pe,initializeExpression:yt}}function lt(de){var $;if(wx(de.expression)&&sa(de.expression.name)){let{thisArg:Pe,target:yt}=t.createCallBinding(de.expression,i,m);return oT(de)?t.updateCallChain(de,t.createPropertyAccessChain(Qe(yt,ve,ht),de.questionDotToken,"call"),void 0,void 0,[Qe(Pe,ve,ht),...zn(de.arguments,ve,ht)]):t.updateCallExpression(de,t.createPropertyAccessExpression(Qe(yt,ve,ht),"call"),void 0,[Qe(Pe,ve,ht),...zn(de.arguments,ve,ht)])}if(K&&fe&&wu(de.expression)&&OP(fe)&&(($=J?.data)!=null&&$.classConstructor)){let Pe=t.createFunctionCallCall(Qe(de.expression,ve,ht),J.data.classConstructor,zn(de.arguments,ve,ht));return Rr(Pe,de),at(Pe,de),Pe}return Sn(de,ve,e)}function Dt(de){var $;if(wx(de.tag)&&sa(de.tag.name)){let{thisArg:Pe,target:yt}=t.createCallBinding(de.tag,i,m);return t.updateTaggedTemplateExpression(de,t.createCallExpression(t.createPropertyAccessExpression(Qe(yt,ve,ht),"bind"),void 0,[Qe(Pe,ve,ht)]),void 0,Qe(de.template,ve,EI))}if(K&&fe&&wu(de.tag)&&OP(fe)&&(($=J?.data)!=null&&$.classConstructor)){let Pe=t.createFunctionBindCall(Qe(de.tag,ve,ht),J.data.classConstructor,[]);return Rr(Pe,de),at(Pe,de),t.updateTaggedTemplateExpression(de,Pe,void 0,Qe(de.template,ve,EI))}return Sn(de,ve,e)}function se(de){if(J&&re.set(Nl(de),J),D){if(kP(de)){let yt=Qe(de.body.statements[0].expression,ve,ht);return Pc(yt,!0)&&yt.left===yt.right?void 0:yt}if(_1(de))return Qe(de.body.statements[0].expression,ve,ht);s();let $=Li(de,yt=>zn(yt,ve,Hi),de.body.statements);$=t.mergeLexicalEnvironment($,o());let Pe=t.createImmediatelyInvokedArrowFunction($);return Rr(ms(Pe.expression),de),D_(ms(Pe.expression),4),Rr(Pe,de),at(Pe,de),Pe}}function ke(de){if($c(de)&&!de.name){let $=B3(de);return gt($,_1)?!1:(D||!!ym(de))&>($,yt=>Al(yt)||au(yt)||N&&Sw(yt))}return!1}function st(de,$){if(wy(de)){let Pe=ge;ge=void 0,de=t.updateBinaryExpression(de,Qe(de.left,Et,ht),de.operatorToken,Qe(de.right,ve,ht));let yt=gt(ge)?t.inlineExpressions(TL([...ge,de])):de;return ge=Pe,yt}if(Pc(de)){pp(de,ke)&&(de=yp(e,de),R.assertNode(de,Pc));let Pe=Yl(de.left,9);if(wx(Pe)){let yt=sa(Pe.name);if(yt)return at(Rr(Tt(yt,Pe.expression,de.right,de.operatorToken.kind),de),de)}else if(K&&fe&&wu(de.left)&&OP(fe)&&J?.data){let{classConstructor:yt,superClassReference:cn,facts:vr}=J.data;if(vr&1)return t.updateBinaryExpression(de,er(de.left),de.operatorToken,Qe(de.right,ve,ht));if(yt&&cn){let fr=qs(de.left)?Qe(de.left.argumentExpression,ve,ht):Fe(de.left.name)?t.createStringLiteralFromNode(de.left.name):void 0;if(fr){let zr=Qe(de.right,ve,ht);if(PP(de.operatorToken.kind)){let Cr=fr;L_(fr)||(Cr=t.createTempVariable(i),fr=t.createAssignment(Cr,fr));let Jo=t.createReflectGetCall(cn,Cr,yt);Rr(Jo,de.left),at(Jo,de.left),zr=t.createBinaryExpression(Jo,MP(de.operatorToken.kind),zr),at(zr,de)}let Di=$?void 0:t.createTempVariable(i);return Di&&(zr=t.createAssignment(Di,zr),at(Di,de)),zr=t.createReflectSetCall(cn,fr,zr,yt),Rr(zr,de),at(zr,de),Di&&(zr=t.createComma(zr,Di),at(zr,de)),zr}}}}return G9e(de)?_t(de):Sn(de,ve,e)}function G(de,$){let Pe=$?Ew(de.elements,De):Ew(de.elements,ve,De);return t.updateCommaListExpression(de,Pe)}function et(de,$){let Pe=$?De:ve,yt=Qe(de.expression,Pe,ht);return t.updateParenthesizedExpression(de,yt)}function Tt(de,$,Pe,yt){if($=Qe($,ve,ht),Pe=Qe(Pe,ve,ht),yi($),PP(yt)){let{readExpression:cn,initializeExpression:vr}=ct($);$=vr||cn,Pe=t.createBinaryExpression(Ao(de,cn),MP(yt),Pe)}switch(ic($,pE($,-1)),de.kind){case"a":return r().createClassPrivateFieldSetHelper($,de.brandCheckIdentifier,Pe,de.kind,de.setterName);case"m":return r().createClassPrivateFieldSetHelper($,de.brandCheckIdentifier,Pe,de.kind,void 0);case"f":return r().createClassPrivateFieldSetHelper($,de.brandCheckIdentifier,Pe,de.kind,de.isStatic?de.variableName:void 0);case"untransformed":return R.fail("Access helpers should not be created for untransformed private elements");default:R.assertNever(de,"Unknown private element type")}}function He(de){return jr(de.members,rle)}function pt(de){var $;let Pe=0,yt=Nl(de);Sc(yt)&&Py(E,yt)&&(Pe|=1),D&&(wK(de)||V3(de))&&(Pe|=2);let cn=!1,vr=!1,fr=!1,zr=!1;for(let Cr of de.members)na(Cr)?((Cr.name&&(Ki(Cr.name)||Lu(Cr))&&D||Lu(Cr)&&w===-1&&!de.name&&!(($=de.emitNode)!=null&&$.classThis))&&(Pe|=2),(Vo(Cr)||Al(Cr))&&(j&&Cr.transformFlags&16384&&(Pe|=8,Pe&1||(Pe|=2)),K&&Cr.transformFlags&134217728&&(Pe&1||(Pe|=6)))):O0(Nl(Cr))||(Lu(Cr)?(zr=!0,fr||(fr=au(Cr))):au(Cr)?(fr=!0,p.getNodeCheckFlags(Cr)&262144&&(Pe|=2)):Vo(Cr)&&(cn=!0,vr||(vr=!!Cr.initializer)));return(A&&cn||S&&vr||D&&fr||D&&zr&&w===-1)&&(Pe|=16),Pe}function Ft(de){var $;if(((($=J?.data)==null?void 0:$.facts)||0)&4){let yt=t.createTempVariable(i,!0);return Ri().superClassReference=yt,t.updateExpressionWithTypeArguments(de,t.createAssignment(yt,Qe(de.expression,ve,ht)),void 0)}return Sn(de,ve,e)}function hn(de,$){var Pe;let yt=xe,cn=ge,vr=J;xe=de,ge=void 0,ho();let fr=ym(de)&32;if(D||fr){let Cr=No(de);if(Cr&&Fe(Cr))Kr().data.className=Cr;else if((Pe=de.emitNode)!=null&&Pe.assignedName&&Ca(de.emitNode.assignedName)){if(de.emitNode.assignedName.textSourceNode&&Fe(de.emitNode.assignedName.textSourceNode))Kr().data.className=de.emitNode.assignedName.textSourceNode;else if($p(de.emitNode.assignedName.text,m)){let Jo=t.createIdentifier(de.emitNode.assignedName.text);Kr().data.className=Jo}}}if(D){let Cr=He(de);gt(Cr)&&(Kr().data.weakSetName=sd("instances",Cr[0].name))}let zr=pt(de);zr&&(Ri().facts=zr),zr&8&&gi();let Di=$(de,zr);return Pi(),R.assert(J===vr),xe=yt,ge=cn,Di}function dn(de){return hn(de,un)}function un(de,$){var Pe,yt;let cn;if($&2)if(D&&((Pe=de.emitNode)!=null&&Pe.classThis))Ri().classConstructor=de.emitNode.classThis,cn=t.createAssignment(de.emitNode.classThis,t.getInternalName(de));else{let vs=t.createTempVariable(i,!0);Ri().classConstructor=t.cloneNode(vs),cn=t.createAssignment(vs,t.getInternalName(de))}(yt=de.emitNode)!=null&&yt.classThis&&(Ri().classThis=de.emitNode.classThis);let vr=p.getNodeCheckFlags(de)&262144,fr=Qr(de,32),zr=Qr(de,2048),Di=zn(de.modifiers,Ge,Ta),Cr=zn(de.heritageClauses,Le,ef),{members:Jo,prologue:vl}=ie(de),jc=[];if(cn&&Io().unshift(cn),gt(ge)&&jc.push(t.createExpressionStatement(t.inlineExpressions(ge))),S||D||ym(de)&32){let vs=B3(de);gt(vs)&&It(jc,vs,t.getInternalName(de))}jc.length>0&&fr&&zr&&(Di=zn(Di,vs=>Jk(vs)?void 0:vs,Ta),jc.push(t.createExportAssignment(void 0,!1,t.getLocalName(de,!1,!0))));let Gs=Ri().classConstructor;vr&&Gs&&(Bn(),me[kd(de)]=Gs);let hc=t.updateClassDeclaration(de,Di,de.name,void 0,Cr,Jo);return jc.unshift(hc),vl&&jc.unshift(t.createExpressionStatement(vl)),jc}function U(de){return hn(de,Me)}function Me(de,$){var Pe,yt,cn;let vr=!!($&1),fr=B3(de),zr=p.getNodeCheckFlags(de),Di=zr&262144,Cr;function Jo(){var wc;if(D&&((wc=de.emitNode)!=null&&wc.classThis))return Ri().classConstructor=de.emitNode.classThis;let im=zr&32768,mu=t.createTempVariable(im?d:i,!0);return Ri().classConstructor=t.cloneNode(mu),mu}(Pe=de.emitNode)!=null&&Pe.classThis&&(Ri().classThis=de.emitNode.classThis),$&2&&(Cr??(Cr=Jo()));let vl=zn(de.modifiers,Ge,Ta),jc=zn(de.heritageClauses,Le,ef),{members:Gs,prologue:hc}=ie(de),vs=t.updateClassExpression(de,vl,de.name,void 0,jc,Gs),Uc=[];if(hc&&Uc.push(hc),(D||ym(de)&32)&>(fr,wc=>Al(wc)||au(wc)||N&&Sw(wc))||gt(ge))if(vr)R.assertIsDefined(q,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),gt(ge)&&Hr(q,mn(ge,t.createExpressionStatement)),gt(fr)&&It(q,fr,((yt=de.emitNode)==null?void 0:yt.classThis)??t.getInternalName(de)),Cr?Uc.push(t.createAssignment(Cr,vs)):D&&((cn=de.emitNode)!=null&&cn.classThis)?Uc.push(t.createAssignment(de.emitNode.classThis,vs)):Uc.push(vs);else{if(Cr??(Cr=Jo()),Di){Bn();let wc=t.cloneNode(Cr);wc.emitNode.autoGenerate.flags&=-9,me[kd(de)]=wc}Uc.push(t.createAssignment(Cr,vs)),Hr(Uc,ge),Hr(Uc,Kt(fr,Cr)),Uc.push(t.cloneNode(Cr))}else Uc.push(vs);return Uc.length>1&&(D_(vs,131072),Uc.forEach(Kd)),t.inlineExpressions(Uc)}function Pt(de){if(!D)return Sn(de,ve,e)}function k(de){if(j&&fe&&Al(fe)&&J?.data){let{classThis:$,classConstructor:Pe}=J.data;return $??Pe??de}return de}function ie(de){let $=!!(ym(de)&32);if(D||z){for(let fr of de.members)if(au(fr))if(hi(fr))ml(fr,fr.name,xn);else{let zr=Kr();jT(zr,fr.name,{kind:"untransformed"})}if(D&>(He(de))&&H(),Ot()){for(let fr of de.members)if(Lu(fr)){let zr=t.getGeneratedPrivateNameForNode(fr.name,void 0,"_accessor_storage");if(D||$&&pc(fr))ml(fr,zr,ks);else{let Di=Kr();jT(Di,zr,{kind:"untransformed"})}}}}let Pe=zn(de.members,be,Xc),yt;gt(Pe,Pl)||(yt=ue(void 0,de));let cn,vr;if(!D&>(ge)){let fr=t.createExpressionStatement(t.inlineExpressions(ge));if(fr.transformFlags&134234112){let Di=t.createTempVariable(i),Cr=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([fr]));cn=t.createAssignment(Di,Cr),fr=t.createExpressionStatement(t.createCallExpression(Di,void 0,[]))}let zr=t.createBlock([fr]);vr=t.createClassStaticBlockDeclaration(zr),ge=void 0}if(yt||vr){let fr,zr=Vr(Pe,kP),Di=Vr(Pe,_1);fr=Tn(fr,zr),fr=Tn(fr,Di),fr=Tn(fr,yt),fr=Tn(fr,vr);let Cr=zr||Di?jr(Pe,Jo=>Jo!==zr&&Jo!==Di):Pe;fr=Hr(fr,Cr),Pe=at(t.createNodeArray(fr),de.members)}return{members:Pe,prologue:cn}}function H(){let{weakSetName:de}=Kr().data;R.assert(de,"weakSetName should be set in private identifier environment"),Io().push(t.createAssignment(de,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}function ue(de,$){if(de=Qe(de,ve,Pl),!J?.data||!(J.data.facts&16))return de;let Pe=S_($),yt=!!(Pe&&Yl(Pe.expression).kind!==106),cn=Il(de?de.parameters:void 0,ve,e),vr=Ne($,de,yt);return vr?de?(R.assert(cn),t.updateConstructorDeclaration(de,void 0,cn,vr)):Kd(Rr(at(t.createConstructorDeclaration(void 0,cn??[],vr),de||$),de)):de}function We(de,$,Pe,yt,cn,vr,fr){let zr=yt[cn],Di=$[zr];if(Hr(de,zn($,ve,Hi,Pe,zr-Pe)),Pe=zr+1,wT(Di)){let Cr=[];We(Cr,Di.tryBlock.statements,0,yt,cn+1,vr,fr);let Jo=t.createNodeArray(Cr);at(Jo,Di.tryBlock.statements),de.push(t.updateTryStatement(Di,t.updateBlock(Di.tryBlock,Cr),Qe(Di.catchClause,ve,Y0),Qe(Di.finallyBlock,ve,Ho)))}else{for(Hr(de,zn($,ve,Hi,zr,1));Pe<$.length;){let Cr=$[Pe];if(dp(Nl(Cr),fr))Pe++;else break}Hr(de,vr)}Hr(de,zn($,ve,Hi,Pe))}function Ne(de,$,Pe){let yt=NK(de,!1,!1),cn=yt;y||(cn=jr(cn,Gs=>!!Gs.initializer||Ki(Gs.name)||I_(Gs)));let vr=He(de),fr=gt(cn)||gt(vr);if(!$&&!fr)return rf(void 0,ve,e);l();let zr=!$&&Pe,Di=0,Cr=[],Jo=[],vl=t.createThis();if(xi(Jo,vr,vl),$){let Gs=jr(yt,vs=>dp(Nl(vs),$)),hc=jr(cn,vs=>!dp(Nl(vs),$));It(Jo,Gs,vl),It(Jo,hc,vl)}else It(Jo,cn,vl);if($?.body){Di=t.copyPrologue($.body.statements,Cr,!1,ve);let Gs=z3($.body.statements,Di);if(Gs.length)We(Cr,$.body.statements,Di,Gs,0,Jo,$);else{for(;Di<$.body.statements.length;){let hc=$.body.statements[Di];if(dp(Nl(hc),$))Di++;else break}Hr(Cr,Jo),Hr(Cr,zn($.body.statements,ve,Hi,Di))}}else zr&&Cr.push(t.createExpressionStatement(t.createCallExpression(t.createSuper(),void 0,[t.createSpreadElement(t.createIdentifier("arguments"))]))),Hr(Cr,Jo);if(Cr=t.mergeLexicalEnvironment(Cr,o()),Cr.length===0&&!$)return;let jc=$?.body&&$.body.statements.length>=Cr.length?$.body.multiLine??Cr.length>0:Cr.length>0;return at(t.createBlock(at(t.createNodeArray(Cr),$?$.body.statements:de.members),jc),$?$.body:void 0)}function It(de,$,Pe){for(let yt of $){if(na(yt)&&!D)continue;let cn=Ct(yt,Pe);cn&&de.push(cn)}}function Ct(de,$){let Pe=Al(de)?Li(de,se,de):En(de,$);if(!Pe)return;let yt=t.createExpressionStatement(Pe);Rr(yt,de),D_(yt,za(de)&3072),ic(yt,de);let cn=Nl(de);return To(cn)?(Da(yt,cn),Ak(yt)):Da(yt,R_(de)),hE(Pe,void 0),GI(Pe,void 0),I_(cn)&&D_(yt,3072),yt}function Kt(de,$){let Pe=[];for(let yt of de){let cn=Al(yt)?Li(yt,se,yt):Li(yt,()=>En(yt,$),void 0);cn&&(Kd(cn),Rr(cn,yt),D_(cn,za(yt)&3072),Da(cn,R_(yt)),ic(cn,yt),Pe.push(cn))}return Pe}function En(de,$){var Pe;let yt=fe,cn=wn(de,$);return cn&&pc(de)&&((Pe=J?.data)!=null&&Pe.facts)&&(Rr(cn,de),D_(cn,4),Da(cn,Fy(de.name)),re.set(Nl(de),J)),fe=yt,cn}function wn(de,$){let Pe=!y;pp(de,ke)&&(de=yp(e,de));let yt=I_(de)?t.getGeneratedPrivateNameForNode(de.name):Ya(de.name)&&!L_(de.name.expression)?t.updateComputedPropertyName(de.name,t.getGeneratedNameForNode(de.name)):de.name;if(pc(de)&&(fe=de),Ki(yt)&&hi(de)){let fr=sa(yt);if(fr)return fr.kind==="f"?fr.isStatic?W9e(t,fr.variableName,Qe(de.initializer,ve,ht)):F9e(t,$,Qe(de.initializer,ve,ht),fr.brandCheckIdentifier):void 0;R.fail("Undeclared private name for property declaration.")}if((Ki(yt)||pc(de))&&!de.initializer)return;let cn=Nl(de);if(Qr(cn,64))return;let vr=Qe(de.initializer,ve,ht);if(dp(cn,cn.parent)&&Fe(yt)){let fr=t.cloneNode(yt);vr?(Wu(vr)&&jk(vr.expression)&&oP(vr.expression.left,"___runInitializers")&&e1(vr.expression.right)&&mp(vr.expression.right.expression)&&(vr=vr.expression.left),vr=t.inlineExpressions([vr,fr])):vr=fr,lr(yt,3168),Da(fr,cn.name),lr(fr,3072)}else vr??(vr=t.createVoidZero());if(Pe||Ki(yt)){let fr=BT(t,$,yt,yt);return D_(fr,1024),t.createAssignment(fr,vr)}else{let fr=Ya(yt)?yt.expression:Fe(yt)?t.createStringLiteral(Vi(yt.escapedText)):yt,zr=t.createPropertyDescriptor({value:vr,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall($,fr,zr)}}function Bn(){ee&1||(ee|=1,e.enableSubstitution(80),me=[])}function gi(){ee&2||(ee|=2,e.enableSubstitution(110),e.enableEmitNotification(262),e.enableEmitNotification(218),e.enableEmitNotification(176),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(174),e.enableEmitNotification(172),e.enableEmitNotification(167))}function xi(de,$,Pe){if(!D||!gt($))return;let{weakSetName:yt}=Kr().data;R.assert(yt,"weakSetName should be set in private identifier environment"),de.push(t.createExpressionStatement(z9e(t,Pe,yt)))}function er(de){return wr(de)?t.updatePropertyAccessExpression(de,t.createVoidZero(),de.name):t.updateElementAccessExpression(de,t.createVoidZero(),Qe(de.argumentExpression,ve,ht))}function Fr(de,$){if(Ya(de)){let Pe=t3(de),yt=Qe(de.expression,ve,ht),cn=gm(yt),vr=L_(cn);if(!(!!Pe||Pc(cn)&&rl(cn.left))&&!vr&&$){let zr=t.getGeneratedNameForNode(de);return p.getNodeCheckFlags(de)&32768?d(zr):i(zr),t.createAssignment(zr,yt)}return vr||Fe(cn)?void 0:yt}}function ho(){J={previous:J,data:void 0}}function Pi(){J=J?.previous}function Ri(){return R.assert(J),J.data??(J.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function Kr(){return R.assert(J),J.privateEnv??(J.privateEnv=ale({className:void 0,weakSetName:void 0}))}function Io(){return ge??(ge=[])}function xn(de,$,Pe,yt,cn,vr,fr){Lu(de)?zs(de,$,Pe,yt,cn,vr,fr):Vo(de)?ks(de,$,Pe,yt,cn,vr,fr):Ul(de)?$l(de,$,Pe,yt,cn,vr,fr):Zp(de)?Po(de,$,Pe,yt,cn,vr,fr):hp(de)&&ls(de,$,Pe,yt,cn,vr,fr)}function ks(de,$,Pe,yt,cn,vr,fr){if(cn){let zr=R.checkDefined(Pe.classThis??Pe.classConstructor,"classConstructor should be set in private identifier environment"),Di=mo($);jT(yt,$,{kind:"f",isStatic:!0,brandCheckIdentifier:zr,variableName:Di,isValid:vr})}else{let zr=mo($);jT(yt,$,{kind:"f",isStatic:!1,brandCheckIdentifier:zr,isValid:vr}),Io().push(t.createAssignment(zr,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function $l(de,$,Pe,yt,cn,vr,fr){let zr=mo($),Di=cn?R.checkDefined(Pe.classThis??Pe.classConstructor,"classConstructor should be set in private identifier environment"):R.checkDefined(yt.data.weakSetName,"weakSetName should be set in private identifier environment");jT(yt,$,{kind:"m",methodName:zr,brandCheckIdentifier:Di,isStatic:cn,isValid:vr})}function Po(de,$,Pe,yt,cn,vr,fr){let zr=mo($,"_get"),Di=cn?R.checkDefined(Pe.classThis??Pe.classConstructor,"classConstructor should be set in private identifier environment"):R.checkDefined(yt.data.weakSetName,"weakSetName should be set in private identifier environment");fr?.kind==="a"&&fr.isStatic===cn&&!fr.getterName?fr.getterName=zr:jT(yt,$,{kind:"a",getterName:zr,setterName:void 0,brandCheckIdentifier:Di,isStatic:cn,isValid:vr})}function ls(de,$,Pe,yt,cn,vr,fr){let zr=mo($,"_set"),Di=cn?R.checkDefined(Pe.classThis??Pe.classConstructor,"classConstructor should be set in private identifier environment"):R.checkDefined(yt.data.weakSetName,"weakSetName should be set in private identifier environment");fr?.kind==="a"&&fr.isStatic===cn&&!fr.setterName?fr.setterName=zr:jT(yt,$,{kind:"a",getterName:void 0,setterName:zr,brandCheckIdentifier:Di,isStatic:cn,isValid:vr})}function zs(de,$,Pe,yt,cn,vr,fr){let zr=mo($,"_get"),Di=mo($,"_set"),Cr=cn?R.checkDefined(Pe.classThis??Pe.classConstructor,"classConstructor should be set in private identifier environment"):R.checkDefined(yt.data.weakSetName,"weakSetName should be set in private identifier environment");jT(yt,$,{kind:"a",getterName:zr,setterName:Di,brandCheckIdentifier:Cr,isStatic:cn,isValid:vr})}function ml(de,$,Pe){let yt=Ri(),cn=Kr(),vr=MK(cn,$),fr=pc(de),zr=!B9e($)&&vr===void 0;Pe(de,$,yt,cn,fr,zr,vr)}function sd(de,$,Pe){let{className:yt}=Kr().data,cn=yt?{prefix:"_",node:yt,suffix:"_"}:"_",vr=typeof de=="object"?t.getGeneratedNameForNode(de,24,cn,Pe):typeof de=="string"?t.createUniqueName(de,16,cn,Pe):t.createTempVariable(void 0,!0,cn,Pe);return p.getNodeCheckFlags($)&32768?d(vr):i(vr),vr}function mo(de,$){let Pe=fN(de);return sd(Pe?.substring(1)??de,de,$)}function sa(de){let $=sle(J,de);return $?.kind==="untransformed"?void 0:$}function ld(de){let $=t.getGeneratedNameForNode(de),Pe=sa(de.name);if(!Pe)return Sn(de,ve,e);let yt=de.expression;return(A2(de)||wu(de)||!nS(de.expression))&&(yt=t.createTempVariable(i,!0),Io().push(t.createBinaryExpression(yt,64,Qe(de.expression,ve,ht)))),t.createAssignmentTargetWrapper($,Tt(Pe,yt,$,64))}function Es(de){if(La(de)||pu(de))return tn(de);if(wx(de))return ld(de);if(K&&fe&&wu(de)&&OP(fe)&&J?.data){let{classConstructor:$,superClassReference:Pe,facts:yt}=J.data;if(yt&1)return er(de);if($&&Pe){let cn=qs(de)?Qe(de.argumentExpression,ve,ht):Fe(de.name)?t.createStringLiteralFromNode(de.name):void 0;if(cn){let vr=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(vr,t.createReflectSetCall(Pe,cn,vr,$))}}}return Sn(de,ve,e)}function Na(de){if(pp(de,ke)&&(de=yp(e,de)),Pc(de,!0)){let $=Es(de.left),Pe=Qe(de.right,ve,ht);return t.updateBinaryExpression(de,$,de.operatorToken,Pe)}return Es(de)}function ul(de){if(Yu(de.expression)){let $=Es(de.expression);return t.updateSpreadElement(de,$)}return Sn(de,ve,e)}function Nf(de){if(a2(de)){if(qm(de))return ul(de);if(!Gc(de))return Na(de)}return Sn(de,ve,e)}function ac(de){let $=Qe(de.name,ve,rc);if(Pc(de.initializer,!0)){let Pe=Na(de.initializer);return t.updatePropertyAssignment(de,$,Pe)}if(Yu(de.initializer)){let Pe=Es(de.initializer);return t.updatePropertyAssignment(de,$,Pe)}return Sn(de,ve,e)}function xl(de){return pp(de,ke)&&(de=yp(e,de)),Sn(de,ve,e)}function al(de){if(Yu(de.expression)){let $=Es(de.expression);return t.updateSpreadAssignment(de,$)}return Sn(de,ve,e)}function Mo(de){return R.assertNode(de,o2),Gy(de)?al(de):Zu(de)?xl(de):mc(de)?ac(de):Sn(de,ve,e)}function tn(de){return pu(de)?t.updateArrayLiteralExpression(de,zn(de.elements,Nf,ht)):t.updateObjectLiteralExpression(de,zn(de.properties,Mo,Ng))}function Bs(de,$,Pe){let yt=Nl($),cn=re.get(yt);if(cn){let vr=J,fr=he;J=cn,he=ne,ne=!Al(yt)||!(ym(yt)&32),ce(de,$,Pe),ne=he,he=fr,J=vr;return}switch($.kind){case 218:if(Fs(yt)||za($)&524288)break;case 262:case 176:case 177:case 178:case 174:case 172:{let vr=J,fr=he;J=void 0,he=ne,ne=!1,ce(de,$,Pe),ne=he,he=fr,J=vr;return}case 167:{let vr=J,fr=ne;J=J?.previous,ne=he,ce(de,$,Pe),ne=fr,J=vr;return}}ce(de,$,Pe)}function ed(de,$){return $=B(de,$),de===1?cd($):$}function cd(de){switch(de.kind){case 80:return Ds(de);case 110:return Ep(de)}return de}function Ep(de){if(ee&2&&J?.data&&!pe.has(de)){let{facts:$,classConstructor:Pe,classThis:yt}=J.data,cn=ne?yt??Pe:Pe;if(cn)return at(Rr(t.cloneNode(cn),de),de);if($&1&&E)return t.createParenthesizedExpression(t.createVoidZero())}return de}function Ds(de){return Ac(de)||de}function Ac(de){if(ee&1&&p.getNodeCheckFlags(de)&536870912){let $=p.getReferencedValueDeclaration(de);if($){let Pe=me[$.id];if(Pe){let yt=t.cloneNode(Pe);return Da(yt,de),ic(yt,de),yt}}}}}function W9e(e,t,r){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment("value",r||e.createVoidZero())]))}function F9e(e,t,r,i){return e.createCallExpression(e.createPropertyAccessExpression(i,"set"),void 0,[t,r||e.createVoidZero()])}function z9e(e,t,r){return e.createCallExpression(e.createPropertyAccessExpression(r,"add"),void 0,[t])}function B9e(e){return!aT(e)&&e.escapedText==="#constructor"}function G9e(e){return Ki(e.left)&&e.operatorToken.kind===103}function V9e(e){return Vo(e)&&pc(e)}function OP(e){return Al(e)||V9e(e)}var j9e=bt({"src/compiler/transformers/classFields.ts"(){"use strict";Zo()}});function yle(e){let{factory:t,hoistVariableDeclaration:r}=e,i=e.getEmitResolver(),o=e.getCompilerOptions(),s=rs(o),l=du(o,"strictNullChecks"),d,p;return{serializeTypeNode:(ge,q)=>h(ge,N,q),serializeTypeOfNode:(ge,q)=>h(ge,y,q),serializeParameterTypesOfNode:(ge,q,J)=>h(ge,E,q,J),serializeReturnTypeOfNode:(ge,q)=>h(ge,A,q)};function h(ge,q,J,re){let pe=d,xe=p;d=ge.currentLexicalScope,p=ge.currentNameScope;let fe=re===void 0?q(J):q(J,re);return d=pe,p=xe,fe}function m(ge){let q=i.getAllAccessorDeclarations(ge);return q.setAccessor&&Lie(q.setAccessor)||q.getAccessor&&$f(q.getAccessor)}function y(ge){switch(ge.kind){case 172:case 169:return N(ge.type);case 178:case 177:return N(m(ge));case 263:case 231:case 174:return t.createIdentifier("Function");default:return t.createVoidZero()}}function E(ge,q){let J=di(ge)?eg(ge):Yo(ge)&&Hf(ge.body)?ge:void 0,re=[];if(J){let pe=S(J,q),xe=pe.length;for(let fe=0;fepe.parent&&ZI(pe.parent)&&(pe.parent.trueType===pe||pe.parent.falseType===pe)))return t.createIdentifier("Object");let J=B(ge.typeName),re=t.createTempVariable(r);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(re,J),"function"),void 0,re,void 0,t.createIdentifier("Object"));case 1:return ce(ge.typeName);case 2:return t.createVoidZero();case 4:return me("BigInt",7);case 6:return t.createIdentifier("Boolean");case 3:return t.createIdentifier("Number");case 5:return t.createIdentifier("String");case 7:return t.createIdentifier("Array");case 8:return me("Symbol",2);case 10:return t.createIdentifier("Function");case 9:return t.createIdentifier("Promise");case 11:return t.createIdentifier("Object");default:return R.assertNever(q)}}function Y(ge,q){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(ge),t.createStringLiteral("undefined")),q)}function B(ge){if(ge.kind===80){let re=ce(ge);return Y(re,re)}if(ge.left.kind===80)return Y(ce(ge.left),ce(ge));let q=B(ge.left),J=t.createTempVariable(r);return t.createLogicalAnd(t.createLogicalAnd(q.left,t.createStrictInequality(t.createAssignment(J,q.right),t.createVoidZero())),t.createPropertyAccessExpression(J,ge.right))}function ce(ge){switch(ge.kind){case 80:let q=ja(at(Eh.cloneNode(ge),ge),ge.parent);return q.original=void 0,ja(q,Ro(d)),q;case 166:return z(ge)}}function z(ge){return t.createPropertyAccessExpression(ce(ge.left),ge.right)}function ee(ge){return t.createConditionalExpression(t.createTypeCheck(t.createIdentifier(ge),"function"),void 0,t.createIdentifier(ge),void 0,t.createIdentifier("Object"))}function me(ge,q){return sJk(Ot)||yd(Ot)?void 0:Ot,il),Kn=R_(Je),pn=Le(Je),Yt=l<2?t.getInternalName(Je,!1,!0):t.getLocalName(Je,!1,!0),qt=zn(Je.heritageClauses,y,ef),hi=zn(Je.members,y,Xc),uo=[];({members:hi,decorationStatements:uo}=D(Je,hi));let Li=l>=9&&!!pn&>(hi,Ot=>Vo(Ot)&&Qr(Ot,256)||Al(Ot));Li&&(hi=at(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(pn,t.createThis()))])),...hi]),hi));let Eo=t.createClassExpression(Dn,ft&&rl(ft)?void 0:ft,void 0,qt,hi);Rr(Eo,Je),at(Eo,Kn);let Qn=pn&&!Li?t.createAssignment(pn,Eo):Eo,Ur=t.createVariableDeclaration(Yt,void 0,void 0,Qn);Rr(Ur,Je);let Er=t.createVariableDeclarationList([Ur],1),on=t.createVariableStatement(void 0,Er);Rr(on,Je),at(on,Kn),ic(on,Je);let Ye=[on];if(Hr(Ye,uo),he(Ye,Je),Zt)if(en){let Ot=t.createExportDefault(Yt);Ye.push(Ot)}else{let Ot=t.createExternalModuleExport(t.getDeclarationName(Je));Ye.push(Ot)}return Ye}function K(Je){return t.updateClassExpression(Je,zn(Je.modifiers,m,Ta),Je.name,void 0,zn(Je.heritageClauses,y,ef),zn(Je.members,y,Xc))}function Y(Je){return t.updateConstructorDeclaration(Je,zn(Je.modifiers,m,Ta),zn(Je.parameters,y,To),Qe(Je.body,y,Ho))}function B(Je,ft){return Je!==ft&&(ic(Je,ft),Da(Je,R_(ft))),Je}function ce(Je){return B(t.updateMethodDeclaration(Je,zn(Je.modifiers,m,Ta),Je.asteriskToken,R.checkDefined(Qe(Je.name,y,rc)),void 0,void 0,zn(Je.parameters,y,To),void 0,Qe(Je.body,y,Ho)),Je)}function z(Je){return B(t.updateGetAccessorDeclaration(Je,zn(Je.modifiers,m,Ta),R.checkDefined(Qe(Je.name,y,rc)),zn(Je.parameters,y,To),void 0,Qe(Je.body,y,Ho)),Je)}function ee(Je){return B(t.updateSetAccessorDeclaration(Je,zn(Je.modifiers,m,Ta),R.checkDefined(Qe(Je.name,y,rc)),zn(Je.parameters,y,To),Qe(Je.body,y,Ho)),Je)}function me(Je){if(!(Je.flags&33554432||Qr(Je,128)))return B(t.updatePropertyDeclaration(Je,zn(Je.modifiers,m,Ta),R.checkDefined(Qe(Je.name,y,rc)),void 0,void 0,Qe(Je.initializer,y,ht)),Je)}function ge(Je){let ft=t.updateParameterDeclaration(Je,Jae(t,Je.modifiers),Je.dotDotDotToken,R.checkDefined(Qe(Je.name,y,sT)),void 0,void 0,Qe(Je.initializer,y,ht));return ft!==Je&&(ic(ft,Je),at(ft,R_(Je)),Da(ft,R_(Je)),lr(ft.name,64)),ft}function q(Je){return oP(Je.expression,"___metadata")}function J(Je){if(!Je)return;let{false:ft,true:Zt}=hW(Je.decorators,q),en=[];return Hr(en,mn(ft,Ge)),Hr(en,va(Je.parameters,ve)),Hr(en,mn(Zt,Ge)),en}function re(Je,ft,Zt){Hr(Je,mn(fe(ft,Zt),en=>t.createExpressionStatement(en)))}function pe(Je,ft,Zt){return x2(!0,Je,Zt)&&ft===na(Je)}function xe(Je,ft){return jr(Je.members,Zt=>pe(Zt,ft,Je))}function fe(Je,ft){let Zt=xe(Je,ft),en;for(let Dn of Zt)en=Tn(en,ne(Je,Dn));return en}function ne(Je,ft){let Zt=G3(ft,Je,!0),en=J(Zt);if(!en)return;let Dn=be(Je,ft),Kn=Ie(ft,!Qr(ft,128)),pn=l>0?Vo(ft)&&!I_(ft)?t.createVoidZero():t.createNull():void 0,Yt=r().createDecorateHelper(en,Dn,Kn,pn);return lr(Yt,3072),Da(Yt,R_(ft)),Yt}function he(Je,ft){let Zt=Ce(ft);Zt&&Je.push(Rr(t.createExpressionStatement(Zt),ft))}function Ce(Je){let ft=PK(Je),Zt=J(ft);if(!Zt)return;let en=p&&p[kd(Je)],Dn=l<2?t.getInternalName(Je,!1,!0):t.getDeclarationName(Je,!1,!0),Kn=r().createDecorateHelper(Zt,Dn),pn=t.createAssignment(Dn,en?t.createAssignment(en,Kn):Kn);return lr(pn,3072),Da(pn,R_(Je)),pn}function Ge(Je){return R.checkDefined(Qe(Je.expression,y,ht))}function ve(Je,ft){let Zt;if(Je){Zt=[];for(let en of Je){let Dn=r().createParamHelper(Ge(en),ft);at(Dn,en.expression),lr(Dn,3072),Zt.push(Dn)}}return Zt}function Ie(Je,ft){let Zt=Je.name;return Ki(Zt)?t.createIdentifier(""):Ya(Zt)?ft&&!L_(Zt.expression)?t.getGeneratedNameForNode(Zt):Zt.expression:Fe(Zt)?t.createStringLiteral(yr(Zt)):t.cloneNode(Zt)}function De(){p||(e.enableSubstitution(80),p=[])}function Le(Je){if(o.getNodeCheckFlags(Je)&262144){De();let ft=t.createUniqueName(Je.name&&!rl(Je.name)?yr(Je.name):"default");return p[kd(Je)]=ft,i(ft),ft}}function Et(Je){return t.createPropertyAccessExpression(t.getDeclarationName(Je),"prototype")}function be(Je,ft){return na(ft)?t.getDeclarationName(Je):Et(Je)}function ze(Je,ft){return ft=d(Je,ft),Je===1?tt(ft):ft}function tt(Je){switch(Je.kind){case 80:return Wt(Je)}return Je}function Wt(Je){return _t(Je)??Je}function _t(Je){if(p&&o.getNodeCheckFlags(Je)&536870912){let ft=o.getReferencedValueDeclaration(Je);if(ft){let Zt=p[ft.id];if(Zt){let en=t.cloneNode(Zt);return Da(en,Je),ic(en,Je),en}}}}}var H9e=bt({"src/compiler/transformers/legacyDecorators.ts"(){"use strict";Zo()}});function ble(e){let{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=rs(e.getCompilerOptions()),d,p,h,m,y,E;return Im(e,S);function S(k){d=void 0,E=!1;let ie=Sn(k,ee,e);return Wg(ie,e.readEmitHelpers()),E&&(BI(ie,32),E=!1),ie}function A(){switch(p=void 0,h=void 0,m=void 0,d?.kind){case"class":p=d.classInfo;break;case"class-element":p=d.next.classInfo,h=d.classThis,m=d.classSuper;break;case"name":let k=d.next.next.next;k?.kind==="class-element"&&(p=k.next.classInfo,h=k.classThis,m=k.classSuper);break}}function N(k){d={kind:"class",next:d,classInfo:k,savedPendingExpressions:y},y=void 0,A()}function D(){R.assert(d?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${d?.kind}' instead.`),y=d.savedPendingExpressions,d=d.next,A()}function w(k){var ie,H;R.assert(d?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${d?.kind}' instead.`),d={kind:"class-element",next:d},(Al(k)||Vo(k)&&pc(k))&&(d.classThis=(ie=d.next.classInfo)==null?void 0:ie.classThis,d.classSuper=(H=d.next.classInfo)==null?void 0:H.classSuper),A()}function j(){var k;R.assert(d?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${d?.kind}' instead.`),R.assert(((k=d.next)==null?void 0:k.kind)==="class","Incorrect value for top.next.kind.",()=>{var ie;return`Expected top.next.kind to be 'class' but got '${(ie=d.next)==null?void 0:ie.kind}' instead.`}),d=d.next,A()}function K(){R.assert(d?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${d?.kind}' instead.`),d={kind:"name",next:d},A()}function Y(){R.assert(d?.kind==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${d?.kind}' instead.`),d=d.next,A()}function B(){d?.kind==="other"?(R.assert(!y),d.depth++):(d={kind:"other",next:d,depth:0,savedPendingExpressions:y},y=void 0,A())}function ce(){R.assert(d?.kind==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${d?.kind}' instead.`),d.depth>0?(R.assert(!y),d.depth--):(y=d.savedPendingExpressions,d=d.next,A())}function z(k){return!!(k.transformFlags&33554432)||!!h&&!!(k.transformFlags&16384)||!!h&&!!m&&!!(k.transformFlags&134217728)}function ee(k){if(!z(k))return k;switch(k.kind){case 170:return R.fail("Use `modifierVisitor` instead.");case 263:return Ce(k);case 231:return Ge(k);case 176:case 172:case 175:return R.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return Kn(k);case 226:return uo(k,!1);case 303:return on(k);case 260:return Ye(k);case 208:return Ot(k);case 277:return Be(k);case 110:return Je(k);case 248:return qt(k);case 244:return hi(k);case 361:return Eo(k,!1);case 217:return ct(k,!1);case 360:return lt(k,!1);case 213:return ft(k);case 215:return Zt(k);case 224:case 225:return Li(k,!1);case 211:return en(k);case 212:return Dn(k);case 167:return Er(k);case 174:case 178:case 177:case 218:case 262:{B();let ie=Sn(k,me,e);return ce(),ie}default:return Sn(k,me,e)}}function me(k){switch(k.kind){case 170:return;default:return ee(k)}}function ge(k){switch(k.kind){case 170:return;default:return k}}function q(k){switch(k.kind){case 176:return De(k);case 174:return be(k);case 177:return ze(k);case 178:return tt(k);case 172:return _t(k);case 175:return Wt(k);default:return ee(k)}}function J(k){switch(k.kind){case 224:case 225:return Li(k,!0);case 226:return uo(k,!0);case 361:return Eo(k,!0);case 217:return ct(k,!0);default:return ee(k)}}function re(k){let ie=k.name&&Fe(k.name)&&!rl(k.name)?yr(k.name):k.name&&Ki(k.name)&&!rl(k.name)?yr(k.name).slice(1):k.name&&Ca(k.name)&&$p(k.name.text,99)?k.name.text:di(k)?"class":"member";return Mv(k)&&(ie=`get_${ie}`),Ny(k)&&(ie=`set_${ie}`),k.name&&Ki(k.name)&&(ie=`private_${ie}`),na(k)&&(ie=`static_${ie}`),"_"+ie}function pe(k,ie){return t.createUniqueName(`${re(k)}_${ie}`,24)}function xe(k,ie){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(k,void 0,void 0,ie)],1))}function fe(k){let ie=t.createUniqueName("_metadata",48),H,ue,We=!1,Ne=!1,It=!1,Ct,Kt,En;if(Xx(!1,k)){let wn=gt(k.members,Bn=>(au(Bn)||Lu(Bn))&&pc(Bn));Ct=t.createUniqueName("_classThis",wn?24:48)}for(let wn of k.members){if(bI(wn)&&x2(!1,wn,k))if(pc(wn)){if(!ue){ue=t.createUniqueName("_staticExtraInitializers",48);let Bn=r().createRunInitializersHelper(Ct??t.createThis(),ue);Da(Bn,k.name??kg(k)),Kt??(Kt=[]),Kt.push(Bn)}}else{if(!H){H=t.createUniqueName("_instanceExtraInitializers",48);let Bn=r().createRunInitializersHelper(t.createThis(),H);Da(Bn,k.name??kg(k)),En??(En=[]),En.push(Bn)}H??(H=t.createUniqueName("_instanceExtraInitializers",48))}if(Al(wn)?_1(wn)||(We=!0):Vo(wn)&&(pc(wn)?We||(We=!!wn.initializer||bf(wn)):Ne||(Ne=!QV(wn))),(au(wn)||Lu(wn))&&pc(wn)&&(It=!0),ue&&H&&We&&Ne&&It)break}return{class:k,classThis:Ct,metadataReference:ie,instanceMethodExtraInitializersName:H,staticMethodExtraInitializersName:ue,hasStaticInitializers:We,hasNonAmbientInstanceFields:Ne,hasStaticPrivateClassElements:It,pendingStaticInitializers:Kt,pendingInstanceInitializers:En}}function ne(k){i(),!OK(k)&&Py(!1,k)&&(k=j3(e,k,t.createStringLiteral("")));let ie=t.getLocalName(k,!1,!1,!0),H=fe(k),ue=[],We,Ne,It,Ct,Kt=!1,En=st(PK(k));En&&(H.classDecoratorsName=t.createUniqueName("_classDecorators",48),H.classDescriptorName=t.createUniqueName("_classDescriptor",48),H.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48),R.assertIsDefined(H.classThis),ue.push(xe(H.classDecoratorsName,t.createArrayLiteralExpression(En)),xe(H.classDescriptorName),xe(H.classExtraInitializersName,t.createArrayLiteralExpression()),xe(H.classThis)),H.hasStaticPrivateClassElements&&(Kt=!0,E=!0));let wn=K2(k.heritageClauses,96),Bn=wn&&Jc(wn.types),gi=Bn&&Qe(Bn.expression,ee,ht);if(gi){H.classSuper=t.createUniqueName("_classSuper",48);let Kr=Yl(gi),Io=$c(Kr)&&!Kr.name||Ms(Kr)&&!Kr.name||Fs(Kr)?t.createComma(t.createNumericLiteral(0),gi):gi;ue.push(xe(H.classSuper,Io));let xn=t.updateExpressionWithTypeArguments(Bn,H.classSuper,void 0),ks=t.updateHeritageClause(wn,[xn]);Ct=t.createNodeArray([ks])}let xi=H.classThis??t.createThis();N(H),We=Tn(We,U(H.metadataReference,H.classSuper));let er=k.members;if(er=zn(er,Kr=>Pl(Kr)?Kr:q(Kr),Xc),er=zn(er,Kr=>Pl(Kr)?q(Kr):Kr,Xc),y){let Kr;for(let Io of y){Io=Qe(Io,function ks($l){if(!($l.transformFlags&16384))return $l;switch($l.kind){case 110:return Kr||(Kr=t.createUniqueName("_outerThis",16),ue.unshift(xe(Kr,t.createThis()))),Kr;default:return Sn($l,ks,e)}},ht);let xn=t.createExpressionStatement(Io);We=Tn(We,xn)}y=void 0}if(D(),gt(H.pendingInstanceInitializers)&&!eg(k)){let Kr=ve(k,H);if(Kr){let Io=S_(k),xn=!!(Io&&Yl(Io.expression).kind!==106),ks=[];if(xn){let Po=t.createSpreadElement(t.createIdentifier("arguments")),ls=t.createCallExpression(t.createSuper(),void 0,[Po]);ks.push(t.createExpressionStatement(ls))}Hr(ks,Kr);let $l=t.createBlock(ks,!0);It=t.createConstructorDeclaration(void 0,[],$l)}}if(H.staticMethodExtraInitializersName&&ue.push(xe(H.staticMethodExtraInitializersName,t.createArrayLiteralExpression())),H.instanceMethodExtraInitializersName&&ue.push(xe(H.instanceMethodExtraInitializersName,t.createArrayLiteralExpression())),H.memberInfos&&zc(H.memberInfos,(Kr,Io)=>{na(Io)&&(ue.push(xe(Kr.memberDecoratorsName)),Kr.memberInitializersName&&ue.push(xe(Kr.memberInitializersName,t.createArrayLiteralExpression())),Kr.memberExtraInitializersName&&ue.push(xe(Kr.memberExtraInitializersName,t.createArrayLiteralExpression())),Kr.memberDescriptorName&&ue.push(xe(Kr.memberDescriptorName)))}),H.memberInfos&&zc(H.memberInfos,(Kr,Io)=>{na(Io)||(ue.push(xe(Kr.memberDecoratorsName)),Kr.memberInitializersName&&ue.push(xe(Kr.memberInitializersName,t.createArrayLiteralExpression())),Kr.memberExtraInitializersName&&ue.push(xe(Kr.memberExtraInitializersName,t.createArrayLiteralExpression())),Kr.memberDescriptorName&&ue.push(xe(Kr.memberDescriptorName)))}),We=Hr(We,H.staticNonFieldDecorationStatements),We=Hr(We,H.nonStaticNonFieldDecorationStatements),We=Hr(We,H.staticFieldDecorationStatements),We=Hr(We,H.nonStaticFieldDecorationStatements),H.classDescriptorName&&H.classDecoratorsName&&H.classExtraInitializersName&&H.classThis){We??(We=[]);let Kr=t.createPropertyAssignment("value",xi),Io=t.createObjectLiteralExpression([Kr]),xn=t.createAssignment(H.classDescriptorName,Io),ks=t.createPropertyAccessExpression(xi,"name"),$l=r().createESDecorateHelper(t.createNull(),xn,H.classDecoratorsName,{kind:"class",name:ks,metadata:H.metadataReference},t.createNull(),H.classExtraInitializersName),Po=t.createExpressionStatement($l);Da(Po,kg(k)),We.push(Po);let ls=t.createPropertyAccessExpression(H.classDescriptorName,"value"),zs=t.createAssignment(H.classThis,ls),ml=t.createAssignment(ie,zs);We.push(t.createExpressionStatement(ml))}if(We.push(Me(xi,H.metadataReference)),gt(H.pendingStaticInitializers)){for(let Kr of H.pendingStaticInitializers){let Io=t.createExpressionStatement(Kr);Da(Io,Fy(Kr)),Ne=Tn(Ne,Io)}H.pendingStaticInitializers=void 0}if(H.classExtraInitializersName){let Kr=r().createRunInitializersHelper(xi,H.classExtraInitializersName),Io=t.createExpressionStatement(Kr);Da(Io,k.name??kg(k)),Ne=Tn(Ne,Io)}We&&Ne&&!H.hasStaticInitializers&&(Hr(We,Ne),Ne=void 0);let Fr=We&&t.createClassStaticBlockDeclaration(t.createBlock(We,!0));Fr&&Kt&&Ik(Fr,32);let ho=Ne&&t.createClassStaticBlockDeclaration(t.createBlock(Ne,!0));if(Fr||It||ho){let Kr=[],Io=er.findIndex(_1);Fr?(Hr(Kr,er,0,Io+1),Kr.push(Fr),Hr(Kr,er,Io+1)):Hr(Kr,er),It&&Kr.push(It),ho&&Kr.push(ho),er=at(t.createNodeArray(Kr),er)}let Pi=o(),Ri;if(En){Ri=t.createClassExpression(void 0,void 0,void 0,Ct,er),H.classThis&&(Ri=ple(t,Ri,H.classThis));let Kr=t.createVariableDeclaration(ie,void 0,void 0,Ri),Io=t.createVariableDeclarationList([Kr]),xn=H.classThis?t.createAssignment(ie,H.classThis):ie;ue.push(t.createVariableStatement(void 0,Io),t.createReturnStatement(xn))}else Ri=t.createClassExpression(void 0,k.name,void 0,Ct,er),ue.push(t.createReturnStatement(Ri));if(Kt){BI(Ri,32);for(let Kr of Ri.members)(au(Kr)||Lu(Kr))&&pc(Kr)&&BI(Kr,32)}return Rr(Ri,k),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(ue,Pi))}function he(k){return Py(!1,k)||hN(!1,k)}function Ce(k){if(he(k)){let ie=[],H=Nl(k,di)??k,ue=H.name?t.createStringLiteralFromNode(H.name):t.createStringLiteral("default"),We=Qr(k,32),Ne=Qr(k,2048);if(k.name||(k=j3(e,k,ue)),We&&Ne){let It=ne(k);if(k.name){let Ct=t.createVariableDeclaration(t.getLocalName(k),void 0,void 0,It);Rr(Ct,k);let Kt=t.createVariableDeclarationList([Ct],1),En=t.createVariableStatement(void 0,Kt);ie.push(En);let wn=t.createExportDefault(t.getDeclarationName(k));Rr(wn,k),ic(wn,C_(k)),Da(wn,kg(k)),ie.push(wn)}else{let Ct=t.createExportDefault(It);Rr(Ct,k),ic(Ct,C_(k)),Da(Ct,kg(k)),ie.push(Ct)}}else{R.assertIsDefined(k.name,"A class declaration that is not a default export must have a name.");let It=ne(k),Ct=We?xi=>JI(xi)?void 0:ge(xi):ge,Kt=zn(k.modifiers,Ct,Ta),En=t.getLocalName(k,!1,!0),wn=t.createVariableDeclaration(En,void 0,void 0,It);Rr(wn,k);let Bn=t.createVariableDeclarationList([wn],1),gi=t.createVariableStatement(Kt,Bn);if(Rr(gi,k),ic(gi,C_(k)),ie.push(gi),We){let xi=t.createExternalModuleExport(En);Rr(xi,k),ie.push(xi)}}return ih(ie)}else{let ie=zn(k.modifiers,ge,Ta),H=zn(k.heritageClauses,ee,ef);N(void 0);let ue=zn(k.members,q,Xc);return D(),t.updateClassDeclaration(k,ie,k.name,void 0,H,ue)}}function Ge(k){if(he(k)){let ie=ne(k);return Rr(ie,k),ie}else{let ie=zn(k.modifiers,ge,Ta),H=zn(k.heritageClauses,ee,ef);N(void 0);let ue=zn(k.members,q,Xc);return D(),t.updateClassExpression(k,ie,k.name,void 0,H,ue)}}function ve(k,ie){if(gt(ie.pendingInstanceInitializers)){let H=[];return H.push(t.createExpressionStatement(t.inlineExpressions(ie.pendingInstanceInitializers))),ie.pendingInstanceInitializers=void 0,H}}function Ie(k,ie,H,ue,We,Ne){let It=ue[We],Ct=ie[It];if(Hr(k,zn(ie,ee,Hi,H,It-H)),wT(Ct)){let Kt=[];Ie(Kt,Ct.tryBlock.statements,0,ue,We+1,Ne);let En=t.createNodeArray(Kt);at(En,Ct.tryBlock.statements),k.push(t.updateTryStatement(Ct,t.updateBlock(Ct.tryBlock,Kt),Qe(Ct.catchClause,ee,Y0),Qe(Ct.finallyBlock,ee,Ho)))}else Hr(k,zn(ie,ee,Hi,It,1)),Hr(k,Ne);Hr(k,zn(ie,ee,Hi,It+1))}function De(k){w(k);let ie=zn(k.modifiers,ge,Ta),H=zn(k.parameters,ee,To),ue;if(k.body&&p){let We=ve(p.class,p);if(We){let Ne=[],It=t.copyPrologue(k.body.statements,Ne,!1,ee),Ct=z3(k.body.statements,It);Ct.length>0?Ie(Ne,k.body.statements,It,Ct,0,We):(Hr(Ne,We),Hr(Ne,zn(k.body.statements,ee,Hi))),ue=t.createBlock(Ne,!0),Rr(ue,k.body),at(ue,k.body)}}return ue??(ue=Qe(k.body,ee,Ho)),j(),t.updateConstructorDeclaration(k,ie,H,ue)}function Le(k,ie){return k!==ie&&(ic(k,ie),Da(k,kg(ie))),k}function Et(k,ie,H){let ue,We,Ne,It,Ct,Kt;if(!ie){let Bn=zn(k.modifiers,ge,Ta);return K(),We=Ur(k.name),Y(),{modifiers:Bn,referencedName:ue,name:We,initializersName:Ne,descriptorName:Kt,thisArg:Ct}}let En=st(G3(k,ie.class,!1)),wn=zn(k.modifiers,ge,Ta);if(En){let Bn=pe(k,"decorators"),gi=t.createArrayLiteralExpression(En),xi=t.createAssignment(Bn,gi),er={memberDecoratorsName:Bn};ie.memberInfos??(ie.memberInfos=new Map),ie.memberInfos.set(k,er),y??(y=[]),y.push(xi);let Fr=bI(k)||Lu(k)?na(k)?ie.staticNonFieldDecorationStatements??(ie.staticNonFieldDecorationStatements=[]):ie.nonStaticNonFieldDecorationStatements??(ie.nonStaticNonFieldDecorationStatements=[]):Vo(k)&&!Lu(k)?na(k)?ie.staticFieldDecorationStatements??(ie.staticFieldDecorationStatements=[]):ie.nonStaticFieldDecorationStatements??(ie.nonStaticFieldDecorationStatements=[]):R.fail(),ho=Zp(k)?"getter":hp(k)?"setter":Ul(k)?"method":Lu(k)?"accessor":Vo(k)?"field":R.fail(),Pi;if(Fe(k.name)||Ki(k.name))Pi={computed:!1,name:k.name};else if(T_(k.name))Pi={computed:!0,name:t.createStringLiteralFromNode(k.name)};else{let Kr=k.name.expression;T_(Kr)&&!Fe(Kr)?Pi={computed:!0,name:t.createStringLiteralFromNode(Kr)}:(K(),{referencedName:ue,name:We}=Qn(k.name),Pi={computed:!0,name:ue},Y())}let Ri={kind:ho,name:Pi,static:na(k),private:Ki(k.name),access:{get:Vo(k)||Zp(k)||Ul(k),set:Vo(k)||hp(k)},metadata:ie.metadataReference};if(bI(k)){let Kr=na(k)?ie.staticMethodExtraInitializersName:ie.instanceMethodExtraInitializersName;R.assertIsDefined(Kr);let Io;au(k)&&H&&(Io=H(k,zn(wn,$l=>ri($l,aP),Ta)),er.memberDescriptorName=Kt=pe(k,"descriptor"),Io=t.createAssignment(Kt,Io));let xn=r().createESDecorateHelper(t.createThis(),Io??t.createNull(),Bn,Ri,t.createNull(),Kr),ks=t.createExpressionStatement(xn);Da(ks,kg(k)),Fr.push(ks)}else if(Vo(k)){Ne=er.memberInitializersName??(er.memberInitializersName=pe(k,"initializers")),It=er.memberExtraInitializersName??(er.memberExtraInitializersName=pe(k,"extraInitializers")),na(k)&&(Ct=ie.classThis);let Kr;au(k)&&I_(k)&&H&&(Kr=H(k,void 0),er.memberDescriptorName=Kt=pe(k,"descriptor"),Kr=t.createAssignment(Kt,Kr));let Io=r().createESDecorateHelper(Lu(k)?t.createThis():t.createNull(),Kr??t.createNull(),Bn,Ri,Ne,It),xn=t.createExpressionStatement(Io);Da(xn,kg(k)),Fr.push(xn)}}return We===void 0&&(K(),We=Ur(k.name),Y()),!gt(wn)&&(Ul(k)||Vo(k))&&lr(We,1024),{modifiers:wn,referencedName:ue,name:We,initializersName:Ne,extraInitializersName:It,descriptorName:Kt,thisArg:Ct}}function be(k){w(k);let{modifiers:ie,name:H,descriptorName:ue}=Et(k,p,Tt);if(ue)return j(),Le(hn(ie,H,ue),k);{let We=zn(k.parameters,ee,To),Ne=Qe(k.body,ee,Ho);return j(),Le(t.updateMethodDeclaration(k,ie,k.asteriskToken,H,void 0,void 0,We,void 0,Ne),k)}}function ze(k){w(k);let{modifiers:ie,name:H,descriptorName:ue}=Et(k,p,He);if(ue)return j(),Le(dn(ie,H,ue),k);{let We=zn(k.parameters,ee,To),Ne=Qe(k.body,ee,Ho);return j(),Le(t.updateGetAccessorDeclaration(k,ie,H,We,void 0,Ne),k)}}function tt(k){w(k);let{modifiers:ie,name:H,descriptorName:ue}=Et(k,p,pt);if(ue)return j(),Le(un(ie,H,ue),k);{let We=zn(k.parameters,ee,To),Ne=Qe(k.body,ee,Ho);return j(),Le(t.updateSetAccessorDeclaration(k,ie,H,We,Ne),k)}}function Wt(k){w(k);let ie;if(_1(k))ie=Sn(k,ee,e);else if(kP(k)){let H=h;h=void 0,ie=Sn(k,ee,e),h=H}else if(k=Sn(k,ee,e),ie=k,p&&(p.hasStaticInitializers=!0,gt(p.pendingStaticInitializers))){let H=[];for(let Ne of p.pendingStaticInitializers){let It=t.createExpressionStatement(Ne);Da(It,Fy(Ne)),H.push(It)}let ue=t.createBlock(H,!0);ie=[t.createClassStaticBlockDeclaration(ue),ie],p.pendingStaticInitializers=void 0}return j(),ie}function _t(k){pp(k,pn)&&(k=yp(e,k,Yt(k.initializer))),w(k),R.assert(!QV(k),"Not yet implemented.");let{modifiers:ie,name:H,initializersName:ue,extraInitializersName:We,descriptorName:Ne,thisArg:It}=Et(k,p,I_(k)?Ft:void 0);i();let Ct=Qe(k.initializer,ee,ht);ue&&(Ct=r().createRunInitializersHelper(It??t.createThis(),ue,Ct??t.createVoidZero())),na(k)&&p&&Ct&&(p.hasStaticInitializers=!0);let Kt=o();if(gt(Kt)&&(Ct=t.createImmediatelyInvokedArrowFunction([...Kt,t.createReturnStatement(Ct)])),p&&(na(k)?(Ct=ke(p,!0,Ct),We&&(p.pendingStaticInitializers??(p.pendingStaticInitializers=[]),p.pendingStaticInitializers.push(r().createRunInitializersHelper(p.classThis??t.createThis(),We)))):(Ct=ke(p,!1,Ct),We&&(p.pendingInstanceInitializers??(p.pendingInstanceInitializers=[]),p.pendingInstanceInitializers.push(r().createRunInitializersHelper(t.createThis(),We))))),j(),I_(k)&&Ne){let En=C_(k),wn=Fy(k),Bn=k.name,gi=Bn,xi=Bn;if(Ya(Bn)&&!L_(Bn.expression)){let Ri=t3(Bn);if(Ri)gi=t.updateComputedPropertyName(Bn,Qe(Bn.expression,ee,ht)),xi=t.updateComputedPropertyName(Bn,Ri.left);else{let Kr=t.createTempVariable(s);Da(Kr,Bn.expression);let Io=Qe(Bn.expression,ee,ht),xn=t.createAssignment(Kr,Io);Da(xn,Bn.expression),gi=t.updateComputedPropertyName(Bn,xn),xi=t.updateComputedPropertyName(Bn,Kr)}}let er=zn(ie,Ri=>Ri.kind!==129?Ri:void 0,Ta),Fr=IH(t,k,er,Ct);Rr(Fr,k),lr(Fr,3072),Da(Fr,wn),Da(Fr.name,k.name);let ho=dn(er,gi,Ne);Rr(ho,k),ic(ho,En),Da(ho,wn);let Pi=un(er,xi,Ne);return Rr(Pi,k),lr(Pi,3072),Da(Pi,wn),[Fr,ho,Pi]}return Le(t.updatePropertyDeclaration(k,ie,H,void 0,void 0,Ct),k)}function Je(k){return h??k}function ft(k){if(wu(k.expression)&&h){let ie=Qe(k.expression,ee,ht),H=zn(k.arguments,ee,ht),ue=t.createFunctionCallCall(ie,h,H);return Rr(ue,k),at(ue,k),ue}return Sn(k,ee,e)}function Zt(k){if(wu(k.tag)&&h){let ie=Qe(k.tag,ee,ht),H=t.createFunctionBindCall(ie,h,[]);Rr(H,k),at(H,k);let ue=Qe(k.template,ee,EI);return t.updateTaggedTemplateExpression(k,H,void 0,ue)}return Sn(k,ee,e)}function en(k){if(wu(k)&&Fe(k.name)&&h&&m){let ie=t.createStringLiteralFromNode(k.name),H=t.createReflectGetCall(m,ie,h);return Rr(H,k.expression),at(H,k.expression),H}return Sn(k,ee,e)}function Dn(k){if(wu(k)&&h&&m){let ie=Qe(k.argumentExpression,ee,ht),H=t.createReflectGetCall(m,ie,h);return Rr(H,k.expression),at(H,k.expression),H}return Sn(k,ee,e)}function Kn(k){pp(k,pn)&&(k=yp(e,k,Yt(k.initializer)));let ie=t.updateParameterDeclaration(k,void 0,k.dotDotDotToken,Qe(k.name,ee,sT),void 0,void 0,Qe(k.initializer,ee,ht));return ie!==k&&(ic(ie,k),at(ie,R_(k)),Da(ie,R_(k)),lr(ie.name,64)),ie}function pn(k){return $c(k)&&!k.name&&he(k)}function Yt(k){let ie=Yl(k);return $c(ie)&&!ie.name&&!Py(!1,ie)}function qt(k){return t.updateForStatement(k,Qe(k.initializer,J,vf),Qe(k.condition,ee,ht),Qe(k.incrementor,J,ht),Au(k.statement,ee,e))}function hi(k){return Sn(k,J,e)}function uo(k,ie){if(wy(k)){let H=kn(k.left),ue=Qe(k.right,ee,ht);return t.updateBinaryExpression(k,H,k.operatorToken,ue)}if(Pc(k)){if(pp(k,pn))return k=yp(e,k,Yt(k.right)),Sn(k,ee,e);if(wu(k.left)&&h&&m){let H=qs(k.left)?Qe(k.left.argumentExpression,ee,ht):Fe(k.left.name)?t.createStringLiteralFromNode(k.left.name):void 0;if(H){let ue=Qe(k.right,ee,ht);if(PP(k.operatorToken.kind)){let Ne=H;L_(H)||(Ne=t.createTempVariable(s),H=t.createAssignment(Ne,H));let It=t.createReflectGetCall(m,Ne,h);Rr(It,k.left),at(It,k.left),ue=t.createBinaryExpression(It,MP(k.operatorToken.kind),ue),at(ue,k)}let We=ie?void 0:t.createTempVariable(s);return We&&(ue=t.createAssignment(We,ue),at(We,k)),ue=t.createReflectSetCall(m,H,ue,h),Rr(ue,k),at(ue,k),We&&(ue=t.createComma(ue,We),at(ue,k)),ue}}}if(k.operatorToken.kind===28){let H=Qe(k.left,J,ht),ue=Qe(k.right,ie?J:ee,ht);return t.updateBinaryExpression(k,H,k.operatorToken,ue)}return Sn(k,ee,e)}function Li(k,ie){if(k.operator===46||k.operator===47){let H=ms(k.operand);if(wu(H)&&h&&m){let ue=qs(H)?Qe(H.argumentExpression,ee,ht):Fe(H.name)?t.createStringLiteralFromNode(H.name):void 0;if(ue){let We=ue;L_(ue)||(We=t.createTempVariable(s),ue=t.createAssignment(We,ue));let Ne=t.createReflectGetCall(m,We,h);Rr(Ne,k),at(Ne,k);let It=ie?void 0:t.createTempVariable(s);return Ne=q4(t,k,Ne,s,It),Ne=t.createReflectSetCall(m,ue,Ne,h),Rr(Ne,k),at(Ne,k),It&&(Ne=t.createComma(Ne,It),at(Ne,k)),Ne}}}return Sn(k,ee,e)}function Eo(k,ie){let H=ie?Ew(k.elements,J):Ew(k.elements,ee,J);return t.updateCommaListExpression(k,H)}function Qn(k){if(T_(k)||Ki(k)){let Ne=t.createStringLiteralFromNode(k),It=Qe(k,ee,rc);return{referencedName:Ne,name:It}}if(T_(k.expression)&&!Fe(k.expression)){let Ne=t.createStringLiteralFromNode(k.expression),It=Qe(k,ee,rc);return{referencedName:Ne,name:It}}let ie=t.getGeneratedNameForNode(k);s(ie);let H=r().createPropKeyHelper(Qe(k.expression,ee,ht)),ue=t.createAssignment(ie,H),We=t.updateComputedPropertyName(k,se(ue));return{referencedName:ie,name:We}}function Ur(k){return Ya(k)?Er(k):Qe(k,ee,rc)}function Er(k){let ie=Qe(k.expression,ee,ht);return L_(ie)||(ie=se(ie)),t.updateComputedPropertyName(k,ie)}function on(k){return pp(k,pn)&&(k=yp(e,k,Yt(k.initializer))),Sn(k,ee,e)}function Ye(k){return pp(k,pn)&&(k=yp(e,k,Yt(k.initializer))),Sn(k,ee,e)}function Ot(k){return pp(k,pn)&&(k=yp(e,k,Yt(k.initializer))),Sn(k,ee,e)}function In(k){if(La(k)||pu(k))return kn(k);if(wu(k)&&h&&m){let ie=qs(k)?Qe(k.argumentExpression,ee,ht):Fe(k.name)?t.createStringLiteralFromNode(k.name):void 0;if(ie){let H=t.createTempVariable(void 0),ue=t.createAssignmentTargetWrapper(H,t.createReflectSetCall(m,ie,H,h));return Rr(ue,k),at(ue,k),ue}}return Sn(k,ee,e)}function si(k){if(Pc(k,!0)){pp(k,pn)&&(k=yp(e,k,Yt(k.right)));let ie=In(k.left),H=Qe(k.right,ee,ht);return t.updateBinaryExpression(k,ie,k.operatorToken,H)}else return In(k)}function yi(k){if(Yu(k.expression)){let ie=In(k.expression);return t.updateSpreadElement(k,ie)}return Sn(k,ee,e)}function $i(k){return R.assertNode(k,a2),qm(k)?yi(k):Gc(k)?Sn(k,ee,e):si(k)}function Ao(k){let ie=Qe(k.name,ee,rc);if(Pc(k.initializer,!0)){let H=si(k.initializer);return t.updatePropertyAssignment(k,ie,H)}if(Yu(k.initializer)){let H=In(k.initializer);return t.updatePropertyAssignment(k,ie,H)}return Sn(k,ee,e)}function da(k){return pp(k,pn)&&(k=yp(e,k,Yt(k.objectAssignmentInitializer))),Sn(k,ee,e)}function Ba(k){if(Yu(k.expression)){let ie=In(k.expression);return t.updateSpreadAssignment(k,ie)}return Sn(k,ee,e)}function vn(k){return R.assertNode(k,o2),Gy(k)?Ba(k):Zu(k)?da(k):mc(k)?Ao(k):Sn(k,ee,e)}function kn(k){if(pu(k)){let ie=zn(k.elements,$i,ht);return t.updateArrayLiteralExpression(k,ie)}else{let ie=zn(k.properties,vn,Ng);return t.updateObjectLiteralExpression(k,ie)}}function Be(k){return pp(k,pn)&&(k=yp(e,k,Yt(k.expression))),Sn(k,ee,e)}function ct(k,ie){let H=ie?J:ee,ue=Qe(k.expression,H,ht);return t.updateParenthesizedExpression(k,ue)}function lt(k,ie){let H=ie?J:ee,ue=Qe(k.expression,H,ht);return t.updatePartiallyEmittedExpression(k,ue)}function Dt(k,ie){return gt(k)&&(ie?Wu(ie)?(k.push(ie.expression),ie=t.updateParenthesizedExpression(ie,t.inlineExpressions(k))):(k.push(ie),ie=t.inlineExpressions(k)):ie=t.inlineExpressions(k)),ie}function se(k){let ie=Dt(y,k);return R.assertIsDefined(ie),ie!==k&&(y=void 0),ie}function ke(k,ie,H){let ue=Dt(ie?k.pendingStaticInitializers:k.pendingInstanceInitializers,H);return ue!==H&&(ie?k.pendingStaticInitializers=void 0:k.pendingInstanceInitializers=void 0),ue}function st(k){if(!k)return;let ie=[];return Hr(ie,mn(k.decorators,G)),ie}function G(k){let ie=Qe(k.expression,ee,ht);lr(ie,3072);let H=Yl(ie);if(Ps(H)){let{target:ue,thisArg:We}=t.createCallBinding(ie,s,l,!0);return t.restoreOuterExpressions(ie,t.createFunctionBindCall(ue,We,[]))}return ie}function et(k,ie,H,ue,We,Ne,It){let Ct=t.createFunctionExpression(H,ue,void 0,void 0,Ne,void 0,It??t.createBlock([]));Rr(Ct,k),Da(Ct,kg(k)),lr(Ct,3072);let Kt=We==="get"||We==="set"?We:void 0,En=t.createStringLiteralFromNode(ie,void 0),wn=r().createSetFunctionNameHelper(Ct,En,Kt),Bn=t.createPropertyAssignment(t.createIdentifier(We),wn);return Rr(Bn,k),Da(Bn,kg(k)),lr(Bn,3072),Bn}function Tt(k,ie){return t.createObjectLiteralExpression([et(k,k.name,ie,k.asteriskToken,"value",zn(k.parameters,ee,To),Qe(k.body,ee,Ho))])}function He(k,ie){return t.createObjectLiteralExpression([et(k,k.name,ie,void 0,"get",[],Qe(k.body,ee,Ho))])}function pt(k,ie){return t.createObjectLiteralExpression([et(k,k.name,ie,void 0,"set",zn(k.parameters,ee,To),Qe(k.body,ee,Ho))])}function Ft(k,ie){return t.createObjectLiteralExpression([et(k,k.name,ie,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(k.name)))])),et(k,k.name,ie,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(k.name)),t.createIdentifier("value")))]))])}function hn(k,ie,H){return k=zn(k,ue=>qI(ue)?ue:void 0,Ta),t.createGetAccessorDeclaration(k,ie,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(H,t.createIdentifier("value")))]))}function dn(k,ie,H){return k=zn(k,ue=>qI(ue)?ue:void 0,Ta),t.createGetAccessorDeclaration(k,ie,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(H,t.createIdentifier("get")),t.createThis(),[]))]))}function un(k,ie,H){return k=zn(k,ue=>qI(ue)?ue:void 0,Ta),t.createSetAccessorDeclaration(k,ie,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(H,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function U(k,ie){let H=t.createVariableDeclaration(k,void 0,void 0,t.createConditionalExpression(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("Symbol"),"function"),t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),t.createToken(58),t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[ie?Pt(ie):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([H],2))}function Me(k,ie){let H=t.createObjectDefinePropertyCall(k,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:ie},!0));return lr(t.createIfStatement(ie,t.createExpressionStatement(H)),1)}function Pt(k){return t.createBinaryExpression(t.createElementAccessExpression(k,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}var K9e=bt({"src/compiler/transformers/esDecorators.ts"(){"use strict";Zo()}});function Ele(e){let{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),d=e.getCompilerOptions(),p=rs(d),h,m=0,y,E,S,A,N=[],D=0,w=e.onEmitNode,j=e.onSubstituteNode;return e.onEmitNode=hi,e.onSubstituteNode=uo,Im(e,K);function K(Ye){if(Ye.isDeclarationFile)return Ye;Y(1,!1),Y(2,!$V(Ye,d));let Ot=Sn(Ye,q,e);return Wg(Ot,e.readEmitHelpers()),Ot}function Y(Ye,Ot){D=Ot?D|Ye:D&~Ye}function B(Ye){return(D&Ye)!==0}function ce(){return!B(1)}function z(){return B(2)}function ee(Ye,Ot,In){let si=Ye&~D;if(si){Y(si,!0);let yi=Ot(In);return Y(si,!1),yi}return Ot(In)}function me(Ye){return Sn(Ye,q,e)}function ge(Ye){switch(Ye.kind){case 218:case 262:case 174:case 177:case 178:case 176:return Ye;case 169:case 208:case 260:break;case 80:if(A&&l.isArgumentsLocalBinding(Ye))return A;break}return Sn(Ye,ge,e)}function q(Ye){if(!(Ye.transformFlags&256))return A?ge(Ye):Ye;switch(Ye.kind){case 134:return;case 223:return he(Ye);case 174:return ee(3,Ge,Ye);case 262:return ee(3,De,Ye);case 218:return ee(3,Le,Ye);case 219:return ee(1,Et,Ye);case 211:return E&&wr(Ye)&&Ye.expression.kind===108&&E.add(Ye.name.escapedText),Sn(Ye,q,e);case 212:return E&&Ye.expression.kind===108&&(S=!0),Sn(Ye,q,e);case 177:return ee(3,ve,Ye);case 178:return ee(3,Ie,Ye);case 176:return ee(3,Ce,Ye);case 263:case 231:return ee(3,me,Ye);default:return Sn(Ye,q,e)}}function J(Ye){if(Eie(Ye))switch(Ye.kind){case 243:return pe(Ye);case 248:return ne(Ye);case 249:return xe(Ye);case 250:return fe(Ye);case 299:return re(Ye);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return Sn(Ye,J,e);default:return R.assertNever(Ye,"Unhandled node.")}return q(Ye)}function re(Ye){let Ot=new Set;be(Ye.variableDeclaration,Ot);let In;if(Ot.forEach((si,yi)=>{y.has(yi)&&(In||(In=new Set(y)),In.delete(yi))}),In){let si=y;y=In;let yi=Sn(Ye,J,e);return y=si,yi}else return Sn(Ye,J,e)}function pe(Ye){if(ze(Ye.declarationList)){let Ot=tt(Ye.declarationList,!1);return Ot?t.createExpressionStatement(Ot):void 0}return Sn(Ye,q,e)}function xe(Ye){return t.updateForInStatement(Ye,ze(Ye.initializer)?tt(Ye.initializer,!0):R.checkDefined(Qe(Ye.initializer,q,vf)),R.checkDefined(Qe(Ye.expression,q,ht)),Au(Ye.statement,J,e))}function fe(Ye){return t.updateForOfStatement(Ye,Qe(Ye.awaitModifier,q,ZU),ze(Ye.initializer)?tt(Ye.initializer,!0):R.checkDefined(Qe(Ye.initializer,q,vf)),R.checkDefined(Qe(Ye.expression,q,ht)),Au(Ye.statement,J,e))}function ne(Ye){let Ot=Ye.initializer;return t.updateForStatement(Ye,ze(Ot)?tt(Ot,!1):Qe(Ye.initializer,q,vf),Qe(Ye.condition,q,ht),Qe(Ye.incrementor,q,ht),Au(Ye.statement,J,e))}function he(Ye){return ce()?Sn(Ye,q,e):Rr(at(t.createYieldExpression(void 0,Qe(Ye.expression,q,ht)),Ye),Ye)}function Ce(Ye){let Ot=A;A=void 0;let In=t.updateConstructorDeclaration(Ye,zn(Ye.modifiers,q,Ta),Il(Ye.parameters,q,e),Zt(Ye));return A=Ot,In}function Ge(Ye){let Ot,In=Bc(Ye),si=A;A=void 0;let yi=t.updateMethodDeclaration(Ye,zn(Ye.modifiers,q,il),Ye.asteriskToken,Ye.name,void 0,void 0,Ot=In&2?Dn(Ye):Il(Ye.parameters,q,e),void 0,In&2?Kn(Ye,Ot):Zt(Ye));return A=si,yi}function ve(Ye){let Ot=A;A=void 0;let In=t.updateGetAccessorDeclaration(Ye,zn(Ye.modifiers,q,il),Ye.name,Il(Ye.parameters,q,e),void 0,Zt(Ye));return A=Ot,In}function Ie(Ye){let Ot=A;A=void 0;let In=t.updateSetAccessorDeclaration(Ye,zn(Ye.modifiers,q,il),Ye.name,Il(Ye.parameters,q,e),Zt(Ye));return A=Ot,In}function De(Ye){let Ot,In=A;A=void 0;let si=Bc(Ye),yi=t.updateFunctionDeclaration(Ye,zn(Ye.modifiers,q,il),Ye.asteriskToken,Ye.name,void 0,Ot=si&2?Dn(Ye):Il(Ye.parameters,q,e),void 0,si&2?Kn(Ye,Ot):rf(Ye.body,q,e));return A=In,yi}function Le(Ye){let Ot,In=A;A=void 0;let si=Bc(Ye),yi=t.updateFunctionExpression(Ye,zn(Ye.modifiers,q,Ta),Ye.asteriskToken,Ye.name,void 0,Ot=si&2?Dn(Ye):Il(Ye.parameters,q,e),void 0,si&2?Kn(Ye,Ot):rf(Ye.body,q,e));return A=In,yi}function Et(Ye){let Ot,In=Bc(Ye);return t.updateArrowFunction(Ye,zn(Ye.modifiers,q,Ta),void 0,Ot=In&2?Dn(Ye):Il(Ye.parameters,q,e),void 0,Ye.equalsGreaterThanToken,In&2?Kn(Ye,Ot):rf(Ye.body,q,e))}function be({name:Ye},Ot){if(Fe(Ye))Ot.add(Ye.escapedText);else for(let In of Ye.elements)Gc(In)||be(In,Ot)}function ze(Ye){return!!Ye&&Vc(Ye)&&!(Ye.flags&7)&&Ye.declarations.some(ft)}function tt(Ye,Ot){Wt(Ye);let In=ON(Ye);return In.length===0?Ot?Qe(t.converters.convertToAssignmentElementTarget(Ye.declarations[0].name),q,ht):void 0:t.inlineExpressions(mn(In,Je))}function Wt(Ye){gn(Ye.declarations,_t)}function _t({name:Ye}){if(Fe(Ye))s(Ye);else for(let Ot of Ye.elements)Gc(Ot)||_t(Ot)}function Je(Ye){let Ot=Da(t.createAssignment(t.converters.convertToAssignmentElementTarget(Ye.name),Ye.initializer),Ye);return R.checkDefined(Qe(Ot,q,ht))}function ft({name:Ye}){if(Fe(Ye))return y.has(Ye.escapedText);for(let Ot of Ye.elements)if(!Gc(Ot)&&ft(Ot))return!0;return!1}function Zt(Ye){R.assertIsDefined(Ye.body);let Ot=E,In=S;E=new Set,S=!1;let si=rf(Ye.body,q,e),yi=Nl(Ye,Ws);if(p>=2&&l.getNodeCheckFlags(Ye)&384&&(Bc(yi)&3)!==3){if(qt(),E.size){let Ao=U3(t,l,Ye,E);N[is(Ao)]=!0;let da=si.statements.slice();qh(da,[Ao]),si=t.updateBlock(si,da)}S&&(l.getNodeCheckFlags(Ye)&256?VI(si,Nk):l.getNodeCheckFlags(Ye)&128&&VI(si,Ck))}return E=Ot,S=In,si}function en(){R.assert(A);let Ye=t.createVariableDeclaration(A,void 0,void 0,t.createIdentifier("arguments")),Ot=t.createVariableStatement(void 0,[Ye]);return Kd(Ot),D_(Ot,2097152),Ot}function Dn(Ye){if(Tw(Ye.parameters))return Il(Ye.parameters,q,e);let Ot=[];for(let si of Ye.parameters){if(si.initializer||si.dotDotDotToken){if(Ye.kind===219){let $i=t.createParameterDeclaration(void 0,t.createToken(26),t.createUniqueName("args",8));Ot.push($i)}break}let yi=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(si.name,8));Ot.push(yi)}let In=t.createNodeArray(Ot);return at(In,Ye.parameters),In}function Kn(Ye,Ot){let In=Tw(Ye.parameters)?void 0:Il(Ye.parameters,q,e);i();let yi=Nl(Ye,Yo).type,$i=p<2?Yt(yi):void 0,Ao=Ye.kind===219,da=A,vn=(l.getNodeCheckFlags(Ye)&512)!==0&&!A;vn&&(A=t.createUniqueName("arguments"));let kn;if(In)if(Ao){let st=[];R.assert(Ot.length<=Ye.parameters.length);for(let G=0;G=2&&l.getNodeCheckFlags(Ye)&384;if(G&&(qt(),E.size)){let Tt=U3(t,l,Ye,E);N[is(Tt)]=!0,qh(st,[Tt])}vn&&qh(st,[en()]);let et=t.createBlock(st,!0);at(et,Ye.body),G&&S&&(l.getNodeCheckFlags(Ye)&256?VI(et,Nk):l.getNodeCheckFlags(Ye)&128&&VI(et,Ck)),ke=et}return y=Be,Ao||(E=ct,S=lt,A=da),ke}function pn(Ye,Ot){return Ho(Ye)?t.updateBlock(Ye,zn(Ye.statements,J,Hi,Ot)):t.converters.convertToFunctionBlock(R.checkDefined(Qe(Ye,J,pF)))}function Yt(Ye){let Ot=Ye&&I2(Ye);if(Ot&&Xu(Ot)){let In=l.getTypeReferenceSerializationKind(Ot);if(In===1||In===0)return Ot}}function qt(){h&1||(h|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function hi(Ye,Ot,In){if(h&1&&Er(Ot)){let si=l.getNodeCheckFlags(Ot)&384;if(si!==m){let yi=m;m=si,w(Ye,Ot,In),m=yi;return}}else if(h&&N[is(Ot)]){let si=m;m=0,w(Ye,Ot,In),m=si;return}w(Ye,Ot,In)}function uo(Ye,Ot){return Ot=j(Ye,Ot),Ye===1&&m?Li(Ot):Ot}function Li(Ye){switch(Ye.kind){case 211:return Eo(Ye);case 212:return Qn(Ye);case 213:return Ur(Ye)}return Ye}function Eo(Ye){return Ye.expression.kind===108?at(t.createPropertyAccessExpression(t.createUniqueName("_super",48),Ye.name),Ye):Ye}function Qn(Ye){return Ye.expression.kind===108?on(Ye.argumentExpression,Ye):Ye}function Ur(Ye){let Ot=Ye.expression;if(wu(Ot)){let In=wr(Ot)?Eo(Ot):Qn(Ot);return t.createCallExpression(t.createPropertyAccessExpression(In,"call"),void 0,[t.createThis(),...Ye.arguments])}return Ye}function Er(Ye){let Ot=Ye.kind;return Ot===263||Ot===176||Ot===174||Ot===177||Ot===178}function on(Ye,Ot){return m&256?at(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[Ye]),"value"),Ot):at(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[Ye]),Ot)}}function U3(e,t,r,i){let o=(t.getNodeCheckFlags(r)&256)!==0,s=[];return i.forEach((l,d)=>{let p=Vi(d),h=[];h.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,lr(e.createPropertyAccessExpression(lr(e.createSuper(),8),p),8)))),o&&h.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(lr(e.createPropertyAccessExpression(lr(e.createSuper(),8),p),8),e.createIdentifier("v"))))),s.push(e.createPropertyAssignment(p,e.createObjectLiteralExpression(h)))}),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createUniqueName("_super",48),void 0,void 0,e.createCallExpression(e.createPropertyAccessExpression(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteralExpression(s,!0)]))],2))}var J9e=bt({"src/compiler/transformers/es2017.ts"(){"use strict";Zo()}});function Sle(e){let{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),d=e.getCompilerOptions(),p=rs(d),h=e.onEmitNode;e.onEmitNode=da;let m=e.onSubstituteNode;e.onSubstituteNode=Ba;let y=!1,E,S,A,N=0,D=0,w,j,K,Y,B=[];return Im(e,ge);function ce(se,ke){return D!==(D&~se|ke)}function z(se,ke){let st=D;return D=(D&~se|ke)&3,st}function ee(se){D=se}function me(se){j=Tn(j,t.createVariableDeclaration(se))}function ge(se){if(se.isDeclarationFile)return se;w=se;let ke=Et(se);return Wg(ke,e.readEmitHelpers()),w=void 0,j=void 0,ke}function q(se){return fe(se,!1)}function J(se){return fe(se,!0)}function re(se){if(se.kind!==134)return se}function pe(se,ke,st,G){if(ce(st,G)){let et=z(st,G),Tt=se(ke);return ee(et),Tt}return se(ke)}function xe(se){return Sn(se,q,e)}function fe(se,ke){if(!(se.transformFlags&128))return se;switch(se.kind){case 223:return ne(se);case 229:return he(se);case 253:return Ce(se);case 256:return Ge(se);case 210:return Ie(se);case 226:return ze(se,ke);case 361:return tt(se,ke);case 299:return Wt(se);case 243:return _t(se);case 260:return Je(se);case 246:case 247:case 249:return pe(xe,se,0,2);case 250:return Dn(se,void 0);case 248:return pe(Zt,se,0,2);case 222:return en(se);case 176:return pe(Eo,se,2,1);case 174:return pe(Er,se,2,1);case 177:return pe(Qn,se,2,1);case 178:return pe(Ur,se,2,1);case 262:return pe(on,se,2,1);case 218:return pe(Ot,se,2,1);case 219:return pe(Ye,se,2,0);case 169:return uo(se);case 244:return De(se);case 217:return Le(se,ke);case 215:return be(se);case 211:return K&&wr(se)&&se.expression.kind===108&&K.add(se.name.escapedText),Sn(se,q,e);case 212:return K&&se.expression.kind===108&&(Y=!0),Sn(se,q,e);case 263:case 231:return pe(xe,se,2,1);default:return Sn(se,q,e)}}function ne(se){return S&2&&S&1?Rr(at(t.createYieldExpression(void 0,r().createAwaitHelper(Qe(se.expression,q,ht))),se),se):Sn(se,q,e)}function he(se){if(S&2&&S&1){if(se.asteriskToken){let ke=Qe(R.checkDefined(se.expression),q,ht);return Rr(at(t.createYieldExpression(void 0,r().createAwaitHelper(t.updateYieldExpression(se,se.asteriskToken,at(r().createAsyncDelegatorHelper(at(r().createAsyncValuesHelper(ke),ke)),ke)))),se),se)}return Rr(at(t.createYieldExpression(void 0,Yt(se.expression?Qe(se.expression,q,ht):t.createVoidZero())),se),se)}return Sn(se,q,e)}function Ce(se){return S&2&&S&1?t.updateReturnStatement(se,Yt(se.expression?Qe(se.expression,q,ht):t.createVoidZero())):Sn(se,q,e)}function Ge(se){if(S&2){let ke=sj(se);return ke.kind===250&&ke.awaitModifier?Dn(ke,se):t.restoreEnclosingLabel(Qe(ke,q,Hi,t.liftToBlock),se)}return Sn(se,q,e)}function ve(se){let ke,st=[];for(let G of se)if(G.kind===305){ke&&(st.push(t.createObjectLiteralExpression(ke)),ke=void 0);let et=G.expression;st.push(Qe(et,q,ht))}else ke=Tn(ke,G.kind===303?t.createPropertyAssignment(G.name,Qe(G.initializer,q,ht)):Qe(G,q,Ng));return ke&&st.push(t.createObjectLiteralExpression(ke)),st}function Ie(se){if(se.transformFlags&65536){let ke=ve(se.properties);ke.length&&ke[0].kind!==210&&ke.unshift(t.createObjectLiteralExpression());let st=ke[0];if(ke.length>1){for(let G=1;G=2&&l.getNodeCheckFlags(se)&384;if(pt){Ao();let hn=U3(t,l,se,K);B[is(hn)]=!0,qh(et,[hn])}et.push(He);let Ft=t.updateBlock(se.body,et);return pt&&Y&&(l.getNodeCheckFlags(se)&256?VI(Ft,Nk):l.getNodeCheckFlags(se)&128&&VI(Ft,Ck)),K=st,Y=G,Ft}function yi(se){i();let ke=0,st=[],G=Qe(se.body,q,pF)??t.createBlock([]);Ho(G)&&(ke=t.copyPrologue(G.statements,st,!1,q)),Hr(st,$i(void 0,se));let et=o();if(ke>0||gt(st)||gt(et)){let Tt=t.converters.convertToFunctionBlock(G,!0);return qh(st,et),Hr(st,Tt.statements.slice(ke)),t.updateBlock(Tt,at(t.createNodeArray(st),Tt.statements))}return G}function $i(se,ke){let st=!1;for(let G of ke.parameters)if(st){if($o(G.name)){if(G.name.elements.length>0){let et=rS(G,q,e,0,t.getGeneratedNameForNode(G));if(gt(et)){let Tt=t.createVariableDeclarationList(et),He=t.createVariableStatement(void 0,Tt);lr(He,2097152),se=Tn(se,He)}}else if(G.initializer){let et=t.getGeneratedNameForNode(G),Tt=Qe(G.initializer,q,ht),He=t.createAssignment(et,Tt),pt=t.createExpressionStatement(He);lr(pt,2097152),se=Tn(se,pt)}}else if(G.initializer){let et=t.cloneNode(G.name);at(et,G.name),lr(et,96);let Tt=Qe(G.initializer,q,ht);D_(Tt,3168);let He=t.createAssignment(et,Tt);at(He,G),lr(He,3072);let pt=t.createBlock([t.createExpressionStatement(He)]);at(pt,G),lr(pt,3905);let Ft=t.createTypeCheck(t.cloneNode(G.name),"undefined"),hn=t.createIfStatement(Ft,pt);Kd(hn),at(hn,G),lr(hn,2101056),se=Tn(se,hn)}}else if(G.transformFlags&65536){st=!0;let et=rS(G,q,e,1,t.getGeneratedNameForNode(G),!1,!0);if(gt(et)){let Tt=t.createVariableDeclarationList(et),He=t.createVariableStatement(void 0,Tt);lr(He,2097152),se=Tn(se,He)}}return se}function Ao(){E&1||(E|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function da(se,ke,st){if(E&1&<(ke)){let G=l.getNodeCheckFlags(ke)&384;if(G!==N){let et=N;N=G,h(se,ke,st),N=et;return}}else if(E&&B[is(ke)]){let G=N;N=0,h(se,ke,st),N=G;return}h(se,ke,st)}function Ba(se,ke){return ke=m(se,ke),se===1&&N?vn(ke):ke}function vn(se){switch(se.kind){case 211:return kn(se);case 212:return Be(se);case 213:return ct(se)}return se}function kn(se){return se.expression.kind===108?at(t.createPropertyAccessExpression(t.createUniqueName("_super",48),se.name),se):se}function Be(se){return se.expression.kind===108?Dt(se.argumentExpression,se):se}function ct(se){let ke=se.expression;if(wu(ke)){let st=wr(ke)?kn(ke):Be(ke);return t.createCallExpression(t.createPropertyAccessExpression(st,"call"),void 0,[t.createThis(),...se.arguments])}return se}function lt(se){let ke=se.kind;return ke===263||ke===176||ke===174||ke===177||ke===178}function Dt(se,ke){return N&256?at(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[se]),"value"),ke):at(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[se]),ke)}}var q9e=bt({"src/compiler/transformers/es2018.ts"(){"use strict";Zo()}});function Tle(e){let t=e.factory;return Im(e,r);function r(s){return s.isDeclarationFile?s:Sn(s,i,e)}function i(s){if(!(s.transformFlags&64))return s;switch(s.kind){case 299:return o(s);default:return Sn(s,i,e)}}function o(s){return s.variableDeclaration?Sn(s,i,e):t.updateCatchClause(s,t.createVariableDeclaration(t.createTempVariable(void 0)),Qe(s.block,i,Ho))}}var X9e=bt({"src/compiler/transformers/es2019.ts"(){"use strict";Zo()}});function Ale(e){let{factory:t,hoistVariableDeclaration:r}=e;return Im(e,i);function i(A){return A.isDeclarationFile?A:Sn(A,o,e)}function o(A){if(!(A.transformFlags&32))return A;switch(A.kind){case 213:{let N=p(A,!1);return R.assertNotNode(N,r1),N}case 211:case 212:if(jd(A)){let N=m(A,!1,!1);return R.assertNotNode(N,r1),N}return Sn(A,o,e);case 226:return A.operatorToken.kind===61?E(A):Sn(A,o,e);case 220:return S(A);default:return Sn(A,o,e)}}function s(A){R.assertNotNode(A,sF);let N=[A];for(;!A.questionDotToken&&!H0(A);)A=ta(gm(A.expression),jd),R.assertNotNode(A,sF),N.unshift(A);return{expression:A.expression,chain:N}}function l(A,N,D){let w=h(A.expression,N,D);return r1(w)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(A,w.expression),w.thisArg):t.updateParenthesizedExpression(A,w)}function d(A,N,D){if(jd(A))return m(A,N,D);let w=Qe(A.expression,o,ht);R.assertNotNode(w,r1);let j;return N&&(nS(w)?j=w:(j=t.createTempVariable(r),w=t.createAssignment(j,w))),w=A.kind===211?t.updatePropertyAccessExpression(A,w,Qe(A.name,o,Fe)):t.updateElementAccessExpression(A,w,Qe(A.argumentExpression,o,ht)),j?t.createSyntheticReferenceExpression(w,j):w}function p(A,N){if(jd(A))return m(A,N,!1);if(Wu(A.expression)&&jd(ms(A.expression))){let D=l(A.expression,!0,!1),w=zn(A.arguments,o,ht);return r1(D)?at(t.createFunctionCallCall(D.expression,D.thisArg,w),A):t.updateCallExpression(A,D,void 0,w)}return Sn(A,o,e)}function h(A,N,D){switch(A.kind){case 217:return l(A,N,D);case 211:case 212:return d(A,N,D);case 213:return p(A,N);default:return Qe(A,o,ht)}}function m(A,N,D){let{expression:w,chain:j}=s(A),K=h(gm(w),oT(j[0]),!1),Y=r1(K)?K.thisArg:void 0,B=r1(K)?K.expression:K,ce=t.restoreOuterExpressions(w,B,8);nS(B)||(B=t.createTempVariable(r),ce=t.createAssignment(B,ce));let z=B,ee;for(let ge=0;gefe&&Hr(ne,zn(pe.statements,y,Hi,fe,he-fe));break}he++}R.assert(heD(ne,fe))))],fe,xe===2)}return Sn(pe,y,e)}function j(pe,xe,fe,ne,he){let Ce=[];for(let Ie=xe;Iet&&(t=i)}return t}function Z9e(e){let t=0;for(let r of e){let i=zK(r.statements);if(i===2)return 2;i>t&&(t=i)}return t}var eVe=bt({"src/compiler/transformers/esnext.ts"(){"use strict";Zo()}});function Nle(e){let{factory:t,getEmitHelperFactory:r}=e,i=e.getCompilerOptions(),o,s;return Im(e,y);function l(){if(s.filenameDeclaration)return s.filenameDeclaration.name;let be=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(o.fileName));return s.filenameDeclaration=be,s.filenameDeclaration.name}function d(be){return i.jsx===5?"jsxDEV":be?"jsxs":"jsx"}function p(be){let ze=d(be);return m(ze)}function h(){return m("Fragment")}function m(be){var ze,tt;let Wt=be==="createElement"?s.importSpecifier:C6(s.importSpecifier,i),_t=(tt=(ze=s.utilizedImplicitRuntimeImports)==null?void 0:ze.get(Wt))==null?void 0:tt.get(be);if(_t)return _t.name;s.utilizedImplicitRuntimeImports||(s.utilizedImplicitRuntimeImports=new Map);let Je=s.utilizedImplicitRuntimeImports.get(Wt);Je||(Je=new Map,s.utilizedImplicitRuntimeImports.set(Wt,Je));let ft=t.createUniqueName(`_${be}`,112),Zt=t.createImportSpecifier(!1,t.createIdentifier(be),ft);return nae(ft,Zt),Je.set(be,Zt),ft}function y(be){if(be.isDeclarationFile)return be;o=be,s={},s.importSpecifier=D6(i,be);let ze=Sn(be,E,e);Wg(ze,e.readEmitHelpers());let tt=ze.statements;if(s.filenameDeclaration&&(tt=uT(tt.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([s.filenameDeclaration],2)))),s.utilizedImplicitRuntimeImports){for(let[Wt,_t]of Oo(s.utilizedImplicitRuntimeImports.entries()))if(oc(be)){let Je=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(Oo(_t.values()))),t.createStringLiteral(Wt),void 0);Gv(Je,!1),tt=uT(tt.slice(),Je)}else if(wp(be)){let Je=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(Oo(_t.values(),ft=>t.createBindingElement(void 0,ft.propertyName,ft.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(Wt)]))],2));Gv(Je,!1),tt=uT(tt.slice(),Je)}}return tt!==ze.statements&&(ze=t.updateSourceFile(ze,tt)),s=void 0,ze}function E(be){return be.transformFlags&2?S(be):be}function S(be){switch(be.kind){case 284:return j(be,!1);case 285:return K(be,!1);case 288:return Y(be,!1);case 294:return Et(be);default:return Sn(be,E,e)}}function A(be){switch(be.kind){case 12:return he(be);case 294:return Et(be);case 284:return j(be,!0);case 285:return K(be,!0);case 288:return Y(be,!0);default:return R.failBadSyntaxKind(be)}}function N(be){return be.properties.some(ze=>mc(ze)&&(Fe(ze.name)&&yr(ze.name)==="__proto__"||Ca(ze.name)&&ze.name.text==="__proto__"))}function D(be){let ze=!1;for(let tt of be.attributes.properties)if(o1(tt)&&(!La(tt.expression)||tt.expression.properties.some(Gy)))ze=!0;else if(ze&&M_(tt)&&Fe(tt.name)&&tt.name.escapedText==="key")return!0;return!1}function w(be){return s.importSpecifier===void 0||D(be)}function j(be,ze){return(w(be.openingElement)?me:z)(be.openingElement,be.children,ze,be)}function K(be,ze){return(w(be)?me:z)(be,void 0,ze,be)}function Y(be,ze){return(s.importSpecifier===void 0?q:ge)(be.openingFragment,be.children,ze,be)}function B(be){let ze=ce(be);return ze&&t.createObjectLiteralExpression([ze])}function ce(be){let ze=sR(be);if(Nn(ze)===1&&!ze[0].dotDotDotToken){let Wt=A(ze[0]);return Wt&&t.createPropertyAssignment("children",Wt)}let tt=to(be,A);return Nn(tt)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(tt)):void 0}function z(be,ze,tt,Wt){let _t=De(be),Je=ze&&ze.length?ce(ze):void 0,ft=Vr(be.attributes.properties,Dn=>!!Dn.name&&Fe(Dn.name)&&Dn.name.escapedText==="key"),Zt=ft?jr(be.attributes.properties,Dn=>Dn!==ft):be.attributes.properties,en=Nn(Zt)?re(Zt,Je):t.createObjectLiteralExpression(Je?[Je]:Xe);return ee(_t,en,ft,ze||Xe,tt,Wt)}function ee(be,ze,tt,Wt,_t,Je){var ft;let Zt=sR(Wt),en=Nn(Zt)>1||!!((ft=Zt[0])!=null&&ft.dotDotDotToken),Dn=[be,ze];if(tt&&Dn.push(ne(tt.initializer)),i.jsx===5){let pn=Nl(o);if(pn&&Yi(pn)){tt===void 0&&Dn.push(t.createVoidZero()),Dn.push(en?t.createTrue():t.createFalse());let Yt=gs(pn,Je.pos);Dn.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",l()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(Yt.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(Yt.character+1))])),Dn.push(t.createThis())}}let Kn=at(t.createCallExpression(p(en),void 0,Dn),Je);return _t&&Kd(Kn),Kn}function me(be,ze,tt,Wt){let _t=De(be),Je=be.attributes.properties,ft=Nn(Je)?re(Je):t.createNull(),Zt=s.importSpecifier===void 0?_H(t,e.getEmitResolver().getJsxFactoryEntity(o),i.reactNamespace,be):m("createElement"),en=Mae(t,Zt,_t,ft,to(ze,A),Wt);return tt&&Kd(en),en}function ge(be,ze,tt,Wt){let _t;if(ze&&ze.length){let Je=B(ze);Je&&(_t=Je)}return ee(h(),_t||t.createObjectLiteralExpression([]),void 0,ze,tt,Wt)}function q(be,ze,tt,Wt){let _t=Lae(t,e.getEmitResolver().getJsxFactoryEntity(o),e.getEmitResolver().getJsxFragmentFactoryEntity(o),i.reactNamespace,to(ze,A),be,Wt);return tt&&Kd(_t),_t}function J(be){return La(be.expression)&&!N(be.expression)?Nc(be.expression.properties,ze=>R.checkDefined(Qe(ze,E,Ng))):t.createSpreadAssignment(R.checkDefined(Qe(be.expression,E,ht)))}function re(be,ze){let tt=rs(i);return tt&&tt>=5?t.createObjectLiteralExpression(pe(be,ze)):xe(be,ze)}function pe(be,ze){let tt=pm(MG(be,o1,(Wt,_t)=>pm(mn(Wt,Je=>_t?J(Je):fe(Je)))));return ze&&tt.push(ze),tt}function xe(be,ze){let tt=[],Wt=[];for(let Je of be){if(o1(Je)){if(La(Je.expression)&&!N(Je.expression)){for(let ft of Je.expression.properties){if(Gy(ft)){_t(),tt.push(R.checkDefined(Qe(ft.expression,E,ht)));continue}Wt.push(R.checkDefined(Qe(ft,E)))}continue}_t(),tt.push(R.checkDefined(Qe(Je.expression,E,ht)));continue}Wt.push(fe(Je))}return ze&&Wt.push(ze),_t(),tt.length&&!La(tt[0])&&tt.unshift(t.createObjectLiteralExpression()),rh(tt)||r().createAssignHelper(tt);function _t(){Wt.length&&(tt.push(t.createObjectLiteralExpression(Wt)),Wt=[])}}function fe(be){let ze=Le(be),tt=ne(be.initializer);return t.createPropertyAssignment(ze,tt)}function ne(be){if(be===void 0)return t.createTrue();if(be.kind===11){let ze=be.singleQuote!==void 0?be.singleQuote:!JF(be,o),tt=t.createStringLiteral(Ie(be.text)||be.text,ze);return at(tt,be)}return be.kind===294?be.expression===void 0?t.createTrue():R.checkDefined(Qe(be.expression,E,ht)):og(be)?j(be,!1):OT(be)?K(be,!1):q0(be)?Y(be,!1):R.failBadSyntaxKind(be)}function he(be){let ze=Ce(be.text);return ze===void 0?void 0:t.createStringLiteral(ze)}function Ce(be){let ze,tt=0,Wt=-1;for(let _t=0;_t{if(Je)return Nx(parseInt(Je,10));if(ft)return Nx(parseInt(ft,16));{let en=jIe.get(Zt);return en?Nx(en):ze}})}function Ie(be){let ze=ve(be);return ze===be?void 0:ze}function De(be){if(be.kind===284)return De(be.openingElement);{let ze=be.tagName;return Fe(ze)&&cR(ze.escapedText)?t.createStringLiteral(yr(ze)):Xm(ze)?t.createStringLiteral(yr(ze.namespace)+":"+yr(ze.name)):Vk(t,ze)}}function Le(be){let ze=be.name;if(Fe(ze)){let tt=yr(ze);return/^[A-Za-z_]\w*$/.test(tt)?ze:t.createStringLiteral(tt)}return t.createStringLiteral(yr(ze.namespace)+":"+yr(ze.name))}function Et(be){let ze=Qe(be.expression,E,ht);return be.dotDotDotToken?t.createSpreadElement(ze):ze}}var jIe,tVe=bt({"src/compiler/transformers/jsx.ts"(){"use strict";Zo(),jIe=new Map(Object.entries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}))}});function Ple(e){let{factory:t,hoistVariableDeclaration:r}=e;return Im(e,i);function i(p){return p.isDeclarationFile?p:Sn(p,o,e)}function o(p){if(!(p.transformFlags&512))return p;switch(p.kind){case 226:return s(p);default:return Sn(p,o,e)}}function s(p){switch(p.operatorToken.kind){case 68:return l(p);case 43:return d(p);default:return Sn(p,o,e)}}function l(p){let h,m,y=Qe(p.left,o,ht),E=Qe(p.right,o,ht);if(qs(y)){let S=t.createTempVariable(r),A=t.createTempVariable(r);h=at(t.createElementAccessExpression(at(t.createAssignment(S,y.expression),y.expression),at(t.createAssignment(A,y.argumentExpression),y.argumentExpression)),y),m=at(t.createElementAccessExpression(S,A),y)}else if(wr(y)){let S=t.createTempVariable(r);h=at(t.createPropertyAccessExpression(at(t.createAssignment(S,y.expression),y.expression),y.name),y),m=at(t.createPropertyAccessExpression(S,y.name),y)}else h=y,m=y;return at(t.createAssignment(h,at(t.createGlobalMethodCall("Math","pow",[m,E]),p)),p)}function d(p){let h=Qe(p.left,o,ht),m=Qe(p.right,o,ht);return at(t.createGlobalMethodCall("Math","pow",[h,m]),p)}}var nVe=bt({"src/compiler/transformers/es2016.ts"(){"use strict";Zo()}});function UIe(e,t){return{kind:e,expression:t}}function Mle(e){let{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,d=e.getCompilerOptions(),p=e.getEmitResolver(),h=e.onSubstituteNode,m=e.onEmitNode;e.onEmitNode=cf,e.onSubstituteNode=Pf;let y,E,S,A;function N(Z){A=Tn(A,t.createVariableDeclaration(Z))}let D,w;return Im(e,j);function j(Z){if(Z.isDeclarationFile)return Z;y=Z,E=Z.text;let rt=re(Z);return Wg(rt,e.readEmitHelpers()),y=void 0,E=void 0,A=void 0,S=0,rt}function K(Z,rt){let wt=S;return S=(S&~Z|rt)&32767,wt}function Y(Z,rt,wt){S=(S&~rt|wt)&-32768|Z}function B(Z){return(S&8192)!==0&&Z.kind===253&&!Z.expression}function ce(Z){return Z.transformFlags&4194304&&(Sm(Z)||LT(Z)||vae(Z)||pP(Z)||fP(Z)||PR(Z)||_P(Z)||wT(Z)||Y0(Z)||K0(Z)||Pv(Z,!1)||Ho(Z))}function z(Z){return(Z.transformFlags&1024)!==0||D!==void 0||S&8192&&ce(Z)||Pv(Z,!1)&&mo(Z)||(ym(Z)&1)!==0}function ee(Z){return z(Z)?J(Z,!1):Z}function me(Z){return z(Z)?J(Z,!0):Z}function ge(Z){if(z(Z)){let rt=Nl(Z);if(Vo(rt)&&pc(rt)){let wt=K(32670,16449),zt=J(Z,!1);return Y(wt,229376,0),zt}return J(Z,!1)}return Z}function q(Z){return Z.kind===108?Zl(Z,!0):ee(Z)}function J(Z,rt){switch(Z.kind){case 126:return;case 263:return De(Z);case 231:return Le(Z);case 169:return Ba(Z);case 262:return dn(Z);case 219:return Ft(Z);case 218:return hn(Z);case 260:return En(Z);case 80:return ve(Z);case 261:return Ne(Z);case 255:return pe(Z);case 269:return xe(Z);case 241:return Me(Z,!1);case 252:case 251:return Ie(Z);case 256:return gi(Z);case 246:case 247:return Fr(Z,void 0);case 248:return ho(Z,void 0);case 249:return Ri(Z,void 0);case 250:return Kr(Z,void 0);case 244:return Pt(Z);case 210:return Po(Z);case 299:return Di(Z);case 304:return jc(Z);case 167:return Gs(Z);case 209:return vs(Z);case 213:return Uc(Z);case 214:return im(Z);case 217:return k(Z,rt);case 226:return ie(Z,rt);case 361:return H(Z,rt);case 15:case 16:case 17:case 18:return Qo(Z);case 11:return Ql(Z);case 9:return gc(Z);case 215:return sl(Z);case 228:return _l(Z);case 229:return hc(Z);case 230:return qo(Z);case 108:return Zl(Z,!1);case 110:return Ce(Z);case 236:return Hc(Z);case 174:return Jo(Z);case 177:case 178:return vl(Z);case 243:return We(Z);case 253:return he(Z);case 222:return Ge(Z);default:return Sn(Z,ee,e)}}function re(Z){let rt=K(8064,64),wt=[],zt=[];i();let O=t.copyPrologue(Z.statements,wt,!1,ee);return Hr(zt,zn(Z.statements,ee,Hi,O)),A&&zt.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(A))),t.mergeLexicalEnvironment(wt,s()),se(wt,Z),Y(rt,0,0),t.updateSourceFile(Z,at(t.createNodeArray(bo(wt,zt)),Z.statements))}function pe(Z){if(D!==void 0){let rt=D.allowedNonLabeledJumps;D.allowedNonLabeledJumps|=2;let wt=Sn(Z,ee,e);return D.allowedNonLabeledJumps=rt,wt}return Sn(Z,ee,e)}function xe(Z){let rt=K(7104,0),wt=Sn(Z,ee,e);return Y(rt,0,0),wt}function fe(Z){return Rr(t.createReturnStatement(ne()),Z)}function ne(){return t.createUniqueName("_this",48)}function he(Z){return D?(D.nonLocalJumps|=8,B(Z)&&(Z=fe(Z)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),Z.expression?R.checkDefined(Qe(Z.expression,ee,ht)):t.createVoidZero())]))):B(Z)?fe(Z):Sn(Z,ee,e)}function Ce(Z){return S|=65536,S&2&&!(S&16384)&&(S|=131072),D?S&2?(D.containsLexicalThis=!0,Z):D.thisName||(D.thisName=t.createUniqueName("this")):Z}function Ge(Z){return Sn(Z,me,e)}function ve(Z){return D&&p.isArgumentsLocalBinding(Z)?D.argumentsName||(D.argumentsName=t.createUniqueName("arguments")):Z.flags&256?Rr(at(t.createIdentifier(Vi(Z.escapedText)),Z),Z):Z}function Ie(Z){if(D){let rt=Z.kind===252?2:4;if(!(Z.label&&D.labels&&D.labels.get(yr(Z.label))||!Z.label&&D.allowedNonLabeledJumps&rt)){let zt,O=Z.label;O?Z.kind===252?(zt=`break-${O.escapedText}`,$(D,!0,yr(O),zt)):(zt=`continue-${O.escapedText}`,$(D,!1,yr(O),zt)):Z.kind===252?(D.nonLocalJumps|=2,zt="break"):(D.nonLocalJumps|=4,zt="continue");let Se=t.createStringLiteral(zt);if(D.loopOutParameters.length){let nt=D.loopOutParameters,jt;for(let Zn=0;ZnFe(rt.name)&&!rt.initializer)}function ft(Z){if(mT(Z))return!0;if(!(Z.transformFlags&134217728))return!1;switch(Z.kind){case 219:case 218:case 262:case 176:case 175:return!1;case 177:case 178:case 174:case 172:{let rt=Z;return Ya(rt.name)?!!Bo(rt.name,ft):!1}}return!!Bo(Z,ft)}function Zt(Z,rt,wt,zt){let O=!!wt&&Yl(wt.expression).kind!==106;if(!Z)return _t(rt,O);let Se=[],nt=[];o();let jt=t.copyStandardPrologue(Z.body.statements,Se,0);(zt||ft(Z.body))&&(S|=8192),Hr(nt,zn(Z.body.statements,ee,Hi,jt));let Zn=O||S&8192;kn(Se,Z),Dt(Se,Z,zt),st(Se,Z),Zn?ke(Se,Z,Ao()):se(Se,Z),t.mergeLexicalEnvironment(Se,s()),Zn&&!$i(Z.body)&&nt.push(t.createReturnStatement(ne()));let ii=t.createBlock(at(t.createNodeArray([...Se,...nt]),Z.body.statements),!0);return at(ii,Z.body),yi(ii,Z.body,zt)}function en(Z){return rl(Z)&&yr(Z)==="_this"}function Dn(Z){return rl(Z)&&yr(Z)==="_super"}function Kn(Z){return Ml(Z)&&Z.declarationList.declarations.length===1&&pn(Z.declarationList.declarations[0])}function pn(Z){return Oi(Z)&&en(Z.name)&&!!Z.initializer}function Yt(Z){return Pc(Z,!0)&&en(Z.left)}function qt(Z){return ra(Z)&&wr(Z.expression)&&Dn(Z.expression.expression)&&Fe(Z.expression.name)&&(yr(Z.expression.name)==="call"||yr(Z.expression.name)==="apply")&&Z.arguments.length>=1&&Z.arguments[0].kind===110}function hi(Z){return ur(Z)&&Z.operatorToken.kind===57&&Z.right.kind===110&&qt(Z.left)}function uo(Z){return ur(Z)&&Z.operatorToken.kind===56&&ur(Z.left)&&Z.left.operatorToken.kind===38&&Dn(Z.left.left)&&Z.left.right.kind===106&&qt(Z.right)&&yr(Z.right.expression.name)==="apply"}function Li(Z){return ur(Z)&&Z.operatorToken.kind===57&&Z.right.kind===110&&uo(Z.left)}function Eo(Z){return Yt(Z)&&hi(Z.right)}function Qn(Z){return Yt(Z)&&Li(Z.right)}function Ur(Z){return qt(Z)||hi(Z)||Eo(Z)||uo(Z)||Li(Z)||Qn(Z)}function Er(Z){for(let rt=0;rt0;zt--){let O=Z.statements[zt];if(Sm(O)&&O.expression&&en(O.expression)){let Se=Z.statements[zt-1],nt;if(Qc(Se)&&Eo(Yl(Se.expression)))nt=Se.expression;else if(wt&&Kn(Se)){let ii=Se.declarationList.declarations[0];Ur(Yl(ii.initializer))&&(nt=t.createAssignment(ne(),ii.initializer))}if(!nt)break;let jt=t.createReturnStatement(nt);Rr(jt,Se),at(jt,Se);let Zn=t.createNodeArray([...Z.statements.slice(0,zt-1),jt,...Z.statements.slice(zt+1)]);return at(Zn,Z.statements),t.updateBlock(Z,Zn)}}return Z}function Ye(Z){if(Kn(Z)){if(Z.declarationList.declarations[0].initializer.kind===110)return}else if(Yt(Z))return t.createPartiallyEmittedExpression(Z.right,Z);switch(Z.kind){case 219:case 218:case 262:case 176:case 175:return Z;case 177:case 178:case 174:case 172:{let rt=Z;return Ya(rt.name)?t.replacePropertyName(rt,Sn(rt.name,Ye,void 0)):Z}}return Sn(Z,Ye,void 0)}function Ot(Z,rt){if(rt.transformFlags&16384||S&65536||S&131072)return Z;for(let wt of rt.statements)if(wt.transformFlags&134217728&&!F3(wt))return Z;return t.updateBlock(Z,zn(Z.statements,Ye,Hi))}function In(Z){if(qt(Z)&&Z.arguments.length===2&&Fe(Z.arguments[1])&&yr(Z.arguments[1])==="arguments")return t.createLogicalAnd(t.createStrictInequality(Gl(),t.createNull()),Z);switch(Z.kind){case 219:case 218:case 262:case 176:case 175:return Z;case 177:case 178:case 174:case 172:{let rt=Z;return Ya(rt.name)?t.replacePropertyName(rt,Sn(rt.name,In,void 0)):Z}}return Sn(Z,In,void 0)}function si(Z){return t.updateBlock(Z,zn(Z.statements,In,Hi))}function yi(Z,rt,wt){let zt=Z;return Z=Er(Z),Z=on(Z,rt),Z!==zt&&(Z=Ot(Z,rt)),wt&&(Z=si(Z)),Z}function $i(Z){if(Z.kind===253)return!0;if(Z.kind===245){let rt=Z;if(rt.elseStatement)return $i(rt.thenStatement)&&$i(rt.elseStatement)}else if(Z.kind===241){let rt=$s(Z.statements);if(rt&&$i(rt))return!0}return!1}function Ao(){return lr(t.createThis(),8)}function da(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(Gl(),t.createNull()),t.createFunctionApplyCall(Gl(),Ao(),t.createIdentifier("arguments"))),Ao())}function Ba(Z){if(!Z.dotDotDotToken)return $o(Z.name)?Rr(at(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(Z),void 0,void 0,void 0),Z),Z):Z.initializer?Rr(at(t.createParameterDeclaration(void 0,void 0,Z.name,void 0,void 0,void 0),Z),Z):Z}function vn(Z){return Z.initializer!==void 0||$o(Z.name)}function kn(Z,rt){if(!gt(rt.parameters,vn))return!1;let wt=!1;for(let zt of rt.parameters){let{name:O,initializer:Se,dotDotDotToken:nt}=zt;nt||($o(O)?wt=Be(Z,zt,O,Se)||wt:Se&&(ct(Z,zt,O,Se),wt=!0))}return wt}function Be(Z,rt,wt,zt){return wt.elements.length>0?(uT(Z,lr(t.createVariableStatement(void 0,t.createVariableDeclarationList(rS(rt,ee,e,0,t.getGeneratedNameForNode(rt)))),2097152)),!0):zt?(uT(Z,lr(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(rt),R.checkDefined(Qe(zt,ee,ht)))),2097152)),!0):!1}function ct(Z,rt,wt,zt){zt=R.checkDefined(Qe(zt,ee,ht));let O=t.createIfStatement(t.createTypeCheck(t.cloneNode(wt),"undefined"),lr(at(t.createBlock([t.createExpressionStatement(lr(at(t.createAssignment(lr(ja(at(t.cloneNode(wt),wt),wt.parent),96),lr(zt,96|za(zt)|3072)),rt),3072))]),rt),3905));Kd(O),at(O,rt),lr(O,2101056),uT(Z,O)}function lt(Z,rt){return!!(Z&&Z.dotDotDotToken&&!rt)}function Dt(Z,rt,wt){let zt=[],O=$s(rt.parameters);if(!lt(O,wt))return!1;let Se=O.name.kind===80?ja(at(t.cloneNode(O.name),O.name),O.name.parent):t.createTempVariable(void 0);lr(Se,96);let nt=O.name.kind===80?t.cloneNode(O.name):Se,jt=rt.parameters.length-1,Zn=t.createLoopVariable();zt.push(lr(at(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Se,void 0,void 0,t.createArrayLiteralExpression([]))])),O),2097152));let ii=t.createForStatement(at(t.createVariableDeclarationList([t.createVariableDeclaration(Zn,void 0,void 0,t.createNumericLiteral(jt))]),O),at(t.createLessThan(Zn,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),O),at(t.createPostfixIncrement(Zn),O),t.createBlock([Kd(at(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(nt,jt===0?Zn:t.createSubtract(Zn,t.createNumericLiteral(jt))),t.createElementAccessExpression(t.createIdentifier("arguments"),Zn))),O))]));return lr(ii,2097152),Kd(ii),zt.push(ii),O.name.kind!==80&&zt.push(lr(at(t.createVariableStatement(void 0,t.createVariableDeclarationList(rS(O,ee,e,0,nt))),O),2097152)),jV(Z,zt),!0}function se(Z,rt){return S&131072&&rt.kind!==219?(ke(Z,rt,t.createThis()),!0):!1}function ke(Z,rt,wt){Ru();let zt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ne(),void 0,void 0,wt)]));lr(zt,2100224),Da(zt,rt),uT(Z,zt)}function st(Z,rt){if(S&32768){let wt;switch(rt.kind){case 219:return Z;case 174:case 177:case 178:wt=t.createVoidZero();break;case 176:wt=t.createPropertyAccessExpression(lr(t.createThis(),8),"constructor");break;case 262:case 218:wt=t.createConditionalExpression(t.createLogicalAnd(lr(t.createThis(),8),t.createBinaryExpression(lr(t.createThis(),8),104,t.getLocalName(rt))),void 0,t.createPropertyAccessExpression(lr(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return R.failBadSyntaxKind(rt)}let zt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,wt)]));lr(zt,2100224),uT(Z,zt)}return Z}function G(Z,rt){for(let wt of rt.members)switch(wt.kind){case 240:Z.push(et(wt));break;case 174:Z.push(Tt(cg(rt,wt),wt,rt));break;case 177:case 178:let zt=AT(rt.members,wt);wt===zt.firstAccessor&&Z.push(He(cg(rt,wt),zt,rt));break;case 176:case 175:break;default:R.failBadSyntaxKind(wt,y&&y.fileName);break}}function et(Z){return at(t.createEmptyStatement(),Z)}function Tt(Z,rt,wt){let zt=C_(rt),O=Fy(rt),Se=un(rt,rt,void 0,wt),nt=Qe(rt.name,ee,rc);R.assert(nt);let jt;if(!Ki(nt)&&nP(e.getCompilerOptions())){let ii=Ya(nt)?nt.expression:Fe(nt)?t.createStringLiteral(Vi(nt.escapedText)):nt;jt=t.createObjectDefinePropertyCall(Z,ii,t.createPropertyDescriptor({value:Se,enumerable:!1,writable:!0,configurable:!0}))}else{let ii=BT(t,Z,nt,rt.name);jt=t.createAssignment(ii,Se)}lr(Se,3072),Da(Se,O);let Zn=at(t.createExpressionStatement(jt),rt);return Rr(Zn,rt),ic(Zn,zt),lr(Zn,96),Zn}function He(Z,rt,wt){let zt=t.createExpressionStatement(pt(Z,rt,wt,!1));return lr(zt,3072),Da(zt,Fy(rt.firstAccessor)),zt}function pt(Z,{firstAccessor:rt,getAccessor:wt,setAccessor:zt},O,Se){let nt=ja(at(t.cloneNode(Z),Z),Z.parent);lr(nt,3136),Da(nt,rt.name);let jt=Qe(rt.name,ee,rc);if(R.assert(jt),Ki(jt))return R.failBadSyntaxKind(jt,"Encountered unhandled private identifier while transforming ES2015.");let Zn=gH(t,jt);lr(Zn,3104),Da(Zn,rt.name);let ii=[];if(wt){let no=un(wt,void 0,void 0,O);Da(no,Fy(wt)),lr(no,1024);let ka=t.createPropertyAssignment("get",no);ic(ka,C_(wt)),ii.push(ka)}if(zt){let no=un(zt,void 0,void 0,O);Da(no,Fy(zt)),lr(no,1024);let ka=t.createPropertyAssignment("set",no);ic(ka,C_(zt)),ii.push(ka)}ii.push(t.createPropertyAssignment("enumerable",wt||zt?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));let Yr=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[nt,Zn,t.createObjectLiteralExpression(ii,!0)]);return Se&&Kd(Yr),Yr}function Ft(Z){Z.transformFlags&16384&&!(S&16384)&&(S|=131072);let rt=D;D=void 0;let wt=K(15232,66),zt=t.createFunctionExpression(void 0,void 0,void 0,void 0,Il(Z.parameters,ee,e),void 0,U(Z));return at(zt,Z),Rr(zt,Z),lr(zt,16),Y(wt,0,0),D=rt,zt}function hn(Z){let rt=za(Z)&524288?K(32662,69):K(32670,65),wt=D;D=void 0;let zt=Il(Z.parameters,ee,e),O=U(Z),Se=S&32768?t.getLocalName(Z):Z.name;return Y(rt,229376,0),D=wt,t.updateFunctionExpression(Z,void 0,Z.asteriskToken,Se,void 0,zt,void 0,O)}function dn(Z){let rt=D;D=void 0;let wt=K(32670,65),zt=Il(Z.parameters,ee,e),O=U(Z),Se=S&32768?t.getLocalName(Z):Z.name;return Y(wt,229376,0),D=rt,t.updateFunctionDeclaration(Z,zn(Z.modifiers,ee,Ta),Z.asteriskToken,Se,void 0,zt,void 0,O)}function un(Z,rt,wt,zt){let O=D;D=void 0;let Se=zt&&di(zt)&&!na(Z)?K(32670,73):K(32670,65),nt=Il(Z.parameters,ee,e),jt=U(Z);return S&32768&&!wt&&(Z.kind===262||Z.kind===218)&&(wt=t.getGeneratedNameForNode(Z)),Y(Se,229376,0),D=O,Rr(at(t.createFunctionExpression(void 0,Z.asteriskToken,wt,void 0,nt,void 0,jt),rt),Z)}function U(Z){let rt=!1,wt=!1,zt,O,Se=[],nt=[],jt=Z.body,Zn;if(o(),Ho(jt)&&(Zn=t.copyStandardPrologue(jt.statements,Se,0,!1),Zn=t.copyCustomPrologue(jt.statements,nt,Zn,ee,PF),Zn=t.copyCustomPrologue(jt.statements,nt,Zn,ee,MF)),rt=kn(nt,Z)||rt,rt=Dt(nt,Z,!1)||rt,Ho(jt))Zn=t.copyCustomPrologue(jt.statements,nt,Zn,ee),zt=jt.statements,Hr(nt,zn(jt.statements,ee,Hi,Zn)),!rt&&jt.multiLine&&(rt=!0);else{R.assert(Z.kind===219),zt=g6(jt,-1);let Yr=Z.equalsGreaterThanToken;!Js(Yr)&&!Js(jt)&&(rk(Yr,jt,y)?wt=!0:rt=!0);let no=Qe(jt,ee,ht),ka=t.createReturnStatement(no);at(ka,jt),Yoe(ka,jt),lr(ka,2880),nt.push(ka),O=jt}if(t.mergeLexicalEnvironment(Se,s()),st(Se,Z),se(Se,Z),gt(Se)&&(rt=!0),nt.unshift(...Se),Ho(jt)&&Vm(nt,jt.statements))return jt;let ii=t.createBlock(at(t.createNodeArray(nt),zt),rt);return at(ii,Z.body),!rt&&wt&&lr(ii,1),O&&Xoe(ii,20,O),Rr(ii,Z.body),ii}function Me(Z,rt){if(rt)return Sn(Z,ee,e);let wt=S&256?K(7104,512):K(6976,128),zt=Sn(Z,ee,e);return Y(wt,0,0),zt}function Pt(Z){return Sn(Z,me,e)}function k(Z,rt){return Sn(Z,rt?me:ee,e)}function ie(Z,rt){return wy(Z)?UT(Z,ee,e,0,!rt):Z.operatorToken.kind===28?t.updateBinaryExpression(Z,R.checkDefined(Qe(Z.left,me,ht)),Z.operatorToken,R.checkDefined(Qe(Z.right,rt?me:ee,ht))):Sn(Z,ee,e)}function H(Z,rt){if(rt)return Sn(Z,me,e);let wt;for(let O=0;OZn.name)),jt=zt?t.createYieldExpression(t.createToken(42),lr(nt,8388608)):nt;if(Se)O.push(t.createExpressionStatement(jt)),Ds(rt.loopOutParameters,1,0,O);else{let Zn=t.createUniqueName("state"),ii=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Zn,void 0,void 0,jt)]));if(O.push(ii),Ds(rt.loopOutParameters,1,0,O),rt.nonLocalJumps&8){let Yr;wt?(wt.nonLocalJumps|=8,Yr=t.createReturnStatement(Zn)):Yr=t.createReturnStatement(t.createPropertyAccessExpression(Zn,"value")),O.push(t.createIfStatement(t.createTypeCheck(Zn,"object"),Yr))}if(rt.nonLocalJumps&2&&O.push(t.createIfStatement(t.createStrictEquality(Zn,t.createStringLiteral("break")),t.createBreakStatement())),rt.labeledNonLocalBreaks||rt.labeledNonLocalContinues){let Yr=[];Pe(rt.labeledNonLocalBreaks,!0,Zn,wt,Yr),Pe(rt.labeledNonLocalContinues,!1,Zn,wt,Yr),O.push(t.createSwitchStatement(Zn,t.createCaseBlock(Yr)))}}return O}function $(Z,rt,wt,zt){rt?(Z.labeledNonLocalBreaks||(Z.labeledNonLocalBreaks=new Map),Z.labeledNonLocalBreaks.set(wt,zt)):(Z.labeledNonLocalContinues||(Z.labeledNonLocalContinues=new Map),Z.labeledNonLocalContinues.set(wt,zt))}function Pe(Z,rt,wt,zt,O){Z&&Z.forEach((Se,nt)=>{let jt=[];if(!zt||zt.labels&&zt.labels.get(nt)){let Zn=t.createIdentifier(nt);jt.push(rt?t.createBreakStatement(Zn):t.createContinueStatement(Zn))}else $(zt,rt,nt,Se),jt.push(t.createReturnStatement(wt));O.push(t.createCaseClause(t.createStringLiteral(Se),jt))})}function yt(Z,rt,wt,zt,O){let Se=rt.name;if($o(Se))for(let nt of Se.elements)Gc(nt)||yt(Z,nt,wt,zt,O);else{wt.push(t.createParameterDeclaration(void 0,void 0,Se));let nt=p.getNodeCheckFlags(rt);if(nt&65536||O){let jt=t.createUniqueName("out_"+yr(Se)),Zn=0;nt&65536&&(Zn|=1),kT(Z)&&(Z.initializer&&p.isBindingCapturedByNode(Z.initializer,rt)&&(Zn|=2),(Z.condition&&p.isBindingCapturedByNode(Z.condition,rt)||Z.incrementor&&p.isBindingCapturedByNode(Z.incrementor,rt))&&(Zn|=1)),zt.push({flags:Zn,originalName:Se,outParamName:jt})}}}function cn(Z,rt,wt,zt){let O=rt.properties,Se=O.length;for(let nt=zt;ntMl(Gu)&&!!Va(Gu.declarationList.declarations).initializer,zt=D;D=void 0;let O=zn(rt.statements,ge,Hi);D=zt;let Se=jr(O,wt),nt=jr(O,Gu=>!wt(Gu)),Zn=ta(Va(Se),Ml).declarationList.declarations[0],ii=Yl(Zn.initializer),Yr=ri(ii,Pc);!Yr&&ur(ii)&&ii.operatorToken.kind===28&&(Yr=ri(ii.left,Pc));let no=ta(Yr?Yl(Yr.right):ii,ra),ka=ta(Yl(no.expression),Ms),wa=ka.body.statements,wl=0,dd=-1,Ic=[];if(Yr){let Gu=ri(wa[wl],Qc);Gu&&(Ic.push(Gu),wl++),Ic.push(wa[wl]),wl++,Ic.push(t.createExpressionStatement(t.createAssignment(Yr.left,ta(Zn.name,Fe))))}for(;!Sm(Iy(wa,dd));)dd--;Hr(Ic,wa,wl,dd),dd<-1&&Hr(Ic,wa,dd+1);let Tp=ri(Iy(wa,dd),Sm);for(let Gu of nt)Sm(Gu)&&Tp?.expression&&!Fe(Tp.expression)?Ic.push(Tp):Ic.push(Gu);return Hr(Ic,Se,1),t.restoreOuterExpressions(Z.expression,t.restoreOuterExpressions(Zn.initializer,t.restoreOuterExpressions(Yr&&Yr.right,t.updateCallExpression(no,t.restoreOuterExpressions(no.expression,t.updateFunctionExpression(ka,void 0,void 0,void 0,void 0,ka.parameters,void 0,t.updateBlock(ka.body,Ic))),void 0,no.arguments))))}function wc(Z,rt){if(Z.transformFlags&32768||Z.expression.kind===108||wu(Yl(Z.expression))){let{target:wt,thisArg:zt}=t.createCallBinding(Z.expression,l);Z.expression.kind===108&&lr(zt,8);let O;if(Z.transformFlags&32768?O=t.createFunctionApplyCall(R.checkDefined(Qe(wt,q,ht)),Z.expression.kind===108?zt:R.checkDefined(Qe(zt,ee,ht)),mu(Z.arguments,!0,!1,!1)):O=at(t.createFunctionCallCall(R.checkDefined(Qe(wt,q,ht)),Z.expression.kind===108?zt:R.checkDefined(Qe(zt,ee,ht)),zn(Z.arguments,ee,ht)),Z),Z.expression.kind===108){let Se=t.createLogicalOr(O,Ao());O=rt?t.createAssignment(ne(),Se):Se}return Rr(O,Z)}return mT(Z)&&(S|=131072),Sn(Z,ee,e)}function im(Z){if(gt(Z.arguments,qm)){let{target:rt,thisArg:wt}=t.createCallBinding(t.createPropertyAccessExpression(Z.expression,"bind"),l);return t.createNewExpression(t.createFunctionApplyCall(R.checkDefined(Qe(rt,ee,ht)),wt,mu(t.createNodeArray([t.createVoidZero(),...Z.arguments]),!0,!1,!1)),void 0,[])}return Sn(Z,ee,e)}function mu(Z,rt,wt,zt){let O=Z.length,Se=pm(MG(Z,Re,(ii,Yr,no,ka)=>Yr(ii,wt,zt&&ka===O)));if(Se.length===1){let ii=Se[0];if(rt&&!d.downlevelIteration||mU(ii.expression)||oP(ii.expression,"___spreadArray"))return ii.expression}let nt=r(),jt=Se[0].kind!==0,Zn=jt?t.createArrayLiteralExpression():Se[0].expression;for(let ii=jt?0:1;ii0&&zt.push(t.createStringLiteral(wt.literal.text)),rt=t.createCallExpression(t.createPropertyAccessExpression(rt,"concat"),void 0,zt)}return at(rt,Z)}function Gl(){return t.createUniqueName("_super",48)}function Zl(Z,rt){let wt=S&8&&!rt?t.createPropertyAccessExpression(Rr(Gl(),Z),"prototype"):Gl();return Rr(wt,Z),ic(wt,Z),Da(wt,Z),wt}function Hc(Z){return Z.keywordToken===105&&Z.name.escapedText==="target"?(S|=32768,t.createUniqueName("_newTarget",48)):Z}function cf(Z,rt,wt){if(w&1&&Yo(rt)){let zt=K(32670,za(rt)&16?81:65);m(Z,rt,wt),Y(zt,0,0);return}m(Z,rt,wt)}function zu(){w&2||(w|=2,e.enableSubstitution(80))}function Ru(){w&1||(w|=1,e.enableSubstitution(110),e.enableEmitNotification(176),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(219),e.enableEmitNotification(218),e.enableEmitNotification(262))}function Pf(Z,rt){return rt=h(Z,rt),Z===1?Ug(rt):Fe(rt)?z_(rt):rt}function z_(Z){if(w&2&&!yH(Z)){let rt=Ro(Z,Fe);if(rt&&Ih(rt))return at(t.getGeneratedNameForNode(rt),Z)}return Z}function Ih(Z){switch(Z.parent.kind){case 208:case 263:case 266:case 260:return Z.parent.name===Z&&p.isDeclarationWithCollidingName(Z.parent)}return!1}function Ug(Z){switch(Z.kind){case 80:return Wd(Z);case 110:return Sp(Z)}return Z}function Wd(Z){if(w&2&&!yH(Z)){let rt=p.getReferencedDeclarationWithCollidingName(Z);if(rt&&!(di(rt)&&Hg(rt,Z)))return at(t.getGeneratedNameForNode(No(rt)),Z)}return Z}function Hg(Z,rt){let wt=Ro(rt);if(!wt||wt===Z||wt.end<=Z.pos||wt.pos>=Z.end)return!1;let zt=ph(Z);for(;wt;){if(wt===zt||wt===Z)return!1;if(Xc(wt)&&wt.parent===Z)return!0;wt=wt.parent}return!1}function Sp(Z){return w&1&&S&16?at(ne(),Z):Z}function cg(Z,rt){return na(rt)?t.getInternalName(Z):t.createPropertyAccessExpression(t.getInternalName(Z),"prototype")}function Bu(Z,rt){if(!Z||!rt||gt(Z.parameters))return!1;let wt=Jc(Z.body.statements);if(!wt||!Js(wt)||wt.kind!==244)return!1;let zt=wt.expression;if(!Js(zt)||zt.kind!==213)return!1;let O=zt.expression;if(!Js(O)||O.kind!==108)return!1;let Se=rh(zt.arguments);if(!Se||!Js(Se)||Se.kind!==230)return!1;let nt=Se.expression;return Fe(nt)&&nt.escapedText==="arguments"}}var rVe=bt({"src/compiler/transformers/es2015.ts"(){"use strict";Zo()}});function Lle(e){let{factory:t}=e,r=e.getCompilerOptions(),i,o;(r.jsx===1||r.jsx===3)&&(i=e.onEmitNode,e.onEmitNode=d,e.enableEmitNotification(286),e.enableEmitNotification(287),e.enableEmitNotification(285),o=[]);let s=e.onSubstituteNode;return e.onSubstituteNode=p,e.enableSubstitution(211),e.enableSubstitution(303),Im(e,l);function l(E){return E}function d(E,S,A){switch(S.kind){case 286:case 287:case 285:let N=S.tagName;o[kd(N)]=!0;break}i(E,S,A)}function p(E,S){return S.id&&o&&o[S.id]?s(E,S):(S=s(E,S),wr(S)?h(S):mc(S)?m(S):S)}function h(E){if(Ki(E.name))return E;let S=y(E.name);return S?at(t.createElementAccessExpression(E.expression,S),E):E}function m(E){let S=Fe(E.name)&&y(E.name);return S?t.updatePropertyAssignment(E,S,E.initializer):E}function y(E){let S=tE(E);if(S!==void 0&&S>=83&&S<=118)return at(t.createStringLiteralFromNode(E),E)}}var iVe=bt({"src/compiler/transformers/es5.ts"(){"use strict";Zo()}});function oVe(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function kle(e){let{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistFunctionDeclaration:s,hoistVariableDeclaration:l}=e,d=e.getCompilerOptions(),p=rs(d),h=e.getEmitResolver(),m=e.onSubstituteNode;e.onSubstituteNode=Pt;let y,E,S,A,N,D,w,j,K,Y,B=1,ce,z,ee,me,ge=0,q=0,J,re,pe,xe,fe,ne,he,Ce;return Im(e,Ge);function Ge(Re){if(Re.isDeclarationFile||!(Re.transformFlags&2048))return Re;let Lt=Sn(Re,ve,e);return Wg(Lt,e.readEmitHelpers()),Lt}function ve(Re){let Lt=Re.transformFlags;return A?Ie(Re):S?De(Re):Ws(Re)&&Re.asteriskToken?Et(Re):Lt&2048?Sn(Re,ve,e):Re}function Ie(Re){switch(Re.kind){case 246:return da(Re);case 247:return vn(Re);case 255:return pt(Re);case 256:return hn(Re);default:return De(Re)}}function De(Re){switch(Re.kind){case 262:return be(Re);case 218:return ze(Re);case 177:case 178:return tt(Re);case 243:return _t(Re);case 248:return Be(Re);case 249:return lt(Re);case 252:return st(Re);case 251:return se(Re);case 253:return et(Re);default:return Re.transformFlags&1048576?Le(Re):Re.transformFlags&4196352?Sn(Re,ve,e):Re}}function Le(Re){switch(Re.kind){case 226:return Je(Re);case 361:return Dn(Re);case 227:return pn(Re);case 229:return Yt(Re);case 209:return qt(Re);case 210:return uo(Re);case 212:return Li(Re);case 213:return Eo(Re);case 214:return Qn(Re);default:return Sn(Re,ve,e)}}function Et(Re){switch(Re.kind){case 262:return be(Re);case 218:return ze(Re);default:return R.failBadSyntaxKind(Re)}}function be(Re){if(Re.asteriskToken)Re=Rr(at(t.createFunctionDeclaration(Re.modifiers,void 0,Re.name,void 0,Il(Re.parameters,ve,e),void 0,Wt(Re.body)),Re),Re);else{let Lt=S,Un=A;S=!1,A=!1,Re=Sn(Re,ve,e),S=Lt,A=Un}if(S){s(Re);return}else return Re}function ze(Re){if(Re.asteriskToken)Re=Rr(at(t.createFunctionExpression(void 0,void 0,Re.name,void 0,Il(Re.parameters,ve,e),void 0,Wt(Re.body)),Re),Re);else{let Lt=S,Un=A;S=!1,A=!1,Re=Sn(Re,ve,e),S=Lt,A=Un}return Re}function tt(Re){let Lt=S,Un=A;return S=!1,A=!1,Re=Sn(Re,ve,e),S=Lt,A=Un,Re}function Wt(Re){let Lt=[],Un=S,go=A,qo=N,Qo=D,Ql=w,gc=j,sl=K,_l=Y,Gl=B,Zl=ce,Hc=z,cf=ee,zu=me;S=!0,A=!1,N=void 0,D=void 0,w=void 0,j=void 0,K=void 0,Y=void 0,B=1,ce=void 0,z=void 0,ee=void 0,me=t.createTempVariable(void 0),i();let Ru=t.copyPrologue(Re.statements,Lt,!1,ve);Ur(Re.statements,Ru);let Pf=$();return qh(Lt,o()),Lt.push(t.createReturnStatement(Pf)),S=Un,A=go,N=qo,D=Qo,w=Ql,j=gc,K=sl,Y=_l,B=Gl,ce=Zl,z=Hc,ee=cf,me=zu,at(t.createBlock(Lt,Re.multiLine),Re)}function _t(Re){if(Re.transformFlags&1048576){si(Re.declarationList);return}else{if(za(Re)&2097152)return Re;for(let Un of Re.declarationList.declarations)l(Un.name);let Lt=ON(Re.declarationList);return Lt.length===0?void 0:Da(t.createExpressionStatement(t.inlineExpressions(mn(Lt,yi))),Re)}}function Je(Re){let Lt=Nj(Re);switch(Lt){case 0:return Zt(Re);case 1:return ft(Re);default:return R.assertNever(Lt)}}function ft(Re){let{left:Lt,right:Un}=Re;if(U(Un)){let go;switch(Lt.kind){case 211:go=t.updatePropertyAccessExpression(Lt,H(R.checkDefined(Qe(Lt.expression,ve,Yu))),Lt.name);break;case 212:go=t.updateElementAccessExpression(Lt,H(R.checkDefined(Qe(Lt.expression,ve,Yu))),H(R.checkDefined(Qe(Lt.argumentExpression,ve,ht))));break;default:go=R.checkDefined(Qe(Lt,ve,ht));break}let qo=Re.operatorToken.kind;return PP(qo)?at(t.createAssignment(go,at(t.createBinaryExpression(H(go),MP(qo),R.checkDefined(Qe(Un,ve,ht))),Re)),Re):t.updateBinaryExpression(Re,go,Re.operatorToken,R.checkDefined(Qe(Un,ve,ht)))}return Sn(Re,ve,e)}function Zt(Re){return U(Re.right)?Kie(Re.operatorToken.kind)?Kn(Re):Re.operatorToken.kind===28?en(Re):t.updateBinaryExpression(Re,H(R.checkDefined(Qe(Re.left,ve,ht))),Re.operatorToken,R.checkDefined(Qe(Re.right,ve,ht))):Sn(Re,ve,e)}function en(Re){let Lt=[];return Un(Re.left),Un(Re.right),t.inlineExpressions(Lt);function Un(go){ur(go)&&go.operatorToken.kind===28?(Un(go.left),Un(go.right)):(U(go)&&Lt.length>0&&(de(1,[t.createExpressionStatement(t.inlineExpressions(Lt))]),Lt=[]),Lt.push(R.checkDefined(Qe(go,ve,ht))))}}function Dn(Re){let Lt=[];for(let Un of Re.elements)ur(Un)&&Un.operatorToken.kind===28?Lt.push(en(Un)):(U(Un)&&Lt.length>0&&(de(1,[t.createExpressionStatement(t.inlineExpressions(Lt))]),Lt=[]),Lt.push(R.checkDefined(Qe(Un,ve,ht))));return t.inlineExpressions(Lt)}function Kn(Re){let Lt=We(),Un=ue();return al(Un,R.checkDefined(Qe(Re.left,ve,ht)),Re.left),Re.operatorToken.kind===56?Bs(Lt,Un,Re.left):tn(Lt,Un,Re.left),al(Un,R.checkDefined(Qe(Re.right,ve,ht)),Re.right),Ne(Lt),Un}function pn(Re){if(U(Re.whenTrue)||U(Re.whenFalse)){let Lt=We(),Un=We(),go=ue();return Bs(Lt,R.checkDefined(Qe(Re.condition,ve,ht)),Re.condition),al(go,R.checkDefined(Qe(Re.whenTrue,ve,ht)),Re.whenTrue),Mo(Un),Ne(Lt),al(go,R.checkDefined(Qe(Re.whenFalse,ve,ht)),Re.whenFalse),Ne(Un),go}return Sn(Re,ve,e)}function Yt(Re){let Lt=We(),Un=Qe(Re.expression,ve,ht);if(Re.asteriskToken){let go=za(Re.expression)&8388608?Un:at(r().createValuesHelper(Un),Re);ed(go,Re)}else cd(Un,Re);return Ne(Lt),Nf(Re)}function qt(Re){return hi(Re.elements,void 0,void 0,Re.multiLine)}function hi(Re,Lt,Un,go){let qo=Me(Re),Qo;if(qo>0){Qo=ue();let sl=zn(Re,ve,ht,0,qo);al(Qo,t.createArrayLiteralExpression(Lt?[Lt,...sl]:sl)),Lt=void 0}let Ql=nu(Re,gc,[],qo);return Qo?t.createArrayConcatCall(Qo,[t.createArrayLiteralExpression(Ql,go)]):at(t.createArrayLiteralExpression(Lt?[Lt,...Ql]:Ql,go),Un);function gc(sl,_l){if(U(_l)&&sl.length>0){let Gl=Qo!==void 0;Qo||(Qo=ue()),al(Qo,Gl?t.createArrayConcatCall(Qo,[t.createArrayLiteralExpression(sl,go)]):t.createArrayLiteralExpression(Lt?[Lt,...sl]:sl,go)),Lt=void 0,sl=[]}return sl.push(R.checkDefined(Qe(_l,ve,ht))),sl}}function uo(Re){let Lt=Re.properties,Un=Re.multiLine,go=Me(Lt),qo=ue();al(qo,t.createObjectLiteralExpression(zn(Lt,ve,Ng,0,go),Un));let Qo=nu(Lt,Ql,[],go);return Qo.push(Un?Kd(ja(at(t.cloneNode(qo),qo),qo.parent)):qo),t.inlineExpressions(Qo);function Ql(gc,sl){U(sl)&&gc.length>0&&(xl(t.createExpressionStatement(t.inlineExpressions(gc))),gc=[]);let _l=kae(t,Re,sl,qo),Gl=Qe(_l,ve,ht);return Gl&&(Un&&Kd(Gl),gc.push(Gl)),gc}}function Li(Re){return U(Re.argumentExpression)?t.updateElementAccessExpression(Re,H(R.checkDefined(Qe(Re.expression,ve,Yu))),R.checkDefined(Qe(Re.argumentExpression,ve,ht))):Sn(Re,ve,e)}function Eo(Re){if(!Op(Re)&&gn(Re.arguments,U)){let{target:Lt,thisArg:Un}=t.createCallBinding(Re.expression,l,p,!0);return Rr(at(t.createFunctionApplyCall(H(R.checkDefined(Qe(Lt,ve,Yu))),Un,hi(Re.arguments)),Re),Re)}return Sn(Re,ve,e)}function Qn(Re){if(gn(Re.arguments,U)){let{target:Lt,thisArg:Un}=t.createCallBinding(t.createPropertyAccessExpression(Re.expression,"bind"),l);return Rr(at(t.createNewExpression(t.createFunctionApplyCall(H(R.checkDefined(Qe(Lt,ve,ht))),Un,hi(Re.arguments,t.createVoidZero())),void 0,[]),Re),Re)}return Sn(Re,ve,e)}function Ur(Re,Lt=0){let Un=Re.length;for(let go=Lt;go0)break;qo.push(yi(Ql))}qo.length&&(xl(t.createExpressionStatement(t.inlineExpressions(qo))),go+=qo.length,qo=[])}}function yi(Re){return Da(t.createAssignment(Da(t.cloneNode(Re.name),Re.name),R.checkDefined(Qe(Re.initializer,ve,ht))),Re)}function $i(Re){if(U(Re))if(U(Re.thenStatement)||U(Re.elseStatement)){let Lt=We(),Un=Re.elseStatement?We():void 0;Bs(Re.elseStatement?Un:Lt,R.checkDefined(Qe(Re.expression,ve,ht)),Re.expression),Er(Re.thenStatement),Re.elseStatement&&(Mo(Lt),Ne(Un),Er(Re.elseStatement)),Ne(Lt)}else xl(Qe(Re,ve,Hi));else xl(Qe(Re,ve,Hi))}function Ao(Re){if(U(Re)){let Lt=We(),Un=We();Pi(Lt),Ne(Un),Er(Re.statement),Ne(Lt),tn(Un,R.checkDefined(Qe(Re.expression,ve,ht))),Ri()}else xl(Qe(Re,ve,Hi))}function da(Re){return A?(ho(),Re=Sn(Re,ve,e),Ri(),Re):Sn(Re,ve,e)}function Ba(Re){if(U(Re)){let Lt=We(),Un=Pi(Lt);Ne(Lt),Bs(Un,R.checkDefined(Qe(Re.expression,ve,ht))),Er(Re.statement),Mo(Lt),Ri()}else xl(Qe(Re,ve,Hi))}function vn(Re){return A?(ho(),Re=Sn(Re,ve,e),Ri(),Re):Sn(Re,ve,e)}function kn(Re){if(U(Re)){let Lt=We(),Un=We(),go=Pi(Un);if(Re.initializer){let qo=Re.initializer;Vc(qo)?si(qo):xl(at(t.createExpressionStatement(R.checkDefined(Qe(qo,ve,ht))),qo))}Ne(Lt),Re.condition&&Bs(go,R.checkDefined(Qe(Re.condition,ve,ht))),Er(Re.statement),Ne(Un),Re.incrementor&&xl(at(t.createExpressionStatement(R.checkDefined(Qe(Re.incrementor,ve,ht))),Re.incrementor)),Mo(Lt),Ri()}else xl(Qe(Re,ve,Hi))}function Be(Re){A&&ho();let Lt=Re.initializer;if(Lt&&Vc(Lt)){for(let go of Lt.declarations)l(go.name);let Un=ON(Lt);Re=t.updateForStatement(Re,Un.length>0?t.inlineExpressions(mn(Un,yi)):void 0,Qe(Re.condition,ve,ht),Qe(Re.incrementor,ve,ht),Au(Re.statement,ve,e))}else Re=Sn(Re,ve,e);return A&&Ri(),Re}function ct(Re){if(U(Re)){let Lt=ue(),Un=ue(),go=ue(),qo=t.createLoopVariable(),Qo=Re.initializer;l(qo),al(Lt,R.checkDefined(Qe(Re.expression,ve,ht))),al(Un,t.createArrayLiteralExpression()),xl(t.createForInStatement(go,Lt,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(Un,"push"),void 0,[go])))),al(qo,t.createNumericLiteral(0));let Ql=We(),gc=We(),sl=Pi(gc);Ne(Ql),Bs(sl,t.createLessThan(qo,t.createPropertyAccessExpression(Un,"length"))),al(go,t.createElementAccessExpression(Un,qo)),Bs(gc,t.createBinaryExpression(go,103,Lt));let _l;if(Vc(Qo)){for(let Gl of Qo.declarations)l(Gl.name);_l=t.cloneNode(Qo.declarations[0].name)}else _l=R.checkDefined(Qe(Qo,ve,ht)),R.assert(Yu(_l));al(_l,go),Er(Re.statement),Ne(gc),xl(t.createExpressionStatement(t.createPostfixIncrement(qo))),Mo(Ql),Ri()}else xl(Qe(Re,ve,Hi))}function lt(Re){A&&ho();let Lt=Re.initializer;if(Vc(Lt)){for(let Un of Lt.declarations)l(Un.name);Re=t.updateForInStatement(Re,Lt.declarations[0].name,R.checkDefined(Qe(Re.expression,ve,ht)),R.checkDefined(Qe(Re.statement,ve,Hi,t.liftToBlock)))}else Re=Sn(Re,ve,e);return A&&Ri(),Re}function Dt(Re){let Lt=sa(Re.label?yr(Re.label):void 0);Lt>0?Mo(Lt,Re):xl(Re)}function se(Re){if(A){let Lt=sa(Re.label&&yr(Re.label));if(Lt>0)return Na(Lt,Re)}return Sn(Re,ve,e)}function ke(Re){let Lt=mo(Re.label?yr(Re.label):void 0);Lt>0?Mo(Lt,Re):xl(Re)}function st(Re){if(A){let Lt=mo(Re.label&&yr(Re.label));if(Lt>0)return Na(Lt,Re)}return Sn(Re,ve,e)}function G(Re){Ep(Qe(Re.expression,ve,ht),Re)}function et(Re){return ul(Qe(Re.expression,ve,ht),Re)}function Tt(Re){U(Re)?(wn(H(R.checkDefined(Qe(Re.expression,ve,ht)))),Er(Re.statement),Bn()):xl(Qe(Re,ve,Hi))}function He(Re){if(U(Re.caseBlock)){let Lt=Re.caseBlock,Un=Lt.clauses.length,go=Io(),qo=H(R.checkDefined(Qe(Re.expression,ve,ht))),Qo=[],Ql=-1;for(let _l=0;_l0)break;sl.push(t.createCaseClause(R.checkDefined(Qe(Zl.expression,ve,ht)),[Na(Qo[Gl],Zl.expression)]))}else _l++}sl.length&&(xl(t.createSwitchStatement(qo,t.createCaseBlock(sl))),gc+=sl.length,sl=[]),_l>0&&(gc+=_l,_l=0)}Ql>=0?Mo(Qo[Ql]):Mo(go);for(let _l=0;_l=0;Un--){let go=j[Un];if(zs(go)){if(go.labelText===Re)return!0}else break}return!1}function mo(Re){if(j)if(Re)for(let Lt=j.length-1;Lt>=0;Lt--){let Un=j[Lt];if(zs(Un)&&Un.labelText===Re)return Un.breakLabel;if(ls(Un)&&sd(Re,Lt-1))return Un.breakLabel}else for(let Lt=j.length-1;Lt>=0;Lt--){let Un=j[Lt];if(ls(Un))return Un.breakLabel}return 0}function sa(Re){if(j)if(Re)for(let Lt=j.length-1;Lt>=0;Lt--){let Un=j[Lt];if(ml(Un)&&sd(Re,Lt-1))return Un.continueLabel}else for(let Lt=j.length-1;Lt>=0;Lt--){let Un=j[Lt];if(ml(Un))return Un.continueLabel}return 0}function ld(Re){if(Re!==void 0&&Re>0){Y===void 0&&(Y=[]);let Lt=t.createNumericLiteral(Number.MAX_SAFE_INTEGER);return Y[Re]===void 0?Y[Re]=[Lt]:Y[Re].push(Lt),Lt}return t.createOmittedExpression()}function Es(Re){let Lt=t.createNumericLiteral(Re);return n4(Lt,3,oVe(Re)),Lt}function Na(Re,Lt){return R.assertLessThan(0,Re,"Invalid label"),at(t.createReturnStatement(t.createArrayLiteralExpression([Es(3),ld(Re)])),Lt)}function ul(Re,Lt){return at(t.createReturnStatement(t.createArrayLiteralExpression(Re?[Es(2),Re]:[Es(2)])),Lt)}function Nf(Re){return at(t.createCallExpression(t.createPropertyAccessExpression(me,"sent"),void 0,[]),Re)}function ac(){de(0)}function xl(Re){Re?de(1,[Re]):ac()}function al(Re,Lt,Un){de(2,[Re,Lt],Un)}function Mo(Re,Lt){de(3,[Re],Lt)}function tn(Re,Lt,Un){de(4,[Re,Lt],Un)}function Bs(Re,Lt,Un){de(5,[Re,Lt],Un)}function ed(Re,Lt){de(7,[Re],Lt)}function cd(Re,Lt){de(6,[Re],Lt)}function Ep(Re,Lt){de(8,[Re],Lt)}function Ds(Re,Lt){de(9,[Re],Lt)}function Ac(){de(10)}function de(Re,Lt,Un){ce===void 0&&(ce=[],z=[],ee=[]),K===void 0&&Ne(We());let go=ce.length;ce[go]=Re,z[go]=Lt,ee[go]=Un}function $(){ge=0,q=0,J=void 0,re=!1,pe=!1,xe=void 0,fe=void 0,ne=void 0,he=void 0,Ce=void 0;let Re=Pe();return r().createGeneratorHelper(lr(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,me)],void 0,t.createBlock(Re,Re.length>0)),1048576))}function Pe(){if(ce){for(let Re=0;Re=0;Lt--){let Un=Ce[Lt];fe=[t.createWithStatement(Un.expression,t.createBlock(fe))]}if(he){let{startLabel:Lt,catchLabel:Un,finallyLabel:go,endLabel:qo}=he;fe.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(me,"trys"),"push"),void 0,[t.createArrayLiteralExpression([ld(Lt),ld(Un),ld(go),ld(qo)])]))),he=void 0}Re&&fe.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(me,"label"),t.createNumericLiteral(q+1))))}xe.push(t.createCaseClause(t.createNumericLiteral(q),fe||[])),fe=void 0}function zr(Re){if(K)for(let Lt=0;Ltr.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(yr(Ne))),We),r.createVoidZero())));Tn(Me,Qe(D.externalHelpersImportDeclaration,J,Hi)),Hr(Me,zn(U.statements,J,Hi,k)),q(Me,!1),qh(Me,s());let ie=r.updateSourceFile(U,at(r.createNodeArray(Me),U.statements));return Wg(ie,e.readEmitHelpers()),ie}function ce(U){let Me=r.createIdentifier("define"),Pt=Hk(r,U,h,d),k=Jf(U)&&U,{aliasedModuleNames:ie,unaliasedModuleNames:H,importAliasNames:ue}=ee(U,!0),We=r.updateSourceFile(U,at(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(Me,void 0,[...Pt?[Pt]:[],r.createArrayLiteralExpression(k?Xe:[r.createStringLiteral("require"),r.createStringLiteral("exports"),...ie,...H]),k?k.statements.length?k.statements[0].expression:r.createObjectLiteralExpression():r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"require"),r.createParameterDeclaration(void 0,void 0,"exports"),...ue],void 0,ge(U))]))]),U.statements));return Wg(We,e.readEmitHelpers()),We}function z(U){let{aliasedModuleNames:Me,unaliasedModuleNames:Pt,importAliasNames:k}=ee(U,!1),ie=Hk(r,U,h,d),H=r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"factory")],void 0,at(r.createBlock([r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("module"),"object"),r.createTypeCheck(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),"object")),r.createBlock([r.createVariableStatement(void 0,[r.createVariableDeclaration("v",void 0,void 0,r.createCallExpression(r.createIdentifier("factory"),void 0,[r.createIdentifier("require"),r.createIdentifier("exports")]))]),lr(r.createIfStatement(r.createStrictInequality(r.createIdentifier("v"),r.createIdentifier("undefined")),r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),r.createIdentifier("v")))),1)]),r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("define"),"function"),r.createPropertyAccessExpression(r.createIdentifier("define"),"amd")),r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("define"),void 0,[...ie?[ie]:[],r.createArrayLiteralExpression([r.createStringLiteral("require"),r.createStringLiteral("exports"),...Me,...Pt]),r.createIdentifier("factory")]))])))],!0),void 0)),ue=r.updateSourceFile(U,at(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(H,void 0,[r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"require"),r.createParameterDeclaration(void 0,void 0,"exports"),...k],void 0,ge(U))]))]),U.statements));return Wg(ue,e.readEmitHelpers()),ue}function ee(U,Me){let Pt=[],k=[],ie=[];for(let H of U.amdDependencies)H.name?(Pt.push(r.createStringLiteral(H.path)),ie.push(r.createParameterDeclaration(void 0,void 0,H.name))):k.push(r.createStringLiteral(H.path));for(let H of D.externalImports){let ue=s1(r,H,N,h,p,d),We=WR(r,H,N);ue&&(Me&&We?(lr(We,8),Pt.push(ue),ie.push(r.createParameterDeclaration(void 0,void 0,We))):k.push(ue))}return{aliasedModuleNames:Pt,unaliasedModuleNames:k,importAliasNames:ie}}function me(U){if(Zc(U)||Xl(U)||!s1(r,U,N,h,p,d))return;let Me=WR(r,U,N),Pt=Eo(U,Me);if(Pt!==Me)return r.createExpressionStatement(r.createAssignment(Me,Pt))}function ge(U){o();let Me=[],Pt=r.copyPrologue(U.statements,Me,!d.noImplicitUseStrict,J);Y()&&Tn(Me,Dt()),Nn(D.exportedNames)&&Tn(Me,r.createExpressionStatement(nu(D.exportedNames,(ie,H)=>r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(yr(H))),ie),r.createVoidZero()))),Tn(Me,Qe(D.externalHelpersImportDeclaration,J,Hi)),y===2&&Hr(Me,to(D.externalImports,me)),Hr(Me,zn(U.statements,J,Hi,Pt)),q(Me,!0),qh(Me,s());let k=r.createBlock(Me,!0);return j&&VI(k,HIe),k}function q(U,Me){if(D.exportEquals){let Pt=Qe(D.exportEquals.expression,xe,ht);if(Pt)if(Me){let k=r.createReturnStatement(Pt);at(k,D.exportEquals),lr(k,3840),U.push(k)}else{let k=r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),Pt));at(k,D.exportEquals),lr(k,3072),U.push(k)}}}function J(U){switch(U.kind){case 272:return Qn(U);case 271:return Er(U);case 278:return on(U);case 277:return Ye(U);default:return re(U)}}function re(U){switch(U.kind){case 243:return si(U);case 262:return Ot(U);case 263:return In(U);case 248:return Ce(U,!0);case 249:return Ge(U);case 250:return ve(U);case 246:return Ie(U);case 247:return De(U);case 256:return Le(U);case 254:return Et(U);case 245:return be(U);case 255:return ze(U);case 269:return tt(U);case 296:return Wt(U);case 297:return _t(U);case 258:return Je(U);case 299:return ft(U);case 241:return Zt(U);default:return xe(U)}}function pe(U,Me){if(!(U.transformFlags&276828160))return U;switch(U.kind){case 248:return Ce(U,!1);case 244:return en(U);case 217:return Dn(U,Me);case 360:return Kn(U,Me);case 213:if(Op(U)&&N.impliedNodeFormat===void 0)return Yt(U);break;case 226:if(wy(U))return he(U,Me);break;case 224:case 225:return pn(U,Me)}return Sn(U,xe,e)}function xe(U){return pe(U,!1)}function fe(U){return pe(U,!0)}function ne(U){if(La(U))for(let Me of U.properties)switch(Me.kind){case 303:if(ne(Me.initializer))return!0;break;case 304:if(ne(Me.name))return!0;break;case 305:if(ne(Me.expression))return!0;break;case 174:case 177:case 178:return!1;default:R.assertNever(Me,"Unhandled object member kind")}else if(pu(U)){for(let Me of U.elements)if(qm(Me)){if(ne(Me.expression))return!0}else if(ne(Me))return!0}else if(Fe(U))return Nn(un(U))>(X4(U)?1:0);return!1}function he(U,Me){return ne(U.left)?UT(U,xe,e,0,!Me,yi):Sn(U,xe,e)}function Ce(U,Me){if(Me&&U.initializer&&Vc(U.initializer)&&!(U.initializer.flags&7)){let Pt=vn(void 0,U.initializer,!1);if(Pt){let k=[],ie=Qe(U.initializer,fe,Vc),H=r.createVariableStatement(void 0,ie);k.push(H),Hr(k,Pt);let ue=Qe(U.condition,xe,ht),We=Qe(U.incrementor,fe,ht),Ne=Au(U.statement,Me?re:xe,e);return k.push(r.updateForStatement(U,void 0,ue,We,Ne)),k}}return r.updateForStatement(U,Qe(U.initializer,fe,vf),Qe(U.condition,xe,ht),Qe(U.incrementor,fe,ht),Au(U.statement,Me?re:xe,e))}function Ge(U){if(Vc(U.initializer)&&!(U.initializer.flags&7)){let Me=vn(void 0,U.initializer,!0);if(gt(Me)){let Pt=Qe(U.initializer,fe,vf),k=Qe(U.expression,xe,ht),ie=Au(U.statement,re,e),H=Ho(ie)?r.updateBlock(ie,[...Me,...ie.statements]):r.createBlock([...Me,ie],!0);return r.updateForInStatement(U,Pt,k,H)}}return r.updateForInStatement(U,Qe(U.initializer,fe,vf),Qe(U.expression,xe,ht),Au(U.statement,re,e))}function ve(U){if(Vc(U.initializer)&&!(U.initializer.flags&7)){let Me=vn(void 0,U.initializer,!0),Pt=Qe(U.initializer,fe,vf),k=Qe(U.expression,xe,ht),ie=Au(U.statement,re,e);return gt(Me)&&(ie=Ho(ie)?r.updateBlock(ie,[...Me,...ie.statements]):r.createBlock([...Me,ie],!0)),r.updateForOfStatement(U,U.awaitModifier,Pt,k,ie)}return r.updateForOfStatement(U,U.awaitModifier,Qe(U.initializer,fe,vf),Qe(U.expression,xe,ht),Au(U.statement,re,e))}function Ie(U){return r.updateDoStatement(U,Au(U.statement,re,e),Qe(U.expression,xe,ht))}function De(U){return r.updateWhileStatement(U,Qe(U.expression,xe,ht),Au(U.statement,re,e))}function Le(U){return r.updateLabeledStatement(U,U.label,R.checkDefined(Qe(U.statement,re,Hi,r.liftToBlock)))}function Et(U){return r.updateWithStatement(U,Qe(U.expression,xe,ht),R.checkDefined(Qe(U.statement,re,Hi,r.liftToBlock)))}function be(U){return r.updateIfStatement(U,Qe(U.expression,xe,ht),R.checkDefined(Qe(U.thenStatement,re,Hi,r.liftToBlock)),Qe(U.elseStatement,re,Hi,r.liftToBlock))}function ze(U){return r.updateSwitchStatement(U,Qe(U.expression,xe,ht),R.checkDefined(Qe(U.caseBlock,re,fP)))}function tt(U){return r.updateCaseBlock(U,zn(U.clauses,re,mF))}function Wt(U){return r.updateCaseClause(U,Qe(U.expression,xe,ht),zn(U.statements,re,Hi))}function _t(U){return Sn(U,re,e)}function Je(U){return Sn(U,re,e)}function ft(U){return r.updateCatchClause(U,U.variableDeclaration,R.checkDefined(Qe(U.block,re,Ho)))}function Zt(U){return U=Sn(U,re,e),U}function en(U){return r.updateExpressionStatement(U,Qe(U.expression,fe,ht))}function Dn(U,Me){return r.updateParenthesizedExpression(U,Qe(U.expression,Me?fe:xe,ht))}function Kn(U,Me){return r.updatePartiallyEmittedExpression(U,Qe(U.expression,Me?fe:xe,ht))}function pn(U,Me){if((U.operator===46||U.operator===47)&&Fe(U.operand)&&!rl(U.operand)&&!zg(U.operand)&&!$j(U.operand)){let Pt=un(U.operand);if(Pt){let k,ie=Qe(U.operand,xe,ht);Xv(U)?ie=r.updatePrefixUnaryExpression(U,ie):(ie=r.updatePostfixUnaryExpression(U,ie),Me||(k=r.createTempVariable(l),ie=r.createAssignment(k,ie),at(ie,U)),ie=r.createComma(ie,r.cloneNode(U.operand)),at(ie,U));for(let H of Pt)w[is(ie)]=!0,ie=ke(H,ie),at(ie,U);return k&&(w[is(ie)]=!0,ie=r.createComma(ie,k),at(ie,U)),ie}}return Sn(U,xe,e)}function Yt(U){if(y===0&&m>=7)return Sn(U,xe,e);let Me=s1(r,U,N,h,p,d),Pt=Qe(Jc(U.arguments),xe,ht),k=Me&&(!Pt||!Ca(Pt)||Pt.text!==Me.text)?Me:Pt,ie=!!(U.transformFlags&16384);switch(d.module){case 2:return hi(k,ie);case 3:return qt(k??r.createVoidZero(),ie);case 1:default:return uo(k)}}function qt(U,Me){if(j=!0,nS(U)){let Pt=rl(U)?U:Ca(U)?r.createStringLiteralFromNode(U):lr(at(r.cloneNode(U),U),3072);return r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,uo(U),void 0,hi(Pt,Me))}else{let Pt=r.createTempVariable(l);return r.createComma(r.createAssignment(Pt,U),r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,uo(Pt,!0),void 0,hi(Pt,Me)))}}function hi(U,Me){let Pt=r.createUniqueName("resolve"),k=r.createUniqueName("reject"),ie=[r.createParameterDeclaration(void 0,void 0,Pt),r.createParameterDeclaration(void 0,void 0,k)],H=r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("require"),void 0,[r.createArrayLiteralExpression([U||r.createOmittedExpression()]),Pt,k]))]),ue;m>=2?ue=r.createArrowFunction(void 0,void 0,ie,void 0,void 0,H):(ue=r.createFunctionExpression(void 0,void 0,void 0,void 0,ie,void 0,H),Me&&lr(ue,16));let We=r.createNewExpression(r.createIdentifier("Promise"),void 0,[ue]);return _h(d)?r.createCallExpression(r.createPropertyAccessExpression(We,r.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):We}function uo(U,Me){let Pt=U&&!L_(U)&&!Me,k=r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Promise"),"resolve"),void 0,Pt?m>=2?[r.createTemplateExpression(r.createTemplateHead(""),[r.createTemplateSpan(U,r.createTemplateTail(""))])]:[r.createCallExpression(r.createPropertyAccessExpression(r.createStringLiteral(""),"concat"),void 0,[U])]:[]),ie=r.createCallExpression(r.createIdentifier("require"),void 0,Pt?[r.createIdentifier("s")]:U?[U]:[]);_h(d)&&(ie=i().createImportStarHelper(ie));let H=Pt?[r.createParameterDeclaration(void 0,void 0,"s")]:[],ue;return m>=2?ue=r.createArrowFunction(void 0,void 0,H,void 0,void 0,ie):ue=r.createFunctionExpression(void 0,void 0,void 0,void 0,H,void 0,r.createBlock([r.createReturnStatement(ie)])),r.createCallExpression(r.createPropertyAccessExpression(k,"then"),void 0,[ue])}function Li(U,Me){return!_h(d)||ym(U)&2?Me:nle(U)?i().createImportStarHelper(Me):Me}function Eo(U,Me){return!_h(d)||ym(U)&2?Me:W3(U)?i().createImportStarHelper(Me):DK(U)?i().createImportDefaultHelper(Me):Me}function Qn(U){let Me,Pt=tR(U);if(y!==2)if(U.importClause){let k=[];Pt&&!II(U)?k.push(r.createVariableDeclaration(r.cloneNode(Pt.name),void 0,void 0,Eo(U,Ur(U)))):(k.push(r.createVariableDeclaration(r.getGeneratedNameForNode(U),void 0,void 0,Eo(U,Ur(U)))),Pt&&II(U)&&k.push(r.createVariableDeclaration(r.cloneNode(Pt.name),void 0,void 0,r.getGeneratedNameForNode(U)))),Me=Tn(Me,Rr(at(r.createVariableStatement(void 0,r.createVariableDeclarationList(k,m>=2?2:0)),U),U))}else return Rr(at(r.createExpressionStatement(Ur(U)),U),U);else Pt&&II(U)&&(Me=Tn(Me,r.createVariableStatement(void 0,r.createVariableDeclarationList([Rr(at(r.createVariableDeclaration(r.cloneNode(Pt.name),void 0,void 0,r.getGeneratedNameForNode(U)),U),U)],m>=2?2:0))));return Me=Ao(Me,U),ih(Me)}function Ur(U){let Me=s1(r,U,N,h,p,d),Pt=[];return Me&&Pt.push(Me),r.createCallExpression(r.createIdentifier("require"),void 0,Pt)}function Er(U){R.assert(sE(U),"import= for internal module references should be handled in an earlier transformer.");let Me;return y!==2?Qr(U,32)?Me=Tn(Me,Rr(at(r.createExpressionStatement(ke(U.name,Ur(U))),U),U)):Me=Tn(Me,Rr(at(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.cloneNode(U.name),void 0,void 0,Ur(U))],m>=2?2:0)),U),U)):Qr(U,32)&&(Me=Tn(Me,Rr(at(r.createExpressionStatement(ke(r.getExportName(U),r.getLocalName(U))),U),U))),Me=da(Me,U),ih(Me)}function on(U){if(!U.moduleSpecifier)return;let Me=r.getGeneratedNameForNode(U);if(U.exportClause&&xf(U.exportClause)){let Pt=[];y!==2&&Pt.push(Rr(at(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(Me,void 0,void 0,Ur(U))])),U),U));for(let k of U.exportClause.elements)if(m===0)Pt.push(Rr(at(r.createExpressionStatement(i().createCreateBindingHelper(Me,r.createStringLiteralFromNode(k.propertyName||k.name),k.propertyName?r.createStringLiteralFromNode(k.name):void 0)),k),k));else{let ie=!!_h(d)&&!(ym(U)&2)&&yr(k.propertyName||k.name)==="default",H=r.createPropertyAccessExpression(ie?i().createImportDefaultHelper(Me):Me,k.propertyName||k.name);Pt.push(Rr(at(r.createExpressionStatement(ke(r.getExportName(k),H,void 0,!0)),k),k))}return ih(Pt)}else if(U.exportClause){let Pt=[];return Pt.push(Rr(at(r.createExpressionStatement(ke(r.cloneNode(U.exportClause.name),Li(U,y!==2?Ur(U):IF(U)?Me:r.createIdentifier(yr(U.exportClause.name))))),U),U)),ih(Pt)}else return Rr(at(r.createExpressionStatement(i().createExportStarHelper(y!==2?Ur(U):Me)),U),U)}function Ye(U){if(!U.isExportEquals)return se(r.createIdentifier("default"),Qe(U.expression,xe,ht),U,!0)}function Ot(U){let Me;return Qr(U,32)?Me=Tn(Me,Rr(at(r.createFunctionDeclaration(zn(U.modifiers,st,Ta),U.asteriskToken,r.getDeclarationName(U,!0,!0),void 0,zn(U.parameters,xe,To),void 0,Sn(U.body,xe,e)),U),U)):Me=Tn(Me,Sn(U,xe,e)),Me=Be(Me,U),ih(Me)}function In(U){let Me;return Qr(U,32)?Me=Tn(Me,Rr(at(r.createClassDeclaration(zn(U.modifiers,st,il),r.getDeclarationName(U,!0,!0),void 0,zn(U.heritageClauses,xe,ef),zn(U.members,xe,Xc)),U),U)):Me=Tn(Me,Sn(U,xe,e)),Me=Be(Me,U),ih(Me)}function si(U){let Me,Pt,k;if(Qr(U,32)){let ie,H=!1;for(let ue of U.declarationList.declarations)if(Fe(ue.name)&&zg(ue.name))if(ie||(ie=zn(U.modifiers,st,Ta)),ue.initializer){let We=r.updateVariableDeclaration(ue,ue.name,void 0,void 0,ke(ue.name,Qe(ue.initializer,xe,ht)));Pt=Tn(Pt,We)}else Pt=Tn(Pt,ue);else if(ue.initializer)if(!$o(ue.name)&&(Fs(ue.initializer)||Ms(ue.initializer)||$c(ue.initializer))){let We=r.createAssignment(at(r.createPropertyAccessExpression(r.createIdentifier("exports"),ue.name),ue.name),r.createIdentifier(Xf(ue.name))),Ne=r.createVariableDeclaration(ue.name,ue.exclamationToken,ue.type,Qe(ue.initializer,xe,ht));Pt=Tn(Pt,Ne),k=Tn(k,We),H=!0}else k=Tn(k,$i(ue));if(Pt&&(Me=Tn(Me,r.updateVariableStatement(U,ie,r.updateVariableDeclarationList(U.declarationList,Pt)))),k){let ue=Rr(at(r.createExpressionStatement(r.inlineExpressions(k)),U),U);H&&Ak(ue),Me=Tn(Me,ue)}}else Me=Tn(Me,Sn(U,xe,e));return Me=Ba(Me,U),ih(Me)}function yi(U,Me,Pt){let k=un(U);if(k){let ie=X4(U)?Me:r.createAssignment(U,Me);for(let H of k)lr(ie,8),ie=ke(H,ie,Pt);return ie}return r.createAssignment(U,Me)}function $i(U){return $o(U.name)?UT(Qe(U,xe,ik),xe,e,0,!1,yi):r.createAssignment(at(r.createPropertyAccessExpression(r.createIdentifier("exports"),U.name),U.name),U.initializer?Qe(U.initializer,xe,ht):r.createVoidZero())}function Ao(U,Me){if(D.exportEquals)return U;let Pt=Me.importClause;if(!Pt)return U;let k=new f1;Pt.name&&(U=ct(U,k,Pt));let ie=Pt.namedBindings;if(ie)switch(ie.kind){case 274:U=ct(U,k,ie);break;case 275:for(let H of ie.elements)U=ct(U,k,H,!0);break}return U}function da(U,Me){return D.exportEquals?U:ct(U,new f1,Me)}function Ba(U,Me){return vn(U,Me.declarationList,!1)}function vn(U,Me,Pt){if(D.exportEquals)return U;for(let k of Me.declarations)U=kn(U,k,Pt);return U}function kn(U,Me,Pt){if(D.exportEquals)return U;if($o(Me.name))for(let k of Me.name.elements)Gc(k)||(U=kn(U,k,Pt));else!rl(Me.name)&&(!Oi(Me)||Me.initializer||Pt)&&(U=ct(U,new f1,Me));return U}function Be(U,Me){if(D.exportEquals)return U;let Pt=new f1;if(Qr(Me,32)){let k=Qr(Me,2048)?r.createIdentifier("default"):r.getDeclarationName(Me);U=lt(U,Pt,k,r.getLocalName(Me),Me)}return Me.name&&(U=ct(U,Pt,Me)),U}function ct(U,Me,Pt,k){let ie=r.getDeclarationName(Pt),H=D.exportSpecifiers.get(ie);if(H)for(let ue of H)U=lt(U,Me,ue.name,ie,ue.name,void 0,k);return U}function lt(U,Me,Pt,k,ie,H,ue){return Me.has(Pt)||(Me.set(Pt,!0),U=Tn(U,se(Pt,k,ie,H,ue))),U}function Dt(){let U;return m===0?U=r.createExpressionStatement(ke(r.createIdentifier("__esModule"),r.createTrue())):U=r.createExpressionStatement(r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteral("__esModule"),r.createObjectLiteralExpression([r.createPropertyAssignment("value",r.createTrue())])])),lr(U,2097152),U}function se(U,Me,Pt,k,ie){let H=at(r.createExpressionStatement(ke(U,Me,void 0,ie)),Pt);return Kd(H),k||lr(H,3072),H}function ke(U,Me,Pt,k){return at(k&&m!==0?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteralFromNode(U),r.createObjectLiteralExpression([r.createPropertyAssignment("enumerable",r.createTrue()),r.createPropertyAssignment("get",r.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,r.createBlock([r.createReturnStatement(Me)])))])]):r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(U)),Me),Pt)}function st(U){switch(U.kind){case 95:case 90:return}return U}function G(U,Me,Pt){Me.kind===312?(N=Me,D=A[kd(N)],S(U,Me,Pt),N=void 0,D=void 0):S(U,Me,Pt)}function et(U,Me){return Me=E(U,Me),Me.id&&w[Me.id]?Me:U===1?He(Me):Zu(Me)?Tt(Me):Me}function Tt(U){let Me=U.name,Pt=hn(Me);if(Pt!==Me){if(U.objectAssignmentInitializer){let k=r.createAssignment(Pt,U.objectAssignmentInitializer);return at(r.createPropertyAssignment(Me,k),U)}return at(r.createPropertyAssignment(Me,Pt),U)}return U}function He(U){switch(U.kind){case 80:return hn(U);case 213:return pt(U);case 215:return Ft(U);case 226:return dn(U)}return U}function pt(U){if(Fe(U.expression)){let Me=hn(U.expression);if(w[is(Me)]=!0,!Fe(Me)&&!(za(U.expression)&8192))return BI(r.updateCallExpression(U,Me,void 0,U.arguments),16)}return U}function Ft(U){if(Fe(U.tag)){let Me=hn(U.tag);if(w[is(Me)]=!0,!Fe(Me)&&!(za(U.tag)&8192))return BI(r.updateTaggedTemplateExpression(U,Me,void 0,U.template),16)}return U}function hn(U){var Me,Pt;if(za(U)&8192){let k=Uk(N);return k?r.createPropertyAccessExpression(k,U):U}else if(!(rl(U)&&!(U.emitNode.autoGenerate.flags&64))&&!zg(U)){let k=p.getReferencedExportContainer(U,X4(U));if(k&&k.kind===312)return at(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(U)),U);let ie=p.getReferencedImportDeclaration(U);if(ie){if(yh(ie))return at(r.createPropertyAccessExpression(r.getGeneratedNameForNode(ie.parent),r.createIdentifier("default")),U);if(Qu(ie)){let H=ie.propertyName||ie.name;return at(r.createPropertyAccessExpression(r.getGeneratedNameForNode(((Pt=(Me=ie.parent)==null?void 0:Me.parent)==null?void 0:Pt.parent)||ie),r.cloneNode(H)),U)}}}return U}function dn(U){if(ky(U.operatorToken.kind)&&Fe(U.left)&&(!rl(U.left)||n2(U.left))&&!zg(U.left)){let Me=un(U.left);if(Me){let Pt=U;for(let k of Me)w[is(Pt)]=!0,Pt=ke(k,Pt,U);return Pt}}return U}function un(U){if(rl(U)){if(n2(U)){let Me=D?.exportSpecifiers.get(U);if(Me){let Pt=[];for(let k of Me)Pt.push(k.name);return Pt}}}else{let Me=p.getReferencedImportDeclaration(U);if(Me)return D?.exportedBindings[kd(Me)];let Pt=new Set,k=p.getReferencedValueDeclarations(U);if(k){for(let ie of k){let H=D?.exportedBindings[kd(ie)];if(H)for(let ue of H)Pt.add(ue)}if(Pt.size)return Oo(Pt)}}}}var HIe,sVe=bt({"src/compiler/transformers/module/module.ts"(){"use strict";Zo(),HIe={name:"typescript:dynamicimport-sync-require",scoped:!0,text:` + var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}}});function wle(e){let{factory:t,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,s=e.getCompilerOptions(),l=e.getEmitResolver(),d=e.getEmitHost(),p=e.onSubstituteNode,h=e.onEmitNode;e.onSubstituteNode=ke,e.onEmitNode=se,e.enableSubstitution(80),e.enableSubstitution(304),e.enableSubstitution(226),e.enableSubstitution(236),e.enableEmitNotification(312);let m=[],y=[],E=[],S=[],A,N,D,w,j,K,Y;return Im(e,B);function B(U){if(U.isDeclarationFile||!(TI(U,s)||U.transformFlags&8388608))return U;let Me=kd(U);A=U,K=U,N=m[Me]=CK(e,U),D=t.createUniqueName("exports"),y[Me]=D,w=S[Me]=t.createUniqueName("context");let Pt=ce(N.externalImports),k=z(U,Pt),ie=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,D),t.createParameterDeclaration(void 0,void 0,w)],void 0,k),H=Hk(t,U,d,s),ue=t.createArrayLiteralExpression(mn(Pt,Ne=>Ne.name)),We=lr(t.updateSourceFile(U,at(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,H?[H,ue,ie]:[ue,ie]))]),U.statements)),2048);return Rs(s)||Zoe(We,k,Ne=>!Ne.scoped),Y&&(E[Me]=Y,Y=void 0),A=void 0,N=void 0,D=void 0,w=void 0,j=void 0,K=void 0,We}function ce(U){let Me=new Map,Pt=[];for(let k of U){let ie=s1(t,k,A,d,l,s);if(ie){let H=ie.text,ue=Me.get(H);ue!==void 0?Pt[ue].externalImports.push(k):(Me.set(H,Pt.length),Pt.push({name:ie,externalImports:[k]}))}}return Pt}function z(U,Me){let Pt=[];r();let k=du(s,"alwaysStrict")||!s.noImplicitUseStrict&&oc(A),ie=t.copyPrologue(U.statements,Pt,k,q);Pt.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(w,t.createPropertyAccessExpression(w,"id")))]))),Qe(N.externalHelpersImportDeclaration,q,Hi);let H=zn(U.statements,q,Hi,ie);Hr(Pt,j),qh(Pt,i());let ue=ee(Pt),We=U.transformFlags&2097152?t.createModifiersFromModifierFlags(1024):void 0,Ne=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",ge(ue,Me)),t.createPropertyAssignment("execute",t.createFunctionExpression(We,void 0,void 0,void 0,[],void 0,t.createBlock(H,!0)))],!0);return Pt.push(t.createReturnStatement(Ne)),t.createBlock(Pt,!0)}function ee(U){if(!N.hasExportStarsToExportValues)return;if(!N.exportedNames&&N.exportSpecifiers.size===0){let ie=!1;for(let H of N.externalImports)if(H.kind===278&&H.exportClause){ie=!0;break}if(!ie){let H=me(void 0);return U.push(H),H.name}}let Me=[];if(N.exportedNames)for(let ie of N.exportedNames)ie.escapedText!=="default"&&Me.push(t.createPropertyAssignment(t.createStringLiteralFromNode(ie),t.createTrue()));let Pt=t.createUniqueName("exportedNames");U.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Pt,void 0,void 0,t.createObjectLiteralExpression(Me,!0))])));let k=me(Pt);return U.push(k),k.name}function me(U){let Me=t.createUniqueName("exportStar"),Pt=t.createIdentifier("m"),k=t.createIdentifier("n"),ie=t.createIdentifier("exports"),H=t.createStrictInequality(k,t.createStringLiteral("default"));return U&&(H=t.createLogicalAnd(H,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(U,"hasOwnProperty"),void 0,[k])))),t.createFunctionDeclaration(void 0,void 0,Me,void 0,[t.createParameterDeclaration(void 0,void 0,Pt)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ie,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(k)]),Pt,t.createBlock([lr(t.createIfStatement(H,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(ie,k),t.createElementAccessExpression(Pt,k)))),1)])),t.createExpressionStatement(t.createCallExpression(D,void 0,[ie]))],!0))}function ge(U,Me){let Pt=[];for(let k of Me){let ie=gn(k.externalImports,We=>WR(t,We,A)),H=ie?t.getGeneratedNameForNode(ie):t.createUniqueName(""),ue=[];for(let We of k.externalImports){let Ne=WR(t,We,A);switch(We.kind){case 272:if(!We.importClause)break;case 271:R.assert(Ne!==void 0),ue.push(t.createExpressionStatement(t.createAssignment(Ne,H))),Qr(We,32)&&ue.push(t.createExpressionStatement(t.createCallExpression(D,void 0,[t.createStringLiteral(yr(Ne)),H])));break;case 278:if(R.assert(Ne!==void 0),We.exportClause)if(xf(We.exportClause)){let It=[];for(let Ct of We.exportClause.elements)It.push(t.createPropertyAssignment(t.createStringLiteral(yr(Ct.name)),t.createElementAccessExpression(H,t.createStringLiteral(yr(Ct.propertyName||Ct.name)))));ue.push(t.createExpressionStatement(t.createCallExpression(D,void 0,[t.createObjectLiteralExpression(It,!0)])))}else ue.push(t.createExpressionStatement(t.createCallExpression(D,void 0,[t.createStringLiteral(yr(We.exportClause.name)),H])));else ue.push(t.createExpressionStatement(t.createCallExpression(U,void 0,[H])));break}}Pt.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,H)],void 0,t.createBlock(ue,!0)))}return t.createArrayLiteralExpression(Pt,!0)}function q(U){switch(U.kind){case 272:return J(U);case 271:return pe(U);case 278:return re(U);case 277:return xe(U);default:return en(U)}}function J(U){let Me;return U.importClause&&o(WR(t,U,A)),ih(Et(Me,U))}function re(U){R.assertIsDefined(U)}function pe(U){R.assert(sE(U),"import= for internal module references should be handled in an earlier transformer.");let Me;return o(WR(t,U,A)),ih(be(Me,U))}function xe(U){if(U.isExportEquals)return;let Me=Qe(U.expression,$i,ht);return ft(t.createIdentifier("default"),Me,!0)}function fe(U){Qr(U,32)?j=Tn(j,t.updateFunctionDeclaration(U,zn(U.modifiers,Dt,il),U.asteriskToken,t.getDeclarationName(U,!0,!0),void 0,zn(U.parameters,$i,To),void 0,Qe(U.body,$i,Ho))):j=Tn(j,Sn(U,$i,e)),j=Wt(j,U)}function ne(U){let Me,Pt=t.getLocalName(U);return o(Pt),Me=Tn(Me,at(t.createExpressionStatement(t.createAssignment(Pt,at(t.createClassExpression(zn(U.modifiers,Dt,il),U.name,void 0,zn(U.heritageClauses,$i,ef),zn(U.members,$i,Xc)),U))),U)),Me=Wt(Me,U),ih(Me)}function he(U){if(!Ge(U.declarationList))return Qe(U,$i,Hi);let Me;if(b2(U.declarationList)||v2(U.declarationList)){let Pt=zn(U.modifiers,Dt,il),k=[];for(let H of U.declarationList.declarations)k.push(t.updateVariableDeclaration(H,t.getGeneratedNameForNode(H.name),void 0,void 0,ve(H,!1)));let ie=t.updateVariableDeclarationList(U.declarationList,k);Me=Tn(Me,t.updateVariableStatement(U,Pt,ie))}else{let Pt,k=Qr(U,32);for(let ie of U.declarationList.declarations)ie.initializer?Pt=Tn(Pt,ve(ie,k)):Ce(ie);Pt&&(Me=Tn(Me,at(t.createExpressionStatement(t.inlineExpressions(Pt)),U)))}return Me=ze(Me,U,!1),ih(Me)}function Ce(U){if($o(U.name))for(let Me of U.name.elements)Gc(Me)||Ce(Me);else o(t.cloneNode(U.name))}function Ge(U){return(za(U)&4194304)===0&&(K.kind===312||(Nl(U).flags&7)===0)}function ve(U,Me){let Pt=Me?Ie:De;return $o(U.name)?UT(U,$i,e,0,!1,Pt):U.initializer?Pt(U.name,Qe(U.initializer,$i,ht)):U.name}function Ie(U,Me,Pt){return Le(U,Me,Pt,!0)}function De(U,Me,Pt){return Le(U,Me,Pt,!1)}function Le(U,Me,Pt,k){return o(t.cloneNode(U)),k?Zt(U,dn(at(t.createAssignment(U,Me),Pt))):dn(at(t.createAssignment(U,Me),Pt))}function Et(U,Me){if(N.exportEquals)return U;let Pt=Me.importClause;if(!Pt)return U;Pt.name&&(U=_t(U,Pt));let k=Pt.namedBindings;if(k)switch(k.kind){case 274:U=_t(U,k);break;case 275:for(let ie of k.elements)U=_t(U,ie);break}return U}function be(U,Me){return N.exportEquals?U:_t(U,Me)}function ze(U,Me,Pt){if(N.exportEquals)return U;for(let k of Me.declarationList.declarations)(k.initializer||Pt)&&(U=tt(U,k,Pt));return U}function tt(U,Me,Pt){if(N.exportEquals)return U;if($o(Me.name))for(let k of Me.name.elements)Gc(k)||(U=tt(U,k,Pt));else if(!rl(Me.name)){let k;Pt&&(U=Je(U,Me.name,t.getLocalName(Me)),k=yr(Me.name)),U=_t(U,Me,k)}return U}function Wt(U,Me){if(N.exportEquals)return U;let Pt;if(Qr(Me,32)){let k=Qr(Me,2048)?t.createStringLiteral("default"):Me.name;U=Je(U,k,t.getLocalName(Me)),Pt=Xf(k)}return Me.name&&(U=_t(U,Me,Pt)),U}function _t(U,Me,Pt){if(N.exportEquals)return U;let k=t.getDeclarationName(Me),ie=N.exportSpecifiers.get(k);if(ie)for(let H of ie)H.name.escapedText!==Pt&&(U=Je(U,H.name,k));return U}function Je(U,Me,Pt,k){return U=Tn(U,ft(Me,Pt,k)),U}function ft(U,Me,Pt){let k=t.createExpressionStatement(Zt(U,Me));return Kd(k),Pt||lr(k,3072),k}function Zt(U,Me){let Pt=Fe(U)?t.createStringLiteralFromNode(U):U;return lr(Me,za(Me)|3072),ic(t.createCallExpression(D,void 0,[Pt,Me]),Me)}function en(U){switch(U.kind){case 243:return he(U);case 262:return fe(U);case 263:return ne(U);case 248:return Dn(U,!0);case 249:return Kn(U);case 250:return pn(U);case 246:return hi(U);case 247:return uo(U);case 256:return Li(U);case 254:return Eo(U);case 245:return Qn(U);case 255:return Ur(U);case 269:return Er(U);case 296:return on(U);case 297:return Ye(U);case 258:return Ot(U);case 299:return In(U);case 241:return si(U);default:return $i(U)}}function Dn(U,Me){let Pt=K;return K=U,U=t.updateForStatement(U,Qe(U.initializer,Me?qt:Ao,vf),Qe(U.condition,$i,ht),Qe(U.incrementor,Ao,ht),Au(U.statement,Me?en:$i,e)),K=Pt,U}function Kn(U){let Me=K;return K=U,U=t.updateForInStatement(U,qt(U.initializer),Qe(U.expression,$i,ht),Au(U.statement,en,e)),K=Me,U}function pn(U){let Me=K;return K=U,U=t.updateForOfStatement(U,U.awaitModifier,qt(U.initializer),Qe(U.expression,$i,ht),Au(U.statement,en,e)),K=Me,U}function Yt(U){return Vc(U)&&Ge(U)}function qt(U){if(Yt(U)){let Me;for(let Pt of U.declarations)Me=Tn(Me,ve(Pt,!1)),Pt.initializer||Ce(Pt);return Me?t.inlineExpressions(Me):t.createOmittedExpression()}else return Qe(U,Ao,vf)}function hi(U){return t.updateDoStatement(U,Au(U.statement,en,e),Qe(U.expression,$i,ht))}function uo(U){return t.updateWhileStatement(U,Qe(U.expression,$i,ht),Au(U.statement,en,e))}function Li(U){return t.updateLabeledStatement(U,U.label,R.checkDefined(Qe(U.statement,en,Hi,t.liftToBlock)))}function Eo(U){return t.updateWithStatement(U,Qe(U.expression,$i,ht),R.checkDefined(Qe(U.statement,en,Hi,t.liftToBlock)))}function Qn(U){return t.updateIfStatement(U,Qe(U.expression,$i,ht),R.checkDefined(Qe(U.thenStatement,en,Hi,t.liftToBlock)),Qe(U.elseStatement,en,Hi,t.liftToBlock))}function Ur(U){return t.updateSwitchStatement(U,Qe(U.expression,$i,ht),R.checkDefined(Qe(U.caseBlock,en,fP)))}function Er(U){let Me=K;return K=U,U=t.updateCaseBlock(U,zn(U.clauses,en,mF)),K=Me,U}function on(U){return t.updateCaseClause(U,Qe(U.expression,$i,ht),zn(U.statements,en,Hi))}function Ye(U){return Sn(U,en,e)}function Ot(U){return Sn(U,en,e)}function In(U){let Me=K;return K=U,U=t.updateCatchClause(U,U.variableDeclaration,R.checkDefined(Qe(U.block,en,Ho))),K=Me,U}function si(U){let Me=K;return K=U,U=Sn(U,en,e),K=Me,U}function yi(U,Me){if(!(U.transformFlags&276828160))return U;switch(U.kind){case 248:return Dn(U,!1);case 244:return da(U);case 217:return Ba(U,Me);case 360:return vn(U,Me);case 226:if(wy(U))return Be(U,Me);break;case 213:if(Op(U))return kn(U);break;case 224:case 225:return lt(U,Me)}return Sn(U,$i,e)}function $i(U){return yi(U,!1)}function Ao(U){return yi(U,!0)}function da(U){return t.updateExpressionStatement(U,Qe(U.expression,Ao,ht))}function Ba(U,Me){return t.updateParenthesizedExpression(U,Qe(U.expression,Me?Ao:$i,ht))}function vn(U,Me){return t.updatePartiallyEmittedExpression(U,Qe(U.expression,Me?Ao:$i,ht))}function kn(U){let Me=s1(t,U,A,d,l,s),Pt=Qe(Jc(U.arguments),$i,ht),k=Me&&(!Pt||!Ca(Pt)||Pt.text!==Me.text)?Me:Pt;return t.createCallExpression(t.createPropertyAccessExpression(w,t.createIdentifier("import")),void 0,k?[k]:[])}function Be(U,Me){return ct(U.left)?UT(U,$i,e,0,!Me):Sn(U,$i,e)}function ct(U){if(Pc(U,!0))return ct(U.left);if(qm(U))return ct(U.expression);if(La(U))return gt(U.properties,ct);if(pu(U))return gt(U.elements,ct);if(Zu(U))return ct(U.name);if(mc(U))return ct(U.initializer);if(Fe(U)){let Me=l.getReferencedExportContainer(U);return Me!==void 0&&Me.kind===312}else return!1}function lt(U,Me){if((U.operator===46||U.operator===47)&&Fe(U.operand)&&!rl(U.operand)&&!zg(U.operand)&&!$j(U.operand)){let Pt=Ft(U.operand);if(Pt){let k,ie=Qe(U.operand,$i,ht);Xv(U)?ie=t.updatePrefixUnaryExpression(U,ie):(ie=t.updatePostfixUnaryExpression(U,ie),Me||(k=t.createTempVariable(o),ie=t.createAssignment(k,ie),at(ie,U)),ie=t.createComma(ie,t.cloneNode(U.operand)),at(ie,U));for(let H of Pt)ie=Zt(H,dn(ie));return k&&(ie=t.createComma(ie,k),at(ie,U)),ie}}return Sn(U,$i,e)}function Dt(U){switch(U.kind){case 95:case 90:return}return U}function se(U,Me,Pt){if(Me.kind===312){let k=kd(Me);A=Me,N=m[k],D=y[k],Y=E[k],w=S[k],Y&&delete E[k],h(U,Me,Pt),A=void 0,N=void 0,D=void 0,w=void 0,Y=void 0}else h(U,Me,Pt)}function ke(U,Me){return Me=p(U,Me),un(Me)?Me:U===1?et(Me):U===4?st(Me):Me}function st(U){switch(U.kind){case 304:return G(U)}return U}function G(U){var Me,Pt;let k=U.name;if(!rl(k)&&!zg(k)){let ie=l.getReferencedImportDeclaration(k);if(ie){if(yh(ie))return at(t.createPropertyAssignment(t.cloneNode(k),t.createPropertyAccessExpression(t.getGeneratedNameForNode(ie.parent),t.createIdentifier("default"))),U);if(Qu(ie))return at(t.createPropertyAssignment(t.cloneNode(k),t.createPropertyAccessExpression(t.getGeneratedNameForNode(((Pt=(Me=ie.parent)==null?void 0:Me.parent)==null?void 0:Pt.parent)||ie),t.cloneNode(ie.propertyName||ie.name))),U)}}return U}function et(U){switch(U.kind){case 80:return Tt(U);case 226:return He(U);case 236:return pt(U)}return U}function Tt(U){var Me,Pt;if(za(U)&8192){let k=Uk(A);return k?t.createPropertyAccessExpression(k,U):U}if(!rl(U)&&!zg(U)){let k=l.getReferencedImportDeclaration(U);if(k){if(yh(k))return at(t.createPropertyAccessExpression(t.getGeneratedNameForNode(k.parent),t.createIdentifier("default")),U);if(Qu(k))return at(t.createPropertyAccessExpression(t.getGeneratedNameForNode(((Pt=(Me=k.parent)==null?void 0:Me.parent)==null?void 0:Pt.parent)||k),t.cloneNode(k.propertyName||k.name)),U)}}return U}function He(U){if(ky(U.operatorToken.kind)&&Fe(U.left)&&(!rl(U.left)||n2(U.left))&&!zg(U.left)){let Me=Ft(U.left);if(Me){let Pt=U;for(let k of Me)Pt=Zt(k,dn(Pt));return Pt}}return U}function pt(U){return Kx(U)?t.createPropertyAccessExpression(w,t.createIdentifier("meta")):U}function Ft(U){let Me,Pt=hn(U);if(Pt){let k=l.getReferencedExportContainer(U,!1);k&&k.kind===312&&(Me=Tn(Me,t.getDeclarationName(Pt))),Me=Hr(Me,N?.exportedBindings[kd(Pt)])}else if(rl(U)&&n2(U)){let k=N?.exportSpecifiers.get(U);if(k){let ie=[];for(let H of k)ie.push(H.name);return ie}}return Me}function hn(U){if(!rl(U)){let Me=l.getReferencedImportDeclaration(U);if(Me)return Me;let Pt=l.getReferencedValueDeclaration(U);if(Pt&&N?.exportedBindings[kd(Pt)])return Pt;let k=l.getReferencedValueDeclarations(U);if(k){for(let ie of k)if(ie!==Pt&&N?.exportedBindings[kd(ie)])return ie}return Pt}}function dn(U){return Y===void 0&&(Y=[]),Y[is(U)]=!0,U}function un(U){return Y&&U.id&&Y[U.id]}}var lVe=bt({"src/compiler/transformers/module/system.ts"(){"use strict";Zo()}});function GK(e){let{factory:t,getEmitHelperFactory:r}=e,i=e.getEmitHost(),o=e.getEmitResolver(),s=e.getCompilerOptions(),l=rs(s),d=e.onEmitNode,p=e.onSubstituteNode;e.onEmitNode=Y,e.onSubstituteNode=B,e.enableEmitNotification(312),e.enableSubstitution(80);let h,m,y;return Im(e,E);function E(z){if(z.isDeclarationFile)return z;if(oc(z)||em(s)){m=z,y=void 0;let ee=S(z);return m=void 0,y&&(ee=t.updateSourceFile(ee,at(t.createNodeArray(jV(ee.statements.slice(),y)),ee.statements))),!oc(z)||Md(s)===200||gt(ee.statements,s2)?ee:t.updateSourceFile(ee,at(t.createNodeArray([...ee.statements,Gk(t)]),ee.statements))}return z}function S(z){let ee=bH(t,r(),z,s);if(ee){let me=[],ge=t.copyPrologue(z.statements,me);return Tn(me,ee),Hr(me,zn(z.statements,A,Hi,ge)),t.updateSourceFile(z,at(t.createNodeArray(me),z.statements))}else return Sn(z,A,e)}function A(z){switch(z.kind){case 271:return Md(s)>=100?D(z):void 0;case 277:return j(z);case 278:return K(z)}return z}function N(z){let ee=s1(t,z,R.checkDefined(m),i,o,s),me=[];if(ee&&me.push(ee),Md(s)===200)return t.createCallExpression(t.createIdentifier("require"),void 0,me);if(!y){let q=t.createUniqueName("_createRequire",48),J=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),q)])),t.createStringLiteral("module"),void 0),re=t.createUniqueName("__require",48),pe=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(re,void 0,void 0,t.createCallExpression(t.cloneNode(q),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],l>=2?2:0));y=[J,pe]}let ge=y[1].declarationList.declarations[0].name;return R.assertNode(ge,Fe),t.createCallExpression(t.cloneNode(ge),void 0,me)}function D(z){R.assert(sE(z),"import= for internal module references should be handled in an earlier transformer.");let ee;return ee=Tn(ee,Rr(at(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(z.name),void 0,void 0,N(z))],l>=2?2:0)),z),z)),ee=w(ee,z),ih(ee)}function w(z,ee){return Qr(ee,32)&&(z=Tn(z,t.createExportDeclaration(void 0,ee.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,yr(ee.name))])))),z}function j(z){return z.isExportEquals?Md(s)===200?Rr(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),z.expression)),z):void 0:z}function K(z){if(s.module!==void 0&&s.module>5||!z.exportClause||!vh(z.exportClause)||!z.moduleSpecifier)return z;let ee=z.exportClause.name,me=t.getGeneratedNameForNode(ee),ge=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport(me)),z.moduleSpecifier,z.attributes);Rr(ge,z.exportClause);let q=IF(z)?t.createExportDefault(me):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,me,ee)]));return Rr(q,z),[ge,q]}function Y(z,ee,me){Yi(ee)?((oc(ee)||em(s))&&s.importHelpers&&(h=new Map),d(z,ee,me),h=void 0):d(z,ee,me)}function B(z,ee){return ee=p(z,ee),h&&Fe(ee)&&za(ee)&8192?ce(ee):ee}function ce(z){let ee=yr(z),me=h.get(ee);return me||h.set(ee,me=t.createUniqueName(ee,48)),me}}var cVe=bt({"src/compiler/transformers/module/esnextAnd2015.ts"(){"use strict";Zo()}});function Ole(e){let t=e.onSubstituteNode,r=e.onEmitNode,i=GK(e),o=e.onSubstituteNode,s=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=r;let l=BK(e),d=e.onSubstituteNode,p=e.onEmitNode;e.onSubstituteNode=m,e.onEmitNode=y,e.enableSubstitution(312),e.enableEmitNotification(312);let h;return A;function m(D,w){return Yi(w)?(h=w,t(D,w)):h?h.impliedNodeFormat===99?o(D,w):d(D,w):t(D,w)}function y(D,w,j){return Yi(w)&&(h=w),h?h.impliedNodeFormat===99?s(D,w,j):p(D,w,j):r(D,w,j)}function E(D){return D.impliedNodeFormat===99?i:l}function S(D){if(D.isDeclarationFile)return D;h=D;let w=E(D)(D);return h=void 0,R.assert(Yi(w)),w}function A(D){return D.kind===312?S(D):N(D)}function N(D){return e.factory.createBundle(mn(D.sourceFiles,S),D.prepends)}}var dVe=bt({"src/compiler/transformers/module/node.ts"(){"use strict";Zo()}});function H3(e){return Oi(e)||Vo(e)||_p(e)||Xa(e)||Ny(e)||Mv(e)||Lk(e)||XI(e)||Ul(e)||hh(e)||Ec(e)||To(e)||fl(e)||By(e)||Zc(e)||Tm(e)||Pl(e)||V0(e)||wr(e)||qs(e)||ur(e)||qf(e)}function Wle(e){if(Ny(e)||Mv(e))return t;return hh(e)||Ul(e)?i:Vy(e);function t(s){let l=r(s);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function r(s){return na(e)?s.errorModuleName?s.accessibility===2?f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?s.errorModuleName?s.accessibility===2?f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_property_0_of_exported_class_has_or_is_using_private_name_1:s.errorModuleName?f.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Property_0_of_exported_interface_has_or_is_using_private_name_1}function i(s){let l=o(s);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function o(s){return na(e)?s.errorModuleName?s.accessibility===2?f.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?s.errorModuleName?s.accessibility===2?f.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_method_0_of_exported_class_has_or_is_using_private_name_1:s.errorModuleName?f.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function Vy(e){if(Oi(e)||Vo(e)||_p(e)||wr(e)||qs(e)||ur(e)||Xa(e)||Pl(e))return r;return Ny(e)||Mv(e)?i:Lk(e)||XI(e)||Ul(e)||hh(e)||Ec(e)||V0(e)?o:To(e)?dp(e,e.parent)&&Qr(e.parent,2)?r:s:fl(e)?d:By(e)?p:Zc(e)?h:Tm(e)||qf(e)?m:R.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${R.formatSyntaxKind(e.kind)}`);function t(y){if(e.kind===260||e.kind===208)return y.errorModuleName?y.accessibility===2?f.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:f.Exported_variable_0_has_or_is_using_private_name_1;if(e.kind===172||e.kind===211||e.kind===212||e.kind===226||e.kind===171||e.kind===169&&Qr(e.parent,2))return na(e)?y.errorModuleName?y.accessibility===2?f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263||e.kind===169?y.errorModuleName?y.accessibility===2?f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_property_0_of_exported_class_has_or_is_using_private_name_1:y.errorModuleName?f.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Property_0_of_exported_interface_has_or_is_using_private_name_1}function r(y){let E=t(y);return E!==void 0?{diagnosticMessage:E,errorNode:e,typeName:e.name}:void 0}function i(y){let E;return e.kind===178?na(e)?E=y.errorModuleName?f.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:E=y.errorModuleName?f.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:na(e)?E=y.errorModuleName?y.accessibility===2?f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:E=y.errorModuleName?y.accessibility===2?f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:E,errorNode:e.name,typeName:e.name}}function o(y){let E;switch(e.kind){case 180:E=y.errorModuleName?f.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:E=y.errorModuleName?f.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:E=y.errorModuleName?f.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:na(e)?E=y.errorModuleName?y.accessibility===2?f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:e.parent.kind===263?E=y.errorModuleName?y.accessibility===2?f.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:f.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:E=y.errorModuleName?f.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:E=y.errorModuleName?y.accessibility===2?f.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:f.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return R.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:E,errorNode:e.name||e}}function s(y){let E=l(y);return E!==void 0?{diagnosticMessage:E,errorNode:e,typeName:e.name}:void 0}function l(y){switch(e.parent.kind){case 176:return y.errorModuleName?y.accessibility===2?f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return y.errorModuleName?f.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return y.errorModuleName?f.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return y.errorModuleName?f.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return na(e.parent)?y.errorModuleName?y.accessibility===2?f.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?y.errorModuleName?y.accessibility===2?f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:y.errorModuleName?f.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return y.errorModuleName?y.accessibility===2?f.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return y.errorModuleName?y.accessibility===2?f.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return R.fail(`Unknown parent for parameter: ${R.formatSyntaxKind(e.parent.kind)}`)}}function d(){let y;switch(e.parent.kind){case 263:y=f.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:y=f.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:y=f.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:y=f.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:y=f.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:na(e.parent)?y=f.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?y=f.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:y=f.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:y=f.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:y=f.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:y=f.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return R.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:y,errorNode:e,typeName:e.name}}function p(){let y;return Sc(e.parent.parent)?y=ef(e.parent)&&e.parent.token===119?f.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?f.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:f.extends_clause_of_exported_class_has_or_is_using_private_name_0:y=f.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:y,errorNode:e,typeName:No(e.parent.parent)}}function h(){return{diagnosticMessage:f.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}function m(y){return{diagnosticMessage:y.errorModuleName?f.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:f.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:qf(e)?R.checkDefined(e.typeExpression):e.type,typeName:qf(e)?No(e):e.name}}}var uVe=bt({"src/compiler/transformers/declarations/diagnostics.ts"(){"use strict";Zo()}});function Fle(e,t,r){let i=e.getCompilerOptions();return Iw(t,e,L,i,r?[r]:jr(e.getSourceFiles(),uj),[VK],!1).diagnostics}function VK(e){let t=()=>R.fail("Diagnostic emitted without context"),r=t,i=!0,o=!1,s=!1,l=!1,d=!1,p,h,m,y,E,S,{factory:A}=e,N=e.getEmitHost(),D={trackSymbol:fe,reportInaccessibleThisError:ve,reportInaccessibleUniqueSymbolError:Ce,reportCyclicStructureError:Ge,reportPrivateInBaseOfClassExpression:ne,reportLikelyUnsafeImportRequiredError:Ie,reportTruncationError:De,moduleResolverHost:N,trackReferencedAmbientModule:J,trackExternalModuleSymbolOfImportTypeNode:xe,reportNonlocalAugmentation:Le,reportNonSerializableProperty:Et},w,j,K,Y,B,ce,z=e.getEmitResolver(),ee=e.getCompilerOptions(),{noResolve:me,stripInternal:ge}=ee;return ze;function q(G){if(G){h=h||new Set;for(let et of G)h.add(et)}}function J(G,et){let Tt=z.getTypeReferenceDirectivesForSymbol(et,-1);if(Nn(Tt))return q(Tt);let He=Gn(G);Y.set(kd(He),He)}function re(G){let et=Zx(G),Tt=et&&z.tryFindAmbientModule(et);if(Tt?.declarations)for(let He of Tt.declarations)Pd(He)&&Gn(He)!==K&&J(He,Tt)}function pe(G){if(G.accessibility===0){if(G.aliasesToMakeVisible)if(!m)m=G.aliasesToMakeVisible;else for(let et of G.aliasesToMakeVisible)yf(m,et)}else{let et=r(G);if(et)return et.typeName?e.addDiagnostic(Pr(G.errorNode||et.errorNode,et.diagnosticMessage,uc(et.typeName),G.errorSymbolName,G.errorModuleName)):e.addDiagnostic(Pr(G.errorNode||et.errorNode,et.diagnosticMessage,G.errorSymbolName,G.errorModuleName)),!0}return!1}function xe(G){o||(S||(S=[])).push(G)}function fe(G,et,Tt){if(G.flags&262144)return!1;let He=pe(z.isSymbolAccessible(G,et,Tt,!0));return q(z.getTypeReferenceDirectivesForSymbol(G,Tt)),He}function ne(G){(w||j)&&e.addDiagnostic(Pr(w||j,f.Property_0_of_exported_class_expression_may_not_be_private_or_protected,G))}function he(){return w?As(w):j&&No(j)?As(No(j)):j&&Ll(j)?j.isExportEquals?"export=":"default":"(Missing)"}function Ce(){(w||j)&&e.addDiagnostic(Pr(w||j,f.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,he(),"unique symbol"))}function Ge(){(w||j)&&e.addDiagnostic(Pr(w||j,f.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,he()))}function ve(){(w||j)&&e.addDiagnostic(Pr(w||j,f.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,he(),"this"))}function Ie(G){(w||j)&&e.addDiagnostic(Pr(w||j,f.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,he(),G))}function De(){(w||j)&&e.addDiagnostic(Pr(w||j,f.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function Le(G,et,Tt){var He;let pt=(He=et.declarations)==null?void 0:He.find(hn=>Gn(hn)===G),Ft=jr(Tt.declarations,hn=>Gn(hn)!==G);if(pt&&Ft)for(let hn of Ft)e.addDiagnostic(Ma(Pr(hn,f.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),Pr(pt,f.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function Et(G){(w||j)&&e.addDiagnostic(Pr(w||j,f.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,G))}function be(G,et){let Tt=r;r=pt=>pt.errorNode&&H3(pt.errorNode)?Vy(pt.errorNode)(pt):{diagnosticMessage:pt.errorModuleName?f.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:f.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:pt.errorNode||G};let He=z.getDeclarationStatementsForSourceFile(G,HT,D,et);return r=Tt,He}function ze(G){if(G.kind===312&&G.isDeclarationFile)return G;if(G.kind===313){o=!0,Y=new Map,B=new Map;let Me=!1,Pt=A.createBundle(mn(G.sourceFiles,H=>{if(H.isDeclarationFile)return;if(Me=Me||H.hasNoDefaultLib,K=H,p=H,m=void 0,E=!1,y=new Map,r=t,l=!1,d=!1,tt(H,Y),Wt(H,B),wp(H)||Jf(H)){s=!1,i=!1;let We=lu(H)?A.createNodeArray(be(H,!0)):zn(H.statements,si,Hi);return A.updateSourceFile(H,[A.createModuleDeclaration([A.createModifier(138)],A.createStringLiteral(i6(e.getEmitHost(),H)),A.createModuleBlock(at(A.createNodeArray(Ye(We)),H.statements)))],!0,[],[],!1,[])}i=!0;let ue=lu(H)?A.createNodeArray(be(H)):zn(H.statements,si,Hi);return A.updateSourceFile(H,Ye(ue),!0,[],[],!1,[])}),to(G.prepends,H=>{if(H.kind===315){let ue=FU(H,"dts",ge);return Me=Me||!!ue.hasNoDefaultLib,tt(ue,Y),q(mn(ue.typeReferenceDirectives,We=>[We.fileName,We.resolutionMode])),Wt(ue,B),ue}return H}));Pt.syntheticFileReferences=[],Pt.syntheticTypeReferences=dn(),Pt.syntheticLibReferences=hn(),Pt.hasNoDefaultLib=Me;let k=oi(Nd(BP(G,N,!0).declarationFilePath)),ie=U(Pt.syntheticFileReferences,k);return Y.forEach(ie),Pt}i=!0,l=!1,d=!1,p=G,K=G,r=t,o=!1,s=!1,E=!1,m=void 0,y=new Map,h=void 0,Y=tt(K,new Map),B=Wt(K,new Map);let et=[],Tt=oi(Nd(BP(G,N,!0).declarationFilePath)),He=U(et,Tt),pt;if(lu(K))pt=A.createNodeArray(be(G)),Y.forEach(He),ce=jr(pt,pT);else{let Me=zn(G.statements,si,Hi);pt=at(A.createNodeArray(Ye(Me)),G.statements),Y.forEach(He),ce=jr(pt,pT),oc(G)&&(!s||l&&!d)&&(pt=at(A.createNodeArray([...pt,Gk(A)]),pt))}let Ft=A.updateSourceFile(G,pt,!0,et,dn(),G.hasNoDefaultLib,hn());return Ft.exportedModulesFromDeclarationEmit=S,Ft;function hn(){return Oo(B.keys(),Me=>({fileName:Me,pos:-1,end:-1}))}function dn(){return h?to(Oo(h.keys()),un):[]}function un([Me,Pt]){if(ce){for(let k of ce)if(Zc(k)&&bh(k.moduleReference)){let ie=k.moduleReference.expression;if(ss(ie)&&ie.text===Me)return}else if(Mc(k)&&Ca(k.moduleSpecifier)&&k.moduleSpecifier.text===Me)return}return{fileName:Me,pos:-1,end:-1,...Pt?{resolutionMode:Pt}:void 0}}function U(Me,Pt){return k=>{if(S?.includes(k.symbol))return;let ie;if(k.isDeclarationFile)ie=k.fileName;else{if(o&&zo(G.sourceFiles,k))return;let H=BP(k,N,!0);ie=H.declarationFilePath||H.jsFilePath||k.fileName}if(ie){let H=x3(ee,K,_o(Pt,N.getCurrentDirectory()),_o(ie,N.getCurrentDirectory()),N);if(!Lp(H)){q([[H,void 0]]);return}let ue=_I(Pt,ie,N.getCurrentDirectory(),N.getCanonicalFileName,!1);if(ao(ue,"./")&&mI(ue)&&(ue=ue.substring(2)),ao(ue,"node_modules/")||AE(ue))return;Me.push({pos:-1,end:-1,fileName:ue})}}}}function tt(G,et){return me||!WT(G)&&lu(G)||gn(G.referencedFiles,Tt=>{let He=N.getSourceFileFromReference(G,Tt);He&&et.set(kd(He),He)}),et}function Wt(G,et){return gn(G.libReferenceDirectives,Tt=>{N.getLibFileFromReference(Tt)&&et.set(oh(Tt.fileName),!0)}),et}function _t(G){if(G.kind===80)return G;return G.kind===207?A.updateArrayBindingPattern(G,zn(G.elements,et,dF)):A.updateObjectBindingPattern(G,zn(G.elements,et,Xa));function et(Tt){return Tt.kind===232?Tt:(Tt.propertyName&&Ya(Tt.propertyName)&&Bl(Tt.propertyName.expression)&&Li(Tt.propertyName.expression,p),A.updateBindingElement(Tt,Tt.dotDotDotToken,Tt.propertyName,_t(Tt.name),ft(Tt)?Tt.initializer:void 0))}}function Je(G,et,Tt){let He;E||(He=r,r=Vy(G));let pt=A.updateParameterDeclaration(G,fVe(A,G,et),G.dotDotDotToken,_t(G.name),z.isOptionalParameter(G)?G.questionToken||A.createToken(58):void 0,en(G,Tt||G.type,!0),Zt(G));return E||(r=He),pt}function ft(G){return mVe(G)&&z.isLiteralConstDeclaration(Ro(G))}function Zt(G){if(ft(G))return z.createLiteralConstValue(Ro(G),D)}function en(G,et,Tt){if(!Tt&&fp(G,2)||ft(G))return;let He=G.kind===169&&(z.isRequiredInitializedParameter(G)||z.isOptionalUninitializedParameterProperty(G));if(et&&!He)return Qe(et,Ot,ji);if(!Ro(G))return et?Qe(et,Ot,ji):A.createKeywordTypeNode(133);if(G.kind===178)return A.createKeywordTypeNode(133);w=G.name;let pt;if(E||(pt=r,r=Vy(G)),G.kind===260||G.kind===208)return Ft(z.createTypeOfDeclaration(G,p,HT,D));if(G.kind===169||G.kind===172||G.kind===171)return _p(G)||!G.initializer?Ft(z.createTypeOfDeclaration(G,p,HT,D,He)):Ft(z.createTypeOfDeclaration(G,p,HT,D,He)||z.createTypeOfExpression(G.initializer,p,HT,D));return Ft(z.createReturnTypeOfSignatureDeclaration(G,p,HT,D));function Ft(hn){return w=void 0,E||(r=pt),hn||A.createKeywordTypeNode(133)}}function Dn(G){switch(G=Ro(G),G.kind){case 262:case 267:case 264:case 263:case 265:case 266:return!z.isDeclarationVisible(G);case 260:return!pn(G);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function Kn(G){var et;if(G.body)return!0;let Tt=(et=G.symbol.declarations)==null?void 0:et.filter(He=>Ec(He)&&!He.body);return!Tt||Tt.indexOf(G)===Tt.length-1}function pn(G){return Gc(G)?!1:$o(G.name)?gt(G.name.elements,pn):z.isDeclarationVisible(G)}function Yt(G,et,Tt){if(fp(G,2))return A.createNodeArray();let He=mn(et,pt=>Je(pt,Tt));return He?A.createNodeArray(He,et.hasTrailingComma):A.createNodeArray()}function qt(G,et){let Tt;if(!et){let He=L0(G);He&&(Tt=[Je(He)])}if(hp(G)){let He;if(!et){let pt=CN(G);if(pt){let Ft=ke(G,z.getAllAccessorDeclarations(G));He=Je(pt,void 0,Ft)}}He||(He=A.createParameterDeclaration(void 0,void 0,"value")),Tt=Tn(Tt,He)}return A.createNodeArray(Tt||Xe)}function hi(G,et){return fp(G,2)?void 0:zn(et,Ot,fl)}function uo(G){return Yi(G)||Tm(G)||ql(G)||Sc(G)||fu(G)||Yo(G)||V0(G)||DR(G)}function Li(G,et){let Tt=z.isEntityNameVisible(G,et);pe(Tt),q(z.getTypeReferenceDirectivesForEntityName(G))}function Eo(G,et){return kp(G)&&kp(et)&&(G.jsDoc=et.jsDoc),ic(G,C_(et))}function Qn(G,et){if(et){if(s=s||G.kind!==267&&G.kind!==205,ss(et))if(o){let Tt=Cie(e.getEmitHost(),z,G);if(Tt)return A.createStringLiteral(Tt)}else{let Tt=z.getSymbolOfExternalModuleSpecifier(et);Tt&&(S||(S=[])).push(Tt)}return et}}function Ur(G){if(z.isDeclarationVisible(G))if(G.moduleReference.kind===283){let et=gN(G);return A.updateImportEqualsDeclaration(G,G.modifiers,G.isTypeOnly,G.name,A.updateExternalModuleReference(G.moduleReference,Qn(G,et)))}else{let et=r;return r=Vy(G),Li(G.moduleReference,p),r=et,G}}function Er(G){if(!G.importClause)return A.updateImportDeclaration(G,G.modifiers,G.importClause,Qn(G,G.moduleSpecifier),on(G.attributes));let et=G.importClause&&G.importClause.name&&z.isDeclarationVisible(G.importClause)?G.importClause.name:void 0;if(!G.importClause.namedBindings)return et&&A.updateImportDeclaration(G,G.modifiers,A.updateImportClause(G.importClause,G.importClause.isTypeOnly,et,void 0),Qn(G,G.moduleSpecifier),on(G.attributes));if(G.importClause.namedBindings.kind===274){let He=z.isDeclarationVisible(G.importClause.namedBindings)?G.importClause.namedBindings:void 0;return et||He?A.updateImportDeclaration(G,G.modifiers,A.updateImportClause(G.importClause,G.importClause.isTypeOnly,et,He),Qn(G,G.moduleSpecifier),on(G.attributes)):void 0}let Tt=to(G.importClause.namedBindings.elements,He=>z.isDeclarationVisible(He)?He:void 0);if(Tt&&Tt.length||et)return A.updateImportDeclaration(G,G.modifiers,A.updateImportClause(G.importClause,G.importClause.isTypeOnly,et,Tt&&Tt.length?A.updateNamedImports(G.importClause.namedBindings,Tt):void 0),Qn(G,G.moduleSpecifier),on(G.attributes));if(z.isImportRequiredByAugmentation(G))return A.updateImportDeclaration(G,G.modifiers,void 0,Qn(G,G.moduleSpecifier),on(G.attributes))}function on(G){let et=$R(G);return G&&et!==void 0?G:void 0}function Ye(G){for(;Nn(m);){let Tt=m.shift();if(!RF(Tt))return R.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${R.formatSyntaxKind(Tt.kind)}`);let He=i;i=Tt.parent&&Yi(Tt.parent)&&!(oc(Tt.parent)&&o);let pt=Ao(Tt);i=He,y.set(kd(Tt),pt)}return zn(G,et,Hi);function et(Tt){if(RF(Tt)){let He=kd(Tt);if(y.has(He)){let pt=y.get(He);return y.delete(He),pt&&((So(pt)?gt(pt,uF):uF(pt))&&(l=!0),Yi(Tt.parent)&&(So(pt)?gt(pt,s2):s2(pt))&&(s=!0)),pt}}return Tt}}function Ot(G){if(Be(G)||Ud(G)&&(Dn(G)||Wv(G)&&!z.isLateBound(Ro(G)))||Yo(G)&&z.isImplementationOfOverload(G)||yae(G))return;let et;uo(G)&&(et=p,p=G);let Tt=r,He=H3(G),pt=E,Ft=(G.kind===187||G.kind===200)&&G.parent.kind!==265;if((Ul(G)||hh(G))&&fp(G,2))return G.symbol&&G.symbol.declarations&&G.symbol.declarations[0]!==G?void 0:hn(A.createPropertyDeclaration(Dt(G),G.name,void 0,void 0,void 0));if(He&&!E&&(r=Vy(G)),YI(G)&&Li(G.exprName,p),Ft&&(E=!0),hVe(G))switch(G.kind){case 233:{(Xu(G.expression)||Bl(G.expression))&&Li(G.expression,p);let dn=Sn(G,Ot,e);return hn(A.updateExpressionWithTypeArguments(dn,dn.expression,dn.typeArguments))}case 183:{Li(G.typeName,p);let dn=Sn(G,Ot,e);return hn(A.updateTypeReferenceNode(dn,dn.typeName,dn.typeArguments))}case 180:return hn(A.updateConstructSignature(G,hi(G,G.typeParameters),Yt(G,G.parameters),en(G,G.type)));case 176:{let dn=A.createConstructorDeclaration(Dt(G),Yt(G,G.parameters,0),void 0);return hn(dn)}case 174:{if(Ki(G.name))return hn(void 0);let dn=A.createMethodDeclaration(Dt(G),void 0,G.name,G.questionToken,hi(G,G.typeParameters),Yt(G,G.parameters),en(G,G.type),void 0);return hn(dn)}case 177:{if(Ki(G.name))return hn(void 0);let dn=ke(G,z.getAllAccessorDeclarations(G));return hn(A.updateGetAccessorDeclaration(G,Dt(G),G.name,qt(G,fp(G,2)),en(G,dn),void 0))}case 178:return Ki(G.name)?hn(void 0):hn(A.updateSetAccessorDeclaration(G,Dt(G),G.name,qt(G,fp(G,2)),void 0));case 172:return Ki(G.name)?hn(void 0):hn(A.updatePropertyDeclaration(G,Dt(G),G.name,G.questionToken,en(G,G.type),Zt(G)));case 171:return Ki(G.name)?hn(void 0):hn(A.updatePropertySignature(G,Dt(G),G.name,G.questionToken,en(G,G.type)));case 173:return Ki(G.name)?hn(void 0):hn(A.updateMethodSignature(G,Dt(G),G.name,G.questionToken,hi(G,G.typeParameters),Yt(G,G.parameters),en(G,G.type)));case 179:return hn(A.updateCallSignature(G,hi(G,G.typeParameters),Yt(G,G.parameters),en(G,G.type)));case 181:return hn(A.updateIndexSignature(G,Dt(G),Yt(G,G.parameters),Qe(G.type,Ot,ji)||A.createKeywordTypeNode(133)));case 260:return $o(G.name)?Ba(G.name):(Ft=!0,E=!0,hn(A.updateVariableDeclaration(G,G.name,void 0,en(G,G.type),Zt(G))));case 168:return In(G)&&(G.default||G.constraint)?hn(A.updateTypeParameterDeclaration(G,G.modifiers,G.name,void 0,void 0)):hn(Sn(G,Ot,e));case 194:{let dn=Qe(G.checkType,Ot,ji),un=Qe(G.extendsType,Ot,ji),U=p;p=G.trueType;let Me=Qe(G.trueType,Ot,ji);p=U;let Pt=Qe(G.falseType,Ot,ji);return R.assert(dn),R.assert(un),R.assert(Me),R.assert(Pt),hn(A.updateConditionalTypeNode(G,dn,un,Me,Pt))}case 184:return hn(A.updateFunctionTypeNode(G,zn(G.typeParameters,Ot,fl),Yt(G,G.parameters),R.checkDefined(Qe(G.type,Ot,ji))));case 185:return hn(A.updateConstructorTypeNode(G,Dt(G),zn(G.typeParameters,Ot,fl),Yt(G,G.parameters),R.checkDefined(Qe(G.type,Ot,ji))));case 205:return Ov(G)?(re(G),hn(A.updateImportTypeNode(G,A.updateLiteralTypeNode(G.argument,Qn(G,G.argument.literal)),G.attributes,G.qualifier,zn(G.typeArguments,Ot,ji),G.isTypeOf))):hn(G);default:R.assertNever(G,`Attempted to process unhandled node kind: ${R.formatSyntaxKind(G.kind)}`)}return $I(G)&&gs(K,G.pos).line===gs(K,G.end).line&&lr(G,1),hn(Sn(G,Ot,e));function hn(dn){return dn&&He&&Wv(G)&&kn(G),uo(G)&&(p=et),He&&!E&&(r=Tt),Ft&&(E=pt),dn===G?dn:dn&&Rr(Eo(dn,G),G)}}function In(G){return G.parent.kind===174&&fp(G.parent,2)}function si(G){if(!_Ve(G)||Be(G))return;switch(G.kind){case 278:return Yi(G.parent)&&(s=!0),d=!0,re(G),A.updateExportDeclaration(G,G.modifiers,G.isTypeOnly,G.exportClause,Qn(G,G.moduleSpecifier),on(G.attributes));case 277:{if(Yi(G.parent)&&(s=!0),d=!0,G.expression.kind===80)return G;{let Tt=A.createUniqueName("_default",16);r=()=>({diagnosticMessage:f.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:G}),j=G;let He=A.createVariableDeclaration(Tt,void 0,z.createTypeOfExpression(G.expression,G,HT,D),void 0);j=void 0;let pt=A.createVariableStatement(i?[A.createModifier(138)]:[],A.createVariableDeclarationList([He],2));return Eo(pt,G),Ak(G),[pt,A.updateExportAssignment(G,G.modifiers,Tt)]}}}let et=Ao(G);return y.set(kd(G),et),G}function yi(G){if(Zc(G)||fp(G,2048)||!Am(G))return G;let et=A.createModifiersFromModifierFlags(cu(G)&131039);return A.replaceModifiers(G,et)}function $i(G,et,Tt,He){let pt=A.updateModuleDeclaration(G,et,Tt,He);if(Pd(pt)||pt.flags&32)return pt;let Ft=A.createModuleDeclaration(pt.modifiers,pt.name,pt.body,pt.flags|32);return Rr(Ft,pt),at(Ft,pt),Ft}function Ao(G){if(m)for(;Sx(m,G););if(Be(G))return;switch(G.kind){case 271:{let hn=Ur(G);return hn&&re(G),hn}case 272:{let hn=Er(G);return hn&&re(G),hn}}if(Ud(G)&&Dn(G)||Yo(G)&&z.isImplementationOfOverload(G))return;let et;uo(G)&&(et=p,p=G);let Tt=H3(G),He=r;Tt&&(r=Vy(G));let pt=i;switch(G.kind){case 265:{i=!1;let hn=Ft(A.updateTypeAliasDeclaration(G,Dt(G),G.name,zn(G.typeParameters,Ot,fl),R.checkDefined(Qe(G.type,Ot,ji))));return i=pt,hn}case 264:return Ft(A.updateInterfaceDeclaration(G,Dt(G),G.name,hi(G,G.typeParameters),st(G.heritageClauses),zn(G.members,Ot,lT)));case 262:{let hn=Ft(A.updateFunctionDeclaration(G,Dt(G),void 0,G.name,hi(G,G.typeParameters),Yt(G,G.parameters),en(G,G.type),void 0));if(hn&&z.isExpandoFunctionDeclaration(G)&&Kn(G)){let dn=z.getPropertiesOfContainerFunction(G),un=Eh.createModuleDeclaration(void 0,hn.name||A.createIdentifier("_default"),A.createModuleBlock([]),32);ja(un,p),un.locals=oa(dn),un.symbol=dn[0].parent;let U=[],Me=to(dn,We=>{if(!j6(We.valueDeclaration))return;let Ne=Vi(We.escapedName);if(!$p(Ne,99))return;r=Vy(We.valueDeclaration);let It=z.createTypeOfDeclaration(We.valueDeclaration,un,HT,D);r=He;let Ct=CI(Ne),Kt=Ct?A.getGeneratedNameForNode(We.valueDeclaration):A.createIdentifier(Ne);Ct&&U.push([Kt,Ne]);let En=A.createVariableDeclaration(Kt,void 0,It,void 0);return A.createVariableStatement(Ct?void 0:[A.createToken(95)],A.createVariableDeclarationList([En]))});U.length?Me.push(A.createExportDeclaration(void 0,!1,A.createNamedExports(mn(U,([We,Ne])=>A.createExportSpecifier(!1,We,Ne))))):Me=to(Me,We=>A.replaceModifiers(We,0));let Pt=A.createModuleDeclaration(Dt(G),G.name,A.createModuleBlock(Me),32);if(!fp(hn,2048))return[hn,Pt];let k=A.createModifiersFromModifierFlags(cu(hn)&-2081|128),ie=A.updateFunctionDeclaration(hn,k,void 0,hn.name,hn.typeParameters,hn.parameters,hn.type,void 0),H=A.updateModuleDeclaration(Pt,k,Pt.name,Pt.body),ue=A.createExportAssignment(void 0,!1,Pt.name);return Yi(G.parent)&&(s=!0),d=!0,[ie,H,ue]}else return hn}case 267:{i=!1;let hn=G.body;if(hn&&hn.kind===268){let dn=l,un=d;d=!1,l=!1;let U=zn(hn.statements,si,Hi),Me=Ye(U);G.flags&33554432&&(l=!1),!E_(G)&&!lt(Me)&&!d&&(l?Me=A.createNodeArray([...Me,Gk(A)]):Me=zn(Me,yi,Hi));let Pt=A.updateModuleBlock(hn,Me);i=pt,l=dn,d=un;let k=Dt(G);return Ft($i(G,k,A0(G)?Qn(G,G.name):G.name,Pt))}else{i=pt;let dn=Dt(G);i=!1,Qe(hn,si);let un=kd(hn),U=y.get(un);return y.delete(un),Ft($i(G,dn,G.name,U))}}case 263:{w=G.name,j=G;let hn=A.createNodeArray(Dt(G)),dn=hi(G,G.typeParameters),un=eg(G),U;if(un){let ue=r;U=TL(va(un.parameters,We=>{if(!Qr(We,31)||Be(We))return;if(r=Vy(We),We.name.kind===80)return Eo(A.createPropertyDeclaration(Dt(We),We.name,We.questionToken,en(We,We.type),Zt(We)),We);return Ne(We.name);function Ne(It){let Ct;for(let Kt of It.elements)Gc(Kt)||($o(Kt.name)&&(Ct=bo(Ct,Ne(Kt.name))),Ct=Ct||[],Ct.push(A.createPropertyDeclaration(Dt(We),Kt.name,void 0,en(Kt,void 0),void 0)));return Ct}})),r=ue}let Pt=gt(G.members,ue=>!!ue.name&&Ki(ue.name))?[A.createPropertyDeclaration(void 0,A.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,k=bo(bo(Pt,U),zn(G.members,Ot,Xc)),ie=A.createNodeArray(k),H=S_(G);if(H&&!Bl(H.expression)&&H.expression.kind!==106){let ue=G.name?Vi(G.name.escapedText):"default",We=A.createUniqueName(`${ue}_base`,16);r=()=>({diagnosticMessage:f.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:H,typeName:G.name});let Ne=A.createVariableDeclaration(We,void 0,z.createTypeOfExpression(H.expression,G,HT,D),void 0),It=A.createVariableStatement(i?[A.createModifier(138)]:[],A.createVariableDeclarationList([Ne],2)),Ct=A.createNodeArray(mn(G.heritageClauses,Kt=>{if(Kt.token===96){let En=r;r=Vy(Kt.types[0]);let wn=A.updateHeritageClause(Kt,mn(Kt.types,Bn=>A.updateExpressionWithTypeArguments(Bn,We,zn(Bn.typeArguments,Ot,ji))));return r=En,wn}return A.updateHeritageClause(Kt,zn(A.createNodeArray(jr(Kt.types,En=>Bl(En.expression)||En.expression.kind===106)),Ot,By))}));return[It,Ft(A.updateClassDeclaration(G,hn,G.name,dn,Ct,ie))]}else{let ue=st(G.heritageClauses);return Ft(A.updateClassDeclaration(G,hn,G.name,dn,ue,ie))}}case 243:return Ft(da(G));case 266:return Ft(A.updateEnumDeclaration(G,A.createNodeArray(Dt(G)),G.name,A.createNodeArray(to(G.members,hn=>{if(Be(hn))return;let dn=z.getConstantValue(hn),un=dn===void 0?void 0:typeof dn=="string"?A.createStringLiteral(dn):dn<0?A.createPrefixUnaryExpression(41,A.createNumericLiteral(-dn)):A.createNumericLiteral(dn);return Eo(A.updateEnumMember(hn,hn.name,un),hn)}))))}return R.assertNever(G,`Unhandled top-level node in declaration emit: ${R.formatSyntaxKind(G.kind)}`);function Ft(hn){return uo(G)&&(p=et),Tt&&(r=He),G.kind===267&&(i=pt),hn===G?hn:(j=void 0,w=void 0,hn&&Rr(Eo(hn,G),G))}}function da(G){if(!gn(G.declarationList.declarations,pn))return;let et=zn(G.declarationList.declarations,Ot,Oi);if(!Nn(et))return;let Tt=A.createNodeArray(Dt(G)),He;return b2(G.declarationList)||v2(G.declarationList)?(He=A.createVariableDeclarationList(et,2),Rr(He,G.declarationList),at(He,G.declarationList),ic(He,G.declarationList)):He=A.updateVariableDeclarationList(G.declarationList,et),A.updateVariableStatement(G,Tt,He)}function Ba(G){return pm(to(G.elements,et=>vn(et)))}function vn(G){if(G.kind!==232&&G.name)return pn(G)?$o(G.name)?Ba(G.name):A.createVariableDeclaration(G.name,void 0,en(G,void 0),void 0):void 0}function kn(G){let et;E||(et=r,r=Wle(G)),w=G.name,R.assert(z.isLateBound(Ro(G)));let He=G.name.expression;Li(He,p),E||(r=et),w=void 0}function Be(G){return!!ge&&!!G&&zV(G,K)}function ct(G){return Ll(G)||Xl(G)}function lt(G){return gt(G,ct)}function Dt(G){let et=cu(G),Tt=se(G);return et===Tt?bw(G.modifiers,He=>ri(He,Ta),Ta):A.createModifiersFromModifierFlags(Tt)}function se(G){let et=130030,Tt=i&&!pVe(G)?128:0,He=G.parent.kind===312;return(!He||o&&He&&oc(G.parent))&&(et^=128,Tt=0),KIe(G,et,Tt)}function ke(G,et){let Tt=zle(G);return!Tt&&G!==et.firstAccessor&&(Tt=zle(et.firstAccessor),r=Vy(et.firstAccessor)),!Tt&&et.secondAccessor&&G!==et.secondAccessor&&(Tt=zle(et.secondAccessor),r=Vy(et.secondAccessor)),Tt}function st(G){return A.createNodeArray(jr(mn(G,et=>A.updateHeritageClause(et,zn(A.createNodeArray(jr(et.types,Tt=>Bl(Tt.expression)||et.token===96&&Tt.expression.kind===106)),Ot,By))),et=>et.types&&!!et.types.length))}}function pVe(e){return e.kind===264}function fVe(e,t,r,i){return e.createModifiersFromModifierFlags(KIe(t,r,i))}function KIe(e,t=131070,r=0){let i=cu(e)&t|r;return i&2048&&!(i&32)&&(i^=32),i&2048&&i&128&&(i^=128),i}function zle(e){if(e)return e.kind===177?e.type:e.parameters.length>0?e.parameters[0].type:void 0}function mVe(e){switch(e.kind){case 172:case 171:return!fp(e,2);case 169:case 260:return!0}return!1}function _Ve(e){switch(e.kind){case 262:case 267:case 271:case 264:case 263:case 265:case 266:case 243:case 272:case 278:case 277:return!0}return!1}function hVe(e){switch(e.kind){case 180:case 176:case 174:case 177:case 178:case 172:case 171:case 173:case 179:case 181:case 260:case 168:case 233:case 183:case 194:case 184:case 185:case 205:return!0}return!1}var HT,gVe=bt({"src/compiler/transformers/declarations.ts"(){"use strict";Zo(),Use(),HT=531469}});function yVe(e){switch(e){case 99:case 7:case 6:case 5:case 200:return GK;case 4:return wle;case 100:case 199:return Ole;default:return BK}}function jK(e,t,r){return{scriptTransformers:vVe(e,t,r),declarationTransformers:bVe(t)}}function vVe(e,t,r){if(r)return Xe;let i=rs(e),o=Md(e),s=nP(e),l=[];return Hr(l,t&&mn(t.before,qIe)),l.push(hle),e.experimentalDecorators&&l.push(vle),R6(e)&&l.push(Nle),i<99&&l.push(xle),!e.experimentalDecorators&&(i<99||!s)&&l.push(ble),l.push(gle),i<8&&l.push(Ile),i<7&&l.push(Ale),i<6&&l.push(Tle),i<5&&l.push(Sle),i<4&&l.push(Ele),i<3&&l.push(Ple),i<2&&(l.push(Mle),l.push(kle)),l.push(yVe(o)),i<1&&l.push(Lle),Hr(l,t&&mn(t.after,qIe)),l}function bVe(e){let t=[];return t.push(VK),Hr(t,e&&mn(e.afterDeclarations,SVe)),t}function EVe(e){return t=>aH(t)?e.transformBundle(t):e.transformSourceFile(t)}function JIe(e,t){return r=>{let i=e(r);return typeof i=="function"?t(r,i):EVe(i)}}function qIe(e){return JIe(e,Im)}function SVe(e){return JIe(e,(t,r)=>r)}function WP(e,t){return t}function Aw(e,t,r){r(e,t)}function Iw(e,t,r,i,o,s,l){var d,p;let h=new Array(363),m,y,E,S=0,A=[],N=[],D=[],w=[],j=0,K=!1,Y=[],B=0,ce,z,ee=WP,me=Aw,ge=0,q=[],J={factory:r,getCompilerOptions:()=>i,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:bu(()=>iae(J)),startLexicalEnvironment:be,suspendLexicalEnvironment:ze,resumeLexicalEnvironment:tt,endLexicalEnvironment:Wt,setLexicalEnvironmentFlags:_t,getLexicalEnvironmentFlags:Je,hoistVariableDeclaration:De,hoistFunctionDeclaration:Le,addInitializationStatement:Et,startBlockScope:ft,endBlockScope:Zt,addBlockScopedVariable:en,requestEmitHelper:Dn,readEmitHelpers:Kn,enableSubstitution:ne,enableEmitNotification:Ge,isSubstitutionEnabled:he,isEmitNotificationEnabled:ve,get onSubstituteNode(){return ee},set onSubstituteNode(Yt){R.assert(ge<1,"Cannot modify transformation hooks after initialization has completed."),R.assert(Yt!==void 0,"Value must not be 'undefined'"),ee=Yt},get onEmitNode(){return me},set onEmitNode(Yt){R.assert(ge<1,"Cannot modify transformation hooks after initialization has completed."),R.assert(Yt!==void 0,"Value must not be 'undefined'"),me=Yt},addDiagnostic(Yt){q.push(Yt)}};for(let Yt of o)VU(Gn(Ro(Yt)));el("beforeTransform");let re=s.map(Yt=>Yt(J)),pe=Yt=>{for(let qt of re)Yt=qt(Yt);return Yt};ge=1;let xe=[];for(let Yt of o)(d=rr)==null||d.push(rr.Phase.Emit,"transformNodes",Yt.kind===312?{path:Yt.path}:{kind:Yt.kind,pos:Yt.pos,end:Yt.end}),xe.push((l?pe:fe)(Yt)),(p=rr)==null||p.pop();return ge=2,el("afterTransform"),Yp("transformTime","beforeTransform","afterTransform"),{transformed:xe,substituteNode:Ce,emitNodeWithNotification:Ie,isEmitNotificationEnabled:ve,dispose:pn,diagnostics:q};function fe(Yt){return Yt&&(!Yi(Yt)||!Yt.isDeclarationFile)?pe(Yt):Yt}function ne(Yt){R.assert(ge<2,"Cannot modify the transformation context after transformation has completed."),h[Yt]|=1}function he(Yt){return(h[Yt.kind]&1)!==0&&(za(Yt)&8)===0}function Ce(Yt,qt){return R.assert(ge<3,"Cannot substitute a node after the result is disposed."),qt&&he(qt)&&ee(Yt,qt)||qt}function Ge(Yt){R.assert(ge<2,"Cannot modify the transformation context after transformation has completed."),h[Yt]|=2}function ve(Yt){return(h[Yt.kind]&2)!==0||(za(Yt)&4)!==0}function Ie(Yt,qt,hi){R.assert(ge<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),qt&&(ve(qt)?me(Yt,qt,hi):hi(Yt,qt))}function De(Yt){R.assert(ge>0,"Cannot modify the lexical environment during initialization."),R.assert(ge<2,"Cannot modify the lexical environment after transformation has completed.");let qt=lr(r.createVariableDeclaration(Yt),128);m?m.push(qt):m=[qt],S&1&&(S|=2)}function Le(Yt){R.assert(ge>0,"Cannot modify the lexical environment during initialization."),R.assert(ge<2,"Cannot modify the lexical environment after transformation has completed."),lr(Yt,2097152),y?y.push(Yt):y=[Yt]}function Et(Yt){R.assert(ge>0,"Cannot modify the lexical environment during initialization."),R.assert(ge<2,"Cannot modify the lexical environment after transformation has completed."),lr(Yt,2097152),E?E.push(Yt):E=[Yt]}function be(){R.assert(ge>0,"Cannot modify the lexical environment during initialization."),R.assert(ge<2,"Cannot modify the lexical environment after transformation has completed."),R.assert(!K,"Lexical environment is suspended."),A[j]=m,N[j]=y,D[j]=E,w[j]=S,j++,m=void 0,y=void 0,E=void 0,S=0}function ze(){R.assert(ge>0,"Cannot modify the lexical environment during initialization."),R.assert(ge<2,"Cannot modify the lexical environment after transformation has completed."),R.assert(!K,"Lexical environment is already suspended."),K=!0}function tt(){R.assert(ge>0,"Cannot modify the lexical environment during initialization."),R.assert(ge<2,"Cannot modify the lexical environment after transformation has completed."),R.assert(K,"Lexical environment is not suspended."),K=!1}function Wt(){R.assert(ge>0,"Cannot modify the lexical environment during initialization."),R.assert(ge<2,"Cannot modify the lexical environment after transformation has completed."),R.assert(!K,"Lexical environment is suspended.");let Yt;if(m||y||E){if(y&&(Yt=[...y]),m){let qt=r.createVariableStatement(void 0,r.createVariableDeclarationList(m));lr(qt,2097152),Yt?Yt.push(qt):Yt=[qt]}E&&(Yt?Yt=[...Yt,...E]:Yt=[...E])}return j--,m=A[j],y=N[j],E=D[j],S=w[j],j===0&&(A=[],N=[],D=[],w=[]),Yt}function _t(Yt,qt){S=qt?S|Yt:S&~Yt}function Je(){return S}function ft(){R.assert(ge>0,"Cannot start a block scope during initialization."),R.assert(ge<2,"Cannot start a block scope after transformation has completed."),Y[B]=ce,B++,ce=void 0}function Zt(){R.assert(ge>0,"Cannot end a block scope during initialization."),R.assert(ge<2,"Cannot end a block scope after transformation has completed.");let Yt=gt(ce)?[r.createVariableStatement(void 0,r.createVariableDeclarationList(ce.map(qt=>r.createVariableDeclaration(qt)),1))]:void 0;return B--,ce=Y[B],B===0&&(Y=[]),Yt}function en(Yt){R.assert(B>0,"Cannot add a block scoped variable outside of an iteration body."),(ce||(ce=[])).push(Yt)}function Dn(Yt){if(R.assert(ge>0,"Cannot modify the transformation context during initialization."),R.assert(ge<2,"Cannot modify the transformation context after transformation has completed."),R.assert(!Yt.scoped,"Cannot request a scoped emit helper."),Yt.dependencies)for(let qt of Yt.dependencies)Dn(qt);z=Tn(z,Yt)}function Kn(){R.assert(ge>0,"Cannot modify the transformation context during initialization."),R.assert(ge<2,"Cannot modify the transformation context after transformation has completed.");let Yt=z;return z=void 0,Yt}function pn(){if(ge<3){for(let Yt of o)VU(Gn(Ro(Yt)));m=void 0,A=void 0,y=void 0,N=void 0,ee=void 0,me=void 0,z=void 0,ge=3}}}var UK,FP,TVe=bt({"src/compiler/transformer.ts"(){"use strict";Zo(),nT(),UK={scriptTransformers:Xe,declarationTransformers:Xe},FP={factory:L,getCompilerOptions:()=>({}),getEmitResolver:jo,getEmitHost:jo,getEmitHelperFactory:jo,startLexicalEnvironment:qa,resumeLexicalEnvironment:qa,suspendLexicalEnvironment:qa,endLexicalEnvironment:qb,setLexicalEnvironmentFlags:qa,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:qa,hoistFunctionDeclaration:qa,addInitializationStatement:qa,startBlockScope:qa,endBlockScope:qb,addBlockScopedVariable:qa,requestEmitHelper:qa,readEmitHelpers:jo,enableSubstitution:qa,enableEmitNotification:qa,isSubstitutionEnabled:jo,isEmitNotificationEnabled:jo,onSubstituteNode:WP,onEmitNode:Aw,addDiagnostic:qa}}});function Ble(e){return Sl(e,".tsbuildinfo")}function HK(e,t,r,i=!1,o,s){let l=So(r)?r:Fj(e,r,i),d=e.getCompilerOptions();if(Rs(d)){let p=e.getPrependNodes();if(l.length||p.length){let h=L.createBundle(l,p),m=t(BP(h,e,i),h);if(m)return m}}else{if(!o)for(let p of l){let h=t(BP(p,e,i),p);if(h)return h}if(s){let p=jy(d);if(p)return t({buildInfoPath:p},void 0)}}}function jy(e){let t=e.configFilePath;if(!tP(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;let r=Rs(e),i;if(r)i=Su(r);else{if(!t)return;let o=Su(t);i=e.outDir?e.rootDir?Iv(e.outDir,_m(e.rootDir,o,!0)):$r(e.outDir,nc(o)):o}return i+".tsbuildinfo"}function zP(e,t){let r=Rs(e),i=e.emitDeclarationOnly?void 0:r,o=i&&XIe(i,e),s=t||Af(e)?Su(r)+".d.ts":void 0,l=s&&gk(e)?s+".map":void 0,d=jy(e);return{jsFilePath:i,sourceMapFilePath:o,declarationFilePath:s,declarationMapPath:l,buildInfoPath:d}}function BP(e,t,r){let i=t.getCompilerOptions();if(e.kind===313)return zP(i,r);{let o=Nie(e.fileName,t,K3(e.fileName,i)),s=Jf(e),l=s&&xg(e.fileName,o,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,d=i.emitDeclarationOnly||l?void 0:o,p=!d||Jf(e)?void 0:XIe(d,i),h=r||Af(i)&&!s?Pie(e.fileName,t):void 0,m=h&&gk(i)?h+".map":void 0;return{jsFilePath:d,sourceMapFilePath:p,declarationFilePath:h,declarationMapPath:m,buildInfoPath:void 0}}}function XIe(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function K3(e,t){return Sl(e,".json")?".json":t.jsx===1&&bc(e,[".jsx",".tsx"])?".jsx":bc(e,[".mts",".mjs"])?".mjs":bc(e,[".cts",".cjs"])?".cjs":".js"}function YIe(e,t,r,i){return r?Iv(r,_m(i(),e,t)):e}function GP(e,t,r,i=()=>YR(t,r)){return KK(e,t.options,r,i)}function KK(e,t,r,i){return fE(YIe(e,r,t.declarationDir||t.outDir,i),a6(e))}function $Ie(e,t,r,i=()=>YR(t,r)){if(t.options.emitDeclarationOnly)return;let o=Sl(e,".json"),s=JK(e,t.options,r,i);return!o||xg(e,s,R.checkDefined(t.options.configFilePath),r)!==0?s:void 0}function JK(e,t,r,i){return fE(YIe(e,r,t.outDir,i),K3(e,t))}function QIe(){let e;return{addOutput:t,getOutputs:r};function t(i){i&&(e||(e=[])).push(i)}function r(){return e||Xe}}function ZIe(e,t){let{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:o,declarationMapPath:s,buildInfoPath:l}=zP(e.options,!1);t(r),t(i),t(o),t(s),t(l)}function e1e(e,t,r,i,o){if(vd(t))return;let s=$Ie(t,e,r,o);if(i(s),!Sl(t,".json")&&(s&&e.options.sourceMap&&i(`${s}.map`),Af(e.options))){let l=GP(t,e,r,o);i(l),e.options.declarationMap&&i(`${l}.map`)}}function VP(e,t,r,i,o){let s;return e.rootDir?(s=_o(e.rootDir,r),o?.(e.rootDir)):e.composite&&e.configFilePath?(s=oi(Nd(e.configFilePath)),o?.(s)):s=Kle(t(),r,i),s&&s[s.length-1]!==nl&&(s+=nl),s}function YR({options:e,fileNames:t},r){return VP(e,()=>jr(t,i=>!(e.noEmitForJsFiles&&bc(i,TR))&&!vd(i)),oi(Nd(R.checkDefined(e.configFilePath))),Cd(!r))}function J3(e,t){let{addOutput:r,getOutputs:i}=QIe();if(Rs(e.options))ZIe(e,r);else{let o=bu(()=>YR(e,t));for(let s of e.fileNames)e1e(e,s,t,r,o);r(jy(e.options))}return i()}function t1e(e,t,r){t=fa(t),R.assert(zo(e.fileNames,t),"Expected fileName to be present in command line");let{addOutput:i,getOutputs:o}=QIe();return Rs(e.options)?ZIe(e,i):e1e(e,t,r,i),o()}function qK(e,t){if(Rs(e.options)){let{jsFilePath:o,declarationFilePath:s}=zP(e.options,!1);return R.checkDefined(o||s,`project ${e.options.configFilePath} expected to have at least one output`)}let r=bu(()=>YR(e,t));for(let o of e.fileNames){if(vd(o))continue;let s=$Ie(o,e,t,r);if(s)return s;if(!Sl(o,".json")&&Af(e.options))return GP(o,e,t,r)}let i=jy(e.options);return i||R.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function q3(e,t,r,{scriptTransformers:i,declarationTransformers:o},s,l,d){var p=t.getCompilerOptions(),h=p.sourceMap||p.inlineSourceMap||gk(p)?[]:void 0,m=p.listEmittedFiles?[]:void 0,y=lR(),E=Oy(p),S=Q2(E),{enter:A,exit:N}=t9("printTime","beforePrint","afterPrint"),D,w=!1;return A(),HK(t,j,Fj(t,r,d),d,l,!r),N(),{emitSkipped:w,diagnostics:y.getDiagnostics(),emittedFiles:m,sourceMaps:h};function j({jsFilePath:J,sourceMapFilePath:re,declarationFilePath:pe,declarationMapPath:xe,buildInfoPath:fe},ne){var he,Ce,Ge,ve,Ie,De;let Le;fe&&ne&&aH(ne)&&(Le=oi(_o(fe,t.getCurrentDirectory())),D={commonSourceDirectory:Et(t.getCommonSourceDirectory()),sourceFiles:ne.sourceFiles.map(be=>Et(_o(be.fileName,t.getCurrentDirectory())))}),(he=rr)==null||he.push(rr.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:J}),Y(ne,J,re,Et),(Ce=rr)==null||Ce.pop(),(Ge=rr)==null||Ge.push(rr.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:pe}),B(ne,pe,xe,Et),(ve=rr)==null||ve.pop(),(Ie=rr)==null||Ie.push(rr.Phase.Emit,"emitBuildInfo",{buildInfoPath:fe}),K(D,fe),(De=rr)==null||De.pop();function Et(be){return g0(_m(Le,be,t.getCanonicalFileName))}}function K(J,re){if(!re||r||w)return;if(t.isEmitBlocked(re)){w=!0;return}let pe=t.getBuildInfo(J)||xw(void 0,J);RN(t,y,re,Gle(pe),!1,void 0,{buildInfo:pe}),m?.push(re)}function Y(J,re,pe,xe){if(!J||s||!re)return;if(t.isEmitBlocked(re)||p.noEmit){w=!0;return}let fe=Iw(e,t,L,p,[J],i,!1),ne={removeComments:p.removeComments,newLine:p.newLine,noEmitHelpers:p.noEmitHelpers,module:p.module,target:p.target,sourceMap:p.sourceMap,inlineSourceMap:p.inlineSourceMap,inlineSources:p.inlineSources,extendedDiagnostics:p.extendedDiagnostics,writeBundleFileInfo:!!D,relativeToBuildInfo:xe},he=IE(ne,{hasGlobalName:e.hasGlobalName,onEmitNode:fe.emitNodeWithNotification,isEmitNotificationEnabled:fe.isEmitNotificationEnabled,substituteNode:fe.substituteNode});R.assert(fe.transformed.length===1,"Should only see one output from the transform"),z(re,pe,fe,he,p),fe.dispose(),D&&(D.js=he.bundleFileInfo),m&&(m.push(re),pe&&m.push(pe))}function B(J,re,pe,xe){if(!J||s===0)return;if(!re){(s||p.emitDeclarationOnly)&&(w=!0);return}let fe=Yi(J)?[J]:J.sourceFiles,ne=d?fe:jr(fe,uj),he=Rs(p)?[L.createBundle(ne,Yi(J)?void 0:J.prepends)]:ne;s&&!Af(p)&&ne.forEach(ce);let Ce=Iw(e,t,L,p,he,o,!1);if(Nn(Ce.diagnostics))for(let ve of Ce.diagnostics)y.add(ve);let Ge=!!Ce.diagnostics&&!!Ce.diagnostics.length||!!t.isEmitBlocked(re)||!!p.noEmit;if(w=w||Ge,!Ge||d){R.assert(Ce.transformed.length===1,"Should only see one output from the decl transform");let ve={removeComments:p.removeComments,newLine:p.newLine,noEmitHelpers:!0,module:p.module,target:p.target,sourceMap:!d&&p.declarationMap,inlineSourceMap:p.inlineSourceMap,extendedDiagnostics:p.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0,writeBundleFileInfo:!!D,recordInternalSection:!!D,relativeToBuildInfo:xe},Ie=IE(ve,{hasGlobalName:e.hasGlobalName,onEmitNode:Ce.emitNodeWithNotification,isEmitNotificationEnabled:Ce.isEmitNotificationEnabled,substituteNode:Ce.substituteNode});z(re,pe,Ce,Ie,{sourceMap:ve.sourceMap,sourceRoot:p.sourceRoot,mapRoot:p.mapRoot,extendedDiagnostics:p.extendedDiagnostics}),m&&(m.push(re),pe&&m.push(pe)),D&&(D.dts=Ie.bundleFileInfo)}Ce.dispose()}function ce(J){if(Ll(J)){J.expression.kind===80&&e.collectLinkedAliases(J.expression,!0);return}else if(Hd(J)){e.collectLinkedAliases(J.propertyName||J.name,!0);return}Bo(J,ce)}function z(J,re,pe,xe,fe){let ne=pe.transformed[0],he=ne.kind===313?ne:void 0,Ce=ne.kind===312?ne:void 0,Ge=he?he.sourceFiles:[Ce],ve;ee(fe,ne)&&(ve=$se(t,nc(Nd(J)),me(fe),ge(fe,J,Ce),fe)),he?xe.writeBundle(he,S,ve):xe.writeFile(Ce,S,ve);let Ie;if(ve){h&&h.push({inputSourceFileNames:ve.getSources(),sourceMap:ve.toJSON()});let Le=q(fe,ve,J,re,Ce);if(Le&&(S.isAtStartOfLine()||S.rawWrite(E),Ie=S.getTextPos(),S.writeComment(`//# sourceMappingURL=${Le}`)),re){let Et=ve.toString();RN(t,y,re,Et,!1,Ge),xe.bundleFileInfo&&(xe.bundleFileInfo.mapHash=JT(Et,t))}}else S.writeLine();let De=S.getText();RN(t,y,J,De,!!p.emitBOM,Ge,{sourceMapUrlPos:Ie,diagnostics:pe.diagnostics}),xe.bundleFileInfo&&(xe.bundleFileInfo.hash=JT(De,t)),S.clear()}function ee(J,re){return(J.sourceMap||J.inlineSourceMap)&&(re.kind!==312||!Sl(re.fileName,".json"))}function me(J){let re=Nd(J.sourceRoot||"");return re&&Fc(re)}function ge(J,re,pe){if(J.sourceRoot)return t.getCommonSourceDirectory();if(J.mapRoot){let xe=Nd(J.mapRoot);return pe&&(xe=oi(l6(pe.fileName,t,xe))),lh(xe)===0&&(xe=$r(t.getCommonSourceDirectory(),xe)),xe}return oi(fa(re))}function q(J,re,pe,xe,fe){if(J.inlineSourceMap){let he=re.toString();return`data:application/json;base64,${$ie(md,he)}`}let ne=nc(Nd(R.checkDefined(xe)));if(J.mapRoot){let he=Nd(J.mapRoot);return fe&&(he=oi(l6(fe.fileName,t,he))),lh(he)===0?(he=$r(t.getCommonSourceDirectory(),he),encodeURI(_I(oi(fa(pe)),$r(he,ne),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI($r(he,ne))}return encodeURI(ne)}}function xw(e,t){return{bundle:t,program:e,version:qp}}function Gle(e){return JSON.stringify(e)}function X3(e,t){return qj(e,t)}function AVe(e,t,r){var i;let o=R.checkDefined(e.js),s=((i=o.sources)==null?void 0:i.prologues)&&h0(o.sources.prologues,l=>l.file);return e.sourceFiles.map((l,d)=>{let p=s?.get(d),h=p?.directives.map(E=>{let S=at(L.createStringLiteral(E.expression.text),E.expression),A=at(L.createExpressionStatement(S),E);return ja(S,A),A}),m=L.createToken(1),y=L.createSourceFile(h??[],m,0);return y.fileName=_m(r.getCurrentDirectory(),_o(l,t),!r.useCaseSensitiveFileNames()),y.text=p?.text??"",JN(y,0,p?.text.length??0),bR(y.statements,y),JN(m,y.end,0),ja(m,y),y})}function Vle(e,t,r,i){var o,s;(o=rr)==null||o.push(rr.Phase.Emit,"emitUsingBuildInfo",{},!0),el("beforeEmit");let l=IVe(e,t,r,i);return el("afterEmit"),Yp("Emit","beforeEmit","afterEmit"),(s=rr)==null||s.pop(),l}function IVe(e,t,r,i){let{buildInfoPath:o,jsFilePath:s,sourceMapFilePath:l,declarationFilePath:d,declarationMapPath:p}=zP(e.options,!1),h=t.getBuildInfo(o,e.options.configFilePath);if(!h||!h.bundle||!h.bundle.js||d&&!h.bundle.dts)return o;let m=t.readFile(R.checkDefined(s));if(!m||JT(m,t)!==h.bundle.js.hash)return s;let y=l&&t.readFile(l);if(l&&!y||e.options.inlineSourceMap)return l||"inline sourcemap decoding";if(l&&JT(y,t)!==h.bundle.js.mapHash)return l;let E=d&&t.readFile(d);if(d&&!E||d&&JT(E,t)!==h.bundle.dts.hash)return d;let S=p&&t.readFile(p);if(p&&!S||e.options.inlineSourceMap)return p||"inline sourcemap decoding";if(p&&JT(S,t)!==h.bundle.dts.mapHash)return p;let A=oi(_o(o,t.getCurrentDirectory())),N=BU(s,m,l,y,d,E,p,S,o,h,!0),D=[],w=gJ(e.projectReferences,r,ce=>t.readFile(ce),t),j=AVe(h.bundle,A,t),K,Y,B={getPrependNodes:bu(()=>[...w,N]),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:()=>_o(h.bundle.commonSourceDirectory,A),getCompilerOptions:()=>e.options,getCurrentDirectory:()=>t.getCurrentDirectory(),getSourceFile:qb,getSourceFileByPath:qb,getSourceFiles:()=>j,getLibFileFromReference:jo,isSourceFileFromExternalLibrary:jm,getResolvedProjectReferenceToRedirect:qb,getProjectReferenceRedirect:qb,isSourceOfProjectReferenceRedirect:jm,writeFile:(ce,z,ee,me,ge,q)=>{switch(ce){case s:if(m===z)return;break;case l:if(y===z)return;break;case o:break;case d:if(E===z)return;K=z,Y=q;break;case p:if(S===z)return;break;default:R.fail(`Unexpected path: ${ce}`)}D.push({name:ce,text:z,writeByteOrderMark:ee,data:q})},isEmitBlocked:jm,readFile:ce=>t.readFile(ce),fileExists:ce=>t.fileExists(ce),useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames(),getBuildInfo:ce=>{let z=h.program;z&&K!==void 0&&e.options.composite&&(z.outSignature=JT(K,t,Y));let{js:ee,dts:me,sourceFiles:ge}=h.bundle;return ce.js.sources=ee.sources,me&&(ce.dts.sources=me.sources),ce.sourceFiles=ge,xw(z,ce)},getSourceFileFromReference:qb,redirectTargetsMap:Xp(),getFileIncludeReasons:jo,createHash:ea(t,t.createHash)};return q3(Y3,B,void 0,jK(e.options,i)),D}function IE(e={},t={}){var{hasGlobalName:r,onEmitNode:i=Aw,isEmitNotificationEnabled:o,substituteNode:s=WP,onBeforeEmitNode:l,onAfterEmitNode:d,onBeforeEmitNodeArray:p,onAfterEmitNodeArray:h,onBeforeEmitToken:m,onAfterEmitToken:y}=t,E=!!e.extendedDiagnostics,S=!!e.omitBraceSourceMapPositions,A=Oy(e),N=Md(e),D=new Map,w,j,K,Y,B,ce,z,ee,me,ge,q,J,re,pe,xe,fe=e.preserveSourceNewlines,ne,he,Ce,Ge=hA,ve,Ie=e.writeBundleFileInfo?{sections:[]}:void 0,De=Ie?R.checkDefined(e.relativeToBuildInfo):void 0,Le=e.recordInternalSection,Et=0,be="text",ze=!0,tt,Wt,_t=-1,Je,ft=-1,Zt=-1,en=-1,Dn=-1,Kn,pn,Yt=!1,qt=!!e.removeComments,hi,uo,{enter:Li,exit:Eo}=kEe(E,"commentTime","beforeComment","afterComment"),Qn=L.parenthesizer,Ur={select:I=>I===0?Qn.parenthesizeLeadingTypeArgument:void 0},Er=Hg();return et(),{printNode:on,printList:Ye,printFile:In,printBundle:Ot,writeNode:yi,writeList:$i,writeFile:lt,writeBundle:Be,bundleFileInfo:Ie};function on(I,oe,dt){switch(I){case 0:R.assert(Yi(oe),"Expected a SourceFile node.");break;case 2:R.assert(Fe(oe),"Expected an Identifier node.");break;case 1:R.assert(ht(oe),"Expected an Expression node.");break}switch(oe.kind){case 312:return In(oe);case 313:return Ot(oe);case 314:return si(oe)}return yi(I,oe,dt,Dt()),se()}function Ye(I,oe,dt){return $i(I,oe,dt,Dt()),se()}function Ot(I){return Be(I,Dt(),void 0),se()}function In(I){return lt(I,Dt(),void 0),se()}function si(I){return ct(I,Dt()),se()}function yi(I,oe,dt,nn){let Lr=he;G(nn,void 0),ke(I,oe,dt),et(),he=Lr}function $i(I,oe,dt,nn){let Lr=he;G(nn,void 0),dt&&st(dt),Xs(void 0,oe,I),et(),he=Lr}function Ao(){return he.getTextPosWithWriteLine?he.getTextPosWithWriteLine():he.getTextPos()}function da(I,oe,dt){let nn=$s(Ie.sections);nn&&nn.kind===dt?nn.end=oe:Ie.sections.push({pos:I,end:oe,kind:dt})}function Ba(I){if(Le&&Ie&&w&&(Ud(I)||Ml(I))&&zV(I,w)&&be!=="internal"){let oe=be;return kn(he.getTextPos()),Et=Ao(),be="internal",oe}}function vn(I){I&&(kn(he.getTextPos()),Et=Ao(),be=I)}function kn(I){return EtR.assert(aoe(ma))),Ie.sections.push({pos:wi,end:he.getTextPos(),kind:"prepend",data:De(Lr.fileName),texts:Zi}))}}Et=Ao();for(let Lr of I.sourceFiles)ke(0,Lr,Lr);if(Ie&&I.sourceFiles.length){let Lr=he.getTextPos();if(kn(Lr)){let wi=AM(I);wi&&(Ie.sources||(Ie.sources={}),Ie.sources.prologues=wi);let vi=Ct(I);vi&&(Ie.sources||(Ie.sources={}),Ie.sources.helpers=vi)}}et(),he=nn}function ct(I,oe){let dt=he;G(oe,void 0),ke(4,I,void 0),et(),he=dt}function lt(I,oe,dt){ve=!0;let nn=he;G(oe,dt),ub(I),$g(I),ke(0,I,I),et(),he=nn}function Dt(){return Ce||(Ce=Q2(A))}function se(){let I=Ce.getText();return Ce.clear(),I}function ke(I,oe,dt){dt&&st(dt),U(I,oe,void 0)}function st(I){w=I,Kn=void 0,pn=void 0,I&&ny(I)}function G(I,oe){I&&e.omitTrailingSemicolon&&(I=Oj(I)),he=I,tt=oe,ze=!he||!tt}function et(){j=[],K=[],Y=[],B=new Set,ce=[],z=new Map,ee=[],me=0,ge=[],q=0,J=[],re=void 0,pe=[],xe=void 0,w=void 0,Kn=void 0,pn=void 0,G(void 0,void 0)}function Tt(){return Kn||(Kn=Rg(R.checkDefined(w)))}function He(I,oe){if(I===void 0)return;let dt=Ba(I);U(4,I,oe),vn(dt)}function pt(I){I!==void 0&&U(2,I,void 0)}function Ft(I,oe){I!==void 0&&U(1,I,oe)}function hn(I){U(Ca(I)?6:4,I)}function dn(I){fe&&ym(I)&4&&(fe=!1)}function un(I){fe=I}function U(I,oe,dt){uo=dt,k(0,I,oe)(I,oe),uo=void 0}function Me(I){return!qt&&!Yi(I)}function Pt(I){return!ze&&!Yi(I)&&!UF(I)&&!WT(I)&&!Tae(I)}function k(I,oe,dt){switch(I){case 0:if(i!==Aw&&(!o||o(dt)))return H;case 1:if(s!==WP&&(hi=s(oe,dt)||dt)!==dt)return uo&&(hi=uo(hi)),It;case 2:if(Me(dt))return JD;case 3:if(Pt(dt))return JE;case 4:return ue;default:return R.assertNever(I)}}function ie(I,oe,dt){return k(I+1,oe,dt)}function H(I,oe){let dt=ie(0,I,oe);i(I,oe,dt)}function ue(I,oe){if(l?.(oe),fe){let dt=fe;dn(oe),We(I,oe),un(dt)}else We(I,oe);d?.(oe),uo=void 0}function We(I,oe,dt=!0){if(dt){let nn=jU(oe);if(nn)return ho(I,oe,nn)}if(I===0)return K1(ta(oe,Yi));if(I===2)return Kr(ta(oe,Fe));if(I===6)return Bn(ta(oe,Ca),!0);if(I===3)return Ne(ta(oe,fl));if(I===7)return z1(ta(oe,n1));if(I===5)return R.assertNode(oe,rH),no(!0);if(I===4){switch(oe.kind){case 16:case 17:case 18:return Bn(oe,!1);case 80:return Kr(oe);case 81:return Io(oe);case 166:return xn(oe);case 167:return $l(oe);case 168:return Po(oe);case 169:return ls(oe);case 170:return zs(oe);case 171:return ml(oe);case 172:return sd(oe);case 173:return mo(oe);case 174:return sa(oe);case 175:return ld(oe);case 176:return Es(oe);case 177:case 178:return Na(oe);case 179:return ul(oe);case 180:return Nf(oe);case 181:return ac(oe);case 182:return Mo(oe);case 183:return tn(oe);case 184:return Bs(oe);case 185:return Ac(oe);case 186:return de(oe);case 187:return $(oe);case 188:return Pe(oe);case 189:return cn(oe);case 190:return fr(oe);case 192:return zr(oe);case 193:return Di(oe);case 194:return Cr(oe);case 195:return Jo(oe);case 196:return vl(oe);case 233:return wt(oe);case 197:return jc();case 198:return Gs(oe);case 199:return hc(oe);case 200:return vs(oe);case 201:return Uc(oe);case 202:return vr(oe);case 203:return tp(oe);case 204:return xl(oe);case 205:return wc(oe);case 206:return im(oe);case 207:return mu(oe);case 208:return Re(oe);case 239:return jt(oe);case 240:return al();case 241:return Zn(oe);case 243:return Yr(oe);case 242:return no(!1);case 244:return ka(oe);case 245:return wa(oe);case 246:return dd(oe);case 247:return Ic(oe);case 248:return Tp(oe);case 249:return Gu(oe);case 250:return ab(oe);case 251:return Dm(oe);case 252:return Cm(oe);case 253:return mS(oe);case 254:return df(oe);case 255:return B_(oe);case 256:return uf(oe);case 257:return Jg(oe);case 258:return we(oe);case 259:return qe(oe);case 260:return Mt(oe);case 261:return Bt(oe);case 262:return _n(oe);case 263:return Xo(oe);case 264:return Yd(oe);case 265:return ud(oe);case 266:return qg(oe);case 267:return kE(oe);case 268:return w1(oe);case 269:return wE(oe);case 270:return G1(oe);case 271:return LD(oe);case 272:return wD(oe);case 273:return oA(oe);case 274:return _S(oe);case 280:return hS(oe);case 275:return O1(oe);case 276:return OD(oe);case 277:return W1(oe);case 278:return F1(oe);case 279:return gS(oe);case 281:return sb(oe);case 300:return B1(oe);case 301:return aA(oe);case 282:return;case 283:return OE(oe);case 12:return Xg(oe);case 286:case 289:return WE(oe);case 287:case 290:return xh(oe);case 291:return Vu(oe);case 292:return Mf(oe);case 293:return Ap(oe);case 294:return FD(oe);case 295:return V1(oe);case 296:return FE(oe);case 297:return j1(oe);case 298:return ev(oe);case 299:return U1(oe);case 303:return e_(oe);case 304:return cA(oe);case 305:return Ve(oe);case 306:return t_(oe);case 307:return xi(oe);case 314:case 308:return gi(oe);case 309:case 310:return er(oe);case 311:return Fr(oe);case 312:return K1(oe);case 313:return R.fail("Bundles should be printed using printBundle");case 315:return R.fail("InputFiles should not be printed");case 316:return Yg(oe);case 317:return db(oe);case 319:return mr("*");case 320:return mr("?");case 321:return cd(oe);case 322:return Ep(oe);case 323:return Ds(oe);case 324:return ed(oe);case 191:case 325:return yt(oe);case 326:return;case 327:return pd(oe);case 329:return uA(oe);case 330:return BE(oe);case 334:case 339:case 344:return dA(oe);case 335:case 336:return tv(oe);case 337:case 338:return;case 340:case 341:case 342:case 343:return;case 345:return Ka(oe);case 346:return n_(oe);case 348:case 355:return pA(oe);case 347:case 349:case 350:case 351:case 356:case 357:return zE(oe);case 352:return nv(oe);case 353:return SM(oe);case 354:return H1(oe);case 359:return}if(ht(oe)&&(I=1,s!==WP)){let nn=s(I,oe)||oe;nn!==oe&&(oe=nn,uo&&(oe=uo(oe)))}}if(I===1)switch(oe.kind){case 9:case 10:return wn(oe);case 11:case 14:case 15:return Bn(oe,!1);case 80:return Kr(oe);case 81:return Io(oe);case 209:return Lt(oe);case 210:return Un(oe);case 211:return go(oe);case 212:return Qo(oe);case 213:return Ql(oe);case 214:return gc(oe);case 215:return sl(oe);case 216:return _l(oe);case 217:return Gl(oe);case 218:return Zl(oe);case 219:return Hc(oe);case 220:return zu(oe);case 221:return Ru(oe);case 222:return Pf(oe);case 223:return z_(oe);case 224:return Ih(oe);case 225:return Wd(oe);case 226:return Er(oe);case 227:return Sp(oe);case 228:return cg(oe);case 229:return Bu(oe);case 230:return Z(oe);case 231:return rt(oe);case 232:return;case 234:return zt(oe);case 235:return O(oe);case 233:return wt(oe);case 238:return Se(oe);case 236:return nt(oe);case 237:return R.fail("SyntheticExpression should never be printed.");case 282:return;case 284:return Qa(oe);case 285:return sA(oe);case 288:return WD(oe);case 358:return R.fail("SyntaxList should not be printed");case 359:return;case 360:return Zr(oe);case 361:return Rh(oe);case 362:return R.fail("SyntheticReferenceExpression should not be printed")}if(Ou(oe.kind))return SS(oe,Qi);if(xV(oe.kind))return SS(oe,mr);R.fail(`Unhandled SyntaxKind: ${R.formatSyntaxKind(oe.kind)}.`)}function Ne(I){He(I.name),ar(),Qi("in"),ar(),He(I.constraint)}function It(I,oe){let dt=ie(1,I,oe);R.assertIsDefined(hi),oe=hi,hi=void 0,dt(I,oe)}function Ct(I){let oe;if(N===0||e.noEmitHelpers)return;let dt=new Map;for(let nn of I.sourceFiles){let Lr=Uk(nn)!==void 0,wi=En(nn);if(wi)for(let vi of wi)!vi.scoped&&!Lr&&!dt.get(vi.name)&&(dt.set(vi.name,!0),(oe||(oe=[])).push(vi.name))}return oe}function Kt(I){let oe=!1,dt=I.kind===313?I:void 0;if(dt&&N===0)return;let nn=dt?dt.prepends.length:0,Lr=dt?dt.sourceFiles.length+nn:1;for(let wi=0;wi"),ar(),He(I.type),rp(I)}function ed(I){Qi("function"),rv(I,I.parameters),mr(":"),He(I.type)}function cd(I){mr("?"),He(I.type)}function Ep(I){mr("!"),He(I.type)}function Ds(I){He(I.type),mr("=")}function Ac(I){Ed(I),ug(I,I.modifiers),Qi("new"),ar(),G_(I,I.typeParameters),rv(I,I.parameters),ar(),mr("=>"),ar(),He(I.type),rp(I)}function de(I){Qi("typeof"),ar(),He(I.exprName),fg(I,I.typeArguments)}function $(I){Lf(0,void 0),mr("{");let oe=za(I)&1?768:32897;Xs(I,I.members,oe|524288),mr("}"),hb()}function Pe(I){He(I.elementType,Qn.parenthesizeNonArrayTypeOfPostfixType),mr("["),mr("]")}function yt(I){mr("..."),He(I.type)}function cn(I){Ui(23,I.pos,mr,I);let oe=za(I)&1?528:657;Xs(I,I.elements,oe|524288,Qn.parenthesizeElementTypeOfTupleType),Ui(24,I.elements.end,mr,I)}function vr(I){He(I.dotDotDotToken),He(I.name),He(I.questionToken),Ui(59,I.name.end,mr,I),ar(),He(I.type)}function fr(I){He(I.type,Qn.parenthesizeTypeOfOptionalType),mr("?")}function zr(I){Xs(I,I.types,516,Qn.parenthesizeConstituentTypeOfUnionType)}function Di(I){Xs(I,I.types,520,Qn.parenthesizeConstituentTypeOfIntersectionType)}function Cr(I){He(I.checkType,Qn.parenthesizeCheckTypeOfConditionalType),ar(),Qi("extends"),ar(),He(I.extendsType,Qn.parenthesizeExtendsTypeOfConditionalType),ar(),mr("?"),ar(),He(I.trueType),ar(),mr(":"),ar(),He(I.falseType)}function Jo(I){Qi("infer"),ar(),He(I.typeParameter)}function vl(I){mr("("),He(I.type),mr(")")}function jc(){Qi("this")}function Gs(I){mb(I.operator,Qi),ar();let oe=I.operator===148?Qn.parenthesizeOperandOfReadonlyTypeOperator:Qn.parenthesizeOperandOfTypeOperator;He(I.type,oe)}function hc(I){He(I.objectType,Qn.parenthesizeNonArrayTypeOfPostfixType),mr("["),He(I.indexType),mr("]")}function vs(I){let oe=za(I);mr("{"),oe&1?ar():(Kc(),Dh()),I.readonlyToken&&(He(I.readonlyToken),I.readonlyToken.kind!==148&&Qi("readonly"),ar()),mr("["),U(3,I.typeParameter),I.nameType&&(ar(),Qi("as"),ar(),He(I.nameType)),mr("]"),I.questionToken&&(He(I.questionToken),I.questionToken.kind!==58&&mr("?")),mr(":"),ar(),He(I.type),td(),oe&1?ar():(Kc(),Lm()),Xs(I,I.members,2),mr("}")}function Uc(I){Ft(I.literal)}function tp(I){He(I.head),Xs(I,I.templateSpans,262144)}function wc(I){I.isTypeOf&&(Qi("typeof"),ar()),Qi("import"),mr("("),He(I.argument),I.attributes&&(mr(","),ar(),U(7,I.attributes)),mr(")"),I.qualifier&&(mr("."),He(I.qualifier)),fg(I,I.typeArguments)}function im(I){mr("{"),Xs(I,I.elements,525136),mr("}")}function mu(I){mr("["),Xs(I,I.elements,524880),mr("]")}function Re(I){He(I.dotDotDotToken),I.propertyName&&(He(I.propertyName),mr(":"),ar()),He(I.name),pb(I.initializer,I.name.end,I,Qn.parenthesizeExpressionForDisallowedComma)}function Lt(I){let oe=I.elements,dt=I.multiLine?65536:0;bS(I,oe,8914|dt,Qn.parenthesizeExpressionForDisallowedComma)}function Un(I){Lf(0,void 0),gn(I.properties,X1);let oe=za(I)&131072;oe&&Dh();let dt=I.multiLine?65536:0,nn=w&&w.languageVersion>=1&&!Jf(w)?64:0;Xs(I,I.properties,526226|nn|dt),oe&&Lm(),hb()}function go(I){Ft(I.expression,Qn.parenthesizeLeftSideOfAccess);let oe=I.questionDotToken||mh(L.createToken(25),I.expression.end,I.name.pos),dt=Gp(I,I.expression,oe),nn=Gp(I,oe,I.name);km(dt,!1),oe.kind!==29&&qo(I.expression)&&!he.hasTrailingComment()&&!he.hasTrailingWhitespace()&&mr("."),I.questionDotToken?He(oe):Ui(oe.kind,I.expression.end,mr,I),km(nn,!1),He(I.name),VE(dt,nn)}function qo(I){if(I=gm(I),mp(I)){let oe=EA(I,!0,!1);return!(I.numericLiteralFlags&448)&&!oe.includes(ca(25))&&!oe.includes("E")&&!oe.includes("e")}else if(Ps(I)){let oe=$oe(I);return typeof oe=="number"&&isFinite(oe)&&oe>=0&&Math.floor(oe)===oe}}function Qo(I){Ft(I.expression,Qn.parenthesizeLeftSideOfAccess),He(I.questionDotToken),Ui(23,I.expression.end,mr,I),Ft(I.argumentExpression),Ui(24,I.argumentExpression.end,mr,I)}function Ql(I){let oe=ym(I)&16;oe&&(mr("("),fb("0"),mr(","),ar()),Ft(I.expression,Qn.parenthesizeLeftSideOfAccess),oe&&mr(")"),He(I.questionDotToken),fg(I,I.typeArguments),bS(I,I.arguments,2576,Qn.parenthesizeExpressionForDisallowedComma)}function gc(I){Ui(105,I.pos,Qi,I),ar(),Ft(I.expression,Qn.parenthesizeExpressionOfNew),fg(I,I.typeArguments),bS(I,I.arguments,18960,Qn.parenthesizeExpressionForDisallowedComma)}function sl(I){let oe=ym(I)&16;oe&&(mr("("),fb("0"),mr(","),ar()),Ft(I.tag,Qn.parenthesizeLeftSideOfAccess),oe&&mr(")"),fg(I,I.typeArguments),ar(),Ft(I.template)}function _l(I){mr("<"),He(I.type),mr(">"),Ft(I.expression,Qn.parenthesizeOperandOfPrefixUnary)}function Gl(I){let oe=Ui(21,I.pos,mr,I),dt=UD(I.expression,I);Ft(I.expression,void 0),TS(I.expression,I),VE(dt),Ui(22,I.expression?I.expression.end:oe,mr,I)}function Zl(I){Vp(I.name),Jn(I)}function Hc(I){ug(I,I.modifiers),fn(I,cf)}function cf(I){G_(I,I.typeParameters),GD(I,I.parameters),sm(I.type),ar(),He(I.equalsGreaterThanToken)}function zu(I){Ui(91,I.pos,Qi,I),ar(),Ft(I.expression,Qn.parenthesizeOperandOfPrefixUnary)}function Ru(I){Ui(114,I.pos,Qi,I),ar(),Ft(I.expression,Qn.parenthesizeOperandOfPrefixUnary)}function Pf(I){Ui(116,I.pos,Qi,I),ar(),Ft(I.expression,Qn.parenthesizeOperandOfPrefixUnary)}function z_(I){Ui(135,I.pos,Qi,I),ar(),Ft(I.expression,Qn.parenthesizeOperandOfPrefixUnary)}function Ih(I){mb(I.operator,pf),Ug(I)&&ar(),Ft(I.operand,Qn.parenthesizeOperandOfPrefixUnary)}function Ug(I){let oe=I.operand;return oe.kind===224&&(I.operator===40&&(oe.operator===40||oe.operator===46)||I.operator===41&&(oe.operator===41||oe.operator===47))}function Wd(I){Ft(I.operand,Qn.parenthesizeOperandOfPostfixUnary),mb(I.operator,pf)}function Hg(){return e3(I,oe,dt,nn,Lr,void 0);function I(vi,Zi){if(Zi){Zi.stackIndex++,Zi.preserveSourceNewlinesStack[Zi.stackIndex]=fe,Zi.containerPosStack[Zi.stackIndex]=Zt,Zi.containerEndStack[Zi.stackIndex]=en,Zi.declarationListContainerEndStack[Zi.stackIndex]=Dn;let ma=Zi.shouldEmitCommentsStack[Zi.stackIndex]=Me(vi),$d=Zi.shouldEmitSourceMapsStack[Zi.stackIndex]=Pt(vi);l?.(vi),ma&&IA(vi),$d&&ex(vi),dn(vi)}else Zi={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return Zi}function oe(vi,Zi,ma){return wi(vi,ma,"left")}function dt(vi,Zi,ma){let $d=vi.kind!==28,Cu=Gp(ma,ma.left,vi),wf=Gp(ma,vi,ma.right);km(Cu,$d),_g(vi.pos),SS(vi,vi.kind===103?Qi:pf),wm(vi.end,!0),km(wf,!0)}function nn(vi,Zi,ma){return wi(vi,ma,"right")}function Lr(vi,Zi){let ma=Gp(vi,vi.left,vi.operatorToken),$d=Gp(vi,vi.operatorToken,vi.right);if(VE(ma,$d),Zi.stackIndex>0){let Cu=Zi.preserveSourceNewlinesStack[Zi.stackIndex],wf=Zi.containerPosStack[Zi.stackIndex],bb=Zi.containerEndStack[Zi.stackIndex],Si=Zi.declarationListContainerEndStack[Zi.stackIndex],Ph=Zi.shouldEmitCommentsStack[Zi.stackIndex],Vn=Zi.shouldEmitSourceMapsStack[Zi.stackIndex];un(Cu),Vn&&DA(vi),Ph&&qD(vi,wf,bb,Si),d?.(vi),Zi.stackIndex--}}function wi(vi,Zi,ma){let $d=ma==="left"?Qn.getParenthesizeLeftSideOfBinaryForOperator(Zi.operatorToken.kind):Qn.getParenthesizeRightSideOfBinaryForOperator(Zi.operatorToken.kind),Cu=k(0,1,vi);if(Cu===It&&(R.assertIsDefined(hi),vi=$d(ta(hi,ht)),Cu=ie(1,1,vi),hi=void 0),(Cu===JD||Cu===JE||Cu===ue)&&ur(vi))return vi;uo=$d,Cu(1,vi)}}function Sp(I){let oe=Gp(I,I.condition,I.questionToken),dt=Gp(I,I.questionToken,I.whenTrue),nn=Gp(I,I.whenTrue,I.colonToken),Lr=Gp(I,I.colonToken,I.whenFalse);Ft(I.condition,Qn.parenthesizeConditionOfConditionalExpression),km(oe,!0),He(I.questionToken),km(dt,!0),Ft(I.whenTrue,Qn.parenthesizeBranchOfConditionalExpression),VE(oe,dt),km(nn,!0),He(I.colonToken),km(Lr,!0),Ft(I.whenFalse,Qn.parenthesizeBranchOfConditionalExpression),VE(nn,Lr)}function cg(I){He(I.head),Xs(I,I.templateSpans,262144)}function Bu(I){Ui(127,I.pos,Qi,I),He(I.asteriskToken),vS(I.expression&&Nm(I.expression),fS)}function Z(I){Ui(26,I.pos,mr,I),Ft(I.expression,Qn.parenthesizeExpressionForDisallowedComma)}function rt(I){Vp(I.name),Ha(I)}function wt(I){Ft(I.expression,Qn.parenthesizeLeftSideOfAccess),fg(I,I.typeArguments)}function zt(I){Ft(I.expression,void 0),I.type&&(ar(),Qi("as"),ar(),He(I.type))}function O(I){Ft(I.expression,Qn.parenthesizeLeftSideOfAccess),pf("!")}function Se(I){Ft(I.expression,void 0),I.type&&(ar(),Qi("satisfies"),ar(),He(I.type))}function nt(I){ES(I.keywordToken,I.pos,mr),mr("."),He(I.name)}function jt(I){Ft(I.expression),He(I.literal)}function Zn(I){ii(I,!I.multiLine&&bA(I))}function ii(I,oe){Ui(19,I.pos,mr,I);let dt=oe||za(I)&1?768:129;Xs(I,I.statements,dt),Ui(20,I.statements.end,mr,I,!!(dt&1))}function Yr(I){Bp(I,I.modifiers,!1),He(I.declarationList),td()}function no(I){I?mr(";"):td()}function ka(I){Ft(I.expression,Qn.parenthesizeExpressionOfExpressionStatement),(!w||!Jf(w)||Js(I.expression))&&td()}function wa(I){let oe=Ui(101,I.pos,Qi,I);ar(),Ui(21,oe,mr,I),Ft(I.expression),Ui(22,I.expression.end,mr,I),pg(I,I.thenStatement),I.elseStatement&&(Zg(I,I.thenStatement,I.elseStatement),Ui(93,I.thenStatement.end,Qi,I),I.elseStatement.kind===245?(ar(),He(I.elseStatement)):pg(I,I.elseStatement))}function wl(I,oe){let dt=Ui(117,oe,Qi,I);ar(),Ui(21,dt,mr,I),Ft(I.expression),Ui(22,I.expression.end,mr,I)}function dd(I){Ui(92,I.pos,Qi,I),pg(I,I.statement),Ho(I.statement)&&!fe?ar():Zg(I,I.statement,I.expression),wl(I,I.statement.end),td()}function Ic(I){wl(I,I.pos),pg(I,I.statement)}function Tp(I){let oe=Ui(99,I.pos,Qi,I);ar();let dt=Ui(21,oe,mr,I);cs(I.initializer),dt=Ui(27,I.initializer?I.initializer.end:dt,mr,I),vS(I.condition),dt=Ui(27,I.condition?I.condition.end:dt,mr,I),vS(I.incrementor),Ui(22,I.incrementor?I.incrementor.end:dt,mr,I),pg(I,I.statement)}function Gu(I){let oe=Ui(99,I.pos,Qi,I);ar(),Ui(21,oe,mr,I),cs(I.initializer),ar(),Ui(103,I.initializer.end,Qi,I),ar(),Ft(I.expression),Ui(22,I.expression.end,mr,I),pg(I,I.statement)}function ab(I){let oe=Ui(99,I.pos,Qi,I);ar(),fA(I.awaitModifier),Ui(21,oe,mr,I),cs(I.initializer),ar(),Ui(165,I.initializer.end,Qi,I),ar(),Ft(I.expression),Ui(22,I.expression.end,mr,I),pg(I,I.statement)}function cs(I){I!==void 0&&(I.kind===261?He(I):Ft(I))}function Dm(I){Ui(88,I.pos,Qi,I),Qg(I.label),td()}function Cm(I){Ui(83,I.pos,Qi,I),Qg(I.label),td()}function Ui(I,oe,dt,nn,Lr){let wi=Ro(nn),vi=wi&&wi.kind===nn.kind,Zi=oe;if(vi&&w&&(oe=Pa(w.text,oe)),vi&&nn.pos!==Zi){let ma=Lr&&w&&!Sf(Zi,oe,w);ma&&Dh(),_g(Zi),ma&&Lm()}if(!S&&(I===19||I===20)?oe=ES(I,oe,dt,nn):oe=mb(I,dt,oe),vi&&nn.end!==oe){let ma=nn.kind===294;wm(oe,!ma,ma)}return oe}function Kg(I){return I.kind===2||!!I.hasTrailingNewLine}function Qy(I){if(!w)return!1;let oe=Uh(w.text,I.pos);if(oe){let dt=Ro(I);if(dt&&Wu(dt.parent))return!0}return gt(oe,Kg)||gt(AR(I),Kg)?!0:B4(I)?I.pos!==I.expression.pos&>($b(w.text,I.expression.pos),Kg)?!0:Qy(I.expression):!1}function Nm(I){if(!qt&&B4(I)&&Qy(I)){let oe=Ro(I);if(oe&&Wu(oe)){let dt=L.createParenthesizedExpression(I.expression);return Rr(dt,I),at(dt,oe),dt}return L.createParenthesizedExpression(I)}return I}function fS(I){return Nm(Qn.parenthesizeExpressionForDisallowedComma(I))}function mS(I){Ui(107,I.pos,Qi,I),vS(I.expression&&Nm(I.expression),Nm),td()}function df(I){let oe=Ui(118,I.pos,Qi,I);ar(),Ui(21,oe,mr,I),Ft(I.expression),Ui(22,I.expression.end,mr,I),pg(I,I.statement)}function B_(I){let oe=Ui(109,I.pos,Qi,I);ar(),Ui(21,oe,mr,I),Ft(I.expression),Ui(22,I.expression.end,mr,I),ar(),He(I.caseBlock)}function uf(I){He(I.label),Ui(59,I.label.end,mr,I),ar(),He(I.statement)}function Jg(I){Ui(111,I.pos,Qi,I),vS(Nm(I.expression),Nm),td()}function we(I){Ui(113,I.pos,Qi,I),ar(),He(I.tryBlock),I.catchClause&&(Zg(I,I.tryBlock,I.catchClause),He(I.catchClause)),I.finallyBlock&&(Zg(I,I.catchClause||I.tryBlock,I.finallyBlock),Ui(98,(I.catchClause||I.tryBlock).end,Qi,I),ar(),He(I.finallyBlock))}function qe(I){ES(89,I.pos,Qi),td()}function Mt(I){var oe,dt,nn;He(I.name),He(I.exclamationToken),sm(I.type),pb(I.initializer,((oe=I.type)==null?void 0:oe.end)??((nn=(dt=I.name.emitNode)==null?void 0:dt.typeNode)==null?void 0:nn.end)??I.name.end,I,Qn.parenthesizeExpressionForDisallowedComma)}function Bt(I){if(v2(I))Qi("await"),ar(),Qi("using");else{let oe=NF(I)?"let":Hx(I)?"const":b2(I)?"using":"var";Qi(oe)}ar(),Xs(I,I.declarations,528)}function _n(I){Jn(I)}function Jn(I){Bp(I,I.modifiers,!1),Qi("function"),He(I.asteriskToken),ar(),pt(I.name),fn(I,qn)}function fn(I,oe){let dt=I.body;if(dt)if(Ho(dt)){let nn=za(I)&131072;nn&&Dh(),Ed(I),gn(I.parameters,nd),nd(I.body),oe(I),or(dt),rp(I),nn&&Lm()}else oe(I),ar(),Ft(dt,Qn.parenthesizeConciseBodyOfArrowFunction);else oe(I),td()}function qn(I){G_(I,I.typeParameters),rv(I,I.parameters),sm(I.type)}function mi(I){if(za(I)&1)return!0;if(I.multiLine||!Js(I)&&w&&!IT(I,w)||mg(I,Jc(I.statements),2)||q1(I,$s(I.statements),2,I.statements))return!1;let oe;for(let dt of I.statements){if(_b(oe,dt,2)>0)return!1;oe=dt}return!0}function or(I){l?.(I),ar(),mr("{"),Dh();let oe=mi(I)?ni:dr;Sr(I,I.statements,oe),Lm(),ES(20,I.statements.end,mr,I),d?.(I)}function ni(I){dr(I,!0)}function dr(I,oe){let dt=ju(I.statements),nn=he.getTextPos();Kt(I),dt===0&&nn===he.getTextPos()&&oe?(Lm(),Xs(I,I.statements,768),Dh()):Xs(I,I.statements,1,void 0,dt)}function Xo(I){Ha(I)}function Ha(I){Lf(0,void 0),gn(I.members,X1),Bp(I,I.modifiers,!0),Ui(86,R_(I).pos,Qi,I),I.name&&(ar(),pt(I.name));let oe=za(I)&131072;oe&&Dh(),G_(I,I.typeParameters),Xs(I,I.heritageClauses,0),ar(),mr("{"),Xs(I,I.members,129),mr("}"),oe&&Lm(),hb()}function Yd(I){Lf(0,void 0),Bp(I,I.modifiers,!1),Qi("interface"),ar(),He(I.name),G_(I,I.typeParameters),Xs(I,I.heritageClauses,512),ar(),mr("{"),Xs(I,I.members,129),mr("}"),hb()}function ud(I){Bp(I,I.modifiers,!1),Qi("type"),ar(),He(I.name),G_(I,I.typeParameters),ar(),mr("="),ar(),He(I.type),td()}function qg(I){Bp(I,I.modifiers,!1),Qi("enum"),ar(),He(I.name),ar(),mr("{"),Xs(I,I.members,145),mr("}")}function kE(I){Bp(I,I.modifiers,!1),~I.flags&2048&&(Qi(I.flags&32?"namespace":"module"),ar()),He(I.name);let oe=I.body;if(!oe)return td();for(;oe&&ql(oe);)mr("."),He(oe.name),oe=oe.body;ar(),He(oe)}function w1(I){Ed(I),gn(I.statements,nd),ii(I,bA(I)),rp(I)}function wE(I){Ui(19,I.pos,mr,I),Xs(I,I.clauses,129),Ui(20,I.clauses.end,mr,I,!0)}function LD(I){Bp(I,I.modifiers,!1),Ui(102,I.modifiers?I.modifiers.end:I.pos,Qi,I),ar(),I.isTypeOnly&&(Ui(156,I.pos,Qi,I),ar()),He(I.name),ar(),Ui(64,I.name.end,mr,I),ar(),kD(I.moduleReference),td()}function kD(I){I.kind===80?Ft(I):He(I)}function wD(I){Bp(I,I.modifiers,!1),Ui(102,I.modifiers?I.modifiers.end:I.pos,Qi,I),ar(),I.importClause&&(He(I.importClause),ar(),Ui(161,I.importClause.end,Qi,I),ar()),Ft(I.moduleSpecifier),I.attributes&&Qg(I.attributes),td()}function oA(I){I.isTypeOnly&&(Ui(156,I.pos,Qi,I),ar()),He(I.name),I.name&&I.namedBindings&&(Ui(28,I.name.end,mr,I),ar()),He(I.namedBindings)}function _S(I){let oe=Ui(42,I.pos,mr,I);ar(),Ui(130,oe,Qi,I),ar(),He(I.name)}function O1(I){lb(I)}function OD(I){dg(I)}function W1(I){let oe=Ui(95,I.pos,Qi,I);ar(),I.isExportEquals?Ui(64,oe,pf,I):Ui(90,oe,Qi,I),ar(),Ft(I.expression,I.isExportEquals?Qn.getParenthesizeRightSideOfBinaryForOperator(64):Qn.parenthesizeExpressionOfExportDefault),td()}function F1(I){Bp(I,I.modifiers,!1);let oe=Ui(95,I.pos,Qi,I);if(ar(),I.isTypeOnly&&(oe=Ui(156,oe,Qi,I),ar()),I.exportClause?He(I.exportClause):oe=Ui(42,oe,mr,I),I.moduleSpecifier){ar();let dt=I.exportClause?I.exportClause.end:oe;Ui(161,dt,Qi,I),ar(),Ft(I.moduleSpecifier)}I.attributes&&Qg(I.attributes),td()}function z1(I){mr("{"),ar(),Qi(I.token===132?"assert":"with"),mr(":"),ar();let oe=I.elements;Xs(I,oe,526226),ar(),mr("}")}function B1(I){Ui(I.token,I.pos,Qi,I),ar();let oe=I.elements;Xs(I,oe,526226)}function aA(I){He(I.name),mr(":"),ar();let oe=I.value;if(!(za(oe)&1024)){let dt=C_(oe);wm(dt.pos)}He(oe)}function G1(I){let oe=Ui(95,I.pos,Qi,I);ar(),oe=Ui(130,oe,Qi,I),ar(),oe=Ui(145,oe,Qi,I),ar(),He(I.name),td()}function hS(I){let oe=Ui(42,I.pos,mr,I);ar(),Ui(130,oe,Qi,I),ar(),He(I.name)}function gS(I){lb(I)}function sb(I){dg(I)}function lb(I){mr("{"),Xs(I,I.elements,525136),mr("}")}function dg(I){I.isTypeOnly&&(Qi("type"),ar()),I.propertyName&&(He(I.propertyName),ar(),Ui(130,I.propertyName.end,Qi,I),ar()),He(I.name)}function OE(I){Qi("require"),mr("("),Ft(I.expression),mr(")")}function Qa(I){He(I.openingElement),Xs(I,I.children,262144),He(I.closingElement)}function sA(I){mr("<"),cb(I.tagName),fg(I,I.typeArguments),ar(),He(I.attributes),mr("/>")}function WD(I){He(I.openingFragment),Xs(I,I.children,262144),He(I.closingFragment)}function WE(I){if(mr("<"),P_(I)){let oe=UD(I.tagName,I);cb(I.tagName),fg(I,I.typeArguments),I.attributes.properties&&I.attributes.properties.length>0&&ar(),He(I.attributes),TS(I.attributes,I),VE(oe)}mr(">")}function Xg(I){he.writeLiteral(I.text)}function xh(I){mr("")}function Mf(I){Xs(I,I.properties,262656)}function Vu(I){He(I.name),Pm("=",mr,I.initializer,hn)}function Ap(I){mr("{..."),Ft(I.expression),mr("}")}function np(I){let oe=!1;return UL(w?.text||"",I+1,()=>oe=!0),oe}function Zy(I){let oe=!1;return jL(w?.text||"",I+1,()=>oe=!0),oe}function lA(I){return np(I)||Zy(I)}function FD(I){var oe;if(I.expression||!qt&&!Js(I)&&lA(I.pos)){let dt=w&&!Js(I)&&gs(w,I.pos).line!==gs(w,I.end).line;dt&&he.increaseIndent();let nn=Ui(19,I.pos,mr,I);He(I.dotDotDotToken),Ft(I.expression),Ui(20,((oe=I.expression)==null?void 0:oe.end)||nn,mr,I),dt&&he.decreaseIndent()}}function V1(I){pt(I.namespace),mr(":"),pt(I.name)}function cb(I){I.kind===80?Ft(I):He(I)}function FE(I){Ui(84,I.pos,Qi,I),ar(),Ft(I.expression,Qn.parenthesizeExpressionForDisallowedComma),yc(I,I.statements,I.expression.end)}function j1(I){let oe=Ui(90,I.pos,Qi,I);yc(I,I.statements,oe)}function yc(I,oe,dt){let nn=oe.length===1&&(!w||Js(I)||Js(oe[0])||y6(I,oe[0],w)),Lr=163969;nn?(ES(59,dt,mr,I),ar(),Lr&=-130):Ui(59,dt,mr,I),Xs(I,oe,Lr)}function ev(I){ar(),mb(I.token,Qi),ar(),Xs(I,I.types,528)}function U1(I){let oe=Ui(85,I.pos,Qi,I);ar(),I.variableDeclaration&&(Ui(21,oe,mr,I),He(I.variableDeclaration),Ui(22,I.variableDeclaration.end,mr,I),ar()),He(I.block)}function e_(I){He(I.name),mr(":"),ar();let oe=I.initializer;if(!(za(oe)&1024)){let dt=C_(oe);wm(dt.pos)}Ft(oe,Qn.parenthesizeExpressionForDisallowedComma)}function cA(I){He(I.name),I.objectAssignmentInitializer&&(ar(),mr("="),ar(),Ft(I.objectAssignmentInitializer,Qn.parenthesizeExpressionForDisallowedComma))}function Ve(I){I.expression&&(Ui(26,I.pos,mr,I),Ft(I.expression,Qn.parenthesizeExpressionForDisallowedComma))}function t_(I){He(I.name),pb(I.initializer,I.name.end,I,Qn.parenthesizeExpressionForDisallowedComma)}function pd(I){if(Ge("/**"),I.comment){let oe=ZL(I.comment);if(oe){let dt=oe.split(/\r\n?|\n/g);for(let nn of dt)Kc(),ar(),mr("*"),ar(),Ge(nn)}}I.tags&&(I.tags.length===1&&I.tags[0].kind===351&&!I.comment?(ar(),He(I.tags[0])):Xs(I,I.tags,33)),ar(),Ge("*/")}function zE(I){om(I.tagName),Yg(I.typeExpression),am(I.comment)}function H1(I){om(I.tagName),He(I.name),am(I.comment)}function db(I){ar(),mr("{"),He(I.name),mr("}")}function tv(I){om(I.tagName),ar(),mr("{"),He(I.class),mr("}"),am(I.comment)}function nv(I){om(I.tagName),Yg(I.constraint),ar(),Xs(I,I.typeParameters,528),am(I.comment)}function SM(I){om(I.tagName),I.typeExpression&&(I.typeExpression.kind===316?Yg(I.typeExpression):(ar(),mr("{"),Ge("Object"),I.typeExpression.isArrayType&&(mr("["),mr("]")),mr("}"))),I.fullName&&(ar(),He(I.fullName)),am(I.comment),I.typeExpression&&I.typeExpression.kind===329&&uA(I.typeExpression)}function Ka(I){om(I.tagName),I.name&&(ar(),He(I.name)),am(I.comment),BE(I.typeExpression)}function n_(I){am(I.comment),BE(I.typeExpression)}function dA(I){om(I.tagName),am(I.comment)}function uA(I){Xs(I,L.createNodeArray(I.jsDocPropertyTags),33)}function BE(I){I.typeParameters&&Xs(I,L.createNodeArray(I.typeParameters),33),I.parameters&&Xs(I,L.createNodeArray(I.parameters),33),I.type&&(Kc(),ar(),mr("*"),ar(),He(I.type))}function pA(I){om(I.tagName),Yg(I.typeExpression),ar(),I.isBracketed&&mr("["),He(I.name),I.isBracketed&&mr("]"),am(I.comment)}function om(I){mr("@"),He(I)}function am(I){let oe=ZL(I);oe&&(ar(),Ge(oe))}function Yg(I){I&&(ar(),mr("{"),He(I.type),mr("}"))}function K1(I){Kc();let oe=I.statements;if(oe.length===0||!vm(oe[0])||Js(oe[0])){Sr(I,oe,qi);return}qi(I)}function r_(I){yS(!!I.hasNoDefaultLib,I.syntheticFileReferences||[],I.syntheticTypeReferences||[],I.syntheticLibReferences||[]);for(let oe of I.prepends)if(WT(oe)&&oe.syntheticReferences)for(let dt of oe.syntheticReferences)He(dt),Kc()}function zD(I){I.isDeclarationFile&&yS(I.hasNoDefaultLib,I.referencedFiles,I.typeReferenceDirectives,I.libReferenceDirectives)}function yS(I,oe,dt,nn){if(I){let Lr=he.getTextPos();V_('/// '),Ie&&Ie.sections.push({pos:Lr,end:he.getTextPos(),kind:"no-default-lib"}),Kc()}if(w&&w.moduleName&&(V_(`/// `),Kc()),w&&w.amdDependencies)for(let Lr of w.amdDependencies)Lr.name?V_(`/// `):V_(`/// `),Kc();for(let Lr of oe){let wi=he.getTextPos();V_(`/// `),Ie&&Ie.sections.push({pos:wi,end:he.getTextPos(),kind:"reference",data:Lr.fileName}),Kc()}for(let Lr of dt){let wi=he.getTextPos(),vi=Lr.resolutionMode&&Lr.resolutionMode!==w?.impliedNodeFormat?`resolution-mode="${Lr.resolutionMode===99?"import":"require"}"`:"";V_(`/// `),Ie&&Ie.sections.push({pos:wi,end:he.getTextPos(),kind:Lr.resolutionMode?Lr.resolutionMode===99?"type-import":"type-require":"type",data:Lr.fileName}),Kc()}for(let Lr of nn){let wi=he.getTextPos();V_(`/// `),Ie&&Ie.sections.push({pos:wi,end:he.getTextPos(),kind:"lib",data:Lr.fileName}),Kc()}}function qi(I){let oe=I.statements;Ed(I),gn(I.statements,nd),Kt(I);let dt=Kl(oe,nn=>!vm(nn));zD(I),Xs(I,oe,1,void 0,dt===-1?oe.length:dt),rp(I)}function Zr(I){let oe=za(I);!(oe&1024)&&I.pos!==I.expression.pos&&wm(I.expression.pos),Ft(I.expression),!(oe&2048)&&I.end!==I.expression.end&&_g(I.expression.end)}function Rh(I){bS(I,I.elements,528,void 0)}function ju(I,oe,dt,nn){let Lr=!!oe;for(let wi=0;wi=dt.length||vi===0;if(ma&&nn&32768){p?.(dt),h?.(dt);return}nn&15360&&(mr(RVe(nn)),ma&&dt&&wm(dt.pos,!0)),p?.(dt),ma?nn&1&&!(fe&&(!oe||w&&IT(oe,w)))?Kc():nn&256&&!(nn&524288)&&ar():Mm(I,oe,dt,nn,Lr,wi,vi,dt.hasTrailingComma,dt),h?.(dt),nn&15360&&(ma&&dt&&_g(dt.end),mr(DVe(nn)))}function Mm(I,oe,dt,nn,Lr,wi,vi,Zi,ma){let $d=(nn&262144)===0,Cu=$d,wf=mg(oe,dt[wi],nn);wf?(Kc(wf),Cu=!1):nn&256&&ar(),nn&128&&Dh();let bb=MVe(I,Lr),Si,Ph,Vn=!1;for(let NS=0;NS0){if(nn&131||(Dh(),Vn=!0),Cu&&nn&60&&!Jm(U_.pos)){let QD=C_(U_);wm(QD.pos,!!(nn&512),!0)}Kc(Mh),Cu=!1}else Si&&nn&512&&ar()}if(Ph=Ba(U_),Cu){let Mh=C_(U_);wm(Mh.pos)}else Cu=$d;ne=U_.pos,bb(U_,I,Lr,NS),Vn&&(Lm(),Vn=!1),Si=U_}let tx=Si?za(Si):0,Eb=qt||!!(tx&2048),Sb=Zi&&nn&64&&nn&16;Sb&&(Si&&!Eb?Ui(28,Si.end,mr,Si):mr(",")),Si&&(oe?oe.end:-1)!==Si.end&&nn&60&&!Eb&&_g(Sb&&ma?.end?ma.end:Si.end),nn&128&&Lm(),vn(Ph);let CA=q1(oe,dt[wi+vi-1],nn,ma);CA?Kc(CA):nn&2097408&&ar()}function fb(I){he.writeLiteral(I)}function jD(I){he.writeStringLiteral(I)}function hA(I){he.write(I)}function IM(I,oe){he.writeSymbol(I,oe)}function mr(I){he.writePunctuation(I)}function td(){he.writeTrailingSemicolon(";")}function Qi(I){he.writeKeyword(I)}function pf(I){he.writeOperator(I)}function iv(I){he.writeParameter(I)}function V_(I){he.writeComment(I)}function ar(){he.writeSpace(" ")}function gA(I){he.writeProperty(I)}function GE(I){he.nonEscapingWrite?he.nonEscapingWrite(I):he.write(I)}function Kc(I=1){for(let oe=0;oe0)}function Dh(){he.increaseIndent()}function Lm(){he.decreaseIndent()}function ES(I,oe,dt,nn){return ze?mb(I,dt,oe):CS(nn,I,dt,oe,mb)}function SS(I,oe){m&&m(I),oe(ca(I.kind)),y&&y(I)}function mb(I,oe,dt){let nn=ca(I);return oe(nn),dt<0?dt:dt+nn.length}function Zg(I,oe,dt){if(za(I)&1)ar();else if(fe){let nn=Gp(I,oe,dt);nn?Kc(nn):ar()}else Kc()}function yA(I){let oe=I.split(/\r\n?|\n/g),dt=Pre(oe);for(let nn of oe){let Lr=dt?nn.slice(dt):nn;Lr.length&&(Kc(),Ge(Lr))}}function km(I,oe){I?(Dh(),Kc(I)):oe&&ar()}function VE(I,oe){I&&Lm(),oe&&Lm()}function mg(I,oe,dt){if(dt&2||fe){if(dt&65536)return 1;if(oe===void 0)return!I||w&&IT(I,w)?0:1;if(oe.pos===ne||oe.kind===12)return 0;if(w&&I&&!Jm(I.pos)&&!Js(oe)&&(!oe.parent||Nl(oe.parent)===Nl(I)))return fe?jE(nn=>noe(oe.pos,I.pos,w,nn)):y6(I,oe,w)?0:1;if(vA(oe,dt))return 1}return dt&1?1:0}function _b(I,oe,dt){if(dt&2||fe){if(I===void 0||oe===void 0||oe.kind===12)return 0;if(w&&!Js(I)&&!Js(oe))return fe&&Du(I,oe)?jE(nn=>Yj(I,oe,w,nn)):!fe&&ff(I,oe)?rk(I,oe,w)?0:1:dt&65536?1:0;if(vA(I,dt)||vA(oe,dt))return 1}else if(rP(oe))return 1;return dt&1?1:0}function q1(I,oe,dt,nn){if(dt&2||fe){if(dt&65536)return 1;if(oe===void 0)return!I||w&&IT(I,w)?0:1;if(w&&I&&!Jm(I.pos)&&!Js(oe)&&(!oe.parent||oe.parent===I)){if(fe){let Lr=nn&&!Jm(nn.end)?nn.end:oe.end;return jE(wi=>roe(Lr,I.end,w,wi))}return Zie(I,oe,w)?0:1}if(vA(oe,dt))return 1}return dt&1&&!(dt&131072)?1:0}function jE(I){R.assert(!!fe);let oe=I(!0);return oe===0?I(!1):oe}function UD(I,oe){let dt=fe&&mg(oe,I,0);return dt&&km(dt,!1),!!dt}function TS(I,oe){let dt=fe&&q1(oe,I,0,void 0);dt&&Kc(dt)}function vA(I,oe){if(Js(I)){let dt=rP(I);return dt===void 0?(oe&65536)!==0:dt}return(oe&65536)!==0}function Gp(I,oe,dt){return za(I)&262144?0:(I=Vl(I),oe=Vl(oe),dt=Vl(dt),rP(dt)?1:w&&!Js(I)&&!Js(oe)&&!Js(dt)?fe?jE(nn=>Yj(oe,dt,w,nn)):rk(oe,dt,w)?0:1:0)}function bA(I){return I.statements.length===0&&(!w||rk(I,I,w))}function Vl(I){for(;I.kind===217&&Js(I);)I=I.expression;return I}function Oc(I,oe){if(rl(I)||aT(I))return SA(I);if(Ca(I)&&I.textSourceNode)return Oc(I.textSourceNode,oe);let dt=w,nn=!!dt&&!!I.parent&&!Js(I);if(Kh(I)){if(!nn||Gn(I)!==Nl(dt))return yr(I)}else if(Xm(I)){if(!nn||Gn(I)!==Nl(dt))return ZN(I)}else if(R.assertNode(I,E0),!nn)return I.text;return T0(dt,I,oe)}function EA(I,oe,dt){if(I.kind===11&&I.textSourceNode){let Lr=I.textSourceNode;if(Fe(Lr)||Ki(Lr)||mp(Lr)||Xm(Lr)){let wi=mp(Lr)?Lr.text:Oc(Lr);return dt?`"${wj(wi)}"`:oe||za(I)&16777216?`"${Zh(wi)}"`:`"${$2(wi)}"`}else return EA(Lr,oe,dt)}let nn=(oe?1:0)|(dt?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0);return Vre(I,w,nn)}function Ed(I){I&&za(I)&1048576||(ge.push(q),q=0,ce.push(z),z=void 0,J.push(re))}function rp(I){I&&za(I)&1048576||(q=ge.pop(),z=ce.pop(),re=J.pop())}function UE(I){(!re||re===$s(J))&&(re=new Set),re.add(I)}function Lf(I,oe){ee.push(me),me=I,pe.push(re),xe=oe}function hb(){me=ee.pop(),xe=pe.pop()}function gb(I){(!xe||xe===$s(pe))&&(xe=new Set),xe.add(I)}function nd(I){if(I)switch(I.kind){case 241:gn(I.statements,nd);break;case 256:case 254:case 246:case 247:nd(I.statement);break;case 245:nd(I.thenStatement),nd(I.elseStatement);break;case 248:case 250:case 249:nd(I.initializer),nd(I.statement);break;case 255:nd(I.caseBlock);break;case 269:gn(I.clauses,nd);break;case 296:case 297:gn(I.statements,nd);break;case 258:nd(I.tryBlock),nd(I.catchClause),nd(I.finallyBlock);break;case 299:nd(I.variableDeclaration),nd(I.block);break;case 243:nd(I.declarationList);break;case 261:gn(I.declarations,nd);break;case 260:case 169:case 208:case 263:Vp(I.name);break;case 262:Vp(I.name),za(I)&1048576&&(gn(I.parameters,nd),nd(I.body));break;case 206:case 207:gn(I.elements,nd);break;case 272:nd(I.importClause);break;case 273:Vp(I.name),nd(I.namedBindings);break;case 274:Vp(I.name);break;case 280:Vp(I.name);break;case 275:gn(I.elements,nd);break;case 276:Vp(I.propertyName||I.name);break}}function X1(I){if(I)switch(I.kind){case 303:case 304:case 172:case 174:case 177:case 178:Vp(I.name);break}}function Vp(I){I&&(rl(I)||aT(I)?SA(I):$o(I)&&nd(I))}function SA(I){let oe=I.emitNode.autoGenerate;if((oe.flags&7)===4)return TA(qk(I),Ki(I),oe.flags,oe.prefix,oe.suffix);{let dt=oe.id;return Y[dt]||(Y[dt]=KD(I))}}function TA(I,oe,dt,nn,Lr){let wi=is(I),vi=oe?K:j;return vi[wi]||(vi[wi]=AA(I,oe,dt??0,zR(nn,SA),zR(Lr)))}function Vs(I,oe){return HE(I,oe)&&!HD(I,oe)&&!B.has(I)}function HD(I,oe){return oe?!!xe?.has(I):!!re?.has(I)}function HE(I,oe){return w?TF(w,I,r):!0}function AS(I,oe){for(let dt=oe;dt&&N0(dt,oe);dt=dt.nextContainer)if(ch(dt)&&dt.locals){let nn=dt.locals.get(pl(I));if(nn&&nn.flags&3257279)return!1}return!0}function xM(I){switch(I){case"":return q;case"#":return me;default:return z?.get(I)??0}}function _u(I,oe){switch(I){case"":q=oe;break;case"#":me=oe;break;default:z??(z=new Map),z.set(I,oe);break}}function ey(I,oe,dt,nn,Lr){nn.length>0&&nn.charCodeAt(0)===35&&(nn=nn.slice(1));let wi=bE(dt,nn,"",Lr),vi=xM(wi);if(I&&!(vi&I)){let ma=bE(dt,nn,I===268435456?"_i":"_n",Lr);if(Vs(ma,dt))return vi|=I,dt?gb(ma):oe&&UE(ma),_u(wi,vi),ma}for(;;){let Zi=vi&268435455;if(vi++,Zi!==8&&Zi!==13){let ma=Zi<26?"_"+String.fromCharCode(97+Zi):"_"+(Zi-26),$d=bE(dt,nn,ma,Lr);if(Vs($d,dt))return dt?gb($d):oe&&UE($d),_u(wi,vi),$d}}}function j_(I,oe=Vs,dt,nn,Lr,wi,vi){if(I.length>0&&I.charCodeAt(0)===35&&(I=I.slice(1)),wi.length>0&&wi.charCodeAt(0)===35&&(wi=wi.slice(1)),dt){let ma=bE(Lr,wi,I,vi);if(oe(ma,Lr))return Lr?gb(ma):nn?UE(ma):B.add(ma),ma}I.charCodeAt(I.length-1)!==95&&(I+="_");let Zi=1;for(;;){let ma=bE(Lr,wi,I+Zi,vi);if(oe(ma,Lr))return Lr?gb(ma):nn?UE(ma):B.add(ma),ma;Zi++}}function Y1(I){return j_(I,HE,!0,!1,!1,"","")}function Ip(I){let oe=Oc(I.name);return AS(oe,ri(I,ch))?oe:j_(oe,Vs,!1,!1,!1,"","")}function $1(I){let oe=eR(I),dt=Ca(oe)?Ure(oe.text):"module";return j_(dt,Vs,!1,!1,!1,"","")}function ip(){return j_("default",Vs,!1,!1,!1,"","")}function Q1(){return j_("class",Vs,!1,!1,!1,"","")}function ov(I,oe,dt,nn){return Fe(I.name)?TA(I.name,oe):ey(0,!1,oe,dt,nn)}function AA(I,oe,dt,nn,Lr){switch(I.kind){case 80:case 81:return j_(Oc(I),Vs,!!(dt&16),!!(dt&8),oe,nn,Lr);case 267:case 266:return R.assert(!nn&&!Lr&&!oe),Ip(I);case 272:case 278:return R.assert(!nn&&!Lr&&!oe),$1(I);case 262:case 263:{R.assert(!nn&&!Lr&&!oe);let wi=I.name;return wi&&!rl(wi)?AA(wi,!1,dt,nn,Lr):ip()}case 277:return R.assert(!nn&&!Lr&&!oe),ip();case 231:return R.assert(!nn&&!Lr&&!oe),Q1();case 174:case 177:case 178:return ov(I,oe,nn,Lr);case 167:return ey(0,!0,oe,nn,Lr);default:return ey(0,!1,oe,nn,Lr)}}function KD(I){let oe=I.emitNode.autoGenerate,dt=zR(oe.prefix,SA),nn=zR(oe.suffix);switch(oe.flags&7){case 1:return ey(0,!!(oe.flags&8),Ki(I),dt,nn);case 2:return R.assertNode(I,Fe),ey(268435456,!!(oe.flags&8),!1,dt,nn);case 3:return j_(yr(I),oe.flags&32?HE:Vs,!!(oe.flags&16),!!(oe.flags&8),Ki(I),dt,nn)}return R.fail(`Unsupported GeneratedIdentifierKind: ${R.formatEnum(oe.flags&7,PW,!0)}.`)}function JD(I,oe){let dt=ie(2,I,oe),nn=Zt,Lr=en,wi=Dn;IA(oe),dt(I,oe),qD(oe,nn,Lr,wi)}function IA(I){let oe=za(I),dt=C_(I);yb(I,oe,dt.pos,dt.end),oe&4096&&(qt=!0)}function qD(I,oe,dt,nn){let Lr=za(I),wi=C_(I);Lr&4096&&(qt=!1),xp(I,Lr,wi.pos,wi.end,oe,dt,nn);let vi=tae(I);vi&&xp(I,Lr,vi.pos,vi.end,oe,dt,nn)}function yb(I,oe,dt,nn){Li(),Yt=!1;let Lr=dt<0||(oe&1024)!==0||I.kind===12,wi=nn<0||(oe&2048)!==0||I.kind===12;(dt>0||nn>0)&&dt!==nn&&(Lr||IS(dt,I.kind!==359),(!Lr||dt>=0&&oe&1024)&&(Zt=dt),(!wi||nn>=0&&oe&2048)&&(en=nn,I.kind===261&&(Dn=nn))),gn(AR(I),Ch),Eo()}function xp(I,oe,dt,nn,Lr,wi,vi){Li();let Zi=nn<0||(oe&2048)!==0||I.kind===12;gn(xk(I),XD),(dt>0||nn>0)&&dt!==nn&&(Zt=Lr,en=wi,Dn=vi,!Zi&&I.kind!==359&&i_(nn)),Eo()}function Ch(I){(I.hasLeadingNewline||I.kind===2)&&he.writeLine(),xA(I),I.hasTrailingNewLine||I.kind===2?he.writeLine():he.writeSpace(" ")}function XD(I){he.isAtStartOfLine()||he.writeSpace(" "),xA(I),I.hasTrailingNewLine&&he.writeLine()}function xA(I){let oe=ts(I),dt=I.kind===3?hI(oe):void 0;pR(oe,dt,he,0,oe.length,A)}function ts(I){return I.kind===3?`/*${I.text}*/`:`//${I.text}`}function Sr(I,oe,dt){Li();let{pos:nn,end:Lr}=oe,wi=za(I),vi=nn<0||(wi&1024)!==0,Zi=qt||Lr<0||(wi&2048)!==0;vi||kf(oe),Eo(),wi&4096&&!qt?(qt=!0,dt(I),qt=!1):dt(I),Li(),Zi||(IS(oe.end,!0),Yt&&!he.isAtStartOfLine()&&he.writeLine()),Eo()}function ff(I,oe){return I=Nl(I),I.parent&&I.parent===Nl(oe).parent}function Du(I,oe){if(oe.pos-1&&nn.indexOf(oe)===Lr+1}function IS(I,oe){Yt=!1,oe?I===0&&w?.isDeclarationFile?gg(I,KE):gg(I,RA):I===0&&gg(I,YD)}function YD(I,oe,dt,nn,Lr){_f(I,oe)&&RA(I,oe,dt,nn,Lr)}function KE(I,oe,dt,nn,Lr){_f(I,oe)||RA(I,oe,dt,nn,Lr)}function xS(I,oe){return e.onlyPrintJsDocStyle?RH(I,oe)||AF(I,oe):!0}function RA(I,oe,dt,nn,Lr){!w||!xS(w.text,I)||(Yt||(Fie(Tt(),he,Lr,I),Yt=!0),Cs(I),pR(w.text,Tt(),he,I,oe,A),Cs(oe),nn?he.writeLine():dt===3&&he.writeSpace(" "))}function _g(I){qt||I===-1||IS(I,!0)}function i_(I){Z1(I,mf)}function mf(I,oe,dt,nn){!w||!xS(w.text,I)||(he.isAtStartOfLine()||he.writeSpace(" "),Cs(I),pR(w.text,Tt(),he,I,oe,A),Cs(oe),nn&&he.writeLine())}function wm(I,oe,dt){qt||(Li(),Z1(I,oe?mf:dt?ty:hg),Eo())}function ty(I,oe,dt){w&&(Cs(I),pR(w.text,Tt(),he,I,oe,A),Cs(oe),dt===2&&he.writeLine())}function hg(I,oe,dt,nn){w&&(Cs(I),pR(w.text,Tt(),he,I,oe,A),Cs(oe),nn?he.writeLine():he.writeSpace(" "))}function gg(I,oe){w&&(Zt===-1||I!==Zt)&&(sc(I)?$D(oe):jL(w.text,I,oe,I))}function Z1(I,oe){w&&(en===-1||I!==en&&I!==Dn)&&UL(w.text,I,oe)}function sc(I){return pn!==void 0&&Ja(pn).nodePos===I}function $D(I){if(!w)return;let oe=Ja(pn).detachedCommentEndPos;pn.length-1?pn.pop():pn=void 0,jL(w.text,oe,I,oe)}function kf(I){let oe=w&&Bie(w.text,Tt(),he,Nh,I,A,qt);oe&&(pn?pn.push(oe):pn=[oe])}function Nh(I,oe,dt,nn,Lr,wi){!w||!xS(w.text,nn)||(Cs(nn),pR(I,oe,dt,nn,Lr,wi),Cs(Lr))}function _f(I,oe){return!!w&&UV(w.text,I,oe)}function RS(I){return I.parsedSourceMap===void 0&&I.sourceMapText!==void 0&&(I.parsedSourceMap=IK(I.sourceMapText)||!1),I.parsedSourceMap||void 0}function JE(I,oe){let dt=ie(3,I,oe);ex(oe),dt(I,oe),DA(oe)}function ex(I){let oe=za(I),dt=Fy(I);if(IV(I)){R.assertIsDefined(I.parent,"UnparsedNodes must have parent pointers");let nn=RS(I.parent);nn&&tt&&tt.appendSourceMap(he.getLine(),he.getColumn(),nn,I.parent.sourceMapPath,I.parent.getLineAndCharacterOfPosition(I.pos),I.parent.getLineAndCharacterOfPosition(I.end))}else{let nn=dt.source||Wt;I.kind!==359&&!(oe&32)&&dt.pos>=0&&DS(dt.source||Wt,hf(nn,dt.pos)),oe&128&&(ze=!0)}}function DA(I){let oe=za(I),dt=Fy(I);IV(I)||(oe&128&&(ze=!1),I.kind!==359&&!(oe&64)&&dt.end>=0&&DS(dt.source||Wt,dt.end))}function hf(I,oe){return I.skipTrivia?I.skipTrivia(oe):Pa(I.text,oe)}function Cs(I){if(ze||Jm(I)||qE(Wt))return;let{line:oe,character:dt}=gs(Wt,I);tt.addMapping(he.getLine(),he.getColumn(),_t,oe,dt,void 0)}function DS(I,oe){if(I!==Wt){let dt=Wt,nn=_t;ny(I),Cs(oe),vb(dt,nn)}else Cs(oe)}function CS(I,oe,dt,nn,Lr){if(ze||I&&UF(I))return Lr(oe,dt,nn);let wi=I&&I.emitNode,vi=wi&&wi.flags||0,Zi=wi&&wi.tokenSourceMapRanges&&wi.tokenSourceMapRanges[oe],ma=Zi&&Zi.source||Wt;return nn=hf(ma,Zi?Zi.pos:nn),!(vi&256)&&nn>=0&&DS(ma,nn),nn=Lr(oe,dt,nn),Zi&&(nn=Zi.end),!(vi&512)&&nn>=0&&DS(ma,nn),nn}function ny(I){if(!ze){if(Wt=I,I===Je){_t=ft;return}qE(I)||(_t=tt.addSource(I.fileName),e.inlineSources&&tt.setSourceContent(_t,I.text),Je=I,ft=_t)}}function vb(I,oe){Wt=I,_t=oe}function qE(I){return Sl(I.fileName,".json")}}function xVe(){let e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function RVe(e){return jle[e&15360][0]}function DVe(e){return jle[e&15360][1]}function CVe(e,t,r,i){t(e)}function NVe(e,t,r,i){t(e,r.select(i))}function PVe(e,t,r,i){t(e,r)}function MVe(e,t){return e.length===1?CVe:typeof t=="object"?NVe:PVe}var jle,Y3,XK,iS,YK,Rw,LVe=bt({"src/compiler/emitter.ts"(){"use strict";Zo(),Zo(),nT(),jle=xVe(),Y3={hasGlobalName:jo,getReferencedExportContainer:jo,getReferencedImportDeclaration:jo,getReferencedDeclarationWithCollidingName:jo,isDeclarationWithCollidingName:jo,isValueAliasDeclaration:jo,isReferencedAliasDeclaration:jo,isTopLevelValueImportEqualsWithEntityName:jo,getNodeCheckFlags:jo,isDeclarationVisible:jo,isLateBound:e=>!1,collectLinkedAliases:jo,isImplementationOfOverload:jo,isRequiredInitializedParameter:jo,isOptionalUninitializedParameterProperty:jo,isExpandoFunctionDeclaration:jo,getPropertiesOfContainerFunction:jo,createTypeOfDeclaration:jo,createReturnTypeOfSignatureDeclaration:jo,createTypeOfExpression:jo,createLiteralConstValue:jo,isSymbolAccessible:jo,isEntityNameVisible:jo,getConstantValue:jo,getReferencedValueDeclaration:jo,getReferencedValueDeclarations:jo,getTypeReferenceSerializationKind:jo,isOptionalParameter:jo,moduleExportsSomeValue:jo,isArgumentsLocalBinding:jo,getExternalModuleFileFromDeclaration:jo,getTypeReferenceDirectivesForEntityName:jo,getTypeReferenceDirectivesForSymbol:jo,isLiteralConstDeclaration:jo,getJsxFactoryEntity:jo,getJsxFragmentFactoryEntity:jo,getAllAccessorDeclarations:jo,getSymbolOfExternalModuleSpecifier:jo,isBindingCapturedByNode:jo,getDeclarationStatementsForSourceFile:jo,isImportRequiredByAugmentation:jo,tryFindAmbientModule:jo},XK=bu(()=>IE({})),iS=bu(()=>IE({removeComments:!0})),YK=bu(()=>IE({removeComments:!0,neverAsciiEscape:!0})),Rw=bu(()=>IE({removeComments:!0,omitTrailingSemicolon:!0}))}});function $3(e,t,r){if(!e.getDirectories||!e.readDirectory)return;let i=new Map,o=Cd(r);return{useCaseSensitiveFileNames:r,fileExists:S,readFile:(z,ee)=>e.readFile(z,ee),directoryExists:e.directoryExists&&A,getDirectories:D,readDirectory:w,createDirectory:e.createDirectory&&N,writeFile:e.writeFile&&E,addOrDeleteFileOrDirectory:K,addOrDeleteFile:Y,clearCache:ce,realpath:e.realpath&&j};function s(z){return tl(z,t,o)}function l(z){return i.get(Fc(z))}function d(z){let ee=l(oi(z));return ee&&(ee.sortedAndCanonicalizedFiles||(ee.sortedAndCanonicalizedFiles=ee.files.map(o).sort(),ee.sortedAndCanonicalizedDirectories=ee.directories.map(o).sort()),ee)}function p(z){return nc(fa(z))}function h(z,ee){var me;if(!e.realpath||Fc(s(e.realpath(z)))===ee){let ge={files:mn(e.readDirectory(z,void 0,void 0,["*.*"]),p)||[],directories:e.getDirectories(z)||[]};return i.set(Fc(ee),ge),ge}if((me=e.directoryExists)!=null&&me.call(e,z))return i.set(ee,!1),!1}function m(z,ee){ee=Fc(ee);let me=l(ee);if(me)return me;try{return h(z,ee)}catch{R.assert(!i.has(Fc(ee)));return}}function y(z,ee){return Ey(z,ee,Qs,Gd)>=0}function E(z,ee,me){let ge=s(z),q=d(ge);return q&&B(q,p(z),!0),e.writeFile(z,ee,me)}function S(z){let ee=s(z),me=d(ee);return me&&y(me.sortedAndCanonicalizedFiles,o(p(z)))||e.fileExists(z)}function A(z){let ee=s(z);return i.has(Fc(ee))||e.directoryExists(z)}function N(z){let ee=s(z),me=d(ee);if(me){let ge=p(z),q=o(ge),J=me.sortedAndCanonicalizedDirectories;bv(J,q,Gd)&&me.directories.push(ge)}e.createDirectory(z)}function D(z){let ee=s(z),me=m(z,ee);return me?me.directories.slice():e.getDirectories(z)}function w(z,ee,me,ge,q){let J=s(z),re=m(z,J),pe;if(re!==void 0)return lU(z,ee,me,ge,r,t,q,xe,j);return e.readDirectory(z,ee,me,ge,q);function xe(ne){let he=s(ne);if(he===J)return re||fe(ne,he);let Ce=m(ne,he);return Ce!==void 0?Ce||fe(ne,he):Q6}function fe(ne,he){if(pe&&he===J)return pe;let Ce={files:mn(e.readDirectory(ne,void 0,void 0,["*.*"]),p)||Xe,directories:e.getDirectories(ne)||Xe};return he===J&&(pe=Ce),Ce}}function j(z){return e.realpath?e.realpath(z):z}function K(z,ee){if(l(ee)!==void 0){ce();return}let ge=d(ee);if(!ge)return;if(!e.directoryExists){ce();return}let q=p(z),J={fileExists:e.fileExists(z),directoryExists:e.directoryExists(z)};return J.directoryExists||y(ge.sortedAndCanonicalizedDirectories,o(q))?ce():B(ge,q,J.fileExists),J}function Y(z,ee,me){if(me===1)return;let ge=d(ee);ge&&B(ge,p(z),me===0)}function B(z,ee,me){let ge=z.sortedAndCanonicalizedFiles,q=o(ee);if(me)bv(ge,q,Gd)&&z.files.push(ee);else{let J=Ey(ge,q,Qs,Gd);if(J>=0){ge.splice(J,1);let re=z.files.findIndex(pe=>o(pe)===q);z.files.splice(re,1)}}}function ce(){i.clear()}}function Q3(e,t,r,i,o){var s;let l=h0(((s=t?.configFile)==null?void 0:s.extendedSourceFiles)||Xe,o);r.forEach((d,p)=>{l.has(p)||(d.projects.delete(e),d.close())}),l.forEach((d,p)=>{let h=r.get(p);h?h.projects.add(e):r.set(p,{projects:new Set([e]),watcher:i(d,p),close:()=>{let m=r.get(p);!m||m.projects.size!==0||(m.watcher.close(),r.delete(p))}})})}function $K(e,t){t.forEach(r=>{r.projects.delete(e)&&r.close()})}function Z3(e,t,r){e.delete(t)&&e.forEach(({extendedResult:i},o)=>{var s;(s=i.extendedSourceFiles)!=null&&s.some(l=>r(l)===t)&&Z3(e,o,r)})}function QK(e,t,r){FN(t,e.getMissingFilePaths(),{createNewValue:r,onDeleteValue:Km})}function Dw(e,t,r){t?FN(e,new Map(Object.entries(t)),{createNewValue:i,onDeleteValue:Rf,onExistingValue:o}):$u(e,Rf);function i(s,l){return{watcher:r(s,l),flags:l}}function o(s,l,d){s.flags!==l&&(s.watcher.close(),e.set(d,i(d,l)))}}function Cw({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:i,options:o,program:s,extraFileExtensions:l,currentDirectory:d,useCaseSensitiveFileNames:p,writeLog:h,toPath:m,getScriptKind:y}){let E=uz(r);if(!E)return h(`Project: ${i} Detected ignored path: ${t}`),!0;if(r=E,r===e)return!1;if(mI(r)&&!(Aoe(t,o,l)||w()))return h(`Project: ${i} Detected file add/remove of non supported extension: ${t}`),!0;if(ase(t,o.configFile.configFileSpecs,_o(oi(i),d),p,d))return h(`Project: ${i} Detected excluded file: ${t}`),!0;if(!s||Rs(o)||o.outDir)return!1;if(vd(r)){if(o.declarationDir)return!1}else if(!bc(r,TR))return!1;let S=Su(r),A=So(s)?void 0:kVe(s)?s.getProgramOrUndefined():s,N=!A&&!So(s)?s:void 0;if(D(S+".ts")||D(S+".tsx"))return h(`Project: ${i} Detected output file: ${t}`),!0;return!1;function D(j){return A?!!A.getSourceFileByPath(j):N?N.getState().fileInfos.has(j):!!Vr(s,K=>m(K)===j)}function w(){if(!y)return!1;switch(y(t)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return jv(o);case 6:return _E(o);case 0:return!1}}}function kVe(e){return!!e.getState}function Ule(e,t){return e?e.isEmittedFile(t):!1}function ZK(e,t,r,i){Dne(t===2?r:qa);let o={watchFile:(N,D,w,j)=>e.watchFile(N,D,w,j),watchDirectory:(N,D,w,j)=>e.watchDirectory(N,D,(w&1)!==0,j)},s=t!==0?{watchFile:S("watchFile"),watchDirectory:S("watchDirectory")}:void 0,l=t===2?{watchFile:y,watchDirectory:E}:s||o,d=t===2?m:iD;return{watchFile:p("watchFile"),watchDirectory:p("watchDirectory")};function p(N){return(D,w,j,K,Y,B)=>{var ce;return l3(D,N==="watchFile"?K?.excludeFiles:K?.excludeDirectories,h(),((ce=e.getCurrentDirectory)==null?void 0:ce.call(e))||"")?d(D,j,K,Y,B):l[N].call(void 0,D,w,j,K,Y,B)}}function h(){return typeof e.useCaseSensitiveFileNames=="boolean"?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function m(N,D,w,j,K){return r(`ExcludeWatcher:: Added:: ${A(N,D,w,j,K,i)}`),{close:()=>r(`ExcludeWatcher:: Close:: ${A(N,D,w,j,K,i)}`)}}function y(N,D,w,j,K,Y){r(`FileWatcher:: Added:: ${A(N,w,j,K,Y,i)}`);let B=s.watchFile(N,D,w,j,K,Y);return{close:()=>{r(`FileWatcher:: Close:: ${A(N,w,j,K,Y,i)}`),B.close()}}}function E(N,D,w,j,K,Y){let B=`DirectoryWatcher:: Added:: ${A(N,w,j,K,Y,i)}`;r(B);let ce=Ks(),z=s.watchDirectory(N,D,w,j,K,Y),ee=Ks()-ce;return r(`Elapsed:: ${ee}ms ${B}`),{close:()=>{let me=`DirectoryWatcher:: Close:: ${A(N,w,j,K,Y,i)}`;r(me);let ge=Ks();z.close();let q=Ks()-ge;r(`Elapsed:: ${q}ms ${me}`)}}}function S(N){return(D,w,j,K,Y,B)=>o[N].call(void 0,D,(...ce)=>{let z=`${N==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${ce[0]} ${ce[1]!==void 0?ce[1]:""}:: ${A(D,j,K,Y,B,i)}`;r(z);let ee=Ks();w.call(void 0,...ce);let me=Ks()-ee;r(`Elapsed:: ${me}ms ${z}`)},j,K,Y,B)}function A(N,D,w,j,K,Y){return`WatchInfo: ${N} ${D} ${JSON.stringify(w)} ${Y?Y(j,K):K===void 0?j:`${j} ${K}`}`}}function Nw(e){let t=e?.fallbackPolling;return{watchFile:t!==void 0?t:1}}function Rf(e){e.watcher.close()}var eJ,tJ,wVe=bt({"src/compiler/watchUtilities.ts"(){"use strict";Zo(),eJ=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(eJ||{}),tJ=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(tJ||{})}});function Hle(e,t,r="tsconfig.json"){return hm(e,i=>{let o=$r(i,r);return t(o)?o:void 0})}function ez(e,t){let r=oi(t),i=cp(e)?e:$r(r,e);return fa(i)}function Kle(e,t,r){let i;return gn(e,s=>{let l=OL(s,t);if(l.pop(),!i){i=l;return}let d=Math.min(i.length,l.length);for(let p=0;p{let l;try{el("beforeIORead"),l=e(i,t().charset),el("afterIORead"),Yp("I/O Read","beforeIORead","afterIORead")}catch(d){s&&s(d.message),l=""}return l!==void 0?$k(i,l,o,r):void 0}}function rJ(e,t,r){return(i,o,s,l)=>{try{el("beforeIOWrite"),zj(i,o,s,e,t,r),el("afterIOWrite"),Yp("I/O Write","beforeIOWrite","afterIOWrite")}catch(d){l&&l(d.message)}}}function iJ(e,t,r=md){let i=new Map,o=Cd(r.useCaseSensitiveFileNames);function s(m){return i.has(m)?!0:(h.directoryExists||r.directoryExists)(m)?(i.set(m,!0),!0):!1}function l(){return oi(fa(r.getExecutingFilePath()))}let d=Oy(e),p=r.realpath&&(m=>r.realpath(m)),h={getSourceFile:nJ(m=>h.readFile(m),()=>e,t),getDefaultLibLocation:l,getDefaultLibFileName:m=>$r(l(),KL(m)),writeFile:rJ((m,y,E)=>r.writeFile(m,y,E),m=>(h.createDirectory||r.createDirectory)(m),m=>s(m)),getCurrentDirectory:bu(()=>r.getCurrentDirectory()),useCaseSensitiveFileNames:()=>r.useCaseSensitiveFileNames,getCanonicalFileName:o,getNewLine:()=>d,fileExists:m=>r.fileExists(m),readFile:m=>r.readFile(m),trace:m=>r.write(m+d),directoryExists:m=>r.directoryExists(m),getEnvironmentVariable:m=>r.getEnvironmentVariable?r.getEnvironmentVariable(m):"",getDirectories:m=>r.getDirectories(m),realpath:p,readDirectory:(m,y,E,S,A)=>r.readDirectory(m,y,E,S,A),createDirectory:m=>r.createDirectory(m),createHash:ea(r,r.createHash)};return h}function Pw(e,t,r){let i=e.readFile,o=e.fileExists,s=e.directoryExists,l=e.createDirectory,d=e.writeFile,p=new Map,h=new Map,m=new Map,y=new Map,E=N=>{let D=t(N),w=p.get(D);return w!==void 0?w!==!1?w:void 0:S(D,N)},S=(N,D)=>{let w=i.call(e,D);return p.set(N,w!==void 0?w:!1),w};e.readFile=N=>{let D=t(N),w=p.get(D);return w!==void 0?w!==!1?w:void 0:!Sl(N,".json")&&!Ble(N)?i.call(e,N):S(D,N)};let A=r?(N,D,w,j)=>{let K=t(N),Y=typeof D=="object"?D.impliedNodeFormat:void 0,B=y.get(Y),ce=B?.get(K);if(ce)return ce;let z=r(N,D,w,j);return z&&(vd(N)||Sl(N,".json"))&&y.set(Y,(B||new Map).set(K,z)),z}:void 0;return e.fileExists=N=>{let D=t(N),w=h.get(D);if(w!==void 0)return w;let j=o.call(e,N);return h.set(D,!!j),j},d&&(e.writeFile=(N,D,...w)=>{let j=t(N);h.delete(j);let K=p.get(j);K!==void 0&&K!==D?(p.delete(j),y.forEach(Y=>Y.delete(j))):A&&y.forEach(Y=>{let B=Y.get(j);B&&B.text!==D&&Y.delete(j)}),d.call(e,N,D,...w)}),s&&(e.directoryExists=N=>{let D=t(N),w=m.get(D);if(w!==void 0)return w;let j=s.call(e,N);return m.set(D,!!j),j},l&&(e.createDirectory=N=>{let D=t(N);m.delete(D),l.call(e,N)})),{originalReadFile:i,originalFileExists:o,originalDirectoryExists:s,originalCreateDirectory:l,originalWriteFile:d,getSourceFileWithCache:A,readFileWithCache:E}}function n1e(e,t,r){let i;return i=Hr(i,e.getConfigFileParsingDiagnostics()),i=Hr(i,e.getOptionsDiagnostics(r)),i=Hr(i,e.getSyntacticDiagnostics(t,r)),i=Hr(i,e.getGlobalDiagnostics(r)),i=Hr(i,e.getSemanticDiagnostics(t,r)),Af(e.getCompilerOptions())&&(i=Hr(i,e.getDeclarationDiagnostics(t,r))),Px(i||Xe)}function r1e(e,t){let r="";for(let i of e)r+=oJ(i,t);return r}function oJ(e,t){let r=`${rT(e)} TS${e.code}: ${k_(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){let{line:i,character:o}=gs(e.file,e.start),s=e.file.fileName;return`${qC(s,t.getCurrentDirectory(),d=>t.getCanonicalFileName(d))}(${i+1},${o+1}): `+r}return r}function i1e(e){switch(e){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return R.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function oS(e,t){return t+e+$le}function o1e(e,t,r,i,o,s){let{line:l,character:d}=gs(e,t),{line:p,character:h}=gs(e,t+r),m=gs(e,e.text.length).line,y=p-l>=4,E=(p+1+"").length;y&&(E=Math.max(Qle.length,E));let S="";for(let A=l;A<=p;A++){S+=s.getNewLine(),y&&l+1r.getCanonicalFileName(p)):e.fileName,d="";return d+=i(l,"\x1B[96m"),d+=":",d+=i(`${o+1}`,"\x1B[93m"),d+=":",d+=i(`${s+1}`,"\x1B[93m"),d}function qle(e,t){let r="";for(let i of e){if(i.file){let{file:o,start:s}=i;r+=aJ(o,s,t),r+=" - "}if(r+=oS(rT(i),i1e(i.category)),r+=oS(` TS${i.code}: `,"\x1B[90m"),r+=k_(i.messageText,t.getNewLine()),i.file&&i.code!==f.File_appears_to_be_binary.code&&(r+=t.getNewLine(),r+=o1e(i.file,i.start,i.length,"",i1e(i.category),t)),i.relatedInformation){r+=t.getNewLine();for(let{file:o,start:s,length:l,messageText:d}of i.relatedInformation)o&&(r+=t.getNewLine(),r+=l1e+aJ(o,s,t),r+=o1e(o,s,l,Zle,"\x1B[96m",t)),r+=t.getNewLine(),r+=Zle+k_(d,t.getNewLine())}r+=t.getNewLine()}return r}function k_(e,t,r=0){if(Co(e))return e;if(e===void 0)return"";let i="";if(r){i+=t;for(let o=0;oHR(s,e,r,i,o,t,l)}}function uJ(e){return Co(e)?e:oh(e.fileName)}function tz(e,t,r,i,o){return{nameAndMode:c1e,resolve:(s,l)=>Ese(s,e,r,i,t,o,l)}}function Lw(e,t,r,i,o,s,l,d){if(e.length===0)return Xe;let p=[],h=new Map,m=d(t,r,i,s,l);for(let y of e){let E=m.nameAndMode.getName(y),S=m.nameAndMode.getMode(y,o,r?.commandLine.options||i),A=DP(E,S),N=h.get(A);N||h.set(A,N=m.resolve(E,S)),p.push(N)}return p}function pJ(e,t){return nz(void 0,e,(r,i)=>r&&t(r,i))}function nz(e,t,r,i){let o;return s(e,t,void 0);function s(l,d,p){if(i){let h=i(l,p);if(h)return h}return gn(d,(h,m)=>{if(h&&o?.has(h.sourceFile.path))return;let y=r(h,p,m);return y||!h?y:((o||(o=new Set)).add(h.sourceFile.path),s(h.commandLine.projectReferences,h.references,h))})}}function rz(e,t,r){let i=e.configFilePath?oi(e.configFilePath):t;return $r(i,`__lib_node_modules_lookup_${r}__.ts`)}function fJ(e){let t=e.split("."),r=t[1],i=2;for(;t[i]&&t[i]!=="d";)r+=(i===2?"/":"-")+t[i],i++;return"@typescript/lib-"+r}function a1e(e){let t=oh(e.fileName),r=c3.get(t);return{libName:t,libFileName:r}}function xE(e){switch(e?.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function QR(e){return e.pos!==void 0}function jP(e,t){var r,i,o,s;let l=R.checkDefined(e.getSourceFileByPath(t.file)),{kind:d,index:p}=t,h,m,y,E;switch(d){case 3:let S=ww(l,p);if(y=(i=(r=e.getResolvedModule(l,S.text,e.getModeForUsageLocation(l,S)))==null?void 0:r.resolvedModule)==null?void 0:i.packageId,S.pos===-1)return{file:l,packageId:y,text:S.text};h=Pa(l.text,S.pos),m=S.end;break;case 4:({pos:h,end:m}=l.referencedFiles[p]);break;case 5:({pos:h,end:m,resolutionMode:E}=l.typeReferenceDirectives[p]),y=(s=(o=e.getResolvedTypeReferenceDirective(l,oh(l.typeReferenceDirectives[p].fileName),E||l.impliedNodeFormat))==null?void 0:o.resolvedTypeReferenceDirective)==null?void 0:s.packageId;break;case 7:({pos:h,end:m}=l.libReferenceDirectives[p]);break;default:return R.assertNever(d)}return{file:l,pos:h,end:m,packageId:y}}function mJ(e,t,r,i,o,s,l,d,p,h){if(!e||d?.()||!Vm(e.getRootFileNames(),t))return!1;let m;if(!Vm(e.getProjectReferences(),h,N)||e.getSourceFiles().some(S))return!1;let y=e.getMissingFilePaths();if(y&&zc(y,o))return!1;let E=e.getCompilerOptions();if(!Qj(E,r)||e.resolvedLibReferences&&zc(e.resolvedLibReferences,(w,j)=>l(j)))return!1;if(E.configFile&&r.configFile)return E.configFile.text===r.configFile.text;return!0;function S(w){return!A(w)||s(w.path)}function A(w){return w.version===i(w.resolvedPath,w.fileName)}function N(w,j,K){return GV(w,j)&&D(e.getResolvedProjectReferences()[K],w)}function D(w,j){if(w){if(zo(m,w))return!0;let Y=ZR(j),B=p(Y);return!B||w.commandLine.options.configFile!==B.options.configFile||!Vm(w.commandLine.fileNames,B.fileNames)?!1:((m||(m=[])).push(w),!gn(w.references,(ce,z)=>!D(ce,w.commandLine.projectReferences[z])))}let K=ZR(j);return!p(K)}}function KT(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function kw(e,t,r,i){let o=_J(e,t,r,i);return typeof o=="object"?o.impliedNodeFormat:o}function _J(e,t,r,i){switch(uu(i)){case 3:case 99:return bc(e,[".d.mts",".mts",".mjs"])?99:bc(e,[".d.cts",".cts",".cjs"])?1:bc(e,[".d.ts",".ts",".tsx",".js",".jsx"])?o():void 0;default:return}function o(){let s=fw(t,r,i),l=[];s.failedLookupLocations=l,s.affectingLocations=l;let d=mw(e,s);return{impliedNodeFormat:d?.contents.packageJsonContent.type==="module"?99:1,packageJsonLocations:l,packageJsonScope:d}}}function OVe(e,t){return e?Bx(e.getCompilerOptions(),t,u3):!1}function WVe(e,t,r,i,o,s){return{rootNames:e,options:t,host:r,oldProgram:i,configFileParsingDiagnostics:o,typeScriptVersion:s}}function iz(e,t,r,i,o){var s,l,d,p,h,m,y,E,S,A,N,D,w,j,K,Y;let B=So(e)?WVe(e,t,r,i,o):e,{rootNames:ce,options:z,configFileParsingDiagnostics:ee,projectReferences:me,typeScriptVersion:ge}=B,{oldProgram:q}=B,J=bu(()=>Dm("ignoreDeprecations",f.Invalid_value_for_ignoreDeprecations)),re,pe,xe,fe,ne,he,Ce,Ge=new Map,ve=Xp(),Ie={},De={},Le=u1(),Et,be,ze,tt,Wt,_t,Je,ft,Zt,en,Dn=typeof z.maxNodeModuleJsDepth=="number"?z.maxNodeModuleJsDepth:0,Kn=0,pn=new Map,Yt=new Map;(s=rr)==null||s.push(rr.Phase.Program,"createProgram",{configFilePath:z.configFilePath,rootDir:z.rootDir},!0),el("beforeProgram");let qt=B.host||Jle(z),hi=az(qt),uo=z.noLib,Li=bu(()=>qt.getDefaultLibFileName(z)),Eo=qt.getDefaultLibLocation?qt.getDefaultLibLocation():oi(Li()),Qn=lR(),Ur=qt.getCurrentDirectory(),Er=GN(z),on=sk(z,Er),Ye=new Map,Ot,In,si,yi=qt.hasInvalidatedResolutions||jm;qt.resolveModuleNameLiterals?(si=qt.resolveModuleNameLiterals.bind(qt),In=(l=qt.getModuleResolutionCache)==null?void 0:l.call(qt)):qt.resolveModuleNames?(si=(we,qe,Mt,Bt,_n,Jn)=>qt.resolveModuleNames(we.map(Yle),qe,Jn?.map(Yle),Mt,Bt,_n).map(fn=>fn?fn.extension!==void 0?{resolvedModule:fn}:{resolvedModule:{...fn,extension:jN(fn.resolvedFileName)}}:ece),In=(d=qt.getModuleResolutionCache)==null?void 0:d.call(qt)):(In=UR(Ur,Z,z),si=(we,qe,Mt,Bt,_n)=>Lw(we,qe,Mt,Bt,_n,qt,In,dJ));let $i;if(qt.resolveTypeReferenceDirectiveReferences)$i=qt.resolveTypeReferenceDirectiveReferences.bind(qt);else if(qt.resolveTypeReferenceDirectives)$i=(we,qe,Mt,Bt,_n)=>qt.resolveTypeReferenceDirectives(we.map(uJ),qe,Mt,Bt,_n?.impliedNodeFormat).map(Jn=>({resolvedTypeReferenceDirective:Jn}));else{let we=b3(Ur,Z,void 0,In?.getPackageJsonInfoCache(),In?.optionsToRedirectsKey);$i=(qe,Mt,Bt,_n,Jn)=>Lw(qe,Mt,Bt,_n,Jn,qt,we,tz)}let Ao=qt.hasInvalidatedLibResolutions||jm,da;if(qt.resolveLibrary)da=qt.resolveLibrary.bind(qt);else{let we=UR(Ur,Z,z,In?.getPackageJsonInfoCache());da=(qe,Mt,Bt)=>E3(qe,Mt,Bt,qt,we)}let Ba=new Map,vn=new Map,kn=Xp(),Be=!1,ct=new Map,lt=new Map,Dt=qt.useCaseSensitiveFileNames()?new Map:void 0,se,ke,st,G,et=!!((p=qt.useSourceOfProjectReferenceRedirect)!=null&&p.call(qt))&&!z.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Tt,fileExists:He,directoryExists:pt}=FVe({compilerHost:qt,getSymlinkCache:B_,useSourceOfProjectReferenceRedirect:et,toPath:er,getResolvedProjectReferences:Po,getSourceOfProjectReferenceRedirect:Ru,forEachResolvedProjectReference:zu}),Ft=qt.readFile.bind(qt);(h=rr)==null||h.push(rr.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!q});let hn=OVe(q,z);(m=rr)==null||m.pop();let dn;if((y=rr)==null||y.push(rr.Phase.Program,"tryReuseStructureFromOldProgram",{}),dn=Io(),(E=rr)==null||E.pop(),dn!==2){if(re=[],pe=[],me&&(se||(se=me.map(zt)),ce.length&&se?.forEach((we,qe)=>{if(!we)return;let Mt=Rs(we.commandLine.options);if(et){if(Mt||Md(we.commandLine.options)===0)for(let Bt of we.commandLine.fileNames)Lt(Bt,{kind:1,index:qe})}else if(Mt)Lt(fE(Mt,".d.ts"),{kind:2,index:qe});else if(Md(we.commandLine.options)===0){let Bt=bu(()=>YR(we.commandLine,!qt.useCaseSensitiveFileNames()));for(let _n of we.commandLine.fileNames)!vd(_n)&&!Sl(_n,".json")&&Lt(GP(_n,we.commandLine,!qt.useCaseSensitiveFileNames(),Bt),{kind:2,index:qe})}})),(S=rr)==null||S.push(rr.Phase.Program,"processRootFiles",{count:ce.length}),gn(ce,(we,qe)=>Gs(we,!1,!1,{kind:0,index:qe})),(A=rr)==null||A.pop(),be??(be=ce.length?y3(z,qt):Xe),ze=u1(),be.length){(N=rr)==null||N.push(rr.Phase.Program,"processTypeReferences",{count:be.length});let we=z.configFilePath?oi(z.configFilePath):Ur,qe=$r(we,eD),Mt=Ri(be,qe);for(let Bt=0;Bt{Gs(Sp(qe),!0,!1,{kind:6,index:Mt})})}xe=by(re,gi).concat(pe),re=void 0,pe=void 0}if(q&&qt.onReleaseOldSourceFile){let we=q.getSourceFiles();for(let qe of we){let Mt=ul(qe.resolvedPath);(hn||!Mt||Mt.impliedNodeFormat!==qe.impliedNodeFormat||qe.resolvedPath===qe.path&&Mt.resolvedPath!==qe.path)&&qt.onReleaseOldSourceFile(qe,q.getCompilerOptions(),!!ul(qe.path))}qt.getParsedCommandLine||q.forEachResolvedProjectReference(qe=>{z_(qe.sourceFile.path)||qt.onReleaseOldSourceFile(qe.sourceFile,q.getCompilerOptions(),!1)})}q&&qt.onReleaseParsedCommandLine&&nz(q.getProjectReferences(),q.getResolvedProjectReferences(),(we,qe,Mt)=>{let Bt=qe?.commandLine.projectReferences[Mt]||q.getProjectReferences()[Mt],_n=ZR(Bt);ke?.has(er(_n))||qt.onReleaseParsedCommandLine(_n,we,q.getCompilerOptions())}),q=void 0,Wt=void 0,Je=void 0,Zt=void 0;let un={getRootFileNames:()=>ce,getSourceFile:Na,getSourceFileByPath:ul,getSourceFiles:()=>xe,getMissingFilePaths:()=>lt,getModuleResolutionCache:()=>In,getFilesByNameMap:()=>ct,getCompilerOptions:()=>z,getSyntacticDiagnostics:ac,getOptionsDiagnostics:Cr,getGlobalDiagnostics:vl,getSemanticDiagnostics:xl,getCachedSemanticDiagnostics:al,getSuggestionDiagnostics:Pe,getDeclarationDiagnostics:Bs,getBindAndCheckDiagnostics:Mo,getProgramDiagnostics:tn,getTypeChecker:mo,getClassifiableNames:ho,getCommonSourceDirectory:Fr,emit:sa,getCurrentDirectory:()=>Ur,getNodeCount:()=>mo().getNodeCount(),getIdentifierCount:()=>mo().getIdentifierCount(),getSymbolCount:()=>mo().getSymbolCount(),getTypeCount:()=>mo().getTypeCount(),getInstantiationCount:()=>mo().getInstantiationCount(),getRelationCacheSizes:()=>mo().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>Et,getResolvedTypeReferenceDirectives:()=>Le,getAutomaticTypeDirectiveNames:()=>be,getAutomaticTypeDirectiveResolutions:()=>ze,isSourceFileFromExternalLibrary:ml,isSourceFileDefaultLibrary:sd,getModeForUsageLocation:uf,getModeForResolutionAtIndex:Jg,getSourceFileFromReference:im,getLibFileFromReference:wc,sourceFileToPackageName:vn,redirectTargetsMap:kn,usesUriStyleNodeCoreModules:Be,resolvedModules:_t,resolvedTypeReferenceDirectiveNames:ft,resolvedLibReferences:tt,getResolvedModule:U,getResolvedModuleFromModuleSpecifier:Me,getResolvedTypeReferenceDirective:Pt,forEachResolvedModule:k,forEachResolvedTypeReferenceDirective:ie,getCurrentPackagesMap:()=>en,typesPackageExists:We,packageBundlesTypes:Ne,isEmittedFile:mS,getConfigFileParsingDiagnostics:jc,getProjectReferences:ls,getResolvedProjectReferences:Po,getProjectReferenceRedirect:Gl,getResolvedProjectReferenceToRedirect:cf,getResolvedProjectReferenceByPath:z_,forEachResolvedProjectReference:zu,isSourceOfProjectReferenceRedirect:Pf,emitBuildInfo:$l,fileExists:He,readFile:Ft,directoryExists:pt,getSymlinkCache:B_,realpath:(K=qt.realpath)==null?void 0:K.bind(qt),useCaseSensitiveFileNames:()=>qt.useCaseSensitiveFileNames(),getCanonicalFileName:Z,getFileIncludeReasons:()=>ve,structureIsReused:dn,writeFile:ks};return Tt(),Et?.forEach(we=>{switch(we.kind){case 1:return Qn.add(ii(we.file&&ul(we.file),we.fileProcessingReason,we.diagnostic,we.args||Xe));case 0:let{file:qe,pos:Mt,end:Bt}=jP(un,we.reason);return Qn.add(Yc(qe,R.checkDefined(Mt),R.checkDefined(Bt)-Mt,we.diagnostic,...we.args||Xe));case 2:return we.diagnostics.forEach(_n=>Qn.add(_n));default:R.assertNever(we)}}),O(),el("afterProgram"),Yp("Program","beforeProgram","afterProgram"),(Y=rr)==null||Y.pop(),un;function U(we,qe,Mt){var Bt;return(Bt=_t?.get(we.path))==null?void 0:Bt.get(qe,Mt)}function Me(we){let qe=Gn(we);return R.assertIsDefined(qe,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),U(qe,we.text,uf(qe,we))}function Pt(we,qe,Mt){var Bt;return(Bt=ft?.get(we.path))==null?void 0:Bt.get(qe,Mt)}function k(we,qe){H(_t,we,qe)}function ie(we,qe){H(ft,we,qe)}function H(we,qe,Mt){var Bt;Mt?(Bt=we?.get(Mt.path))==null||Bt.forEach((_n,Jn,fn)=>qe(_n,Jn,fn,Mt.path)):we?.forEach((_n,Jn)=>_n.forEach((fn,qn,mi)=>qe(fn,qn,mi,Jn)))}function ue(){return en||(en=new Map,k(({resolvedModule:we})=>{we?.packageId&&en.set(we.packageId.name,we.extension===".d.ts"||!!en.get(we.packageId.name))}),en)}function We(we){return ue().has(A3(we))}function Ne(we){return!!ue().get(we)}function It(we){var qe;(qe=we.resolutionDiagnostics)!=null&&qe.length&&(Et??(Et=[])).push({kind:2,diagnostics:we.resolutionDiagnostics})}function Ct(we,qe,Mt,Bt){if(qt.resolveModuleNameLiterals||!qt.resolveModuleNames)return It(Mt);if(!In||qc(qe))return;let _n=_o(we.originalFileName,Ur),Jn=oi(_n),fn=wn(we),qn=In.getFromNonRelativeNameCache(qe,Bt,Jn,fn);qn&&It(qn)}function Kt(we,qe,Mt){var Bt,_n;if(!we.length)return Xe;let Jn=_o(qe.originalFileName,Ur),fn=wn(qe);(Bt=rr)==null||Bt.push(rr.Phase.Program,"resolveModuleNamesWorker",{containingFileName:Jn}),el("beforeResolveModule");let qn=si(we,Jn,fn,z,qe,Mt);return el("afterResolveModule"),Yp("ResolveModule","beforeResolveModule","afterResolveModule"),(_n=rr)==null||_n.pop(),qn}function En(we,qe,Mt){var Bt,_n;if(!we.length)return[];let Jn=Co(qe)?void 0:qe,fn=Co(qe)?qe:_o(qe.originalFileName,Ur),qn=Jn&&wn(Jn);(Bt=rr)==null||Bt.push(rr.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:fn}),el("beforeResolveTypeReference");let mi=$i(we,fn,qn,z,Jn,Mt);return el("afterResolveTypeReference"),Yp("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(_n=rr)==null||_n.pop(),mi}function wn(we){let qe=cf(we.originalFileName);if(qe||!vd(we.originalFileName))return qe;let Mt=Bn(we.path);if(Mt)return Mt;if(!qt.realpath||!z.preserveSymlinks||!we.originalFileName.includes(Sh))return;let Bt=er(qt.realpath(we.originalFileName));return Bt===we.path?void 0:Bn(Bt)}function Bn(we){let qe=Ru(we);if(Co(qe))return cf(qe);if(qe)return zu(Mt=>{let Bt=Rs(Mt.commandLine.options);if(Bt)return er(Bt)===we?Mt:void 0})}function gi(we,qe){return Zs(xi(we),xi(qe))}function xi(we){if(mm(Eo,we.fileName,!1)){let qe=nc(we.fileName);if(qe==="lib.d.ts"||qe==="lib.es6.d.ts")return 0;let Mt=Ex(jC(qe,"lib."),".d.ts"),Bt=ow.indexOf(Mt);if(Bt!==-1)return Bt+1}return ow.length+2}function er(we){return tl(we,Ur,Z)}function Fr(){if(ne===void 0){let we=jr(xe,qe=>ET(qe,un));ne=VP(z,()=>to(we,qe=>qe.isDeclarationFile?void 0:qe.fileName),Ur,Z,qe=>wt(we,qe))}return ne}function ho(){var we;if(!Ce){mo(),Ce=new Set;for(let qe of xe)(we=qe.classifiableNames)==null||we.forEach(Mt=>Ce.add(Mt))}return Ce}function Pi(we,qe){if(dn===0&&!qe.ambientModuleNames.length)return Kt(we,qe,void 0);let Mt,Bt,_n,Jn=ece,fn=q&&q.getSourceFile(qe.fileName);for(let ni=0;ni{let Bt=(qe?qe.commandLine.projectReferences:me)[Mt],_n=zt(Bt);return we?!_n||_n.sourceFile!==we.sourceFile||!Vm(we.commandLine.fileNames,_n.commandLine.fileNames):_n!==void 0},(we,qe)=>{let Mt=qe?z_(qe.sourceFile.path).commandLine.projectReferences:me;return!Vm(we,Mt,GV)})}function Io(){var we;if(!q)return 0;let qe=q.getCompilerOptions();if(yF(qe,z))return 0;let Mt=q.getRootFileNames();if(!Vm(Mt,ce)||!Kr())return 0;me&&(se=me.map(zt));let Bt=[],_n=[];if(dn=2,zc(q.getMissingFilePaths(),or=>qt.fileExists(or)))return 0;let Jn=q.getSourceFiles(),fn;(or=>{or[or.Exists=0]="Exists",or[or.Modified=1]="Modified"})(fn||(fn={}));let qn=new Map;for(let or of Jn){let ni=Qo(or.fileName,In,qt,z),dr=qt.getSourceFileByPath?qt.getSourceFileByPath(or.fileName,or.resolvedPath,ni,void 0,hn):qt.getSourceFile(or.fileName,ni,void 0,hn);if(!dr)return 0;dr.packageJsonLocations=(we=ni.packageJsonLocations)!=null&&we.length?ni.packageJsonLocations:void 0,dr.packageJsonScope=ni.packageJsonScope,R.assert(!dr.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let Xo;if(or.redirectInfo){if(dr!==or.redirectInfo.unredirected)return 0;Xo=!1,dr=or}else if(q.redirectTargetsMap.has(or.path)){if(dr!==or)return 0;Xo=!1}else Xo=dr!==or;dr.path=or.path,dr.originalFileName=or.originalFileName,dr.resolvedPath=or.resolvedPath,dr.fileName=or.fileName;let Ha=q.sourceFileToPackageName.get(or.path);if(Ha!==void 0){let Yd=qn.get(Ha),ud=Xo?1:0;if(Yd!==void 0&&ud===1||Yd===1)return 0;qn.set(Ha,ud)}if(Xo)or.impliedNodeFormat!==dr.impliedNodeFormat?dn=1:Vm(or.libReferenceDirectives,dr.libReferenceDirectives,hc)?or.hasNoDefaultLib!==dr.hasNoDefaultLib?dn=1:Vm(or.referencedFiles,dr.referencedFiles,hc)?(tp(dr),Vm(or.imports,dr.imports,vs)&&Vm(or.moduleAugmentations,dr.moduleAugmentations,vs)?(or.flags&12582912)!==(dr.flags&12582912)?dn=1:Vm(or.typeReferenceDirectives,dr.typeReferenceDirectives,hc)||(dn=1):dn=1):dn=1:dn=1,_n.push(dr);else if(yi(or.path))dn=1,_n.push(dr);else for(let Yd of or.ambientModuleNames)Ge.set(Yd,or.fileName);Bt.push(dr)}if(dn!==2)return dn;for(let or of _n){let ni=s1e(or),dr=Pi(ni,or);(Je??(Je=new Map)).set(or.path,dr),VV(ni,dr,qg=>q.getResolvedModule(or,qg.text,uf(or,qg)),Wre)&&(dn=1);let Ha=or.typeReferenceDirectives,Yd=Ri(Ha,or);(Zt??(Zt=new Map)).set(or.path,Yd),VV(Ha,Yd,qg=>q.getResolvedTypeReferenceDirective(or,uJ(qg),Mw(qg,or.impliedNodeFormat)),Fre)&&(dn=1)}if(dn!==2)return dn;if(wre(qe,z)||q.resolvedLibReferences&&zc(q.resolvedLibReferences,(or,ni)=>cg(ni).actual!==or.actual))return 1;if(qt.hasChangedAutomaticTypeDirectiveNames){if(qt.hasChangedAutomaticTypeDirectiveNames())return 1}else if(be=y3(z,qt),!Vm(q.getAutomaticTypeDirectiveNames(),be))return 1;lt=q.getMissingFilePaths(),R.assert(Bt.length===q.getSourceFiles().length);for(let or of Bt)ct.set(or.path,or);return q.getFilesByNameMap().forEach((or,ni)=>{if(!or){ct.set(ni,or);return}if(or.path===ni){q.isSourceFileFromExternalLibrary(or)&&Yt.set(or.path,!0);return}ct.set(ni,ct.get(or.path))}),xe=Bt,ve=q.getFileIncludeReasons(),Et=q.getFileProcessingDiagnostics(),Le=q.getResolvedTypeReferenceDirectives(),be=q.getAutomaticTypeDirectiveNames(),ze=q.getAutomaticTypeDirectiveResolutions(),vn=q.sourceFileToPackageName,kn=q.redirectTargetsMap,Be=q.usesUriStyleNodeCoreModules,_t=q.resolvedModules,ft=q.resolvedTypeReferenceDirectiveNames,tt=q.resolvedLibReferences,en=q.getCurrentPackagesMap(),2}function xn(we){return{getPrependNodes:zs,getCanonicalFileName:Z,getCommonSourceDirectory:un.getCommonSourceDirectory,getCompilerOptions:un.getCompilerOptions,getCurrentDirectory:()=>Ur,getSourceFile:un.getSourceFile,getSourceFileByPath:un.getSourceFileByPath,getSourceFiles:un.getSourceFiles,getLibFileFromReference:un.getLibFileFromReference,isSourceFileFromExternalLibrary:ml,getResolvedProjectReferenceToRedirect:cf,getProjectReferenceRedirect:Gl,isSourceOfProjectReferenceRedirect:Pf,getSymlinkCache:B_,writeFile:we||ks,isEmitBlocked:ld,readFile:qe=>qt.readFile(qe),fileExists:qe=>{let Mt=er(qe);return ul(Mt)?!0:lt.has(Mt)?!1:qt.fileExists(qe)},useCaseSensitiveFileNames:()=>qt.useCaseSensitiveFileNames(),getBuildInfo:qe=>{var Mt;return(Mt=un.getBuildInfo)==null?void 0:Mt.call(un,qe)},getSourceFileFromReference:(qe,Mt)=>un.getSourceFileFromReference(qe,Mt),redirectTargetsMap:kn,getFileIncludeReasons:un.getFileIncludeReasons,createHash:ea(qt,qt.createHash)}}function ks(we,qe,Mt,Bt,_n,Jn){qt.writeFile(we,qe,Mt,Bt,_n,Jn)}function $l(we){var qe,Mt;R.assert(!Rs(z)),(qe=rr)==null||qe.push(rr.Phase.Emit,"emitBuildInfo",{},!0),el("beforeEmit");let Bt=q3(Y3,xn(we),void 0,UK,!1,!0);return el("afterEmit"),Yp("Emit","beforeEmit","afterEmit"),(Mt=rr)==null||Mt.pop(),Bt}function Po(){return se}function ls(){return me}function zs(){return gJ(me,(we,qe)=>{var Mt;return(Mt=se[qe])==null?void 0:Mt.commandLine},we=>{let qe=er(we),Mt=ul(qe);return Mt?Mt.text:ct.has(qe)?void 0:qt.readFile(qe)},qt)}function ml(we){return!!Yt.get(we.path)}function sd(we){if(!we.isDeclarationFile)return!1;if(we.hasNoDefaultLib)return!0;if(!z.noLib)return!1;let qe=qt.useCaseSensitiveFileNames()?eT:Xb;return z.lib?gt(z.lib,Mt=>qe(we.fileName,tt.get(Mt).actual)):qe(we.fileName,Li())}function mo(){return he||(he=Hse(un))}function sa(we,qe,Mt,Bt,_n,Jn){var fn,qn;(fn=rr)==null||fn.push(rr.Phase.Emit,"emit",{path:we?.path},!0);let mi=cd(()=>Es(un,we,qe,Mt,Bt,_n,Jn));return(qn=rr)==null||qn.pop(),mi}function ld(we){return Ye.has(er(we))}function Es(we,qe,Mt,Bt,_n,Jn,fn){if(!fn){let or=hJ(we,qe,Mt,Bt);if(or)return or}let qn=mo().getEmitResolver(Rs(z)?void 0:qe,Bt);el("beforeEmit");let mi=q3(qn,xn(Mt),qe,jK(z,Jn,_n),_n,!1,fn);return el("afterEmit"),Yp("Emit","beforeEmit","afterEmit"),mi}function Na(we){return ul(er(we))}function ul(we){return ct.get(we)||void 0}function Nf(we,qe,Mt){return Px(we?qe(we,Mt):va(un.getSourceFiles(),Bt=>(Mt&&Mt.throwIfCancellationRequested(),qe(Bt,Mt))))}function ac(we,qe){return Nf(we,ed,qe)}function xl(we,qe){return Nf(we,Ep,qe)}function al(we){var qe;return we?(qe=Ie.perFile)==null?void 0:qe.get(we.path):Ie.allDiagnostics}function Mo(we,qe){return Ds(we,qe)}function tn(we){var qe;if(UN(we,z,un))return Xe;let Mt=Qn.getDiagnostics(we.fileName);return(qe=we.commentDirectives)!=null&&qe.length?$(we,we.commentDirectives,Mt).diagnostics:Mt}function Bs(we,qe){let Mt=un.getCompilerOptions();return!we||Rs(Mt)?vr(we,qe):Nf(we,Di,qe)}function ed(we){return lu(we)?(we.additionalSyntacticDiagnostics||(we.additionalSyntacticDiagnostics=cn(we)),bo(we.additionalSyntacticDiagnostics,we.parseDiagnostics)):we.parseDiagnostics}function cd(we){try{return we()}catch(qe){throw qe instanceof xx&&(he=void 0),qe}}function Ep(we,qe){return bo(oz(Ds(we,qe),z),tn(we))}function Ds(we,qe){return zr(we,qe,Ie,Ac)}function Ac(we,qe){return cd(()=>{if(UN(we,z,un))return Xe;let Mt=mo();R.assert(!!we.bindDiagnostics);let _n=(we.scriptKind===1||we.scriptKind===2)&&dk(we,z),Jn=f2(we,z.checkJs),qn=!(!!we.checkJsDirective&&we.checkJsDirective.enabled===!1)&&(we.scriptKind===3||we.scriptKind===4||we.scriptKind===5||Jn||_n||we.scriptKind===7),mi=qn?we.bindDiagnostics:Xe,or=qn?Mt.getDiagnostics(we,qe):Xe;return Jn&&(mi=jr(mi,ni=>lz.has(ni.code)),or=jr(or,ni=>lz.has(ni.code))),de(we,qn&&!Jn,mi,or,_n?we.jsDocDiagnostics:void 0)})}function de(we,qe,...Mt){var Bt;let _n=pm(Mt);if(!qe||!((Bt=we.commentDirectives)!=null&&Bt.length))return _n;let{diagnostics:Jn,directives:fn}=$(we,we.commentDirectives,_n);for(let qn of fn.getUnusedExpectations())Jn.push(Zre(we,qn.range,f.Unused_ts_expect_error_directive));return Jn}function $(we,qe,Mt){let Bt=Gre(we,qe);return{diagnostics:Mt.filter(Jn=>yt(Jn,Bt)===-1),directives:Bt}}function Pe(we,qe){return cd(()=>mo().getSuggestionDiagnostics(we,qe))}function yt(we,qe){let{file:Mt,start:Bt}=we;if(!Mt)return-1;let _n=Rg(Mt),Jn=Cx(_n,Bt).line-1;for(;Jn>=0;){if(qe.markUsed(Jn))return Jn;let fn=Mt.text.slice(_n[Jn],_n[Jn+1]).trim();if(fn!==""&&!/^(\s*)\/\/(.*)$/.test(fn))return-1;Jn--}return-1}function cn(we){return cd(()=>{let qe=[];return Mt(we,we),EP(we,Mt,Bt),qe;function Mt(qn,mi){switch(mi.kind){case 169:case 172:case 174:if(mi.questionToken===qn)return qe.push(fn(qn,f.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 173:case 176:case 177:case 178:case 218:case 262:case 219:case 260:if(mi.type===qn)return qe.push(fn(qn,f.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(qn.kind){case 273:if(qn.isTypeOnly)return qe.push(fn(mi,f._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(qn.isTypeOnly)return qe.push(fn(qn,f._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(qn.isTypeOnly)return qe.push(fn(qn,f._0_declarations_can_only_be_used_in_TypeScript_files,Qu(qn)?"import...type":"export...type")),"skip";break;case 271:return qe.push(fn(qn,f.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(qn.isExportEquals)return qe.push(fn(qn,f.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(qn.token===119)return qe.push(fn(qn,f.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:let ni=ca(120);return R.assertIsDefined(ni),qe.push(fn(qn,f._0_declarations_can_only_be_used_in_TypeScript_files,ni)),"skip";case 267:let dr=qn.flags&32?ca(145):ca(144);return R.assertIsDefined(dr),qe.push(fn(qn,f._0_declarations_can_only_be_used_in_TypeScript_files,dr)),"skip";case 265:return qe.push(fn(qn,f.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return qn.body?void 0:(qe.push(fn(qn,f.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:let Xo=R.checkDefined(ca(94));return qe.push(fn(qn,f._0_declarations_can_only_be_used_in_TypeScript_files,Xo)),"skip";case 235:return qe.push(fn(qn,f.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return qe.push(fn(qn.type,f.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return qe.push(fn(qn.type,f.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:R.fail()}}function Bt(qn,mi){if(TH(mi)){let or=Vr(mi.modifiers,yd);or&&qe.push(fn(or,f.Decorators_are_not_valid_here))}else if(GT(mi)&&mi.modifiers){let or=Kl(mi.modifiers,yd);if(or>=0){if(To(mi)&&!z.experimentalDecorators)qe.push(fn(mi.modifiers[or],f.Decorators_are_not_valid_here));else if(Sc(mi)){let ni=Kl(mi.modifiers,JI);if(ni>=0){let dr=Kl(mi.modifiers,w4);if(or>ni&&dr>=0&&or=0&&or=0&&qe.push(Ma(fn(mi.modifiers[Xo],f.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),fn(mi.modifiers[or],f.Decorator_used_before_export_here)))}}}}}switch(mi.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(qn===mi.typeParameters)return qe.push(Jn(qn,f.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(qn===mi.modifiers)return _n(mi.modifiers,mi.kind===243),"skip";break;case 172:if(qn===mi.modifiers){for(let or of qn)Ta(or)&&or.kind!==126&&or.kind!==129&&qe.push(fn(or,f.The_0_modifier_can_only_be_used_in_TypeScript_files,ca(or.kind)));return"skip"}break;case 169:if(qn===mi.modifiers&>(qn,Ta))return qe.push(Jn(qn,f.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if(qn===mi.typeArguments)return qe.push(Jn(qn,f.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function _n(qn,mi){for(let or of qn)switch(or.kind){case 87:if(mi)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:qe.push(fn(or,f.The_0_modifier_can_only_be_used_in_TypeScript_files,ca(or.kind)));break;case 126:case 95:case 90:case 129:}}function Jn(qn,mi,...or){let ni=qn.pos;return Yc(we,ni,qn.end-ni,mi,...or)}function fn(qn,mi,...or){return Kf(we,qn,mi,...or)}})}function vr(we,qe){return zr(we,qe,De,fr)}function fr(we,qe){return cd(()=>{let Mt=mo().getEmitResolver(we,qe);return Fle(xn(qa),Mt,we)||Xe})}function zr(we,qe,Mt,Bt){var _n;let Jn=we?(_n=Mt.perFile)==null?void 0:_n.get(we.path):Mt.allDiagnostics;if(Jn)return Jn;let fn=Bt(we,qe);return we?(Mt.perFile||(Mt.perFile=new Map)).set(we.path,fn):Mt.allDiagnostics=fn,fn}function Di(we,qe){return we.isDeclarationFile?[]:vr(we,qe)}function Cr(){return Px(bo(Qn.getGlobalDiagnostics(),Jo()))}function Jo(){if(!z.configFile)return Xe;let we=Qn.getDiagnostics(z.configFile.fileName);return zu(qe=>{we=bo(we,Qn.getDiagnostics(qe.sourceFile.fileName))}),we}function vl(){return ce.length?Px(mo().getGlobalDiagnostics().slice()):Xe}function jc(){return ee||Xe}function Gs(we,qe,Mt,Bt){Re(fa(we),qe,Mt,void 0,Bt)}function hc(we,qe){return we.fileName===qe.fileName}function vs(we,qe){return we.kind===80?qe.kind===80&&we.escapedText===qe.escapedText:qe.kind===11&&we.text===qe.text}function Uc(we,qe){let Mt=L.createStringLiteral(we),Bt=L.createImportDeclaration(void 0,void 0,Mt,void 0);return BI(Bt,2),ja(Mt,Bt),ja(Bt,qe),Mt.flags&=-17,Bt.flags&=-17,Mt}function tp(we){if(we.imports)return;let qe=lu(we),Mt=oc(we),Bt,_n,Jn;if((em(z)||Mt)&&!we.isDeclarationFile){z.importHelpers&&(Bt=[Uc(Vv,we)]);let or=C6(D6(z,we),z);or&&(Bt||(Bt=[])).push(Uc(or,we))}for(let or of we.statements)fn(or,!1);(we.flags&4194304||qe)&&qn(we),we.imports=Bt||Xe,we.moduleAugmentations=_n||Xe,we.ambientModuleNames=Jn||Xe;return;function fn(or,ni){if(h2(or)){let dr=eR(or);dr&&Ca(dr)&&dr.text&&(!ni||!qc(dr.text))&&(Gv(or,!1),Bt=Tn(Bt,dr),!Be&&Kn===0&&!we.isDeclarationFile&&(Be=ao(dr.text,"node:")))}else if(ql(or)&&Pd(or)&&(ni||Qr(or,128)||we.isDeclarationFile)){or.name.parent=or;let dr=Xf(or.name);if(Mt||ni&&!qc(dr))(_n||(_n=[])).push(or.name);else if(!ni){we.isDeclarationFile&&(Jn||(Jn=[])).push(dr);let Xo=or.body;if(Xo)for(let Ha of Xo.statements)fn(Ha,!0)}}}function qn(or){let ni=/import|require/g;for(;ni.exec(or.text)!==null;){let dr=mi(or,ni.lastIndex);qe&&Eu(dr,!0)||Op(dr)&&dr.arguments.length>=1&&ss(dr.arguments[0])?(Gv(dr,!1),Bt=Tn(Bt,dr.arguments[0])):Ov(dr)&&(Gv(dr,!1),Bt=Tn(Bt,dr.argument.literal))}}function mi(or,ni){let dr=or,Xo=Ha=>{if(Ha.pos<=ni&&(niSl(_n,fn))){Mt&&(W0(_n)?Mt(f.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,we):Mt(f.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,we,"'"+pm(Er).join("', '")+"'"));return}let Jn=qe(we);if(Mt)if(Jn)xE(Bt)&&_n===qt.getCanonicalFileName(ul(Bt.file).fileName)&&Mt(f.A_file_cannot_have_a_reference_to_itself);else{let fn=Gl(we);fn?Mt(f.Output_file_0_has_not_been_built_from_source_file_1,fn,we):Mt(f.File_0_not_found,we)}return Jn}else{let _n=z.allowNonTsExtensions&&qe(we);if(_n)return _n;if(Mt&&z.allowNonTsExtensions){Mt(f.File_0_not_found,we);return}let Jn=gn(Er[0],fn=>qe(we+fn));return Mt&&!Jn&&Mt(f.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,we,"'"+pm(Er).join("', '")+"'"),Jn}}function Re(we,qe,Mt,Bt,_n){mu(we,Jn=>qo(Jn,qe,Mt,_n,Bt),(Jn,...fn)=>Yr(void 0,_n,Jn,fn),_n)}function Lt(we,qe){return Re(we,!1,!1,void 0,qe)}function Un(we,qe,Mt){!xE(Mt)&>(ve.get(qe.path),xE)?Yr(qe,Mt,f.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[qe.fileName,we]):Yr(qe,Mt,f.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[we,qe.fileName])}function go(we,qe,Mt,Bt,_n,Jn,fn){var qn;let mi=Eh.createRedirectedSourceFile({redirectTarget:we,unredirected:qe});return mi.fileName=Mt,mi.path=Bt,mi.resolvedPath=_n,mi.originalFileName=Jn,mi.packageJsonLocations=(qn=fn.packageJsonLocations)!=null&&qn.length?fn.packageJsonLocations:void 0,mi.packageJsonScope=fn.packageJsonScope,Yt.set(Bt,Kn>0),mi}function qo(we,qe,Mt,Bt,_n){var Jn,fn;(Jn=rr)==null||Jn.push(rr.Phase.Program,"findSourceFile",{fileName:we,isDefaultLib:qe||void 0,fileIncludeKind:MW[Bt.kind]});let qn=Ql(we,qe,Mt,Bt,_n);return(fn=rr)==null||fn.pop(),qn}function Qo(we,qe,Mt,Bt){let _n=_J(_o(we,Ur),qe?.getPackageJsonInfoCache(),Mt,Bt),Jn=rs(Bt),fn=ak(Bt);return typeof _n=="object"?{..._n,languageVersion:Jn,setExternalModuleIndicator:fn,jsDocParsingMode:Mt.jsDocParsingMode}:{languageVersion:Jn,impliedNodeFormat:_n,setExternalModuleIndicator:fn,jsDocParsingMode:Mt.jsDocParsingMode}}function Ql(we,qe,Mt,Bt,_n){var Jn;let fn=er(we);if(et){let dr=Ru(fn);if(!dr&&qt.realpath&&z.preserveSymlinks&&vd(we)&&we.includes(Sh)){let Xo=er(qt.realpath(we));Xo!==fn&&(dr=Ru(Xo))}if(dr){let Xo=Co(dr)?qo(dr,qe,Mt,Bt,_n):void 0;return Xo&&sl(Xo,fn,we,void 0),Xo}}let qn=we;if(ct.has(fn)){let dr=ct.get(fn);if(gc(dr||void 0,Bt),dr&&z.forceConsistentCasingInFileNames!==!1){let Xo=dr.fileName;er(Xo)!==er(we)&&(we=Gl(we)||we);let Yd=lV(Xo,Ur),ud=lV(we,Ur);Yd!==ud&&Un(we,dr,Bt)}return dr&&Yt.get(dr.path)&&Kn===0?(Yt.set(dr.path,!1),z.noResolve||(Ih(dr,qe),Ug(dr)),z.noLib||Bu(dr),pn.set(dr.path,!1),rt(dr)):dr&&pn.get(dr.path)&&KnYr(void 0,Bt,f.Cannot_read_file_0_Colon_1,[we,dr]),hn);if(_n){let dr=kv(_n),Xo=Ba.get(dr);if(Xo){let Ha=go(Xo,ni,we,fn,er(we),qn,or);return kn.add(Xo.path,we),sl(Ha,fn,we,mi),gc(Ha,Bt),vn.set(fn,EF(_n)),pe.push(Ha),Ha}else ni&&(Ba.set(dr,ni),vn.set(fn,EF(_n)))}if(sl(ni,fn,we,mi),ni){if(Yt.set(fn,Kn>0),ni.fileName=we,ni.path=fn,ni.resolvedPath=er(we),ni.originalFileName=qn,ni.packageJsonLocations=(Jn=or.packageJsonLocations)!=null&&Jn.length?or.packageJsonLocations:void 0,ni.packageJsonScope=or.packageJsonScope,gc(ni,Bt),qt.useCaseSensitiveFileNames()){let dr=oh(fn),Xo=Dt.get(dr);Xo?Un(we,Xo,Bt):Dt.set(dr,ni)}uo=uo||ni.hasNoDefaultLib&&!Mt,z.noResolve||(Ih(ni,qe),Ug(ni)),z.noLib||Bu(ni),rt(ni),qe?re.push(ni):pe.push(ni)}return ni}function gc(we,qe){we&&ve.add(we.path,qe)}function sl(we,qe,Mt,Bt){Bt?(_l(Mt,Bt,we),_l(Mt,qe,we||!1)):_l(Mt,qe,we)}function _l(we,qe,Mt){ct.set(qe,Mt),Mt!==void 0?lt.delete(qe):lt.set(qe,we)}function Gl(we){let qe=Zl(we);return qe&&Hc(qe,we)}function Zl(we){if(!(!se||!se.length||vd(we)||Sl(we,".json")))return cf(we)}function Hc(we,qe){let Mt=Rs(we.commandLine.options);return Mt?fE(Mt,".d.ts"):GP(qe,we.commandLine,!qt.useCaseSensitiveFileNames())}function cf(we){st===void 0&&(st=new Map,zu(Mt=>{er(z.configFilePath)!==Mt.sourceFile.path&&Mt.commandLine.fileNames.forEach(Bt=>st.set(er(Bt),Mt.sourceFile.path))}));let qe=st.get(er(we));return qe&&z_(qe)}function zu(we){return pJ(se,we)}function Ru(we){if(vd(we))return G===void 0&&(G=new Map,zu(qe=>{let Mt=Rs(qe.commandLine.options);if(Mt){let Bt=fE(Mt,".d.ts");G.set(er(Bt),!0)}else{let Bt=bu(()=>YR(qe.commandLine,!qt.useCaseSensitiveFileNames()));gn(qe.commandLine.fileNames,_n=>{if(!vd(_n)&&!Sl(_n,".json")){let Jn=GP(_n,qe.commandLine,!qt.useCaseSensitiveFileNames(),Bt);G.set(er(Jn),_n)}})}})),G.get(we)}function Pf(we){return et&&!!cf(we)}function z_(we){if(ke)return ke.get(we)||void 0}function Ih(we,qe){gn(we.referencedFiles,(Mt,Bt)=>{Re(ez(Mt.fileName,we.fileName),qe,!1,void 0,{kind:4,file:we.path,index:Bt})})}function Ug(we){let qe=we.typeReferenceDirectives;if(!qe.length)return;let Mt=Zt?.get(we.path)||Ri(qe,we),Bt=u1();(ft??(ft=new Map)).set(we.path,Bt);for(let _n=0;_n{let{libName:Bt,libFileName:_n}=a1e(qe);if(_n)Gs(Sp(_n),!0,!0,{kind:7,file:we.path,index:Mt});else{let Jn=Ex(jC(Bt,"lib."),".d.ts"),fn=VC(Jn,ow,Qs),qn=fn?f.Cannot_find_lib_definition_for_0_Did_you_mean_1:f.Cannot_find_lib_definition_for_0,mi=fn?[Bt,fn]:[Bt];(Et||(Et=[])).push({kind:0,reason:{kind:7,file:we.path,index:Mt},diagnostic:qn,args:mi})}})}function Z(we){return qt.getCanonicalFileName(we)}function rt(we){var qe;if(tp(we),we.imports.length||we.moduleAugmentations.length){let Mt=s1e(we),Bt=Je?.get(we.path)||Pi(Mt,we);R.assert(Bt.length===Mt.length);let _n=((qe=wn(we))==null?void 0:qe.commandLine.options)||z,Jn=u1();(_t??(_t=new Map)).set(we.path,Jn);for(let fn=0;fnDn,ud=Ha&&!yJ(_n,qn,we)&&!_n.noResolve&&fnoc(fn)&&!fn.isDeclarationFile);if(z.isolatedModules||z.verbatimModuleSyntax)z.module===0&&qe<2&&z.isolatedModules&&cs(f.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),z.preserveConstEnums===!1&&cs(f.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,z.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(Mt&&qe<2&&z.module===0){let fn=fT(Mt,typeof Mt.externalModuleIndicator=="boolean"?Mt:Mt.externalModuleIndicator);Qn.add(Yc(Mt,fn.start,fn.length,f.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(we&&!z.emitDeclarationOnly){if(z.module&&!(z.module===2||z.module===4))cs(f.Only_amd_and_system_modules_are_supported_alongside_0,z.out?"out":"outFile","module");else if(z.module===void 0&&Mt){let fn=fT(Mt,typeof Mt.externalModuleIndicator=="boolean"?Mt:Mt.externalModuleIndicator);Qn.add(Yc(Mt,fn.start,fn.length,f.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,z.out?"out":"outFile"))}}if(_E(z)&&(uu(z)===1?cs(f.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):I6(z)||cs(f.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,"resolveJsonModule","module")),z.outDir||z.rootDir||z.sourceRoot||z.mapRoot){let fn=Fr();z.outDir&&fn===""&&xe.some(qn=>lh(qn.fileName)>1)&&cs(f.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}z.useDefineForClassFields&&qe===0&&cs(f.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),z.checkJs&&!jv(z)&&Qn.add(jl(f.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),z.emitDeclarationOnly&&(Af(z)||cs(f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),z.noEmit&&cs(f.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),z.emitDecoratorMetadata&&!z.experimentalDecorators&&cs(f.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),z.jsxFactory?(z.reactNamespace&&cs(f.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(z.jsx===4||z.jsx===5)&&cs(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",IP.get(""+z.jsx)),l1(z.jsxFactory,qe)||Dm("jsxFactory",f.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,z.jsxFactory)):z.reactNamespace&&!$p(z.reactNamespace,qe)&&Dm("reactNamespace",f.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,z.reactNamespace),z.jsxFragmentFactory&&(z.jsxFactory||cs(f.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(z.jsx===4||z.jsx===5)&&cs(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",IP.get(""+z.jsx)),l1(z.jsxFragmentFactory,qe)||Dm("jsxFragmentFactory",f.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,z.jsxFragmentFactory)),z.reactNamespace&&(z.jsx===4||z.jsx===5)&&cs(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",IP.get(""+z.jsx)),z.jsxImportSource&&z.jsx===2&&cs(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",IP.get(""+z.jsx)),z.preserveValueImports&&Md(z)<5&&cs(f.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"preserveValueImports");let Bt=Md(z);z.verbatimModuleSyntax&&((Bt===2||Bt===3||Bt===4)&&cs(f.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),z.preserveValueImports&&Nm("preserveValueImports","verbatimModuleSyntax"),z.importsNotUsedAsValues&&Nm("importsNotUsedAsValues","verbatimModuleSyntax")),z.allowImportingTsExtensions&&!(z.noEmit||z.emitDeclarationOnly)&&Dm("allowImportingTsExtensions",f.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);let _n=uu(z);if(z.resolvePackageJsonExports&&!OI(_n)&&cs(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),z.resolvePackageJsonImports&&!OI(_n)&&cs(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),z.customConditions&&!OI(_n)&&cs(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),_n===100&&!A6(Bt)&&Bt!==200&&Dm("moduleResolution",f.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),HC[Bt]&&100<=Bt&&Bt<=199&&!(3<=_n&&_n<=99)){let fn=HC[Bt];Dm("moduleResolution",f.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,fn,fn)}else if(Rx[_n]&&3<=_n&&_n<=99&&!(100<=Bt&&Bt<=199)){let fn=Rx[_n];Dm("module",f.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,fn,fn)}if(!z.noEmit&&!z.suppressOutputPathCheck){let fn=xn(),qn=new Set;HK(fn,mi=>{z.emitDeclarationOnly||Jn(mi.jsFilePath,qn),Jn(mi.declarationFilePath,qn)})}function Jn(fn,qn){if(fn){let mi=er(fn);if(ct.has(mi)){let ni;z.configFilePath||(ni=Fo(void 0,f.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),ni=Fo(ni,f.Cannot_write_file_0_because_it_would_overwrite_input_file,fn),fS(fn,S6(ni))}let or=qt.useCaseSensitiveFileNames()?mi:oh(mi);qn.has(or)?fS(fn,jl(f.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,fn)):qn.add(or)}}}function Se(){let we=z.ignoreDeprecations;if(we){if(we==="5.0")return new fm(we);J()}return fm.zero}function nt(we,qe,Mt,Bt){let _n=new fm(we),Jn=new fm(qe),fn=new fm(ge||g_),qn=Se(),mi=Jn.compareTo(fn)!==1,or=!mi&&qn.compareTo(_n)===-1;(mi||or)&&Bt((ni,dr,Xo)=>{mi?dr===void 0?Mt(ni,dr,Xo,f.Option_0_has_been_removed_Please_remove_it_from_your_configuration,ni):Mt(ni,dr,Xo,f.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,ni,dr):dr===void 0?Mt(ni,dr,Xo,f.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,ni,qe,we):Mt(ni,dr,Xo,f.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,ni,dr,qe,we)})}function jt(){function we(qe,Mt,Bt,_n,...Jn){if(Bt){let fn=Fo(void 0,f.Use_0_instead,Bt),qn=Fo(fn,_n,...Jn);Ui(!Mt,qe,void 0,qn)}else Ui(!Mt,qe,void 0,_n,...Jn)}nt("5.0","5.5",we,qe=>{z.target===0&&qe("target","ES3"),z.noImplicitUseStrict&&qe("noImplicitUseStrict"),z.keyofStringsOnly&&qe("keyofStringsOnly"),z.suppressExcessPropertyErrors&&qe("suppressExcessPropertyErrors"),z.suppressImplicitAnyIndexErrors&&qe("suppressImplicitAnyIndexErrors"),z.noStrictGenericChecks&&qe("noStrictGenericChecks"),z.charset&&qe("charset"),z.out&&qe("out",void 0,"outFile"),z.importsNotUsedAsValues&&qe("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),z.preserveValueImports&&qe("preserveValueImports",void 0,"verbatimModuleSyntax")})}function Zn(we,qe,Mt){function Bt(_n,Jn,fn,qn,...mi){Cm(qe,Mt,qn,...mi)}nt("5.0","5.5",Bt,_n=>{we.prepend&&_n("prepend")})}function ii(we,qe,Mt,Bt){var _n;let Jn,fn,qn=xE(qe)?qe:void 0;we&&((_n=ve.get(we.path))==null||_n.forEach(Xo)),qe&&Xo(qe),qn&&Jn?.length===1&&(Jn=void 0);let mi=qn&&jP(un,qn),or=Jn&&Fo(Jn,f.The_file_is_in_the_program_because_Colon),ni=we&&wJ(we),dr=Fo(ni?or?[or,...ni]:ni:or,Mt,...Bt||Xe);return mi&&QR(mi)?DF(mi.file,mi.pos,mi.end-mi.pos,dr,fn):S6(dr,fn);function Xo(Ha){(Jn||(Jn=[])).push(FJ(un,Ha)),!qn&&xE(Ha)?qn=Ha:qn!==Ha&&(fn=Tn(fn,ka(Ha))),Ha===qe&&(qe=void 0)}}function Yr(we,qe,Mt,Bt){(Et||(Et=[])).push({kind:1,file:we&&we.path,fileProcessingReason:qe,diagnostic:Mt,args:Bt})}function no(we,qe,Mt){Qn.add(ii(we,void 0,qe,Mt))}function ka(we){if(xE(we)){let Bt=jP(un,we),_n;switch(we.kind){case 3:_n=f.File_is_included_via_import_here;break;case 4:_n=f.File_is_included_via_reference_here;break;case 5:_n=f.File_is_included_via_type_library_reference_here;break;case 7:_n=f.File_is_included_via_library_reference_here;break;default:R.assertNever(we)}return QR(Bt)?Yc(Bt.file,Bt.pos,Bt.end-Bt.pos,_n):void 0}if(!z.configFile)return;let qe,Mt;switch(we.kind){case 0:if(!z.configFile.configFileSpecs)return;let Bt=_o(ce[we.index],Ur),_n=OJ(un,Bt);if(_n){qe=wF(z.configFile,"files",_n),Mt=f.File_is_matched_by_files_list_specified_here;break}let Jn=WJ(un,Bt);if(!Jn||!Co(Jn))return;qe=wF(z.configFile,"include",Jn),Mt=f.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:let fn=R.checkDefined(se?.[we.index]),qn=nz(me,se,(Xo,Ha,Yd)=>Xo===fn?{sourceFile:Ha?.sourceFile||z.configFile,index:Yd}:void 0);if(!qn)return;let{sourceFile:mi,index:or}=qn,ni=S2(mi,"references",Xo=>pu(Xo.initializer)?Xo.initializer:void 0);return ni&&ni.elements.length>or?Kf(mi,ni.elements[or],we.kind===2?f.File_is_output_from_referenced_project_specified_here:f.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!z.types)return;qe=ab("types",we.typeReference),Mt=f.File_is_entry_point_of_type_library_specified_here;break;case 6:if(we.index!==void 0){qe=ab("lib",z.lib[we.index]),Mt=f.File_is_library_specified_here;break}let dr=zc(sw.type,(Xo,Ha)=>Xo===rs(z)?Ha:void 0);qe=dr?Gu("target",dr):void 0,Mt=f.File_is_default_library_for_target_specified_here;break;default:R.assertNever(we)}return qe&&Kf(z.configFile,qe,Mt)}function wa(){let we=z.suppressOutputPathCheck?void 0:jy(z);nz(me,se,(qe,Mt,Bt)=>{let _n=(Mt?Mt.commandLine.projectReferences:me)[Bt],Jn=Mt&&Mt.sourceFile;if(Zn(_n,Jn,Bt),!qe){Cm(Jn,Bt,f.File_0_not_found,_n.path);return}let fn=qe.commandLine.options;if((!fn.composite||fn.noEmit)&&(Mt?Mt.commandLine.fileNames:ce).length&&(fn.composite||Cm(Jn,Bt,f.Referenced_project_0_must_have_setting_composite_Colon_true,_n.path),fn.noEmit&&Cm(Jn,Bt,f.Referenced_project_0_may_not_disable_emit,_n.path)),_n.prepend){let qn=Rs(fn);qn?qt.fileExists(qn)||Cm(Jn,Bt,f.Output_file_0_from_project_1_does_not_exist,qn,_n.path):Cm(Jn,Bt,f.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,_n.path)}!Mt&&we&&we===jy(fn)&&(Cm(Jn,Bt,f.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,we,_n.path),Ye.set(er(we),!0))})}function wl(we,qe,Mt,...Bt){let _n=!0;Tp(Jn=>{La(Jn.initializer)&&qx(Jn.initializer,we,fn=>{let qn=fn.initializer;pu(qn)&&qn.elements.length>qe&&(Qn.add(Kf(z.configFile,qn.elements[qe],Mt,...Bt)),_n=!1)})}),_n&&Qn.add(jl(Mt,...Bt))}function dd(we,qe,Mt,...Bt){let _n=!0;Tp(Jn=>{La(Jn.initializer)&&Qy(Jn.initializer,we,qe,void 0,Mt,...Bt)&&(_n=!1)}),_n&&Qn.add(jl(Mt,...Bt))}function Ic(we,qe){return qx(Kg(),we,qe)}function Tp(we){return Ic("paths",we)}function Gu(we,qe){return Ic(we,Mt=>Ca(Mt.initializer)&&Mt.initializer.text===qe?Mt.initializer:void 0)}function ab(we,qe){let Mt=Kg();return Mt&&lie(Mt,we,qe)}function cs(we,qe,Mt,Bt){Ui(!0,qe,Mt,we,qe,Mt,Bt)}function Dm(we,qe,...Mt){Ui(!1,we,void 0,qe,...Mt)}function Cm(we,qe,Mt,...Bt){let _n=S2(we||z.configFile,"references",Jn=>pu(Jn.initializer)?Jn.initializer:void 0);_n&&_n.elements.length>qe?Qn.add(Kf(we||z.configFile,_n.elements[qe],Mt,...Bt)):Qn.add(jl(Mt,...Bt))}function Ui(we,qe,Mt,Bt,..._n){let Jn=Kg();(!Jn||!Qy(Jn,we,qe,Mt,Bt,..._n))&&("messageText"in Bt?Qn.add(S6(Bt)):Qn.add(jl(Bt,..._n)))}function Kg(){return Ot===void 0&&(Ot=qx(_N(z.configFile),"compilerOptions",we=>La(we.initializer)?we.initializer:void 0)||!1),Ot||void 0}function Qy(we,qe,Mt,Bt,_n,...Jn){let fn=!1;return qx(we,Mt,qn=>{"messageText"in _n?Qn.add(Pg(z.configFile,qe?qn.name:qn.initializer,_n)):Qn.add(Kf(z.configFile,qe?qn.name:qn.initializer,_n,...Jn)),fn=!0},Bt),fn}function Nm(we,qe){let Mt=Kg();Mt?Qy(Mt,!0,we,void 0,f.Option_0_is_redundant_and_cannot_be_specified_with_option_1,we,qe):cs(f.Option_0_is_redundant_and_cannot_be_specified_with_option_1,we,qe)}function fS(we,qe){Ye.set(er(we),!0),Qn.add(qe)}function mS(we){if(z.noEmit)return!1;let qe=er(we);if(ul(qe))return!1;let Mt=Rs(z);if(Mt)return df(qe,Mt)||df(qe,Su(Mt)+".d.ts");if(z.declarationDir&&mm(z.declarationDir,qe,Ur,!qt.useCaseSensitiveFileNames()))return!0;if(z.outDir)return mm(z.outDir,qe,Ur,!qt.useCaseSensitiveFileNames());if(bc(qe,TR)||vd(qe)){let Bt=Su(qe);return!!ul(Bt+".ts")||!!ul(Bt+".tsx")}return!1}function df(we,qe){return xg(we,qe,Ur,!qt.useCaseSensitiveFileNames())===0}function B_(){return qt.getSymlinkCache?qt.getSymlinkCache():(fe||(fe=oU(Ur,Z)),xe&&!fe.hasProcessedResolutions()&&fe.setSymlinksFromResolutions(k,ie,ze),fe)}function uf(we,qe){var Mt;let Bt=((Mt=wn(we))==null?void 0:Mt.commandLine.options)||z;return cJ(we,qe,Bt)}function Jg(we,qe){return uf(we,ww(we,qe))}}function FVe(e){let t,r=e.compilerHost.fileExists,i=e.compilerHost.directoryExists,o=e.compilerHost.getDirectories,s=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:qa,fileExists:p};e.compilerHost.fileExists=p;let l;return i&&(l=e.compilerHost.directoryExists=S=>i.call(e.compilerHost,S)?(y(S),!0):e.getResolvedProjectReferences()?(t||(t=new Set,e.forEachResolvedProjectReference(A=>{let N=Rs(A.commandLine.options);if(N)t.add(oi(e.toPath(N)));else{let D=A.commandLine.options.declarationDir||A.commandLine.options.outDir;D&&t.add(e.toPath(D))}})),E(S,!1)):!1),o&&(e.compilerHost.getDirectories=S=>!e.getResolvedProjectReferences()||i&&i.call(e.compilerHost,S)?o.call(e.compilerHost,S):[]),s&&(e.compilerHost.realpath=S=>{var A;return((A=e.getSymlinkCache().getSymlinkedFiles())==null?void 0:A.get(e.toPath(S)))||s.call(e.compilerHost,S)}),{onProgramCreateComplete:d,fileExists:p,directoryExists:l};function d(){e.compilerHost.fileExists=r,e.compilerHost.directoryExists=i,e.compilerHost.getDirectories=o}function p(S){return r.call(e.compilerHost,S)?!0:!e.getResolvedProjectReferences()||!vd(S)?!1:E(S,!0)}function h(S){let A=e.getSourceOfProjectReferenceRedirect(e.toPath(S));return A!==void 0?Co(A)?r.call(e.compilerHost,A):!0:void 0}function m(S){let A=e.toPath(S),N=`${A}${nl}`;return uh(t,D=>A===D||ao(D,N)||ao(A,`${D}/`))}function y(S){var A;if(!e.getResolvedProjectReferences()||qN(S)||!s||!S.includes(Sh))return;let N=e.getSymlinkCache(),D=Fc(e.toPath(S));if((A=N.getSymlinkedDirectories())!=null&&A.has(D))return;let w=fa(s.call(e.compilerHost,S)),j;if(w===S||(j=Fc(e.toPath(w)))===D){N.setSymlinkedDirectory(D,!1);return}N.setSymlinkedDirectory(S,{real:Fc(w),realPath:j})}function E(S,A){var N;let D=A?B=>h(B):B=>m(B),w=D(S);if(w!==void 0)return w;let j=e.getSymlinkCache(),K=j.getSymlinkedDirectories();if(!K)return!1;let Y=e.toPath(S);return Y.includes(Sh)?A&&((N=j.getSymlinkedFiles())!=null&&N.has(Y))?!0:bL(K.entries(),([B,ce])=>{if(!ce||!ao(Y,B))return;let z=D(Y.replace(B,ce.realPath));if(A&&z){let ee=_o(S,e.compilerHost.getCurrentDirectory());j.setSymlinkedFile(Y,`${ce.real}${ee.replace(new RegExp(B,"i"),"")}`)}return z})||!1:!1}}function hJ(e,t,r,i){let o=e.getCompilerOptions();if(o.noEmit)return e.getSemanticDiagnostics(t,i),t||Rs(o)?cz:e.emitBuildInfo(r,i);if(!o.noEmitOnError)return;let s=[...e.getOptionsDiagnostics(i),...e.getSyntacticDiagnostics(t,i),...e.getGlobalDiagnostics(i),...e.getSemanticDiagnostics(t,i)];if(s.length===0&&Af(e.getCompilerOptions())&&(s=e.getDeclarationDiagnostics(void 0,i)),!s.length)return;let l;if(!t&&!Rs(o)){let d=e.emitBuildInfo(r,i);d.diagnostics&&(s=[...s,...d.diagnostics]),l=d.emittedFiles}return{diagnostics:s,sourceMaps:void 0,emittedFiles:l,emitSkipped:!0}}function oz(e,t){return jr(e,r=>!r.skippedOn||!t[r.skippedOn])}function az(e,t=e){return{fileExists:r=>t.fileExists(r),readDirectory(r,i,o,s,l){return R.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,i,o,s,l)},readFile:r=>t.readFile(r),directoryExists:ea(t,t.directoryExists),getDirectories:ea(t,t.getDirectories),realpath:ea(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||qb,trace:e.trace?r=>e.trace(r):void 0}}function gJ(e,t,r,i){if(!e)return Xe;let o;for(let s=0;si);for(let i of t)i.kind===11&&r.push(i);return r}function ww({imports:e,moduleAugmentations:t},r){if(r(e.Grey="\x1B[90m",e.Red="\x1B[91m",e.Yellow="\x1B[93m",e.Blue="\x1B[94m",e.Cyan="\x1B[96m",e))(vJ||{}),bJ="\x1B[7m",EJ=" ",$le="\x1B[0m",Qle="...",l1e=" ",Zle=" ",ece={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},sz={getName:Yle,getMode:(e,t,r)=>lJ(t,e,r)},c1e={getName:uJ,getMode:(e,t)=>Mw(e,t?.impliedNodeFormat)},eD="__inferred type names__.ts",lz=new Set([f.Cannot_redeclare_block_scoped_variable_0.code,f.A_module_cannot_have_multiple_default_exports.code,f.Another_export_default_is_here.code,f.The_first_export_default_is_here.code,f.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,f.constructor_is_a_reserved_word.code,f.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,f.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,f.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,f.Invalid_use_of_0_in_strict_mode.code,f.A_label_is_not_allowed_here.code,f.with_statements_are_not_allowed_in_strict_mode.code,f.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,f.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,f.A_class_declaration_without_the_default_modifier_must_have_a_name.code,f.A_class_member_cannot_have_the_0_keyword.code,f.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,f.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,f.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,f.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,f.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,f.A_destructuring_declaration_must_have_an_initializer.code,f.A_get_accessor_cannot_have_parameters.code,f.A_rest_element_cannot_contain_a_binding_pattern.code,f.A_rest_element_cannot_have_a_property_name.code,f.A_rest_element_cannot_have_an_initializer.code,f.A_rest_element_must_be_last_in_a_destructuring_pattern.code,f.A_rest_parameter_cannot_have_an_initializer.code,f.A_rest_parameter_must_be_last_in_a_parameter_list.code,f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,f.A_return_statement_cannot_be_used_inside_a_class_static_block.code,f.A_set_accessor_cannot_have_rest_parameter.code,f.A_set_accessor_must_have_exactly_one_parameter.code,f.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,f.An_export_declaration_cannot_have_modifiers.code,f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,f.An_import_declaration_cannot_have_modifiers.code,f.An_object_member_cannot_be_declared_optional.code,f.Argument_of_dynamic_import_cannot_be_spread_element.code,f.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,f.Cannot_redeclare_identifier_0_in_catch_clause.code,f.Catch_clause_variable_cannot_have_an_initializer.code,f.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,f.Classes_can_only_extend_a_single_class.code,f.Classes_may_not_have_a_field_named_constructor.code,f.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,f.Duplicate_label_0.code,f.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,f.for_await_loops_cannot_be_used_inside_a_class_static_block.code,f.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,f.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,f.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,f.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,f.Jump_target_cannot_cross_function_boundary.code,f.Line_terminator_not_permitted_before_arrow.code,f.Modifiers_cannot_appear_here.code,f.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,f.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,f.Private_identifiers_are_not_allowed_outside_class_bodies.code,f.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,f.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,f.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,f.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,f.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,f.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,f.Trailing_comma_not_allowed.code,f.Variable_declaration_list_cannot_be_empty.code,f._0_and_1_operations_cannot_be_mixed_without_parentheses.code,f._0_expected.code,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,f._0_list_cannot_be_empty.code,f._0_modifier_already_seen.code,f._0_modifier_cannot_appear_on_a_constructor_declaration.code,f._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,f._0_modifier_cannot_appear_on_a_parameter.code,f._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,f._0_modifier_cannot_be_used_here.code,f._0_modifier_must_precede_1_modifier.code,f._0_declarations_can_only_be_declared_inside_a_block.code,f._0_declarations_must_be_initialized.code,f.extends_clause_already_seen.code,f.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,f.Class_constructor_may_not_be_a_generator.code,f.Class_constructor_may_not_be_an_accessor.code,f.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.Private_field_0_must_be_declared_in_an_enclosing_class.code,f.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]),cz={diagnostics:Xe,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),BVe=bt({"src/compiler/builderStatePublic.ts"(){"use strict"}});function tce(e,t,r,i,o,s){let l=[],{emitSkipped:d,diagnostics:p}=e.emit(t,h,i,r,o,s);return{outputFiles:l,emitSkipped:d,diagnostics:p};function h(m,y,E){l.push({name:m,writeByteOrderMark:E,text:y})}}var xm,GVe=bt({"src/compiler/builderState.ts"(){"use strict";Zo(),(e=>{function t(){function q(J,re,pe){let xe={getKeys:fe=>re.get(fe),getValues:fe=>J.get(fe),keys:()=>J.keys(),deleteKey:fe=>{(pe||(pe=new Set)).add(fe);let ne=J.get(fe);return ne?(ne.forEach(he=>i(re,he,fe)),J.delete(fe),!0):!1},set:(fe,ne)=>{pe?.delete(fe);let he=J.get(fe);return J.set(fe,ne),he?.forEach(Ce=>{ne.has(Ce)||i(re,Ce,fe)}),ne.forEach(Ce=>{he?.has(Ce)||r(re,Ce,fe)}),xe}};return xe}return q(new Map,new Map,void 0)}e.createManyToManyPathMap=t;function r(q,J,re){let pe=q.get(J);pe||(pe=new Set,q.set(J,pe)),pe.add(re)}function i(q,J,re){let pe=q.get(J);return pe?.delete(re)?(pe.size||q.delete(J),!0):!1}function o(q){return to(q.declarations,J=>{var re;return(re=Gn(J))==null?void 0:re.resolvedPath})}function s(q,J){let re=q.getSymbolAtLocation(J);return re&&o(re)}function l(q,J,re,pe){return tl(q.getProjectReferenceRedirect(J)||J,re,pe)}function d(q,J,re){let pe;if(J.imports&&J.imports.length>0){let he=q.getTypeChecker();for(let Ce of J.imports){let Ge=s(he,Ce);Ge?.forEach(ne)}}let xe=oi(J.resolvedPath);if(J.referencedFiles&&J.referencedFiles.length>0)for(let he of J.referencedFiles){let Ce=l(q,he.fileName,xe,re);ne(Ce)}if(q.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:he})=>{if(!he)return;let Ce=he.resolvedFileName,Ge=l(q,Ce,xe,re);ne(Ge)},J),J.moduleAugmentations.length){let he=q.getTypeChecker();for(let Ce of J.moduleAugmentations){if(!Ca(Ce))continue;let Ge=he.getSymbolAtLocation(Ce);Ge&&fe(Ge)}}for(let he of q.getTypeChecker().getAmbientModules())he.declarations&&he.declarations.length>1&&fe(he);return pe;function fe(he){if(he.declarations)for(let Ce of he.declarations){let Ge=Gn(Ce);Ge&&Ge!==J&&ne(Ge.resolvedPath)}}function ne(he){(pe||(pe=new Set)).add(he)}}function p(q,J){return J&&!J.referencedMap==!q}e.canReuseOldState=p;function h(q,J,re){var pe,xe,fe;let ne=new Map,he=q.getCompilerOptions(),Ce=Rs(he),Ge=he.module!==0&&!Ce?t():void 0,ve=Ge?t():void 0,Ie=p(Ge,J);q.getTypeChecker();for(let De of q.getSourceFiles()){let Le=R.checkDefined(De.version,"Program intended to be used with Builder should have source files with versions set"),Et=Ie?(pe=J.oldSignatures)==null?void 0:pe.get(De.resolvedPath):void 0,be=Et===void 0?Ie?(xe=J.fileInfos.get(De.resolvedPath))==null?void 0:xe.signature:void 0:Et||void 0;if(Ge){let ze=d(q,De,q.getCanonicalFileName);if(ze&&Ge.set(De.resolvedPath,ze),Ie){let tt=(fe=J.oldExportedModulesMap)==null?void 0:fe.get(De.resolvedPath),Wt=tt===void 0?J.exportedModulesMap.getValues(De.resolvedPath):tt||void 0;Wt&&ve.set(De.resolvedPath,Wt)}}ne.set(De.resolvedPath,{version:Le,signature:be,affectsGlobalScope:Ce?void 0:z(De)||void 0,impliedFormat:De.impliedNodeFormat})}return{fileInfos:ne,referencedMap:Ge,exportedModulesMap:ve,useFileVersionAsSignature:!re&&!Ie}}e.create=h;function m(q){q.allFilesExcludingDefaultLibraryFile=void 0,q.allFileNames=void 0}e.releaseCache=m;function y(q,J,re,pe,xe){var fe,ne;let he=E(q,J,re,pe,xe);return(fe=q.oldSignatures)==null||fe.clear(),(ne=q.oldExportedModulesMap)==null||ne.clear(),he}e.getFilesAffectedBy=y;function E(q,J,re,pe,xe){let fe=J.getSourceFileByPath(re);return fe?N(q,J,fe,pe,xe)?(q.referencedMap?ge:me)(q,J,fe,pe,xe):[fe]:Xe}e.getFilesAffectedByWithOldState=E;function S(q,J,re){q.fileInfos.get(re).signature=J,(q.hasCalledUpdateShapeSignature||(q.hasCalledUpdateShapeSignature=new Set)).add(re)}e.updateSignatureOfFile=S;function A(q,J,re,pe,xe){q.emit(J,(fe,ne,he,Ce,Ge,ve)=>{R.assert(vd(fe),`File extension for signature expected to be dts: Got:: ${fe}`),xe(TJ(q,J,ne,pe,ve),Ge)},re,!0,void 0,!0)}e.computeDtsSignature=A;function N(q,J,re,pe,xe,fe=q.useFileVersionAsSignature){var ne;if((ne=q.hasCalledUpdateShapeSignature)!=null&&ne.has(re.resolvedPath))return!1;let he=q.fileInfos.get(re.resolvedPath),Ce=he.signature,Ge;if(!re.isDeclarationFile&&!fe&&A(J,re,pe,xe,(ve,Ie)=>{Ge=ve,Ge!==Ce&&D(q,re,Ie[0].exportedModulesFromDeclarationEmit)}),Ge===void 0&&(Ge=re.version,q.exportedModulesMap&&Ge!==Ce)){(q.oldExportedModulesMap||(q.oldExportedModulesMap=new Map)).set(re.resolvedPath,q.exportedModulesMap.getValues(re.resolvedPath)||!1);let ve=q.referencedMap?q.referencedMap.getValues(re.resolvedPath):void 0;ve?q.exportedModulesMap.set(re.resolvedPath,ve):q.exportedModulesMap.deleteKey(re.resolvedPath)}return(q.oldSignatures||(q.oldSignatures=new Map)).set(re.resolvedPath,Ce||!1),(q.hasCalledUpdateShapeSignature||(q.hasCalledUpdateShapeSignature=new Set)).add(re.resolvedPath),he.signature=Ge,Ge!==Ce}e.updateShapeSignature=N;function D(q,J,re){if(!q.exportedModulesMap)return;(q.oldExportedModulesMap||(q.oldExportedModulesMap=new Map)).set(J.resolvedPath,q.exportedModulesMap.getValues(J.resolvedPath)||!1);let pe=w(re);pe?q.exportedModulesMap.set(J.resolvedPath,pe):q.exportedModulesMap.deleteKey(J.resolvedPath)}e.updateExportedModules=D;function w(q){let J;return q?.forEach(re=>o(re).forEach(pe=>(J??(J=new Set)).add(pe))),J}e.getExportedModules=w;function j(q,J,re){let pe=J.getCompilerOptions();if(Rs(pe)||!q.referencedMap||z(re))return K(q,J);let xe=new Set,fe=[re.resolvedPath];for(;fe.length;){let ne=fe.pop();if(!xe.has(ne)){xe.add(ne);let he=q.referencedMap.getValues(ne);if(he)for(let Ce of he.keys())fe.push(Ce)}}return Oo(WC(xe.keys(),ne=>{var he;return((he=J.getSourceFileByPath(ne))==null?void 0:he.fileName)??ne}))}e.getAllDependencies=j;function K(q,J){if(!q.allFileNames){let re=J.getSourceFiles();q.allFileNames=re===Xe?Xe:re.map(pe=>pe.fileName)}return q.allFileNames}function Y(q,J){let re=q.referencedMap.getKeys(J);return re?Oo(re.keys()):[]}e.getReferencedByPaths=Y;function B(q){for(let J of q.statements)if(!xF(J))return!1;return!0}function ce(q){return gt(q.moduleAugmentations,J=>E_(J.parent))}function z(q){return ce(q)||!wp(q)&&!Jf(q)&&!B(q)}function ee(q,J,re){if(q.allFilesExcludingDefaultLibraryFile)return q.allFilesExcludingDefaultLibraryFile;let pe;re&&xe(re);for(let fe of J.getSourceFiles())fe!==re&&xe(fe);return q.allFilesExcludingDefaultLibraryFile=pe||Xe,q.allFilesExcludingDefaultLibraryFile;function xe(fe){J.isSourceFileDefaultLibrary(fe)||(pe||(pe=[])).push(fe)}}e.getAllFilesExcludingDefaultLibraryFile=ee;function me(q,J,re){let pe=J.getCompilerOptions();return pe&&Rs(pe)?[re]:ee(q,J,re)}function ge(q,J,re,pe,xe){if(z(re))return ee(q,J,re);let fe=J.getCompilerOptions();if(fe&&(em(fe)||Rs(fe)))return[re];let ne=new Map;ne.set(re.resolvedPath,re);let he=Y(q,re.resolvedPath);for(;he.length>0;){let Ce=he.pop();if(!ne.has(Ce)){let Ge=J.getSourceFileByPath(Ce);ne.set(Ce,Ge),Ge&&N(q,J,Ge,pe,xe)&&he.push(...Y(q,Ge.resolvedPath))}}return Oo(WC(ne.values(),Ce=>Ce))}})(xm||(xm={}))}});function eb(e){let t=1;return e.sourceMap&&(t=t|2),e.inlineSourceMap&&(t=t|4),Af(e)&&(t=t|8),e.declarationMap&&(t=t|16),e.emitDeclarationOnly&&(t=t&24),t}function tD(e,t){let r=t&&(Sy(t)?t:eb(t)),i=Sy(e)?e:eb(e);if(r===i)return 0;if(!r||!i)return i;let o=r^i,s=0;return o&7&&(s=i&7),o&24&&(s=s|i&24),s}function VVe(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!uh(e,r=>!t.has(r))}function jVe(e,t){var r,i;let o=xm.create(e,t,!1);o.program=e;let s=e.getCompilerOptions();o.compilerOptions=s;let l=Rs(s);l?s.composite&&t?.outSignature&&l===Rs(t?.compilerOptions)&&(o.outSignature=t.outSignature&&u1e(s,t.compilerOptions,t.outSignature)):o.semanticDiagnosticsPerFile=new Map,o.changedFilesSet=new Set,o.latestChangedDtsFile=s.composite?t?.latestChangedDtsFile:void 0;let d=xm.canReuseOldState(o.referencedMap,t),p=d?t.compilerOptions:void 0,h=d&&t.semanticDiagnosticsPerFile&&!!o.semanticDiagnosticsPerFile&&!goe(s,p),m=s.composite&&t?.emitSignatures&&!l&&!voe(s,t.compilerOptions);d?((r=t.changedFilesSet)==null||r.forEach(N=>o.changedFilesSet.add(N)),!l&&((i=t.affectedFilesPendingEmit)!=null&&i.size)&&(o.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),o.seenAffectedFiles=new Set),o.programEmitPending=t.programEmitPending):o.buildInfoEmitPending=!0;let y=o.referencedMap,E=d?t.referencedMap:void 0,S=h&&!s.skipLibCheck==!p.skipLibCheck,A=S&&!s.skipDefaultLibCheck==!p.skipDefaultLibCheck;if(o.fileInfos.forEach((N,D)=>{var w;let j,K;if(!d||!(j=t.fileInfos.get(D))||j.version!==N.version||j.impliedFormat!==N.impliedFormat||!VVe(K=y&&y.getValues(D),E&&E.getValues(D))||K&&uh(K,Y=>!o.fileInfos.has(Y)&&t.fileInfos.has(Y)))d1e(o,D);else{let Y=e.getSourceFileByPath(D),B=(w=t.emitDiagnosticsPerFile)==null?void 0:w.get(D);if(B&&(o.emitDiagnosticsPerFile??(o.emitDiagnosticsPerFile=new Map)).set(D,t.hasReusableDiagnostic?m1e(B,e):p1e(B,e)),h){if(Y.isDeclarationFile&&!S||Y.hasNoDefaultLib&&!A)return;let ce=t.semanticDiagnosticsPerFile.get(D);ce&&(o.semanticDiagnosticsPerFile.set(D,t.hasReusableDiagnostic?m1e(ce,e):p1e(ce,e)),(o.semanticDiagnosticsFromOldState??(o.semanticDiagnosticsFromOldState=new Set)).add(D))}}if(m){let Y=t.emitSignatures.get(D);Y&&(o.emitSignatures??(o.emitSignatures=new Map)).set(D,u1e(s,t.compilerOptions,Y))}}),d&&zc(t.fileInfos,(N,D)=>o.fileInfos.has(D)?!1:l||N.affectsGlobalScope?!0:(o.buildInfoEmitPending=!0,!1)))xm.getAllFilesExcludingDefaultLibraryFile(o,e,void 0).forEach(N=>d1e(o,N.resolvedPath));else if(p){let N=yoe(s,p)?eb(s):tD(s,p);N!==0&&(l?o.programEmitPending=o.programEmitPending?o.programEmitPending|N:N:(e.getSourceFiles().forEach(D=>{o.changedFilesSet.has(D.resolvedPath)||sce(o,D.resolvedPath,N)}),R.assert(!o.seenAffectedFiles||!o.seenAffectedFiles.size),o.seenAffectedFiles=o.seenAffectedFiles||new Set,o.buildInfoEmitPending=!0))}return l&&!o.changedFilesSet.size&&(d&&(o.bundle=t.bundle),gt(e.getProjectReferences(),N=>!!N.prepend)&&(o.programEmitPending=eb(s))),o}function d1e(e,t){e.changedFilesSet.add(t),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function u1e(e,t,r){return!!e.declarationMap==!!t.declarationMap?r:Co(r)?[r]:r[0]}function p1e(e,t){return e.length?Nc(e,r=>{if(Co(r.messageText))return r;let i=nce(r.messageText,r.file,t,o=>{var s;return(s=o.repopulateInfo)==null?void 0:s.call(o)});return i===r.messageText?r:{...r,messageText:i}}):e}function nce(e,t,r,i){let o=i(e);if(o)return{...bF(t,r,o.moduleReference,o.mode,o.packageName||o.moduleReference),next:f1e(e.next,t,r,i)};let s=f1e(e.next,t,r,i);return s===e.next?e:{...e,next:s}}function f1e(e,t,r,i){return Nc(e,o=>nce(o,t,r,i))}function m1e(e,t){if(!e.length)return Xe;let r;return e.map(o=>{let s=_1e(o,t,i);s.reportsUnnecessary=o.reportsUnnecessary,s.reportsDeprecated=o.reportDeprecated,s.source=o.source,s.skippedOn=o.skippedOn;let{relatedInformation:l}=o;return s.relatedInformation=l?l.length?l.map(d=>_1e(d,t,i)):[]:void 0,s});function i(o){return r??(r=oi(_o(jy(t.getCompilerOptions()),t.getCurrentDirectory()))),tl(o,r,t.getCanonicalFileName)}}function _1e(e,t,r){let{file:i}=e,o=i?t.getSourceFileByPath(r(i)):void 0;return{...e,file:o,messageText:Co(e.messageText)?e.messageText:nce(e.messageText,o,t,s=>s.info)}}function UVe(e){xm.releaseCache(e),e.program=void 0}function HVe(e){let t=Rs(e.compilerOptions);return R.assert(!e.changedFilesSet.size||t),{affectedFilesPendingEmit:e.affectedFilesPendingEmit&&new Map(e.affectedFilesPendingEmit),seenEmittedFiles:e.seenEmittedFiles&&new Map(e.seenEmittedFiles),programEmitPending:e.programEmitPending,emitSignatures:e.emitSignatures&&new Map(e.emitSignatures),outSignature:e.outSignature,latestChangedDtsFile:e.latestChangedDtsFile,hasChangedEmitSignature:e.hasChangedEmitSignature,changedFilesSet:t?new Set(e.changedFilesSet):void 0,buildInfoEmitPending:e.buildInfoEmitPending,emitDiagnosticsPerFile:e.emitDiagnosticsPerFile&&new Map(e.emitDiagnosticsPerFile)}}function KVe(e,t){e.affectedFilesPendingEmit=t.affectedFilesPendingEmit,e.seenEmittedFiles=t.seenEmittedFiles,e.programEmitPending=t.programEmitPending,e.emitSignatures=t.emitSignatures,e.outSignature=t.outSignature,e.latestChangedDtsFile=t.latestChangedDtsFile,e.hasChangedEmitSignature=t.hasChangedEmitSignature,e.buildInfoEmitPending=t.buildInfoEmitPending,e.emitDiagnosticsPerFile=t.emitDiagnosticsPerFile,t.changedFilesSet&&(e.changedFilesSet=t.changedFilesSet)}function h1e(e,t){R.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function g1e(e,t,r){for(var i,o;;){let{affectedFiles:s}=e;if(s){let h=e.seenAffectedFiles,m=e.affectedFilesIndex;for(;m{let s=i&7;s?e.affectedFilesPendingEmit.set(o,s):e.affectedFilesPendingEmit.delete(o)})}}function qVe(e,t){var r;if((r=e.affectedFilesPendingEmit)!=null&&r.size)return zc(e.affectedFilesPendingEmit,(i,o)=>{var s;let l=e.program.getSourceFileByPath(o);if(!l||!ET(l,e.program)){e.affectedFilesPendingEmit.delete(o);return}let d=(s=e.seenEmittedFiles)==null?void 0:s.get(l.resolvedPath),p=tD(i,d);if(t&&(p=p&24),p)return{affectedFile:l,emitKind:p}})}function XVe(e){var t;if((t=e.emitDiagnosticsPerFile)!=null&&t.size)return zc(e.emitDiagnosticsPerFile,(r,i)=>{var o;let s=e.program.getSourceFileByPath(i);if(!s||!ET(s,e.program)){e.emitDiagnosticsPerFile.delete(i);return}let l=((o=e.seenEmittedFiles)==null?void 0:o.get(s.resolvedPath))||0;if(!(l&24))return{affectedFile:s,diagnostics:r,seenKind:l}})}function y1e(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;let t=R.checkDefined(e.program),r=t.getCompilerOptions();gn(t.getSourceFiles(),i=>t.isSourceFileDefaultLibrary(i)&&!UN(i,r,t)&&rce(e,i.resolvedPath))}}function YVe(e,t,r,i){if(rce(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){y1e(e),xm.updateShapeSignature(e,R.checkDefined(e.program),t,r,i);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||$Ve(e,t,r,i)}function SJ(e,t,r,i){if(rce(e,t),!e.changedFilesSet.has(t)){let o=R.checkDefined(e.program),s=o.getSourceFileByPath(t);s&&(xm.updateShapeSignature(e,o,s,r,i,!0),Af(e.compilerOptions)&&sce(e,t,e.compilerOptions.declarationMap?24:8))}}function rce(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function v1e(e,t){let r=R.checkDefined(e.oldSignatures).get(t)||void 0;return R.checkDefined(e.fileInfos.get(t)).signature!==r}function ice(e,t,r,i){var o;return(o=e.fileInfos.get(t))!=null&&o.affectsGlobalScope?(xm.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(s=>SJ(e,s.resolvedPath,r,i)),y1e(e),!0):!1}function $Ve(e,t,r,i){var o;if(!e.exportedModulesMap||!e.changedFilesSet.has(t.resolvedPath)||!v1e(e,t.resolvedPath))return;if(em(e.compilerOptions)){let l=new Map;l.set(t.resolvedPath,!0);let d=xm.getReferencedByPaths(e,t.resolvedPath);for(;d.length>0;){let p=d.pop();if(!l.has(p)){if(l.set(p,!0),ice(e,p,r,i))return;if(SJ(e,p,r,i),v1e(e,p)){let h=R.checkDefined(e.program).getSourceFileByPath(p);d.push(...xm.getReferencedByPaths(e,h.resolvedPath))}}}}let s=new Set;(o=e.exportedModulesMap.getKeys(t.resolvedPath))==null||o.forEach(l=>{if(ice(e,l,r,i))return!0;let d=e.referencedMap.getKeys(l);return d&&uh(d,p=>b1e(e,p,s,r,i))})}function b1e(e,t,r,i,o){var s,l;if(Jb(r,t)){if(ice(e,t,i,o))return!0;SJ(e,t,i,o),(s=e.exportedModulesMap.getKeys(t))==null||s.forEach(d=>b1e(e,d,r,i,o)),(l=e.referencedMap.getKeys(t))==null||l.forEach(d=>!r.has(d)&&SJ(e,d,i,o))}}function oce(e,t,r){return bo(QVe(e,t,r),R.checkDefined(e.program).getProgramDiagnostics(t))}function QVe(e,t,r){let i=t.resolvedPath;if(e.semanticDiagnosticsPerFile){let s=e.semanticDiagnosticsPerFile.get(i);if(s)return oz(s,e.compilerOptions)}let o=R.checkDefined(e.program).getBindAndCheckDiagnostics(t,r);return e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(i,o),oz(o,e.compilerOptions)}function ace(e){return!!Rs(e.options||{})}function ZVe(e,t){var r,i,o;let s=R.checkDefined(e.program).getCurrentDirectory(),l=oi(_o(jy(e.compilerOptions),s)),d=e.latestChangedDtsFile?ce(e.latestChangedDtsFile):void 0,p=[],h=new Map,m=[];if(Rs(e.compilerOptions)){let he=Oo(e.fileInfos.entries(),([Le,Et])=>{let be=ee(Le);return ge(Le,be),Et.impliedFormat?{version:Et.version,impliedFormat:Et.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:Et.version}),Ce={fileNames:p,fileInfos:he,root:m,options:q(e.compilerOptions),outSignature:e.outSignature,latestChangedDtsFile:d,pendingEmit:e.programEmitPending?e.programEmitPending===eb(e.compilerOptions)?!1:e.programEmitPending:void 0},{js:Ge,dts:ve,commonSourceDirectory:Ie,sourceFiles:De}=t;return e.bundle=t={commonSourceDirectory:Ie,sourceFiles:De,js:Ge||(e.compilerOptions.emitDeclarationOnly||(r=e.bundle)==null?void 0:r.js),dts:ve||(Af(e.compilerOptions)?(i=e.bundle)==null?void 0:i.dts:void 0)},xw(Ce,t)}let y,E,S,A=Oo(e.fileInfos.entries(),([he,Ce])=>{var Ge,ve;let Ie=ee(he);ge(he,Ie),R.assert(p[Ie-1]===z(he));let De=(Ge=e.oldSignatures)==null?void 0:Ge.get(he),Le=De!==void 0?De||void 0:Ce.signature;if(e.compilerOptions.composite){let Et=e.program.getSourceFileByPath(he);if(!Jf(Et)&&ET(Et,e.program)){let be=(ve=e.emitSignatures)==null?void 0:ve.get(he);be!==Le&&(S||(S=[])).push(be===void 0?Ie:[Ie,!Co(be)&&be[0]===Le?Xe:be])}}return Ce.version===Le?Ce.affectsGlobalScope||Ce.impliedFormat?{version:Ce.version,signature:void 0,affectsGlobalScope:Ce.affectsGlobalScope,impliedFormat:Ce.impliedFormat}:Ce.version:Le!==void 0?De===void 0?Ce:{version:Ce.version,signature:Le,affectsGlobalScope:Ce.affectsGlobalScope,impliedFormat:Ce.impliedFormat}:{version:Ce.version,signature:!1,affectsGlobalScope:Ce.affectsGlobalScope,impliedFormat:Ce.impliedFormat}}),N;e.referencedMap&&(N=Oo(e.referencedMap.keys()).sort(Gd).map(he=>[ee(he),me(e.referencedMap.getValues(he))]));let D;e.exportedModulesMap&&(D=to(Oo(e.exportedModulesMap.keys()).sort(Gd),he=>{var Ce;let Ge=(Ce=e.oldExportedModulesMap)==null?void 0:Ce.get(he);if(Ge===void 0)return[ee(he),me(e.exportedModulesMap.getValues(he))];if(Ge)return[ee(he),me(Ge)]}));let w=re(e.semanticDiagnosticsPerFile),j;if((o=e.affectedFilesPendingEmit)!=null&&o.size){let he=eb(e.compilerOptions),Ce=new Set;for(let Ge of Oo(e.affectedFilesPendingEmit.keys()).sort(Gd))if(Jb(Ce,Ge)){let ve=e.program.getSourceFileByPath(Ge);if(!ve||!ET(ve,e.program))continue;let Ie=ee(Ge),De=e.affectedFilesPendingEmit.get(Ge);(j||(j=[])).push(De===he?Ie:De===8?[Ie]:[Ie,De])}}let K;if(e.changedFilesSet.size)for(let he of Oo(e.changedFilesSet.keys()).sort(Gd))(K||(K=[])).push(ee(he));let Y=re(e.emitDiagnosticsPerFile),B={fileNames:p,fileInfos:A,root:m,options:q(e.compilerOptions),fileIdsList:y,referencedMap:N,exportedModulesMap:D,semanticDiagnosticsPerFile:w,emitDiagnosticsPerFile:Y,affectedFilesPendingEmit:j,changeFileSet:K,emitSignatures:S,latestChangedDtsFile:d};return xw(B,t);function ce(he){return z(_o(he,s))}function z(he){return g0(_m(l,he,e.program.getCanonicalFileName))}function ee(he){let Ce=h.get(he);return Ce===void 0&&(p.push(z(he)),h.set(he,Ce=p.length)),Ce}function me(he){let Ce=Oo(he.keys(),ee).sort(Zs),Ge=Ce.join(),ve=E?.get(Ge);return ve===void 0&&((y||(y=[])).push(Ce),(E||(E=new Map)).set(Ge,ve=y.length)),ve}function ge(he,Ce){let Ge=e.program.getSourceFile(he);if(!e.program.getFileIncludeReasons().get(Ge.path).some(Le=>Le.kind===0))return;if(!m.length)return m.push(Ce);let ve=m[m.length-1],Ie=So(ve);if(Ie&&ve[1]===Ce-1)return ve[1]=Ce;if(Ie||m.length===1||ve!==Ce-1)return m.push(Ce);let De=m[m.length-2];return!Sy(De)||De!==ve-1?m.push(Ce):(m[m.length-2]=[De,Ce],m.length=m.length-1)}function q(he){let Ce,{optionsNameMap:Ge}=GR();for(let ve of jh(he).sort(Gd)){let Ie=Ge.get(ve.toLowerCase());Ie?.affectsBuildInfo&&((Ce||(Ce={}))[ve]=J(Ie,he[ve]))}return Ce}function J(he,Ce){if(he){if(R.assert(he.type!=="listOrElement"),he.type==="list"){let Ge=Ce;if(he.element.isFilePath&&Ge.length)return Ge.map(ce)}else if(he.isFilePath)return ce(Ce)}return Ce}function re(he){let Ce;if(he)for(let Ge of Oo(he.keys()).sort(Gd)){let ve=he.get(Ge);(Ce||(Ce=[])).push(ve.length?[ee(Ge),pe(ve)]:ee(Ge))}return Ce}function pe(he){return R.assert(!!he.length),he.map(Ce=>{let Ge=xe(Ce);Ge.reportsUnnecessary=Ce.reportsUnnecessary,Ge.reportDeprecated=Ce.reportsDeprecated,Ge.source=Ce.source,Ge.skippedOn=Ce.skippedOn;let{relatedInformation:ve}=Ce;return Ge.relatedInformation=ve?ve.length?ve.map(Ie=>xe(Ie)):[]:void 0,Ge})}function xe(he){let{file:Ce}=he;return{...he,file:Ce?z(Ce.resolvedPath):void 0,messageText:Co(he.messageText)?he.messageText:fe(he.messageText)}}function fe(he){if(he.repopulateInfo)return{info:he.repopulateInfo(),next:ne(he.next)};let Ce=ne(he.next);return Ce===he.next?he:{...he,next:Ce}}function ne(he){return he&&(gn(he,(Ce,Ge)=>{let ve=fe(Ce);if(Ce===ve)return;let Ie=Ge>0?he.slice(0,Ge-1):[];Ie.push(ve);for(let De=Ge+1;De`${p(h)}${PL[h.category]}${h.code}: ${d(h.messageText)}`).join(` +`)),(i.createHash??KC)(r);function d(h){return Co(h)?h:h===void 0?"":h.next?h.messageText+h.next.map(d).join(` +`):h.messageText}function p(h){return h.file.resolvedPath===t.resolvedPath?`(${h.start},${h.length})`:(l===void 0&&(l=oi(t.resolvedPath)),`${g0(_m(l,h.file.resolvedPath,e.getCanonicalFileName))}(${h.start},${h.length})`)}}function JT(e,t,r){return(t.createHash??KC)(E1e(e,r))}function AJ(e,{newProgram:t,host:r,oldProgram:i,configFileParsingDiagnostics:o}){let s=i&&i.getState();if(s&&t===s.program&&o===t.getConfigFileParsingDiagnostics())return t=void 0,s=void 0,i;let l=jVe(t,s);t.getBuildInfo=N=>ZVe(l,N),t=void 0,i=void 0,s=void 0;let d=()=>l,p=xJ(d,o);return p.getState=d,p.saveEmitState=()=>HVe(l),p.restoreEmitState=N=>KVe(l,N),p.hasChangedEmitSignature=()=>!!l.hasChangedEmitSignature,p.getAllDependencies=N=>xm.getAllDependencies(l,R.checkDefined(l.program),N),p.getSemanticDiagnostics=A,p.emit=E,p.releaseProgram=()=>UVe(l),e===0?p.getSemanticDiagnosticsOfNextAffectedFile=S:e===1?(p.getSemanticDiagnosticsOfNextAffectedFile=S,p.emitNextAffectedFile=m,p.emitBuildInfo=h):jo(),p;function h(N,D){if(l.buildInfoEmitPending){let w=R.checkDefined(l.program).emitBuildInfo(N||ea(r,r.writeFile),D);return l.buildInfoEmitPending=!1,w}return cz}function m(N,D,w,j){var K,Y,B;let ce=g1e(l,D,r),z=eb(l.compilerOptions),ee=w?z&24:z;if(!ce)if(Rs(l.compilerOptions)){if(!l.programEmitPending||(ee=l.programEmitPending,w&&(ee=ee&24),!ee))return;ce=l.program}else{let q=qVe(l,w);if(!q){let J=XVe(l);if(J)return(l.seenEmittedFiles??(l.seenEmittedFiles=new Map)).set(J.affectedFile.resolvedPath,J.seenKind|24),{result:{emitSkipped:!0,diagnostics:J.diagnostics},affected:J.affectedFile};if(!l.buildInfoEmitPending)return;let re=l.program,pe=re.emitBuildInfo(N||ea(r,r.writeFile),D);return l.buildInfoEmitPending=!1,{result:pe,affected:re}}({affectedFile:ce,emitKind:ee}=q)}let me;ee&7&&(me=0),ee&24&&(me=me===void 0?1:void 0),ce===l.program&&(l.programEmitPending=l.changedFilesSet.size?tD(z,ee):l.programEmitPending?tD(l.programEmitPending,ee):void 0);let ge=l.program.emit(ce===l.program?void 0:ce,y(N,j),D,me,j);if(ce!==l.program){let q=ce;l.seenAffectedFiles.add(q.resolvedPath),l.affectedFilesIndex!==void 0&&l.affectedFilesIndex++,l.buildInfoEmitPending=!0;let J=((K=l.seenEmittedFiles)==null?void 0:K.get(q.resolvedPath))||0;(l.seenEmittedFiles??(l.seenEmittedFiles=new Map)).set(q.resolvedPath,ee|J);let re=((Y=l.affectedFilesPendingEmit)==null?void 0:Y.get(q.resolvedPath))||z,pe=tD(re,ee|J);pe?(l.affectedFilesPendingEmit??(l.affectedFilesPendingEmit=new Map)).set(q.resolvedPath,pe):(B=l.affectedFilesPendingEmit)==null||B.delete(q.resolvedPath),ge.diagnostics.length&&(l.emitDiagnosticsPerFile??(l.emitDiagnosticsPerFile=new Map)).set(q.resolvedPath,ge.diagnostics)}else l.changedFilesSet.clear();return{result:ge,affected:ce}}function y(N,D){return Af(l.compilerOptions)?(w,j,K,Y,B,ce)=>{var z,ee,me,ge;if(vd(w))if(Rs(l.compilerOptions)){if(l.compilerOptions.composite){let J=q(l.outSignature,void 0);if(!J)return;l.outSignature=J}}else{R.assert(B?.length===1);let J;if(!D){let re=B[0],pe=l.fileInfos.get(re.resolvedPath);if(pe.signature===re.version){let xe=TJ(l.program,re,j,r,ce);(z=ce?.diagnostics)!=null&&z.length||(J=xe),xe!==re.version&&(r.storeFilesChangingSignatureDuringEmit&&(l.filesChangingSignature??(l.filesChangingSignature=new Set)).add(re.resolvedPath),l.exportedModulesMap&&xm.updateExportedModules(l,re,re.exportedModulesFromDeclarationEmit),l.affectedFiles?(((ee=l.oldSignatures)==null?void 0:ee.get(re.resolvedPath))===void 0&&(l.oldSignatures??(l.oldSignatures=new Map)).set(re.resolvedPath,pe.signature||!1),pe.signature=xe):(pe.signature=xe,(me=l.oldExportedModulesMap)==null||me.clear()))}}if(l.compilerOptions.composite){let re=B[0].resolvedPath;if(J=q((ge=l.emitSignatures)==null?void 0:ge.get(re),J),!J)return;(l.emitSignatures??(l.emitSignatures=new Map)).set(re,J)}}N?N(w,j,K,Y,B,ce):r.writeFile?r.writeFile(w,j,K,Y,B,ce):l.program.writeFile(w,j,K,Y,B,ce);function q(J,re){let pe=!J||Co(J)?J:J[0];if(re??(re=JT(j,r,ce)),re===pe){if(J===pe)return;ce?ce.differsOnlyInMap=!0:ce={differsOnlyInMap:!0}}else l.hasChangedEmitSignature=!0,l.latestChangedDtsFile=w;return re}}:N||ea(r,r.writeFile)}function E(N,D,w,j,K){e===1&&h1e(l,N);let Y=hJ(p,N,D,w);if(Y)return Y;if(!N)if(e===1){let B=[],ce=!1,z,ee=[],me;for(;me=m(D,w,j,K);)ce=ce||me.result.emitSkipped,z=Hr(z,me.result.diagnostics),ee=Hr(ee,me.result.emittedFiles),B=Hr(B,me.result.sourceMaps);return{emitSkipped:ce,diagnostics:z||Xe,emittedFiles:ee,sourceMaps:B}}else JVe(l,j);return R.checkDefined(l.program).emit(N,y(D,K),w,j,K)}function S(N,D){for(;;){let w=g1e(l,N,r),j;if(w)if(w!==l.program){let K=w;if((!D||!D(K))&&(j=oce(l,K,N)),l.seenAffectedFiles.add(K.resolvedPath),l.affectedFilesIndex++,l.buildInfoEmitPending=!0,!j)continue}else j=l.program.getSemanticDiagnostics(void 0,N),l.changedFilesSet.clear(),l.programEmitPending=eb(l.compilerOptions);else return;return{result:j,affected:w}}}function A(N,D){h1e(l,N);let w=R.checkDefined(l.program).getCompilerOptions();if(Rs(w))return R.assert(!l.semanticDiagnosticsPerFile),R.checkDefined(l.program).getSemanticDiagnostics(N,D);if(N)return oce(l,N,D);for(;S(D););let j;for(let K of R.checkDefined(l.program).getSourceFiles())j=Hr(j,oce(l,K,D));return j||Xe}}function sce(e,t,r){var i,o;let s=((i=e.affectedFilesPendingEmit)==null?void 0:i.get(t))||0;(e.affectedFilesPendingEmit??(e.affectedFilesPendingEmit=new Map)).set(t,s|r),(o=e.emitDiagnosticsPerFile)==null||o.delete(t)}function lce(e){return Co(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:Co(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function cce(e,t){return Sy(e)?t:e[1]||8}function dce(e,t){return e||eb(t||{})}function uce(e,t,r){var i,o,s,l;let d=e.program,p=oi(_o(t,r.getCurrentDirectory())),h=Cd(r.useCaseSensitiveFileNames()),m,y=(i=d.fileNames)==null?void 0:i.map(A),E,S=d.latestChangedDtsFile?N(d.latestChangedDtsFile):void 0;if(ace(d)){let Y=new Map;d.fileInfos.forEach((B,ce)=>{let z=D(ce+1);Y.set(z,Co(B)?{version:B,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:B)}),m={fileInfos:Y,compilerOptions:d.options?GH(d.options,N):{},latestChangedDtsFile:S,outSignature:d.outSignature,programEmitPending:d.pendingEmit===void 0?void 0:dce(d.pendingEmit,d.options),bundle:e.bundle}}else{E=(o=d.fileIdsList)==null?void 0:o.map(z=>new Set(z.map(D)));let Y=new Map,B=(s=d.options)!=null&&s.composite&&!Rs(d.options)?new Map:void 0;d.fileInfos.forEach((z,ee)=>{let me=D(ee+1),ge=lce(z);Y.set(me,ge),B&&ge.signature&&B.set(me,ge.signature)}),(l=d.emitSignatures)==null||l.forEach(z=>{if(Sy(z))B.delete(D(z));else{let ee=D(z[0]);B.set(ee,!Co(z[1])&&!z[1].length?[B.get(ee)]:z[1])}});let ce=d.affectedFilesPendingEmit?eb(d.options||{}):void 0;m={fileInfos:Y,compilerOptions:d.options?GH(d.options,N):{},referencedMap:j(d.referencedMap),exportedModulesMap:j(d.exportedModulesMap),semanticDiagnosticsPerFile:K(d.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:K(d.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,affectedFilesPendingEmit:d.affectedFilesPendingEmit&&h0(d.affectedFilesPendingEmit,z=>D(Sy(z)?z:z[0]),z=>cce(z,ce)),changedFilesSet:new Set(mn(d.changeFileSet,D)),latestChangedDtsFile:S,emitSignatures:B?.size?B:void 0}}return{getState:()=>m,saveEmitState:qa,restoreEmitState:qa,getProgram:jo,getProgramOrUndefined:qb,releaseProgram:qa,getCompilerOptions:()=>m.compilerOptions,getSourceFile:jo,getSourceFiles:jo,getOptionsDiagnostics:jo,getGlobalDiagnostics:jo,getConfigFileParsingDiagnostics:jo,getSyntacticDiagnostics:jo,getDeclarationDiagnostics:jo,getSemanticDiagnostics:jo,emit:jo,getAllDependencies:jo,getCurrentDirectory:jo,emitNextAffectedFile:jo,getSemanticDiagnosticsOfNextAffectedFile:jo,emitBuildInfo:jo,close:qa,hasChangedEmitSignature:jm};function A(Y){return tl(Y,p,h)}function N(Y){return _o(Y,p)}function D(Y){return y[Y-1]}function w(Y){return E[Y-1]}function j(Y){if(!Y)return;let B=xm.createManyToManyPathMap();return Y.forEach(([ce,z])=>B.set(D(ce),w(z))),B}function K(Y){return Y&&h0(Y,B=>D(Sy(B)?B:B[0]),B=>Sy(B)?Xe:B[1])}}function IJ(e,t,r){let i=oi(_o(t,r.getCurrentDirectory())),o=Cd(r.useCaseSensitiveFileNames()),s=new Map,l=0,d=[];return e.fileInfos.forEach((p,h)=>{let m=tl(e.fileNames[h],i,o),y=Co(p)?p:p.version;if(s.set(m,y),le().program,releaseProgram:()=>e().program=void 0,getCompilerOptions:()=>e().compilerOptions,getSourceFile:i=>r().getSourceFile(i),getSourceFiles:()=>r().getSourceFiles(),getOptionsDiagnostics:i=>r().getOptionsDiagnostics(i),getGlobalDiagnostics:i=>r().getGlobalDiagnostics(i),getConfigFileParsingDiagnostics:()=>t,getSyntacticDiagnostics:(i,o)=>r().getSyntacticDiagnostics(i,o),getDeclarationDiagnostics:(i,o)=>r().getDeclarationDiagnostics(i,o),getSemanticDiagnostics:(i,o)=>r().getSemanticDiagnostics(i,o),emit:(i,o,s,l,d)=>r().emit(i,o,s,l,d),emitBuildInfo:(i,o)=>r().emitBuildInfo(i,o),getAllDependencies:jo,getCurrentDirectory:()=>r().getCurrentDirectory(),close:qa};function r(){return R.checkDefined(e().program)}}var RJ,DJ,eje=bt({"src/compiler/builder.ts"(){"use strict";Zo(),RJ=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.Dts=8]="Dts",e[e.DtsMap=16]="DtsMap",e[e.AllJs=7]="AllJs",e[e.AllDts=24]="AllDts",e[e.All=31]="All",e))(RJ||{}),DJ=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(DJ||{})}});function S1e(e,t,r,i,o,s){return AJ(0,dz(e,t,r,i,o,s))}function CJ(e,t,r,i,o,s){return AJ(1,dz(e,t,r,i,o,s))}function T1e(e,t,r,i,o,s){let{newProgram:l,configFileParsingDiagnostics:d}=dz(e,t,r,i,o,s);return xJ(()=>({program:l,compilerOptions:l.getCompilerOptions()}),d)}var tje=bt({"src/compiler/builderPublic.ts"(){"use strict";Zo()}});function uz(e){return El(e,"/node_modules/.staging")?Ex(e,"/.staging"):gt(wL,t=>e.includes(t))?void 0:e}function pce(e,t){if(t<=1)return 1;let r=1,i=e[0].search(/[a-zA-Z]:/)===0;if(e[0]!==nl&&!i&&e[1].search(/[a-zA-Z]\$$/)===0){if(t===2)return 2;r=2,i=!0}return i&&!e[r].match(/^users$/i)?r:e[r].match(/^workspaces$/i)?r+1:r+2}function pz(e,t){if(t===void 0&&(t=e.length),t<=2)return!1;let r=pce(e,t);return t>r+1}function fce(e){return I1e(oi(e))}function A1e(e,t){if(t.lengtho.length+1?_ce(d,l,Math.max(o.length+1,p+1)):{dir:r,dirPath:i,nonRecursive:!0}:x1e(d,l,l.length-1,p,h,o)}function x1e(e,t,r,i,o,s){if(o!==-1)return _ce(e,t,o+1);let l=!0,d=r;for(let p=0;pnje(i,o,s,e,r,t,l)}}function nje(e,t,r,i,o,s,l){let d=fz(e),p=HR(r,i,o,d,t,s,l);if(!e.getGlobalCache)return p;let h=e.getGlobalCache();if(h!==void 0&&!qc(r)&&!(p.resolvedModule&&O6(p.resolvedModule.extension))){let{resolvedModule:m,failedLookupLocations:y,affectingLocations:E,resolutionDiagnostics:S}=Lse(R.checkDefined(e.globalCacheResolutionModuleName)(r),e.projectName,o,d,h,t);if(m)return p.resolvedModule=m,p.failedLookupLocations=jR(p.failedLookupLocations,y),p.affectingLocations=jR(p.affectingLocations,E),p.resolutionDiagnostics=jR(p.resolutionDiagnostics,S),p}return p}function PJ(e,t,r){let i,o,s,l=Xp(),d=new Set,p=new Set,h=new Map,m=new Map,y=!1,E,S,A,N,D,w=!1,j=bu(()=>e.getCurrentDirectory()),K=e.getCachedDirectoryStructureHost(),Y=new Map,B=UR(j(),e.getCanonicalFileName,e.getCompilationSettings()),ce=new Map,z=b3(j(),e.getCanonicalFileName,e.getCompilationSettings(),B.getPackageJsonInfoCache(),B.optionsToRedirectsKey),ee=new Map,me=UR(j(),e.getCanonicalFileName,rK(e.getCompilationSettings()),B.getPackageJsonInfoCache()),ge=new Map,q=new Map,J=gce(t,j),re=e.toPath(J),pe=Wc(re),xe=new Map;return{rootDirForResolution:t,resolvedModuleNames:Y,resolvedTypeReferenceDirectives:ce,resolvedLibraries:ee,resolvedFileToResolution:h,resolutionsWithFailedLookups:d,resolutionsWithOnlyAffectingLocations:p,directoryWatchesOfFailedLookups:ge,fileWatchesOfAffectingLocations:q,watchFailedLookupLocationsOfExternalModuleResolutions:Dn,getModuleResolutionCache:()=>B,startRecordingFilesWithChangedResolutions:Ge,finishRecordingFilesWithChangedResolutions:ve,startCachingPerDirectoryResolution:Le,finishCachingPerDirectoryResolution:be,resolveModuleNameLiterals:Je,resolveTypeReferenceDirectiveReferences:_t,resolveLibrary:ft,resolveSingleModuleNameWithoutWatching:Zt,removeResolutionsFromProjectReferenceRedirects:Ye,removeResolutionsOfFile:Ot,hasChangedAutomaticTypeDirectiveNames:()=>y,invalidateResolutionOfFile:si,invalidateResolutionsOfFailedLookupLocations:da,setFilesWithInvalidatedNonRelativeUnresolvedImports:yi,createHasInvalidatedResolutions:De,isFileWithInvalidatedNonRelativeUnresolvedImports:Ie,updateTypeRootsWatch:lt,closeTypeRootsWatch:Be,clear:he,onChangesAffectModuleResolution:Ce};function fe(se){return se.resolvedModule}function ne(se){return se.resolvedTypeReferenceDirective}function he(){$u(ge,Rf),$u(q,Rf),l.clear(),Be(),Y.clear(),ce.clear(),h.clear(),d.clear(),p.clear(),A=void 0,N=void 0,D=void 0,S=void 0,E=void 0,w=!1,B.clear(),z.clear(),B.update(e.getCompilationSettings()),z.update(e.getCompilationSettings()),me.clear(),m.clear(),ee.clear(),y=!1}function Ce(){w=!0,B.clearAllExceptPackageJsonInfoCache(),z.clearAllExceptPackageJsonInfoCache(),B.update(e.getCompilationSettings()),z.update(e.getCompilationSettings())}function Ge(){i=[]}function ve(){let se=i;return i=void 0,se}function Ie(se){if(!s)return!1;let ke=s.get(se);return!!ke&&!!ke.length}function De(se,ke){da();let st=o;return o=void 0,{hasInvalidatedResolutions:G=>se(G)||w||!!st?.has(G)||Ie(G),hasInvalidatedLibResolutions:G=>{var et;return ke(G)||!!((et=ee?.get(G))!=null&&et.isInvalidated)}}}function Le(){B.isReadonly=void 0,z.isReadonly=void 0,me.isReadonly=void 0,B.getPackageJsonInfoCache().isReadonly=void 0,B.clearAllExceptPackageJsonInfoCache(),z.clearAllExceptPackageJsonInfoCache(),me.clearAllExceptPackageJsonInfoCache(),l.forEach(uo),l.clear()}function Et(se){ee.forEach((ke,st)=>{var G;(G=se?.resolvedLibReferences)!=null&&G.has(st)||(Qn(ke,e.toPath(rz(e.getCompilationSettings(),j(),st)),fe),ee.delete(st))})}function be(se,ke){s=void 0,w=!1,l.forEach(uo),l.clear(),se!==ke&&(Et(se),se?.getSourceFiles().forEach(st=>{var G;let et=wp(st)?((G=st.packageJsonLocations)==null?void 0:G.length)??0:0,Tt=m.get(st.path)??Xe;for(let He=Tt.length;Heet)for(let He=et;He{se?.getSourceFileByPath(G)||(st.forEach(et=>q.get(et).files--),m.delete(G))})),ge.forEach(ze),q.forEach(tt),y=!1,B.isReadonly=!0,z.isReadonly=!0,me.isReadonly=!0,B.getPackageJsonInfoCache().isReadonly=!0}function ze(se,ke){se.refCount===0&&(ge.delete(ke),se.watcher.close())}function tt(se,ke){var st;se.files===0&&se.resolutions===0&&!((st=se.symlinks)!=null&&st.size)&&(q.delete(ke),se.watcher.close())}function Wt({entries:se,containingFile:ke,containingSourceFile:st,redirectedReference:G,options:et,perFileCache:Tt,reusedNames:He,loader:pt,getResolutionWithResolvedFileName:Ft,deferWatchingNonRelativeResolution:hn,shouldRetryResolution:dn,logChanges:un}){let U=e.toPath(ke),Me=Tt.get(U)||Tt.set(U,u1()).get(U),Pt=[],k=un&&Ie(U),ie=e.getCurrentProgram(),H=ie&&ie.getResolvedProjectReferenceToRedirect(ke),ue=H?!G||G.sourceFile.path!==H.sourceFile.path:!!G,We=u1();for(let It of se){let Ct=pt.nameAndMode.getName(It),Kt=pt.nameAndMode.getMode(It,st,G?.commandLine.options||et),En=Me.get(Ct,Kt);if(!We.has(Ct,Kt)&&(w||ue||!En||En.isInvalidated||k&&!qc(Ct)&&dn(En))){let wn=En;En=pt.resolve(Ct,Kt),e.onDiscoveredSymlink&&rje(En)&&e.onDiscoveredSymlink(),Me.set(Ct,Kt,En),En!==wn&&(Dn(Ct,En,U,Ft,hn),wn&&Qn(wn,U,Ft)),un&&i&&!Ne(wn,En)&&(i.push(U),un=!1)}else{let wn=fz(e);if(Bg(et,wn)&&!We.has(Ct,Kt)){let Bn=Ft(En);yo(wn,Tt===Y?Bn?.resolvedFileName?Bn.packageId?f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:Bn?.resolvedFileName?Bn.packageId?f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,Ct,ke,Bn?.resolvedFileName,Bn?.packageId&&kv(Bn.packageId))}}R.assert(En!==void 0&&!En.isInvalidated),We.set(Ct,Kt,!0),Pt.push(En)}return He?.forEach(It=>We.set(pt.nameAndMode.getName(It),pt.nameAndMode.getMode(It,st,G?.commandLine.options||et),!0)),Me.size()!==We.size()&&Me.forEach((It,Ct,Kt)=>{We.has(Ct,Kt)||(Qn(It,U,Ft),Me.delete(Ct,Kt))}),Pt;function Ne(It,Ct){if(It===Ct)return!0;if(!It||!Ct)return!1;let Kt=Ft(It),En=Ft(Ct);return Kt===En?!0:!Kt||!En?!1:Kt.resolvedFileName===En.resolvedFileName}}function _t(se,ke,st,G,et,Tt){return Wt({entries:se,containingFile:ke,containingSourceFile:et,redirectedReference:st,options:G,reusedNames:Tt,perFileCache:ce,loader:tz(ke,st,G,fz(e),z),getResolutionWithResolvedFileName:ne,shouldRetryResolution:He=>He.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function Je(se,ke,st,G,et,Tt){return Wt({entries:se,containingFile:ke,containingSourceFile:et,redirectedReference:st,options:G,reusedNames:Tt,perFileCache:Y,loader:yce(ke,st,G,e,B),getResolutionWithResolvedFileName:fe,shouldRetryResolution:He=>!He.resolvedModule||!VN(He.resolvedModule.extension),logChanges:r,deferWatchingNonRelativeResolution:!0})}function ft(se,ke,st,G){let et=fz(e),Tt=ee?.get(G);if(!Tt||Tt.isInvalidated){let He=Tt;Tt=E3(se,ke,st,et,me);let pt=e.toPath(ke);Dn(se,Tt,pt,fe,!1),ee.set(G,Tt),He&&Qn(He,pt,fe)}else if(Bg(st,et)){let He=fe(Tt);yo(et,He?.resolvedFileName?He.packageId?f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,se,ke,He?.resolvedFileName,He?.packageId&&kv(He.packageId))}return Tt}function Zt(se,ke){var st,G;let et=e.toPath(ke),Tt=Y.get(et),He=Tt?.get(se,void 0);if(He&&!He.isInvalidated)return He;let pt=(st=e.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:st.call(e,B),Ft=fz(e),hn=HR(se,ke,e.getCompilationSettings(),Ft,B);return(G=e.afterResolveSingleModuleNameWithoutWatching)==null||G.call(e,B,se,ke,hn,pt),hn}function en(se){return El(se,"/node_modules/@types")}function Dn(se,ke,st,G,et){var Tt;if(ke.refCount)ke.refCount++,R.assertIsDefined(ke.files);else{ke.refCount=1,R.assert(!((Tt=ke.files)!=null&&Tt.size)),!et||qc(se)?pn(ke):l.add(se,ke);let He=G(ke);if(He&&He.resolvedFileName){let pt=e.toPath(He.resolvedFileName),Ft=h.get(pt);Ft||h.set(pt,Ft=new Set),Ft.add(ke)}}(ke.files??(ke.files=new Set)).add(st)}function Kn(se,ke){let st=e.toPath(se),G=NJ(se,st,J,re,pe,j);if(G){let{dir:et,dirPath:Tt,nonRecursive:He}=G;Tt===re?(R.assert(He),ke=!0):Li(et,Tt,He)}return ke}function pn(se){R.assert(!!se.refCount);let{failedLookupLocations:ke,affectingLocations:st,alternateResult:G}=se;if(!ke?.length&&!st?.length&&!G)return;(ke?.length||G)&&d.add(se);let et=!1;if(ke)for(let Tt of ke)et=Kn(Tt,et);G&&(et=Kn(G,et)),et&&Li(J,re,!0),Yt(se,!ke?.length&&!G)}function Yt(se,ke){R.assert(!!se.refCount);let{affectingLocations:st}=se;if(st?.length){ke&&p.add(se);for(let G of st)qt(G,!0)}}function qt(se,ke){let st=q.get(se);if(st){ke?st.resolutions++:st.files++;return}let G=se,et=!1,Tt;e.realpath&&(G=e.realpath(se),se!==G&&(et=!0,Tt=q.get(G)));let He=ke?1:0,pt=ke?0:1;if(!et||!Tt){let Ft={watcher:mce(e.toPath(G))?e.watchAffectingFileLocation(G,(hn,dn)=>{K?.addOrDeleteFile(hn,e.toPath(G),dn),hi(G,B.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):rD,resolutions:et?0:He,files:et?0:pt,symlinks:void 0};q.set(G,Ft),et&&(Tt=Ft)}if(et){R.assert(!!Tt);let Ft={watcher:{close:()=>{var hn;let dn=q.get(G);(hn=dn?.symlinks)!=null&&hn.delete(se)&&!dn.symlinks.size&&!dn.resolutions&&!dn.files&&(q.delete(G),dn.watcher.close())}},resolutions:He,files:pt,symlinks:void 0};q.set(se,Ft),(Tt.symlinks??(Tt.symlinks=new Set)).add(se)}}function hi(se,ke){var st;let G=q.get(se);G?.resolutions&&(S??(S=new Set)).add(se),G?.files&&(E??(E=new Set)).add(se),(st=G?.symlinks)==null||st.forEach(et=>hi(et,ke)),ke?.delete(e.toPath(se))}function uo(se,ke){let st=e.getCurrentProgram();!st||!st.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(ke)?se.forEach(pn):se.forEach(G=>Yt(G,!0))}function Li(se,ke,st){let G=ge.get(ke);G?(R.assert(!!st==!!G.nonRecursive),G.refCount++):ge.set(ke,{watcher:Er(se,ke,st),refCount:1,nonRecursive:st})}function Eo(se,ke,st){let G=e.toPath(se),et=NJ(se,G,J,re,pe,j);if(et){let{dirPath:Tt}=et;Tt===re?ke=!0:Ur(Tt,st)}return ke}function Qn(se,ke,st,G){if(R.checkDefined(se.files).delete(ke),se.refCount--,se.refCount)return;let et=st(se);if(et&&et.resolvedFileName){let Ft=e.toPath(et.resolvedFileName),hn=h.get(Ft);hn?.delete(se)&&!hn.size&&h.delete(Ft)}let{failedLookupLocations:Tt,affectingLocations:He,alternateResult:pt}=se;if(d.delete(se)){let Ft=!1;if(Tt)for(let hn of Tt)Ft=Eo(hn,Ft,G);pt&&(Ft=Eo(pt,Ft,G)),Ft&&Ur(re,G)}else He?.length&&p.delete(se);if(He)for(let Ft of He){let hn=q.get(Ft);hn.resolutions--,G&&tt(hn,Ft)}}function Ur(se,ke){let st=ge.get(se);st.refCount--,ke&&ze(st,se)}function Er(se,ke,st){return e.watchDirectoryOfFailedLookupLocation(se,G=>{let et=e.toPath(G);K&&K.addOrDeleteFileOrDirectory(G,et),$i(et,ke===et)},st?0:1)}function on(se,ke,st,G){let et=se.get(ke);et&&(et.forEach(Tt=>Qn(Tt,ke,st,G)),se.delete(ke))}function Ye(se){if(!Sl(se,".json"))return;let ke=e.getCurrentProgram();if(!ke)return;let st=ke.getResolvedProjectReferenceByPath(se);st&&st.commandLine.fileNames.forEach(G=>Ot(e.toPath(G)))}function Ot(se,ke){on(Y,se,fe,ke),on(ce,se,ne,ke)}function In(se,ke){if(!se)return!1;let st=!1;return se.forEach(G=>{if(!(G.isInvalidated||!ke(G))){G.isInvalidated=st=!0;for(let et of R.checkDefined(G.files))(o??(o=new Set)).add(et),y=y||El(et,eD)}}),st}function si(se){Ot(se);let ke=y;In(h.get(se),Ty)&&y&&!ke&&e.onChangedAutomaticTypeDirectiveNames()}function yi(se){R.assert(s===se||s===void 0),s=se}function $i(se,ke){if(ke)(D||(D=new Set)).add(se);else{let st=uz(se);if(!st||(se=st,e.fileIsOpen(se)))return!1;let G=oi(se);if(en(se)||KW(se)||en(G)||KW(G))(A||(A=new Set)).add(se),(N||(N=new Set)).add(se);else{if(Ule(e.getCurrentProgram(),se)||Sl(se,".map"))return!1;(A||(A=new Set)).add(se);let et=pw(se,!0);et&&(N||(N=new Set)).add(et)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function Ao(){let se=B.getPackageJsonInfoCache().getInternalMap();se&&(A||N||D)&&se.forEach((ke,st)=>vn(st)?se.delete(st):void 0)}function da(){var se;if(w)return E=void 0,Ao(),(A||N||D||S)&&In(ee,Ba),A=void 0,N=void 0,D=void 0,S=void 0,!0;let ke=!1;return E&&((se=e.getCurrentProgram())==null||se.getSourceFiles().forEach(st=>{gt(st.packageJsonLocations,G=>E.has(G))&&((o??(o=new Set)).add(st.path),ke=!0)}),E=void 0),!A&&!N&&!D&&!S||(ke=In(d,Ba)||ke,Ao(),A=void 0,N=void 0,D=void 0,ke=In(p,kn)||ke,S=void 0),ke}function Ba(se){var ke;return kn(se)?!0:!A&&!N&&!D?!1:((ke=se.failedLookupLocations)==null?void 0:ke.some(st=>vn(e.toPath(st))))||!!se.alternateResult&&vn(e.toPath(se.alternateResult))}function vn(se){return A?.has(se)||bL(N?.keys()||[],ke=>ao(se,ke)?!0:void 0)||bL(D?.keys()||[],ke=>se.length>ke.length&&ao(se,ke)&&(aV(ke)||se[ke.length]===nl)?!0:void 0)}function kn(se){var ke;return!!S&&((ke=se.affectingLocations)==null?void 0:ke.some(st=>S.has(st)))}function Be(){$u(xe,Km)}function ct(se){return Dt(se)?e.watchTypeRootsDirectory(se,ke=>{let st=e.toPath(ke);K&&K.addOrDeleteFileOrDirectory(ke,st),y=!0,e.onChangedAutomaticTypeDirectiveNames();let G=hce(se,e.toPath(se),re,pe,j,et=>ge.has(et));G&&$i(st,G===st)},1):rD}function lt(){let se=e.getCompilationSettings();if(se.types){Be();return}let ke=RP(se,{getCurrentDirectory:j});ke?FN(xe,new Set(ke),{createNewValue:ct,onDeleteValue:Km}):Be()}function Dt(se){return e.getCompilationSettings().typeRoots?!0:fce(e.toPath(se))}}function rje(e){var t,r;return!!((t=e.resolvedModule)!=null&&t.originalPath||(r=e.resolvedTypeReferenceDirective)!=null&&r.originalPath)}var ije=bt({"src/compiler/resolutionCache.ts"(){"use strict";Zo()}});function Ow(e,t){let r=e===md&&Ice?Ice:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:Cd(e.useCaseSensitiveFileNames)};if(!t)return o=>e.write(oJ(o,r));let i=new Array(1);return o=>{i[0]=o,e.write(qle(i,r)+r.getNewLine()),i[0]=void 0}}function D1e(e,t,r){return e.clearScreen&&!r.preserveWatchOutput&&!r.extendedDiagnostics&&!r.diagnostics&&zo(vz,t.code)?(e.clearScreen(),!0):!1}function oje(e,t){return zo(vz,e.code)?t+t:t}function Ww(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace("\u202F"," "):new Date().toLocaleTimeString()}function vce(e,t){return t?(r,i,o)=>{D1e(e,r,o);let s=`[${oS(Ww(e),"\x1B[90m")}] `;s+=`${k_(r.messageText,e.newLine)}${i+i}`,e.write(s)}:(r,i,o)=>{let s="";D1e(e,r,o)||(s+=i),s+=`${Ww(e)} - `,s+=`${k_(r.messageText,e.newLine)}${oje(r,i)}`,e.write(s)}}function C1e(e,t,r,i,o,s){let l=o;l.onUnRecoverableConfigFileDiagnostic=p=>M1e(o,s,p);let d=Zk(e,t,l,r,i);return l.onUnRecoverableConfigFileDiagnostic=void 0,d}function mz(e){return vv(e,t=>t.category===1)}function _z(e){return jr(e,r=>r.category===1).map(r=>{if(r.file!==void 0)return`${r.file.fileName}`}).map(r=>{if(r===void 0)return;let i=Vr(e,o=>o.file!==void 0&&o.file.fileName===r);if(i!==void 0){let{line:o}=gs(i.file,i.start);return{fileName:r,line:o+1}}})}function MJ(e){return e===1?f.Found_1_error_Watching_for_file_changes:f.Found_0_errors_Watching_for_file_changes}function N1e(e,t){let r=oS(":"+e.line,"\x1B[90m");return JC(e.fileName)&&JC(t)?_m(t,e.fileName,!1)+r:e.fileName+r}function bce(e,t,r,i){if(e===0)return"";let o=t.filter(m=>m!==void 0),s=o.map(m=>`${m.fileName}:${m.line}`).filter((m,y,E)=>E.indexOf(m)===y),l=o[0]&&N1e(o[0],i.getCurrentDirectory()),d;e===1?d=t[0]!==void 0?[f.Found_1_error_in_0,l]:[f.Found_1_error]:d=s.length===0?[f.Found_0_errors,e]:s.length===1?[f.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,l]:[f.Found_0_errors_in_1_files,e,s.length];let p=jl(...d),h=s.length>1?aje(o,i):"";return`${r}${k_(p.messageText,r)}${r}${r}${h}`}function aje(e,t){let r=e.filter((y,E,S)=>E===S.findIndex(A=>A?.fileName===y?.fileName));if(r.length===0)return"";let i=y=>Math.log(y)*Math.LOG10E+1,o=r.map(y=>[y,vv(e,E=>E.fileName===y.fileName)]),s=o.reduce((y,E)=>Math.max(y,E[1]||0),0),l=f.Errors_Files.message,d=l.split(" ")[0].length,p=Math.max(d,i(s)),h=Math.max(i(s)-d,0),m="";return m+=" ".repeat(h)+l+` +`,o.forEach(y=>{let[E,S]=y,A=Math.log(S)*Math.LOG10E+1|0,N=A{t(i.fileName)})}function kJ(e,t){var r,i;let o=e.getFileIncludeReasons(),s=l=>qC(l,e.getCurrentDirectory(),e.getCanonicalFileName);for(let l of e.getSourceFiles())t(`${nD(l,s)}`),(r=o.get(l.path))==null||r.forEach(d=>t(` ${FJ(e,d,s).messageText}`)),(i=wJ(l,s))==null||i.forEach(d=>t(` ${d.messageText}`))}function wJ(e,t){var r;let i;if(e.path!==e.resolvedPath&&(i??(i=[])).push(Fo(void 0,f.File_is_output_of_project_reference_source_0,nD(e.originalFileName,t))),e.redirectInfo&&(i??(i=[])).push(Fo(void 0,f.File_redirects_to_file_0,nD(e.redirectInfo.redirectTarget,t))),wp(e))switch(e.impliedNodeFormat){case 99:e.packageJsonScope&&(i??(i=[])).push(Fo(void 0,f.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,nD(Ja(e.packageJsonLocations),t)));break;case 1:e.packageJsonScope?(i??(i=[])).push(Fo(void 0,e.packageJsonScope.contents.packageJsonContent.type?f.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:f.File_is_CommonJS_module_because_0_does_not_have_field_type,nD(Ja(e.packageJsonLocations),t))):(r=e.packageJsonLocations)!=null&&r.length&&(i??(i=[])).push(Fo(void 0,f.File_is_CommonJS_module_because_package_json_was_not_found));break}return i}function OJ(e,t){var r;let i=e.getCompilerOptions().configFile;if(!((r=i?.configFileSpecs)!=null&&r.validatedFilesSpec))return;let o=e.getCanonicalFileName(t),s=oi(_o(i.fileName,e.getCurrentDirectory()));return Vr(i.configFileSpecs.validatedFilesSpec,l=>e.getCanonicalFileName(_o(l,s))===o)}function WJ(e,t){var r,i;let o=e.getCompilerOptions().configFile;if(!((r=o?.configFileSpecs)!=null&&r.validatedIncludeSpecs))return;if(o.configFileSpecs.isDefaultIncludeSpec)return!0;let s=Sl(t,".json"),l=oi(_o(o.fileName,e.getCurrentDirectory())),d=e.useCaseSensitiveFileNames();return Vr((i=o?.configFileSpecs)==null?void 0:i.validatedIncludeSpecs,p=>{if(s&&!El(p,".json"))return!1;let h=boe(p,l,"files");return!!h&&Bv(`(${h})$`,d).test(t)})}function FJ(e,t,r){var i,o;let s=e.getCompilerOptions();if(xE(t)){let l=jP(e,t),d=QR(l)?l.file.text.substring(l.pos,l.end):`"${l.text}"`,p;switch(R.assert(QR(l)||t.kind===3,"Only synthetic references are imports"),t.kind){case 3:QR(l)?p=l.packageId?f.Imported_via_0_from_file_1_with_packageId_2:f.Imported_via_0_from_file_1:l.text===Vv?p=l.packageId?f.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:f.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:p=l.packageId?f.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:f.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:R.assert(!l.packageId),p=f.Referenced_via_0_from_file_1;break;case 5:p=l.packageId?f.Type_library_referenced_via_0_from_file_1_with_packageId_2:f.Type_library_referenced_via_0_from_file_1;break;case 7:R.assert(!l.packageId),p=f.Library_referenced_via_0_from_file_1;break;default:R.assertNever(t)}return Fo(void 0,p,d,nD(l.file,r),l.packageId&&kv(l.packageId))}switch(t.kind){case 0:if(!((i=s.configFile)!=null&&i.configFileSpecs))return Fo(void 0,f.Root_file_specified_for_compilation);let l=_o(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(OJ(e,l))return Fo(void 0,f.Part_of_files_list_in_tsconfig_json);let p=WJ(e,l);return Co(p)?Fo(void 0,f.Matched_by_include_pattern_0_in_1,p,nD(s.configFile,r)):Fo(void 0,p?f.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:f.Root_file_specified_for_compilation);case 1:case 2:let h=t.kind===2,m=R.checkDefined((o=e.getResolvedProjectReferences())==null?void 0:o[t.index]);return Fo(void 0,Rs(s)?h?f.Output_from_referenced_project_0_included_because_1_specified:f.Source_from_referenced_project_0_included_because_1_specified:h?f.Output_from_referenced_project_0_included_because_module_is_specified_as_none:f.Source_from_referenced_project_0_included_because_module_is_specified_as_none,nD(m.sourceFile.fileName,r),s.outFile?"--outFile":"--out");case 8:{let y=s.types?t.packageId?[f.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,kv(t.packageId)]:[f.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]:t.packageId?[f.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,kv(t.packageId)]:[f.Entry_point_for_implicit_type_library_0,t.typeReference];return Fo(void 0,...y)}case 6:{if(t.index!==void 0)return Fo(void 0,f.Library_0_specified_in_compilerOptions,s.lib[t.index]);let y=zc(sw.type,(S,A)=>S===rs(s)?A:void 0),E=y?[f.Default_library_for_target_0,y]:[f.Default_library];return Fo(void 0,...E)}default:R.assertNever(t)}}function nD(e,t){let r=Co(e)?e:e.fileName;return t?t(r):r}function hz(e,t,r,i,o,s,l,d){let p=!!e.getCompilerOptions().listFilesOnly,h=e.getConfigFileParsingDiagnostics().slice(),m=h.length;Hr(h,e.getSyntacticDiagnostics(void 0,s)),h.length===m&&(Hr(h,e.getOptionsDiagnostics(s)),p||(Hr(h,e.getGlobalDiagnostics(s)),h.length===m&&Hr(h,e.getSemanticDiagnostics(void 0,s))));let y=p?{emitSkipped:!0,diagnostics:Xe}:e.emit(void 0,o,s,l,d),{emittedFiles:E,diagnostics:S}=y;Hr(h,S);let A=Px(h);if(A.forEach(t),r){let N=e.getCurrentDirectory();gn(E,D=>{let w=_o(D,N);r(`TSFILE: ${w}`)}),LJ(e,r)}return i&&i(mz(A),_z(A)),{emitResult:y,diagnostics:A}}function Sce(e,t,r,i,o,s,l,d){let{emitResult:p,diagnostics:h}=hz(e,t,r,i,o,s,l,d);return p.emitSkipped&&h.length>0?1:h.length>0?2:0}function zJ(e=md,t){return{onWatchStatusChange:t||vce(e),watchFile:ea(e,e.watchFile)||iD,watchDirectory:ea(e,e.watchDirectory)||iD,setTimeout:ea(e,e.setTimeout)||qa,clearTimeout:ea(e,e.clearTimeout)||qa}}function BJ(e,t){let r=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,i=r!==0?s=>e.trace(s):qa,o=ZK(e,r,i);return o.writeLog=i,o}function GJ(e,t,r=e){let i=e.useCaseSensitiveFileNames(),o={getSourceFile:nJ((s,l)=>l?e.readFile(s,l):o.readFile(s),t,void 0),getDefaultLibLocation:ea(e,e.getDefaultLibLocation),getDefaultLibFileName:s=>e.getDefaultLibFileName(s),writeFile:rJ((s,l,d)=>e.writeFile(s,l,d),s=>e.createDirectory(s),s=>e.directoryExists(s)),getCurrentDirectory:bu(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:Cd(i),getNewLine:()=>Oy(t()),fileExists:s=>e.fileExists(s),readFile:s=>e.readFile(s),trace:ea(e,e.trace),directoryExists:ea(r,r.directoryExists),getDirectories:ea(r,r.getDirectories),realpath:ea(e,e.realpath),getEnvironmentVariable:ea(e,e.getEnvironmentVariable)||(()=>""),createHash:ea(e,e.createHash),readDirectory:ea(e,e.readDirectory),storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,jsDocParsingMode:e.jsDocParsingMode};return o}function gz(e,t){if(t.match(RK)){let r=t.length,i=r;for(let o=r-1;o>=0;o--){let s=t.charCodeAt(o);switch(s){case 10:o&&t.charCodeAt(o-1)===13&&o--;case 13:break;default:if(s<127||!Vd(s)){i=o;continue}break}let l=t.substring(i,r);if(l.match(k3)){t=t.substring(0,i);break}else if(!l.match(w3))break;r=i}}return(e.createHash||KC)(t)}function yz(e){let t=e.getSourceFile;e.getSourceFile=(...r)=>{let i=t.call(e,...r);return i&&(i.version=gz(e,i.text)),i}}function VJ(e,t){let r=bu(()=>oi(fa(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:bu(()=>e.getCurrentDirectory()),getDefaultLibLocation:r,getDefaultLibFileName:i=>$r(r(),KL(i)),fileExists:i=>e.fileExists(i),readFile:(i,o)=>e.readFile(i,o),directoryExists:i=>e.directoryExists(i),getDirectories:i=>e.getDirectories(i),readDirectory:(i,o,s,l,d)=>e.readDirectory(i,o,s,l,d),realpath:ea(e,e.realpath),getEnvironmentVariable:ea(e,e.getEnvironmentVariable),trace:i=>e.write(i+e.newLine),createDirectory:i=>e.createDirectory(i),writeFile:(i,o,s)=>e.writeFile(i,o,s),createHash:ea(e,e.createHash),createProgram:t||CJ,storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,now:ea(e,e.now)}}function P1e(e=md,t,r,i){let o=l=>e.write(l+e.newLine),s=VJ(e,t);return GG(s,zJ(e,i)),s.afterProgramCreate=l=>{let d=l.getCompilerOptions(),p=Oy(d);hz(l,r,o,h=>s.onWatchStatusChange(jl(MJ(h),h),p,d,h))},s}function M1e(e,t,r){t(r),e.exit(1)}function Tce({configFileName:e,optionsToExtend:t,watchOptionsToExtend:r,extraFileExtensions:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:d}){let p=l||Ow(o),h=P1e(o,s,p,d);return h.onUnRecoverableConfigFileDiagnostic=m=>M1e(o,p,m),h.configFileName=e,h.optionsToExtend=t,h.watchOptionsToExtend=r,h.extraFileExtensions=i,h}function Ace({rootFiles:e,options:t,watchOptions:r,projectReferences:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:d}){let p=P1e(o,s,l||Ow(o),d);return p.rootFiles=e,p.options=t,p.watchOptions=r,p.projectReferences=i,p}function L1e(e){let t=e.system||md,r=e.host||(e.host=jJ(e.options,t)),i=xce(e),o=Sce(i,e.reportDiagnostic||Ow(t),s=>r.trace&&r.trace(s),e.reportErrorSummary||e.options.pretty?(s,l)=>t.write(bce(s,l,t.newLine,r)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(i),o}var Ice,vz,rD,iD,Lc,sje=bt({"src/compiler/watch.ts"(){"use strict";Zo(),Ice=md?{getCurrentDirectory:()=>md.getCurrentDirectory(),getNewLine:()=>md.newLine,getCanonicalFileName:Cd(md.useCaseSensitiveFileNames)}:void 0,vz=[f.Starting_compilation_in_watch_mode.code,f.File_change_detected_Starting_incremental_compilation.code],rD={close:qa},iD=()=>rD,Lc={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation",TypingInstallerLocationFile:"File location for typing installer",TypingInstallerLocationDirectory:"Directory location for typing installer"}}});function bz(e,t){let r=jy(e);if(!r)return;let i;if(t.getBuildInfo)i=t.getBuildInfo(r,e.configFilePath);else{let o=t.readFile(r);if(!o)return;i=X3(r,o)}if(!(!i||i.version!==qp||!i.program))return uce(i,r,t)}function jJ(e,t=md){let r=iJ(e,void 0,t);return r.createHash=ea(t,t.createHash),r.storeFilesChangingSignatureDuringEmit=t.storeFilesChangingSignatureDuringEmit,yz(r),Pw(r,i=>tl(i,r.getCurrentDirectory(),r.getCanonicalFileName)),r}function xce({rootNames:e,options:t,configFileParsingDiagnostics:r,projectReferences:i,host:o,createProgram:s}){o=o||jJ(t),s=s||CJ;let l=bz(t,o);return s(e,t,o,l,r,i)}function k1e(e,t,r,i,o,s,l,d){return So(e)?Ace({rootFiles:e,options:t,watchOptions:d,projectReferences:l,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s}):Tce({configFileName:e,optionsToExtend:t,watchOptionsToExtend:l,extraFileExtensions:d,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s})}function w1e(e){let t,r,i,o,s,l,d,p,h=e.extendedConfigCache,m=!1,y=new Map,E,S=!1,A=e.useCaseSensitiveFileNames(),N=e.getCurrentDirectory(),{configFileName:D,optionsToExtend:w={},watchOptionsToExtend:j,extraFileExtensions:K,createProgram:Y}=e,{rootFiles:B,options:ce,watchOptions:z,projectReferences:ee}=e,me,ge,q=!1,J=!1,re=D===void 0?void 0:$3(e,N,A),pe=re||e,xe=az(e,pe),fe=Dn();D&&e.configFileParsingResult&&(Ba(e.configFileParsingResult),fe=Dn()),Qn(f.Starting_compilation_in_watch_mode),D&&!e.configFileParsingResult&&(fe=Oy(w),R.assert(!B),da(),fe=Dn()),R.assert(ce),R.assert(B);let{watchFile:ne,watchDirectory:he,writeLog:Ce}=BJ(e,ce),Ge=Cd(A);Ce(`Current directory: ${N} CaseSensitiveFileNames: ${A}`);let ve;D&&(ve=ne(D,In,2e3,z,Lc.ConfigFile));let Ie=GJ(e,()=>ce,pe);yz(Ie);let De=Ie.getSourceFile;Ie.getSourceFile=(He,...pt)=>hi(He,Kn(He),...pt),Ie.getSourceFileByPath=hi,Ie.getNewLine=()=>fe,Ie.fileExists=qt,Ie.onReleaseOldSourceFile=Eo,Ie.onReleaseParsedCommandLine=Be,Ie.toPath=Kn,Ie.getCompilationSettings=()=>ce,Ie.useSourceOfProjectReferenceRedirect=ea(e,e.useSourceOfProjectReferenceRedirect),Ie.watchDirectoryOfFailedLookupLocation=(He,pt,Ft)=>he(He,pt,Ft,z,Lc.FailedLookupLocations),Ie.watchAffectingFileLocation=(He,pt)=>ne(He,pt,2e3,z,Lc.AffectingFileLocation),Ie.watchTypeRootsDirectory=(He,pt,Ft)=>he(He,pt,Ft,z,Lc.TypeRoots),Ie.getCachedDirectoryStructureHost=()=>re,Ie.scheduleInvalidateResolutionsOfFailedLookupLocations=on,Ie.onInvalidatedResolution=Ot,Ie.onChangedAutomaticTypeDirectiveNames=Ot,Ie.fileIsOpen=jm,Ie.getCurrentProgram=Je,Ie.writeLog=Ce,Ie.getParsedCommandLine=vn;let Le=PJ(Ie,D?oi(_o(D,N)):N,!1);Ie.resolveModuleNameLiterals=ea(e,e.resolveModuleNameLiterals),Ie.resolveModuleNames=ea(e,e.resolveModuleNames),!Ie.resolveModuleNameLiterals&&!Ie.resolveModuleNames&&(Ie.resolveModuleNameLiterals=Le.resolveModuleNameLiterals.bind(Le)),Ie.resolveTypeReferenceDirectiveReferences=ea(e,e.resolveTypeReferenceDirectiveReferences),Ie.resolveTypeReferenceDirectives=ea(e,e.resolveTypeReferenceDirectives),!Ie.resolveTypeReferenceDirectiveReferences&&!Ie.resolveTypeReferenceDirectives&&(Ie.resolveTypeReferenceDirectiveReferences=Le.resolveTypeReferenceDirectiveReferences.bind(Le)),Ie.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):Le.resolveLibrary.bind(Le),Ie.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?ea(e,e.getModuleResolutionCache):()=>Le.getModuleResolutionCache();let be=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?ea(e,e.hasInvalidatedResolutions)||Ty:jm,ze=e.resolveLibrary?ea(e,e.hasInvalidatedLibResolutions)||Ty:jm;return t=bz(ce,Ie),ft(),st(),D&&et(Kn(D),ce,z,Lc.ExtendedConfigFile),D?{getCurrentProgram:_t,getProgram:yi,close:tt,getResolutionCache:Wt}:{getCurrentProgram:_t,getProgram:yi,updateRootFileNames:en,close:tt,getResolutionCache:Wt};function tt(){Er(),Le.clear(),$u(y,He=>{He&&He.fileWatcher&&(He.fileWatcher.close(),He.fileWatcher=void 0)}),ve&&(ve.close(),ve=void 0),h?.clear(),h=void 0,p&&($u(p,Rf),p=void 0),o&&($u(o,Rf),o=void 0),i&&($u(i,Km),i=void 0),d&&($u(d,He=>{var pt;(pt=He.watcher)==null||pt.close(),He.watcher=void 0,He.watchedDirectories&&$u(He.watchedDirectories,Rf),He.watchedDirectories=void 0}),d=void 0)}function Wt(){return Le}function _t(){return t}function Je(){return t&&t.getProgramOrUndefined()}function ft(){Ce("Synchronizing program"),R.assert(ce),R.assert(B),Er();let He=_t();S&&(fe=Dn(),He&&yF(He.getCompilerOptions(),ce)&&Le.onChangesAffectModuleResolution());let{hasInvalidatedResolutions:pt,hasInvalidatedLibResolutions:Ft}=Le.createHasInvalidatedResolutions(be,ze),{originalReadFile:hn,originalFileExists:dn,originalDirectoryExists:un,originalCreateDirectory:U,originalWriteFile:Me,readFileWithCache:Pt}=Pw(Ie,Kn);return mJ(Je(),B,ce,k=>Li(k,Pt),k=>Ie.fileExists(k),pt,Ft,Ur,vn,ee)?J&&(m&&Qn(f.File_change_detected_Starting_incremental_compilation),t=Y(void 0,void 0,Ie,t,ge,ee),J=!1):(m&&Qn(f.File_change_detected_Starting_incremental_compilation),Zt(pt,Ft)),m=!1,e.afterProgramCreate&&He!==t&&e.afterProgramCreate(t),Ie.readFile=hn,Ie.fileExists=dn,Ie.directoryExists=un,Ie.createDirectory=U,Ie.writeFile=Me,t}function Zt(He,pt){Ce("CreatingProgramWith::"),Ce(` roots: ${JSON.stringify(B)}`),Ce(` options: ${JSON.stringify(ce)}`),ee&&Ce(` projectReferences: ${JSON.stringify(ee)}`);let Ft=S||!Je();S=!1,J=!1,Le.startCachingPerDirectoryResolution(),Ie.hasInvalidatedResolutions=He,Ie.hasInvalidatedLibResolutions=pt,Ie.hasChangedAutomaticTypeDirectiveNames=Ur;let hn=Je();if(t=Y(B,ce,Ie,t,ge,ee),Le.finishCachingPerDirectoryResolution(t.getProgram(),hn),QK(t.getProgram(),i||(i=new Map),se),Ft&&Le.updateTypeRootsWatch(),E){for(let dn of E)i.has(dn)||y.delete(dn);E=void 0}}function en(He){R.assert(!D,"Cannot update root file names with config file watch mode"),B=He,Ot()}function Dn(){return Oy(ce||w)}function Kn(He){return tl(He,N,Ge)}function pn(He){return typeof He=="boolean"}function Yt(He){return typeof He.version=="boolean"}function qt(He){let pt=Kn(He);return pn(y.get(pt))?!1:pe.fileExists(He)}function hi(He,pt,Ft,hn,dn){let un=y.get(pt);if(pn(un))return;let U=typeof Ft=="object"?Ft.impliedNodeFormat:void 0;if(un===void 0||dn||Yt(un)||un.sourceFile.impliedNodeFormat!==U){let Me=De(He,Ft,hn);if(un)Me?(un.sourceFile=Me,un.version=Me.version,un.fileWatcher||(un.fileWatcher=ct(pt,He,lt,250,z,Lc.SourceFile))):(un.fileWatcher&&un.fileWatcher.close(),y.set(pt,!1));else if(Me){let Pt=ct(pt,He,lt,250,z,Lc.SourceFile);y.set(pt,{sourceFile:Me,version:Me.version,fileWatcher:Pt})}else y.set(pt,!1);return Me}return un.sourceFile}function uo(He){let pt=y.get(He);pt!==void 0&&(pn(pt)?y.set(He,{version:!1}):pt.version=!1)}function Li(He,pt){let Ft=y.get(He);if(!Ft)return;if(Ft.version)return Ft.version;let hn=pt(He);return hn!==void 0?gz(Ie,hn):void 0}function Eo(He,pt,Ft){let hn=y.get(He.resolvedPath);hn!==void 0&&(pn(hn)?(E||(E=[])).push(He.path):hn.sourceFile===He&&(hn.fileWatcher&&hn.fileWatcher.close(),y.delete(He.resolvedPath),Ft||Le.removeResolutionsOfFile(He.path)))}function Qn(He){e.onWatchStatusChange&&e.onWatchStatusChange(jl(He),fe,ce||w)}function Ur(){return Le.hasChangedAutomaticTypeDirectiveNames()}function Er(){return l?(e.clearTimeout(l),l=void 0,!0):!1}function on(){if(!e.setTimeout||!e.clearTimeout)return Le.invalidateResolutionsOfFailedLookupLocations();let He=Er();Ce(`Scheduling invalidateFailedLookup${He?", Cancelled earlier one":""}`),l=e.setTimeout(Ye,250,"timerToInvalidateFailedLookupResolutions")}function Ye(){l=void 0,Le.invalidateResolutionsOfFailedLookupLocations()&&Ot()}function Ot(){!e.setTimeout||!e.clearTimeout||(s&&e.clearTimeout(s),Ce("Scheduling update"),s=e.setTimeout(si,250,"timerToUpdateProgram"))}function In(){R.assert(!!D),r=2,Ot()}function si(){s=void 0,m=!0,yi()}function yi(){var He,pt,Ft,hn;switch(r){case 1:(He=ru)==null||He.logStartUpdateProgram("PartialConfigReload"),$i();break;case 2:(pt=ru)==null||pt.logStartUpdateProgram("FullConfigReload"),Ao();break;default:(Ft=ru)==null||Ft.logStartUpdateProgram("SynchronizeProgram"),ft();break}return(hn=ru)==null||hn.logStopUpdateProgram("Done"),_t()}function $i(){Ce("Reloading new file names and options"),R.assert(ce),R.assert(D),r=0,B=AP(ce.configFile.configFileSpecs,_o(oi(D),N),ce,xe,K),s3(B,_o(D,N),ce.configFile.configFileSpecs,ge,q)&&(J=!0),ft()}function Ao(){R.assert(D),Ce(`Reloading config file: ${D}`),r=0,re&&re.clearCache(),da(),S=!0,ft(),st(),et(Kn(D),ce,z,Lc.ExtendedConfigFile)}function da(){R.assert(D),Ba(Zk(D,w,xe,h||(h=new Map),j,K))}function Ba(He){B=He.fileNames,ce=He.options,z=He.watchOptions,ee=He.projectReferences,me=He.wildcardDirectories,ge=KT(He).slice(),q=TP(He.raw),J=!0}function vn(He){let pt=Kn(He),Ft=d?.get(pt);if(Ft){if(!Ft.updateLevel)return Ft.parsedCommandLine;if(Ft.parsedCommandLine&&Ft.updateLevel===1&&!e.getParsedCommandLine){Ce("Reloading new file names and options"),R.assert(ce);let dn=AP(Ft.parsedCommandLine.options.configFile.configFileSpecs,_o(oi(He),N),ce,xe);return Ft.parsedCommandLine={...Ft.parsedCommandLine,fileNames:dn},Ft.updateLevel=void 0,Ft.parsedCommandLine}}Ce(`Loading config file: ${He}`);let hn=e.getParsedCommandLine?e.getParsedCommandLine(He):kn(He);return Ft?(Ft.parsedCommandLine=hn,Ft.updateLevel=void 0):(d||(d=new Map)).set(pt,Ft={parsedCommandLine:hn}),Tt(He,pt,Ft),hn}function kn(He){let pt=xe.onUnRecoverableConfigFileDiagnostic;xe.onUnRecoverableConfigFileDiagnostic=qa;let Ft=Zk(He,void 0,xe,h||(h=new Map),j);return xe.onUnRecoverableConfigFileDiagnostic=pt,Ft}function Be(He){var pt;let Ft=Kn(He),hn=d?.get(Ft);hn&&(d.delete(Ft),hn.watchedDirectories&&$u(hn.watchedDirectories,Rf),(pt=hn.watcher)==null||pt.close(),$K(Ft,p))}function ct(He,pt,Ft,hn,dn,un){return ne(pt,(U,Me)=>Ft(U,Me,He),hn,dn,un)}function lt(He,pt,Ft){Dt(He,Ft,pt),pt===2&&y.has(Ft)&&Le.invalidateResolutionOfFile(Ft),uo(Ft),Ot()}function Dt(He,pt,Ft){re&&re.addOrDeleteFile(He,pt,Ft)}function se(He,pt){return d?.has(He)?rD:ct(He,pt,ke,500,z,Lc.MissingFile)}function ke(He,pt,Ft){Dt(He,Ft,pt),pt===0&&i.has(Ft)&&(i.get(Ft).close(),i.delete(Ft),uo(Ft),Ot())}function st(){Dw(o||(o=new Map),me,G)}function G(He,pt){return he(He,Ft=>{R.assert(D),R.assert(ce);let hn=Kn(Ft);re&&re.addOrDeleteFileOrDirectory(Ft,hn),uo(hn),!Cw({watchedDirPath:Kn(He),fileOrDirectory:Ft,fileOrDirectoryPath:hn,configFileName:D,extraFileExtensions:K,options:ce,program:_t()||B,currentDirectory:N,useCaseSensitiveFileNames:A,writeLog:Ce,toPath:Kn})&&r!==2&&(r=1,Ot())},pt,z,Lc.WildcardDirectory)}function et(He,pt,Ft,hn){Q3(He,pt,p||(p=new Map),(dn,un)=>ne(dn,(U,Me)=>{var Pt;Dt(dn,un,Me),h&&Z3(h,un,Kn);let k=(Pt=p.get(un))==null?void 0:Pt.projects;k?.size&&k.forEach(ie=>{if(D&&Kn(D)===ie)r=2;else{let H=d?.get(ie);H&&(H.updateLevel=2),Le.removeResolutionsFromProjectReferenceRedirects(ie)}Ot()})},2e3,Ft,hn),Kn)}function Tt(He,pt,Ft){var hn,dn,un,U;Ft.watcher||(Ft.watcher=ne(He,(Me,Pt)=>{Dt(He,pt,Pt);let k=d?.get(pt);k&&(k.updateLevel=2),Le.removeResolutionsFromProjectReferenceRedirects(pt),Ot()},2e3,((hn=Ft.parsedCommandLine)==null?void 0:hn.watchOptions)||z,Lc.ConfigFileOfReferencedProject)),Dw(Ft.watchedDirectories||(Ft.watchedDirectories=new Map),(dn=Ft.parsedCommandLine)==null?void 0:dn.wildcardDirectories,(Me,Pt)=>{var k;return he(Me,ie=>{let H=Kn(ie);re&&re.addOrDeleteFileOrDirectory(ie,H),uo(H);let ue=d?.get(pt);ue?.parsedCommandLine&&(Cw({watchedDirPath:Kn(Me),fileOrDirectory:ie,fileOrDirectoryPath:H,configFileName:He,options:ue.parsedCommandLine.options,program:ue.parsedCommandLine.fileNames,currentDirectory:N,useCaseSensitiveFileNames:A,writeLog:Ce,toPath:Kn})||ue.updateLevel!==2&&(ue.updateLevel=1,Ot()))},Pt,((k=Ft.parsedCommandLine)==null?void 0:k.watchOptions)||z,Lc.WildcardDirectoryOfReferencedProject)}),et(pt,(un=Ft.parsedCommandLine)==null?void 0:un.options,((U=Ft.parsedCommandLine)==null?void 0:U.watchOptions)||z,Lc.ExtendedConfigOfReferencedProject)}}var lje=bt({"src/compiler/watchPublic.ts"(){"use strict";Zo()}});function UJ(e){return Sl(e,".json")?e:$r(e,"tsconfig.json")}var HJ,cje=bt({"src/compiler/tsbuild.ts"(){"use strict";Zo(),HJ=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",e[e.OutputMissing=4]="OutputMissing",e[e.ErrorReadingFile=5]="ErrorReadingFile",e[e.OutOfDateWithSelf=6]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=7]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfo=8]="OutOfDateBuildInfo",e[e.OutOfDateOptions=9]="OutOfDateOptions",e[e.OutOfDateRoots=10]="OutOfDateRoots",e[e.UpstreamOutOfDate=11]="UpstreamOutOfDate",e[e.UpstreamBlocked=12]="UpstreamBlocked",e[e.ComputingUpstream=13]="ComputingUpstream",e[e.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",e[e.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",e[e.ContainerOnly=16]="ContainerOnly",e[e.ForceBuild=17]="ForceBuild",e))(HJ||{})}});function dje(e,t,r){let i=e.get(t),o;return i||(o=r(),e.set(t,o)),i||o}function Rce(e,t){return dje(e,t,()=>new Map)}function Fw(e){return e.now?e.now():new Date}function h1(e){return!!e&&!!e.buildOrder}function Ez(e){return h1(e)?e.buildOrder:e}function Dce(e,t){return r=>{let i=t?`[${oS(Ww(e),"\x1B[90m")}] `:`${Ww(e)} - `;i+=`${k_(r.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(i)}}function O1e(e,t,r,i){let o=VJ(e,t);return o.getModifiedTime=e.getModifiedTime?s=>e.getModifiedTime(s):qb,o.setModifiedTime=e.setModifiedTime?(s,l)=>e.setModifiedTime(s,l):qa,o.deleteFile=e.deleteFile?s=>e.deleteFile(s):qa,o.reportDiagnostic=r||Ow(e),o.reportSolutionBuilderStatus=i||Dce(e),o.now=ea(e,e.now),o}function W1e(e=md,t,r,i,o){let s=O1e(e,t,r,i);return s.reportErrorSummary=o,s}function F1e(e=md,t,r,i,o){let s=O1e(e,t,r,i),l=zJ(e,o);return GG(s,l),s}function uje(e){let t={};return aw.forEach(r=>{Ts(e,r.name)&&(t[r.name]=e[r.name])}),t}function z1e(e,t,r){return cxe(!1,e,t,r)}function B1e(e,t,r,i){return cxe(!0,e,t,r,i)}function pje(e,t,r,i,o){let s=t,l=t,d=uje(i),p=GJ(s,()=>N.projectCompilerOptions);yz(p),p.getParsedCommandLine=D=>g1(N,D,w_(N,D)),p.resolveModuleNameLiterals=ea(s,s.resolveModuleNameLiterals),p.resolveTypeReferenceDirectiveReferences=ea(s,s.resolveTypeReferenceDirectiveReferences),p.resolveLibrary=ea(s,s.resolveLibrary),p.resolveModuleNames=ea(s,s.resolveModuleNames),p.resolveTypeReferenceDirectives=ea(s,s.resolveTypeReferenceDirectives),p.getModuleResolutionCache=ea(s,s.getModuleResolutionCache);let h,m;!p.resolveModuleNameLiterals&&!p.resolveModuleNames&&(h=UR(p.getCurrentDirectory(),p.getCanonicalFileName),p.resolveModuleNameLiterals=(D,w,j,K,Y)=>Lw(D,w,j,K,Y,s,h,dJ),p.getModuleResolutionCache=()=>h),!p.resolveTypeReferenceDirectiveReferences&&!p.resolveTypeReferenceDirectives&&(m=b3(p.getCurrentDirectory(),p.getCanonicalFileName,void 0,h?.getPackageJsonInfoCache(),h?.optionsToRedirectsKey),p.resolveTypeReferenceDirectiveReferences=(D,w,j,K,Y)=>Lw(D,w,j,K,Y,s,m,tz));let y;p.resolveLibrary||(y=UR(p.getCurrentDirectory(),p.getCanonicalFileName,void 0,h?.getPackageJsonInfoCache()),p.resolveLibrary=(D,w,j)=>E3(D,w,j,s,y)),p.getBuildInfo=(D,w)=>exe(N,D,w_(N,w),void 0);let{watchFile:E,watchDirectory:S,writeLog:A}=BJ(l,i),N={host:s,hostWithWatch:l,parseConfigFileHost:az(s),write:ea(s,s.trace),options:i,baseCompilerOptions:d,rootNames:r,baseWatchOptions:o,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:p,moduleResolutionCache:h,typeReferenceDirectiveResolutionCache:m,libraryResolutionCache:y,buildOrder:void 0,readFileWithCache:D=>s.readFile(D),projectCompilerOptions:d,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,watch:e,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:E,watchDirectory:S,writeLog:A};return N}function Df(e,t){return tl(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function w_(e,t){let{resolvedConfigFilePaths:r}=e,i=r.get(t);if(i!==void 0)return i;let o=Df(e,t);return r.set(t,o),o}function G1e(e){return!!e.options}function fje(e,t){let r=e.configFileCache.get(t);return r&&G1e(r)?r:void 0}function g1(e,t,r){let{configFileCache:i}=e,o=i.get(r);if(o)return G1e(o)?o:void 0;el("SolutionBuilder::beforeConfigFileParsing");let s,{parseConfigFileHost:l,baseCompilerOptions:d,baseWatchOptions:p,extendedConfigCache:h,host:m}=e,y;return m.getParsedCommandLine?(y=m.getParsedCommandLine(t),y||(s=jl(f.File_0_not_found,t))):(l.onUnRecoverableConfigFileDiagnostic=E=>s=E,y=Zk(t,d,l,h,p),l.onUnRecoverableConfigFileDiagnostic=qa),i.set(r,y||s),el("SolutionBuilder::afterConfigFileParsing"),Yp("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),y}function UP(e,t){return UJ(Iv(e.compilerHost.getCurrentDirectory(),t))}function V1e(e,t){let r=new Map,i=new Map,o=[],s,l;for(let p of t)d(p);return l?{buildOrder:s||Xe,circularDiagnostics:l}:s||Xe;function d(p,h){let m=w_(e,p);if(i.has(m))return;if(r.has(m)){h||(l||(l=[])).push(jl(f.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,o.join(`\r +`)));return}r.set(m,!0),o.push(p);let y=g1(e,p,m);if(y&&y.projectReferences)for(let E of y.projectReferences){let S=UP(e,E.path);d(S,h||E.circular)}o.pop(),i.set(m,!0),(s||(s=[])).push(p)}}function Sz(e){return e.buildOrder||mje(e)}function mje(e){let t=V1e(e,e.rootNames.map(o=>UP(e,o)));e.resolvedConfigFilePaths.clear();let r=new Set(Ez(t).map(o=>w_(e,o))),i={onDeleteValue:qa};return tg(e.configFileCache,r,i),tg(e.projectStatus,r,i),tg(e.builderPrograms,r,i),tg(e.diagnostics,r,i),tg(e.projectPendingBuild,r,i),tg(e.projectErrorsReported,r,i),tg(e.buildInfoCache,r,i),tg(e.outputTimeStamps,r,i),tg(e.lastCachedPackageJsonLookups,r,i),e.watch&&(tg(e.allWatchedConfigFiles,r,{onDeleteValue:Km}),e.allWatchedExtendedConfigFiles.forEach(o=>{o.projects.forEach(s=>{r.has(s)||o.projects.delete(s)}),o.close()}),tg(e.allWatchedWildcardDirectories,r,{onDeleteValue:o=>o.forEach(Rf)}),tg(e.allWatchedInputFiles,r,{onDeleteValue:o=>o.forEach(Km)}),tg(e.allWatchedPackageJsonFiles,r,{onDeleteValue:o=>o.forEach(Km)})),e.buildOrder=t}function j1e(e,t,r){let i=t&&UP(e,t),o=Sz(e);if(h1(o))return o;if(i){let l=w_(e,i);if(Kl(o,p=>w_(e,p)===l)===-1)return}let s=i?V1e(e,[i]):o;return R.assert(!h1(s)),R.assert(!r||i!==void 0),R.assert(!r||s[s.length-1]===i),r?s.slice(0,s.length-1):s}function U1e(e){e.cache&&Cce(e);let{compilerHost:t,host:r}=e,i=e.readFileWithCache,o=t.getSourceFile,{originalReadFile:s,originalFileExists:l,originalDirectoryExists:d,originalCreateDirectory:p,originalWriteFile:h,getSourceFileWithCache:m,readFileWithCache:y}=Pw(r,E=>Df(e,E),(...E)=>o.call(t,...E));e.readFileWithCache=y,t.getSourceFile=m,e.cache={originalReadFile:s,originalFileExists:l,originalDirectoryExists:d,originalCreateDirectory:p,originalWriteFile:h,originalReadFileWithCache:i,originalGetSourceFile:o}}function Cce(e){if(!e.cache)return;let{cache:t,host:r,compilerHost:i,extendedConfigCache:o,moduleResolutionCache:s,typeReferenceDirectiveResolutionCache:l,libraryResolutionCache:d}=e;r.readFile=t.originalReadFile,r.fileExists=t.originalFileExists,r.directoryExists=t.originalDirectoryExists,r.createDirectory=t.originalCreateDirectory,r.writeFile=t.originalWriteFile,i.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,o.clear(),s?.clear(),l?.clear(),d?.clear(),e.cache=void 0}function H1e(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function K1e({projectPendingBuild:e},t,r){let i=e.get(t);(i===void 0||ie.projectPendingBuild.set(w_(e,i),0)),t&&t.throwIfCancellationRequested()}function q1e(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function _je(e,t,r,i,o){let s=!0;return{kind:2,project:t,projectPath:r,buildOrder:o,getCompilerOptions:()=>i.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{nxe(e,i,r),s=!1},done:()=>(s&&nxe(e,i,r),el("SolutionBuilder::Timestamps only updates"),q1e(e,r))}}function X1e(e,t,r,i,o,s,l){let d=e===0?0:4,p,h,m;return e===0?{kind:e,project:r,projectPath:i,buildOrder:l,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>E(Qs),getProgram:()=>E(z=>z.getProgramOrUndefined()),getSourceFile:z=>E(ee=>ee.getSourceFile(z)),getSourceFiles:()=>S(z=>z.getSourceFiles()),getOptionsDiagnostics:z=>S(ee=>ee.getOptionsDiagnostics(z)),getGlobalDiagnostics:z=>S(ee=>ee.getGlobalDiagnostics(z)),getConfigFileParsingDiagnostics:()=>S(z=>z.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(z,ee)=>S(me=>me.getSyntacticDiagnostics(z,ee)),getAllDependencies:z=>S(ee=>ee.getAllDependencies(z)),getSemanticDiagnostics:(z,ee)=>S(me=>me.getSemanticDiagnostics(z,ee)),getSemanticDiagnosticsOfNextAffectedFile:(z,ee)=>E(me=>me.getSemanticDiagnosticsOfNextAffectedFile&&me.getSemanticDiagnosticsOfNextAffectedFile(z,ee)),emit:(z,ee,me,ge,q)=>{if(z||ge)return E(J=>{var re,pe;return J.emit(z,ee,me,ge,q||((pe=(re=t.host).getCustomTransformers)==null?void 0:pe.call(re,r)))});if(ce(2,me),d===5)return K(ee,me);if(d===3)return j(ee,me,q)},done:y}:{kind:e,project:r,projectPath:i,buildOrder:l,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),emit:(z,ee)=>d!==4?m:B(z,ee),done:y};function y(z,ee,me){return ce(8,z,ee,me),el(e===0?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),q1e(t,i)}function E(z){return ce(0),p&&z(p)}function S(z){return E(z)||Xe}function A(){var z,ee,me;if(R.assert(p===void 0),t.options.dry){Iu(t,f.A_non_dry_build_would_build_project_0,r),h=1,d=7;return}if(t.options.verbose&&Iu(t,f.Building_project_0,r),s.fileNames.length===0){HP(t,i,KT(s)),h=0,d=7;return}let{host:ge,compilerHost:q}=t;if(t.projectCompilerOptions=s.options,(z=t.moduleResolutionCache)==null||z.update(s.options),(ee=t.typeReferenceDirectiveResolutionCache)==null||ee.update(s.options),p=ge.createProgram(s.fileNames,s.options,q,gje(t,i,s),KT(s),s.projectReferences),t.watch){let J=(me=t.moduleResolutionCache)==null?void 0:me.getPackageJsonInfoCache().getInternalMap();t.lastCachedPackageJsonLookups.set(i,J&&new Set(Oo(J.values(),re=>t.host.realpath&&(v3(re)||re.directoryExists)?t.host.realpath($r(re.packageDirectory,"package.json")):$r(re.packageDirectory,"package.json")))),t.builderPrograms.set(i,p)}d++}function N(z,ee,me){z.length?{buildResult:h,step:d}=Mce(t,i,p,s,z,ee,me):d++}function D(z){R.assertIsDefined(p),N([...p.getConfigFileParsingDiagnostics(),...p.getOptionsDiagnostics(z),...p.getGlobalDiagnostics(z),...p.getSyntacticDiagnostics(void 0,z)],8,"Syntactic")}function w(z){N(R.checkDefined(p).getSemanticDiagnostics(void 0,z),16,"Semantic")}function j(z,ee,me){var ge,q,J;R.assertIsDefined(p),R.assert(d===3);let re=p.saveEmitState(),pe,xe=ze=>(pe||(pe=[])).push(ze),fe=[],{emitResult:ne}=hz(p,xe,void 0,void 0,(ze,tt,Wt,_t,Je,ft)=>fe.push({name:ze,text:tt,writeByteOrderMark:Wt,data:ft}),ee,!1,me||((q=(ge=t.host).getCustomTransformers)==null?void 0:q.call(ge,r)));if(pe)return p.restoreEmitState(re),{buildResult:h,step:d}=Mce(t,i,p,s,pe,32,"Declaration file"),{emitSkipped:!0,diagnostics:ne.diagnostics};let{host:he,compilerHost:Ce}=t,Ge=(J=p.hasChangedEmitSignature)!=null&&J.call(p)?0:2,ve=lR(),Ie=new Map,De=p.getCompilerOptions(),Le=tP(De),Et,be;return fe.forEach(({name:ze,text:tt,writeByteOrderMark:Wt,data:_t})=>{let Je=Df(t,ze);Ie.set(Df(t,ze),ze),_t?.buildInfo&&kce(t,_t.buildInfo,i,De,Ge);let ft=_t?.differsOnlyInMap?fI(t.host,ze):void 0;RN(z?{writeFile:z}:Ce,ve,ze,tt,Wt),_t?.differsOnlyInMap?t.host.setModifiedTime(ze,ft):!Le&&t.watch&&(Et||(Et=Lce(t,i))).set(Je,be||(be=Fw(t.host)))}),Y(ve,Ie,fe.length?fe[0].name:qK(s,!he.useCaseSensitiveFileNames()),Ge),ne}function K(z,ee){R.assertIsDefined(p),R.assert(d===5);let me=p.emitBuildInfo((ge,q,J,re,pe,xe)=>{xe?.buildInfo&&kce(t,xe.buildInfo,i,p.getCompilerOptions(),2),z?z(ge,q,J,re,pe,xe):t.compilerHost.writeFile(ge,q,J,re,pe,xe)},ee);return me.diagnostics.length&&(Az(t,me.diagnostics),t.diagnostics.set(i,[...t.diagnostics.get(i),...me.diagnostics]),h=64&h),me.emittedFiles&&t.write&&me.emittedFiles.forEach(ge=>Q1e(t,s,ge)),Pce(t,p,s),d=7,me}function Y(z,ee,me,ge){let q=z.getDiagnostics();return q.length?({buildResult:h,step:d}=Mce(t,i,p,s,q,64,"Emit"),q):(t.write&&ee.forEach(J=>Q1e(t,s,J)),txe(t,s,i,f.Updating_unchanged_output_timestamps_of_project_0,ee),t.diagnostics.delete(i),t.projectStatus.set(i,{type:1,oldestOutputFileName:me}),Pce(t,p,s),d=7,h=ge,q)}function B(z,ee){var me,ge,q,J;if(R.assert(e===1),t.options.dry){Iu(t,f.A_non_dry_build_would_update_output_of_project_0,r),h=1,d=7;return}t.options.verbose&&Iu(t,f.Updating_output_of_project_0,r);let{compilerHost:re}=t;t.projectCompilerOptions=s.options,(ge=(me=t.host).beforeEmitBundle)==null||ge.call(me,s);let pe=Vle(s,re,Ge=>{let ve=UP(t,Ge.path);return g1(t,ve,w_(t,ve))},ee||((J=(q=t.host).getCustomTransformers)==null?void 0:J.call(q,r)));if(Co(pe))return Iu(t,f.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,r,ad(t,pe)),d=6,m=X1e(0,t,r,i,o,s,l);R.assert(!!pe.length);let xe=lR(),fe=new Map,ne=2,he=t.buildInfoCache.get(i).buildInfo||void 0;return pe.forEach(({name:Ge,text:ve,writeByteOrderMark:Ie,data:De})=>{var Le,Et;fe.set(Df(t,Ge),Ge),De?.buildInfo&&(((Le=De.buildInfo.program)==null?void 0:Le.outSignature)!==((Et=he?.program)==null?void 0:Et.outSignature)&&(ne&=-3),kce(t,De.buildInfo,i,s.options,ne)),RN(z?{writeFile:z}:re,xe,Ge,ve,Ie)}),{emitSkipped:!1,diagnostics:Y(xe,fe,pe[0].name,ne)}}function ce(z,ee,me,ge){for(;d<=z&&d<8;){let q=d;switch(d){case 0:A();break;case 1:D(ee);break;case 2:w(ee);break;case 3:j(me,ee,ge);break;case 5:K(me,ee);break;case 4:B(me,ge);break;case 6:R.checkDefined(m).done(ee,me,ge),d=8;break;case 7:Eje(t,r,i,o,s,l,R.checkDefined(h)),d++;break;case 8:default:}R.assert(d>q)}}}function hje({options:e},t,r){return t.type!==3||e.force?!0:r.fileNames.length===0||!!KT(r).length||!tP(r.options)}function Y1e(e,t,r){if(!e.projectPendingBuild.size||h1(t))return;let{options:i,projectPendingBuild:o}=e;for(let s=0;s{let S=R.checkDefined(e.filesWatched.get(d));R.assert(KJ(S)),S.modifiedTime=E,S.callbacks.forEach(A=>A(m,y,E))},i,o,s,l);e.filesWatched.set(d,{callbacks:[r],watcher:h,modifiedTime:p})}return{close:()=>{let h=R.checkDefined(e.filesWatched.get(d));R.assert(KJ(h)),h.callbacks.length===1?(e.filesWatched.delete(d),Rf(h)):uI(h.callbacks,r)}}}function Lce(e,t){if(!e.watch)return;let r=e.outputTimeStamps.get(t);return r||e.outputTimeStamps.set(t,r=new Map),r}function kce(e,t,r,i,o){let s=jy(i),l=wce(e,s,r),d=Fw(e.host);l?(l.buildInfo=t,l.modifiedTime=d,o&2||(l.latestChangedDtsTime=d)):e.buildInfoCache.set(r,{path:Df(e,s),buildInfo:t,modifiedTime:d,latestChangedDtsTime:o&2?void 0:d})}function wce(e,t,r){let i=Df(e,t),o=e.buildInfoCache.get(r);return o?.path===i?o:void 0}function exe(e,t,r,i){let o=Df(e,t),s=e.buildInfoCache.get(r);if(s!==void 0&&s.path===o)return s.buildInfo||void 0;let l=e.readFileWithCache(t),d=l?X3(t,l):void 0;return e.buildInfoCache.set(r,{path:o,buildInfo:d||!1,modifiedTime:i||Mp}),d}function Oce(e,t,r,i){let o=Z1e(e,t);if(rD&&(N=q,D=J),S&&j.add(Df(e,q))}if(S){A||(A=IJ(S,h,p));for(let q of A.roots)if(!j.has(q))return{type:10,buildInfoFile:h,inputFile:q}}if(!h){let q=J3(t,!p.useCaseSensitiveFileNames()),J=Lce(e,r);for(let re of q){let pe=Df(e,re),xe=J?.get(pe);if(xe||(xe=fI(e.host,re),J?.set(pe,xe)),xe===Mp)return{type:4,missingOutputFileName:re};if(xeOce(e,q,y,m));if(ee)return ee;let me=e.lastCachedPackageJsonLookups.get(r),ge=me&&uh(me,q=>Oce(e,q,y,m));return ge||(B&&Y?{type:3,outOfDateOutputFileName:m,newerProjectName:ce}:{type:Y?2:w?15:1,newestInputFileTime:D,newestInputFileName:N,oldestOutputFileName:m})}function vje(e,t,r){return e.buildInfoCache.get(r).path===t.path}function Wce(e,t,r){if(t===void 0)return{type:0,reason:"File deleted mid-build"};let i=e.projectStatus.get(r);if(i!==void 0)return i;el("SolutionBuilder::beforeUpToDateCheck");let o=yje(e,t,r);return el("SolutionBuilder::afterUpToDateCheck"),Yp("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(r,o),o}function txe(e,t,r,i,o){if(t.options.noEmit)return;let s,l=jy(t.options);if(l){o?.has(Df(e,l))||(e.options.verbose&&Iu(e,i,t.options.configFilePath),e.host.setModifiedTime(l,s=Fw(e.host)),wce(e,l,r).modifiedTime=s),e.outputTimeStamps.delete(r);return}let{host:d}=e,p=J3(t,!d.useCaseSensitiveFileNames()),h=Lce(e,r),m=h?new Set:void 0;if(!o||p.length!==o.size){let y=!!e.options.verbose;for(let E of p){let S=Df(e,E);o?.has(S)||(y&&(y=!1,Iu(e,i,t.options.configFilePath)),d.setModifiedTime(E,s||(s=Fw(e.host))),h&&(h.set(S,s),m.add(S)))}}h?.forEach((y,E)=>{!o?.has(E)&&!m.has(E)&&h.delete(E)})}function bje(e,t,r){if(!t.composite)return;let i=R.checkDefined(e.buildInfoCache.get(r));if(i.latestChangedDtsTime!==void 0)return i.latestChangedDtsTime||void 0;let o=i.buildInfo&&i.buildInfo.program&&i.buildInfo.program.latestChangedDtsFile?e.host.getModifiedTime(_o(i.buildInfo.program.latestChangedDtsFile,oi(i.path))):void 0;return i.latestChangedDtsTime=o||!1,o}function nxe(e,t,r){if(e.options.dry)return Iu(e,f.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);txe(e,t,r,f.Updating_output_timestamps_of_project_0),e.projectStatus.set(r,{type:1,oldestOutputFileName:qK(t,!e.host.useCaseSensitiveFileNames())})}function Eje(e,t,r,i,o,s,l){if(!(l&124)&&o.options.composite)for(let d=i+1;de.diagnostics.has(w_(e,h)))?p?2:1:0}function ixe(e,t,r){el("SolutionBuilder::beforeClean");let i=Tje(e,t,r);return el("SolutionBuilder::afterClean"),Yp("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),i}function Tje(e,t,r){let i=j1e(e,t,r);if(!i)return 3;if(h1(i))return Az(e,i.circularDiagnostics),4;let{options:o,host:s}=e,l=o.dry?[]:void 0;for(let d of i){let p=w_(e,d),h=g1(e,d,p);if(h===void 0){dxe(e,p);continue}let m=J3(h,!s.useCaseSensitiveFileNames());if(!m.length)continue;let y=new Set(h.fileNames.map(E=>Df(e,E)));for(let E of m)y.has(Df(e,E))||s.fileExists(E)&&(l?l.push(E):(s.deleteFile(E),Fce(e,p,0)))}return l&&Iu(e,f.A_non_dry_build_would_delete_the_following_files_Colon_0,l.map(d=>`\r + * ${d}`).join("")),0}function Fce(e,t,r){e.host.getParsedCommandLine&&r===1&&(r=2),r===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,H1e(e,t),K1e(e,t,r),U1e(e)}function Tz(e,t,r){e.reportFileChangeDetected=!0,Fce(e,t,r),oxe(e,250,!0)}function oxe(e,t,r){let{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout(Aje,t,"timerToBuildInvalidatedProject",e,r))}function Aje(e,t,r){el("SolutionBuilder::beforeBuild");let i=Ije(t,r);el("SolutionBuilder::afterBuild"),Yp("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),i&&uxe(t,i)}function Ije(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),Gce(e,f.File_change_detected_Starting_incremental_compilation));let r=0,i=Sz(e),o=Nce(e,i,!1);if(o)for(o.done(),r++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;let s=Y1e(e,i,!1);if(!s)break;if(s.kind!==2&&(t||r===5)){oxe(e,100,!1);return}$1e(e,s,i).done(),s.kind!==2&&r++}return Cce(e),i}function axe(e,t,r,i){!e.watch||e.allWatchedConfigFiles.has(r)||e.allWatchedConfigFiles.set(r,JJ(e,t,()=>Tz(e,r,2),2e3,i?.watchOptions,Lc.ConfigFile,t))}function sxe(e,t,r){Q3(t,r?.options,e.allWatchedExtendedConfigFiles,(i,o)=>JJ(e,i,()=>{var s;return(s=e.allWatchedExtendedConfigFiles.get(o))==null?void 0:s.projects.forEach(l=>Tz(e,l,2))},2e3,r?.watchOptions,Lc.ExtendedConfigFile),i=>Df(e,i))}function lxe(e,t,r,i){e.watch&&Dw(Rce(e.allWatchedWildcardDirectories,r),i.wildcardDirectories,(o,s)=>e.watchDirectory(o,l=>{var d;Cw({watchedDirPath:Df(e,o),fileOrDirectory:l,fileOrDirectoryPath:Df(e,l),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:i.options,program:e.builderPrograms.get(r)||((d=fje(e,r))==null?void 0:d.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:p=>e.writeLog(p),toPath:p=>Df(e,p)})||Tz(e,r,1)},s,i?.watchOptions,Lc.WildcardDirectory,t))}function zce(e,t,r,i){e.watch&&FN(Rce(e.allWatchedInputFiles,r),new Set(i.fileNames),{createNewValue:o=>JJ(e,o,()=>Tz(e,r,0),250,i?.watchOptions,Lc.SourceFile,t),onDeleteValue:Km})}function Bce(e,t,r,i){!e.watch||!e.lastCachedPackageJsonLookups||FN(Rce(e.allWatchedPackageJsonFiles,r),e.lastCachedPackageJsonLookups.get(r),{createNewValue:o=>JJ(e,o,()=>Tz(e,r,0),2e3,i?.watchOptions,Lc.PackageJson,t),onDeleteValue:Km})}function xje(e,t){if(e.watchAllProjectsPending){el("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(let r of Ez(t)){let i=w_(e,r),o=g1(e,r,i);axe(e,r,i,o),sxe(e,i,o),o&&(lxe(e,r,i,o),zce(e,r,i,o),Bce(e,r,i,o))}el("SolutionBuilder::afterWatcherCreation"),Yp("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function Rje(e){$u(e.allWatchedConfigFiles,Km),$u(e.allWatchedExtendedConfigFiles,Rf),$u(e.allWatchedWildcardDirectories,t=>$u(t,Rf)),$u(e.allWatchedInputFiles,t=>$u(t,Km)),$u(e.allWatchedPackageJsonFiles,t=>$u(t,Km))}function cxe(e,t,r,i,o){let s=pje(e,t,r,i,o);return{build:(l,d,p,h)=>rxe(s,l,d,p,h),clean:l=>ixe(s,l),buildReferences:(l,d,p,h)=>rxe(s,l,d,p,h,!0),cleanReferences:l=>ixe(s,l,!0),getNextInvalidatedProject:l=>(J1e(s,l),Nce(s,Sz(s),!1)),getBuildOrder:()=>Sz(s),getUpToDateStatusOfProject:l=>{let d=UP(s,l),p=w_(s,d);return Wce(s,g1(s,d,p),p)},invalidateProject:(l,d)=>Fce(s,l,d||0),close:()=>Rje(s)}}function ad(e,t){return qC(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function Iu(e,t,...r){e.host.reportSolutionBuilderStatus(jl(t,...r))}function Gce(e,t,...r){var i,o;(o=(i=e.hostWithWatch).onWatchStatusChange)==null||o.call(i,jl(t,...r),e.host.getNewLine(),e.baseCompilerOptions)}function Az({host:e},t){t.forEach(r=>e.reportDiagnostic(r))}function HP(e,t,r){Az(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function dxe(e,t){HP(e,t,[e.configFileCache.get(t)])}function uxe(e,t){if(!e.needsSummary)return;e.needsSummary=!1;let r=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e,o=0,s=[];h1(t)?(pxe(e,t.buildOrder),Az(e,t.circularDiagnostics),r&&(o+=mz(t.circularDiagnostics)),r&&(s=[...s,..._z(t.circularDiagnostics)])):(t.forEach(l=>{let d=w_(e,l);e.projectErrorsReported.has(d)||Az(e,i.get(d)||Xe)}),r&&i.forEach(l=>o+=mz(l)),r&&i.forEach(l=>[...s,..._z(l)])),e.watch?Gce(e,MJ(o),o):e.host.reportErrorSummary&&e.host.reportErrorSummary(o,s)}function pxe(e,t){e.options.verbose&&Iu(e,f.Projects_in_this_build_Colon_0,t.map(r=>`\r + * `+ad(e,r)).join(""))}function Dje(e,t,r){switch(r.type){case 6:return Iu(e,f.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,ad(e,t),ad(e,r.outOfDateOutputFileName),ad(e,r.newerInputFileName));case 7:return Iu(e,f.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,ad(e,t),ad(e,r.outOfDateOutputFileName),ad(e,r.newerProjectName));case 4:return Iu(e,f.Project_0_is_out_of_date_because_output_file_1_does_not_exist,ad(e,t),ad(e,r.missingOutputFileName));case 5:return Iu(e,f.Project_0_is_out_of_date_because_there_was_error_reading_file_1,ad(e,t),ad(e,r.fileName));case 8:return Iu(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,ad(e,t),ad(e,r.buildInfoFile));case 9:return Iu(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,ad(e,t),ad(e,r.buildInfoFile));case 10:return Iu(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,ad(e,t),ad(e,r.buildInfoFile),ad(e,r.inputFile));case 1:if(r.newestInputFileTime!==void 0)return Iu(e,f.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,ad(e,t),ad(e,r.newestInputFileName||""),ad(e,r.oldestOutputFileName||""));break;case 3:return Iu(e,f.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,ad(e,t),ad(e,r.newerProjectName));case 2:return Iu(e,f.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,ad(e,t));case 15:return Iu(e,f.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,ad(e,t));case 11:return Iu(e,f.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,ad(e,t),ad(e,r.upstreamProjectName));case 12:return Iu(e,r.upstreamProjectBlocked?f.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:f.Project_0_can_t_be_built_because_its_dependency_1_has_errors,ad(e,t),ad(e,r.upstreamProjectName));case 0:return Iu(e,f.Failed_to_parse_file_0_Colon_1,ad(e,t),r.reason);case 14:return Iu(e,f.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,ad(e,t),r.version,qp);case 17:return Iu(e,f.Project_0_is_being_forcibly_rebuilt,ad(e,t));case 16:case 13:break;default:}}function qJ(e,t,r){e.options.verbose&&Dje(e,t,r)}var fxe,mxe,XJ,Cje=bt({"src/compiler/tsbuildPublic.ts"(){"use strict";Zo(),nT(),fxe=new Date(-864e13),mxe=new Date(864e13),XJ=(e=>(e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",e))(XJ||{})}}),Zo=bt({"src/compiler/_namespaces/ts.ts"(){"use strict";Pze(),Bze(),Gze(),$ze(),e7e(),t7e(),p7e(),wEe(),E7e(),x7e(),R7e(),M7e(),F7e(),OBe(),WBe(),FBe(),zBe(),KBe(),JBe(),qBe(),XBe(),S5e(),T5e(),L5e(),$5e(),TGe(),CGe(),NGe(),UGe(),YGe(),i9e(),u9e(),A9e(),I9e(),k9e(),w9e(),O9e(),j9e(),U9e(),H9e(),K9e(),J9e(),q9e(),X9e(),Y9e(),$9e(),eVe(),tVe(),nVe(),rVe(),iVe(),aVe(),sVe(),lVe(),cVe(),dVe(),uVe(),gVe(),TVe(),LVe(),wVe(),zVe(),BVe(),GVe(),eje(),tje(),ije(),sje(),lje(),cje(),Cje(),Use(),nT()}});function _xe(e){return md.args.includes(e)}function hxe(e){let t=md.args.indexOf(e);return t>=0&&t{e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})($J||($J={})),Vce=` + `}}),Pje=bt({"src/jsTyping/types.ts"(){"use strict"}}),Dz=bt({"src/jsTyping/_namespaces/ts.server.ts"(){"use strict";Nje(),Pje()}});function yxe(e,t){return new fm(_W(t,`ts${g_}`)||_W(t,"latest")).compareTo(e.version)<=0}function vxe(e){return Jce.has(e)?"node":e}function Mje(e,t){let r=ew(t,i=>e.readFile(i));return new Map(Object.entries(r.config))}function Lje(e,t){var r;let i=ew(t,o=>e.readFile(o));if((r=i.config)!=null&&r.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function kje(e,t,r,i,o,s,l,d,p,h){if(!l||!l.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};let m=new Map;r=to(r,Y=>{let B=fa(Y);if(W0(B))return B});let y=[];l.include&&w(l.include,"Explicitly included types");let E=l.exclude||[];if(!h.types){let Y=new Set(r.map(oi));Y.add(i),Y.forEach(B=>{j(B,"bower.json","bower_components",y),j(B,"package.json","node_modules",y)})}if(l.disableFilenameBasedTypeAcquisition||K(r),d){let Y=_0(d.map(vxe),eT,Gd);w(Y,"Inferred typings from unresolved imports")}for(let Y of E)m.delete(Y)&&t&&t(`Typing for ${Y} is in exclude list, will be ignored.`);s.forEach((Y,B)=>{let ce=p.get(B);m.get(B)===!1&&ce!==void 0&&yxe(Y,ce)&&m.set(B,Y.typingLocation)});let S=[],A=[];m.forEach((Y,B)=>{Y?A.push(Y):S.push(B)});let N={cachedTypingPaths:A,newTypingNames:S,filesToWatch:y};return t&&t(`Finished typings discovery:${RE(N)}`),N;function D(Y){m.has(Y)||m.set(Y,!1)}function w(Y,B){t&&t(`${B}: ${JSON.stringify(Y)}`),gn(Y,D)}function j(Y,B,ce,z){let ee=$r(Y,B),me,ge;e.fileExists(ee)&&(z.push(ee),me=ew(ee,pe=>e.readFile(pe)).config,ge=va([me.dependencies,me.devDependencies,me.optionalDependencies,me.peerDependencies],jh),w(ge,`Typing names in '${ee}' dependencies`));let q=$r(Y,ce);if(z.push(q),!e.directoryExists(q))return;let J=[],re=ge?ge.map(pe=>$r(q,pe,B)):e.readDirectory(q,[".json"],void 0,void 0,3).filter(pe=>{if(nc(pe)!==B)return!1;let xe=Wc(fa(pe)),fe=xe[xe.length-3][0]==="@";return fe&&oh(xe[xe.length-4])===ce||!fe&&oh(xe[xe.length-3])===ce});t&&t(`Searching for typing names in ${q}; all files: ${JSON.stringify(re)}`);for(let pe of re){let xe=fa(pe),ne=ew(xe,Ce=>e.readFile(Ce)).config;if(!ne.name)continue;let he=ne.types||ne.typings;if(he){let Ce=_o(he,oi(xe));e.fileExists(Ce)?(t&&t(` Package '${ne.name}' provides its own types.`),m.set(ne.name,Ce)):t&&t(` Package '${ne.name}' provides its own types but they are missing.`)}else J.push(ne.name)}w(J," Found package names")}function K(Y){let B=to(Y,z=>{if(!W0(z))return;let ee=Su(oh(nc(z))),me=UG(ee);return o.get(me)});B.length&&w(B,"Inferred typings from file names"),gt(Y,z=>Sl(z,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),D("react"))}}function wje(e){return jce(e,!0)}function jce(e,t){if(!e)return 1;if(e.length>Xce)return 2;if(e.charCodeAt(0)===46)return 3;if(e.charCodeAt(0)===95)return 4;if(t){let r=/^@([^/]+)\/([^/]+)$/.exec(e);if(r){let i=jce(r[1],!1);if(i!==0)return{name:r[1],isScopeName:!0,result:i};let o=jce(r[2],!1);return o!==0?{name:r[2],isScopeName:!1,result:o}:0}}return encodeURIComponent(e)!==e?5:0}function Oje(e,t){return typeof e=="object"?bxe(t,e.result,e.name,e.isScopeName):bxe(t,e,t,!1)}function bxe(e,t,r,i){let o=i?"Scope":"Package";switch(t){case 1:return`'${e}':: ${o} name '${r}' cannot be empty`;case 2:return`'${e}':: ${o} name '${r}' should be less than ${Xce} characters`;case 3:return`'${e}':: ${o} name '${r}' cannot start with '.'`;case 4:return`'${e}':: ${o} name '${r}' cannot start with '_'`;case 5:return`'${e}':: ${o} name '${r}' contains non URI safe characters`;case 0:return R.fail();default:R.assertNever(t)}}var Uce,Hce,Kce,Jce,qce,Xce,Wje=bt({"src/jsTyping/jsTyping.ts"(){"use strict";Vw(),Dz(),Uce=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","https","http2","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","string_decoder","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],Hce=Uce.map(e=>`node:${e}`),Kce=[...Uce,...Hce],Jce=new Set(Kce),qce=(e=>(e[e.Ok=0]="Ok",e[e.EmptyName=1]="EmptyName",e[e.NameTooLong=2]="NameTooLong",e[e.NameStartsWithDot=3]="NameStartsWithDot",e[e.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",e))(qce||{}),Xce=214}}),O_={};Ra(O_,{NameValidationResult:()=>qce,discoverTypings:()=>kje,isTypingUpToDate:()=>yxe,loadSafeList:()=>Mje,loadTypesMap:()=>Lje,nodeCoreModuleList:()=>Kce,nodeCoreModules:()=>Jce,nonRelativeModuleNameForTypingCache:()=>vxe,prefixedNodeCoreModuleList:()=>Hce,renderPackageNameValidationFailure:()=>Oje,validatePackageName:()=>wje});var Fje=bt({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){"use strict";Wje()}}),Vw=bt({"src/jsTyping/_namespaces/ts.ts"(){"use strict";Zo(),Fje(),Dz()}});function Cz(e){return{indentSize:4,tabSize:4,newLineCharacter:e||` +`,convertTabsToSpaces:!0,indentStyle:2,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:"ignore",trimTrailingWhitespace:!0,indentSwitchCase:!0}}var Nz,QJ,ZJ,eq,Cf,tq,nq,rq,iq,oq,aq,sq,Yce,jw,lq,cq,dq,uq,pq,fq,mq,_q,hq,zje=bt({"src/services/types.ts"(){"use strict";(e=>{class t{constructor(o){this.text=o}getText(o,s){return o===0&&s===this.text.length?this.text:this.text.substring(o,s)}getLength(){return this.text.length}getChangeRange(){}}function r(i){return new t(i)}e.fromString=r})(Nz||(Nz={})),QJ=(e=>(e[e.Dependencies=1]="Dependencies",e[e.DevDependencies=2]="DevDependencies",e[e.PeerDependencies=4]="PeerDependencies",e[e.OptionalDependencies=8]="OptionalDependencies",e[e.All=15]="All",e))(QJ||{}),ZJ=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(ZJ||{}),eq=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(eq||{}),Cf={},tq=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(tq||{}),nq=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(nq||{}),rq=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(rq||{}),iq=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(iq||{}),oq=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(oq||{}),aq=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(aq||{}),sq=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(sq||{}),Yce=Cz(` +`),jw=(e=>(e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral",e[e.link=22]="link",e[e.linkName=23]="linkName",e[e.linkText=24]="linkText",e))(jw||{}),lq=(e=>(e[e.None=0]="None",e[e.MayIncludeAutoImports=1]="MayIncludeAutoImports",e[e.IsImportStatementCompletion=2]="IsImportStatementCompletion",e[e.IsContinuation=4]="IsContinuation",e[e.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",e[e.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",e[e.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",e))(lq||{}),cq=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(cq||{}),dq=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(dq||{}),uq=(e=>(e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",e))(uq||{}),pq=(e=>(e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.BigIntLiteral=7]="BigIntLiteral",e[e.StringLiteral=8]="StringLiteral",e[e.RegExpLiteral=9]="RegExpLiteral",e))(pq||{}),fq=(e=>(e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.variableUsingElement="using",e.variableAwaitUsingElement="await using",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.memberAccessorVariableElement="accessor",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string",e.link="link",e.linkName="link name",e.linkText="link text",e))(fq||{}),mq=(e=>(e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional",e.deprecatedModifier="deprecated",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json",e.dmtsModifier=".d.mts",e.mtsModifier=".mts",e.mjsModifier=".mjs",e.dctsModifier=".d.cts",e.ctsModifier=".cts",e.cjsModifier=".cjs",e))(mq||{}),_q=(e=>(e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.bigintLiteral="bigint",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value",e))(_q||{}),hq=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral",e))(hq||{})}});function Uw(e){switch(e.kind){case 260:return ir(e)&&bV(e)?7:1;case 169:case 208:case 172:case 171:case 303:case 304:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 299:case 291:return 1;case 168:case 264:case 265:case 187:return 2;case 353:return e.name===void 0?3:2;case 306:case 263:return 3;case 267:return Pd(e)||Gg(e)===1?5:4;case 266:case 275:case 276:case 271:case 272:case 277:case 278:return 7;case 312:return 5}return 7}function qT(e){e=Cq(e);let t=e.parent;return e.kind===312?1:Ll(t)||Hd(t)||bh(t)||Qu(t)||yh(t)||Zc(t)&&e===t.name?7:Pz(e)?Bje(e):Lg(e)?Uw(t):Xu(e)&&Fn(e,Um(hP,SI,yE))?7:Uje(e)?2:Gje(e)?4:fl(t)?(R.assert(nm(t.parent)),2):Jv(t)?3:1}function Bje(e){let t=e.kind===166?e:Tu(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&t.parent.kind===271?7:4}function Pz(e){for(;e.parent.kind===166;)e=e.parent;return $x(e.parent)&&e.parent.moduleReference===e}function Gje(e){return Vje(e)||jje(e)}function Vje(e){let t=e,r=!0;if(t.parent.kind===166){for(;t.parent&&t.parent.kind===166;)t=t.parent;r=t.right===e}return t.parent.kind===183&&!r}function jje(e){let t=e,r=!0;if(t.parent.kind===211){for(;t.parent&&t.parent.kind===211;)t=t.parent;r=t.name===e}if(!r&&t.parent.kind===233&&t.parent.parent.kind===298){let i=t.parent.parent.parent;return i.kind===263&&t.parent.parent.token===119||i.kind===264&&t.parent.parent.token===96}return!1}function Uje(e){switch(LN(e)&&(e=e.parent),e.kind){case 110:return!Yh(e);case 197:return!0}switch(e.parent.kind){case 183:return!0;case 205:return!e.parent.isTypeOf;case 233:return Xh(e.parent)}return!1}function gq(e,t=!1,r=!1){return Hw(e,ra,vq,t,r)}function qP(e,t=!1,r=!1){return Hw(e,U0,vq,t,r)}function yq(e,t=!1,r=!1){return Hw(e,v_,vq,t,r)}function $ce(e,t=!1,r=!1){return Hw(e,H0,Hje,t,r)}function Qce(e,t=!1,r=!1){return Hw(e,yd,vq,t,r)}function Zce(e,t=!1,r=!1){return Hw(e,su,Kje,t,r)}function vq(e){return e.expression}function Hje(e){return e.tag}function Kje(e){return e.tagName}function Hw(e,t,r,i,o){let s=i?ede(e):Mz(e);return o&&(s=Yl(s)),!!s&&!!s.parent&&t(s.parent)&&r(s.parent)===s}function Mz(e){return oD(e)?e.parent:e}function ede(e){return oD(e)||Tq(e)?e.parent:e}function Lz(e,t){for(;e;){if(e.kind===256&&e.label.escapedText===t)return e.label;e=e.parent}}function Kw(e,t){return wr(e.expression)?e.expression.name.text===t:!1}function Jw(e){var t;return Fe(e)&&((t=ri(e.parent,rN))==null?void 0:t.label)===e}function bq(e){var t;return Fe(e)&&((t=ri(e.parent,K0))==null?void 0:t.label)===e}function Eq(e){return bq(e)||Jw(e)}function Sq(e){var t;return((t=ri(e.parent,zx))==null?void 0:t.tagName)===e}function tde(e){var t;return((t=ri(e.parent,Tu))==null?void 0:t.right)===e}function oD(e){var t;return((t=ri(e.parent,wr))==null?void 0:t.name)===e}function Tq(e){var t;return((t=ri(e.parent,qs))==null?void 0:t.argumentExpression)===e}function Aq(e){var t;return((t=ri(e.parent,ql))==null?void 0:t.name)===e}function Iq(e){var t;return Fe(e)&&((t=ri(e.parent,Yo))==null?void 0:t.name)===e}function kz(e){switch(e.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return No(e.parent)===e;case 212:return e.parent.argumentExpression===e;case 167:return!0;case 201:return e.parent.parent.kind===199;default:return!1}}function nde(e){return sE(e.parent.parent)&&gN(e.parent.parent)===e}function XT(e){for(qf(e)&&(e=e.parent.parent);;){if(e=e.parent,!e)return;switch(e.kind){case 312:case 174:case 173:case 262:case 218:case 177:case 178:case 263:case 264:case 266:case 267:return e}}}function aS(e){switch(e.kind){case 312:return oc(e)?"module":"script";case 267:return"module";case 263:case 231:return"class";case 264:return"interface";case 265:case 345:case 353:return"type";case 266:return"enum";case 260:return t(e);case 208:return t(A_(e));case 219:case 262:case 218:return"function";case 177:return"getter";case 178:return"setter";case 174:case 173:return"method";case 303:let{initializer:r}=e;return Yo(r)?"method":"property";case 172:case 171:case 304:case 305:return"property";case 181:return"index";case 180:return"construct";case 179:return"call";case 176:case 175:return"constructor";case 168:return"type parameter";case 306:return"enum member";case 169:return Qr(e,31)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:let i=zl(e),{right:o}=e;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:let l=aS(o);return l===""?"const":l;case 3:return Ms(o)?"method":"property";case 4:return"property";case 5:return Ms(o)?"method":"property";case 6:return"local class";default:return""}case 80:return yh(e.parent)?"alias":"";case 277:let s=aS(e.expression);return s===""?"const":s;default:return""}function t(r){return Hx(r)?"const":NF(r)?"let":"var"}}function aD(e){switch(e.kind){case 110:return!0;case 80:return Bj(e)&&e.parent.kind===169;default:return!1}}function rm(e,t){let r=Rg(t),i=t.getLineAndCharacterOfPosition(e).line;return r[i]}function of(e,t){return xq(e.pos,e.end,t)}function rde(e,t){return Xw(e,t.pos)&&Xw(e,t.end)}function qw(e,t){return e.pos<=t&&t<=e.end}function Xw(e,t){return e.pos=r.end}function Yw(e,t,r){return e.pos<=t&&e.end>=r}function XP(e,t,r){return Oz(e.pos,e.end,t,r)}function wz(e,t,r,i){return Oz(e.getStart(t),e.end,r,i)}function Oz(e,t,r,i){let o=Math.max(e,r),s=Math.min(t,i);return oi.kind===t)}function Wz(e){let t=Vr(e.parent.getChildren(),r=>wR(r)&&of(r,e));return R.assert(!t||zo(t.getChildren(),e)),t}function Exe(e){return e.kind===90}function Jje(e){return e.kind===86}function qje(e){return e.kind===100}function Xje(e){if(ou(e))return e.name;if(Sc(e)){let t=e.modifiers&&Vr(e.modifiers,Exe);if(t)return t}if($c(e)){let t=Vr(e.getChildren(),Jje);if(t)return t}}function Yje(e){if(ou(e))return e.name;if(Ec(e)){let t=Vr(e.modifiers,Exe);if(t)return t}if(Ms(e)){let t=Vr(e.getChildren(),qje);if(t)return t}}function $je(e){let t;return Fn(e,r=>(ji(r)&&(t=r),!Tu(r.parent)&&!ji(r.parent)&&!lT(r.parent))),t}function Fz(e,t){if(e.flags&16777216)return;let r=r7(e,t);if(r)return r;let i=$je(e);return i&&t.getTypeAtLocation(i)}function Qje(e,t){if(!t)switch(e.kind){case 263:case 231:return Xje(e);case 262:case 218:return Yje(e);case 176:return e}if(ou(e))return e.name}function Sxe(e,t){if(e.importClause){if(e.importClause.name&&e.importClause.namedBindings)return;if(e.importClause.name)return e.importClause.name;if(e.importClause.namedBindings){if(Fg(e.importClause.namedBindings)){let r=rh(e.importClause.namedBindings.elements);return r?r.name:void 0}else if(Yv(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function Txe(e,t){if(e.exportClause){if(xf(e.exportClause))return rh(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(vh(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function Zje(e){if(e.types.length===1)return e.types[0].expression}function Axe(e,t){let{parent:r}=e;if(Ta(e)&&(t||e.kind!==90)?Am(r)&&zo(r.modifiers,e):e.kind===86?Sc(r)||$c(e):e.kind===100?Ec(r)||Ms(e):e.kind===120?fu(r):e.kind===94?gE(r):e.kind===156?Tm(r):e.kind===145||e.kind===144?ql(r):e.kind===102?Zc(r):e.kind===139?Zp(r):e.kind===153&&hp(r)){let i=Qje(r,t);if(i)return i}if((e.kind===115||e.kind===87||e.kind===121)&&Vc(r)&&r.declarations.length===1){let i=r.declarations[0];if(Fe(i.name))return i.name}if(e.kind===156){if(yh(r)&&r.isTypeOnly){let i=Sxe(r.parent,t);if(i)return i}if(Xl(r)&&r.isTypeOnly){let i=Txe(r,t);if(i)return i}}if(e.kind===130){if(Qu(r)&&r.propertyName||Hd(r)&&r.propertyName||Yv(r)||vh(r))return r.name;if(Xl(r)&&r.exportClause&&vh(r.exportClause))return r.exportClause.name}if(e.kind===102&&Mc(r)){let i=Sxe(r,t);if(i)return i}if(e.kind===95){if(Xl(r)){let i=Txe(r,t);if(i)return i}if(Ll(r))return Yl(r.expression)}if(e.kind===149&&bh(r))return r.expression;if(e.kind===161&&(Mc(r)||Xl(r))&&r.moduleSpecifier)return r.moduleSpecifier;if((e.kind===96||e.kind===119)&&ef(r)&&r.token===e.kind){let i=Zje(r);if(i)return i}if(e.kind===96){if(fl(r)&&r.constraint&&If(r.constraint))return r.constraint.typeName;if(ZI(r)&&If(r.extendsType))return r.extendsType.typeName}if(e.kind===140&&CT(r))return r.typeParameter.name;if(e.kind===103&&fl(r)&&DR(r.parent))return r.name;if(e.kind===143&&PT(r)&&r.operator===143&&If(r.type))return r.type.typeName;if(e.kind===148&&PT(r)&&r.operator===148&&wk(r.type)&&If(r.type.elementType))return r.type.elementType.typeName;if(!t){if((e.kind===105&&U0(r)||e.kind===116&&e1(r)||e.kind===114&&CR(r)||e.kind===135&&qv(r)||e.kind===127&&z4(r)||e.kind===91&&gae(r))&&r.expression)return Yl(r.expression);if((e.kind===103||e.kind===104)&&ur(r)&&r.operatorToken===e)return Yl(r.right);if(e.kind===130&&Wk(r)&&If(r.type))return r.type.typeName;if(e.kind===103&&G4(r)||e.kind===165&&Fk(r))return Yl(r.expression)}return e}function Cq(e){return Axe(e,!1)}function zz(e){return Axe(e,!0)}function Fu(e,t){return sD(e,t,r=>T_(r)||Ou(r.kind)||Ki(r))}function sD(e,t,r){return Ixe(e,t,!1,r,!1)}function so(e,t){return Ixe(e,t,!0,void 0,!1)}function Ixe(e,t,r,i,o){let s=e,l;e:for(;;){let p=s.getChildren(e),h=lI(p,t,(m,y)=>y,(m,y)=>{let E=p[m].getEnd();if(Et?1:d(p[m],S,E)?p[m-1]&&d(p[m-1])?1:0:i&&S===t&&p[m-1]&&p[m-1].getEnd()===t&&d(p[m-1])?1:-1});if(l)return l;if(h>=0&&p[h]){s=p[h];continue e}return s}function d(p,h,m){if(m??(m=p.getEnd()),mt))return!1;if(tr.getStart(e)&&t(s.pos<=e.pos&&s.end>e.end||s.pos===e.end)&&pde(s,r)?i(s):void 0)}}function Tc(e,t,r,i){let o=s(r||t);return R.assert(!(o&&Gz(o))),o;function s(l){if(xxe(l)&&l.kind!==1)return l;let d=l.getChildren(t),p=lI(d,e,(m,y)=>y,(m,y)=>e=d[m-1].end?0:1:-1);if(p>=0&&d[p]){let m=d[p];if(e=e||!pde(m,t)||Gz(m)){let S=sde(d,p,t,l.kind);return S?!i&&_F(S)&&S.getChildren(t).length?s(S):ade(S,t):void 0}else return s(m)}R.assert(r!==void 0||l.kind===312||l.kind===1||_F(l));let h=sde(d,d.length,t,l.kind);return h&&ade(h,t)}}function xxe(e){return gI(e)&&!Gz(e)}function ade(e,t){if(xxe(e))return e;let r=e.getChildren(t);if(r.length===0)return e;let i=sde(r,r.length,t,e.kind);return i&&ade(i,t)}function sde(e,t,r,i){for(let o=t-1;o>=0;o--){let s=e[o];if(Gz(s))o===0&&(i===12||i===285)&&R.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(pde(e[o],r))return e[o]}}function y1(e,t,r=Tc(t,e)){if(r&&DV(r)){let i=r.getStart(e),o=r.getEnd();if(ir.getStart(e)}function cde(e,t){let r=so(e,t);return!!(UI(r)||r.kind===19&&mP(r.parent)&&og(r.parent.parent)||r.kind===30&&su(r.parent)&&og(r.parent.parent))}function Vz(e,t){function r(i){for(;i;)if(i.kind>=285&&i.kind<=294||i.kind===12||i.kind===30||i.kind===32||i.kind===80||i.kind===20||i.kind===19||i.kind===44)i=i.parent;else if(i.kind===284){if(t>i.getStart(e))return!0;i=i.parent}else return!1;return!1}return r(so(e,t))}function jz(e,t,r){let i=ca(e.kind),o=ca(t),s=e.getFullStart(),l=r.text.lastIndexOf(o,s);if(l===-1)return;if(r.text.lastIndexOf(i,s-1)!!s.typeParameters&&s.typeParameters.length>=t)}function Mq(e,t){if(t.text.lastIndexOf("<",e?e.pos:t.text.length)===-1)return;let r=e,i=0,o=0;for(;r;){switch(r.kind){case 30:if(r=Tc(r.getFullStart(),t),r&&r.kind===29&&(r=Tc(r.getFullStart(),t)),!r||!Fe(r))return;if(!i)return Lg(r)?void 0:{called:r,nTypeArguments:o};i--;break;case 50:i=3;break;case 49:i=2;break;case 32:i++;break;case 20:if(r=jz(r,19,t),!r)return;break;case 22:if(r=jz(r,21,t),!r)return;break;case 24:if(r=jz(r,23,t),!r)return;break;case 28:o++;break;case 39:case 80:case 11:case 9:case 10:case 112:case 97:case 114:case 96:case 143:case 25:case 52:case 58:case 59:break;default:if(ji(r))break;return}r=Tc(r.getFullStart(),t)}}function Uy(e,t,r){return kc.getRangeOfEnclosingComment(e,t,void 0,r)}function ude(e,t){let r=so(e,t);return!!Fn(r,Ym)}function pde(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function YP(e,t=0){let r=[],i=Ud(e)?hV(e)&~t:0;return i&2&&r.push("private"),i&4&&r.push("protected"),i&1&&r.push("public"),(i&256||Al(e))&&r.push("static"),i&64&&r.push("abstract"),i&32&&r.push("export"),i&65536&&r.push("deprecated"),e.flags&33554432&&r.push("declare"),e.kind===277&&r.push("export"),r.length>0?r.join(","):""}function fde(e){if(e.kind===183||e.kind===213)return e.typeArguments;if(Yo(e)||e.kind===263||e.kind===264)return e.typeParameters}function Uz(e){return e===2||e===3}function Lq(e){return!!(e===11||e===14||Cv(e))}function Rxe(e,t,r){return!!(t.flags&4)&&e.isEmptyAnonymousObjectType(r)}function mde(e){if(!e.isIntersection())return!1;let{types:t,checker:r}=e;return t.length===2&&(Rxe(r,t[0],t[1])||Rxe(r,t[1],t[0]))}function Zw(e,t,r){return Cv(e.kind)&&e.getStart(r){let r=is(t);return!e[r]&&(e[r]=!0)}}function lD(e){return e.getText(0,e.getLength())}function nO(e,t){let r="";for(let i=0;i!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function yde(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function Gq(e){return!!e.module||rs(e)>=2||!!e.noEmit}function YT(e,t){return{fileExists:r=>e.fileExists(r),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:ea(t,t.readFile),useCaseSensitiveFileNames:ea(t,t.useCaseSensitiveFileNames),getSymlinkCache:ea(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:ea(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var r;return(r=e.getModuleResolutionCache())==null?void 0:r.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:ea(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:r=>e.getProjectReferenceRedirect(r),isSourceOfProjectReferenceRedirect:r=>e.isSourceOfProjectReferenceRedirect(r),getNearestAncestorDirectoryWithPackageJson:ea(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons(),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function Vq(e,t){return{...YT(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function qz(e){return e===2||e>=3&&e<=99||e===100}function vde(e,t,r,i){return e||t&&t.length?Ky(e,t,r,i):void 0}function Ky(e,t,r,i,o){return L.createImportDeclaration(void 0,e||t?L.createImportClause(!!o,e,t&&t.length?L.createNamedImports(t):void 0):void 0,typeof r=="string"?b1(r,i):r,void 0)}function b1(e,t){return L.createStringLiteral(e,t===0)}function jq(e,t){return JF(e,t)?1:0}function af(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{let r=e.imports&&Vr(e.imports,i=>Ca(i)&&!Js(i.parent));return r?jq(r,e):1}}function Uq(e){switch(e){case 0:return"'";case 1:return'"';default:return R.assertNever(e)}}function Xz(e){let t=Yz(e);return t===void 0?void 0:Vi(t)}function Yz(e){return e.escapedName!=="default"?e.escapedName:Wl(e.declarations,t=>{let r=No(t);return r&&r.kind===80?r.escapedText:void 0})}function $z(e){return ss(e)&&(bh(e.parent)||Mc(e.parent)||Eu(e.parent,!1)&&e.parent.arguments[0]===e||Op(e.parent)&&e.parent.arguments[0]===e)}function iO(e){return Xa(e)&&tm(e.parent)&&Fe(e.name)&&!e.propertyName}function Qz(e,t){let r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)}function oO(e,t,r){if(e)for(;e.parent;){if(Yi(e.parent)||!eUe(r,e.parent,t))return e;e=e.parent}}function eUe(e,t,r){return _V(e,t.getStart(r))&&t.getEnd()<=Jl(e)}function cD(e,t){return Am(e)?Vr(e.modifiers,r=>r.kind===t):void 0}function QP(e,t,r,i,o){let l=(So(r)?r[0]:r).kind===243?pj:pT,d=jr(t.statements,l),p=So(r)?Rm.detectImportDeclarationSorting(r,o):3,h=Rm.getOrganizeImportsComparer(o,p===2),m=So(r)?by(r,(y,E)=>Rm.compareImportsOrRequireStatements(y,E,h)):[r];if(!d.length)e.insertNodesAtTopOfFile(t,m,i);else if(d&&(p=Rm.detectImportDeclarationSorting(d,o))){let y=Rm.getOrganizeImportsComparer(o,p===2);for(let E of m){let S=Rm.getImportDeclarationInsertionIndex(d,E,y);if(S===0){let A=d[0]===t.statements[0]?{leadingTriviaOption:pr.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,d[0],E,!1,A)}else{let A=d[S-1];e.insertNodeAfter(t,A,E)}}}else{let y=$s(d);y?e.insertNodesAfter(t,y,m):e.insertNodesAtTopOfFile(t,m,i)}}function Hq(e,t){return R.assert(e.isTypeOnly),ta(e.getChildAt(0,t),zq)}function dD(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function Kq(e,t,r){return(r?eT:Xb)(e.fileName,t.fileName)&&dD(e.textSpan,t.textSpan)}function Jq(e){return(t,r)=>Kq(t,r,e)}function qq(e,t){if(e){for(let r=0;rTo(r)?!0:Xa(r)||tm(r)||j0(r)?!1:"quit")}function tUe(){let e=_k*10,t,r,i,o;m();let s=y=>d(y,17);return{displayParts:()=>{let y=t.length&&t[t.length-1].text;return o>e&&y&&y!=="..."&&(Dg(y.charCodeAt(y.length-1))||t.push(ep(" ",16)),t.push(ep("...",15))),t},writeKeyword:y=>d(y,5),writeOperator:y=>d(y,12),writePunctuation:y=>d(y,15),writeTrailingSemicolon:y=>d(y,15),writeSpace:y=>d(y,16),writeStringLiteral:y=>d(y,8),writeParameter:y=>d(y,13),writeProperty:y=>d(y,14),writeLiteral:y=>d(y,8),writeSymbol:p,writeLine:h,write:s,writeComment:s,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:jo,getIndent:()=>i,increaseIndent:()=>{i++},decreaseIndent:()=>{i--},clear:m};function l(){if(!(o>e)&&r){let y=r6(i);y&&(o+=y.length,t.push(ep(y,16))),r=!1}}function d(y,E){o>e||(l(),o+=y.length,t.push(ep(y,E)))}function p(y,E){o>e||(l(),o+=y.length,t.push(Ede(y,E)))}function h(){o>e||(o+=1,t.push(uD()),r=!0)}function m(){t=[],r=!0,i=0,o=0}}function Ede(e,t){return ep(e,r(t));function r(i){let o=i.flags;return o&3?Yq(i)?13:9:o&4||o&32768||o&65536?14:o&8?19:o&16?20:o&32?1:o&64?4:o&384?2:o&1536?11:o&8192?10:o&262144?18:o&524288||o&2097152?0:17}}function ep(e,t){return{text:e,kind:jw[t]}}function kl(){return ep(" ",16)}function vp(e){return ep(ca(e),5)}function qd(e){return ep(ca(e),15)}function eM(e){return ep(ca(e),12)}function Sde(e){return ep(e,13)}function Tde(e){return ep(e,14)}function $q(e){let t=y0(e);return t===void 0?sf(e):vp(t)}function sf(e){return ep(e,17)}function Ade(e){return ep(e,0)}function Ide(e){return ep(e,18)}function e7(e){return ep(e,24)}function xde(e,t){return{text:e,kind:jw[23],target:{fileName:Gn(t).fileName,textSpan:xu(t)}}}function Qq(e){return ep(e,22)}function Rde(e,t){var r;let i=Aae(e)?"link":Iae(e)?"linkcode":"linkplain",o=[Qq(`{@${i} `)];if(!e.name)e.text&&o.push(e7(e.text));else{let s=t?.getSymbolAtLocation(e.name),l=s&&t?tX(s,t):void 0,d=rUe(e.text),p=uc(e.name)+e.text.slice(0,d),h=nUe(e.text.slice(d)),m=l?.valueDeclaration||((r=l?.declarations)==null?void 0:r[0]);if(m)o.push(xde(p,m)),h&&o.push(e7(h));else{let y=d===0||e.text.charCodeAt(d)===124&&p.charCodeAt(p.length-1)!==32?" ":"";o.push(e7(p+y+h))}}return o.push(Qq("}")),o}function nUe(e){let t=0;if(e.charCodeAt(t++)===124){for(;t"&&r--,i++,!r)return i}return 0}function Jy(e,t){var r;return t?.newLineCharacter||((r=e.getNewLine)==null?void 0:r.call(e))||Wxe}function uD(){return ep(` +`,6)}function nb(e){try{return e(yX),yX.displayParts()}finally{yX.clear()}}function aO(e,t,r,i=0){return nb(o=>{e.writeType(t,r,i|1024|16384,o)})}function tM(e,t,r,i,o=0){return nb(s=>{e.writeSymbol(t,r,i,o|8,s)})}function Zq(e,t,r,i=0){return i|=25632,nb(o=>{e.writeSignature(t,r,i,void 0,o)})}function Cxe(e,t){let r=t.getSourceFile();return nb(i=>{Rw().writeNode(4,e,r,i)})}function Dde(e){return!!e.parent&&yI(e.parent)&&e.parent.propertyName===e}function eX(e,t){return L6(e,t.getScriptKind&&t.getScriptKind(e))}function tX(e,t){let r=e;for(;iUe(r)||dh(r)&&r.links.target;)dh(r)&&r.links.target?r=r.links.target:r=gd(r,t);return r}function iUe(e){return(e.flags&2097152)!==0}function Cde(e,t){return ba(gd(e,t))}function Nde(e,t){for(;Dg(e.charCodeAt(t));)t+=1;return t}function t7(e,t){for(;t>-1&&y_(e.charCodeAt(t));)t-=1;return t+1}function ol(e,t=!0){let r=e&&Nxe(e);return r&&!t&&bp(r),r}function sO(e,t,r){let i=r(e);return i?Rr(i,e):i=Nxe(e,r),i&&!t&&bp(i),i}function Nxe(e,t){let r=t?s=>sO(s,!0,t):ol,o=Sn(e,r,void 0,t?s=>s&&nX(s,!0,t):s=>s&&lS(s),r);if(o===e){let s=Ca(e)?Rr(L.createStringLiteralFromNode(e),e):mp(e)?Rr(L.createNumericLiteral(e.text,e.numericLiteralFlags),e):L.cloneNode(e);return at(s,e)}return o.parent=void 0,o}function lS(e,t=!0){if(e){let r=L.createNodeArray(e.map(i=>ol(i,t)),e.hasTrailingComma);return at(r,e),r}return e}function nX(e,t,r){return L.createNodeArray(e.map(i=>sO(i,t,r)),e.hasTrailingComma)}function bp(e){rX(e),Pde(e)}function rX(e){Mde(e,1024,aUe)}function Pde(e){Mde(e,2048,Zj)}function $T(e,t){let r=e.getSourceFile(),i=r.text;oUe(e,i)?pD(e,t,r):cO(e,t,r),nM(e,t,r)}function oUe(e,t){let r=e.getFullStart(),i=e.getStart();for(let o=r;ot)}function QT(e,t){let r=e;for(let i=1;!TF(t,r);i++)r=`${e}_${i}`;return r}function lO(e,t,r,i){let o=0,s=-1;for(let{fileName:l,textChanges:d}of e){R.assert(l===t);for(let p of d){let{span:h,newText:m}=p,y=sUe(m,Zh(r));if(y!==-1&&(s=h.start+o+y,!i))return s;o+=m.length-h.length}}return R.assert(i),R.assert(s>=0),s}function pD(e,t,r,i,o){jL(r.text,e.pos,Lde(t,r,i,o,iP))}function nM(e,t,r,i,o){UL(r.text,e.end,Lde(t,r,i,o,n4))}function cO(e,t,r,i,o){UL(r.text,e.pos,Lde(t,r,i,o,iP))}function Lde(e,t,r,i,o){return(s,l,d,p)=>{d===3?(s+=2,l-=2):s+=2,o(e,r||d,t.text.slice(s,l),i!==void 0?i:p)}}function sUe(e,t){if(ao(e,t))return 0;let r=e.indexOf(" "+t);return r===-1&&(r=e.indexOf("."+t)),r===-1&&(r=e.indexOf('"'+t)),r===-1?-1:r+1}function n7(e){return ur(e)&&e.operatorToken.kind===28||La(e)||(Wk(e)||nH(e))&&La(e.expression)}function r7(e,t,r){let i=My(e.parent);switch(i.kind){case 214:return t.getContextualType(i,r);case 226:{let{left:o,operatorToken:s,right:l}=i;return i7(s.kind)?t.getTypeAtLocation(e===l?o:l):t.getContextualType(e,r)}case 296:return oX(i,t);default:return t.getContextualType(e,r)}}function rM(e,t,r){let i=af(e,t),o=JSON.stringify(r);return i===0?`'${Yf(o).replace(/'/g,()=>"\\'").replace(/\\"/g,'"')}'`:o}function i7(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function kde(e){switch(e.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function iX(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function oX(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function iM(e,t,r,i){let o=r.getTypeChecker(),s=!0,l=()=>s=!1,d=o.typeToTypeNode(e,t,1,{trackSymbol:(p,h,m)=>(s=s&&o.isSymbolAccessible(p,h,m,!1).accessibility===0,!s),reportInaccessibleThisError:l,reportPrivateInBaseOfClassExpression:l,reportInaccessibleUniqueSymbolError:l,moduleResolverHost:Vq(r,i)});return s?d:void 0}function wde(e){return e===179||e===180||e===181||e===171||e===173}function Pxe(e){return e===262||e===176||e===174||e===177||e===178}function Mxe(e){return e===267}function o7(e){return e===243||e===244||e===246||e===251||e===252||e===253||e===257||e===259||e===172||e===265||e===272||e===271||e===278||e===270||e===277}function lUe(e,t){let r=e.getLastToken(t);if(r&&r.kind===27)return!1;if(wde(e.kind)){if(r&&r.kind===28)return!1}else if(Mxe(e.kind)){let d=Ja(e.getChildren(t));if(d&&N_(d))return!1}else if(Pxe(e.kind)){let d=Ja(e.getChildren(t));if(d&&R0(d))return!1}else if(!o7(e.kind))return!1;if(e.kind===246)return!0;let i=Fn(e,d=>!d.parent),o=sS(e,i,t);if(!o||o.kind===20)return!0;let s=t.getLineAndCharacterOfPosition(e.getEnd()).line,l=t.getLineAndCharacterOfPosition(o.getStart(t)).line;return s!==l}function a7(e,t,r){let i=Fn(t,o=>o.end!==e?"quit":vX(o.kind));return!!i&&lUe(i,r)}function dO(e){let t=0,r=0,i=5;return Bo(e,function o(s){if(o7(s.kind)){let l=s.getLastToken(e);l?.kind===27?t++:r++}else if(wde(s.kind)){let l=s.getLastToken(e);if(l?.kind===27)t++;else if(l&&l.kind!==28){let d=gs(e,l.getStart(e)).line,p=gs(e,fh(e,l.end).start).line;d!==p&&r++}}return t+r>=i?!0:Bo(s,o)}),t===0&&r<=1?!0:t/r>1/i}function s7(e,t){return d7(e,e.getDirectories,t)||[]}function aX(e,t,r,i,o){return d7(e,e.readDirectory,t,r,i,o)||Xe}function uO(e,t){return d7(e,e.fileExists,t)}function l7(e,t){return c7(()=>Hm(t,e))||!1}function c7(e){try{return e()}catch{return}}function d7(e,t,...r){return c7(()=>t&&t.apply(e,r))}function sX(e,t,r){let i=[];return hm(e,o=>{if(o===r)return!0;let s=$r(o,"package.json");uO(t,s)&&i.push(s)}),i}function Ode(e,t){let r;return hm(e,i=>{if(i==="node_modules"||(r=Hle(i,o=>uO(t,o),"package.json"),r))return!0}),r}function Wde(e,t){if(!t.fileExists)return[];let r=[];return hm(oi(e),i=>{let o=$r(i,"package.json");if(t.fileExists(o)){let s=lX(o,t);s&&r.push(s)}}),r}function lX(e,t){if(!t.readFile)return;let r=["dependencies","devDependencies","optionalDependencies","peerDependencies"],i=t.readFile(e)||"",o=h6(i),s={};if(o)for(let p of r){let h=o[p];if(!h)continue;let m=new Map;for(let y in h)m.set(y,h[y]);s[p]=m}let l=[[1,s.dependencies],[2,s.devDependencies],[8,s.optionalDependencies],[4,s.peerDependencies]];return{...s,parseable:!!o,fileName:e,get:d,has(p,h){return!!d(p,h)}};function d(p,h=15){for(let[m,y]of l)if(y&&h&m){let E=y.get(p);if(E!==void 0)return E}}}function oM(e,t,r){let i=(r.getPackageJsonsVisibleToFile&&r.getPackageJsonsVisibleToFile(e.fileName)||Wde(e.fileName,r)).filter(A=>A.parseable),o,s,l;return{allowsImportingAmbientModule:p,allowsImportingSourceFile:h,allowsImportingSpecifier:m};function d(A){let N=S(A);for(let D of i)if(D.has(N)||D.has(A3(N)))return!0;return!1}function p(A,N){if(!i.length||!A.valueDeclaration)return!0;if(!s)s=new Map;else{let Y=s.get(A);if(Y!==void 0)return Y}let D=Yf(A.getName());if(y(D))return s.set(A,!0),!0;let w=A.valueDeclaration.getSourceFile(),j=E(w.fileName,N);if(typeof j>"u")return s.set(A,!0),!0;let K=d(j)||d(D);return s.set(A,K),K}function h(A,N){if(!i.length)return!0;if(!l)l=new Map;else{let j=l.get(A);if(j!==void 0)return j}let D=E(A.fileName,N);if(!D)return l.set(A,!0),!0;let w=d(D);return l.set(A,w),w}function m(A){return!i.length||y(A)||Lp(A)||cp(A)?!0:d(A)}function y(A){return!!(lu(e)&&O_.nodeCoreModules.has(A)&&(o===void 0&&(o=u7(e)),o))}function E(A,N){if(!A.includes("node_modules"))return;let D=tS.getNodeModulesPackageName(r.getCompilationSettings(),e,A,N,t);if(D&&!Lp(D)&&!cp(D))return S(D)}function S(A){let N=Wc(CP(A)).slice(1);return ao(N[0],"@")?`${N[0]}/${N[1]}`:N[0]}}function u7(e){return gt(e.imports,({text:t})=>O_.nodeCoreModules.has(t))}function pO(e){return zo(Wc(e),"node_modules")}function cX(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function Fde(e,t){let r=xu(e),i=lI(t,r,Qs,yW);if(i>=0){let o=t[i];return R.assertEqual(o.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),ta(o,cX)}}function zde(e,t){var r;let i=lI(t,e.start,l=>l.start,Zs);for(i<0&&(i=~i);((r=t[i-1])==null?void 0:r.start)===e.start;)i--;let o=[],s=Jl(e);for(;;){let l=ri(t[i],cX);if(!l||l.start>s)break;Vne(e,l)&&o.push(l),i++}return o}function E1({startPosition:e,endPosition:t}){return dc(e,t===void 0?e:t)}function dX(e,t){let r=so(e,t.start);return Fn(r,o=>o.getStart(e)Jl(t)?"quit":ht(o)&&dD(t,xu(o,e)))}function uX(e,t,r=Qs){return e?So(e)?r(mn(e,t)):t(e,0):void 0}function pX(e){return So(e)?Va(e):e}function Bde(e,t){if(Lxe(e)){let r=kxe(e);if(r)return r;let i=wd.moduleSymbolToValidIdentifier(Gde(e),t,!1),o=wd.moduleSymbolToValidIdentifier(Gde(e),t,!0);return i===o?i:[i,o]}return e.name}function p7(e,t,r){return Lxe(e)?kxe(e)||wd.moduleSymbolToValidIdentifier(Gde(e),t,!!r):e.name}function Lxe(e){return!(e.flags&33554432)&&(e.escapedName==="export="||e.escapedName==="default")}function kxe(e){return Wl(e.declarations,t=>{var r,i,o;return Ll(t)?(r=ri(Yl(t.expression),Fe))==null?void 0:r.text:Hd(t)&&t.symbol.flags===2097152?(i=ri(t.propertyName,Fe))==null?void 0:i.text:(o=ri(No(t),Fe))==null?void 0:o.text})}function Gde(e){var t;return R.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${R.formatSymbolFlags(e.flags)}. Declarations: ${(t=e.declarations)==null?void 0:t.map(r=>{let i=R.formatSyntaxKind(r.kind),o=ir(r),{expression:s}=r;return(o?"[JS]":"")+i+(s?` (expression: ${R.formatSyntaxKind(s.kind)})`:"")}).join(", ")}.`)}function Vde(e,t,r){let i=t.length;if(i+r>e.length)return!1;for(let o=0;oql(r)&&E_(r))}function f7(e){return!!(hV(e)&65536)}function m7(e,t){return Wl(e.imports,i=>{if(O_.nodeCoreModules.has(i.text))return ao(i.text,"node:")})??t.usesUriStyleNodeCoreModules}function fO(e){return e===` +`?1:0}function ZT(e){return So(e)?ng(ko(e[0]),e.slice(1)):ko(e)}function _7({options:e},t){let r=!e.semicolons||e.semicolons==="ignore",i=e.semicolons==="remove"||r&&!dO(t);return{...e,semicolons:i?"remove":"ignore"}}function mX(e){return e===2||e===3}function fD(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function h7(e,t){let r=new Set,i=new Set,o=new Set;for(let d of t)if(!_P(d)){let p=ms(d.expression);if(E0(p))switch(p.kind){case 15:case 11:r.add(p.text);break;case 9:i.add(parseInt(p.text));break;case 10:let h=Roe(El(p.text,"n")?p.text.slice(0,-1):p.text);h&&o.add(F0(h));break}else{let h=e.getSymbolAtLocation(d.expression);if(h&&h.valueDeclaration&&$0(h.valueDeclaration)){let m=e.getConstantValue(h.valueDeclaration);m!==void 0&&s(m)}}}return{addValue:s,hasValue:l};function s(d){switch(typeof d){case"string":r.add(d);break;case"number":i.add(d)}}function l(d){switch(typeof d){case"string":return r.has(d);case"number":return i.has(d);case"object":return o.has(F0(d))}}}function _X(e,t,r,i){var o;let s=typeof e=="string"?e:e.fileName;if(!W0(s))return!1;let l=t.getCompilerOptions(),d=Md(l),p=typeof e=="string"?kw(tl(e,r.getCurrentDirectory(),Ly(r)),(o=t.getPackageJsonInfoCache)==null?void 0:o.call(t),r,l):e.impliedNodeFormat;if(p===99)return!1;if(p===1||l.verbatimModuleSyntax&&d===1)return!0;if(l.verbatimModuleSyntax&&A6(d))return!1;if(typeof e=="object"){if(e.commonJsModuleIndicator)return!0;if(e.externalModuleIndicator)return!1}return i}var Xd,hX,Oxe,g7,gX,yX,Wxe,y7,vX,cUe=bt({"src/services/utilities.ts"(){"use strict";ai(),Xd=Ry(99,!0),hX=(e=>(e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All",e))(hX||{}),Oxe=/^\/\/\/\s*(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(gX||{}),yX=tUe(),Wxe=` +`,y7="anonymous function",vX=Um(wde,Pxe,Mxe,o7)}});function bX(e){let t=1,r=Xp(),i=new Map,o=new Map,s,l={isUsableByFile:S=>S===s,isEmpty:()=>!r.size,clear:()=>{r.clear(),i.clear(),s=void 0},add:(S,A,N,D,w,j,K,Y)=>{S!==s&&(l.clear(),s=S);let B;if(w){let fe=G6(w.fileName);if(fe){let{topLevelNodeModulesIndex:ne,topLevelPackageNameIndex:he,packageRootIndex:Ce}=fe;if(B=gw(CP(w.fileName.substring(he+1,Ce))),ao(S,w.path.substring(0,ne))){let Ge=o.get(B),ve=w.fileName.substring(0,he+1);if(Ge){let Ie=Ge.indexOf(Sh);ne>Ie&&o.set(B,ve)}else o.set(B,ve)}}}let z=j===1&&fR(A)||A,ee=j===0||tO(z)?Vi(N):Bde(z,void 0),me=typeof ee=="string"?ee:ee[0],ge=typeof ee=="string"?void 0:ee[1],q=Yf(D.name),J=t++,re=gd(A,Y),pe=A.flags&33554432?void 0:A,xe=D.flags&33554432?void 0:D;(!pe||!xe)&&i.set(J,[A,D]),r.add(p(me,A,qc(q)?void 0:q,Y),{id:J,symbolTableKey:N,symbolName:me,capitalizedSymbolName:ge,moduleName:q,moduleFile:w,moduleFileName:w?.fileName,packageName:B,exportKind:j,targetFlags:re.flags,isFromPackageJson:K,symbol:pe,moduleSymbol:xe})},get:(S,A)=>{if(S!==s)return;let N=r.get(A);return N?.map(d)},search:(S,A,N,D)=>{if(S===s)return zc(r,(w,j)=>{let{symbolName:K,ambientModuleName:Y}=h(j),B=A&&w[0].capitalizedSymbolName||K;if(N(B,w[0].targetFlags)){let z=w.map(d).filter((ee,me)=>E(ee,w[me].packageName));if(z.length){let ee=D(z,B,!!Y,j);if(ee!==void 0)return ee}}})},releaseSymbols:()=>{i.clear()},onFileChanged:(S,A,N)=>m(S)&&m(A)?!1:s&&s!==A.path||N&&u7(S)!==u7(A)||!Vm(S.moduleAugmentations,A.moduleAugmentations)||!y(S,A)?(l.clear(),!0):(s=A.path,!1)};return R.isDebugging&&Object.defineProperty(l,"__cache",{value:r}),l;function d(S){if(S.symbol&&S.moduleSymbol)return S;let{id:A,exportKind:N,targetFlags:D,isFromPackageJson:w,moduleFileName:j}=S,[K,Y]=i.get(A)||Xe;if(K&&Y)return{symbol:K,moduleSymbol:Y,moduleFileName:j,exportKind:N,targetFlags:D,isFromPackageJson:w};let B=(w?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),ce=S.moduleSymbol||Y||R.checkDefined(S.moduleFile?B.getMergedSymbol(S.moduleFile.symbol):B.tryFindAmbientModule(S.moduleName)),z=S.symbol||K||R.checkDefined(N===2?B.resolveExternalModuleSymbol(ce):B.tryGetMemberInModuleExportsAndProperties(Vi(S.symbolTableKey),ce),`Could not find symbol '${S.symbolName}' by key '${S.symbolTableKey}' in module ${ce.name}`);return i.set(A,[z,ce]),{symbol:z,moduleSymbol:ce,moduleFileName:j,exportKind:N,targetFlags:D,isFromPackageJson:w}}function p(S,A,N,D){let w=N||"";return`${S.length} ${ba(gd(A,D))} ${S} ${w}`}function h(S){let A=S.indexOf(" "),N=S.indexOf(" ",A+1),D=parseInt(S.substring(0,A),10),w=S.substring(N+1),j=w.substring(0,D),K=w.substring(D+1);return{symbolName:j,ambientModuleName:K===""?void 0:K}}function m(S){return!S.commonJsModuleIndicator&&!S.externalModuleIndicator&&!S.moduleAugmentations&&!S.ambientModuleNames}function y(S,A){if(!Vm(S.ambientModuleNames,A.ambientModuleNames))return!1;let N=-1,D=-1;for(let w of A.ambientModuleNames){let j=K=>qV(K)&&K.name.text===w;if(N=Kl(S.statements,j,N+1),D=Kl(A.statements,j,D+1),S.statements[N]!==A.statements[D])return!1}return!0}function E(S,A){if(!A||!S.moduleFileName)return!0;let N=e.getGlobalTypingsCacheLocation();if(N&&ao(S.moduleFileName,N))return!0;let D=o.get(A);return!D||ao(S.moduleFileName,D)}}function EX(e,t,r,i,o,s,l){var d;if(t===r)return!1;let p=l?.get(t.path,r.path,i,{});if(p?.isBlockedByPackageJsonDependencies!==void 0)return!p.isBlockedByPackageJsonDependencies;let h=Ly(s),m=(d=s.getGlobalTypingsCacheLocation)==null?void 0:d.call(s),y=!!tS.forEachFileNameOfModule(t.fileName,r.fileName,s,!1,E=>{let S=e.getSourceFile(E);return(S===r||!S)&&dUe(t.fileName,E,h,m)});if(o){let E=y&&o.allowsImportingSourceFile(r,s);return l?.setBlockedByPackageJsonDependencies(t.path,r.path,i,{},!E),E}return y}function dUe(e,t,r,i){let o=hm(t,l=>nc(l)==="node_modules"?l:void 0),s=o&&oi(r(o));return s===void 0||ao(r(e),s)||!!i&&ao(r(i),s)}function SX(e,t,r,i,o){var s,l;let d=uR(t),p=r.autoImportFileExcludePatterns&&to(r.autoImportFileExcludePatterns,m=>{let y=P6(m,"","exclude");return y?Bv(y,d):void 0});Fxe(e.getTypeChecker(),e.getSourceFiles(),p,t,(m,y)=>o(m,y,e,!1));let h=i&&((s=t.getPackageJsonAutoImportProvider)==null?void 0:s.call(t));if(h){let m=Ks(),y=e.getTypeChecker();Fxe(h.getTypeChecker(),h.getSourceFiles(),p,t,(E,S)=>{(S&&!e.getSourceFile(S.fileName)||!S&&!y.resolveName(E.name,void 0,1536,!1))&&o(E,S,h,!0)}),(l=t.log)==null||l.call(t,`forEachExternalModuleToImportFrom autoImportProvider: ${Ks()-m}`)}}function Fxe(e,t,r,i,o){var s,l;let d=(s=i.getSymlinkCache)==null?void 0:s.call(i).getSymlinkedDirectoriesByRealpath(),p=r&&(({fileName:h,path:m})=>{if(r.some(y=>y.test(h)))return!0;if(d?.size&&AE(h)){let y=oi(h);return hm(oi(m),E=>{let S=d.get(Fc(E));if(S)return S.some(A=>r.some(N=>N.test(h.replace(y,A))));y=oi(y)})??!1}return!1});for(let h of e.getAmbientModules())!h.name.includes("*")&&!(r&&((l=h.declarations)!=null&&l.every(m=>p(m.getSourceFile()))))&&o(h,void 0);for(let h of t)wp(h)&&!p?.(h)&&o(e.getMergedSymbol(h.symbol),h)}function mO(e,t,r,i,o){var s,l,d,p,h;let m=Ks();(s=t.getPackageJsonAutoImportProvider)==null||s.call(t);let y=((l=t.getCachedExportInfoMap)==null?void 0:l.call(t))||bX({getCurrentProgram:()=>r,getPackageJsonAutoImportProvider:()=>{var A;return(A=t.getPackageJsonAutoImportProvider)==null?void 0:A.call(t)},getGlobalTypingsCacheLocation:()=>{var A;return(A=t.getGlobalTypingsCacheLocation)==null?void 0:A.call(t)}});if(y.isUsableByFile(e.path))return(d=t.log)==null||d.call(t,"getExportInfoMap: cache hit"),y;(p=t.log)==null||p.call(t,"getExportInfoMap: cache miss or empty; calculating new results");let E=r.getCompilerOptions(),S=0;try{SX(r,t,i,!0,(A,N,D,w)=>{++S%100===0&&o?.throwIfCancellationRequested();let j=new Map,K=D.getTypeChecker(),Y=v7(A,K,E);Y&&zxe(Y.symbol,K)&&y.add(e.path,Y.symbol,Y.exportKind===1?"default":"export=",A,N,Y.exportKind,w,K),K.forEachExportAndPropertyOfModule(A,(B,ce)=>{B!==Y?.symbol&&zxe(B,K)&&Em(j,ce)&&y.add(e.path,B,ce,A,N,0,w,K)})})}catch(A){throw y.clear(),A}return(h=t.log)==null||h.call(t,`getExportInfoMap: done in ${Ks()-m} ms`),y}function v7(e,t,r){let i=uUe(e,t);if(!i)return;let{symbol:o,exportKind:s}=i,l=b7(o,t,r);return l&&{symbol:o,exportKind:s,...l}}function zxe(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!q2(e)&&!xie(e)}function uUe(e,t){let r=t.resolveExternalModuleSymbol(e);if(r!==e)return{symbol:r,exportKind:2};let i=t.tryGetMemberInModuleExports("default",e);if(i)return{symbol:i,exportKind:1}}function b7(e,t,r){let i=fR(e);if(i)return{resolvedSymbol:i,name:i.name};let o=pUe(e);if(o!==void 0)return{resolvedSymbol:e,name:o};if(e.flags&2097152){let s=t.getImmediateAliasedSymbol(e);if(s&&s.parent)return b7(s,t,r)}return e.escapedName!=="default"&&e.escapedName!=="export="?{resolvedSymbol:e,name:e.getName()}:{resolvedSymbol:e,name:p7(e,r.target)}}function pUe(e){return e.declarations&&Wl(e.declarations,t=>{var r;if(Ll(t))return(r=ri(Yl(t.expression),Fe))==null?void 0:r.text;if(Hd(t))return R.assert(t.name.text==="default","Expected the specifier to be a default export"),t.propertyName&&t.propertyName.text})}var TX,AX,fUe=bt({"src/services/exportInfoMap.ts"(){"use strict";ai(),TX=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(TX||{}),AX=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))(AX||{})}});function Bxe(){let e=Ry(99,!1);function t(i,o,s){return hUe(r(i,o,s),i)}function r(i,o,s){let l=0,d=0,p=[],{prefix:h,pushTemplate:m}=vUe(o);i=h+i;let y=h.length;m&&p.push(16),e.setText(i);let E=0,S=[],A=0;do{l=e.scan(),aR(l)||(N(),d=l);let D=e.getTokenEnd();if(_Ue(e.getTokenStart(),D,y,SUe(l),S),D>=i.length){let w=mUe(e,l,$s(p));w!==void 0&&(E=w)}}while(l!==1);function N(){switch(l){case 44:case 69:!Uxe[d]&&e.reScanSlashToken()===14&&(l=14);break;case 30:d===80&&A++;break;case 32:A>0&&A--;break;case 133:case 154:case 150:case 136:case 155:A>0&&!s&&(l=80);break;case 16:p.push(l);break;case 19:p.length>0&&p.push(l);break;case 20:if(p.length>0){let D=$s(p);D===16?(l=e.reScanTemplateToken(!1),l===18?p.pop():R.assertEqual(l,17,"Should have been a template middle.")):(R.assertEqual(D,19,"Should have been an open brace"),p.pop())}break;default:if(!Ou(l))break;(d===25||Ou(d)&&Ou(l)&&!yUe(d,l))&&(l=80)}}return{endOfLineState:E,spans:S}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:r}}function mUe(e,t,r){switch(t){case 11:{if(!e.isUnterminated())return;let i=e.getTokenText(),o=i.length-1,s=0;for(;i.charCodeAt(o-s)===92;)s++;return s&1?i.charCodeAt(0)===34?3:2:void 0}case 3:return e.isUnterminated()?1:void 0;default:if(Cv(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return R.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return r===16?6:void 0}}function _Ue(e,t,r,i,o){if(i===8)return;e===0&&r>0&&(e+=r);let s=t-e;s>0&&o.push(e-r,s,i)}function hUe(e,t){let r=[],i=e.spans,o=0;for(let l=0;l=0){let m=d-o;m>0&&r.push({length:m,classification:4})}r.push({length:p,classification:gUe(h)}),o=d+p}let s=t.length-o;return s>0&&r.push({length:s,classification:4}),{entries:r,finalLexState:e.endOfLineState}}function gUe(e){switch(e){case 1:return 3;case 3:return 1;case 4:return 6;case 25:return 7;case 5:return 2;case 6:return 8;case 8:return 4;case 10:return 0;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return 5;default:return}}function yUe(e,t){if(!kq(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function vUe(e){switch(e){case 3:return{prefix:`"\\ `};case 2:return{prefix:`'\\ `};case 1:return{prefix:`/* `};case 4:return{prefix:"`\n"};case 5:return{prefix:`} -`,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return x.assertNever(e)}}function fUe(e){switch(e){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}function mUe(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function _Ue(e){if(wu(e))return 3;if(fUe(e)||mUe(e))return 5;if(e>=19&&e<=79)return 10;switch(e){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 80:default:return Dv(e)?6:2}}function zde(e,t,r,i,o){return Wxe(IX(e,t,r,i,o))}function wxe(e,t){switch(t){case 267:case 263:case 264:case 262:case 231:case 218:case 219:e.throwIfCancellationRequested()}}function IX(e,t,r,i,o){let s=[];return r.forEachChild(function d(p){if(!(!p||!ZW(o,p.pos,p.getFullWidth()))){if(wxe(t,p.kind),Fe(p)&&!Fl(p)&&i.has(p.escapedText)){let h=e.getSymbolAtLocation(p),m=h&&Oxe(h,qT(p),e);m&&l(p.getStart(r),p.getEnd(),m)}p.forEachChild(d)}}),{spans:s,endOfLineState:0};function l(d,p,h){let m=p-d;x.assert(m>0,`Classification had non-positive length of ${m}`),s.push(d),s.push(m),s.push(h)}}function Oxe(e,t,r){let i=e.getFlags();if(i&2885600)return i&32?11:i&384?12:i&524288?16:i&1536?t&4||t&1&&hUe(e)?14:void 0:i&2097152?Oxe(r.getAliasedSymbol(e),t,r):t&2?i&64?13:i&262144?15:void 0:void 0}function hUe(e){return gt(e.declarations,t=>ql(t)&&Vg(t)===1)}function gUe(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function Wxe(e){x.assert(e.spans.length%3===0);let t=e.spans,r=[];for(let i=0;i])*)(\/>)?)?/im,Z=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,me=t.text.substr(B,ce),ge=z.exec(me);if(!ge||!ge[3]||!(ge[3]in PL))return!1;let q=B;y(q,ge[1].length),q+=ge[1].length,p(q,ge[2].length,10),q+=ge[2].length,p(q,ge[3].length,21),q+=ge[3].length;let J=ge[4],re=q;for(;;){let xe=Z.exec(J);if(!xe)break;let fe=q+xe.index+xe[1].length;fe>re&&(y(re,fe-re),re=fe),p(re,xe[2].length,22),re+=xe[2].length,xe[3].length&&(y(re,xe[3].length),re+=xe[3].length),p(re,xe[4].length,5),re+=xe[4].length,xe[5].length&&(y(re,xe[5].length),re+=xe[5].length),p(re,xe[6].length,24),re+=xe[6].length}q+=ge[4].length,q>re&&y(re,q-re),ge[5]&&(p(q,ge[5].length,10),q+=ge[5].length);let pe=B+ce;return q=0),Z>0){let me=ce||K(B.kind,B);me&&p(z,Z,me)}return!0}function j(B){switch(B.parent&&B.parent.kind){case 286:if(B.parent.tagName===B)return 19;break;case 287:if(B.parent.tagName===B)return 20;break;case 285:if(B.parent.tagName===B)return 21;break;case 291:if(B.parent.name===B)return 22;break}}function K(B,ce){if(wu(B))return 3;if((B===30||B===32)&&ce&&lde(ce.parent))return 10;if(Aj(B)){if(ce){let z=ce.parent;if(B===64&&(z.kind===260||z.kind===172||z.kind===169||z.kind===291)||z.kind===226||z.kind===224||z.kind===225||z.kind===227)return 5}return 10}else{if(B===9)return 4;if(B===10)return 25;if(B===11)return ce&&ce.parent.kind===291?24:6;if(B===14)return 6;if(Dv(B))return 6;if(B===12)return 23;if(B===80){if(ce){switch(ce.parent.kind){case 263:return ce.parent.name===ce?11:void 0;case 168:return ce.parent.name===ce?15:void 0;case 264:return ce.parent.name===ce?13:void 0;case 266:return ce.parent.name===ce?12:void 0;case 267:return ce.parent.name===ce?14:void 0;case 169:return ce.parent.name===ce?k0(ce)?3:17:void 0}if(Ng(ce.parent))return 3}return 2}}}function Y(B){if(B&&JL(i,o,B.pos,B.getFullWidth())){wxe(e,B.kind);for(let ce of B.getChildren(t))w(ce)||Y(ce)}}}var Fxe,zxe=bt({"src/services/classifier.ts"(){"use strict";ai(),Fxe=Zte([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0)}}),E7,yUe=bt({"src/services/documentHighlights.ts"(){"use strict";ai(),(e=>{function t(q,J,re,pe,xe){let fe=Wu(re,pe);if(fe.parent&&(P_(fe.parent)&&fe.parent.tagName===fe||K0(fe.parent))){let{openingElement:ne,closingElement:he}=fe.parent.parent,Ce=[ne,he].map(({tagName:Ge})=>r(Ge,re));return[{fileName:re.fileName,highlightSpans:Ce}]}return i(pe,fe,q,J,xe)||o(fe,re)}e.getDocumentHighlights=t;function r(q,J){return{fileName:J.fileName,textSpan:Iu(q,J),kind:"none"}}function i(q,J,re,pe,xe){let fe=new Set(xe.map(Ge=>Ge.fileName)),ne=Ms.getReferenceEntriesForNode(q,J,re,xe,pe,void 0,fe);if(!ne)return;let he=TL(ne.map(Ms.toHighlightSpan),Ge=>Ge.fileName,Ge=>Ge.span),Ce=Nd(re.useCaseSensitiveFileNames());return Wo(OC(he.entries(),([Ge,ve])=>{if(!fe.has(Ge)){if(!re.redirectTargetsMap.has(tl(Ge,re.getCurrentDirectory(),Ce)))return;let Ae=re.getSourceFile(Ge);Ge=Vr(xe,Le=>!!Le.redirectInfo&&Le.redirectInfo.redirectTarget===Ae).fileName,x.assert(fe.has(Ge))}return{fileName:Ge,highlightSpans:ve}}))}function o(q,J){let re=s(q,J);return re&&[{fileName:J.fileName,highlightSpans:re}]}function s(q,J){switch(q.kind){case 101:case 93:return LT(q.parent)?Z(q.parent,J):void 0;case 107:return pe(q.parent,Sm,Y);case 111:return pe(q.parent,iH,K);case 113:case 85:case 98:let fe=q.kind===85?q.parent.parent:q.parent;return pe(fe,wT,j);case 109:return pe(q.parent,uP,w);case 84:case 90:return mP(q.parent)||MR(q.parent)?pe(q.parent.parent.parent,uP,w):void 0;case 83:case 88:return pe(q.parent,nN,D);case 99:case 117:case 92:return pe(q.parent,ne=>Nv(ne,!0),N);case 137:return re(Pl,[137]);case 139:case 153:return re(Cv,[139,153]);case 135:return pe(q.parent,Jv,B);case 134:return xe(B(q));case 127:return xe(ce(q));case 103:case 147:return;default:return Dy(q.kind)&&(Hd(q.parent)||Ml(q.parent))?xe(E(q.kind,q.parent)):void 0}function re(fe,ne){return pe(q.parent,fe,he=>{var Ce;return to((Ce=ri(he,b_))==null?void 0:Ce.symbol.declarations,Ge=>fe(Ge)?Vr(Ge.getChildren(J),ve=>Bo(ne,ve.kind)):void 0)})}function pe(fe,ne,he){return ne(fe)?xe(he(fe,J)):void 0}function xe(fe){return fe&&fe.map(ne=>r(ne,J))}}function l(q){return iH(q)?[q]:wT(q)?Eo(q.catchClause?l(q.catchClause):q.tryBlock&&l(q.tryBlock),q.finallyBlock&&l(q.finallyBlock)):$o(q)?void 0:h(q,l)}function d(q){let J=q;for(;J.parent;){let re=J.parent;if(x0(re)||re.kind===312)return re;if(wT(re)&&re.tryBlock===J&&re.catchClause)return J;J=re}}function p(q){return nN(q)?[q]:$o(q)?void 0:h(q,p)}function h(q,J){let re=[];return q.forEachChild(pe=>{let xe=J(pe);xe!==void 0&&re.push(...dI(xe))}),re}function m(q,J){let re=y(J);return!!re&&re===q}function y(q){return Fn(q,J=>{switch(J.kind){case 255:if(q.kind===251)return!1;case 248:case 249:case 250:case 247:case 246:return!q.label||ge(J,q.label.escapedText);default:return $o(J)&&"quit"}})}function E(q,J){return to(S(J,MI(q)),re=>dD(re,q))}function S(q,J){let re=q.parent;switch(re.kind){case 268:case 312:case 241:case 296:case 297:return J&64&&Sc(q)?[...q.members,q]:re.statements;case 176:case 174:case 262:return[...re.parameters,...ci(re.parent)?re.parent.members:[]];case 263:case 231:case 264:case 187:let pe=re.members;if(J&15){let xe=Vr(re.members,Pl);if(xe)return[...pe,...xe.parameters]}else if(J&64)return[...pe,re];return pe;case 210:return;default:x.assertNever(re,"Invalid container kind.")}}function A(q,J,...re){return J&&Bo(re,J.kind)?(q.push(J),!0):!1}function N(q){let J=[];if(A(J,q.getFirstToken(),99,117,92)&&q.kind===246){let re=q.getChildren();for(let pe=re.length-1;pe>=0&&!A(J,re[pe],117);pe--);}return gn(p(q.statement),re=>{m(q,re)&&A(J,re.getFirstToken(),83,88)}),J}function D(q){let J=y(q);if(J)switch(J.kind){case 248:case 249:case 250:case 246:case 247:return N(J);case 255:return w(J)}}function w(q){let J=[];return A(J,q.getFirstToken(),109),gn(q.caseBlock.clauses,re=>{A(J,re.getFirstToken(),84,90),gn(p(re),pe=>{m(q,pe)&&A(J,pe.getFirstToken(),83)})}),J}function j(q,J){let re=[];if(A(re,q.getFirstToken(),113),q.catchClause&&A(re,q.catchClause.getFirstToken(),85),q.finallyBlock){let pe=_s(q,98,J);A(re,pe,98)}return re}function K(q,J){let re=d(q);if(!re)return;let pe=[];return gn(l(re),xe=>{pe.push(_s(xe,111,J))}),x0(re)&&I0(re,xe=>{pe.push(_s(xe,107,J))}),pe}function Y(q,J){let re=Wp(q);if(!re)return;let pe=[];return I0(na(re.body,Ko),xe=>{pe.push(_s(xe,107,J))}),gn(l(re.body),xe=>{pe.push(_s(xe,111,J))}),pe}function B(q){let J=Wp(q);if(!J)return;let re=[];return J.modifiers&&J.modifiers.forEach(pe=>{A(re,pe,134)}),Go(J,pe=>{z(pe,xe=>{Jv(xe)&&A(re,xe.getFirstToken(),135)})}),re}function ce(q){let J=Wp(q);if(!J)return;let re=[];return Go(J,pe=>{z(pe,xe=>{z4(xe)&&A(re,xe.getFirstToken(),127)})}),re}function z(q,J){J(q),!$o(q)&&!ci(q)&&!pu(q)&&!ql(q)&&!Tm(q)&&!ji(q)&&Go(q,re=>z(re,J))}function Z(q,J){let re=me(q,J),pe=[];for(let xe=0;xe=fe.end;Ce--)if(!y_(J.text.charCodeAt(Ce))){he=!1;break}if(he){pe.push({fileName:J.fileName,textSpan:dc(fe.getStart(),ne.end),kind:"reference"}),xe++;continue}}pe.push(r(re[xe],J))}return pe}function me(q,J){let re=[];for(;LT(q.parent)&&q.parent.elseStatement===q;)q=q.parent;for(;;){let pe=q.getChildren(J);A(re,pe[0],101);for(let xe=pe.length-1;xe>=0&&!A(re,pe[xe],93);xe--);if(!q.elseStatement||!LT(q.elseStatement))break;q=q.elseStatement}return re}function ge(q,J){return!!Fn(q.parent,re=>H0(re)?re.label.escapedText===J:"quit")}})(E7||(E7={}))}});function mO(e){return!!e.sourceFile}function Gde(e,t,r){return RX(e,t,r)}function RX(e,t="",r,i){let o=new Map,s=Nd(!!e);function l(){let D=Wo(o.keys()).filter(w=>w&&w.charAt(0)==="_").map(w=>{let j=o.get(w),K=[];return j.forEach((Y,B)=>{mO(Y)?K.push({name:B,scriptKind:Y.sourceFile.scriptKind,refCount:Y.languageServiceRefCount}):Y.forEach((ce,z)=>K.push({name:B,scriptKind:z,refCount:ce.languageServiceRefCount}))}),K.sort((Y,B)=>B.refCount-Y.refCount),{bucket:w,sourceFiles:K}});return JSON.stringify(D,void 0,2)}function d(D){return typeof D.getCompilationSettings=="function"?D.getCompilationSettings():D}function p(D,w,j,K,Y,B){let ce=tl(D,t,s),z=DX(d(w));return h(D,ce,w,z,j,K,Y,B)}function h(D,w,j,K,Y,B,ce,z){return S(D,w,j,K,Y,B,!0,ce,z)}function m(D,w,j,K,Y,B){let ce=tl(D,t,s),z=DX(d(w));return y(D,ce,w,z,j,K,Y,B)}function y(D,w,j,K,Y,B,ce,z){return S(D,w,d(j),K,Y,B,!1,ce,z)}function E(D,w){let j=mO(D)?D:D.get(x.checkDefined(w,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return x.assert(w===void 0||!j||j.sourceFile.scriptKind===w,`Script kind should match provided ScriptKind:${w} and sourceFile.scriptKind: ${j?.sourceFile.scriptKind}, !entry: ${!j}`),j}function S(D,w,j,K,Y,B,ce,z,Z){var me,ge,q,J;z=L6(D,z);let re=d(j),pe=j===re?void 0:j,xe=z===6?100:ns(re),fe=typeof Z=="object"?Z:{languageVersion:xe,impliedNodeFormat:pe&&Lw(w,(J=(q=(ge=(me=pe.getCompilerHost)==null?void 0:me.call(pe))==null?void 0:ge.getModuleResolutionCache)==null?void 0:q.call(ge))==null?void 0:J.getPackageJsonInfoCache(),pe,re),setExternalModuleIndicator:ok(re),jsDocParsingMode:r};fe.languageVersion=xe,x.assertEqual(r,fe.jsDocParsingMode);let ne=o.size,he=Vde(K,fe.impliedNodeFormat),Ce=WC(o,he,()=>new Map);if(rr){o.size>ne&&rr.instant(rr.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:re.configFilePath,key:he});let De=!Ed(w)&&Gc(o,(Le,Et)=>Et!==he&&Le.has(w)&&Et);De&&rr.instant(rr.Phase.Session,"documentRegistryBucketOverlap",{path:w,key1:De,key2:he})}let Ge=Ce.get(w),ve=Ge&&E(Ge,z);if(!ve&&i){let De=i.getDocument(he,w);De&&(x.assert(ce),ve={sourceFile:De,languageServiceRefCount:0},Ae())}if(ve)ve.sourceFile.version!==B&&(ve.sourceFile=hY(ve.sourceFile,Y,B,Y.getChangeRange(ve.sourceFile.scriptSnapshot)),i&&i.setDocument(he,w,ve.sourceFile)),ce&&ve.languageServiceRefCount++;else{let De=K7(D,Y,fe,B,!1,z);i&&i.setDocument(he,w,De),ve={sourceFile:De,languageServiceRefCount:1},Ae()}return x.assert(ve.languageServiceRefCount!==0),ve.sourceFile;function Ae(){if(!Ge)Ce.set(w,ve);else if(mO(Ge)){let De=new Map;De.set(Ge.sourceFile.scriptKind,Ge),De.set(z,ve),Ce.set(w,De)}else Ge.set(z,ve)}}function A(D,w,j,K){let Y=tl(D,t,s),B=DX(w);return N(Y,B,j,K)}function N(D,w,j,K){let Y=x.checkDefined(o.get(Vde(w,K))),B=Y.get(D),ce=E(B,j);ce.languageServiceRefCount--,x.assert(ce.languageServiceRefCount>=0),ce.languageServiceRefCount===0&&(mO(B)?Y.delete(D):(B.delete(j),B.size===1&&Y.set(D,vL(B.values(),Qs))))}return{acquireDocument:p,acquireDocumentWithKey:h,updateDocument:m,updateDocumentWithKey:y,releaseDocument:A,releaseDocumentWithKey:N,getKeyForCompilationSettings:DX,getDocumentRegistryBucketKeyWithMode:Vde,reportStats:l,getBuckets:()=>o}}function DX(e){return tK(e,u3)}function Vde(e,t){return t?`${e}|${t}`:e}var vUe=bt({"src/services/documentRegistry.ts"(){"use strict";ai()}});function jde(e,t,r,i,o,s,l){let d=pR(i),p=Nd(d),h=CX(t,r,p,l),m=CX(r,t,p,l);return ur.ChangeTracker.with({host:i,formatContext:o,preferences:s},y=>{EUe(e,y,h,t,r,i.getCurrentDirectory(),d),SUe(e,y,h,m,i,p)})}function CX(e,t,r,i){let o=r(e);return l=>{let d=i&&i.tryGetSourcePosition({fileName:l,pos:0}),p=s(d?d.fileName:l);return d?p===void 0?void 0:bUe(d.fileName,p,l,r):p};function s(l){if(r(l)===o)return t;let d=aU(l,o,r);return d===void 0?void 0:t+"/"+d}}function bUe(e,t,r,i){let o=WL(e,t,i);return Ude(oi(r),o)}function EUe(e,t,r,i,o,s,l){let{configFile:d}=e.getCompilerOptions();if(!d)return;let p=oi(d.fileName),h=mN(d);if(!h)return;Hde(h,(S,A)=>{switch(A){case"files":case"include":case"exclude":{if(m(S)||A!=="include"||!uu(S.initializer))return;let D=to(S.initializer.elements,j=>Da(j)?j.text:void 0);if(D.length===0)return;let w=M6(p,[],D,l,s);zv(x.checkDefined(w.includeFilePattern),l).test(i)&&!zv(x.checkDefined(w.includeFilePattern),l).test(o)&&t.insertNodeAfter(d,Ja(S.initializer.elements),L.createStringLiteral(E(o)));return}case"compilerOptions":Hde(S.initializer,(N,D)=>{let w=OH(D);x.assert(w?.type!=="listOrElement"),w&&(w.isFilePath||w.type==="list"&&w.element.isFilePath)?m(N):D==="paths"&&Hde(N.initializer,j=>{if(uu(j.initializer))for(let K of j.initializer.elements)y(K)})});return}});function m(S){let A=uu(S.initializer)?S.initializer.elements:[S.initializer],N=!1;for(let D of A)N=y(D)||N;return N}function y(S){if(!Da(S))return!1;let A=Ude(p,S.text),N=r(A);return N!==void 0?(t.replaceRangeWithText(d,Gxe(S,d),E(N)),!0):!1}function E(S){return _m(p,S,!l)}}function SUe(e,t,r,i,o,s){let l=e.getSourceFiles();for(let d of l){let p=r(d.fileName),h=p??d.fileName,m=oi(h),y=i(d.fileName),E=y||d.fileName,S=oi(E),A=p!==void 0||y!==void 0;IUe(d,t,N=>{if(!Lp(N))return;let D=Ude(S,N),w=r(D);return w===void 0?void 0:h0(_m(m,w,s))},N=>{let D=e.getTypeChecker().getSymbolAtLocation(N);if(D?.declarations&&D.declarations.some(j=>Md(j)))return;let w=y!==void 0?Bxe(N,KR(N.text,E,e.getCompilerOptions(),o),r,l):AUe(D,N,d,e,o,r);return w!==void 0&&(w.updated||A&&Lp(N.text))?eS.updateModuleSpecifier(e.getCompilerOptions(),d,h,w.newFileName,YT(e,o),N.text):void 0})}}function TUe(e,t){return ma(Yr(e,t))}function Ude(e,t){return h0(TUe(e,t))}function AUe(e,t,r,i,o,s){if(e){let l=Vr(e.declarations,Yi).fileName,d=s(l);return d===void 0?{newFileName:l,updated:!1}:{newFileName:d,updated:!0}}else{let l=i.getModeForUsageLocation(r,t),d=o.resolveModuleNameLiterals||!o.resolveModuleNames?i.getResolvedModuleFromModuleSpecifier(t):o.getResolvedModuleWithFailedLookupLocationsFromCache&&o.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,r.fileName,l);return Bxe(t,d,s,i.getSourceFiles())}}function Bxe(e,t,r,i){if(!t)return;if(t.resolvedModule){let p=d(t.resolvedModule.resolvedFileName);if(p)return p}let o=gn(t.failedLookupLocations,s)||Lp(e.text)&&gn(t.failedLookupLocations,l);if(o)return o;return t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function s(p){let h=r(p);return h&&Vr(i,m=>m.fileName===h)?l(p):void 0}function l(p){return El(p,"/package.json")?void 0:d(p)}function d(p){let h=r(p);return h&&{newFileName:h,updated:!0}}}function IUe(e,t,r,i){for(let o of e.referencedFiles||Xe){let s=r(o.fileName);s!==void 0&&s!==e.text.slice(o.pos,o.end)&&t.replaceRangeWithText(e,o,s)}for(let o of e.imports){let s=i(o);s!==void 0&&s!==o.text&&t.replaceRangeWithText(e,Gxe(o,e),s)}}function Gxe(e,t){return Ef(e.getStart(t)+1,e.end-1)}function Hde(e,t){if(Ma(e))for(let r of e.properties)mc(r)&&Da(r.name)&&t(r,r.name.text)}var xUe=bt({"src/services/getEditsForFileRename.ts"(){"use strict";ai()}});function oM(e,t){return{kind:e,isCaseSensitive:t}}function Kde(e){let t=new Map,r=e.trim().split(".").map(i=>NUe(i.trim()));if(r.length===1&&r[0].totalTextChunk.text==="")return{getMatchForLastSegmentOfPattern:()=>oM(2,!0),getFullMatch:()=>oM(2,!0),patternContainsDots:!1};if(!r.some(i=>!i.subWordTextChunks.length))return{getFullMatch:(i,o)=>RUe(i,o,r,t),getMatchForLastSegmentOfPattern:i=>Jde(i,Ja(r),t),patternContainsDots:r.length>1}}function RUe(e,t,r,i){if(!Jde(t,Ja(r),i)||r.length-1>e.length)return;let s;for(let l=r.length-2,d=e.length-1;l>=0;l-=1,d-=1)s=Uxe(s,Jde(e[d],r[l],i));return s}function Vxe(e,t){let r=t.get(e);return r||t.set(e,r=Zde(e)),r}function jxe(e,t,r){let i=PUe(e,t.textLowerCase);if(i===0)return oM(t.text.length===e.length?0:1,ao(e,t.text));if(t.isLowerCase){if(i===-1)return;let o=Vxe(e,r);for(let s of o)if(qde(e,s,t.text,!0))return oM(2,qde(e,s,t.text,!1));if(t.text.length0)return oM(2,!0);if(t.characterSpans.length>0){let o=Vxe(e,r),s=Hxe(e,o,t,!1)?!0:Hxe(e,o,t,!0)?!1:void 0;if(s!==void 0)return oM(3,s)}}}function Jde(e,t,r){if(NX(t.totalTextChunk.text,s=>s!==32&&s!==42)){let s=jxe(e,t.totalTextChunk,r);if(s)return s}let i=t.subWordTextChunks,o;for(let s of i)o=Uxe(o,jxe(e,s,r));return o}function Uxe(e,t){return jG([e,t],DUe)}function DUe(e,t){return e===void 0?1:t===void 0?-1:Zs(e.kind,t.kind)||bv(!e.isCaseSensitive,!t.isCaseSensitive)}function qde(e,t,r,i,o={start:0,length:r.length}){return o.length<=t.length&&Xxe(0,o.length,s=>CUe(r.charCodeAt(o.start+s),e.charCodeAt(t.start+s),i))}function CUe(e,t,r){return r?Xde(e)===Xde(t):e===t}function Hxe(e,t,r,i){let o=r.characterSpans,s=0,l=0,d,p;for(;;){if(l===o.length)return!0;if(s===t.length)return!1;let h=t[s],m=!1;for(;l=65&&e<=90)return!0;if(e<127||!qW(e,99))return!1;let t=String.fromCharCode(e);return t===t.toUpperCase()}function Kxe(e){if(e>=97&&e<=122)return!0;if(e<127||!qW(e,99))return!1;let t=String.fromCharCode(e);return t===t.toLowerCase()}function PUe(e,t){let r=e.length-t.length;for(let i=0;i<=r;i++)if(NX(t,(o,s)=>Xde(e.charCodeAt(s+i))===o))return i;return-1}function Xde(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function Yde(e){return e>=48&&e<=57}function MUe(e){return _D(e)||Kxe(e)||Yde(e)||e===95||e===36}function LUe(e){let t=[],r=0,i=0;for(let o=0;o0&&(t.push($de(e.substr(r,i))),i=0)}return i>0&&t.push($de(e.substr(r,i))),t}function $de(e){let t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:Qde(e)}}function Qde(e){return Jxe(e,!1)}function Zde(e){return Jxe(e,!0)}function Jxe(e,t){let r=[],i=0;for(let o=1;oeue(i)&&i!==95,t,r)}function kUe(e,t,r){return t!==r&&t+1t(e.charCodeAt(o),o))}var S7,OUe=bt({"src/services/patternMatcher.ts"(){"use strict";ai(),S7=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(S7||{})}});function Yxe(e,t=!0,r=!1){let i={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},o=[],s,l,d,p=0,h=!1;function m(){return l=d,d=Yd.scan(),d===19?p++:d===20&&p--,d}function y(){let B=Yd.getTokenValue(),ce=Yd.getTokenStart();return{fileName:B,pos:ce,end:ce+B.length}}function E(){s||(s=[]),s.push({ref:y(),depth:p})}function S(){o.push(y()),A()}function A(){p===0&&(h=!0)}function N(){let B=Yd.getToken();return B===138?(B=m(),B===144&&(B=m(),B===11&&E()),!0):!1}function D(){if(l===25)return!1;let B=Yd.getToken();if(B===102){if(B=m(),B===21){if(B=m(),B===11||B===15)return S(),!0}else{if(B===11)return S(),!0;if(B===156&&Yd.lookAhead(()=>{let z=Yd.scan();return z!==161&&(z===42||z===19||z===80||wu(z))})&&(B=m()),B===80||wu(B))if(B=m(),B===161){if(B=m(),B===11)return S(),!0}else if(B===64){if(j(!0))return!0}else if(B===28)B=m();else return!0;if(B===19){for(B=m();B!==20&&B!==1;)B=m();B===20&&(B=m(),B===161&&(B=m(),B===11&&S()))}else B===42&&(B=m(),B===130&&(B=m(),(B===80||wu(B))&&(B=m(),B===161&&(B=m(),B===11&&S()))))}return!0}return!1}function w(){let B=Yd.getToken();if(B===95){if(A(),B=m(),B===156&&Yd.lookAhead(()=>{let z=Yd.scan();return z===42||z===19})&&(B=m()),B===19){for(B=m();B!==20&&B!==1;)B=m();B===20&&(B=m(),B===161&&(B=m(),B===11&&S()))}else if(B===42)B=m(),B===161&&(B=m(),B===11&&S());else if(B===102&&(B=m(),B===156&&Yd.lookAhead(()=>{let z=Yd.scan();return z===80||wu(z)})&&(B=m()),(B===80||wu(B))&&(B=m(),B===64&&j(!0))))return!0;return!0}return!1}function j(B,ce=!1){let z=B?m():Yd.getToken();return z===149?(z=m(),z===21&&(z=m(),(z===11||ce&&z===15)&&S()),!0):!1}function K(){let B=Yd.getToken();if(B===80&&Yd.getTokenValue()==="define"){if(B=m(),B!==21)return!0;if(B=m(),B===11||B===15)if(B=m(),B===28)B=m();else return!0;if(B!==23)return!0;for(B=m();B!==24&&B!==1;)(B===11||B===15)&&S(),B=m();return!0}return!1}function Y(){for(Yd.setText(e),m();Yd.getToken()!==1;){if(Yd.getToken()===16){let B=[Yd.getToken()];e:for(;Nn(B);){let ce=Yd.scan();switch(ce){case 1:break e;case 102:D();break;case 16:B.push(ce);break;case 19:Nn(B)&&B.push(ce);break;case 20:Nn(B)&&($s(B)===16?Yd.reScanTemplateToken(!1)===18&&B.pop():B.pop());break}}m()}N()||D()||w()||r&&(j(!1,!0)||K())||m()}Yd.setText(void 0)}if(t&&Y(),NH(i,e),PH(i,qa),h){if(s)for(let B of s)o.push(B.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:void 0}}else{let B;if(s)for(let ce of s)ce.depth===0?(B||(B=[]),B.push(ce.ref.fileName)):o.push(ce.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:B}}}var WUe=bt({"src/services/preProcess.ts"(){"use strict";ai()}});function tue(e){let t=Nd(e.useCaseSensitiveFileNames()),r=e.getCurrentDirectory(),i=new Map,o=new Map;return{tryGetSourcePosition:d,tryGetGeneratedPosition:p,toLineColumnOffset:E,clearCache:S};function s(A){return tl(A,r,t)}function l(A,N){let D=s(A),w=o.get(D);if(w)return w;let j;if(e.getDocumentPositionMapper)j=e.getDocumentPositionMapper(A,N);else if(e.readFile){let K=y(A);j=K&&PX({getSourceFileLike:y,getCanonicalFileName:t,log:Y=>e.log(Y)},A,AK(K.text,Dg(K)),Y=>!e.fileExists||e.fileExists(Y)?e.readFile(Y):void 0)}return o.set(D,j||O3),j||O3}function d(A){if(!Ed(A.fileName)||!h(A.fileName))return;let D=l(A.fileName).getSourcePosition(A);return!D||D===A?void 0:d(D)||D}function p(A){if(Ed(A.fileName))return;let N=h(A.fileName);if(!N)return;let D=e.getProgram();if(D.isSourceOfProjectReferenceRedirect(N.fileName))return;let w=D.getCompilerOptions(),j=xs(w),K=j?Eu(j)+".d.ts":o6(A.fileName,D.getCompilerOptions(),r,D.getCommonSourceDirectory(),t);if(K===void 0)return;let Y=l(K,A.fileName).getGeneratedPosition(A);return Y===A?void 0:Y}function h(A){let N=e.getProgram();if(!N)return;let D=s(A),w=N.getSourceFileByPath(D);return w&&w.resolvedPath===D?w:void 0}function m(A){let N=s(A),D=i.get(N);if(D!==void 0)return D||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(A)){i.set(N,!1);return}let w=e.readFile(A),j=w?FUe(w):!1;return i.set(N,j),j||void 0}function y(A){return e.getSourceFileLike?e.getSourceFileLike(A):h(A)||m(A)}function E(A,N){return y(A).getLineAndCharacterOfPosition(N)}function S(){i.clear(),o.clear()}}function PX(e,t,r,i){let o=Jse(r);if(o){let d=Qxe.exec(o);if(d){if(d[1]){let p=d[1];return $xe(e,Jie(hd,p),t)}o=void 0}}let s=[];o&&s.push(o),s.push(t+".map");let l=o&&ho(o,oi(t));for(let d of s){let p=ho(d,oi(t)),h=i(p,l);if(No(h))return $xe(e,h,p);if(h!==void 0)return h||void 0}}function $xe(e,t,r){let i=IK(t);if(!(!i||!i.sources||!i.file||!i.mappings)&&!(i.sourcesContent&&i.sourcesContent.some(No)))return Yse(e,i,r)}function FUe(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(r){return Nx(Dg(this),r)}}}var Qxe,zUe=bt({"src/services/sourcemaps.ts"(){"use strict";ai(),Qxe=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/}});function MX(e,t,r){var i;t.getSemanticDiagnostics(e,r);let o=[],s=t.getTypeChecker();!(e.impliedNodeFormat===1||bc(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(fde(t)||Gq(t.getCompilerOptions()))&&BUe(e)&&o.push(Pr(UUe(e.commonJsModuleIndicator),f.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));let d=su(e);if(OX.clear(),p(e),RT(t.getCompilerOptions()))for(let h of e.imports){let m=yN(h),y=GUe(m);if(!y)continue;let E=(i=t.getResolvedModuleFromModuleSpecifier(h))==null?void 0:i.resolvedModule,S=E&&t.getSourceFile(E.resolvedFileName);S&&S.externalModuleIndicator&&S.externalModuleIndicator!==!0&&Ll(S.externalModuleIndicator)&&S.externalModuleIndicator.isExportEquals&&o.push(Pr(y,f.Import_may_be_converted_to_a_default_import))}return Hr(o,e.bindSuggestionDiagnostics),Hr(o,t.getSuggestionDiagnostics(e,r)),o.sort((h,m)=>h.start-m.start);function p(h){if(d)KUe(h,s)&&o.push(Pr(wi(h.parent)?h.parent.name:h,f.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(Ml(h)&&h.parent===e&&h.declarationList.flags&2&&h.declarationList.declarations.length===1){let y=h.declarationList.declarations[0].initializer;y&&bu(y,!0)&&o.push(Pr(y,f.require_call_may_be_converted_to_an_import))}let m=Od.getJSDocTypedefNodes(h);for(let y of m)o.push(Pr(y,f.JSDoc_typedef_may_be_converted_to_TypeScript_type));Od.parameterShouldGetTypeFromJSDoc(h)&&o.push(Pr(h.name||h,f.JSDoc_types_may_be_moved_to_TypeScript_types))}wX(h)&&VUe(h,s,o),h.forEachChild(p)}}function BUe(e){return e.statements.some(t=>{switch(t.kind){case 243:return t.declarationList.declarations.some(r=>!!r.initializer&&bu(Zxe(r.initializer),!0));case 244:{let{expression:r}=t;if(!dr(r))return bu(r,!0);let i=zl(r);return i===1||i===2}default:return!1}})}function Zxe(e){return kr(e)?Zxe(e.expression):e}function GUe(e){switch(e.kind){case 272:let{importClause:t,moduleSpecifier:r}=e;return t&&!t.name&&t.namedBindings&&t.namedBindings.kind===274&&Da(r)?t.namedBindings.name:void 0;case 271:return e.name;default:return}}function VUe(e,t,r){jUe(e,t)&&!OX.has(rRe(e))&&r.push(Pr(!e.name&&wi(e.parent)&&Fe(e.parent.name)?e.parent.name:e,f.This_may_be_converted_to_an_async_function))}function jUe(e,t){return!SN(e)&&e.body&&Ko(e.body)&&HUe(e.body,t)&&LX(e,t)}function LX(e,t){let r=t.getSignatureFromDeclaration(e),i=r?t.getReturnTypeOfSignature(r):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}function UUe(e){return dr(e)?e.left:e}function HUe(e,t){return!!I0(e,r=>T7(r,t))}function T7(e,t){return Sm(e)&&!!e.expression&&kX(e.expression,t)}function kX(e,t){if(!eRe(e)||!tRe(e)||!e.arguments.every(i=>nRe(i,t)))return!1;let r=e.expression.expression;for(;eRe(r)||kr(r);)if(ia(r)){if(!tRe(r)||!r.arguments.every(i=>nRe(i,t)))return!1;r=r.expression.expression}else r=r.expression;return!0}function eRe(e){return ia(e)&&(Hw(e,"then")||Hw(e,"catch")||Hw(e,"finally"))}function tRe(e){let t=e.expression.name.text,r=t==="then"?2:t==="catch"||t==="finally"?1:0;return e.arguments.length>r?!1:e.arguments.lengthi.kind===106||Fe(i)&&i.text==="undefined")}function nRe(e,t){switch(e.kind){case 262:case 218:if(Vc(e)&1)return!1;case 219:OX.set(rRe(e),!0);case 106:return!0;case 80:case 211:{let i=t.getSymbolAtLocation(e);return i?t.isUndefinedSymbol(i)||gt(vd(i,t).declarations,o=>$o(o)||Mv(o)&&!!o.initializer&&$o(o.initializer)):!1}default:return!1}}function rRe(e){return`${e.pos.toString()}:${e.end.toString()}`}function KUe(e,t){var r,i,o,s;if(Ps(e)){if(wi(e.parent)&&((r=e.symbol.members)!=null&&r.size))return!0;let l=t.getSymbolOfExpando(e,!1);return!!(l&&((i=l.exports)!=null&&i.size||(o=l.members)!=null&&o.size))}return Ec(e)?!!((s=e.symbol.members)!=null&&s.size):!1}function wX(e){switch(e.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var OX,JUe=bt({"src/services/suggestionDiagnostics.ts"(){"use strict";ai(),OX=new Map}});function nue(e,t){let r=[],i=t.compilerOptions?WX(t.compilerOptions,r):{},o=H7();for(let E in o)Ss(o,E)&&i[E]===void 0&&(i[E]=o[E]);for(let E of YH)i.verbatimModuleSyntax&&oRe.has(E.name)||(i[E.name]=E.transpileOptionValue);i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0;let s=wy(i),l={getSourceFile:E=>E===ma(d)?p:void 0,writeFile:(E,S)=>{Sl(E,".map")?(x.assertEqual(m,void 0,"Unexpected multiple source map outputs, file:",E),m=S):(x.assertEqual(h,void 0,"Unexpected multiple outputs, file:",E),h=S)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:E=>E,getCurrentDirectory:()=>"",getNewLine:()=>s,fileExists:E=>E===d,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},d=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),p=Yk(d,e,{languageVersion:ns(i),impliedNodeFormat:Lw(tl(d,"",l.getCanonicalFileName),void 0,l,i),setExternalModuleIndicator:ok(i),jsDocParsingMode:t.jsDocParsingMode??0});t.moduleName&&(p.moduleName=t.moduleName),t.renamedDependencies&&(p.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let h,m,y=iz([d],i,l);return t.reportDiagnostics&&(Hr(r,y.getSyntacticDiagnostics(p)),Hr(r,y.getOptionsDiagnostics())),y.emit(void 0,void 0,void 0,void 0,t.transformers),h===void 0?x.fail("Output generation failed"):{outputText:h,diagnostics:r,sourceMapText:m}}function iRe(e,t,r,i,o){let s=nue(e,{compilerOptions:t,fileName:r,reportDiagnostics:!!i,moduleName:o});return Hr(i,s.diagnostics),s.outputText}function WX(e,t){rue=rue||jr(og,r=>typeof r.type=="object"&&!Gc(r.type,i=>typeof i!="number")),e=wq(e);for(let r of rue){if(!Ss(e,r.name))continue;let i=e[r.name];No(i)?e[r.name]=i3(r,i,t):Gc(r.type,o=>o===i)||t.push(qae(r))}return e}var oRe,rue,qUe=bt({"src/services/transpile.ts"(){"use strict";ai(),oRe=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function aRe(e,t,r,i,o,s,l){let d=Kde(i);if(!d)return Xe;let p=[],h=e.length===1?e[0]:void 0;for(let m of e)r.throwIfCancellationRequested(),!(s&&m.isDeclarationFile)&&(sRe(m,!!l,h)||m.getNamedDeclarations().forEach((y,E)=>{XUe(d,E,y,t,m.fileName,!!l,h,p)}));return p.sort(ZUe),(o===void 0?p:p.slice(0,o)).map(eHe)}function sRe(e,t,r){return e!==r&&t&&(uO(e.path)||e.hasNoDefaultLib)}function XUe(e,t,r,i,o,s,l,d){let p=e.getMatchForLastSegmentOfPattern(t);if(p){for(let h of r)if(YUe(h,i,s,l))if(e.patternContainsDots){let m=e.getFullMatch(QUe(h),t);m&&d.push({name:t,fileName:o,matchKind:m.kind,isCaseSensitive:m.isCaseSensitive,declaration:h})}else d.push({name:t,fileName:o,matchKind:p.kind,isCaseSensitive:p.isCaseSensitive,declaration:h})}}function YUe(e,t,r,i){var o;switch(e.kind){case 273:case 276:case 271:let s=t.getSymbolAtLocation(e.name),l=t.getAliasedSymbol(s);return s.escapedName!==l.escapedName&&!((o=l.declarations)!=null&&o.every(d=>sRe(d.getSourceFile(),r,i)));default:return!0}}function $Ue(e,t){let r=Po(e);return!!r&&(lRe(r,t)||r.kind===167&&iue(r.expression,t))}function iue(e,t){return lRe(e,t)||kr(e)&&(t.push(e.name.text),!0)&&iue(e.expression,t)}function lRe(e,t){return T_(e)&&(t.push(Xf(e)),!0)}function QUe(e){let t=[],r=Po(e);if(r&&r.kind===167&&!iue(r.expression,t))return Xe;t.shift();let i=XT(e);for(;i;){if(!$Ue(i,t))return Xe;i=XT(i)}return t.reverse()}function ZUe(e,t){return Zs(e.matchKind,t.matchKind)||IL(e.name,t.name)}function eHe(e){let t=e.declaration,r=XT(t),i=r&&Po(r);return{name:e.name,kind:oS(t),kindModifiers:XP(t),matchKind:S7[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:Iu(t),containerName:i?i.text:"",containerKind:i?oS(r):""}}var tHe=bt({"src/services/navigateTo.ts"(){"use strict";ai()}}),oue={};xa(oue,{getNavigateToItems:()=>aRe});var cRe=bt({"src/services/_namespaces/ts.NavigateTo.ts"(){"use strict";tHe()}});function dRe(e,t){GX=t,_O=e;try{return mn(aHe(mRe(e)),sHe)}finally{pRe()}}function uRe(e,t){GX=t,_O=e;try{return TRe(mRe(e))}finally{pRe()}}function pRe(){_O=void 0,GX=void 0,hO=[],Jy=void 0,VX=[]}function A7(e){return aM(e.getText(_O))}function FX(e){return e.node.kind}function fRe(e,t){e.children?e.children.push(t):e.children=[t]}function mRe(e){x.assert(!hO.length);let t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};Jy=t;for(let r of e.statements)S1(r);return RE(),x.assert(!Jy&&!hO.length),t}function lS(e,t){fRe(Jy,aue(e,t))}function aue(e,t){return{node:e,name:t||(Hd(e)||ht(e)?Po(e):void 0),additionalNodes:void 0,parent:Jy,children:void 0,indent:Jy.indent+1}}function _Re(e){hD||(hD=new Map),hD.set(e,!0)}function hRe(e){for(let t=0;t0;i--){let o=r[i];cS(e,o)}return[r.length-1,r[0]]}function cS(e,t){let r=aue(e,t);fRe(Jy,r),hO.push(Jy),mue.push(hD),hD=void 0,Jy=r}function RE(){Jy.children&&(zX(Jy.children,Jy),cue(Jy.children)),Jy=hO.pop(),hD=mue.pop()}function DE(e,t,r){cS(e,r),S1(t),RE()}function yRe(e){e.initializer&&cHe(e.initializer)?(cS(e),Go(e.initializer,S1),RE()):DE(e,e.initializer)}function sue(e){let t=Po(e);if(t===void 0)return!1;if(Ya(t)){let r=t.expression;return Bl(r)||mp(r)||$p(r)}return!!t}function S1(e){if(GX.throwIfCancellationRequested(),!(!e||gI(e)))switch(e.kind){case 176:let t=e;DE(t,t.body);for(let l of t.parameters)dp(l,t)&&lS(l);break;case 174:case 177:case 178:case 173:sue(e)&&DE(e,e.body);break;case 172:sue(e)&&yRe(e);break;case 171:sue(e)&&lS(e);break;case 273:let r=e;r.name&&lS(r.name);let{namedBindings:i}=r;if(i)if(i.kind===274)lS(i);else for(let l of i.elements)lS(l);break;case 304:DE(e,e.name);break;case 305:let{expression:o}=e;Fe(o)?lS(e,o):lS(e);break;case 208:case 303:case 260:{let l=e;Qo(l.name)?S1(l.name):yRe(l);break}case 262:let s=e.name;s&&Fe(s)&&_Re(s.text),DE(e,e.body);break;case 219:case 218:DE(e,e.body);break;case 266:cS(e);for(let l of e.members)lHe(l)||lS(l);RE();break;case 263:case 231:case 264:cS(e);for(let l of e.members)S1(l);RE();break;case 267:DE(e,IRe(e).body);break;case 277:{let l=e.expression,d=Ma(l)||ia(l)?l:Os(l)||Ps(l)?l.body:void 0;d?(cS(e),S1(d),RE()):lS(e);break}case 281:case 271:case 181:case 179:case 180:case 265:lS(e);break;case 213:case 226:{let l=zl(e);switch(l){case 1:case 2:DE(e,e.right);return;case 6:case 3:{let d=e,p=d.left,h=l===3?p.expression:p,m=0,y;Fe(h.expression)?(_Re(h.expression.text),y=h.expression):[m,y]=gRe(d,h.expression),l===6?Ma(d.right)&&d.right.properties.length>0&&(cS(d,y),Go(d.right,S1),RE()):Ps(d.right)||Os(d.right)?DE(e,d.right,y):(cS(d,y),DE(e,d.right,p.name),RE()),hRe(m);return}case 7:case 9:{let d=e,p=l===7?d.arguments[0]:d.arguments[0].expression,h=d.arguments[1],[m,y]=gRe(e,p);cS(e,y),cS(e,at(L.createIdentifier(h.text),h)),S1(e.arguments[2]),RE(),RE(),hRe(m);return}case 5:{let d=e,p=d.left,h=p.expression;if(Fe(h)&&Lg(p)!=="prototype"&&hD&&hD.has(h.text)){Ps(d.right)||Os(d.right)?DE(e,d.right,h):D0(p)&&(cS(d,h),DE(d.left,d.right,M2(p)),RE());return}break}case 4:case 0:case 8:break;default:x.assertNever(l)}}default:kp(e)&&gn(e.jsDoc,l=>{gn(l.tags,d=>{qf(d)&&lS(d)})}),Go(e,S1)}}function zX(e,t){let r=new Map;CG(e,(i,o)=>{let s=i.name||Po(i.node),l=s&&A7(s);if(!l)return!0;let d=r.get(l);if(!d)return r.set(l,i),!0;if(d instanceof Array){for(let p of d)if(vRe(p,i,o,t))return!1;return d.push(i),!0}else{let p=d;return vRe(p,i,o,t)?!1:(r.set(l,[p,i]),!0)}})}function nHe(e,t,r,i){function o(d){return Ps(d)||Ec(d)||wi(d)}let s=dr(t.node)||ia(t.node)?zl(t.node):0,l=dr(e.node)||ia(e.node)?zl(e.node):0;if(sM[s]&&sM[l]||o(e.node)&&sM[s]||o(t.node)&&sM[l]||Sc(e.node)&&lue(e.node)&&sM[s]||Sc(t.node)&&sM[l]||Sc(e.node)&&lue(e.node)&&o(t.node)||Sc(t.node)&&o(e.node)&&lue(e.node)){let d=e.additionalNodes&&$s(e.additionalNodes)||e.node;if(!Sc(e.node)&&!Sc(t.node)||o(e.node)||o(t.node)){let h=o(e.node)?e.node:o(t.node)?t.node:void 0;if(h!==void 0){let m=at(L.createConstructorDeclaration(void 0,[],void 0),h),y=aue(m);y.indent=e.indent+1,y.children=e.node===h?e.children:t.children,e.children=e.node===h?Eo([y],t.children||[t]):Eo(e.children||[{...e}],[y])}else(e.children||t.children)&&(e.children=Eo(e.children||[{...e}],t.children||[t]),e.children&&(zX(e.children,e),cue(e.children)));d=e.node=at(L.createClassDeclaration(void 0,e.name||L.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=Eo(e.children,t.children),e.children&&zX(e.children,e);let p=t.node;return i.children[r-1].node.end===d.end?at(d,{pos:d.pos,end:p.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(at(L.createClassDeclaration(void 0,e.name||L.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return s!==0}function vRe(e,t,r,i){return nHe(e,t,r,i)?!0:rHe(e.node,t.node,i)?(iHe(e,t),!0):!1}function rHe(e,t,r){if(e.kind!==t.kind||e.parent!==t.parent&&!(bRe(e,r)&&bRe(t,r)))return!1;switch(e.kind){case 172:case 174:case 177:case 178:return ra(e)===ra(t);case 267:return ERe(e,t)&&pue(e)===pue(t);default:return!0}}function lue(e){return!!(e.flags&16)}function bRe(e,t){let r=N_(e.parent)?e.parent.parent:e.parent;return r===t.node||Bo(t.additionalNodes,r)}function ERe(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==267||ERe(e.body,t.body))}function iHe(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes),e.children=Eo(e.children,t.children),e.children&&(zX(e.children,e),cue(e.children))}function cue(e){e.sort(oHe)}function oHe(e,t){return IL(SRe(e.node),SRe(t.node))||Zs(FX(e),FX(t))}function SRe(e){if(e.kind===267)return ARe(e);let t=Po(e);if(t&&rc(t)){let r=bT(t);return r&&Vi(r)}switch(e.kind){case 218:case 219:case 231:return RRe(e);default:return}}function due(e,t){if(e.kind===267)return aM(ARe(e));if(t){let r=Fe(t)?t.text:Js(t)?`[${A7(t.argumentExpression)}]`:A7(t);if(r.length>0)return aM(r)}switch(e.kind){case 312:let r=e;return oc(r)?`"${Qh(nc(Eu(ma(r.fileName))))}"`:"";case 277:return Ll(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return Wv(e)&2048?"default":RRe(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return""}}function aHe(e){let t=[];function r(o){if(i(o)&&(t.push(o),o.children))for(let s of o.children)r(s)}return r(e),t;function i(o){if(o.children)return!0;switch(FX(o)){case 263:case 231:case 266:case 264:case 267:case 312:case 265:case 353:case 345:return!0;case 219:case 262:case 218:return s(o);default:return!1}function s(l){if(!l.node.body)return!1;switch(FX(l.parent)){case 268:case 312:case 174:case 176:return!0;default:return!1}}}}function TRe(e){return{text:due(e.node,e.name),kind:oS(e.node),kindModifiers:xRe(e.node),spans:uue(e),nameSpan:e.name&&fue(e.name),childItems:mn(e.children,TRe)}}function sHe(e){return{text:due(e.node,e.name),kind:oS(e.node),kindModifiers:xRe(e.node),spans:uue(e),childItems:mn(e.children,t)||VX,indent:e.indent,bolded:!1,grayed:!1};function t(r){return{text:due(r.node,r.name),kind:oS(r.node),kindModifiers:XP(r.node),spans:uue(r),childItems:VX,indent:0,bolded:!1,grayed:!1}}}function uue(e){let t=[fue(e.node)];if(e.additionalNodes)for(let r of e.additionalNodes)t.push(fue(r));return t}function ARe(e){return Md(e)?uc(e.name):pue(e)}function pue(e){let t=[Xf(e.name)];for(;e.body&&e.body.kind===267;)e=e.body,t.push(Xf(e.name));return t.join(".")}function IRe(e){return e.body&&ql(e.body)?IRe(e.body):e}function lHe(e){return!e.name||e.name.kind===167}function fue(e){return e.kind===312?eb(e):Iu(e,_O)}function xRe(e){return e.parent&&e.parent.kind===260&&(e=e.parent),XP(e)}function RRe(e){let{parent:t}=e;if(e.name&&u2(e.name)>0)return aM(Ts(e.name));if(wi(t))return aM(Ts(t.name));if(dr(t)&&t.operatorToken.kind===64)return A7(t.left).replace(CRe,"");if(mc(t))return A7(t.name);if(Wv(e)&2048)return"default";if(ci(e))return"";if(ia(t)){let r=DRe(t.expression);if(r!==void 0){if(r=aM(r),r.length>BX)return`${r} callback`;let i=aM(to(t.arguments,o=>as(o)||EI(o)?o.getText(_O):void 0).join(", "));return`${r}(${i}) callback`}}return""}function DRe(e){if(Fe(e))return e.text;if(kr(e)){let t=DRe(e.expression),r=e.name.text;return t===void 0?r:`${t}.${r}`}else return}function cHe(e){switch(e.kind){case 219:case 218:case 231:return!0;default:return!1}}function aM(e){return e=e.length>BX?e.substring(0,BX)+"...":e,e.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var CRe,BX,GX,_O,hO,Jy,mue,hD,VX,sM,dHe=bt({"src/services/navigationBar.ts"(){"use strict";ai(),CRe=/\s+/g,BX=150,hO=[],mue=[],VX=[],sM={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),_ue={};xa(_ue,{getNavigationBarItems:()=>dRe,getNavigationTree:()=>uRe});var NRe=bt({"src/services/_namespaces/ts.NavigationBar.ts"(){"use strict";dHe()}});function ag(e,t){jX.set(e,t)}function uHe(e,t){return Wo(NG(jX.values(),r=>{var i;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((i=r.kinds)!=null&&i.some(o=>CE(o,e.kind)))?void 0:r.getAvailableActions(e,t)}))}function pHe(e,t,r,i){let o=jX.get(t);return o&&o.getEditsForAction(e,r,i)}var jX,PRe=bt({"src/services/refactorProvider.ts"(){"use strict";ai(),Sh(),jX=new Map}});function MRe(e,t=!0){let{file:r,program:i}=e,o=E1(e),s=so(r,o.start),l=s.parent&&Wv(s.parent)&32&&t?s.parent:iO(s,r,o);if(!l||!Yi(l.parent)&&!(N_(l.parent)&&Md(l.parent.parent)))return{error:wo(f.Could_not_find_export_statement)};let d=i.getTypeChecker(),p=yHe(l.parent,d),h=Wv(l)||(Ll(l)&&!l.isExportEquals?2080:0),m=!!(h&2048);if(!(h&32)||!m&&p.exports.has("default"))return{error:wo(f.This_file_already_has_a_default_export)};let y=E=>Fe(E)&&d.getSymbolAtLocation(E)?void 0:{error:wo(f.Can_only_convert_named_export)};switch(l.kind){case 262:case 263:case 264:case 266:case 265:case 267:{let E=l;return E.name?y(E.name)||{exportNode:E,exportName:E.name,wasDefault:m,exportingModuleSymbol:p}:void 0}case 243:{let E=l;if(!(E.declarationList.flags&2)||E.declarationList.declarations.length!==1)return;let S=Va(E.declarationList.declarations);return S.initializer?(x.assert(!m,"Can't have a default flag here"),y(S.name)||{exportNode:E,exportName:S.name,wasDefault:m,exportingModuleSymbol:p}):void 0}case 277:{let E=l;return E.isExportEquals?void 0:y(E.expression)||{exportNode:E,exportName:E.expression,wasDefault:m,exportingModuleSymbol:p}}default:return}}function fHe(e,t,r,i,o){mHe(e,r,i,t.getTypeChecker()),_He(t,r,i,o)}function mHe(e,{wasDefault:t,exportNode:r,exportName:i},o,s){if(t)if(Ll(r)&&!r.isExportEquals){let l=r.expression,d=LRe(l.text,l.text);o.replaceNode(e,r,L.createExportDeclaration(void 0,!1,L.createNamedExports([d])))}else o.delete(e,x.checkDefined(dD(r,90),"Should find a default keyword in modifier list"));else{let l=x.checkDefined(dD(r,95),"Should find an export keyword in modifier list");switch(r.kind){case 262:case 263:case 264:o.insertNodeAfter(e,l,L.createToken(90));break;case 243:let d=Va(r.declarationList.declarations);if(!Ms.Core.isSymbolReferencedInFile(i,s,e)&&!d.type){o.replaceNode(e,r,L.createExportDefault(x.checkDefined(d.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:o.deleteModifier(e,l),o.insertNodeAfter(e,r,L.createExportDefault(L.createIdentifier(i.text)));break;default:x.fail(`Unexpected exportNode kind ${r.kind}`)}}}function _He(e,{wasDefault:t,exportName:r,exportingModuleSymbol:i},o,s){let l=e.getTypeChecker(),d=x.checkDefined(l.getSymbolAtLocation(r),"Export name should resolve to a symbol");Ms.Core.eachExportReference(e.getSourceFiles(),l,s,d,i,r.text,t,p=>{if(r===p)return;let h=p.getSourceFile();t?hHe(h,p,o,r.text):gHe(h,p,o)})}function hHe(e,t,r,i){let{parent:o}=t;switch(o.kind){case 211:r.replaceNode(e,t,L.createIdentifier(i));break;case 276:case 281:{let l=o;r.replaceNode(e,l,hue(i,l.name.text));break}case 273:{let l=o;x.assert(l.name===t,"Import clause name should match provided ref");let d=hue(i,t.text),{namedBindings:p}=l;if(!p)r.replaceNode(e,t,L.createNamedImports([d]));else if(p.kind===274){r.deleteRange(e,{pos:t.getStart(e),end:p.getStart(e)});let h=Da(l.parent.moduleSpecifier)?jq(l.parent.moduleSpecifier,e):1,m=Hy(void 0,[hue(i,t.text)],l.parent.moduleSpecifier,h);r.insertNodeAfter(e,l.parent,m)}else r.delete(e,t),r.insertNodeAtEndOfList(e,p.elements,d);break}case 205:let s=o;r.replaceNode(e,o,L.createImportTypeNode(s.argument,s.attributes,L.createIdentifier(i),s.typeArguments,s.isTypeOf));break;default:x.failBadSyntaxKind(o)}}function gHe(e,t,r){let i=t.parent;switch(i.kind){case 211:r.replaceNode(e,t,L.createIdentifier("default"));break;case 276:{let o=L.createIdentifier(i.name.text);i.parent.elements.length===1?r.replaceNode(e,i.parent,o):(r.delete(e,i),r.insertNodeBefore(e,i.parent,o));break}case 281:{r.replaceNode(e,i,LRe("default",i.name.text));break}default:x.assertNever(i,`Unexpected parent kind ${i.kind}`)}}function hue(e,t){return L.createImportSpecifier(!1,e===t?void 0:L.createIdentifier(e),L.createIdentifier(t))}function LRe(e,t){return L.createExportSpecifier(!1,e===t?void 0:L.createIdentifier(e),L.createIdentifier(t))}function yHe(e,t){if(Yi(e))return e.symbol;let r=e.parent.symbol;return r.valueDeclaration&&T0(r.valueDeclaration)?t.getMergedSymbol(r):r}var UX,I7,x7,vHe=bt({"src/services/refactors/convertExport.ts"(){"use strict";ai(),Sh(),UX="Convert export",I7={name:"Convert default export to named export",description:wo(f.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},x7={name:"Convert named export to default export",description:wo(f.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"},ag(UX,{kinds:[I7.kind,x7.kind],getAvailableActions:function(t){let r=MRe(t,t.triggerReason==="invoked");if(!r)return Xe;if(!jg(r)){let i=r.wasDefault?I7:x7;return[{name:UX,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:UX,description:wo(f.Convert_default_export_to_named_export),actions:[{...I7,notApplicableReason:r.error},{...x7,notApplicableReason:r.error}]}]:Xe},getEditsForAction:function(t,r){x.assert(r===I7.name||r===x7.name,"Unexpected action name");let i=MRe(t);return x.assert(i&&!jg(i),"Expected applicable refactor info"),{edits:ur.ChangeTracker.with(t,s=>fHe(t.file,t.program,i,s,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}})}});function kRe(e,t=!0){let{file:r}=e,i=E1(e),o=so(r,i.start),s=t?Fn(o,Lc):iO(o,r,i);if(!s||!Lc(s))return{error:"Selection is not an import declaration."};let l=i.start+i.length,d=aS(s,s.parent,r);if(d&&l>d.getStart())return;let{importClause:p}=s;return p?p.namedBindings?p.namedBindings.kind===274?{convertTo:0,import:p.namedBindings}:wRe(e.program,p)?{convertTo:1,import:p.namedBindings}:{convertTo:2,import:p.namedBindings}:{error:wo(f.Could_not_find_namespace_import_or_named_imports)}:{error:wo(f.Could_not_find_import_clause)}}function wRe(e,t){return RT(e.getCompilerOptions())&&THe(t.parent.moduleSpecifier,e.getTypeChecker())}function bHe(e,t,r,i){let o=t.getTypeChecker();i.convertTo===0?EHe(e,o,r,i.import,RT(t.getCompilerOptions())):WRe(e,t,r,i.import,i.convertTo===1)}function EHe(e,t,r,i,o){let s=!1,l=[],d=new Map;Ms.Core.eachSymbolReferenceInFile(i.name,t,e,y=>{if(!mre(y.parent))s=!0;else{let E=ORe(y.parent).text;t.resolveName(E,y,-1,!0)&&d.set(E,!0),x.assert(SHe(y.parent)===y,"Parent expression should match id"),l.push(y.parent)}});let p=new Map;for(let y of l){let E=ORe(y).text,S=p.get(E);S===void 0&&p.set(E,S=d.has(E)?QT(E,e):E),r.replaceNode(e,y,L.createIdentifier(S))}let h=[];p.forEach((y,E)=>{h.push(L.createImportSpecifier(!1,y===E?void 0:L.createIdentifier(E),L.createIdentifier(y)))});let m=i.parent.parent;s&&!o?r.insertNodeAfter(e,m,gue(m,void 0,h)):r.replaceNode(e,m,gue(m,s?L.createIdentifier(i.name.text):void 0,h))}function ORe(e){return kr(e)?e.name:e.right}function SHe(e){return kr(e)?e.expression:e.left}function WRe(e,t,r,i,o=wRe(t,i.parent)){let s=t.getTypeChecker(),l=i.parent.parent,{moduleSpecifier:d}=l,p=new Set;i.elements.forEach(A=>{let N=s.getSymbolAtLocation(A.name);N&&p.add(N)});let h=d&&Da(d)?Od.moduleSpecifierToValidIdentifier(d.text,99):"module";function m(A){return!!Ms.Core.eachSymbolReferenceInFile(A.name,s,e,N=>{let D=s.resolveName(h,N,-1,!0);return D?p.has(D)?Kd(N.parent):!0:!1})}let E=i.elements.some(m)?QT(h,e):h,S=new Set;for(let A of i.elements){let N=(A.propertyName||A.name).text;Ms.Core.eachSymbolReferenceInFile(A.name,s,e,D=>{let w=L.createPropertyAccessExpression(L.createIdentifier(E),N);Zu(D.parent)?r.replaceNode(e,D.parent,L.createPropertyAssignment(D.text,w)):Kd(D.parent)?S.add(A):r.replaceNode(e,D,w)})}if(r.replaceNode(e,i,o?L.createIdentifier(E):L.createNamespaceImport(L.createIdentifier(E))),S.size){let A=Wo(S.values(),N=>L.createImportSpecifier(N.isTypeOnly,N.propertyName&&L.createIdentifier(N.propertyName.text),L.createIdentifier(N.name.text)));r.insertNodeAfter(e,i.parent.parent,gue(l,void 0,A))}}function THe(e,t){let r=t.resolveExternalModuleName(e);if(!r)return!1;let i=t.resolveExternalModuleSymbol(r);return r!==i}function gue(e,t,r){return L.createImportDeclaration(void 0,L.createImportClause(!1,t,r&&r.length?L.createNamedImports(r):void 0),e.moduleSpecifier,void 0)}var HX,R7,AHe=bt({"src/services/refactors/convertImport.ts"(){"use strict";ai(),Sh(),HX="Convert import",R7={0:{name:"Convert namespace import to named imports",description:wo(f.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:wo(f.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:wo(f.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}},ag(HX,{kinds:cI(R7).map(e=>e.kind),getAvailableActions:function(t){let r=kRe(t,t.triggerReason==="invoked");if(!r)return Xe;if(!jg(r)){let i=R7[r.convertTo];return[{name:HX,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?cI(R7).map(i=>({name:HX,description:i.description,actions:[{...i,notApplicableReason:r.error}]})):Xe},getEditsForAction:function(t,r){x.assert(gt(cI(R7),s=>s.name===r),"Unexpected action name");let i=kRe(t);return x.assert(i&&!jg(i),"Expected applicable refactor info"),{edits:ur.ChangeTracker.with(t,s=>bHe(t.file,t.program,s,i)),renameFilename:void 0,renameLocation:void 0}}})}});function FRe(e,t=!0){let{file:r,startPosition:i}=e,o=su(r),s=Hz(E1(e)),l=s.pos===s.end&&t,d=IHe(r,i,s,l);if(!d||!ji(d))return{error:wo(f.Selection_is_not_a_valid_type_node)};let p=e.program.getTypeChecker(),h=NHe(d,o);if(h===void 0)return{error:wo(f.No_type_could_be_extracted_from_this_type_node)};let m=PHe(d,h);if(!ji(m))return{error:wo(f.Selection_is_not_a_valid_type_node)};let y=[];(Hv(m.parent)||QI(m.parent))&&s.end>d.end&&Hr(y,m.parent.types.filter(N=>wz(N,r,s.pos,s.end)));let E=y.length>1?y:m,S=xHe(p,E,h,r);if(!S)return{error:wo(f.No_type_could_be_extracted_from_this_type_node)};let A=KX(p,E);return{isJS:o,selection:E,enclosingNode:h,typeParameters:S,typeElements:A}}function IHe(e,t,r,i){let o=[()=>so(e,t),()=>lD(e,t,()=>!0)];for(let s of o){let l=s(),d=wz(l,e,r.pos,r.end),p=Fn(l,h=>h.parent&&ji(h)&&!dS(r,h.parent,e)&&(i||d));if(p)return p}}function KX(e,t){if(t){if(To(t)){let r=[];for(let i of t){let o=KX(e,i);if(!o)return;Hr(r,o)}return r}if(QI(t)){let r=[],i=new Map;for(let o of t.types){let s=KX(e,o);if(!s||!s.every(l=>l.name&&Em(i,nO(l.name))))return;Hr(r,s)}return r}else{if(NT(t))return KX(e,t.type);if(gp(t))return t.members}}}function dS(e,t,r){return Xw(e,Na(r.text,t.pos),t.end)}function xHe(e,t,r,i){let o=[],s=dI(t),l={pos:s[0].pos,end:s[s.length-1].end};for(let p of s)if(d(p))return;return o;function d(p){if(If(p)){if(Fe(p.typeName)){let h=p.typeName,m=e.resolveName(h.text,h,262144,!0);for(let y of m?.declarations||Xe)if(fl(y)&&y.getSourceFile()===i){if(y.name.escapedText===h.escapedText&&dS(y,l,i))return!0;if(dS(r,y,i)&&!dS(l,y,i)){yf(o,y);break}}}}else if(CT(p)){let h=Fn(p,m=>ZI(m)&&dS(m.extendsType,p,i));if(!h||!dS(l,h,i))return!0}else if(Lk(p)||wk(p)){let h=Fn(p.parent,$o);if(h&&h.type&&dS(h.type,p,i)&&!dS(l,h,i))return!0}else if(YI(p)){if(Fe(p.exprName)){let h=e.resolveName(p.exprName.text,p.exprName,111551,!1);if(h?.valueDeclaration&&dS(r,h.valueDeclaration,i)&&!dS(l,h.valueDeclaration,i))return!0}else if(k0(p.exprName.left)&&!dS(l,p.parent,i))return!0}return i&&$I(p)&&hs(i,p.pos).line===hs(i,p.end).line&&lr(p,1),Go(p,d)}}function RHe(e,t,r,i){let{enclosingNode:o,typeParameters:s}=i,{firstTypeNode:l,lastTypeNode:d,newTypeNode:p}=yue(i),h=L.createTypeAliasDeclaration(void 0,r,s.map(m=>L.updateTypeParameterDeclaration(m,m.modifiers,m.name,m.constraint,void 0)),p);e.insertNodeBefore(t,o,HU(h),!0),e.replaceNodeRange(t,l,d,L.createTypeReferenceNode(r,s.map(m=>L.createTypeReferenceNode(m.name,void 0))),{leadingTriviaOption:ur.LeadingTriviaOption.Exclude,trailingTriviaOption:ur.TrailingTriviaOption.ExcludeWhitespace})}function DHe(e,t,r,i){var o;let{enclosingNode:s,typeParameters:l,typeElements:d}=i,p=L.createInterfaceDeclaration(void 0,r,l,void 0,d);at(p,(o=d[0])==null?void 0:o.parent),e.insertNodeBefore(t,s,HU(p),!0);let{firstTypeNode:h,lastTypeNode:m}=yue(i);e.replaceNodeRange(t,h,m,L.createTypeReferenceNode(r,l.map(y=>L.createTypeReferenceNode(y.name,void 0))),{leadingTriviaOption:ur.LeadingTriviaOption.Exclude,trailingTriviaOption:ur.TrailingTriviaOption.ExcludeWhitespace})}function CHe(e,t,r,i,o){var s;dI(o.selection).forEach(A=>{lr(A,7168)});let{enclosingNode:l,typeParameters:d}=o,{firstTypeNode:p,lastTypeNode:h,newTypeNode:m}=yue(o),y=L.createJSDocTypedefTag(L.createIdentifier("typedef"),L.createJSDocTypeExpression(m),L.createIdentifier(i)),E=[];gn(d,A=>{let N=wx(A),D=L.createTypeParameterDeclaration(void 0,A.name),w=L.createJSDocTemplateTag(L.createIdentifier("template"),N&&na(N,$0),[D]);E.push(w)});let S=L.createJSDocComment(void 0,L.createNodeArray(Eo(E,[y])));if(Xm(l)){let A=l.getStart(r),N=Ky(t.host,(s=t.formatContext)==null?void 0:s.options);e.insertNodeAt(r,l.getStart(r),S,{suffix:N+N+r.text.slice(t7(r.text,A-1),A)})}else e.insertNodeBefore(r,l,S,!0);e.replaceNodeRange(r,p,h,L.createTypeReferenceNode(i,d.map(A=>L.createTypeReferenceNode(A.name,void 0))))}function yue(e){return To(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:Hv(e.selection[0].parent)?L.createUnionTypeNode(e.selection):L.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}function NHe(e,t){return Fn(e,Hi)||(t?Fn(e,Xm):void 0)}function PHe(e,t){return Fn(e,r=>r===t?"quit":!!(Hv(r.parent)||QI(r.parent)))??e}var JX,D7,C7,N7,MHe=bt({"src/services/refactors/extractType.ts"(){"use strict";ai(),Sh(),JX="Extract type",D7={name:"Extract to type alias",description:wo(f.Extract_to_type_alias),kind:"refactor.extract.type"},C7={name:"Extract to interface",description:wo(f.Extract_to_interface),kind:"refactor.extract.interface"},N7={name:"Extract to typedef",description:wo(f.Extract_to_typedef),kind:"refactor.extract.typedef"},ag(JX,{kinds:[D7.kind,C7.kind,N7.kind],getAvailableActions:function(t){let r=FRe(t,t.triggerReason==="invoked");return r?jg(r)?t.preferences.provideRefactorNotApplicableReason?[{name:JX,description:wo(f.Extract_type),actions:[{...N7,notApplicableReason:r.error},{...D7,notApplicableReason:r.error},{...C7,notApplicableReason:r.error}]}]:Xe:[{name:JX,description:wo(f.Extract_type),actions:r.isJS?[N7]:Tn([D7],r.typeElements&&C7)}]:Xe},getEditsForAction:function(t,r){let{file:i}=t,o=FRe(t);x.assert(o&&!jg(o),"Expected to find a range to extract");let s=QT("NewType",i),l=ur.ChangeTracker.with(t,h=>{switch(r){case D7.name:return x.assert(!o.isJS,"Invalid actionName/JS combo"),RHe(h,i,s,o);case N7.name:return x.assert(o.isJS,"Invalid actionName/JS combo"),CHe(h,t,i,s,o);case C7.name:return x.assert(!o.isJS&&!!o.typeElements,"Invalid actionName/JS combo"),DHe(h,i,s,o);default:x.fail("Unexpected action name")}}),d=i.fileName,p=sO(l,d,s,!1);return{edits:l,renameFilename:d,renameLocation:p}}})}});function jg(e){return e.error!==void 0}function CE(e,t){return t?e.substr(0,t.length)===t:!0}var LHe=bt({"src/services/refactors/helpers.ts"(){"use strict"}});function zRe(e,t,r,i){var o,s;let l=i.getTypeChecker(),d=Wu(e,t),p=d.parent;if(Fe(d)){if(rk(p)&&fN(p)&&Fe(p.name)){if(((o=l.getMergedSymbol(p.symbol).declarations)==null?void 0:o.length)!==1)return{error:wo(f.Variables_with_multiple_declarations_cannot_be_inlined)};if(BRe(p))return;let h=GRe(p,l,e);return h&&{references:h,declaration:p,replacement:p.initializer}}if(r){let h=l.resolveName(d.text,d,111551,!1);if(h=h&&l.getMergedSymbol(h),((s=h?.declarations)==null?void 0:s.length)!==1)return{error:wo(f.Variables_with_multiple_declarations_cannot_be_inlined)};let m=h.declarations[0];if(!rk(m)||!fN(m)||!Fe(m.name)||BRe(m))return;let y=GRe(m,l,e);return y&&{references:y,declaration:m,replacement:m.initializer}}return{error:wo(f.Could_not_find_variable_to_inline)}}}function BRe(e){let t=na(e.parent.parent,Ml);return gt(t.modifiers,JI)}function GRe(e,t,r){let i=[],o=Ms.Core.eachSymbolReferenceInFile(e.name,t,r,s=>{if(Ms.isWriteAccessForReference(s)&&!Zu(s.parent)||Kd(s.parent)||Ll(s.parent)||YI(s.parent)||KL(e,s.pos))return!0;i.push(s)});return i.length===0||o?void 0:i}function kHe(e,t){t=ol(t);let{parent:r}=e;return ht(r)&&(IN(t){for(let y of l)m.replaceNode(r,y,kHe(y,p));m.delete(r,d)})}}})}});function OHe(e,t,r,i,o,s){let l=t.getTypeChecker(),d=L7(e,r.all,l),p=Cue(e,t,o,r);i.createNewFile(e,p,WHe(e,d,i,r,t,o,p,s)),vue(t,i,e.fileName,p,My(o))}function WHe(e,t,r,i,o,s,l,d){let p=o.getTypeChecker(),h=AW(e.statements,vm);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&t.oldImportsNeededByTargetFile.size===0)return P7(e,i.ranges,r),[...h,...i.all];let m=!_X(l,o,s,!!e.commonJsModuleIndicator),y=of(e,d),E=Tue(e,t.oldFileImportsFromTargetFile,l,o,s,m,y);E&&$P(r,e,E,!0,d),bue(e,i.all,r,t.unusedImportsFromOldFile,p),P7(e,i.ranges,r),Eue(r,o,s,e,t.movedSymbols,l,y);let S=FHe(e,t.oldImportsNeededByTargetFile,t.targetFileImportsFromOldFile,r,p,o,s,m,y),A=Aue(e,i.all,t.oldFileImportsFromTargetFile,m);return S.length&&A.length?[...h,...S,4,...A]:[...h,...S,...A]}function FHe(e,t,r,i,o,s,l,d,p){let h=[];for(let S of e.statements)bO(S,A=>{Tn(h,EO(A,vO(A),N=>t.has(o.getSymbolAtLocation(N))))});let m,y=[],E=v1();return r.forEach(S=>{if(S.declarations)for(let A of S.declarations){if(!k7(A))continue;let N=Rue(A);if(!N)continue;let D=QX(A);E(D)&&Due(e,D,N,i,d),$r(A,2048)?m=N:y.push(N.text)}}),Tn(h,M7(e,m,y,nc(e.fileName),s,l,d,p)),h}var yO,YX,$X,zHe=bt({"src/services/refactors/moveToNewFile.ts"(){"use strict";ai(),Sh(),yO="Move to a new file",YX=wo(f.Move_to_a_new_file),$X={name:yO,description:YX,kind:"refactor.move.newFile"},ag(yO,{kinds:[$X.kind],getAvailableActions:function(t){let r=SO(t);return t.preferences.allowTextChangesInNewFiles&&r?[{name:yO,description:YX,actions:[$X]}]:t.preferences.provideRefactorNotApplicableReason?[{name:yO,description:YX,actions:[{...$X,notApplicableReason:wo(f.Selection_is_not_a_valid_statement_or_statements)}]}]:Xe},getEditsForAction:function(t,r){x.assert(r===yO,"Wrong refactor invoked");let i=x.checkDefined(SO(t));return{edits:ur.ChangeTracker.with(t,s=>OHe(t.file,t.program,i,s,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}}})}});function VRe(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function BHe(e,t,r,i,o,s,l,d){let p=i.getTypeChecker();if(!l.fileExists(r))s.createNewFile(t,r,jRe(t,r,L7(t,o.all,p),s,o,i,l,d)),vue(i,s,t.fileName,r,My(l));else{let h=x.checkDefined(i.getSourceFile(r)),m=Od.createImportAdder(h,e.program,e.preferences,e.host);jRe(t,h,L7(t,o.all,p,oKe(h,o.all,p)),s,o,i,l,d,m)}}function jRe(e,t,r,i,o,s,l,d,p){let h=s.getTypeChecker(),m=AW(e.statements,vm);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&r.oldImportsNeededByTargetFile.size===0&&r.targetFileImportsFromOldFile.size===0&&typeof t=="string")return P7(e,o.ranges,i),[...m,...o.all];let y=typeof t=="string"?t:t.fileName,E=!_X(y,s,l,!!e.commonJsModuleIndicator),S=of(e,d),A=Tue(e,r.oldFileImportsFromTargetFile,y,s,l,E,S);A&&$P(i,e,A,!0,d),bue(e,o.all,i,r.unusedImportsFromOldFile,h),P7(e,o.ranges,i),Eue(i,s,l,e,r.movedSymbols,y,S);let N=GHe(e,y,r.oldImportsNeededByTargetFile,r.targetFileImportsFromOldFile,i,h,s,l,E,S,p),D=Aue(e,o.all,r.oldFileImportsFromTargetFile,E);return typeof t!="string"&&(t.statements.length>0?iKe(i,s,D,t,o):i.insertNodesAtEndOfFile(t,D,!1),N.length>0&&$P(i,t,N,!0,d)),p&&p.writeFixes(i,S),N.length&&D.length?[...m,...N,4,...D]:[...m,...N,...D]}function GHe(e,t,r,i,o,s,l,d,p,h,m){let y=[];if(m)r.forEach((D,w)=>{try{m.addImportFromExportedSymbol(vd(w,s),D)}catch{for(let j of e.statements)bO(j,K=>{Tn(y,EO(K,L.createStringLiteral(vO(K).text),Y=>r.has(s.getSymbolAtLocation(Y))))})}});else{let D=l.getSourceFile(t);for(let w of e.statements)bO(w,j=>{var K;let Y=vO(j),B=l.getCompilerOptions(),ce=l.getResolvedModuleFromModuleSpecifier(Y),z=(K=ce?.resolvedModule)==null?void 0:K.resolvedFileName;if(z&&D){let Z=x3(B,D,D.fileName,z,YT(l,d));Tn(y,EO(j,b1(Z,h),me=>r.has(s.getSymbolAtLocation(me))))}else Tn(y,EO(j,L.createStringLiteral(vO(j).text),Z=>r.has(s.getSymbolAtLocation(Z))))})}let E=l.getSourceFile(t),S,A=[],N=v1();return i.forEach(D=>{if(D.declarations)for(let w of D.declarations){if(!k7(w))continue;let j=Rue(w);if(!j)continue;let K=QX(w);N(K)&&Due(e,K,j,o,p),m&&s.isUnknownSymbol(D)?m.addImportFromExportedSymbol(vd(D,s)):$r(w,2048)?S=j:A.push(j.text)}}),E?Tn(y,M7(E,S,A,e.fileName,l,d,p,h)):Tn(y,M7(e,S,A,e.fileName,l,d,p,h))}function vue(e,t,r,i,o){let s=e.getCompilerOptions().configFile;if(!s)return;let l=ma(Yr(r,"..",i)),d=WL(s.fileName,l,o),p=s.statements[0]&&ri(s.statements[0].expression,Ma),h=p&&Vr(p.properties,m=>mc(m)&&Da(m.name)&&m.name.text==="files");h&&uu(h.initializer)&&t.insertNodeInListAfter(s,Ja(h.initializer.elements),L.createStringLiteral(d),h.initializer.elements)}function P7(e,t,r){for(let{first:i,afterLast:o}of t)r.deleteNodeRangeExcludingEnd(e,i,o)}function bue(e,t,r,i,o){for(let s of e.statements)Bo(t,s)||bO(s,l=>Iue(e,l,r,d=>i.has(o.getSymbolAtLocation(d))))}function Eue(e,t,r,i,o,s,l){let d=t.getTypeChecker();for(let p of t.getSourceFiles())if(p!==i)for(let h of p.statements)bO(h,m=>{if(d.getSymbolAtLocation(vO(m))!==i.symbol)return;let y=D=>{let w=Xa(D.parent)?Qz(d,D.parent):vd(d.getSymbolAtLocation(D),d);return!!w&&o.has(w)};Iue(p,m,e,y);let E=Av(oi(i.path),s),S=x3(t.getCompilerOptions(),p,p.fileName,E,YT(t,r)),A=EO(m,b1(S,l),y);A&&e.insertNodeAfter(p,h,A);let N=VHe(m);N&&jHe(e,p,d,o,S,N,m,l)})}function VHe(e){switch(e.kind){case 272:return e.importClause&&e.importClause.namedBindings&&e.importClause.namedBindings.kind===274?e.importClause.namedBindings.name:void 0;case 271:return e.name;case 260:return ri(e.name,Fe);default:return x.assertNever(e,`Unexpected node kind ${e.kind}`)}}function jHe(e,t,r,i,o,s,l,d){let p=Od.moduleSpecifierToValidIdentifier(o,99),h=!1,m=[];if(Ms.Core.eachSymbolReferenceInFile(s,r,t,y=>{kr(y.parent)&&(h=h||!!r.resolveName(p,y,-1,!0),i.has(r.getSymbolAtLocation(y.parent.name))&&m.push(y))}),m.length){let y=h?QT(p,t):p;for(let E of m)e.replaceNode(t,E,L.createIdentifier(y));e.insertNodeAfter(t,l,UHe(l,p,o,d))}}function UHe(e,t,r,i){let o=L.createIdentifier(t),s=b1(r,i);switch(e.kind){case 272:return L.createImportDeclaration(void 0,L.createImportClause(!1,void 0,L.createNamespaceImport(o)),s,void 0);case 271:return L.createImportEqualsDeclaration(void 0,!1,o,L.createExternalModuleReference(s));case 260:return L.createVariableDeclaration(o,void 0,void 0,Sue(s));default:return x.assertNever(e,`Unexpected node kind ${e.kind}`)}}function Sue(e){return L.createCallExpression(L.createIdentifier("require"),void 0,[e])}function vO(e){return e.kind===272?e.moduleSpecifier:e.kind===271?e.moduleReference.expression:e.initializer.arguments[0]}function bO(e,t){if(Lc(e))Da(e.moduleSpecifier)&&t(e);else if(td(e))vh(e.moduleReference)&&as(e.moduleReference.expression)&&t(e);else if(Ml(e))for(let r of e.declarationList.declarations)r.initializer&&bu(r.initializer,!0)&&t(r)}function Tue(e,t,r,i,o,s,l){let d,p=[];return t.forEach(h=>{h.escapedName==="default"?d=L.createIdentifier(Xz(h)):p.push(h.name)}),M7(e,d,p,r,i,o,s,l)}function M7(e,t,r,i,o,s,l,d){let p=Av(oi(e.path),i),h=x3(o.getCompilerOptions(),e,e.fileName,p,YT(o,s));if(l){let m=r.map(y=>L.createImportSpecifier(!1,void 0,L.createIdentifier(y)));return mde(t,m,h,d)}else{x.assert(!t,"No default import should exist");let m=r.map(y=>L.createBindingElement(void 0,void 0,y));return m.length?URe(L.createObjectBindingPattern(m),void 0,Sue(b1(h,d))):void 0}}function URe(e,t,r,i=2){return L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(e,void 0,t,r)],i))}function Aue(e,t,r,i){return va(t,o=>{if(KRe(o)&&!HRe(e,o,i)&&Mue(o,s=>{var l;return r.has(x.checkDefined((l=ri(s,b_))==null?void 0:l.symbol))})){let s=JHe(ol(o),i);if(s)return s}return ol(o)})}function HRe(e,t,r,i){var o;return r?!ed(t)&&$r(t,32)||!!(i&&e.symbol&&((o=e.symbol.exports)!=null&&o.has(i.escapedText))):!!e.symbol&&!!e.symbol.exports&&xue(t).some(s=>e.symbol.exports.has(pl(s)))}function Iue(e,t,r,i){switch(t.kind){case 272:HHe(e,t,r,i);break;case 271:i(t.name)&&r.delete(e,t);break;case 260:KHe(e,t,r,i);break;default:x.assertNever(t,`Unexpected import decl kind ${t.kind}`)}}function HHe(e,t,r,i){if(!t.importClause)return;let{name:o,namedBindings:s}=t.importClause,l=!o||i(o),d=!s||(s.kind===274?i(s.name):s.elements.length!==0&&s.elements.every(p=>i(p.name)));if(l&&d)r.delete(e,t);else if(o&&l&&r.delete(e,o),s){if(d)r.replaceNode(e,t.importClause,L.updateImportClause(t.importClause,t.importClause.isTypeOnly,o,void 0));else if(s.kind===275)for(let p of s.elements)i(p.name)&&r.delete(e,p)}}function KHe(e,t,r,i){let{name:o}=t;switch(o.kind){case 80:i(o)&&(t.initializer&&bu(t.initializer,!0)?r.delete(e,Uc(t.parent)&&Nn(t.parent.declarations)===1?t.parent.parent:t):r.delete(e,o));break;case 207:break;case 206:if(o.elements.every(s=>Fe(s.name)&&i(s.name)))r.delete(e,Uc(t.parent)&&t.parent.declarations.length===1?t.parent.parent:t);else for(let s of o.elements)Fe(s.name)&&i(s.name)&&r.delete(e,s.name);break}}function KRe(e){return x.assert(Yi(e.parent),"Node parent should be a SourceFile"),$Re(e)||Ml(e)}function JHe(e,t){return t?[qHe(e)]:XHe(e)}function qHe(e){let t=Am(e)?Eo([L.createModifier(95)],y0(e)):void 0;switch(e.kind){case 262:return L.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 263:let r=GT(e)?xv(e):void 0;return L.updateClassDeclaration(e,Eo(r,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 243:return L.updateVariableStatement(e,t,e.declarationList);case 267:return L.updateModuleDeclaration(e,t,e.name,e.body);case 266:return L.updateEnumDeclaration(e,t,e.name,e.members);case 265:return L.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 264:return L.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 271:return L.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 244:return x.fail();default:return x.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function XHe(e){return[e,...xue(e).map(JRe)]}function JRe(e){return L.createExpressionStatement(L.createBinaryExpression(L.createPropertyAccessExpression(L.createIdentifier("exports"),L.createIdentifier(e)),64,L.createIdentifier(e)))}function xue(e){switch(e.kind){case 262:case 263:return[e.name.text];case 243:return to(e.declarationList.declarations,t=>Fe(t.name)?t.name.text:void 0);case 267:case 266:case 265:case 264:case 271:return Xe;case 244:return x.fail("Can't export an ExpressionStatement");default:return x.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function EO(e,t,r){switch(e.kind){case 272:{let i=e.importClause;if(!i)return;let o=i.name&&r(i.name)?i.name:void 0,s=i.namedBindings&&YHe(i.namedBindings,r);return o||s?L.createImportDeclaration(void 0,L.createImportClause(i.isTypeOnly,o,s),ol(t),void 0):void 0}case 271:return r(e.name)?e:void 0;case 260:{let i=$He(e.name,r);return i?URe(i,e.type,Sue(t),e.parent.flags):void 0}default:return x.assertNever(e,`Unexpected import kind ${e.kind}`)}}function YHe(e,t){if(e.kind===274)return t(e.name)?e:void 0;{let r=e.elements.filter(i=>t(i.name));return r.length?L.createNamedImports(r):void 0}}function $He(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 207:return e;case 206:{let r=e.elements.filter(i=>i.propertyName||!Fe(i.name)||t(i.name));return r.length?L.createObjectBindingPattern(r):void 0}}}function Rue(e){return ed(e)?ri(e.expression.left.name,Fe):ri(e.name,Fe)}function QX(e){switch(e.kind){case 260:return e.parent.parent;case 208:return QX(na(e.parent.parent,t=>wi(t)||Xa(t)));default:return e}}function Due(e,t,r,i,o){if(!HRe(e,t,o,r))if(o)ed(t)||i.insertExportModifier(e,t);else{let s=xue(t);s.length!==0&&i.insertNodesAfter(e,t,s.map(JRe))}}function Cue(e,t,r,i){let o=t.getTypeChecker();if(i){let s=L7(e,i.all,o),l=oi(e.fileName),d=VN(e.fileName);return Yr(l,tKe(nKe(s.oldFileImportsFromTargetFile,s.movedSymbols),d,l,r))+d}return""}function QHe(e){let{file:t}=e,r=Hz(E1(e)),{statements:i}=t,o=Kl(i,h=>h.end>r.pos);if(o===-1)return;let s=i[o],l=QRe(t,s);l&&(o=l.start);let d=Kl(i,h=>h.end>=r.end,o);d!==-1&&r.end<=i[d].getStart()&&d--;let p=QRe(t,i[d]);return p&&(d=p.end),{toMove:i.slice(o,d===-1?i.length:d+1),afterLast:d===-1?void 0:i[d+1]}}function SO(e){let t=QHe(e);if(t===void 0)return;let r=[],i=[],{toMove:o,afterLast:s}=t;return LG(o,ZHe,(l,d)=>{for(let p=l;p!!(t.transformFlags&2))}function ZHe(e){return!eKe(e)&&!vm(e)}function eKe(e){switch(e.kind){case 272:return!0;case 271:return!$r(e,32);case 243:return e.declarationList.declarations.every(t=>!!t.initializer&&bu(t.initializer,!0));default:return!1}}function L7(e,t,r,i=new Set){let o=new Set,s=new Map,l=new Set,d=m(Nue(t));d&&s.set(d,!1);for(let y of t)Mue(y,E=>{o.add(x.checkDefined(ed(E)?r.getSymbolAtLocation(E.expression.left):E.symbol,"Need a symbol here"))});let p=new Set;for(let y of t)Pue(y,r,(E,S)=>{if(E.declarations){if(i.has(vd(E,r))){p.add(E);return}for(let A of E.declarations)if(qRe(A)){let N=s.get(E);s.set(E,(N===void 0||N)&&S)}else k7(A)&&rKe(A)===e&&!o.has(E)&&l.add(E)}});for(let y of s.keys())p.add(y);let h=new Set;for(let y of e.statements)Bo(t,y)||(d&&y.transformFlags&2&&p.delete(d),Pue(y,r,E=>{o.has(E)&&h.add(E),p.delete(E)}));return{movedSymbols:o,targetFileImportsFromOldFile:l,oldFileImportsFromTargetFile:h,oldImportsNeededByTargetFile:s,unusedImportsFromOldFile:p};function m(y){if(y===void 0)return;let E=r.getJsxNamespace(y),S=r.resolveName(E,y,1920,!0);return S&>(S.declarations,qRe)?S:void 0}}function tKe(e,t,r,i){let o=e;for(let s=1;;s++){let l=Yr(r,o+t);if(!i.fileExists(l))return o;o=`${e}.${s}`}}function nKe(e,t){return dh(e,Xz)||dh(t,Xz)||"newFile"}function Pue(e,t,r){e.forEachChild(function i(o){if(Fe(o)&&!kg(o)){let s=t.getSymbolAtLocation(o);s&&r(s,fE(o))}else o.forEachChild(i)})}function Mue(e,t){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return t(e);case 243:return Wl(e.declarationList.declarations,r=>YRe(r.name,t));case 244:{let{expression:r}=e;return dr(r)&&zl(r)===1?t(e):void 0}}}function qRe(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return XRe(e);case 208:return wi(e.parent.parent)&&XRe(e.parent.parent);default:return!1}}function XRe(e){return Yi(e.parent.parent.parent)&&!!e.initializer&&bu(e.initializer,!0)}function k7(e){return $Re(e)&&Yi(e.parent)||wi(e)&&Yi(e.parent.parent.parent)}function rKe(e){return wi(e)?e.parent.parent.parent:e.parent}function YRe(e,t){switch(e.kind){case 80:return t(na(e.parent,r=>wi(r)||Xa(r)));case 207:case 206:return Wl(e.elements,r=>jc(r)?void 0:YRe(r.name,t));default:return x.assertNever(e,`Unexpected name kind ${e.kind}`)}}function $Re(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function iKe(e,t,r,i,o){var s;let l=new Set,d=(s=i.symbol)==null?void 0:s.exports;if(d){let h=t.getTypeChecker(),m=new Map;for(let y of o.all)KRe(y)&&$r(y,32)&&Mue(y,E=>{var S;let A=b_(E)?(S=d.get(E.symbol.escapedName))==null?void 0:S.declarations:void 0,N=Wl(A,D=>Xl(D)?D:Kd(D)?ri(D.parent.parent,Xl):void 0);N&&N.moduleSpecifier&&m.set(N,(m.get(N)||new Set).add(E))});for(let[y,E]of Wo(m))if(y.exportClause&&xf(y.exportClause)&&Nn(y.exportClause.elements)){let S=y.exportClause.elements,A=jr(S,N=>Vr(vd(N.symbol,h).declarations,D=>k7(D)&&E.has(D))===void 0);if(Nn(A)===0){e.deleteNode(i,y),l.add(y);continue}Nn(A)Xl(h)&&!!h.moduleSpecifier&&!l.has(h));p?e.insertNodesBefore(i,p,r,!0):e.insertNodesAfter(i,i.statements[i.statements.length-1],r)}function QRe(e,t){if(ws(t)){let r=t.symbol.declarations;if(r===void 0||Nn(r)<=1||!Bo(r,t))return;let i=r[0],o=r[Nn(r)-1],s=to(r,p=>Gn(p)===e&&Hi(p)?p:void 0),l=Kl(e.statements,p=>p.end>=o.end),d=Kl(e.statements,p=>p.end>=i.end);return{toMove:s,start:d,end:l}}}function oKe(e,t,r){let i=new Set;for(let o of e.imports){let s=yN(o);if(Lc(s)&&s.importClause&&s.importClause.namedBindings&&zg(s.importClause.namedBindings))for(let l of s.importClause.namedBindings.elements){let d=r.getSymbolAtLocation(l.propertyName||l.name);d&&i.add(vd(d,r))}if(KF(s.parent)&&tm(s.parent.name))for(let l of s.parent.name.elements){let d=r.getSymbolAtLocation(l.propertyName||l.name);d&&i.add(vd(d,r))}}for(let o of t)Pue(o,r,s=>{let l=vd(s,r);l.valueDeclaration&&Gn(l.valueDeclaration)===e&&i.add(l)});return i}var w7,ZX,eY,aKe=bt({"src/services/refactors/moveToFile.ts"(){"use strict";Fse(),ai(),PRe(),w7="Move to file",ZX=wo(f.Move_to_file),eY={name:"Move to file",description:ZX,kind:"refactor.move.file"},ag(w7,{kinds:[eY.kind],getAvailableActions:function(t,r){let i=SO(t);return r?t.preferences.allowTextChangesInNewFiles&&i?[{name:w7,description:ZX,actions:[eY]}]:t.preferences.provideRefactorNotApplicableReason?[{name:w7,description:ZX,actions:[{...eY,notApplicableReason:wo(f.Selection_is_not_a_valid_statement_or_statements)}]}]:Xe:Xe},getEditsForAction:function(t,r,i){x.assert(r===w7,"Wrong refactor invoked");let o=x.checkDefined(SO(t)),{host:s,program:l}=t;x.assert(i,"No interactive refactor arguments available");let d=i.targetFile;return O0(d)||WI(d)?s.fileExists(d)&&l.getSourceFile(d)===void 0?VRe(wo(f.Cannot_move_statements_to_the_selected_file)):{edits:ur.ChangeTracker.with(t,h=>BHe(t,t.file,i.targetFile,t.program,o,h,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}:VRe(wo(f.Cannot_move_to_file_selected_file_is_invalid))}})}});function sKe(e){let{file:t,startPosition:r,program:i}=e;return eDe(t,r,i)?[{name:tY,description:Lue,actions:[kue]}]:Xe}function lKe(e){let{file:t,startPosition:r,program:i}=e,o=eDe(t,r,i);if(!o)return;let s=i.getTypeChecker(),l=o[o.length-1],d=l;switch(l.kind){case 173:{d=L.updateMethodSignature(l,l.modifiers,l.name,l.questionToken,l.typeParameters,h(o),l.type);break}case 174:{d=L.updateMethodDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.questionToken,l.typeParameters,h(o),l.type,l.body);break}case 179:{d=L.updateCallSignature(l,l.typeParameters,h(o),l.type);break}case 176:{d=L.updateConstructorDeclaration(l,l.modifiers,h(o),l.body);break}case 180:{d=L.updateConstructSignature(l,l.typeParameters,h(o),l.type);break}case 262:{d=L.updateFunctionDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.typeParameters,h(o),l.type,l.body);break}default:return x.failBadSyntaxKind(l,"Unhandled signature kind in overload list conversion refactoring")}if(d===l)return;return{renameFilename:void 0,renameLocation:void 0,edits:ur.ChangeTracker.with(e,E=>{E.replaceNodeRange(t,o[0],o[o.length-1],d)})};function h(E){let S=E[E.length-1];return ws(S)&&S.body&&(E=E.slice(0,E.length-1)),L.createNodeArray([L.createParameterDeclaration(void 0,L.createToken(26),"args",void 0,L.createUnionTypeNode(mn(E,m)))])}function m(E){let S=mn(E.parameters,y);return lr(L.createTupleTypeNode(S),gt(S,A=>!!Nn(IR(A)))?0:1)}function y(E){x.assert(Fe(E.name));let S=at(L.createNamedTupleMember(E.dotDotDotToken,E.name,E.questionToken,E.type||L.createKeywordTypeNode(133)),E),A=E.symbol&&E.symbol.getDocumentationComment(s);if(A){let N=CO(A);N.length&&_E(S,[{text:`* +`,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return R.assertNever(e)}}function bUe(e){switch(e){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}function EUe(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function SUe(e){if(Ou(e))return 3;if(bUe(e)||EUe(e))return 5;if(e>=19&&e<=79)return 10;switch(e){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 80:default:return Cv(e)?6:2}}function Ude(e,t,r,i,o){return jxe(IX(e,t,r,i,o))}function Gxe(e,t){switch(t){case 267:case 263:case 264:case 262:case 231:case 218:case 219:e.throwIfCancellationRequested()}}function IX(e,t,r,i,o){let s=[];return r.forEachChild(function d(p){if(!(!p||!ZW(o,p.pos,p.getFullWidth()))){if(Gxe(t,p.kind),Fe(p)&&!Fl(p)&&i.has(p.escapedText)){let h=e.getSymbolAtLocation(p),m=h&&Vxe(h,qT(p),e);m&&l(p.getStart(r),p.getEnd(),m)}p.forEachChild(d)}}),{spans:s,endOfLineState:0};function l(d,p,h){let m=p-d;R.assert(m>0,`Classification had non-positive length of ${m}`),s.push(d),s.push(m),s.push(h)}}function Vxe(e,t,r){let i=e.getFlags();if(i&2885600)return i&32?11:i&384?12:i&524288?16:i&1536?t&4||t&1&&TUe(e)?14:void 0:i&2097152?Vxe(r.getAliasedSymbol(e),t,r):t&2?i&64?13:i&262144?15:void 0:void 0}function TUe(e){return gt(e.declarations,t=>ql(t)&&Gg(t)===1)}function AUe(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function jxe(e){R.assert(e.spans.length%3===0);let t=e.spans,r=[];for(let i=0;i])*)(\/>)?)?/im,ee=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,me=t.text.substr(B,ce),ge=z.exec(me);if(!ge||!ge[3]||!(ge[3]in ML))return!1;let q=B;y(q,ge[1].length),q+=ge[1].length,p(q,ge[2].length,10),q+=ge[2].length,p(q,ge[3].length,21),q+=ge[3].length;let J=ge[4],re=q;for(;;){let xe=ee.exec(J);if(!xe)break;let fe=q+xe.index+xe[1].length;fe>re&&(y(re,fe-re),re=fe),p(re,xe[2].length,22),re+=xe[2].length,xe[3].length&&(y(re,xe[3].length),re+=xe[3].length),p(re,xe[4].length,5),re+=xe[4].length,xe[5].length&&(y(re,xe[5].length),re+=xe[5].length),p(re,xe[6].length,24),re+=xe[6].length}q+=ge[4].length,q>re&&y(re,q-re),ge[5]&&(p(q,ge[5].length,10),q+=ge[5].length);let pe=B+ce;return q=0),ee>0){let me=ce||K(B.kind,B);me&&p(z,ee,me)}return!0}function j(B){switch(B.parent&&B.parent.kind){case 286:if(B.parent.tagName===B)return 19;break;case 287:if(B.parent.tagName===B)return 20;break;case 285:if(B.parent.tagName===B)return 21;break;case 291:if(B.parent.name===B)return 22;break}}function K(B,ce){if(Ou(B))return 3;if((B===30||B===32)&&ce&&fde(ce.parent))return 10;if(Aj(B)){if(ce){let z=ce.parent;if(B===64&&(z.kind===260||z.kind===172||z.kind===169||z.kind===291)||z.kind===226||z.kind===224||z.kind===225||z.kind===227)return 5}return 10}else{if(B===9)return 4;if(B===10)return 25;if(B===11)return ce&&ce.parent.kind===291?24:6;if(B===14)return 6;if(Cv(B))return 6;if(B===12)return 23;if(B===80){if(ce){switch(ce.parent.kind){case 263:return ce.parent.name===ce?11:void 0;case 168:return ce.parent.name===ce?15:void 0;case 264:return ce.parent.name===ce?13:void 0;case 266:return ce.parent.name===ce?12:void 0;case 267:return ce.parent.name===ce?14:void 0;case 169:return ce.parent.name===ce?w0(ce)?3:17:void 0}if(Cg(ce.parent))return 3}return 2}}}function Y(B){if(B&&qL(i,o,B.pos,B.getFullWidth())){Gxe(e,B.kind);for(let ce of B.getChildren(t))w(ce)||Y(ce)}}}var Uxe,Hxe=bt({"src/services/classifier.ts"(){"use strict";ai(),Uxe=ine([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0)}}),E7,IUe=bt({"src/services/documentHighlights.ts"(){"use strict";ai(),(e=>{function t(q,J,re,pe,xe){let fe=Fu(re,pe);if(fe.parent&&(P_(fe.parent)&&fe.parent.tagName===fe||J0(fe.parent))){let{openingElement:ne,closingElement:he}=fe.parent.parent,Ce=[ne,he].map(({tagName:Ge})=>r(Ge,re));return[{fileName:re.fileName,highlightSpans:Ce}]}return i(pe,fe,q,J,xe)||o(fe,re)}e.getDocumentHighlights=t;function r(q,J){return{fileName:J.fileName,textSpan:xu(q,J),kind:"none"}}function i(q,J,re,pe,xe){let fe=new Set(xe.map(Ge=>Ge.fileName)),ne=Ls.getReferenceEntriesForNode(q,J,re,xe,pe,void 0,fe);if(!ne)return;let he=AL(ne.map(Ls.toHighlightSpan),Ge=>Ge.fileName,Ge=>Ge.span),Ce=Cd(re.useCaseSensitiveFileNames());return Oo(WC(he.entries(),([Ge,ve])=>{if(!fe.has(Ge)){if(!re.redirectTargetsMap.has(tl(Ge,re.getCurrentDirectory(),Ce)))return;let Ie=re.getSourceFile(Ge);Ge=Vr(xe,Le=>!!Le.redirectInfo&&Le.redirectInfo.redirectTarget===Ie).fileName,R.assert(fe.has(Ge))}return{fileName:Ge,highlightSpans:ve}}))}function o(q,J){let re=s(q,J);return re&&[{fileName:J.fileName,highlightSpans:re}]}function s(q,J){switch(q.kind){case 101:case 93:return LT(q.parent)?ee(q.parent,J):void 0;case 107:return pe(q.parent,Sm,Y);case 111:return pe(q.parent,iH,K);case 113:case 85:case 98:let fe=q.kind===85?q.parent.parent:q.parent;return pe(fe,wT,j);case 109:return pe(q.parent,pP,w);case 84:case 90:return _P(q.parent)||PR(q.parent)?pe(q.parent.parent.parent,pP,w):void 0;case 83:case 88:return pe(q.parent,rN,D);case 99:case 117:case 92:return pe(q.parent,ne=>Pv(ne,!0),N);case 137:return re(Pl,[137]);case 139:case 153:return re(Nv,[139,153]);case 135:return pe(q.parent,qv,B);case 134:return xe(B(q));case 127:return xe(ce(q));case 103:case 147:return;default:return Cy(q.kind)&&(Ud(q.parent)||Ml(q.parent))?xe(E(q.kind,q.parent)):void 0}function re(fe,ne){return pe(q.parent,fe,he=>{var Ce;return to((Ce=ri(he,b_))==null?void 0:Ce.symbol.declarations,Ge=>fe(Ge)?Vr(Ge.getChildren(J),ve=>zo(ne,ve.kind)):void 0)})}function pe(fe,ne,he){return ne(fe)?xe(he(fe,J)):void 0}function xe(fe){return fe&&fe.map(ne=>r(ne,J))}}function l(q){return iH(q)?[q]:wT(q)?bo(q.catchClause?l(q.catchClause):q.tryBlock&&l(q.tryBlock),q.finallyBlock&&l(q.finallyBlock)):Yo(q)?void 0:h(q,l)}function d(q){let J=q;for(;J.parent;){let re=J.parent;if(R0(re)||re.kind===312)return re;if(wT(re)&&re.tryBlock===J&&re.catchClause)return J;J=re}}function p(q){return rN(q)?[q]:Yo(q)?void 0:h(q,p)}function h(q,J){let re=[];return q.forEachChild(pe=>{let xe=J(pe);xe!==void 0&&re.push(...dI(xe))}),re}function m(q,J){let re=y(J);return!!re&&re===q}function y(q){return Fn(q,J=>{switch(J.kind){case 255:if(q.kind===251)return!1;case 248:case 249:case 250:case 247:case 246:return!q.label||ge(J,q.label.escapedText);default:return Yo(J)&&"quit"}})}function E(q,J){return to(S(J,MI(q)),re=>cD(re,q))}function S(q,J){let re=q.parent;switch(re.kind){case 268:case 312:case 241:case 296:case 297:return J&64&&Sc(q)?[...q.members,q]:re.statements;case 176:case 174:case 262:return[...re.parameters,...di(re.parent)?re.parent.members:[]];case 263:case 231:case 264:case 187:let pe=re.members;if(J&15){let xe=Vr(re.members,Pl);if(xe)return[...pe,...xe.parameters]}else if(J&64)return[...pe,re];return pe;case 210:return;default:R.assertNever(re,"Invalid container kind.")}}function A(q,J,...re){return J&&zo(re,J.kind)?(q.push(J),!0):!1}function N(q){let J=[];if(A(J,q.getFirstToken(),99,117,92)&&q.kind===246){let re=q.getChildren();for(let pe=re.length-1;pe>=0&&!A(J,re[pe],117);pe--);}return gn(p(q.statement),re=>{m(q,re)&&A(J,re.getFirstToken(),83,88)}),J}function D(q){let J=y(q);if(J)switch(J.kind){case 248:case 249:case 250:case 246:case 247:return N(J);case 255:return w(J)}}function w(q){let J=[];return A(J,q.getFirstToken(),109),gn(q.caseBlock.clauses,re=>{A(J,re.getFirstToken(),84,90),gn(p(re),pe=>{m(q,pe)&&A(J,pe.getFirstToken(),83)})}),J}function j(q,J){let re=[];if(A(re,q.getFirstToken(),113),q.catchClause&&A(re,q.catchClause.getFirstToken(),85),q.finallyBlock){let pe=hs(q,98,J);A(re,pe,98)}return re}function K(q,J){let re=d(q);if(!re)return;let pe=[];return gn(l(re),xe=>{pe.push(hs(xe,111,J))}),R0(re)&&x0(re,xe=>{pe.push(hs(xe,107,J))}),pe}function Y(q,J){let re=Wp(q);if(!re)return;let pe=[];return x0(ta(re.body,Ho),xe=>{pe.push(hs(xe,107,J))}),gn(l(re.body),xe=>{pe.push(hs(xe,111,J))}),pe}function B(q){let J=Wp(q);if(!J)return;let re=[];return J.modifiers&&J.modifiers.forEach(pe=>{A(re,pe,134)}),Bo(J,pe=>{z(pe,xe=>{qv(xe)&&A(re,xe.getFirstToken(),135)})}),re}function ce(q){let J=Wp(q);if(!J)return;let re=[];return Bo(J,pe=>{z(pe,xe=>{z4(xe)&&A(re,xe.getFirstToken(),127)})}),re}function z(q,J){J(q),!Yo(q)&&!di(q)&&!fu(q)&&!ql(q)&&!Tm(q)&&!ji(q)&&Bo(q,re=>z(re,J))}function ee(q,J){let re=me(q,J),pe=[];for(let xe=0;xe=fe.end;Ce--)if(!y_(J.text.charCodeAt(Ce))){he=!1;break}if(he){pe.push({fileName:J.fileName,textSpan:dc(fe.getStart(),ne.end),kind:"reference"}),xe++;continue}}pe.push(r(re[xe],J))}return pe}function me(q,J){let re=[];for(;LT(q.parent)&&q.parent.elseStatement===q;)q=q.parent;for(;;){let pe=q.getChildren(J);A(re,pe[0],101);for(let xe=pe.length-1;xe>=0&&!A(re,pe[xe],93);xe--);if(!q.elseStatement||!LT(q.elseStatement))break;q=q.elseStatement}return re}function ge(q,J){return!!Fn(q.parent,re=>K0(re)?re.label.escapedText===J:"quit")}})(E7||(E7={}))}});function _O(e){return!!e.sourceFile}function Kde(e,t,r){return RX(e,t,r)}function RX(e,t="",r,i){let o=new Map,s=Cd(!!e);function l(){let D=Oo(o.keys()).filter(w=>w&&w.charAt(0)==="_").map(w=>{let j=o.get(w),K=[];return j.forEach((Y,B)=>{_O(Y)?K.push({name:B,scriptKind:Y.sourceFile.scriptKind,refCount:Y.languageServiceRefCount}):Y.forEach((ce,z)=>K.push({name:B,scriptKind:z,refCount:ce.languageServiceRefCount}))}),K.sort((Y,B)=>B.refCount-Y.refCount),{bucket:w,sourceFiles:K}});return JSON.stringify(D,void 0,2)}function d(D){return typeof D.getCompilationSettings=="function"?D.getCompilationSettings():D}function p(D,w,j,K,Y,B){let ce=tl(D,t,s),z=DX(d(w));return h(D,ce,w,z,j,K,Y,B)}function h(D,w,j,K,Y,B,ce,z){return S(D,w,j,K,Y,B,!0,ce,z)}function m(D,w,j,K,Y,B){let ce=tl(D,t,s),z=DX(d(w));return y(D,ce,w,z,j,K,Y,B)}function y(D,w,j,K,Y,B,ce,z){return S(D,w,d(j),K,Y,B,!1,ce,z)}function E(D,w){let j=_O(D)?D:D.get(R.checkDefined(w,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return R.assert(w===void 0||!j||j.sourceFile.scriptKind===w,`Script kind should match provided ScriptKind:${w} and sourceFile.scriptKind: ${j?.sourceFile.scriptKind}, !entry: ${!j}`),j}function S(D,w,j,K,Y,B,ce,z,ee){var me,ge,q,J;z=L6(D,z);let re=d(j),pe=j===re?void 0:j,xe=z===6?100:rs(re),fe=typeof ee=="object"?ee:{languageVersion:xe,impliedNodeFormat:pe&&kw(w,(J=(q=(ge=(me=pe.getCompilerHost)==null?void 0:me.call(pe))==null?void 0:ge.getModuleResolutionCache)==null?void 0:q.call(ge))==null?void 0:J.getPackageJsonInfoCache(),pe,re),setExternalModuleIndicator:ak(re),jsDocParsingMode:r};fe.languageVersion=xe,R.assertEqual(r,fe.jsDocParsingMode);let ne=o.size,he=Jde(K,fe.impliedNodeFormat),Ce=FC(o,he,()=>new Map);if(rr){o.size>ne&&rr.instant(rr.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:re.configFilePath,key:he});let De=!vd(w)&&zc(o,(Le,Et)=>Et!==he&&Le.has(w)&&Et);De&&rr.instant(rr.Phase.Session,"documentRegistryBucketOverlap",{path:w,key1:De,key2:he})}let Ge=Ce.get(w),ve=Ge&&E(Ge,z);if(!ve&&i){let De=i.getDocument(he,w);De&&(R.assert(ce),ve={sourceFile:De,languageServiceRefCount:0},Ie())}if(ve)ve.sourceFile.version!==B&&(ve.sourceFile=hY(ve.sourceFile,Y,B,Y.getChangeRange(ve.sourceFile.scriptSnapshot)),i&&i.setDocument(he,w,ve.sourceFile)),ce&&ve.languageServiceRefCount++;else{let De=K7(D,Y,fe,B,!1,z);i&&i.setDocument(he,w,De),ve={sourceFile:De,languageServiceRefCount:1},Ie()}return R.assert(ve.languageServiceRefCount!==0),ve.sourceFile;function Ie(){if(!Ge)Ce.set(w,ve);else if(_O(Ge)){let De=new Map;De.set(Ge.sourceFile.scriptKind,Ge),De.set(z,ve),Ce.set(w,De)}else Ge.set(z,ve)}}function A(D,w,j,K){let Y=tl(D,t,s),B=DX(w);return N(Y,B,j,K)}function N(D,w,j,K){let Y=R.checkDefined(o.get(Jde(w,K))),B=Y.get(D),ce=E(B,j);ce.languageServiceRefCount--,R.assert(ce.languageServiceRefCount>=0),ce.languageServiceRefCount===0&&(_O(B)?Y.delete(D):(B.delete(j),B.size===1&&Y.set(D,bL(B.values(),Qs))))}return{acquireDocument:p,acquireDocumentWithKey:h,updateDocument:m,updateDocumentWithKey:y,releaseDocument:A,releaseDocumentWithKey:N,getKeyForCompilationSettings:DX,getDocumentRegistryBucketKeyWithMode:Jde,reportStats:l,getBuckets:()=>o}}function DX(e){return tK(e,u3)}function Jde(e,t){return t?`${e}|${t}`:e}var xUe=bt({"src/services/documentRegistry.ts"(){"use strict";ai()}});function qde(e,t,r,i,o,s,l){let d=uR(i),p=Cd(d),h=CX(t,r,p,l),m=CX(r,t,p,l);return pr.ChangeTracker.with({host:i,formatContext:o,preferences:s},y=>{DUe(e,y,h,t,r,i.getCurrentDirectory(),d),CUe(e,y,h,m,i,p)})}function CX(e,t,r,i){let o=r(e);return l=>{let d=i&&i.tryGetSourcePosition({fileName:l,pos:0}),p=s(d?d.fileName:l);return d?p===void 0?void 0:RUe(d.fileName,p,l,r):p};function s(l){if(r(l)===o)return t;let d=aU(l,o,r);return d===void 0?void 0:t+"/"+d}}function RUe(e,t,r,i){let o=FL(e,t,i);return Xde(oi(r),o)}function DUe(e,t,r,i,o,s,l){let{configFile:d}=e.getCompilerOptions();if(!d)return;let p=oi(d.fileName),h=_N(d);if(!h)return;Yde(h,(S,A)=>{switch(A){case"files":case"include":case"exclude":{if(m(S)||A!=="include"||!pu(S.initializer))return;let D=to(S.initializer.elements,j=>Ca(j)?j.text:void 0);if(D.length===0)return;let w=M6(p,[],D,l,s);Bv(R.checkDefined(w.includeFilePattern),l).test(i)&&!Bv(R.checkDefined(w.includeFilePattern),l).test(o)&&t.insertNodeAfter(d,Ja(S.initializer.elements),L.createStringLiteral(E(o)));return}case"compilerOptions":Yde(S.initializer,(N,D)=>{let w=OH(D);R.assert(w?.type!=="listOrElement"),w&&(w.isFilePath||w.type==="list"&&w.element.isFilePath)?m(N):D==="paths"&&Yde(N.initializer,j=>{if(pu(j.initializer))for(let K of j.initializer.elements)y(K)})});return}});function m(S){let A=pu(S.initializer)?S.initializer.elements:[S.initializer],N=!1;for(let D of A)N=y(D)||N;return N}function y(S){if(!Ca(S))return!1;let A=Xde(p,S.text),N=r(A);return N!==void 0?(t.replaceRangeWithText(d,Jxe(S,d),E(N)),!0):!1}function E(S){return _m(p,S,!l)}}function CUe(e,t,r,i,o,s){let l=e.getSourceFiles();for(let d of l){let p=r(d.fileName),h=p??d.fileName,m=oi(h),y=i(d.fileName),E=y||d.fileName,S=oi(E),A=p!==void 0||y!==void 0;MUe(d,t,N=>{if(!Lp(N))return;let D=Xde(S,N),w=r(D);return w===void 0?void 0:g0(_m(m,w,s))},N=>{let D=e.getTypeChecker().getSymbolAtLocation(N);if(D?.declarations&&D.declarations.some(j=>Pd(j)))return;let w=y!==void 0?Kxe(N,HR(N.text,E,e.getCompilerOptions(),o),r,l):PUe(D,N,d,e,o,r);return w!==void 0&&(w.updated||A&&Lp(N.text))?tS.updateModuleSpecifier(e.getCompilerOptions(),d,h,w.newFileName,YT(e,o),N.text):void 0})}}function NUe(e,t){return fa($r(e,t))}function Xde(e,t){return g0(NUe(e,t))}function PUe(e,t,r,i,o,s){if(e){let l=Vr(e.declarations,Yi).fileName,d=s(l);return d===void 0?{newFileName:l,updated:!1}:{newFileName:d,updated:!0}}else{let l=i.getModeForUsageLocation(r,t),d=o.resolveModuleNameLiterals||!o.resolveModuleNames?i.getResolvedModuleFromModuleSpecifier(t):o.getResolvedModuleWithFailedLookupLocationsFromCache&&o.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,r.fileName,l);return Kxe(t,d,s,i.getSourceFiles())}}function Kxe(e,t,r,i){if(!t)return;if(t.resolvedModule){let p=d(t.resolvedModule.resolvedFileName);if(p)return p}let o=gn(t.failedLookupLocations,s)||Lp(e.text)&&gn(t.failedLookupLocations,l);if(o)return o;return t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function s(p){let h=r(p);return h&&Vr(i,m=>m.fileName===h)?l(p):void 0}function l(p){return El(p,"/package.json")?void 0:d(p)}function d(p){let h=r(p);return h&&{newFileName:h,updated:!0}}}function MUe(e,t,r,i){for(let o of e.referencedFiles||Xe){let s=r(o.fileName);s!==void 0&&s!==e.text.slice(o.pos,o.end)&&t.replaceRangeWithText(e,o,s)}for(let o of e.imports){let s=i(o);s!==void 0&&s!==o.text&&t.replaceRangeWithText(e,Jxe(o,e),s)}}function Jxe(e,t){return Ef(e.getStart(t)+1,e.end-1)}function Yde(e,t){if(La(e))for(let r of e.properties)mc(r)&&Ca(r.name)&&t(r,r.name.text)}var LUe=bt({"src/services/getEditsForFileRename.ts"(){"use strict";ai()}});function aM(e,t){return{kind:e,isCaseSensitive:t}}function $de(e){let t=new Map,r=e.trim().split(".").map(i=>WUe(i.trim()));if(r.length===1&&r[0].totalTextChunk.text==="")return{getMatchForLastSegmentOfPattern:()=>aM(2,!0),getFullMatch:()=>aM(2,!0),patternContainsDots:!1};if(!r.some(i=>!i.subWordTextChunks.length))return{getFullMatch:(i,o)=>kUe(i,o,r,t),getMatchForLastSegmentOfPattern:i=>Qde(i,Ja(r),t),patternContainsDots:r.length>1}}function kUe(e,t,r,i){if(!Qde(t,Ja(r),i)||r.length-1>e.length)return;let s;for(let l=r.length-2,d=e.length-1;l>=0;l-=1,d-=1)s=Yxe(s,Qde(e[d],r[l],i));return s}function qxe(e,t){let r=t.get(e);return r||t.set(e,r=iue(e)),r}function Xxe(e,t,r){let i=FUe(e,t.textLowerCase);if(i===0)return aM(t.text.length===e.length?0:1,ao(e,t.text));if(t.isLowerCase){if(i===-1)return;let o=qxe(e,r);for(let s of o)if(Zde(e,s,t.text,!0))return aM(2,Zde(e,s,t.text,!1));if(t.text.length0)return aM(2,!0);if(t.characterSpans.length>0){let o=qxe(e,r),s=$xe(e,o,t,!1)?!0:$xe(e,o,t,!0)?!1:void 0;if(s!==void 0)return aM(3,s)}}}function Qde(e,t,r){if(NX(t.totalTextChunk.text,s=>s!==32&&s!==42)){let s=Xxe(e,t.totalTextChunk,r);if(s)return s}let i=t.subWordTextChunks,o;for(let s of i)o=Yxe(o,Xxe(e,s,r));return o}function Yxe(e,t){return jG([e,t],wUe)}function wUe(e,t){return e===void 0?1:t===void 0?-1:Zs(e.kind,t.kind)||Ev(!e.isCaseSensitive,!t.isCaseSensitive)}function Zde(e,t,r,i,o={start:0,length:r.length}){return o.length<=t.length&&tRe(0,o.length,s=>OUe(r.charCodeAt(o.start+s),e.charCodeAt(t.start+s),i))}function OUe(e,t,r){return r?eue(e)===eue(t):e===t}function $xe(e,t,r,i){let o=r.characterSpans,s=0,l=0,d,p;for(;;){if(l===o.length)return!0;if(s===t.length)return!1;let h=t[s],m=!1;for(;l=65&&e<=90)return!0;if(e<127||!qW(e,99))return!1;let t=String.fromCharCode(e);return t===t.toUpperCase()}function Qxe(e){if(e>=97&&e<=122)return!0;if(e<127||!qW(e,99))return!1;let t=String.fromCharCode(e);return t===t.toLowerCase()}function FUe(e,t){let r=e.length-t.length;for(let i=0;i<=r;i++)if(NX(t,(o,s)=>eue(e.charCodeAt(s+i))===o))return i;return-1}function eue(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function tue(e){return e>=48&&e<=57}function zUe(e){return mD(e)||Qxe(e)||tue(e)||e===95||e===36}function BUe(e){let t=[],r=0,i=0;for(let o=0;o0&&(t.push(nue(e.substr(r,i))),i=0)}return i>0&&t.push(nue(e.substr(r,i))),t}function nue(e){let t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:rue(e)}}function rue(e){return Zxe(e,!1)}function iue(e){return Zxe(e,!0)}function Zxe(e,t){let r=[],i=0;for(let o=1;ooue(i)&&i!==95,t,r)}function GUe(e,t,r){return t!==r&&t+1t(e.charCodeAt(o),o))}var S7,jUe=bt({"src/services/patternMatcher.ts"(){"use strict";ai(),S7=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(S7||{})}});function nRe(e,t=!0,r=!1){let i={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},o=[],s,l,d,p=0,h=!1;function m(){return l=d,d=Xd.scan(),d===19?p++:d===20&&p--,d}function y(){let B=Xd.getTokenValue(),ce=Xd.getTokenStart();return{fileName:B,pos:ce,end:ce+B.length}}function E(){s||(s=[]),s.push({ref:y(),depth:p})}function S(){o.push(y()),A()}function A(){p===0&&(h=!0)}function N(){let B=Xd.getToken();return B===138?(B=m(),B===144&&(B=m(),B===11&&E()),!0):!1}function D(){if(l===25)return!1;let B=Xd.getToken();if(B===102){if(B=m(),B===21){if(B=m(),B===11||B===15)return S(),!0}else{if(B===11)return S(),!0;if(B===156&&Xd.lookAhead(()=>{let z=Xd.scan();return z!==161&&(z===42||z===19||z===80||Ou(z))})&&(B=m()),B===80||Ou(B))if(B=m(),B===161){if(B=m(),B===11)return S(),!0}else if(B===64){if(j(!0))return!0}else if(B===28)B=m();else return!0;if(B===19){for(B=m();B!==20&&B!==1;)B=m();B===20&&(B=m(),B===161&&(B=m(),B===11&&S()))}else B===42&&(B=m(),B===130&&(B=m(),(B===80||Ou(B))&&(B=m(),B===161&&(B=m(),B===11&&S()))))}return!0}return!1}function w(){let B=Xd.getToken();if(B===95){if(A(),B=m(),B===156&&Xd.lookAhead(()=>{let z=Xd.scan();return z===42||z===19})&&(B=m()),B===19){for(B=m();B!==20&&B!==1;)B=m();B===20&&(B=m(),B===161&&(B=m(),B===11&&S()))}else if(B===42)B=m(),B===161&&(B=m(),B===11&&S());else if(B===102&&(B=m(),B===156&&Xd.lookAhead(()=>{let z=Xd.scan();return z===80||Ou(z)})&&(B=m()),(B===80||Ou(B))&&(B=m(),B===64&&j(!0))))return!0;return!0}return!1}function j(B,ce=!1){let z=B?m():Xd.getToken();return z===149?(z=m(),z===21&&(z=m(),(z===11||ce&&z===15)&&S()),!0):!1}function K(){let B=Xd.getToken();if(B===80&&Xd.getTokenValue()==="define"){if(B=m(),B!==21)return!0;if(B=m(),B===11||B===15)if(B=m(),B===28)B=m();else return!0;if(B!==23)return!0;for(B=m();B!==24&&B!==1;)(B===11||B===15)&&S(),B=m();return!0}return!1}function Y(){for(Xd.setText(e),m();Xd.getToken()!==1;){if(Xd.getToken()===16){let B=[Xd.getToken()];e:for(;Nn(B);){let ce=Xd.scan();switch(ce){case 1:break e;case 102:D();break;case 16:B.push(ce);break;case 19:Nn(B)&&B.push(ce);break;case 20:Nn(B)&&($s(B)===16?Xd.reScanTemplateToken(!1)===18&&B.pop():B.pop());break}}m()}N()||D()||w()||r&&(j(!1,!0)||K())||m()}Xd.setText(void 0)}if(t&&Y(),NH(i,e),PH(i,qa),h){if(s)for(let B of s)o.push(B.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:void 0}}else{let B;if(s)for(let ce of s)ce.depth===0?(B||(B=[]),B.push(ce.ref.fileName)):o.push(ce.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:B}}}var UUe=bt({"src/services/preProcess.ts"(){"use strict";ai()}});function aue(e){let t=Cd(e.useCaseSensitiveFileNames()),r=e.getCurrentDirectory(),i=new Map,o=new Map;return{tryGetSourcePosition:d,tryGetGeneratedPosition:p,toLineColumnOffset:E,clearCache:S};function s(A){return tl(A,r,t)}function l(A,N){let D=s(A),w=o.get(D);if(w)return w;let j;if(e.getDocumentPositionMapper)j=e.getDocumentPositionMapper(A,N);else if(e.readFile){let K=y(A);j=K&&PX({getSourceFileLike:y,getCanonicalFileName:t,log:Y=>e.log(Y)},A,AK(K.text,Rg(K)),Y=>!e.fileExists||e.fileExists(Y)?e.readFile(Y):void 0)}return o.set(D,j||O3),j||O3}function d(A){if(!vd(A.fileName)||!h(A.fileName))return;let D=l(A.fileName).getSourcePosition(A);return!D||D===A?void 0:d(D)||D}function p(A){if(vd(A.fileName))return;let N=h(A.fileName);if(!N)return;let D=e.getProgram();if(D.isSourceOfProjectReferenceRedirect(N.fileName))return;let w=D.getCompilerOptions(),j=Rs(w),K=j?Su(j)+".d.ts":o6(A.fileName,D.getCompilerOptions(),r,D.getCommonSourceDirectory(),t);if(K===void 0)return;let Y=l(K,A.fileName).getGeneratedPosition(A);return Y===A?void 0:Y}function h(A){let N=e.getProgram();if(!N)return;let D=s(A),w=N.getSourceFileByPath(D);return w&&w.resolvedPath===D?w:void 0}function m(A){let N=s(A),D=i.get(N);if(D!==void 0)return D||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(A)){i.set(N,!1);return}let w=e.readFile(A),j=w?HUe(w):!1;return i.set(N,j),j||void 0}function y(A){return e.getSourceFileLike?e.getSourceFileLike(A):h(A)||m(A)}function E(A,N){return y(A).getLineAndCharacterOfPosition(N)}function S(){i.clear(),o.clear()}}function PX(e,t,r,i){let o=Qse(r);if(o){let d=iRe.exec(o);if(d){if(d[1]){let p=d[1];return rRe(e,Qie(md,p),t)}o=void 0}}let s=[];o&&s.push(o),s.push(t+".map");let l=o&&_o(o,oi(t));for(let d of s){let p=_o(d,oi(t)),h=i(p,l);if(Co(h))return rRe(e,h,p);if(h!==void 0)return h||void 0}}function rRe(e,t,r){let i=IK(t);if(!(!i||!i.sources||!i.file||!i.mappings)&&!(i.sourcesContent&&i.sourcesContent.some(Co)))return tle(e,i,r)}function HUe(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(r){return Cx(Rg(this),r)}}}var iRe,KUe=bt({"src/services/sourcemaps.ts"(){"use strict";ai(),iRe=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/}});function MX(e,t,r){var i;t.getSemanticDiagnostics(e,r);let o=[],s=t.getTypeChecker();!(e.impliedNodeFormat===1||bc(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(yde(t)||Gq(t.getCompilerOptions()))&&JUe(e)&&o.push(Pr($Ue(e.commonJsModuleIndicator),f.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));let d=lu(e);if(OX.clear(),p(e),RT(t.getCompilerOptions()))for(let h of e.imports){let m=vN(h),y=qUe(m);if(!y)continue;let E=(i=t.getResolvedModuleFromModuleSpecifier(h))==null?void 0:i.resolvedModule,S=E&&t.getSourceFile(E.resolvedFileName);S&&S.externalModuleIndicator&&S.externalModuleIndicator!==!0&&Ll(S.externalModuleIndicator)&&S.externalModuleIndicator.isExportEquals&&o.push(Pr(y,f.Import_may_be_converted_to_a_default_import))}return Hr(o,e.bindSuggestionDiagnostics),Hr(o,t.getSuggestionDiagnostics(e,r)),o.sort((h,m)=>h.start-m.start);function p(h){if(d)ZUe(h,s)&&o.push(Pr(Oi(h.parent)?h.parent.name:h,f.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(Ml(h)&&h.parent===e&&h.declarationList.flags&2&&h.declarationList.declarations.length===1){let y=h.declarationList.declarations[0].initializer;y&&Eu(y,!0)&&o.push(Pr(y,f.require_call_may_be_converted_to_an_import))}let m=wd.getJSDocTypedefNodes(h);for(let y of m)o.push(Pr(y,f.JSDoc_typedef_may_be_converted_to_TypeScript_type));wd.parameterShouldGetTypeFromJSDoc(h)&&o.push(Pr(h.name||h,f.JSDoc_types_may_be_moved_to_TypeScript_types))}wX(h)&&XUe(h,s,o),h.forEachChild(p)}}function JUe(e){return e.statements.some(t=>{switch(t.kind){case 243:return t.declarationList.declarations.some(r=>!!r.initializer&&Eu(oRe(r.initializer),!0));case 244:{let{expression:r}=t;if(!ur(r))return Eu(r,!0);let i=zl(r);return i===1||i===2}default:return!1}})}function oRe(e){return wr(e)?oRe(e.expression):e}function qUe(e){switch(e.kind){case 272:let{importClause:t,moduleSpecifier:r}=e;return t&&!t.name&&t.namedBindings&&t.namedBindings.kind===274&&Ca(r)?t.namedBindings.name:void 0;case 271:return e.name;default:return}}function XUe(e,t,r){YUe(e,t)&&!OX.has(cRe(e))&&r.push(Pr(!e.name&&Oi(e.parent)&&Fe(e.parent.name)?e.parent.name:e,f.This_may_be_converted_to_an_async_function))}function YUe(e,t){return!TN(e)&&e.body&&Ho(e.body)&&QUe(e.body,t)&&LX(e,t)}function LX(e,t){let r=t.getSignatureFromDeclaration(e),i=r?t.getReturnTypeOfSignature(r):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}function $Ue(e){return ur(e)?e.left:e}function QUe(e,t){return!!x0(e,r=>T7(r,t))}function T7(e,t){return Sm(e)&&!!e.expression&&kX(e.expression,t)}function kX(e,t){if(!aRe(e)||!sRe(e)||!e.arguments.every(i=>lRe(i,t)))return!1;let r=e.expression.expression;for(;aRe(r)||wr(r);)if(ra(r)){if(!sRe(r)||!r.arguments.every(i=>lRe(i,t)))return!1;r=r.expression.expression}else r=r.expression;return!0}function aRe(e){return ra(e)&&(Kw(e,"then")||Kw(e,"catch")||Kw(e,"finally"))}function sRe(e){let t=e.expression.name.text,r=t==="then"?2:t==="catch"||t==="finally"?1:0;return e.arguments.length>r?!1:e.arguments.lengthi.kind===106||Fe(i)&&i.text==="undefined")}function lRe(e,t){switch(e.kind){case 262:case 218:if(Bc(e)&1)return!1;case 219:OX.set(cRe(e),!0);case 106:return!0;case 80:case 211:{let i=t.getSymbolAtLocation(e);return i?t.isUndefinedSymbol(i)||gt(gd(i,t).declarations,o=>Yo(o)||Lv(o)&&!!o.initializer&&Yo(o.initializer)):!1}default:return!1}}function cRe(e){return`${e.pos.toString()}:${e.end.toString()}`}function ZUe(e,t){var r,i,o,s;if(Ms(e)){if(Oi(e.parent)&&((r=e.symbol.members)!=null&&r.size))return!0;let l=t.getSymbolOfExpando(e,!1);return!!(l&&((i=l.exports)!=null&&i.size||(o=l.members)!=null&&o.size))}return Ec(e)?!!((s=e.symbol.members)!=null&&s.size):!1}function wX(e){switch(e.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var OX,eHe=bt({"src/services/suggestionDiagnostics.ts"(){"use strict";ai(),OX=new Map}});function sue(e,t){let r=[],i=t.compilerOptions?WX(t.compilerOptions,r):{},o=H7();for(let E in o)Ts(o,E)&&i[E]===void 0&&(i[E]=o[E]);for(let E of YH)i.verbatimModuleSyntax&&uRe.has(E.name)||(i[E.name]=E.transpileOptionValue);i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0;let s=Oy(i),l={getSourceFile:E=>E===fa(d)?p:void 0,writeFile:(E,S)=>{Sl(E,".map")?(R.assertEqual(m,void 0,"Unexpected multiple source map outputs, file:",E),m=S):(R.assertEqual(h,void 0,"Unexpected multiple outputs, file:",E),h=S)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:E=>E,getCurrentDirectory:()=>"",getNewLine:()=>s,fileExists:E=>E===d,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},d=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),p=$k(d,e,{languageVersion:rs(i),impliedNodeFormat:kw(tl(d,"",l.getCanonicalFileName),void 0,l,i),setExternalModuleIndicator:ak(i),jsDocParsingMode:t.jsDocParsingMode??0});t.moduleName&&(p.moduleName=t.moduleName),t.renamedDependencies&&(p.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let h,m,y=iz([d],i,l);return t.reportDiagnostics&&(Hr(r,y.getSyntacticDiagnostics(p)),Hr(r,y.getOptionsDiagnostics())),y.emit(void 0,void 0,void 0,void 0,t.transformers),h===void 0?R.fail("Output generation failed"):{outputText:h,diagnostics:r,sourceMapText:m}}function dRe(e,t,r,i,o){let s=sue(e,{compilerOptions:t,fileName:r,reportDiagnostics:!!i,moduleName:o});return Hr(i,s.diagnostics),s.outputText}function WX(e,t){lue=lue||jr(ag,r=>typeof r.type=="object"&&!zc(r.type,i=>typeof i!="number")),e=wq(e);for(let r of lue){if(!Ts(e,r.name))continue;let i=e[r.name];Co(i)?e[r.name]=i3(r,i,t):zc(r.type,o=>o===i)||t.push(Zae(r))}return e}var uRe,lue,tHe=bt({"src/services/transpile.ts"(){"use strict";ai(),uRe=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function pRe(e,t,r,i,o,s,l){let d=$de(i);if(!d)return Xe;let p=[],h=e.length===1?e[0]:void 0;for(let m of e)r.throwIfCancellationRequested(),!(s&&m.isDeclarationFile)&&(fRe(m,!!l,h)||m.getNamedDeclarations().forEach((y,E)=>{nHe(d,E,y,t,m.fileName,!!l,h,p)}));return p.sort(aHe),(o===void 0?p:p.slice(0,o)).map(sHe)}function fRe(e,t,r){return e!==r&&t&&(pO(e.path)||e.hasNoDefaultLib)}function nHe(e,t,r,i,o,s,l,d){let p=e.getMatchForLastSegmentOfPattern(t);if(p){for(let h of r)if(rHe(h,i,s,l))if(e.patternContainsDots){let m=e.getFullMatch(oHe(h),t);m&&d.push({name:t,fileName:o,matchKind:m.kind,isCaseSensitive:m.isCaseSensitive,declaration:h})}else d.push({name:t,fileName:o,matchKind:p.kind,isCaseSensitive:p.isCaseSensitive,declaration:h})}}function rHe(e,t,r,i){var o;switch(e.kind){case 273:case 276:case 271:let s=t.getSymbolAtLocation(e.name),l=t.getAliasedSymbol(s);return s.escapedName!==l.escapedName&&!((o=l.declarations)!=null&&o.every(d=>fRe(d.getSourceFile(),r,i)));default:return!0}}function iHe(e,t){let r=No(e);return!!r&&(mRe(r,t)||r.kind===167&&cue(r.expression,t))}function cue(e,t){return mRe(e,t)||wr(e)&&(t.push(e.name.text),!0)&&cue(e.expression,t)}function mRe(e,t){return T_(e)&&(t.push(Xf(e)),!0)}function oHe(e){let t=[],r=No(e);if(r&&r.kind===167&&!cue(r.expression,t))return Xe;t.shift();let i=XT(e);for(;i;){if(!iHe(i,t))return Xe;i=XT(i)}return t.reverse()}function aHe(e,t){return Zs(e.matchKind,t.matchKind)||xL(e.name,t.name)}function sHe(e){let t=e.declaration,r=XT(t),i=r&&No(r);return{name:e.name,kind:aS(t),kindModifiers:YP(t),matchKind:S7[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:xu(t),containerName:i?i.text:"",containerKind:i?aS(r):""}}var lHe=bt({"src/services/navigateTo.ts"(){"use strict";ai()}}),due={};Ra(due,{getNavigateToItems:()=>pRe});var _Re=bt({"src/services/_namespaces/ts.NavigateTo.ts"(){"use strict";lHe()}});function hRe(e,t){GX=t,hO=e;try{return mn(fHe(bRe(e)),mHe)}finally{yRe()}}function gRe(e,t){GX=t,hO=e;try{return CRe(bRe(e))}finally{yRe()}}function yRe(){hO=void 0,GX=void 0,gO=[],qy=void 0,VX=[]}function A7(e){return sM(e.getText(hO))}function FX(e){return e.node.kind}function vRe(e,t){e.children?e.children.push(t):e.children=[t]}function bRe(e){R.assert(!gO.length);let t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};qy=t;for(let r of e.statements)S1(r);return DE(),R.assert(!qy&&!gO.length),t}function cS(e,t){vRe(qy,uue(e,t))}function uue(e,t){return{node:e,name:t||(Ud(e)||ht(e)?No(e):void 0),additionalNodes:void 0,parent:qy,children:void 0,indent:qy.indent+1}}function ERe(e){_D||(_D=new Map),_D.set(e,!0)}function SRe(e){for(let t=0;t0;i--){let o=r[i];dS(e,o)}return[r.length-1,r[0]]}function dS(e,t){let r=uue(e,t);vRe(qy,r),gO.push(qy),vue.push(_D),_D=void 0,qy=r}function DE(){qy.children&&(zX(qy.children,qy),mue(qy.children)),qy=gO.pop(),_D=vue.pop()}function CE(e,t,r){dS(e,r),S1(t),DE()}function ARe(e){e.initializer&&hHe(e.initializer)?(dS(e),Bo(e.initializer,S1),DE()):CE(e,e.initializer)}function pue(e){let t=No(e);if(t===void 0)return!1;if(Ya(t)){let r=t.expression;return Bl(r)||mp(r)||Qp(r)}return!!t}function S1(e){if(GX.throwIfCancellationRequested(),!(!e||gI(e)))switch(e.kind){case 176:let t=e;CE(t,t.body);for(let l of t.parameters)dp(l,t)&&cS(l);break;case 174:case 177:case 178:case 173:pue(e)&&CE(e,e.body);break;case 172:pue(e)&&ARe(e);break;case 171:pue(e)&&cS(e);break;case 273:let r=e;r.name&&cS(r.name);let{namedBindings:i}=r;if(i)if(i.kind===274)cS(i);else for(let l of i.elements)cS(l);break;case 304:CE(e,e.name);break;case 305:let{expression:o}=e;Fe(o)?cS(e,o):cS(e);break;case 208:case 303:case 260:{let l=e;$o(l.name)?S1(l.name):ARe(l);break}case 262:let s=e.name;s&&Fe(s)&&ERe(s.text),CE(e,e.body);break;case 219:case 218:CE(e,e.body);break;case 266:dS(e);for(let l of e.members)_He(l)||cS(l);DE();break;case 263:case 231:case 264:dS(e);for(let l of e.members)S1(l);DE();break;case 267:CE(e,PRe(e).body);break;case 277:{let l=e.expression,d=La(l)||ra(l)?l:Fs(l)||Ms(l)?l.body:void 0;d?(dS(e),S1(d),DE()):cS(e);break}case 281:case 271:case 181:case 179:case 180:case 265:cS(e);break;case 213:case 226:{let l=zl(e);switch(l){case 1:case 2:CE(e,e.right);return;case 6:case 3:{let d=e,p=d.left,h=l===3?p.expression:p,m=0,y;Fe(h.expression)?(ERe(h.expression.text),y=h.expression):[m,y]=TRe(d,h.expression),l===6?La(d.right)&&d.right.properties.length>0&&(dS(d,y),Bo(d.right,S1),DE()):Ms(d.right)||Fs(d.right)?CE(e,d.right,y):(dS(d,y),CE(e,d.right,p.name),DE()),SRe(m);return}case 7:case 9:{let d=e,p=l===7?d.arguments[0]:d.arguments[0].expression,h=d.arguments[1],[m,y]=TRe(e,p);dS(e,y),dS(e,at(L.createIdentifier(h.text),h)),S1(e.arguments[2]),DE(),DE(),SRe(m);return}case 5:{let d=e,p=d.left,h=p.expression;if(Fe(h)&&Mg(p)!=="prototype"&&_D&&_D.has(h.text)){Ms(d.right)||Fs(d.right)?CE(e,d.right,h):C0(p)&&(dS(d,h),CE(d.left,d.right,L2(p)),DE());return}break}case 4:case 0:case 8:break;default:R.assertNever(l)}}default:kp(e)&&gn(e.jsDoc,l=>{gn(l.tags,d=>{qf(d)&&cS(d)})}),Bo(e,S1)}}function zX(e,t){let r=new Map;CG(e,(i,o)=>{let s=i.name||No(i.node),l=s&&A7(s);if(!l)return!0;let d=r.get(l);if(!d)return r.set(l,i),!0;if(d instanceof Array){for(let p of d)if(IRe(p,i,o,t))return!1;return d.push(i),!0}else{let p=d;return IRe(p,i,o,t)?!1:(r.set(l,[p,i]),!0)}})}function cHe(e,t,r,i){function o(d){return Ms(d)||Ec(d)||Oi(d)}let s=ur(t.node)||ra(t.node)?zl(t.node):0,l=ur(e.node)||ra(e.node)?zl(e.node):0;if(lM[s]&&lM[l]||o(e.node)&&lM[s]||o(t.node)&&lM[l]||Sc(e.node)&&fue(e.node)&&lM[s]||Sc(t.node)&&lM[l]||Sc(e.node)&&fue(e.node)&&o(t.node)||Sc(t.node)&&o(e.node)&&fue(e.node)){let d=e.additionalNodes&&$s(e.additionalNodes)||e.node;if(!Sc(e.node)&&!Sc(t.node)||o(e.node)||o(t.node)){let h=o(e.node)?e.node:o(t.node)?t.node:void 0;if(h!==void 0){let m=at(L.createConstructorDeclaration(void 0,[],void 0),h),y=uue(m);y.indent=e.indent+1,y.children=e.node===h?e.children:t.children,e.children=e.node===h?bo([y],t.children||[t]):bo(e.children||[{...e}],[y])}else(e.children||t.children)&&(e.children=bo(e.children||[{...e}],t.children||[t]),e.children&&(zX(e.children,e),mue(e.children)));d=e.node=at(L.createClassDeclaration(void 0,e.name||L.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=bo(e.children,t.children),e.children&&zX(e.children,e);let p=t.node;return i.children[r-1].node.end===d.end?at(d,{pos:d.pos,end:p.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(at(L.createClassDeclaration(void 0,e.name||L.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return s!==0}function IRe(e,t,r,i){return cHe(e,t,r,i)?!0:dHe(e.node,t.node,i)?(uHe(e,t),!0):!1}function dHe(e,t,r){if(e.kind!==t.kind||e.parent!==t.parent&&!(xRe(e,r)&&xRe(t,r)))return!1;switch(e.kind){case 172:case 174:case 177:case 178:return na(e)===na(t);case 267:return RRe(e,t)&&gue(e)===gue(t);default:return!0}}function fue(e){return!!(e.flags&16)}function xRe(e,t){let r=N_(e.parent)?e.parent.parent:e.parent;return r===t.node||zo(t.additionalNodes,r)}function RRe(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==267||RRe(e.body,t.body))}function uHe(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes),e.children=bo(e.children,t.children),e.children&&(zX(e.children,e),mue(e.children))}function mue(e){e.sort(pHe)}function pHe(e,t){return xL(DRe(e.node),DRe(t.node))||Zs(FX(e),FX(t))}function DRe(e){if(e.kind===267)return NRe(e);let t=No(e);if(t&&rc(t)){let r=bT(t);return r&&Vi(r)}switch(e.kind){case 218:case 219:case 231:return LRe(e);default:return}}function _ue(e,t){if(e.kind===267)return sM(NRe(e));if(t){let r=Fe(t)?t.text:qs(t)?`[${A7(t.argumentExpression)}]`:A7(t);if(r.length>0)return sM(r)}switch(e.kind){case 312:let r=e;return oc(r)?`"${Zh(nc(Su(fa(r.fileName))))}"`:"";case 277:return Ll(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return Fv(e)&2048?"default":LRe(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return""}}function fHe(e){let t=[];function r(o){if(i(o)&&(t.push(o),o.children))for(let s of o.children)r(s)}return r(e),t;function i(o){if(o.children)return!0;switch(FX(o)){case 263:case 231:case 266:case 264:case 267:case 312:case 265:case 353:case 345:return!0;case 219:case 262:case 218:return s(o);default:return!1}function s(l){if(!l.node.body)return!1;switch(FX(l.parent)){case 268:case 312:case 174:case 176:return!0;default:return!1}}}}function CRe(e){return{text:_ue(e.node,e.name),kind:aS(e.node),kindModifiers:MRe(e.node),spans:hue(e),nameSpan:e.name&&yue(e.name),childItems:mn(e.children,CRe)}}function mHe(e){return{text:_ue(e.node,e.name),kind:aS(e.node),kindModifiers:MRe(e.node),spans:hue(e),childItems:mn(e.children,t)||VX,indent:e.indent,bolded:!1,grayed:!1};function t(r){return{text:_ue(r.node,r.name),kind:aS(r.node),kindModifiers:YP(r.node),spans:hue(r),childItems:VX,indent:0,bolded:!1,grayed:!1}}}function hue(e){let t=[yue(e.node)];if(e.additionalNodes)for(let r of e.additionalNodes)t.push(yue(r));return t}function NRe(e){return Pd(e)?uc(e.name):gue(e)}function gue(e){let t=[Xf(e.name)];for(;e.body&&e.body.kind===267;)e=e.body,t.push(Xf(e.name));return t.join(".")}function PRe(e){return e.body&&ql(e.body)?PRe(e.body):e}function _He(e){return!e.name||e.name.kind===167}function yue(e){return e.kind===312?tb(e):xu(e,hO)}function MRe(e){return e.parent&&e.parent.kind===260&&(e=e.parent),YP(e)}function LRe(e){let{parent:t}=e;if(e.name&&p2(e.name)>0)return sM(As(e.name));if(Oi(t))return sM(As(t.name));if(ur(t)&&t.operatorToken.kind===64)return A7(t.left).replace(wRe,"");if(mc(t))return A7(t.name);if(Fv(e)&2048)return"default";if(di(e))return"";if(ra(t)){let r=kRe(t.expression);if(r!==void 0){if(r=sM(r),r.length>BX)return`${r} callback`;let i=sM(to(t.arguments,o=>ss(o)||EI(o)?o.getText(hO):void 0).join(", "));return`${r}(${i}) callback`}}return""}function kRe(e){if(Fe(e))return e.text;if(wr(e)){let t=kRe(e.expression),r=e.name.text;return t===void 0?r:`${t}.${r}`}else return}function hHe(e){switch(e.kind){case 219:case 218:case 231:return!0;default:return!1}}function sM(e){return e=e.length>BX?e.substring(0,BX)+"...":e,e.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var wRe,BX,GX,hO,gO,qy,vue,_D,VX,lM,gHe=bt({"src/services/navigationBar.ts"(){"use strict";ai(),wRe=/\s+/g,BX=150,gO=[],vue=[],VX=[],lM={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),bue={};Ra(bue,{getNavigationBarItems:()=>hRe,getNavigationTree:()=>gRe});var ORe=bt({"src/services/_namespaces/ts.NavigationBar.ts"(){"use strict";gHe()}});function sg(e,t){jX.set(e,t)}function yHe(e,t){return Oo(NG(jX.values(),r=>{var i;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((i=r.kinds)!=null&&i.some(o=>NE(o,e.kind)))?void 0:r.getAvailableActions(e,t)}))}function vHe(e,t,r,i){let o=jX.get(t);return o&&o.getEditsForAction(e,r,i)}var jX,WRe=bt({"src/services/refactorProvider.ts"(){"use strict";ai(),Th(),jX=new Map}});function FRe(e,t=!0){let{file:r,program:i}=e,o=E1(e),s=so(r,o.start),l=s.parent&&Fv(s.parent)&32&&t?s.parent:oO(s,r,o);if(!l||!Yi(l.parent)&&!(N_(l.parent)&&Pd(l.parent.parent)))return{error:ko(f.Could_not_find_export_statement)};let d=i.getTypeChecker(),p=IHe(l.parent,d),h=Fv(l)||(Ll(l)&&!l.isExportEquals?2080:0),m=!!(h&2048);if(!(h&32)||!m&&p.exports.has("default"))return{error:ko(f.This_file_already_has_a_default_export)};let y=E=>Fe(E)&&d.getSymbolAtLocation(E)?void 0:{error:ko(f.Can_only_convert_named_export)};switch(l.kind){case 262:case 263:case 264:case 266:case 265:case 267:{let E=l;return E.name?y(E.name)||{exportNode:E,exportName:E.name,wasDefault:m,exportingModuleSymbol:p}:void 0}case 243:{let E=l;if(!(E.declarationList.flags&2)||E.declarationList.declarations.length!==1)return;let S=Va(E.declarationList.declarations);return S.initializer?(R.assert(!m,"Can't have a default flag here"),y(S.name)||{exportNode:E,exportName:S.name,wasDefault:m,exportingModuleSymbol:p}):void 0}case 277:{let E=l;return E.isExportEquals?void 0:y(E.expression)||{exportNode:E,exportName:E.expression,wasDefault:m,exportingModuleSymbol:p}}default:return}}function bHe(e,t,r,i,o){EHe(e,r,i,t.getTypeChecker()),SHe(t,r,i,o)}function EHe(e,{wasDefault:t,exportNode:r,exportName:i},o,s){if(t)if(Ll(r)&&!r.isExportEquals){let l=r.expression,d=zRe(l.text,l.text);o.replaceNode(e,r,L.createExportDeclaration(void 0,!1,L.createNamedExports([d])))}else o.delete(e,R.checkDefined(cD(r,90),"Should find a default keyword in modifier list"));else{let l=R.checkDefined(cD(r,95),"Should find an export keyword in modifier list");switch(r.kind){case 262:case 263:case 264:o.insertNodeAfter(e,l,L.createToken(90));break;case 243:let d=Va(r.declarationList.declarations);if(!Ls.Core.isSymbolReferencedInFile(i,s,e)&&!d.type){o.replaceNode(e,r,L.createExportDefault(R.checkDefined(d.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:o.deleteModifier(e,l),o.insertNodeAfter(e,r,L.createExportDefault(L.createIdentifier(i.text)));break;default:R.fail(`Unexpected exportNode kind ${r.kind}`)}}}function SHe(e,{wasDefault:t,exportName:r,exportingModuleSymbol:i},o,s){let l=e.getTypeChecker(),d=R.checkDefined(l.getSymbolAtLocation(r),"Export name should resolve to a symbol");Ls.Core.eachExportReference(e.getSourceFiles(),l,s,d,i,r.text,t,p=>{if(r===p)return;let h=p.getSourceFile();t?THe(h,p,o,r.text):AHe(h,p,o)})}function THe(e,t,r,i){let{parent:o}=t;switch(o.kind){case 211:r.replaceNode(e,t,L.createIdentifier(i));break;case 276:case 281:{let l=o;r.replaceNode(e,l,Eue(i,l.name.text));break}case 273:{let l=o;R.assert(l.name===t,"Import clause name should match provided ref");let d=Eue(i,t.text),{namedBindings:p}=l;if(!p)r.replaceNode(e,t,L.createNamedImports([d]));else if(p.kind===274){r.deleteRange(e,{pos:t.getStart(e),end:p.getStart(e)});let h=Ca(l.parent.moduleSpecifier)?jq(l.parent.moduleSpecifier,e):1,m=Ky(void 0,[Eue(i,t.text)],l.parent.moduleSpecifier,h);r.insertNodeAfter(e,l.parent,m)}else r.delete(e,t),r.insertNodeAtEndOfList(e,p.elements,d);break}case 205:let s=o;r.replaceNode(e,o,L.createImportTypeNode(s.argument,s.attributes,L.createIdentifier(i),s.typeArguments,s.isTypeOf));break;default:R.failBadSyntaxKind(o)}}function AHe(e,t,r){let i=t.parent;switch(i.kind){case 211:r.replaceNode(e,t,L.createIdentifier("default"));break;case 276:{let o=L.createIdentifier(i.name.text);i.parent.elements.length===1?r.replaceNode(e,i.parent,o):(r.delete(e,i),r.insertNodeBefore(e,i.parent,o));break}case 281:{r.replaceNode(e,i,zRe("default",i.name.text));break}default:R.assertNever(i,`Unexpected parent kind ${i.kind}`)}}function Eue(e,t){return L.createImportSpecifier(!1,e===t?void 0:L.createIdentifier(e),L.createIdentifier(t))}function zRe(e,t){return L.createExportSpecifier(!1,e===t?void 0:L.createIdentifier(e),L.createIdentifier(t))}function IHe(e,t){if(Yi(e))return e.symbol;let r=e.parent.symbol;return r.valueDeclaration&&A0(r.valueDeclaration)?t.getMergedSymbol(r):r}var UX,I7,x7,xHe=bt({"src/services/refactors/convertExport.ts"(){"use strict";ai(),Th(),UX="Convert export",I7={name:"Convert default export to named export",description:ko(f.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},x7={name:"Convert named export to default export",description:ko(f.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"},sg(UX,{kinds:[I7.kind,x7.kind],getAvailableActions:function(t){let r=FRe(t,t.triggerReason==="invoked");if(!r)return Xe;if(!Vg(r)){let i=r.wasDefault?I7:x7;return[{name:UX,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:UX,description:ko(f.Convert_default_export_to_named_export),actions:[{...I7,notApplicableReason:r.error},{...x7,notApplicableReason:r.error}]}]:Xe},getEditsForAction:function(t,r){R.assert(r===I7.name||r===x7.name,"Unexpected action name");let i=FRe(t);return R.assert(i&&!Vg(i),"Expected applicable refactor info"),{edits:pr.ChangeTracker.with(t,s=>bHe(t.file,t.program,i,s,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}})}});function BRe(e,t=!0){let{file:r}=e,i=E1(e),o=so(r,i.start),s=t?Fn(o,Mc):oO(o,r,i);if(!s||!Mc(s))return{error:"Selection is not an import declaration."};let l=i.start+i.length,d=sS(s,s.parent,r);if(d&&l>d.getStart())return;let{importClause:p}=s;return p?p.namedBindings?p.namedBindings.kind===274?{convertTo:0,import:p.namedBindings}:GRe(e.program,p)?{convertTo:1,import:p.namedBindings}:{convertTo:2,import:p.namedBindings}:{error:ko(f.Could_not_find_namespace_import_or_named_imports)}:{error:ko(f.Could_not_find_import_clause)}}function GRe(e,t){return RT(e.getCompilerOptions())&&NHe(t.parent.moduleSpecifier,e.getTypeChecker())}function RHe(e,t,r,i){let o=t.getTypeChecker();i.convertTo===0?DHe(e,o,r,i.import,RT(t.getCompilerOptions())):jRe(e,t,r,i.import,i.convertTo===1)}function DHe(e,t,r,i,o){let s=!1,l=[],d=new Map;Ls.Core.eachSymbolReferenceInFile(i.name,t,e,y=>{if(!vre(y.parent))s=!0;else{let E=VRe(y.parent).text;t.resolveName(E,y,-1,!0)&&d.set(E,!0),R.assert(CHe(y.parent)===y,"Parent expression should match id"),l.push(y.parent)}});let p=new Map;for(let y of l){let E=VRe(y).text,S=p.get(E);S===void 0&&p.set(E,S=d.has(E)?QT(E,e):E),r.replaceNode(e,y,L.createIdentifier(S))}let h=[];p.forEach((y,E)=>{h.push(L.createImportSpecifier(!1,y===E?void 0:L.createIdentifier(E),L.createIdentifier(y)))});let m=i.parent.parent;s&&!o?r.insertNodeAfter(e,m,Sue(m,void 0,h)):r.replaceNode(e,m,Sue(m,s?L.createIdentifier(i.name.text):void 0,h))}function VRe(e){return wr(e)?e.name:e.right}function CHe(e){return wr(e)?e.expression:e.left}function jRe(e,t,r,i,o=GRe(t,i.parent)){let s=t.getTypeChecker(),l=i.parent.parent,{moduleSpecifier:d}=l,p=new Set;i.elements.forEach(A=>{let N=s.getSymbolAtLocation(A.name);N&&p.add(N)});let h=d&&Ca(d)?wd.moduleSpecifierToValidIdentifier(d.text,99):"module";function m(A){return!!Ls.Core.eachSymbolReferenceInFile(A.name,s,e,N=>{let D=s.resolveName(h,N,-1,!0);return D?p.has(D)?Hd(N.parent):!0:!1})}let E=i.elements.some(m)?QT(h,e):h,S=new Set;for(let A of i.elements){let N=(A.propertyName||A.name).text;Ls.Core.eachSymbolReferenceInFile(A.name,s,e,D=>{let w=L.createPropertyAccessExpression(L.createIdentifier(E),N);Zu(D.parent)?r.replaceNode(e,D.parent,L.createPropertyAssignment(D.text,w)):Hd(D.parent)?S.add(A):r.replaceNode(e,D,w)})}if(r.replaceNode(e,i,o?L.createIdentifier(E):L.createNamespaceImport(L.createIdentifier(E))),S.size){let A=Oo(S.values(),N=>L.createImportSpecifier(N.isTypeOnly,N.propertyName&&L.createIdentifier(N.propertyName.text),L.createIdentifier(N.name.text)));r.insertNodeAfter(e,i.parent.parent,Sue(l,void 0,A))}}function NHe(e,t){let r=t.resolveExternalModuleName(e);if(!r)return!1;let i=t.resolveExternalModuleSymbol(r);return r!==i}function Sue(e,t,r){return L.createImportDeclaration(void 0,L.createImportClause(!1,t,r&&r.length?L.createNamedImports(r):void 0),e.moduleSpecifier,void 0)}var HX,R7,PHe=bt({"src/services/refactors/convertImport.ts"(){"use strict";ai(),Th(),HX="Convert import",R7={0:{name:"Convert namespace import to named imports",description:ko(f.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:ko(f.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:ko(f.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}},sg(HX,{kinds:cI(R7).map(e=>e.kind),getAvailableActions:function(t){let r=BRe(t,t.triggerReason==="invoked");if(!r)return Xe;if(!Vg(r)){let i=R7[r.convertTo];return[{name:HX,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?cI(R7).map(i=>({name:HX,description:i.description,actions:[{...i,notApplicableReason:r.error}]})):Xe},getEditsForAction:function(t,r){R.assert(gt(cI(R7),s=>s.name===r),"Unexpected action name");let i=BRe(t);return R.assert(i&&!Vg(i),"Expected applicable refactor info"),{edits:pr.ChangeTracker.with(t,s=>RHe(t.file,t.program,s,i)),renameFilename:void 0,renameLocation:void 0}}})}});function URe(e,t=!0){let{file:r,startPosition:i}=e,o=lu(r),s=Hz(E1(e)),l=s.pos===s.end&&t,d=MHe(r,i,s,l);if(!d||!ji(d))return{error:ko(f.Selection_is_not_a_valid_type_node)};let p=e.program.getTypeChecker(),h=WHe(d,o);if(h===void 0)return{error:ko(f.No_type_could_be_extracted_from_this_type_node)};let m=FHe(d,h);if(!ji(m))return{error:ko(f.Selection_is_not_a_valid_type_node)};let y=[];(Kv(m.parent)||QI(m.parent))&&s.end>d.end&&Hr(y,m.parent.types.filter(N=>wz(N,r,s.pos,s.end)));let E=y.length>1?y:m,S=LHe(p,E,h,r);if(!S)return{error:ko(f.No_type_could_be_extracted_from_this_type_node)};let A=KX(p,E);return{isJS:o,selection:E,enclosingNode:h,typeParameters:S,typeElements:A}}function MHe(e,t,r,i){let o=[()=>so(e,t),()=>sD(e,t,()=>!0)];for(let s of o){let l=s(),d=wz(l,e,r.pos,r.end),p=Fn(l,h=>h.parent&&ji(h)&&!uS(r,h.parent,e)&&(i||d));if(p)return p}}function KX(e,t){if(t){if(So(t)){let r=[];for(let i of t){let o=KX(e,i);if(!o)return;Hr(r,o)}return r}if(QI(t)){let r=[],i=new Map;for(let o of t.types){let s=KX(e,o);if(!s||!s.every(l=>l.name&&Em(i,rO(l.name))))return;Hr(r,s)}return r}else{if(NT(t))return KX(e,t.type);if(gp(t))return t.members}}}function uS(e,t,r){return Yw(e,Pa(r.text,t.pos),t.end)}function LHe(e,t,r,i){let o=[],s=dI(t),l={pos:s[0].pos,end:s[s.length-1].end};for(let p of s)if(d(p))return;return o;function d(p){if(If(p)){if(Fe(p.typeName)){let h=p.typeName,m=e.resolveName(h.text,h,262144,!0);for(let y of m?.declarations||Xe)if(fl(y)&&y.getSourceFile()===i){if(y.name.escapedText===h.escapedText&&uS(y,l,i))return!0;if(uS(r,y,i)&&!uS(l,y,i)){yf(o,y);break}}}}else if(CT(p)){let h=Fn(p,m=>ZI(m)&&uS(m.extendsType,p,i));if(!h||!uS(l,h,i))return!0}else if(kk(p)||Ok(p)){let h=Fn(p.parent,Yo);if(h&&h.type&&uS(h.type,p,i)&&!uS(l,h,i))return!0}else if(YI(p)){if(Fe(p.exprName)){let h=e.resolveName(p.exprName.text,p.exprName,111551,!1);if(h?.valueDeclaration&&uS(r,h.valueDeclaration,i)&&!uS(l,h.valueDeclaration,i))return!0}else if(w0(p.exprName.left)&&!uS(l,p.parent,i))return!0}return i&&$I(p)&&gs(i,p.pos).line===gs(i,p.end).line&&lr(p,1),Bo(p,d)}}function kHe(e,t,r,i){let{enclosingNode:o,typeParameters:s}=i,{firstTypeNode:l,lastTypeNode:d,newTypeNode:p}=Tue(i),h=L.createTypeAliasDeclaration(void 0,r,s.map(m=>L.updateTypeParameterDeclaration(m,m.modifiers,m.name,m.constraint,void 0)),p);e.insertNodeBefore(t,o,HU(h),!0),e.replaceNodeRange(t,l,d,L.createTypeReferenceNode(r,s.map(m=>L.createTypeReferenceNode(m.name,void 0))),{leadingTriviaOption:pr.LeadingTriviaOption.Exclude,trailingTriviaOption:pr.TrailingTriviaOption.ExcludeWhitespace})}function wHe(e,t,r,i){var o;let{enclosingNode:s,typeParameters:l,typeElements:d}=i,p=L.createInterfaceDeclaration(void 0,r,l,void 0,d);at(p,(o=d[0])==null?void 0:o.parent),e.insertNodeBefore(t,s,HU(p),!0);let{firstTypeNode:h,lastTypeNode:m}=Tue(i);e.replaceNodeRange(t,h,m,L.createTypeReferenceNode(r,l.map(y=>L.createTypeReferenceNode(y.name,void 0))),{leadingTriviaOption:pr.LeadingTriviaOption.Exclude,trailingTriviaOption:pr.TrailingTriviaOption.ExcludeWhitespace})}function OHe(e,t,r,i,o){var s;dI(o.selection).forEach(A=>{lr(A,7168)});let{enclosingNode:l,typeParameters:d}=o,{firstTypeNode:p,lastTypeNode:h,newTypeNode:m}=Tue(o),y=L.createJSDocTypedefTag(L.createIdentifier("typedef"),L.createJSDocTypeExpression(m),L.createIdentifier(i)),E=[];gn(d,A=>{let N=kx(A),D=L.createTypeParameterDeclaration(void 0,A.name),w=L.createJSDocTemplateTag(L.createIdentifier("template"),N&&ta(N,Q0),[D]);E.push(w)});let S=L.createJSDocComment(void 0,L.createNodeArray(bo(E,[y])));if(Ym(l)){let A=l.getStart(r),N=Jy(t.host,(s=t.formatContext)==null?void 0:s.options);e.insertNodeAt(r,l.getStart(r),S,{suffix:N+N+r.text.slice(t7(r.text,A-1),A)})}else e.insertNodeBefore(r,l,S,!0);e.replaceNodeRange(r,p,h,L.createTypeReferenceNode(i,d.map(A=>L.createTypeReferenceNode(A.name,void 0))))}function Tue(e){return So(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:Kv(e.selection[0].parent)?L.createUnionTypeNode(e.selection):L.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}function WHe(e,t){return Fn(e,Hi)||(t?Fn(e,Ym):void 0)}function FHe(e,t){return Fn(e,r=>r===t?"quit":!!(Kv(r.parent)||QI(r.parent)))??e}var JX,D7,C7,N7,zHe=bt({"src/services/refactors/extractType.ts"(){"use strict";ai(),Th(),JX="Extract type",D7={name:"Extract to type alias",description:ko(f.Extract_to_type_alias),kind:"refactor.extract.type"},C7={name:"Extract to interface",description:ko(f.Extract_to_interface),kind:"refactor.extract.interface"},N7={name:"Extract to typedef",description:ko(f.Extract_to_typedef),kind:"refactor.extract.typedef"},sg(JX,{kinds:[D7.kind,C7.kind,N7.kind],getAvailableActions:function(t){let r=URe(t,t.triggerReason==="invoked");return r?Vg(r)?t.preferences.provideRefactorNotApplicableReason?[{name:JX,description:ko(f.Extract_type),actions:[{...N7,notApplicableReason:r.error},{...D7,notApplicableReason:r.error},{...C7,notApplicableReason:r.error}]}]:Xe:[{name:JX,description:ko(f.Extract_type),actions:r.isJS?[N7]:Tn([D7],r.typeElements&&C7)}]:Xe},getEditsForAction:function(t,r){let{file:i}=t,o=URe(t);R.assert(o&&!Vg(o),"Expected to find a range to extract");let s=QT("NewType",i),l=pr.ChangeTracker.with(t,h=>{switch(r){case D7.name:return R.assert(!o.isJS,"Invalid actionName/JS combo"),kHe(h,i,s,o);case N7.name:return R.assert(o.isJS,"Invalid actionName/JS combo"),OHe(h,t,i,s,o);case C7.name:return R.assert(!o.isJS&&!!o.typeElements,"Invalid actionName/JS combo"),wHe(h,i,s,o);default:R.fail("Unexpected action name")}}),d=i.fileName,p=lO(l,d,s,!1);return{edits:l,renameFilename:d,renameLocation:p}}})}});function Vg(e){return e.error!==void 0}function NE(e,t){return t?e.substr(0,t.length)===t:!0}var BHe=bt({"src/services/refactors/helpers.ts"(){"use strict"}});function HRe(e,t,r,i){var o,s;let l=i.getTypeChecker(),d=Fu(e,t),p=d.parent;if(Fe(d)){if(ik(p)&&mN(p)&&Fe(p.name)){if(((o=l.getMergedSymbol(p.symbol).declarations)==null?void 0:o.length)!==1)return{error:ko(f.Variables_with_multiple_declarations_cannot_be_inlined)};if(KRe(p))return;let h=JRe(p,l,e);return h&&{references:h,declaration:p,replacement:p.initializer}}if(r){let h=l.resolveName(d.text,d,111551,!1);if(h=h&&l.getMergedSymbol(h),((s=h?.declarations)==null?void 0:s.length)!==1)return{error:ko(f.Variables_with_multiple_declarations_cannot_be_inlined)};let m=h.declarations[0];if(!ik(m)||!mN(m)||!Fe(m.name)||KRe(m))return;let y=JRe(m,l,e);return y&&{references:y,declaration:m,replacement:m.initializer}}return{error:ko(f.Could_not_find_variable_to_inline)}}}function KRe(e){let t=ta(e.parent.parent,Ml);return gt(t.modifiers,JI)}function JRe(e,t,r){let i=[],o=Ls.Core.eachSymbolReferenceInFile(e.name,t,r,s=>{if(Ls.isWriteAccessForReference(s)&&!Zu(s.parent)||Hd(s.parent)||Ll(s.parent)||YI(s.parent)||JL(e,s.pos))return!0;i.push(s)});return i.length===0||o?void 0:i}function GHe(e,t){t=ol(t);let{parent:r}=e;return ht(r)&&(xN(t){for(let y of l)m.replaceNode(r,y,GHe(y,p));m.delete(r,d)})}}})}});function jHe(e,t,r,i,o,s){let l=t.getTypeChecker(),d=L7(e,r.all,l),p=kue(e,t,o,r);i.createNewFile(e,p,UHe(e,d,i,r,t,o,p,s)),Aue(t,i,e.fileName,p,Ly(o))}function UHe(e,t,r,i,o,s,l,d){let p=o.getTypeChecker(),h=AW(e.statements,vm);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&t.oldImportsNeededByTargetFile.size===0)return P7(e,i.ranges,r),[...h,...i.all];let m=!_X(l,o,s,!!e.commonJsModuleIndicator),y=af(e,d),E=Due(e,t.oldFileImportsFromTargetFile,l,o,s,m,y);E&&QP(r,e,E,!0,d),Iue(e,i.all,r,t.unusedImportsFromOldFile,p),P7(e,i.ranges,r),xue(r,o,s,e,t.movedSymbols,l,y);let S=HHe(e,t.oldImportsNeededByTargetFile,t.targetFileImportsFromOldFile,r,p,o,s,m,y),A=Cue(e,i.all,t.oldFileImportsFromTargetFile,m);return S.length&&A.length?[...h,...S,4,...A]:[...h,...S,...A]}function HHe(e,t,r,i,o,s,l,d,p){let h=[];for(let S of e.statements)EO(S,A=>{Tn(h,SO(A,bO(A),N=>t.has(o.getSymbolAtLocation(N))))});let m,y=[],E=v1();return r.forEach(S=>{if(S.declarations)for(let A of S.declarations){if(!k7(A))continue;let N=Mue(A);if(!N)continue;let D=QX(A);E(D)&&Lue(e,D,N,i,d),Qr(A,2048)?m=N:y.push(N.text)}}),Tn(h,M7(e,m,y,nc(e.fileName),s,l,d,p)),h}var vO,YX,$X,KHe=bt({"src/services/refactors/moveToNewFile.ts"(){"use strict";ai(),Th(),vO="Move to a new file",YX=ko(f.Move_to_a_new_file),$X={name:vO,description:YX,kind:"refactor.move.newFile"},sg(vO,{kinds:[$X.kind],getAvailableActions:function(t){let r=TO(t);return t.preferences.allowTextChangesInNewFiles&&r?[{name:vO,description:YX,actions:[$X]}]:t.preferences.provideRefactorNotApplicableReason?[{name:vO,description:YX,actions:[{...$X,notApplicableReason:ko(f.Selection_is_not_a_valid_statement_or_statements)}]}]:Xe},getEditsForAction:function(t,r){R.assert(r===vO,"Wrong refactor invoked");let i=R.checkDefined(TO(t));return{edits:pr.ChangeTracker.with(t,s=>jHe(t.file,t.program,i,s,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}}})}});function qRe(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function JHe(e,t,r,i,o,s,l,d){let p=i.getTypeChecker();if(!l.fileExists(r))s.createNewFile(t,r,XRe(t,r,L7(t,o.all,p),s,o,i,l,d)),Aue(i,s,t.fileName,r,Ly(l));else{let h=R.checkDefined(i.getSourceFile(r)),m=wd.createImportAdder(h,e.program,e.preferences,e.host);XRe(t,h,L7(t,o.all,p,pKe(h,o.all,p)),s,o,i,l,d,m)}}function XRe(e,t,r,i,o,s,l,d,p){let h=s.getTypeChecker(),m=AW(e.statements,vm);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&r.oldImportsNeededByTargetFile.size===0&&r.targetFileImportsFromOldFile.size===0&&typeof t=="string")return P7(e,o.ranges,i),[...m,...o.all];let y=typeof t=="string"?t:t.fileName,E=!_X(y,s,l,!!e.commonJsModuleIndicator),S=af(e,d),A=Due(e,r.oldFileImportsFromTargetFile,y,s,l,E,S);A&&QP(i,e,A,!0,d),Iue(e,o.all,i,r.unusedImportsFromOldFile,h),P7(e,o.ranges,i),xue(i,s,l,e,r.movedSymbols,y,S);let N=qHe(e,y,r.oldImportsNeededByTargetFile,r.targetFileImportsFromOldFile,i,h,s,l,E,S,p),D=Cue(e,o.all,r.oldFileImportsFromTargetFile,E);return typeof t!="string"&&(t.statements.length>0?uKe(i,s,D,t,o):i.insertNodesAtEndOfFile(t,D,!1),N.length>0&&QP(i,t,N,!0,d)),p&&p.writeFixes(i,S),N.length&&D.length?[...m,...N,4,...D]:[...m,...N,...D]}function qHe(e,t,r,i,o,s,l,d,p,h,m){let y=[];if(m)r.forEach((D,w)=>{try{m.addImportFromExportedSymbol(gd(w,s),D)}catch{for(let j of e.statements)EO(j,K=>{Tn(y,SO(K,L.createStringLiteral(bO(K).text),Y=>r.has(s.getSymbolAtLocation(Y))))})}});else{let D=l.getSourceFile(t);for(let w of e.statements)EO(w,j=>{var K;let Y=bO(j),B=l.getCompilerOptions(),ce=l.getResolvedModuleFromModuleSpecifier(Y),z=(K=ce?.resolvedModule)==null?void 0:K.resolvedFileName;if(z&&D){let ee=x3(B,D,D.fileName,z,YT(l,d));Tn(y,SO(j,b1(ee,h),me=>r.has(s.getSymbolAtLocation(me))))}else Tn(y,SO(j,L.createStringLiteral(bO(j).text),ee=>r.has(s.getSymbolAtLocation(ee))))})}let E=l.getSourceFile(t),S,A=[],N=v1();return i.forEach(D=>{if(D.declarations)for(let w of D.declarations){if(!k7(w))continue;let j=Mue(w);if(!j)continue;let K=QX(w);N(K)&&Lue(e,K,j,o,p),m&&s.isUnknownSymbol(D)?m.addImportFromExportedSymbol(gd(D,s)):Qr(w,2048)?S=j:A.push(j.text)}}),E?Tn(y,M7(E,S,A,e.fileName,l,d,p,h)):Tn(y,M7(e,S,A,e.fileName,l,d,p,h))}function Aue(e,t,r,i,o){let s=e.getCompilerOptions().configFile;if(!s)return;let l=fa($r(r,"..",i)),d=FL(s.fileName,l,o),p=s.statements[0]&&ri(s.statements[0].expression,La),h=p&&Vr(p.properties,m=>mc(m)&&Ca(m.name)&&m.name.text==="files");h&&pu(h.initializer)&&t.insertNodeInListAfter(s,Ja(h.initializer.elements),L.createStringLiteral(d),h.initializer.elements)}function P7(e,t,r){for(let{first:i,afterLast:o}of t)r.deleteNodeRangeExcludingEnd(e,i,o)}function Iue(e,t,r,i,o){for(let s of e.statements)zo(t,s)||EO(s,l=>Nue(e,l,r,d=>i.has(o.getSymbolAtLocation(d))))}function xue(e,t,r,i,o,s,l){let d=t.getTypeChecker();for(let p of t.getSourceFiles())if(p!==i)for(let h of p.statements)EO(h,m=>{if(d.getSymbolAtLocation(bO(m))!==i.symbol)return;let y=D=>{let w=Xa(D.parent)?Qz(d,D.parent):gd(d.getSymbolAtLocation(D),d);return!!w&&o.has(w)};Nue(p,m,e,y);let E=Iv(oi(i.path),s),S=x3(t.getCompilerOptions(),p,p.fileName,E,YT(t,r)),A=SO(m,b1(S,l),y);A&&e.insertNodeAfter(p,h,A);let N=XHe(m);N&&YHe(e,p,d,o,S,N,m,l)})}function XHe(e){switch(e.kind){case 272:return e.importClause&&e.importClause.namedBindings&&e.importClause.namedBindings.kind===274?e.importClause.namedBindings.name:void 0;case 271:return e.name;case 260:return ri(e.name,Fe);default:return R.assertNever(e,`Unexpected node kind ${e.kind}`)}}function YHe(e,t,r,i,o,s,l,d){let p=wd.moduleSpecifierToValidIdentifier(o,99),h=!1,m=[];if(Ls.Core.eachSymbolReferenceInFile(s,r,t,y=>{wr(y.parent)&&(h=h||!!r.resolveName(p,y,-1,!0),i.has(r.getSymbolAtLocation(y.parent.name))&&m.push(y))}),m.length){let y=h?QT(p,t):p;for(let E of m)e.replaceNode(t,E,L.createIdentifier(y));e.insertNodeAfter(t,l,$He(l,p,o,d))}}function $He(e,t,r,i){let o=L.createIdentifier(t),s=b1(r,i);switch(e.kind){case 272:return L.createImportDeclaration(void 0,L.createImportClause(!1,void 0,L.createNamespaceImport(o)),s,void 0);case 271:return L.createImportEqualsDeclaration(void 0,!1,o,L.createExternalModuleReference(s));case 260:return L.createVariableDeclaration(o,void 0,void 0,Rue(s));default:return R.assertNever(e,`Unexpected node kind ${e.kind}`)}}function Rue(e){return L.createCallExpression(L.createIdentifier("require"),void 0,[e])}function bO(e){return e.kind===272?e.moduleSpecifier:e.kind===271?e.moduleReference.expression:e.initializer.arguments[0]}function EO(e,t){if(Mc(e))Ca(e.moduleSpecifier)&&t(e);else if(Zc(e))bh(e.moduleReference)&&ss(e.moduleReference.expression)&&t(e);else if(Ml(e))for(let r of e.declarationList.declarations)r.initializer&&Eu(r.initializer,!0)&&t(r)}function Due(e,t,r,i,o,s,l){let d,p=[];return t.forEach(h=>{h.escapedName==="default"?d=L.createIdentifier(Xz(h)):p.push(h.name)}),M7(e,d,p,r,i,o,s,l)}function M7(e,t,r,i,o,s,l,d){let p=Iv(oi(e.path),i),h=x3(o.getCompilerOptions(),e,e.fileName,p,YT(o,s));if(l){let m=r.map(y=>L.createImportSpecifier(!1,void 0,L.createIdentifier(y)));return vde(t,m,h,d)}else{R.assert(!t,"No default import should exist");let m=r.map(y=>L.createBindingElement(void 0,void 0,y));return m.length?YRe(L.createObjectBindingPattern(m),void 0,Rue(b1(h,d))):void 0}}function YRe(e,t,r,i=2){return L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(e,void 0,t,r)],i))}function Cue(e,t,r,i){return va(t,o=>{if(QRe(o)&&!$Re(e,o,i)&&Wue(o,s=>{var l;return r.has(R.checkDefined((l=ri(s,b_))==null?void 0:l.symbol))})){let s=eKe(ol(o),i);if(s)return s}return ol(o)})}function $Re(e,t,r,i){var o;return r?!Qc(t)&&Qr(t,32)||!!(i&&e.symbol&&((o=e.symbol.exports)!=null&&o.has(i.escapedText))):!!e.symbol&&!!e.symbol.exports&&Pue(t).some(s=>e.symbol.exports.has(pl(s)))}function Nue(e,t,r,i){switch(t.kind){case 272:QHe(e,t,r,i);break;case 271:i(t.name)&&r.delete(e,t);break;case 260:ZHe(e,t,r,i);break;default:R.assertNever(t,`Unexpected import decl kind ${t.kind}`)}}function QHe(e,t,r,i){if(!t.importClause)return;let{name:o,namedBindings:s}=t.importClause,l=!o||i(o),d=!s||(s.kind===274?i(s.name):s.elements.length!==0&&s.elements.every(p=>i(p.name)));if(l&&d)r.delete(e,t);else if(o&&l&&r.delete(e,o),s){if(d)r.replaceNode(e,t.importClause,L.updateImportClause(t.importClause,t.importClause.isTypeOnly,o,void 0));else if(s.kind===275)for(let p of s.elements)i(p.name)&&r.delete(e,p)}}function ZHe(e,t,r,i){let{name:o}=t;switch(o.kind){case 80:i(o)&&(t.initializer&&Eu(t.initializer,!0)?r.delete(e,Vc(t.parent)&&Nn(t.parent.declarations)===1?t.parent.parent:t):r.delete(e,o));break;case 207:break;case 206:if(o.elements.every(s=>Fe(s.name)&&i(s.name)))r.delete(e,Vc(t.parent)&&t.parent.declarations.length===1?t.parent.parent:t);else for(let s of o.elements)Fe(s.name)&&i(s.name)&&r.delete(e,s.name);break}}function QRe(e){return R.assert(Yi(e.parent),"Node parent should be a SourceFile"),rDe(e)||Ml(e)}function eKe(e,t){return t?[tKe(e)]:nKe(e)}function tKe(e){let t=Am(e)?bo([L.createModifier(95)],v0(e)):void 0;switch(e.kind){case 262:return L.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 263:let r=GT(e)?Rv(e):void 0;return L.updateClassDeclaration(e,bo(r,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 243:return L.updateVariableStatement(e,t,e.declarationList);case 267:return L.updateModuleDeclaration(e,t,e.name,e.body);case 266:return L.updateEnumDeclaration(e,t,e.name,e.members);case 265:return L.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 264:return L.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 271:return L.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 244:return R.fail();default:return R.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function nKe(e){return[e,...Pue(e).map(ZRe)]}function ZRe(e){return L.createExpressionStatement(L.createBinaryExpression(L.createPropertyAccessExpression(L.createIdentifier("exports"),L.createIdentifier(e)),64,L.createIdentifier(e)))}function Pue(e){switch(e.kind){case 262:case 263:return[e.name.text];case 243:return to(e.declarationList.declarations,t=>Fe(t.name)?t.name.text:void 0);case 267:case 266:case 265:case 264:case 271:return Xe;case 244:return R.fail("Can't export an ExpressionStatement");default:return R.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function SO(e,t,r){switch(e.kind){case 272:{let i=e.importClause;if(!i)return;let o=i.name&&r(i.name)?i.name:void 0,s=i.namedBindings&&rKe(i.namedBindings,r);return o||s?L.createImportDeclaration(void 0,L.createImportClause(i.isTypeOnly,o,s),ol(t),void 0):void 0}case 271:return r(e.name)?e:void 0;case 260:{let i=iKe(e.name,r);return i?YRe(i,e.type,Rue(t),e.parent.flags):void 0}default:return R.assertNever(e,`Unexpected import kind ${e.kind}`)}}function rKe(e,t){if(e.kind===274)return t(e.name)?e:void 0;{let r=e.elements.filter(i=>t(i.name));return r.length?L.createNamedImports(r):void 0}}function iKe(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 207:return e;case 206:{let r=e.elements.filter(i=>i.propertyName||!Fe(i.name)||t(i.name));return r.length?L.createObjectBindingPattern(r):void 0}}}function Mue(e){return Qc(e)?ri(e.expression.left.name,Fe):ri(e.name,Fe)}function QX(e){switch(e.kind){case 260:return e.parent.parent;case 208:return QX(ta(e.parent.parent,t=>Oi(t)||Xa(t)));default:return e}}function Lue(e,t,r,i,o){if(!$Re(e,t,o,r))if(o)Qc(t)||i.insertExportModifier(e,t);else{let s=Pue(t);s.length!==0&&i.insertNodesAfter(e,t,s.map(ZRe))}}function kue(e,t,r,i){let o=t.getTypeChecker();if(i){let s=L7(e,i.all,o),l=oi(e.fileName),d=jN(e.fileName);return $r(l,lKe(cKe(s.oldFileImportsFromTargetFile,s.movedSymbols),d,l,r))+d}return""}function oKe(e){let{file:t}=e,r=Hz(E1(e)),{statements:i}=t,o=Kl(i,h=>h.end>r.pos);if(o===-1)return;let s=i[o],l=iDe(t,s);l&&(o=l.start);let d=Kl(i,h=>h.end>=r.end,o);d!==-1&&r.end<=i[d].getStart()&&d--;let p=iDe(t,i[d]);return p&&(d=p.end),{toMove:i.slice(o,d===-1?i.length:d+1),afterLast:d===-1?void 0:i[d+1]}}function TO(e){let t=oKe(e);if(t===void 0)return;let r=[],i=[],{toMove:o,afterLast:s}=t;return LG(o,aKe,(l,d)=>{for(let p=l;p!!(t.transformFlags&2))}function aKe(e){return!sKe(e)&&!vm(e)}function sKe(e){switch(e.kind){case 272:return!0;case 271:return!Qr(e,32);case 243:return e.declarationList.declarations.every(t=>!!t.initializer&&Eu(t.initializer,!0));default:return!1}}function L7(e,t,r,i=new Set){let o=new Set,s=new Map,l=new Set,d=m(wue(t));d&&s.set(d,!1);for(let y of t)Wue(y,E=>{o.add(R.checkDefined(Qc(E)?r.getSymbolAtLocation(E.expression.left):E.symbol,"Need a symbol here"))});let p=new Set;for(let y of t)Oue(y,r,(E,S)=>{if(E.declarations){if(i.has(gd(E,r))){p.add(E);return}for(let A of E.declarations)if(eDe(A)){let N=s.get(E);s.set(E,(N===void 0||N)&&S)}else k7(A)&&dKe(A)===e&&!o.has(E)&&l.add(E)}});for(let y of s.keys())p.add(y);let h=new Set;for(let y of e.statements)zo(t,y)||(d&&y.transformFlags&2&&p.delete(d),Oue(y,r,E=>{o.has(E)&&h.add(E),p.delete(E)}));return{movedSymbols:o,targetFileImportsFromOldFile:l,oldFileImportsFromTargetFile:h,oldImportsNeededByTargetFile:s,unusedImportsFromOldFile:p};function m(y){if(y===void 0)return;let E=r.getJsxNamespace(y),S=r.resolveName(E,y,1920,!0);return S&>(S.declarations,eDe)?S:void 0}}function lKe(e,t,r,i){let o=e;for(let s=1;;s++){let l=$r(r,o+t);if(!i.fileExists(l))return o;o=`${e}.${s}`}}function cKe(e,t){return uh(e,Xz)||uh(t,Xz)||"newFile"}function Oue(e,t,r){e.forEachChild(function i(o){if(Fe(o)&&!Lg(o)){let s=t.getSymbolAtLocation(o);s&&r(s,mE(o))}else o.forEachChild(i)})}function Wue(e,t){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return t(e);case 243:return Wl(e.declarationList.declarations,r=>nDe(r.name,t));case 244:{let{expression:r}=e;return ur(r)&&zl(r)===1?t(e):void 0}}}function eDe(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return tDe(e);case 208:return Oi(e.parent.parent)&&tDe(e.parent.parent);default:return!1}}function tDe(e){return Yi(e.parent.parent.parent)&&!!e.initializer&&Eu(e.initializer,!0)}function k7(e){return rDe(e)&&Yi(e.parent)||Oi(e)&&Yi(e.parent.parent.parent)}function dKe(e){return Oi(e)?e.parent.parent.parent:e.parent}function nDe(e,t){switch(e.kind){case 80:return t(ta(e.parent,r=>Oi(r)||Xa(r)));case 207:case 206:return Wl(e.elements,r=>Gc(r)?void 0:nDe(r.name,t));default:return R.assertNever(e,`Unexpected name kind ${e.kind}`)}}function rDe(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function uKe(e,t,r,i,o){var s;let l=new Set,d=(s=i.symbol)==null?void 0:s.exports;if(d){let h=t.getTypeChecker(),m=new Map;for(let y of o.all)QRe(y)&&Qr(y,32)&&Wue(y,E=>{var S;let A=b_(E)?(S=d.get(E.symbol.escapedName))==null?void 0:S.declarations:void 0,N=Wl(A,D=>Xl(D)?D:Hd(D)?ri(D.parent.parent,Xl):void 0);N&&N.moduleSpecifier&&m.set(N,(m.get(N)||new Set).add(E))});for(let[y,E]of Oo(m))if(y.exportClause&&xf(y.exportClause)&&Nn(y.exportClause.elements)){let S=y.exportClause.elements,A=jr(S,N=>Vr(gd(N.symbol,h).declarations,D=>k7(D)&&E.has(D))===void 0);if(Nn(A)===0){e.deleteNode(i,y),l.add(y);continue}Nn(A)Xl(h)&&!!h.moduleSpecifier&&!l.has(h));p?e.insertNodesBefore(i,p,r,!0):e.insertNodesAfter(i,i.statements[i.statements.length-1],r)}function iDe(e,t){if(Ws(t)){let r=t.symbol.declarations;if(r===void 0||Nn(r)<=1||!zo(r,t))return;let i=r[0],o=r[Nn(r)-1],s=to(r,p=>Gn(p)===e&&Hi(p)?p:void 0),l=Kl(e.statements,p=>p.end>=o.end),d=Kl(e.statements,p=>p.end>=i.end);return{toMove:s,start:d,end:l}}}function pKe(e,t,r){let i=new Set;for(let o of e.imports){let s=vN(o);if(Mc(s)&&s.importClause&&s.importClause.namedBindings&&Fg(s.importClause.namedBindings))for(let l of s.importClause.namedBindings.elements){let d=r.getSymbolAtLocation(l.propertyName||l.name);d&&i.add(gd(d,r))}if(KF(s.parent)&&tm(s.parent.name))for(let l of s.parent.name.elements){let d=r.getSymbolAtLocation(l.propertyName||l.name);d&&i.add(gd(d,r))}}for(let o of t)Oue(o,r,s=>{let l=gd(s,r);l.valueDeclaration&&Gn(l.valueDeclaration)===e&&i.add(l)});return i}var w7,ZX,eY,fKe=bt({"src/services/refactors/moveToFile.ts"(){"use strict";jse(),ai(),WRe(),w7="Move to file",ZX=ko(f.Move_to_file),eY={name:"Move to file",description:ZX,kind:"refactor.move.file"},sg(w7,{kinds:[eY.kind],getAvailableActions:function(t,r){let i=TO(t);return r?t.preferences.allowTextChangesInNewFiles&&i?[{name:w7,description:ZX,actions:[eY]}]:t.preferences.provideRefactorNotApplicableReason?[{name:w7,description:ZX,actions:[{...eY,notApplicableReason:ko(f.Selection_is_not_a_valid_statement_or_statements)}]}]:Xe:Xe},getEditsForAction:function(t,r,i){R.assert(r===w7,"Wrong refactor invoked");let o=R.checkDefined(TO(t)),{host:s,program:l}=t;R.assert(i,"No interactive refactor arguments available");let d=i.targetFile;return W0(d)||WI(d)?s.fileExists(d)&&l.getSourceFile(d)===void 0?qRe(ko(f.Cannot_move_statements_to_the_selected_file)):{edits:pr.ChangeTracker.with(t,h=>JHe(t,t.file,i.targetFile,t.program,o,h,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}:qRe(ko(f.Cannot_move_to_file_selected_file_is_invalid))}})}});function mKe(e){let{file:t,startPosition:r,program:i}=e;return aDe(t,r,i)?[{name:tY,description:Fue,actions:[zue]}]:Xe}function _Ke(e){let{file:t,startPosition:r,program:i}=e,o=aDe(t,r,i);if(!o)return;let s=i.getTypeChecker(),l=o[o.length-1],d=l;switch(l.kind){case 173:{d=L.updateMethodSignature(l,l.modifiers,l.name,l.questionToken,l.typeParameters,h(o),l.type);break}case 174:{d=L.updateMethodDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.questionToken,l.typeParameters,h(o),l.type,l.body);break}case 179:{d=L.updateCallSignature(l,l.typeParameters,h(o),l.type);break}case 176:{d=L.updateConstructorDeclaration(l,l.modifiers,h(o),l.body);break}case 180:{d=L.updateConstructSignature(l,l.typeParameters,h(o),l.type);break}case 262:{d=L.updateFunctionDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.typeParameters,h(o),l.type,l.body);break}default:return R.failBadSyntaxKind(l,"Unhandled signature kind in overload list conversion refactoring")}if(d===l)return;return{renameFilename:void 0,renameLocation:void 0,edits:pr.ChangeTracker.with(e,E=>{E.replaceNodeRange(t,o[0],o[o.length-1],d)})};function h(E){let S=E[E.length-1];return Ws(S)&&S.body&&(E=E.slice(0,E.length-1)),L.createNodeArray([L.createParameterDeclaration(void 0,L.createToken(26),"args",void 0,L.createUnionTypeNode(mn(E,m)))])}function m(E){let S=mn(E.parameters,y);return lr(L.createTupleTypeNode(S),gt(S,A=>!!Nn(AR(A)))?0:1)}function y(E){R.assert(Fe(E.name));let S=at(L.createNamedTupleMember(E.dotDotDotToken,E.name,E.questionToken,E.type||L.createKeywordTypeNode(133)),E),A=E.symbol&&E.symbol.getDocumentationComment(s);if(A){let N=NO(A);N.length&&hE(S,[{text:`* ${N.split(` `).map(D=>` * ${D}`).join(` `)} - `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return S}}function ZRe(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function eDe(e,t,r){let i=so(e,t),o=Fn(i,ZRe);if(!o||ws(o)&&o.body&&Jw(o.body,t))return;let s=r.getTypeChecker(),l=o.symbol;if(!l)return;let d=l.declarations;if(Nn(d)<=1||!oo(d,E=>Gn(E)===e)||!ZRe(d[0]))return;let p=d[0].kind;if(!oo(d,E=>E.kind===p))return;let h=d;if(gt(h,E=>!!E.typeParameters||gt(E.parameters,S=>!!S.modifiers||!Fe(S.name))))return;let m=to(h,E=>s.getSignatureFromDeclaration(E));if(Nn(m)!==Nn(d))return;let y=s.getReturnTypeOfSignature(m[0]);if(oo(m,E=>s.getReturnTypeOfSignature(E)===y))return h}var tY,Lue,kue,cKe=bt({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){"use strict";ai(),Sh(),tY="Convert overload list to single signature",Lue=wo(f.Convert_overload_list_to_single_signature),kue={name:tY,description:Lue,kind:"refactor.rewrite.function.overloadList"},ag(tY,{kinds:[kue.kind],getEditsForAction:lKe,getAvailableActions:sKe})}});function dKe(e){let{file:t,startPosition:r,triggerReason:i}=e,o=tDe(t,r,i==="invoked");return o?jg(o)?e.preferences.provideRefactorNotApplicableReason?[{name:nY,description:wue,actions:[{...O7,notApplicableReason:o.error},{...TO,notApplicableReason:o.error}]}]:Xe:[{name:nY,description:wue,actions:[o.addBraces?O7:TO]}]:Xe}function uKe(e,t){let{file:r,startPosition:i}=e,o=tDe(r,i);x.assert(o&&!jg(o),"Expected applicable refactor info");let{expression:s,returnStatement:l,func:d}=o,p;if(t===O7.name){let m=L.createReturnStatement(s);p=L.createBlock([m],!0),fD(s,m,r,3,!0)}else if(t===TO.name&&l){let m=s||L.createVoidZero();p=n7(m)?L.createParenthesizedExpression(m):m,lO(l,p,r,3,!1),fD(l,p,r,3,!1),tM(l,p,r,3,!1)}else x.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:ur.ChangeTracker.with(e,m=>{m.replaceNode(r,d.body,p)})}}function tDe(e,t,r=!0,i){let o=so(e,t),s=Wp(o);if(!s)return{error:wo(f.Could_not_find_a_containing_arrow_function)};if(!Os(s))return{error:wo(f.Containing_function_is_not_an_arrow_function)};if(!(!rf(s,o)||rf(s.body,o)&&!r)){if(CE(O7.kind,i)&&ht(s.body))return{func:s,addBraces:!0,expression:s.body};if(CE(TO.kind,i)&&Ko(s.body)&&s.body.statements.length===1){let l=Va(s.body.statements);if(Sm(l)){let d=l.expression&&Ma(gR(l.expression,!1))?L.createParenthesizedExpression(l.expression):l.expression;return{func:s,addBraces:!1,expression:d,returnStatement:l}}}}}var nY,wue,O7,TO,pKe=bt({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){"use strict";ai(),Sh(),nY="Add or remove braces in an arrow function",wue=wo(f.Add_or_remove_braces_in_an_arrow_function),O7={name:"Add braces to arrow function",description:wo(f.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},TO={name:"Remove braces from arrow function",description:wo(f.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"},ag(nY,{kinds:[TO.kind],getEditsForAction:uKe,getAvailableActions:dKe})}}),fKe={},mKe=bt({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){"use strict";cKe(),pKe()}});function _Ke(e){let{file:t,startPosition:r,program:i,kind:o}=e,s=rDe(t,r,i);if(!s)return Xe;let{selectedVariableDeclaration:l,func:d}=s,p=[],h=[];if(CE(IO.kind,o)){let m=l||Os(d)&&wi(d.parent)?void 0:wo(f.Could_not_convert_to_named_function);m?h.push({...IO,notApplicableReason:m}):p.push(IO)}if(CE(AO.kind,o)){let m=!l&&Os(d)?void 0:wo(f.Could_not_convert_to_anonymous_function);m?h.push({...AO,notApplicableReason:m}):p.push(AO)}if(CE(xO.kind,o)){let m=Ps(d)?void 0:wo(f.Could_not_convert_to_arrow_function);m?h.push({...xO,notApplicableReason:m}):p.push(xO)}return[{name:Oue,description:aDe,actions:p.length===0&&e.preferences.provideRefactorNotApplicableReason?h:p}]}function hKe(e,t){let{file:r,startPosition:i,program:o}=e,s=rDe(r,i,o);if(!s)return;let{func:l}=s,d=[];switch(t){case AO.name:d.push(...bKe(e,l));break;case IO.name:let p=vKe(l);if(!p)return;d.push(...EKe(e,l,p));break;case xO.name:if(!Ps(l))return;d.push(...SKe(e,l));break;default:return x.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:d}}function nDe(e){let t=!1;return e.forEachChild(function r(i){if(sD(i)){t=!0;return}!ci(i)&&!Ec(i)&&!Ps(i)&&Go(i,r)}),t}function rDe(e,t,r){let i=so(e,t),o=r.getTypeChecker(),s=yKe(e,o,i.parent);if(s&&!nDe(s.body)&&!o.containsArgumentsReference(s))return{selectedVariableDeclaration:!0,func:s};let l=Wp(i);if(l&&(Ps(l)||Os(l))&&!rf(l.body,i)&&!nDe(l.body)&&!o.containsArgumentsReference(l))return Ps(l)&&oDe(e,o,l)?void 0:{selectedVariableDeclaration:!1,func:l}}function gKe(e){return wi(e)||Uc(e)&&e.declarations.length===1}function yKe(e,t,r){if(!gKe(r))return;let o=(wi(r)?r:Va(r.declarations)).initializer;if(o&&(Os(o)||Ps(o)&&!oDe(e,t,o)))return o}function iDe(e){if(ht(e)){let t=L.createReturnStatement(e),r=e.getSourceFile();return at(t,e),bp(t),lO(e,t,r,void 0,!0),L.createBlock([t],!0)}else return e}function vKe(e){let t=e.parent;if(!wi(t)||!fN(t))return;let r=t.parent,i=r.parent;if(!(!Uc(r)||!Ml(i)||!Fe(t.name)))return{variableDeclaration:t,variableDeclarationList:r,statement:i,name:t.name}}function bKe(e,t){let{file:r}=e,i=iDe(t.body),o=L.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,i);return ur.ChangeTracker.with(e,s=>s.replaceNode(r,t,o))}function EKe(e,t,r){let{file:i}=e,o=iDe(t.body),{variableDeclaration:s,variableDeclarationList:l,statement:d,name:p}=r;rX(d);let h=Zb(s)&32|lu(t),m=L.createModifiersFromModifierFlags(h),y=L.createFunctionDeclaration(Nn(m)?m:void 0,t.asteriskToken,p,t.typeParameters,t.parameters,t.type,o);return l.declarations.length===1?ur.ChangeTracker.with(e,E=>E.replaceNode(i,d,y)):ur.ChangeTracker.with(e,E=>{E.delete(i,s),E.insertNodeAfter(i,d,y)})}function SKe(e,t){let{file:r}=e,o=t.body.statements[0],s;TKe(t.body,o)?(s=o.expression,bp(s),$T(o,s)):s=t.body;let l=L.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,L.createToken(39),s);return ur.ChangeTracker.with(e,d=>d.replaceNode(r,t,l))}function TKe(e,t){return e.statements.length===1&&Sm(t)&&!!t.expression}function oDe(e,t,r){return!!r.name&&Ms.Core.isSymbolReferencedInFile(r.name,t,e)}var Oue,aDe,AO,IO,xO,AKe=bt({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){"use strict";ai(),Sh(),Oue="Convert arrow function or function expression",aDe=wo(f.Convert_arrow_function_or_function_expression),AO={name:"Convert to anonymous function",description:wo(f.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},IO={name:"Convert to named function",description:wo(f.Convert_to_named_function),kind:"refactor.rewrite.function.named"},xO={name:"Convert to arrow function",description:wo(f.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},ag(Oue,{kinds:[AO.kind,IO.kind,xO.kind],getEditsForAction:hKe,getAvailableActions:_Ke})}}),IKe={},xKe=bt({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){"use strict";AKe()}});function RKe(e){let{file:t,startPosition:r}=e;return su(t)||!cDe(t,r,e.program.getTypeChecker())?Xe:[{name:F7,description:Bue,actions:[Gue]}]}function DKe(e,t){x.assert(t===F7,"Unexpected action name");let{file:r,startPosition:i,program:o,cancellationToken:s,host:l}=e,d=cDe(r,i,o.getTypeChecker());if(!d||!s)return;let p=NKe(d,o,s);return p.valid?{renameFilename:void 0,renameLocation:void 0,edits:ur.ChangeTracker.with(e,m=>CKe(r,o,l,m,d,p))}:{edits:[]}}function CKe(e,t,r,i,o,s){let l=s.signature,d=mn(fDe(o,t,r),m=>ol(m));if(l){let m=mn(fDe(l,t,r),y=>ol(y));h(l,m)}h(o,d);let p=FC(s.functionCalls,(m,y)=>Zs(m.pos,y.pos));for(let m of p)if(m.arguments&&m.arguments.length){let y=ol(BKe(o,m.arguments),!0);i.replaceNodeRange(Gn(m),Va(m.arguments),Ja(m.arguments),y,{leadingTriviaOption:ur.LeadingTriviaOption.IncludeAll,trailingTriviaOption:ur.TrailingTriviaOption.Include})}function h(m,y){i.replaceNodeRangeWithNodes(e,Va(m.parameters),Ja(m.parameters),y,{joiner:", ",indentation:0,leadingTriviaOption:ur.LeadingTriviaOption.IncludeAll,trailingTriviaOption:ur.TrailingTriviaOption.Include})}}function NKe(e,t,r){let i=VKe(e),o=Pl(e)?GKe(e):[],s=m0([...i,...o],Ty),l=t.getTypeChecker(),d=va(s,y=>Ms.getReferenceEntriesForNode(-1,y,t,t.getSourceFiles(),r)),p=h(d);return oo(p.declarations,y=>Bo(s,y))||(p.valid=!1),p;function h(y){let E={accessExpressions:[],typeUsages:[]},S={functionCalls:[],declarations:[],classReferences:E,valid:!0},A=mn(i,m),N=mn(o,m),D=Pl(e),w=mn(i,j=>Wue(j,l));for(let j of y){if(j.kind===Ms.EntryKind.Span){S.valid=!1;continue}if(Bo(w,m(j.node))){if(kKe(j.node.parent)){S.signature=j.node.parent;continue}let Y=lDe(j);if(Y){S.functionCalls.push(Y);continue}}let K=Wue(j.node,l);if(K&&Bo(w,K)){let Y=Fue(j);if(Y){S.declarations.push(Y);continue}}if(Bo(A,m(j.node))||JP(j.node)){if(sDe(j))continue;let B=Fue(j);if(B){S.declarations.push(B);continue}let ce=lDe(j);if(ce){S.functionCalls.push(ce);continue}}if(D&&Bo(N,m(j.node))){if(sDe(j))continue;let B=Fue(j);if(B){S.declarations.push(B);continue}let ce=PKe(j);if(ce){E.accessExpressions.push(ce);continue}if(Sc(e.parent)){let z=MKe(j);if(z){E.typeUsages.push(z);continue}}}S.valid=!1}return S}function m(y){let E=l.getSymbolAtLocation(y);return E&&tX(E,l)}}function Wue(e,t){let r=NO(e);if(r){let i=t.getContextualTypeForObjectLiteralElement(r),o=i?.getSymbol();if(o&&!(Tl(o)&6))return o}}function sDe(e){let t=e.node;if(Qu(t.parent)||gh(t.parent)||td(t.parent)||Xv(t.parent)||Kd(t.parent)||Ll(t.parent))return t}function Fue(e){if(Hd(e.node.parent))return e.node}function lDe(e){if(e.node.parent){let t=e.node,r=t.parent;switch(r.kind){case 213:case 214:let i=ri(r,v_);if(i&&i.expression===t)return i;break;case 211:let o=ri(r,kr);if(o&&o.parent&&o.name===t){let l=ri(o.parent,v_);if(l&&l.expression===o)return l}break;case 212:let s=ri(r,Js);if(s&&s.parent&&s.argumentExpression===t){let l=ri(s.parent,v_);if(l&&l.expression===s)return l}break}}}function PKe(e){if(e.node.parent){let t=e.node,r=t.parent;switch(r.kind){case 211:let i=ri(r,kr);if(i&&i.expression===t)return i;break;case 212:let o=ri(r,Js);if(o&&o.expression===t)return o;break}}}function MKe(e){let t=e.node;if(qT(t)===2||f6(t.parent))return t}function cDe(e,t,r){let i=lD(e,t),o=iie(i);if(!LKe(i)&&o&&wKe(o,r)&&rf(o,i)&&!(o.body&&rf(o.body,i)))return o}function LKe(e){let t=Fn(e,zx);if(t){let r=Fn(t,i=>!zx(i));return!!r&&ws(r)}return!1}function kKe(e){return _h(e)&&(pu(e.parent)||gp(e.parent))}function wKe(e,t){var r;if(!OKe(e.parameters,t))return!1;switch(e.kind){case 262:return dDe(e)&&W7(e,t);case 174:if(Ma(e.parent)){let i=Wue(e.name,t);return((r=i?.declarations)==null?void 0:r.length)===1&&W7(e,t)}return W7(e,t);case 176:return Sc(e.parent)?dDe(e.parent)&&W7(e,t):uDe(e.parent.parent)&&W7(e,t);case 218:case 219:return uDe(e.parent)}return!1}function W7(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function dDe(e){return e.name?!0:!!dD(e,90)}function OKe(e,t){return FKe(e)>=mDe&&oo(e,r=>WKe(r,t))}function WKe(e,t){if(Kh(e)){let r=t.getTypeAtLocation(e);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!e.modifiers&&Fe(e.name)}function uDe(e){return wi(e)&&Kx(e)&&Fe(e.name)&&!e.type}function zue(e){return e.length>0&&sD(e[0].name)}function FKe(e){return zue(e)?e.length-1:e.length}function pDe(e){return zue(e)&&(e=L.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function zKe(e,t){return Fe(t)&&Xf(t)===e?L.createShorthandPropertyAssignment(e):L.createPropertyAssignment(e,t)}function BKe(e,t){let r=pDe(e.parameters),i=Kh(Ja(r)),o=i?t.slice(0,r.length-1):t,s=mn(o,(d,p)=>{let h=rY(r[p]),m=zKe(h,d);return bp(m.name),mc(m)&&bp(m.initializer),$T(d,m),m});if(i&&t.length>=r.length){let d=t.slice(r.length-1),p=L.createPropertyAssignment(rY(Ja(r)),L.createArrayLiteralExpression(d));s.push(p)}return L.createObjectLiteralExpression(s,!1)}function fDe(e,t,r){let i=t.getTypeChecker(),o=pDe(e.parameters),s=mn(o,m),l=L.createObjectBindingPattern(s),d=y(o),p;oo(o,A)&&(p=L.createObjectLiteralExpression());let h=L.createParameterDeclaration(void 0,void 0,l,void 0,d,p);if(zue(e.parameters)){let N=e.parameters[0],D=L.createParameterDeclaration(void 0,void 0,N.name,void 0,N.type);return bp(D.name),$T(N.name,D.name),N.type&&(bp(D.type),$T(N.type,D.type)),L.createNodeArray([D,h])}return L.createNodeArray([h]);function m(N){let D=L.createBindingElement(void 0,void 0,rY(N),Kh(N)&&A(N)?L.createArrayLiteralExpression():N.initializer);return bp(D),N.initializer&&D.initializer&&$T(N.initializer,D.initializer),D}function y(N){let D=mn(N,E);return D_(L.createTypeLiteralNode(D),1)}function E(N){let D=N.type;!D&&(N.initializer||Kh(N))&&(D=S(N));let w=L.createPropertySignature(void 0,rY(N),A(N)?L.createToken(58):N.questionToken,D);return bp(w),$T(N.name,w.name),N.type&&w.type&&$T(N.type,w.type),w}function S(N){let D=i.getTypeAtLocation(N);return rM(D,N,t,r)}function A(N){if(Kh(N)){let D=i.getTypeAtLocation(N);return!i.isTupleType(D)}return i.isOptionalParameter(N)}}function rY(e){return Xf(e.name)}function GKe(e){switch(e.parent.kind){case 263:let t=e.parent;return t.name?[t.name]:[x.checkDefined(dD(t,90),"Nameless class declaration should be a default export")];case 231:let i=e.parent,o=e.parent.parent,s=i.name;return s?[s,o.name]:[o.name]}}function VKe(e){switch(e.kind){case 262:return e.name?[e.name]:[x.checkDefined(dD(e,90),"Nameless function declaration should be a default export")];case 174:return[e.name];case 176:let r=x.checkDefined(_s(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");return e.parent.kind===231?[e.parent.parent.name,r]:[r];case 219:return[e.parent.name];case 218:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return x.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var F7,mDe,Bue,Gue,jKe=bt({"src/services/refactors/convertParamsToDestructuredObject.ts"(){"use strict";ai(),Sh(),F7="Convert parameters to destructured object",mDe=1,Bue=wo(f.Convert_parameters_to_destructured_object),Gue={name:F7,description:Bue,kind:"refactor.rewrite.parameters.toDestructured"},ag(F7,{kinds:[Gue.kind],getEditsForAction:DKe,getAvailableActions:RKe})}}),UKe={},HKe=bt({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){"use strict";jKe()}});function KKe(e){let{file:t,startPosition:r}=e,i=_De(t,r),o=Vue(i),s=Da(o),l={name:iY,description:oY,actions:[]};return s&&e.triggerReason!=="invoked"?Xe:Xh(o)&&(s||dr(o)&&jue(o).isValidConcatenation)?(l.actions.push(aY),[l]):e.preferences.provideRefactorNotApplicableReason?(l.actions.push({...aY,notApplicableReason:wo(f.Can_only_convert_string_concatenations_and_string_literals)}),[l]):Xe}function _De(e,t){let r=so(e,t),i=Vue(r);return!jue(i).isValidConcatenation&&Ou(i.parent)&&dr(i.parent.parent)?i.parent.parent:r}function JKe(e,t){let{file:r,startPosition:i}=e,o=_De(r,i);switch(t){case oY:return{edits:qKe(e,o)};default:return x.fail("invalid action")}}function qKe(e,t){let r=Vue(t),i=e.file,o=$Ke(jue(r),i),s=Yb(i.text,r.end);if(s){let l=s[s.length-1],d={pos:s[0].pos,end:l.end};return ur.ChangeTracker.with(e,p=>{p.deleteRange(i,d),p.replaceNode(i,r,o)})}else return ur.ChangeTracker.with(e,l=>l.replaceNode(i,r,o))}function XKe(e){return!(e.operatorToken.kind===64||e.operatorToken.kind===65)}function Vue(e){return Fn(e.parent,r=>{switch(r.kind){case 211:case 212:return!1;case 228:case 226:return!(dr(r.parent)&&XKe(r.parent));default:return"quit"}})||e}function jue(e){let t=l=>{if(!dr(l))return{nodes:[l],operators:[],validOperators:!0,hasString:Da(l)||HI(l)};let{nodes:d,operators:p,hasString:h,validOperators:m}=t(l.left);if(!(h||Da(l.right)||F4(l.right)))return{nodes:[l],operators:[],hasString:!1,validOperators:!0};let y=l.operatorToken.kind===40,E=m&&y;return d.push(l.right),p.push(l.operatorToken),{nodes:d,operators:p,hasString:!0,validOperators:E}},{nodes:r,operators:i,validOperators:o,hasString:s}=t(e);return{nodes:r,operators:i,isValidConcatenation:o&&s}}function YKe(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function hDe(e){let t=KI(e)||YU(e)?-2:-1;return uc(e).slice(1,t)}function gDe(e,t){let r=[],i="",o="";for(;e{yDe(K);let B=Y===E.templateSpans.length-1,ce=K.literal.text+(B?A:""),z=hDe(K.literal)+(B?N:"");return L.createTemplateSpan(K.expression,w&&B?L.createTemplateTail(ce,z):L.createTemplateMiddle(ce,z))});h.push(...j)}else{let j=w?L.createTemplateTail(A,N):L.createTemplateMiddle(A,N);o(D,j),h.push(L.createTemplateSpan(E,j))}}return L.createTemplateExpression(m,h)}function yDe(e){let t=e.getSourceFile();tM(e,e.expression,t,3,!1),lO(e.expression,e.expression,t,3,!1)}function QKe(e){return Ou(e)&&(yDe(e),e=e.expression),e}var iY,oY,aY,vDe,bDe,ZKe=bt({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){"use strict";ai(),Sh(),iY="Convert to template string",oY=wo(f.Convert_to_template_string),aY={name:iY,description:oY,kind:"refactor.rewrite.string"},ag(iY,{kinds:[aY.kind],getEditsForAction:JKe,getAvailableActions:KKe}),vDe=(e,t)=>(r,i)=>{r(i,o)=>{for(;i.length>0;){let s=i.shift();tM(e[s],o,t,3,!1),r(s,o)}}}}),eJe={},tJe=bt({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){"use strict";ZKe()}});function nJe(e){let t=EDe(e,e.triggerReason==="invoked");return t?jg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:z7,description:cY,actions:[{...dY,notApplicableReason:t.error}]}]:Xe:[{name:z7,description:cY,actions:[dY]}]:Xe}function rJe(e,t){let r=EDe(e);return x.assert(r&&!jg(r),"Expected applicable refactor info"),{edits:ur.ChangeTracker.with(e,o=>uJe(e.file,e.program.getTypeChecker(),o,r,t)),renameFilename:void 0,renameLocation:void 0}}function sY(e){return dr(e)||PR(e)}function iJe(e){return ed(e)||Sm(e)||Ml(e)}function lY(e){return sY(e)||iJe(e)}function EDe(e,t=!0){let{file:r,program:i}=e,o=E1(e),s=o.length===0;if(s&&!t)return;let l=so(r,o.start),d=Bz(r,o.start+o.length),p=dc(l.pos,d&&d.end>=l.pos?d.getEnd():l.getEnd()),h=s?cJe(l):lJe(l,p),m=h&&lY(h)?dJe(h):void 0;if(!m)return{error:wo(f.Could_not_find_convertible_access_expression)};let y=i.getTypeChecker();return PR(m)?oJe(m,y):aJe(m)}function oJe(e,t){let r=e.condition,i=Hue(e.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:wo(f.Could_not_find_convertible_access_expression)};if((kr(r)||Fe(r))&&Uue(r,i.expression))return{finalExpression:i,occurrences:[r],expression:e};if(dr(r)){let o=SDe(i.expression,r);return o?{finalExpression:i,occurrences:o,expression:e}:{error:wo(f.Could_not_find_matching_access_expressions)}}}function aJe(e){if(e.operatorToken.kind!==56)return{error:wo(f.Can_only_convert_logical_AND_access_chains)};let t=Hue(e.right);if(!t)return{error:wo(f.Could_not_find_convertible_access_expression)};let r=SDe(t.expression,e.left);return r?{finalExpression:t,occurrences:r,expression:e}:{error:wo(f.Could_not_find_matching_access_expressions)}}function SDe(e,t){let r=[];for(;dr(t)&&t.operatorToken.kind===56;){let o=Uue(fs(e),fs(t.right));if(!o)break;r.push(o),e=o,t=t.left}let i=Uue(e,t);return i&&r.push(i),r.length>0?r:void 0}function Uue(e,t){if(!(!Fe(t)&&!kr(t)&&!Js(t)))return sJe(e,t)?t:void 0}function sJe(e,t){for(;(ia(e)||kr(e)||Js(e))&&RO(e)!==RO(t);)e=e.expression;for(;kr(e)&&kr(t)||Js(e)&&Js(t);){if(RO(e)!==RO(t))return!1;e=e.expression,t=t.expression}return Fe(e)&&Fe(t)&&e.getText()===t.getText()}function RO(e){if(Fe(e)||$p(e))return e.getText();if(kr(e))return RO(e.name);if(Js(e))return RO(e.argumentExpression)}function lJe(e,t){for(;e.parent;){if(lY(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function cJe(e){for(;e.parent;){if(lY(e)&&!lY(e.parent))return e;e=e.parent}}function dJe(e){if(sY(e))return e;if(Ml(e)){let t=RI(e),r=t?.initializer;return r&&sY(r)?r:void 0}return e.expression&&sY(e.expression)?e.expression:void 0}function Hue(e){if(e=fs(e),dr(e))return Hue(e.left);if((kr(e)||Js(e)||ia(e))&&!Ud(e))return e}function TDe(e,t,r){if(kr(t)||Js(t)||ia(t)){let i=TDe(e,t.expression,r),o=r.length>0?r[r.length-1]:void 0,s=o?.getText()===t.expression.getText();if(s&&r.pop(),ia(t))return s?L.createCallChain(i,L.createToken(29),t.typeArguments,t.arguments):L.createCallChain(i,t.questionDotToken,t.typeArguments,t.arguments);if(kr(t))return s?L.createPropertyAccessChain(i,L.createToken(29),t.name):L.createPropertyAccessChain(i,t.questionDotToken,t.name);if(Js(t))return s?L.createElementAccessChain(i,L.createToken(29),t.argumentExpression):L.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function uJe(e,t,r,i,o){let{finalExpression:s,occurrences:l,expression:d}=i,p=l[l.length-1],h=TDe(t,s,l);h&&(kr(h)||Js(h)||ia(h))&&(dr(d)?r.replaceNodeRange(e,p,s,h):PR(d)&&r.replaceNode(e,d,L.createBinaryExpression(h,L.createToken(61),d.whenFalse)))}var z7,cY,dY,pJe=bt({"src/services/refactors/convertToOptionalChainExpression.ts"(){"use strict";ai(),Sh(),z7="Convert to optional chain expression",cY=wo(f.Convert_to_optional_chain_expression),dY={name:z7,description:cY,kind:"refactor.rewrite.expression.optionalChain"},ag(z7,{kinds:[dY.kind],getEditsForAction:rJe,getAvailableActions:nJe})}}),fJe={},mJe=bt({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){"use strict";pJe()}});function ADe(e){let t=e.kind,r=Kue(e.file,E1(e),e.triggerReason==="invoked"),i=r.targetRange;if(i===void 0){if(!r.errors||r.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return Xe;let A=[];return CE(vD.kind,t)&&A.push({name:gD,description:vD.description,actions:[{...vD,notApplicableReason:S(r.errors)}]}),CE(yD.kind,t)&&A.push({name:gD,description:yD.description,actions:[{...yD,notApplicableReason:S(r.errors)}]}),A}let o=bJe(i,e);if(o===void 0)return Xe;let s=[],l=new Map,d,p=[],h=new Map,m,y=0;for(let{functionExtraction:A,constantExtraction:N}of o){if(CE(vD.kind,t)){let D=A.description;A.errors.length===0?l.has(D)||(l.set(D,!0),s.push({description:D,name:`function_scope_${y}`,kind:vD.kind})):d||(d={description:D,name:`function_scope_${y}`,notApplicableReason:S(A.errors),kind:vD.kind})}if(CE(yD.kind,t)){let D=N.description;N.errors.length===0?h.has(D)||(h.set(D,!0),p.push({description:D,name:`constant_scope_${y}`,kind:yD.kind})):m||(m={description:D,name:`constant_scope_${y}`,notApplicableReason:S(N.errors),kind:yD.kind})}y++}let E=[];return s.length?E.push({name:gD,description:wo(f.Extract_function),actions:s}):e.preferences.provideRefactorNotApplicableReason&&d&&E.push({name:gD,description:wo(f.Extract_function),actions:[d]}),p.length?E.push({name:gD,description:wo(f.Extract_constant),actions:p}):e.preferences.provideRefactorNotApplicableReason&&m&&E.push({name:gD,description:wo(f.Extract_constant),actions:[m]}),E.length?E:Xe;function S(A){let N=A[0].messageText;return typeof N!="string"&&(N=N.messageText),N}}function IDe(e,t){let i=Kue(e.file,E1(e)).targetRange,o=/^function_scope_(\d+)$/.exec(t);if(o){let l=+o[1];return x.assert(isFinite(l),"Expected to parse a finite number from the function scope index"),yJe(i,e,l)}let s=/^constant_scope_(\d+)$/.exec(t);if(s){let l=+s[1];return x.assert(isFinite(l),"Expected to parse a finite number from the constant scope index"),vJe(i,e,l)}x.fail("Unrecognized action name")}function Kue(e,t,r=!0){let{length:i}=t;if(i===0&&!r)return{errors:[Qc(e,t.start,i,Sd.cannotExtractEmpty)]};let o=i===0&&r,s=ede(e,t.start),l=Bz(e,Jl(t)),d=s&&l&&r?_Je(s,l,e):t,p=o?BJe(s):iO(s,e,d),h=o?p:iO(l,e,d),m=0,y;if(!p||!h)return{errors:[Qc(e,t.start,i,Sd.cannotExtractRange)]};if(p.flags&16777216)return{errors:[Qc(e,t.start,i,Sd.cannotExtractJSDoc)]};if(p.parent!==h.parent)return{errors:[Qc(e,t.start,i,Sd.cannotExtractRange)]};if(p!==h){if(!RDe(p.parent))return{errors:[Qc(e,t.start,i,Sd.cannotExtractRange)]};let j=[];for(let K of p.parent.statements){if(K===p||j.length){let Y=w(K);if(Y)return{errors:Y};j.push(K)}if(K===h)break}return j.length?{targetRange:{range:j,facts:m,thisNode:y}}:{errors:[Qc(e,t.start,i,Sd.cannotExtractRange)]}}if(Sm(p)&&!p.expression)return{errors:[Qc(e,t.start,i,Sd.cannotExtractRange)]};let E=A(p),S=N(E)||w(E);if(S)return{errors:S};return{targetRange:{range:hJe(E),facts:m,thisNode:y}};function A(j){if(Sm(j)){if(j.expression)return j.expression}else if(Ml(j)||Uc(j)){let K=Ml(j)?j.declarationList.declarations:j.declarations,Y=0,B;for(let ce of K)ce.initializer&&(Y++,B=ce.initializer);if(Y===1)return B}else if(wi(j)&&j.initializer)return j.initializer;return j}function N(j){if(Fe(ed(j)?j.expression:j))return[Pr(j,Sd.cannotExtractIdentifier)]}function D(j,K){let Y=j;for(;Y!==K;){if(Y.kind===172){ra(Y)&&(m|=32);break}else if(Y.kind===169){Wp(Y).kind===176&&(m|=32);break}else Y.kind===174&&ra(Y)&&(m|=32);Y=Y.parent}}function w(j){let K;if((me=>{me[me.None=0]="None",me[me.Break=1]="Break",me[me.Continue=2]="Continue",me[me.Return=4]="Return"})(K||(K={})),x.assert(j.pos<=j.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),x.assert(!Km(j.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!Hi(j)&&!(Xh(j)&&xDe(j))&&!$ue(j))return[Pr(j,Sd.statementOrExpressionExpected)];if(j.flags&33554432)return[Pr(j,Sd.cannotExtractAmbientBlock)];let Y=ad(j);Y&&D(j,Y);let B,ce=4,z;if(Z(j),m&8){let me=Lu(j,!1,!1);(me.kind===262||me.kind===174&&me.parent.kind===210||me.kind===218)&&(m|=16)}return B;function Z(me){if(B)return!0;if(Hd(me)){let q=me.kind===260?me.parent.parent:me;if($r(q,32))return(B||(B=[])).push(Pr(me,Sd.cannotExtractExportedEntity)),!0}switch(me.kind){case 272:return(B||(B=[])).push(Pr(me,Sd.cannotExtractImport)),!0;case 277:return(B||(B=[])).push(Pr(me,Sd.cannotExtractExportedEntity)),!0;case 108:if(me.parent.kind===213){let q=ad(me);if(q===void 0||q.pos=t.start+t.length)return(B||(B=[])).push(Pr(me,Sd.cannotExtractSuper)),!0}else m|=8,y=me;break;case 219:Go(me,function q(J){if(sD(J))m|=8,y=me;else{if(ci(J)||$o(J)&&!Os(J))return!1;Go(J,q)}});case 263:case 262:Yi(me.parent)&&me.parent.externalModuleIndicator===void 0&&(B||(B=[])).push(Pr(me,Sd.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}let ge=ce;switch(me.kind){case 245:ce&=-5;break;case 258:ce=0;break;case 241:me.parent&&me.parent.kind===258&&me.parent.finallyBlock===me&&(ce=4);break;case 297:case 296:ce|=1;break;default:Nv(me,!1)&&(ce|=3);break}switch(me.kind){case 197:case 110:m|=8,y=me;break;case 256:{let q=me.label;(z||(z=[])).push(q.escapedText),Go(me,Z),z.pop();break}case 252:case 251:{let q=me.label;q?Bo(z,q.escapedText)||(B||(B=[])).push(Pr(me,Sd.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):ce&(me.kind===252?1:2)||(B||(B=[])).push(Pr(me,Sd.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:m|=4;break;case 229:m|=2;break;case 253:ce&4?m|=1:(B||(B=[])).push(Pr(me,Sd.cannotExtractRangeContainingConditionalReturnStatement));break;default:Go(me,Z);break}ce=ge}}}function _Je(e,t,r){let i=e.getStart(r),o=t.getEnd();return r.text.charCodeAt(o)===59&&o++,{start:i,length:o-i}}function hJe(e){if(Hi(e))return[e];if(Xh(e))return ed(e.parent)?[e.parent]:e;if($ue(e))return e}function Jue(e){return Os(e)?wV(e.body):ws(e)||Yi(e)||N_(e)||ci(e)}function gJe(e){let t=qy(e.range)?Va(e.range):e.range;if(e.facts&8&&!(e.facts&16)){let i=ad(t);if(i){let o=Fn(t,ws);return o?[o,i]:[i]}}let r=[];for(;;)if(t=t.parent,t.kind===169&&(t=Fn(t,i=>ws(i)).parent),Jue(t)&&(r.push(t),t.kind===312))return r}function yJe(e,t,r){let{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,functionErrorsPerScope:l,exposedVariableDeclarations:d}}=que(e,t);return x.assert(!l[r].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),xJe(o,i[r],s[r],d,e,t)}function vJe(e,t,r){let{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,constantErrorsPerScope:l,exposedVariableDeclarations:d}}=que(e,t);x.assert(!l[r].length,"The extraction went missing? How?"),x.assert(d.length===0,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();let p=ht(o)?o:o.statements[0].expression;return RJe(p,i[r],s[r],e.facts,t)}function bJe(e,t){let{scopes:r,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:o}}=que(e,t);return r.map((l,d)=>{let p=EJe(l),h=SJe(l),m=ws(l)?TJe(l):ci(l)?AJe(l):IJe(l),y,E;return m===1?(y=tg(wo(f.Extract_to_0_in_1_scope),[p,"global"]),E=tg(wo(f.Extract_to_0_in_1_scope),[h,"global"])):m===0?(y=tg(wo(f.Extract_to_0_in_1_scope),[p,"module"]),E=tg(wo(f.Extract_to_0_in_1_scope),[h,"module"])):(y=tg(wo(f.Extract_to_0_in_1),[p,m]),E=tg(wo(f.Extract_to_0_in_1),[h,m])),d===0&&!ci(l)&&(E=tg(wo(f.Extract_to_0_in_enclosing_scope),[h])),{functionExtraction:{description:y,errors:i[d]},constantExtraction:{description:E,errors:o[d]}}})}function que(e,t){let{file:r}=t,i=gJe(e),o=FJe(e,r),s=zJe(e,i,o,r,t.program.getTypeChecker(),t.cancellationToken);return{scopes:i,readsAndWrites:s}}function EJe(e){return ws(e)?"inner function":ci(e)?"method":"function"}function SJe(e){return ci(e)?"readonly field":"constant"}function TJe(e){switch(e.kind){case 176:return"constructor";case 218:case 262:return e.name?`function '${e.name.text}'`:y7;case 219:return"arrow function";case 174:return`method '${e.name.getText()}'`;case 177:return`'get ${e.name.getText()}'`;case 178:return`'set ${e.name.getText()}'`;default:x.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function AJe(e){return e.kind===263?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}function IJe(e){return e.kind===268?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function xJe(e,t,{usages:r,typeParameterUsages:i,substitutions:o},s,l,d){let p=d.program.getTypeChecker(),h=ns(d.program.getCompilerOptions()),m=Od.createImportAdder(d.file,d.program,d.preferences,d.host),y=t.getSourceFile(),E=QT(ci(t)?"newMethod":"newFunction",y),S=ir(t),A=L.createIdentifier(E),N,D=[],w=[],j;r.forEach((Ae,De)=>{let Le;if(!S){let be=p.getTypeOfSymbolAtLocation(Ae.symbol,Ae.node);be=p.getBaseTypeOfLiteralType(be),Le=Od.typeToAutoImportableTypeNode(p,m,be,t,h,1)}let Et=L.createParameterDeclaration(void 0,void 0,De,void 0,Le);D.push(Et),Ae.usage===2&&(j||(j=[])).push(Ae),w.push(L.createIdentifier(De))});let Y=Wo(i.values(),Ae=>({type:Ae,declaration:CJe(Ae,d.startPosition)})).sort(NJe),B=Y.length===0?void 0:to(Y,({declaration:Ae})=>Ae),ce=B!==void 0?B.map(Ae=>L.createTypeReferenceNode(Ae.name,void 0)):void 0;if(ht(e)&&!S){let Ae=p.getContextualType(e);N=p.typeToTypeNode(Ae,t,1)}let{body:z,returnValueProperty:Z}=MJe(e,s,j,o,!!(l.facts&1));bp(z);let me,ge=!!(l.facts&16);if(ci(t)){let Ae=S?[]:[L.createModifier(123)];l.facts&32&&Ae.push(L.createModifier(126)),l.facts&4&&Ae.push(L.createModifier(134)),me=L.createMethodDeclaration(Ae.length?Ae:void 0,l.facts&2?L.createToken(42):void 0,A,void 0,B,D,N,z)}else ge&&D.unshift(L.createParameterDeclaration(void 0,void 0,"this",void 0,p.typeToTypeNode(p.getTypeAtLocation(l.thisNode),t,1),void 0)),me=L.createFunctionDeclaration(l.facts&4?[L.createToken(134)]:void 0,l.facts&2?L.createToken(42):void 0,A,B,D,N,z);let q=ur.ChangeTracker.fromContext(d),J=(qy(l.range)?Ja(l.range):l.range).end,re=wJe(J,t);re?q.insertNodeBefore(d.file,re,me,!0):q.insertNodeAtEndOfScope(d.file,t,me),m.writeFixes(q);let pe=[],xe=PJe(t,l,E);ge&&w.unshift(L.createIdentifier("this"));let fe=L.createCallExpression(ge?L.createPropertyAccessExpression(xe,"call"):xe,ce,w);if(l.facts&2&&(fe=L.createYieldExpression(L.createToken(42),fe)),l.facts&4&&(fe=L.createAwaitExpression(fe)),Yue(e)&&(fe=L.createJsxExpression(void 0,fe)),s.length&&!j)if(x.assert(!Z,"Expected no returnValueProperty"),x.assert(!(l.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),s.length===1){let Ae=s[0];pe.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(ol(Ae.name),void 0,ol(Ae.type),fe)],Ae.parent.flags)))}else{let Ae=[],De=[],Le=s[0].parent.flags,Et=!1;for(let ze of s){Ae.push(L.createBindingElement(void 0,void 0,ol(ze.name)));let tt=p.typeToTypeNode(p.getBaseTypeOfLiteralType(p.getTypeAtLocation(ze)),t,1);De.push(L.createPropertySignature(void 0,ze.symbol.name,void 0,tt)),Et=Et||ze.type!==void 0,Le=Le&ze.parent.flags}let be=Et?L.createTypeLiteralNode(De):void 0;be&&lr(be,1),pe.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(L.createObjectBindingPattern(Ae),void 0,be,fe)],Le)))}else if(s.length||j){if(s.length)for(let De of s){let Le=De.parent.flags;Le&2&&(Le=Le&-3|1),pe.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(De.symbol.name,void 0,ve(De.type))],Le)))}Z&&pe.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Z,void 0,ve(N))],1)));let Ae=Xue(s,j);Z&&Ae.unshift(L.createShorthandPropertyAssignment(Z)),Ae.length===1?(x.assert(!Z,"Shouldn't have returnValueProperty here"),pe.push(L.createExpressionStatement(L.createAssignment(Ae[0].name,fe))),l.facts&1&&pe.push(L.createReturnStatement())):(pe.push(L.createExpressionStatement(L.createAssignment(L.createObjectLiteralExpression(Ae),fe))),Z&&pe.push(L.createReturnStatement(L.createIdentifier(Z))))}else l.facts&1?pe.push(L.createReturnStatement(fe)):qy(l.range)?pe.push(L.createExpressionStatement(fe)):pe.push(fe);qy(l.range)?q.replaceNodeRangeWithNodes(d.file,Va(l.range),Ja(l.range),pe):q.replaceNodeWithNodes(d.file,l.range,pe);let ne=q.getChanges(),Ce=(qy(l.range)?Va(l.range):l.range).getSourceFile().fileName,Ge=sO(ne,Ce,E,!1);return{renameFilename:Ce,renameLocation:Ge,edits:ne};function ve(Ae){if(Ae===void 0)return;let De=ol(Ae),Le=De;for(;NT(Le);)Le=Le.type;return Hv(Le)&&Vr(Le.types,Et=>Et.kind===157)?De:L.createUnionTypeNode([De,L.createKeywordTypeNode(157)])}}function RJe(e,t,{substitutions:r},i,o){let s=o.program.getTypeChecker(),l=t.getSourceFile(),d=kr(e)&&!ci(t)&&!s.resolveName(e.name.text,e,111551,!1)&&!Ki(e.name)&&!eE(e.name)?e.name.text:QT(ci(t)?"newProperty":"newLocal",l),p=ir(t),h=p||!s.isContextSensitive(e)?void 0:s.typeToTypeNode(s.getContextualType(e),t,1),m=LJe(fs(e),r);({variableType:h,initializer:m}=N(h,m)),bp(m);let y=ur.ChangeTracker.fromContext(o);if(ci(t)){x.assert(!p,"Cannot extract to a JS class");let D=[];D.push(L.createModifier(123)),i&32&&D.push(L.createModifier(126)),D.push(L.createModifier(148));let w=L.createPropertyDeclaration(D,d,void 0,h,m),j=L.createPropertyAccessExpression(i&32?L.createIdentifier(t.name.getText()):L.createThis(),L.createIdentifier(d));Yue(e)&&(j=L.createJsxExpression(void 0,j));let K=e.pos,Y=OJe(K,t);y.insertNodeBefore(o.file,Y,w,!0),y.replaceNode(o.file,e,j)}else{let D=L.createVariableDeclaration(d,void 0,h,m),w=DJe(e,t);if(w){y.insertNodeBefore(o.file,w,D);let j=L.createIdentifier(d);y.replaceNode(o.file,e,j)}else if(e.parent.kind===244&&t===Fn(e,Jue)){let j=L.createVariableStatement(void 0,L.createVariableDeclarationList([D],2));y.replaceNode(o.file,e.parent,j)}else{let j=L.createVariableStatement(void 0,L.createVariableDeclarationList([D],2)),K=WJe(e,t);if(K.pos===0?y.insertNodeAtTopOfFile(o.file,j,!1):y.insertNodeBefore(o.file,K,j,!1),e.parent.kind===244)y.delete(o.file,e.parent);else{let Y=L.createIdentifier(d);Yue(e)&&(Y=L.createJsxExpression(void 0,Y)),y.replaceNode(o.file,e,Y)}}}let E=y.getChanges(),S=e.getSourceFile().fileName,A=sO(E,S,d,!0);return{renameFilename:S,renameLocation:A,edits:E};function N(D,w){if(D===void 0)return{variableType:D,initializer:w};if(!Ps(w)&&!Os(w)||w.typeParameters)return{variableType:D,initializer:w};let j=s.getTypeAtLocation(e),K=nh(s.getSignaturesOfType(j,0));if(!K)return{variableType:D,initializer:w};if(K.getTypeParameters())return{variableType:D,initializer:w};let Y=[],B=!1;for(let ce of w.parameters)if(ce.type)Y.push(ce);else{let z=s.getTypeAtLocation(ce);z===s.getAnyType()&&(B=!0),Y.push(L.updateParameterDeclaration(ce,ce.modifiers,ce.dotDotDotToken,ce.name,ce.questionToken,ce.type||s.typeToTypeNode(z,t,1),ce.initializer))}if(B)return{variableType:D,initializer:w};if(D=void 0,Os(w))w=L.updateArrowFunction(w,Am(e)?y0(e):void 0,w.typeParameters,Y,w.type||s.typeToTypeNode(K.getReturnType(),t,1),w.equalsGreaterThanToken,w.body);else{if(K&&K.thisParameter){let ce=Xc(Y);if(!ce||Fe(ce.name)&&ce.name.escapedText!=="this"){let z=s.getTypeOfSymbolAtLocation(K.thisParameter,e);Y.splice(0,0,L.createParameterDeclaration(void 0,void 0,"this",void 0,s.typeToTypeNode(z,t,1)))}}w=L.updateFunctionExpression(w,Am(e)?y0(e):void 0,w.asteriskToken,w.name,w.typeParameters,Y,w.type||s.typeToTypeNode(K.getReturnType(),t,1),w.body)}return{variableType:D,initializer:w}}}function DJe(e,t){let r;for(;e!==void 0&&e!==t;){if(wi(e)&&e.initializer===r&&Uc(e.parent)&&e.parent.declarations.length>1)return e;r=e,e=e.parent}}function CJe(e,t){let r,i=e.symbol;if(i&&i.declarations)for(let o of i.declarations)(r===void 0||o.pos0;if(Ko(e)&&!s&&i.size===0)return{body:L.createBlock(e.statements,!0),returnValueProperty:void 0};let l,d=!1,p=L.createNodeArray(Ko(e)?e.statements.slice(0):[Hi(e)?e:L.createReturnStatement(fs(e))]);if(s||i.size){let m=zn(p,h,Hi).slice();if(s&&!o&&Hi(e)){let y=Xue(t,r);y.length===1?m.push(L.createReturnStatement(y[0].name)):m.push(L.createReturnStatement(L.createObjectLiteralExpression(y)))}return{body:L.createBlock(m,!0),returnValueProperty:l}}else return{body:L.createBlock(p,!0),returnValueProperty:void 0};function h(m){if(!d&&Sm(m)&&s){let y=Xue(t,r);return m.expression&&(l||(l="__return"),y.unshift(L.createPropertyAssignment(l,$e(m.expression,h,ht)))),y.length===1?L.createReturnStatement(y[0].name):L.createReturnStatement(L.createObjectLiteralExpression(y))}else{let y=d;d=d||ws(m)||ci(m);let E=i.get(rs(m).toString()),S=E?ol(E):Sn(m,h,void 0);return d=y,S}}}function LJe(e,t){return t.size?r(e):e;function r(i){let o=t.get(rs(i).toString());return o?ol(o):Sn(i,r,void 0)}}function kJe(e){if(ws(e)){let t=e.body;if(Ko(t))return t.statements}else{if(N_(e)||Yi(e))return e.statements;if(ci(e))return e.members;}return Xe}function wJe(e,t){return Vr(kJe(t),r=>r.pos>=e&&ws(r)&&!Pl(r))}function OJe(e,t){let r=t.members;x.assert(r.length>0,"Found no members");let i,o=!0;for(let s of r){if(s.pos>e)return i||r[0];if(o&&!Uo(s)){if(i!==void 0)return s;o=!1}i=s}return i===void 0?x.fail():i}function WJe(e,t){x.assert(!ci(t));let r;for(let i=e;i!==t;i=i.parent)Jue(i)&&(r=i);for(let i=(r||e).parent;;i=i.parent){if(RDe(i)){let o;for(let s of i.statements){if(s.pos>e.pos)break;o=s}return!o&&MR(i)?(x.assert(uP(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):x.checkDefined(o,"prevStatement failed to get set")}x.assert(i!==t,"Didn't encounter a block-like before encountering scope")}}function Xue(e,t){let r=mn(e,o=>L.createShorthandPropertyAssignment(o.symbol.name)),i=mn(t,o=>L.createShorthandPropertyAssignment(o.symbol.name));return r===void 0?i:i===void 0?r:r.concat(i)}function qy(e){return To(e)}function FJe(e,t){return qy(e.range)?{pos:Va(e.range).getStart(t),end:Ja(e.range).getEnd()}:e.range}function zJe(e,t,r,i,o,s){let l=new Map,d=[],p=[],h=[],m=[],y=[],E=new Map,S=[],A,N=qy(e.range)?e.range.length===1&&ed(e.range[0])?e.range[0].expression:void 0:e.range,D;if(N===void 0){let re=e.range,pe=Va(re).getStart(),xe=Ja(re).end;D=Qc(i,pe,xe-pe,Sd.expressionExpected)}else o.getTypeAtLocation(N).flags&147456&&(D=Pr(N,Sd.uselessConstantType));for(let re of t){d.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),p.push(new Map),h.push([]);let pe=[];D&&pe.push(D),ci(re)&&ir(re)&&pe.push(Pr(re,Sd.cannotExtractToJSClass)),Os(re)&&!Ko(re.body)&&pe.push(Pr(re,Sd.cannotExtractToExpressionArrowFunction)),m.push(pe)}let w=new Map,j=qy(e.range)?L.createBlock(e.range):e.range,K=qy(e.range)?Va(e.range):e.range,Y=B(K);if(z(j),Y&&!qy(e.range)&&!M_(e.range)){let re=o.getContextualType(e.range);ce(re)}if(l.size>0){let re=new Map,pe=0;for(let xe=K;xe!==void 0&&pe{d[pe].typeParameterUsages.set(ne,fe)}),pe++),ej(xe))for(let fe of Rv(xe)){let ne=o.getTypeAtLocation(fe);l.has(ne.id.toString())&&re.set(ne.id.toString(),ne)}x.assert(pe===t.length,"Should have iterated all scopes")}if(y.length){let re=ZV(t[0],t[0].parent)?t[0]:uh(t[0]);Go(re,ge)}for(let re=0;re0&&(pe.usages.size>0||pe.typeParameterUsages.size>0)){let ne=qy(e.range)?e.range[0]:e.range;m[re].push(Pr(ne,Sd.cannotAccessVariablesFromNestedScopes))}e.facts&16&&ci(t[re])&&h[re].push(Pr(e.thisNode,Sd.cannotExtractFunctionsContainingThisToMethod));let xe=!1,fe;if(d[re].usages.forEach(ne=>{ne.usage===2&&(xe=!0,ne.symbol.flags&106500&&ne.symbol.valueDeclaration&&fp(ne.symbol.valueDeclaration,8)&&(fe=ne.symbol.valueDeclaration))}),x.assert(qy(e.range)||S.length===0,"No variable declarations expected if something was extracted"),xe&&!qy(e.range)){let ne=Pr(e.range,Sd.cannotWriteInExpression);h[re].push(ne),m[re].push(ne)}else if(fe&&re>0){let ne=Pr(fe,Sd.cannotExtractReadonlyPropertyInitializerOutsideConstructor);h[re].push(ne),m[re].push(ne)}else if(A){let ne=Pr(A,Sd.cannotExtractExportedEntity);h[re].push(ne),m[re].push(ne)}}return{target:j,usagesPerScope:d,functionErrorsPerScope:h,constantErrorsPerScope:m,exposedVariableDeclarations:S};function B(re){return!!Fn(re,pe=>ej(pe)&&Rv(pe).length!==0)}function ce(re){let pe=o.getSymbolWalker(()=>(s.throwIfCancellationRequested(),!0)),{visitedTypes:xe}=pe.walkType(re);for(let fe of xe)fe.isTypeParameter()&&l.set(fe.id.toString(),fe)}function z(re,pe=1){if(Y){let xe=o.getTypeAtLocation(re);ce(xe)}if(Hd(re)&&re.symbol&&y.push(re),Mc(re))z(re.left,2),z(re.right);else if(_re(re))z(re.operand,2);else if(kr(re)||Js(re))Go(re,z);else if(Fe(re)){if(!re.parent||Su(re.parent)&&re!==re.parent.left||kr(re.parent)&&re!==re.parent.expression)return;Z(re,pe,qh(re))}else Go(re,z)}function Z(re,pe,xe){let fe=me(re,pe,xe);if(fe)for(let ne=0;ne=pe)return ne;if(w.set(ne,pe),he){for(let ve of d)ve.usages.get(re.text)&&ve.usages.set(re.text,{usage:pe,symbol:fe,node:re});return ne}let Ce=fe.getDeclarations(),Ge=Ce&&Vr(Ce,ve=>ve.getSourceFile()===i);if(Ge&&!Xw(r,Ge.getStart(),Ge.end)){if(e.facts&2&&pe===2){let ve=Pr(re,Sd.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(let Ae of h)Ae.push(ve);for(let Ae of m)Ae.push(ve)}for(let ve=0;vefe.symbol===pe);if(xe)if(wi(xe)){let fe=xe.symbol.id.toString();E.has(fe)||(S.push(xe),E.set(fe,!0))}else A=A||xe}Go(re,ge)}function q(re){return re.parent&&Zu(re.parent)&&re.parent.name===re?o.getShorthandAssignmentValueSymbol(re.parent):o.getSymbolAtLocation(re)}function J(re,pe,xe){if(!re)return;let fe=re.getDeclarations();if(fe&&fe.some(he=>he.parent===pe))return L.createIdentifier(re.name);let ne=J(re.parent,pe,xe);if(ne!==void 0)return xe?L.createQualifiedName(ne,L.createIdentifier(re.name)):L.createPropertyAccessExpression(ne,re.name)}}function BJe(e){return Fn(e,t=>t.parent&&xDe(t)&&!dr(t.parent))}function xDe(e){let{parent:t}=e;switch(t.kind){case 306:return!1}switch(e.kind){case 11:return t.kind!==272&&t.kind!==276;case 230:case 206:case 208:return!1;case 80:return t.kind!==208&&t.kind!==276&&t.kind!==281}return!0}function RDe(e){switch(e.kind){case 241:case 312:case 268:case 296:return!0;default:return!1}}function Yue(e){return $ue(e)||(ig(e)||OT(e)||J0(e))&&(ig(e.parent)||J0(e.parent))}function $ue(e){return Da(e)&&e.parent&&M_(e.parent)}var gD,yD,vD,Sd,Que,GJe=bt({"src/services/refactors/extractSymbol.ts"(){"use strict";ai(),Sh(),gD="Extract Symbol",yD={name:"Extract Constant",description:wo(f.Extract_constant),kind:"refactor.extract.constant"},vD={name:"Extract Function",description:wo(f.Extract_function),kind:"refactor.extract.function"},ag(gD,{kinds:[yD.kind,vD.kind],getEditsForAction:IDe,getAvailableActions:ADe}),(e=>{function t(r){return{message:r,code:0,category:3,key:r}}e.cannotExtractRange=t("Cannot extract range."),e.cannotExtractImport=t("Cannot extract import statement."),e.cannotExtractSuper=t("Cannot extract super call."),e.cannotExtractJSDoc=t("Cannot extract JSDoc."),e.cannotExtractEmpty=t("Cannot extract empty range."),e.expressionExpected=t("expression expected."),e.uselessConstantType=t("No reason to extract constant of type."),e.statementOrExpressionExpected=t("Statement or expression expected."),e.cannotExtractRangeContainingConditionalBreakOrContinueStatements=t("Cannot extract range containing conditional break or continue statements."),e.cannotExtractRangeContainingConditionalReturnStatement=t("Cannot extract range containing conditional return statement."),e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=t("Cannot extract range containing labeled break or continue with target outside of the range."),e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=t("Cannot extract range containing writes to references located outside of the target range in generators."),e.typeWillNotBeVisibleInTheNewScope=t("Type will not visible in the new scope."),e.functionWillNotBeVisibleInTheNewScope=t("Function will not visible in the new scope."),e.cannotExtractIdentifier=t("Select more than a single identifier."),e.cannotExtractExportedEntity=t("Cannot extract exported declaration"),e.cannotWriteInExpression=t("Cannot write back side-effects when extracting an expression"),e.cannotExtractReadonlyPropertyInitializerOutsideConstructor=t("Cannot move initialization of read-only class property outside of the constructor"),e.cannotExtractAmbientBlock=t("Cannot extract code from ambient contexts"),e.cannotAccessVariablesFromNestedScopes=t("Cannot access variables from nested scopes"),e.cannotExtractToJSClass=t("Cannot extract constant to a class scope in JS"),e.cannotExtractToExpressionArrowFunction=t("Cannot extract constant to an arrow function without a block"),e.cannotExtractFunctionsContainingThisToMethod=t("Cannot extract functions containing this to method")})(Sd||(Sd={})),Que=(e=>(e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.UsesThisInFunction=16]="UsesThisInFunction",e[e.InStaticRegion=32]="InStaticRegion",e))(Que||{})}}),DDe={};xa(DDe,{Messages:()=>Sd,RangeFacts:()=>Que,getRangeToExtract:()=>Kue,getRefactorActionsToExtractSymbol:()=>ADe,getRefactorEditsToExtractSymbol:()=>IDe});var VJe=bt({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){"use strict";GJe()}}),B7,uY,pY,jJe=bt({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){"use strict";ai(),Sh(),B7="Generate 'get' and 'set' accessors",uY=wo(f.Generate_get_and_set_accessors),pY={name:B7,description:uY,kind:"refactor.rewrite.property.generateAccessors"},ag(B7,{kinds:[pY.kind],getEditsForAction:function(t,r){if(!t.endPosition)return;let i=Od.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);x.assert(i&&!jg(i),"Expected applicable refactor info");let o=Od.generateAccessorFromProperty(t.file,t.program,t.startPosition,t.endPosition,t,r);if(!o)return;let s=t.file.fileName,l=i.renameAccessor?i.accessorName:i.fieldName,p=(Fe(l)?0:-1)+sO(o,s,l.text,Ao(i.declaration));return{renameFilename:s,renameLocation:p,edits:o}},getAvailableActions(e){if(!e.endPosition)return Xe;let t=Od.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return t?jg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:B7,description:uY,actions:[{...pY,notApplicableReason:t.error}]}]:Xe:[{name:B7,description:uY,actions:[pY]}]:Xe}})}}),UJe={},HJe=bt({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){"use strict";jJe()}});function KJe(e){let t=CDe(e);if(t&&!jg(t))return{renameFilename:void 0,renameLocation:void 0,edits:ur.ChangeTracker.with(e,i=>qJe(e.file,i,t.declaration,t.returnTypeNode))}}function JJe(e){let t=CDe(e);return t?jg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:G7,description:fY,actions:[{...V7,notApplicableReason:t.error}]}]:Xe:[{name:G7,description:fY,actions:[V7]}]:Xe}function qJe(e,t,r,i){let o=_s(r,22,e),s=Os(r)&&o===void 0,l=s?Va(r.parameters):o;l&&(s&&(t.insertNodeBefore(e,l,L.createToken(21)),t.insertNodeAfter(e,l,L.createToken(22))),t.insertNodeAt(e,l.end,i,{prefix:": "}))}function CDe(e){if(ir(e.file)||!CE(V7.kind,e.kind))return;let t=Wu(e.file,e.startPosition),r=Fn(t,l=>Ko(l)||l.parent&&Os(l.parent)&&(l.kind===39||l.parent.body===l)?"quit":XJe(l));if(!r||!r.body||r.type)return{error:wo(f.Return_type_must_be_inferred_from_a_function)};let i=e.program.getTypeChecker(),o=YJe(i,r);if(!o)return{error:wo(f.Could_not_determine_function_return_type)};let s=i.typeToTypeNode(o,r,1);if(s)return{declaration:r,returnTypeNode:s}}function XJe(e){switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}function YJe(e,t){if(e.isImplementationOfOverload(t)){let i=e.getTypeAtLocation(t).getCallSignatures();if(i.length>1)return e.getUnionType(to(i,o=>o.getReturnType()))}let r=e.getSignatureFromDeclaration(t);if(r)return e.getReturnTypeOfSignature(r)}var G7,fY,V7,$Je=bt({"src/services/refactors/inferFunctionReturnType.ts"(){"use strict";ai(),Sh(),G7="Infer function return type",fY=wo(f.Infer_function_return_type),V7={name:G7,description:fY,kind:"refactor.rewrite.function.returnType"},ag(G7,{kinds:[V7.kind],getEditsForAction:KJe,getAvailableActions:JJe})}}),QJe={},ZJe=bt({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){"use strict";$Je()}}),T1={};xa(T1,{addExportToChanges:()=>Due,addExports:()=>Aue,addNewFileToTsconfig:()=>vue,addOrRemoveBracesToArrowFunction:()=>fKe,containsJsx:()=>Nue,convertArrowFunctionOrFunctionExpression:()=>IKe,convertParamsToDestructuredObject:()=>UKe,convertStringOrTemplateLiteral:()=>eJe,convertToOptionalChainExpression:()=>fJe,createNewFileName:()=>Cue,createOldFileImportsFromTargetFile:()=>Tue,deleteMovedStatements:()=>P7,deleteUnusedImports:()=>Iue,deleteUnusedOldImports:()=>bue,doChangeNamedToNamespaceOrDefault:()=>WRe,extractSymbol:()=>DDe,filterImport:()=>EO,forEachImportInStatement:()=>bO,generateGetAccessorAndSetAccessor:()=>UJe,getApplicableRefactors:()=>uHe,getEditsForRefactor:()=>pHe,getStatementsToMove:()=>SO,getTopLevelDeclarationStatement:()=>QX,getUsageInfo:()=>L7,inferFunctionReturnType:()=>QJe,isRefactorErrorInfo:()=>jg,isTopLevelDeclaration:()=>k7,makeImportOrRequire:()=>M7,moduleSpecifierFromImport:()=>vO,nameOfTopLevelDeclaration:()=>Rue,refactorKindBeginsWith:()=>CE,registerRefactor:()=>ag,updateImportsInOtherFiles:()=>Eue});var Sh=bt({"src/services/_namespaces/ts.refactor.ts"(){"use strict";PRe(),vHe(),AHe(),MHe(),LHe(),wHe(),zHe(),aKe(),mKe(),xKe(),HKe(),tJe(),mJe(),VJe(),HJe(),ZJe()}});function NDe(e,t,r,i){let o=Zue(e,t,r,i);x.assert(o.spans.length%3===0);let s=o.spans,l=[];for(let d=0;d{o.push(l.getStart(t),l.getWidth(t),(d+1<<8)+p)},i),o}function tqe(e,t,r,i,o){let s=e.getTypeChecker(),l=!1;function d(p){switch(p.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:o.throwIfCancellationRequested()}if(!p||!ZW(r,p.pos,p.getFullWidth())||p.getFullWidth()===0)return;let h=l;if((ig(p)||OT(p))&&(l=!0),fP(p)&&(l=!1),Fe(p)&&!l&&!oqe(p)&&!qN(p.escapedText)){let m=s.getSymbolAtLocation(p);if(m){m.flags&2097152&&(m=s.getAliasedSymbol(m));let y=nqe(m,qT(p));if(y!==void 0){let E=0;p.parent&&(Xa(p.parent)||rpe.get(p.parent.kind)===y)&&p.parent.name===p&&(E=1),y===6&&MDe(p)&&(y=9),y=rqe(s,p,y);let S=m.valueDeclaration;if(S){let A=Zb(S),N=Ry(S);A&256&&(E|=2),A&1024&&(E|=4),y!==0&&y!==2&&(A&8||N&2||m.getFlags()&8)&&(E|=8),(y===7||y===10)&&iqe(S,t)&&(E|=32),e.isSourceFileDefaultLibrary(S.getSourceFile())&&(E|=16)}else m.declarations&&m.declarations.some(A=>e.isSourceFileDefaultLibrary(A.getSourceFile()))&&(E|=16);i(p,y,E)}}}Go(p,d),l=h}d(t)}function nqe(e,t){let r=e.getFlags();if(r&32)return 0;if(r&384)return 1;if(r&524288)return 5;if(r&64){if(t&2)return 2}else if(r&262144)return 4;let i=e.valueDeclaration||e.declarations&&e.declarations[0];return i&&Xa(i)&&(i=PDe(i)),i&&rpe.get(i.kind)}function rqe(e,t,r){if(r===7||r===9||r===6){let i=e.getTypeAtLocation(t);if(i){let o=s=>s(i)||i.isUnion()&&i.types.some(s);if(r!==6&&o(s=>s.getConstructSignatures().length>0))return 0;if(o(s=>s.getCallSignatures().length>0)&&!o(s=>s.getProperties().length>0)||aqe(t))return r===9?11:10}}return r}function iqe(e,t){return Xa(e)&&(e=PDe(e)),wi(e)?(!Yi(e.parent.parent.parent)||X0(e.parent))&&e.getSourceFile()===t:Ec(e)?!Yi(e.parent)&&e.getSourceFile()===t:!1}function PDe(e){for(;;)if(Xa(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function oqe(e){let t=e.parent;return t&&(gh(t)||Qu(t)||Xv(t))}function aqe(e){for(;MDe(e);)e=e.parent;return ia(e.parent)&&e.parent.expression===e}function MDe(e){return Su(e.parent)&&e.parent.right===e||kr(e.parent)&&e.parent.name===e}var epe,tpe,npe,rpe,LDe=bt({"src/services/classifier2020.ts"(){"use strict";ai(),epe=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(epe||{}),tpe=(e=>(e[e.class=0]="class",e[e.enum=1]="enum",e[e.interface=2]="interface",e[e.namespace=3]="namespace",e[e.typeParameter=4]="typeParameter",e[e.type=5]="type",e[e.parameter=6]="parameter",e[e.variable=7]="variable",e[e.enumMember=8]="enumMember",e[e.property=9]="property",e[e.function=10]="function",e[e.member=11]="member",e))(tpe||{}),npe=(e=>(e[e.declaration=0]="declaration",e[e.static=1]="static",e[e.async=2]="async",e[e.readonly=3]="readonly",e[e.defaultLibrary=4]="defaultLibrary",e[e.local=5]="local",e))(npe||{}),rpe=new Map([[260,7],[169,6],[172,9],[267,3],[266,1],[306,8],[263,0],[174,11],[262,10],[218,10],[173,11],[177,9],[178,9],[171,9],[264,2],[265,5],[168,4],[303,9],[304,9]])}});function kDe(e,t,r,i){let o=ZL(e)?new yY(e,t,r):e===80?new bY(80,t,r):e===81?new EY(81,t,r):new spe(e,t,r);return o.parent=i,o.flags=i.flags&101441536,o}function sqe(e,t){if(!ZL(e.kind))return Xe;let r=[];if(_F(e))return e.forEachChild(l=>{r.push(l)}),r;Yd.setText((t||e.getSourceFile()).text);let i=e.pos,o=l=>{j7(r,i,l.pos,e),r.push(l),i=l.end},s=l=>{j7(r,i,l.pos,e),r.push(lqe(l,e)),i=l.end};return gn(e.jsDoc,o),i=e.pos,e.forEachChild(o,s),j7(r,i,e.end,e),Yd.setText(void 0),r}function j7(e,t,r,i){for(Yd.resetTokenState(t);tt.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function mY(e,t){if(!e)return Xe;let r=PE.getJsDocTagsFromDeclarations(e,t);if(t&&(r.length===0||e.some(wDe))){let i=new Set;for(let o of e){let s=ODe(t,o,l=>{var d;if(!i.has(l))return i.add(l),o.kind===177||o.kind===178?l.getContextualJsDocTags(o,t):((d=l.declarations)==null?void 0:d.length)===1?l.getJsDocTags():void 0});s&&(r=[...s,...r])}}return r}function U7(e,t){if(!e)return Xe;let r=PE.getJsDocCommentsFromDeclarations(e,t);if(t&&(r.length===0||e.some(wDe))){let i=new Set;for(let o of e){let s=ODe(t,o,l=>{if(!i.has(l))return i.add(l),o.kind===177||o.kind===178?l.getContextualDocumentationComment(o,t):l.getDocumentationComment(t)});s&&(r=r.length===0?s.slice():s.concat(pD(),r))}}return r}function ODe(e,t,r){var i;let o=((i=t.parent)==null?void 0:i.kind)===176?t.parent.parent:t.parent;if(!o)return;let s=pc(t);return Wl(bN(o),l=>{let d=e.getTypeAtLocation(l),p=s&&d.symbol?e.getTypeOfSymbol(d.symbol):d,h=e.getPropertyOfType(p,t.symbol.name);return h?r(h):void 0})}function cqe(){return{getNodeConstructor:()=>yY,getTokenConstructor:()=>spe,getIdentifierConstructor:()=>bY,getPrivateIdentifierConstructor:()=>EY,getSourceFileConstructor:()=>VDe,getSymbolConstructor:()=>zDe,getTypeConstructor:()=>BDe,getSignatureConstructor:()=>GDe,getSourceMapSourceConstructor:()=>jDe}}function DO(e){let t=!0;for(let i in e)if(Ss(e,i)&&!WDe(i)){t=!1;break}if(t)return e;let r={};for(let i in e)if(Ss(e,i)){let o=WDe(i)?i:i.charAt(0).toLowerCase()+i.substr(1);r[o]=e[i]}return r}function WDe(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function CO(e){return e?mn(e,t=>t.text).join(""):""}function H7(){return{target:1,jsx:1}}function _Y(){return Od.getSupportedErrorCodes()}function FDe(e,t,r){e.version=r,e.scriptSnapshot=t}function K7(e,t,r,i,o,s){let l=Yk(e,cD(t),r,o,s);return FDe(l,t,i),l}function hY(e,t,r,i,o){if(i&&r!==e.version){let l,d=i.span.start!==0?e.text.substr(0,i.span.start):"",p=Jl(i.span)!==e.text.length?e.text.substr(Jl(i.span)):"";if(i.newLength===0)l=d&&p?d+p:d||p;else{let m=t.getText(i.span.start,i.span.start+i.newLength);l=d&&p?d+m+p:d?d+m:m+p}let h=DH(e,l,i,o);return FDe(h,t,r),h.nameTable=void 0,e!==h&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),h}let s={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return K7(e.fileName,t,s,r,!0,e.scriptKind)}function ipe(e,t=Gde(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()),r){var i;let o;r===void 0?o=0:typeof r=="boolean"?o=r?2:0:o=r;let s=new UDe(e),l,d,p=0,h=e.getCancellationToken?new KDe(e.getCancellationToken()):HDe,m=e.getCurrentDirectory();soe((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function y(k){e.log&&e.log(k)}let E=pR(e),S=Nd(E),A=tue({useCaseSensitiveFileNames:()=>E,getCurrentDirectory:()=>m,getProgram:j,fileExists:ta(e,e.fileExists),readFile:ta(e,e.readFile),getDocumentPositionMapper:ta(e,e.getDocumentPositionMapper),getSourceFileLike:ta(e,e.getSourceFileLike),log:y});function N(k){let ie=l.getSourceFile(k);if(!ie){let H=new Error(`Could not find source file: '${k}'.`);throw H.ProgramFiles=l.getSourceFiles().map(ue=>ue.fileName),H}return ie}function D(){e.updateFromProject&&!e.updateFromProjectInProgress?e.updateFromProject():w()}function w(){var k,ie,H;if(x.assert(o!==2),e.getProjectVersion){let Mo=e.getProjectVersion();if(Mo){if(d===Mo&&!((k=e.hasChangedAutomaticTypeDirectiveNames)!=null&&k.call(e)))return;d=Mo}}let ue=e.getTypeRootsVersion?e.getTypeRootsVersion():0;p!==ue&&(y("TypeRoots version has changed; provide new program"),l=void 0,p=ue);let We=e.getScriptFileNames().slice(),Ne=e.getCompilationSettings()||H7(),It=e.hasInvalidatedResolutions||Vm,Dt=ta(e,e.hasInvalidatedLibResolutions)||Vm,Ut=ta(e,e.hasChangedAutomaticTypeDirectiveNames),En=(ie=e.getProjectReferences)==null?void 0:ie.call(e),wn,Bn={getSourceFile:Ls,getSourceFileByPath:$l,getCancellationToken:()=>h,getCanonicalFileName:S,useCaseSensitiveFileNames:()=>E,getNewLine:()=>wy(Ne),getDefaultLibFileName:Mo=>e.getDefaultLibFileName(Mo),writeFile:qa,getCurrentDirectory:()=>m,fileExists:Mo=>e.fileExists(Mo),readFile:Mo=>e.readFile&&e.readFile(Mo),getSymlinkCache:ta(e,e.getSymlinkCache),realpath:ta(e,e.realpath),directoryExists:Mo=>Um(Mo,e),getDirectories:Mo=>e.getDirectories?e.getDirectories(Mo):[],readDirectory:(Mo,ss,Ws,ml,cd)=>(x.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(Mo,ss,Ws,ml,cd)),onReleaseOldSourceFile:xn,onReleaseParsedCommandLine:xo,hasInvalidatedResolutions:It,hasInvalidatedLibResolutions:Dt,hasChangedAutomaticTypeDirectiveNames:Ut,trace:ta(e,e.trace),resolveModuleNames:ta(e,e.resolveModuleNames),getModuleResolutionCache:ta(e,e.getModuleResolutionCache),createHash:ta(e,e.createHash),resolveTypeReferenceDirectives:ta(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:ta(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:ta(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:ta(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:ta(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:Ri,jsDocParsingMode:e.jsDocParsingMode},gi=Bn.getSourceFile,{getSourceFileWithCache:xi}=Nw(Bn,Mo=>tl(Mo,m,S),(...Mo)=>gi.call(Bn,...Mo));Bn.getSourceFile=xi,(H=e.setCompilerHost)==null||H.call(e,Bn);let er={useCaseSensitiveFileNames:E,fileExists:Mo=>Bn.fileExists(Mo),readFile:Mo=>Bn.readFile(Mo),directoryExists:Mo=>Bn.directoryExists(Mo),getDirectories:Mo=>Bn.getDirectories(Mo),realpath:Bn.realpath,readDirectory:(...Mo)=>Bn.readDirectory(...Mo),trace:Bn.trace,getCurrentDirectory:Bn.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:qa},Fr=t.getKeyForCompilationSettings(Ne),go=new Set;if(mJ(l,We,Ne,(Mo,ss)=>e.getScriptVersion(ss),Mo=>Bn.fileExists(Mo),It,Dt,Ut,Ri,En)){Bn=void 0,wn=void 0,go=void 0;return}l=iz({rootNames:We,options:Ne,host:Bn,oldProgram:l,projectReferences:En}),Bn=void 0,wn=void 0,go=void 0,A.clearCache(),l.getTypeChecker();return;function Ri(Mo){let ss=tl(Mo,m,S),Ws=wn?.get(ss);if(Ws!==void 0)return Ws||void 0;let ml=e.getParsedCommandLine?e.getParsedCommandLine(Mo):Kr(Mo);return(wn||(wn=new Map)).set(ss,ml||!1),ml}function Kr(Mo){let ss=Ls(Mo,100);if(ss)return ss.path=tl(Mo,m,S),ss.resolvedPath=ss.path,ss.originalFileName=ss.fileName,tw(ss,er,ho(oi(Mo),m),void 0,ho(Mo,m))}function xo(Mo,ss,Ws){var ml;e.getParsedCommandLine?(ml=e.onReleaseParsedCommandLine)==null||ml.call(e,Mo,ss,Ws):ss&&xn(ss.sourceFile,Ws)}function xn(Mo,ss){let Ws=t.getKeyForCompilationSettings(ss);t.releaseDocumentWithKey(Mo.resolvedPath,Ws,Mo.scriptKind,Mo.impliedNodeFormat)}function Ls(Mo,ss,Ws,ml){return $l(Mo,tl(Mo,m,S),ss,Ws,ml)}function $l(Mo,ss,Ws,ml,cd){x.assert(Bn,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");let mo=e.getScriptSnapshot(Mo);if(!mo)return;let la=eX(Mo,e),dd=e.getScriptVersion(Mo);if(!cd){let bs=l&&l.getSourceFileByPath(ss);if(bs){if(la===bs.scriptKind||go.has(bs.resolvedPath))return t.updateDocumentWithKey(Mo,ss,e,Fr,mo,dd,la,Ws);t.releaseDocumentWithKey(bs.resolvedPath,t.getKeyForCompilationSettings(l.getCompilerOptions()),bs.scriptKind,bs.impliedNodeFormat),go.add(bs.resolvedPath)}}return t.acquireDocumentWithKey(Mo,ss,e,Fr,mo,dd,la,Ws)}}function j(){if(o===2){x.assert(l===void 0);return}return D(),l}function K(){var k;return(k=e.getPackageJsonAutoImportProvider)==null?void 0:k.call(e)}function Y(k,ie){let H=l.getTypeChecker(),ue=We();if(!ue)return!1;for(let It of k)for(let Dt of It.references){let Ut=Ne(Dt);if(x.assertIsDefined(Ut),ie.has(Dt)||Ms.isDeclarationOfSymbol(Ut,ue)){ie.add(Dt),Dt.isDefinition=!0;let En=Zz(Dt,A,ta(e,e.fileExists));En&&ie.add(En)}else Dt.isDefinition=!1}return!0;function We(){for(let It of k)for(let Dt of It.references){if(ie.has(Dt)){let En=Ne(Dt);return x.assertIsDefined(En),H.getSymbolAtLocation(En)}let Ut=Zz(Dt,A,ta(e,e.fileExists));if(Ut&&ie.has(Ut)){let En=Ne(Ut);if(En)return H.getSymbolAtLocation(En)}}}function Ne(It){let Dt=l.getSourceFile(It.fileName);if(!Dt)return;let Ut=Wu(Dt,It.textSpan.start);return Ms.Core.getAdjustedNode(Ut,{use:Ms.FindReferencesUse.References})}}function B(){if(l){let k=t.getKeyForCompilationSettings(l.getCompilerOptions());gn(l.getSourceFiles(),ie=>t.releaseDocumentWithKey(ie.resolvedPath,k,ie.scriptKind,ie.impliedNodeFormat)),l=void 0}}function ce(){B(),e=void 0}function z(k){return D(),l.getSyntacticDiagnostics(N(k),h).slice()}function Z(k){D();let ie=N(k),H=l.getSemanticDiagnostics(ie,h);if(!Af(l.getCompilerOptions()))return H.slice();let ue=l.getDeclarationDiagnostics(ie,h);return[...H,...ue]}function me(k){return D(),MX(N(k),l,h)}function ge(){return D(),[...l.getOptionsDiagnostics(h),...l.getGlobalDiagnostics(h)]}function q(k,ie,H=Cf,ue){let We={...H,includeCompletionsForModuleExports:H.includeCompletionsForModuleExports||H.includeExternalModuleExports,includeCompletionsWithInsertText:H.includeCompletionsWithInsertText||H.includeInsertTextCompletions};return D(),C1.getCompletionsAtPosition(e,l,y,N(k),ie,We,H.triggerCharacter,H.triggerKind,h,ue&&wc.getFormatContext(ue,e),H.includeSymbol)}function J(k,ie,H,ue,We,Ne=Cf,It){return D(),C1.getCompletionEntryDetails(l,y,N(k),ie,{name:H,source:We,data:It},e,ue&&wc.getFormatContext(ue,e),Ne,h)}function re(k,ie,H,ue,We=Cf){return D(),C1.getCompletionEntrySymbol(l,y,N(k),ie,{name:H,source:ue},e,We)}function pe(k,ie){D();let H=N(k),ue=Wu(H,ie);if(ue===H)return;let We=l.getTypeChecker(),Ne=xe(ue),It=fqe(Ne,We);if(!It||We.isUnknownSymbol(It)){let Bn=fe(H,Ne,ie)?We.getTypeAtLocation(Ne):void 0;return Bn&&{kind:"",kindModifiers:"",textSpan:Iu(Ne,H),displayParts:We.runWithCancellationToken(h,gi=>oO(gi,Bn,XT(Ne))),documentation:Bn.symbol?Bn.symbol.getDocumentationComment(We):void 0,tags:Bn.symbol?Bn.symbol.getJsDocTags(We):void 0}}let{symbolKind:Dt,displayParts:Ut,documentation:En,tags:wn}=We.runWithCancellationToken(h,Bn=>Xy.getSymbolDisplayPartsDocumentationAndSymbolKind(Bn,It,H,XT(Ne),Ne));return{kind:Dt,kindModifiers:Xy.getSymbolModifiers(We,It),textSpan:Iu(Ne,H),displayParts:Ut,documentation:En,tags:wn}}function xe(k){return j0(k.parent)&&k.pos===k.parent.pos?k.parent.expression:DR(k.parent)&&k.pos===k.parent.pos||Jx(k.parent)&&k.parent.name===k||qm(k.parent)?k.parent:k}function fe(k,ie,H){switch(ie.kind){case 80:return!Eq(ie)&&!Sq(ie)&&!Ng(ie.parent);case 211:case 166:return!jy(k,H);case 110:case 197:case 108:case 202:return!0;case 236:return Jx(ie);default:return!1}}function ne(k,ie,H,ue){return D(),xD.getDefinitionAtPosition(l,N(k),ie,H,ue)}function he(k,ie){return D(),xD.getDefinitionAndBoundSpan(l,N(k),ie)}function Ce(k,ie){return D(),xD.getTypeDefinitionAtPosition(l.getTypeChecker(),N(k),ie)}function Ge(k,ie){return D(),Ms.getImplementationsAtPosition(l,h,l.getSourceFiles(),N(k),ie)}function ve(k,ie,H){let ue=ma(k);x.assert(H.some(It=>ma(It)===ue)),D();let We=to(H,It=>l.getSourceFile(It)),Ne=N(k);return E7.getDocumentHighlights(l,h,Ne,ie,We)}function Ae(k,ie,H,ue,We){D();let Ne=N(k),It=zz(Wu(Ne,ie));if(vB.nodeIsEligibleForRename(It))if(Fe(It)&&(P_(It.parent)||K0(It.parent))&&dR(It.escapedText)){let{openingElement:Dt,closingElement:Ut}=It.parent.parent;return[Dt,Ut].map(En=>{let wn=Iu(En.tagName,Ne);return{fileName:Ne.fileName,textSpan:wn,...Ms.toContextSpan(wn,Ne,En.parent)}})}else{let Dt=of(Ne,We??Cf),Ut=typeof We=="boolean"?We:We?.providePrefixAndSuffixTextForRename;return Le(It,ie,{findInStrings:H,findInComments:ue,providePrefixAndSuffixTextForRename:Ut,use:Ms.FindReferencesUse.Rename},(En,wn,Bn)=>Ms.toRenameLocation(En,wn,Bn,Ut||!1,Dt))}}function De(k,ie){return D(),Le(Wu(N(k),ie),ie,{use:Ms.FindReferencesUse.References},Ms.toReferenceEntry)}function Le(k,ie,H,ue){D();let We=H&&H.use===Ms.FindReferencesUse.Rename?l.getSourceFiles().filter(Ne=>!l.isSourceFileDefaultLibrary(Ne)):l.getSourceFiles();return Ms.findReferenceOrRenameEntries(l,h,We,k,ie,H,ue)}function Et(k,ie){return D(),Ms.findReferencedSymbols(l,h,l.getSourceFiles(),N(k),ie)}function be(k){return D(),Ms.Core.getReferencesForFileName(k,l,l.getSourceFiles()).map(Ms.toReferenceEntry)}function ze(k,ie,H,ue=!1,We=!1){D();let Ne=H?[N(H)]:l.getSourceFiles();return aRe(Ne,l.getTypeChecker(),h,k,ie,ue,We)}function tt(k,ie,H){D();let ue=N(k),We=e.getCustomTransformers&&e.getCustomTransformers();return Yle(l,ue,!!ie,h,We,H)}function Wt(k,ie,{triggerReason:H}=Cf){D();let ue=N(k);return HO.getSignatureHelpItems(l,ue,ie,H,h)}function _t(k){return s.getCurrentSourceFile(k)}function Je(k,ie,H){let ue=s.getCurrentSourceFile(k),We=Wu(ue,ie);if(We===ue)return;switch(We.kind){case 211:case 166:case 11:case 97:case 112:case 106:case 108:case 110:case 197:case 80:break;default:return}let Ne=We;for(;;)if(aD(Ne)||Yce(Ne))Ne=Ne.parent;else if(Aq(Ne))if(Ne.parent.parent.kind===267&&Ne.parent.parent.body===Ne.parent)Ne=Ne.parent.parent.name;else break;else break;return dc(Ne.getStart(),We.getEnd())}function pt(k,ie){let H=s.getCurrentSourceFile(k);return TY.spanInSourceFileAtLocation(H,ie)}function Zt(k){return dRe(s.getCurrentSourceFile(k),h)}function en(k){return uRe(s.getCurrentSourceFile(k),h)}function Dn(k,ie,H){return D(),(H||"original")==="2020"?NDe(l,h,N(k),ie):zde(l.getTypeChecker(),h,N(k),l.getClassifiableNames(),ie)}function Kn(k,ie,H){return D(),(H||"original")==="original"?IX(l.getTypeChecker(),h,N(k),l.getClassifiableNames(),ie):Zue(l,h,N(k),ie)}function pn(k,ie){return Bde(h,s.getCurrentSourceFile(k),ie)}function Xt(k,ie){return xX(h,s.getCurrentSourceFile(k),ie)}function Kt(k){let ie=s.getCurrentSourceFile(k);return vQ.collectElements(ie,h)}let hi=new Map(Object.entries({19:20,21:22,23:24,32:30}));hi.forEach((k,ie)=>hi.set(k.toString(),Number(ie)));function uo(k,ie){let H=s.getCurrentSourceFile(k),ue=lD(H,ie),We=ue.getStart(H)===ie?hi.get(ue.kind.toString()):void 0,Ne=We&&_s(ue.parent,We,H);return Ne?[Iu(ue,H),Iu(Ne,H)].sort((It,Dt)=>It.start-Dt.start):Xe}function Li(k,ie,H){let ue=Hs(),We=DO(H),Ne=s.getCurrentSourceFile(k);y("getIndentationAtPosition: getCurrentSourceFile: "+(Hs()-ue)),ue=Hs();let It=wc.SmartIndenter.getIndentation(ie,Ne,We);return y("getIndentationAtPosition: computeIndentation : "+(Hs()-ue)),It}function So(k,ie,H,ue){let We=s.getCurrentSourceFile(k);return wc.formatSelection(ie,H,We,wc.getFormatContext(DO(ue),e))}function Qn(k,ie){return wc.formatDocument(s.getCurrentSourceFile(k),wc.getFormatContext(DO(ie),e))}function Ur(k,ie,H,ue){let We=s.getCurrentSourceFile(k),Ne=wc.getFormatContext(DO(ue),e);if(!jy(We,ie))switch(H){case"{":return wc.formatOnOpeningCurly(ie,We,Ne);case"}":return wc.formatOnClosingCurly(ie,We,Ne);case";":return wc.formatOnSemicolon(ie,We,Ne);case` -`:return wc.formatOnEnter(ie,We,Ne)}return[]}function Er(k,ie,H,ue,We,Ne=Cf){D();let It=N(k),Dt=dc(ie,H),Ut=wc.getFormatContext(We,e);return va(m0(ue,Ty,Zs),En=>(h.throwIfCancellationRequested(),Od.getFixes({errorCode:En,sourceFile:It,span:Dt,program:l,host:e,cancellationToken:h,formatContext:Ut,preferences:Ne})))}function on(k,ie,H,ue=Cf){D(),x.assert(k.type==="file");let We=N(k.fileName),Ne=wc.getFormatContext(H,e);return Od.getAllFixes({fixId:ie,sourceFile:We,program:l,host:e,cancellationToken:h,formatContext:Ne,preferences:ue})}function Ye(k,ie,H=Cf){D(),x.assert(k.type==="file");let ue=N(k.fileName),We=wc.getFormatContext(ie,e),Ne=k.mode??(k.skipDestructiveCodeActions?"SortAndCombine":"All");return Rm.organizeImports(ue,We,e,l,H,Ne)}function Ot(k,ie,H,ue=Cf){return jde(j(),k,ie,e,wc.getFormatContext(H,e),ue,A)}function In(k,ie){let H=typeof k=="string"?ie:k;return To(H)?Promise.all(H.map(ue=>si(ue))):si(H)}function si(k){let ie=H=>tl(H,m,S);return x.assertEqual(k.type,"install package"),e.installPackage?e.installPackage({fileName:ie(k.file),packageName:k.packageName}):Promise.reject("Host does not implement `installPackage`")}function yi(k,ie,H,ue){let We=ue?wc.getFormatContext(ue,e).options:void 0;return PE.getDocCommentTemplateAtPosition(Ky(e,We),s.getCurrentSourceFile(k),ie,H)}function $i(k,ie,H){if(H===60)return!1;let ue=s.getCurrentSourceFile(k);if(y1(ue,ie))return!1;if(rde(ue,ie))return H===123;if(Nq(ue,ie))return!1;switch(H){case 39:case 34:case 96:return!jy(ue,ie)}return!0}function Io(k,ie){let H=s.getCurrentSourceFile(k),ue=Tc(ie,H);if(!ue)return;let We=ue.kind===32&&P_(ue.parent)?ue.parent.parent:UI(ue)&&ig(ue.parent)?ue.parent:void 0;if(We&<(We))return{newText:``};let Ne=ue.kind===32&&i1(ue.parent)?ue.parent.parent:UI(ue)&&J0(ue.parent)?ue.parent:void 0;if(Ne&&Rt(Ne))return{newText:""}}function ua(k,ie){let H=s.getCurrentSourceFile(k),ue=Tc(ie,H);if(!ue||ue.parent.kind===312)return;let We="[a-zA-Z0-9:\\-\\._$]*";if(J0(ue.parent.parent)){let Ne=ue.parent.parent.openingFragment,It=ue.parent.parent.closingFragment;if(Vx(Ne)||Vx(It))return;let Dt=Ne.getStart(H)+1,Ut=It.getStart(H)+2;return ie!==Dt&&ie!==Ut?void 0:{ranges:[{start:Dt,length:0},{start:Ut,length:0}],wordPattern:We}}else{let Ne=Fn(ue.parent,xi=>!!(P_(xi)||K0(xi)));if(!Ne)return;x.assert(P_(Ne)||K0(Ne),"tag should be opening or closing element");let It=Ne.parent.openingElement,Dt=Ne.parent.closingElement,Ut=It.tagName.getStart(H),En=It.tagName.end,wn=Dt.tagName.getStart(H),Bn=Dt.tagName.end;return Ut===It.getStart(H)||wn===Dt.getStart(H)||En===It.getEnd()||Bn===Dt.getEnd()||!(Ut<=ie&&ie<=En||wn<=ie&&ie<=Bn)||It.tagName.getText(H)!==Dt.tagName.getText(H)?void 0:{ranges:[{start:Ut,length:En-Ut},{start:wn,length:Bn-wn}],wordPattern:We}}}function Ba(k,ie){return{lineStarts:k.getLineStarts(),firstLine:k.getLineAndCharacterOfPosition(ie.pos).line,lastLine:k.getLineAndCharacterOfPosition(ie.end).line}}function vn(k,ie,H){let ue=s.getCurrentSourceFile(k),We=[],{lineStarts:Ne,firstLine:It,lastLine:Dt}=Ba(ue,ie),Ut=H||!1,En=Number.MAX_VALUE,wn=new Map,Bn=new RegExp(/\S/),gi=Vz(ue,Ne[It]),xi=gi?"{/*":"//";for(let er=It;er<=Dt;er++){let Fr=ue.text.substring(Ne[er],ue.getLineEndOfPosition(Ne[er])),go=Bn.exec(Fr);go&&(En=Math.min(En,go.index),wn.set(er.toString(),go.index),Fr.substr(go.index,xi.length)!==xi&&(Ut=H===void 0||H))}for(let er=It;er<=Dt;er++){if(It!==Dt&&Ne[er]===ie.end)continue;let Fr=wn.get(er.toString());Fr!==void 0&&(gi?We.push(...kn(k,{pos:Ne[er]+En,end:ue.getLineEndOfPosition(Ne[er])},Ut,gi)):Ut?We.push({newText:xi,span:{length:0,start:Ne[er]+En}}):ue.text.substr(Ne[er]+Fr,xi.length)===xi&&We.push({newText:"",span:{length:xi.length,start:Ne[er]+Fr}}))}return We}function kn(k,ie,H,ue){var We;let Ne=s.getCurrentSourceFile(k),It=[],{text:Dt}=Ne,Ut=!1,En=H||!1,wn=[],{pos:Bn}=ie,gi=ue!==void 0?ue:Vz(Ne,Bn),xi=gi?"{/*":"/*",er=gi?"*/}":"*/",Fr=gi?"\\{\\/\\*":"\\/\\*",go=gi?"\\*\\/\\}":"\\*\\/";for(;Bn<=ie.end;){let Pi=Dt.substr(Bn,xi.length)===xi?xi.length:0,Ri=jy(Ne,Bn+Pi);if(Ri)gi&&(Ri.pos--,Ri.end++),wn.push(Ri.pos),Ri.kind===3&&wn.push(Ri.end),Ut=!0,Bn=Ri.end+1;else{let Kr=Dt.substring(Bn,ie.end).search(`(${Fr})|(${go})`);En=H!==void 0?H:En||!_de(Dt,Bn,Kr===-1?ie.end:Bn+Kr),Bn=Kr===-1?ie.end+1:Bn+Kr+er.length}}if(En||!Ut){((We=jy(Ne,ie.pos))==null?void 0:We.kind)!==2&&vv(wn,ie.pos,Zs),vv(wn,ie.end,Zs);let Pi=wn[0];Dt.substr(Pi,xi.length)!==xi&&It.push({newText:xi,span:{length:0,start:Pi}});for(let Ri=1;Ri0?Pi-er.length:0,Kr=Dt.substr(Ri,er.length)===er?er.length:0;It.push({newText:"",span:{length:xi.length,start:Pi-Kr}})}return It}function Be(k,ie){let H=s.getCurrentSourceFile(k),{firstLine:ue,lastLine:We}=Ba(H,ie);return ue===We&&ie.pos!==ie.end?kn(k,ie,!0):vn(k,ie,!0)}function ct(k,ie){let H=s.getCurrentSourceFile(k),ue=[],{pos:We}=ie,{end:Ne}=ie;We===Ne&&(Ne+=Vz(H,We)?2:1);for(let It=We;It<=Ne;It++){let Dt=jy(H,It);if(Dt){switch(Dt.kind){case 2:ue.push(...vn(k,{end:Dt.end,pos:Dt.pos+1},!1));break;case 3:ue.push(...kn(k,{end:Dt.end,pos:Dt.pos+1},!1))}It=Dt.end+1}}return ue}function lt({openingElement:k,closingElement:ie,parent:H}){return!bE(k.tagName,ie.tagName)||ig(H)&&bE(k.tagName,H.openingElement.tagName)&<(H)}function Rt({closingFragment:k,parent:ie}){return!!(k.flags&262144)||J0(ie)&&Rt(ie)}function ae(k,ie,H){let ue=s.getCurrentSourceFile(k),We=wc.getRangeOfEnclosingComment(ue,ie);return We&&(!H||We.kind===3)?eb(We):void 0}function ke(k,ie){D();let H=N(k);h.throwIfCancellationRequested();let ue=H.text,We=[];if(ie.length>0&&!Ut(H.fileName)){let En=It(),wn;for(;wn=En.exec(ue);){h.throwIfCancellationRequested();let Bn=3;x.assert(wn.length===ie.length+Bn);let gi=wn[1],xi=wn.index+gi.length;if(!jy(H,xi))continue;let er;for(let go=0;go"("+Ne(Ri.text)+")").join("|")+")",er=/(?:$|\*\/)/.source,Fr=/(?:.*?)/.source,go="("+xi+Fr+")",Pi=gi+go+er;return new RegExp(Pi,"gim")}function Dt(En){return En>=97&&En<=122||En>=65&&En<=90||En>=48&&En<=57}function Ut(En){return En.includes("/node_modules/")}}function st(k,ie,H){return D(),vB.getRenameInfo(l,N(k),ie,H||{})}function G(k,ie,H,ue,We,Ne){let[It,Dt]=typeof ie=="number"?[ie,void 0]:[ie.pos,ie.end];return{file:k,startPosition:It,endPosition:Dt,program:j(),host:e,formatContext:wc.getFormatContext(ue,e),cancellationToken:h,preferences:H,triggerReason:We,kind:Ne}}function et(k,ie,H){return{file:k,program:j(),host:e,span:ie,preferences:H,cancellationToken:h}}function Tt(k,ie){return SQ.getSmartSelectionRange(ie,s.getCurrentSourceFile(k))}function He(k,ie,H=Cf,ue,We,Ne){D();let It=N(k);return T1.getApplicableRefactors(G(It,ie,H,Cf,ue,We),Ne)}function ut(k,ie,H=Cf){D();let ue=N(k),We=x.checkDefined(l.getSourceFiles()),Ne=VN(k),It=SO(G(ue,ie,H,Cf)),Dt=Nue(It?.all),Ut=to(We,En=>{let wn=VN(En.fileName);return!l?.isSourceFileFromExternalLibrary(ue)&&!(ue===N(En.fileName)||Ne===".ts"&&wn===".d.ts"||Ne===".d.ts"&&ao(nc(En.fileName),"lib.")&&wn===".d.ts")&&(Ne===wn||(Ne===".tsx"&&wn===".ts"||Ne===".jsx"&&wn===".js")&&!Dt)?En.fileName:void 0});return{newFileName:Cue(ue,l,e,It),files:Ut}}function Ft(k,ie,H,ue,We,Ne=Cf,It){D();let Dt=N(k);return T1.getEditsForRefactor(G(Dt,H,Ne,ie),ue,We,It)}function hn(k,ie){return ie===0?{line:0,character:0}:A.toLineColumnOffset(k,ie)}function dn(k,ie){D();let H=A1.resolveCallHierarchyDeclaration(l,Wu(N(k),ie));return H&&uX(H,ue=>A1.createCallHierarchyItem(l,ue))}function un(k,ie){D();let H=N(k),ue=pX(A1.resolveCallHierarchyDeclaration(l,ie===0?H:Wu(H,ie)));return ue?A1.getIncomingCalls(l,ue,h):[]}function U(k,ie){D();let H=N(k),ue=pX(A1.resolveCallHierarchyDeclaration(l,ie===0?H:Wu(H,ie)));return ue?A1.getOutgoingCalls(l,ue):[]}function Me(k,ie,H=Cf){D();let ue=N(k);return _Q.provideInlayHints(et(ue,ie,H))}let Nt={dispose:ce,cleanupSemanticCache:B,getSyntacticDiagnostics:z,getSemanticDiagnostics:Z,getSuggestionDiagnostics:me,getCompilerOptionsDiagnostics:ge,getSyntacticClassifications:pn,getSemanticClassifications:Dn,getEncodedSyntacticClassifications:Xt,getEncodedSemanticClassifications:Kn,getCompletionsAtPosition:q,getCompletionEntryDetails:J,getCompletionEntrySymbol:re,getSignatureHelpItems:Wt,getQuickInfoAtPosition:pe,getDefinitionAtPosition:ne,getDefinitionAndBoundSpan:he,getImplementationAtPosition:Ge,getTypeDefinitionAtPosition:Ce,getReferencesAtPosition:De,findReferences:Et,getFileReferences:be,getDocumentHighlights:ve,getNameOrDottedNameSpan:Je,getBreakpointStatementAtPosition:pt,getNavigateToItems:ze,getRenameInfo:st,getSmartSelectionRange:Tt,findRenameLocations:Ae,getNavigationBarItems:Zt,getNavigationTree:en,getOutliningSpans:Kt,getTodoComments:ke,getBraceMatchingAtPosition:uo,getIndentationAtPosition:Li,getFormattingEditsForRange:So,getFormattingEditsForDocument:Qn,getFormattingEditsAfterKeystroke:Ur,getDocCommentTemplateAtPosition:yi,isValidBraceCompletionAtPosition:$i,getJsxClosingTagAtPosition:Io,getLinkedEditingRangeAtPosition:ua,getSpanOfEnclosingComment:ae,getCodeFixesAtPosition:Er,getCombinedCodeFix:on,applyCodeActionCommand:In,organizeImports:Ye,getEditsForFileRename:Ot,getEmitOutput:tt,getNonBoundSourceFile:_t,getProgram:j,getCurrentProgram:()=>l,getAutoImportProvider:K,updateIsDefinitionOfReferencedSymbols:Y,getApplicableRefactors:He,getEditsForRefactor:Ft,getMoveToRefactoringFileSuggestions:ut,toLineColumnOffset:hn,getSourceMapper:()=>A,clearSourceMapperCache:()=>A.clearCache(),prepareCallHierarchy:dn,provideCallHierarchyIncomingCalls:un,provideCallHierarchyOutgoingCalls:U,toggleLineComment:vn,toggleMultilineComment:kn,commentSelection:Be,uncommentSelection:ct,provideInlayHints:Me,getSupportedCodeFixes:_Y};switch(o){case 0:break;case 1:lpe.forEach(k=>Nt[k]=()=>{throw new Error(`LanguageService Operation: ${k} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:JDe.forEach(k=>Nt[k]=()=>{throw new Error(`LanguageService Operation: ${k} not allowed in LanguageServiceMode.Syntactic`)});break;default:x.assertNever(o)}return Nt}function gY(e){return e.nameTable||dqe(e),e.nameTable}function dqe(e){let t=e.nameTable=new Map;e.forEachChild(function r(i){if(Fe(i)&&!Sq(i)&&i.escapedText||$p(i)&&uqe(i)){let o=TN(i);t.set(o,t.get(o)===void 0?i.pos:-1)}else if(Ki(i)){let o=i.escapedText;t.set(o,t.get(o)===void 0?i.pos:-1)}if(Go(i,r),kp(i))for(let o of i.jsDoc)Go(o,r)})}function uqe(e){return kg(e)||e.parent.kind===283||mqe(e)||j2(e)}function NO(e){let t=pqe(e);return t&&(Ma(t.parent)||q0(t.parent))?t:void 0}function pqe(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===167)return WV(e.parent.parent)?e.parent.parent:void 0;case 80:return WV(e.parent)&&(e.parent.parent.kind===210||e.parent.parent.kind===292)&&e.parent.name===e?e.parent:void 0}}function fqe(e,t){let r=NO(e);if(r){let i=t.getContextualType(r.parent),o=i&&J7(r,t,i,!1);if(o&&o.length===1)return Va(o)}return t.getSymbolAtLocation(e)}function J7(e,t,r,i){let o=nO(e.name);if(!o)return Xe;if(!r.isUnion()){let d=r.getProperty(o);return d?[d]:Xe}let s=Ma(e.parent)||q0(e.parent)?jr(r.types,d=>!t.isTypeInvalidDueToUnionDiscriminant(d,e.parent)):r.types,l=to(s,d=>d.getProperty(o));if(i&&(l.length===0||l.length===r.types.length)){let d=r.getProperty(o);if(d)return[d]}return!s.length&&!l.length?to(r.types,d=>d.getProperty(o)):m0(l,Ty)}function mqe(e){return e&&e.parent&&e.parent.kind===212&&e.parent.argumentExpression===e}function ope(e){if(hd)return Yr(oi(ma(hd.getExecutingFilePath())),HL(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var ape,yY,vY,zDe,spe,bY,EY,BDe,GDe,VDe,jDe,UDe,HDe,KDe,SY,lpe,JDe,_qe=bt({"src/services/services.ts"(){"use strict";ai(),cRe(),NRe(),Sh(),zxe(),LDe(),ape="0.8",yY=class{constructor(e,t,r){this.pos=t,this.end=r,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}assertHasRealPosition(e){x.assert(!Km(this.pos)&&!Km(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return Gn(this)}getStart(e,t){return this.assertHasRealPosition(),oE(this,e,t)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,t){return this.getChildren(t)[e]}getChildren(e){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=sqe(this,e))}getFirstToken(e){this.assertHasRealPosition();let t=this.getChildren(e);if(!t.length)return;let r=Vr(t,i=>i.kind<316||i.kind>357);return r.kind<166?r:r.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();let t=this.getChildren(e),r=$s(t);if(r)return r.kind<166?r:r.getLastToken(e)}forEachChild(e,t){return Go(this,e,t)}},vY=class{constructor(e,t){this.pos=e,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}getSourceFile(){return Gn(this)}getStart(e,t){return oE(this,e,t)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(e){return this.getEnd()-this.getStart(e)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(e){return this.getStart(e)-this.pos}getFullText(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(e){return this.getChildren()[e]}getChildren(){return this.kind===1&&this.jsDoc||Xe}getFirstToken(){}getLastToken(){}forEachChild(){}},zDe=class{constructor(e,t){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=t}getFlags(){return this.flags}get name(){return vl(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=Xe,!this.declarations&&ch(this)&&this.links.target&&ch(this.links.target)&&this.links.target.links.tupleLabelDeclaration){let t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=U7([t],e)}else this.documentationComment=U7(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(Pv(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=U7(jr(this.declarations,Pv),t)),Nn(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(Cy(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=U7(jr(this.declarations,Cy),t)),Nn(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return this.tags===void 0&&(this.tags=mY(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(Pv(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=mY(jr(this.declarations,Pv),t)),Nn(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(Cy(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=mY(jr(this.declarations,Cy),t)),Nn(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},spe=class extends vY{constructor(e,t,r){super(t,r),this.kind=e}},bY=class extends vY{constructor(e,t,r){super(t,r),this.kind=80}get text(){return gr(this)}},bY.prototype.kind=80,EY=class extends vY{constructor(e,t,r){super(t,r),this.kind=81}get text(){return gr(this)}},EY.prototype.kind=81,BDe=class{constructor(e,t){this.checker=e,this.flags=t}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(e){return this.checker.getPropertyOfType(this,e)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return!!(this.flags&1048576)}isIntersection(){return!!(this.flags&2097152)}isUnionOrIntersection(){return!!(this.flags&3145728)}isLiteral(){return!!(this.flags&2432)}isStringLiteral(){return!!(this.flags&128)}isNumberLiteral(){return!!(this.flags&256)}isTypeParameter(){return!!(this.flags&262144)}isClassOrInterface(){return!!(Lr(this)&3)}isClass(){return!!(Lr(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(Lr(this)&4)return this.checker.getTypeArguments(this)}},GDe=class{constructor(e,t){this.checker=e,this.flags=t}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){let t=this.checker.getParameterType(this,e);if(t.isIndexType()&&XN(t.type)){let r=t.type.getConstraint();if(r)return this.checker.getIndexType(r)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=U7(pI(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=mY(pI(this.declaration),this.checker))}},VDe=class extends yY{constructor(e,t,r){super(e,t,r),this.kind=312}update(e,t){return DH(this,e,t)}getLineAndCharacterOfPosition(e){return hs(this,e)}getLineStarts(){return Dg(this)}getPositionOfLineAndCharacter(e,t,r){return XW(Dg(this),e,t,this.text,r)}getLineEndOfPosition(e){let{line:t}=this.getLineAndCharacterOfPosition(e),r=this.getLineStarts(),i;t+1>=r.length&&(i=this.getEnd()),i||(i=r[t+1]-1);let o=this.getFullText();return o[i]===` -`&&o[i-1]==="\r"?i-1:i}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=qp();return this.forEachChild(o),e;function t(s){let l=i(s);l&&e.add(l,s)}function r(s){let l=e.get(s);return l||e.set(s,l=[]),l}function i(s){let l=eF(s);return l&&(Ya(l)&&kr(l.expression)?l.expression.name.text:rc(l)?nO(l):void 0)}function o(s){switch(s.kind){case 262:case 218:case 174:case 173:let l=s,d=i(l);if(d){let m=r(d),y=$s(m);y&&l.parent===y.parent&&l.symbol===y.symbol?l.body&&!y.body&&(m[m.length-1]=l):m.push(l)}Go(s,o);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(s),Go(s,o);break;case 169:if(!$r(s,31))break;case 260:case 208:{let m=s;if(Qo(m.name)){Go(m.name,o);break}m.initializer&&o(m.initializer)}case 306:case 172:case 171:t(s);break;case 278:let p=s;p.exportClause&&(xf(p.exportClause)?gn(p.exportClause.elements,o):o(p.exportClause.name));break;case 272:let h=s.importClause;h&&(h.name&&t(h.name),h.namedBindings&&(h.namedBindings.kind===274?t(h.namedBindings):gn(h.namedBindings.elements,o)));break;case 226:zl(s)!==0&&t(s);default:Go(s,o)}}}},jDe=class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}getLineAndCharacterOfPosition(e){return hs(this,e)}},UDe=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,r,i,o,s,l,d,p;let h=this.host.getScriptSnapshot(e);if(!h)throw new Error("Could not find file: '"+e+"'.");let m=eX(e,this.host),y=this.host.getScriptVersion(e),E;if(this.currentFileName!==e){let S={languageVersion:99,impliedNodeFormat:Lw(tl(e,this.host.getCurrentDirectory(),((i=(r=(t=this.host).getCompilerHost)==null?void 0:r.call(t))==null?void 0:i.getCanonicalFileName)||My(this.host)),(p=(d=(l=(s=(o=this.host).getCompilerHost)==null?void 0:s.call(o))==null?void 0:l.getModuleResolutionCache)==null?void 0:d.call(l))==null?void 0:p.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:ok(this.host.getCompilationSettings()),jsDocParsingMode:0};E=K7(e,h,S,y,!0,m)}else if(this.currentFileVersion!==y){let S=h.getChangeRange(this.currentFileScriptSnapshot);E=hY(this.currentSourceFile,h,y,S)}return E&&(this.currentFileVersion=y,this.currentFileName=e,this.currentFileScriptSnapshot=h,this.currentSourceFile=E),this.currentSourceFile}},HDe={isCancellationRequested:Vm,throwIfCancellationRequested:qa},KDe=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=rr)==null||e.instant(rr.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new Rx}},SY=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){let e=Hs();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=rr)==null||e.instant(rr.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new Rx}},lpe=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],JDe=[...lpe,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],ooe(cqe())}});function qDe(e,t,r){let i=[];r=WX(r,i);let o=To(e)?e:[e],s=Aw(void 0,void 0,L,r,o,t,!0);return s.diagnostics=Eo(s.diagnostics,i),s}var hqe=bt({"src/services/transform.ts"(){"use strict";ai()}});function gqe(e,t){if(e.isDeclarationFile)return;let r=so(e,t),i=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(r.getStart(e)).line>i){let y=Tc(r.pos,e);if(!y||e.getLineAndCharacterOfPosition(y.getEnd()).line!==i)return;r=y}if(r.flags&33554432)return;return m(r);function o(y,E){let S=GT(y)?sI(y.modifiers,bd):void 0,A=S?Na(e.text,S.end):y.getStart(e);return dc(A,(E||y).getEnd())}function s(y,E){return o(y,aS(E,E.parent,e))}function l(y,E){return y&&i===e.getLineAndCharacterOfPosition(y.getStart(e)).line?m(y):m(E)}function d(y,E,S){if(y){let A=y.indexOf(E);if(A>=0){let N=A,D=A+1;for(;N>0&&S(y[N-1]);)N--;for(;D0)return m(he.declarations[0])}else return m(ne.initializer)}function B(ne){if(ne.initializer)return Y(ne);if(ne.condition)return o(ne.condition);if(ne.incrementor)return o(ne.incrementor)}function ce(ne){let he=gn(ne.elements,Ce=>Ce.kind!==232?Ce:void 0);return he?m(he):ne.parent.kind===208?o(ne.parent):E(ne.parent)}function z(ne){x.assert(ne.kind!==207&&ne.kind!==206);let he=ne.kind===209?ne.elements:ne.properties,Ce=gn(he,Ge=>Ge.kind!==232?Ge:void 0);return Ce?m(Ce):o(ne.parent.kind===226?ne.parent:ne)}function Z(ne){switch(ne.parent.kind){case 266:let he=ne.parent;return l(Tc(ne.pos,e,ne.parent),he.members.length?he.members[0]:he.getLastToken(e));case 263:let Ce=ne.parent;return l(Tc(ne.pos,e,ne.parent),Ce.members.length?Ce.members[0]:Ce.getLastToken(e));case 269:return l(ne.parent.parent,ne.parent.clauses[0])}return m(ne.parent)}function me(ne){switch(ne.parent.kind){case 268:if(Vg(ne.parent.parent)!==1)return;case 266:case 263:return o(ne);case 241:if(x0(ne.parent))return o(ne);case 299:return m($s(ne.parent.statements));case 269:let he=ne.parent,Ce=$s(he.clauses);return Ce?m($s(Ce.statements)):void 0;case 206:let Ge=ne.parent;return m($s(Ge.elements)||Ge);default:if(Uy(ne.parent)){let ve=ne.parent;return o($s(ve.properties)||ve)}return m(ne.parent)}}function ge(ne){switch(ne.parent.kind){case 207:let he=ne.parent;return o($s(he.elements)||he);default:if(Uy(ne.parent)){let Ce=ne.parent;return o($s(Ce.elements)||Ce)}return m(ne.parent)}}function q(ne){return ne.parent.kind===246||ne.parent.kind===213||ne.parent.kind===214?p(ne):ne.parent.kind===217?h(ne):m(ne.parent)}function J(ne){switch(ne.parent.kind){case 218:case 262:case 219:case 174:case 173:case 177:case 178:case 176:case 247:case 246:case 248:case 250:case 213:case 214:case 217:return p(ne);default:return m(ne.parent)}}function re(ne){return $o(ne.parent)||ne.parent.kind===303||ne.parent.kind===169?p(ne):m(ne.parent)}function pe(ne){return ne.parent.kind===216?h(ne):m(ne.parent)}function xe(ne){return ne.parent.kind===246?s(ne,ne.parent.expression):m(ne.parent)}function fe(ne){return ne.parent.kind===250?h(ne):m(ne.parent)}}}var yqe=bt({"src/services/breakpoints.ts"(){"use strict";ai()}}),TY={};xa(TY,{spanInSourceFileAtLocation:()=>gqe});var vqe=bt({"src/services/_namespaces/ts.BreakpointResolver.ts"(){"use strict";yqe()}});function bqe(e){return(Ps(e)||Zc(e))&&iu(e)}function XDe(e){return Uo(e)||wi(e)}function PO(e){return(Ps(e)||Os(e)||Zc(e))&&XDe(e.parent)&&e===e.parent.initializer&&Fe(e.parent.name)&&(!!(Ry(e.parent)&2)||Uo(e.parent))}function YDe(e){return Yi(e)||ql(e)||Ec(e)||Ps(e)||Sc(e)||Zc(e)||Al(e)||Ul(e)||_h(e)||Qp(e)||hp(e)}function bD(e){return Yi(e)||ql(e)&&Fe(e.name)||Ec(e)||Sc(e)||Al(e)||Ul(e)||_h(e)||Qp(e)||hp(e)||bqe(e)||PO(e)}function $De(e){return Yi(e)?e:iu(e)?e.name:PO(e)?e.parent.name:x.checkDefined(e.modifiers&&Vr(e.modifiers,QDe))}function QDe(e){return e.kind===90}function ZDe(e,t){let r=$De(t);return r&&e.getSymbolAtLocation(r)}function Eqe(e,t){if(Yi(t))return{text:t.fileName,pos:0,end:0};if((Ec(t)||Sc(t))&&!iu(t)){let o=t.modifiers&&Vr(t.modifiers,QDe);if(o)return{text:"default",pos:o.getStart(),end:o.getEnd()}}if(Al(t)){let o=t.getSourceFile(),s=Na(o.text,R_(t).pos),l=s+6,d=e.getTypeChecker(),p=d.getSymbolAtLocation(t.parent);return{text:`${p?`${d.symbolToString(p,t.parent)} `:""}static {}`,pos:s,end:l}}let r=PO(t)?t.parent.name:x.checkDefined(Po(t),"Expected call hierarchy item to have a name"),i=Fe(r)?gr(r):$p(r)?r.text:Ya(r)&&$p(r.expression)?r.expression.text:void 0;if(i===void 0){let o=e.getTypeChecker(),s=o.getSymbolAtLocation(r);s&&(i=o.symbolToString(s,t))}if(i===void 0){let o=xw();i=cN(s=>o.writeNode(4,t,t.getSourceFile(),s))}return{text:i,pos:r.getStart(),end:r.getEnd()}}function Sqe(e){var t,r,i,o;if(PO(e))return Uo(e.parent)&&ci(e.parent.parent)?Zc(e.parent.parent)?(t=tF(e.parent.parent))==null?void 0:t.getText():(r=e.parent.parent.name)==null?void 0:r.getText():N_(e.parent.parent.parent.parent)&&Fe(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 177:case 178:case 174:return e.parent.kind===210?(i=tF(e.parent))==null?void 0:i.getText():(o=Po(e.parent))==null?void 0:o.getText();case 262:case 263:case 267:if(N_(e.parent)&&Fe(e.parent.parent.name))return e.parent.parent.name.getText()}}function eCe(e,t){if(t.body)return t;if(Pl(t))return Zh(t.parent);if(Ec(t)||Ul(t)){let r=ZDe(e,t);return r&&r.valueDeclaration&&ws(r.valueDeclaration)&&r.valueDeclaration.body?r.valueDeclaration:void 0}return t}function tCe(e,t){let r=ZDe(e,t),i;if(r&&r.declarations){let o=EL(r.declarations),s=mn(r.declarations,p=>({file:p.getSourceFile().fileName,pos:p.pos}));o.sort((p,h)=>Vd(s[p].file,s[h].file)||s[p].pos-s[h].pos);let l=mn(o,p=>r.declarations[p]),d;for(let p of l)bD(p)&&((!d||d.parent!==p.parent||d.end!==p.pos)&&(i=Tn(i,p)),d=p)}return i}function AY(e,t){return Al(t)?t:ws(t)?eCe(e,t)??tCe(e,t)??t:tCe(e,t)??t}function nCe(e,t){let r=e.getTypeChecker(),i=!1;for(;;){if(bD(t))return AY(r,t);if(YDe(t)){let o=Fn(t,bD);return o&&AY(r,o)}if(kg(t)){if(bD(t.parent))return AY(r,t.parent);if(YDe(t.parent)){let o=Fn(t.parent,bD);return o&&AY(r,o)}return XDe(t.parent)&&t.parent.initializer&&PO(t.parent.initializer)?t.parent.initializer:void 0}if(Pl(t))return bD(t.parent)?t.parent:void 0;if(t.kind===126&&Al(t.parent)){t=t.parent;continue}if(wi(t)&&t.initializer&&PO(t.initializer))return t.initializer;if(!i){let o=r.getSymbolAtLocation(t);if(o&&(o.flags&2097152&&(o=r.getAliasedSymbol(o)),o.valueDeclaration)){i=!0,t=o.valueDeclaration;continue}}return}}function cpe(e,t){let r=t.getSourceFile(),i=Eqe(e,t),o=Sqe(t),s=oS(t),l=XP(t),d=dc(Na(r.text,t.getFullStart(),!1,!0),t.getEnd()),p=dc(i.pos,i.end);return{file:r.fileName,kind:s,kindModifiers:l,name:i.text,containerName:o,span:d,selectionSpan:p}}function Tqe(e){return e!==void 0}function Aqe(e){if(e.kind===Ms.EntryKind.Node){let{node:t}=e;if(yq(t,!0,!0)||Kce(t,!0,!0)||Jce(t,!0,!0)||qce(t,!0,!0)||aD(t)||Tq(t)){let r=t.getSourceFile();return{declaration:Fn(t,bD)||r,range:Fq(t,r)}}}}function rCe(e){return rs(e.declaration)}function Iqe(e,t){return{from:e,fromSpans:t}}function xqe(e,t){return Iqe(cpe(e,t[0].declaration),mn(t,r=>eb(r.range)))}function Rqe(e,t,r){if(Yi(t)||ql(t)||Al(t))return[];let i=$De(t),o=jr(Ms.findReferenceOrRenameEntries(e,r,e.getSourceFiles(),i,0,{use:Ms.FindReferencesUse.References},Aqe),Tqe);return o?BC(o,rCe,s=>xqe(e,s)):[]}function Dqe(e,t){function r(o){let s=U0(o)?o.tag:au(o)?o.tagName:Ns(o)||Al(o)?o:o.expression,l=nCe(e,s);if(l){let d=Fq(s,o.getSourceFile());if(To(l))for(let p of l)t.push({declaration:p,range:d});else t.push({declaration:l,range:d})}}function i(o){if(o&&!(o.flags&33554432)){if(bD(o)){if(ci(o))for(let s of o.members)s.name&&Ya(s.name)&&i(s.name.expression);return}switch(o.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:r(o);return;case 216:case 234:i(o.expression);return;case 260:case 169:i(o.name),i(o.initializer);return;case 213:r(o),i(o.expression),gn(o.arguments,i);return;case 214:r(o),i(o.expression),gn(o.arguments,i);return;case 215:r(o),i(o.tag),i(o.template);return;case 286:case 285:r(o),i(o.tagName),i(o.attributes);return;case 170:r(o),i(o.expression);return;case 211:case 212:r(o),Go(o,i);break;case 238:i(o.expression);return}qh(o)||Go(o,i)}}return i}function Cqe(e,t){gn(e.statements,t)}function Nqe(e,t){!$r(e,128)&&e.body&&N_(e.body)&&gn(e.body.statements,t)}function Pqe(e,t,r){let i=eCe(e,t);i&&(gn(i.parameters,r),r(i.body))}function Mqe(e,t){t(e.body)}function Lqe(e,t){gn(e.modifiers,t);let r=N0(e);r&&t(r.expression);for(let i of e.members)Am(i)&&gn(i.modifiers,t),Uo(i)?t(i.initializer):Pl(i)&&i.body?(gn(i.parameters,t),t(i.body)):Al(i)&&t(i)}function kqe(e,t){let r=[],i=Dqe(e,r);switch(t.kind){case 312:Cqe(t,i);break;case 267:Nqe(t,i);break;case 262:case 218:case 219:case 174:case 177:case 178:Pqe(e.getTypeChecker(),t,i);break;case 263:case 231:Lqe(t,i);break;case 175:Mqe(t,i);break;default:x.assertNever(t)}return r}function wqe(e,t){return{to:e,fromSpans:t}}function Oqe(e,t){return wqe(cpe(e,t[0].declaration),mn(t,r=>eb(r.range)))}function Wqe(e,t){return t.flags&33554432||_h(t)?[]:BC(kqe(e,t),rCe,r=>Oqe(e,r))}var Fqe=bt({"src/services/callHierarchy.ts"(){"use strict";ai()}}),A1={};xa(A1,{createCallHierarchyItem:()=>cpe,getIncomingCalls:()=>Rqe,getOutgoingCalls:()=>Wqe,resolveCallHierarchyDeclaration:()=>nCe});var zqe=bt({"src/services/_namespaces/ts.CallHierarchy.ts"(){"use strict";Fqe()}}),iCe={};xa(iCe,{TokenEncodingConsts:()=>epe,TokenModifier:()=>npe,TokenType:()=>tpe,getEncodedSemanticClassifications:()=>Zue,getSemanticClassifications:()=>NDe});var Bqe=bt({"src/services/_namespaces/ts.classifier.v2020.ts"(){"use strict";LDe()}}),dpe={};xa(dpe,{v2020:()=>iCe});var Gqe=bt({"src/services/_namespaces/ts.classifier.ts"(){"use strict";Bqe()}});function Qm(e,t,r){return ppe(e,ZT(r),t,void 0,void 0)}function oa(e,t,r,i,o,s){return ppe(e,ZT(r),t,i,ZT(o),s)}function upe(e,t,r,i,o,s){return ppe(e,ZT(r),t,i,o&&ZT(o),s)}function ppe(e,t,r,i,o,s){return{fixName:e,description:t,changes:r,fixId:i,fixAllDescription:o,commands:s?[s]:void 0}}function Ea(e){for(let t of e.errorCodes)fpe=void 0,IY.add(String(t),e);if(e.fixIds)for(let t of e.fixIds)x.assert(!xY.has(t)),xY.set(t,e)}function Vqe(){return fpe??(fpe=Wo(IY.keys()))}function jqe(e,t){let{errorCodes:r}=e,i=0;for(let s of t)if(Bo(r,s.code)&&i++,i>1)break;let o=i<2;return({fixId:s,fixAllDescription:l,...d})=>o?d:{...d,fixId:s,fixAllDescription:l}}function Uqe(e){let t=aCe(e),r=IY.get(String(e.errorCode));return va(r,i=>mn(i.getCodeActions(e),jqe(i,t)))}function Hqe(e){return xY.get(na(e.fixId,No)).getAllCodeActions(e)}function ED(e,t){return{changes:e,commands:t}}function oCe(e,t){return{fileName:e,textChanges:t}}function gs(e,t,r){let i=[],o=ur.ChangeTracker.with(e,s=>SD(e,t,l=>r(s,l,i)));return ED(o,i.length===0?void 0:i)}function SD(e,t,r){for(let i of aCe(e))Bo(t,i.code)&&r(i)}function aCe({program:e,sourceFile:t,cancellationToken:r}){return[...e.getSemanticDiagnostics(t,r),...e.getSyntacticDiagnostics(t,r),...MX(t,e,r)]}var IY,xY,fpe,Kqe=bt({"src/services/codeFixProvider.ts"(){"use strict";ai(),IY=qp(),xY=new Map}});function sCe(e,t,r){let i=Ok(r)?L.createAsExpression(r.expression,L.createKeywordTypeNode(159)):L.createTypeAssertion(L.createKeywordTypeNode(159),r.expression);e.replaceNode(t,r.expression,i)}function lCe(e,t){if(!ir(e))return Fn(so(e,t),r=>Ok(r)||uae(r))}var RY,mpe,Jqe=bt({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){"use strict";ai(),Ta(),RY="addConvertToUnknownForNonOverlappingTypes",mpe=[f.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code],Ea({errorCodes:mpe,getCodeActions:function(t){let r=lCe(t.sourceFile,t.span.start);if(r===void 0)return;let i=ur.ChangeTracker.with(t,o=>sCe(o,t.sourceFile,r));return[oa(RY,i,f.Add_unknown_conversion_for_non_overlapping_types,RY,f.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[RY],getAllCodeActions:e=>gs(e,mpe,(t,r)=>{let i=lCe(r.file,r.start);i&&sCe(t,r.file,i)})})}}),qqe=bt({"src/services/codefixes/addEmptyExportDeclaration.ts"(){"use strict";ai(),Ta(),Ea({errorCodes:[f.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,f.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,f.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(t){let{sourceFile:r}=t,i=ur.ChangeTracker.with(t,o=>{let s=L.createExportDeclaration(void 0,!1,L.createNamedExports([]),void 0);o.insertNodeAtEndOfScope(r,r,s)});return[Qm("addEmptyExportDeclaration",i,f.Add_export_to_make_this_file_into_a_module)]}})}});function cCe(e,t,r,i){let o=r(s=>Xqe(s,e.sourceFile,t,i));return oa(DY,o,f.Add_async_modifier_to_containing_function,DY,f.Add_all_missing_async_modifiers)}function Xqe(e,t,r,i){if(i&&i.has(rs(r)))return;i?.add(rs(r));let o=L.replaceModifiers(ol(r,!0),L.createNodeArray(L.createModifiersFromModifierFlags(Wv(r)|1024)));e.replaceNode(t,r,o)}function dCe(e,t){if(!t)return;let r=so(e,t.start);return Fn(r,o=>o.getStart(e)Jl(t)?"quit":(Os(o)||Ul(o)||Ps(o)||Ec(o))&&uD(t,Iu(o,e)))}function Yqe(e,t){return({start:r,length:i,relatedInformation:o,code:s})=>Ey(r)&&Ey(i)&&uD({start:r,length:i},e)&&s===t&&!!o&>(o,l=>l.code===f.Did_you_mean_to_mark_this_function_as_async.code)}var DY,_pe,$qe=bt({"src/services/codefixes/addMissingAsync.ts"(){"use strict";ai(),Ta(),DY="addMissingAsync",_pe=[f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,f.Type_0_is_not_assignable_to_type_1.code,f.Type_0_is_not_comparable_to_type_1.code],Ea({fixIds:[DY],errorCodes:_pe,getCodeActions:function(t){let{sourceFile:r,errorCode:i,cancellationToken:o,program:s,span:l}=t,d=Vr(s.getTypeChecker().getDiagnostics(r,o),Yqe(l,i)),p=d&&d.relatedInformation&&Vr(d.relatedInformation,y=>y.code===f.Did_you_mean_to_mark_this_function_as_async.code),h=dCe(r,p);return h?[cCe(t,h,y=>ur.ChangeTracker.with(t,y))]:void 0},getAllCodeActions:e=>{let{sourceFile:t}=e,r=new Set;return gs(e,_pe,(i,o)=>{let s=o.relatedInformation&&Vr(o.relatedInformation,p=>p.code===f.Did_you_mean_to_mark_this_function_as_async.code),l=dCe(t,s);return l?cCe(e,l,p=>(p(i),[]),r):void 0})}})}});function uCe(e,t,r,i,o){let s=dX(e,r);return s&&Qqe(e,t,r,i,o)&&mCe(s)?s:void 0}function pCe(e,t,r,i,o,s){let{sourceFile:l,program:d,cancellationToken:p}=e,h=Zqe(t,l,p,d,i);if(h){let m=o(y=>{gn(h.initializers,({expression:E})=>hpe(y,r,l,i,E,s)),s&&h.needsSecondPassForFixAll&&hpe(y,r,l,i,t,s)});return Qm("addMissingAwaitToInitializer",m,h.initializers.length===1?[f.Add_await_to_initializer_for_0,h.initializers[0].declarationSymbol.name]:f.Add_await_to_initializers)}}function fCe(e,t,r,i,o,s){let l=o(d=>hpe(d,r,e.sourceFile,i,t,s));return oa(CY,l,f.Add_await,CY,f.Fix_all_expressions_possibly_missing_await)}function Qqe(e,t,r,i,o){let l=o.getTypeChecker().getDiagnostics(e,i);return gt(l,({start:d,length:p,relatedInformation:h,code:m})=>Ey(d)&&Ey(p)&&uD({start:d,length:p},r)&&m===t&&!!h&>(h,y=>y.code===f.Did_you_forget_to_use_await.code))}function Zqe(e,t,r,i,o){let s=eXe(e,o);if(!s)return;let l=s.isCompleteFix,d;for(let p of s.identifiers){let h=o.getSymbolAtLocation(p);if(!h)continue;let m=ri(h.valueDeclaration,wi),y=m&&ri(m.name,Fe),E=dE(m,243);if(!m||!E||m.type||!m.initializer||E.getSourceFile()!==t||$r(E,32)||!y||!mCe(m.initializer)){l=!1;continue}let S=i.getSemanticDiagnostics(t,r);if(Ms.Core.eachSymbolReferenceInFile(y,o,t,N=>p!==N&&!tXe(N,S,t,o))){l=!1;continue}(d||(d=[])).push({expression:m.initializer,declarationSymbol:h})}return d&&{initializers:d,needsSecondPassForFixAll:!l}}function eXe(e,t){if(kr(e.parent)&&Fe(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(Fe(e))return{identifiers:[e],isCompleteFix:!0};if(dr(e)){let r,i=!0;for(let o of[e.left,e.right]){let s=t.getTypeAtLocation(o);if(t.getPromisedTypeOfPromise(s)){if(!Fe(o)){i=!1;continue}(r||(r=[])).push(o)}}return r&&{identifiers:r,isCompleteFix:i}}}function tXe(e,t,r,i){let o=kr(e.parent)?e.parent.name:dr(e.parent)?e.parent:e,s=Vr(t,l=>l.start===o.getStart(r)&&l.start+l.length===o.getEnd());return s&&Bo(NY,s.code)||i.getTypeAtLocation(o).flags&1}function mCe(e){return e.flags&65536||!!Fn(e,t=>t.parent&&Os(t.parent)&&t.parent.body===t||Ko(t)&&(t.parent.kind===262||t.parent.kind===218||t.parent.kind===219||t.parent.kind===174))}function hpe(e,t,r,i,o,s){if(Wk(o.parent)&&!o.parent.awaitModifier){let l=i.getTypeAtLocation(o),d=i.getAsyncIterableType();if(d&&i.isTypeAssignableTo(l,d)){let p=o.parent;e.replaceNode(r,p,L.updateForOfStatement(p,L.createToken(135),p.initializer,p.expression,p.statement));return}}if(dr(o))for(let l of[o.left,o.right]){if(s&&Fe(l)){let h=i.getSymbolAtLocation(l);if(h&&s.has(ba(h)))continue}let d=i.getTypeAtLocation(l),p=i.getPromisedTypeOfPromise(d)?L.createAwaitExpression(l):l;e.replaceNode(r,l,p)}else if(t===gpe&&kr(o.parent)){if(s&&Fe(o.parent.expression)){let l=i.getSymbolAtLocation(o.parent.expression);if(l&&s.has(ba(l)))return}e.replaceNode(r,o.parent.expression,L.createParenthesizedExpression(L.createAwaitExpression(o.parent.expression))),_Ce(e,o.parent.expression,r)}else if(Bo(ype,t)&&v_(o.parent)){if(s&&Fe(o)){let l=i.getSymbolAtLocation(o);if(l&&s.has(ba(l)))return}e.replaceNode(r,o,L.createParenthesizedExpression(L.createAwaitExpression(o))),_Ce(e,o,r)}else{if(s&&wi(o.parent)&&Fe(o.parent.name)){let l=i.getSymbolAtLocation(o.parent.name);if(l&&!Kb(s,ba(l)))return}e.replaceNode(r,o,L.createAwaitExpression(o))}}function _Ce(e,t,r){let i=Tc(t.pos,r);i&&a7(i.end,i.parent,r)&&e.insertText(r,t.getStart(r),";")}var CY,gpe,ype,NY,nXe=bt({"src/services/codefixes/addMissingAwait.ts"(){"use strict";ai(),Ta(),CY="addMissingAwait",gpe=f.Property_0_does_not_exist_on_type_1.code,ype=[f.This_expression_is_not_callable.code,f.This_expression_is_not_constructable.code],NY=[f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,f.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,f.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,f.Operator_0_cannot_be_applied_to_type_1.code,f.Operator_0_cannot_be_applied_to_types_1_and_2.code,f.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,f.This_condition_will_always_return_true_since_this_0_is_always_defined.code,f.Type_0_is_not_an_array_type.code,f.Type_0_is_not_an_array_type_or_a_string_type.code,f.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,f.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,f.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,f.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,f.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,gpe,...ype],Ea({fixIds:[CY],errorCodes:NY,getCodeActions:function(t){let{sourceFile:r,errorCode:i,span:o,cancellationToken:s,program:l}=t,d=uCe(r,i,o,s,l);if(!d)return;let p=t.program.getTypeChecker(),h=m=>ur.ChangeTracker.with(t,m);return SL([pCe(t,d,i,p,h),fCe(t,d,i,p,h)])},getAllCodeActions:e=>{let{sourceFile:t,program:r,cancellationToken:i}=e,o=e.program.getTypeChecker(),s=new Set;return gs(e,NY,(l,d)=>{let p=uCe(t,d.code,d,i,r);if(!p)return;let h=m=>(m(l),[]);return pCe(e,p,d.code,o,h,s)||fCe(e,p,d.code,o,h,s)})}})}});function hCe(e,t,r,i,o){let s=so(t,r),l=Fn(s,h=>Fx(h.parent)?h.parent.initializer===h:rXe(h)?!1:"quit");if(l)return PY(e,l,t,o);let d=s.parent;if(dr(d)&&d.operatorToken.kind===64&&ed(d.parent))return PY(e,s,t,o);if(uu(d)){let h=i.getTypeChecker();return oo(d.elements,m=>iXe(m,h))?PY(e,d,t,o):void 0}let p=Fn(s,h=>ed(h.parent)?!0:oXe(h)?!1:"quit");if(p){let h=i.getTypeChecker();return gCe(p,h)?PY(e,p,t,o):void 0}}function PY(e,t,r,i){(!i||Kb(i,t))&&e.insertModifierBefore(r,87,t)}function rXe(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}function iXe(e,t){let r=Fe(e)?e:Mc(e,!0)&&Fe(e.left)?e.left:void 0;return!!r&&!t.getSymbolAtLocation(r)}function oXe(e){switch(e.kind){case 80:case 226:case 28:return!0;default:return!1}}function gCe(e,t){return dr(e)?e.operatorToken.kind===28?oo([e.left,e.right],r=>gCe(r,t)):e.operatorToken.kind===64&&Fe(e.left)&&!t.getSymbolAtLocation(e.left):!1}var MY,vpe,aXe=bt({"src/services/codefixes/addMissingConst.ts"(){"use strict";ai(),Ta(),MY="addMissingConst",vpe=[f.Cannot_find_name_0.code,f.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code],Ea({errorCodes:vpe,getCodeActions:function(t){let r=ur.ChangeTracker.with(t,i=>hCe(i,t.sourceFile,t.span.start,t.program));if(r.length>0)return[oa(MY,r,f.Add_const_to_unresolved_variable,MY,f.Add_const_to_all_unresolved_variables)]},fixIds:[MY],getAllCodeActions:e=>{let t=new Set;return gs(e,vpe,(r,i)=>hCe(r,i.file,i.start,e.program,t))}})}});function yCe(e,t,r,i){let o=so(t,r);if(!Fe(o))return;let s=o.parent;s.kind===172&&(!i||Kb(i,s))&&e.insertModifierBefore(t,138,s)}var LY,bpe,sXe=bt({"src/services/codefixes/addMissingDeclareProperty.ts"(){"use strict";ai(),Ta(),LY="addMissingDeclareProperty",bpe=[f.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code],Ea({errorCodes:bpe,getCodeActions:function(t){let r=ur.ChangeTracker.with(t,i=>yCe(i,t.sourceFile,t.span.start));if(r.length>0)return[oa(LY,r,f.Prefix_with_declare,LY,f.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[LY],getAllCodeActions:e=>{let t=new Set;return gs(e,bpe,(r,i)=>yCe(r,i.file,i.start,t))}})}});function vCe(e,t,r){let i=so(t,r),o=Fn(i,bd);x.assert(!!o,"Expected position to be owned by a decorator.");let s=L.createCallExpression(o.expression,void 0,void 0);e.replaceNode(t,o.expression,s)}var kY,Epe,lXe=bt({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){"use strict";ai(),Ta(),kY="addMissingInvocationForDecorator",Epe=[f._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],Ea({errorCodes:Epe,getCodeActions:function(t){let r=ur.ChangeTracker.with(t,i=>vCe(i,t.sourceFile,t.span.start));return[oa(kY,r,f.Call_decorator_expression,kY,f.Add_to_all_uncalled_decorators)]},fixIds:[kY],getAllCodeActions:e=>gs(e,Epe,(t,r)=>vCe(t,r.file,r.start))})}});function bCe(e,t,r){let i=so(t,r),o=i.parent;if(!Ao(o))return x.fail("Tried to add a parameter name to a non-parameter: "+x.formatSyntaxKind(i.kind));let s=o.parent.parameters.indexOf(o);x.assert(!o.type,"Tried to add a parameter name to a parameter that already had one."),x.assert(s>-1,"Parameter not found in parent parameter list.");let l=o.name.getEnd(),d=L.createTypeReferenceNode(o.name,void 0),p=ECe(t,o);for(;p;)d=L.createArrayTypeNode(d),l=p.getEnd(),p=ECe(t,p);let h=L.createParameterDeclaration(o.modifiers,o.dotDotDotToken,"arg"+s,o.questionToken,o.dotDotDotToken&&!kk(d)?L.createArrayTypeNode(d):d,o.initializer);e.replaceRange(t,Ef(o.getStart(t),l),h)}function ECe(e,t){let r=aS(t.name,t.parent,e);if(r&&r.kind===23&&V0(r.parent)&&Ao(r.parent.parent))return r.parent.parent}var wY,Spe,cXe=bt({"src/services/codefixes/addNameToNamelessParameter.ts"(){"use strict";ai(),Ta(),wY="addNameToNamelessParameter",Spe=[f.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],Ea({errorCodes:Spe,getCodeActions:function(t){let r=ur.ChangeTracker.with(t,i=>bCe(i,t.sourceFile,t.span.start));return[oa(wY,r,f.Add_parameter_name,wY,f.Add_names_to_all_parameters_without_names)]},fixIds:[wY],getAllCodeActions:e=>gs(e,Spe,(t,r)=>bCe(t,r.file,r.start))})}});function dXe(e,t,r){var i,o;let s=SCe(dX(e,t),r);if(!s)return Xe;let{source:l,target:d}=s,p=uXe(l,d,r)?r.getTypeAtLocation(d.expression):r.getTypeAtLocation(d);return(o=(i=p.symbol)==null?void 0:i.declarations)!=null&&o.some(h=>Gn(h).fileName.match(/\.d\.ts$/))?Xe:r.getExactOptionalProperties(p)}function uXe(e,t,r){return kr(t)&&!!r.getExactOptionalProperties(r.getTypeAtLocation(t.expression)).length&&r.getTypeAtLocation(e)===r.getUndefinedType()}function SCe(e,t){var r;if(e){if(dr(e.parent)&&e.parent.operatorToken.kind===64)return{source:e.parent.right,target:e.parent.left};if(wi(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(ia(e.parent)){let i=t.getSymbolAtLocation(e.parent.expression);if(!i?.valueDeclaration||!vI(i.valueDeclaration.kind)||!ht(e))return;let o=e.parent.arguments.indexOf(e);if(o===-1)return;let s=i.valueDeclaration.parameters[o].name;if(Fe(s))return{source:e,target:s}}else if(mc(e.parent)&&Fe(e.parent.name)||Zu(e.parent)){let i=SCe(e.parent.parent,t);if(!i)return;let o=t.getPropertyOfType(t.getTypeAtLocation(i.target),e.parent.name.text),s=(r=o?.declarations)==null?void 0:r[0];return s?{source:mc(e.parent)?e.parent.initializer:e.parent.name,target:s}:void 0}}else return}function pXe(e,t){for(let r of t){let i=r.valueDeclaration;if(i&&(_p(i)||Uo(i))&&i.type){let o=L.createUnionTypeNode([...i.type.kind===192?i.type.types:[i.type],L.createTypeReferenceNode("undefined")]);e.replaceNode(i.getSourceFile(),i.type,o)}}}var Tpe,TCe,fXe=bt({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){"use strict";ai(),Ta(),Tpe="addOptionalPropertyUndefined",TCe=[f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code],Ea({errorCodes:TCe,getCodeActions(e){let t=e.program.getTypeChecker(),r=dXe(e.sourceFile,e.span,t);if(!r.length)return;let i=ur.ChangeTracker.with(e,o=>pXe(o,r));return[Qm(Tpe,i,f.Add_undefined_to_optional_property_type)]},fixIds:[Tpe]})}});function ACe(e,t){let r=so(e,t);return ri(Ao(r.parent)?r.parent.parent:r.parent,ICe)}function ICe(e){return mXe(e)&&xCe(e)}function xCe(e){return ws(e)?e.parameters.some(xCe)||!e.type&&!!YL(e):!e.type&&!!nE(e)}function RCe(e,t,r){if(ws(r)&&(YL(r)||r.parameters.some(i=>!!nE(i)))){if(!r.typeParameters){let o=d6(r);o.length&&e.insertTypeParameters(t,r,o)}let i=Os(r)&&!_s(r,21,t);i&&e.insertNodeBefore(t,Va(r.parameters),L.createToken(21));for(let o of r.parameters)if(!o.type){let s=nE(o);s&&e.tryInsertTypeAnnotation(t,o,$e(s,uS,ji))}if(i&&e.insertNodeAfter(t,Ja(r.parameters),L.createToken(22)),!r.type){let o=YL(r);o&&e.tryInsertTypeAnnotation(t,r,$e(o,uS,ji))}}else{let i=x.checkDefined(nE(r),"A JSDocType for this declaration should exist");x.assert(!r.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,r,$e(i,uS,ji))}}function mXe(e){return ws(e)||e.kind===260||e.kind===171||e.kind===172}function uS(e){switch(e.kind){case 319:case 320:return L.createTypeReferenceNode("any",Xe);case 323:return hXe(e);case 322:return uS(e.type);case 321:return gXe(e);case 325:return yXe(e);case 324:return vXe(e);case 183:return EXe(e);case 329:return _Xe(e);default:let t=Sn(e,uS,void 0);return lr(t,1),t}}function _Xe(e){let t=L.createTypeLiteralNode(mn(e.jsDocPropertyTags,r=>L.createPropertySignature(void 0,Fe(r.name)?r.name:r.name.right,uk(r)?L.createToken(58):void 0,r.typeExpression&&$e(r.typeExpression.type,uS,ji)||L.createKeywordTypeNode(133))));return lr(t,1),t}function hXe(e){return L.createUnionTypeNode([$e(e.type,uS,ji),L.createTypeReferenceNode("undefined",Xe)])}function gXe(e){return L.createUnionTypeNode([$e(e.type,uS,ji),L.createTypeReferenceNode("null",Xe)])}function yXe(e){return L.createArrayTypeNode($e(e.type,uS,ji))}function vXe(e){return L.createFunctionTypeNode(Xe,e.parameters.map(bXe),e.type??L.createKeywordTypeNode(133))}function bXe(e){let t=e.parent.parameters.indexOf(e),r=e.type.kind===325&&t===e.parent.parameters.length-1,i=e.name||(r?"rest":"arg"+t),o=r?L.createToken(26):e.dotDotDotToken;return L.createParameterDeclaration(e.modifiers,o,i,e.questionToken,$e(e.type,uS,ji),e.initializer)}function EXe(e){let t=e.typeName,r=e.typeArguments;if(Fe(e.typeName)){if(HF(e))return SXe(e);let i=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":i=i.toLowerCase();break;case"array":case"date":case"promise":i=i[0].toUpperCase()+i.slice(1);break}t=L.createIdentifier(i),(i==="Array"||i==="Promise")&&!e.typeArguments?r=L.createNodeArray([L.createTypeReferenceNode("any",Xe)]):r=zn(e.typeArguments,uS,ji)}return L.createTypeReferenceNode(t,r)}function SXe(e){let t=L.createParameterDeclaration(void 0,void 0,e.typeArguments[0].kind===150?"n":"s",void 0,L.createTypeReferenceNode(e.typeArguments[0].kind===150?"number":"string",[]),void 0),r=L.createTypeLiteralNode([L.createIndexSignature(void 0,[t],e.typeArguments[1])]);return lr(r,1),r}var OY,Ape,TXe=bt({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){"use strict";ai(),Ta(),OY="annotateWithTypeFromJSDoc",Ape=[f.JSDoc_types_may_be_moved_to_TypeScript_types.code],Ea({errorCodes:Ape,getCodeActions(e){let t=ACe(e.sourceFile,e.span.start);if(!t)return;let r=ur.ChangeTracker.with(e,i=>RCe(i,e.sourceFile,t));return[oa(OY,r,f.Annotate_with_type_from_JSDoc,OY,f.Annotate_everything_with_types_from_JSDoc)]},fixIds:[OY],getAllCodeActions:e=>gs(e,Ape,(t,r)=>{let i=ACe(r.file,r.start);i&&RCe(t,r.file,i)})})}});function DCe(e,t,r,i,o,s){let l=i.getSymbolAtLocation(so(t,r));if(!l||!l.valueDeclaration||!(l.flags&19))return;let d=l.valueDeclaration;if(Ec(d)||Ps(d))e.replaceNode(t,d,m(d));else if(wi(d)){let y=h(d);if(!y)return;let E=d.parent.parent;Uc(d.parent)&&d.parent.declarations.length>1?(e.delete(t,d),e.insertNodeAfter(t,E,y)):e.replaceNode(t,E,y)}function p(y){let E=[];return y.exports&&y.exports.forEach(N=>{if(N.name==="prototype"&&N.declarations){let D=N.declarations[0];if(N.declarations.length===1&&kr(D)&&dr(D.parent)&&D.parent.operatorToken.kind===64&&Ma(D.parent.right)){let w=D.parent.right;A(w.symbol,void 0,E)}}else A(N,[L.createToken(126)],E)}),y.members&&y.members.forEach((N,D)=>{var w,j,K,Y;if(D==="constructor"&&N.valueDeclaration){let B=(Y=(K=(j=(w=y.exports)==null?void 0:w.get("prototype"))==null?void 0:j.declarations)==null?void 0:K[0])==null?void 0:Y.parent;B&&dr(B)&&Ma(B.right)&>(B.right.properties,FY)||e.delete(t,N.valueDeclaration.parent);return}A(N,void 0,E)}),E;function S(N,D){return Ns(N)?kr(N)&&FY(N)?!0:$o(D):oo(N.properties,w=>!!(Ul(w)||iF(w)||mc(w)&&Ps(w.initializer)&&w.name||FY(w)))}function A(N,D,w){if(!(N.flags&8192)&&!(N.flags&4096))return;let j=N.valueDeclaration,K=j.parent,Y=K.right;if(!S(j,Y)||gt(w,me=>{let ge=Po(me);return!!(ge&&Fe(ge)&&gr(ge)===vl(N))}))return;let B=K.parent&&K.parent.kind===244?K.parent:K;if(e.delete(t,B),!Y){w.push(L.createPropertyDeclaration(D,N.name,void 0,void 0,void 0));return}if(Ns(j)&&(Ps(Y)||Os(Y))){let me=of(t,o),ge=AXe(j,s,me);ge&&ce(w,Y,ge);return}else if(Ma(Y)){gn(Y.properties,me=>{(Ul(me)||iF(me))&&w.push(me),mc(me)&&Ps(me.initializer)&&ce(w,me.initializer,me.name),FY(me)});return}else{if(su(t)||!kr(j))return;let me=L.createPropertyDeclaration(D,j.name,void 0,void 0,Y);fD(K.parent,me,t),w.push(me);return}function ce(me,ge,q){return Ps(ge)?z(me,ge,q):Z(me,ge,q)}function z(me,ge,q){let J=Eo(D,WY(ge,134)),re=L.createMethodDeclaration(J,void 0,q,void 0,void 0,ge.parameters,void 0,ge.body);fD(K,re,t),me.push(re)}function Z(me,ge,q){let J=ge.body,re;J.kind===241?re=J:re=L.createBlock([L.createReturnStatement(J)]);let pe=Eo(D,WY(ge,134)),xe=L.createMethodDeclaration(pe,void 0,q,void 0,void 0,ge.parameters,void 0,re);fD(K,xe,t),me.push(xe)}}}function h(y){let E=y.initializer;if(!E||!Ps(E)||!Fe(y.name))return;let S=p(y.symbol);E.body&&S.unshift(L.createConstructorDeclaration(void 0,E.parameters,E.body));let A=WY(y.parent.parent,95);return L.createClassDeclaration(A,y.name,void 0,void 0,S)}function m(y){let E=p(l);y.body&&E.unshift(L.createConstructorDeclaration(void 0,y.parameters,y.body));let S=WY(y,95);return L.createClassDeclaration(S,y.name,void 0,void 0,E)}}function WY(e,t){return Am(e)?jr(e.modifiers,r=>r.kind===t):void 0}function FY(e){return e.name?!!(Fe(e.name)&&e.name.text==="constructor"):!1}function AXe(e,t,r){if(kr(e))return e.name;let i=e.argumentExpression;if(mp(i))return i;if(as(i))return Yp(i.text,ns(t))?L.createIdentifier(i.text):HI(i)?L.createStringLiteral(i.text,r===0):i}var zY,Ipe,IXe=bt({"src/services/codefixes/convertFunctionToEs6Class.ts"(){"use strict";ai(),Ta(),zY="convertFunctionToEs6Class",Ipe=[f.This_constructor_function_may_be_converted_to_a_class_declaration.code],Ea({errorCodes:Ipe,getCodeActions(e){let t=ur.ChangeTracker.with(e,r=>DCe(r,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[oa(zY,t,f.Convert_function_to_an_ES2015_class,zY,f.Convert_all_constructor_functions_to_classes)]},fixIds:[zY],getAllCodeActions:e=>gs(e,Ipe,(t,r)=>DCe(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))})}});function CCe(e,t,r,i){let o=so(t,r),s;if(Fe(o)&&wi(o.parent)&&o.parent.initializer&&ws(o.parent.initializer)?s=o.parent.initializer:s=ri(Wp(so(t,r)),wX),!s)return;let l=new Map,d=ir(s),p=RXe(s,i),h=DXe(s,i,l);if(!LX(h,i))return;let m=h.body&&Ko(h.body)?xXe(h.body,i):Xe,y={checker:i,synthNamesMap:l,setOfExpressionsToReturn:p,isInJSFile:d};if(!m.length)return;let E=Na(t.text,R_(s).pos);e.insertModifierAt(t,E,134,{suffix:" "});for(let S of m)if(Go(S,function A(N){if(ia(N)){let D=TD(N,N,y,!1);if(I1())return!0;e.replaceNodeWithNodes(t,S,D)}else if(!$o(N)&&(Go(N,A),I1()))return!0}),I1())return}function xXe(e,t){let r=[];return I0(e,i=>{T7(i,t)&&r.push(i)}),r}function RXe(e,t){if(!e.body)return new Set;let r=new Set;return Go(e.body,function i(o){MO(o,t,"then")?(r.add(rs(o)),gn(o.arguments,i)):MO(o,t,"catch")||MO(o,t,"finally")?(r.add(rs(o)),Go(o,i)):PCe(o,t)?r.add(rs(o)):Go(o,i)}),r}function MO(e,t,r){if(!ia(e))return!1;let o=Hw(e,r)&&t.getTypeAtLocation(e);return!!(o&&t.getPromisedTypeOfPromise(o))}function NCe(e,t){return(Lr(e)&4)!==0&&e.target===t}function BY(e,t,r){if(e.expression.name.escapedText==="finally")return;let i=r.getTypeAtLocation(e.expression.expression);if(NCe(i,r.getPromiseType())||NCe(i,r.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(t===Ay(e.arguments,0))return Ay(e.typeArguments,0);if(t===Ay(e.arguments,1))return Ay(e.typeArguments,1)}else return Ay(e.typeArguments,0)}function PCe(e,t){return ht(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function DXe(e,t,r){let i=new Map,o=qp();return Go(e,function s(l){if(!Fe(l)){Go(l,s);return}let d=t.getSymbolAtLocation(l);if(d){let p=t.getTypeAtLocation(l),h=WCe(p,t),m=ba(d).toString();if(h&&!Ao(l.parent)&&!ws(l.parent)&&!r.has(m)){let y=Xc(h.parameters),E=y?.valueDeclaration&&Ao(y.valueDeclaration)&&ri(y.valueDeclaration.name,Fe)||L.createUniqueName("result",16),S=MCe(E,o);r.set(m,S),o.add(E.text,d)}else if(l.parent&&(Ao(l.parent)||wi(l.parent)||Xa(l.parent))){let y=l.text,E=o.get(y);if(E&&E.some(S=>S!==d)){let S=MCe(l,o);i.set(m,S.identifier),r.set(m,S),o.add(y,d)}else{let S=ol(l);r.set(m,lM(S)),o.add(y,d)}}}}),aO(e,!0,s=>{if(Xa(s)&&Fe(s.name)&&tm(s.parent)){let l=t.getSymbolAtLocation(s.name),d=l&&i.get(String(ba(l)));if(d&&d.text!==(s.name||s.propertyName).getText())return L.createBindingElement(s.dotDotDotToken,s.propertyName||s.name,d,s.initializer)}else if(Fe(s)){let l=t.getSymbolAtLocation(s),d=l&&i.get(String(ba(l)));if(d)return L.createIdentifier(d.text)}})}function MCe(e,t){let r=(t.get(e.text)||Xe).length,i=r===0?e:L.createIdentifier(e.text+"_"+r);return lM(i)}function I1(){return!X7}function NE(){return X7=!1,Xe}function TD(e,t,r,i,o){if(MO(t,r.checker,"then"))return PXe(t,Ay(t.arguments,0),Ay(t.arguments,1),r,i,o);if(MO(t,r.checker,"catch"))return wCe(t,Ay(t.arguments,0),r,i,o);if(MO(t,r.checker,"finally"))return NXe(t,Ay(t.arguments,0),r,i,o);if(kr(t))return TD(e,t.expression,r,i,o);let s=r.checker.getTypeAtLocation(t);return s&&r.checker.getPromisedTypeOfPromise(s)?(x.assertNode(Nl(t).parent,kr),MXe(e,t,r,i,o)):NE()}function GY({checker:e},t){if(t.kind===106)return!0;if(Fe(t)&&!rl(t)&&gr(t)==="undefined"){let r=e.getSymbolAtLocation(t);return!r||e.isUndefinedSymbol(r)}return!1}function CXe(e){let t=L.createUniqueName(e.identifier.text,16);return lM(t)}function LCe(e,t,r){let i;return r&&!kO(e,t)&&(LO(r)?(i=r,t.synthNamesMap.forEach((o,s)=>{if(o.identifier.text===r.identifier.text){let l=CXe(r);t.synthNamesMap.set(s,l)}})):i=lM(L.createUniqueName("result",16),r.types),Cpe(i)),i}function kCe(e,t,r,i,o){let s=[],l;if(i&&!kO(e,t)){l=ol(Cpe(i));let d=i.types,p=t.checker.getUnionType(d,2),h=t.isInJSFile?void 0:t.checker.typeToTypeNode(p,void 0,void 0),m=[L.createVariableDeclaration(l,void 0,h)],y=L.createVariableStatement(void 0,L.createVariableDeclarationList(m,1));s.push(y)}return s.push(r),o&&l&&wXe(o)&&s.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(ol(GCe(o)),void 0,void 0,l)],2))),s}function NXe(e,t,r,i,o){if(!t||GY(r,t))return TD(e,e.expression.expression,r,i,o);let s=LCe(e,r,o),l=TD(e,e.expression.expression,r,!0,s);if(I1())return NE();let d=Rpe(t,i,void 0,void 0,e,r);if(I1())return NE();let p=L.createBlock(l),h=L.createBlock(d),m=L.createTryStatement(p,void 0,h);return kCe(e,r,m,s,o)}function wCe(e,t,r,i,o){if(!t||GY(r,t))return TD(e,e.expression.expression,r,i,o);let s=zCe(t,r),l=LCe(e,r,o),d=TD(e,e.expression.expression,r,!0,l);if(I1())return NE();let p=Rpe(t,i,l,s,e,r);if(I1())return NE();let h=L.createBlock(d),m=L.createCatchClause(s&&ol(q7(s)),L.createBlock(p)),y=L.createTryStatement(h,m,void 0);return kCe(e,r,y,l,o)}function PXe(e,t,r,i,o,s){if(!t||GY(i,t))return wCe(e,r,i,o,s);if(r&&!GY(i,r))return NE();let l=zCe(t,i),d=TD(e.expression.expression,e.expression.expression,i,!0,l);if(I1())return NE();let p=Rpe(t,o,s,l,e,i);return I1()?NE():Eo(d,p)}function MXe(e,t,r,i,o){if(kO(e,r)){let s=ol(t);return i&&(s=L.createAwaitExpression(s)),[L.createReturnStatement(s)]}return VY(o,L.createAwaitExpression(t),void 0)}function VY(e,t,r){return!e||BCe(e)?[L.createExpressionStatement(t)]:LO(e)&&e.hasBeenDeclared?[L.createExpressionStatement(L.createAssignment(ol(Dpe(e)),t))]:[L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(ol(q7(e)),void 0,r,t)],2))]}function xpe(e,t){if(t&&e){let r=L.createUniqueName("result",16);return[...VY(lM(r),e,t),L.createReturnStatement(r)]}return[L.createReturnStatement(e)]}function Rpe(e,t,r,i,o,s){var l;switch(e.kind){case 106:break;case 211:case 80:if(!i)break;let d=L.createCallExpression(ol(e),void 0,LO(i)?[Dpe(i)]:[]);if(kO(o,s))return xpe(d,BY(o,e,s.checker));let p=s.checker.getTypeAtLocation(e),h=s.checker.getSignaturesOfType(p,0);if(!h.length)return NE();let m=h[0].getReturnType(),y=VY(r,L.createAwaitExpression(d),BY(o,e,s.checker));return r&&r.types.push(s.checker.getAwaitedType(m)||m),y;case 218:case 219:{let E=e.body,S=(l=WCe(s.checker.getTypeAtLocation(e),s.checker))==null?void 0:l.getReturnType();if(Ko(E)){let A=[],N=!1;for(let D of E.statements)if(Sm(D))if(N=!0,T7(D,s.checker))A=A.concat(FCe(s,D,t,r));else{let w=S&&D.expression?OCe(s.checker,S,D.expression):D.expression;A.push(...xpe(w,BY(o,e,s.checker)))}else{if(t&&I0(D,Sy))return NE();A.push(D)}return kO(o,s)?A.map(D=>ol(D)):LXe(A,r,s,N)}else{let A=kX(E,s.checker)?FCe(s,L.createReturnStatement(E),t,r):Xe;if(A.length>0)return A;if(S){let N=OCe(s.checker,S,E);if(kO(o,s))return xpe(N,BY(o,e,s.checker));{let D=VY(r,N,void 0);return r&&r.types.push(s.checker.getAwaitedType(S)||S),D}}else return NE()}}default:return NE()}return Xe}function OCe(e,t,r){let i=ol(r);return e.getPromisedTypeOfPromise(t)?L.createAwaitExpression(i):i}function WCe(e,t){let r=t.getSignaturesOfType(e,0);return $s(r)}function LXe(e,t,r,i){let o=[];for(let s of e)if(Sm(s)){if(s.expression){let l=PCe(s.expression,r.checker)?L.createAwaitExpression(s.expression):s.expression;t===void 0?o.push(L.createExpressionStatement(l)):LO(t)&&t.hasBeenDeclared?o.push(L.createExpressionStatement(L.createAssignment(Dpe(t),l))):o.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(q7(t),void 0,void 0,l)],2)))}}else o.push(ol(s));return!i&&t!==void 0&&o.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(q7(t),void 0,void 0,L.createIdentifier("undefined"))],2))),o}function FCe(e,t,r,i){let o=[];return Go(t,function s(l){if(ia(l)){let d=TD(l,l,e,r,i);if(o=o.concat(d),o.length>0)return}else $o(l)||Go(l,s)}),o}function zCe(e,t){let r=[],i;if(ws(e)){if(e.parameters.length>0){let p=e.parameters[0].name;i=o(p)}}else Fe(e)?i=s(e):kr(e)&&Fe(e.name)&&(i=s(e.name));if(!i||"identifier"in i&&i.identifier.text==="undefined")return;return i;function o(p){if(Fe(p))return s(p);let h=va(p.elements,m=>jc(m)?[]:[o(m.name)]);return kXe(p,h)}function s(p){let h=d(p),m=l(h);return m&&t.synthNamesMap.get(ba(m).toString())||lM(p,r)}function l(p){var h;return((h=ri(p,b_))==null?void 0:h.symbol)??t.checker.getSymbolAtLocation(p)}function d(p){return p.original?p.original:p}}function BCe(e){return e?LO(e)?!e.identifier.text:oo(e.elements,BCe):!0}function lM(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function kXe(e,t=Xe,r=[]){return{kind:1,bindingPattern:e,elements:t,types:r}}function Dpe(e){return e.hasBeenReferenced=!0,e.identifier}function q7(e){return LO(e)?Cpe(e):GCe(e)}function GCe(e){for(let t of e.elements)q7(t);return e.bindingPattern}function Cpe(e){return e.hasBeenDeclared=!0,e.identifier}function LO(e){return e.kind===0}function wXe(e){return e.kind===1}function kO(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(rs(e.original))}var jY,Npe,X7,OXe=bt({"src/services/codefixes/convertToAsyncFunction.ts"(){"use strict";ai(),Ta(),jY="convertToAsyncFunction",Npe=[f.This_may_be_converted_to_an_async_function.code],X7=!0,Ea({errorCodes:Npe,getCodeActions(e){X7=!0;let t=ur.ChangeTracker.with(e,r=>CCe(r,e.sourceFile,e.span.start,e.program.getTypeChecker()));return X7?[oa(jY,t,f.Convert_to_async_function,jY,f.Convert_all_to_async_functions)]:[]},fixIds:[jY],getAllCodeActions:e=>gs(e,Npe,(t,r)=>CCe(t,r.file,r.start,e.program.getTypeChecker()))})}});function WXe(e,t,r,i,o){var s;for(let l of e.imports){let d=(s=r.getResolvedModuleFromModuleSpecifier(l))==null?void 0:s.resolvedModule;if(!d||d.resolvedFileName!==t.fileName)continue;let p=yN(l);switch(p.kind){case 271:i.replaceNode(e,p,Hy(p.name,void 0,l,o));break;case 213:bu(p,!1)&&i.replaceNode(e,p,L.createPropertyAccessExpression(ol(p),"default"));break}}}function FXe(e,t,r,i,o){let s={original:$Xe(e),additional:new Set},l=zXe(e,t,s);BXe(e,l,r);let d=!1,p;for(let h of jr(e.statements,Ml)){let m=jCe(e,h,r,t,s,i,o);m&&vF(m,p??(p=new Map))}for(let h of jr(e.statements,m=>!Ml(m))){let m=GXe(e,h,t,r,s,i,l,p,o);d=d||m}return p?.forEach((h,m)=>{r.replaceNode(e,m,h)}),d}function zXe(e,t,r){let i=new Map;return VCe(e,o=>{let{text:s}=o.name;!i.has(s)&&(xj(o.name)||t.resolveName(s,o,111551,!0))&&i.set(s,UY(`_${s}`,r))}),i}function BXe(e,t,r){VCe(e,(i,o)=>{if(o)return;let{text:s}=i.name;r.replaceNode(e,i,L.createIdentifier(t.get(s)||s))})}function VCe(e,t){e.forEachChild(function r(i){if(kr(i)&&Z0(e,i.expression)&&Fe(i.name)){let{parent:o}=i;t(i,dr(o)&&o.left===i&&o.operatorToken.kind===64)}i.forEachChild(r)})}function GXe(e,t,r,i,o,s,l,d,p){switch(t.kind){case 243:return jCe(e,t,i,r,o,s,p),!1;case 244:{let{expression:h}=t;switch(h.kind){case 213:return bu(h,!0)&&i.replaceNode(e,t,Hy(void 0,void 0,h.arguments[0],p)),!1;case 226:{let{operatorToken:m}=h;return m.kind===64&&jXe(e,r,h,i,l,d)}}}default:return!1}}function jCe(e,t,r,i,o,s,l){let{declarationList:d}=t,p=!1,h=mn(d.declarations,m=>{let{name:y,initializer:E}=m;if(E){if(Z0(e,E))return p=!0,cM([]);if(bu(E,!0))return p=!0,XXe(y,E.arguments[0],i,o,s,l);if(kr(E)&&bu(E.expression,!0))return p=!0,VXe(y,E.name.text,E.expression.arguments[0],o,l)}return cM([L.createVariableStatement(void 0,L.createVariableDeclarationList([m],d.flags))])});if(p){r.replaceNodeWithNodes(e,t,va(h,y=>y.newImports));let m;return gn(h,y=>{y.useSitesToUnqualify&&vF(y.useSitesToUnqualify,m??(m=new Map))}),m}}function VXe(e,t,r,i,o){switch(e.kind){case 206:case 207:{let s=UY(t,i);return cM([JCe(s,t,r,o),HY(void 0,e,L.createIdentifier(s))])}case 80:return cM([JCe(e.text,t,r,o)]);default:return x.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function jXe(e,t,r,i,o,s){let{left:l,right:d}=r;if(!kr(l))return!1;if(Z0(e,l))if(Z0(e,d))i.delete(e,r.parent);else{let p=Ma(d)?UXe(d,s):bu(d,!0)?KXe(d.arguments[0],t):void 0;return p?(i.replaceNodeWithNodes(e,r.parent,p[0]),p[1]):(i.replaceRangeWithText(e,Ef(l.getStart(e),d.pos),"export default"),!0)}else Z0(e,l.expression)&&HXe(e,r,i,o);return!1}function UXe(e,t){let r=PG(e.properties,i=>{switch(i.kind){case 177:case 178:case 304:case 305:return;case 303:return Fe(i.name)?qXe(i.name.text,i.initializer,t):void 0;case 174:return Fe(i.name)?KCe(i.name.text,[L.createToken(95)],i,t):void 0;default:x.assertNever(i,`Convert to ES6 got invalid prop kind ${i.kind}`)}});return r&&[r,!1]}function HXe(e,t,r,i){let{text:o}=t.left.name,s=i.get(o);if(s!==void 0){let l=[HY(void 0,s,t.right),Lpe([L.createExportSpecifier(!1,s,o)])];r.replaceNodeWithNodes(e,t.parent,l)}else JXe(t,e,r)}function KXe(e,t){let r=e.text,i=t.getSymbolAtLocation(e),o=i?i.exports:IW;return o.has("export=")?[[Ppe(r)],!0]:o.has("default")?o.size>1?[[UCe(r),Ppe(r)],!0]:[[Ppe(r)],!0]:[[UCe(r)],!1]}function UCe(e){return Lpe(void 0,e)}function Ppe(e){return Lpe([L.createExportSpecifier(!1,void 0,"default")],e)}function JXe({left:e,right:t,parent:r},i,o){let s=e.name.text;if((Ps(t)||Os(t)||Zc(t))&&(!t.name||t.name.text===s)){o.replaceRange(i,{pos:e.getStart(i),end:t.getStart(i)},L.createToken(95),{suffix:" "}),t.name||o.insertName(i,t,s);let l=_s(r,27,i);l&&o.delete(i,l)}else o.replaceNodeRangeWithNodes(i,e.expression,_s(e,25,i),[L.createToken(95),L.createToken(87)],{joiner:" ",suffix:" "})}function qXe(e,t,r){let i=[L.createToken(95)];switch(t.kind){case 218:{let{name:s}=t;if(s&&s.text!==e)return o()}case 219:return KCe(e,i,t,r);case 231:return ZXe(e,i,t,r);default:return o()}function o(){return HY(i,L.createIdentifier(e),Mpe(t,r))}}function Mpe(e,t){if(!t||!gt(Wo(t.keys()),i=>rf(e,i)))return e;return To(e)?nX(e,!0,r):aO(e,!0,r);function r(i){if(i.kind===211){let o=t.get(i);return t.delete(i),o}}}function XXe(e,t,r,i,o,s){switch(e.kind){case 206:{let l=PG(e.elements,d=>d.dotDotDotToken||d.initializer||d.propertyName&&!Fe(d.propertyName)||!Fe(d.name)?void 0:qCe(d.propertyName&&d.propertyName.text,d.name.text));if(l)return cM([Hy(void 0,l,t,s)])}case 207:{let l=UY(Kpe(t.text,o),i);return cM([Hy(L.createIdentifier(l),void 0,t,s),HY(void 0,ol(e),L.createIdentifier(l))])}case 80:return YXe(e,t,r,i,s);default:return x.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function YXe(e,t,r,i,o){let s=r.getSymbolAtLocation(e),l=new Map,d=!1,p;for(let m of i.original.get(e.text)){if(r.getSymbolAtLocation(m)!==s||m===e)continue;let{parent:y}=m;if(kr(y)){let{name:{text:E}}=y;if(E==="default"){d=!0;let S=m.getText();(p??(p=new Map)).set(y,L.createIdentifier(S))}else{x.assert(y.expression===m,"Didn't expect expression === use");let S=l.get(E);S===void 0&&(S=UY(E,i),l.set(E,S)),(p??(p=new Map)).set(y,L.createIdentifier(S))}}else d=!0}let h=l.size===0?void 0:Wo(kC(l.entries(),([m,y])=>L.createImportSpecifier(!1,m===y?void 0:L.createIdentifier(m),L.createIdentifier(y))));return h||(d=!0),cM([Hy(d?ol(e):void 0,h,t,o)],p)}function UY(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function $Xe(e){let t=qp();return HCe(e,r=>t.add(r.text,r)),t}function HCe(e,t){Fe(e)&&QXe(e)&&t(e),e.forEachChild(r=>HCe(r,t))}function QXe(e){let{parent:t}=e;switch(t.kind){case 211:return t.name!==e;case 208:return t.propertyName!==e;case 276:return t.propertyName!==e;default:return!0}}function KCe(e,t,r,i){return L.createFunctionDeclaration(Eo(t,sS(r.modifiers)),ol(r.asteriskToken),e,sS(r.typeParameters),sS(r.parameters),ol(r.type),L.converters.convertToFunctionBlock(Mpe(r.body,i)))}function ZXe(e,t,r,i){return L.createClassDeclaration(Eo(t,sS(r.modifiers)),e,sS(r.typeParameters),sS(r.heritageClauses),Mpe(r.members,i))}function JCe(e,t,r,i){return t==="default"?Hy(L.createIdentifier(e),void 0,r,i):Hy(void 0,[qCe(t,e)],r,i)}function qCe(e,t){return L.createImportSpecifier(!1,e!==void 0&&e!==t?L.createIdentifier(e):void 0,L.createIdentifier(t))}function HY(e,t,r){return L.createVariableStatement(e,L.createVariableDeclarationList([L.createVariableDeclaration(t,void 0,void 0,r)],2))}function Lpe(e,t){return L.createExportDeclaration(void 0,!1,e&&L.createNamedExports(e),t===void 0?void 0:L.createStringLiteral(t))}function cM(e,t){return{newImports:e,useSitesToUnqualify:t}}var eYe=bt({"src/services/codefixes/convertToEsModule.ts"(){"use strict";ai(),Ta(),Ea({errorCodes:[f.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){let{sourceFile:t,program:r,preferences:i}=e,o=ur.ChangeTracker.with(e,s=>{if(FXe(t,r.getTypeChecker(),s,ns(r.getCompilerOptions()),of(t,i)))for(let d of r.getSourceFiles())WXe(d,t,r,s,of(d,i))});return[Qm("convertToEsModule",o,f.Convert_to_ES_module)]}})}});function XCe(e,t){let r=Fn(so(e,t),Su);return x.assert(!!r,"Expected position to be owned by a qualified name."),Fe(r.left)?r:void 0}function YCe(e,t,r){let i=r.right.text,o=L.createIndexedAccessTypeNode(L.createTypeReferenceNode(r.left,void 0),L.createLiteralTypeNode(L.createStringLiteral(i)));e.replaceNode(t,r,o)}var KY,kpe,tYe=bt({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){"use strict";ai(),Ta(),KY="correctQualifiedNameToIndexedAccessType",kpe=[f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code],Ea({errorCodes:kpe,getCodeActions(e){let t=XCe(e.sourceFile,e.span.start);if(!t)return;let r=ur.ChangeTracker.with(e,o=>YCe(o,e.sourceFile,t)),i=`${t.left.text}["${t.right.text}"]`;return[oa(KY,r,[f.Rewrite_as_the_indexed_access_type_0,i],KY,f.Rewrite_all_as_indexed_access_types)]},fixIds:[KY],getAllCodeActions:e=>gs(e,kpe,(t,r)=>{let i=XCe(r.file,r.start);i&&YCe(t,r.file,i)})})}});function $Ce(e,t){return ri(so(t,e.start).parent,Kd)}function QCe(e,t,r){if(!t)return;let i=t.parent,o=i.parent,s=nYe(t,r);if(s.length===i.elements.length)e.insertModifierBefore(r.sourceFile,156,i);else{let l=L.updateExportDeclaration(o,o.modifiers,!1,L.updateNamedExports(i,jr(i.elements,p=>!Bo(s,p))),o.moduleSpecifier,void 0),d=L.createExportDeclaration(void 0,!0,L.createNamedExports(s),o.moduleSpecifier,void 0);e.replaceNode(r.sourceFile,o,l,{leadingTriviaOption:ur.LeadingTriviaOption.IncludeAll,trailingTriviaOption:ur.TrailingTriviaOption.Exclude}),e.insertNodeAfter(r.sourceFile,o,d)}}function nYe(e,t){let r=e.parent;if(r.elements.length===1)return r.elements;let i=kde(Iu(r),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return jr(r.elements,o=>{var s;return o===e||((s=Lde(o,i))==null?void 0:s.code)===JY[0]})}var JY,qY,rYe=bt({"src/services/codefixes/convertToTypeOnlyExport.ts"(){"use strict";ai(),Ta(),JY=[f.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],qY="convertToTypeOnlyExport",Ea({errorCodes:JY,getCodeActions:function(t){let r=ur.ChangeTracker.with(t,i=>QCe(i,$Ce(t.span,t.sourceFile),t));if(r.length)return[oa(qY,r,f.Convert_to_type_only_export,qY,f.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[qY],getAllCodeActions:function(t){let r=new Map;return gs(t,JY,(i,o)=>{let s=$Ce(o,t.sourceFile);s&&Em(r,rs(s.parent.parent))&&QCe(i,s,t)})}})}});function ZCe(e,t){let{parent:r}=so(e,t);return Qu(r)||Lc(r)&&r.importClause?r:void 0}function eNe(e,t,r){if(e.parent.parent.name)return!1;let i=e.parent.elements.filter(s=>!s.isTypeOnly);if(i.length===1)return!0;let o=r.getTypeChecker();for(let s of i)if(Ms.Core.eachSymbolReferenceInFile(s.name,o,t,d=>!fE(d)))return!1;return!0}function Y7(e,t,r){var i;if(Qu(r))e.replaceNode(t,r,L.updateImportSpecifier(r,!0,r.propertyName,r.name));else{let o=r.importClause;if(o.name&&o.namedBindings)e.replaceNodeWithNodes(t,r,[L.createImportDeclaration(sS(r.modifiers,!0),L.createImportClause(!0,ol(o.name,!0),void 0),ol(r.moduleSpecifier,!0),ol(r.attributes,!0)),L.createImportDeclaration(sS(r.modifiers,!0),L.createImportClause(!0,void 0,ol(o.namedBindings,!0)),ol(r.moduleSpecifier,!0),ol(r.attributes,!0))]);else{let s=((i=o.namedBindings)==null?void 0:i.kind)===275?L.updateNamedImports(o.namedBindings,Pc(o.namedBindings.elements,d=>L.updateImportSpecifier(d,!1,d.propertyName,d.name))):o.namedBindings,l=L.updateImportDeclaration(r,r.modifiers,L.updateImportClause(o,!0,o.name,s),r.moduleSpecifier,r.attributes);e.replaceNode(t,r,l)}}}var wpe,$7,iYe=bt({"src/services/codefixes/convertToTypeOnlyImport.ts"(){"use strict";ai(),Ta(),wpe=[f.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code,f._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code,f._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],$7="convertToTypeOnlyImport",Ea({errorCodes:wpe,getCodeActions:function(t){var r;let i=ZCe(t.sourceFile,t.span.start);if(i){let o=ur.ChangeTracker.with(t,d=>Y7(d,t.sourceFile,i)),s=i.kind===276&&eNe(i,t.sourceFile,t.program)?ur.ChangeTracker.with(t,d=>Y7(d,t.sourceFile,i.parent.parent.parent)):void 0,l=oa($7,o,i.kind===276?[f.Use_type_0,((r=i.propertyName)==null?void 0:r.text)??i.name.text]:f.Use_import_type,$7,f.Fix_all_with_type_only_imports);return gt(s)?[Qm($7,s,f.Use_import_type),l]:[l]}},fixIds:[$7],getAllCodeActions:function(t){let r=new Set;return gs(t,wpe,(i,o)=>{let s=ZCe(o.file,o.start);s?.kind===272&&!r.has(s)?(Y7(i,o.file,s),r.add(s)):s?.kind===276&&!r.has(s.parent.parent.parent)&&eNe(s,o.file,t.program)?(Y7(i,o.file,s.parent.parent.parent),r.add(s.parent.parent.parent)):s?.kind===276&&Y7(i,o.file,s)})}})}});function tNe(e,t,r,i,o=!1){if(!zT(t))return;let s=aYe(t);if(!s)return;let l=t.parent,{leftSibling:d,rightSibling:p}=oYe(t),h=l.getStart(),m="";!d&&l.comment&&(h=nNe(l,l.getStart(),t.getStart()),m=`${i} */${i}`),d&&(o&&zT(d)?(h=t.getStart(),m=""):(h=nNe(l,d.getStart(),t.getStart()),m=`${i} */${i}`));let y=l.getEnd(),E="";p&&(o&&zT(p)?(y=p.getStart(),E=`${i}${i}`):(y=p.getStart(),E=`${i}/**${i} * `)),e.replaceRange(r,{pos:h,end:y},s,{prefix:m,suffix:E})}function oYe(e){let t=e.parent,r=t.getChildCount()-1,i=t.getChildren().findIndex(l=>l.getStart()===e.getStart()&&l.getEnd()===e.getEnd()),o=i>0?t.getChildAt(i-1):void 0,s=i0;o--)if(!/[*/\s]/g.test(i.substring(o-1,o)))return t+o;return r}function aYe(e){var t;let{typeExpression:r}=e;if(!r)return;let i=(t=e.name)==null?void 0:t.getText();if(i){if(r.kind===329)return sYe(i,r);if(r.kind===316)return lYe(i,r)}}function sYe(e,t){let r=rNe(t);if(gt(r))return L.createInterfaceDeclaration(void 0,e,void 0,void 0,r)}function lYe(e,t){let r=ol(t.type);if(r)return L.createTypeAliasDeclaration(void 0,L.createIdentifier(e),void 0,r)}function rNe(e){let t=e.jsDocPropertyTags;return gt(t)?to(t,i=>{var o;let s=cYe(i),l=(o=i.typeExpression)==null?void 0:o.type,d=i.isBracketed,p;if(l&&FT(l)){let h=rNe(l);p=L.createTypeLiteralNode(h)}else l&&(p=ol(l));if(p&&s){let h=d?L.createToken(58):void 0;return L.createPropertySignature(void 0,s,h,p)}}):void 0}function cYe(e){return e.name.kind===80?e.name.text:e.name.right.text}function dYe(e){return kp(e)?va(e.jsDoc,t=>{var r;return(r=t.tags)==null?void 0:r.filter(i=>zT(i))}):[]}var XY,Ope,uYe=bt({"src/services/codefixes/convertTypedefToType.ts"(){"use strict";ai(),Ta(),XY="convertTypedefToType",Ope=[f.JSDoc_typedef_may_be_converted_to_TypeScript_type.code],Ea({fixIds:[XY],errorCodes:Ope,getCodeActions(e){let t=Ky(e.host,e.formatContext.options),r=so(e.sourceFile,e.span.start);if(!r)return;let i=ur.ChangeTracker.with(e,o=>tNe(o,r,e.sourceFile,t));if(i.length>0)return[oa(XY,i,f.Convert_typedef_to_TypeScript_type,XY,f.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:e=>gs(e,Ope,(t,r)=>{let i=Ky(e.host,e.formatContext.options),o=so(r.file,r.start);o&&tNe(t,o,r.file,i,!0)})})}});function iNe(e,t){let r=so(e,t);if(Fe(r)){let i=na(r.parent.parent,_p),o=r.getText(e);return{container:na(i.parent,gp),typeNode:i.type,constraint:o,name:o==="K"?"P":"K"}}}function oNe(e,t,{container:r,typeNode:i,constraint:o,name:s}){e.replaceNode(t,r,L.createMappedTypeNode(void 0,L.createTypeParameterDeclaration(void 0,s,L.createTypeReferenceNode(o)),void 0,void 0,i,void 0))}var YY,Wpe,pYe=bt({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){"use strict";ai(),Ta(),YY="convertLiteralTypeToMappedType",Wpe=[f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],Ea({errorCodes:Wpe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=iNe(r,i.start);if(!o)return;let{name:s,constraint:l}=o,d=ur.ChangeTracker.with(t,p=>oNe(p,r,o));return[oa(YY,d,[f.Convert_0_to_1_in_0,l,s],YY,f.Convert_all_type_literals_to_mapped_type)]},fixIds:[YY],getAllCodeActions:e=>gs(e,Wpe,(t,r)=>{let i=iNe(r.file,r.start);i&&oNe(t,r.file,i)})})}});function aNe(e,t){return x.checkDefined(ad(so(e,t)),"There should be a containing class")}function sNe(e){return!e.valueDeclaration||!(lu(e.valueDeclaration)&2)}function lNe(e,t,r,i,o,s){let l=e.program.getTypeChecker(),d=fYe(i,l),p=l.getTypeAtLocation(t),m=l.getPropertiesOfType(p).filter(EW(sNe,D=>!d.has(D.escapedName))),y=l.getTypeAtLocation(i),E=Vr(i.members,D=>Pl(D));y.getNumberIndexType()||A(p,1),y.getStringIndexType()||A(p,0);let S=x1(r,e.program,s,e.host);Hfe(i,m,r,e,s,S,D=>N(r,i,D)),S.writeFixes(o);function A(D,w){let j=l.getIndexInfoOfType(D,w);j&&N(r,i,l.indexInfoToIndexSignatureDeclaration(j,i,void 0,AD(e)))}function N(D,w,j){E?o.insertNodeAfter(D,E,j):o.insertMemberAtStart(D,w,j)}}function fYe(e,t){let r=S_(e);if(!r)return aa();let i=t.getTypeAtLocation(r),o=t.getPropertiesOfType(i);return aa(o.filter(sNe))}var Fpe,$Y,mYe=bt({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){"use strict";ai(),Ta(),Fpe=[f.Class_0_incorrectly_implements_interface_1.code,f.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],$Y="fixClassIncorrectlyImplementsInterface",Ea({errorCodes:Fpe,getCodeActions(e){let{sourceFile:t,span:r}=e,i=aNe(t,r.start);return to(aR(i),o=>{let s=ur.ChangeTracker.with(e,l=>lNe(e,o,t,i,l,e.preferences));return s.length===0?void 0:oa($Y,s,[f.Implement_interface_0,o.getText(t)],$Y,f.Implement_all_unimplemented_interfaces)})},fixIds:[$Y],getAllCodeActions(e){let t=new Map;return gs(e,Fpe,(r,i)=>{let o=aNe(i.file,i.start);if(Em(t,rs(o)))for(let s of aR(o))lNe(e,s,i.file,o,r,e.preferences)})}})}});function x1(e,t,r,i,o){return cNe(e,t,!1,r,i,o)}function cNe(e,t,r,i,o,s){let l=t.getCompilerOptions(),d=[],p=[],h=new Map,m=new Map;return{addImportFromDiagnostic:y,addImportFromExportedSymbol:E,writeFixes:A,hasFixes:N};function y(D,w){let j=_Ne(w,D.code,D.start,r);!j||!j.length||S(Va(j))}function E(D,w){let j=x.checkDefined(D.parent),K=p7(D,ns(l)),Y=t.getTypeChecker(),B=Y.getMergedSymbol(vd(D,Y)),ce=pNe(e,B,K,j,!1,t,o,i,s),z=ZY(e,t),Z=dNe(e,x.checkDefined(ce),t,void 0,!!w,z,o,i);Z&&S({fix:Z,symbolName:K,errorIdentifierText:void 0})}function S(D){var w,j;let{fix:K,symbolName:Y}=D;switch(K.kind){case 0:d.push(K);break;case 1:p.push(K);break;case 2:{let{importClauseOrBindingPattern:Z,importKind:me,addAsTypeOnly:ge}=K,q=String(rs(Z)),J=h.get(q);if(J||h.set(q,J={importClauseOrBindingPattern:Z,defaultImport:void 0,namedImports:new Map}),me===0){let re=J?.namedImports.get(Y);J.namedImports.set(Y,B(re,ge))}else x.assert(J.defaultImport===void 0||J.defaultImport.name===Y,"(Add to Existing) Default import should be missing or match symbolName"),J.defaultImport={name:Y,addAsTypeOnly:B((w=J.defaultImport)==null?void 0:w.addAsTypeOnly,ge)};break}case 3:{let{moduleSpecifier:Z,importKind:me,useRequire:ge,addAsTypeOnly:q}=K,J=ce(Z,me,ge,q);switch(x.assert(J.useRequire===ge,"(Add new) Tried to add an `import` and a `require` for the same module"),me){case 1:x.assert(J.defaultImport===void 0||J.defaultImport.name===Y,"(Add new) Default import should be missing or match symbolName"),J.defaultImport={name:Y,addAsTypeOnly:B((j=J.defaultImport)==null?void 0:j.addAsTypeOnly,q)};break;case 0:let re=(J.namedImports||(J.namedImports=new Map)).get(Y);J.namedImports.set(Y,B(re,q));break;case 3:case 2:x.assert(J.namespaceLikeImport===void 0||J.namespaceLikeImport.name===Y,"Namespacelike import shoudl be missing or match symbolName"),J.namespaceLikeImport={importKind:me,name:Y,addAsTypeOnly:q};break}break}case 4:break;default:x.assertNever(K,`fix wasn't never - got kind ${K.kind}`)}function B(Z,me){return Math.max(Z??0,me)}function ce(Z,me,ge,q){let J=z(Z,!0),re=z(Z,!1),pe=m.get(J),xe=m.get(re),fe={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:ge};return me===1&&q===2?pe||(m.set(J,fe),fe):q===1&&(pe||xe)?pe||xe:xe||(m.set(re,fe),fe)}function z(Z,me){return`${me?1:0}|${Z}`}}function A(D,w){let j;e.imports.length===0&&w!==void 0?j=w:j=of(e,i);for(let Y of d)jpe(D,e,Y);for(let Y of p)SNe(D,e,Y,j);h.forEach(({importClauseOrBindingPattern:Y,defaultImport:B,namedImports:ce})=>{ENe(D,e,Y,B,Wo(ce.entries(),([z,Z])=>({addAsTypeOnly:Z,name:z})),i)});let K;m.forEach(({useRequire:Y,defaultImport:B,namedImports:ce,namespaceLikeImport:z},Z)=>{let me=Z.slice(2),q=(Y?INe:ANe)(me,j,B,ce&&Wo(ce.entries(),([J,re])=>({addAsTypeOnly:re,name:J})),z,l,i);K=vx(K,q)}),K&&$P(D,e,K,!0,i)}function N(){return d.length>0||p.length>0||h.size>0||m.size>0}}function _Ye(e,t,r,i){let o=iM(e,i,r),s=fNe(t.getTypeChecker(),e,t.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:l};function l(d,p,h,m){let{fixes:y,computedWithoutCacheCount:E}=QY(d,p,h,!1,t,e,r,i,s,m),S=hNe(y,e,t,o,r);return S&&{...S,computedWithoutCacheCount:E}}}function hYe(e,t,r,i,o,s,l,d,p,h,m,y){let E;r?(E=fO(i,l,d,m,y).get(i.path,r),x.assertIsDefined(E,"Some exportInfo should match the specified exportMapKey")):(E=sV(Yf(t.name))?[yYe(e,o,t,d,l)]:pNe(i,e,o,t,s,d,l,m,y),x.assertIsDefined(E,"Some exportInfo should match the specified symbol / moduleSymbol"));let S=ZY(i,d),A=fE(so(i,h)),N=x.checkDefined(dNe(i,E,d,h,A,S,l,m));return{moduleSpecifier:N.moduleSpecifier,codeAction:uNe(Vpe({host:l,formatContext:p,preferences:m},i,o,N,!1,d,m))}}function gYe(e,t,r,i,o,s){let l=r.getCompilerOptions(),d=FG(Gpe(e,r.getTypeChecker(),t,l)),p=vNe(e,t,d,r),h=d!==t.text;return p&&uNe(Vpe({host:i,formatContext:o,preferences:s},e,d,p,h,r,s))}function dNe(e,t,r,i,o,s,l,d){let p=iM(e,d,l);return hNe(QY(t,i,o,s,r,e,l,d).fixes,e,r,p,l)}function uNe({description:e,changes:t,commands:r}){return{description:e,changes:t,commands:r}}function pNe(e,t,r,i,o,s,l,d,p){let h=mNe(s,l);return fO(e,l,s,d,p).search(e.path,o,m=>m===r,m=>{if(vd(m[0].symbol,h(m[0].isFromPackageJson))===t&&m.some(y=>y.moduleSymbol===i||y.symbol.parent===i))return m})}function yYe(e,t,r,i,o){var s,l;let d=i.getCompilerOptions(),p=m(i.getTypeChecker(),!1);if(p)return p;let h=(l=(s=o.getPackageJsonAutoImportProvider)==null?void 0:s.call(o))==null?void 0:l.getTypeChecker();return x.checkDefined(h&&m(h,!0),"Could not find symbol in specified module for code actions");function m(y,E){let S=v7(r,y,d);if(S&&vd(S.symbol,y)===e)return{symbol:S.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:S.exportKind,targetFlags:vd(e,y).flags,isFromPackageJson:E};let A=y.tryGetMemberInModuleExportsAndProperties(t,r);if(A&&vd(A,y)===e)return{symbol:A,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:vd(e,y).flags,isFromPackageJson:E}}}function QY(e,t,r,i,o,s,l,d,p=fNe(o.getTypeChecker(),s,o.getCompilerOptions()),h){let m=o.getTypeChecker(),y=va(e,p.getImportsForExportInfo),E=t!==void 0&&vYe(y,t),S=EYe(y,r,m,o.getCompilerOptions());if(S)return{computedWithoutCacheCount:0,fixes:[...E?[E]:Xe,S]};let{fixes:A,computedWithoutCacheCount:N=0}=TYe(e,y,o,s,t,r,i,l,d,h);return{computedWithoutCacheCount:N,fixes:[...E?[E]:Xe,...A]}}function vYe(e,t){return Wl(e,({declaration:r,importKind:i})=>{var o;if(i!==0)return;let s=bYe(r),l=s&&((o=eR(r))==null?void 0:o.text);if(l)return{kind:0,namespacePrefix:s,usagePosition:t,moduleSpecifier:l}})}function bYe(e){var t,r,i;switch(e.kind){case 260:return(t=ri(e.name,Fe))==null?void 0:t.text;case 271:return e.name.text;case 272:return(i=ri((r=e.importClause)==null?void 0:r.namedBindings,Xv))==null?void 0:i.name.text;default:return x.assertNever(e)}}function zpe(e,t,r,i,o,s){return e?t&&s.importsNotUsedAsValues===2||rU(s)&&(!(i&111551)||o.getTypeOnlyAliasDeclaration(r))?2:1:4}function EYe(e,t,r,i){let o;for(let l of e){let d=s(l);if(!d)continue;let p=e2(d.importClauseOrBindingPattern);if(d.addAsTypeOnly!==4&&p||d.addAsTypeOnly===4&&!p)return d;o??(o=d)}return o;function s({declaration:l,importKind:d,symbol:p,targetFlags:h}){if(d===3||d===2||l.kind===271)return;if(l.kind===260)return(d===0||d===1)&&l.name.kind===206?{kind:2,importClauseOrBindingPattern:l.name,importKind:d,moduleSpecifier:l.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;let{importClause:m}=l;if(!m||!as(l.moduleSpecifier))return;let{name:y,namedBindings:E}=m;if(m.isTypeOnly&&!(d===0&&E))return;let S=zpe(t,!1,p,h,r,i);if(!(d===1&&(y||S===2&&E))&&!(d===0&&E?.kind===274))return{kind:2,importClauseOrBindingPattern:m,importKind:d,moduleSpecifier:l.moduleSpecifier.text,addAsTypeOnly:S}}}function fNe(e,t,r){let i;for(let o of t.imports){let s=yN(o);if(KF(s.parent)){let l=e.resolveExternalModuleName(o);l&&(i||(i=qp())).add(ba(l),s.parent)}else if(s.kind===272||s.kind===271){let l=e.getSymbolAtLocation(o);l&&(i||(i=qp())).add(ba(l),s)}}return{getImportsForExportInfo:({moduleSymbol:o,exportKind:s,targetFlags:l,symbol:d})=>{if(!(l&111551)&&su(t))return Xe;let p=i?.get(ba(o));if(!p)return Xe;let h=Bpe(t,s,r);return p.map(m=>({declaration:m,importKind:h,symbol:d,targetFlags:l}))}}}function ZY(e,t){if(!su(e))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;let r=t.getCompilerOptions();if(r.configFile)return Ld(r)<5;if(e.impliedNodeFormat===1)return!0;if(e.impliedNodeFormat===99)return!1;for(let i of t.getSourceFiles())if(!(i===e||!su(i)||t.isSourceFileFromExternalLibrary(i))){if(i.commonJsModuleIndicator&&!i.externalModuleIndicator)return!0;if(i.externalModuleIndicator&&!i.commonJsModuleIndicator)return!1}return!0}function mNe(e,t){return oh(r=>r?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function SYe(e,t,r,i,o,s,l,d,p){let h=su(t),m=e.getCompilerOptions(),y=YT(e,l),E=mNe(e,l),S=du(m),A=qz(S),N=p?j=>({moduleSpecifiers:eS.tryGetModuleSpecifiersFromCache(j,t,y,d),computedWithoutCache:!1}):(j,K)=>eS.getModuleSpecifiersWithCacheInfo(j,K,m,t,y,d,void 0,!0),D=0,w=va(s,(j,K)=>{let Y=E(j.isFromPackageJson),{computedWithoutCache:B,moduleSpecifiers:ce}=N(j.moduleSymbol,Y),z=!!(j.targetFlags&111551),Z=zpe(i,!0,j.symbol,j.targetFlags,Y,m);return D+=B?1:0,to(ce,me=>{var ge;if(A&&TE(me))return;if(!z&&h&&r!==void 0)return{kind:1,moduleSpecifier:me,usagePosition:r,exportInfo:j,isReExport:K>0};let q=Bpe(t,j.exportKind,m),J;if(r!==void 0&&q===3&&j.exportKind===0){let re=Y.resolveExternalModuleSymbol(j.moduleSymbol),pe;re!==j.moduleSymbol&&(pe=(ge=b7(re,Y,m))==null?void 0:ge.name),pe||(pe=Hpe(j.moduleSymbol,ns(m),!1)),J={namespacePrefix:pe,usagePosition:r}}return{kind:3,moduleSpecifier:me,importKind:q,useRequire:o,addAsTypeOnly:Z,exportInfo:j,isReExport:K>0,qualification:J}})});return{computedWithoutCacheCount:D,fixes:w}}function TYe(e,t,r,i,o,s,l,d,p,h){let m=Wl(t,y=>AYe(y,s,l,r.getTypeChecker(),r.getCompilerOptions()));return m?{fixes:[m]}:SYe(r,i,o,s,l,e,d,p,h)}function AYe({declaration:e,importKind:t,symbol:r,targetFlags:i},o,s,l,d){var p;let h=(p=eR(e))==null?void 0:p.text;if(h){let m=s?4:zpe(o,!0,r,i,l,d);return{kind:3,moduleSpecifier:h,importKind:t,addAsTypeOnly:m,useRequire:s}}}function _Ne(e,t,r,i){let o=so(e.sourceFile,r),s;if(t===f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)s=DYe(e,o);else if(Fe(o))if(t===f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){let d=FG(Gpe(e.sourceFile,e.program.getTypeChecker(),o,e.program.getCompilerOptions())),p=vNe(e.sourceFile,o,d,e.program);return p&&[{fix:p,symbolName:d,errorIdentifierText:o.text}]}else s=PYe(e,o,i);else return;let l=iM(e.sourceFile,e.preferences,e.host);return s&&IYe(s,e.sourceFile,e.program,l,e.host)}function IYe(e,t,r,i,o){let s=l=>tl(l,o.getCurrentDirectory(),My(o));return ZS(e,(l,d)=>bv(!!l.isJsxNamespaceFix,!!d.isJsxNamespaceFix)||Zs(l.fix.kind,d.fix.kind)||gNe(l.fix,d.fix,t,r,i.allowsImportingSpecifier,s))}function hNe(e,t,r,i,o){if(gt(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((s,l)=>gNe(l,s,t,r,i.allowsImportingSpecifier,d=>tl(d,o.getCurrentDirectory(),My(o)))===-1?l:s)}function gNe(e,t,r,i,o,s){return e.kind!==0&&t.kind!==0?bv(o(t.moduleSpecifier),o(e.moduleSpecifier))||RYe(e.moduleSpecifier,t.moduleSpecifier,r,i)||bv(yNe(e,r,i.getCompilerOptions(),s),yNe(t,r,i.getCompilerOptions(),s))||sk(e.moduleSpecifier,t.moduleSpecifier):0}function yNe(e,t,r,i){var o;if(e.isReExport&&((o=e.exportInfo)!=null&&o.moduleFileName)&&xYe(e.exportInfo.moduleFileName)){let s=i(oi(e.exportInfo.moduleFileName));return ao(t.path,s)}return!1}function xYe(e){return nc(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function RYe(e,t,r,i){return ao(e,"node:")&&!ao(t,"node:")?m7(r,i)?-1:1:ao(t,"node:")&&!ao(e,"node:")?m7(r,i)?1:-1:0}function DYe({sourceFile:e,program:t,host:r,preferences:i},o){let s=t.getTypeChecker(),l=CYe(o,s);if(!l)return;let d=s.getAliasedSymbol(l),p=l.name,h=[{symbol:l,moduleSymbol:d,moduleFileName:void 0,exportKind:3,targetFlags:d.flags,isFromPackageJson:!1}],m=ZY(e,t);return QY(h,void 0,!1,m,t,e,r,i).fixes.map(E=>{var S;return{fix:E,symbolName:p,errorIdentifierText:(S=ri(o,Fe))==null?void 0:S.text}})}function CYe(e,t){let r=Fe(e)?t.getSymbolAtLocation(e):void 0;if(b6(r))return r;let{parent:i}=e;if(au(i)&&i.tagName===e||i1(i)){let o=t.resolveName(t.getJsxNamespace(i),au(i)?e:i,111551,!1);if(b6(o))return o}}function Bpe(e,t,r,i){if(r.verbatimModuleSyntax&&(Ld(r)===1||e.impliedNodeFormat===1))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return kYe(e,r,!!i);case 3:return NYe(e,r,!!i);default:return x.assertNever(t)}}function NYe(e,t,r){if(RT(t))return 1;let i=Ld(t);switch(i){case 2:case 1:case 3:return ir(e)&&(oc(e)||r)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:case 200:return 2;case 100:case 199:return e.impliedNodeFormat===99?2:3;default:return x.assertNever(i,`Unexpected moduleKind ${i}`)}}function PYe({sourceFile:e,program:t,cancellationToken:r,host:i,preferences:o},s,l){let d=t.getTypeChecker(),p=t.getCompilerOptions();return va(Gpe(e,d,s,p),h=>{if(h==="default")return;let m=fE(s),y=ZY(e,t),E=LYe(h,$x(s),qT(s),r,e,t,l,i,o);return Wo(NG(E.values(),S=>QY(S,s.getStart(e),m,y,t,e,i,o).fixes),S=>({fix:S,symbolName:h,errorIdentifierText:s.text,isJsxNamespaceFix:h!==s.text}))})}function vNe(e,t,r,i){let o=i.getTypeChecker(),s=o.resolveName(r,t,111551,!0);if(!s)return;let l=o.getTypeOnlyAliasDeclaration(s);if(!(!l||Gn(l)!==e))return{kind:4,typeOnlyAliasDeclaration:l}}function Gpe(e,t,r,i){let o=r.parent;if((au(o)||K0(o))&&o.tagName===r&&mX(i.jsx)){let s=t.getJsxNamespace(e);if(MYe(s,r,t))return!dR(r.text)&&!t.resolveName(r.text,r,111551,!1)?[r.text,s]:[s]}return[r.text]}function MYe(e,t,r){if(dR(t.text))return!0;let i=r.resolveName(e,t,111551,!0);return!i||gt(i.declarations,iE)&&!(i.flags&111551)}function LYe(e,t,r,i,o,s,l,d,p){var h;let m=qp(),y=iM(o,p,d),E=(h=d.getModuleSpecifierCache)==null?void 0:h.call(d),S=oh(N=>YT(N?d.getPackageJsonAutoImportProvider():s,d));function A(N,D,w,j,K,Y){let B=S(Y);if(D&&EX(K,o,D,p,y,B,E)||!D&&y.allowsImportingAmbientModule(N,B)){let ce=K.getTypeChecker();m.add(Ade(w,ce).toString(),{symbol:w,moduleSymbol:N,moduleFileName:D?.fileName,exportKind:j,targetFlags:vd(w,ce).flags,isFromPackageJson:Y})}}return SX(s,d,p,l,(N,D,w,j)=>{let K=w.getTypeChecker();i.throwIfCancellationRequested();let Y=w.getCompilerOptions(),B=v7(N,K,Y);B&&(B.name===e||Hpe(N,ns(Y),t)===e)&&RNe(B.resolvedSymbol,r)&&A(N,D,B.symbol,B.exportKind,w,j);let ce=K.tryGetMemberInModuleExportsAndProperties(e,N);ce&&RNe(ce,r)&&A(N,D,ce,0,w,j)}),m}function kYe(e,t,r){let i=RT(t),o=ir(e);if(!o&&Ld(t)>=5)return i?1:2;if(o)return oc(e)||r?i?1:2:3;for(let s of e.statements)if(td(s)&&!Fl(s.moduleReference))return 3;return i?1:3}function Vpe(e,t,r,i,o,s,l){let d,p=ur.ChangeTracker.with(e,h=>{d=wYe(h,t,r,i,o,s,l)});return oa(Jpe,p,d,qpe,f.Add_all_missing_imports)}function wYe(e,t,r,i,o,s,l){let d=of(t,l);switch(i.kind){case 0:return jpe(e,t,i),[f.Change_0_to_1,r,`${i.namespacePrefix}.${r}`];case 1:return SNe(e,t,i,d),[f.Change_0_to_1,r,TNe(i.moduleSpecifier,d)+r];case 2:{let{importClauseOrBindingPattern:p,importKind:h,addAsTypeOnly:m,moduleSpecifier:y}=i;ENe(e,t,p,h===1?{name:r,addAsTypeOnly:m}:void 0,h===0?[{name:r,addAsTypeOnly:m}]:Xe,l);let E=Yf(y);return o?[f.Import_0_from_1,r,E]:[f.Update_import_from_0,E]}case 3:{let{importKind:p,moduleSpecifier:h,addAsTypeOnly:m,useRequire:y,qualification:E}=i,S=y?INe:ANe,A=p===1?{name:r,addAsTypeOnly:m}:void 0,N=p===0?[{name:r,addAsTypeOnly:m}]:void 0,D=p===2||p===3?{importKind:p,name:E?.namespacePrefix||r,addAsTypeOnly:m}:void 0;return $P(e,t,S(h,d,A,N,D,s.getCompilerOptions(),l),!0,l),E&&jpe(e,t,E),o?[f.Import_0_from_1,r,h]:[f.Add_import_from_0,h]}case 4:{let{typeOnlyAliasDeclaration:p}=i,h=OYe(e,p,s,t,l);return h.kind===276?[f.Remove_type_from_import_of_0_from_1,r,bNe(h.parent.parent)]:[f.Remove_type_from_import_declaration_from_0,bNe(h)]}default:return x.assertNever(i,`Unexpected fix kind ${i.kind}`)}}function bNe(e){var t,r;return e.kind===271?((r=ri((t=ri(e.moduleReference,vh))==null?void 0:t.expression,as))==null?void 0:r.text)||e.moduleReference.getText():na(e.parent.moduleSpecifier,Da).text}function OYe(e,t,r,i,o){let s=r.getCompilerOptions(),l=rU(s);switch(t.kind){case 276:if(t.isTypeOnly){let p=Rm.detectImportSpecifierSorting(t.parent.elements,o);if(t.parent.elements.length>1&&p){let h=L.updateImportSpecifier(t,!1,t.propertyName,t.name),m=Rm.getOrganizeImportsComparer(o,p===2),y=Rm.getImportSpecifierInsertionIndex(t.parent.elements,h,m,o);if(y!==t.parent.elements.indexOf(t))return e.delete(i,t),e.insertImportSpecifierAtIndex(i,h,t.parent,y),t}return e.deleteRange(i,{pos:oE(t.getFirstToken()),end:oE(t.propertyName??t.name)}),t}else return x.assert(t.parent.parent.isTypeOnly),d(t.parent.parent),t.parent.parent;case 273:return d(t),t;case 274:return d(t.parent),t.parent;case 271:return e.deleteRange(i,t.getChildAt(1)),t;default:x.failBadSyntaxKind(t)}function d(p){var h;if(e.delete(i,Hq(p,i)),!s.allowImportingTsExtensions){let m=eR(p.parent),y=m&&((h=r.getResolvedModuleFromModuleSpecifier(m))==null?void 0:h.resolvedModule);if(y?.resolvedUsingTsExtension){let E=OL(m.text,K3(m.text,s));e.replaceNode(i,m,L.createStringLiteral(E))}}if(l){let m=ri(p.namedBindings,zg);if(m&&m.elements.length>1){Rm.detectImportSpecifierSorting(m.elements,o)&&t.kind===276&&m.elements.indexOf(t)!==0&&(e.delete(i,t),e.insertImportSpecifierAtIndex(i,t,m,0));for(let y of m.elements)y!==t&&!y.isTypeOnly&&e.insertModifierBefore(i,156,y)}}}}function ENe(e,t,r,i,o,s){var l;if(r.kind===206){i&&h(r,i.name,"default");for(let m of o)h(r,m.name,void 0);return}let d=r.isTypeOnly&>([i,...o],m=>m?.addAsTypeOnly===4),p=r.namedBindings&&((l=ri(r.namedBindings,zg))==null?void 0:l.elements);if(i&&(x.assert(!r.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,r.getStart(t),L.createIdentifier(i.name),{suffix:", "})),o.length){let m;if(typeof s.organizeImportsIgnoreCase=="boolean")m=s.organizeImportsIgnoreCase;else if(p){let A=Rm.detectImportSpecifierSorting(p,s);A!==3&&(m=A===2)}m===void 0&&(m=Rm.detectSorting(t,s)===2);let y=Rm.getOrganizeImportsComparer(s,m),E=vy(o.map(A=>L.createImportSpecifier((!r.isTypeOnly||d)&&e$(A,s),void 0,L.createIdentifier(A.name))),(A,N)=>Rm.compareImportOrExportSpecifiers(A,N,y)),S=p?.length&&Rm.detectImportSpecifierSorting(p,s);if(S&&!(m&&S===1))for(let A of E){let N=d&&!A.isTypeOnly?0:Rm.getImportSpecifierInsertionIndex(p,A,y,s);e.insertImportSpecifierAtIndex(t,A,r.namedBindings,N)}else if(p?.length)for(let A of E)e.insertNodeInListAfter(t,Ja(p),A,p);else if(E.length){let A=L.createNamedImports(E);r.namedBindings?e.replaceNode(t,r.namedBindings,A):e.insertNodeAfter(t,x.checkDefined(r.name,"Import clause must have either named imports or a default import"),A)}}if(d&&(e.delete(t,Hq(r,t)),p))for(let m of p)e.insertModifierBefore(t,156,m);function h(m,y,E){let S=L.createBindingElement(void 0,E,y);m.elements.length?e.insertNodeInListAfter(t,Ja(m.elements),S):e.replaceNode(t,m,L.createObjectBindingPattern([S]))}}function jpe(e,t,{namespacePrefix:r,usagePosition:i}){e.insertText(t,i,r+".")}function SNe(e,t,{moduleSpecifier:r,usagePosition:i},o){e.insertText(t,i,TNe(r,o))}function TNe(e,t){let r=Uq(t);return`import(${r}${e}${r}).`}function Upe({addAsTypeOnly:e}){return e===2}function e$(e,t){return Upe(e)||!!t.preferTypeOnlyAutoImports&&e.addAsTypeOnly!==4}function ANe(e,t,r,i,o,s,l){let d=b1(e,t),p;if(r!==void 0||i?.length){let h=(!r||Upe(r))&&oo(i,Upe)||(s.verbatimModuleSyntax||l.preferTypeOnlyAutoImports)&&r?.addAsTypeOnly!==4&&!gt(i,m=>m.addAsTypeOnly===4);p=vx(p,Hy(r&&L.createIdentifier(r.name),i?.map(m=>L.createImportSpecifier(!h&&e$(m,l),void 0,L.createIdentifier(m.name))),e,t,h))}if(o){let h=o.importKind===3?L.createImportEqualsDeclaration(void 0,e$(o,l),L.createIdentifier(o.name),L.createExternalModuleReference(d)):L.createImportDeclaration(void 0,L.createImportClause(e$(o,l),void 0,L.createNamespaceImport(L.createIdentifier(o.name))),d,void 0);p=vx(p,h)}return x.checkDefined(p)}function INe(e,t,r,i,o){let s=b1(e,t),l;if(r||i?.length){let d=i?.map(({name:h})=>L.createBindingElement(void 0,void 0,h))||[];r&&d.unshift(L.createBindingElement(void 0,"default",r.name));let p=xNe(L.createObjectBindingPattern(d),s);l=vx(l,p)}if(o){let d=xNe(o.name,s);l=vx(l,d)}return x.checkDefined(l)}function xNe(e,t){return L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(typeof e=="string"?L.createIdentifier(e):e,void 0,void 0,L.createCallExpression(L.createIdentifier("require"),void 0,[t]))],2))}function RNe({declarations:e},t){return gt(e,r=>!!(jw(r)&t))}function Hpe(e,t,r){return Kpe(Eu(Yf(e.name)),t,r)}function Kpe(e,t,r){let i=nc(Sx(e,"/index")),o="",s=!0,l=i.charCodeAt(0);Uh(l,t)?(o+=String.fromCharCode(l),r&&(o=o.toUpperCase())):s=!1;for(let d=1;dVpe(e,i,p,d,p!==h,s,r))},fixIds:[qpe],getAllCodeActions:e=>{let{sourceFile:t,program:r,preferences:i,host:o,cancellationToken:s}=e,l=cNe(t,r,!0,i,o,s);return SD(e,Xpe,d=>l.addImportFromDiagnostic(d,e)),ED(ur.ChangeTracker.with(e,l.writeFixes))}})}});function DNe(e,t,r){let i=Vr(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;let o=Vr(i.relatedInformation,l=>l.code===f.This_type_parameter_might_need_an_extends_0_constraint.code);if(o===void 0||o.file===void 0||o.start===void 0||o.length===void 0)return;let s=Qfe(o.file,gd(o.start,o.length));if(s!==void 0&&(Fe(s)&&fl(s.parent)&&(s=s.parent),fl(s))){if(CR(s.parent))return;let l=so(t,r.start),d=e.getTypeChecker();return{constraint:zYe(d,l)||FYe(o.messageText),declaration:s,token:l}}}function CNe(e,t,r,i,o,s){let{declaration:l,constraint:d}=s,p=t.getTypeChecker();if(No(d))e.insertText(o,l.name.end,` extends ${d}`);else{let h=ns(t.getCompilerOptions()),m=AD({program:t,host:i}),y=x1(o,t,r,i),E=F$(p,y,d,void 0,h,void 0,m);E&&(e.replaceNode(o,l,L.updateTypeParameterDeclaration(l,void 0,l.name,E,l.default)),y.writeFixes(e))}}function FYe(e){let[,t]=k_(e,` -`,0).match(/`extends (.*)`/)||[];return t}function zYe(e,t){return ji(t.parent)?e.getTypeArgumentConstraint(t.parent):(ht(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var t$,Ype,BYe=bt({"src/services/codefixes/fixAddMissingConstraint.ts"(){"use strict";ai(),Ta(),t$="addMissingConstraint",Ype=[f.Type_0_is_not_comparable_to_type_1.code,f.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,f.Type_0_is_not_assignable_to_type_1.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,f.Property_0_is_incompatible_with_index_signature.code,f.Property_0_in_type_1_is_not_assignable_to_type_2.code,f.Type_0_does_not_satisfy_the_constraint_1.code],Ea({errorCodes:Ype,getCodeActions(e){let{sourceFile:t,span:r,program:i,preferences:o,host:s}=e,l=DNe(i,t,r);if(l===void 0)return;let d=ur.ChangeTracker.with(e,p=>CNe(p,i,o,s,t,l));return[oa(t$,d,f.Add_extends_constraint,t$,f.Add_extends_constraint_to_all_type_parameters)]},fixIds:[t$],getAllCodeActions:e=>{let{program:t,preferences:r,host:i}=e,o=new Map;return ED(ur.ChangeTracker.with(e,s=>{SD(e,Ype,l=>{let d=DNe(t,l.file,gd(l.start,l.length));if(d&&Em(o,rs(d.declaration)))return CNe(s,t,r,i,l.file,d)})}))}})}});function NNe(e,t,r,i){switch(r){case f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return GYe(e,t.sourceFile,i);case f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return VYe(e,t.sourceFile,i);default:x.fail("Unexpected error code: "+r)}}function GYe(e,t,r){let i=MNe(t,r);if(su(t)){e.addJSDocTags(t,i,[L.createJSDocOverrideTag(L.createIdentifier("override"))]);return}let o=i.modifiers||Xe,s=Vr(o,qI),l=Vr(o,aae),d=Vr(o,y=>kq(y.kind)),p=sI(o,bd),h=l?l.end:s?s.end:d?d.end:p?Na(t.text,p.end):i.getStart(t),m=d||s||l?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,h,164,m)}function VYe(e,t,r){let i=MNe(t,r);if(su(t)){e.filterJSDocTags(t,i,SW(U4));return}let o=Vr(i.modifiers,sae);x.assertIsDefined(o),e.deleteModifier(t,o)}function PNe(e){switch(e.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return dp(e,e.parent);default:return!1}}function MNe(e,t){let r=so(e,t),i=Fn(r,o=>ci(o)?"quit":PNe(o));return x.assert(i&&PNe(i)),i}var $pe,dM,wO,Qpe,Zpe,jYe=bt({"src/services/codefixes/fixOverrideModifier.ts"(){"use strict";ai(),Ta(),$pe="fixOverrideModifier",dM="fixAddOverrideModifier",wO="fixRemoveOverrideModifier",Qpe=[f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],Zpe={[f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:dM,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:dM,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:f.Remove_override_modifier,fixId:wO,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers},[f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:f.Remove_override_modifier,fixId:wO,fixAllDescriptions:f.Remove_override_modifier},[f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:dM,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:dM,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:dM,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers},[f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:f.Remove_override_modifier,fixId:wO,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers},[f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:f.Remove_override_modifier,fixId:wO,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers}},Ea({errorCodes:Qpe,getCodeActions:function(t){let{errorCode:r,span:i}=t,o=Zpe[r];if(!o)return Xe;let{descriptions:s,fixId:l,fixAllDescriptions:d}=o,p=ur.ChangeTracker.with(t,h=>NNe(h,t,r,i.start));return[upe($pe,p,s,l,d)]},fixIds:[$pe,dM,wO],getAllCodeActions:e=>gs(e,Qpe,(t,r)=>{let{code:i,start:o}=r,s=Zpe[i];!s||s.fixId!==e.fixId||NNe(t,e,i,o)})})}});function LNe(e,t,r,i){let o=of(t,i),s=L.createStringLiteral(r.name.text,o===0);e.replaceNode(t,r,oF(r)?L.createElementAccessChain(r.expression,r.questionDotToken,s):L.createElementAccessExpression(r.expression,s))}function kNe(e,t){return na(so(e,t).parent,kr)}var n$,efe,UYe=bt({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){"use strict";ai(),Ta(),n$="fixNoPropertyAccessFromIndexSignature",efe=[f.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],Ea({errorCodes:efe,fixIds:[n$],getCodeActions(e){let{sourceFile:t,span:r,preferences:i}=e,o=kNe(t,r.start),s=ur.ChangeTracker.with(e,l=>LNe(l,e.sourceFile,o,i));return[oa(n$,s,[f.Use_element_access_for_0,o.name.text],n$,f.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>gs(e,efe,(t,r)=>LNe(t,r.file,kNe(r.file,r.start),e.preferences))})}});function wNe(e,t,r,i){let o=so(t,r);if(!sD(o))return;let s=Lu(o,!1,!1);if(!(!Ec(s)&&!Ps(s))&&!Yi(Lu(s,!1,!1))){let l=x.checkDefined(_s(s,100,t)),{name:d}=s,p=x.checkDefined(s.body);return Ps(s)?d&&Ms.Core.isSymbolReferencedInFile(d,i,t,p)?void 0:(e.delete(t,l),d&&e.delete(t,d),e.insertText(t,p.pos," =>"),[f.Convert_function_expression_0_to_arrow_function,d?d.text:y7]):(e.replaceNode(t,l,L.createToken(87)),e.insertText(t,d.end," = "),e.insertText(t,p.pos," =>"),[f.Convert_function_declaration_0_to_arrow_function,d.text])}}var r$,tfe,HYe=bt({"src/services/codefixes/fixImplicitThis.ts"(){"use strict";ai(),Ta(),r$="fixImplicitThis",tfe=[f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],Ea({errorCodes:tfe,getCodeActions:function(t){let{sourceFile:r,program:i,span:o}=t,s,l=ur.ChangeTracker.with(t,d=>{s=wNe(d,r,o.start,i.getTypeChecker())});return s?[oa(r$,l,s,r$,f.Fix_all_implicit_this_errors)]:Xe},fixIds:[r$],getAllCodeActions:e=>gs(e,tfe,(t,r)=>{wNe(t,r.file,r.start,e.program.getTypeChecker())})})}});function ONe(e,t,r){var i,o;let s=so(e,t);if(Fe(s)){let l=Fn(s,Lc);if(l===void 0)return;let d=Da(l.moduleSpecifier)?l.moduleSpecifier:void 0;if(d===void 0)return;let p=(i=r.getResolvedModuleFromModuleSpecifier(d))==null?void 0:i.resolvedModule;if(p===void 0)return;let h=r.getSourceFile(p.resolvedFileName);if(h===void 0||mD(r,h))return;let m=h.symbol,y=(o=ri(m.valueDeclaration,lh))==null?void 0:o.locals;if(y===void 0)return;let E=y.get(s.escapedText);if(E===void 0)return;let S=JYe(E);return S===void 0?void 0:{exportName:{node:s,isTypeOnly:SR(S)},node:S,moduleSourceFile:h,moduleSpecifier:d.text}}}function KYe(e,t,{exportName:r,node:i,moduleSourceFile:o}){let s=i$(o,r.isTypeOnly);s?WNe(e,t,o,s,[r]):dk(i)?e.insertExportModifier(o,i):FNe(e,t,o,[r])}function nfe(e,t,r,i,o){Nn(i)&&(o?WNe(e,t,r,o,i):FNe(e,t,r,i))}function i$(e,t){let r=i=>Xl(i)&&(t&&i.isTypeOnly||!i.isTypeOnly);return sI(e.statements,r)}function WNe(e,t,r,i,o){let s=i.exportClause&&xf(i.exportClause)?i.exportClause.elements:L.createNodeArray([]),l=!i.isTypeOnly&&!!(em(t.getCompilerOptions())||Vr(s,d=>d.isTypeOnly));e.replaceNode(r,i,L.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,L.createNamedExports(L.createNodeArray([...s,...zNe(o,l)],s.hasTrailingComma)),i.moduleSpecifier,i.attributes))}function FNe(e,t,r,i){e.insertNodeAtEndOfScope(r,r,L.createExportDeclaration(void 0,!1,L.createNamedExports(zNe(i,em(t.getCompilerOptions()))),void 0,void 0))}function zNe(e,t){return L.createNodeArray(mn(e,r=>L.createExportSpecifier(t&&r.isTypeOnly,void 0,r.node)))}function JYe(e){if(e.valueDeclaration===void 0)return Xc(e.declarations);let t=e.valueDeclaration,r=wi(t)?ri(t.parent.parent,Ml):void 0;return r&&Nn(r.declarationList.declarations)===1?r:t}var o$,rfe,qYe=bt({"src/services/codefixes/fixImportNonExportedMember.ts"(){"use strict";ai(),Ta(),o$="fixImportNonExportedMember",rfe=[f.Module_0_declares_1_locally_but_it_is_not_exported.code],Ea({errorCodes:rfe,fixIds:[o$],getCodeActions(e){let{sourceFile:t,span:r,program:i}=e,o=ONe(t,r.start,i);if(o===void 0)return;let s=ur.ChangeTracker.with(e,l=>KYe(l,i,o));return[oa(o$,s,[f.Export_0_from_module_1,o.exportName.node.text,o.moduleSpecifier],o$,f.Export_all_referenced_locals)]},getAllCodeActions(e){let{program:t}=e;return ED(ur.ChangeTracker.with(e,r=>{let i=new Map;SD(e,rfe,o=>{let s=ONe(o.file,o.start,t);if(s===void 0)return;let{exportName:l,node:d,moduleSourceFile:p}=s;if(i$(p,l.isTypeOnly)===void 0&&dk(d))r.insertExportModifier(p,d);else{let h=i.get(p)||{typeOnlyExports:[],exports:[]};l.isTypeOnly?h.typeOnlyExports.push(l):h.exports.push(l),i.set(p,h)}}),i.forEach((o,s)=>{let l=i$(s,!0);l&&l.isTypeOnly?(nfe(r,t,s,o.typeOnlyExports,l),nfe(r,t,s,o.exports,i$(s,!1))):nfe(r,t,s,[...o.exports,...o.typeOnlyExports],l)})}))}})}});function XYe(e,t){let r=so(e,t);return Fn(r,i=>i.kind===202)}function YYe(e,t,r){if(!r)return;let i=r.type,o=!1,s=!1;for(;i.kind===190||i.kind===191||i.kind===196;)i.kind===190?o=!0:i.kind===191&&(s=!0),i=i.type;let l=L.updateNamedTupleMember(r,r.dotDotDotToken||(s?L.createToken(26):void 0),r.name,r.questionToken||(o?L.createToken(58):void 0),i);l!==r&&e.replaceNode(t,r,l)}var a$,BNe,$Ye=bt({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){"use strict";ai(),Ta(),a$="fixIncorrectNamedTupleSyntax",BNe=[f.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,f.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],Ea({errorCodes:BNe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=XYe(r,i.start),s=ur.ChangeTracker.with(t,l=>YYe(l,r,o));return[oa(a$,s,f.Move_labeled_tuple_element_modifiers_to_labels,a$,f.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[a$]})}});function GNe(e,t,r,i){let o=so(e,t),s=o.parent;if((i===f.No_overload_matches_this_call.code||i===f.Type_0_is_not_assignable_to_type_1.code)&&!M_(s))return;let l=r.program.getTypeChecker(),d;if(kr(s)&&s.name===o){x.assert(Hh(o),"Expected an identifier for spelling (property access)");let p=l.getTypeAtLocation(s.expression);s.flags&64&&(p=l.getNonNullableType(p)),d=l.getSuggestedSymbolForNonexistentProperty(o,p)}else if(dr(s)&&s.operatorToken.kind===103&&s.left===o&&Ki(o)){let p=l.getTypeAtLocation(s.right);d=l.getSuggestedSymbolForNonexistentProperty(o,p)}else if(Su(s)&&s.right===o){let p=l.getSymbolAtLocation(s.left);p&&p.flags&1536&&(d=l.getSuggestedSymbolForNonexistentModule(s.right,p))}else if(Qu(s)&&s.name===o){x.assertNode(o,Fe,"Expected an identifier for spelling (import)");let p=Fn(o,Lc),h=ZYe(r,p);h&&h.symbol&&(d=l.getSuggestedSymbolForNonexistentModule(o,h.symbol))}else if(M_(s)&&s.name===o){x.assertNode(o,Fe,"Expected an identifier for JSX attribute");let p=Fn(o,au),h=l.getContextualTypeForArgumentAtIndex(p,0);d=l.getSuggestedSymbolForNonexistentJSXAttribute(o,h)}else if(p6(s)&&$c(s)&&s.name===o){let p=Fn(o,ci),h=p?S_(p):void 0,m=h?l.getTypeAtLocation(h):void 0;m&&(d=l.getSuggestedSymbolForNonexistentClassMember(uc(o),m))}else{let p=qT(o),h=uc(o);x.assert(h!==void 0,"name should be defined"),d=l.getSuggestedSymbolForNonexistentSymbol(o,h,QYe(p))}return d===void 0?void 0:{node:o,suggestedSymbol:d}}function VNe(e,t,r,i,o){let s=vl(i);if(!Yp(s,o)&&kr(r.parent)){let l=i.valueDeclaration;l&&iu(l)&&Ki(l.name)?e.replaceNode(t,r,L.createIdentifier(s)):e.replaceNode(t,r.parent,L.createElementAccessExpression(r.parent.expression,L.createStringLiteral(s)))}else e.replaceNode(t,r,L.createIdentifier(s))}function QYe(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function ZYe(e,t){var r;if(!t||!as(t.moduleSpecifier))return;let i=(r=e.program.getResolvedModuleFromModuleSpecifier(t.moduleSpecifier))==null?void 0:r.resolvedModule;if(i)return e.program.getSourceFile(i.resolvedFileName)}var ife,ofe,e$e=bt({"src/services/codefixes/fixSpelling.ts"(){"use strict";ai(),Ta(),ife="fixSpelling",ofe=[f.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,f.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,f.Cannot_find_name_0_Did_you_mean_1.code,f.Could_not_find_name_0_Did_you_mean_1.code,f.Cannot_find_namespace_0_Did_you_mean_1.code,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,f._0_has_no_exported_member_named_1_Did_you_mean_2.code,f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,f.No_overload_matches_this_call.code,f.Type_0_is_not_assignable_to_type_1.code],Ea({errorCodes:ofe,getCodeActions(e){let{sourceFile:t,errorCode:r}=e,i=GNe(t,e.span.start,e,r);if(!i)return;let{node:o,suggestedSymbol:s}=i,l=ns(e.host.getCompilationSettings()),d=ur.ChangeTracker.with(e,p=>VNe(p,t,o,s,l));return[oa("spelling",d,[f.Change_spelling_to_0,vl(s)],ife,f.Fix_all_detected_spelling_errors)]},fixIds:[ife],getAllCodeActions:e=>gs(e,ofe,(t,r)=>{let i=GNe(r.file,r.start,e,r.code),o=ns(e.host.getCompilationSettings());i&&VNe(t,e.sourceFile,i.node,i.suggestedSymbol,o)})})}});function jNe(e,t,r){let i=e.createSymbol(4,t.escapedText);i.links.type=e.getTypeAtLocation(r);let o=aa([i]);return e.createAnonymousType(void 0,o,[],[],[])}function afe(e,t,r,i){if(!t.body||!Ko(t.body)||Nn(t.body.statements)!==1)return;let o=Va(t.body.statements);if(ed(o)&&sfe(e,t,e.getTypeAtLocation(o.expression),r,i))return{declaration:t,kind:0,expression:o.expression,statement:o,commentSource:o.expression};if(H0(o)&&ed(o.statement)){let s=L.createObjectLiteralExpression([L.createPropertyAssignment(o.label,o.statement.expression)]),l=jNe(e,o.label,o.statement.expression);if(sfe(e,t,l,r,i))return Os(t)?{declaration:t,kind:1,expression:s,statement:o,commentSource:o.statement.expression}:{declaration:t,kind:0,expression:s,statement:o,commentSource:o.statement.expression}}else if(Ko(o)&&Nn(o.statements)===1){let s=Va(o.statements);if(H0(s)&&ed(s.statement)){let l=L.createObjectLiteralExpression([L.createPropertyAssignment(s.label,s.statement.expression)]),d=jNe(e,s.label,s.statement.expression);if(sfe(e,t,d,r,i))return{declaration:t,kind:0,expression:l,statement:o,commentSource:s}}}}function sfe(e,t,r,i,o){if(o){let s=e.getSignatureFromDeclaration(t);if(s){$r(t,1024)&&(r=e.createPromiseType(r));let l=e.createSignature(t,s.typeParameters,s.thisParameter,s.parameters,r,void 0,s.minArgumentCount,s.flags);r=e.createAnonymousType(void 0,aa(),[l],[],[])}else r=e.getAnyType()}return e.isTypeAssignableTo(r,i)}function UNe(e,t,r,i){let o=so(t,r);if(!o.parent)return;let s=Fn(o.parent,ws);switch(i){case f.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return!s||!s.body||!s.type||!rf(s.type,o)?void 0:afe(e,s,e.getTypeFromTypeNode(s.type),!1);case f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!s||!ia(s.parent)||!s.body)return;let l=s.parent.arguments.indexOf(s);if(l===-1)return;let d=e.getContextualTypeForArgumentAtIndex(s.parent,l);return d?afe(e,s,d,!0):void 0;case f.Type_0_is_not_assignable_to_type_1.code:if(!kg(o)||!qx(o.parent)&&!M_(o.parent))return;let p=t$e(o.parent);return!p||!ws(p)||!p.body?void 0:afe(e,p,e.getTypeAtLocation(o.parent),!0)}}function t$e(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:return e.initializer;case 291:return e.initializer&&(fP(e.initializer)?e.initializer.expression:void 0);case 304:case 171:case 306:case 355:case 348:return}}function HNe(e,t,r,i){bp(r);let o=cO(t);e.replaceNode(t,i,L.createReturnStatement(r),{leadingTriviaOption:ur.LeadingTriviaOption.Exclude,trailingTriviaOption:ur.TrailingTriviaOption.Exclude,suffix:o?";":void 0})}function KNe(e,t,r,i,o,s){let l=s||n7(i)?L.createParenthesizedExpression(i):i;bp(o),$T(o,l),e.replaceNode(t,r.body,l)}function JNe(e,t,r,i){e.replaceNode(t,r.body,L.createParenthesizedExpression(i))}function n$e(e,t,r){let i=ur.ChangeTracker.with(e,o=>HNe(o,e.sourceFile,t,r));return oa(s$,i,f.Add_a_return_statement,l$,f.Add_all_missing_return_statement)}function r$e(e,t,r,i){let o=ur.ChangeTracker.with(e,s=>KNe(s,e.sourceFile,t,r,i,!1));return oa(s$,o,f.Remove_braces_from_arrow_function_body,c$,f.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function i$e(e,t,r){let i=ur.ChangeTracker.with(e,o=>JNe(o,e.sourceFile,t,r));return oa(s$,i,f.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,d$,f.Wrap_all_object_literal_with_parentheses)}var s$,l$,c$,d$,lfe,o$e=bt({"src/services/codefixes/returnValueCorrect.ts"(){"use strict";ai(),Ta(),s$="returnValueCorrect",l$="fixAddReturnStatement",c$="fixRemoveBracesFromArrowFunctionBody",d$="fixWrapTheBlockWithParen",lfe=[f.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,f.Type_0_is_not_assignable_to_type_1.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],Ea({errorCodes:lfe,fixIds:[l$,c$,d$],getCodeActions:function(t){let{program:r,sourceFile:i,span:{start:o},errorCode:s}=t,l=UNe(r.getTypeChecker(),i,o,s);if(l)return l.kind===0?Tn([n$e(t,l.expression,l.statement)],Os(l.declaration)?r$e(t,l.declaration,l.expression,l.commentSource):void 0):[i$e(t,l.declaration,l.expression)]},getAllCodeActions:e=>gs(e,lfe,(t,r)=>{let i=UNe(e.program.getTypeChecker(),r.file,r.start,r.code);if(i)switch(e.fixId){case l$:HNe(t,r.file,i.expression,i.statement);break;case c$:if(!Os(i.declaration))return;KNe(t,r.file,i.declaration,i.expression,i.commentSource,!1);break;case d$:if(!Os(i.declaration))return;JNe(t,r.file,i.declaration,i.expression);break;default:x.fail(JSON.stringify(e.fixId))}})})}});function qNe(e,t,r,i,o){var s;let l=so(e,t),d=l.parent;if(r===f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(l.kind===19&&Ma(d)&&ia(d.parent)))return;let S=Kl(d.parent.arguments,w=>w===d);if(S<0)return;let A=i.getResolvedSignature(d.parent);if(!(A&&A.declaration&&A.parameters[S]))return;let N=A.parameters[S].valueDeclaration;if(!(N&&Ao(N)&&Fe(N.name)))return;let D=Wo(i.getUnmatchedProperties(i.getTypeAtLocation(d),i.getParameterType(A,S),!1,!1));return Nn(D)?{kind:3,token:N.name,identifier:N.name.text,properties:D,parentDeclaration:d}:void 0}if(l.kind===19&&Ma(d)){let S=i.getContextualType(d)||i.getTypeAtLocation(d),A=Wo(i.getUnmatchedProperties(i.getTypeAtLocation(d),S,!1,!1));return Nn(A)?{kind:3,token:d,identifier:"",properties:A,parentDeclaration:d}:void 0}if(!Hh(l))return;if(Fe(l)&&Mv(d)&&d.initializer&&Ma(d.initializer)){let S=i.getContextualType(l)||i.getTypeAtLocation(l),A=Wo(i.getUnmatchedProperties(i.getTypeAtLocation(d.initializer),S,!1,!1));return Nn(A)?{kind:3,token:l,identifier:l.text,properties:A,parentDeclaration:d.initializer}:void 0}if(Fe(l)&&au(l.parent)){let S=ns(o.getCompilerOptions()),A=p$e(i,S,l.parent);return Nn(A)?{kind:4,token:l,attributes:A,parentDeclaration:l.parent}:void 0}if(Fe(l)){let S=(s=i.getContextualType(l))==null?void 0:s.getNonNullableType();if(S&&Lr(S)&16){let A=Xc(i.getSignaturesOfType(S,0));return A===void 0?void 0:{kind:5,token:l,signature:A,sourceFile:e,parentDeclaration:oPe(l)}}if(ia(d)&&d.expression===l)return{kind:2,token:l,call:d,sourceFile:e,modifierFlags:0,parentDeclaration:oPe(l)}}if(!kr(d))return;let p=Bq(i.getTypeAtLocation(d.expression)),h=p.symbol;if(!h||!h.declarations)return;if(Fe(l)&&ia(d.parent)){let S=Vr(h.declarations,ql),A=S?.getSourceFile();if(S&&A&&!mD(o,A))return{kind:2,token:l,call:d.parent,sourceFile:e,modifierFlags:32,parentDeclaration:S};let N=Vr(h.declarations,Yi);if(e.commonJsModuleIndicator)return;if(N&&!mD(o,N))return{kind:2,token:l,call:d.parent,sourceFile:N,modifierFlags:32,parentDeclaration:N}}let m=Vr(h.declarations,ci);if(!m&&Ki(l))return;let y=m||Vr(h.declarations,S=>pu(S)||gp(S));if(y&&!mD(o,y.getSourceFile())){let S=!gp(y)&&(p.target||p)!==i.getDeclaredTypeOfSymbol(h);if(S&&(Ki(l)||pu(y)))return;let A=y.getSourceFile(),N=gp(y)?0:(S?256:0)|(fX(l.text)?2:0),D=su(A),w=ri(d.parent,ia);return{kind:0,token:l,call:w,modifierFlags:N,parentDeclaration:y,declSourceFile:A,isJSFile:D}}let E=Vr(h.declarations,hE);if(E&&!(p.flags&1056)&&!Ki(l)&&!mD(o,E.getSourceFile()))return{kind:1,token:l,parentDeclaration:E}}function a$e(e,t){return t.isJSFile?pI(s$e(e,t)):l$e(e,t)}function s$e(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){if(pu(t)||gp(t))return;let s=ur.ChangeTracker.with(e,d=>XNe(d,r,t,o,!!(i&256)));if(s.length===0)return;let l=i&256?f.Initialize_static_property_0:Ki(o)?f.Declare_a_private_field_named_0:f.Initialize_property_0_in_the_constructor;return oa(nb,s,[l,o.text],nb,f.Add_all_missing_members)}function XNe(e,t,r,i,o){let s=i.text;if(o){if(r.kind===231)return;let l=r.name.getText(),d=YNe(L.createIdentifier(l),s);e.insertNodeAfter(t,r,d)}else if(Ki(i)){let l=L.createPropertyDeclaration(void 0,s,void 0,void 0,void 0),d=ZNe(r);d?e.insertNodeAfter(t,d,l):e.insertMemberAtStart(t,r,l)}else{let l=Zh(r);if(!l)return;let d=YNe(L.createThis(),s);e.insertNodeAtConstructorEnd(t,l,d)}}function YNe(e,t){return L.createExpressionStatement(L.createAssignment(L.createPropertyAccessExpression(e,t),R1()))}function l$e(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){let s=o.text,l=i&256,d=$Ne(e.program.getTypeChecker(),t,o),p=m=>ur.ChangeTracker.with(e,y=>QNe(y,r,t,s,d,m)),h=[oa(nb,p(i&256),[l?f.Declare_static_property_0:f.Declare_property_0,s],nb,f.Add_all_missing_members)];return l||Ki(o)||(i&2&&h.unshift(Qm(nb,p(2),[f.Declare_private_property_0,s])),h.push(c$e(e,r,t,o.text,d))),h}function $Ne(e,t,r){let i;if(r.parent.parent.kind===226){let o=r.parent.parent,s=r.parent===o.left?o.right:o.left,l=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(s)));i=e.typeToTypeNode(l,t,1)}else{let o=e.getContextualType(r.parent);i=o?e.typeToTypeNode(o,void 0,1):void 0}return i||L.createKeywordTypeNode(133)}function QNe(e,t,r,i,o,s){let l=s?L.createNodeArray(L.createModifiersFromModifierFlags(s)):void 0,d=ci(r)?L.createPropertyDeclaration(l,i,void 0,o,void 0):L.createPropertySignature(void 0,i,void 0,o),p=ZNe(r);p?e.insertNodeAfter(t,p,d):e.insertMemberAtStart(t,r,d)}function ZNe(e){let t;for(let r of e.members){if(!Uo(r))break;t=r}return t}function c$e(e,t,r,i,o){let s=L.createKeywordTypeNode(154),l=L.createParameterDeclaration(void 0,void 0,"x",void 0,s,void 0),d=L.createIndexSignature(void 0,[l],o),p=ur.ChangeTracker.with(e,h=>h.insertMemberAtStart(t,r,d));return Qm(nb,p,[f.Add_index_signature_for_property_0,i])}function d$e(e,t){let{parentDeclaration:r,declSourceFile:i,modifierFlags:o,token:s,call:l}=t;if(l===void 0)return;let d=s.text,p=m=>ur.ChangeTracker.with(e,y=>ePe(e,y,l,s,m,r,i)),h=[oa(nb,p(o&256),[o&256?f.Declare_static_method_0:f.Declare_method_0,d],nb,f.Add_all_missing_members)];return o&2&&h.unshift(Qm(nb,p(2),[f.Declare_private_method_0,d])),h}function ePe(e,t,r,i,o,s,l){let d=x1(l,e.program,e.preferences,e.host),p=ci(s)?174:173,h=Kfe(p,e,d,r,i,o,s),m=f$e(s,r);m?t.insertNodeAfter(l,m,h):t.insertMemberAtStart(l,s,h),d.writeFixes(t)}function tPe(e,t,{token:r,parentDeclaration:i}){let o=gt(i.members,p=>{let h=t.getTypeAtLocation(p);return!!(h&&h.flags&402653316)}),s=i.getSourceFile(),l=L.createEnumMember(r,o?L.createStringLiteral(r.text):void 0),d=$s(i.members);d?e.insertNodeInListAfter(s,d,l,i.members):e.insertMemberAtStart(s,i,l)}function nPe(e,t,r){let i=of(t.sourceFile,t.preferences),o=x1(t.sourceFile,t.program,t.preferences,t.host),s=r.kind===2?Kfe(262,t,o,r.call,gr(r.token),r.modifierFlags,r.parentDeclaration):W$(262,t,i,r.signature,aB(f.Function_not_implemented.message,i),r.token,void 0,void 0,void 0,o);s===void 0&&x.fail("fixMissingFunctionDeclaration codefix got unexpected error."),Sm(r.parentDeclaration)?e.insertNodeBefore(r.sourceFile,r.parentDeclaration,s,!0):e.insertNodeAtEndOfScope(r.sourceFile,r.parentDeclaration,s),o.writeFixes(e)}function rPe(e,t,r){let i=x1(t.sourceFile,t.program,t.preferences,t.host),o=of(t.sourceFile,t.preferences),s=t.program.getTypeChecker(),l=r.parentDeclaration.attributes,d=gt(l.properties,o1),p=mn(r.attributes,y=>{let E=u$(t,s,i,o,s.getTypeOfSymbol(y),r.parentDeclaration),S=L.createIdentifier(y.name),A=L.createJsxAttribute(S,L.createJsxExpression(void 0,E));return ja(S,A),A}),h=L.createJsxAttributes(d?[...p,...l.properties]:[...l.properties,...p]),m={prefix:l.pos===l.end?" ":void 0};e.replaceNode(t.sourceFile,l,h,m),i.writeFixes(e)}function iPe(e,t,r){let i=x1(t.sourceFile,t.program,t.preferences,t.host),o=of(t.sourceFile,t.preferences),s=ns(t.program.getCompilerOptions()),l=t.program.getTypeChecker(),d=mn(r.properties,h=>{let m=u$(t,l,i,o,l.getTypeOfSymbol(h),r.parentDeclaration);return L.createPropertyAssignment(m$e(h,s,o,l),m)}),p={leadingTriviaOption:ur.LeadingTriviaOption.Exclude,trailingTriviaOption:ur.TrailingTriviaOption.Exclude,indentation:r.indentation};e.replaceNode(t.sourceFile,r.parentDeclaration,L.createObjectLiteralExpression([...r.parentDeclaration.properties,...d],!0),p),i.writeFixes(e)}function u$(e,t,r,i,o,s){if(o.flags&3)return R1();if(o.flags&134217732)return L.createStringLiteral("",i===0);if(o.flags&8)return L.createNumericLiteral(0);if(o.flags&64)return L.createBigIntLiteral("0n");if(o.flags&16)return L.createFalse();if(o.flags&1056){let l=o.symbol.exports?mW(o.symbol.exports.values()):o.symbol,d=t.symbolToExpression(o.symbol.parent?o.symbol.parent:o.symbol,111551,void 0,64);return l===void 0||d===void 0?L.createNumericLiteral(0):L.createPropertyAccessExpression(d,t.symbolToString(l))}if(o.flags&256)return L.createNumericLiteral(o.value);if(o.flags&2048)return L.createBigIntLiteral(o.value);if(o.flags&128)return L.createStringLiteral(o.value,i===0);if(o.flags&512)return o===t.getFalseType()||o===t.getFalseType(!0)?L.createFalse():L.createTrue();if(o.flags&65536)return L.createNull();if(o.flags&1048576)return Wl(o.types,d=>u$(e,t,r,i,d,s))??R1();if(t.isArrayLikeType(o))return L.createArrayLiteralExpression();if(u$e(o)){let l=mn(t.getPropertiesOfType(o),d=>{let p=u$(e,t,r,i,t.getTypeOfSymbol(d),s);return L.createPropertyAssignment(d.name,p)});return L.createObjectLiteralExpression(l,!0)}if(Lr(o)&16){if(Vr(o.symbol.declarations||Xe,jm(hh,_h,Ul))===void 0)return R1();let d=t.getSignaturesOfType(o,0);return d===void 0?R1():W$(218,e,i,d[0],aB(f.Function_not_implemented.message,i),void 0,void 0,void 0,s,r)??R1()}if(Lr(o)&1){let l=Og(o.symbol);if(l===void 0||w0(l))return R1();let d=Zh(l);return d&&Nn(d.parameters)?R1():L.createNewExpression(L.createIdentifier(o.symbol.name),void 0,void 0)}return R1()}function R1(){return L.createIdentifier("undefined")}function u$e(e){return e.flags&524288&&(Lr(e)&128||e.symbol&&ri(nh(e.symbol.declarations),gp))}function p$e(e,t,r){let i=e.getContextualType(r.attributes);if(i===void 0)return Xe;let o=i.getProperties();if(!Nn(o))return Xe;let s=new Set;for(let l of r.attributes.properties)if(M_(l)&&s.add($N(l.name)),o1(l)){let d=e.getTypeAtLocation(l.expression);for(let p of d.getProperties())s.add(p.escapedName)}return jr(o,l=>Yp(l.name,t,1)&&!(l.flags&16777216||Tl(l)&48||s.has(l.escapedName)))}function f$e(e,t){if(gp(e))return;let r=Fn(t,i=>Ul(i)||Pl(i));return r&&r.parent===e?r:void 0}function m$e(e,t,r,i){if(ch(e)){let o=i.symbolToNode(e,111551,void 0,1073741824);if(o&&Ya(o))return o}return B6(e.name,t,r===0,!1,!1)}function oPe(e){if(Fn(e,fP)){let t=Fn(e.parent,Sm);if(t)return t}return Gn(e)}var nb,Q7,Z7,eB,cfe,_$e=bt({"src/services/codefixes/fixAddMissingMember.ts"(){"use strict";ai(),Ta(),nb="fixMissingMember",Q7="fixMissingProperties",Z7="fixMissingAttributes",eB="fixMissingFunctionDeclaration",cfe=[f.Property_0_does_not_exist_on_type_1.code,f.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,f.Property_0_is_missing_in_type_1_but_required_in_type_2.code,f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,f.Cannot_find_name_0.code],Ea({errorCodes:cfe,getCodeActions(e){let t=e.program.getTypeChecker(),r=qNe(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(r){if(r.kind===3){let i=ur.ChangeTracker.with(e,o=>iPe(o,e,r));return[oa(Q7,i,f.Add_missing_properties,Q7,f.Add_all_missing_properties)]}if(r.kind===4){let i=ur.ChangeTracker.with(e,o=>rPe(o,e,r));return[oa(Z7,i,f.Add_missing_attributes,Z7,f.Add_all_missing_attributes)]}if(r.kind===2||r.kind===5){let i=ur.ChangeTracker.with(e,o=>nPe(o,e,r));return[oa(eB,i,[f.Add_missing_function_declaration_0,r.token.text],eB,f.Add_all_missing_function_declarations)]}if(r.kind===1){let i=ur.ChangeTracker.with(e,o=>tPe(o,e.program.getTypeChecker(),r));return[oa(nb,i,[f.Add_missing_enum_member_0,r.token.text],nb,f.Add_all_missing_members)]}return Eo(d$e(e,r),a$e(e,r))}},fixIds:[nb,eB,Q7,Z7],getAllCodeActions:e=>{let{program:t,fixId:r}=e,i=t.getTypeChecker(),o=new Map,s=new Map;return ED(ur.ChangeTracker.with(e,l=>{SD(e,cfe,d=>{let p=qNe(d.file,d.start,d.code,i,e.program);if(!(!p||!Em(o,rs(p.parentDeclaration)+"#"+(p.kind===3?p.identifier:p.token.text)))){if(r===eB&&(p.kind===2||p.kind===5))nPe(l,e,p);else if(r===Q7&&p.kind===3)iPe(l,e,p);else if(r===Z7&&p.kind===4)rPe(l,e,p);else if(p.kind===1&&tPe(l,i,p),p.kind===0){let{parentDeclaration:h,token:m}=p,y=WC(s,h,()=>[]);y.some(E=>E.token.text===m.text)||y.push(p)}}}),s.forEach((d,p)=>{let h=gp(p)?void 0:eme(p,i);for(let m of d){if(h?.some(w=>{let j=s.get(w);return!!j&&j.some(({token:K})=>K.text===m.token.text)}))continue;let{parentDeclaration:y,declSourceFile:E,modifierFlags:S,token:A,call:N,isJSFile:D}=m;if(N&&!Ki(A))ePe(e,l,N,A,S&256,y,E);else if(D&&!pu(y)&&!gp(y))XNe(l,E,y,A,!!(S&256));else{let w=$Ne(i,y,A);QNe(l,E,y,A.text,w,S&256)}}})}))}})}});function aPe(e,t,r){let i=na(h$e(t,r),ia),o=L.createNewExpression(i.expression,i.typeArguments,i.arguments);e.replaceNode(t,i,o)}function h$e(e,t){let r=so(e,t.start),i=Jl(t);for(;r.endaPe(o,t,r));return[oa(p$,i,f.Add_missing_new_operator_to_call,p$,f.Add_missing_new_operator_to_all_calls)]},fixIds:[p$],getAllCodeActions:e=>gs(e,dfe,(t,r)=>aPe(t,e.sourceFile,r))})}});function sPe(e,t,r){let i=so(e,r),o=Fn(i,ia);if(o===void 0||Nn(o.arguments)===0)return;let s=t.getTypeChecker(),l=s.getTypeAtLocation(o.expression),d=jr(l.symbol.declarations,lPe);if(d===void 0)return;let p=$s(d);if(p===void 0||p.body===void 0||mD(t,p.getSourceFile()))return;let h=y$e(p);if(h===void 0)return;let m=[],y=[],E=Nn(p.parameters),S=Nn(o.arguments);if(E>S)return;let A=[p,...b$e(p,d)];for(let N=0,D=0,w=0;N{Nn(o.parameters)?e.replaceNodeRangeWithNodes(t,Va(o.parameters),Ja(o.parameters),cPe(o,i),{joiner:", ",indentation:0,leadingTriviaOption:ur.LeadingTriviaOption.IncludeAll,trailingTriviaOption:ur.TrailingTriviaOption.Include}):gn(cPe(o,i),(s,l)=>{Nn(o.parameters)===0&&l===0?e.insertNodeAt(t,o.parameters.end,s):e.insertNodeAtEndOfList(t,o.parameters,s)})})}function lPe(e){switch(e.kind){case 262:case 218:case 174:case 219:return!0;default:return!1}}function cPe(e,t){let r=mn(e.parameters,i=>L.createParameterDeclaration(i.modifiers,i.dotDotDotToken,i.name,i.questionToken,i.type,i.initializer));for(let{pos:i,declaration:o}of t){let s=i>0?r[i-1]:void 0;r.splice(i,0,L.updateParameterDeclaration(o,o.modifiers,o.dotDotDotToken,o.name,s&&s.questionToken?L.createToken(58):o.questionToken,o.type,o.initializer))}return r}function b$e(e,t){let r=[];for(let i of t)if(E$e(i)){if(Nn(i.parameters)===Nn(e.parameters)){r.push(i);continue}if(Nn(i.parameters)>Nn(e.parameters))return[]}return r}function E$e(e){return lPe(e)&&e.body===void 0}function dPe(e,t,r){return L.createParameterDeclaration(void 0,void 0,e,r,t,void 0)}function S$e(e,t){return Nn(e)&>(e,r=>tf$(d,e.sourceFile,i,o)),[Nn(o)>1?f.Add_missing_parameters_to_0:f.Add_missing_parameter_to_0,r],tB,f.Add_all_missing_parameters)),Nn(s)&&Tn(l,oa(nB,ur.ChangeTracker.with(e,d=>f$(d,e.sourceFile,i,s)),[Nn(s)>1?f.Add_optional_parameters_to_0:f.Add_optional_parameter_to_0,r],nB,f.Add_all_optional_parameters)),l},getAllCodeActions:e=>gs(e,ufe,(t,r)=>{let i=sPe(e.sourceFile,e.program,r.start);if(i){let{declarations:o,newParameters:s,newOptionalParameters:l}=i;e.fixId===tB&&f$(t,e.sourceFile,o,s),e.fixId===nB&&f$(t,e.sourceFile,o,l)}})})}});function uPe(e,t){return{type:"install package",file:e,packageName:t}}function pPe(e,t){let r=ri(so(e,t),Da);if(!r)return;let i=r.text,{packageName:o}=mw(i);return Yc(o)?void 0:o}function fPe(e,t,r){var i;return r===pfe?O_.nodeCoreModules.has(e)?"@types/node":void 0:(i=t.isKnownTypesPackageName)!=null&&i.call(t,e)?A3(e):void 0}var mPe,m$,pfe,ffe,A$e=bt({"src/services/codefixes/fixCannotFindModule.ts"(){"use strict";ai(),Ta(),mPe="fixCannotFindModule",m$="installTypesPackage",pfe=f.Cannot_find_module_0_or_its_corresponding_type_declarations.code,ffe=[pfe,f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],Ea({errorCodes:ffe,getCodeActions:function(t){let{host:r,sourceFile:i,span:{start:o}}=t,s=pPe(i,o);if(s===void 0)return;let l=fPe(s,r,t.errorCode);return l===void 0?[]:[oa(mPe,[],[f.Install_0,l],m$,f.Install_all_missing_types_packages,uPe(i.fileName,l))]},fixIds:[m$],getAllCodeActions:e=>gs(e,ffe,(t,r,i)=>{let o=pPe(r.file,r.start);if(o!==void 0)switch(e.fixId){case m$:{let s=fPe(o,e.host,r.code);s&&i.push(uPe(r.file.fileName,s));break}default:x.fail(`Bad fixId: ${e.fixId}`)}})})}});function _Pe(e,t){let r=so(e,t);return na(r.parent,ci)}function hPe(e,t,r,i,o){let s=S_(e),l=r.program.getTypeChecker(),d=l.getTypeAtLocation(s),p=l.getPropertiesOfType(d).filter(I$e),h=x1(t,r.program,o,r.host);Hfe(e,p,t,r,o,h,m=>i.insertMemberAtStart(t,e,m)),h.writeFixes(i)}function I$e(e){let t=Wv(Va(e.getDeclarations()));return!(t&2)&&!!(t&64)}var mfe,_$,x$e=bt({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){"use strict";ai(),Ta(),mfe=[f.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1.code],_$="fixClassDoesntImplementInheritedAbstractMember",Ea({errorCodes:mfe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=ur.ChangeTracker.with(t,s=>hPe(_Pe(r,i.start),r,t,s,t.preferences));return o.length===0?void 0:[oa(_$,o,f.Implement_inherited_abstract_class,_$,f.Implement_all_inherited_abstract_classes)]},fixIds:[_$],getAllCodeActions:function(t){let r=new Map;return gs(t,mfe,(i,o)=>{let s=_Pe(o.file,o.start);Em(r,rs(s))&&hPe(s,t.sourceFile,t,i,t.preferences)})}})}});function gPe(e,t,r,i){e.insertNodeAtConstructorStart(t,r,i),e.delete(t,i)}function yPe(e,t){let r=so(e,t);if(r.kind!==110)return;let i=Wp(r),o=vPe(i.body);return o&&!o.expression.arguments.some(s=>kr(s)&&s.expression===r)?{constructor:i,superCall:o}:void 0}function vPe(e){return ed(e)&&mT(e.expression)?e:$o(e)?void 0:Go(e,vPe)}var h$,_fe,R$e=bt({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){"use strict";ai(),Ta(),h$="classSuperMustPrecedeThisAccess",_fe=[f.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],Ea({errorCodes:_fe,getCodeActions(e){let{sourceFile:t,span:r}=e,i=yPe(t,r.start);if(!i)return;let{constructor:o,superCall:s}=i,l=ur.ChangeTracker.with(e,d=>gPe(d,t,o,s));return[oa(h$,l,f.Make_super_call_the_first_statement_in_the_constructor,h$,f.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[h$],getAllCodeActions(e){let{sourceFile:t}=e,r=new Map;return gs(e,_fe,(i,o)=>{let s=yPe(o.file,o.start);if(!s)return;let{constructor:l,superCall:d}=s;Em(r,rs(l.parent))&&gPe(i,t,l,d)})}})}});function bPe(e,t){let r=so(e,t);return x.assert(Pl(r.parent),"token should be at the constructor declaration"),r.parent}function EPe(e,t,r){let i=L.createExpressionStatement(L.createCallExpression(L.createSuper(),void 0,Xe));e.insertNodeAtConstructorStart(t,r,i)}var g$,hfe,D$e=bt({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){"use strict";ai(),Ta(),g$="constructorForDerivedNeedSuperCall",hfe=[f.Constructors_for_derived_classes_must_contain_a_super_call.code],Ea({errorCodes:hfe,getCodeActions(e){let{sourceFile:t,span:r}=e,i=bPe(t,r.start),o=ur.ChangeTracker.with(e,s=>EPe(s,t,i));return[oa(g$,o,f.Add_missing_super_call,g$,f.Add_all_missing_super_calls)]},fixIds:[g$],getAllCodeActions:e=>gs(e,hfe,(t,r)=>EPe(t,e.sourceFile,bPe(r.file,r.start)))})}});function SPe(e,t){Yfe(e,t,"jsx",L.createStringLiteral("react"))}var gfe,yfe,C$e=bt({"src/services/codefixes/fixEnableJsxFlag.ts"(){"use strict";ai(),Ta(),gfe="fixEnableJsxFlag",yfe=[f.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],Ea({errorCodes:yfe,getCodeActions:function(t){let{configFile:r}=t.program.getCompilerOptions();if(r===void 0)return;let i=ur.ChangeTracker.with(t,o=>SPe(o,r));return[Qm(gfe,i,f.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[gfe],getAllCodeActions:e=>gs(e,yfe,t=>{let{configFile:r}=e.program.getCompilerOptions();r!==void 0&&SPe(t,r)})})}});function TPe(e,t,r){let i=Vr(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;let o=Vr(i.relatedInformation,l=>l.code===f.Did_you_mean_0.code);if(o===void 0||o.file===void 0||o.start===void 0||o.length===void 0)return;let s=Qfe(o.file,gd(o.start,o.length));if(s!==void 0&&ht(s)&&dr(s.parent))return{suggestion:N$e(o.messageText),expression:s.parent,arg:s}}function APe(e,t,r,i){let o=L.createCallExpression(L.createPropertyAccessExpression(L.createIdentifier("Number"),L.createIdentifier("isNaN")),void 0,[r]),s=i.operatorToken.kind;e.replaceNode(t,i,s===38||s===36?L.createPrefixUnaryExpression(54,o):o)}function N$e(e){let[,t]=k_(e,` -`,0).match(/'(.*)'/)||[];return t}var y$,vfe,P$e=bt({"src/services/codefixes/fixNaNEquality.ts"(){"use strict";ai(),Ta(),y$="fixNaNEquality",vfe=[f.This_condition_will_always_return_0.code],Ea({errorCodes:vfe,getCodeActions(e){let{sourceFile:t,span:r,program:i}=e,o=TPe(i,t,r);if(o===void 0)return;let{suggestion:s,expression:l,arg:d}=o,p=ur.ChangeTracker.with(e,h=>APe(h,t,d,l));return[oa(y$,p,[f.Use_0,s],y$,f.Use_Number_isNaN_in_all_conditions)]},fixIds:[y$],getAllCodeActions:e=>gs(e,vfe,(t,r)=>{let i=TPe(e.program,r.file,gd(r.start,r.length));i&&APe(t,r.file,i.arg,i.expression)})})}}),M$e=bt({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){"use strict";ai(),Ta(),Ea({errorCodes:[f.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,f.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,f.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(t){let r=t.program.getCompilerOptions(),{configFile:i}=r;if(i===void 0)return;let o=[],s=Ld(r);if(s>=5&&s<99){let h=ur.ChangeTracker.with(t,m=>{Yfe(m,i,"module",L.createStringLiteral("esnext"))});o.push(Qm("fixModuleOption",h,[f.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}let d=ns(r);if(d<4||d>99){let h=ur.ChangeTracker.with(t,m=>{if(!mN(i))return;let E=[["target",L.createStringLiteral("es2017")]];s===1&&E.push(["module",L.createStringLiteral("commonjs")]),Xfe(m,i,E)});o.push(Qm("fixTargetOption",h,[f.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return o.length?o:void 0}})}});function IPe(e,t,r){e.replaceNode(t,r,L.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function xPe(e,t){return na(so(e,t).parent,Zu)}var v$,bfe,L$e=bt({"src/services/codefixes/fixPropertyAssignment.ts"(){"use strict";ai(),Ta(),v$="fixPropertyAssignment",bfe=[f.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code],Ea({errorCodes:bfe,fixIds:[v$],getCodeActions(e){let{sourceFile:t,span:r}=e,i=xPe(t,r.start),o=ur.ChangeTracker.with(e,s=>IPe(s,e.sourceFile,i));return[oa(v$,o,[f.Change_0_to_1,"=",":"],v$,[f.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>gs(e,bfe,(t,r)=>IPe(t,r.file,xPe(r.file,r.start)))})}});function RPe(e,t){let r=so(e,t),i=ad(r).heritageClauses,o=i[0].getFirstToken();return o.kind===96?{extendsToken:o,heritageClauses:i}:void 0}function DPe(e,t,r,i){if(e.replaceNode(t,r,L.createToken(119)),i.length===2&&i[0].token===96&&i[1].token===119){let o=i[1].getFirstToken(),s=o.getFullStart();e.replaceRange(t,{pos:s,end:s},L.createToken(28));let l=t.text,d=o.end;for(;dDPe(l,t,i,o));return[oa(b$,s,f.Change_extends_to_implements,b$,f.Change_all_extended_interfaces_to_implements)]},fixIds:[b$],getAllCodeActions:e=>gs(e,Efe,(t,r)=>{let i=RPe(r.file,r.start);i&&DPe(t,r.file,i.extendsToken,i.heritageClauses)})})}});function CPe(e,t,r){let i=so(e,t);if(Fe(i)||Ki(i))return{node:i,className:r===Sfe?ad(i).name.text:void 0}}function NPe(e,t,{node:r,className:i}){bp(r),e.replaceNode(t,r,L.createPropertyAccessExpression(i?L.createIdentifier(i):L.createThis(),r))}var E$,Sfe,Tfe,w$e=bt({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){"use strict";ai(),Ta(),E$="forgottenThisPropertyAccess",Sfe=f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,Tfe=[f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,f.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,Sfe],Ea({errorCodes:Tfe,getCodeActions(e){let{sourceFile:t}=e,r=CPe(t,e.span.start,e.errorCode);if(!r)return;let i=ur.ChangeTracker.with(e,o=>NPe(o,t,r));return[oa(E$,i,[f.Add_0_to_unresolved_variable,r.className||"this"],E$,f.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[E$],getAllCodeActions:e=>gs(e,Tfe,(t,r)=>{let i=CPe(r.file,r.start,r.code);i&&NPe(t,e.sourceFile,i)})})}});function O$e(e){return Ss(xfe,e)}function Afe(e,t,r,i,o){let s=r.getText()[i];if(!O$e(s))return;let l=o?xfe[s]:`{${nM(r,t,s)}}`;e.replaceRangeWithText(r,{pos:i,end:i+1},l)}var S$,rB,Ife,xfe,W$e=bt({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){"use strict";ai(),Ta(),S$="fixInvalidJsxCharacters_expression",rB="fixInvalidJsxCharacters_htmlEntity",Ife=[f.Unexpected_token_Did_you_mean_or_gt.code,f.Unexpected_token_Did_you_mean_or_rbrace.code],Ea({errorCodes:Ife,fixIds:[S$,rB],getCodeActions(e){let{sourceFile:t,preferences:r,span:i}=e,o=ur.ChangeTracker.with(e,l=>Afe(l,r,t,i.start,!1)),s=ur.ChangeTracker.with(e,l=>Afe(l,r,t,i.start,!0));return[oa(S$,o,f.Wrap_invalid_character_in_an_expression_container,S$,f.Wrap_all_invalid_characters_in_an_expression_container),oa(rB,s,f.Convert_invalid_character_to_its_html_entity_code,rB,f.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return gs(e,Ife,(t,r)=>Afe(t,e.preferences,r.file,r.start,e.fixId===rB))}}),xfe={">":">","}":"}"}}});function F$e(e,{name:t,jsDocHost:r,jsDocParameterTag:i}){let o=ur.ChangeTracker.with(e,s=>s.filterJSDocTags(e.sourceFile,r,l=>l!==i));return oa(iB,o,[f.Delete_unused_param_tag_0,t.getText(e.sourceFile)],iB,f.Delete_all_unused_param_tags)}function z$e(e,{name:t,jsDocHost:r,signature:i,jsDocParameterTag:o}){if(!Nn(i.parameters))return;let s=e.sourceFile,l=rE(i),d=new Set;for(let y of l)Ym(y)&&Fe(y.name)&&d.add(y.name.escapedText);let p=Wl(i.parameters,y=>Fe(y.name)&&!d.has(y.name.escapedText)?y.name.getText(s):void 0);if(p===void 0)return;let h=L.updateJSDocParameterTag(o,o.tagName,L.createIdentifier(p),o.isBracketed,o.typeExpression,o.isNameFirst,o.comment),m=ur.ChangeTracker.with(e,y=>y.replaceJSDocComment(s,r,mn(l,E=>E===o?h:E)));return Qm(Rfe,m,[f.Rename_param_tag_name_0_to_1,t.getText(s),p])}function PPe(e,t){let r=so(e,t);if(r.parent&&Ym(r.parent)&&Fe(r.parent.name)){let i=r.parent,o=vT(i),s=lE(i);if(o&&s)return{jsDocHost:o,signature:s,name:r.parent.name,jsDocParameterTag:i}}}var iB,Rfe,Dfe,B$e=bt({"src/services/codefixes/fixUnmatchedParameter.ts"(){"use strict";ai(),Ta(),iB="deleteUnmatchedParameter",Rfe="renameUnmatchedParameter",Dfe=[f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],Ea({fixIds:[iB,Rfe],errorCodes:Dfe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=[],s=PPe(r,i.start);if(s)return Tn(o,F$e(t,s)),Tn(o,z$e(t,s)),o},getAllCodeActions:function(t){let r=new Map;return ED(ur.ChangeTracker.with(t,i=>{SD(t,Dfe,({file:o,start:s})=>{let l=PPe(o,s);l&&r.set(l.signature,Tn(r.get(l.signature),l.jsDocParameterTag))}),r.forEach((o,s)=>{if(t.fixId===iB){let l=new Set(o);i.filterJSDocTags(s.getSourceFile(),s,d=>!l.has(d))}})}))}})}});function G$e(e,t,r){let i=ri(so(e,r),Fe);if(!i||i.parent.kind!==183)return;let s=t.getTypeChecker().getSymbolAtLocation(i);return Vr(s?.declarations||Xe,jm(gh,Qu,td))}function V$e(e,t,r,i){if(r.kind===271){e.insertModifierBefore(t,156,r.name);return}let o=r.kind===273?r:r.parent.parent;if(o.name&&o.namedBindings)return;let s=i.getTypeChecker();$F(o,d=>{if(vd(d.symbol,s).flags&111551)return!0})||e.insertModifierBefore(t,156,o)}function j$e(e,t,r,i){T1.doChangeNamedToNamespaceOrDefault(t,i,e,r.parent)}var T$,MPe,U$e=bt({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){"use strict";ai(),Ta(),T$="fixUnreferenceableDecoratorMetadata",MPe=[f.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],Ea({errorCodes:MPe,getCodeActions:e=>{let t=G$e(e.sourceFile,e.program,e.span.start);if(!t)return;let r=ur.ChangeTracker.with(e,s=>t.kind===276&&j$e(s,e.sourceFile,t,e.program)),i=ur.ChangeTracker.with(e,s=>V$e(s,e.sourceFile,t,e.program)),o;return r.length&&(o=Tn(o,Qm(T$,r,f.Convert_named_imports_to_namespace_import))),i.length&&(o=Tn(o,Qm(T$,i,f.Use_import_type))),o},fixIds:[T$]})}});function LPe(e,t,r){e.replaceNode(t,r.parent,L.createKeywordTypeNode(159))}function OO(e,t){return oa(WO,e,t,x$,f.Delete_all_unused_declarations)}function kPe(e,t,r){e.delete(t,x.checkDefined(na(r.parent,tj).typeParameters,"The type parameter to delete should exist"))}function Cfe(e){return e.kind===102||e.kind===80&&(e.parent.kind===276||e.parent.kind===273)}function wPe(e){return e.kind===102?ri(e.parent,Lc):void 0}function OPe(e,t){return Uc(t.parent)&&Va(t.parent.getChildren(e))===t}function WPe(e,t,r){e.delete(t,r.parent.kind===243?r.parent:r)}function H$e(e,t,r){gn(r.elements,i=>e.delete(t,i))}function K$e(e,t,r,{parent:i}){if(wi(i)&&i.initializer&&E0(i.initializer))if(Uc(i.parent)&&Nn(i.parent.declarations)>1){let o=i.parent.parent,s=o.getStart(r),l=o.end;t.delete(r,i),t.insertNodeAt(r,l,i.initializer,{prefix:Ky(e.host,e.formatContext.options)+r.text.slice(t7(r.text,s-1),s),suffix:cO(r)?";":""})}else t.replaceNode(r,i.parent,i.initializer);else t.delete(r,i)}function FPe(e,t,r,i){t!==f.Property_0_is_declared_but_its_value_is_never_read.code&&(i.kind===140&&(i=na(i.parent,CT).typeParameter.name),Fe(i)&&J$e(i)&&(e.replaceNode(r,i,L.createIdentifier(`_${i.text}`)),Ao(i.parent)&&kx(i.parent).forEach(o=>{Fe(o.name)&&e.replaceNode(r,o.name,L.createIdentifier(`_${o.name.text}`))})))}function J$e(e){switch(e.parent.kind){case 169:case 168:return!0;case 260:switch(e.parent.parent.parent.kind){case 250:case 249:return!0}}return!1}function A$(e,t,r,i,o,s,l,d){q$e(t,r,e,i,o,s,l,d),Fe(t)&&Ms.Core.eachSymbolReferenceInFile(t,i,e,p=>{kr(p.parent)&&p.parent.name===p&&(p=p.parent),!d&&Q$e(p)&&r.delete(e,p.parent.parent)})}function q$e(e,t,r,i,o,s,l,d){let{parent:p}=e;if(Ao(p))X$e(t,r,p,i,o,s,l,d);else if(!(d&&Fe(e)&&Ms.Core.isSymbolReferencedInFile(e,i,r))){let h=gh(p)?e:Ya(p)?p.parent:p;x.assert(h!==r,"should not delete whole source file"),t.delete(r,h)}}function X$e(e,t,r,i,o,s,l,d=!1){if(Y$e(i,t,r,o,s,l,d))if(r.modifiers&&r.modifiers.length>0&&(!Fe(r.name)||Ms.Core.isSymbolReferencedInFile(r.name,i,t)))for(let p of r.modifiers)Sa(p)&&e.deleteModifier(t,p);else!r.initializer&&zPe(r,i,o)&&e.delete(t,r)}function zPe(e,t,r){let i=e.parent.parameters.indexOf(e);return!Ms.Core.someSignatureUsage(e.parent,r,t,(o,s)=>!s||s.arguments.length>i)}function Y$e(e,t,r,i,o,s,l){let{parent:d}=r;switch(d.kind){case 174:case 176:let p=d.parameters.indexOf(r),h=Ul(d)?d.name:d,m=Ms.Core.getReferencedSymbolsForNode(d.pos,h,o,i,s);if(m){for(let y of m)for(let E of y.references)if(E.kind===Ms.EntryKind.Node){let S=aP(E.node)&&ia(E.node.parent)&&E.node.parent.arguments.length>p,A=kr(E.node.parent)&&aP(E.node.parent.expression)&&ia(E.node.parent.parent)&&E.node.parent.parent.arguments.length>p,N=(Ul(E.node.parent)||_h(E.node.parent))&&E.node.parent!==r.parent&&E.node.parent.parameters.length>p;if(S||A||N)return!1}}return!0;case 262:return d.name&&$$e(e,t,d.name)?BPe(d,r,l):!0;case 218:case 219:return BPe(d,r,l);case 178:return!1;case 177:return!0;default:return x.failBadSyntaxKind(d)}}function $$e(e,t,r){return!!Ms.Core.eachSymbolReferenceInFile(r,e,t,i=>Fe(i)&&ia(i.parent)&&i.parent.arguments.includes(i))}function BPe(e,t,r){let i=e.parameters,o=i.indexOf(t);return x.assert(o!==-1,"The parameter should already be in the list"),r?i.slice(o+1).every(s=>Fe(s.name)&&!s.symbol.isReferenced):o===i.length-1}function Q$e(e){return(dr(e.parent)&&e.parent.left===e||(tH(e.parent)||qv(e.parent))&&e.parent.operand===e)&&ed(e.parent.parent)}var WO,I$,x$,oB,R$,Nfe,Z$e=bt({"src/services/codefixes/fixUnusedIdentifier.ts"(){"use strict";ai(),Ta(),WO="unusedIdentifier",I$="unusedIdentifier_prefix",x$="unusedIdentifier_delete",oB="unusedIdentifier_deleteImports",R$="unusedIdentifier_infer",Nfe=[f._0_is_declared_but_its_value_is_never_read.code,f._0_is_declared_but_never_used.code,f.Property_0_is_declared_but_its_value_is_never_read.code,f.All_imports_in_import_declaration_are_unused.code,f.All_destructured_elements_are_unused.code,f.All_variables_are_unused.code,f.All_type_parameters_are_unused.code],Ea({errorCodes:Nfe,getCodeActions(e){let{errorCode:t,sourceFile:r,program:i,cancellationToken:o}=e,s=i.getTypeChecker(),l=i.getSourceFiles(),d=so(r,e.span.start);if(nm(d))return[OO(ur.ChangeTracker.with(e,y=>y.delete(r,d)),f.Remove_template_tag)];if(d.kind===30){let y=ur.ChangeTracker.with(e,E=>kPe(E,r,d));return[OO(y,f.Remove_type_parameters)]}let p=wPe(d);if(p){let y=ur.ChangeTracker.with(e,E=>E.delete(r,p));return[oa(WO,y,[f.Remove_import_from_0,eoe(p)],oB,f.Delete_all_unused_imports)]}else if(Cfe(d)){let y=ur.ChangeTracker.with(e,E=>A$(r,d,E,s,l,i,o,!1));if(y.length)return[oa(WO,y,[f.Remove_unused_declaration_for_Colon_0,d.getText(r)],oB,f.Delete_all_unused_imports)]}if(tm(d.parent)||V0(d.parent)){if(Ao(d.parent.parent)){let y=d.parent.elements,E=[y.length>1?f.Remove_unused_declarations_for_Colon_0:f.Remove_unused_declaration_for_Colon_0,mn(y,S=>S.getText(r)).join(", ")];return[OO(ur.ChangeTracker.with(e,S=>H$e(S,r,d.parent)),E)]}return[OO(ur.ChangeTracker.with(e,y=>K$e(e,y,r,d.parent)),f.Remove_unused_destructuring_declaration)]}if(OPe(r,d))return[OO(ur.ChangeTracker.with(e,y=>WPe(y,r,d.parent)),f.Remove_variable_statement)];let h=[];if(d.kind===140){let y=ur.ChangeTracker.with(e,S=>LPe(S,r,d)),E=na(d.parent,CT).typeParameter.name.text;h.push(oa(WO,y,[f.Replace_infer_0_with_unknown,E],R$,f.Replace_all_unused_infer_with_unknown))}else{let y=ur.ChangeTracker.with(e,E=>A$(r,d,E,s,l,i,o,!1));if(y.length){let E=Ya(d.parent)?d.parent:d;h.push(OO(y,[f.Remove_unused_declaration_for_Colon_0,E.getText(r)]))}}let m=ur.ChangeTracker.with(e,y=>FPe(y,t,r,d));return m.length&&h.push(oa(WO,m,[f.Prefix_0_with_an_underscore,d.getText(r)],I$,f.Prefix_all_unused_declarations_with_where_possible)),h},fixIds:[I$,x$,oB,R$],getAllCodeActions:e=>{let{sourceFile:t,program:r,cancellationToken:i}=e,o=r.getTypeChecker(),s=r.getSourceFiles();return gs(e,Nfe,(l,d)=>{let p=so(t,d.start);switch(e.fixId){case I$:FPe(l,d.code,t,p);break;case oB:{let h=wPe(p);h?l.delete(t,h):Cfe(p)&&A$(t,p,l,o,s,r,i,!0);break}case x$:{if(p.kind===140||Cfe(p))break;if(nm(p))l.delete(t,p);else if(p.kind===30)kPe(l,t,p);else if(tm(p.parent)){if(p.parent.parent.initializer)break;(!Ao(p.parent.parent)||zPe(p.parent.parent,o,s))&&l.delete(t,p.parent.parent)}else{if(V0(p.parent.parent)&&p.parent.parent.parent.initializer)break;OPe(t,p)?WPe(l,t,p.parent):A$(t,p,l,o,s,r,i,!0)}break}case R$:p.kind===140&&LPe(l,t,p);break;default:x.fail(JSON.stringify(e.fixId))}})}})}});function GPe(e,t,r,i,o){let s=so(t,r),l=Fn(s,Hi);if(l.getStart(t)!==s.getStart(t)){let p=JSON.stringify({statementKind:x.formatSyntaxKind(l.kind),tokenKind:x.formatSyntaxKind(s.kind),errorCode:o,start:r,length:i});x.fail("Token and statement should start at the same point. "+p)}let d=(Ko(l.parent)?l.parent:l).parent;if(!Ko(l.parent)||l===Va(l.parent.statements))switch(d.kind){case 245:if(d.elseStatement){if(Ko(l.parent))break;e.replaceNode(t,l,L.createBlock(Xe));return}case 247:case 248:e.delete(t,d);return}if(Ko(l.parent)){let p=r+i,h=x.checkDefined(eQe(dU(l.parent.statements,l),m=>m.posGPe(i,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[oa(D$,r,f.Remove_unreachable_code,D$,f.Remove_all_unreachable_code)]},fixIds:[D$],getAllCodeActions:e=>gs(e,Pfe,(t,r)=>GPe(t,r.file,r.start,r.length,r.code))})}});function VPe(e,t,r){let i=so(t,r),o=na(i.parent,H0),s=i.getStart(t),l=o.statement.getStart(t),d=Sf(s,l,t)?l:Na(t.text,_s(o,59,t).end,!0);e.deleteRange(t,{pos:s,end:d})}var C$,Mfe,nQe=bt({"src/services/codefixes/fixUnusedLabel.ts"(){"use strict";ai(),Ta(),C$="fixUnusedLabel",Mfe=[f.Unused_label.code],Ea({errorCodes:Mfe,getCodeActions(e){let t=ur.ChangeTracker.with(e,r=>VPe(r,e.sourceFile,e.span.start));return[oa(C$,t,f.Remove_unused_label,C$,f.Remove_all_unused_labels)]},fixIds:[C$],getAllCodeActions:e=>gs(e,Mfe,(t,r)=>VPe(t,r.file,r.start))})}});function jPe(e,t,r,i,o){e.replaceNode(t,r,o.typeToTypeNode(i,r,void 0))}function UPe(e,t,r){let i=Fn(so(e,t),rQe),o=i&&i.type;return o&&{typeNode:o,type:iQe(r,o)}}function rQe(e){switch(e.kind){case 234:case 179:case 180:case 262:case 177:case 181:case 200:case 174:case 173:case 169:case 172:case 171:case 178:case 265:case 216:case 260:return!0;default:return!1}}function iQe(e,t){if(LR(t)){let r=e.getTypeFromTypeNode(t.type);return r===e.getNeverType()||r===e.getVoidType()?r:e.getUnionType(Tn([r,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var Lfe,N$,kfe,oQe=bt({"src/services/codefixes/fixJSDocTypes.ts"(){"use strict";ai(),Ta(),Lfe="fixJSDocTypes_plain",N$="fixJSDocTypes_nullable",kfe=[f.JSDoc_types_can_only_be_used_inside_documentation_comments.code,f._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,f._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code],Ea({errorCodes:kfe,getCodeActions(e){let{sourceFile:t}=e,r=e.program.getTypeChecker(),i=UPe(t,e.span.start,r);if(!i)return;let{typeNode:o,type:s}=i,l=o.getText(t),d=[p(s,Lfe,f.Change_all_jsdoc_style_types_to_TypeScript)];return o.kind===321&&d.push(p(s,N$,f.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),d;function p(h,m,y){let E=ur.ChangeTracker.with(e,S=>jPe(S,t,o,h,r));return oa("jdocTypes",E,[f.Change_0_to_1,l,r.typeToString(h)],m,y)}},fixIds:[Lfe,N$],getAllCodeActions(e){let{fixId:t,program:r,sourceFile:i}=e,o=r.getTypeChecker();return gs(e,kfe,(s,l)=>{let d=UPe(l.file,l.start,o);if(!d)return;let{typeNode:p,type:h}=d,m=p.kind===321&&t===N$?o.getNullableType(h,32768):h;jPe(s,i,p,m,o)})}})}});function HPe(e,t,r){e.replaceNodeWithText(t,r,`${r.text}()`)}function KPe(e,t){let r=so(e,t);if(kr(r.parent)){let i=r.parent;for(;kr(i.parent);)i=i.parent;return i.name}if(Fe(r))return r}var P$,wfe,aQe=bt({"src/services/codefixes/fixMissingCallParentheses.ts"(){"use strict";ai(),Ta(),P$="fixMissingCallParentheses",wfe=[f.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],Ea({errorCodes:wfe,fixIds:[P$],getCodeActions(e){let{sourceFile:t,span:r}=e,i=KPe(t,r.start);if(!i)return;let o=ur.ChangeTracker.with(e,s=>HPe(s,e.sourceFile,i));return[oa(P$,o,f.Add_missing_call_parentheses,P$,f.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>gs(e,wfe,(t,r)=>{let i=KPe(r.file,r.start);i&&HPe(t,r.file,i)})})}});function sQe(e){if(e.type)return e.type;if(wi(e.parent)&&e.parent.type&&hh(e.parent.type))return e.parent.type.type}function JPe(e,t){let r=so(e,t),i=Wp(r);if(!i)return;let o;switch(i.kind){case 174:o=i.name;break;case 262:case 218:o=_s(i,100,e);break;case 219:let s=i.typeParameters?30:21;o=_s(i,s,e)||Va(i.parameters);break;default:return}return o&&{insertBefore:o,returnType:sQe(i)}}function qPe(e,t,{insertBefore:r,returnType:i}){if(i){let o=A2(i);(!o||o.kind!==80||o.text!=="Promise")&&e.replaceNode(t,i,L.createTypeReferenceNode("Promise",L.createNodeArray([i])))}e.insertModifierBefore(t,134,r)}var M$,Ofe,lQe=bt({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){"use strict";ai(),Ta(),M$="fixAwaitInSyncFunction",Ofe=[f.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code],Ea({errorCodes:Ofe,getCodeActions(e){let{sourceFile:t,span:r}=e,i=JPe(t,r.start);if(!i)return;let o=ur.ChangeTracker.with(e,s=>qPe(s,t,i));return[oa(M$,o,f.Add_async_modifier_to_containing_function,M$,f.Add_all_missing_async_modifiers)]},fixIds:[M$],getAllCodeActions:function(t){let r=new Map;return gs(t,Ofe,(i,o)=>{let s=JPe(o.file,o.start);!s||!Em(r,rs(s.insertBefore))||qPe(i,t.sourceFile,s)})}})}});function XPe(e,t,r,i,o){let s,l;if(i===f._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)s=t,l=t+r;else if(i===f._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){let d=o.program.getTypeChecker(),p=so(e,t).parent;x.assert(Cv(p),"error span of fixPropertyOverrideAccessor should only be on an accessor");let h=p.parent;x.assert(ci(h),"erroneous accessors should only be inside classes");let m=nh(eme(h,d));if(!m)return[];let y=Vi(Ux(p.name)),E=d.getPropertyOfType(d.getTypeAtLocation(m),y);if(!E||!E.valueDeclaration)return[];s=E.valueDeclaration.pos,l=E.valueDeclaration.end,e=Gn(E.valueDeclaration)}else x.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return dMe(e,o.program,s,l,o,f.Generate_get_and_set_accessors.message)}var Wfe,L$,cQe=bt({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){"use strict";ai(),Ta(),Wfe=[f._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,f._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],L$="fixPropertyOverrideAccessor",Ea({errorCodes:Wfe,getCodeActions(e){let t=XPe(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[oa(L$,t,f.Generate_get_and_set_accessors,L$,f.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[L$],getAllCodeActions:e=>gs(e,Wfe,(t,r)=>{let i=XPe(r.file,r.start,r.length,r.code,e);if(i)for(let o of i)t.pushRaw(e.sourceFile,o)})})}});function dQe(e,t){switch(e){case f.Parameter_0_implicitly_has_an_1_type.code:case f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return hp(Wp(t))?f.Infer_type_of_0_from_usage:f.Infer_parameter_types_from_usage;case f.Rest_parameter_0_implicitly_has_an_any_type.code:case f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Infer_parameter_types_from_usage;case f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return f.Infer_this_type_of_0_from_usage;default:return f.Infer_type_of_0_from_usage}}function uQe(e){switch(e){case f.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case f.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Variable_0_implicitly_has_an_1_type.code;case f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Parameter_0_implicitly_has_an_1_type.code;case f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Rest_parameter_0_implicitly_has_an_any_type.code;case f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case f._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case f.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Member_0_implicitly_has_an_1_type.code}return e}function YPe(e,t,r,i,o,s,l,d,p){if(!oN(r.kind)&&r.kind!==80&&r.kind!==26&&r.kind!==110)return;let{parent:h}=r,m=x1(t,o,p,d);switch(i=uQe(i),i){case f.Member_0_implicitly_has_an_1_type.code:case f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(wi(h)&&l(h)||Uo(h)||_p(h))return $Pe(e,m,t,h,o,d,s),m.writeFixes(e),h;if(kr(h)){let S=FO(h.name,o,s),A=rM(S,h,o,d);if(A){let N=L.createJSDocTypeTag(void 0,L.createJSDocTypeExpression(A),void 0);e.addJSDocTags(t,na(h.parent.parent,ed),[N])}return m.writeFixes(e),h}return;case f.Variable_0_implicitly_has_an_1_type.code:{let S=o.getTypeChecker().getSymbolAtLocation(r);return S&&S.valueDeclaration&&wi(S.valueDeclaration)&&l(S.valueDeclaration)?($Pe(e,m,Gn(S.valueDeclaration),S.valueDeclaration,o,d,s),m.writeFixes(e),S.valueDeclaration):void 0}}let y=Wp(r);if(y===void 0)return;let E;switch(i){case f.Parameter_0_implicitly_has_an_1_type.code:if(hp(y)){QPe(e,m,t,y,o,d,s),E=y;break}case f.Rest_parameter_0_implicitly_has_an_any_type.code:if(l(y)){let S=na(h,Ao);pQe(e,m,t,S,y,o,d,s),E=S}break;case f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:Qp(y)&&Fe(y.name)&&(k$(e,m,t,y,FO(y.name,o,s),o,d),E=y);break;case f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:hp(y)&&(QPe(e,m,t,y,o,d,s),E=y);break;case f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:ur.isThisTypeAnnotatable(y)&&l(y)&&(fQe(e,t,y,o,d,s),E=y);break;default:return x.fail(String(i))}return m.writeFixes(e),E}function $Pe(e,t,r,i,o,s,l){Fe(i.name)&&k$(e,t,r,i,FO(i.name,o,l),o,s)}function pQe(e,t,r,i,o,s,l,d){if(!Fe(i.name))return;let p=hQe(o,r,s,d);if(x.assert(o.parameters.length===p.length,"Parameter count and inference count should match"),ir(o))ZPe(e,r,p,s,l);else{let h=Os(o)&&!_s(o,21,r);h&&e.insertNodeBefore(r,Va(o.parameters),L.createToken(21));for(let{declaration:m,type:y}of p)m&&!m.type&&!m.initializer&&k$(e,t,r,m,y,s,l);h&&e.insertNodeAfter(r,Ja(o.parameters),L.createToken(22))}}function fQe(e,t,r,i,o,s){let l=eMe(r,t,i,s);if(!l||!l.length)return;let d=zfe(i,l,s).thisParameter(),p=rM(d,r,i,o);p&&(ir(r)?mQe(e,t,r,p):e.tryInsertThisTypeAnnotation(t,r,p))}function mQe(e,t,r,i){e.addJSDocTags(t,r,[L.createJSDocThisTag(void 0,L.createJSDocTypeExpression(i))])}function QPe(e,t,r,i,o,s,l){let d=Xc(i.parameters);if(d&&Fe(i.name)&&Fe(d.name)){let p=FO(i.name,o,l);p===o.getTypeChecker().getAnyType()&&(p=FO(d.name,o,l)),ir(i)?ZPe(e,r,[{declaration:d,type:p}],o,s):k$(e,t,r,d,p,o,s)}}function k$(e,t,r,i,o,s,l){let d=rM(o,i,s,l);if(d)if(ir(r)&&i.kind!==171){let p=wi(i)?ri(i.parent.parent,Ml):i;if(!p)return;let h=L.createJSDocTypeExpression(d),m=Qp(i)?L.createJSDocReturnTag(void 0,h,void 0):L.createJSDocTypeTag(void 0,h,void 0);e.addJSDocTags(r,p,[m])}else _Qe(d,i,r,e,t,ns(s.getCompilerOptions()))||e.tryInsertTypeAnnotation(r,i,d)}function _Qe(e,t,r,i,o,s){let l=D1(e,s);return l&&i.tryInsertTypeAnnotation(r,t,l.typeNode)?(gn(l.symbols,d=>o.addImportFromExportedSymbol(d,!0)),!0):!1}function ZPe(e,t,r,i,o){let s=r.length&&r[0].declaration.parent;if(!s)return;let l=to(r,d=>{let p=d.declaration;if(p.initializer||nE(p)||!Fe(p.name))return;let h=d.type&&rM(d.type,p,i,o);if(h){let m=L.cloneNode(p.name);return lr(m,7168),{name:L.cloneNode(p.name),param:p,isOptional:!!d.isOptional,typeNode:h}}});if(l.length)if(Os(s)||Ps(s)){let d=Os(s)&&!_s(s,21,t);d&&e.insertNodeBefore(t,Va(s.parameters),L.createToken(21)),gn(l,({typeNode:p,param:h})=>{let m=L.createJSDocTypeTag(void 0,L.createJSDocTypeExpression(p)),y=L.createJSDocComment(void 0,[m]);e.insertNodeAt(t,h.getStart(t),y,{suffix:" "})}),d&&e.insertNodeAfter(t,Ja(s.parameters),L.createToken(22))}else{let d=mn(l,({name:p,typeNode:h,isOptional:m})=>L.createJSDocParameterTag(void 0,p,!!m,L.createJSDocTypeExpression(h),!1,void 0));e.addJSDocTags(t,s,d)}}function Ffe(e,t,r){return to(Ms.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),r),i=>i.kind!==Ms.EntryKind.Span?ri(i.node,Fe):void 0)}function FO(e,t,r){let i=Ffe(e,t,r);return zfe(t,i,r).single()}function hQe(e,t,r,i){let o=eMe(e,t,r,i);return o&&zfe(r,o,i).parameters(e)||e.parameters.map(s=>({declaration:s,type:Fe(s.name)?FO(s.name,r,i):r.getTypeChecker().getAnyType()}))}function eMe(e,t,r,i){let o;switch(e.kind){case 176:o=_s(e,137,t);break;case 219:case 218:let s=e.parent;o=(wi(s)||Uo(s))&&Fe(s.name)?s.name:e.name;break;case 262:case 174:case 173:o=e.name;break}if(o)return Ffe(o,r,i)}function zfe(e,t,r){let i=e.getTypeChecker(),o={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:Ae=>i.createArrayType(Ae),Promise:Ae=>i.createPromiseType(Ae)},s=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:p,parameters:h,thisParameter:m};function l(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function d(Ae){let De=new Map;for(let Et of Ae)Et.properties&&Et.properties.forEach((be,ze)=>{De.has(ze)||De.set(ze,[]),De.get(ze).push(be)});let Le=new Map;return De.forEach((Et,be)=>{Le.set(be,d(Et))}),{isNumber:Ae.some(Et=>Et.isNumber),isString:Ae.some(Et=>Et.isString),isNumberOrString:Ae.some(Et=>Et.isNumberOrString),candidateTypes:va(Ae,Et=>Et.candidateTypes),properties:Le,calls:va(Ae,Et=>Et.calls),constructs:va(Ae,Et=>Et.constructs),numberIndex:gn(Ae,Et=>Et.numberIndex),stringIndex:gn(Ae,Et=>Et.stringIndex),candidateThisTypes:va(Ae,Et=>Et.candidateThisTypes),inferredTypes:void 0}}function p(){return me(y(t))}function h(Ae){if(t.length===0||!Ae.parameters)return;let De=l();for(let Et of t)r.throwIfCancellationRequested(),E(Et,De);let Le=[...De.constructs||[],...De.calls||[]];return Ae.parameters.map((Et,be)=>{let ze=[],tt=Kh(Et),Wt=!1;for(let Je of Le)if(Je.argumentTypes.length<=be)Wt=ir(Ae),ze.push(i.getUndefinedType());else if(tt)for(let pt=be;ptLe.every(be=>!be(Et)))}function Z(Ae){return me(q(Ae))}function me(Ae){if(!Ae.length)return i.getAnyType();let De=i.getUnionType([i.getStringType(),i.getNumberType()]),Et=z(Ae,[{high:ze=>ze===i.getStringType()||ze===i.getNumberType(),low:ze=>ze===De},{high:ze=>!(ze.flags&16385),low:ze=>!!(ze.flags&16385)},{high:ze=>!(ze.flags&114689)&&!(Lr(ze)&16),low:ze=>!!(Lr(ze)&16)}]),be=Et.filter(ze=>Lr(ze)&16);return be.length&&(Et=Et.filter(ze=>!(Lr(ze)&16)),Et.push(ge(be))),i.getWidenedType(i.getUnionType(Et.map(i.getBaseTypeOfLiteralType),2))}function ge(Ae){if(Ae.length===1)return Ae[0];let De=[],Le=[],Et=[],be=[],ze=!1,tt=!1,Wt=qp();for(let pt of Ae){for(let Dn of i.getPropertiesOfType(pt))Wt.add(Dn.escapedName,Dn.valueDeclaration?i.getTypeOfSymbolAtLocation(Dn,Dn.valueDeclaration):i.getAnyType());De.push(...i.getSignaturesOfType(pt,0)),Le.push(...i.getSignaturesOfType(pt,1));let Zt=i.getIndexInfoOfType(pt,0);Zt&&(Et.push(Zt.type),ze=ze||Zt.isReadonly);let en=i.getIndexInfoOfType(pt,1);en&&(be.push(en.type),tt=tt||en.isReadonly)}let _t=qte(Wt,(pt,Zt)=>{let en=Zt.lengthi.getBaseTypeOfLiteralType(Wt)),tt=(Et=Ae.calls)!=null&&Et.length?J(Ae):void 0;return tt&&ze?be.push(i.getUnionType([tt,...ze],2)):(tt&&be.push(tt),Nn(ze)&&be.push(...ze)),be.push(...re(Ae)),be}function J(Ae){let De=new Map;Ae.properties&&Ae.properties.forEach((ze,tt)=>{let Wt=i.createSymbol(4,tt);Wt.links.type=Z(ze),De.set(tt,Wt)});let Le=Ae.calls?[Ce(Ae.calls)]:[],Et=Ae.constructs?[Ce(Ae.constructs)]:[],be=Ae.stringIndex?[i.createIndexInfo(i.getStringType(),Z(Ae.stringIndex),!1)]:[];return i.createAnonymousType(void 0,De,Le,Et,be)}function re(Ae){if(!Ae.properties||!Ae.properties.size)return[];let De=s.filter(Le=>pe(Le,Ae));return 0xe(Le,Ae)):[]}function pe(Ae,De){return De.properties?!Gc(De.properties,(Le,Et)=>{let be=i.getTypeOfPropertyOfType(Ae,Et);return be?Le.calls?!i.getSignaturesOfType(be,0).length||!i.isTypeAssignableTo(be,he(Le.calls)):!i.isTypeAssignableTo(be,Z(Le)):!0}):!1}function xe(Ae,De){if(!(Lr(Ae)&4)||!De.properties)return Ae;let Le=Ae.target,Et=nh(Le.typeParameters);if(!Et)return Ae;let be=[];return De.properties.forEach((ze,tt)=>{let Wt=i.getTypeOfPropertyOfType(Le,tt);x.assert(!!Wt,"generic should have all the properties of its reference."),be.push(...fe(Wt,Z(ze),Et))}),o[Ae.symbol.escapedName](me(be))}function fe(Ae,De,Le){if(Ae===Le)return[De];if(Ae.flags&3145728)return va(Ae.types,ze=>fe(ze,De,Le));if(Lr(Ae)&4&&Lr(De)&4){let ze=i.getTypeArguments(Ae),tt=i.getTypeArguments(De),Wt=[];if(ze&&tt)for(let _t=0;_tbe.argumentTypes.length));for(let be=0;bett.argumentTypes[be]||i.getUndefinedType())),Ae.some(tt=>tt.argumentTypes[be]===void 0)&&(ze.flags|=16777216),De.push(ze)}let Et=Z(d(Ae.map(be=>be.return_)));return i.createSignature(void 0,void 0,void 0,De,Et,void 0,Le,0)}function Ge(Ae,De){De&&!(De.flags&1)&&!(De.flags&131072)&&(Ae.candidateTypes||(Ae.candidateTypes=[])).push(De)}function ve(Ae,De){De&&!(De.flags&1)&&!(De.flags&131072)&&(Ae.candidateThisTypes||(Ae.candidateThisTypes=[])).push(De)}}var w$,Bfe,gQe=bt({"src/services/codefixes/inferFromUsage.ts"(){"use strict";ai(),Ta(),w$="inferFromUsage",Bfe=[f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,f.Variable_0_implicitly_has_an_1_type.code,f.Parameter_0_implicitly_has_an_1_type.code,f.Rest_parameter_0_implicitly_has_an_any_type.code,f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,f.Member_0_implicitly_has_an_1_type.code,f.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,f.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,f._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,f.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],Ea({errorCodes:Bfe,getCodeActions(e){let{sourceFile:t,program:r,span:{start:i},errorCode:o,cancellationToken:s,host:l,preferences:d}=e,p=so(t,i),h,m=ur.ChangeTracker.with(e,E=>{h=YPe(E,t,p,o,r,s,Sy,l,d)}),y=h&&Po(h);return!y||m.length===0?void 0:[oa(w$,m,[dQe(o,p),uc(y)],w$,f.Infer_all_types_from_usage)]},fixIds:[w$],getAllCodeActions(e){let{sourceFile:t,program:r,cancellationToken:i,host:o,preferences:s}=e,l=v1();return gs(e,Bfe,(d,p)=>{YPe(d,t,so(p.file,p.start),p.code,r,i,l,o,s)})}})}});function tMe(e,t,r){if(ir(e))return;let i=so(e,r),o=Fn(i,ws),s=o?.type;if(!s)return;let l=t.getTypeFromTypeNode(s),d=t.getAwaitedType(l)||t.getVoidType(),p=t.typeToTypeNode(d,s,void 0);if(p)return{returnTypeNode:s,returnType:l,promisedTypeNode:p,promisedType:d}}function nMe(e,t,r,i){e.replaceNode(t,r,L.createTypeReferenceNode("Promise",[i]))}var O$,Gfe,yQe=bt({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){"use strict";ai(),Ta(),O$="fixReturnTypeInAsyncFunction",Gfe=[f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code],Ea({errorCodes:Gfe,fixIds:[O$],getCodeActions:function(t){let{sourceFile:r,program:i,span:o}=t,s=i.getTypeChecker(),l=tMe(r,i.getTypeChecker(),o.start);if(!l)return;let{returnTypeNode:d,returnType:p,promisedTypeNode:h,promisedType:m}=l,y=ur.ChangeTracker.with(t,E=>nMe(E,r,d,h));return[oa(O$,y,[f.Replace_0_with_Promise_1,s.typeToString(p),s.typeToString(m)],O$,f.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>gs(e,Gfe,(t,r)=>{let i=tMe(r.file,e.program.getTypeChecker(),r.start);i&&nMe(t,r.file,i.returnTypeNode,i.promisedTypeNode)})})}});function rMe(e,t,r,i){let{line:o}=hs(t,r);(!i||Kb(i,o))&&e.insertCommentBeforeLine(t,o,r," @ts-ignore")}var Vfe,jfe,Ufe,vQe=bt({"src/services/codefixes/disableJsDiagnostics.ts"(){"use strict";ai(),Ta(),Vfe="disableJsDiagnostics",jfe="disableJsDiagnostics",Ufe=to(Object.keys(f),e=>{let t=f[e];return t.category===1?t.code:void 0}),Ea({errorCodes:Ufe,getCodeActions:function(t){let{sourceFile:r,program:i,span:o,host:s,formatContext:l}=t;if(!ir(r)||!ck(r,i.getCompilerOptions()))return;let d=r.checkJsDirective?"":Ky(s,l.options),p=[Qm(Vfe,[oCe(r.fileName,[Zw(r.checkJsDirective?dc(r.checkJsDirective.pos,r.checkJsDirective.end):gd(0,0),`// @ts-nocheck${d}`)])],f.Disable_checking_for_this_file)];return ur.isValidLocationToAddComment(r,o.start)&&p.unshift(oa(Vfe,ur.ChangeTracker.with(t,h=>rMe(h,r,o.start)),f.Ignore_this_error_message,jfe,f.Add_ts_ignore_to_all_error_messages)),p},fixIds:[jfe],getAllCodeActions:e=>{let t=new Set;return gs(e,Ufe,(r,i)=>{ur.isValidLocationToAddComment(i.file,i.start)&&rMe(r,i.file,i.start,t)})}})}});function Hfe(e,t,r,i,o,s,l){let d=e.symbol.members;for(let p of t)d.has(p.escapedName)||iMe(p,e,r,i,o,s,l,void 0)}function AD(e){return{trackSymbol:()=>!1,moduleResolverHost:Vq(e.program,e.host)}}function iMe(e,t,r,i,o,s,l,d,p=3,h=!1){let m=e.getDeclarations(),y=Xc(m),E=i.program.getTypeChecker(),S=ns(i.program.getCompilerOptions()),A=y?.kind??171,N=re(e,y),D=y?lu(y):0,w=D&256;w|=D&1?1:D&4?4:0,y&&Mu(y)&&(w|=512);let j=Z(),K=E.getWidenedType(E.getTypeOfSymbolAtLocation(e,t)),Y=!!(e.flags&16777216),B=!!(t.flags&33554432)||h,ce=of(r,o);switch(A){case 171:case 172:let pe=ce===0?268435456:void 0,xe=E.typeToTypeNode(K,t,pe,AD(i));if(s){let ne=D1(xe,S);ne&&(xe=ne.typeNode,ID(s,ne.symbols))}l(L.createPropertyDeclaration(j,y?ge(N):e.getName(),Y&&p&2?L.createToken(58):void 0,xe,void 0));break;case 177:case 178:{x.assertIsDefined(m);let ne=E.typeToTypeNode(K,t,void 0,AD(i)),he=AT(m,y),Ce=he.secondAccessor?[he.firstAccessor,he.secondAccessor]:[he.firstAccessor];if(s){let Ge=D1(ne,S);Ge&&(ne=Ge.typeNode,ID(s,Ge.symbols))}for(let Ge of Ce)if(Qp(Ge))l(L.createGetAccessorDeclaration(j,ge(N),Xe,J(ne),q(d,ce,B)));else{x.assertNode(Ge,hp,"The counterpart to a getter should be a setter");let ve=DN(Ge),Ae=ve&&Fe(ve.name)?gr(ve.name):void 0;l(L.createSetAccessorDeclaration(j,ge(N),Jfe(1,[Ae],[J(ne)],1,!1),q(d,ce,B)))}break}case 173:case 174:x.assertIsDefined(m);let fe=K.isUnion()?va(K.types,ne=>ne.getCallSignatures()):K.getCallSignatures();if(!gt(fe))break;if(m.length===1){x.assert(fe.length===1,"One declaration implies one signature");let ne=fe[0];z(ce,ne,j,ge(N),q(d,ce,B));break}for(let ne of fe)z(ce,ne,j,ge(N));if(!B)if(m.length>fe.length){let ne=E.getSignatureFromDeclaration(m[m.length-1]);z(ce,ne,j,ge(N),q(d,ce))}else x.assert(m.length===fe.length,"Declarations and signatures should match count"),l(SQe(E,i,t,fe,ge(N),Y&&!!(p&1),j,ce,d));break}function z(pe,xe,fe,ne,he){let Ce=W$(174,i,pe,xe,he,ne,fe,Y&&!!(p&1),t,s);Ce&&l(Ce)}function Z(){let pe;return w&&(pe=vx(pe,L.createModifiersFromModifierFlags(w))),me()&&(pe=Tn(pe,L.createToken(164))),pe&&L.createNodeArray(pe)}function me(){return!!(i.program.getCompilerOptions().noImplicitOverride&&y&&w0(y))}function ge(pe){return Fe(pe)&&pe.escapedText==="constructor"?L.createComputedPropertyName(L.createStringLiteral(gr(pe),ce===0)):ol(pe,!1)}function q(pe,xe,fe){return fe?void 0:ol(pe,!1)||qfe(xe)}function J(pe){return ol(pe,!1)}function re(pe,xe){if(Tl(pe)&262144){let fe=pe.links.nameType;if(fe&&Qf(fe))return L.createIdentifier(Vi(Zf(fe)))}return ol(Po(xe),!1)}}function W$(e,t,r,i,o,s,l,d,p,h){let m=t.program,y=m.getTypeChecker(),E=ns(m.getCompilerOptions()),S=ir(p),A=524545|(r===0?268435456:0),N=y.signatureToSignatureDeclaration(i,e,p,A,AD(t));if(!N)return;let D=S?void 0:N.typeParameters,w=N.parameters,j=S?void 0:N.type;if(h){if(D){let ce=Pc(D,z=>{let Z=z.constraint,me=z.default;if(Z){let ge=D1(Z,E);ge&&(Z=ge.typeNode,ID(h,ge.symbols))}if(me){let ge=D1(me,E);ge&&(me=ge.typeNode,ID(h,ge.symbols))}return L.updateTypeParameterDeclaration(z,z.modifiers,z.name,Z,me)});D!==ce&&(D=at(L.createNodeArray(ce,D.hasTrailingComma),D))}let B=Pc(w,ce=>{let z=S?void 0:ce.type;if(z){let Z=D1(z,E);Z&&(z=Z.typeNode,ID(h,Z.symbols))}return L.updateParameterDeclaration(ce,ce.modifiers,ce.dotDotDotToken,ce.name,S?void 0:ce.questionToken,z,ce.initializer)});if(w!==B&&(w=at(L.createNodeArray(B,w.hasTrailingComma),w)),j){let ce=D1(j,E);ce&&(j=ce.typeNode,ID(h,ce.symbols))}}let K=d?L.createToken(58):void 0,Y=N.asteriskToken;if(Ps(N))return L.updateFunctionExpression(N,l,N.asteriskToken,ri(s,Fe),D,w,j,o??N.body);if(Os(N))return L.updateArrowFunction(N,l,D,w,j,N.equalsGreaterThanToken,o??N.body);if(Ul(N))return L.updateMethodDeclaration(N,l,Y,s??L.createIdentifier(""),K,D,w,j,o);if(Ec(N))return L.updateFunctionDeclaration(N,l,N.asteriskToken,ri(s,Fe),D,w,j,o??N.body)}function Kfe(e,t,r,i,o,s,l){let d=of(t.sourceFile,t.preferences),p=ns(t.program.getCompilerOptions()),h=AD(t),m=t.program.getTypeChecker(),y=ir(l),{typeArguments:E,arguments:S,parent:A}=i,N=y?void 0:m.getContextualType(i),D=mn(S,me=>Fe(me)?me.text:kr(me)&&Fe(me.name)?me.name.text:void 0),w=y?[]:mn(S,me=>m.getTypeAtLocation(me)),{argumentTypeNodes:j,argumentTypeParameters:K}=sMe(m,r,w,l,p,1,h),Y=s?L.createNodeArray(L.createModifiersFromModifierFlags(s)):void 0,B=z4(A)?L.createToken(42):void 0,ce=y?void 0:bQe(m,K,E),z=Jfe(S.length,D,j,void 0,y),Z=y||N===void 0?void 0:m.typeToTypeNode(N,l,void 0,h);switch(e){case 174:return L.createMethodDeclaration(Y,B,o,void 0,ce,z,Z,qfe(d));case 173:return L.createMethodSignature(Y,o,void 0,ce,z,Z===void 0?L.createKeywordTypeNode(159):Z);case 262:return x.assert(typeof o=="string"||Fe(o),"Unexpected name"),L.createFunctionDeclaration(Y,B,o,ce,z,Z,aB(f.Function_not_implemented.message,d));default:x.fail("Unexpected kind")}}function bQe(e,t,r){let i=new Set(t.map(s=>s[0])),o=new Map(t);if(r){let s=r.filter(d=>!t.some(p=>{var h;return e.getTypeAtLocation(d)===((h=p[1])==null?void 0:h.argumentType)})),l=i.size+s.length;for(let d=0;i.size{var l;return L.createTypeParameterDeclaration(void 0,s,(l=o.get(s))==null?void 0:l.constraint)})}function oMe(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function F$(e,t,r,i,o,s,l){let d=e.typeToTypeNode(r,i,s,l);if(d&&rg(d)){let p=D1(d,o);p&&(ID(t,p.symbols),d=p.typeNode)}return ol(d)}function aMe(e){return e.isUnionOrIntersection()?e.types.some(aMe):e.flags&262144}function sMe(e,t,r,i,o,s,l){let d=[],p=new Map;for(let h=0;h=i?L.createToken(58):void 0,o?void 0:r?.[d]||L.createKeywordTypeNode(159),void 0);s.push(m)}return s}function SQe(e,t,r,i,o,s,l,d,p){let h=i[0],m=i[0].minArgumentCount,y=!1;for(let N of i)m=Math.min(N.minArgumentCount,m),qd(N)&&(y=!0),N.parameters.length>=h.parameters.length&&(!qd(N)||qd(h))&&(h=N);let E=h.parameters.length-(qd(h)?1:0),S=h.parameters.map(N=>N.name),A=Jfe(E,S,void 0,m,!1);if(y){let N=L.createParameterDeclaration(void 0,L.createToken(26),S[E]||"rest",E>=m?L.createToken(58):void 0,L.createArrayTypeNode(L.createKeywordTypeNode(159)),void 0);A.push(N)}return AQe(l,o,s,void 0,A,TQe(i,e,t,r),d,p)}function TQe(e,t,r,i){if(Nn(e)){let o=t.getUnionType(mn(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(o,i,1,AD(r))}}function AQe(e,t,r,i,o,s,l,d){return L.createMethodDeclaration(e,void 0,t,r?L.createToken(58):void 0,i,o,s,d||qfe(l))}function qfe(e){return aB(f.Method_not_implemented.message,e)}function aB(e,t){return L.createBlock([L.createThrowStatement(L.createNewExpression(L.createIdentifier("Error"),void 0,[L.createStringLiteral(e,t===0)]))],!0)}function Xfe(e,t,r){let i=mN(t);if(!i)return;let o=$fe(i,"compilerOptions");if(o===void 0){e.insertNodeAtObjectStart(t,i,z$("compilerOptions",L.createObjectLiteralExpression(r.map(([l,d])=>z$(l,d)),!0)));return}let s=o.initializer;if(Ma(s))for(let[l,d]of r){let p=$fe(s,l);p===void 0?e.insertNodeAtObjectStart(t,s,z$(l,d)):e.replaceNode(t,p.initializer,d)}}function Yfe(e,t,r,i){Xfe(e,t,[[r,i]])}function z$(e,t){return L.createPropertyAssignment(L.createStringLiteral(e),t)}function $fe(e,t){return Vr(e.properties,r=>mc(r)&&!!r.name&&Da(r.name)&&r.name.text===t)}function D1(e,t){let r,i=$e(e,o,ji);if(r&&i)return{typeNode:i,symbols:r};function o(s){if(wv(s)&&s.qualifier){let l=Fp(s.qualifier),d=p7(l.symbol,t),p=d!==l.text?cMe(s.qualifier,L.createIdentifier(d)):s.qualifier;r=Tn(r,l.symbol);let h=zn(s.typeArguments,o,ji);return L.createTypeReferenceNode(p,h)}return Sn(s,o,void 0)}}function cMe(e,t){return e.kind===80?t:L.createQualifiedName(cMe(e.left,t),e.right)}function ID(e,t){t.forEach(r=>e.addImportFromExportedSymbol(r,!0))}function Qfe(e,t){let r=Jl(t),i=so(e,t.start);for(;i.end(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(Zfe||{})}});function dMe(e,t,r,i,o,s){let l=fMe(e,t,r,i);if(!l||T1.isRefactorErrorInfo(l))return;let d=ur.ChangeTracker.fromContext(o),{isStatic:p,isReadonly:h,fieldName:m,accessorName:y,originalName:E,type:S,container:A,declaration:N}=l;bp(m),bp(y),bp(N),bp(A);let D,w;if(ci(A)){let K=lu(N);if(su(e)){let Y=L.createModifiersFromModifierFlags(K);D=Y,w=Y}else D=L.createModifiersFromModifierFlags(DQe(K)),w=L.createModifiersFromModifierFlags(CQe(K));GT(N)&&(w=Eo(xv(N),w))}kQe(d,e,N,S,m,w);let j=NQe(m,y,S,D,p,A);if(bp(j),mMe(d,e,j,N,A),h){let K=Zh(A);K&&wQe(d,e,K,m.text,E)}else{let K=PQe(m,y,S,D,p,A);bp(K),mMe(d,e,K,N,A)}return d.getChanges()}function xQe(e){return Fe(e)||Da(e)}function RQe(e){return dp(e,e.parent)||Uo(e)||mc(e)}function uMe(e,t){return Fe(t)?L.createIdentifier(e):L.createStringLiteral(e)}function pMe(e,t,r){let i=t?r.name:L.createThis();return Fe(e)?L.createPropertyAccessExpression(i,e):L.createElementAccessExpression(i,L.createStringLiteralFromNode(e))}function DQe(e){return e&=-9,e&=-3,e&4||(e|=1),e}function CQe(e){return e&=-2,e&=-5,e|=2,e}function fMe(e,t,r,i,o=!0){let s=so(e,r),l=r===i&&o,d=Fn(s.parent,RQe),p=271;if(!d||!(wz(d.name,e,r,i)||l))return{error:wo(f.Could_not_find_property_for_which_to_generate_accessor)};if(!xQe(d.name))return{error:wo(f.Name_is_not_valid)};if((lu(d)&98303|p)!==p)return{error:wo(f.Can_only_convert_property_with_modifier)};let h=d.name.text,m=fX(h),y=uMe(m?h:QT(`_${h}`,e),d.name),E=uMe(m?QT(h.substring(1),e):h,d.name);return{isStatic:pc(d),isReadonly:CN(d),type:OQe(d,t),container:d.kind===169?d.parent.parent:d.parent,originalName:d.name.text,declaration:d,fieldName:y,accessorName:E,renameAccessor:m}}function NQe(e,t,r,i,o,s){return L.createGetAccessorDeclaration(i,t,[],r,L.createBlock([L.createReturnStatement(pMe(e,o,s))],!0))}function PQe(e,t,r,i,o,s){return L.createSetAccessorDeclaration(i,t,[L.createParameterDeclaration(void 0,void 0,L.createIdentifier("value"),void 0,r)],L.createBlock([L.createExpressionStatement(L.createAssignment(pMe(e,o,s),L.createIdentifier("value")))],!0))}function MQe(e,t,r,i,o,s){let l=L.updatePropertyDeclaration(r,s,o,r.questionToken||r.exclamationToken,i,r.initializer);e.replaceNode(t,r,l)}function LQe(e,t,r,i){let o=L.updatePropertyAssignment(r,i,r.initializer);(o.modifiers||o.questionToken||o.exclamationToken)&&(o===r&&(o=L.cloneNode(o)),o.modifiers=void 0,o.questionToken=void 0,o.exclamationToken=void 0),e.replacePropertyAssignment(t,r,o)}function kQe(e,t,r,i,o,s){Uo(r)?MQe(e,t,r,i,o,s):mc(r)?LQe(e,t,r,o):e.replaceNode(t,r,L.updateParameterDeclaration(r,s,r.dotDotDotToken,na(o,Fe),r.questionToken,r.type,r.initializer))}function mMe(e,t,r,i,o){dp(i,i.parent)?e.insertMemberAtStart(t,o,r):mc(i)?e.insertNodeAfterComma(t,i,r):e.insertNodeAfter(t,i,r)}function wQe(e,t,r,i,o){r.body&&r.body.forEachChild(function s(l){Js(l)&&l.expression.kind===110&&Da(l.argumentExpression)&&l.argumentExpression.text===o&&LI(l)&&e.replaceNode(t,l.argumentExpression,L.createStringLiteral(i)),kr(l)&&l.expression.kind===110&&l.name.text===o&&LI(l)&&e.replaceNode(t,l.name,L.createIdentifier(i)),!$o(l)&&!ci(l)&&l.forEachChild(s)})}function OQe(e,t){let r=Cie(e);if(Uo(e)&&r&&e.questionToken){let i=t.getTypeChecker(),o=i.getTypeFromTypeNode(r);if(!i.isTypeAssignableTo(i.getUndefinedType(),o)){let s=Hv(r)?r.types:[r];return L.createUnionTypeNode([...s,L.createKeywordTypeNode(157)])}}return r}function eme(e,t){let r=[];for(;e;){let i=N0(e),o=i&&t.getSymbolAtLocation(i.expression);if(!o)break;let s=o.flags&2097152?t.getAliasedSymbol(o):o,l=s.declarations&&Vr(s.declarations,ci);if(!l)break;r.push(l),e=l}return r}var WQe=bt({"src/services/codefixes/generateAccessors.ts"(){"use strict";ai()}});function FQe(e,t){let r=Gn(t),i=nR(t),o=e.program.getCompilerOptions(),s=[];return s.push(_Me(e,r,t,Hy(i.name,void 0,t.moduleSpecifier,of(r,e.preferences)))),Ld(o)===1&&s.push(_Me(e,r,t,L.createImportEqualsDeclaration(void 0,!1,i.name,L.createExternalModuleReference(t.moduleSpecifier)))),s}function _Me(e,t,r,i){let o=ur.ChangeTracker.with(e,s=>s.replaceNode(t,r,i));return Qm(tme,o,[f.Replace_import_with_0,o[0].textChanges[0].newText])}function zQe(e){let t=e.sourceFile,r=f.This_expression_is_not_callable.code===e.errorCode?213:214,i=Fn(so(t,e.span.start),s=>s.kind===r);if(!i)return[];let o=i.expression;return hMe(e,o)}function BQe(e){let t=e.sourceFile,r=Fn(so(t,e.span.start),i=>i.getStart()===e.span.start&&i.getEnd()===e.span.start+e.span.length);return r?hMe(e,r):[]}function hMe(e,t){let r=e.program.getTypeChecker().getTypeAtLocation(t);if(!(r.symbol&&ch(r.symbol)&&r.symbol.links.originatingImport))return[];let i=[],o=r.symbol.links.originatingImport;if(Op(o)||Hr(i,FQe(e,o)),ht(t)&&!(iu(t.parent)&&t.parent.name===t)){let s=e.sourceFile,l=ur.ChangeTracker.with(e,d=>d.replaceNode(s,t,L.createPropertyAccessExpression(t,"default"),{}));i.push(Qm(tme,l,f.Use_synthetic_default_member))}return i}var tme,GQe=bt({"src/services/codefixes/fixInvalidImportSyntax.ts"(){"use strict";ai(),Ta(),tme="invalidImportSyntax",Ea({errorCodes:[f.This_expression_is_not_callable.code,f.This_expression_is_not_constructable.code],getCodeActions:zQe}),Ea({errorCodes:[f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,f.Type_0_does_not_satisfy_the_constraint_1.code,f.Type_0_is_not_assignable_to_type_1.code,f.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,f.Type_predicate_0_is_not_assignable_to_1.code,f.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,f._0_index_type_1_is_not_assignable_to_2_index_type_3.code,f.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,f.Property_0_in_type_1_is_not_assignable_to_type_2.code,f.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:BQe})}});function gMe(e,t){let r=so(e,t);if(Fe(r)&&Uo(r.parent)){let i=yd(r.parent);if(i)return{type:i,prop:r.parent,isJs:ir(r.parent)}}}function VQe(e,t){if(t.isJs)return;let r=ur.ChangeTracker.with(e,i=>yMe(i,e.sourceFile,t.prop));return oa(B$,r,[f.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],G$,f.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function yMe(e,t,r){bp(r);let i=L.updatePropertyDeclaration(r,r.modifiers,r.name,L.createToken(54),r.type,r.initializer);e.replaceNode(t,r,i)}function jQe(e,t){let r=ur.ChangeTracker.with(e,i=>vMe(i,e.sourceFile,t));return oa(B$,r,[f.Add_undefined_type_to_property_0,t.prop.name.getText()],V$,f.Add_undefined_type_to_all_uninitialized_properties)}function vMe(e,t,r){let i=L.createKeywordTypeNode(157),o=Hv(r.type)?r.type.types.concat(i):[r.type,i],s=L.createUnionTypeNode(o);r.isJs?e.addJSDocTags(t,r.prop,[L.createJSDocTypeTag(void 0,L.createJSDocTypeExpression(s))]):e.replaceNode(t,r.type,s)}function UQe(e,t){if(t.isJs)return;let r=e.program.getTypeChecker(),i=EMe(r,t.prop);if(!i)return;let o=ur.ChangeTracker.with(e,s=>bMe(s,e.sourceFile,t.prop,i));return oa(B$,o,[f.Add_initializer_to_property_0,t.prop.name.getText()],j$,f.Add_initializers_to_all_uninitialized_properties)}function bMe(e,t,r,i){bp(r);let o=L.updatePropertyDeclaration(r,r.modifiers,r.name,r.questionToken,r.type,i);e.replaceNode(t,r,o)}function EMe(e,t){return SMe(e,e.getTypeFromTypeNode(t.type))}function SMe(e,t){if(t.flags&512)return t===e.getFalseType()||t===e.getFalseType(!0)?L.createFalse():L.createTrue();if(t.isStringLiteral())return L.createStringLiteral(t.value);if(t.isNumberLiteral())return L.createNumericLiteral(t.value);if(t.flags&2048)return L.createBigIntLiteral(t.value);if(t.isUnion())return Wl(t.types,r=>SMe(e,r));if(t.isClass()){let r=Og(t.symbol);if(!r||$r(r,64))return;let i=Zh(r);return i&&i.parameters.length?void 0:L.createNewExpression(L.createIdentifier(t.symbol.name),void 0,void 0)}else if(e.isArrayLikeType(t))return L.createArrayLiteralExpression()}var B$,G$,V$,j$,nme,HQe=bt({"src/services/codefixes/fixStrictClassInitialization.ts"(){"use strict";ai(),Ta(),B$="strictClassInitialization",G$="addMissingPropertyDefiniteAssignmentAssertions",V$="addMissingPropertyUndefinedType",j$="addMissingPropertyInitializer",nme=[f.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],Ea({errorCodes:nme,getCodeActions:function(t){let r=gMe(t.sourceFile,t.span.start);if(!r)return;let i=[];return Tn(i,jQe(t,r)),Tn(i,VQe(t,r)),Tn(i,UQe(t,r)),i},fixIds:[G$,V$,j$],getAllCodeActions:e=>gs(e,nme,(t,r)=>{let i=gMe(r.file,r.start);if(i)switch(e.fixId){case G$:yMe(t,r.file,i.prop);break;case V$:vMe(t,r.file,i);break;case j$:let o=e.program.getTypeChecker(),s=EMe(o,i.prop);if(!s)return;bMe(t,r.file,i.prop,s);break;default:x.fail(JSON.stringify(e.fixId))}})})}});function TMe(e,t,r){let{allowSyntheticDefaults:i,defaultImportName:o,namedImports:s,statement:l,required:d}=r;e.replaceNode(t,l,o&&!i?L.createImportEqualsDeclaration(void 0,!1,o,L.createExternalModuleReference(d)):L.createImportDeclaration(void 0,L.createImportClause(!1,o,s),d,void 0))}function AMe(e,t,r){let{parent:i}=so(e,r);bu(i,!0)||x.failBadSyntaxKind(i);let o=na(i.parent,wi),s=ri(o.name,Fe),l=tm(o.name)?KQe(o.name):void 0;if(s||l)return{allowSyntheticDefaults:RT(t.getCompilerOptions()),defaultImportName:s,namedImports:l,statement:na(o.parent.parent,Ml),required:Va(i.arguments)}}function KQe(e){let t=[];for(let r of e.elements){if(!Fe(r.name)||r.initializer)return;t.push(L.createImportSpecifier(!1,ri(r.propertyName,Fe),r.name))}if(t.length)return L.createNamedImports(t)}var U$,rme,JQe=bt({"src/services/codefixes/requireInTs.ts"(){"use strict";ai(),Ta(),U$="requireInTs",rme=[f.require_call_may_be_converted_to_an_import.code],Ea({errorCodes:rme,getCodeActions(e){let t=AMe(e.sourceFile,e.program,e.span.start);if(!t)return;let r=ur.ChangeTracker.with(e,i=>TMe(i,e.sourceFile,t));return[oa(U$,r,f.Convert_require_to_import,U$,f.Convert_all_require_to_import)]},fixIds:[U$],getAllCodeActions:e=>gs(e,rme,(t,r)=>{let i=AMe(r.file,e.program,r.start);i&&TMe(t,e.sourceFile,i)})})}});function IMe(e,t){let r=so(e,t);if(!Fe(r))return;let{parent:i}=r;if(td(i)&&vh(i.moduleReference))return{importNode:i,name:r,moduleSpecifier:i.moduleReference.expression};if(Xv(i)){let o=i.parent.parent;return{importNode:o,name:r,moduleSpecifier:o.moduleSpecifier}}}function xMe(e,t,r,i){e.replaceNode(t,r.importNode,Hy(r.name,void 0,r.moduleSpecifier,of(t,i)))}var H$,ime,qQe=bt({"src/services/codefixes/useDefaultImport.ts"(){"use strict";ai(),Ta(),H$="useDefaultImport",ime=[f.Import_may_be_converted_to_a_default_import.code],Ea({errorCodes:ime,getCodeActions(e){let{sourceFile:t,span:{start:r}}=e,i=IMe(t,r);if(!i)return;let o=ur.ChangeTracker.with(e,s=>xMe(s,t,i,e.preferences));return[oa(H$,o,f.Convert_to_default_import,H$,f.Convert_all_to_default_imports)]},fixIds:[H$],getAllCodeActions:e=>gs(e,ime,(t,r)=>{let i=IMe(r.file,r.start);i&&xMe(t,r.file,i,e.preferences)})})}});function RMe(e,t,r){let i=ri(so(t,r.start),mp);if(!i)return;let o=i.getText(t)+"n";e.replaceNode(t,i,L.createBigIntLiteral(o))}var K$,ome,XQe=bt({"src/services/codefixes/useBigintLiteral.ts"(){"use strict";ai(),Ta(),K$="useBigintLiteral",ome=[f.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],Ea({errorCodes:ome,getCodeActions:function(t){let r=ur.ChangeTracker.with(t,i=>RMe(i,t.sourceFile,t.span));if(r.length>0)return[oa(K$,r,f.Convert_to_a_bigint_numeric_literal,K$,f.Convert_all_to_bigint_numeric_literals)]},fixIds:[K$],getAllCodeActions:e=>gs(e,ome,(t,r)=>RMe(t,r.file,r))})}});function DMe(e,t){let r=so(e,t);return x.assert(r.kind===102,"This token should be an ImportKeyword"),x.assert(r.parent.kind===205,"Token parent should be an ImportType"),r.parent}function CMe(e,t,r){let i=L.updateImportTypeNode(r,r.argument,r.attributes,r.qualifier,r.typeArguments,!0);e.replaceNode(t,r,i)}var NMe,J$,ame,YQe=bt({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){"use strict";ai(),Ta(),NMe="fixAddModuleReferTypeMissingTypeof",J$=NMe,ame=[f.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],Ea({errorCodes:ame,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=DMe(r,i.start),s=ur.ChangeTracker.with(t,l=>CMe(l,r,o));return[oa(J$,s,f.Add_missing_typeof,J$,f.Add_missing_typeof)]},fixIds:[J$],getAllCodeActions:e=>gs(e,ame,(t,r)=>CMe(t,e.sourceFile,DMe(r.file,r.start)))})}});function PMe(e,t){let o=so(e,t).parent.parent;if(!(!dr(o)&&(o=o.parent,!dr(o)))&&Fl(o.operatorToken))return o}function MMe(e,t,r){let i=$Qe(r);i&&e.replaceNode(t,r,L.createJsxFragment(L.createJsxOpeningFragment(),i,L.createJsxJsxClosingFragment()))}function $Qe(e){let t=[],r=e;for(;;)if(dr(r)&&Fl(r.operatorToken)&&r.operatorToken.kind===28){if(t.push(r.left),c2(r.right))return t.push(r.right),t;if(dr(r.right)){r=r.right;continue}else return}else return}var q$,sme,QQe=bt({"src/services/codefixes/wrapJsxInFragment.ts"(){"use strict";ai(),Ta(),q$="wrapJsxInFragment",sme=[f.JSX_expressions_must_have_one_parent_element.code],Ea({errorCodes:sme,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=PMe(r,i.start);if(!o)return;let s=ur.ChangeTracker.with(t,l=>MMe(l,r,o));return[oa(q$,s,f.Wrap_in_JSX_fragment,q$,f.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[q$],getAllCodeActions:e=>gs(e,sme,(t,r)=>{let i=PMe(e.sourceFile,r.start);i&&MMe(t,e.sourceFile,i)})})}});function LMe(e,t){let r=so(e,t),i=ri(r.parent.parent,G0);if(!i)return;let o=pu(i.parent)?i.parent:ri(i.parent.parent,Tm);if(o)return{indexSignature:i,container:o}}function ZQe(e,t){return L.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function kMe(e,t,{indexSignature:r,container:i}){let s=(pu(i)?i.members:i.type.members).filter(m=>!G0(m)),l=Va(r.parameters),d=L.createTypeParameterDeclaration(void 0,na(l.name,Fe),l.type),p=L.createMappedTypeNode(CN(r)?L.createModifier(148):void 0,d,void 0,r.questionToken,r.type,void 0),h=L.createIntersectionTypeNode([...bN(i),p,...s.length?[L.createTypeLiteralNode(s)]:Xe]);e.replaceNode(t,i,ZQe(i,h))}var X$,lme,eZe=bt({"src/services/codefixes/convertToMappedObjectType.ts"(){"use strict";ai(),Ta(),X$="fixConvertToMappedObjectType",lme=[f.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],Ea({errorCodes:lme,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=LMe(r,i.start);if(!o)return;let s=ur.ChangeTracker.with(t,d=>kMe(d,r,o)),l=gr(o.container.name);return[oa(X$,s,[f.Convert_0_to_mapped_object_type,l],X$,[f.Convert_0_to_mapped_object_type,l])]},fixIds:[X$],getAllCodeActions:e=>gs(e,lme,(t,r)=>{let i=LMe(r.file,r.start);i&&kMe(t,r.file,i)})})}}),cme,wMe,tZe=bt({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){"use strict";ai(),Ta(),cme="removeAccidentalCallParentheses",wMe=[f.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],Ea({errorCodes:wMe,getCodeActions(e){let t=Fn(so(e.sourceFile,e.span.start),ia);if(!t)return;let r=ur.ChangeTracker.with(e,i=>{i.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[Qm(cme,r,f.Remove_parentheses)]},fixIds:[cme]})}});function OMe(e,t,r){let i=ri(so(t,r.start),d=>d.kind===135),o=i&&ri(i.parent,Jv);if(!o)return;let s=o;if(Ou(o.parent)){let d=gR(o.expression,!1);if(Fe(d)){let p=Tc(o.parent.pos,t);p&&p.kind!==105&&(s=o.parent)}}e.replaceNode(t,s,o.expression)}var Y$,dme,nZe=bt({"src/services/codefixes/removeUnnecessaryAwait.ts"(){"use strict";ai(),Ta(),Y$="removeUnnecessaryAwait",dme=[f.await_has_no_effect_on_the_type_of_this_expression.code],Ea({errorCodes:dme,getCodeActions:function(t){let r=ur.ChangeTracker.with(t,i=>OMe(i,t.sourceFile,t.span));if(r.length>0)return[oa(Y$,r,f.Remove_unnecessary_await,Y$,f.Remove_all_unnecessary_uses_of_await)]},fixIds:[Y$],getAllCodeActions:e=>gs(e,dme,(t,r)=>OMe(t,r.file,r))})}});function WMe(e,t){return Fn(so(e,t.start),Lc)}function FMe(e,t,r){if(!t)return;let i=x.checkDefined(t.importClause);e.replaceNode(r.sourceFile,t,L.updateImportDeclaration(t,t.modifiers,L.updateImportClause(i,i.isTypeOnly,i.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(r.sourceFile,t,L.createImportDeclaration(void 0,L.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),t.moduleSpecifier,t.attributes))}var ume,$$,rZe=bt({"src/services/codefixes/splitTypeOnlyImport.ts"(){"use strict";ai(),Ta(),ume=[f.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],$$="splitTypeOnlyImport",Ea({errorCodes:ume,fixIds:[$$],getCodeActions:function(t){let r=ur.ChangeTracker.with(t,i=>FMe(i,WMe(t.sourceFile,t.span),t));if(r.length)return[oa($$,r,f.Split_into_two_separate_import_declarations,$$,f.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>gs(e,ume,(t,r)=>{FMe(t,WMe(e.sourceFile,r),e)})})}});function zMe(e,t,r){var i;let s=r.getTypeChecker().getSymbolAtLocation(so(e,t));if(s===void 0)return;let l=ri((i=s?.valueDeclaration)==null?void 0:i.parent,Uc);if(l===void 0)return;let d=_s(l,87,e);if(d!==void 0)return{symbol:s,token:d}}function BMe(e,t,r){e.replaceNode(t,r,L.createToken(121))}var Q$,pme,iZe=bt({"src/services/codefixes/convertConstToLet.ts"(){"use strict";ai(),Ta(),Q$="fixConvertConstToLet",pme=[f.Cannot_assign_to_0_because_it_is_a_constant.code],Ea({errorCodes:pme,getCodeActions:function(t){let{sourceFile:r,span:i,program:o}=t,s=zMe(r,i.start,o);if(s===void 0)return;let l=ur.ChangeTracker.with(t,d=>BMe(d,r,s.token));return[upe(Q$,l,f.Convert_const_to_let,Q$,f.Convert_all_const_to_let)]},getAllCodeActions:e=>{let{program:t}=e,r=new Map;return ED(ur.ChangeTracker.with(e,i=>{SD(e,pme,o=>{let s=zMe(o.file,o.start,t);if(s&&Em(r,ba(s.symbol)))return BMe(i,o.file,s.token)})}))},fixIds:[Q$]})}});function GMe(e,t,r){let i=so(e,t);return i.kind===27&&i.parent&&(Ma(i.parent)||uu(i.parent))?{node:i}:void 0}function VMe(e,t,{node:r}){let i=L.createToken(28);e.replaceNode(t,r,i)}var Z$,jMe,fme,oZe=bt({"src/services/codefixes/fixExpectedComma.ts"(){"use strict";ai(),Ta(),Z$="fixExpectedComma",jMe=f._0_expected.code,fme=[jMe],Ea({errorCodes:fme,getCodeActions(e){let{sourceFile:t}=e,r=GMe(t,e.span.start,e.errorCode);if(!r)return;let i=ur.ChangeTracker.with(e,o=>VMe(o,t,r));return[oa(Z$,i,[f.Change_0_to_1,";",","],Z$,[f.Change_0_to_1,";",","])]},fixIds:[Z$],getAllCodeActions:e=>gs(e,fme,(t,r)=>{let i=GMe(r.file,r.start,r.code);i&&VMe(t,e.sourceFile,i)})})}});function UMe(e,t,r,i,o){let s=so(t,r.start);if(!Fe(s)||!ia(s.parent)||s.parent.expression!==s||s.parent.arguments.length!==0)return;let l=i.getTypeChecker(),d=l.getSymbolAtLocation(s),p=d?.valueDeclaration;if(!p||!Ao(p)||!j0(p.parent.parent)||o?.has(p))return;o?.add(p);let h=aZe(p.parent.parent);if(gt(h)){let m=h[0],y=!Hv(m)&&!NT(m)&&NT(L.createUnionTypeNode([m,L.createKeywordTypeNode(116)]).types[0]);y&&e.insertText(t,m.pos,"("),e.insertText(t,m.end,y?") | void":" | void")}else{let m=l.getResolvedSignature(s.parent),y=m?.parameters[0],E=y&&l.getTypeOfSymbolAtLocation(y,p.parent.parent);ir(p)?(!E||E.flags&3)&&(e.insertText(t,p.parent.parent.end,")"),e.insertText(t,Na(t.text,p.parent.parent.pos),"/** @type {Promise} */(")):(!E||E.flags&2)&&e.insertText(t,p.parent.parent.expression.end,"")}}function aZe(e){var t;if(ir(e)){if(Ou(e.parent)){let r=(t=tE(e.parent))==null?void 0:t.typeExpression.type;if(r&&If(r)&&Fe(r.typeName)&&gr(r.typeName)==="Promise")return r.typeArguments}}else return e.typeArguments}var HMe,mme,_me,sZe=bt({"src/services/codefixes/fixAddVoidToPromise.ts"(){"use strict";ai(),Ta(),HMe="addVoidToPromise",mme="addVoidToPromise",_me=[f.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,f.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],Ea({errorCodes:_me,fixIds:[mme],getCodeActions(e){let t=ur.ChangeTracker.with(e,r=>UMe(r,e.sourceFile,e.span,e.program));if(t.length>0)return[oa(HMe,t,f.Add_void_to_Promise_resolved_without_a_value,mme,f.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return gs(e,_me,(t,r)=>UMe(t,r.file,r,e.program,new Set))}})}}),Od={};xa(Od,{PreserveOptionalFlags:()=>Zfe,addNewNodeForMemberSymbol:()=>iMe,codeFixAll:()=>gs,createCodeFixAction:()=>oa,createCodeFixActionMaybeFixAll:()=>upe,createCodeFixActionWithoutFixAll:()=>Qm,createCombinedCodeActions:()=>ED,createFileTextChanges:()=>oCe,createImportAdder:()=>x1,createImportSpecifierResolver:()=>_Ye,createJsonPropertyAssignment:()=>z$,createMissingMemberNodes:()=>Hfe,createSignatureDeclarationFromCallExpression:()=>Kfe,createSignatureDeclarationFromSignature:()=>W$,createStubbedBody:()=>aB,eachDiagnostic:()=>SD,findAncestorMatchingSpan:()=>Qfe,findJsonProperty:()=>$fe,generateAccessorFromProperty:()=>dMe,getAccessorConvertiblePropertyAtPosition:()=>fMe,getAllFixes:()=>Hqe,getAllSupers:()=>eme,getArgumentTypesAndTypeParameters:()=>sMe,getFixes:()=>Uqe,getImportCompletionAction:()=>hYe,getImportKind:()=>Bpe,getJSDocTypedefNodes:()=>dYe,getNoopSymbolTrackerWithResolver:()=>AD,getPromoteTypeOnlyCompletionAction:()=>gYe,getSupportedErrorCodes:()=>Vqe,importFixName:()=>Jpe,importSymbols:()=>ID,moduleSpecifierToValidIdentifier:()=>Kpe,moduleSymbolToValidIdentifier:()=>Hpe,parameterShouldGetTypeFromJSDoc:()=>ICe,registerCodeFix:()=>Ea,setJsonCompilerOptionValue:()=>Yfe,setJsonCompilerOptionValues:()=>Xfe,tryGetAutoImportableReferenceFromTypeNode:()=>D1,typeToAutoImportableTypeNode:()=>F$});var Ta=bt({"src/services/_namespaces/ts.codefix.ts"(){"use strict";Kqe(),Jqe(),qqe(),$qe(),nXe(),aXe(),sXe(),lXe(),cXe(),fXe(),TXe(),IXe(),OXe(),eYe(),tYe(),rYe(),iYe(),uYe(),pYe(),mYe(),WYe(),BYe(),jYe(),UYe(),HYe(),qYe(),$Ye(),e$e(),o$e(),_$e(),g$e(),T$e(),A$e(),x$e(),R$e(),D$e(),C$e(),P$e(),M$e(),L$e(),k$e(),w$e(),W$e(),B$e(),U$e(),Z$e(),tQe(),nQe(),oQe(),aQe(),lQe(),cQe(),gQe(),yQe(),vQe(),IQe(),WQe(),GQe(),HQe(),JQe(),qQe(),XQe(),YQe(),QQe(),eZe(),tZe(),nZe(),rZe(),iZe(),oZe(),sZe()}});function lZe(e){return!!(e.kind&1)}function cZe(e){return!!(e.kind&2)}function sB(e){return!!(e&&e.kind&4)}function uM(e){return!!(e&&e.kind===32)}function dZe(e){return sB(e)||uM(e)||hme(e)}function uZe(e){return(sB(e)||uM(e))&&!!e.isFromPackageJson}function pZe(e){return!!(e.kind&8)}function fZe(e){return!!(e.kind&16)}function KMe(e){return!!(e&&e.kind&64)}function JMe(e){return!!(e&&e.kind&128)}function mZe(e){return!!(e&&e.kind&256)}function hme(e){return!!(e&&e.kind&512)}function qMe(e,t,r,i,o,s,l,d,p){var h,m,y;let E=Hs(),S=l||OI(du(i.getCompilerOptions())),A=!1,N=0,D=0,w=0,j=0,K=p({tryResolve:B,skippedAny:()=>A,resolvedAny:()=>D>0,resolvedBeyondLimit:()=>D>cQ}),Y=j?` (${(w/j*100).toFixed(1)}% hit rate)`:"";return(h=t.log)==null||h.call(t,`${e}: resolved ${D} module specifiers, plus ${N} ambient and ${w} from cache${Y}`),(m=t.log)==null||m.call(t,`${e}: response is ${A?"incomplete":"complete"}`),(y=t.log)==null||y.call(t,`${e}: ${Hs()-E}`),K;function B(ce,z){if(z){let q=r.getModuleSpecifierForBestExportInfo(ce,o,d);return q&&N++,q||"failed"}let Z=S||s.allowIncompleteCompletions&&D{let A=to(p.entries,N=>{var D;if(!N.hasAction||!N.source||!N.data||XMe(N.data))return N;if(!bLe(N.name,m))return;let{origin:w}=x.checkDefined(sLe(N.name,N.data,i,o)),j=y.get(t.path,N.data.exportMapKey),K=j&&S.tryResolve(j,!Yc(Yf(w.moduleSymbol.name)));if(K==="skipped")return N;if(!K||K==="failed"){(D=o.log)==null||D.call(o,`Unexpected failure resolving auto import for '${N.name}' from '${N.source}'`);return}let Y={...w,kind:32,moduleSpecifier:K.moduleSpecifier};return N.data=rLe(Y),N.source=vme(Y),N.sourceDisplay=[af(Y.moduleSpecifier)],N});return S.skippedAny()||(p.isIncomplete=void 0),A});return p.entries=E,p.flags=(p.flags||0)|4,p.optionalReplacementSpan=ZMe(h),p}function gme(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function YMe(e,t,r,i,o,s){let l=so(e,t);if(!Bx(l)&&!Xm(l))return[];let d=Xm(l)?l:l.parent;if(!Xm(d))return[];let p=d.parent;if(!$o(p))return[];let h=su(e),m=o.includeCompletionsWithSnippetText||void 0,y=yv(d.tags,E=>Ym(E)&&E.getEnd()<=t);return to(p.parameters,E=>{if(!kx(E).length){if(Fe(E.name)){let S={tabstop:1},A=E.name.text,N=zO(A,E.initializer,E.dotDotDotToken,h,!1,!1,r,i,o),D=m?zO(A,E.initializer,E.dotDotDotToken,h,!1,!0,r,i,o,S):void 0;return s&&(N=N.slice(1),D&&(D=D.slice(1))),{name:N,kind:"parameter",sortText:Wd.LocationPriority,insertText:m?D:void 0,isSnippet:m}}else if(E.parent.parameters.indexOf(E)===y){let S=`param${y}`,A=$Me(S,E.name,E.initializer,E.dotDotDotToken,h,!1,r,i,o),N=m?$Me(S,E.name,E.initializer,E.dotDotDotToken,h,!0,r,i,o):void 0,D=A.join(wy(i)+"* "),w=N?.join(wy(i)+"* ");return s&&(D=D.slice(1),w&&(w=w.slice(1))),{name:D,kind:"parameter",sortText:Wd.LocationPriority,insertText:m?w:void 0,isSnippet:m}}}})}function $Me(e,t,r,i,o,s,l,d,p){if(!o)return[zO(e,r,i,o,!1,s,l,d,p,{tabstop:1})];return h(e,t,r,i,{tabstop:1});function h(y,E,S,A,N){if(tm(E)&&!A){let w={tabstop:N.tabstop},j=zO(y,S,A,o,!0,s,l,d,p,w),K=[];for(let Y of E.elements){let B=m(y,Y,w);if(B)K.push(...B);else{K=void 0;break}}if(K)return N.tabstop=w.tabstop,[j,...K]}return[zO(y,S,A,o,!1,s,l,d,p,N)]}function m(y,E,S){if(!E.propertyName&&Fe(E.name)||Fe(E.name)){let A=E.propertyName?pN(E.propertyName):E.name.text;if(!A)return;let N=`${y}.${A}`;return[zO(N,E.initializer,E.dotDotDotToken,o,!1,s,l,d,p,S)]}else if(E.propertyName){let A=pN(E.propertyName);return A&&h(`${y}.${A}`,E.name,E.initializer,E.dotDotDotToken,S)}}}function zO(e,t,r,i,o,s,l,d,p,h){if(s&&x.assertIsDefined(h),t&&(e=gZe(e,t)),s&&(e=z0(e)),i){let m="*";if(o)x.assert(!r,"Cannot annotate a rest parameter with type 'Object'."),m="Object";else{if(t){let S=l.getTypeAtLocation(t.parent);if(!(S.flags&16385)){let A=t.getSourceFile(),D=of(A,p)===0?268435456:0,w=l.typeToTypeNode(S,Fn(t,$o),D);if(w){let j=s?nQ({removeComments:!0,module:d.module,target:d.target}):AE({removeComments:!0,module:d.module,target:d.target});lr(w,1),m=j.printNode(4,w,A)}}}s&&m==="*"&&(m=`\${${h.tabstop++}:${m}}`)}let y=!o&&r?"...":"",E=s?`\${${h.tabstop++}}`:"";return`@param {${y}${m}} ${e} ${E}`}else{let m=s?`\${${h.tabstop++}}`:"";return`@param ${e} ${m}`}}function gZe(e,t){let r=t.getText().trim();return r.includes(` -`)||r.length>80?`[${e}]`:`[${e}=${r}]`}function yZe(e){return{name:da(e),kind:"keyword",kindModifiers:"",sortText:Wd.GlobalsOrKeywords}}function vZe(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice()}}function QMe(e,t,r){return{kind:4,keywordCompletions:lLe(e,t),isNewIdentifierLocation:r}}function bZe(e){switch(e){case 156:return 8;default:x.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function ZMe(e){return e?.kind===80?Iu(e):void 0}function EZe(e,t,r,i,o,s,l,d,p,h){let{symbols:m,contextToken:y,completionKind:E,isInSnippetScope:S,isNewIdentifierLocation:A,location:N,propertyAccessToConvert:D,keywordFilters:w,symbolToOriginInfoMap:j,recommendedCompletion:K,isJsxInitializer:Y,isTypeOnlyLocation:B,isJsxIdentifierExpected:ce,isRightOfOpenTag:z,isRightOfDotOrQuestionDot:Z,importStatementCompletion:me,insideJsDocTagTypeExpression:ge,symbolToSortTextMap:q,hasUnresolvedAutoImports:J}=s,re=s.literals,pe=r.getTypeChecker();if(ik(e.scriptKind)===1){let Ge=TZe(N,e);if(Ge)return Ge}let xe=Fn(y,MR);if(xe&&(cae(y)||C0(y,xe.expression))){let Ge=h7(pe,xe.parent.clauses);re=re.filter(ve=>!Ge.hasValue(ve)),m.forEach((ve,Ae)=>{if(ve.valueDeclaration&&Y0(ve.valueDeclaration)){let De=pe.getConstantValue(ve.valueDeclaration);De!==void 0&&Ge.hasValue(De)&&(j[Ae]={kind:256})}})}let fe=kG(),ne=eLe(e,i);if(ne&&!A&&(!m||m.length===0)&&w===0)return;let he=bme(m,fe,void 0,y,N,p,e,t,r,ns(i),o,E,l,i,d,B,D,ce,Y,me,K,j,q,ce,z,h);if(w!==0)for(let Ge of lLe(w,!ge&&su(e)))(B&&YP(g0(Ge.name))||!B&&iet(Ge.name)||!he.has(Ge.name))&&(he.add(Ge.name),vv(fe,Ge,lB,!0));for(let Ge of HZe(y,p))he.has(Ge.name)||(he.add(Ge.name),vv(fe,Ge,lB,!0));for(let Ge of re){let ve=IZe(e,l,Ge);he.add(ve.name),vv(fe,ve,lB,!0)}ne||AZe(e,N.pos,he,ns(i),fe);let Ce;if(l.includeCompletionsWithInsertText&&y&&!z&&!Z&&(Ce=Fn(y,pP))){let Ge=tLe(Ce,e,l,i,t,r,d);Ge&&fe.push(Ge.entry)}return{flags:s.flags,isGlobalCompletion:S,isIncomplete:l.allowIncompleteCompletions&&J?!0:void 0,isMemberCompletion:SZe(E),isNewIdentifierLocation:A,optionalReplacementSpan:ZMe(N),entries:fe}}function eLe(e,t){return!su(e)||!!ck(e,t)}function tLe(e,t,r,i,o,s,l){let d=e.clauses,p=s.getTypeChecker(),h=p.getTypeAtLocation(e.parent.expression);if(h&&h.isUnion()&&oo(h.types,m=>m.isLiteral())){let m=h7(p,d),y=ns(i),E=of(t,r),S=Od.createImportAdder(t,s,r,o),A=[];for(let B of h.types)if(B.flags&1024){x.assert(B.symbol,"An enum member type should have a symbol"),x.assert(B.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");let ce=B.symbol.valueDeclaration&&p.getConstantValue(B.symbol.valueDeclaration);if(ce!==void 0){if(m.hasValue(ce))continue;m.addValue(ce)}let z=Od.typeToAutoImportableTypeNode(p,S,B,e,y);if(!z)return;let Z=eQ(z,y,E);if(!Z)return;A.push(Z)}else if(!m.hasValue(B.value))switch(typeof B.value){case"object":A.push(B.value.negative?L.createPrefixUnaryExpression(41,L.createBigIntLiteral({negative:!1,base10Value:B.value.base10Value})):L.createBigIntLiteral(B.value));break;case"number":A.push(B.value<0?L.createPrefixUnaryExpression(41,L.createNumericLiteral(-B.value)):L.createNumericLiteral(B.value));break;case"string":A.push(L.createStringLiteral(B.value,E===0));break}if(A.length===0)return;let N=mn(A,B=>L.createCaseClause(B,[])),D=Ky(o,l?.options),w=nQ({removeComments:!0,module:i.module,target:i.target,newLine:pO(D)}),j=l?B=>w.printAndFormatNode(4,B,t,l):B=>w.printNode(4,B,t),K=mn(N,(B,ce)=>r.includeCompletionsWithSnippetText?`${j(B)}$${ce+1}`:`${j(B)}`).join(D);return{entry:{name:`${w.printNode(4,N[0],t)} ...`,kind:"",sortText:Wd.GlobalsOrKeywords,insertText:K,hasAction:S.hasFixes()||void 0,source:"SwitchCases/",isSnippet:r.includeCompletionsWithSnippetText?!0:void 0},importAdder:S}}}function eQ(e,t,r){switch(e.kind){case 183:let i=e.typeName;return tQ(i,t,r);case 199:let o=eQ(e.objectType,t,r),s=eQ(e.indexType,t,r);return o&&s&&L.createElementAccessExpression(o,s);case 201:let l=e.literal;switch(l.kind){case 11:return L.createStringLiteral(l.text,r===0);case 9:return L.createNumericLiteral(l.text,l.numericLiteralFlags)}return;case 196:let d=eQ(e.type,t,r);return d&&(Fe(d)?d:L.createParenthesizedExpression(d));case 186:return tQ(e.exprName,t,r);case 205:x.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function tQ(e,t,r){if(Fe(e))return e;let i=Vi(e.right.escapedText);return _U(i,t)?L.createPropertyAccessExpression(tQ(e.left,t,r),i):L.createElementAccessExpression(tQ(e.left,t,r),L.createStringLiteral(i,r===0))}function SZe(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function TZe(e,t){let r=Fn(e,i=>{switch(i.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}});if(r){let i=!!_s(r,32,t),l=r.parent.openingElement.tagName.getText(t)+(i?"":">"),d=Iu(r.tagName),p={name:l,kind:"class",kindModifiers:void 0,sortText:Wd.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:d,entries:[p]}}}function AZe(e,t,r,i,o){gY(e).forEach((s,l)=>{if(s===t)return;let d=Vi(l);!r.has(d)&&Yp(d,i)&&(r.add(d),vv(o,{name:d,kind:"warning",kindModifiers:"",sortText:Wd.JavascriptIdentifiers,isFromUncheckedFile:!0},lB))})}function yme(e,t,r){return typeof r=="object"?W0(r)+"n":No(r)?nM(e,t,r):JSON.stringify(r)}function IZe(e,t,r){return{name:yme(e,t,r),kind:"string",kindModifiers:"",sortText:Wd.LocationPriority}}function xZe(e,t,r,i,o,s,l,d,p,h,m,y,E,S,A,N,D,w,j,K,Y,B,ce,z){var Z,me;let ge,q,J=Oq(r),re,pe,xe=vme(y),fe,ne,he,Ce=p.getTypeChecker(),Ge=y&&fZe(y),ve=y&&cZe(y)||m;if(y&&lZe(y))ge=m?`this${Ge?"?.":""}[${iLe(l,j,h)}]`:`this${Ge?"?.":"."}${h}`;else if((ve||Ge)&&S){ge=ve?m?`[${iLe(l,j,h)}]`:`[${h}]`:h,(Ge||S.questionDotToken)&&(ge=`?.${ge}`);let De=_s(S,25,l)||_s(S,29,l);if(!De)return;let Le=ao(h,S.name.text)?S.name.end:De.end;J=dc(De.getStart(l),Le)}if(A&&(ge===void 0&&(ge=h),ge=`{${ge}}`,typeof A!="boolean"&&(J=Iu(A,l))),y&&pZe(y)&&S){ge===void 0&&(ge=h);let De=Tc(S.pos,l),Le="";De&&a7(De.end,De.parent,l)&&(Le=";"),Le+=`(await ${S.expression.getText()})`,ge=m?`${Le}${ge}`:`${Le}${Ge?"?.":"."}${ge}`;let be=ri(S.parent,Jv)?S.parent:S.expression;J=dc(be.getStart(l),S.end)}if(uM(y)&&(fe=[af(y.moduleSpecifier)],N&&({insertText:ge,replacementSpan:J}=LZe(h,N,y,D,l,w,j),pe=j.includeCompletionsWithSnippetText?!0:void 0)),y?.kind===64&&(ne=!0),K===0&&i&&((Z=Tc(i.pos,l,i))==null?void 0:Z.kind)!==28&&(Ul(i.parent.parent)||Qp(i.parent.parent)||hp(i.parent.parent)||By(i.parent)||((me=Fn(i.parent,mc))==null?void 0:me.getLastToken(l))===i||Zu(i.parent)&&hs(l,i.getEnd()).line!==hs(l,s).line)&&(xe="ObjectLiteralMemberWithComma/",ne=!0),j.includeCompletionsWithClassMemberSnippets&&j.includeCompletionsWithInsertText&&K===3&&RZe(e,o,l)){let De,Le=nLe(d,p,w,j,h,e,o,s,i,Y);if(Le)({insertText:ge,filterText:q,isSnippet:pe,importAdder:De}=Le),De?.hasFixes()&&(ne=!0,xe="ClassMemberSnippet/");else return}if(y&&JMe(y)&&({insertText:ge,isSnippet:pe,labelDetails:he}=y,j.useLabelDetailsInCompletionEntries||(h=h+he.detail,he=void 0),xe="ObjectLiteralMethodSnippet/",t=Wd.SortBelow(t)),B&&!ce&&j.includeCompletionsWithSnippetText&&j.jsxAttributeCompletionStyle&&j.jsxAttributeCompletionStyle!=="none"&&!(M_(o.parent)&&o.parent.initializer)){let De=j.jsxAttributeCompletionStyle==="braces",Le=Ce.getTypeOfSymbolAtLocation(e,o);j.jsxAttributeCompletionStyle==="auto"&&!(Le.flags&528)&&!(Le.flags&1048576&&Vr(Le.types,Et=>!!(Et.flags&528)))&&(Le.flags&402653316||Le.flags&1048576&&oo(Le.types,Et=>!!(Et.flags&402686084||cde(Et)))?(ge=`${z0(h)}=${nM(l,j,"$1")}`,pe=!0):De=!0),De&&(ge=`${z0(h)}={$1}`,pe=!0)}if(ge!==void 0&&!j.includeCompletionsWithInsertText)return;(sB(y)||uM(y))&&(re=rLe(y),ne=!N);let Ae=Fn(o,E6);if(Ae?.kind===275){let De=g0(h);Ae&&De&&(De===135||Ij(De))&&(ge=`${h} as ${h}_`)}return{name:h,kind:Xy.getSymbolKind(Ce,e,o),kindModifiers:Xy.getSymbolModifiers(Ce,e),sortText:t,source:xe,hasAction:ne?!0:void 0,isRecommended:kZe(e,E,Ce)||void 0,insertText:ge,filterText:q,replacementSpan:J,sourceDisplay:fe,labelDetails:he,isSnippet:pe,isPackageJsonImport:uZe(y)||void 0,isImportStatementCompletion:!!N||void 0,data:re,...z?{symbol:e}:void 0}}function RZe(e,t,r){return ir(t)?!1:!!(e.flags&106500)&&(ci(t)||t.parent&&t.parent.parent&&$c(t.parent)&&t===t.parent.name&&t.parent.getLastToken(r)===t.parent.name&&ci(t.parent.parent)||t.parent&&OR(t)&&ci(t.parent))}function nLe(e,t,r,i,o,s,l,d,p,h){let m=Fn(l,ci);if(!m)return;let y,E=o,S=o,A=t.getTypeChecker(),N=l.getSourceFile(),D=nQ({removeComments:!0,module:r.module,target:r.target,omitTrailingSemicolon:!1,newLine:pO(Ky(e,h?.options))}),w=Od.createImportAdder(N,t,i,e),j;if(i.includeCompletionsWithSnippetText){y=!0;let me=L.createEmptyStatement();j=L.createBlock([me],!0),UU(me,{kind:0,order:0})}else j=L.createBlock([],!0);let K=0,{modifiers:Y,range:B,decorators:ce}=DZe(p,N,d),z=Y&64&&m.modifierFlagsCache&64,Z=[];if(Od.addNewNodeForMemberSymbol(s,m,N,{program:t,host:e},i,w,me=>{let ge=0;z&&(ge|=64),$c(me)&&A.getMemberOverrideModifierStatus(m,me,s)===1&&(ge|=16),Z.length||(K=me.modifierFlagsCache|ge),me=L.replaceModifiers(me,K),Z.push(me)},j,Od.PreserveOptionalFlags.Property,!!z),Z.length){let me=s.flags&8192,ge=K|16|1;me?ge|=1024:ge|=136;let q=Y≥if(Y&~ge)return;if(K&4&&q&1&&(K&=-5),q!==0&&!(q&1)&&(K&=-2),K|=q,Z=Z.map(re=>L.replaceModifiers(re,K)),ce?.length){let re=Z[Z.length-1];GT(re)&&(Z[Z.length-1]=L.replaceDecoratorsAndModifiers(re,ce.concat(y0(re)||[])))}let J=131073;h?E=D.printAndFormatSnippetList(J,L.createNodeArray(Z),N,h):E=D.printSnippetList(J,L.createNodeArray(Z),N)}return{insertText:E,filterText:S,isSnippet:y,importAdder:w,eraseRange:B}}function DZe(e,t,r){if(!e||hs(t,r).line>hs(t,e.getEnd()).line)return{modifiers:0};let i=0,o,s,l={pos:r,end:r};if(Uo(e.parent)&&e.parent.modifiers&&(i|=x_(e.parent.modifiers)&98303,o=e.parent.modifiers.filter(bd)||[],l.pos=Math.min(l.pos,e.parent.modifiers.pos)),s=CZe(e)){let d=MI(s);i&d||(i|=d,l.pos=Math.min(l.pos,e.pos))}return{modifiers:i,decorators:o,range:l.pos!==r?l:void 0}}function CZe(e){if(Sa(e))return e.kind;if(Fe(e)){let t=eE(e);if(t&&Dy(t))return t}}function NZe(e,t,r,i,o,s,l,d){let p=l.includeCompletionsWithSnippetText||void 0,h=t,m=r.getSourceFile(),y=PZe(e,r,m,i,o,l);if(!y)return;let E=nQ({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!1,newLine:pO(Ky(o,d?.options))});d?h=E.printAndFormatSnippetList(80,L.createNodeArray([y],!0),m,d):h=E.printSnippetList(80,L.createNodeArray([y],!0),m);let S=AE({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!0}),A=L.createMethodSignature(void 0,"",y.questionToken,y.typeParameters,y.parameters,y.type),N={detail:S.printNode(4,A,m)};return{isSnippet:p,insertText:h,labelDetails:N}}function PZe(e,t,r,i,o,s){let l=e.getDeclarations();if(!(l&&l.length))return;let d=i.getTypeChecker(),p=l[0],h=ol(Po(p),!1),m=d.getWidenedType(d.getTypeOfSymbolAtLocation(e,t)),E=33554432|(of(r,s)===0?268435456:0);switch(p.kind){case 171:case 172:case 173:case 174:{let S=m.flags&1048576&&m.types.length<10?d.getUnionType(m.types,2):m;if(S.flags&1048576){let j=jr(S.types,K=>d.getSignaturesOfType(K,0).length>0);if(j.length===1)S=j[0];else return}if(d.getSignaturesOfType(S,0).length!==1)return;let N=d.typeToTypeNode(S,t,E,Od.getNoopSymbolTrackerWithResolver({program:i,host:o}));if(!N||!hh(N))return;let D;if(s.includeCompletionsWithSnippetText){let j=L.createEmptyStatement();D=L.createBlock([j],!0),UU(j,{kind:0,order:0})}else D=L.createBlock([],!0);let w=N.parameters.map(j=>L.createParameterDeclaration(void 0,j.dotDotDotToken,j.name,void 0,void 0,j.initializer));return L.createMethodDeclaration(void 0,void 0,h,void 0,void 0,w,void 0,D)}default:return}}function nQ(e){let t,r=ur.createWriter(wy(e)),i=AE(e,r),o={...r,write:E=>s(E,()=>r.write(E)),nonEscapingWrite:r.write,writeLiteral:E=>s(E,()=>r.writeLiteral(E)),writeStringLiteral:E=>s(E,()=>r.writeStringLiteral(E)),writeSymbol:(E,S)=>s(E,()=>r.writeSymbol(E,S)),writeParameter:E=>s(E,()=>r.writeParameter(E)),writeComment:E=>s(E,()=>r.writeComment(E)),writeProperty:E=>s(E,()=>r.writeProperty(E))};return{printSnippetList:l,printAndFormatSnippetList:p,printNode:h,printAndFormatNode:y};function s(E,S){let A=z0(E);if(A!==E){let N=r.getTextPos();S();let D=r.getTextPos();t=Tn(t||(t=[]),{newText:A,span:{start:N,length:D-N}})}else S()}function l(E,S,A){let N=d(E,S,A);return t?ur.applyChanges(N,t):N}function d(E,S,A){return t=void 0,o.clear(),i.writeList(E,S,A,o),o.getText()}function p(E,S,A,N){let D={text:d(E,S,A),getLineAndCharacterOfPosition(Y){return hs(this,Y)}},w=_7(N,A),j=va(S,Y=>{let B=ur.assignPositionsToNode(Y);return wc.formatNodeGivenIndentation(B,D,A.languageVariant,0,0,{...N,options:w})}),K=t?vy(Eo(j,t),(Y,B)=>yW(Y.span,B.span)):j;return ur.applyChanges(D.text,K)}function h(E,S,A){let N=m(E,S,A);return t?ur.applyChanges(N,t):N}function m(E,S,A){return t=void 0,o.clear(),i.writeNode(E,S,A,o),o.getText()}function y(E,S,A,N){let D={text:m(E,S,A),getLineAndCharacterOfPosition(B){return hs(this,B)}},w=_7(N,A),j=ur.assignPositionsToNode(S),K=wc.formatNodeGivenIndentation(j,D,A.languageVariant,0,0,{...N,options:w}),Y=t?vy(Eo(K,t),(B,ce)=>yW(B.span,ce.span)):K;return ur.applyChanges(D.text,Y)}}function rLe(e){let t=e.fileName?void 0:Yf(e.moduleSymbol.name),r=e.isFromPackageJson?!0:void 0;return uM(e)?{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:t,fileName:e.fileName,isPackageJsonImport:r}:{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:Yf(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function MZe(e,t,r){let i=e.exportName==="default",o=!!e.isPackageJsonImport;return XMe(e)?{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:i,isFromPackageJson:o}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:i,isFromPackageJson:o}}function LZe(e,t,r,i,o,s,l){let d=t.replacementSpan,p=z0(nM(o,l,r.moduleSpecifier)),h=r.isDefaultExport?1:r.exportName==="export="?2:0,m=l.includeCompletionsWithSnippetText?"$1":"",y=Od.getImportKind(o,h,s,!0),E=t.couldBeTypeOnlyImportSpecifier,S=t.isTopLevelTypeOnly?` ${da(156)} `:" ",A=E?`${da(156)} `:"",N=i?";":"";switch(y){case 3:return{replacementSpan:d,insertText:`import${S}${z0(e)}${m} = require(${p})${N}`};case 1:return{replacementSpan:d,insertText:`import${S}${z0(e)}${m} from ${p}${N}`};case 2:return{replacementSpan:d,insertText:`import${S}* as ${z0(e)} from ${p}${N}`};case 0:return{replacementSpan:d,insertText:`import${S}{ ${A}${z0(e)}${m} } from ${p}${N}`}}}function iLe(e,t,r){return/^\d+$/.test(r)?r:nM(e,t,r)}function kZe(e,t,r){return e===t||!!(e.flags&1048576)&&r.getExportSymbolOfSymbol(e)===t}function vme(e){if(sB(e))return Yf(e.moduleSymbol.name);if(uM(e))return e.moduleSpecifier;if(e?.kind===1)return"ThisProperty/";if(e?.kind===64)return"TypeOnlyAlias/"}function bme(e,t,r,i,o,s,l,d,p,h,m,y,E,S,A,N,D,w,j,K,Y,B,ce,z,Z,me=!1){let ge=Hs(),q=tet(i,o),J=cO(l),re=p.getTypeChecker(),pe=new Map;for(let ne=0;neze.getSourceFile()===o.getSourceFile()));pe.set(ve,be),vv(t,Et,lB,!0)}return m("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(Hs()-ge)),{has:ne=>pe.has(ne),add:ne=>pe.set(ne,!0)};function xe(ne,he){var Ce;let Ge=ne.flags;if(!Yi(o)){if(Ll(o.parent))return!0;if(ri(q,wi)&&ne.valueDeclaration===q)return!1;let ve=ne.valueDeclaration??((Ce=ne.declarations)==null?void 0:Ce[0]);if(q&&ve&&(fl(q)&&fl(ve)||Ao(q)&&Ao(ve))){let De=ve.pos,Le=Ao(q)?q.parent.parameters:CT(q.parent)?void 0:q.parent.typeParameters;if(De>=q.pos&&Le&&Deyme(r,l,K)===o.name);return j!==void 0?{type:"literal",literal:j}:Wl(h,(K,Y)=>{let B=S[Y],ce=iQ(K,ns(d),B,E,p.isJsxIdentifierExpected);return ce&&ce.name===o.name&&(o.source==="ClassMemberSnippet/"&&K.flags&106500||o.source==="ObjectLiteralMethodSnippet/"&&K.flags&8196||vme(B)===o.source||o.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:K,location:y,origin:B,contextToken:A,previousToken:N,isJsxInitializer:D,isTypeOnlyLocation:w}:void 0})||{type:"none"}}function WZe(e,t,r,i,o,s,l,d,p){let h=e.getTypeChecker(),m=e.getCompilerOptions(),{name:y,source:E,data:S}=o,{previousToken:A,contextToken:N}=rQ(i,r);if(y1(r,i,A))return uQ.getStringLiteralCompletionDetails(y,r,i,A,e,s,p,d);let D=oLe(e,t,r,i,o,s,d);switch(D.type){case"request":{let{request:w}=D;switch(w.kind){case 1:return PE.getJSDocTagNameCompletionDetails(y);case 2:return PE.getJSDocTagCompletionDetails(y);case 3:return PE.getJSDocParameterNameCompletionDetails(y);case 4:return gt(w.keywordCompletions,j=>j.name===y)?Eme(y,"keyword",5):void 0;default:return x.assertNever(w)}}case"symbol":{let{symbol:w,location:j,contextToken:K,origin:Y,previousToken:B}=D,{codeActions:ce,sourceDisplay:z}=FZe(y,j,K,Y,w,e,s,m,r,i,B,l,d,S,E,p),Z=hme(Y)?Y.symbolName:w.name;return Sme(w,Z,h,r,j,p,ce,z)}case"literal":{let{literal:w}=D;return Eme(yme(r,d,w),"string",typeof w=="string"?8:7)}case"cases":{let w=tLe(N.parent,r,d,e.getCompilerOptions(),s,e,void 0);if(w?.importAdder.hasFixes()){let{entry:j,importAdder:K}=w,Y=ur.ChangeTracker.with({host:s,formatContext:l,preferences:d},K.writeFixes);return{name:j.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:Y,description:ZT([f.Includes_imports_of_types_referenced_by_0,y])}]}}return{name:y,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return Nme().some(w=>w.name===y)?Eme(y,"keyword",5):void 0;default:x.assertNever(D)}}function Eme(e,t,r){return cB(e,"",t,[ep(e,r)])}function Sme(e,t,r,i,o,s,l,d){let{displayParts:p,documentation:h,symbolKind:m,tags:y}=r.runWithCancellationToken(s,E=>Xy.getSymbolDisplayPartsDocumentationAndSymbolKind(E,e,i,o,o,7));return cB(t,Xy.getSymbolModifiers(r,e),m,p,h,y,l,d)}function cB(e,t,r,i,o,s,l,d){return{name:e,kindModifiers:t,kind:r,displayParts:i,documentation:o,tags:s,codeActions:l,source:d,sourceDisplay:d}}function FZe(e,t,r,i,o,s,l,d,p,h,m,y,E,S,A,N){if(S?.moduleSpecifier&&m&&_Le(r||m,p).replacementSpan)return{codeActions:void 0,sourceDisplay:[af(S.moduleSpecifier)]};if(A==="ClassMemberSnippet/"){let{importAdder:ce,eraseRange:z}=nLe(l,s,d,E,e,o,t,h,r,y);if(ce||z)return{sourceDisplay:void 0,codeActions:[{changes:ur.ChangeTracker.with({host:l,formatContext:y,preferences:E},me=>{ce&&ce.writeFixes(me),z&&me.deleteRange(p,z)}),description:ZT([f.Includes_imports_of_types_referenced_by_0,e])}]}}if(KMe(i)){let ce=Od.getPromoteTypeOnlyCompletionAction(p,i.declaration.name,s,l,y,E);return x.assertIsDefined(ce,"Expected to have a code action for promoting type-only alias"),{codeActions:[ce],sourceDisplay:void 0}}if(A==="ObjectLiteralMemberWithComma/"&&r){let ce=ur.ChangeTracker.with({host:l,formatContext:y,preferences:E},z=>z.insertText(p,r.end,","));if(ce)return{sourceDisplay:void 0,codeActions:[{changes:ce,description:ZT([f.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!i||!(sB(i)||uM(i)))return{codeActions:void 0,sourceDisplay:void 0};let D=i.isFromPackageJson?l.getPackageJsonAutoImportProvider().getTypeChecker():s.getTypeChecker(),{moduleSymbol:w}=i,j=D.getMergedSymbol(vd(o.exportSymbol||o,D)),K=r?.kind===30&&au(r.parent),{moduleSpecifier:Y,codeAction:B}=Od.getImportCompletionAction(j,w,S?.exportMapKey,p,e,K,l,s,y,m&&Fe(m)?m.getStart(p):h,E,N);return x.assert(!S?.moduleSpecifier||Y===S.moduleSpecifier),{sourceDisplay:[af(Y)],codeActions:[B]}}function zZe(e,t,r,i,o,s,l){let d=oLe(e,t,r,i,o,s,l);return d.type==="symbol"?d.symbol:void 0}function BZe(e,t,r){return Wl(t&&(t.isUnion()?t.types:[t]),i=>{let o=i&&i.symbol;return o&&o.flags&424&&!Zie(o)?Tme(o,e,r):void 0})}function GZe(e,t,r,i){let{parent:o}=e;switch(e.kind){case 80:return r7(e,i);case 64:switch(o.kind){case 260:return i.getContextualType(o.initializer);case 226:return i.getTypeAtLocation(o.left);case 291:return i.getContextualTypeForJsxAttribute(o);default:return}case 105:return i.getContextualType(o);case 84:let s=ri(o,MR);return s?oX(s,i):void 0;case 19:return fP(o)&&!ig(o.parent)&&!J0(o.parent)?i.getContextualTypeForJsxAttribute(o.parent):void 0;default:let l=HO.getArgumentInfoForCompletions(e,t,r,i);return l?i.getContextualTypeForArgumentAtIndex(l.invocation,l.argumentIndex):i7(e.kind)&&dr(o)&&i7(o.operatorToken.kind)?i.getTypeAtLocation(o.left):i.getContextualType(e,4)||i.getContextualType(e)}}function Tme(e,t,r){let i=r.getAccessibleSymbolChain(e,t,-1,!1);return i?Va(i):e.parent&&(VZe(e.parent)?e:Tme(e.parent,t,r))}function VZe(e){var t;return!!((t=e.declarations)!=null&&t.some(r=>r.kind===312))}function aLe(e,t,r,i,o,s,l,d,p,h){let m=e.getTypeChecker(),y=eLe(r,i),E=Hs(),S=so(r,o);t("getCompletionData: Get current token: "+(Hs()-E)),E=Hs();let A=jy(r,o,S);t("getCompletionData: Is inside comment: "+(Hs()-E));let N=!1,D=!1;if(A){if(ade(r,o)){if(r.text.charCodeAt(o-1)===64)return{kind:1};{let We=rm(o,r);if(!/[^*|\s(/)]/.test(r.text.substring(We,o)))return{kind:2}}}let ue=KZe(S,o);if(ue){if(ue.tagName.pos<=o&&o<=ue.tagName.end)return{kind:1};let We=Zt(ue);if(We&&(S=so(r,o),(!S||!kg(S)&&(S.parent.kind!==355||S.parent.name!==S))&&(N=H(We))),!N&&Ym(ue)&&(Fl(ue.name)||ue.name.pos<=o&&o<=ue.name.end))return{kind:3,tag:ue}}if(!N){t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}E=Hs();let w=!N&&su(r),j=rQ(o,r),K=j.previousToken,Y=j.contextToken;t("getCompletionData: Get previous token: "+(Hs()-E));let B=S,ce,z=!1,Z=!1,me=!1,ge=!1,q=!1,J=!1,re,pe=Wu(r,o),xe=0,fe=!1,ne=0;if(Y){let ue=_Le(Y,r);if(ue.keywordCompletion){if(ue.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[yZe(ue.keywordCompletion)],isNewIdentifierLocation:ue.isNewIdentifierLocation};xe=bZe(ue.keywordCompletion)}if(ue.replacementSpan&&s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText&&(ne|=2,re=ue,fe=ue.isNewIdentifierLocation),!ue.replacementSpan&&$i(Y))return t("Returning an empty list because completion was requested in an invalid position."),xe?QMe(xe,w,ua()):void 0;let We=Y.parent;if(Y.kind===25||Y.kind===29)switch(z=Y.kind===25,Z=Y.kind===29,We.kind){case 211:ce=We,B=ce.expression;let Ne=hR(ce);if(Fl(Ne)||(ia(B)||$o(B))&&B.end===Y.pos&&B.getChildCount(r)&&Ja(B.getChildren(r)).kind!==22)return;break;case 166:B=We.left;break;case 267:B=We.name;break;case 205:B=We;break;case 236:B=We.getFirstToken(r),x.assert(B.kind===102||B.kind===105);break;default:return}else if(!re){if(We&&We.kind===211&&(Y=We,We=We.parent),S.parent===pe)switch(S.kind){case 32:(S.parent.kind===284||S.parent.kind===286)&&(pe=S);break;case 44:S.parent.kind===285&&(pe=S);break}switch(We.kind){case 287:Y.kind===44&&(ge=!0,pe=Y);break;case 226:if(!mLe(We))break;case 285:case 284:case 286:J=!0,Y.kind===30&&(me=!0,pe=Y);break;case 294:case 293:(K.kind===20||K.kind===80&&K.parent.kind===291)&&(J=!0);break;case 291:if(We.initializer===K&&K.endYT(ue?d.getPackageJsonAutoImportProvider():e,d));if(z||Z)en();else if(me)ve=m.getJsxIntrinsicTagNamesAt(pe),x.assertEachIsDefined(ve,"getJsxIntrinsicTagNames() should all be defined"),Xt(),Ce=1,xe=0;else if(ge){let ue=Y.parent.parent.openingElement.tagName,We=m.getSymbolAtLocation(ue);We&&(ve=[We]),Ce=1,xe=0}else if(!Xt())return xe?QMe(xe,w,fe):void 0;t("getCompletionData: Semantic work: "+(Hs()-he));let tt=K&&GZe(K,o,r,m),_t=!ri(K,as)&&!J?to(tt&&(tt.isUnion()?tt.types:[tt]),ue=>ue.isLiteral()&&!(ue.flags&1024)?ue.value:void 0):[],Je=K&&tt&&BZe(K,tt,m);return{kind:0,symbols:ve,completionKind:Ce,isInSnippetScope:D,propertyAccessToConvert:ce,isNewIdentifierLocation:fe,location:pe,keywordFilters:xe,literals:_t,symbolToOriginInfoMap:De,recommendedCompletion:Je,previousToken:K,contextToken:Y,isJsxInitializer:q,insideJsDocTagTypeExpression:N,symbolToSortTextMap:Le,isTypeOnlyLocation:be,isJsxIdentifierExpected:J,isRightOfOpenTag:me,isRightOfDotOrQuestionDot:z||Z,importStatementCompletion:re,hasUnresolvedAutoImports:Ge,flags:ne};function pt(ue){switch(ue.kind){case 348:case 355:case 349:case 351:case 353:case 356:case 357:return!0;case 352:return!!ue.constraint;default:return!1}}function Zt(ue){if(pt(ue)){let We=nm(ue)?ue.constraint:ue.typeExpression;return We&&We.kind===316?We:void 0}if(a1(ue)||K4(ue))return ue.class}function en(){Ce=2;let ue=wv(B),We=ue&&!B.isTypeOf||qh(B.parent)||$w(Y,r,m),Ne=Pz(B);if(Xu(B)||ue||kr(B)){let It=ql(B.parent);It&&(fe=!0);let Dt=m.getSymbolAtLocation(B);if(Dt&&(Dt=vd(Dt,m),Dt.flags&1920)){let Ut=m.getExportsOfModule(Dt);x.assertEachIsDefined(Ut,"getExportsOfModule() should all be defined");let En=gi=>m.isValidPropertyAccess(ue?B:B.parent,gi.name),wn=gi=>Ime(gi,m),Bn=It?gi=>{var xi;return!!(gi.flags&1920)&&!((xi=gi.declarations)!=null&&xi.every(er=>er.parent===B.parent))}:Ne?gi=>wn(gi)||En(gi):We||N?wn:En;for(let gi of Ut)Bn(gi)&&ve.push(gi);if(!We&&!N&&Dt.declarations&&Dt.declarations.some(gi=>gi.kind!==312&&gi.kind!==267&&gi.kind!==266)){let gi=m.getTypeOfSymbolAtLocation(Dt,B).getNonOptionalType(),xi=!1;if(gi.isNullableType()){let er=z&&!Z&&s.includeAutomaticOptionalChainCompletions!==!1;(er||Z)&&(gi=gi.getNonNullableType(),er&&(xi=!0))}Dn(gi,!!(B.flags&65536),xi)}return}}if(!We||TT(B)){m.tryGetThisTypeAt(B,!1);let It=m.getTypeAtLocation(B).getNonOptionalType();if(We)Dn(It.getNonNullableType(),!1,!1);else{let Dt=!1;if(It.isNullableType()){let Ut=z&&!Z&&s.includeAutomaticOptionalChainCompletions!==!1;(Ut||Z)&&(It=It.getNonNullableType(),Ut&&(Dt=!0))}Dn(It,!!(B.flags&65536),Dt)}}}function Dn(ue,We,Ne){fe=!!ue.getStringIndexType(),Z&>(ue.getCallSignatures())&&(fe=!0);let It=B.kind===205?B:B.parent;if(y)for(let Dt of ue.getApparentProperties())m.isValidPropertyAccessForCompletions(It,ue,Dt)&&Kn(Dt,!1,Ne);else ve.push(...jr(sQ(ue,m),Dt=>m.isValidPropertyAccessForCompletions(It,ue,Dt)));if(We&&s.includeCompletionsWithInsertText){let Dt=m.getPromisedTypeOfPromise(ue);if(Dt)for(let Ut of Dt.getApparentProperties())m.isValidPropertyAccessForCompletions(It,Dt,Ut)&&Kn(Ut,!0,Ne)}}function Kn(ue,We,Ne){var It;let Dt=Wl(ue.declarations,Bn=>ri(Po(Bn),Ya));if(Dt){let Bn=pn(Dt.expression),gi=Bn&&m.getSymbolAtLocation(Bn),xi=gi&&Tme(gi,Y,m),er=xi&&ba(xi);if(er&&Em(Et,er)){let Fr=ve.length;ve.push(xi);let go=xi.parent;if(!go||!eO(go)||m.tryGetMemberInModuleExportsAndProperties(xi.name,go)!==xi)De[Fr]={kind:wn(2)};else{let Pi=Yc(Yf(go.name))?(It=SF(go))==null?void 0:It.fileName:void 0,{moduleSpecifier:Ri}=(Ae||(Ae=Od.createImportSpecifierResolver(r,e,d,s))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:Pi,isFromPackageJson:!1,moduleSymbol:go,symbol:xi,targetFlags:vd(xi,m).flags}],o,fE(pe))||{};if(Ri){let Kr={kind:wn(6),moduleSymbol:go,isDefaultExport:!1,symbolName:xi.name,exportName:xi.name,fileName:Pi,moduleSpecifier:Ri};De[Fr]=Kr}}}else if(s.includeCompletionsWithInsertText){if(er&&Et.has(er))return;En(ue),Ut(ue),ve.push(ue)}}else En(ue),Ut(ue),ve.push(ue);function Ut(Bn){QZe(Bn)&&(Le[ba(Bn)]=Wd.LocalDeclarationPriority)}function En(Bn){s.includeCompletionsWithInsertText&&(We&&Em(Et,ba(Bn))?De[ve.length]={kind:wn(8)}:Ne&&(De[ve.length]={kind:16}))}function wn(Bn){return Ne?Bn|16:Bn}}function pn(ue){return Fe(ue)?ue:kr(ue)?pn(ue.expression):void 0}function Xt(){return(vn()||kn()||uo()||Be()||ct()||lt()||Kt()||Rt()||hi()||(Li(),1))===1}function Kt(){return ke(Y)?(Ce=5,fe=!0,xe=4,1):0}function hi(){let ue=G(Y),We=ue&&m.getContextualType(ue.attributes);if(!We)return 0;let Ne=ue&&m.getContextualType(ue.attributes,4);return ve=Eo(ve,ie(aQ(We,Ne,ue.attributes,m),ue.attributes.properties)),U(),Ce=3,fe=!1,1}function uo(){return re?(fe=!0,Ye(),1):0}function Li(){xe=st(Y)?5:1,Ce=1,fe=ua(),K!==Y&&x.assert(!!K,"Expected 'contextToken' to be defined when different from 'previousToken'.");let ue=K!==Y?K.getStart():o,We=yi(Y,ue,r)||r;D=Qn(We);let Ne=(be?0:111551)|788968|1920|2097152,It=K&&!fE(K);ve=Eo(ve,m.getSymbolsInScope(We,Ne)),x.assertEachIsDefined(ve,"getSymbolsInScope() should all be defined");for(let Dt=0;DtEn.getSourceFile()===r)&&(Le[ba(Ut)]=Wd.GlobalsOrKeywords),It&&!(Ut.flags&111551)){let En=Ut.declarations&&Vr(Ut.declarations,e2);if(En){let wn={kind:64,declaration:En};De[Dt]=wn}}}if(s.includeCompletionsWithInsertText&&We.kind!==312){let Dt=m.tryGetThisTypeAt(We,!1,ci(We.parent)?We:void 0);if(Dt&&!$Ze(Dt,r,m))for(let Ut of sQ(Dt,m))De[ve.length]={kind:1},ve.push(Ut),Le[ba(Ut)]=Wd.SuggestedClassMembers}Ye(),be&&(xe=Y&&cT(Y.parent)?6:7)}function So(){return re?!0:s.includeCompletionsForModuleExports?r.externalModuleIndicator||r.commonJsModuleIndicator||Gq(e.getCompilerOptions())?!0:pde(e):!1}function Qn(ue){switch(ue.kind){case 312:case 228:case 294:case 241:return!0;default:return Hi(ue)}}function Ur(){return N||!!re&&iE(pe.parent)||!Er(Y)&&($w(Y,r,m)||qh(pe)||on(Y))}function Er(ue){return ue&&(ue.kind===114&&(ue.parent.kind===186||NR(ue.parent))||ue.kind===131&&ue.parent.kind===182)}function on(ue){if(ue){let We=ue.parent.kind;switch(ue.kind){case 59:return We===172||We===171||We===169||We===260||vI(We);case 64:return We===265||We===168;case 130:return We===234;case 30:return We===183||We===216;case 96:return We===168;case 152:return We===238}}return!1}function Ye(){var ue,We;if(!So()||(x.assert(!l?.data,"Should not run 'collectAutoImports' when faster path is available via `data`"),l&&!l.source))return;ne|=1;let It=K===Y&&re?"":K&&Fe(K)?K.text.toLowerCase():"",Dt=(ue=d.getModuleSpecifierCache)==null?void 0:ue.call(d),Ut=fO(r,d,e,s,h),En=(We=d.getPackageJsonAutoImportProvider)==null?void 0:We.call(d),wn=l?void 0:iM(r,s,d);qMe("collectAutoImports",d,Ae||(Ae=Od.createImportSpecifierResolver(r,e,d,s)),e,o,s,!!re,fE(pe),gi=>{Ut.search(r.path,me,(xi,er)=>{if(!Yp(xi,ns(d.getCompilationSettings()))||!l&&CI(xi)||!be&&!re&&!(er&111551)||be&&!(er&790504))return!1;let Fr=xi.charCodeAt(0);return me&&(Fr<65||Fr>90)?!1:l?!0:bLe(xi,It)},(xi,er,Fr,go)=>{if(l&&!gt(xi,Ls=>l.source===Yf(Ls.moduleSymbol.name))||(xi=jr(xi,Bn),!xi.length))return;let Pi=gi.tryResolve(xi,Fr)||{};if(Pi==="failed")return;let Ri=xi[0],Kr;Pi!=="skipped"&&({exportInfo:Ri=xi[0],moduleSpecifier:Kr}=Pi);let xo=Ri.exportKind===1,xn=xo&&mR(Ri.symbol)||Ri.symbol;Ot(xn,{kind:Kr?32:4,moduleSpecifier:Kr,symbolName:er,exportMapKey:go,exportName:Ri.exportKind===2?"export=":Ri.symbol.name,fileName:Ri.moduleFileName,isDefaultExport:xo,moduleSymbol:Ri.moduleSymbol,isFromPackageJson:Ri.isFromPackageJson})}),Ge=gi.skippedAny(),ne|=gi.resolvedAny()?8:0,ne|=gi.resolvedBeyondLimit()?16:0});function Bn(gi){let xi=ri(gi.moduleSymbol.valueDeclaration,Yi);if(!xi){let er=Yf(gi.moduleSymbol.name);return O_.nodeCoreModules.has(er)&&ao(er,"node:")!==m7(r,e)?!1:wn?wn.allowsImportingAmbientModule(gi.moduleSymbol,ze(gi.isFromPackageJson)):!0}return EX(gi.isFromPackageJson?En:e,r,xi,s,wn,ze(gi.isFromPackageJson),Dt)}}function Ot(ue,We){let Ne=ba(ue);Le[Ne]!==Wd.GlobalsOrKeywords&&(De[ve.length]=We,Le[Ne]=re?Wd.LocationPriority:Wd.AutoImportSuggestions,ve.push(ue))}function In(ue,We){ir(pe)||ue.forEach(Ne=>{if(!si(Ne))return;let It=iQ(Ne,ns(i),void 0,0,!1);if(!It)return;let{name:Dt}=It,Ut=NZe(Ne,Dt,We,e,d,i,s,p);if(!Ut)return;let En={kind:128,...Ut};ne|=32,De[ve.length]=En,ve.push(Ne)})}function si(ue){return!!(ue.flags&8196)}function yi(ue,We,Ne){let It=ue;for(;It&&!Rq(It,We,Ne);)It=It.parent;return It}function $i(ue){let We=Hs(),Ne=Ba(ue)||Tt(ue)||Ft(ue)||Io(ue)||P4(ue);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(Hs()-We)),Ne}function Io(ue){if(ue.kind===12)return!0;if(ue.kind===32&&ue.parent){if(pe===ue.parent&&(pe.kind===286||pe.kind===285))return!1;if(ue.parent.kind===286)return pe.parent.kind!==286;if(ue.parent.kind===287||ue.parent.kind===285)return!!ue.parent.parent&&ue.parent.parent.kind===284}return!1}function ua(){if(Y){let ue=Y.parent.kind,We=oQ(Y);switch(We){case 28:return ue===213||ue===176||ue===214||ue===209||ue===226||ue===184||ue===210;case 21:return ue===213||ue===176||ue===214||ue===217||ue===196;case 23:return ue===209||ue===181||ue===167;case 144:case 145:case 102:return!0;case 25:return ue===267;case 19:return ue===263||ue===210;case 64:return ue===260||ue===226;case 16:return ue===228;case 17:return ue===239;case 134:return ue===174||ue===304;case 42:return ue===174}if(dB(We))return!0}return!1}function Ba(ue){return(XU(ue)||DV(ue))&&(qw(ue,o)||o===ue.end&&(!!ue.isUnterminated||XU(ue)))}function vn(){let ue=XZe(Y);if(!ue)return 0;let Ne=(QI(ue.parent)?ue.parent:void 0)||ue,It=fLe(Ne,m);if(!It)return 0;let Dt=m.getTypeFromTypeNode(Ne),Ut=sQ(It,m),En=sQ(Dt,m),wn=new Set;return En.forEach(Bn=>wn.add(Bn.escapedName)),ve=Eo(ve,jr(Ut,Bn=>!wn.has(Bn.escapedName))),Ce=0,fe=!0,1}function kn(){let ue=ve.length,We=jZe(Y,o,r);if(!We)return 0;Ce=0;let Ne,It;if(We.kind===210){let Dt=ZZe(We,m);if(Dt===void 0)return We.flags&67108864?2:0;let Ut=m.getContextualType(We,4),En=(Ut||Dt).getStringIndexType(),wn=(Ut||Dt).getNumberIndexType();if(fe=!!En||!!wn,Ne=aQ(Dt,Ut,We,m),It=We.properties,Ne.length===0&&!wn)return 0}else{x.assert(We.kind===206),fe=!1;let Dt=A_(We.parent);if(!qx(Dt))return x.fail("Root declaration is not variable-like.");let Ut=Mv(Dt)||!!yd(Dt)||Dt.parent.parent.kind===250;if(!Ut&&Dt.kind===169&&(ht(Dt.parent)?Ut=!!m.getContextualType(Dt.parent):(Dt.parent.kind===174||Dt.parent.kind===178)&&(Ut=ht(Dt.parent.parent)&&!!m.getContextualType(Dt.parent.parent))),Ut){let En=m.getTypeAtLocation(We);if(!En)return 2;Ne=m.getPropertiesOfType(En).filter(wn=>m.isPropertyAccessible(We,!1,!1,En,wn)),It=We.elements}}if(Ne&&Ne.length>0){let Dt=dn(Ne,x.checkDefined(It));ve=Eo(ve,Dt),U(),We.kind===210&&s.includeCompletionsWithObjectLiteralMethodSnippets&&s.includeCompletionsWithInsertText&&(Nt(ue),In(Dt,We))}return 1}function Be(){if(!Y)return 0;let ue=Y.kind===19||Y.kind===28?ri(Y.parent,E6):Jz(Y)?ri(Y.parent.parent,E6):void 0;if(!ue)return 0;Jz(Y)||(xe=8);let{moduleSpecifier:We}=ue.kind===275?ue.parent.parent:ue.parent;if(!We)return fe=!0,ue.kind===275?2:0;let Ne=m.getSymbolAtLocation(We);if(!Ne)return fe=!0,2;Ce=3,fe=!1;let It=m.getExportsAndPropertiesOfModule(Ne),Dt=new Set(ue.elements.filter(En=>!H(En)).map(En=>(En.propertyName||En.name).escapedText)),Ut=It.filter(En=>En.escapedName!=="default"&&!Dt.has(En.escapedName));return ve=Eo(ve,Ut),Ut.length||(xe=0),1}function ct(){if(Y===void 0)return 0;let ue=Y.kind===19||Y.kind===28?ri(Y.parent,n1):Y.kind===59?ri(Y.parent.parent,n1):void 0;if(ue===void 0)return 0;let We=new Set(ue.elements.map(U6));return ve=jr(m.getTypeAtLocation(ue).getApparentProperties(),Ne=>!We.has(Ne.escapedName)),1}function lt(){var ue;let We=Y&&(Y.kind===19||Y.kind===28)?ri(Y.parent,xf):void 0;if(!We)return 0;let Ne=Fn(We,jm(Yi,ql));return Ce=5,fe=!1,(ue=Ne.locals)==null||ue.forEach((It,Dt)=>{var Ut,En;ve.push(It),(En=(Ut=Ne.symbol)==null?void 0:Ut.exports)!=null&&En.has(Dt)&&(Le[ba(It)]=Wd.OptionalMember)}),1}function Rt(){let ue=qZe(r,Y,pe,o);if(!ue)return 0;if(Ce=3,fe=!0,xe=Y.kind===42?0:ci(ue)?2:3,!ci(ue))return 1;let We=Y.kind===27?Y.parent.parent:Y.parent,Ne=$c(We)?lu(We):0;if(Y.kind===80&&!H(Y))switch(Y.getText()){case"private":Ne=Ne|2;break;case"static":Ne=Ne|256;break;case"override":Ne=Ne|16;break}if(Al(We)&&(Ne|=256),!(Ne&2)){let It=ci(ue)&&Ne&16?pI(S_(ue)):bN(ue),Dt=va(It,Ut=>{let En=m.getTypeAtLocation(Ut);return Ne&256?En?.symbol&&m.getPropertiesOfType(m.getTypeOfSymbolAtLocation(En.symbol,ue)):En&&m.getPropertiesOfType(En)});ve=Eo(ve,k(Dt,ue.members,Ne)),gn(ve,(Ut,En)=>{let wn=Ut?.valueDeclaration;if(wn&&$c(wn)&&wn.name&&Ya(wn.name)){let Bn={kind:512,symbolName:m.symbolToString(Ut)};De[En]=Bn}})}return 1}function ae(ue){return!!ue.parent&&Ao(ue.parent)&&Pl(ue.parent.parent)&&(oN(ue.kind)||kg(ue))}function ke(ue){if(ue){let We=ue.parent;switch(ue.kind){case 21:case 28:return Pl(ue.parent)?ue.parent:void 0;default:if(ae(ue))return We.parent}}}function st(ue){if(ue){let We,Ne=Fn(ue.parent,It=>ci(It)?"quit":ws(It)&&We===It.body?!0:(We=It,!1));return Ne&&Ne}}function G(ue){if(ue){let We=ue.parent;switch(ue.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(We&&(We.kind===285||We.kind===286)){if(ue.kind===32){let Ne=Tc(ue.pos,r,void 0);if(!We.typeArguments||Ne&&Ne.kind===44)break}return We}else if(We.kind===291)return We.parent.parent;break;case 11:if(We&&(We.kind===291||We.kind===293))return We.parent.parent;break;case 20:if(We&&We.kind===294&&We.parent&&We.parent.kind===291)return We.parent.parent.parent;if(We&&We.kind===293)return We.parent.parent;break}}}function et(ue,We){return r.getLineEndOfPosition(ue.getEnd())=ue.pos;case 25:return Ne===207;case 59:return Ne===208;case 23:return Ne===207;case 21:return Ne===299||ut(Ne);case 19:return Ne===266;case 30:return Ne===263||Ne===231||Ne===264||Ne===265||vI(Ne);case 126:return Ne===172&&!ci(We.parent);case 26:return Ne===169||!!We.parent&&We.parent.kind===207;case 125:case 123:case 124:return Ne===169&&!Pl(We.parent);case 130:return Ne===276||Ne===281||Ne===274;case 139:case 153:return!lQ(ue);case 80:{if(Ne===276&&ue===We.name&&ue.text==="type"||Fn(ue.parent,wi)&&et(ue,o))return!1;break}case 86:case 94:case 120:case 100:case 115:case 102:case 121:case 87:case 140:return!0;case 156:return Ne!==276;case 42:return $o(ue.parent)&&!Ul(ue.parent)}if(dB(oQ(ue))&&lQ(ue)||ae(ue)&&(!Fe(ue)||oN(oQ(ue))||H(ue)))return!1;switch(oQ(ue)){case 128:case 86:case 87:case 138:case 94:case 100:case 120:case 121:case 123:case 124:case 125:case 126:case 115:return!0;case 134:return Uo(ue.parent)}if(Fn(ue.parent,ci)&&ue===K&&He(ue,o))return!1;let Dt=dE(ue.parent,172);if(Dt&&ue!==K&&ci(K.parent.parent)&&o<=K.end){if(He(ue,K.end))return!1;if(ue.kind!==64&&(Ew(Dt)||hF(Dt)))return!0}return kg(ue)&&!Zu(ue.parent)&&!M_(ue.parent)&&!((ci(ue.parent)||pu(ue.parent)||fl(ue.parent))&&(ue!==K||o>K.end))}function He(ue,We){return ue.kind!==64&&(ue.kind===27||!Sf(ue.end,We,r))}function ut(ue){return vI(ue)&&ue!==176}function Ft(ue){if(ue.kind===9){let We=ue.getFullText();return We.charAt(We.length-1)==="."}return!1}function hn(ue){return ue.parent.kind===261&&!$w(ue,r,m)}function dn(ue,We){if(We.length===0)return ue;let Ne=new Set,It=new Set;for(let Ut of We){if(Ut.kind!==303&&Ut.kind!==304&&Ut.kind!==208&&Ut.kind!==174&&Ut.kind!==177&&Ut.kind!==178&&Ut.kind!==305||H(Ut))continue;let En;if(By(Ut))un(Ut,Ne);else if(Xa(Ut)&&Ut.propertyName)Ut.propertyName.kind===80&&(En=Ut.propertyName.escapedText);else{let wn=Po(Ut);En=wn&&T_(wn)?TN(wn):void 0}En!==void 0&&It.add(En)}let Dt=ue.filter(Ut=>!It.has(Ut.escapedName));return Me(Ne,Dt),Dt}function un(ue,We){let Ne=ue.expression,It=m.getSymbolAtLocation(Ne),Dt=It&&m.getTypeOfSymbolAtLocation(It,Ne),Ut=Dt&&Dt.properties;Ut&&Ut.forEach(En=>{We.add(En.name)})}function U(){ve.forEach(ue=>{if(ue.flags&16777216){let We=ba(ue);Le[We]=Le[We]??Wd.OptionalMember}})}function Me(ue,We){if(ue.size!==0)for(let Ne of We)ue.has(Ne.name)&&(Le[ba(Ne)]=Wd.MemberDeclaredBySpreadAssignment)}function Nt(ue){for(let We=ue;We!It.has(Dt.escapedName)&&!!Dt.declarations&&!(Tf(Dt)&2)&&!(Dt.valueDeclaration&&ou(Dt.valueDeclaration)))}function ie(ue,We){let Ne=new Set,It=new Set;for(let Ut of We)H(Ut)||(Ut.kind===291?Ne.add($N(Ut.name)):o1(Ut)&&un(Ut,It));let Dt=ue.filter(Ut=>!Ne.has(Ut.escapedName));return Me(It,Dt),Dt}function H(ue){return ue.getStart(r)<=o&&o<=ue.getEnd()}}function jZe(e,t,r){var i;if(e){let{parent:o}=e;switch(e.kind){case 19:case 28:if(Ma(o)||tm(o))return o;break;case 42:return Ul(o)?ri(o.parent,Ma):void 0;case 134:return ri(o.parent,Ma);case 80:if(e.text==="async"&&Zu(e.parent))return e.parent.parent;{if(Ma(e.parent.parent)&&(By(e.parent)||Zu(e.parent)&&hs(r,e.getEnd()).line!==hs(r,t).line))return e.parent.parent;let l=Fn(o,mc);if(l?.getLastToken(r)===e&&Ma(l.parent))return l.parent}break;default:if((i=o.parent)!=null&&i.parent&&(Ul(o.parent)||Qp(o.parent)||hp(o.parent))&&Ma(o.parent.parent))return o.parent.parent;if(By(o)&&Ma(o.parent))return o.parent;let s=Fn(o,mc);if(e.kind!==59&&s?.getLastToken(r)===e&&Ma(s.parent))return s.parent}}}function rQ(e,t){let r=Tc(e,t);return r&&e<=r.end&&(Hh(r)||wu(r.kind))?{contextToken:Tc(r.getFullStart(),t,void 0),previousToken:r}:{contextToken:r,previousToken:r}}function sLe(e,t,r,i){let o=t.isPackageJsonImport?i.getPackageJsonAutoImportProvider():r,s=o.getTypeChecker(),l=t.ambientModuleName?s.tryFindAmbientModule(t.ambientModuleName):t.fileName?s.getMergedSymbol(x.checkDefined(o.getSourceFile(t.fileName)).symbol):void 0;if(!l)return;let d=t.exportName==="export="?s.resolveExternalModuleSymbol(l):s.tryGetMemberInModuleExportsAndProperties(t.exportName,l);return d?(d=t.exportName==="default"&&mR(d)||d,{symbol:d,origin:MZe(t,e,l)}):void 0}function iQ(e,t,r,i,o){if(mZe(r))return;let s=dZe(r)?r.symbolName:e.name;if(s===void 0||e.flags&1536&&R2(s.charCodeAt(0))||J2(e))return;let l={name:s,needsConvertPropertyAccess:!1};if(Yp(s,t,o?1:0)||e.valueDeclaration&&ou(e.valueDeclaration))return l;switch(i){case 3:return hme(r)?{name:r.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(s),needsConvertPropertyAccess:!1};case 2:case 1:return s.charCodeAt(0)===32?void 0:{name:s,needsConvertPropertyAccess:!0};case 5:case 4:return l;default:x.assertNever(i)}}function lLe(e,t){if(!t)return cLe(e);let r=e+8+1;return uB[r]||(uB[r]=cLe(e).filter(i=>!UZe(g0(i.name))))}function cLe(e){return uB[e]||(uB[e]=Nme().filter(t=>{let r=g0(t.name);switch(e){case 0:return!1;case 1:return uLe(r)||r===138||r===144||r===156||r===145||r===128||YP(r)&&r!==157;case 5:return uLe(r);case 2:return dB(r);case 3:return dLe(r);case 4:return oN(r);case 6:return YP(r)||r===87;case 7:return YP(r);case 8:return r===156;default:return x.assertNever(e)}}))}function UZe(e){switch(e){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}function dLe(e){return e===148}function dB(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return CV(e)}}function uLe(e){return e===134||e===135||e===160||e===130||e===152||e===156||!e6(e)&&!dB(e)}function oQ(e){return Fe(e)?eE(e)??0:e.kind}function HZe(e,t){let r=[];if(e){let i=e.getSourceFile(),o=e.parent,s=i.getLineAndCharacterOfPosition(e.end).line,l=i.getLineAndCharacterOfPosition(t).line;(Lc(o)||Xl(o)&&o.moduleSpecifier)&&e===o.moduleSpecifier&&s===l&&r.push({name:da(132),kind:"keyword",kindModifiers:"",sortText:Wd.GlobalsOrKeywords})}return r}function KZe(e,t){return Fn(e,r=>Bx(r)&&Jw(r,t)?!0:Xm(r)?"quit":!1)}function aQ(e,t,r,i){let o=t&&t!==e,s=o&&!(t.flags&3)?i.getUnionType([e,t]):e,l=JZe(s,r,i);return s.isClass()&&pLe(l)?[]:o?jr(l,d):l;function d(p){return Nn(p.declarations)?gt(p.declarations,h=>h.parent!==r):!0}}function JZe(e,t,r){return e.isUnion()?r.getAllPossiblePropertiesOfTypes(jr(e.types,i=>!(i.flags&402784252||r.isArrayLikeType(i)||r.isTypeInvalidDueToUnionDiscriminant(i,t)||r.typeHasCallOrConstructSignatures(i)||i.isClass()&&pLe(i.getApparentProperties())))):e.getApparentProperties()}function pLe(e){return gt(e,t=>!!(Tf(t)&6))}function sQ(e,t){return e.isUnion()?x.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):x.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function qZe(e,t,r,i){switch(r.kind){case 358:return ri(r.parent,kI);case 1:let o=ri($s(na(r.parent,Yi).statements),kI);if(o&&!_s(o,20,e))return o;break;case 81:if(ri(r.parent,Uo))return Fn(r,ci);break;case 80:{if(eE(r)||Uo(r.parent)&&r.parent.initializer===r)return;if(lQ(r))return Fn(r,kI)}}if(t){if(r.kind===137||Fe(t)&&Uo(t.parent)&&ci(r))return Fn(t,ci);switch(t.kind){case 64:return;case 27:case 20:return lQ(r)&&r.parent.name===r?r.parent.parent:ri(r,kI);case 19:case 28:return ri(t.parent,kI);default:if(kI(r)){if(hs(e,t.getEnd()).line!==hs(e,i).line)return r;let o=ci(t.parent.parent)?dB:dLe;return o(t.kind)||t.kind===42||Fe(t)&&o(eE(t)??0)?t.parent.parent:void 0}return}}}function XZe(e){if(!e)return;let t=e.parent;switch(e.kind){case 19:if(gp(t))return t;break;case 27:case 28:case 80:if(t.kind===171&&gp(t.parent))return t.parent;break}}function fLe(e,t){if(!e)return;if(ji(e)&&gF(e.parent))return t.getTypeArgumentConstraint(e);let r=fLe(e.parent,t);if(r)switch(e.kind){case 171:return t.getTypeOfPropertyOfContextualType(r,e.symbol.escapedName);case 193:case 187:case 192:return r}}function lQ(e){return e.parent&&cF(e.parent)&&kI(e.parent.parent)}function YZe(e,t,r,i){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!r&&Cde(r)&&i===r.getStart(e)+1;case"#":return!!r&&Ki(r)&&!!ad(r);case"<":return!!r&&r.kind===30&&(!dr(r.parent)||mLe(r.parent));case"/":return!!r&&(as(r)?!!O2(r):r.kind===44&&K0(r.parent));case" ":return!!r&&sP(r)&&r.parent.kind===312;default:return x.assertNever(t)}}function mLe({left:e}){return Fl(e)}function $Ze(e,t,r){let i=r.resolveName("self",void 0,111551,!1);if(i&&r.getTypeOfSymbolAtLocation(i,t)===e)return!0;let o=r.resolveName("global",void 0,111551,!1);if(o&&r.getTypeOfSymbolAtLocation(o,t)===e)return!0;let s=r.resolveName("globalThis",void 0,111551,!1);return!!(s&&r.getTypeOfSymbolAtLocation(s,t)===e)}function QZe(e){return!!(e.valueDeclaration&&lu(e.valueDeclaration)&256&&ci(e.valueDeclaration.parent))}function ZZe(e,t){let r=t.getContextualType(e);if(r)return r;let i=Py(e.parent);if(dr(i)&&i.operatorToken.kind===64&&e===i.left)return t.getTypeAtLocation(i);if(ht(i))return t.getContextualType(i)}function _Le(e,t){var r,i,o;let s,l=!1,d=p();return{isKeywordOnlyCompletion:l,keywordCompletion:s,isNewIdentifierLocation:!!(d||s===156),isTopLevelTypeOnly:!!((i=(r=ri(d,Lc))==null?void 0:r.importClause)!=null&&i.isTypeOnly)||!!((o=ri(d,td))!=null&&o.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!d&&gLe(d,e),replacementSpan:eet(d)};function p(){let h=e.parent;if(td(h)){let m=h.getLastToken(t);if(Fe(e)&&m!==e){s=161,l=!0;return}return s=e.kind===156?void 0:156,Ame(h.moduleReference)?h:void 0}if(gLe(h,e)&&yLe(h.parent))return h;if(zg(h)||Xv(h)){if(!h.parent.isTypeOnly&&(e.kind===19||e.kind===102||e.kind===28)&&(s=156),yLe(h))if(e.kind===20||e.kind===80)l=!0,s=161;else return h.parent.parent;return}if(Xl(h)&&e.kind===42||xf(h)&&e.kind===20){l=!0,s=161;return}if(sP(e)&&Yi(h))return s=156,e;if(sP(e)&&Lc(h))return s=156,Ame(h.moduleSpecifier)?h:void 0}}function eet(e){var t;if(!e)return;let r=Fn(e,jm(Lc,td))??e,i=r.getSourceFile();if(IT(r,i))return Iu(r,i);x.assert(r.kind!==102&&r.kind!==276);let o=r.kind===272?hLe((t=r.importClause)==null?void 0:t.namedBindings)??r.moduleSpecifier:r.moduleReference,s={pos:r.getFirstToken().getStart(),end:o.pos};if(IT(s,i))return eb(s)}function hLe(e){var t;return Vr((t=ri(e,zg))==null?void 0:t.elements,r=>{var i;return!r.propertyName&&CI(r.name.text)&&((i=Tc(r.name.pos,e.getSourceFile(),e))==null?void 0:i.kind)!==28})}function gLe(e,t){return Qu(e)&&(e.isTypeOnly||t===e.name&&Jz(t))}function yLe(e){if(!Ame(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(zg(e)){let t=hLe(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function Ame(e){var t;return Fl(e)?!0:!((t=ri(vh(e)?e.expression:e,as))!=null&&t.text)}function tet(e,t){if(!e)return;let r=Fn(e,o=>x0(o)||vLe(o)||Qo(o)?"quit":(Ao(o)||fl(o))&&!G0(o.parent)),i=Fn(t,o=>x0(o)||vLe(o)||Qo(o)?"quit":wi(o));return r||i}function vLe(e){return e.parent&&Os(e.parent)&&(e.parent.body===e||e.kind===39)}function Ime(e,t,r=new Map){return i(e)||i(vd(e.exportSymbol||e,t));function i(o){return!!(o.flags&788968)||t.isUnknownSymbol(o)||!!(o.flags&1536)&&Em(r,ba(o))&&t.getExportsOfModule(o).some(s=>Ime(s,t,r))}}function net(e,t){let r=vd(e,t).declarations;return!!Nn(r)&&oo(r,f7)}function bLe(e,t){if(t.length===0)return!0;let r=!1,i,o=0,s=e.length;for(let l=0;l(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(Rme||{}),Dme=(e=>(e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.TypeOnlyAlias=64]="TypeOnlyAlias",e[e.ObjectLiteralMethod=128]="ObjectLiteralMethod",e[e.Ignore=256]="Ignore",e[e.ComputedPropertyName=512]="ComputedPropertyName",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport",e))(Dme||{}),Cme=(e=>(e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None",e))(Cme||{}),uB=[],Nme=vu(()=>{let e=[];for(let t=83;t<=165;t++)e.push({name:da(t),kind:"keyword",kindModifiers:"",sortText:Wd.GlobalsOrKeywords});return e})}});function Pme(){let e=new Map;function t(r){let i=e.get(r.name);(!i||Ome[i.kind]({name:Qh(S.value,y),kindModifiers:"",kind:"string",sortText:Wd.LocationPriority,replacementSpan:Oq(t)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:m,entries:E}}default:return x.assertNever(e)}}function cet(e,t,r,i,o,s,l,d){if(!i||!as(i))return;let p=TLe(t,i,r,o,s,d);return p&&det(e,i,p,t,o.getTypeChecker(),l)}function det(e,t,r,i,o,s){switch(r.kind){case 0:{let l=Vr(r.paths,d=>d.name===e);return l&&cB(e,SLe(l.extension),l.kind,[af(e)])}case 1:{let l=Vr(r.symbols,d=>d.name===e);return l&&Sme(l,l.name,o,i,t,s)}case 2:return Vr(r.types,l=>l.value===e)?cB(e,"","string",[af(e)]):void 0;default:return x.assertNever(r)}}function ELe(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:o,kind:s,span:l,extension:d})=>({name:o,kind:s,kindModifiers:SLe(d),sortText:Wd.LocationPriority,replacementSpan:l}))}}function SLe(e){switch(e){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return x.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return x.assertNever(e)}}function TLe(e,t,r,i,o,s){let l=i.getTypeChecker(),d=Mme(t.parent);switch(d.kind){case 201:{let S=Mme(d.parent);return S.kind===205?{kind:0,paths:xLe(e,t,i,o,s)}:p(S)}case 303:return Ma(d.parent)&&d.name===t?fet(l,d.parent):h()||h(0);case 212:{let{expression:S,argumentExpression:A}=d;return t===fs(A)?ALe(l.getTypeAtLocation(S)):void 0}case 213:case 214:case 291:if(!Det(t)&&!Op(d)){let S=HO.getArgumentInfoForCompletions(d.kind===291?d.parent:t,r,e,l);return S&&pet(S.invocation,t,S,l)||h(0)}case 272:case 278:case 283:return{kind:0,paths:xLe(e,t,i,o,s)};case 296:let m=h7(l,d.parent.clauses),y=h();return y?{kind:2,types:y.types.filter(S=>!m.hasValue(S.value)),isNewIdentifier:!1}:void 0;default:return h()||h(0)}function p(m){switch(m.kind){case 233:case 183:{let S=Fn(d,A=>A.parent===m);return S?{kind:2,types:dQ(l.getTypeArgumentConstraint(S)),isNewIdentifier:!1}:void 0}case 199:let{indexType:y,objectType:E}=m;return Jw(y,r)?ALe(l.getTypeFromTypeNode(E)):void 0;case 192:{let S=p(Mme(m.parent));if(!S)return;let A=uet(m,d);return S.kind===1?{kind:1,symbols:S.symbols.filter(N=>!Bo(A,N.name)),hasIndexSignature:S.hasIndexSignature}:{kind:2,types:S.types.filter(N=>!Bo(A,N.value)),isNewIdentifier:!1}}default:return}}function h(m=4){let y=dQ(r7(t,l,m));if(y.length)return{kind:2,types:y,isNewIdentifier:!1}}}function Mme(e){switch(e.kind){case 196:return G2(e);case 217:return Py(e);default:return e}}function uet(e,t){return to(e.types,r=>r!==t&&Kv(r)&&Da(r.literal)?r.literal.text:void 0)}function pet(e,t,r,i){let o=!1,s=new Map,l=au(e)?x.checkDefined(Fn(t.parent,M_)):t,d=i.getCandidateSignaturesForStringLiteralCompletions(e,l),p=va(d,h=>{if(!qd(h)&&r.argumentCount>h.parameters.length)return;let m=h.getTypeParameterAtPosition(r.argumentIndex);if(au(e)){let y=i.getTypeOfPropertyOfType(m,fk(l.name));y&&(m=y)}return o=o||!!(m.flags&4),dQ(m,s)});return Nn(p)?{kind:2,types:p,isNewIdentifier:o}:void 0}function ALe(e){return e&&{kind:1,symbols:jr(e.getApparentProperties(),t=>!(t.valueDeclaration&&ou(t.valueDeclaration))),hasIndexSignature:iX(e)}}function fet(e,t){let r=e.getContextualType(t);if(!r)return;let i=e.getContextualType(t,4);return{kind:1,symbols:aQ(r,i,t,e),hasIndexSignature:iX(r)}}function dQ(e,t=new Map){return e?(e=Bq(e),e.isUnion()?va(e.types,r=>dQ(r,t)):e.isStringLiteral()&&!(e.flags&1024)&&Em(t,e.value)?[e]:Xe):Xe}function pM(e,t,r){return{name:e,kind:t,extension:r}}function Lme(e){return pM(e,"directory",void 0)}function ILe(e,t,r){let i=xet(e,t),o=e.length===0?void 0:gd(t,e.length);return r.map(({name:s,kind:l,extension:d})=>s.includes(nl)||s.includes(FL)?{name:s,kind:l,extension:d,span:o}:{name:s,kind:l,extension:d,span:i})}function xLe(e,t,r,i,o){return ILe(t.text,t.getStart(e)+1,met(e,t,r,i,o))}function met(e,t,r,i,o){let s=Pd(t.text),l=as(t)?r.getModeForUsageLocation(e,t):void 0,d=e.path,p=oi(d),h=r.getCompilerOptions(),m=r.getTypeChecker(),y=kme(h,1,e,m,o,l);return Ret(s)||!h.baseUrl&&!h.paths&&(cp(s)||Rne(s))?_et(s,p,h,i,d,y):vet(s,p,l,h,i,y,m)}function kme(e,t,r,i,o,s){return{extensionsToSearch:pm(het(e,i)),referenceKind:t,importingSourceFile:r,endingPreference:o?.importModuleSpecifierEnding,resolutionMode:s}}function _et(e,t,r,i,o,s){return r.rootDirs?yet(r.rootDirs,e,t,s,r,i,o):Wo(BO(e,t,s,i,!0,o).values())}function het(e,t){let r=t?to(t.getAmbientModules(),s=>{let l=s.name.slice(1,-1);if(!(!l.startsWith("*.")||l.includes("/")))return l.slice(1)}):[],i=[...BN(e),r],o=du(e);return qz(o)?ak(e,i):i}function get(e,t,r,i){e=e.map(s=>Bc(ma(cp(s)?s:Yr(t,s))));let o=Wl(e,s=>mm(s,r,t,i)?r.substr(s.length):void 0);return m0([...e.map(s=>Yr(s,o)),r].map(s=>Xb(s)),eT,Vd)}function yet(e,t,r,i,o,s,l){let d=o.project||s.getCurrentDirectory(),p=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()),h=get(e,d,r,p);return m0(va(h,m=>Wo(BO(t,m,i,s,!0,l).values())),(m,y)=>m.name===y.name&&m.kind===y.kind&&m.extension===y.extension)}function BO(e,t,r,i,o,s,l=Pme()){var d;e===void 0&&(e=""),e=Pd(e),Iy(e)||(e=oi(e)),e===""&&(e="."+nl),e=Bc(e);let p=Av(t,e),h=Iy(p)?p:oi(p);if(!o){let S=Pde(h,i);if(S){let N=LN(S,i).typesVersions;if(typeof N=="object"){let D=(d=g3(N))==null?void 0:d.paths;if(D){let w=oi(S),j=p.slice(Bc(w).length);if(DLe(l,j,w,r,i,D))return l}}}}let m=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!l7(i,h))return l;let y=aX(i,h,r.extensionsToSearch,void 0,["./*"]);if(y)for(let S of y){if(S=ma(S),s&&Rg(S,s,t,m)===0)continue;let{name:A,extension:N}=RLe(nc(S),i.getCompilationSettings(),r,!1);l.add(pM(A,"script",N))}let E=s7(i,h);if(E)for(let S of E){let A=nc(ma(S));A!=="@types"&&l.add(Lme(A))}return l}function RLe(e,t,r,i){let o=eS.tryGetRealFileNameForNonJsDeclarationFileName(e);if(o)return{name:o,extension:Wg(o)};if(r.referenceKind===0)return{name:e,extension:Wg(e)};let s=gw({importModuleSpecifierEnding:r.endingPreference},t,r.importingSourceFile).getAllowedEndingsInPreferredOrder(r.resolutionMode);if(i&&(s=s.filter(d=>d!==0&&d!==1)),s[0]===3){if(bc(e,yk))return{name:e,extension:Wg(e)};let d=eS.tryGetJSExtensionForFile(e,t);return d?{name:pE(e,d),extension:d}:{name:e,extension:Wg(e)}}if(!i&&(s[0]===0||s[0]===1)&&bc(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:Eu(e),extension:Wg(e)};let l=eS.tryGetJSExtensionForFile(e,t);return l?{name:pE(e,l),extension:l}:{name:e,extension:Wg(e)}}function DLe(e,t,r,i,o,s){let l=p=>s[p],d=(p,h)=>{let m=vR(p),y=vR(h),E=typeof m=="object"?m.prefix.length:p.length,S=typeof y=="object"?y.prefix.length:h.length;return Zs(S,E)};return CLe(e,!1,t,r,i,o,Vh(s),l,d)}function CLe(e,t,r,i,o,s,l,d,p){let h=[],m;for(let y of l){if(y===".")continue;let E=y.replace(/^\.\//,""),S=d(y);if(S){let A=vR(E);if(!A)continue;let N=typeof A=="object"&&bW(A,r);N&&(m===void 0||p(y,m)===-1)&&(m=y,h=h.filter(w=>!w.matchedPattern)),(typeof A=="string"||m===void 0||p(y,m)!==1)&&h.push({matchedPattern:N,results:bet(E,S,r,i,o,t&&N,s).map(({name:w,kind:j,extension:K})=>pM(w,j,K))})}}return h.forEach(y=>y.results.forEach(E=>e.add(E))),m!==void 0}function vet(e,t,r,i,o,s,l){let{baseUrl:d,paths:p}=i,h=Pme(),m=du(i);if(d){let E=ma(Yr(o.getCurrentDirectory(),d));BO(e,E,s,o,!1,void 0,h)}if(p){let E=s6(i,o);DLe(h,e,E,s,o,p)}let y=PLe(e);for(let E of Tet(e,y,l))h.add(pM(E,"external module name",void 0));if(kLe(o,i,t,y,s,h),qz(m)){let E=!1;if(y===void 0)for(let S of Iet(o,t)){let A=pM(S,"external module name",void 0);h.has(A.name)||(E=!0,h.add(A))}if(!E){let S=A=>{let N=Yr(A,"node_modules");l7(o,N)&&BO(e,N,s,o,!1,void 0,h)};if(y&&X6(i)){let A=S;S=N=>{let D=zc(e);D.shift();let w=D.shift();if(!w)return A(N);if(ao(w,"@")){let Y=D.shift();if(!Y)return A(N);w=Yr(w,Y)}let j=Yr(N,"node_modules",w),K=Yr(j,"package.json");if(dO(o,K)){let B=LN(K,o).exports;if(B){if(typeof B!="object"||B===null)return;let ce=Vh(B),z=D.join("/")+(D.length&&Iy(e)?"/":""),Z=$v(i,r);CLe(h,!0,z,j,s,o,ce,me=>pI(NLe(B[me],Z)),dK);return}}return A(N)}}hm(t,S)}}return Wo(h.values())}function NLe(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!To(e)){for(let r in e)if(r==="default"||t.includes(r)||_w(t,r)){let i=e[r];return NLe(i,t)}}}function PLe(e){return wme(e)?Iy(e)?e:oi(e):void 0}function bet(e,t,r,i,o,s,l){if(!El(e,"*"))return e.includes("*")?Xe:h(e,"script");let d=e.slice(0,e.length-1),p=JG(r,d);if(p===void 0)return e[e.length-2]==="/"?h(d,"directory"):va(t,y=>{var E;return(E=MLe("",i,y,o,s,l))==null?void 0:E.map(({name:S,...A})=>({name:d+S,...A}))});return va(t,m=>MLe(p,i,m,o,s,l));function h(m,y){return ao(m,r)?[{name:Xb(m),kind:y,extension:void 0}]:Xe}}function MLe(e,t,r,i,o,s){if(!s.readDirectory)return;let l=vR(r);if(l===void 0||No(l))return;let d=Av(l.prefix),p=Iy(l.prefix)?d:oi(d),h=Iy(l.prefix)?"":nc(d),m=wme(e),y=m?Iy(e)?e:oi(e):void 0,E=m?Yr(p,h+y):p,S=ma(l.suffix),A=S&&a6("_"+S),N=A?[pE(S,A),S]:[S],D=ma(Yr(t,E)),w=m?D:Bc(D)+h,j=S?N.map(ce=>"**/*"+ce):["./*"],K=to(aX(s,D,i.extensionsToSearch,void 0,j),ce=>{let z=B(ce);if(z){if(wme(z))return Lme(zc(LLe(z))[1]);let{name:Z,extension:me}=RLe(z,s.getCompilationSettings(),i,o);return pM(Z,"script",me)}}),Y=S?Xe:to(s7(s,D),ce=>ce==="node_modules"?void 0:Lme(ce));return[...K,...Y];function B(ce){return Wl(N,z=>{let Z=Eet(ma(ce),w,z);return Z===void 0?void 0:LLe(Z)})}}function Eet(e,t,r){return ao(e,t)&&El(e,r)?e.slice(t.length,e.length-r.length):void 0}function LLe(e){return e[0]===nl?e.slice(1):e}function Tet(e,t,r){let o=r.getAmbientModules().map(s=>Yf(s.name)).filter(s=>ao(s,e)&&!s.includes("*"));if(t!==void 0){let s=Bc(t);return o.map(l=>VC(l,s))}return o}function Aet(e,t,r,i){let o=so(e,t),s=jh(e.text,o.pos),l=s&&Vr(s,A=>t>=A.pos&&t<=A.end);if(!l)return;let d=e.text.slice(l.pos,t),p=wLe.exec(d);if(!p)return;let[,h,m,y]=p,E=oi(e.path),S=m==="path"?BO(y,E,kme(r,0,e),i,!0,e.path):m==="types"?kLe(i,r,E,PLe(y),kme(r,1,e)):x.fail();return ILe(y,l.pos+h.length,Wo(S.values()))}function kLe(e,t,r,i,o,s=Pme()){let l=new Map,d=c7(()=>xP(t,e))||Xe;for(let h of d)p(h);for(let h of sX(r,e)){let m=Yr(oi(h),"node_modules/@types");p(m)}return s;function p(h){if(l7(e,h))for(let m of s7(e,h)){let y=hw(m);if(!(t.types&&!Bo(t.types,y)))if(i===void 0)l.has(y)||(s.add(pM(y,"external module name",void 0)),l.set(y,!0));else{let E=Yr(h,m),S=aU(i,y,My(e));S!==void 0&&BO(S,E,o,e,!1,void 0,s)}}}}function Iet(e,t){if(!e.readFile||!e.fileExists)return Xe;let r=[];for(let i of sX(t,e)){let o=LN(i,e);for(let s of OLe){let l=o[s];if(l)for(let d in l)Ss(l,d)&&!ao(d,"@types/")&&r.push(d)}}return r}function xet(e,t){let r=Math.max(e.lastIndexOf(nl),e.lastIndexOf(FL)),i=r!==-1?r+1:0,o=e.length-i;return o===0||Yp(e.substr(i,o),99)?void 0:gd(t+i,o)}function Ret(e){if(e&&e.length>=2&&e.charCodeAt(0)===46){let t=e.length>=3&&e.charCodeAt(1)===46?2:1,r=e.charCodeAt(t);return r===47||r===92}return!1}function wme(e){return e.includes(nl)}function Det(e){return ia(e.parent)&&Xc(e.parent.arguments)===e&&Fe(e.parent.expression)&&e.parent.expression.escapedText==="require"}var Ome,wLe,OLe,Cet=bt({"src/services/stringCompletions.ts"(){"use strict";Fse(),ai(),Wme(),Ome={directory:0,script:1,"external module name":2},wLe=/^(\/\/\/\s*cet,getStringLiteralCompletions:()=>aet});var Net=bt({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){"use strict";Cet()}}),C1={};xa(C1,{CompletionKind:()=>Cme,CompletionSource:()=>Rme,SortText:()=>Wd,StringCompletions:()=>uQ,SymbolOriginInfoKind:()=>Dme,createCompletionDetails:()=>cB,createCompletionDetailsForSymbol:()=>Sme,getCompletionEntriesFromSymbols:()=>bme,getCompletionEntryDetails:()=>WZe,getCompletionEntrySymbol:()=>zZe,getCompletionsAtPosition:()=>_Ze,getPropertiesForObjectExpression:()=>aQ,moduleSpecifierResolutionCacheAttemptLimit:()=>xme,moduleSpecifierResolutionLimit:()=>cQ});var Wme=bt({"src/services/_namespaces/ts.Completions.ts"(){"use strict";oet(),Net()}});function Fme(e,t,r,i){let o=ket(e,r,i);return(s,l,d)=>{let{directImports:p,indirectUsers:h}=Pet(e,t,o,l,r,i);return{indirectUsers:h,...Met(p,s,l.exportKind,r,d)}}}function Pet(e,t,r,{exportingModuleSymbol:i,exportKind:o},s,l){let d=v1(),p=v1(),h=[],m=!!i.globalExports,y=m?void 0:[];return S(i),{directImports:h,indirectUsers:E()};function E(){if(m)return e;if(i.declarations)for(let K of i.declarations)T0(K)&&t.has(K.getSourceFile().fileName)&&w(K);return y.map(Gn)}function S(K){let Y=j(K);if(Y){for(let B of Y)if(d(B))switch(l&&l.throwIfCancellationRequested(),B.kind){case 213:if(Op(B)){A(B);break}if(!m){let z=B.parent;if(o===2&&z.kind===260){let{name:Z}=z;if(Z.kind===80){h.push(Z);break}}}break;case 80:break;case 271:D(B,B.name,$r(B,32),!1);break;case 272:h.push(B);let ce=B.importClause&&B.importClause.namedBindings;ce&&ce.kind===274?D(B,ce.name,!1,!0):!m&&II(B)&&w(pB(B));break;case 278:B.exportClause?B.exportClause.kind===280?w(pB(B),!0):h.push(B):S(zet(B,s));break;case 205:!m&&B.isTypeOf&&!B.qualifier&&N(B)&&w(B.getSourceFile(),!0),h.push(B);break;default:x.failBadSyntaxKind(B,"Unexpected import kind.")}}}function A(K){let Y=Fn(K,pQ)||K.getSourceFile();w(Y,!!N(K,!0))}function N(K,Y=!1){return Fn(K,B=>Y&&pQ(B)?"quit":Am(B)&>(B.modifiers,JI))}function D(K,Y,B,ce){if(o===2)ce||h.push(K);else if(!m){let z=pB(K);x.assert(z.kind===312||z.kind===267),B||Let(z,Y,s)?w(z,!0):w(z)}}function w(K,Y=!1){if(x.assert(!m),!p(K)||(y.push(K),!Y))return;let ce=s.getMergedSymbol(K.symbol);if(!ce)return;x.assert(!!(ce.flags&1536));let z=j(ce);if(z)for(let Z of z)rg(Z)||w(pB(Z),!0)}function j(K){return r.get(ba(K).toString())}}function Met(e,t,r,i,o){let s=[],l=[];function d(E,S){s.push([E,S])}if(e)for(let E of e)p(E);return{importSearches:s,singleReferences:l};function p(E){if(E.kind===271){Bme(E)&&h(E.name);return}if(E.kind===80){h(E);return}if(E.kind===205){if(E.qualifier){let N=Fp(E.qualifier);N.escapedText===vl(t)&&l.push(N)}else r===2&&l.push(E.argument.literal);return}if(E.moduleSpecifier.kind!==11)return;if(E.kind===278){E.exportClause&&xf(E.exportClause)&&m(E.exportClause);return}let{name:S,namedBindings:A}=E.importClause||{name:void 0,namedBindings:void 0};if(A)switch(A.kind){case 274:h(A.name);break;case 275:(r===0||r===1)&&m(A);break;default:x.assertNever(A)}if(S&&(r===1||r===2)&&(!o||S.escapedText===Yz(t))){let N=i.getSymbolAtLocation(S);d(S,N)}}function h(E){r===2&&(!o||y(E.escapedText))&&d(E,i.getSymbolAtLocation(E))}function m(E){if(E)for(let S of E.elements){let{name:A,propertyName:N}=S;if(y((N||A).escapedText))if(N)l.push(N),(!o||A.escapedText===t.escapedName)&&d(A,i.getSymbolAtLocation(A));else{let D=S.kind===281&&S.propertyName?i.getExportSpecifierLocalTargetSymbol(S):i.getSymbolAtLocation(A);d(A,D)}}}function y(E){return E===t.escapedName||r!==0&&E==="default"}}function Let(e,t,r){let i=r.getSymbolAtLocation(t);return!!FLe(e,o=>{if(!Xl(o))return;let{exportClause:s,moduleSpecifier:l}=o;return!l&&s&&xf(s)&&s.elements.some(d=>r.getExportSpecifierLocalTargetSymbol(d)===i)})}function WLe(e,t,r){var i;let o=[],s=e.getTypeChecker();for(let l of t){let d=r.valueDeclaration;if(d?.kind===312){for(let p of l.referencedFiles)e.getSourceFileFromReference(l,p)===d&&o.push({kind:"reference",referencingFile:l,ref:p});for(let p of l.typeReferenceDirectives){let h=(i=e.getResolvedTypeReferenceDirectives().get(p.fileName,p.resolutionMode||l.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective;h!==void 0&&h.resolvedFileName===d.fileName&&o.push({kind:"reference",referencingFile:l,ref:p})}}zLe(l,(p,h)=>{s.getSymbolAtLocation(h)===r&&o.push(Ks(p)?{kind:"implicit",literal:h,referencingFile:l}:{kind:"import",literal:h})})}return o}function ket(e,t,r){let i=new Map;for(let o of e)r&&r.throwIfCancellationRequested(),zLe(o,(s,l)=>{let d=t.getSymbolAtLocation(l);if(d){let p=ba(d).toString(),h=i.get(p);h||i.set(p,h=[]),h.push(s)}});return i}function FLe(e,t){return gn(e.kind===312?e.statements:e.body.statements,r=>t(r)||pQ(r)&&gn(r.body&&r.body.statements,t))}function zLe(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(let r of e.imports)t(yN(r),r);else FLe(e,r=>{switch(r.kind){case 278:case 272:{let i=r;i.moduleSpecifier&&Da(i.moduleSpecifier)&&t(i,i.moduleSpecifier);break}case 271:{let i=r;Bme(i)&&t(i,i.moduleReference.expression);break}}})}function BLe(e,t,r,i){return i?o():o()||s();function o(){var p;let{parent:h}=e,m=h.parent;if(t.exportSymbol)return h.kind===211?(p=t.declarations)!=null&&p.some(S=>S===h)&&dr(m)?E(m,!1):void 0:l(t.exportSymbol,d(h));{let S=Oet(h,e);if(S&&$r(S,32))return td(S)&&S.moduleReference===e?i?void 0:{kind:0,symbol:r.getSymbolAtLocation(S.name)}:l(t,d(S));if(yh(h))return l(t,0);if(Ll(h))return y(h);if(Ll(m))return y(m);if(dr(h))return E(h,!0);if(dr(m))return E(m,!0);if(zT(h)||lH(h))return l(t,0)}function y(S){if(!S.symbol.parent)return;let A=S.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:S.symbol.parent,exportKind:A}}}function E(S,A){let N;switch(zl(S)){case 1:N=0;break;case 2:N=2;break;default:return}let D=A?r.getSymbolAtLocation(tU(na(S.left,Ns))):t;return D&&l(D,N)}}function s(){if(!Wet(e))return;let h=r.getImmediateAliasedSymbol(t);if(!h||(h=Fet(h,r),h.escapedName==="export="&&(h=wet(h,r),h===void 0)))return;let m=Yz(h);if(m===void 0||m==="default"||m===t.escapedName)return{kind:0,symbol:h}}function l(p,h){let m=zme(p,h,r);return m&&{kind:1,symbol:p,exportInfo:m}}function d(p){return $r(p,2048)?1:0}}function wet(e,t){var r,i;if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);let o=x.checkDefined(e.valueDeclaration);if(Ll(o))return(r=ri(o.expression,b_))==null?void 0:r.symbol;if(dr(o))return(i=ri(o.right,b_))==null?void 0:i.symbol;if(Yi(o))return o.symbol}function Oet(e,t){let r=wi(e)?e:Xa(e)?Lx(e):void 0;return r?e.name!==t||X0(r.parent)?void 0:Ml(r.parent.parent)?r.parent.parent:void 0:e}function Wet(e){let{parent:t}=e;switch(t.kind){case 271:return t.name===e&&Bme(t);case 276:return!t.propertyName;case 273:case 274:return x.assert(t.name===e),!0;case 208:return ir(e)&&R0(t.parent.parent);default:return!1}}function zme(e,t,r){let i=e.parent;if(!i)return;let o=r.getMergedSymbol(i);return eO(o)?{exportingModuleSymbol:o,exportKind:t}:void 0}function Fet(e,t){if(e.declarations)for(let r of e.declarations){if(Kd(r)&&!r.propertyName&&!r.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(r)||e;if(kr(r)&&Yh(r.expression)&&!Ki(r.name))return t.getSymbolAtLocation(r);if(Zu(r)&&dr(r.parent.parent)&&zl(r.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(r.name)}return e}function zet(e,t){return t.getMergedSymbol(pB(e).symbol)}function pB(e){if(e.kind===213)return e.getSourceFile();let{parent:t}=e;return t.kind===312?t:(x.assert(t.kind===268),na(t.parent,pQ))}function pQ(e){return e.kind===267&&e.name.kind===11}function Bme(e){return e.moduleReference.kind===283&&e.moduleReference.expression.kind===11}var Gme,Vme,Bet=bt({"src/services/importTracker.ts"(){"use strict";ai(),Gme=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(Gme||{}),Vme=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(Vme||{})}});function sg(e,t=1){return{kind:t,node:e.name||e,context:Get(e)}}function jme(e){return e&&e.kind===void 0}function Get(e){if(Hd(e))return eA(e);if(e.parent){if(!Hd(e.parent)&&!Ll(e.parent)){if(ir(e)){let r=dr(e.parent)?e.parent:Ns(e.parent)&&dr(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(r&&zl(r)!==0)return eA(r)}if(P_(e.parent)||K0(e.parent))return e.parent.parent;if(OT(e.parent)||H0(e.parent)||nN(e.parent))return e.parent;if(as(e)){let r=O2(e);if(r){let i=Fn(r,o=>Hd(o)||Hi(o)||Bx(o));return Hd(i)?eA(i):i}}let t=Fn(e,Ya);return t?eA(t.parent):void 0}if(e.parent.name===e||Pl(e.parent)||Ll(e.parent)||(yI(e.parent)||Xa(e.parent))&&e.parent.propertyName===e||e.kind===90&&$r(e.parent,2080))return eA(e.parent)}}function eA(e){if(e)switch(e.kind){case 260:return!Uc(e.parent)||e.parent.declarations.length!==1?e:Ml(e.parent.parent)?e.parent.parent:Fx(e.parent.parent)?eA(e.parent.parent):e.parent;case 208:return eA(e.parent.parent);case 276:return e.parent.parent.parent;case 281:case 274:return e.parent.parent;case 273:case 280:return e.parent;case 226:return ed(e.parent)?e.parent:e;case 250:case 249:return{start:e.initializer,end:e.expression};case 303:case 304:return Uy(e.parent)?eA(Fn(e.parent,t=>dr(t)||Fx(t))):e;case 255:return{start:Vr(e.getChildren(e.getSourceFile()),t=>t.kind===109),end:e.caseBlock};default:return e}}function Ume(e,t,r){if(!r)return;let i=jme(r)?mB(r.start,t,r.end):mB(r,t);return i.start!==e.start||i.length!==e.length?{contextSpan:i}:void 0}function Vet(e,t,r,i,o){let s=Wu(i,o),l={use:1},d=N1.getReferencedSymbolsForNode(o,s,e,r,t,l),p=e.getTypeChecker(),h=N1.getAdjustedNode(s,l),m=jet(h)?p.getSymbolAtLocation(h):void 0;return!d||!d.length?void 0:to(d,({definition:y,references:E})=>y&&{definition:p.runWithCancellationToken(t,S=>Ket(y,S,s)),references:E.map(S=>qet(S,m))})}function jet(e){return e.kind===90||!!vN(e)||j2(e)||e.kind===137&&Pl(e.parent)}function Uet(e,t,r,i,o){let s=Wu(i,o),l,d=GLe(e,t,r,s,o);if(s.parent.kind===211||s.parent.kind===208||s.parent.kind===212||s.kind===108)l=d&&[...d];else if(d){let h=AL(d),m=new Map;for(;!h.isEmpty();){let y=h.dequeue();if(!Em(m,rs(y.node)))continue;l=Tn(l,y);let E=GLe(e,t,r,y.node,y.node.pos);E&&h.enqueue(...E)}}let p=e.getTypeChecker();return mn(l,h=>Yet(h,p))}function GLe(e,t,r,i,o){if(i.kind===312)return;let s=e.getTypeChecker();if(i.parent.kind===304){let l=[];return N1.getReferenceEntriesForShorthandPropertyAssignment(i,s,d=>l.push(sg(d))),l}else if(i.kind===108||ku(i.parent)){let l=s.getSymbolAtLocation(i);return l.valueDeclaration&&[sg(l.valueDeclaration)]}else return VLe(o,i,e,r,t,{implementations:!0,use:1})}function Het(e,t,r,i,o,s,l){return mn(jLe(N1.getReferencedSymbolsForNode(o,i,e,r,t,s)),d=>l(d,i,e.getTypeChecker()))}function VLe(e,t,r,i,o,s={},l=new Set(i.map(d=>d.fileName))){return jLe(N1.getReferencedSymbolsForNode(e,t,r,i,o,s,l))}function jLe(e){return e&&va(e,t=>t.references)}function Ket(e,t,r){let i=(()=>{switch(e.type){case 0:{let{symbol:m}=e,{displayParts:y,kind:E}=ULe(m,t,r),S=y.map(D=>D.text).join(""),A=m.declarations&&Xc(m.declarations),N=A?Po(A)||A:r;return{...fB(N),name:S,kind:E,displayParts:y,context:eA(A)}}case 1:{let{node:m}=e;return{...fB(m),name:m.text,kind:"label",displayParts:[ep(m.text,17)]}}case 2:{let{node:m}=e,y=da(m.kind);return{...fB(m),name:y,kind:"keyword",displayParts:[{text:y,kind:"keyword"}]}}case 3:{let{node:m}=e,y=t.getSymbolAtLocation(m),E=y&&Xy.getSymbolDisplayPartsDocumentationAndSymbolKind(t,y,m.getSourceFile(),XT(m),m).displayParts||[af("this")];return{...fB(m),name:"this",kind:"var",displayParts:E}}case 4:{let{node:m}=e;return{...fB(m),name:m.text,kind:"var",displayParts:[ep(uc(m),8)]}}case 5:return{textSpan:eb(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[ep(`"${e.reference.fileName}"`,8)]};default:return x.assertNever(e)}})(),{sourceFile:o,textSpan:s,name:l,kind:d,displayParts:p,context:h}=i;return{containerKind:"",containerName:"",fileName:o.fileName,kind:d,name:l,textSpan:s,displayParts:p,...Ume(s,o,h)}}function fB(e){let t=e.getSourceFile();return{sourceFile:t,textSpan:mB(Ya(e)?e.expression:e,t)}}function ULe(e,t,r){let i=N1.getIntersectingMeaningFromDeclarations(r,e),o=e.declarations&&Xc(e.declarations)||r,{displayParts:s,symbolKind:l}=Xy.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,o.getSourceFile(),o,o,i);return{displayParts:s,kind:l}}function Jet(e,t,r,i,o){return{...fQ(e),...i&&Xet(e,t,r,o)}}function qet(e,t){let r=HLe(e);return t?{...r,isDefinition:e.kind!==0&&KLe(e.node,t)}:r}function HLe(e){let t=fQ(e);if(e.kind===0)return{...t,isWriteAccess:!1};let{kind:r,node:i}=e;return{...t,isWriteAccess:Kme(i),isInString:r===2?!0:void 0}}function fQ(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{let t=e.node.getSourceFile(),r=mB(e.node,t);return{textSpan:r,fileName:t.fileName,...Ume(r,t,e.context)}}}function Xet(e,t,r,i){if(e.kind!==0&&Fe(t)){let{node:o,kind:s}=e,l=o.parent,d=t.text,p=Zu(l);if(p||rO(l)&&l.name===o&&l.dotDotDotToken===void 0){let h={prefixText:d+": "},m={suffixText:": "+d};if(s===3)return h;if(s===4)return m;if(p){let y=l.parent;return Ma(y)&&dr(y.parent)&&Yh(y.parent.left)?h:m}else return h}else if(Qu(l)&&!l.propertyName){let h=Kd(t.parent)?r.getExportSpecifierLocalTargetSymbol(t.parent):r.getSymbolAtLocation(t);return Bo(h.declarations,l)?{prefixText:d+" as "}:Cf}else if(Kd(l)&&!l.propertyName)return t===e.node||r.getSymbolAtLocation(t)===r.getSymbolAtLocation(e.node)?{prefixText:d+" as "}:{suffixText:" as "+d}}if(e.kind!==0&&mp(e.node)&&Ns(e.node.parent)){let o=Uq(i);return{prefixText:o,suffixText:o}}return Cf}function Yet(e,t){let r=fQ(e);if(e.kind!==0){let{node:i}=e;return{...r,...$et(i,t)}}else return{...r,kind:"",displayParts:[]}}function $et(e,t){let r=t.getSymbolAtLocation(Hd(e)&&e.name?e.name:e);return r?ULe(r,t,e):e.kind===210?{kind:"interface",displayParts:[Xd(21),af("object literal"),Xd(22)]}:e.kind===231?{kind:"local class",displayParts:[Xd(21),af("anonymous local class"),Xd(22)]}:{kind:oS(e),displayParts:[]}}function Qet(e){let t=fQ(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};let r=Kme(e.node),i={textSpan:t.textSpan,kind:r?"writtenReference":"reference",isInString:e.kind===2?!0:void 0,...t.contextSpan&&{contextSpan:t.contextSpan}};return{fileName:t.fileName,span:i}}function mB(e,t,r){let i=e.getStart(t),o=(r||e).getEnd();return as(e)&&o-i>2&&(x.assert(r===void 0),i+=1,o-=1),r?.kind===269&&(o=r.getFullStart()),dc(i,o)}function Hme(e){return e.kind===0?e.textSpan:mB(e.node,e.node.getSourceFile())}function Kme(e){let t=vN(e);return!!t&&Zet(t)||e.kind===90||LI(e)}function KLe(e,t){var r;if(!t)return!1;let i=vN(e)||(e.kind===90?e.parent:j2(e)||e.kind===137&&Pl(e.parent)?e.parent.parent:void 0),o=i&&dr(i)?i.left:void 0;return!!(i&&((r=t.declarations)!=null&&r.some(s=>s===i||s===o)))}function Zet(e){if(e.flags&33554432)return!0;switch(e.kind){case 226:case 208:case 263:case 231:case 90:case 266:case 306:case 281:case 273:case 271:case 276:case 264:case 345:case 353:case 291:case 267:case 270:case 274:case 280:case 169:case 304:case 265:case 168:return!0;case 303:return!Uy(e.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!e.body;case 260:case 172:return!!e.initializer||X0(e.parent);case 173:case 171:case 355:case 348:return!1;default:return x.failBadSyntaxKind(e)}}var Jme,qme,Xme,N1,ett=bt({"src/services/findAllReferences.ts"(){"use strict";ai(),Yme(),Jme=(e=>(e[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String",e[e.TripleSlashReference=5]="TripleSlashReference",e))(Jme||{}),qme=(e=>(e[e.Span=0]="Span",e[e.Node=1]="Node",e[e.StringLiteral=2]="StringLiteral",e[e.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",e[e.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",e))(qme||{}),Xme=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(Xme||{}),(e=>{function t(Be,ct,lt,Rt,ae,ke={},st=new Set(Rt.map(G=>G.fileName))){var G,et;if(ct=r(ct,ke),Yi(ct)){let un=xD.getReferenceAtPosition(ct,Be,lt);if(!un?.file)return;let U=lt.getTypeChecker().getMergedSymbol(un.file.symbol);if(U)return h(lt,U,!1,Rt,st);let Me=lt.getFileIncludeReasons();return Me?[{definition:{type:5,reference:un.reference,file:ct},references:o(un.file,Me,lt)||Xe}]:void 0}if(!ke.implementations){let un=y(ct,Rt,ae);if(un)return un}let Tt=lt.getTypeChecker(),He=Tt.getSymbolAtLocation(Pl(ct)&&ct.parent.name||ct);if(!He){if(!ke.implementations&&as(ct)){if($z(ct)){let un=lt.getFileIncludeReasons(),U=(et=(G=lt.getResolvedModuleFromModuleSpecifier(ct))==null?void 0:G.resolvedModule)==null?void 0:et.resolvedFileName,Me=U?lt.getSourceFile(U):void 0;if(Me)return[{definition:{type:4,node:ct},references:o(Me,un,lt)||Xe}]}return Ur(ct,Rt,Tt,ae)}return}if(He.escapedName==="export=")return h(lt,He.parent,!1,Rt,st);let ut=l(He,lt,Rt,ae,ke,st);if(ut&&!(He.flags&33554432))return ut;let Ft=s(ct,He,Tt),hn=Ft&&l(Ft,lt,Rt,ae,ke,st),dn=E(He,ct,Rt,st,Tt,ae,ke);return d(lt,ut,dn,hn)}e.getReferencedSymbolsForNode=t;function r(Be,ct){return ct.use===1?Be=Cq(Be):ct.use===2&&(Be=zz(Be)),Be}e.getAdjustedNode=r;function i(Be,ct,lt,Rt=new Set(lt.map(ae=>ae.fileName))){var ae,ke;let st=(ae=ct.getSourceFile(Be))==null?void 0:ae.symbol;if(st)return((ke=h(ct,st,!1,lt,Rt)[0])==null?void 0:ke.references)||Xe;let G=ct.getFileIncludeReasons(),et=ct.getSourceFile(Be);return et&&G&&o(et,G,ct)||Xe}e.getReferencesForFileName=i;function o(Be,ct,lt){let Rt,ae=ct.get(Be.path)||Xe;for(let ke of ae)if(IE(ke)){let st=lt.getSourceFileByPath(ke.file),G=VP(lt,ke);ZR(G)&&(Rt=Tn(Rt,{kind:0,fileName:st.fileName,textSpan:eb(G)}))}return Rt}function s(Be,ct,lt){if(Be.parent&&Fk(Be.parent)){let Rt=lt.getAliasedSymbol(ct),ae=lt.getMergedSymbol(Rt);if(Rt!==ae)return ae}}function l(Be,ct,lt,Rt,ae,ke){let st=Be.flags&1536&&Be.declarations&&Vr(Be.declarations,Yi);if(!st)return;let G=Be.exports.get("export="),et=h(ct,Be,!!G,lt,ke);if(!G||!ke.has(st.fileName))return et;let Tt=ct.getTypeChecker();return Be=vd(G,Tt),d(ct,et,E(Be,void 0,lt,ke,Tt,Rt,ae))}function d(Be,...ct){let lt;for(let Rt of ct)if(!(!Rt||!Rt.length)){if(!lt){lt=Rt;continue}for(let ae of Rt){if(!ae.definition||ae.definition.type!==0){lt.push(ae);continue}let ke=ae.definition.symbol,st=Kl(lt,et=>!!et.definition&&et.definition.type===0&&et.definition.symbol===ke);if(st===-1){lt.push(ae);continue}let G=lt[st];lt[st]={definition:G.definition,references:G.references.concat(ae.references).sort((et,Tt)=>{let He=p(Be,et),ut=p(Be,Tt);if(He!==ut)return Zs(He,ut);let Ft=Hme(et),hn=Hme(Tt);return Ft.start!==hn.start?Zs(Ft.start,hn.start):Zs(Ft.length,hn.length)})}}}return lt}function p(Be,ct){let lt=ct.kind===0?Be.getSourceFile(ct.fileName):ct.node.getSourceFile();return Be.getSourceFiles().indexOf(lt)}function h(Be,ct,lt,Rt,ae){x.assert(!!ct.valueDeclaration);let ke=to(WLe(Be,Rt,ct),G=>{if(G.kind==="import"){let et=G.literal.parent;if(Kv(et)){let Tt=na(et.parent,rg);if(lt&&!Tt.qualifier)return}return sg(G.literal)}else if(G.kind==="implicit"){let et=G.literal.text!==Gv&&bP(G.referencingFile,Tt=>Tt.transformFlags&2?ig(Tt)||OT(Tt)||J0(Tt)?Tt:void 0:"skip")||G.referencingFile.statements[0]||G.referencingFile;return sg(et)}else return{kind:0,fileName:G.referencingFile.fileName,textSpan:eb(G.ref)}});if(ct.declarations)for(let G of ct.declarations)switch(G.kind){case 312:break;case 267:ae.has(G.getSourceFile().fileName)&&ke.push(sg(G.name));break;default:x.assert(!!(ct.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}let st=ct.exports.get("export=");if(st?.declarations)for(let G of st.declarations){let et=G.getSourceFile();if(ae.has(et.fileName)){let Tt=dr(G)&&kr(G.left)?G.left.expression:Ll(G)?x.checkDefined(_s(G,95,et)):Po(G)||G;ke.push(sg(Tt))}}return ke.length?[{definition:{type:0,symbol:ct},references:ke}]:Xe}function m(Be){return Be.kind===148&&PT(Be.parent)&&Be.parent.operator===148}function y(Be,ct,lt){if(YP(Be.kind))return Be.kind===116&&e1(Be.parent)||Be.kind===148&&!m(Be)?void 0:Ce(ct,Be.kind,lt,Be.kind===148?m:void 0);if(Jx(Be.parent)&&Be.parent.name===Be)return he(ct,lt);if(qI(Be)&&Al(Be.parent))return[{definition:{type:2,node:Be},references:[sg(Be)]}];if(Kw(Be)){let Rt=Lz(Be.parent,Be.text);return Rt&&fe(Rt.parent,Rt)}else if(bq(Be))return fe(Be.parent,Be);if(sD(Be))return Qn(Be,ct,lt);if(Be.kind===108)return Li(Be)}function E(Be,ct,lt,Rt,ae,ke,st){let G=ct&&N(Be,ct,ae,!kn(st))||Be,et=ct?yi(ct,G):7,Tt=[],He=new j(lt,Rt,ct?A(ct):0,ae,ke,et,st,Tt),ut=!kn(st)||!G.declarations?void 0:Vr(G.declarations,Kd);if(ut)Et(ut.name,G,ut,He.createSearch(ct,Be,void 0),He,!0,!0);else if(ct&&ct.kind===90&&G.escapedName==="default"&&G.parent)_t(ct,G,He),K(ct,G,{exportingModuleSymbol:G.parent,exportKind:1},He);else{let Ft=He.createSearch(ct,G,void 0,{allSearchSymbols:ct?on(G,ct,ae,st.use===2,!!st.providePrefixAndSuffixTextForRename,!!st.implementations):[G]});S(G,He,Ft)}return Tt}function S(Be,ct,lt){let Rt=me(Be);if(Rt)ve(Rt,Rt.getSourceFile(),lt,ct,!(Yi(Rt)&&!Bo(ct.sourceFiles,Rt)));else for(let ae of ct.sourceFiles)ct.cancellationToken.throwIfCancellationRequested(),z(ae,lt,ct)}function A(Be){switch(Be.kind){case 176:case 137:return 1;case 80:if(ci(Be.parent))return x.assert(Be.parent.name===Be),2;default:return 0}}function N(Be,ct,lt,Rt){let{parent:ae}=ct;return Kd(ae)&&Rt?be(ct,Be,ae,lt):Wl(Be.declarations,ke=>{if(!ke.parent){if(Be.flags&33554432)return;x.fail(`Unexpected symbol at ${x.formatSyntaxKind(ct.kind)}: ${x.formatSymbol(Be)}`)}return gp(ke.parent)&&Hv(ke.parent.parent)?lt.getPropertyOfType(lt.getTypeFromTypeNode(ke.parent.parent),Be.name):void 0})}let D;(Be=>{Be[Be.None=0]="None",Be[Be.Constructor=1]="Constructor",Be[Be.Class=2]="Class"})(D||(D={}));function w(Be){if(!(Be.flags&33555968))return;let ct=Be.declarations&&Vr(Be.declarations,lt=>!Yi(lt)&&!ql(lt));return ct&&ct.symbol}class j{constructor(ct,lt,Rt,ae,ke,st,G,et){this.sourceFiles=ct,this.sourceFilesSet=lt,this.specialSearchKind=Rt,this.checker=ae,this.cancellationToken=ke,this.searchMeaning=st,this.options=G,this.result=et,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=v1(),this.markSeenReExportRHS=v1(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(ct){return this.sourceFilesSet.has(ct.fileName)}getImportSearches(ct,lt){return this.importTracker||(this.importTracker=Fme(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(ct,lt,this.options.use===2)}createSearch(ct,lt,Rt,ae={}){let{text:ke=Yf(vl(mR(lt)||w(lt)||lt)),allSearchSymbols:st=[lt]}=ae,G=pl(ke),et=this.options.implementations&&ct?vn(ct,lt,this.checker):void 0;return{symbol:lt,comingFrom:Rt,text:ke,escapedText:G,parents:et,allSearchSymbols:st,includes:Tt=>Bo(st,Tt)}}referenceAdder(ct){let lt=ba(ct),Rt=this.symbolIdToReferences[lt];return Rt||(Rt=this.symbolIdToReferences[lt]=[],this.result.push({definition:{type:0,symbol:ct},references:Rt})),(ae,ke)=>Rt.push(sg(ae,ke))}addStringOrCommentReference(ct,lt){this.result.push({definition:void 0,references:[{kind:0,fileName:ct,textSpan:lt}]})}markSearchedSymbols(ct,lt){let Rt=rs(ct),ae=this.sourceFileToSeenSymbols[Rt]||(this.sourceFileToSeenSymbols[Rt]=new Set),ke=!1;for(let st of lt)ke=Kb(ae,ba(st))||ke;return ke}}function K(Be,ct,lt,Rt){let{importSearches:ae,singleReferences:ke,indirectUsers:st}=Rt.getImportSearches(ct,lt);if(ke.length){let G=Rt.referenceAdder(ct);for(let et of ke)B(et,Rt)&&G(et)}for(let[G,et]of ae)Ge(G.getSourceFile(),Rt.createSearch(G,et,1),Rt);if(st.length){let G;switch(lt.exportKind){case 0:G=Rt.createSearch(Be,ct,1);break;case 1:G=Rt.options.use===2?void 0:Rt.createSearch(Be,ct,1,{text:"default"});break;case 2:break}if(G)for(let et of st)z(et,G,Rt)}}function Y(Be,ct,lt,Rt,ae,ke,st,G){let et=Fme(Be,new Set(Be.map(Ft=>Ft.fileName)),ct,lt),{importSearches:Tt,indirectUsers:He,singleReferences:ut}=et(Rt,{exportKind:st?1:0,exportingModuleSymbol:ae},!1);for(let[Ft]of Tt)G(Ft);for(let Ft of ut)Fe(Ft)&&rg(Ft.parent)&&G(Ft);for(let Ft of He)for(let hn of pe(Ft,st?"default":ke)){let dn=ct.getSymbolAtLocation(hn),un=gt(dn?.declarations,U=>!!ri(U,Ll));Fe(hn)&&!yI(hn.parent)&&(dn===Rt||un)&&G(hn)}}e.eachExportReference=Y;function B(Be,ct){return Ae(Be,ct)?ct.options.use!==2?!0:Fe(Be)?!(yI(Be.parent)&&Be.escapedText==="default"):!1:!1}function ce(Be,ct){if(Be.declarations)for(let lt of Be.declarations){let Rt=lt.getSourceFile();Ge(Rt,ct.createSearch(lt,Be,0),ct,ct.includesSourceFile(Rt))}}function z(Be,ct,lt){gY(Be).get(ct.escapedText)!==void 0&&Ge(Be,ct,lt)}function Z(Be,ct){return Uy(Be.parent.parent)?ct.getPropertySymbolOfDestructuringAssignment(Be):void 0}function me(Be){let{declarations:ct,flags:lt,parent:Rt,valueDeclaration:ae}=Be;if(ae&&(ae.kind===218||ae.kind===231))return ae;if(!ct)return;if(lt&8196){let G=Vr(ct,et=>fp(et,2)||ou(et));return G?dE(G,263):void 0}if(ct.some(rO))return;let ke=Rt&&!(Be.flags&262144);if(ke&&!(eO(Rt)&&!Rt.globalExports))return;let st;for(let G of ct){let et=XT(G);if(st&&st!==et||!et||et.kind===312&&!wp(et))return;if(st=et,Ps(st)){let Tt;for(;Tt=yj(st);)st=Tt}}return ke?st.getSourceFile():st}function ge(Be,ct,lt,Rt=lt){return q(Be,ct,lt,()=>!0,Rt)||!1}e.isSymbolReferencedInFile=ge;function q(Be,ct,lt,Rt,ae=lt){let ke=dp(Be.parent,Be.parent.parent)?Va(ct.getSymbolsOfParameterPropertyDeclaration(Be.parent,Be.text)):ct.getSymbolAtLocation(Be);if(ke)for(let st of pe(lt,ke.name,ae)){if(!Fe(st)||st===Be||st.escapedText!==Be.escapedText)continue;let G=ct.getSymbolAtLocation(st);if(G===ke||ct.getShorthandAssignmentValueSymbol(st.parent)===ke||Kd(st.parent)&&be(st,G,st.parent,ct)===ke){let et=Rt(st);if(et)return et}}}e.eachSymbolReferenceInFile=q;function J(Be,ct){return jr(pe(ct,Be),ae=>!!vN(ae)).reduce((ae,ke)=>{let st=Rt(ke);return!gt(ae.declarationNames)||st===ae.depth?(ae.declarationNames.push(ke),ae.depth=st):stHe===ae)&&Rt(st,et))return!0}return!1}e.someSignatureUsage=re;function pe(Be,ct,lt=Be){return to(xe(Be,ct,lt),Rt=>{let ae=Wu(Be,Rt);return ae===Be?void 0:ae})}function xe(Be,ct,lt=Be){let Rt=[];if(!ct||!ct.length)return Rt;let ae=Be.text,ke=ae.length,st=ct.length,G=ae.indexOf(ct,lt.pos);for(;G>=0&&!(G>lt.end);){let et=G+st;(G===0||!$b(ae.charCodeAt(G-1),99))&&(et===ke||!$b(ae.charCodeAt(et),99))&&Rt.push(G),G=ae.indexOf(ct,G+st+1)}return Rt}function fe(Be,ct){let lt=Be.getSourceFile(),Rt=ct.text,ae=to(pe(lt,Rt,Be),ke=>ke===ct||Kw(ke)&&Lz(ke,Rt)===ct?sg(ke):void 0);return[{definition:{type:1,node:ct},references:ae}]}function ne(Be,ct){switch(Be.kind){case 81:if(gE(Be.parent))return!0;case 80:return Be.text.length===ct.length;case 15:case 11:{let lt=Be;return(kz(lt)||Aq(Be)||$ce(Be)||ia(Be.parent)&&gT(Be.parent)&&Be.parent.arguments[1]===Be)&<.text.length===ct.length}case 9:return kz(Be)&&Be.text.length===ct.length;case 90:return ct.length===7;default:return!1}}function he(Be,ct){let lt=va(Be,Rt=>(ct.throwIfCancellationRequested(),to(pe(Rt,"meta",Rt),ae=>{let ke=ae.parent;if(Jx(ke))return sg(ke)})));return lt.length?[{definition:{type:2,node:lt[0].node},references:lt}]:void 0}function Ce(Be,ct,lt,Rt){let ae=va(Be,ke=>(lt.throwIfCancellationRequested(),to(pe(ke,da(ct),ke),st=>{if(st.kind===ct&&(!Rt||Rt(st)))return sg(st)})));return ae.length?[{definition:{type:2,node:ae[0].node},references:ae}]:void 0}function Ge(Be,ct,lt,Rt=!0){return lt.cancellationToken.throwIfCancellationRequested(),ve(Be,Be,ct,lt,Rt)}function ve(Be,ct,lt,Rt,ae){if(Rt.markSearchedSymbols(ct,lt.allSearchSymbols))for(let ke of xe(ct,lt.text,Be))De(ct,ke,lt,Rt,ae)}function Ae(Be,ct){return!!(qT(Be)&ct.searchMeaning)}function De(Be,ct,lt,Rt,ae){let ke=Wu(Be,ct);if(!ne(ke,lt.text)){!Rt.options.implementations&&(Rt.options.findInStrings&&y1(Be,ct)||Rt.options.findInComments&&ude(Be,ct))&&Rt.addStringOrCommentReference(Be.fileName,gd(ct,lt.text.length));return}if(!Ae(ke,Rt))return;let st=Rt.checker.getSymbolAtLocation(ke);if(!st)return;let G=ke.parent;if(Qu(G)&&G.propertyName===ke)return;if(Kd(G)){x.assert(ke.kind===80),Et(ke,st,G,lt,Rt,ae);return}if(rN(G)&&G.isNameFirst&&G.typeExpression&&FT(G.typeExpression.type)&&G.typeExpression.type.jsDocPropertyTags&&Nn(G.typeExpression.type.jsDocPropertyTags)){Le(G.typeExpression.type.jsDocPropertyTags,ke,lt,Rt);return}let et=si(lt,st,ke,Rt);if(!et){Wt(st,lt,Rt);return}switch(Rt.specialSearchKind){case 0:ae&&_t(ke,et,Rt);break;case 1:Je(ke,Be,lt,Rt);break;case 2:pt(ke,lt,Rt);break;default:x.assertNever(Rt.specialSearchKind)}ir(ke)&&Xa(ke.parent)&&R0(ke.parent.parent.parent)&&(st=ke.parent.symbol,!st)||tt(ke,st,lt,Rt)}function Le(Be,ct,lt,Rt){let ae=Rt.referenceAdder(lt.symbol);_t(ct,lt.symbol,Rt),gn(Be,ke=>{Su(ke.name)&&ae(ke.name.left)})}function Et(Be,ct,lt,Rt,ae,ke,st){x.assert(!st||!!ae.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");let{parent:G,propertyName:et,name:Tt}=lt,He=G.parent,ut=be(Be,ct,lt,ae.checker);if(!st&&!Rt.includes(ut))return;if(et?Be===et?(He.moduleSpecifier||Ft(),ke&&ae.options.use!==2&&ae.markSeenReExportRHS(Tt)&&_t(Tt,x.checkDefined(lt.symbol),ae)):ae.markSeenReExportRHS(Be)&&Ft():ae.options.use===2&&Tt.escapedText==="default"||Ft(),!kn(ae.options)||st){let dn=Be.escapedText==="default"||lt.name.escapedText==="default"?1:0,un=x.checkDefined(lt.symbol),U=zme(un,dn,ae.checker);U&&K(Be,un,U,ae)}if(Rt.comingFrom!==1&&He.moduleSpecifier&&!et&&!kn(ae.options)){let hn=ae.checker.getExportSpecifierLocalTargetSymbol(lt);hn&&ce(hn,ae)}function Ft(){ke&&_t(Be,ut,ae)}}function be(Be,ct,lt,Rt){return ze(Be,lt)&&Rt.getExportSpecifierLocalTargetSymbol(lt)||ct}function ze(Be,ct){let{parent:lt,propertyName:Rt,name:ae}=ct;return x.assert(Rt===Be||ae===Be),Rt?Rt===Be:!lt.parent.moduleSpecifier}function tt(Be,ct,lt,Rt){let ae=BLe(Be,ct,Rt.checker,lt.comingFrom===1);if(!ae)return;let{symbol:ke}=ae;ae.kind===0?kn(Rt.options)||ce(ke,Rt):K(Be,ke,ae.exportInfo,Rt)}function Wt({flags:Be,valueDeclaration:ct},lt,Rt){let ae=Rt.checker.getShorthandAssignmentValueSymbol(ct),ke=ct&&Po(ct);!(Be&33554432)&&ke&<.includes(ae)&&_t(ke,ae,Rt)}function _t(Be,ct,lt){let{kind:Rt,symbol:ae}="kind"in ct?ct:{kind:void 0,symbol:ct};if(lt.options.use===2&&Be.kind===90)return;let ke=lt.referenceAdder(ae);lt.options.implementations?Xt(Be,ke,lt):ke(Be,Rt)}function Je(Be,ct,lt,Rt){JP(Be)&&_t(Be,lt.symbol,Rt);let ae=()=>Rt.referenceAdder(lt.symbol);if(ci(Be.parent))x.assert(Be.kind===90||Be.parent.name===Be),Zt(lt.symbol,ct,ae());else{let ke=Ba(Be);ke&&(Dn(ke,ae()),pn(ke,Rt))}}function pt(Be,ct,lt){_t(Be,ct.symbol,lt);let Rt=Be.parent;if(lt.options.use===2||!ci(Rt))return;x.assert(Rt.name===Be);let ae=lt.referenceAdder(ct.symbol);for(let ke of Rt.members)bI(ke)&&ra(ke)&&ke.body&&ke.body.forEachChild(function st(G){G.kind===110?ae(G):!$o(G)&&!ci(G)&&G.forEachChild(st)})}function Zt(Be,ct,lt){let Rt=en(Be);if(Rt&&Rt.declarations)for(let ae of Rt.declarations){let ke=_s(ae,137,ct);x.assert(ae.kind===176&&!!ke),lt(ke)}Be.exports&&Be.exports.forEach(ae=>{let ke=ae.valueDeclaration;if(ke&&ke.kind===174){let st=ke.body;st&&ua(st,110,G=>{JP(G)&<(G)})}})}function en(Be){return Be.members&&Be.members.get("__constructor")}function Dn(Be,ct){let lt=en(Be.symbol);if(lt&<.declarations)for(let Rt of lt.declarations){x.assert(Rt.kind===176);let ae=Rt.body;ae&&ua(ae,108,ke=>{gq(ke)&&ct(ke)})}}function Kn(Be){return!!en(Be.symbol)}function pn(Be,ct){if(Kn(Be))return;let lt=Be.symbol,Rt=ct.createSearch(void 0,lt,void 0);S(lt,ct,Rt)}function Xt(Be,ct,lt){if(kg(Be)&&$i(Be.parent)){ct(Be);return}if(Be.kind!==80)return;Be.parent.kind===304&&Io(Be,lt.checker,ct);let Rt=Kt(Be);if(Rt){ct(Rt);return}let ae=Fn(Be,G=>!Su(G.parent)&&!ji(G.parent)&&!lT(G.parent)),ke=ae.parent;if(hF(ke)&&ke.type===ae&<.markSeenContainingTypeReference(ke))if(Mv(ke))st(ke.initializer);else if($o(ke)&&ke.body){let G=ke.body;G.kind===241?I0(G,et=>{et.expression&&st(et.expression)}):st(G)}else cT(ke)&&st(ke.expression);function st(G){hi(G)&&ct(G)}}function Kt(Be){return Fe(Be)||kr(Be)?Kt(Be.parent):zy(Be)?ri(Be.parent.parent,jm(ci,pu)):void 0}function hi(Be){switch(Be.kind){case 217:return hi(Be.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function uo(Be,ct,lt,Rt){if(Be===ct)return!0;let ae=ba(Be)+","+ba(ct),ke=lt.get(ae);if(ke!==void 0)return ke;lt.set(ae,!1);let st=!!Be.declarations&&Be.declarations.some(G=>bN(G).some(et=>{let Tt=Rt.getTypeAtLocation(et);return!!Tt&&!!Tt.symbol&&uo(Tt.symbol,ct,lt,Rt)}));return lt.set(ae,st),st}function Li(Be){let ct=S2(Be,!1);if(!ct)return;let lt=256;switch(ct.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:lt&=Wv(ct),ct=ct.parent;break;default:return}let Rt=ct.getSourceFile(),ae=to(pe(Rt,"super",ct),ke=>{if(ke.kind!==108)return;let st=S2(ke,!1);return st&&ra(st)===!!lt&&st.parent.symbol===ct.symbol?sg(ke):void 0});return[{definition:{type:0,symbol:ct.symbol},references:ae}]}function So(Be){return Be.kind===80&&Be.parent.kind===169&&Be.parent.name===Be}function Qn(Be,ct,lt){let Rt=Lu(Be,!1,!1),ae=256;switch(Rt.kind){case 174:case 173:if(bm(Rt)){ae&=Wv(Rt),Rt=Rt.parent;break}case 172:case 171:case 176:case 177:case 178:ae&=Wv(Rt),Rt=Rt.parent;break;case 312:if(oc(Rt)||So(Be))return;case 262:case 218:break;default:return}let ke=va(Rt.kind===312?ct:[Rt.getSourceFile()],G=>(lt.throwIfCancellationRequested(),pe(G,"this",Yi(Rt)?G:Rt).filter(et=>{if(!sD(et))return!1;let Tt=Lu(et,!1,!1);if(!b_(Tt))return!1;switch(Rt.kind){case 218:case 262:return Rt.symbol===Tt.symbol;case 174:case 173:return bm(Rt)&&Rt.symbol===Tt.symbol;case 231:case 263:case 210:return Tt.parent&&b_(Tt.parent)&&Rt.symbol===Tt.parent.symbol&&ra(Tt)===!!ae;case 312:return Tt.kind===312&&!oc(Tt)&&!So(et)}}))).map(G=>sg(G));return[{definition:{type:3,node:Wl(ke,G=>Ao(G.node.parent)?G.node:void 0)||Be},references:ke}]}function Ur(Be,ct,lt,Rt){let ae=Fz(Be,lt),ke=va(ct,st=>(Rt.throwIfCancellationRequested(),to(pe(st,Be.text),G=>{if(as(G)&&G.text===Be.text)if(ae){let et=Fz(G,lt);if(ae!==lt.getStringType()&&(ae===et||Er(G,lt)))return sg(G,2)}else return HI(G)&&!IT(G,st)?void 0:sg(G,2)})));return[{definition:{type:4,node:Be},references:ke}]}function Er(Be,ct){if(_p(Be.parent))return ct.getPropertyOfType(ct.getTypeAtLocation(Be.parent.parent),Be.text)}function on(Be,ct,lt,Rt,ae,ke){let st=[];return Ye(Be,ct,lt,Rt,!(Rt&&ae),(G,et,Tt)=>{Tt&&In(Be)!==In(Tt)&&(Tt=void 0),st.push(Tt||et||G)},()=>!ke),st}function Ye(Be,ct,lt,Rt,ae,ke,st){let G=NO(ct);if(G){let dn=lt.getShorthandAssignmentValueSymbol(ct.parent);if(dn&&Rt)return ke(dn,void 0,void 0,3);let un=lt.getContextualType(G.parent),U=un&&Wl(J7(G,lt,un,!0),ie=>Ft(ie,4));if(U)return U;let Me=Z(ct,lt),Nt=Me&&ke(Me,void 0,void 0,4);if(Nt)return Nt;let k=dn&&ke(dn,void 0,void 0,3);if(k)return k}let et=s(ct,Be,lt);if(et){let dn=ke(et,void 0,void 0,1);if(dn)return dn}let Tt=Ft(Be);if(Tt)return Tt;if(Be.valueDeclaration&&dp(Be.valueDeclaration,Be.valueDeclaration.parent)){let dn=lt.getSymbolsOfParameterPropertyDeclaration(na(Be.valueDeclaration,Ao),Be.name);return x.assert(dn.length===2&&!!(dn[0].flags&1)&&!!(dn[1].flags&4)),Ft(Be.flags&1?dn[1]:dn[0])}let He=cl(Be,281);if(!Rt||He&&!He.propertyName){let dn=He&<.getExportSpecifierLocalTargetSymbol(He);if(dn){let un=ke(dn,void 0,void 0,1);if(un)return un}}if(!Rt){let dn;return ae?dn=rO(ct.parent)?Qz(lt,ct.parent):void 0:dn=hn(Be,lt),dn&&Ft(dn,4)}if(x.assert(Rt),ae){let dn=hn(Be,lt);return dn&&Ft(dn,4)}function Ft(dn,un){return Wl(lt.getRootSymbols(dn),U=>ke(dn,U,void 0,un)||(U.parent&&U.parent.flags&96&&st(U)?Ot(U.parent,U.name,lt,Me=>ke(dn,U,Me,un)):void 0))}function hn(dn,un){let U=cl(dn,208);if(U&&rO(U))return Qz(un,U)}}function Ot(Be,ct,lt,Rt){let ae=new Map;return ke(Be);function ke(st){if(!(!(st.flags&96)||!Em(ae,ba(st))))return Wl(st.declarations,G=>Wl(bN(G),et=>{let Tt=lt.getTypeAtLocation(et),He=Tt&&Tt.symbol&<.getPropertyOfType(Tt,ct);return Tt&&He&&(Wl(lt.getRootSymbols(He),Rt)||ke(Tt.symbol))}))}}function In(Be){return Be.valueDeclaration?!!(lu(Be.valueDeclaration)&256):!1}function si(Be,ct,lt,Rt){let{checker:ae}=Rt;return Ye(ct,lt,ae,!1,Rt.options.use!==2||!!Rt.options.providePrefixAndSuffixTextForRename,(ke,st,G,et)=>(G&&In(ct)!==In(G)&&(G=void 0),Be.includes(G||st||ke)?{symbol:st&&!(Tl(ke)&6)?st:ke,kind:et}:void 0),ke=>!(Be.parents&&!Be.parents.some(st=>uo(ke.parent,st,Rt.inheritsFromCache,ae))))}function yi(Be,ct){let lt=qT(Be),{declarations:Rt}=ct;if(Rt){let ae;do{ae=lt;for(let ke of Rt){let st=jw(ke);st<&&(lt|=st)}}while(lt!==ae)}return lt}e.getIntersectingMeaningFromDeclarations=yi;function $i(Be){return Be.flags&33554432?!(pu(Be)||Tm(Be)):qx(Be)?Mv(Be):ws(Be)?!!Be.body:ci(Be)||s2(Be)}function Io(Be,ct,lt){let Rt=ct.getSymbolAtLocation(Be),ae=ct.getShorthandAssignmentValueSymbol(Rt.valueDeclaration);if(ae)for(let ke of ae.getDeclarations())jw(ke)&1&<(ke)}e.getReferenceEntriesForShorthandPropertyAssignment=Io;function ua(Be,ct,lt){Go(Be,Rt=>{Rt.kind===ct&<(Rt),ua(Rt,ct,lt)})}function Ba(Be){return Uj(Mz(Be).parent)}function vn(Be,ct,lt){let Rt=aD(Be)?Be.parent:void 0,ae=Rt&<.getTypeAtLocation(Rt.expression),ke=to(ae&&(ae.isUnionOrIntersection()?ae.types:ae.symbol===ct.parent?void 0:[ae]),st=>st.symbol&&st.symbol.flags&96?st.symbol:void 0);return ke.length===0?void 0:ke}function kn(Be){return Be.use===2&&Be.providePrefixAndSuffixTextForRename}})(N1||(N1={}))}}),Ms={};xa(Ms,{Core:()=>N1,DefinitionKind:()=>Jme,EntryKind:()=>qme,ExportKind:()=>Gme,FindReferencesUse:()=>Xme,ImportExport:()=>Vme,createImportTracker:()=>Fme,findModuleReferences:()=>WLe,findReferenceOrRenameEntries:()=>Het,findReferencedSymbols:()=>Vet,getContextNode:()=>eA,getExportInfo:()=>zme,getImplementationsAtPosition:()=>Uet,getImportOrExportSymbol:()=>BLe,getReferenceEntriesForNode:()=>VLe,getTextSpanOfEntry:()=>Hme,isContextWithStartAndEndNode:()=>jme,isDeclarationOfSymbol:()=>KLe,isWriteAccessForReference:()=>Kme,nodeEntry:()=>sg,toContextSpan:()=>Ume,toHighlightSpan:()=>Qet,toReferenceEntry:()=>HLe,toRenameLocation:()=>Jet});var Yme=bt({"src/services/_namespaces/ts.FindAllReferences.ts"(){"use strict";Bet(),ett()}});function JLe(e,t,r,i,o){var s;let l=XLe(t,r,e),d=l&&[ptt(l.reference.fileName,l.fileName,l.unverified)]||Xe;if(l?.file)return d;let p=Wu(t,r);if(p===t)return;let{parent:h}=p,m=e.getTypeChecker();if(p.kind===164||Fe(p)&&U4(h)&&h.tagName===p)return ntt(m,p)||Xe;if(Kw(p)){let D=Lz(p.parent,p.text);return D?[$me(m,D,"label",p.text,void 0)]:void 0}switch(p.kind){case 107:let D=Fn(p.parent,j=>Al(j)?"quit":ws(j));return D?[_B(m,D)]:void 0;case 90:if(!mP(p.parent))break;case 84:let w=Fn(p.parent,uP);if(w)return[utt(w,t)];break}if(p.kind===135){let D=Fn(p,j=>ws(j));return D&>(D.modifiers,j=>j.kind===134)?[_B(m,D)]:void 0}if(p.kind===127){let D=Fn(p,j=>ws(j));return D&&D.asteriskToken?[_B(m,D)]:void 0}if(qI(p)&&Al(p.parent)){let D=p.parent.parent,{symbol:w,failedAliasResolution:j}=mQ(D,m,o),K=jr(D.members,Al),Y=w?m.symbolToString(w,D):"",B=p.getSourceFile();return mn(K,ce=>{let{pos:z}=R_(ce);return z=Na(B.text,z),$me(m,ce,"constructor","static {}",Y,!1,j,{start:z,length:6})})}let{symbol:y,failedAliasResolution:E}=mQ(p,m,o),S=p;if(i&&E){let D=gn([p,...y?.declarations||Xe],j=>Fn(j,Vre)),w=D&&eR(D);w&&({symbol:y,failedAliasResolution:E}=mQ(w,m,o),S=w)}if(!y&&$z(S)){let D=(s=e.getResolvedModuleFromModuleSpecifier(S))==null?void 0:s.resolvedModule;if(D)return[{name:S.text,fileName:D.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:gd(0,0),failedAliasResolution:E,isAmbient:Ed(D.resolvedFileName),unverified:S!==p}]}if(!y)return Eo(d,ltt(p,m));if(i&&oo(y.declarations,D=>D.getSourceFile().fileName===t.fileName))return;let A=mtt(m,p);if(A&&!(au(p.parent)&&_tt(A))){let D=_B(m,A,E);if(m.getRootSymbols(y).some(w=>ttt(w,A)))return[D];{let w=fM(m,y,p,E,A)||Xe;return p.kind===108?[D,...w]:[...w,D]}}if(p.parent.kind===304){let D=m.getShorthandAssignmentValueSymbol(y.valueDeclaration),w=D?.declarations?D.declarations.map(j=>VO(j,m,D,p,!1,E)):Xe;return Eo(w,qLe(m,p))}if(rc(p)&&Xa(h)&&tm(h.parent)&&p===(h.propertyName||h.name)){let D=nO(p),w=m.getTypeAtLocation(h.parent);return D===void 0?Xe:va(w.isUnion()?w.types:[w],j=>{let K=j.getProperty(D);return K&&fM(m,K,p)})}let N=qLe(m,p);return Eo(d,N.length?N:fM(m,y,p,E))}function ttt(e,t){var r;return e===t.symbol||e===t.symbol.parent||Mc(t.parent)||!E0(t.parent)&&e===((r=ri(t.parent,b_))==null?void 0:r.symbol)}function qLe(e,t){let r=NO(t);if(r){let i=r&&e.getContextualType(r.parent);if(i)return va(J7(r,e,i,!1),o=>fM(e,o,t))}return Xe}function ntt(e,t){let r=Fn(t,$c);if(!(r&&r.name))return;let i=Fn(r,ci);if(!i)return;let o=S_(i);if(!o)return;let s=fs(o.expression),l=Zc(s)?s.symbol:e.getSymbolAtLocation(s);if(!l)return;let d=Vi(Ux(r.name)),p=pc(r)?e.getPropertyOfType(e.getTypeOfSymbol(l),d):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(l),d);if(p)return fM(e,p,t)}function XLe(e,t,r){var i,o;let s=mM(e.referencedFiles,t);if(s){let p=r.getSourceFileFromReference(e,s);return p&&{reference:s,fileName:p.fileName,file:p,unverified:!1}}let l=mM(e.typeReferenceDirectives,t);if(l){let p=(i=r.getResolvedTypeReferenceDirectives().get(l.fileName,l.resolutionMode||e.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective,h=p&&r.getSourceFile(p.resolvedFileName);return h&&{reference:l,fileName:h.fileName,file:h,unverified:!1}}let d=mM(e.libReferenceDirectives,t);if(d){let p=r.getLibFileFromReference(d);return p&&{reference:d,fileName:p.fileName,file:p,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){let p=lD(e,t),h;if($z(p)&&Yc(p.text)&&(h=r.getResolvedModuleFromModuleSpecifier(p))){let m=(o=h.resolvedModule)==null?void 0:o.resolvedFileName,y=m||Av(oi(e.fileName),p.text);return{file:r.getSourceFile(y),fileName:y,reference:{pos:p.getStart(),end:p.getEnd(),fileName:p.text},unverified:!m}}}}function rtt(e,t){let r=t.symbol.name;if(!Zme.has(r))return!1;let i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.target.symbol}function YLe(e,t){if(!t.aliasSymbol)return!1;let r=t.aliasSymbol.name;if(!Zme.has(r))return!1;let i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.aliasSymbol}function itt(e,t,r,i){var o,s;if(Lr(t)&4&&rtt(e,t))return GO(e.getTypeArguments(t)[0],e,r,i);if(YLe(e,t)&&t.aliasTypeArguments)return GO(t.aliasTypeArguments[0],e,r,i);if(Lr(t)&32&&t.target&&YLe(e,t.target)){let l=(s=(o=t.aliasSymbol)==null?void 0:o.declarations)==null?void 0:s[0];if(l&&Tm(l)&&If(l.type)&&l.type.typeArguments)return GO(e.getTypeAtLocation(l.type.typeArguments[0]),e,r,i)}return[]}function ott(e,t,r){let i=Wu(t,r);if(i===t)return;if(Jx(i.parent)&&i.parent.name===i)return GO(e.getTypeAtLocation(i.parent),e,i.parent,!1);let{symbol:o,failedAliasResolution:s}=mQ(i,e,!1);if(!o)return;let l=e.getTypeOfSymbolAtLocation(o,i),d=att(o,l,e),p=d&&GO(d,e,i,s),[h,m]=p&&p.length!==0?[d,p]:[l,GO(l,e,i,s)];return m.length?[...itt(e,h,i,s),...m]:!(o.flags&111551)&&o.flags&788968?fM(e,vd(o,e),i,s):void 0}function GO(e,t,r,i){return va(e.isUnion()&&!(e.flags&32)?e.types:[e],o=>o.symbol&&fM(t,o.symbol,r,i))}function att(e,t,r){if(t.symbol===e||e.valueDeclaration&&t.symbol&&wi(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){let i=t.getCallSignatures();if(i.length===1)return r.getReturnTypeOfSignature(Va(i))}}function stt(e,t,r){let i=JLe(e,t,r);if(!i||i.length===0)return;let o=mM(t.referencedFiles,r)||mM(t.typeReferenceDirectives,r)||mM(t.libReferenceDirectives,r);if(o)return{definitions:i,textSpan:eb(o)};let s=Wu(t,r),l=gd(s.getStart(),s.getWidth());return{definitions:i,textSpan:l}}function ltt(e,t){return to(t.getIndexInfosAtLocation(e),r=>r.declaration&&_B(t,r.declaration))}function mQ(e,t,r){let i=t.getSymbolAtLocation(e),o=!1;if(i?.declarations&&i.flags&2097152&&!r&&ctt(e,i.declarations[0])){let s=t.getAliasedSymbol(i);if(s.declarations)return{symbol:s};o=!0}return{symbol:i,failedAliasResolution:o}}function ctt(e,t){return e.kind!==80?!1:e.parent===t?!0:t.kind!==274}function dtt(e){if(!gN(e))return!1;let t=Fn(e,r=>Mc(r)?!0:gN(r)?!1:"quit");return!!t&&zl(t)===5}function fM(e,t,r,i,o){let s=jr(t.declarations,y=>y!==o),l=jr(s,y=>!dtt(y)),d=gt(l)?l:s;return p()||h()||mn(d,y=>VO(y,e,t,r,!1,i));function p(){if(t.flags&32&&!(t.flags&19)&&(JP(r)||r.kind===137)){let y=Vr(s,ci)||x.fail("Expected declaration to have at least one class-like declaration");return m(y.members,!0)}}function h(){return yq(r)||Iq(r)?m(s,!1):void 0}function m(y,E){if(!y)return;let S=y.filter(E?Pl:$o),A=S.filter(N=>!!N.body);return S.length?A.length!==0?A.map(N=>VO(N,e,t,r)):[VO(Ja(S),e,t,r,!1,i)]:void 0}}function VO(e,t,r,i,o,s){let l=t.symbolToString(r),d=Xy.getSymbolKind(t,r,i),p=r.parent?t.symbolToString(r.parent,i):"";return $me(t,e,d,l,p,o,s)}function $me(e,t,r,i,o,s,l,d){let p=t.getSourceFile();if(!d){let h=Po(t)||t;d=Iu(h,p)}return{fileName:p.fileName,textSpan:d,kind:r,name:i,containerKind:void 0,containerName:o,...Ms.toContextSpan(d,p,Ms.getContextNode(t)),isLocal:!Qme(e,t),isAmbient:!!(t.flags&33554432),unverified:s,failedAliasResolution:l}}function utt(e,t){let r=Ms.getContextNode(e),i=Iu(jme(r)?r.start:r,t);return{fileName:t.fileName,textSpan:i,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...Ms.toContextSpan(i,t,r),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function Qme(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(Mv(t.parent)&&t.parent.initializer===t)return Qme(e,t.parent);switch(t.kind){case 172:case 177:case 178:case 174:if(fp(t,2))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return Qme(e,t.parent);default:return!1}}function _B(e,t,r){return VO(t,e,t.symbol,t,!1,r)}function mM(e,t){return Vr(e,r=>KL(r,t))}function ptt(e,t,r){return{fileName:t,textSpan:dc(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:r}}function ftt(e){let t=Fn(e,i=>!aD(i)),r=t?.parent;return r&&E0(r)&&BF(r)===t?r:void 0}function mtt(e,t){let r=ftt(t),i=r&&e.getResolvedSignature(r);return ri(i&&i.declaration,o=>$o(o)&&!hh(o))}function _tt(e){switch(e.kind){case 176:case 185:case 180:return!0;default:return!1}}var Zme,htt=bt({"src/services/goToDefinition.ts"(){"use strict";ai(),Yme(),Zme=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"])}}),xD={};xa(xD,{createDefinitionInfo:()=>VO,findReferenceInPosition:()=>mM,getDefinitionAndBoundSpan:()=>stt,getDefinitionAtPosition:()=>JLe,getReferenceAtPosition:()=>XLe,getTypeDefinitionAtPosition:()=>ott});var gtt=bt({"src/services/_namespaces/ts.GoToDefinition.ts"(){"use strict";htt()}});function ytt(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function vtt(e){return e.includeInlayParameterNameHints==="literals"}function $Le(e){return e.interactiveInlayHints===!0}function btt(e){let{file:t,program:r,span:i,cancellationToken:o,preferences:s}=e,l=t.text,d=r.getCompilerOptions(),p=of(t,s),h=r.getTypeChecker(),m=[];return y(t),m;function y(fe){if(!(!fe||fe.getFullWidth()===0)){switch(fe.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:o.throwIfCancellationRequested()}if(ZW(i,fe.pos,fe.getFullWidth())&&!(ji(fe)&&!zy(fe)))return s.includeInlayVariableTypeHints&&wi(fe)||s.includeInlayPropertyDeclarationTypeHints&&Uo(fe)?j(fe):s.includeInlayEnumMemberValueHints&&Y0(fe)?D(fe):ytt(s)&&(ia(fe)||j0(fe))?K(fe):(s.includeInlayFunctionParameterTypeHints&&ws(fe)&&z6(fe)&&me(fe),s.includeInlayFunctionLikeReturnTypeHints&&E(fe)&&z(fe)),Go(fe,y)}}function E(fe){return Os(fe)||Ps(fe)||Ec(fe)||Ul(fe)||Qp(fe)}function S(fe,ne,he,Ce){let Ge=`${Ce?"...":""}${fe}`,ve;$Le(s)?(ve=[xe(Ge,ne),{text:":"}],Ge=""):Ge+=":",m.push({text:Ge,position:he,kind:"Parameter",whitespaceAfter:!0,displayParts:ve})}function A(fe,ne){m.push({text:typeof fe=="string"?`: ${fe}`:"",displayParts:typeof fe=="string"?void 0:[{text:": "},...fe],position:ne,kind:"Type",whitespaceBefore:!0})}function N(fe,ne){m.push({text:`= ${fe}`,position:ne,kind:"Enum",whitespaceBefore:!0})}function D(fe){if(fe.initializer)return;let ne=h.getConstantValue(fe);ne!==void 0&&N(ne.toString(),fe.end)}function w(fe){return fe.symbol&&fe.symbol.flags&1536}function j(fe){if(!fe.initializer||Qo(fe.name)||wi(fe)&&!pe(fe)||yd(fe))return;let he=h.getTypeAtLocation(fe);if(w(he))return;let Ce=J(he);if(Ce){let Ge=typeof Ce=="string"?Ce:Ce.map(Ae=>Ae.text).join("");if(s.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&qb(fe.name.getText(),Ge))return;A(Ce,fe.name.end)}}function K(fe){let ne=fe.arguments;if(!ne||!ne.length)return;let he=[],Ce=h.getResolvedSignatureForSignatureHelp(fe,he);if(!Ce||!he.length)return;let Ge=0;for(let ve of ne){let Ae=fs(ve);if(vtt(s)&&!ce(Ae)){Ge++;continue}let De=0;if(Jm(Ae)){let Et=h.getTypeAtLocation(Ae.expression);if(h.isTupleType(Et)){let{elementFlags:be,fixedLength:ze}=Et.target;if(ze===0)continue;let tt=Kl(be,_t=>!(_t&1));(tt<0?ze:tt)>0&&(De=tt<0?ze:tt)}}let Le=h.getParameterIdentifierInfoAtPosition(Ce,Ge);if(Ge=Ge+(De||1),Le){let{parameter:Et,parameterName:be,isRestParameter:ze}=Le;if(!(s.includeInlayParameterNameHintsWhenArgumentMatchesName||!Y(Ae,be))&&!ze)continue;let Wt=Vi(be);if(B(Ae,Wt))continue;S(Wt,Et,ve.getStart(),ze)}}}function Y(fe,ne){return Fe(fe)?fe.text===ne:kr(fe)?fe.name.text===ne:!1}function B(fe,ne){if(!Yp(ne,d.target,ik(t.scriptKind)))return!1;let he=jh(l,fe.pos);if(!he?.length)return!1;let Ce=QLe(ne);return gt(he,Ge=>Ce.test(l.substring(Ge.pos,Ge.end)))}function ce(fe){switch(fe.kind){case 224:{let ne=fe.operand;return b0(ne)||Fe(ne)&&qN(ne.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{let ne=fe.escapedText;return re(ne)||qN(ne)}}return b0(fe)}function z(fe){if(Os(fe)&&!_s(fe,21,t)||$f(fe)||!fe.body)return;let he=h.getSignatureFromDeclaration(fe);if(!he)return;let Ce=h.getReturnTypeOfSignature(he);if(w(Ce))return;let Ge=J(Ce);Ge&&A(Ge,Z(fe))}function Z(fe){let ne=_s(fe,22,t);return ne?ne.end:fe.parameters.end}function me(fe){let ne=h.getSignatureFromDeclaration(fe);if(ne)for(let he=0;he{let Ge=h.typeToTypeNode(fe,void 0,71286784);x.assertIsDefined(Ge,"should always get typenode"),he.writeNode(4,Ge,t,Ce)})}function J(fe){if(!$Le(s))return q(fe);let he=h.typeToTypeNode(fe,void 0,71286784);x.assertIsDefined(he,"should always get typenode");let Ce=[];return Ge(he),Ce;function Ge(Le){var Et,be;if(!Le)return;let ze=da(Le.kind);if(ze){Ce.push({text:ze});return}if(b0(Le)){Ce.push({text:De(Le)});return}switch(Le.kind){case 80:x.assertNode(Le,Fe);let tt=gr(Le),Wt=Le.symbol&&Le.symbol.declarations&&Le.symbol.declarations.length&&Po(Le.symbol.declarations[0]);Wt?Ce.push(xe(tt,Wt)):Ce.push({text:tt});break;case 166:x.assertNode(Le,Su),Ge(Le.left),Ce.push({text:"."}),Ge(Le.right);break;case 182:x.assertNode(Le,Lk),Le.assertsModifier&&Ce.push({text:"asserts "}),Ge(Le.parameterName),Le.type&&(Ce.push({text:" is "}),Ge(Le.type));break;case 183:x.assertNode(Le,If),Ge(Le.typeName),Le.typeArguments&&(Ce.push({text:"<"}),Ae(Le.typeArguments,", "),Ce.push({text:">"}));break;case 168:x.assertNode(Le,fl),Le.modifiers&&Ae(Le.modifiers," "),Ge(Le.name),Le.constraint&&(Ce.push({text:" extends "}),Ge(Le.constraint)),Le.default&&(Ce.push({text:" = "}),Ge(Le.default));break;case 169:x.assertNode(Le,Ao),Le.modifiers&&Ae(Le.modifiers," "),Le.dotDotDotToken&&Ce.push({text:"..."}),Ge(Le.name),Le.questionToken&&Ce.push({text:"?"}),Le.type&&(Ce.push({text:": "}),Ge(Le.type));break;case 185:x.assertNode(Le,RR),Ce.push({text:"new "}),ve(Le),Ce.push({text:" => "}),Ge(Le.type);break;case 186:x.assertNode(Le,YI),Ce.push({text:"typeof "}),Ge(Le.exprName),Le.typeArguments&&(Ce.push({text:"<"}),Ae(Le.typeArguments,", "),Ce.push({text:">"}));break;case 187:x.assertNode(Le,gp),Ce.push({text:"{"}),Le.members.length&&(Ce.push({text:" "}),Ae(Le.members,"; "),Ce.push({text:" "})),Ce.push({text:"}"});break;case 188:x.assertNode(Le,kk),Ge(Le.elementType),Ce.push({text:"[]"});break;case 189:x.assertNode(Le,$I),Ce.push({text:"["}),Ae(Le.elements,", "),Ce.push({text:"]"});break;case 202:x.assertNode(Le,DR),Le.dotDotDotToken&&Ce.push({text:"..."}),Ge(Le.name),Le.questionToken&&Ce.push({text:"?"}),Ce.push({text:": "}),Ge(Le.type);break;case 190:x.assertNode(Le,O4),Ge(Le.type),Ce.push({text:"?"});break;case 191:x.assertNode(Le,W4),Ce.push({text:"..."}),Ge(Le.type);break;case 192:x.assertNode(Le,Hv),Ae(Le.types," | ");break;case 193:x.assertNode(Le,QI),Ae(Le.types," & ");break;case 194:x.assertNode(Le,ZI),Ge(Le.checkType),Ce.push({text:" extends "}),Ge(Le.extendsType),Ce.push({text:" ? "}),Ge(Le.trueType),Ce.push({text:" : "}),Ge(Le.falseType);break;case 195:x.assertNode(Le,CT),Ce.push({text:"infer "}),Ge(Le.typeParameter);break;case 196:x.assertNode(Le,NT),Ce.push({text:"("}),Ge(Le.type),Ce.push({text:")"});break;case 198:x.assertNode(Le,PT),Ce.push({text:`${da(Le.operator)} `}),Ge(Le.type);break;case 199:x.assertNode(Le,MT),Ge(Le.objectType),Ce.push({text:"["}),Ge(Le.indexType),Ce.push({text:"]"});break;case 200:x.assertNode(Le,CR),Ce.push({text:"{ "}),Le.readonlyToken&&(Le.readonlyToken.kind===40?Ce.push({text:"+"}):Le.readonlyToken.kind===41&&Ce.push({text:"-"}),Ce.push({text:"readonly "})),Ce.push({text:"["}),Ge(Le.typeParameter),Le.nameType&&(Ce.push({text:" as "}),Ge(Le.nameType)),Ce.push({text:"]"}),Le.questionToken&&(Le.questionToken.kind===40?Ce.push({text:"+"}):Le.questionToken.kind===41&&Ce.push({text:"-"}),Ce.push({text:"?"})),Ce.push({text:": "}),Le.type&&Ge(Le.type),Ce.push({text:"; }"});break;case 201:x.assertNode(Le,Kv),Ge(Le.literal);break;case 184:x.assertNode(Le,hh),ve(Le),Ce.push({text:" => "}),Ge(Le.type);break;case 205:x.assertNode(Le,rg),Le.isTypeOf&&Ce.push({text:"typeof "}),Ce.push({text:"import("}),Ge(Le.argument),Le.assertions&&(Ce.push({text:", { assert: "}),Ae(Le.assertions.assertClause.elements,", "),Ce.push({text:" }"})),Ce.push({text:")"}),Le.qualifier&&(Ce.push({text:"."}),Ge(Le.qualifier)),Le.typeArguments&&(Ce.push({text:"<"}),Ae(Le.typeArguments,", "),Ce.push({text:">"}));break;case 171:x.assertNode(Le,_p),(Et=Le.modifiers)!=null&&Et.length&&(Ae(Le.modifiers," "),Ce.push({text:" "})),Ge(Le.name),Le.questionToken&&Ce.push({text:"?"}),Le.type&&(Ce.push({text:": "}),Ge(Le.type));break;case 181:x.assertNode(Le,G0),Ce.push({text:"["}),Ae(Le.parameters,", "),Ce.push({text:"]"}),Le.type&&(Ce.push({text:": "}),Ge(Le.type));break;case 173:x.assertNode(Le,_h),(be=Le.modifiers)!=null&&be.length&&(Ae(Le.modifiers," "),Ce.push({text:" "})),Ge(Le.name),Le.questionToken&&Ce.push({text:"?"}),ve(Le),Le.type&&(Ce.push({text:": "}),Ge(Le.type));break;case 179:x.assertNode(Le,XI),ve(Le),Le.type&&(Ce.push({text:": "}),Ge(Le.type));break;case 207:x.assertNode(Le,V0),Ce.push({text:"["}),Ae(Le.elements,", "),Ce.push({text:"]"});break;case 206:x.assertNode(Le,tm),Ce.push({text:"{"}),Le.elements.length&&(Ce.push({text:" "}),Ae(Le.elements,", "),Ce.push({text:" "})),Ce.push({text:"}"});break;case 208:x.assertNode(Le,Xa),Ge(Le.name);break;case 224:x.assertNode(Le,qv),Ce.push({text:da(Le.operator)}),Ge(Le.operand);break;case 203:x.assertNode(Le,dae),Ge(Le.head),Le.templateSpans.forEach(Ge);break;case 16:x.assertNode(Le,KI),Ce.push({text:De(Le)});break;case 204:x.assertNode(Le,eH),Ge(Le.type),Ge(Le.literal);break;case 17:x.assertNode(Le,YU),Ce.push({text:De(Le)});break;case 18:x.assertNode(Le,M4),Ce.push({text:De(Le)});break;case 197:x.assertNode(Le,wk),Ce.push({text:"this"});break;default:x.failBadSyntaxKind(Le)}}function ve(Le){Le.typeParameters&&(Ce.push({text:"<"}),Ae(Le.typeParameters,", "),Ce.push({text:">"})),Ce.push({text:"("}),Ae(Le.parameters,", "),Ce.push({text:")"})}function Ae(Le,Et){Le.forEach((be,ze)=>{ze>0&&Ce.push({text:Et}),Ge(be)})}function De(Le){switch(Le.kind){case 11:return p===0?`'${Qh(Le.text,39)}'`:`"${Qh(Le.text,34)}"`;case 16:case 17:case 18:{let Et=Le.rawText??Lj(Qh(Le.text,96));switch(Le.kind){case 16:return"`"+Et+"${";case 17:return"}"+Et+"${";case 18:return"}"+Et+"`"}}}return Le.text}}function re(fe){return fe==="undefined"}function pe(fe){if((P0(fe)||wi(fe)&&Kx(fe))&&fe.initializer){let ne=fs(fe.initializer);return!(ce(ne)||j0(ne)||Ma(ne)||cT(ne))}return!0}function xe(fe,ne){let he=ne.getSourceFile();return{text:fe,span:Iu(ne,he),file:he.fileName}}}var QLe,Ett=bt({"src/services/inlayHints.ts"(){"use strict";ai(),QLe=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`)}}),_Q={};xa(_Q,{provideInlayHints:()=>btt});var Stt=bt({"src/services/_namespaces/ts.InlayHints.ts"(){"use strict";Ett()}});function Ttt(e,t){let r=[];return qq(e,i=>{for(let o of Itt(i)){let s=Xm(o)&&o.tags&&Vr(o.tags,d=>d.kind===334&&(d.tagName.escapedText==="inheritDoc"||d.tagName.escapedText==="inheritdoc"));if(o.comment===void 0&&!s||Xm(o)&&i.kind!==353&&i.kind!==345&&o.tags&&o.tags.some(d=>d.kind===353||d.kind===345)&&!o.tags.some(d=>d.kind===348||d.kind===349))continue;let l=o.comment?RD(o.comment,t):[];s&&s.comment&&(l=l.concat(RD(s.comment,t))),Bo(r,l,Att)||r.push(l)}}),pm(DG(r,[pD()]))}function Att(e,t){return bL(e,t,(r,i)=>r.kind===i.kind&&r.text===i.text)}function Itt(e){switch(e.kind){case 348:case 355:return[e];case 345:case 353:return[e,e.parent];case 330:if(wR(e.parent))return[e.parent.parent];default:return gj(e)}}function xtt(e,t){let r=[];return qq(e,i=>{let o=rE(i);if(!(o.some(s=>s.kind===353||s.kind===345)&&!o.some(s=>s.kind===348||s.kind===349)))for(let s of o)r.push({name:s.tagName.text,text:t2e(s,t)}),r.push(...ZLe(e2e(s),t))}),r}function ZLe(e,t){return va(e,r=>Eo([{name:r.tagName.text,text:t2e(r,t)}],ZLe(e2e(r),t)))}function e2e(e){return rN(e)&&e.isNameFirst&&e.typeExpression&&FT(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function RD(e,t){return typeof e=="string"?[af(e)]:va(e,r=>r.kind===328?[af(r.text)]:Sde(r,t))}function t2e(e,t){let{comment:r,kind:i}=e,o=Rtt(i);switch(i){case 356:let d=e.typeExpression;return d?s(d):r===void 0?void 0:RD(r,t);case 336:return s(e.class);case 335:return s(e.class);case 352:let p=e,h=[];if(p.constraint&&h.push(af(p.constraint.getText())),Nn(p.typeParameters)){Nn(h)&&h.push(kl());let y=p.typeParameters[p.typeParameters.length-1];gn(p.typeParameters,E=>{h.push(o(E.getText())),y!==E&&h.push(Xd(28),kl())})}return r&&h.push(kl(),...RD(r,t)),h;case 351:case 357:return s(e.typeExpression);case 353:case 345:case 355:case 348:case 354:let{name:m}=e;return m?s(m):r===void 0?void 0:RD(r,t);default:return r===void 0?void 0:RD(r,t)}function s(d){return l(d.getText())}function l(d){return r?d.match(/^https?$/)?[af(d),...RD(r,t)]:[o(d),kl(),...RD(r,t)]:[af(d)]}}function Rtt(e){switch(e){case 348:return gde;case 355:return yde;case 352:return bde;case 353:case 345:return vde;default:return af}}function Dtt(){return r2e||(r2e=mn(t_e,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:C1.SortText.LocationPriority})))}function Ctt(){return i2e||(i2e=mn(t_e,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:C1.SortText.LocationPriority})))}function n2e(e){return{name:e,kind:"",kindModifiers:"",displayParts:[af(e)],documentation:Xe,tags:void 0,codeActions:void 0}}function Ntt(e){if(!Fe(e.name))return Xe;let t=e.name.text,r=e.parent,i=r.parent;return $o(i)?to(i.parameters,o=>{if(!Fe(o.name))return;let s=o.name.text;if(!(r.tags.some(l=>l!==e&&Ym(l)&&Fe(l.name)&&l.name.escapedText===s)||t!==void 0&&!ao(s,t)))return{name:s,kind:"parameter",kindModifiers:"",sortText:C1.SortText.LocationPriority}}):[]}function Ptt(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[af(e)],documentation:Xe,tags:void 0,codeActions:void 0}}function Mtt(e,t,r,i){let o=so(t,r),s=Fn(o,Xm);if(s&&(s.comment!==void 0||Nn(s.tags)))return;let l=o.getStart(t);if(!s&&l0;if(N&&!j){let K=D+e+S+" * ",Y=l===r?e+S:"";return{newText:K+e+N+S+w+Y,caretOffset:K.length}}return{newText:D+w,caretOffset:3}}function Ltt(e,t){let{text:r}=e,i=rm(t,e),o=i;for(;o<=t&&y_(r.charCodeAt(o));o++);return r.slice(i,o)}function ktt(e,t,r,i){return e.map(({name:o,dotDotDotToken:s},l)=>{let d=o.kind===80?o.text:"param"+l;return`${r} * @param ${t?s?"{...any} ":"{any} ":""}${d}${i}`}).join("")}function wtt(e,t){return`${e} * @returns${t}`}function Ott(e,t){return Pre(e,r=>e_e(r,t))}function e_e(e,t){switch(e.kind){case 262:case 218:case 174:case 176:case 173:case 219:let r=e;return{commentOwner:e,parameters:r.parameters,hasReturn:hB(r,t)};case 303:return e_e(e.initializer,t);case 263:case 264:case 266:case 306:case 265:return{commentOwner:e};case 171:{let o=e;return o.type&&hh(o.type)?{commentOwner:e,parameters:o.type.parameters,hasReturn:hB(o.type,t)}:{commentOwner:e}}case 243:{let s=e.declarationList.declarations,l=s.length===1&&s[0].initializer?Wtt(s[0].initializer):void 0;return l?{commentOwner:e,parameters:l.parameters,hasReturn:hB(l,t)}:{commentOwner:e}}case 312:return"quit";case 267:return e.parent.kind===267?void 0:{commentOwner:e};case 244:return e_e(e.expression,t);case 226:{let o=e;return zl(o)===0?"quit":$o(o.right)?{commentOwner:e,parameters:o.right.parameters,hasReturn:hB(o.right,t)}:{commentOwner:e}}case 172:let i=e.initializer;if(i&&(Ps(i)||Os(i)))return{commentOwner:e,parameters:i.parameters,hasReturn:hB(i,t)}}}function hB(e,t){return!!t?.generateReturnInDocTemplate&&(hh(e)||Os(e)&&ht(e.body)||ws(e)&&e.body&&Ko(e.body)&&!!I0(e.body,r=>r))}function Wtt(e){for(;e.kind===217;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return Vr(e.members,Pl)}}var t_e,r2e,i2e,o2e,Ftt=bt({"src/services/jsDoc.ts"(){"use strict";ai(),t_e=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","link","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],o2e=n2e}}),PE={};xa(PE,{getDocCommentTemplateAtPosition:()=>Mtt,getJSDocParameterNameCompletionDetails:()=>Ptt,getJSDocParameterNameCompletions:()=>Ntt,getJSDocTagCompletionDetails:()=>n2e,getJSDocTagCompletions:()=>Ctt,getJSDocTagNameCompletionDetails:()=>o2e,getJSDocTagNameCompletions:()=>Dtt,getJsDocCommentsFromDeclarations:()=>Ttt,getJsDocTagsFromDeclarations:()=>xtt});var ztt=bt({"src/services/_namespaces/ts.JsDoc.ts"(){"use strict";Ftt()}});function Btt(e,t,r,i,o,s){let l=ur.ChangeTracker.fromContext({host:r,formatContext:t,preferences:o}),d=s==="SortAndCombine"||s==="All",p=d,h=s==="RemoveUnused"||s==="All",m=hQ(e,e.statements.filter(Lc)),y=rnt(o,d?()=>l2e(m,o)===2:void 0),E=A=>(h&&(A=Vtt(A,e,i)),p&&(A=a2e(A,y,e,o)),d&&(A=vy(A,(N,D)=>a_e(N,D,y))),A);m.forEach(A=>S(A,E)),s!=="RemoveUnused"&&int(e).forEach(A=>S(A,N=>n_e(N,y,o)));for(let A of e.statements.filter(Md)){if(!A.body)continue;if(hQ(e,A.body.statements.filter(Lc)).forEach(D=>S(D,E)),s!=="RemoveUnused"){let D=A.body.statements.filter(Xl);S(D,w=>n_e(w,y,o))}}return l.getChanges();function S(A,N){if(Nn(A)===0)return;lr(A[0],1024);let D=p?BC(A,K=>gB(K.moduleSpecifier)):[A],w=d?vy(D,(K,Y)=>i_e(K[0].moduleSpecifier,Y[0].moduleSpecifier,y)):D,j=va(w,K=>gB(K[0].moduleSpecifier)||K[0].moduleSpecifier===void 0?N(K):K);if(j.length===0)l.deleteNodes(e,A,{leadingTriviaOption:ur.LeadingTriviaOption.Exclude,trailingTriviaOption:ur.TrailingTriviaOption.Include},!0);else{let K={leadingTriviaOption:ur.LeadingTriviaOption.Exclude,trailingTriviaOption:ur.TrailingTriviaOption.Include,suffix:Ky(r,t.options)};l.replaceNodeWithNodes(e,A[0],j,K);let Y=l.nodeHasTrailingComment(e,A[0],K);l.deleteNodes(e,A.slice(1),{trailingTriviaOption:ur.TrailingTriviaOption.Include},Y)}}}function hQ(e,t){let r=xy(e.languageVersion,!1,e.languageVariant),i=[],o=0;for(let s of t)i[o]&&Gtt(e,s,r)&&o++,i[o]||(i[o]=[]),i[o].push(s);return i}function Gtt(e,t,r){let i=t.getFullStart(),o=t.getStart();r.setText(e.text,i,o-i);let s=0;for(;r.getTokenStart()=2))return!0;return!1}function Vtt(e,t,r){let i=r.getTypeChecker(),o=r.getCompilerOptions(),s=i.getJsxNamespace(t),l=i.getJsxFragmentFactory(t),d=!!(t.transformFlags&2),p=[];for(let m of e){let{importClause:y,moduleSpecifier:E}=m;if(!y){p.push(m);continue}let{name:S,namedBindings:A}=y;if(S&&!h(S)&&(S=void 0),A)if(Xv(A))h(A.name)||(A=void 0);else{let N=A.elements.filter(D=>h(D.name));N.lengthDa(i)&&i.text===r)}function gB(e){return e!==void 0&&as(e)?e.text:void 0}function Utt(e,t,r,i){let o=gQ(t);return a2e(e,o,r,i)}function a2e(e,t,r,i){if(e.length===0)return e;let o=hW(e,l=>{if(l.attributes){let d=l.attributes.token+" ";for(let p of ZS(l.attributes.elements,(h,m)=>Vd(h.name.text,m.name.text)))d+=p.name.text+":",d+=as(p.value)?`"${p.value.text}"`:p.value.getText()+" ";return d}return""}),s=[];for(let l in o){let d=o[l],{importWithoutClause:p,typeOnlyImports:h,regularImports:m}=Htt(d);p&&s.push(p);for(let y of[m,h]){let E=y===h,{defaultImports:S,namespaceImports:A,namedImports:N}=y;if(!E&&S.length===1&&A.length===1&&N.length===0){let Z=S[0];s.push(jO(Z,Z.importClause.name,A[0].importClause.namedBindings));continue}let D=vy(A,(Z,me)=>t(Z.importClause.namedBindings.name.text,me.importClause.namedBindings.name.text));for(let Z of D)s.push(jO(Z,void 0,Z.importClause.namedBindings));let w=Xc(S),j=Xc(N),K=w??j;if(!K)continue;let Y,B=[];if(S.length===1)Y=S[0].importClause.name;else for(let Z of S)B.push(L.createImportSpecifier(!1,L.createIdentifier("default"),Z.importClause.name));B.push(...Ztt(N));let ce=L.createNodeArray(s2e(B,t,i),j?.importClause.namedBindings.elements.hasTrailingComma),z=ce.length===0?Y?void 0:L.createNamedImports(Xe):j?L.updateNamedImports(j.importClause.namedBindings,ce):L.createNamedImports(ce);r&&z&&j?.importClause.namedBindings&&!IT(j.importClause.namedBindings,r)&&lr(z,2),E&&Y&&z?(s.push(jO(K,Y,void 0)),s.push(jO(j??K,void 0,z))):s.push(jO(K,Y,z))}}return s}function Htt(e){let t,r={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]};for(let o of e){if(o.importClause===void 0){t=t||o;continue}let s=o.importClause.isTypeOnly?r:i,{name:l,namedBindings:d}=o.importClause;l&&s.defaultImports.push(o),d&&(Xv(d)?s.namespaceImports.push(o):s.namedImports.push(o))}return{importWithoutClause:t,typeOnlyImports:r,regularImports:i}}function Ktt(e,t,r){let i=gQ(t);return n_e(e,i,r)}function n_e(e,t,r){if(e.length===0)return e;let{exportWithoutClause:i,namedExports:o,typeOnlyExports:s}=d(e),l=[];i&&l.push(i);for(let p of[o,s]){if(p.length===0)continue;let h=[];h.push(...va(p,E=>E.exportClause&&xf(E.exportClause)?E.exportClause.elements:Xe));let m=s2e(h,t,r),y=p[0];l.push(L.updateExportDeclaration(y,y.modifiers,y.isTypeOnly,y.exportClause&&(xf(y.exportClause)?L.updateNamedExports(y.exportClause,m):L.updateNamespaceExport(y.exportClause,y.exportClause.name)),y.moduleSpecifier,y.attributes))}return l;function d(p){let h,m=[],y=[];for(let E of p)E.exportClause===void 0?h=h||E:E.isTypeOnly?y.push(E):m.push(E);return{exportWithoutClause:h,namedExports:m,typeOnlyExports:y}}}function jO(e,t,r){return L.updateImportDeclaration(e,e.modifiers,L.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,r),e.moduleSpecifier,e.attributes)}function s2e(e,t,r){return vy(e,(i,o)=>r_e(i,o,t,r))}function r_e(e,t,r,i){switch(i?.organizeImportsTypeOrder){case"first":return bv(t.isTypeOnly,e.isTypeOnly)||r(e.name.text,t.name.text);case"inline":return r(e.name.text,t.name.text);default:return bv(e.isTypeOnly,t.isTypeOnly)||r(e.name.text,t.name.text)}}function Jtt(e,t,r){let i=gQ(!!r);return i_e(e,t,i)}function i_e(e,t,r){let i=e===void 0?void 0:gB(e),o=t===void 0?void 0:gB(t);return bv(i===void 0,o===void 0)||bv(Yc(i),Yc(o))||r(i,o)}function o_e(e){var t;switch(e.kind){case 271:return(t=ri(e.moduleReference,vh))==null?void 0:t.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function qtt(e,t){return l2e(hQ(e,e.statements.filter(Lc)),t)}function l2e(e,t){let r=DD(t,!1),i=DD(t,!0),o=3,s=!1;for(let l of e){if(l.length>1){let p=zC(l,h=>{var m;return((m=ri(h.moduleSpecifier,Da))==null?void 0:m.text)??""},r,i);if(p&&(o&=p,s=!0),!o)return o}let d=Vr(l,p=>{var h,m;return((m=ri((h=p.importClause)==null?void 0:h.namedBindings,zg))==null?void 0:m.elements.length)>1});if(d){let p=s_e(d.importClause.namedBindings.elements,t);if(p&&(o&=p,s=!0),!o)return o}if(o!==3)return o}return s?0:o}function Xtt(e,t){let r=DD(t,!1),i=DD(t,!0);return zC(e,o=>gB(o_e(o))||"",r,i)}function Ytt(e,t,r){let i=by(e,t,Qs,(o,s)=>a_e(o,s,r));return i<0?~i:i}function $tt(e,t,r,i){let o=by(e,t,Qs,(s,l)=>r_e(s,l,r,i));return o<0?~o:o}function a_e(e,t,r){return i_e(o_e(e),o_e(t),r)||Qtt(e,t)}function Qtt(e,t){return Zs(c2e(e),c2e(t))}function c2e(e){var t;switch(e.kind){case 272:return e.importClause?e.importClause.isTypeOnly?1:((t=e.importClause.namedBindings)==null?void 0:t.kind)===274?2:e.importClause.name?3:4:0;case 271:return 5;case 243:return 6}}function Ztt(e){return va(e,t=>mn(ent(t),r=>r.name&&r.propertyName&&r.name.escapedText===r.propertyName.escapedText?L.updateImportSpecifier(r,r.isTypeOnly,void 0,r.name):r))}function ent(e){var t;return(t=e.importClause)!=null&&t.namedBindings&&zg(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function gQ(e){return e?nne:Vd}function tnt(e,t){let r=nnt(t),i=t.organizeImportsCaseFirst??!1,o=t.organizeImportsNumericCollation??!1,s=t.organizeImportsAccentCollation??!0,l=e?s?"accent":"base":s?"variant":"case";return new Intl.Collator(r,{usage:"sort",caseFirst:i||"false",sensitivity:l,numeric:o}).compare}function nnt(e){let t=e.organizeImportsLocale;t==="auto"&&(t=rne()),t===void 0&&(t="en");let r=Intl.Collator.supportedLocalesOf(t);return r.length?r[0]:"en"}function DD(e,t){return(e.organizeImportsCollation??"ordinal")==="unicode"?tnt(t,e):gQ(t)}function rnt(e,t){let r=typeof e.organizeImportsIgnoreCase=="boolean"?e.organizeImportsIgnoreCase:t?.()??!1;return DD(e,r)}function int(e){let t=[],r=e.statements,i=Nn(r),o=0,s=0;for(;ohQ(e,l))}var d2e,s_e,ont=bt({"src/services/organizeImports.ts"(){"use strict";ai(),d2e=class{has([e,t]){return this._lastPreferences!==t||!this._cache?!1:this._cache.has(e)}get([e,t]){if(!(this._lastPreferences!==t||!this._cache))return this._cache.get(e)}set([e,t],r){this._lastPreferences!==t&&(this._lastPreferences=t,this._cache=void 0),this._cache??(this._cache=new WeakMap),this._cache.set(e,r)}},s_e=tne((e,t)=>{switch(t.organizeImportsTypeOrder){case"first":if(!fW(e,(o,s)=>bv(s.isTypeOnly,o.isTypeOnly)))return 0;break;case"inline":if(!fW(e,(o,s)=>Ex(!0)(o.name.text,s.name.text)))return 0;break;default:if(!fW(e,(o,s)=>bv(o.isTypeOnly,s.isTypeOnly)))return 0;break}let r=DD(t,!1),i=DD(t,!0);if(t.organizeImportsTypeOrder!=="inline"){let{type:o,regular:s}=hW(e,p=>p.isTypeOnly?"type":"regular"),l=o?.length?zC(o,p=>p.name.text,r,i):void 0,d=s?.length?zC(s,p=>p.name.text??"",r,i):void 0;return l===void 0?d??0:d===void 0?l:l===0||d===0?0:d&l}return zC(e,o=>o.name.text,r,i)},new d2e)}}),Rm={};xa(Rm,{coalesceExports:()=>Ktt,coalesceImports:()=>Utt,compareImportOrExportSpecifiers:()=>r_e,compareImportsOrRequireStatements:()=>a_e,compareModuleSpecifiers:()=>Jtt,detectImportDeclarationSorting:()=>Xtt,detectImportSpecifierSorting:()=>s_e,detectSorting:()=>qtt,getImportDeclarationInsertionIndex:()=>Ytt,getImportSpecifierInsertionIndex:()=>$tt,getOrganizeImportsComparer:()=>DD,organizeImports:()=>Btt});var ant=bt({"src/services/_namespaces/ts.OrganizeImports.ts"(){"use strict";ont()}});function snt(e,t){let r=[];return lnt(e,t,r),cnt(e,r),r.sort((i,o)=>i.textSpan.start-o.textSpan.start)}function lnt(e,t,r){let i=40,o=0,s=[...e.statements,e.endOfFileToken],l=s.length;for(;o1&&i.push(yB(s,l,"comment"))}}function p2e(e,t,r,i){UI(e)||l_e(e.pos,t,r,i)}function yB(e,t,r){return P1(dc(e,t),r)}function dnt(e,t){switch(e.kind){case 241:if($o(e.parent))return unt(e.parent,e,t);switch(e.parent.kind){case 246:case 249:case 250:case 248:case 245:case 247:case 254:case 299:return m(e.parent);case 258:let S=e.parent;if(S.tryBlock===e)return m(e.parent);if(S.finallyBlock===e){let A=_s(S,98,t);if(A)return m(A)}default:return P1(Iu(e,t),"code")}case 268:return m(e.parent);case 263:case 231:case 264:case 266:case 269:case 187:case 206:return m(e);case 189:return m(e,!1,!$I(e.parent),23);case 296:case 297:return y(e.statements);case 210:return h(e);case 209:return h(e,23);case 284:return s(e);case 288:return l(e);case 285:case 286:return d(e.attributes);case 228:case 15:return p(e);case 207:return m(e,!1,!Xa(e.parent),23);case 219:return o(e);case 213:return i(e);case 217:return E(e);case 275:case 279:case 300:return r(e)}function r(S){if(!S.elements.length)return;let A=_s(S,19,t),N=_s(S,20,t);if(!(!A||!N||Sf(A.pos,N.pos,t)))return yQ(A,N,S,t,!1,!1)}function i(S){if(!S.arguments.length)return;let A=_s(S,21,t),N=_s(S,22,t);if(!(!A||!N||Sf(A.pos,N.pos,t)))return yQ(A,N,S,t,!1,!0)}function o(S){if(Ko(S.body)||Ou(S.body)||Sf(S.body.getFullStart(),S.body.getEnd(),t))return;let A=dc(S.body.getFullStart(),S.body.getEnd());return P1(A,"code",Iu(S))}function s(S){let A=dc(S.openingElement.getStart(t),S.closingElement.getEnd()),N=S.openingElement.tagName.getText(t),D="<"+N+">...";return P1(A,"code",A,!1,D)}function l(S){let A=dc(S.openingFragment.getStart(t),S.closingFragment.getEnd());return P1(A,"code",A,!1,"<>...")}function d(S){if(S.properties.length!==0)return yB(S.getStart(t),S.getEnd(),"code")}function p(S){if(!(S.kind===15&&S.text.length===0))return yB(S.getStart(t),S.getEnd(),"code")}function h(S,A=19){return m(S,!1,!uu(S.parent)&&!ia(S.parent),A)}function m(S,A=!1,N=!0,D=19,w=D===19?20:24){let j=_s(e,D,t),K=_s(e,w,t);return j&&K&&yQ(j,K,S,t,A,N)}function y(S){return S.length?P1(eb(S),"code"):void 0}function E(S){if(Sf(S.getStart(),S.getEnd(),t))return;let A=dc(S.getStart(),S.getEnd());return P1(A,"code",Iu(S))}}function unt(e,t,r){let i=pnt(e,t,r),o=_s(t,20,r);return i&&o&&yQ(i,o,e,r,e.kind!==219)}function yQ(e,t,r,i,o=!1,s=!0){let l=dc(s?e.getFullStart():e.getStart(i),t.getEnd());return P1(l,"code",Iu(r,i),o)}function P1(e,t,r=e,i=!1,o="..."){return{textSpan:e,kind:t,hintSpan:r,bannerText:o,autoCollapse:i}}function pnt(e,t,r){if(Yie(e.parameters,r)){let i=_s(e,21,r);if(i)return i}return _s(t,19,r)}var f2e,fnt=bt({"src/services/outliningElementsCollector.ts"(){"use strict";ai(),f2e=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),vQ={};xa(vQ,{collectElements:()=>snt});var mnt=bt({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){"use strict";fnt()}});function _nt(e,t,r,i){let o=zz(Wu(t,r));if(_2e(o)){let s=hnt(o,e.getTypeChecker(),t,e,i);if(s)return s}return bQ(f.You_cannot_rename_this_element)}function hnt(e,t,r,i,o){let s=t.getSymbolAtLocation(e);if(!s){if(as(e)){let E=Fz(e,t);if(E&&(E.flags&128||E.flags&1048576&&oo(E.types,S=>!!(S.flags&128))))return c_e(e.text,e.text,"string","",e,r)}else if(Eq(e)){let E=uc(e);return c_e(E,E,"label","",e,r)}return}let{declarations:l}=s;if(!l||l.length===0)return;if(l.some(E=>gnt(i,E)))return bQ(f.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(Fe(e)&&e.escapedText==="default"&&s.parent&&s.parent.flags&1536)return;if(as(e)&&O2(e))return o.allowRenameOfImportPath?vnt(e,r,s):void 0;let d=ynt(r,s,t,o);if(d)return bQ(d);let p=Xy.getSymbolKind(t,s,e),h=Tde(e)||$p(e)&&e.parent.kind===167?Yf(Xf(e)):void 0,m=h||t.symbolToString(s),y=h||t.getFullyQualifiedName(s);return c_e(m,y,p,Xy.getSymbolModifiers(t,s),e,r)}function gnt(e,t){let r=t.getSourceFile();return e.isSourceFileDefaultLibrary(r)&&Sl(r.fileName,".d.ts")}function ynt(e,t,r,i){if(!i.providePrefixAndSuffixTextForRename&&t.flags&2097152){let l=t.declarations&&Vr(t.declarations,d=>Qu(d));l&&!l.propertyName&&(t=r.getAliasedSymbol(t))}let{declarations:o}=t;if(!o)return;let s=m2e(e.path);if(s===void 0)return gt(o,l=>uO(l.getSourceFile().path))?f.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(let l of o){let d=m2e(l.getSourceFile().path);if(d){let p=Math.min(s.length,d.length);for(let h=0;h<=p;h++)if(Vd(s[h],d[h])!==0)return f.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function m2e(e){let t=zc(e),r=t.lastIndexOf("node_modules");if(r!==-1)return t.slice(0,r+2)}function vnt(e,t,r){if(!Yc(e.text))return bQ(f.You_cannot_rename_a_module_via_a_global_import);let i=r.declarations&&Vr(r.declarations,Yi);if(!i)return;let o=El(e.text,"/index")||El(e.text,"/index.js")?void 0:ane(Eu(i.fileName),"/index"),s=o===void 0?i.fileName:o,l=o===void 0?"module":"directory",d=e.text.lastIndexOf("/")+1,p=gd(e.getStart(t)+1+d,e.text.length-d);return{canRename:!0,fileToRename:s,kind:l,displayName:s,fullDisplayName:e.text,kindModifiers:"",triggerSpan:p}}function c_e(e,t,r,i,o,s){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:bnt(o,s)}}function bQ(e){return{canRename:!1,localizedErrorMessage:wo(e)}}function bnt(e,t){let r=e.getStart(t),i=e.getWidth(t);return as(e)&&(r+=1,i-=2),gd(r,i)}function _2e(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return kz(e);default:return!1}}var Ent=bt({"src/services/rename.ts"(){"use strict";ai()}}),vB={};xa(vB,{getRenameInfo:()=>_nt,nodeIsEligibleForRename:()=>_2e});var Snt=bt({"src/services/_namespaces/ts.Rename.ts"(){"use strict";Ent()}});function Tnt(e,t,r,i,o){let s=e.getTypeChecker(),l=Bz(t,r);if(!l)return;let d=!!i&&i.kind==="characterTyped";if(d&&(y1(t,r,l)||jy(t,r)))return;let p=!!i&&i.kind==="invoked",h=Bnt(l,r,t,s,p);if(!h)return;o.throwIfCancellationRequested();let m=Ant(h,s,t,l,d);return o.throwIfCancellationRequested(),m?s.runWithCancellationToken(o,y=>m.kind===0?T2e(m.candidates,m.resolvedSignature,h,t,y):Vnt(m.symbol,h,t,y)):su(t)?xnt(h,e,o):void 0}function Ant({invocation:e,argumentCount:t},r,i,o,s){switch(e.kind){case 0:{if(s&&!Int(o,e.node,i))return;let l=[],d=r.getResolvedSignatureForSignatureHelp(e.node,l,t);return l.length===0?void 0:{kind:0,candidates:l,resolvedSignature:d}}case 1:{let{called:l}=e;if(s&&!h2e(o,i,Fe(l)?l.parent:l))return;let d=Pq(l,t,r);if(d.length!==0)return{kind:0,candidates:d,resolvedSignature:Va(d)};let p=r.getSymbolAtLocation(l);return p&&{kind:1,symbol:p}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return x.assertNever(e)}}function Int(e,t,r){if(!v_(t))return!1;let i=t.getChildren(r);switch(e.kind){case 21:return Bo(i,e);case 28:{let o=Wz(e);return!!o&&Bo(i,o)}case 30:return h2e(e,r,t.expression);default:return!1}}function xnt(e,t,r){if(e.invocation.kind===2)return;let i=E2e(e.invocation),o=kr(i)?i.name.text:void 0,s=t.getTypeChecker();return o===void 0?void 0:Wl(t.getSourceFiles(),l=>Wl(l.getNamedDeclarations().get(o),d=>{let p=d.symbol&&s.getTypeOfSymbolAtLocation(d.symbol,d),h=p&&p.getCallSignatures();if(h&&h.length)return s.runWithCancellationToken(r,m=>T2e(h,h[0],e,l,m,!0))}))}function h2e(e,t,r){let i=e.getFullStart(),o=e.parent;for(;o;){let s=Tc(i,t,o,!0);if(s)return rf(r,s);o=o.parent}return x.fail("Could not find preceding token")}function Rnt(e,t,r,i){let o=y2e(e,t,r,i);return!o||o.isTypeParameterList||o.invocation.kind!==0?void 0:{invocation:o.invocation.node,argumentCount:o.argumentCount,argumentIndex:o.argumentIndex}}function g2e(e,t,r,i){let o=Dnt(e,r,i);if(!o)return;let{list:s,argumentIndex:l}=o,d=Ont(i,s);l!==0&&x.assertLessThan(l,d);let p=Fnt(s,r);return{list:s,argumentIndex:l,argumentCount:d,argumentsSpan:p}}function Dnt(e,t,r){if(e.kind===30||e.kind===21)return{list:Gnt(e.parent,e,t),argumentIndex:0};{let i=Wz(e);return i&&{list:i,argumentIndex:wnt(r,i,e)}}}function y2e(e,t,r,i){let{parent:o}=e;if(v_(o)){let s=o,l=g2e(e,t,r,i);if(!l)return;let{list:d,argumentIndex:p,argumentCount:h,argumentsSpan:m}=l;return{isTypeParameterList:!!o.typeArguments&&o.typeArguments.pos===d.pos,invocation:{kind:0,node:s},argumentsSpan:m,argumentIndex:p,argumentCount:h}}else{if(HI(e)&&U0(o))return Qw(e,t,r)?u_e(o,0,r):void 0;if(KI(e)&&o.parent.kind===215){let s=o,l=s.parent;x.assert(s.kind===228);let d=Qw(e,t,r)?0:1;return u_e(l,d,r)}else if(dP(o)&&U0(o.parent.parent)){let s=o,l=o.parent.parent;if(M4(e)&&!Qw(e,t,r))return;let d=s.parent.templateSpans.indexOf(s),p=Wnt(d,e,t,r);return u_e(l,p,r)}else if(au(o)){let s=o.attributes.pos,l=Na(r.text,o.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:o},argumentsSpan:gd(s,l-s),argumentIndex:0,argumentCount:1}}else{let s=Mq(e,r);if(s){let{called:l,nTypeArguments:d}=s,p={kind:1,called:l},h=dc(l.getStart(r),e.end);return{isTypeParameterList:!0,invocation:p,argumentsSpan:h,argumentIndex:d,argumentCount:d+1}}return}}}function Cnt(e,t,r,i){return Nnt(e,t,r,i)||y2e(e,t,r,i)}function v2e(e){return dr(e.parent)?v2e(e.parent):e}function d_e(e){return dr(e.left)?d_e(e.left)+1:2}function Nnt(e,t,r,i){let o=Pnt(e);if(o===void 0)return;let s=Mnt(o,r,t,i);if(s===void 0)return;let{contextualType:l,argumentIndex:d,argumentCount:p,argumentsSpan:h}=s,m=l.getNonNullableType(),y=m.symbol;if(y===void 0)return;let E=$s(m.getCallSignatures());return E===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:E,node:e,symbol:Lnt(y)},argumentsSpan:h,argumentIndex:d,argumentCount:p}}function Pnt(e){switch(e.kind){case 21:case 28:return e;default:return Fn(e.parent,t=>Ao(t)?!0:Xa(t)||tm(t)||V0(t)?!1:"quit")}}function Mnt(e,t,r,i){let{parent:o}=e;switch(o.kind){case 217:case 174:case 218:case 219:let s=g2e(e,r,t,i);if(!s)return;let{argumentIndex:l,argumentCount:d,argumentsSpan:p}=s,h=Ul(o)?i.getContextualTypeForObjectLiteralElement(o):i.getContextualType(o);return h&&{contextualType:h,argumentIndex:l,argumentCount:d,argumentsSpan:p};case 226:{let m=v2e(o),y=i.getContextualType(m),E=e.kind===21?0:d_e(o)-1,S=d_e(m);return y&&{contextualType:y,argumentIndex:E,argumentCount:S,argumentsSpan:Iu(o)}}default:return}}function Lnt(e){return e.name==="__type"&&Wl(e.declarations,t=>{var r;return hh(t)?(r=ri(t.parent,b_))==null?void 0:r.symbol:void 0})||e}function knt(e,t){let r=t.getTypeAtLocation(e.expression);if(t.isTupleType(r)){let{elementFlags:i,fixedLength:o}=r.target;if(o===0)return 0;let s=Kl(i,l=>!(l&1));return s<0?o:s}return 0}function wnt(e,t,r){return b2e(e,t,r)}function Ont(e,t){return b2e(e,t,void 0)}function b2e(e,t,r){let i=t.getChildren(),o=0,s=!1;for(let l of i){if(r&&l===r)return!s&&l.kind===28&&o++,o;if(Jm(l)){o+=knt(l,e),s=!0;continue}if(l.kind!==28){o++,s=!0;continue}if(s){s=!1;continue}o++}return r?o:i.length&&Ja(i).kind===28?o+1:o}function Wnt(e,t,r,i){return x.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),sre(t)?Qw(t,r,i)?0:e+2:e+1}function u_e(e,t,r){let i=HI(e.template)?1:e.template.templateSpans.length+1;return t!==0&&x.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:znt(e,r),argumentIndex:t,argumentCount:i}}function Fnt(e,t){let r=e.getFullStart(),i=Na(t.text,e.getEnd(),!1);return gd(r,i-r)}function znt(e,t){let r=e.template,i=r.getStart(),o=r.getEnd();return r.kind===228&&Ja(r.templateSpans).literal.getFullWidth()===0&&(o=Na(t.text,o,!1)),gd(i,o-i)}function Bnt(e,t,r,i,o){for(let s=e;!Yi(s)&&(o||!Ko(s));s=s.parent){x.assert(rf(s.parent,s),"Not a subspan",()=>`Child: ${x.formatSyntaxKind(s.kind)}, parent: ${x.formatSyntaxKind(s.parent.kind)}`);let l=Cnt(s,t,r,i);if(l)return l}}function Gnt(e,t,r){let i=e.getChildren(r),o=i.indexOf(t);return x.assert(o>=0&&i.length>o+1),i[o+1]}function E2e(e){return e.kind===0?BF(e.node):e.called}function S2e(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}function T2e(e,t,{isTypeParameterList:r,argumentCount:i,argumentsSpan:o,invocation:s,argumentIndex:l},d,p,h){var m;let y=S2e(s),E=s.kind===2?s.symbol:p.getSymbolAtLocation(E2e(s))||h&&((m=t.declaration)==null?void 0:m.symbol),S=E?eM(p,E,h?d:void 0,void 0):Xe,A=mn(e,K=>Unt(K,S,r,p,y,d));l!==0&&x.assertLessThan(l,i);let N=0,D=0;for(let K=0;K1)){let B=0;for(let ce of Y){if(ce.isVariadic||ce.parameters.length>=i){N=D+B;break}B++}}D+=Y.length}x.assert(N!==-1);let w={items:wC(A,Qs),applicableSpan:o,selectedItemIndex:N,argumentIndex:l,argumentCount:i},j=w.items[N];if(j.isVariadic){let K=Kl(j.parameters,Y=>!!Y.isRest);-1A2e(y,r,i,o,l)),p=e.getDocumentationComment(r),h=e.getJsDocTags(r);return{isVariadic:!1,prefixDisplayParts:[...s,Xd(30)],suffixDisplayParts:[Xd(32)],separatorDisplayParts:p_e,parameters:d,documentation:p,tags:h}}function Unt(e,t,r,i,o,s){let l=(r?Knt:Jnt)(e,i,o,s);return mn(l,({isVariadic:d,parameters:p,prefix:h,suffix:m})=>{let y=[...t,...h],E=[...m,...Hnt(e,o,i)],S=e.getDocumentationComment(i),A=e.getJsDocTags();return{isVariadic:d,prefixDisplayParts:y,suffixDisplayParts:E,separatorDisplayParts:p_e,parameters:p,documentation:S,tags:A}})}function Hnt(e,t,r){return tb(i=>{i.writePunctuation(":"),i.writeSpace(" ");let o=r.getTypePredicateOfSignature(e);o?r.writeTypePredicate(o,t,void 0,i):r.writeType(r.getReturnTypeOfSignature(e),t,void 0,i)})}function Knt(e,t,r,i){let o=(e.target||e).typeParameters,s=rS(),l=(o||Xe).map(p=>A2e(p,t,r,i,s)),d=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,r,UO)]:[];return t.getExpandedParameters(e).map(p=>{let h=L.createNodeArray([...d,...mn(p,y=>t.symbolToParameterDeclaration(y,r,UO))]),m=tb(y=>{s.writeList(2576,h,i,y)});return{isVariadic:!1,parameters:l,prefix:[Xd(30)],suffix:[Xd(32),...m]}})}function Jnt(e,t,r,i){let o=rS(),s=tb(p=>{if(e.typeParameters&&e.typeParameters.length){let h=L.createNodeArray(e.typeParameters.map(m=>t.typeParameterToDeclaration(m,r,UO)));o.writeList(53776,h,i,p)}}),l=t.getExpandedParameters(e),d=t.hasEffectiveRestParameter(e)?l.length===1?p=>!0:p=>{var h;return!!(p.length&&((h=ri(p[p.length-1],ch))==null?void 0:h.links.checkFlags)&32768)}:p=>!1;return l.map(p=>({isVariadic:d(p),parameters:p.map(h=>qnt(h,t,r,i,o)),prefix:[...s,Xd(21)],suffix:[Xd(22)]}))}function qnt(e,t,r,i,o){let s=tb(p=>{let h=t.symbolToParameterDeclaration(e,r,UO);o.writeNode(4,h,i,p)}),l=t.isOptionalParameter(e.valueDeclaration),d=ch(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:s,isOptional:l,isRest:d}}function A2e(e,t,r,i,o){let s=tb(l=>{let d=t.typeParameterToDeclaration(e,r,UO);o.writeNode(4,d,i,l)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:s,isOptional:!1,isRest:!1}}var UO,p_e,Xnt=bt({"src/services/signatureHelp.ts"(){"use strict";ai(),UO=70246400,p_e=[Xd(28),kl()]}}),HO={};xa(HO,{getArgumentInfoForCompletions:()=>Rnt,getSignatureHelpItems:()=>Tnt});var Ynt=bt({"src/services/_namespaces/ts.SignatureHelp.ts"(){"use strict";Xnt()}});function $nt(e,t){var r,i;let o={textSpan:dc(t.getFullStart(),t.getEnd())},s=t;e:for(;;){let p=Znt(s);if(!p.length)break;for(let h=0;he)break e;let S=nh(Yb(t.text,y.end));if(S&&S.kind===2&&d(S.pos,S.end),Qnt(t,e,y)){if(wV(y)&&ws(s)&&!Sf(y.getStart(t),y.getEnd(),t)&&l(y.getStart(t),y.getEnd()),Ko(y)||dP(y)||KI(y)||M4(y)||m&&KI(m)||Uc(y)&&Ml(s)||OR(y)&&Uc(s)||wi(y)&&OR(s)&&p.length===1||$0(y)||yE(y)||FT(y)){s=y;break}if(dP(s)&&E&&lF(E)){let w=y.getFullStart()-2,j=E.getStart()+1;l(w,j)}let A=OR(y)&&ert(m)&&trt(E)&&!Sf(m.getStart(),E.getStart(),t),N=A?m.getEnd():y.getStart(),D=A?E.getStart():nrt(t,y);if(kp(y)&&((r=y.jsDoc)!=null&&r.length)&&l(Va(y.jsDoc).getStart(),D),OR(y)){let w=y.getChildren()[0];w&&kp(w)&&((i=w.jsDoc)!=null&&i.length)&&w.getStart()!==y.pos&&(N=Math.min(N,Va(w.jsDoc).getStart()))}l(N,D),(Da(y)||EI(y))&&l(N+1,D-1),s=y;break}if(h===p.length-1)break e}}return o;function l(p,h){if(p!==h){let m=dc(p,h);(!o||!uD(m,o.textSpan)&&zne(m,e))&&(o={textSpan:m,...o&&{parent:o}})}}function d(p,h){l(p,h);let m=p;for(;t.text.charCodeAt(m)===47;)m++;l(m,h)}}function Qnt(e,t,r){return x.assert(r.pos<=t),td===e.readonlyToken||d.kind===148||d===e.questionToken||d.kind===58),l=KO(s,({kind:d})=>d===23||d===168||d===24);return[r,JO(EQ(l,({kind:d})=>d===59)),o]}if(_p(e)){let r=KO(e.getChildren(),l=>l===e.name||Bo(e.modifiers,l)),i=((t=r[0])==null?void 0:t.kind)===327?r[0]:void 0,o=i?r.slice(1):r,s=EQ(o,({kind:l})=>l===59);return i?[i,JO(s)]:s}if(Ao(e)){let r=KO(e.getChildren(),o=>o===e.dotDotDotToken||o===e.name),i=KO(r,o=>o===r[0]||o===e.questionToken);return EQ(i,({kind:o})=>o===64)}return Xa(e)?EQ(e.getChildren(),({kind:r})=>r===64):e.getChildren()}function KO(e,t){let r=[],i;for(let o of e)t(o)?(i=i||[],i.push(o)):(i&&(r.push(JO(i)),i=void 0),r.push(o));return i&&r.push(JO(i)),r}function EQ(e,t,r=!0){if(e.length<2)return e;let i=Kl(e,t);if(i===-1)return e;let o=e.slice(0,i),s=e[i],l=Ja(e),d=r&&l.kind===27,p=e.slice(i+1,d?e.length-1:void 0),h=SL([o.length?JO(o):void 0,s,p.length?JO(p):void 0]);return d?h.concat(l):h}function JO(e){return x.assertGreaterThanOrEqual(e.length,1),fh(bh.createSyntaxList(e),e[0].pos,Ja(e).end)}function ert(e){let t=e&&e.kind;return t===19||t===23||t===21||t===286}function trt(e){let t=e&&e.kind;return t===20||t===24||t===22||t===287}function nrt(e,t){switch(t.kind){case 348:case 345:case 355:case 353:case 350:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var I2e,rrt=bt({"src/services/smartSelection.ts"(){"use strict";ai(),I2e=jm(Lc,td)}}),SQ={};xa(SQ,{getSmartSelectionRange:()=>$nt});var irt=bt({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){"use strict";rrt()}});function x2e(e,t,r){let i=R2e(e,t,r);if(i!=="")return i;let o=_R(t);return o&32?cl(t,231)?"local class":"class":o&384?"enum":o&524288?"type":o&64?"interface":o&262144?"type parameter":o&8?"enum member":o&2097152?"alias":o&1536?"module":i}function R2e(e,t,r){let i=e.getRootSymbols(t);if(i.length===1&&Va(i).flags&8192&&e.getTypeOfSymbolAtLocation(t,r).getNonNullableType().getCallSignatures().length!==0)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(r.kind===110&&ht(r)||NI(r))return"parameter";let o=_R(t);if(o&3)return Yq(t)?"parameter":t.valueDeclaration&&Kx(t.valueDeclaration)?"const":t.valueDeclaration&&v2(t.valueDeclaration)?"using":t.valueDeclaration&&y2(t.valueDeclaration)?"await using":gn(t.declarations,NF)?"let":N2e(t)?"local var":"var";if(o&16)return N2e(t)?"local function":"function";if(o&32768)return"getter";if(o&65536)return"setter";if(o&8192)return"method";if(o&16384)return"constructor";if(o&131072)return"index";if(o&4){if(o&33554432&&t.links.checkFlags&6){let s=gn(e.getRootSymbols(t),l=>{if(l.getFlags()&98311)return"property"});return s||(e.getTypeOfSymbolAtLocation(t,r).getCallSignatures().length?"method":"property")}return"property"}return""}function D2e(e){if(e.declarations&&e.declarations.length){let[t,...r]=e.declarations,i=Nn(r)&&f7(t)&>(r,s=>!f7(s))?65536:0,o=XP(t,i);if(o)return o.split(",")}return[]}function ort(e,t){if(!t)return"";let r=new Set(D2e(t));if(t.flags&2097152){let i=e.getAliasedSymbol(t);i!==t&&gn(D2e(i),o=>{r.add(o)})}return t.flags&16777216&&r.add("optional"),r.size>0?Wo(r.values()).join(","):""}function C2e(e,t,r,i,o,s,l,d){var p;let h=[],m=[],y=[],E=_R(t),S=l&1?R2e(e,t,o):"",A=!1,N=o.kind===110&&VF(o)||NI(o),D,w,j=!1;if(o.kind===110&&!N)return{displayParts:[vp(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(S!==""||E&32||E&2097152){if(S==="getter"||S==="setter"){let pe=Vr(t.declarations,xe=>xe.name===o);if(pe)switch(pe.kind){case 177:S="getter";break;case 178:S="setter";break;case 172:S="accessor";break;default:x.assertNever(pe)}else S="property"}let J;if(s??(s=N?e.getTypeAtLocation(o):e.getTypeOfSymbolAtLocation(t,o)),o.parent&&o.parent.kind===211){let pe=o.parent.name;(pe===o||pe&&pe.getFullWidth()===0)&&(o=o.parent)}let re;if(v_(o)?re=o:(gq(o)||JP(o)||o.parent&&(au(o.parent)||U0(o.parent))&&$o(t.valueDeclaration))&&(re=o.parent),re){J=e.getResolvedSignature(re);let pe=re.kind===214||ia(re)&&re.expression.kind===108,xe=pe?s.getConstructSignatures():s.getCallSignatures();if(J&&!Bo(xe,J.target)&&!Bo(xe,J)&&(J=xe.length?xe[0]:void 0),J){switch(pe&&E&32?(S="constructor",Z(s.symbol,S)):E&2097152?(S="alias",me(S),h.push(kl()),pe&&(J.flags&4&&(h.push(vp(128)),h.push(kl())),h.push(vp(105)),h.push(kl())),z(t)):Z(t,S),S){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":h.push(Xd(59)),h.push(kl()),!(Lr(s)&16)&&s.symbol&&(Hr(h,eM(e,s.symbol,i,void 0,5)),h.push(pD())),pe&&(J.flags&4&&(h.push(vp(128)),h.push(kl())),h.push(vp(105)),h.push(kl())),ge(J,xe,262144);break;default:ge(J,xe)}A=!0,j=xe.length>1}}else if(Iq(o)&&!(E&98304)||o.kind===137&&o.parent.kind===176){let pe=o.parent;if(t.declarations&&Vr(t.declarations,fe=>fe===(o.kind===137?pe.parent:pe))){let fe=pe.kind===176?s.getNonNullableType().getConstructSignatures():s.getNonNullableType().getCallSignatures();e.isImplementationOfOverload(pe)?J=fe[0]:J=e.getSignatureFromDeclaration(pe),pe.kind===176?(S="constructor",Z(s.symbol,S)):Z(pe.kind===179&&!(s.symbol.flags&2048||s.symbol.flags&4096)?s.symbol:t,S),J&&ge(J,fe),A=!0,j=fe.length>1}}}if(E&32&&!A&&!N&&(B(),cl(t,231)?me("local class"):h.push(vp(86)),h.push(kl()),z(t),q(t,r)),E&64&&l&2&&(Y(),h.push(vp(120)),h.push(kl()),z(t),q(t,r)),E&524288&&l&2&&(Y(),h.push(vp(156)),h.push(kl()),z(t),q(t,r),h.push(kl()),h.push(ZP(64)),h.push(kl()),Hr(h,oO(e,o.parent&&Ng(o.parent)?e.getTypeAtLocation(o.parent):e.getDeclaredTypeOfSymbol(t),i,8388608))),E&384&&(Y(),gt(t.declarations,J=>hE(J)&&A0(J))&&(h.push(vp(87)),h.push(kl())),h.push(vp(94)),h.push(kl()),z(t)),E&1536&&!N){Y();let J=cl(t,267),re=J&&J.name&&J.name.kind===80;h.push(vp(re?145:144)),h.push(kl()),z(t)}if(E&262144&&l&2)if(Y(),h.push(Xd(21)),h.push(af("type parameter")),h.push(Xd(22)),h.push(kl()),z(t),t.parent)ce(),z(t.parent,i),q(t.parent,i);else{let J=cl(t,168);if(J===void 0)return x.fail();let re=J.parent;if(re)if($o(re)){ce();let pe=e.getSignatureFromDeclaration(re);re.kind===180?(h.push(vp(105)),h.push(kl())):re.kind!==179&&re.name&&z(re.symbol),Hr(h,Zq(e,pe,r,32))}else Tm(re)&&(ce(),h.push(vp(156)),h.push(kl()),z(re.symbol),q(re.symbol,r))}if(E&8){S="enum member",Z(t,"enum member");let J=(p=t.declarations)==null?void 0:p[0];if(J?.kind===306){let re=e.getConstantValue(J);re!==void 0&&(h.push(kl()),h.push(ZP(64)),h.push(kl()),h.push(ep(Fre(re),typeof re=="number"?7:8)))}}if(t.flags&2097152){if(Y(),!A||m.length===0&&y.length===0){let J=e.getAliasedSymbol(t);if(J!==t&&J.declarations&&J.declarations.length>0){let re=J.declarations[0],pe=Po(re);if(pe&&!A){let xe=xF(re)&&$r(re,128),fe=t.name!=="default"&&!xe,ne=C2e(e,J,Gn(re),re,pe,s,l,fe?t:J);h.push(...ne.displayParts),h.push(pD()),D=ne.documentation,w=ne.tags}else D=J.getContextualDocumentationComment(re,e),w=J.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 270:h.push(vp(95)),h.push(kl()),h.push(vp(145));break;case 277:h.push(vp(95)),h.push(kl()),h.push(vp(t.declarations[0].isExportEquals?64:90));break;case 281:h.push(vp(95));break;default:h.push(vp(102))}h.push(kl()),z(t),gn(t.declarations,J=>{if(J.kind===271){let re=J;if(aE(re))h.push(kl()),h.push(ZP(64)),h.push(kl()),h.push(vp(149)),h.push(Xd(21)),h.push(ep(uc(hN(re)),8)),h.push(Xd(22));else{let pe=e.getSymbolAtLocation(re.moduleReference);pe&&(h.push(kl()),h.push(ZP(64)),h.push(kl()),z(pe,i))}return!0}})}if(!A)if(S!==""){if(s){if(N?(Y(),h.push(vp(110))):Z(t,S),S==="property"||S==="accessor"||S==="getter"||S==="setter"||S==="JSX attribute"||E&3||S==="local var"||S==="index"||S==="using"||S==="await using"||N){if(h.push(Xd(59)),h.push(kl()),s.symbol&&s.symbol.flags&262144&&S!=="index"){let J=tb(re=>{let pe=e.typeParameterToDeclaration(s,i,f_e);K().writeNode(4,pe,Gn(Do(i)),re)});Hr(h,J)}else Hr(h,oO(e,s,i));if(ch(t)&&t.links.target&&ch(t.links.target)&&t.links.target.links.tupleLabelDeclaration){let J=t.links.target.links.tupleLabelDeclaration;x.assertNode(J.name,Fe),h.push(kl()),h.push(Xd(21)),h.push(af(gr(J.name))),h.push(Xd(22))}}else if(E&16||E&8192||E&16384||E&131072||E&98304||S==="method"){let J=s.getNonNullableType().getCallSignatures();J.length&&(ge(J[0],J),j=J.length>1)}}}else S=x2e(e,t,o);if(m.length===0&&!j&&(m=t.getContextualDocumentationComment(i,e)),m.length===0&&E&4&&t.parent&&t.declarations&&gn(t.parent.declarations,J=>J.kind===312))for(let J of t.declarations){if(!J.parent||J.parent.kind!==226)continue;let re=e.getSymbolAtLocation(J.parent.right);if(re&&(m=re.getDocumentationComment(e),y=re.getJsDocTags(e),m.length>0))break}if(m.length===0&&Fe(o)&&t.valueDeclaration&&Xa(t.valueDeclaration)){let J=t.valueDeclaration,re=J.parent,pe=J.propertyName||J.name;if(Fe(pe)&&tm(re)){let xe=Xf(pe),fe=e.getTypeAtLocation(re);m=Wl(fe.isUnion()?fe.types:[fe],ne=>{let he=ne.getProperty(xe);return he?he.getDocumentationComment(e):void 0})||Xe}}return y.length===0&&!j&&(y=t.getContextualJsDocTags(i,e)),m.length===0&&D&&(m=D),y.length===0&&w&&(y=w),{displayParts:h,documentation:m,symbolKind:S,tags:y.length===0?void 0:y};function K(){return rS()}function Y(){h.length&&h.push(pD()),B()}function B(){d&&(me("alias"),h.push(kl()))}function ce(){h.push(kl()),h.push(vp(103)),h.push(kl())}function z(J,re){let pe;d&&J===t&&(J=d),S==="index"&&(pe=e.getIndexInfosOfIndexSymbol(J));let xe=[];J.flags&131072&&pe?(J.parent&&(xe=eM(e,J.parent)),xe.push(Xd(23)),pe.forEach((fe,ne)=>{xe.push(...oO(e,fe.keyType)),ne!==pe.length-1&&(xe.push(kl()),xe.push(Xd(52)),xe.push(kl()))}),xe.push(Xd(24))):xe=eM(e,J,re||r,void 0,7),Hr(h,xe),t.flags&16777216&&h.push(Xd(58))}function Z(J,re){Y(),re&&(me(re),J&&!gt(J.declarations,pe=>Os(pe)||(Ps(pe)||Zc(pe))&&!pe.name)&&(h.push(kl()),z(J)))}function me(J){switch(J){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":h.push($q(J));return;default:h.push(Xd(21)),h.push($q(J)),h.push(Xd(22));return}}function ge(J,re,pe=0){Hr(h,Zq(e,J,i,pe|32)),re.length>1&&(h.push(kl()),h.push(Xd(21)),h.push(ZP(40)),h.push(ep((re.length-1).toString(),7)),h.push(kl()),h.push(af(re.length===2?"overload":"overloads")),h.push(Xd(22))),m=J.getDocumentationComment(e),y=J.getJsDocTags(),re.length>1&&m.length===0&&y.length===0&&(m=re[0].getDocumentationComment(e),y=re[0].getJsDocTags().filter(xe=>xe.name!=="deprecated"))}function q(J,re){let pe=tb(xe=>{let fe=e.symbolToTypeParameterDeclarations(J,re,f_e);K().writeList(53776,fe,Gn(Do(re)),xe)});Hr(h,pe)}}function art(e,t,r,i,o,s=qT(o),l){return C2e(e,t,r,i,o,void 0,s,l)}function N2e(e){return e.parent?!1:gn(e.declarations,t=>{if(t.kind===218)return!0;if(t.kind!==260&&t.kind!==262)return!1;for(let r=t.parent;!x0(r);r=r.parent)if(r.kind===312||r.kind===268)return!1;return!0})}var f_e,srt=bt({"src/services/symbolDisplay.ts"(){"use strict";ai(),f_e=70246400}}),Xy={};xa(Xy,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>art,getSymbolKind:()=>x2e,getSymbolModifiers:()=>ort});var lrt=bt({"src/services/_namespaces/ts.SymbolDisplay.ts"(){"use strict";srt()}});function P2e(e){let t=e.__pos;return x.assert(typeof t=="number"),t}function m_e(e,t){x.assert(typeof t=="number"),e.__pos=t}function M2e(e){let t=e.__end;return x.assert(typeof t=="number"),t}function __e(e,t){x.assert(typeof t=="number"),e.__end=t}function L2e(e,t){return Na(e,t,!1,!0)}function crt(e,t){let r=t;for(;r0?1:0,E=kv(RN(e,h)+y,e);return E=L2e(e.text,E),kv(RN(e,E),e)}function h_e(e,t,r){let{end:i}=t,{trailingTriviaOption:o}=r;if(o===2){let s=Yb(e.text,i);if(s){let l=RN(e,t.end);for(let d of s){if(d.kind===2||RN(e,d.pos)>l)break;if(RN(e,d.end)>l)return Na(e.text,d.end,!0,!0)}}}}function CD(e,t,r){var i;let{end:o}=t,{trailingTriviaOption:s}=r;if(s===0)return o;if(s===1){let p=Eo(Yb(e.text,o),jh(e.text,o)),h=(i=p?.[p.length-1])==null?void 0:i.end;return h||o}let l=h_e(e,t,r);if(l)return l;let d=Na(e.text,o,!0);return d!==o&&(s===2||jd(e.text.charCodeAt(d-1)))?d:o}function TQ(e,t){return!!t&&!!e.parent&&(t.kind===28||t.kind===27&&e.parent.kind===210)}function drt(e){return Ps(e)||Ec(e)}function urt(e){if(e.kind!==219)return e;let t=e.parent.kind===172?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}function prt(e,t){if(e.kind===t.kind)switch(e.kind){case 348:{let r=e,i=t;return Fe(r.name)&&Fe(i.name)&&r.name.escapedText===i.name.escapedText?L.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,r.comment):void 0}case 349:return L.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 351:return L.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}function g_e(e,t){return Na(e.text,tA(e,t,{leadingTriviaOption:1}),!1,!0)}function frt(e,t,r,i){let o=g_e(e,i);if(r===void 0||Sf(CD(e,t,{}),o,e))return o;let s=Tc(i.getStart(e),e);if(TQ(t,s)){let l=Tc(t.getStart(e),e);if(TQ(r,l)){let d=Na(e.text,s.getEnd(),!0,!0);if(Sf(l.getStart(e),s.getStart(e),e))return jd(e.text.charCodeAt(d-1))?d-1:d;if(jd(e.text.charCodeAt(d)))return d}}return o}function mrt(e,t){let r=_s(e,19,t),i=_s(e,20,t);return[r?.end,i?.end]}function AQ(e){return Ma(e)?e.properties:e.members}function y_e(e,t){for(let r=t.length-1;r>=0;r--){let{span:i,newText:o}=t[r];e=`${e.substring(0,i.start)}${o}${e.substring(Jl(i))}`}return e}function _rt(e){return Na(e,0)===e.length}function IQ(e){let t=Sn(e,IQ,W2e,hrt,IQ),r=Ks(t)?t:Object.create(t);return fh(r,P2e(e),M2e(e)),r}function hrt(e,t,r,i,o){let s=zn(e,t,r,i,o);if(!s)return s;x.assert(e);let l=s===e?L.createNodeArray(s.slice(0)):s;return fh(l,P2e(e),M2e(e)),l}function k2e(e){let t=0,r=$2(e),i=ne=>{ne&&m_e(ne,t)},o=ne=>{ne&&__e(ne,t)},s=ne=>{ne&&m_e(ne,t)},l=ne=>{ne&&__e(ne,t)},d=ne=>{ne&&m_e(ne,t)},p=ne=>{ne&&__e(ne,t)};function h(ne,he){if(he||!_rt(ne)){t=r.getTextPos();let Ce=0;for(;Cg(ne.charCodeAt(ne.length-Ce-1));)Ce++;t-=Ce}}function m(ne){r.write(ne),h(ne,!1)}function y(ne){r.writeComment(ne)}function E(ne){r.writeKeyword(ne),h(ne,!1)}function S(ne){r.writeOperator(ne),h(ne,!1)}function A(ne){r.writePunctuation(ne),h(ne,!1)}function N(ne){r.writeTrailingSemicolon(ne),h(ne,!1)}function D(ne){r.writeParameter(ne),h(ne,!1)}function w(ne){r.writeProperty(ne),h(ne,!1)}function j(ne){r.writeSpace(ne),h(ne,!1)}function K(ne){r.writeStringLiteral(ne),h(ne,!1)}function Y(ne,he){r.writeSymbol(ne,he),h(ne,!1)}function B(ne){r.writeLine(ne)}function ce(){r.increaseIndent()}function z(){r.decreaseIndent()}function Z(){return r.getText()}function me(ne){r.rawWrite(ne),h(ne,!1)}function ge(ne){r.writeLiteral(ne),h(ne,!0)}function q(){return r.getTextPos()}function J(){return r.getLine()}function re(){return r.getColumn()}function pe(){return r.getIndent()}function xe(){return r.isAtStartOfLine()}function fe(){r.clear(),t=0}return{onBeforeEmitNode:i,onAfterEmitNode:o,onBeforeEmitNodeArray:s,onAfterEmitNodeArray:l,onBeforeEmitToken:d,onAfterEmitToken:p,write:m,writeComment:y,writeKeyword:E,writeOperator:S,writePunctuation:A,writeTrailingSemicolon:N,writeParameter:D,writeProperty:w,writeSpace:j,writeStringLiteral:K,writeSymbol:Y,writeLine:B,increaseIndent:ce,decreaseIndent:z,getText:Z,rawWrite:me,writeLiteral:ge,getTextPos:q,getLine:J,getColumn:re,getIndent:pe,isAtStartOfLine:xe,hasTrailingComment:()=>r.hasTrailingComment(),hasTrailingWhitespace:()=>r.hasTrailingWhitespace(),clear:fe}}function grt(e){let t;for(let h of e.statements)if(vm(h))t=h;else break;let r=0,i=e.text;if(t)return r=t.end,p(),r;let o=$W(i);o!==void 0&&(r=o.length,p());let s=jh(i,r);if(!s)return r;let l,d;for(let h of s){if(h.kind===3){if(AF(i,h.pos)){l={range:h,pinnedOrTripleSlash:!0};continue}}else if(UV(i,h.pos,h.end)){l={range:h,pinnedOrTripleSlash:!0};continue}if(l){if(l.pinnedOrTripleSlash)break;let m=e.getLineAndCharacterOfPosition(h.pos).line,y=e.getLineAndCharacterOfPosition(l.range.end).line;if(m>=y+2)break}if(e.statements.length){d===void 0&&(d=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);let m=e.getLineAndCharacterOfPosition(h.end).line;if(d(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(v_e||{}),b_e=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(b_e||{}),_M={leadingTriviaOption:0,trailingTriviaOption:0},O2e=class Ebe{constructor(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new Ebe(Ky(t.host,t.formatContext.options),t.formatContext)}static with(t,r){let i=Ebe.fromContext(t);return r(i),i.getChanges()}pushRaw(t,r){x.assertEqual(t.fileName,r.fileName);for(let i of r.textChanges)this.changes.push({kind:3,sourceFile:t,text:i.newText,range:Hz(i.span)})}deleteRange(t,r){this.changes.push({kind:0,sourceFile:t,range:r})}delete(t,r){this.deletedNodes.push({sourceFile:t,node:r})}deleteNode(t,r,i={leadingTriviaOption:1}){this.deleteRange(t,qO(t,r,r,i))}deleteNodes(t,r,i={leadingTriviaOption:1},o){for(let s of r){let l=tA(t,s,i,o),d=CD(t,s,i);this.deleteRange(t,{pos:l,end:d}),o=!!h_e(t,s,i)}}deleteModifier(t,r){this.deleteRange(t,{pos:r.getStart(t),end:Na(t.text,r.end,!0)})}deleteNodeRange(t,r,i,o={leadingTriviaOption:1}){let s=tA(t,r,o),l=CD(t,i,o);this.deleteRange(t,{pos:s,end:l})}deleteNodeRangeExcludingEnd(t,r,i,o={leadingTriviaOption:1}){let s=tA(t,r,o),l=i===void 0?t.text.length:tA(t,i,o);this.deleteRange(t,{pos:s,end:l})}replaceRange(t,r,i,o={}){this.changes.push({kind:1,sourceFile:t,range:r,options:o,node:i})}replaceNode(t,r,i,o=_M){this.replaceRange(t,qO(t,r,r,o),i,o)}replaceNodeRange(t,r,i,o,s=_M){this.replaceRange(t,qO(t,r,i,s),o,s)}replaceRangeWithNodes(t,r,i,o={}){this.changes.push({kind:2,sourceFile:t,range:r,options:o,nodes:i})}replaceNodeWithNodes(t,r,i,o=_M){this.replaceRangeWithNodes(t,qO(t,r,r,o),i,o)}replaceNodeWithText(t,r,i){this.replaceRangeWithText(t,qO(t,r,r,_M),i)}replaceNodeRangeWithNodes(t,r,i,o,s=_M){this.replaceRangeWithNodes(t,qO(t,r,i,s),o,s)}nodeHasTrailingComment(t,r,i=_M){return!!h_e(t,r,i)}nextCommaToken(t,r){let i=aS(r,r.parent,t);return i&&i.kind===28?i:void 0}replacePropertyAssignment(t,r,i){let o=this.nextCommaToken(t,r)?"":","+this.newLineCharacter;this.replaceNode(t,r,i,{suffix:o})}insertNodeAt(t,r,i,o={}){this.replaceRange(t,Ef(r),i,o)}insertNodesAt(t,r,i,o={}){this.replaceRangeWithNodes(t,Ef(r),i,o)}insertNodeAtTopOfFile(t,r,i){this.insertAtTopOfFile(t,r,i)}insertNodesAtTopOfFile(t,r,i){this.insertAtTopOfFile(t,r,i)}insertAtTopOfFile(t,r,i){let o=grt(t),s={prefix:o===0?void 0:this.newLineCharacter,suffix:(jd(t.text.charCodeAt(o))?"":this.newLineCharacter)+(i?this.newLineCharacter:"")};To(r)?this.insertNodesAt(t,o,r,s):this.insertNodeAt(t,o,r,s)}insertNodesAtEndOfFile(t,r,i){this.insertAtEndOfFile(t,r,i)}insertAtEndOfFile(t,r,i){let o=t.end+1,s={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(i?this.newLineCharacter:"")};this.insertNodesAt(t,o,r,s)}insertStatementsInNewFile(t,r,i){this.newFileChanges||(this.newFileChanges=qp()),this.newFileChanges.add(t,{oldFile:i,statements:r})}insertFirstParameter(t,r,i){let o=Xc(r);o?this.insertNodeBefore(t,o,i):this.insertNodeAt(t,r.pos,i)}insertNodeBefore(t,r,i,o=!1,s={}){this.insertNodeAt(t,tA(t,r,s),i,this.getOptionsForInsertNodeBefore(r,i,o))}insertNodesBefore(t,r,i,o=!1,s={}){this.insertNodesAt(t,tA(t,r,s),i,this.getOptionsForInsertNodeBefore(r,Va(i),o))}insertModifierAt(t,r,i,o={}){this.insertNodeAt(t,r,L.createToken(i),o)}insertModifierBefore(t,r,i){return this.insertModifierAt(t,i.getStart(t),r,{suffix:" "})}insertCommentBeforeLine(t,r,i,o){let s=kv(r,t),l=Ide(t.text,s),d=w2e(t,l),p=lD(t,d?l:i),h=t.text.slice(s,l),m=`${d?"":this.newLineCharacter}//${o}${this.newLineCharacter}${h}`;this.insertText(t,p.getStart(t),m)}insertJsdocCommentBefore(t,r,i){let o=r.getStart(t);if(r.jsDoc)for(let d of r.jsDoc)this.deleteRange(t,{pos:rm(d.getStart(t),t),end:CD(t,d,{})});let s=t7(t.text,o-1),l=t.text.slice(s,o);this.insertNodeAt(t,o,i,{suffix:this.newLineCharacter+l})}createJSDocText(t,r){let i=va(r.jsDoc,s=>No(s.comment)?L.createJSDocText(s.comment):s.comment),o=nh(r.jsDoc);return o&&Sf(o.pos,o.end,t)&&Nn(i)===0?void 0:L.createNodeArray(DG(i,L.createJSDocText(` -`)))}replaceJSDocComment(t,r,i){this.insertJsdocCommentBefore(t,urt(r),L.createJSDocComment(this.createJSDocText(t,r),L.createNodeArray(i)))}addJSDocTags(t,r,i){let o=wC(r.jsDoc,l=>l.tags),s=i.filter(l=>!o.some((d,p)=>{let h=prt(d,l);return h&&(o[p]=h),!!h}));this.replaceJSDocComment(t,r,[...o,...s])}filterJSDocTags(t,r,i){this.replaceJSDocComment(t,r,jr(wC(r.jsDoc,o=>o.tags),i))}replaceRangeWithText(t,r,i){this.changes.push({kind:3,sourceFile:t,range:r,text:i})}insertText(t,r,i){this.replaceRangeWithText(t,Ef(r),i)}tryInsertTypeAnnotation(t,r,i){let o;if($o(r)){if(o=_s(r,22,t),!o){if(!Os(r))return!1;o=Va(r.parameters)}}else o=(r.kind===260?r.exclamationToken:r.questionToken)??r.name;return this.insertNodeAt(t,o.end,i,{prefix:": "}),!0}tryInsertThisTypeAnnotation(t,r,i){let o=_s(r,21,t).getStart(t)+1,s=r.parameters.length?", ":"";this.insertNodeAt(t,o,i,{prefix:"this: ",suffix:s})}insertTypeParameters(t,r,i){let o=(_s(r,21,t)||Va(r.parameters)).getStart(t);this.insertNodesAt(t,o,i,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(t,r,i){return Hi(t)||$c(t)?{suffix:i?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:wi(t)?{suffix:", "}:Ao(t)?Ao(r)?{suffix:", "}:{}:Da(t)&&Lc(t.parent)||zg(t)?{suffix:", "}:Qu(t)?{suffix:","+(i?this.newLineCharacter:" ")}:x.failBadSyntaxKind(t)}insertNodeAtConstructorStart(t,r,i){let o=Xc(r.body.statements);!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[i,...r.body.statements]):this.insertNodeBefore(t,o,i)}insertNodeAtConstructorStartAfterSuperCall(t,r,i){let o=Vr(r.body.statements,s=>ed(s)&&mT(s.expression));!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,i]):this.insertNodeAfter(t,o,i)}insertNodeAtConstructorEnd(t,r,i){let o=$s(r.body.statements);!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,i]):this.insertNodeAfter(t,o,i)}replaceConstructorBody(t,r,i){this.replaceNode(t,r.body,L.createBlock(i,!0))}insertNodeAtEndOfScope(t,r,i){let o=tA(t,r.getLastToken(),{});this.insertNodeAt(t,o,i,{prefix:jd(t.text.charCodeAt(r.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(t,r,i){this.insertNodeAtStartWorker(t,r,i)}insertNodeAtObjectStart(t,r,i){this.insertNodeAtStartWorker(t,r,i)}insertNodeAtStartWorker(t,r,i){let o=this.guessIndentationFromExistingMembers(t,r)??this.computeIndentationForNewMember(t,r);this.insertNodeAt(t,AQ(r).pos,i,this.getInsertNodeAtStartInsertOptions(t,r,o))}guessIndentationFromExistingMembers(t,r){let i,o=r;for(let s of AQ(r)){if(y6(o,s,t))return;let l=s.getStart(t),d=wc.SmartIndenter.findFirstNonWhitespaceColumn(rm(l,t),l,t,this.formatContext.options);if(i===void 0)i=d;else if(d!==i)return;o=s}return i}computeIndentationForNewMember(t,r){let i=r.getStart(t);return wc.SmartIndenter.findFirstNonWhitespaceColumn(rm(i,t),i,t,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(t,r,i){let s=AQ(r).length===0,l=Em(this.classesWithNodesInsertedAtStart,rs(r),{node:r,sourceFile:t}),d=Ma(r)&&(!Jf(t)||!s),p=Ma(r)&&Jf(t)&&s&&!l;return{indentation:i,prefix:(p?",":"")+this.newLineCharacter,suffix:d?",":pu(r)&&s?";":""}}insertNodeAfterComma(t,r,i){let o=this.insertNodeAfterWorker(t,this.nextCommaToken(t,r)||r,i);this.insertNodeAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfter(t,r,i){let o=this.insertNodeAfterWorker(t,r,i);this.insertNodeAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAtEndOfList(t,r,i){this.insertNodeAt(t,r.end,i,{prefix:", "})}insertNodesAfter(t,r,i){let o=this.insertNodeAfterWorker(t,r,Va(i));this.insertNodesAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfterWorker(t,r,i){return yrt(r,i)&&t.text.charCodeAt(r.end-1)!==59&&this.replaceRange(t,Ef(r.end),L.createToken(27)),CD(t,r,{})}getInsertNodeAfterOptions(t,r){let i=this.getInsertNodeAfterOptionsWorker(r);return{...i,prefix:r.end===t.end&&Hi(r)?i.prefix?` + `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return S}}function oDe(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function aDe(e,t,r){let i=so(e,t),o=Fn(i,oDe);if(!o||Ws(o)&&o.body&&qw(o.body,t))return;let s=r.getTypeChecker(),l=o.symbol;if(!l)return;let d=l.declarations;if(Nn(d)<=1||!oo(d,E=>Gn(E)===e)||!oDe(d[0]))return;let p=d[0].kind;if(!oo(d,E=>E.kind===p))return;let h=d;if(gt(h,E=>!!E.typeParameters||gt(E.parameters,S=>!!S.modifiers||!Fe(S.name))))return;let m=to(h,E=>s.getSignatureFromDeclaration(E));if(Nn(m)!==Nn(d))return;let y=s.getReturnTypeOfSignature(m[0]);if(oo(m,E=>s.getReturnTypeOfSignature(E)===y))return h}var tY,Fue,zue,hKe=bt({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){"use strict";ai(),Th(),tY="Convert overload list to single signature",Fue=ko(f.Convert_overload_list_to_single_signature),zue={name:tY,description:Fue,kind:"refactor.rewrite.function.overloadList"},sg(tY,{kinds:[zue.kind],getEditsForAction:_Ke,getAvailableActions:mKe})}});function gKe(e){let{file:t,startPosition:r,triggerReason:i}=e,o=sDe(t,r,i==="invoked");return o?Vg(o)?e.preferences.provideRefactorNotApplicableReason?[{name:nY,description:Bue,actions:[{...O7,notApplicableReason:o.error},{...AO,notApplicableReason:o.error}]}]:Xe:[{name:nY,description:Bue,actions:[o.addBraces?O7:AO]}]:Xe}function yKe(e,t){let{file:r,startPosition:i}=e,o=sDe(r,i);R.assert(o&&!Vg(o),"Expected applicable refactor info");let{expression:s,returnStatement:l,func:d}=o,p;if(t===O7.name){let m=L.createReturnStatement(s);p=L.createBlock([m],!0),pD(s,m,r,3,!0)}else if(t===AO.name&&l){let m=s||L.createVoidZero();p=n7(m)?L.createParenthesizedExpression(m):m,cO(l,p,r,3,!1),pD(l,p,r,3,!1),nM(l,p,r,3,!1)}else R.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:pr.ChangeTracker.with(e,m=>{m.replaceNode(r,d.body,p)})}}function sDe(e,t,r=!0,i){let o=so(e,t),s=Wp(o);if(!s)return{error:ko(f.Could_not_find_a_containing_arrow_function)};if(!Fs(s))return{error:ko(f.Containing_function_is_not_an_arrow_function)};if(!(!of(s,o)||of(s.body,o)&&!r)){if(NE(O7.kind,i)&&ht(s.body))return{func:s,addBraces:!0,expression:s.body};if(NE(AO.kind,i)&&Ho(s.body)&&s.body.statements.length===1){let l=Va(s.body.statements);if(Sm(l)){let d=l.expression&&La(hR(l.expression,!1))?L.createParenthesizedExpression(l.expression):l.expression;return{func:s,addBraces:!1,expression:d,returnStatement:l}}}}}var nY,Bue,O7,AO,vKe=bt({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){"use strict";ai(),Th(),nY="Add or remove braces in an arrow function",Bue=ko(f.Add_or_remove_braces_in_an_arrow_function),O7={name:"Add braces to arrow function",description:ko(f.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},AO={name:"Remove braces from arrow function",description:ko(f.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"},sg(nY,{kinds:[AO.kind],getEditsForAction:yKe,getAvailableActions:gKe})}}),bKe={},EKe=bt({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){"use strict";hKe(),vKe()}});function SKe(e){let{file:t,startPosition:r,program:i,kind:o}=e,s=cDe(t,r,i);if(!s)return Xe;let{selectedVariableDeclaration:l,func:d}=s,p=[],h=[];if(NE(xO.kind,o)){let m=l||Fs(d)&&Oi(d.parent)?void 0:ko(f.Could_not_convert_to_named_function);m?h.push({...xO,notApplicableReason:m}):p.push(xO)}if(NE(IO.kind,o)){let m=!l&&Fs(d)?void 0:ko(f.Could_not_convert_to_anonymous_function);m?h.push({...IO,notApplicableReason:m}):p.push(IO)}if(NE(RO.kind,o)){let m=Ms(d)?void 0:ko(f.Could_not_convert_to_arrow_function);m?h.push({...RO,notApplicableReason:m}):p.push(RO)}return[{name:Gue,description:pDe,actions:p.length===0&&e.preferences.provideRefactorNotApplicableReason?h:p}]}function TKe(e,t){let{file:r,startPosition:i,program:o}=e,s=cDe(r,i,o);if(!s)return;let{func:l}=s,d=[];switch(t){case IO.name:d.push(...RKe(e,l));break;case xO.name:let p=xKe(l);if(!p)return;d.push(...DKe(e,l,p));break;case RO.name:if(!Ms(l))return;d.push(...CKe(e,l));break;default:return R.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:d}}function lDe(e){let t=!1;return e.forEachChild(function r(i){if(aD(i)){t=!0;return}!di(i)&&!Ec(i)&&!Ms(i)&&Bo(i,r)}),t}function cDe(e,t,r){let i=so(e,t),o=r.getTypeChecker(),s=IKe(e,o,i.parent);if(s&&!lDe(s.body)&&!o.containsArgumentsReference(s))return{selectedVariableDeclaration:!0,func:s};let l=Wp(i);if(l&&(Ms(l)||Fs(l))&&!of(l.body,i)&&!lDe(l.body)&&!o.containsArgumentsReference(l))return Ms(l)&&uDe(e,o,l)?void 0:{selectedVariableDeclaration:!1,func:l}}function AKe(e){return Oi(e)||Vc(e)&&e.declarations.length===1}function IKe(e,t,r){if(!AKe(r))return;let o=(Oi(r)?r:Va(r.declarations)).initializer;if(o&&(Fs(o)||Ms(o)&&!uDe(e,t,o)))return o}function dDe(e){if(ht(e)){let t=L.createReturnStatement(e),r=e.getSourceFile();return at(t,e),bp(t),cO(e,t,r,void 0,!0),L.createBlock([t],!0)}else return e}function xKe(e){let t=e.parent;if(!Oi(t)||!mN(t))return;let r=t.parent,i=r.parent;if(!(!Vc(r)||!Ml(i)||!Fe(t.name)))return{variableDeclaration:t,variableDeclarationList:r,statement:i,name:t.name}}function RKe(e,t){let{file:r}=e,i=dDe(t.body),o=L.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,i);return pr.ChangeTracker.with(e,s=>s.replaceNode(r,t,o))}function DKe(e,t,r){let{file:i}=e,o=dDe(t.body),{variableDeclaration:s,variableDeclarationList:l,statement:d,name:p}=r;rX(d);let h=eE(s)&32|cu(t),m=L.createModifiersFromModifierFlags(h),y=L.createFunctionDeclaration(Nn(m)?m:void 0,t.asteriskToken,p,t.typeParameters,t.parameters,t.type,o);return l.declarations.length===1?pr.ChangeTracker.with(e,E=>E.replaceNode(i,d,y)):pr.ChangeTracker.with(e,E=>{E.delete(i,s),E.insertNodeAfter(i,d,y)})}function CKe(e,t){let{file:r}=e,o=t.body.statements[0],s;NKe(t.body,o)?(s=o.expression,bp(s),$T(o,s)):s=t.body;let l=L.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,L.createToken(39),s);return pr.ChangeTracker.with(e,d=>d.replaceNode(r,t,l))}function NKe(e,t){return e.statements.length===1&&Sm(t)&&!!t.expression}function uDe(e,t,r){return!!r.name&&Ls.Core.isSymbolReferencedInFile(r.name,t,e)}var Gue,pDe,IO,xO,RO,PKe=bt({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){"use strict";ai(),Th(),Gue="Convert arrow function or function expression",pDe=ko(f.Convert_arrow_function_or_function_expression),IO={name:"Convert to anonymous function",description:ko(f.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},xO={name:"Convert to named function",description:ko(f.Convert_to_named_function),kind:"refactor.rewrite.function.named"},RO={name:"Convert to arrow function",description:ko(f.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},sg(Gue,{kinds:[IO.kind,xO.kind,RO.kind],getEditsForAction:TKe,getAvailableActions:SKe})}}),MKe={},LKe=bt({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){"use strict";PKe()}});function kKe(e){let{file:t,startPosition:r}=e;return lu(t)||!_De(t,r,e.program.getTypeChecker())?Xe:[{name:F7,description:Hue,actions:[Kue]}]}function wKe(e,t){R.assert(t===F7,"Unexpected action name");let{file:r,startPosition:i,program:o,cancellationToken:s,host:l}=e,d=_De(r,i,o.getTypeChecker());if(!d||!s)return;let p=WKe(d,o,s);return p.valid?{renameFilename:void 0,renameLocation:void 0,edits:pr.ChangeTracker.with(e,m=>OKe(r,o,l,m,d,p))}:{edits:[]}}function OKe(e,t,r,i,o,s){let l=s.signature,d=mn(vDe(o,t,r),m=>ol(m));if(l){let m=mn(vDe(l,t,r),y=>ol(y));h(l,m)}h(o,d);let p=zC(s.functionCalls,(m,y)=>Zs(m.pos,y.pos));for(let m of p)if(m.arguments&&m.arguments.length){let y=ol(JKe(o,m.arguments),!0);i.replaceNodeRange(Gn(m),Va(m.arguments),Ja(m.arguments),y,{leadingTriviaOption:pr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:pr.TrailingTriviaOption.Include})}function h(m,y){i.replaceNodeRangeWithNodes(e,Va(m.parameters),Ja(m.parameters),y,{joiner:", ",indentation:0,leadingTriviaOption:pr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:pr.TrailingTriviaOption.Include})}}function WKe(e,t,r){let i=XKe(e),o=Pl(e)?qKe(e):[],s=_0([...i,...o],Ay),l=t.getTypeChecker(),d=va(s,y=>Ls.getReferenceEntriesForNode(-1,y,t,t.getSourceFiles(),r)),p=h(d);return oo(p.declarations,y=>zo(s,y))||(p.valid=!1),p;function h(y){let E={accessExpressions:[],typeUsages:[]},S={functionCalls:[],declarations:[],classReferences:E,valid:!0},A=mn(i,m),N=mn(o,m),D=Pl(e),w=mn(i,j=>Vue(j,l));for(let j of y){if(j.kind===Ls.EntryKind.Span){S.valid=!1;continue}if(zo(w,m(j.node))){if(GKe(j.node.parent)){S.signature=j.node.parent;continue}let Y=mDe(j);if(Y){S.functionCalls.push(Y);continue}}let K=Vue(j.node,l);if(K&&zo(w,K)){let Y=jue(j);if(Y){S.declarations.push(Y);continue}}if(zo(A,m(j.node))||qP(j.node)){if(fDe(j))continue;let B=jue(j);if(B){S.declarations.push(B);continue}let ce=mDe(j);if(ce){S.functionCalls.push(ce);continue}}if(D&&zo(N,m(j.node))){if(fDe(j))continue;let B=jue(j);if(B){S.declarations.push(B);continue}let ce=FKe(j);if(ce){E.accessExpressions.push(ce);continue}if(Sc(e.parent)){let z=zKe(j);if(z){E.typeUsages.push(z);continue}}}S.valid=!1}return S}function m(y){let E=l.getSymbolAtLocation(y);return E&&tX(E,l)}}function Vue(e,t){let r=PO(e);if(r){let i=t.getContextualTypeForObjectLiteralElement(r),o=i?.getSymbol();if(o&&!(Tl(o)&6))return o}}function fDe(e){let t=e.node;if(Qu(t.parent)||yh(t.parent)||Zc(t.parent)||Yv(t.parent)||Hd(t.parent)||Ll(t.parent))return t}function jue(e){if(Ud(e.node.parent))return e.node}function mDe(e){if(e.node.parent){let t=e.node,r=t.parent;switch(r.kind){case 213:case 214:let i=ri(r,v_);if(i&&i.expression===t)return i;break;case 211:let o=ri(r,wr);if(o&&o.parent&&o.name===t){let l=ri(o.parent,v_);if(l&&l.expression===o)return l}break;case 212:let s=ri(r,qs);if(s&&s.parent&&s.argumentExpression===t){let l=ri(s.parent,v_);if(l&&l.expression===s)return l}break}}}function FKe(e){if(e.node.parent){let t=e.node,r=t.parent;switch(r.kind){case 211:let i=ri(r,wr);if(i&&i.expression===t)return i;break;case 212:let o=ri(r,qs);if(o&&o.expression===t)return o;break}}}function zKe(e){let t=e.node;if(qT(t)===2||f6(t.parent))return t}function _De(e,t,r){let i=sD(e,t),o=cie(i);if(!BKe(i)&&o&&VKe(o,r)&&of(o,i)&&!(o.body&&of(o.body,i)))return o}function BKe(e){let t=Fn(e,Fx);if(t){let r=Fn(t,i=>!Fx(i));return!!r&&Ws(r)}return!1}function GKe(e){return hh(e)&&(fu(e.parent)||gp(e.parent))}function VKe(e,t){var r;if(!jKe(e.parameters,t))return!1;switch(e.kind){case 262:return hDe(e)&&W7(e,t);case 174:if(La(e.parent)){let i=Vue(e.name,t);return((r=i?.declarations)==null?void 0:r.length)===1&&W7(e,t)}return W7(e,t);case 176:return Sc(e.parent)?hDe(e.parent)&&W7(e,t):gDe(e.parent.parent)&&W7(e,t);case 218:case 219:return gDe(e.parent)}return!1}function W7(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function hDe(e){return e.name?!0:!!cD(e,90)}function jKe(e,t){return HKe(e)>=bDe&&oo(e,r=>UKe(r,t))}function UKe(e,t){if(Jh(e)){let r=t.getTypeAtLocation(e);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!e.modifiers&&Fe(e.name)}function gDe(e){return Oi(e)&&Hx(e)&&Fe(e.name)&&!e.type}function Uue(e){return e.length>0&&aD(e[0].name)}function HKe(e){return Uue(e)?e.length-1:e.length}function yDe(e){return Uue(e)&&(e=L.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function KKe(e,t){return Fe(t)&&Xf(t)===e?L.createShorthandPropertyAssignment(e):L.createPropertyAssignment(e,t)}function JKe(e,t){let r=yDe(e.parameters),i=Jh(Ja(r)),o=i?t.slice(0,r.length-1):t,s=mn(o,(d,p)=>{let h=rY(r[p]),m=KKe(h,d);return bp(m.name),mc(m)&&bp(m.initializer),$T(d,m),m});if(i&&t.length>=r.length){let d=t.slice(r.length-1),p=L.createPropertyAssignment(rY(Ja(r)),L.createArrayLiteralExpression(d));s.push(p)}return L.createObjectLiteralExpression(s,!1)}function vDe(e,t,r){let i=t.getTypeChecker(),o=yDe(e.parameters),s=mn(o,m),l=L.createObjectBindingPattern(s),d=y(o),p;oo(o,A)&&(p=L.createObjectLiteralExpression());let h=L.createParameterDeclaration(void 0,void 0,l,void 0,d,p);if(Uue(e.parameters)){let N=e.parameters[0],D=L.createParameterDeclaration(void 0,void 0,N.name,void 0,N.type);return bp(D.name),$T(N.name,D.name),N.type&&(bp(D.type),$T(N.type,D.type)),L.createNodeArray([D,h])}return L.createNodeArray([h]);function m(N){let D=L.createBindingElement(void 0,void 0,rY(N),Jh(N)&&A(N)?L.createArrayLiteralExpression():N.initializer);return bp(D),N.initializer&&D.initializer&&$T(N.initializer,D.initializer),D}function y(N){let D=mn(N,E);return D_(L.createTypeLiteralNode(D),1)}function E(N){let D=N.type;!D&&(N.initializer||Jh(N))&&(D=S(N));let w=L.createPropertySignature(void 0,rY(N),A(N)?L.createToken(58):N.questionToken,D);return bp(w),$T(N.name,w.name),N.type&&w.type&&$T(N.type,w.type),w}function S(N){let D=i.getTypeAtLocation(N);return iM(D,N,t,r)}function A(N){if(Jh(N)){let D=i.getTypeAtLocation(N);return!i.isTupleType(D)}return i.isOptionalParameter(N)}}function rY(e){return Xf(e.name)}function qKe(e){switch(e.parent.kind){case 263:let t=e.parent;return t.name?[t.name]:[R.checkDefined(cD(t,90),"Nameless class declaration should be a default export")];case 231:let i=e.parent,o=e.parent.parent,s=i.name;return s?[s,o.name]:[o.name]}}function XKe(e){switch(e.kind){case 262:return e.name?[e.name]:[R.checkDefined(cD(e,90),"Nameless function declaration should be a default export")];case 174:return[e.name];case 176:let r=R.checkDefined(hs(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");return e.parent.kind===231?[e.parent.parent.name,r]:[r];case 219:return[e.parent.name];case 218:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return R.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var F7,bDe,Hue,Kue,YKe=bt({"src/services/refactors/convertParamsToDestructuredObject.ts"(){"use strict";ai(),Th(),F7="Convert parameters to destructured object",bDe=1,Hue=ko(f.Convert_parameters_to_destructured_object),Kue={name:F7,description:Hue,kind:"refactor.rewrite.parameters.toDestructured"},sg(F7,{kinds:[Kue.kind],getEditsForAction:wKe,getAvailableActions:kKe})}}),$Ke={},QKe=bt({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){"use strict";YKe()}});function ZKe(e){let{file:t,startPosition:r}=e,i=EDe(t,r),o=Jue(i),s=Ca(o),l={name:iY,description:oY,actions:[]};return s&&e.triggerReason!=="invoked"?Xe:Yh(o)&&(s||ur(o)&&que(o).isValidConcatenation)?(l.actions.push(aY),[l]):e.preferences.provideRefactorNotApplicableReason?(l.actions.push({...aY,notApplicableReason:ko(f.Can_only_convert_string_concatenations_and_string_literals)}),[l]):Xe}function EDe(e,t){let r=so(e,t),i=Jue(r);return!que(i).isValidConcatenation&&Wu(i.parent)&&ur(i.parent.parent)?i.parent.parent:r}function eJe(e,t){let{file:r,startPosition:i}=e,o=EDe(r,i);switch(t){case oY:return{edits:tJe(e,o)};default:return R.fail("invalid action")}}function tJe(e,t){let r=Jue(t),i=e.file,o=iJe(que(r),i),s=$b(i.text,r.end);if(s){let l=s[s.length-1],d={pos:s[0].pos,end:l.end};return pr.ChangeTracker.with(e,p=>{p.deleteRange(i,d),p.replaceNode(i,r,o)})}else return pr.ChangeTracker.with(e,l=>l.replaceNode(i,r,o))}function nJe(e){return!(e.operatorToken.kind===64||e.operatorToken.kind===65)}function Jue(e){return Fn(e.parent,r=>{switch(r.kind){case 211:case 212:return!1;case 228:case 226:return!(ur(r.parent)&&nJe(r.parent));default:return"quit"}})||e}function que(e){let t=l=>{if(!ur(l))return{nodes:[l],operators:[],validOperators:!0,hasString:Ca(l)||HI(l)};let{nodes:d,operators:p,hasString:h,validOperators:m}=t(l.left);if(!(h||Ca(l.right)||F4(l.right)))return{nodes:[l],operators:[],hasString:!1,validOperators:!0};let y=l.operatorToken.kind===40,E=m&&y;return d.push(l.right),p.push(l.operatorToken),{nodes:d,operators:p,hasString:!0,validOperators:E}},{nodes:r,operators:i,validOperators:o,hasString:s}=t(e);return{nodes:r,operators:i,isValidConcatenation:o&&s}}function rJe(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function SDe(e){let t=KI(e)||YU(e)?-2:-1;return uc(e).slice(1,t)}function TDe(e,t){let r=[],i="",o="";for(;e{ADe(K);let B=Y===E.templateSpans.length-1,ce=K.literal.text+(B?A:""),z=SDe(K.literal)+(B?N:"");return L.createTemplateSpan(K.expression,w&&B?L.createTemplateTail(ce,z):L.createTemplateMiddle(ce,z))});h.push(...j)}else{let j=w?L.createTemplateTail(A,N):L.createTemplateMiddle(A,N);o(D,j),h.push(L.createTemplateSpan(E,j))}}return L.createTemplateExpression(m,h)}function ADe(e){let t=e.getSourceFile();nM(e,e.expression,t,3,!1),cO(e.expression,e.expression,t,3,!1)}function oJe(e){return Wu(e)&&(ADe(e),e=e.expression),e}var iY,oY,aY,IDe,xDe,aJe=bt({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){"use strict";ai(),Th(),iY="Convert to template string",oY=ko(f.Convert_to_template_string),aY={name:iY,description:oY,kind:"refactor.rewrite.string"},sg(iY,{kinds:[aY.kind],getEditsForAction:eJe,getAvailableActions:ZKe}),IDe=(e,t)=>(r,i)=>{r(i,o)=>{for(;i.length>0;){let s=i.shift();nM(e[s],o,t,3,!1),r(s,o)}}}}),sJe={},lJe=bt({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){"use strict";aJe()}});function cJe(e){let t=RDe(e,e.triggerReason==="invoked");return t?Vg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:z7,description:cY,actions:[{...dY,notApplicableReason:t.error}]}]:Xe:[{name:z7,description:cY,actions:[dY]}]:Xe}function dJe(e,t){let r=RDe(e);return R.assert(r&&!Vg(r),"Expected applicable refactor info"),{edits:pr.ChangeTracker.with(e,o=>yJe(e.file,e.program.getTypeChecker(),o,r,t)),renameFilename:void 0,renameLocation:void 0}}function sY(e){return ur(e)||NR(e)}function uJe(e){return Qc(e)||Sm(e)||Ml(e)}function lY(e){return sY(e)||uJe(e)}function RDe(e,t=!0){let{file:r,program:i}=e,o=E1(e),s=o.length===0;if(s&&!t)return;let l=so(r,o.start),d=Bz(r,o.start+o.length),p=dc(l.pos,d&&d.end>=l.pos?d.getEnd():l.getEnd()),h=s?hJe(l):_Je(l,p),m=h&&lY(h)?gJe(h):void 0;if(!m)return{error:ko(f.Could_not_find_convertible_access_expression)};let y=i.getTypeChecker();return NR(m)?pJe(m,y):fJe(m)}function pJe(e,t){let r=e.condition,i=Yue(e.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:ko(f.Could_not_find_convertible_access_expression)};if((wr(r)||Fe(r))&&Xue(r,i.expression))return{finalExpression:i,occurrences:[r],expression:e};if(ur(r)){let o=DDe(i.expression,r);return o?{finalExpression:i,occurrences:o,expression:e}:{error:ko(f.Could_not_find_matching_access_expressions)}}}function fJe(e){if(e.operatorToken.kind!==56)return{error:ko(f.Can_only_convert_logical_AND_access_chains)};let t=Yue(e.right);if(!t)return{error:ko(f.Could_not_find_convertible_access_expression)};let r=DDe(t.expression,e.left);return r?{finalExpression:t,occurrences:r,expression:e}:{error:ko(f.Could_not_find_matching_access_expressions)}}function DDe(e,t){let r=[];for(;ur(t)&&t.operatorToken.kind===56;){let o=Xue(ms(e),ms(t.right));if(!o)break;r.push(o),e=o,t=t.left}let i=Xue(e,t);return i&&r.push(i),r.length>0?r:void 0}function Xue(e,t){if(!(!Fe(t)&&!wr(t)&&!qs(t)))return mJe(e,t)?t:void 0}function mJe(e,t){for(;(ra(e)||wr(e)||qs(e))&&DO(e)!==DO(t);)e=e.expression;for(;wr(e)&&wr(t)||qs(e)&&qs(t);){if(DO(e)!==DO(t))return!1;e=e.expression,t=t.expression}return Fe(e)&&Fe(t)&&e.getText()===t.getText()}function DO(e){if(Fe(e)||Qp(e))return e.getText();if(wr(e))return DO(e.name);if(qs(e))return DO(e.argumentExpression)}function _Je(e,t){for(;e.parent;){if(lY(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function hJe(e){for(;e.parent;){if(lY(e)&&!lY(e.parent))return e;e=e.parent}}function gJe(e){if(sY(e))return e;if(Ml(e)){let t=RI(e),r=t?.initializer;return r&&sY(r)?r:void 0}return e.expression&&sY(e.expression)?e.expression:void 0}function Yue(e){if(e=ms(e),ur(e))return Yue(e.left);if((wr(e)||qs(e)||ra(e))&&!jd(e))return e}function CDe(e,t,r){if(wr(t)||qs(t)||ra(t)){let i=CDe(e,t.expression,r),o=r.length>0?r[r.length-1]:void 0,s=o?.getText()===t.expression.getText();if(s&&r.pop(),ra(t))return s?L.createCallChain(i,L.createToken(29),t.typeArguments,t.arguments):L.createCallChain(i,t.questionDotToken,t.typeArguments,t.arguments);if(wr(t))return s?L.createPropertyAccessChain(i,L.createToken(29),t.name):L.createPropertyAccessChain(i,t.questionDotToken,t.name);if(qs(t))return s?L.createElementAccessChain(i,L.createToken(29),t.argumentExpression):L.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function yJe(e,t,r,i,o){let{finalExpression:s,occurrences:l,expression:d}=i,p=l[l.length-1],h=CDe(t,s,l);h&&(wr(h)||qs(h)||ra(h))&&(ur(d)?r.replaceNodeRange(e,p,s,h):NR(d)&&r.replaceNode(e,d,L.createBinaryExpression(h,L.createToken(61),d.whenFalse)))}var z7,cY,dY,vJe=bt({"src/services/refactors/convertToOptionalChainExpression.ts"(){"use strict";ai(),Th(),z7="Convert to optional chain expression",cY=ko(f.Convert_to_optional_chain_expression),dY={name:z7,description:cY,kind:"refactor.rewrite.expression.optionalChain"},sg(z7,{kinds:[dY.kind],getEditsForAction:dJe,getAvailableActions:cJe})}}),bJe={},EJe=bt({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){"use strict";vJe()}});function NDe(e){let t=e.kind,r=$ue(e.file,E1(e),e.triggerReason==="invoked"),i=r.targetRange;if(i===void 0){if(!r.errors||r.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return Xe;let A=[];return NE(yD.kind,t)&&A.push({name:hD,description:yD.description,actions:[{...yD,notApplicableReason:S(r.errors)}]}),NE(gD.kind,t)&&A.push({name:hD,description:gD.description,actions:[{...gD,notApplicableReason:S(r.errors)}]}),A}let o=RJe(i,e);if(o===void 0)return Xe;let s=[],l=new Map,d,p=[],h=new Map,m,y=0;for(let{functionExtraction:A,constantExtraction:N}of o){if(NE(yD.kind,t)){let D=A.description;A.errors.length===0?l.has(D)||(l.set(D,!0),s.push({description:D,name:`function_scope_${y}`,kind:yD.kind})):d||(d={description:D,name:`function_scope_${y}`,notApplicableReason:S(A.errors),kind:yD.kind})}if(NE(gD.kind,t)){let D=N.description;N.errors.length===0?h.has(D)||(h.set(D,!0),p.push({description:D,name:`constant_scope_${y}`,kind:gD.kind})):m||(m={description:D,name:`constant_scope_${y}`,notApplicableReason:S(N.errors),kind:gD.kind})}y++}let E=[];return s.length?E.push({name:hD,description:ko(f.Extract_function),actions:s}):e.preferences.provideRefactorNotApplicableReason&&d&&E.push({name:hD,description:ko(f.Extract_function),actions:[d]}),p.length?E.push({name:hD,description:ko(f.Extract_constant),actions:p}):e.preferences.provideRefactorNotApplicableReason&&m&&E.push({name:hD,description:ko(f.Extract_constant),actions:[m]}),E.length?E:Xe;function S(A){let N=A[0].messageText;return typeof N!="string"&&(N=N.messageText),N}}function PDe(e,t){let i=$ue(e.file,E1(e)).targetRange,o=/^function_scope_(\d+)$/.exec(t);if(o){let l=+o[1];return R.assert(isFinite(l),"Expected to parse a finite number from the function scope index"),IJe(i,e,l)}let s=/^constant_scope_(\d+)$/.exec(t);if(s){let l=+s[1];return R.assert(isFinite(l),"Expected to parse a finite number from the constant scope index"),xJe(i,e,l)}R.fail("Unrecognized action name")}function $ue(e,t,r=!0){let{length:i}=t;if(i===0&&!r)return{errors:[Yc(e,t.start,i,bd.cannotExtractEmpty)]};let o=i===0&&r,s=ode(e,t.start),l=Bz(e,Jl(t)),d=s&&l&&r?SJe(s,l,e):t,p=o?JJe(s):oO(s,e,d),h=o?p:oO(l,e,d),m=0,y;if(!p||!h)return{errors:[Yc(e,t.start,i,bd.cannotExtractRange)]};if(p.flags&16777216)return{errors:[Yc(e,t.start,i,bd.cannotExtractJSDoc)]};if(p.parent!==h.parent)return{errors:[Yc(e,t.start,i,bd.cannotExtractRange)]};if(p!==h){if(!LDe(p.parent))return{errors:[Yc(e,t.start,i,bd.cannotExtractRange)]};let j=[];for(let K of p.parent.statements){if(K===p||j.length){let Y=w(K);if(Y)return{errors:Y};j.push(K)}if(K===h)break}return j.length?{targetRange:{range:j,facts:m,thisNode:y}}:{errors:[Yc(e,t.start,i,bd.cannotExtractRange)]}}if(Sm(p)&&!p.expression)return{errors:[Yc(e,t.start,i,bd.cannotExtractRange)]};let E=A(p),S=N(E)||w(E);if(S)return{errors:S};return{targetRange:{range:TJe(E),facts:m,thisNode:y}};function A(j){if(Sm(j)){if(j.expression)return j.expression}else if(Ml(j)||Vc(j)){let K=Ml(j)?j.declarationList.declarations:j.declarations,Y=0,B;for(let ce of K)ce.initializer&&(Y++,B=ce.initializer);if(Y===1)return B}else if(Oi(j)&&j.initializer)return j.initializer;return j}function N(j){if(Fe(Qc(j)?j.expression:j))return[Pr(j,bd.cannotExtractIdentifier)]}function D(j,K){let Y=j;for(;Y!==K;){if(Y.kind===172){na(Y)&&(m|=32);break}else if(Y.kind===169){Wp(Y).kind===176&&(m|=32);break}else Y.kind===174&&na(Y)&&(m|=32);Y=Y.parent}}function w(j){let K;if((me=>{me[me.None=0]="None",me[me.Break=1]="Break",me[me.Continue=2]="Continue",me[me.Return=4]="Return"})(K||(K={})),R.assert(j.pos<=j.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),R.assert(!Jm(j.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!Hi(j)&&!(Yh(j)&&MDe(j))&&!npe(j))return[Pr(j,bd.statementOrExpressionExpected)];if(j.flags&33554432)return[Pr(j,bd.cannotExtractAmbientBlock)];let Y=id(j);Y&&D(j,Y);let B,ce=4,z;if(ee(j),m&8){let me=ku(j,!1,!1);(me.kind===262||me.kind===174&&me.parent.kind===210||me.kind===218)&&(m|=16)}return B;function ee(me){if(B)return!0;if(Ud(me)){let q=me.kind===260?me.parent.parent:me;if(Qr(q,32))return(B||(B=[])).push(Pr(me,bd.cannotExtractExportedEntity)),!0}switch(me.kind){case 272:return(B||(B=[])).push(Pr(me,bd.cannotExtractImport)),!0;case 277:return(B||(B=[])).push(Pr(me,bd.cannotExtractExportedEntity)),!0;case 108:if(me.parent.kind===213){let q=id(me);if(q===void 0||q.pos=t.start+t.length)return(B||(B=[])).push(Pr(me,bd.cannotExtractSuper)),!0}else m|=8,y=me;break;case 219:Bo(me,function q(J){if(aD(J))m|=8,y=me;else{if(di(J)||Yo(J)&&!Fs(J))return!1;Bo(J,q)}});case 263:case 262:Yi(me.parent)&&me.parent.externalModuleIndicator===void 0&&(B||(B=[])).push(Pr(me,bd.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}let ge=ce;switch(me.kind){case 245:ce&=-5;break;case 258:ce=0;break;case 241:me.parent&&me.parent.kind===258&&me.parent.finallyBlock===me&&(ce=4);break;case 297:case 296:ce|=1;break;default:Pv(me,!1)&&(ce|=3);break}switch(me.kind){case 197:case 110:m|=8,y=me;break;case 256:{let q=me.label;(z||(z=[])).push(q.escapedText),Bo(me,ee),z.pop();break}case 252:case 251:{let q=me.label;q?zo(z,q.escapedText)||(B||(B=[])).push(Pr(me,bd.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):ce&(me.kind===252?1:2)||(B||(B=[])).push(Pr(me,bd.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:m|=4;break;case 229:m|=2;break;case 253:ce&4?m|=1:(B||(B=[])).push(Pr(me,bd.cannotExtractRangeContainingConditionalReturnStatement));break;default:Bo(me,ee);break}ce=ge}}}function SJe(e,t,r){let i=e.getStart(r),o=t.getEnd();return r.text.charCodeAt(o)===59&&o++,{start:i,length:o-i}}function TJe(e){if(Hi(e))return[e];if(Yh(e))return Qc(e.parent)?[e.parent]:e;if(npe(e))return e}function Que(e){return Fs(e)?wV(e.body):Ws(e)||Yi(e)||N_(e)||di(e)}function AJe(e){let t=Xy(e.range)?Va(e.range):e.range;if(e.facts&8&&!(e.facts&16)){let i=id(t);if(i){let o=Fn(t,Ws);return o?[o,i]:[i]}}let r=[];for(;;)if(t=t.parent,t.kind===169&&(t=Fn(t,i=>Ws(i)).parent),Que(t)&&(r.push(t),t.kind===312))return r}function IJe(e,t,r){let{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,functionErrorsPerScope:l,exposedVariableDeclarations:d}}=Zue(e,t);return R.assert(!l[r].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),LJe(o,i[r],s[r],d,e,t)}function xJe(e,t,r){let{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,constantErrorsPerScope:l,exposedVariableDeclarations:d}}=Zue(e,t);R.assert(!l[r].length,"The extraction went missing? How?"),R.assert(d.length===0,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();let p=ht(o)?o:o.statements[0].expression;return kJe(p,i[r],s[r],e.facts,t)}function RJe(e,t){let{scopes:r,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:o}}=Zue(e,t);return r.map((l,d)=>{let p=DJe(l),h=CJe(l),m=Ws(l)?NJe(l):di(l)?PJe(l):MJe(l),y,E;return m===1?(y=ng(ko(f.Extract_to_0_in_1_scope),[p,"global"]),E=ng(ko(f.Extract_to_0_in_1_scope),[h,"global"])):m===0?(y=ng(ko(f.Extract_to_0_in_1_scope),[p,"module"]),E=ng(ko(f.Extract_to_0_in_1_scope),[h,"module"])):(y=ng(ko(f.Extract_to_0_in_1),[p,m]),E=ng(ko(f.Extract_to_0_in_1),[h,m])),d===0&&!di(l)&&(E=ng(ko(f.Extract_to_0_in_enclosing_scope),[h])),{functionExtraction:{description:y,errors:i[d]},constantExtraction:{description:E,errors:o[d]}}})}function Zue(e,t){let{file:r}=t,i=AJe(e),o=HJe(e,r),s=KJe(e,i,o,r,t.program.getTypeChecker(),t.cancellationToken);return{scopes:i,readsAndWrites:s}}function DJe(e){return Ws(e)?"inner function":di(e)?"method":"function"}function CJe(e){return di(e)?"readonly field":"constant"}function NJe(e){switch(e.kind){case 176:return"constructor";case 218:case 262:return e.name?`function '${e.name.text}'`:y7;case 219:return"arrow function";case 174:return`method '${e.name.getText()}'`;case 177:return`'get ${e.name.getText()}'`;case 178:return`'set ${e.name.getText()}'`;default:R.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function PJe(e){return e.kind===263?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}function MJe(e){return e.kind===268?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function LJe(e,t,{usages:r,typeParameterUsages:i,substitutions:o},s,l,d){let p=d.program.getTypeChecker(),h=rs(d.program.getCompilerOptions()),m=wd.createImportAdder(d.file,d.program,d.preferences,d.host),y=t.getSourceFile(),E=QT(di(t)?"newMethod":"newFunction",y),S=ir(t),A=L.createIdentifier(E),N,D=[],w=[],j;r.forEach((Ie,De)=>{let Le;if(!S){let be=p.getTypeOfSymbolAtLocation(Ie.symbol,Ie.node);be=p.getBaseTypeOfLiteralType(be),Le=wd.typeToAutoImportableTypeNode(p,m,be,t,h,1)}let Et=L.createParameterDeclaration(void 0,void 0,De,void 0,Le);D.push(Et),Ie.usage===2&&(j||(j=[])).push(Ie),w.push(L.createIdentifier(De))});let Y=Oo(i.values(),Ie=>({type:Ie,declaration:OJe(Ie,d.startPosition)})).sort(WJe),B=Y.length===0?void 0:to(Y,({declaration:Ie})=>Ie),ce=B!==void 0?B.map(Ie=>L.createTypeReferenceNode(Ie.name,void 0)):void 0;if(ht(e)&&!S){let Ie=p.getContextualType(e);N=p.typeToTypeNode(Ie,t,1)}let{body:z,returnValueProperty:ee}=zJe(e,s,j,o,!!(l.facts&1));bp(z);let me,ge=!!(l.facts&16);if(di(t)){let Ie=S?[]:[L.createModifier(123)];l.facts&32&&Ie.push(L.createModifier(126)),l.facts&4&&Ie.push(L.createModifier(134)),me=L.createMethodDeclaration(Ie.length?Ie:void 0,l.facts&2?L.createToken(42):void 0,A,void 0,B,D,N,z)}else ge&&D.unshift(L.createParameterDeclaration(void 0,void 0,"this",void 0,p.typeToTypeNode(p.getTypeAtLocation(l.thisNode),t,1),void 0)),me=L.createFunctionDeclaration(l.facts&4?[L.createToken(134)]:void 0,l.facts&2?L.createToken(42):void 0,A,B,D,N,z);let q=pr.ChangeTracker.fromContext(d),J=(Xy(l.range)?Ja(l.range):l.range).end,re=VJe(J,t);re?q.insertNodeBefore(d.file,re,me,!0):q.insertNodeAtEndOfScope(d.file,t,me),m.writeFixes(q);let pe=[],xe=FJe(t,l,E);ge&&w.unshift(L.createIdentifier("this"));let fe=L.createCallExpression(ge?L.createPropertyAccessExpression(xe,"call"):xe,ce,w);if(l.facts&2&&(fe=L.createYieldExpression(L.createToken(42),fe)),l.facts&4&&(fe=L.createAwaitExpression(fe)),tpe(e)&&(fe=L.createJsxExpression(void 0,fe)),s.length&&!j)if(R.assert(!ee,"Expected no returnValueProperty"),R.assert(!(l.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),s.length===1){let Ie=s[0];pe.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(ol(Ie.name),void 0,ol(Ie.type),fe)],Ie.parent.flags)))}else{let Ie=[],De=[],Le=s[0].parent.flags,Et=!1;for(let ze of s){Ie.push(L.createBindingElement(void 0,void 0,ol(ze.name)));let tt=p.typeToTypeNode(p.getBaseTypeOfLiteralType(p.getTypeAtLocation(ze)),t,1);De.push(L.createPropertySignature(void 0,ze.symbol.name,void 0,tt)),Et=Et||ze.type!==void 0,Le=Le&ze.parent.flags}let be=Et?L.createTypeLiteralNode(De):void 0;be&&lr(be,1),pe.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(L.createObjectBindingPattern(Ie),void 0,be,fe)],Le)))}else if(s.length||j){if(s.length)for(let De of s){let Le=De.parent.flags;Le&2&&(Le=Le&-3|1),pe.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(De.symbol.name,void 0,ve(De.type))],Le)))}ee&&pe.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(ee,void 0,ve(N))],1)));let Ie=epe(s,j);ee&&Ie.unshift(L.createShorthandPropertyAssignment(ee)),Ie.length===1?(R.assert(!ee,"Shouldn't have returnValueProperty here"),pe.push(L.createExpressionStatement(L.createAssignment(Ie[0].name,fe))),l.facts&1&&pe.push(L.createReturnStatement())):(pe.push(L.createExpressionStatement(L.createAssignment(L.createObjectLiteralExpression(Ie),fe))),ee&&pe.push(L.createReturnStatement(L.createIdentifier(ee))))}else l.facts&1?pe.push(L.createReturnStatement(fe)):Xy(l.range)?pe.push(L.createExpressionStatement(fe)):pe.push(fe);Xy(l.range)?q.replaceNodeRangeWithNodes(d.file,Va(l.range),Ja(l.range),pe):q.replaceNodeWithNodes(d.file,l.range,pe);let ne=q.getChanges(),Ce=(Xy(l.range)?Va(l.range):l.range).getSourceFile().fileName,Ge=lO(ne,Ce,E,!1);return{renameFilename:Ce,renameLocation:Ge,edits:ne};function ve(Ie){if(Ie===void 0)return;let De=ol(Ie),Le=De;for(;NT(Le);)Le=Le.type;return Kv(Le)&&Vr(Le.types,Et=>Et.kind===157)?De:L.createUnionTypeNode([De,L.createKeywordTypeNode(157)])}}function kJe(e,t,{substitutions:r},i,o){let s=o.program.getTypeChecker(),l=t.getSourceFile(),d=wr(e)&&!di(t)&&!s.resolveName(e.name.text,e,111551,!1)&&!Ki(e.name)&&!tE(e.name)?e.name.text:QT(di(t)?"newProperty":"newLocal",l),p=ir(t),h=p||!s.isContextSensitive(e)?void 0:s.typeToTypeNode(s.getContextualType(e),t,1),m=BJe(ms(e),r);({variableType:h,initializer:m}=N(h,m)),bp(m);let y=pr.ChangeTracker.fromContext(o);if(di(t)){R.assert(!p,"Cannot extract to a JS class");let D=[];D.push(L.createModifier(123)),i&32&&D.push(L.createModifier(126)),D.push(L.createModifier(148));let w=L.createPropertyDeclaration(D,d,void 0,h,m),j=L.createPropertyAccessExpression(i&32?L.createIdentifier(t.name.getText()):L.createThis(),L.createIdentifier(d));tpe(e)&&(j=L.createJsxExpression(void 0,j));let K=e.pos,Y=jJe(K,t);y.insertNodeBefore(o.file,Y,w,!0),y.replaceNode(o.file,e,j)}else{let D=L.createVariableDeclaration(d,void 0,h,m),w=wJe(e,t);if(w){y.insertNodeBefore(o.file,w,D);let j=L.createIdentifier(d);y.replaceNode(o.file,e,j)}else if(e.parent.kind===244&&t===Fn(e,Que)){let j=L.createVariableStatement(void 0,L.createVariableDeclarationList([D],2));y.replaceNode(o.file,e.parent,j)}else{let j=L.createVariableStatement(void 0,L.createVariableDeclarationList([D],2)),K=UJe(e,t);if(K.pos===0?y.insertNodeAtTopOfFile(o.file,j,!1):y.insertNodeBefore(o.file,K,j,!1),e.parent.kind===244)y.delete(o.file,e.parent);else{let Y=L.createIdentifier(d);tpe(e)&&(Y=L.createJsxExpression(void 0,Y)),y.replaceNode(o.file,e,Y)}}}let E=y.getChanges(),S=e.getSourceFile().fileName,A=lO(E,S,d,!0);return{renameFilename:S,renameLocation:A,edits:E};function N(D,w){if(D===void 0)return{variableType:D,initializer:w};if(!Ms(w)&&!Fs(w)||w.typeParameters)return{variableType:D,initializer:w};let j=s.getTypeAtLocation(e),K=rh(s.getSignaturesOfType(j,0));if(!K)return{variableType:D,initializer:w};if(K.getTypeParameters())return{variableType:D,initializer:w};let Y=[],B=!1;for(let ce of w.parameters)if(ce.type)Y.push(ce);else{let z=s.getTypeAtLocation(ce);z===s.getAnyType()&&(B=!0),Y.push(L.updateParameterDeclaration(ce,ce.modifiers,ce.dotDotDotToken,ce.name,ce.questionToken,ce.type||s.typeToTypeNode(z,t,1),ce.initializer))}if(B)return{variableType:D,initializer:w};if(D=void 0,Fs(w))w=L.updateArrowFunction(w,Am(e)?v0(e):void 0,w.typeParameters,Y,w.type||s.typeToTypeNode(K.getReturnType(),t,1),w.equalsGreaterThanToken,w.body);else{if(K&&K.thisParameter){let ce=Jc(Y);if(!ce||Fe(ce.name)&&ce.name.escapedText!=="this"){let z=s.getTypeOfSymbolAtLocation(K.thisParameter,e);Y.splice(0,0,L.createParameterDeclaration(void 0,void 0,"this",void 0,s.typeToTypeNode(z,t,1)))}}w=L.updateFunctionExpression(w,Am(e)?v0(e):void 0,w.asteriskToken,w.name,w.typeParameters,Y,w.type||s.typeToTypeNode(K.getReturnType(),t,1),w.body)}return{variableType:D,initializer:w}}}function wJe(e,t){let r;for(;e!==void 0&&e!==t;){if(Oi(e)&&e.initializer===r&&Vc(e.parent)&&e.parent.declarations.length>1)return e;r=e,e=e.parent}}function OJe(e,t){let r,i=e.symbol;if(i&&i.declarations)for(let o of i.declarations)(r===void 0||o.pos0;if(Ho(e)&&!s&&i.size===0)return{body:L.createBlock(e.statements,!0),returnValueProperty:void 0};let l,d=!1,p=L.createNodeArray(Ho(e)?e.statements.slice(0):[Hi(e)?e:L.createReturnStatement(ms(e))]);if(s||i.size){let m=zn(p,h,Hi).slice();if(s&&!o&&Hi(e)){let y=epe(t,r);y.length===1?m.push(L.createReturnStatement(y[0].name)):m.push(L.createReturnStatement(L.createObjectLiteralExpression(y)))}return{body:L.createBlock(m,!0),returnValueProperty:l}}else return{body:L.createBlock(p,!0),returnValueProperty:void 0};function h(m){if(!d&&Sm(m)&&s){let y=epe(t,r);return m.expression&&(l||(l="__return"),y.unshift(L.createPropertyAssignment(l,Qe(m.expression,h,ht)))),y.length===1?L.createReturnStatement(y[0].name):L.createReturnStatement(L.createObjectLiteralExpression(y))}else{let y=d;d=d||Ws(m)||di(m);let E=i.get(is(m).toString()),S=E?ol(E):Sn(m,h,void 0);return d=y,S}}}function BJe(e,t){return t.size?r(e):e;function r(i){let o=t.get(is(i).toString());return o?ol(o):Sn(i,r,void 0)}}function GJe(e){if(Ws(e)){let t=e.body;if(Ho(t))return t.statements}else{if(N_(e)||Yi(e))return e.statements;if(di(e))return e.members;}return Xe}function VJe(e,t){return Vr(GJe(t),r=>r.pos>=e&&Ws(r)&&!Pl(r))}function jJe(e,t){let r=t.members;R.assert(r.length>0,"Found no members");let i,o=!0;for(let s of r){if(s.pos>e)return i||r[0];if(o&&!Vo(s)){if(i!==void 0)return s;o=!1}i=s}return i===void 0?R.fail():i}function UJe(e,t){R.assert(!di(t));let r;for(let i=e;i!==t;i=i.parent)Que(i)&&(r=i);for(let i=(r||e).parent;;i=i.parent){if(LDe(i)){let o;for(let s of i.statements){if(s.pos>e.pos)break;o=s}return!o&&PR(i)?(R.assert(pP(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):R.checkDefined(o,"prevStatement failed to get set")}R.assert(i!==t,"Didn't encounter a block-like before encountering scope")}}function epe(e,t){let r=mn(e,o=>L.createShorthandPropertyAssignment(o.symbol.name)),i=mn(t,o=>L.createShorthandPropertyAssignment(o.symbol.name));return r===void 0?i:i===void 0?r:r.concat(i)}function Xy(e){return So(e)}function HJe(e,t){return Xy(e.range)?{pos:Va(e.range).getStart(t),end:Ja(e.range).getEnd()}:e.range}function KJe(e,t,r,i,o,s){let l=new Map,d=[],p=[],h=[],m=[],y=[],E=new Map,S=[],A,N=Xy(e.range)?e.range.length===1&&Qc(e.range[0])?e.range[0].expression:void 0:e.range,D;if(N===void 0){let re=e.range,pe=Va(re).getStart(),xe=Ja(re).end;D=Yc(i,pe,xe-pe,bd.expressionExpected)}else o.getTypeAtLocation(N).flags&147456&&(D=Pr(N,bd.uselessConstantType));for(let re of t){d.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),p.push(new Map),h.push([]);let pe=[];D&&pe.push(D),di(re)&&ir(re)&&pe.push(Pr(re,bd.cannotExtractToJSClass)),Fs(re)&&!Ho(re.body)&&pe.push(Pr(re,bd.cannotExtractToExpressionArrowFunction)),m.push(pe)}let w=new Map,j=Xy(e.range)?L.createBlock(e.range):e.range,K=Xy(e.range)?Va(e.range):e.range,Y=B(K);if(z(j),Y&&!Xy(e.range)&&!M_(e.range)){let re=o.getContextualType(e.range);ce(re)}if(l.size>0){let re=new Map,pe=0;for(let xe=K;xe!==void 0&&pe{d[pe].typeParameterUsages.set(ne,fe)}),pe++),ej(xe))for(let fe of Dv(xe)){let ne=o.getTypeAtLocation(fe);l.has(ne.id.toString())&&re.set(ne.id.toString(),ne)}R.assert(pe===t.length,"Should have iterated all scopes")}if(y.length){let re=ZV(t[0],t[0].parent)?t[0]:ph(t[0]);Bo(re,ge)}for(let re=0;re0&&(pe.usages.size>0||pe.typeParameterUsages.size>0)){let ne=Xy(e.range)?e.range[0]:e.range;m[re].push(Pr(ne,bd.cannotAccessVariablesFromNestedScopes))}e.facts&16&&di(t[re])&&h[re].push(Pr(e.thisNode,bd.cannotExtractFunctionsContainingThisToMethod));let xe=!1,fe;if(d[re].usages.forEach(ne=>{ne.usage===2&&(xe=!0,ne.symbol.flags&106500&&ne.symbol.valueDeclaration&&fp(ne.symbol.valueDeclaration,8)&&(fe=ne.symbol.valueDeclaration))}),R.assert(Xy(e.range)||S.length===0,"No variable declarations expected if something was extracted"),xe&&!Xy(e.range)){let ne=Pr(e.range,bd.cannotWriteInExpression);h[re].push(ne),m[re].push(ne)}else if(fe&&re>0){let ne=Pr(fe,bd.cannotExtractReadonlyPropertyInitializerOutsideConstructor);h[re].push(ne),m[re].push(ne)}else if(A){let ne=Pr(A,bd.cannotExtractExportedEntity);h[re].push(ne),m[re].push(ne)}}return{target:j,usagesPerScope:d,functionErrorsPerScope:h,constantErrorsPerScope:m,exposedVariableDeclarations:S};function B(re){return!!Fn(re,pe=>ej(pe)&&Dv(pe).length!==0)}function ce(re){let pe=o.getSymbolWalker(()=>(s.throwIfCancellationRequested(),!0)),{visitedTypes:xe}=pe.walkType(re);for(let fe of xe)fe.isTypeParameter()&&l.set(fe.id.toString(),fe)}function z(re,pe=1){if(Y){let xe=o.getTypeAtLocation(re);ce(xe)}if(Ud(re)&&re.symbol&&y.push(re),Pc(re))z(re.left,2),z(re.right);else if(bre(re))z(re.operand,2);else if(wr(re)||qs(re))Bo(re,z);else if(Fe(re)){if(!re.parent||Tu(re.parent)&&re!==re.parent.left||wr(re.parent)&&re!==re.parent.expression)return;ee(re,pe,Xh(re))}else Bo(re,z)}function ee(re,pe,xe){let fe=me(re,pe,xe);if(fe)for(let ne=0;ne=pe)return ne;if(w.set(ne,pe),he){for(let ve of d)ve.usages.get(re.text)&&ve.usages.set(re.text,{usage:pe,symbol:fe,node:re});return ne}let Ce=fe.getDeclarations(),Ge=Ce&&Vr(Ce,ve=>ve.getSourceFile()===i);if(Ge&&!Yw(r,Ge.getStart(),Ge.end)){if(e.facts&2&&pe===2){let ve=Pr(re,bd.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(let Ie of h)Ie.push(ve);for(let Ie of m)Ie.push(ve)}for(let ve=0;vefe.symbol===pe);if(xe)if(Oi(xe)){let fe=xe.symbol.id.toString();E.has(fe)||(S.push(xe),E.set(fe,!0))}else A=A||xe}Bo(re,ge)}function q(re){return re.parent&&Zu(re.parent)&&re.parent.name===re?o.getShorthandAssignmentValueSymbol(re.parent):o.getSymbolAtLocation(re)}function J(re,pe,xe){if(!re)return;let fe=re.getDeclarations();if(fe&&fe.some(he=>he.parent===pe))return L.createIdentifier(re.name);let ne=J(re.parent,pe,xe);if(ne!==void 0)return xe?L.createQualifiedName(ne,L.createIdentifier(re.name)):L.createPropertyAccessExpression(ne,re.name)}}function JJe(e){return Fn(e,t=>t.parent&&MDe(t)&&!ur(t.parent))}function MDe(e){let{parent:t}=e;switch(t.kind){case 306:return!1}switch(e.kind){case 11:return t.kind!==272&&t.kind!==276;case 230:case 206:case 208:return!1;case 80:return t.kind!==208&&t.kind!==276&&t.kind!==281}return!0}function LDe(e){switch(e.kind){case 241:case 312:case 268:case 296:return!0;default:return!1}}function tpe(e){return npe(e)||(og(e)||OT(e)||q0(e))&&(og(e.parent)||q0(e.parent))}function npe(e){return Ca(e)&&e.parent&&M_(e.parent)}var hD,gD,yD,bd,rpe,qJe=bt({"src/services/refactors/extractSymbol.ts"(){"use strict";ai(),Th(),hD="Extract Symbol",gD={name:"Extract Constant",description:ko(f.Extract_constant),kind:"refactor.extract.constant"},yD={name:"Extract Function",description:ko(f.Extract_function),kind:"refactor.extract.function"},sg(hD,{kinds:[gD.kind,yD.kind],getEditsForAction:PDe,getAvailableActions:NDe}),(e=>{function t(r){return{message:r,code:0,category:3,key:r}}e.cannotExtractRange=t("Cannot extract range."),e.cannotExtractImport=t("Cannot extract import statement."),e.cannotExtractSuper=t("Cannot extract super call."),e.cannotExtractJSDoc=t("Cannot extract JSDoc."),e.cannotExtractEmpty=t("Cannot extract empty range."),e.expressionExpected=t("expression expected."),e.uselessConstantType=t("No reason to extract constant of type."),e.statementOrExpressionExpected=t("Statement or expression expected."),e.cannotExtractRangeContainingConditionalBreakOrContinueStatements=t("Cannot extract range containing conditional break or continue statements."),e.cannotExtractRangeContainingConditionalReturnStatement=t("Cannot extract range containing conditional return statement."),e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=t("Cannot extract range containing labeled break or continue with target outside of the range."),e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=t("Cannot extract range containing writes to references located outside of the target range in generators."),e.typeWillNotBeVisibleInTheNewScope=t("Type will not visible in the new scope."),e.functionWillNotBeVisibleInTheNewScope=t("Function will not visible in the new scope."),e.cannotExtractIdentifier=t("Select more than a single identifier."),e.cannotExtractExportedEntity=t("Cannot extract exported declaration"),e.cannotWriteInExpression=t("Cannot write back side-effects when extracting an expression"),e.cannotExtractReadonlyPropertyInitializerOutsideConstructor=t("Cannot move initialization of read-only class property outside of the constructor"),e.cannotExtractAmbientBlock=t("Cannot extract code from ambient contexts"),e.cannotAccessVariablesFromNestedScopes=t("Cannot access variables from nested scopes"),e.cannotExtractToJSClass=t("Cannot extract constant to a class scope in JS"),e.cannotExtractToExpressionArrowFunction=t("Cannot extract constant to an arrow function without a block"),e.cannotExtractFunctionsContainingThisToMethod=t("Cannot extract functions containing this to method")})(bd||(bd={})),rpe=(e=>(e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.UsesThisInFunction=16]="UsesThisInFunction",e[e.InStaticRegion=32]="InStaticRegion",e))(rpe||{})}}),kDe={};Ra(kDe,{Messages:()=>bd,RangeFacts:()=>rpe,getRangeToExtract:()=>$ue,getRefactorActionsToExtractSymbol:()=>NDe,getRefactorEditsToExtractSymbol:()=>PDe});var XJe=bt({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){"use strict";qJe()}}),B7,uY,pY,YJe=bt({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){"use strict";ai(),Th(),B7="Generate 'get' and 'set' accessors",uY=ko(f.Generate_get_and_set_accessors),pY={name:B7,description:uY,kind:"refactor.rewrite.property.generateAccessors"},sg(B7,{kinds:[pY.kind],getEditsForAction:function(t,r){if(!t.endPosition)return;let i=wd.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);R.assert(i&&!Vg(i),"Expected applicable refactor info");let o=wd.generateAccessorFromProperty(t.file,t.program,t.startPosition,t.endPosition,t,r);if(!o)return;let s=t.file.fileName,l=i.renameAccessor?i.accessorName:i.fieldName,p=(Fe(l)?0:-1)+lO(o,s,l.text,To(i.declaration));return{renameFilename:s,renameLocation:p,edits:o}},getAvailableActions(e){if(!e.endPosition)return Xe;let t=wd.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return t?Vg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:B7,description:uY,actions:[{...pY,notApplicableReason:t.error}]}]:Xe:[{name:B7,description:uY,actions:[pY]}]:Xe}})}}),$Je={},QJe=bt({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){"use strict";YJe()}});function ZJe(e){let t=wDe(e);if(t&&!Vg(t))return{renameFilename:void 0,renameLocation:void 0,edits:pr.ChangeTracker.with(e,i=>tqe(e.file,i,t.declaration,t.returnTypeNode))}}function eqe(e){let t=wDe(e);return t?Vg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:G7,description:fY,actions:[{...V7,notApplicableReason:t.error}]}]:Xe:[{name:G7,description:fY,actions:[V7]}]:Xe}function tqe(e,t,r,i){let o=hs(r,22,e),s=Fs(r)&&o===void 0,l=s?Va(r.parameters):o;l&&(s&&(t.insertNodeBefore(e,l,L.createToken(21)),t.insertNodeAfter(e,l,L.createToken(22))),t.insertNodeAt(e,l.end,i,{prefix:": "}))}function wDe(e){if(ir(e.file)||!NE(V7.kind,e.kind))return;let t=Fu(e.file,e.startPosition),r=Fn(t,l=>Ho(l)||l.parent&&Fs(l.parent)&&(l.kind===39||l.parent.body===l)?"quit":nqe(l));if(!r||!r.body||r.type)return{error:ko(f.Return_type_must_be_inferred_from_a_function)};let i=e.program.getTypeChecker(),o=rqe(i,r);if(!o)return{error:ko(f.Could_not_determine_function_return_type)};let s=i.typeToTypeNode(o,r,1);if(s)return{declaration:r,returnTypeNode:s}}function nqe(e){switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}function rqe(e,t){if(e.isImplementationOfOverload(t)){let i=e.getTypeAtLocation(t).getCallSignatures();if(i.length>1)return e.getUnionType(to(i,o=>o.getReturnType()))}let r=e.getSignatureFromDeclaration(t);if(r)return e.getReturnTypeOfSignature(r)}var G7,fY,V7,iqe=bt({"src/services/refactors/inferFunctionReturnType.ts"(){"use strict";ai(),Th(),G7="Infer function return type",fY=ko(f.Infer_function_return_type),V7={name:G7,description:fY,kind:"refactor.rewrite.function.returnType"},sg(G7,{kinds:[V7.kind],getEditsForAction:ZJe,getAvailableActions:eqe})}}),oqe={},aqe=bt({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){"use strict";iqe()}}),T1={};Ra(T1,{addExportToChanges:()=>Lue,addExports:()=>Cue,addNewFileToTsconfig:()=>Aue,addOrRemoveBracesToArrowFunction:()=>bKe,containsJsx:()=>wue,convertArrowFunctionOrFunctionExpression:()=>MKe,convertParamsToDestructuredObject:()=>$Ke,convertStringOrTemplateLiteral:()=>sJe,convertToOptionalChainExpression:()=>bJe,createNewFileName:()=>kue,createOldFileImportsFromTargetFile:()=>Due,deleteMovedStatements:()=>P7,deleteUnusedImports:()=>Nue,deleteUnusedOldImports:()=>Iue,doChangeNamedToNamespaceOrDefault:()=>jRe,extractSymbol:()=>kDe,filterImport:()=>SO,forEachImportInStatement:()=>EO,generateGetAccessorAndSetAccessor:()=>$Je,getApplicableRefactors:()=>yHe,getEditsForRefactor:()=>vHe,getStatementsToMove:()=>TO,getTopLevelDeclarationStatement:()=>QX,getUsageInfo:()=>L7,inferFunctionReturnType:()=>oqe,isRefactorErrorInfo:()=>Vg,isTopLevelDeclaration:()=>k7,makeImportOrRequire:()=>M7,moduleSpecifierFromImport:()=>bO,nameOfTopLevelDeclaration:()=>Mue,refactorKindBeginsWith:()=>NE,registerRefactor:()=>sg,updateImportsInOtherFiles:()=>xue});var Th=bt({"src/services/_namespaces/ts.refactor.ts"(){"use strict";WRe(),xHe(),PHe(),zHe(),BHe(),VHe(),KHe(),fKe(),EKe(),LKe(),QKe(),lJe(),EJe(),XJe(),QJe(),aqe()}});function ODe(e,t,r,i){let o=ipe(e,t,r,i);R.assert(o.spans.length%3===0);let s=o.spans,l=[];for(let d=0;d{o.push(l.getStart(t),l.getWidth(t),(d+1<<8)+p)},i),o}function lqe(e,t,r,i,o){let s=e.getTypeChecker(),l=!1;function d(p){switch(p.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:o.throwIfCancellationRequested()}if(!p||!ZW(r,p.pos,p.getFullWidth())||p.getFullWidth()===0)return;let h=l;if((og(p)||OT(p))&&(l=!0),mP(p)&&(l=!1),Fe(p)&&!l&&!pqe(p)&&!XN(p.escapedText)){let m=s.getSymbolAtLocation(p);if(m){m.flags&2097152&&(m=s.getAliasedSymbol(m));let y=cqe(m,qT(p));if(y!==void 0){let E=0;p.parent&&(Xa(p.parent)||lpe.get(p.parent.kind)===y)&&p.parent.name===p&&(E=1),y===6&&FDe(p)&&(y=9),y=dqe(s,p,y);let S=m.valueDeclaration;if(S){let A=eE(S),N=Dy(S);A&256&&(E|=2),A&1024&&(E|=4),y!==0&&y!==2&&(A&8||N&2||m.getFlags()&8)&&(E|=8),(y===7||y===10)&&uqe(S,t)&&(E|=32),e.isSourceFileDefaultLibrary(S.getSourceFile())&&(E|=16)}else m.declarations&&m.declarations.some(A=>e.isSourceFileDefaultLibrary(A.getSourceFile()))&&(E|=16);i(p,y,E)}}}Bo(p,d),l=h}d(t)}function cqe(e,t){let r=e.getFlags();if(r&32)return 0;if(r&384)return 1;if(r&524288)return 5;if(r&64){if(t&2)return 2}else if(r&262144)return 4;let i=e.valueDeclaration||e.declarations&&e.declarations[0];return i&&Xa(i)&&(i=WDe(i)),i&&lpe.get(i.kind)}function dqe(e,t,r){if(r===7||r===9||r===6){let i=e.getTypeAtLocation(t);if(i){let o=s=>s(i)||i.isUnion()&&i.types.some(s);if(r!==6&&o(s=>s.getConstructSignatures().length>0))return 0;if(o(s=>s.getCallSignatures().length>0)&&!o(s=>s.getProperties().length>0)||fqe(t))return r===9?11:10}}return r}function uqe(e,t){return Xa(e)&&(e=WDe(e)),Oi(e)?(!Yi(e.parent.parent.parent)||Y0(e.parent))&&e.getSourceFile()===t:Ec(e)?!Yi(e.parent)&&e.getSourceFile()===t:!1}function WDe(e){for(;;)if(Xa(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function pqe(e){let t=e.parent;return t&&(yh(t)||Qu(t)||Yv(t))}function fqe(e){for(;FDe(e);)e=e.parent;return ra(e.parent)&&e.parent.expression===e}function FDe(e){return Tu(e.parent)&&e.parent.right===e||wr(e.parent)&&e.parent.name===e}var ope,ape,spe,lpe,zDe=bt({"src/services/classifier2020.ts"(){"use strict";ai(),ope=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(ope||{}),ape=(e=>(e[e.class=0]="class",e[e.enum=1]="enum",e[e.interface=2]="interface",e[e.namespace=3]="namespace",e[e.typeParameter=4]="typeParameter",e[e.type=5]="type",e[e.parameter=6]="parameter",e[e.variable=7]="variable",e[e.enumMember=8]="enumMember",e[e.property=9]="property",e[e.function=10]="function",e[e.member=11]="member",e))(ape||{}),spe=(e=>(e[e.declaration=0]="declaration",e[e.static=1]="static",e[e.async=2]="async",e[e.readonly=3]="readonly",e[e.defaultLibrary=4]="defaultLibrary",e[e.local=5]="local",e))(spe||{}),lpe=new Map([[260,7],[169,6],[172,9],[267,3],[266,1],[306,8],[263,0],[174,11],[262,10],[218,10],[173,11],[177,9],[178,9],[171,9],[264,2],[265,5],[168,4],[303,9],[304,9]])}});function BDe(e,t,r,i){let o=e2(e)?new yY(e,t,r):e===80?new bY(80,t,r):e===81?new EY(81,t,r):new ppe(e,t,r);return o.parent=i,o.flags=i.flags&101441536,o}function mqe(e,t){if(!e2(e.kind))return Xe;let r=[];if(_F(e))return e.forEachChild(l=>{r.push(l)}),r;Xd.setText((t||e.getSourceFile()).text);let i=e.pos,o=l=>{j7(r,i,l.pos,e),r.push(l),i=l.end},s=l=>{j7(r,i,l.pos,e),r.push(_qe(l,e)),i=l.end};return gn(e.jsDoc,o),i=e.pos,e.forEachChild(o,s),j7(r,i,e.end,e),Xd.setText(void 0),r}function j7(e,t,r,i){for(Xd.resetTokenState(t);tt.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function mY(e,t){if(!e)return Xe;let r=ME.getJsDocTagsFromDeclarations(e,t);if(t&&(r.length===0||e.some(GDe))){let i=new Set;for(let o of e){let s=VDe(t,o,l=>{var d;if(!i.has(l))return i.add(l),o.kind===177||o.kind===178?l.getContextualJsDocTags(o,t):((d=l.declarations)==null?void 0:d.length)===1?l.getJsDocTags():void 0});s&&(r=[...s,...r])}}return r}function U7(e,t){if(!e)return Xe;let r=ME.getJsDocCommentsFromDeclarations(e,t);if(t&&(r.length===0||e.some(GDe))){let i=new Set;for(let o of e){let s=VDe(t,o,l=>{if(!i.has(l))return i.add(l),o.kind===177||o.kind===178?l.getContextualDocumentationComment(o,t):l.getDocumentationComment(t)});s&&(r=r.length===0?s.slice():s.concat(uD(),r))}}return r}function VDe(e,t,r){var i;let o=((i=t.parent)==null?void 0:i.kind)===176?t.parent.parent:t.parent;if(!o)return;let s=pc(t);return Wl(EN(o),l=>{let d=e.getTypeAtLocation(l),p=s&&d.symbol?e.getTypeOfSymbol(d.symbol):d,h=e.getPropertyOfType(p,t.symbol.name);return h?r(h):void 0})}function hqe(){return{getNodeConstructor:()=>yY,getTokenConstructor:()=>ppe,getIdentifierConstructor:()=>bY,getPrivateIdentifierConstructor:()=>EY,getSourceFileConstructor:()=>qDe,getSymbolConstructor:()=>HDe,getTypeConstructor:()=>KDe,getSignatureConstructor:()=>JDe,getSourceMapSourceConstructor:()=>XDe}}function CO(e){let t=!0;for(let i in e)if(Ts(e,i)&&!jDe(i)){t=!1;break}if(t)return e;let r={};for(let i in e)if(Ts(e,i)){let o=jDe(i)?i:i.charAt(0).toLowerCase()+i.substr(1);r[o]=e[i]}return r}function jDe(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function NO(e){return e?mn(e,t=>t.text).join(""):""}function H7(){return{target:1,jsx:1}}function _Y(){return wd.getSupportedErrorCodes()}function UDe(e,t,r){e.version=r,e.scriptSnapshot=t}function K7(e,t,r,i,o,s){let l=$k(e,lD(t),r,o,s);return UDe(l,t,i),l}function hY(e,t,r,i,o){if(i&&r!==e.version){let l,d=i.span.start!==0?e.text.substr(0,i.span.start):"",p=Jl(i.span)!==e.text.length?e.text.substr(Jl(i.span)):"";if(i.newLength===0)l=d&&p?d+p:d||p;else{let m=t.getText(i.span.start,i.span.start+i.newLength);l=d&&p?d+m+p:d?d+m:m+p}let h=DH(e,l,i,o);return UDe(h,t,r),h.nameTable=void 0,e!==h&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),h}let s={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return K7(e.fileName,t,s,r,!0,e.scriptKind)}function cpe(e,t=Kde(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()),r){var i;let o;r===void 0?o=0:typeof r=="boolean"?o=r?2:0:o=r;let s=new YDe(e),l,d,p=0,h=e.getCancellationToken?new QDe(e.getCancellationToken()):$De,m=e.getCurrentDirectory();poe((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function y(k){e.log&&e.log(k)}let E=uR(e),S=Cd(E),A=aue({useCaseSensitiveFileNames:()=>E,getCurrentDirectory:()=>m,getProgram:j,fileExists:ea(e,e.fileExists),readFile:ea(e,e.readFile),getDocumentPositionMapper:ea(e,e.getDocumentPositionMapper),getSourceFileLike:ea(e,e.getSourceFileLike),log:y});function N(k){let ie=l.getSourceFile(k);if(!ie){let H=new Error(`Could not find source file: '${k}'.`);throw H.ProgramFiles=l.getSourceFiles().map(ue=>ue.fileName),H}return ie}function D(){e.updateFromProject&&!e.updateFromProjectInProgress?e.updateFromProject():w()}function w(){var k,ie,H;if(R.assert(o!==2),e.getProjectVersion){let Po=e.getProjectVersion();if(Po){if(d===Po&&!((k=e.hasChangedAutomaticTypeDirectiveNames)!=null&&k.call(e)))return;d=Po}}let ue=e.getTypeRootsVersion?e.getTypeRootsVersion():0;p!==ue&&(y("TypeRoots version has changed; provide new program"),l=void 0,p=ue);let We=e.getScriptFileNames().slice(),Ne=e.getCompilationSettings()||H7(),It=e.hasInvalidatedResolutions||jm,Ct=ea(e,e.hasInvalidatedLibResolutions)||jm,Kt=ea(e,e.hasChangedAutomaticTypeDirectiveNames),En=(ie=e.getProjectReferences)==null?void 0:ie.call(e),wn,Bn={getSourceFile:ks,getSourceFileByPath:$l,getCancellationToken:()=>h,getCanonicalFileName:S,useCaseSensitiveFileNames:()=>E,getNewLine:()=>Oy(Ne),getDefaultLibFileName:Po=>e.getDefaultLibFileName(Po),writeFile:qa,getCurrentDirectory:()=>m,fileExists:Po=>e.fileExists(Po),readFile:Po=>e.readFile&&e.readFile(Po),getSymlinkCache:ea(e,e.getSymlinkCache),realpath:ea(e,e.realpath),directoryExists:Po=>Hm(Po,e),getDirectories:Po=>e.getDirectories?e.getDirectories(Po):[],readDirectory:(Po,ls,zs,ml,sd)=>(R.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(Po,ls,zs,ml,sd)),onReleaseOldSourceFile:xn,onReleaseParsedCommandLine:Io,hasInvalidatedResolutions:It,hasInvalidatedLibResolutions:Ct,hasChangedAutomaticTypeDirectiveNames:Kt,trace:ea(e,e.trace),resolveModuleNames:ea(e,e.resolveModuleNames),getModuleResolutionCache:ea(e,e.getModuleResolutionCache),createHash:ea(e,e.createHash),resolveTypeReferenceDirectives:ea(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:ea(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:ea(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:ea(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:ea(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:Ri,jsDocParsingMode:e.jsDocParsingMode},gi=Bn.getSourceFile,{getSourceFileWithCache:xi}=Pw(Bn,Po=>tl(Po,m,S),(...Po)=>gi.call(Bn,...Po));Bn.getSourceFile=xi,(H=e.setCompilerHost)==null||H.call(e,Bn);let er={useCaseSensitiveFileNames:E,fileExists:Po=>Bn.fileExists(Po),readFile:Po=>Bn.readFile(Po),directoryExists:Po=>Bn.directoryExists(Po),getDirectories:Po=>Bn.getDirectories(Po),realpath:Bn.realpath,readDirectory:(...Po)=>Bn.readDirectory(...Po),trace:Bn.trace,getCurrentDirectory:Bn.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:qa},Fr=t.getKeyForCompilationSettings(Ne),ho=new Set;if(mJ(l,We,Ne,(Po,ls)=>e.getScriptVersion(ls),Po=>Bn.fileExists(Po),It,Ct,Kt,Ri,En)){Bn=void 0,wn=void 0,ho=void 0;return}l=iz({rootNames:We,options:Ne,host:Bn,oldProgram:l,projectReferences:En}),Bn=void 0,wn=void 0,ho=void 0,A.clearCache(),l.getTypeChecker();return;function Ri(Po){let ls=tl(Po,m,S),zs=wn?.get(ls);if(zs!==void 0)return zs||void 0;let ml=e.getParsedCommandLine?e.getParsedCommandLine(Po):Kr(Po);return(wn||(wn=new Map)).set(ls,ml||!1),ml}function Kr(Po){let ls=ks(Po,100);if(ls)return ls.path=tl(Po,m,S),ls.resolvedPath=ls.path,ls.originalFileName=ls.fileName,nw(ls,er,_o(oi(Po),m),void 0,_o(Po,m))}function Io(Po,ls,zs){var ml;e.getParsedCommandLine?(ml=e.onReleaseParsedCommandLine)==null||ml.call(e,Po,ls,zs):ls&&xn(ls.sourceFile,zs)}function xn(Po,ls){let zs=t.getKeyForCompilationSettings(ls);t.releaseDocumentWithKey(Po.resolvedPath,zs,Po.scriptKind,Po.impliedNodeFormat)}function ks(Po,ls,zs,ml){return $l(Po,tl(Po,m,S),ls,zs,ml)}function $l(Po,ls,zs,ml,sd){R.assert(Bn,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");let mo=e.getScriptSnapshot(Po);if(!mo)return;let sa=eX(Po,e),ld=e.getScriptVersion(Po);if(!sd){let Es=l&&l.getSourceFileByPath(ls);if(Es){if(sa===Es.scriptKind||ho.has(Es.resolvedPath))return t.updateDocumentWithKey(Po,ls,e,Fr,mo,ld,sa,zs);t.releaseDocumentWithKey(Es.resolvedPath,t.getKeyForCompilationSettings(l.getCompilerOptions()),Es.scriptKind,Es.impliedNodeFormat),ho.add(Es.resolvedPath)}}return t.acquireDocumentWithKey(Po,ls,e,Fr,mo,ld,sa,zs)}}function j(){if(o===2){R.assert(l===void 0);return}return D(),l}function K(){var k;return(k=e.getPackageJsonAutoImportProvider)==null?void 0:k.call(e)}function Y(k,ie){let H=l.getTypeChecker(),ue=We();if(!ue)return!1;for(let It of k)for(let Ct of It.references){let Kt=Ne(Ct);if(R.assertIsDefined(Kt),ie.has(Ct)||Ls.isDeclarationOfSymbol(Kt,ue)){ie.add(Ct),Ct.isDefinition=!0;let En=Zz(Ct,A,ea(e,e.fileExists));En&&ie.add(En)}else Ct.isDefinition=!1}return!0;function We(){for(let It of k)for(let Ct of It.references){if(ie.has(Ct)){let En=Ne(Ct);return R.assertIsDefined(En),H.getSymbolAtLocation(En)}let Kt=Zz(Ct,A,ea(e,e.fileExists));if(Kt&&ie.has(Kt)){let En=Ne(Kt);if(En)return H.getSymbolAtLocation(En)}}}function Ne(It){let Ct=l.getSourceFile(It.fileName);if(!Ct)return;let Kt=Fu(Ct,It.textSpan.start);return Ls.Core.getAdjustedNode(Kt,{use:Ls.FindReferencesUse.References})}}function B(){if(l){let k=t.getKeyForCompilationSettings(l.getCompilerOptions());gn(l.getSourceFiles(),ie=>t.releaseDocumentWithKey(ie.resolvedPath,k,ie.scriptKind,ie.impliedNodeFormat)),l=void 0}}function ce(){B(),e=void 0}function z(k){return D(),l.getSyntacticDiagnostics(N(k),h).slice()}function ee(k){D();let ie=N(k),H=l.getSemanticDiagnostics(ie,h);if(!Af(l.getCompilerOptions()))return H.slice();let ue=l.getDeclarationDiagnostics(ie,h);return[...H,...ue]}function me(k){return D(),MX(N(k),l,h)}function ge(){return D(),[...l.getOptionsDiagnostics(h),...l.getGlobalDiagnostics(h)]}function q(k,ie,H=Cf,ue){let We={...H,includeCompletionsForModuleExports:H.includeCompletionsForModuleExports||H.includeExternalModuleExports,includeCompletionsWithInsertText:H.includeCompletionsWithInsertText||H.includeInsertTextCompletions};return D(),C1.getCompletionsAtPosition(e,l,y,N(k),ie,We,H.triggerCharacter,H.triggerKind,h,ue&&kc.getFormatContext(ue,e),H.includeSymbol)}function J(k,ie,H,ue,We,Ne=Cf,It){return D(),C1.getCompletionEntryDetails(l,y,N(k),ie,{name:H,source:We,data:It},e,ue&&kc.getFormatContext(ue,e),Ne,h)}function re(k,ie,H,ue,We=Cf){return D(),C1.getCompletionEntrySymbol(l,y,N(k),ie,{name:H,source:ue},e,We)}function pe(k,ie){D();let H=N(k),ue=Fu(H,ie);if(ue===H)return;let We=l.getTypeChecker(),Ne=xe(ue),It=bqe(Ne,We);if(!It||We.isUnknownSymbol(It)){let Bn=fe(H,Ne,ie)?We.getTypeAtLocation(Ne):void 0;return Bn&&{kind:"",kindModifiers:"",textSpan:xu(Ne,H),displayParts:We.runWithCancellationToken(h,gi=>aO(gi,Bn,XT(Ne))),documentation:Bn.symbol?Bn.symbol.getDocumentationComment(We):void 0,tags:Bn.symbol?Bn.symbol.getJsDocTags(We):void 0}}let{symbolKind:Ct,displayParts:Kt,documentation:En,tags:wn}=We.runWithCancellationToken(h,Bn=>Yy.getSymbolDisplayPartsDocumentationAndSymbolKind(Bn,It,H,XT(Ne),Ne));return{kind:Ct,kindModifiers:Yy.getSymbolModifiers(We,It),textSpan:xu(Ne,H),displayParts:Kt,documentation:En,tags:wn}}function xe(k){return U0(k.parent)&&k.pos===k.parent.pos?k.parent.expression:RR(k.parent)&&k.pos===k.parent.pos||Kx(k.parent)&&k.parent.name===k||Xm(k.parent)?k.parent:k}function fe(k,ie,H){switch(ie.kind){case 80:return!Eq(ie)&&!Sq(ie)&&!Cg(ie.parent);case 211:case 166:return!Uy(k,H);case 110:case 197:case 108:case 202:return!0;case 236:return Kx(ie);default:return!1}}function ne(k,ie,H,ue){return D(),ID.getDefinitionAtPosition(l,N(k),ie,H,ue)}function he(k,ie){return D(),ID.getDefinitionAndBoundSpan(l,N(k),ie)}function Ce(k,ie){return D(),ID.getTypeDefinitionAtPosition(l.getTypeChecker(),N(k),ie)}function Ge(k,ie){return D(),Ls.getImplementationsAtPosition(l,h,l.getSourceFiles(),N(k),ie)}function ve(k,ie,H){let ue=fa(k);R.assert(H.some(It=>fa(It)===ue)),D();let We=to(H,It=>l.getSourceFile(It)),Ne=N(k);return E7.getDocumentHighlights(l,h,Ne,ie,We)}function Ie(k,ie,H,ue,We){D();let Ne=N(k),It=zz(Fu(Ne,ie));if(vB.nodeIsEligibleForRename(It))if(Fe(It)&&(P_(It.parent)||J0(It.parent))&&cR(It.escapedText)){let{openingElement:Ct,closingElement:Kt}=It.parent.parent;return[Ct,Kt].map(En=>{let wn=xu(En.tagName,Ne);return{fileName:Ne.fileName,textSpan:wn,...Ls.toContextSpan(wn,Ne,En.parent)}})}else{let Ct=af(Ne,We??Cf),Kt=typeof We=="boolean"?We:We?.providePrefixAndSuffixTextForRename;return Le(It,ie,{findInStrings:H,findInComments:ue,providePrefixAndSuffixTextForRename:Kt,use:Ls.FindReferencesUse.Rename},(En,wn,Bn)=>Ls.toRenameLocation(En,wn,Bn,Kt||!1,Ct))}}function De(k,ie){return D(),Le(Fu(N(k),ie),ie,{use:Ls.FindReferencesUse.References},Ls.toReferenceEntry)}function Le(k,ie,H,ue){D();let We=H&&H.use===Ls.FindReferencesUse.Rename?l.getSourceFiles().filter(Ne=>!l.isSourceFileDefaultLibrary(Ne)):l.getSourceFiles();return Ls.findReferenceOrRenameEntries(l,h,We,k,ie,H,ue)}function Et(k,ie){return D(),Ls.findReferencedSymbols(l,h,l.getSourceFiles(),N(k),ie)}function be(k){return D(),Ls.Core.getReferencesForFileName(k,l,l.getSourceFiles()).map(Ls.toReferenceEntry)}function ze(k,ie,H,ue=!1,We=!1){D();let Ne=H?[N(H)]:l.getSourceFiles();return pRe(Ne,l.getTypeChecker(),h,k,ie,ue,We)}function tt(k,ie,H){D();let ue=N(k),We=e.getCustomTransformers&&e.getCustomTransformers();return tce(l,ue,!!ie,h,We,H)}function Wt(k,ie,{triggerReason:H}=Cf){D();let ue=N(k);return KO.getSignatureHelpItems(l,ue,ie,H,h)}function _t(k){return s.getCurrentSourceFile(k)}function Je(k,ie,H){let ue=s.getCurrentSourceFile(k),We=Fu(ue,ie);if(We===ue)return;switch(We.kind){case 211:case 166:case 11:case 97:case 112:case 106:case 108:case 110:case 197:case 80:break;default:return}let Ne=We;for(;;)if(oD(Ne)||tde(Ne))Ne=Ne.parent;else if(Aq(Ne))if(Ne.parent.parent.kind===267&&Ne.parent.parent.body===Ne.parent)Ne=Ne.parent.parent.name;else break;else break;return dc(Ne.getStart(),We.getEnd())}function ft(k,ie){let H=s.getCurrentSourceFile(k);return TY.spanInSourceFileAtLocation(H,ie)}function Zt(k){return hRe(s.getCurrentSourceFile(k),h)}function en(k){return gRe(s.getCurrentSourceFile(k),h)}function Dn(k,ie,H){return D(),(H||"original")==="2020"?ODe(l,h,N(k),ie):Ude(l.getTypeChecker(),h,N(k),l.getClassifiableNames(),ie)}function Kn(k,ie,H){return D(),(H||"original")==="original"?IX(l.getTypeChecker(),h,N(k),l.getClassifiableNames(),ie):ipe(l,h,N(k),ie)}function pn(k,ie){return Hde(h,s.getCurrentSourceFile(k),ie)}function Yt(k,ie){return xX(h,s.getCurrentSourceFile(k),ie)}function qt(k){let ie=s.getCurrentSourceFile(k);return vQ.collectElements(ie,h)}let hi=new Map(Object.entries({19:20,21:22,23:24,32:30}));hi.forEach((k,ie)=>hi.set(k.toString(),Number(ie)));function uo(k,ie){let H=s.getCurrentSourceFile(k),ue=sD(H,ie),We=ue.getStart(H)===ie?hi.get(ue.kind.toString()):void 0,Ne=We&&hs(ue.parent,We,H);return Ne?[xu(ue,H),xu(Ne,H)].sort((It,Ct)=>It.start-Ct.start):Xe}function Li(k,ie,H){let ue=Ks(),We=CO(H),Ne=s.getCurrentSourceFile(k);y("getIndentationAtPosition: getCurrentSourceFile: "+(Ks()-ue)),ue=Ks();let It=kc.SmartIndenter.getIndentation(ie,Ne,We);return y("getIndentationAtPosition: computeIndentation : "+(Ks()-ue)),It}function Eo(k,ie,H,ue){let We=s.getCurrentSourceFile(k);return kc.formatSelection(ie,H,We,kc.getFormatContext(CO(ue),e))}function Qn(k,ie){return kc.formatDocument(s.getCurrentSourceFile(k),kc.getFormatContext(CO(ie),e))}function Ur(k,ie,H,ue){let We=s.getCurrentSourceFile(k),Ne=kc.getFormatContext(CO(ue),e);if(!Uy(We,ie))switch(H){case"{":return kc.formatOnOpeningCurly(ie,We,Ne);case"}":return kc.formatOnClosingCurly(ie,We,Ne);case";":return kc.formatOnSemicolon(ie,We,Ne);case` +`:return kc.formatOnEnter(ie,We,Ne)}return[]}function Er(k,ie,H,ue,We,Ne=Cf){D();let It=N(k),Ct=dc(ie,H),Kt=kc.getFormatContext(We,e);return va(_0(ue,Ay,Zs),En=>(h.throwIfCancellationRequested(),wd.getFixes({errorCode:En,sourceFile:It,span:Ct,program:l,host:e,cancellationToken:h,formatContext:Kt,preferences:Ne})))}function on(k,ie,H,ue=Cf){D(),R.assert(k.type==="file");let We=N(k.fileName),Ne=kc.getFormatContext(H,e);return wd.getAllFixes({fixId:ie,sourceFile:We,program:l,host:e,cancellationToken:h,formatContext:Ne,preferences:ue})}function Ye(k,ie,H=Cf){D(),R.assert(k.type==="file");let ue=N(k.fileName),We=kc.getFormatContext(ie,e),Ne=k.mode??(k.skipDestructiveCodeActions?"SortAndCombine":"All");return Rm.organizeImports(ue,We,e,l,H,Ne)}function Ot(k,ie,H,ue=Cf){return qde(j(),k,ie,e,kc.getFormatContext(H,e),ue,A)}function In(k,ie){let H=typeof k=="string"?ie:k;return So(H)?Promise.all(H.map(ue=>si(ue))):si(H)}function si(k){let ie=H=>tl(H,m,S);return R.assertEqual(k.type,"install package"),e.installPackage?e.installPackage({fileName:ie(k.file),packageName:k.packageName}):Promise.reject("Host does not implement `installPackage`")}function yi(k,ie,H,ue){let We=ue?kc.getFormatContext(ue,e).options:void 0;return ME.getDocCommentTemplateAtPosition(Jy(e,We),s.getCurrentSourceFile(k),ie,H)}function $i(k,ie,H){if(H===60)return!1;let ue=s.getCurrentSourceFile(k);if(y1(ue,ie))return!1;if(lde(ue,ie))return H===123;if(Nq(ue,ie))return!1;switch(H){case 39:case 34:case 96:return!Uy(ue,ie)}return!0}function Ao(k,ie){let H=s.getCurrentSourceFile(k),ue=Tc(ie,H);if(!ue)return;let We=ue.kind===32&&P_(ue.parent)?ue.parent.parent:UI(ue)&&og(ue.parent)?ue.parent:void 0;if(We&<(We))return{newText:``};let Ne=ue.kind===32&&i1(ue.parent)?ue.parent.parent:UI(ue)&&q0(ue.parent)?ue.parent:void 0;if(Ne&&Dt(Ne))return{newText:""}}function da(k,ie){let H=s.getCurrentSourceFile(k),ue=Tc(ie,H);if(!ue||ue.parent.kind===312)return;let We="[a-zA-Z0-9:\\-\\._$]*";if(q0(ue.parent.parent)){let Ne=ue.parent.parent.openingFragment,It=ue.parent.parent.closingFragment;if(Gx(Ne)||Gx(It))return;let Ct=Ne.getStart(H)+1,Kt=It.getStart(H)+2;return ie!==Ct&&ie!==Kt?void 0:{ranges:[{start:Ct,length:0},{start:Kt,length:0}],wordPattern:We}}else{let Ne=Fn(ue.parent,xi=>!!(P_(xi)||J0(xi)));if(!Ne)return;R.assert(P_(Ne)||J0(Ne),"tag should be opening or closing element");let It=Ne.parent.openingElement,Ct=Ne.parent.closingElement,Kt=It.tagName.getStart(H),En=It.tagName.end,wn=Ct.tagName.getStart(H),Bn=Ct.tagName.end;return Kt===It.getStart(H)||wn===Ct.getStart(H)||En===It.getEnd()||Bn===Ct.getEnd()||!(Kt<=ie&&ie<=En||wn<=ie&&ie<=Bn)||It.tagName.getText(H)!==Ct.tagName.getText(H)?void 0:{ranges:[{start:Kt,length:En-Kt},{start:wn,length:Bn-wn}],wordPattern:We}}}function Ba(k,ie){return{lineStarts:k.getLineStarts(),firstLine:k.getLineAndCharacterOfPosition(ie.pos).line,lastLine:k.getLineAndCharacterOfPosition(ie.end).line}}function vn(k,ie,H){let ue=s.getCurrentSourceFile(k),We=[],{lineStarts:Ne,firstLine:It,lastLine:Ct}=Ba(ue,ie),Kt=H||!1,En=Number.MAX_VALUE,wn=new Map,Bn=new RegExp(/\S/),gi=Vz(ue,Ne[It]),xi=gi?"{/*":"//";for(let er=It;er<=Ct;er++){let Fr=ue.text.substring(Ne[er],ue.getLineEndOfPosition(Ne[er])),ho=Bn.exec(Fr);ho&&(En=Math.min(En,ho.index),wn.set(er.toString(),ho.index),Fr.substr(ho.index,xi.length)!==xi&&(Kt=H===void 0||H))}for(let er=It;er<=Ct;er++){if(It!==Ct&&Ne[er]===ie.end)continue;let Fr=wn.get(er.toString());Fr!==void 0&&(gi?We.push(...kn(k,{pos:Ne[er]+En,end:ue.getLineEndOfPosition(Ne[er])},Kt,gi)):Kt?We.push({newText:xi,span:{length:0,start:Ne[er]+En}}):ue.text.substr(Ne[er]+Fr,xi.length)===xi&&We.push({newText:"",span:{length:xi.length,start:Ne[er]+Fr}}))}return We}function kn(k,ie,H,ue){var We;let Ne=s.getCurrentSourceFile(k),It=[],{text:Ct}=Ne,Kt=!1,En=H||!1,wn=[],{pos:Bn}=ie,gi=ue!==void 0?ue:Vz(Ne,Bn),xi=gi?"{/*":"/*",er=gi?"*/}":"*/",Fr=gi?"\\{\\/\\*":"\\/\\*",ho=gi?"\\*\\/\\}":"\\*\\/";for(;Bn<=ie.end;){let Pi=Ct.substr(Bn,xi.length)===xi?xi.length:0,Ri=Uy(Ne,Bn+Pi);if(Ri)gi&&(Ri.pos--,Ri.end++),wn.push(Ri.pos),Ri.kind===3&&wn.push(Ri.end),Kt=!0,Bn=Ri.end+1;else{let Kr=Ct.substring(Bn,ie.end).search(`(${Fr})|(${ho})`);En=H!==void 0?H:En||!bde(Ct,Bn,Kr===-1?ie.end:Bn+Kr),Bn=Kr===-1?ie.end+1:Bn+Kr+er.length}}if(En||!Kt){((We=Uy(Ne,ie.pos))==null?void 0:We.kind)!==2&&bv(wn,ie.pos,Zs),bv(wn,ie.end,Zs);let Pi=wn[0];Ct.substr(Pi,xi.length)!==xi&&It.push({newText:xi,span:{length:0,start:Pi}});for(let Ri=1;Ri0?Pi-er.length:0,Kr=Ct.substr(Ri,er.length)===er?er.length:0;It.push({newText:"",span:{length:xi.length,start:Pi-Kr}})}return It}function Be(k,ie){let H=s.getCurrentSourceFile(k),{firstLine:ue,lastLine:We}=Ba(H,ie);return ue===We&&ie.pos!==ie.end?kn(k,ie,!0):vn(k,ie,!0)}function ct(k,ie){let H=s.getCurrentSourceFile(k),ue=[],{pos:We}=ie,{end:Ne}=ie;We===Ne&&(Ne+=Vz(H,We)?2:1);for(let It=We;It<=Ne;It++){let Ct=Uy(H,It);if(Ct){switch(Ct.kind){case 2:ue.push(...vn(k,{end:Ct.end,pos:Ct.pos+1},!1));break;case 3:ue.push(...kn(k,{end:Ct.end,pos:Ct.pos+1},!1))}It=Ct.end+1}}return ue}function lt({openingElement:k,closingElement:ie,parent:H}){return!EE(k.tagName,ie.tagName)||og(H)&&EE(k.tagName,H.openingElement.tagName)&<(H)}function Dt({closingFragment:k,parent:ie}){return!!(k.flags&262144)||q0(ie)&&Dt(ie)}function se(k,ie,H){let ue=s.getCurrentSourceFile(k),We=kc.getRangeOfEnclosingComment(ue,ie);return We&&(!H||We.kind===3)?tb(We):void 0}function ke(k,ie){D();let H=N(k);h.throwIfCancellationRequested();let ue=H.text,We=[];if(ie.length>0&&!Kt(H.fileName)){let En=It(),wn;for(;wn=En.exec(ue);){h.throwIfCancellationRequested();let Bn=3;R.assert(wn.length===ie.length+Bn);let gi=wn[1],xi=wn.index+gi.length;if(!Uy(H,xi))continue;let er;for(let ho=0;ho"("+Ne(Ri.text)+")").join("|")+")",er=/(?:$|\*\/)/.source,Fr=/(?:.*?)/.source,ho="("+xi+Fr+")",Pi=gi+ho+er;return new RegExp(Pi,"gim")}function Ct(En){return En>=97&&En<=122||En>=65&&En<=90||En>=48&&En<=57}function Kt(En){return En.includes("/node_modules/")}}function st(k,ie,H){return D(),vB.getRenameInfo(l,N(k),ie,H||{})}function G(k,ie,H,ue,We,Ne){let[It,Ct]=typeof ie=="number"?[ie,void 0]:[ie.pos,ie.end];return{file:k,startPosition:It,endPosition:Ct,program:j(),host:e,formatContext:kc.getFormatContext(ue,e),cancellationToken:h,preferences:H,triggerReason:We,kind:Ne}}function et(k,ie,H){return{file:k,program:j(),host:e,span:ie,preferences:H,cancellationToken:h}}function Tt(k,ie){return SQ.getSmartSelectionRange(ie,s.getCurrentSourceFile(k))}function He(k,ie,H=Cf,ue,We,Ne){D();let It=N(k);return T1.getApplicableRefactors(G(It,ie,H,Cf,ue,We),Ne)}function pt(k,ie,H=Cf){D();let ue=N(k),We=R.checkDefined(l.getSourceFiles()),Ne=jN(k),It=TO(G(ue,ie,H,Cf)),Ct=wue(It?.all),Kt=to(We,En=>{let wn=jN(En.fileName);return!l?.isSourceFileFromExternalLibrary(ue)&&!(ue===N(En.fileName)||Ne===".ts"&&wn===".d.ts"||Ne===".d.ts"&&ao(nc(En.fileName),"lib.")&&wn===".d.ts")&&(Ne===wn||(Ne===".tsx"&&wn===".ts"||Ne===".jsx"&&wn===".js")&&!Ct)?En.fileName:void 0});return{newFileName:kue(ue,l,e,It),files:Kt}}function Ft(k,ie,H,ue,We,Ne=Cf,It){D();let Ct=N(k);return T1.getEditsForRefactor(G(Ct,H,Ne,ie),ue,We,It)}function hn(k,ie){return ie===0?{line:0,character:0}:A.toLineColumnOffset(k,ie)}function dn(k,ie){D();let H=A1.resolveCallHierarchyDeclaration(l,Fu(N(k),ie));return H&&uX(H,ue=>A1.createCallHierarchyItem(l,ue))}function un(k,ie){D();let H=N(k),ue=pX(A1.resolveCallHierarchyDeclaration(l,ie===0?H:Fu(H,ie)));return ue?A1.getIncomingCalls(l,ue,h):[]}function U(k,ie){D();let H=N(k),ue=pX(A1.resolveCallHierarchyDeclaration(l,ie===0?H:Fu(H,ie)));return ue?A1.getOutgoingCalls(l,ue):[]}function Me(k,ie,H=Cf){D();let ue=N(k);return _Q.provideInlayHints(et(ue,ie,H))}let Pt={dispose:ce,cleanupSemanticCache:B,getSyntacticDiagnostics:z,getSemanticDiagnostics:ee,getSuggestionDiagnostics:me,getCompilerOptionsDiagnostics:ge,getSyntacticClassifications:pn,getSemanticClassifications:Dn,getEncodedSyntacticClassifications:Yt,getEncodedSemanticClassifications:Kn,getCompletionsAtPosition:q,getCompletionEntryDetails:J,getCompletionEntrySymbol:re,getSignatureHelpItems:Wt,getQuickInfoAtPosition:pe,getDefinitionAtPosition:ne,getDefinitionAndBoundSpan:he,getImplementationAtPosition:Ge,getTypeDefinitionAtPosition:Ce,getReferencesAtPosition:De,findReferences:Et,getFileReferences:be,getDocumentHighlights:ve,getNameOrDottedNameSpan:Je,getBreakpointStatementAtPosition:ft,getNavigateToItems:ze,getRenameInfo:st,getSmartSelectionRange:Tt,findRenameLocations:Ie,getNavigationBarItems:Zt,getNavigationTree:en,getOutliningSpans:qt,getTodoComments:ke,getBraceMatchingAtPosition:uo,getIndentationAtPosition:Li,getFormattingEditsForRange:Eo,getFormattingEditsForDocument:Qn,getFormattingEditsAfterKeystroke:Ur,getDocCommentTemplateAtPosition:yi,isValidBraceCompletionAtPosition:$i,getJsxClosingTagAtPosition:Ao,getLinkedEditingRangeAtPosition:da,getSpanOfEnclosingComment:se,getCodeFixesAtPosition:Er,getCombinedCodeFix:on,applyCodeActionCommand:In,organizeImports:Ye,getEditsForFileRename:Ot,getEmitOutput:tt,getNonBoundSourceFile:_t,getProgram:j,getCurrentProgram:()=>l,getAutoImportProvider:K,updateIsDefinitionOfReferencedSymbols:Y,getApplicableRefactors:He,getEditsForRefactor:Ft,getMoveToRefactoringFileSuggestions:pt,toLineColumnOffset:hn,getSourceMapper:()=>A,clearSourceMapperCache:()=>A.clearCache(),prepareCallHierarchy:dn,provideCallHierarchyIncomingCalls:un,provideCallHierarchyOutgoingCalls:U,toggleLineComment:vn,toggleMultilineComment:kn,commentSelection:Be,uncommentSelection:ct,provideInlayHints:Me,getSupportedCodeFixes:_Y};switch(o){case 0:break;case 1:fpe.forEach(k=>Pt[k]=()=>{throw new Error(`LanguageService Operation: ${k} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:ZDe.forEach(k=>Pt[k]=()=>{throw new Error(`LanguageService Operation: ${k} not allowed in LanguageServiceMode.Syntactic`)});break;default:R.assertNever(o)}return Pt}function gY(e){return e.nameTable||gqe(e),e.nameTable}function gqe(e){let t=e.nameTable=new Map;e.forEachChild(function r(i){if(Fe(i)&&!Sq(i)&&i.escapedText||Qp(i)&&yqe(i)){let o=AN(i);t.set(o,t.get(o)===void 0?i.pos:-1)}else if(Ki(i)){let o=i.escapedText;t.set(o,t.get(o)===void 0?i.pos:-1)}if(Bo(i,r),kp(i))for(let o of i.jsDoc)Bo(o,r)})}function yqe(e){return Lg(e)||e.parent.kind===283||Eqe(e)||U2(e)}function PO(e){let t=vqe(e);return t&&(La(t.parent)||X0(t.parent))?t:void 0}function vqe(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===167)return WV(e.parent.parent)?e.parent.parent:void 0;case 80:return WV(e.parent)&&(e.parent.parent.kind===210||e.parent.parent.kind===292)&&e.parent.name===e?e.parent:void 0}}function bqe(e,t){let r=PO(e);if(r){let i=t.getContextualType(r.parent),o=i&&J7(r,t,i,!1);if(o&&o.length===1)return Va(o)}return t.getSymbolAtLocation(e)}function J7(e,t,r,i){let o=rO(e.name);if(!o)return Xe;if(!r.isUnion()){let d=r.getProperty(o);return d?[d]:Xe}let s=La(e.parent)||X0(e.parent)?jr(r.types,d=>!t.isTypeInvalidDueToUnionDiscriminant(d,e.parent)):r.types,l=to(s,d=>d.getProperty(o));if(i&&(l.length===0||l.length===r.types.length)){let d=r.getProperty(o);if(d)return[d]}return!s.length&&!l.length?to(r.types,d=>d.getProperty(o)):_0(l,Ay)}function Eqe(e){return e&&e.parent&&e.parent.kind===212&&e.parent.argumentExpression===e}function dpe(e){if(md)return $r(oi(fa(md.getExecutingFilePath())),KL(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var upe,yY,vY,HDe,ppe,bY,EY,KDe,JDe,qDe,XDe,YDe,$De,QDe,SY,fpe,ZDe,Sqe=bt({"src/services/services.ts"(){"use strict";ai(),_Re(),ORe(),Th(),Hxe(),zDe(),upe="0.8",yY=class{constructor(e,t,r){this.pos=t,this.end=r,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}assertHasRealPosition(e){R.assert(!Jm(this.pos)&&!Jm(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return Gn(this)}getStart(e,t){return this.assertHasRealPosition(),aE(this,e,t)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,t){return this.getChildren(t)[e]}getChildren(e){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=mqe(this,e))}getFirstToken(e){this.assertHasRealPosition();let t=this.getChildren(e);if(!t.length)return;let r=Vr(t,i=>i.kind<316||i.kind>357);return r.kind<166?r:r.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();let t=this.getChildren(e),r=$s(t);if(r)return r.kind<166?r:r.getLastToken(e)}forEachChild(e,t){return Bo(this,e,t)}},vY=class{constructor(e,t){this.pos=e,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}getSourceFile(){return Gn(this)}getStart(e,t){return aE(this,e,t)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(e){return this.getEnd()-this.getStart(e)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(e){return this.getStart(e)-this.pos}getFullText(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(e){return this.getChildren()[e]}getChildren(){return this.kind===1&&this.jsDoc||Xe}getFirstToken(){}getLastToken(){}forEachChild(){}},HDe=class{constructor(e,t){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=t}getFlags(){return this.flags}get name(){return yl(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=Xe,!this.declarations&&dh(this)&&this.links.target&&dh(this.links.target)&&this.links.target.links.tupleLabelDeclaration){let t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=U7([t],e)}else this.documentationComment=U7(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(Mv(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=U7(jr(this.declarations,Mv),t)),Nn(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(Ny(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=U7(jr(this.declarations,Ny),t)),Nn(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return this.tags===void 0&&(this.tags=mY(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(Mv(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=mY(jr(this.declarations,Mv),t)),Nn(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(Ny(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=mY(jr(this.declarations,Ny),t)),Nn(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},ppe=class extends vY{constructor(e,t,r){super(t,r),this.kind=e}},bY=class extends vY{constructor(e,t,r){super(t,r),this.kind=80}get text(){return yr(this)}},bY.prototype.kind=80,EY=class extends vY{constructor(e,t,r){super(t,r),this.kind=81}get text(){return yr(this)}},EY.prototype.kind=81,KDe=class{constructor(e,t){this.checker=e,this.flags=t}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(e){return this.checker.getPropertyOfType(this,e)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return!!(this.flags&1048576)}isIntersection(){return!!(this.flags&2097152)}isUnionOrIntersection(){return!!(this.flags&3145728)}isLiteral(){return!!(this.flags&2432)}isStringLiteral(){return!!(this.flags&128)}isNumberLiteral(){return!!(this.flags&256)}isTypeParameter(){return!!(this.flags&262144)}isClassOrInterface(){return!!(kr(this)&3)}isClass(){return!!(kr(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(kr(this)&4)return this.checker.getTypeArguments(this)}},JDe=class{constructor(e,t){this.checker=e,this.flags=t}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){let t=this.checker.getParameterType(this,e);if(t.isIndexType()&&YN(t.type)){let r=t.type.getConstraint();if(r)return this.checker.getIndexType(r)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=U7(pI(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=mY(pI(this.declaration),this.checker))}},qDe=class extends yY{constructor(e,t,r){super(e,t,r),this.kind=312}update(e,t){return DH(this,e,t)}getLineAndCharacterOfPosition(e){return gs(this,e)}getLineStarts(){return Rg(this)}getPositionOfLineAndCharacter(e,t,r){return XW(Rg(this),e,t,this.text,r)}getLineEndOfPosition(e){let{line:t}=this.getLineAndCharacterOfPosition(e),r=this.getLineStarts(),i;t+1>=r.length&&(i=this.getEnd()),i||(i=r[t+1]-1);let o=this.getFullText();return o[i]===` +`&&o[i-1]==="\r"?i-1:i}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=Xp();return this.forEachChild(o),e;function t(s){let l=i(s);l&&e.add(l,s)}function r(s){let l=e.get(s);return l||e.set(s,l=[]),l}function i(s){let l=eF(s);return l&&(Ya(l)&&wr(l.expression)?l.expression.name.text:rc(l)?rO(l):void 0)}function o(s){switch(s.kind){case 262:case 218:case 174:case 173:let l=s,d=i(l);if(d){let m=r(d),y=$s(m);y&&l.parent===y.parent&&l.symbol===y.symbol?l.body&&!y.body&&(m[m.length-1]=l):m.push(l)}Bo(s,o);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(s),Bo(s,o);break;case 169:if(!Qr(s,31))break;case 260:case 208:{let m=s;if($o(m.name)){Bo(m.name,o);break}m.initializer&&o(m.initializer)}case 306:case 172:case 171:t(s);break;case 278:let p=s;p.exportClause&&(xf(p.exportClause)?gn(p.exportClause.elements,o):o(p.exportClause.name));break;case 272:let h=s.importClause;h&&(h.name&&t(h.name),h.namedBindings&&(h.namedBindings.kind===274?t(h.namedBindings):gn(h.namedBindings.elements,o)));break;case 226:zl(s)!==0&&t(s);default:Bo(s,o)}}}},XDe=class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}getLineAndCharacterOfPosition(e){return gs(this,e)}},YDe=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,r,i,o,s,l,d,p;let h=this.host.getScriptSnapshot(e);if(!h)throw new Error("Could not find file: '"+e+"'.");let m=eX(e,this.host),y=this.host.getScriptVersion(e),E;if(this.currentFileName!==e){let S={languageVersion:99,impliedNodeFormat:kw(tl(e,this.host.getCurrentDirectory(),((i=(r=(t=this.host).getCompilerHost)==null?void 0:r.call(t))==null?void 0:i.getCanonicalFileName)||Ly(this.host)),(p=(d=(l=(s=(o=this.host).getCompilerHost)==null?void 0:s.call(o))==null?void 0:l.getModuleResolutionCache)==null?void 0:d.call(l))==null?void 0:p.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:ak(this.host.getCompilationSettings()),jsDocParsingMode:0};E=K7(e,h,S,y,!0,m)}else if(this.currentFileVersion!==y){let S=h.getChangeRange(this.currentFileScriptSnapshot);E=hY(this.currentSourceFile,h,y,S)}return E&&(this.currentFileVersion=y,this.currentFileName=e,this.currentFileScriptSnapshot=h,this.currentSourceFile=E),this.currentSourceFile}},$De={isCancellationRequested:jm,throwIfCancellationRequested:qa},QDe=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=rr)==null||e.instant(rr.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new xx}},SY=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){let e=Ks();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=rr)==null||e.instant(rr.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new xx}},fpe=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],ZDe=[...fpe,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],doe(hqe())}});function eCe(e,t,r){let i=[];r=WX(r,i);let o=So(e)?e:[e],s=Iw(void 0,void 0,L,r,o,t,!0);return s.diagnostics=bo(s.diagnostics,i),s}var Tqe=bt({"src/services/transform.ts"(){"use strict";ai()}});function Aqe(e,t){if(e.isDeclarationFile)return;let r=so(e,t),i=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(r.getStart(e)).line>i){let y=Tc(r.pos,e);if(!y||e.getLineAndCharacterOfPosition(y.getEnd()).line!==i)return;r=y}if(r.flags&33554432)return;return m(r);function o(y,E){let S=GT(y)?sI(y.modifiers,yd):void 0,A=S?Pa(e.text,S.end):y.getStart(e);return dc(A,(E||y).getEnd())}function s(y,E){return o(y,sS(E,E.parent,e))}function l(y,E){return y&&i===e.getLineAndCharacterOfPosition(y.getStart(e)).line?m(y):m(E)}function d(y,E,S){if(y){let A=y.indexOf(E);if(A>=0){let N=A,D=A+1;for(;N>0&&S(y[N-1]);)N--;for(;D0)return m(he.declarations[0])}else return m(ne.initializer)}function B(ne){if(ne.initializer)return Y(ne);if(ne.condition)return o(ne.condition);if(ne.incrementor)return o(ne.incrementor)}function ce(ne){let he=gn(ne.elements,Ce=>Ce.kind!==232?Ce:void 0);return he?m(he):ne.parent.kind===208?o(ne.parent):E(ne.parent)}function z(ne){R.assert(ne.kind!==207&&ne.kind!==206);let he=ne.kind===209?ne.elements:ne.properties,Ce=gn(he,Ge=>Ge.kind!==232?Ge:void 0);return Ce?m(Ce):o(ne.parent.kind===226?ne.parent:ne)}function ee(ne){switch(ne.parent.kind){case 266:let he=ne.parent;return l(Tc(ne.pos,e,ne.parent),he.members.length?he.members[0]:he.getLastToken(e));case 263:let Ce=ne.parent;return l(Tc(ne.pos,e,ne.parent),Ce.members.length?Ce.members[0]:Ce.getLastToken(e));case 269:return l(ne.parent.parent,ne.parent.clauses[0])}return m(ne.parent)}function me(ne){switch(ne.parent.kind){case 268:if(Gg(ne.parent.parent)!==1)return;case 266:case 263:return o(ne);case 241:if(R0(ne.parent))return o(ne);case 299:return m($s(ne.parent.statements));case 269:let he=ne.parent,Ce=$s(he.clauses);return Ce?m($s(Ce.statements)):void 0;case 206:let Ge=ne.parent;return m($s(Ge.elements)||Ge);default:if(Hy(ne.parent)){let ve=ne.parent;return o($s(ve.properties)||ve)}return m(ne.parent)}}function ge(ne){switch(ne.parent.kind){case 207:let he=ne.parent;return o($s(he.elements)||he);default:if(Hy(ne.parent)){let Ce=ne.parent;return o($s(Ce.elements)||Ce)}return m(ne.parent)}}function q(ne){return ne.parent.kind===246||ne.parent.kind===213||ne.parent.kind===214?p(ne):ne.parent.kind===217?h(ne):m(ne.parent)}function J(ne){switch(ne.parent.kind){case 218:case 262:case 219:case 174:case 173:case 177:case 178:case 176:case 247:case 246:case 248:case 250:case 213:case 214:case 217:return p(ne);default:return m(ne.parent)}}function re(ne){return Yo(ne.parent)||ne.parent.kind===303||ne.parent.kind===169?p(ne):m(ne.parent)}function pe(ne){return ne.parent.kind===216?h(ne):m(ne.parent)}function xe(ne){return ne.parent.kind===246?s(ne,ne.parent.expression):m(ne.parent)}function fe(ne){return ne.parent.kind===250?h(ne):m(ne.parent)}}}var Iqe=bt({"src/services/breakpoints.ts"(){"use strict";ai()}}),TY={};Ra(TY,{spanInSourceFileAtLocation:()=>Aqe});var xqe=bt({"src/services/_namespaces/ts.BreakpointResolver.ts"(){"use strict";Iqe()}});function Rqe(e){return(Ms(e)||$c(e))&&ou(e)}function tCe(e){return Vo(e)||Oi(e)}function MO(e){return(Ms(e)||Fs(e)||$c(e))&&tCe(e.parent)&&e===e.parent.initializer&&Fe(e.parent.name)&&(!!(Dy(e.parent)&2)||Vo(e.parent))}function nCe(e){return Yi(e)||ql(e)||Ec(e)||Ms(e)||Sc(e)||$c(e)||Al(e)||Ul(e)||hh(e)||Zp(e)||hp(e)}function vD(e){return Yi(e)||ql(e)&&Fe(e.name)||Ec(e)||Sc(e)||Al(e)||Ul(e)||hh(e)||Zp(e)||hp(e)||Rqe(e)||MO(e)}function rCe(e){return Yi(e)?e:ou(e)?e.name:MO(e)?e.parent.name:R.checkDefined(e.modifiers&&Vr(e.modifiers,iCe))}function iCe(e){return e.kind===90}function oCe(e,t){let r=rCe(t);return r&&e.getSymbolAtLocation(r)}function Dqe(e,t){if(Yi(t))return{text:t.fileName,pos:0,end:0};if((Ec(t)||Sc(t))&&!ou(t)){let o=t.modifiers&&Vr(t.modifiers,iCe);if(o)return{text:"default",pos:o.getStart(),end:o.getEnd()}}if(Al(t)){let o=t.getSourceFile(),s=Pa(o.text,R_(t).pos),l=s+6,d=e.getTypeChecker(),p=d.getSymbolAtLocation(t.parent);return{text:`${p?`${d.symbolToString(p,t.parent)} `:""}static {}`,pos:s,end:l}}let r=MO(t)?t.parent.name:R.checkDefined(No(t),"Expected call hierarchy item to have a name"),i=Fe(r)?yr(r):Qp(r)?r.text:Ya(r)&&Qp(r.expression)?r.expression.text:void 0;if(i===void 0){let o=e.getTypeChecker(),s=o.getSymbolAtLocation(r);s&&(i=o.symbolToString(s,t))}if(i===void 0){let o=Rw();i=dN(s=>o.writeNode(4,t,t.getSourceFile(),s))}return{text:i,pos:r.getStart(),end:r.getEnd()}}function Cqe(e){var t,r,i,o;if(MO(e))return Vo(e.parent)&&di(e.parent.parent)?$c(e.parent.parent)?(t=tF(e.parent.parent))==null?void 0:t.getText():(r=e.parent.parent.name)==null?void 0:r.getText():N_(e.parent.parent.parent.parent)&&Fe(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 177:case 178:case 174:return e.parent.kind===210?(i=tF(e.parent))==null?void 0:i.getText():(o=No(e.parent))==null?void 0:o.getText();case 262:case 263:case 267:if(N_(e.parent)&&Fe(e.parent.parent.name))return e.parent.parent.name.getText()}}function aCe(e,t){if(t.body)return t;if(Pl(t))return eg(t.parent);if(Ec(t)||Ul(t)){let r=oCe(e,t);return r&&r.valueDeclaration&&Ws(r.valueDeclaration)&&r.valueDeclaration.body?r.valueDeclaration:void 0}return t}function sCe(e,t){let r=oCe(e,t),i;if(r&&r.declarations){let o=SL(r.declarations),s=mn(r.declarations,p=>({file:p.getSourceFile().fileName,pos:p.pos}));o.sort((p,h)=>Gd(s[p].file,s[h].file)||s[p].pos-s[h].pos);let l=mn(o,p=>r.declarations[p]),d;for(let p of l)vD(p)&&((!d||d.parent!==p.parent||d.end!==p.pos)&&(i=Tn(i,p)),d=p)}return i}function AY(e,t){return Al(t)?t:Ws(t)?aCe(e,t)??sCe(e,t)??t:sCe(e,t)??t}function lCe(e,t){let r=e.getTypeChecker(),i=!1;for(;;){if(vD(t))return AY(r,t);if(nCe(t)){let o=Fn(t,vD);return o&&AY(r,o)}if(Lg(t)){if(vD(t.parent))return AY(r,t.parent);if(nCe(t.parent)){let o=Fn(t.parent,vD);return o&&AY(r,o)}return tCe(t.parent)&&t.parent.initializer&&MO(t.parent.initializer)?t.parent.initializer:void 0}if(Pl(t))return vD(t.parent)?t.parent:void 0;if(t.kind===126&&Al(t.parent)){t=t.parent;continue}if(Oi(t)&&t.initializer&&MO(t.initializer))return t.initializer;if(!i){let o=r.getSymbolAtLocation(t);if(o&&(o.flags&2097152&&(o=r.getAliasedSymbol(o)),o.valueDeclaration)){i=!0,t=o.valueDeclaration;continue}}return}}function mpe(e,t){let r=t.getSourceFile(),i=Dqe(e,t),o=Cqe(t),s=aS(t),l=YP(t),d=dc(Pa(r.text,t.getFullStart(),!1,!0),t.getEnd()),p=dc(i.pos,i.end);return{file:r.fileName,kind:s,kindModifiers:l,name:i.text,containerName:o,span:d,selectionSpan:p}}function Nqe(e){return e!==void 0}function Pqe(e){if(e.kind===Ls.EntryKind.Node){let{node:t}=e;if(yq(t,!0,!0)||$ce(t,!0,!0)||Qce(t,!0,!0)||Zce(t,!0,!0)||oD(t)||Tq(t)){let r=t.getSourceFile();return{declaration:Fn(t,vD)||r,range:Fq(t,r)}}}}function cCe(e){return is(e.declaration)}function Mqe(e,t){return{from:e,fromSpans:t}}function Lqe(e,t){return Mqe(mpe(e,t[0].declaration),mn(t,r=>tb(r.range)))}function kqe(e,t,r){if(Yi(t)||ql(t)||Al(t))return[];let i=rCe(t),o=jr(Ls.findReferenceOrRenameEntries(e,r,e.getSourceFiles(),i,0,{use:Ls.FindReferencesUse.References},Pqe),Nqe);return o?GC(o,cCe,s=>Lqe(e,s)):[]}function wqe(e,t){function r(o){let s=H0(o)?o.tag:su(o)?o.tagName:Ps(o)||Al(o)?o:o.expression,l=lCe(e,s);if(l){let d=Fq(s,o.getSourceFile());if(So(l))for(let p of l)t.push({declaration:p,range:d});else t.push({declaration:l,range:d})}}function i(o){if(o&&!(o.flags&33554432)){if(vD(o)){if(di(o))for(let s of o.members)s.name&&Ya(s.name)&&i(s.name.expression);return}switch(o.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:r(o);return;case 216:case 234:i(o.expression);return;case 260:case 169:i(o.name),i(o.initializer);return;case 213:r(o),i(o.expression),gn(o.arguments,i);return;case 214:r(o),i(o.expression),gn(o.arguments,i);return;case 215:r(o),i(o.tag),i(o.template);return;case 286:case 285:r(o),i(o.tagName),i(o.attributes);return;case 170:r(o),i(o.expression);return;case 211:case 212:r(o),Bo(o,i);break;case 238:i(o.expression);return}Xh(o)||Bo(o,i)}}return i}function Oqe(e,t){gn(e.statements,t)}function Wqe(e,t){!Qr(e,128)&&e.body&&N_(e.body)&&gn(e.body.statements,t)}function Fqe(e,t,r){let i=aCe(e,t);i&&(gn(i.parameters,r),r(i.body))}function zqe(e,t){t(e.body)}function Bqe(e,t){gn(e.modifiers,t);let r=P0(e);r&&t(r.expression);for(let i of e.members)Am(i)&&gn(i.modifiers,t),Vo(i)?t(i.initializer):Pl(i)&&i.body?(gn(i.parameters,t),t(i.body)):Al(i)&&t(i)}function Gqe(e,t){let r=[],i=wqe(e,r);switch(t.kind){case 312:Oqe(t,i);break;case 267:Wqe(t,i);break;case 262:case 218:case 219:case 174:case 177:case 178:Fqe(e.getTypeChecker(),t,i);break;case 263:case 231:Bqe(t,i);break;case 175:zqe(t,i);break;default:R.assertNever(t)}return r}function Vqe(e,t){return{to:e,fromSpans:t}}function jqe(e,t){return Vqe(mpe(e,t[0].declaration),mn(t,r=>tb(r.range)))}function Uqe(e,t){return t.flags&33554432||hh(t)?[]:GC(Gqe(e,t),cCe,r=>jqe(e,r))}var Hqe=bt({"src/services/callHierarchy.ts"(){"use strict";ai()}}),A1={};Ra(A1,{createCallHierarchyItem:()=>mpe,getIncomingCalls:()=>kqe,getOutgoingCalls:()=>Uqe,resolveCallHierarchyDeclaration:()=>lCe});var Kqe=bt({"src/services/_namespaces/ts.CallHierarchy.ts"(){"use strict";Hqe()}}),dCe={};Ra(dCe,{TokenEncodingConsts:()=>ope,TokenModifier:()=>spe,TokenType:()=>ape,getEncodedSemanticClassifications:()=>ipe,getSemanticClassifications:()=>ODe});var Jqe=bt({"src/services/_namespaces/ts.classifier.v2020.ts"(){"use strict";zDe()}}),_pe={};Ra(_pe,{v2020:()=>dCe});var qqe=bt({"src/services/_namespaces/ts.classifier.ts"(){"use strict";Jqe()}});function Zm(e,t,r){return gpe(e,ZT(r),t,void 0,void 0)}function ia(e,t,r,i,o,s){return gpe(e,ZT(r),t,i,ZT(o),s)}function hpe(e,t,r,i,o,s){return gpe(e,ZT(r),t,i,o&&ZT(o),s)}function gpe(e,t,r,i,o,s){return{fixName:e,description:t,changes:r,fixId:i,fixAllDescription:o,commands:s?[s]:void 0}}function Ea(e){for(let t of e.errorCodes)ype=void 0,IY.add(String(t),e);if(e.fixIds)for(let t of e.fixIds)R.assert(!xY.has(t)),xY.set(t,e)}function Xqe(){return ype??(ype=Oo(IY.keys()))}function Yqe(e,t){let{errorCodes:r}=e,i=0;for(let s of t)if(zo(r,s.code)&&i++,i>1)break;let o=i<2;return({fixId:s,fixAllDescription:l,...d})=>o?d:{...d,fixId:s,fixAllDescription:l}}function $qe(e){let t=pCe(e),r=IY.get(String(e.errorCode));return va(r,i=>mn(i.getCodeActions(e),Yqe(i,t)))}function Qqe(e){return xY.get(ta(e.fixId,Co)).getAllCodeActions(e)}function bD(e,t){return{changes:e,commands:t}}function uCe(e,t){return{fileName:e,textChanges:t}}function ys(e,t,r){let i=[],o=pr.ChangeTracker.with(e,s=>ED(e,t,l=>r(s,l,i)));return bD(o,i.length===0?void 0:i)}function ED(e,t,r){for(let i of pCe(e))zo(t,i.code)&&r(i)}function pCe({program:e,sourceFile:t,cancellationToken:r}){return[...e.getSemanticDiagnostics(t,r),...e.getSyntacticDiagnostics(t,r),...MX(t,e,r)]}var IY,xY,ype,Zqe=bt({"src/services/codeFixProvider.ts"(){"use strict";ai(),IY=Xp(),xY=new Map}});function fCe(e,t,r){let i=Wk(r)?L.createAsExpression(r.expression,L.createKeywordTypeNode(159)):L.createTypeAssertion(L.createKeywordTypeNode(159),r.expression);e.replaceNode(t,r.expression,i)}function mCe(e,t){if(!ir(e))return Fn(so(e,t),r=>Wk(r)||hae(r))}var RY,vpe,eXe=bt({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){"use strict";ai(),Aa(),RY="addConvertToUnknownForNonOverlappingTypes",vpe=[f.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code],Ea({errorCodes:vpe,getCodeActions:function(t){let r=mCe(t.sourceFile,t.span.start);if(r===void 0)return;let i=pr.ChangeTracker.with(t,o=>fCe(o,t.sourceFile,r));return[ia(RY,i,f.Add_unknown_conversion_for_non_overlapping_types,RY,f.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[RY],getAllCodeActions:e=>ys(e,vpe,(t,r)=>{let i=mCe(r.file,r.start);i&&fCe(t,r.file,i)})})}}),tXe=bt({"src/services/codefixes/addEmptyExportDeclaration.ts"(){"use strict";ai(),Aa(),Ea({errorCodes:[f.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,f.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,f.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(t){let{sourceFile:r}=t,i=pr.ChangeTracker.with(t,o=>{let s=L.createExportDeclaration(void 0,!1,L.createNamedExports([]),void 0);o.insertNodeAtEndOfScope(r,r,s)});return[Zm("addEmptyExportDeclaration",i,f.Add_export_to_make_this_file_into_a_module)]}})}});function _Ce(e,t,r,i){let o=r(s=>nXe(s,e.sourceFile,t,i));return ia(DY,o,f.Add_async_modifier_to_containing_function,DY,f.Add_all_missing_async_modifiers)}function nXe(e,t,r,i){if(i&&i.has(is(r)))return;i?.add(is(r));let o=L.replaceModifiers(ol(r,!0),L.createNodeArray(L.createModifiersFromModifierFlags(Fv(r)|1024)));e.replaceNode(t,r,o)}function hCe(e,t){if(!t)return;let r=so(e,t.start);return Fn(r,o=>o.getStart(e)Jl(t)?"quit":(Fs(o)||Ul(o)||Ms(o)||Ec(o))&&dD(t,xu(o,e)))}function rXe(e,t){return({start:r,length:i,relatedInformation:o,code:s})=>Sy(r)&&Sy(i)&&dD({start:r,length:i},e)&&s===t&&!!o&>(o,l=>l.code===f.Did_you_mean_to_mark_this_function_as_async.code)}var DY,bpe,iXe=bt({"src/services/codefixes/addMissingAsync.ts"(){"use strict";ai(),Aa(),DY="addMissingAsync",bpe=[f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,f.Type_0_is_not_assignable_to_type_1.code,f.Type_0_is_not_comparable_to_type_1.code],Ea({fixIds:[DY],errorCodes:bpe,getCodeActions:function(t){let{sourceFile:r,errorCode:i,cancellationToken:o,program:s,span:l}=t,d=Vr(s.getTypeChecker().getDiagnostics(r,o),rXe(l,i)),p=d&&d.relatedInformation&&Vr(d.relatedInformation,y=>y.code===f.Did_you_mean_to_mark_this_function_as_async.code),h=hCe(r,p);return h?[_Ce(t,h,y=>pr.ChangeTracker.with(t,y))]:void 0},getAllCodeActions:e=>{let{sourceFile:t}=e,r=new Set;return ys(e,bpe,(i,o)=>{let s=o.relatedInformation&&Vr(o.relatedInformation,p=>p.code===f.Did_you_mean_to_mark_this_function_as_async.code),l=hCe(t,s);return l?_Ce(e,l,p=>(p(i),[]),r):void 0})}})}});function gCe(e,t,r,i,o){let s=dX(e,r);return s&&oXe(e,t,r,i,o)&&bCe(s)?s:void 0}function yCe(e,t,r,i,o,s){let{sourceFile:l,program:d,cancellationToken:p}=e,h=aXe(t,l,p,d,i);if(h){let m=o(y=>{gn(h.initializers,({expression:E})=>Epe(y,r,l,i,E,s)),s&&h.needsSecondPassForFixAll&&Epe(y,r,l,i,t,s)});return Zm("addMissingAwaitToInitializer",m,h.initializers.length===1?[f.Add_await_to_initializer_for_0,h.initializers[0].declarationSymbol.name]:f.Add_await_to_initializers)}}function vCe(e,t,r,i,o,s){let l=o(d=>Epe(d,r,e.sourceFile,i,t,s));return ia(CY,l,f.Add_await,CY,f.Fix_all_expressions_possibly_missing_await)}function oXe(e,t,r,i,o){let l=o.getTypeChecker().getDiagnostics(e,i);return gt(l,({start:d,length:p,relatedInformation:h,code:m})=>Sy(d)&&Sy(p)&&dD({start:d,length:p},r)&&m===t&&!!h&>(h,y=>y.code===f.Did_you_forget_to_use_await.code))}function aXe(e,t,r,i,o){let s=sXe(e,o);if(!s)return;let l=s.isCompleteFix,d;for(let p of s.identifiers){let h=o.getSymbolAtLocation(p);if(!h)continue;let m=ri(h.valueDeclaration,Oi),y=m&&ri(m.name,Fe),E=uE(m,243);if(!m||!E||m.type||!m.initializer||E.getSourceFile()!==t||Qr(E,32)||!y||!bCe(m.initializer)){l=!1;continue}let S=i.getSemanticDiagnostics(t,r);if(Ls.Core.eachSymbolReferenceInFile(y,o,t,N=>p!==N&&!lXe(N,S,t,o))){l=!1;continue}(d||(d=[])).push({expression:m.initializer,declarationSymbol:h})}return d&&{initializers:d,needsSecondPassForFixAll:!l}}function sXe(e,t){if(wr(e.parent)&&Fe(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(Fe(e))return{identifiers:[e],isCompleteFix:!0};if(ur(e)){let r,i=!0;for(let o of[e.left,e.right]){let s=t.getTypeAtLocation(o);if(t.getPromisedTypeOfPromise(s)){if(!Fe(o)){i=!1;continue}(r||(r=[])).push(o)}}return r&&{identifiers:r,isCompleteFix:i}}}function lXe(e,t,r,i){let o=wr(e.parent)?e.parent.name:ur(e.parent)?e.parent:e,s=Vr(t,l=>l.start===o.getStart(r)&&l.start+l.length===o.getEnd());return s&&zo(NY,s.code)||i.getTypeAtLocation(o).flags&1}function bCe(e){return e.flags&65536||!!Fn(e,t=>t.parent&&Fs(t.parent)&&t.parent.body===t||Ho(t)&&(t.parent.kind===262||t.parent.kind===218||t.parent.kind===219||t.parent.kind===174))}function Epe(e,t,r,i,o,s){if(Fk(o.parent)&&!o.parent.awaitModifier){let l=i.getTypeAtLocation(o),d=i.getAsyncIterableType();if(d&&i.isTypeAssignableTo(l,d)){let p=o.parent;e.replaceNode(r,p,L.updateForOfStatement(p,L.createToken(135),p.initializer,p.expression,p.statement));return}}if(ur(o))for(let l of[o.left,o.right]){if(s&&Fe(l)){let h=i.getSymbolAtLocation(l);if(h&&s.has(ba(h)))continue}let d=i.getTypeAtLocation(l),p=i.getPromisedTypeOfPromise(d)?L.createAwaitExpression(l):l;e.replaceNode(r,l,p)}else if(t===Spe&&wr(o.parent)){if(s&&Fe(o.parent.expression)){let l=i.getSymbolAtLocation(o.parent.expression);if(l&&s.has(ba(l)))return}e.replaceNode(r,o.parent.expression,L.createParenthesizedExpression(L.createAwaitExpression(o.parent.expression))),ECe(e,o.parent.expression,r)}else if(zo(Tpe,t)&&v_(o.parent)){if(s&&Fe(o)){let l=i.getSymbolAtLocation(o);if(l&&s.has(ba(l)))return}e.replaceNode(r,o,L.createParenthesizedExpression(L.createAwaitExpression(o))),ECe(e,o,r)}else{if(s&&Oi(o.parent)&&Fe(o.parent.name)){let l=i.getSymbolAtLocation(o.parent.name);if(l&&!Jb(s,ba(l)))return}e.replaceNode(r,o,L.createAwaitExpression(o))}}function ECe(e,t,r){let i=Tc(t.pos,r);i&&a7(i.end,i.parent,r)&&e.insertText(r,t.getStart(r),";")}var CY,Spe,Tpe,NY,cXe=bt({"src/services/codefixes/addMissingAwait.ts"(){"use strict";ai(),Aa(),CY="addMissingAwait",Spe=f.Property_0_does_not_exist_on_type_1.code,Tpe=[f.This_expression_is_not_callable.code,f.This_expression_is_not_constructable.code],NY=[f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,f.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,f.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,f.Operator_0_cannot_be_applied_to_type_1.code,f.Operator_0_cannot_be_applied_to_types_1_and_2.code,f.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,f.This_condition_will_always_return_true_since_this_0_is_always_defined.code,f.Type_0_is_not_an_array_type.code,f.Type_0_is_not_an_array_type_or_a_string_type.code,f.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,f.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,f.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,f.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,f.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,Spe,...Tpe],Ea({fixIds:[CY],errorCodes:NY,getCodeActions:function(t){let{sourceFile:r,errorCode:i,span:o,cancellationToken:s,program:l}=t,d=gCe(r,i,o,s,l);if(!d)return;let p=t.program.getTypeChecker(),h=m=>pr.ChangeTracker.with(t,m);return TL([yCe(t,d,i,p,h),vCe(t,d,i,p,h)])},getAllCodeActions:e=>{let{sourceFile:t,program:r,cancellationToken:i}=e,o=e.program.getTypeChecker(),s=new Set;return ys(e,NY,(l,d)=>{let p=gCe(t,d.code,d,i,r);if(!p)return;let h=m=>(m(l),[]);return yCe(e,p,d.code,o,h,s)||vCe(e,p,d.code,o,h,s)})}})}});function SCe(e,t,r,i,o){let s=so(t,r),l=Fn(s,h=>Wx(h.parent)?h.parent.initializer===h:dXe(h)?!1:"quit");if(l)return PY(e,l,t,o);let d=s.parent;if(ur(d)&&d.operatorToken.kind===64&&Qc(d.parent))return PY(e,s,t,o);if(pu(d)){let h=i.getTypeChecker();return oo(d.elements,m=>uXe(m,h))?PY(e,d,t,o):void 0}let p=Fn(s,h=>Qc(h.parent)?!0:pXe(h)?!1:"quit");if(p){let h=i.getTypeChecker();return TCe(p,h)?PY(e,p,t,o):void 0}}function PY(e,t,r,i){(!i||Jb(i,t))&&e.insertModifierBefore(r,87,t)}function dXe(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}function uXe(e,t){let r=Fe(e)?e:Pc(e,!0)&&Fe(e.left)?e.left:void 0;return!!r&&!t.getSymbolAtLocation(r)}function pXe(e){switch(e.kind){case 80:case 226:case 28:return!0;default:return!1}}function TCe(e,t){return ur(e)?e.operatorToken.kind===28?oo([e.left,e.right],r=>TCe(r,t)):e.operatorToken.kind===64&&Fe(e.left)&&!t.getSymbolAtLocation(e.left):!1}var MY,Ape,fXe=bt({"src/services/codefixes/addMissingConst.ts"(){"use strict";ai(),Aa(),MY="addMissingConst",Ape=[f.Cannot_find_name_0.code,f.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code],Ea({errorCodes:Ape,getCodeActions:function(t){let r=pr.ChangeTracker.with(t,i=>SCe(i,t.sourceFile,t.span.start,t.program));if(r.length>0)return[ia(MY,r,f.Add_const_to_unresolved_variable,MY,f.Add_const_to_all_unresolved_variables)]},fixIds:[MY],getAllCodeActions:e=>{let t=new Set;return ys(e,Ape,(r,i)=>SCe(r,i.file,i.start,e.program,t))}})}});function ACe(e,t,r,i){let o=so(t,r);if(!Fe(o))return;let s=o.parent;s.kind===172&&(!i||Jb(i,s))&&e.insertModifierBefore(t,138,s)}var LY,Ipe,mXe=bt({"src/services/codefixes/addMissingDeclareProperty.ts"(){"use strict";ai(),Aa(),LY="addMissingDeclareProperty",Ipe=[f.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code],Ea({errorCodes:Ipe,getCodeActions:function(t){let r=pr.ChangeTracker.with(t,i=>ACe(i,t.sourceFile,t.span.start));if(r.length>0)return[ia(LY,r,f.Prefix_with_declare,LY,f.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[LY],getAllCodeActions:e=>{let t=new Set;return ys(e,Ipe,(r,i)=>ACe(r,i.file,i.start,t))}})}});function ICe(e,t,r){let i=so(t,r),o=Fn(i,yd);R.assert(!!o,"Expected position to be owned by a decorator.");let s=L.createCallExpression(o.expression,void 0,void 0);e.replaceNode(t,o.expression,s)}var kY,xpe,_Xe=bt({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){"use strict";ai(),Aa(),kY="addMissingInvocationForDecorator",xpe=[f._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],Ea({errorCodes:xpe,getCodeActions:function(t){let r=pr.ChangeTracker.with(t,i=>ICe(i,t.sourceFile,t.span.start));return[ia(kY,r,f.Call_decorator_expression,kY,f.Add_to_all_uncalled_decorators)]},fixIds:[kY],getAllCodeActions:e=>ys(e,xpe,(t,r)=>ICe(t,r.file,r.start))})}});function xCe(e,t,r){let i=so(t,r),o=i.parent;if(!To(o))return R.fail("Tried to add a parameter name to a non-parameter: "+R.formatSyntaxKind(i.kind));let s=o.parent.parameters.indexOf(o);R.assert(!o.type,"Tried to add a parameter name to a parameter that already had one."),R.assert(s>-1,"Parameter not found in parent parameter list.");let l=o.name.getEnd(),d=L.createTypeReferenceNode(o.name,void 0),p=RCe(t,o);for(;p;)d=L.createArrayTypeNode(d),l=p.getEnd(),p=RCe(t,p);let h=L.createParameterDeclaration(o.modifiers,o.dotDotDotToken,"arg"+s,o.questionToken,o.dotDotDotToken&&!wk(d)?L.createArrayTypeNode(d):d,o.initializer);e.replaceRange(t,Ef(o.getStart(t),l),h)}function RCe(e,t){let r=sS(t.name,t.parent,e);if(r&&r.kind===23&&j0(r.parent)&&To(r.parent.parent))return r.parent.parent}var wY,Rpe,hXe=bt({"src/services/codefixes/addNameToNamelessParameter.ts"(){"use strict";ai(),Aa(),wY="addNameToNamelessParameter",Rpe=[f.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],Ea({errorCodes:Rpe,getCodeActions:function(t){let r=pr.ChangeTracker.with(t,i=>xCe(i,t.sourceFile,t.span.start));return[ia(wY,r,f.Add_parameter_name,wY,f.Add_names_to_all_parameters_without_names)]},fixIds:[wY],getAllCodeActions:e=>ys(e,Rpe,(t,r)=>xCe(t,r.file,r.start))})}});function gXe(e,t,r){var i,o;let s=DCe(dX(e,t),r);if(!s)return Xe;let{source:l,target:d}=s,p=yXe(l,d,r)?r.getTypeAtLocation(d.expression):r.getTypeAtLocation(d);return(o=(i=p.symbol)==null?void 0:i.declarations)!=null&&o.some(h=>Gn(h).fileName.match(/\.d\.ts$/))?Xe:r.getExactOptionalProperties(p)}function yXe(e,t,r){return wr(t)&&!!r.getExactOptionalProperties(r.getTypeAtLocation(t.expression)).length&&r.getTypeAtLocation(e)===r.getUndefinedType()}function DCe(e,t){var r;if(e){if(ur(e.parent)&&e.parent.operatorToken.kind===64)return{source:e.parent.right,target:e.parent.left};if(Oi(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(ra(e.parent)){let i=t.getSymbolAtLocation(e.parent.expression);if(!i?.valueDeclaration||!vI(i.valueDeclaration.kind)||!ht(e))return;let o=e.parent.arguments.indexOf(e);if(o===-1)return;let s=i.valueDeclaration.parameters[o].name;if(Fe(s))return{source:e,target:s}}else if(mc(e.parent)&&Fe(e.parent.name)||Zu(e.parent)){let i=DCe(e.parent.parent,t);if(!i)return;let o=t.getPropertyOfType(t.getTypeAtLocation(i.target),e.parent.name.text),s=(r=o?.declarations)==null?void 0:r[0];return s?{source:mc(e.parent)?e.parent.initializer:e.parent.name,target:s}:void 0}}else return}function vXe(e,t){for(let r of t){let i=r.valueDeclaration;if(i&&(_p(i)||Vo(i))&&i.type){let o=L.createUnionTypeNode([...i.type.kind===192?i.type.types:[i.type],L.createTypeReferenceNode("undefined")]);e.replaceNode(i.getSourceFile(),i.type,o)}}}var Dpe,CCe,bXe=bt({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){"use strict";ai(),Aa(),Dpe="addOptionalPropertyUndefined",CCe=[f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code],Ea({errorCodes:CCe,getCodeActions(e){let t=e.program.getTypeChecker(),r=gXe(e.sourceFile,e.span,t);if(!r.length)return;let i=pr.ChangeTracker.with(e,o=>vXe(o,r));return[Zm(Dpe,i,f.Add_undefined_to_optional_property_type)]},fixIds:[Dpe]})}});function NCe(e,t){let r=so(e,t);return ri(To(r.parent)?r.parent.parent:r.parent,PCe)}function PCe(e){return EXe(e)&&MCe(e)}function MCe(e){return Ws(e)?e.parameters.some(MCe)||!e.type&&!!$L(e):!e.type&&!!rE(e)}function LCe(e,t,r){if(Ws(r)&&($L(r)||r.parameters.some(i=>!!rE(i)))){if(!r.typeParameters){let o=d6(r);o.length&&e.insertTypeParameters(t,r,o)}let i=Fs(r)&&!hs(r,21,t);i&&e.insertNodeBefore(t,Va(r.parameters),L.createToken(21));for(let o of r.parameters)if(!o.type){let s=rE(o);s&&e.tryInsertTypeAnnotation(t,o,Qe(s,pS,ji))}if(i&&e.insertNodeAfter(t,Ja(r.parameters),L.createToken(22)),!r.type){let o=$L(r);o&&e.tryInsertTypeAnnotation(t,r,Qe(o,pS,ji))}}else{let i=R.checkDefined(rE(r),"A JSDocType for this declaration should exist");R.assert(!r.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,r,Qe(i,pS,ji))}}function EXe(e){return Ws(e)||e.kind===260||e.kind===171||e.kind===172}function pS(e){switch(e.kind){case 319:case 320:return L.createTypeReferenceNode("any",Xe);case 323:return TXe(e);case 322:return pS(e.type);case 321:return AXe(e);case 325:return IXe(e);case 324:return xXe(e);case 183:return DXe(e);case 329:return SXe(e);default:let t=Sn(e,pS,void 0);return lr(t,1),t}}function SXe(e){let t=L.createTypeLiteralNode(mn(e.jsDocPropertyTags,r=>L.createPropertySignature(void 0,Fe(r.name)?r.name:r.name.right,pk(r)?L.createToken(58):void 0,r.typeExpression&&Qe(r.typeExpression.type,pS,ji)||L.createKeywordTypeNode(133))));return lr(t,1),t}function TXe(e){return L.createUnionTypeNode([Qe(e.type,pS,ji),L.createTypeReferenceNode("undefined",Xe)])}function AXe(e){return L.createUnionTypeNode([Qe(e.type,pS,ji),L.createTypeReferenceNode("null",Xe)])}function IXe(e){return L.createArrayTypeNode(Qe(e.type,pS,ji))}function xXe(e){return L.createFunctionTypeNode(Xe,e.parameters.map(RXe),e.type??L.createKeywordTypeNode(133))}function RXe(e){let t=e.parent.parameters.indexOf(e),r=e.type.kind===325&&t===e.parent.parameters.length-1,i=e.name||(r?"rest":"arg"+t),o=r?L.createToken(26):e.dotDotDotToken;return L.createParameterDeclaration(e.modifiers,o,i,e.questionToken,Qe(e.type,pS,ji),e.initializer)}function DXe(e){let t=e.typeName,r=e.typeArguments;if(Fe(e.typeName)){if(HF(e))return CXe(e);let i=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":i=i.toLowerCase();break;case"array":case"date":case"promise":i=i[0].toUpperCase()+i.slice(1);break}t=L.createIdentifier(i),(i==="Array"||i==="Promise")&&!e.typeArguments?r=L.createNodeArray([L.createTypeReferenceNode("any",Xe)]):r=zn(e.typeArguments,pS,ji)}return L.createTypeReferenceNode(t,r)}function CXe(e){let t=L.createParameterDeclaration(void 0,void 0,e.typeArguments[0].kind===150?"n":"s",void 0,L.createTypeReferenceNode(e.typeArguments[0].kind===150?"number":"string",[]),void 0),r=L.createTypeLiteralNode([L.createIndexSignature(void 0,[t],e.typeArguments[1])]);return lr(r,1),r}var OY,Cpe,NXe=bt({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){"use strict";ai(),Aa(),OY="annotateWithTypeFromJSDoc",Cpe=[f.JSDoc_types_may_be_moved_to_TypeScript_types.code],Ea({errorCodes:Cpe,getCodeActions(e){let t=NCe(e.sourceFile,e.span.start);if(!t)return;let r=pr.ChangeTracker.with(e,i=>LCe(i,e.sourceFile,t));return[ia(OY,r,f.Annotate_with_type_from_JSDoc,OY,f.Annotate_everything_with_types_from_JSDoc)]},fixIds:[OY],getAllCodeActions:e=>ys(e,Cpe,(t,r)=>{let i=NCe(r.file,r.start);i&&LCe(t,r.file,i)})})}});function kCe(e,t,r,i,o,s){let l=i.getSymbolAtLocation(so(t,r));if(!l||!l.valueDeclaration||!(l.flags&19))return;let d=l.valueDeclaration;if(Ec(d)||Ms(d))e.replaceNode(t,d,m(d));else if(Oi(d)){let y=h(d);if(!y)return;let E=d.parent.parent;Vc(d.parent)&&d.parent.declarations.length>1?(e.delete(t,d),e.insertNodeAfter(t,E,y)):e.replaceNode(t,E,y)}function p(y){let E=[];return y.exports&&y.exports.forEach(N=>{if(N.name==="prototype"&&N.declarations){let D=N.declarations[0];if(N.declarations.length===1&&wr(D)&&ur(D.parent)&&D.parent.operatorToken.kind===64&&La(D.parent.right)){let w=D.parent.right;A(w.symbol,void 0,E)}}else A(N,[L.createToken(126)],E)}),y.members&&y.members.forEach((N,D)=>{var w,j,K,Y;if(D==="constructor"&&N.valueDeclaration){let B=(Y=(K=(j=(w=y.exports)==null?void 0:w.get("prototype"))==null?void 0:j.declarations)==null?void 0:K[0])==null?void 0:Y.parent;B&&ur(B)&&La(B.right)&>(B.right.properties,FY)||e.delete(t,N.valueDeclaration.parent);return}A(N,void 0,E)}),E;function S(N,D){return Ps(N)?wr(N)&&FY(N)?!0:Yo(D):oo(N.properties,w=>!!(Ul(w)||iF(w)||mc(w)&&Ms(w.initializer)&&w.name||FY(w)))}function A(N,D,w){if(!(N.flags&8192)&&!(N.flags&4096))return;let j=N.valueDeclaration,K=j.parent,Y=K.right;if(!S(j,Y)||gt(w,me=>{let ge=No(me);return!!(ge&&Fe(ge)&&yr(ge)===yl(N))}))return;let B=K.parent&&K.parent.kind===244?K.parent:K;if(e.delete(t,B),!Y){w.push(L.createPropertyDeclaration(D,N.name,void 0,void 0,void 0));return}if(Ps(j)&&(Ms(Y)||Fs(Y))){let me=af(t,o),ge=PXe(j,s,me);ge&&ce(w,Y,ge);return}else if(La(Y)){gn(Y.properties,me=>{(Ul(me)||iF(me))&&w.push(me),mc(me)&&Ms(me.initializer)&&ce(w,me.initializer,me.name),FY(me)});return}else{if(lu(t)||!wr(j))return;let me=L.createPropertyDeclaration(D,j.name,void 0,void 0,Y);pD(K.parent,me,t),w.push(me);return}function ce(me,ge,q){return Ms(ge)?z(me,ge,q):ee(me,ge,q)}function z(me,ge,q){let J=bo(D,WY(ge,134)),re=L.createMethodDeclaration(J,void 0,q,void 0,void 0,ge.parameters,void 0,ge.body);pD(K,re,t),me.push(re)}function ee(me,ge,q){let J=ge.body,re;J.kind===241?re=J:re=L.createBlock([L.createReturnStatement(J)]);let pe=bo(D,WY(ge,134)),xe=L.createMethodDeclaration(pe,void 0,q,void 0,void 0,ge.parameters,void 0,re);pD(K,xe,t),me.push(xe)}}}function h(y){let E=y.initializer;if(!E||!Ms(E)||!Fe(y.name))return;let S=p(y.symbol);E.body&&S.unshift(L.createConstructorDeclaration(void 0,E.parameters,E.body));let A=WY(y.parent.parent,95);return L.createClassDeclaration(A,y.name,void 0,void 0,S)}function m(y){let E=p(l);y.body&&E.unshift(L.createConstructorDeclaration(void 0,y.parameters,y.body));let S=WY(y,95);return L.createClassDeclaration(S,y.name,void 0,void 0,E)}}function WY(e,t){return Am(e)?jr(e.modifiers,r=>r.kind===t):void 0}function FY(e){return e.name?!!(Fe(e.name)&&e.name.text==="constructor"):!1}function PXe(e,t,r){if(wr(e))return e.name;let i=e.argumentExpression;if(mp(i))return i;if(ss(i))return $p(i.text,rs(t))?L.createIdentifier(i.text):HI(i)?L.createStringLiteral(i.text,r===0):i}var zY,Npe,MXe=bt({"src/services/codefixes/convertFunctionToEs6Class.ts"(){"use strict";ai(),Aa(),zY="convertFunctionToEs6Class",Npe=[f.This_constructor_function_may_be_converted_to_a_class_declaration.code],Ea({errorCodes:Npe,getCodeActions(e){let t=pr.ChangeTracker.with(e,r=>kCe(r,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[ia(zY,t,f.Convert_function_to_an_ES2015_class,zY,f.Convert_all_constructor_functions_to_classes)]},fixIds:[zY],getAllCodeActions:e=>ys(e,Npe,(t,r)=>kCe(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))})}});function wCe(e,t,r,i){let o=so(t,r),s;if(Fe(o)&&Oi(o.parent)&&o.parent.initializer&&Ws(o.parent.initializer)?s=o.parent.initializer:s=ri(Wp(so(t,r)),wX),!s)return;let l=new Map,d=ir(s),p=kXe(s,i),h=wXe(s,i,l);if(!LX(h,i))return;let m=h.body&&Ho(h.body)?LXe(h.body,i):Xe,y={checker:i,synthNamesMap:l,setOfExpressionsToReturn:p,isInJSFile:d};if(!m.length)return;let E=Pa(t.text,R_(s).pos);e.insertModifierAt(t,E,134,{suffix:" "});for(let S of m)if(Bo(S,function A(N){if(ra(N)){let D=SD(N,N,y,!1);if(I1())return!0;e.replaceNodeWithNodes(t,S,D)}else if(!Yo(N)&&(Bo(N,A),I1()))return!0}),I1())return}function LXe(e,t){let r=[];return x0(e,i=>{T7(i,t)&&r.push(i)}),r}function kXe(e,t){if(!e.body)return new Set;let r=new Set;return Bo(e.body,function i(o){LO(o,t,"then")?(r.add(is(o)),gn(o.arguments,i)):LO(o,t,"catch")||LO(o,t,"finally")?(r.add(is(o)),Bo(o,i)):WCe(o,t)?r.add(is(o)):Bo(o,i)}),r}function LO(e,t,r){if(!ra(e))return!1;let o=Kw(e,r)&&t.getTypeAtLocation(e);return!!(o&&t.getPromisedTypeOfPromise(o))}function OCe(e,t){return(kr(e)&4)!==0&&e.target===t}function BY(e,t,r){if(e.expression.name.escapedText==="finally")return;let i=r.getTypeAtLocation(e.expression.expression);if(OCe(i,r.getPromiseType())||OCe(i,r.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(t===Iy(e.arguments,0))return Iy(e.typeArguments,0);if(t===Iy(e.arguments,1))return Iy(e.typeArguments,1)}else return Iy(e.typeArguments,0)}function WCe(e,t){return ht(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function wXe(e,t,r){let i=new Map,o=Xp();return Bo(e,function s(l){if(!Fe(l)){Bo(l,s);return}let d=t.getSymbolAtLocation(l);if(d){let p=t.getTypeAtLocation(l),h=jCe(p,t),m=ba(d).toString();if(h&&!To(l.parent)&&!Ws(l.parent)&&!r.has(m)){let y=Jc(h.parameters),E=y?.valueDeclaration&&To(y.valueDeclaration)&&ri(y.valueDeclaration.name,Fe)||L.createUniqueName("result",16),S=FCe(E,o);r.set(m,S),o.add(E.text,d)}else if(l.parent&&(To(l.parent)||Oi(l.parent)||Xa(l.parent))){let y=l.text,E=o.get(y);if(E&&E.some(S=>S!==d)){let S=FCe(l,o);i.set(m,S.identifier),r.set(m,S),o.add(y,d)}else{let S=ol(l);r.set(m,cM(S)),o.add(y,d)}}}}),sO(e,!0,s=>{if(Xa(s)&&Fe(s.name)&&tm(s.parent)){let l=t.getSymbolAtLocation(s.name),d=l&&i.get(String(ba(l)));if(d&&d.text!==(s.name||s.propertyName).getText())return L.createBindingElement(s.dotDotDotToken,s.propertyName||s.name,d,s.initializer)}else if(Fe(s)){let l=t.getSymbolAtLocation(s),d=l&&i.get(String(ba(l)));if(d)return L.createIdentifier(d.text)}})}function FCe(e,t){let r=(t.get(e.text)||Xe).length,i=r===0?e:L.createIdentifier(e.text+"_"+r);return cM(i)}function I1(){return!X7}function PE(){return X7=!1,Xe}function SD(e,t,r,i,o){if(LO(t,r.checker,"then"))return FXe(t,Iy(t.arguments,0),Iy(t.arguments,1),r,i,o);if(LO(t,r.checker,"catch"))return GCe(t,Iy(t.arguments,0),r,i,o);if(LO(t,r.checker,"finally"))return WXe(t,Iy(t.arguments,0),r,i,o);if(wr(t))return SD(e,t.expression,r,i,o);let s=r.checker.getTypeAtLocation(t);return s&&r.checker.getPromisedTypeOfPromise(s)?(R.assertNode(Nl(t).parent,wr),zXe(e,t,r,i,o)):PE()}function GY({checker:e},t){if(t.kind===106)return!0;if(Fe(t)&&!rl(t)&&yr(t)==="undefined"){let r=e.getSymbolAtLocation(t);return!r||e.isUndefinedSymbol(r)}return!1}function OXe(e){let t=L.createUniqueName(e.identifier.text,16);return cM(t)}function zCe(e,t,r){let i;return r&&!wO(e,t)&&(kO(r)?(i=r,t.synthNamesMap.forEach((o,s)=>{if(o.identifier.text===r.identifier.text){let l=OXe(r);t.synthNamesMap.set(s,l)}})):i=cM(L.createUniqueName("result",16),r.types),kpe(i)),i}function BCe(e,t,r,i,o){let s=[],l;if(i&&!wO(e,t)){l=ol(kpe(i));let d=i.types,p=t.checker.getUnionType(d,2),h=t.isInJSFile?void 0:t.checker.typeToTypeNode(p,void 0,void 0),m=[L.createVariableDeclaration(l,void 0,h)],y=L.createVariableStatement(void 0,L.createVariableDeclarationList(m,1));s.push(y)}return s.push(r),o&&l&&VXe(o)&&s.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(ol(JCe(o)),void 0,void 0,l)],2))),s}function WXe(e,t,r,i,o){if(!t||GY(r,t))return SD(e,e.expression.expression,r,i,o);let s=zCe(e,r,o),l=SD(e,e.expression.expression,r,!0,s);if(I1())return PE();let d=Mpe(t,i,void 0,void 0,e,r);if(I1())return PE();let p=L.createBlock(l),h=L.createBlock(d),m=L.createTryStatement(p,void 0,h);return BCe(e,r,m,s,o)}function GCe(e,t,r,i,o){if(!t||GY(r,t))return SD(e,e.expression.expression,r,i,o);let s=HCe(t,r),l=zCe(e,r,o),d=SD(e,e.expression.expression,r,!0,l);if(I1())return PE();let p=Mpe(t,i,l,s,e,r);if(I1())return PE();let h=L.createBlock(d),m=L.createCatchClause(s&&ol(q7(s)),L.createBlock(p)),y=L.createTryStatement(h,m,void 0);return BCe(e,r,y,l,o)}function FXe(e,t,r,i,o,s){if(!t||GY(i,t))return GCe(e,r,i,o,s);if(r&&!GY(i,r))return PE();let l=HCe(t,i),d=SD(e.expression.expression,e.expression.expression,i,!0,l);if(I1())return PE();let p=Mpe(t,o,s,l,e,i);return I1()?PE():bo(d,p)}function zXe(e,t,r,i,o){if(wO(e,r)){let s=ol(t);return i&&(s=L.createAwaitExpression(s)),[L.createReturnStatement(s)]}return VY(o,L.createAwaitExpression(t),void 0)}function VY(e,t,r){return!e||KCe(e)?[L.createExpressionStatement(t)]:kO(e)&&e.hasBeenDeclared?[L.createExpressionStatement(L.createAssignment(ol(Lpe(e)),t))]:[L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(ol(q7(e)),void 0,r,t)],2))]}function Ppe(e,t){if(t&&e){let r=L.createUniqueName("result",16);return[...VY(cM(r),e,t),L.createReturnStatement(r)]}return[L.createReturnStatement(e)]}function Mpe(e,t,r,i,o,s){var l;switch(e.kind){case 106:break;case 211:case 80:if(!i)break;let d=L.createCallExpression(ol(e),void 0,kO(i)?[Lpe(i)]:[]);if(wO(o,s))return Ppe(d,BY(o,e,s.checker));let p=s.checker.getTypeAtLocation(e),h=s.checker.getSignaturesOfType(p,0);if(!h.length)return PE();let m=h[0].getReturnType(),y=VY(r,L.createAwaitExpression(d),BY(o,e,s.checker));return r&&r.types.push(s.checker.getAwaitedType(m)||m),y;case 218:case 219:{let E=e.body,S=(l=jCe(s.checker.getTypeAtLocation(e),s.checker))==null?void 0:l.getReturnType();if(Ho(E)){let A=[],N=!1;for(let D of E.statements)if(Sm(D))if(N=!0,T7(D,s.checker))A=A.concat(UCe(s,D,t,r));else{let w=S&&D.expression?VCe(s.checker,S,D.expression):D.expression;A.push(...Ppe(w,BY(o,e,s.checker)))}else{if(t&&x0(D,Ty))return PE();A.push(D)}return wO(o,s)?A.map(D=>ol(D)):BXe(A,r,s,N)}else{let A=kX(E,s.checker)?UCe(s,L.createReturnStatement(E),t,r):Xe;if(A.length>0)return A;if(S){let N=VCe(s.checker,S,E);if(wO(o,s))return Ppe(N,BY(o,e,s.checker));{let D=VY(r,N,void 0);return r&&r.types.push(s.checker.getAwaitedType(S)||S),D}}else return PE()}}default:return PE()}return Xe}function VCe(e,t,r){let i=ol(r);return e.getPromisedTypeOfPromise(t)?L.createAwaitExpression(i):i}function jCe(e,t){let r=t.getSignaturesOfType(e,0);return $s(r)}function BXe(e,t,r,i){let o=[];for(let s of e)if(Sm(s)){if(s.expression){let l=WCe(s.expression,r.checker)?L.createAwaitExpression(s.expression):s.expression;t===void 0?o.push(L.createExpressionStatement(l)):kO(t)&&t.hasBeenDeclared?o.push(L.createExpressionStatement(L.createAssignment(Lpe(t),l))):o.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(q7(t),void 0,void 0,l)],2)))}}else o.push(ol(s));return!i&&t!==void 0&&o.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(q7(t),void 0,void 0,L.createIdentifier("undefined"))],2))),o}function UCe(e,t,r,i){let o=[];return Bo(t,function s(l){if(ra(l)){let d=SD(l,l,e,r,i);if(o=o.concat(d),o.length>0)return}else Yo(l)||Bo(l,s)}),o}function HCe(e,t){let r=[],i;if(Ws(e)){if(e.parameters.length>0){let p=e.parameters[0].name;i=o(p)}}else Fe(e)?i=s(e):wr(e)&&Fe(e.name)&&(i=s(e.name));if(!i||"identifier"in i&&i.identifier.text==="undefined")return;return i;function o(p){if(Fe(p))return s(p);let h=va(p.elements,m=>Gc(m)?[]:[o(m.name)]);return GXe(p,h)}function s(p){let h=d(p),m=l(h);return m&&t.synthNamesMap.get(ba(m).toString())||cM(p,r)}function l(p){var h;return((h=ri(p,b_))==null?void 0:h.symbol)??t.checker.getSymbolAtLocation(p)}function d(p){return p.original?p.original:p}}function KCe(e){return e?kO(e)?!e.identifier.text:oo(e.elements,KCe):!0}function cM(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function GXe(e,t=Xe,r=[]){return{kind:1,bindingPattern:e,elements:t,types:r}}function Lpe(e){return e.hasBeenReferenced=!0,e.identifier}function q7(e){return kO(e)?kpe(e):JCe(e)}function JCe(e){for(let t of e.elements)q7(t);return e.bindingPattern}function kpe(e){return e.hasBeenDeclared=!0,e.identifier}function kO(e){return e.kind===0}function VXe(e){return e.kind===1}function wO(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(is(e.original))}var jY,wpe,X7,jXe=bt({"src/services/codefixes/convertToAsyncFunction.ts"(){"use strict";ai(),Aa(),jY="convertToAsyncFunction",wpe=[f.This_may_be_converted_to_an_async_function.code],X7=!0,Ea({errorCodes:wpe,getCodeActions(e){X7=!0;let t=pr.ChangeTracker.with(e,r=>wCe(r,e.sourceFile,e.span.start,e.program.getTypeChecker()));return X7?[ia(jY,t,f.Convert_to_async_function,jY,f.Convert_all_to_async_functions)]:[]},fixIds:[jY],getAllCodeActions:e=>ys(e,wpe,(t,r)=>wCe(t,r.file,r.start,e.program.getTypeChecker()))})}});function UXe(e,t,r,i,o){var s;for(let l of e.imports){let d=(s=r.getResolvedModuleFromModuleSpecifier(l))==null?void 0:s.resolvedModule;if(!d||d.resolvedFileName!==t.fileName)continue;let p=vN(l);switch(p.kind){case 271:i.replaceNode(e,p,Ky(p.name,void 0,l,o));break;case 213:Eu(p,!1)&&i.replaceNode(e,p,L.createPropertyAccessExpression(ol(p),"default"));break}}}function HXe(e,t,r,i,o){let s={original:iYe(e),additional:new Set},l=KXe(e,t,s);JXe(e,l,r);let d=!1,p;for(let h of jr(e.statements,Ml)){let m=XCe(e,h,r,t,s,i,o);m&&vF(m,p??(p=new Map))}for(let h of jr(e.statements,m=>!Ml(m))){let m=qXe(e,h,t,r,s,i,l,p,o);d=d||m}return p?.forEach((h,m)=>{r.replaceNode(e,m,h)}),d}function KXe(e,t,r){let i=new Map;return qCe(e,o=>{let{text:s}=o.name;!i.has(s)&&(xj(o.name)||t.resolveName(s,o,111551,!0))&&i.set(s,UY(`_${s}`,r))}),i}function JXe(e,t,r){qCe(e,(i,o)=>{if(o)return;let{text:s}=i.name;r.replaceNode(e,i,L.createIdentifier(t.get(s)||s))})}function qCe(e,t){e.forEachChild(function r(i){if(wr(i)&&eS(e,i.expression)&&Fe(i.name)){let{parent:o}=i;t(i,ur(o)&&o.left===i&&o.operatorToken.kind===64)}i.forEachChild(r)})}function qXe(e,t,r,i,o,s,l,d,p){switch(t.kind){case 243:return XCe(e,t,i,r,o,s,p),!1;case 244:{let{expression:h}=t;switch(h.kind){case 213:return Eu(h,!0)&&i.replaceNode(e,t,Ky(void 0,void 0,h.arguments[0],p)),!1;case 226:{let{operatorToken:m}=h;return m.kind===64&&YXe(e,r,h,i,l,d)}}}default:return!1}}function XCe(e,t,r,i,o,s,l){let{declarationList:d}=t,p=!1,h=mn(d.declarations,m=>{let{name:y,initializer:E}=m;if(E){if(eS(e,E))return p=!0,dM([]);if(Eu(E,!0))return p=!0,nYe(y,E.arguments[0],i,o,s,l);if(wr(E)&&Eu(E.expression,!0))return p=!0,XXe(y,E.name.text,E.expression.arguments[0],o,l)}return dM([L.createVariableStatement(void 0,L.createVariableDeclarationList([m],d.flags))])});if(p){r.replaceNodeWithNodes(e,t,va(h,y=>y.newImports));let m;return gn(h,y=>{y.useSitesToUnqualify&&vF(y.useSitesToUnqualify,m??(m=new Map))}),m}}function XXe(e,t,r,i,o){switch(e.kind){case 206:case 207:{let s=UY(t,i);return dM([ZCe(s,t,r,o),HY(void 0,e,L.createIdentifier(s))])}case 80:return dM([ZCe(e.text,t,r,o)]);default:return R.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function YXe(e,t,r,i,o,s){let{left:l,right:d}=r;if(!wr(l))return!1;if(eS(e,l))if(eS(e,d))i.delete(e,r.parent);else{let p=La(d)?$Xe(d,s):Eu(d,!0)?ZXe(d.arguments[0],t):void 0;return p?(i.replaceNodeWithNodes(e,r.parent,p[0]),p[1]):(i.replaceRangeWithText(e,Ef(l.getStart(e),d.pos),"export default"),!0)}else eS(e,l.expression)&&QXe(e,r,i,o);return!1}function $Xe(e,t){let r=PG(e.properties,i=>{switch(i.kind){case 177:case 178:case 304:case 305:return;case 303:return Fe(i.name)?tYe(i.name.text,i.initializer,t):void 0;case 174:return Fe(i.name)?QCe(i.name.text,[L.createToken(95)],i,t):void 0;default:R.assertNever(i,`Convert to ES6 got invalid prop kind ${i.kind}`)}});return r&&[r,!1]}function QXe(e,t,r,i){let{text:o}=t.left.name,s=i.get(o);if(s!==void 0){let l=[HY(void 0,s,t.right),Fpe([L.createExportSpecifier(!1,s,o)])];r.replaceNodeWithNodes(e,t.parent,l)}else eYe(t,e,r)}function ZXe(e,t){let r=e.text,i=t.getSymbolAtLocation(e),o=i?i.exports:IW;return o.has("export=")?[[Ope(r)],!0]:o.has("default")?o.size>1?[[YCe(r),Ope(r)],!0]:[[Ope(r)],!0]:[[YCe(r)],!1]}function YCe(e){return Fpe(void 0,e)}function Ope(e){return Fpe([L.createExportSpecifier(!1,void 0,"default")],e)}function eYe({left:e,right:t,parent:r},i,o){let s=e.name.text;if((Ms(t)||Fs(t)||$c(t))&&(!t.name||t.name.text===s)){o.replaceRange(i,{pos:e.getStart(i),end:t.getStart(i)},L.createToken(95),{suffix:" "}),t.name||o.insertName(i,t,s);let l=hs(r,27,i);l&&o.delete(i,l)}else o.replaceNodeRangeWithNodes(i,e.expression,hs(e,25,i),[L.createToken(95),L.createToken(87)],{joiner:" ",suffix:" "})}function tYe(e,t,r){let i=[L.createToken(95)];switch(t.kind){case 218:{let{name:s}=t;if(s&&s.text!==e)return o()}case 219:return QCe(e,i,t,r);case 231:return aYe(e,i,t,r);default:return o()}function o(){return HY(i,L.createIdentifier(e),Wpe(t,r))}}function Wpe(e,t){if(!t||!gt(Oo(t.keys()),i=>of(e,i)))return e;return So(e)?nX(e,!0,r):sO(e,!0,r);function r(i){if(i.kind===211){let o=t.get(i);return t.delete(i),o}}}function nYe(e,t,r,i,o,s){switch(e.kind){case 206:{let l=PG(e.elements,d=>d.dotDotDotToken||d.initializer||d.propertyName&&!Fe(d.propertyName)||!Fe(d.name)?void 0:eNe(d.propertyName&&d.propertyName.text,d.name.text));if(l)return dM([Ky(void 0,l,t,s)])}case 207:{let l=UY($pe(t.text,o),i);return dM([Ky(L.createIdentifier(l),void 0,t,s),HY(void 0,ol(e),L.createIdentifier(l))])}case 80:return rYe(e,t,r,i,s);default:return R.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function rYe(e,t,r,i,o){let s=r.getSymbolAtLocation(e),l=new Map,d=!1,p;for(let m of i.original.get(e.text)){if(r.getSymbolAtLocation(m)!==s||m===e)continue;let{parent:y}=m;if(wr(y)){let{name:{text:E}}=y;if(E==="default"){d=!0;let S=m.getText();(p??(p=new Map)).set(y,L.createIdentifier(S))}else{R.assert(y.expression===m,"Didn't expect expression === use");let S=l.get(E);S===void 0&&(S=UY(E,i),l.set(E,S)),(p??(p=new Map)).set(y,L.createIdentifier(S))}}else d=!0}let h=l.size===0?void 0:Oo(wC(l.entries(),([m,y])=>L.createImportSpecifier(!1,m===y?void 0:L.createIdentifier(m),L.createIdentifier(y))));return h||(d=!0),dM([Ky(d?ol(e):void 0,h,t,o)],p)}function UY(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function iYe(e){let t=Xp();return $Ce(e,r=>t.add(r.text,r)),t}function $Ce(e,t){Fe(e)&&oYe(e)&&t(e),e.forEachChild(r=>$Ce(r,t))}function oYe(e){let{parent:t}=e;switch(t.kind){case 211:return t.name!==e;case 208:return t.propertyName!==e;case 276:return t.propertyName!==e;default:return!0}}function QCe(e,t,r,i){return L.createFunctionDeclaration(bo(t,lS(r.modifiers)),ol(r.asteriskToken),e,lS(r.typeParameters),lS(r.parameters),ol(r.type),L.converters.convertToFunctionBlock(Wpe(r.body,i)))}function aYe(e,t,r,i){return L.createClassDeclaration(bo(t,lS(r.modifiers)),e,lS(r.typeParameters),lS(r.heritageClauses),Wpe(r.members,i))}function ZCe(e,t,r,i){return t==="default"?Ky(L.createIdentifier(e),void 0,r,i):Ky(void 0,[eNe(t,e)],r,i)}function eNe(e,t){return L.createImportSpecifier(!1,e!==void 0&&e!==t?L.createIdentifier(e):void 0,L.createIdentifier(t))}function HY(e,t,r){return L.createVariableStatement(e,L.createVariableDeclarationList([L.createVariableDeclaration(t,void 0,void 0,r)],2))}function Fpe(e,t){return L.createExportDeclaration(void 0,!1,e&&L.createNamedExports(e),t===void 0?void 0:L.createStringLiteral(t))}function dM(e,t){return{newImports:e,useSitesToUnqualify:t}}var sYe=bt({"src/services/codefixes/convertToEsModule.ts"(){"use strict";ai(),Aa(),Ea({errorCodes:[f.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){let{sourceFile:t,program:r,preferences:i}=e,o=pr.ChangeTracker.with(e,s=>{if(HXe(t,r.getTypeChecker(),s,rs(r.getCompilerOptions()),af(t,i)))for(let d of r.getSourceFiles())UXe(d,t,r,s,af(d,i))});return[Zm("convertToEsModule",o,f.Convert_to_ES_module)]}})}});function tNe(e,t){let r=Fn(so(e,t),Tu);return R.assert(!!r,"Expected position to be owned by a qualified name."),Fe(r.left)?r:void 0}function nNe(e,t,r){let i=r.right.text,o=L.createIndexedAccessTypeNode(L.createTypeReferenceNode(r.left,void 0),L.createLiteralTypeNode(L.createStringLiteral(i)));e.replaceNode(t,r,o)}var KY,zpe,lYe=bt({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){"use strict";ai(),Aa(),KY="correctQualifiedNameToIndexedAccessType",zpe=[f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code],Ea({errorCodes:zpe,getCodeActions(e){let t=tNe(e.sourceFile,e.span.start);if(!t)return;let r=pr.ChangeTracker.with(e,o=>nNe(o,e.sourceFile,t)),i=`${t.left.text}["${t.right.text}"]`;return[ia(KY,r,[f.Rewrite_as_the_indexed_access_type_0,i],KY,f.Rewrite_all_as_indexed_access_types)]},fixIds:[KY],getAllCodeActions:e=>ys(e,zpe,(t,r)=>{let i=tNe(r.file,r.start);i&&nNe(t,r.file,i)})})}});function rNe(e,t){return ri(so(t,e.start).parent,Hd)}function iNe(e,t,r){if(!t)return;let i=t.parent,o=i.parent,s=cYe(t,r);if(s.length===i.elements.length)e.insertModifierBefore(r.sourceFile,156,i);else{let l=L.updateExportDeclaration(o,o.modifiers,!1,L.updateNamedExports(i,jr(i.elements,p=>!zo(s,p))),o.moduleSpecifier,void 0),d=L.createExportDeclaration(void 0,!0,L.createNamedExports(s),o.moduleSpecifier,void 0);e.replaceNode(r.sourceFile,o,l,{leadingTriviaOption:pr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:pr.TrailingTriviaOption.Exclude}),e.insertNodeAfter(r.sourceFile,o,d)}}function cYe(e,t){let r=e.parent;if(r.elements.length===1)return r.elements;let i=zde(xu(r),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return jr(r.elements,o=>{var s;return o===e||((s=Fde(o,i))==null?void 0:s.code)===JY[0]})}var JY,qY,dYe=bt({"src/services/codefixes/convertToTypeOnlyExport.ts"(){"use strict";ai(),Aa(),JY=[f.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],qY="convertToTypeOnlyExport",Ea({errorCodes:JY,getCodeActions:function(t){let r=pr.ChangeTracker.with(t,i=>iNe(i,rNe(t.span,t.sourceFile),t));if(r.length)return[ia(qY,r,f.Convert_to_type_only_export,qY,f.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[qY],getAllCodeActions:function(t){let r=new Map;return ys(t,JY,(i,o)=>{let s=rNe(o,t.sourceFile);s&&Em(r,is(s.parent.parent))&&iNe(i,s,t)})}})}});function oNe(e,t){let{parent:r}=so(e,t);return Qu(r)||Mc(r)&&r.importClause?r:void 0}function aNe(e,t,r){if(e.parent.parent.name)return!1;let i=e.parent.elements.filter(s=>!s.isTypeOnly);if(i.length===1)return!0;let o=r.getTypeChecker();for(let s of i)if(Ls.Core.eachSymbolReferenceInFile(s.name,o,t,d=>!mE(d)))return!1;return!0}function Y7(e,t,r){var i;if(Qu(r))e.replaceNode(t,r,L.updateImportSpecifier(r,!0,r.propertyName,r.name));else{let o=r.importClause;if(o.name&&o.namedBindings)e.replaceNodeWithNodes(t,r,[L.createImportDeclaration(lS(r.modifiers,!0),L.createImportClause(!0,ol(o.name,!0),void 0),ol(r.moduleSpecifier,!0),ol(r.attributes,!0)),L.createImportDeclaration(lS(r.modifiers,!0),L.createImportClause(!0,void 0,ol(o.namedBindings,!0)),ol(r.moduleSpecifier,!0),ol(r.attributes,!0))]);else{let s=((i=o.namedBindings)==null?void 0:i.kind)===275?L.updateNamedImports(o.namedBindings,Nc(o.namedBindings.elements,d=>L.updateImportSpecifier(d,!1,d.propertyName,d.name))):o.namedBindings,l=L.updateImportDeclaration(r,r.modifiers,L.updateImportClause(o,!0,o.name,s),r.moduleSpecifier,r.attributes);e.replaceNode(t,r,l)}}}var Bpe,$7,uYe=bt({"src/services/codefixes/convertToTypeOnlyImport.ts"(){"use strict";ai(),Aa(),Bpe=[f.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code,f._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code,f._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],$7="convertToTypeOnlyImport",Ea({errorCodes:Bpe,getCodeActions:function(t){var r;let i=oNe(t.sourceFile,t.span.start);if(i){let o=pr.ChangeTracker.with(t,d=>Y7(d,t.sourceFile,i)),s=i.kind===276&&aNe(i,t.sourceFile,t.program)?pr.ChangeTracker.with(t,d=>Y7(d,t.sourceFile,i.parent.parent.parent)):void 0,l=ia($7,o,i.kind===276?[f.Use_type_0,((r=i.propertyName)==null?void 0:r.text)??i.name.text]:f.Use_import_type,$7,f.Fix_all_with_type_only_imports);return gt(s)?[Zm($7,s,f.Use_import_type),l]:[l]}},fixIds:[$7],getAllCodeActions:function(t){let r=new Set;return ys(t,Bpe,(i,o)=>{let s=oNe(o.file,o.start);s?.kind===272&&!r.has(s)?(Y7(i,o.file,s),r.add(s)):s?.kind===276&&!r.has(s.parent.parent.parent)&&aNe(s,o.file,t.program)?(Y7(i,o.file,s.parent.parent.parent),r.add(s.parent.parent.parent)):s?.kind===276&&Y7(i,o.file,s)})}})}});function sNe(e,t,r,i,o=!1){if(!zT(t))return;let s=fYe(t);if(!s)return;let l=t.parent,{leftSibling:d,rightSibling:p}=pYe(t),h=l.getStart(),m="";!d&&l.comment&&(h=lNe(l,l.getStart(),t.getStart()),m=`${i} */${i}`),d&&(o&&zT(d)?(h=t.getStart(),m=""):(h=lNe(l,d.getStart(),t.getStart()),m=`${i} */${i}`));let y=l.getEnd(),E="";p&&(o&&zT(p)?(y=p.getStart(),E=`${i}${i}`):(y=p.getStart(),E=`${i}/**${i} * `)),e.replaceRange(r,{pos:h,end:y},s,{prefix:m,suffix:E})}function pYe(e){let t=e.parent,r=t.getChildCount()-1,i=t.getChildren().findIndex(l=>l.getStart()===e.getStart()&&l.getEnd()===e.getEnd()),o=i>0?t.getChildAt(i-1):void 0,s=i0;o--)if(!/[*/\s]/g.test(i.substring(o-1,o)))return t+o;return r}function fYe(e){var t;let{typeExpression:r}=e;if(!r)return;let i=(t=e.name)==null?void 0:t.getText();if(i){if(r.kind===329)return mYe(i,r);if(r.kind===316)return _Ye(i,r)}}function mYe(e,t){let r=cNe(t);if(gt(r))return L.createInterfaceDeclaration(void 0,e,void 0,void 0,r)}function _Ye(e,t){let r=ol(t.type);if(r)return L.createTypeAliasDeclaration(void 0,L.createIdentifier(e),void 0,r)}function cNe(e){let t=e.jsDocPropertyTags;return gt(t)?to(t,i=>{var o;let s=hYe(i),l=(o=i.typeExpression)==null?void 0:o.type,d=i.isBracketed,p;if(l&&FT(l)){let h=cNe(l);p=L.createTypeLiteralNode(h)}else l&&(p=ol(l));if(p&&s){let h=d?L.createToken(58):void 0;return L.createPropertySignature(void 0,s,h,p)}}):void 0}function hYe(e){return e.name.kind===80?e.name.text:e.name.right.text}function gYe(e){return kp(e)?va(e.jsDoc,t=>{var r;return(r=t.tags)==null?void 0:r.filter(i=>zT(i))}):[]}var XY,Gpe,yYe=bt({"src/services/codefixes/convertTypedefToType.ts"(){"use strict";ai(),Aa(),XY="convertTypedefToType",Gpe=[f.JSDoc_typedef_may_be_converted_to_TypeScript_type.code],Ea({fixIds:[XY],errorCodes:Gpe,getCodeActions(e){let t=Jy(e.host,e.formatContext.options),r=so(e.sourceFile,e.span.start);if(!r)return;let i=pr.ChangeTracker.with(e,o=>sNe(o,r,e.sourceFile,t));if(i.length>0)return[ia(XY,i,f.Convert_typedef_to_TypeScript_type,XY,f.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:e=>ys(e,Gpe,(t,r)=>{let i=Jy(e.host,e.formatContext.options),o=so(r.file,r.start);o&&sNe(t,o,r.file,i,!0)})})}});function dNe(e,t){let r=so(e,t);if(Fe(r)){let i=ta(r.parent.parent,_p),o=r.getText(e);return{container:ta(i.parent,gp),typeNode:i.type,constraint:o,name:o==="K"?"P":"K"}}}function uNe(e,t,{container:r,typeNode:i,constraint:o,name:s}){e.replaceNode(t,r,L.createMappedTypeNode(void 0,L.createTypeParameterDeclaration(void 0,s,L.createTypeReferenceNode(o)),void 0,void 0,i,void 0))}var YY,Vpe,vYe=bt({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){"use strict";ai(),Aa(),YY="convertLiteralTypeToMappedType",Vpe=[f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],Ea({errorCodes:Vpe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=dNe(r,i.start);if(!o)return;let{name:s,constraint:l}=o,d=pr.ChangeTracker.with(t,p=>uNe(p,r,o));return[ia(YY,d,[f.Convert_0_to_1_in_0,l,s],YY,f.Convert_all_type_literals_to_mapped_type)]},fixIds:[YY],getAllCodeActions:e=>ys(e,Vpe,(t,r)=>{let i=dNe(r.file,r.start);i&&uNe(t,r.file,i)})})}});function pNe(e,t){return R.checkDefined(id(so(e,t)),"There should be a containing class")}function fNe(e){return!e.valueDeclaration||!(cu(e.valueDeclaration)&2)}function mNe(e,t,r,i,o,s){let l=e.program.getTypeChecker(),d=bYe(i,l),p=l.getTypeAtLocation(t),m=l.getPropertiesOfType(p).filter(EW(fNe,D=>!d.has(D.escapedName))),y=l.getTypeAtLocation(i),E=Vr(i.members,D=>Pl(D));y.getNumberIndexType()||A(p,1),y.getStringIndexType()||A(p,0);let S=x1(r,e.program,s,e.host);Yfe(i,m,r,e,s,S,D=>N(r,i,D)),S.writeFixes(o);function A(D,w){let j=l.getIndexInfoOfType(D,w);j&&N(r,i,l.indexInfoToIndexSignatureDeclaration(j,i,void 0,TD(e)))}function N(D,w,j){E?o.insertNodeAfter(D,E,j):o.insertMemberAtStart(D,w,j)}}function bYe(e,t){let r=S_(e);if(!r)return oa();let i=t.getTypeAtLocation(r),o=t.getPropertiesOfType(i);return oa(o.filter(fNe))}var jpe,$Y,EYe=bt({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){"use strict";ai(),Aa(),jpe=[f.Class_0_incorrectly_implements_interface_1.code,f.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],$Y="fixClassIncorrectlyImplementsInterface",Ea({errorCodes:jpe,getCodeActions(e){let{sourceFile:t,span:r}=e,i=pNe(t,r.start);return to(oR(i),o=>{let s=pr.ChangeTracker.with(e,l=>mNe(e,o,t,i,l,e.preferences));return s.length===0?void 0:ia($Y,s,[f.Implement_interface_0,o.getText(t)],$Y,f.Implement_all_unimplemented_interfaces)})},fixIds:[$Y],getAllCodeActions(e){let t=new Map;return ys(e,jpe,(r,i)=>{let o=pNe(i.file,i.start);if(Em(t,is(o)))for(let s of oR(o))mNe(e,s,i.file,o,r,e.preferences)})}})}});function x1(e,t,r,i,o){return _Ne(e,t,!1,r,i,o)}function _Ne(e,t,r,i,o,s){let l=t.getCompilerOptions(),d=[],p=[],h=new Map,m=new Map;return{addImportFromDiagnostic:y,addImportFromExportedSymbol:E,writeFixes:A,hasFixes:N};function y(D,w){let j=ENe(w,D.code,D.start,r);!j||!j.length||S(Va(j))}function E(D,w){let j=R.checkDefined(D.parent),K=p7(D,rs(l)),Y=t.getTypeChecker(),B=Y.getMergedSymbol(gd(D,Y)),ce=yNe(e,B,K,j,!1,t,o,i,s),z=ZY(e,t),ee=hNe(e,R.checkDefined(ce),t,void 0,!!w,z,o,i);ee&&S({fix:ee,symbolName:K,errorIdentifierText:void 0})}function S(D){var w,j;let{fix:K,symbolName:Y}=D;switch(K.kind){case 0:d.push(K);break;case 1:p.push(K);break;case 2:{let{importClauseOrBindingPattern:ee,importKind:me,addAsTypeOnly:ge}=K,q=String(is(ee)),J=h.get(q);if(J||h.set(q,J={importClauseOrBindingPattern:ee,defaultImport:void 0,namedImports:new Map}),me===0){let re=J?.namedImports.get(Y);J.namedImports.set(Y,B(re,ge))}else R.assert(J.defaultImport===void 0||J.defaultImport.name===Y,"(Add to Existing) Default import should be missing or match symbolName"),J.defaultImport={name:Y,addAsTypeOnly:B((w=J.defaultImport)==null?void 0:w.addAsTypeOnly,ge)};break}case 3:{let{moduleSpecifier:ee,importKind:me,useRequire:ge,addAsTypeOnly:q}=K,J=ce(ee,me,ge,q);switch(R.assert(J.useRequire===ge,"(Add new) Tried to add an `import` and a `require` for the same module"),me){case 1:R.assert(J.defaultImport===void 0||J.defaultImport.name===Y,"(Add new) Default import should be missing or match symbolName"),J.defaultImport={name:Y,addAsTypeOnly:B((j=J.defaultImport)==null?void 0:j.addAsTypeOnly,q)};break;case 0:let re=(J.namedImports||(J.namedImports=new Map)).get(Y);J.namedImports.set(Y,B(re,q));break;case 3:case 2:R.assert(J.namespaceLikeImport===void 0||J.namespaceLikeImport.name===Y,"Namespacelike import shoudl be missing or match symbolName"),J.namespaceLikeImport={importKind:me,name:Y,addAsTypeOnly:q};break}break}case 4:break;default:R.assertNever(K,`fix wasn't never - got kind ${K.kind}`)}function B(ee,me){return Math.max(ee??0,me)}function ce(ee,me,ge,q){let J=z(ee,!0),re=z(ee,!1),pe=m.get(J),xe=m.get(re),fe={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:ge};return me===1&&q===2?pe||(m.set(J,fe),fe):q===1&&(pe||xe)?pe||xe:xe||(m.set(re,fe),fe)}function z(ee,me){return`${me?1:0}|${ee}`}}function A(D,w){let j;e.imports.length===0&&w!==void 0?j=w:j=af(e,i);for(let Y of d)qpe(D,e,Y);for(let Y of p)DNe(D,e,Y,j);h.forEach(({importClauseOrBindingPattern:Y,defaultImport:B,namedImports:ce})=>{RNe(D,e,Y,B,Oo(ce.entries(),([z,ee])=>({addAsTypeOnly:ee,name:z})),i)});let K;m.forEach(({useRequire:Y,defaultImport:B,namedImports:ce,namespaceLikeImport:z},ee)=>{let me=ee.slice(2),q=(Y?PNe:NNe)(me,j,B,ce&&Oo(ce.entries(),([J,re])=>({addAsTypeOnly:re,name:J})),z,l,i);K=yx(K,q)}),K&&QP(D,e,K,!0,i)}function N(){return d.length>0||p.length>0||h.size>0||m.size>0}}function SYe(e,t,r,i){let o=oM(e,i,r),s=vNe(t.getTypeChecker(),e,t.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:l};function l(d,p,h,m){let{fixes:y,computedWithoutCacheCount:E}=QY(d,p,h,!1,t,e,r,i,s,m),S=SNe(y,e,t,o,r);return S&&{...S,computedWithoutCacheCount:E}}}function TYe(e,t,r,i,o,s,l,d,p,h,m,y){let E;r?(E=mO(i,l,d,m,y).get(i.path,r),R.assertIsDefined(E,"Some exportInfo should match the specified exportMapKey")):(E=sV(Yf(t.name))?[IYe(e,o,t,d,l)]:yNe(i,e,o,t,s,d,l,m,y),R.assertIsDefined(E,"Some exportInfo should match the specified symbol / moduleSymbol"));let S=ZY(i,d),A=mE(so(i,h)),N=R.checkDefined(hNe(i,E,d,h,A,S,l,m));return{moduleSpecifier:N.moduleSpecifier,codeAction:gNe(Jpe({host:l,formatContext:p,preferences:m},i,o,N,!1,d,m))}}function AYe(e,t,r,i,o,s){let l=r.getCompilerOptions(),d=FG(Kpe(e,r.getTypeChecker(),t,l)),p=INe(e,t,d,r),h=d!==t.text;return p&&gNe(Jpe({host:i,formatContext:o,preferences:s},e,d,p,h,r,s))}function hNe(e,t,r,i,o,s,l,d){let p=oM(e,d,l);return SNe(QY(t,i,o,s,r,e,l,d).fixes,e,r,p,l)}function gNe({description:e,changes:t,commands:r}){return{description:e,changes:t,commands:r}}function yNe(e,t,r,i,o,s,l,d,p){let h=bNe(s,l);return mO(e,l,s,d,p).search(e.path,o,m=>m===r,m=>{if(gd(m[0].symbol,h(m[0].isFromPackageJson))===t&&m.some(y=>y.moduleSymbol===i||y.symbol.parent===i))return m})}function IYe(e,t,r,i,o){var s,l;let d=i.getCompilerOptions(),p=m(i.getTypeChecker(),!1);if(p)return p;let h=(l=(s=o.getPackageJsonAutoImportProvider)==null?void 0:s.call(o))==null?void 0:l.getTypeChecker();return R.checkDefined(h&&m(h,!0),"Could not find symbol in specified module for code actions");function m(y,E){let S=v7(r,y,d);if(S&&gd(S.symbol,y)===e)return{symbol:S.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:S.exportKind,targetFlags:gd(e,y).flags,isFromPackageJson:E};let A=y.tryGetMemberInModuleExportsAndProperties(t,r);if(A&&gd(A,y)===e)return{symbol:A,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:gd(e,y).flags,isFromPackageJson:E}}}function QY(e,t,r,i,o,s,l,d,p=vNe(o.getTypeChecker(),s,o.getCompilerOptions()),h){let m=o.getTypeChecker(),y=va(e,p.getImportsForExportInfo),E=t!==void 0&&xYe(y,t),S=DYe(y,r,m,o.getCompilerOptions());if(S)return{computedWithoutCacheCount:0,fixes:[...E?[E]:Xe,S]};let{fixes:A,computedWithoutCacheCount:N=0}=NYe(e,y,o,s,t,r,i,l,d,h);return{computedWithoutCacheCount:N,fixes:[...E?[E]:Xe,...A]}}function xYe(e,t){return Wl(e,({declaration:r,importKind:i})=>{var o;if(i!==0)return;let s=RYe(r),l=s&&((o=Zx(r))==null?void 0:o.text);if(l)return{kind:0,namespacePrefix:s,usagePosition:t,moduleSpecifier:l}})}function RYe(e){var t,r,i;switch(e.kind){case 260:return(t=ri(e.name,Fe))==null?void 0:t.text;case 271:return e.name.text;case 272:return(i=ri((r=e.importClause)==null?void 0:r.namedBindings,Yv))==null?void 0:i.name.text;default:return R.assertNever(e)}}function Upe(e,t,r,i,o,s){return e?t&&s.importsNotUsedAsValues===2||rU(s)&&(!(i&111551)||o.getTypeOnlyAliasDeclaration(r))?2:1:4}function DYe(e,t,r,i){let o;for(let l of e){let d=s(l);if(!d)continue;let p=t2(d.importClauseOrBindingPattern);if(d.addAsTypeOnly!==4&&p||d.addAsTypeOnly===4&&!p)return d;o??(o=d)}return o;function s({declaration:l,importKind:d,symbol:p,targetFlags:h}){if(d===3||d===2||l.kind===271)return;if(l.kind===260)return(d===0||d===1)&&l.name.kind===206?{kind:2,importClauseOrBindingPattern:l.name,importKind:d,moduleSpecifier:l.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;let{importClause:m}=l;if(!m||!ss(l.moduleSpecifier))return;let{name:y,namedBindings:E}=m;if(m.isTypeOnly&&!(d===0&&E))return;let S=Upe(t,!1,p,h,r,i);if(!(d===1&&(y||S===2&&E))&&!(d===0&&E?.kind===274))return{kind:2,importClauseOrBindingPattern:m,importKind:d,moduleSpecifier:l.moduleSpecifier.text,addAsTypeOnly:S}}}function vNe(e,t,r){let i;for(let o of t.imports){let s=vN(o);if(KF(s.parent)){let l=e.resolveExternalModuleName(o);l&&(i||(i=Xp())).add(ba(l),s.parent)}else if(s.kind===272||s.kind===271){let l=e.getSymbolAtLocation(o);l&&(i||(i=Xp())).add(ba(l),s)}}return{getImportsForExportInfo:({moduleSymbol:o,exportKind:s,targetFlags:l,symbol:d})=>{if(!(l&111551)&&lu(t))return Xe;let p=i?.get(ba(o));if(!p)return Xe;let h=Hpe(t,s,r);return p.map(m=>({declaration:m,importKind:h,symbol:d,targetFlags:l}))}}}function ZY(e,t){if(!lu(e))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;let r=t.getCompilerOptions();if(r.configFile)return Md(r)<5;if(e.impliedNodeFormat===1)return!0;if(e.impliedNodeFormat===99)return!1;for(let i of t.getSourceFiles())if(!(i===e||!lu(i)||t.isSourceFileFromExternalLibrary(i))){if(i.commonJsModuleIndicator&&!i.externalModuleIndicator)return!0;if(i.externalModuleIndicator&&!i.commonJsModuleIndicator)return!1}return!0}function bNe(e,t){return ah(r=>r?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function CYe(e,t,r,i,o,s,l,d,p){let h=lu(t),m=e.getCompilerOptions(),y=YT(e,l),E=bNe(e,l),S=uu(m),A=qz(S),N=p?j=>({moduleSpecifiers:tS.tryGetModuleSpecifiersFromCache(j,t,y,d),computedWithoutCache:!1}):(j,K)=>tS.getModuleSpecifiersWithCacheInfo(j,K,m,t,y,d,void 0,!0),D=0,w=va(s,(j,K)=>{let Y=E(j.isFromPackageJson),{computedWithoutCache:B,moduleSpecifiers:ce}=N(j.moduleSymbol,Y),z=!!(j.targetFlags&111551),ee=Upe(i,!0,j.symbol,j.targetFlags,Y,m);return D+=B?1:0,to(ce,me=>{var ge;if(A&&AE(me))return;if(!z&&h&&r!==void 0)return{kind:1,moduleSpecifier:me,usagePosition:r,exportInfo:j,isReExport:K>0};let q=Hpe(t,j.exportKind,m),J;if(r!==void 0&&q===3&&j.exportKind===0){let re=Y.resolveExternalModuleSymbol(j.moduleSymbol),pe;re!==j.moduleSymbol&&(pe=(ge=b7(re,Y,m))==null?void 0:ge.name),pe||(pe=Ype(j.moduleSymbol,rs(m),!1)),J={namespacePrefix:pe,usagePosition:r}}return{kind:3,moduleSpecifier:me,importKind:q,useRequire:o,addAsTypeOnly:ee,exportInfo:j,isReExport:K>0,qualification:J}})});return{computedWithoutCacheCount:D,fixes:w}}function NYe(e,t,r,i,o,s,l,d,p,h){let m=Wl(t,y=>PYe(y,s,l,r.getTypeChecker(),r.getCompilerOptions()));return m?{fixes:[m]}:CYe(r,i,o,s,l,e,d,p,h)}function PYe({declaration:e,importKind:t,symbol:r,targetFlags:i},o,s,l,d){var p;let h=(p=Zx(e))==null?void 0:p.text;if(h){let m=s?4:Upe(o,!0,r,i,l,d);return{kind:3,moduleSpecifier:h,importKind:t,addAsTypeOnly:m,useRequire:s}}}function ENe(e,t,r,i){let o=so(e.sourceFile,r),s;if(t===f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)s=wYe(e,o);else if(Fe(o))if(t===f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){let d=FG(Kpe(e.sourceFile,e.program.getTypeChecker(),o,e.program.getCompilerOptions())),p=INe(e.sourceFile,o,d,e.program);return p&&[{fix:p,symbolName:d,errorIdentifierText:o.text}]}else s=FYe(e,o,i);else return;let l=oM(e.sourceFile,e.preferences,e.host);return s&&MYe(s,e.sourceFile,e.program,l,e.host)}function MYe(e,t,r,i,o){let s=l=>tl(l,o.getCurrentDirectory(),Ly(o));return ZS(e,(l,d)=>Ev(!!l.isJsxNamespaceFix,!!d.isJsxNamespaceFix)||Zs(l.fix.kind,d.fix.kind)||TNe(l.fix,d.fix,t,r,i.allowsImportingSpecifier,s))}function SNe(e,t,r,i,o){if(gt(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((s,l)=>TNe(l,s,t,r,i.allowsImportingSpecifier,d=>tl(d,o.getCurrentDirectory(),Ly(o)))===-1?l:s)}function TNe(e,t,r,i,o,s){return e.kind!==0&&t.kind!==0?Ev(o(t.moduleSpecifier),o(e.moduleSpecifier))||kYe(e.moduleSpecifier,t.moduleSpecifier,r,i)||Ev(ANe(e,r,i.getCompilerOptions(),s),ANe(t,r,i.getCompilerOptions(),s))||lk(e.moduleSpecifier,t.moduleSpecifier):0}function ANe(e,t,r,i){var o;if(e.isReExport&&((o=e.exportInfo)!=null&&o.moduleFileName)&&LYe(e.exportInfo.moduleFileName)){let s=i(oi(e.exportInfo.moduleFileName));return ao(t.path,s)}return!1}function LYe(e){return nc(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function kYe(e,t,r,i){return ao(e,"node:")&&!ao(t,"node:")?m7(r,i)?-1:1:ao(t,"node:")&&!ao(e,"node:")?m7(r,i)?1:-1:0}function wYe({sourceFile:e,program:t,host:r,preferences:i},o){let s=t.getTypeChecker(),l=OYe(o,s);if(!l)return;let d=s.getAliasedSymbol(l),p=l.name,h=[{symbol:l,moduleSymbol:d,moduleFileName:void 0,exportKind:3,targetFlags:d.flags,isFromPackageJson:!1}],m=ZY(e,t);return QY(h,void 0,!1,m,t,e,r,i).fixes.map(E=>{var S;return{fix:E,symbolName:p,errorIdentifierText:(S=ri(o,Fe))==null?void 0:S.text}})}function OYe(e,t){let r=Fe(e)?t.getSymbolAtLocation(e):void 0;if(b6(r))return r;let{parent:i}=e;if(su(i)&&i.tagName===e||i1(i)){let o=t.resolveName(t.getJsxNamespace(i),su(i)?e:i,111551,!1);if(b6(o))return o}}function Hpe(e,t,r,i){if(r.verbatimModuleSyntax&&(Md(r)===1||e.impliedNodeFormat===1))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return GYe(e,r,!!i);case 3:return WYe(e,r,!!i);default:return R.assertNever(t)}}function WYe(e,t,r){if(RT(t))return 1;let i=Md(t);switch(i){case 2:case 1:case 3:return ir(e)&&(oc(e)||r)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:case 200:return 2;case 100:case 199:return e.impliedNodeFormat===99?2:3;default:return R.assertNever(i,`Unexpected moduleKind ${i}`)}}function FYe({sourceFile:e,program:t,cancellationToken:r,host:i,preferences:o},s,l){let d=t.getTypeChecker(),p=t.getCompilerOptions();return va(Kpe(e,d,s,p),h=>{if(h==="default")return;let m=mE(s),y=ZY(e,t),E=BYe(h,Yx(s),qT(s),r,e,t,l,i,o);return Oo(NG(E.values(),S=>QY(S,s.getStart(e),m,y,t,e,i,o).fixes),S=>({fix:S,symbolName:h,errorIdentifierText:s.text,isJsxNamespaceFix:h!==s.text}))})}function INe(e,t,r,i){let o=i.getTypeChecker(),s=o.resolveName(r,t,111551,!0);if(!s)return;let l=o.getTypeOnlyAliasDeclaration(s);if(!(!l||Gn(l)!==e))return{kind:4,typeOnlyAliasDeclaration:l}}function Kpe(e,t,r,i){let o=r.parent;if((su(o)||J0(o))&&o.tagName===r&&mX(i.jsx)){let s=t.getJsxNamespace(e);if(zYe(s,r,t))return!cR(r.text)&&!t.resolveName(r.text,r,111551,!1)?[r.text,s]:[s]}return[r.text]}function zYe(e,t,r){if(cR(t.text))return!0;let i=r.resolveName(e,t,111551,!0);return!i||gt(i.declarations,oE)&&!(i.flags&111551)}function BYe(e,t,r,i,o,s,l,d,p){var h;let m=Xp(),y=oM(o,p,d),E=(h=d.getModuleSpecifierCache)==null?void 0:h.call(d),S=ah(N=>YT(N?d.getPackageJsonAutoImportProvider():s,d));function A(N,D,w,j,K,Y){let B=S(Y);if(D&&EX(K,o,D,p,y,B,E)||!D&&y.allowsImportingAmbientModule(N,B)){let ce=K.getTypeChecker();m.add(Cde(w,ce).toString(),{symbol:w,moduleSymbol:N,moduleFileName:D?.fileName,exportKind:j,targetFlags:gd(w,ce).flags,isFromPackageJson:Y})}}return SX(s,d,p,l,(N,D,w,j)=>{let K=w.getTypeChecker();i.throwIfCancellationRequested();let Y=w.getCompilerOptions(),B=v7(N,K,Y);B&&(B.name===e||Ype(N,rs(Y),t)===e)&&LNe(B.resolvedSymbol,r)&&A(N,D,B.symbol,B.exportKind,w,j);let ce=K.tryGetMemberInModuleExportsAndProperties(e,N);ce&&LNe(ce,r)&&A(N,D,ce,0,w,j)}),m}function GYe(e,t,r){let i=RT(t),o=ir(e);if(!o&&Md(t)>=5)return i?1:2;if(o)return oc(e)||r?i?1:2:3;for(let s of e.statements)if(Zc(s)&&!Fl(s.moduleReference))return 3;return i?1:3}function Jpe(e,t,r,i,o,s,l){let d,p=pr.ChangeTracker.with(e,h=>{d=VYe(h,t,r,i,o,s,l)});return ia(Qpe,p,d,Zpe,f.Add_all_missing_imports)}function VYe(e,t,r,i,o,s,l){let d=af(t,l);switch(i.kind){case 0:return qpe(e,t,i),[f.Change_0_to_1,r,`${i.namespacePrefix}.${r}`];case 1:return DNe(e,t,i,d),[f.Change_0_to_1,r,CNe(i.moduleSpecifier,d)+r];case 2:{let{importClauseOrBindingPattern:p,importKind:h,addAsTypeOnly:m,moduleSpecifier:y}=i;RNe(e,t,p,h===1?{name:r,addAsTypeOnly:m}:void 0,h===0?[{name:r,addAsTypeOnly:m}]:Xe,l);let E=Yf(y);return o?[f.Import_0_from_1,r,E]:[f.Update_import_from_0,E]}case 3:{let{importKind:p,moduleSpecifier:h,addAsTypeOnly:m,useRequire:y,qualification:E}=i,S=y?PNe:NNe,A=p===1?{name:r,addAsTypeOnly:m}:void 0,N=p===0?[{name:r,addAsTypeOnly:m}]:void 0,D=p===2||p===3?{importKind:p,name:E?.namespacePrefix||r,addAsTypeOnly:m}:void 0;return QP(e,t,S(h,d,A,N,D,s.getCompilerOptions(),l),!0,l),E&&qpe(e,t,E),o?[f.Import_0_from_1,r,h]:[f.Add_import_from_0,h]}case 4:{let{typeOnlyAliasDeclaration:p}=i,h=jYe(e,p,s,t,l);return h.kind===276?[f.Remove_type_from_import_of_0_from_1,r,xNe(h.parent.parent)]:[f.Remove_type_from_import_declaration_from_0,xNe(h)]}default:return R.assertNever(i,`Unexpected fix kind ${i.kind}`)}}function xNe(e){var t,r;return e.kind===271?((r=ri((t=ri(e.moduleReference,bh))==null?void 0:t.expression,ss))==null?void 0:r.text)||e.moduleReference.getText():ta(e.parent.moduleSpecifier,Ca).text}function jYe(e,t,r,i,o){let s=r.getCompilerOptions(),l=rU(s);switch(t.kind){case 276:if(t.isTypeOnly){let p=Rm.detectImportSpecifierSorting(t.parent.elements,o);if(t.parent.elements.length>1&&p){let h=L.updateImportSpecifier(t,!1,t.propertyName,t.name),m=Rm.getOrganizeImportsComparer(o,p===2),y=Rm.getImportSpecifierInsertionIndex(t.parent.elements,h,m,o);if(y!==t.parent.elements.indexOf(t))return e.delete(i,t),e.insertImportSpecifierAtIndex(i,h,t.parent,y),t}return e.deleteRange(i,{pos:aE(t.getFirstToken()),end:aE(t.propertyName??t.name)}),t}else return R.assert(t.parent.parent.isTypeOnly),d(t.parent.parent),t.parent.parent;case 273:return d(t),t;case 274:return d(t.parent),t.parent;case 271:return e.deleteRange(i,t.getChildAt(1)),t;default:R.failBadSyntaxKind(t)}function d(p){var h;if(e.delete(i,Hq(p,i)),!s.allowImportingTsExtensions){let m=Zx(p.parent),y=m&&((h=r.getResolvedModuleFromModuleSpecifier(m))==null?void 0:h.resolvedModule);if(y?.resolvedUsingTsExtension){let E=WL(m.text,K3(m.text,s));e.replaceNode(i,m,L.createStringLiteral(E))}}if(l){let m=ri(p.namedBindings,Fg);if(m&&m.elements.length>1){Rm.detectImportSpecifierSorting(m.elements,o)&&t.kind===276&&m.elements.indexOf(t)!==0&&(e.delete(i,t),e.insertImportSpecifierAtIndex(i,t,m,0));for(let y of m.elements)y!==t&&!y.isTypeOnly&&e.insertModifierBefore(i,156,y)}}}}function RNe(e,t,r,i,o,s){var l;if(r.kind===206){i&&h(r,i.name,"default");for(let m of o)h(r,m.name,void 0);return}let d=r.isTypeOnly&>([i,...o],m=>m?.addAsTypeOnly===4),p=r.namedBindings&&((l=ri(r.namedBindings,Fg))==null?void 0:l.elements);if(i&&(R.assert(!r.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,r.getStart(t),L.createIdentifier(i.name),{suffix:", "})),o.length){let m;if(typeof s.organizeImportsIgnoreCase=="boolean")m=s.organizeImportsIgnoreCase;else if(p){let A=Rm.detectImportSpecifierSorting(p,s);A!==3&&(m=A===2)}m===void 0&&(m=Rm.detectSorting(t,s)===2);let y=Rm.getOrganizeImportsComparer(s,m),E=by(o.map(A=>L.createImportSpecifier((!r.isTypeOnly||d)&&e$(A,s),void 0,L.createIdentifier(A.name))),(A,N)=>Rm.compareImportOrExportSpecifiers(A,N,y)),S=p?.length&&Rm.detectImportSpecifierSorting(p,s);if(S&&!(m&&S===1))for(let A of E){let N=d&&!A.isTypeOnly?0:Rm.getImportSpecifierInsertionIndex(p,A,y,s);e.insertImportSpecifierAtIndex(t,A,r.namedBindings,N)}else if(p?.length)for(let A of E)e.insertNodeInListAfter(t,Ja(p),A,p);else if(E.length){let A=L.createNamedImports(E);r.namedBindings?e.replaceNode(t,r.namedBindings,A):e.insertNodeAfter(t,R.checkDefined(r.name,"Import clause must have either named imports or a default import"),A)}}if(d&&(e.delete(t,Hq(r,t)),p))for(let m of p)e.insertModifierBefore(t,156,m);function h(m,y,E){let S=L.createBindingElement(void 0,E,y);m.elements.length?e.insertNodeInListAfter(t,Ja(m.elements),S):e.replaceNode(t,m,L.createObjectBindingPattern([S]))}}function qpe(e,t,{namespacePrefix:r,usagePosition:i}){e.insertText(t,i,r+".")}function DNe(e,t,{moduleSpecifier:r,usagePosition:i},o){e.insertText(t,i,CNe(r,o))}function CNe(e,t){let r=Uq(t);return`import(${r}${e}${r}).`}function Xpe({addAsTypeOnly:e}){return e===2}function e$(e,t){return Xpe(e)||!!t.preferTypeOnlyAutoImports&&e.addAsTypeOnly!==4}function NNe(e,t,r,i,o,s,l){let d=b1(e,t),p;if(r!==void 0||i?.length){let h=(!r||Xpe(r))&&oo(i,Xpe)||(s.verbatimModuleSyntax||l.preferTypeOnlyAutoImports)&&r?.addAsTypeOnly!==4&&!gt(i,m=>m.addAsTypeOnly===4);p=yx(p,Ky(r&&L.createIdentifier(r.name),i?.map(m=>L.createImportSpecifier(!h&&e$(m,l),void 0,L.createIdentifier(m.name))),e,t,h))}if(o){let h=o.importKind===3?L.createImportEqualsDeclaration(void 0,e$(o,l),L.createIdentifier(o.name),L.createExternalModuleReference(d)):L.createImportDeclaration(void 0,L.createImportClause(e$(o,l),void 0,L.createNamespaceImport(L.createIdentifier(o.name))),d,void 0);p=yx(p,h)}return R.checkDefined(p)}function PNe(e,t,r,i,o){let s=b1(e,t),l;if(r||i?.length){let d=i?.map(({name:h})=>L.createBindingElement(void 0,void 0,h))||[];r&&d.unshift(L.createBindingElement(void 0,"default",r.name));let p=MNe(L.createObjectBindingPattern(d),s);l=yx(l,p)}if(o){let d=MNe(o.name,s);l=yx(l,d)}return R.checkDefined(l)}function MNe(e,t){return L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(typeof e=="string"?L.createIdentifier(e):e,void 0,void 0,L.createCallExpression(L.createIdentifier("require"),void 0,[t]))],2))}function LNe({declarations:e},t){return gt(e,r=>!!(Uw(r)&t))}function Ype(e,t,r){return $pe(Su(Yf(e.name)),t,r)}function $pe(e,t,r){let i=nc(Ex(e,"/index")),o="",s=!0,l=i.charCodeAt(0);Hh(l,t)?(o+=String.fromCharCode(l),r&&(o=o.toUpperCase())):s=!1;for(let d=1;dJpe(e,i,p,d,p!==h,s,r))},fixIds:[Zpe],getAllCodeActions:e=>{let{sourceFile:t,program:r,preferences:i,host:o,cancellationToken:s}=e,l=_Ne(t,r,!0,i,o,s);return ED(e,efe,d=>l.addImportFromDiagnostic(d,e)),bD(pr.ChangeTracker.with(e,l.writeFixes))}})}});function kNe(e,t,r){let i=Vr(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;let o=Vr(i.relatedInformation,l=>l.code===f.This_type_parameter_might_need_an_extends_0_constraint.code);if(o===void 0||o.file===void 0||o.start===void 0||o.length===void 0)return;let s=rme(o.file,_d(o.start,o.length));if(s!==void 0&&(Fe(s)&&fl(s.parent)&&(s=s.parent),fl(s))){if(DR(s.parent))return;let l=so(t,r.start),d=e.getTypeChecker();return{constraint:KYe(d,l)||HYe(o.messageText),declaration:s,token:l}}}function wNe(e,t,r,i,o,s){let{declaration:l,constraint:d}=s,p=t.getTypeChecker();if(Co(d))e.insertText(o,l.name.end,` extends ${d}`);else{let h=rs(t.getCompilerOptions()),m=TD({program:t,host:i}),y=x1(o,t,r,i),E=F$(p,y,d,void 0,h,void 0,m);E&&(e.replaceNode(o,l,L.updateTypeParameterDeclaration(l,void 0,l.name,E,l.default)),y.writeFixes(e))}}function HYe(e){let[,t]=k_(e,` +`,0).match(/`extends (.*)`/)||[];return t}function KYe(e,t){return ji(t.parent)?e.getTypeArgumentConstraint(t.parent):(ht(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var t$,tfe,JYe=bt({"src/services/codefixes/fixAddMissingConstraint.ts"(){"use strict";ai(),Aa(),t$="addMissingConstraint",tfe=[f.Type_0_is_not_comparable_to_type_1.code,f.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,f.Type_0_is_not_assignable_to_type_1.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,f.Property_0_is_incompatible_with_index_signature.code,f.Property_0_in_type_1_is_not_assignable_to_type_2.code,f.Type_0_does_not_satisfy_the_constraint_1.code],Ea({errorCodes:tfe,getCodeActions(e){let{sourceFile:t,span:r,program:i,preferences:o,host:s}=e,l=kNe(i,t,r);if(l===void 0)return;let d=pr.ChangeTracker.with(e,p=>wNe(p,i,o,s,t,l));return[ia(t$,d,f.Add_extends_constraint,t$,f.Add_extends_constraint_to_all_type_parameters)]},fixIds:[t$],getAllCodeActions:e=>{let{program:t,preferences:r,host:i}=e,o=new Map;return bD(pr.ChangeTracker.with(e,s=>{ED(e,tfe,l=>{let d=kNe(t,l.file,_d(l.start,l.length));if(d&&Em(o,is(d.declaration)))return wNe(s,t,r,i,l.file,d)})}))}})}});function ONe(e,t,r,i){switch(r){case f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return qYe(e,t.sourceFile,i);case f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return XYe(e,t.sourceFile,i);default:R.fail("Unexpected error code: "+r)}}function qYe(e,t,r){let i=FNe(t,r);if(lu(t)){e.addJSDocTags(t,i,[L.createJSDocOverrideTag(L.createIdentifier("override"))]);return}let o=i.modifiers||Xe,s=Vr(o,qI),l=Vr(o,uae),d=Vr(o,y=>kq(y.kind)),p=sI(o,yd),h=l?l.end:s?s.end:d?d.end:p?Pa(t.text,p.end):i.getStart(t),m=d||s||l?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,h,164,m)}function XYe(e,t,r){let i=FNe(t,r);if(lu(t)){e.filterJSDocTags(t,i,SW(U4));return}let o=Vr(i.modifiers,pae);R.assertIsDefined(o),e.deleteModifier(t,o)}function WNe(e){switch(e.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return dp(e,e.parent);default:return!1}}function FNe(e,t){let r=so(e,t),i=Fn(r,o=>di(o)?"quit":WNe(o));return R.assert(i&&WNe(i)),i}var nfe,uM,OO,rfe,ife,YYe=bt({"src/services/codefixes/fixOverrideModifier.ts"(){"use strict";ai(),Aa(),nfe="fixOverrideModifier",uM="fixAddOverrideModifier",OO="fixRemoveOverrideModifier",rfe=[f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],ife={[f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:uM,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:uM,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:f.Remove_override_modifier,fixId:OO,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers},[f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:f.Remove_override_modifier,fixId:OO,fixAllDescriptions:f.Remove_override_modifier},[f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:uM,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:uM,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:uM,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers},[f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:f.Remove_override_modifier,fixId:OO,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers},[f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:f.Remove_override_modifier,fixId:OO,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers}},Ea({errorCodes:rfe,getCodeActions:function(t){let{errorCode:r,span:i}=t,o=ife[r];if(!o)return Xe;let{descriptions:s,fixId:l,fixAllDescriptions:d}=o,p=pr.ChangeTracker.with(t,h=>ONe(h,t,r,i.start));return[hpe(nfe,p,s,l,d)]},fixIds:[nfe,uM,OO],getAllCodeActions:e=>ys(e,rfe,(t,r)=>{let{code:i,start:o}=r,s=ife[i];!s||s.fixId!==e.fixId||ONe(t,e,i,o)})})}});function zNe(e,t,r,i){let o=af(t,i),s=L.createStringLiteral(r.name.text,o===0);e.replaceNode(t,r,oF(r)?L.createElementAccessChain(r.expression,r.questionDotToken,s):L.createElementAccessExpression(r.expression,s))}function BNe(e,t){return ta(so(e,t).parent,wr)}var n$,ofe,$Ye=bt({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){"use strict";ai(),Aa(),n$="fixNoPropertyAccessFromIndexSignature",ofe=[f.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],Ea({errorCodes:ofe,fixIds:[n$],getCodeActions(e){let{sourceFile:t,span:r,preferences:i}=e,o=BNe(t,r.start),s=pr.ChangeTracker.with(e,l=>zNe(l,e.sourceFile,o,i));return[ia(n$,s,[f.Use_element_access_for_0,o.name.text],n$,f.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>ys(e,ofe,(t,r)=>zNe(t,r.file,BNe(r.file,r.start),e.preferences))})}});function GNe(e,t,r,i){let o=so(t,r);if(!aD(o))return;let s=ku(o,!1,!1);if(!(!Ec(s)&&!Ms(s))&&!Yi(ku(s,!1,!1))){let l=R.checkDefined(hs(s,100,t)),{name:d}=s,p=R.checkDefined(s.body);return Ms(s)?d&&Ls.Core.isSymbolReferencedInFile(d,i,t,p)?void 0:(e.delete(t,l),d&&e.delete(t,d),e.insertText(t,p.pos," =>"),[f.Convert_function_expression_0_to_arrow_function,d?d.text:y7]):(e.replaceNode(t,l,L.createToken(87)),e.insertText(t,d.end," = "),e.insertText(t,p.pos," =>"),[f.Convert_function_declaration_0_to_arrow_function,d.text])}}var r$,afe,QYe=bt({"src/services/codefixes/fixImplicitThis.ts"(){"use strict";ai(),Aa(),r$="fixImplicitThis",afe=[f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],Ea({errorCodes:afe,getCodeActions:function(t){let{sourceFile:r,program:i,span:o}=t,s,l=pr.ChangeTracker.with(t,d=>{s=GNe(d,r,o.start,i.getTypeChecker())});return s?[ia(r$,l,s,r$,f.Fix_all_implicit_this_errors)]:Xe},fixIds:[r$],getAllCodeActions:e=>ys(e,afe,(t,r)=>{GNe(t,r.file,r.start,e.program.getTypeChecker())})})}});function VNe(e,t,r){var i,o;let s=so(e,t);if(Fe(s)){let l=Fn(s,Mc);if(l===void 0)return;let d=Ca(l.moduleSpecifier)?l.moduleSpecifier:void 0;if(d===void 0)return;let p=(i=r.getResolvedModuleFromModuleSpecifier(d))==null?void 0:i.resolvedModule;if(p===void 0)return;let h=r.getSourceFile(p.resolvedFileName);if(h===void 0||fD(r,h))return;let m=h.symbol,y=(o=ri(m.valueDeclaration,ch))==null?void 0:o.locals;if(y===void 0)return;let E=y.get(s.escapedText);if(E===void 0)return;let S=e$e(E);return S===void 0?void 0:{exportName:{node:s,isTypeOnly:ER(S)},node:S,moduleSourceFile:h,moduleSpecifier:d.text}}}function ZYe(e,t,{exportName:r,node:i,moduleSourceFile:o}){let s=i$(o,r.isTypeOnly);s?jNe(e,t,o,s,[r]):uk(i)?e.insertExportModifier(o,i):UNe(e,t,o,[r])}function sfe(e,t,r,i,o){Nn(i)&&(o?jNe(e,t,r,o,i):UNe(e,t,r,i))}function i$(e,t){let r=i=>Xl(i)&&(t&&i.isTypeOnly||!i.isTypeOnly);return sI(e.statements,r)}function jNe(e,t,r,i,o){let s=i.exportClause&&xf(i.exportClause)?i.exportClause.elements:L.createNodeArray([]),l=!i.isTypeOnly&&!!(em(t.getCompilerOptions())||Vr(s,d=>d.isTypeOnly));e.replaceNode(r,i,L.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,L.createNamedExports(L.createNodeArray([...s,...HNe(o,l)],s.hasTrailingComma)),i.moduleSpecifier,i.attributes))}function UNe(e,t,r,i){e.insertNodeAtEndOfScope(r,r,L.createExportDeclaration(void 0,!1,L.createNamedExports(HNe(i,em(t.getCompilerOptions()))),void 0,void 0))}function HNe(e,t){return L.createNodeArray(mn(e,r=>L.createExportSpecifier(t&&r.isTypeOnly,void 0,r.node)))}function e$e(e){if(e.valueDeclaration===void 0)return Jc(e.declarations);let t=e.valueDeclaration,r=Oi(t)?ri(t.parent.parent,Ml):void 0;return r&&Nn(r.declarationList.declarations)===1?r:t}var o$,lfe,t$e=bt({"src/services/codefixes/fixImportNonExportedMember.ts"(){"use strict";ai(),Aa(),o$="fixImportNonExportedMember",lfe=[f.Module_0_declares_1_locally_but_it_is_not_exported.code],Ea({errorCodes:lfe,fixIds:[o$],getCodeActions(e){let{sourceFile:t,span:r,program:i}=e,o=VNe(t,r.start,i);if(o===void 0)return;let s=pr.ChangeTracker.with(e,l=>ZYe(l,i,o));return[ia(o$,s,[f.Export_0_from_module_1,o.exportName.node.text,o.moduleSpecifier],o$,f.Export_all_referenced_locals)]},getAllCodeActions(e){let{program:t}=e;return bD(pr.ChangeTracker.with(e,r=>{let i=new Map;ED(e,lfe,o=>{let s=VNe(o.file,o.start,t);if(s===void 0)return;let{exportName:l,node:d,moduleSourceFile:p}=s;if(i$(p,l.isTypeOnly)===void 0&&uk(d))r.insertExportModifier(p,d);else{let h=i.get(p)||{typeOnlyExports:[],exports:[]};l.isTypeOnly?h.typeOnlyExports.push(l):h.exports.push(l),i.set(p,h)}}),i.forEach((o,s)=>{let l=i$(s,!0);l&&l.isTypeOnly?(sfe(r,t,s,o.typeOnlyExports,l),sfe(r,t,s,o.exports,i$(s,!1))):sfe(r,t,s,[...o.exports,...o.typeOnlyExports],l)})}))}})}});function n$e(e,t){let r=so(e,t);return Fn(r,i=>i.kind===202)}function r$e(e,t,r){if(!r)return;let i=r.type,o=!1,s=!1;for(;i.kind===190||i.kind===191||i.kind===196;)i.kind===190?o=!0:i.kind===191&&(s=!0),i=i.type;let l=L.updateNamedTupleMember(r,r.dotDotDotToken||(s?L.createToken(26):void 0),r.name,r.questionToken||(o?L.createToken(58):void 0),i);l!==r&&e.replaceNode(t,r,l)}var a$,KNe,i$e=bt({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){"use strict";ai(),Aa(),a$="fixIncorrectNamedTupleSyntax",KNe=[f.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,f.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],Ea({errorCodes:KNe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=n$e(r,i.start),s=pr.ChangeTracker.with(t,l=>r$e(l,r,o));return[ia(a$,s,f.Move_labeled_tuple_element_modifiers_to_labels,a$,f.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[a$]})}});function JNe(e,t,r,i){let o=so(e,t),s=o.parent;if((i===f.No_overload_matches_this_call.code||i===f.Type_0_is_not_assignable_to_type_1.code)&&!M_(s))return;let l=r.program.getTypeChecker(),d;if(wr(s)&&s.name===o){R.assert(Kh(o),"Expected an identifier for spelling (property access)");let p=l.getTypeAtLocation(s.expression);s.flags&64&&(p=l.getNonNullableType(p)),d=l.getSuggestedSymbolForNonexistentProperty(o,p)}else if(ur(s)&&s.operatorToken.kind===103&&s.left===o&&Ki(o)){let p=l.getTypeAtLocation(s.right);d=l.getSuggestedSymbolForNonexistentProperty(o,p)}else if(Tu(s)&&s.right===o){let p=l.getSymbolAtLocation(s.left);p&&p.flags&1536&&(d=l.getSuggestedSymbolForNonexistentModule(s.right,p))}else if(Qu(s)&&s.name===o){R.assertNode(o,Fe,"Expected an identifier for spelling (import)");let p=Fn(o,Mc),h=a$e(r,p);h&&h.symbol&&(d=l.getSuggestedSymbolForNonexistentModule(o,h.symbol))}else if(M_(s)&&s.name===o){R.assertNode(o,Fe,"Expected an identifier for JSX attribute");let p=Fn(o,su),h=l.getContextualTypeForArgumentAtIndex(p,0);d=l.getSuggestedSymbolForNonexistentJSXAttribute(o,h)}else if(p6(s)&&Xc(s)&&s.name===o){let p=Fn(o,di),h=p?S_(p):void 0,m=h?l.getTypeAtLocation(h):void 0;m&&(d=l.getSuggestedSymbolForNonexistentClassMember(uc(o),m))}else{let p=qT(o),h=uc(o);R.assert(h!==void 0,"name should be defined"),d=l.getSuggestedSymbolForNonexistentSymbol(o,h,o$e(p))}return d===void 0?void 0:{node:o,suggestedSymbol:d}}function qNe(e,t,r,i,o){let s=yl(i);if(!$p(s,o)&&wr(r.parent)){let l=i.valueDeclaration;l&&ou(l)&&Ki(l.name)?e.replaceNode(t,r,L.createIdentifier(s)):e.replaceNode(t,r.parent,L.createElementAccessExpression(r.parent.expression,L.createStringLiteral(s)))}else e.replaceNode(t,r,L.createIdentifier(s))}function o$e(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function a$e(e,t){var r;if(!t||!ss(t.moduleSpecifier))return;let i=(r=e.program.getResolvedModuleFromModuleSpecifier(t.moduleSpecifier))==null?void 0:r.resolvedModule;if(i)return e.program.getSourceFile(i.resolvedFileName)}var cfe,dfe,s$e=bt({"src/services/codefixes/fixSpelling.ts"(){"use strict";ai(),Aa(),cfe="fixSpelling",dfe=[f.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,f.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,f.Cannot_find_name_0_Did_you_mean_1.code,f.Could_not_find_name_0_Did_you_mean_1.code,f.Cannot_find_namespace_0_Did_you_mean_1.code,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,f._0_has_no_exported_member_named_1_Did_you_mean_2.code,f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,f.No_overload_matches_this_call.code,f.Type_0_is_not_assignable_to_type_1.code],Ea({errorCodes:dfe,getCodeActions(e){let{sourceFile:t,errorCode:r}=e,i=JNe(t,e.span.start,e,r);if(!i)return;let{node:o,suggestedSymbol:s}=i,l=rs(e.host.getCompilationSettings()),d=pr.ChangeTracker.with(e,p=>qNe(p,t,o,s,l));return[ia("spelling",d,[f.Change_spelling_to_0,yl(s)],cfe,f.Fix_all_detected_spelling_errors)]},fixIds:[cfe],getAllCodeActions:e=>ys(e,dfe,(t,r)=>{let i=JNe(r.file,r.start,e,r.code),o=rs(e.host.getCompilationSettings());i&&qNe(t,e.sourceFile,i.node,i.suggestedSymbol,o)})})}});function XNe(e,t,r){let i=e.createSymbol(4,t.escapedText);i.links.type=e.getTypeAtLocation(r);let o=oa([i]);return e.createAnonymousType(void 0,o,[],[],[])}function ufe(e,t,r,i){if(!t.body||!Ho(t.body)||Nn(t.body.statements)!==1)return;let o=Va(t.body.statements);if(Qc(o)&&pfe(e,t,e.getTypeAtLocation(o.expression),r,i))return{declaration:t,kind:0,expression:o.expression,statement:o,commentSource:o.expression};if(K0(o)&&Qc(o.statement)){let s=L.createObjectLiteralExpression([L.createPropertyAssignment(o.label,o.statement.expression)]),l=XNe(e,o.label,o.statement.expression);if(pfe(e,t,l,r,i))return Fs(t)?{declaration:t,kind:1,expression:s,statement:o,commentSource:o.statement.expression}:{declaration:t,kind:0,expression:s,statement:o,commentSource:o.statement.expression}}else if(Ho(o)&&Nn(o.statements)===1){let s=Va(o.statements);if(K0(s)&&Qc(s.statement)){let l=L.createObjectLiteralExpression([L.createPropertyAssignment(s.label,s.statement.expression)]),d=XNe(e,s.label,s.statement.expression);if(pfe(e,t,d,r,i))return{declaration:t,kind:0,expression:l,statement:o,commentSource:s}}}}function pfe(e,t,r,i,o){if(o){let s=e.getSignatureFromDeclaration(t);if(s){Qr(t,1024)&&(r=e.createPromiseType(r));let l=e.createSignature(t,s.typeParameters,s.thisParameter,s.parameters,r,void 0,s.minArgumentCount,s.flags);r=e.createAnonymousType(void 0,oa(),[l],[],[])}else r=e.getAnyType()}return e.isTypeAssignableTo(r,i)}function YNe(e,t,r,i){let o=so(t,r);if(!o.parent)return;let s=Fn(o.parent,Ws);switch(i){case f.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return!s||!s.body||!s.type||!of(s.type,o)?void 0:ufe(e,s,e.getTypeFromTypeNode(s.type),!1);case f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!s||!ra(s.parent)||!s.body)return;let l=s.parent.arguments.indexOf(s);if(l===-1)return;let d=e.getContextualTypeForArgumentAtIndex(s.parent,l);return d?ufe(e,s,d,!0):void 0;case f.Type_0_is_not_assignable_to_type_1.code:if(!Lg(o)||!Jx(o.parent)&&!M_(o.parent))return;let p=l$e(o.parent);return!p||!Ws(p)||!p.body?void 0:ufe(e,p,e.getTypeAtLocation(o.parent),!0)}}function l$e(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:return e.initializer;case 291:return e.initializer&&(mP(e.initializer)?e.initializer.expression:void 0);case 304:case 171:case 306:case 355:case 348:return}}function $Ne(e,t,r,i){bp(r);let o=dO(t);e.replaceNode(t,i,L.createReturnStatement(r),{leadingTriviaOption:pr.LeadingTriviaOption.Exclude,trailingTriviaOption:pr.TrailingTriviaOption.Exclude,suffix:o?";":void 0})}function QNe(e,t,r,i,o,s){let l=s||n7(i)?L.createParenthesizedExpression(i):i;bp(o),$T(o,l),e.replaceNode(t,r.body,l)}function ZNe(e,t,r,i){e.replaceNode(t,r.body,L.createParenthesizedExpression(i))}function c$e(e,t,r){let i=pr.ChangeTracker.with(e,o=>$Ne(o,e.sourceFile,t,r));return ia(s$,i,f.Add_a_return_statement,l$,f.Add_all_missing_return_statement)}function d$e(e,t,r,i){let o=pr.ChangeTracker.with(e,s=>QNe(s,e.sourceFile,t,r,i,!1));return ia(s$,o,f.Remove_braces_from_arrow_function_body,c$,f.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function u$e(e,t,r){let i=pr.ChangeTracker.with(e,o=>ZNe(o,e.sourceFile,t,r));return ia(s$,i,f.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,d$,f.Wrap_all_object_literal_with_parentheses)}var s$,l$,c$,d$,ffe,p$e=bt({"src/services/codefixes/returnValueCorrect.ts"(){"use strict";ai(),Aa(),s$="returnValueCorrect",l$="fixAddReturnStatement",c$="fixRemoveBracesFromArrowFunctionBody",d$="fixWrapTheBlockWithParen",ffe=[f.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,f.Type_0_is_not_assignable_to_type_1.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],Ea({errorCodes:ffe,fixIds:[l$,c$,d$],getCodeActions:function(t){let{program:r,sourceFile:i,span:{start:o},errorCode:s}=t,l=YNe(r.getTypeChecker(),i,o,s);if(l)return l.kind===0?Tn([c$e(t,l.expression,l.statement)],Fs(l.declaration)?d$e(t,l.declaration,l.expression,l.commentSource):void 0):[u$e(t,l.declaration,l.expression)]},getAllCodeActions:e=>ys(e,ffe,(t,r)=>{let i=YNe(e.program.getTypeChecker(),r.file,r.start,r.code);if(i)switch(e.fixId){case l$:$Ne(t,r.file,i.expression,i.statement);break;case c$:if(!Fs(i.declaration))return;QNe(t,r.file,i.declaration,i.expression,i.commentSource,!1);break;case d$:if(!Fs(i.declaration))return;ZNe(t,r.file,i.declaration,i.expression);break;default:R.fail(JSON.stringify(e.fixId))}})})}});function ePe(e,t,r,i,o){var s;let l=so(e,t),d=l.parent;if(r===f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(l.kind===19&&La(d)&&ra(d.parent)))return;let S=Kl(d.parent.arguments,w=>w===d);if(S<0)return;let A=i.getResolvedSignature(d.parent);if(!(A&&A.declaration&&A.parameters[S]))return;let N=A.parameters[S].valueDeclaration;if(!(N&&To(N)&&Fe(N.name)))return;let D=Oo(i.getUnmatchedProperties(i.getTypeAtLocation(d),i.getParameterType(A,S),!1,!1));return Nn(D)?{kind:3,token:N.name,identifier:N.name.text,properties:D,parentDeclaration:d}:void 0}if(l.kind===19&&La(d)){let S=i.getContextualType(d)||i.getTypeAtLocation(d),A=Oo(i.getUnmatchedProperties(i.getTypeAtLocation(d),S,!1,!1));return Nn(A)?{kind:3,token:d,identifier:"",properties:A,parentDeclaration:d}:void 0}if(!Kh(l))return;if(Fe(l)&&Lv(d)&&d.initializer&&La(d.initializer)){let S=i.getContextualType(l)||i.getTypeAtLocation(l),A=Oo(i.getUnmatchedProperties(i.getTypeAtLocation(d.initializer),S,!1,!1));return Nn(A)?{kind:3,token:l,identifier:l.text,properties:A,parentDeclaration:d.initializer}:void 0}if(Fe(l)&&su(l.parent)){let S=rs(o.getCompilerOptions()),A=v$e(i,S,l.parent);return Nn(A)?{kind:4,token:l,attributes:A,parentDeclaration:l.parent}:void 0}if(Fe(l)){let S=(s=i.getContextualType(l))==null?void 0:s.getNonNullableType();if(S&&kr(S)&16){let A=Jc(i.getSignaturesOfType(S,0));return A===void 0?void 0:{kind:5,token:l,signature:A,sourceFile:e,parentDeclaration:uPe(l)}}if(ra(d)&&d.expression===l)return{kind:2,token:l,call:d,sourceFile:e,modifierFlags:0,parentDeclaration:uPe(l)}}if(!wr(d))return;let p=Bq(i.getTypeAtLocation(d.expression)),h=p.symbol;if(!h||!h.declarations)return;if(Fe(l)&&ra(d.parent)){let S=Vr(h.declarations,ql),A=S?.getSourceFile();if(S&&A&&!fD(o,A))return{kind:2,token:l,call:d.parent,sourceFile:e,modifierFlags:32,parentDeclaration:S};let N=Vr(h.declarations,Yi);if(e.commonJsModuleIndicator)return;if(N&&!fD(o,N))return{kind:2,token:l,call:d.parent,sourceFile:N,modifierFlags:32,parentDeclaration:N}}let m=Vr(h.declarations,di);if(!m&&Ki(l))return;let y=m||Vr(h.declarations,S=>fu(S)||gp(S));if(y&&!fD(o,y.getSourceFile())){let S=!gp(y)&&(p.target||p)!==i.getDeclaredTypeOfSymbol(h);if(S&&(Ki(l)||fu(y)))return;let A=y.getSourceFile(),N=gp(y)?0:(S?256:0)|(fX(l.text)?2:0),D=lu(A),w=ri(d.parent,ra);return{kind:0,token:l,call:w,modifierFlags:N,parentDeclaration:y,declSourceFile:A,isJSFile:D}}let E=Vr(h.declarations,gE);if(E&&!(p.flags&1056)&&!Ki(l)&&!fD(o,E.getSourceFile()))return{kind:1,token:l,parentDeclaration:E}}function f$e(e,t){return t.isJSFile?pI(m$e(e,t)):_$e(e,t)}function m$e(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){if(fu(t)||gp(t))return;let s=pr.ChangeTracker.with(e,d=>tPe(d,r,t,o,!!(i&256)));if(s.length===0)return;let l=i&256?f.Initialize_static_property_0:Ki(o)?f.Declare_a_private_field_named_0:f.Initialize_property_0_in_the_constructor;return ia(rb,s,[l,o.text],rb,f.Add_all_missing_members)}function tPe(e,t,r,i,o){let s=i.text;if(o){if(r.kind===231)return;let l=r.name.getText(),d=nPe(L.createIdentifier(l),s);e.insertNodeAfter(t,r,d)}else if(Ki(i)){let l=L.createPropertyDeclaration(void 0,s,void 0,void 0,void 0),d=oPe(r);d?e.insertNodeAfter(t,d,l):e.insertMemberAtStart(t,r,l)}else{let l=eg(r);if(!l)return;let d=nPe(L.createThis(),s);e.insertNodeAtConstructorEnd(t,l,d)}}function nPe(e,t){return L.createExpressionStatement(L.createAssignment(L.createPropertyAccessExpression(e,t),R1()))}function _$e(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){let s=o.text,l=i&256,d=rPe(e.program.getTypeChecker(),t,o),p=m=>pr.ChangeTracker.with(e,y=>iPe(y,r,t,s,d,m)),h=[ia(rb,p(i&256),[l?f.Declare_static_property_0:f.Declare_property_0,s],rb,f.Add_all_missing_members)];return l||Ki(o)||(i&2&&h.unshift(Zm(rb,p(2),[f.Declare_private_property_0,s])),h.push(h$e(e,r,t,o.text,d))),h}function rPe(e,t,r){let i;if(r.parent.parent.kind===226){let o=r.parent.parent,s=r.parent===o.left?o.right:o.left,l=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(s)));i=e.typeToTypeNode(l,t,1)}else{let o=e.getContextualType(r.parent);i=o?e.typeToTypeNode(o,void 0,1):void 0}return i||L.createKeywordTypeNode(133)}function iPe(e,t,r,i,o,s){let l=s?L.createNodeArray(L.createModifiersFromModifierFlags(s)):void 0,d=di(r)?L.createPropertyDeclaration(l,i,void 0,o,void 0):L.createPropertySignature(void 0,i,void 0,o),p=oPe(r);p?e.insertNodeAfter(t,p,d):e.insertMemberAtStart(t,r,d)}function oPe(e){let t;for(let r of e.members){if(!Vo(r))break;t=r}return t}function h$e(e,t,r,i,o){let s=L.createKeywordTypeNode(154),l=L.createParameterDeclaration(void 0,void 0,"x",void 0,s,void 0),d=L.createIndexSignature(void 0,[l],o),p=pr.ChangeTracker.with(e,h=>h.insertMemberAtStart(t,r,d));return Zm(rb,p,[f.Add_index_signature_for_property_0,i])}function g$e(e,t){let{parentDeclaration:r,declSourceFile:i,modifierFlags:o,token:s,call:l}=t;if(l===void 0)return;let d=s.text,p=m=>pr.ChangeTracker.with(e,y=>aPe(e,y,l,s,m,r,i)),h=[ia(rb,p(o&256),[o&256?f.Declare_static_method_0:f.Declare_method_0,d],rb,f.Add_all_missing_members)];return o&2&&h.unshift(Zm(rb,p(2),[f.Declare_private_method_0,d])),h}function aPe(e,t,r,i,o,s,l){let d=x1(l,e.program,e.preferences,e.host),p=di(s)?174:173,h=$fe(p,e,d,r,i,o,s),m=b$e(s,r);m?t.insertNodeAfter(l,m,h):t.insertMemberAtStart(l,s,h),d.writeFixes(t)}function sPe(e,t,{token:r,parentDeclaration:i}){let o=gt(i.members,p=>{let h=t.getTypeAtLocation(p);return!!(h&&h.flags&402653316)}),s=i.getSourceFile(),l=L.createEnumMember(r,o?L.createStringLiteral(r.text):void 0),d=$s(i.members);d?e.insertNodeInListAfter(s,d,l,i.members):e.insertMemberAtStart(s,i,l)}function lPe(e,t,r){let i=af(t.sourceFile,t.preferences),o=x1(t.sourceFile,t.program,t.preferences,t.host),s=r.kind===2?$fe(262,t,o,r.call,yr(r.token),r.modifierFlags,r.parentDeclaration):W$(262,t,i,r.signature,aB(f.Function_not_implemented.message,i),r.token,void 0,void 0,void 0,o);s===void 0&&R.fail("fixMissingFunctionDeclaration codefix got unexpected error."),Sm(r.parentDeclaration)?e.insertNodeBefore(r.sourceFile,r.parentDeclaration,s,!0):e.insertNodeAtEndOfScope(r.sourceFile,r.parentDeclaration,s),o.writeFixes(e)}function cPe(e,t,r){let i=x1(t.sourceFile,t.program,t.preferences,t.host),o=af(t.sourceFile,t.preferences),s=t.program.getTypeChecker(),l=r.parentDeclaration.attributes,d=gt(l.properties,o1),p=mn(r.attributes,y=>{let E=u$(t,s,i,o,s.getTypeOfSymbol(y),r.parentDeclaration),S=L.createIdentifier(y.name),A=L.createJsxAttribute(S,L.createJsxExpression(void 0,E));return ja(S,A),A}),h=L.createJsxAttributes(d?[...p,...l.properties]:[...l.properties,...p]),m={prefix:l.pos===l.end?" ":void 0};e.replaceNode(t.sourceFile,l,h,m),i.writeFixes(e)}function dPe(e,t,r){let i=x1(t.sourceFile,t.program,t.preferences,t.host),o=af(t.sourceFile,t.preferences),s=rs(t.program.getCompilerOptions()),l=t.program.getTypeChecker(),d=mn(r.properties,h=>{let m=u$(t,l,i,o,l.getTypeOfSymbol(h),r.parentDeclaration);return L.createPropertyAssignment(E$e(h,s,o,l),m)}),p={leadingTriviaOption:pr.LeadingTriviaOption.Exclude,trailingTriviaOption:pr.TrailingTriviaOption.Exclude,indentation:r.indentation};e.replaceNode(t.sourceFile,r.parentDeclaration,L.createObjectLiteralExpression([...r.parentDeclaration.properties,...d],!0),p),i.writeFixes(e)}function u$(e,t,r,i,o,s){if(o.flags&3)return R1();if(o.flags&134217732)return L.createStringLiteral("",i===0);if(o.flags&8)return L.createNumericLiteral(0);if(o.flags&64)return L.createBigIntLiteral("0n");if(o.flags&16)return L.createFalse();if(o.flags&1056){let l=o.symbol.exports?mW(o.symbol.exports.values()):o.symbol,d=t.symbolToExpression(o.symbol.parent?o.symbol.parent:o.symbol,111551,void 0,64);return l===void 0||d===void 0?L.createNumericLiteral(0):L.createPropertyAccessExpression(d,t.symbolToString(l))}if(o.flags&256)return L.createNumericLiteral(o.value);if(o.flags&2048)return L.createBigIntLiteral(o.value);if(o.flags&128)return L.createStringLiteral(o.value,i===0);if(o.flags&512)return o===t.getFalseType()||o===t.getFalseType(!0)?L.createFalse():L.createTrue();if(o.flags&65536)return L.createNull();if(o.flags&1048576)return Wl(o.types,d=>u$(e,t,r,i,d,s))??R1();if(t.isArrayLikeType(o))return L.createArrayLiteralExpression();if(y$e(o)){let l=mn(t.getPropertiesOfType(o),d=>{let p=u$(e,t,r,i,t.getTypeOfSymbol(d),s);return L.createPropertyAssignment(d.name,p)});return L.createObjectLiteralExpression(l,!0)}if(kr(o)&16){if(Vr(o.symbol.declarations||Xe,Um(gh,hh,Ul))===void 0)return R1();let d=t.getSignaturesOfType(o,0);return d===void 0?R1():W$(218,e,i,d[0],aB(f.Function_not_implemented.message,i),void 0,void 0,void 0,s,r)??R1()}if(kr(o)&1){let l=wg(o.symbol);if(l===void 0||O0(l))return R1();let d=eg(l);return d&&Nn(d.parameters)?R1():L.createNewExpression(L.createIdentifier(o.symbol.name),void 0,void 0)}return R1()}function R1(){return L.createIdentifier("undefined")}function y$e(e){return e.flags&524288&&(kr(e)&128||e.symbol&&ri(rh(e.symbol.declarations),gp))}function v$e(e,t,r){let i=e.getContextualType(r.attributes);if(i===void 0)return Xe;let o=i.getProperties();if(!Nn(o))return Xe;let s=new Set;for(let l of r.attributes.properties)if(M_(l)&&s.add(QN(l.name)),o1(l)){let d=e.getTypeAtLocation(l.expression);for(let p of d.getProperties())s.add(p.escapedName)}return jr(o,l=>$p(l.name,t,1)&&!(l.flags&16777216||Tl(l)&48||s.has(l.escapedName)))}function b$e(e,t){if(gp(e))return;let r=Fn(t,i=>Ul(i)||Pl(i));return r&&r.parent===e?r:void 0}function E$e(e,t,r,i){if(dh(e)){let o=i.symbolToNode(e,111551,void 0,1073741824);if(o&&Ya(o))return o}return B6(e.name,t,r===0,!1,!1)}function uPe(e){if(Fn(e,mP)){let t=Fn(e.parent,Sm);if(t)return t}return Gn(e)}var rb,Q7,Z7,eB,mfe,S$e=bt({"src/services/codefixes/fixAddMissingMember.ts"(){"use strict";ai(),Aa(),rb="fixMissingMember",Q7="fixMissingProperties",Z7="fixMissingAttributes",eB="fixMissingFunctionDeclaration",mfe=[f.Property_0_does_not_exist_on_type_1.code,f.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,f.Property_0_is_missing_in_type_1_but_required_in_type_2.code,f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,f.Cannot_find_name_0.code],Ea({errorCodes:mfe,getCodeActions(e){let t=e.program.getTypeChecker(),r=ePe(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(r){if(r.kind===3){let i=pr.ChangeTracker.with(e,o=>dPe(o,e,r));return[ia(Q7,i,f.Add_missing_properties,Q7,f.Add_all_missing_properties)]}if(r.kind===4){let i=pr.ChangeTracker.with(e,o=>cPe(o,e,r));return[ia(Z7,i,f.Add_missing_attributes,Z7,f.Add_all_missing_attributes)]}if(r.kind===2||r.kind===5){let i=pr.ChangeTracker.with(e,o=>lPe(o,e,r));return[ia(eB,i,[f.Add_missing_function_declaration_0,r.token.text],eB,f.Add_all_missing_function_declarations)]}if(r.kind===1){let i=pr.ChangeTracker.with(e,o=>sPe(o,e.program.getTypeChecker(),r));return[ia(rb,i,[f.Add_missing_enum_member_0,r.token.text],rb,f.Add_all_missing_members)]}return bo(g$e(e,r),f$e(e,r))}},fixIds:[rb,eB,Q7,Z7],getAllCodeActions:e=>{let{program:t,fixId:r}=e,i=t.getTypeChecker(),o=new Map,s=new Map;return bD(pr.ChangeTracker.with(e,l=>{ED(e,mfe,d=>{let p=ePe(d.file,d.start,d.code,i,e.program);if(!(!p||!Em(o,is(p.parentDeclaration)+"#"+(p.kind===3?p.identifier:p.token.text)))){if(r===eB&&(p.kind===2||p.kind===5))lPe(l,e,p);else if(r===Q7&&p.kind===3)dPe(l,e,p);else if(r===Z7&&p.kind===4)cPe(l,e,p);else if(p.kind===1&&sPe(l,i,p),p.kind===0){let{parentDeclaration:h,token:m}=p,y=FC(s,h,()=>[]);y.some(E=>E.token.text===m.text)||y.push(p)}}}),s.forEach((d,p)=>{let h=gp(p)?void 0:ome(p,i);for(let m of d){if(h?.some(w=>{let j=s.get(w);return!!j&&j.some(({token:K})=>K.text===m.token.text)}))continue;let{parentDeclaration:y,declSourceFile:E,modifierFlags:S,token:A,call:N,isJSFile:D}=m;if(N&&!Ki(A))aPe(e,l,N,A,S&256,y,E);else if(D&&!fu(y)&&!gp(y))tPe(l,E,y,A,!!(S&256));else{let w=rPe(i,y,A);iPe(l,E,y,A.text,w,S&256)}}})}))}})}});function pPe(e,t,r){let i=ta(T$e(t,r),ra),o=L.createNewExpression(i.expression,i.typeArguments,i.arguments);e.replaceNode(t,i,o)}function T$e(e,t){let r=so(e,t.start),i=Jl(t);for(;r.endpPe(o,t,r));return[ia(p$,i,f.Add_missing_new_operator_to_call,p$,f.Add_missing_new_operator_to_all_calls)]},fixIds:[p$],getAllCodeActions:e=>ys(e,_fe,(t,r)=>pPe(t,e.sourceFile,r))})}});function fPe(e,t,r){let i=so(e,r),o=Fn(i,ra);if(o===void 0||Nn(o.arguments)===0)return;let s=t.getTypeChecker(),l=s.getTypeAtLocation(o.expression),d=jr(l.symbol.declarations,mPe);if(d===void 0)return;let p=$s(d);if(p===void 0||p.body===void 0||fD(t,p.getSourceFile()))return;let h=I$e(p);if(h===void 0)return;let m=[],y=[],E=Nn(p.parameters),S=Nn(o.arguments);if(E>S)return;let A=[p,...R$e(p,d)];for(let N=0,D=0,w=0;N{Nn(o.parameters)?e.replaceNodeRangeWithNodes(t,Va(o.parameters),Ja(o.parameters),_Pe(o,i),{joiner:", ",indentation:0,leadingTriviaOption:pr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:pr.TrailingTriviaOption.Include}):gn(_Pe(o,i),(s,l)=>{Nn(o.parameters)===0&&l===0?e.insertNodeAt(t,o.parameters.end,s):e.insertNodeAtEndOfList(t,o.parameters,s)})})}function mPe(e){switch(e.kind){case 262:case 218:case 174:case 219:return!0;default:return!1}}function _Pe(e,t){let r=mn(e.parameters,i=>L.createParameterDeclaration(i.modifiers,i.dotDotDotToken,i.name,i.questionToken,i.type,i.initializer));for(let{pos:i,declaration:o}of t){let s=i>0?r[i-1]:void 0;r.splice(i,0,L.updateParameterDeclaration(o,o.modifiers,o.dotDotDotToken,o.name,s&&s.questionToken?L.createToken(58):o.questionToken,o.type,o.initializer))}return r}function R$e(e,t){let r=[];for(let i of t)if(D$e(i)){if(Nn(i.parameters)===Nn(e.parameters)){r.push(i);continue}if(Nn(i.parameters)>Nn(e.parameters))return[]}return r}function D$e(e){return mPe(e)&&e.body===void 0}function hPe(e,t,r){return L.createParameterDeclaration(void 0,void 0,e,r,t,void 0)}function C$e(e,t){return Nn(e)&>(e,r=>tf$(d,e.sourceFile,i,o)),[Nn(o)>1?f.Add_missing_parameters_to_0:f.Add_missing_parameter_to_0,r],tB,f.Add_all_missing_parameters)),Nn(s)&&Tn(l,ia(nB,pr.ChangeTracker.with(e,d=>f$(d,e.sourceFile,i,s)),[Nn(s)>1?f.Add_optional_parameters_to_0:f.Add_optional_parameter_to_0,r],nB,f.Add_all_optional_parameters)),l},getAllCodeActions:e=>ys(e,hfe,(t,r)=>{let i=fPe(e.sourceFile,e.program,r.start);if(i){let{declarations:o,newParameters:s,newOptionalParameters:l}=i;e.fixId===tB&&f$(t,e.sourceFile,o,s),e.fixId===nB&&f$(t,e.sourceFile,o,l)}})})}});function gPe(e,t){return{type:"install package",file:e,packageName:t}}function yPe(e,t){let r=ri(so(e,t),Ca);if(!r)return;let i=r.text,{packageName:o}=_w(i);return qc(o)?void 0:o}function vPe(e,t,r){var i;return r===gfe?O_.nodeCoreModules.has(e)?"@types/node":void 0:(i=t.isKnownTypesPackageName)!=null&&i.call(t,e)?A3(e):void 0}var bPe,m$,gfe,yfe,P$e=bt({"src/services/codefixes/fixCannotFindModule.ts"(){"use strict";ai(),Aa(),bPe="fixCannotFindModule",m$="installTypesPackage",gfe=f.Cannot_find_module_0_or_its_corresponding_type_declarations.code,yfe=[gfe,f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],Ea({errorCodes:yfe,getCodeActions:function(t){let{host:r,sourceFile:i,span:{start:o}}=t,s=yPe(i,o);if(s===void 0)return;let l=vPe(s,r,t.errorCode);return l===void 0?[]:[ia(bPe,[],[f.Install_0,l],m$,f.Install_all_missing_types_packages,gPe(i.fileName,l))]},fixIds:[m$],getAllCodeActions:e=>ys(e,yfe,(t,r,i)=>{let o=yPe(r.file,r.start);if(o!==void 0)switch(e.fixId){case m$:{let s=vPe(o,e.host,r.code);s&&i.push(gPe(r.file.fileName,s));break}default:R.fail(`Bad fixId: ${e.fixId}`)}})})}});function EPe(e,t){let r=so(e,t);return ta(r.parent,di)}function SPe(e,t,r,i,o){let s=S_(e),l=r.program.getTypeChecker(),d=l.getTypeAtLocation(s),p=l.getPropertiesOfType(d).filter(M$e),h=x1(t,r.program,o,r.host);Yfe(e,p,t,r,o,h,m=>i.insertMemberAtStart(t,e,m)),h.writeFixes(i)}function M$e(e){let t=Fv(Va(e.getDeclarations()));return!(t&2)&&!!(t&64)}var vfe,_$,L$e=bt({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){"use strict";ai(),Aa(),vfe=[f.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1.code],_$="fixClassDoesntImplementInheritedAbstractMember",Ea({errorCodes:vfe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=pr.ChangeTracker.with(t,s=>SPe(EPe(r,i.start),r,t,s,t.preferences));return o.length===0?void 0:[ia(_$,o,f.Implement_inherited_abstract_class,_$,f.Implement_all_inherited_abstract_classes)]},fixIds:[_$],getAllCodeActions:function(t){let r=new Map;return ys(t,vfe,(i,o)=>{let s=EPe(o.file,o.start);Em(r,is(s))&&SPe(s,t.sourceFile,t,i,t.preferences)})}})}});function TPe(e,t,r,i){e.insertNodeAtConstructorStart(t,r,i),e.delete(t,i)}function APe(e,t){let r=so(e,t);if(r.kind!==110)return;let i=Wp(r),o=IPe(i.body);return o&&!o.expression.arguments.some(s=>wr(s)&&s.expression===r)?{constructor:i,superCall:o}:void 0}function IPe(e){return Qc(e)&&mT(e.expression)?e:Yo(e)?void 0:Bo(e,IPe)}var h$,bfe,k$e=bt({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){"use strict";ai(),Aa(),h$="classSuperMustPrecedeThisAccess",bfe=[f.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],Ea({errorCodes:bfe,getCodeActions(e){let{sourceFile:t,span:r}=e,i=APe(t,r.start);if(!i)return;let{constructor:o,superCall:s}=i,l=pr.ChangeTracker.with(e,d=>TPe(d,t,o,s));return[ia(h$,l,f.Make_super_call_the_first_statement_in_the_constructor,h$,f.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[h$],getAllCodeActions(e){let{sourceFile:t}=e,r=new Map;return ys(e,bfe,(i,o)=>{let s=APe(o.file,o.start);if(!s)return;let{constructor:l,superCall:d}=s;Em(r,is(l.parent))&&TPe(i,t,l,d)})}})}});function xPe(e,t){let r=so(e,t);return R.assert(Pl(r.parent),"token should be at the constructor declaration"),r.parent}function RPe(e,t,r){let i=L.createExpressionStatement(L.createCallExpression(L.createSuper(),void 0,Xe));e.insertNodeAtConstructorStart(t,r,i)}var g$,Efe,w$e=bt({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){"use strict";ai(),Aa(),g$="constructorForDerivedNeedSuperCall",Efe=[f.Constructors_for_derived_classes_must_contain_a_super_call.code],Ea({errorCodes:Efe,getCodeActions(e){let{sourceFile:t,span:r}=e,i=xPe(t,r.start),o=pr.ChangeTracker.with(e,s=>RPe(s,t,i));return[ia(g$,o,f.Add_missing_super_call,g$,f.Add_all_missing_super_calls)]},fixIds:[g$],getAllCodeActions:e=>ys(e,Efe,(t,r)=>RPe(t,e.sourceFile,xPe(r.file,r.start)))})}});function DPe(e,t){tme(e,t,"jsx",L.createStringLiteral("react"))}var Sfe,Tfe,O$e=bt({"src/services/codefixes/fixEnableJsxFlag.ts"(){"use strict";ai(),Aa(),Sfe="fixEnableJsxFlag",Tfe=[f.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],Ea({errorCodes:Tfe,getCodeActions:function(t){let{configFile:r}=t.program.getCompilerOptions();if(r===void 0)return;let i=pr.ChangeTracker.with(t,o=>DPe(o,r));return[Zm(Sfe,i,f.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[Sfe],getAllCodeActions:e=>ys(e,Tfe,t=>{let{configFile:r}=e.program.getCompilerOptions();r!==void 0&&DPe(t,r)})})}});function CPe(e,t,r){let i=Vr(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;let o=Vr(i.relatedInformation,l=>l.code===f.Did_you_mean_0.code);if(o===void 0||o.file===void 0||o.start===void 0||o.length===void 0)return;let s=rme(o.file,_d(o.start,o.length));if(s!==void 0&&ht(s)&&ur(s.parent))return{suggestion:W$e(o.messageText),expression:s.parent,arg:s}}function NPe(e,t,r,i){let o=L.createCallExpression(L.createPropertyAccessExpression(L.createIdentifier("Number"),L.createIdentifier("isNaN")),void 0,[r]),s=i.operatorToken.kind;e.replaceNode(t,i,s===38||s===36?L.createPrefixUnaryExpression(54,o):o)}function W$e(e){let[,t]=k_(e,` +`,0).match(/'(.*)'/)||[];return t}var y$,Afe,F$e=bt({"src/services/codefixes/fixNaNEquality.ts"(){"use strict";ai(),Aa(),y$="fixNaNEquality",Afe=[f.This_condition_will_always_return_0.code],Ea({errorCodes:Afe,getCodeActions(e){let{sourceFile:t,span:r,program:i}=e,o=CPe(i,t,r);if(o===void 0)return;let{suggestion:s,expression:l,arg:d}=o,p=pr.ChangeTracker.with(e,h=>NPe(h,t,d,l));return[ia(y$,p,[f.Use_0,s],y$,f.Use_Number_isNaN_in_all_conditions)]},fixIds:[y$],getAllCodeActions:e=>ys(e,Afe,(t,r)=>{let i=CPe(e.program,r.file,_d(r.start,r.length));i&&NPe(t,r.file,i.arg,i.expression)})})}}),z$e=bt({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){"use strict";ai(),Aa(),Ea({errorCodes:[f.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,f.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,f.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(t){let r=t.program.getCompilerOptions(),{configFile:i}=r;if(i===void 0)return;let o=[],s=Md(r);if(s>=5&&s<99){let h=pr.ChangeTracker.with(t,m=>{tme(m,i,"module",L.createStringLiteral("esnext"))});o.push(Zm("fixModuleOption",h,[f.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}let d=rs(r);if(d<4||d>99){let h=pr.ChangeTracker.with(t,m=>{if(!_N(i))return;let E=[["target",L.createStringLiteral("es2017")]];s===1&&E.push(["module",L.createStringLiteral("commonjs")]),eme(m,i,E)});o.push(Zm("fixTargetOption",h,[f.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return o.length?o:void 0}})}});function PPe(e,t,r){e.replaceNode(t,r,L.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function MPe(e,t){return ta(so(e,t).parent,Zu)}var v$,Ife,B$e=bt({"src/services/codefixes/fixPropertyAssignment.ts"(){"use strict";ai(),Aa(),v$="fixPropertyAssignment",Ife=[f.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code],Ea({errorCodes:Ife,fixIds:[v$],getCodeActions(e){let{sourceFile:t,span:r}=e,i=MPe(t,r.start),o=pr.ChangeTracker.with(e,s=>PPe(s,e.sourceFile,i));return[ia(v$,o,[f.Change_0_to_1,"=",":"],v$,[f.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>ys(e,Ife,(t,r)=>PPe(t,r.file,MPe(r.file,r.start)))})}});function LPe(e,t){let r=so(e,t),i=id(r).heritageClauses,o=i[0].getFirstToken();return o.kind===96?{extendsToken:o,heritageClauses:i}:void 0}function kPe(e,t,r,i){if(e.replaceNode(t,r,L.createToken(119)),i.length===2&&i[0].token===96&&i[1].token===119){let o=i[1].getFirstToken(),s=o.getFullStart();e.replaceRange(t,{pos:s,end:s},L.createToken(28));let l=t.text,d=o.end;for(;dkPe(l,t,i,o));return[ia(b$,s,f.Change_extends_to_implements,b$,f.Change_all_extended_interfaces_to_implements)]},fixIds:[b$],getAllCodeActions:e=>ys(e,xfe,(t,r)=>{let i=LPe(r.file,r.start);i&&kPe(t,r.file,i.extendsToken,i.heritageClauses)})})}});function wPe(e,t,r){let i=so(e,t);if(Fe(i)||Ki(i))return{node:i,className:r===Rfe?id(i).name.text:void 0}}function OPe(e,t,{node:r,className:i}){bp(r),e.replaceNode(t,r,L.createPropertyAccessExpression(i?L.createIdentifier(i):L.createThis(),r))}var E$,Rfe,Dfe,V$e=bt({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){"use strict";ai(),Aa(),E$="forgottenThisPropertyAccess",Rfe=f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,Dfe=[f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,f.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,Rfe],Ea({errorCodes:Dfe,getCodeActions(e){let{sourceFile:t}=e,r=wPe(t,e.span.start,e.errorCode);if(!r)return;let i=pr.ChangeTracker.with(e,o=>OPe(o,t,r));return[ia(E$,i,[f.Add_0_to_unresolved_variable,r.className||"this"],E$,f.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[E$],getAllCodeActions:e=>ys(e,Dfe,(t,r)=>{let i=wPe(r.file,r.start,r.code);i&&OPe(t,e.sourceFile,i)})})}});function j$e(e){return Ts(Pfe,e)}function Cfe(e,t,r,i,o){let s=r.getText()[i];if(!j$e(s))return;let l=o?Pfe[s]:`{${rM(r,t,s)}}`;e.replaceRangeWithText(r,{pos:i,end:i+1},l)}var S$,rB,Nfe,Pfe,U$e=bt({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){"use strict";ai(),Aa(),S$="fixInvalidJsxCharacters_expression",rB="fixInvalidJsxCharacters_htmlEntity",Nfe=[f.Unexpected_token_Did_you_mean_or_gt.code,f.Unexpected_token_Did_you_mean_or_rbrace.code],Ea({errorCodes:Nfe,fixIds:[S$,rB],getCodeActions(e){let{sourceFile:t,preferences:r,span:i}=e,o=pr.ChangeTracker.with(e,l=>Cfe(l,r,t,i.start,!1)),s=pr.ChangeTracker.with(e,l=>Cfe(l,r,t,i.start,!0));return[ia(S$,o,f.Wrap_invalid_character_in_an_expression_container,S$,f.Wrap_all_invalid_characters_in_an_expression_container),ia(rB,s,f.Convert_invalid_character_to_its_html_entity_code,rB,f.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return ys(e,Nfe,(t,r)=>Cfe(t,e.preferences,r.file,r.start,e.fixId===rB))}}),Pfe={">":">","}":"}"}}});function H$e(e,{name:t,jsDocHost:r,jsDocParameterTag:i}){let o=pr.ChangeTracker.with(e,s=>s.filterJSDocTags(e.sourceFile,r,l=>l!==i));return ia(iB,o,[f.Delete_unused_param_tag_0,t.getText(e.sourceFile)],iB,f.Delete_all_unused_param_tags)}function K$e(e,{name:t,jsDocHost:r,signature:i,jsDocParameterTag:o}){if(!Nn(i.parameters))return;let s=e.sourceFile,l=iE(i),d=new Set;for(let y of l)$m(y)&&Fe(y.name)&&d.add(y.name.escapedText);let p=Wl(i.parameters,y=>Fe(y.name)&&!d.has(y.name.escapedText)?y.name.getText(s):void 0);if(p===void 0)return;let h=L.updateJSDocParameterTag(o,o.tagName,L.createIdentifier(p),o.isBracketed,o.typeExpression,o.isNameFirst,o.comment),m=pr.ChangeTracker.with(e,y=>y.replaceJSDocComment(s,r,mn(l,E=>E===o?h:E)));return Zm(Mfe,m,[f.Rename_param_tag_name_0_to_1,t.getText(s),p])}function WPe(e,t){let r=so(e,t);if(r.parent&&$m(r.parent)&&Fe(r.parent.name)){let i=r.parent,o=vT(i),s=cE(i);if(o&&s)return{jsDocHost:o,signature:s,name:r.parent.name,jsDocParameterTag:i}}}var iB,Mfe,Lfe,J$e=bt({"src/services/codefixes/fixUnmatchedParameter.ts"(){"use strict";ai(),Aa(),iB="deleteUnmatchedParameter",Mfe="renameUnmatchedParameter",Lfe=[f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],Ea({fixIds:[iB,Mfe],errorCodes:Lfe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=[],s=WPe(r,i.start);if(s)return Tn(o,H$e(t,s)),Tn(o,K$e(t,s)),o},getAllCodeActions:function(t){let r=new Map;return bD(pr.ChangeTracker.with(t,i=>{ED(t,Lfe,({file:o,start:s})=>{let l=WPe(o,s);l&&r.set(l.signature,Tn(r.get(l.signature),l.jsDocParameterTag))}),r.forEach((o,s)=>{if(t.fixId===iB){let l=new Set(o);i.filterJSDocTags(s.getSourceFile(),s,d=>!l.has(d))}})}))}})}});function q$e(e,t,r){let i=ri(so(e,r),Fe);if(!i||i.parent.kind!==183)return;let s=t.getTypeChecker().getSymbolAtLocation(i);return Vr(s?.declarations||Xe,Um(yh,Qu,Zc))}function X$e(e,t,r,i){if(r.kind===271){e.insertModifierBefore(t,156,r.name);return}let o=r.kind===273?r:r.parent.parent;if(o.name&&o.namedBindings)return;let s=i.getTypeChecker();$F(o,d=>{if(gd(d.symbol,s).flags&111551)return!0})||e.insertModifierBefore(t,156,o)}function Y$e(e,t,r,i){T1.doChangeNamedToNamespaceOrDefault(t,i,e,r.parent)}var T$,FPe,$$e=bt({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){"use strict";ai(),Aa(),T$="fixUnreferenceableDecoratorMetadata",FPe=[f.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],Ea({errorCodes:FPe,getCodeActions:e=>{let t=q$e(e.sourceFile,e.program,e.span.start);if(!t)return;let r=pr.ChangeTracker.with(e,s=>t.kind===276&&Y$e(s,e.sourceFile,t,e.program)),i=pr.ChangeTracker.with(e,s=>X$e(s,e.sourceFile,t,e.program)),o;return r.length&&(o=Tn(o,Zm(T$,r,f.Convert_named_imports_to_namespace_import))),i.length&&(o=Tn(o,Zm(T$,i,f.Use_import_type))),o},fixIds:[T$]})}});function zPe(e,t,r){e.replaceNode(t,r.parent,L.createKeywordTypeNode(159))}function WO(e,t){return ia(FO,e,t,x$,f.Delete_all_unused_declarations)}function BPe(e,t,r){e.delete(t,R.checkDefined(ta(r.parent,tj).typeParameters,"The type parameter to delete should exist"))}function kfe(e){return e.kind===102||e.kind===80&&(e.parent.kind===276||e.parent.kind===273)}function GPe(e){return e.kind===102?ri(e.parent,Mc):void 0}function VPe(e,t){return Vc(t.parent)&&Va(t.parent.getChildren(e))===t}function jPe(e,t,r){e.delete(t,r.parent.kind===243?r.parent:r)}function Q$e(e,t,r){gn(r.elements,i=>e.delete(t,i))}function Z$e(e,t,r,{parent:i}){if(Oi(i)&&i.initializer&&S0(i.initializer))if(Vc(i.parent)&&Nn(i.parent.declarations)>1){let o=i.parent.parent,s=o.getStart(r),l=o.end;t.delete(r,i),t.insertNodeAt(r,l,i.initializer,{prefix:Jy(e.host,e.formatContext.options)+r.text.slice(t7(r.text,s-1),s),suffix:dO(r)?";":""})}else t.replaceNode(r,i.parent,i.initializer);else t.delete(r,i)}function UPe(e,t,r,i){t!==f.Property_0_is_declared_but_its_value_is_never_read.code&&(i.kind===140&&(i=ta(i.parent,CT).typeParameter.name),Fe(i)&&eQe(i)&&(e.replaceNode(r,i,L.createIdentifier(`_${i.text}`)),To(i.parent)&&Lx(i.parent).forEach(o=>{Fe(o.name)&&e.replaceNode(r,o.name,L.createIdentifier(`_${o.name.text}`))})))}function eQe(e){switch(e.parent.kind){case 169:case 168:return!0;case 260:switch(e.parent.parent.parent.kind){case 250:case 249:return!0}}return!1}function A$(e,t,r,i,o,s,l,d){tQe(t,r,e,i,o,s,l,d),Fe(t)&&Ls.Core.eachSymbolReferenceInFile(t,i,e,p=>{wr(p.parent)&&p.parent.name===p&&(p=p.parent),!d&&oQe(p)&&r.delete(e,p.parent.parent)})}function tQe(e,t,r,i,o,s,l,d){let{parent:p}=e;if(To(p))nQe(t,r,p,i,o,s,l,d);else if(!(d&&Fe(e)&&Ls.Core.isSymbolReferencedInFile(e,i,r))){let h=yh(p)?e:Ya(p)?p.parent:p;R.assert(h!==r,"should not delete whole source file"),t.delete(r,h)}}function nQe(e,t,r,i,o,s,l,d=!1){if(rQe(i,t,r,o,s,l,d))if(r.modifiers&&r.modifiers.length>0&&(!Fe(r.name)||Ls.Core.isSymbolReferencedInFile(r.name,i,t)))for(let p of r.modifiers)Ta(p)&&e.deleteModifier(t,p);else!r.initializer&&HPe(r,i,o)&&e.delete(t,r)}function HPe(e,t,r){let i=e.parent.parameters.indexOf(e);return!Ls.Core.someSignatureUsage(e.parent,r,t,(o,s)=>!s||s.arguments.length>i)}function rQe(e,t,r,i,o,s,l){let{parent:d}=r;switch(d.kind){case 174:case 176:let p=d.parameters.indexOf(r),h=Ul(d)?d.name:d,m=Ls.Core.getReferencedSymbolsForNode(d.pos,h,o,i,s);if(m){for(let y of m)for(let E of y.references)if(E.kind===Ls.EntryKind.Node){let S=sP(E.node)&&ra(E.node.parent)&&E.node.parent.arguments.length>p,A=wr(E.node.parent)&&sP(E.node.parent.expression)&&ra(E.node.parent.parent)&&E.node.parent.parent.arguments.length>p,N=(Ul(E.node.parent)||hh(E.node.parent))&&E.node.parent!==r.parent&&E.node.parent.parameters.length>p;if(S||A||N)return!1}}return!0;case 262:return d.name&&iQe(e,t,d.name)?KPe(d,r,l):!0;case 218:case 219:return KPe(d,r,l);case 178:return!1;case 177:return!0;default:return R.failBadSyntaxKind(d)}}function iQe(e,t,r){return!!Ls.Core.eachSymbolReferenceInFile(r,e,t,i=>Fe(i)&&ra(i.parent)&&i.parent.arguments.includes(i))}function KPe(e,t,r){let i=e.parameters,o=i.indexOf(t);return R.assert(o!==-1,"The parameter should already be in the list"),r?i.slice(o+1).every(s=>Fe(s.name)&&!s.symbol.isReferenced):o===i.length-1}function oQe(e){return(ur(e.parent)&&e.parent.left===e||(tH(e.parent)||Xv(e.parent))&&e.parent.operand===e)&&Qc(e.parent.parent)}var FO,I$,x$,oB,R$,wfe,aQe=bt({"src/services/codefixes/fixUnusedIdentifier.ts"(){"use strict";ai(),Aa(),FO="unusedIdentifier",I$="unusedIdentifier_prefix",x$="unusedIdentifier_delete",oB="unusedIdentifier_deleteImports",R$="unusedIdentifier_infer",wfe=[f._0_is_declared_but_its_value_is_never_read.code,f._0_is_declared_but_never_used.code,f.Property_0_is_declared_but_its_value_is_never_read.code,f.All_imports_in_import_declaration_are_unused.code,f.All_destructured_elements_are_unused.code,f.All_variables_are_unused.code,f.All_type_parameters_are_unused.code],Ea({errorCodes:wfe,getCodeActions(e){let{errorCode:t,sourceFile:r,program:i,cancellationToken:o}=e,s=i.getTypeChecker(),l=i.getSourceFiles(),d=so(r,e.span.start);if(nm(d))return[WO(pr.ChangeTracker.with(e,y=>y.delete(r,d)),f.Remove_template_tag)];if(d.kind===30){let y=pr.ChangeTracker.with(e,E=>BPe(E,r,d));return[WO(y,f.Remove_type_parameters)]}let p=GPe(d);if(p){let y=pr.ChangeTracker.with(e,E=>E.delete(r,p));return[ia(FO,y,[f.Remove_import_from_0,ooe(p)],oB,f.Delete_all_unused_imports)]}else if(kfe(d)){let y=pr.ChangeTracker.with(e,E=>A$(r,d,E,s,l,i,o,!1));if(y.length)return[ia(FO,y,[f.Remove_unused_declaration_for_Colon_0,d.getText(r)],oB,f.Delete_all_unused_imports)]}if(tm(d.parent)||j0(d.parent)){if(To(d.parent.parent)){let y=d.parent.elements,E=[y.length>1?f.Remove_unused_declarations_for_Colon_0:f.Remove_unused_declaration_for_Colon_0,mn(y,S=>S.getText(r)).join(", ")];return[WO(pr.ChangeTracker.with(e,S=>Q$e(S,r,d.parent)),E)]}return[WO(pr.ChangeTracker.with(e,y=>Z$e(e,y,r,d.parent)),f.Remove_unused_destructuring_declaration)]}if(VPe(r,d))return[WO(pr.ChangeTracker.with(e,y=>jPe(y,r,d.parent)),f.Remove_variable_statement)];let h=[];if(d.kind===140){let y=pr.ChangeTracker.with(e,S=>zPe(S,r,d)),E=ta(d.parent,CT).typeParameter.name.text;h.push(ia(FO,y,[f.Replace_infer_0_with_unknown,E],R$,f.Replace_all_unused_infer_with_unknown))}else{let y=pr.ChangeTracker.with(e,E=>A$(r,d,E,s,l,i,o,!1));if(y.length){let E=Ya(d.parent)?d.parent:d;h.push(WO(y,[f.Remove_unused_declaration_for_Colon_0,E.getText(r)]))}}let m=pr.ChangeTracker.with(e,y=>UPe(y,t,r,d));return m.length&&h.push(ia(FO,m,[f.Prefix_0_with_an_underscore,d.getText(r)],I$,f.Prefix_all_unused_declarations_with_where_possible)),h},fixIds:[I$,x$,oB,R$],getAllCodeActions:e=>{let{sourceFile:t,program:r,cancellationToken:i}=e,o=r.getTypeChecker(),s=r.getSourceFiles();return ys(e,wfe,(l,d)=>{let p=so(t,d.start);switch(e.fixId){case I$:UPe(l,d.code,t,p);break;case oB:{let h=GPe(p);h?l.delete(t,h):kfe(p)&&A$(t,p,l,o,s,r,i,!0);break}case x$:{if(p.kind===140||kfe(p))break;if(nm(p))l.delete(t,p);else if(p.kind===30)BPe(l,t,p);else if(tm(p.parent)){if(p.parent.parent.initializer)break;(!To(p.parent.parent)||HPe(p.parent.parent,o,s))&&l.delete(t,p.parent.parent)}else{if(j0(p.parent.parent)&&p.parent.parent.parent.initializer)break;VPe(t,p)?jPe(l,t,p.parent):A$(t,p,l,o,s,r,i,!0)}break}case R$:p.kind===140&&zPe(l,t,p);break;default:R.fail(JSON.stringify(e.fixId))}})}})}});function JPe(e,t,r,i,o){let s=so(t,r),l=Fn(s,Hi);if(l.getStart(t)!==s.getStart(t)){let p=JSON.stringify({statementKind:R.formatSyntaxKind(l.kind),tokenKind:R.formatSyntaxKind(s.kind),errorCode:o,start:r,length:i});R.fail("Token and statement should start at the same point. "+p)}let d=(Ho(l.parent)?l.parent:l).parent;if(!Ho(l.parent)||l===Va(l.parent.statements))switch(d.kind){case 245:if(d.elseStatement){if(Ho(l.parent))break;e.replaceNode(t,l,L.createBlock(Xe));return}case 247:case 248:e.delete(t,d);return}if(Ho(l.parent)){let p=r+i,h=R.checkDefined(sQe(dU(l.parent.statements,l),m=>m.posJPe(i,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[ia(D$,r,f.Remove_unreachable_code,D$,f.Remove_all_unreachable_code)]},fixIds:[D$],getAllCodeActions:e=>ys(e,Ofe,(t,r)=>JPe(t,r.file,r.start,r.length,r.code))})}});function qPe(e,t,r){let i=so(t,r),o=ta(i.parent,K0),s=i.getStart(t),l=o.statement.getStart(t),d=Sf(s,l,t)?l:Pa(t.text,hs(o,59,t).end,!0);e.deleteRange(t,{pos:s,end:d})}var C$,Wfe,cQe=bt({"src/services/codefixes/fixUnusedLabel.ts"(){"use strict";ai(),Aa(),C$="fixUnusedLabel",Wfe=[f.Unused_label.code],Ea({errorCodes:Wfe,getCodeActions(e){let t=pr.ChangeTracker.with(e,r=>qPe(r,e.sourceFile,e.span.start));return[ia(C$,t,f.Remove_unused_label,C$,f.Remove_all_unused_labels)]},fixIds:[C$],getAllCodeActions:e=>ys(e,Wfe,(t,r)=>qPe(t,r.file,r.start))})}});function XPe(e,t,r,i,o){e.replaceNode(t,r,o.typeToTypeNode(i,r,void 0))}function YPe(e,t,r){let i=Fn(so(e,t),dQe),o=i&&i.type;return o&&{typeNode:o,type:uQe(r,o)}}function dQe(e){switch(e.kind){case 234:case 179:case 180:case 262:case 177:case 181:case 200:case 174:case 173:case 169:case 172:case 171:case 178:case 265:case 216:case 260:return!0;default:return!1}}function uQe(e,t){if(MR(t)){let r=e.getTypeFromTypeNode(t.type);return r===e.getNeverType()||r===e.getVoidType()?r:e.getUnionType(Tn([r,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var Ffe,N$,zfe,pQe=bt({"src/services/codefixes/fixJSDocTypes.ts"(){"use strict";ai(),Aa(),Ffe="fixJSDocTypes_plain",N$="fixJSDocTypes_nullable",zfe=[f.JSDoc_types_can_only_be_used_inside_documentation_comments.code,f._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,f._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code],Ea({errorCodes:zfe,getCodeActions(e){let{sourceFile:t}=e,r=e.program.getTypeChecker(),i=YPe(t,e.span.start,r);if(!i)return;let{typeNode:o,type:s}=i,l=o.getText(t),d=[p(s,Ffe,f.Change_all_jsdoc_style_types_to_TypeScript)];return o.kind===321&&d.push(p(s,N$,f.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),d;function p(h,m,y){let E=pr.ChangeTracker.with(e,S=>XPe(S,t,o,h,r));return ia("jdocTypes",E,[f.Change_0_to_1,l,r.typeToString(h)],m,y)}},fixIds:[Ffe,N$],getAllCodeActions(e){let{fixId:t,program:r,sourceFile:i}=e,o=r.getTypeChecker();return ys(e,zfe,(s,l)=>{let d=YPe(l.file,l.start,o);if(!d)return;let{typeNode:p,type:h}=d,m=p.kind===321&&t===N$?o.getNullableType(h,32768):h;XPe(s,i,p,m,o)})}})}});function $Pe(e,t,r){e.replaceNodeWithText(t,r,`${r.text}()`)}function QPe(e,t){let r=so(e,t);if(wr(r.parent)){let i=r.parent;for(;wr(i.parent);)i=i.parent;return i.name}if(Fe(r))return r}var P$,Bfe,fQe=bt({"src/services/codefixes/fixMissingCallParentheses.ts"(){"use strict";ai(),Aa(),P$="fixMissingCallParentheses",Bfe=[f.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],Ea({errorCodes:Bfe,fixIds:[P$],getCodeActions(e){let{sourceFile:t,span:r}=e,i=QPe(t,r.start);if(!i)return;let o=pr.ChangeTracker.with(e,s=>$Pe(s,e.sourceFile,i));return[ia(P$,o,f.Add_missing_call_parentheses,P$,f.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>ys(e,Bfe,(t,r)=>{let i=QPe(r.file,r.start);i&&$Pe(t,r.file,i)})})}});function mQe(e){if(e.type)return e.type;if(Oi(e.parent)&&e.parent.type&&gh(e.parent.type))return e.parent.type.type}function ZPe(e,t){let r=so(e,t),i=Wp(r);if(!i)return;let o;switch(i.kind){case 174:o=i.name;break;case 262:case 218:o=hs(i,100,e);break;case 219:let s=i.typeParameters?30:21;o=hs(i,s,e)||Va(i.parameters);break;default:return}return o&&{insertBefore:o,returnType:mQe(i)}}function eMe(e,t,{insertBefore:r,returnType:i}){if(i){let o=I2(i);(!o||o.kind!==80||o.text!=="Promise")&&e.replaceNode(t,i,L.createTypeReferenceNode("Promise",L.createNodeArray([i])))}e.insertModifierBefore(t,134,r)}var M$,Gfe,_Qe=bt({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){"use strict";ai(),Aa(),M$="fixAwaitInSyncFunction",Gfe=[f.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code],Ea({errorCodes:Gfe,getCodeActions(e){let{sourceFile:t,span:r}=e,i=ZPe(t,r.start);if(!i)return;let o=pr.ChangeTracker.with(e,s=>eMe(s,t,i));return[ia(M$,o,f.Add_async_modifier_to_containing_function,M$,f.Add_all_missing_async_modifiers)]},fixIds:[M$],getAllCodeActions:function(t){let r=new Map;return ys(t,Gfe,(i,o)=>{let s=ZPe(o.file,o.start);!s||!Em(r,is(s.insertBefore))||eMe(i,t.sourceFile,s)})}})}});function tMe(e,t,r,i,o){let s,l;if(i===f._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)s=t,l=t+r;else if(i===f._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){let d=o.program.getTypeChecker(),p=so(e,t).parent;R.assert(Nv(p),"error span of fixPropertyOverrideAccessor should only be on an accessor");let h=p.parent;R.assert(di(h),"erroneous accessors should only be inside classes");let m=rh(ome(h,d));if(!m)return[];let y=Vi(jx(p.name)),E=d.getPropertyOfType(d.getTypeAtLocation(m),y);if(!E||!E.valueDeclaration)return[];s=E.valueDeclaration.pos,l=E.valueDeclaration.end,e=Gn(E.valueDeclaration)}else R.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return hMe(e,o.program,s,l,o,f.Generate_get_and_set_accessors.message)}var Vfe,L$,hQe=bt({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){"use strict";ai(),Aa(),Vfe=[f._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,f._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],L$="fixPropertyOverrideAccessor",Ea({errorCodes:Vfe,getCodeActions(e){let t=tMe(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[ia(L$,t,f.Generate_get_and_set_accessors,L$,f.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[L$],getAllCodeActions:e=>ys(e,Vfe,(t,r)=>{let i=tMe(r.file,r.start,r.length,r.code,e);if(i)for(let o of i)t.pushRaw(e.sourceFile,o)})})}});function gQe(e,t){switch(e){case f.Parameter_0_implicitly_has_an_1_type.code:case f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return hp(Wp(t))?f.Infer_type_of_0_from_usage:f.Infer_parameter_types_from_usage;case f.Rest_parameter_0_implicitly_has_an_any_type.code:case f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Infer_parameter_types_from_usage;case f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return f.Infer_this_type_of_0_from_usage;default:return f.Infer_type_of_0_from_usage}}function yQe(e){switch(e){case f.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case f.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Variable_0_implicitly_has_an_1_type.code;case f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Parameter_0_implicitly_has_an_1_type.code;case f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Rest_parameter_0_implicitly_has_an_any_type.code;case f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case f._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case f.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Member_0_implicitly_has_an_1_type.code}return e}function nMe(e,t,r,i,o,s,l,d,p){if(!aN(r.kind)&&r.kind!==80&&r.kind!==26&&r.kind!==110)return;let{parent:h}=r,m=x1(t,o,p,d);switch(i=yQe(i),i){case f.Member_0_implicitly_has_an_1_type.code:case f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(Oi(h)&&l(h)||Vo(h)||_p(h))return rMe(e,m,t,h,o,d,s),m.writeFixes(e),h;if(wr(h)){let S=zO(h.name,o,s),A=iM(S,h,o,d);if(A){let N=L.createJSDocTypeTag(void 0,L.createJSDocTypeExpression(A),void 0);e.addJSDocTags(t,ta(h.parent.parent,Qc),[N])}return m.writeFixes(e),h}return;case f.Variable_0_implicitly_has_an_1_type.code:{let S=o.getTypeChecker().getSymbolAtLocation(r);return S&&S.valueDeclaration&&Oi(S.valueDeclaration)&&l(S.valueDeclaration)?(rMe(e,m,Gn(S.valueDeclaration),S.valueDeclaration,o,d,s),m.writeFixes(e),S.valueDeclaration):void 0}}let y=Wp(r);if(y===void 0)return;let E;switch(i){case f.Parameter_0_implicitly_has_an_1_type.code:if(hp(y)){iMe(e,m,t,y,o,d,s),E=y;break}case f.Rest_parameter_0_implicitly_has_an_any_type.code:if(l(y)){let S=ta(h,To);vQe(e,m,t,S,y,o,d,s),E=S}break;case f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:Zp(y)&&Fe(y.name)&&(k$(e,m,t,y,zO(y.name,o,s),o,d),E=y);break;case f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:hp(y)&&(iMe(e,m,t,y,o,d,s),E=y);break;case f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:pr.isThisTypeAnnotatable(y)&&l(y)&&(bQe(e,t,y,o,d,s),E=y);break;default:return R.fail(String(i))}return m.writeFixes(e),E}function rMe(e,t,r,i,o,s,l){Fe(i.name)&&k$(e,t,r,i,zO(i.name,o,l),o,s)}function vQe(e,t,r,i,o,s,l,d){if(!Fe(i.name))return;let p=TQe(o,r,s,d);if(R.assert(o.parameters.length===p.length,"Parameter count and inference count should match"),ir(o))oMe(e,r,p,s,l);else{let h=Fs(o)&&!hs(o,21,r);h&&e.insertNodeBefore(r,Va(o.parameters),L.createToken(21));for(let{declaration:m,type:y}of p)m&&!m.type&&!m.initializer&&k$(e,t,r,m,y,s,l);h&&e.insertNodeAfter(r,Ja(o.parameters),L.createToken(22))}}function bQe(e,t,r,i,o,s){let l=aMe(r,t,i,s);if(!l||!l.length)return;let d=Ufe(i,l,s).thisParameter(),p=iM(d,r,i,o);p&&(ir(r)?EQe(e,t,r,p):e.tryInsertThisTypeAnnotation(t,r,p))}function EQe(e,t,r,i){e.addJSDocTags(t,r,[L.createJSDocThisTag(void 0,L.createJSDocTypeExpression(i))])}function iMe(e,t,r,i,o,s,l){let d=Jc(i.parameters);if(d&&Fe(i.name)&&Fe(d.name)){let p=zO(i.name,o,l);p===o.getTypeChecker().getAnyType()&&(p=zO(d.name,o,l)),ir(i)?oMe(e,r,[{declaration:d,type:p}],o,s):k$(e,t,r,d,p,o,s)}}function k$(e,t,r,i,o,s,l){let d=iM(o,i,s,l);if(d)if(ir(r)&&i.kind!==171){let p=Oi(i)?ri(i.parent.parent,Ml):i;if(!p)return;let h=L.createJSDocTypeExpression(d),m=Zp(i)?L.createJSDocReturnTag(void 0,h,void 0):L.createJSDocTypeTag(void 0,h,void 0);e.addJSDocTags(r,p,[m])}else SQe(d,i,r,e,t,rs(s.getCompilerOptions()))||e.tryInsertTypeAnnotation(r,i,d)}function SQe(e,t,r,i,o,s){let l=D1(e,s);return l&&i.tryInsertTypeAnnotation(r,t,l.typeNode)?(gn(l.symbols,d=>o.addImportFromExportedSymbol(d,!0)),!0):!1}function oMe(e,t,r,i,o){let s=r.length&&r[0].declaration.parent;if(!s)return;let l=to(r,d=>{let p=d.declaration;if(p.initializer||rE(p)||!Fe(p.name))return;let h=d.type&&iM(d.type,p,i,o);if(h){let m=L.cloneNode(p.name);return lr(m,7168),{name:L.cloneNode(p.name),param:p,isOptional:!!d.isOptional,typeNode:h}}});if(l.length)if(Fs(s)||Ms(s)){let d=Fs(s)&&!hs(s,21,t);d&&e.insertNodeBefore(t,Va(s.parameters),L.createToken(21)),gn(l,({typeNode:p,param:h})=>{let m=L.createJSDocTypeTag(void 0,L.createJSDocTypeExpression(p)),y=L.createJSDocComment(void 0,[m]);e.insertNodeAt(t,h.getStart(t),y,{suffix:" "})}),d&&e.insertNodeAfter(t,Ja(s.parameters),L.createToken(22))}else{let d=mn(l,({name:p,typeNode:h,isOptional:m})=>L.createJSDocParameterTag(void 0,p,!!m,L.createJSDocTypeExpression(h),!1,void 0));e.addJSDocTags(t,s,d)}}function jfe(e,t,r){return to(Ls.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),r),i=>i.kind!==Ls.EntryKind.Span?ri(i.node,Fe):void 0)}function zO(e,t,r){let i=jfe(e,t,r);return Ufe(t,i,r).single()}function TQe(e,t,r,i){let o=aMe(e,t,r,i);return o&&Ufe(r,o,i).parameters(e)||e.parameters.map(s=>({declaration:s,type:Fe(s.name)?zO(s.name,r,i):r.getTypeChecker().getAnyType()}))}function aMe(e,t,r,i){let o;switch(e.kind){case 176:o=hs(e,137,t);break;case 219:case 218:let s=e.parent;o=(Oi(s)||Vo(s))&&Fe(s.name)?s.name:e.name;break;case 262:case 174:case 173:o=e.name;break}if(o)return jfe(o,r,i)}function Ufe(e,t,r){let i=e.getTypeChecker(),o={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:Ie=>i.createArrayType(Ie),Promise:Ie=>i.createPromiseType(Ie)},s=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:p,parameters:h,thisParameter:m};function l(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function d(Ie){let De=new Map;for(let Et of Ie)Et.properties&&Et.properties.forEach((be,ze)=>{De.has(ze)||De.set(ze,[]),De.get(ze).push(be)});let Le=new Map;return De.forEach((Et,be)=>{Le.set(be,d(Et))}),{isNumber:Ie.some(Et=>Et.isNumber),isString:Ie.some(Et=>Et.isString),isNumberOrString:Ie.some(Et=>Et.isNumberOrString),candidateTypes:va(Ie,Et=>Et.candidateTypes),properties:Le,calls:va(Ie,Et=>Et.calls),constructs:va(Ie,Et=>Et.constructs),numberIndex:gn(Ie,Et=>Et.numberIndex),stringIndex:gn(Ie,Et=>Et.stringIndex),candidateThisTypes:va(Ie,Et=>Et.candidateThisTypes),inferredTypes:void 0}}function p(){return me(y(t))}function h(Ie){if(t.length===0||!Ie.parameters)return;let De=l();for(let Et of t)r.throwIfCancellationRequested(),E(Et,De);let Le=[...De.constructs||[],...De.calls||[]];return Ie.parameters.map((Et,be)=>{let ze=[],tt=Jh(Et),Wt=!1;for(let Je of Le)if(Je.argumentTypes.length<=be)Wt=ir(Ie),ze.push(i.getUndefinedType());else if(tt)for(let ft=be;ftLe.every(be=>!be(Et)))}function ee(Ie){return me(q(Ie))}function me(Ie){if(!Ie.length)return i.getAnyType();let De=i.getUnionType([i.getStringType(),i.getNumberType()]),Et=z(Ie,[{high:ze=>ze===i.getStringType()||ze===i.getNumberType(),low:ze=>ze===De},{high:ze=>!(ze.flags&16385),low:ze=>!!(ze.flags&16385)},{high:ze=>!(ze.flags&114689)&&!(kr(ze)&16),low:ze=>!!(kr(ze)&16)}]),be=Et.filter(ze=>kr(ze)&16);return be.length&&(Et=Et.filter(ze=>!(kr(ze)&16)),Et.push(ge(be))),i.getWidenedType(i.getUnionType(Et.map(i.getBaseTypeOfLiteralType),2))}function ge(Ie){if(Ie.length===1)return Ie[0];let De=[],Le=[],Et=[],be=[],ze=!1,tt=!1,Wt=Xp();for(let ft of Ie){for(let Dn of i.getPropertiesOfType(ft))Wt.add(Dn.escapedName,Dn.valueDeclaration?i.getTypeOfSymbolAtLocation(Dn,Dn.valueDeclaration):i.getAnyType());De.push(...i.getSignaturesOfType(ft,0)),Le.push(...i.getSignaturesOfType(ft,1));let Zt=i.getIndexInfoOfType(ft,0);Zt&&(Et.push(Zt.type),ze=ze||Zt.isReadonly);let en=i.getIndexInfoOfType(ft,1);en&&(be.push(en.type),tt=tt||en.isReadonly)}let _t=Zte(Wt,(ft,Zt)=>{let en=Zt.lengthi.getBaseTypeOfLiteralType(Wt)),tt=(Et=Ie.calls)!=null&&Et.length?J(Ie):void 0;return tt&&ze?be.push(i.getUnionType([tt,...ze],2)):(tt&&be.push(tt),Nn(ze)&&be.push(...ze)),be.push(...re(Ie)),be}function J(Ie){let De=new Map;Ie.properties&&Ie.properties.forEach((ze,tt)=>{let Wt=i.createSymbol(4,tt);Wt.links.type=ee(ze),De.set(tt,Wt)});let Le=Ie.calls?[Ce(Ie.calls)]:[],Et=Ie.constructs?[Ce(Ie.constructs)]:[],be=Ie.stringIndex?[i.createIndexInfo(i.getStringType(),ee(Ie.stringIndex),!1)]:[];return i.createAnonymousType(void 0,De,Le,Et,be)}function re(Ie){if(!Ie.properties||!Ie.properties.size)return[];let De=s.filter(Le=>pe(Le,Ie));return 0xe(Le,Ie)):[]}function pe(Ie,De){return De.properties?!zc(De.properties,(Le,Et)=>{let be=i.getTypeOfPropertyOfType(Ie,Et);return be?Le.calls?!i.getSignaturesOfType(be,0).length||!i.isTypeAssignableTo(be,he(Le.calls)):!i.isTypeAssignableTo(be,ee(Le)):!0}):!1}function xe(Ie,De){if(!(kr(Ie)&4)||!De.properties)return Ie;let Le=Ie.target,Et=rh(Le.typeParameters);if(!Et)return Ie;let be=[];return De.properties.forEach((ze,tt)=>{let Wt=i.getTypeOfPropertyOfType(Le,tt);R.assert(!!Wt,"generic should have all the properties of its reference."),be.push(...fe(Wt,ee(ze),Et))}),o[Ie.symbol.escapedName](me(be))}function fe(Ie,De,Le){if(Ie===Le)return[De];if(Ie.flags&3145728)return va(Ie.types,ze=>fe(ze,De,Le));if(kr(Ie)&4&&kr(De)&4){let ze=i.getTypeArguments(Ie),tt=i.getTypeArguments(De),Wt=[];if(ze&&tt)for(let _t=0;_tbe.argumentTypes.length));for(let be=0;bett.argumentTypes[be]||i.getUndefinedType())),Ie.some(tt=>tt.argumentTypes[be]===void 0)&&(ze.flags|=16777216),De.push(ze)}let Et=ee(d(Ie.map(be=>be.return_)));return i.createSignature(void 0,void 0,void 0,De,Et,void 0,Le,0)}function Ge(Ie,De){De&&!(De.flags&1)&&!(De.flags&131072)&&(Ie.candidateTypes||(Ie.candidateTypes=[])).push(De)}function ve(Ie,De){De&&!(De.flags&1)&&!(De.flags&131072)&&(Ie.candidateThisTypes||(Ie.candidateThisTypes=[])).push(De)}}var w$,Hfe,AQe=bt({"src/services/codefixes/inferFromUsage.ts"(){"use strict";ai(),Aa(),w$="inferFromUsage",Hfe=[f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,f.Variable_0_implicitly_has_an_1_type.code,f.Parameter_0_implicitly_has_an_1_type.code,f.Rest_parameter_0_implicitly_has_an_any_type.code,f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,f.Member_0_implicitly_has_an_1_type.code,f.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,f.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,f._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,f.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],Ea({errorCodes:Hfe,getCodeActions(e){let{sourceFile:t,program:r,span:{start:i},errorCode:o,cancellationToken:s,host:l,preferences:d}=e,p=so(t,i),h,m=pr.ChangeTracker.with(e,E=>{h=nMe(E,t,p,o,r,s,Ty,l,d)}),y=h&&No(h);return!y||m.length===0?void 0:[ia(w$,m,[gQe(o,p),uc(y)],w$,f.Infer_all_types_from_usage)]},fixIds:[w$],getAllCodeActions(e){let{sourceFile:t,program:r,cancellationToken:i,host:o,preferences:s}=e,l=v1();return ys(e,Hfe,(d,p)=>{nMe(d,t,so(p.file,p.start),p.code,r,i,l,o,s)})}})}});function sMe(e,t,r){if(ir(e))return;let i=so(e,r),o=Fn(i,Ws),s=o?.type;if(!s)return;let l=t.getTypeFromTypeNode(s),d=t.getAwaitedType(l)||t.getVoidType(),p=t.typeToTypeNode(d,s,void 0);if(p)return{returnTypeNode:s,returnType:l,promisedTypeNode:p,promisedType:d}}function lMe(e,t,r,i){e.replaceNode(t,r,L.createTypeReferenceNode("Promise",[i]))}var O$,Kfe,IQe=bt({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){"use strict";ai(),Aa(),O$="fixReturnTypeInAsyncFunction",Kfe=[f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code],Ea({errorCodes:Kfe,fixIds:[O$],getCodeActions:function(t){let{sourceFile:r,program:i,span:o}=t,s=i.getTypeChecker(),l=sMe(r,i.getTypeChecker(),o.start);if(!l)return;let{returnTypeNode:d,returnType:p,promisedTypeNode:h,promisedType:m}=l,y=pr.ChangeTracker.with(t,E=>lMe(E,r,d,h));return[ia(O$,y,[f.Replace_0_with_Promise_1,s.typeToString(p),s.typeToString(m)],O$,f.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>ys(e,Kfe,(t,r)=>{let i=sMe(r.file,e.program.getTypeChecker(),r.start);i&&lMe(t,r.file,i.returnTypeNode,i.promisedTypeNode)})})}});function cMe(e,t,r,i){let{line:o}=gs(t,r);(!i||Jb(i,o))&&e.insertCommentBeforeLine(t,o,r," @ts-ignore")}var Jfe,qfe,Xfe,xQe=bt({"src/services/codefixes/disableJsDiagnostics.ts"(){"use strict";ai(),Aa(),Jfe="disableJsDiagnostics",qfe="disableJsDiagnostics",Xfe=to(Object.keys(f),e=>{let t=f[e];return t.category===1?t.code:void 0}),Ea({errorCodes:Xfe,getCodeActions:function(t){let{sourceFile:r,program:i,span:o,host:s,formatContext:l}=t;if(!ir(r)||!dk(r,i.getCompilerOptions()))return;let d=r.checkJsDirective?"":Jy(s,l.options),p=[Zm(Jfe,[uCe(r.fileName,[eO(r.checkJsDirective?dc(r.checkJsDirective.pos,r.checkJsDirective.end):_d(0,0),`// @ts-nocheck${d}`)])],f.Disable_checking_for_this_file)];return pr.isValidLocationToAddComment(r,o.start)&&p.unshift(ia(Jfe,pr.ChangeTracker.with(t,h=>cMe(h,r,o.start)),f.Ignore_this_error_message,qfe,f.Add_ts_ignore_to_all_error_messages)),p},fixIds:[qfe],getAllCodeActions:e=>{let t=new Set;return ys(e,Xfe,(r,i)=>{pr.isValidLocationToAddComment(i.file,i.start)&&cMe(r,i.file,i.start,t)})}})}});function Yfe(e,t,r,i,o,s,l){let d=e.symbol.members;for(let p of t)d.has(p.escapedName)||dMe(p,e,r,i,o,s,l,void 0)}function TD(e){return{trackSymbol:()=>!1,moduleResolverHost:Vq(e.program,e.host)}}function dMe(e,t,r,i,o,s,l,d,p=3,h=!1){let m=e.getDeclarations(),y=Jc(m),E=i.program.getTypeChecker(),S=rs(i.program.getCompilerOptions()),A=y?.kind??171,N=re(e,y),D=y?cu(y):0,w=D&256;w|=D&1?1:D&4?4:0,y&&Lu(y)&&(w|=512);let j=ee(),K=E.getWidenedType(E.getTypeOfSymbolAtLocation(e,t)),Y=!!(e.flags&16777216),B=!!(t.flags&33554432)||h,ce=af(r,o);switch(A){case 171:case 172:let pe=ce===0?268435456:void 0,xe=E.typeToTypeNode(K,t,pe,TD(i));if(s){let ne=D1(xe,S);ne&&(xe=ne.typeNode,AD(s,ne.symbols))}l(L.createPropertyDeclaration(j,y?ge(N):e.getName(),Y&&p&2?L.createToken(58):void 0,xe,void 0));break;case 177:case 178:{R.assertIsDefined(m);let ne=E.typeToTypeNode(K,t,void 0,TD(i)),he=AT(m,y),Ce=he.secondAccessor?[he.firstAccessor,he.secondAccessor]:[he.firstAccessor];if(s){let Ge=D1(ne,S);Ge&&(ne=Ge.typeNode,AD(s,Ge.symbols))}for(let Ge of Ce)if(Zp(Ge))l(L.createGetAccessorDeclaration(j,ge(N),Xe,J(ne),q(d,ce,B)));else{R.assertNode(Ge,hp,"The counterpart to a getter should be a setter");let ve=CN(Ge),Ie=ve&&Fe(ve.name)?yr(ve.name):void 0;l(L.createSetAccessorDeclaration(j,ge(N),Qfe(1,[Ie],[J(ne)],1,!1),q(d,ce,B)))}break}case 173:case 174:R.assertIsDefined(m);let fe=K.isUnion()?va(K.types,ne=>ne.getCallSignatures()):K.getCallSignatures();if(!gt(fe))break;if(m.length===1){R.assert(fe.length===1,"One declaration implies one signature");let ne=fe[0];z(ce,ne,j,ge(N),q(d,ce,B));break}for(let ne of fe)z(ce,ne,j,ge(N));if(!B)if(m.length>fe.length){let ne=E.getSignatureFromDeclaration(m[m.length-1]);z(ce,ne,j,ge(N),q(d,ce))}else R.assert(m.length===fe.length,"Declarations and signatures should match count"),l(CQe(E,i,t,fe,ge(N),Y&&!!(p&1),j,ce,d));break}function z(pe,xe,fe,ne,he){let Ce=W$(174,i,pe,xe,he,ne,fe,Y&&!!(p&1),t,s);Ce&&l(Ce)}function ee(){let pe;return w&&(pe=yx(pe,L.createModifiersFromModifierFlags(w))),me()&&(pe=Tn(pe,L.createToken(164))),pe&&L.createNodeArray(pe)}function me(){return!!(i.program.getCompilerOptions().noImplicitOverride&&y&&O0(y))}function ge(pe){return Fe(pe)&&pe.escapedText==="constructor"?L.createComputedPropertyName(L.createStringLiteral(yr(pe),ce===0)):ol(pe,!1)}function q(pe,xe,fe){return fe?void 0:ol(pe,!1)||Zfe(xe)}function J(pe){return ol(pe,!1)}function re(pe,xe){if(Tl(pe)&262144){let fe=pe.links.nameType;if(fe&&Qf(fe))return L.createIdentifier(Vi(Zf(fe)))}return ol(No(xe),!1)}}function W$(e,t,r,i,o,s,l,d,p,h){let m=t.program,y=m.getTypeChecker(),E=rs(m.getCompilerOptions()),S=ir(p),A=524545|(r===0?268435456:0),N=y.signatureToSignatureDeclaration(i,e,p,A,TD(t));if(!N)return;let D=S?void 0:N.typeParameters,w=N.parameters,j=S?void 0:N.type;if(h){if(D){let ce=Nc(D,z=>{let ee=z.constraint,me=z.default;if(ee){let ge=D1(ee,E);ge&&(ee=ge.typeNode,AD(h,ge.symbols))}if(me){let ge=D1(me,E);ge&&(me=ge.typeNode,AD(h,ge.symbols))}return L.updateTypeParameterDeclaration(z,z.modifiers,z.name,ee,me)});D!==ce&&(D=at(L.createNodeArray(ce,D.hasTrailingComma),D))}let B=Nc(w,ce=>{let z=S?void 0:ce.type;if(z){let ee=D1(z,E);ee&&(z=ee.typeNode,AD(h,ee.symbols))}return L.updateParameterDeclaration(ce,ce.modifiers,ce.dotDotDotToken,ce.name,S?void 0:ce.questionToken,z,ce.initializer)});if(w!==B&&(w=at(L.createNodeArray(B,w.hasTrailingComma),w)),j){let ce=D1(j,E);ce&&(j=ce.typeNode,AD(h,ce.symbols))}}let K=d?L.createToken(58):void 0,Y=N.asteriskToken;if(Ms(N))return L.updateFunctionExpression(N,l,N.asteriskToken,ri(s,Fe),D,w,j,o??N.body);if(Fs(N))return L.updateArrowFunction(N,l,D,w,j,N.equalsGreaterThanToken,o??N.body);if(Ul(N))return L.updateMethodDeclaration(N,l,Y,s??L.createIdentifier(""),K,D,w,j,o);if(Ec(N))return L.updateFunctionDeclaration(N,l,N.asteriskToken,ri(s,Fe),D,w,j,o??N.body)}function $fe(e,t,r,i,o,s,l){let d=af(t.sourceFile,t.preferences),p=rs(t.program.getCompilerOptions()),h=TD(t),m=t.program.getTypeChecker(),y=ir(l),{typeArguments:E,arguments:S,parent:A}=i,N=y?void 0:m.getContextualType(i),D=mn(S,me=>Fe(me)?me.text:wr(me)&&Fe(me.name)?me.name.text:void 0),w=y?[]:mn(S,me=>m.getTypeAtLocation(me)),{argumentTypeNodes:j,argumentTypeParameters:K}=fMe(m,r,w,l,p,1,h),Y=s?L.createNodeArray(L.createModifiersFromModifierFlags(s)):void 0,B=z4(A)?L.createToken(42):void 0,ce=y?void 0:RQe(m,K,E),z=Qfe(S.length,D,j,void 0,y),ee=y||N===void 0?void 0:m.typeToTypeNode(N,l,void 0,h);switch(e){case 174:return L.createMethodDeclaration(Y,B,o,void 0,ce,z,ee,Zfe(d));case 173:return L.createMethodSignature(Y,o,void 0,ce,z,ee===void 0?L.createKeywordTypeNode(159):ee);case 262:return R.assert(typeof o=="string"||Fe(o),"Unexpected name"),L.createFunctionDeclaration(Y,B,o,ce,z,ee,aB(f.Function_not_implemented.message,d));default:R.fail("Unexpected kind")}}function RQe(e,t,r){let i=new Set(t.map(s=>s[0])),o=new Map(t);if(r){let s=r.filter(d=>!t.some(p=>{var h;return e.getTypeAtLocation(d)===((h=p[1])==null?void 0:h.argumentType)})),l=i.size+s.length;for(let d=0;i.size{var l;return L.createTypeParameterDeclaration(void 0,s,(l=o.get(s))==null?void 0:l.constraint)})}function uMe(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function F$(e,t,r,i,o,s,l){let d=e.typeToTypeNode(r,i,s,l);if(d&&ig(d)){let p=D1(d,o);p&&(AD(t,p.symbols),d=p.typeNode)}return ol(d)}function pMe(e){return e.isUnionOrIntersection()?e.types.some(pMe):e.flags&262144}function fMe(e,t,r,i,o,s,l){let d=[],p=new Map;for(let h=0;h=i?L.createToken(58):void 0,o?void 0:r?.[d]||L.createKeywordTypeNode(159),void 0);s.push(m)}return s}function CQe(e,t,r,i,o,s,l,d,p){let h=i[0],m=i[0].minArgumentCount,y=!1;for(let N of i)m=Math.min(N.minArgumentCount,m),Jd(N)&&(y=!0),N.parameters.length>=h.parameters.length&&(!Jd(N)||Jd(h))&&(h=N);let E=h.parameters.length-(Jd(h)?1:0),S=h.parameters.map(N=>N.name),A=Qfe(E,S,void 0,m,!1);if(y){let N=L.createParameterDeclaration(void 0,L.createToken(26),S[E]||"rest",E>=m?L.createToken(58):void 0,L.createArrayTypeNode(L.createKeywordTypeNode(159)),void 0);A.push(N)}return PQe(l,o,s,void 0,A,NQe(i,e,t,r),d,p)}function NQe(e,t,r,i){if(Nn(e)){let o=t.getUnionType(mn(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(o,i,1,TD(r))}}function PQe(e,t,r,i,o,s,l,d){return L.createMethodDeclaration(e,void 0,t,r?L.createToken(58):void 0,i,o,s,d||Zfe(l))}function Zfe(e){return aB(f.Method_not_implemented.message,e)}function aB(e,t){return L.createBlock([L.createThrowStatement(L.createNewExpression(L.createIdentifier("Error"),void 0,[L.createStringLiteral(e,t===0)]))],!0)}function eme(e,t,r){let i=_N(t);if(!i)return;let o=nme(i,"compilerOptions");if(o===void 0){e.insertNodeAtObjectStart(t,i,z$("compilerOptions",L.createObjectLiteralExpression(r.map(([l,d])=>z$(l,d)),!0)));return}let s=o.initializer;if(La(s))for(let[l,d]of r){let p=nme(s,l);p===void 0?e.insertNodeAtObjectStart(t,s,z$(l,d)):e.replaceNode(t,p.initializer,d)}}function tme(e,t,r,i){eme(e,t,[[r,i]])}function z$(e,t){return L.createPropertyAssignment(L.createStringLiteral(e),t)}function nme(e,t){return Vr(e.properties,r=>mc(r)&&!!r.name&&Ca(r.name)&&r.name.text===t)}function D1(e,t){let r,i=Qe(e,o,ji);if(r&&i)return{typeNode:i,symbols:r};function o(s){if(Ov(s)&&s.qualifier){let l=Fp(s.qualifier),d=p7(l.symbol,t),p=d!==l.text?_Me(s.qualifier,L.createIdentifier(d)):s.qualifier;r=Tn(r,l.symbol);let h=zn(s.typeArguments,o,ji);return L.createTypeReferenceNode(p,h)}return Sn(s,o,void 0)}}function _Me(e,t){return e.kind===80?t:L.createQualifiedName(_Me(e.left,t),e.right)}function AD(e,t){t.forEach(r=>e.addImportFromExportedSymbol(r,!0))}function rme(e,t){let r=Jl(t),i=so(e,t.start);for(;i.end(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(ime||{})}});function hMe(e,t,r,i,o,s){let l=vMe(e,t,r,i);if(!l||T1.isRefactorErrorInfo(l))return;let d=pr.ChangeTracker.fromContext(o),{isStatic:p,isReadonly:h,fieldName:m,accessorName:y,originalName:E,type:S,container:A,declaration:N}=l;bp(m),bp(y),bp(N),bp(A);let D,w;if(di(A)){let K=cu(N);if(lu(e)){let Y=L.createModifiersFromModifierFlags(K);D=Y,w=Y}else D=L.createModifiersFromModifierFlags(wQe(K)),w=L.createModifiersFromModifierFlags(OQe(K));GT(N)&&(w=bo(Rv(N),w))}GQe(d,e,N,S,m,w);let j=WQe(m,y,S,D,p,A);if(bp(j),bMe(d,e,j,N,A),h){let K=eg(A);K&&VQe(d,e,K,m.text,E)}else{let K=FQe(m,y,S,D,p,A);bp(K),bMe(d,e,K,N,A)}return d.getChanges()}function LQe(e){return Fe(e)||Ca(e)}function kQe(e){return dp(e,e.parent)||Vo(e)||mc(e)}function gMe(e,t){return Fe(t)?L.createIdentifier(e):L.createStringLiteral(e)}function yMe(e,t,r){let i=t?r.name:L.createThis();return Fe(e)?L.createPropertyAccessExpression(i,e):L.createElementAccessExpression(i,L.createStringLiteralFromNode(e))}function wQe(e){return e&=-9,e&=-3,e&4||(e|=1),e}function OQe(e){return e&=-2,e&=-5,e|=2,e}function vMe(e,t,r,i,o=!0){let s=so(e,r),l=r===i&&o,d=Fn(s.parent,kQe),p=271;if(!d||!(wz(d.name,e,r,i)||l))return{error:ko(f.Could_not_find_property_for_which_to_generate_accessor)};if(!LQe(d.name))return{error:ko(f.Name_is_not_valid)};if((cu(d)&98303|p)!==p)return{error:ko(f.Can_only_convert_property_with_modifier)};let h=d.name.text,m=fX(h),y=gMe(m?h:QT(`_${h}`,e),d.name),E=gMe(m?QT(h.substring(1),e):h,d.name);return{isStatic:pc(d),isReadonly:NN(d),type:jQe(d,t),container:d.kind===169?d.parent.parent:d.parent,originalName:d.name.text,declaration:d,fieldName:y,accessorName:E,renameAccessor:m}}function WQe(e,t,r,i,o,s){return L.createGetAccessorDeclaration(i,t,[],r,L.createBlock([L.createReturnStatement(yMe(e,o,s))],!0))}function FQe(e,t,r,i,o,s){return L.createSetAccessorDeclaration(i,t,[L.createParameterDeclaration(void 0,void 0,L.createIdentifier("value"),void 0,r)],L.createBlock([L.createExpressionStatement(L.createAssignment(yMe(e,o,s),L.createIdentifier("value")))],!0))}function zQe(e,t,r,i,o,s){let l=L.updatePropertyDeclaration(r,s,o,r.questionToken||r.exclamationToken,i,r.initializer);e.replaceNode(t,r,l)}function BQe(e,t,r,i){let o=L.updatePropertyAssignment(r,i,r.initializer);(o.modifiers||o.questionToken||o.exclamationToken)&&(o===r&&(o=L.cloneNode(o)),o.modifiers=void 0,o.questionToken=void 0,o.exclamationToken=void 0),e.replacePropertyAssignment(t,r,o)}function GQe(e,t,r,i,o,s){Vo(r)?zQe(e,t,r,i,o,s):mc(r)?BQe(e,t,r,o):e.replaceNode(t,r,L.updateParameterDeclaration(r,s,r.dotDotDotToken,ta(o,Fe),r.questionToken,r.type,r.initializer))}function bMe(e,t,r,i,o){dp(i,i.parent)?e.insertMemberAtStart(t,o,r):mc(i)?e.insertNodeAfterComma(t,i,r):e.insertNodeAfter(t,i,r)}function VQe(e,t,r,i,o){r.body&&r.body.forEachChild(function s(l){qs(l)&&l.expression.kind===110&&Ca(l.argumentExpression)&&l.argumentExpression.text===o&&LI(l)&&e.replaceNode(t,l.argumentExpression,L.createStringLiteral(i)),wr(l)&&l.expression.kind===110&&l.name.text===o&&LI(l)&&e.replaceNode(t,l.name,L.createIdentifier(i)),!Yo(l)&&!di(l)&&l.forEachChild(s)})}function jQe(e,t){let r=kie(e);if(Vo(e)&&r&&e.questionToken){let i=t.getTypeChecker(),o=i.getTypeFromTypeNode(r);if(!i.isTypeAssignableTo(i.getUndefinedType(),o)){let s=Kv(r)?r.types:[r];return L.createUnionTypeNode([...s,L.createKeywordTypeNode(157)])}}return r}function ome(e,t){let r=[];for(;e;){let i=P0(e),o=i&&t.getSymbolAtLocation(i.expression);if(!o)break;let s=o.flags&2097152?t.getAliasedSymbol(o):o,l=s.declarations&&Vr(s.declarations,di);if(!l)break;r.push(l),e=l}return r}var UQe=bt({"src/services/codefixes/generateAccessors.ts"(){"use strict";ai()}});function HQe(e,t){let r=Gn(t),i=tR(t),o=e.program.getCompilerOptions(),s=[];return s.push(EMe(e,r,t,Ky(i.name,void 0,t.moduleSpecifier,af(r,e.preferences)))),Md(o)===1&&s.push(EMe(e,r,t,L.createImportEqualsDeclaration(void 0,!1,i.name,L.createExternalModuleReference(t.moduleSpecifier)))),s}function EMe(e,t,r,i){let o=pr.ChangeTracker.with(e,s=>s.replaceNode(t,r,i));return Zm(ame,o,[f.Replace_import_with_0,o[0].textChanges[0].newText])}function KQe(e){let t=e.sourceFile,r=f.This_expression_is_not_callable.code===e.errorCode?213:214,i=Fn(so(t,e.span.start),s=>s.kind===r);if(!i)return[];let o=i.expression;return SMe(e,o)}function JQe(e){let t=e.sourceFile,r=Fn(so(t,e.span.start),i=>i.getStart()===e.span.start&&i.getEnd()===e.span.start+e.span.length);return r?SMe(e,r):[]}function SMe(e,t){let r=e.program.getTypeChecker().getTypeAtLocation(t);if(!(r.symbol&&dh(r.symbol)&&r.symbol.links.originatingImport))return[];let i=[],o=r.symbol.links.originatingImport;if(Op(o)||Hr(i,HQe(e,o)),ht(t)&&!(ou(t.parent)&&t.parent.name===t)){let s=e.sourceFile,l=pr.ChangeTracker.with(e,d=>d.replaceNode(s,t,L.createPropertyAccessExpression(t,"default"),{}));i.push(Zm(ame,l,f.Use_synthetic_default_member))}return i}var ame,qQe=bt({"src/services/codefixes/fixInvalidImportSyntax.ts"(){"use strict";ai(),Aa(),ame="invalidImportSyntax",Ea({errorCodes:[f.This_expression_is_not_callable.code,f.This_expression_is_not_constructable.code],getCodeActions:KQe}),Ea({errorCodes:[f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,f.Type_0_does_not_satisfy_the_constraint_1.code,f.Type_0_is_not_assignable_to_type_1.code,f.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,f.Type_predicate_0_is_not_assignable_to_1.code,f.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,f._0_index_type_1_is_not_assignable_to_2_index_type_3.code,f.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,f.Property_0_in_type_1_is_not_assignable_to_type_2.code,f.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:JQe})}});function TMe(e,t){let r=so(e,t);if(Fe(r)&&Vo(r.parent)){let i=hd(r.parent);if(i)return{type:i,prop:r.parent,isJs:ir(r.parent)}}}function XQe(e,t){if(t.isJs)return;let r=pr.ChangeTracker.with(e,i=>AMe(i,e.sourceFile,t.prop));return ia(B$,r,[f.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],G$,f.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function AMe(e,t,r){bp(r);let i=L.updatePropertyDeclaration(r,r.modifiers,r.name,L.createToken(54),r.type,r.initializer);e.replaceNode(t,r,i)}function YQe(e,t){let r=pr.ChangeTracker.with(e,i=>IMe(i,e.sourceFile,t));return ia(B$,r,[f.Add_undefined_type_to_property_0,t.prop.name.getText()],V$,f.Add_undefined_type_to_all_uninitialized_properties)}function IMe(e,t,r){let i=L.createKeywordTypeNode(157),o=Kv(r.type)?r.type.types.concat(i):[r.type,i],s=L.createUnionTypeNode(o);r.isJs?e.addJSDocTags(t,r.prop,[L.createJSDocTypeTag(void 0,L.createJSDocTypeExpression(s))]):e.replaceNode(t,r.type,s)}function $Qe(e,t){if(t.isJs)return;let r=e.program.getTypeChecker(),i=RMe(r,t.prop);if(!i)return;let o=pr.ChangeTracker.with(e,s=>xMe(s,e.sourceFile,t.prop,i));return ia(B$,o,[f.Add_initializer_to_property_0,t.prop.name.getText()],j$,f.Add_initializers_to_all_uninitialized_properties)}function xMe(e,t,r,i){bp(r);let o=L.updatePropertyDeclaration(r,r.modifiers,r.name,r.questionToken,r.type,i);e.replaceNode(t,r,o)}function RMe(e,t){return DMe(e,e.getTypeFromTypeNode(t.type))}function DMe(e,t){if(t.flags&512)return t===e.getFalseType()||t===e.getFalseType(!0)?L.createFalse():L.createTrue();if(t.isStringLiteral())return L.createStringLiteral(t.value);if(t.isNumberLiteral())return L.createNumericLiteral(t.value);if(t.flags&2048)return L.createBigIntLiteral(t.value);if(t.isUnion())return Wl(t.types,r=>DMe(e,r));if(t.isClass()){let r=wg(t.symbol);if(!r||Qr(r,64))return;let i=eg(r);return i&&i.parameters.length?void 0:L.createNewExpression(L.createIdentifier(t.symbol.name),void 0,void 0)}else if(e.isArrayLikeType(t))return L.createArrayLiteralExpression()}var B$,G$,V$,j$,sme,QQe=bt({"src/services/codefixes/fixStrictClassInitialization.ts"(){"use strict";ai(),Aa(),B$="strictClassInitialization",G$="addMissingPropertyDefiniteAssignmentAssertions",V$="addMissingPropertyUndefinedType",j$="addMissingPropertyInitializer",sme=[f.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],Ea({errorCodes:sme,getCodeActions:function(t){let r=TMe(t.sourceFile,t.span.start);if(!r)return;let i=[];return Tn(i,YQe(t,r)),Tn(i,XQe(t,r)),Tn(i,$Qe(t,r)),i},fixIds:[G$,V$,j$],getAllCodeActions:e=>ys(e,sme,(t,r)=>{let i=TMe(r.file,r.start);if(i)switch(e.fixId){case G$:AMe(t,r.file,i.prop);break;case V$:IMe(t,r.file,i);break;case j$:let o=e.program.getTypeChecker(),s=RMe(o,i.prop);if(!s)return;xMe(t,r.file,i.prop,s);break;default:R.fail(JSON.stringify(e.fixId))}})})}});function CMe(e,t,r){let{allowSyntheticDefaults:i,defaultImportName:o,namedImports:s,statement:l,required:d}=r;e.replaceNode(t,l,o&&!i?L.createImportEqualsDeclaration(void 0,!1,o,L.createExternalModuleReference(d)):L.createImportDeclaration(void 0,L.createImportClause(!1,o,s),d,void 0))}function NMe(e,t,r){let{parent:i}=so(e,r);Eu(i,!0)||R.failBadSyntaxKind(i);let o=ta(i.parent,Oi),s=ri(o.name,Fe),l=tm(o.name)?ZQe(o.name):void 0;if(s||l)return{allowSyntheticDefaults:RT(t.getCompilerOptions()),defaultImportName:s,namedImports:l,statement:ta(o.parent.parent,Ml),required:Va(i.arguments)}}function ZQe(e){let t=[];for(let r of e.elements){if(!Fe(r.name)||r.initializer)return;t.push(L.createImportSpecifier(!1,ri(r.propertyName,Fe),r.name))}if(t.length)return L.createNamedImports(t)}var U$,lme,eZe=bt({"src/services/codefixes/requireInTs.ts"(){"use strict";ai(),Aa(),U$="requireInTs",lme=[f.require_call_may_be_converted_to_an_import.code],Ea({errorCodes:lme,getCodeActions(e){let t=NMe(e.sourceFile,e.program,e.span.start);if(!t)return;let r=pr.ChangeTracker.with(e,i=>CMe(i,e.sourceFile,t));return[ia(U$,r,f.Convert_require_to_import,U$,f.Convert_all_require_to_import)]},fixIds:[U$],getAllCodeActions:e=>ys(e,lme,(t,r)=>{let i=NMe(r.file,e.program,r.start);i&&CMe(t,e.sourceFile,i)})})}});function PMe(e,t){let r=so(e,t);if(!Fe(r))return;let{parent:i}=r;if(Zc(i)&&bh(i.moduleReference))return{importNode:i,name:r,moduleSpecifier:i.moduleReference.expression};if(Yv(i)){let o=i.parent.parent;return{importNode:o,name:r,moduleSpecifier:o.moduleSpecifier}}}function MMe(e,t,r,i){e.replaceNode(t,r.importNode,Ky(r.name,void 0,r.moduleSpecifier,af(t,i)))}var H$,cme,tZe=bt({"src/services/codefixes/useDefaultImport.ts"(){"use strict";ai(),Aa(),H$="useDefaultImport",cme=[f.Import_may_be_converted_to_a_default_import.code],Ea({errorCodes:cme,getCodeActions(e){let{sourceFile:t,span:{start:r}}=e,i=PMe(t,r);if(!i)return;let o=pr.ChangeTracker.with(e,s=>MMe(s,t,i,e.preferences));return[ia(H$,o,f.Convert_to_default_import,H$,f.Convert_all_to_default_imports)]},fixIds:[H$],getAllCodeActions:e=>ys(e,cme,(t,r)=>{let i=PMe(r.file,r.start);i&&MMe(t,r.file,i,e.preferences)})})}});function LMe(e,t,r){let i=ri(so(t,r.start),mp);if(!i)return;let o=i.getText(t)+"n";e.replaceNode(t,i,L.createBigIntLiteral(o))}var K$,dme,nZe=bt({"src/services/codefixes/useBigintLiteral.ts"(){"use strict";ai(),Aa(),K$="useBigintLiteral",dme=[f.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],Ea({errorCodes:dme,getCodeActions:function(t){let r=pr.ChangeTracker.with(t,i=>LMe(i,t.sourceFile,t.span));if(r.length>0)return[ia(K$,r,f.Convert_to_a_bigint_numeric_literal,K$,f.Convert_all_to_bigint_numeric_literals)]},fixIds:[K$],getAllCodeActions:e=>ys(e,dme,(t,r)=>LMe(t,r.file,r))})}});function kMe(e,t){let r=so(e,t);return R.assert(r.kind===102,"This token should be an ImportKeyword"),R.assert(r.parent.kind===205,"Token parent should be an ImportType"),r.parent}function wMe(e,t,r){let i=L.updateImportTypeNode(r,r.argument,r.attributes,r.qualifier,r.typeArguments,!0);e.replaceNode(t,r,i)}var OMe,J$,ume,rZe=bt({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){"use strict";ai(),Aa(),OMe="fixAddModuleReferTypeMissingTypeof",J$=OMe,ume=[f.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],Ea({errorCodes:ume,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=kMe(r,i.start),s=pr.ChangeTracker.with(t,l=>wMe(l,r,o));return[ia(J$,s,f.Add_missing_typeof,J$,f.Add_missing_typeof)]},fixIds:[J$],getAllCodeActions:e=>ys(e,ume,(t,r)=>wMe(t,e.sourceFile,kMe(r.file,r.start)))})}});function WMe(e,t){let o=so(e,t).parent.parent;if(!(!ur(o)&&(o=o.parent,!ur(o)))&&Fl(o.operatorToken))return o}function FMe(e,t,r){let i=iZe(r);i&&e.replaceNode(t,r,L.createJsxFragment(L.createJsxOpeningFragment(),i,L.createJsxJsxClosingFragment()))}function iZe(e){let t=[],r=e;for(;;)if(ur(r)&&Fl(r.operatorToken)&&r.operatorToken.kind===28){if(t.push(r.left),d2(r.right))return t.push(r.right),t;if(ur(r.right)){r=r.right;continue}else return}else return}var q$,pme,oZe=bt({"src/services/codefixes/wrapJsxInFragment.ts"(){"use strict";ai(),Aa(),q$="wrapJsxInFragment",pme=[f.JSX_expressions_must_have_one_parent_element.code],Ea({errorCodes:pme,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=WMe(r,i.start);if(!o)return;let s=pr.ChangeTracker.with(t,l=>FMe(l,r,o));return[ia(q$,s,f.Wrap_in_JSX_fragment,q$,f.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[q$],getAllCodeActions:e=>ys(e,pme,(t,r)=>{let i=WMe(e.sourceFile,r.start);i&&FMe(t,e.sourceFile,i)})})}});function zMe(e,t){let r=so(e,t),i=ri(r.parent.parent,V0);if(!i)return;let o=fu(i.parent)?i.parent:ri(i.parent.parent,Tm);if(o)return{indexSignature:i,container:o}}function aZe(e,t){return L.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function BMe(e,t,{indexSignature:r,container:i}){let s=(fu(i)?i.members:i.type.members).filter(m=>!V0(m)),l=Va(r.parameters),d=L.createTypeParameterDeclaration(void 0,ta(l.name,Fe),l.type),p=L.createMappedTypeNode(NN(r)?L.createModifier(148):void 0,d,void 0,r.questionToken,r.type,void 0),h=L.createIntersectionTypeNode([...EN(i),p,...s.length?[L.createTypeLiteralNode(s)]:Xe]);e.replaceNode(t,i,aZe(i,h))}var X$,fme,sZe=bt({"src/services/codefixes/convertToMappedObjectType.ts"(){"use strict";ai(),Aa(),X$="fixConvertToMappedObjectType",fme=[f.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],Ea({errorCodes:fme,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=zMe(r,i.start);if(!o)return;let s=pr.ChangeTracker.with(t,d=>BMe(d,r,o)),l=yr(o.container.name);return[ia(X$,s,[f.Convert_0_to_mapped_object_type,l],X$,[f.Convert_0_to_mapped_object_type,l])]},fixIds:[X$],getAllCodeActions:e=>ys(e,fme,(t,r)=>{let i=zMe(r.file,r.start);i&&BMe(t,r.file,i)})})}}),mme,GMe,lZe=bt({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){"use strict";ai(),Aa(),mme="removeAccidentalCallParentheses",GMe=[f.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],Ea({errorCodes:GMe,getCodeActions(e){let t=Fn(so(e.sourceFile,e.span.start),ra);if(!t)return;let r=pr.ChangeTracker.with(e,i=>{i.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[Zm(mme,r,f.Remove_parentheses)]},fixIds:[mme]})}});function VMe(e,t,r){let i=ri(so(t,r.start),d=>d.kind===135),o=i&&ri(i.parent,qv);if(!o)return;let s=o;if(Wu(o.parent)){let d=hR(o.expression,!1);if(Fe(d)){let p=Tc(o.parent.pos,t);p&&p.kind!==105&&(s=o.parent)}}e.replaceNode(t,s,o.expression)}var Y$,_me,cZe=bt({"src/services/codefixes/removeUnnecessaryAwait.ts"(){"use strict";ai(),Aa(),Y$="removeUnnecessaryAwait",_me=[f.await_has_no_effect_on_the_type_of_this_expression.code],Ea({errorCodes:_me,getCodeActions:function(t){let r=pr.ChangeTracker.with(t,i=>VMe(i,t.sourceFile,t.span));if(r.length>0)return[ia(Y$,r,f.Remove_unnecessary_await,Y$,f.Remove_all_unnecessary_uses_of_await)]},fixIds:[Y$],getAllCodeActions:e=>ys(e,_me,(t,r)=>VMe(t,r.file,r))})}});function jMe(e,t){return Fn(so(e,t.start),Mc)}function UMe(e,t,r){if(!t)return;let i=R.checkDefined(t.importClause);e.replaceNode(r.sourceFile,t,L.updateImportDeclaration(t,t.modifiers,L.updateImportClause(i,i.isTypeOnly,i.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(r.sourceFile,t,L.createImportDeclaration(void 0,L.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),t.moduleSpecifier,t.attributes))}var hme,$$,dZe=bt({"src/services/codefixes/splitTypeOnlyImport.ts"(){"use strict";ai(),Aa(),hme=[f.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],$$="splitTypeOnlyImport",Ea({errorCodes:hme,fixIds:[$$],getCodeActions:function(t){let r=pr.ChangeTracker.with(t,i=>UMe(i,jMe(t.sourceFile,t.span),t));if(r.length)return[ia($$,r,f.Split_into_two_separate_import_declarations,$$,f.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>ys(e,hme,(t,r)=>{UMe(t,jMe(e.sourceFile,r),e)})})}});function HMe(e,t,r){var i;let s=r.getTypeChecker().getSymbolAtLocation(so(e,t));if(s===void 0)return;let l=ri((i=s?.valueDeclaration)==null?void 0:i.parent,Vc);if(l===void 0)return;let d=hs(l,87,e);if(d!==void 0)return{symbol:s,token:d}}function KMe(e,t,r){e.replaceNode(t,r,L.createToken(121))}var Q$,gme,uZe=bt({"src/services/codefixes/convertConstToLet.ts"(){"use strict";ai(),Aa(),Q$="fixConvertConstToLet",gme=[f.Cannot_assign_to_0_because_it_is_a_constant.code],Ea({errorCodes:gme,getCodeActions:function(t){let{sourceFile:r,span:i,program:o}=t,s=HMe(r,i.start,o);if(s===void 0)return;let l=pr.ChangeTracker.with(t,d=>KMe(d,r,s.token));return[hpe(Q$,l,f.Convert_const_to_let,Q$,f.Convert_all_const_to_let)]},getAllCodeActions:e=>{let{program:t}=e,r=new Map;return bD(pr.ChangeTracker.with(e,i=>{ED(e,gme,o=>{let s=HMe(o.file,o.start,t);if(s&&Em(r,ba(s.symbol)))return KMe(i,o.file,s.token)})}))},fixIds:[Q$]})}});function JMe(e,t,r){let i=so(e,t);return i.kind===27&&i.parent&&(La(i.parent)||pu(i.parent))?{node:i}:void 0}function qMe(e,t,{node:r}){let i=L.createToken(28);e.replaceNode(t,r,i)}var Z$,XMe,yme,pZe=bt({"src/services/codefixes/fixExpectedComma.ts"(){"use strict";ai(),Aa(),Z$="fixExpectedComma",XMe=f._0_expected.code,yme=[XMe],Ea({errorCodes:yme,getCodeActions(e){let{sourceFile:t}=e,r=JMe(t,e.span.start,e.errorCode);if(!r)return;let i=pr.ChangeTracker.with(e,o=>qMe(o,t,r));return[ia(Z$,i,[f.Change_0_to_1,";",","],Z$,[f.Change_0_to_1,";",","])]},fixIds:[Z$],getAllCodeActions:e=>ys(e,yme,(t,r)=>{let i=JMe(r.file,r.start,r.code);i&&qMe(t,e.sourceFile,i)})})}});function YMe(e,t,r,i,o){let s=so(t,r.start);if(!Fe(s)||!ra(s.parent)||s.parent.expression!==s||s.parent.arguments.length!==0)return;let l=i.getTypeChecker(),d=l.getSymbolAtLocation(s),p=d?.valueDeclaration;if(!p||!To(p)||!U0(p.parent.parent)||o?.has(p))return;o?.add(p);let h=fZe(p.parent.parent);if(gt(h)){let m=h[0],y=!Kv(m)&&!NT(m)&&NT(L.createUnionTypeNode([m,L.createKeywordTypeNode(116)]).types[0]);y&&e.insertText(t,m.pos,"("),e.insertText(t,m.end,y?") | void":" | void")}else{let m=l.getResolvedSignature(s.parent),y=m?.parameters[0],E=y&&l.getTypeOfSymbolAtLocation(y,p.parent.parent);ir(p)?(!E||E.flags&3)&&(e.insertText(t,p.parent.parent.end,")"),e.insertText(t,Pa(t.text,p.parent.parent.pos),"/** @type {Promise} */(")):(!E||E.flags&2)&&e.insertText(t,p.parent.parent.expression.end,"")}}function fZe(e){var t;if(ir(e)){if(Wu(e.parent)){let r=(t=nE(e.parent))==null?void 0:t.typeExpression.type;if(r&&If(r)&&Fe(r.typeName)&&yr(r.typeName)==="Promise")return r.typeArguments}}else return e.typeArguments}var $Me,vme,bme,mZe=bt({"src/services/codefixes/fixAddVoidToPromise.ts"(){"use strict";ai(),Aa(),$Me="addVoidToPromise",vme="addVoidToPromise",bme=[f.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,f.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],Ea({errorCodes:bme,fixIds:[vme],getCodeActions(e){let t=pr.ChangeTracker.with(e,r=>YMe(r,e.sourceFile,e.span,e.program));if(t.length>0)return[ia($Me,t,f.Add_void_to_Promise_resolved_without_a_value,vme,f.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return ys(e,bme,(t,r)=>YMe(t,r.file,r,e.program,new Set))}})}}),wd={};Ra(wd,{PreserveOptionalFlags:()=>ime,addNewNodeForMemberSymbol:()=>dMe,codeFixAll:()=>ys,createCodeFixAction:()=>ia,createCodeFixActionMaybeFixAll:()=>hpe,createCodeFixActionWithoutFixAll:()=>Zm,createCombinedCodeActions:()=>bD,createFileTextChanges:()=>uCe,createImportAdder:()=>x1,createImportSpecifierResolver:()=>SYe,createJsonPropertyAssignment:()=>z$,createMissingMemberNodes:()=>Yfe,createSignatureDeclarationFromCallExpression:()=>$fe,createSignatureDeclarationFromSignature:()=>W$,createStubbedBody:()=>aB,eachDiagnostic:()=>ED,findAncestorMatchingSpan:()=>rme,findJsonProperty:()=>nme,generateAccessorFromProperty:()=>hMe,getAccessorConvertiblePropertyAtPosition:()=>vMe,getAllFixes:()=>Qqe,getAllSupers:()=>ome,getArgumentTypesAndTypeParameters:()=>fMe,getFixes:()=>$qe,getImportCompletionAction:()=>TYe,getImportKind:()=>Hpe,getJSDocTypedefNodes:()=>gYe,getNoopSymbolTrackerWithResolver:()=>TD,getPromoteTypeOnlyCompletionAction:()=>AYe,getSupportedErrorCodes:()=>Xqe,importFixName:()=>Qpe,importSymbols:()=>AD,moduleSpecifierToValidIdentifier:()=>$pe,moduleSymbolToValidIdentifier:()=>Ype,parameterShouldGetTypeFromJSDoc:()=>PCe,registerCodeFix:()=>Ea,setJsonCompilerOptionValue:()=>tme,setJsonCompilerOptionValues:()=>eme,tryGetAutoImportableReferenceFromTypeNode:()=>D1,typeToAutoImportableTypeNode:()=>F$});var Aa=bt({"src/services/_namespaces/ts.codefix.ts"(){"use strict";Zqe(),eXe(),tXe(),iXe(),cXe(),fXe(),mXe(),_Xe(),hXe(),bXe(),NXe(),MXe(),jXe(),sYe(),lYe(),dYe(),uYe(),yYe(),vYe(),EYe(),UYe(),JYe(),YYe(),$Ye(),QYe(),t$e(),i$e(),s$e(),p$e(),S$e(),A$e(),N$e(),P$e(),L$e(),k$e(),w$e(),O$e(),F$e(),z$e(),B$e(),G$e(),V$e(),U$e(),J$e(),$$e(),aQe(),lQe(),cQe(),pQe(),fQe(),_Qe(),hQe(),AQe(),IQe(),xQe(),MQe(),UQe(),qQe(),QQe(),eZe(),tZe(),nZe(),rZe(),oZe(),sZe(),lZe(),cZe(),dZe(),uZe(),pZe(),mZe()}});function _Ze(e){return!!(e.kind&1)}function hZe(e){return!!(e.kind&2)}function sB(e){return!!(e&&e.kind&4)}function pM(e){return!!(e&&e.kind===32)}function gZe(e){return sB(e)||pM(e)||Eme(e)}function yZe(e){return(sB(e)||pM(e))&&!!e.isFromPackageJson}function vZe(e){return!!(e.kind&8)}function bZe(e){return!!(e.kind&16)}function QMe(e){return!!(e&&e.kind&64)}function ZMe(e){return!!(e&&e.kind&128)}function EZe(e){return!!(e&&e.kind&256)}function Eme(e){return!!(e&&e.kind&512)}function eLe(e,t,r,i,o,s,l,d,p){var h,m,y;let E=Ks(),S=l||OI(uu(i.getCompilerOptions())),A=!1,N=0,D=0,w=0,j=0,K=p({tryResolve:B,skippedAny:()=>A,resolvedAny:()=>D>0,resolvedBeyondLimit:()=>D>cQ}),Y=j?` (${(w/j*100).toFixed(1)}% hit rate)`:"";return(h=t.log)==null||h.call(t,`${e}: resolved ${D} module specifiers, plus ${N} ambient and ${w} from cache${Y}`),(m=t.log)==null||m.call(t,`${e}: response is ${A?"incomplete":"complete"}`),(y=t.log)==null||y.call(t,`${e}: ${Ks()-E}`),K;function B(ce,z){if(z){let q=r.getModuleSpecifierForBestExportInfo(ce,o,d);return q&&N++,q||"failed"}let ee=S||s.allowIncompleteCompletions&&D{let A=to(p.entries,N=>{var D;if(!N.hasAction||!N.source||!N.data||tLe(N.data))return N;if(!xLe(N.name,m))return;let{origin:w}=R.checkDefined(fLe(N.name,N.data,i,o)),j=y.get(t.path,N.data.exportMapKey),K=j&&S.tryResolve(j,!qc(Yf(w.moduleSymbol.name)));if(K==="skipped")return N;if(!K||K==="failed"){(D=o.log)==null||D.call(o,`Unexpected failure resolving auto import for '${N.name}' from '${N.source}'`);return}let Y={...w,kind:32,moduleSpecifier:K.moduleSpecifier};return N.data=cLe(Y),N.source=Ame(Y),N.sourceDisplay=[sf(Y.moduleSpecifier)],N});return S.skippedAny()||(p.isIncomplete=void 0),A});return p.entries=E,p.flags=(p.flags||0)|4,p.optionalReplacementSpan=oLe(h),p}function Sme(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function nLe(e,t,r,i,o,s){let l=so(e,t);if(!zx(l)&&!Ym(l))return[];let d=Ym(l)?l:l.parent;if(!Ym(d))return[];let p=d.parent;if(!Yo(p))return[];let h=lu(e),m=o.includeCompletionsWithSnippetText||void 0,y=vv(d.tags,E=>$m(E)&&E.getEnd()<=t);return to(p.parameters,E=>{if(!Lx(E).length){if(Fe(E.name)){let S={tabstop:1},A=E.name.text,N=BO(A,E.initializer,E.dotDotDotToken,h,!1,!1,r,i,o),D=m?BO(A,E.initializer,E.dotDotDotToken,h,!1,!0,r,i,o,S):void 0;return s&&(N=N.slice(1),D&&(D=D.slice(1))),{name:N,kind:"parameter",sortText:Od.LocationPriority,insertText:m?D:void 0,isSnippet:m}}else if(E.parent.parameters.indexOf(E)===y){let S=`param${y}`,A=rLe(S,E.name,E.initializer,E.dotDotDotToken,h,!1,r,i,o),N=m?rLe(S,E.name,E.initializer,E.dotDotDotToken,h,!0,r,i,o):void 0,D=A.join(Oy(i)+"* "),w=N?.join(Oy(i)+"* ");return s&&(D=D.slice(1),w&&(w=w.slice(1))),{name:D,kind:"parameter",sortText:Od.LocationPriority,insertText:m?w:void 0,isSnippet:m}}}})}function rLe(e,t,r,i,o,s,l,d,p){if(!o)return[BO(e,r,i,o,!1,s,l,d,p,{tabstop:1})];return h(e,t,r,i,{tabstop:1});function h(y,E,S,A,N){if(tm(E)&&!A){let w={tabstop:N.tabstop},j=BO(y,S,A,o,!0,s,l,d,p,w),K=[];for(let Y of E.elements){let B=m(y,Y,w);if(B)K.push(...B);else{K=void 0;break}}if(K)return N.tabstop=w.tabstop,[j,...K]}return[BO(y,S,A,o,!1,s,l,d,p,N)]}function m(y,E,S){if(!E.propertyName&&Fe(E.name)||Fe(E.name)){let A=E.propertyName?fN(E.propertyName):E.name.text;if(!A)return;let N=`${y}.${A}`;return[BO(N,E.initializer,E.dotDotDotToken,o,!1,s,l,d,p,S)]}else if(E.propertyName){let A=fN(E.propertyName);return A&&h(`${y}.${A}`,E.name,E.initializer,E.dotDotDotToken,S)}}}function BO(e,t,r,i,o,s,l,d,p,h){if(s&&R.assertIsDefined(h),t&&(e=AZe(e,t)),s&&(e=B0(e)),i){let m="*";if(o)R.assert(!r,"Cannot annotate a rest parameter with type 'Object'."),m="Object";else{if(t){let S=l.getTypeAtLocation(t.parent);if(!(S.flags&16385)){let A=t.getSourceFile(),D=af(A,p)===0?268435456:0,w=l.typeToTypeNode(S,Fn(t,Yo),D);if(w){let j=s?nQ({removeComments:!0,module:d.module,target:d.target}):IE({removeComments:!0,module:d.module,target:d.target});lr(w,1),m=j.printNode(4,w,A)}}}s&&m==="*"&&(m=`\${${h.tabstop++}:${m}}`)}let y=!o&&r?"...":"",E=s?`\${${h.tabstop++}}`:"";return`@param {${y}${m}} ${e} ${E}`}else{let m=s?`\${${h.tabstop++}}`:"";return`@param ${e} ${m}`}}function AZe(e,t){let r=t.getText().trim();return r.includes(` +`)||r.length>80?`[${e}]`:`[${e}=${r}]`}function IZe(e){return{name:ca(e),kind:"keyword",kindModifiers:"",sortText:Od.GlobalsOrKeywords}}function xZe(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice()}}function iLe(e,t,r){return{kind:4,keywordCompletions:mLe(e,t),isNewIdentifierLocation:r}}function RZe(e){switch(e){case 156:return 8;default:R.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function oLe(e){return e?.kind===80?xu(e):void 0}function DZe(e,t,r,i,o,s,l,d,p,h){let{symbols:m,contextToken:y,completionKind:E,isInSnippetScope:S,isNewIdentifierLocation:A,location:N,propertyAccessToConvert:D,keywordFilters:w,symbolToOriginInfoMap:j,recommendedCompletion:K,isJsxInitializer:Y,isTypeOnlyLocation:B,isJsxIdentifierExpected:ce,isRightOfOpenTag:z,isRightOfDotOrQuestionDot:ee,importStatementCompletion:me,insideJsDocTagTypeExpression:ge,symbolToSortTextMap:q,hasUnresolvedAutoImports:J}=s,re=s.literals,pe=r.getTypeChecker();if(ok(e.scriptKind)===1){let Ge=NZe(N,e);if(Ge)return Ge}let xe=Fn(y,PR);if(xe&&(mae(y)||N0(y,xe.expression))){let Ge=h7(pe,xe.parent.clauses);re=re.filter(ve=>!Ge.hasValue(ve)),m.forEach((ve,Ie)=>{if(ve.valueDeclaration&&$0(ve.valueDeclaration)){let De=pe.getConstantValue(ve.valueDeclaration);De!==void 0&&Ge.hasValue(De)&&(j[Ie]={kind:256})}})}let fe=kG(),ne=aLe(e,i);if(ne&&!A&&(!m||m.length===0)&&w===0)return;let he=Ime(m,fe,void 0,y,N,p,e,t,r,rs(i),o,E,l,i,d,B,D,ce,Y,me,K,j,q,ce,z,h);if(w!==0)for(let Ge of mLe(w,!ge&&lu(e)))(B&&$P(y0(Ge.name))||!B&&pet(Ge.name)||!he.has(Ge.name))&&(he.add(Ge.name),bv(fe,Ge,lB,!0));for(let Ge of QZe(y,p))he.has(Ge.name)||(he.add(Ge.name),bv(fe,Ge,lB,!0));for(let Ge of re){let ve=MZe(e,l,Ge);he.add(ve.name),bv(fe,ve,lB,!0)}ne||PZe(e,N.pos,he,rs(i),fe);let Ce;if(l.includeCompletionsWithInsertText&&y&&!z&&!ee&&(Ce=Fn(y,fP))){let Ge=sLe(Ce,e,l,i,t,r,d);Ge&&fe.push(Ge.entry)}return{flags:s.flags,isGlobalCompletion:S,isIncomplete:l.allowIncompleteCompletions&&J?!0:void 0,isMemberCompletion:CZe(E),isNewIdentifierLocation:A,optionalReplacementSpan:oLe(N),entries:fe}}function aLe(e,t){return!lu(e)||!!dk(e,t)}function sLe(e,t,r,i,o,s,l){let d=e.clauses,p=s.getTypeChecker(),h=p.getTypeAtLocation(e.parent.expression);if(h&&h.isUnion()&&oo(h.types,m=>m.isLiteral())){let m=h7(p,d),y=rs(i),E=af(t,r),S=wd.createImportAdder(t,s,r,o),A=[];for(let B of h.types)if(B.flags&1024){R.assert(B.symbol,"An enum member type should have a symbol"),R.assert(B.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");let ce=B.symbol.valueDeclaration&&p.getConstantValue(B.symbol.valueDeclaration);if(ce!==void 0){if(m.hasValue(ce))continue;m.addValue(ce)}let z=wd.typeToAutoImportableTypeNode(p,S,B,e,y);if(!z)return;let ee=eQ(z,y,E);if(!ee)return;A.push(ee)}else if(!m.hasValue(B.value))switch(typeof B.value){case"object":A.push(B.value.negative?L.createPrefixUnaryExpression(41,L.createBigIntLiteral({negative:!1,base10Value:B.value.base10Value})):L.createBigIntLiteral(B.value));break;case"number":A.push(B.value<0?L.createPrefixUnaryExpression(41,L.createNumericLiteral(-B.value)):L.createNumericLiteral(B.value));break;case"string":A.push(L.createStringLiteral(B.value,E===0));break}if(A.length===0)return;let N=mn(A,B=>L.createCaseClause(B,[])),D=Jy(o,l?.options),w=nQ({removeComments:!0,module:i.module,target:i.target,newLine:fO(D)}),j=l?B=>w.printAndFormatNode(4,B,t,l):B=>w.printNode(4,B,t),K=mn(N,(B,ce)=>r.includeCompletionsWithSnippetText?`${j(B)}$${ce+1}`:`${j(B)}`).join(D);return{entry:{name:`${w.printNode(4,N[0],t)} ...`,kind:"",sortText:Od.GlobalsOrKeywords,insertText:K,hasAction:S.hasFixes()||void 0,source:"SwitchCases/",isSnippet:r.includeCompletionsWithSnippetText?!0:void 0},importAdder:S}}}function eQ(e,t,r){switch(e.kind){case 183:let i=e.typeName;return tQ(i,t,r);case 199:let o=eQ(e.objectType,t,r),s=eQ(e.indexType,t,r);return o&&s&&L.createElementAccessExpression(o,s);case 201:let l=e.literal;switch(l.kind){case 11:return L.createStringLiteral(l.text,r===0);case 9:return L.createNumericLiteral(l.text,l.numericLiteralFlags)}return;case 196:let d=eQ(e.type,t,r);return d&&(Fe(d)?d:L.createParenthesizedExpression(d));case 186:return tQ(e.exprName,t,r);case 205:R.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function tQ(e,t,r){if(Fe(e))return e;let i=Vi(e.right.escapedText);return _U(i,t)?L.createPropertyAccessExpression(tQ(e.left,t,r),i):L.createElementAccessExpression(tQ(e.left,t,r),L.createStringLiteral(i,r===0))}function CZe(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function NZe(e,t){let r=Fn(e,i=>{switch(i.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}});if(r){let i=!!hs(r,32,t),l=r.parent.openingElement.tagName.getText(t)+(i?"":">"),d=xu(r.tagName),p={name:l,kind:"class",kindModifiers:void 0,sortText:Od.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:d,entries:[p]}}}function PZe(e,t,r,i,o){gY(e).forEach((s,l)=>{if(s===t)return;let d=Vi(l);!r.has(d)&&$p(d,i)&&(r.add(d),bv(o,{name:d,kind:"warning",kindModifiers:"",sortText:Od.JavascriptIdentifiers,isFromUncheckedFile:!0},lB))})}function Tme(e,t,r){return typeof r=="object"?F0(r)+"n":Co(r)?rM(e,t,r):JSON.stringify(r)}function MZe(e,t,r){return{name:Tme(e,t,r),kind:"string",kindModifiers:"",sortText:Od.LocationPriority}}function LZe(e,t,r,i,o,s,l,d,p,h,m,y,E,S,A,N,D,w,j,K,Y,B,ce,z){var ee,me;let ge,q,J=Oq(r),re,pe,xe=Ame(y),fe,ne,he,Ce=p.getTypeChecker(),Ge=y&&bZe(y),ve=y&&hZe(y)||m;if(y&&_Ze(y))ge=m?`this${Ge?"?.":""}[${dLe(l,j,h)}]`:`this${Ge?"?.":"."}${h}`;else if((ve||Ge)&&S){ge=ve?m?`[${dLe(l,j,h)}]`:`[${h}]`:h,(Ge||S.questionDotToken)&&(ge=`?.${ge}`);let De=hs(S,25,l)||hs(S,29,l);if(!De)return;let Le=ao(h,S.name.text)?S.name.end:De.end;J=dc(De.getStart(l),Le)}if(A&&(ge===void 0&&(ge=h),ge=`{${ge}}`,typeof A!="boolean"&&(J=xu(A,l))),y&&vZe(y)&&S){ge===void 0&&(ge=h);let De=Tc(S.pos,l),Le="";De&&a7(De.end,De.parent,l)&&(Le=";"),Le+=`(await ${S.expression.getText()})`,ge=m?`${Le}${ge}`:`${Le}${Ge?"?.":"."}${ge}`;let be=ri(S.parent,qv)?S.parent:S.expression;J=dc(be.getStart(l),S.end)}if(pM(y)&&(fe=[sf(y.moduleSpecifier)],N&&({insertText:ge,replacementSpan:J}=BZe(h,N,y,D,l,w,j),pe=j.includeCompletionsWithSnippetText?!0:void 0)),y?.kind===64&&(ne=!0),K===0&&i&&((ee=Tc(i.pos,l,i))==null?void 0:ee.kind)!==28&&(Ul(i.parent.parent)||Zp(i.parent.parent)||hp(i.parent.parent)||Gy(i.parent)||((me=Fn(i.parent,mc))==null?void 0:me.getLastToken(l))===i||Zu(i.parent)&&gs(l,i.getEnd()).line!==gs(l,s).line)&&(xe="ObjectLiteralMemberWithComma/",ne=!0),j.includeCompletionsWithClassMemberSnippets&&j.includeCompletionsWithInsertText&&K===3&&kZe(e,o,l)){let De,Le=lLe(d,p,w,j,h,e,o,s,i,Y);if(Le)({insertText:ge,filterText:q,isSnippet:pe,importAdder:De}=Le),De?.hasFixes()&&(ne=!0,xe="ClassMemberSnippet/");else return}if(y&&ZMe(y)&&({insertText:ge,isSnippet:pe,labelDetails:he}=y,j.useLabelDetailsInCompletionEntries||(h=h+he.detail,he=void 0),xe="ObjectLiteralMethodSnippet/",t=Od.SortBelow(t)),B&&!ce&&j.includeCompletionsWithSnippetText&&j.jsxAttributeCompletionStyle&&j.jsxAttributeCompletionStyle!=="none"&&!(M_(o.parent)&&o.parent.initializer)){let De=j.jsxAttributeCompletionStyle==="braces",Le=Ce.getTypeOfSymbolAtLocation(e,o);j.jsxAttributeCompletionStyle==="auto"&&!(Le.flags&528)&&!(Le.flags&1048576&&Vr(Le.types,Et=>!!(Et.flags&528)))&&(Le.flags&402653316||Le.flags&1048576&&oo(Le.types,Et=>!!(Et.flags&402686084||mde(Et)))?(ge=`${B0(h)}=${rM(l,j,"$1")}`,pe=!0):De=!0),De&&(ge=`${B0(h)}={$1}`,pe=!0)}if(ge!==void 0&&!j.includeCompletionsWithInsertText)return;(sB(y)||pM(y))&&(re=cLe(y),ne=!N);let Ie=Fn(o,E6);if(Ie?.kind===275){let De=y0(h);Ie&&De&&(De===135||Ij(De))&&(ge=`${h} as ${h}_`)}return{name:h,kind:Yy.getSymbolKind(Ce,e,o),kindModifiers:Yy.getSymbolModifiers(Ce,e),sortText:t,source:xe,hasAction:ne?!0:void 0,isRecommended:GZe(e,E,Ce)||void 0,insertText:ge,filterText:q,replacementSpan:J,sourceDisplay:fe,labelDetails:he,isSnippet:pe,isPackageJsonImport:yZe(y)||void 0,isImportStatementCompletion:!!N||void 0,data:re,...z?{symbol:e}:void 0}}function kZe(e,t,r){return ir(t)?!1:!!(e.flags&106500)&&(di(t)||t.parent&&t.parent.parent&&Xc(t.parent)&&t===t.parent.name&&t.parent.getLastToken(r)===t.parent.name&&di(t.parent.parent)||t.parent&&wR(t)&&di(t.parent))}function lLe(e,t,r,i,o,s,l,d,p,h){let m=Fn(l,di);if(!m)return;let y,E=o,S=o,A=t.getTypeChecker(),N=l.getSourceFile(),D=nQ({removeComments:!0,module:r.module,target:r.target,omitTrailingSemicolon:!1,newLine:fO(Jy(e,h?.options))}),w=wd.createImportAdder(N,t,i,e),j;if(i.includeCompletionsWithSnippetText){y=!0;let me=L.createEmptyStatement();j=L.createBlock([me],!0),UU(me,{kind:0,order:0})}else j=L.createBlock([],!0);let K=0,{modifiers:Y,range:B,decorators:ce}=wZe(p,N,d),z=Y&64&&m.modifierFlagsCache&64,ee=[];if(wd.addNewNodeForMemberSymbol(s,m,N,{program:t,host:e},i,w,me=>{let ge=0;z&&(ge|=64),Xc(me)&&A.getMemberOverrideModifierStatus(m,me,s)===1&&(ge|=16),ee.length||(K=me.modifierFlagsCache|ge),me=L.replaceModifiers(me,K),ee.push(me)},j,wd.PreserveOptionalFlags.Property,!!z),ee.length){let me=s.flags&8192,ge=K|16|1;me?ge|=1024:ge|=136;let q=Y≥if(Y&~ge)return;if(K&4&&q&1&&(K&=-5),q!==0&&!(q&1)&&(K&=-2),K|=q,ee=ee.map(re=>L.replaceModifiers(re,K)),ce?.length){let re=ee[ee.length-1];GT(re)&&(ee[ee.length-1]=L.replaceDecoratorsAndModifiers(re,ce.concat(v0(re)||[])))}let J=131073;h?E=D.printAndFormatSnippetList(J,L.createNodeArray(ee),N,h):E=D.printSnippetList(J,L.createNodeArray(ee),N)}return{insertText:E,filterText:S,isSnippet:y,importAdder:w,eraseRange:B}}function wZe(e,t,r){if(!e||gs(t,r).line>gs(t,e.getEnd()).line)return{modifiers:0};let i=0,o,s,l={pos:r,end:r};if(Vo(e.parent)&&e.parent.modifiers&&(i|=x_(e.parent.modifiers)&98303,o=e.parent.modifiers.filter(yd)||[],l.pos=Math.min(l.pos,e.parent.modifiers.pos)),s=OZe(e)){let d=MI(s);i&d||(i|=d,l.pos=Math.min(l.pos,e.pos))}return{modifiers:i,decorators:o,range:l.pos!==r?l:void 0}}function OZe(e){if(Ta(e))return e.kind;if(Fe(e)){let t=tE(e);if(t&&Cy(t))return t}}function WZe(e,t,r,i,o,s,l,d){let p=l.includeCompletionsWithSnippetText||void 0,h=t,m=r.getSourceFile(),y=FZe(e,r,m,i,o,l);if(!y)return;let E=nQ({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!1,newLine:fO(Jy(o,d?.options))});d?h=E.printAndFormatSnippetList(80,L.createNodeArray([y],!0),m,d):h=E.printSnippetList(80,L.createNodeArray([y],!0),m);let S=IE({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!0}),A=L.createMethodSignature(void 0,"",y.questionToken,y.typeParameters,y.parameters,y.type),N={detail:S.printNode(4,A,m)};return{isSnippet:p,insertText:h,labelDetails:N}}function FZe(e,t,r,i,o,s){let l=e.getDeclarations();if(!(l&&l.length))return;let d=i.getTypeChecker(),p=l[0],h=ol(No(p),!1),m=d.getWidenedType(d.getTypeOfSymbolAtLocation(e,t)),E=33554432|(af(r,s)===0?268435456:0);switch(p.kind){case 171:case 172:case 173:case 174:{let S=m.flags&1048576&&m.types.length<10?d.getUnionType(m.types,2):m;if(S.flags&1048576){let j=jr(S.types,K=>d.getSignaturesOfType(K,0).length>0);if(j.length===1)S=j[0];else return}if(d.getSignaturesOfType(S,0).length!==1)return;let N=d.typeToTypeNode(S,t,E,wd.getNoopSymbolTrackerWithResolver({program:i,host:o}));if(!N||!gh(N))return;let D;if(s.includeCompletionsWithSnippetText){let j=L.createEmptyStatement();D=L.createBlock([j],!0),UU(j,{kind:0,order:0})}else D=L.createBlock([],!0);let w=N.parameters.map(j=>L.createParameterDeclaration(void 0,j.dotDotDotToken,j.name,void 0,void 0,j.initializer));return L.createMethodDeclaration(void 0,void 0,h,void 0,void 0,w,void 0,D)}default:return}}function nQ(e){let t,r=pr.createWriter(Oy(e)),i=IE(e,r),o={...r,write:E=>s(E,()=>r.write(E)),nonEscapingWrite:r.write,writeLiteral:E=>s(E,()=>r.writeLiteral(E)),writeStringLiteral:E=>s(E,()=>r.writeStringLiteral(E)),writeSymbol:(E,S)=>s(E,()=>r.writeSymbol(E,S)),writeParameter:E=>s(E,()=>r.writeParameter(E)),writeComment:E=>s(E,()=>r.writeComment(E)),writeProperty:E=>s(E,()=>r.writeProperty(E))};return{printSnippetList:l,printAndFormatSnippetList:p,printNode:h,printAndFormatNode:y};function s(E,S){let A=B0(E);if(A!==E){let N=r.getTextPos();S();let D=r.getTextPos();t=Tn(t||(t=[]),{newText:A,span:{start:N,length:D-N}})}else S()}function l(E,S,A){let N=d(E,S,A);return t?pr.applyChanges(N,t):N}function d(E,S,A){return t=void 0,o.clear(),i.writeList(E,S,A,o),o.getText()}function p(E,S,A,N){let D={text:d(E,S,A),getLineAndCharacterOfPosition(Y){return gs(this,Y)}},w=_7(N,A),j=va(S,Y=>{let B=pr.assignPositionsToNode(Y);return kc.formatNodeGivenIndentation(B,D,A.languageVariant,0,0,{...N,options:w})}),K=t?by(bo(j,t),(Y,B)=>yW(Y.span,B.span)):j;return pr.applyChanges(D.text,K)}function h(E,S,A){let N=m(E,S,A);return t?pr.applyChanges(N,t):N}function m(E,S,A){return t=void 0,o.clear(),i.writeNode(E,S,A,o),o.getText()}function y(E,S,A,N){let D={text:m(E,S,A),getLineAndCharacterOfPosition(B){return gs(this,B)}},w=_7(N,A),j=pr.assignPositionsToNode(S),K=kc.formatNodeGivenIndentation(j,D,A.languageVariant,0,0,{...N,options:w}),Y=t?by(bo(K,t),(B,ce)=>yW(B.span,ce.span)):K;return pr.applyChanges(D.text,Y)}}function cLe(e){let t=e.fileName?void 0:Yf(e.moduleSymbol.name),r=e.isFromPackageJson?!0:void 0;return pM(e)?{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:t,fileName:e.fileName,isPackageJsonImport:r}:{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:Yf(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function zZe(e,t,r){let i=e.exportName==="default",o=!!e.isPackageJsonImport;return tLe(e)?{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:i,isFromPackageJson:o}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:i,isFromPackageJson:o}}function BZe(e,t,r,i,o,s,l){let d=t.replacementSpan,p=B0(rM(o,l,r.moduleSpecifier)),h=r.isDefaultExport?1:r.exportName==="export="?2:0,m=l.includeCompletionsWithSnippetText?"$1":"",y=wd.getImportKind(o,h,s,!0),E=t.couldBeTypeOnlyImportSpecifier,S=t.isTopLevelTypeOnly?` ${ca(156)} `:" ",A=E?`${ca(156)} `:"",N=i?";":"";switch(y){case 3:return{replacementSpan:d,insertText:`import${S}${B0(e)}${m} = require(${p})${N}`};case 1:return{replacementSpan:d,insertText:`import${S}${B0(e)}${m} from ${p}${N}`};case 2:return{replacementSpan:d,insertText:`import${S}* as ${B0(e)} from ${p}${N}`};case 0:return{replacementSpan:d,insertText:`import${S}{ ${A}${B0(e)}${m} } from ${p}${N}`}}}function dLe(e,t,r){return/^\d+$/.test(r)?r:rM(e,t,r)}function GZe(e,t,r){return e===t||!!(e.flags&1048576)&&r.getExportSymbolOfSymbol(e)===t}function Ame(e){if(sB(e))return Yf(e.moduleSymbol.name);if(pM(e))return e.moduleSpecifier;if(e?.kind===1)return"ThisProperty/";if(e?.kind===64)return"TypeOnlyAlias/"}function Ime(e,t,r,i,o,s,l,d,p,h,m,y,E,S,A,N,D,w,j,K,Y,B,ce,z,ee,me=!1){let ge=Ks(),q=cet(i,o),J=dO(l),re=p.getTypeChecker(),pe=new Map;for(let ne=0;neze.getSourceFile()===o.getSourceFile()));pe.set(ve,be),bv(t,Et,lB,!0)}return m("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(Ks()-ge)),{has:ne=>pe.has(ne),add:ne=>pe.set(ne,!0)};function xe(ne,he){var Ce;let Ge=ne.flags;if(!Yi(o)){if(Ll(o.parent))return!0;if(ri(q,Oi)&&ne.valueDeclaration===q)return!1;let ve=ne.valueDeclaration??((Ce=ne.declarations)==null?void 0:Ce[0]);if(q&&ve&&(fl(q)&&fl(ve)||To(q)&&To(ve))){let De=ve.pos,Le=To(q)?q.parent.parameters:CT(q.parent)?void 0:q.parent.typeParameters;if(De>=q.pos&&Le&&DeTme(r,l,K)===o.name);return j!==void 0?{type:"literal",literal:j}:Wl(h,(K,Y)=>{let B=S[Y],ce=iQ(K,rs(d),B,E,p.isJsxIdentifierExpected);return ce&&ce.name===o.name&&(o.source==="ClassMemberSnippet/"&&K.flags&106500||o.source==="ObjectLiteralMethodSnippet/"&&K.flags&8196||Ame(B)===o.source||o.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:K,location:y,origin:B,contextToken:A,previousToken:N,isJsxInitializer:D,isTypeOnlyLocation:w}:void 0})||{type:"none"}}function UZe(e,t,r,i,o,s,l,d,p){let h=e.getTypeChecker(),m=e.getCompilerOptions(),{name:y,source:E,data:S}=o,{previousToken:A,contextToken:N}=rQ(i,r);if(y1(r,i,A))return uQ.getStringLiteralCompletionDetails(y,r,i,A,e,s,p,d);let D=uLe(e,t,r,i,o,s,d);switch(D.type){case"request":{let{request:w}=D;switch(w.kind){case 1:return ME.getJSDocTagNameCompletionDetails(y);case 2:return ME.getJSDocTagCompletionDetails(y);case 3:return ME.getJSDocParameterNameCompletionDetails(y);case 4:return gt(w.keywordCompletions,j=>j.name===y)?xme(y,"keyword",5):void 0;default:return R.assertNever(w)}}case"symbol":{let{symbol:w,location:j,contextToken:K,origin:Y,previousToken:B}=D,{codeActions:ce,sourceDisplay:z}=HZe(y,j,K,Y,w,e,s,m,r,i,B,l,d,S,E,p),ee=Eme(Y)?Y.symbolName:w.name;return Rme(w,ee,h,r,j,p,ce,z)}case"literal":{let{literal:w}=D;return xme(Tme(r,d,w),"string",typeof w=="string"?8:7)}case"cases":{let w=sLe(N.parent,r,d,e.getCompilerOptions(),s,e,void 0);if(w?.importAdder.hasFixes()){let{entry:j,importAdder:K}=w,Y=pr.ChangeTracker.with({host:s,formatContext:l,preferences:d},K.writeFixes);return{name:j.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:Y,description:ZT([f.Includes_imports_of_types_referenced_by_0,y])}]}}return{name:y,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return wme().some(w=>w.name===y)?xme(y,"keyword",5):void 0;default:R.assertNever(D)}}function xme(e,t,r){return cB(e,"",t,[ep(e,r)])}function Rme(e,t,r,i,o,s,l,d){let{displayParts:p,documentation:h,symbolKind:m,tags:y}=r.runWithCancellationToken(s,E=>Yy.getSymbolDisplayPartsDocumentationAndSymbolKind(E,e,i,o,o,7));return cB(t,Yy.getSymbolModifiers(r,e),m,p,h,y,l,d)}function cB(e,t,r,i,o,s,l,d){return{name:e,kindModifiers:t,kind:r,displayParts:i,documentation:o,tags:s,codeActions:l,source:d,sourceDisplay:d}}function HZe(e,t,r,i,o,s,l,d,p,h,m,y,E,S,A,N){if(S?.moduleSpecifier&&m&&ELe(r||m,p).replacementSpan)return{codeActions:void 0,sourceDisplay:[sf(S.moduleSpecifier)]};if(A==="ClassMemberSnippet/"){let{importAdder:ce,eraseRange:z}=lLe(l,s,d,E,e,o,t,h,r,y);if(ce||z)return{sourceDisplay:void 0,codeActions:[{changes:pr.ChangeTracker.with({host:l,formatContext:y,preferences:E},me=>{ce&&ce.writeFixes(me),z&&me.deleteRange(p,z)}),description:ZT([f.Includes_imports_of_types_referenced_by_0,e])}]}}if(QMe(i)){let ce=wd.getPromoteTypeOnlyCompletionAction(p,i.declaration.name,s,l,y,E);return R.assertIsDefined(ce,"Expected to have a code action for promoting type-only alias"),{codeActions:[ce],sourceDisplay:void 0}}if(A==="ObjectLiteralMemberWithComma/"&&r){let ce=pr.ChangeTracker.with({host:l,formatContext:y,preferences:E},z=>z.insertText(p,r.end,","));if(ce)return{sourceDisplay:void 0,codeActions:[{changes:ce,description:ZT([f.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!i||!(sB(i)||pM(i)))return{codeActions:void 0,sourceDisplay:void 0};let D=i.isFromPackageJson?l.getPackageJsonAutoImportProvider().getTypeChecker():s.getTypeChecker(),{moduleSymbol:w}=i,j=D.getMergedSymbol(gd(o.exportSymbol||o,D)),K=r?.kind===30&&su(r.parent),{moduleSpecifier:Y,codeAction:B}=wd.getImportCompletionAction(j,w,S?.exportMapKey,p,e,K,l,s,y,m&&Fe(m)?m.getStart(p):h,E,N);return R.assert(!S?.moduleSpecifier||Y===S.moduleSpecifier),{sourceDisplay:[sf(Y)],codeActions:[B]}}function KZe(e,t,r,i,o,s,l){let d=uLe(e,t,r,i,o,s,l);return d.type==="symbol"?d.symbol:void 0}function JZe(e,t,r){return Wl(t&&(t.isUnion()?t.types:[t]),i=>{let o=i&&i.symbol;return o&&o.flags&424&&!ioe(o)?Dme(o,e,r):void 0})}function qZe(e,t,r,i){let{parent:o}=e;switch(e.kind){case 80:return r7(e,i);case 64:switch(o.kind){case 260:return i.getContextualType(o.initializer);case 226:return i.getTypeAtLocation(o.left);case 291:return i.getContextualTypeForJsxAttribute(o);default:return}case 105:return i.getContextualType(o);case 84:let s=ri(o,PR);return s?oX(s,i):void 0;case 19:return mP(o)&&!og(o.parent)&&!q0(o.parent)?i.getContextualTypeForJsxAttribute(o.parent):void 0;default:let l=KO.getArgumentInfoForCompletions(e,t,r,i);return l?i.getContextualTypeForArgumentAtIndex(l.invocation,l.argumentIndex):i7(e.kind)&&ur(o)&&i7(o.operatorToken.kind)?i.getTypeAtLocation(o.left):i.getContextualType(e,4)||i.getContextualType(e)}}function Dme(e,t,r){let i=r.getAccessibleSymbolChain(e,t,-1,!1);return i?Va(i):e.parent&&(XZe(e.parent)?e:Dme(e.parent,t,r))}function XZe(e){var t;return!!((t=e.declarations)!=null&&t.some(r=>r.kind===312))}function pLe(e,t,r,i,o,s,l,d,p,h){let m=e.getTypeChecker(),y=aLe(r,i),E=Ks(),S=so(r,o);t("getCompletionData: Get current token: "+(Ks()-E)),E=Ks();let A=Uy(r,o,S);t("getCompletionData: Is inside comment: "+(Ks()-E));let N=!1,D=!1;if(A){if(ude(r,o)){if(r.text.charCodeAt(o-1)===64)return{kind:1};{let We=rm(o,r);if(!/[^*|\s(/)]/.test(r.text.substring(We,o)))return{kind:2}}}let ue=ZZe(S,o);if(ue){if(ue.tagName.pos<=o&&o<=ue.tagName.end)return{kind:1};let We=Zt(ue);if(We&&(S=so(r,o),(!S||!Lg(S)&&(S.parent.kind!==355||S.parent.name!==S))&&(N=H(We))),!N&&$m(ue)&&(Fl(ue.name)||ue.name.pos<=o&&o<=ue.name.end))return{kind:3,tag:ue}}if(!N){t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}E=Ks();let w=!N&&lu(r),j=rQ(o,r),K=j.previousToken,Y=j.contextToken;t("getCompletionData: Get previous token: "+(Ks()-E));let B=S,ce,z=!1,ee=!1,me=!1,ge=!1,q=!1,J=!1,re,pe=Fu(r,o),xe=0,fe=!1,ne=0;if(Y){let ue=ELe(Y,r);if(ue.keywordCompletion){if(ue.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[IZe(ue.keywordCompletion)],isNewIdentifierLocation:ue.isNewIdentifierLocation};xe=RZe(ue.keywordCompletion)}if(ue.replacementSpan&&s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText&&(ne|=2,re=ue,fe=ue.isNewIdentifierLocation),!ue.replacementSpan&&$i(Y))return t("Returning an empty list because completion was requested in an invalid position."),xe?iLe(xe,w,da()):void 0;let We=Y.parent;if(Y.kind===25||Y.kind===29)switch(z=Y.kind===25,ee=Y.kind===29,We.kind){case 211:ce=We,B=ce.expression;let Ne=_R(ce);if(Fl(Ne)||(ra(B)||Yo(B))&&B.end===Y.pos&&B.getChildCount(r)&&Ja(B.getChildren(r)).kind!==22)return;break;case 166:B=We.left;break;case 267:B=We.name;break;case 205:B=We;break;case 236:B=We.getFirstToken(r),R.assert(B.kind===102||B.kind===105);break;default:return}else if(!re){if(We&&We.kind===211&&(Y=We,We=We.parent),S.parent===pe)switch(S.kind){case 32:(S.parent.kind===284||S.parent.kind===286)&&(pe=S);break;case 44:S.parent.kind===285&&(pe=S);break}switch(We.kind){case 287:Y.kind===44&&(ge=!0,pe=Y);break;case 226:if(!bLe(We))break;case 285:case 284:case 286:J=!0,Y.kind===30&&(me=!0,pe=Y);break;case 294:case 293:(K.kind===20||K.kind===80&&K.parent.kind===291)&&(J=!0);break;case 291:if(We.initializer===K&&K.endYT(ue?d.getPackageJsonAutoImportProvider():e,d));if(z||ee)en();else if(me)ve=m.getJsxIntrinsicTagNamesAt(pe),R.assertEachIsDefined(ve,"getJsxIntrinsicTagNames() should all be defined"),Yt(),Ce=1,xe=0;else if(ge){let ue=Y.parent.parent.openingElement.tagName,We=m.getSymbolAtLocation(ue);We&&(ve=[We]),Ce=1,xe=0}else if(!Yt())return xe?iLe(xe,w,fe):void 0;t("getCompletionData: Semantic work: "+(Ks()-he));let tt=K&&qZe(K,o,r,m),_t=!ri(K,ss)&&!J?to(tt&&(tt.isUnion()?tt.types:[tt]),ue=>ue.isLiteral()&&!(ue.flags&1024)?ue.value:void 0):[],Je=K&&tt&&JZe(K,tt,m);return{kind:0,symbols:ve,completionKind:Ce,isInSnippetScope:D,propertyAccessToConvert:ce,isNewIdentifierLocation:fe,location:pe,keywordFilters:xe,literals:_t,symbolToOriginInfoMap:De,recommendedCompletion:Je,previousToken:K,contextToken:Y,isJsxInitializer:q,insideJsDocTagTypeExpression:N,symbolToSortTextMap:Le,isTypeOnlyLocation:be,isJsxIdentifierExpected:J,isRightOfOpenTag:me,isRightOfDotOrQuestionDot:z||ee,importStatementCompletion:re,hasUnresolvedAutoImports:Ge,flags:ne};function ft(ue){switch(ue.kind){case 348:case 355:case 349:case 351:case 353:case 356:case 357:return!0;case 352:return!!ue.constraint;default:return!1}}function Zt(ue){if(ft(ue)){let We=nm(ue)?ue.constraint:ue.typeExpression;return We&&We.kind===316?We:void 0}if(a1(ue)||K4(ue))return ue.class}function en(){Ce=2;let ue=Ov(B),We=ue&&!B.isTypeOf||Xh(B.parent)||Qw(Y,r,m),Ne=Pz(B);if(Xu(B)||ue||wr(B)){let It=ql(B.parent);It&&(fe=!0);let Ct=m.getSymbolAtLocation(B);if(Ct&&(Ct=gd(Ct,m),Ct.flags&1920)){let Kt=m.getExportsOfModule(Ct);R.assertEachIsDefined(Kt,"getExportsOfModule() should all be defined");let En=gi=>m.isValidPropertyAccess(ue?B:B.parent,gi.name),wn=gi=>Nme(gi,m),Bn=It?gi=>{var xi;return!!(gi.flags&1920)&&!((xi=gi.declarations)!=null&&xi.every(er=>er.parent===B.parent))}:Ne?gi=>wn(gi)||En(gi):We||N?wn:En;for(let gi of Kt)Bn(gi)&&ve.push(gi);if(!We&&!N&&Ct.declarations&&Ct.declarations.some(gi=>gi.kind!==312&&gi.kind!==267&&gi.kind!==266)){let gi=m.getTypeOfSymbolAtLocation(Ct,B).getNonOptionalType(),xi=!1;if(gi.isNullableType()){let er=z&&!ee&&s.includeAutomaticOptionalChainCompletions!==!1;(er||ee)&&(gi=gi.getNonNullableType(),er&&(xi=!0))}Dn(gi,!!(B.flags&65536),xi)}return}}if(!We||TT(B)){m.tryGetThisTypeAt(B,!1);let It=m.getTypeAtLocation(B).getNonOptionalType();if(We)Dn(It.getNonNullableType(),!1,!1);else{let Ct=!1;if(It.isNullableType()){let Kt=z&&!ee&&s.includeAutomaticOptionalChainCompletions!==!1;(Kt||ee)&&(It=It.getNonNullableType(),Kt&&(Ct=!0))}Dn(It,!!(B.flags&65536),Ct)}}}function Dn(ue,We,Ne){fe=!!ue.getStringIndexType(),ee&>(ue.getCallSignatures())&&(fe=!0);let It=B.kind===205?B:B.parent;if(y)for(let Ct of ue.getApparentProperties())m.isValidPropertyAccessForCompletions(It,ue,Ct)&&Kn(Ct,!1,Ne);else ve.push(...jr(sQ(ue,m),Ct=>m.isValidPropertyAccessForCompletions(It,ue,Ct)));if(We&&s.includeCompletionsWithInsertText){let Ct=m.getPromisedTypeOfPromise(ue);if(Ct)for(let Kt of Ct.getApparentProperties())m.isValidPropertyAccessForCompletions(It,Ct,Kt)&&Kn(Kt,!0,Ne)}}function Kn(ue,We,Ne){var It;let Ct=Wl(ue.declarations,Bn=>ri(No(Bn),Ya));if(Ct){let Bn=pn(Ct.expression),gi=Bn&&m.getSymbolAtLocation(Bn),xi=gi&&Dme(gi,Y,m),er=xi&&ba(xi);if(er&&Em(Et,er)){let Fr=ve.length;ve.push(xi);let ho=xi.parent;if(!ho||!tO(ho)||m.tryGetMemberInModuleExportsAndProperties(xi.name,ho)!==xi)De[Fr]={kind:wn(2)};else{let Pi=qc(Yf(ho.name))?(It=SF(ho))==null?void 0:It.fileName:void 0,{moduleSpecifier:Ri}=(Ie||(Ie=wd.createImportSpecifierResolver(r,e,d,s))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:Pi,isFromPackageJson:!1,moduleSymbol:ho,symbol:xi,targetFlags:gd(xi,m).flags}],o,mE(pe))||{};if(Ri){let Kr={kind:wn(6),moduleSymbol:ho,isDefaultExport:!1,symbolName:xi.name,exportName:xi.name,fileName:Pi,moduleSpecifier:Ri};De[Fr]=Kr}}}else if(s.includeCompletionsWithInsertText){if(er&&Et.has(er))return;En(ue),Kt(ue),ve.push(ue)}}else En(ue),Kt(ue),ve.push(ue);function Kt(Bn){oet(Bn)&&(Le[ba(Bn)]=Od.LocalDeclarationPriority)}function En(Bn){s.includeCompletionsWithInsertText&&(We&&Em(Et,ba(Bn))?De[ve.length]={kind:wn(8)}:Ne&&(De[ve.length]={kind:16}))}function wn(Bn){return Ne?Bn|16:Bn}}function pn(ue){return Fe(ue)?ue:wr(ue)?pn(ue.expression):void 0}function Yt(){return(vn()||kn()||uo()||Be()||ct()||lt()||qt()||Dt()||hi()||(Li(),1))===1}function qt(){return ke(Y)?(Ce=5,fe=!0,xe=4,1):0}function hi(){let ue=G(Y),We=ue&&m.getContextualType(ue.attributes);if(!We)return 0;let Ne=ue&&m.getContextualType(ue.attributes,4);return ve=bo(ve,ie(aQ(We,Ne,ue.attributes,m),ue.attributes.properties)),U(),Ce=3,fe=!1,1}function uo(){return re?(fe=!0,Ye(),1):0}function Li(){xe=st(Y)?5:1,Ce=1,fe=da(),K!==Y&&R.assert(!!K,"Expected 'contextToken' to be defined when different from 'previousToken'.");let ue=K!==Y?K.getStart():o,We=yi(Y,ue,r)||r;D=Qn(We);let Ne=(be?0:111551)|788968|1920|2097152,It=K&&!mE(K);ve=bo(ve,m.getSymbolsInScope(We,Ne)),R.assertEachIsDefined(ve,"getSymbolsInScope() should all be defined");for(let Ct=0;CtEn.getSourceFile()===r)&&(Le[ba(Kt)]=Od.GlobalsOrKeywords),It&&!(Kt.flags&111551)){let En=Kt.declarations&&Vr(Kt.declarations,t2);if(En){let wn={kind:64,declaration:En};De[Ct]=wn}}}if(s.includeCompletionsWithInsertText&&We.kind!==312){let Ct=m.tryGetThisTypeAt(We,!1,di(We.parent)?We:void 0);if(Ct&&!iet(Ct,r,m))for(let Kt of sQ(Ct,m))De[ve.length]={kind:1},ve.push(Kt),Le[ba(Kt)]=Od.SuggestedClassMembers}Ye(),be&&(xe=Y&&cT(Y.parent)?6:7)}function Eo(){return re?!0:s.includeCompletionsForModuleExports?r.externalModuleIndicator||r.commonJsModuleIndicator||Gq(e.getCompilerOptions())?!0:gde(e):!1}function Qn(ue){switch(ue.kind){case 312:case 228:case 294:case 241:return!0;default:return Hi(ue)}}function Ur(){return N||!!re&&oE(pe.parent)||!Er(Y)&&(Qw(Y,r,m)||Xh(pe)||on(Y))}function Er(ue){return ue&&(ue.kind===114&&(ue.parent.kind===186||CR(ue.parent))||ue.kind===131&&ue.parent.kind===182)}function on(ue){if(ue){let We=ue.parent.kind;switch(ue.kind){case 59:return We===172||We===171||We===169||We===260||vI(We);case 64:return We===265||We===168;case 130:return We===234;case 30:return We===183||We===216;case 96:return We===168;case 152:return We===238}}return!1}function Ye(){var ue,We;if(!Eo()||(R.assert(!l?.data,"Should not run 'collectAutoImports' when faster path is available via `data`"),l&&!l.source))return;ne|=1;let It=K===Y&&re?"":K&&Fe(K)?K.text.toLowerCase():"",Ct=(ue=d.getModuleSpecifierCache)==null?void 0:ue.call(d),Kt=mO(r,d,e,s,h),En=(We=d.getPackageJsonAutoImportProvider)==null?void 0:We.call(d),wn=l?void 0:oM(r,s,d);eLe("collectAutoImports",d,Ie||(Ie=wd.createImportSpecifierResolver(r,e,d,s)),e,o,s,!!re,mE(pe),gi=>{Kt.search(r.path,me,(xi,er)=>{if(!$p(xi,rs(d.getCompilationSettings()))||!l&&CI(xi)||!be&&!re&&!(er&111551)||be&&!(er&790504))return!1;let Fr=xi.charCodeAt(0);return me&&(Fr<65||Fr>90)?!1:l?!0:xLe(xi,It)},(xi,er,Fr,ho)=>{if(l&&!gt(xi,ks=>l.source===Yf(ks.moduleSymbol.name))||(xi=jr(xi,Bn),!xi.length))return;let Pi=gi.tryResolve(xi,Fr)||{};if(Pi==="failed")return;let Ri=xi[0],Kr;Pi!=="skipped"&&({exportInfo:Ri=xi[0],moduleSpecifier:Kr}=Pi);let Io=Ri.exportKind===1,xn=Io&&fR(Ri.symbol)||Ri.symbol;Ot(xn,{kind:Kr?32:4,moduleSpecifier:Kr,symbolName:er,exportMapKey:ho,exportName:Ri.exportKind===2?"export=":Ri.symbol.name,fileName:Ri.moduleFileName,isDefaultExport:Io,moduleSymbol:Ri.moduleSymbol,isFromPackageJson:Ri.isFromPackageJson})}),Ge=gi.skippedAny(),ne|=gi.resolvedAny()?8:0,ne|=gi.resolvedBeyondLimit()?16:0});function Bn(gi){let xi=ri(gi.moduleSymbol.valueDeclaration,Yi);if(!xi){let er=Yf(gi.moduleSymbol.name);return O_.nodeCoreModules.has(er)&&ao(er,"node:")!==m7(r,e)?!1:wn?wn.allowsImportingAmbientModule(gi.moduleSymbol,ze(gi.isFromPackageJson)):!0}return EX(gi.isFromPackageJson?En:e,r,xi,s,wn,ze(gi.isFromPackageJson),Ct)}}function Ot(ue,We){let Ne=ba(ue);Le[Ne]!==Od.GlobalsOrKeywords&&(De[ve.length]=We,Le[Ne]=re?Od.LocationPriority:Od.AutoImportSuggestions,ve.push(ue))}function In(ue,We){ir(pe)||ue.forEach(Ne=>{if(!si(Ne))return;let It=iQ(Ne,rs(i),void 0,0,!1);if(!It)return;let{name:Ct}=It,Kt=WZe(Ne,Ct,We,e,d,i,s,p);if(!Kt)return;let En={kind:128,...Kt};ne|=32,De[ve.length]=En,ve.push(Ne)})}function si(ue){return!!(ue.flags&8196)}function yi(ue,We,Ne){let It=ue;for(;It&&!Rq(It,We,Ne);)It=It.parent;return It}function $i(ue){let We=Ks(),Ne=Ba(ue)||Tt(ue)||Ft(ue)||Ao(ue)||P4(ue);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(Ks()-We)),Ne}function Ao(ue){if(ue.kind===12)return!0;if(ue.kind===32&&ue.parent){if(pe===ue.parent&&(pe.kind===286||pe.kind===285))return!1;if(ue.parent.kind===286)return pe.parent.kind!==286;if(ue.parent.kind===287||ue.parent.kind===285)return!!ue.parent.parent&&ue.parent.parent.kind===284}return!1}function da(){if(Y){let ue=Y.parent.kind,We=oQ(Y);switch(We){case 28:return ue===213||ue===176||ue===214||ue===209||ue===226||ue===184||ue===210;case 21:return ue===213||ue===176||ue===214||ue===217||ue===196;case 23:return ue===209||ue===181||ue===167;case 144:case 145:case 102:return!0;case 25:return ue===267;case 19:return ue===263||ue===210;case 64:return ue===260||ue===226;case 16:return ue===228;case 17:return ue===239;case 134:return ue===174||ue===304;case 42:return ue===174}if(dB(We))return!0}return!1}function Ba(ue){return(XU(ue)||DV(ue))&&(Xw(ue,o)||o===ue.end&&(!!ue.isUnterminated||XU(ue)))}function vn(){let ue=net(Y);if(!ue)return 0;let Ne=(QI(ue.parent)?ue.parent:void 0)||ue,It=vLe(Ne,m);if(!It)return 0;let Ct=m.getTypeFromTypeNode(Ne),Kt=sQ(It,m),En=sQ(Ct,m),wn=new Set;return En.forEach(Bn=>wn.add(Bn.escapedName)),ve=bo(ve,jr(Kt,Bn=>!wn.has(Bn.escapedName))),Ce=0,fe=!0,1}function kn(){let ue=ve.length,We=YZe(Y,o,r);if(!We)return 0;Ce=0;let Ne,It;if(We.kind===210){let Ct=aet(We,m);if(Ct===void 0)return We.flags&67108864?2:0;let Kt=m.getContextualType(We,4),En=(Kt||Ct).getStringIndexType(),wn=(Kt||Ct).getNumberIndexType();if(fe=!!En||!!wn,Ne=aQ(Ct,Kt,We,m),It=We.properties,Ne.length===0&&!wn)return 0}else{R.assert(We.kind===206),fe=!1;let Ct=A_(We.parent);if(!Jx(Ct))return R.fail("Root declaration is not variable-like.");let Kt=Lv(Ct)||!!hd(Ct)||Ct.parent.parent.kind===250;if(!Kt&&Ct.kind===169&&(ht(Ct.parent)?Kt=!!m.getContextualType(Ct.parent):(Ct.parent.kind===174||Ct.parent.kind===178)&&(Kt=ht(Ct.parent.parent)&&!!m.getContextualType(Ct.parent.parent))),Kt){let En=m.getTypeAtLocation(We);if(!En)return 2;Ne=m.getPropertiesOfType(En).filter(wn=>m.isPropertyAccessible(We,!1,!1,En,wn)),It=We.elements}}if(Ne&&Ne.length>0){let Ct=dn(Ne,R.checkDefined(It));ve=bo(ve,Ct),U(),We.kind===210&&s.includeCompletionsWithObjectLiteralMethodSnippets&&s.includeCompletionsWithInsertText&&(Pt(ue),In(Ct,We))}return 1}function Be(){if(!Y)return 0;let ue=Y.kind===19||Y.kind===28?ri(Y.parent,E6):Jz(Y)?ri(Y.parent.parent,E6):void 0;if(!ue)return 0;Jz(Y)||(xe=8);let{moduleSpecifier:We}=ue.kind===275?ue.parent.parent:ue.parent;if(!We)return fe=!0,ue.kind===275?2:0;let Ne=m.getSymbolAtLocation(We);if(!Ne)return fe=!0,2;Ce=3,fe=!1;let It=m.getExportsAndPropertiesOfModule(Ne),Ct=new Set(ue.elements.filter(En=>!H(En)).map(En=>(En.propertyName||En.name).escapedText)),Kt=It.filter(En=>En.escapedName!=="default"&&!Ct.has(En.escapedName));return ve=bo(ve,Kt),Kt.length||(xe=0),1}function ct(){if(Y===void 0)return 0;let ue=Y.kind===19||Y.kind===28?ri(Y.parent,n1):Y.kind===59?ri(Y.parent.parent,n1):void 0;if(ue===void 0)return 0;let We=new Set(ue.elements.map(U6));return ve=jr(m.getTypeAtLocation(ue).getApparentProperties(),Ne=>!We.has(Ne.escapedName)),1}function lt(){var ue;let We=Y&&(Y.kind===19||Y.kind===28)?ri(Y.parent,xf):void 0;if(!We)return 0;let Ne=Fn(We,Um(Yi,ql));return Ce=5,fe=!1,(ue=Ne.locals)==null||ue.forEach((It,Ct)=>{var Kt,En;ve.push(It),(En=(Kt=Ne.symbol)==null?void 0:Kt.exports)!=null&&En.has(Ct)&&(Le[ba(It)]=Od.OptionalMember)}),1}function Dt(){let ue=tet(r,Y,pe,o);if(!ue)return 0;if(Ce=3,fe=!0,xe=Y.kind===42?0:di(ue)?2:3,!di(ue))return 1;let We=Y.kind===27?Y.parent.parent:Y.parent,Ne=Xc(We)?cu(We):0;if(Y.kind===80&&!H(Y))switch(Y.getText()){case"private":Ne=Ne|2;break;case"static":Ne=Ne|256;break;case"override":Ne=Ne|16;break}if(Al(We)&&(Ne|=256),!(Ne&2)){let It=di(ue)&&Ne&16?pI(S_(ue)):EN(ue),Ct=va(It,Kt=>{let En=m.getTypeAtLocation(Kt);return Ne&256?En?.symbol&&m.getPropertiesOfType(m.getTypeOfSymbolAtLocation(En.symbol,ue)):En&&m.getPropertiesOfType(En)});ve=bo(ve,k(Ct,ue.members,Ne)),gn(ve,(Kt,En)=>{let wn=Kt?.valueDeclaration;if(wn&&Xc(wn)&&wn.name&&Ya(wn.name)){let Bn={kind:512,symbolName:m.symbolToString(Kt)};De[En]=Bn}})}return 1}function se(ue){return!!ue.parent&&To(ue.parent)&&Pl(ue.parent.parent)&&(aN(ue.kind)||Lg(ue))}function ke(ue){if(ue){let We=ue.parent;switch(ue.kind){case 21:case 28:return Pl(ue.parent)?ue.parent:void 0;default:if(se(ue))return We.parent}}}function st(ue){if(ue){let We,Ne=Fn(ue.parent,It=>di(It)?"quit":Ws(It)&&We===It.body?!0:(We=It,!1));return Ne&&Ne}}function G(ue){if(ue){let We=ue.parent;switch(ue.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(We&&(We.kind===285||We.kind===286)){if(ue.kind===32){let Ne=Tc(ue.pos,r,void 0);if(!We.typeArguments||Ne&&Ne.kind===44)break}return We}else if(We.kind===291)return We.parent.parent;break;case 11:if(We&&(We.kind===291||We.kind===293))return We.parent.parent;break;case 20:if(We&&We.kind===294&&We.parent&&We.parent.kind===291)return We.parent.parent.parent;if(We&&We.kind===293)return We.parent.parent;break}}}function et(ue,We){return r.getLineEndOfPosition(ue.getEnd())=ue.pos;case 25:return Ne===207;case 59:return Ne===208;case 23:return Ne===207;case 21:return Ne===299||pt(Ne);case 19:return Ne===266;case 30:return Ne===263||Ne===231||Ne===264||Ne===265||vI(Ne);case 126:return Ne===172&&!di(We.parent);case 26:return Ne===169||!!We.parent&&We.parent.kind===207;case 125:case 123:case 124:return Ne===169&&!Pl(We.parent);case 130:return Ne===276||Ne===281||Ne===274;case 139:case 153:return!lQ(ue);case 80:{if(Ne===276&&ue===We.name&&ue.text==="type"||Fn(ue.parent,Oi)&&et(ue,o))return!1;break}case 86:case 94:case 120:case 100:case 115:case 102:case 121:case 87:case 140:return!0;case 156:return Ne!==276;case 42:return Yo(ue.parent)&&!Ul(ue.parent)}if(dB(oQ(ue))&&lQ(ue)||se(ue)&&(!Fe(ue)||aN(oQ(ue))||H(ue)))return!1;switch(oQ(ue)){case 128:case 86:case 87:case 138:case 94:case 100:case 120:case 121:case 123:case 124:case 125:case 126:case 115:return!0;case 134:return Vo(ue.parent)}if(Fn(ue.parent,di)&&ue===K&&He(ue,o))return!1;let Ct=uE(ue.parent,172);if(Ct&&ue!==K&&di(K.parent.parent)&&o<=K.end){if(He(ue,K.end))return!1;if(ue.kind!==64&&(Sw(Ct)||hF(Ct)))return!0}return Lg(ue)&&!Zu(ue.parent)&&!M_(ue.parent)&&!((di(ue.parent)||fu(ue.parent)||fl(ue.parent))&&(ue!==K||o>K.end))}function He(ue,We){return ue.kind!==64&&(ue.kind===27||!Sf(ue.end,We,r))}function pt(ue){return vI(ue)&&ue!==176}function Ft(ue){if(ue.kind===9){let We=ue.getFullText();return We.charAt(We.length-1)==="."}return!1}function hn(ue){return ue.parent.kind===261&&!Qw(ue,r,m)}function dn(ue,We){if(We.length===0)return ue;let Ne=new Set,It=new Set;for(let Kt of We){if(Kt.kind!==303&&Kt.kind!==304&&Kt.kind!==208&&Kt.kind!==174&&Kt.kind!==177&&Kt.kind!==178&&Kt.kind!==305||H(Kt))continue;let En;if(Gy(Kt))un(Kt,Ne);else if(Xa(Kt)&&Kt.propertyName)Kt.propertyName.kind===80&&(En=Kt.propertyName.escapedText);else{let wn=No(Kt);En=wn&&T_(wn)?AN(wn):void 0}En!==void 0&&It.add(En)}let Ct=ue.filter(Kt=>!It.has(Kt.escapedName));return Me(Ne,Ct),Ct}function un(ue,We){let Ne=ue.expression,It=m.getSymbolAtLocation(Ne),Ct=It&&m.getTypeOfSymbolAtLocation(It,Ne),Kt=Ct&&Ct.properties;Kt&&Kt.forEach(En=>{We.add(En.name)})}function U(){ve.forEach(ue=>{if(ue.flags&16777216){let We=ba(ue);Le[We]=Le[We]??Od.OptionalMember}})}function Me(ue,We){if(ue.size!==0)for(let Ne of We)ue.has(Ne.name)&&(Le[ba(Ne)]=Od.MemberDeclaredBySpreadAssignment)}function Pt(ue){for(let We=ue;We!It.has(Ct.escapedName)&&!!Ct.declarations&&!(Tf(Ct)&2)&&!(Ct.valueDeclaration&&au(Ct.valueDeclaration)))}function ie(ue,We){let Ne=new Set,It=new Set;for(let Kt of We)H(Kt)||(Kt.kind===291?Ne.add(QN(Kt.name)):o1(Kt)&&un(Kt,It));let Ct=ue.filter(Kt=>!Ne.has(Kt.escapedName));return Me(It,Ct),Ct}function H(ue){return ue.getStart(r)<=o&&o<=ue.getEnd()}}function YZe(e,t,r){var i;if(e){let{parent:o}=e;switch(e.kind){case 19:case 28:if(La(o)||tm(o))return o;break;case 42:return Ul(o)?ri(o.parent,La):void 0;case 134:return ri(o.parent,La);case 80:if(e.text==="async"&&Zu(e.parent))return e.parent.parent;{if(La(e.parent.parent)&&(Gy(e.parent)||Zu(e.parent)&&gs(r,e.getEnd()).line!==gs(r,t).line))return e.parent.parent;let l=Fn(o,mc);if(l?.getLastToken(r)===e&&La(l.parent))return l.parent}break;default:if((i=o.parent)!=null&&i.parent&&(Ul(o.parent)||Zp(o.parent)||hp(o.parent))&&La(o.parent.parent))return o.parent.parent;if(Gy(o)&&La(o.parent))return o.parent;let s=Fn(o,mc);if(e.kind!==59&&s?.getLastToken(r)===e&&La(s.parent))return s.parent}}}function rQ(e,t){let r=Tc(e,t);return r&&e<=r.end&&(Kh(r)||Ou(r.kind))?{contextToken:Tc(r.getFullStart(),t,void 0),previousToken:r}:{contextToken:r,previousToken:r}}function fLe(e,t,r,i){let o=t.isPackageJsonImport?i.getPackageJsonAutoImportProvider():r,s=o.getTypeChecker(),l=t.ambientModuleName?s.tryFindAmbientModule(t.ambientModuleName):t.fileName?s.getMergedSymbol(R.checkDefined(o.getSourceFile(t.fileName)).symbol):void 0;if(!l)return;let d=t.exportName==="export="?s.resolveExternalModuleSymbol(l):s.tryGetMemberInModuleExportsAndProperties(t.exportName,l);return d?(d=t.exportName==="default"&&fR(d)||d,{symbol:d,origin:zZe(t,e,l)}):void 0}function iQ(e,t,r,i,o){if(EZe(r))return;let s=gZe(r)?r.symbolName:e.name;if(s===void 0||e.flags&1536&&D2(s.charCodeAt(0))||q2(e))return;let l={name:s,needsConvertPropertyAccess:!1};if($p(s,t,o?1:0)||e.valueDeclaration&&au(e.valueDeclaration))return l;switch(i){case 3:return Eme(r)?{name:r.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(s),needsConvertPropertyAccess:!1};case 2:case 1:return s.charCodeAt(0)===32?void 0:{name:s,needsConvertPropertyAccess:!0};case 5:case 4:return l;default:R.assertNever(i)}}function mLe(e,t){if(!t)return _Le(e);let r=e+8+1;return uB[r]||(uB[r]=_Le(e).filter(i=>!$Ze(y0(i.name))))}function _Le(e){return uB[e]||(uB[e]=wme().filter(t=>{let r=y0(t.name);switch(e){case 0:return!1;case 1:return gLe(r)||r===138||r===144||r===156||r===145||r===128||$P(r)&&r!==157;case 5:return gLe(r);case 2:return dB(r);case 3:return hLe(r);case 4:return aN(r);case 6:return $P(r)||r===87;case 7:return $P(r);case 8:return r===156;default:return R.assertNever(e)}}))}function $Ze(e){switch(e){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}function hLe(e){return e===148}function dB(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return CV(e)}}function gLe(e){return e===134||e===135||e===160||e===130||e===152||e===156||!e6(e)&&!dB(e)}function oQ(e){return Fe(e)?tE(e)??0:e.kind}function QZe(e,t){let r=[];if(e){let i=e.getSourceFile(),o=e.parent,s=i.getLineAndCharacterOfPosition(e.end).line,l=i.getLineAndCharacterOfPosition(t).line;(Mc(o)||Xl(o)&&o.moduleSpecifier)&&e===o.moduleSpecifier&&s===l&&r.push({name:ca(132),kind:"keyword",kindModifiers:"",sortText:Od.GlobalsOrKeywords})}return r}function ZZe(e,t){return Fn(e,r=>zx(r)&&qw(r,t)?!0:Ym(r)?"quit":!1)}function aQ(e,t,r,i){let o=t&&t!==e,s=o&&!(t.flags&3)?i.getUnionType([e,t]):e,l=eet(s,r,i);return s.isClass()&&yLe(l)?[]:o?jr(l,d):l;function d(p){return Nn(p.declarations)?gt(p.declarations,h=>h.parent!==r):!0}}function eet(e,t,r){return e.isUnion()?r.getAllPossiblePropertiesOfTypes(jr(e.types,i=>!(i.flags&402784252||r.isArrayLikeType(i)||r.isTypeInvalidDueToUnionDiscriminant(i,t)||r.typeHasCallOrConstructSignatures(i)||i.isClass()&&yLe(i.getApparentProperties())))):e.getApparentProperties()}function yLe(e){return gt(e,t=>!!(Tf(t)&6))}function sQ(e,t){return e.isUnion()?R.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):R.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function tet(e,t,r,i){switch(r.kind){case 358:return ri(r.parent,kI);case 1:let o=ri($s(ta(r.parent,Yi).statements),kI);if(o&&!hs(o,20,e))return o;break;case 81:if(ri(r.parent,Vo))return Fn(r,di);break;case 80:{if(tE(r)||Vo(r.parent)&&r.parent.initializer===r)return;if(lQ(r))return Fn(r,kI)}}if(t){if(r.kind===137||Fe(t)&&Vo(t.parent)&&di(r))return Fn(t,di);switch(t.kind){case 64:return;case 27:case 20:return lQ(r)&&r.parent.name===r?r.parent.parent:ri(r,kI);case 19:case 28:return ri(t.parent,kI);default:if(kI(r)){if(gs(e,t.getEnd()).line!==gs(e,i).line)return r;let o=di(t.parent.parent)?dB:hLe;return o(t.kind)||t.kind===42||Fe(t)&&o(tE(t)??0)?t.parent.parent:void 0}return}}}function net(e){if(!e)return;let t=e.parent;switch(e.kind){case 19:if(gp(t))return t;break;case 27:case 28:case 80:if(t.kind===171&&gp(t.parent))return t.parent;break}}function vLe(e,t){if(!e)return;if(ji(e)&&gF(e.parent))return t.getTypeArgumentConstraint(e);let r=vLe(e.parent,t);if(r)switch(e.kind){case 171:return t.getTypeOfPropertyOfContextualType(r,e.symbol.escapedName);case 193:case 187:case 192:return r}}function lQ(e){return e.parent&&cF(e.parent)&&kI(e.parent.parent)}function ret(e,t,r,i){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!r&&kde(r)&&i===r.getStart(e)+1;case"#":return!!r&&Ki(r)&&!!id(r);case"<":return!!r&&r.kind===30&&(!ur(r.parent)||bLe(r.parent));case"/":return!!r&&(ss(r)?!!W2(r):r.kind===44&&J0(r.parent));case" ":return!!r&&lP(r)&&r.parent.kind===312;default:return R.assertNever(t)}}function bLe({left:e}){return Fl(e)}function iet(e,t,r){let i=r.resolveName("self",void 0,111551,!1);if(i&&r.getTypeOfSymbolAtLocation(i,t)===e)return!0;let o=r.resolveName("global",void 0,111551,!1);if(o&&r.getTypeOfSymbolAtLocation(o,t)===e)return!0;let s=r.resolveName("globalThis",void 0,111551,!1);return!!(s&&r.getTypeOfSymbolAtLocation(s,t)===e)}function oet(e){return!!(e.valueDeclaration&&cu(e.valueDeclaration)&256&&di(e.valueDeclaration.parent))}function aet(e,t){let r=t.getContextualType(e);if(r)return r;let i=My(e.parent);if(ur(i)&&i.operatorToken.kind===64&&e===i.left)return t.getTypeAtLocation(i);if(ht(i))return t.getContextualType(i)}function ELe(e,t){var r,i,o;let s,l=!1,d=p();return{isKeywordOnlyCompletion:l,keywordCompletion:s,isNewIdentifierLocation:!!(d||s===156),isTopLevelTypeOnly:!!((i=(r=ri(d,Mc))==null?void 0:r.importClause)!=null&&i.isTypeOnly)||!!((o=ri(d,Zc))!=null&&o.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!d&&TLe(d,e),replacementSpan:set(d)};function p(){let h=e.parent;if(Zc(h)){let m=h.getLastToken(t);if(Fe(e)&&m!==e){s=161,l=!0;return}return s=e.kind===156?void 0:156,Cme(h.moduleReference)?h:void 0}if(TLe(h,e)&&ALe(h.parent))return h;if(Fg(h)||Yv(h)){if(!h.parent.isTypeOnly&&(e.kind===19||e.kind===102||e.kind===28)&&(s=156),ALe(h))if(e.kind===20||e.kind===80)l=!0,s=161;else return h.parent.parent;return}if(Xl(h)&&e.kind===42||xf(h)&&e.kind===20){l=!0,s=161;return}if(lP(e)&&Yi(h))return s=156,e;if(lP(e)&&Mc(h))return s=156,Cme(h.moduleSpecifier)?h:void 0}}function set(e){var t;if(!e)return;let r=Fn(e,Um(Mc,Zc))??e,i=r.getSourceFile();if(IT(r,i))return xu(r,i);R.assert(r.kind!==102&&r.kind!==276);let o=r.kind===272?SLe((t=r.importClause)==null?void 0:t.namedBindings)??r.moduleSpecifier:r.moduleReference,s={pos:r.getFirstToken().getStart(),end:o.pos};if(IT(s,i))return tb(s)}function SLe(e){var t;return Vr((t=ri(e,Fg))==null?void 0:t.elements,r=>{var i;return!r.propertyName&&CI(r.name.text)&&((i=Tc(r.name.pos,e.getSourceFile(),e))==null?void 0:i.kind)!==28})}function TLe(e,t){return Qu(e)&&(e.isTypeOnly||t===e.name&&Jz(t))}function ALe(e){if(!Cme(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(Fg(e)){let t=SLe(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function Cme(e){var t;return Fl(e)?!0:!((t=ri(bh(e)?e.expression:e,ss))!=null&&t.text)}function cet(e,t){if(!e)return;let r=Fn(e,o=>R0(o)||ILe(o)||$o(o)?"quit":(To(o)||fl(o))&&!V0(o.parent)),i=Fn(t,o=>R0(o)||ILe(o)||$o(o)?"quit":Oi(o));return r||i}function ILe(e){return e.parent&&Fs(e.parent)&&(e.parent.body===e||e.kind===39)}function Nme(e,t,r=new Map){return i(e)||i(gd(e.exportSymbol||e,t));function i(o){return!!(o.flags&788968)||t.isUnknownSymbol(o)||!!(o.flags&1536)&&Em(r,ba(o))&&t.getExportsOfModule(o).some(s=>Nme(s,t,r))}}function det(e,t){let r=gd(e,t).declarations;return!!Nn(r)&&oo(r,f7)}function xLe(e,t){if(t.length===0)return!0;let r=!1,i,o=0,s=e.length;for(let l=0;l(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(Mme||{}),Lme=(e=>(e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.TypeOnlyAlias=64]="TypeOnlyAlias",e[e.ObjectLiteralMethod=128]="ObjectLiteralMethod",e[e.Ignore=256]="Ignore",e[e.ComputedPropertyName=512]="ComputedPropertyName",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport",e))(Lme||{}),kme=(e=>(e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None",e))(kme||{}),uB=[],wme=bu(()=>{let e=[];for(let t=83;t<=165;t++)e.push({name:ca(t),kind:"keyword",kindModifiers:"",sortText:Od.GlobalsOrKeywords});return e})}});function Ome(){let e=new Map;function t(r){let i=e.get(r.name);(!i||Gme[i.kind]({name:Zh(S.value,y),kindModifiers:"",kind:"string",sortText:Od.LocationPriority,replacementSpan:Oq(t)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:m,entries:E}}default:return R.assertNever(e)}}function het(e,t,r,i,o,s,l,d){if(!i||!ss(i))return;let p=CLe(t,i,r,o,s,d);return p&&get(e,i,p,t,o.getTypeChecker(),l)}function get(e,t,r,i,o,s){switch(r.kind){case 0:{let l=Vr(r.paths,d=>d.name===e);return l&&cB(e,DLe(l.extension),l.kind,[sf(e)])}case 1:{let l=Vr(r.symbols,d=>d.name===e);return l&&Rme(l,l.name,o,i,t,s)}case 2:return Vr(r.types,l=>l.value===e)?cB(e,"","string",[sf(e)]):void 0;default:return R.assertNever(r)}}function RLe(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:o,kind:s,span:l,extension:d})=>({name:o,kind:s,kindModifiers:DLe(d),sortText:Od.LocationPriority,replacementSpan:l}))}}function DLe(e){switch(e){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return R.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return R.assertNever(e)}}function CLe(e,t,r,i,o,s){let l=i.getTypeChecker(),d=Wme(t.parent);switch(d.kind){case 201:{let S=Wme(d.parent);return S.kind===205?{kind:0,paths:MLe(e,t,i,o,s)}:p(S)}case 303:return La(d.parent)&&d.name===t?bet(l,d.parent):h()||h(0);case 212:{let{expression:S,argumentExpression:A}=d;return t===ms(A)?NLe(l.getTypeAtLocation(S)):void 0}case 213:case 214:case 291:if(!wet(t)&&!Op(d)){let S=KO.getArgumentInfoForCompletions(d.kind===291?d.parent:t,r,e,l);return S&&vet(S.invocation,t,S,l)||h(0)}case 272:case 278:case 283:return{kind:0,paths:MLe(e,t,i,o,s)};case 296:let m=h7(l,d.parent.clauses),y=h();return y?{kind:2,types:y.types.filter(S=>!m.hasValue(S.value)),isNewIdentifier:!1}:void 0;default:return h()||h(0)}function p(m){switch(m.kind){case 233:case 183:{let S=Fn(d,A=>A.parent===m);return S?{kind:2,types:dQ(l.getTypeArgumentConstraint(S)),isNewIdentifier:!1}:void 0}case 199:let{indexType:y,objectType:E}=m;return qw(y,r)?NLe(l.getTypeFromTypeNode(E)):void 0;case 192:{let S=p(Wme(m.parent));if(!S)return;let A=yet(m,d);return S.kind===1?{kind:1,symbols:S.symbols.filter(N=>!zo(A,N.name)),hasIndexSignature:S.hasIndexSignature}:{kind:2,types:S.types.filter(N=>!zo(A,N.value)),isNewIdentifier:!1}}default:return}}function h(m=4){let y=dQ(r7(t,l,m));if(y.length)return{kind:2,types:y,isNewIdentifier:!1}}}function Wme(e){switch(e.kind){case 196:return V2(e);case 217:return My(e);default:return e}}function yet(e,t){return to(e.types,r=>r!==t&&Jv(r)&&Ca(r.literal)?r.literal.text:void 0)}function vet(e,t,r,i){let o=!1,s=new Map,l=su(e)?R.checkDefined(Fn(t.parent,M_)):t,d=i.getCandidateSignaturesForStringLiteralCompletions(e,l),p=va(d,h=>{if(!Jd(h)&&r.argumentCount>h.parameters.length)return;let m=h.getTypeParameterAtPosition(r.argumentIndex);if(su(e)){let y=i.getTypeOfPropertyOfType(m,mk(l.name));y&&(m=y)}return o=o||!!(m.flags&4),dQ(m,s)});return Nn(p)?{kind:2,types:p,isNewIdentifier:o}:void 0}function NLe(e){return e&&{kind:1,symbols:jr(e.getApparentProperties(),t=>!(t.valueDeclaration&&au(t.valueDeclaration))),hasIndexSignature:iX(e)}}function bet(e,t){let r=e.getContextualType(t);if(!r)return;let i=e.getContextualType(t,4);return{kind:1,symbols:aQ(r,i,t,e),hasIndexSignature:iX(r)}}function dQ(e,t=new Map){return e?(e=Bq(e),e.isUnion()?va(e.types,r=>dQ(r,t)):e.isStringLiteral()&&!(e.flags&1024)&&Em(t,e.value)?[e]:Xe):Xe}function fM(e,t,r){return{name:e,kind:t,extension:r}}function Fme(e){return fM(e,"directory",void 0)}function PLe(e,t,r){let i=Let(e,t),o=e.length===0?void 0:_d(t,e.length);return r.map(({name:s,kind:l,extension:d})=>s.includes(nl)||s.includes(zL)?{name:s,kind:l,extension:d,span:o}:{name:s,kind:l,extension:d,span:i})}function MLe(e,t,r,i,o){return PLe(t.text,t.getStart(e)+1,Eet(e,t,r,i,o))}function Eet(e,t,r,i,o){let s=Nd(t.text),l=ss(t)?r.getModeForUsageLocation(e,t):void 0,d=e.path,p=oi(d),h=r.getCompilerOptions(),m=r.getTypeChecker(),y=zme(h,1,e,m,o,l);return ket(s)||!h.baseUrl&&!h.paths&&(cp(s)||Mne(s))?Tet(s,p,h,i,d,y):Ret(s,p,l,h,i,y,m)}function zme(e,t,r,i,o,s){return{extensionsToSearch:pm(Aet(e,i)),referenceKind:t,importingSourceFile:r,endingPreference:o?.importModuleSpecifierEnding,resolutionMode:s}}function Tet(e,t,r,i,o,s){return r.rootDirs?xet(r.rootDirs,e,t,s,r,i,o):Oo(GO(e,t,s,i,!0,o).values())}function Aet(e,t){let r=t?to(t.getAmbientModules(),s=>{let l=s.name.slice(1,-1);if(!(!l.startsWith("*.")||l.includes("/")))return l.slice(1)}):[],i=[...GN(e),r],o=uu(e);return qz(o)?sk(e,i):i}function Iet(e,t,r,i){e=e.map(s=>Fc(fa(cp(s)?s:$r(t,s))));let o=Wl(e,s=>mm(s,r,t,i)?r.substr(s.length):void 0);return _0([...e.map(s=>$r(s,o)),r].map(s=>Yb(s)),eT,Gd)}function xet(e,t,r,i,o,s,l){let d=o.project||s.getCurrentDirectory(),p=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()),h=Iet(e,d,r,p);return _0(va(h,m=>Oo(GO(t,m,i,s,!0,l).values())),(m,y)=>m.name===y.name&&m.kind===y.kind&&m.extension===y.extension)}function GO(e,t,r,i,o,s,l=Ome()){var d;e===void 0&&(e=""),e=Nd(e),xy(e)||(e=oi(e)),e===""&&(e="."+nl),e=Fc(e);let p=Iv(t,e),h=xy(p)?p:oi(p);if(!o){let S=Ode(h,i);if(S){let N=kN(S,i).typesVersions;if(typeof N=="object"){let D=(d=g3(N))==null?void 0:d.paths;if(D){let w=oi(S),j=p.slice(Fc(w).length);if(kLe(l,j,w,r,i,D))return l}}}}let m=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!l7(i,h))return l;let y=aX(i,h,r.extensionsToSearch,void 0,["./*"]);if(y)for(let S of y){if(S=fa(S),s&&xg(S,s,t,m)===0)continue;let{name:A,extension:N}=LLe(nc(S),i.getCompilationSettings(),r,!1);l.add(fM(A,"script",N))}let E=s7(i,h);if(E)for(let S of E){let A=nc(fa(S));A!=="@types"&&l.add(Fme(A))}return l}function LLe(e,t,r,i){let o=tS.tryGetRealFileNameForNonJsDeclarationFileName(e);if(o)return{name:o,extension:Og(o)};if(r.referenceKind===0)return{name:e,extension:Og(e)};let s=yw({importModuleSpecifierEnding:r.endingPreference},t,r.importingSourceFile).getAllowedEndingsInPreferredOrder(r.resolutionMode);if(i&&(s=s.filter(d=>d!==0&&d!==1)),s[0]===3){if(bc(e,vk))return{name:e,extension:Og(e)};let d=tS.tryGetJSExtensionForFile(e,t);return d?{name:fE(e,d),extension:d}:{name:e,extension:Og(e)}}if(!i&&(s[0]===0||s[0]===1)&&bc(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:Su(e),extension:Og(e)};let l=tS.tryGetJSExtensionForFile(e,t);return l?{name:fE(e,l),extension:l}:{name:e,extension:Og(e)}}function kLe(e,t,r,i,o,s){let l=p=>s[p],d=(p,h)=>{let m=yR(p),y=yR(h),E=typeof m=="object"?m.prefix.length:p.length,S=typeof y=="object"?y.prefix.length:h.length;return Zs(S,E)};return wLe(e,!1,t,r,i,o,jh(s),l,d)}function wLe(e,t,r,i,o,s,l,d,p){let h=[],m;for(let y of l){if(y===".")continue;let E=y.replace(/^\.\//,""),S=d(y);if(S){let A=yR(E);if(!A)continue;let N=typeof A=="object"&&bW(A,r);N&&(m===void 0||p(y,m)===-1)&&(m=y,h=h.filter(w=>!w.matchedPattern)),(typeof A=="string"||m===void 0||p(y,m)!==1)&&h.push({matchedPattern:N,results:Det(E,S,r,i,o,t&&N,s).map(({name:w,kind:j,extension:K})=>fM(w,j,K))})}}return h.forEach(y=>y.results.forEach(E=>e.add(E))),m!==void 0}function Ret(e,t,r,i,o,s,l){let{baseUrl:d,paths:p}=i,h=Ome(),m=uu(i);if(d){let E=fa($r(o.getCurrentDirectory(),d));GO(e,E,s,o,!1,void 0,h)}if(p){let E=s6(i,o);kLe(h,e,E,s,o,p)}let y=WLe(e);for(let E of Net(e,y,l))h.add(fM(E,"external module name",void 0));if(BLe(o,i,t,y,s,h),qz(m)){let E=!1;if(y===void 0)for(let S of Met(o,t)){let A=fM(S,"external module name",void 0);h.has(A.name)||(E=!0,h.add(A))}if(!E){let S=A=>{let N=$r(A,"node_modules");l7(o,N)&&GO(e,N,s,o,!1,void 0,h)};if(y&&X6(i)){let A=S;S=N=>{let D=Wc(e);D.shift();let w=D.shift();if(!w)return A(N);if(ao(w,"@")){let Y=D.shift();if(!Y)return A(N);w=$r(w,Y)}let j=$r(N,"node_modules",w),K=$r(j,"package.json");if(uO(o,K)){let B=kN(K,o).exports;if(B){if(typeof B!="object"||B===null)return;let ce=jh(B),z=D.join("/")+(D.length&&xy(e)?"/":""),ee=Qv(i,r);wLe(h,!0,z,j,s,o,ce,me=>pI(OLe(B[me],ee)),dK);return}}return A(N)}}hm(t,S)}}return Oo(h.values())}function OLe(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!So(e)){for(let r in e)if(r==="default"||t.includes(r)||hw(t,r)){let i=e[r];return OLe(i,t)}}}function WLe(e){return Bme(e)?xy(e)?e:oi(e):void 0}function Det(e,t,r,i,o,s,l){if(!El(e,"*"))return e.includes("*")?Xe:h(e,"script");let d=e.slice(0,e.length-1),p=JG(r,d);if(p===void 0)return e[e.length-2]==="/"?h(d,"directory"):va(t,y=>{var E;return(E=FLe("",i,y,o,s,l))==null?void 0:E.map(({name:S,...A})=>({name:d+S,...A}))});return va(t,m=>FLe(p,i,m,o,s,l));function h(m,y){return ao(m,r)?[{name:Yb(m),kind:y,extension:void 0}]:Xe}}function FLe(e,t,r,i,o,s){if(!s.readDirectory)return;let l=yR(r);if(l===void 0||Co(l))return;let d=Iv(l.prefix),p=xy(l.prefix)?d:oi(d),h=xy(l.prefix)?"":nc(d),m=Bme(e),y=m?xy(e)?e:oi(e):void 0,E=m?$r(p,h+y):p,S=fa(l.suffix),A=S&&a6("_"+S),N=A?[fE(S,A),S]:[S],D=fa($r(t,E)),w=m?D:Fc(D)+h,j=S?N.map(ce=>"**/*"+ce):["./*"],K=to(aX(s,D,i.extensionsToSearch,void 0,j),ce=>{let z=B(ce);if(z){if(Bme(z))return Fme(Wc(zLe(z))[1]);let{name:ee,extension:me}=LLe(z,s.getCompilationSettings(),i,o);return fM(ee,"script",me)}}),Y=S?Xe:to(s7(s,D),ce=>ce==="node_modules"?void 0:Fme(ce));return[...K,...Y];function B(ce){return Wl(N,z=>{let ee=Cet(fa(ce),w,z);return ee===void 0?void 0:zLe(ee)})}}function Cet(e,t,r){return ao(e,t)&&El(e,r)?e.slice(t.length,e.length-r.length):void 0}function zLe(e){return e[0]===nl?e.slice(1):e}function Net(e,t,r){let o=r.getAmbientModules().map(s=>Yf(s.name)).filter(s=>ao(s,e)&&!s.includes("*"));if(t!==void 0){let s=Fc(t);return o.map(l=>jC(l,s))}return o}function Pet(e,t,r,i){let o=so(e,t),s=Uh(e.text,o.pos),l=s&&Vr(s,A=>t>=A.pos&&t<=A.end);if(!l)return;let d=e.text.slice(l.pos,t),p=GLe.exec(d);if(!p)return;let[,h,m,y]=p,E=oi(e.path),S=m==="path"?GO(y,E,zme(r,0,e),i,!0,e.path):m==="types"?BLe(i,r,E,WLe(y),zme(r,1,e)):R.fail();return PLe(y,l.pos+h.length,Oo(S.values()))}function BLe(e,t,r,i,o,s=Ome()){let l=new Map,d=c7(()=>RP(t,e))||Xe;for(let h of d)p(h);for(let h of sX(r,e)){let m=$r(oi(h),"node_modules/@types");p(m)}return s;function p(h){if(l7(e,h))for(let m of s7(e,h)){let y=gw(m);if(!(t.types&&!zo(t.types,y)))if(i===void 0)l.has(y)||(s.add(fM(y,"external module name",void 0)),l.set(y,!0));else{let E=$r(h,m),S=aU(i,y,Ly(e));S!==void 0&&GO(S,E,o,e,!1,void 0,s)}}}}function Met(e,t){if(!e.readFile||!e.fileExists)return Xe;let r=[];for(let i of sX(t,e)){let o=kN(i,e);for(let s of VLe){let l=o[s];if(l)for(let d in l)Ts(l,d)&&!ao(d,"@types/")&&r.push(d)}}return r}function Let(e,t){let r=Math.max(e.lastIndexOf(nl),e.lastIndexOf(zL)),i=r!==-1?r+1:0,o=e.length-i;return o===0||$p(e.substr(i,o),99)?void 0:_d(t+i,o)}function ket(e){if(e&&e.length>=2&&e.charCodeAt(0)===46){let t=e.length>=3&&e.charCodeAt(1)===46?2:1,r=e.charCodeAt(t);return r===47||r===92}return!1}function Bme(e){return e.includes(nl)}function wet(e){return ra(e.parent)&&Jc(e.parent.arguments)===e&&Fe(e.parent.expression)&&e.parent.expression.escapedText==="require"}var Gme,GLe,VLe,Oet=bt({"src/services/stringCompletions.ts"(){"use strict";jse(),ai(),Vme(),Gme={directory:0,script:1,"external module name":2},GLe=/^(\/\/\/\s*het,getStringLiteralCompletions:()=>met});var Wet=bt({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){"use strict";Oet()}}),C1={};Ra(C1,{CompletionKind:()=>kme,CompletionSource:()=>Mme,SortText:()=>Od,StringCompletions:()=>uQ,SymbolOriginInfoKind:()=>Lme,createCompletionDetails:()=>cB,createCompletionDetailsForSymbol:()=>Rme,getCompletionEntriesFromSymbols:()=>Ime,getCompletionEntryDetails:()=>UZe,getCompletionEntrySymbol:()=>KZe,getCompletionsAtPosition:()=>SZe,getPropertiesForObjectExpression:()=>aQ,moduleSpecifierResolutionCacheAttemptLimit:()=>Pme,moduleSpecifierResolutionLimit:()=>cQ});var Vme=bt({"src/services/_namespaces/ts.Completions.ts"(){"use strict";fet(),Wet()}});function jme(e,t,r,i){let o=Get(e,r,i);return(s,l,d)=>{let{directImports:p,indirectUsers:h}=Fet(e,t,o,l,r,i);return{indirectUsers:h,...zet(p,s,l.exportKind,r,d)}}}function Fet(e,t,r,{exportingModuleSymbol:i,exportKind:o},s,l){let d=v1(),p=v1(),h=[],m=!!i.globalExports,y=m?void 0:[];return S(i),{directImports:h,indirectUsers:E()};function E(){if(m)return e;if(i.declarations)for(let K of i.declarations)A0(K)&&t.has(K.getSourceFile().fileName)&&w(K);return y.map(Gn)}function S(K){let Y=j(K);if(Y){for(let B of Y)if(d(B))switch(l&&l.throwIfCancellationRequested(),B.kind){case 213:if(Op(B)){A(B);break}if(!m){let z=B.parent;if(o===2&&z.kind===260){let{name:ee}=z;if(ee.kind===80){h.push(ee);break}}}break;case 80:break;case 271:D(B,B.name,Qr(B,32),!1);break;case 272:h.push(B);let ce=B.importClause&&B.importClause.namedBindings;ce&&ce.kind===274?D(B,ce.name,!1,!0):!m&&II(B)&&w(pB(B));break;case 278:B.exportClause?B.exportClause.kind===280?w(pB(B),!0):h.push(B):S(Ket(B,s));break;case 205:!m&&B.isTypeOf&&!B.qualifier&&N(B)&&w(B.getSourceFile(),!0),h.push(B);break;default:R.failBadSyntaxKind(B,"Unexpected import kind.")}}}function A(K){let Y=Fn(K,pQ)||K.getSourceFile();w(Y,!!N(K,!0))}function N(K,Y=!1){return Fn(K,B=>Y&&pQ(B)?"quit":Am(B)&>(B.modifiers,JI))}function D(K,Y,B,ce){if(o===2)ce||h.push(K);else if(!m){let z=pB(K);R.assert(z.kind===312||z.kind===267),B||Bet(z,Y,s)?w(z,!0):w(z)}}function w(K,Y=!1){if(R.assert(!m),!p(K)||(y.push(K),!Y))return;let ce=s.getMergedSymbol(K.symbol);if(!ce)return;R.assert(!!(ce.flags&1536));let z=j(ce);if(z)for(let ee of z)ig(ee)||w(pB(ee),!0)}function j(K){return r.get(ba(K).toString())}}function zet(e,t,r,i,o){let s=[],l=[];function d(E,S){s.push([E,S])}if(e)for(let E of e)p(E);return{importSearches:s,singleReferences:l};function p(E){if(E.kind===271){Hme(E)&&h(E.name);return}if(E.kind===80){h(E);return}if(E.kind===205){if(E.qualifier){let N=Fp(E.qualifier);N.escapedText===yl(t)&&l.push(N)}else r===2&&l.push(E.argument.literal);return}if(E.moduleSpecifier.kind!==11)return;if(E.kind===278){E.exportClause&&xf(E.exportClause)&&m(E.exportClause);return}let{name:S,namedBindings:A}=E.importClause||{name:void 0,namedBindings:void 0};if(A)switch(A.kind){case 274:h(A.name);break;case 275:(r===0||r===1)&&m(A);break;default:R.assertNever(A)}if(S&&(r===1||r===2)&&(!o||S.escapedText===Yz(t))){let N=i.getSymbolAtLocation(S);d(S,N)}}function h(E){r===2&&(!o||y(E.escapedText))&&d(E,i.getSymbolAtLocation(E))}function m(E){if(E)for(let S of E.elements){let{name:A,propertyName:N}=S;if(y((N||A).escapedText))if(N)l.push(N),(!o||A.escapedText===t.escapedName)&&d(A,i.getSymbolAtLocation(A));else{let D=S.kind===281&&S.propertyName?i.getExportSpecifierLocalTargetSymbol(S):i.getSymbolAtLocation(A);d(A,D)}}}function y(E){return E===t.escapedName||r!==0&&E==="default"}}function Bet(e,t,r){let i=r.getSymbolAtLocation(t);return!!ULe(e,o=>{if(!Xl(o))return;let{exportClause:s,moduleSpecifier:l}=o;return!l&&s&&xf(s)&&s.elements.some(d=>r.getExportSpecifierLocalTargetSymbol(d)===i)})}function jLe(e,t,r){var i;let o=[],s=e.getTypeChecker();for(let l of t){let d=r.valueDeclaration;if(d?.kind===312){for(let p of l.referencedFiles)e.getSourceFileFromReference(l,p)===d&&o.push({kind:"reference",referencingFile:l,ref:p});for(let p of l.typeReferenceDirectives){let h=(i=e.getResolvedTypeReferenceDirectives().get(p.fileName,p.resolutionMode||l.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective;h!==void 0&&h.resolvedFileName===d.fileName&&o.push({kind:"reference",referencingFile:l,ref:p})}}HLe(l,(p,h)=>{s.getSymbolAtLocation(h)===r&&o.push(Js(p)?{kind:"implicit",literal:h,referencingFile:l}:{kind:"import",literal:h})})}return o}function Get(e,t,r){let i=new Map;for(let o of e)r&&r.throwIfCancellationRequested(),HLe(o,(s,l)=>{let d=t.getSymbolAtLocation(l);if(d){let p=ba(d).toString(),h=i.get(p);h||i.set(p,h=[]),h.push(s)}});return i}function ULe(e,t){return gn(e.kind===312?e.statements:e.body.statements,r=>t(r)||pQ(r)&&gn(r.body&&r.body.statements,t))}function HLe(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(let r of e.imports)t(vN(r),r);else ULe(e,r=>{switch(r.kind){case 278:case 272:{let i=r;i.moduleSpecifier&&Ca(i.moduleSpecifier)&&t(i,i.moduleSpecifier);break}case 271:{let i=r;Hme(i)&&t(i,i.moduleReference.expression);break}}})}function KLe(e,t,r,i){return i?o():o()||s();function o(){var p;let{parent:h}=e,m=h.parent;if(t.exportSymbol)return h.kind===211?(p=t.declarations)!=null&&p.some(S=>S===h)&&ur(m)?E(m,!1):void 0:l(t.exportSymbol,d(h));{let S=jet(h,e);if(S&&Qr(S,32))return Zc(S)&&S.moduleReference===e?i?void 0:{kind:0,symbol:r.getSymbolAtLocation(S.name)}:l(t,d(S));if(vh(h))return l(t,0);if(Ll(h))return y(h);if(Ll(m))return y(m);if(ur(h))return E(h,!0);if(ur(m))return E(m,!0);if(zT(h)||lH(h))return l(t,0)}function y(S){if(!S.symbol.parent)return;let A=S.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:S.symbol.parent,exportKind:A}}}function E(S,A){let N;switch(zl(S)){case 1:N=0;break;case 2:N=2;break;default:return}let D=A?r.getSymbolAtLocation(tU(ta(S.left,Ps))):t;return D&&l(D,N)}}function s(){if(!Uet(e))return;let h=r.getImmediateAliasedSymbol(t);if(!h||(h=Het(h,r),h.escapedName==="export="&&(h=Vet(h,r),h===void 0)))return;let m=Yz(h);if(m===void 0||m==="default"||m===t.escapedName)return{kind:0,symbol:h}}function l(p,h){let m=Ume(p,h,r);return m&&{kind:1,symbol:p,exportInfo:m}}function d(p){return Qr(p,2048)?1:0}}function Vet(e,t){var r,i;if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);let o=R.checkDefined(e.valueDeclaration);if(Ll(o))return(r=ri(o.expression,b_))==null?void 0:r.symbol;if(ur(o))return(i=ri(o.right,b_))==null?void 0:i.symbol;if(Yi(o))return o.symbol}function jet(e,t){let r=Oi(e)?e:Xa(e)?Mx(e):void 0;return r?e.name!==t||Y0(r.parent)?void 0:Ml(r.parent.parent)?r.parent.parent:void 0:e}function Uet(e){let{parent:t}=e;switch(t.kind){case 271:return t.name===e&&Hme(t);case 276:return!t.propertyName;case 273:case 274:return R.assert(t.name===e),!0;case 208:return ir(e)&&D0(t.parent.parent);default:return!1}}function Ume(e,t,r){let i=e.parent;if(!i)return;let o=r.getMergedSymbol(i);return tO(o)?{exportingModuleSymbol:o,exportKind:t}:void 0}function Het(e,t){if(e.declarations)for(let r of e.declarations){if(Hd(r)&&!r.propertyName&&!r.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(r)||e;if(wr(r)&&$h(r.expression)&&!Ki(r.name))return t.getSymbolAtLocation(r);if(Zu(r)&&ur(r.parent.parent)&&zl(r.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(r.name)}return e}function Ket(e,t){return t.getMergedSymbol(pB(e).symbol)}function pB(e){if(e.kind===213)return e.getSourceFile();let{parent:t}=e;return t.kind===312?t:(R.assert(t.kind===268),ta(t.parent,pQ))}function pQ(e){return e.kind===267&&e.name.kind===11}function Hme(e){return e.moduleReference.kind===283&&e.moduleReference.expression.kind===11}var Kme,Jme,Jet=bt({"src/services/importTracker.ts"(){"use strict";ai(),Kme=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(Kme||{}),Jme=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(Jme||{})}});function lg(e,t=1){return{kind:t,node:e.name||e,context:qet(e)}}function qme(e){return e&&e.kind===void 0}function qet(e){if(Ud(e))return eA(e);if(e.parent){if(!Ud(e.parent)&&!Ll(e.parent)){if(ir(e)){let r=ur(e.parent)?e.parent:Ps(e.parent)&&ur(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(r&&zl(r)!==0)return eA(r)}if(P_(e.parent)||J0(e.parent))return e.parent.parent;if(OT(e.parent)||K0(e.parent)||rN(e.parent))return e.parent;if(ss(e)){let r=W2(e);if(r){let i=Fn(r,o=>Ud(o)||Hi(o)||zx(o));return Ud(i)?eA(i):i}}let t=Fn(e,Ya);return t?eA(t.parent):void 0}if(e.parent.name===e||Pl(e.parent)||Ll(e.parent)||(yI(e.parent)||Xa(e.parent))&&e.parent.propertyName===e||e.kind===90&&Qr(e.parent,2080))return eA(e.parent)}}function eA(e){if(e)switch(e.kind){case 260:return!Vc(e.parent)||e.parent.declarations.length!==1?e:Ml(e.parent.parent)?e.parent.parent:Wx(e.parent.parent)?eA(e.parent.parent):e.parent;case 208:return eA(e.parent.parent);case 276:return e.parent.parent.parent;case 281:case 274:return e.parent.parent;case 273:case 280:return e.parent;case 226:return Qc(e.parent)?e.parent:e;case 250:case 249:return{start:e.initializer,end:e.expression};case 303:case 304:return Hy(e.parent)?eA(Fn(e.parent,t=>ur(t)||Wx(t))):e;case 255:return{start:Vr(e.getChildren(e.getSourceFile()),t=>t.kind===109),end:e.caseBlock};default:return e}}function Xme(e,t,r){if(!r)return;let i=qme(r)?mB(r.start,t,r.end):mB(r,t);return i.start!==e.start||i.length!==e.length?{contextSpan:i}:void 0}function Xet(e,t,r,i,o){let s=Fu(i,o),l={use:1},d=N1.getReferencedSymbolsForNode(o,s,e,r,t,l),p=e.getTypeChecker(),h=N1.getAdjustedNode(s,l),m=Yet(h)?p.getSymbolAtLocation(h):void 0;return!d||!d.length?void 0:to(d,({definition:y,references:E})=>y&&{definition:p.runWithCancellationToken(t,S=>Zet(y,S,s)),references:E.map(S=>ttt(S,m))})}function Yet(e){return e.kind===90||!!bN(e)||U2(e)||e.kind===137&&Pl(e.parent)}function $et(e,t,r,i,o){let s=Fu(i,o),l,d=JLe(e,t,r,s,o);if(s.parent.kind===211||s.parent.kind===208||s.parent.kind===212||s.kind===108)l=d&&[...d];else if(d){let h=IL(d),m=new Map;for(;!h.isEmpty();){let y=h.dequeue();if(!Em(m,is(y.node)))continue;l=Tn(l,y);let E=JLe(e,t,r,y.node,y.node.pos);E&&h.enqueue(...E)}}let p=e.getTypeChecker();return mn(l,h=>rtt(h,p))}function JLe(e,t,r,i,o){if(i.kind===312)return;let s=e.getTypeChecker();if(i.parent.kind===304){let l=[];return N1.getReferenceEntriesForShorthandPropertyAssignment(i,s,d=>l.push(lg(d))),l}else if(i.kind===108||wu(i.parent)){let l=s.getSymbolAtLocation(i);return l.valueDeclaration&&[lg(l.valueDeclaration)]}else return qLe(o,i,e,r,t,{implementations:!0,use:1})}function Qet(e,t,r,i,o,s,l){return mn(XLe(N1.getReferencedSymbolsForNode(o,i,e,r,t,s)),d=>l(d,i,e.getTypeChecker()))}function qLe(e,t,r,i,o,s={},l=new Set(i.map(d=>d.fileName))){return XLe(N1.getReferencedSymbolsForNode(e,t,r,i,o,s,l))}function XLe(e){return e&&va(e,t=>t.references)}function Zet(e,t,r){let i=(()=>{switch(e.type){case 0:{let{symbol:m}=e,{displayParts:y,kind:E}=YLe(m,t,r),S=y.map(D=>D.text).join(""),A=m.declarations&&Jc(m.declarations),N=A?No(A)||A:r;return{...fB(N),name:S,kind:E,displayParts:y,context:eA(A)}}case 1:{let{node:m}=e;return{...fB(m),name:m.text,kind:"label",displayParts:[ep(m.text,17)]}}case 2:{let{node:m}=e,y=ca(m.kind);return{...fB(m),name:y,kind:"keyword",displayParts:[{text:y,kind:"keyword"}]}}case 3:{let{node:m}=e,y=t.getSymbolAtLocation(m),E=y&&Yy.getSymbolDisplayPartsDocumentationAndSymbolKind(t,y,m.getSourceFile(),XT(m),m).displayParts||[sf("this")];return{...fB(m),name:"this",kind:"var",displayParts:E}}case 4:{let{node:m}=e;return{...fB(m),name:m.text,kind:"var",displayParts:[ep(uc(m),8)]}}case 5:return{textSpan:tb(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[ep(`"${e.reference.fileName}"`,8)]};default:return R.assertNever(e)}})(),{sourceFile:o,textSpan:s,name:l,kind:d,displayParts:p,context:h}=i;return{containerKind:"",containerName:"",fileName:o.fileName,kind:d,name:l,textSpan:s,displayParts:p,...Xme(s,o,h)}}function fB(e){let t=e.getSourceFile();return{sourceFile:t,textSpan:mB(Ya(e)?e.expression:e,t)}}function YLe(e,t,r){let i=N1.getIntersectingMeaningFromDeclarations(r,e),o=e.declarations&&Jc(e.declarations)||r,{displayParts:s,symbolKind:l}=Yy.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,o.getSourceFile(),o,o,i);return{displayParts:s,kind:l}}function ett(e,t,r,i,o){return{...fQ(e),...i&&ntt(e,t,r,o)}}function ttt(e,t){let r=$Le(e);return t?{...r,isDefinition:e.kind!==0&&QLe(e.node,t)}:r}function $Le(e){let t=fQ(e);if(e.kind===0)return{...t,isWriteAccess:!1};let{kind:r,node:i}=e;return{...t,isWriteAccess:$me(i),isInString:r===2?!0:void 0}}function fQ(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{let t=e.node.getSourceFile(),r=mB(e.node,t);return{textSpan:r,fileName:t.fileName,...Xme(r,t,e.context)}}}function ntt(e,t,r,i){if(e.kind!==0&&Fe(t)){let{node:o,kind:s}=e,l=o.parent,d=t.text,p=Zu(l);if(p||iO(l)&&l.name===o&&l.dotDotDotToken===void 0){let h={prefixText:d+": "},m={suffixText:": "+d};if(s===3)return h;if(s===4)return m;if(p){let y=l.parent;return La(y)&&ur(y.parent)&&$h(y.parent.left)?h:m}else return h}else if(Qu(l)&&!l.propertyName){let h=Hd(t.parent)?r.getExportSpecifierLocalTargetSymbol(t.parent):r.getSymbolAtLocation(t);return zo(h.declarations,l)?{prefixText:d+" as "}:Cf}else if(Hd(l)&&!l.propertyName)return t===e.node||r.getSymbolAtLocation(t)===r.getSymbolAtLocation(e.node)?{prefixText:d+" as "}:{suffixText:" as "+d}}if(e.kind!==0&&mp(e.node)&&Ps(e.node.parent)){let o=Uq(i);return{prefixText:o,suffixText:o}}return Cf}function rtt(e,t){let r=fQ(e);if(e.kind!==0){let{node:i}=e;return{...r,...itt(i,t)}}else return{...r,kind:"",displayParts:[]}}function itt(e,t){let r=t.getSymbolAtLocation(Ud(e)&&e.name?e.name:e);return r?YLe(r,t,e):e.kind===210?{kind:"interface",displayParts:[qd(21),sf("object literal"),qd(22)]}:e.kind===231?{kind:"local class",displayParts:[qd(21),sf("anonymous local class"),qd(22)]}:{kind:aS(e),displayParts:[]}}function ott(e){let t=fQ(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};let r=$me(e.node),i={textSpan:t.textSpan,kind:r?"writtenReference":"reference",isInString:e.kind===2?!0:void 0,...t.contextSpan&&{contextSpan:t.contextSpan}};return{fileName:t.fileName,span:i}}function mB(e,t,r){let i=e.getStart(t),o=(r||e).getEnd();return ss(e)&&o-i>2&&(R.assert(r===void 0),i+=1,o-=1),r?.kind===269&&(o=r.getFullStart()),dc(i,o)}function Yme(e){return e.kind===0?e.textSpan:mB(e.node,e.node.getSourceFile())}function $me(e){let t=bN(e);return!!t&&att(t)||e.kind===90||LI(e)}function QLe(e,t){var r;if(!t)return!1;let i=bN(e)||(e.kind===90?e.parent:U2(e)||e.kind===137&&Pl(e.parent)?e.parent.parent:void 0),o=i&&ur(i)?i.left:void 0;return!!(i&&((r=t.declarations)!=null&&r.some(s=>s===i||s===o)))}function att(e){if(e.flags&33554432)return!0;switch(e.kind){case 226:case 208:case 263:case 231:case 90:case 266:case 306:case 281:case 273:case 271:case 276:case 264:case 345:case 353:case 291:case 267:case 270:case 274:case 280:case 169:case 304:case 265:case 168:return!0;case 303:return!Hy(e.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!e.body;case 260:case 172:return!!e.initializer||Y0(e.parent);case 173:case 171:case 355:case 348:return!1;default:return R.failBadSyntaxKind(e)}}var Qme,Zme,e_e,N1,stt=bt({"src/services/findAllReferences.ts"(){"use strict";ai(),t_e(),Qme=(e=>(e[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String",e[e.TripleSlashReference=5]="TripleSlashReference",e))(Qme||{}),Zme=(e=>(e[e.Span=0]="Span",e[e.Node=1]="Node",e[e.StringLiteral=2]="StringLiteral",e[e.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",e[e.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",e))(Zme||{}),e_e=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(e_e||{}),(e=>{function t(Be,ct,lt,Dt,se,ke={},st=new Set(Dt.map(G=>G.fileName))){var G,et;if(ct=r(ct,ke),Yi(ct)){let un=ID.getReferenceAtPosition(ct,Be,lt);if(!un?.file)return;let U=lt.getTypeChecker().getMergedSymbol(un.file.symbol);if(U)return h(lt,U,!1,Dt,st);let Me=lt.getFileIncludeReasons();return Me?[{definition:{type:5,reference:un.reference,file:ct},references:o(un.file,Me,lt)||Xe}]:void 0}if(!ke.implementations){let un=y(ct,Dt,se);if(un)return un}let Tt=lt.getTypeChecker(),He=Tt.getSymbolAtLocation(Pl(ct)&&ct.parent.name||ct);if(!He){if(!ke.implementations&&ss(ct)){if($z(ct)){let un=lt.getFileIncludeReasons(),U=(et=(G=lt.getResolvedModuleFromModuleSpecifier(ct))==null?void 0:G.resolvedModule)==null?void 0:et.resolvedFileName,Me=U?lt.getSourceFile(U):void 0;if(Me)return[{definition:{type:4,node:ct},references:o(Me,un,lt)||Xe}]}return Ur(ct,Dt,Tt,se)}return}if(He.escapedName==="export=")return h(lt,He.parent,!1,Dt,st);let pt=l(He,lt,Dt,se,ke,st);if(pt&&!(He.flags&33554432))return pt;let Ft=s(ct,He,Tt),hn=Ft&&l(Ft,lt,Dt,se,ke,st),dn=E(He,ct,Dt,st,Tt,se,ke);return d(lt,pt,dn,hn)}e.getReferencedSymbolsForNode=t;function r(Be,ct){return ct.use===1?Be=Cq(Be):ct.use===2&&(Be=zz(Be)),Be}e.getAdjustedNode=r;function i(Be,ct,lt,Dt=new Set(lt.map(se=>se.fileName))){var se,ke;let st=(se=ct.getSourceFile(Be))==null?void 0:se.symbol;if(st)return((ke=h(ct,st,!1,lt,Dt)[0])==null?void 0:ke.references)||Xe;let G=ct.getFileIncludeReasons(),et=ct.getSourceFile(Be);return et&&G&&o(et,G,ct)||Xe}e.getReferencesForFileName=i;function o(Be,ct,lt){let Dt,se=ct.get(Be.path)||Xe;for(let ke of se)if(xE(ke)){let st=lt.getSourceFileByPath(ke.file),G=jP(lt,ke);QR(G)&&(Dt=Tn(Dt,{kind:0,fileName:st.fileName,textSpan:tb(G)}))}return Dt}function s(Be,ct,lt){if(Be.parent&&zk(Be.parent)){let Dt=lt.getAliasedSymbol(ct),se=lt.getMergedSymbol(Dt);if(Dt!==se)return se}}function l(Be,ct,lt,Dt,se,ke){let st=Be.flags&1536&&Be.declarations&&Vr(Be.declarations,Yi);if(!st)return;let G=Be.exports.get("export="),et=h(ct,Be,!!G,lt,ke);if(!G||!ke.has(st.fileName))return et;let Tt=ct.getTypeChecker();return Be=gd(G,Tt),d(ct,et,E(Be,void 0,lt,ke,Tt,Dt,se))}function d(Be,...ct){let lt;for(let Dt of ct)if(!(!Dt||!Dt.length)){if(!lt){lt=Dt;continue}for(let se of Dt){if(!se.definition||se.definition.type!==0){lt.push(se);continue}let ke=se.definition.symbol,st=Kl(lt,et=>!!et.definition&&et.definition.type===0&&et.definition.symbol===ke);if(st===-1){lt.push(se);continue}let G=lt[st];lt[st]={definition:G.definition,references:G.references.concat(se.references).sort((et,Tt)=>{let He=p(Be,et),pt=p(Be,Tt);if(He!==pt)return Zs(He,pt);let Ft=Yme(et),hn=Yme(Tt);return Ft.start!==hn.start?Zs(Ft.start,hn.start):Zs(Ft.length,hn.length)})}}}return lt}function p(Be,ct){let lt=ct.kind===0?Be.getSourceFile(ct.fileName):ct.node.getSourceFile();return Be.getSourceFiles().indexOf(lt)}function h(Be,ct,lt,Dt,se){R.assert(!!ct.valueDeclaration);let ke=to(jLe(Be,Dt,ct),G=>{if(G.kind==="import"){let et=G.literal.parent;if(Jv(et)){let Tt=ta(et.parent,ig);if(lt&&!Tt.qualifier)return}return lg(G.literal)}else if(G.kind==="implicit"){let et=G.literal.text!==Vv&&EP(G.referencingFile,Tt=>Tt.transformFlags&2?og(Tt)||OT(Tt)||q0(Tt)?Tt:void 0:"skip")||G.referencingFile.statements[0]||G.referencingFile;return lg(et)}else return{kind:0,fileName:G.referencingFile.fileName,textSpan:tb(G.ref)}});if(ct.declarations)for(let G of ct.declarations)switch(G.kind){case 312:break;case 267:se.has(G.getSourceFile().fileName)&&ke.push(lg(G.name));break;default:R.assert(!!(ct.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}let st=ct.exports.get("export=");if(st?.declarations)for(let G of st.declarations){let et=G.getSourceFile();if(se.has(et.fileName)){let Tt=ur(G)&&wr(G.left)?G.left.expression:Ll(G)?R.checkDefined(hs(G,95,et)):No(G)||G;ke.push(lg(Tt))}}return ke.length?[{definition:{type:0,symbol:ct},references:ke}]:Xe}function m(Be){return Be.kind===148&&PT(Be.parent)&&Be.parent.operator===148}function y(Be,ct,lt){if($P(Be.kind))return Be.kind===116&&e1(Be.parent)||Be.kind===148&&!m(Be)?void 0:Ce(ct,Be.kind,lt,Be.kind===148?m:void 0);if(Kx(Be.parent)&&Be.parent.name===Be)return he(ct,lt);if(qI(Be)&&Al(Be.parent))return[{definition:{type:2,node:Be},references:[lg(Be)]}];if(Jw(Be)){let Dt=Lz(Be.parent,Be.text);return Dt&&fe(Dt.parent,Dt)}else if(bq(Be))return fe(Be.parent,Be);if(aD(Be))return Qn(Be,ct,lt);if(Be.kind===108)return Li(Be)}function E(Be,ct,lt,Dt,se,ke,st){let G=ct&&N(Be,ct,se,!kn(st))||Be,et=ct?yi(ct,G):7,Tt=[],He=new j(lt,Dt,ct?A(ct):0,se,ke,et,st,Tt),pt=!kn(st)||!G.declarations?void 0:Vr(G.declarations,Hd);if(pt)Et(pt.name,G,pt,He.createSearch(ct,Be,void 0),He,!0,!0);else if(ct&&ct.kind===90&&G.escapedName==="default"&&G.parent)_t(ct,G,He),K(ct,G,{exportingModuleSymbol:G.parent,exportKind:1},He);else{let Ft=He.createSearch(ct,G,void 0,{allSearchSymbols:ct?on(G,ct,se,st.use===2,!!st.providePrefixAndSuffixTextForRename,!!st.implementations):[G]});S(G,He,Ft)}return Tt}function S(Be,ct,lt){let Dt=me(Be);if(Dt)ve(Dt,Dt.getSourceFile(),lt,ct,!(Yi(Dt)&&!zo(ct.sourceFiles,Dt)));else for(let se of ct.sourceFiles)ct.cancellationToken.throwIfCancellationRequested(),z(se,lt,ct)}function A(Be){switch(Be.kind){case 176:case 137:return 1;case 80:if(di(Be.parent))return R.assert(Be.parent.name===Be),2;default:return 0}}function N(Be,ct,lt,Dt){let{parent:se}=ct;return Hd(se)&&Dt?be(ct,Be,se,lt):Wl(Be.declarations,ke=>{if(!ke.parent){if(Be.flags&33554432)return;R.fail(`Unexpected symbol at ${R.formatSyntaxKind(ct.kind)}: ${R.formatSymbol(Be)}`)}return gp(ke.parent)&&Kv(ke.parent.parent)?lt.getPropertyOfType(lt.getTypeFromTypeNode(ke.parent.parent),Be.name):void 0})}let D;(Be=>{Be[Be.None=0]="None",Be[Be.Constructor=1]="Constructor",Be[Be.Class=2]="Class"})(D||(D={}));function w(Be){if(!(Be.flags&33555968))return;let ct=Be.declarations&&Vr(Be.declarations,lt=>!Yi(lt)&&!ql(lt));return ct&&ct.symbol}class j{constructor(ct,lt,Dt,se,ke,st,G,et){this.sourceFiles=ct,this.sourceFilesSet=lt,this.specialSearchKind=Dt,this.checker=se,this.cancellationToken=ke,this.searchMeaning=st,this.options=G,this.result=et,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=v1(),this.markSeenReExportRHS=v1(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(ct){return this.sourceFilesSet.has(ct.fileName)}getImportSearches(ct,lt){return this.importTracker||(this.importTracker=jme(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(ct,lt,this.options.use===2)}createSearch(ct,lt,Dt,se={}){let{text:ke=Yf(yl(fR(lt)||w(lt)||lt)),allSearchSymbols:st=[lt]}=se,G=pl(ke),et=this.options.implementations&&ct?vn(ct,lt,this.checker):void 0;return{symbol:lt,comingFrom:Dt,text:ke,escapedText:G,parents:et,allSearchSymbols:st,includes:Tt=>zo(st,Tt)}}referenceAdder(ct){let lt=ba(ct),Dt=this.symbolIdToReferences[lt];return Dt||(Dt=this.symbolIdToReferences[lt]=[],this.result.push({definition:{type:0,symbol:ct},references:Dt})),(se,ke)=>Dt.push(lg(se,ke))}addStringOrCommentReference(ct,lt){this.result.push({definition:void 0,references:[{kind:0,fileName:ct,textSpan:lt}]})}markSearchedSymbols(ct,lt){let Dt=is(ct),se=this.sourceFileToSeenSymbols[Dt]||(this.sourceFileToSeenSymbols[Dt]=new Set),ke=!1;for(let st of lt)ke=Jb(se,ba(st))||ke;return ke}}function K(Be,ct,lt,Dt){let{importSearches:se,singleReferences:ke,indirectUsers:st}=Dt.getImportSearches(ct,lt);if(ke.length){let G=Dt.referenceAdder(ct);for(let et of ke)B(et,Dt)&&G(et)}for(let[G,et]of se)Ge(G.getSourceFile(),Dt.createSearch(G,et,1),Dt);if(st.length){let G;switch(lt.exportKind){case 0:G=Dt.createSearch(Be,ct,1);break;case 1:G=Dt.options.use===2?void 0:Dt.createSearch(Be,ct,1,{text:"default"});break;case 2:break}if(G)for(let et of st)z(et,G,Dt)}}function Y(Be,ct,lt,Dt,se,ke,st,G){let et=jme(Be,new Set(Be.map(Ft=>Ft.fileName)),ct,lt),{importSearches:Tt,indirectUsers:He,singleReferences:pt}=et(Dt,{exportKind:st?1:0,exportingModuleSymbol:se},!1);for(let[Ft]of Tt)G(Ft);for(let Ft of pt)Fe(Ft)&&ig(Ft.parent)&&G(Ft);for(let Ft of He)for(let hn of pe(Ft,st?"default":ke)){let dn=ct.getSymbolAtLocation(hn),un=gt(dn?.declarations,U=>!!ri(U,Ll));Fe(hn)&&!yI(hn.parent)&&(dn===Dt||un)&&G(hn)}}e.eachExportReference=Y;function B(Be,ct){return Ie(Be,ct)?ct.options.use!==2?!0:Fe(Be)?!(yI(Be.parent)&&Be.escapedText==="default"):!1:!1}function ce(Be,ct){if(Be.declarations)for(let lt of Be.declarations){let Dt=lt.getSourceFile();Ge(Dt,ct.createSearch(lt,Be,0),ct,ct.includesSourceFile(Dt))}}function z(Be,ct,lt){gY(Be).get(ct.escapedText)!==void 0&&Ge(Be,ct,lt)}function ee(Be,ct){return Hy(Be.parent.parent)?ct.getPropertySymbolOfDestructuringAssignment(Be):void 0}function me(Be){let{declarations:ct,flags:lt,parent:Dt,valueDeclaration:se}=Be;if(se&&(se.kind===218||se.kind===231))return se;if(!ct)return;if(lt&8196){let G=Vr(ct,et=>fp(et,2)||au(et));return G?uE(G,263):void 0}if(ct.some(iO))return;let ke=Dt&&!(Be.flags&262144);if(ke&&!(tO(Dt)&&!Dt.globalExports))return;let st;for(let G of ct){let et=XT(G);if(st&&st!==et||!et||et.kind===312&&!wp(et))return;if(st=et,Ms(st)){let Tt;for(;Tt=yj(st);)st=Tt}}return ke?st.getSourceFile():st}function ge(Be,ct,lt,Dt=lt){return q(Be,ct,lt,()=>!0,Dt)||!1}e.isSymbolReferencedInFile=ge;function q(Be,ct,lt,Dt,se=lt){let ke=dp(Be.parent,Be.parent.parent)?Va(ct.getSymbolsOfParameterPropertyDeclaration(Be.parent,Be.text)):ct.getSymbolAtLocation(Be);if(ke)for(let st of pe(lt,ke.name,se)){if(!Fe(st)||st===Be||st.escapedText!==Be.escapedText)continue;let G=ct.getSymbolAtLocation(st);if(G===ke||ct.getShorthandAssignmentValueSymbol(st.parent)===ke||Hd(st.parent)&&be(st,G,st.parent,ct)===ke){let et=Dt(st);if(et)return et}}}e.eachSymbolReferenceInFile=q;function J(Be,ct){return jr(pe(ct,Be),se=>!!bN(se)).reduce((se,ke)=>{let st=Dt(ke);return!gt(se.declarationNames)||st===se.depth?(se.declarationNames.push(ke),se.depth=st):stHe===se)&&Dt(st,et))return!0}return!1}e.someSignatureUsage=re;function pe(Be,ct,lt=Be){return to(xe(Be,ct,lt),Dt=>{let se=Fu(Be,Dt);return se===Be?void 0:se})}function xe(Be,ct,lt=Be){let Dt=[];if(!ct||!ct.length)return Dt;let se=Be.text,ke=se.length,st=ct.length,G=se.indexOf(ct,lt.pos);for(;G>=0&&!(G>lt.end);){let et=G+st;(G===0||!Qb(se.charCodeAt(G-1),99))&&(et===ke||!Qb(se.charCodeAt(et),99))&&Dt.push(G),G=se.indexOf(ct,G+st+1)}return Dt}function fe(Be,ct){let lt=Be.getSourceFile(),Dt=ct.text,se=to(pe(lt,Dt,Be),ke=>ke===ct||Jw(ke)&&Lz(ke,Dt)===ct?lg(ke):void 0);return[{definition:{type:1,node:ct},references:se}]}function ne(Be,ct){switch(Be.kind){case 81:if(yE(Be.parent))return!0;case 80:return Be.text.length===ct.length;case 15:case 11:{let lt=Be;return(kz(lt)||Aq(Be)||nde(Be)||ra(Be.parent)&&gT(Be.parent)&&Be.parent.arguments[1]===Be)&<.text.length===ct.length}case 9:return kz(Be)&&Be.text.length===ct.length;case 90:return ct.length===7;default:return!1}}function he(Be,ct){let lt=va(Be,Dt=>(ct.throwIfCancellationRequested(),to(pe(Dt,"meta",Dt),se=>{let ke=se.parent;if(Kx(ke))return lg(ke)})));return lt.length?[{definition:{type:2,node:lt[0].node},references:lt}]:void 0}function Ce(Be,ct,lt,Dt){let se=va(Be,ke=>(lt.throwIfCancellationRequested(),to(pe(ke,ca(ct),ke),st=>{if(st.kind===ct&&(!Dt||Dt(st)))return lg(st)})));return se.length?[{definition:{type:2,node:se[0].node},references:se}]:void 0}function Ge(Be,ct,lt,Dt=!0){return lt.cancellationToken.throwIfCancellationRequested(),ve(Be,Be,ct,lt,Dt)}function ve(Be,ct,lt,Dt,se){if(Dt.markSearchedSymbols(ct,lt.allSearchSymbols))for(let ke of xe(ct,lt.text,Be))De(ct,ke,lt,Dt,se)}function Ie(Be,ct){return!!(qT(Be)&ct.searchMeaning)}function De(Be,ct,lt,Dt,se){let ke=Fu(Be,ct);if(!ne(ke,lt.text)){!Dt.options.implementations&&(Dt.options.findInStrings&&y1(Be,ct)||Dt.options.findInComments&&hde(Be,ct))&&Dt.addStringOrCommentReference(Be.fileName,_d(ct,lt.text.length));return}if(!Ie(ke,Dt))return;let st=Dt.checker.getSymbolAtLocation(ke);if(!st)return;let G=ke.parent;if(Qu(G)&&G.propertyName===ke)return;if(Hd(G)){R.assert(ke.kind===80),Et(ke,st,G,lt,Dt,se);return}if(iN(G)&&G.isNameFirst&&G.typeExpression&&FT(G.typeExpression.type)&&G.typeExpression.type.jsDocPropertyTags&&Nn(G.typeExpression.type.jsDocPropertyTags)){Le(G.typeExpression.type.jsDocPropertyTags,ke,lt,Dt);return}let et=si(lt,st,ke,Dt);if(!et){Wt(st,lt,Dt);return}switch(Dt.specialSearchKind){case 0:se&&_t(ke,et,Dt);break;case 1:Je(ke,Be,lt,Dt);break;case 2:ft(ke,lt,Dt);break;default:R.assertNever(Dt.specialSearchKind)}ir(ke)&&Xa(ke.parent)&&D0(ke.parent.parent.parent)&&(st=ke.parent.symbol,!st)||tt(ke,st,lt,Dt)}function Le(Be,ct,lt,Dt){let se=Dt.referenceAdder(lt.symbol);_t(ct,lt.symbol,Dt),gn(Be,ke=>{Tu(ke.name)&&se(ke.name.left)})}function Et(Be,ct,lt,Dt,se,ke,st){R.assert(!st||!!se.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");let{parent:G,propertyName:et,name:Tt}=lt,He=G.parent,pt=be(Be,ct,lt,se.checker);if(!st&&!Dt.includes(pt))return;if(et?Be===et?(He.moduleSpecifier||Ft(),ke&&se.options.use!==2&&se.markSeenReExportRHS(Tt)&&_t(Tt,R.checkDefined(lt.symbol),se)):se.markSeenReExportRHS(Be)&&Ft():se.options.use===2&&Tt.escapedText==="default"||Ft(),!kn(se.options)||st){let dn=Be.escapedText==="default"||lt.name.escapedText==="default"?1:0,un=R.checkDefined(lt.symbol),U=Ume(un,dn,se.checker);U&&K(Be,un,U,se)}if(Dt.comingFrom!==1&&He.moduleSpecifier&&!et&&!kn(se.options)){let hn=se.checker.getExportSpecifierLocalTargetSymbol(lt);hn&&ce(hn,se)}function Ft(){ke&&_t(Be,pt,se)}}function be(Be,ct,lt,Dt){return ze(Be,lt)&&Dt.getExportSpecifierLocalTargetSymbol(lt)||ct}function ze(Be,ct){let{parent:lt,propertyName:Dt,name:se}=ct;return R.assert(Dt===Be||se===Be),Dt?Dt===Be:!lt.parent.moduleSpecifier}function tt(Be,ct,lt,Dt){let se=KLe(Be,ct,Dt.checker,lt.comingFrom===1);if(!se)return;let{symbol:ke}=se;se.kind===0?kn(Dt.options)||ce(ke,Dt):K(Be,ke,se.exportInfo,Dt)}function Wt({flags:Be,valueDeclaration:ct},lt,Dt){let se=Dt.checker.getShorthandAssignmentValueSymbol(ct),ke=ct&&No(ct);!(Be&33554432)&&ke&<.includes(se)&&_t(ke,se,Dt)}function _t(Be,ct,lt){let{kind:Dt,symbol:se}="kind"in ct?ct:{kind:void 0,symbol:ct};if(lt.options.use===2&&Be.kind===90)return;let ke=lt.referenceAdder(se);lt.options.implementations?Yt(Be,ke,lt):ke(Be,Dt)}function Je(Be,ct,lt,Dt){qP(Be)&&_t(Be,lt.symbol,Dt);let se=()=>Dt.referenceAdder(lt.symbol);if(di(Be.parent))R.assert(Be.kind===90||Be.parent.name===Be),Zt(lt.symbol,ct,se());else{let ke=Ba(Be);ke&&(Dn(ke,se()),pn(ke,Dt))}}function ft(Be,ct,lt){_t(Be,ct.symbol,lt);let Dt=Be.parent;if(lt.options.use===2||!di(Dt))return;R.assert(Dt.name===Be);let se=lt.referenceAdder(ct.symbol);for(let ke of Dt.members)bI(ke)&&na(ke)&&ke.body&&ke.body.forEachChild(function st(G){G.kind===110?se(G):!Yo(G)&&!di(G)&&G.forEachChild(st)})}function Zt(Be,ct,lt){let Dt=en(Be);if(Dt&&Dt.declarations)for(let se of Dt.declarations){let ke=hs(se,137,ct);R.assert(se.kind===176&&!!ke),lt(ke)}Be.exports&&Be.exports.forEach(se=>{let ke=se.valueDeclaration;if(ke&&ke.kind===174){let st=ke.body;st&&da(st,110,G=>{qP(G)&<(G)})}})}function en(Be){return Be.members&&Be.members.get("__constructor")}function Dn(Be,ct){let lt=en(Be.symbol);if(lt&<.declarations)for(let Dt of lt.declarations){R.assert(Dt.kind===176);let se=Dt.body;se&&da(se,108,ke=>{gq(ke)&&ct(ke)})}}function Kn(Be){return!!en(Be.symbol)}function pn(Be,ct){if(Kn(Be))return;let lt=Be.symbol,Dt=ct.createSearch(void 0,lt,void 0);S(lt,ct,Dt)}function Yt(Be,ct,lt){if(Lg(Be)&&$i(Be.parent)){ct(Be);return}if(Be.kind!==80)return;Be.parent.kind===304&&Ao(Be,lt.checker,ct);let Dt=qt(Be);if(Dt){ct(Dt);return}let se=Fn(Be,G=>!Tu(G.parent)&&!ji(G.parent)&&!lT(G.parent)),ke=se.parent;if(hF(ke)&&ke.type===se&<.markSeenContainingTypeReference(ke))if(Lv(ke))st(ke.initializer);else if(Yo(ke)&&ke.body){let G=ke.body;G.kind===241?x0(G,et=>{et.expression&&st(et.expression)}):st(G)}else cT(ke)&&st(ke.expression);function st(G){hi(G)&&ct(G)}}function qt(Be){return Fe(Be)||wr(Be)?qt(Be.parent):By(Be)?ri(Be.parent.parent,Um(di,fu)):void 0}function hi(Be){switch(Be.kind){case 217:return hi(Be.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function uo(Be,ct,lt,Dt){if(Be===ct)return!0;let se=ba(Be)+","+ba(ct),ke=lt.get(se);if(ke!==void 0)return ke;lt.set(se,!1);let st=!!Be.declarations&&Be.declarations.some(G=>EN(G).some(et=>{let Tt=Dt.getTypeAtLocation(et);return!!Tt&&!!Tt.symbol&&uo(Tt.symbol,ct,lt,Dt)}));return lt.set(se,st),st}function Li(Be){let ct=T2(Be,!1);if(!ct)return;let lt=256;switch(ct.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:lt&=Fv(ct),ct=ct.parent;break;default:return}let Dt=ct.getSourceFile(),se=to(pe(Dt,"super",ct),ke=>{if(ke.kind!==108)return;let st=T2(ke,!1);return st&&na(st)===!!lt&&st.parent.symbol===ct.symbol?lg(ke):void 0});return[{definition:{type:0,symbol:ct.symbol},references:se}]}function Eo(Be){return Be.kind===80&&Be.parent.kind===169&&Be.parent.name===Be}function Qn(Be,ct,lt){let Dt=ku(Be,!1,!1),se=256;switch(Dt.kind){case 174:case 173:if(bm(Dt)){se&=Fv(Dt),Dt=Dt.parent;break}case 172:case 171:case 176:case 177:case 178:se&=Fv(Dt),Dt=Dt.parent;break;case 312:if(oc(Dt)||Eo(Be))return;case 262:case 218:break;default:return}let ke=va(Dt.kind===312?ct:[Dt.getSourceFile()],G=>(lt.throwIfCancellationRequested(),pe(G,"this",Yi(Dt)?G:Dt).filter(et=>{if(!aD(et))return!1;let Tt=ku(et,!1,!1);if(!b_(Tt))return!1;switch(Dt.kind){case 218:case 262:return Dt.symbol===Tt.symbol;case 174:case 173:return bm(Dt)&&Dt.symbol===Tt.symbol;case 231:case 263:case 210:return Tt.parent&&b_(Tt.parent)&&Dt.symbol===Tt.parent.symbol&&na(Tt)===!!se;case 312:return Tt.kind===312&&!oc(Tt)&&!Eo(et)}}))).map(G=>lg(G));return[{definition:{type:3,node:Wl(ke,G=>To(G.node.parent)?G.node:void 0)||Be},references:ke}]}function Ur(Be,ct,lt,Dt){let se=Fz(Be,lt),ke=va(ct,st=>(Dt.throwIfCancellationRequested(),to(pe(st,Be.text),G=>{if(ss(G)&&G.text===Be.text)if(se){let et=Fz(G,lt);if(se!==lt.getStringType()&&(se===et||Er(G,lt)))return lg(G,2)}else return HI(G)&&!IT(G,st)?void 0:lg(G,2)})));return[{definition:{type:4,node:Be},references:ke}]}function Er(Be,ct){if(_p(Be.parent))return ct.getPropertyOfType(ct.getTypeAtLocation(Be.parent.parent),Be.text)}function on(Be,ct,lt,Dt,se,ke){let st=[];return Ye(Be,ct,lt,Dt,!(Dt&&se),(G,et,Tt)=>{Tt&&In(Be)!==In(Tt)&&(Tt=void 0),st.push(Tt||et||G)},()=>!ke),st}function Ye(Be,ct,lt,Dt,se,ke,st){let G=PO(ct);if(G){let dn=lt.getShorthandAssignmentValueSymbol(ct.parent);if(dn&&Dt)return ke(dn,void 0,void 0,3);let un=lt.getContextualType(G.parent),U=un&&Wl(J7(G,lt,un,!0),ie=>Ft(ie,4));if(U)return U;let Me=ee(ct,lt),Pt=Me&&ke(Me,void 0,void 0,4);if(Pt)return Pt;let k=dn&&ke(dn,void 0,void 0,3);if(k)return k}let et=s(ct,Be,lt);if(et){let dn=ke(et,void 0,void 0,1);if(dn)return dn}let Tt=Ft(Be);if(Tt)return Tt;if(Be.valueDeclaration&&dp(Be.valueDeclaration,Be.valueDeclaration.parent)){let dn=lt.getSymbolsOfParameterPropertyDeclaration(ta(Be.valueDeclaration,To),Be.name);return R.assert(dn.length===2&&!!(dn[0].flags&1)&&!!(dn[1].flags&4)),Ft(Be.flags&1?dn[1]:dn[0])}let He=cl(Be,281);if(!Dt||He&&!He.propertyName){let dn=He&<.getExportSpecifierLocalTargetSymbol(He);if(dn){let un=ke(dn,void 0,void 0,1);if(un)return un}}if(!Dt){let dn;return se?dn=iO(ct.parent)?Qz(lt,ct.parent):void 0:dn=hn(Be,lt),dn&&Ft(dn,4)}if(R.assert(Dt),se){let dn=hn(Be,lt);return dn&&Ft(dn,4)}function Ft(dn,un){return Wl(lt.getRootSymbols(dn),U=>ke(dn,U,void 0,un)||(U.parent&&U.parent.flags&96&&st(U)?Ot(U.parent,U.name,lt,Me=>ke(dn,U,Me,un)):void 0))}function hn(dn,un){let U=cl(dn,208);if(U&&iO(U))return Qz(un,U)}}function Ot(Be,ct,lt,Dt){let se=new Map;return ke(Be);function ke(st){if(!(!(st.flags&96)||!Em(se,ba(st))))return Wl(st.declarations,G=>Wl(EN(G),et=>{let Tt=lt.getTypeAtLocation(et),He=Tt&&Tt.symbol&<.getPropertyOfType(Tt,ct);return Tt&&He&&(Wl(lt.getRootSymbols(He),Dt)||ke(Tt.symbol))}))}}function In(Be){return Be.valueDeclaration?!!(cu(Be.valueDeclaration)&256):!1}function si(Be,ct,lt,Dt){let{checker:se}=Dt;return Ye(ct,lt,se,!1,Dt.options.use!==2||!!Dt.options.providePrefixAndSuffixTextForRename,(ke,st,G,et)=>(G&&In(ct)!==In(G)&&(G=void 0),Be.includes(G||st||ke)?{symbol:st&&!(Tl(ke)&6)?st:ke,kind:et}:void 0),ke=>!(Be.parents&&!Be.parents.some(st=>uo(ke.parent,st,Dt.inheritsFromCache,se))))}function yi(Be,ct){let lt=qT(Be),{declarations:Dt}=ct;if(Dt){let se;do{se=lt;for(let ke of Dt){let st=Uw(ke);st<&&(lt|=st)}}while(lt!==se)}return lt}e.getIntersectingMeaningFromDeclarations=yi;function $i(Be){return Be.flags&33554432?!(fu(Be)||Tm(Be)):Jx(Be)?Lv(Be):Ws(Be)?!!Be.body:di(Be)||l2(Be)}function Ao(Be,ct,lt){let Dt=ct.getSymbolAtLocation(Be),se=ct.getShorthandAssignmentValueSymbol(Dt.valueDeclaration);if(se)for(let ke of se.getDeclarations())Uw(ke)&1&<(ke)}e.getReferenceEntriesForShorthandPropertyAssignment=Ao;function da(Be,ct,lt){Bo(Be,Dt=>{Dt.kind===ct&<(Dt),da(Dt,ct,lt)})}function Ba(Be){return Uj(Mz(Be).parent)}function vn(Be,ct,lt){let Dt=oD(Be)?Be.parent:void 0,se=Dt&<.getTypeAtLocation(Dt.expression),ke=to(se&&(se.isUnionOrIntersection()?se.types:se.symbol===ct.parent?void 0:[se]),st=>st.symbol&&st.symbol.flags&96?st.symbol:void 0);return ke.length===0?void 0:ke}function kn(Be){return Be.use===2&&Be.providePrefixAndSuffixTextForRename}})(N1||(N1={}))}}),Ls={};Ra(Ls,{Core:()=>N1,DefinitionKind:()=>Qme,EntryKind:()=>Zme,ExportKind:()=>Kme,FindReferencesUse:()=>e_e,ImportExport:()=>Jme,createImportTracker:()=>jme,findModuleReferences:()=>jLe,findReferenceOrRenameEntries:()=>Qet,findReferencedSymbols:()=>Xet,getContextNode:()=>eA,getExportInfo:()=>Ume,getImplementationsAtPosition:()=>$et,getImportOrExportSymbol:()=>KLe,getReferenceEntriesForNode:()=>qLe,getTextSpanOfEntry:()=>Yme,isContextWithStartAndEndNode:()=>qme,isDeclarationOfSymbol:()=>QLe,isWriteAccessForReference:()=>$me,nodeEntry:()=>lg,toContextSpan:()=>Xme,toHighlightSpan:()=>ott,toReferenceEntry:()=>$Le,toRenameLocation:()=>ett});var t_e=bt({"src/services/_namespaces/ts.FindAllReferences.ts"(){"use strict";Jet(),stt()}});function ZLe(e,t,r,i,o){var s;let l=t2e(t,r,e),d=l&&[vtt(l.reference.fileName,l.fileName,l.unverified)]||Xe;if(l?.file)return d;let p=Fu(t,r);if(p===t)return;let{parent:h}=p,m=e.getTypeChecker();if(p.kind===164||Fe(p)&&U4(h)&&h.tagName===p)return ctt(m,p)||Xe;if(Jw(p)){let D=Lz(p.parent,p.text);return D?[n_e(m,D,"label",p.text,void 0)]:void 0}switch(p.kind){case 107:let D=Fn(p.parent,j=>Al(j)?"quit":Ws(j));return D?[_B(m,D)]:void 0;case 90:if(!_P(p.parent))break;case 84:let w=Fn(p.parent,pP);if(w)return[ytt(w,t)];break}if(p.kind===135){let D=Fn(p,j=>Ws(j));return D&>(D.modifiers,j=>j.kind===134)?[_B(m,D)]:void 0}if(p.kind===127){let D=Fn(p,j=>Ws(j));return D&&D.asteriskToken?[_B(m,D)]:void 0}if(qI(p)&&Al(p.parent)){let D=p.parent.parent,{symbol:w,failedAliasResolution:j}=mQ(D,m,o),K=jr(D.members,Al),Y=w?m.symbolToString(w,D):"",B=p.getSourceFile();return mn(K,ce=>{let{pos:z}=R_(ce);return z=Pa(B.text,z),n_e(m,ce,"constructor","static {}",Y,!1,j,{start:z,length:6})})}let{symbol:y,failedAliasResolution:E}=mQ(p,m,o),S=p;if(i&&E){let D=gn([p,...y?.declarations||Xe],j=>Fn(j,Jre)),w=D&&Zx(D);w&&({symbol:y,failedAliasResolution:E}=mQ(w,m,o),S=w)}if(!y&&$z(S)){let D=(s=e.getResolvedModuleFromModuleSpecifier(S))==null?void 0:s.resolvedModule;if(D)return[{name:S.text,fileName:D.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:_d(0,0),failedAliasResolution:E,isAmbient:vd(D.resolvedFileName),unverified:S!==p}]}if(!y)return bo(d,_tt(p,m));if(i&&oo(y.declarations,D=>D.getSourceFile().fileName===t.fileName))return;let A=Ett(m,p);if(A&&!(su(p.parent)&&Stt(A))){let D=_B(m,A,E);if(m.getRootSymbols(y).some(w=>ltt(w,A)))return[D];{let w=mM(m,y,p,E,A)||Xe;return p.kind===108?[D,...w]:[...w,D]}}if(p.parent.kind===304){let D=m.getShorthandAssignmentValueSymbol(y.valueDeclaration),w=D?.declarations?D.declarations.map(j=>jO(j,m,D,p,!1,E)):Xe;return bo(w,e2e(m,p))}if(rc(p)&&Xa(h)&&tm(h.parent)&&p===(h.propertyName||h.name)){let D=rO(p),w=m.getTypeAtLocation(h.parent);return D===void 0?Xe:va(w.isUnion()?w.types:[w],j=>{let K=j.getProperty(D);return K&&mM(m,K,p)})}let N=e2e(m,p);return bo(d,N.length?N:mM(m,y,p,E))}function ltt(e,t){var r;return e===t.symbol||e===t.symbol.parent||Pc(t.parent)||!S0(t.parent)&&e===((r=ri(t.parent,b_))==null?void 0:r.symbol)}function e2e(e,t){let r=PO(t);if(r){let i=r&&e.getContextualType(r.parent);if(i)return va(J7(r,e,i,!1),o=>mM(e,o,t))}return Xe}function ctt(e,t){let r=Fn(t,Xc);if(!(r&&r.name))return;let i=Fn(r,di);if(!i)return;let o=S_(i);if(!o)return;let s=ms(o.expression),l=$c(s)?s.symbol:e.getSymbolAtLocation(s);if(!l)return;let d=Vi(jx(r.name)),p=pc(r)?e.getPropertyOfType(e.getTypeOfSymbol(l),d):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(l),d);if(p)return mM(e,p,t)}function t2e(e,t,r){var i,o;let s=_M(e.referencedFiles,t);if(s){let p=r.getSourceFileFromReference(e,s);return p&&{reference:s,fileName:p.fileName,file:p,unverified:!1}}let l=_M(e.typeReferenceDirectives,t);if(l){let p=(i=r.getResolvedTypeReferenceDirectives().get(l.fileName,l.resolutionMode||e.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective,h=p&&r.getSourceFile(p.resolvedFileName);return h&&{reference:l,fileName:h.fileName,file:h,unverified:!1}}let d=_M(e.libReferenceDirectives,t);if(d){let p=r.getLibFileFromReference(d);return p&&{reference:d,fileName:p.fileName,file:p,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){let p=sD(e,t),h;if($z(p)&&qc(p.text)&&(h=r.getResolvedModuleFromModuleSpecifier(p))){let m=(o=h.resolvedModule)==null?void 0:o.resolvedFileName,y=m||Iv(oi(e.fileName),p.text);return{file:r.getSourceFile(y),fileName:y,reference:{pos:p.getStart(),end:p.getEnd(),fileName:p.text},unverified:!m}}}}function dtt(e,t){let r=t.symbol.name;if(!i_e.has(r))return!1;let i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.target.symbol}function n2e(e,t){if(!t.aliasSymbol)return!1;let r=t.aliasSymbol.name;if(!i_e.has(r))return!1;let i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.aliasSymbol}function utt(e,t,r,i){var o,s;if(kr(t)&4&&dtt(e,t))return VO(e.getTypeArguments(t)[0],e,r,i);if(n2e(e,t)&&t.aliasTypeArguments)return VO(t.aliasTypeArguments[0],e,r,i);if(kr(t)&32&&t.target&&n2e(e,t.target)){let l=(s=(o=t.aliasSymbol)==null?void 0:o.declarations)==null?void 0:s[0];if(l&&Tm(l)&&If(l.type)&&l.type.typeArguments)return VO(e.getTypeAtLocation(l.type.typeArguments[0]),e,r,i)}return[]}function ptt(e,t,r){let i=Fu(t,r);if(i===t)return;if(Kx(i.parent)&&i.parent.name===i)return VO(e.getTypeAtLocation(i.parent),e,i.parent,!1);let{symbol:o,failedAliasResolution:s}=mQ(i,e,!1);if(!o)return;let l=e.getTypeOfSymbolAtLocation(o,i),d=ftt(o,l,e),p=d&&VO(d,e,i,s),[h,m]=p&&p.length!==0?[d,p]:[l,VO(l,e,i,s)];return m.length?[...utt(e,h,i,s),...m]:!(o.flags&111551)&&o.flags&788968?mM(e,gd(o,e),i,s):void 0}function VO(e,t,r,i){return va(e.isUnion()&&!(e.flags&32)?e.types:[e],o=>o.symbol&&mM(t,o.symbol,r,i))}function ftt(e,t,r){if(t.symbol===e||e.valueDeclaration&&t.symbol&&Oi(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){let i=t.getCallSignatures();if(i.length===1)return r.getReturnTypeOfSignature(Va(i))}}function mtt(e,t,r){let i=ZLe(e,t,r);if(!i||i.length===0)return;let o=_M(t.referencedFiles,r)||_M(t.typeReferenceDirectives,r)||_M(t.libReferenceDirectives,r);if(o)return{definitions:i,textSpan:tb(o)};let s=Fu(t,r),l=_d(s.getStart(),s.getWidth());return{definitions:i,textSpan:l}}function _tt(e,t){return to(t.getIndexInfosAtLocation(e),r=>r.declaration&&_B(t,r.declaration))}function mQ(e,t,r){let i=t.getSymbolAtLocation(e),o=!1;if(i?.declarations&&i.flags&2097152&&!r&&htt(e,i.declarations[0])){let s=t.getAliasedSymbol(i);if(s.declarations)return{symbol:s};o=!0}return{symbol:i,failedAliasResolution:o}}function htt(e,t){return e.kind!==80?!1:e.parent===t?!0:t.kind!==274}function gtt(e){if(!yN(e))return!1;let t=Fn(e,r=>Pc(r)?!0:yN(r)?!1:"quit");return!!t&&zl(t)===5}function mM(e,t,r,i,o){let s=jr(t.declarations,y=>y!==o),l=jr(s,y=>!gtt(y)),d=gt(l)?l:s;return p()||h()||mn(d,y=>jO(y,e,t,r,!1,i));function p(){if(t.flags&32&&!(t.flags&19)&&(qP(r)||r.kind===137)){let y=Vr(s,di)||R.fail("Expected declaration to have at least one class-like declaration");return m(y.members,!0)}}function h(){return yq(r)||Iq(r)?m(s,!1):void 0}function m(y,E){if(!y)return;let S=y.filter(E?Pl:Yo),A=S.filter(N=>!!N.body);return S.length?A.length!==0?A.map(N=>jO(N,e,t,r)):[jO(Ja(S),e,t,r,!1,i)]:void 0}}function jO(e,t,r,i,o,s){let l=t.symbolToString(r),d=Yy.getSymbolKind(t,r,i),p=r.parent?t.symbolToString(r.parent,i):"";return n_e(t,e,d,l,p,o,s)}function n_e(e,t,r,i,o,s,l,d){let p=t.getSourceFile();if(!d){let h=No(t)||t;d=xu(h,p)}return{fileName:p.fileName,textSpan:d,kind:r,name:i,containerKind:void 0,containerName:o,...Ls.toContextSpan(d,p,Ls.getContextNode(t)),isLocal:!r_e(e,t),isAmbient:!!(t.flags&33554432),unverified:s,failedAliasResolution:l}}function ytt(e,t){let r=Ls.getContextNode(e),i=xu(qme(r)?r.start:r,t);return{fileName:t.fileName,textSpan:i,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...Ls.toContextSpan(i,t,r),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function r_e(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(Lv(t.parent)&&t.parent.initializer===t)return r_e(e,t.parent);switch(t.kind){case 172:case 177:case 178:case 174:if(fp(t,2))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return r_e(e,t.parent);default:return!1}}function _B(e,t,r){return jO(t,e,t.symbol,t,!1,r)}function _M(e,t){return Vr(e,r=>JL(r,t))}function vtt(e,t,r){return{fileName:t,textSpan:dc(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:r}}function btt(e){let t=Fn(e,i=>!oD(i)),r=t?.parent;return r&&S0(r)&&BF(r)===t?r:void 0}function Ett(e,t){let r=btt(t),i=r&&e.getResolvedSignature(r);return ri(i&&i.declaration,o=>Yo(o)&&!gh(o))}function Stt(e){switch(e.kind){case 176:case 185:case 180:return!0;default:return!1}}var i_e,Ttt=bt({"src/services/goToDefinition.ts"(){"use strict";ai(),t_e(),i_e=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"])}}),ID={};Ra(ID,{createDefinitionInfo:()=>jO,findReferenceInPosition:()=>_M,getDefinitionAndBoundSpan:()=>mtt,getDefinitionAtPosition:()=>ZLe,getReferenceAtPosition:()=>t2e,getTypeDefinitionAtPosition:()=>ptt});var Att=bt({"src/services/_namespaces/ts.GoToDefinition.ts"(){"use strict";Ttt()}});function Itt(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function xtt(e){return e.includeInlayParameterNameHints==="literals"}function r2e(e){return e.interactiveInlayHints===!0}function Rtt(e){let{file:t,program:r,span:i,cancellationToken:o,preferences:s}=e,l=t.text,d=r.getCompilerOptions(),p=af(t,s),h=r.getTypeChecker(),m=[];return y(t),m;function y(fe){if(!(!fe||fe.getFullWidth()===0)){switch(fe.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:o.throwIfCancellationRequested()}if(ZW(i,fe.pos,fe.getFullWidth())&&!(ji(fe)&&!By(fe)))return s.includeInlayVariableTypeHints&&Oi(fe)||s.includeInlayPropertyDeclarationTypeHints&&Vo(fe)?j(fe):s.includeInlayEnumMemberValueHints&&$0(fe)?D(fe):Itt(s)&&(ra(fe)||U0(fe))?K(fe):(s.includeInlayFunctionParameterTypeHints&&Ws(fe)&&z6(fe)&&me(fe),s.includeInlayFunctionLikeReturnTypeHints&&E(fe)&&z(fe)),Bo(fe,y)}}function E(fe){return Fs(fe)||Ms(fe)||Ec(fe)||Ul(fe)||Zp(fe)}function S(fe,ne,he,Ce){let Ge=`${Ce?"...":""}${fe}`,ve;r2e(s)?(ve=[xe(Ge,ne),{text:":"}],Ge=""):Ge+=":",m.push({text:Ge,position:he,kind:"Parameter",whitespaceAfter:!0,displayParts:ve})}function A(fe,ne){m.push({text:typeof fe=="string"?`: ${fe}`:"",displayParts:typeof fe=="string"?void 0:[{text:": "},...fe],position:ne,kind:"Type",whitespaceBefore:!0})}function N(fe,ne){m.push({text:`= ${fe}`,position:ne,kind:"Enum",whitespaceBefore:!0})}function D(fe){if(fe.initializer)return;let ne=h.getConstantValue(fe);ne!==void 0&&N(ne.toString(),fe.end)}function w(fe){return fe.symbol&&fe.symbol.flags&1536}function j(fe){if(!fe.initializer||$o(fe.name)||Oi(fe)&&!pe(fe)||hd(fe))return;let he=h.getTypeAtLocation(fe);if(w(he))return;let Ce=J(he);if(Ce){let Ge=typeof Ce=="string"?Ce:Ce.map(Ie=>Ie.text).join("");if(s.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&Xb(fe.name.getText(),Ge))return;A(Ce,fe.name.end)}}function K(fe){let ne=fe.arguments;if(!ne||!ne.length)return;let he=[],Ce=h.getResolvedSignatureForSignatureHelp(fe,he);if(!Ce||!he.length)return;let Ge=0;for(let ve of ne){let Ie=ms(ve);if(xtt(s)&&!ce(Ie)){Ge++;continue}let De=0;if(qm(Ie)){let Et=h.getTypeAtLocation(Ie.expression);if(h.isTupleType(Et)){let{elementFlags:be,fixedLength:ze}=Et.target;if(ze===0)continue;let tt=Kl(be,_t=>!(_t&1));(tt<0?ze:tt)>0&&(De=tt<0?ze:tt)}}let Le=h.getParameterIdentifierInfoAtPosition(Ce,Ge);if(Ge=Ge+(De||1),Le){let{parameter:Et,parameterName:be,isRestParameter:ze}=Le;if(!(s.includeInlayParameterNameHintsWhenArgumentMatchesName||!Y(Ie,be))&&!ze)continue;let Wt=Vi(be);if(B(Ie,Wt))continue;S(Wt,Et,ve.getStart(),ze)}}}function Y(fe,ne){return Fe(fe)?fe.text===ne:wr(fe)?fe.name.text===ne:!1}function B(fe,ne){if(!$p(ne,d.target,ok(t.scriptKind)))return!1;let he=Uh(l,fe.pos);if(!he?.length)return!1;let Ce=i2e(ne);return gt(he,Ge=>Ce.test(l.substring(Ge.pos,Ge.end)))}function ce(fe){switch(fe.kind){case 224:{let ne=fe.operand;return E0(ne)||Fe(ne)&&XN(ne.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{let ne=fe.escapedText;return re(ne)||XN(ne)}}return E0(fe)}function z(fe){if(Fs(fe)&&!hs(fe,21,t)||$f(fe)||!fe.body)return;let he=h.getSignatureFromDeclaration(fe);if(!he)return;let Ce=h.getReturnTypeOfSignature(he);if(w(Ce))return;let Ge=J(Ce);Ge&&A(Ge,ee(fe))}function ee(fe){let ne=hs(fe,22,t);return ne?ne.end:fe.parameters.end}function me(fe){let ne=h.getSignatureFromDeclaration(fe);if(ne)for(let he=0;he{let Ge=h.typeToTypeNode(fe,void 0,71286784);R.assertIsDefined(Ge,"should always get typenode"),he.writeNode(4,Ge,t,Ce)})}function J(fe){if(!r2e(s))return q(fe);let he=h.typeToTypeNode(fe,void 0,71286784);R.assertIsDefined(he,"should always get typenode");let Ce=[];return Ge(he),Ce;function Ge(Le){var Et,be;if(!Le)return;let ze=ca(Le.kind);if(ze){Ce.push({text:ze});return}if(E0(Le)){Ce.push({text:De(Le)});return}switch(Le.kind){case 80:R.assertNode(Le,Fe);let tt=yr(Le),Wt=Le.symbol&&Le.symbol.declarations&&Le.symbol.declarations.length&&No(Le.symbol.declarations[0]);Wt?Ce.push(xe(tt,Wt)):Ce.push({text:tt});break;case 166:R.assertNode(Le,Tu),Ge(Le.left),Ce.push({text:"."}),Ge(Le.right);break;case 182:R.assertNode(Le,kk),Le.assertsModifier&&Ce.push({text:"asserts "}),Ge(Le.parameterName),Le.type&&(Ce.push({text:" is "}),Ge(Le.type));break;case 183:R.assertNode(Le,If),Ge(Le.typeName),Le.typeArguments&&(Ce.push({text:"<"}),Ie(Le.typeArguments,", "),Ce.push({text:">"}));break;case 168:R.assertNode(Le,fl),Le.modifiers&&Ie(Le.modifiers," "),Ge(Le.name),Le.constraint&&(Ce.push({text:" extends "}),Ge(Le.constraint)),Le.default&&(Ce.push({text:" = "}),Ge(Le.default));break;case 169:R.assertNode(Le,To),Le.modifiers&&Ie(Le.modifiers," "),Le.dotDotDotToken&&Ce.push({text:"..."}),Ge(Le.name),Le.questionToken&&Ce.push({text:"?"}),Le.type&&(Ce.push({text:": "}),Ge(Le.type));break;case 185:R.assertNode(Le,xR),Ce.push({text:"new "}),ve(Le),Ce.push({text:" => "}),Ge(Le.type);break;case 186:R.assertNode(Le,YI),Ce.push({text:"typeof "}),Ge(Le.exprName),Le.typeArguments&&(Ce.push({text:"<"}),Ie(Le.typeArguments,", "),Ce.push({text:">"}));break;case 187:R.assertNode(Le,gp),Ce.push({text:"{"}),Le.members.length&&(Ce.push({text:" "}),Ie(Le.members,"; "),Ce.push({text:" "})),Ce.push({text:"}"});break;case 188:R.assertNode(Le,wk),Ge(Le.elementType),Ce.push({text:"[]"});break;case 189:R.assertNode(Le,$I),Ce.push({text:"["}),Ie(Le.elements,", "),Ce.push({text:"]"});break;case 202:R.assertNode(Le,RR),Le.dotDotDotToken&&Ce.push({text:"..."}),Ge(Le.name),Le.questionToken&&Ce.push({text:"?"}),Ce.push({text:": "}),Ge(Le.type);break;case 190:R.assertNode(Le,O4),Ge(Le.type),Ce.push({text:"?"});break;case 191:R.assertNode(Le,W4),Ce.push({text:"..."}),Ge(Le.type);break;case 192:R.assertNode(Le,Kv),Ie(Le.types," | ");break;case 193:R.assertNode(Le,QI),Ie(Le.types," & ");break;case 194:R.assertNode(Le,ZI),Ge(Le.checkType),Ce.push({text:" extends "}),Ge(Le.extendsType),Ce.push({text:" ? "}),Ge(Le.trueType),Ce.push({text:" : "}),Ge(Le.falseType);break;case 195:R.assertNode(Le,CT),Ce.push({text:"infer "}),Ge(Le.typeParameter);break;case 196:R.assertNode(Le,NT),Ce.push({text:"("}),Ge(Le.type),Ce.push({text:")"});break;case 198:R.assertNode(Le,PT),Ce.push({text:`${ca(Le.operator)} `}),Ge(Le.type);break;case 199:R.assertNode(Le,MT),Ge(Le.objectType),Ce.push({text:"["}),Ge(Le.indexType),Ce.push({text:"]"});break;case 200:R.assertNode(Le,DR),Ce.push({text:"{ "}),Le.readonlyToken&&(Le.readonlyToken.kind===40?Ce.push({text:"+"}):Le.readonlyToken.kind===41&&Ce.push({text:"-"}),Ce.push({text:"readonly "})),Ce.push({text:"["}),Ge(Le.typeParameter),Le.nameType&&(Ce.push({text:" as "}),Ge(Le.nameType)),Ce.push({text:"]"}),Le.questionToken&&(Le.questionToken.kind===40?Ce.push({text:"+"}):Le.questionToken.kind===41&&Ce.push({text:"-"}),Ce.push({text:"?"})),Ce.push({text:": "}),Le.type&&Ge(Le.type),Ce.push({text:"; }"});break;case 201:R.assertNode(Le,Jv),Ge(Le.literal);break;case 184:R.assertNode(Le,gh),ve(Le),Ce.push({text:" => "}),Ge(Le.type);break;case 205:R.assertNode(Le,ig),Le.isTypeOf&&Ce.push({text:"typeof "}),Ce.push({text:"import("}),Ge(Le.argument),Le.assertions&&(Ce.push({text:", { assert: "}),Ie(Le.assertions.assertClause.elements,", "),Ce.push({text:" }"})),Ce.push({text:")"}),Le.qualifier&&(Ce.push({text:"."}),Ge(Le.qualifier)),Le.typeArguments&&(Ce.push({text:"<"}),Ie(Le.typeArguments,", "),Ce.push({text:">"}));break;case 171:R.assertNode(Le,_p),(Et=Le.modifiers)!=null&&Et.length&&(Ie(Le.modifiers," "),Ce.push({text:" "})),Ge(Le.name),Le.questionToken&&Ce.push({text:"?"}),Le.type&&(Ce.push({text:": "}),Ge(Le.type));break;case 181:R.assertNode(Le,V0),Ce.push({text:"["}),Ie(Le.parameters,", "),Ce.push({text:"]"}),Le.type&&(Ce.push({text:": "}),Ge(Le.type));break;case 173:R.assertNode(Le,hh),(be=Le.modifiers)!=null&&be.length&&(Ie(Le.modifiers," "),Ce.push({text:" "})),Ge(Le.name),Le.questionToken&&Ce.push({text:"?"}),ve(Le),Le.type&&(Ce.push({text:": "}),Ge(Le.type));break;case 179:R.assertNode(Le,XI),ve(Le),Le.type&&(Ce.push({text:": "}),Ge(Le.type));break;case 207:R.assertNode(Le,j0),Ce.push({text:"["}),Ie(Le.elements,", "),Ce.push({text:"]"});break;case 206:R.assertNode(Le,tm),Ce.push({text:"{"}),Le.elements.length&&(Ce.push({text:" "}),Ie(Le.elements,", "),Ce.push({text:" "})),Ce.push({text:"}"});break;case 208:R.assertNode(Le,Xa),Ge(Le.name);break;case 224:R.assertNode(Le,Xv),Ce.push({text:ca(Le.operator)}),Ge(Le.operand);break;case 203:R.assertNode(Le,_ae),Ge(Le.head),Le.templateSpans.forEach(Ge);break;case 16:R.assertNode(Le,KI),Ce.push({text:De(Le)});break;case 204:R.assertNode(Le,eH),Ge(Le.type),Ge(Le.literal);break;case 17:R.assertNode(Le,YU),Ce.push({text:De(Le)});break;case 18:R.assertNode(Le,M4),Ce.push({text:De(Le)});break;case 197:R.assertNode(Le,Ok),Ce.push({text:"this"});break;default:R.failBadSyntaxKind(Le)}}function ve(Le){Le.typeParameters&&(Ce.push({text:"<"}),Ie(Le.typeParameters,", "),Ce.push({text:">"})),Ce.push({text:"("}),Ie(Le.parameters,", "),Ce.push({text:")"})}function Ie(Le,Et){Le.forEach((be,ze)=>{ze>0&&Ce.push({text:Et}),Ge(be)})}function De(Le){switch(Le.kind){case 11:return p===0?`'${Zh(Le.text,39)}'`:`"${Zh(Le.text,34)}"`;case 16:case 17:case 18:{let Et=Le.rawText??Lj(Zh(Le.text,96));switch(Le.kind){case 16:return"`"+Et+"${";case 17:return"}"+Et+"${";case 18:return"}"+Et+"`"}}}return Le.text}}function re(fe){return fe==="undefined"}function pe(fe){if((M0(fe)||Oi(fe)&&Hx(fe))&&fe.initializer){let ne=ms(fe.initializer);return!(ce(ne)||U0(ne)||La(ne)||cT(ne))}return!0}function xe(fe,ne){let he=ne.getSourceFile();return{text:fe,span:xu(ne,he),file:he.fileName}}}var i2e,Dtt=bt({"src/services/inlayHints.ts"(){"use strict";ai(),i2e=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`)}}),_Q={};Ra(_Q,{provideInlayHints:()=>Rtt});var Ctt=bt({"src/services/_namespaces/ts.InlayHints.ts"(){"use strict";Dtt()}});function Ntt(e,t){let r=[];return qq(e,i=>{for(let o of Mtt(i)){let s=Ym(o)&&o.tags&&Vr(o.tags,d=>d.kind===334&&(d.tagName.escapedText==="inheritDoc"||d.tagName.escapedText==="inheritdoc"));if(o.comment===void 0&&!s||Ym(o)&&i.kind!==353&&i.kind!==345&&o.tags&&o.tags.some(d=>d.kind===353||d.kind===345)&&!o.tags.some(d=>d.kind===348||d.kind===349))continue;let l=o.comment?xD(o.comment,t):[];s&&s.comment&&(l=l.concat(xD(s.comment,t))),zo(r,l,Ptt)||r.push(l)}}),pm(DG(r,[uD()]))}function Ptt(e,t){return EL(e,t,(r,i)=>r.kind===i.kind&&r.text===i.text)}function Mtt(e){switch(e.kind){case 348:case 355:return[e];case 345:case 353:return[e,e.parent];case 330:if(kR(e.parent))return[e.parent.parent];default:return gj(e)}}function Ltt(e,t){let r=[];return qq(e,i=>{let o=iE(i);if(!(o.some(s=>s.kind===353||s.kind===345)&&!o.some(s=>s.kind===348||s.kind===349)))for(let s of o)r.push({name:s.tagName.text,text:s2e(s,t)}),r.push(...o2e(a2e(s),t))}),r}function o2e(e,t){return va(e,r=>bo([{name:r.tagName.text,text:s2e(r,t)}],o2e(a2e(r),t)))}function a2e(e){return iN(e)&&e.isNameFirst&&e.typeExpression&&FT(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function xD(e,t){return typeof e=="string"?[sf(e)]:va(e,r=>r.kind===328?[sf(r.text)]:Rde(r,t))}function s2e(e,t){let{comment:r,kind:i}=e,o=ktt(i);switch(i){case 356:let d=e.typeExpression;return d?s(d):r===void 0?void 0:xD(r,t);case 336:return s(e.class);case 335:return s(e.class);case 352:let p=e,h=[];if(p.constraint&&h.push(sf(p.constraint.getText())),Nn(p.typeParameters)){Nn(h)&&h.push(kl());let y=p.typeParameters[p.typeParameters.length-1];gn(p.typeParameters,E=>{h.push(o(E.getText())),y!==E&&h.push(qd(28),kl())})}return r&&h.push(kl(),...xD(r,t)),h;case 351:case 357:return s(e.typeExpression);case 353:case 345:case 355:case 348:case 354:let{name:m}=e;return m?s(m):r===void 0?void 0:xD(r,t);default:return r===void 0?void 0:xD(r,t)}function s(d){return l(d.getText())}function l(d){return r?d.match(/^https?$/)?[sf(d),...xD(r,t)]:[o(d),kl(),...xD(r,t)]:[sf(d)]}}function ktt(e){switch(e){case 348:return Sde;case 355:return Tde;case 352:return Ide;case 353:case 345:return Ade;default:return sf}}function wtt(){return c2e||(c2e=mn(a_e,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:C1.SortText.LocationPriority})))}function Ott(){return d2e||(d2e=mn(a_e,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:C1.SortText.LocationPriority})))}function l2e(e){return{name:e,kind:"",kindModifiers:"",displayParts:[sf(e)],documentation:Xe,tags:void 0,codeActions:void 0}}function Wtt(e){if(!Fe(e.name))return Xe;let t=e.name.text,r=e.parent,i=r.parent;return Yo(i)?to(i.parameters,o=>{if(!Fe(o.name))return;let s=o.name.text;if(!(r.tags.some(l=>l!==e&&$m(l)&&Fe(l.name)&&l.name.escapedText===s)||t!==void 0&&!ao(s,t)))return{name:s,kind:"parameter",kindModifiers:"",sortText:C1.SortText.LocationPriority}}):[]}function Ftt(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[sf(e)],documentation:Xe,tags:void 0,codeActions:void 0}}function ztt(e,t,r,i){let o=so(t,r),s=Fn(o,Ym);if(s&&(s.comment!==void 0||Nn(s.tags)))return;let l=o.getStart(t);if(!s&&l0;if(N&&!j){let K=D+e+S+" * ",Y=l===r?e+S:"";return{newText:K+e+N+S+w+Y,caretOffset:K.length}}return{newText:D+w,caretOffset:3}}function Btt(e,t){let{text:r}=e,i=rm(t,e),o=i;for(;o<=t&&y_(r.charCodeAt(o));o++);return r.slice(i,o)}function Gtt(e,t,r,i){return e.map(({name:o,dotDotDotToken:s},l)=>{let d=o.kind===80?o.text:"param"+l;return`${r} * @param ${t?s?"{...any} ":"{any} ":""}${d}${i}`}).join("")}function Vtt(e,t){return`${e} * @returns${t}`}function jtt(e,t){return Ore(e,r=>o_e(r,t))}function o_e(e,t){switch(e.kind){case 262:case 218:case 174:case 176:case 173:case 219:let r=e;return{commentOwner:e,parameters:r.parameters,hasReturn:hB(r,t)};case 303:return o_e(e.initializer,t);case 263:case 264:case 266:case 306:case 265:return{commentOwner:e};case 171:{let o=e;return o.type&&gh(o.type)?{commentOwner:e,parameters:o.type.parameters,hasReturn:hB(o.type,t)}:{commentOwner:e}}case 243:{let s=e.declarationList.declarations,l=s.length===1&&s[0].initializer?Utt(s[0].initializer):void 0;return l?{commentOwner:e,parameters:l.parameters,hasReturn:hB(l,t)}:{commentOwner:e}}case 312:return"quit";case 267:return e.parent.kind===267?void 0:{commentOwner:e};case 244:return o_e(e.expression,t);case 226:{let o=e;return zl(o)===0?"quit":Yo(o.right)?{commentOwner:e,parameters:o.right.parameters,hasReturn:hB(o.right,t)}:{commentOwner:e}}case 172:let i=e.initializer;if(i&&(Ms(i)||Fs(i)))return{commentOwner:e,parameters:i.parameters,hasReturn:hB(i,t)}}}function hB(e,t){return!!t?.generateReturnInDocTemplate&&(gh(e)||Fs(e)&&ht(e.body)||Ws(e)&&e.body&&Ho(e.body)&&!!x0(e.body,r=>r))}function Utt(e){for(;e.kind===217;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return Vr(e.members,Pl)}}var a_e,c2e,d2e,u2e,Htt=bt({"src/services/jsDoc.ts"(){"use strict";ai(),a_e=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","link","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],u2e=l2e}}),ME={};Ra(ME,{getDocCommentTemplateAtPosition:()=>ztt,getJSDocParameterNameCompletionDetails:()=>Ftt,getJSDocParameterNameCompletions:()=>Wtt,getJSDocTagCompletionDetails:()=>l2e,getJSDocTagCompletions:()=>Ott,getJSDocTagNameCompletionDetails:()=>u2e,getJSDocTagNameCompletions:()=>wtt,getJsDocCommentsFromDeclarations:()=>Ntt,getJsDocTagsFromDeclarations:()=>Ltt});var Ktt=bt({"src/services/_namespaces/ts.JsDoc.ts"(){"use strict";Htt()}});function Jtt(e,t,r,i,o,s){let l=pr.ChangeTracker.fromContext({host:r,formatContext:t,preferences:o}),d=s==="SortAndCombine"||s==="All",p=d,h=s==="RemoveUnused"||s==="All",m=hQ(e,e.statements.filter(Mc)),y=dnt(o,d?()=>m2e(m,o)===2:void 0),E=A=>(h&&(A=Xtt(A,e,i)),p&&(A=p2e(A,y,e,o)),d&&(A=by(A,(N,D)=>u_e(N,D,y))),A);m.forEach(A=>S(A,E)),s!=="RemoveUnused"&&unt(e).forEach(A=>S(A,N=>s_e(N,y,o)));for(let A of e.statements.filter(Pd)){if(!A.body)continue;if(hQ(e,A.body.statements.filter(Mc)).forEach(D=>S(D,E)),s!=="RemoveUnused"){let D=A.body.statements.filter(Xl);S(D,w=>s_e(w,y,o))}}return l.getChanges();function S(A,N){if(Nn(A)===0)return;lr(A[0],1024);let D=p?GC(A,K=>gB(K.moduleSpecifier)):[A],w=d?by(D,(K,Y)=>c_e(K[0].moduleSpecifier,Y[0].moduleSpecifier,y)):D,j=va(w,K=>gB(K[0].moduleSpecifier)||K[0].moduleSpecifier===void 0?N(K):K);if(j.length===0)l.deleteNodes(e,A,{leadingTriviaOption:pr.LeadingTriviaOption.Exclude,trailingTriviaOption:pr.TrailingTriviaOption.Include},!0);else{let K={leadingTriviaOption:pr.LeadingTriviaOption.Exclude,trailingTriviaOption:pr.TrailingTriviaOption.Include,suffix:Jy(r,t.options)};l.replaceNodeWithNodes(e,A[0],j,K);let Y=l.nodeHasTrailingComment(e,A[0],K);l.deleteNodes(e,A.slice(1),{trailingTriviaOption:pr.TrailingTriviaOption.Include},Y)}}}function hQ(e,t){let r=Ry(e.languageVersion,!1,e.languageVariant),i=[],o=0;for(let s of t)i[o]&&qtt(e,s,r)&&o++,i[o]||(i[o]=[]),i[o].push(s);return i}function qtt(e,t,r){let i=t.getFullStart(),o=t.getStart();r.setText(e.text,i,o-i);let s=0;for(;r.getTokenStart()=2))return!0;return!1}function Xtt(e,t,r){let i=r.getTypeChecker(),o=r.getCompilerOptions(),s=i.getJsxNamespace(t),l=i.getJsxFragmentFactory(t),d=!!(t.transformFlags&2),p=[];for(let m of e){let{importClause:y,moduleSpecifier:E}=m;if(!y){p.push(m);continue}let{name:S,namedBindings:A}=y;if(S&&!h(S)&&(S=void 0),A)if(Yv(A))h(A.name)||(A=void 0);else{let N=A.elements.filter(D=>h(D.name));N.lengthCa(i)&&i.text===r)}function gB(e){return e!==void 0&&ss(e)?e.text:void 0}function $tt(e,t,r,i){let o=gQ(t);return p2e(e,o,r,i)}function p2e(e,t,r,i){if(e.length===0)return e;let o=hW(e,l=>{if(l.attributes){let d=l.attributes.token+" ";for(let p of ZS(l.attributes.elements,(h,m)=>Gd(h.name.text,m.name.text)))d+=p.name.text+":",d+=ss(p.value)?`"${p.value.text}"`:p.value.getText()+" ";return d}return""}),s=[];for(let l in o){let d=o[l],{importWithoutClause:p,typeOnlyImports:h,regularImports:m}=Qtt(d);p&&s.push(p);for(let y of[m,h]){let E=y===h,{defaultImports:S,namespaceImports:A,namedImports:N}=y;if(!E&&S.length===1&&A.length===1&&N.length===0){let ee=S[0];s.push(UO(ee,ee.importClause.name,A[0].importClause.namedBindings));continue}let D=by(A,(ee,me)=>t(ee.importClause.namedBindings.name.text,me.importClause.namedBindings.name.text));for(let ee of D)s.push(UO(ee,void 0,ee.importClause.namedBindings));let w=Jc(S),j=Jc(N),K=w??j;if(!K)continue;let Y,B=[];if(S.length===1)Y=S[0].importClause.name;else for(let ee of S)B.push(L.createImportSpecifier(!1,L.createIdentifier("default"),ee.importClause.name));B.push(...ant(N));let ce=L.createNodeArray(f2e(B,t,i),j?.importClause.namedBindings.elements.hasTrailingComma),z=ce.length===0?Y?void 0:L.createNamedImports(Xe):j?L.updateNamedImports(j.importClause.namedBindings,ce):L.createNamedImports(ce);r&&z&&j?.importClause.namedBindings&&!IT(j.importClause.namedBindings,r)&&lr(z,2),E&&Y&&z?(s.push(UO(K,Y,void 0)),s.push(UO(j??K,void 0,z))):s.push(UO(K,Y,z))}}return s}function Qtt(e){let t,r={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]};for(let o of e){if(o.importClause===void 0){t=t||o;continue}let s=o.importClause.isTypeOnly?r:i,{name:l,namedBindings:d}=o.importClause;l&&s.defaultImports.push(o),d&&(Yv(d)?s.namespaceImports.push(o):s.namedImports.push(o))}return{importWithoutClause:t,typeOnlyImports:r,regularImports:i}}function Ztt(e,t,r){let i=gQ(t);return s_e(e,i,r)}function s_e(e,t,r){if(e.length===0)return e;let{exportWithoutClause:i,namedExports:o,typeOnlyExports:s}=d(e),l=[];i&&l.push(i);for(let p of[o,s]){if(p.length===0)continue;let h=[];h.push(...va(p,E=>E.exportClause&&xf(E.exportClause)?E.exportClause.elements:Xe));let m=f2e(h,t,r),y=p[0];l.push(L.updateExportDeclaration(y,y.modifiers,y.isTypeOnly,y.exportClause&&(xf(y.exportClause)?L.updateNamedExports(y.exportClause,m):L.updateNamespaceExport(y.exportClause,y.exportClause.name)),y.moduleSpecifier,y.attributes))}return l;function d(p){let h,m=[],y=[];for(let E of p)E.exportClause===void 0?h=h||E:E.isTypeOnly?y.push(E):m.push(E);return{exportWithoutClause:h,namedExports:m,typeOnlyExports:y}}}function UO(e,t,r){return L.updateImportDeclaration(e,e.modifiers,L.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,r),e.moduleSpecifier,e.attributes)}function f2e(e,t,r){return by(e,(i,o)=>l_e(i,o,t,r))}function l_e(e,t,r,i){switch(i?.organizeImportsTypeOrder){case"first":return Ev(t.isTypeOnly,e.isTypeOnly)||r(e.name.text,t.name.text);case"inline":return r(e.name.text,t.name.text);default:return Ev(e.isTypeOnly,t.isTypeOnly)||r(e.name.text,t.name.text)}}function ent(e,t,r){let i=gQ(!!r);return c_e(e,t,i)}function c_e(e,t,r){let i=e===void 0?void 0:gB(e),o=t===void 0?void 0:gB(t);return Ev(i===void 0,o===void 0)||Ev(qc(i),qc(o))||r(i,o)}function d_e(e){var t;switch(e.kind){case 271:return(t=ri(e.moduleReference,bh))==null?void 0:t.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function tnt(e,t){return m2e(hQ(e,e.statements.filter(Mc)),t)}function m2e(e,t){let r=RD(t,!1),i=RD(t,!0),o=3,s=!1;for(let l of e){if(l.length>1){let p=BC(l,h=>{var m;return((m=ri(h.moduleSpecifier,Ca))==null?void 0:m.text)??""},r,i);if(p&&(o&=p,s=!0),!o)return o}let d=Vr(l,p=>{var h,m;return((m=ri((h=p.importClause)==null?void 0:h.namedBindings,Fg))==null?void 0:m.elements.length)>1});if(d){let p=p_e(d.importClause.namedBindings.elements,t);if(p&&(o&=p,s=!0),!o)return o}if(o!==3)return o}return s?0:o}function nnt(e,t){let r=RD(t,!1),i=RD(t,!0);return BC(e,o=>gB(d_e(o))||"",r,i)}function rnt(e,t,r){let i=Ey(e,t,Qs,(o,s)=>u_e(o,s,r));return i<0?~i:i}function int(e,t,r,i){let o=Ey(e,t,Qs,(s,l)=>l_e(s,l,r,i));return o<0?~o:o}function u_e(e,t,r){return c_e(d_e(e),d_e(t),r)||ont(e,t)}function ont(e,t){return Zs(_2e(e),_2e(t))}function _2e(e){var t;switch(e.kind){case 272:return e.importClause?e.importClause.isTypeOnly?1:((t=e.importClause.namedBindings)==null?void 0:t.kind)===274?2:e.importClause.name?3:4:0;case 271:return 5;case 243:return 6}}function ant(e){return va(e,t=>mn(snt(t),r=>r.name&&r.propertyName&&r.name.escapedText===r.propertyName.escapedText?L.updateImportSpecifier(r,r.isTypeOnly,void 0,r.name):r))}function snt(e){var t;return(t=e.importClause)!=null&&t.namedBindings&&Fg(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function gQ(e){return e?sne:Gd}function lnt(e,t){let r=cnt(t),i=t.organizeImportsCaseFirst??!1,o=t.organizeImportsNumericCollation??!1,s=t.organizeImportsAccentCollation??!0,l=e?s?"accent":"base":s?"variant":"case";return new Intl.Collator(r,{usage:"sort",caseFirst:i||"false",sensitivity:l,numeric:o}).compare}function cnt(e){let t=e.organizeImportsLocale;t==="auto"&&(t=lne()),t===void 0&&(t="en");let r=Intl.Collator.supportedLocalesOf(t);return r.length?r[0]:"en"}function RD(e,t){return(e.organizeImportsCollation??"ordinal")==="unicode"?lnt(t,e):gQ(t)}function dnt(e,t){let r=typeof e.organizeImportsIgnoreCase=="boolean"?e.organizeImportsIgnoreCase:t?.()??!1;return RD(e,r)}function unt(e){let t=[],r=e.statements,i=Nn(r),o=0,s=0;for(;ohQ(e,l))}var h2e,p_e,pnt=bt({"src/services/organizeImports.ts"(){"use strict";ai(),h2e=class{has([e,t]){return this._lastPreferences!==t||!this._cache?!1:this._cache.has(e)}get([e,t]){if(!(this._lastPreferences!==t||!this._cache))return this._cache.get(e)}set([e,t],r){this._lastPreferences!==t&&(this._lastPreferences=t,this._cache=void 0),this._cache??(this._cache=new WeakMap),this._cache.set(e,r)}},p_e=ane((e,t)=>{switch(t.organizeImportsTypeOrder){case"first":if(!fW(e,(o,s)=>Ev(s.isTypeOnly,o.isTypeOnly)))return 0;break;case"inline":if(!fW(e,(o,s)=>bx(!0)(o.name.text,s.name.text)))return 0;break;default:if(!fW(e,(o,s)=>Ev(o.isTypeOnly,s.isTypeOnly)))return 0;break}let r=RD(t,!1),i=RD(t,!0);if(t.organizeImportsTypeOrder!=="inline"){let{type:o,regular:s}=hW(e,p=>p.isTypeOnly?"type":"regular"),l=o?.length?BC(o,p=>p.name.text,r,i):void 0,d=s?.length?BC(s,p=>p.name.text??"",r,i):void 0;return l===void 0?d??0:d===void 0?l:l===0||d===0?0:d&l}return BC(e,o=>o.name.text,r,i)},new h2e)}}),Rm={};Ra(Rm,{coalesceExports:()=>Ztt,coalesceImports:()=>$tt,compareImportOrExportSpecifiers:()=>l_e,compareImportsOrRequireStatements:()=>u_e,compareModuleSpecifiers:()=>ent,detectImportDeclarationSorting:()=>nnt,detectImportSpecifierSorting:()=>p_e,detectSorting:()=>tnt,getImportDeclarationInsertionIndex:()=>rnt,getImportSpecifierInsertionIndex:()=>int,getOrganizeImportsComparer:()=>RD,organizeImports:()=>Jtt});var fnt=bt({"src/services/_namespaces/ts.OrganizeImports.ts"(){"use strict";pnt()}});function mnt(e,t){let r=[];return _nt(e,t,r),hnt(e,r),r.sort((i,o)=>i.textSpan.start-o.textSpan.start)}function _nt(e,t,r){let i=40,o=0,s=[...e.statements,e.endOfFileToken],l=s.length;for(;o1&&i.push(yB(s,l,"comment"))}}function y2e(e,t,r,i){UI(e)||f_e(e.pos,t,r,i)}function yB(e,t,r){return P1(dc(e,t),r)}function gnt(e,t){switch(e.kind){case 241:if(Yo(e.parent))return ynt(e.parent,e,t);switch(e.parent.kind){case 246:case 249:case 250:case 248:case 245:case 247:case 254:case 299:return m(e.parent);case 258:let S=e.parent;if(S.tryBlock===e)return m(e.parent);if(S.finallyBlock===e){let A=hs(S,98,t);if(A)return m(A)}default:return P1(xu(e,t),"code")}case 268:return m(e.parent);case 263:case 231:case 264:case 266:case 269:case 187:case 206:return m(e);case 189:return m(e,!1,!$I(e.parent),23);case 296:case 297:return y(e.statements);case 210:return h(e);case 209:return h(e,23);case 284:return s(e);case 288:return l(e);case 285:case 286:return d(e.attributes);case 228:case 15:return p(e);case 207:return m(e,!1,!Xa(e.parent),23);case 219:return o(e);case 213:return i(e);case 217:return E(e);case 275:case 279:case 300:return r(e)}function r(S){if(!S.elements.length)return;let A=hs(S,19,t),N=hs(S,20,t);if(!(!A||!N||Sf(A.pos,N.pos,t)))return yQ(A,N,S,t,!1,!1)}function i(S){if(!S.arguments.length)return;let A=hs(S,21,t),N=hs(S,22,t);if(!(!A||!N||Sf(A.pos,N.pos,t)))return yQ(A,N,S,t,!1,!0)}function o(S){if(Ho(S.body)||Wu(S.body)||Sf(S.body.getFullStart(),S.body.getEnd(),t))return;let A=dc(S.body.getFullStart(),S.body.getEnd());return P1(A,"code",xu(S))}function s(S){let A=dc(S.openingElement.getStart(t),S.closingElement.getEnd()),N=S.openingElement.tagName.getText(t),D="<"+N+">...";return P1(A,"code",A,!1,D)}function l(S){let A=dc(S.openingFragment.getStart(t),S.closingFragment.getEnd());return P1(A,"code",A,!1,"<>...")}function d(S){if(S.properties.length!==0)return yB(S.getStart(t),S.getEnd(),"code")}function p(S){if(!(S.kind===15&&S.text.length===0))return yB(S.getStart(t),S.getEnd(),"code")}function h(S,A=19){return m(S,!1,!pu(S.parent)&&!ra(S.parent),A)}function m(S,A=!1,N=!0,D=19,w=D===19?20:24){let j=hs(e,D,t),K=hs(e,w,t);return j&&K&&yQ(j,K,S,t,A,N)}function y(S){return S.length?P1(tb(S),"code"):void 0}function E(S){if(Sf(S.getStart(),S.getEnd(),t))return;let A=dc(S.getStart(),S.getEnd());return P1(A,"code",xu(S))}}function ynt(e,t,r){let i=vnt(e,t,r),o=hs(t,20,r);return i&&o&&yQ(i,o,e,r,e.kind!==219)}function yQ(e,t,r,i,o=!1,s=!0){let l=dc(s?e.getFullStart():e.getStart(i),t.getEnd());return P1(l,"code",xu(r,i),o)}function P1(e,t,r=e,i=!1,o="..."){return{textSpan:e,kind:t,hintSpan:r,bannerText:o,autoCollapse:i}}function vnt(e,t,r){if(toe(e.parameters,r)){let i=hs(e,21,r);if(i)return i}return hs(t,19,r)}var v2e,bnt=bt({"src/services/outliningElementsCollector.ts"(){"use strict";ai(),v2e=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),vQ={};Ra(vQ,{collectElements:()=>mnt});var Ent=bt({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){"use strict";bnt()}});function Snt(e,t,r,i){let o=zz(Fu(t,r));if(E2e(o)){let s=Tnt(o,e.getTypeChecker(),t,e,i);if(s)return s}return bQ(f.You_cannot_rename_this_element)}function Tnt(e,t,r,i,o){let s=t.getSymbolAtLocation(e);if(!s){if(ss(e)){let E=Fz(e,t);if(E&&(E.flags&128||E.flags&1048576&&oo(E.types,S=>!!(S.flags&128))))return m_e(e.text,e.text,"string","",e,r)}else if(Eq(e)){let E=uc(e);return m_e(E,E,"label","",e,r)}return}let{declarations:l}=s;if(!l||l.length===0)return;if(l.some(E=>Ant(i,E)))return bQ(f.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(Fe(e)&&e.escapedText==="default"&&s.parent&&s.parent.flags&1536)return;if(ss(e)&&W2(e))return o.allowRenameOfImportPath?xnt(e,r,s):void 0;let d=Int(r,s,t,o);if(d)return bQ(d);let p=Yy.getSymbolKind(t,s,e),h=Dde(e)||Qp(e)&&e.parent.kind===167?Yf(Xf(e)):void 0,m=h||t.symbolToString(s),y=h||t.getFullyQualifiedName(s);return m_e(m,y,p,Yy.getSymbolModifiers(t,s),e,r)}function Ant(e,t){let r=t.getSourceFile();return e.isSourceFileDefaultLibrary(r)&&Sl(r.fileName,".d.ts")}function Int(e,t,r,i){if(!i.providePrefixAndSuffixTextForRename&&t.flags&2097152){let l=t.declarations&&Vr(t.declarations,d=>Qu(d));l&&!l.propertyName&&(t=r.getAliasedSymbol(t))}let{declarations:o}=t;if(!o)return;let s=b2e(e.path);if(s===void 0)return gt(o,l=>pO(l.getSourceFile().path))?f.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(let l of o){let d=b2e(l.getSourceFile().path);if(d){let p=Math.min(s.length,d.length);for(let h=0;h<=p;h++)if(Gd(s[h],d[h])!==0)return f.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function b2e(e){let t=Wc(e),r=t.lastIndexOf("node_modules");if(r!==-1)return t.slice(0,r+2)}function xnt(e,t,r){if(!qc(e.text))return bQ(f.You_cannot_rename_a_module_via_a_global_import);let i=r.declarations&&Vr(r.declarations,Yi);if(!i)return;let o=El(e.text,"/index")||El(e.text,"/index.js")?void 0:une(Su(i.fileName),"/index"),s=o===void 0?i.fileName:o,l=o===void 0?"module":"directory",d=e.text.lastIndexOf("/")+1,p=_d(e.getStart(t)+1+d,e.text.length-d);return{canRename:!0,fileToRename:s,kind:l,displayName:s,fullDisplayName:e.text,kindModifiers:"",triggerSpan:p}}function m_e(e,t,r,i,o,s){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:Rnt(o,s)}}function bQ(e){return{canRename:!1,localizedErrorMessage:ko(e)}}function Rnt(e,t){let r=e.getStart(t),i=e.getWidth(t);return ss(e)&&(r+=1,i-=2),_d(r,i)}function E2e(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return kz(e);default:return!1}}var Dnt=bt({"src/services/rename.ts"(){"use strict";ai()}}),vB={};Ra(vB,{getRenameInfo:()=>Snt,nodeIsEligibleForRename:()=>E2e});var Cnt=bt({"src/services/_namespaces/ts.Rename.ts"(){"use strict";Dnt()}});function Nnt(e,t,r,i,o){let s=e.getTypeChecker(),l=Bz(t,r);if(!l)return;let d=!!i&&i.kind==="characterTyped";if(d&&(y1(t,r,l)||Uy(t,r)))return;let p=!!i&&i.kind==="invoked",h=Jnt(l,r,t,s,p);if(!h)return;o.throwIfCancellationRequested();let m=Pnt(h,s,t,l,d);return o.throwIfCancellationRequested(),m?s.runWithCancellationToken(o,y=>m.kind===0?C2e(m.candidates,m.resolvedSignature,h,t,y):Xnt(m.symbol,h,t,y)):lu(t)?Lnt(h,e,o):void 0}function Pnt({invocation:e,argumentCount:t},r,i,o,s){switch(e.kind){case 0:{if(s&&!Mnt(o,e.node,i))return;let l=[],d=r.getResolvedSignatureForSignatureHelp(e.node,l,t);return l.length===0?void 0:{kind:0,candidates:l,resolvedSignature:d}}case 1:{let{called:l}=e;if(s&&!S2e(o,i,Fe(l)?l.parent:l))return;let d=Pq(l,t,r);if(d.length!==0)return{kind:0,candidates:d,resolvedSignature:Va(d)};let p=r.getSymbolAtLocation(l);return p&&{kind:1,symbol:p}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return R.assertNever(e)}}function Mnt(e,t,r){if(!v_(t))return!1;let i=t.getChildren(r);switch(e.kind){case 21:return zo(i,e);case 28:{let o=Wz(e);return!!o&&zo(i,o)}case 30:return S2e(e,r,t.expression);default:return!1}}function Lnt(e,t,r){if(e.invocation.kind===2)return;let i=R2e(e.invocation),o=wr(i)?i.name.text:void 0,s=t.getTypeChecker();return o===void 0?void 0:Wl(t.getSourceFiles(),l=>Wl(l.getNamedDeclarations().get(o),d=>{let p=d.symbol&&s.getTypeOfSymbolAtLocation(d.symbol,d),h=p&&p.getCallSignatures();if(h&&h.length)return s.runWithCancellationToken(r,m=>C2e(h,h[0],e,l,m,!0))}))}function S2e(e,t,r){let i=e.getFullStart(),o=e.parent;for(;o;){let s=Tc(i,t,o,!0);if(s)return of(r,s);o=o.parent}return R.fail("Could not find preceding token")}function knt(e,t,r,i){let o=A2e(e,t,r,i);return!o||o.isTypeParameterList||o.invocation.kind!==0?void 0:{invocation:o.invocation.node,argumentCount:o.argumentCount,argumentIndex:o.argumentIndex}}function T2e(e,t,r,i){let o=wnt(e,r,i);if(!o)return;let{list:s,argumentIndex:l}=o,d=jnt(i,s);l!==0&&R.assertLessThan(l,d);let p=Hnt(s,r);return{list:s,argumentIndex:l,argumentCount:d,argumentsSpan:p}}function wnt(e,t,r){if(e.kind===30||e.kind===21)return{list:qnt(e.parent,e,t),argumentIndex:0};{let i=Wz(e);return i&&{list:i,argumentIndex:Vnt(r,i,e)}}}function A2e(e,t,r,i){let{parent:o}=e;if(v_(o)){let s=o,l=T2e(e,t,r,i);if(!l)return;let{list:d,argumentIndex:p,argumentCount:h,argumentsSpan:m}=l;return{isTypeParameterList:!!o.typeArguments&&o.typeArguments.pos===d.pos,invocation:{kind:0,node:s},argumentsSpan:m,argumentIndex:p,argumentCount:h}}else{if(HI(e)&&H0(o))return Zw(e,t,r)?h_e(o,0,r):void 0;if(KI(e)&&o.parent.kind===215){let s=o,l=s.parent;R.assert(s.kind===228);let d=Zw(e,t,r)?0:1;return h_e(l,d,r)}else if(uP(o)&&H0(o.parent.parent)){let s=o,l=o.parent.parent;if(M4(e)&&!Zw(e,t,r))return;let d=s.parent.templateSpans.indexOf(s),p=Unt(d,e,t,r);return h_e(l,p,r)}else if(su(o)){let s=o.attributes.pos,l=Pa(r.text,o.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:o},argumentsSpan:_d(s,l-s),argumentIndex:0,argumentCount:1}}else{let s=Mq(e,r);if(s){let{called:l,nTypeArguments:d}=s,p={kind:1,called:l},h=dc(l.getStart(r),e.end);return{isTypeParameterList:!0,invocation:p,argumentsSpan:h,argumentIndex:d,argumentCount:d+1}}return}}}function Ont(e,t,r,i){return Wnt(e,t,r,i)||A2e(e,t,r,i)}function I2e(e){return ur(e.parent)?I2e(e.parent):e}function __e(e){return ur(e.left)?__e(e.left)+1:2}function Wnt(e,t,r,i){let o=Fnt(e);if(o===void 0)return;let s=znt(o,r,t,i);if(s===void 0)return;let{contextualType:l,argumentIndex:d,argumentCount:p,argumentsSpan:h}=s,m=l.getNonNullableType(),y=m.symbol;if(y===void 0)return;let E=$s(m.getCallSignatures());return E===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:E,node:e,symbol:Bnt(y)},argumentsSpan:h,argumentIndex:d,argumentCount:p}}function Fnt(e){switch(e.kind){case 21:case 28:return e;default:return Fn(e.parent,t=>To(t)?!0:Xa(t)||tm(t)||j0(t)?!1:"quit")}}function znt(e,t,r,i){let{parent:o}=e;switch(o.kind){case 217:case 174:case 218:case 219:let s=T2e(e,r,t,i);if(!s)return;let{argumentIndex:l,argumentCount:d,argumentsSpan:p}=s,h=Ul(o)?i.getContextualTypeForObjectLiteralElement(o):i.getContextualType(o);return h&&{contextualType:h,argumentIndex:l,argumentCount:d,argumentsSpan:p};case 226:{let m=I2e(o),y=i.getContextualType(m),E=e.kind===21?0:__e(o)-1,S=__e(m);return y&&{contextualType:y,argumentIndex:E,argumentCount:S,argumentsSpan:xu(o)}}default:return}}function Bnt(e){return e.name==="__type"&&Wl(e.declarations,t=>{var r;return gh(t)?(r=ri(t.parent,b_))==null?void 0:r.symbol:void 0})||e}function Gnt(e,t){let r=t.getTypeAtLocation(e.expression);if(t.isTupleType(r)){let{elementFlags:i,fixedLength:o}=r.target;if(o===0)return 0;let s=Kl(i,l=>!(l&1));return s<0?o:s}return 0}function Vnt(e,t,r){return x2e(e,t,r)}function jnt(e,t){return x2e(e,t,void 0)}function x2e(e,t,r){let i=t.getChildren(),o=0,s=!1;for(let l of i){if(r&&l===r)return!s&&l.kind===28&&o++,o;if(qm(l)){o+=Gnt(l,e),s=!0;continue}if(l.kind!==28){o++,s=!0;continue}if(s){s=!1;continue}o++}return r?o:i.length&&Ja(i).kind===28?o+1:o}function Unt(e,t,r,i){return R.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),pre(t)?Zw(t,r,i)?0:e+2:e+1}function h_e(e,t,r){let i=HI(e.template)?1:e.template.templateSpans.length+1;return t!==0&&R.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:Knt(e,r),argumentIndex:t,argumentCount:i}}function Hnt(e,t){let r=e.getFullStart(),i=Pa(t.text,e.getEnd(),!1);return _d(r,i-r)}function Knt(e,t){let r=e.template,i=r.getStart(),o=r.getEnd();return r.kind===228&&Ja(r.templateSpans).literal.getFullWidth()===0&&(o=Pa(t.text,o,!1)),_d(i,o-i)}function Jnt(e,t,r,i,o){for(let s=e;!Yi(s)&&(o||!Ho(s));s=s.parent){R.assert(of(s.parent,s),"Not a subspan",()=>`Child: ${R.formatSyntaxKind(s.kind)}, parent: ${R.formatSyntaxKind(s.parent.kind)}`);let l=Ont(s,t,r,i);if(l)return l}}function qnt(e,t,r){let i=e.getChildren(r),o=i.indexOf(t);return R.assert(o>=0&&i.length>o+1),i[o+1]}function R2e(e){return e.kind===0?BF(e.node):e.called}function D2e(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}function C2e(e,t,{isTypeParameterList:r,argumentCount:i,argumentsSpan:o,invocation:s,argumentIndex:l},d,p,h){var m;let y=D2e(s),E=s.kind===2?s.symbol:p.getSymbolAtLocation(R2e(s))||h&&((m=t.declaration)==null?void 0:m.symbol),S=E?tM(p,E,h?d:void 0,void 0):Xe,A=mn(e,K=>$nt(K,S,r,p,y,d));l!==0&&R.assertLessThan(l,i);let N=0,D=0;for(let K=0;K1)){let B=0;for(let ce of Y){if(ce.isVariadic||ce.parameters.length>=i){N=D+B;break}B++}}D+=Y.length}R.assert(N!==-1);let w={items:OC(A,Qs),applicableSpan:o,selectedItemIndex:N,argumentIndex:l,argumentCount:i},j=w.items[N];if(j.isVariadic){let K=Kl(j.parameters,Y=>!!Y.isRest);-1N2e(y,r,i,o,l)),p=e.getDocumentationComment(r),h=e.getJsDocTags(r);return{isVariadic:!1,prefixDisplayParts:[...s,qd(30)],suffixDisplayParts:[qd(32)],separatorDisplayParts:g_e,parameters:d,documentation:p,tags:h}}function $nt(e,t,r,i,o,s){let l=(r?Znt:ert)(e,i,o,s);return mn(l,({isVariadic:d,parameters:p,prefix:h,suffix:m})=>{let y=[...t,...h],E=[...m,...Qnt(e,o,i)],S=e.getDocumentationComment(i),A=e.getJsDocTags();return{isVariadic:d,prefixDisplayParts:y,suffixDisplayParts:E,separatorDisplayParts:g_e,parameters:p,documentation:S,tags:A}})}function Qnt(e,t,r){return nb(i=>{i.writePunctuation(":"),i.writeSpace(" ");let o=r.getTypePredicateOfSignature(e);o?r.writeTypePredicate(o,t,void 0,i):r.writeType(r.getReturnTypeOfSignature(e),t,void 0,i)})}function Znt(e,t,r,i){let o=(e.target||e).typeParameters,s=iS(),l=(o||Xe).map(p=>N2e(p,t,r,i,s)),d=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,r,HO)]:[];return t.getExpandedParameters(e).map(p=>{let h=L.createNodeArray([...d,...mn(p,y=>t.symbolToParameterDeclaration(y,r,HO))]),m=nb(y=>{s.writeList(2576,h,i,y)});return{isVariadic:!1,parameters:l,prefix:[qd(30)],suffix:[qd(32),...m]}})}function ert(e,t,r,i){let o=iS(),s=nb(p=>{if(e.typeParameters&&e.typeParameters.length){let h=L.createNodeArray(e.typeParameters.map(m=>t.typeParameterToDeclaration(m,r,HO)));o.writeList(53776,h,i,p)}}),l=t.getExpandedParameters(e),d=t.hasEffectiveRestParameter(e)?l.length===1?p=>!0:p=>{var h;return!!(p.length&&((h=ri(p[p.length-1],dh))==null?void 0:h.links.checkFlags)&32768)}:p=>!1;return l.map(p=>({isVariadic:d(p),parameters:p.map(h=>trt(h,t,r,i,o)),prefix:[...s,qd(21)],suffix:[qd(22)]}))}function trt(e,t,r,i,o){let s=nb(p=>{let h=t.symbolToParameterDeclaration(e,r,HO);o.writeNode(4,h,i,p)}),l=t.isOptionalParameter(e.valueDeclaration),d=dh(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:s,isOptional:l,isRest:d}}function N2e(e,t,r,i,o){let s=nb(l=>{let d=t.typeParameterToDeclaration(e,r,HO);o.writeNode(4,d,i,l)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:s,isOptional:!1,isRest:!1}}var HO,g_e,nrt=bt({"src/services/signatureHelp.ts"(){"use strict";ai(),HO=70246400,g_e=[qd(28),kl()]}}),KO={};Ra(KO,{getArgumentInfoForCompletions:()=>knt,getSignatureHelpItems:()=>Nnt});var rrt=bt({"src/services/_namespaces/ts.SignatureHelp.ts"(){"use strict";nrt()}});function irt(e,t){var r,i;let o={textSpan:dc(t.getFullStart(),t.getEnd())},s=t;e:for(;;){let p=art(s);if(!p.length)break;for(let h=0;he)break e;let S=rh($b(t.text,y.end));if(S&&S.kind===2&&d(S.pos,S.end),ort(t,e,y)){if(wV(y)&&Ws(s)&&!Sf(y.getStart(t),y.getEnd(),t)&&l(y.getStart(t),y.getEnd()),Ho(y)||uP(y)||KI(y)||M4(y)||m&&KI(m)||Vc(y)&&Ml(s)||wR(y)&&Vc(s)||Oi(y)&&wR(s)&&p.length===1||Q0(y)||vE(y)||FT(y)){s=y;break}if(uP(s)&&E&&lF(E)){let w=y.getFullStart()-2,j=E.getStart()+1;l(w,j)}let A=wR(y)&&srt(m)&&lrt(E)&&!Sf(m.getStart(),E.getStart(),t),N=A?m.getEnd():y.getStart(),D=A?E.getStart():crt(t,y);if(kp(y)&&((r=y.jsDoc)!=null&&r.length)&&l(Va(y.jsDoc).getStart(),D),wR(y)){let w=y.getChildren()[0];w&&kp(w)&&((i=w.jsDoc)!=null&&i.length)&&w.getStart()!==y.pos&&(N=Math.min(N,Va(w.jsDoc).getStart()))}l(N,D),(Ca(y)||EI(y))&&l(N+1,D-1),s=y;break}if(h===p.length-1)break e}}return o;function l(p,h){if(p!==h){let m=dc(p,h);(!o||!dD(m,o.textSpan)&&Une(m,e))&&(o={textSpan:m,...o&&{parent:o}})}}function d(p,h){l(p,h);let m=p;for(;t.text.charCodeAt(m)===47;)m++;l(m,h)}}function ort(e,t,r){return R.assert(r.pos<=t),td===e.readonlyToken||d.kind===148||d===e.questionToken||d.kind===58),l=JO(s,({kind:d})=>d===23||d===168||d===24);return[r,qO(EQ(l,({kind:d})=>d===59)),o]}if(_p(e)){let r=JO(e.getChildren(),l=>l===e.name||zo(e.modifiers,l)),i=((t=r[0])==null?void 0:t.kind)===327?r[0]:void 0,o=i?r.slice(1):r,s=EQ(o,({kind:l})=>l===59);return i?[i,qO(s)]:s}if(To(e)){let r=JO(e.getChildren(),o=>o===e.dotDotDotToken||o===e.name),i=JO(r,o=>o===r[0]||o===e.questionToken);return EQ(i,({kind:o})=>o===64)}return Xa(e)?EQ(e.getChildren(),({kind:r})=>r===64):e.getChildren()}function JO(e,t){let r=[],i;for(let o of e)t(o)?(i=i||[],i.push(o)):(i&&(r.push(qO(i)),i=void 0),r.push(o));return i&&r.push(qO(i)),r}function EQ(e,t,r=!0){if(e.length<2)return e;let i=Kl(e,t);if(i===-1)return e;let o=e.slice(0,i),s=e[i],l=Ja(e),d=r&&l.kind===27,p=e.slice(i+1,d?e.length-1:void 0),h=TL([o.length?qO(o):void 0,s,p.length?qO(p):void 0]);return d?h.concat(l):h}function qO(e){return R.assertGreaterThanOrEqual(e.length,1),mh(Eh.createSyntaxList(e),e[0].pos,Ja(e).end)}function srt(e){let t=e&&e.kind;return t===19||t===23||t===21||t===286}function lrt(e){let t=e&&e.kind;return t===20||t===24||t===22||t===287}function crt(e,t){switch(t.kind){case 348:case 345:case 355:case 353:case 350:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var P2e,drt=bt({"src/services/smartSelection.ts"(){"use strict";ai(),P2e=Um(Mc,Zc)}}),SQ={};Ra(SQ,{getSmartSelectionRange:()=>irt});var urt=bt({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){"use strict";drt()}});function M2e(e,t,r){let i=L2e(e,t,r);if(i!=="")return i;let o=mR(t);return o&32?cl(t,231)?"local class":"class":o&384?"enum":o&524288?"type":o&64?"interface":o&262144?"type parameter":o&8?"enum member":o&2097152?"alias":o&1536?"module":i}function L2e(e,t,r){let i=e.getRootSymbols(t);if(i.length===1&&Va(i).flags&8192&&e.getTypeOfSymbolAtLocation(t,r).getNonNullableType().getCallSignatures().length!==0)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(r.kind===110&&ht(r)||NI(r))return"parameter";let o=mR(t);if(o&3)return Yq(t)?"parameter":t.valueDeclaration&&Hx(t.valueDeclaration)?"const":t.valueDeclaration&&b2(t.valueDeclaration)?"using":t.valueDeclaration&&v2(t.valueDeclaration)?"await using":gn(t.declarations,NF)?"let":O2e(t)?"local var":"var";if(o&16)return O2e(t)?"local function":"function";if(o&32768)return"getter";if(o&65536)return"setter";if(o&8192)return"method";if(o&16384)return"constructor";if(o&131072)return"index";if(o&4){if(o&33554432&&t.links.checkFlags&6){let s=gn(e.getRootSymbols(t),l=>{if(l.getFlags()&98311)return"property"});return s||(e.getTypeOfSymbolAtLocation(t,r).getCallSignatures().length?"method":"property")}return"property"}return""}function k2e(e){if(e.declarations&&e.declarations.length){let[t,...r]=e.declarations,i=Nn(r)&&f7(t)&>(r,s=>!f7(s))?65536:0,o=YP(t,i);if(o)return o.split(",")}return[]}function prt(e,t){if(!t)return"";let r=new Set(k2e(t));if(t.flags&2097152){let i=e.getAliasedSymbol(t);i!==t&&gn(k2e(i),o=>{r.add(o)})}return t.flags&16777216&&r.add("optional"),r.size>0?Oo(r.values()).join(","):""}function w2e(e,t,r,i,o,s,l,d){var p;let h=[],m=[],y=[],E=mR(t),S=l&1?L2e(e,t,o):"",A=!1,N=o.kind===110&&VF(o)||NI(o),D,w,j=!1;if(o.kind===110&&!N)return{displayParts:[vp(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(S!==""||E&32||E&2097152){if(S==="getter"||S==="setter"){let pe=Vr(t.declarations,xe=>xe.name===o);if(pe)switch(pe.kind){case 177:S="getter";break;case 178:S="setter";break;case 172:S="accessor";break;default:R.assertNever(pe)}else S="property"}let J;if(s??(s=N?e.getTypeAtLocation(o):e.getTypeOfSymbolAtLocation(t,o)),o.parent&&o.parent.kind===211){let pe=o.parent.name;(pe===o||pe&&pe.getFullWidth()===0)&&(o=o.parent)}let re;if(v_(o)?re=o:(gq(o)||qP(o)||o.parent&&(su(o.parent)||H0(o.parent))&&Yo(t.valueDeclaration))&&(re=o.parent),re){J=e.getResolvedSignature(re);let pe=re.kind===214||ra(re)&&re.expression.kind===108,xe=pe?s.getConstructSignatures():s.getCallSignatures();if(J&&!zo(xe,J.target)&&!zo(xe,J)&&(J=xe.length?xe[0]:void 0),J){switch(pe&&E&32?(S="constructor",ee(s.symbol,S)):E&2097152?(S="alias",me(S),h.push(kl()),pe&&(J.flags&4&&(h.push(vp(128)),h.push(kl())),h.push(vp(105)),h.push(kl())),z(t)):ee(t,S),S){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":h.push(qd(59)),h.push(kl()),!(kr(s)&16)&&s.symbol&&(Hr(h,tM(e,s.symbol,i,void 0,5)),h.push(uD())),pe&&(J.flags&4&&(h.push(vp(128)),h.push(kl())),h.push(vp(105)),h.push(kl())),ge(J,xe,262144);break;default:ge(J,xe)}A=!0,j=xe.length>1}}else if(Iq(o)&&!(E&98304)||o.kind===137&&o.parent.kind===176){let pe=o.parent;if(t.declarations&&Vr(t.declarations,fe=>fe===(o.kind===137?pe.parent:pe))){let fe=pe.kind===176?s.getNonNullableType().getConstructSignatures():s.getNonNullableType().getCallSignatures();e.isImplementationOfOverload(pe)?J=fe[0]:J=e.getSignatureFromDeclaration(pe),pe.kind===176?(S="constructor",ee(s.symbol,S)):ee(pe.kind===179&&!(s.symbol.flags&2048||s.symbol.flags&4096)?s.symbol:t,S),J&&ge(J,fe),A=!0,j=fe.length>1}}}if(E&32&&!A&&!N&&(B(),cl(t,231)?me("local class"):h.push(vp(86)),h.push(kl()),z(t),q(t,r)),E&64&&l&2&&(Y(),h.push(vp(120)),h.push(kl()),z(t),q(t,r)),E&524288&&l&2&&(Y(),h.push(vp(156)),h.push(kl()),z(t),q(t,r),h.push(kl()),h.push(eM(64)),h.push(kl()),Hr(h,aO(e,o.parent&&Cg(o.parent)?e.getTypeAtLocation(o.parent):e.getDeclaredTypeOfSymbol(t),i,8388608))),E&384&&(Y(),gt(t.declarations,J=>gE(J)&&I0(J))&&(h.push(vp(87)),h.push(kl())),h.push(vp(94)),h.push(kl()),z(t)),E&1536&&!N){Y();let J=cl(t,267),re=J&&J.name&&J.name.kind===80;h.push(vp(re?145:144)),h.push(kl()),z(t)}if(E&262144&&l&2)if(Y(),h.push(qd(21)),h.push(sf("type parameter")),h.push(qd(22)),h.push(kl()),z(t),t.parent)ce(),z(t.parent,i),q(t.parent,i);else{let J=cl(t,168);if(J===void 0)return R.fail();let re=J.parent;if(re)if(Yo(re)){ce();let pe=e.getSignatureFromDeclaration(re);re.kind===180?(h.push(vp(105)),h.push(kl())):re.kind!==179&&re.name&&z(re.symbol),Hr(h,Zq(e,pe,r,32))}else Tm(re)&&(ce(),h.push(vp(156)),h.push(kl()),z(re.symbol),q(re.symbol,r))}if(E&8){S="enum member",ee(t,"enum member");let J=(p=t.declarations)==null?void 0:p[0];if(J?.kind===306){let re=e.getConstantValue(J);re!==void 0&&(h.push(kl()),h.push(eM(64)),h.push(kl()),h.push(ep(jre(re),typeof re=="number"?7:8)))}}if(t.flags&2097152){if(Y(),!A||m.length===0&&y.length===0){let J=e.getAliasedSymbol(t);if(J!==t&&J.declarations&&J.declarations.length>0){let re=J.declarations[0],pe=No(re);if(pe&&!A){let xe=xF(re)&&Qr(re,128),fe=t.name!=="default"&&!xe,ne=w2e(e,J,Gn(re),re,pe,s,l,fe?t:J);h.push(...ne.displayParts),h.push(uD()),D=ne.documentation,w=ne.tags}else D=J.getContextualDocumentationComment(re,e),w=J.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 270:h.push(vp(95)),h.push(kl()),h.push(vp(145));break;case 277:h.push(vp(95)),h.push(kl()),h.push(vp(t.declarations[0].isExportEquals?64:90));break;case 281:h.push(vp(95));break;default:h.push(vp(102))}h.push(kl()),z(t),gn(t.declarations,J=>{if(J.kind===271){let re=J;if(sE(re))h.push(kl()),h.push(eM(64)),h.push(kl()),h.push(vp(149)),h.push(qd(21)),h.push(ep(uc(gN(re)),8)),h.push(qd(22));else{let pe=e.getSymbolAtLocation(re.moduleReference);pe&&(h.push(kl()),h.push(eM(64)),h.push(kl()),z(pe,i))}return!0}})}if(!A)if(S!==""){if(s){if(N?(Y(),h.push(vp(110))):ee(t,S),S==="property"||S==="accessor"||S==="getter"||S==="setter"||S==="JSX attribute"||E&3||S==="local var"||S==="index"||S==="using"||S==="await using"||N){if(h.push(qd(59)),h.push(kl()),s.symbol&&s.symbol.flags&262144&&S!=="index"){let J=nb(re=>{let pe=e.typeParameterToDeclaration(s,i,y_e);K().writeNode(4,pe,Gn(Ro(i)),re)});Hr(h,J)}else Hr(h,aO(e,s,i));if(dh(t)&&t.links.target&&dh(t.links.target)&&t.links.target.links.tupleLabelDeclaration){let J=t.links.target.links.tupleLabelDeclaration;R.assertNode(J.name,Fe),h.push(kl()),h.push(qd(21)),h.push(sf(yr(J.name))),h.push(qd(22))}}else if(E&16||E&8192||E&16384||E&131072||E&98304||S==="method"){let J=s.getNonNullableType().getCallSignatures();J.length&&(ge(J[0],J),j=J.length>1)}}}else S=M2e(e,t,o);if(m.length===0&&!j&&(m=t.getContextualDocumentationComment(i,e)),m.length===0&&E&4&&t.parent&&t.declarations&&gn(t.parent.declarations,J=>J.kind===312))for(let J of t.declarations){if(!J.parent||J.parent.kind!==226)continue;let re=e.getSymbolAtLocation(J.parent.right);if(re&&(m=re.getDocumentationComment(e),y=re.getJsDocTags(e),m.length>0))break}if(m.length===0&&Fe(o)&&t.valueDeclaration&&Xa(t.valueDeclaration)){let J=t.valueDeclaration,re=J.parent,pe=J.propertyName||J.name;if(Fe(pe)&&tm(re)){let xe=Xf(pe),fe=e.getTypeAtLocation(re);m=Wl(fe.isUnion()?fe.types:[fe],ne=>{let he=ne.getProperty(xe);return he?he.getDocumentationComment(e):void 0})||Xe}}return y.length===0&&!j&&(y=t.getContextualJsDocTags(i,e)),m.length===0&&D&&(m=D),y.length===0&&w&&(y=w),{displayParts:h,documentation:m,symbolKind:S,tags:y.length===0?void 0:y};function K(){return iS()}function Y(){h.length&&h.push(uD()),B()}function B(){d&&(me("alias"),h.push(kl()))}function ce(){h.push(kl()),h.push(vp(103)),h.push(kl())}function z(J,re){let pe;d&&J===t&&(J=d),S==="index"&&(pe=e.getIndexInfosOfIndexSymbol(J));let xe=[];J.flags&131072&&pe?(J.parent&&(xe=tM(e,J.parent)),xe.push(qd(23)),pe.forEach((fe,ne)=>{xe.push(...aO(e,fe.keyType)),ne!==pe.length-1&&(xe.push(kl()),xe.push(qd(52)),xe.push(kl()))}),xe.push(qd(24))):xe=tM(e,J,re||r,void 0,7),Hr(h,xe),t.flags&16777216&&h.push(qd(58))}function ee(J,re){Y(),re&&(me(re),J&&!gt(J.declarations,pe=>Fs(pe)||(Ms(pe)||$c(pe))&&!pe.name)&&(h.push(kl()),z(J)))}function me(J){switch(J){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":h.push($q(J));return;default:h.push(qd(21)),h.push($q(J)),h.push(qd(22));return}}function ge(J,re,pe=0){Hr(h,Zq(e,J,i,pe|32)),re.length>1&&(h.push(kl()),h.push(qd(21)),h.push(eM(40)),h.push(ep((re.length-1).toString(),7)),h.push(kl()),h.push(sf(re.length===2?"overload":"overloads")),h.push(qd(22))),m=J.getDocumentationComment(e),y=J.getJsDocTags(),re.length>1&&m.length===0&&y.length===0&&(m=re[0].getDocumentationComment(e),y=re[0].getJsDocTags().filter(xe=>xe.name!=="deprecated"))}function q(J,re){let pe=nb(xe=>{let fe=e.symbolToTypeParameterDeclarations(J,re,y_e);K().writeList(53776,fe,Gn(Ro(re)),xe)});Hr(h,pe)}}function frt(e,t,r,i,o,s=qT(o),l){return w2e(e,t,r,i,o,void 0,s,l)}function O2e(e){return e.parent?!1:gn(e.declarations,t=>{if(t.kind===218)return!0;if(t.kind!==260&&t.kind!==262)return!1;for(let r=t.parent;!R0(r);r=r.parent)if(r.kind===312||r.kind===268)return!1;return!0})}var y_e,mrt=bt({"src/services/symbolDisplay.ts"(){"use strict";ai(),y_e=70246400}}),Yy={};Ra(Yy,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>frt,getSymbolKind:()=>M2e,getSymbolModifiers:()=>prt});var _rt=bt({"src/services/_namespaces/ts.SymbolDisplay.ts"(){"use strict";mrt()}});function W2e(e){let t=e.__pos;return R.assert(typeof t=="number"),t}function v_e(e,t){R.assert(typeof t=="number"),e.__pos=t}function F2e(e){let t=e.__end;return R.assert(typeof t=="number"),t}function b_e(e,t){R.assert(typeof t=="number"),e.__end=t}function z2e(e,t){return Pa(e,t,!1,!0)}function hrt(e,t){let r=t;for(;r0?1:0,E=wv(DN(e,h)+y,e);return E=z2e(e.text,E),wv(DN(e,E),e)}function E_e(e,t,r){let{end:i}=t,{trailingTriviaOption:o}=r;if(o===2){let s=$b(e.text,i);if(s){let l=DN(e,t.end);for(let d of s){if(d.kind===2||DN(e,d.pos)>l)break;if(DN(e,d.end)>l)return Pa(e.text,d.end,!0,!0)}}}}function DD(e,t,r){var i;let{end:o}=t,{trailingTriviaOption:s}=r;if(s===0)return o;if(s===1){let p=bo($b(e.text,o),Uh(e.text,o)),h=(i=p?.[p.length-1])==null?void 0:i.end;return h||o}let l=E_e(e,t,r);if(l)return l;let d=Pa(e.text,o,!0);return d!==o&&(s===2||Vd(e.text.charCodeAt(d-1)))?d:o}function TQ(e,t){return!!t&&!!e.parent&&(t.kind===28||t.kind===27&&e.parent.kind===210)}function grt(e){return Ms(e)||Ec(e)}function yrt(e){if(e.kind!==219)return e;let t=e.parent.kind===172?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}function vrt(e,t){if(e.kind===t.kind)switch(e.kind){case 348:{let r=e,i=t;return Fe(r.name)&&Fe(i.name)&&r.name.escapedText===i.name.escapedText?L.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,r.comment):void 0}case 349:return L.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 351:return L.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}function S_e(e,t){return Pa(e.text,tA(e,t,{leadingTriviaOption:1}),!1,!0)}function brt(e,t,r,i){let o=S_e(e,i);if(r===void 0||Sf(DD(e,t,{}),o,e))return o;let s=Tc(i.getStart(e),e);if(TQ(t,s)){let l=Tc(t.getStart(e),e);if(TQ(r,l)){let d=Pa(e.text,s.getEnd(),!0,!0);if(Sf(l.getStart(e),s.getStart(e),e))return Vd(e.text.charCodeAt(d-1))?d-1:d;if(Vd(e.text.charCodeAt(d)))return d}}return o}function Ert(e,t){let r=hs(e,19,t),i=hs(e,20,t);return[r?.end,i?.end]}function AQ(e){return La(e)?e.properties:e.members}function T_e(e,t){for(let r=t.length-1;r>=0;r--){let{span:i,newText:o}=t[r];e=`${e.substring(0,i.start)}${o}${e.substring(Jl(i))}`}return e}function Srt(e){return Pa(e,0)===e.length}function IQ(e){let t=Sn(e,IQ,j2e,Trt,IQ),r=Js(t)?t:Object.create(t);return mh(r,W2e(e),F2e(e)),r}function Trt(e,t,r,i,o){let s=zn(e,t,r,i,o);if(!s)return s;R.assert(e);let l=s===e?L.createNodeArray(s.slice(0)):s;return mh(l,W2e(e),F2e(e)),l}function B2e(e){let t=0,r=Q2(e),i=ne=>{ne&&v_e(ne,t)},o=ne=>{ne&&b_e(ne,t)},s=ne=>{ne&&v_e(ne,t)},l=ne=>{ne&&b_e(ne,t)},d=ne=>{ne&&v_e(ne,t)},p=ne=>{ne&&b_e(ne,t)};function h(ne,he){if(he||!Srt(ne)){t=r.getTextPos();let Ce=0;for(;Dg(ne.charCodeAt(ne.length-Ce-1));)Ce++;t-=Ce}}function m(ne){r.write(ne),h(ne,!1)}function y(ne){r.writeComment(ne)}function E(ne){r.writeKeyword(ne),h(ne,!1)}function S(ne){r.writeOperator(ne),h(ne,!1)}function A(ne){r.writePunctuation(ne),h(ne,!1)}function N(ne){r.writeTrailingSemicolon(ne),h(ne,!1)}function D(ne){r.writeParameter(ne),h(ne,!1)}function w(ne){r.writeProperty(ne),h(ne,!1)}function j(ne){r.writeSpace(ne),h(ne,!1)}function K(ne){r.writeStringLiteral(ne),h(ne,!1)}function Y(ne,he){r.writeSymbol(ne,he),h(ne,!1)}function B(ne){r.writeLine(ne)}function ce(){r.increaseIndent()}function z(){r.decreaseIndent()}function ee(){return r.getText()}function me(ne){r.rawWrite(ne),h(ne,!1)}function ge(ne){r.writeLiteral(ne),h(ne,!0)}function q(){return r.getTextPos()}function J(){return r.getLine()}function re(){return r.getColumn()}function pe(){return r.getIndent()}function xe(){return r.isAtStartOfLine()}function fe(){r.clear(),t=0}return{onBeforeEmitNode:i,onAfterEmitNode:o,onBeforeEmitNodeArray:s,onAfterEmitNodeArray:l,onBeforeEmitToken:d,onAfterEmitToken:p,write:m,writeComment:y,writeKeyword:E,writeOperator:S,writePunctuation:A,writeTrailingSemicolon:N,writeParameter:D,writeProperty:w,writeSpace:j,writeStringLiteral:K,writeSymbol:Y,writeLine:B,increaseIndent:ce,decreaseIndent:z,getText:ee,rawWrite:me,writeLiteral:ge,getTextPos:q,getLine:J,getColumn:re,getIndent:pe,isAtStartOfLine:xe,hasTrailingComment:()=>r.hasTrailingComment(),hasTrailingWhitespace:()=>r.hasTrailingWhitespace(),clear:fe}}function Art(e){let t;for(let h of e.statements)if(vm(h))t=h;else break;let r=0,i=e.text;if(t)return r=t.end,p(),r;let o=$W(i);o!==void 0&&(r=o.length,p());let s=Uh(i,r);if(!s)return r;let l,d;for(let h of s){if(h.kind===3){if(AF(i,h.pos)){l={range:h,pinnedOrTripleSlash:!0};continue}}else if(UV(i,h.pos,h.end)){l={range:h,pinnedOrTripleSlash:!0};continue}if(l){if(l.pinnedOrTripleSlash)break;let m=e.getLineAndCharacterOfPosition(h.pos).line,y=e.getLineAndCharacterOfPosition(l.range.end).line;if(m>=y+2)break}if(e.statements.length){d===void 0&&(d=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);let m=e.getLineAndCharacterOfPosition(h.end).line;if(d(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(A_e||{}),I_e=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(I_e||{}),hM={leadingTriviaOption:0,trailingTriviaOption:0},V2e=class xbe{constructor(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new xbe(Jy(t.host,t.formatContext.options),t.formatContext)}static with(t,r){let i=xbe.fromContext(t);return r(i),i.getChanges()}pushRaw(t,r){R.assertEqual(t.fileName,r.fileName);for(let i of r.textChanges)this.changes.push({kind:3,sourceFile:t,text:i.newText,range:Hz(i.span)})}deleteRange(t,r){this.changes.push({kind:0,sourceFile:t,range:r})}delete(t,r){this.deletedNodes.push({sourceFile:t,node:r})}deleteNode(t,r,i={leadingTriviaOption:1}){this.deleteRange(t,XO(t,r,r,i))}deleteNodes(t,r,i={leadingTriviaOption:1},o){for(let s of r){let l=tA(t,s,i,o),d=DD(t,s,i);this.deleteRange(t,{pos:l,end:d}),o=!!E_e(t,s,i)}}deleteModifier(t,r){this.deleteRange(t,{pos:r.getStart(t),end:Pa(t.text,r.end,!0)})}deleteNodeRange(t,r,i,o={leadingTriviaOption:1}){let s=tA(t,r,o),l=DD(t,i,o);this.deleteRange(t,{pos:s,end:l})}deleteNodeRangeExcludingEnd(t,r,i,o={leadingTriviaOption:1}){let s=tA(t,r,o),l=i===void 0?t.text.length:tA(t,i,o);this.deleteRange(t,{pos:s,end:l})}replaceRange(t,r,i,o={}){this.changes.push({kind:1,sourceFile:t,range:r,options:o,node:i})}replaceNode(t,r,i,o=hM){this.replaceRange(t,XO(t,r,r,o),i,o)}replaceNodeRange(t,r,i,o,s=hM){this.replaceRange(t,XO(t,r,i,s),o,s)}replaceRangeWithNodes(t,r,i,o={}){this.changes.push({kind:2,sourceFile:t,range:r,options:o,nodes:i})}replaceNodeWithNodes(t,r,i,o=hM){this.replaceRangeWithNodes(t,XO(t,r,r,o),i,o)}replaceNodeWithText(t,r,i){this.replaceRangeWithText(t,XO(t,r,r,hM),i)}replaceNodeRangeWithNodes(t,r,i,o,s=hM){this.replaceRangeWithNodes(t,XO(t,r,i,s),o,s)}nodeHasTrailingComment(t,r,i=hM){return!!E_e(t,r,i)}nextCommaToken(t,r){let i=sS(r,r.parent,t);return i&&i.kind===28?i:void 0}replacePropertyAssignment(t,r,i){let o=this.nextCommaToken(t,r)?"":","+this.newLineCharacter;this.replaceNode(t,r,i,{suffix:o})}insertNodeAt(t,r,i,o={}){this.replaceRange(t,Ef(r),i,o)}insertNodesAt(t,r,i,o={}){this.replaceRangeWithNodes(t,Ef(r),i,o)}insertNodeAtTopOfFile(t,r,i){this.insertAtTopOfFile(t,r,i)}insertNodesAtTopOfFile(t,r,i){this.insertAtTopOfFile(t,r,i)}insertAtTopOfFile(t,r,i){let o=Art(t),s={prefix:o===0?void 0:this.newLineCharacter,suffix:(Vd(t.text.charCodeAt(o))?"":this.newLineCharacter)+(i?this.newLineCharacter:"")};So(r)?this.insertNodesAt(t,o,r,s):this.insertNodeAt(t,o,r,s)}insertNodesAtEndOfFile(t,r,i){this.insertAtEndOfFile(t,r,i)}insertAtEndOfFile(t,r,i){let o=t.end+1,s={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(i?this.newLineCharacter:"")};this.insertNodesAt(t,o,r,s)}insertStatementsInNewFile(t,r,i){this.newFileChanges||(this.newFileChanges=Xp()),this.newFileChanges.add(t,{oldFile:i,statements:r})}insertFirstParameter(t,r,i){let o=Jc(r);o?this.insertNodeBefore(t,o,i):this.insertNodeAt(t,r.pos,i)}insertNodeBefore(t,r,i,o=!1,s={}){this.insertNodeAt(t,tA(t,r,s),i,this.getOptionsForInsertNodeBefore(r,i,o))}insertNodesBefore(t,r,i,o=!1,s={}){this.insertNodesAt(t,tA(t,r,s),i,this.getOptionsForInsertNodeBefore(r,Va(i),o))}insertModifierAt(t,r,i,o={}){this.insertNodeAt(t,r,L.createToken(i),o)}insertModifierBefore(t,r,i){return this.insertModifierAt(t,i.getStart(t),r,{suffix:" "})}insertCommentBeforeLine(t,r,i,o){let s=wv(r,t),l=Nde(t.text,s),d=G2e(t,l),p=sD(t,d?l:i),h=t.text.slice(s,l),m=`${d?"":this.newLineCharacter}//${o}${this.newLineCharacter}${h}`;this.insertText(t,p.getStart(t),m)}insertJsdocCommentBefore(t,r,i){let o=r.getStart(t);if(r.jsDoc)for(let d of r.jsDoc)this.deleteRange(t,{pos:rm(d.getStart(t),t),end:DD(t,d,{})});let s=t7(t.text,o-1),l=t.text.slice(s,o);this.insertNodeAt(t,o,i,{suffix:this.newLineCharacter+l})}createJSDocText(t,r){let i=va(r.jsDoc,s=>Co(s.comment)?L.createJSDocText(s.comment):s.comment),o=rh(r.jsDoc);return o&&Sf(o.pos,o.end,t)&&Nn(i)===0?void 0:L.createNodeArray(DG(i,L.createJSDocText(` +`)))}replaceJSDocComment(t,r,i){this.insertJsdocCommentBefore(t,yrt(r),L.createJSDocComment(this.createJSDocText(t,r),L.createNodeArray(i)))}addJSDocTags(t,r,i){let o=OC(r.jsDoc,l=>l.tags),s=i.filter(l=>!o.some((d,p)=>{let h=vrt(d,l);return h&&(o[p]=h),!!h}));this.replaceJSDocComment(t,r,[...o,...s])}filterJSDocTags(t,r,i){this.replaceJSDocComment(t,r,jr(OC(r.jsDoc,o=>o.tags),i))}replaceRangeWithText(t,r,i){this.changes.push({kind:3,sourceFile:t,range:r,text:i})}insertText(t,r,i){this.replaceRangeWithText(t,Ef(r),i)}tryInsertTypeAnnotation(t,r,i){let o;if(Yo(r)){if(o=hs(r,22,t),!o){if(!Fs(r))return!1;o=Va(r.parameters)}}else o=(r.kind===260?r.exclamationToken:r.questionToken)??r.name;return this.insertNodeAt(t,o.end,i,{prefix:": "}),!0}tryInsertThisTypeAnnotation(t,r,i){let o=hs(r,21,t).getStart(t)+1,s=r.parameters.length?", ":"";this.insertNodeAt(t,o,i,{prefix:"this: ",suffix:s})}insertTypeParameters(t,r,i){let o=(hs(r,21,t)||Va(r.parameters)).getStart(t);this.insertNodesAt(t,o,i,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(t,r,i){return Hi(t)||Xc(t)?{suffix:i?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:Oi(t)?{suffix:", "}:To(t)?To(r)?{suffix:", "}:{}:Ca(t)&&Mc(t.parent)||Fg(t)?{suffix:", "}:Qu(t)?{suffix:","+(i?this.newLineCharacter:" ")}:R.failBadSyntaxKind(t)}insertNodeAtConstructorStart(t,r,i){let o=Jc(r.body.statements);!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[i,...r.body.statements]):this.insertNodeBefore(t,o,i)}insertNodeAtConstructorStartAfterSuperCall(t,r,i){let o=Vr(r.body.statements,s=>Qc(s)&&mT(s.expression));!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,i]):this.insertNodeAfter(t,o,i)}insertNodeAtConstructorEnd(t,r,i){let o=$s(r.body.statements);!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,i]):this.insertNodeAfter(t,o,i)}replaceConstructorBody(t,r,i){this.replaceNode(t,r.body,L.createBlock(i,!0))}insertNodeAtEndOfScope(t,r,i){let o=tA(t,r.getLastToken(),{});this.insertNodeAt(t,o,i,{prefix:Vd(t.text.charCodeAt(r.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(t,r,i){this.insertNodeAtStartWorker(t,r,i)}insertNodeAtObjectStart(t,r,i){this.insertNodeAtStartWorker(t,r,i)}insertNodeAtStartWorker(t,r,i){let o=this.guessIndentationFromExistingMembers(t,r)??this.computeIndentationForNewMember(t,r);this.insertNodeAt(t,AQ(r).pos,i,this.getInsertNodeAtStartInsertOptions(t,r,o))}guessIndentationFromExistingMembers(t,r){let i,o=r;for(let s of AQ(r)){if(y6(o,s,t))return;let l=s.getStart(t),d=kc.SmartIndenter.findFirstNonWhitespaceColumn(rm(l,t),l,t,this.formatContext.options);if(i===void 0)i=d;else if(d!==i)return;o=s}return i}computeIndentationForNewMember(t,r){let i=r.getStart(t);return kc.SmartIndenter.findFirstNonWhitespaceColumn(rm(i,t),i,t,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(t,r,i){let s=AQ(r).length===0,l=Em(this.classesWithNodesInsertedAtStart,is(r),{node:r,sourceFile:t}),d=La(r)&&(!Jf(t)||!s),p=La(r)&&Jf(t)&&s&&!l;return{indentation:i,prefix:(p?",":"")+this.newLineCharacter,suffix:d?",":fu(r)&&s?";":""}}insertNodeAfterComma(t,r,i){let o=this.insertNodeAfterWorker(t,this.nextCommaToken(t,r)||r,i);this.insertNodeAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfter(t,r,i){let o=this.insertNodeAfterWorker(t,r,i);this.insertNodeAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAtEndOfList(t,r,i){this.insertNodeAt(t,r.end,i,{prefix:", "})}insertNodesAfter(t,r,i){let o=this.insertNodeAfterWorker(t,r,Va(i));this.insertNodesAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfterWorker(t,r,i){return Irt(r,i)&&t.text.charCodeAt(r.end-1)!==59&&this.replaceRange(t,Ef(r.end),L.createToken(27)),DD(t,r,{})}getInsertNodeAfterOptions(t,r){let i=this.getInsertNodeAfterOptionsWorker(r);return{...i,prefix:r.end===t.end&&Hi(r)?i.prefix?` ${i.prefix}`:` -`:i.prefix}}getInsertNodeAfterOptionsWorker(t){switch(t.kind){case 263:case 267:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 260:case 11:case 80:return{prefix:", "};case 303:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 169:return{};default:return x.assert(Hi(t)||cF(t)),{suffix:this.newLineCharacter}}}insertName(t,r,i){if(x.assert(!r.name),r.kind===219){let o=_s(r,39,t),s=_s(r,21,t);s?(this.insertNodesAt(t,s.getStart(t),[L.createToken(100),L.createIdentifier(i)],{joiner:" "}),Ug(this,t,o)):(this.insertText(t,Va(r.parameters).getStart(t),`function ${i}(`),this.replaceRange(t,o,L.createToken(22))),r.body.kind!==241&&(this.insertNodesAt(t,r.body.getStart(t),[L.createToken(19),L.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,r.body.end,[L.createToken(27),L.createToken(20)],{joiner:" "}))}else{let o=_s(r,r.kind===218?100:86,t).end;this.insertNodeAt(t,o,L.createIdentifier(i),{prefix:" "})}}insertExportModifier(t,r){this.insertText(t,r.getStart(t),"export ")}insertImportSpecifierAtIndex(t,r,i,o){let s=i.elements[o-1];s?this.insertNodeInListAfter(t,s,r):this.insertNodeBefore(t,i.elements[0],r,!Sf(i.elements[0].getStart(),i.parent.parent.getStart(),t))}insertNodeInListAfter(t,r,i,o=wc.SmartIndenter.getContainingList(r,t)){if(!o){x.fail("node is not a list element");return}let s=jx(o,r);if(s<0)return;let l=r.getEnd();if(s!==o.length-1){let d=so(t,r.end);if(d&&TQ(r,d)){let p=o[s+1],h=L2e(t.text,p.getFullStart()),m=`${da(d.kind)}${t.text.substring(d.end,h)}`;this.insertNodesAt(t,h,[i],{suffix:m})}}else{let d=r.getStart(t),p=rm(d,t),h,m=!1;if(o.length===1)h=28;else{let y=Tc(r.pos,t);h=TQ(r,y)?y.kind:28,m=rm(o[s-1].getStart(t),t)!==p}if((crt(t.text,r.end)||!Sf(o.pos,o.end,t))&&(m=!0),m){this.replaceRange(t,Ef(l),L.createToken(h));let y=wc.SmartIndenter.findFirstNonWhitespaceColumn(p,d,t,this.formatContext.options),E=Na(t.text,l,!0,!1);for(;E!==l&&jd(t.text.charCodeAt(E-1));)E--;this.replaceRange(t,Ef(E),i,{indentation:y,prefix:this.newLineCharacter})}else this.replaceRange(t,Ef(l),i,{prefix:`${da(h)} `})}}parenthesizeExpression(t,r){this.replaceRange(t,uU(r),L.createParenthesizedExpression(r))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:t,sourceFile:r})=>{let[i,o]=mrt(t,r);if(i!==void 0&&o!==void 0){let s=AQ(t).length===0,l=Sf(i,o,r);s&&l&&i!==o-1&&this.deleteRange(r,Ef(i,o-1)),l&&this.insertText(r,o-1,this.newLineCharacter)}})}finishDeleteDeclarations(){let t=new Set;for(let{sourceFile:r,node:i}of this.deletedNodes)this.deletedNodes.some(o=>o.sourceFile===r&&Qce(o.node,i))||(To(i)?this.deleteRange(r,pU(r,i)):E_e.deleteDeclaration(this,t,r,i));t.forEach(r=>{let i=r.getSourceFile(),o=wc.SmartIndenter.getContainingList(r,i);if(r!==Ja(o))return;let s=pW(o,l=>!t.has(l),o.length-2);s!==-1&&this.deleteRange(i,{pos:o[s].end,end:g_e(i,o[s+1])})})}getChanges(t){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();let r=xQ.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,t);return this.newFileChanges&&this.newFileChanges.forEach((i,o)=>{r.push(xQ.newFileChanges(o,i,this.newLineCharacter,this.formatContext))}),r}createNewFile(t,r,i){this.insertStatementsInNewFile(r,i,t)}},(e=>{function t(d,p,h,m){return to(BC(d,y=>y.sourceFile.path),y=>{let E=y[0].sourceFile,S=vy(y,(N,D)=>N.range.pos-D.range.pos||N.range.end-D.range.end);for(let N=0;N`${JSON.stringify(S[N].range)} and ${JSON.stringify(S[N+1].range)}`);let A=to(S,N=>{let D=eb(N.range),w=N.kind===1?Gn(Nl(N.node))??N.sourceFile:N.kind===2?Gn(Nl(N.nodes[0]))??N.sourceFile:N.sourceFile,j=o(N,w,E,p,h,m);if(!(D.length===j.length&&Wde(w.text,j,D.start)))return Zw(D,j)});return A.length>0?{fileName:E.fileName,textChanges:A}:void 0})}e.getTextChangesFromChanges=t;function r(d,p,h,m){let y=i(k6(d),p,h,m);return{fileName:d,textChanges:[Zw(gd(0,0),y)],isNewFile:!0}}e.newFileChanges=r;function i(d,p,h,m){let y=va(p,A=>A.statements.map(N=>N===4?"":l(N,A.oldFile,h).text)).join(h),E=Yk("any file name",y,{languageVersion:99,jsDocParsingMode:1},!0,d),S=wc.formatDocument(E,m);return y_e(y,S)+h}e.newFileChangesWorker=i;function o(d,p,h,m,y,E){var S;if(d.kind===0)return"";if(d.kind===3)return d.text;let{options:A={},range:{pos:N}}=d,D=K=>s(K,p,h,N,A,m,y,E),w=d.kind===2?d.nodes.map(K=>Sx(D(K),m)).join(((S=d.options)==null?void 0:S.joiner)||m):D(d.node),j=A.indentation!==void 0||rm(N,p)===N?w:w.replace(/^\s+/,"");return(A.prefix||"")+j+(!A.suffix||El(j,A.suffix)?"":A.suffix)}function s(d,p,h,m,{indentation:y,prefix:E,delta:S},A,N,D){let{node:w,text:j}=l(d,p,A);D&&D(w,j);let K=_7(N,p),Y=y!==void 0?y:wc.SmartIndenter.getIndentation(m,h,K,E===A||rm(m,p)===m);S===void 0&&(S=wc.SmartIndenter.shouldIndentChildNode(K,d)&&K.indentSize||0);let B={text:j,getLineAndCharacterOfPosition(z){return hs(this,z)}},ce=wc.formatNodeGivenIndentation(w,B,p.languageVariant,Y,S,{...N,options:K});return y_e(j,ce)}function l(d,p,h){let m=k2e(h),y=pO(h);return AE({newLine:y,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},m).writeNode(4,d,p,m),{text:m.getText(),node:IQ(d)}}e.getNonformattedText=l})(xQ||(xQ={})),W2e={...WP,factory:bk(WP.factory.flags|1,WP.factory.baseFactory)},(e=>{function t(s,l,d,p){switch(p.kind){case 169:{let S=p.parent;Os(S)&&S.parameters.length===1&&!_s(S,21,d)?s.replaceNodeWithText(d,p,"()"):XO(s,l,d,p);break}case 272:case 271:let h=d.imports.length&&p===Va(d.imports).parent||p===Vr(d.statements,pT);Ug(s,d,p,{leadingTriviaOption:h?0:kp(p)?2:3});break;case 208:let m=p.parent;m.kind===207&&p!==Ja(m.elements)?Ug(s,d,p):XO(s,l,d,p);break;case 260:o(s,l,d,p);break;case 168:XO(s,l,d,p);break;case 276:let E=p.parent;E.elements.length===1?i(s,d,E):XO(s,l,d,p);break;case 274:i(s,d,p);break;case 27:Ug(s,d,p,{trailingTriviaOption:0});break;case 100:Ug(s,d,p,{leadingTriviaOption:0});break;case 263:case 262:Ug(s,d,p,{leadingTriviaOption:kp(p)?2:3});break;default:p.parent?gh(p.parent)&&p.parent.name===p?r(s,d,p.parent):ia(p.parent)&&Bo(p.parent.arguments,p)?XO(s,l,d,p):Ug(s,d,p):Ug(s,d,p)}}e.deleteDeclaration=t;function r(s,l,d){if(!d.namedBindings)Ug(s,l,d.parent);else{let p=d.name.getStart(l),h=so(l,d.name.end);if(h&&h.kind===28){let m=Na(l.text,h.end,!1,!0);s.deleteRange(l,{pos:p,end:m})}else Ug(s,l,d.name)}}function i(s,l,d){if(d.parent.name){let p=x.checkDefined(so(l,d.pos-1));s.deleteRange(l,{pos:p.getStart(l),end:d.end})}else{let p=dE(d,272);Ug(s,l,p)}}function o(s,l,d,p){let{parent:h}=p;if(h.kind===299){s.deleteNodeRange(d,_s(h,21,d),_s(h,22,d));return}if(h.declarations.length!==1){XO(s,l,d,p);return}let m=h.parent;switch(m.kind){case 250:case 249:s.replaceNode(d,p,L.createObjectLiteralExpression());break;case 248:Ug(s,d,h);break;case 243:Ug(s,d,m,{leadingTriviaOption:kp(m)?2:3});break;default:x.assertNever(m)}}})(E_e||(E_e={}))}}),ur={};xa(ur,{ChangeTracker:()=>O2e,LeadingTriviaOption:()=>v_e,TrailingTriviaOption:()=>b_e,applyChanges:()=>y_e,assignPositionsToNode:()=>IQ,createWriter:()=>k2e,deleteNode:()=>Ug,isThisTypeAnnotatable:()=>drt,isValidLocationToAddComment:()=>w2e});var brt=bt({"src/services/_namespaces/ts.textChanges.ts"(){"use strict";vrt()}}),S_e,T_e,Ert=bt({"src/services/formatting/formattingContext.ts"(){"use strict";ai(),S_e=(e=>(e[e.FormatDocument=0]="FormatDocument",e[e.FormatSelection=1]="FormatSelection",e[e.FormatOnEnter=2]="FormatOnEnter",e[e.FormatOnSemicolon=3]="FormatOnSemicolon",e[e.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",e[e.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace",e))(S_e||{}),T_e=class{constructor(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}updateContext(e,t,r,i,o){this.currentTokenSpan=x.checkDefined(e),this.currentTokenParent=x.checkDefined(t),this.nextTokenSpan=x.checkDefined(r),this.nextTokenParent=x.checkDefined(i),this.contextNode=x.checkDefined(o),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(this.tokensAreOnSameLine===void 0){let e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){let t=this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line,r=this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line;return t===r}BlockIsOnOneLine(e){let t=_s(e,19,this.sourceFile),r=_s(e,20,this.sourceFile);if(t&&r){let i=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line,o=this.sourceFile.getLineAndCharacterOfPosition(r.getStart(this.sourceFile)).line;return i===o}return!1}}}});function A_e(e,t,r,i,o){let s=t===1?z2e:F2e;s.setText(e),s.resetTokenState(r);let l=!0,d,p,h,m,y,E=o({advance:S,readTokenInfo:B,readEOFTokenRange:z,isOnToken:Z,isOnEOF:me,getCurrentLeadingTrivia:()=>d,lastTrailingTriviaWasNewLine:()=>l,skipToEndOf:q,skipToStartOf:J,getTokenFullStart:()=>y?.token.pos??s.getTokenStart(),getStartPos:()=>y?.token.pos??s.getTokenStart()});return y=void 0,s.setText(void 0),E;function S(){y=void 0,s.getTokenFullStart()!==r?l=!!p&&Ja(p).kind===4:s.scan(),d=void 0,p=void 0;let pe=s.getTokenFullStart();for(;pe(e[e.None=0]="None",e[e.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",e[e.StopProcessingTokenActions=2]="StopProcessingTokenActions",e[e.InsertSpace=4]="InsertSpace",e[e.InsertNewLine=8]="InsertNewLine",e[e.DeleteSpace=16]="DeleteSpace",e[e.DeleteToken=32]="DeleteToken",e[e.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",e[e.StopAction=3]="StopAction",e[e.ModifySpaceAction=28]="ModifySpaceAction",e[e.ModifyTokenAction=96]="ModifyTokenAction",e))(I_e||{}),x_e=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(x_e||{})}});function B2e(){let e=[];for(let ce=0;ce<=165;ce++)ce!==1&&e.push(ce);function t(...ce){return{tokens:e.filter(z=>!ce.some(Z=>Z===z)),isSpecific:!1}}let r={tokens:e,isSpecific:!1},i=hM([...e,3]),o=hM([...e,1]),s=V2e(83,165),l=V2e(30,79),d=[103,104,165,130,142,152],p=[46,47,55,54],h=[9,10,80,21,23,19,110,105],m=[80,21,110,105],y=[80,22,24,105],E=[80,21,110,105],S=[80,22,24,105],A=[2,3],N=[80,...g7],D=i,w=hM([80,32,3,86,95,102]),j=hM([22,3,92,113,98,93,85]),K=[qr("IgnoreBeforeComment",r,A,bB,1),qr("IgnoreAfterLineComment",2,r,bB,1),qr("NotSpaceBeforeColon",r,59,[Ji,EB,H2e],16),qr("SpaceAfterColon",59,r,[Ji,EB,Brt],4),qr("NoSpaceBeforeQuestionMark",r,58,[Ji,EB,H2e],16),qr("SpaceAfterQuestionMarkInConditionalOperator",58,r,[Ji,Rrt],4),qr("NoSpaceAfterQuestionMark",58,r,[Ji,xrt],16),qr("NoSpaceBeforeDot",r,[25,29],[Ji,Zrt],16),qr("NoSpaceAfterDot",[25,29],r,[Ji],16),qr("NoSpaceBetweenImportParenInImportType",102,21,[Ji,Frt],16),qr("NoSpaceAfterUnaryPrefixOperator",p,h,[Ji,EB],16),qr("NoSpaceAfterUnaryPreincrementOperator",46,m,[Ji],16),qr("NoSpaceAfterUnaryPredecrementOperator",47,E,[Ji],16),qr("NoSpaceBeforeUnaryPostincrementOperator",y,46,[Ji,ske],16),qr("NoSpaceBeforeUnaryPostdecrementOperator",S,47,[Ji,ske],16),qr("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[Ji,rb],4),qr("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[Ji,rb],4),qr("SpaceAfterAddWhenFollowedByPreincrement",40,46,[Ji,rb],4),qr("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[Ji,rb],4),qr("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[Ji,rb],4),qr("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[Ji,rb],4),qr("NoSpaceAfterCloseBrace",20,[28,27],[Ji],16),qr("NewLineBeforeCloseBraceInBlockContext",i,20,[J2e],8),qr("SpaceAfterCloseBrace",20,t(22),[Ji,Nrt],4),qr("SpaceBetweenCloseBraceAndElse",20,93,[Ji],4),qr("SpaceBetweenCloseBraceAndWhile",20,117,[Ji],4),qr("NoSpaceBetweenEmptyBraceBrackets",19,20,[Ji,Z2e],16),qr("SpaceAfterConditionalClosingParen",22,23,[SB],4),qr("NoSpaceBetweenFunctionKeywordAndStar",100,42,[Y2e],16),qr("SpaceAfterStarInGeneratorDeclaration",42,80,[Y2e],4),qr("SpaceAfterFunctionInFuncDecl",100,r,[nA],4),qr("NewLineAfterOpenBraceInBlockContext",19,r,[J2e],8),qr("SpaceAfterGetSetInMember",[139,153],80,[nA],4),qr("NoSpaceBetweenYieldKeywordAndStar",127,42,[Ji,ake],16),qr("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],r,[Ji,ake],4),qr("NoSpaceBetweenReturnAndSemicolon",107,27,[Ji],16),qr("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],r,[Ji],4),qr("SpaceAfterLetConstInVariableDeclaration",[121,87],r,[Ji,jrt],4),qr("NoSpaceBeforeOpenParenInFuncCall",r,21,[Ji,Lrt,krt],16),qr("SpaceBeforeBinaryKeywordOperator",r,d,[Ji,rb],4),qr("SpaceAfterBinaryKeywordOperator",d,r,[Ji,rb],4),qr("SpaceAfterVoidOperator",116,r,[Ji,qrt],4),qr("SpaceBetweenAsyncAndOpenParen",134,21,[Wrt,Ji],4),qr("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[Ji],4),qr("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[Ji],16),qr("SpaceBeforeJsxAttribute",r,80,[zrt,Ji],4),qr("SpaceBeforeSlashInJsxOpeningElement",r,44,[rke,Ji],4),qr("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[rke,Ji],16),qr("NoSpaceBeforeEqualInJsxAttribute",r,64,[tke,Ji],16),qr("NoSpaceAfterEqualInJsxAttribute",64,r,[tke,Ji],16),qr("NoSpaceBeforeJsxNamespaceColon",80,59,[nke],16),qr("NoSpaceAfterJsxNamespaceColon",59,80,[nke],16),qr("NoSpaceAfterModuleImport",[144,149],21,[Ji],16),qr("SpaceAfterCertainTypeScriptKeywords",[128,129,86,138,90,94,95,96,139,119,102,120,144,145,123,125,124,148,153,126,156,161,143,140],r,[Ji],4),qr("SpaceBeforeCertainTypeScriptKeywords",r,[96,119,161],[Ji],4),qr("SpaceAfterModuleName",11,19,[Urt],4),qr("SpaceBeforeArrow",r,39,[Ji],4),qr("SpaceAfterArrow",39,r,[Ji],4),qr("NoSpaceAfterEllipsis",26,80,[Ji],16),qr("NoSpaceAfterOptionalParameters",58,[22,28],[Ji,EB],16),qr("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[Ji,Hrt],16),qr("NoSpaceBeforeOpenAngularBracket",N,30,[Ji,TB],16),qr("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[Ji,TB],16),qr("NoSpaceAfterOpenAngularBracket",30,r,[Ji,TB],16),qr("NoSpaceBeforeCloseAngularBracket",r,32,[Ji,TB],16),qr("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[Ji,TB,Crt,Jrt],16),qr("SpaceBeforeAt",[22,80],60,[Ji],4),qr("NoSpaceAfterAt",60,r,[Ji],16),qr("SpaceAfterDecorator",r,[128,80,95,90,86,126,125,123,124,139,153,23,42],[Vrt],4),qr("NoSpaceBeforeNonNullAssertionOperator",r,54,[Ji,Xrt],16),qr("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[Ji,Krt],16),qr("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[Ji],4)],Y=[qr("SpaceAfterConstructor",137,21,[sf("insertSpaceAfterConstructor"),Ji],4),qr("NoSpaceAfterConstructor",137,21,[W_("insertSpaceAfterConstructor"),Ji],16),qr("SpaceAfterComma",28,r,[sf("insertSpaceAfterCommaDelimiter"),Ji,L_e,wrt,Ort],4),qr("NoSpaceAfterComma",28,r,[W_("insertSpaceAfterCommaDelimiter"),Ji,L_e],16),qr("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[sf("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),nA],4),qr("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[W_("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),nA],16),qr("SpaceAfterKeywordInControl",s,21,[sf("insertSpaceAfterKeywordsInControlFlowStatements"),SB],4),qr("NoSpaceAfterKeywordInControl",s,21,[W_("insertSpaceAfterKeywordsInControlFlowStatements"),SB],16),qr("SpaceAfterOpenParen",21,r,[sf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ji],4),qr("SpaceBeforeCloseParen",r,22,[sf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ji],4),qr("SpaceBetweenOpenParens",21,21,[sf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ji],4),qr("NoSpaceBetweenParens",21,22,[Ji],16),qr("NoSpaceAfterOpenParen",21,r,[W_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ji],16),qr("NoSpaceBeforeCloseParen",r,22,[W_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ji],16),qr("SpaceAfterOpenBracket",23,r,[sf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ji],4),qr("SpaceBeforeCloseBracket",r,24,[sf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ji],4),qr("NoSpaceBetweenBrackets",23,24,[Ji],16),qr("NoSpaceAfterOpenBracket",23,r,[W_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ji],16),qr("NoSpaceBeforeCloseBracket",r,24,[W_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ji],16),qr("SpaceAfterOpenBrace",19,r,[U2e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),K2e],4),qr("SpaceBeforeCloseBrace",r,20,[U2e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),K2e],4),qr("NoSpaceBetweenEmptyBraceBrackets",19,20,[Ji,Z2e],16),qr("NoSpaceAfterOpenBrace",19,r,[R_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Ji],16),qr("NoSpaceBeforeCloseBrace",r,20,[R_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Ji],16),qr("SpaceBetweenEmptyBraceBrackets",19,20,[sf("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),qr("NoSpaceBetweenEmptyBraceBrackets",19,20,[R_e("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Ji],16),qr("SpaceAfterTemplateHeadAndMiddle",[16,17],r,[sf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),eke],4,1),qr("SpaceBeforeTemplateMiddleAndTail",r,[17,18],[sf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Ji],4),qr("NoSpaceAfterTemplateHeadAndMiddle",[16,17],r,[W_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),eke],16,1),qr("NoSpaceBeforeTemplateMiddleAndTail",r,[17,18],[W_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Ji],16),qr("SpaceAfterOpenBraceInJsxExpression",19,r,[sf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ji,DQ],4),qr("SpaceBeforeCloseBraceInJsxExpression",r,20,[sf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ji,DQ],4),qr("NoSpaceAfterOpenBraceInJsxExpression",19,r,[W_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ji,DQ],16),qr("NoSpaceBeforeCloseBraceInJsxExpression",r,20,[W_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ji,DQ],16),qr("SpaceAfterSemicolonInFor",27,r,[sf("insertSpaceAfterSemicolonInForStatements"),Ji,C_e],4),qr("NoSpaceAfterSemicolonInFor",27,r,[W_("insertSpaceAfterSemicolonInForStatements"),Ji,C_e],16),qr("SpaceBeforeBinaryOperator",r,l,[sf("insertSpaceBeforeAndAfterBinaryOperators"),Ji,rb],4),qr("SpaceAfterBinaryOperator",l,r,[sf("insertSpaceBeforeAndAfterBinaryOperators"),Ji,rb],4),qr("NoSpaceBeforeBinaryOperator",r,l,[W_("insertSpaceBeforeAndAfterBinaryOperators"),Ji,rb],16),qr("NoSpaceAfterBinaryOperator",l,r,[W_("insertSpaceBeforeAndAfterBinaryOperators"),Ji,rb],16),qr("SpaceBeforeOpenParenInFuncDecl",r,21,[sf("insertSpaceBeforeFunctionParenthesis"),Ji,nA],4),qr("NoSpaceBeforeOpenParenInFuncDecl",r,21,[W_("insertSpaceBeforeFunctionParenthesis"),Ji,nA],16),qr("NewLineBeforeOpenBraceInControl",j,19,[sf("placeOpenBraceOnNewLineForControlBlocks"),SB,M_e],8,1),qr("NewLineBeforeOpenBraceInFunction",D,19,[sf("placeOpenBraceOnNewLineForFunctions"),nA,M_e],8,1),qr("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",w,19,[sf("placeOpenBraceOnNewLineForFunctions"),$2e,M_e],8,1),qr("SpaceAfterTypeAssertion",32,r,[sf("insertSpaceAfterTypeAssertion"),Ji,w_e],4),qr("NoSpaceAfterTypeAssertion",32,r,[W_("insertSpaceAfterTypeAssertion"),Ji,w_e],16),qr("SpaceBeforeTypeAnnotation",r,[58,59],[sf("insertSpaceBeforeTypeAnnotation"),Ji,N_e],4),qr("NoSpaceBeforeTypeAnnotation",r,[58,59],[W_("insertSpaceBeforeTypeAnnotation"),Ji,N_e],16),qr("NoOptionalSemicolon",27,o,[j2e("semicolons","remove"),$rt],32),qr("OptionalSemicolon",r,o,[j2e("semicolons","insert"),Qrt],64)],B=[qr("NoSpaceBeforeSemicolon",r,27,[Ji],16),qr("SpaceBeforeOpenBraceInControl",j,19,[D_e("placeOpenBraceOnNewLineForControlBlocks"),SB,k_e,P_e],4,1),qr("SpaceBeforeOpenBraceInFunction",D,19,[D_e("placeOpenBraceOnNewLineForFunctions"),nA,RQ,k_e,P_e],4,1),qr("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",w,19,[D_e("placeOpenBraceOnNewLineForFunctions"),$2e,k_e,P_e],4,1),qr("NoSpaceBeforeComma",r,28,[Ji],16),qr("NoSpaceBeforeOpenBracket",t(134,84),23,[Ji],16),qr("NoSpaceAfterCloseBracket",24,r,[Ji,Grt],16),qr("SpaceAfterSemicolon",27,r,[Ji],4),qr("SpaceBetweenForAndAwaitKeyword",99,135,[Ji],4),qr("SpaceBetweenStatements",[22,92,93,84],r,[Ji,L_e,Art],4),qr("SpaceAfterTryCatchFinally",[113,85,98],19,[Ji],4)];return[...K,...Y,...B]}function qr(e,t,r,i,o,s=0){return{leftTokenRange:G2e(t),rightTokenRange:G2e(r),rule:{debugName:e,context:i,action:o,flags:s}}}function hM(e){return{tokens:e,isSpecific:!0}}function G2e(e){return typeof e=="number"?hM([e]):To(e)?hM(e):e}function V2e(e,t,r=[]){let i=[];for(let o=e;o<=t;o++)Bo(r,o)||i.push(o);return hM(i)}function j2e(e,t){return r=>r.options&&r.options[e]===t}function sf(e){return t=>t.options&&Ss(t.options,e)&&!!t.options[e]}function R_e(e){return t=>t.options&&Ss(t.options,e)&&!t.options[e]}function W_(e){return t=>!t.options||!Ss(t.options,e)||!t.options[e]}function D_e(e){return t=>!t.options||!Ss(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function U2e(e){return t=>!t.options||!Ss(t.options,e)||!!t.options[e]}function C_e(e){return e.contextNode.kind===248}function Art(e){return!C_e(e)}function rb(e){switch(e.contextNode.kind){case 226:return e.contextNode.operatorToken.kind!==28;case 227:case 194:case 234:case 281:case 276:case 182:case 192:case 193:case 238:return!0;case 208:case 265:case 271:case 277:case 260:case 169:case 306:case 172:case 171:return e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 249:case 168:return e.currentTokenSpan.kind===103||e.nextTokenSpan.kind===103||e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 250:return e.currentTokenSpan.kind===165||e.nextTokenSpan.kind===165}return!1}function EB(e){return!rb(e)}function H2e(e){return!N_e(e)}function N_e(e){let t=e.contextNode.kind;return t===172||t===171||t===169||t===260||vI(t)}function Irt(e){return Uo(e.contextNode)&&e.contextNode.questionToken}function xrt(e){return!Irt(e)}function Rrt(e){return e.contextNode.kind===227||e.contextNode.kind===194}function P_e(e){return e.TokensAreOnSameLine()||RQ(e)}function K2e(e){return e.contextNode.kind===206||e.contextNode.kind===200||Drt(e)}function M_e(e){return RQ(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function J2e(e){return q2e(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function Drt(e){return q2e(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function q2e(e){return X2e(e.contextNode)}function RQ(e){return X2e(e.nextTokenParent)}function X2e(e){if(Q2e(e))return!0;switch(e.kind){case 241:case 269:case 210:case 268:return!0}return!1}function nA(e){switch(e.contextNode.kind){case 262:case 174:case 173:case 177:case 178:case 179:case 218:case 176:case 219:case 264:return!0}return!1}function Crt(e){return!nA(e)}function Y2e(e){return e.contextNode.kind===262||e.contextNode.kind===218}function $2e(e){return Q2e(e.contextNode)}function Q2e(e){switch(e.kind){case 263:case 231:case 264:case 266:case 187:case 267:case 278:case 279:case 272:case 275:return!0}return!1}function Nrt(e){switch(e.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{let t=e.currentTokenParent.parent;if(!t||t.kind!==219&&t.kind!==218)return!0}}return!1}function SB(e){switch(e.contextNode.kind){case 245:case 255:case 248:case 249:case 250:case 247:case 258:case 246:case 254:case 299:return!0;default:return!1}}function Z2e(e){return e.contextNode.kind===210}function Prt(e){return e.contextNode.kind===213}function Mrt(e){return e.contextNode.kind===214}function Lrt(e){return Prt(e)||Mrt(e)}function krt(e){return e.currentTokenSpan.kind!==28}function wrt(e){return e.nextTokenSpan.kind!==24}function Ort(e){return e.nextTokenSpan.kind!==22}function Wrt(e){return e.contextNode.kind===219}function Frt(e){return e.contextNode.kind===205}function Ji(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==12}function eke(e){return e.contextNode.kind!==12}function L_e(e){return e.contextNode.kind!==284&&e.contextNode.kind!==288}function DQ(e){return e.contextNode.kind===294||e.contextNode.kind===293}function zrt(e){return e.nextTokenParent.kind===291||e.nextTokenParent.kind===295&&e.nextTokenParent.parent.kind===291}function tke(e){return e.contextNode.kind===291}function Brt(e){return e.nextTokenParent.kind!==295}function nke(e){return e.nextTokenParent.kind===295}function rke(e){return e.contextNode.kind===285}function Grt(e){return!nA(e)&&!RQ(e)}function Vrt(e){return e.TokensAreOnSameLine()&&bf(e.contextNode)&&ike(e.currentTokenParent)&&!ike(e.nextTokenParent)}function ike(e){for(;e&&ht(e);)e=e.parent;return e&&e.kind===170}function jrt(e){return e.currentTokenParent.kind===261&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function k_e(e){return e.formattingRequestKind!==2}function Urt(e){return e.contextNode.kind===267}function Hrt(e){return e.contextNode.kind===187}function Krt(e){return e.contextNode.kind===180}function oke(e,t){if(e.kind!==30&&e.kind!==32)return!1;switch(t.kind){case 183:case 216:case 265:case 263:case 231:case 264:case 262:case 218:case 219:case 174:case 173:case 179:case 180:case 213:case 214:case 233:return!0;default:return!1}}function TB(e){return oke(e.currentTokenSpan,e.currentTokenParent)||oke(e.nextTokenSpan,e.nextTokenParent)}function w_e(e){return e.contextNode.kind===216}function Jrt(e){return!w_e(e)}function qrt(e){return e.currentTokenSpan.kind===116&&e.currentTokenParent.kind===222}function ake(e){return e.contextNode.kind===229&&e.contextNode.expression!==void 0}function Xrt(e){return e.contextNode.kind===235}function ske(e){return!Yrt(e)}function Yrt(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}function $rt(e){let t=e.nextTokenSpan.kind,r=e.nextTokenSpan.pos;if(sR(t)){let s=e.nextTokenParent===e.currentTokenParent?aS(e.currentTokenParent,Fn(e.currentTokenParent,l=>!l.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!s)return!0;t=s.kind,r=s.getStart(e.sourceFile)}let i=e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line,o=e.sourceFile.getLineAndCharacterOfPosition(r).line;return i===o?t===20||t===1:t===240||t===27?!1:e.contextNode.kind===264||e.contextNode.kind===265?!_p(e.currentTokenParent)||!!e.currentTokenParent.type||t!==21:Uo(e.currentTokenParent)?!e.currentTokenParent.initializer:e.currentTokenParent.kind!==248&&e.currentTokenParent.kind!==242&&e.currentTokenParent.kind!==240&&t!==23&&t!==21&&t!==40&&t!==41&&t!==44&&t!==14&&t!==28&&t!==228&&t!==16&&t!==15&&t!==25}function Qrt(e){return a7(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function Zrt(e){return!kr(e.contextNode)||!mp(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}var eit=bt({"src/services/formatting/rules.ts"(){"use strict";ai(),QO()}});function tit(e,t){return{options:e,getRules:nit(),host:t}}function nit(){return O_e===void 0&&(O_e=iit(B2e())),O_e}function rit(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function iit(e){let t=oit(e);return r=>{let i=t[lke(r.currentTokenSpan.kind,r.nextTokenSpan.kind)];if(i){let o=[],s=0;for(let l of i){let d=~rit(s);l.action&d&&oo(l.context,p=>p(r))&&(o.push(l),s|=l.action)}if(o.length)return o}}}function oit(e){let t=new Array(CQ*CQ),r=new Array(t.length);for(let i of e){let o=i.leftTokenRange.isSpecific&&i.rightTokenRange.isSpecific;for(let s of i.leftTokenRange.tokens)for(let l of i.rightTokenRange.tokens){let d=lke(s,l),p=t[d];p===void 0&&(p=t[d]=[]),ait(p,i.rule,o,r,d)}}return t}function lke(e,t){return x.assert(e<=165&&t<=165,"Must compute formatting context from tokens"),e*CQ+t}function ait(e,t,r,i,o){let s=t.action&3?r?0:gM.StopRulesAny:t.context!==bB?r?gM.ContextRulesSpecific:gM.ContextRulesAny:r?gM.NoContextRulesSpecific:gM.NoContextRulesAny,l=i[o]||0;e.splice(sit(l,s),0,t),i[o]=lit(l,s)}function sit(e,t){let r=0;for(let i=0;i<=t;i+=ND)r+=e&AB,e>>=ND;return r}function lit(e,t){let r=(e>>t&AB)+1;return x.assert((r&AB)===r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(AB<(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=ND*1]="StopRulesAny",e[e.ContextRulesSpecific=ND*2]="ContextRulesSpecific",e[e.ContextRulesAny=ND*3]="ContextRulesAny",e[e.NoContextRulesSpecific=ND*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=ND*5]="NoContextRulesAny",e))(gM||{})}});function NQ(e,t,r){let i={pos:e,end:t,kind:r};return x.isDebugging&&Object.defineProperty(i,"__debugKind",{get:()=>x.formatSyntaxKind(r)}),i}function dit(e,t,r){let i=t.getLineAndCharacterOfPosition(e).line;if(i===0)return[];let o=f2(i,t);for(;y_(t.text.charCodeAt(o));)o--;jd(t.text.charCodeAt(o))&&o--;let s={pos:kv(i-1,t),end:o+1};return IB(s,t,r,2)}function uit(e,t,r){let i=W_e(e,27,t);return cke(F_e(i),t,r,3)}function pit(e,t,r){let i=W_e(e,19,t);if(!i)return[];let o=i.parent,s=F_e(o),l={pos:rm(s.getStart(t),t),end:e};return IB(l,t,r,4)}function fit(e,t,r){let i=W_e(e,20,t);return cke(F_e(i),t,r,5)}function mit(e,t){let r={pos:0,end:e.text.length};return IB(r,e,t,0)}function _it(e,t,r,i){let o={pos:rm(e,r),end:t};return IB(o,r,i,1)}function W_e(e,t,r){let i=Tc(e,r);return i&&i.kind===t&&e===i.getEnd()?i:void 0}function F_e(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!hit(t.parent,t);)t=t.parent;return t}function hit(e,t){switch(e.kind){case 263:case 264:return rf(e.members,t);case 267:let r=e.body;return!!r&&r.kind===268&&rf(r.statements,t);case 312:case 241:case 268:return rf(e.statements,t);case 299:return rf(e.block.statements,t)}return!1}function git(e,t){return r(t);function r(i){let o=Go(i,s=>xq(s.getStart(t),s.end,e)&&s);if(o){let s=r(o);if(s)return s}return i}}function yit(e,t){if(!e.length)return o;let r=e.filter(s=>qP(t,s.start,s.start+s.length)).sort((s,l)=>s.start-l.start);if(!r.length)return o;let i=0;return s=>{for(;;){if(i>=r.length)return!1;let l=r[i];if(s.end<=l.start)return!1;if(Oz(s.pos,s.end,l.start,l.start+l.length))return!0;i++}};function o(){return!1}}function vit(e,t,r){let i=e.getStart(r);if(i===t.pos&&e.end===t.end)return i;let o=Tc(t.pos,r);return!o||o.end>=t.pos?e.pos:o.end}function bit(e,t,r){let i=-1,o;for(;e;){let s=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(i!==-1&&s!==i)break;if(F_.shouldIndentChildNode(t,e,o,r))return t.indentSize;i=s,o=e,e=e.parent}return 0}function Eit(e,t,r,i,o,s){let l={pos:e.pos,end:e.end};return A_e(t.text,r,l.pos,l.end,d=>dke(l,e,i,o,d,s,1,p=>!1,t))}function cke(e,t,r,i){if(!e)return[];let o={pos:rm(e.getStart(t),t),end:e.end};return IB(o,t,r,i)}function IB(e,t,r,i){let o=git(e,t);return A_e(t.text,t.languageVariant,vit(o,e,t),e.end,s=>dke(e,o,F_.getIndentationForNode(o,e,t,r.options),bit(o,r.options,t),s,r,i,yit(t.parseDiagnostics,e),t))}function dke(e,t,r,i,o,{options:s,getRules:l,host:d},p,h,m){var y;let E=new T_e(m,p,s),S,A,N,D,w,j=-1,K=[];if(o.advance(),o.isOnToken()){let be=m.getLineAndCharacterOfPosition(t.getStart(m)).line,ze=be;bf(t)&&(ze=m.getLineAndCharacterOfPosition(HV(t,m)).line),me(t,t,be,ze,r,i)}let Y=o.getCurrentLeadingTrivia();if(Y){let be=F_.nodeWillIndentChild(s,t,void 0,m,!1)?r+s.indentSize:r;ge(Y,be,!0,ze=>{J(ze,m.getLineAndCharacterOfPosition(ze.pos),t,t,void 0),pe(ze.pos,be,!1)}),s.trimTrailingWhitespace!==!1&&Ge(Y)}if(A&&o.getTokenFullStart()>=e.end){let be=o.isOnEOF()?o.readEOFTokenRange():o.isOnToken()?o.readTokenInfo(t).token:void 0;if(be&&be.pos===S){let ze=((y=Tc(be.end,m,t))==null?void 0:y.parent)||N;re(be,m.getLineAndCharacterOfPosition(be.pos).line,ze,A,D,N,ze,void 0)}}return K;function B(be,ze,tt,Wt,_t){if(qP(Wt,be,ze)||Xw(Wt,be,ze)){if(_t!==-1)return _t}else{let Je=m.getLineAndCharacterOfPosition(be).line,pt=rm(be,m),Zt=F_.findFirstNonWhitespaceColumn(pt,be,m,s);if(Je!==tt||be===Zt){let en=F_.getBaseIndentation(s);return en>Zt?en:Zt}}return-1}function ce(be,ze,tt,Wt,_t,Je){let pt=F_.shouldIndentChildNode(s,be)?s.indentSize:0;return Je===ze?{indentation:ze===w?j:_t.getIndentation(),delta:Math.min(s.indentSize,_t.getDelta(be)+pt)}:tt===-1?be.kind===21&&ze===w?{indentation:j,delta:_t.getDelta(be)}:F_.childStartsOnTheSameLineWithElseInIfStatement(Wt,be,ze,m)||F_.childIsUnindentedBranchOfConditionalExpression(Wt,be,ze,m)||F_.argumentStartsOnSameLineAsPreviousArgument(Wt,be,ze,m)?{indentation:_t.getIndentation(),delta:pt}:{indentation:_t.getIndentation()+_t.getDelta(be),delta:pt}:{indentation:tt,delta:pt}}function z(be){if(Am(be)){let ze=Vr(be.modifiers,Sa,Kl(be.modifiers,bd));if(ze)return ze.kind}switch(be.kind){case 263:return 86;case 264:return 120;case 262:return 100;case 266:return 266;case 177:return 139;case 178:return 153;case 174:if(be.asteriskToken)return 42;case 172:case 169:let ze=Po(be);if(ze)return ze.kind}}function Z(be,ze,tt,Wt){return{getIndentationForComment:(pt,Zt,en)=>{switch(pt){case 20:case 24:case 22:return tt+Je(en)}return Zt!==-1?Zt:tt},getIndentationForToken:(pt,Zt,en,Dn)=>!Dn&&_t(pt,Zt,en)?tt+Je(en):tt,getIndentation:()=>tt,getDelta:Je,recomputeIndentation:(pt,Zt)=>{F_.shouldIndentChildNode(s,Zt,be,m)&&(tt+=pt?s.indentSize:-s.indentSize,Wt=F_.shouldIndentChildNode(s,be)?s.indentSize:0)}};function _t(pt,Zt,en){switch(Zt){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(en.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if(en.kind!==200)return!1;break}return ze!==pt&&!(bf(be)&&Zt===z(be))}function Je(pt){return F_.nodeWillIndentChild(s,be,pt,m,!0)?Wt:0}}function me(be,ze,tt,Wt,_t,Je){if(!qP(e,be.getStart(m),be.getEnd()))return;let pt=Z(be,tt,_t,Je),Zt=ze;for(Go(be,pn=>{en(pn,-1,be,pt,tt,Wt,!1)},pn=>{Dn(pn,be,tt,pt)});o.isOnToken()&&o.getTokenFullStart()Math.min(be.end,e.end))break;Kn(pn,be,pt,be)}function en(pn,Xt,Kt,hi,uo,Li,So,Qn){if(x.assert(!Ks(pn)),Fl(pn)||wre(Kt,pn))return Xt;let Ur=pn.getStart(m),Er=m.getLineAndCharacterOfPosition(Ur).line,on=Er;bf(pn)&&(on=m.getLineAndCharacterOfPosition(HV(pn,m)).line);let Ye=-1;if(So&&rf(e,Kt)&&(Ye=B(Ur,pn.end,uo,e,Xt),Ye!==-1&&(Xt=Ye)),!qP(e,pn.pos,pn.end))return pn.ende.end)return Xt;if(si.token.end>Ur){si.token.pos>Ur&&o.skipToStartOf(pn);break}Kn(si,be,hi,be)}if(!o.isOnToken()||o.getTokenFullStart()>=e.end)return Xt;if(gI(pn)){let si=o.readTokenInfo(pn);if(pn.kind!==12)return x.assert(si.token.end===pn.end,"Token end is child end"),Kn(si,be,hi,pn),Xt}let Ot=pn.kind===170?Er:Li,In=ce(pn,Er,Ye,be,hi,Ot);return me(pn,Zt,Er,on,In.indentation,In.delta),Zt=be,Qn&&Kt.kind===209&&Xt===-1&&(Xt=In.indentation),Xt}function Dn(pn,Xt,Kt,hi){x.assert(v0(pn)),x.assert(!Ks(pn));let uo=Sit(Xt,pn),Li=hi,So=Kt;if(!qP(e,pn.pos,pn.end)){pn.endpn.pos)break;if(Er.token.kind===uo){So=m.getLineAndCharacterOfPosition(Er.token.pos).line,Kn(Er,Xt,hi,Xt);let on;if(j!==-1)on=j;else{let Ye=rm(Er.token.pos,m);on=F_.findFirstNonWhitespaceColumn(Ye,Er.token.pos,m,s)}Li=Z(Xt,Kt,on,s.indentSize)}else Kn(Er,Xt,hi,Xt)}let Qn=-1;for(let Er=0;Erpe(In.pos,Ot,!1))}on!==-1&&Ye&&(pe(pn.token.pos,on,Qn===1),w=Er.line,j=on)}o.advance(),Zt=Xt}}function ge(be,ze,tt,Wt){for(let _t of be){let Je=rf(e,_t);switch(_t.kind){case 3:Je&&ne(_t,ze,!tt),tt=!1;break;case 2:tt&&Je&&Wt(_t),tt=!1;break;case 4:tt=!0;break}}return tt}function q(be,ze,tt,Wt){for(let _t of be)if(Uz(_t.kind)&&rf(e,_t)){let Je=m.getLineAndCharacterOfPosition(_t.pos);J(_t,Je,ze,tt,Wt)}}function J(be,ze,tt,Wt,_t){let Je=h(be),pt=0;if(!Je)if(A)pt=re(be,ze.line,tt,A,D,N,Wt,_t);else{let Zt=m.getLineAndCharacterOfPosition(e.pos);he(Zt.line,ze.line)}return A=be,S=be.end,N=tt,D=ze.line,pt}function re(be,ze,tt,Wt,_t,Je,pt,Zt){E.updateContext(Wt,Je,be,tt,pt);let en=l(E),Dn=E.options.trimTrailingWhitespace!==!1,Kn=0;return en?jte(en,pn=>{if(Kn=Et(pn,Wt,_t,be,ze),Zt)switch(Kn){case 2:tt.getStart(m)===be.pos&&Zt.recomputeIndentation(!1,pt);break;case 1:tt.getStart(m)===be.pos&&Zt.recomputeIndentation(!0,pt);break;default:x.assert(Kn===0)}Dn=Dn&&!(pn.action&16)&&pn.flags!==1}):Dn=Dn&&be.kind!==1,ze!==_t&&Dn&&he(_t,ze,Wt),Kn}function pe(be,ze,tt){let Wt=z_e(ze,s);if(tt)De(be,0,Wt);else{let _t=m.getLineAndCharacterOfPosition(be),Je=kv(_t.line,m);(ze!==xe(Je,_t.character)||fe(Wt,Je))&&De(Je,_t.character,Wt)}}function xe(be,ze){let tt=0;for(let Wt=0;Wt0){let Li=z_e(uo,s);De(Kt,hi.character,Li)}else Ae(Kt,hi.character)}}function he(be,ze,tt){for(let Wt=be;WtJe)continue;let pt=Ce(_t,Je);pt!==-1&&(x.assert(pt===_t||!y_(m.text.charCodeAt(pt-1))),Ae(pt,Je+1-pt))}}function Ce(be,ze){let tt=ze;for(;tt>=be&&y_(m.text.charCodeAt(tt));)tt--;return tt!==ze?tt+1:-1}function Ge(be){let ze=A?A.end:e.pos;for(let tt of be)Uz(tt.kind)&&(zeqw(h,t)||t===h.end&&(h.kind===2||t===e.getFullWidth()))}function Sit(e,t){switch(e.kind){case 176:case 262:case 218:case 174:case 173:case 219:case 179:case 180:case 184:case 185:case 177:case 178:if(e.typeParameters===t)return 30;if(e.parameters===t)return 21;break;case 213:case 214:if(e.typeArguments===t)return 30;if(e.arguments===t)return 21;break;case 263:case 231:case 264:case 265:if(e.typeParameters===t)return 30;break;case 183:case 215:case 186:case 233:case 205:if(e.typeArguments===t)return 30;break;case 187:return 19}return 0}function Tit(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}function z_e(e,t){if((!PQ||PQ.tabSize!==t.tabSize||PQ.indentSize!==t.indentSize)&&(PQ={tabSize:t.tabSize,indentSize:t.indentSize},YO=$O=void 0),t.convertTabsToSpaces){let i,o=Math.floor(e/t.indentSize),s=e%t.indentSize;return $O||($O=[]),$O[o]===void 0?(i=tO(" ",t.indentSize*o),$O[o]=i):i=$O[o],s?i+tO(" ",s):i}else{let i=Math.floor(e/t.tabSize),o=e-i*t.tabSize,s;return YO||(YO=[]),YO[i]===void 0?YO[i]=s=tO(" ",i):s=YO[i],o?s+tO(" ",o):s}}var PQ,YO,$O,Ait=bt({"src/services/formatting/formatting.ts"(){"use strict";ai(),QO()}}),F_,Iit=bt({"src/services/formatting/smartIndenter.ts"(){"use strict";ai(),QO(),(e=>{let t;(ne=>{ne[ne.Unknown=-1]="Unknown"})(t||(t={}));function r(ne,he,Ce,Ge=!1){if(ne>he.text.length)return d(Ce);if(Ce.indentStyle===0)return 0;let ve=Tc(ne,he,void 0,!0),Ae=uke(he,ne,ve||null);if(Ae&&Ae.kind===3)return i(he,ne,Ce,Ae);if(!ve)return d(Ce);if(Lq(ve.kind)&&ve.getStart(he)<=ne&&ne=0),ve<=Ae)return J(kv(Ae,ne),he,ne,Ce);let De=kv(ve,ne),{column:Le,character:Et}=q(De,he,ne,Ce);return Le===0?Le:ne.text.charCodeAt(De+Et)===42?Le-1:Le}function o(ne,he,Ce){let Ge=he;for(;Ge>0;){let Ae=ne.text.charCodeAt(Ge);if(!Cg(Ae))break;Ge--}let ve=rm(Ge,ne);return J(ve,Ge,ne,Ce)}function s(ne,he,Ce,Ge,ve,Ae){let De,Le=Ce;for(;Le;){if(Rq(Le,he,ne)&&xe(Ae,Le,De,ne,!0)){let be=A(Le,ne),ze=S(Ce,Le,Ge,ne),tt=ze!==0?ve&&ze===2?Ae.indentSize:0:Ge!==be.line?Ae.indentSize:0;return p(Le,be,void 0,tt,ne,!0,Ae)}let Et=Z(Le,ne,Ae,!0);if(Et!==-1)return Et;De=Le,Le=Le.parent}return d(Ae)}function l(ne,he,Ce,Ge){let ve=Ce.getLineAndCharacterOfPosition(ne.getStart(Ce));return p(ne,ve,he,0,Ce,!1,Ge)}e.getIndentationForNode=l;function d(ne){return ne.baseIndentSize||0}e.getBaseIndentation=d;function p(ne,he,Ce,Ge,ve,Ae,De){var Le;let Et=ne.parent;for(;Et;){let be=!0;if(Ce){let _t=ne.getStart(ve);be=_tCe.end}let ze=h(Et,ne,ve),tt=ze.line===he.line||D(Et,ne,he.line,ve);if(be){let _t=(Le=K(ne,ve))==null?void 0:Le[0],Je=!!_t&&A(_t,ve).line>ze.line,pt=Z(ne,ve,De,Je);if(pt!==-1||(pt=y(ne,Et,he,tt,ve,De),pt!==-1))return pt+Ge}xe(De,Et,ne,ve,Ae)&&!tt&&(Ge+=De.indentSize);let Wt=N(Et,ne,he.line,ve);ne=Et,Et=ne.parent,he=Wt?ve.getLineAndCharacterOfPosition(ne.getStart(ve)):ze}return Ge+d(De)}function h(ne,he,Ce){let Ge=K(he,Ce),ve=Ge?Ge.pos:ne.getStart(Ce);return Ce.getLineAndCharacterOfPosition(ve)}function m(ne,he,Ce){let Ge=Zce(ne);return Ge&&Ge.listItemIndex>0?me(Ge.list.getChildren(),Ge.listItemIndex-1,he,Ce):-1}function y(ne,he,Ce,Ge,ve,Ae){return(Hd(ne)||l2(ne))&&(he.kind===312||!Ge)?ge(Ce,ve,Ae):-1}let E;(ne=>{ne[ne.Unknown=0]="Unknown",ne[ne.OpenBrace=1]="OpenBrace",ne[ne.CloseBrace=2]="CloseBrace"})(E||(E={}));function S(ne,he,Ce,Ge){let ve=aS(ne,he,Ge);if(!ve)return 0;if(ve.kind===19)return 1;if(ve.kind===20){let Ae=A(ve,Ge).line;return Ce===Ae?2:0}return 0}function A(ne,he){return he.getLineAndCharacterOfPosition(ne.getStart(he))}function N(ne,he,Ce,Ge){if(!(ia(ne)&&Bo(ne.arguments,he)))return!1;let ve=ne.expression.getEnd();return hs(Ge,ve).line===Ce}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=N;function D(ne,he,Ce,Ge){if(ne.kind===245&&ne.elseStatement===he){let ve=_s(ne,93,Ge);return x.assert(ve!==void 0),A(ve,Ge).line===Ce}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=D;function w(ne,he,Ce,Ge){if(PR(ne)&&(he===ne.whenTrue||he===ne.whenFalse)){let ve=hs(Ge,ne.condition.end).line;if(he===ne.whenTrue)return Ce===ve;{let Ae=A(ne.whenTrue,Ge).line,De=hs(Ge,ne.whenTrue.end).line;return ve===Ae&&De===Ce}}return!1}e.childIsUnindentedBranchOfConditionalExpression=w;function j(ne,he,Ce,Ge){if(v_(ne)){if(!ne.arguments)return!1;let ve=Vr(ne.arguments,Et=>Et.pos===he.pos);if(!ve)return!1;let Ae=ne.arguments.indexOf(ve);if(Ae===0)return!1;let De=ne.arguments[Ae-1],Le=hs(Ge,De.getEnd()).line;if(Ce===Le)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=j;function K(ne,he){return ne.parent&&B(ne.getStart(he),ne.getEnd(),ne.parent,he)}e.getContainingList=K;function Y(ne,he,Ce){return he&&B(ne,ne,he,Ce)}function B(ne,he,Ce,Ge){switch(Ce.kind){case 183:return ve(Ce.typeArguments);case 210:return ve(Ce.properties);case 209:return ve(Ce.elements);case 187:return ve(Ce.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return ve(Ce.typeParameters)||ve(Ce.parameters);case 177:return ve(Ce.parameters);case 263:case 231:case 264:case 265:case 352:return ve(Ce.typeParameters);case 214:case 213:return ve(Ce.typeArguments)||ve(Ce.arguments);case 261:return ve(Ce.declarations);case 275:case 279:return ve(Ce.elements);case 206:case 207:return ve(Ce.elements)}function ve(Ae){return Ae&&Xw(ce(Ce,Ae,Ge),ne,he)?Ae:void 0}}function ce(ne,he,Ce){let Ge=ne.getChildren(Ce);for(let ve=1;ve=0&&he=0;De--){if(ne[De].kind===28)continue;if(Ce.getLineAndCharacterOfPosition(ne[De].end).line!==Ae.line)return ge(Ae,Ce,Ge);Ae=A(ne[De],Ce)}return-1}function ge(ne,he,Ce){let Ge=he.getPositionOfLineAndCharacter(ne.line,0);return J(Ge,Ge+ne.character,he,Ce)}function q(ne,he,Ce,Ge){let ve=0,Ae=0;for(let De=ne;DeT_e,FormattingRequestKind:()=>S_e,RuleAction:()=>I_e,RuleFlags:()=>x_e,SmartIndenter:()=>F_,anyContext:()=>bB,createTextRangeWithKind:()=>NQ,formatDocument:()=>mit,formatNodeGivenIndentation:()=>Eit,formatOnClosingCurly:()=>fit,formatOnEnter:()=>dit,formatOnOpeningCurly:()=>pit,formatOnSemicolon:()=>uit,formatSelection:()=>_it,getAllRules:()=>B2e,getFormatContext:()=>tit,getFormattingScanner:()=>A_e,getIndentationString:()=>z_e,getRangeOfEnclosingComment:()=>uke});var QO=bt({"src/services/_namespaces/ts.formatting.ts"(){"use strict";Ert(),Srt(),Trt(),eit(),cit(),Ait(),Iit()}}),ai=bt({"src/services/_namespaces/ts.ts"(){"use strict";ea(),Gw(),Mje(),nUe(),aUe(),zxe(),yUe(),vUe(),xUe(),OUe(),WUe(),zUe(),JUe(),qUe(),_qe(),hqe(),vqe(),zqe(),Gqe(),Ta(),Wme(),Yme(),gtt(),Stt(),ztt(),cRe(),NRe(),ant(),mnt(),Sh(),Snt(),Ynt(),irt(),lrt(),brt(),QO()}});function xit(){return mke??(mke=new fm(Jp))}function pke(e,t,r,i,o){let s=t?"DeprecationError: ":"DeprecationWarning: ";return s+=`'${e}' `,s+=i?`has been deprecated since v${i}`:"is deprecated",s+=t?" and can no longer be used.":r?` and will no longer be usable after v${r}.`:".",s+=o?` ${tg(o,[e])}`:"",s}function Rit(e,t,r,i){let o=pke(e,!0,t,r,i);return()=>{throw new TypeError(o)}}function Dit(e,t,r,i){let o=!1;return()=>{fke&&!o&&(x.log.warn(pke(e,!1,t,r,i)),o=!0)}}function Cit(e,t={}){let r=typeof t.typeScriptVersion=="string"?new fm(t.typeScriptVersion):t.typeScriptVersion??xit(),i=typeof t.errorAfter=="string"?new fm(t.errorAfter):t.errorAfter,o=typeof t.warnAfter=="string"?new fm(t.warnAfter):t.warnAfter,s=typeof t.since=="string"?new fm(t.since):t.since??o,l=t.error||i&&r.compareTo(i)>=0,d=!o||r.compareTo(o)>=0;return l?Rit(e,i,s,t.message):d?Dit(e,i,s,t.message):qa}function Nit(e,t){return function(){return e(),t.apply(this,arguments)}}function B_e(e,t){let r=Cit(t?.name??x.getFunctionName(e),t);return Nit(r,e)}var fke,mke,_ke=bt({"src/deprecatedCompat/deprecate.ts"(){"use strict";LQ(),fke=!0}});function MQ(e,t,r,i){if(Object.defineProperty(s,"name",{...Object.getOwnPropertyDescriptor(s,"name"),value:e}),i)for(let l of Object.keys(i)){let d=+l;!isNaN(d)&&Ss(t,`${d}`)&&(t[d]=B_e(t[d],{...i[d],name:e}))}let o=Pit(t,r);return s;function s(...l){let d=o(l),p=d!==void 0?t[d]:void 0;if(typeof p=="function")return p(...l);throw new TypeError("Invalid arguments")}}function Pit(e,t){return r=>{for(let i=0;Ss(e,`${i}`)&&Ss(t,`${i}`);i++){let o=t[i];if(o(r))return i}}}function hke(e){return{overload:t=>({bind:r=>({finish:()=>MQ(e,t,r),deprecate:i=>({finish:()=>MQ(e,t,r,i)})})})}}var Mit=bt({"src/deprecatedCompat/deprecations.ts"(){"use strict";LQ(),_ke()}}),Lit=bt({"src/deprecatedCompat/5.0/identifierProperties.ts"(){"use strict";LQ(),_ke(),ioe(e=>{let t=e.getIdentifierConstructor();Ss(t.prototype,"originalKeywordKind")||Object.defineProperty(t.prototype,"originalKeywordKind",{get:B_e(function(){return eE(this)},{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),Ss(t.prototype,"isInJSDocNamespace")||Object.defineProperty(t.prototype,"isInJSDocNamespace",{get:B_e(function(){return this.flags&4096?!0:void 0},{name:"isInJSDocNamespace",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use '.parent' or the surrounding context to determine this instead."})})})}}),LQ=bt({"src/deprecatedCompat/_namespaces/ts.ts"(){"use strict";ea(),Mit(),Lit()}}),kit=bt({"src/typingsInstallerCore/_namespaces/ts.ts"(){"use strict";ea(),Gw(),V_e()}});function gke(e,t,r,i){try{let o=KR(t,Yr(e,"index.d.ts"),{moduleResolution:2},r);return o.resolvedModule&&o.resolvedModule.resolvedFileName}catch(o){i.isEnabled()&&i.writeLine(`Failed to resolve ${t} in folder '${e}': ${o.message}`);return}}function wit(e,t,r,i){let o=!1;for(let s=r.length;s>0;){let l=yke(e,t,r,s);s=l.remaining,o=i(l.command)||o}return o}function yke(e,t,r,i){let o=r.length-i,s,l=i;for(;s=`${e} install --ignore-scripts ${(l===r.length?r:r.slice(o,o+l)).join(" ")} --save-dev --user-agent="typesInstaller/${t}"`,!(s.length<8e3);)l=l-Math.floor(l/2);return{command:s,remaining:i-l}}function vke(e){return`@types/${e}@ts${g_}`}var bke,Eke,Oit=bt({"src/typingsInstallerCore/typingsInstaller.ts"(){"use strict";kit(),V_e(),bke={isEnabled:()=>!1,writeLine:qa},Eke=class{constructor(e,t,r,i,o,s=bke){this.installTypingHost=e,this.globalCachePath=t,this.safeListPath=r,this.typesMapLocation=i,this.throttleLimit=o,this.log=s,this.packageNameToTypingLocation=new Map,this.missingTypingsSet=new Set,this.knownCachesSet=new Set,this.projectWatchers=new Map,this.pendingRunRequests=[],this.installRunCount=1,this.inFlightRequestCount=0,this.latestDistTag="latest",this.log.isEnabled()&&this.log.writeLine(`Global cache location '${t}', safe file path '${r}', types map path ${i}`),this.processCacheLocation(this.globalCachePath)}handleRequest(e){switch(e.kind){case"discover":this.install(e);break;case"closeProject":this.closeProject(e);break;case"typesRegistry":{let t={};this.typesRegistry.forEach((i,o)=>{t[o]=i});let r={kind:Iz,typesRegistry:t};this.sendResponse(r);break}case"installPackage":{this.installPackage(e);break}default:x.assertNever(e)}}closeProject(e){this.closeWatchers(e.projectName)}closeWatchers(e){if(this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}'`),!this.projectWatchers.get(e)){this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${e}'`);return}this.projectWatchers.delete(e),this.sendResponse({kind:KP,projectName:e,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}' - done.`)}install(e){this.log.isEnabled()&&this.log.writeLine(`Got install request${xE(e)}`),e.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${e.cachePath}', loading cached information...`),this.processCacheLocation(e.cachePath)),this.safeList===void 0&&this.initializeSafeList();let t=O_.discoverTypings(this.installTypingHost,this.log.isEnabled()?r=>this.log.writeLine(r):void 0,e.fileNames,e.projectRootPath,this.safeList,this.packageNameToTypingLocation,e.typeAcquisition,e.unresolvedImports,this.typesRegistry,e.compilerOptions);this.watchFiles(e.projectName,t.filesToWatch),t.newTypingNames.length?this.installTypings(e,e.cachePath||this.globalCachePath,t.cachedTypingPaths,t.newTypingNames):(this.sendResponse(this.createSetTypings(e,t.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine("No new typings were requested as a result of typings discovery"))}installPackage(e){let{fileName:t,packageName:r,projectName:i,projectRootPath:o,id:s}=e,l=hm(oi(t),d=>{if(this.installTypingHost.fileExists(Yr(d,"package.json")))return d})||o;if(l)this.installWorker(-1,[r],l,d=>{let p=d?`Package ${r} installed.`:`There was an error installing ${r}.`,h={kind:Bw,projectName:i,id:s,success:d,message:p};this.sendResponse(h)});else{let d={kind:Bw,projectName:i,id:s,success:!1,message:"Could not determine a project root path."};this.sendResponse(d)}}initializeSafeList(){if(this.typesMapLocation){let e=O_.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(e){this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),this.safeList=e;return}this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=O_.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(e){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${e}'`),this.knownCachesSet.has(e)){this.log.isEnabled()&&this.log.writeLine("Cache location was already processed...");return}let t=Yr(e,"package.json"),r=Yr(e,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${t}'...`),this.installTypingHost.fileExists(t)&&this.installTypingHost.fileExists(r)){let i=JSON.parse(this.installTypingHost.readFile(t)),o=JSON.parse(this.installTypingHost.readFile(r));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${t}':${xE(i)}`),this.log.writeLine(`Loaded content of '${r}':${xE(o)}`)),i.devDependencies&&o.dependencies)for(let s in i.devDependencies){if(!Ss(o.dependencies,s))continue;let l=nc(s);if(!l)continue;let d=gke(e,l,this.installTypingHost,this.log);if(!d){this.missingTypingsSet.add(l);continue}let p=this.packageNameToTypingLocation.get(l);if(p){if(p.typingLocation===d)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${l} from '${d}' conflicts with existing typing file '${p}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${l}' => '${d}'`);let h=_W(o.dependencies,s),m=h&&h.version;if(!m)continue;let y={typingLocation:d,version:new fm(m)};this.packageNameToTypingLocation.set(l,y)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return to(e,t=>{let r=qR(t);if(this.missingTypingsSet.has(r)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${r}' is in missingTypingsSet - skipping...`);return}let i=O_.validatePackageName(t);if(i!==O_.NameValidationResult.Ok){this.missingTypingsSet.add(r),this.log.isEnabled()&&this.log.writeLine(O_.renderPackageNameValidationFailure(i,t));return}if(!this.typesRegistry.has(r)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: Entry for package '${r}' does not exist in local types registry - skipping...`);return}if(this.packageNameToTypingLocation.get(r)&&O_.isTypingUpToDate(this.packageNameToTypingLocation.get(r),this.typesRegistry.get(r))){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${r}' already has an up-to-date typing - skipping...`);return}return r})}ensurePackageDirectoryExists(e){let t=Yr(e,"package.json");this.log.isEnabled()&&this.log.writeLine(`Npm config file: ${t}`),this.installTypingHost.fileExists(t)||(this.log.isEnabled()&&this.log.writeLine(`Npm config file: '${t}' is missing, creating new one...`),this.ensureDirectoryExists(e,this.installTypingHost),this.installTypingHost.writeFile(t,'{ "private": true }'))}installTypings(e,t,r,i){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(i)}`);let o=this.filterTypings(i);if(o.length===0){this.log.isEnabled()&&this.log.writeLine("All typings are known to be missing or invalid - no need to install more typings"),this.sendResponse(this.createSetTypings(e,r));return}this.ensurePackageDirectoryExists(t);let s=this.installRunCount;this.installRunCount++,this.sendResponse({kind:xz,eventId:s,typingsInstallerVersion:Jp,projectName:e.projectName});let l=o.map(vke);this.installTypingsAsync(s,l,t,d=>{try{if(!d){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(o)}`);for(let h of o)this.missingTypingsSet.add(h);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(l)}`);let p=[];for(let h of o){let m=gke(t,h,this.installTypingHost,this.log);if(!m){this.missingTypingsSet.add(h);continue}let y=this.typesRegistry.get(h),E=new fm(y[`ts${g_}`]||y[this.latestDistTag]),S={typingLocation:m,version:E};this.packageNameToTypingLocation.set(h,S),p.push(m)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(p)}`),this.sendResponse(this.createSetTypings(e,r.concat(p)))}finally{let p={kind:Rz,eventId:s,projectName:e.projectName,packagesToInstall:l,installSuccess:d,typingsInstallerVersion:Jp};this.sendResponse(p)}})}ensureDirectoryExists(e,t){let r=oi(e);t.directoryExists(r)||this.ensureDirectoryExists(r,t),t.directoryExists(e)||t.createDirectory(e)}watchFiles(e,t){if(!t.length){this.closeWatchers(e);return}let r=this.projectWatchers.get(e),i=new Set(t);!r||dh(i,o=>!r.has(o))||dh(r,o=>!i.has(o))?(this.projectWatchers.set(e,i),this.sendResponse({kind:KP,projectName:e,files:t})):this.sendResponse({kind:KP,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:Fw}}installTypingsAsync(e,t,r,i){this.pendingRunRequests.unshift({requestId:e,packageNames:t,cwd:r,onRequestCompleted:i}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount{this.inFlightRequestCount--,e.onRequestCompleted(t),this.executeWithThrottling()})}}}}}),G_e={};xa(G_e,{TypingsInstaller:()=>Eke,getNpmCommandForInstallation:()=>yke,installNpmPackages:()=>wit,typingsName:()=>vke});var Wit=bt({"src/typingsInstallerCore/_namespaces/ts.server.typingsInstaller.ts"(){"use strict";Oit()}}),V_e=bt({"src/typingsInstallerCore/_namespaces/ts.server.ts"(){"use strict";Dz(),Wit()}}),Fit=bt({"src/server/types.ts"(){"use strict"}});function j_e(e,t,r,i){return{projectName:e.getProjectName(),fileNames:e.getFileNames(!0,!0).concat(e.getExcludedFiles()),compilerOptions:e.getCompilationSettings(),typeAcquisition:t,unresolvedImports:r,projectRootPath:e.getCurrentDirectory(),cachePath:i,kind:"discover"}}function dl(e){return ma(e)}function ZO(e,t,r){let i=cp(e)?e:ho(e,t);return r(i)}function Ske(e){return e}function Tke(){let e=new Map;return{get(t){return e.get(t)},set(t,r){e.set(t,r)},contains(t){return e.has(t)},remove(t){e.delete(t)}}}function U_e(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function H_e(e){return`/dev/null/inferredProject${e}*`}function K_e(e){return`/dev/null/autoImportProviderProject${e}*`}function J_e(e){return`/dev/null/auxiliaryProject${e}*`}function q_e(){return[]}var kQ,_c,wQ,Yy,zit=bt({"src/server/utilitiesPublic.ts"(){"use strict";ib(),kQ=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(kQ||{}),_c=q_e(),wQ=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(wQ||{}),(e=>{function t(){throw new Error("No Project.")}e.ThrowNoProject=t;function r(){throw new Error("The project's language service is disabled.")}e.ThrowProjectLanguageServiceDisabled=r;function i(o,s){throw new Error(`Project '${s.getProjectName()}' does not contain document '${o}'`)}e.ThrowProjectDoesNotContainDocument=i})(Yy||(Yy={}))}});function OQ(e){let t=nc(e);return t==="tsconfig.json"||t==="jsconfig.json"?t:void 0}function Ake(e,t,r){if(!e||e.length===0)return;if(e[0]===t){e.splice(0,1);return}let i=by(e,t,Qs,r);i>=0&&e.splice(i,1)}var WQ,FQ,Bit=bt({"src/server/utilities.ts"(){"use strict";ib(),iA(),WQ=class z4e{constructor(t,r){this.host=t,this.pendingTimeouts=new Map,this.logger=r.hasLevel(3)?r:void 0}schedule(t,r,i){let o=this.pendingTimeouts.get(t);o&&this.host.clearTimeout(o),this.pendingTimeouts.set(t,this.host.setTimeout(z4e.run,r,t,this,i)),this.logger&&this.logger.info(`Scheduled: ${t}${o?", Cancelled earlier one":""}`)}cancel(t){let r=this.pendingTimeouts.get(t);return r?(this.host.clearTimeout(r),this.pendingTimeouts.delete(t)):!1}static run(t,r,i){var o,s;(o=nu)==null||o.logStartScheduledOperation(t),r.pendingTimeouts.delete(t),r.logger&&r.logger.info(`Running: ${t}`),i(),(s=nu)==null||s.logStopScheduledOperation()}},FQ=class B4e{constructor(t,r,i){this.host=t,this.delay=r,this.logger=i}scheduleCollect(){!this.host.gc||this.timerId!==void 0||(this.timerId=this.host.setTimeout(B4e.run,this.delay,this))}static run(t){var r,i;t.timerId=void 0,(r=nu)==null||r.logStartScheduledOperation("GC collect");let o=t.logger.hasLevel(2),s=o&&t.host.getMemoryUsage();if(t.host.gc(),o){let l=t.host.getMemoryUsage();t.logger.perftrc(`GC::before ${s}, after ${l}`)}(i=nu)==null||i.logStopScheduledOperation()}}}}),zQ,X_e,Y_e,$_e,Q_e,Z_e,ehe,the,nhe,rhe,ihe,ohe,ahe,she,lhe=bt({"src/server/protocol.ts"(){"use strict";zQ=(e=>(e.JsxClosingTag="jsxClosingTag",e.LinkedEditingRange="linkedEditingRange",e.Brace="brace",e.BraceFull="brace-full",e.BraceCompletion="braceCompletion",e.GetSpanOfEnclosingComment="getSpanOfEnclosingComment",e.Change="change",e.Close="close",e.Completions="completions",e.CompletionInfo="completionInfo",e.CompletionsFull="completions-full",e.CompletionDetails="completionEntryDetails",e.CompletionDetailsFull="completionEntryDetails-full",e.CompileOnSaveAffectedFileList="compileOnSaveAffectedFileList",e.CompileOnSaveEmitFile="compileOnSaveEmitFile",e.Configure="configure",e.Definition="definition",e.DefinitionFull="definition-full",e.DefinitionAndBoundSpan="definitionAndBoundSpan",e.DefinitionAndBoundSpanFull="definitionAndBoundSpan-full",e.Implementation="implementation",e.ImplementationFull="implementation-full",e.EmitOutput="emit-output",e.Exit="exit",e.FileReferences="fileReferences",e.FileReferencesFull="fileReferences-full",e.Format="format",e.Formatonkey="formatonkey",e.FormatFull="format-full",e.FormatonkeyFull="formatonkey-full",e.FormatRangeFull="formatRange-full",e.Geterr="geterr",e.GeterrForProject="geterrForProject",e.SemanticDiagnosticsSync="semanticDiagnosticsSync",e.SyntacticDiagnosticsSync="syntacticDiagnosticsSync",e.SuggestionDiagnosticsSync="suggestionDiagnosticsSync",e.NavBar="navbar",e.NavBarFull="navbar-full",e.Navto="navto",e.NavtoFull="navto-full",e.NavTree="navtree",e.NavTreeFull="navtree-full",e.DocumentHighlights="documentHighlights",e.DocumentHighlightsFull="documentHighlights-full",e.Open="open",e.Quickinfo="quickinfo",e.QuickinfoFull="quickinfo-full",e.References="references",e.ReferencesFull="references-full",e.Reload="reload",e.Rename="rename",e.RenameInfoFull="rename-full",e.RenameLocationsFull="renameLocations-full",e.Saveto="saveto",e.SignatureHelp="signatureHelp",e.SignatureHelpFull="signatureHelp-full",e.FindSourceDefinition="findSourceDefinition",e.Status="status",e.TypeDefinition="typeDefinition",e.ProjectInfo="projectInfo",e.ReloadProjects="reloadProjects",e.Unknown="unknown",e.OpenExternalProject="openExternalProject",e.OpenExternalProjects="openExternalProjects",e.CloseExternalProject="closeExternalProject",e.SynchronizeProjectList="synchronizeProjectList",e.ApplyChangedToOpenFiles="applyChangedToOpenFiles",e.UpdateOpen="updateOpen",e.EncodedSyntacticClassificationsFull="encodedSyntacticClassifications-full",e.EncodedSemanticClassificationsFull="encodedSemanticClassifications-full",e.Cleanup="cleanup",e.GetOutliningSpans="getOutliningSpans",e.GetOutliningSpansFull="outliningSpans",e.TodoComments="todoComments",e.Indentation="indentation",e.DocCommentTemplate="docCommentTemplate",e.CompilerOptionsDiagnosticsFull="compilerOptionsDiagnostics-full",e.NameOrDottedNameSpan="nameOrDottedNameSpan",e.BreakpointStatement="breakpointStatement",e.CompilerOptionsForInferredProjects="compilerOptionsForInferredProjects",e.GetCodeFixes="getCodeFixes",e.GetCodeFixesFull="getCodeFixes-full",e.GetCombinedCodeFix="getCombinedCodeFix",e.GetCombinedCodeFixFull="getCombinedCodeFix-full",e.ApplyCodeActionCommand="applyCodeActionCommand",e.GetSupportedCodeFixes="getSupportedCodeFixes",e.GetApplicableRefactors="getApplicableRefactors",e.GetEditsForRefactor="getEditsForRefactor",e.GetMoveToRefactoringFileSuggestions="getMoveToRefactoringFileSuggestions",e.GetEditsForRefactorFull="getEditsForRefactor-full",e.OrganizeImports="organizeImports",e.OrganizeImportsFull="organizeImports-full",e.GetEditsForFileRename="getEditsForFileRename",e.GetEditsForFileRenameFull="getEditsForFileRename-full",e.ConfigurePlugin="configurePlugin",e.SelectionRange="selectionRange",e.SelectionRangeFull="selectionRange-full",e.ToggleLineComment="toggleLineComment",e.ToggleLineCommentFull="toggleLineComment-full",e.ToggleMultilineComment="toggleMultilineComment",e.ToggleMultilineCommentFull="toggleMultilineComment-full",e.CommentSelection="commentSelection",e.CommentSelectionFull="commentSelection-full",e.UncommentSelection="uncommentSelection",e.UncommentSelectionFull="uncommentSelection-full",e.PrepareCallHierarchy="prepareCallHierarchy",e.ProvideCallHierarchyIncomingCalls="provideCallHierarchyIncomingCalls",e.ProvideCallHierarchyOutgoingCalls="provideCallHierarchyOutgoingCalls",e.ProvideInlayHints="provideInlayHints",e.WatchChange="watchChange",e))(zQ||{}),X_e=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(X_e||{}),Y_e=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(Y_e||{}),$_e=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))($_e||{}),Q_e=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(Q_e||{}),Z_e=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(Z_e||{}),ehe=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(ehe||{}),the=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(the||{}),nhe=(e=>(e.None="None",e.Preserve="Preserve",e.ReactNative="ReactNative",e.React="React",e))(nhe||{}),rhe=(e=>(e.None="None",e.CommonJS="CommonJS",e.AMD="AMD",e.UMD="UMD",e.System="System",e.ES6="ES6",e.ES2015="ES2015",e.ESNext="ESNext",e.Node16="Node16",e.NodeNext="NodeNext",e.Preserve="Preserve",e))(rhe||{}),ihe=(e=>(e.Classic="Classic",e.Node="Node",e.Node10="Node10",e.Node16="Node16",e.NodeNext="NodeNext",e.Bundler="Bundler",e))(ihe||{}),ohe=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(ohe||{}),ahe=(e=>(e.ES3="ES3",e.ES5="ES5",e.ES6="ES6",e.ES2015="ES2015",e.ES2016="ES2016",e.ES2017="ES2017",e.ES2018="ES2018",e.ES2019="ES2019",e.ES2020="ES2020",e.ES2021="ES2021",e.ES2022="ES2022",e.ESNext="ESNext",e))(ahe||{}),she=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral",e))(she||{})}}),che={};xa(che,{ClassificationType:()=>she,CommandTypes:()=>zQ,CompletionTriggerKind:()=>Z_e,IndentStyle:()=>ehe,JsxEmit:()=>nhe,ModuleKind:()=>rhe,ModuleResolutionKind:()=>ihe,NewLineKind:()=>ohe,OrganizeImportsMode:()=>X_e,PollingWatchKind:()=>Q_e,ScriptTarget:()=>ahe,SemicolonPreference:()=>the,WatchDirectoryKind:()=>$_e,WatchFileKind:()=>Y_e});var Git=bt({"src/server/_namespaces/ts.server.protocol.ts"(){"use strict";lhe()}});function e8(e){return e[0]==="^"||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&nc(e)[0]==="^"||e.includes(":^")&&!e.includes(nl)}function Ike(e){return!e||n8(e)?Yy.ThrowNoProject():e}function Vit(e){x.assert(typeof e=="number",`Expected position ${e} to be a number.`),x.assert(e>=0,"Expected position to be non-negative.")}function jit(e){x.assert(typeof e.line=="number",`Expected line ${e.line} to be a number.`),x.assert(typeof e.offset=="number",`Expected offset ${e.offset} to be a number.`),x.assert(e.line>0,`Expected line to be non-${e.line===0?"zero":"negative"}`),x.assert(e.offset>0,`Expected offset to be non-${e.offset===0?"zero":"negative"}`)}var BQ,GQ,Uit=bt({"src/server/scriptInfo.ts"(){"use strict";ib(),iA(),BQ=class{constructor(e,t,r){this.host=e,this.info=t,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=r||0}getVersion(){return this.svc?`SVC-${this.version}-${this.svc.getSnapshotVersion()}`:`Text-${this.version}`}hasScriptVersionCache_TestOnly(){return this.svc!==void 0}resetSourceMapInfo(){this.info.sourceFileLike=void 0,this.info.closeSourceMapFileWatcher(),this.info.sourceMapFilePath=void 0,this.info.declarationInfoPath=void 0,this.info.sourceInfos=void 0,this.info.documentPositionMapper=void 0}useText(e){this.svc=void 0,this.text=e,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo(),this.version++}edit(e,t,r){this.switchToScriptVersionCache().edit(e,t-e,r),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(e){return x.assert(e!==void 0),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=cD(this.svc.getSnapshot())),this.text!==e?(this.useText(e),this.ownFileText=!1,!0):!1}reloadWithFileText(e){let{text:t,fileSize:r}=e||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(e):{text:"",fileSize:void 0},i=this.reload(t);return this.fileSize=r,this.ownFileText=!e||e===this.info.fileName,i}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText?this.pendingReloadFromDisk=!0:!1}delayReloadFromFileIntoText(){this.pendingReloadFromDisk=!0}getTelemetryFileSize(){return this.fileSize?this.fileSize:this.text?this.text.length:this.svc?this.svc.getSnapshot().getLength():this.getSnapshot().getLength()}getSnapshot(){var e;return((e=this.tryUseScriptVersionCache())==null?void 0:e.getSnapshot())||(this.textSnapshot??(this.textSnapshot=Nz.fromString(x.checkDefined(this.text))))}getAbsolutePositionAndLineText(e){let t=this.tryUseScriptVersionCache();if(t)return t.getAbsolutePositionAndLineText(e);let r=this.getLineMap();return e<=r.length?{absolutePosition:r[e-1],lineText:this.text.substring(r[e-1],r[e])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(e){let t=this.tryUseScriptVersionCache();if(t)return t.lineToTextSpan(e);let r=this.getLineMap(),i=r[e],o=e+1t===void 0?t=this.host.readFile(r)||"":t;if(!WI(this.info.fileName)){let o=this.host.getFileSize?this.host.getFileSize(r):i().length;if(o>NB)return x.assert(!!this.info.containingProjects.length),this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${r} for info ${this.info.fileName}: fileSize: ${o}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(r,o),{text:"",fileSize:o}}return{text:i()}}switchToScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&(this.svc=jB.fromString(this.getOrLoadText()),this.textSnapshot=void 0,this.version++),this.svc}tryUseScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&this.getOrLoadText(),this.isOpen?(!this.svc&&!this.textSnapshot&&(this.svc=jB.fromString(x.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(this.text===void 0||this.pendingReloadFromDisk)&&(x.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return x.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=hI(x.checkDefined(this.text)))}getLineInfo(){let e=this.tryUseScriptVersionCache();if(e)return{getLineCount:()=>e.getLineCount(),getLineText:r=>e.getAbsolutePositionAndLineText(r+1).lineText};let t=this.getLineMap();return AK(this.text,t)}},GQ=class{constructor(e,t,r,i,o,s){this.host=e,this.fileName=t,this.scriptKind=r,this.hasMixedContent=i,this.path=o,this.containingProjects=[],this.isDynamic=e8(t),this.textStorage=new BQ(e,this,s),(i||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=r||k6(t)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(e){this.textStorage.isOpen=!0,e!==void 0&&this.textStorage.reload(e)&&this.markContainingProjectsAsDirty()}close(e=!0){this.textStorage.isOpen=!1,e&&this.textStorage.scheduleReloadIfNeeded()&&this.markContainingProjectsAsDirty()}getSnapshot(){return this.textStorage.getSnapshot()}ensureRealPath(){if(this.realpath===void 0&&(this.realpath=this.path,this.host.realpath)){x.assert(!!this.containingProjects.length);let e=this.containingProjects[0],t=this.host.realpath(this.path);t&&(this.realpath=e.toPath(t),this.realpath!==this.path&&e.projectService.realpathToScriptInfos.add(this.realpath,this))}}getRealpathIfDifferent(){return this.realpath&&this.realpath!==this.path?this.realpath:void 0}isSymlink(){return this.realpath&&this.realpath!==this.path}getFormatCodeSettings(){return this.formatSettings}getPreferences(){return this.preferences}attachToProject(e){let t=!this.isAttached(e);return t&&(this.containingProjects.push(e),e.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),e.onFileAddedOrRemoved(this.isSymlink())),t}isAttached(e){switch(this.containingProjects.length){case 0:return!1;case 1:return this.containingProjects[0]===e;case 2:return this.containingProjects[0]===e||this.containingProjects[1]===e;default:return Bo(this.containingProjects,e)}}detachFromProject(e){switch(this.containingProjects.length){case 0:return;case 1:this.containingProjects[0]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;case 2:this.containingProjects[0]===e?(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects[0]=this.containingProjects.pop()):this.containingProjects[1]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;default:Tx(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(let e of this.containingProjects){ME(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);let t=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),t&&!PD(e)&&e.addMissingFileRoot(t.fileName)}Gh(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return Yy.ThrowNoProject();case 1:return Ike(this.containingProjects[0]);default:let e,t,r,i,o;for(let s=0;s!e.isOrphan())}isContainedByBackgroundProject(){return gt(this.containingProjects,n8)}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,r){return this.textStorage.lineOffsetToPosition(e,t,r)}positionToLineOffset(e){Vit(e);let t=this.textStorage.positionToLineOffset(e);return jit(t),t}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!No(this.sourceMapFilePath)&&(Rf(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}}}});function xke(e,t){if(e===t||(e||_c).length===0&&(t||_c).length===0)return!0;let r=new Map,i=0;for(let o of e)r.get(o)!==!0&&(r.set(o,!0),i++);for(let o of t){let s=r.get(o);if(s===void 0)return!1;s===!0&&(r.set(o,!1),i--)}return i===0}function Hit(e,t){return e.enable!==t.enable||!xke(e.include,t.include)||!xke(e.exclude,t.exclude)}function Kit(e,t){return Vv(e)!==Vv(t)}function Jit(e,t){return e===t?!1:!Gm(e,t)}var xB,VQ,qit=bt({"src/server/typingsCache.ts"(){"use strict";ib(),iA(),xB={isKnownTypesPackageName:Vm,installPackage:Ho,enqueueInstallTypingsRequest:qa,attach:qa,onProjectClosed:qa,globalTypingsCacheLocation:void 0},VQ=class{constructor(e){this.installer=e,this.perProjectCache=new Map}isKnownTypesPackageName(e){return this.installer.isKnownTypesPackageName(e)}installPackage(e){return this.installer.installPackage(e)}enqueueInstallTypingsForProject(e,t,r){let i=e.getTypeAcquisition();if(!i||!i.enable)return;let o=this.perProjectCache.get(e.getProjectName());(r||!o||Hit(i,o.typeAcquisition)||Kit(e.getCompilationSettings(),o.compilerOptions)||Jit(t,o.unresolvedImports))&&(this.perProjectCache.set(e.getProjectName(),{compilerOptions:e.getCompilationSettings(),typeAcquisition:i,typings:o?o.typings:_c,unresolvedImports:t,poisoned:!0}),this.installer.enqueueInstallTypingsRequest(e,i,t))}updateTypingsForProject(e,t,r,i,o){let s=ZS(o);return this.perProjectCache.set(e,{compilerOptions:t,typeAcquisition:r,typings:s,unresolvedImports:i,poisoned:!1}),!r||!r.enable?_c:s}onProjectClosed(e){this.perProjectCache.delete(e.getProjectName())&&this.installer.onProjectClosed(e)}}}});function t8(e,t=!1){let r={js:0,jsSize:0,jsx:0,jsxSize:0,ts:0,tsSize:0,tsx:0,tsxSize:0,dts:0,dtsSize:0,deferred:0,deferredSize:0};for(let i of e){let o=t?i.textStorage.getTelemetryFileSize():0;switch(i.scriptKind){case 1:r.js+=1,r.jsSize+=o;break;case 2:r.jsx+=1,r.jsxSize+=o;break;case 3:Ed(i.fileName)?(r.dts+=1,r.dtsSize+=o):(r.ts+=1,r.tsSize+=o);break;case 4:r.tsx+=1,r.tsxSize+=o;break;case 7:r.deferred+=1,r.deferredSize+=o;break}}return r}function Xit(e){let t=t8(e.getScriptInfos());return t.js>0&&t.ts===0&&t.tsx===0}function dhe(e){let t=t8(e.getRootScriptInfos());return t.ts===0&&t.tsx===0}function uhe(e){let t=t8(e.getScriptInfos());return t.ts===0&&t.tsx===0}function phe(e){return!e.some(t=>Sl(t,".ts")&&!Ed(t)||Sl(t,".tsx"))}function fhe(e){return e.generatedFilePath!==void 0}function Yit(e,t){var r,i;let o=e.getSourceFiles();(r=rr)==null||r.push(rr.Phase.Session,"getUnresolvedImports",{count:o.length});let s=e.getTypeChecker().getAmbientModules().map(d=>Yf(d.getName())),l=FC(va(o,d=>$it(e,d,s,t)));return(i=rr)==null||i.pop(),l}function $it(e,t,r,i){return WC(i,t.path,()=>{let o;return e.forEachResolvedModule(({resolvedModule:s},l)=>{(!s||!GN(s.extension))&&!Yc(l)&&!r.some(d=>d===l)&&(o=Tn(o,mw(l).packageName))},t),o||_c})}function PD(e){return e.projectKind===0}function ME(e){return e.projectKind===1}function jQ(e){return e.projectKind===2}function n8(e){return e.projectKind===3||e.projectKind===4}var yM,rA,UQ,HQ,KQ,JQ,qQ,RB,Qit=bt({"src/server/project.ts"(){"use strict";ib(),ib(),iA(),yM=(e=>(e[e.Inferred=0]="Inferred",e[e.Configured=1]="Configured",e[e.External=2]="External",e[e.AutoImportProvider=3]="AutoImportProvider",e[e.Auxiliary=4]="Auxiliary",e))(yM||{}),rA=class G4e{constructor(t,r,i,o,s,l,d,p,h,m,y){switch(this.projectKind=r,this.projectService=i,this.documentRegistry=o,this.compilerOptions=d,this.compileOnSaveEnabled=p,this.watchOptions=h,this.rootFiles=[],this.rootFilesMap=new Map,this.plugins=[],this.cachedUnresolvedImportsPerFile=new Map,this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1,this.lastReportedVersion=0,this.projectProgramVersion=0,this.projectStateVersion=0,this.isInitialLoadPending=Vm,this.dirty=!1,this.typingFiles=_c,this.moduleSpecifierCache=Ihe(this),this.createHash=ta(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=O_.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,this.projectName=t,this.directoryStructureHost=m,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(y),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new SY(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(s||Vv(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=H7(),this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),i.serverMode){case 0:this.languageServiceEnabled=!0;break;case 1:this.languageServiceEnabled=!0,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;case 2:this.languageServiceEnabled=!1,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;default:x.assertNever(i.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();let E=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=S=>this.writeLog(S):E.trace&&(this.trace=S=>E.trace(S)),this.realpath=ta(E,E.realpath),this.resolutionCache=PJ(this,this.currentDirectory,!0),this.languageService=ipe(this,this.documentRegistry,this.projectService.serverMode),l&&this.disableLanguageService(l),this.markAsDirty(),n8(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(t){}isNonTsProject(){return zp(this),uhe(this)}isJsOnlyProject(){return zp(this),Xit(this)}static resolveModule(t,r,i,o){return G4e.importServicePluginSync({name:t},[r],i,o).resolvedModule}static importServicePluginSync(t,r,i,o){x.assertIsDefined(i.require);let s,l;for(let d of r){let p=Pd(i.resolvePath(Yr(d,"node_modules")));o(`Loading ${t.name} from ${d} (resolved to ${p})`);let h=i.require(p,t.name);if(!h.error){l=h.module;break}let m=h.error.stack||h.error.message||JSON.stringify(h.error);(s??(s=[])).push(`Failed to load module '${t.name}' from ${p}: ${m}`)}return{pluginConfigEntry:t,resolvedModule:l,errorLogs:s}}static async importServicePluginAsync(t,r,i,o){x.assertIsDefined(i.importPlugin);let s,l;for(let d of r){let p=Yr(d,"node_modules");o(`Dynamically importing ${t.name} from ${d} (resolved to ${p})`);let h;try{h=await i.importPlugin(p,t.name)}catch(y){h={module:void 0,error:y}}if(!h.error){l=h.module;break}let m=h.error.stack||h.error.message||JSON.stringify(h.error);(s??(s=[])).push(`Failed to dynamically import module '${t.name}' from ${p}: ${m}`)}return{pluginConfigEntry:t,resolvedModule:l,errorLogs:s}}isKnownTypesPackageName(t){return this.typingsCache.isKnownTypesPackageName(t)}installPackage(t){return this.typingsCache.installPackage({...t,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getGlobalCache()}get typingsCache(){return this.projectService.typingsCache}getSymlinkCache(){return this.symlinks||(this.symlinks=oU(this.getCurrentDirectory(),this.getCanonicalFileName)),this.program&&!this.symlinks.hasProcessedResolutions()&&this.symlinks.setSymlinksFromResolutions(this.program.forEachResolvedModule,this.program.forEachResolvedTypeReferenceDirective,this.program.getAutomaticTypeDirectiveResolutions()),this.symlinks}getCompilationSettings(){return this.compilerOptions}getCompilerOptions(){return this.getCompilationSettings()}getNewLine(){return this.projectService.host.newLine}getProjectVersion(){return this.projectStateVersion.toString()}getProjectReferences(){}getScriptFileNames(){if(!this.rootFiles)return Xe;let t;return this.rootFilesMap.forEach(r=>{(this.languageServiceEnabled||r.info&&r.info.isScriptOpen())&&(t||(t=[])).push(r.fileName)}),Hr(t,this.typingFiles)||Xe}getOrCreateScriptInfoAndAttachToProject(t){let r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost);if(r){let i=this.rootFilesMap.get(r.path);i&&i.info!==r&&(this.rootFiles.push(r),i.info=r),r.attachToProject(this)}return r}getScriptKind(t){let r=this.projectService.getScriptInfoForPath(this.toPath(t));return r&&r.scriptKind}getScriptVersion(t){let r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost);return r&&r.getLatestVersion()}getScriptSnapshot(t){let r=this.getOrCreateScriptInfoAndAttachToProject(t);if(r)return r.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){let t=oi(ma(this.projectService.getExecutingFilePath()));return Yr(t,HL(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(t,r,i,o,s){return this.directoryStructureHost.readDirectory(t,r,i,o,s)}readFile(t){return this.projectService.host.readFile(t)}writeFile(t,r){return this.projectService.host.writeFile(t,r)}fileExists(t){let r=this.toPath(t);return!this.isWatchedMissingFile(r)&&this.directoryStructureHost.fileExists(t)}resolveModuleNameLiterals(t,r,i,o,s,l){return this.resolutionCache.resolveModuleNameLiterals(t,r,i,o,s,l)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(t,r,i,o,s,l){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(t,r,i,o,s,l)}resolveLibrary(t,r,i,o){return this.resolutionCache.resolveLibrary(t,r,i,o)}directoryExists(t){return this.directoryStructureHost.directoryExists(t)}getDirectories(t){return this.directoryStructureHost.getDirectories(t)}getCachedDirectoryStructureHost(){}toPath(t){return tl(t,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(t,r,i){return this.projectService.watchFactory.watchDirectory(t,r,i,this.projectService.getWatchOptions(this),kc.FailedLookupLocations,this)}watchAffectingFileLocation(t,r){return this.projectService.watchFactory.watchFile(t,r,2e3,this.projectService.getWatchOptions(this),kc.AffectingFileLocation,this)}clearInvalidateResolutionOfFailedLookupTimer(){return this.projectService.throttledOperations.cancel(`${this.getProjectName()}FailedLookupInvalidation`)}scheduleInvalidateResolutionsOfFailedLookupLocations(){this.projectService.throttledOperations.schedule(`${this.getProjectName()}FailedLookupInvalidation`,1e3,()=>{this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)})}invalidateResolutionsOfFailedLookupLocations(){this.clearInvalidateResolutionOfFailedLookupTimer()&&this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&(this.markAsDirty(),this.projectService.delayEnsureProjectForOpenFiles())}onInvalidatedResolution(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}watchTypeRootsDirectory(t,r,i){return this.projectService.watchFactory.watchDirectory(t,r,i,this.projectService.getWatchOptions(this),kc.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}getGlobalCache(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}fileIsOpen(t){return this.projectService.openFiles.has(t)}writeLog(t){this.projectService.logger.info(t)}log(t){this.writeLog(t)}error(t){this.projectService.logger.msg(t,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){(this.projectKind===0||this.projectKind===2)&&(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return jr(this.projectErrors,t=>!t.file)||_c}getAllProjectErrors(){return this.projectErrors||_c}setProjectErrors(t){this.projectErrors=t}getLanguageService(t=!0){return t&&zp(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(t,r){return this.projectService.getDocumentPositionMapper(this,t,r)}getSourceFileLike(t){return this.projectService.getSourceFileLike(t,this)}shouldEmitFile(t){return t&&!t.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(t.path)}getCompileOnSaveAffectedFileList(t){return this.languageServiceEnabled?(zp(this),this.builderState=xm.create(this.program,this.builderState,!0),to(xm.getFilesAffectedBy(this.builderState,this.program,t.path,this.cancellationToken,this.projectService.host),r=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(r.path))?r.fileName:void 0)):[]}emitFile(t,r){if(!this.languageServiceEnabled||!this.shouldEmitFile(t))return{emitSkipped:!0,diagnostics:_c};let{emitSkipped:i,diagnostics:o,outputFiles:s}=this.getLanguageService().getEmitOutput(t.fileName);if(!i){for(let l of s){let d=ho(l.name,this.currentDirectory);r(d,l.text,l.writeByteOrderMark)}if(this.builderState&&Af(this.compilerOptions)){let l=s.filter(d=>Ed(d.name));if(l.length===1){let d=this.program.getSourceFile(t.fileName),p=this.projectService.host.createHash?this.projectService.host.createHash(l[0].text):HC(l[0].text);xm.updateSignatureOfFile(this.builderState,p,d.resolvedPath)}}}return{emitSkipped:i,diagnostics:o}}enableLanguageService(){this.languageServiceEnabled||this.projectService.serverMode===2||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(let t of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(t.fileName);this.program.forEachResolvedProjectReference(t=>this.detachScriptInfoFromProject(t.sourceFile.fileName)),this.program=void 0}}disableLanguageService(t){this.languageServiceEnabled&&(x.assert(this.projectService.serverMode!==2),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=t,this.builderState=void 0,this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.resolutionCache.closeTypeRootsWatch(),this.clearGeneratedFileWatch(),this.projectService.verifyDocumentRegistry(),this.projectService.onUpdateLanguageServiceStateForProject(this,!1))}getProjectName(){return this.projectName}removeLocalTypingsFromTypeAcquisition(t){return!t||!t.include?t:{...t,include:this.removeExistingTypings(t.include)}}getExternalFiles(t){return ZS(va(this.plugins,r=>{if(typeof r.module.getExternalFiles=="function")try{return r.module.getExternalFiles(this,t||0)}catch(i){this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${i}`),i.stack&&this.projectService.logger.info(i.stack)}}))}getSourceFile(t){if(this.program)return this.program.getSourceFileByPath(t)}getSourceFileOrConfigFile(t){let r=this.program.getCompilerOptions();return t===r.configFilePath?r.configFile:this.getSourceFile(t)}close(){var t;this.projectService.typingsCache.onProjectClosed(this),this.closeWatchingTypingLocations(),this.cleanupProgram(),gn(this.externalFiles,r=>this.detachScriptInfoIfNotRoot(r));for(let r of this.rootFiles)r.detachFromProject(this);this.projectService.pendingEnsureProjectForOpenFiles=!0,this.rootFiles=void 0,this.rootFilesMap=void 0,this.externalFiles=void 0,this.program=void 0,this.builderState=void 0,this.resolutionCache.clear(),this.resolutionCache=void 0,this.cachedUnresolvedImportsPerFile=void 0,(t=this.packageJsonWatches)==null||t.forEach(r=>{r.projects.delete(this),r.close()}),this.packageJsonWatches=void 0,this.moduleSpecifierCache.clear(),this.moduleSpecifierCache=void 0,this.directoryStructureHost=void 0,this.exportMapCache=void 0,this.projectErrors=void 0,this.plugins.length=0,this.missingFilesMap&&($u(this.missingFilesMap,Hm),this.missingFilesMap=void 0),this.clearGeneratedFileWatch(),this.clearInvalidateResolutionOfFailedLookupTimer(),this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.noDtsResolutionProject&&this.noDtsResolutionProject.close(),this.noDtsResolutionProject=void 0,this.languageService.dispose(),this.languageService=void 0}detachScriptInfoIfNotRoot(t){let r=this.projectService.getScriptInfo(t);r&&!this.isRoot(r)&&r.detachFromProject(this)}isClosed(){return this.rootFiles===void 0}hasRoots(){return this.rootFiles&&this.rootFiles.length>0}isOrphan(){return!1}getRootFiles(){return this.rootFiles&&this.rootFiles.map(t=>t.fileName)}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return this.rootFiles}getScriptInfos(){return this.languageServiceEnabled?mn(this.program.getSourceFiles(),t=>{let r=this.projectService.getScriptInfoForPath(t.resolvedPath);return x.assert(!!r,"getScriptInfo",()=>`scriptInfo for a file '${t.fileName}' Path: '${t.path}' / '${t.resolvedPath}' is missing.`),r}):this.rootFiles}getExcludedFiles(){return _c}getFileNames(t,r){if(!this.program)return[];if(!this.languageServiceEnabled){let o=this.getRootFiles();if(this.compilerOptions){let s=ope(this.compilerOptions);s&&(o||(o=[])).push(s)}return o}let i=[];for(let o of this.program.getSourceFiles())t&&this.program.isSourceFileFromExternalLibrary(o)||i.push(o.fileName);if(!r){let o=this.program.getCompilerOptions().configFile;if(o&&(i.push(o.fileName),o.extendedSourceFiles))for(let s of o.extendedSourceFiles)i.push(s)}return i}getFileNamesWithRedirectInfo(t){return this.getFileNames().map(r=>({fileName:r,isSourceOfProjectReferenceRedirect:t&&this.isSourceOfProjectReferenceRedirect(r)}))}hasConfigFile(t){if(this.program&&this.languageServiceEnabled){let r=this.program.getCompilerOptions().configFile;if(r){if(t===r.fileName)return!0;if(r.extendedSourceFiles){for(let i of r.extendedSourceFiles)if(t===i)return!0}}}return!1}containsScriptInfo(t){if(this.isRoot(t))return!0;if(!this.program)return!1;let r=this.program.getSourceFileByPath(t.path);return!!r&&r.resolvedPath===t.path}containsFile(t,r){let i=this.projectService.getScriptInfoForNormalizedPath(t);return i&&(i.isScriptOpen()||!r)?this.containsScriptInfo(i):!1}isRoot(t){var r;return this.rootFilesMap&&((r=this.rootFilesMap.get(t.path))==null?void 0:r.info)===t}addRoot(t,r){x.assert(!this.isRoot(t)),this.rootFiles.push(t),this.rootFilesMap.set(t.path,{fileName:r||t.fileName,info:t}),t.attachToProject(this),this.markAsDirty()}addMissingFileRoot(t){let r=this.projectService.toPath(t);this.rootFilesMap.set(r,{fileName:t}),this.markAsDirty()}removeFile(t,r,i){this.isRoot(t)&&this.removeRoot(t),r?this.resolutionCache.removeResolutionsOfFile(t.path):this.resolutionCache.invalidateResolutionOfFile(t.path),this.cachedUnresolvedImportsPerFile.delete(t.path),i&&t.detachFromProject(this),this.markAsDirty()}registerFileUpdate(t){(this.updatedFileNames||(this.updatedFileNames=new Set)).add(t)}markFileAsDirty(t){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(t)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}onAutoImportProviderSettingsChanged(){var t;this.autoImportProviderHost===!1?this.autoImportProviderHost=void 0:(t=this.autoImportProviderHost)==null||t.markAsDirty()}onPackageJsonChange(){this.moduleSpecifierCache.clear(),this.autoImportProviderHost&&this.autoImportProviderHost.markAsDirty()}onFileAddedOrRemoved(t){this.hasAddedorRemovedFiles=!0,t&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}updateFromProject(){zp(this)}updateGraph(){var t,r,i,o,s;(t=rr)==null||t.push(rr.Phase.Session,"updateGraph",{name:this.projectName,kind:yM[this.projectKind]}),(r=nu)==null||r.logStartUpdateGraph(),this.resolutionCache.startRecordingFilesWithChangedResolutions();let l=this.updateGraphWorker(),d=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;let p=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||_c;for(let m of p)this.cachedUnresolvedImportsPerFile.delete(m);this.languageServiceEnabled&&this.projectService.serverMode===0&&!this.isOrphan()?((l||p.length)&&(this.lastCachedUnresolvedImportsList=Yit(this.program,this.cachedUnresolvedImportsPerFile)),this.projectService.typingsCache.enqueueInstallTypingsForProject(this,this.lastCachedUnresolvedImportsList,d)):this.lastCachedUnresolvedImportsList=void 0;let h=this.projectProgramVersion===0&&l;return l&&this.projectProgramVersion++,d&&(this.autoImportProviderHost||(this.autoImportProviderHost=void 0),(i=this.autoImportProviderHost)==null||i.markAsDirty()),h&&this.getPackageJsonAutoImportProvider(),(o=nu)==null||o.logStopUpdateGraph(),(s=rr)==null||s.pop(),!l}updateTypingFiles(t){TW(t,this.typingFiles,Ex(!this.useCaseSensitiveFileNames()),qa,r=>this.detachScriptInfoFromProject(r))&&(this.typingFiles=t,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&$u(this.typingWatchers,Hm),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:zw})}watchTypingLocations(t){if(!t){this.typingWatchers.isInvoked=!1;return}if(!t.length){this.closeWatchingTypingLocations();return}let r=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;let i=(o,s)=>{let l=this.toPath(o);r.delete(l),this.typingWatchers.has(l)||this.typingWatchers.set(l,s==="FileWatcher"?this.projectService.watchFactory.watchFile(o,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),kc.TypingInstallerLocationFile,this):this.projectService.watchFactory.watchDirectory(o,d=>{if(this.typingWatchers.isInvoked)return this.writeLog("TypingWatchers already invoked");if(!Sl(d,".json"))return this.writeLog("Ignoring files that are not *.json");if(Rg(d,Yr(this.projectService.typingsInstaller.globalTypingsCacheLocation,"package.json"),!this.useCaseSensitiveFileNames()))return this.writeLog("Ignoring package.json change at global typings location");this.onTypingInstallerWatchInvoke()},1,this.projectService.getWatchOptions(this),kc.TypingInstallerLocationDirectory,this))};for(let o of t){let s=nc(o);if(s==="package.json"||s==="bower.json"){i(o,"FileWatcher");continue}if(mm(this.currentDirectory,o,this.currentDirectory,!this.useCaseSensitiveFileNames())){let l=o.indexOf(nl,this.currentDirectory.length+1);i(l!==-1?o.substr(0,l):o,"DirectoryWatcher");continue}if(mm(this.projectService.typingsInstaller.globalTypingsCacheLocation,o,this.currentDirectory,!this.useCaseSensitiveFileNames())){i(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher");continue}i(o,"DirectoryWatcher")}r.forEach((o,s)=>{o.close(),this.typingWatchers.delete(s)})}getCurrentProgram(){return this.program}removeExistingTypings(t){let r=y3(this.getCompilerOptions(),this.directoryStructureHost);return t.filter(i=>!r.includes(i))}updateGraphWorker(){var t,r;let i=this.languageService.getCurrentProgram();x.assert(i===this.program),x.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);let o=Hs(),{hasInvalidatedResolutions:s,hasInvalidatedLibResolutions:l}=this.resolutionCache.createHasInvalidatedResolutions(Vm,Vm);this.hasInvalidatedResolutions=s,this.hasInvalidatedLibResolutions=l,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,(t=rr)==null||t.push(rr.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,i),(r=rr)==null||r.pop(),x.assert(i===void 0||this.program!==void 0);let d=!1;if(this.program&&(!i||this.program!==i&&this.program.structureIsReused!==2)){if(d=!0,i){for(let m of i.getSourceFiles()){let y=this.program.getSourceFileByPath(m.resolvedPath);(!y||m.resolvedPath===m.path&&y.resolvedPath!==m.path)&&this.detachScriptInfoFromProject(m.fileName,!!this.program.getSourceFileByPath(m.path),!0)}i.forEachResolvedProjectReference(m=>{this.program.getResolvedProjectReferenceByPath(m.sourceFile.path)||this.detachScriptInfoFromProject(m.sourceFile.fileName,void 0,!0)})}if(QK(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),(m,y)=>this.addMissingFileWatcher(m,y)),this.generatedFilesMap){let m=xs(this.compilerOptions);fhe(this.generatedFilesMap)?(!m||!this.isValidGeneratedFileWatcher(Eu(m)+".d.ts",this.generatedFilesMap))&&this.clearGeneratedFileWatch():m?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((y,E)=>{let S=this.program.getSourceFileByPath(E);(!S||S.resolvedPath!==E||!this.isValidGeneratedFileWatcher(o6(S.fileName,this.compilerOptions,this.currentDirectory,this.program.getCommonSourceDirectory(),this.getCanonicalFileName),y))&&(Rf(y),this.generatedFilesMap.delete(E))})}this.languageServiceEnabled&&this.projectService.serverMode===0&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||i&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&i&&this.program&&dh(this.changedFilesForExportMapCache,m=>{let y=i.getSourceFileByPath(m),E=this.program.getSourceFileByPath(m);return!y||!E?(this.exportMapCache.clear(),!0):this.exportMapCache.onFileChanged(y,E,!!this.getTypeAcquisition().enable)})),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());let p=this.externalFiles||_c;this.externalFiles=this.getExternalFiles(),TW(this.externalFiles,p,Ex(!this.useCaseSensitiveFileNames()),m=>{let y=this.projectService.getOrCreateScriptInfoNotOpenedByClient(m,this.currentDirectory,this.directoryStructureHost);y?.attachToProject(this)},m=>this.detachScriptInfoFromProject(m));let h=Hs()-o;return this.sendPerformanceEvent("UpdateGraph",h),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${d}${this.program?` structureIsReused:: ${LW[this.program.structureIsReused]}`:""} Elapsed: ${h}ms`),this.projectService.logger.isTestLogger?this.program!==i?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==i&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),d}sendPerformanceEvent(t,r){this.projectService.sendPerformanceEvent(t,r)}detachScriptInfoFromProject(t,r,i){let o=this.projectService.getScriptInfo(t);o&&(o.detachFromProject(this),r||this.resolutionCache.removeResolutionsOfFile(o.path,i))}addMissingFileWatcher(t,r){var i;if(ME(this)){let s=this.projectService.configFileExistenceInfoCache.get(t);if((i=s?.config)!=null&&i.projects.has(this.canonicalConfigFilePath))return iD}let o=this.projectService.watchFactory.watchFile(ho(r,this.currentDirectory),(s,l)=>{ME(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(s,t,l),l===0&&this.missingFilesMap.has(t)&&(this.missingFilesMap.delete(t),o.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))},500,this.projectService.getWatchOptions(this),kc.MissingFile,this);return o}isWatchedMissingFile(t){return!!this.missingFilesMap&&this.missingFilesMap.has(t)}addGeneratedFileWatch(t,r){if(xs(this.compilerOptions))this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(t));else{let i=this.toPath(r);if(this.generatedFilesMap){if(fhe(this.generatedFilesMap)){x.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);return}if(this.generatedFilesMap.has(i))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(i,this.createGeneratedFileWatcher(t))}}createGeneratedFileWatcher(t){return{generatedFilePath:this.toPath(t),watcher:this.projectService.watchFactory.watchFile(t,()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)},2e3,this.projectService.getWatchOptions(this),kc.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(t,r){return this.toPath(t)===r.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(fhe(this.generatedFilesMap)?Rf(this.generatedFilesMap):$u(this.generatedFilesMap,Rf),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(t){let r=this.projectService.getScriptInfoForPath(this.toPath(t));return r&&!r.isAttached(this)?Yy.ThrowProjectDoesNotContainDocument(t,this):r}getScriptInfo(t){return this.projectService.getScriptInfo(t)}filesToString(t){return this.filesToStringWorker(t,!0,!1)}filesToStringWorker(t,r,i){if(this.isInitialLoadPending())return` Files (0) InitialLoadPending +`:i.prefix}}getInsertNodeAfterOptionsWorker(t){switch(t.kind){case 263:case 267:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 260:case 11:case 80:return{prefix:", "};case 303:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 169:return{};default:return R.assert(Hi(t)||cF(t)),{suffix:this.newLineCharacter}}}insertName(t,r,i){if(R.assert(!r.name),r.kind===219){let o=hs(r,39,t),s=hs(r,21,t);s?(this.insertNodesAt(t,s.getStart(t),[L.createToken(100),L.createIdentifier(i)],{joiner:" "}),jg(this,t,o)):(this.insertText(t,Va(r.parameters).getStart(t),`function ${i}(`),this.replaceRange(t,o,L.createToken(22))),r.body.kind!==241&&(this.insertNodesAt(t,r.body.getStart(t),[L.createToken(19),L.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,r.body.end,[L.createToken(27),L.createToken(20)],{joiner:" "}))}else{let o=hs(r,r.kind===218?100:86,t).end;this.insertNodeAt(t,o,L.createIdentifier(i),{prefix:" "})}}insertExportModifier(t,r){this.insertText(t,r.getStart(t),"export ")}insertImportSpecifierAtIndex(t,r,i,o){let s=i.elements[o-1];s?this.insertNodeInListAfter(t,s,r):this.insertNodeBefore(t,i.elements[0],r,!Sf(i.elements[0].getStart(),i.parent.parent.getStart(),t))}insertNodeInListAfter(t,r,i,o=kc.SmartIndenter.getContainingList(r,t)){if(!o){R.fail("node is not a list element");return}let s=Vx(o,r);if(s<0)return;let l=r.getEnd();if(s!==o.length-1){let d=so(t,r.end);if(d&&TQ(r,d)){let p=o[s+1],h=z2e(t.text,p.getFullStart()),m=`${ca(d.kind)}${t.text.substring(d.end,h)}`;this.insertNodesAt(t,h,[i],{suffix:m})}}else{let d=r.getStart(t),p=rm(d,t),h,m=!1;if(o.length===1)h=28;else{let y=Tc(r.pos,t);h=TQ(r,y)?y.kind:28,m=rm(o[s-1].getStart(t),t)!==p}if((hrt(t.text,r.end)||!Sf(o.pos,o.end,t))&&(m=!0),m){this.replaceRange(t,Ef(l),L.createToken(h));let y=kc.SmartIndenter.findFirstNonWhitespaceColumn(p,d,t,this.formatContext.options),E=Pa(t.text,l,!0,!1);for(;E!==l&&Vd(t.text.charCodeAt(E-1));)E--;this.replaceRange(t,Ef(E),i,{indentation:y,prefix:this.newLineCharacter})}else this.replaceRange(t,Ef(l),i,{prefix:`${ca(h)} `})}}parenthesizeExpression(t,r){this.replaceRange(t,uU(r),L.createParenthesizedExpression(r))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:t,sourceFile:r})=>{let[i,o]=Ert(t,r);if(i!==void 0&&o!==void 0){let s=AQ(t).length===0,l=Sf(i,o,r);s&&l&&i!==o-1&&this.deleteRange(r,Ef(i,o-1)),l&&this.insertText(r,o-1,this.newLineCharacter)}})}finishDeleteDeclarations(){let t=new Set;for(let{sourceFile:r,node:i}of this.deletedNodes)this.deletedNodes.some(o=>o.sourceFile===r&&rde(o.node,i))||(So(i)?this.deleteRange(r,pU(r,i)):x_e.deleteDeclaration(this,t,r,i));t.forEach(r=>{let i=r.getSourceFile(),o=kc.SmartIndenter.getContainingList(r,i);if(r!==Ja(o))return;let s=pW(o,l=>!t.has(l),o.length-2);s!==-1&&this.deleteRange(i,{pos:o[s].end,end:S_e(i,o[s+1])})})}getChanges(t){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();let r=xQ.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,t);return this.newFileChanges&&this.newFileChanges.forEach((i,o)=>{r.push(xQ.newFileChanges(o,i,this.newLineCharacter,this.formatContext))}),r}createNewFile(t,r,i){this.insertStatementsInNewFile(r,i,t)}},(e=>{function t(d,p,h,m){return to(GC(d,y=>y.sourceFile.path),y=>{let E=y[0].sourceFile,S=by(y,(N,D)=>N.range.pos-D.range.pos||N.range.end-D.range.end);for(let N=0;N`${JSON.stringify(S[N].range)} and ${JSON.stringify(S[N+1].range)}`);let A=to(S,N=>{let D=tb(N.range),w=N.kind===1?Gn(Nl(N.node))??N.sourceFile:N.kind===2?Gn(Nl(N.nodes[0]))??N.sourceFile:N.sourceFile,j=o(N,w,E,p,h,m);if(!(D.length===j.length&&Vde(w.text,j,D.start)))return eO(D,j)});return A.length>0?{fileName:E.fileName,textChanges:A}:void 0})}e.getTextChangesFromChanges=t;function r(d,p,h,m){let y=i(k6(d),p,h,m);return{fileName:d,textChanges:[eO(_d(0,0),y)],isNewFile:!0}}e.newFileChanges=r;function i(d,p,h,m){let y=va(p,A=>A.statements.map(N=>N===4?"":l(N,A.oldFile,h).text)).join(h),E=$k("any file name",y,{languageVersion:99,jsDocParsingMode:1},!0,d),S=kc.formatDocument(E,m);return T_e(y,S)+h}e.newFileChangesWorker=i;function o(d,p,h,m,y,E){var S;if(d.kind===0)return"";if(d.kind===3)return d.text;let{options:A={},range:{pos:N}}=d,D=K=>s(K,p,h,N,A,m,y,E),w=d.kind===2?d.nodes.map(K=>Ex(D(K),m)).join(((S=d.options)==null?void 0:S.joiner)||m):D(d.node),j=A.indentation!==void 0||rm(N,p)===N?w:w.replace(/^\s+/,"");return(A.prefix||"")+j+(!A.suffix||El(j,A.suffix)?"":A.suffix)}function s(d,p,h,m,{indentation:y,prefix:E,delta:S},A,N,D){let{node:w,text:j}=l(d,p,A);D&&D(w,j);let K=_7(N,p),Y=y!==void 0?y:kc.SmartIndenter.getIndentation(m,h,K,E===A||rm(m,p)===m);S===void 0&&(S=kc.SmartIndenter.shouldIndentChildNode(K,d)&&K.indentSize||0);let B={text:j,getLineAndCharacterOfPosition(z){return gs(this,z)}},ce=kc.formatNodeGivenIndentation(w,B,p.languageVariant,Y,S,{...N,options:K});return T_e(j,ce)}function l(d,p,h){let m=B2e(h),y=fO(h);return IE({newLine:y,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},m).writeNode(4,d,p,m),{text:m.getText(),node:IQ(d)}}e.getNonformattedText=l})(xQ||(xQ={})),j2e={...FP,factory:Ek(FP.factory.flags|1,FP.factory.baseFactory)},(e=>{function t(s,l,d,p){switch(p.kind){case 169:{let S=p.parent;Fs(S)&&S.parameters.length===1&&!hs(S,21,d)?s.replaceNodeWithText(d,p,"()"):YO(s,l,d,p);break}case 272:case 271:let h=d.imports.length&&p===Va(d.imports).parent||p===Vr(d.statements,pT);jg(s,d,p,{leadingTriviaOption:h?0:kp(p)?2:3});break;case 208:let m=p.parent;m.kind===207&&p!==Ja(m.elements)?jg(s,d,p):YO(s,l,d,p);break;case 260:o(s,l,d,p);break;case 168:YO(s,l,d,p);break;case 276:let E=p.parent;E.elements.length===1?i(s,d,E):YO(s,l,d,p);break;case 274:i(s,d,p);break;case 27:jg(s,d,p,{trailingTriviaOption:0});break;case 100:jg(s,d,p,{leadingTriviaOption:0});break;case 263:case 262:jg(s,d,p,{leadingTriviaOption:kp(p)?2:3});break;default:p.parent?yh(p.parent)&&p.parent.name===p?r(s,d,p.parent):ra(p.parent)&&zo(p.parent.arguments,p)?YO(s,l,d,p):jg(s,d,p):jg(s,d,p)}}e.deleteDeclaration=t;function r(s,l,d){if(!d.namedBindings)jg(s,l,d.parent);else{let p=d.name.getStart(l),h=so(l,d.name.end);if(h&&h.kind===28){let m=Pa(l.text,h.end,!1,!0);s.deleteRange(l,{pos:p,end:m})}else jg(s,l,d.name)}}function i(s,l,d){if(d.parent.name){let p=R.checkDefined(so(l,d.pos-1));s.deleteRange(l,{pos:p.getStart(l),end:d.end})}else{let p=uE(d,272);jg(s,l,p)}}function o(s,l,d,p){let{parent:h}=p;if(h.kind===299){s.deleteNodeRange(d,hs(h,21,d),hs(h,22,d));return}if(h.declarations.length!==1){YO(s,l,d,p);return}let m=h.parent;switch(m.kind){case 250:case 249:s.replaceNode(d,p,L.createObjectLiteralExpression());break;case 248:jg(s,d,h);break;case 243:jg(s,d,m,{leadingTriviaOption:kp(m)?2:3});break;default:R.assertNever(m)}}})(x_e||(x_e={}))}}),pr={};Ra(pr,{ChangeTracker:()=>V2e,LeadingTriviaOption:()=>A_e,TrailingTriviaOption:()=>I_e,applyChanges:()=>T_e,assignPositionsToNode:()=>IQ,createWriter:()=>B2e,deleteNode:()=>jg,isThisTypeAnnotatable:()=>grt,isValidLocationToAddComment:()=>G2e});var Rrt=bt({"src/services/_namespaces/ts.textChanges.ts"(){"use strict";xrt()}}),R_e,D_e,Drt=bt({"src/services/formatting/formattingContext.ts"(){"use strict";ai(),R_e=(e=>(e[e.FormatDocument=0]="FormatDocument",e[e.FormatSelection=1]="FormatSelection",e[e.FormatOnEnter=2]="FormatOnEnter",e[e.FormatOnSemicolon=3]="FormatOnSemicolon",e[e.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",e[e.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace",e))(R_e||{}),D_e=class{constructor(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}updateContext(e,t,r,i,o){this.currentTokenSpan=R.checkDefined(e),this.currentTokenParent=R.checkDefined(t),this.nextTokenSpan=R.checkDefined(r),this.nextTokenParent=R.checkDefined(i),this.contextNode=R.checkDefined(o),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(this.tokensAreOnSameLine===void 0){let e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){let t=this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line,r=this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line;return t===r}BlockIsOnOneLine(e){let t=hs(e,19,this.sourceFile),r=hs(e,20,this.sourceFile);if(t&&r){let i=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line,o=this.sourceFile.getLineAndCharacterOfPosition(r.getStart(this.sourceFile)).line;return i===o}return!1}}}});function C_e(e,t,r,i,o){let s=t===1?H2e:U2e;s.setText(e),s.resetTokenState(r);let l=!0,d,p,h,m,y,E=o({advance:S,readTokenInfo:B,readEOFTokenRange:z,isOnToken:ee,isOnEOF:me,getCurrentLeadingTrivia:()=>d,lastTrailingTriviaWasNewLine:()=>l,skipToEndOf:q,skipToStartOf:J,getTokenFullStart:()=>y?.token.pos??s.getTokenStart(),getStartPos:()=>y?.token.pos??s.getTokenStart()});return y=void 0,s.setText(void 0),E;function S(){y=void 0,s.getTokenFullStart()!==r?l=!!p&&Ja(p).kind===4:s.scan(),d=void 0,p=void 0;let pe=s.getTokenFullStart();for(;pe(e[e.None=0]="None",e[e.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",e[e.StopProcessingTokenActions=2]="StopProcessingTokenActions",e[e.InsertSpace=4]="InsertSpace",e[e.InsertNewLine=8]="InsertNewLine",e[e.DeleteSpace=16]="DeleteSpace",e[e.DeleteToken=32]="DeleteToken",e[e.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",e[e.StopAction=3]="StopAction",e[e.ModifySpaceAction=28]="ModifySpaceAction",e[e.ModifyTokenAction=96]="ModifyTokenAction",e))(N_e||{}),P_e=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(P_e||{})}});function K2e(){let e=[];for(let ce=0;ce<=165;ce++)ce!==1&&e.push(ce);function t(...ce){return{tokens:e.filter(z=>!ce.some(ee=>ee===z)),isSpecific:!1}}let r={tokens:e,isSpecific:!1},i=gM([...e,3]),o=gM([...e,1]),s=q2e(83,165),l=q2e(30,79),d=[103,104,165,130,142,152],p=[46,47,55,54],h=[9,10,80,21,23,19,110,105],m=[80,21,110,105],y=[80,22,24,105],E=[80,21,110,105],S=[80,22,24,105],A=[2,3],N=[80,...g7],D=i,w=gM([80,32,3,86,95,102]),j=gM([22,3,92,113,98,93,85]),K=[Xr("IgnoreBeforeComment",r,A,bB,1),Xr("IgnoreAfterLineComment",2,r,bB,1),Xr("NotSpaceBeforeColon",r,59,[Ji,EB,$2e],16),Xr("SpaceAfterColon",59,r,[Ji,EB,Jrt],4),Xr("NoSpaceBeforeQuestionMark",r,58,[Ji,EB,$2e],16),Xr("SpaceAfterQuestionMarkInConditionalOperator",58,r,[Ji,krt],4),Xr("NoSpaceAfterQuestionMark",58,r,[Ji,Lrt],16),Xr("NoSpaceBeforeDot",r,[25,29],[Ji,ait],16),Xr("NoSpaceAfterDot",[25,29],r,[Ji],16),Xr("NoSpaceBetweenImportParenInImportType",102,21,[Ji,Hrt],16),Xr("NoSpaceAfterUnaryPrefixOperator",p,h,[Ji,EB],16),Xr("NoSpaceAfterUnaryPreincrementOperator",46,m,[Ji],16),Xr("NoSpaceAfterUnaryPredecrementOperator",47,E,[Ji],16),Xr("NoSpaceBeforeUnaryPostincrementOperator",y,46,[Ji,fke],16),Xr("NoSpaceBeforeUnaryPostdecrementOperator",S,47,[Ji,fke],16),Xr("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[Ji,ib],4),Xr("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[Ji,ib],4),Xr("SpaceAfterAddWhenFollowedByPreincrement",40,46,[Ji,ib],4),Xr("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[Ji,ib],4),Xr("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[Ji,ib],4),Xr("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[Ji,ib],4),Xr("NoSpaceAfterCloseBrace",20,[28,27],[Ji],16),Xr("NewLineBeforeCloseBraceInBlockContext",i,20,[Z2e],8),Xr("SpaceAfterCloseBrace",20,t(22),[Ji,Wrt],4),Xr("SpaceBetweenCloseBraceAndElse",20,93,[Ji],4),Xr("SpaceBetweenCloseBraceAndWhile",20,117,[Ji],4),Xr("NoSpaceBetweenEmptyBraceBrackets",19,20,[Ji,oke],16),Xr("SpaceAfterConditionalClosingParen",22,23,[SB],4),Xr("NoSpaceBetweenFunctionKeywordAndStar",100,42,[nke],16),Xr("SpaceAfterStarInGeneratorDeclaration",42,80,[nke],4),Xr("SpaceAfterFunctionInFuncDecl",100,r,[nA],4),Xr("NewLineAfterOpenBraceInBlockContext",19,r,[Z2e],8),Xr("SpaceAfterGetSetInMember",[139,153],80,[nA],4),Xr("NoSpaceBetweenYieldKeywordAndStar",127,42,[Ji,pke],16),Xr("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],r,[Ji,pke],4),Xr("NoSpaceBetweenReturnAndSemicolon",107,27,[Ji],16),Xr("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],r,[Ji],4),Xr("SpaceAfterLetConstInVariableDeclaration",[121,87],r,[Ji,Yrt],4),Xr("NoSpaceBeforeOpenParenInFuncCall",r,21,[Ji,Brt,Grt],16),Xr("SpaceBeforeBinaryKeywordOperator",r,d,[Ji,ib],4),Xr("SpaceAfterBinaryKeywordOperator",d,r,[Ji,ib],4),Xr("SpaceAfterVoidOperator",116,r,[Ji,tit],4),Xr("SpaceBetweenAsyncAndOpenParen",134,21,[Urt,Ji],4),Xr("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[Ji],4),Xr("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[Ji],16),Xr("SpaceBeforeJsxAttribute",r,80,[Krt,Ji],4),Xr("SpaceBeforeSlashInJsxOpeningElement",r,44,[cke,Ji],4),Xr("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[cke,Ji],16),Xr("NoSpaceBeforeEqualInJsxAttribute",r,64,[ske,Ji],16),Xr("NoSpaceAfterEqualInJsxAttribute",64,r,[ske,Ji],16),Xr("NoSpaceBeforeJsxNamespaceColon",80,59,[lke],16),Xr("NoSpaceAfterJsxNamespaceColon",59,80,[lke],16),Xr("NoSpaceAfterModuleImport",[144,149],21,[Ji],16),Xr("SpaceAfterCertainTypeScriptKeywords",[128,129,86,138,90,94,95,96,139,119,102,120,144,145,123,125,124,148,153,126,156,161,143,140],r,[Ji],4),Xr("SpaceBeforeCertainTypeScriptKeywords",r,[96,119,161],[Ji],4),Xr("SpaceAfterModuleName",11,19,[$rt],4),Xr("SpaceBeforeArrow",r,39,[Ji],4),Xr("SpaceAfterArrow",39,r,[Ji],4),Xr("NoSpaceAfterEllipsis",26,80,[Ji],16),Xr("NoSpaceAfterOptionalParameters",58,[22,28],[Ji,EB],16),Xr("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[Ji,Qrt],16),Xr("NoSpaceBeforeOpenAngularBracket",N,30,[Ji,TB],16),Xr("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[Ji,TB],16),Xr("NoSpaceAfterOpenAngularBracket",30,r,[Ji,TB],16),Xr("NoSpaceBeforeCloseAngularBracket",r,32,[Ji,TB],16),Xr("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[Ji,TB,Ort,eit],16),Xr("SpaceBeforeAt",[22,80],60,[Ji],4),Xr("NoSpaceAfterAt",60,r,[Ji],16),Xr("SpaceAfterDecorator",r,[128,80,95,90,86,126,125,123,124,139,153,23,42],[Xrt],4),Xr("NoSpaceBeforeNonNullAssertionOperator",r,54,[Ji,nit],16),Xr("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[Ji,Zrt],16),Xr("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[Ji],4)],Y=[Xr("SpaceAfterConstructor",137,21,[lf("insertSpaceAfterConstructor"),Ji],4),Xr("NoSpaceAfterConstructor",137,21,[W_("insertSpaceAfterConstructor"),Ji],16),Xr("SpaceAfterComma",28,r,[lf("insertSpaceAfterCommaDelimiter"),Ji,F_e,Vrt,jrt],4),Xr("NoSpaceAfterComma",28,r,[W_("insertSpaceAfterCommaDelimiter"),Ji,F_e],16),Xr("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[lf("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),nA],4),Xr("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[W_("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),nA],16),Xr("SpaceAfterKeywordInControl",s,21,[lf("insertSpaceAfterKeywordsInControlFlowStatements"),SB],4),Xr("NoSpaceAfterKeywordInControl",s,21,[W_("insertSpaceAfterKeywordsInControlFlowStatements"),SB],16),Xr("SpaceAfterOpenParen",21,r,[lf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ji],4),Xr("SpaceBeforeCloseParen",r,22,[lf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ji],4),Xr("SpaceBetweenOpenParens",21,21,[lf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ji],4),Xr("NoSpaceBetweenParens",21,22,[Ji],16),Xr("NoSpaceAfterOpenParen",21,r,[W_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ji],16),Xr("NoSpaceBeforeCloseParen",r,22,[W_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ji],16),Xr("SpaceAfterOpenBracket",23,r,[lf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ji],4),Xr("SpaceBeforeCloseBracket",r,24,[lf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ji],4),Xr("NoSpaceBetweenBrackets",23,24,[Ji],16),Xr("NoSpaceAfterOpenBracket",23,r,[W_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ji],16),Xr("NoSpaceBeforeCloseBracket",r,24,[W_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ji],16),Xr("SpaceAfterOpenBrace",19,r,[Y2e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Q2e],4),Xr("SpaceBeforeCloseBrace",r,20,[Y2e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Q2e],4),Xr("NoSpaceBetweenEmptyBraceBrackets",19,20,[Ji,oke],16),Xr("NoSpaceAfterOpenBrace",19,r,[M_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Ji],16),Xr("NoSpaceBeforeCloseBrace",r,20,[M_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Ji],16),Xr("SpaceBetweenEmptyBraceBrackets",19,20,[lf("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),Xr("NoSpaceBetweenEmptyBraceBrackets",19,20,[M_e("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Ji],16),Xr("SpaceAfterTemplateHeadAndMiddle",[16,17],r,[lf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),ake],4,1),Xr("SpaceBeforeTemplateMiddleAndTail",r,[17,18],[lf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Ji],4),Xr("NoSpaceAfterTemplateHeadAndMiddle",[16,17],r,[W_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),ake],16,1),Xr("NoSpaceBeforeTemplateMiddleAndTail",r,[17,18],[W_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Ji],16),Xr("SpaceAfterOpenBraceInJsxExpression",19,r,[lf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ji,DQ],4),Xr("SpaceBeforeCloseBraceInJsxExpression",r,20,[lf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ji,DQ],4),Xr("NoSpaceAfterOpenBraceInJsxExpression",19,r,[W_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ji,DQ],16),Xr("NoSpaceBeforeCloseBraceInJsxExpression",r,20,[W_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ji,DQ],16),Xr("SpaceAfterSemicolonInFor",27,r,[lf("insertSpaceAfterSemicolonInForStatements"),Ji,k_e],4),Xr("NoSpaceAfterSemicolonInFor",27,r,[W_("insertSpaceAfterSemicolonInForStatements"),Ji,k_e],16),Xr("SpaceBeforeBinaryOperator",r,l,[lf("insertSpaceBeforeAndAfterBinaryOperators"),Ji,ib],4),Xr("SpaceAfterBinaryOperator",l,r,[lf("insertSpaceBeforeAndAfterBinaryOperators"),Ji,ib],4),Xr("NoSpaceBeforeBinaryOperator",r,l,[W_("insertSpaceBeforeAndAfterBinaryOperators"),Ji,ib],16),Xr("NoSpaceAfterBinaryOperator",l,r,[W_("insertSpaceBeforeAndAfterBinaryOperators"),Ji,ib],16),Xr("SpaceBeforeOpenParenInFuncDecl",r,21,[lf("insertSpaceBeforeFunctionParenthesis"),Ji,nA],4),Xr("NoSpaceBeforeOpenParenInFuncDecl",r,21,[W_("insertSpaceBeforeFunctionParenthesis"),Ji,nA],16),Xr("NewLineBeforeOpenBraceInControl",j,19,[lf("placeOpenBraceOnNewLineForControlBlocks"),SB,W_e],8,1),Xr("NewLineBeforeOpenBraceInFunction",D,19,[lf("placeOpenBraceOnNewLineForFunctions"),nA,W_e],8,1),Xr("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",w,19,[lf("placeOpenBraceOnNewLineForFunctions"),rke,W_e],8,1),Xr("SpaceAfterTypeAssertion",32,r,[lf("insertSpaceAfterTypeAssertion"),Ji,B_e],4),Xr("NoSpaceAfterTypeAssertion",32,r,[W_("insertSpaceAfterTypeAssertion"),Ji,B_e],16),Xr("SpaceBeforeTypeAnnotation",r,[58,59],[lf("insertSpaceBeforeTypeAnnotation"),Ji,w_e],4),Xr("NoSpaceBeforeTypeAnnotation",r,[58,59],[W_("insertSpaceBeforeTypeAnnotation"),Ji,w_e],16),Xr("NoOptionalSemicolon",27,o,[X2e("semicolons","remove"),iit],32),Xr("OptionalSemicolon",r,o,[X2e("semicolons","insert"),oit],64)],B=[Xr("NoSpaceBeforeSemicolon",r,27,[Ji],16),Xr("SpaceBeforeOpenBraceInControl",j,19,[L_e("placeOpenBraceOnNewLineForControlBlocks"),SB,z_e,O_e],4,1),Xr("SpaceBeforeOpenBraceInFunction",D,19,[L_e("placeOpenBraceOnNewLineForFunctions"),nA,RQ,z_e,O_e],4,1),Xr("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",w,19,[L_e("placeOpenBraceOnNewLineForFunctions"),rke,z_e,O_e],4,1),Xr("NoSpaceBeforeComma",r,28,[Ji],16),Xr("NoSpaceBeforeOpenBracket",t(134,84),23,[Ji],16),Xr("NoSpaceAfterCloseBracket",24,r,[Ji,qrt],16),Xr("SpaceAfterSemicolon",27,r,[Ji],4),Xr("SpaceBetweenForAndAwaitKeyword",99,135,[Ji],4),Xr("SpaceBetweenStatements",[22,92,93,84],r,[Ji,F_e,Prt],4),Xr("SpaceAfterTryCatchFinally",[113,85,98],19,[Ji],4)];return[...K,...Y,...B]}function Xr(e,t,r,i,o,s=0){return{leftTokenRange:J2e(t),rightTokenRange:J2e(r),rule:{debugName:e,context:i,action:o,flags:s}}}function gM(e){return{tokens:e,isSpecific:!0}}function J2e(e){return typeof e=="number"?gM([e]):So(e)?gM(e):e}function q2e(e,t,r=[]){let i=[];for(let o=e;o<=t;o++)zo(r,o)||i.push(o);return gM(i)}function X2e(e,t){return r=>r.options&&r.options[e]===t}function lf(e){return t=>t.options&&Ts(t.options,e)&&!!t.options[e]}function M_e(e){return t=>t.options&&Ts(t.options,e)&&!t.options[e]}function W_(e){return t=>!t.options||!Ts(t.options,e)||!t.options[e]}function L_e(e){return t=>!t.options||!Ts(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function Y2e(e){return t=>!t.options||!Ts(t.options,e)||!!t.options[e]}function k_e(e){return e.contextNode.kind===248}function Prt(e){return!k_e(e)}function ib(e){switch(e.contextNode.kind){case 226:return e.contextNode.operatorToken.kind!==28;case 227:case 194:case 234:case 281:case 276:case 182:case 192:case 193:case 238:return!0;case 208:case 265:case 271:case 277:case 260:case 169:case 306:case 172:case 171:return e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 249:case 168:return e.currentTokenSpan.kind===103||e.nextTokenSpan.kind===103||e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 250:return e.currentTokenSpan.kind===165||e.nextTokenSpan.kind===165}return!1}function EB(e){return!ib(e)}function $2e(e){return!w_e(e)}function w_e(e){let t=e.contextNode.kind;return t===172||t===171||t===169||t===260||vI(t)}function Mrt(e){return Vo(e.contextNode)&&e.contextNode.questionToken}function Lrt(e){return!Mrt(e)}function krt(e){return e.contextNode.kind===227||e.contextNode.kind===194}function O_e(e){return e.TokensAreOnSameLine()||RQ(e)}function Q2e(e){return e.contextNode.kind===206||e.contextNode.kind===200||wrt(e)}function W_e(e){return RQ(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function Z2e(e){return eke(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function wrt(e){return eke(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function eke(e){return tke(e.contextNode)}function RQ(e){return tke(e.nextTokenParent)}function tke(e){if(ike(e))return!0;switch(e.kind){case 241:case 269:case 210:case 268:return!0}return!1}function nA(e){switch(e.contextNode.kind){case 262:case 174:case 173:case 177:case 178:case 179:case 218:case 176:case 219:case 264:return!0}return!1}function Ort(e){return!nA(e)}function nke(e){return e.contextNode.kind===262||e.contextNode.kind===218}function rke(e){return ike(e.contextNode)}function ike(e){switch(e.kind){case 263:case 231:case 264:case 266:case 187:case 267:case 278:case 279:case 272:case 275:return!0}return!1}function Wrt(e){switch(e.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{let t=e.currentTokenParent.parent;if(!t||t.kind!==219&&t.kind!==218)return!0}}return!1}function SB(e){switch(e.contextNode.kind){case 245:case 255:case 248:case 249:case 250:case 247:case 258:case 246:case 254:case 299:return!0;default:return!1}}function oke(e){return e.contextNode.kind===210}function Frt(e){return e.contextNode.kind===213}function zrt(e){return e.contextNode.kind===214}function Brt(e){return Frt(e)||zrt(e)}function Grt(e){return e.currentTokenSpan.kind!==28}function Vrt(e){return e.nextTokenSpan.kind!==24}function jrt(e){return e.nextTokenSpan.kind!==22}function Urt(e){return e.contextNode.kind===219}function Hrt(e){return e.contextNode.kind===205}function Ji(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==12}function ake(e){return e.contextNode.kind!==12}function F_e(e){return e.contextNode.kind!==284&&e.contextNode.kind!==288}function DQ(e){return e.contextNode.kind===294||e.contextNode.kind===293}function Krt(e){return e.nextTokenParent.kind===291||e.nextTokenParent.kind===295&&e.nextTokenParent.parent.kind===291}function ske(e){return e.contextNode.kind===291}function Jrt(e){return e.nextTokenParent.kind!==295}function lke(e){return e.nextTokenParent.kind===295}function cke(e){return e.contextNode.kind===285}function qrt(e){return!nA(e)&&!RQ(e)}function Xrt(e){return e.TokensAreOnSameLine()&&bf(e.contextNode)&&dke(e.currentTokenParent)&&!dke(e.nextTokenParent)}function dke(e){for(;e&&ht(e);)e=e.parent;return e&&e.kind===170}function Yrt(e){return e.currentTokenParent.kind===261&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function z_e(e){return e.formattingRequestKind!==2}function $rt(e){return e.contextNode.kind===267}function Qrt(e){return e.contextNode.kind===187}function Zrt(e){return e.contextNode.kind===180}function uke(e,t){if(e.kind!==30&&e.kind!==32)return!1;switch(t.kind){case 183:case 216:case 265:case 263:case 231:case 264:case 262:case 218:case 219:case 174:case 173:case 179:case 180:case 213:case 214:case 233:return!0;default:return!1}}function TB(e){return uke(e.currentTokenSpan,e.currentTokenParent)||uke(e.nextTokenSpan,e.nextTokenParent)}function B_e(e){return e.contextNode.kind===216}function eit(e){return!B_e(e)}function tit(e){return e.currentTokenSpan.kind===116&&e.currentTokenParent.kind===222}function pke(e){return e.contextNode.kind===229&&e.contextNode.expression!==void 0}function nit(e){return e.contextNode.kind===235}function fke(e){return!rit(e)}function rit(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}function iit(e){let t=e.nextTokenSpan.kind,r=e.nextTokenSpan.pos;if(aR(t)){let s=e.nextTokenParent===e.currentTokenParent?sS(e.currentTokenParent,Fn(e.currentTokenParent,l=>!l.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!s)return!0;t=s.kind,r=s.getStart(e.sourceFile)}let i=e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line,o=e.sourceFile.getLineAndCharacterOfPosition(r).line;return i===o?t===20||t===1:t===240||t===27?!1:e.contextNode.kind===264||e.contextNode.kind===265?!_p(e.currentTokenParent)||!!e.currentTokenParent.type||t!==21:Vo(e.currentTokenParent)?!e.currentTokenParent.initializer:e.currentTokenParent.kind!==248&&e.currentTokenParent.kind!==242&&e.currentTokenParent.kind!==240&&t!==23&&t!==21&&t!==40&&t!==41&&t!==44&&t!==14&&t!==28&&t!==228&&t!==16&&t!==15&&t!==25}function oit(e){return a7(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function ait(e){return!wr(e.contextNode)||!mp(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}var sit=bt({"src/services/formatting/rules.ts"(){"use strict";ai(),ZO()}});function lit(e,t){return{options:e,getRules:cit(),host:t}}function cit(){return G_e===void 0&&(G_e=uit(K2e())),G_e}function dit(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function uit(e){let t=pit(e);return r=>{let i=t[mke(r.currentTokenSpan.kind,r.nextTokenSpan.kind)];if(i){let o=[],s=0;for(let l of i){let d=~dit(s);l.action&d&&oo(l.context,p=>p(r))&&(o.push(l),s|=l.action)}if(o.length)return o}}}function pit(e){let t=new Array(CQ*CQ),r=new Array(t.length);for(let i of e){let o=i.leftTokenRange.isSpecific&&i.rightTokenRange.isSpecific;for(let s of i.leftTokenRange.tokens)for(let l of i.rightTokenRange.tokens){let d=mke(s,l),p=t[d];p===void 0&&(p=t[d]=[]),fit(p,i.rule,o,r,d)}}return t}function mke(e,t){return R.assert(e<=165&&t<=165,"Must compute formatting context from tokens"),e*CQ+t}function fit(e,t,r,i,o){let s=t.action&3?r?0:yM.StopRulesAny:t.context!==bB?r?yM.ContextRulesSpecific:yM.ContextRulesAny:r?yM.NoContextRulesSpecific:yM.NoContextRulesAny,l=i[o]||0;e.splice(mit(l,s),0,t),i[o]=_it(l,s)}function mit(e,t){let r=0;for(let i=0;i<=t;i+=CD)r+=e&AB,e>>=CD;return r}function _it(e,t){let r=(e>>t&AB)+1;return R.assert((r&AB)===r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(AB<(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=CD*1]="StopRulesAny",e[e.ContextRulesSpecific=CD*2]="ContextRulesSpecific",e[e.ContextRulesAny=CD*3]="ContextRulesAny",e[e.NoContextRulesSpecific=CD*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=CD*5]="NoContextRulesAny",e))(yM||{})}});function NQ(e,t,r){let i={pos:e,end:t,kind:r};return R.isDebugging&&Object.defineProperty(i,"__debugKind",{get:()=>R.formatSyntaxKind(r)}),i}function git(e,t,r){let i=t.getLineAndCharacterOfPosition(e).line;if(i===0)return[];let o=m2(i,t);for(;y_(t.text.charCodeAt(o));)o--;Vd(t.text.charCodeAt(o))&&o--;let s={pos:wv(i-1,t),end:o+1};return IB(s,t,r,2)}function yit(e,t,r){let i=V_e(e,27,t);return _ke(j_e(i),t,r,3)}function vit(e,t,r){let i=V_e(e,19,t);if(!i)return[];let o=i.parent,s=j_e(o),l={pos:rm(s.getStart(t),t),end:e};return IB(l,t,r,4)}function bit(e,t,r){let i=V_e(e,20,t);return _ke(j_e(i),t,r,5)}function Eit(e,t){let r={pos:0,end:e.text.length};return IB(r,e,t,0)}function Sit(e,t,r,i){let o={pos:rm(e,r),end:t};return IB(o,r,i,1)}function V_e(e,t,r){let i=Tc(e,r);return i&&i.kind===t&&e===i.getEnd()?i:void 0}function j_e(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!Tit(t.parent,t);)t=t.parent;return t}function Tit(e,t){switch(e.kind){case 263:case 264:return of(e.members,t);case 267:let r=e.body;return!!r&&r.kind===268&&of(r.statements,t);case 312:case 241:case 268:return of(e.statements,t);case 299:return of(e.block.statements,t)}return!1}function Ait(e,t){return r(t);function r(i){let o=Bo(i,s=>xq(s.getStart(t),s.end,e)&&s);if(o){let s=r(o);if(s)return s}return i}}function Iit(e,t){if(!e.length)return o;let r=e.filter(s=>XP(t,s.start,s.start+s.length)).sort((s,l)=>s.start-l.start);if(!r.length)return o;let i=0;return s=>{for(;;){if(i>=r.length)return!1;let l=r[i];if(s.end<=l.start)return!1;if(Oz(s.pos,s.end,l.start,l.start+l.length))return!0;i++}};function o(){return!1}}function xit(e,t,r){let i=e.getStart(r);if(i===t.pos&&e.end===t.end)return i;let o=Tc(t.pos,r);return!o||o.end>=t.pos?e.pos:o.end}function Rit(e,t,r){let i=-1,o;for(;e;){let s=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(i!==-1&&s!==i)break;if(F_.shouldIndentChildNode(t,e,o,r))return t.indentSize;i=s,o=e,e=e.parent}return 0}function Dit(e,t,r,i,o,s){let l={pos:e.pos,end:e.end};return C_e(t.text,r,l.pos,l.end,d=>hke(l,e,i,o,d,s,1,p=>!1,t))}function _ke(e,t,r,i){if(!e)return[];let o={pos:rm(e.getStart(t),t),end:e.end};return IB(o,t,r,i)}function IB(e,t,r,i){let o=Ait(e,t);return C_e(t.text,t.languageVariant,xit(o,e,t),e.end,s=>hke(e,o,F_.getIndentationForNode(o,e,t,r.options),Rit(o,r.options,t),s,r,i,Iit(t.parseDiagnostics,e),t))}function hke(e,t,r,i,o,{options:s,getRules:l,host:d},p,h,m){var y;let E=new D_e(m,p,s),S,A,N,D,w,j=-1,K=[];if(o.advance(),o.isOnToken()){let be=m.getLineAndCharacterOfPosition(t.getStart(m)).line,ze=be;bf(t)&&(ze=m.getLineAndCharacterOfPosition(HV(t,m)).line),me(t,t,be,ze,r,i)}let Y=o.getCurrentLeadingTrivia();if(Y){let be=F_.nodeWillIndentChild(s,t,void 0,m,!1)?r+s.indentSize:r;ge(Y,be,!0,ze=>{J(ze,m.getLineAndCharacterOfPosition(ze.pos),t,t,void 0),pe(ze.pos,be,!1)}),s.trimTrailingWhitespace!==!1&&Ge(Y)}if(A&&o.getTokenFullStart()>=e.end){let be=o.isOnEOF()?o.readEOFTokenRange():o.isOnToken()?o.readTokenInfo(t).token:void 0;if(be&&be.pos===S){let ze=((y=Tc(be.end,m,t))==null?void 0:y.parent)||N;re(be,m.getLineAndCharacterOfPosition(be.pos).line,ze,A,D,N,ze,void 0)}}return K;function B(be,ze,tt,Wt,_t){if(XP(Wt,be,ze)||Yw(Wt,be,ze)){if(_t!==-1)return _t}else{let Je=m.getLineAndCharacterOfPosition(be).line,ft=rm(be,m),Zt=F_.findFirstNonWhitespaceColumn(ft,be,m,s);if(Je!==tt||be===Zt){let en=F_.getBaseIndentation(s);return en>Zt?en:Zt}}return-1}function ce(be,ze,tt,Wt,_t,Je){let ft=F_.shouldIndentChildNode(s,be)?s.indentSize:0;return Je===ze?{indentation:ze===w?j:_t.getIndentation(),delta:Math.min(s.indentSize,_t.getDelta(be)+ft)}:tt===-1?be.kind===21&&ze===w?{indentation:j,delta:_t.getDelta(be)}:F_.childStartsOnTheSameLineWithElseInIfStatement(Wt,be,ze,m)||F_.childIsUnindentedBranchOfConditionalExpression(Wt,be,ze,m)||F_.argumentStartsOnSameLineAsPreviousArgument(Wt,be,ze,m)?{indentation:_t.getIndentation(),delta:ft}:{indentation:_t.getIndentation()+_t.getDelta(be),delta:ft}:{indentation:tt,delta:ft}}function z(be){if(Am(be)){let ze=Vr(be.modifiers,Ta,Kl(be.modifiers,yd));if(ze)return ze.kind}switch(be.kind){case 263:return 86;case 264:return 120;case 262:return 100;case 266:return 266;case 177:return 139;case 178:return 153;case 174:if(be.asteriskToken)return 42;case 172:case 169:let ze=No(be);if(ze)return ze.kind}}function ee(be,ze,tt,Wt){return{getIndentationForComment:(ft,Zt,en)=>{switch(ft){case 20:case 24:case 22:return tt+Je(en)}return Zt!==-1?Zt:tt},getIndentationForToken:(ft,Zt,en,Dn)=>!Dn&&_t(ft,Zt,en)?tt+Je(en):tt,getIndentation:()=>tt,getDelta:Je,recomputeIndentation:(ft,Zt)=>{F_.shouldIndentChildNode(s,Zt,be,m)&&(tt+=ft?s.indentSize:-s.indentSize,Wt=F_.shouldIndentChildNode(s,be)?s.indentSize:0)}};function _t(ft,Zt,en){switch(Zt){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(en.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if(en.kind!==200)return!1;break}return ze!==ft&&!(bf(be)&&Zt===z(be))}function Je(ft){return F_.nodeWillIndentChild(s,be,ft,m,!0)?Wt:0}}function me(be,ze,tt,Wt,_t,Je){if(!XP(e,be.getStart(m),be.getEnd()))return;let ft=ee(be,tt,_t,Je),Zt=ze;for(Bo(be,pn=>{en(pn,-1,be,ft,tt,Wt,!1)},pn=>{Dn(pn,be,tt,ft)});o.isOnToken()&&o.getTokenFullStart()Math.min(be.end,e.end))break;Kn(pn,be,ft,be)}function en(pn,Yt,qt,hi,uo,Li,Eo,Qn){if(R.assert(!Js(pn)),Fl(pn)||Bre(qt,pn))return Yt;let Ur=pn.getStart(m),Er=m.getLineAndCharacterOfPosition(Ur).line,on=Er;bf(pn)&&(on=m.getLineAndCharacterOfPosition(HV(pn,m)).line);let Ye=-1;if(Eo&&of(e,qt)&&(Ye=B(Ur,pn.end,uo,e,Yt),Ye!==-1&&(Yt=Ye)),!XP(e,pn.pos,pn.end))return pn.ende.end)return Yt;if(si.token.end>Ur){si.token.pos>Ur&&o.skipToStartOf(pn);break}Kn(si,be,hi,be)}if(!o.isOnToken()||o.getTokenFullStart()>=e.end)return Yt;if(gI(pn)){let si=o.readTokenInfo(pn);if(pn.kind!==12)return R.assert(si.token.end===pn.end,"Token end is child end"),Kn(si,be,hi,pn),Yt}let Ot=pn.kind===170?Er:Li,In=ce(pn,Er,Ye,be,hi,Ot);return me(pn,Zt,Er,on,In.indentation,In.delta),Zt=be,Qn&&qt.kind===209&&Yt===-1&&(Yt=In.indentation),Yt}function Dn(pn,Yt,qt,hi){R.assert(b0(pn)),R.assert(!Js(pn));let uo=Cit(Yt,pn),Li=hi,Eo=qt;if(!XP(e,pn.pos,pn.end)){pn.endpn.pos)break;if(Er.token.kind===uo){Eo=m.getLineAndCharacterOfPosition(Er.token.pos).line,Kn(Er,Yt,hi,Yt);let on;if(j!==-1)on=j;else{let Ye=rm(Er.token.pos,m);on=F_.findFirstNonWhitespaceColumn(Ye,Er.token.pos,m,s)}Li=ee(Yt,qt,on,s.indentSize)}else Kn(Er,Yt,hi,Yt)}let Qn=-1;for(let Er=0;Erpe(In.pos,Ot,!1))}on!==-1&&Ye&&(pe(pn.token.pos,on,Qn===1),w=Er.line,j=on)}o.advance(),Zt=Yt}}function ge(be,ze,tt,Wt){for(let _t of be){let Je=of(e,_t);switch(_t.kind){case 3:Je&&ne(_t,ze,!tt),tt=!1;break;case 2:tt&&Je&&Wt(_t),tt=!1;break;case 4:tt=!0;break}}return tt}function q(be,ze,tt,Wt){for(let _t of be)if(Uz(_t.kind)&&of(e,_t)){let Je=m.getLineAndCharacterOfPosition(_t.pos);J(_t,Je,ze,tt,Wt)}}function J(be,ze,tt,Wt,_t){let Je=h(be),ft=0;if(!Je)if(A)ft=re(be,ze.line,tt,A,D,N,Wt,_t);else{let Zt=m.getLineAndCharacterOfPosition(e.pos);he(Zt.line,ze.line)}return A=be,S=be.end,N=tt,D=ze.line,ft}function re(be,ze,tt,Wt,_t,Je,ft,Zt){E.updateContext(Wt,Je,be,tt,ft);let en=l(E),Dn=E.options.trimTrailingWhitespace!==!1,Kn=0;return en?qte(en,pn=>{if(Kn=Et(pn,Wt,_t,be,ze),Zt)switch(Kn){case 2:tt.getStart(m)===be.pos&&Zt.recomputeIndentation(!1,ft);break;case 1:tt.getStart(m)===be.pos&&Zt.recomputeIndentation(!0,ft);break;default:R.assert(Kn===0)}Dn=Dn&&!(pn.action&16)&&pn.flags!==1}):Dn=Dn&&be.kind!==1,ze!==_t&&Dn&&he(_t,ze,Wt),Kn}function pe(be,ze,tt){let Wt=U_e(ze,s);if(tt)De(be,0,Wt);else{let _t=m.getLineAndCharacterOfPosition(be),Je=wv(_t.line,m);(ze!==xe(Je,_t.character)||fe(Wt,Je))&&De(Je,_t.character,Wt)}}function xe(be,ze){let tt=0;for(let Wt=0;Wt0){let Li=U_e(uo,s);De(qt,hi.character,Li)}else Ie(qt,hi.character)}}function he(be,ze,tt){for(let Wt=be;WtJe)continue;let ft=Ce(_t,Je);ft!==-1&&(R.assert(ft===_t||!y_(m.text.charCodeAt(ft-1))),Ie(ft,Je+1-ft))}}function Ce(be,ze){let tt=ze;for(;tt>=be&&y_(m.text.charCodeAt(tt));)tt--;return tt!==ze?tt+1:-1}function Ge(be){let ze=A?A.end:e.pos;for(let tt of be)Uz(tt.kind)&&(zeXw(h,t)||t===h.end&&(h.kind===2||t===e.getFullWidth()))}function Cit(e,t){switch(e.kind){case 176:case 262:case 218:case 174:case 173:case 219:case 179:case 180:case 184:case 185:case 177:case 178:if(e.typeParameters===t)return 30;if(e.parameters===t)return 21;break;case 213:case 214:if(e.typeArguments===t)return 30;if(e.arguments===t)return 21;break;case 263:case 231:case 264:case 265:if(e.typeParameters===t)return 30;break;case 183:case 215:case 186:case 233:case 205:if(e.typeArguments===t)return 30;break;case 187:return 19}return 0}function Nit(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}function U_e(e,t){if((!PQ||PQ.tabSize!==t.tabSize||PQ.indentSize!==t.indentSize)&&(PQ={tabSize:t.tabSize,indentSize:t.indentSize},$O=QO=void 0),t.convertTabsToSpaces){let i,o=Math.floor(e/t.indentSize),s=e%t.indentSize;return QO||(QO=[]),QO[o]===void 0?(i=nO(" ",t.indentSize*o),QO[o]=i):i=QO[o],s?i+nO(" ",s):i}else{let i=Math.floor(e/t.tabSize),o=e-i*t.tabSize,s;return $O||($O=[]),$O[i]===void 0?$O[i]=s=nO(" ",i):s=$O[i],o?s+nO(" ",o):s}}var PQ,$O,QO,Pit=bt({"src/services/formatting/formatting.ts"(){"use strict";ai(),ZO()}}),F_,Mit=bt({"src/services/formatting/smartIndenter.ts"(){"use strict";ai(),ZO(),(e=>{let t;(ne=>{ne[ne.Unknown=-1]="Unknown"})(t||(t={}));function r(ne,he,Ce,Ge=!1){if(ne>he.text.length)return d(Ce);if(Ce.indentStyle===0)return 0;let ve=Tc(ne,he,void 0,!0),Ie=gke(he,ne,ve||null);if(Ie&&Ie.kind===3)return i(he,ne,Ce,Ie);if(!ve)return d(Ce);if(Lq(ve.kind)&&ve.getStart(he)<=ne&&ne=0),ve<=Ie)return J(wv(Ie,ne),he,ne,Ce);let De=wv(ve,ne),{column:Le,character:Et}=q(De,he,ne,Ce);return Le===0?Le:ne.text.charCodeAt(De+Et)===42?Le-1:Le}function o(ne,he,Ce){let Ge=he;for(;Ge>0;){let Ie=ne.text.charCodeAt(Ge);if(!Dg(Ie))break;Ge--}let ve=rm(Ge,ne);return J(ve,Ge,ne,Ce)}function s(ne,he,Ce,Ge,ve,Ie){let De,Le=Ce;for(;Le;){if(Rq(Le,he,ne)&&xe(Ie,Le,De,ne,!0)){let be=A(Le,ne),ze=S(Ce,Le,Ge,ne),tt=ze!==0?ve&&ze===2?Ie.indentSize:0:Ge!==be.line?Ie.indentSize:0;return p(Le,be,void 0,tt,ne,!0,Ie)}let Et=ee(Le,ne,Ie,!0);if(Et!==-1)return Et;De=Le,Le=Le.parent}return d(Ie)}function l(ne,he,Ce,Ge){let ve=Ce.getLineAndCharacterOfPosition(ne.getStart(Ce));return p(ne,ve,he,0,Ce,!1,Ge)}e.getIndentationForNode=l;function d(ne){return ne.baseIndentSize||0}e.getBaseIndentation=d;function p(ne,he,Ce,Ge,ve,Ie,De){var Le;let Et=ne.parent;for(;Et;){let be=!0;if(Ce){let _t=ne.getStart(ve);be=_tCe.end}let ze=h(Et,ne,ve),tt=ze.line===he.line||D(Et,ne,he.line,ve);if(be){let _t=(Le=K(ne,ve))==null?void 0:Le[0],Je=!!_t&&A(_t,ve).line>ze.line,ft=ee(ne,ve,De,Je);if(ft!==-1||(ft=y(ne,Et,he,tt,ve,De),ft!==-1))return ft+Ge}xe(De,Et,ne,ve,Ie)&&!tt&&(Ge+=De.indentSize);let Wt=N(Et,ne,he.line,ve);ne=Et,Et=ne.parent,he=Wt?ve.getLineAndCharacterOfPosition(ne.getStart(ve)):ze}return Ge+d(De)}function h(ne,he,Ce){let Ge=K(he,Ce),ve=Ge?Ge.pos:ne.getStart(Ce);return Ce.getLineAndCharacterOfPosition(ve)}function m(ne,he,Ce){let Ge=ide(ne);return Ge&&Ge.listItemIndex>0?me(Ge.list.getChildren(),Ge.listItemIndex-1,he,Ce):-1}function y(ne,he,Ce,Ge,ve,Ie){return(Ud(ne)||c2(ne))&&(he.kind===312||!Ge)?ge(Ce,ve,Ie):-1}let E;(ne=>{ne[ne.Unknown=0]="Unknown",ne[ne.OpenBrace=1]="OpenBrace",ne[ne.CloseBrace=2]="CloseBrace"})(E||(E={}));function S(ne,he,Ce,Ge){let ve=sS(ne,he,Ge);if(!ve)return 0;if(ve.kind===19)return 1;if(ve.kind===20){let Ie=A(ve,Ge).line;return Ce===Ie?2:0}return 0}function A(ne,he){return he.getLineAndCharacterOfPosition(ne.getStart(he))}function N(ne,he,Ce,Ge){if(!(ra(ne)&&zo(ne.arguments,he)))return!1;let ve=ne.expression.getEnd();return gs(Ge,ve).line===Ce}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=N;function D(ne,he,Ce,Ge){if(ne.kind===245&&ne.elseStatement===he){let ve=hs(ne,93,Ge);return R.assert(ve!==void 0),A(ve,Ge).line===Ce}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=D;function w(ne,he,Ce,Ge){if(NR(ne)&&(he===ne.whenTrue||he===ne.whenFalse)){let ve=gs(Ge,ne.condition.end).line;if(he===ne.whenTrue)return Ce===ve;{let Ie=A(ne.whenTrue,Ge).line,De=gs(Ge,ne.whenTrue.end).line;return ve===Ie&&De===Ce}}return!1}e.childIsUnindentedBranchOfConditionalExpression=w;function j(ne,he,Ce,Ge){if(v_(ne)){if(!ne.arguments)return!1;let ve=Vr(ne.arguments,Et=>Et.pos===he.pos);if(!ve)return!1;let Ie=ne.arguments.indexOf(ve);if(Ie===0)return!1;let De=ne.arguments[Ie-1],Le=gs(Ge,De.getEnd()).line;if(Ce===Le)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=j;function K(ne,he){return ne.parent&&B(ne.getStart(he),ne.getEnd(),ne.parent,he)}e.getContainingList=K;function Y(ne,he,Ce){return he&&B(ne,ne,he,Ce)}function B(ne,he,Ce,Ge){switch(Ce.kind){case 183:return ve(Ce.typeArguments);case 210:return ve(Ce.properties);case 209:return ve(Ce.elements);case 187:return ve(Ce.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return ve(Ce.typeParameters)||ve(Ce.parameters);case 177:return ve(Ce.parameters);case 263:case 231:case 264:case 265:case 352:return ve(Ce.typeParameters);case 214:case 213:return ve(Ce.typeArguments)||ve(Ce.arguments);case 261:return ve(Ce.declarations);case 275:case 279:return ve(Ce.elements);case 206:case 207:return ve(Ce.elements)}function ve(Ie){return Ie&&Yw(ce(Ce,Ie,Ge),ne,he)?Ie:void 0}}function ce(ne,he,Ce){let Ge=ne.getChildren(Ce);for(let ve=1;ve=0&&he=0;De--){if(ne[De].kind===28)continue;if(Ce.getLineAndCharacterOfPosition(ne[De].end).line!==Ie.line)return ge(Ie,Ce,Ge);Ie=A(ne[De],Ce)}return-1}function ge(ne,he,Ce){let Ge=he.getPositionOfLineAndCharacter(ne.line,0);return J(Ge,Ge+ne.character,he,Ce)}function q(ne,he,Ce,Ge){let ve=0,Ie=0;for(let De=ne;DeD_e,FormattingRequestKind:()=>R_e,RuleAction:()=>N_e,RuleFlags:()=>P_e,SmartIndenter:()=>F_,anyContext:()=>bB,createTextRangeWithKind:()=>NQ,formatDocument:()=>Eit,formatNodeGivenIndentation:()=>Dit,formatOnClosingCurly:()=>bit,formatOnEnter:()=>git,formatOnOpeningCurly:()=>vit,formatOnSemicolon:()=>yit,formatSelection:()=>Sit,getAllRules:()=>K2e,getFormatContext:()=>lit,getFormattingScanner:()=>C_e,getIndentationString:()=>U_e,getRangeOfEnclosingComment:()=>gke});var ZO=bt({"src/services/_namespaces/ts.formatting.ts"(){"use strict";Drt(),Crt(),Nrt(),sit(),hit(),Pit(),Mit()}}),ai=bt({"src/services/_namespaces/ts.ts"(){"use strict";Zo(),Vw(),zje(),cUe(),fUe(),Hxe(),IUe(),xUe(),LUe(),jUe(),UUe(),KUe(),eHe(),tHe(),Sqe(),Tqe(),xqe(),Kqe(),qqe(),Aa(),Vme(),t_e(),Att(),Ctt(),Ktt(),_Re(),ORe(),fnt(),Ent(),Th(),Cnt(),rrt(),urt(),_rt(),Rrt(),ZO()}});function Lit(){return bke??(bke=new fm(qp))}function yke(e,t,r,i,o){let s=t?"DeprecationError: ":"DeprecationWarning: ";return s+=`'${e}' `,s+=i?`has been deprecated since v${i}`:"is deprecated",s+=t?" and can no longer be used.":r?` and will no longer be usable after v${r}.`:".",s+=o?` ${ng(o,[e])}`:"",s}function kit(e,t,r,i){let o=yke(e,!0,t,r,i);return()=>{throw new TypeError(o)}}function wit(e,t,r,i){let o=!1;return()=>{vke&&!o&&(R.log.warn(yke(e,!1,t,r,i)),o=!0)}}function Oit(e,t={}){let r=typeof t.typeScriptVersion=="string"?new fm(t.typeScriptVersion):t.typeScriptVersion??Lit(),i=typeof t.errorAfter=="string"?new fm(t.errorAfter):t.errorAfter,o=typeof t.warnAfter=="string"?new fm(t.warnAfter):t.warnAfter,s=typeof t.since=="string"?new fm(t.since):t.since??o,l=t.error||i&&r.compareTo(i)>=0,d=!o||r.compareTo(o)>=0;return l?kit(e,i,s,t.message):d?wit(e,i,s,t.message):qa}function Wit(e,t){return function(){return e(),t.apply(this,arguments)}}function H_e(e,t){let r=Oit(t?.name??R.getFunctionName(e),t);return Wit(r,e)}var vke,bke,Eke=bt({"src/deprecatedCompat/deprecate.ts"(){"use strict";LQ(),vke=!0}});function MQ(e,t,r,i){if(Object.defineProperty(s,"name",{...Object.getOwnPropertyDescriptor(s,"name"),value:e}),i)for(let l of Object.keys(i)){let d=+l;!isNaN(d)&&Ts(t,`${d}`)&&(t[d]=H_e(t[d],{...i[d],name:e}))}let o=Fit(t,r);return s;function s(...l){let d=o(l),p=d!==void 0?t[d]:void 0;if(typeof p=="function")return p(...l);throw new TypeError("Invalid arguments")}}function Fit(e,t){return r=>{for(let i=0;Ts(e,`${i}`)&&Ts(t,`${i}`);i++){let o=t[i];if(o(r))return i}}}function Ske(e){return{overload:t=>({bind:r=>({finish:()=>MQ(e,t,r),deprecate:i=>({finish:()=>MQ(e,t,r,i)})})})}}var zit=bt({"src/deprecatedCompat/deprecations.ts"(){"use strict";LQ(),Eke()}}),Bit=bt({"src/deprecatedCompat/5.0/identifierProperties.ts"(){"use strict";LQ(),Eke(),coe(e=>{let t=e.getIdentifierConstructor();Ts(t.prototype,"originalKeywordKind")||Object.defineProperty(t.prototype,"originalKeywordKind",{get:H_e(function(){return tE(this)},{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),Ts(t.prototype,"isInJSDocNamespace")||Object.defineProperty(t.prototype,"isInJSDocNamespace",{get:H_e(function(){return this.flags&4096?!0:void 0},{name:"isInJSDocNamespace",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use '.parent' or the surrounding context to determine this instead."})})})}}),LQ=bt({"src/deprecatedCompat/_namespaces/ts.ts"(){"use strict";Zo(),zit(),Bit()}}),Git=bt({"src/typingsInstallerCore/_namespaces/ts.ts"(){"use strict";Zo(),Vw(),J_e()}});function Tke(e,t,r,i){try{let o=HR(t,$r(e,"index.d.ts"),{moduleResolution:2},r);return o.resolvedModule&&o.resolvedModule.resolvedFileName}catch(o){i.isEnabled()&&i.writeLine(`Failed to resolve ${t} in folder '${e}': ${o.message}`);return}}function Vit(e,t,r,i){let o=!1;for(let s=r.length;s>0;){let l=Ake(e,t,r,s);s=l.remaining,o=i(l.command)||o}return o}function Ake(e,t,r,i){let o=r.length-i,s,l=i;for(;s=`${e} install --ignore-scripts ${(l===r.length?r:r.slice(o,o+l)).join(" ")} --save-dev --user-agent="typesInstaller/${t}"`,!(s.length<8e3);)l=l-Math.floor(l/2);return{command:s,remaining:i-l}}function Ike(e){return`@types/${e}@ts${g_}`}var xke,Rke,jit=bt({"src/typingsInstallerCore/typingsInstaller.ts"(){"use strict";Git(),J_e(),xke={isEnabled:()=>!1,writeLine:qa},Rke=class{constructor(e,t,r,i,o,s=xke){this.installTypingHost=e,this.globalCachePath=t,this.safeListPath=r,this.typesMapLocation=i,this.throttleLimit=o,this.log=s,this.packageNameToTypingLocation=new Map,this.missingTypingsSet=new Set,this.knownCachesSet=new Set,this.projectWatchers=new Map,this.pendingRunRequests=[],this.installRunCount=1,this.inFlightRequestCount=0,this.latestDistTag="latest",this.log.isEnabled()&&this.log.writeLine(`Global cache location '${t}', safe file path '${r}', types map path ${i}`),this.processCacheLocation(this.globalCachePath)}handleRequest(e){switch(e.kind){case"discover":this.install(e);break;case"closeProject":this.closeProject(e);break;case"typesRegistry":{let t={};this.typesRegistry.forEach((i,o)=>{t[o]=i});let r={kind:Iz,typesRegistry:t};this.sendResponse(r);break}case"installPackage":{this.installPackage(e);break}default:R.assertNever(e)}}closeProject(e){this.closeWatchers(e.projectName)}closeWatchers(e){if(this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}'`),!this.projectWatchers.get(e)){this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${e}'`);return}this.projectWatchers.delete(e),this.sendResponse({kind:JP,projectName:e,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}' - done.`)}install(e){this.log.isEnabled()&&this.log.writeLine(`Got install request${RE(e)}`),e.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${e.cachePath}', loading cached information...`),this.processCacheLocation(e.cachePath)),this.safeList===void 0&&this.initializeSafeList();let t=O_.discoverTypings(this.installTypingHost,this.log.isEnabled()?r=>this.log.writeLine(r):void 0,e.fileNames,e.projectRootPath,this.safeList,this.packageNameToTypingLocation,e.typeAcquisition,e.unresolvedImports,this.typesRegistry,e.compilerOptions);this.watchFiles(e.projectName,t.filesToWatch),t.newTypingNames.length?this.installTypings(e,e.cachePath||this.globalCachePath,t.cachedTypingPaths,t.newTypingNames):(this.sendResponse(this.createSetTypings(e,t.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine("No new typings were requested as a result of typings discovery"))}installPackage(e){let{fileName:t,packageName:r,projectName:i,projectRootPath:o,id:s}=e,l=hm(oi(t),d=>{if(this.installTypingHost.fileExists($r(d,"package.json")))return d})||o;if(l)this.installWorker(-1,[r],l,d=>{let p=d?`Package ${r} installed.`:`There was an error installing ${r}.`,h={kind:Gw,projectName:i,id:s,success:d,message:p};this.sendResponse(h)});else{let d={kind:Gw,projectName:i,id:s,success:!1,message:"Could not determine a project root path."};this.sendResponse(d)}}initializeSafeList(){if(this.typesMapLocation){let e=O_.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(e){this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),this.safeList=e;return}this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=O_.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(e){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${e}'`),this.knownCachesSet.has(e)){this.log.isEnabled()&&this.log.writeLine("Cache location was already processed...");return}let t=$r(e,"package.json"),r=$r(e,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${t}'...`),this.installTypingHost.fileExists(t)&&this.installTypingHost.fileExists(r)){let i=JSON.parse(this.installTypingHost.readFile(t)),o=JSON.parse(this.installTypingHost.readFile(r));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${t}':${RE(i)}`),this.log.writeLine(`Loaded content of '${r}':${RE(o)}`)),i.devDependencies&&o.dependencies)for(let s in i.devDependencies){if(!Ts(o.dependencies,s))continue;let l=nc(s);if(!l)continue;let d=Tke(e,l,this.installTypingHost,this.log);if(!d){this.missingTypingsSet.add(l);continue}let p=this.packageNameToTypingLocation.get(l);if(p){if(p.typingLocation===d)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${l} from '${d}' conflicts with existing typing file '${p}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${l}' => '${d}'`);let h=_W(o.dependencies,s),m=h&&h.version;if(!m)continue;let y={typingLocation:d,version:new fm(m)};this.packageNameToTypingLocation.set(l,y)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return to(e,t=>{let r=JR(t);if(this.missingTypingsSet.has(r)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${r}' is in missingTypingsSet - skipping...`);return}let i=O_.validatePackageName(t);if(i!==O_.NameValidationResult.Ok){this.missingTypingsSet.add(r),this.log.isEnabled()&&this.log.writeLine(O_.renderPackageNameValidationFailure(i,t));return}if(!this.typesRegistry.has(r)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: Entry for package '${r}' does not exist in local types registry - skipping...`);return}if(this.packageNameToTypingLocation.get(r)&&O_.isTypingUpToDate(this.packageNameToTypingLocation.get(r),this.typesRegistry.get(r))){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${r}' already has an up-to-date typing - skipping...`);return}return r})}ensurePackageDirectoryExists(e){let t=$r(e,"package.json");this.log.isEnabled()&&this.log.writeLine(`Npm config file: ${t}`),this.installTypingHost.fileExists(t)||(this.log.isEnabled()&&this.log.writeLine(`Npm config file: '${t}' is missing, creating new one...`),this.ensureDirectoryExists(e,this.installTypingHost),this.installTypingHost.writeFile(t,'{ "private": true }'))}installTypings(e,t,r,i){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(i)}`);let o=this.filterTypings(i);if(o.length===0){this.log.isEnabled()&&this.log.writeLine("All typings are known to be missing or invalid - no need to install more typings"),this.sendResponse(this.createSetTypings(e,r));return}this.ensurePackageDirectoryExists(t);let s=this.installRunCount;this.installRunCount++,this.sendResponse({kind:xz,eventId:s,typingsInstallerVersion:qp,projectName:e.projectName});let l=o.map(Ike);this.installTypingsAsync(s,l,t,d=>{try{if(!d){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(o)}`);for(let h of o)this.missingTypingsSet.add(h);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(l)}`);let p=[];for(let h of o){let m=Tke(t,h,this.installTypingHost,this.log);if(!m){this.missingTypingsSet.add(h);continue}let y=this.typesRegistry.get(h),E=new fm(y[`ts${g_}`]||y[this.latestDistTag]),S={typingLocation:m,version:E};this.packageNameToTypingLocation.set(h,S),p.push(m)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(p)}`),this.sendResponse(this.createSetTypings(e,r.concat(p)))}finally{let p={kind:Rz,eventId:s,projectName:e.projectName,packagesToInstall:l,installSuccess:d,typingsInstallerVersion:qp};this.sendResponse(p)}})}ensureDirectoryExists(e,t){let r=oi(e);t.directoryExists(r)||this.ensureDirectoryExists(r,t),t.directoryExists(e)||t.createDirectory(e)}watchFiles(e,t){if(!t.length){this.closeWatchers(e);return}let r=this.projectWatchers.get(e),i=new Set(t);!r||uh(i,o=>!r.has(o))||uh(r,o=>!i.has(o))?(this.projectWatchers.set(e,i),this.sendResponse({kind:JP,projectName:e,files:t})):this.sendResponse({kind:JP,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:zw}}installTypingsAsync(e,t,r,i){this.pendingRunRequests.unshift({requestId:e,packageNames:t,cwd:r,onRequestCompleted:i}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount{this.inFlightRequestCount--,e.onRequestCompleted(t),this.executeWithThrottling()})}}}}}),K_e={};Ra(K_e,{TypingsInstaller:()=>Rke,getNpmCommandForInstallation:()=>Ake,installNpmPackages:()=>Vit,typingsName:()=>Ike});var Uit=bt({"src/typingsInstallerCore/_namespaces/ts.server.typingsInstaller.ts"(){"use strict";jit()}}),J_e=bt({"src/typingsInstallerCore/_namespaces/ts.server.ts"(){"use strict";Dz(),Uit()}}),Hit=bt({"src/server/types.ts"(){"use strict"}});function q_e(e,t,r,i){return{projectName:e.getProjectName(),fileNames:e.getFileNames(!0,!0).concat(e.getExcludedFiles()),compilerOptions:e.getCompilationSettings(),typeAcquisition:t,unresolvedImports:r,projectRootPath:e.getCurrentDirectory(),cachePath:i,kind:"discover"}}function dl(e){return fa(e)}function e8(e,t,r){let i=cp(e)?e:_o(e,t);return r(i)}function Dke(e){return e}function Cke(){let e=new Map;return{get(t){return e.get(t)},set(t,r){e.set(t,r)},contains(t){return e.has(t)},remove(t){e.delete(t)}}}function X_e(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function Y_e(e){return`/dev/null/inferredProject${e}*`}function $_e(e){return`/dev/null/autoImportProviderProject${e}*`}function Q_e(e){return`/dev/null/auxiliaryProject${e}*`}function Z_e(){return[]}var kQ,_c,wQ,$y,Kit=bt({"src/server/utilitiesPublic.ts"(){"use strict";ob(),kQ=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(kQ||{}),_c=Z_e(),wQ=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(wQ||{}),(e=>{function t(){throw new Error("No Project.")}e.ThrowNoProject=t;function r(){throw new Error("The project's language service is disabled.")}e.ThrowProjectLanguageServiceDisabled=r;function i(o,s){throw new Error(`Project '${s.getProjectName()}' does not contain document '${o}'`)}e.ThrowProjectDoesNotContainDocument=i})($y||($y={}))}});function OQ(e){let t=nc(e);return t==="tsconfig.json"||t==="jsconfig.json"?t:void 0}function Nke(e,t,r){if(!e||e.length===0)return;if(e[0]===t){e.splice(0,1);return}let i=Ey(e,t,Qs,r);i>=0&&e.splice(i,1)}var WQ,FQ,Jit=bt({"src/server/utilities.ts"(){"use strict";ob(),iA(),WQ=class H4e{constructor(t,r){this.host=t,this.pendingTimeouts=new Map,this.logger=r.hasLevel(3)?r:void 0}schedule(t,r,i){let o=this.pendingTimeouts.get(t);o&&this.host.clearTimeout(o),this.pendingTimeouts.set(t,this.host.setTimeout(H4e.run,r,t,this,i)),this.logger&&this.logger.info(`Scheduled: ${t}${o?", Cancelled earlier one":""}`)}cancel(t){let r=this.pendingTimeouts.get(t);return r?(this.host.clearTimeout(r),this.pendingTimeouts.delete(t)):!1}static run(t,r,i){var o,s;(o=ru)==null||o.logStartScheduledOperation(t),r.pendingTimeouts.delete(t),r.logger&&r.logger.info(`Running: ${t}`),i(),(s=ru)==null||s.logStopScheduledOperation()}},FQ=class K4e{constructor(t,r,i){this.host=t,this.delay=r,this.logger=i}scheduleCollect(){!this.host.gc||this.timerId!==void 0||(this.timerId=this.host.setTimeout(K4e.run,this.delay,this))}static run(t){var r,i;t.timerId=void 0,(r=ru)==null||r.logStartScheduledOperation("GC collect");let o=t.logger.hasLevel(2),s=o&&t.host.getMemoryUsage();if(t.host.gc(),o){let l=t.host.getMemoryUsage();t.logger.perftrc(`GC::before ${s}, after ${l}`)}(i=ru)==null||i.logStopScheduledOperation()}}}}),zQ,ehe,the,nhe,rhe,ihe,ohe,ahe,she,lhe,che,dhe,uhe,phe,fhe=bt({"src/server/protocol.ts"(){"use strict";zQ=(e=>(e.JsxClosingTag="jsxClosingTag",e.LinkedEditingRange="linkedEditingRange",e.Brace="brace",e.BraceFull="brace-full",e.BraceCompletion="braceCompletion",e.GetSpanOfEnclosingComment="getSpanOfEnclosingComment",e.Change="change",e.Close="close",e.Completions="completions",e.CompletionInfo="completionInfo",e.CompletionsFull="completions-full",e.CompletionDetails="completionEntryDetails",e.CompletionDetailsFull="completionEntryDetails-full",e.CompileOnSaveAffectedFileList="compileOnSaveAffectedFileList",e.CompileOnSaveEmitFile="compileOnSaveEmitFile",e.Configure="configure",e.Definition="definition",e.DefinitionFull="definition-full",e.DefinitionAndBoundSpan="definitionAndBoundSpan",e.DefinitionAndBoundSpanFull="definitionAndBoundSpan-full",e.Implementation="implementation",e.ImplementationFull="implementation-full",e.EmitOutput="emit-output",e.Exit="exit",e.FileReferences="fileReferences",e.FileReferencesFull="fileReferences-full",e.Format="format",e.Formatonkey="formatonkey",e.FormatFull="format-full",e.FormatonkeyFull="formatonkey-full",e.FormatRangeFull="formatRange-full",e.Geterr="geterr",e.GeterrForProject="geterrForProject",e.SemanticDiagnosticsSync="semanticDiagnosticsSync",e.SyntacticDiagnosticsSync="syntacticDiagnosticsSync",e.SuggestionDiagnosticsSync="suggestionDiagnosticsSync",e.NavBar="navbar",e.NavBarFull="navbar-full",e.Navto="navto",e.NavtoFull="navto-full",e.NavTree="navtree",e.NavTreeFull="navtree-full",e.DocumentHighlights="documentHighlights",e.DocumentHighlightsFull="documentHighlights-full",e.Open="open",e.Quickinfo="quickinfo",e.QuickinfoFull="quickinfo-full",e.References="references",e.ReferencesFull="references-full",e.Reload="reload",e.Rename="rename",e.RenameInfoFull="rename-full",e.RenameLocationsFull="renameLocations-full",e.Saveto="saveto",e.SignatureHelp="signatureHelp",e.SignatureHelpFull="signatureHelp-full",e.FindSourceDefinition="findSourceDefinition",e.Status="status",e.TypeDefinition="typeDefinition",e.ProjectInfo="projectInfo",e.ReloadProjects="reloadProjects",e.Unknown="unknown",e.OpenExternalProject="openExternalProject",e.OpenExternalProjects="openExternalProjects",e.CloseExternalProject="closeExternalProject",e.SynchronizeProjectList="synchronizeProjectList",e.ApplyChangedToOpenFiles="applyChangedToOpenFiles",e.UpdateOpen="updateOpen",e.EncodedSyntacticClassificationsFull="encodedSyntacticClassifications-full",e.EncodedSemanticClassificationsFull="encodedSemanticClassifications-full",e.Cleanup="cleanup",e.GetOutliningSpans="getOutliningSpans",e.GetOutliningSpansFull="outliningSpans",e.TodoComments="todoComments",e.Indentation="indentation",e.DocCommentTemplate="docCommentTemplate",e.CompilerOptionsDiagnosticsFull="compilerOptionsDiagnostics-full",e.NameOrDottedNameSpan="nameOrDottedNameSpan",e.BreakpointStatement="breakpointStatement",e.CompilerOptionsForInferredProjects="compilerOptionsForInferredProjects",e.GetCodeFixes="getCodeFixes",e.GetCodeFixesFull="getCodeFixes-full",e.GetCombinedCodeFix="getCombinedCodeFix",e.GetCombinedCodeFixFull="getCombinedCodeFix-full",e.ApplyCodeActionCommand="applyCodeActionCommand",e.GetSupportedCodeFixes="getSupportedCodeFixes",e.GetApplicableRefactors="getApplicableRefactors",e.GetEditsForRefactor="getEditsForRefactor",e.GetMoveToRefactoringFileSuggestions="getMoveToRefactoringFileSuggestions",e.GetEditsForRefactorFull="getEditsForRefactor-full",e.OrganizeImports="organizeImports",e.OrganizeImportsFull="organizeImports-full",e.GetEditsForFileRename="getEditsForFileRename",e.GetEditsForFileRenameFull="getEditsForFileRename-full",e.ConfigurePlugin="configurePlugin",e.SelectionRange="selectionRange",e.SelectionRangeFull="selectionRange-full",e.ToggleLineComment="toggleLineComment",e.ToggleLineCommentFull="toggleLineComment-full",e.ToggleMultilineComment="toggleMultilineComment",e.ToggleMultilineCommentFull="toggleMultilineComment-full",e.CommentSelection="commentSelection",e.CommentSelectionFull="commentSelection-full",e.UncommentSelection="uncommentSelection",e.UncommentSelectionFull="uncommentSelection-full",e.PrepareCallHierarchy="prepareCallHierarchy",e.ProvideCallHierarchyIncomingCalls="provideCallHierarchyIncomingCalls",e.ProvideCallHierarchyOutgoingCalls="provideCallHierarchyOutgoingCalls",e.ProvideInlayHints="provideInlayHints",e.WatchChange="watchChange",e))(zQ||{}),ehe=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(ehe||{}),the=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(the||{}),nhe=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(nhe||{}),rhe=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(rhe||{}),ihe=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(ihe||{}),ohe=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(ohe||{}),ahe=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(ahe||{}),she=(e=>(e.None="None",e.Preserve="Preserve",e.ReactNative="ReactNative",e.React="React",e))(she||{}),lhe=(e=>(e.None="None",e.CommonJS="CommonJS",e.AMD="AMD",e.UMD="UMD",e.System="System",e.ES6="ES6",e.ES2015="ES2015",e.ESNext="ESNext",e.Node16="Node16",e.NodeNext="NodeNext",e.Preserve="Preserve",e))(lhe||{}),che=(e=>(e.Classic="Classic",e.Node="Node",e.Node10="Node10",e.Node16="Node16",e.NodeNext="NodeNext",e.Bundler="Bundler",e))(che||{}),dhe=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(dhe||{}),uhe=(e=>(e.ES3="ES3",e.ES5="ES5",e.ES6="ES6",e.ES2015="ES2015",e.ES2016="ES2016",e.ES2017="ES2017",e.ES2018="ES2018",e.ES2019="ES2019",e.ES2020="ES2020",e.ES2021="ES2021",e.ES2022="ES2022",e.ESNext="ESNext",e))(uhe||{}),phe=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral",e))(phe||{})}}),mhe={};Ra(mhe,{ClassificationType:()=>phe,CommandTypes:()=>zQ,CompletionTriggerKind:()=>ihe,IndentStyle:()=>ohe,JsxEmit:()=>she,ModuleKind:()=>lhe,ModuleResolutionKind:()=>che,NewLineKind:()=>dhe,OrganizeImportsMode:()=>ehe,PollingWatchKind:()=>rhe,ScriptTarget:()=>uhe,SemicolonPreference:()=>ahe,WatchDirectoryKind:()=>nhe,WatchFileKind:()=>the});var qit=bt({"src/server/_namespaces/ts.server.protocol.ts"(){"use strict";fhe()}});function t8(e){return e[0]==="^"||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&nc(e)[0]==="^"||e.includes(":^")&&!e.includes(nl)}function Pke(e){return!e||r8(e)?$y.ThrowNoProject():e}function Xit(e){R.assert(typeof e=="number",`Expected position ${e} to be a number.`),R.assert(e>=0,"Expected position to be non-negative.")}function Yit(e){R.assert(typeof e.line=="number",`Expected line ${e.line} to be a number.`),R.assert(typeof e.offset=="number",`Expected offset ${e.offset} to be a number.`),R.assert(e.line>0,`Expected line to be non-${e.line===0?"zero":"negative"}`),R.assert(e.offset>0,`Expected offset to be non-${e.offset===0?"zero":"negative"}`)}var BQ,GQ,$it=bt({"src/server/scriptInfo.ts"(){"use strict";ob(),iA(),BQ=class{constructor(e,t,r){this.host=e,this.info=t,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=r||0}getVersion(){return this.svc?`SVC-${this.version}-${this.svc.getSnapshotVersion()}`:`Text-${this.version}`}hasScriptVersionCache_TestOnly(){return this.svc!==void 0}resetSourceMapInfo(){this.info.sourceFileLike=void 0,this.info.closeSourceMapFileWatcher(),this.info.sourceMapFilePath=void 0,this.info.declarationInfoPath=void 0,this.info.sourceInfos=void 0,this.info.documentPositionMapper=void 0}useText(e){this.svc=void 0,this.text=e,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo(),this.version++}edit(e,t,r){this.switchToScriptVersionCache().edit(e,t-e,r),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(e){return R.assert(e!==void 0),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=lD(this.svc.getSnapshot())),this.text!==e?(this.useText(e),this.ownFileText=!1,!0):!1}reloadWithFileText(e){let{text:t,fileSize:r}=e||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(e):{text:"",fileSize:void 0},i=this.reload(t);return this.fileSize=r,this.ownFileText=!e||e===this.info.fileName,i}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText?this.pendingReloadFromDisk=!0:!1}delayReloadFromFileIntoText(){this.pendingReloadFromDisk=!0}getTelemetryFileSize(){return this.fileSize?this.fileSize:this.text?this.text.length:this.svc?this.svc.getSnapshot().getLength():this.getSnapshot().getLength()}getSnapshot(){var e;return((e=this.tryUseScriptVersionCache())==null?void 0:e.getSnapshot())||(this.textSnapshot??(this.textSnapshot=Nz.fromString(R.checkDefined(this.text))))}getAbsolutePositionAndLineText(e){let t=this.tryUseScriptVersionCache();if(t)return t.getAbsolutePositionAndLineText(e);let r=this.getLineMap();return e<=r.length?{absolutePosition:r[e-1],lineText:this.text.substring(r[e-1],r[e])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(e){let t=this.tryUseScriptVersionCache();if(t)return t.lineToTextSpan(e);let r=this.getLineMap(),i=r[e],o=e+1t===void 0?t=this.host.readFile(r)||"":t;if(!WI(this.info.fileName)){let o=this.host.getFileSize?this.host.getFileSize(r):i().length;if(o>NB)return R.assert(!!this.info.containingProjects.length),this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${r} for info ${this.info.fileName}: fileSize: ${o}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(r,o),{text:"",fileSize:o}}return{text:i()}}switchToScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&(this.svc=jB.fromString(this.getOrLoadText()),this.textSnapshot=void 0,this.version++),this.svc}tryUseScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&this.getOrLoadText(),this.isOpen?(!this.svc&&!this.textSnapshot&&(this.svc=jB.fromString(R.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(this.text===void 0||this.pendingReloadFromDisk)&&(R.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return R.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=hI(R.checkDefined(this.text)))}getLineInfo(){let e=this.tryUseScriptVersionCache();if(e)return{getLineCount:()=>e.getLineCount(),getLineText:r=>e.getAbsolutePositionAndLineText(r+1).lineText};let t=this.getLineMap();return AK(this.text,t)}},GQ=class{constructor(e,t,r,i,o,s){this.host=e,this.fileName=t,this.scriptKind=r,this.hasMixedContent=i,this.path=o,this.containingProjects=[],this.isDynamic=t8(t),this.textStorage=new BQ(e,this,s),(i||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=r||k6(t)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(e){this.textStorage.isOpen=!0,e!==void 0&&this.textStorage.reload(e)&&this.markContainingProjectsAsDirty()}close(e=!0){this.textStorage.isOpen=!1,e&&this.textStorage.scheduleReloadIfNeeded()&&this.markContainingProjectsAsDirty()}getSnapshot(){return this.textStorage.getSnapshot()}ensureRealPath(){if(this.realpath===void 0&&(this.realpath=this.path,this.host.realpath)){R.assert(!!this.containingProjects.length);let e=this.containingProjects[0],t=this.host.realpath(this.path);t&&(this.realpath=e.toPath(t),this.realpath!==this.path&&e.projectService.realpathToScriptInfos.add(this.realpath,this))}}getRealpathIfDifferent(){return this.realpath&&this.realpath!==this.path?this.realpath:void 0}isSymlink(){return this.realpath&&this.realpath!==this.path}getFormatCodeSettings(){return this.formatSettings}getPreferences(){return this.preferences}attachToProject(e){let t=!this.isAttached(e);return t&&(this.containingProjects.push(e),e.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),e.onFileAddedOrRemoved(this.isSymlink())),t}isAttached(e){switch(this.containingProjects.length){case 0:return!1;case 1:return this.containingProjects[0]===e;case 2:return this.containingProjects[0]===e||this.containingProjects[1]===e;default:return zo(this.containingProjects,e)}}detachFromProject(e){switch(this.containingProjects.length){case 0:return;case 1:this.containingProjects[0]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;case 2:this.containingProjects[0]===e?(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects[0]=this.containingProjects.pop()):this.containingProjects[1]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;default:Sx(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(let e of this.containingProjects){LE(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);let t=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),t&&!ND(e)&&e.addMissingFileRoot(t.fileName)}Vh(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return $y.ThrowNoProject();case 1:return Pke(this.containingProjects[0]);default:let e,t,r,i,o;for(let s=0;s!e.isOrphan())}isContainedByBackgroundProject(){return gt(this.containingProjects,r8)}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,r){return this.textStorage.lineOffsetToPosition(e,t,r)}positionToLineOffset(e){Xit(e);let t=this.textStorage.positionToLineOffset(e);return Yit(t),t}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!Co(this.sourceMapFilePath)&&(Rf(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}}}});function Mke(e,t){if(e===t||(e||_c).length===0&&(t||_c).length===0)return!0;let r=new Map,i=0;for(let o of e)r.get(o)!==!0&&(r.set(o,!0),i++);for(let o of t){let s=r.get(o);if(s===void 0)return!1;s===!0&&(r.set(o,!1),i--)}return i===0}function Qit(e,t){return e.enable!==t.enable||!Mke(e.include,t.include)||!Mke(e.exclude,t.exclude)}function Zit(e,t){return jv(e)!==jv(t)}function eot(e,t){return e===t?!1:!Vm(e,t)}var xB,VQ,tot=bt({"src/server/typingsCache.ts"(){"use strict";ob(),iA(),xB={isKnownTypesPackageName:jm,installPackage:jo,enqueueInstallTypingsRequest:qa,attach:qa,onProjectClosed:qa,globalTypingsCacheLocation:void 0},VQ=class{constructor(e){this.installer=e,this.perProjectCache=new Map}isKnownTypesPackageName(e){return this.installer.isKnownTypesPackageName(e)}installPackage(e){return this.installer.installPackage(e)}enqueueInstallTypingsForProject(e,t,r){let i=e.getTypeAcquisition();if(!i||!i.enable)return;let o=this.perProjectCache.get(e.getProjectName());(r||!o||Qit(i,o.typeAcquisition)||Zit(e.getCompilationSettings(),o.compilerOptions)||eot(t,o.unresolvedImports))&&(this.perProjectCache.set(e.getProjectName(),{compilerOptions:e.getCompilationSettings(),typeAcquisition:i,typings:o?o.typings:_c,unresolvedImports:t,poisoned:!0}),this.installer.enqueueInstallTypingsRequest(e,i,t))}updateTypingsForProject(e,t,r,i,o){let s=ZS(o);return this.perProjectCache.set(e,{compilerOptions:t,typeAcquisition:r,typings:s,unresolvedImports:i,poisoned:!1}),!r||!r.enable?_c:s}onProjectClosed(e){this.perProjectCache.delete(e.getProjectName())&&this.installer.onProjectClosed(e)}}}});function n8(e,t=!1){let r={js:0,jsSize:0,jsx:0,jsxSize:0,ts:0,tsSize:0,tsx:0,tsxSize:0,dts:0,dtsSize:0,deferred:0,deferredSize:0};for(let i of e){let o=t?i.textStorage.getTelemetryFileSize():0;switch(i.scriptKind){case 1:r.js+=1,r.jsSize+=o;break;case 2:r.jsx+=1,r.jsxSize+=o;break;case 3:vd(i.fileName)?(r.dts+=1,r.dtsSize+=o):(r.ts+=1,r.tsSize+=o);break;case 4:r.tsx+=1,r.tsxSize+=o;break;case 7:r.deferred+=1,r.deferredSize+=o;break}}return r}function not(e){let t=n8(e.getScriptInfos());return t.js>0&&t.ts===0&&t.tsx===0}function _he(e){let t=n8(e.getRootScriptInfos());return t.ts===0&&t.tsx===0}function hhe(e){let t=n8(e.getScriptInfos());return t.ts===0&&t.tsx===0}function ghe(e){return!e.some(t=>Sl(t,".ts")&&!vd(t)||Sl(t,".tsx"))}function yhe(e){return e.generatedFilePath!==void 0}function rot(e,t){var r,i;let o=e.getSourceFiles();(r=rr)==null||r.push(rr.Phase.Session,"getUnresolvedImports",{count:o.length});let s=e.getTypeChecker().getAmbientModules().map(d=>Yf(d.getName())),l=zC(va(o,d=>iot(e,d,s,t)));return(i=rr)==null||i.pop(),l}function iot(e,t,r,i){return FC(i,t.path,()=>{let o;return e.forEachResolvedModule(({resolvedModule:s},l)=>{(!s||!VN(s.extension))&&!qc(l)&&!r.some(d=>d===l)&&(o=Tn(o,_w(l).packageName))},t),o||_c})}function ND(e){return e.projectKind===0}function LE(e){return e.projectKind===1}function jQ(e){return e.projectKind===2}function r8(e){return e.projectKind===3||e.projectKind===4}var vM,rA,UQ,HQ,KQ,JQ,qQ,RB,oot=bt({"src/server/project.ts"(){"use strict";ob(),ob(),iA(),vM=(e=>(e[e.Inferred=0]="Inferred",e[e.Configured=1]="Configured",e[e.External=2]="External",e[e.AutoImportProvider=3]="AutoImportProvider",e[e.Auxiliary=4]="Auxiliary",e))(vM||{}),rA=class J4e{constructor(t,r,i,o,s,l,d,p,h,m,y){switch(this.projectKind=r,this.projectService=i,this.documentRegistry=o,this.compilerOptions=d,this.compileOnSaveEnabled=p,this.watchOptions=h,this.rootFiles=[],this.rootFilesMap=new Map,this.plugins=[],this.cachedUnresolvedImportsPerFile=new Map,this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1,this.lastReportedVersion=0,this.projectProgramVersion=0,this.projectStateVersion=0,this.isInitialLoadPending=jm,this.dirty=!1,this.typingFiles=_c,this.moduleSpecifierCache=Nhe(this),this.createHash=ea(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=O_.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,this.projectName=t,this.directoryStructureHost=m,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(y),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new SY(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(s||jv(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=H7(),this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),i.serverMode){case 0:this.languageServiceEnabled=!0;break;case 1:this.languageServiceEnabled=!0,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;case 2:this.languageServiceEnabled=!1,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;default:R.assertNever(i.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();let E=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=S=>this.writeLog(S):E.trace&&(this.trace=S=>E.trace(S)),this.realpath=ea(E,E.realpath),this.resolutionCache=PJ(this,this.currentDirectory,!0),this.languageService=cpe(this,this.documentRegistry,this.projectService.serverMode),l&&this.disableLanguageService(l),this.markAsDirty(),r8(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(t){}isNonTsProject(){return zp(this),hhe(this)}isJsOnlyProject(){return zp(this),not(this)}static resolveModule(t,r,i,o){return J4e.importServicePluginSync({name:t},[r],i,o).resolvedModule}static importServicePluginSync(t,r,i,o){R.assertIsDefined(i.require);let s,l;for(let d of r){let p=Nd(i.resolvePath($r(d,"node_modules")));o(`Loading ${t.name} from ${d} (resolved to ${p})`);let h=i.require(p,t.name);if(!h.error){l=h.module;break}let m=h.error.stack||h.error.message||JSON.stringify(h.error);(s??(s=[])).push(`Failed to load module '${t.name}' from ${p}: ${m}`)}return{pluginConfigEntry:t,resolvedModule:l,errorLogs:s}}static async importServicePluginAsync(t,r,i,o){R.assertIsDefined(i.importPlugin);let s,l;for(let d of r){let p=$r(d,"node_modules");o(`Dynamically importing ${t.name} from ${d} (resolved to ${p})`);let h;try{h=await i.importPlugin(p,t.name)}catch(y){h={module:void 0,error:y}}if(!h.error){l=h.module;break}let m=h.error.stack||h.error.message||JSON.stringify(h.error);(s??(s=[])).push(`Failed to dynamically import module '${t.name}' from ${p}: ${m}`)}return{pluginConfigEntry:t,resolvedModule:l,errorLogs:s}}isKnownTypesPackageName(t){return this.typingsCache.isKnownTypesPackageName(t)}installPackage(t){return this.typingsCache.installPackage({...t,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getGlobalCache()}get typingsCache(){return this.projectService.typingsCache}getSymlinkCache(){return this.symlinks||(this.symlinks=oU(this.getCurrentDirectory(),this.getCanonicalFileName)),this.program&&!this.symlinks.hasProcessedResolutions()&&this.symlinks.setSymlinksFromResolutions(this.program.forEachResolvedModule,this.program.forEachResolvedTypeReferenceDirective,this.program.getAutomaticTypeDirectiveResolutions()),this.symlinks}getCompilationSettings(){return this.compilerOptions}getCompilerOptions(){return this.getCompilationSettings()}getNewLine(){return this.projectService.host.newLine}getProjectVersion(){return this.projectStateVersion.toString()}getProjectReferences(){}getScriptFileNames(){if(!this.rootFiles)return Xe;let t;return this.rootFilesMap.forEach(r=>{(this.languageServiceEnabled||r.info&&r.info.isScriptOpen())&&(t||(t=[])).push(r.fileName)}),Hr(t,this.typingFiles)||Xe}getOrCreateScriptInfoAndAttachToProject(t){let r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost);if(r){let i=this.rootFilesMap.get(r.path);i&&i.info!==r&&(this.rootFiles.push(r),i.info=r),r.attachToProject(this)}return r}getScriptKind(t){let r=this.projectService.getScriptInfoForPath(this.toPath(t));return r&&r.scriptKind}getScriptVersion(t){let r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost);return r&&r.getLatestVersion()}getScriptSnapshot(t){let r=this.getOrCreateScriptInfoAndAttachToProject(t);if(r)return r.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){let t=oi(fa(this.projectService.getExecutingFilePath()));return $r(t,KL(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(t,r,i,o,s){return this.directoryStructureHost.readDirectory(t,r,i,o,s)}readFile(t){return this.projectService.host.readFile(t)}writeFile(t,r){return this.projectService.host.writeFile(t,r)}fileExists(t){let r=this.toPath(t);return!this.isWatchedMissingFile(r)&&this.directoryStructureHost.fileExists(t)}resolveModuleNameLiterals(t,r,i,o,s,l){return this.resolutionCache.resolveModuleNameLiterals(t,r,i,o,s,l)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(t,r,i,o,s,l){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(t,r,i,o,s,l)}resolveLibrary(t,r,i,o){return this.resolutionCache.resolveLibrary(t,r,i,o)}directoryExists(t){return this.directoryStructureHost.directoryExists(t)}getDirectories(t){return this.directoryStructureHost.getDirectories(t)}getCachedDirectoryStructureHost(){}toPath(t){return tl(t,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(t,r,i){return this.projectService.watchFactory.watchDirectory(t,r,i,this.projectService.getWatchOptions(this),Lc.FailedLookupLocations,this)}watchAffectingFileLocation(t,r){return this.projectService.watchFactory.watchFile(t,r,2e3,this.projectService.getWatchOptions(this),Lc.AffectingFileLocation,this)}clearInvalidateResolutionOfFailedLookupTimer(){return this.projectService.throttledOperations.cancel(`${this.getProjectName()}FailedLookupInvalidation`)}scheduleInvalidateResolutionsOfFailedLookupLocations(){this.projectService.throttledOperations.schedule(`${this.getProjectName()}FailedLookupInvalidation`,1e3,()=>{this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)})}invalidateResolutionsOfFailedLookupLocations(){this.clearInvalidateResolutionOfFailedLookupTimer()&&this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&(this.markAsDirty(),this.projectService.delayEnsureProjectForOpenFiles())}onInvalidatedResolution(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}watchTypeRootsDirectory(t,r,i){return this.projectService.watchFactory.watchDirectory(t,r,i,this.projectService.getWatchOptions(this),Lc.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}getGlobalCache(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}fileIsOpen(t){return this.projectService.openFiles.has(t)}writeLog(t){this.projectService.logger.info(t)}log(t){this.writeLog(t)}error(t){this.projectService.logger.msg(t,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){(this.projectKind===0||this.projectKind===2)&&(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return jr(this.projectErrors,t=>!t.file)||_c}getAllProjectErrors(){return this.projectErrors||_c}setProjectErrors(t){this.projectErrors=t}getLanguageService(t=!0){return t&&zp(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(t,r){return this.projectService.getDocumentPositionMapper(this,t,r)}getSourceFileLike(t){return this.projectService.getSourceFileLike(t,this)}shouldEmitFile(t){return t&&!t.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(t.path)}getCompileOnSaveAffectedFileList(t){return this.languageServiceEnabled?(zp(this),this.builderState=xm.create(this.program,this.builderState,!0),to(xm.getFilesAffectedBy(this.builderState,this.program,t.path,this.cancellationToken,this.projectService.host),r=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(r.path))?r.fileName:void 0)):[]}emitFile(t,r){if(!this.languageServiceEnabled||!this.shouldEmitFile(t))return{emitSkipped:!0,diagnostics:_c};let{emitSkipped:i,diagnostics:o,outputFiles:s}=this.getLanguageService().getEmitOutput(t.fileName);if(!i){for(let l of s){let d=_o(l.name,this.currentDirectory);r(d,l.text,l.writeByteOrderMark)}if(this.builderState&&Af(this.compilerOptions)){let l=s.filter(d=>vd(d.name));if(l.length===1){let d=this.program.getSourceFile(t.fileName),p=this.projectService.host.createHash?this.projectService.host.createHash(l[0].text):KC(l[0].text);xm.updateSignatureOfFile(this.builderState,p,d.resolvedPath)}}}return{emitSkipped:i,diagnostics:o}}enableLanguageService(){this.languageServiceEnabled||this.projectService.serverMode===2||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(let t of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(t.fileName);this.program.forEachResolvedProjectReference(t=>this.detachScriptInfoFromProject(t.sourceFile.fileName)),this.program=void 0}}disableLanguageService(t){this.languageServiceEnabled&&(R.assert(this.projectService.serverMode!==2),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=t,this.builderState=void 0,this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.resolutionCache.closeTypeRootsWatch(),this.clearGeneratedFileWatch(),this.projectService.verifyDocumentRegistry(),this.projectService.onUpdateLanguageServiceStateForProject(this,!1))}getProjectName(){return this.projectName}removeLocalTypingsFromTypeAcquisition(t){return!t||!t.include?t:{...t,include:this.removeExistingTypings(t.include)}}getExternalFiles(t){return ZS(va(this.plugins,r=>{if(typeof r.module.getExternalFiles=="function")try{return r.module.getExternalFiles(this,t||0)}catch(i){this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${i}`),i.stack&&this.projectService.logger.info(i.stack)}}))}getSourceFile(t){if(this.program)return this.program.getSourceFileByPath(t)}getSourceFileOrConfigFile(t){let r=this.program.getCompilerOptions();return t===r.configFilePath?r.configFile:this.getSourceFile(t)}close(){var t;this.projectService.typingsCache.onProjectClosed(this),this.closeWatchingTypingLocations(),this.cleanupProgram(),gn(this.externalFiles,r=>this.detachScriptInfoIfNotRoot(r));for(let r of this.rootFiles)r.detachFromProject(this);this.projectService.pendingEnsureProjectForOpenFiles=!0,this.rootFiles=void 0,this.rootFilesMap=void 0,this.externalFiles=void 0,this.program=void 0,this.builderState=void 0,this.resolutionCache.clear(),this.resolutionCache=void 0,this.cachedUnresolvedImportsPerFile=void 0,(t=this.packageJsonWatches)==null||t.forEach(r=>{r.projects.delete(this),r.close()}),this.packageJsonWatches=void 0,this.moduleSpecifierCache.clear(),this.moduleSpecifierCache=void 0,this.directoryStructureHost=void 0,this.exportMapCache=void 0,this.projectErrors=void 0,this.plugins.length=0,this.missingFilesMap&&($u(this.missingFilesMap,Km),this.missingFilesMap=void 0),this.clearGeneratedFileWatch(),this.clearInvalidateResolutionOfFailedLookupTimer(),this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.noDtsResolutionProject&&this.noDtsResolutionProject.close(),this.noDtsResolutionProject=void 0,this.languageService.dispose(),this.languageService=void 0}detachScriptInfoIfNotRoot(t){let r=this.projectService.getScriptInfo(t);r&&!this.isRoot(r)&&r.detachFromProject(this)}isClosed(){return this.rootFiles===void 0}hasRoots(){return this.rootFiles&&this.rootFiles.length>0}isOrphan(){return!1}getRootFiles(){return this.rootFiles&&this.rootFiles.map(t=>t.fileName)}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return this.rootFiles}getScriptInfos(){return this.languageServiceEnabled?mn(this.program.getSourceFiles(),t=>{let r=this.projectService.getScriptInfoForPath(t.resolvedPath);return R.assert(!!r,"getScriptInfo",()=>`scriptInfo for a file '${t.fileName}' Path: '${t.path}' / '${t.resolvedPath}' is missing.`),r}):this.rootFiles}getExcludedFiles(){return _c}getFileNames(t,r){if(!this.program)return[];if(!this.languageServiceEnabled){let o=this.getRootFiles();if(this.compilerOptions){let s=dpe(this.compilerOptions);s&&(o||(o=[])).push(s)}return o}let i=[];for(let o of this.program.getSourceFiles())t&&this.program.isSourceFileFromExternalLibrary(o)||i.push(o.fileName);if(!r){let o=this.program.getCompilerOptions().configFile;if(o&&(i.push(o.fileName),o.extendedSourceFiles))for(let s of o.extendedSourceFiles)i.push(s)}return i}getFileNamesWithRedirectInfo(t){return this.getFileNames().map(r=>({fileName:r,isSourceOfProjectReferenceRedirect:t&&this.isSourceOfProjectReferenceRedirect(r)}))}hasConfigFile(t){if(this.program&&this.languageServiceEnabled){let r=this.program.getCompilerOptions().configFile;if(r){if(t===r.fileName)return!0;if(r.extendedSourceFiles){for(let i of r.extendedSourceFiles)if(t===i)return!0}}}return!1}containsScriptInfo(t){if(this.isRoot(t))return!0;if(!this.program)return!1;let r=this.program.getSourceFileByPath(t.path);return!!r&&r.resolvedPath===t.path}containsFile(t,r){let i=this.projectService.getScriptInfoForNormalizedPath(t);return i&&(i.isScriptOpen()||!r)?this.containsScriptInfo(i):!1}isRoot(t){var r;return this.rootFilesMap&&((r=this.rootFilesMap.get(t.path))==null?void 0:r.info)===t}addRoot(t,r){R.assert(!this.isRoot(t)),this.rootFiles.push(t),this.rootFilesMap.set(t.path,{fileName:r||t.fileName,info:t}),t.attachToProject(this),this.markAsDirty()}addMissingFileRoot(t){let r=this.projectService.toPath(t);this.rootFilesMap.set(r,{fileName:t}),this.markAsDirty()}removeFile(t,r,i){this.isRoot(t)&&this.removeRoot(t),r?this.resolutionCache.removeResolutionsOfFile(t.path):this.resolutionCache.invalidateResolutionOfFile(t.path),this.cachedUnresolvedImportsPerFile.delete(t.path),i&&t.detachFromProject(this),this.markAsDirty()}registerFileUpdate(t){(this.updatedFileNames||(this.updatedFileNames=new Set)).add(t)}markFileAsDirty(t){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(t)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}onAutoImportProviderSettingsChanged(){var t;this.autoImportProviderHost===!1?this.autoImportProviderHost=void 0:(t=this.autoImportProviderHost)==null||t.markAsDirty()}onPackageJsonChange(){this.moduleSpecifierCache.clear(),this.autoImportProviderHost&&this.autoImportProviderHost.markAsDirty()}onFileAddedOrRemoved(t){this.hasAddedorRemovedFiles=!0,t&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}updateFromProject(){zp(this)}updateGraph(){var t,r,i,o,s;(t=rr)==null||t.push(rr.Phase.Session,"updateGraph",{name:this.projectName,kind:vM[this.projectKind]}),(r=ru)==null||r.logStartUpdateGraph(),this.resolutionCache.startRecordingFilesWithChangedResolutions();let l=this.updateGraphWorker(),d=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;let p=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||_c;for(let m of p)this.cachedUnresolvedImportsPerFile.delete(m);this.languageServiceEnabled&&this.projectService.serverMode===0&&!this.isOrphan()?((l||p.length)&&(this.lastCachedUnresolvedImportsList=rot(this.program,this.cachedUnresolvedImportsPerFile)),this.projectService.typingsCache.enqueueInstallTypingsForProject(this,this.lastCachedUnresolvedImportsList,d)):this.lastCachedUnresolvedImportsList=void 0;let h=this.projectProgramVersion===0&&l;return l&&this.projectProgramVersion++,d&&(this.autoImportProviderHost||(this.autoImportProviderHost=void 0),(i=this.autoImportProviderHost)==null||i.markAsDirty()),h&&this.getPackageJsonAutoImportProvider(),(o=ru)==null||o.logStopUpdateGraph(),(s=rr)==null||s.pop(),!l}updateTypingFiles(t){TW(t,this.typingFiles,bx(!this.useCaseSensitiveFileNames()),qa,r=>this.detachScriptInfoFromProject(r))&&(this.typingFiles=t,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&$u(this.typingWatchers,Km),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:Bw})}watchTypingLocations(t){if(!t){this.typingWatchers.isInvoked=!1;return}if(!t.length){this.closeWatchingTypingLocations();return}let r=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;let i=(o,s)=>{let l=this.toPath(o);r.delete(l),this.typingWatchers.has(l)||this.typingWatchers.set(l,s==="FileWatcher"?this.projectService.watchFactory.watchFile(o,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),Lc.TypingInstallerLocationFile,this):this.projectService.watchFactory.watchDirectory(o,d=>{if(this.typingWatchers.isInvoked)return this.writeLog("TypingWatchers already invoked");if(!Sl(d,".json"))return this.writeLog("Ignoring files that are not *.json");if(xg(d,$r(this.projectService.typingsInstaller.globalTypingsCacheLocation,"package.json"),!this.useCaseSensitiveFileNames()))return this.writeLog("Ignoring package.json change at global typings location");this.onTypingInstallerWatchInvoke()},1,this.projectService.getWatchOptions(this),Lc.TypingInstallerLocationDirectory,this))};for(let o of t){let s=nc(o);if(s==="package.json"||s==="bower.json"){i(o,"FileWatcher");continue}if(mm(this.currentDirectory,o,this.currentDirectory,!this.useCaseSensitiveFileNames())){let l=o.indexOf(nl,this.currentDirectory.length+1);i(l!==-1?o.substr(0,l):o,"DirectoryWatcher");continue}if(mm(this.projectService.typingsInstaller.globalTypingsCacheLocation,o,this.currentDirectory,!this.useCaseSensitiveFileNames())){i(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher");continue}i(o,"DirectoryWatcher")}r.forEach((o,s)=>{o.close(),this.typingWatchers.delete(s)})}getCurrentProgram(){return this.program}removeExistingTypings(t){let r=y3(this.getCompilerOptions(),this.directoryStructureHost);return t.filter(i=>!r.includes(i))}updateGraphWorker(){var t,r;let i=this.languageService.getCurrentProgram();R.assert(i===this.program),R.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);let o=Ks(),{hasInvalidatedResolutions:s,hasInvalidatedLibResolutions:l}=this.resolutionCache.createHasInvalidatedResolutions(jm,jm);this.hasInvalidatedResolutions=s,this.hasInvalidatedLibResolutions=l,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,(t=rr)==null||t.push(rr.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,i),(r=rr)==null||r.pop(),R.assert(i===void 0||this.program!==void 0);let d=!1;if(this.program&&(!i||this.program!==i&&this.program.structureIsReused!==2)){if(d=!0,i){for(let m of i.getSourceFiles()){let y=this.program.getSourceFileByPath(m.resolvedPath);(!y||m.resolvedPath===m.path&&y.resolvedPath!==m.path)&&this.detachScriptInfoFromProject(m.fileName,!!this.program.getSourceFileByPath(m.path),!0)}i.forEachResolvedProjectReference(m=>{this.program.getResolvedProjectReferenceByPath(m.sourceFile.path)||this.detachScriptInfoFromProject(m.sourceFile.fileName,void 0,!0)})}if(QK(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),(m,y)=>this.addMissingFileWatcher(m,y)),this.generatedFilesMap){let m=Rs(this.compilerOptions);yhe(this.generatedFilesMap)?(!m||!this.isValidGeneratedFileWatcher(Su(m)+".d.ts",this.generatedFilesMap))&&this.clearGeneratedFileWatch():m?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((y,E)=>{let S=this.program.getSourceFileByPath(E);(!S||S.resolvedPath!==E||!this.isValidGeneratedFileWatcher(o6(S.fileName,this.compilerOptions,this.currentDirectory,this.program.getCommonSourceDirectory(),this.getCanonicalFileName),y))&&(Rf(y),this.generatedFilesMap.delete(E))})}this.languageServiceEnabled&&this.projectService.serverMode===0&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||i&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&i&&this.program&&uh(this.changedFilesForExportMapCache,m=>{let y=i.getSourceFileByPath(m),E=this.program.getSourceFileByPath(m);return!y||!E?(this.exportMapCache.clear(),!0):this.exportMapCache.onFileChanged(y,E,!!this.getTypeAcquisition().enable)})),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());let p=this.externalFiles||_c;this.externalFiles=this.getExternalFiles(),TW(this.externalFiles,p,bx(!this.useCaseSensitiveFileNames()),m=>{let y=this.projectService.getOrCreateScriptInfoNotOpenedByClient(m,this.currentDirectory,this.directoryStructureHost);y?.attachToProject(this)},m=>this.detachScriptInfoFromProject(m));let h=Ks()-o;return this.sendPerformanceEvent("UpdateGraph",h),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${d}${this.program?` structureIsReused:: ${LW[this.program.structureIsReused]}`:""} Elapsed: ${h}ms`),this.projectService.logger.isTestLogger?this.program!==i?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==i&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),d}sendPerformanceEvent(t,r){this.projectService.sendPerformanceEvent(t,r)}detachScriptInfoFromProject(t,r,i){let o=this.projectService.getScriptInfo(t);o&&(o.detachFromProject(this),r||this.resolutionCache.removeResolutionsOfFile(o.path,i))}addMissingFileWatcher(t,r){var i;if(LE(this)){let s=this.projectService.configFileExistenceInfoCache.get(t);if((i=s?.config)!=null&&i.projects.has(this.canonicalConfigFilePath))return rD}let o=this.projectService.watchFactory.watchFile(_o(r,this.currentDirectory),(s,l)=>{LE(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(s,t,l),l===0&&this.missingFilesMap.has(t)&&(this.missingFilesMap.delete(t),o.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))},500,this.projectService.getWatchOptions(this),Lc.MissingFile,this);return o}isWatchedMissingFile(t){return!!this.missingFilesMap&&this.missingFilesMap.has(t)}addGeneratedFileWatch(t,r){if(Rs(this.compilerOptions))this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(t));else{let i=this.toPath(r);if(this.generatedFilesMap){if(yhe(this.generatedFilesMap)){R.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);return}if(this.generatedFilesMap.has(i))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(i,this.createGeneratedFileWatcher(t))}}createGeneratedFileWatcher(t){return{generatedFilePath:this.toPath(t),watcher:this.projectService.watchFactory.watchFile(t,()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)},2e3,this.projectService.getWatchOptions(this),Lc.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(t,r){return this.toPath(t)===r.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(yhe(this.generatedFilesMap)?Rf(this.generatedFilesMap):$u(this.generatedFilesMap,Rf),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(t){let r=this.projectService.getScriptInfoForPath(this.toPath(t));return r&&!r.isAttached(this)?$y.ThrowProjectDoesNotContainDocument(t,this):r}getScriptInfo(t){return this.projectService.getScriptInfo(t)}filesToString(t){return this.filesToStringWorker(t,!0,!1)}filesToStringWorker(t,r,i){if(this.isInitialLoadPending())return` Files (0) InitialLoadPending `;if(!this.program)return` Files (0) NoProgram `;let o=this.program.getSourceFiles(),s=` Files (${o.length}) `;if(t){for(let l of o)s+=` ${l.fileName}${i?` ${l.version} ${JSON.stringify(l.text)}`:""} `;r&&(s+=` `,kJ(this.program,l=>s+=` ${l} -`))}return s}print(t,r,i){var o;this.writeLog(`Project '${this.projectName}' (${yM[this.projectKind]})`),this.writeLog(this.filesToStringWorker(t&&this.projectService.logger.hasLevel(3),r&&this.projectService.logger.hasLevel(3),i&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1),(o=this.noDtsResolutionProject)==null||o.print(!1,!1,!1)}setCompilerOptions(t){var r;if(t){t.allowNonTsExtensions=!0;let i=this.compilerOptions;this.compilerOptions=t,this.setInternalCompilerOptionsForEmittingJsFiles(),(r=this.noDtsResolutionProject)==null||r.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),yF(i,t)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(t){this.watchOptions=t}getWatchOptions(){return this.watchOptions}setTypeAcquisition(t){t&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(t))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(t,r){var i,o;let s=r?p=>Wo(p.entries(),([h,m])=>({fileName:h,isSourceOfProjectReferenceRedirect:m})):p=>Wo(p.keys());this.isInitialLoadPending()||zp(this);let l={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:PD(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},d=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&t===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!d)return{info:l,projectErrors:this.getGlobalProjectErrors()};let p=this.lastReportedFileNames,h=((i=this.externalFiles)==null?void 0:i.map(N=>({fileName:dl(N),isSourceOfProjectReferenceRedirect:!1})))||_c,m=_0(this.getFileNamesWithRedirectInfo(!!r).concat(h),N=>N.fileName,N=>N.isSourceOfProjectReferenceRedirect),y=new Map,E=new Map,S=d?Wo(d.keys()):[],A=[];return Gc(m,(N,D)=>{p.has(D)?r&&N!==p.get(D)&&A.push({fileName:D,isSourceOfProjectReferenceRedirect:N}):y.set(D,N)}),Gc(p,(N,D)=>{m.has(D)||E.set(D,N)}),this.lastReportedFileNames=m,this.lastReportedVersion=this.projectProgramVersion,{info:l,changes:{added:s(y),removed:s(E),updated:r?S.map(N=>({fileName:N,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(N)})):S,updatedRedirects:r?A:void 0},projectErrors:this.getGlobalProjectErrors()}}else{let p=this.getFileNamesWithRedirectInfo(!!r),h=((o=this.externalFiles)==null?void 0:o.map(y=>({fileName:dl(y),isSourceOfProjectReferenceRedirect:!1})))||_c,m=p.concat(h);return this.lastReportedFileNames=_0(m,y=>y.fileName,y=>y.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:l,files:r?m:m.map(y=>y.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(t){Tx(this.rootFiles,t),this.rootFilesMap.delete(t.path)}isSourceOfProjectReferenceRedirect(t){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(t)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,Yr(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(t){if(!this.projectService.globalPlugins.length)return;let r=this.projectService.host;if(!r.require&&!r.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}let i=this.getGlobalPluginSearchPaths();for(let o of this.projectService.globalPlugins)o&&(t.plugins&&t.plugins.some(s=>s.name===o)||(this.projectService.logger.info(`Loading global plugin ${o}`),this.enablePlugin({name:o,global:!0},i)))}enablePlugin(t,r){this.projectService.requestEnablePlugin(this,t,r)}enableProxy(t,r){try{if(typeof t!="function"){this.projectService.logger.info(`Skipped loading plugin ${r.name} because it did not expose a proper factory function`);return}let i={config:r,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},o=t({typescript:qke}),s=o.create(i);for(let l of Object.keys(this.languageService))l in s||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${l} in created LS. Patching.`),s[l]=this.languageService[l]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=s,this.plugins.push({name:r.name,module:o})}catch(i){this.projectService.logger.info(`Plugin activation failed: ${i}`)}}onPluginConfigurationChanged(t,r){this.plugins.filter(i=>i.name===t).forEach(i=>{i.module.onConfigurationChanged&&i.module.onConfigurationChanged(r)})}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(t,r){return this.projectService.serverMode!==0?_c:this.projectService.getPackageJsonsVisibleToFile(t,this,r)}getNearestAncestorDirectoryWithPackageJson(t){return this.projectService.getNearestAncestorDirectoryWithPackageJson(t)}getPackageJsonsForAutoImport(t){return this.getPackageJsonsVisibleToFile(Yr(this.currentDirectory,tD),t)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=bX(this))}clearCachedExportInfoMap(){var t;(t=this.exportMapCache)==null||t.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||uO(this.currentDirectory)||!this.isDefaultProjectForOpenFiles()?0:this.projectService.includePackageJsonAutoImports()}getHostForAutoImportProvider(){var t,r;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||((t=this.projectService.host.realpath)==null?void 0:t.bind(this.projectService.host)),getCurrentDirectory:this.getCurrentDirectory.bind(this),readFile:this.projectService.host.readFile.bind(this.projectService.host),getDirectories:this.projectService.host.getDirectories.bind(this.projectService.host),trace:(r=this.projectService.host.trace)==null?void 0:r.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var t,r,i;if(this.autoImportProviderHost===!1)return;if(this.projectService.serverMode!==0){this.autoImportProviderHost=!1;return}if(this.autoImportProviderHost){if(zp(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()){this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0;return}return this.autoImportProviderHost.getCurrentProgram()}let o=this.includePackageJsonAutoImports();if(o){(t=rr)==null||t.push(rr.Phase.Session,"getPackageJsonAutoImportProvider");let s=Hs();if(this.autoImportProviderHost=JQ.create(o,this,this.getHostForAutoImportProvider(),this.documentRegistry),this.autoImportProviderHost)return zp(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",Hs()-s),(r=rr)==null||r.pop(),this.autoImportProviderHost.getCurrentProgram();(i=rr)==null||i.pop()}}isDefaultProjectForOpenFiles(){return!!Gc(this.projectService.openFiles,(t,r)=>this.projectService.tryGetDefaultProjectForFile(dl(r))===this)}watchNodeModulesForPackageJsonChanges(t){return this.projectService.watchPackageJsonsInNodeModules(t,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(t){return x.assert(this.projectService.serverMode===0),this.noDtsResolutionProject||(this.noDtsResolutionProject=new HQ(this.projectService,this.documentRegistry,this.getCompilerOptionsForNoDtsResolutionProject(),this.currentDirectory)),this.noDtsResolutionProject.rootFile!==t&&(this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[t]),this.noDtsResolutionProject.rootFile=t),this.noDtsResolutionProject}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:Xe,lib:Xe,noLib:!0}}},UQ=class extends rA{constructor(e,t,r,i,o,s,l){super(e.newInferredProjectName(),0,e,t,void 0,void 0,r,!1,i,e.host,s),this._isJsInferredProject=!1,this.typeAcquisition=l,this.projectRootPath=o&&e.toCanonicalFileName(o),!o&&!e.useSingleInferredProject&&(this.canonicalCurrentDirectory=e.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(e){e!==this._isJsInferredProject&&(this._isJsInferredProject=e,this.setCompilerOptions())}setCompilerOptions(e){if(!e&&!this.getCompilationSettings())return;let t=wq(e||this.getCompilationSettings());this._isJsInferredProject&&typeof t.maxNodeModuleJsDepth!="number"?t.maxNodeModuleJsDepth=2:this._isJsInferredProject||(t.maxNodeModuleJsDepth=void 0),t.allowJs=!0,super.setCompilerOptions(t)}addRoot(e){x.assert(e.isScriptOpen()),this.projectService.startWatchingConfigFilesForInferredProjectRoot(e),!this._isJsInferredProject&&e.isJavaScript()?this.toggleJsInferredProject(!0):this.isOrphan()&&this._isJsInferredProject&&!e.isJavaScript()&&this.toggleJsInferredProject(!1),super.addRoot(e)}removeRoot(e){this.projectService.stopWatchingConfigFilesForInferredProjectRoot(e),super.removeRoot(e),!this.isOrphan()&&this._isJsInferredProject&&e.isJavaScript()&&oo(this.getRootScriptInfos(),t=>!t.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||this.getRootScriptInfos().length===1}close(){gn(this.getRootScriptInfos(),e=>this.projectService.stopWatchingConfigFilesForInferredProjectRoot(e)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:dhe(this),include:Xe,exclude:Xe}}},HQ=class extends rA{constructor(e,t,r,i){super(e.newAuxiliaryProjectName(),4,e,t,!1,void 0,r,!1,void 0,e.host,i)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},KQ=class Sbe extends rA{constructor(t,r,i,o){super(t.projectService.newAutoImportProviderProjectName(),3,t.projectService,i,!1,void 0,o,!1,t.getWatchOptions(),t.projectService.host,t.currentDirectory),this.hostProject=t,this.rootFileNames=r,this.useSourceOfProjectReferenceRedirect=ta(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=ta(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(t,r,i,o){var s,l;if(!t)return Xe;let d=r.getCurrentProgram();if(!d)return Xe;let p=Hs(),h,m,y=Yr(r.currentDirectory,tD),E=r.getPackageJsonsForAutoImport(Yr(r.currentDirectory,y));for(let D of E)(s=D.dependencies)==null||s.forEach((w,j)=>A(j)),(l=D.peerDependencies)==null||l.forEach((w,j)=>A(j));let S=0;if(h){let D=r.getSymlinkCache();for(let w of Wo(h.keys())){if(t===2&&S>this.maxDependencies)return r.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),Xe;let j=eK(w,r.currentDirectory,o,i,d.getModuleResolutionCache());if(j){let Y=N(j,d,D);if(Y){m=Eo(m,Y),S+=Y.length?1:0;continue}}if(!gn([r.currentDirectory,r.getGlobalTypingsCacheLocation()],Y=>{if(Y){let B=eK(`@types/${w}`,Y,o,i,d.getModuleResolutionCache());if(B){let ce=N(B,d,D);return m=Eo(m,ce),S+=ce?.length?1:0,!0}}})&&j&&o.allowJs&&o.maxNodeModuleJsDepth){let Y=N(j,d,D,!0);m=Eo(m,Y),S+=Y?.length?1:0}}}return m?.length&&r.log(`AutoImportProviderProject: found ${m.length} root files in ${S} dependencies in ${Hs()-p} ms`),m||Xe;function A(D){ao(D,"@types/")||(h||(h=new Set)).add(D)}function N(D,w,j,K){var Y;let B=sK(D,o,i,w.getModuleResolutionCache(),K);if(B){let ce=(Y=i.realpath)==null?void 0:Y.call(i,D.packageDirectory),z=ce?r.toPath(ce):void 0,Z=z&&z!==r.toPath(D.packageDirectory);return Z&&j.setSymlinkedDirectory(D.packageDirectory,{real:Bc(ce),realPath:Bc(z)}),to(B,me=>{let ge=Z?me.replace(D.packageDirectory,ce):me;if(!w.getSourceFile(ge)&&!(Z&&w.getSourceFile(me)))return ge})}}}static create(t,r,i,o){if(t===0)return;let s={...r.getCompilerOptions(),...this.compilerOptionsOverrides},l=this.getRootFileNames(t,r,i,s);if(l.length)return new Sbe(r,l,o,s)}isEmpty(){return!gt(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=Sbe.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this,t),this.rootFileNames=t;let r=this.getCurrentProgram(),i=super.updateGraph();return r&&r!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),i}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var t;return!!((t=this.rootFileNames)!=null&&t.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||Xe}getLanguageService(){throw new Error("AutoImportProviderProject language service should never be used. To get the program, use `project.getCurrentProgram()`.")}onAutoImportProviderSettingsChanged(){throw new Error("AutoImportProviderProject is an auto import provider; use `markAsDirty()` instead.")}onPackageJsonChange(){throw new Error("package.json changes should be notified on an AutoImportProvider's host project")}getHostForAutoImportProvider(){throw new Error("AutoImportProviderProject cannot provide its own host; use `hostProject.getModuleResolutionHostForAutomImportProvider()` instead.")}getProjectReferences(){return this.hostProject.getProjectReferences()}includePackageJsonAutoImports(){return 0}getSymlinkCache(){return this.hostProject.getSymlinkCache()}getModuleResolutionCache(){var t;return(t=this.hostProject.getCurrentProgram())==null?void 0:t.getModuleResolutionCache()}},KQ.maxDependencies=10,KQ.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:Xe,lib:Xe,noLib:!0},JQ=KQ,qQ=class extends rA{constructor(e,t,r,i,o){super(e,1,r,i,!1,void 0,{},!1,void 0,o,oi(e)),this.canonicalConfigFilePath=t,this.openFileWatchTriggered=new Map,this.canConfigFileJsonReportNoInputFiles=!1,this.externalProjectRefCount=0,this.isInitialLoadPending=Sy,this.sendLoadingProjectFinish=!1}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){let t=ma(e),r=this.projectService.toCanonicalFileName(t),i=this.projectService.configFileExistenceInfoCache.get(r);return i||this.projectService.configFileExistenceInfoCache.set(r,i={exists:this.projectService.host.fileExists(t)}),this.projectService.ensureParsedConfigUptoDate(t,r,i,this),this.languageServiceEnabled&&this.projectService.serverMode===0&&this.projectService.watchWildcards(t,i,this),i.exists?i.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(e){this.releaseParsedConfig(this.projectService.toCanonicalFileName(ma(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){let e=this.isInitialLoadPending();this.isInitialLoadPending=Vm;let t=this.pendingUpdateLevel;this.pendingUpdateLevel=0;let r;switch(t){case 1:this.openFileWatchTriggered.clear(),r=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();let i=x.checkDefined(this.pendingUpdateReason);this.pendingUpdateReason=void 0,this.projectService.reloadConfiguredProject(this,i,e,!1),r=!0;break;default:r=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),r}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(e){this.projectReferences=e,this.potentialProjectReferences=void 0}setPotentialProjectReference(e){x.assert(this.isInitialLoadPending()),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getResolvedProjectReferenceToRedirect(e){let t=this.getCurrentProgram();return t&&t.getResolvedProjectReferenceToRedirect(e)}forEachResolvedProjectReference(e){var t;return(t=this.getCurrentProgram())==null?void 0:t.forEachResolvedProjectReference(e)}enablePluginsWithOptions(e){var t;if(this.plugins.length=0,!((t=e.plugins)!=null&&t.length)&&!this.projectService.globalPlugins.length)return;let r=this.projectService.host;if(!r.require&&!r.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}let i=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){let o=oi(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${o} to search paths`),i.unshift(o)}if(e.plugins)for(let o of e.plugins)this.enablePlugin(o,i);return this.enableGlobalPlugins(e)}getGlobalProjectErrors(){return jr(this.projectErrors,e=>!e.file)||_c}getAllProjectErrors(){return this.projectErrors||_c}setProjectErrors(e){this.projectErrors=e}close(){this.projectService.configFileExistenceInfoCache.forEach((e,t)=>this.releaseParsedConfig(t)),this.projectErrors=void 0,this.openFileWatchTriggered.clear(),this.compilerHost=void 0,super.close()}addExternalProjectReference(){this.externalProjectRefCount++}deleteExternalProjectReference(){this.externalProjectRefCount--}isSolution(){return this.getRootFilesMap().size===0&&!this.canConfigFileJsonReportNoInputFiles}getDefaultChildProjectFromProjectWithReferences(e){return LD(this,e.path,t=>M1(t,e)?t:void 0,0)}hasOpenRef(){var e;if(this.externalProjectRefCount)return!0;if(this.isClosed())return!1;let t=this.projectService.configFileExistenceInfoCache.get(this.canonicalConfigFilePath);return this.projectService.hasPendingProjectUpdate(this)?!!((e=t.openFilesImpactedByConfigFile)!=null&&e.size):!!t.openFilesImpactedByConfigFile&&Gc(t.openFilesImpactedByConfigFile,(r,i)=>{let o=this.projectService.getScriptInfoForPath(i);return this.containsScriptInfo(o)||!!LD(this,o.path,s=>s.containsScriptInfo(o),0)})||!1}hasExternalProjectRef(){return!!this.externalProjectRefCount}getEffectiveTypeRoots(){return xP(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){s3(e,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,this.canConfigFileJsonReportNoInputFiles)}},RB=class extends rA{constructor(e,t,r,i,o,s,l,d){super(e,2,t,r,!0,o,i,s,d,t.host,oi(l||Pd(e))),this.externalProjectName=e,this.compileOnSaveEnabled=s,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){let e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}}}});function Rke(e){let t=new Map;for(let r of e)if(typeof r.type=="object"){let i=r.type;i.forEach(o=>{x.assert(typeof o=="number")}),t.set(r.name,i)}return t}function MD(e){return No(e.indentStyle)&&(e.indentStyle=wke.get(e.indentStyle.toLowerCase()),x.assert(e.indentStyle!==void 0)),e}function DB(e){return Lke.forEach((t,r)=>{let i=e[r];No(i)&&(e[r]=t.get(i.toLowerCase()))}),e}function r8(e,t){let r,i;return jR.forEach(o=>{let s=e[o.name];if(s===void 0)return;let l=kke.get(o.name);(r||(r={}))[o.name]=l?No(s)?l.get(s.toLowerCase()):s:VT(o,s,t||"",i||(i=[]))}),r&&{watchOptions:r,errors:i}}function mhe(e){let t;return sw.forEach(r=>{let i=e[r.name];i!==void 0&&((t||(t={}))[r.name]=i)}),t}function XQ(e){return No(e)?YQ(e):e}function YQ(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function _he(e){let{lazyConfiguredProjectsFromExternalProject:t,...r}=e;return r}function Dke(e,t){for(let r of t)if(r.getProjectName()===e)return r}function $Q(e){return!!e.containingProjects}function Cke(e){return!!e.configFileInfo}function LD(e,t,r,i,o){var s;let l=(s=e.getCurrentProgram())==null?void 0:s.getResolvedProjectReferences();if(!l)return;let d,p=t?e.getResolvedProjectReferenceToRedirect(t):void 0;if(p){let m=dl(p.sourceFile.fileName),y=e.projectService.findConfiguredProjectByProjectName(m);if(y){let E=r(y);if(E)return E}else if(i!==0){d=new Map;let E=hhe(l,e.getCompilerOptions(),(S,A)=>p===S?h(S,A):void 0,i,e.projectService,d);if(E)return E;d.clear()}}return hhe(l,e.getCompilerOptions(),(m,y)=>p!==m?h(m,y):void 0,i,e.projectService,d);function h(m,y){let E=dl(m.sourceFile.fileName),S=e.projectService.findConfiguredProjectByProjectName(E)||(y===0?void 0:y===1?e.projectService.createConfiguredProject(E):y===2?e.projectService.createAndLoadConfiguredProject(E,o):x.assertNever(y));return S&&r(S)}}function hhe(e,t,r,i,o,s){let l=t.disableReferencedProjectLoad?0:i;return gn(e,d=>{if(!d)return;let p=dl(d.sourceFile.fileName),h=o.toCanonicalFileName(p),m=s?.get(h);if(m!==void 0&&m>=l)return;let y=r(d,l);return y||((s||(s=new Map)).set(h,l),d.references&&hhe(d.references,d.commandLine.options,r,l,o,s))})}function Nke(e,t){return e.potentialProjectReferences&&dh(e.potentialProjectReferences,t)}function Zit(e,t,r,i){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.isInitialLoadPending()?Nke(e,i):gn(e.getProjectReferences(),r)}function ghe(e,t,r){let i=r&&e.projectService.configuredProjects.get(r);return i&&t(i)}function Pke(e,t){return Zit(e,r=>ghe(e,t,r.sourceFile.path),r=>ghe(e,t,e.toPath(eD(r))),r=>ghe(e,t,r))}function eot(e,t){return`${No(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function Mke(e){return!e.isScriptOpen()&&e.mTime!==void 0}function M1(e,t){return e.containsScriptInfo(t)&&!e.isSourceOfProjectReferenceRedirect(t.path)}function zp(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&e.updateGraph()}function yhe(e){ME(e)&&(e.projectOptions=!0)}function vhe(e){let t=1;return()=>e(t++)}function bhe(){return{idToCallbacks:new Map,pathToId:new Map}}function tot(e,t){if(!t||!e.eventHandler||!e.session)return;let r=bhe(),i=bhe(),o=bhe(),s=1;return e.session.addProtocolHandler("watchChange",S=>(h(S.arguments),{responseRequired:!1})),{watchFile:l,watchDirectory:d,getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function l(S,A){return p(r,S,A,N=>({eventName:WB,data:{id:N,path:S}}))}function d(S,A,N){return p(N?o:i,S,A,D=>({eventName:FB,data:{id:D,path:S,recursive:!!N,ignoreUpdate:S.endsWith("/node_modules")?void 0:!0}}))}function p({pathToId:S,idToCallbacks:A},N,D,w){let j=e.toPath(N),K=S.get(j);K||S.set(j,K=s++);let Y=A.get(K);return Y||(A.set(K,Y=new Set),e.eventHandler(w(K))),Y.add(D),{close(){let B=A.get(K);B?.delete(D)&&(B.size||(A.delete(K),S.delete(j),e.eventHandler({eventName:zB,data:{id:K}})))}}}function h(S){To(S)?S.forEach(m):m(S)}function m({id:S,created:A,deleted:N,updated:D}){y(S,A,0),y(S,N,2),y(S,D,1)}function y(S,A,N){A?.length&&(E(r,S,A,(D,w)=>D(w,N)),E(i,S,A,(D,w)=>D(w)),E(o,S,A,(D,w)=>D(w)))}function E(S,A,N,D){var w;(w=S.idToCallbacks.get(A))==null||w.forEach(j=>{N.forEach(K=>D(j,Pd(K)))})}}function not(){let e;return{get(){return e},set(t){e=t},clear(){e=void 0}}}function Ehe(e){return e.kind!==void 0}function She(e){e.print(!1,!1,!1)}var CB,NB,i8,PB,MB,LB,kB,wB,OB,QQ,WB,FB,zB,The,Lke,kke,wke,ZQ,BB,GB,eZ,tZ,Ahe,nZ,rot=bt({"src/server/editorServices.ts"(){"use strict";ib(),iA(),lhe(),CB=20*1024*1024,NB=4*1024*1024,i8="projectsUpdatedInBackground",PB="projectLoadingStart",MB="projectLoadingFinish",LB="largeFileReferenced",kB="configFileDiag",wB="projectLanguageServiceState",OB="projectInfo",QQ="openFileInfo",WB="createFileWatcher",FB="createDirectoryWatcher",zB="closeFileWatcher",The="*ensureProjectForOpenFiles*",Lke=Rke(og),kke=Rke(jR),wke=new Map(Object.entries({none:0,block:1,smart:2})),ZQ={jquery:{match:/jquery(-[\d.]+)?(\.intellisense)?(\.min)?\.js$/i,types:["jquery"]},WinJS:{match:/^(.*\/winjs-[.\d]+)\/js\/base\.js$/i,exclude:[["^",1,"/.*"]],types:["winjs"]},Kendo:{match:/^(.*\/kendo(-ui)?)\/kendo\.all(\.min)?\.js$/i,exclude:[["^",1,"/.*"]],types:["kendo-ui"]},"Office Nuget":{match:/^(.*\/office\/1)\/excel-\d+\.debug\.js$/i,exclude:[["^",1,"/.*"]],types:["office"]},References:{match:/^(.*\/_references\.js)$/i,exclude:[["^",1,"$"]]}},BB={getFileName:e=>e,getScriptKind:(e,t)=>{let r;if(t){let i=Cx(e);i&>(t,o=>o.extension===i?(r=o.scriptKind,!0):!1)}return r},hasMixedContent:(e,t)=>gt(t,r=>r.isMixedContent&&Sl(e,r.extension))},GB={getFileName:e=>e.fileName,getScriptKind:e=>XQ(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent},eZ={close:qa},tZ=(e=>(e[e.Find=0]="Find",e[e.FindCreate=1]="FindCreate",e[e.FindCreateLoad=2]="FindCreateLoad",e))(tZ||{}),Ahe=class Tbe{constructor(t){this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Map,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=vhe(H_e),this.newAutoImportProviderProjectName=vhe(K_e),this.newAuxiliaryProjectName=vhe(J_e),this.openFiles=new Map,this.configFileForOpenFiles=new Map,this.openFilesWithNonRootedDiskPath=new Map,this.compilerOptionsForInferredProjectsPerProjectRoot=new Map,this.watchOptionsForInferredProjectsPerProjectRoot=new Map,this.typeAcquisitionForInferredProjectsPerProjectRoot=new Map,this.projectToSizeMap=new Map,this.configFileExistenceInfoCache=new Map,this.safelist=ZQ,this.legacySafelist=new Map,this.pendingProjectUpdates=new Map,this.pendingEnsureProjectForOpenFiles=!1,this.seenProjects=new Map,this.sharedExtendedConfigFileWatchers=new Map,this.extendedConfigCache=new Map,this.baseline=qa,this.verifyDocumentRegistry=qa,this.verifyProgram=qa,this.onProjectCreation=qa;var r;this.host=t.host,this.logger=t.logger,this.cancellationToken=t.cancellationToken,this.useSingleInferredProject=t.useSingleInferredProject,this.useInferredProjectPerProjectRoot=t.useInferredProjectPerProjectRoot,this.typingsInstaller=t.typingsInstaller||xB,this.throttleWaitMilliseconds=t.throttleWaitMilliseconds,this.eventHandler=t.eventHandler,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.globalPlugins=t.globalPlugins||_c,this.pluginProbeLocations=t.pluginProbeLocations||_c,this.allowLocalPluginLoads=!!t.allowLocalPluginLoads,this.typesMapLocation=t.typesMapLocation===void 0?Yr(oi(this.getExecutingFilePath()),"typesMap.json"):t.typesMapLocation,this.session=t.session,this.jsDocParsingMode=t.jsDocParsingMode,t.serverMode!==void 0?this.serverMode=t.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=qp()),this.currentDirectory=dl(this.host.getCurrentDirectory()),this.toCanonicalFileName=Nd(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?Bc(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new WQ(this.host,this.logger),this.typesMapLocation?this.loadTypesMap():this.logger.info("No types map provided; using the default"),this.typingsInstaller.attach(this),this.typingsCache=new VQ(this.typingsInstaller),this.hostConfiguration={formatCodeOptions:Cz(this.host.newLine),preferences:Cf,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=RX(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);let i=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,o=i!==0?s=>this.logger.info(s):qa;this.packageJsonCache=xhe(this),this.watchFactory=this.serverMode!==0?{watchFile:oD,watchDirectory:oD}:ZK(tot(this,t.canUseWatchEvents)||this.host,i,o,eot),(r=t.incrementalVerifier)==null||r.call(t,this)}toPath(t){return tl(t,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(t){return ho(t,this.host.getCurrentDirectory())}setDocument(t,r,i){let o=x.checkDefined(this.getScriptInfoForPath(r));o.cacheSourceFile={key:t,sourceFile:i}}getDocument(t,r){let i=this.getScriptInfoForPath(r);return i&&i.cacheSourceFile&&i.cacheSourceFile.key===t?i.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(t,r){if(!this.eventHandler)return;let i={eventName:wB,data:{project:t,languageServiceEnabled:r}};this.eventHandler(i)}loadTypesMap(){try{let t=this.host.readFile(this.typesMapLocation);if(t===void 0){this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);return}let r=JSON.parse(t);for(let i of Object.keys(r.typesMap))r.typesMap[i].match=new RegExp(r.typesMap[i].match,"i");this.safelist=r.typesMap;for(let i in r.simpleMap)Ss(r.simpleMap,i)&&this.legacySafelist.set(i,r.simpleMap[i].toLowerCase())}catch(t){this.logger.info(`Error loading types map: ${t}`),this.safelist=ZQ,this.legacySafelist.clear()}}updateTypingsForProject(t){let r=this.findProject(t.projectName);if(r)switch(t.kind){case Fw:r.updateTypingFiles(this.typingsCache.updateTypingsForProject(t.projectName,t.compilerOptions,t.typeAcquisition,t.unresolvedImports,t.typings));return;case zw:this.typingsCache.enqueueInstallTypingsForProject(r,r.lastCachedUnresolvedImportsList,!0);return}}watchTypingLocations(t){var r;(r=this.findProject(t.projectName))==null||r.watchTypingLocations(t.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(The,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(t){if(t.markAsDirty(),n8(t))return;let r=t.getProjectName();this.pendingProjectUpdates.set(r,t),this.throttledOperations.schedule(r,250,()=>{this.pendingProjectUpdates.delete(r)&&zp(t)})}hasPendingProjectUpdate(t){return this.pendingProjectUpdates.has(t.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;let t={eventName:i8,data:{openFiles:Wo(this.openFiles.keys(),r=>this.getScriptInfoForPath(r).fileName)}};this.eventHandler(t)}sendLargeFileReferencedEvent(t,r){if(!this.eventHandler)return;let i={eventName:LB,data:{file:t,fileSize:r,maxFileSize:NB}};this.eventHandler(i)}sendProjectLoadingStartEvent(t,r){if(!this.eventHandler)return;t.sendLoadingProjectFinish=!0;let i={eventName:PB,data:{project:t,reason:r}};this.eventHandler(i)}sendProjectLoadingFinishEvent(t){if(!this.eventHandler||!t.sendLoadingProjectFinish)return;t.sendLoadingProjectFinish=!1;let r={eventName:MB,data:{project:t}};this.eventHandler(r)}sendPerformanceEvent(t,r){this.performanceEventHandler&&this.performanceEventHandler({kind:t,durationMs:r})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(t){this.delayUpdateProjectGraph(t),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(t,r){if(t.length){for(let i of t)r&&i.clearSourceMapperCache(),this.delayUpdateProjectGraph(i);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(t,r){x.assert(r===void 0||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");let i=DB(t),o=r8(t,r),s=mhe(t);i.allowNonTsExtensions=!0;let l=r&&this.toCanonicalFileName(r);l?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(l,i),this.watchOptionsForInferredProjectsPerProjectRoot.set(l,o||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(l,s)):(this.compilerOptionsForInferredProjects=i,this.watchOptionsForInferredProjects=o,this.typeAcquisitionForInferredProjects=s);for(let d of this.inferredProjects)(l?d.projectRootPath===l:!d.projectRootPath||!this.compilerOptionsForInferredProjectsPerProjectRoot.has(d.projectRootPath))&&(d.setCompilerOptions(i),d.setTypeAcquisition(s),d.setWatchOptions(o?.watchOptions),d.setProjectErrors(o?.errors),d.compileOnSaveEnabled=i.compileOnSave,d.markAsDirty(),this.delayUpdateProjectGraph(d));this.delayEnsureProjectForOpenFiles()}findProject(t){if(t!==void 0)return U_e(t)?Dke(t,this.inferredProjects):this.findExternalProjectByProjectName(t)||this.findConfiguredProjectByProjectName(dl(t))}forEachProject(t){this.externalProjects.forEach(t),this.configuredProjects.forEach(t),this.inferredProjects.forEach(t)}forEachEnabledProject(t){this.forEachProject(r=>{!r.isOrphan()&&r.languageServiceEnabled&&t(r)})}getDefaultProjectForFile(t,r){return r?this.ensureDefaultProjectForFile(t):this.tryGetDefaultProjectForFile(t)}tryGetDefaultProjectForFile(t){let r=No(t)?this.getScriptInfoForNormalizedPath(t):t;return r&&!r.isOrphan()?r.getDefaultProject():void 0}ensureDefaultProjectForFile(t){return this.tryGetDefaultProjectForFile(t)||this.doEnsureDefaultProjectForFile(t)}doEnsureDefaultProjectForFile(t){this.ensureProjectStructuresUptoDate();let r=No(t)?this.getScriptInfoForNormalizedPath(t):t;return r?r.getDefaultProject():(this.logErrorForScriptInfoNotFound(No(t)?t:t.fileName),Yy.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(t){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(t)}ensureProjectStructuresUptoDate(){let t=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();let r=i=>{t=zp(i)||t};this.externalProjects.forEach(r),this.configuredProjects.forEach(r),this.inferredProjects.forEach(r),t&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(t){let r=this.getScriptInfoForNormalizedPath(t);return r&&r.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(t){let r=this.getScriptInfoForNormalizedPath(t);return{...this.hostConfiguration.preferences,...r&&r.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(t,r){r===2?this.handleDeletedFile(t):t.isScriptOpen()||(t.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(t.containingProjects,!1),this.handleSourceMapProjects(t))}handleSourceMapProjects(t){if(t.sourceMapFilePath)if(No(t.sourceMapFilePath)){let r=this.getScriptInfoForPath(t.sourceMapFilePath);this.delayUpdateSourceInfoProjects(r&&r.sourceInfos)}else this.delayUpdateSourceInfoProjects(t.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(t.sourceInfos),t.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(t.declarationInfoPath)}delayUpdateSourceInfoProjects(t){t&&t.forEach((r,i)=>this.delayUpdateProjectsOfScriptInfoPath(i))}delayUpdateProjectsOfScriptInfoPath(t){let r=this.getScriptInfoForPath(t);r&&this.delayUpdateProjectGraphs(r.containingProjects,!0)}handleDeletedFile(t){if(this.stopWatchingScriptInfo(t),!t.isScriptOpen()){this.deleteScriptInfo(t);let r=t.containingProjects.slice();if(t.detachAllProjects(),this.delayUpdateProjectGraphs(r,!1),this.handleSourceMapProjects(t),t.closeSourceMapFileWatcher(),t.declarationInfoPath){let i=this.getScriptInfoForPath(t.declarationInfoPath);i&&(i.sourceMapFilePath=void 0)}}}watchWildcardDirectory(t,r,i,o){let s=this.watchFactory.watchDirectory(t,d=>{let p=this.toPath(d),h=o.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(d,p);if(nc(p)==="package.json"&&!uO(p)&&(h&&h.fileExists||!h&&this.host.fileExists(d))){let y=this.getNormalizedAbsolutePath(d);this.logger.info(`Config: ${i} Detected new package.json: ${y}`),this.packageJsonCache.addOrUpdate(y,p),this.watchPackageJsonFile(y,p,l)}let m=this.findConfiguredProjectByProjectName(i);Dw({watchedDirPath:this.toPath(t),fileOrDirectory:d,fileOrDirectoryPath:p,configFileName:i,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:o.parsedCommandLine.options,program:m?.getCurrentProgram()||o.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:y=>this.logger.info(y),toPath:y=>this.toPath(y),getScriptKind:m?y=>m.getScriptKind(y):void 0})||(o.updateLevel!==2&&(o.updateLevel=1),o.projects.forEach((y,E)=>{if(!y)return;let S=this.getConfiguredProjectByCanonicalConfigFilePath(E);if(!S)return;let A=m===S?1:0;if(!(S.pendingUpdateLevel!==void 0&&S.pendingUpdateLevel>A))if(this.openFiles.has(p))if(x.checkDefined(this.getScriptInfoForPath(p)).isAttached(S)){let D=Math.max(A,S.openFileWatchTriggered.get(p)||0);S.openFileWatchTriggered.set(p,D)}else S.pendingUpdateLevel=A,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(S);else S.pendingUpdateLevel=A,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(S)}))},r,this.getWatchOptionsFromProjectWatchOptions(o.parsedCommandLine.watchOptions),kc.WildcardDirectory,i),l={packageJsonWatches:void 0,close(){var d;s&&(s.close(),s=void 0,(d=l.packageJsonWatches)==null||d.forEach(p=>{p.projects.delete(l),p.close()}),l.packageJsonWatches=void 0)}};return l}delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,r){let i=this.configFileExistenceInfoCache.get(t);if(!i?.config)return!1;let o=!1;return i.config.updateLevel=2,i.config.projects.forEach((s,l)=>{let d=this.getConfiguredProjectByCanonicalConfigFilePath(l);if(d)if(o=!0,l===t){if(d.isInitialLoadPending())return;d.pendingUpdateLevel=2,d.pendingUpdateReason=r,this.delayUpdateProjectGraph(d)}else d.resolutionCache.removeResolutionsFromProjectReferenceRedirects(this.toPath(t)),this.delayUpdateProjectGraph(d)}),o}onConfigFileChanged(t,r){var i;let o=this.configFileExistenceInfoCache.get(t);if(r===2){o.exists=!1;let s=(i=o.config)!=null&&i.projects.has(t)?this.getConfiguredProjectByCanonicalConfigFilePath(t):void 0;s&&this.removeProject(s)}else o.exists=!0;this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,"Change in config file detected"),this.reloadConfiguredProjectForFiles(o.openFilesImpactedByConfigFile,!1,!0,r!==2?Qs:Sy,"Change in config file detected"),this.delayEnsureProjectForOpenFiles()}removeProject(t){switch(this.logger.info("`remove Project::"),t.print(!0,!0,!1),t.close(),x.shouldAssert(1)&&this.filenameToScriptInfo.forEach(r=>x.assert(!r.isAttached(t),"Found script Info still attached to project",()=>`${t.projectName}: ScriptInfos still attached: ${JSON.stringify(Wo(OC(this.filenameToScriptInfo.values(),i=>i.isAttached(t)?{fileName:i.fileName,projects:i.containingProjects.map(o=>o.projectName),hasMixedContent:i.hasMixedContent}:void 0)),void 0," ")}`)),this.pendingProjectUpdates.delete(t.getProjectName()),t.projectKind){case 2:uI(this.externalProjects,t),this.projectToSizeMap.delete(t.getProjectName());break;case 1:this.configuredProjects.delete(t.canonicalConfigFilePath),this.projectToSizeMap.delete(t.canonicalConfigFilePath);break;case 0:uI(this.inferredProjects,t);break}}assignOrphanScriptInfoToInferredProject(t,r){x.assert(t.isOrphan());let i=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(t.isDynamic?r||this.currentDirectory:oi(cp(t.fileName)?t.fileName:ho(t.fileName,r?this.getNormalizedAbsolutePath(r):this.currentDirectory)));if(i.addRoot(t),t.containingProjects[0]!==i&&(Tx(t.containingProjects,i),t.containingProjects.unshift(i)),i.updateGraph(),!this.useSingleInferredProject&&!i.projectRootPath)for(let o of this.inferredProjects){if(o===i||o.isOrphan())continue;let s=o.getRootScriptInfos();x.assert(s.length===1||!!o.projectRootPath),s.length===1&&gn(s[0].containingProjects,l=>l!==s[0].containingProjects[0]&&!l.isOrphan())&&o.removeFile(s[0],!0,!0)}return i}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach((t,r)=>{let i=this.getScriptInfoForPath(r);i.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(i,t)})}closeOpenFile(t,r){let i=t.isDynamic?!1:this.host.fileExists(t.fileName);t.close(i),this.stopWatchingConfigFilesForClosedScriptInfo(t);let o=this.toCanonicalFileName(t.fileName);this.openFilesWithNonRootedDiskPath.get(o)===t&&this.openFilesWithNonRootedDiskPath.delete(o);let s=!1;for(let l of t.containingProjects){if(ME(l)){t.hasMixedContent&&t.registerFileUpdate();let d=l.openFileWatchTriggered.get(t.path);d!==void 0&&(l.openFileWatchTriggered.delete(t.path),l.pendingUpdateLevel!==void 0&&l.pendingUpdateLevelthis.onConfigFileChanged(r,h),2e3,this.getWatchOptionsFromProjectWatchOptions((s=(o=l?.config)==null?void 0:o.parsedCommandLine)==null?void 0:s.watchOptions),kc.ConfigFile,i));let d=l.config.projects;d.set(i.canonicalConfigFilePath,d.get(i.canonicalConfigFilePath)||!1)}configFileExistenceImpactsRootOfInferredProject(t){return t.openFilesImpactedByConfigFile&&Gc(t.openFilesImpactedByConfigFile,Qs)}releaseParsedConfig(t,r){var i,o,s;let l=this.configFileExistenceInfoCache.get(t);(i=l.config)!=null&&i.projects.delete(r.canonicalConfigFilePath)&&((o=l.config)!=null&&o.projects.size||(l.config=void 0,$K(t,this.sharedExtendedConfigFileWatchers),x.checkDefined(l.watcher),(s=l.openFilesImpactedByConfigFile)!=null&&s.size?this.configFileExistenceImpactsRootOfInferredProject(l)?pz(zc(oi(t)))||(l.watcher.close(),l.watcher=eZ):(l.watcher.close(),l.watcher=void 0):(l.watcher.close(),this.configFileExistenceInfoCache.delete(t))))}closeConfigFileWatcherOnReleaseOfOpenFile(t){t.watcher&&!t.config&&!this.configFileExistenceImpactsRootOfInferredProject(t)&&(t.watcher.close(),t.watcher=void 0)}stopWatchingConfigFilesForClosedScriptInfo(t){x.assert(!t.isScriptOpen()),this.forEachConfigFileLocation(t,r=>{var i,o,s;let l=this.configFileExistenceInfoCache.get(r);if(l){let d=(i=l.openFilesImpactedByConfigFile)==null?void 0:i.get(t.path);(o=l.openFilesImpactedByConfigFile)==null||o.delete(t.path),d&&this.closeConfigFileWatcherOnReleaseOfOpenFile(l),!((s=l.openFilesImpactedByConfigFile)!=null&&s.size)&&!l.config&&(x.assert(!l.watcher),this.configFileExistenceInfoCache.delete(r))}})}startWatchingConfigFilesForInferredProjectRoot(t){x.assert(t.isScriptOpen()),this.forEachConfigFileLocation(t,(r,i)=>{let o=this.configFileExistenceInfoCache.get(r);o||(o={exists:this.host.fileExists(i)},this.configFileExistenceInfoCache.set(r,o)),(o.openFilesImpactedByConfigFile||(o.openFilesImpactedByConfigFile=new Map)).set(t.path,!0),o.watcher||(o.watcher=pz(zc(oi(r)))?this.watchFactory.watchFile(i,(s,l)=>this.onConfigFileChanged(r,l),2e3,this.hostConfiguration.watchOptions,kc.ConfigFileForInferredRoot):eZ)})}stopWatchingConfigFilesForInferredProjectRoot(t){this.forEachConfigFileLocation(t,r=>{var i;let o=this.configFileExistenceInfoCache.get(r);(i=o?.openFilesImpactedByConfigFile)!=null&&i.has(t.path)&&(x.assert(t.isScriptOpen()),o.openFilesImpactedByConfigFile.set(t.path,!1),this.closeConfigFileWatcherOnReleaseOfOpenFile(o))})}forEachConfigFileLocation(t,r){if(this.serverMode!==0)return;x.assert(!$Q(t)||this.openFiles.has(t.path));let i=this.openFiles.get(t.path);if(x.checkDefined(this.getScriptInfo(t.path)).isDynamic)return;let s=oi(t.fileName),l=()=>mm(i,s,this.currentDirectory,!this.host.useCaseSensitiveFileNames),d=!i||!l(),p=!Cke(t);do{if(p){let m=ZO(s,this.currentDirectory,this.toCanonicalFileName),y=Yr(s,"tsconfig.json"),E=r(Yr(m,"tsconfig.json"),y);if(E)return y;let S=Yr(s,"jsconfig.json");if(E=r(Yr(m,"jsconfig.json"),S),E)return S;if(KW(m))break}let h=oi(s);if(h===s)break;s=h,p=!0}while(d||l())}findDefaultConfiguredProject(t){if(!t.isScriptOpen())return;let r=this.getConfigFileNameForFile(t),i=r&&this.findConfiguredProjectByProjectName(r);return i&&M1(i,t)?i:i?.getDefaultChildProjectFromProjectWithReferences(t)}getConfigFileNameForFile(t){if(!Cke(t)){let i=this.configFileForOpenFiles.get(t.path);if(i!==void 0)return i||void 0}this.logger.info(`Search path: ${oi(t.fileName)}`);let r=this.forEachConfigFileLocation(t,(i,o)=>this.configFileExists(o,i,t));return r?this.logger.info(`For info: ${t.fileName} :: Config file name: ${r}`):this.logger.info(`For info: ${t.fileName} :: No config files found.`),$Q(t)&&this.configFileForOpenFiles.set(t.path,r||!1),r}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(She),this.configuredProjects.forEach(She),this.inferredProjects.forEach(She),this.logger.info("Open files: "),this.openFiles.forEach((t,r)=>{let i=this.getScriptInfoForPath(r);this.logger.info(` FileName: ${i.fileName} ProjectRootPath: ${t}`),this.logger.info(` Projects: ${i.containingProjects.map(o=>o.getProjectName())}`)}),this.logger.endGroup())}findConfiguredProjectByProjectName(t){let r=this.toCanonicalFileName(t);return this.getConfiguredProjectByCanonicalConfigFilePath(r)}getConfiguredProjectByCanonicalConfigFilePath(t){return this.configuredProjects.get(t)}findExternalProjectByProjectName(t){return Dke(t,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(t,r,i,o){if(r&&r.disableSizeLimit||!this.host.getFileSize)return;let s=CB;this.projectToSizeMap.set(t,0),this.projectToSizeMap.forEach(d=>s-=d||0);let l=0;for(let d of i){let p=o.getFileName(d);if(!WI(p)&&(l+=this.host.getFileSize(p),l>CB||l>s)){let h=i.map(m=>o.getFileName(m)).filter(m=>!WI(m)).map(m=>({name:m,size:this.host.getFileSize(m)})).sort((m,y)=>y.size-m.size).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${l}). Largest files: ${h.map(m=>`${m.name}:${m.size}`).join(", ")}`),p}}this.projectToSizeMap.set(t,l)}createExternalProject(t,r,i,o,s){let l=DB(i),d=r8(i,oi(Pd(t))),p=new RB(t,this,this.documentRegistry,l,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t,l,r,GB),i.compileOnSave===void 0?!0:i.compileOnSave,void 0,d?.watchOptions);return p.setProjectErrors(d?.errors),p.excludedFiles=s,this.addFilesToNonInferredProject(p,r,GB,o),this.externalProjects.push(p),p}sendProjectTelemetry(t){if(this.seenProjects.has(t.projectName)){yhe(t);return}if(this.seenProjects.set(t.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){yhe(t);return}let r=ME(t)?t.projectOptions:void 0;yhe(t);let i={projectId:this.host.createSHA256Hash(t.projectName),fileStats:t8(t.getScriptInfos(),!0),compilerOptions:ise(t.getCompilationSettings()),typeAcquisition:s(t.getTypeAcquisition()),extends:r&&r.configHasExtendsProperty,files:r&&r.configHasFilesProperty,include:r&&r.configHasIncludeProperty,exclude:r&&r.configHasExcludeProperty,compileOnSave:t.compileOnSaveEnabled,configFileName:o(),projectType:t instanceof RB?"external":"configured",languageServiceEnabled:t.languageServiceEnabled,version:Jp};this.eventHandler({eventName:OB,data:i});function o(){return ME(t)&&OQ(t.getConfigFilePath())||"other"}function s({enable:l,include:d,exclude:p}){return{enable:l,include:d!==void 0&&d.length!==0,exclude:p!==void 0&&p.length!==0}}}addFilesToNonInferredProject(t,r,i,o){this.updateNonInferredProjectFiles(t,r,i),t.setTypeAcquisition(o),t.markAsDirty()}createConfiguredProject(t){var r;(r=rr)==null||r.instant(rr.Phase.Session,"createConfiguredProject",{configFilePath:t}),this.logger.info(`Creating configuration project ${t}`);let i=this.toCanonicalFileName(t),o=this.configFileExistenceInfoCache.get(i);o?o.exists=!0:this.configFileExistenceInfoCache.set(i,o={exists:!0}),o.config||(o.config={cachedDirectoryStructureHost:$3(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});let s=new qQ(t,i,this,this.documentRegistry,o.config.cachedDirectoryStructureHost);return this.configuredProjects.set(i,s),this.createConfigFileWatcherForParsedConfig(t,i,s),s}createConfiguredProjectWithDelayLoad(t,r){let i=this.createConfiguredProject(t);return i.pendingUpdateLevel=2,i.pendingUpdateReason=r,i}createAndLoadConfiguredProject(t,r){let i=this.createConfiguredProject(t);return this.loadConfiguredProject(i,r),i}createLoadAndUpdateConfiguredProject(t,r){let i=this.createAndLoadConfiguredProject(t,r);return i.updateGraph(),i}loadConfiguredProject(t,r){var i,o;(i=rr)==null||i.push(rr.Phase.Session,"loadConfiguredProject",{configFilePath:t.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(t,r);let s=ma(t.getConfigFilePath()),l=this.ensureParsedConfigUptoDate(s,t.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath),t),d=l.config.parsedCommandLine;x.assert(!!d.fileNames);let p=d.options;t.projectOptions||(t.projectOptions={configHasExtendsProperty:d.raw.extends!==void 0,configHasFilesProperty:d.raw.files!==void 0,configHasIncludeProperty:d.raw.include!==void 0,configHasExcludeProperty:d.raw.exclude!==void 0}),t.canConfigFileJsonReportNoInputFiles=SP(d.raw),t.setProjectErrors(d.options.configFile.parseDiagnostics),t.updateReferences(d.projectReferences);let h=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.canonicalConfigFilePath,p,d.fileNames,BB);h?(t.disableLanguageService(h),this.configFileExistenceInfoCache.forEach((y,E)=>this.stopWatchingWildCards(E,t))):(t.setCompilerOptions(p),t.setWatchOptions(d.watchOptions),t.enableLanguageService(),this.watchWildcards(s,l,t)),t.enablePluginsWithOptions(p);let m=d.fileNames.concat(t.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(t,m,BB,p,d.typeAcquisition,d.compileOnSave,d.watchOptions),(o=rr)==null||o.pop()}ensureParsedConfigUptoDate(t,r,i,o){var s,l,d;if(i.config){if(!i.config.updateLevel)return i;if(i.config.updateLevel===1)return this.reloadFileNamesOfParsedConfig(t,i.config),i}let p=((s=i.config)==null?void 0:s.cachedDirectoryStructureHost)||$3(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),h=EP(t,A=>this.host.readFile(A)),m=$k(t,No(h)?h:""),y=m.parseDiagnostics;No(h)||y.push(h);let E=tw(m,p,oi(t),{},t,[],this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);E.errors.length&&y.push(...E.errors),this.logger.info(`Config: ${t} : ${JSON.stringify({rootNames:E.fileNames,options:E.options,watchOptions:E.watchOptions,projectReferences:E.projectReferences},void 0," ")}`);let S=(l=i.config)==null?void 0:l.parsedCommandLine;return i.config?(i.config.parsedCommandLine=E,i.config.watchedDirectoriesStale=!0,i.config.updateLevel=void 0):i.config={parsedCommandLine:E,cachedDirectoryStructureHost:p,projects:new Map},!S&&!W6(this.getWatchOptionsFromProjectWatchOptions(void 0),this.getWatchOptionsFromProjectWatchOptions(E.watchOptions))&&((d=i.watcher)==null||d.close(),i.watcher=void 0),this.createConfigFileWatcherForParsedConfig(t,r,o),Q3(r,E.options,this.sharedExtendedConfigFileWatchers,(A,N)=>this.watchFactory.watchFile(A,()=>{var D;Z3(this.extendedConfigCache,N,j=>this.toPath(j));let w=!1;(D=this.sharedExtendedConfigFileWatchers.get(N))==null||D.projects.forEach(j=>{w=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(j,`Change in extended config file ${A} detected`)||w}),w&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,kc.ExtendedConfigFile,t),A=>this.toPath(A)),i}watchWildcards(t,{exists:r,config:i},o){if(i.projects.set(o.canonicalConfigFilePath,!0),r){if(i.watchedDirectories&&!i.watchedDirectoriesStale)return;i.watchedDirectoriesStale=!1,Rw(i.watchedDirectories||(i.watchedDirectories=new Map),i.parsedCommandLine.wildcardDirectories,(s,l)=>this.watchWildcardDirectory(s,l,t,i))}else{if(i.watchedDirectoriesStale=!1,!i.watchedDirectories)return;$u(i.watchedDirectories,Rf),i.watchedDirectories=void 0}}stopWatchingWildCards(t,r){let i=this.configFileExistenceInfoCache.get(t);!i.config||!i.config.projects.get(r.canonicalConfigFilePath)||(i.config.projects.set(r.canonicalConfigFilePath,!1),!Gc(i.config.projects,Qs)&&(i.config.watchedDirectories&&($u(i.config.watchedDirectories,Rf),i.config.watchedDirectories=void 0),i.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(t,r,i){let o=t.getRootFilesMap(),s=new Map;for(let l of r){let d=i.getFileName(l),p=dl(d),h=e8(p),m;if(!h&&!t.fileExists(d)){m=ZO(p,this.currentDirectory,this.toCanonicalFileName);let y=o.get(m);y?(y.info&&(t.removeFile(y.info,!1,!0),y.info=void 0),y.fileName=p):o.set(m,{fileName:p})}else{let y=i.getScriptKind(l,this.hostConfiguration.extraFileExtensions),E=i.hasMixedContent(l,this.hostConfiguration.extraFileExtensions),S=x.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(p,t.currentDirectory,y,E,t.directoryStructureHost));m=S.path;let A=o.get(m);!A||A.info!==S?(t.addRoot(S,p),S.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(S)):A.fileName=p}s.set(m,!0)}o.size>s.size&&o.forEach((l,d)=>{s.has(d)||(l.info?t.removeFile(l.info,t.fileExists(l.info.fileName),!0):o.delete(d))})}updateRootAndOptionsOfNonInferredProject(t,r,i,o,s,l,d){t.setCompilerOptions(o),t.setWatchOptions(d),l!==void 0&&(t.compileOnSaveEnabled=l),this.addFilesToNonInferredProject(t,r,i,s)}reloadFileNamesOfConfiguredProject(t){let r=this.reloadFileNamesOfParsedConfig(t.getConfigFilePath(),this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath).config);return t.updateErrorOnNoInputFiles(r),this.updateNonInferredProjectFiles(t,r.concat(t.getExternalFiles(1)),BB),t.markAsDirty(),t.updateGraph()}reloadFileNamesOfParsedConfig(t,r){if(r.updateLevel===void 0)return r.parsedCommandLine.fileNames;x.assert(r.updateLevel===1);let i=r.parsedCommandLine.options.configFile.configFileSpecs,o=TP(i,oi(t),r.parsedCommandLine.options,r.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return r.parsedCommandLine={...r.parsedCommandLine,fileNames:o},o}setFileNamesOfAutpImportProviderOrAuxillaryProject(t,r){this.updateNonInferredProjectFiles(t,r,BB)}reloadConfiguredProject(t,r,i,o){let s=t.getCachedDirectoryStructureHost();o&&this.clearSemanticCache(t),s.clearCache();let l=t.getConfigFilePath();this.logger.info(`${i?"Loading":"Reloading"} configured project ${l}`),this.loadConfiguredProject(t,r),t.updateGraph(),this.sendConfigFileDiagEvent(t,l)}clearSemanticCache(t){t.resolutionCache.clear(),t.getLanguageService(!1).cleanupSemanticCache(),t.cleanupProgram(),t.markAsDirty()}sendConfigFileDiagEvent(t,r){if(!this.eventHandler||this.suppressDiagnosticEvents)return;let i=t.getLanguageService().getCompilerOptionsDiagnostics();i.push(...t.getAllProjectErrors()),this.eventHandler({eventName:kB,data:{configFileName:t.getConfigFilePath(),diagnostics:i,triggerFile:r}})}getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r){if(!this.useInferredProjectPerProjectRoot||t.isDynamic&&r===void 0)return;if(r){let o=this.toCanonicalFileName(r);for(let s of this.inferredProjects)if(s.projectRootPath===o)return s;return this.createInferredProject(r,!1,r)}let i;for(let o of this.inferredProjects)o.projectRootPath&&mm(o.projectRootPath,t.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(i&&i.projectRootPath.length>o.projectRootPath.length||(i=o));return i}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return this.inferredProjects.length>0&&this.inferredProjects[0].projectRootPath===void 0?this.inferredProjects[0]:this.createInferredProject("",!0)}getOrCreateSingleInferredWithoutProjectRoot(t){x.assert(!this.useSingleInferredProject);let r=this.toCanonicalFileName(this.getNormalizedAbsolutePath(t));for(let i of this.inferredProjects)if(!i.projectRootPath&&i.isOrphan()&&i.canonicalCurrentDirectory===r)return i;return this.createInferredProject(t)}createInferredProject(t,r,i){let o=i&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(i)||this.compilerOptionsForInferredProjects,s,l;i&&(s=this.watchOptionsForInferredProjectsPerProjectRoot.get(i),l=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(i)),s===void 0&&(s=this.watchOptionsForInferredProjects),l===void 0&&(l=this.typeAcquisitionForInferredProjects),s=s||void 0;let d=new UQ(this,this.documentRegistry,o,s?.watchOptions,i,t,l);return d.setProjectErrors(s?.errors),r?this.inferredProjects.unshift(d):this.inferredProjects.push(d),d}getOrCreateScriptInfoNotOpenedByClient(t,r,i){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(dl(t),r,void 0,void 0,i)}getScriptInfo(t){return this.getScriptInfoForNormalizedPath(dl(t))}getScriptInfoOrConfig(t){let r=dl(t),i=this.getScriptInfoForNormalizedPath(r);if(i)return i;let o=this.configuredProjects.get(this.toPath(t));return o&&o.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(t){let r=Wo(this.filenameToScriptInfo.entries(),([i,o])=>({path:i,fileName:o.fileName}));this.logger.msg(`Could not find file ${JSON.stringify(t)}. -All files are: ${JSON.stringify(r)}`,"Err")}getSymlinkedProjects(t){let r;if(this.realpathToScriptInfos){let o=t.getRealpathIfDifferent();o&&gn(this.realpathToScriptInfos.get(o),i),gn(this.realpathToScriptInfos.get(t.path),i)}return r;function i(o){if(o!==t)for(let s of o.containingProjects)s.languageServiceEnabled&&!s.isOrphan()&&!s.getCompilerOptions().preserveSymlinks&&!t.isAttached(s)&&(r?Gc(r,(l,d)=>d===o.path?!1:Bo(l,s))||r.add(o.path,s):(r=qp(),r.add(o.path,s)))}}watchClosedScriptInfo(t){if(x.assert(!t.fileWatcher),!t.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!ao(t.path,this.globalCacheLocationDirectoryPath))){let r=t.fileName.indexOf("/node_modules/");!this.host.getModifiedTime||r===-1?t.fileWatcher=this.watchFactory.watchFile(t.fileName,(i,o)=>this.onSourceFileChanged(t,o),500,this.hostConfiguration.watchOptions,kc.ClosedScriptInfo):(t.mTime=this.getModifiedTime(t),t.fileWatcher=this.watchClosedScriptInfoInNodeModules(t.fileName.substring(0,r)))}}createNodeModulesWatcher(t,r){let i=this.watchFactory.watchDirectory(t,s=>{var l;let d=uz(this.toPath(s));if(!d)return;let p=nc(d);if((l=o.affectedModuleSpecifierCacheProjects)!=null&&l.size&&(p==="package.json"||p==="node_modules")&&o.affectedModuleSpecifierCacheProjects.forEach(h=>{var m;(m=h.getModuleSpecifierCache())==null||m.clear()}),o.refreshScriptInfoRefCount)if(r===d)this.refreshScriptInfosInDirectory(r);else{let h=this.getScriptInfoForPath(d);h?Mke(h)&&this.refreshScriptInfo(h):mI(d)||this.refreshScriptInfosInDirectory(d)}},1,this.hostConfiguration.watchOptions,kc.NodeModules),o={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var s;i&&!o.refreshScriptInfoRefCount&&!((s=o.affectedModuleSpecifierCacheProjects)!=null&&s.size)&&(i.close(),i=void 0,this.nodeModulesWatchers.delete(r))}};return this.nodeModulesWatchers.set(r,o),o}watchPackageJsonsInNodeModules(t,r){var i;let o=this.toPath(t),s=this.nodeModulesWatchers.get(o)||this.createNodeModulesWatcher(t,o);return x.assert(!((i=s.affectedModuleSpecifierCacheProjects)!=null&&i.has(r))),(s.affectedModuleSpecifierCacheProjects||(s.affectedModuleSpecifierCacheProjects=new Set)).add(r),{close:()=>{var l;(l=s.affectedModuleSpecifierCacheProjects)==null||l.delete(r),s.close()}}}watchClosedScriptInfoInNodeModules(t){let r=t+"/node_modules",i=this.toPath(r),o=this.nodeModulesWatchers.get(i)||this.createNodeModulesWatcher(r,i);return o.refreshScriptInfoRefCount++,{close:()=>{o.refreshScriptInfoRefCount--,o.close()}}}getModifiedTime(t){return(this.host.getModifiedTime(t.fileName)||Mp).getTime()}refreshScriptInfo(t){let r=this.getModifiedTime(t);if(r!==t.mTime){let i=nV(t.mTime,r);t.mTime=r,this.onSourceFileChanged(t,i)}}refreshScriptInfosInDirectory(t){t=t+nl,this.filenameToScriptInfo.forEach(r=>{Mke(r)&&ao(r.path,t)&&this.refreshScriptInfo(r)})}stopWatchingScriptInfo(t){t.fileWatcher&&(t.fileWatcher.close(),t.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(t,r,i,o,s){if(cp(t)||e8(t))return this.getOrCreateScriptInfoWorker(t,r,!1,void 0,i,o,s);let l=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t));if(l)return l}getOrCreateScriptInfoOpenedByClientForNormalizedPath(t,r,i,o,s){return this.getOrCreateScriptInfoWorker(t,r,!0,i,o,s)}getOrCreateScriptInfoForNormalizedPath(t,r,i,o,s,l){return this.getOrCreateScriptInfoWorker(t,this.currentDirectory,r,i,o,s,l)}getOrCreateScriptInfoWorker(t,r,i,o,s,l,d){x.assert(o===void 0||i,"ScriptInfo needs to be opened by client to be able to set its user defined content");let p=ZO(t,r,this.toCanonicalFileName),h=this.getScriptInfoForPath(p);if(!h){let m=e8(t);if(x.assert(cp(t)||m||i,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Wo(this.openFilesWithNonRootedDiskPath.keys())})} -Script info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),x.assert(!cp(t)||this.currentDirectory===r||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(t)),"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Wo(this.openFilesWithNonRootedDiskPath.keys())})} -Open script files with non rooted disk path opened with current directory context cannot have same canonical names`),x.assert(!m||this.currentDirectory===r||this.useInferredProjectPerProjectRoot,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Wo(this.openFilesWithNonRootedDiskPath.keys())})} -Dynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!i&&!m&&!(d||this.host).fileExists(t))return;h=new GQ(this.host,t,s,!!l,p,this.filenameToScriptInfoVersion.get(p)),this.filenameToScriptInfo.set(h.path,h),this.filenameToScriptInfoVersion.delete(h.path),i?!cp(t)&&(!m||this.currentDirectory!==r)&&this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(t),h):this.watchClosedScriptInfo(h)}return i&&(this.stopWatchingScriptInfo(h),h.open(o),l&&h.registerFileUpdate()),h}getScriptInfoForNormalizedPath(t){return!cp(t)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t))||this.getScriptInfoForPath(ZO(t,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(t){return this.filenameToScriptInfo.get(t)}getDocumentPositionMapper(t,r,i){let o=this.getOrCreateScriptInfoNotOpenedByClient(r,t.currentDirectory,this.host);if(!o){i&&t.addGeneratedFileWatch(r,i);return}if(o.getSnapshot(),No(o.sourceMapFilePath)){let m=this.getScriptInfoForPath(o.sourceMapFilePath);if(m&&(m.getSnapshot(),m.documentPositionMapper!==void 0))return m.sourceInfos=this.addSourceInfoToSourceMap(i,t,m.sourceInfos),m.documentPositionMapper?m.documentPositionMapper:void 0;o.sourceMapFilePath=void 0}else if(o.sourceMapFilePath){o.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(i,t,o.sourceMapFilePath.sourceInfos);return}else if(o.sourceMapFilePath!==void 0)return;let s,l,d=(m,y)=>{let E=this.getOrCreateScriptInfoNotOpenedByClient(m,t.currentDirectory,this.host);if(!E){l=y;return}s=E;let S=E.getSnapshot();return E.documentPositionMapper!==void 0?E.documentPositionMapper:cD(S)},p=t.projectName,h=PX({getCanonicalFileName:this.toCanonicalFileName,log:m=>this.logger.info(m),getSourceFileLike:m=>this.getSourceFileLike(m,p,o)},o.fileName,o.textStorage.getLineInfo(),d);return d=void 0,s?(o.sourceMapFilePath=s.path,s.declarationInfoPath=o.path,s.documentPositionMapper=h||!1,s.sourceInfos=this.addSourceInfoToSourceMap(i,t,s.sourceInfos)):l?o.sourceMapFilePath={watcher:this.addMissingSourceMapFile(t.currentDirectory===this.currentDirectory?l:ho(l,t.currentDirectory),o.path),sourceInfos:this.addSourceInfoToSourceMap(i,t)}:o.sourceMapFilePath=!1,h}addSourceInfoToSourceMap(t,r,i){if(t){let o=this.getOrCreateScriptInfoNotOpenedByClient(t,r.currentDirectory,r.directoryStructureHost);(i||(i=new Set)).add(o.path)}return i}addMissingSourceMapFile(t,r){return this.watchFactory.watchFile(t,()=>{let o=this.getScriptInfoForPath(r);o&&o.sourceMapFilePath&&!No(o.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(o.containingProjects,!0),this.delayUpdateSourceInfoProjects(o.sourceMapFilePath.sourceInfos),o.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,kc.MissingSourceMapFile)}getSourceFileLike(t,r,i){let o=r.projectName?r:this.findProject(r);if(o){let l=o.toPath(t),d=o.getSourceFile(l);if(d&&d.resolvedPath===l)return d}let s=this.getOrCreateScriptInfoNotOpenedByClient(t,(o||this).currentDirectory,o?o.directoryStructureHost:this.host);if(s){if(i&&No(i.sourceMapFilePath)&&s!==i){let l=this.getScriptInfoForPath(i.sourceMapFilePath);l&&(l.sourceInfos||(l.sourceInfos=new Set)).add(s.path)}return s.cacheSourceFile?s.cacheSourceFile.sourceFile:(s.sourceFileLike||(s.sourceFileLike={get text(){return x.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:l=>{let d=s.positionToLineOffset(l);return{line:d.line-1,character:d.offset-1}},getPositionOfLineAndCharacter:(l,d,p)=>s.lineOffsetToPosition(l+1,d+1,p)}),s.sourceFileLike)}}setPerformanceEventHandler(t){this.performanceEventHandler=t}setHostConfiguration(t){var r;if(t.file){let i=this.getScriptInfoForNormalizedPath(dl(t.file));i&&(i.setOptions(MD(t.formatOptions),t.preferences),this.logger.info(`Host configuration update for file ${t.file}`))}else{if(t.hostInfo!==void 0&&(this.hostConfiguration.hostInfo=t.hostInfo,this.logger.info(`Host information ${t.hostInfo}`)),t.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,...MD(t.formatOptions)},this.logger.info("Format host information updated")),t.preferences){let{lazyConfiguredProjectsFromExternalProject:i,includePackageJsonAutoImports:o}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...t.preferences},i&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.externalProjectToConfiguredProjectMap.forEach(s=>s.forEach(l=>{!l.isClosed()&&l.hasExternalProjectRef()&&l.pendingUpdateLevel===2&&!this.pendingProjectUpdates.has(l.getProjectName())&&l.updateGraph()})),o!==t.preferences.includePackageJsonAutoImports&&this.forEachProject(s=>{s.onAutoImportProviderSettingsChanged()})}t.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=t.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),t.watchOptions&&(this.hostConfiguration.watchOptions=(r=r8(t.watchOptions))==null?void 0:r.watchOptions,this.logger.info(`Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`))}}getWatchOptions(t){return this.getWatchOptionsFromProjectWatchOptions(t.getWatchOptions())}getWatchOptionsFromProjectWatchOptions(t){return t&&this.hostConfiguration.watchOptions?{...this.hostConfiguration.watchOptions,...t}:t||this.hostConfiguration.watchOptions}closeLog(){this.logger.close()}reloadProjects(){this.logger.info("reload projects."),this.filenameToScriptInfo.forEach(t=>{this.openFiles.has(t.path)||t.fileWatcher&&this.onSourceFileChanged(t,this.host.fileExists(t.fileName)?1:2)}),this.pendingProjectUpdates.forEach((t,r)=>{this.throttledOperations.cancel(r),this.pendingProjectUpdates.delete(r)}),this.throttledOperations.cancel(The),this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(t=>{t.config&&(t.config.updateLevel=2)}),this.reloadConfiguredProjectForFiles(this.openFiles,!0,!1,Sy,"User requested reload projects"),this.externalProjects.forEach(t=>{this.clearSemanticCache(t),t.updateGraph()}),this.inferredProjects.forEach(t=>this.clearSemanticCache(t)),this.ensureProjectForOpenFiles(),this.logger.info("After reloading projects.."),this.printProjects()}reloadConfiguredProjectForFiles(t,r,i,o,s){let l=new Map,d=p=>{l.has(p.canonicalConfigFilePath)||(l.set(p.canonicalConfigFilePath,!0),this.reloadConfiguredProject(p,s,!1,r))};t?.forEach((p,h)=>{if(this.configFileForOpenFiles.delete(h),!o(p))return;let m=this.getScriptInfoForPath(h);x.assert(m.isScriptOpen());let y=this.getConfigFileNameForFile(m);if(y){let E=this.findConfiguredProjectByProjectName(y)||this.createConfiguredProject(y);l.has(E.canonicalConfigFilePath)||(l.set(E.canonicalConfigFilePath,!0),i?(E.pendingUpdateLevel=2,E.pendingUpdateReason=s,r&&this.clearSemanticCache(E),this.delayUpdateProjectGraph(E)):(this.reloadConfiguredProject(E,s,!1,r),M1(E,m)||LD(E,m.path,A=>(d(A),M1(A,m)),1)&&LD(E,void 0,d,0)))}})}removeRootOfInferredProjectIfNowPartOfOtherProject(t){x.assert(t.containingProjects.length>0);let r=t.containingProjects[0];!r.isOrphan()&&PD(r)&&r.isRoot(t)&&gn(t.containingProjects,i=>i!==r&&!i.isOrphan())&&r.removeFile(t,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects(),this.openFiles.forEach((t,r)=>{let i=this.getScriptInfoForPath(r);i.isOrphan()?this.assignOrphanScriptInfoToInferredProject(i,t):this.removeRootOfInferredProjectIfNowPartOfOtherProject(i)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(zp),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(t,r,i,o){return this.openClientFileWithNormalizedPath(dl(t),r,i,!1,o?dl(o):void 0)}getOriginalLocationEnsuringConfiguredProject(t,r){let i=t.isSourceOfProjectReferenceRedirect(r.fileName),o=i?r:t.getSourceMapper().tryGetSourcePosition(r);if(!o)return;let{fileName:s}=o,l=this.getScriptInfo(s);if(!l&&!this.host.fileExists(s))return;let d={fileName:dl(s),path:this.toPath(s)},p=this.getConfigFileNameForFile(d);if(!p)return;let h=this.findConfiguredProjectByProjectName(p);if(!h){if(t.getCompilerOptions().disableReferencedProjectLoad)return i?r:l?.containingProjects.length?o:r;h=this.createAndLoadConfiguredProject(p,`Creating project for original file: ${d.fileName}${r!==o?" for location: "+r.fileName:""}`)}zp(h);let m=S=>{let A=this.getScriptInfo(s);return A&&M1(S,A)};if(h.isSolution()||!m(h)){if(h=LD(h,s,S=>(zp(S),m(S)?S:void 0),2,`Creating project referenced in solution ${h.projectName} to find possible configured project for original file: ${d.fileName}${r!==o?" for location: "+r.fileName:""}`),!h)return;if(h===t)return o}E(h);let y=this.getScriptInfo(s);if(!y||!y.containingProjects.length)return;return y.containingProjects.forEach(S=>{ME(S)&&E(S)}),o;function E(S){t.originalConfiguredProjects||(t.originalConfiguredProjects=new Set),t.originalConfiguredProjects.add(S.canonicalConfigFilePath)}}fileExists(t){return!!this.getScriptInfoForNormalizedPath(t)||this.host.fileExists(t)}findExternalProjectContainingOpenScriptInfo(t){return Vr(this.externalProjects,r=>(zp(r),r.containsScriptInfo(t)))}getOrCreateOpenScriptInfo(t,r,i,o,s){let l=this.getOrCreateScriptInfoOpenedByClientForNormalizedPath(t,s?this.getNormalizedAbsolutePath(s):this.currentDirectory,r,i,o);return this.openFiles.set(l.path,s),l}assignProjectToOpenedScriptInfo(t){let r,i,o=this.findExternalProjectContainingOpenScriptInfo(t),s,l,d=!1;return!o&&this.serverMode===0&&(r=this.getConfigFileNameForFile(t),r&&(o=this.findConfiguredProjectByProjectName(r),o?zp(o):(o=this.createLoadAndUpdateConfiguredProject(r,`Creating possible configured project for ${t.fileName} to open`),d=!0),l=o.containsScriptInfo(t)?o:void 0,s=o,M1(o,t)||LD(o,t.path,p=>{if(zp(p),To(s)?s.push(p):s=[o,p],M1(p,t))return l=p,p;!l&&p.containsScriptInfo(t)&&(l=p)},2,`Creating project referenced in solution ${o.projectName} to find possible configured project for ${t.fileName} to open`),l?(r=l.getConfigFilePath(),(l!==o||d)&&(i=l.getAllProjectErrors(),this.sendConfigFileDiagEvent(l,t.fileName))):r=void 0,this.createAncestorProjects(t,o))),t.containingProjects.forEach(zp),t.isOrphan()&&(To(s)?s.forEach(p=>this.sendConfigFileDiagEvent(p,t.fileName)):s&&this.sendConfigFileDiagEvent(s,t.fileName),x.assert(this.openFiles.has(t.path)),this.assignOrphanScriptInfoToInferredProject(t,this.openFiles.get(t.path))),x.assert(!t.isOrphan()),{configFileName:r,configFileErrors:i,retainProjects:s}}createAncestorProjects(t,r){if(t.isAttached(r))for(;;){if(!r.isInitialLoadPending()&&(!r.getCompilerOptions().composite||r.getCompilerOptions().disableSolutionSearching))return;let i=this.getConfigFileNameForFile({fileName:r.getConfigFilePath(),path:t.path,configFileInfo:!0});if(!i)return;let o=this.findConfiguredProjectByProjectName(i)||this.createConfiguredProjectWithDelayLoad(i,`Creating project possibly referencing default composite project ${r.getProjectName()} of open file ${t.fileName}`);o.isInitialLoadPending()&&o.setPotentialProjectReference(r.canonicalConfigFilePath),r=o}}loadAncestorProjectTree(t){t=t||Kte(this.configuredProjects,(i,o)=>o.isInitialLoadPending()?void 0:[i,!0]);let r=new Set;for(let i of Wo(this.configuredProjects.values()))Nke(i,o=>t.has(o))&&zp(i),this.ensureProjectChildren(i,t,r)}ensureProjectChildren(t,r,i){var o;if(!Kb(i,t.canonicalConfigFilePath)||t.getCompilerOptions().disableReferencedProjectLoad)return;let s=(o=t.getCurrentProgram())==null?void 0:o.getResolvedProjectReferences();if(s)for(let l of s){if(!l)continue;let d=pJ(l.references,m=>r.has(m.sourceFile.path)?m:void 0);if(!d)continue;let p=dl(l.sourceFile.fileName),h=t.projectService.findConfiguredProjectByProjectName(p)||t.projectService.createAndLoadConfiguredProject(p,`Creating project referenced by : ${t.projectName} as it references project ${d.sourceFile.fileName}`);zp(h),this.ensureProjectChildren(h,r,i)}}cleanupAfterOpeningFile(t){this.removeOrphanConfiguredProjects(t);for(let r of this.inferredProjects.slice())r.isOrphan()&&this.removeProject(r);this.removeOrphanScriptInfos()}openClientFileWithNormalizedPath(t,r,i,o,s){let l=this.getOrCreateOpenScriptInfo(t,r,i,o,s),{retainProjects:d,...p}=this.assignProjectToOpenedScriptInfo(l);return this.cleanupAfterOpeningFile(d),this.telemetryOnOpenFile(l),this.printProjects(),p}removeOrphanConfiguredProjects(t){let r=new Map(this.configuredProjects),i=l=>{!l.isOrphan()&&l.originalConfiguredProjects&&l.originalConfiguredProjects.forEach((d,p)=>{let h=this.getConfiguredProjectByCanonicalConfigFilePath(p);return h&&s(h)})};t&&(To(t)?t.forEach(s):s(t)),this.inferredProjects.forEach(i),this.externalProjects.forEach(i),this.configuredProjects.forEach(l=>{l.hasOpenRef()?s(l):r.has(l.canonicalConfigFilePath)&&Pke(l,d=>o(d)&&s(l))}),r.forEach(l=>this.removeProject(l));function o(l){return l.hasOpenRef()||!r.has(l.canonicalConfigFilePath)}function s(l){r.delete(l.canonicalConfigFilePath)&&(i(l),Pke(l,s))}}removeOrphanScriptInfos(){let t=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(r=>{if(!r.isScriptOpen()&&r.isOrphan()&&!r.isContainedByBackgroundProject()){if(!r.sourceMapFilePath)return;let i;if(No(r.sourceMapFilePath)){let o=this.getScriptInfoForPath(r.sourceMapFilePath);i=o&&o.sourceInfos}else i=r.sourceMapFilePath.sourceInfos;if(!i||!dh(i,o=>{let s=this.getScriptInfoForPath(o);return!!s&&(s.isScriptOpen()||!s.isOrphan())}))return}if(t.delete(r.path),r.sourceMapFilePath){let i;if(No(r.sourceMapFilePath)){t.delete(r.sourceMapFilePath);let o=this.getScriptInfoForPath(r.sourceMapFilePath);i=o&&o.sourceInfos}else i=r.sourceMapFilePath.sourceInfos;i&&i.forEach((o,s)=>t.delete(s))}}),t.forEach(r=>{this.stopWatchingScriptInfo(r),this.deleteScriptInfo(r),r.closeSourceMapFileWatcher()})}telemetryOnOpenFile(t){if(this.serverMode!==0||!this.eventHandler||!t.isJavaScript()||!Em(this.allJsFilesForOpenFileTelemetry,t.path))return;let r=this.ensureDefaultProjectForFile(t);if(!r.languageServiceEnabled)return;let i=r.getSourceFile(t.path),o=!!i&&!!i.checkJsDirective;this.eventHandler({eventName:QQ,data:{info:{checkJs:o}}})}closeClientFile(t,r){let i=this.getScriptInfoForNormalizedPath(dl(t)),o=i?this.closeOpenFile(i,r):!1;return r||this.printProjects(),o}collectChanges(t,r,i,o){for(let s of r){let l=Vr(t,d=>d.projectName===s.getProjectName());o.push(s.getChangesSinceVersion(l&&l.version,i))}}synchronizeProjectList(t,r){let i=[];return this.collectChanges(t,this.externalProjects,r,i),this.collectChanges(t,this.configuredProjects.values(),r,i),this.collectChanges(t,this.inferredProjects,r,i),i}applyChangesInOpenFiles(t,r,i){let o,s=!1;if(t)for(let d of t){let p=this.getOrCreateOpenScriptInfo(dl(d.fileName),d.content,XQ(d.scriptKind),d.hasMixedContent,d.projectRootPath?dl(d.projectRootPath):void 0);(o||(o=[])).push(p)}if(r)for(let d of r){let p=this.getScriptInfo(d.fileName);x.assert(!!p),this.applyChangesToFile(p,d.changes)}if(i)for(let d of i)s=this.closeClientFile(d,!0)||s;let l;o&&(l=va(o,d=>this.assignProjectToOpenedScriptInfo(d).retainProjects)),s&&this.assignOrphanScriptInfosToInferredProject(),o?(this.cleanupAfterOpeningFile(l),o.forEach(d=>this.telemetryOnOpenFile(d)),this.printProjects()):Nn(i)&&this.printProjects()}applyChangesToFile(t,r){for(let i of r)t.editContent(i.span.start,i.span.start+i.span.length,i.newText)}closeConfiguredProjectReferencedFromExternalProject(t){t?.forEach(r=>{r.isClosed()||(r.deleteExternalProjectReference(),r.hasOpenRef()||this.removeProject(r))})}closeExternalProject(t,r){let i=dl(t),o=this.externalProjectToConfiguredProjectMap.get(i);if(o)this.closeConfiguredProjectReferencedFromExternalProject(o),this.externalProjectToConfiguredProjectMap.delete(i);else{let s=this.findExternalProjectByProjectName(t);s&&this.removeProject(s)}r&&this.printProjects()}openExternalProjects(t){let r=_0(this.externalProjects,i=>i.getProjectName(),i=>!0);dh(this.externalProjectToConfiguredProjectMap,i=>{r.set(i,!0)});for(let i of t)this.openExternalProject(i,!1),r.delete(i.projectFileName);dh(r,i=>{this.closeExternalProject(i,!1)}),this.printProjects()}static escapeFilenameForRegex(t){return t.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=ZQ}applySafeList(t){let r=t.typeAcquisition;x.assert(!!r,"proj.typeAcquisition should be set by now");let i=this.applySafeListWorker(t,t.rootFiles,r);return i?.excludedFiles??[]}applySafeListWorker(t,r,i){if(i.enable===!1||i.disableFilenameBasedTypeAcquisition)return;let o=i.include||(i.include=[]),s=[],l=r.map(y=>Pd(y.fileName));for(let y of Object.keys(this.safelist)){let E=this.safelist[y];for(let S of l)if(E.match.test(S)){if(this.logger.info(`Excluding files based on rule ${y} matching file '${S}'`),E.types)for(let A of E.types)o.includes(A)||o.push(A);if(E.exclude)for(let A of E.exclude){let N=S.replace(E.match,(...D)=>A.map(w=>typeof w=="number"?No(D[w])?Tbe.escapeFilenameForRegex(D[w]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${y} - not enough groups`),"\\*"):w).join(""));s.includes(N)||s.push(N)}else{let A=Tbe.escapeFilenameForRegex(S);s.includes(A)||s.push(A)}}}let d=s.map(y=>new RegExp(y,"i")),p,h;for(let y=0;yE.test(l[y])))m(y);else{if(i.enable){let E=nc(ih(l[y]));if(Sl(E,"js")){let S=Eu(E),A=UG(S),N=this.legacySafelist.get(A);if(N!==void 0){this.logger.info(`Excluded '${l[y]}' because it matched ${A} from the legacy safelist`),m(y),o.includes(N)||o.push(N);continue}}}/^.+[.-]min\.js$/.test(l[y])?m(y):p?.push(r[y])}return h?{rootFiles:p,excludedFiles:h}:void 0;function m(y){h||(x.assert(!p),p=r.slice(0,y),h=[]),h.push(l[y])}}openExternalProject(t,r){let i=this.findExternalProjectByProjectName(t.projectFileName),o=this.externalProjectToConfiguredProjectMap.get(t.projectFileName),s,l=[];for(let d of t.rootFiles){let p=dl(d.fileName);if(OQ(p)){if(this.serverMode===0&&this.host.fileExists(p)){let h=this.findConfiguredProjectByProjectName(p);h||(h=this.getHostPreferences().lazyConfiguredProjectsFromExternalProject?this.createConfiguredProjectWithDelayLoad(p,`Creating configured project in external project: ${t.projectFileName}`):this.createLoadAndUpdateConfiguredProject(p,`Creating configured project in external project: ${t.projectFileName}`)),o?.has(h)||h.addExternalProjectReference(),(s??(s=new Set)).add(h),o?.delete(h)}}else l.push(d)}if(s)this.externalProjectToConfiguredProjectMap.set(t.projectFileName,s),i&&this.removeProject(i);else{this.externalProjectToConfiguredProjectMap.delete(t.projectFileName);let d=t.typeAcquisition||{};d.include=d.include||[],d.exclude=d.exclude||[],d.enable===void 0&&(d.enable=phe(l.map(m=>m.fileName)));let p=this.applySafeListWorker(t,l,d),h=p?.excludedFiles??[];if(l=p?.rootFiles??l,i){i.excludedFiles=h;let m=DB(t.options),y=r8(t.options,i.getCurrentDirectory()),E=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.projectFileName,m,l,GB);E?i.disableLanguageService(E):i.enableLanguageService(),i.setProjectErrors(y?.errors),this.updateRootAndOptionsOfNonInferredProject(i,l,GB,m,d,t.options.compileOnSave,y?.watchOptions),i.updateGraph()}else this.createExternalProject(t.projectFileName,l,t.options,d,h).updateGraph()}this.closeConfiguredProjectReferencedFromExternalProject(o),r&&this.printProjects()}hasDeferredExtension(){for(let t of this.hostConfiguration.extraFileExtensions)if(t.scriptKind===7)return!0;return!1}requestEnablePlugin(t,r,i){if(!this.host.importPlugin&&!this.host.require){this.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}if(this.logger.info(`Enabling plugin ${r.name} from candidate paths: ${i.join(",")}`),!r.name||mw(r.name).rest){this.logger.info(`Skipped loading plugin ${r.name||JSON.stringify(r)} because only package name is allowed plugin name`);return}if(this.host.importPlugin){let o=rA.importServicePluginAsync(r,i,this.host,l=>this.logger.info(l));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let s=this.pendingPluginEnablements.get(t);s||this.pendingPluginEnablements.set(t,s=[]),s.push(o);return}this.endEnablePlugin(t,rA.importServicePluginSync(r,i,this.host,o=>this.logger.info(o)))}endEnablePlugin(t,{pluginConfigEntry:r,resolvedModule:i,errorLogs:o}){var s;if(i){let l=(s=this.currentPluginConfigOverrides)==null?void 0:s.get(r.name);if(l){let d=r.name;r=l,r.name=d}t.enableProxy(i,r)}else gn(o,l=>this.logger.info(l)),this.logger.info(`Couldn't find ${r.name}`)}hasNewPluginEnablementRequests(){return!!this.pendingPluginEnablements}hasPendingPluginEnablements(){return!!this.currentPluginEnablementPromise}async waitForPendingPlugins(){for(;this.currentPluginEnablementPromise;)await this.currentPluginEnablementPromise}enableRequestedPlugins(){this.pendingPluginEnablements&&this.enableRequestedPluginsAsync()}async enableRequestedPluginsAsync(){if(this.currentPluginEnablementPromise&&await this.waitForPendingPlugins(),!this.pendingPluginEnablements)return;let t=Wo(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(t),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(t){x.assert(this.currentPluginEnablementPromise===void 0),await Promise.all(mn(t,([r,i])=>this.enableRequestedPluginsForProjectAsync(r,i))),this.currentPluginEnablementPromise=void 0,this.sendProjectsUpdatedInBackgroundEvent()}async enableRequestedPluginsForProjectAsync(t,r){let i=await Promise.all(r);if(!t.isClosed()){for(let o of i)this.endEnablePlugin(t,o);this.delayUpdateProjectGraph(t)}}configurePlugin(t){this.forEachEnabledProject(r=>r.onPluginConfigurationChanged(t.pluginName,t.configuration)),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(t.pluginName,t.configuration)}getPackageJsonsVisibleToFile(t,r,i){let o=this.packageJsonCache,s=i&&this.toPath(i),l=[],d=p=>{switch(o.directoryHasPackageJson(p)){case 3:return o.searchDirectoryAndAncestors(p),d(p);case-1:let h=Yr(p,"package.json");this.watchPackageJsonFile(h,this.toPath(h),r);let m=o.getInDirectory(p);m&&l.push(m)}if(s&&s===p)return!0};return hm(oi(t),d),l}getNearestAncestorDirectoryWithPackageJson(t){return hm(t,r=>{switch(this.packageJsonCache.directoryHasPackageJson(r)){case-1:return r;case 0:return;case 3:return this.host.fileExists(Yr(r,"package.json"))?r:void 0}})}watchPackageJsonFile(t,r,i){x.assert(i!==void 0);let o=(this.packageJsonFilesMap??(this.packageJsonFilesMap=new Map)).get(r);if(!o){let s=this.watchFactory.watchFile(t,(l,d)=>{switch(d){case 0:return x.fail();case 1:this.packageJsonCache.addOrUpdate(l,r),this.onPackageJsonChange(o);break;case 2:this.packageJsonCache.delete(r),this.onPackageJsonChange(o),o.projects.clear(),o.close()}},250,this.hostConfiguration.watchOptions,kc.PackageJson);o={projects:new Set,close:()=>{var l;o.projects.size||!s||(s.close(),s=void 0,(l=this.packageJsonFilesMap)==null||l.delete(r),this.packageJsonCache.invalidate(r))}},this.packageJsonFilesMap.set(r,o)}o.projects.add(i),(i.packageJsonWatches??(i.packageJsonWatches=new Set)).add(o)}onPackageJsonChange(t){t.projects.forEach(r=>{var i;return(i=r.onPackageJsonChange)==null?void 0:i.call(r)})}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=not())}},Ahe.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g,nZ=Ahe}});function Ihe(e){let t,r,i,o={get(p,h,m,y){if(!(!r||i!==l(p,m,y)))return r.get(h)},set(p,h,m,y,E,S){if(s(p,m,y).set(h,d(E,S,!1)),S){for(let A of E)if(A.isInNodeModules){let N=A.path.substring(0,A.path.indexOf(Eh)+Eh.length-1),D=e.toPath(N);t?.has(D)||(t||(t=new Map)).set(D,e.watchNodeModulesForPackageJsonChanges(N))}}},setModulePaths(p,h,m,y,E){let S=s(p,m,y),A=S.get(h);A?A.modulePaths=E:S.set(h,d(E,void 0,void 0))},setBlockedByPackageJsonDependencies(p,h,m,y,E){let S=s(p,m,y),A=S.get(h);A?A.isBlockedByPackageJsonDependencies=E:S.set(h,d(void 0,void 0,E))},clear(){t?.forEach(Hm),r?.clear(),t?.clear(),i=void 0},count(){return r?r.size:0}};return x.isDebugging&&Object.defineProperty(o,"__cache",{get:()=>r}),o;function s(p,h,m){let y=l(p,h,m);return r&&i!==y&&o.clear(),i=y,r||(r=new Map)}function l(p,h,m){return`${p},${h.importModuleSpecifierEnding},${h.importModuleSpecifierPreference},${m.overrideImportMode}`}function d(p,h,m){return{modulePaths:p,moduleSpecifiers:h,isBlockedByPackageJsonDependencies:m}}}var iot=bt({"src/server/moduleSpecifierCache.ts"(){"use strict";ib()}});function xhe(e){let t=new Map,r=new Map;return{addOrUpdate:i,invalidate:o,delete:l=>{t.delete(l),r.set(oi(l),!0)},getInDirectory:l=>t.get(e.toPath(Yr(l,"package.json")))||void 0,directoryHasPackageJson:l=>s(e.toPath(l)),searchDirectoryAndAncestors:l=>{hm(l,d=>{let p=e.toPath(d);if(s(p)!==3)return!0;let h=Yr(d,"package.json");dO(e,h)?i(h,Yr(p,"package.json")):r.set(p,!0)})}};function i(l,d){let p=x.checkDefined(lX(l,e.host));t.set(d,p),r.delete(oi(d))}function o(l){t.delete(l),r.delete(oi(l))}function s(l){return t.has(Yr(l,"package.json"))?-1:r.has(l)?0:3}}var oot=bt({"src/server/packageJsonCache.ts"(){"use strict";ib()}});function aot(e){let t=e[0],r=e[1];return(1e9*t+r)/1e6}function Oke(e,t){if((PD(e)||jQ(e))&&e.isJsOnlyProject()){let r=e.getScriptInfoForNormalizedPath(t);return r&&!r.isJavaScript()}return!1}function sot(e){return Af(e)||!!e.emitDecoratorMetadata}function Wke(e,t,r){let i=t.getScriptInfoForNormalizedPath(e);return{start:i.positionToLineOffset(r.start),end:i.positionToLineOffset(r.start+r.length),text:k_(r.messageText,` -`),code:r.code,category:rT(r),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,source:r.source,relatedInformation:mn(r.relatedInformation,rZ)}}function rZ(e){return e.file?{span:{start:o8(hs(e.file,e.start)),end:o8(hs(e.file,e.start+e.length)),file:e.file.fileName},message:k_(e.messageText,` +`))}return s}print(t,r,i){var o;this.writeLog(`Project '${this.projectName}' (${vM[this.projectKind]})`),this.writeLog(this.filesToStringWorker(t&&this.projectService.logger.hasLevel(3),r&&this.projectService.logger.hasLevel(3),i&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1),(o=this.noDtsResolutionProject)==null||o.print(!1,!1,!1)}setCompilerOptions(t){var r;if(t){t.allowNonTsExtensions=!0;let i=this.compilerOptions;this.compilerOptions=t,this.setInternalCompilerOptionsForEmittingJsFiles(),(r=this.noDtsResolutionProject)==null||r.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),yF(i,t)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(t){this.watchOptions=t}getWatchOptions(){return this.watchOptions}setTypeAcquisition(t){t&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(t))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(t,r){var i,o;let s=r?p=>Oo(p.entries(),([h,m])=>({fileName:h,isSourceOfProjectReferenceRedirect:m})):p=>Oo(p.keys());this.isInitialLoadPending()||zp(this);let l={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:ND(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},d=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&t===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!d)return{info:l,projectErrors:this.getGlobalProjectErrors()};let p=this.lastReportedFileNames,h=((i=this.externalFiles)==null?void 0:i.map(N=>({fileName:dl(N),isSourceOfProjectReferenceRedirect:!1})))||_c,m=h0(this.getFileNamesWithRedirectInfo(!!r).concat(h),N=>N.fileName,N=>N.isSourceOfProjectReferenceRedirect),y=new Map,E=new Map,S=d?Oo(d.keys()):[],A=[];return zc(m,(N,D)=>{p.has(D)?r&&N!==p.get(D)&&A.push({fileName:D,isSourceOfProjectReferenceRedirect:N}):y.set(D,N)}),zc(p,(N,D)=>{m.has(D)||E.set(D,N)}),this.lastReportedFileNames=m,this.lastReportedVersion=this.projectProgramVersion,{info:l,changes:{added:s(y),removed:s(E),updated:r?S.map(N=>({fileName:N,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(N)})):S,updatedRedirects:r?A:void 0},projectErrors:this.getGlobalProjectErrors()}}else{let p=this.getFileNamesWithRedirectInfo(!!r),h=((o=this.externalFiles)==null?void 0:o.map(y=>({fileName:dl(y),isSourceOfProjectReferenceRedirect:!1})))||_c,m=p.concat(h);return this.lastReportedFileNames=h0(m,y=>y.fileName,y=>y.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:l,files:r?m:m.map(y=>y.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(t){Sx(this.rootFiles,t),this.rootFilesMap.delete(t.path)}isSourceOfProjectReferenceRedirect(t){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(t)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,$r(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(t){if(!this.projectService.globalPlugins.length)return;let r=this.projectService.host;if(!r.require&&!r.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}let i=this.getGlobalPluginSearchPaths();for(let o of this.projectService.globalPlugins)o&&(t.plugins&&t.plugins.some(s=>s.name===o)||(this.projectService.logger.info(`Loading global plugin ${o}`),this.enablePlugin({name:o,global:!0},i)))}enablePlugin(t,r){this.projectService.requestEnablePlugin(this,t,r)}enableProxy(t,r){try{if(typeof t!="function"){this.projectService.logger.info(`Skipped loading plugin ${r.name} because it did not expose a proper factory function`);return}let i={config:r,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},o=t({typescript:ewe}),s=o.create(i);for(let l of Object.keys(this.languageService))l in s||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${l} in created LS. Patching.`),s[l]=this.languageService[l]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=s,this.plugins.push({name:r.name,module:o})}catch(i){this.projectService.logger.info(`Plugin activation failed: ${i}`)}}onPluginConfigurationChanged(t,r){this.plugins.filter(i=>i.name===t).forEach(i=>{i.module.onConfigurationChanged&&i.module.onConfigurationChanged(r)})}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(t,r){return this.projectService.serverMode!==0?_c:this.projectService.getPackageJsonsVisibleToFile(t,this,r)}getNearestAncestorDirectoryWithPackageJson(t){return this.projectService.getNearestAncestorDirectoryWithPackageJson(t)}getPackageJsonsForAutoImport(t){return this.getPackageJsonsVisibleToFile($r(this.currentDirectory,eD),t)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=bX(this))}clearCachedExportInfoMap(){var t;(t=this.exportMapCache)==null||t.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||pO(this.currentDirectory)||!this.isDefaultProjectForOpenFiles()?0:this.projectService.includePackageJsonAutoImports()}getHostForAutoImportProvider(){var t,r;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||((t=this.projectService.host.realpath)==null?void 0:t.bind(this.projectService.host)),getCurrentDirectory:this.getCurrentDirectory.bind(this),readFile:this.projectService.host.readFile.bind(this.projectService.host),getDirectories:this.projectService.host.getDirectories.bind(this.projectService.host),trace:(r=this.projectService.host.trace)==null?void 0:r.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var t,r,i;if(this.autoImportProviderHost===!1)return;if(this.projectService.serverMode!==0){this.autoImportProviderHost=!1;return}if(this.autoImportProviderHost){if(zp(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()){this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0;return}return this.autoImportProviderHost.getCurrentProgram()}let o=this.includePackageJsonAutoImports();if(o){(t=rr)==null||t.push(rr.Phase.Session,"getPackageJsonAutoImportProvider");let s=Ks();if(this.autoImportProviderHost=JQ.create(o,this,this.getHostForAutoImportProvider(),this.documentRegistry),this.autoImportProviderHost)return zp(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",Ks()-s),(r=rr)==null||r.pop(),this.autoImportProviderHost.getCurrentProgram();(i=rr)==null||i.pop()}}isDefaultProjectForOpenFiles(){return!!zc(this.projectService.openFiles,(t,r)=>this.projectService.tryGetDefaultProjectForFile(dl(r))===this)}watchNodeModulesForPackageJsonChanges(t){return this.projectService.watchPackageJsonsInNodeModules(t,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(t){return R.assert(this.projectService.serverMode===0),this.noDtsResolutionProject||(this.noDtsResolutionProject=new HQ(this.projectService,this.documentRegistry,this.getCompilerOptionsForNoDtsResolutionProject(),this.currentDirectory)),this.noDtsResolutionProject.rootFile!==t&&(this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[t]),this.noDtsResolutionProject.rootFile=t),this.noDtsResolutionProject}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:Xe,lib:Xe,noLib:!0}}},UQ=class extends rA{constructor(e,t,r,i,o,s,l){super(e.newInferredProjectName(),0,e,t,void 0,void 0,r,!1,i,e.host,s),this._isJsInferredProject=!1,this.typeAcquisition=l,this.projectRootPath=o&&e.toCanonicalFileName(o),!o&&!e.useSingleInferredProject&&(this.canonicalCurrentDirectory=e.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(e){e!==this._isJsInferredProject&&(this._isJsInferredProject=e,this.setCompilerOptions())}setCompilerOptions(e){if(!e&&!this.getCompilationSettings())return;let t=wq(e||this.getCompilationSettings());this._isJsInferredProject&&typeof t.maxNodeModuleJsDepth!="number"?t.maxNodeModuleJsDepth=2:this._isJsInferredProject||(t.maxNodeModuleJsDepth=void 0),t.allowJs=!0,super.setCompilerOptions(t)}addRoot(e){R.assert(e.isScriptOpen()),this.projectService.startWatchingConfigFilesForInferredProjectRoot(e),!this._isJsInferredProject&&e.isJavaScript()?this.toggleJsInferredProject(!0):this.isOrphan()&&this._isJsInferredProject&&!e.isJavaScript()&&this.toggleJsInferredProject(!1),super.addRoot(e)}removeRoot(e){this.projectService.stopWatchingConfigFilesForInferredProjectRoot(e),super.removeRoot(e),!this.isOrphan()&&this._isJsInferredProject&&e.isJavaScript()&&oo(this.getRootScriptInfos(),t=>!t.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||this.getRootScriptInfos().length===1}close(){gn(this.getRootScriptInfos(),e=>this.projectService.stopWatchingConfigFilesForInferredProjectRoot(e)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:_he(this),include:Xe,exclude:Xe}}},HQ=class extends rA{constructor(e,t,r,i){super(e.newAuxiliaryProjectName(),4,e,t,!1,void 0,r,!1,void 0,e.host,i)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},KQ=class Rbe extends rA{constructor(t,r,i,o){super(t.projectService.newAutoImportProviderProjectName(),3,t.projectService,i,!1,void 0,o,!1,t.getWatchOptions(),t.projectService.host,t.currentDirectory),this.hostProject=t,this.rootFileNames=r,this.useSourceOfProjectReferenceRedirect=ea(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=ea(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(t,r,i,o){var s,l;if(!t)return Xe;let d=r.getCurrentProgram();if(!d)return Xe;let p=Ks(),h,m,y=$r(r.currentDirectory,eD),E=r.getPackageJsonsForAutoImport($r(r.currentDirectory,y));for(let D of E)(s=D.dependencies)==null||s.forEach((w,j)=>A(j)),(l=D.peerDependencies)==null||l.forEach((w,j)=>A(j));let S=0;if(h){let D=r.getSymlinkCache();for(let w of Oo(h.keys())){if(t===2&&S>this.maxDependencies)return r.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),Xe;let j=eK(w,r.currentDirectory,o,i,d.getModuleResolutionCache());if(j){let Y=N(j,d,D);if(Y){m=bo(m,Y),S+=Y.length?1:0;continue}}if(!gn([r.currentDirectory,r.getGlobalTypingsCacheLocation()],Y=>{if(Y){let B=eK(`@types/${w}`,Y,o,i,d.getModuleResolutionCache());if(B){let ce=N(B,d,D);return m=bo(m,ce),S+=ce?.length?1:0,!0}}})&&j&&o.allowJs&&o.maxNodeModuleJsDepth){let Y=N(j,d,D,!0);m=bo(m,Y),S+=Y?.length?1:0}}}return m?.length&&r.log(`AutoImportProviderProject: found ${m.length} root files in ${S} dependencies in ${Ks()-p} ms`),m||Xe;function A(D){ao(D,"@types/")||(h||(h=new Set)).add(D)}function N(D,w,j,K){var Y;let B=sK(D,o,i,w.getModuleResolutionCache(),K);if(B){let ce=(Y=i.realpath)==null?void 0:Y.call(i,D.packageDirectory),z=ce?r.toPath(ce):void 0,ee=z&&z!==r.toPath(D.packageDirectory);return ee&&j.setSymlinkedDirectory(D.packageDirectory,{real:Fc(ce),realPath:Fc(z)}),to(B,me=>{let ge=ee?me.replace(D.packageDirectory,ce):me;if(!w.getSourceFile(ge)&&!(ee&&w.getSourceFile(me)))return ge})}}}static create(t,r,i,o){if(t===0)return;let s={...r.getCompilerOptions(),...this.compilerOptionsOverrides},l=this.getRootFileNames(t,r,i,s);if(l.length)return new Rbe(r,l,o,s)}isEmpty(){return!gt(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=Rbe.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this,t),this.rootFileNames=t;let r=this.getCurrentProgram(),i=super.updateGraph();return r&&r!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),i}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var t;return!!((t=this.rootFileNames)!=null&&t.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||Xe}getLanguageService(){throw new Error("AutoImportProviderProject language service should never be used. To get the program, use `project.getCurrentProgram()`.")}onAutoImportProviderSettingsChanged(){throw new Error("AutoImportProviderProject is an auto import provider; use `markAsDirty()` instead.")}onPackageJsonChange(){throw new Error("package.json changes should be notified on an AutoImportProvider's host project")}getHostForAutoImportProvider(){throw new Error("AutoImportProviderProject cannot provide its own host; use `hostProject.getModuleResolutionHostForAutomImportProvider()` instead.")}getProjectReferences(){return this.hostProject.getProjectReferences()}includePackageJsonAutoImports(){return 0}getSymlinkCache(){return this.hostProject.getSymlinkCache()}getModuleResolutionCache(){var t;return(t=this.hostProject.getCurrentProgram())==null?void 0:t.getModuleResolutionCache()}},KQ.maxDependencies=10,KQ.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:Xe,lib:Xe,noLib:!0},JQ=KQ,qQ=class extends rA{constructor(e,t,r,i,o){super(e,1,r,i,!1,void 0,{},!1,void 0,o,oi(e)),this.canonicalConfigFilePath=t,this.openFileWatchTriggered=new Map,this.canConfigFileJsonReportNoInputFiles=!1,this.externalProjectRefCount=0,this.isInitialLoadPending=Ty,this.sendLoadingProjectFinish=!1}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){let t=fa(e),r=this.projectService.toCanonicalFileName(t),i=this.projectService.configFileExistenceInfoCache.get(r);return i||this.projectService.configFileExistenceInfoCache.set(r,i={exists:this.projectService.host.fileExists(t)}),this.projectService.ensureParsedConfigUptoDate(t,r,i,this),this.languageServiceEnabled&&this.projectService.serverMode===0&&this.projectService.watchWildcards(t,i,this),i.exists?i.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(e){this.releaseParsedConfig(this.projectService.toCanonicalFileName(fa(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){let e=this.isInitialLoadPending();this.isInitialLoadPending=jm;let t=this.pendingUpdateLevel;this.pendingUpdateLevel=0;let r;switch(t){case 1:this.openFileWatchTriggered.clear(),r=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();let i=R.checkDefined(this.pendingUpdateReason);this.pendingUpdateReason=void 0,this.projectService.reloadConfiguredProject(this,i,e,!1),r=!0;break;default:r=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),r}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(e){this.projectReferences=e,this.potentialProjectReferences=void 0}setPotentialProjectReference(e){R.assert(this.isInitialLoadPending()),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getResolvedProjectReferenceToRedirect(e){let t=this.getCurrentProgram();return t&&t.getResolvedProjectReferenceToRedirect(e)}forEachResolvedProjectReference(e){var t;return(t=this.getCurrentProgram())==null?void 0:t.forEachResolvedProjectReference(e)}enablePluginsWithOptions(e){var t;if(this.plugins.length=0,!((t=e.plugins)!=null&&t.length)&&!this.projectService.globalPlugins.length)return;let r=this.projectService.host;if(!r.require&&!r.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}let i=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){let o=oi(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${o} to search paths`),i.unshift(o)}if(e.plugins)for(let o of e.plugins)this.enablePlugin(o,i);return this.enableGlobalPlugins(e)}getGlobalProjectErrors(){return jr(this.projectErrors,e=>!e.file)||_c}getAllProjectErrors(){return this.projectErrors||_c}setProjectErrors(e){this.projectErrors=e}close(){this.projectService.configFileExistenceInfoCache.forEach((e,t)=>this.releaseParsedConfig(t)),this.projectErrors=void 0,this.openFileWatchTriggered.clear(),this.compilerHost=void 0,super.close()}addExternalProjectReference(){this.externalProjectRefCount++}deleteExternalProjectReference(){this.externalProjectRefCount--}isSolution(){return this.getRootFilesMap().size===0&&!this.canConfigFileJsonReportNoInputFiles}getDefaultChildProjectFromProjectWithReferences(e){return MD(this,e.path,t=>M1(t,e)?t:void 0,0)}hasOpenRef(){var e;if(this.externalProjectRefCount)return!0;if(this.isClosed())return!1;let t=this.projectService.configFileExistenceInfoCache.get(this.canonicalConfigFilePath);return this.projectService.hasPendingProjectUpdate(this)?!!((e=t.openFilesImpactedByConfigFile)!=null&&e.size):!!t.openFilesImpactedByConfigFile&&zc(t.openFilesImpactedByConfigFile,(r,i)=>{let o=this.projectService.getScriptInfoForPath(i);return this.containsScriptInfo(o)||!!MD(this,o.path,s=>s.containsScriptInfo(o),0)})||!1}hasExternalProjectRef(){return!!this.externalProjectRefCount}getEffectiveTypeRoots(){return RP(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){s3(e,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,this.canConfigFileJsonReportNoInputFiles)}},RB=class extends rA{constructor(e,t,r,i,o,s,l,d){super(e,2,t,r,!0,o,i,s,d,t.host,oi(l||Nd(e))),this.externalProjectName=e,this.compileOnSaveEnabled=s,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){let e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}}}});function Lke(e){let t=new Map;for(let r of e)if(typeof r.type=="object"){let i=r.type;i.forEach(o=>{R.assert(typeof o=="number")}),t.set(r.name,i)}return t}function PD(e){return Co(e.indentStyle)&&(e.indentStyle=Gke.get(e.indentStyle.toLowerCase()),R.assert(e.indentStyle!==void 0)),e}function DB(e){return zke.forEach((t,r)=>{let i=e[r];Co(i)&&(e[r]=t.get(i.toLowerCase()))}),e}function i8(e,t){let r,i;return VR.forEach(o=>{let s=e[o.name];if(s===void 0)return;let l=Bke.get(o.name);(r||(r={}))[o.name]=l?Co(s)?l.get(s.toLowerCase()):s:VT(o,s,t||"",i||(i=[]))}),r&&{watchOptions:r,errors:i}}function vhe(e){let t;return lw.forEach(r=>{let i=e[r.name];i!==void 0&&((t||(t={}))[r.name]=i)}),t}function XQ(e){return Co(e)?YQ(e):e}function YQ(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function bhe(e){let{lazyConfiguredProjectsFromExternalProject:t,...r}=e;return r}function kke(e,t){for(let r of t)if(r.getProjectName()===e)return r}function $Q(e){return!!e.containingProjects}function wke(e){return!!e.configFileInfo}function MD(e,t,r,i,o){var s;let l=(s=e.getCurrentProgram())==null?void 0:s.getResolvedProjectReferences();if(!l)return;let d,p=t?e.getResolvedProjectReferenceToRedirect(t):void 0;if(p){let m=dl(p.sourceFile.fileName),y=e.projectService.findConfiguredProjectByProjectName(m);if(y){let E=r(y);if(E)return E}else if(i!==0){d=new Map;let E=Ehe(l,e.getCompilerOptions(),(S,A)=>p===S?h(S,A):void 0,i,e.projectService,d);if(E)return E;d.clear()}}return Ehe(l,e.getCompilerOptions(),(m,y)=>p!==m?h(m,y):void 0,i,e.projectService,d);function h(m,y){let E=dl(m.sourceFile.fileName),S=e.projectService.findConfiguredProjectByProjectName(E)||(y===0?void 0:y===1?e.projectService.createConfiguredProject(E):y===2?e.projectService.createAndLoadConfiguredProject(E,o):R.assertNever(y));return S&&r(S)}}function Ehe(e,t,r,i,o,s){let l=t.disableReferencedProjectLoad?0:i;return gn(e,d=>{if(!d)return;let p=dl(d.sourceFile.fileName),h=o.toCanonicalFileName(p),m=s?.get(h);if(m!==void 0&&m>=l)return;let y=r(d,l);return y||((s||(s=new Map)).set(h,l),d.references&&Ehe(d.references,d.commandLine.options,r,l,o,s))})}function Oke(e,t){return e.potentialProjectReferences&&uh(e.potentialProjectReferences,t)}function aot(e,t,r,i){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.isInitialLoadPending()?Oke(e,i):gn(e.getProjectReferences(),r)}function She(e,t,r){let i=r&&e.projectService.configuredProjects.get(r);return i&&t(i)}function Wke(e,t){return aot(e,r=>She(e,t,r.sourceFile.path),r=>She(e,t,e.toPath(ZR(r))),r=>She(e,t,r))}function sot(e,t){return`${Co(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function Fke(e){return!e.isScriptOpen()&&e.mTime!==void 0}function M1(e,t){return e.containsScriptInfo(t)&&!e.isSourceOfProjectReferenceRedirect(t.path)}function zp(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&e.updateGraph()}function The(e){LE(e)&&(e.projectOptions=!0)}function Ahe(e){let t=1;return()=>e(t++)}function Ihe(){return{idToCallbacks:new Map,pathToId:new Map}}function lot(e,t){if(!t||!e.eventHandler||!e.session)return;let r=Ihe(),i=Ihe(),o=Ihe(),s=1;return e.session.addProtocolHandler("watchChange",S=>(h(S.arguments),{responseRequired:!1})),{watchFile:l,watchDirectory:d,getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function l(S,A){return p(r,S,A,N=>({eventName:WB,data:{id:N,path:S}}))}function d(S,A,N){return p(N?o:i,S,A,D=>({eventName:FB,data:{id:D,path:S,recursive:!!N,ignoreUpdate:S.endsWith("/node_modules")?void 0:!0}}))}function p({pathToId:S,idToCallbacks:A},N,D,w){let j=e.toPath(N),K=S.get(j);K||S.set(j,K=s++);let Y=A.get(K);return Y||(A.set(K,Y=new Set),e.eventHandler(w(K))),Y.add(D),{close(){let B=A.get(K);B?.delete(D)&&(B.size||(A.delete(K),S.delete(j),e.eventHandler({eventName:zB,data:{id:K}})))}}}function h(S){So(S)?S.forEach(m):m(S)}function m({id:S,created:A,deleted:N,updated:D}){y(S,A,0),y(S,N,2),y(S,D,1)}function y(S,A,N){A?.length&&(E(r,S,A,(D,w)=>D(w,N)),E(i,S,A,(D,w)=>D(w)),E(o,S,A,(D,w)=>D(w)))}function E(S,A,N,D){var w;(w=S.idToCallbacks.get(A))==null||w.forEach(j=>{N.forEach(K=>D(j,Nd(K)))})}}function cot(){let e;return{get(){return e},set(t){e=t},clear(){e=void 0}}}function xhe(e){return e.kind!==void 0}function Rhe(e){e.print(!1,!1,!1)}var CB,NB,o8,PB,MB,LB,kB,wB,OB,QQ,WB,FB,zB,Dhe,zke,Bke,Gke,ZQ,BB,GB,eZ,tZ,Che,nZ,dot=bt({"src/server/editorServices.ts"(){"use strict";ob(),iA(),fhe(),CB=20*1024*1024,NB=4*1024*1024,o8="projectsUpdatedInBackground",PB="projectLoadingStart",MB="projectLoadingFinish",LB="largeFileReferenced",kB="configFileDiag",wB="projectLanguageServiceState",OB="projectInfo",QQ="openFileInfo",WB="createFileWatcher",FB="createDirectoryWatcher",zB="closeFileWatcher",Dhe="*ensureProjectForOpenFiles*",zke=Lke(ag),Bke=Lke(VR),Gke=new Map(Object.entries({none:0,block:1,smart:2})),ZQ={jquery:{match:/jquery(-[\d.]+)?(\.intellisense)?(\.min)?\.js$/i,types:["jquery"]},WinJS:{match:/^(.*\/winjs-[.\d]+)\/js\/base\.js$/i,exclude:[["^",1,"/.*"]],types:["winjs"]},Kendo:{match:/^(.*\/kendo(-ui)?)\/kendo\.all(\.min)?\.js$/i,exclude:[["^",1,"/.*"]],types:["kendo-ui"]},"Office Nuget":{match:/^(.*\/office\/1)\/excel-\d+\.debug\.js$/i,exclude:[["^",1,"/.*"]],types:["office"]},References:{match:/^(.*\/_references\.js)$/i,exclude:[["^",1,"$"]]}},BB={getFileName:e=>e,getScriptKind:(e,t)=>{let r;if(t){let i=Dx(e);i&>(t,o=>o.extension===i?(r=o.scriptKind,!0):!1)}return r},hasMixedContent:(e,t)=>gt(t,r=>r.isMixedContent&&Sl(e,r.extension))},GB={getFileName:e=>e.fileName,getScriptKind:e=>XQ(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent},eZ={close:qa},tZ=(e=>(e[e.Find=0]="Find",e[e.FindCreate=1]="FindCreate",e[e.FindCreateLoad=2]="FindCreateLoad",e))(tZ||{}),Che=class Dbe{constructor(t){this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Map,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=Ahe(Y_e),this.newAutoImportProviderProjectName=Ahe($_e),this.newAuxiliaryProjectName=Ahe(Q_e),this.openFiles=new Map,this.configFileForOpenFiles=new Map,this.openFilesWithNonRootedDiskPath=new Map,this.compilerOptionsForInferredProjectsPerProjectRoot=new Map,this.watchOptionsForInferredProjectsPerProjectRoot=new Map,this.typeAcquisitionForInferredProjectsPerProjectRoot=new Map,this.projectToSizeMap=new Map,this.configFileExistenceInfoCache=new Map,this.safelist=ZQ,this.legacySafelist=new Map,this.pendingProjectUpdates=new Map,this.pendingEnsureProjectForOpenFiles=!1,this.seenProjects=new Map,this.sharedExtendedConfigFileWatchers=new Map,this.extendedConfigCache=new Map,this.baseline=qa,this.verifyDocumentRegistry=qa,this.verifyProgram=qa,this.onProjectCreation=qa;var r;this.host=t.host,this.logger=t.logger,this.cancellationToken=t.cancellationToken,this.useSingleInferredProject=t.useSingleInferredProject,this.useInferredProjectPerProjectRoot=t.useInferredProjectPerProjectRoot,this.typingsInstaller=t.typingsInstaller||xB,this.throttleWaitMilliseconds=t.throttleWaitMilliseconds,this.eventHandler=t.eventHandler,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.globalPlugins=t.globalPlugins||_c,this.pluginProbeLocations=t.pluginProbeLocations||_c,this.allowLocalPluginLoads=!!t.allowLocalPluginLoads,this.typesMapLocation=t.typesMapLocation===void 0?$r(oi(this.getExecutingFilePath()),"typesMap.json"):t.typesMapLocation,this.session=t.session,this.jsDocParsingMode=t.jsDocParsingMode,t.serverMode!==void 0?this.serverMode=t.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=Xp()),this.currentDirectory=dl(this.host.getCurrentDirectory()),this.toCanonicalFileName=Cd(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?Fc(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new WQ(this.host,this.logger),this.typesMapLocation?this.loadTypesMap():this.logger.info("No types map provided; using the default"),this.typingsInstaller.attach(this),this.typingsCache=new VQ(this.typingsInstaller),this.hostConfiguration={formatCodeOptions:Cz(this.host.newLine),preferences:Cf,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=RX(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);let i=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,o=i!==0?s=>this.logger.info(s):qa;this.packageJsonCache=Phe(this),this.watchFactory=this.serverMode!==0?{watchFile:iD,watchDirectory:iD}:ZK(lot(this,t.canUseWatchEvents)||this.host,i,o,sot),(r=t.incrementalVerifier)==null||r.call(t,this)}toPath(t){return tl(t,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(t){return _o(t,this.host.getCurrentDirectory())}setDocument(t,r,i){let o=R.checkDefined(this.getScriptInfoForPath(r));o.cacheSourceFile={key:t,sourceFile:i}}getDocument(t,r){let i=this.getScriptInfoForPath(r);return i&&i.cacheSourceFile&&i.cacheSourceFile.key===t?i.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(t,r){if(!this.eventHandler)return;let i={eventName:wB,data:{project:t,languageServiceEnabled:r}};this.eventHandler(i)}loadTypesMap(){try{let t=this.host.readFile(this.typesMapLocation);if(t===void 0){this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);return}let r=JSON.parse(t);for(let i of Object.keys(r.typesMap))r.typesMap[i].match=new RegExp(r.typesMap[i].match,"i");this.safelist=r.typesMap;for(let i in r.simpleMap)Ts(r.simpleMap,i)&&this.legacySafelist.set(i,r.simpleMap[i].toLowerCase())}catch(t){this.logger.info(`Error loading types map: ${t}`),this.safelist=ZQ,this.legacySafelist.clear()}}updateTypingsForProject(t){let r=this.findProject(t.projectName);if(r)switch(t.kind){case zw:r.updateTypingFiles(this.typingsCache.updateTypingsForProject(t.projectName,t.compilerOptions,t.typeAcquisition,t.unresolvedImports,t.typings));return;case Bw:this.typingsCache.enqueueInstallTypingsForProject(r,r.lastCachedUnresolvedImportsList,!0);return}}watchTypingLocations(t){var r;(r=this.findProject(t.projectName))==null||r.watchTypingLocations(t.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(Dhe,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(t){if(t.markAsDirty(),r8(t))return;let r=t.getProjectName();this.pendingProjectUpdates.set(r,t),this.throttledOperations.schedule(r,250,()=>{this.pendingProjectUpdates.delete(r)&&zp(t)})}hasPendingProjectUpdate(t){return this.pendingProjectUpdates.has(t.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;let t={eventName:o8,data:{openFiles:Oo(this.openFiles.keys(),r=>this.getScriptInfoForPath(r).fileName)}};this.eventHandler(t)}sendLargeFileReferencedEvent(t,r){if(!this.eventHandler)return;let i={eventName:LB,data:{file:t,fileSize:r,maxFileSize:NB}};this.eventHandler(i)}sendProjectLoadingStartEvent(t,r){if(!this.eventHandler)return;t.sendLoadingProjectFinish=!0;let i={eventName:PB,data:{project:t,reason:r}};this.eventHandler(i)}sendProjectLoadingFinishEvent(t){if(!this.eventHandler||!t.sendLoadingProjectFinish)return;t.sendLoadingProjectFinish=!1;let r={eventName:MB,data:{project:t}};this.eventHandler(r)}sendPerformanceEvent(t,r){this.performanceEventHandler&&this.performanceEventHandler({kind:t,durationMs:r})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(t){this.delayUpdateProjectGraph(t),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(t,r){if(t.length){for(let i of t)r&&i.clearSourceMapperCache(),this.delayUpdateProjectGraph(i);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(t,r){R.assert(r===void 0||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");let i=DB(t),o=i8(t,r),s=vhe(t);i.allowNonTsExtensions=!0;let l=r&&this.toCanonicalFileName(r);l?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(l,i),this.watchOptionsForInferredProjectsPerProjectRoot.set(l,o||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(l,s)):(this.compilerOptionsForInferredProjects=i,this.watchOptionsForInferredProjects=o,this.typeAcquisitionForInferredProjects=s);for(let d of this.inferredProjects)(l?d.projectRootPath===l:!d.projectRootPath||!this.compilerOptionsForInferredProjectsPerProjectRoot.has(d.projectRootPath))&&(d.setCompilerOptions(i),d.setTypeAcquisition(s),d.setWatchOptions(o?.watchOptions),d.setProjectErrors(o?.errors),d.compileOnSaveEnabled=i.compileOnSave,d.markAsDirty(),this.delayUpdateProjectGraph(d));this.delayEnsureProjectForOpenFiles()}findProject(t){if(t!==void 0)return X_e(t)?kke(t,this.inferredProjects):this.findExternalProjectByProjectName(t)||this.findConfiguredProjectByProjectName(dl(t))}forEachProject(t){this.externalProjects.forEach(t),this.configuredProjects.forEach(t),this.inferredProjects.forEach(t)}forEachEnabledProject(t){this.forEachProject(r=>{!r.isOrphan()&&r.languageServiceEnabled&&t(r)})}getDefaultProjectForFile(t,r){return r?this.ensureDefaultProjectForFile(t):this.tryGetDefaultProjectForFile(t)}tryGetDefaultProjectForFile(t){let r=Co(t)?this.getScriptInfoForNormalizedPath(t):t;return r&&!r.isOrphan()?r.getDefaultProject():void 0}ensureDefaultProjectForFile(t){return this.tryGetDefaultProjectForFile(t)||this.doEnsureDefaultProjectForFile(t)}doEnsureDefaultProjectForFile(t){this.ensureProjectStructuresUptoDate();let r=Co(t)?this.getScriptInfoForNormalizedPath(t):t;return r?r.getDefaultProject():(this.logErrorForScriptInfoNotFound(Co(t)?t:t.fileName),$y.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(t){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(t)}ensureProjectStructuresUptoDate(){let t=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();let r=i=>{t=zp(i)||t};this.externalProjects.forEach(r),this.configuredProjects.forEach(r),this.inferredProjects.forEach(r),t&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(t){let r=this.getScriptInfoForNormalizedPath(t);return r&&r.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(t){let r=this.getScriptInfoForNormalizedPath(t);return{...this.hostConfiguration.preferences,...r&&r.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(t,r){r===2?this.handleDeletedFile(t):t.isScriptOpen()||(t.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(t.containingProjects,!1),this.handleSourceMapProjects(t))}handleSourceMapProjects(t){if(t.sourceMapFilePath)if(Co(t.sourceMapFilePath)){let r=this.getScriptInfoForPath(t.sourceMapFilePath);this.delayUpdateSourceInfoProjects(r&&r.sourceInfos)}else this.delayUpdateSourceInfoProjects(t.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(t.sourceInfos),t.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(t.declarationInfoPath)}delayUpdateSourceInfoProjects(t){t&&t.forEach((r,i)=>this.delayUpdateProjectsOfScriptInfoPath(i))}delayUpdateProjectsOfScriptInfoPath(t){let r=this.getScriptInfoForPath(t);r&&this.delayUpdateProjectGraphs(r.containingProjects,!0)}handleDeletedFile(t){if(this.stopWatchingScriptInfo(t),!t.isScriptOpen()){this.deleteScriptInfo(t);let r=t.containingProjects.slice();if(t.detachAllProjects(),this.delayUpdateProjectGraphs(r,!1),this.handleSourceMapProjects(t),t.closeSourceMapFileWatcher(),t.declarationInfoPath){let i=this.getScriptInfoForPath(t.declarationInfoPath);i&&(i.sourceMapFilePath=void 0)}}}watchWildcardDirectory(t,r,i,o){let s=this.watchFactory.watchDirectory(t,d=>{let p=this.toPath(d),h=o.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(d,p);if(nc(p)==="package.json"&&!pO(p)&&(h&&h.fileExists||!h&&this.host.fileExists(d))){let y=this.getNormalizedAbsolutePath(d);this.logger.info(`Config: ${i} Detected new package.json: ${y}`),this.packageJsonCache.addOrUpdate(y,p),this.watchPackageJsonFile(y,p,l)}let m=this.findConfiguredProjectByProjectName(i);Cw({watchedDirPath:this.toPath(t),fileOrDirectory:d,fileOrDirectoryPath:p,configFileName:i,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:o.parsedCommandLine.options,program:m?.getCurrentProgram()||o.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:y=>this.logger.info(y),toPath:y=>this.toPath(y),getScriptKind:m?y=>m.getScriptKind(y):void 0})||(o.updateLevel!==2&&(o.updateLevel=1),o.projects.forEach((y,E)=>{if(!y)return;let S=this.getConfiguredProjectByCanonicalConfigFilePath(E);if(!S)return;let A=m===S?1:0;if(!(S.pendingUpdateLevel!==void 0&&S.pendingUpdateLevel>A))if(this.openFiles.has(p))if(R.checkDefined(this.getScriptInfoForPath(p)).isAttached(S)){let D=Math.max(A,S.openFileWatchTriggered.get(p)||0);S.openFileWatchTriggered.set(p,D)}else S.pendingUpdateLevel=A,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(S);else S.pendingUpdateLevel=A,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(S)}))},r,this.getWatchOptionsFromProjectWatchOptions(o.parsedCommandLine.watchOptions),Lc.WildcardDirectory,i),l={packageJsonWatches:void 0,close(){var d;s&&(s.close(),s=void 0,(d=l.packageJsonWatches)==null||d.forEach(p=>{p.projects.delete(l),p.close()}),l.packageJsonWatches=void 0)}};return l}delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,r){let i=this.configFileExistenceInfoCache.get(t);if(!i?.config)return!1;let o=!1;return i.config.updateLevel=2,i.config.projects.forEach((s,l)=>{let d=this.getConfiguredProjectByCanonicalConfigFilePath(l);if(d)if(o=!0,l===t){if(d.isInitialLoadPending())return;d.pendingUpdateLevel=2,d.pendingUpdateReason=r,this.delayUpdateProjectGraph(d)}else d.resolutionCache.removeResolutionsFromProjectReferenceRedirects(this.toPath(t)),this.delayUpdateProjectGraph(d)}),o}onConfigFileChanged(t,r){var i;let o=this.configFileExistenceInfoCache.get(t);if(r===2){o.exists=!1;let s=(i=o.config)!=null&&i.projects.has(t)?this.getConfiguredProjectByCanonicalConfigFilePath(t):void 0;s&&this.removeProject(s)}else o.exists=!0;this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,"Change in config file detected"),this.reloadConfiguredProjectForFiles(o.openFilesImpactedByConfigFile,!1,!0,r!==2?Qs:Ty,"Change in config file detected"),this.delayEnsureProjectForOpenFiles()}removeProject(t){switch(this.logger.info("`remove Project::"),t.print(!0,!0,!1),t.close(),R.shouldAssert(1)&&this.filenameToScriptInfo.forEach(r=>R.assert(!r.isAttached(t),"Found script Info still attached to project",()=>`${t.projectName}: ScriptInfos still attached: ${JSON.stringify(Oo(WC(this.filenameToScriptInfo.values(),i=>i.isAttached(t)?{fileName:i.fileName,projects:i.containingProjects.map(o=>o.projectName),hasMixedContent:i.hasMixedContent}:void 0)),void 0," ")}`)),this.pendingProjectUpdates.delete(t.getProjectName()),t.projectKind){case 2:uI(this.externalProjects,t),this.projectToSizeMap.delete(t.getProjectName());break;case 1:this.configuredProjects.delete(t.canonicalConfigFilePath),this.projectToSizeMap.delete(t.canonicalConfigFilePath);break;case 0:uI(this.inferredProjects,t);break}}assignOrphanScriptInfoToInferredProject(t,r){R.assert(t.isOrphan());let i=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(t.isDynamic?r||this.currentDirectory:oi(cp(t.fileName)?t.fileName:_o(t.fileName,r?this.getNormalizedAbsolutePath(r):this.currentDirectory)));if(i.addRoot(t),t.containingProjects[0]!==i&&(Sx(t.containingProjects,i),t.containingProjects.unshift(i)),i.updateGraph(),!this.useSingleInferredProject&&!i.projectRootPath)for(let o of this.inferredProjects){if(o===i||o.isOrphan())continue;let s=o.getRootScriptInfos();R.assert(s.length===1||!!o.projectRootPath),s.length===1&&gn(s[0].containingProjects,l=>l!==s[0].containingProjects[0]&&!l.isOrphan())&&o.removeFile(s[0],!0,!0)}return i}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach((t,r)=>{let i=this.getScriptInfoForPath(r);i.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(i,t)})}closeOpenFile(t,r){let i=t.isDynamic?!1:this.host.fileExists(t.fileName);t.close(i),this.stopWatchingConfigFilesForClosedScriptInfo(t);let o=this.toCanonicalFileName(t.fileName);this.openFilesWithNonRootedDiskPath.get(o)===t&&this.openFilesWithNonRootedDiskPath.delete(o);let s=!1;for(let l of t.containingProjects){if(LE(l)){t.hasMixedContent&&t.registerFileUpdate();let d=l.openFileWatchTriggered.get(t.path);d!==void 0&&(l.openFileWatchTriggered.delete(t.path),l.pendingUpdateLevel!==void 0&&l.pendingUpdateLevelthis.onConfigFileChanged(r,h),2e3,this.getWatchOptionsFromProjectWatchOptions((s=(o=l?.config)==null?void 0:o.parsedCommandLine)==null?void 0:s.watchOptions),Lc.ConfigFile,i));let d=l.config.projects;d.set(i.canonicalConfigFilePath,d.get(i.canonicalConfigFilePath)||!1)}configFileExistenceImpactsRootOfInferredProject(t){return t.openFilesImpactedByConfigFile&&zc(t.openFilesImpactedByConfigFile,Qs)}releaseParsedConfig(t,r){var i,o,s;let l=this.configFileExistenceInfoCache.get(t);(i=l.config)!=null&&i.projects.delete(r.canonicalConfigFilePath)&&((o=l.config)!=null&&o.projects.size||(l.config=void 0,$K(t,this.sharedExtendedConfigFileWatchers),R.checkDefined(l.watcher),(s=l.openFilesImpactedByConfigFile)!=null&&s.size?this.configFileExistenceImpactsRootOfInferredProject(l)?pz(Wc(oi(t)))||(l.watcher.close(),l.watcher=eZ):(l.watcher.close(),l.watcher=void 0):(l.watcher.close(),this.configFileExistenceInfoCache.delete(t))))}closeConfigFileWatcherOnReleaseOfOpenFile(t){t.watcher&&!t.config&&!this.configFileExistenceImpactsRootOfInferredProject(t)&&(t.watcher.close(),t.watcher=void 0)}stopWatchingConfigFilesForClosedScriptInfo(t){R.assert(!t.isScriptOpen()),this.forEachConfigFileLocation(t,r=>{var i,o,s;let l=this.configFileExistenceInfoCache.get(r);if(l){let d=(i=l.openFilesImpactedByConfigFile)==null?void 0:i.get(t.path);(o=l.openFilesImpactedByConfigFile)==null||o.delete(t.path),d&&this.closeConfigFileWatcherOnReleaseOfOpenFile(l),!((s=l.openFilesImpactedByConfigFile)!=null&&s.size)&&!l.config&&(R.assert(!l.watcher),this.configFileExistenceInfoCache.delete(r))}})}startWatchingConfigFilesForInferredProjectRoot(t){R.assert(t.isScriptOpen()),this.forEachConfigFileLocation(t,(r,i)=>{let o=this.configFileExistenceInfoCache.get(r);o||(o={exists:this.host.fileExists(i)},this.configFileExistenceInfoCache.set(r,o)),(o.openFilesImpactedByConfigFile||(o.openFilesImpactedByConfigFile=new Map)).set(t.path,!0),o.watcher||(o.watcher=pz(Wc(oi(r)))?this.watchFactory.watchFile(i,(s,l)=>this.onConfigFileChanged(r,l),2e3,this.hostConfiguration.watchOptions,Lc.ConfigFileForInferredRoot):eZ)})}stopWatchingConfigFilesForInferredProjectRoot(t){this.forEachConfigFileLocation(t,r=>{var i;let o=this.configFileExistenceInfoCache.get(r);(i=o?.openFilesImpactedByConfigFile)!=null&&i.has(t.path)&&(R.assert(t.isScriptOpen()),o.openFilesImpactedByConfigFile.set(t.path,!1),this.closeConfigFileWatcherOnReleaseOfOpenFile(o))})}forEachConfigFileLocation(t,r){if(this.serverMode!==0)return;R.assert(!$Q(t)||this.openFiles.has(t.path));let i=this.openFiles.get(t.path);if(R.checkDefined(this.getScriptInfo(t.path)).isDynamic)return;let s=oi(t.fileName),l=()=>mm(i,s,this.currentDirectory,!this.host.useCaseSensitiveFileNames),d=!i||!l(),p=!wke(t);do{if(p){let m=e8(s,this.currentDirectory,this.toCanonicalFileName),y=$r(s,"tsconfig.json"),E=r($r(m,"tsconfig.json"),y);if(E)return y;let S=$r(s,"jsconfig.json");if(E=r($r(m,"jsconfig.json"),S),E)return S;if(KW(m))break}let h=oi(s);if(h===s)break;s=h,p=!0}while(d||l())}findDefaultConfiguredProject(t){if(!t.isScriptOpen())return;let r=this.getConfigFileNameForFile(t),i=r&&this.findConfiguredProjectByProjectName(r);return i&&M1(i,t)?i:i?.getDefaultChildProjectFromProjectWithReferences(t)}getConfigFileNameForFile(t){if(!wke(t)){let i=this.configFileForOpenFiles.get(t.path);if(i!==void 0)return i||void 0}this.logger.info(`Search path: ${oi(t.fileName)}`);let r=this.forEachConfigFileLocation(t,(i,o)=>this.configFileExists(o,i,t));return r?this.logger.info(`For info: ${t.fileName} :: Config file name: ${r}`):this.logger.info(`For info: ${t.fileName} :: No config files found.`),$Q(t)&&this.configFileForOpenFiles.set(t.path,r||!1),r}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(Rhe),this.configuredProjects.forEach(Rhe),this.inferredProjects.forEach(Rhe),this.logger.info("Open files: "),this.openFiles.forEach((t,r)=>{let i=this.getScriptInfoForPath(r);this.logger.info(` FileName: ${i.fileName} ProjectRootPath: ${t}`),this.logger.info(` Projects: ${i.containingProjects.map(o=>o.getProjectName())}`)}),this.logger.endGroup())}findConfiguredProjectByProjectName(t){let r=this.toCanonicalFileName(t);return this.getConfiguredProjectByCanonicalConfigFilePath(r)}getConfiguredProjectByCanonicalConfigFilePath(t){return this.configuredProjects.get(t)}findExternalProjectByProjectName(t){return kke(t,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(t,r,i,o){if(r&&r.disableSizeLimit||!this.host.getFileSize)return;let s=CB;this.projectToSizeMap.set(t,0),this.projectToSizeMap.forEach(d=>s-=d||0);let l=0;for(let d of i){let p=o.getFileName(d);if(!WI(p)&&(l+=this.host.getFileSize(p),l>CB||l>s)){let h=i.map(m=>o.getFileName(m)).filter(m=>!WI(m)).map(m=>({name:m,size:this.host.getFileSize(m)})).sort((m,y)=>y.size-m.size).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${l}). Largest files: ${h.map(m=>`${m.name}:${m.size}`).join(", ")}`),p}}this.projectToSizeMap.set(t,l)}createExternalProject(t,r,i,o,s){let l=DB(i),d=i8(i,oi(Nd(t))),p=new RB(t,this,this.documentRegistry,l,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t,l,r,GB),i.compileOnSave===void 0?!0:i.compileOnSave,void 0,d?.watchOptions);return p.setProjectErrors(d?.errors),p.excludedFiles=s,this.addFilesToNonInferredProject(p,r,GB,o),this.externalProjects.push(p),p}sendProjectTelemetry(t){if(this.seenProjects.has(t.projectName)){The(t);return}if(this.seenProjects.set(t.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){The(t);return}let r=LE(t)?t.projectOptions:void 0;The(t);let i={projectId:this.host.createSHA256Hash(t.projectName),fileStats:n8(t.getScriptInfos(),!0),compilerOptions:cse(t.getCompilationSettings()),typeAcquisition:s(t.getTypeAcquisition()),extends:r&&r.configHasExtendsProperty,files:r&&r.configHasFilesProperty,include:r&&r.configHasIncludeProperty,exclude:r&&r.configHasExcludeProperty,compileOnSave:t.compileOnSaveEnabled,configFileName:o(),projectType:t instanceof RB?"external":"configured",languageServiceEnabled:t.languageServiceEnabled,version:qp};this.eventHandler({eventName:OB,data:i});function o(){return LE(t)&&OQ(t.getConfigFilePath())||"other"}function s({enable:l,include:d,exclude:p}){return{enable:l,include:d!==void 0&&d.length!==0,exclude:p!==void 0&&p.length!==0}}}addFilesToNonInferredProject(t,r,i,o){this.updateNonInferredProjectFiles(t,r,i),t.setTypeAcquisition(o),t.markAsDirty()}createConfiguredProject(t){var r;(r=rr)==null||r.instant(rr.Phase.Session,"createConfiguredProject",{configFilePath:t}),this.logger.info(`Creating configuration project ${t}`);let i=this.toCanonicalFileName(t),o=this.configFileExistenceInfoCache.get(i);o?o.exists=!0:this.configFileExistenceInfoCache.set(i,o={exists:!0}),o.config||(o.config={cachedDirectoryStructureHost:$3(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});let s=new qQ(t,i,this,this.documentRegistry,o.config.cachedDirectoryStructureHost);return this.configuredProjects.set(i,s),this.createConfigFileWatcherForParsedConfig(t,i,s),s}createConfiguredProjectWithDelayLoad(t,r){let i=this.createConfiguredProject(t);return i.pendingUpdateLevel=2,i.pendingUpdateReason=r,i}createAndLoadConfiguredProject(t,r){let i=this.createConfiguredProject(t);return this.loadConfiguredProject(i,r),i}createLoadAndUpdateConfiguredProject(t,r){let i=this.createAndLoadConfiguredProject(t,r);return i.updateGraph(),i}loadConfiguredProject(t,r){var i,o;(i=rr)==null||i.push(rr.Phase.Session,"loadConfiguredProject",{configFilePath:t.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(t,r);let s=fa(t.getConfigFilePath()),l=this.ensureParsedConfigUptoDate(s,t.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath),t),d=l.config.parsedCommandLine;R.assert(!!d.fileNames);let p=d.options;t.projectOptions||(t.projectOptions={configHasExtendsProperty:d.raw.extends!==void 0,configHasFilesProperty:d.raw.files!==void 0,configHasIncludeProperty:d.raw.include!==void 0,configHasExcludeProperty:d.raw.exclude!==void 0}),t.canConfigFileJsonReportNoInputFiles=TP(d.raw),t.setProjectErrors(d.options.configFile.parseDiagnostics),t.updateReferences(d.projectReferences);let h=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.canonicalConfigFilePath,p,d.fileNames,BB);h?(t.disableLanguageService(h),this.configFileExistenceInfoCache.forEach((y,E)=>this.stopWatchingWildCards(E,t))):(t.setCompilerOptions(p),t.setWatchOptions(d.watchOptions),t.enableLanguageService(),this.watchWildcards(s,l,t)),t.enablePluginsWithOptions(p);let m=d.fileNames.concat(t.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(t,m,BB,p,d.typeAcquisition,d.compileOnSave,d.watchOptions),(o=rr)==null||o.pop()}ensureParsedConfigUptoDate(t,r,i,o){var s,l,d;if(i.config){if(!i.config.updateLevel)return i;if(i.config.updateLevel===1)return this.reloadFileNamesOfParsedConfig(t,i.config),i}let p=((s=i.config)==null?void 0:s.cachedDirectoryStructureHost)||$3(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),h=SP(t,A=>this.host.readFile(A)),m=Qk(t,Co(h)?h:""),y=m.parseDiagnostics;Co(h)||y.push(h);let E=nw(m,p,oi(t),{},t,[],this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);E.errors.length&&y.push(...E.errors),this.logger.info(`Config: ${t} : ${JSON.stringify({rootNames:E.fileNames,options:E.options,watchOptions:E.watchOptions,projectReferences:E.projectReferences},void 0," ")}`);let S=(l=i.config)==null?void 0:l.parsedCommandLine;return i.config?(i.config.parsedCommandLine=E,i.config.watchedDirectoriesStale=!0,i.config.updateLevel=void 0):i.config={parsedCommandLine:E,cachedDirectoryStructureHost:p,projects:new Map},!S&&!W6(this.getWatchOptionsFromProjectWatchOptions(void 0),this.getWatchOptionsFromProjectWatchOptions(E.watchOptions))&&((d=i.watcher)==null||d.close(),i.watcher=void 0),this.createConfigFileWatcherForParsedConfig(t,r,o),Q3(r,E.options,this.sharedExtendedConfigFileWatchers,(A,N)=>this.watchFactory.watchFile(A,()=>{var D;Z3(this.extendedConfigCache,N,j=>this.toPath(j));let w=!1;(D=this.sharedExtendedConfigFileWatchers.get(N))==null||D.projects.forEach(j=>{w=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(j,`Change in extended config file ${A} detected`)||w}),w&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,Lc.ExtendedConfigFile,t),A=>this.toPath(A)),i}watchWildcards(t,{exists:r,config:i},o){if(i.projects.set(o.canonicalConfigFilePath,!0),r){if(i.watchedDirectories&&!i.watchedDirectoriesStale)return;i.watchedDirectoriesStale=!1,Dw(i.watchedDirectories||(i.watchedDirectories=new Map),i.parsedCommandLine.wildcardDirectories,(s,l)=>this.watchWildcardDirectory(s,l,t,i))}else{if(i.watchedDirectoriesStale=!1,!i.watchedDirectories)return;$u(i.watchedDirectories,Rf),i.watchedDirectories=void 0}}stopWatchingWildCards(t,r){let i=this.configFileExistenceInfoCache.get(t);!i.config||!i.config.projects.get(r.canonicalConfigFilePath)||(i.config.projects.set(r.canonicalConfigFilePath,!1),!zc(i.config.projects,Qs)&&(i.config.watchedDirectories&&($u(i.config.watchedDirectories,Rf),i.config.watchedDirectories=void 0),i.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(t,r,i){let o=t.getRootFilesMap(),s=new Map;for(let l of r){let d=i.getFileName(l),p=dl(d),h=t8(p),m;if(!h&&!t.fileExists(d)){m=e8(p,this.currentDirectory,this.toCanonicalFileName);let y=o.get(m);y?(y.info&&(t.removeFile(y.info,!1,!0),y.info=void 0),y.fileName=p):o.set(m,{fileName:p})}else{let y=i.getScriptKind(l,this.hostConfiguration.extraFileExtensions),E=i.hasMixedContent(l,this.hostConfiguration.extraFileExtensions),S=R.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(p,t.currentDirectory,y,E,t.directoryStructureHost));m=S.path;let A=o.get(m);!A||A.info!==S?(t.addRoot(S,p),S.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(S)):A.fileName=p}s.set(m,!0)}o.size>s.size&&o.forEach((l,d)=>{s.has(d)||(l.info?t.removeFile(l.info,t.fileExists(l.info.fileName),!0):o.delete(d))})}updateRootAndOptionsOfNonInferredProject(t,r,i,o,s,l,d){t.setCompilerOptions(o),t.setWatchOptions(d),l!==void 0&&(t.compileOnSaveEnabled=l),this.addFilesToNonInferredProject(t,r,i,s)}reloadFileNamesOfConfiguredProject(t){let r=this.reloadFileNamesOfParsedConfig(t.getConfigFilePath(),this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath).config);return t.updateErrorOnNoInputFiles(r),this.updateNonInferredProjectFiles(t,r.concat(t.getExternalFiles(1)),BB),t.markAsDirty(),t.updateGraph()}reloadFileNamesOfParsedConfig(t,r){if(r.updateLevel===void 0)return r.parsedCommandLine.fileNames;R.assert(r.updateLevel===1);let i=r.parsedCommandLine.options.configFile.configFileSpecs,o=AP(i,oi(t),r.parsedCommandLine.options,r.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return r.parsedCommandLine={...r.parsedCommandLine,fileNames:o},o}setFileNamesOfAutpImportProviderOrAuxillaryProject(t,r){this.updateNonInferredProjectFiles(t,r,BB)}reloadConfiguredProject(t,r,i,o){let s=t.getCachedDirectoryStructureHost();o&&this.clearSemanticCache(t),s.clearCache();let l=t.getConfigFilePath();this.logger.info(`${i?"Loading":"Reloading"} configured project ${l}`),this.loadConfiguredProject(t,r),t.updateGraph(),this.sendConfigFileDiagEvent(t,l)}clearSemanticCache(t){t.resolutionCache.clear(),t.getLanguageService(!1).cleanupSemanticCache(),t.cleanupProgram(),t.markAsDirty()}sendConfigFileDiagEvent(t,r){if(!this.eventHandler||this.suppressDiagnosticEvents)return;let i=t.getLanguageService().getCompilerOptionsDiagnostics();i.push(...t.getAllProjectErrors()),this.eventHandler({eventName:kB,data:{configFileName:t.getConfigFilePath(),diagnostics:i,triggerFile:r}})}getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r){if(!this.useInferredProjectPerProjectRoot||t.isDynamic&&r===void 0)return;if(r){let o=this.toCanonicalFileName(r);for(let s of this.inferredProjects)if(s.projectRootPath===o)return s;return this.createInferredProject(r,!1,r)}let i;for(let o of this.inferredProjects)o.projectRootPath&&mm(o.projectRootPath,t.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(i&&i.projectRootPath.length>o.projectRootPath.length||(i=o));return i}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return this.inferredProjects.length>0&&this.inferredProjects[0].projectRootPath===void 0?this.inferredProjects[0]:this.createInferredProject("",!0)}getOrCreateSingleInferredWithoutProjectRoot(t){R.assert(!this.useSingleInferredProject);let r=this.toCanonicalFileName(this.getNormalizedAbsolutePath(t));for(let i of this.inferredProjects)if(!i.projectRootPath&&i.isOrphan()&&i.canonicalCurrentDirectory===r)return i;return this.createInferredProject(t)}createInferredProject(t,r,i){let o=i&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(i)||this.compilerOptionsForInferredProjects,s,l;i&&(s=this.watchOptionsForInferredProjectsPerProjectRoot.get(i),l=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(i)),s===void 0&&(s=this.watchOptionsForInferredProjects),l===void 0&&(l=this.typeAcquisitionForInferredProjects),s=s||void 0;let d=new UQ(this,this.documentRegistry,o,s?.watchOptions,i,t,l);return d.setProjectErrors(s?.errors),r?this.inferredProjects.unshift(d):this.inferredProjects.push(d),d}getOrCreateScriptInfoNotOpenedByClient(t,r,i){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(dl(t),r,void 0,void 0,i)}getScriptInfo(t){return this.getScriptInfoForNormalizedPath(dl(t))}getScriptInfoOrConfig(t){let r=dl(t),i=this.getScriptInfoForNormalizedPath(r);if(i)return i;let o=this.configuredProjects.get(this.toPath(t));return o&&o.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(t){let r=Oo(this.filenameToScriptInfo.entries(),([i,o])=>({path:i,fileName:o.fileName}));this.logger.msg(`Could not find file ${JSON.stringify(t)}. +All files are: ${JSON.stringify(r)}`,"Err")}getSymlinkedProjects(t){let r;if(this.realpathToScriptInfos){let o=t.getRealpathIfDifferent();o&&gn(this.realpathToScriptInfos.get(o),i),gn(this.realpathToScriptInfos.get(t.path),i)}return r;function i(o){if(o!==t)for(let s of o.containingProjects)s.languageServiceEnabled&&!s.isOrphan()&&!s.getCompilerOptions().preserveSymlinks&&!t.isAttached(s)&&(r?zc(r,(l,d)=>d===o.path?!1:zo(l,s))||r.add(o.path,s):(r=Xp(),r.add(o.path,s)))}}watchClosedScriptInfo(t){if(R.assert(!t.fileWatcher),!t.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!ao(t.path,this.globalCacheLocationDirectoryPath))){let r=t.fileName.indexOf("/node_modules/");!this.host.getModifiedTime||r===-1?t.fileWatcher=this.watchFactory.watchFile(t.fileName,(i,o)=>this.onSourceFileChanged(t,o),500,this.hostConfiguration.watchOptions,Lc.ClosedScriptInfo):(t.mTime=this.getModifiedTime(t),t.fileWatcher=this.watchClosedScriptInfoInNodeModules(t.fileName.substring(0,r)))}}createNodeModulesWatcher(t,r){let i=this.watchFactory.watchDirectory(t,s=>{var l;let d=uz(this.toPath(s));if(!d)return;let p=nc(d);if((l=o.affectedModuleSpecifierCacheProjects)!=null&&l.size&&(p==="package.json"||p==="node_modules")&&o.affectedModuleSpecifierCacheProjects.forEach(h=>{var m;(m=h.getModuleSpecifierCache())==null||m.clear()}),o.refreshScriptInfoRefCount)if(r===d)this.refreshScriptInfosInDirectory(r);else{let h=this.getScriptInfoForPath(d);h?Fke(h)&&this.refreshScriptInfo(h):mI(d)||this.refreshScriptInfosInDirectory(d)}},1,this.hostConfiguration.watchOptions,Lc.NodeModules),o={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var s;i&&!o.refreshScriptInfoRefCount&&!((s=o.affectedModuleSpecifierCacheProjects)!=null&&s.size)&&(i.close(),i=void 0,this.nodeModulesWatchers.delete(r))}};return this.nodeModulesWatchers.set(r,o),o}watchPackageJsonsInNodeModules(t,r){var i;let o=this.toPath(t),s=this.nodeModulesWatchers.get(o)||this.createNodeModulesWatcher(t,o);return R.assert(!((i=s.affectedModuleSpecifierCacheProjects)!=null&&i.has(r))),(s.affectedModuleSpecifierCacheProjects||(s.affectedModuleSpecifierCacheProjects=new Set)).add(r),{close:()=>{var l;(l=s.affectedModuleSpecifierCacheProjects)==null||l.delete(r),s.close()}}}watchClosedScriptInfoInNodeModules(t){let r=t+"/node_modules",i=this.toPath(r),o=this.nodeModulesWatchers.get(i)||this.createNodeModulesWatcher(r,i);return o.refreshScriptInfoRefCount++,{close:()=>{o.refreshScriptInfoRefCount--,o.close()}}}getModifiedTime(t){return(this.host.getModifiedTime(t.fileName)||Mp).getTime()}refreshScriptInfo(t){let r=this.getModifiedTime(t);if(r!==t.mTime){let i=nV(t.mTime,r);t.mTime=r,this.onSourceFileChanged(t,i)}}refreshScriptInfosInDirectory(t){t=t+nl,this.filenameToScriptInfo.forEach(r=>{Fke(r)&&ao(r.path,t)&&this.refreshScriptInfo(r)})}stopWatchingScriptInfo(t){t.fileWatcher&&(t.fileWatcher.close(),t.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(t,r,i,o,s){if(cp(t)||t8(t))return this.getOrCreateScriptInfoWorker(t,r,!1,void 0,i,o,s);let l=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t));if(l)return l}getOrCreateScriptInfoOpenedByClientForNormalizedPath(t,r,i,o,s){return this.getOrCreateScriptInfoWorker(t,r,!0,i,o,s)}getOrCreateScriptInfoForNormalizedPath(t,r,i,o,s,l){return this.getOrCreateScriptInfoWorker(t,this.currentDirectory,r,i,o,s,l)}getOrCreateScriptInfoWorker(t,r,i,o,s,l,d){R.assert(o===void 0||i,"ScriptInfo needs to be opened by client to be able to set its user defined content");let p=e8(t,r,this.toCanonicalFileName),h=this.getScriptInfoForPath(p);if(!h){let m=t8(t);if(R.assert(cp(t)||m||i,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Oo(this.openFilesWithNonRootedDiskPath.keys())})} +Script info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),R.assert(!cp(t)||this.currentDirectory===r||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(t)),"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Oo(this.openFilesWithNonRootedDiskPath.keys())})} +Open script files with non rooted disk path opened with current directory context cannot have same canonical names`),R.assert(!m||this.currentDirectory===r||this.useInferredProjectPerProjectRoot,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Oo(this.openFilesWithNonRootedDiskPath.keys())})} +Dynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!i&&!m&&!(d||this.host).fileExists(t))return;h=new GQ(this.host,t,s,!!l,p,this.filenameToScriptInfoVersion.get(p)),this.filenameToScriptInfo.set(h.path,h),this.filenameToScriptInfoVersion.delete(h.path),i?!cp(t)&&(!m||this.currentDirectory!==r)&&this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(t),h):this.watchClosedScriptInfo(h)}return i&&(this.stopWatchingScriptInfo(h),h.open(o),l&&h.registerFileUpdate()),h}getScriptInfoForNormalizedPath(t){return!cp(t)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t))||this.getScriptInfoForPath(e8(t,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(t){return this.filenameToScriptInfo.get(t)}getDocumentPositionMapper(t,r,i){let o=this.getOrCreateScriptInfoNotOpenedByClient(r,t.currentDirectory,this.host);if(!o){i&&t.addGeneratedFileWatch(r,i);return}if(o.getSnapshot(),Co(o.sourceMapFilePath)){let m=this.getScriptInfoForPath(o.sourceMapFilePath);if(m&&(m.getSnapshot(),m.documentPositionMapper!==void 0))return m.sourceInfos=this.addSourceInfoToSourceMap(i,t,m.sourceInfos),m.documentPositionMapper?m.documentPositionMapper:void 0;o.sourceMapFilePath=void 0}else if(o.sourceMapFilePath){o.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(i,t,o.sourceMapFilePath.sourceInfos);return}else if(o.sourceMapFilePath!==void 0)return;let s,l,d=(m,y)=>{let E=this.getOrCreateScriptInfoNotOpenedByClient(m,t.currentDirectory,this.host);if(!E){l=y;return}s=E;let S=E.getSnapshot();return E.documentPositionMapper!==void 0?E.documentPositionMapper:lD(S)},p=t.projectName,h=PX({getCanonicalFileName:this.toCanonicalFileName,log:m=>this.logger.info(m),getSourceFileLike:m=>this.getSourceFileLike(m,p,o)},o.fileName,o.textStorage.getLineInfo(),d);return d=void 0,s?(o.sourceMapFilePath=s.path,s.declarationInfoPath=o.path,s.documentPositionMapper=h||!1,s.sourceInfos=this.addSourceInfoToSourceMap(i,t,s.sourceInfos)):l?o.sourceMapFilePath={watcher:this.addMissingSourceMapFile(t.currentDirectory===this.currentDirectory?l:_o(l,t.currentDirectory),o.path),sourceInfos:this.addSourceInfoToSourceMap(i,t)}:o.sourceMapFilePath=!1,h}addSourceInfoToSourceMap(t,r,i){if(t){let o=this.getOrCreateScriptInfoNotOpenedByClient(t,r.currentDirectory,r.directoryStructureHost);(i||(i=new Set)).add(o.path)}return i}addMissingSourceMapFile(t,r){return this.watchFactory.watchFile(t,()=>{let o=this.getScriptInfoForPath(r);o&&o.sourceMapFilePath&&!Co(o.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(o.containingProjects,!0),this.delayUpdateSourceInfoProjects(o.sourceMapFilePath.sourceInfos),o.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,Lc.MissingSourceMapFile)}getSourceFileLike(t,r,i){let o=r.projectName?r:this.findProject(r);if(o){let l=o.toPath(t),d=o.getSourceFile(l);if(d&&d.resolvedPath===l)return d}let s=this.getOrCreateScriptInfoNotOpenedByClient(t,(o||this).currentDirectory,o?o.directoryStructureHost:this.host);if(s){if(i&&Co(i.sourceMapFilePath)&&s!==i){let l=this.getScriptInfoForPath(i.sourceMapFilePath);l&&(l.sourceInfos||(l.sourceInfos=new Set)).add(s.path)}return s.cacheSourceFile?s.cacheSourceFile.sourceFile:(s.sourceFileLike||(s.sourceFileLike={get text(){return R.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:l=>{let d=s.positionToLineOffset(l);return{line:d.line-1,character:d.offset-1}},getPositionOfLineAndCharacter:(l,d,p)=>s.lineOffsetToPosition(l+1,d+1,p)}),s.sourceFileLike)}}setPerformanceEventHandler(t){this.performanceEventHandler=t}setHostConfiguration(t){var r;if(t.file){let i=this.getScriptInfoForNormalizedPath(dl(t.file));i&&(i.setOptions(PD(t.formatOptions),t.preferences),this.logger.info(`Host configuration update for file ${t.file}`))}else{if(t.hostInfo!==void 0&&(this.hostConfiguration.hostInfo=t.hostInfo,this.logger.info(`Host information ${t.hostInfo}`)),t.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,...PD(t.formatOptions)},this.logger.info("Format host information updated")),t.preferences){let{lazyConfiguredProjectsFromExternalProject:i,includePackageJsonAutoImports:o}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...t.preferences},i&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.externalProjectToConfiguredProjectMap.forEach(s=>s.forEach(l=>{!l.isClosed()&&l.hasExternalProjectRef()&&l.pendingUpdateLevel===2&&!this.pendingProjectUpdates.has(l.getProjectName())&&l.updateGraph()})),o!==t.preferences.includePackageJsonAutoImports&&this.forEachProject(s=>{s.onAutoImportProviderSettingsChanged()})}t.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=t.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),t.watchOptions&&(this.hostConfiguration.watchOptions=(r=i8(t.watchOptions))==null?void 0:r.watchOptions,this.logger.info(`Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`))}}getWatchOptions(t){return this.getWatchOptionsFromProjectWatchOptions(t.getWatchOptions())}getWatchOptionsFromProjectWatchOptions(t){return t&&this.hostConfiguration.watchOptions?{...this.hostConfiguration.watchOptions,...t}:t||this.hostConfiguration.watchOptions}closeLog(){this.logger.close()}reloadProjects(){this.logger.info("reload projects."),this.filenameToScriptInfo.forEach(t=>{this.openFiles.has(t.path)||t.fileWatcher&&this.onSourceFileChanged(t,this.host.fileExists(t.fileName)?1:2)}),this.pendingProjectUpdates.forEach((t,r)=>{this.throttledOperations.cancel(r),this.pendingProjectUpdates.delete(r)}),this.throttledOperations.cancel(Dhe),this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(t=>{t.config&&(t.config.updateLevel=2)}),this.reloadConfiguredProjectForFiles(this.openFiles,!0,!1,Ty,"User requested reload projects"),this.externalProjects.forEach(t=>{this.clearSemanticCache(t),t.updateGraph()}),this.inferredProjects.forEach(t=>this.clearSemanticCache(t)),this.ensureProjectForOpenFiles(),this.logger.info("After reloading projects.."),this.printProjects()}reloadConfiguredProjectForFiles(t,r,i,o,s){let l=new Map,d=p=>{l.has(p.canonicalConfigFilePath)||(l.set(p.canonicalConfigFilePath,!0),this.reloadConfiguredProject(p,s,!1,r))};t?.forEach((p,h)=>{if(this.configFileForOpenFiles.delete(h),!o(p))return;let m=this.getScriptInfoForPath(h);R.assert(m.isScriptOpen());let y=this.getConfigFileNameForFile(m);if(y){let E=this.findConfiguredProjectByProjectName(y)||this.createConfiguredProject(y);l.has(E.canonicalConfigFilePath)||(l.set(E.canonicalConfigFilePath,!0),i?(E.pendingUpdateLevel=2,E.pendingUpdateReason=s,r&&this.clearSemanticCache(E),this.delayUpdateProjectGraph(E)):(this.reloadConfiguredProject(E,s,!1,r),M1(E,m)||MD(E,m.path,A=>(d(A),M1(A,m)),1)&&MD(E,void 0,d,0)))}})}removeRootOfInferredProjectIfNowPartOfOtherProject(t){R.assert(t.containingProjects.length>0);let r=t.containingProjects[0];!r.isOrphan()&&ND(r)&&r.isRoot(t)&&gn(t.containingProjects,i=>i!==r&&!i.isOrphan())&&r.removeFile(t,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects(),this.openFiles.forEach((t,r)=>{let i=this.getScriptInfoForPath(r);i.isOrphan()?this.assignOrphanScriptInfoToInferredProject(i,t):this.removeRootOfInferredProjectIfNowPartOfOtherProject(i)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(zp),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(t,r,i,o){return this.openClientFileWithNormalizedPath(dl(t),r,i,!1,o?dl(o):void 0)}getOriginalLocationEnsuringConfiguredProject(t,r){let i=t.isSourceOfProjectReferenceRedirect(r.fileName),o=i?r:t.getSourceMapper().tryGetSourcePosition(r);if(!o)return;let{fileName:s}=o,l=this.getScriptInfo(s);if(!l&&!this.host.fileExists(s))return;let d={fileName:dl(s),path:this.toPath(s)},p=this.getConfigFileNameForFile(d);if(!p)return;let h=this.findConfiguredProjectByProjectName(p);if(!h){if(t.getCompilerOptions().disableReferencedProjectLoad)return i?r:l?.containingProjects.length?o:r;h=this.createAndLoadConfiguredProject(p,`Creating project for original file: ${d.fileName}${r!==o?" for location: "+r.fileName:""}`)}zp(h);let m=S=>{let A=this.getScriptInfo(s);return A&&M1(S,A)};if(h.isSolution()||!m(h)){if(h=MD(h,s,S=>(zp(S),m(S)?S:void 0),2,`Creating project referenced in solution ${h.projectName} to find possible configured project for original file: ${d.fileName}${r!==o?" for location: "+r.fileName:""}`),!h)return;if(h===t)return o}E(h);let y=this.getScriptInfo(s);if(!y||!y.containingProjects.length)return;return y.containingProjects.forEach(S=>{LE(S)&&E(S)}),o;function E(S){t.originalConfiguredProjects||(t.originalConfiguredProjects=new Set),t.originalConfiguredProjects.add(S.canonicalConfigFilePath)}}fileExists(t){return!!this.getScriptInfoForNormalizedPath(t)||this.host.fileExists(t)}findExternalProjectContainingOpenScriptInfo(t){return Vr(this.externalProjects,r=>(zp(r),r.containsScriptInfo(t)))}getOrCreateOpenScriptInfo(t,r,i,o,s){let l=this.getOrCreateScriptInfoOpenedByClientForNormalizedPath(t,s?this.getNormalizedAbsolutePath(s):this.currentDirectory,r,i,o);return this.openFiles.set(l.path,s),l}assignProjectToOpenedScriptInfo(t){let r,i,o=this.findExternalProjectContainingOpenScriptInfo(t),s,l,d=!1;return!o&&this.serverMode===0&&(r=this.getConfigFileNameForFile(t),r&&(o=this.findConfiguredProjectByProjectName(r),o?zp(o):(o=this.createLoadAndUpdateConfiguredProject(r,`Creating possible configured project for ${t.fileName} to open`),d=!0),l=o.containsScriptInfo(t)?o:void 0,s=o,M1(o,t)||MD(o,t.path,p=>{if(zp(p),So(s)?s.push(p):s=[o,p],M1(p,t))return l=p,p;!l&&p.containsScriptInfo(t)&&(l=p)},2,`Creating project referenced in solution ${o.projectName} to find possible configured project for ${t.fileName} to open`),l?(r=l.getConfigFilePath(),(l!==o||d)&&(i=l.getAllProjectErrors(),this.sendConfigFileDiagEvent(l,t.fileName))):r=void 0,this.createAncestorProjects(t,o))),t.containingProjects.forEach(zp),t.isOrphan()&&(So(s)?s.forEach(p=>this.sendConfigFileDiagEvent(p,t.fileName)):s&&this.sendConfigFileDiagEvent(s,t.fileName),R.assert(this.openFiles.has(t.path)),this.assignOrphanScriptInfoToInferredProject(t,this.openFiles.get(t.path))),R.assert(!t.isOrphan()),{configFileName:r,configFileErrors:i,retainProjects:s}}createAncestorProjects(t,r){if(t.isAttached(r))for(;;){if(!r.isInitialLoadPending()&&(!r.getCompilerOptions().composite||r.getCompilerOptions().disableSolutionSearching))return;let i=this.getConfigFileNameForFile({fileName:r.getConfigFilePath(),path:t.path,configFileInfo:!0});if(!i)return;let o=this.findConfiguredProjectByProjectName(i)||this.createConfiguredProjectWithDelayLoad(i,`Creating project possibly referencing default composite project ${r.getProjectName()} of open file ${t.fileName}`);o.isInitialLoadPending()&&o.setPotentialProjectReference(r.canonicalConfigFilePath),r=o}}loadAncestorProjectTree(t){t=t||$te(this.configuredProjects,(i,o)=>o.isInitialLoadPending()?void 0:[i,!0]);let r=new Set;for(let i of Oo(this.configuredProjects.values()))Oke(i,o=>t.has(o))&&zp(i),this.ensureProjectChildren(i,t,r)}ensureProjectChildren(t,r,i){var o;if(!Jb(i,t.canonicalConfigFilePath)||t.getCompilerOptions().disableReferencedProjectLoad)return;let s=(o=t.getCurrentProgram())==null?void 0:o.getResolvedProjectReferences();if(s)for(let l of s){if(!l)continue;let d=pJ(l.references,m=>r.has(m.sourceFile.path)?m:void 0);if(!d)continue;let p=dl(l.sourceFile.fileName),h=t.projectService.findConfiguredProjectByProjectName(p)||t.projectService.createAndLoadConfiguredProject(p,`Creating project referenced by : ${t.projectName} as it references project ${d.sourceFile.fileName}`);zp(h),this.ensureProjectChildren(h,r,i)}}cleanupAfterOpeningFile(t){this.removeOrphanConfiguredProjects(t);for(let r of this.inferredProjects.slice())r.isOrphan()&&this.removeProject(r);this.removeOrphanScriptInfos()}openClientFileWithNormalizedPath(t,r,i,o,s){let l=this.getOrCreateOpenScriptInfo(t,r,i,o,s),{retainProjects:d,...p}=this.assignProjectToOpenedScriptInfo(l);return this.cleanupAfterOpeningFile(d),this.telemetryOnOpenFile(l),this.printProjects(),p}removeOrphanConfiguredProjects(t){let r=new Map(this.configuredProjects),i=l=>{!l.isOrphan()&&l.originalConfiguredProjects&&l.originalConfiguredProjects.forEach((d,p)=>{let h=this.getConfiguredProjectByCanonicalConfigFilePath(p);return h&&s(h)})};t&&(So(t)?t.forEach(s):s(t)),this.inferredProjects.forEach(i),this.externalProjects.forEach(i),this.configuredProjects.forEach(l=>{l.hasOpenRef()?s(l):r.has(l.canonicalConfigFilePath)&&Wke(l,d=>o(d)&&s(l))}),r.forEach(l=>this.removeProject(l));function o(l){return l.hasOpenRef()||!r.has(l.canonicalConfigFilePath)}function s(l){r.delete(l.canonicalConfigFilePath)&&(i(l),Wke(l,s))}}removeOrphanScriptInfos(){let t=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(r=>{if(!r.isScriptOpen()&&r.isOrphan()&&!r.isContainedByBackgroundProject()){if(!r.sourceMapFilePath)return;let i;if(Co(r.sourceMapFilePath)){let o=this.getScriptInfoForPath(r.sourceMapFilePath);i=o&&o.sourceInfos}else i=r.sourceMapFilePath.sourceInfos;if(!i||!uh(i,o=>{let s=this.getScriptInfoForPath(o);return!!s&&(s.isScriptOpen()||!s.isOrphan())}))return}if(t.delete(r.path),r.sourceMapFilePath){let i;if(Co(r.sourceMapFilePath)){t.delete(r.sourceMapFilePath);let o=this.getScriptInfoForPath(r.sourceMapFilePath);i=o&&o.sourceInfos}else i=r.sourceMapFilePath.sourceInfos;i&&i.forEach((o,s)=>t.delete(s))}}),t.forEach(r=>{this.stopWatchingScriptInfo(r),this.deleteScriptInfo(r),r.closeSourceMapFileWatcher()})}telemetryOnOpenFile(t){if(this.serverMode!==0||!this.eventHandler||!t.isJavaScript()||!Em(this.allJsFilesForOpenFileTelemetry,t.path))return;let r=this.ensureDefaultProjectForFile(t);if(!r.languageServiceEnabled)return;let i=r.getSourceFile(t.path),o=!!i&&!!i.checkJsDirective;this.eventHandler({eventName:QQ,data:{info:{checkJs:o}}})}closeClientFile(t,r){let i=this.getScriptInfoForNormalizedPath(dl(t)),o=i?this.closeOpenFile(i,r):!1;return r||this.printProjects(),o}collectChanges(t,r,i,o){for(let s of r){let l=Vr(t,d=>d.projectName===s.getProjectName());o.push(s.getChangesSinceVersion(l&&l.version,i))}}synchronizeProjectList(t,r){let i=[];return this.collectChanges(t,this.externalProjects,r,i),this.collectChanges(t,this.configuredProjects.values(),r,i),this.collectChanges(t,this.inferredProjects,r,i),i}applyChangesInOpenFiles(t,r,i){let o,s=!1;if(t)for(let d of t){let p=this.getOrCreateOpenScriptInfo(dl(d.fileName),d.content,XQ(d.scriptKind),d.hasMixedContent,d.projectRootPath?dl(d.projectRootPath):void 0);(o||(o=[])).push(p)}if(r)for(let d of r){let p=this.getScriptInfo(d.fileName);R.assert(!!p),this.applyChangesToFile(p,d.changes)}if(i)for(let d of i)s=this.closeClientFile(d,!0)||s;let l;o&&(l=va(o,d=>this.assignProjectToOpenedScriptInfo(d).retainProjects)),s&&this.assignOrphanScriptInfosToInferredProject(),o?(this.cleanupAfterOpeningFile(l),o.forEach(d=>this.telemetryOnOpenFile(d)),this.printProjects()):Nn(i)&&this.printProjects()}applyChangesToFile(t,r){for(let i of r)t.editContent(i.span.start,i.span.start+i.span.length,i.newText)}closeConfiguredProjectReferencedFromExternalProject(t){t?.forEach(r=>{r.isClosed()||(r.deleteExternalProjectReference(),r.hasOpenRef()||this.removeProject(r))})}closeExternalProject(t,r){let i=dl(t),o=this.externalProjectToConfiguredProjectMap.get(i);if(o)this.closeConfiguredProjectReferencedFromExternalProject(o),this.externalProjectToConfiguredProjectMap.delete(i);else{let s=this.findExternalProjectByProjectName(t);s&&this.removeProject(s)}r&&this.printProjects()}openExternalProjects(t){let r=h0(this.externalProjects,i=>i.getProjectName(),i=>!0);uh(this.externalProjectToConfiguredProjectMap,i=>{r.set(i,!0)});for(let i of t)this.openExternalProject(i,!1),r.delete(i.projectFileName);uh(r,i=>{this.closeExternalProject(i,!1)}),this.printProjects()}static escapeFilenameForRegex(t){return t.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=ZQ}applySafeList(t){let r=t.typeAcquisition;R.assert(!!r,"proj.typeAcquisition should be set by now");let i=this.applySafeListWorker(t,t.rootFiles,r);return i?.excludedFiles??[]}applySafeListWorker(t,r,i){if(i.enable===!1||i.disableFilenameBasedTypeAcquisition)return;let o=i.include||(i.include=[]),s=[],l=r.map(y=>Nd(y.fileName));for(let y of Object.keys(this.safelist)){let E=this.safelist[y];for(let S of l)if(E.match.test(S)){if(this.logger.info(`Excluding files based on rule ${y} matching file '${S}'`),E.types)for(let A of E.types)o.includes(A)||o.push(A);if(E.exclude)for(let A of E.exclude){let N=S.replace(E.match,(...D)=>A.map(w=>typeof w=="number"?Co(D[w])?Dbe.escapeFilenameForRegex(D[w]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${y} - not enough groups`),"\\*"):w).join(""));s.includes(N)||s.push(N)}else{let A=Dbe.escapeFilenameForRegex(S);s.includes(A)||s.push(A)}}}let d=s.map(y=>new RegExp(y,"i")),p,h;for(let y=0;yE.test(l[y])))m(y);else{if(i.enable){let E=nc(oh(l[y]));if(Sl(E,"js")){let S=Su(E),A=UG(S),N=this.legacySafelist.get(A);if(N!==void 0){this.logger.info(`Excluded '${l[y]}' because it matched ${A} from the legacy safelist`),m(y),o.includes(N)||o.push(N);continue}}}/^.+[.-]min\.js$/.test(l[y])?m(y):p?.push(r[y])}return h?{rootFiles:p,excludedFiles:h}:void 0;function m(y){h||(R.assert(!p),p=r.slice(0,y),h=[]),h.push(l[y])}}openExternalProject(t,r){let i=this.findExternalProjectByProjectName(t.projectFileName),o=this.externalProjectToConfiguredProjectMap.get(t.projectFileName),s,l=[];for(let d of t.rootFiles){let p=dl(d.fileName);if(OQ(p)){if(this.serverMode===0&&this.host.fileExists(p)){let h=this.findConfiguredProjectByProjectName(p);h||(h=this.getHostPreferences().lazyConfiguredProjectsFromExternalProject?this.createConfiguredProjectWithDelayLoad(p,`Creating configured project in external project: ${t.projectFileName}`):this.createLoadAndUpdateConfiguredProject(p,`Creating configured project in external project: ${t.projectFileName}`)),o?.has(h)||h.addExternalProjectReference(),(s??(s=new Set)).add(h),o?.delete(h)}}else l.push(d)}if(s)this.externalProjectToConfiguredProjectMap.set(t.projectFileName,s),i&&this.removeProject(i);else{this.externalProjectToConfiguredProjectMap.delete(t.projectFileName);let d=t.typeAcquisition||{};d.include=d.include||[],d.exclude=d.exclude||[],d.enable===void 0&&(d.enable=ghe(l.map(m=>m.fileName)));let p=this.applySafeListWorker(t,l,d),h=p?.excludedFiles??[];if(l=p?.rootFiles??l,i){i.excludedFiles=h;let m=DB(t.options),y=i8(t.options,i.getCurrentDirectory()),E=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.projectFileName,m,l,GB);E?i.disableLanguageService(E):i.enableLanguageService(),i.setProjectErrors(y?.errors),this.updateRootAndOptionsOfNonInferredProject(i,l,GB,m,d,t.options.compileOnSave,y?.watchOptions),i.updateGraph()}else this.createExternalProject(t.projectFileName,l,t.options,d,h).updateGraph()}this.closeConfiguredProjectReferencedFromExternalProject(o),r&&this.printProjects()}hasDeferredExtension(){for(let t of this.hostConfiguration.extraFileExtensions)if(t.scriptKind===7)return!0;return!1}requestEnablePlugin(t,r,i){if(!this.host.importPlugin&&!this.host.require){this.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}if(this.logger.info(`Enabling plugin ${r.name} from candidate paths: ${i.join(",")}`),!r.name||_w(r.name).rest){this.logger.info(`Skipped loading plugin ${r.name||JSON.stringify(r)} because only package name is allowed plugin name`);return}if(this.host.importPlugin){let o=rA.importServicePluginAsync(r,i,this.host,l=>this.logger.info(l));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let s=this.pendingPluginEnablements.get(t);s||this.pendingPluginEnablements.set(t,s=[]),s.push(o);return}this.endEnablePlugin(t,rA.importServicePluginSync(r,i,this.host,o=>this.logger.info(o)))}endEnablePlugin(t,{pluginConfigEntry:r,resolvedModule:i,errorLogs:o}){var s;if(i){let l=(s=this.currentPluginConfigOverrides)==null?void 0:s.get(r.name);if(l){let d=r.name;r=l,r.name=d}t.enableProxy(i,r)}else gn(o,l=>this.logger.info(l)),this.logger.info(`Couldn't find ${r.name}`)}hasNewPluginEnablementRequests(){return!!this.pendingPluginEnablements}hasPendingPluginEnablements(){return!!this.currentPluginEnablementPromise}async waitForPendingPlugins(){for(;this.currentPluginEnablementPromise;)await this.currentPluginEnablementPromise}enableRequestedPlugins(){this.pendingPluginEnablements&&this.enableRequestedPluginsAsync()}async enableRequestedPluginsAsync(){if(this.currentPluginEnablementPromise&&await this.waitForPendingPlugins(),!this.pendingPluginEnablements)return;let t=Oo(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(t),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(t){R.assert(this.currentPluginEnablementPromise===void 0),await Promise.all(mn(t,([r,i])=>this.enableRequestedPluginsForProjectAsync(r,i))),this.currentPluginEnablementPromise=void 0,this.sendProjectsUpdatedInBackgroundEvent()}async enableRequestedPluginsForProjectAsync(t,r){let i=await Promise.all(r);if(!t.isClosed()){for(let o of i)this.endEnablePlugin(t,o);this.delayUpdateProjectGraph(t)}}configurePlugin(t){this.forEachEnabledProject(r=>r.onPluginConfigurationChanged(t.pluginName,t.configuration)),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(t.pluginName,t.configuration)}getPackageJsonsVisibleToFile(t,r,i){let o=this.packageJsonCache,s=i&&this.toPath(i),l=[],d=p=>{switch(o.directoryHasPackageJson(p)){case 3:return o.searchDirectoryAndAncestors(p),d(p);case-1:let h=$r(p,"package.json");this.watchPackageJsonFile(h,this.toPath(h),r);let m=o.getInDirectory(p);m&&l.push(m)}if(s&&s===p)return!0};return hm(oi(t),d),l}getNearestAncestorDirectoryWithPackageJson(t){return hm(t,r=>{switch(this.packageJsonCache.directoryHasPackageJson(r)){case-1:return r;case 0:return;case 3:return this.host.fileExists($r(r,"package.json"))?r:void 0}})}watchPackageJsonFile(t,r,i){R.assert(i!==void 0);let o=(this.packageJsonFilesMap??(this.packageJsonFilesMap=new Map)).get(r);if(!o){let s=this.watchFactory.watchFile(t,(l,d)=>{switch(d){case 0:return R.fail();case 1:this.packageJsonCache.addOrUpdate(l,r),this.onPackageJsonChange(o);break;case 2:this.packageJsonCache.delete(r),this.onPackageJsonChange(o),o.projects.clear(),o.close()}},250,this.hostConfiguration.watchOptions,Lc.PackageJson);o={projects:new Set,close:()=>{var l;o.projects.size||!s||(s.close(),s=void 0,(l=this.packageJsonFilesMap)==null||l.delete(r),this.packageJsonCache.invalidate(r))}},this.packageJsonFilesMap.set(r,o)}o.projects.add(i),(i.packageJsonWatches??(i.packageJsonWatches=new Set)).add(o)}onPackageJsonChange(t){t.projects.forEach(r=>{var i;return(i=r.onPackageJsonChange)==null?void 0:i.call(r)})}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=cot())}},Che.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g,nZ=Che}});function Nhe(e){let t,r,i,o={get(p,h,m,y){if(!(!r||i!==l(p,m,y)))return r.get(h)},set(p,h,m,y,E,S){if(s(p,m,y).set(h,d(E,S,!1)),S){for(let A of E)if(A.isInNodeModules){let N=A.path.substring(0,A.path.indexOf(Sh)+Sh.length-1),D=e.toPath(N);t?.has(D)||(t||(t=new Map)).set(D,e.watchNodeModulesForPackageJsonChanges(N))}}},setModulePaths(p,h,m,y,E){let S=s(p,m,y),A=S.get(h);A?A.modulePaths=E:S.set(h,d(E,void 0,void 0))},setBlockedByPackageJsonDependencies(p,h,m,y,E){let S=s(p,m,y),A=S.get(h);A?A.isBlockedByPackageJsonDependencies=E:S.set(h,d(void 0,void 0,E))},clear(){t?.forEach(Km),r?.clear(),t?.clear(),i=void 0},count(){return r?r.size:0}};return R.isDebugging&&Object.defineProperty(o,"__cache",{get:()=>r}),o;function s(p,h,m){let y=l(p,h,m);return r&&i!==y&&o.clear(),i=y,r||(r=new Map)}function l(p,h,m){return`${p},${h.importModuleSpecifierEnding},${h.importModuleSpecifierPreference},${m.overrideImportMode}`}function d(p,h,m){return{modulePaths:p,moduleSpecifiers:h,isBlockedByPackageJsonDependencies:m}}}var uot=bt({"src/server/moduleSpecifierCache.ts"(){"use strict";ob()}});function Phe(e){let t=new Map,r=new Map;return{addOrUpdate:i,invalidate:o,delete:l=>{t.delete(l),r.set(oi(l),!0)},getInDirectory:l=>t.get(e.toPath($r(l,"package.json")))||void 0,directoryHasPackageJson:l=>s(e.toPath(l)),searchDirectoryAndAncestors:l=>{hm(l,d=>{let p=e.toPath(d);if(s(p)!==3)return!0;let h=$r(d,"package.json");uO(e,h)?i(h,$r(p,"package.json")):r.set(p,!0)})}};function i(l,d){let p=R.checkDefined(lX(l,e.host));t.set(d,p),r.delete(oi(d))}function o(l){t.delete(l),r.delete(oi(l))}function s(l){return t.has($r(l,"package.json"))?-1:r.has(l)?0:3}}var pot=bt({"src/server/packageJsonCache.ts"(){"use strict";ob()}});function fot(e){let t=e[0],r=e[1];return(1e9*t+r)/1e6}function Vke(e,t){if((ND(e)||jQ(e))&&e.isJsOnlyProject()){let r=e.getScriptInfoForNormalizedPath(t);return r&&!r.isJavaScript()}return!1}function mot(e){return Af(e)||!!e.emitDecoratorMetadata}function jke(e,t,r){let i=t.getScriptInfoForNormalizedPath(e);return{start:i.positionToLineOffset(r.start),end:i.positionToLineOffset(r.start+r.length),text:k_(r.messageText,` +`),code:r.code,category:rT(r),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,source:r.source,relatedInformation:mn(r.relatedInformation,rZ)}}function rZ(e){return e.file?{span:{start:a8(gs(e.file,e.start)),end:a8(gs(e.file,e.start+e.length)),file:e.file.fileName},message:k_(e.messageText,` `),category:rT(e),code:e.code}:{message:k_(e.messageText,` -`),category:rT(e),code:e.code}}function o8(e){return{line:e.line+1,offset:e.character+1}}function a8(e,t){let r=e.file&&o8(hs(e.file,e.start)),i=e.file&&o8(hs(e.file,e.start+e.length)),o=k_(e.messageText,` -`),{code:s,source:l}=e,d=rT(e),p={start:r,end:i,text:o,code:s,category:d,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:l,relatedInformation:mn(e.relatedInformation,rZ)};return t?{...p,fileName:e.file&&e.file.fileName}:p}function lot(e,t){return e.every(r=>Jl(r.span)Jl(r.span)i(s,e));return!To(r)&&r.symLinkedProjects&&r.symLinkedProjects.forEach((s,l)=>{let d=t(l);o.push(...va(s,p=>i(p,d)))}),m0(o,Ty)}function iZ(e){return VG(({textSpan:t})=>t.start+100003*t.length,Jq(e))}function dot(e,t,r,i,o,s,l){let d=Fke(e,t,r,!0,(m,y)=>m.getLanguageService().findRenameLocations(y.fileName,y.pos,i,o,s),(m,y)=>y(vM(m)));if(To(d))return d;let p=[],h=iZ(l);return d.forEach((m,y)=>{for(let E of m)!h.has(E)&&!oZ(vM(E),y)&&(p.push(E),h.add(E))}),p}function uot(e,t,r){let i=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,r),o=i&&Xc(i);return o&&!o.isLocal?{fileName:o.fileName,pos:o.textSpan.start}:void 0}function pot(e,t,r,i,o){var s,l;let d=Fke(e,t,r,!1,(y,E)=>(o.info(`Finding references to ${E.fileName} position ${E.pos} in project ${y.getProjectName()}`),y.getLanguageService().findReferences(E.fileName,E.pos)),(y,E)=>{E(vM(y.definition));for(let S of y.references)E(vM(S))});if(To(d))return d;let p=d.get(t);if(((l=(s=p?.[0])==null?void 0:s.references[0])==null?void 0:l.isDefinition)===void 0)d.forEach(y=>{for(let E of y)for(let S of E.references)delete S.isDefinition});else{let y=iZ(i);for(let S of p)for(let A of S.references)if(A.isDefinition){y.add(A);break}let E=new Set;for(;;){let S=!1;if(d.forEach((A,N)=>{if(E.has(N))return;N.getLanguageService().updateIsDefinitionOfReferencedSymbols(A,y)&&(E.add(N),S=!0)}),!S)break}d.forEach((S,A)=>{if(!E.has(A))for(let N of S)for(let D of N.references)D.isDefinition=!1})}let h=[],m=iZ(i);return d.forEach((y,E)=>{for(let S of y){let A=oZ(vM(S.definition),E),N=A===void 0?S.definition:{...S.definition,textSpan:gd(A.pos,S.definition.textSpan.length),fileName:A.fileName,contextSpan:_ot(S.definition,E)},D=Vr(h,w=>Kq(w.definition,N,i));D||(D={definition:N,references:[]},h.push(D));for(let w of S.references)!m.has(w)&&!oZ(vM(w),E)&&(m.add(w),D.references.push(w))}}),h.filter(y=>y.references.length!==0)}function Che(e,t,r){for(let i of To(e)?e:e.projects)r(i,t);!To(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((i,o)=>{for(let s of i)r(s,o)})}function Fke(e,t,r,i,o,s){let l=new Map,d=AL();d.enqueue({project:t,location:r}),Che(e,r.fileName,(N,D)=>{let w={fileName:D,pos:r.pos};d.enqueue({project:N,location:w})});let p=t.projectService,h=t.getCancellationToken(),m=uot(t,r,i),y=vu(()=>t.isSourceOfProjectReferenceRedirect(m.fileName)?m:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(m)),E=vu(()=>t.isSourceOfProjectReferenceRedirect(m.fileName)?m:t.getLanguageService().getSourceMapper().tryGetSourcePosition(m)),S=new Set;e:for(;!d.isEmpty();){for(;!d.isEmpty();){if(h.isCancellationRequested())break e;let{project:N,location:D}=d.dequeue();if(l.has(N)||zke(N,D)||(zp(N),!N.containsFile(dl(D.fileName))))continue;let w=A(N,D);l.set(N,w??_c),S.add(mot(N))}m&&(p.loadAncestorProjectTree(S),p.forEachEnabledProject(N=>{if(h.isCancellationRequested()||l.has(N))return;let D=fot(m,N,y,E);D&&d.enqueue({project:N,location:D})}))}if(l.size===1)return WG(l.values());return l;function A(N,D){let w=o(N,D);if(w){for(let j of w)s(j,K=>{let Y=p.getOriginalLocationEnsuringConfiguredProject(N,K);if(!Y)return;let B=p.getScriptInfo(Y.fileName);for(let z of B.containingProjects)!z.isOrphan()&&!l.has(z)&&d.enqueue({project:z,location:Y});let ce=p.getSymlinkedProjects(B);ce&&ce.forEach((z,Z)=>{for(let me of z)!me.isOrphan()&&!l.has(me)&&d.enqueue({project:me,location:{fileName:Z,pos:Y.pos}})})});return w}}}function fot(e,t,r,i){if(t.containsFile(dl(e.fileName))&&!zke(t,e))return e;let o=r();if(o&&t.containsFile(dl(o.fileName)))return o;let s=i();return s&&t.containsFile(dl(s.fileName))?s:void 0}function zke(e,t){if(!t)return!1;let r=e.getLanguageService().getProgram();if(!r)return!1;let i=r.getSourceFile(t.fileName);return!!i&&i.resolvedPath!==i.path&&i.resolvedPath!==e.toPath(t.fileName)}function mot(e){return ME(e)?e.canonicalConfigFilePath:e.getProjectName()}function vM({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function oZ(e,t){return QP(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function Bke(e,t){return Zz(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function _ot(e,t){return Xq(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function Th(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(Jl(e))}}function Nhe(e,t,r){let i=Th(e,r),o=t&&Th(t,r);return o?{...i,contextStart:o.start,contextEnd:o.end}:i}function hot(e,t){return{start:Gke(t,e.span.start),end:Gke(t,Jl(e.span)),newText:e.newText}}function Gke(e,t){return Ehe(e)?yot(e.getLineAndCharacterOfPosition(t)):e.positionToLineOffset(t)}function got(e,t){let r=e.ranges.map(i=>({start:t.positionToLineOffset(i.start),end:t.positionToLineOffset(i.start+i.length)}));return e.wordPattern?{ranges:r,wordPattern:e.wordPattern}:{ranges:r}}function yot(e){return{line:e.line+1,offset:e.character+1}}function vot(e){x.assert(e.textChanges.length===1);let t=Va(e.textChanges);return x.assert(t.span.start===0&&t.span.length===0),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:t.newText}]}}function Phe(e,t,r,i){let o=bot(e,t,i),{line:s,character:l}=Nx(hI(o),r);return{line:s+1,offset:l+1}}function bot(e,t,r){for(let{fileName:i,textChanges:o}of r)if(i===t)for(let s=o.length-1;s>=0;s--){let{newText:l,span:{start:d,length:p}}=o[s];e=e.slice(0,d)+l+e.slice(d+p)}return e}function Vke(e,{fileName:t,textSpan:r,contextSpan:i,isWriteAccess:o,isDefinition:s},{disableLineTextInReferences:l}){let d=x.checkDefined(e.getScriptInfo(t)),p=Nhe(r,i,d),h=l?void 0:Eot(d,p);return{file:t,...p,lineText:h,isWriteAccess:o,isDefinition:s}}function Eot(e,t){let r=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(r.start,Jl(r)).replace(/\r|\n/g,"")}function Sot(e){return e===void 0||e&&typeof e=="object"&&typeof e.exportName=="string"&&(e.fileName===void 0||typeof e.fileName=="string")&&(e.ambientModuleName===void 0||typeof e.ambientModuleName=="string"&&(e.isPackageJsonImport===void 0||typeof e.isPackageJsonImport=="boolean"))}var Mhe,Lhe,jke,khe,Uke,whe,Tot=bt({"src/server/session.ts"(){"use strict";ib(),iA(),lhe(),Mhe={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}},Lhe=zQ,jke=class{constructor(e){this.operationHost=e}startNew(e){this.complete(),this.requestId=this.operationHost.getCurrentRequestId(),this.executeAction(e)}complete(){this.requestId!==void 0&&(this.operationHost.sendRequestCompletedEvent(this.requestId),this.requestId=void 0),this.setTimerHandle(void 0),this.setImmediateId(void 0)}immediate(e,t){let r=this.requestId;x.assert(r===this.operationHost.getCurrentRequestId(),"immediate: incorrect request id"),this.setImmediateId(this.operationHost.getServerHost().setImmediate(()=>{this.immediateId=void 0,this.operationHost.executeWithRequestId(r,()=>this.executeAction(t))},e))}delay(e,t,r){let i=this.requestId;x.assert(i===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout(()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(i,()=>this.executeAction(r))},t,e))}executeAction(e){var t,r,i,o,s,l;let d=!1;try{this.operationHost.isCancellationRequested()?(d=!0,(t=rr)==null||t.instant(rr.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((r=rr)==null||r.push(rr.Phase.Session,"stepAction",{seq:this.requestId}),e(this),(i=rr)==null||i.pop())}catch(p){(o=rr)==null||o.popAll(),d=!0,p instanceof Rx?(s=rr)==null||s.instant(rr.Phase.Session,"stepCanceled",{seq:this.requestId}):((l=rr)==null||l.instant(rr.Phase.Session,"stepError",{seq:this.requestId,message:p.message}),this.operationHost.logError(p,`delayed processing of request ${this.requestId}`))}(d||!this.hasPendingWork())&&this.complete()}setTimerHandle(e){this.timerHandle!==void 0&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=e}setImmediateId(e){this.immediateId!==void 0&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=e}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}},khe=["openExternalProject","openExternalProjects","closeExternalProject","synchronizeProjectList","emit-output","compileOnSaveAffectedFileList","compileOnSaveEmitFile","compilerOptionsDiagnostics-full","encodedSemanticClassifications-full","semanticDiagnosticsSync","suggestionDiagnosticsSync","geterrForProject","reload","reloadProjects","getCodeFixes","getCodeFixes-full","getCombinedCodeFix","getCombinedCodeFix-full","applyCodeActionCommand","getSupportedCodeFixes","getApplicableRefactors","getMoveToRefactoringFileSuggestions","getEditsForRefactor","getEditsForRefactor-full","organizeImports","organizeImports-full","getEditsForFileRename","getEditsForFileRename-full","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls"],Uke=[...khe,"definition","definition-full","definitionAndBoundSpan","definitionAndBoundSpan-full","typeDefinition","implementation","implementation-full","references","references-full","rename","renameLocations-full","rename-full","quickinfo","quickinfo-full","completionInfo","completions","completions-full","completionEntryDetails","completionEntryDetails-full","signatureHelp","signatureHelp-full","navto","navto-full","documentHighlights","documentHighlights-full"],whe=class mte{constructor(t){this.changeSeq=0,this.handlers=new Map(Object.entries({status:()=>{let s={version:Jp};return this.requiredResponse(s)},openExternalProject:s=>(this.projectService.openExternalProject(s.arguments,!0),this.requiredResponse(!0)),openExternalProjects:s=>(this.projectService.openExternalProjects(s.arguments.projects),this.requiredResponse(!0)),closeExternalProject:s=>(this.projectService.closeExternalProject(s.arguments.projectFileName,!0),this.requiredResponse(!0)),synchronizeProjectList:s=>{let l=this.projectService.synchronizeProjectList(s.arguments.knownProjects,s.arguments.includeProjectReferenceRedirectInfo);if(!l.some(p=>p.projectErrors&&p.projectErrors.length!==0))return this.requiredResponse(l);let d=mn(l,p=>!p.projectErrors||p.projectErrors.length===0?p:{info:p.info,changes:p.changes,files:p.files,projectErrors:this.convertToDiagnosticsWithLinePosition(p.projectErrors,void 0)});return this.requiredResponse(d)},updateOpen:s=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(s.arguments.openFiles&&kC(s.arguments.openFiles,l=>({fileName:l.file,content:l.fileContent,scriptKind:l.scriptKindName,projectRootPath:l.projectRootPath})),s.arguments.changedFiles&&kC(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:OC(wG(l.textChanges),d=>{let p=x.checkDefined(this.projectService.getScriptInfo(l.fileName)),h=p.lineOffsetToPosition(d.start.line,d.start.offset),m=p.lineOffsetToPosition(d.end.line,d.end.offset);return h>=0?{span:{start:h,length:m-h},newText:d.newText}:void 0})})),s.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:s=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(s.arguments.openFiles,s.arguments.changedFiles&&kC(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:wG(l.changes)})),s.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired()),definition:s=>this.requiredResponse(this.getDefinition(s.arguments,!0)),"definition-full":s=>this.requiredResponse(this.getDefinition(s.arguments,!1)),definitionAndBoundSpan:s=>this.requiredResponse(this.getDefinitionAndBoundSpan(s.arguments,!0)),"definitionAndBoundSpan-full":s=>this.requiredResponse(this.getDefinitionAndBoundSpan(s.arguments,!1)),findSourceDefinition:s=>this.requiredResponse(this.findSourceDefinition(s.arguments)),"emit-output":s=>this.requiredResponse(this.getEmitOutput(s.arguments)),typeDefinition:s=>this.requiredResponse(this.getTypeDefinition(s.arguments)),implementation:s=>this.requiredResponse(this.getImplementation(s.arguments,!0)),"implementation-full":s=>this.requiredResponse(this.getImplementation(s.arguments,!1)),references:s=>this.requiredResponse(this.getReferences(s.arguments,!0)),"references-full":s=>this.requiredResponse(this.getReferences(s.arguments,!1)),rename:s=>this.requiredResponse(this.getRenameLocations(s.arguments,!0)),"renameLocations-full":s=>this.requiredResponse(this.getRenameLocations(s.arguments,!1)),"rename-full":s=>this.requiredResponse(this.getRenameInfo(s.arguments)),open:s=>(this.openClientFile(dl(s.arguments.file),s.arguments.fileContent,YQ(s.arguments.scriptKindName),s.arguments.projectRootPath?dl(s.arguments.projectRootPath):void 0),this.notRequired()),quickinfo:s=>this.requiredResponse(this.getQuickInfoWorker(s.arguments,!0)),"quickinfo-full":s=>this.requiredResponse(this.getQuickInfoWorker(s.arguments,!1)),getOutliningSpans:s=>this.requiredResponse(this.getOutliningSpans(s.arguments,!0)),outliningSpans:s=>this.requiredResponse(this.getOutliningSpans(s.arguments,!1)),todoComments:s=>this.requiredResponse(this.getTodoComments(s.arguments)),indentation:s=>this.requiredResponse(this.getIndentation(s.arguments)),nameOrDottedNameSpan:s=>this.requiredResponse(this.getNameOrDottedNameSpan(s.arguments)),breakpointStatement:s=>this.requiredResponse(this.getBreakpointStatement(s.arguments)),braceCompletion:s=>this.requiredResponse(this.isValidBraceCompletion(s.arguments)),docCommentTemplate:s=>this.requiredResponse(this.getDocCommentTemplate(s.arguments)),getSpanOfEnclosingComment:s=>this.requiredResponse(this.getSpanOfEnclosingComment(s.arguments)),fileReferences:s=>this.requiredResponse(this.getFileReferences(s.arguments,!0)),"fileReferences-full":s=>this.requiredResponse(this.getFileReferences(s.arguments,!1)),format:s=>this.requiredResponse(this.getFormattingEditsForRange(s.arguments)),formatonkey:s=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(s.arguments)),"format-full":s=>this.requiredResponse(this.getFormattingEditsForDocumentFull(s.arguments)),"formatonkey-full":s=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(s.arguments)),"formatRange-full":s=>this.requiredResponse(this.getFormattingEditsForRangeFull(s.arguments)),completionInfo:s=>this.requiredResponse(this.getCompletions(s.arguments,"completionInfo")),completions:s=>this.requiredResponse(this.getCompletions(s.arguments,"completions")),"completions-full":s=>this.requiredResponse(this.getCompletions(s.arguments,"completions-full")),completionEntryDetails:s=>this.requiredResponse(this.getCompletionEntryDetails(s.arguments,!1)),"completionEntryDetails-full":s=>this.requiredResponse(this.getCompletionEntryDetails(s.arguments,!0)),compileOnSaveAffectedFileList:s=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(s.arguments)),compileOnSaveEmitFile:s=>this.requiredResponse(this.emitFile(s.arguments)),signatureHelp:s=>this.requiredResponse(this.getSignatureHelpItems(s.arguments,!0)),"signatureHelp-full":s=>this.requiredResponse(this.getSignatureHelpItems(s.arguments,!1)),"compilerOptionsDiagnostics-full":s=>this.requiredResponse(this.getCompilerOptionsDiagnostics(s.arguments)),"encodedSyntacticClassifications-full":s=>this.requiredResponse(this.getEncodedSyntacticClassifications(s.arguments)),"encodedSemanticClassifications-full":s=>this.requiredResponse(this.getEncodedSemanticClassifications(s.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:s=>this.requiredResponse(this.getSemanticDiagnosticsSync(s.arguments)),syntacticDiagnosticsSync:s=>this.requiredResponse(this.getSyntacticDiagnosticsSync(s.arguments)),suggestionDiagnosticsSync:s=>this.requiredResponse(this.getSuggestionDiagnosticsSync(s.arguments)),geterr:s=>(this.errorCheck.startNew(l=>this.getDiagnostics(l,s.arguments.delay,s.arguments.files)),this.notRequired()),geterrForProject:s=>(this.errorCheck.startNew(l=>this.getDiagnosticsForProject(l,s.arguments.delay,s.arguments.file)),this.notRequired()),change:s=>(this.change(s.arguments),this.notRequired()),configure:s=>(this.projectService.setHostConfiguration(s.arguments),this.doOutput(void 0,"configure",s.seq,!0),this.notRequired()),reload:s=>(this.reload(s.arguments,s.seq),this.requiredResponse({reloadFinished:!0})),saveto:s=>{let l=s.arguments;return this.saveToTmp(l.file,l.tmpfile),this.notRequired()},close:s=>{let l=s.arguments;return this.closeClientFile(l.file),this.notRequired()},navto:s=>this.requiredResponse(this.getNavigateToItems(s.arguments,!0)),"navto-full":s=>this.requiredResponse(this.getNavigateToItems(s.arguments,!1)),brace:s=>this.requiredResponse(this.getBraceMatching(s.arguments,!0)),"brace-full":s=>this.requiredResponse(this.getBraceMatching(s.arguments,!1)),navbar:s=>this.requiredResponse(this.getNavigationBarItems(s.arguments,!0)),"navbar-full":s=>this.requiredResponse(this.getNavigationBarItems(s.arguments,!1)),navtree:s=>this.requiredResponse(this.getNavigationTree(s.arguments,!0)),"navtree-full":s=>this.requiredResponse(this.getNavigationTree(s.arguments,!1)),documentHighlights:s=>this.requiredResponse(this.getDocumentHighlights(s.arguments,!0)),"documentHighlights-full":s=>this.requiredResponse(this.getDocumentHighlights(s.arguments,!1)),compilerOptionsForInferredProjects:s=>(this.setCompilerOptionsForInferredProjects(s.arguments),this.requiredResponse(!0)),projectInfo:s=>this.requiredResponse(this.getProjectInfo(s.arguments)),reloadProjects:()=>(this.projectService.reloadProjects(),this.notRequired()),jsxClosingTag:s=>this.requiredResponse(this.getJsxClosingTag(s.arguments)),linkedEditingRange:s=>this.requiredResponse(this.getLinkedEditingRange(s.arguments)),getCodeFixes:s=>this.requiredResponse(this.getCodeFixes(s.arguments,!0)),"getCodeFixes-full":s=>this.requiredResponse(this.getCodeFixes(s.arguments,!1)),getCombinedCodeFix:s=>this.requiredResponse(this.getCombinedCodeFix(s.arguments,!0)),"getCombinedCodeFix-full":s=>this.requiredResponse(this.getCombinedCodeFix(s.arguments,!1)),applyCodeActionCommand:s=>this.requiredResponse(this.applyCodeActionCommand(s.arguments)),getSupportedCodeFixes:s=>this.requiredResponse(this.getSupportedCodeFixes(s.arguments)),getApplicableRefactors:s=>this.requiredResponse(this.getApplicableRefactors(s.arguments)),getEditsForRefactor:s=>this.requiredResponse(this.getEditsForRefactor(s.arguments,!0)),getMoveToRefactoringFileSuggestions:s=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(s.arguments)),"getEditsForRefactor-full":s=>this.requiredResponse(this.getEditsForRefactor(s.arguments,!1)),organizeImports:s=>this.requiredResponse(this.organizeImports(s.arguments,!0)),"organizeImports-full":s=>this.requiredResponse(this.organizeImports(s.arguments,!1)),getEditsForFileRename:s=>this.requiredResponse(this.getEditsForFileRename(s.arguments,!0)),"getEditsForFileRename-full":s=>this.requiredResponse(this.getEditsForFileRename(s.arguments,!1)),configurePlugin:s=>(this.configurePlugin(s.arguments),this.doOutput(void 0,"configurePlugin",s.seq,!0),this.notRequired()),selectionRange:s=>this.requiredResponse(this.getSmartSelectionRange(s.arguments,!0)),"selectionRange-full":s=>this.requiredResponse(this.getSmartSelectionRange(s.arguments,!1)),prepareCallHierarchy:s=>this.requiredResponse(this.prepareCallHierarchy(s.arguments)),provideCallHierarchyIncomingCalls:s=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(s.arguments)),provideCallHierarchyOutgoingCalls:s=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(s.arguments)),toggleLineComment:s=>this.requiredResponse(this.toggleLineComment(s.arguments,!0)),"toggleLineComment-full":s=>this.requiredResponse(this.toggleLineComment(s.arguments,!1)),toggleMultilineComment:s=>this.requiredResponse(this.toggleMultilineComment(s.arguments,!0)),"toggleMultilineComment-full":s=>this.requiredResponse(this.toggleMultilineComment(s.arguments,!1)),commentSelection:s=>this.requiredResponse(this.commentSelection(s.arguments,!0)),"commentSelection-full":s=>this.requiredResponse(this.commentSelection(s.arguments,!1)),uncommentSelection:s=>this.requiredResponse(this.uncommentSelection(s.arguments,!0)),"uncommentSelection-full":s=>this.requiredResponse(this.uncommentSelection(s.arguments,!1)),provideInlayHints:s=>this.requiredResponse(this.provideInlayHints(s.arguments))})),this.host=t.host,this.cancellationToken=t.cancellationToken,this.typingsInstaller=t.typingsInstaller||xB,this.byteLength=t.byteLength,this.hrtime=t.hrtime,this.logger=t.logger,this.canUseEvents=t.canUseEvents,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=t.noGetErrOnBackgroundUpdate;let{throttleWaitMilliseconds:r}=t;this.eventHandler=this.canUseEvents?t.eventHandler||(s=>this.defaultEventHandler(s)):void 0;let i={executeWithRequestId:(s,l)=>this.executeWithRequestId(s,l),getCurrentRequestId:()=>this.currentRequestId,getServerHost:()=>this.host,logError:(s,l)=>this.logError(s,l),sendRequestCompletedEvent:s=>this.sendRequestCompletedEvent(s),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new jke(i);let o={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:t.useSingleInferredProject,useInferredProjectPerProjectRoot:t.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:r,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:t.globalPlugins,pluginProbeLocations:t.pluginProbeLocations,allowLocalPluginLoads:t.allowLocalPluginLoads,typesMapLocation:t.typesMapLocation,serverMode:t.serverMode,session:this,canUseWatchEvents:t.canUseWatchEvents,incrementalVerifier:t.incrementalVerifier};switch(this.projectService=new nZ(o),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new FQ(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:khe.forEach(s=>this.handlers.set(s,l=>{throw new Error(`Request: ${l.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:Uke.forEach(s=>this.handlers.set(s,l=>{throw new Error(`Request: ${l.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:x.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(t){this.event({request_seq:t},"requestCompleted")}addPerformanceData(t,r){this.performanceData||(this.performanceData={}),this.performanceData[t]=(this.performanceData[t]??0)+r}performanceEventHandler(t){switch(t.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",t.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",t.durationMs);break}}defaultEventHandler(t){switch(t.eventName){case i8:this.projectsUpdatedInBackgroundEvent(t.data.openFiles);break;case PB:this.event({projectName:t.data.project.getProjectName(),reason:t.data.reason},t.eventName);break;case MB:this.event({projectName:t.data.project.getProjectName()},t.eventName);break;case LB:case WB:case FB:case zB:this.event(t.data,t.eventName);break;case kB:this.event({triggerFile:t.data.triggerFile,configFile:t.data.configFileName,diagnostics:mn(t.data.diagnostics,r=>a8(r,!0))},t.eventName);break;case wB:{this.event({projectName:t.data.project.getProjectName(),languageServiceEnabled:t.data.languageServiceEnabled},t.eventName);break}case OB:{this.event({telemetryEventName:t.eventName,payload:t.data},"telemetry");break}}}projectsUpdatedInBackgroundEvent(t){this.projectService.logger.info(`got projects updated in background ${t}`),t.length&&(!this.suppressDiagnosticEvents&&!this.noGetErrOnBackgroundUpdate&&(this.projectService.logger.info(`Queueing diagnostics update for ${t}`),this.errorCheck.startNew(r=>this.updateErrorCheck(r,t,100,!0))),this.event({openFiles:t},i8))}logError(t,r){this.logErrorWorker(t,r)}logErrorWorker(t,r,i){let o="Exception on executing command "+r;if(t.message&&(o+=`: -`+HP(t.message),t.stack&&(o+=` -`+HP(t.stack))),this.logger.hasLevel(3)){if(i)try{let{file:s,project:l}=this.getFileAndProject(i),d=l.getScriptInfoForNormalizedPath(s);if(d){let p=cD(d.getSnapshot());o+=` +${s}${i}`}function Lhe(e,t){return{seq:0,type:"event",event:e,body:t}}function hot(e,t,r,i){let o=OC(So(r)?r:r.projects,s=>i(s,e));return!So(r)&&r.symLinkedProjects&&r.symLinkedProjects.forEach((s,l)=>{let d=t(l);o.push(...va(s,p=>i(p,d)))}),_0(o,Ay)}function iZ(e){return VG(({textSpan:t})=>t.start+100003*t.length,Jq(e))}function got(e,t,r,i,o,s,l){let d=Uke(e,t,r,!0,(m,y)=>m.getLanguageService().findRenameLocations(y.fileName,y.pos,i,o,s),(m,y)=>y(bM(m)));if(So(d))return d;let p=[],h=iZ(l);return d.forEach((m,y)=>{for(let E of m)!h.has(E)&&!oZ(bM(E),y)&&(p.push(E),h.add(E))}),p}function yot(e,t,r){let i=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,r),o=i&&Jc(i);return o&&!o.isLocal?{fileName:o.fileName,pos:o.textSpan.start}:void 0}function vot(e,t,r,i,o){var s,l;let d=Uke(e,t,r,!1,(y,E)=>(o.info(`Finding references to ${E.fileName} position ${E.pos} in project ${y.getProjectName()}`),y.getLanguageService().findReferences(E.fileName,E.pos)),(y,E)=>{E(bM(y.definition));for(let S of y.references)E(bM(S))});if(So(d))return d;let p=d.get(t);if(((l=(s=p?.[0])==null?void 0:s.references[0])==null?void 0:l.isDefinition)===void 0)d.forEach(y=>{for(let E of y)for(let S of E.references)delete S.isDefinition});else{let y=iZ(i);for(let S of p)for(let A of S.references)if(A.isDefinition){y.add(A);break}let E=new Set;for(;;){let S=!1;if(d.forEach((A,N)=>{if(E.has(N))return;N.getLanguageService().updateIsDefinitionOfReferencedSymbols(A,y)&&(E.add(N),S=!0)}),!S)break}d.forEach((S,A)=>{if(!E.has(A))for(let N of S)for(let D of N.references)D.isDefinition=!1})}let h=[],m=iZ(i);return d.forEach((y,E)=>{for(let S of y){let A=oZ(bM(S.definition),E),N=A===void 0?S.definition:{...S.definition,textSpan:_d(A.pos,S.definition.textSpan.length),fileName:A.fileName,contextSpan:Sot(S.definition,E)},D=Vr(h,w=>Kq(w.definition,N,i));D||(D={definition:N,references:[]},h.push(D));for(let w of S.references)!m.has(w)&&!oZ(bM(w),E)&&(m.add(w),D.references.push(w))}}),h.filter(y=>y.references.length!==0)}function khe(e,t,r){for(let i of So(e)?e:e.projects)r(i,t);!So(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((i,o)=>{for(let s of i)r(s,o)})}function Uke(e,t,r,i,o,s){let l=new Map,d=IL();d.enqueue({project:t,location:r}),khe(e,r.fileName,(N,D)=>{let w={fileName:D,pos:r.pos};d.enqueue({project:N,location:w})});let p=t.projectService,h=t.getCancellationToken(),m=yot(t,r,i),y=bu(()=>t.isSourceOfProjectReferenceRedirect(m.fileName)?m:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(m)),E=bu(()=>t.isSourceOfProjectReferenceRedirect(m.fileName)?m:t.getLanguageService().getSourceMapper().tryGetSourcePosition(m)),S=new Set;e:for(;!d.isEmpty();){for(;!d.isEmpty();){if(h.isCancellationRequested())break e;let{project:N,location:D}=d.dequeue();if(l.has(N)||Hke(N,D)||(zp(N),!N.containsFile(dl(D.fileName))))continue;let w=A(N,D);l.set(N,w??_c),S.add(Eot(N))}m&&(p.loadAncestorProjectTree(S),p.forEachEnabledProject(N=>{if(h.isCancellationRequested()||l.has(N))return;let D=bot(m,N,y,E);D&&d.enqueue({project:N,location:D})}))}if(l.size===1)return WG(l.values());return l;function A(N,D){let w=o(N,D);if(w){for(let j of w)s(j,K=>{let Y=p.getOriginalLocationEnsuringConfiguredProject(N,K);if(!Y)return;let B=p.getScriptInfo(Y.fileName);for(let z of B.containingProjects)!z.isOrphan()&&!l.has(z)&&d.enqueue({project:z,location:Y});let ce=p.getSymlinkedProjects(B);ce&&ce.forEach((z,ee)=>{for(let me of z)!me.isOrphan()&&!l.has(me)&&d.enqueue({project:me,location:{fileName:ee,pos:Y.pos}})})});return w}}}function bot(e,t,r,i){if(t.containsFile(dl(e.fileName))&&!Hke(t,e))return e;let o=r();if(o&&t.containsFile(dl(o.fileName)))return o;let s=i();return s&&t.containsFile(dl(s.fileName))?s:void 0}function Hke(e,t){if(!t)return!1;let r=e.getLanguageService().getProgram();if(!r)return!1;let i=r.getSourceFile(t.fileName);return!!i&&i.resolvedPath!==i.path&&i.resolvedPath!==e.toPath(t.fileName)}function Eot(e){return LE(e)?e.canonicalConfigFilePath:e.getProjectName()}function bM({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function oZ(e,t){return ZP(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function Kke(e,t){return Zz(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function Sot(e,t){return Xq(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function Ah(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(Jl(e))}}function whe(e,t,r){let i=Ah(e,r),o=t&&Ah(t,r);return o?{...i,contextStart:o.start,contextEnd:o.end}:i}function Tot(e,t){return{start:Jke(t,e.span.start),end:Jke(t,Jl(e.span)),newText:e.newText}}function Jke(e,t){return xhe(e)?Iot(e.getLineAndCharacterOfPosition(t)):e.positionToLineOffset(t)}function Aot(e,t){let r=e.ranges.map(i=>({start:t.positionToLineOffset(i.start),end:t.positionToLineOffset(i.start+i.length)}));return e.wordPattern?{ranges:r,wordPattern:e.wordPattern}:{ranges:r}}function Iot(e){return{line:e.line+1,offset:e.character+1}}function xot(e){R.assert(e.textChanges.length===1);let t=Va(e.textChanges);return R.assert(t.span.start===0&&t.span.length===0),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:t.newText}]}}function Ohe(e,t,r,i){let o=Rot(e,t,i),{line:s,character:l}=Cx(hI(o),r);return{line:s+1,offset:l+1}}function Rot(e,t,r){for(let{fileName:i,textChanges:o}of r)if(i===t)for(let s=o.length-1;s>=0;s--){let{newText:l,span:{start:d,length:p}}=o[s];e=e.slice(0,d)+l+e.slice(d+p)}return e}function qke(e,{fileName:t,textSpan:r,contextSpan:i,isWriteAccess:o,isDefinition:s},{disableLineTextInReferences:l}){let d=R.checkDefined(e.getScriptInfo(t)),p=whe(r,i,d),h=l?void 0:Dot(d,p);return{file:t,...p,lineText:h,isWriteAccess:o,isDefinition:s}}function Dot(e,t){let r=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(r.start,Jl(r)).replace(/\r|\n/g,"")}function Cot(e){return e===void 0||e&&typeof e=="object"&&typeof e.exportName=="string"&&(e.fileName===void 0||typeof e.fileName=="string")&&(e.ambientModuleName===void 0||typeof e.ambientModuleName=="string"&&(e.isPackageJsonImport===void 0||typeof e.isPackageJsonImport=="boolean"))}var Whe,Fhe,Xke,zhe,Yke,Bhe,Not=bt({"src/server/session.ts"(){"use strict";ob(),iA(),fhe(),Whe={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}},Fhe=zQ,Xke=class{constructor(e){this.operationHost=e}startNew(e){this.complete(),this.requestId=this.operationHost.getCurrentRequestId(),this.executeAction(e)}complete(){this.requestId!==void 0&&(this.operationHost.sendRequestCompletedEvent(this.requestId),this.requestId=void 0),this.setTimerHandle(void 0),this.setImmediateId(void 0)}immediate(e,t){let r=this.requestId;R.assert(r===this.operationHost.getCurrentRequestId(),"immediate: incorrect request id"),this.setImmediateId(this.operationHost.getServerHost().setImmediate(()=>{this.immediateId=void 0,this.operationHost.executeWithRequestId(r,()=>this.executeAction(t))},e))}delay(e,t,r){let i=this.requestId;R.assert(i===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout(()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(i,()=>this.executeAction(r))},t,e))}executeAction(e){var t,r,i,o,s,l;let d=!1;try{this.operationHost.isCancellationRequested()?(d=!0,(t=rr)==null||t.instant(rr.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((r=rr)==null||r.push(rr.Phase.Session,"stepAction",{seq:this.requestId}),e(this),(i=rr)==null||i.pop())}catch(p){(o=rr)==null||o.popAll(),d=!0,p instanceof xx?(s=rr)==null||s.instant(rr.Phase.Session,"stepCanceled",{seq:this.requestId}):((l=rr)==null||l.instant(rr.Phase.Session,"stepError",{seq:this.requestId,message:p.message}),this.operationHost.logError(p,`delayed processing of request ${this.requestId}`))}(d||!this.hasPendingWork())&&this.complete()}setTimerHandle(e){this.timerHandle!==void 0&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=e}setImmediateId(e){this.immediateId!==void 0&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=e}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}},zhe=["openExternalProject","openExternalProjects","closeExternalProject","synchronizeProjectList","emit-output","compileOnSaveAffectedFileList","compileOnSaveEmitFile","compilerOptionsDiagnostics-full","encodedSemanticClassifications-full","semanticDiagnosticsSync","suggestionDiagnosticsSync","geterrForProject","reload","reloadProjects","getCodeFixes","getCodeFixes-full","getCombinedCodeFix","getCombinedCodeFix-full","applyCodeActionCommand","getSupportedCodeFixes","getApplicableRefactors","getMoveToRefactoringFileSuggestions","getEditsForRefactor","getEditsForRefactor-full","organizeImports","organizeImports-full","getEditsForFileRename","getEditsForFileRename-full","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls"],Yke=[...zhe,"definition","definition-full","definitionAndBoundSpan","definitionAndBoundSpan-full","typeDefinition","implementation","implementation-full","references","references-full","rename","renameLocations-full","rename-full","quickinfo","quickinfo-full","completionInfo","completions","completions-full","completionEntryDetails","completionEntryDetails-full","signatureHelp","signatureHelp-full","navto","navto-full","documentHighlights","documentHighlights-full"],Bhe=class mte{constructor(t){this.changeSeq=0,this.handlers=new Map(Object.entries({status:()=>{let s={version:qp};return this.requiredResponse(s)},openExternalProject:s=>(this.projectService.openExternalProject(s.arguments,!0),this.requiredResponse(!0)),openExternalProjects:s=>(this.projectService.openExternalProjects(s.arguments.projects),this.requiredResponse(!0)),closeExternalProject:s=>(this.projectService.closeExternalProject(s.arguments.projectFileName,!0),this.requiredResponse(!0)),synchronizeProjectList:s=>{let l=this.projectService.synchronizeProjectList(s.arguments.knownProjects,s.arguments.includeProjectReferenceRedirectInfo);if(!l.some(p=>p.projectErrors&&p.projectErrors.length!==0))return this.requiredResponse(l);let d=mn(l,p=>!p.projectErrors||p.projectErrors.length===0?p:{info:p.info,changes:p.changes,files:p.files,projectErrors:this.convertToDiagnosticsWithLinePosition(p.projectErrors,void 0)});return this.requiredResponse(d)},updateOpen:s=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(s.arguments.openFiles&&wC(s.arguments.openFiles,l=>({fileName:l.file,content:l.fileContent,scriptKind:l.scriptKindName,projectRootPath:l.projectRootPath})),s.arguments.changedFiles&&wC(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:WC(wG(l.textChanges),d=>{let p=R.checkDefined(this.projectService.getScriptInfo(l.fileName)),h=p.lineOffsetToPosition(d.start.line,d.start.offset),m=p.lineOffsetToPosition(d.end.line,d.end.offset);return h>=0?{span:{start:h,length:m-h},newText:d.newText}:void 0})})),s.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:s=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(s.arguments.openFiles,s.arguments.changedFiles&&wC(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:wG(l.changes)})),s.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired()),definition:s=>this.requiredResponse(this.getDefinition(s.arguments,!0)),"definition-full":s=>this.requiredResponse(this.getDefinition(s.arguments,!1)),definitionAndBoundSpan:s=>this.requiredResponse(this.getDefinitionAndBoundSpan(s.arguments,!0)),"definitionAndBoundSpan-full":s=>this.requiredResponse(this.getDefinitionAndBoundSpan(s.arguments,!1)),findSourceDefinition:s=>this.requiredResponse(this.findSourceDefinition(s.arguments)),"emit-output":s=>this.requiredResponse(this.getEmitOutput(s.arguments)),typeDefinition:s=>this.requiredResponse(this.getTypeDefinition(s.arguments)),implementation:s=>this.requiredResponse(this.getImplementation(s.arguments,!0)),"implementation-full":s=>this.requiredResponse(this.getImplementation(s.arguments,!1)),references:s=>this.requiredResponse(this.getReferences(s.arguments,!0)),"references-full":s=>this.requiredResponse(this.getReferences(s.arguments,!1)),rename:s=>this.requiredResponse(this.getRenameLocations(s.arguments,!0)),"renameLocations-full":s=>this.requiredResponse(this.getRenameLocations(s.arguments,!1)),"rename-full":s=>this.requiredResponse(this.getRenameInfo(s.arguments)),open:s=>(this.openClientFile(dl(s.arguments.file),s.arguments.fileContent,YQ(s.arguments.scriptKindName),s.arguments.projectRootPath?dl(s.arguments.projectRootPath):void 0),this.notRequired()),quickinfo:s=>this.requiredResponse(this.getQuickInfoWorker(s.arguments,!0)),"quickinfo-full":s=>this.requiredResponse(this.getQuickInfoWorker(s.arguments,!1)),getOutliningSpans:s=>this.requiredResponse(this.getOutliningSpans(s.arguments,!0)),outliningSpans:s=>this.requiredResponse(this.getOutliningSpans(s.arguments,!1)),todoComments:s=>this.requiredResponse(this.getTodoComments(s.arguments)),indentation:s=>this.requiredResponse(this.getIndentation(s.arguments)),nameOrDottedNameSpan:s=>this.requiredResponse(this.getNameOrDottedNameSpan(s.arguments)),breakpointStatement:s=>this.requiredResponse(this.getBreakpointStatement(s.arguments)),braceCompletion:s=>this.requiredResponse(this.isValidBraceCompletion(s.arguments)),docCommentTemplate:s=>this.requiredResponse(this.getDocCommentTemplate(s.arguments)),getSpanOfEnclosingComment:s=>this.requiredResponse(this.getSpanOfEnclosingComment(s.arguments)),fileReferences:s=>this.requiredResponse(this.getFileReferences(s.arguments,!0)),"fileReferences-full":s=>this.requiredResponse(this.getFileReferences(s.arguments,!1)),format:s=>this.requiredResponse(this.getFormattingEditsForRange(s.arguments)),formatonkey:s=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(s.arguments)),"format-full":s=>this.requiredResponse(this.getFormattingEditsForDocumentFull(s.arguments)),"formatonkey-full":s=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(s.arguments)),"formatRange-full":s=>this.requiredResponse(this.getFormattingEditsForRangeFull(s.arguments)),completionInfo:s=>this.requiredResponse(this.getCompletions(s.arguments,"completionInfo")),completions:s=>this.requiredResponse(this.getCompletions(s.arguments,"completions")),"completions-full":s=>this.requiredResponse(this.getCompletions(s.arguments,"completions-full")),completionEntryDetails:s=>this.requiredResponse(this.getCompletionEntryDetails(s.arguments,!1)),"completionEntryDetails-full":s=>this.requiredResponse(this.getCompletionEntryDetails(s.arguments,!0)),compileOnSaveAffectedFileList:s=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(s.arguments)),compileOnSaveEmitFile:s=>this.requiredResponse(this.emitFile(s.arguments)),signatureHelp:s=>this.requiredResponse(this.getSignatureHelpItems(s.arguments,!0)),"signatureHelp-full":s=>this.requiredResponse(this.getSignatureHelpItems(s.arguments,!1)),"compilerOptionsDiagnostics-full":s=>this.requiredResponse(this.getCompilerOptionsDiagnostics(s.arguments)),"encodedSyntacticClassifications-full":s=>this.requiredResponse(this.getEncodedSyntacticClassifications(s.arguments)),"encodedSemanticClassifications-full":s=>this.requiredResponse(this.getEncodedSemanticClassifications(s.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:s=>this.requiredResponse(this.getSemanticDiagnosticsSync(s.arguments)),syntacticDiagnosticsSync:s=>this.requiredResponse(this.getSyntacticDiagnosticsSync(s.arguments)),suggestionDiagnosticsSync:s=>this.requiredResponse(this.getSuggestionDiagnosticsSync(s.arguments)),geterr:s=>(this.errorCheck.startNew(l=>this.getDiagnostics(l,s.arguments.delay,s.arguments.files)),this.notRequired()),geterrForProject:s=>(this.errorCheck.startNew(l=>this.getDiagnosticsForProject(l,s.arguments.delay,s.arguments.file)),this.notRequired()),change:s=>(this.change(s.arguments),this.notRequired()),configure:s=>(this.projectService.setHostConfiguration(s.arguments),this.doOutput(void 0,"configure",s.seq,!0),this.notRequired()),reload:s=>(this.reload(s.arguments,s.seq),this.requiredResponse({reloadFinished:!0})),saveto:s=>{let l=s.arguments;return this.saveToTmp(l.file,l.tmpfile),this.notRequired()},close:s=>{let l=s.arguments;return this.closeClientFile(l.file),this.notRequired()},navto:s=>this.requiredResponse(this.getNavigateToItems(s.arguments,!0)),"navto-full":s=>this.requiredResponse(this.getNavigateToItems(s.arguments,!1)),brace:s=>this.requiredResponse(this.getBraceMatching(s.arguments,!0)),"brace-full":s=>this.requiredResponse(this.getBraceMatching(s.arguments,!1)),navbar:s=>this.requiredResponse(this.getNavigationBarItems(s.arguments,!0)),"navbar-full":s=>this.requiredResponse(this.getNavigationBarItems(s.arguments,!1)),navtree:s=>this.requiredResponse(this.getNavigationTree(s.arguments,!0)),"navtree-full":s=>this.requiredResponse(this.getNavigationTree(s.arguments,!1)),documentHighlights:s=>this.requiredResponse(this.getDocumentHighlights(s.arguments,!0)),"documentHighlights-full":s=>this.requiredResponse(this.getDocumentHighlights(s.arguments,!1)),compilerOptionsForInferredProjects:s=>(this.setCompilerOptionsForInferredProjects(s.arguments),this.requiredResponse(!0)),projectInfo:s=>this.requiredResponse(this.getProjectInfo(s.arguments)),reloadProjects:()=>(this.projectService.reloadProjects(),this.notRequired()),jsxClosingTag:s=>this.requiredResponse(this.getJsxClosingTag(s.arguments)),linkedEditingRange:s=>this.requiredResponse(this.getLinkedEditingRange(s.arguments)),getCodeFixes:s=>this.requiredResponse(this.getCodeFixes(s.arguments,!0)),"getCodeFixes-full":s=>this.requiredResponse(this.getCodeFixes(s.arguments,!1)),getCombinedCodeFix:s=>this.requiredResponse(this.getCombinedCodeFix(s.arguments,!0)),"getCombinedCodeFix-full":s=>this.requiredResponse(this.getCombinedCodeFix(s.arguments,!1)),applyCodeActionCommand:s=>this.requiredResponse(this.applyCodeActionCommand(s.arguments)),getSupportedCodeFixes:s=>this.requiredResponse(this.getSupportedCodeFixes(s.arguments)),getApplicableRefactors:s=>this.requiredResponse(this.getApplicableRefactors(s.arguments)),getEditsForRefactor:s=>this.requiredResponse(this.getEditsForRefactor(s.arguments,!0)),getMoveToRefactoringFileSuggestions:s=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(s.arguments)),"getEditsForRefactor-full":s=>this.requiredResponse(this.getEditsForRefactor(s.arguments,!1)),organizeImports:s=>this.requiredResponse(this.organizeImports(s.arguments,!0)),"organizeImports-full":s=>this.requiredResponse(this.organizeImports(s.arguments,!1)),getEditsForFileRename:s=>this.requiredResponse(this.getEditsForFileRename(s.arguments,!0)),"getEditsForFileRename-full":s=>this.requiredResponse(this.getEditsForFileRename(s.arguments,!1)),configurePlugin:s=>(this.configurePlugin(s.arguments),this.doOutput(void 0,"configurePlugin",s.seq,!0),this.notRequired()),selectionRange:s=>this.requiredResponse(this.getSmartSelectionRange(s.arguments,!0)),"selectionRange-full":s=>this.requiredResponse(this.getSmartSelectionRange(s.arguments,!1)),prepareCallHierarchy:s=>this.requiredResponse(this.prepareCallHierarchy(s.arguments)),provideCallHierarchyIncomingCalls:s=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(s.arguments)),provideCallHierarchyOutgoingCalls:s=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(s.arguments)),toggleLineComment:s=>this.requiredResponse(this.toggleLineComment(s.arguments,!0)),"toggleLineComment-full":s=>this.requiredResponse(this.toggleLineComment(s.arguments,!1)),toggleMultilineComment:s=>this.requiredResponse(this.toggleMultilineComment(s.arguments,!0)),"toggleMultilineComment-full":s=>this.requiredResponse(this.toggleMultilineComment(s.arguments,!1)),commentSelection:s=>this.requiredResponse(this.commentSelection(s.arguments,!0)),"commentSelection-full":s=>this.requiredResponse(this.commentSelection(s.arguments,!1)),uncommentSelection:s=>this.requiredResponse(this.uncommentSelection(s.arguments,!0)),"uncommentSelection-full":s=>this.requiredResponse(this.uncommentSelection(s.arguments,!1)),provideInlayHints:s=>this.requiredResponse(this.provideInlayHints(s.arguments))})),this.host=t.host,this.cancellationToken=t.cancellationToken,this.typingsInstaller=t.typingsInstaller||xB,this.byteLength=t.byteLength,this.hrtime=t.hrtime,this.logger=t.logger,this.canUseEvents=t.canUseEvents,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=t.noGetErrOnBackgroundUpdate;let{throttleWaitMilliseconds:r}=t;this.eventHandler=this.canUseEvents?t.eventHandler||(s=>this.defaultEventHandler(s)):void 0;let i={executeWithRequestId:(s,l)=>this.executeWithRequestId(s,l),getCurrentRequestId:()=>this.currentRequestId,getServerHost:()=>this.host,logError:(s,l)=>this.logError(s,l),sendRequestCompletedEvent:s=>this.sendRequestCompletedEvent(s),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new Xke(i);let o={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:t.useSingleInferredProject,useInferredProjectPerProjectRoot:t.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:r,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:t.globalPlugins,pluginProbeLocations:t.pluginProbeLocations,allowLocalPluginLoads:t.allowLocalPluginLoads,typesMapLocation:t.typesMapLocation,serverMode:t.serverMode,session:this,canUseWatchEvents:t.canUseWatchEvents,incrementalVerifier:t.incrementalVerifier};switch(this.projectService=new nZ(o),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new FQ(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:zhe.forEach(s=>this.handlers.set(s,l=>{throw new Error(`Request: ${l.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:Yke.forEach(s=>this.handlers.set(s,l=>{throw new Error(`Request: ${l.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:R.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(t){this.event({request_seq:t},"requestCompleted")}addPerformanceData(t,r){this.performanceData||(this.performanceData={}),this.performanceData[t]=(this.performanceData[t]??0)+r}performanceEventHandler(t){switch(t.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",t.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",t.durationMs);break}}defaultEventHandler(t){switch(t.eventName){case o8:this.projectsUpdatedInBackgroundEvent(t.data.openFiles);break;case PB:this.event({projectName:t.data.project.getProjectName(),reason:t.data.reason},t.eventName);break;case MB:this.event({projectName:t.data.project.getProjectName()},t.eventName);break;case LB:case WB:case FB:case zB:this.event(t.data,t.eventName);break;case kB:this.event({triggerFile:t.data.triggerFile,configFile:t.data.configFileName,diagnostics:mn(t.data.diagnostics,r=>s8(r,!0))},t.eventName);break;case wB:{this.event({projectName:t.data.project.getProjectName(),languageServiceEnabled:t.data.languageServiceEnabled},t.eventName);break}case OB:{this.event({telemetryEventName:t.eventName,payload:t.data},"telemetry");break}}}projectsUpdatedInBackgroundEvent(t){this.projectService.logger.info(`got projects updated in background ${t}`),t.length&&(!this.suppressDiagnosticEvents&&!this.noGetErrOnBackgroundUpdate&&(this.projectService.logger.info(`Queueing diagnostics update for ${t}`),this.errorCheck.startNew(r=>this.updateErrorCheck(r,t,100,!0))),this.event({openFiles:t},o8))}logError(t,r){this.logErrorWorker(t,r)}logErrorWorker(t,r,i){let o="Exception on executing command "+r;if(t.message&&(o+=`: +`+KP(t.message),t.stack&&(o+=` +`+KP(t.stack))),this.logger.hasLevel(3)){if(i)try{let{file:s,project:l}=this.getFileAndProject(i),d=l.getScriptInfoForNormalizedPath(s);if(d){let p=lD(d.getSnapshot());o+=` -File text of ${i.file}:${HP(p)} +File text of ${i.file}:${KP(p)} `}}catch{}if(t.ProgramFiles){o+=` Program files: ${JSON.stringify(t.ProgramFiles)} @@ -377,13 +377,13 @@ Program files: ${JSON.stringify(t.ProgramFiles)} Projects:: `;let s=0,l=d=>{o+=` -Project '${d.projectName}' (${yM[d.projectKind]}) ${s} +Project '${d.projectName}' (${vM[d.projectKind]}) ${s} `,o+=d.filesToString(!0),o+=` ----------------------------------------------- -`,s++};this.projectService.externalProjects.forEach(l),this.projectService.configuredProjects.forEach(l),this.projectService.inferredProjects.forEach(l)}}this.logger.msg(o,"Err")}send(t){if(t.type==="event"&&!this.canUseEvents){this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${xE(t)}`);return}this.writeMessage(t)}writeMessage(t){var r;let i=Rhe(t,this.logger,this.byteLength,this.host.newLine);(r=nu)==null||r.logEvent(`Response message size: ${i.length}`),this.host.write(i)}event(t,r){this.send(Dhe(r,t))}doOutput(t,r,i,o,s){let l={seq:0,type:"response",command:r,request_seq:i,success:o,performanceData:this.performanceData};if(o){let d;if(To(t))l.body=t,d=t.metadata,delete t.metadata;else if(typeof t=="object")if(t.metadata){let{metadata:p,...h}=t;l.body=h,d=p}else l.body=t;else l.body=t;d&&(l.metadata=d)}else x.assert(t===void 0);s&&(l.message=s),this.send(l)}semanticCheck(t,r){var i,o;(i=rr)==null||i.push(rr.Phase.Session,"semanticCheck",{file:t,configFilePath:r.canonicalConfigFilePath});let s=Oke(r,t)?_c:r.getLanguageService().getSemanticDiagnostics(t).filter(l=>!!l.file);this.sendDiagnosticsEvent(t,r,s,"semanticDiag"),(o=rr)==null||o.pop()}syntacticCheck(t,r){var i,o;(i=rr)==null||i.push(rr.Phase.Session,"syntacticCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSyntacticDiagnostics(t),"syntaxDiag"),(o=rr)==null||o.pop()}suggestionCheck(t,r){var i,o;(i=rr)==null||i.push(rr.Phase.Session,"suggestionCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSuggestionDiagnostics(t),"suggestionDiag"),(o=rr)==null||o.pop()}sendDiagnosticsEvent(t,r,i,o){try{this.event({file:t,diagnostics:i.map(s=>Wke(t,r,s))},o)}catch(s){this.logError(s,o)}}updateErrorCheck(t,r,i,o=!0){x.assert(!this.suppressDiagnosticEvents);let s=this.changeSeq,l=Math.min(i,200),d=0,p=()=>{d++,r.length>d&&t.delay("checkOne",l,h)},h=()=>{if(this.changeSeq!==s)return;let m=r[d];if(No(m)&&(m=this.toPendingErrorCheck(m),!m)){p();return}let{fileName:y,project:E}=m;if(zp(E),!!E.containsFile(y,o)&&(this.syntacticCheck(y,E),this.changeSeq===s)){if(E.projectService.serverMode!==0){p();return}t.immediate("semanticCheck",()=>{if(this.semanticCheck(y,E),this.changeSeq===s){if(this.getPreferences(y).disableSuggestions){p();return}t.immediate("suggestionCheck",()=>{this.suggestionCheck(y,E),p()})}})}};r.length>d&&this.changeSeq===s&&t.delay("checkOne",i,h)}cleanProjects(t,r){if(r){this.logger.info(`cleaning ${t}`);for(let i of r)i.getLanguageService(!1).cleanupSemanticCache(),i.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",Wo(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t);return i.getEncodedSyntacticClassifications(r,t)}getEncodedSemanticClassifications(t){let{file:r,project:i}=this.getFileAndProject(t),o=t.format==="2020"?"2020":"original";return i.getLanguageService().getEncodedSemanticClassifications(r,t,o)}getProject(t){return t===void 0?void 0:this.projectService.findProject(t)}getConfigFileAndProject(t){let r=this.getProject(t.projectFileName),i=dl(t.file);return{configFile:r&&r.hasConfigFile(i)?i:void 0,project:r}}getConfigFileDiagnostics(t,r,i){let o=r.getAllProjectErrors(),s=r.getLanguageService().getCompilerOptionsDiagnostics(),l=jr(Eo(o,s),d=>!!d.file&&d.file.fileName===t);return i?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(l):mn(l,d=>a8(d,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(t){return t.map(r=>({message:k_(r.messageText,this.host.newLine),start:r.start,length:r.length,category:rT(r),code:r.code,source:r.source,startLocation:r.file&&o8(hs(r.file,r.start)),endLocation:r.file&&o8(hs(r.file,r.start+r.length)),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,relatedInformation:mn(r.relatedInformation,rZ)}))}getCompilerOptionsDiagnostics(t){let r=this.getProject(t.projectFileName);return this.convertToDiagnosticsWithLinePosition(jr(r.getLanguageService().getCompilerOptionsDiagnostics(),i=>!i.file),void 0)}convertToDiagnosticsWithLinePosition(t,r){return t.map(i=>({message:k_(i.messageText,this.host.newLine),start:i.start,length:i.length,category:rT(i),code:i.code,source:i.source,startLocation:r&&r.positionToLineOffset(i.start),endLocation:r&&r.positionToLineOffset(i.start+i.length),reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated,relatedInformation:mn(i.relatedInformation,rZ)}))}getDiagnosticsWorker(t,r,i,o){let{project:s,file:l}=this.getFileAndProject(t);if(r&&Oke(s,l))return _c;let d=s.getScriptInfoForNormalizedPath(l),p=i(s,l);return o?this.convertToDiagnosticsWithLinePosition(p,d):p.map(h=>Wke(l,s,h))}getDefinition(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=this.mapDefinitionInfoLocations(o.getLanguageService().getDefinitionAtPosition(i,s)||_c,o);return r?this.mapDefinitionInfo(l,o):l.map(mte.mapToOriginalLocation)}mapDefinitionInfoLocations(t,r){return t.map(i=>{let o=Bke(i,r);return o?{...o,containerKind:i.containerKind,containerName:i.containerName,kind:i.kind,name:i.name,failedAliasResolution:i.failedAliasResolution,...i.unverified&&{unverified:i.unverified}}:i})}getDefinitionAndBoundSpan(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=x.checkDefined(o.getScriptInfo(i)),d=o.getLanguageService().getDefinitionAndBoundSpan(i,s);if(!d||!d.definitions)return{definitions:_c,textSpan:void 0};let p=this.mapDefinitionInfoLocations(d.definitions,o),{textSpan:h}=d;return r?{definitions:this.mapDefinitionInfo(p,o),textSpan:Th(h,l)}:{definitions:p.map(mte.mapToOriginalLocation),textSpan:h}}findSourceDefinition(t){var r;let{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=o.getLanguageService().getDefinitionAtPosition(i,s),d=this.mapDefinitionInfoLocations(l||_c,o).slice();if(this.projectService.serverMode===0&&(!gt(d,S=>dl(S.fileName)!==i&&!S.isAmbient)||gt(d,S=>!!S.failedAliasResolution))){let S=VG(w=>w.textSpan.start,Jq(this.host.useCaseSensitiveFileNames));d?.forEach(w=>S.add(w));let A=o.getNoDtsResolutionProject(i),N=A.getLanguageService(),D=(r=N.getDefinitionAtPosition(i,s,!0,!1))==null?void 0:r.filter(w=>dl(w.fileName)!==i);if(gt(D))for(let w of D){if(w.unverified){let j=y(w,o.getLanguageService().getProgram(),N.getProgram());if(gt(j)){for(let K of j)S.add(K);continue}}S.add(w)}else{let w=d.filter(j=>dl(j.fileName)!==i&&j.isAmbient);for(let j of gt(w)?w:m()){let K=h(j.fileName,i,A);if(!K)continue;let Y=this.projectService.getOrCreateScriptInfoNotOpenedByClient(K,A.currentDirectory,A.directoryStructureHost);if(!Y)continue;A.containsScriptInfo(Y)||(A.addRoot(Y),A.updateGraph());let B=N.getProgram(),ce=x.checkDefined(B.getSourceFile(K));for(let z of E(j.name,ce,B))S.add(z)}}d=Wo(S.values())}return d=d.filter(S=>!S.isAmbient&&!S.failedAliasResolution),this.mapDefinitionInfo(d,o);function h(S,A,N){var D,w,j;let K=G6(S);if(K&&S.lastIndexOf(Eh)===K.topLevelNodeModulesIndex){let Y=S.substring(0,K.packageRootIndex),B=(D=o.getModuleResolutionCache())==null?void 0:D.getPackageJsonInfoCache(),ce=o.getCompilationSettings(),z=fw(ho(Y+"/package.json",o.getCurrentDirectory()),pw(B,o,ce));if(!z)return;let Z=sK(z,{moduleResolution:2},o,o.getModuleResolutionCache()),me=S.substring(K.topLevelPackageNameIndex+1,K.packageRootIndex),ge=DP(hw(me)),q=o.toPath(S);if(Z&>(Z,J=>o.toPath(J)===q))return(w=N.resolutionCache.resolveSingleModuleNameWithoutWatching(ge,A).resolvedModule)==null?void 0:w.resolvedFileName;{let J=S.substring(K.packageRootIndex+1),re=`${ge}/${Eu(J)}`;return(j=N.resolutionCache.resolveSingleModuleNameWithoutWatching(re,A).resolvedModule)==null?void 0:j.resolvedFileName}}}function m(){let S=o.getLanguageService(),A=S.getProgram(),N=Wu(A.getSourceFile(i),s);return(as(N)||Fe(N))&&Ns(N.parent)&&noe(N,D=>{var w;if(D===N)return;let j=(w=S.getDefinitionAtPosition(i,D.getStart(),!0,!1))==null?void 0:w.filter(K=>dl(K.fileName)!==i&&K.isAmbient).map(K=>({fileName:K.fileName,name:Xf(N)}));if(gt(j))return j})||_c}function y(S,A,N){var D;let w=N.getSourceFile(S.fileName);if(!w)return;let j=Wu(A.getSourceFile(i),s),K=A.getTypeChecker().getSymbolAtLocation(j),Y=K&&cl(K,276);if(!Y)return;let B=((D=Y.propertyName)==null?void 0:D.text)||Y.name.text;return E(B,w,N)}function E(S,A,N){let D=Ms.Core.getTopMostDeclarationNamesInFile(S,A);return to(D,w=>{let j=N.getTypeChecker().getSymbolAtLocation(w),K=vN(w);if(j&&K)return xD.createDefinitionInfo(K,N.getTypeChecker(),j,K,!0)})}}getEmitOutput(t){let{file:r,project:i}=this.getFileAndProject(t);if(!i.shouldEmitFile(i.getScriptInfo(r)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};let o=i.getLanguageService().getEmitOutput(r);return t.richResponse?{...o,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(o.diagnostics):o.diagnostics.map(s=>a8(s,!0))}:o}mapJSDocTagInfo(t,r,i){return t?t.map(o=>{var s;return{...o,text:i?this.mapDisplayParts(o.text,r):(s=o.text)==null?void 0:s.map(l=>l.text).join("")}}):[]}mapDisplayParts(t,r){return t?t.map(i=>i.kind!=="linkName"?i:{...i,target:this.toFileSpan(i.target.fileName,i.target.textSpan,r)}):[]}mapSignatureHelpItems(t,r,i){return t.map(o=>({...o,documentation:this.mapDisplayParts(o.documentation,r),parameters:o.parameters.map(s=>({...s,documentation:this.mapDisplayParts(s.documentation,r)})),tags:this.mapJSDocTagInfo(o.tags,r,i)}))}mapDefinitionInfo(t,r){return t.map(i=>({...this.toFileSpanWithContext(i.fileName,i.textSpan,i.contextSpan,r),...i.unverified&&{unverified:i.unverified}}))}static mapToOriginalLocation(t){return t.originalFileName?(x.assert(t.originalTextSpan!==void 0,"originalTextSpan should be present if originalFileName is"),{...t,fileName:t.originalFileName,textSpan:t.originalTextSpan,targetFileName:t.fileName,targetTextSpan:t.textSpan,contextSpan:t.originalContextSpan,targetContextSpan:t.contextSpan}):t}toFileSpan(t,r,i){let o=i.getLanguageService(),s=o.toLineColumnOffset(t,r.start),l=o.toLineColumnOffset(t,Jl(r));return{file:t,start:{line:s.line+1,offset:s.character+1},end:{line:l.line+1,offset:l.character+1}}}toFileSpanWithContext(t,r,i,o){let s=this.toFileSpan(t,r,o),l=i&&this.toFileSpan(t,i,o);return l?{...s,contextStart:l.start,contextEnd:l.end}:s}getTypeDefinition(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),s=this.mapDefinitionInfoLocations(i.getLanguageService().getTypeDefinitionAtPosition(r,o)||_c,i);return this.mapDefinitionInfo(s,i)}mapImplementationLocations(t,r){return t.map(i=>{let o=Bke(i,r);return o?{...o,kind:i.kind,displayParts:i.displayParts}:i})}getImplementation(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=this.mapImplementationLocations(o.getLanguageService().getImplementationAtPosition(i,s)||_c,o);return r?l.map(({fileName:d,textSpan:p,contextSpan:h})=>this.toFileSpanWithContext(d,p,h,o)):l.map(mte.mapToOriginalLocation)}getSyntacticDiagnosticsSync(t){let{configFile:r}=this.getConfigFileAndProject(t);return r?_c:this.getDiagnosticsWorker(t,!1,(i,o)=>i.getLanguageService().getSyntacticDiagnostics(o),!!t.includeLinePosition)}getSemanticDiagnosticsSync(t){let{configFile:r,project:i}=this.getConfigFileAndProject(t);return r?this.getConfigFileDiagnostics(r,i,!!t.includeLinePosition):this.getDiagnosticsWorker(t,!0,(o,s)=>o.getLanguageService().getSemanticDiagnostics(s).filter(l=>!!l.file),!!t.includeLinePosition)}getSuggestionDiagnosticsSync(t){let{configFile:r}=this.getConfigFileAndProject(t);return r?_c:this.getDiagnosticsWorker(t,!0,(i,o)=>i.getLanguageService().getSuggestionDiagnostics(o),!!t.includeLinePosition)}getJsxClosingTag(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=i.getJsxClosingTagAtPosition(r,o);return s===void 0?void 0:{newText:s.newText,caretOffset:0}}getLinkedEditingRange(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=i.getLinkedEditingRangeAtPosition(r,o),l=this.projectService.getScriptInfoForNormalizedPath(r);if(!(l===void 0||s===void 0))return got(s,l)}getDocumentHighlights(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=o.getLanguageService().getDocumentHighlights(i,s,t.filesToSearch);return l?r?l.map(({fileName:d,highlightSpans:p})=>{let h=o.getScriptInfo(d);return{file:d,highlightSpans:p.map(({textSpan:m,kind:y,contextSpan:E})=>({...Nhe(m,E,h),kind:y}))}}):l:_c}provideInlayHints(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(r);return i.getLanguageService().provideInlayHints(r,t,this.getPreferences(r)).map(l=>{let{position:d,displayParts:p}=l;return{...l,position:o.positionToLineOffset(d),displayParts:p?.map(({text:h,span:m,file:y})=>{if(m){x.assertIsDefined(y,"Target file should be defined together with its span.");let E=this.projectService.getScriptInfo(y);return{text:h,span:{start:E.positionToLineOffset(m.start),end:E.positionToLineOffset(m.start+m.length),file:y}}}else return{text:h}})}})}setCompilerOptionsForInferredProjects(t){this.projectService.setCompilerOptionsForInferredProjects(t.options,t.projectRootPath)}getProjectInfo(t){return this.getProjectInfoWorker(t.file,t.projectFileName,t.needFileNameList,!1)}getProjectInfoWorker(t,r,i,o){let{project:s}=this.getFileAndProjectWorker(t,r);return zp(s),{configFileName:s.getProjectName(),languageServiceDisabled:!s.languageServiceEnabled,fileNames:i?s.getFileNames(!1,o):void 0}}getRenameInfo(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),s=this.getPreferences(r);return i.getLanguageService().getRenameInfo(r,o,s)}getProjects(t,r,i){let o,s;if(t.projectFileName){let l=this.getProject(t.projectFileName);l&&(o=[l])}else{let l=r?this.projectService.getScriptInfoEnsuringProjectsUptoDate(t.file):this.projectService.getScriptInfo(t.file);if(l)r||this.projectService.ensureDefaultProjectForFile(l);else return i?_c:(this.projectService.logErrorForScriptInfoNotFound(t.file),Yy.ThrowNoProject());o=l.containingProjects,s=this.projectService.getSymlinkedProjects(l)}return o=jr(o,l=>l.languageServiceEnabled&&!l.isOrphan()),!i&&(!o||!o.length)&&!s?(this.projectService.logErrorForScriptInfoNotFound(t.file??t.projectFileName),Yy.ThrowNoProject()):s?{projects:o,symLinkedProjects:s}:o}getDefaultProject(t){if(t.projectFileName){let i=this.getProject(t.projectFileName);if(i)return i;if(!t.file)return Yy.ThrowNoProject()}return this.projectService.getScriptInfo(t.file).getDefaultProject()}getRenameLocations(t,r){let i=dl(t.file),o=this.getPositionInFile(t,i),s=this.getProjects(t),l=this.getDefaultProject(t),d=this.getPreferences(i),p=this.mapRenameInfo(l.getLanguageService().getRenameInfo(i,o,d),x.checkDefined(this.projectService.getScriptInfo(i)));if(!p.canRename)return r?{info:p,locs:[]}:[];let h=dot(s,l,{fileName:t.file,pos:o},!!t.findInStrings,!!t.findInComments,d,this.host.useCaseSensitiveFileNames);return r?{info:p,locs:this.toSpanGroups(h)}:h}mapRenameInfo(t,r){if(t.canRename){let{canRename:i,fileToRename:o,displayName:s,fullDisplayName:l,kind:d,kindModifiers:p,triggerSpan:h}=t;return{canRename:i,fileToRename:o,displayName:s,fullDisplayName:l,kind:d,kindModifiers:p,triggerSpan:Th(h,r)}}else return t}toSpanGroups(t){let r=new Map;for(let{fileName:i,textSpan:o,contextSpan:s,originalContextSpan:l,originalTextSpan:d,originalFileName:p,...h}of t){let m=r.get(i);m||r.set(i,m={file:i,locs:[]});let y=x.checkDefined(this.projectService.getScriptInfo(i));m.locs.push({...Nhe(o,s,y),...h})}return Wo(r.values())}getReferences(t,r){let i=dl(t.file),o=this.getProjects(t),s=this.getPositionInFile(t,i),l=pot(o,this.getDefaultProject(t),{fileName:t.file,pos:s},this.host.useCaseSensitiveFileNames,this.logger);if(!r)return l;let d=this.getPreferences(i),p=this.getDefaultProject(t),h=p.getScriptInfoForNormalizedPath(i),m=p.getLanguageService().getQuickInfoAtPosition(i,s),y=m?CO(m.displayParts):"",E=m&&m.textSpan,S=E?h.positionToLineOffset(E.start).offset:0,A=E?h.getSnapshot().getText(E.start,Jl(E)):"";return{refs:va(l,D=>D.references.map(w=>Vke(this.projectService,w,d))),symbolName:A,symbolStartOffset:S,symbolDisplayString:y}}getFileReferences(t,r){let i=this.getProjects(t),o=t.file,s=this.getPreferences(dl(o)),l=[],d=iZ(this.host.useCaseSensitiveFileNames);return Che(i,void 0,h=>{if(h.getCancellationToken().isCancellationRequested())return;let m=h.getLanguageService().getFileReferences(o);if(m)for(let y of m)d.has(y)||(l.push(y),d.add(y))}),r?{refs:l.map(h=>Vke(this.projectService,h,s)),symbolName:`"${t.file}"`}:l}openClientFile(t,r,i,o){this.projectService.openClientFileWithNormalizedPath(t,r,i,!1,o)}getPosition(t,r){return t.position!==void 0?t.position:r.lineOffsetToPosition(t.line,t.offset)}getPositionInFile(t,r){let i=this.projectService.getScriptInfoForNormalizedPath(r);return this.getPosition(t,i)}getFileAndProject(t){return this.getFileAndProjectWorker(t.file,t.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(t){let{file:r,project:i}=this.getFileAndProject(t);return{file:r,languageService:i.getLanguageService(!1)}}getFileAndProjectWorker(t,r){let i=dl(t),o=this.getProject(r)||this.projectService.ensureDefaultProjectForFile(i);return{file:i,project:o}}getOutliningSpans(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getOutliningSpans(i);if(r){let l=this.projectService.getScriptInfoForNormalizedPath(i);return s.map(d=>({textSpan:Th(d.textSpan,l),hintSpan:Th(d.hintSpan,l),bannerText:d.bannerText,autoCollapse:d.autoCollapse,kind:d.kind}))}else return s}getTodoComments(t){let{file:r,project:i}=this.getFileAndProject(t);return i.getLanguageService().getTodoComments(r,t.descriptors)}getDocCommentTemplate(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getDocCommentTemplateAtPosition(r,o,this.getPreferences(r),this.getFormatOptions(r))}getSpanOfEnclosingComment(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.onlyMultiLine,s=this.getPositionInFile(t,r);return i.getSpanOfEnclosingComment(r,s,o)}getIndentation(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=t.options?MD(t.options):this.getFormatOptions(r),l=i.getIndentationAtPosition(r,o,s);return{position:o,indentation:l}}getBreakpointStatement(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getBreakpointStatementAtPosition(r,o)}getNameOrDottedNameSpan(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getNameOrDottedNameSpan(r,o,o)}isValidBraceCompletion(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.isValidBraceCompletionAtPosition(r,o,t.openingBrace.charCodeAt(0))}getQuickInfoWorker(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=o.getLanguageService().getQuickInfoAtPosition(i,this.getPosition(t,s));if(!l)return;let d=!!this.getPreferences(i).displayPartsForJSDoc;if(r){let p=CO(l.displayParts);return{kind:l.kind,kindModifiers:l.kindModifiers,start:s.positionToLineOffset(l.textSpan.start),end:s.positionToLineOffset(Jl(l.textSpan)),displayString:p,documentation:d?this.mapDisplayParts(l.documentation,o):CO(l.documentation),tags:this.mapJSDocTagInfo(l.tags,o,d)}}else return d?l:{...l,tags:this.mapJSDocTagInfo(l.tags,o,!1)}}getFormattingEditsForRange(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(r),s=o.lineOffsetToPosition(t.line,t.offset),l=o.lineOffsetToPosition(t.endLine,t.endOffset),d=i.getFormattingEditsForRange(r,s,l,this.getFormatOptions(r));if(d)return d.map(p=>this.convertTextChangeToCodeEdit(p,o))}getFormattingEditsForRangeFull(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?MD(t.options):this.getFormatOptions(r);return i.getFormattingEditsForRange(r,t.position,t.endPosition,o)}getFormattingEditsForDocumentFull(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?MD(t.options):this.getFormatOptions(r);return i.getFormattingEditsForDocument(r,o)}getFormattingEditsAfterKeystrokeFull(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?MD(t.options):this.getFormatOptions(r);return i.getFormattingEditsAfterKeystroke(r,t.position,t.key,o)}getFormattingEditsAfterKeystroke(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(r),s=o.lineOffsetToPosition(t.line,t.offset),l=this.getFormatOptions(r),d=i.getFormattingEditsAfterKeystroke(r,s,t.key,l);if(t.key===` -`&&(!d||d.length===0||lot(d,s))){let{lineText:p,absolutePosition:h}=o.textStorage.getAbsolutePositionAndLineText(t.line);if(p&&p.search("\\S")<0){let m=i.getIndentationAtPosition(r,s,l),y=0,E,S;for(E=0,S=p.length;E({start:o.positionToLineOffset(p.span.start),end:o.positionToLineOffset(Jl(p.span)),newText:p.newText?p.newText:""}))}getCompletions(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),d=o.getLanguageService().getCompletionsAtPosition(i,l,{..._he(this.getPreferences(i)),triggerCharacter:t.triggerCharacter,triggerKind:t.triggerKind,includeExternalModuleExports:t.includeExternalModuleExports,includeInsertTextCompletions:t.includeInsertTextCompletions},o.projectService.getFormatCodeOptions(i));if(d===void 0)return;if(r==="completions-full")return d;let p=t.prefix||"",h=to(d.entries,y=>{if(d.isMemberCompletion||ao(y.name.toLowerCase(),p.toLowerCase())){let{name:E,kind:S,kindModifiers:A,sortText:N,insertText:D,filterText:w,replacementSpan:j,hasAction:K,source:Y,sourceDisplay:B,labelDetails:ce,isSnippet:z,isRecommended:Z,isPackageJsonImport:me,isImportStatementCompletion:ge,data:q}=y,J=j?Th(j,s):void 0;return{name:E,kind:S,kindModifiers:A,sortText:N,insertText:D,filterText:w,replacementSpan:J,isSnippet:z,hasAction:K||void 0,source:Y,sourceDisplay:B,labelDetails:ce,isRecommended:Z,isPackageJsonImport:me,isImportStatementCompletion:ge,data:q}}});return r==="completions"?(d.metadata&&(h.metadata=d.metadata),h):{...d,optionalReplacementSpan:d.optionalReplacementSpan&&Th(d.optionalReplacementSpan,s),entries:h}}getCompletionEntryDetails(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),d=o.projectService.getFormatCodeOptions(i),p=!!this.getPreferences(i).displayPartsForJSDoc,h=to(t.entryNames,m=>{let{name:y,source:E,data:S}=typeof m=="string"?{name:m,source:void 0,data:void 0}:m;return o.getLanguageService().getCompletionEntryDetails(i,l,y,d,E,this.getPreferences(i),S?na(S,Sot):void 0)});return r?p?h:h.map(m=>({...m,tags:this.mapJSDocTagInfo(m.tags,o,!1)})):h.map(m=>({...m,codeActions:mn(m.codeActions,y=>this.mapCodeAction(y)),documentation:this.mapDisplayParts(m.documentation,o),tags:this.mapJSDocTagInfo(m.tags,o,p)}))}getCompileOnSaveAffectedFileList(t){let r=this.getProjects(t,!0,!0),i=this.projectService.getScriptInfo(t.file);return i?cot(i,o=>this.projectService.getScriptInfoForPath(o),r,(o,s)=>{if(!o.compileOnSaveEnabled||!o.languageServiceEnabled||o.isOrphan())return;let l=o.getCompilationSettings();if(!(l.noEmit||Ed(s.fileName)&&!sot(l)))return{projectFileName:o.getProjectName(),fileNames:o.getCompileOnSaveAffectedFileList(s),projectUsesOutFile:!!xs(l)}}):_c}emitFile(t){let{file:r,project:i}=this.getFileAndProject(t);if(i||Yy.ThrowNoProject(),!i.languageServiceEnabled)return t.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;let o=i.getScriptInfo(r),{emitSkipped:s,diagnostics:l}=i.emitFile(o,(d,p,h)=>this.host.writeFile(d,p,h));return t.richResponse?{emitSkipped:s,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(l):l.map(d=>a8(d,!0))}:!s}getSignatureHelpItems(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),d=o.getLanguageService().getSignatureHelpItems(i,l,t),p=!!this.getPreferences(i).displayPartsForJSDoc;if(d&&r){let h=d.applicableSpan;return{...d,applicableSpan:{start:s.positionToLineOffset(h.start),end:s.positionToLineOffset(h.start+h.length)},items:this.mapSignatureHelpItems(d.items,o,p)}}else return p||!d?d:{...d,items:d.items.map(h=>({...h,tags:this.mapJSDocTagInfo(h.tags,o,!1)}))}}toPendingErrorCheck(t){let r=dl(t),i=this.projectService.tryGetDefaultProjectForFile(r);return i&&{fileName:r,project:i}}getDiagnostics(t,r,i){this.suppressDiagnosticEvents||i.length>0&&this.updateErrorCheck(t,i,r)}change(t){let r=this.projectService.getScriptInfo(t.file);x.assert(!!r),r.textStorage.switchToScriptVersionCache();let i=r.lineOffsetToPosition(t.line,t.offset),o=r.lineOffsetToPosition(t.endLine,t.endOffset);i>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(r,Jte({span:{start:i,length:o-i},newText:t.insertString})))}reload(t,r){let i=dl(t.file),o=t.tmpfile===void 0?void 0:dl(t.tmpfile),s=this.projectService.getScriptInfoForNormalizedPath(i);s&&(this.changeSeq++,s.reloadFromFile(o)&&this.doOutput(void 0,"reload",r,!0))}saveToTmp(t,r){let i=this.projectService.getScriptInfo(t);i&&i.saveTo(r)}closeClientFile(t){if(!t)return;let r=ma(t);this.projectService.closeClientFile(r)}mapLocationNavigationBarItems(t,r){return mn(t,i=>({text:i.text,kind:i.kind,kindModifiers:i.kindModifiers,spans:i.spans.map(o=>Th(o,r)),childItems:this.mapLocationNavigationBarItems(i.childItems,r),indent:i.indent}))}getNavigationBarItems(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getNavigationBarItems(i);return s?r?this.mapLocationNavigationBarItems(s,this.projectService.getScriptInfoForNormalizedPath(i)):s:void 0}toLocationNavigationTree(t,r){return{text:t.text,kind:t.kind,kindModifiers:t.kindModifiers,spans:t.spans.map(i=>Th(i,r)),nameSpan:t.nameSpan&&Th(t.nameSpan,r),childItems:mn(t.childItems,i=>this.toLocationNavigationTree(i,r))}}getNavigationTree(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getNavigationTree(i);return s?r?this.toLocationNavigationTree(s,this.projectService.getScriptInfoForNormalizedPath(i)):s:void 0}getNavigateToItems(t,r){let i=this.getFullNavigateToItems(t);return r?va(i,({project:o,navigateToItems:s})=>s.map(l=>{let d=o.getScriptInfo(l.fileName),p={name:l.name,kind:l.kind,kindModifiers:l.kindModifiers,isCaseSensitive:l.isCaseSensitive,matchKind:l.matchKind,file:l.fileName,start:d.positionToLineOffset(l.textSpan.start),end:d.positionToLineOffset(Jl(l.textSpan))};return l.kindModifiers&&l.kindModifiers!==""&&(p.kindModifiers=l.kindModifiers),l.containerName&&l.containerName.length>0&&(p.containerName=l.containerName),l.containerKind&&l.containerKind.length>0&&(p.containerKind=l.containerKind),p})):va(i,({navigateToItems:o})=>o)}getFullNavigateToItems(t){let{currentFileOnly:r,searchValue:i,maxResultCount:o,projectFileName:s}=t;if(r){x.assertIsDefined(t.file);let{file:E,project:S}=this.getFileAndProject(t);return[{project:S,navigateToItems:S.getLanguageService().getNavigateToItems(i,o,E)}]}let l=this.getHostPreferences(),d=[],p=new Map;if(!t.file&&!s)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(E=>h(E));else{let E=this.getProjects(t);Che(E,void 0,S=>h(S))}return d;function h(E){let S=E.getLanguageService().getNavigateToItems(i,o,void 0,E.isNonTsProject(),l.excludeLibrarySymbolsInNavTo),A=jr(S,N=>m(N)&&!oZ(vM(N),E));A.length&&d.push({project:E,navigateToItems:A})}function m(E){let S=E.name;if(!p.has(S))return p.set(S,[E]),!0;let A=p.get(S);for(let N of A)if(y(N,E))return!1;return A.push(E),!0}function y(E,S){return E===S?!0:!E||!S?!1:E.containerKind===S.containerKind&&E.containerName===S.containerName&&E.fileName===S.fileName&&E.isCaseSensitive===S.isCaseSensitive&&E.kind===S.kind&&E.kindModifiers===S.kindModifiers&&E.matchKind===S.matchKind&&E.name===S.name&&E.textSpan.start===S.textSpan.start&&E.textSpan.length===S.textSpan.length}}getSupportedCodeFixes(t){if(!t)return _Y();if(t.file){let{file:i,project:o}=this.getFileAndProject(t);return o.getLanguageService().getSupportedCodeFixes(i)}let r=this.getProject(t.projectFileName);return r||Yy.ThrowNoProject(),r.getLanguageService().getSupportedCodeFixes()}isLocation(t){return t.line!==void 0}extractPositionOrRange(t,r){let i,o;return this.isLocation(t)?i=s(t):o=this.getRange(t,r),x.checkDefined(i===void 0?o:i);function s(l){return l.position!==void 0?l.position:r.lineOffsetToPosition(l.line,l.offset)}}getRange(t,r){let{startPosition:i,endPosition:o}=this.getStartAndEndPosition(t,r);return{pos:i,end:o}}getApplicableRefactors(t){let{file:r,project:i}=this.getFileAndProject(t),o=i.getScriptInfoForNormalizedPath(r);return i.getLanguageService().getApplicableRefactors(r,this.extractPositionOrRange(t,o),this.getPreferences(r),t.triggerReason,t.kind,t.includeInteractiveActions)}getEditsForRefactor(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=o.getScriptInfoForNormalizedPath(i),l=o.getLanguageService().getEditsForRefactor(i,this.getFormatOptions(i),this.extractPositionOrRange(t,s),t.refactor,t.action,this.getPreferences(i),t.interactiveRefactorArguments);if(l===void 0)return{edits:[]};if(r){let{renameFilename:d,renameLocation:p,edits:h}=l,m;if(d!==void 0&&p!==void 0){let y=o.getScriptInfoForNormalizedPath(dl(d));m=Phe(cD(y.getSnapshot()),d,p,h)}return{renameLocation:m,renameFilename:d,edits:this.mapTextChangesToCodeEdits(h),notApplicableReason:l.notApplicableReason}}return l}getMoveToRefactoringFileSuggestions(t){let{file:r,project:i}=this.getFileAndProject(t),o=i.getScriptInfoForNormalizedPath(r);return i.getLanguageService().getMoveToRefactoringFileSuggestions(r,this.extractPositionOrRange(t,o),this.getPreferences(r))}organizeImports(t,r){x.assert(t.scope.type==="file");let{file:i,project:o}=this.getFileAndProject(t.scope.args),s=o.getLanguageService().organizeImports({fileName:i,mode:t.mode??(t.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(i),this.getPreferences(i));return r?this.mapTextChangesToCodeEdits(s):s}getEditsForFileRename(t,r){let i=dl(t.oldFilePath),o=dl(t.newFilePath),s=this.getHostFormatOptions(),l=this.getHostPreferences(),d=new Set,p=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(h=>{let m=h.getLanguageService().getEditsForFileRename(i,o,s,l),y=[];for(let E of m)d.has(E.fileName)||(p.push(E),y.push(E.fileName));for(let E of y)d.add(E)}),r?p.map(h=>this.mapTextChangeToCodeEdit(h)):p}getCodeFixes(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=o.getScriptInfoForNormalizedPath(i),{startPosition:l,endPosition:d}=this.getStartAndEndPosition(t,s),p;try{p=o.getLanguageService().getCodeFixesAtPosition(i,l,d,t.errorCodes,this.getFormatOptions(i),this.getPreferences(i))}catch(h){let m=o.getLanguageService(),y=[...m.getSyntacticDiagnostics(i),...m.getSemanticDiagnostics(i),...m.getSuggestionDiagnostics(i)].map(S=>JL(l,d-l,S.start,S.length)&&S.code),E=t.errorCodes.find(S=>!y.includes(S));throw E!==void 0&&(h.message=`BADCLIENT: Bad error code, ${E} not found in range ${l}..${d} (found: ${y.join(", ")}); could have caused this error: -${h.message}`),h}return r?p.map(h=>this.mapCodeFixAction(h)):p}getCombinedCodeFix({scope:t,fixId:r},i){x.assert(t.type==="file");let{file:o,project:s}=this.getFileAndProject(t.args),l=s.getLanguageService().getCombinedCodeFix({type:"file",fileName:o},r,this.getFormatOptions(o),this.getPreferences(o));return i?{changes:this.mapTextChangesToCodeEdits(l.changes),commands:l.commands}:l}applyCodeActionCommand(t){let r=t.command;for(let i of dI(r)){let{file:o,project:s}=this.getFileAndProject(i);s.getLanguageService().applyCodeActionCommand(i,this.getFormatOptions(o)).then(l=>{},l=>{})}return{}}getStartAndEndPosition(t,r){let i,o;return t.startPosition!==void 0?i=t.startPosition:(i=r.lineOffsetToPosition(t.startLine,t.startOffset),t.startPosition=i),t.endPosition!==void 0?o=t.endPosition:(o=r.lineOffsetToPosition(t.endLine,t.endOffset),t.endPosition=o),{startPosition:i,endPosition:o}}mapCodeAction({description:t,changes:r,commands:i}){return{description:t,changes:this.mapTextChangesToCodeEdits(r),commands:i}}mapCodeFixAction({fixName:t,description:r,changes:i,commands:o,fixId:s,fixAllDescription:l}){return{fixName:t,description:r,changes:this.mapTextChangesToCodeEdits(i),commands:o,fixId:s,fixAllDescription:l}}mapTextChangesToCodeEdits(t){return t.map(r=>this.mapTextChangeToCodeEdit(r))}mapTextChangeToCodeEdit(t){let r=this.projectService.getScriptInfoOrConfig(t.fileName);return!!t.isNewFile==!!r&&(r||this.projectService.logErrorForScriptInfoNotFound(t.fileName),x.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!t.isNewFile,hasScriptInfo:!!r}))),r?{fileName:t.fileName,textChanges:t.textChanges.map(i=>hot(i,r))}:vot(t)}convertTextChangeToCodeEdit(t,r){return{start:r.positionToLineOffset(t.span.start),end:r.positionToLineOffset(t.span.start+t.span.length),newText:t.newText?t.newText:""}}getBraceMatching(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),d=o.getBraceMatchingAtPosition(i,l);return d?r?d.map(p=>Th(p,s)):d:void 0}getDiagnosticsForProject(t,r,i){if(this.suppressDiagnosticEvents)return;let{fileNames:o,languageServiceDisabled:s}=this.getProjectInfoWorker(i,void 0,!0,!0);if(s)return;let l=o.filter(N=>!N.includes("lib.d.ts"));if(l.length===0)return;let d=[],p=[],h=[],m=[],y=dl(i),E=this.projectService.ensureDefaultProjectForFile(y);for(let N of l)this.getCanonicalFileName(N)===this.getCanonicalFileName(i)?d.push(N):this.projectService.getScriptInfo(N).isScriptOpen()?p.push(N):Ed(N)?m.push(N):h.push(N);let A=[...d,...p,...h,...m].map(N=>({fileName:N,project:E}));this.updateErrorCheck(t,A,r,!1)}configurePlugin(t){this.projectService.configurePlugin(t)}getSmartSelectionRange(t,r){let{locations:i}=t,{file:o,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),l=x.checkDefined(this.projectService.getScriptInfo(o));return mn(i,d=>{let p=this.getPosition(d,l),h=s.getSmartSelectionRange(o,p);return r?this.mapSelectionRange(h,l):h})}toggleLineComment(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfo(i),l=this.getRange(t,s),d=o.toggleLineComment(i,l);if(r){let p=this.projectService.getScriptInfoForNormalizedPath(i);return d.map(h=>this.convertTextChangeToCodeEdit(h,p))}return d}toggleMultilineComment(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),d=o.toggleMultilineComment(i,l);if(r){let p=this.projectService.getScriptInfoForNormalizedPath(i);return d.map(h=>this.convertTextChangeToCodeEdit(h,p))}return d}commentSelection(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),d=o.commentSelection(i,l);if(r){let p=this.projectService.getScriptInfoForNormalizedPath(i);return d.map(h=>this.convertTextChangeToCodeEdit(h,p))}return d}uncommentSelection(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),d=o.uncommentSelection(i,l);if(r){let p=this.projectService.getScriptInfoForNormalizedPath(i);return d.map(h=>this.convertTextChangeToCodeEdit(h,p))}return d}mapSelectionRange(t,r){let i={textSpan:Th(t.textSpan,r)};return t.parent&&(i.parent=this.mapSelectionRange(t.parent,r)),i}getScriptInfoFromProjectService(t){let r=dl(t),i=this.projectService.getScriptInfoForNormalizedPath(r);return i||(this.projectService.logErrorForScriptInfoNotFound(r),Yy.ThrowNoProject())}toProtocolCallHierarchyItem(t){let r=this.getScriptInfoFromProjectService(t.file);return{name:t.name,kind:t.kind,kindModifiers:t.kindModifiers,file:t.file,containerName:t.containerName,span:Th(t.span,r),selectionSpan:Th(t.selectionSpan,r)}}toProtocolCallHierarchyIncomingCall(t){let r=this.getScriptInfoFromProjectService(t.from.file);return{from:this.toProtocolCallHierarchyItem(t.from),fromSpans:t.fromSpans.map(i=>Th(i,r))}}toProtocolCallHierarchyOutgoingCall(t,r){return{to:this.toProtocolCallHierarchyItem(t.to),fromSpans:t.fromSpans.map(i=>Th(i,r))}}prepareCallHierarchy(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(r);if(o){let s=this.getPosition(t,o),l=i.getLanguageService().prepareCallHierarchy(r,s);return l&&uX(l,d=>this.toProtocolCallHierarchyItem(d))}}provideCallHierarchyIncomingCalls(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.getScriptInfoFromProjectService(r);return i.getLanguageService().provideCallHierarchyIncomingCalls(r,this.getPosition(t,o)).map(l=>this.toProtocolCallHierarchyIncomingCall(l))}provideCallHierarchyOutgoingCalls(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.getScriptInfoFromProjectService(r);return i.getLanguageService().provideCallHierarchyOutgoingCalls(r,this.getPosition(t,o)).map(l=>this.toProtocolCallHierarchyOutgoingCall(l,o))}getCanonicalFileName(t){let r=this.host.useCaseSensitiveFileNames?t:ih(t);return ma(r)}exit(){}notRequired(){return{responseRequired:!1}}requiredResponse(t){return{response:t,responseRequired:!0}}addProtocolHandler(t,r){if(this.handlers.has(t))throw new Error(`Protocol handler already exists for command "${t}"`);this.handlers.set(t,r)}setCurrentRequest(t){x.assert(this.currentRequestId===void 0),this.currentRequestId=t,this.cancellationToken.setRequest(t)}resetCurrentRequest(t){x.assert(this.currentRequestId===t),this.currentRequestId=void 0,this.cancellationToken.resetRequest(t)}executeWithRequestId(t,r){try{return this.setCurrentRequest(t),r()}finally{this.resetCurrentRequest(t)}}executeCommand(t){let r=this.handlers.get(t.command);if(r){let i=this.executeWithRequestId(t.seq,()=>r(t));return this.projectService.enableRequestedPlugins(),i}else return this.logger.msg(`Unrecognized JSON command:${xE(t)}`,"Err"),this.doOutput(void 0,"unknown",t.seq,!1,`Unrecognized JSON command: ${t.command}`),{responseRequired:!1}}onMessage(t){var r,i,o,s,l,d,p,h,m,y,E;this.gcTimer.scheduleCollect(),this.performanceData=void 0;let S;this.logger.hasLevel(2)&&(S=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${HP(this.toStringMessage(t))}`));let A,N;try{A=this.parseMessage(t),N=A.arguments&&A.arguments.file?A.arguments:void 0,(r=rr)==null||r.instant(rr.Phase.Session,"request",{seq:A.seq,command:A.command}),(i=nu)==null||i.logStartCommand(""+A.command,this.toStringMessage(t).substring(0,100)),(o=rr)==null||o.push(rr.Phase.Session,"executeCommand",{seq:A.seq,command:A.command},!0);let{response:D,responseRequired:w}=this.executeCommand(A);if((s=rr)==null||s.pop(),this.logger.hasLevel(2)){let j=aot(this.hrtime(S)).toFixed(4);w?this.logger.perftrc(`${A.seq}::${A.command}: elapsed time (in milliseconds) ${j}`):this.logger.perftrc(`${A.seq}::${A.command}: async elapsed time (in milliseconds) ${j}`)}(l=nu)==null||l.logStopCommand(""+A.command,"Success"),(d=rr)==null||d.instant(rr.Phase.Session,"response",{seq:A.seq,command:A.command,success:!!D}),D?this.doOutput(D,A.command,A.seq,!0):w&&this.doOutput(void 0,A.command,A.seq,!1,"No content available.")}catch(D){if((p=rr)==null||p.popAll(),D instanceof Rx){(h=nu)==null||h.logStopCommand(""+(A&&A.command),"Canceled: "+D),(m=rr)==null||m.instant(rr.Phase.Session,"commandCanceled",{seq:A?.seq,command:A?.command}),this.doOutput({canceled:!0},A.command,A.seq,!0);return}this.logErrorWorker(D,this.toStringMessage(t),N),(y=nu)==null||y.logStopCommand(""+(A&&A.command),"Error: "+D),(E=rr)==null||E.instant(rr.Phase.Session,"commandError",{seq:A?.seq,command:A?.command,message:D.message}),this.doOutput(void 0,A?A.command:"unknown",A?A.seq:0,!1,"Error processing request. "+D.message+` -`+D.stack)}}parseMessage(t){return JSON.parse(t)}toStringMessage(t){return t}getFormatOptions(t){return this.projectService.getFormatCodeOptions(t)}getPreferences(t){return this.projectService.getPreferences(t)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}}}}),L1,aZ,Hke,Kke,VB,jB,Ohe,bM,k1,s8,Aot=bt({"src/server/scriptVersionCache.ts"(){"use strict";ib(),iA(),L1=4,aZ=(e=>(e[e.PreStart=0]="PreStart",e[e.Start=1]="Start",e[e.Entire=2]="Entire",e[e.Mid=3]="Mid",e[e.End=4]="End",e[e.PostEnd=5]="PostEnd",e))(aZ||{}),Hke=class{constructor(){this.goSubtree=!0,this.lineIndex=new bM,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new k1,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,t){t&&(this.trailingText=""),e?e=this.initialText+e+this.trailingText:e=this.initialText+this.trailingText;let i=bM.linesFromText(e).lines;i.length>1&&i[i.length-1]===""&&i.pop();let o,s;for(let d=this.endBranch.length-1;d>=0;d--)this.endBranch[d].updateCounts(),this.endBranch[d].charCount()===0&&(s=this.endBranch[d],d>0?o=this.endBranch[d-1]:o=this.branchNode);s&&o.remove(s);let l=this.startPath[this.startPath.length-1];if(i.length>0)if(l.text=i[0],i.length>1){let d=new Array(i.length-1),p=l;for(let y=1;y=0;){let y=this.startPath[h];d=y.insertAt(p,d),h--,p=y}let m=d.length;for(;m>0;){let y=new k1;y.add(this.lineIndex.root),d=y.insertAt(this.lineIndex.root,d),m=d.length,this.lineIndex.root=y}this.lineIndex.root.updateCounts()}else for(let d=this.startPath.length-2;d>=0;d--)this.startPath[d].updateCounts();else{this.startPath[this.startPath.length-2].remove(l);for(let p=this.startPath.length-2;p>=0;p--)this.startPath[p].updateCounts()}return this.lineIndex}post(e,t,r){r===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,t,r,i,o){let s=this.stack[this.stack.length-1];this.state===2&&o===1&&(this.state=1,this.branchNode=s,this.lineCollectionAtBranch=r);let l;function d(p){return p.isLeaf()?new s8(""):new k1}switch(o){case 0:this.goSubtree=!1,this.state!==4&&s.add(r);break;case 1:this.state===4?this.goSubtree=!1:(l=d(r),s.add(l),this.startPath.push(l));break;case 2:this.state!==4?(l=d(r),s.add(l),this.startPath.push(l)):r.isLeaf()||(l=d(r),s.add(l),this.endBranch.push(l));break;case 3:this.goSubtree=!1;break;case 4:this.state!==4?this.goSubtree=!1:r.isLeaf()||(l=d(r),s.add(l),this.endBranch.push(l));break;case 5:this.goSubtree=!1,this.state!==1&&s.add(r);break}this.goSubtree&&this.stack.push(l)}leaf(e,t,r){this.state===1?this.initialText=r.text.substring(0,e):this.state===2?(this.initialText=r.text.substring(0,e),this.trailingText=r.text.substring(e+t)):this.trailingText=r.text.substring(e+t)}},Kke=class{constructor(e,t,r){this.pos=e,this.deleteLen=t,this.insertedText=r}getTextChangeRange(){return qL(gd(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},VB=class oI{constructor(){this.changes=[],this.versions=new Array(oI.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(tthis.currentVersion))return t%oI.maxVersions}currentVersionToIndex(){return this.currentVersion%oI.maxVersions}edit(t,r,i){this.changes.push(new Kke(t,r,i)),(this.changes.length>oI.changeNumberThreshold||r>oI.changeLengthThreshold||i&&i.length>oI.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let t=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let r=t.index;for(let i of this.changes)r=r.edit(i.pos,i.deleteLen,i.insertedText);t=new Ohe(this.currentVersion+1,this,r,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=oI.maxVersions&&(this.minVersion=this.currentVersion-oI.maxVersions+1)}return t}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(t){return this._getSnapshot().index.lineNumberToInfo(t)}lineOffsetToPosition(t,r){return this._getSnapshot().index.absolutePositionOfStartOfLine(t)+(r-1)}positionToLineOffset(t){return this._getSnapshot().index.positionToLineOffset(t)}lineToTextSpan(t){let r=this._getSnapshot().index,{lineText:i,absolutePosition:o}=r.lineNumberToInfo(t+1),s=i!==void 0?i.length:r.absolutePositionOfStartOfLine(t+2)-o;return gd(o,s)}getTextChangesBetweenVersions(t,r){if(t=this.minVersion){let i=[];for(let o=t+1;o<=r;o++){let s=this.versions[this.versionToIndex(o)];for(let l of s.changesSincePreviousVersion)i.push(l.getTextChangeRange())}return Vne(i)}else return;else return d2}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){let r=new oI,i=new Ohe(0,r,new bM);r.versions[r.currentVersion]=i;let o=bM.linesFromText(t);return i.index.load(o.lines),r}},VB.changeNumberThreshold=8,VB.changeLengthThreshold=256,VB.maxVersions=8,jB=VB,Ohe=class V4e{constructor(t,r,i,o=_c){this.version=t,this.cache=r,this.index=i,this.changesSincePreviousVersion=o}getText(t,r){return this.index.getText(t,r-t)}getLength(){return this.index.getLength()}getChangeRange(t){if(t instanceof V4e&&this.cache===t.cache)return this.version<=t.version?d2:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},bM=class Abe{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(t){return this.lineNumberToInfo(t).absolutePosition}positionToLineOffset(t){let{oneBasedLine:r,zeroBasedColumn:i}=this.root.charOffsetToLineInfo(1,t);return{line:r,offset:i+1}}positionToColumnAndLineText(t){return this.root.charOffsetToLineInfo(1,t)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(t){let r=this.getLineCount();if(t<=r){let{position:i,leaf:o}=this.root.lineNumberToInfo(t,0);return{absolutePosition:i,lineText:o&&o.text}}else return{absolutePosition:this.root.charCount(),lineText:void 0}}load(t){if(t.length>0){let r=[];for(let i=0;i0&&t{i=i.concat(l.text.substring(o,o+s))}}),i}getLength(){return this.root.charCount()}every(t,r,i){i||(i=this.root.charCount());let o={goSubtree:!0,done:!1,leaf(s,l,d){t(d,s,l)||(this.done=!0)}};return this.walk(r,i-r,o),!o.done}edit(t,r,i){if(this.root.charCount()===0)return x.assert(r===0),i!==void 0?(this.load(Abe.linesFromText(i).lines),this):void 0;{let o;if(this.checkEdits){let d=this.getText(0,this.root.charCount());o=d.slice(0,t)+i+d.slice(t+r)}let s=new Hke,l=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;let d=this.getText(t,1);i?i=d+i:i=d,r=0,l=!0}else if(r>0){let d=t+r,{zeroBasedColumn:p,lineText:h}=this.positionToColumnAndLineText(d);p===0&&(r+=h.length,i=i?i+h:h)}if(this.root.walk(t,r,s),s.insertLines(i,l),this.checkEdits){let d=s.lineIndex.getText(0,s.lineIndex.getLength());x.assert(o===d,"buffer edit mismatch")}return s.lineIndex}}static buildTreeFromBottom(t){if(t.length0?i[o]=s:i.pop(),{lines:i,lineMap:r}}},k1=class Ibe{constructor(t=[]){this.children=t,this.totalChars=0,this.totalLines=0,t.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(let t of this.children)this.totalChars+=t.charCount(),this.totalLines+=t.lineCount()}execWalk(t,r,i,o,s){return i.pre&&i.pre(t,r,this.children[o],this,s),i.goSubtree?(this.children[o].walk(t,r,i),i.post&&i.post(t,r,this.children[o],this,s)):i.goSubtree=!0,i.done}skipChild(t,r,i,o,s){o.pre&&!o.done&&(o.pre(t,r,this.children[i],this,s),o.goSubtree=!0)}walk(t,r,i){let o=0,s=this.children[o].charCount(),l=t;for(;l>=s;)this.skipChild(l,r,o,i,0),l-=s,o++,s=this.children[o].charCount();if(l+r<=s){if(this.execWalk(l,r,i,o,2))return}else{if(this.execWalk(l,s-l,i,o,1))return;let d=r-(s-l);for(o++,s=this.children[o].charCount();d>s;){if(this.execWalk(0,s,i,o,3))return;d-=s,o++,s=this.children[o].charCount()}if(d>0&&this.execWalk(0,d,i,o,4))return}if(i.pre){let d=this.children.length;if(or)return s.isLeaf()?{oneBasedLine:t,zeroBasedColumn:r,lineText:s.text}:s.charOffsetToLineInfo(t,r);r-=s.charCount(),t+=s.lineCount()}let i=this.lineCount();if(i===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};let o=x.checkDefined(this.lineNumberToInfo(i,0).leaf);return{oneBasedLine:i,zeroBasedColumn:o.charCount(),lineText:void 0}}lineNumberToInfo(t,r){for(let i of this.children){let o=i.lineCount();if(o>=t)return i.isLeaf()?{position:r,leaf:i}:i.lineNumberToInfo(t,r);t-=o,r+=i.charCount()}return{position:r,leaf:void 0}}splitAfter(t){let r,i=this.children.length;t++;let o=t;if(t=0;E--)p[E].children.length===0&&p.pop()}l&&p.push(l),this.updateCounts();for(let m=0;m{(this.packageInstalledPromise??(this.packageInstalledPromise=new Map)).set(this.packageInstallId,{resolve:o,reject:s})});return this.installer.send(r),i}attach(t){this.projectService=t,this.installer=this.createInstallerProcess()}onProjectClosed(t){this.installer.send({projectName:t.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(t,r,i){let o=j_e(t,r,i);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${xE(o)}`),this.activeRequestCount0?this.activeRequestCount--:x.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){let o=this.requestQueue.dequeue();if(this.requestMap.get(o.projectName)===o){this.requestMap.delete(o.projectName),this.scheduleRequest(o);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${o.projectName}`)}this.projectService.updateTypingsForProject(t),this.event(t,"setTypings");break}case KP:this.projectService.watchTypingLocations(t);break;default:}}scheduleRequest(t){this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling request for: ${t.projectName}`),this.activeRequestCount++,this.host.setTimeout(()=>{this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Sending request:${xE(t)}`),this.installer.send(t)},j4e.requestDelayMillis,`${t.projectName}::${t.kind}`)}},Whe.requestDelayMillis=100,Fhe=Whe}}),Jke={};xa(Jke,{ActionInvalidate:()=>zw,ActionPackageInstalled:()=>Bw,ActionSet:()=>Fw,ActionWatchTypingLocations:()=>KP,Arguments:()=>$J,AutoImportProviderProject:()=>JQ,AuxiliaryProject:()=>HQ,CharRangeSection:()=>aZ,CloseFileWatcherEvent:()=>zB,CommandNames:()=>Lhe,ConfigFileDiagEvent:()=>kB,ConfiguredProject:()=>qQ,CreateDirectoryWatcherEvent:()=>FB,CreateFileWatcherEvent:()=>WB,Errors:()=>Yy,EventBeginInstallTypes:()=>xz,EventEndInstallTypes:()=>Rz,EventInitializationFailed:()=>YJ,EventTypesRegistry:()=>Iz,ExternalProject:()=>RB,GcTimer:()=>FQ,InferredProject:()=>UQ,LargeFileReferencedEvent:()=>LB,LineIndex:()=>bM,LineLeaf:()=>s8,LineNode:()=>k1,LogLevel:()=>kQ,Msg:()=>wQ,OpenFileInfoTelemetryEvent:()=>QQ,Project:()=>rA,ProjectInfoTelemetryEvent:()=>OB,ProjectKind:()=>yM,ProjectLanguageServiceStateEvent:()=>wB,ProjectLoadingFinishEvent:()=>MB,ProjectLoadingStartEvent:()=>PB,ProjectReferenceProjectLoadKind:()=>tZ,ProjectService:()=>nZ,ProjectsUpdatedInBackgroundEvent:()=>i8,ScriptInfo:()=>GQ,ScriptVersionCache:()=>jB,Session:()=>whe,TextStorage:()=>BQ,ThrottledOperations:()=>WQ,TypingsCache:()=>VQ,TypingsInstallerAdapter:()=>Fhe,allFilesAreJsOrDts:()=>uhe,allRootFilesAreJsOrDts:()=>dhe,asNormalizedPath:()=>Ske,convertCompilerOptions:()=>DB,convertFormatOptions:()=>MD,convertScriptKindName:()=>YQ,convertTypeAcquisition:()=>mhe,convertUserPreferences:()=>_he,convertWatchOptions:()=>r8,countEachFileTypes:()=>t8,createInstallTypingsRequest:()=>j_e,createModuleSpecifierCache:()=>Ihe,createNormalizedPathMap:()=>Tke,createPackageJsonCache:()=>xhe,createSortedArray:()=>q_e,emptyArray:()=>_c,findArgument:()=>dxe,forEachResolvedProjectReferenceProject:()=>LD,formatDiagnosticToProtocol:()=>a8,formatMessage:()=>Rhe,getBaseConfigFileName:()=>OQ,getLocationInNewDocument:()=>Phe,hasArgument:()=>cxe,hasNoTypeScriptSource:()=>phe,indent:()=>HP,isBackgroundProject:()=>n8,isConfigFile:()=>Ehe,isConfiguredProject:()=>ME,isDynamicFileName:()=>e8,isExternalProject:()=>jQ,isInferredProject:()=>PD,isInferredProjectName:()=>U_e,makeAutoImportProviderProjectName:()=>K_e,makeAuxiliaryProjectName:()=>J_e,makeInferredProjectName:()=>H_e,maxFileSize:()=>NB,maxProgramSizeForNonTsFiles:()=>CB,normalizedPathToPath:()=>ZO,nowString:()=>uxe,nullCancellationToken:()=>Mhe,nullTypingsInstaller:()=>xB,projectContainsInfoDirectly:()=>M1,protocol:()=>che,removeSorted:()=>Ake,stringifyIndented:()=>xE,toEvent:()=>Dhe,toNormalizedPath:()=>dl,tryConvertScriptKindName:()=>XQ,typingsInstaller:()=>G_e,updateProjectIfDirty:()=>zp});var iA=bt({"src/server/_namespaces/ts.server.ts"(){"use strict";Dz(),V_e(),Fit(),zit(),Bit(),Git(),Uit(),qit(),Qit(),rot(),iot(),oot(),Tot(),Aot(),Iot()}}),qke={};xa(qke,{ANONYMOUS:()=>y7,AccessFlags:()=>I9,AssertionLevel:()=>YG,AssignmentDeclarationKind:()=>k9,AssignmentKind:()=>SU,Associativity:()=>AU,BreakpointResolver:()=>TY,BuilderFileEmit:()=>RJ,BuilderProgramKind:()=>DJ,BuilderState:()=>xm,BundleFileSectionKind:()=>Q9,CallHierarchy:()=>A1,CharacterCodes:()=>H9,CheckFlags:()=>b9,CheckMode:()=>P3,ClassificationType:()=>hq,ClassificationTypeNames:()=>_q,CommentDirectiveType:()=>o9,Comparison:()=>xG,CompletionInfoFlags:()=>lq,CompletionTriggerKind:()=>rq,Completions:()=>C1,ContainerFlags:()=>hK,ContextFlags:()=>u9,Debug:()=>x,DiagnosticCategory:()=>NL,Diagnostics:()=>f,DocumentHighlights:()=>E7,ElementFlags:()=>A9,EmitFlags:()=>GW,EmitHint:()=>X9,EmitOnly:()=>s9,EndOfLineState:()=>uq,EnumKind:()=>v9,ExitStatus:()=>l9,ExportKind:()=>AX,Extension:()=>K9,ExternalEmitHelpers:()=>q9,FileIncludeKind:()=>MW,FilePreprocessingDiagnosticsKind:()=>a9,FileSystemEntryKind:()=>iV,FileWatcherEventKind:()=>rV,FindAllReferences:()=>Ms,FlattenLevel:()=>kK,FlowFlags:()=>CL,ForegroundColorEscapeSequences:()=>vJ,FunctionFlags:()=>TU,GeneratedIdentifierFlags:()=>PW,GetLiteralTextFlags:()=>vU,GoToDefinition:()=>xD,HighlightSpanKind:()=>oq,IdentifierNameMap:()=>f1,IdentifierNameMultiMap:()=>LK,ImportKind:()=>TX,ImportsNotUsedAsValues:()=>B9,IndentStyle:()=>aq,IndexFlags:()=>x9,IndexKind:()=>C9,InferenceFlags:()=>M9,InferencePriority:()=>P9,InlayHintKind:()=>iq,InlayHints:()=>_Q,InternalEmitFlags:()=>J9,InternalSymbolName:()=>E9,InvalidatedProjectKind:()=>XJ,JSDocParsingMode:()=>tV,JsDoc:()=>PE,JsTyping:()=>O_,JsxEmit:()=>z9,JsxFlags:()=>r9,JsxReferenceKind:()=>R9,LanguageServiceMode:()=>eq,LanguageVariant:()=>j9,LexicalEnvironmentFlags:()=>$9,ListFormat:()=>Z9,LogLevel:()=>QG,MemberOverrideStatus:()=>c9,ModifierFlags:()=>CW,ModuleDetectionKind:()=>w9,ModuleInstanceState:()=>_K,ModuleKind:()=>UC,ModuleResolutionKind:()=>Dx,ModuleSpecifierEnding:()=>LU,NavigateTo:()=>oue,NavigationBar:()=>_ue,NewLineKind:()=>G9,NodeBuilderFlags:()=>p9,NodeCheckFlags:()=>S9,NodeFactoryFlags:()=>GU,NodeFlags:()=>DW,NodeResolutionFeatures:()=>pK,ObjectFlags:()=>OW,OperationCanceledException:()=>Rx,OperatorPrecedence:()=>IU,OrganizeImports:()=>Rm,OrganizeImportsMode:()=>nq,OuterExpressionKinds:()=>Y9,OutliningElementsCollector:()=>vQ,OutliningSpanKind:()=>cq,OutputFileType:()=>dq,PackageJsonAutoImportPreference:()=>ZJ,PackageJsonDependencyGroup:()=>QJ,PatternMatchKind:()=>S7,PollingInterval:()=>VW,PollingWatchKind:()=>F9,PragmaKindFlags:()=>eV,PrivateIdentifierKind:()=>qU,ProcessLevel:()=>FK,ProgramUpdateLevel:()=>eJ,QuotePreference:()=>gX,RelationComparisonResult:()=>NW,Rename:()=>vB,ScriptElementKind:()=>fq,ScriptElementKindModifier:()=>mq,ScriptKind:()=>FW,ScriptSnapshot:()=>Nz,ScriptTarget:()=>V9,SemanticClassificationFormat:()=>tq,SemanticMeaning:()=>hX,SemicolonPreference:()=>sq,SignatureCheckMode:()=>M3,SignatureFlags:()=>WW,SignatureHelp:()=>HO,SignatureKind:()=>D9,SmartSelectionRange:()=>SQ,SnippetKind:()=>BW,SortKind:()=>XG,StructureIsReused:()=>LW,SymbolAccessibility:()=>_9,SymbolDisplay:()=>Xy,SymbolDisplayPartKind:()=>Vw,SymbolFlags:()=>kW,SymbolFormatFlags:()=>m9,SyntaxKind:()=>RW,SyntheticSymbolKind:()=>h9,Ternary:()=>L9,ThrottledCancellationToken:()=>SY,TokenClass:()=>pq,TokenFlags:()=>i9,TransformFlags:()=>zW,TypeFacts:()=>N3,TypeFlags:()=>wW,TypeFormatFlags:()=>f9,TypeMapKind:()=>N9,TypePredicateKind:()=>g9,TypeReferenceSerializationKind:()=>y9,UnionReduction:()=>d9,UpToDateStatusType:()=>HJ,VarianceFlags:()=>T9,Version:()=>fm,VersionRange:()=>xL,WatchDirectoryFlags:()=>U9,WatchDirectoryKind:()=>W9,WatchFileKind:()=>O9,WatchLogLevel:()=>tJ,WatchType:()=>kc,accessPrivateIdentifier:()=>nle,addDisposableResourceHelper:()=>C4,addEmitFlags:()=>D_,addEmitHelper:()=>VI,addEmitHelpers:()=>Fg,addInternalEmitFlags:()=>BI,addNodeFactoryPatcher:()=>MSe,addObjectAllocatorPatcher:()=>ioe,addRange:()=>Hr,addRelatedInfo:()=>Pa,addSyntheticLeadingComment:()=>rP,addSyntheticTrailingComment:()=>n4,addToSeen:()=>Em,advancedAsyncSuperHelper:()=>Ck,affectsDeclarationPathOptionDeclarations:()=>qH,affectsEmitOptionDeclarations:()=>JH,allKeysStartWithDot:()=>T3,altDirectorySeparator:()=>FL,and:()=>EW,append:()=>Tn,appendIfUnique:()=>xg,arrayFrom:()=>Wo,arrayIsEqualTo:()=>Gm,arrayIsHomogeneous:()=>Aoe,arrayIsSorted:()=>fW,arrayOf:()=>$te,arrayReverseIterator:()=>wG,arrayToMap:()=>_0,arrayToMultiMap:()=>TL,arrayToNumericMap:()=>Zte,arraysEqual:()=>bL,assertType:()=>pEe,assign:()=>bx,assignHelper:()=>c4,asyncDelegator:()=>u4,asyncGeneratorHelper:()=>d4,asyncSuperHelper:()=>Dk,asyncValues:()=>p4,attachFileToDiagnostics:()=>wI,awaitHelper:()=>jI,awaiterHelper:()=>m4,base64decode:()=>Jie,base64encode:()=>Kie,binarySearch:()=>by,binarySearchKey:()=>lI,bindSourceFile:()=>Pse,breakIntoCharacterSpans:()=>Qde,breakIntoWordSpans:()=>Zde,buildLinkParts:()=>Sde,buildOpts:()=>p3,buildOverload:()=>hke,bundlerModuleNameResolver:()=>Ese,canBeConvertedToAsync:()=>wX,canHaveDecorators:()=>GT,canHaveExportModifier:()=>dk,canHaveFlowNode:()=>F2,canHaveIllegalDecorators:()=>TH,canHaveIllegalModifiers:()=>wae,canHaveIllegalType:()=>sTe,canHaveIllegalTypeParameters:()=>kae,canHaveJSDoc:()=>z2,canHaveLocals:()=>lh,canHaveModifiers:()=>Am,canHaveSymbol:()=>b_,canJsonReportNoInputFiles:()=>SP,canProduceDiagnostics:()=>H3,canUsePropertyAccess:()=>_U,canWatchAffectingLocation:()=>cce,canWatchAtTypes:()=>lce,canWatchDirectoryOrFile:()=>pz,cartesianProduct:()=>cne,cast:()=>na,chainBundle:()=>Im,chainDiagnosticMessages:()=>zo,changeAnyExtension:()=>OL,changeCompilerHostLikeToUseCache:()=>Nw,changeExtension:()=>pE,changeFullExtension:()=>Dne,changesAffectModuleResolution:()=>yF,changesAffectingProgramStructure:()=>Nre,childIsDecorated:()=>_N,classElementOrClassElementParameterIsDecorated:()=>lj,classHasClassThisAssignment:()=>wK,classHasDeclaredOrExplicitlyAssignedName:()=>OK,classHasExplicitlyAssignedName:()=>V3,classOrConstructorParameterIsDecorated:()=>Ny,classPrivateFieldGetHelper:()=>x4,classPrivateFieldInHelper:()=>D4,classPrivateFieldSetHelper:()=>R4,classicNameResolver:()=>Rse,classifier:()=>dpe,cleanExtendedConfigCache:()=>Z3,clear:()=>Gh,clearMap:()=>$u,clearSharedExtendedConfigFileWatcher:()=>$K,climbPastPropertyAccess:()=>Mz,climbPastPropertyOrElementAccess:()=>Xce,clone:()=>BG,cloneCompilerOptions:()=>wq,closeFileWatcher:()=>Hm,closeFileWatcherOf:()=>Rf,codefix:()=>Od,collapseTextChangeRangesAcrossMultipleVersions:()=>Vne,collectExternalModuleInfo:()=>CK,combine:()=>vx,combinePaths:()=>Yr,commentPragmas:()=>PL,commonOptionsWithBuild:()=>ow,commonPackageFolders:()=>DU,compact:()=>SL,compareBooleans:()=>bv,compareDataObjects:()=>Qj,compareDiagnostics:()=>FN,compareDiagnosticsSkipRelatedInformation:()=>T6,compareEmitHelpers:()=>eae,compareNumberOfDirectorySeparators:()=>sk,comparePaths:()=>Rg,comparePathsCaseInsensitive:()=>zEe,comparePathsCaseSensitive:()=>FEe,comparePatternKeys:()=>dK,compareProperties:()=>one,compareStringsCaseInsensitive:()=>vW,compareStringsCaseInsensitiveEslintCompatible:()=>nne,compareStringsCaseSensitive:()=>Vd,compareStringsCaseSensitiveUI:()=>IL,compareTextSpans:()=>yW,compareValues:()=>Zs,compileOnSaveCommandLineOption:()=>rw,compilerOptionsAffectDeclarationPath:()=>moe,compilerOptionsAffectEmit:()=>foe,compilerOptionsAffectSemanticDiagnostics:()=>poe,compilerOptionsDidYouMeanDiagnostics:()=>lw,compilerOptionsIndicateEsModules:()=>Gq,compose:()=>dEe,computeCommonSourceDirectoryOfFilenames:()=>Gle,computeLineAndCharacterOfPosition:()=>Nx,computeLineOfPosition:()=>qC,computeLineStarts:()=>hI,computePositionOfLineAndCharacter:()=>XW,computeSignature:()=>JT,computeSignatureWithDiagnostics:()=>TJ,computeSuggestionDiagnostics:()=>MX,computedOptions:()=>fc,concatenate:()=>Eo,concatenateDiagnosticMessageChains:()=>loe,consumesNodeCoreModules:()=>u7,contains:()=>Bo,containsIgnoredPath:()=>JN,containsObjectRestOrSpread:()=>qk,containsParseError:()=>Vx,containsPath:()=>mm,convertCompilerOptionsForTelemetry:()=>ise,convertCompilerOptionsFromJson:()=>dAe,convertJsonOption:()=>VT,convertToBase64:()=>Hie,convertToJson:()=>ew,convertToObject:()=>Zae,convertToOptionsWithAbsolutePaths:()=>GH,convertToRelativePath:()=>JC,convertToTSConfig:()=>YTe,convertTypeAcquisitionFromJson:()=>uAe,copyComments:()=>$T,copyEntries:()=>vF,copyLeadingComments:()=>fD,copyProperties:()=>GG,copyTrailingAsLeadingComments:()=>lO,copyTrailingComments:()=>tM,couldStartTrivia:()=>Mne,countWhere:()=>yv,createAbstractBuilder:()=>g1e,createAccessorPropertyBackingField:()=>IH,createAccessorPropertyGetRedirector:()=>jae,createAccessorPropertySetRedirector:()=>Uae,createBaseNodeFactory:()=>Foe,createBinaryExpressionTrampoline:()=>e3,createBindingHelper:()=>xR,createBuildInfo:()=>Iw,createBuilderProgram:()=>AJ,createBuilderProgramUsingProgramBuildInfo:()=>ace,createBuilderStatusReporter:()=>Tce,createCacheWithRedirects:()=>nK,createCacheableExportInfoMap:()=>bX,createCachedDirectoryStructureHost:()=>$3,createClassNamedEvaluationHelperBlock:()=>lle,createClassThisAssignmentBlock:()=>ale,createClassifier:()=>kxe,createCommentDirectivesMap:()=>Ore,createCompilerDiagnostic:()=>jl,createCompilerDiagnosticForInvalidCustomType:()=>qae,createCompilerDiagnosticFromMessageChain:()=>S6,createCompilerHost:()=>Vle,createCompilerHostFromProgramHost:()=>GJ,createCompilerHostWorker:()=>iJ,createDetachedDiagnostic:()=>yR,createDiagnosticCollection:()=>cR,createDiagnosticForFileFromMessageChain:()=>rj,createDiagnosticForNode:()=>Pr,createDiagnosticForNodeArray:()=>Hx,createDiagnosticForNodeArrayFromMessageChain:()=>g2,createDiagnosticForNodeFromMessageChain:()=>Mg,createDiagnosticForNodeInSourceFile:()=>Kf,createDiagnosticForRange:()=>qre,createDiagnosticMessageChainFromDiagnostic:()=>Jre,createDiagnosticReporter:()=>ww,createDocumentPositionMapper:()=>Yse,createDocumentRegistry:()=>Gde,createDocumentRegistryInternal:()=>RX,createEmitAndSemanticDiagnosticsBuilderProgram:()=>CJ,createEmitHelperFactory:()=>Zoe,createEmptyExports:()=>Bk,createExpressionForJsxElement:()=>Rae,createExpressionForJsxFragment:()=>Dae,createExpressionForObjectLiteralElementLike:()=>Cae,createExpressionForPropertyName:()=>gH,createExpressionFromEntityName:()=>Gk,createExternalHelpersImportDeclarationIfNeeded:()=>bH,createFileDiagnostic:()=>Qc,createFileDiagnosticFromMessageChain:()=>DF,createForOfBindingStatement:()=>hH,createGetCanonicalFileName:()=>Nd,createGetSourceFile:()=>nJ,createGetSymbolAccessibilityDiagnosticForNode:()=>Gy,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Mle,createGetSymbolWalker:()=>Mse,createIncrementalCompilerHost:()=>jJ,createIncrementalProgram:()=>Ece,createInputFiles:()=>kSe,createInputFilesWithFilePaths:()=>zU,createInputFilesWithFileTexts:()=>BU,createJsxFactoryExpression:()=>_H,createLanguageService:()=>ipe,createLanguageServiceSourceFile:()=>K7,createMemberAccessForPropertyName:()=>BT,createModeAwareCache:()=>u1,createModeAwareCacheKey:()=>RP,createModuleNotFoundChain:()=>bF,createModuleResolutionCache:()=>HR,createModuleResolutionLoader:()=>dJ,createModuleResolutionLoaderUsingGlobalCache:()=>fce,createModuleSpecifierResolutionHost:()=>YT,createMultiMap:()=>qp,createNodeConverters:()=>Boe,createNodeFactory:()=>bk,createOptionNameMap:()=>r3,createOverload:()=>MQ,createPackageJsonImportFilter:()=>iM,createPackageJsonInfo:()=>lX,createParenthesizerRules:()=>zoe,createPatternMatcher:()=>Kde,createPrependNodes:()=>gJ,createPrinter:()=>AE,createPrinterWithDefaults:()=>XK,createPrinterWithRemoveComments:()=>rS,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>YK,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>xw,createProgram:()=>iz,createProgramHost:()=>VJ,createPropertyNameNodeForIdentifierOrLiteral:()=>B6,createQueue:()=>AL,createRange:()=>Ef,createRedirectedBuilderProgram:()=>xJ,createResolutionCache:()=>PJ,createRuntimeTypeSerializer:()=>fle,createScanner:()=>xy,createSemanticDiagnosticsBuilderProgram:()=>h1e,createSet:()=>VG,createSolutionBuilder:()=>L1e,createSolutionBuilderHost:()=>P1e,createSolutionBuilderWithWatch:()=>k1e,createSolutionBuilderWithWatchHost:()=>M1e,createSortedArray:()=>kG,createSourceFile:()=>Yk,createSourceMapGenerator:()=>Kse,createSourceMapSource:()=>wSe,createSuperAccessVariableStatement:()=>U3,createSymbolTable:()=>aa,createSymlinkCache:()=>oU,createSystemWatchFunctions:()=>Ane,createTextChange:()=>Zw,createTextChangeFromStartLength:()=>Kz,createTextChangeRange:()=>qL,createTextRangeFromNode:()=>Fq,createTextRangeFromSpan:()=>Hz,createTextSpan:()=>gd,createTextSpanFromBounds:()=>dc,createTextSpanFromNode:()=>Iu,createTextSpanFromRange:()=>eb,createTextSpanFromStringLiteralLikeContent:()=>Wq,createTextWriter:()=>$2,createTokenRange:()=>Xj,createTypeChecker:()=>Bse,createTypeReferenceDirectiveResolutionCache:()=>b3,createTypeReferenceResolutionLoader:()=>tz,createUnparsedSourceFile:()=>FU,createWatchCompilerHost:()=>D1e,createWatchCompilerHostOfConfigFile:()=>yce,createWatchCompilerHostOfFilesAndCompilerOptions:()=>vce,createWatchFactory:()=>BJ,createWatchHost:()=>zJ,createWatchProgram:()=>C1e,createWatchStatusReporter:()=>mce,createWriteFileMeasuringIO:()=>rJ,declarationNameToString:()=>Ts,decodeMappings:()=>xK,decodedTextSpanIntersectsWith:()=>JL,decorateHelper:()=>i4,deduplicate:()=>m0,defaultIncludeSpec:()=>_3,defaultInitCompilerOptions:()=>f3,defaultMaximumTruncationLength:()=>mk,detectSortCaseSensitivity:()=>zC,diagnosticCategoryName:()=>rT,diagnosticToString:()=>ZT,directoryProbablyExists:()=>Um,directorySeparator:()=>nl,displayPart:()=>ep,displayPartsToString:()=>CO,disposeEmitNodes:()=>VU,disposeResourcesHelper:()=>N4,documentSpansEqual:()=>Kq,dumpTracingLegend:()=>Ene,elementAt:()=>Ay,elideNodes:()=>Vae,emitComments:()=>kie,emitDetachedComments:()=>wie,emitFiles:()=>q3,emitFilesAndReportErrors:()=>hz,emitFilesAndReportErrorsAndGetExitStatus:()=>gce,emitModuleKindIsNonNodeESM:()=>A6,emitNewLineBeforeLeadingCommentOfPosition:()=>Lie,emitNewLineBeforeLeadingComments:()=>Pie,emitNewLineBeforeLeadingCommentsOfPosition:()=>Mie,emitSkippedWithNoDiagnostics:()=>cz,emitUsingBuildInfo:()=>Wle,emptyArray:()=>Xe,emptyFileSystemEntries:()=>Q6,emptyMap:()=>IW,emptyOptions:()=>Cf,emptySet:()=>une,endsWith:()=>El,ensurePathIsNonModuleName:()=>h0,ensureScriptKind:()=>L6,ensureTrailingDirectorySeparator:()=>Bc,entityNameToString:()=>up,enumerateInsertsAndDeletes:()=>TW,equalOwnProperties:()=>Qte,equateStringsCaseInsensitive:()=>qb,equateStringsCaseSensitive:()=>eT,equateValues:()=>Ty,esDecorateHelper:()=>s4,escapeJsxAttributeString:()=>wj,escapeLeadingUnderscores:()=>pl,escapeNonAsciiString:()=>Y2,escapeSnippetText:()=>z0,escapeString:()=>Qh,escapeTemplateSubstitution:()=>Lj,every:()=>oo,expandPreOrPostfixIncrementOrDecrementExpression:()=>q4,explainFiles:()=>kJ,explainIfFileIsRedirectAndImpliedFormat:()=>wJ,exportAssignmentIsAlias:()=>oR,exportStarHelper:()=>I4,expressionResultIsUnused:()=>xoe,extend:()=>gW,extendsHelper:()=>_4,extensionFromPath:()=>VN,extensionIsTS:()=>O6,extensionsNotSupportingExtensionlessResolution:()=>vk,externalHelpersModuleNameText:()=>Gv,factory:()=>L,fileExtensionIs:()=>Sl,fileExtensionIsOneOf:()=>bc,fileIncludeReasonToDiagnostics:()=>FJ,fileShouldUseJavaScriptRequire:()=>_X,filter:()=>jr,filterMutate:()=>CG,filterSemanticDiagnostics:()=>oz,find:()=>Vr,findAncestor:()=>Fn,findBestPatternMatch:()=>KG,findChildOfKind:()=>_s,findComputedPropertyNameCacheAssignment:()=>t3,findConfigFile:()=>Ble,findContainingList:()=>Wz,findDiagnosticForNode:()=>Lde,findFirstNonJsxWhitespaceToken:()=>ede,findIndex:()=>Kl,findLast:()=>sI,findLastIndex:()=>pW,findListItemInfo:()=>Zce,findMap:()=>aEe,findModifier:()=>dD,findNextToken:()=>aS,findPackageJson:()=>Pde,findPackageJsons:()=>sX,findPrecedingMatchingToken:()=>jz,findPrecedingToken:()=>Tc,findSuperStatementIndexPath:()=>z3,findTokenOnLeftOfPosition:()=>Bz,findUseStrictPrologue:()=>vH,first:()=>Va,firstDefined:()=>Wl,firstDefinedIterator:()=>vL,firstIterator:()=>WG,firstOrOnly:()=>pX,firstOrUndefined:()=>Xc,firstOrUndefinedIterator:()=>mW,fixupCompilerOptions:()=>WX,flatMap:()=>va,flatMapIterator:()=>NG,flatMapToMutable:()=>wC,flatten:()=>pm,flattenCommaList:()=>Hae,flattenDestructuringAssignment:()=>UT,flattenDestructuringBinding:()=>nS,flattenDiagnosticMessageText:()=>k_,forEach:()=>gn,forEachAncestor:()=>Pre,forEachAncestorDirectory:()=>hm,forEachChild:()=>Go,forEachChildRecursively:()=>bP,forEachEmittedFile:()=>HK,forEachEnclosingBlockScopeContainer:()=>Ure,forEachEntry:()=>Gc,forEachExternalModuleToImportFrom:()=>SX,forEachImportClauseDeclaration:()=>$F,forEachKey:()=>dh,forEachLeadingCommentRange:()=>VL,forEachNameInAccessChainWalkingLeft:()=>noe,forEachPropertyAssignment:()=>Xx,forEachResolvedProjectReference:()=>pJ,forEachReturnStatement:()=>I0,forEachRight:()=>jte,forEachTrailingCommentRange:()=>jL,forEachTsConfigPropArray:()=>E2,forEachUnique:()=>qq,forEachYieldExpression:()=>Yre,forSomeAncestorDirectory:()=>rSe,formatColorAndReset:()=>iS,formatDiagnostic:()=>oJ,formatDiagnostics:()=>$Ie,formatDiagnosticsWithColorAndContext:()=>jle,formatGeneratedName:()=>vE,formatGeneratedNamePart:()=>BR,formatLocation:()=>aJ,formatMessage:()=>nU,formatStringFromArgs:()=>tg,formatting:()=>wc,fullTripleSlashAMDReferencePathRegEx:()=>EU,fullTripleSlashReferencePathRegEx:()=>bU,generateDjb2Hash:()=>HC,generateTSConfig:()=>tAe,generatorHelper:()=>S4,getAdjustedReferenceLocation:()=>Cq,getAdjustedRenameLocation:()=>zz,getAliasDeclarationFromName:()=>Sj,getAllAccessorDeclarations:()=>AT,getAllDecoratorsOfClass:()=>PK,getAllDecoratorsOfClassElement:()=>G3,getAllJSDocTags:()=>rF,getAllJSDocTagsOfKind:()=>m0e,getAllKeys:()=>lEe,getAllProjectOutputs:()=>J3,getAllSuperTypeNodes:()=>bN,getAllUnscopedEmitHelpers:()=>JU,getAllowJSCompilerOption:()=>Vv,getAllowSyntheticDefaultImports:()=>RT,getAncestor:()=>dE,getAnyExtensionFromPath:()=>Cx,getAreDeclarationMapsEnabled:()=>hk,getAssignedExpandoInitializer:()=>AI,getAssignedName:()=>tF,getAssignedNameOfIdentifier:()=>kP,getAssignmentDeclarationKind:()=>zl,getAssignmentDeclarationPropertyAccessKind:()=>L2,getAssignmentTargetKind:()=>DI,getAutomaticTypeDirectiveNames:()=>y3,getBaseFileName:()=>nc,getBinaryOperatorPrecedence:()=>X2,getBuildInfo:()=>X3,getBuildInfoFileVersionMap:()=>IJ,getBuildInfoText:()=>Ole,getBuildOrderFromAnyBuildOrder:()=>Ez,getBuilderCreationParameters:()=>dz,getBuilderFileEmit:()=>Zv,getCheckFlags:()=>Tl,getClassExtendsHeritageElement:()=>N0,getClassLikeDeclarationOfSymbol:()=>Og,getCombinedLocalAndExportSymbolFlags:()=>_R,getCombinedModifierFlags:()=>Zb,getCombinedNodeFlags:()=>Ry,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>hV,getCommentRange:()=>C_,getCommonSourceDirectory:()=>GP,getCommonSourceDirectoryOfConfig:()=>$R,getCompilerOptionValue:()=>x6,getCompilerOptionsDiffValue:()=>ZTe,getConditions:()=>$v,getConfigFileParsingDiagnostics:()=>KT,getConstantValue:()=>Koe,getContainerFlags:()=>mK,getContainerNode:()=>XT,getContainingClass:()=>ad,getContainingClassExcludingClassDecorators:()=>WF,getContainingClassStaticBlock:()=>oie,getContainingFunction:()=>Wp,getContainingFunctionDeclaration:()=>iie,getContainingFunctionOrClassStaticBlock:()=>OF,getContainingNodeArray:()=>Roe,getContainingObjectLiteralElement:()=>NO,getContextualTypeFromParent:()=>r7,getContextualTypeFromParentOrAncestorTypeNode:()=>Fz,getCurrentTime:()=>Ww,getDeclarationDiagnostics:()=>Lle,getDeclarationEmitExtensionForPath:()=>a6,getDeclarationEmitOutputFilePath:()=>xie,getDeclarationEmitOutputFilePathWorker:()=>o6,getDeclarationFileExtension:()=>CH,getDeclarationFromName:()=>vN,getDeclarationModifierFlagsFromSymbol:()=>Tf,getDeclarationOfKind:()=>cl,getDeclarationsOfKind:()=>Dre,getDeclaredExpandoInitializer:()=>C2,getDecorators:()=>xv,getDefaultCompilerOptions:()=>H7,getDefaultExportInfoWorker:()=>b7,getDefaultFormatCodeSettings:()=>Cz,getDefaultLibFileName:()=>HL,getDefaultLibFilePath:()=>ope,getDefaultLikeExportInfo:()=>v7,getDiagnosticText:()=>jTe,getDiagnosticsWithinSpan:()=>kde,getDirectoryPath:()=>oi,getDirectoryToWatchFailedLookupLocation:()=>NJ,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>uce,getDocumentPositionMapper:()=>PX,getDocumentSpansEqualityComparer:()=>Jq,getESModuleInterop:()=>mh,getEditsForFileRename:()=>jde,getEffectiveBaseTypeNode:()=>S_,getEffectiveConstraintOfTypeParameter:()=>wx,getEffectiveContainerForJSDocTemplateTag:()=>QF,getEffectiveImplementsTypeNodes:()=>aR,getEffectiveInitializer:()=>D2,getEffectiveJSDocHost:()=>cE,getEffectiveModifierFlags:()=>lu,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>zie,getEffectiveModifierFlagsNoCache:()=>Bie,getEffectiveReturnTypeNode:()=>$f,getEffectiveSetAccessorTypeAnnotationNode:()=>Nie,getEffectiveTypeAnnotationNode:()=>yd,getEffectiveTypeParameterDeclarations:()=>Rv,getEffectiveTypeRoots:()=>xP,getElementOrPropertyAccessArgumentExpressionOrName:()=>YF,getElementOrPropertyAccessName:()=>Lg,getElementsOfBindingOrAssignmentPattern:()=>zR,getEmitDeclarations:()=>Af,getEmitFlags:()=>za,getEmitHelpers:()=>r4,getEmitModuleDetectionKind:()=>xU,getEmitModuleKind:()=>Ld,getEmitModuleResolutionKind:()=>du,getEmitScriptTarget:()=>ns,getEmitStandardClassFields:()=>uoe,getEnclosingBlockScopeContainer:()=>uh,getEnclosingContainer:()=>nj,getEncodedSemanticClassifications:()=>IX,getEncodedSyntacticClassifications:()=>xX,getEndLinePosition:()=>f2,getEntityNameFromTypeNode:()=>A2,getEntrypointsFromPackageJsonInfo:()=>sK,getErrorCountForSummary:()=>mz,getErrorSpanForNode:()=>fT,getErrorSummaryText:()=>_ce,getEscapedTextOfIdentifierOrLiteral:()=>TN,getEscapedTextOfJsxAttributeName:()=>$N,getEscapedTextOfJsxNamespacedName:()=>FI,getExpandoInitializer:()=>sE,getExportAssignmentExpression:()=>Tj,getExportInfoMap:()=>fO,getExportNeedsImportStarHelper:()=>$se,getExpressionAssociativity:()=>Nj,getExpressionPrecedence:()=>IN,getExternalHelpersModuleName:()=>jk,getExternalModuleImportEqualsDeclarationExpression:()=>hN,getExternalModuleName:()=>tR,getExternalModuleNameFromDeclaration:()=>Aie,getExternalModuleNameFromPath:()=>Wj,getExternalModuleNameLiteral:()=>s1,getExternalModuleRequireArgument:()=>dj,getFallbackOptions:()=>Cw,getFileEmitOutput:()=>Yle,getFileMatcherPatterns:()=>M6,getFileNamesFromConfigSpecs:()=>TP,getFileWatcherEventKind:()=>nV,getFilesInErrorForSummary:()=>_z,getFirstConstructorWithBody:()=>Zh,getFirstIdentifier:()=>Fp,getFirstNonSpaceCharacterPosition:()=>Ide,getFirstProjectOutput:()=>qK,getFixableErrorSpanExpression:()=>dX,getFormatCodeSettingsForWriting:()=>_7,getFullWidth:()=>u2,getFunctionFlags:()=>Vc,getHeritageClause:()=>H2,getHostSignatureFromJSDoc:()=>lE,getIdentifierAutoGenerate:()=>BSe,getIdentifierGeneratedImportReference:()=>Qoe,getIdentifierTypeArguments:()=>DT,getImmediatelyInvokedFunctionExpression:()=>_T,getImpliedNodeFormatForFile:()=>Lw,getImpliedNodeFormatForFileWorker:()=>_J,getImportNeedsImportDefaultHelper:()=>DK,getImportNeedsImportStarHelper:()=>W3,getIndentSize:()=>uR,getIndentString:()=>r6,getInferredLibraryNameResolveFrom:()=>rz,getInitializedVariables:()=>wN,getInitializerOfBinaryExpression:()=>_j,getInitializerOfBindingOrAssignmentElement:()=>Hk,getInterfaceBaseTypeNodes:()=>EN,getInternalEmitFlags:()=>ym,getInvokedExpression:()=>BF,getIsolatedModules:()=>em,getJSDocAugmentsTag:()=>$ne,getJSDocClassTag:()=>yV,getJSDocCommentRanges:()=>oj,getJSDocCommentsAndTags:()=>gj,getJSDocDeprecatedTag:()=>vV,getJSDocDeprecatedTagNoCache:()=>ire,getJSDocEnumTag:()=>bV,getJSDocHost:()=>vT,getJSDocImplementsTags:()=>Qne,getJSDocOverloadTags:()=>vj,getJSDocOverrideTagNoCache:()=>rre,getJSDocParameterTags:()=>kx,getJSDocParameterTagsNoCache:()=>Jne,getJSDocPrivateTag:()=>c0e,getJSDocPrivateTagNoCache:()=>ere,getJSDocProtectedTag:()=>d0e,getJSDocProtectedTagNoCache:()=>tre,getJSDocPublicTag:()=>l0e,getJSDocPublicTagNoCache:()=>Zne,getJSDocReadonlyTag:()=>u0e,getJSDocReadonlyTagNoCache:()=>nre,getJSDocReturnTag:()=>ore,getJSDocReturnType:()=>YL,getJSDocRoot:()=>iR,getJSDocSatisfiesExpressionType:()=>gU,getJSDocSatisfiesTag:()=>EV,getJSDocTags:()=>rE,getJSDocTagsNoCache:()=>f0e,getJSDocTemplateTag:()=>p0e,getJSDocThisTag:()=>nF,getJSDocType:()=>nE,getJSDocTypeAliasName:()=>SH,getJSDocTypeAssertionType:()=>Y4,getJSDocTypeParameterDeclarations:()=>d6,getJSDocTypeParameterTags:()=>qne,getJSDocTypeParameterTagsNoCache:()=>Xne,getJSDocTypeTag:()=>tE,getJSXImplicitImportBase:()=>D6,getJSXRuntimeImport:()=>C6,getJSXTransformEnabled:()=>R6,getKeyForCompilerOptions:()=>tK,getLanguageVariant:()=>ik,getLastChild:()=>Zj,getLeadingCommentRanges:()=>jh,getLeadingCommentRangesOfNode:()=>ij,getLeftmostAccessExpression:()=>hR,getLeftmostExpression:()=>gR,getLibraryNameFromLibFileName:()=>fJ,getLineAndCharacterOfPosition:()=>hs,getLineInfo:()=>AK,getLineOfLocalPosition:()=>RN,getLineOfLocalPositionFromLineMap:()=>ST,getLineStartPositionForPosition:()=>rm,getLineStarts:()=>Dg,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Qie,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>$ie,getLinesBetweenPositions:()=>XC,getLinesBetweenRangeEndAndRangeStart:()=>Yj,getLinesBetweenRangeEndPositions:()=>tSe,getLiteralText:()=>Wre,getLocalNameForExternalImport:()=>FR,getLocalSymbolForExportDefault:()=>mR,getLocaleSpecificMessage:()=>wo,getLocaleTimeString:()=>Ow,getMappedContextSpan:()=>Xq,getMappedDocumentSpan:()=>Zz,getMappedLocation:()=>QP,getMatchedFileSpec:()=>OJ,getMatchedIncludeSpec:()=>WJ,getMeaningFromDeclaration:()=>jw,getMeaningFromLocation:()=>qT,getMembersOfDeclaration:()=>$re,getModeForFileReference:()=>Pw,getModeForResolutionAtIndex:()=>Ule,getModeForUsageLocation:()=>lJ,getModifiedTime:()=>fI,getModifiers:()=>y0,getModuleInstanceState:()=>Vg,getModuleNameStringLiteralAt:()=>kw,getModuleSpecifierEndingPreference:()=>yoe,getModuleSpecifierResolverHost:()=>Vq,getNameForExportedSymbol:()=>p7,getNameFromImportAttribute:()=>U6,getNameFromIndexInfo:()=>Hre,getNameFromPropertyName:()=>nO,getNameOfAccessExpression:()=>tU,getNameOfCompilerOptionValue:()=>BH,getNameOfDeclaration:()=>Po,getNameOfExpando:()=>fj,getNameOfJSDocTypedef:()=>Kne,getNameOrArgument:()=>M2,getNameTable:()=>gY,getNamesForExportedSymbol:()=>wde,getNamespaceDeclarationNode:()=>nR,getNewLineCharacter:()=>wy,getNewLineKind:()=>pO,getNewLineOrDefaultFromHost:()=>Ky,getNewTargetContainer:()=>sie,getNextJSDocCommentLocation:()=>yj,getNodeForGeneratedName:()=>Jk,getNodeId:()=>rs,getNodeKind:()=>oS,getNodeModifiers:()=>XP,getNodeModulePathParts:()=>G6,getNonAssignedNameOfDeclaration:()=>eF,getNonAssignmentOperatorForCompoundAssignment:()=>PP,getNonAugmentationDeclaration:()=>YV,getNonDecoratorTokenPosOfNode:()=>HV,getNormalizedAbsolutePath:()=>ho,getNormalizedAbsolutePathWithoutRoot:()=>lV,getNormalizedPathComponents:()=>wL,getObjectFlags:()=>Lr,getOperator:()=>Mj,getOperatorAssociativity:()=>Pj,getOperatorPrecedence:()=>q2,getOptionFromName:()=>OH,getOptionsForLibraryResolution:()=>rK,getOptionsNameMap:()=>VR,getOrCreateEmitNode:()=>kd,getOrCreateExternalHelpersModuleNameIfNeeded:()=>Lae,getOrUpdate:()=>WC,getOriginalNode:()=>Nl,getOriginalNodeId:()=>wd,getOriginalSourceFile:()=>H0e,getOutputDeclarationFileName:()=>BP,getOutputDeclarationFileNameWorker:()=>KK,getOutputExtension:()=>K3,getOutputFileNames:()=>XIe,getOutputJSFileNameWorker:()=>JK,getOutputPathsFor:()=>zP,getOutputPathsForBundle:()=>FP,getOwnEmitOutputFilePath:()=>Iie,getOwnKeys:()=>Vh,getOwnValues:()=>cI,getPackageJsonInfo:()=>Q0,getPackageJsonTypesVersionsPaths:()=>g3,getPackageJsonsVisibleToFile:()=>Mde,getPackageNameFromTypesPackageName:()=>DP,getPackageScopeForPath:()=>fw,getParameterSymbolFromJSDoc:()=>B2,getParameterTypeNode:()=>pSe,getParentNodeInSpan:()=>iO,getParseTreeNode:()=>Do,getParsedCommandLineOfConfigFile:()=>Qk,getPathComponents:()=>zc,getPathComponentsRelativeTo:()=>dV,getPathFromPathComponents:()=>Tv,getPathUpdater:()=>CX,getPathsBasePath:()=>s6,getPatternFromSpec:()=>_oe,getPendingEmitKind:()=>nD,getPositionOfLineAndCharacter:()=>BL,getPossibleGenericSignatures:()=>Pq,getPossibleOriginalInputExtensionForExtension:()=>Rie,getPossibleTypeArgumentsInfo:()=>Mq,getPreEmitDiagnostics:()=>YIe,getPrecedingNonSpaceCharacterPosition:()=>t7,getPrivateIdentifier:()=>MK,getProperties:()=>NK,getProperty:()=>_W,getPropertyArrayElementValue:()=>rie,getPropertyAssignmentAliasLikeExpression:()=>bie,getPropertyNameForPropertyNameNode:()=>bT,getPropertyNameForUniqueESSymbol:()=>j0e,getPropertyNameFromType:()=>Zf,getPropertyNameOfBindingOrAssignmentElement:()=>EH,getPropertySymbolFromBindingElement:()=>Qz,getPropertySymbolsFromContextualType:()=>J7,getQuoteFromPreference:()=>Uq,getQuotePreference:()=>of,getRangesWhere:()=>LG,getRefactorContextSpan:()=>E1,getReferencedFileLocation:()=>VP,getRegexFromPattern:()=>zv,getRegularExpressionForWildcard:()=>zN,getRegularExpressionsForWildcards:()=>N6,getRelativePathFromDirectory:()=>_m,getRelativePathFromFile:()=>WL,getRelativePathToDirectoryOrUrl:()=>_I,getRenameLocation:()=>sO,getReplacementSpanForContextToken:()=>Oq,getResolutionDiagnostic:()=>yJ,getResolutionModeOverride:()=>QR,getResolveJsonModule:()=>mE,getResolvePackageJsonExports:()=>X6,getResolvePackageJsonImports:()=>Y6,getResolvedExternalModuleName:()=>i6,getRestIndicatorOfBindingOrAssignmentElement:()=>Q4,getRestParameterElementType:()=>aj,getRightMostAssignedExpression:()=>N2,getRootDeclaration:()=>A_,getRootDirectoryOfResolutionCache:()=>pce,getRootLength:()=>sh,getRootPathSplitLength:()=>E1e,getScriptKind:()=>eX,getScriptKindFromFileName:()=>k6,getScriptTargetFeatures:()=>J6,getSelectedEffectiveModifierFlags:()=>PI,getSelectedSyntacticModifierFlags:()=>Wie,getSemanticClassifications:()=>zde,getSemanticJsxChildren:()=>lR,getSetAccessorTypeAnnotationNode:()=>Die,getSetAccessorValueParameter:()=>DN,getSetExternalModuleIndicator:()=>ok,getShebang:()=>$W,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>hj,getSingleVariableOfVariableStatement:()=>RI,getSnapshotText:()=>cD,getSnippetElement:()=>jU,getSourceFileOfModule:()=>SF,getSourceFileOfNode:()=>Gn,getSourceFilePathInNewDir:()=>l6,getSourceFilePathInNewDirWorker:()=>c6,getSourceFileVersionAsHashFromText:()=>gz,getSourceFilesToEmit:()=>Fj,getSourceMapRange:()=>Wy,getSourceMapper:()=>tue,getSourceTextOfNodeFromSourceFile:()=>S0,getSpanOfTokenAtPosition:()=>ph,getSpellingSuggestion:()=>GC,getStartPositionOfLine:()=>kv,getStartPositionOfRange:()=>kN,getStartsOnNewLine:()=>nP,getStaticPropertiesAndClassStaticBlock:()=>B3,getStrictOptionValue:()=>cu,getStringComparer:()=>Ex,getSubPatternFromSpec:()=>P6,getSuperCallFromStatement:()=>F3,getSuperContainer:()=>S2,getSupportedCodeFixes:()=>_Y,getSupportedExtensions:()=>BN,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>ak,getSwitchedType:()=>oX,getSymbolId:()=>ba,getSymbolNameForPrivateIdentifier:()=>K2,getSymbolTarget:()=>tX,getSyntacticClassifications:()=>Bde,getSyntacticModifierFlags:()=>Wv,getSyntacticModifierFlagsNoCache:()=>Vj,getSynthesizedDeepClone:()=>ol,getSynthesizedDeepCloneWithReplacements:()=>aO,getSynthesizedDeepClones:()=>sS,getSynthesizedDeepClonesWithReplacements:()=>nX,getSyntheticLeadingComments:()=>IR,getSyntheticTrailingComments:()=>Ik,getTargetLabel:()=>Lz,getTargetOfBindingOrAssignmentElement:()=>Yv,getTemporaryModuleResolutionState:()=>pw,getTextOfConstantValue:()=>Fre,getTextOfIdentifierOrLiteral:()=>Xf,getTextOfJSDocComment:()=>QL,getTextOfJsxAttributeName:()=>fk,getTextOfJsxNamespacedName:()=>QN,getTextOfNode:()=>uc,getTextOfNodeFromSourceText:()=>dN,getTextOfPropertyName:()=>Ux,getThisContainer:()=>Lu,getThisParameter:()=>M0,getTokenAtPosition:()=>so,getTokenPosOfNode:()=>oE,getTokenSourceMapRange:()=>FSe,getTouchingPropertyName:()=>Wu,getTouchingToken:()=>lD,getTrailingCommentRanges:()=>Yb,getTrailingSemicolonDeferringWriter:()=>Oj,getTransformFlagsSubtreeExclusions:()=>Goe,getTransformers:()=>jK,getTsBuildInfoEmitOutputFilePath:()=>Vy,getTsConfigObjectLiteralExpression:()=>mN,getTsConfigPropArrayElementValue:()=>wF,getTypeAnnotationNode:()=>Cie,getTypeArgumentOrTypeParameterList:()=>lde,getTypeKeywordOfTypeOnlyImport:()=>Hq,getTypeNode:()=>Yoe,getTypeNodeIfAccessible:()=>rM,getTypeParameterFromJsDoc:()=>mie,getTypeParameterOwner:()=>r0e,getTypesPackageName:()=>A3,getUILocale:()=>rne,getUniqueName:()=>QT,getUniqueSymbolId:()=>Ade,getUseDefineForClassFields:()=>tP,getWatchErrorSummaryDiagnosticMessage:()=>MJ,getWatchFactory:()=>ZK,group:()=>BC,groupBy:()=>hW,guessIndentation:()=>xre,handleNoEmitOptions:()=>hJ,hasAbstractModifier:()=>w0,hasAccessorModifier:()=>I_,hasAmbientModifier:()=>Gj,hasChangesInResolutions:()=>VV,hasChildOfKind:()=>Yw,hasContextSensitiveParameters:()=>z6,hasDecorators:()=>bf,hasDocComment:()=>ade,hasDynamicName:()=>Ov,hasEffectiveModifier:()=>fp,hasEffectiveModifiers:()=>u6,hasEffectiveReadonlyModifier:()=>CN,hasExtension:()=>mI,hasIndexSignature:()=>iX,hasInitializer:()=>Mv,hasInvalidEscape:()=>kj,hasJSDocNodes:()=>kp,hasJSDocParameterTags:()=>Yne,hasJSFileExtension:()=>O0,hasJsonModuleEmitEnabled:()=>I6,hasOnlyExpressionInitializer:()=>dT,hasOverrideModifier:()=>p6,hasPossibleExternalModuleReference:()=>jre,hasProperty:()=>Ss,hasPropertyAccessExpressionWithName:()=>Hw,hasQuestionToken:()=>xI,hasRecordedExternalHelpers:()=>Mae,hasResolutionModeOverride:()=>Moe,hasRestParameter:()=>FV,hasScopeMarker:()=>yre,hasStaticModifier:()=>pc,hasSyntacticModifier:()=>$r,hasSyntacticModifiers:()=>Oie,hasTSFileExtension:()=>WI,hasTabstop:()=>Coe,hasTrailingDirectorySeparator:()=>Iy,hasType:()=>hF,hasTypeArguments:()=>F0e,hasZeroOrOneAsteriskCharacter:()=>iU,helperString:()=>KU,hostGetCanonicalFileName:()=>My,hostUsesCaseSensitiveFileNames:()=>pR,idText:()=>gr,identifierIsThisKeyword:()=>Bj,identifierToKeywordKind:()=>eE,identity:()=>Qs,identitySourceMapConsumer:()=>O3,ignoreSourceNewlines:()=>HU,ignoredPaths:()=>kL,importDefaultHelper:()=>A4,importFromModuleSpecifier:()=>yN,importNameElisionDisabled:()=>rU,importStarHelper:()=>Rk,indexOfAnyCharCode:()=>Ute,indexOfNode:()=>jx,indicesOf:()=>EL,inferredTypesContainingFile:()=>tD,injectClassNamedEvaluationHelperBlockIfMissing:()=>j3,injectClassThisAssignmentIfMissing:()=>sle,insertImports:()=>$P,insertLeadingStatement:()=>rTe,insertSorted:()=>vv,insertStatementAfterCustomPrologue:()=>uT,insertStatementAfterStandardPrologue:()=>D0e,insertStatementsAfterCustomPrologue:()=>jV,insertStatementsAfterStandardPrologue:()=>Jh,intersperse:()=>DG,intrinsicTagNameToString:()=>yU,introducesArgumentsExoticObject:()=>tie,inverseJsxOptionMap:()=>AP,isAbstractConstructorSymbol:()=>Zie,isAbstractModifier:()=>aae,isAccessExpression:()=>Ns,isAccessibilityModifier:()=>kq,isAccessor:()=>Cv,isAccessorModifier:()=>lae,isAliasSymbolDeclaration:()=>B0e,isAliasableExpression:()=>U2,isAmbientModule:()=>Md,isAmbientPropertyDeclaration:()=>QV,isAnonymousFunctionDefinition:()=>AN,isAnyDirectorySeparator:()=>oV,isAnyImportOrBareOrAccessedRequire:()=>Vre,isAnyImportOrReExport:()=>_2,isAnyImportSyntax:()=>pT,isAnySupportedFileExtension:()=>uSe,isApplicableVersionedTypesKey:()=>_w,isArgumentExpressionOfElementAccess:()=>Tq,isArray:()=>To,isArrayBindingElement:()=>dF,isArrayBindingOrAssignmentElement:()=>o2,isArrayBindingOrAssignmentPattern:()=>MV,isArrayBindingPattern:()=>V0,isArrayLiteralExpression:()=>uu,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>Uy,isArrayTypeNode:()=>kk,isArrowFunction:()=>Os,isAsExpression:()=>Ok,isAssertClause:()=>_ae,isAssertEntry:()=>XSe,isAssertionExpression:()=>cT,isAssertsKeyword:()=>iae,isAssignmentDeclaration:()=>gN,isAssignmentExpression:()=>Mc,isAssignmentOperator:()=>Ly,isAssignmentPattern:()=>sN,isAssignmentTarget:()=>$h,isAsteriskToken:()=>Nk,isAsyncFunction:()=>SN,isAsyncModifier:()=>oP,isAutoAccessorPropertyDeclaration:()=>Mu,isAwaitExpression:()=>Jv,isAwaitKeyword:()=>ZU,isBigIntLiteral:()=>P4,isBinaryExpression:()=>dr,isBinaryOperatorToken:()=>Gae,isBindableObjectDefinePropertyCall:()=>gT,isBindableStaticAccessExpression:()=>D0,isBindableStaticElementAccessExpression:()=>XF,isBindableStaticNameExpression:()=>yT,isBindingElement:()=>Xa,isBindingElementOfBareOrAccessedRequire:()=>die,isBindingName:()=>sT,isBindingOrAssignmentElement:()=>pre,isBindingOrAssignmentPattern:()=>r2,isBindingPattern:()=>Qo,isBlock:()=>Ko,isBlockOrCatchScoped:()=>KV,isBlockScope:()=>ZV,isBlockScopedContainerTopLevel:()=>Gre,isBooleanLiteral:()=>aN,isBreakOrContinueStatement:()=>nN,isBreakStatement:()=>KSe,isBuildInfoFile:()=>wle,isBuilderProgram:()=>hce,isBundle:()=>aH,isBundleFileTextLike:()=>toe,isCallChain:()=>oT,isCallExpression:()=>ia,isCallExpressionTarget:()=>gq,isCallLikeExpression:()=>E0,isCallLikeOrFunctionLikeExpression:()=>LV,isCallOrNewExpression:()=>v_,isCallOrNewExpressionTarget:()=>yq,isCallSignatureDeclaration:()=>XI,isCallToHelper:()=>iP,isCaseBlock:()=>pP,isCaseClause:()=>MR,isCaseKeyword:()=>cae,isCaseOrDefaultClause:()=>mF,isCatchClause:()=>X0,isCatchClauseVariableDeclaration:()=>Doe,isCatchClauseVariableDeclarationOrBindingElement:()=>JV,isCheckJsEnabledForFile:()=>ck,isChildOfNodeWithKind:()=>N0e,isCircularBuildOrder:()=>h1,isClassDeclaration:()=>Sc,isClassElement:()=>$c,isClassExpression:()=>Zc,isClassInstanceProperty:()=>dre,isClassLike:()=>ci,isClassMemberModifier:()=>CV,isClassNamedEvaluationHelperBlock:()=>_1,isClassOrTypeElement:()=>cF,isClassStaticBlockDeclaration:()=>Al,isClassThisAssignmentBlock:()=>LP,isCollapsedRange:()=>eSe,isColonToken:()=>nae,isCommaExpression:()=>Vk,isCommaListExpression:()=>cP,isCommaSequence:()=>gP,isCommaToken:()=>tae,isComment:()=>Uz,isCommonJsExportPropertyAssignment:()=>LF,isCommonJsExportedExpression:()=>Zre,isCompoundAssignment:()=>NP,isComputedNonLiteralName:()=>h2,isComputedPropertyName:()=>Ya,isConciseBody:()=>pF,isConditionalExpression:()=>PR,isConditionalTypeNode:()=>ZI,isConstTypeReference:()=>Ng,isConstructSignatureDeclaration:()=>Mk,isConstructorDeclaration:()=>Pl,isConstructorTypeNode:()=>RR,isContextualKeyword:()=>e6,isContinueStatement:()=>HSe,isCustomPrologue:()=>b2,isDebuggerStatement:()=>JSe,isDeclaration:()=>Hd,isDeclarationBindingElement:()=>n2,isDeclarationFileName:()=>Ed,isDeclarationName:()=>kg,isDeclarationNameOfEnumOrNamespace:()=>$j,isDeclarationReadonly:()=>CF,isDeclarationStatement:()=>Sre,isDeclarationWithTypeParameterChildren:()=>tj,isDeclarationWithTypeParameters:()=>ej,isDecorator:()=>bd,isDecoratorTarget:()=>Jce,isDefaultClause:()=>mP,isDefaultImport:()=>II,isDefaultModifier:()=>w4,isDefaultedExpandoInitializer:()=>uie,isDeleteExpression:()=>pae,isDeleteTarget:()=>Ej,isDeprecatedDeclaration:()=>f7,isDestructuringAssignment:()=>ky,isDiagnosticWithLocation:()=>cX,isDiskPathRoot:()=>aV,isDoStatement:()=>jSe,isDocumentRegistryEntry:()=>mO,isDotDotDotToken:()=>L4,isDottedName:()=>PN,isDynamicName:()=>n6,isESSymbolIdentifier:()=>U0e,isEffectiveExternalModule:()=>TI,isEffectiveModuleDeclaration:()=>Bre,isEffectiveStrictModeSourceFile:()=>$V,isElementAccessChain:()=>SV,isElementAccessExpression:()=>Js,isEmittedFileOfProgram:()=>zle,isEmptyArrayLiteral:()=>Uie,isEmptyBindingElement:()=>Une,isEmptyBindingPattern:()=>jne,isEmptyObjectLiteral:()=>Jj,isEmptyStatement:()=>rH,isEmptyStringLiteral:()=>cj,isEntityName:()=>Xu,isEntityNameExpression:()=>Bl,isEnumConst:()=>A0,isEnumDeclaration:()=>hE,isEnumMember:()=>Y0,isEqualityOperatorKind:()=>i7,isEqualsGreaterThanToken:()=>rae,isExclamationToken:()=>Pk,isExcludedFile:()=>tse,isExclusivelyTypeOnlyImportOrExport:()=>sJ,isExpandoPropertyDeclaration:()=>j6,isExportAssignment:()=>Ll,isExportDeclaration:()=>Xl,isExportModifier:()=>JI,isExportName:()=>X4,isExportNamespaceAsDefaultDeclaration:()=>IF,isExportOrDefaultModifier:()=>Kk,isExportSpecifier:()=>Kd,isExportsIdentifier:()=>hT,isExportsOrModuleExportsOrAlias:()=>Z0,isExpression:()=>ht,isExpressionNode:()=>Xh,isExpressionOfExternalModuleImportEqualsDeclaration:()=>$ce,isExpressionOfOptionalChainRoot:()=>aF,isExpressionStatement:()=>ed,isExpressionWithTypeArguments:()=>zy,isExpressionWithTypeArgumentsInClassExtendsClause:()=>f6,isExternalModule:()=>oc,isExternalModuleAugmentation:()=>T0,isExternalModuleImportEqualsDeclaration:()=>aE,isExternalModuleIndicator:()=>a2,isExternalModuleNameRelative:()=>Yc,isExternalModuleReference:()=>vh,isExternalModuleSymbol:()=>eO,isExternalOrCommonJsModule:()=>wp,isFileLevelReservedGeneratedIdentifier:()=>t2,isFileLevelUniqueName:()=>TF,isFileProbablyExternalModule:()=>Xk,isFirstDeclarationOfSymbolParameter:()=>Yq,isFixablePromiseHandler:()=>kX,isForInOrOfStatement:()=>Fx,isForInStatement:()=>G4,isForInitializer:()=>vf,isForOfStatement:()=>Wk,isForStatement:()=>kT,isFunctionBlock:()=>x0,isFunctionBody:()=>wV,isFunctionDeclaration:()=>Ec,isFunctionExpression:()=>Ps,isFunctionExpressionOrArrowFunction:()=>F0,isFunctionLike:()=>$o,isFunctionLikeDeclaration:()=>ws,isFunctionLikeKind:()=>vI,isFunctionLikeOrClassStaticBlockDeclaration:()=>Wx,isFunctionOrConstructorTypeNode:()=>ure,isFunctionOrModuleBlock:()=>NV,isFunctionSymbol:()=>fie,isFunctionTypeNode:()=>hh,isFutureReservedKeyword:()=>G0e,isGeneratedIdentifier:()=>rl,isGeneratedPrivateIdentifier:()=>aT,isGetAccessor:()=>Pv,isGetAccessorDeclaration:()=>Qp,isGetOrSetAccessorDeclaration:()=>iF,isGlobalDeclaration:()=>Cxe,isGlobalScopeAugmentation:()=>E_,isGrammarError:()=>wre,isHeritageClause:()=>Zp,isHoistedFunction:()=>PF,isHoistedVariableStatement:()=>MF,isIdentifier:()=>Fe,isIdentifierANonContextualKeyword:()=>xj,isIdentifierName:()=>vie,isIdentifierOrThisTypeNode:()=>Wae,isIdentifierPart:()=>$b,isIdentifierStart:()=>Uh,isIdentifierText:()=>Yp,isIdentifierTypePredicate:()=>nie,isIdentifierTypeReference:()=>Toe,isIfStatement:()=>LT,isIgnoredFileFromWildCardWatching:()=>Dw,isImplicitGlob:()=>sU,isImportAttribute:()=>hae,isImportAttributeName:()=>cre,isImportAttributes:()=>n1,isImportCall:()=>Op,isImportClause:()=>gh,isImportDeclaration:()=>Lc,isImportEqualsDeclaration:()=>td,isImportKeyword:()=>sP,isImportMeta:()=>Jx,isImportOrExportSpecifier:()=>yI,isImportOrExportSpecifierName:()=>Tde,isImportSpecifier:()=>Qu,isImportTypeAssertionContainer:()=>qSe,isImportTypeNode:()=>rg,isImportableFile:()=>EX,isInComment:()=>jy,isInCompoundLikeAssignment:()=>bj,isInExpressionContext:()=>VF,isInJSDoc:()=>x2,isInJSFile:()=>ir,isInJSXText:()=>ide,isInJsonFile:()=>UF,isInNonReferenceComment:()=>ude,isInReferenceComment:()=>dde,isInRightSideOfInternalImportEqualsDeclaration:()=>Pz,isInString:()=>y1,isInTemplateString:()=>Nq,isInTopLevelContext:()=>FF,isInTypeQuery:()=>TT,isIncrementalCompilation:()=>eP,isIndexSignatureDeclaration:()=>G0,isIndexedAccessTypeNode:()=>MT,isInferTypeNode:()=>CT,isInfinityOrNaNString:()=>qN,isInitializedProperty:()=>Ew,isInitializedVariable:()=>rk,isInsideJsxElement:()=>Vz,isInsideJsxElementOrAttribute:()=>rde,isInsideNodeModules:()=>uO,isInsideTemplateLiteral:()=>Qw,isInstanceOfExpression:()=>m6,isInstantiatedModule:()=>yK,isInterfaceDeclaration:()=>pu,isInternalDeclaration:()=>zV,isInternalModuleImportEqualsDeclaration:()=>Qx,isInternalName:()=>yH,isIntersectionTypeNode:()=>QI,isIntrinsicJsxName:()=>dR,isIterationStatement:()=>Nv,isJSDoc:()=>Xm,isJSDocAllType:()=>Eae,isJSDocAugmentsTag:()=>a1,isJSDocAuthorTag:()=>ZSe,isJSDocCallbackTag:()=>lH,isJSDocClassTag:()=>Tae,isJSDocCommentContainingNode:()=>_F,isJSDocConstructSignature:()=>rR,isJSDocDeprecatedTag:()=>fH,isJSDocEnumTag:()=>zk,isJSDocFunctionType:()=>kR,isJSDocImplementsTag:()=>K4,isJSDocIndexSignature:()=>HF,isJSDocLikeText:()=>RH,isJSDocLink:()=>vae,isJSDocLinkCode:()=>bae,isJSDocLinkLike:()=>SI,isJSDocLinkPlain:()=>$Se,isJSDocMemberName:()=>gE,isJSDocNameReference:()=>_P,isJSDocNamepathType:()=>QSe,isJSDocNamespaceBody:()=>S0e,isJSDocNode:()=>zx,isJSDocNonNullableType:()=>V4,isJSDocNullableType:()=>LR,isJSDocOptionalParameter:()=>pk,isJSDocOptionalType:()=>sH,isJSDocOverloadTag:()=>wR,isJSDocOverrideTag:()=>U4,isJSDocParameterTag:()=>Ym,isJSDocPrivateTag:()=>dH,isJSDocPropertyLikeTag:()=>rN,isJSDocPropertyTag:()=>Aae,isJSDocProtectedTag:()=>uH,isJSDocPublicTag:()=>cH,isJSDocReadonlyTag:()=>pH,isJSDocReturnTag:()=>H4,isJSDocSatisfiesExpression:()=>hU,isJSDocSatisfiesTag:()=>J4,isJSDocSeeTag:()=>eTe,isJSDocSignature:()=>yE,isJSDocTag:()=>Bx,isJSDocTemplateTag:()=>nm,isJSDocThisTag:()=>mH,isJSDocThrowsTag:()=>nTe,isJSDocTypeAlias:()=>qf,isJSDocTypeAssertion:()=>WR,isJSDocTypeExpression:()=>$0,isJSDocTypeLiteral:()=>FT,isJSDocTypeTag:()=>hP,isJSDocTypedefTag:()=>zT,isJSDocUnknownTag:()=>tTe,isJSDocUnknownType:()=>Sae,isJSDocVariadicType:()=>j4,isJSXTagName:()=>$x,isJsonEqual:()=>W6,isJsonSourceFile:()=>Jf,isJsxAttribute:()=>M_,isJsxAttributeLike:()=>fF,isJsxAttributeName:()=>Poe,isJsxAttributes:()=>q0,isJsxChild:()=>c2,isJsxClosingElement:()=>K0,isJsxClosingFragment:()=>gae,isJsxElement:()=>ig,isJsxExpression:()=>fP,isJsxFragment:()=>J0,isJsxNamespacedName:()=>qm,isJsxOpeningElement:()=>P_,isJsxOpeningFragment:()=>i1,isJsxOpeningLikeElement:()=>au,isJsxOpeningLikeElementTagName:()=>qce,isJsxSelfClosingElement:()=>OT,isJsxSpreadAttribute:()=>o1,isJsxTagNameExpression:()=>lN,isJsxText:()=>UI,isJumpStatementTarget:()=>Kw,isKeyword:()=>wu,isKeywordOrPunctuation:()=>ZF,isKnownSymbol:()=>J2,isLabelName:()=>Eq,isLabelOfLabeledStatement:()=>bq,isLabeledStatement:()=>H0,isLateVisibilityPaintedStatement:()=>RF,isLeftHandSideExpression:()=>Yu,isLeftHandSideOfAssignment:()=>Z0e,isLet:()=>NF,isLineBreak:()=>jd,isLiteralComputedPropertyDeclarationName:()=>j2,isLiteralExpression:()=>b0,isLiteralExpressionOfObject:()=>RV,isLiteralImportTypeNode:()=>wv,isLiteralKind:()=>iN,isLiteralLikeAccess:()=>qF,isLiteralLikeElementAccess:()=>P2,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>kz,isLiteralTypeLikeExpression:()=>lTe,isLiteralTypeLiteral:()=>hre,isLiteralTypeNode:()=>Kv,isLocalName:()=>Bg,isLogicalOperator:()=>Gie,isLogicalOrCoalescingAssignmentExpression:()=>jj,isLogicalOrCoalescingAssignmentOperator:()=>NN,isLogicalOrCoalescingBinaryExpression:()=>Z2,isLogicalOrCoalescingBinaryOperator:()=>Q2,isMappedTypeNode:()=>CR,isMemberName:()=>Hh,isMetaProperty:()=>lP,isMethodDeclaration:()=>Ul,isMethodOrAccessor:()=>bI,isMethodSignature:()=>_h,isMinusToken:()=>QU,isMissingDeclaration:()=>YSe,isMissingPackageJsonInfo:()=>yse,isModifier:()=>Sa,isModifierKind:()=>Dy,isModifierLike:()=>il,isModuleAugmentationExternal:()=>XV,isModuleBlock:()=>N_,isModuleBody:()=>vre,isModuleDeclaration:()=>ql,isModuleExportsAccessExpression:()=>Yh,isModuleIdentifier:()=>mj,isModuleName:()=>Bae,isModuleOrEnumDeclaration:()=>s2,isModuleReference:()=>Are,isModuleSpecifierLike:()=>$z,isModuleWithStringLiteralName:()=>xF,isNameOfFunctionDeclaration:()=>Iq,isNameOfModuleDeclaration:()=>Aq,isNamedClassElement:()=>g0e,isNamedDeclaration:()=>iu,isNamedEvaluation:()=>pp,isNamedEvaluationSource:()=>Rj,isNamedExportBindings:()=>AV,isNamedExports:()=>xf,isNamedImportBindings:()=>OV,isNamedImports:()=>zg,isNamedImportsOrExports:()=>E6,isNamedTupleMember:()=>DR,isNamespaceBody:()=>E0e,isNamespaceExport:()=>yh,isNamespaceExportDeclaration:()=>Fk,isNamespaceImport:()=>Xv,isNamespaceReexportDeclaration:()=>cie,isNewExpression:()=>j0,isNewExpressionTarget:()=>JP,isNoSubstitutionTemplateLiteral:()=>HI,isNode:()=>_0e,isNodeArray:()=>v0,isNodeArrayMultiLine:()=>Yie,isNodeDescendantOf:()=>C0,isNodeKind:()=>ZL,isNodeLikeSystem:()=>qG,isNodeModulesDirectory:()=>KW,isNodeWithPossibleHoistedDeclaration:()=>hie,isNonContextualKeyword:()=>Ij,isNonExportDefaultModifier:()=>dTe,isNonGlobalAmbientModule:()=>qV,isNonGlobalDeclaration:()=>Fde,isNonNullAccess:()=>Noe,isNonNullChain:()=>sF,isNonNullExpression:()=>t1,isNonStaticMethodOrAccessorWithPrivateName:()=>Qse,isNotEmittedOrPartiallyEmittedNode:()=>b0e,isNotEmittedStatement:()=>oH,isNullishCoalesce:()=>TV,isNumber:()=>Ey,isNumericLiteral:()=>mp,isNumericLiteralName:()=>ng,isObjectBindingElementWithoutPropertyName:()=>rO,isObjectBindingOrAssignmentElement:()=>i2,isObjectBindingOrAssignmentPattern:()=>PV,isObjectBindingPattern:()=>tm,isObjectLiteralElement:()=>WV,isObjectLiteralElementLike:()=>Pg,isObjectLiteralExpression:()=>Ma,isObjectLiteralMethod:()=>bm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>kF,isObjectTypeDeclaration:()=>kI,isOctalDigit:()=>YW,isOmittedExpression:()=>jc,isOptionalChain:()=>Ud,isOptionalChainRoot:()=>eN,isOptionalDeclaration:()=>YN,isOptionalJSDocPropertyLikeTag:()=>uk,isOptionalTypeNode:()=>O4,isOuterExpression:()=>$4,isOutermostOptionalChain:()=>tN,isOverrideModifier:()=>sae,isPackageJsonInfo:()=>v3,isPackedArrayLiteral:()=>mU,isParameter:()=>Ao,isParameterDeclaration:()=>P0,isParameterPropertyDeclaration:()=>dp,isParameterPropertyModifier:()=>oN,isParenthesizedExpression:()=>Ou,isParenthesizedTypeNode:()=>NT,isParseTreeNode:()=>ZC,isPartOfTypeNode:()=>qh,isPartOfTypeQuery:()=>jF,isPartiallyEmittedExpression:()=>B4,isPatternMatch:()=>bW,isPinnedComment:()=>AF,isPlainJsFile:()=>p2,isPlusToken:()=>$U,isPossiblyTypeArgumentPosition:()=>$w,isPostfixUnaryExpression:()=>tH,isPrefixUnaryExpression:()=>qv,isPrivateIdentifier:()=>Ki,isPrivateIdentifierClassElementDeclaration:()=>ou,isPrivateIdentifierPropertyAccessExpression:()=>Ox,isPrivateIdentifierSymbol:()=>Eie,isProgramBundleEmitBuildInfo:()=>tce,isProgramUptoDate:()=>mJ,isPrologueDirective:()=>vm,isPropertyAccessChain:()=>oF,isPropertyAccessEntityNameExpression:()=>ek,isPropertyAccessExpression:()=>kr,isPropertyAccessOrQualifiedName:()=>mre,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>fre,isPropertyAssignment:()=>mc,isPropertyDeclaration:()=>Uo,isPropertyName:()=>rc,isPropertyNameLiteral:()=>T_,isPropertySignature:()=>_p,isProtoSetter:()=>Sie,isPrototypeAccess:()=>Fv,isPrototypePropertyAssignment:()=>k2,isPunctuation:()=>Aj,isPushOrUnshiftIdentifier:()=>Dj,isQualifiedName:()=>Su,isQuestionDotToken:()=>k4,isQuestionOrExclamationToken:()=>Oae,isQuestionOrPlusOrMinusToken:()=>zae,isQuestionToken:()=>Uv,isRawSourceMap:()=>qse,isReadonlyKeyword:()=>oae,isReadonlyKeywordOrPlusOrMinusToken:()=>Fae,isRecognizedTripleSlashComment:()=>UV,isReferenceFileLocation:()=>ZR,isReferencedFile:()=>IE,isRegularExpressionLiteral:()=>XU,isRequireCall:()=>bu,isRequireVariableStatement:()=>pj,isRestParameter:()=>Kh,isRestTypeNode:()=>W4,isReturnStatement:()=>Sm,isReturnStatementWithFixablePromiseHandler:()=>T7,isRightSideOfAccessExpression:()=>Kj,isRightSideOfInstanceofExpression:()=>jie,isRightSideOfPropertyAccess:()=>aD,isRightSideOfQualifiedName:()=>Yce,isRightSideOfQualifiedNameOrPropertyAccess:()=>MN,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Vie,isRootedDiskPath:()=>cp,isSameEntityName:()=>Zx,isSatisfiesExpression:()=>nH,isScopeMarker:()=>gre,isSemicolonClassElement:()=>fae,isSetAccessor:()=>Cy,isSetAccessorDeclaration:()=>hp,isShebangTrivia:()=>uV,isShiftOperatorOrHigher:()=>AH,isShorthandAmbientModuleSymbol:()=>uN,isShorthandPropertyAssignment:()=>Zu,isSignedNumericLiteral:()=>t6,isSimpleCopiableExpression:()=>tS,isSimpleInlineableExpression:()=>L_,isSimpleParameter:()=>rle,isSimpleParameterList:()=>Sw,isSingleOrDoubleQuote:()=>R2,isSourceFile:()=>Yi,isSourceFileFromLibrary:()=>mD,isSourceFileJS:()=>su,isSourceFileNotJS:()=>L0e,isSourceFileNotJson:()=>uj,isSourceMapping:()=>Xse,isSpecialPropertyDeclaration:()=>pie,isSpreadAssignment:()=>By,isSpreadElement:()=>Jm,isStatement:()=>Hi,isStatementButNotDeclaration:()=>l2,isStatementOrBlock:()=>Tre,isStatementWithLocals:()=>kre,isStatic:()=>ra,isStaticModifier:()=>qI,isString:()=>No,isStringAKeyword:()=>V0e,isStringANonContextualKeyword:()=>CI,isStringAndEmptyAnonymousObjectIntersection:()=>cde,isStringDoubleQuoted:()=>JF,isStringLiteral:()=>Da,isStringLiteralLike:()=>as,isStringLiteralOrJsxExpression:()=>Ire,isStringLiteralOrTemplate:()=>Cde,isStringOrNumericLiteralLike:()=>$p,isStringOrRegularExpressionOrTemplateLiteral:()=>Lq,isStringTextContainingNode:()=>DV,isSuperCall:()=>mT,isSuperKeyword:()=>aP,isSuperOrSuperProperty:()=>M0e,isSuperProperty:()=>ku,isSupportedSourceFileName:()=>voe,isSwitchStatement:()=>uP,isSyntaxList:()=>OR,isSyntheticExpression:()=>VSe,isSyntheticReference:()=>r1,isTagName:()=>Sq,isTaggedTemplateExpression:()=>U0,isTaggedTemplateTag:()=>Kce,isTemplateExpression:()=>F4,isTemplateHead:()=>KI,isTemplateLiteral:()=>EI,isTemplateLiteralKind:()=>Dv,isTemplateLiteralToken:()=>sre,isTemplateLiteralTypeNode:()=>dae,isTemplateLiteralTypeSpan:()=>eH,isTemplateMiddle:()=>YU,isTemplateMiddleOrTemplateTail:()=>lF,isTemplateSpan:()=>dP,isTemplateTail:()=>M4,isTextWhiteSpaceLike:()=>_de,isThis:()=>sD,isThisContainerOrFunctionBlock:()=>aie,isThisIdentifier:()=>k0,isThisInTypeQuery:()=>NI,isThisInitializedDeclaration:()=>zF,isThisInitializedObjectBindingExpression:()=>lie,isThisProperty:()=>T2,isThisTypeNode:()=>wk,isThisTypeParameter:()=>XN,isThisTypePredicate:()=>P0e,isThrowStatement:()=>iH,isToken:()=>gI,isTokenKind:()=>xV,isTraceEnabled:()=>Gg,isTransientSymbol:()=>ch,isTrivia:()=>sR,isTryStatement:()=>wT,isTupleTypeNode:()=>$I,isTypeAlias:()=>W2,isTypeAliasDeclaration:()=>Tm,isTypeAssertionExpression:()=>uae,isTypeDeclaration:()=>SR,isTypeElement:()=>lT,isTypeKeyword:()=>YP,isTypeKeywordToken:()=>zq,isTypeKeywordTokenOrIdentifier:()=>Jz,isTypeLiteralNode:()=>gp,isTypeNode:()=>ji,isTypeNodeKind:()=>eU,isTypeOfExpression:()=>NR,isTypeOnlyExportDeclaration:()=>lre,isTypeOnlyImportDeclaration:()=>e2,isTypeOnlyImportOrExportDeclaration:()=>iE,isTypeOperatorNode:()=>PT,isTypeParameterDeclaration:()=>fl,isTypePredicateNode:()=>Lk,isTypeQueryNode:()=>YI,isTypeReferenceNode:()=>If,isTypeReferenceType:()=>gF,isTypeUsableAsPropertyName:()=>Qf,isUMDExportSymbol:()=>b6,isUnaryExpression:()=>kV,isUnaryExpressionWithWrite:()=>_re,isUnicodeIdentifierStart:()=>qW,isUnionTypeNode:()=>Hv,isUnparsedNode:()=>IV,isUnparsedPrepend:()=>yae,isUnparsedSource:()=>WT,isUnparsedTextLike:()=>are,isUrl:()=>Rne,isValidBigIntString:()=>F6,isValidESSymbolDeclaration:()=>eie,isValidTypeOnlyAliasUseSite:()=>fE,isValueSignatureDeclaration:()=>gie,isVarAwaitUsing:()=>y2,isVarConst:()=>Kx,isVarUsing:()=>v2,isVariableDeclaration:()=>wi,isVariableDeclarationInVariableStatement:()=>fN,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>R0,isVariableDeclarationInitializedToRequire:()=>KF,isVariableDeclarationList:()=>Uc,isVariableLike:()=>qx,isVariableLikeOrAccessor:()=>Qre,isVariableStatement:()=>Ml,isVoidExpression:()=>e1,isWatchSet:()=>nSe,isWhileStatement:()=>USe,isWhiteSpaceLike:()=>Cg,isWhiteSpaceSingleLine:()=>y_,isWithStatement:()=>mae,isWriteAccess:()=>LI,isWriteOnlyAccess:()=>v6,isYieldExpression:()=>z4,jsxModeNeedsExplicitImport:()=>mX,keywordPart:()=>vp,last:()=>Ja,lastOrUndefined:()=>$s,length:()=>Nn,libMap:()=>c3,libs:()=>iw,lineBreakPart:()=>pD,linkNamePart:()=>Ede,linkPart:()=>Qq,linkTextPart:()=>e7,listFiles:()=>LJ,loadModuleFromGlobalCache:()=>Dse,loadWithModeAwareCache:()=>Mw,makeIdentifierFromModuleName:()=>zre,makeImport:()=>Hy,makeImportIfNecessary:()=>mde,makeStringLiteral:()=>b1,mangleScopedPackageName:()=>qR,map:()=>mn,mapAllOrFail:()=>PG,mapDefined:()=>to,mapDefinedEntries:()=>Kte,mapDefinedIterator:()=>OC,mapEntries:()=>qte,mapIterator:()=>kC,mapOneOrMany:()=>uX,mapToDisplayParts:()=>tb,matchFiles:()=>lU,matchPatternOrExact:()=>cU,matchedText:()=>lne,matchesExclude:()=>l3,maybeBind:()=>ta,maybeSetLocalizedDiagnosticMessages:()=>soe,memoize:()=>vu,memoizeCached:()=>tne,memoizeOne:()=>oh,memoizeWeak:()=>cEe,metadataHelper:()=>o4,min:()=>jG,minAndMax:()=>Eoe,missingFileModifiedTime:()=>Mp,modifierToFlag:()=>MI,modifiersToFlags:()=>x_,moduleOptionDeclaration:()=>UH,moduleResolutionIsEqualTo:()=>Mre,moduleResolutionNameAndModeGetter:()=>sz,moduleResolutionOptionDeclarations:()=>d3,moduleResolutionSupportsPackageJsonExportsAndImports:()=>OI,moduleResolutionUsesNodeModules:()=>qz,moduleSpecifiers:()=>eS,moveEmitHelpers:()=>qoe,moveRangeEnd:()=>g6,moveRangePastDecorators:()=>wg,moveRangePastModifiers:()=>R_,moveRangePos:()=>uE,moveSyntheticComments:()=>Hoe,mutateMap:()=>WN,mutateMapSkippingNewValues:()=>eg,needsParentheses:()=>n7,needsScopeMarker:()=>uF,newCaseClauseTracker:()=>h7,newPrivateEnvironment:()=>tle,noEmitNotification:()=>Tw,noEmitSubstitution:()=>OP,noTransformers:()=>UK,noTruncationMaximumTruncationLength:()=>K6,nodeCanBeDecorated:()=>GF,nodeHasName:()=>XL,nodeIsDecorated:()=>Yx,nodeIsMissing:()=>Fl,nodeIsPresent:()=>Hf,nodeIsSynthesized:()=>Ks,nodeModuleNameResolver:()=>Sse,nodeModulesPathPart:()=>Eh,nodeNextJsonConfigResolver:()=>Tse,nodeOrChildIsDecorated:()=>I2,nodeOverlapsWithStartEnd:()=>wz,nodePosToString:()=>A0e,nodeSeenTracker:()=>v1,nodeStartsNewLexicalEnvironment:()=>Cj,nodeToDisplayParts:()=>Txe,noop:()=>qa,noopFileWatcher:()=>iD,normalizePath:()=>ma,normalizeSlashes:()=>Pd,not:()=>SW,notImplemented:()=>Ho,notImplementedResolver:()=>Y3,nullNodeConverters:()=>OU,nullParenthesizerRules:()=>wU,nullTransformationContext:()=>WP,objectAllocator:()=>sd,operatorPart:()=>ZP,optionDeclarations:()=>og,optionMapToObject:()=>o3,optionsAffectingProgramStructure:()=>XH,optionsForBuild:()=>$H,optionsForWatch:()=>jR,optionsHaveChanges:()=>Gx,optionsHaveModuleResolutionChanges:()=>Cre,or:()=>jm,orderedRemoveItem:()=>Tx,orderedRemoveItemAt:()=>Ev,outFile:()=>xs,packageIdToPackageName:()=>EF,packageIdToString:()=>Lv,paramHelper:()=>a4,parameterIsThisKeyword:()=>L0,parameterNamePart:()=>gde,parseBaseNodeFactory:()=>MH,parseBigInt:()=>Soe,parseBuildCommand:()=>VTe,parseCommandLine:()=>BTe,parseCommandLineWorker:()=>wH,parseConfigFileTextToJson:()=>WH,parseConfigFileWithSystem:()=>T1e,parseConfigHostFromCompilerHostLike:()=>az,parseCustomTypeOption:()=>i3,parseIsolatedEntityName:()=>l1,parseIsolatedJSDocComment:()=>Jae,parseJSDocTypeExpressionForTests:()=>RTe,parseJsonConfigFileContent:()=>nAe,parseJsonSourceFileConfigFileContent:()=>tw,parseJsonText:()=>$k,parseListTypeOption:()=>Xae,parseNodeFactory:()=>bh,parseNodeModuleFromPath:()=>uw,parsePackageName:()=>mw,parsePseudoBigInt:()=>UN,parseValidBigInt:()=>fU,patchWriteFileEnsuringDirectory:()=>Ine,pathContainsNodeModules:()=>TE,pathIsAbsolute:()=>KC,pathIsBareSpecifier:()=>sV,pathIsRelative:()=>Lp,patternText:()=>sne,perfLogger:()=>nu,performIncrementalCompilation:()=>R1e,performance:()=>vne,plainJSErrors:()=>lz,positionBelongsToNode:()=>Rq,positionIsASICandidate:()=>a7,positionIsSynthesized:()=>Km,positionsAreOnSameLine:()=>Sf,preProcessFile:()=>Yxe,probablyUsesSemicolons:()=>cO,processCommentPragmas:()=>NH,processPragmasIntoFields:()=>PH,processTaggedTemplateExpression:()=>WK,programContainsEsModules:()=>fde,programContainsModules:()=>pde,projectReferenceIsEqualTo:()=>GV,propKeyHelper:()=>v4,propertyNamePart:()=>yde,pseudoBigIntToString:()=>W0,punctuationPart:()=>Xd,pushIfUnique:()=>yf,quote:()=>nM,quotePreferenceFromString:()=>jq,rangeContainsPosition:()=>Jw,rangeContainsPositionExclusive:()=>qw,rangeContainsRange:()=>rf,rangeContainsRangeExclusive:()=>Qce,rangeContainsStartEnd:()=>Xw,rangeEndIsOnSameLineAsRangeStart:()=>nk,rangeEndPositionsAreOnSameLine:()=>qie,rangeEquals:()=>OG,rangeIsOnSingleLine:()=>IT,rangeOfNode:()=>uU,rangeOfTypeParameters:()=>pU,rangeOverlapsWithStartEnd:()=>qP,rangeStartIsOnSameLineAsRangeEnd:()=>Xie,rangeStartPositionsAreOnSameLine:()=>y6,readBuilderProgram:()=>bz,readConfigFile:()=>Zk,readHelper:()=>g4,readJson:()=>LN,readJsonConfigFile:()=>Qae,readJsonOrUndefined:()=>qj,reduceEachLeadingCommentRange:()=>Lne,reduceEachTrailingCommentRange:()=>kne,reduceLeft:()=>tu,reduceLeftIterator:()=>oEe,reducePathComponents:()=>iT,refactor:()=>T1,regExpEscape:()=>cSe,relativeComplement:()=>Xte,removeAllComments:()=>Tk,removeEmitHelper:()=>zSe,removeExtension:()=>lk,removeFileExtension:()=>Eu,removeIgnoredPath:()=>uz,removeMinAndVersionNumbers:()=>UG,removeOptionality:()=>ode,removePrefix:()=>VC,removeSuffix:()=>Sx,removeTrailingDirectorySeparator:()=>Xb,repeatString:()=>tO,replaceElement:()=>zG,replaceFirstStar:()=>zI,resolutionExtensionIsTSOrJson:()=>GN,resolveConfigFileProjectName:()=>UJ,resolveJSModule:()=>bse,resolveLibrary:()=>E3,resolveModuleName:()=>KR,resolveModuleNameFromCache:()=>zAe,resolvePackageNameToPackageJson:()=>eK,resolvePath:()=>Av,resolveProjectReferencePath:()=>eD,resolveTripleslashReference:()=>ez,resolveTypeReferenceDirective:()=>hse,resolvingEmptyArray:()=>H6,restHelper:()=>f4,returnFalse:()=>Vm,returnNoopFileWatcher:()=>oD,returnTrue:()=>Sy,returnUndefined:()=>Jb,returnsPromise:()=>LX,runInitializersHelper:()=>l4,sameFlatMap:()=>Hte,sameMap:()=>Pc,sameMapping:()=>xIe,scanShebangTrivia:()=>pV,scanTokenAtPosition:()=>Xre,scanner:()=>Yd,screenStartingMessageCodes:()=>vz,semanticDiagnosticsOptionDeclarations:()=>KH,serializeCompilerOptions:()=>a3,server:()=>Jke,servicesVersion:()=>ape,setCommentRange:()=>ic,setConfigFileInOptions:()=>VH,setConstantValue:()=>Joe,setEachParent:()=>ER,setEmitFlags:()=>lr,setFunctionNameHelper:()=>b4,setGetSourceFileAsHashVersioned:()=>yz,setIdentifierAutoGenerate:()=>xk,setIdentifierGeneratedImportReference:()=>$oe,setIdentifierTypeArguments:()=>Fy,setInternalEmitFlags:()=>Ak,setLocalizedDiagnosticMessages:()=>aoe,setModuleDefaultHelper:()=>T4,setNodeFlags:()=>Ioe,setObjectAllocator:()=>ooe,setOriginalNode:()=>xr,setParent:()=>ja,setParentRecursive:()=>Bv,setPrivateIdentifier:()=>jT,setSnippetElement:()=>UU,setSourceMapRange:()=>Ra,setStackTraceLimit:()=>NEe,setStartsOnNewLine:()=>t4,setSyntheticLeadingComments:()=>_E,setSyntheticTrailingComments:()=>GI,setSys:()=>wEe,setSysLog:()=>Tne,setTextRange:()=>at,setTextRangeEnd:()=>bR,setTextRangePos:()=>HN,setTextRangePosEnd:()=>fh,setTextRangePosWidth:()=>KN,setTokenSourceMapRange:()=>Uoe,setTypeNode:()=>Xoe,setUILocale:()=>ine,setValueDeclaration:()=>w2,shouldAllowImportingTsExtension:()=>XR,shouldPreserveConstEnums:()=>B0,shouldUseUriStyleNodeCoreModules:()=>m7,showModuleSpecifier:()=>eoe,signatureHasLiteralTypes:()=>vK,signatureHasRestParameter:()=>qd,signatureToDisplayParts:()=>Zq,single:()=>FG,singleElementArray:()=>pI,singleIterator:()=>Jte,singleOrMany:()=>rh,singleOrUndefined:()=>nh,skipAlias:()=>vd,skipAssertions:()=>oTe,skipConstraint:()=>Bq,skipOuterExpressions:()=>Yl,skipParentheses:()=>fs,skipPartiallyEmittedExpressions:()=>gm,skipTrivia:()=>Na,skipTypeChecking:()=>jN,skipTypeParentheses:()=>V2,skipWhile:()=>dne,sliceAfter:()=>dU,some:()=>gt,sort:()=>ZS,sortAndDeduplicate:()=>FC,sortAndDeduplicateDiagnostics:()=>Mx,sourceFileAffectingCompilerOptions:()=>u3,sourceFileMayBeEmitted:()=>ET,sourceMapCommentRegExp:()=>k3,sourceMapCommentRegExpDontCareLineStart:()=>RK,spacePart:()=>kl,spanMap:()=>MG,spreadArrayHelper:()=>y4,stableSort:()=>vy,startEndContainsRange:()=>xq,startEndOverlapsWithStartEnd:()=>Oz,startOnNewLine:()=>Jd,startTracing:()=>bne,startsWith:()=>ao,startsWithDirectory:()=>cV,startsWithUnderscore:()=>fX,startsWithUseStrict:()=>Nae,stringContainsAt:()=>Wde,stringToToken:()=>g0,stripQuotes:()=>Yf,supportedDeclarationExtensions:()=>gk,supportedJSExtensions:()=>MU,supportedJSExtensionsFlat:()=>AR,supportedLocaleDirectories:()=>BV,supportedTSExtensions:()=>TR,supportedTSExtensionsFlat:()=>PU,supportedTSImplementationExtensions:()=>yk,suppressLeadingAndTrailingTrivia:()=>bp,suppressLeadingTrivia:()=>rX,suppressTrailingTrivia:()=>xde,symbolEscapedNameNoDefault:()=>Yz,symbolName:()=>vl,symbolNameNoDefault:()=>Xz,symbolPart:()=>hde,symbolToDisplayParts:()=>eM,syntaxMayBeASICandidate:()=>vX,syntaxRequiresTrailingSemicolonOrASI:()=>o7,sys:()=>hd,sysLog:()=>ML,tagNamesAreEquivalent:()=>bE,takeWhile:()=>AW,targetOptionDeclaration:()=>aw,templateObjectHelper:()=>h4,testFormatSettings:()=>Hce,textChangeRangeIsUnchanged:()=>Gne,textChangeRangeNewSpan:()=>QC,textChanges:()=>ur,textOrKeywordPart:()=>$q,textPart:()=>af,textRangeContainsPositionInclusive:()=>KL,textSpanContainsPosition:()=>_V,textSpanContainsTextSpan:()=>Wne,textSpanEnd:()=>Jl,textSpanIntersection:()=>Bne,textSpanIntersectsWith:()=>ZW,textSpanIntersectsWithPosition:()=>zne,textSpanIntersectsWithTextSpan:()=>n0e,textSpanIsEmpty:()=>One,textSpanOverlap:()=>Fne,textSpanOverlapsWith:()=>t0e,textSpansEqual:()=>uD,textToKeywordObj:()=>UL,timestamp:()=>Hs,toArray:()=>dI,toBuilderFileEmit:()=>ice,toBuilderStateFileInfoForMultiEmit:()=>rce,toEditorSettings:()=>DO,toFileNameLowerCase:()=>ih,toLowerCase:()=>ene,toPath:()=>tl,toProgramEmitPending:()=>oce,tokenIsIdentifierOrKeyword:()=>ru,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Pne,tokenToString:()=>da,trace:()=>vo,tracing:()=>rr,tracingEnabled:()=>DL,transform:()=>qDe,transformClassFields:()=>ple,transformDeclarations:()=>VK,transformECMAScriptModule:()=>GK,transformES2015:()=>Rle,transformES2016:()=>xle,transformES2017:()=>hle,transformES2018:()=>gle,transformES2019:()=>yle,transformES2020:()=>vle,transformES2021:()=>ble,transformES5:()=>Dle,transformESDecorators:()=>_le,transformESNext:()=>Ele,transformGenerators:()=>Cle,transformJsx:()=>Ile,transformLegacyDecorators:()=>mle,transformModule:()=>BK,transformNamedEvaluation:()=>yp,transformNodeModule:()=>Ple,transformNodes:()=>Aw,transformSystemModule:()=>Nle,transformTypeScript:()=>ule,transpile:()=>iRe,transpileModule:()=>nue,transpileOptionValueCompilerOptions:()=>YH,tryAddToSet:()=>Kb,tryAndIgnoreErrors:()=>c7,tryCast:()=>ri,tryDirectoryExists:()=>l7,tryExtractTSExtension:()=>_6,tryFileExists:()=>dO,tryGetClassExtendingExpressionWithTypeArguments:()=>Uj,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>Hj,tryGetDirectories:()=>s7,tryGetExtensionFromPath:()=>Wg,tryGetImportFromModuleSpecifier:()=>O2,tryGetJSDocSatisfiesTypeNode:()=>V6,tryGetModuleNameFromFile:()=>Uk,tryGetModuleSpecifierFromDeclaration:()=>eR,tryGetNativePerformanceHooks:()=>hne,tryGetPropertyAccessOrIdentifierToString:()=>tk,tryGetPropertyNameOfBindingOrAssignmentElement:()=>Z4,tryGetSourceMappingURL:()=>Jse,tryGetTextOfPropertyName:()=>pN,tryIOAndConsumeErrors:()=>d7,tryParseJson:()=>h6,tryParsePattern:()=>vR,tryParsePatterns:()=>w6,tryParseRawSourceMap:()=>IK,tryReadDirectory:()=>aX,tryReadFile:()=>EP,tryRemoveDirectoryPrefix:()=>aU,tryRemoveExtension:()=>boe,tryRemovePrefix:()=>JG,tryRemoveSuffix:()=>ane,typeAcquisitionDeclarations:()=>sw,typeAliasNamePart:()=>vde,typeDirectiveIsEqualTo:()=>Lre,typeKeywords:()=>g7,typeParameterNamePart:()=>bde,typeToDisplayParts:()=>oO,unchangedPollThresholds:()=>LL,unchangedTextChangeRange:()=>d2,unescapeLeadingUnderscores:()=>Vi,unmangleScopedPackageName:()=>hw,unorderedRemoveItem:()=>uI,unorderedRemoveItemAt:()=>HG,unreachableCodeIsError:()=>coe,unusedLabelIsError:()=>doe,unwrapInnermostStatementOfLabel:()=>sj,updateErrorForNoInputFiles:()=>s3,updateLanguageServiceSourceFile:()=>hY,updateMissingFilePathsWatch:()=>QK,updateResolutionField:()=>UR,updateSharedExtendedConfigFileWatcher:()=>Q3,updateSourceFile:()=>DH,updateWatchingWildcardDirectories:()=>Rw,usesExtensionsOnImports:()=>goe,usingSingleLineStringWriter:()=>cN,utf16EncodeAsString:()=>Px,validateLocaleAndSetLanguage:()=>i0e,valuesHelper:()=>E4,version:()=>Jp,versionMajorMinor:()=>g_,visitArray:()=>vw,visitCommaListElements:()=>bw,visitEachChild:()=>Sn,visitFunctionBody:()=>nf,visitIterationBody:()=>Tu,visitLexicalEnvironment:()=>TK,visitNode:()=>$e,visitNodes:()=>zn,visitParameterList:()=>Il,walkUpBindingElementsAndPatterns:()=>Lx,walkUpLexicalEnvironments:()=>ele,walkUpOuterExpressions:()=>Pae,walkUpParenthesizedExpressions:()=>Py,walkUpParenthesizedTypes:()=>G2,walkUpParenthesizedTypesAndGetParentAndChild:()=>yie,whitespaceOrMapCommentRegExp:()=>w3,writeCommentRange:()=>fR,writeFile:()=>xN,writeFileEnsuringDirectories:()=>zj,zipWith:()=>RG});var ib=bt({"src/server/_namespaces/ts.ts"(){"use strict";ea(),Gw(),ai(),LQ(),iA()}}),Xke={};xa(Xke,{ActionInvalidate:()=>zw,ActionPackageInstalled:()=>Bw,ActionSet:()=>Fw,ActionWatchTypingLocations:()=>KP,Arguments:()=>$J,AutoImportProviderProject:()=>JQ,AuxiliaryProject:()=>HQ,CharRangeSection:()=>aZ,CloseFileWatcherEvent:()=>zB,CommandNames:()=>Lhe,ConfigFileDiagEvent:()=>kB,ConfiguredProject:()=>qQ,CreateDirectoryWatcherEvent:()=>FB,CreateFileWatcherEvent:()=>WB,Errors:()=>Yy,EventBeginInstallTypes:()=>xz,EventEndInstallTypes:()=>Rz,EventInitializationFailed:()=>YJ,EventTypesRegistry:()=>Iz,ExternalProject:()=>RB,GcTimer:()=>FQ,InferredProject:()=>UQ,LargeFileReferencedEvent:()=>LB,LineIndex:()=>bM,LineLeaf:()=>s8,LineNode:()=>k1,LogLevel:()=>kQ,Msg:()=>wQ,OpenFileInfoTelemetryEvent:()=>QQ,Project:()=>rA,ProjectInfoTelemetryEvent:()=>OB,ProjectKind:()=>yM,ProjectLanguageServiceStateEvent:()=>wB,ProjectLoadingFinishEvent:()=>MB,ProjectLoadingStartEvent:()=>PB,ProjectReferenceProjectLoadKind:()=>tZ,ProjectService:()=>nZ,ProjectsUpdatedInBackgroundEvent:()=>i8,ScriptInfo:()=>GQ,ScriptVersionCache:()=>jB,Session:()=>whe,TextStorage:()=>BQ,ThrottledOperations:()=>WQ,TypingsCache:()=>VQ,TypingsInstallerAdapter:()=>Fhe,allFilesAreJsOrDts:()=>uhe,allRootFilesAreJsOrDts:()=>dhe,asNormalizedPath:()=>Ske,convertCompilerOptions:()=>DB,convertFormatOptions:()=>MD,convertScriptKindName:()=>YQ,convertTypeAcquisition:()=>mhe,convertUserPreferences:()=>_he,convertWatchOptions:()=>r8,countEachFileTypes:()=>t8,createInstallTypingsRequest:()=>j_e,createModuleSpecifierCache:()=>Ihe,createNormalizedPathMap:()=>Tke,createPackageJsonCache:()=>xhe,createSortedArray:()=>q_e,emptyArray:()=>_c,findArgument:()=>dxe,forEachResolvedProjectReferenceProject:()=>LD,formatDiagnosticToProtocol:()=>a8,formatMessage:()=>Rhe,getBaseConfigFileName:()=>OQ,getLocationInNewDocument:()=>Phe,hasArgument:()=>cxe,hasNoTypeScriptSource:()=>phe,indent:()=>HP,isBackgroundProject:()=>n8,isConfigFile:()=>Ehe,isConfiguredProject:()=>ME,isDynamicFileName:()=>e8,isExternalProject:()=>jQ,isInferredProject:()=>PD,isInferredProjectName:()=>U_e,makeAutoImportProviderProjectName:()=>K_e,makeAuxiliaryProjectName:()=>J_e,makeInferredProjectName:()=>H_e,maxFileSize:()=>NB,maxProgramSizeForNonTsFiles:()=>CB,normalizedPathToPath:()=>ZO,nowString:()=>uxe,nullCancellationToken:()=>Mhe,nullTypingsInstaller:()=>xB,projectContainsInfoDirectly:()=>M1,protocol:()=>che,removeSorted:()=>Ake,stringifyIndented:()=>xE,toEvent:()=>Dhe,toNormalizedPath:()=>dl,tryConvertScriptKindName:()=>XQ,typingsInstaller:()=>G_e,updateProjectIfDirty:()=>zp});var xot=bt({"src/typescript/_namespaces/ts.server.ts"(){"use strict";Dz(),iA()}}),Yke={};xa(Yke,{ANONYMOUS:()=>y7,AccessFlags:()=>I9,AssertionLevel:()=>YG,AssignmentDeclarationKind:()=>k9,AssignmentKind:()=>SU,Associativity:()=>AU,BreakpointResolver:()=>TY,BuilderFileEmit:()=>RJ,BuilderProgramKind:()=>DJ,BuilderState:()=>xm,BundleFileSectionKind:()=>Q9,CallHierarchy:()=>A1,CharacterCodes:()=>H9,CheckFlags:()=>b9,CheckMode:()=>P3,ClassificationType:()=>hq,ClassificationTypeNames:()=>_q,CommentDirectiveType:()=>o9,Comparison:()=>xG,CompletionInfoFlags:()=>lq,CompletionTriggerKind:()=>rq,Completions:()=>C1,ContainerFlags:()=>hK,ContextFlags:()=>u9,Debug:()=>x,DiagnosticCategory:()=>NL,Diagnostics:()=>f,DocumentHighlights:()=>E7,ElementFlags:()=>A9,EmitFlags:()=>GW,EmitHint:()=>X9,EmitOnly:()=>s9,EndOfLineState:()=>uq,EnumKind:()=>v9,ExitStatus:()=>l9,ExportKind:()=>AX,Extension:()=>K9,ExternalEmitHelpers:()=>q9,FileIncludeKind:()=>MW,FilePreprocessingDiagnosticsKind:()=>a9,FileSystemEntryKind:()=>iV,FileWatcherEventKind:()=>rV,FindAllReferences:()=>Ms,FlattenLevel:()=>kK,FlowFlags:()=>CL,ForegroundColorEscapeSequences:()=>vJ,FunctionFlags:()=>TU,GeneratedIdentifierFlags:()=>PW,GetLiteralTextFlags:()=>vU,GoToDefinition:()=>xD,HighlightSpanKind:()=>oq,IdentifierNameMap:()=>f1,IdentifierNameMultiMap:()=>LK,ImportKind:()=>TX,ImportsNotUsedAsValues:()=>B9,IndentStyle:()=>aq,IndexFlags:()=>x9,IndexKind:()=>C9,InferenceFlags:()=>M9,InferencePriority:()=>P9,InlayHintKind:()=>iq,InlayHints:()=>_Q,InternalEmitFlags:()=>J9,InternalSymbolName:()=>E9,InvalidatedProjectKind:()=>XJ,JSDocParsingMode:()=>tV,JsDoc:()=>PE,JsTyping:()=>O_,JsxEmit:()=>z9,JsxFlags:()=>r9,JsxReferenceKind:()=>R9,LanguageServiceMode:()=>eq,LanguageVariant:()=>j9,LexicalEnvironmentFlags:()=>$9,ListFormat:()=>Z9,LogLevel:()=>QG,MemberOverrideStatus:()=>c9,ModifierFlags:()=>CW,ModuleDetectionKind:()=>w9,ModuleInstanceState:()=>_K,ModuleKind:()=>UC,ModuleResolutionKind:()=>Dx,ModuleSpecifierEnding:()=>LU,NavigateTo:()=>oue,NavigationBar:()=>_ue,NewLineKind:()=>G9,NodeBuilderFlags:()=>p9,NodeCheckFlags:()=>S9,NodeFactoryFlags:()=>GU,NodeFlags:()=>DW,NodeResolutionFeatures:()=>pK,ObjectFlags:()=>OW,OperationCanceledException:()=>Rx,OperatorPrecedence:()=>IU,OrganizeImports:()=>Rm,OrganizeImportsMode:()=>nq,OuterExpressionKinds:()=>Y9,OutliningElementsCollector:()=>vQ,OutliningSpanKind:()=>cq,OutputFileType:()=>dq,PackageJsonAutoImportPreference:()=>ZJ,PackageJsonDependencyGroup:()=>QJ,PatternMatchKind:()=>S7,PollingInterval:()=>VW,PollingWatchKind:()=>F9,PragmaKindFlags:()=>eV,PrivateIdentifierKind:()=>qU,ProcessLevel:()=>FK,ProgramUpdateLevel:()=>eJ,QuotePreference:()=>gX,RelationComparisonResult:()=>NW,Rename:()=>vB,ScriptElementKind:()=>fq,ScriptElementKindModifier:()=>mq,ScriptKind:()=>FW,ScriptSnapshot:()=>Nz,ScriptTarget:()=>V9,SemanticClassificationFormat:()=>tq,SemanticMeaning:()=>hX,SemicolonPreference:()=>sq,SignatureCheckMode:()=>M3,SignatureFlags:()=>WW,SignatureHelp:()=>HO,SignatureKind:()=>D9,SmartSelectionRange:()=>SQ,SnippetKind:()=>BW,SortKind:()=>XG,StructureIsReused:()=>LW,SymbolAccessibility:()=>_9,SymbolDisplay:()=>Xy,SymbolDisplayPartKind:()=>Vw,SymbolFlags:()=>kW,SymbolFormatFlags:()=>m9,SyntaxKind:()=>RW,SyntheticSymbolKind:()=>h9,Ternary:()=>L9,ThrottledCancellationToken:()=>SY,TokenClass:()=>pq,TokenFlags:()=>i9,TransformFlags:()=>zW,TypeFacts:()=>N3,TypeFlags:()=>wW,TypeFormatFlags:()=>f9,TypeMapKind:()=>N9,TypePredicateKind:()=>g9,TypeReferenceSerializationKind:()=>y9,UnionReduction:()=>d9,UpToDateStatusType:()=>HJ,VarianceFlags:()=>T9,Version:()=>fm,VersionRange:()=>xL,WatchDirectoryFlags:()=>U9,WatchDirectoryKind:()=>W9,WatchFileKind:()=>O9,WatchLogLevel:()=>tJ,WatchType:()=>kc,accessPrivateIdentifier:()=>nle,addDisposableResourceHelper:()=>C4,addEmitFlags:()=>D_,addEmitHelper:()=>VI,addEmitHelpers:()=>Fg,addInternalEmitFlags:()=>BI,addNodeFactoryPatcher:()=>MSe,addObjectAllocatorPatcher:()=>ioe,addRange:()=>Hr,addRelatedInfo:()=>Pa,addSyntheticLeadingComment:()=>rP,addSyntheticTrailingComment:()=>n4,addToSeen:()=>Em,advancedAsyncSuperHelper:()=>Ck,affectsDeclarationPathOptionDeclarations:()=>qH,affectsEmitOptionDeclarations:()=>JH,allKeysStartWithDot:()=>T3,altDirectorySeparator:()=>FL,and:()=>EW,append:()=>Tn,appendIfUnique:()=>xg,arrayFrom:()=>Wo,arrayIsEqualTo:()=>Gm,arrayIsHomogeneous:()=>Aoe,arrayIsSorted:()=>fW,arrayOf:()=>$te,arrayReverseIterator:()=>wG,arrayToMap:()=>_0,arrayToMultiMap:()=>TL,arrayToNumericMap:()=>Zte,arraysEqual:()=>bL,assertType:()=>pEe,assign:()=>bx,assignHelper:()=>c4,asyncDelegator:()=>u4,asyncGeneratorHelper:()=>d4,asyncSuperHelper:()=>Dk,asyncValues:()=>p4,attachFileToDiagnostics:()=>wI,awaitHelper:()=>jI,awaiterHelper:()=>m4,base64decode:()=>Jie,base64encode:()=>Kie,binarySearch:()=>by,binarySearchKey:()=>lI,bindSourceFile:()=>Pse,breakIntoCharacterSpans:()=>Qde,breakIntoWordSpans:()=>Zde,buildLinkParts:()=>Sde,buildOpts:()=>p3,buildOverload:()=>hke,bundlerModuleNameResolver:()=>Ese,canBeConvertedToAsync:()=>wX,canHaveDecorators:()=>GT,canHaveExportModifier:()=>dk,canHaveFlowNode:()=>F2,canHaveIllegalDecorators:()=>TH,canHaveIllegalModifiers:()=>wae,canHaveIllegalType:()=>sTe,canHaveIllegalTypeParameters:()=>kae,canHaveJSDoc:()=>z2,canHaveLocals:()=>lh,canHaveModifiers:()=>Am,canHaveSymbol:()=>b_,canJsonReportNoInputFiles:()=>SP,canProduceDiagnostics:()=>H3,canUsePropertyAccess:()=>_U,canWatchAffectingLocation:()=>cce,canWatchAtTypes:()=>lce,canWatchDirectoryOrFile:()=>pz,cartesianProduct:()=>cne,cast:()=>na,chainBundle:()=>Im,chainDiagnosticMessages:()=>zo,changeAnyExtension:()=>OL,changeCompilerHostLikeToUseCache:()=>Nw,changeExtension:()=>pE,changeFullExtension:()=>Dne,changesAffectModuleResolution:()=>yF,changesAffectingProgramStructure:()=>Nre,childIsDecorated:()=>_N,classElementOrClassElementParameterIsDecorated:()=>lj,classHasClassThisAssignment:()=>wK,classHasDeclaredOrExplicitlyAssignedName:()=>OK,classHasExplicitlyAssignedName:()=>V3,classOrConstructorParameterIsDecorated:()=>Ny,classPrivateFieldGetHelper:()=>x4,classPrivateFieldInHelper:()=>D4,classPrivateFieldSetHelper:()=>R4,classicNameResolver:()=>Rse,classifier:()=>dpe,cleanExtendedConfigCache:()=>Z3,clear:()=>Gh,clearMap:()=>$u,clearSharedExtendedConfigFileWatcher:()=>$K,climbPastPropertyAccess:()=>Mz,climbPastPropertyOrElementAccess:()=>Xce,clone:()=>BG,cloneCompilerOptions:()=>wq,closeFileWatcher:()=>Hm,closeFileWatcherOf:()=>Rf,codefix:()=>Od,collapseTextChangeRangesAcrossMultipleVersions:()=>Vne,collectExternalModuleInfo:()=>CK,combine:()=>vx,combinePaths:()=>Yr,commentPragmas:()=>PL,commonOptionsWithBuild:()=>ow,commonPackageFolders:()=>DU,compact:()=>SL,compareBooleans:()=>bv,compareDataObjects:()=>Qj,compareDiagnostics:()=>FN,compareDiagnosticsSkipRelatedInformation:()=>T6,compareEmitHelpers:()=>eae,compareNumberOfDirectorySeparators:()=>sk,comparePaths:()=>Rg,comparePathsCaseInsensitive:()=>zEe,comparePathsCaseSensitive:()=>FEe,comparePatternKeys:()=>dK,compareProperties:()=>one,compareStringsCaseInsensitive:()=>vW,compareStringsCaseInsensitiveEslintCompatible:()=>nne,compareStringsCaseSensitive:()=>Vd,compareStringsCaseSensitiveUI:()=>IL,compareTextSpans:()=>yW,compareValues:()=>Zs,compileOnSaveCommandLineOption:()=>rw,compilerOptionsAffectDeclarationPath:()=>moe,compilerOptionsAffectEmit:()=>foe,compilerOptionsAffectSemanticDiagnostics:()=>poe,compilerOptionsDidYouMeanDiagnostics:()=>lw,compilerOptionsIndicateEsModules:()=>Gq,compose:()=>dEe,computeCommonSourceDirectoryOfFilenames:()=>Gle,computeLineAndCharacterOfPosition:()=>Nx,computeLineOfPosition:()=>qC,computeLineStarts:()=>hI,computePositionOfLineAndCharacter:()=>XW,computeSignature:()=>JT,computeSignatureWithDiagnostics:()=>TJ,computeSuggestionDiagnostics:()=>MX,computedOptions:()=>fc,concatenate:()=>Eo,concatenateDiagnosticMessageChains:()=>loe,consumesNodeCoreModules:()=>u7,contains:()=>Bo,containsIgnoredPath:()=>JN,containsObjectRestOrSpread:()=>qk,containsParseError:()=>Vx,containsPath:()=>mm,convertCompilerOptionsForTelemetry:()=>ise,convertCompilerOptionsFromJson:()=>dAe,convertJsonOption:()=>VT,convertToBase64:()=>Hie,convertToJson:()=>ew,convertToObject:()=>Zae,convertToOptionsWithAbsolutePaths:()=>GH,convertToRelativePath:()=>JC,convertToTSConfig:()=>YTe,convertTypeAcquisitionFromJson:()=>uAe,copyComments:()=>$T,copyEntries:()=>vF,copyLeadingComments:()=>fD,copyProperties:()=>GG,copyTrailingAsLeadingComments:()=>lO,copyTrailingComments:()=>tM,couldStartTrivia:()=>Mne,countWhere:()=>yv,createAbstractBuilder:()=>g1e,createAccessorPropertyBackingField:()=>IH,createAccessorPropertyGetRedirector:()=>jae,createAccessorPropertySetRedirector:()=>Uae,createBaseNodeFactory:()=>Foe,createBinaryExpressionTrampoline:()=>e3,createBindingHelper:()=>xR,createBuildInfo:()=>Iw,createBuilderProgram:()=>AJ,createBuilderProgramUsingProgramBuildInfo:()=>ace,createBuilderStatusReporter:()=>Tce,createCacheWithRedirects:()=>nK,createCacheableExportInfoMap:()=>bX,createCachedDirectoryStructureHost:()=>$3,createClassNamedEvaluationHelperBlock:()=>lle,createClassThisAssignmentBlock:()=>ale,createClassifier:()=>kxe,createCommentDirectivesMap:()=>Ore,createCompilerDiagnostic:()=>jl,createCompilerDiagnosticForInvalidCustomType:()=>qae,createCompilerDiagnosticFromMessageChain:()=>S6,createCompilerHost:()=>Vle,createCompilerHostFromProgramHost:()=>GJ,createCompilerHostWorker:()=>iJ,createDetachedDiagnostic:()=>yR,createDiagnosticCollection:()=>cR,createDiagnosticForFileFromMessageChain:()=>rj,createDiagnosticForNode:()=>Pr,createDiagnosticForNodeArray:()=>Hx,createDiagnosticForNodeArrayFromMessageChain:()=>g2,createDiagnosticForNodeFromMessageChain:()=>Mg,createDiagnosticForNodeInSourceFile:()=>Kf,createDiagnosticForRange:()=>qre,createDiagnosticMessageChainFromDiagnostic:()=>Jre,createDiagnosticReporter:()=>ww,createDocumentPositionMapper:()=>Yse,createDocumentRegistry:()=>Gde,createDocumentRegistryInternal:()=>RX,createEmitAndSemanticDiagnosticsBuilderProgram:()=>CJ,createEmitHelperFactory:()=>Zoe,createEmptyExports:()=>Bk,createExpressionForJsxElement:()=>Rae,createExpressionForJsxFragment:()=>Dae,createExpressionForObjectLiteralElementLike:()=>Cae,createExpressionForPropertyName:()=>gH,createExpressionFromEntityName:()=>Gk,createExternalHelpersImportDeclarationIfNeeded:()=>bH,createFileDiagnostic:()=>Qc,createFileDiagnosticFromMessageChain:()=>DF,createForOfBindingStatement:()=>hH,createGetCanonicalFileName:()=>Nd,createGetSourceFile:()=>nJ,createGetSymbolAccessibilityDiagnosticForNode:()=>Gy,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Mle,createGetSymbolWalker:()=>Mse,createIncrementalCompilerHost:()=>jJ,createIncrementalProgram:()=>Ece,createInputFiles:()=>kSe,createInputFilesWithFilePaths:()=>zU,createInputFilesWithFileTexts:()=>BU,createJsxFactoryExpression:()=>_H,createLanguageService:()=>ipe,createLanguageServiceSourceFile:()=>K7,createMemberAccessForPropertyName:()=>BT,createModeAwareCache:()=>u1,createModeAwareCacheKey:()=>RP,createModuleNotFoundChain:()=>bF,createModuleResolutionCache:()=>HR,createModuleResolutionLoader:()=>dJ,createModuleResolutionLoaderUsingGlobalCache:()=>fce,createModuleSpecifierResolutionHost:()=>YT,createMultiMap:()=>qp,createNodeConverters:()=>Boe,createNodeFactory:()=>bk,createOptionNameMap:()=>r3,createOverload:()=>MQ,createPackageJsonImportFilter:()=>iM,createPackageJsonInfo:()=>lX,createParenthesizerRules:()=>zoe,createPatternMatcher:()=>Kde,createPrependNodes:()=>gJ,createPrinter:()=>AE,createPrinterWithDefaults:()=>XK,createPrinterWithRemoveComments:()=>rS,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>YK,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>xw,createProgram:()=>iz,createProgramHost:()=>VJ,createPropertyNameNodeForIdentifierOrLiteral:()=>B6,createQueue:()=>AL,createRange:()=>Ef,createRedirectedBuilderProgram:()=>xJ,createResolutionCache:()=>PJ,createRuntimeTypeSerializer:()=>fle,createScanner:()=>xy,createSemanticDiagnosticsBuilderProgram:()=>h1e,createSet:()=>VG,createSolutionBuilder:()=>L1e,createSolutionBuilderHost:()=>P1e,createSolutionBuilderWithWatch:()=>k1e,createSolutionBuilderWithWatchHost:()=>M1e,createSortedArray:()=>kG,createSourceFile:()=>Yk,createSourceMapGenerator:()=>Kse,createSourceMapSource:()=>wSe,createSuperAccessVariableStatement:()=>U3,createSymbolTable:()=>aa,createSymlinkCache:()=>oU,createSystemWatchFunctions:()=>Ane,createTextChange:()=>Zw,createTextChangeFromStartLength:()=>Kz,createTextChangeRange:()=>qL,createTextRangeFromNode:()=>Fq,createTextRangeFromSpan:()=>Hz,createTextSpan:()=>gd,createTextSpanFromBounds:()=>dc,createTextSpanFromNode:()=>Iu,createTextSpanFromRange:()=>eb,createTextSpanFromStringLiteralLikeContent:()=>Wq,createTextWriter:()=>$2,createTokenRange:()=>Xj,createTypeChecker:()=>Bse,createTypeReferenceDirectiveResolutionCache:()=>b3,createTypeReferenceResolutionLoader:()=>tz,createUnparsedSourceFile:()=>FU,createWatchCompilerHost:()=>D1e,createWatchCompilerHostOfConfigFile:()=>yce,createWatchCompilerHostOfFilesAndCompilerOptions:()=>vce,createWatchFactory:()=>BJ,createWatchHost:()=>zJ,createWatchProgram:()=>C1e,createWatchStatusReporter:()=>mce,createWriteFileMeasuringIO:()=>rJ,declarationNameToString:()=>Ts,decodeMappings:()=>xK,decodedTextSpanIntersectsWith:()=>JL,decorateHelper:()=>i4,deduplicate:()=>m0,defaultIncludeSpec:()=>_3,defaultInitCompilerOptions:()=>f3,defaultMaximumTruncationLength:()=>mk,detectSortCaseSensitivity:()=>zC,diagnosticCategoryName:()=>rT,diagnosticToString:()=>ZT,directoryProbablyExists:()=>Um,directorySeparator:()=>nl,displayPart:()=>ep,displayPartsToString:()=>CO,disposeEmitNodes:()=>VU,disposeResourcesHelper:()=>N4,documentSpansEqual:()=>Kq,dumpTracingLegend:()=>Ene,elementAt:()=>Ay,elideNodes:()=>Vae,emitComments:()=>kie,emitDetachedComments:()=>wie,emitFiles:()=>q3,emitFilesAndReportErrors:()=>hz,emitFilesAndReportErrorsAndGetExitStatus:()=>gce,emitModuleKindIsNonNodeESM:()=>A6,emitNewLineBeforeLeadingCommentOfPosition:()=>Lie,emitNewLineBeforeLeadingComments:()=>Pie,emitNewLineBeforeLeadingCommentsOfPosition:()=>Mie,emitSkippedWithNoDiagnostics:()=>cz,emitUsingBuildInfo:()=>Wle,emptyArray:()=>Xe,emptyFileSystemEntries:()=>Q6,emptyMap:()=>IW,emptyOptions:()=>Cf,emptySet:()=>une,endsWith:()=>El,ensurePathIsNonModuleName:()=>h0,ensureScriptKind:()=>L6,ensureTrailingDirectorySeparator:()=>Bc,entityNameToString:()=>up,enumerateInsertsAndDeletes:()=>TW,equalOwnProperties:()=>Qte,equateStringsCaseInsensitive:()=>qb,equateStringsCaseSensitive:()=>eT,equateValues:()=>Ty,esDecorateHelper:()=>s4,escapeJsxAttributeString:()=>wj,escapeLeadingUnderscores:()=>pl,escapeNonAsciiString:()=>Y2,escapeSnippetText:()=>z0,escapeString:()=>Qh,escapeTemplateSubstitution:()=>Lj,every:()=>oo,expandPreOrPostfixIncrementOrDecrementExpression:()=>q4,explainFiles:()=>kJ,explainIfFileIsRedirectAndImpliedFormat:()=>wJ,exportAssignmentIsAlias:()=>oR,exportStarHelper:()=>I4,expressionResultIsUnused:()=>xoe,extend:()=>gW,extendsHelper:()=>_4,extensionFromPath:()=>VN,extensionIsTS:()=>O6,extensionsNotSupportingExtensionlessResolution:()=>vk,externalHelpersModuleNameText:()=>Gv,factory:()=>L,fileExtensionIs:()=>Sl,fileExtensionIsOneOf:()=>bc,fileIncludeReasonToDiagnostics:()=>FJ,fileShouldUseJavaScriptRequire:()=>_X,filter:()=>jr,filterMutate:()=>CG,filterSemanticDiagnostics:()=>oz,find:()=>Vr,findAncestor:()=>Fn,findBestPatternMatch:()=>KG,findChildOfKind:()=>_s,findComputedPropertyNameCacheAssignment:()=>t3,findConfigFile:()=>Ble,findContainingList:()=>Wz,findDiagnosticForNode:()=>Lde,findFirstNonJsxWhitespaceToken:()=>ede,findIndex:()=>Kl,findLast:()=>sI,findLastIndex:()=>pW,findListItemInfo:()=>Zce,findMap:()=>aEe,findModifier:()=>dD,findNextToken:()=>aS,findPackageJson:()=>Pde,findPackageJsons:()=>sX,findPrecedingMatchingToken:()=>jz,findPrecedingToken:()=>Tc,findSuperStatementIndexPath:()=>z3,findTokenOnLeftOfPosition:()=>Bz,findUseStrictPrologue:()=>vH,first:()=>Va,firstDefined:()=>Wl,firstDefinedIterator:()=>vL,firstIterator:()=>WG,firstOrOnly:()=>pX,firstOrUndefined:()=>Xc,firstOrUndefinedIterator:()=>mW,fixupCompilerOptions:()=>WX,flatMap:()=>va,flatMapIterator:()=>NG,flatMapToMutable:()=>wC,flatten:()=>pm,flattenCommaList:()=>Hae,flattenDestructuringAssignment:()=>UT,flattenDestructuringBinding:()=>nS,flattenDiagnosticMessageText:()=>k_,forEach:()=>gn,forEachAncestor:()=>Pre,forEachAncestorDirectory:()=>hm,forEachChild:()=>Go,forEachChildRecursively:()=>bP,forEachEmittedFile:()=>HK,forEachEnclosingBlockScopeContainer:()=>Ure,forEachEntry:()=>Gc,forEachExternalModuleToImportFrom:()=>SX,forEachImportClauseDeclaration:()=>$F,forEachKey:()=>dh,forEachLeadingCommentRange:()=>VL,forEachNameInAccessChainWalkingLeft:()=>noe,forEachPropertyAssignment:()=>Xx,forEachResolvedProjectReference:()=>pJ,forEachReturnStatement:()=>I0,forEachRight:()=>jte,forEachTrailingCommentRange:()=>jL,forEachTsConfigPropArray:()=>E2,forEachUnique:()=>qq,forEachYieldExpression:()=>Yre,forSomeAncestorDirectory:()=>rSe,formatColorAndReset:()=>iS,formatDiagnostic:()=>oJ,formatDiagnostics:()=>$Ie,formatDiagnosticsWithColorAndContext:()=>jle,formatGeneratedName:()=>vE,formatGeneratedNamePart:()=>BR,formatLocation:()=>aJ,formatMessage:()=>nU,formatStringFromArgs:()=>tg,formatting:()=>wc,fullTripleSlashAMDReferencePathRegEx:()=>EU,fullTripleSlashReferencePathRegEx:()=>bU,generateDjb2Hash:()=>HC,generateTSConfig:()=>tAe,generatorHelper:()=>S4,getAdjustedReferenceLocation:()=>Cq,getAdjustedRenameLocation:()=>zz,getAliasDeclarationFromName:()=>Sj,getAllAccessorDeclarations:()=>AT,getAllDecoratorsOfClass:()=>PK,getAllDecoratorsOfClassElement:()=>G3,getAllJSDocTags:()=>rF,getAllJSDocTagsOfKind:()=>m0e,getAllKeys:()=>lEe,getAllProjectOutputs:()=>J3,getAllSuperTypeNodes:()=>bN,getAllUnscopedEmitHelpers:()=>JU,getAllowJSCompilerOption:()=>Vv,getAllowSyntheticDefaultImports:()=>RT,getAncestor:()=>dE,getAnyExtensionFromPath:()=>Cx,getAreDeclarationMapsEnabled:()=>hk,getAssignedExpandoInitializer:()=>AI,getAssignedName:()=>tF,getAssignedNameOfIdentifier:()=>kP,getAssignmentDeclarationKind:()=>zl,getAssignmentDeclarationPropertyAccessKind:()=>L2,getAssignmentTargetKind:()=>DI,getAutomaticTypeDirectiveNames:()=>y3,getBaseFileName:()=>nc,getBinaryOperatorPrecedence:()=>X2,getBuildInfo:()=>X3,getBuildInfoFileVersionMap:()=>IJ,getBuildInfoText:()=>Ole,getBuildOrderFromAnyBuildOrder:()=>Ez,getBuilderCreationParameters:()=>dz,getBuilderFileEmit:()=>Zv,getCheckFlags:()=>Tl,getClassExtendsHeritageElement:()=>N0,getClassLikeDeclarationOfSymbol:()=>Og,getCombinedLocalAndExportSymbolFlags:()=>_R,getCombinedModifierFlags:()=>Zb,getCombinedNodeFlags:()=>Ry,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>hV,getCommentRange:()=>C_,getCommonSourceDirectory:()=>GP,getCommonSourceDirectoryOfConfig:()=>$R,getCompilerOptionValue:()=>x6,getCompilerOptionsDiffValue:()=>ZTe,getConditions:()=>$v,getConfigFileParsingDiagnostics:()=>KT,getConstantValue:()=>Koe,getContainerFlags:()=>mK,getContainerNode:()=>XT,getContainingClass:()=>ad,getContainingClassExcludingClassDecorators:()=>WF,getContainingClassStaticBlock:()=>oie,getContainingFunction:()=>Wp,getContainingFunctionDeclaration:()=>iie,getContainingFunctionOrClassStaticBlock:()=>OF,getContainingNodeArray:()=>Roe,getContainingObjectLiteralElement:()=>NO,getContextualTypeFromParent:()=>r7,getContextualTypeFromParentOrAncestorTypeNode:()=>Fz,getCurrentTime:()=>Ww,getDeclarationDiagnostics:()=>Lle,getDeclarationEmitExtensionForPath:()=>a6,getDeclarationEmitOutputFilePath:()=>xie,getDeclarationEmitOutputFilePathWorker:()=>o6,getDeclarationFileExtension:()=>CH,getDeclarationFromName:()=>vN,getDeclarationModifierFlagsFromSymbol:()=>Tf,getDeclarationOfKind:()=>cl,getDeclarationsOfKind:()=>Dre,getDeclaredExpandoInitializer:()=>C2,getDecorators:()=>xv,getDefaultCompilerOptions:()=>H7,getDefaultExportInfoWorker:()=>b7,getDefaultFormatCodeSettings:()=>Cz,getDefaultLibFileName:()=>HL,getDefaultLibFilePath:()=>ope,getDefaultLikeExportInfo:()=>v7,getDiagnosticText:()=>jTe,getDiagnosticsWithinSpan:()=>kde,getDirectoryPath:()=>oi,getDirectoryToWatchFailedLookupLocation:()=>NJ,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>uce,getDocumentPositionMapper:()=>PX,getDocumentSpansEqualityComparer:()=>Jq,getESModuleInterop:()=>mh,getEditsForFileRename:()=>jde,getEffectiveBaseTypeNode:()=>S_,getEffectiveConstraintOfTypeParameter:()=>wx,getEffectiveContainerForJSDocTemplateTag:()=>QF,getEffectiveImplementsTypeNodes:()=>aR,getEffectiveInitializer:()=>D2,getEffectiveJSDocHost:()=>cE,getEffectiveModifierFlags:()=>lu,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>zie,getEffectiveModifierFlagsNoCache:()=>Bie,getEffectiveReturnTypeNode:()=>$f,getEffectiveSetAccessorTypeAnnotationNode:()=>Nie,getEffectiveTypeAnnotationNode:()=>yd,getEffectiveTypeParameterDeclarations:()=>Rv,getEffectiveTypeRoots:()=>xP,getElementOrPropertyAccessArgumentExpressionOrName:()=>YF,getElementOrPropertyAccessName:()=>Lg,getElementsOfBindingOrAssignmentPattern:()=>zR,getEmitDeclarations:()=>Af,getEmitFlags:()=>za,getEmitHelpers:()=>r4,getEmitModuleDetectionKind:()=>xU,getEmitModuleKind:()=>Ld,getEmitModuleResolutionKind:()=>du,getEmitScriptTarget:()=>ns,getEmitStandardClassFields:()=>uoe,getEnclosingBlockScopeContainer:()=>uh,getEnclosingContainer:()=>nj,getEncodedSemanticClassifications:()=>IX,getEncodedSyntacticClassifications:()=>xX,getEndLinePosition:()=>f2,getEntityNameFromTypeNode:()=>A2,getEntrypointsFromPackageJsonInfo:()=>sK,getErrorCountForSummary:()=>mz,getErrorSpanForNode:()=>fT,getErrorSummaryText:()=>_ce,getEscapedTextOfIdentifierOrLiteral:()=>TN,getEscapedTextOfJsxAttributeName:()=>$N,getEscapedTextOfJsxNamespacedName:()=>FI,getExpandoInitializer:()=>sE,getExportAssignmentExpression:()=>Tj,getExportInfoMap:()=>fO,getExportNeedsImportStarHelper:()=>$se,getExpressionAssociativity:()=>Nj,getExpressionPrecedence:()=>IN,getExternalHelpersModuleName:()=>jk,getExternalModuleImportEqualsDeclarationExpression:()=>hN,getExternalModuleName:()=>tR,getExternalModuleNameFromDeclaration:()=>Aie,getExternalModuleNameFromPath:()=>Wj,getExternalModuleNameLiteral:()=>s1,getExternalModuleRequireArgument:()=>dj,getFallbackOptions:()=>Cw,getFileEmitOutput:()=>Yle,getFileMatcherPatterns:()=>M6,getFileNamesFromConfigSpecs:()=>TP,getFileWatcherEventKind:()=>nV,getFilesInErrorForSummary:()=>_z,getFirstConstructorWithBody:()=>Zh,getFirstIdentifier:()=>Fp,getFirstNonSpaceCharacterPosition:()=>Ide,getFirstProjectOutput:()=>qK,getFixableErrorSpanExpression:()=>dX,getFormatCodeSettingsForWriting:()=>_7,getFullWidth:()=>u2,getFunctionFlags:()=>Vc,getHeritageClause:()=>H2,getHostSignatureFromJSDoc:()=>lE,getIdentifierAutoGenerate:()=>BSe,getIdentifierGeneratedImportReference:()=>Qoe,getIdentifierTypeArguments:()=>DT,getImmediatelyInvokedFunctionExpression:()=>_T,getImpliedNodeFormatForFile:()=>Lw,getImpliedNodeFormatForFileWorker:()=>_J,getImportNeedsImportDefaultHelper:()=>DK,getImportNeedsImportStarHelper:()=>W3,getIndentSize:()=>uR,getIndentString:()=>r6,getInferredLibraryNameResolveFrom:()=>rz,getInitializedVariables:()=>wN,getInitializerOfBinaryExpression:()=>_j,getInitializerOfBindingOrAssignmentElement:()=>Hk,getInterfaceBaseTypeNodes:()=>EN,getInternalEmitFlags:()=>ym,getInvokedExpression:()=>BF,getIsolatedModules:()=>em,getJSDocAugmentsTag:()=>$ne,getJSDocClassTag:()=>yV,getJSDocCommentRanges:()=>oj,getJSDocCommentsAndTags:()=>gj,getJSDocDeprecatedTag:()=>vV,getJSDocDeprecatedTagNoCache:()=>ire,getJSDocEnumTag:()=>bV,getJSDocHost:()=>vT,getJSDocImplementsTags:()=>Qne,getJSDocOverloadTags:()=>vj,getJSDocOverrideTagNoCache:()=>rre,getJSDocParameterTags:()=>kx,getJSDocParameterTagsNoCache:()=>Jne,getJSDocPrivateTag:()=>c0e,getJSDocPrivateTagNoCache:()=>ere,getJSDocProtectedTag:()=>d0e,getJSDocProtectedTagNoCache:()=>tre,getJSDocPublicTag:()=>l0e,getJSDocPublicTagNoCache:()=>Zne,getJSDocReadonlyTag:()=>u0e,getJSDocReadonlyTagNoCache:()=>nre,getJSDocReturnTag:()=>ore,getJSDocReturnType:()=>YL,getJSDocRoot:()=>iR,getJSDocSatisfiesExpressionType:()=>gU,getJSDocSatisfiesTag:()=>EV,getJSDocTags:()=>rE,getJSDocTagsNoCache:()=>f0e,getJSDocTemplateTag:()=>p0e,getJSDocThisTag:()=>nF,getJSDocType:()=>nE,getJSDocTypeAliasName:()=>SH,getJSDocTypeAssertionType:()=>Y4,getJSDocTypeParameterDeclarations:()=>d6,getJSDocTypeParameterTags:()=>qne,getJSDocTypeParameterTagsNoCache:()=>Xne,getJSDocTypeTag:()=>tE,getJSXImplicitImportBase:()=>D6,getJSXRuntimeImport:()=>C6,getJSXTransformEnabled:()=>R6,getKeyForCompilerOptions:()=>tK,getLanguageVariant:()=>ik,getLastChild:()=>Zj,getLeadingCommentRanges:()=>jh,getLeadingCommentRangesOfNode:()=>ij,getLeftmostAccessExpression:()=>hR,getLeftmostExpression:()=>gR,getLibraryNameFromLibFileName:()=>fJ,getLineAndCharacterOfPosition:()=>hs,getLineInfo:()=>AK,getLineOfLocalPosition:()=>RN,getLineOfLocalPositionFromLineMap:()=>ST,getLineStartPositionForPosition:()=>rm,getLineStarts:()=>Dg,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Qie,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>$ie,getLinesBetweenPositions:()=>XC,getLinesBetweenRangeEndAndRangeStart:()=>Yj,getLinesBetweenRangeEndPositions:()=>tSe,getLiteralText:()=>Wre,getLocalNameForExternalImport:()=>FR,getLocalSymbolForExportDefault:()=>mR,getLocaleSpecificMessage:()=>wo,getLocaleTimeString:()=>Ow,getMappedContextSpan:()=>Xq,getMappedDocumentSpan:()=>Zz,getMappedLocation:()=>QP,getMatchedFileSpec:()=>OJ,getMatchedIncludeSpec:()=>WJ,getMeaningFromDeclaration:()=>jw,getMeaningFromLocation:()=>qT,getMembersOfDeclaration:()=>$re,getModeForFileReference:()=>Pw,getModeForResolutionAtIndex:()=>Ule,getModeForUsageLocation:()=>lJ,getModifiedTime:()=>fI,getModifiers:()=>y0,getModuleInstanceState:()=>Vg,getModuleNameStringLiteralAt:()=>kw,getModuleSpecifierEndingPreference:()=>yoe,getModuleSpecifierResolverHost:()=>Vq,getNameForExportedSymbol:()=>p7,getNameFromImportAttribute:()=>U6,getNameFromIndexInfo:()=>Hre,getNameFromPropertyName:()=>nO,getNameOfAccessExpression:()=>tU,getNameOfCompilerOptionValue:()=>BH,getNameOfDeclaration:()=>Po,getNameOfExpando:()=>fj,getNameOfJSDocTypedef:()=>Kne,getNameOrArgument:()=>M2,getNameTable:()=>gY,getNamesForExportedSymbol:()=>wde,getNamespaceDeclarationNode:()=>nR,getNewLineCharacter:()=>wy,getNewLineKind:()=>pO,getNewLineOrDefaultFromHost:()=>Ky,getNewTargetContainer:()=>sie,getNextJSDocCommentLocation:()=>yj,getNodeForGeneratedName:()=>Jk,getNodeId:()=>rs,getNodeKind:()=>oS,getNodeModifiers:()=>XP,getNodeModulePathParts:()=>G6,getNonAssignedNameOfDeclaration:()=>eF,getNonAssignmentOperatorForCompoundAssignment:()=>PP,getNonAugmentationDeclaration:()=>YV,getNonDecoratorTokenPosOfNode:()=>HV,getNormalizedAbsolutePath:()=>ho,getNormalizedAbsolutePathWithoutRoot:()=>lV,getNormalizedPathComponents:()=>wL,getObjectFlags:()=>Lr,getOperator:()=>Mj,getOperatorAssociativity:()=>Pj,getOperatorPrecedence:()=>q2,getOptionFromName:()=>OH,getOptionsForLibraryResolution:()=>rK,getOptionsNameMap:()=>VR,getOrCreateEmitNode:()=>kd,getOrCreateExternalHelpersModuleNameIfNeeded:()=>Lae,getOrUpdate:()=>WC,getOriginalNode:()=>Nl,getOriginalNodeId:()=>wd,getOriginalSourceFile:()=>H0e,getOutputDeclarationFileName:()=>BP,getOutputDeclarationFileNameWorker:()=>KK,getOutputExtension:()=>K3,getOutputFileNames:()=>XIe,getOutputJSFileNameWorker:()=>JK,getOutputPathsFor:()=>zP,getOutputPathsForBundle:()=>FP,getOwnEmitOutputFilePath:()=>Iie,getOwnKeys:()=>Vh,getOwnValues:()=>cI,getPackageJsonInfo:()=>Q0,getPackageJsonTypesVersionsPaths:()=>g3,getPackageJsonsVisibleToFile:()=>Mde,getPackageNameFromTypesPackageName:()=>DP,getPackageScopeForPath:()=>fw,getParameterSymbolFromJSDoc:()=>B2,getParameterTypeNode:()=>pSe,getParentNodeInSpan:()=>iO,getParseTreeNode:()=>Do,getParsedCommandLineOfConfigFile:()=>Qk,getPathComponents:()=>zc,getPathComponentsRelativeTo:()=>dV,getPathFromPathComponents:()=>Tv,getPathUpdater:()=>CX,getPathsBasePath:()=>s6,getPatternFromSpec:()=>_oe,getPendingEmitKind:()=>nD,getPositionOfLineAndCharacter:()=>BL,getPossibleGenericSignatures:()=>Pq,getPossibleOriginalInputExtensionForExtension:()=>Rie,getPossibleTypeArgumentsInfo:()=>Mq,getPreEmitDiagnostics:()=>YIe,getPrecedingNonSpaceCharacterPosition:()=>t7,getPrivateIdentifier:()=>MK,getProperties:()=>NK,getProperty:()=>_W,getPropertyArrayElementValue:()=>rie,getPropertyAssignmentAliasLikeExpression:()=>bie,getPropertyNameForPropertyNameNode:()=>bT,getPropertyNameForUniqueESSymbol:()=>j0e,getPropertyNameFromType:()=>Zf,getPropertyNameOfBindingOrAssignmentElement:()=>EH,getPropertySymbolFromBindingElement:()=>Qz,getPropertySymbolsFromContextualType:()=>J7,getQuoteFromPreference:()=>Uq,getQuotePreference:()=>of,getRangesWhere:()=>LG,getRefactorContextSpan:()=>E1,getReferencedFileLocation:()=>VP,getRegexFromPattern:()=>zv,getRegularExpressionForWildcard:()=>zN,getRegularExpressionsForWildcards:()=>N6,getRelativePathFromDirectory:()=>_m,getRelativePathFromFile:()=>WL,getRelativePathToDirectoryOrUrl:()=>_I,getRenameLocation:()=>sO,getReplacementSpanForContextToken:()=>Oq,getResolutionDiagnostic:()=>yJ,getResolutionModeOverride:()=>QR,getResolveJsonModule:()=>mE,getResolvePackageJsonExports:()=>X6,getResolvePackageJsonImports:()=>Y6,getResolvedExternalModuleName:()=>i6,getRestIndicatorOfBindingOrAssignmentElement:()=>Q4,getRestParameterElementType:()=>aj,getRightMostAssignedExpression:()=>N2,getRootDeclaration:()=>A_,getRootDirectoryOfResolutionCache:()=>pce,getRootLength:()=>sh,getRootPathSplitLength:()=>E1e,getScriptKind:()=>eX,getScriptKindFromFileName:()=>k6,getScriptTargetFeatures:()=>J6,getSelectedEffectiveModifierFlags:()=>PI,getSelectedSyntacticModifierFlags:()=>Wie,getSemanticClassifications:()=>zde,getSemanticJsxChildren:()=>lR,getSetAccessorTypeAnnotationNode:()=>Die,getSetAccessorValueParameter:()=>DN,getSetExternalModuleIndicator:()=>ok,getShebang:()=>$W,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>hj,getSingleVariableOfVariableStatement:()=>RI,getSnapshotText:()=>cD,getSnippetElement:()=>jU,getSourceFileOfModule:()=>SF,getSourceFileOfNode:()=>Gn,getSourceFilePathInNewDir:()=>l6,getSourceFilePathInNewDirWorker:()=>c6,getSourceFileVersionAsHashFromText:()=>gz,getSourceFilesToEmit:()=>Fj,getSourceMapRange:()=>Wy,getSourceMapper:()=>tue,getSourceTextOfNodeFromSourceFile:()=>S0,getSpanOfTokenAtPosition:()=>ph,getSpellingSuggestion:()=>GC,getStartPositionOfLine:()=>kv,getStartPositionOfRange:()=>kN,getStartsOnNewLine:()=>nP,getStaticPropertiesAndClassStaticBlock:()=>B3,getStrictOptionValue:()=>cu,getStringComparer:()=>Ex,getSubPatternFromSpec:()=>P6,getSuperCallFromStatement:()=>F3,getSuperContainer:()=>S2,getSupportedCodeFixes:()=>_Y,getSupportedExtensions:()=>BN,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>ak,getSwitchedType:()=>oX,getSymbolId:()=>ba,getSymbolNameForPrivateIdentifier:()=>K2,getSymbolTarget:()=>tX,getSyntacticClassifications:()=>Bde,getSyntacticModifierFlags:()=>Wv,getSyntacticModifierFlagsNoCache:()=>Vj,getSynthesizedDeepClone:()=>ol,getSynthesizedDeepCloneWithReplacements:()=>aO,getSynthesizedDeepClones:()=>sS,getSynthesizedDeepClonesWithReplacements:()=>nX,getSyntheticLeadingComments:()=>IR,getSyntheticTrailingComments:()=>Ik,getTargetLabel:()=>Lz,getTargetOfBindingOrAssignmentElement:()=>Yv,getTemporaryModuleResolutionState:()=>pw,getTextOfConstantValue:()=>Fre,getTextOfIdentifierOrLiteral:()=>Xf,getTextOfJSDocComment:()=>QL,getTextOfJsxAttributeName:()=>fk,getTextOfJsxNamespacedName:()=>QN,getTextOfNode:()=>uc,getTextOfNodeFromSourceText:()=>dN,getTextOfPropertyName:()=>Ux,getThisContainer:()=>Lu,getThisParameter:()=>M0,getTokenAtPosition:()=>so,getTokenPosOfNode:()=>oE,getTokenSourceMapRange:()=>FSe,getTouchingPropertyName:()=>Wu,getTouchingToken:()=>lD,getTrailingCommentRanges:()=>Yb,getTrailingSemicolonDeferringWriter:()=>Oj,getTransformFlagsSubtreeExclusions:()=>Goe,getTransformers:()=>jK,getTsBuildInfoEmitOutputFilePath:()=>Vy,getTsConfigObjectLiteralExpression:()=>mN,getTsConfigPropArrayElementValue:()=>wF,getTypeAnnotationNode:()=>Cie,getTypeArgumentOrTypeParameterList:()=>lde,getTypeKeywordOfTypeOnlyImport:()=>Hq,getTypeNode:()=>Yoe,getTypeNodeIfAccessible:()=>rM,getTypeParameterFromJsDoc:()=>mie,getTypeParameterOwner:()=>r0e,getTypesPackageName:()=>A3,getUILocale:()=>rne,getUniqueName:()=>QT,getUniqueSymbolId:()=>Ade,getUseDefineForClassFields:()=>tP,getWatchErrorSummaryDiagnosticMessage:()=>MJ,getWatchFactory:()=>ZK,group:()=>BC,groupBy:()=>hW,guessIndentation:()=>xre,handleNoEmitOptions:()=>hJ,hasAbstractModifier:()=>w0,hasAccessorModifier:()=>I_,hasAmbientModifier:()=>Gj,hasChangesInResolutions:()=>VV,hasChildOfKind:()=>Yw,hasContextSensitiveParameters:()=>z6,hasDecorators:()=>bf,hasDocComment:()=>ade,hasDynamicName:()=>Ov,hasEffectiveModifier:()=>fp,hasEffectiveModifiers:()=>u6,hasEffectiveReadonlyModifier:()=>CN,hasExtension:()=>mI,hasIndexSignature:()=>iX,hasInitializer:()=>Mv,hasInvalidEscape:()=>kj,hasJSDocNodes:()=>kp,hasJSDocParameterTags:()=>Yne,hasJSFileExtension:()=>O0,hasJsonModuleEmitEnabled:()=>I6,hasOnlyExpressionInitializer:()=>dT,hasOverrideModifier:()=>p6,hasPossibleExternalModuleReference:()=>jre,hasProperty:()=>Ss,hasPropertyAccessExpressionWithName:()=>Hw,hasQuestionToken:()=>xI,hasRecordedExternalHelpers:()=>Mae,hasResolutionModeOverride:()=>Moe,hasRestParameter:()=>FV,hasScopeMarker:()=>yre,hasStaticModifier:()=>pc,hasSyntacticModifier:()=>$r,hasSyntacticModifiers:()=>Oie,hasTSFileExtension:()=>WI,hasTabstop:()=>Coe,hasTrailingDirectorySeparator:()=>Iy,hasType:()=>hF,hasTypeArguments:()=>F0e,hasZeroOrOneAsteriskCharacter:()=>iU,helperString:()=>KU,hostGetCanonicalFileName:()=>My,hostUsesCaseSensitiveFileNames:()=>pR,idText:()=>gr,identifierIsThisKeyword:()=>Bj,identifierToKeywordKind:()=>eE,identity:()=>Qs,identitySourceMapConsumer:()=>O3,ignoreSourceNewlines:()=>HU,ignoredPaths:()=>kL,importDefaultHelper:()=>A4,importFromModuleSpecifier:()=>yN,importNameElisionDisabled:()=>rU,importStarHelper:()=>Rk,indexOfAnyCharCode:()=>Ute,indexOfNode:()=>jx,indicesOf:()=>EL,inferredTypesContainingFile:()=>tD,injectClassNamedEvaluationHelperBlockIfMissing:()=>j3,injectClassThisAssignmentIfMissing:()=>sle,insertImports:()=>$P,insertLeadingStatement:()=>rTe,insertSorted:()=>vv,insertStatementAfterCustomPrologue:()=>uT,insertStatementAfterStandardPrologue:()=>D0e,insertStatementsAfterCustomPrologue:()=>jV,insertStatementsAfterStandardPrologue:()=>Jh,intersperse:()=>DG,intrinsicTagNameToString:()=>yU,introducesArgumentsExoticObject:()=>tie,inverseJsxOptionMap:()=>AP,isAbstractConstructorSymbol:()=>Zie,isAbstractModifier:()=>aae,isAccessExpression:()=>Ns,isAccessibilityModifier:()=>kq,isAccessor:()=>Cv,isAccessorModifier:()=>lae,isAliasSymbolDeclaration:()=>B0e,isAliasableExpression:()=>U2,isAmbientModule:()=>Md,isAmbientPropertyDeclaration:()=>QV,isAnonymousFunctionDefinition:()=>AN,isAnyDirectorySeparator:()=>oV,isAnyImportOrBareOrAccessedRequire:()=>Vre,isAnyImportOrReExport:()=>_2,isAnyImportSyntax:()=>pT,isAnySupportedFileExtension:()=>uSe,isApplicableVersionedTypesKey:()=>_w,isArgumentExpressionOfElementAccess:()=>Tq,isArray:()=>To,isArrayBindingElement:()=>dF,isArrayBindingOrAssignmentElement:()=>o2,isArrayBindingOrAssignmentPattern:()=>MV,isArrayBindingPattern:()=>V0,isArrayLiteralExpression:()=>uu,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>Uy,isArrayTypeNode:()=>kk,isArrowFunction:()=>Os,isAsExpression:()=>Ok,isAssertClause:()=>_ae,isAssertEntry:()=>XSe,isAssertionExpression:()=>cT,isAssertsKeyword:()=>iae,isAssignmentDeclaration:()=>gN,isAssignmentExpression:()=>Mc,isAssignmentOperator:()=>Ly,isAssignmentPattern:()=>sN,isAssignmentTarget:()=>$h,isAsteriskToken:()=>Nk,isAsyncFunction:()=>SN,isAsyncModifier:()=>oP,isAutoAccessorPropertyDeclaration:()=>Mu,isAwaitExpression:()=>Jv,isAwaitKeyword:()=>ZU,isBigIntLiteral:()=>P4,isBinaryExpression:()=>dr,isBinaryOperatorToken:()=>Gae,isBindableObjectDefinePropertyCall:()=>gT,isBindableStaticAccessExpression:()=>D0,isBindableStaticElementAccessExpression:()=>XF,isBindableStaticNameExpression:()=>yT,isBindingElement:()=>Xa,isBindingElementOfBareOrAccessedRequire:()=>die,isBindingName:()=>sT,isBindingOrAssignmentElement:()=>pre,isBindingOrAssignmentPattern:()=>r2,isBindingPattern:()=>Qo,isBlock:()=>Ko,isBlockOrCatchScoped:()=>KV,isBlockScope:()=>ZV,isBlockScopedContainerTopLevel:()=>Gre,isBooleanLiteral:()=>aN,isBreakOrContinueStatement:()=>nN,isBreakStatement:()=>KSe,isBuildInfoFile:()=>wle,isBuilderProgram:()=>hce,isBundle:()=>aH,isBundleFileTextLike:()=>toe,isCallChain:()=>oT,isCallExpression:()=>ia,isCallExpressionTarget:()=>gq,isCallLikeExpression:()=>E0,isCallLikeOrFunctionLikeExpression:()=>LV,isCallOrNewExpression:()=>v_,isCallOrNewExpressionTarget:()=>yq,isCallSignatureDeclaration:()=>XI,isCallToHelper:()=>iP,isCaseBlock:()=>pP,isCaseClause:()=>MR,isCaseKeyword:()=>cae,isCaseOrDefaultClause:()=>mF,isCatchClause:()=>X0,isCatchClauseVariableDeclaration:()=>Doe,isCatchClauseVariableDeclarationOrBindingElement:()=>JV,isCheckJsEnabledForFile:()=>ck,isChildOfNodeWithKind:()=>N0e,isCircularBuildOrder:()=>h1,isClassDeclaration:()=>Sc,isClassElement:()=>$c,isClassExpression:()=>Zc,isClassInstanceProperty:()=>dre,isClassLike:()=>ci,isClassMemberModifier:()=>CV,isClassNamedEvaluationHelperBlock:()=>_1,isClassOrTypeElement:()=>cF,isClassStaticBlockDeclaration:()=>Al,isClassThisAssignmentBlock:()=>LP,isCollapsedRange:()=>eSe,isColonToken:()=>nae,isCommaExpression:()=>Vk,isCommaListExpression:()=>cP,isCommaSequence:()=>gP,isCommaToken:()=>tae,isComment:()=>Uz,isCommonJsExportPropertyAssignment:()=>LF,isCommonJsExportedExpression:()=>Zre,isCompoundAssignment:()=>NP,isComputedNonLiteralName:()=>h2,isComputedPropertyName:()=>Ya,isConciseBody:()=>pF,isConditionalExpression:()=>PR,isConditionalTypeNode:()=>ZI,isConstTypeReference:()=>Ng,isConstructSignatureDeclaration:()=>Mk,isConstructorDeclaration:()=>Pl,isConstructorTypeNode:()=>RR,isContextualKeyword:()=>e6,isContinueStatement:()=>HSe,isCustomPrologue:()=>b2,isDebuggerStatement:()=>JSe,isDeclaration:()=>Hd,isDeclarationBindingElement:()=>n2,isDeclarationFileName:()=>Ed,isDeclarationName:()=>kg,isDeclarationNameOfEnumOrNamespace:()=>$j,isDeclarationReadonly:()=>CF,isDeclarationStatement:()=>Sre,isDeclarationWithTypeParameterChildren:()=>tj,isDeclarationWithTypeParameters:()=>ej,isDecorator:()=>bd,isDecoratorTarget:()=>Jce,isDefaultClause:()=>mP,isDefaultImport:()=>II,isDefaultModifier:()=>w4,isDefaultedExpandoInitializer:()=>uie,isDeleteExpression:()=>pae,isDeleteTarget:()=>Ej,isDeprecatedDeclaration:()=>f7,isDestructuringAssignment:()=>ky,isDiagnosticWithLocation:()=>cX,isDiskPathRoot:()=>aV,isDoStatement:()=>jSe,isDocumentRegistryEntry:()=>mO,isDotDotDotToken:()=>L4,isDottedName:()=>PN,isDynamicName:()=>n6,isESSymbolIdentifier:()=>U0e,isEffectiveExternalModule:()=>TI,isEffectiveModuleDeclaration:()=>Bre,isEffectiveStrictModeSourceFile:()=>$V,isElementAccessChain:()=>SV,isElementAccessExpression:()=>Js,isEmittedFileOfProgram:()=>zle,isEmptyArrayLiteral:()=>Uie,isEmptyBindingElement:()=>Une,isEmptyBindingPattern:()=>jne,isEmptyObjectLiteral:()=>Jj,isEmptyStatement:()=>rH,isEmptyStringLiteral:()=>cj,isEntityName:()=>Xu,isEntityNameExpression:()=>Bl,isEnumConst:()=>A0,isEnumDeclaration:()=>hE,isEnumMember:()=>Y0,isEqualityOperatorKind:()=>i7,isEqualsGreaterThanToken:()=>rae,isExclamationToken:()=>Pk,isExcludedFile:()=>tse,isExclusivelyTypeOnlyImportOrExport:()=>sJ,isExpandoPropertyDeclaration:()=>j6,isExportAssignment:()=>Ll,isExportDeclaration:()=>Xl,isExportModifier:()=>JI,isExportName:()=>X4,isExportNamespaceAsDefaultDeclaration:()=>IF,isExportOrDefaultModifier:()=>Kk,isExportSpecifier:()=>Kd,isExportsIdentifier:()=>hT,isExportsOrModuleExportsOrAlias:()=>Z0,isExpression:()=>ht,isExpressionNode:()=>Xh,isExpressionOfExternalModuleImportEqualsDeclaration:()=>$ce,isExpressionOfOptionalChainRoot:()=>aF,isExpressionStatement:()=>ed,isExpressionWithTypeArguments:()=>zy,isExpressionWithTypeArgumentsInClassExtendsClause:()=>f6,isExternalModule:()=>oc,isExternalModuleAugmentation:()=>T0,isExternalModuleImportEqualsDeclaration:()=>aE,isExternalModuleIndicator:()=>a2,isExternalModuleNameRelative:()=>Yc,isExternalModuleReference:()=>vh,isExternalModuleSymbol:()=>eO,isExternalOrCommonJsModule:()=>wp,isFileLevelReservedGeneratedIdentifier:()=>t2,isFileLevelUniqueName:()=>TF,isFileProbablyExternalModule:()=>Xk,isFirstDeclarationOfSymbolParameter:()=>Yq,isFixablePromiseHandler:()=>kX,isForInOrOfStatement:()=>Fx,isForInStatement:()=>G4,isForInitializer:()=>vf,isForOfStatement:()=>Wk,isForStatement:()=>kT,isFunctionBlock:()=>x0,isFunctionBody:()=>wV,isFunctionDeclaration:()=>Ec,isFunctionExpression:()=>Ps,isFunctionExpressionOrArrowFunction:()=>F0,isFunctionLike:()=>$o,isFunctionLikeDeclaration:()=>ws,isFunctionLikeKind:()=>vI,isFunctionLikeOrClassStaticBlockDeclaration:()=>Wx,isFunctionOrConstructorTypeNode:()=>ure,isFunctionOrModuleBlock:()=>NV,isFunctionSymbol:()=>fie,isFunctionTypeNode:()=>hh,isFutureReservedKeyword:()=>G0e,isGeneratedIdentifier:()=>rl,isGeneratedPrivateIdentifier:()=>aT,isGetAccessor:()=>Pv,isGetAccessorDeclaration:()=>Qp,isGetOrSetAccessorDeclaration:()=>iF,isGlobalDeclaration:()=>Cxe,isGlobalScopeAugmentation:()=>E_,isGrammarError:()=>wre,isHeritageClause:()=>Zp,isHoistedFunction:()=>PF,isHoistedVariableStatement:()=>MF,isIdentifier:()=>Fe,isIdentifierANonContextualKeyword:()=>xj,isIdentifierName:()=>vie,isIdentifierOrThisTypeNode:()=>Wae,isIdentifierPart:()=>$b,isIdentifierStart:()=>Uh,isIdentifierText:()=>Yp,isIdentifierTypePredicate:()=>nie,isIdentifierTypeReference:()=>Toe,isIfStatement:()=>LT,isIgnoredFileFromWildCardWatching:()=>Dw,isImplicitGlob:()=>sU,isImportAttribute:()=>hae,isImportAttributeName:()=>cre,isImportAttributes:()=>n1,isImportCall:()=>Op,isImportClause:()=>gh,isImportDeclaration:()=>Lc,isImportEqualsDeclaration:()=>td,isImportKeyword:()=>sP,isImportMeta:()=>Jx,isImportOrExportSpecifier:()=>yI,isImportOrExportSpecifierName:()=>Tde,isImportSpecifier:()=>Qu,isImportTypeAssertionContainer:()=>qSe,isImportTypeNode:()=>rg,isImportableFile:()=>EX,isInComment:()=>jy,isInCompoundLikeAssignment:()=>bj,isInExpressionContext:()=>VF,isInJSDoc:()=>x2,isInJSFile:()=>ir,isInJSXText:()=>ide,isInJsonFile:()=>UF,isInNonReferenceComment:()=>ude,isInReferenceComment:()=>dde,isInRightSideOfInternalImportEqualsDeclaration:()=>Pz,isInString:()=>y1,isInTemplateString:()=>Nq,isInTopLevelContext:()=>FF,isInTypeQuery:()=>TT,isIncrementalCompilation:()=>eP,isIndexSignatureDeclaration:()=>G0,isIndexedAccessTypeNode:()=>MT,isInferTypeNode:()=>CT,isInfinityOrNaNString:()=>qN,isInitializedProperty:()=>Ew,isInitializedVariable:()=>rk,isInsideJsxElement:()=>Vz,isInsideJsxElementOrAttribute:()=>rde,isInsideNodeModules:()=>uO,isInsideTemplateLiteral:()=>Qw,isInstanceOfExpression:()=>m6,isInstantiatedModule:()=>yK,isInterfaceDeclaration:()=>pu,isInternalDeclaration:()=>zV,isInternalModuleImportEqualsDeclaration:()=>Qx,isInternalName:()=>yH,isIntersectionTypeNode:()=>QI,isIntrinsicJsxName:()=>dR,isIterationStatement:()=>Nv,isJSDoc:()=>Xm,isJSDocAllType:()=>Eae,isJSDocAugmentsTag:()=>a1,isJSDocAuthorTag:()=>ZSe,isJSDocCallbackTag:()=>lH,isJSDocClassTag:()=>Tae,isJSDocCommentContainingNode:()=>_F,isJSDocConstructSignature:()=>rR,isJSDocDeprecatedTag:()=>fH,isJSDocEnumTag:()=>zk,isJSDocFunctionType:()=>kR,isJSDocImplementsTag:()=>K4,isJSDocIndexSignature:()=>HF,isJSDocLikeText:()=>RH,isJSDocLink:()=>vae,isJSDocLinkCode:()=>bae,isJSDocLinkLike:()=>SI,isJSDocLinkPlain:()=>$Se,isJSDocMemberName:()=>gE,isJSDocNameReference:()=>_P,isJSDocNamepathType:()=>QSe,isJSDocNamespaceBody:()=>S0e,isJSDocNode:()=>zx,isJSDocNonNullableType:()=>V4,isJSDocNullableType:()=>LR,isJSDocOptionalParameter:()=>pk,isJSDocOptionalType:()=>sH,isJSDocOverloadTag:()=>wR,isJSDocOverrideTag:()=>U4,isJSDocParameterTag:()=>Ym,isJSDocPrivateTag:()=>dH,isJSDocPropertyLikeTag:()=>rN,isJSDocPropertyTag:()=>Aae,isJSDocProtectedTag:()=>uH,isJSDocPublicTag:()=>cH,isJSDocReadonlyTag:()=>pH,isJSDocReturnTag:()=>H4,isJSDocSatisfiesExpression:()=>hU,isJSDocSatisfiesTag:()=>J4,isJSDocSeeTag:()=>eTe,isJSDocSignature:()=>yE,isJSDocTag:()=>Bx,isJSDocTemplateTag:()=>nm,isJSDocThisTag:()=>mH,isJSDocThrowsTag:()=>nTe,isJSDocTypeAlias:()=>qf,isJSDocTypeAssertion:()=>WR,isJSDocTypeExpression:()=>$0,isJSDocTypeLiteral:()=>FT,isJSDocTypeTag:()=>hP,isJSDocTypedefTag:()=>zT,isJSDocUnknownTag:()=>tTe,isJSDocUnknownType:()=>Sae,isJSDocVariadicType:()=>j4,isJSXTagName:()=>$x,isJsonEqual:()=>W6,isJsonSourceFile:()=>Jf,isJsxAttribute:()=>M_,isJsxAttributeLike:()=>fF,isJsxAttributeName:()=>Poe,isJsxAttributes:()=>q0,isJsxChild:()=>c2,isJsxClosingElement:()=>K0,isJsxClosingFragment:()=>gae,isJsxElement:()=>ig,isJsxExpression:()=>fP,isJsxFragment:()=>J0,isJsxNamespacedName:()=>qm,isJsxOpeningElement:()=>P_,isJsxOpeningFragment:()=>i1,isJsxOpeningLikeElement:()=>au,isJsxOpeningLikeElementTagName:()=>qce,isJsxSelfClosingElement:()=>OT,isJsxSpreadAttribute:()=>o1,isJsxTagNameExpression:()=>lN,isJsxText:()=>UI,isJumpStatementTarget:()=>Kw,isKeyword:()=>wu,isKeywordOrPunctuation:()=>ZF,isKnownSymbol:()=>J2,isLabelName:()=>Eq,isLabelOfLabeledStatement:()=>bq,isLabeledStatement:()=>H0,isLateVisibilityPaintedStatement:()=>RF,isLeftHandSideExpression:()=>Yu,isLeftHandSideOfAssignment:()=>Z0e,isLet:()=>NF,isLineBreak:()=>jd,isLiteralComputedPropertyDeclarationName:()=>j2,isLiteralExpression:()=>b0,isLiteralExpressionOfObject:()=>RV,isLiteralImportTypeNode:()=>wv,isLiteralKind:()=>iN,isLiteralLikeAccess:()=>qF,isLiteralLikeElementAccess:()=>P2,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>kz,isLiteralTypeLikeExpression:()=>lTe,isLiteralTypeLiteral:()=>hre,isLiteralTypeNode:()=>Kv,isLocalName:()=>Bg,isLogicalOperator:()=>Gie,isLogicalOrCoalescingAssignmentExpression:()=>jj,isLogicalOrCoalescingAssignmentOperator:()=>NN,isLogicalOrCoalescingBinaryExpression:()=>Z2,isLogicalOrCoalescingBinaryOperator:()=>Q2,isMappedTypeNode:()=>CR,isMemberName:()=>Hh,isMetaProperty:()=>lP,isMethodDeclaration:()=>Ul,isMethodOrAccessor:()=>bI,isMethodSignature:()=>_h,isMinusToken:()=>QU,isMissingDeclaration:()=>YSe,isMissingPackageJsonInfo:()=>yse,isModifier:()=>Sa,isModifierKind:()=>Dy,isModifierLike:()=>il,isModuleAugmentationExternal:()=>XV,isModuleBlock:()=>N_,isModuleBody:()=>vre,isModuleDeclaration:()=>ql,isModuleExportsAccessExpression:()=>Yh,isModuleIdentifier:()=>mj,isModuleName:()=>Bae,isModuleOrEnumDeclaration:()=>s2,isModuleReference:()=>Are,isModuleSpecifierLike:()=>$z,isModuleWithStringLiteralName:()=>xF,isNameOfFunctionDeclaration:()=>Iq,isNameOfModuleDeclaration:()=>Aq,isNamedClassElement:()=>g0e,isNamedDeclaration:()=>iu,isNamedEvaluation:()=>pp,isNamedEvaluationSource:()=>Rj,isNamedExportBindings:()=>AV,isNamedExports:()=>xf,isNamedImportBindings:()=>OV,isNamedImports:()=>zg,isNamedImportsOrExports:()=>E6,isNamedTupleMember:()=>DR,isNamespaceBody:()=>E0e,isNamespaceExport:()=>yh,isNamespaceExportDeclaration:()=>Fk,isNamespaceImport:()=>Xv,isNamespaceReexportDeclaration:()=>cie,isNewExpression:()=>j0,isNewExpressionTarget:()=>JP,isNoSubstitutionTemplateLiteral:()=>HI,isNode:()=>_0e,isNodeArray:()=>v0,isNodeArrayMultiLine:()=>Yie,isNodeDescendantOf:()=>C0,isNodeKind:()=>ZL,isNodeLikeSystem:()=>qG,isNodeModulesDirectory:()=>KW,isNodeWithPossibleHoistedDeclaration:()=>hie,isNonContextualKeyword:()=>Ij,isNonExportDefaultModifier:()=>dTe,isNonGlobalAmbientModule:()=>qV,isNonGlobalDeclaration:()=>Fde,isNonNullAccess:()=>Noe,isNonNullChain:()=>sF,isNonNullExpression:()=>t1,isNonStaticMethodOrAccessorWithPrivateName:()=>Qse,isNotEmittedOrPartiallyEmittedNode:()=>b0e,isNotEmittedStatement:()=>oH,isNullishCoalesce:()=>TV,isNumber:()=>Ey,isNumericLiteral:()=>mp,isNumericLiteralName:()=>ng,isObjectBindingElementWithoutPropertyName:()=>rO,isObjectBindingOrAssignmentElement:()=>i2,isObjectBindingOrAssignmentPattern:()=>PV,isObjectBindingPattern:()=>tm,isObjectLiteralElement:()=>WV,isObjectLiteralElementLike:()=>Pg,isObjectLiteralExpression:()=>Ma,isObjectLiteralMethod:()=>bm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>kF,isObjectTypeDeclaration:()=>kI,isOctalDigit:()=>YW,isOmittedExpression:()=>jc,isOptionalChain:()=>Ud,isOptionalChainRoot:()=>eN,isOptionalDeclaration:()=>YN,isOptionalJSDocPropertyLikeTag:()=>uk,isOptionalTypeNode:()=>O4,isOuterExpression:()=>$4,isOutermostOptionalChain:()=>tN,isOverrideModifier:()=>sae,isPackageJsonInfo:()=>v3,isPackedArrayLiteral:()=>mU,isParameter:()=>Ao,isParameterDeclaration:()=>P0,isParameterPropertyDeclaration:()=>dp,isParameterPropertyModifier:()=>oN,isParenthesizedExpression:()=>Ou,isParenthesizedTypeNode:()=>NT,isParseTreeNode:()=>ZC,isPartOfTypeNode:()=>qh,isPartOfTypeQuery:()=>jF,isPartiallyEmittedExpression:()=>B4,isPatternMatch:()=>bW,isPinnedComment:()=>AF,isPlainJsFile:()=>p2,isPlusToken:()=>$U,isPossiblyTypeArgumentPosition:()=>$w,isPostfixUnaryExpression:()=>tH,isPrefixUnaryExpression:()=>qv,isPrivateIdentifier:()=>Ki,isPrivateIdentifierClassElementDeclaration:()=>ou,isPrivateIdentifierPropertyAccessExpression:()=>Ox,isPrivateIdentifierSymbol:()=>Eie,isProgramBundleEmitBuildInfo:()=>tce,isProgramUptoDate:()=>mJ,isPrologueDirective:()=>vm,isPropertyAccessChain:()=>oF,isPropertyAccessEntityNameExpression:()=>ek,isPropertyAccessExpression:()=>kr,isPropertyAccessOrQualifiedName:()=>mre,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>fre,isPropertyAssignment:()=>mc,isPropertyDeclaration:()=>Uo,isPropertyName:()=>rc,isPropertyNameLiteral:()=>T_,isPropertySignature:()=>_p,isProtoSetter:()=>Sie,isPrototypeAccess:()=>Fv,isPrototypePropertyAssignment:()=>k2,isPunctuation:()=>Aj,isPushOrUnshiftIdentifier:()=>Dj,isQualifiedName:()=>Su,isQuestionDotToken:()=>k4,isQuestionOrExclamationToken:()=>Oae,isQuestionOrPlusOrMinusToken:()=>zae,isQuestionToken:()=>Uv,isRawSourceMap:()=>qse,isReadonlyKeyword:()=>oae,isReadonlyKeywordOrPlusOrMinusToken:()=>Fae,isRecognizedTripleSlashComment:()=>UV,isReferenceFileLocation:()=>ZR,isReferencedFile:()=>IE,isRegularExpressionLiteral:()=>XU,isRequireCall:()=>bu,isRequireVariableStatement:()=>pj,isRestParameter:()=>Kh,isRestTypeNode:()=>W4,isReturnStatement:()=>Sm,isReturnStatementWithFixablePromiseHandler:()=>T7,isRightSideOfAccessExpression:()=>Kj,isRightSideOfInstanceofExpression:()=>jie,isRightSideOfPropertyAccess:()=>aD,isRightSideOfQualifiedName:()=>Yce,isRightSideOfQualifiedNameOrPropertyAccess:()=>MN,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Vie,isRootedDiskPath:()=>cp,isSameEntityName:()=>Zx,isSatisfiesExpression:()=>nH,isScopeMarker:()=>gre,isSemicolonClassElement:()=>fae,isSetAccessor:()=>Cy,isSetAccessorDeclaration:()=>hp,isShebangTrivia:()=>uV,isShiftOperatorOrHigher:()=>AH,isShorthandAmbientModuleSymbol:()=>uN,isShorthandPropertyAssignment:()=>Zu,isSignedNumericLiteral:()=>t6,isSimpleCopiableExpression:()=>tS,isSimpleInlineableExpression:()=>L_,isSimpleParameter:()=>rle,isSimpleParameterList:()=>Sw,isSingleOrDoubleQuote:()=>R2,isSourceFile:()=>Yi,isSourceFileFromLibrary:()=>mD,isSourceFileJS:()=>su,isSourceFileNotJS:()=>L0e,isSourceFileNotJson:()=>uj,isSourceMapping:()=>Xse,isSpecialPropertyDeclaration:()=>pie,isSpreadAssignment:()=>By,isSpreadElement:()=>Jm,isStatement:()=>Hi,isStatementButNotDeclaration:()=>l2,isStatementOrBlock:()=>Tre,isStatementWithLocals:()=>kre,isStatic:()=>ra,isStaticModifier:()=>qI,isString:()=>No,isStringAKeyword:()=>V0e,isStringANonContextualKeyword:()=>CI,isStringAndEmptyAnonymousObjectIntersection:()=>cde,isStringDoubleQuoted:()=>JF,isStringLiteral:()=>Da,isStringLiteralLike:()=>as,isStringLiteralOrJsxExpression:()=>Ire,isStringLiteralOrTemplate:()=>Cde,isStringOrNumericLiteralLike:()=>$p,isStringOrRegularExpressionOrTemplateLiteral:()=>Lq,isStringTextContainingNode:()=>DV,isSuperCall:()=>mT,isSuperKeyword:()=>aP,isSuperOrSuperProperty:()=>M0e,isSuperProperty:()=>ku,isSupportedSourceFileName:()=>voe,isSwitchStatement:()=>uP,isSyntaxList:()=>OR,isSyntheticExpression:()=>VSe,isSyntheticReference:()=>r1,isTagName:()=>Sq,isTaggedTemplateExpression:()=>U0,isTaggedTemplateTag:()=>Kce,isTemplateExpression:()=>F4,isTemplateHead:()=>KI,isTemplateLiteral:()=>EI,isTemplateLiteralKind:()=>Dv,isTemplateLiteralToken:()=>sre,isTemplateLiteralTypeNode:()=>dae,isTemplateLiteralTypeSpan:()=>eH,isTemplateMiddle:()=>YU,isTemplateMiddleOrTemplateTail:()=>lF,isTemplateSpan:()=>dP,isTemplateTail:()=>M4,isTextWhiteSpaceLike:()=>_de,isThis:()=>sD,isThisContainerOrFunctionBlock:()=>aie,isThisIdentifier:()=>k0,isThisInTypeQuery:()=>NI,isThisInitializedDeclaration:()=>zF,isThisInitializedObjectBindingExpression:()=>lie,isThisProperty:()=>T2,isThisTypeNode:()=>wk,isThisTypeParameter:()=>XN,isThisTypePredicate:()=>P0e,isThrowStatement:()=>iH,isToken:()=>gI,isTokenKind:()=>xV,isTraceEnabled:()=>Gg,isTransientSymbol:()=>ch,isTrivia:()=>sR,isTryStatement:()=>wT,isTupleTypeNode:()=>$I,isTypeAlias:()=>W2,isTypeAliasDeclaration:()=>Tm,isTypeAssertionExpression:()=>uae,isTypeDeclaration:()=>SR,isTypeElement:()=>lT,isTypeKeyword:()=>YP,isTypeKeywordToken:()=>zq,isTypeKeywordTokenOrIdentifier:()=>Jz,isTypeLiteralNode:()=>gp,isTypeNode:()=>ji,isTypeNodeKind:()=>eU,isTypeOfExpression:()=>NR,isTypeOnlyExportDeclaration:()=>lre,isTypeOnlyImportDeclaration:()=>e2,isTypeOnlyImportOrExportDeclaration:()=>iE,isTypeOperatorNode:()=>PT,isTypeParameterDeclaration:()=>fl,isTypePredicateNode:()=>Lk,isTypeQueryNode:()=>YI,isTypeReferenceNode:()=>If,isTypeReferenceType:()=>gF,isTypeUsableAsPropertyName:()=>Qf,isUMDExportSymbol:()=>b6,isUnaryExpression:()=>kV,isUnaryExpressionWithWrite:()=>_re,isUnicodeIdentifierStart:()=>qW,isUnionTypeNode:()=>Hv,isUnparsedNode:()=>IV,isUnparsedPrepend:()=>yae,isUnparsedSource:()=>WT,isUnparsedTextLike:()=>are,isUrl:()=>Rne,isValidBigIntString:()=>F6,isValidESSymbolDeclaration:()=>eie,isValidTypeOnlyAliasUseSite:()=>fE,isValueSignatureDeclaration:()=>gie,isVarAwaitUsing:()=>y2,isVarConst:()=>Kx,isVarUsing:()=>v2,isVariableDeclaration:()=>wi,isVariableDeclarationInVariableStatement:()=>fN,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>R0,isVariableDeclarationInitializedToRequire:()=>KF,isVariableDeclarationList:()=>Uc,isVariableLike:()=>qx,isVariableLikeOrAccessor:()=>Qre,isVariableStatement:()=>Ml,isVoidExpression:()=>e1,isWatchSet:()=>nSe,isWhileStatement:()=>USe,isWhiteSpaceLike:()=>Cg,isWhiteSpaceSingleLine:()=>y_,isWithStatement:()=>mae,isWriteAccess:()=>LI,isWriteOnlyAccess:()=>v6,isYieldExpression:()=>z4,jsxModeNeedsExplicitImport:()=>mX,keywordPart:()=>vp,last:()=>Ja,lastOrUndefined:()=>$s,length:()=>Nn,libMap:()=>c3,libs:()=>iw,lineBreakPart:()=>pD,linkNamePart:()=>Ede,linkPart:()=>Qq,linkTextPart:()=>e7,listFiles:()=>LJ,loadModuleFromGlobalCache:()=>Dse,loadWithModeAwareCache:()=>Mw,makeIdentifierFromModuleName:()=>zre,makeImport:()=>Hy,makeImportIfNecessary:()=>mde,makeStringLiteral:()=>b1,mangleScopedPackageName:()=>qR,map:()=>mn,mapAllOrFail:()=>PG,mapDefined:()=>to,mapDefinedEntries:()=>Kte,mapDefinedIterator:()=>OC,mapEntries:()=>qte,mapIterator:()=>kC,mapOneOrMany:()=>uX,mapToDisplayParts:()=>tb,matchFiles:()=>lU,matchPatternOrExact:()=>cU,matchedText:()=>lne,matchesExclude:()=>l3,maybeBind:()=>ta,maybeSetLocalizedDiagnosticMessages:()=>soe,memoize:()=>vu,memoizeCached:()=>tne,memoizeOne:()=>oh,memoizeWeak:()=>cEe,metadataHelper:()=>o4,min:()=>jG,minAndMax:()=>Eoe,missingFileModifiedTime:()=>Mp,modifierToFlag:()=>MI,modifiersToFlags:()=>x_,moduleOptionDeclaration:()=>UH,moduleResolutionIsEqualTo:()=>Mre,moduleResolutionNameAndModeGetter:()=>sz,moduleResolutionOptionDeclarations:()=>d3,moduleResolutionSupportsPackageJsonExportsAndImports:()=>OI,moduleResolutionUsesNodeModules:()=>qz,moduleSpecifiers:()=>eS,moveEmitHelpers:()=>qoe,moveRangeEnd:()=>g6,moveRangePastDecorators:()=>wg,moveRangePastModifiers:()=>R_,moveRangePos:()=>uE,moveSyntheticComments:()=>Hoe,mutateMap:()=>WN,mutateMapSkippingNewValues:()=>eg,needsParentheses:()=>n7,needsScopeMarker:()=>uF,newCaseClauseTracker:()=>h7,newPrivateEnvironment:()=>tle,noEmitNotification:()=>Tw,noEmitSubstitution:()=>OP,noTransformers:()=>UK,noTruncationMaximumTruncationLength:()=>K6,nodeCanBeDecorated:()=>GF,nodeHasName:()=>XL,nodeIsDecorated:()=>Yx,nodeIsMissing:()=>Fl,nodeIsPresent:()=>Hf,nodeIsSynthesized:()=>Ks,nodeModuleNameResolver:()=>Sse,nodeModulesPathPart:()=>Eh,nodeNextJsonConfigResolver:()=>Tse,nodeOrChildIsDecorated:()=>I2,nodeOverlapsWithStartEnd:()=>wz,nodePosToString:()=>A0e,nodeSeenTracker:()=>v1,nodeStartsNewLexicalEnvironment:()=>Cj,nodeToDisplayParts:()=>Txe,noop:()=>qa,noopFileWatcher:()=>iD,normalizePath:()=>ma,normalizeSlashes:()=>Pd,not:()=>SW,notImplemented:()=>Ho,notImplementedResolver:()=>Y3,nullNodeConverters:()=>OU,nullParenthesizerRules:()=>wU,nullTransformationContext:()=>WP,objectAllocator:()=>sd,operatorPart:()=>ZP,optionDeclarations:()=>og,optionMapToObject:()=>o3,optionsAffectingProgramStructure:()=>XH,optionsForBuild:()=>$H,optionsForWatch:()=>jR,optionsHaveChanges:()=>Gx,optionsHaveModuleResolutionChanges:()=>Cre,or:()=>jm,orderedRemoveItem:()=>Tx,orderedRemoveItemAt:()=>Ev,outFile:()=>xs,packageIdToPackageName:()=>EF,packageIdToString:()=>Lv,paramHelper:()=>a4,parameterIsThisKeyword:()=>L0,parameterNamePart:()=>gde,parseBaseNodeFactory:()=>MH,parseBigInt:()=>Soe,parseBuildCommand:()=>VTe,parseCommandLine:()=>BTe,parseCommandLineWorker:()=>wH,parseConfigFileTextToJson:()=>WH,parseConfigFileWithSystem:()=>T1e,parseConfigHostFromCompilerHostLike:()=>az,parseCustomTypeOption:()=>i3,parseIsolatedEntityName:()=>l1,parseIsolatedJSDocComment:()=>Jae,parseJSDocTypeExpressionForTests:()=>RTe,parseJsonConfigFileContent:()=>nAe,parseJsonSourceFileConfigFileContent:()=>tw,parseJsonText:()=>$k,parseListTypeOption:()=>Xae,parseNodeFactory:()=>bh,parseNodeModuleFromPath:()=>uw,parsePackageName:()=>mw,parsePseudoBigInt:()=>UN,parseValidBigInt:()=>fU,patchWriteFileEnsuringDirectory:()=>Ine,pathContainsNodeModules:()=>TE,pathIsAbsolute:()=>KC,pathIsBareSpecifier:()=>sV,pathIsRelative:()=>Lp,patternText:()=>sne,perfLogger:()=>nu,performIncrementalCompilation:()=>R1e,performance:()=>vne,plainJSErrors:()=>lz,positionBelongsToNode:()=>Rq,positionIsASICandidate:()=>a7,positionIsSynthesized:()=>Km,positionsAreOnSameLine:()=>Sf,preProcessFile:()=>Yxe,probablyUsesSemicolons:()=>cO,processCommentPragmas:()=>NH,processPragmasIntoFields:()=>PH,processTaggedTemplateExpression:()=>WK,programContainsEsModules:()=>fde,programContainsModules:()=>pde,projectReferenceIsEqualTo:()=>GV,propKeyHelper:()=>v4,propertyNamePart:()=>yde,pseudoBigIntToString:()=>W0,punctuationPart:()=>Xd,pushIfUnique:()=>yf,quote:()=>nM,quotePreferenceFromString:()=>jq,rangeContainsPosition:()=>Jw,rangeContainsPositionExclusive:()=>qw,rangeContainsRange:()=>rf,rangeContainsRangeExclusive:()=>Qce,rangeContainsStartEnd:()=>Xw,rangeEndIsOnSameLineAsRangeStart:()=>nk,rangeEndPositionsAreOnSameLine:()=>qie,rangeEquals:()=>OG,rangeIsOnSingleLine:()=>IT,rangeOfNode:()=>uU,rangeOfTypeParameters:()=>pU,rangeOverlapsWithStartEnd:()=>qP,rangeStartIsOnSameLineAsRangeEnd:()=>Xie,rangeStartPositionsAreOnSameLine:()=>y6,readBuilderProgram:()=>bz,readConfigFile:()=>Zk,readHelper:()=>g4,readJson:()=>LN,readJsonConfigFile:()=>Qae,readJsonOrUndefined:()=>qj,reduceEachLeadingCommentRange:()=>Lne,reduceEachTrailingCommentRange:()=>kne,reduceLeft:()=>tu,reduceLeftIterator:()=>oEe,reducePathComponents:()=>iT,refactor:()=>T1,regExpEscape:()=>cSe,relativeComplement:()=>Xte,removeAllComments:()=>Tk,removeEmitHelper:()=>zSe,removeExtension:()=>lk,removeFileExtension:()=>Eu,removeIgnoredPath:()=>uz,removeMinAndVersionNumbers:()=>UG,removeOptionality:()=>ode,removePrefix:()=>VC,removeSuffix:()=>Sx,removeTrailingDirectorySeparator:()=>Xb,repeatString:()=>tO,replaceElement:()=>zG,replaceFirstStar:()=>zI,resolutionExtensionIsTSOrJson:()=>GN,resolveConfigFileProjectName:()=>UJ,resolveJSModule:()=>bse,resolveLibrary:()=>E3,resolveModuleName:()=>KR,resolveModuleNameFromCache:()=>zAe,resolvePackageNameToPackageJson:()=>eK,resolvePath:()=>Av,resolveProjectReferencePath:()=>eD,resolveTripleslashReference:()=>ez,resolveTypeReferenceDirective:()=>hse,resolvingEmptyArray:()=>H6,restHelper:()=>f4,returnFalse:()=>Vm,returnNoopFileWatcher:()=>oD,returnTrue:()=>Sy,returnUndefined:()=>Jb,returnsPromise:()=>LX,runInitializersHelper:()=>l4,sameFlatMap:()=>Hte,sameMap:()=>Pc,sameMapping:()=>xIe,scanShebangTrivia:()=>pV,scanTokenAtPosition:()=>Xre,scanner:()=>Yd,screenStartingMessageCodes:()=>vz,semanticDiagnosticsOptionDeclarations:()=>KH,serializeCompilerOptions:()=>a3,server:()=>Xke,servicesVersion:()=>ape,setCommentRange:()=>ic,setConfigFileInOptions:()=>VH,setConstantValue:()=>Joe,setEachParent:()=>ER,setEmitFlags:()=>lr,setFunctionNameHelper:()=>b4,setGetSourceFileAsHashVersioned:()=>yz,setIdentifierAutoGenerate:()=>xk,setIdentifierGeneratedImportReference:()=>$oe,setIdentifierTypeArguments:()=>Fy,setInternalEmitFlags:()=>Ak,setLocalizedDiagnosticMessages:()=>aoe,setModuleDefaultHelper:()=>T4,setNodeFlags:()=>Ioe,setObjectAllocator:()=>ooe,setOriginalNode:()=>xr,setParent:()=>ja,setParentRecursive:()=>Bv,setPrivateIdentifier:()=>jT,setSnippetElement:()=>UU,setSourceMapRange:()=>Ra,setStackTraceLimit:()=>NEe,setStartsOnNewLine:()=>t4,setSyntheticLeadingComments:()=>_E,setSyntheticTrailingComments:()=>GI,setSys:()=>wEe,setSysLog:()=>Tne,setTextRange:()=>at,setTextRangeEnd:()=>bR,setTextRangePos:()=>HN,setTextRangePosEnd:()=>fh,setTextRangePosWidth:()=>KN,setTokenSourceMapRange:()=>Uoe,setTypeNode:()=>Xoe,setUILocale:()=>ine,setValueDeclaration:()=>w2,shouldAllowImportingTsExtension:()=>XR,shouldPreserveConstEnums:()=>B0,shouldUseUriStyleNodeCoreModules:()=>m7,showModuleSpecifier:()=>eoe,signatureHasLiteralTypes:()=>vK,signatureHasRestParameter:()=>qd,signatureToDisplayParts:()=>Zq,single:()=>FG,singleElementArray:()=>pI,singleIterator:()=>Jte,singleOrMany:()=>rh,singleOrUndefined:()=>nh,skipAlias:()=>vd,skipAssertions:()=>oTe,skipConstraint:()=>Bq,skipOuterExpressions:()=>Yl,skipParentheses:()=>fs,skipPartiallyEmittedExpressions:()=>gm,skipTrivia:()=>Na,skipTypeChecking:()=>jN,skipTypeParentheses:()=>V2,skipWhile:()=>dne,sliceAfter:()=>dU,some:()=>gt,sort:()=>ZS,sortAndDeduplicate:()=>FC,sortAndDeduplicateDiagnostics:()=>Mx,sourceFileAffectingCompilerOptions:()=>u3,sourceFileMayBeEmitted:()=>ET,sourceMapCommentRegExp:()=>k3,sourceMapCommentRegExpDontCareLineStart:()=>RK,spacePart:()=>kl,spanMap:()=>MG,spreadArrayHelper:()=>y4,stableSort:()=>vy,startEndContainsRange:()=>xq,startEndOverlapsWithStartEnd:()=>Oz,startOnNewLine:()=>Jd,startTracing:()=>bne,startsWith:()=>ao,startsWithDirectory:()=>cV,startsWithUnderscore:()=>fX,startsWithUseStrict:()=>Nae,stringContainsAt:()=>Wde,stringToToken:()=>g0,stripQuotes:()=>Yf,supportedDeclarationExtensions:()=>gk,supportedJSExtensions:()=>MU,supportedJSExtensionsFlat:()=>AR,supportedLocaleDirectories:()=>BV,supportedTSExtensions:()=>TR,supportedTSExtensionsFlat:()=>PU,supportedTSImplementationExtensions:()=>yk,suppressLeadingAndTrailingTrivia:()=>bp,suppressLeadingTrivia:()=>rX,suppressTrailingTrivia:()=>xde,symbolEscapedNameNoDefault:()=>Yz,symbolName:()=>vl,symbolNameNoDefault:()=>Xz,symbolPart:()=>hde,symbolToDisplayParts:()=>eM,syntaxMayBeASICandidate:()=>vX,syntaxRequiresTrailingSemicolonOrASI:()=>o7,sys:()=>hd,sysLog:()=>ML,tagNamesAreEquivalent:()=>bE,takeWhile:()=>AW,targetOptionDeclaration:()=>aw,templateObjectHelper:()=>h4,testFormatSettings:()=>Hce,textChangeRangeIsUnchanged:()=>Gne,textChangeRangeNewSpan:()=>QC,textChanges:()=>ur,textOrKeywordPart:()=>$q,textPart:()=>af,textRangeContainsPositionInclusive:()=>KL,textSpanContainsPosition:()=>_V,textSpanContainsTextSpan:()=>Wne,textSpanEnd:()=>Jl,textSpanIntersection:()=>Bne,textSpanIntersectsWith:()=>ZW,textSpanIntersectsWithPosition:()=>zne,textSpanIntersectsWithTextSpan:()=>n0e,textSpanIsEmpty:()=>One,textSpanOverlap:()=>Fne,textSpanOverlapsWith:()=>t0e,textSpansEqual:()=>uD,textToKeywordObj:()=>UL,timestamp:()=>Hs,toArray:()=>dI,toBuilderFileEmit:()=>ice,toBuilderStateFileInfoForMultiEmit:()=>rce,toEditorSettings:()=>DO,toFileNameLowerCase:()=>ih,toLowerCase:()=>ene,toPath:()=>tl,toProgramEmitPending:()=>oce,tokenIsIdentifierOrKeyword:()=>ru,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Pne,tokenToString:()=>da,trace:()=>vo,tracing:()=>rr,tracingEnabled:()=>DL,transform:()=>qDe,transformClassFields:()=>ple,transformDeclarations:()=>VK,transformECMAScriptModule:()=>GK,transformES2015:()=>Rle,transformES2016:()=>xle,transformES2017:()=>hle,transformES2018:()=>gle,transformES2019:()=>yle,transformES2020:()=>vle,transformES2021:()=>ble,transformES5:()=>Dle,transformESDecorators:()=>_le,transformESNext:()=>Ele,transformGenerators:()=>Cle,transformJsx:()=>Ile,transformLegacyDecorators:()=>mle,transformModule:()=>BK,transformNamedEvaluation:()=>yp,transformNodeModule:()=>Ple,transformNodes:()=>Aw,transformSystemModule:()=>Nle,transformTypeScript:()=>ule,transpile:()=>iRe,transpileModule:()=>nue,transpileOptionValueCompilerOptions:()=>YH,tryAddToSet:()=>Kb,tryAndIgnoreErrors:()=>c7,tryCast:()=>ri,tryDirectoryExists:()=>l7,tryExtractTSExtension:()=>_6,tryFileExists:()=>dO,tryGetClassExtendingExpressionWithTypeArguments:()=>Uj,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>Hj,tryGetDirectories:()=>s7,tryGetExtensionFromPath:()=>Wg,tryGetImportFromModuleSpecifier:()=>O2,tryGetJSDocSatisfiesTypeNode:()=>V6,tryGetModuleNameFromFile:()=>Uk,tryGetModuleSpecifierFromDeclaration:()=>eR,tryGetNativePerformanceHooks:()=>hne,tryGetPropertyAccessOrIdentifierToString:()=>tk,tryGetPropertyNameOfBindingOrAssignmentElement:()=>Z4,tryGetSourceMappingURL:()=>Jse,tryGetTextOfPropertyName:()=>pN,tryIOAndConsumeErrors:()=>d7,tryParseJson:()=>h6,tryParsePattern:()=>vR,tryParsePatterns:()=>w6,tryParseRawSourceMap:()=>IK,tryReadDirectory:()=>aX,tryReadFile:()=>EP,tryRemoveDirectoryPrefix:()=>aU,tryRemoveExtension:()=>boe,tryRemovePrefix:()=>JG,tryRemoveSuffix:()=>ane,typeAcquisitionDeclarations:()=>sw,typeAliasNamePart:()=>vde,typeDirectiveIsEqualTo:()=>Lre,typeKeywords:()=>g7,typeParameterNamePart:()=>bde,typeToDisplayParts:()=>oO,unchangedPollThresholds:()=>LL,unchangedTextChangeRange:()=>d2,unescapeLeadingUnderscores:()=>Vi,unmangleScopedPackageName:()=>hw,unorderedRemoveItem:()=>uI,unorderedRemoveItemAt:()=>HG,unreachableCodeIsError:()=>coe,unusedLabelIsError:()=>doe,unwrapInnermostStatementOfLabel:()=>sj,updateErrorForNoInputFiles:()=>s3,updateLanguageServiceSourceFile:()=>hY,updateMissingFilePathsWatch:()=>QK,updateResolutionField:()=>UR,updateSharedExtendedConfigFileWatcher:()=>Q3,updateSourceFile:()=>DH,updateWatchingWildcardDirectories:()=>Rw,usesExtensionsOnImports:()=>goe,usingSingleLineStringWriter:()=>cN,utf16EncodeAsString:()=>Px,validateLocaleAndSetLanguage:()=>i0e,valuesHelper:()=>E4,version:()=>Jp,versionMajorMinor:()=>g_,visitArray:()=>vw,visitCommaListElements:()=>bw,visitEachChild:()=>Sn,visitFunctionBody:()=>nf,visitIterationBody:()=>Tu,visitLexicalEnvironment:()=>TK,visitNode:()=>$e,visitNodes:()=>zn,visitParameterList:()=>Il,walkUpBindingElementsAndPatterns:()=>Lx,walkUpLexicalEnvironments:()=>ele,walkUpOuterExpressions:()=>Pae,walkUpParenthesizedExpressions:()=>Py,walkUpParenthesizedTypes:()=>G2,walkUpParenthesizedTypesAndGetParentAndChild:()=>yie,whitespaceOrMapCommentRegExp:()=>w3,writeCommentRange:()=>fR,writeFile:()=>xN,writeFileEnsuringDirectories:()=>zj,zipWith:()=>RG});var $ke=bt({"src/typescript/_namespaces/ts.ts"(){"use strict";ea(),Gw(),ai(),ib(),xot()}}),Rot=Cs({"src/typescript/typescript.ts"(e,t){$ke(),$ke(),typeof console<"u"&&(x.loggingHost={log(r,i){switch(r){case 1:return console.error(i);case 2:return console.warn(i);case 3:return console.log(i);case 4:return console.log(i)}}}),t.exports=Yke}});return Rot()})();typeof ti<"u"&&ti.exports&&(ti.exports=Dr);var jo=Dr.createClassifier,_o=Dr.createLanguageService,Fa=Dr.displayPartsToString,Us=Dr.EndOfLineState,yl=Dr.flattenDiagnosticMessageText,Fc=Dr.IndentStyle,Nc=Dr.ScriptKind,$S=Dr.ScriptTarget,yx=Dr.TokenClass,Cl=Dr,Bi={};Bi["lib.d.ts"]=`/*! ***************************************************************************** +`,s++};this.projectService.externalProjects.forEach(l),this.projectService.configuredProjects.forEach(l),this.projectService.inferredProjects.forEach(l)}}this.logger.msg(o,"Err")}send(t){if(t.type==="event"&&!this.canUseEvents){this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${RE(t)}`);return}this.writeMessage(t)}writeMessage(t){var r;let i=Mhe(t,this.logger,this.byteLength,this.host.newLine);(r=ru)==null||r.logEvent(`Response message size: ${i.length}`),this.host.write(i)}event(t,r){this.send(Lhe(r,t))}doOutput(t,r,i,o,s){let l={seq:0,type:"response",command:r,request_seq:i,success:o,performanceData:this.performanceData};if(o){let d;if(So(t))l.body=t,d=t.metadata,delete t.metadata;else if(typeof t=="object")if(t.metadata){let{metadata:p,...h}=t;l.body=h,d=p}else l.body=t;else l.body=t;d&&(l.metadata=d)}else R.assert(t===void 0);s&&(l.message=s),this.send(l)}semanticCheck(t,r){var i,o;(i=rr)==null||i.push(rr.Phase.Session,"semanticCheck",{file:t,configFilePath:r.canonicalConfigFilePath});let s=Vke(r,t)?_c:r.getLanguageService().getSemanticDiagnostics(t).filter(l=>!!l.file);this.sendDiagnosticsEvent(t,r,s,"semanticDiag"),(o=rr)==null||o.pop()}syntacticCheck(t,r){var i,o;(i=rr)==null||i.push(rr.Phase.Session,"syntacticCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSyntacticDiagnostics(t),"syntaxDiag"),(o=rr)==null||o.pop()}suggestionCheck(t,r){var i,o;(i=rr)==null||i.push(rr.Phase.Session,"suggestionCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSuggestionDiagnostics(t),"suggestionDiag"),(o=rr)==null||o.pop()}sendDiagnosticsEvent(t,r,i,o){try{this.event({file:t,diagnostics:i.map(s=>jke(t,r,s))},o)}catch(s){this.logError(s,o)}}updateErrorCheck(t,r,i,o=!0){R.assert(!this.suppressDiagnosticEvents);let s=this.changeSeq,l=Math.min(i,200),d=0,p=()=>{d++,r.length>d&&t.delay("checkOne",l,h)},h=()=>{if(this.changeSeq!==s)return;let m=r[d];if(Co(m)&&(m=this.toPendingErrorCheck(m),!m)){p();return}let{fileName:y,project:E}=m;if(zp(E),!!E.containsFile(y,o)&&(this.syntacticCheck(y,E),this.changeSeq===s)){if(E.projectService.serverMode!==0){p();return}t.immediate("semanticCheck",()=>{if(this.semanticCheck(y,E),this.changeSeq===s){if(this.getPreferences(y).disableSuggestions){p();return}t.immediate("suggestionCheck",()=>{this.suggestionCheck(y,E),p()})}})}};r.length>d&&this.changeSeq===s&&t.delay("checkOne",i,h)}cleanProjects(t,r){if(r){this.logger.info(`cleaning ${t}`);for(let i of r)i.getLanguageService(!1).cleanupSemanticCache(),i.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",Oo(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t);return i.getEncodedSyntacticClassifications(r,t)}getEncodedSemanticClassifications(t){let{file:r,project:i}=this.getFileAndProject(t),o=t.format==="2020"?"2020":"original";return i.getLanguageService().getEncodedSemanticClassifications(r,t,o)}getProject(t){return t===void 0?void 0:this.projectService.findProject(t)}getConfigFileAndProject(t){let r=this.getProject(t.projectFileName),i=dl(t.file);return{configFile:r&&r.hasConfigFile(i)?i:void 0,project:r}}getConfigFileDiagnostics(t,r,i){let o=r.getAllProjectErrors(),s=r.getLanguageService().getCompilerOptionsDiagnostics(),l=jr(bo(o,s),d=>!!d.file&&d.file.fileName===t);return i?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(l):mn(l,d=>s8(d,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(t){return t.map(r=>({message:k_(r.messageText,this.host.newLine),start:r.start,length:r.length,category:rT(r),code:r.code,source:r.source,startLocation:r.file&&a8(gs(r.file,r.start)),endLocation:r.file&&a8(gs(r.file,r.start+r.length)),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,relatedInformation:mn(r.relatedInformation,rZ)}))}getCompilerOptionsDiagnostics(t){let r=this.getProject(t.projectFileName);return this.convertToDiagnosticsWithLinePosition(jr(r.getLanguageService().getCompilerOptionsDiagnostics(),i=>!i.file),void 0)}convertToDiagnosticsWithLinePosition(t,r){return t.map(i=>({message:k_(i.messageText,this.host.newLine),start:i.start,length:i.length,category:rT(i),code:i.code,source:i.source,startLocation:r&&r.positionToLineOffset(i.start),endLocation:r&&r.positionToLineOffset(i.start+i.length),reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated,relatedInformation:mn(i.relatedInformation,rZ)}))}getDiagnosticsWorker(t,r,i,o){let{project:s,file:l}=this.getFileAndProject(t);if(r&&Vke(s,l))return _c;let d=s.getScriptInfoForNormalizedPath(l),p=i(s,l);return o?this.convertToDiagnosticsWithLinePosition(p,d):p.map(h=>jke(l,s,h))}getDefinition(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=this.mapDefinitionInfoLocations(o.getLanguageService().getDefinitionAtPosition(i,s)||_c,o);return r?this.mapDefinitionInfo(l,o):l.map(mte.mapToOriginalLocation)}mapDefinitionInfoLocations(t,r){return t.map(i=>{let o=Kke(i,r);return o?{...o,containerKind:i.containerKind,containerName:i.containerName,kind:i.kind,name:i.name,failedAliasResolution:i.failedAliasResolution,...i.unverified&&{unverified:i.unverified}}:i})}getDefinitionAndBoundSpan(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=R.checkDefined(o.getScriptInfo(i)),d=o.getLanguageService().getDefinitionAndBoundSpan(i,s);if(!d||!d.definitions)return{definitions:_c,textSpan:void 0};let p=this.mapDefinitionInfoLocations(d.definitions,o),{textSpan:h}=d;return r?{definitions:this.mapDefinitionInfo(p,o),textSpan:Ah(h,l)}:{definitions:p.map(mte.mapToOriginalLocation),textSpan:h}}findSourceDefinition(t){var r;let{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=o.getLanguageService().getDefinitionAtPosition(i,s),d=this.mapDefinitionInfoLocations(l||_c,o).slice();if(this.projectService.serverMode===0&&(!gt(d,S=>dl(S.fileName)!==i&&!S.isAmbient)||gt(d,S=>!!S.failedAliasResolution))){let S=VG(w=>w.textSpan.start,Jq(this.host.useCaseSensitiveFileNames));d?.forEach(w=>S.add(w));let A=o.getNoDtsResolutionProject(i),N=A.getLanguageService(),D=(r=N.getDefinitionAtPosition(i,s,!0,!1))==null?void 0:r.filter(w=>dl(w.fileName)!==i);if(gt(D))for(let w of D){if(w.unverified){let j=y(w,o.getLanguageService().getProgram(),N.getProgram());if(gt(j)){for(let K of j)S.add(K);continue}}S.add(w)}else{let w=d.filter(j=>dl(j.fileName)!==i&&j.isAmbient);for(let j of gt(w)?w:m()){let K=h(j.fileName,i,A);if(!K)continue;let Y=this.projectService.getOrCreateScriptInfoNotOpenedByClient(K,A.currentDirectory,A.directoryStructureHost);if(!Y)continue;A.containsScriptInfo(Y)||(A.addRoot(Y),A.updateGraph());let B=N.getProgram(),ce=R.checkDefined(B.getSourceFile(K));for(let z of E(j.name,ce,B))S.add(z)}}d=Oo(S.values())}return d=d.filter(S=>!S.isAmbient&&!S.failedAliasResolution),this.mapDefinitionInfo(d,o);function h(S,A,N){var D,w,j;let K=G6(S);if(K&&S.lastIndexOf(Sh)===K.topLevelNodeModulesIndex){let Y=S.substring(0,K.packageRootIndex),B=(D=o.getModuleResolutionCache())==null?void 0:D.getPackageJsonInfoCache(),ce=o.getCompilationSettings(),z=mw(_o(Y+"/package.json",o.getCurrentDirectory()),fw(B,o,ce));if(!z)return;let ee=sK(z,{moduleResolution:2},o,o.getModuleResolutionCache()),me=S.substring(K.topLevelPackageNameIndex+1,K.packageRootIndex),ge=CP(gw(me)),q=o.toPath(S);if(ee&>(ee,J=>o.toPath(J)===q))return(w=N.resolutionCache.resolveSingleModuleNameWithoutWatching(ge,A).resolvedModule)==null?void 0:w.resolvedFileName;{let J=S.substring(K.packageRootIndex+1),re=`${ge}/${Su(J)}`;return(j=N.resolutionCache.resolveSingleModuleNameWithoutWatching(re,A).resolvedModule)==null?void 0:j.resolvedFileName}}}function m(){let S=o.getLanguageService(),A=S.getProgram(),N=Fu(A.getSourceFile(i),s);return(ss(N)||Fe(N))&&Ps(N.parent)&&soe(N,D=>{var w;if(D===N)return;let j=(w=S.getDefinitionAtPosition(i,D.getStart(),!0,!1))==null?void 0:w.filter(K=>dl(K.fileName)!==i&&K.isAmbient).map(K=>({fileName:K.fileName,name:Xf(N)}));if(gt(j))return j})||_c}function y(S,A,N){var D;let w=N.getSourceFile(S.fileName);if(!w)return;let j=Fu(A.getSourceFile(i),s),K=A.getTypeChecker().getSymbolAtLocation(j),Y=K&&cl(K,276);if(!Y)return;let B=((D=Y.propertyName)==null?void 0:D.text)||Y.name.text;return E(B,w,N)}function E(S,A,N){let D=Ls.Core.getTopMostDeclarationNamesInFile(S,A);return to(D,w=>{let j=N.getTypeChecker().getSymbolAtLocation(w),K=bN(w);if(j&&K)return ID.createDefinitionInfo(K,N.getTypeChecker(),j,K,!0)})}}getEmitOutput(t){let{file:r,project:i}=this.getFileAndProject(t);if(!i.shouldEmitFile(i.getScriptInfo(r)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};let o=i.getLanguageService().getEmitOutput(r);return t.richResponse?{...o,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(o.diagnostics):o.diagnostics.map(s=>s8(s,!0))}:o}mapJSDocTagInfo(t,r,i){return t?t.map(o=>{var s;return{...o,text:i?this.mapDisplayParts(o.text,r):(s=o.text)==null?void 0:s.map(l=>l.text).join("")}}):[]}mapDisplayParts(t,r){return t?t.map(i=>i.kind!=="linkName"?i:{...i,target:this.toFileSpan(i.target.fileName,i.target.textSpan,r)}):[]}mapSignatureHelpItems(t,r,i){return t.map(o=>({...o,documentation:this.mapDisplayParts(o.documentation,r),parameters:o.parameters.map(s=>({...s,documentation:this.mapDisplayParts(s.documentation,r)})),tags:this.mapJSDocTagInfo(o.tags,r,i)}))}mapDefinitionInfo(t,r){return t.map(i=>({...this.toFileSpanWithContext(i.fileName,i.textSpan,i.contextSpan,r),...i.unverified&&{unverified:i.unverified}}))}static mapToOriginalLocation(t){return t.originalFileName?(R.assert(t.originalTextSpan!==void 0,"originalTextSpan should be present if originalFileName is"),{...t,fileName:t.originalFileName,textSpan:t.originalTextSpan,targetFileName:t.fileName,targetTextSpan:t.textSpan,contextSpan:t.originalContextSpan,targetContextSpan:t.contextSpan}):t}toFileSpan(t,r,i){let o=i.getLanguageService(),s=o.toLineColumnOffset(t,r.start),l=o.toLineColumnOffset(t,Jl(r));return{file:t,start:{line:s.line+1,offset:s.character+1},end:{line:l.line+1,offset:l.character+1}}}toFileSpanWithContext(t,r,i,o){let s=this.toFileSpan(t,r,o),l=i&&this.toFileSpan(t,i,o);return l?{...s,contextStart:l.start,contextEnd:l.end}:s}getTypeDefinition(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),s=this.mapDefinitionInfoLocations(i.getLanguageService().getTypeDefinitionAtPosition(r,o)||_c,i);return this.mapDefinitionInfo(s,i)}mapImplementationLocations(t,r){return t.map(i=>{let o=Kke(i,r);return o?{...o,kind:i.kind,displayParts:i.displayParts}:i})}getImplementation(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=this.mapImplementationLocations(o.getLanguageService().getImplementationAtPosition(i,s)||_c,o);return r?l.map(({fileName:d,textSpan:p,contextSpan:h})=>this.toFileSpanWithContext(d,p,h,o)):l.map(mte.mapToOriginalLocation)}getSyntacticDiagnosticsSync(t){let{configFile:r}=this.getConfigFileAndProject(t);return r?_c:this.getDiagnosticsWorker(t,!1,(i,o)=>i.getLanguageService().getSyntacticDiagnostics(o),!!t.includeLinePosition)}getSemanticDiagnosticsSync(t){let{configFile:r,project:i}=this.getConfigFileAndProject(t);return r?this.getConfigFileDiagnostics(r,i,!!t.includeLinePosition):this.getDiagnosticsWorker(t,!0,(o,s)=>o.getLanguageService().getSemanticDiagnostics(s).filter(l=>!!l.file),!!t.includeLinePosition)}getSuggestionDiagnosticsSync(t){let{configFile:r}=this.getConfigFileAndProject(t);return r?_c:this.getDiagnosticsWorker(t,!0,(i,o)=>i.getLanguageService().getSuggestionDiagnostics(o),!!t.includeLinePosition)}getJsxClosingTag(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=i.getJsxClosingTagAtPosition(r,o);return s===void 0?void 0:{newText:s.newText,caretOffset:0}}getLinkedEditingRange(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=i.getLinkedEditingRangeAtPosition(r,o),l=this.projectService.getScriptInfoForNormalizedPath(r);if(!(l===void 0||s===void 0))return Aot(s,l)}getDocumentHighlights(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=o.getLanguageService().getDocumentHighlights(i,s,t.filesToSearch);return l?r?l.map(({fileName:d,highlightSpans:p})=>{let h=o.getScriptInfo(d);return{file:d,highlightSpans:p.map(({textSpan:m,kind:y,contextSpan:E})=>({...whe(m,E,h),kind:y}))}}):l:_c}provideInlayHints(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(r);return i.getLanguageService().provideInlayHints(r,t,this.getPreferences(r)).map(l=>{let{position:d,displayParts:p}=l;return{...l,position:o.positionToLineOffset(d),displayParts:p?.map(({text:h,span:m,file:y})=>{if(m){R.assertIsDefined(y,"Target file should be defined together with its span.");let E=this.projectService.getScriptInfo(y);return{text:h,span:{start:E.positionToLineOffset(m.start),end:E.positionToLineOffset(m.start+m.length),file:y}}}else return{text:h}})}})}setCompilerOptionsForInferredProjects(t){this.projectService.setCompilerOptionsForInferredProjects(t.options,t.projectRootPath)}getProjectInfo(t){return this.getProjectInfoWorker(t.file,t.projectFileName,t.needFileNameList,!1)}getProjectInfoWorker(t,r,i,o){let{project:s}=this.getFileAndProjectWorker(t,r);return zp(s),{configFileName:s.getProjectName(),languageServiceDisabled:!s.languageServiceEnabled,fileNames:i?s.getFileNames(!1,o):void 0}}getRenameInfo(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),s=this.getPreferences(r);return i.getLanguageService().getRenameInfo(r,o,s)}getProjects(t,r,i){let o,s;if(t.projectFileName){let l=this.getProject(t.projectFileName);l&&(o=[l])}else{let l=r?this.projectService.getScriptInfoEnsuringProjectsUptoDate(t.file):this.projectService.getScriptInfo(t.file);if(l)r||this.projectService.ensureDefaultProjectForFile(l);else return i?_c:(this.projectService.logErrorForScriptInfoNotFound(t.file),$y.ThrowNoProject());o=l.containingProjects,s=this.projectService.getSymlinkedProjects(l)}return o=jr(o,l=>l.languageServiceEnabled&&!l.isOrphan()),!i&&(!o||!o.length)&&!s?(this.projectService.logErrorForScriptInfoNotFound(t.file??t.projectFileName),$y.ThrowNoProject()):s?{projects:o,symLinkedProjects:s}:o}getDefaultProject(t){if(t.projectFileName){let i=this.getProject(t.projectFileName);if(i)return i;if(!t.file)return $y.ThrowNoProject()}return this.projectService.getScriptInfo(t.file).getDefaultProject()}getRenameLocations(t,r){let i=dl(t.file),o=this.getPositionInFile(t,i),s=this.getProjects(t),l=this.getDefaultProject(t),d=this.getPreferences(i),p=this.mapRenameInfo(l.getLanguageService().getRenameInfo(i,o,d),R.checkDefined(this.projectService.getScriptInfo(i)));if(!p.canRename)return r?{info:p,locs:[]}:[];let h=got(s,l,{fileName:t.file,pos:o},!!t.findInStrings,!!t.findInComments,d,this.host.useCaseSensitiveFileNames);return r?{info:p,locs:this.toSpanGroups(h)}:h}mapRenameInfo(t,r){if(t.canRename){let{canRename:i,fileToRename:o,displayName:s,fullDisplayName:l,kind:d,kindModifiers:p,triggerSpan:h}=t;return{canRename:i,fileToRename:o,displayName:s,fullDisplayName:l,kind:d,kindModifiers:p,triggerSpan:Ah(h,r)}}else return t}toSpanGroups(t){let r=new Map;for(let{fileName:i,textSpan:o,contextSpan:s,originalContextSpan:l,originalTextSpan:d,originalFileName:p,...h}of t){let m=r.get(i);m||r.set(i,m={file:i,locs:[]});let y=R.checkDefined(this.projectService.getScriptInfo(i));m.locs.push({...whe(o,s,y),...h})}return Oo(r.values())}getReferences(t,r){let i=dl(t.file),o=this.getProjects(t),s=this.getPositionInFile(t,i),l=vot(o,this.getDefaultProject(t),{fileName:t.file,pos:s},this.host.useCaseSensitiveFileNames,this.logger);if(!r)return l;let d=this.getPreferences(i),p=this.getDefaultProject(t),h=p.getScriptInfoForNormalizedPath(i),m=p.getLanguageService().getQuickInfoAtPosition(i,s),y=m?NO(m.displayParts):"",E=m&&m.textSpan,S=E?h.positionToLineOffset(E.start).offset:0,A=E?h.getSnapshot().getText(E.start,Jl(E)):"";return{refs:va(l,D=>D.references.map(w=>qke(this.projectService,w,d))),symbolName:A,symbolStartOffset:S,symbolDisplayString:y}}getFileReferences(t,r){let i=this.getProjects(t),o=t.file,s=this.getPreferences(dl(o)),l=[],d=iZ(this.host.useCaseSensitiveFileNames);return khe(i,void 0,h=>{if(h.getCancellationToken().isCancellationRequested())return;let m=h.getLanguageService().getFileReferences(o);if(m)for(let y of m)d.has(y)||(l.push(y),d.add(y))}),r?{refs:l.map(h=>qke(this.projectService,h,s)),symbolName:`"${t.file}"`}:l}openClientFile(t,r,i,o){this.projectService.openClientFileWithNormalizedPath(t,r,i,!1,o)}getPosition(t,r){return t.position!==void 0?t.position:r.lineOffsetToPosition(t.line,t.offset)}getPositionInFile(t,r){let i=this.projectService.getScriptInfoForNormalizedPath(r);return this.getPosition(t,i)}getFileAndProject(t){return this.getFileAndProjectWorker(t.file,t.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(t){let{file:r,project:i}=this.getFileAndProject(t);return{file:r,languageService:i.getLanguageService(!1)}}getFileAndProjectWorker(t,r){let i=dl(t),o=this.getProject(r)||this.projectService.ensureDefaultProjectForFile(i);return{file:i,project:o}}getOutliningSpans(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getOutliningSpans(i);if(r){let l=this.projectService.getScriptInfoForNormalizedPath(i);return s.map(d=>({textSpan:Ah(d.textSpan,l),hintSpan:Ah(d.hintSpan,l),bannerText:d.bannerText,autoCollapse:d.autoCollapse,kind:d.kind}))}else return s}getTodoComments(t){let{file:r,project:i}=this.getFileAndProject(t);return i.getLanguageService().getTodoComments(r,t.descriptors)}getDocCommentTemplate(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getDocCommentTemplateAtPosition(r,o,this.getPreferences(r),this.getFormatOptions(r))}getSpanOfEnclosingComment(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.onlyMultiLine,s=this.getPositionInFile(t,r);return i.getSpanOfEnclosingComment(r,s,o)}getIndentation(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=t.options?PD(t.options):this.getFormatOptions(r),l=i.getIndentationAtPosition(r,o,s);return{position:o,indentation:l}}getBreakpointStatement(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getBreakpointStatementAtPosition(r,o)}getNameOrDottedNameSpan(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getNameOrDottedNameSpan(r,o,o)}isValidBraceCompletion(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.isValidBraceCompletionAtPosition(r,o,t.openingBrace.charCodeAt(0))}getQuickInfoWorker(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=o.getLanguageService().getQuickInfoAtPosition(i,this.getPosition(t,s));if(!l)return;let d=!!this.getPreferences(i).displayPartsForJSDoc;if(r){let p=NO(l.displayParts);return{kind:l.kind,kindModifiers:l.kindModifiers,start:s.positionToLineOffset(l.textSpan.start),end:s.positionToLineOffset(Jl(l.textSpan)),displayString:p,documentation:d?this.mapDisplayParts(l.documentation,o):NO(l.documentation),tags:this.mapJSDocTagInfo(l.tags,o,d)}}else return d?l:{...l,tags:this.mapJSDocTagInfo(l.tags,o,!1)}}getFormattingEditsForRange(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(r),s=o.lineOffsetToPosition(t.line,t.offset),l=o.lineOffsetToPosition(t.endLine,t.endOffset),d=i.getFormattingEditsForRange(r,s,l,this.getFormatOptions(r));if(d)return d.map(p=>this.convertTextChangeToCodeEdit(p,o))}getFormattingEditsForRangeFull(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?PD(t.options):this.getFormatOptions(r);return i.getFormattingEditsForRange(r,t.position,t.endPosition,o)}getFormattingEditsForDocumentFull(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?PD(t.options):this.getFormatOptions(r);return i.getFormattingEditsForDocument(r,o)}getFormattingEditsAfterKeystrokeFull(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?PD(t.options):this.getFormatOptions(r);return i.getFormattingEditsAfterKeystroke(r,t.position,t.key,o)}getFormattingEditsAfterKeystroke(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(r),s=o.lineOffsetToPosition(t.line,t.offset),l=this.getFormatOptions(r),d=i.getFormattingEditsAfterKeystroke(r,s,t.key,l);if(t.key===` +`&&(!d||d.length===0||_ot(d,s))){let{lineText:p,absolutePosition:h}=o.textStorage.getAbsolutePositionAndLineText(t.line);if(p&&p.search("\\S")<0){let m=i.getIndentationAtPosition(r,s,l),y=0,E,S;for(E=0,S=p.length;E({start:o.positionToLineOffset(p.span.start),end:o.positionToLineOffset(Jl(p.span)),newText:p.newText?p.newText:""}))}getCompletions(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),d=o.getLanguageService().getCompletionsAtPosition(i,l,{...bhe(this.getPreferences(i)),triggerCharacter:t.triggerCharacter,triggerKind:t.triggerKind,includeExternalModuleExports:t.includeExternalModuleExports,includeInsertTextCompletions:t.includeInsertTextCompletions},o.projectService.getFormatCodeOptions(i));if(d===void 0)return;if(r==="completions-full")return d;let p=t.prefix||"",h=to(d.entries,y=>{if(d.isMemberCompletion||ao(y.name.toLowerCase(),p.toLowerCase())){let{name:E,kind:S,kindModifiers:A,sortText:N,insertText:D,filterText:w,replacementSpan:j,hasAction:K,source:Y,sourceDisplay:B,labelDetails:ce,isSnippet:z,isRecommended:ee,isPackageJsonImport:me,isImportStatementCompletion:ge,data:q}=y,J=j?Ah(j,s):void 0;return{name:E,kind:S,kindModifiers:A,sortText:N,insertText:D,filterText:w,replacementSpan:J,isSnippet:z,hasAction:K||void 0,source:Y,sourceDisplay:B,labelDetails:ce,isRecommended:ee,isPackageJsonImport:me,isImportStatementCompletion:ge,data:q}}});return r==="completions"?(d.metadata&&(h.metadata=d.metadata),h):{...d,optionalReplacementSpan:d.optionalReplacementSpan&&Ah(d.optionalReplacementSpan,s),entries:h}}getCompletionEntryDetails(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),d=o.projectService.getFormatCodeOptions(i),p=!!this.getPreferences(i).displayPartsForJSDoc,h=to(t.entryNames,m=>{let{name:y,source:E,data:S}=typeof m=="string"?{name:m,source:void 0,data:void 0}:m;return o.getLanguageService().getCompletionEntryDetails(i,l,y,d,E,this.getPreferences(i),S?ta(S,Cot):void 0)});return r?p?h:h.map(m=>({...m,tags:this.mapJSDocTagInfo(m.tags,o,!1)})):h.map(m=>({...m,codeActions:mn(m.codeActions,y=>this.mapCodeAction(y)),documentation:this.mapDisplayParts(m.documentation,o),tags:this.mapJSDocTagInfo(m.tags,o,p)}))}getCompileOnSaveAffectedFileList(t){let r=this.getProjects(t,!0,!0),i=this.projectService.getScriptInfo(t.file);return i?hot(i,o=>this.projectService.getScriptInfoForPath(o),r,(o,s)=>{if(!o.compileOnSaveEnabled||!o.languageServiceEnabled||o.isOrphan())return;let l=o.getCompilationSettings();if(!(l.noEmit||vd(s.fileName)&&!mot(l)))return{projectFileName:o.getProjectName(),fileNames:o.getCompileOnSaveAffectedFileList(s),projectUsesOutFile:!!Rs(l)}}):_c}emitFile(t){let{file:r,project:i}=this.getFileAndProject(t);if(i||$y.ThrowNoProject(),!i.languageServiceEnabled)return t.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;let o=i.getScriptInfo(r),{emitSkipped:s,diagnostics:l}=i.emitFile(o,(d,p,h)=>this.host.writeFile(d,p,h));return t.richResponse?{emitSkipped:s,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(l):l.map(d=>s8(d,!0))}:!s}getSignatureHelpItems(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),d=o.getLanguageService().getSignatureHelpItems(i,l,t),p=!!this.getPreferences(i).displayPartsForJSDoc;if(d&&r){let h=d.applicableSpan;return{...d,applicableSpan:{start:s.positionToLineOffset(h.start),end:s.positionToLineOffset(h.start+h.length)},items:this.mapSignatureHelpItems(d.items,o,p)}}else return p||!d?d:{...d,items:d.items.map(h=>({...h,tags:this.mapJSDocTagInfo(h.tags,o,!1)}))}}toPendingErrorCheck(t){let r=dl(t),i=this.projectService.tryGetDefaultProjectForFile(r);return i&&{fileName:r,project:i}}getDiagnostics(t,r,i){this.suppressDiagnosticEvents||i.length>0&&this.updateErrorCheck(t,i,r)}change(t){let r=this.projectService.getScriptInfo(t.file);R.assert(!!r),r.textStorage.switchToScriptVersionCache();let i=r.lineOffsetToPosition(t.line,t.offset),o=r.lineOffsetToPosition(t.endLine,t.endOffset);i>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(r,Qte({span:{start:i,length:o-i},newText:t.insertString})))}reload(t,r){let i=dl(t.file),o=t.tmpfile===void 0?void 0:dl(t.tmpfile),s=this.projectService.getScriptInfoForNormalizedPath(i);s&&(this.changeSeq++,s.reloadFromFile(o)&&this.doOutput(void 0,"reload",r,!0))}saveToTmp(t,r){let i=this.projectService.getScriptInfo(t);i&&i.saveTo(r)}closeClientFile(t){if(!t)return;let r=fa(t);this.projectService.closeClientFile(r)}mapLocationNavigationBarItems(t,r){return mn(t,i=>({text:i.text,kind:i.kind,kindModifiers:i.kindModifiers,spans:i.spans.map(o=>Ah(o,r)),childItems:this.mapLocationNavigationBarItems(i.childItems,r),indent:i.indent}))}getNavigationBarItems(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getNavigationBarItems(i);return s?r?this.mapLocationNavigationBarItems(s,this.projectService.getScriptInfoForNormalizedPath(i)):s:void 0}toLocationNavigationTree(t,r){return{text:t.text,kind:t.kind,kindModifiers:t.kindModifiers,spans:t.spans.map(i=>Ah(i,r)),nameSpan:t.nameSpan&&Ah(t.nameSpan,r),childItems:mn(t.childItems,i=>this.toLocationNavigationTree(i,r))}}getNavigationTree(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getNavigationTree(i);return s?r?this.toLocationNavigationTree(s,this.projectService.getScriptInfoForNormalizedPath(i)):s:void 0}getNavigateToItems(t,r){let i=this.getFullNavigateToItems(t);return r?va(i,({project:o,navigateToItems:s})=>s.map(l=>{let d=o.getScriptInfo(l.fileName),p={name:l.name,kind:l.kind,kindModifiers:l.kindModifiers,isCaseSensitive:l.isCaseSensitive,matchKind:l.matchKind,file:l.fileName,start:d.positionToLineOffset(l.textSpan.start),end:d.positionToLineOffset(Jl(l.textSpan))};return l.kindModifiers&&l.kindModifiers!==""&&(p.kindModifiers=l.kindModifiers),l.containerName&&l.containerName.length>0&&(p.containerName=l.containerName),l.containerKind&&l.containerKind.length>0&&(p.containerKind=l.containerKind),p})):va(i,({navigateToItems:o})=>o)}getFullNavigateToItems(t){let{currentFileOnly:r,searchValue:i,maxResultCount:o,projectFileName:s}=t;if(r){R.assertIsDefined(t.file);let{file:E,project:S}=this.getFileAndProject(t);return[{project:S,navigateToItems:S.getLanguageService().getNavigateToItems(i,o,E)}]}let l=this.getHostPreferences(),d=[],p=new Map;if(!t.file&&!s)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(E=>h(E));else{let E=this.getProjects(t);khe(E,void 0,S=>h(S))}return d;function h(E){let S=E.getLanguageService().getNavigateToItems(i,o,void 0,E.isNonTsProject(),l.excludeLibrarySymbolsInNavTo),A=jr(S,N=>m(N)&&!oZ(bM(N),E));A.length&&d.push({project:E,navigateToItems:A})}function m(E){let S=E.name;if(!p.has(S))return p.set(S,[E]),!0;let A=p.get(S);for(let N of A)if(y(N,E))return!1;return A.push(E),!0}function y(E,S){return E===S?!0:!E||!S?!1:E.containerKind===S.containerKind&&E.containerName===S.containerName&&E.fileName===S.fileName&&E.isCaseSensitive===S.isCaseSensitive&&E.kind===S.kind&&E.kindModifiers===S.kindModifiers&&E.matchKind===S.matchKind&&E.name===S.name&&E.textSpan.start===S.textSpan.start&&E.textSpan.length===S.textSpan.length}}getSupportedCodeFixes(t){if(!t)return _Y();if(t.file){let{file:i,project:o}=this.getFileAndProject(t);return o.getLanguageService().getSupportedCodeFixes(i)}let r=this.getProject(t.projectFileName);return r||$y.ThrowNoProject(),r.getLanguageService().getSupportedCodeFixes()}isLocation(t){return t.line!==void 0}extractPositionOrRange(t,r){let i,o;return this.isLocation(t)?i=s(t):o=this.getRange(t,r),R.checkDefined(i===void 0?o:i);function s(l){return l.position!==void 0?l.position:r.lineOffsetToPosition(l.line,l.offset)}}getRange(t,r){let{startPosition:i,endPosition:o}=this.getStartAndEndPosition(t,r);return{pos:i,end:o}}getApplicableRefactors(t){let{file:r,project:i}=this.getFileAndProject(t),o=i.getScriptInfoForNormalizedPath(r);return i.getLanguageService().getApplicableRefactors(r,this.extractPositionOrRange(t,o),this.getPreferences(r),t.triggerReason,t.kind,t.includeInteractiveActions)}getEditsForRefactor(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=o.getScriptInfoForNormalizedPath(i),l=o.getLanguageService().getEditsForRefactor(i,this.getFormatOptions(i),this.extractPositionOrRange(t,s),t.refactor,t.action,this.getPreferences(i),t.interactiveRefactorArguments);if(l===void 0)return{edits:[]};if(r){let{renameFilename:d,renameLocation:p,edits:h}=l,m;if(d!==void 0&&p!==void 0){let y=o.getScriptInfoForNormalizedPath(dl(d));m=Ohe(lD(y.getSnapshot()),d,p,h)}return{renameLocation:m,renameFilename:d,edits:this.mapTextChangesToCodeEdits(h),notApplicableReason:l.notApplicableReason}}return l}getMoveToRefactoringFileSuggestions(t){let{file:r,project:i}=this.getFileAndProject(t),o=i.getScriptInfoForNormalizedPath(r);return i.getLanguageService().getMoveToRefactoringFileSuggestions(r,this.extractPositionOrRange(t,o),this.getPreferences(r))}organizeImports(t,r){R.assert(t.scope.type==="file");let{file:i,project:o}=this.getFileAndProject(t.scope.args),s=o.getLanguageService().organizeImports({fileName:i,mode:t.mode??(t.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(i),this.getPreferences(i));return r?this.mapTextChangesToCodeEdits(s):s}getEditsForFileRename(t,r){let i=dl(t.oldFilePath),o=dl(t.newFilePath),s=this.getHostFormatOptions(),l=this.getHostPreferences(),d=new Set,p=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(h=>{let m=h.getLanguageService().getEditsForFileRename(i,o,s,l),y=[];for(let E of m)d.has(E.fileName)||(p.push(E),y.push(E.fileName));for(let E of y)d.add(E)}),r?p.map(h=>this.mapTextChangeToCodeEdit(h)):p}getCodeFixes(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=o.getScriptInfoForNormalizedPath(i),{startPosition:l,endPosition:d}=this.getStartAndEndPosition(t,s),p;try{p=o.getLanguageService().getCodeFixesAtPosition(i,l,d,t.errorCodes,this.getFormatOptions(i),this.getPreferences(i))}catch(h){let m=o.getLanguageService(),y=[...m.getSyntacticDiagnostics(i),...m.getSemanticDiagnostics(i),...m.getSuggestionDiagnostics(i)].map(S=>qL(l,d-l,S.start,S.length)&&S.code),E=t.errorCodes.find(S=>!y.includes(S));throw E!==void 0&&(h.message=`BADCLIENT: Bad error code, ${E} not found in range ${l}..${d} (found: ${y.join(", ")}); could have caused this error: +${h.message}`),h}return r?p.map(h=>this.mapCodeFixAction(h)):p}getCombinedCodeFix({scope:t,fixId:r},i){R.assert(t.type==="file");let{file:o,project:s}=this.getFileAndProject(t.args),l=s.getLanguageService().getCombinedCodeFix({type:"file",fileName:o},r,this.getFormatOptions(o),this.getPreferences(o));return i?{changes:this.mapTextChangesToCodeEdits(l.changes),commands:l.commands}:l}applyCodeActionCommand(t){let r=t.command;for(let i of dI(r)){let{file:o,project:s}=this.getFileAndProject(i);s.getLanguageService().applyCodeActionCommand(i,this.getFormatOptions(o)).then(l=>{},l=>{})}return{}}getStartAndEndPosition(t,r){let i,o;return t.startPosition!==void 0?i=t.startPosition:(i=r.lineOffsetToPosition(t.startLine,t.startOffset),t.startPosition=i),t.endPosition!==void 0?o=t.endPosition:(o=r.lineOffsetToPosition(t.endLine,t.endOffset),t.endPosition=o),{startPosition:i,endPosition:o}}mapCodeAction({description:t,changes:r,commands:i}){return{description:t,changes:this.mapTextChangesToCodeEdits(r),commands:i}}mapCodeFixAction({fixName:t,description:r,changes:i,commands:o,fixId:s,fixAllDescription:l}){return{fixName:t,description:r,changes:this.mapTextChangesToCodeEdits(i),commands:o,fixId:s,fixAllDescription:l}}mapTextChangesToCodeEdits(t){return t.map(r=>this.mapTextChangeToCodeEdit(r))}mapTextChangeToCodeEdit(t){let r=this.projectService.getScriptInfoOrConfig(t.fileName);return!!t.isNewFile==!!r&&(r||this.projectService.logErrorForScriptInfoNotFound(t.fileName),R.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!t.isNewFile,hasScriptInfo:!!r}))),r?{fileName:t.fileName,textChanges:t.textChanges.map(i=>Tot(i,r))}:xot(t)}convertTextChangeToCodeEdit(t,r){return{start:r.positionToLineOffset(t.span.start),end:r.positionToLineOffset(t.span.start+t.span.length),newText:t.newText?t.newText:""}}getBraceMatching(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),d=o.getBraceMatchingAtPosition(i,l);return d?r?d.map(p=>Ah(p,s)):d:void 0}getDiagnosticsForProject(t,r,i){if(this.suppressDiagnosticEvents)return;let{fileNames:o,languageServiceDisabled:s}=this.getProjectInfoWorker(i,void 0,!0,!0);if(s)return;let l=o.filter(N=>!N.includes("lib.d.ts"));if(l.length===0)return;let d=[],p=[],h=[],m=[],y=dl(i),E=this.projectService.ensureDefaultProjectForFile(y);for(let N of l)this.getCanonicalFileName(N)===this.getCanonicalFileName(i)?d.push(N):this.projectService.getScriptInfo(N).isScriptOpen()?p.push(N):vd(N)?m.push(N):h.push(N);let A=[...d,...p,...h,...m].map(N=>({fileName:N,project:E}));this.updateErrorCheck(t,A,r,!1)}configurePlugin(t){this.projectService.configurePlugin(t)}getSmartSelectionRange(t,r){let{locations:i}=t,{file:o,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),l=R.checkDefined(this.projectService.getScriptInfo(o));return mn(i,d=>{let p=this.getPosition(d,l),h=s.getSmartSelectionRange(o,p);return r?this.mapSelectionRange(h,l):h})}toggleLineComment(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfo(i),l=this.getRange(t,s),d=o.toggleLineComment(i,l);if(r){let p=this.projectService.getScriptInfoForNormalizedPath(i);return d.map(h=>this.convertTextChangeToCodeEdit(h,p))}return d}toggleMultilineComment(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),d=o.toggleMultilineComment(i,l);if(r){let p=this.projectService.getScriptInfoForNormalizedPath(i);return d.map(h=>this.convertTextChangeToCodeEdit(h,p))}return d}commentSelection(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),d=o.commentSelection(i,l);if(r){let p=this.projectService.getScriptInfoForNormalizedPath(i);return d.map(h=>this.convertTextChangeToCodeEdit(h,p))}return d}uncommentSelection(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),d=o.uncommentSelection(i,l);if(r){let p=this.projectService.getScriptInfoForNormalizedPath(i);return d.map(h=>this.convertTextChangeToCodeEdit(h,p))}return d}mapSelectionRange(t,r){let i={textSpan:Ah(t.textSpan,r)};return t.parent&&(i.parent=this.mapSelectionRange(t.parent,r)),i}getScriptInfoFromProjectService(t){let r=dl(t),i=this.projectService.getScriptInfoForNormalizedPath(r);return i||(this.projectService.logErrorForScriptInfoNotFound(r),$y.ThrowNoProject())}toProtocolCallHierarchyItem(t){let r=this.getScriptInfoFromProjectService(t.file);return{name:t.name,kind:t.kind,kindModifiers:t.kindModifiers,file:t.file,containerName:t.containerName,span:Ah(t.span,r),selectionSpan:Ah(t.selectionSpan,r)}}toProtocolCallHierarchyIncomingCall(t){let r=this.getScriptInfoFromProjectService(t.from.file);return{from:this.toProtocolCallHierarchyItem(t.from),fromSpans:t.fromSpans.map(i=>Ah(i,r))}}toProtocolCallHierarchyOutgoingCall(t,r){return{to:this.toProtocolCallHierarchyItem(t.to),fromSpans:t.fromSpans.map(i=>Ah(i,r))}}prepareCallHierarchy(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(r);if(o){let s=this.getPosition(t,o),l=i.getLanguageService().prepareCallHierarchy(r,s);return l&&uX(l,d=>this.toProtocolCallHierarchyItem(d))}}provideCallHierarchyIncomingCalls(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.getScriptInfoFromProjectService(r);return i.getLanguageService().provideCallHierarchyIncomingCalls(r,this.getPosition(t,o)).map(l=>this.toProtocolCallHierarchyIncomingCall(l))}provideCallHierarchyOutgoingCalls(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.getScriptInfoFromProjectService(r);return i.getLanguageService().provideCallHierarchyOutgoingCalls(r,this.getPosition(t,o)).map(l=>this.toProtocolCallHierarchyOutgoingCall(l,o))}getCanonicalFileName(t){let r=this.host.useCaseSensitiveFileNames?t:oh(t);return fa(r)}exit(){}notRequired(){return{responseRequired:!1}}requiredResponse(t){return{response:t,responseRequired:!0}}addProtocolHandler(t,r){if(this.handlers.has(t))throw new Error(`Protocol handler already exists for command "${t}"`);this.handlers.set(t,r)}setCurrentRequest(t){R.assert(this.currentRequestId===void 0),this.currentRequestId=t,this.cancellationToken.setRequest(t)}resetCurrentRequest(t){R.assert(this.currentRequestId===t),this.currentRequestId=void 0,this.cancellationToken.resetRequest(t)}executeWithRequestId(t,r){try{return this.setCurrentRequest(t),r()}finally{this.resetCurrentRequest(t)}}executeCommand(t){let r=this.handlers.get(t.command);if(r){let i=this.executeWithRequestId(t.seq,()=>r(t));return this.projectService.enableRequestedPlugins(),i}else return this.logger.msg(`Unrecognized JSON command:${RE(t)}`,"Err"),this.doOutput(void 0,"unknown",t.seq,!1,`Unrecognized JSON command: ${t.command}`),{responseRequired:!1}}onMessage(t){var r,i,o,s,l,d,p,h,m,y,E;this.gcTimer.scheduleCollect(),this.performanceData=void 0;let S;this.logger.hasLevel(2)&&(S=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${KP(this.toStringMessage(t))}`));let A,N;try{A=this.parseMessage(t),N=A.arguments&&A.arguments.file?A.arguments:void 0,(r=rr)==null||r.instant(rr.Phase.Session,"request",{seq:A.seq,command:A.command}),(i=ru)==null||i.logStartCommand(""+A.command,this.toStringMessage(t).substring(0,100)),(o=rr)==null||o.push(rr.Phase.Session,"executeCommand",{seq:A.seq,command:A.command},!0);let{response:D,responseRequired:w}=this.executeCommand(A);if((s=rr)==null||s.pop(),this.logger.hasLevel(2)){let j=fot(this.hrtime(S)).toFixed(4);w?this.logger.perftrc(`${A.seq}::${A.command}: elapsed time (in milliseconds) ${j}`):this.logger.perftrc(`${A.seq}::${A.command}: async elapsed time (in milliseconds) ${j}`)}(l=ru)==null||l.logStopCommand(""+A.command,"Success"),(d=rr)==null||d.instant(rr.Phase.Session,"response",{seq:A.seq,command:A.command,success:!!D}),D?this.doOutput(D,A.command,A.seq,!0):w&&this.doOutput(void 0,A.command,A.seq,!1,"No content available.")}catch(D){if((p=rr)==null||p.popAll(),D instanceof xx){(h=ru)==null||h.logStopCommand(""+(A&&A.command),"Canceled: "+D),(m=rr)==null||m.instant(rr.Phase.Session,"commandCanceled",{seq:A?.seq,command:A?.command}),this.doOutput({canceled:!0},A.command,A.seq,!0);return}this.logErrorWorker(D,this.toStringMessage(t),N),(y=ru)==null||y.logStopCommand(""+(A&&A.command),"Error: "+D),(E=rr)==null||E.instant(rr.Phase.Session,"commandError",{seq:A?.seq,command:A?.command,message:D.message}),this.doOutput(void 0,A?A.command:"unknown",A?A.seq:0,!1,"Error processing request. "+D.message+` +`+D.stack)}}parseMessage(t){return JSON.parse(t)}toStringMessage(t){return t}getFormatOptions(t){return this.projectService.getFormatCodeOptions(t)}getPreferences(t){return this.projectService.getPreferences(t)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}}}}),L1,aZ,$ke,Qke,VB,jB,Ghe,EM,k1,l8,Pot=bt({"src/server/scriptVersionCache.ts"(){"use strict";ob(),iA(),L1=4,aZ=(e=>(e[e.PreStart=0]="PreStart",e[e.Start=1]="Start",e[e.Entire=2]="Entire",e[e.Mid=3]="Mid",e[e.End=4]="End",e[e.PostEnd=5]="PostEnd",e))(aZ||{}),$ke=class{constructor(){this.goSubtree=!0,this.lineIndex=new EM,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new k1,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,t){t&&(this.trailingText=""),e?e=this.initialText+e+this.trailingText:e=this.initialText+this.trailingText;let i=EM.linesFromText(e).lines;i.length>1&&i[i.length-1]===""&&i.pop();let o,s;for(let d=this.endBranch.length-1;d>=0;d--)this.endBranch[d].updateCounts(),this.endBranch[d].charCount()===0&&(s=this.endBranch[d],d>0?o=this.endBranch[d-1]:o=this.branchNode);s&&o.remove(s);let l=this.startPath[this.startPath.length-1];if(i.length>0)if(l.text=i[0],i.length>1){let d=new Array(i.length-1),p=l;for(let y=1;y=0;){let y=this.startPath[h];d=y.insertAt(p,d),h--,p=y}let m=d.length;for(;m>0;){let y=new k1;y.add(this.lineIndex.root),d=y.insertAt(this.lineIndex.root,d),m=d.length,this.lineIndex.root=y}this.lineIndex.root.updateCounts()}else for(let d=this.startPath.length-2;d>=0;d--)this.startPath[d].updateCounts();else{this.startPath[this.startPath.length-2].remove(l);for(let p=this.startPath.length-2;p>=0;p--)this.startPath[p].updateCounts()}return this.lineIndex}post(e,t,r){r===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,t,r,i,o){let s=this.stack[this.stack.length-1];this.state===2&&o===1&&(this.state=1,this.branchNode=s,this.lineCollectionAtBranch=r);let l;function d(p){return p.isLeaf()?new l8(""):new k1}switch(o){case 0:this.goSubtree=!1,this.state!==4&&s.add(r);break;case 1:this.state===4?this.goSubtree=!1:(l=d(r),s.add(l),this.startPath.push(l));break;case 2:this.state!==4?(l=d(r),s.add(l),this.startPath.push(l)):r.isLeaf()||(l=d(r),s.add(l),this.endBranch.push(l));break;case 3:this.goSubtree=!1;break;case 4:this.state!==4?this.goSubtree=!1:r.isLeaf()||(l=d(r),s.add(l),this.endBranch.push(l));break;case 5:this.goSubtree=!1,this.state!==1&&s.add(r);break}this.goSubtree&&this.stack.push(l)}leaf(e,t,r){this.state===1?this.initialText=r.text.substring(0,e):this.state===2?(this.initialText=r.text.substring(0,e),this.trailingText=r.text.substring(e+t)):this.trailingText=r.text.substring(e+t)}},Qke=class{constructor(e,t,r){this.pos=e,this.deleteLen=t,this.insertedText=r}getTextChangeRange(){return XL(_d(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},VB=class oI{constructor(){this.changes=[],this.versions=new Array(oI.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(tthis.currentVersion))return t%oI.maxVersions}currentVersionToIndex(){return this.currentVersion%oI.maxVersions}edit(t,r,i){this.changes.push(new Qke(t,r,i)),(this.changes.length>oI.changeNumberThreshold||r>oI.changeLengthThreshold||i&&i.length>oI.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let t=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let r=t.index;for(let i of this.changes)r=r.edit(i.pos,i.deleteLen,i.insertedText);t=new Ghe(this.currentVersion+1,this,r,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=oI.maxVersions&&(this.minVersion=this.currentVersion-oI.maxVersions+1)}return t}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(t){return this._getSnapshot().index.lineNumberToInfo(t)}lineOffsetToPosition(t,r){return this._getSnapshot().index.absolutePositionOfStartOfLine(t)+(r-1)}positionToLineOffset(t){return this._getSnapshot().index.positionToLineOffset(t)}lineToTextSpan(t){let r=this._getSnapshot().index,{lineText:i,absolutePosition:o}=r.lineNumberToInfo(t+1),s=i!==void 0?i.length:r.absolutePositionOfStartOfLine(t+2)-o;return _d(o,s)}getTextChangesBetweenVersions(t,r){if(t=this.minVersion){let i=[];for(let o=t+1;o<=r;o++){let s=this.versions[this.versionToIndex(o)];for(let l of s.changesSincePreviousVersion)i.push(l.getTextChangeRange())}return Jne(i)}else return;else return u2}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){let r=new oI,i=new Ghe(0,r,new EM);r.versions[r.currentVersion]=i;let o=EM.linesFromText(t);return i.index.load(o.lines),r}},VB.changeNumberThreshold=8,VB.changeLengthThreshold=256,VB.maxVersions=8,jB=VB,Ghe=class q4e{constructor(t,r,i,o=_c){this.version=t,this.cache=r,this.index=i,this.changesSincePreviousVersion=o}getText(t,r){return this.index.getText(t,r-t)}getLength(){return this.index.getLength()}getChangeRange(t){if(t instanceof q4e&&this.cache===t.cache)return this.version<=t.version?u2:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},EM=class Cbe{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(t){return this.lineNumberToInfo(t).absolutePosition}positionToLineOffset(t){let{oneBasedLine:r,zeroBasedColumn:i}=this.root.charOffsetToLineInfo(1,t);return{line:r,offset:i+1}}positionToColumnAndLineText(t){return this.root.charOffsetToLineInfo(1,t)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(t){let r=this.getLineCount();if(t<=r){let{position:i,leaf:o}=this.root.lineNumberToInfo(t,0);return{absolutePosition:i,lineText:o&&o.text}}else return{absolutePosition:this.root.charCount(),lineText:void 0}}load(t){if(t.length>0){let r=[];for(let i=0;i0&&t{i=i.concat(l.text.substring(o,o+s))}}),i}getLength(){return this.root.charCount()}every(t,r,i){i||(i=this.root.charCount());let o={goSubtree:!0,done:!1,leaf(s,l,d){t(d,s,l)||(this.done=!0)}};return this.walk(r,i-r,o),!o.done}edit(t,r,i){if(this.root.charCount()===0)return R.assert(r===0),i!==void 0?(this.load(Cbe.linesFromText(i).lines),this):void 0;{let o;if(this.checkEdits){let d=this.getText(0,this.root.charCount());o=d.slice(0,t)+i+d.slice(t+r)}let s=new $ke,l=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;let d=this.getText(t,1);i?i=d+i:i=d,r=0,l=!0}else if(r>0){let d=t+r,{zeroBasedColumn:p,lineText:h}=this.positionToColumnAndLineText(d);p===0&&(r+=h.length,i=i?i+h:h)}if(this.root.walk(t,r,s),s.insertLines(i,l),this.checkEdits){let d=s.lineIndex.getText(0,s.lineIndex.getLength());R.assert(o===d,"buffer edit mismatch")}return s.lineIndex}}static buildTreeFromBottom(t){if(t.length0?i[o]=s:i.pop(),{lines:i,lineMap:r}}},k1=class Nbe{constructor(t=[]){this.children=t,this.totalChars=0,this.totalLines=0,t.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(let t of this.children)this.totalChars+=t.charCount(),this.totalLines+=t.lineCount()}execWalk(t,r,i,o,s){return i.pre&&i.pre(t,r,this.children[o],this,s),i.goSubtree?(this.children[o].walk(t,r,i),i.post&&i.post(t,r,this.children[o],this,s)):i.goSubtree=!0,i.done}skipChild(t,r,i,o,s){o.pre&&!o.done&&(o.pre(t,r,this.children[i],this,s),o.goSubtree=!0)}walk(t,r,i){let o=0,s=this.children[o].charCount(),l=t;for(;l>=s;)this.skipChild(l,r,o,i,0),l-=s,o++,s=this.children[o].charCount();if(l+r<=s){if(this.execWalk(l,r,i,o,2))return}else{if(this.execWalk(l,s-l,i,o,1))return;let d=r-(s-l);for(o++,s=this.children[o].charCount();d>s;){if(this.execWalk(0,s,i,o,3))return;d-=s,o++,s=this.children[o].charCount()}if(d>0&&this.execWalk(0,d,i,o,4))return}if(i.pre){let d=this.children.length;if(or)return s.isLeaf()?{oneBasedLine:t,zeroBasedColumn:r,lineText:s.text}:s.charOffsetToLineInfo(t,r);r-=s.charCount(),t+=s.lineCount()}let i=this.lineCount();if(i===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};let o=R.checkDefined(this.lineNumberToInfo(i,0).leaf);return{oneBasedLine:i,zeroBasedColumn:o.charCount(),lineText:void 0}}lineNumberToInfo(t,r){for(let i of this.children){let o=i.lineCount();if(o>=t)return i.isLeaf()?{position:r,leaf:i}:i.lineNumberToInfo(t,r);t-=o,r+=i.charCount()}return{position:r,leaf:void 0}}splitAfter(t){let r,i=this.children.length;t++;let o=t;if(t=0;E--)p[E].children.length===0&&p.pop()}l&&p.push(l),this.updateCounts();for(let m=0;m{(this.packageInstalledPromise??(this.packageInstalledPromise=new Map)).set(this.packageInstallId,{resolve:o,reject:s})});return this.installer.send(r),i}attach(t){this.projectService=t,this.installer=this.createInstallerProcess()}onProjectClosed(t){this.installer.send({projectName:t.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(t,r,i){let o=q_e(t,r,i);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${RE(o)}`),this.activeRequestCount0?this.activeRequestCount--:R.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){let o=this.requestQueue.dequeue();if(this.requestMap.get(o.projectName)===o){this.requestMap.delete(o.projectName),this.scheduleRequest(o);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${o.projectName}`)}this.projectService.updateTypingsForProject(t),this.event(t,"setTypings");break}case JP:this.projectService.watchTypingLocations(t);break;default:}}scheduleRequest(t){this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling request for: ${t.projectName}`),this.activeRequestCount++,this.host.setTimeout(()=>{this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Sending request:${RE(t)}`),this.installer.send(t)},X4e.requestDelayMillis,`${t.projectName}::${t.kind}`)}},Vhe.requestDelayMillis=100,jhe=Vhe}}),Zke={};Ra(Zke,{ActionInvalidate:()=>Bw,ActionPackageInstalled:()=>Gw,ActionSet:()=>zw,ActionWatchTypingLocations:()=>JP,Arguments:()=>$J,AutoImportProviderProject:()=>JQ,AuxiliaryProject:()=>HQ,CharRangeSection:()=>aZ,CloseFileWatcherEvent:()=>zB,CommandNames:()=>Fhe,ConfigFileDiagEvent:()=>kB,ConfiguredProject:()=>qQ,CreateDirectoryWatcherEvent:()=>FB,CreateFileWatcherEvent:()=>WB,Errors:()=>$y,EventBeginInstallTypes:()=>xz,EventEndInstallTypes:()=>Rz,EventInitializationFailed:()=>YJ,EventTypesRegistry:()=>Iz,ExternalProject:()=>RB,GcTimer:()=>FQ,InferredProject:()=>UQ,LargeFileReferencedEvent:()=>LB,LineIndex:()=>EM,LineLeaf:()=>l8,LineNode:()=>k1,LogLevel:()=>kQ,Msg:()=>wQ,OpenFileInfoTelemetryEvent:()=>QQ,Project:()=>rA,ProjectInfoTelemetryEvent:()=>OB,ProjectKind:()=>vM,ProjectLanguageServiceStateEvent:()=>wB,ProjectLoadingFinishEvent:()=>MB,ProjectLoadingStartEvent:()=>PB,ProjectReferenceProjectLoadKind:()=>tZ,ProjectService:()=>nZ,ProjectsUpdatedInBackgroundEvent:()=>o8,ScriptInfo:()=>GQ,ScriptVersionCache:()=>jB,Session:()=>Bhe,TextStorage:()=>BQ,ThrottledOperations:()=>WQ,TypingsCache:()=>VQ,TypingsInstallerAdapter:()=>jhe,allFilesAreJsOrDts:()=>hhe,allRootFilesAreJsOrDts:()=>_he,asNormalizedPath:()=>Dke,convertCompilerOptions:()=>DB,convertFormatOptions:()=>PD,convertScriptKindName:()=>YQ,convertTypeAcquisition:()=>vhe,convertUserPreferences:()=>bhe,convertWatchOptions:()=>i8,countEachFileTypes:()=>n8,createInstallTypingsRequest:()=>q_e,createModuleSpecifierCache:()=>Nhe,createNormalizedPathMap:()=>Cke,createPackageJsonCache:()=>Phe,createSortedArray:()=>Z_e,emptyArray:()=>_c,findArgument:()=>hxe,forEachResolvedProjectReferenceProject:()=>MD,formatDiagnosticToProtocol:()=>s8,formatMessage:()=>Mhe,getBaseConfigFileName:()=>OQ,getLocationInNewDocument:()=>Ohe,hasArgument:()=>_xe,hasNoTypeScriptSource:()=>ghe,indent:()=>KP,isBackgroundProject:()=>r8,isConfigFile:()=>xhe,isConfiguredProject:()=>LE,isDynamicFileName:()=>t8,isExternalProject:()=>jQ,isInferredProject:()=>ND,isInferredProjectName:()=>X_e,makeAutoImportProviderProjectName:()=>$_e,makeAuxiliaryProjectName:()=>Q_e,makeInferredProjectName:()=>Y_e,maxFileSize:()=>NB,maxProgramSizeForNonTsFiles:()=>CB,normalizedPathToPath:()=>e8,nowString:()=>gxe,nullCancellationToken:()=>Whe,nullTypingsInstaller:()=>xB,projectContainsInfoDirectly:()=>M1,protocol:()=>mhe,removeSorted:()=>Nke,stringifyIndented:()=>RE,toEvent:()=>Lhe,toNormalizedPath:()=>dl,tryConvertScriptKindName:()=>XQ,typingsInstaller:()=>K_e,updateProjectIfDirty:()=>zp});var iA=bt({"src/server/_namespaces/ts.server.ts"(){"use strict";Dz(),J_e(),Hit(),Kit(),Jit(),qit(),$it(),tot(),oot(),dot(),uot(),pot(),Not(),Pot(),Mot()}}),ewe={};Ra(ewe,{ANONYMOUS:()=>y7,AccessFlags:()=>I9,AssertionLevel:()=>YG,AssignmentDeclarationKind:()=>k9,AssignmentKind:()=>SU,Associativity:()=>AU,BreakpointResolver:()=>TY,BuilderFileEmit:()=>RJ,BuilderProgramKind:()=>DJ,BuilderState:()=>xm,BundleFileSectionKind:()=>Q9,CallHierarchy:()=>A1,CharacterCodes:()=>H9,CheckFlags:()=>b9,CheckMode:()=>P3,ClassificationType:()=>hq,ClassificationTypeNames:()=>_q,CommentDirectiveType:()=>o9,Comparison:()=>xG,CompletionInfoFlags:()=>lq,CompletionTriggerKind:()=>rq,Completions:()=>C1,ContainerFlags:()=>hK,ContextFlags:()=>u9,Debug:()=>R,DiagnosticCategory:()=>PL,Diagnostics:()=>f,DocumentHighlights:()=>E7,ElementFlags:()=>A9,EmitFlags:()=>GW,EmitHint:()=>X9,EmitOnly:()=>s9,EndOfLineState:()=>uq,EnumKind:()=>v9,ExitStatus:()=>l9,ExportKind:()=>AX,Extension:()=>K9,ExternalEmitHelpers:()=>q9,FileIncludeKind:()=>MW,FilePreprocessingDiagnosticsKind:()=>a9,FileSystemEntryKind:()=>iV,FileWatcherEventKind:()=>rV,FindAllReferences:()=>Ls,FlattenLevel:()=>kK,FlowFlags:()=>NL,ForegroundColorEscapeSequences:()=>vJ,FunctionFlags:()=>TU,GeneratedIdentifierFlags:()=>PW,GetLiteralTextFlags:()=>vU,GoToDefinition:()=>ID,HighlightSpanKind:()=>oq,IdentifierNameMap:()=>f1,IdentifierNameMultiMap:()=>LK,ImportKind:()=>TX,ImportsNotUsedAsValues:()=>B9,IndentStyle:()=>aq,IndexFlags:()=>x9,IndexKind:()=>C9,InferenceFlags:()=>M9,InferencePriority:()=>P9,InlayHintKind:()=>iq,InlayHints:()=>_Q,InternalEmitFlags:()=>J9,InternalSymbolName:()=>E9,InvalidatedProjectKind:()=>XJ,JSDocParsingMode:()=>tV,JsDoc:()=>ME,JsTyping:()=>O_,JsxEmit:()=>z9,JsxFlags:()=>r9,JsxReferenceKind:()=>R9,LanguageServiceMode:()=>eq,LanguageVariant:()=>j9,LexicalEnvironmentFlags:()=>$9,ListFormat:()=>Z9,LogLevel:()=>QG,MemberOverrideStatus:()=>c9,ModifierFlags:()=>CW,ModuleDetectionKind:()=>w9,ModuleInstanceState:()=>_K,ModuleKind:()=>HC,ModuleResolutionKind:()=>Rx,ModuleSpecifierEnding:()=>LU,NavigateTo:()=>due,NavigationBar:()=>bue,NewLineKind:()=>G9,NodeBuilderFlags:()=>p9,NodeCheckFlags:()=>S9,NodeFactoryFlags:()=>GU,NodeFlags:()=>DW,NodeResolutionFeatures:()=>pK,ObjectFlags:()=>OW,OperationCanceledException:()=>xx,OperatorPrecedence:()=>IU,OrganizeImports:()=>Rm,OrganizeImportsMode:()=>nq,OuterExpressionKinds:()=>Y9,OutliningElementsCollector:()=>vQ,OutliningSpanKind:()=>cq,OutputFileType:()=>dq,PackageJsonAutoImportPreference:()=>ZJ,PackageJsonDependencyGroup:()=>QJ,PatternMatchKind:()=>S7,PollingInterval:()=>VW,PollingWatchKind:()=>F9,PragmaKindFlags:()=>eV,PrivateIdentifierKind:()=>qU,ProcessLevel:()=>FK,ProgramUpdateLevel:()=>eJ,QuotePreference:()=>gX,RelationComparisonResult:()=>NW,Rename:()=>vB,ScriptElementKind:()=>fq,ScriptElementKindModifier:()=>mq,ScriptKind:()=>FW,ScriptSnapshot:()=>Nz,ScriptTarget:()=>V9,SemanticClassificationFormat:()=>tq,SemanticMeaning:()=>hX,SemicolonPreference:()=>sq,SignatureCheckMode:()=>M3,SignatureFlags:()=>WW,SignatureHelp:()=>KO,SignatureKind:()=>D9,SmartSelectionRange:()=>SQ,SnippetKind:()=>BW,SortKind:()=>XG,StructureIsReused:()=>LW,SymbolAccessibility:()=>_9,SymbolDisplay:()=>Yy,SymbolDisplayPartKind:()=>jw,SymbolFlags:()=>kW,SymbolFormatFlags:()=>m9,SyntaxKind:()=>RW,SyntheticSymbolKind:()=>h9,Ternary:()=>L9,ThrottledCancellationToken:()=>SY,TokenClass:()=>pq,TokenFlags:()=>i9,TransformFlags:()=>zW,TypeFacts:()=>N3,TypeFlags:()=>wW,TypeFormatFlags:()=>f9,TypeMapKind:()=>N9,TypePredicateKind:()=>g9,TypeReferenceSerializationKind:()=>y9,UnionReduction:()=>d9,UpToDateStatusType:()=>HJ,VarianceFlags:()=>T9,Version:()=>fm,VersionRange:()=>RL,WatchDirectoryFlags:()=>U9,WatchDirectoryKind:()=>W9,WatchFileKind:()=>O9,WatchLogLevel:()=>tJ,WatchType:()=>Lc,accessPrivateIdentifier:()=>sle,addDisposableResourceHelper:()=>C4,addEmitFlags:()=>D_,addEmitHelper:()=>VI,addEmitHelpers:()=>Wg,addInternalEmitFlags:()=>BI,addNodeFactoryPatcher:()=>FSe,addObjectAllocatorPatcher:()=>coe,addRange:()=>Hr,addRelatedInfo:()=>Ma,addSyntheticLeadingComment:()=>iP,addSyntheticTrailingComment:()=>n4,addToSeen:()=>Em,advancedAsyncSuperHelper:()=>Nk,affectsDeclarationPathOptionDeclarations:()=>qH,affectsEmitOptionDeclarations:()=>JH,allKeysStartWithDot:()=>T3,altDirectorySeparator:()=>zL,and:()=>EW,append:()=>Tn,appendIfUnique:()=>Ig,arrayFrom:()=>Oo,arrayIsEqualTo:()=>Vm,arrayIsHomogeneous:()=>Coe,arrayIsSorted:()=>fW,arrayOf:()=>nne,arrayReverseIterator:()=>wG,arrayToMap:()=>h0,arrayToMultiMap:()=>AL,arrayToNumericMap:()=>ine,arraysEqual:()=>EL,assertType:()=>yEe,assign:()=>vx,assignHelper:()=>c4,asyncDelegator:()=>u4,asyncGeneratorHelper:()=>d4,asyncSuperHelper:()=>Ck,asyncValues:()=>p4,attachFileToDiagnostics:()=>wI,awaitHelper:()=>jI,awaiterHelper:()=>m4,base64decode:()=>Qie,base64encode:()=>$ie,binarySearch:()=>Ey,binarySearchKey:()=>lI,bindSourceFile:()=>Ose,breakIntoCharacterSpans:()=>rue,breakIntoWordSpans:()=>iue,buildLinkParts:()=>Rde,buildOpts:()=>p3,buildOverload:()=>Ske,bundlerModuleNameResolver:()=>xse,canBeConvertedToAsync:()=>wX,canHaveDecorators:()=>GT,canHaveExportModifier:()=>uk,canHaveFlowNode:()=>z2,canHaveIllegalDecorators:()=>TH,canHaveIllegalModifiers:()=>Bae,canHaveIllegalType:()=>fTe,canHaveIllegalTypeParameters:()=>zae,canHaveJSDoc:()=>B2,canHaveLocals:()=>ch,canHaveModifiers:()=>Am,canHaveSymbol:()=>b_,canJsonReportNoInputFiles:()=>TP,canProduceDiagnostics:()=>H3,canUsePropertyAccess:()=>_U,canWatchAffectingLocation:()=>mce,canWatchAtTypes:()=>fce,canWatchDirectoryOrFile:()=>pz,cartesianProduct:()=>mne,cast:()=>ta,chainBundle:()=>Im,chainDiagnosticMessages:()=>Fo,changeAnyExtension:()=>WL,changeCompilerHostLikeToUseCache:()=>Pw,changeExtension:()=>fE,changeFullExtension:()=>Lne,changesAffectModuleResolution:()=>yF,changesAffectingProgramStructure:()=>wre,childIsDecorated:()=>hN,classElementOrClassElementParameterIsDecorated:()=>lj,classHasClassThisAssignment:()=>wK,classHasDeclaredOrExplicitlyAssignedName:()=>OK,classHasExplicitlyAssignedName:()=>V3,classOrConstructorParameterIsDecorated:()=>Py,classPrivateFieldGetHelper:()=>x4,classPrivateFieldInHelper:()=>D4,classPrivateFieldSetHelper:()=>R4,classicNameResolver:()=>Mse,classifier:()=>_pe,cleanExtendedConfigCache:()=>Z3,clear:()=>Vh,clearMap:()=>$u,clearSharedExtendedConfigFileWatcher:()=>$K,climbPastPropertyAccess:()=>Mz,climbPastPropertyOrElementAccess:()=>ede,clone:()=>BG,cloneCompilerOptions:()=>wq,closeFileWatcher:()=>Km,closeFileWatcherOf:()=>Rf,codefix:()=>wd,collapseTextChangeRangesAcrossMultipleVersions:()=>Jne,collectExternalModuleInfo:()=>CK,combine:()=>yx,combinePaths:()=>$r,commentPragmas:()=>ML,commonOptionsWithBuild:()=>aw,commonPackageFolders:()=>DU,compact:()=>TL,compareBooleans:()=>Ev,compareDataObjects:()=>Qj,compareDiagnostics:()=>zN,compareDiagnosticsSkipRelatedInformation:()=>T6,compareEmitHelpers:()=>oae,compareNumberOfDirectorySeparators:()=>lk,comparePaths:()=>xg,comparePathsCaseInsensitive:()=>HEe,comparePathsCaseSensitive:()=>UEe,comparePatternKeys:()=>dK,compareProperties:()=>dne,compareStringsCaseInsensitive:()=>vW,compareStringsCaseInsensitiveEslintCompatible:()=>sne,compareStringsCaseSensitive:()=>Gd,compareStringsCaseSensitiveUI:()=>xL,compareTextSpans:()=>yW,compareValues:()=>Zs,compileOnSaveCommandLineOption:()=>iw,compilerOptionsAffectDeclarationPath:()=>voe,compilerOptionsAffectEmit:()=>yoe,compilerOptionsAffectSemanticDiagnostics:()=>goe,compilerOptionsDidYouMeanDiagnostics:()=>cw,compilerOptionsIndicateEsModules:()=>Gq,compose:()=>hEe,computeCommonSourceDirectoryOfFilenames:()=>Kle,computeLineAndCharacterOfPosition:()=>Cx,computeLineOfPosition:()=>XC,computeLineStarts:()=>hI,computePositionOfLineAndCharacter:()=>XW,computeSignature:()=>JT,computeSignatureWithDiagnostics:()=>TJ,computeSuggestionDiagnostics:()=>MX,computedOptions:()=>fc,concatenate:()=>bo,concatenateDiagnosticMessageChains:()=>foe,consumesNodeCoreModules:()=>u7,contains:()=>zo,containsIgnoredPath:()=>qN,containsObjectRestOrSpread:()=>Xk,containsParseError:()=>Gx,containsPath:()=>mm,convertCompilerOptionsForTelemetry:()=>cse,convertCompilerOptionsFromJson:()=>hAe,convertJsonOption:()=>VT,convertToBase64:()=>Yie,convertToJson:()=>tw,convertToObject:()=>ise,convertToOptionsWithAbsolutePaths:()=>GH,convertToRelativePath:()=>qC,convertToTSConfig:()=>nAe,convertTypeAcquisitionFromJson:()=>gAe,copyComments:()=>$T,copyEntries:()=>vF,copyLeadingComments:()=>pD,copyProperties:()=>GG,copyTrailingAsLeadingComments:()=>cO,copyTrailingComments:()=>nM,couldStartTrivia:()=>Wne,countWhere:()=>vv,createAbstractBuilder:()=>T1e,createAccessorPropertyBackingField:()=>IH,createAccessorPropertyGetRedirector:()=>qae,createAccessorPropertySetRedirector:()=>Xae,createBaseNodeFactory:()=>joe,createBinaryExpressionTrampoline:()=>e3,createBindingHelper:()=>IR,createBuildInfo:()=>xw,createBuilderProgram:()=>AJ,createBuilderProgramUsingProgramBuildInfo:()=>uce,createBuilderStatusReporter:()=>Dce,createCacheWithRedirects:()=>nK,createCacheableExportInfoMap:()=>bX,createCachedDirectoryStructureHost:()=>$3,createClassNamedEvaluationHelperBlock:()=>fle,createClassThisAssignmentBlock:()=>ule,createClassifier:()=>Bxe,createCommentDirectivesMap:()=>Gre,createCompilerDiagnostic:()=>jl,createCompilerDiagnosticForInvalidCustomType:()=>Zae,createCompilerDiagnosticFromMessageChain:()=>S6,createCompilerHost:()=>Jle,createCompilerHostFromProgramHost:()=>GJ,createCompilerHostWorker:()=>iJ,createDetachedDiagnostic:()=>gR,createDiagnosticCollection:()=>lR,createDiagnosticForFileFromMessageChain:()=>rj,createDiagnosticForNode:()=>Pr,createDiagnosticForNodeArray:()=>Ux,createDiagnosticForNodeArrayFromMessageChain:()=>y2,createDiagnosticForNodeFromMessageChain:()=>Pg,createDiagnosticForNodeInSourceFile:()=>Kf,createDiagnosticForRange:()=>Zre,createDiagnosticMessageChainFromDiagnostic:()=>Qre,createDiagnosticReporter:()=>Ow,createDocumentPositionMapper:()=>tle,createDocumentRegistry:()=>Kde,createDocumentRegistryInternal:()=>RX,createEmitAndSemanticDiagnosticsBuilderProgram:()=>CJ,createEmitHelperFactory:()=>iae,createEmptyExports:()=>Gk,createExpressionForJsxElement:()=>Mae,createExpressionForJsxFragment:()=>Lae,createExpressionForObjectLiteralElementLike:()=>kae,createExpressionForPropertyName:()=>gH,createExpressionFromEntityName:()=>Vk,createExternalHelpersImportDeclarationIfNeeded:()=>bH,createFileDiagnostic:()=>Yc,createFileDiagnosticFromMessageChain:()=>DF,createForOfBindingStatement:()=>hH,createGetCanonicalFileName:()=>Cd,createGetSourceFile:()=>nJ,createGetSymbolAccessibilityDiagnosticForNode:()=>Vy,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Wle,createGetSymbolWalker:()=>Wse,createIncrementalCompilerHost:()=>jJ,createIncrementalProgram:()=>xce,createInputFiles:()=>BSe,createInputFilesWithFilePaths:()=>zU,createInputFilesWithFileTexts:()=>BU,createJsxFactoryExpression:()=>_H,createLanguageService:()=>cpe,createLanguageServiceSourceFile:()=>K7,createMemberAccessForPropertyName:()=>BT,createModeAwareCache:()=>u1,createModeAwareCacheKey:()=>DP,createModuleNotFoundChain:()=>bF,createModuleResolutionCache:()=>UR,createModuleResolutionLoader:()=>dJ,createModuleResolutionLoaderUsingGlobalCache:()=>yce,createModuleSpecifierResolutionHost:()=>YT,createMultiMap:()=>Xp,createNodeConverters:()=>Hoe,createNodeFactory:()=>Ek,createOptionNameMap:()=>r3,createOverload:()=>MQ,createPackageJsonImportFilter:()=>oM,createPackageJsonInfo:()=>lX,createParenthesizerRules:()=>Uoe,createPatternMatcher:()=>$de,createPrependNodes:()=>gJ,createPrinter:()=>IE,createPrinterWithDefaults:()=>XK,createPrinterWithRemoveComments:()=>iS,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>YK,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>Rw,createProgram:()=>iz,createProgramHost:()=>VJ,createPropertyNameNodeForIdentifierOrLiteral:()=>B6,createQueue:()=>IL,createRange:()=>Ef,createRedirectedBuilderProgram:()=>xJ,createResolutionCache:()=>PJ,createRuntimeTypeSerializer:()=>yle,createScanner:()=>Ry,createSemanticDiagnosticsBuilderProgram:()=>S1e,createSet:()=>VG,createSolutionBuilder:()=>z1e,createSolutionBuilderHost:()=>W1e,createSolutionBuilderWithWatch:()=>B1e,createSolutionBuilderWithWatchHost:()=>F1e,createSortedArray:()=>kG,createSourceFile:()=>$k,createSourceMapGenerator:()=>$se,createSourceMapSource:()=>GSe,createSuperAccessVariableStatement:()=>U3,createSymbolTable:()=>oa,createSymlinkCache:()=>oU,createSystemWatchFunctions:()=>Cne,createTextChange:()=>eO,createTextChangeFromStartLength:()=>Kz,createTextChangeRange:()=>XL,createTextRangeFromNode:()=>Fq,createTextRangeFromSpan:()=>Hz,createTextSpan:()=>_d,createTextSpanFromBounds:()=>dc,createTextSpanFromNode:()=>xu,createTextSpanFromRange:()=>tb,createTextSpanFromStringLiteralLikeContent:()=>Wq,createTextWriter:()=>Q2,createTokenRange:()=>Xj,createTypeChecker:()=>Hse,createTypeReferenceDirectiveResolutionCache:()=>b3,createTypeReferenceResolutionLoader:()=>tz,createUnparsedSourceFile:()=>FU,createWatchCompilerHost:()=>k1e,createWatchCompilerHostOfConfigFile:()=>Tce,createWatchCompilerHostOfFilesAndCompilerOptions:()=>Ace,createWatchFactory:()=>BJ,createWatchHost:()=>zJ,createWatchProgram:()=>w1e,createWatchStatusReporter:()=>vce,createWriteFileMeasuringIO:()=>rJ,declarationNameToString:()=>As,decodeMappings:()=>xK,decodedTextSpanIntersectsWith:()=>qL,decorateHelper:()=>i4,deduplicate:()=>_0,defaultIncludeSpec:()=>_3,defaultInitCompilerOptions:()=>f3,defaultMaximumTruncationLength:()=>_k,detectSortCaseSensitivity:()=>BC,diagnosticCategoryName:()=>rT,diagnosticToString:()=>ZT,directoryProbablyExists:()=>Hm,directorySeparator:()=>nl,displayPart:()=>ep,displayPartsToString:()=>NO,disposeEmitNodes:()=>VU,disposeResourcesHelper:()=>N4,documentSpansEqual:()=>Kq,dumpTracingLegend:()=>xne,elementAt:()=>Iy,elideNodes:()=>Jae,emitComments:()=>zie,emitDetachedComments:()=>Bie,emitFiles:()=>q3,emitFilesAndReportErrors:()=>hz,emitFilesAndReportErrorsAndGetExitStatus:()=>Sce,emitModuleKindIsNonNodeESM:()=>A6,emitNewLineBeforeLeadingCommentOfPosition:()=>Fie,emitNewLineBeforeLeadingComments:()=>Oie,emitNewLineBeforeLeadingCommentsOfPosition:()=>Wie,emitSkippedWithNoDiagnostics:()=>cz,emitUsingBuildInfo:()=>Vle,emptyArray:()=>Xe,emptyFileSystemEntries:()=>Q6,emptyMap:()=>IW,emptyOptions:()=>Cf,emptySet:()=>hne,endsWith:()=>El,ensurePathIsNonModuleName:()=>g0,ensureScriptKind:()=>L6,ensureTrailingDirectorySeparator:()=>Fc,entityNameToString:()=>up,enumerateInsertsAndDeletes:()=>TW,equalOwnProperties:()=>rne,equateStringsCaseInsensitive:()=>Xb,equateStringsCaseSensitive:()=>eT,equateValues:()=>Ay,esDecorateHelper:()=>s4,escapeJsxAttributeString:()=>wj,escapeLeadingUnderscores:()=>pl,escapeNonAsciiString:()=>$2,escapeSnippetText:()=>B0,escapeString:()=>Zh,escapeTemplateSubstitution:()=>Lj,every:()=>oo,expandPreOrPostfixIncrementOrDecrementExpression:()=>q4,explainFiles:()=>kJ,explainIfFileIsRedirectAndImpliedFormat:()=>wJ,exportAssignmentIsAlias:()=>iR,exportStarHelper:()=>I4,expressionResultIsUnused:()=>Poe,extend:()=>gW,extendsHelper:()=>_4,extensionFromPath:()=>jN,extensionIsTS:()=>O6,extensionsNotSupportingExtensionlessResolution:()=>bk,externalHelpersModuleNameText:()=>Vv,factory:()=>L,fileExtensionIs:()=>Sl,fileExtensionIsOneOf:()=>bc,fileIncludeReasonToDiagnostics:()=>FJ,fileShouldUseJavaScriptRequire:()=>_X,filter:()=>jr,filterMutate:()=>CG,filterSemanticDiagnostics:()=>oz,find:()=>Vr,findAncestor:()=>Fn,findBestPatternMatch:()=>KG,findChildOfKind:()=>hs,findComputedPropertyNameCacheAssignment:()=>t3,findConfigFile:()=>Hle,findContainingList:()=>Wz,findDiagnosticForNode:()=>Fde,findFirstNonJsxWhitespaceToken:()=>ode,findIndex:()=>Kl,findLast:()=>sI,findLastIndex:()=>pW,findListItemInfo:()=>ide,findMap:()=>pEe,findModifier:()=>cD,findNextToken:()=>sS,findPackageJson:()=>Ode,findPackageJsons:()=>sX,findPrecedingMatchingToken:()=>jz,findPrecedingToken:()=>Tc,findSuperStatementIndexPath:()=>z3,findTokenOnLeftOfPosition:()=>Bz,findUseStrictPrologue:()=>vH,first:()=>Va,firstDefined:()=>Wl,firstDefinedIterator:()=>bL,firstIterator:()=>WG,firstOrOnly:()=>pX,firstOrUndefined:()=>Jc,firstOrUndefinedIterator:()=>mW,fixupCompilerOptions:()=>WX,flatMap:()=>va,flatMapIterator:()=>NG,flatMapToMutable:()=>OC,flatten:()=>pm,flattenCommaList:()=>Yae,flattenDestructuringAssignment:()=>UT,flattenDestructuringBinding:()=>rS,flattenDiagnosticMessageText:()=>k_,forEach:()=>gn,forEachAncestor:()=>Ore,forEachAncestorDirectory:()=>hm,forEachChild:()=>Bo,forEachChildRecursively:()=>EP,forEachEmittedFile:()=>HK,forEachEnclosingBlockScopeContainer:()=>Xre,forEachEntry:()=>zc,forEachExternalModuleToImportFrom:()=>SX,forEachImportClauseDeclaration:()=>$F,forEachKey:()=>uh,forEachLeadingCommentRange:()=>jL,forEachNameInAccessChainWalkingLeft:()=>soe,forEachPropertyAssignment:()=>qx,forEachResolvedProjectReference:()=>pJ,forEachReturnStatement:()=>x0,forEachRight:()=>qte,forEachTrailingCommentRange:()=>UL,forEachTsConfigPropArray:()=>S2,forEachUnique:()=>qq,forEachYieldExpression:()=>tie,forSomeAncestorDirectory:()=>cSe,formatColorAndReset:()=>oS,formatDiagnostic:()=>oJ,formatDiagnostics:()=>r1e,formatDiagnosticsWithColorAndContext:()=>qle,formatGeneratedName:()=>bE,formatGeneratedNamePart:()=>zR,formatLocation:()=>aJ,formatMessage:()=>nU,formatStringFromArgs:()=>ng,formatting:()=>kc,fullTripleSlashAMDReferencePathRegEx:()=>EU,fullTripleSlashReferencePathRegEx:()=>bU,generateDjb2Hash:()=>KC,generateTSConfig:()=>sAe,generatorHelper:()=>S4,getAdjustedReferenceLocation:()=>Cq,getAdjustedRenameLocation:()=>zz,getAliasDeclarationFromName:()=>Sj,getAllAccessorDeclarations:()=>AT,getAllDecoratorsOfClass:()=>PK,getAllDecoratorsOfClassElement:()=>G3,getAllJSDocTags:()=>rF,getAllJSDocTagsOfKind:()=>b0e,getAllKeys:()=>mEe,getAllProjectOutputs:()=>J3,getAllSuperTypeNodes:()=>EN,getAllUnscopedEmitHelpers:()=>JU,getAllowJSCompilerOption:()=>jv,getAllowSyntheticDefaultImports:()=>RT,getAncestor:()=>uE,getAnyExtensionFromPath:()=>Dx,getAreDeclarationMapsEnabled:()=>gk,getAssignedExpandoInitializer:()=>AI,getAssignedName:()=>tF,getAssignedNameOfIdentifier:()=>wP,getAssignmentDeclarationKind:()=>zl,getAssignmentDeclarationPropertyAccessKind:()=>k2,getAssignmentTargetKind:()=>DI,getAutomaticTypeDirectiveNames:()=>y3,getBaseFileName:()=>nc,getBinaryOperatorPrecedence:()=>Y2,getBuildInfo:()=>X3,getBuildInfoFileVersionMap:()=>IJ,getBuildInfoText:()=>Gle,getBuildOrderFromAnyBuildOrder:()=>Ez,getBuilderCreationParameters:()=>dz,getBuilderFileEmit:()=>eb,getCheckFlags:()=>Tl,getClassExtendsHeritageElement:()=>P0,getClassLikeDeclarationOfSymbol:()=>wg,getCombinedLocalAndExportSymbolFlags:()=>mR,getCombinedModifierFlags:()=>eE,getCombinedNodeFlags:()=>Dy,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>hV,getCommentRange:()=>C_,getCommonSourceDirectory:()=>VP,getCommonSourceDirectoryOfConfig:()=>YR,getCompilerOptionValue:()=>x6,getCompilerOptionsDiffValue:()=>oAe,getConditions:()=>Qv,getConfigFileParsingDiagnostics:()=>KT,getConstantValue:()=>$oe,getContainerFlags:()=>mK,getContainerNode:()=>XT,getContainingClass:()=>id,getContainingClassExcludingClassDecorators:()=>WF,getContainingClassStaticBlock:()=>die,getContainingFunction:()=>Wp,getContainingFunctionDeclaration:()=>cie,getContainingFunctionOrClassStaticBlock:()=>OF,getContainingNodeArray:()=>Moe,getContainingObjectLiteralElement:()=>PO,getContextualTypeFromParent:()=>r7,getContextualTypeFromParentOrAncestorTypeNode:()=>Fz,getCurrentTime:()=>Fw,getDeclarationDiagnostics:()=>Fle,getDeclarationEmitExtensionForPath:()=>a6,getDeclarationEmitOutputFilePath:()=>Pie,getDeclarationEmitOutputFilePathWorker:()=>o6,getDeclarationFileExtension:()=>CH,getDeclarationFromName:()=>bN,getDeclarationModifierFlagsFromSymbol:()=>Tf,getDeclarationOfKind:()=>cl,getDeclarationsOfKind:()=>Lre,getDeclaredExpandoInitializer:()=>N2,getDecorators:()=>Rv,getDefaultCompilerOptions:()=>H7,getDefaultExportInfoWorker:()=>b7,getDefaultFormatCodeSettings:()=>Cz,getDefaultLibFileName:()=>KL,getDefaultLibFilePath:()=>dpe,getDefaultLikeExportInfo:()=>v7,getDiagnosticText:()=>XTe,getDiagnosticsWithinSpan:()=>zde,getDirectoryPath:()=>oi,getDirectoryToWatchFailedLookupLocation:()=>NJ,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>hce,getDocumentPositionMapper:()=>PX,getDocumentSpansEqualityComparer:()=>Jq,getESModuleInterop:()=>_h,getEditsForFileRename:()=>qde,getEffectiveBaseTypeNode:()=>S_,getEffectiveConstraintOfTypeParameter:()=>kx,getEffectiveContainerForJSDocTemplateTag:()=>QF,getEffectiveImplementsTypeNodes:()=>oR,getEffectiveInitializer:()=>C2,getEffectiveJSDocHost:()=>dE,getEffectiveModifierFlags:()=>cu,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Uie,getEffectiveModifierFlagsNoCache:()=>Hie,getEffectiveReturnTypeNode:()=>$f,getEffectiveSetAccessorTypeAnnotationNode:()=>wie,getEffectiveTypeAnnotationNode:()=>hd,getEffectiveTypeParameterDeclarations:()=>Dv,getEffectiveTypeRoots:()=>RP,getElementOrPropertyAccessArgumentExpressionOrName:()=>YF,getElementOrPropertyAccessName:()=>Mg,getElementsOfBindingOrAssignmentPattern:()=>FR,getEmitDeclarations:()=>Af,getEmitFlags:()=>za,getEmitHelpers:()=>r4,getEmitModuleDetectionKind:()=>xU,getEmitModuleKind:()=>Md,getEmitModuleResolutionKind:()=>uu,getEmitScriptTarget:()=>rs,getEmitStandardClassFields:()=>hoe,getEnclosingBlockScopeContainer:()=>ph,getEnclosingContainer:()=>nj,getEncodedSemanticClassifications:()=>IX,getEncodedSyntacticClassifications:()=>xX,getEndLinePosition:()=>m2,getEntityNameFromTypeNode:()=>I2,getEntrypointsFromPackageJsonInfo:()=>sK,getErrorCountForSummary:()=>mz,getErrorSpanForNode:()=>fT,getErrorSummaryText:()=>bce,getEscapedTextOfIdentifierOrLiteral:()=>AN,getEscapedTextOfJsxAttributeName:()=>QN,getEscapedTextOfJsxNamespacedName:()=>FI,getExpandoInitializer:()=>lE,getExportAssignmentExpression:()=>Tj,getExportInfoMap:()=>mO,getExportNeedsImportStarHelper:()=>nle,getExpressionAssociativity:()=>Nj,getExpressionPrecedence:()=>xN,getExternalHelpersModuleName:()=>Uk,getExternalModuleImportEqualsDeclarationExpression:()=>gN,getExternalModuleName:()=>eR,getExternalModuleNameFromDeclaration:()=>Cie,getExternalModuleNameFromPath:()=>Wj,getExternalModuleNameLiteral:()=>s1,getExternalModuleRequireArgument:()=>dj,getFallbackOptions:()=>Nw,getFileEmitOutput:()=>tce,getFileMatcherPatterns:()=>M6,getFileNamesFromConfigSpecs:()=>AP,getFileWatcherEventKind:()=>nV,getFilesInErrorForSummary:()=>_z,getFirstConstructorWithBody:()=>eg,getFirstIdentifier:()=>Fp,getFirstNonSpaceCharacterPosition:()=>Nde,getFirstProjectOutput:()=>qK,getFixableErrorSpanExpression:()=>dX,getFormatCodeSettingsForWriting:()=>_7,getFullWidth:()=>p2,getFunctionFlags:()=>Bc,getHeritageClause:()=>K2,getHostSignatureFromJSDoc:()=>cE,getIdentifierAutoGenerate:()=>KSe,getIdentifierGeneratedImportReference:()=>rae,getIdentifierTypeArguments:()=>DT,getImmediatelyInvokedFunctionExpression:()=>_T,getImpliedNodeFormatForFile:()=>kw,getImpliedNodeFormatForFileWorker:()=>_J,getImportNeedsImportDefaultHelper:()=>DK,getImportNeedsImportStarHelper:()=>W3,getIndentSize:()=>dR,getIndentString:()=>r6,getInferredLibraryNameResolveFrom:()=>rz,getInitializedVariables:()=>ON,getInitializerOfBinaryExpression:()=>_j,getInitializerOfBindingOrAssignmentElement:()=>Kk,getInterfaceBaseTypeNodes:()=>SN,getInternalEmitFlags:()=>ym,getInvokedExpression:()=>BF,getIsolatedModules:()=>em,getJSDocAugmentsTag:()=>nre,getJSDocClassTag:()=>yV,getJSDocCommentRanges:()=>oj,getJSDocCommentsAndTags:()=>gj,getJSDocDeprecatedTag:()=>vV,getJSDocDeprecatedTagNoCache:()=>cre,getJSDocEnumTag:()=>bV,getJSDocHost:()=>vT,getJSDocImplementsTags:()=>rre,getJSDocOverloadTags:()=>vj,getJSDocOverrideTagNoCache:()=>lre,getJSDocParameterTags:()=>Lx,getJSDocParameterTagsNoCache:()=>Qne,getJSDocPrivateTag:()=>_0e,getJSDocPrivateTagNoCache:()=>ore,getJSDocProtectedTag:()=>h0e,getJSDocProtectedTagNoCache:()=>are,getJSDocPublicTag:()=>m0e,getJSDocPublicTagNoCache:()=>ire,getJSDocReadonlyTag:()=>g0e,getJSDocReadonlyTagNoCache:()=>sre,getJSDocReturnTag:()=>dre,getJSDocReturnType:()=>$L,getJSDocRoot:()=>rR,getJSDocSatisfiesExpressionType:()=>gU,getJSDocSatisfiesTag:()=>EV,getJSDocTags:()=>iE,getJSDocTagsNoCache:()=>v0e,getJSDocTemplateTag:()=>y0e,getJSDocThisTag:()=>nF,getJSDocType:()=>rE,getJSDocTypeAliasName:()=>SH,getJSDocTypeAssertionType:()=>Y4,getJSDocTypeParameterDeclarations:()=>d6,getJSDocTypeParameterTags:()=>Zne,getJSDocTypeParameterTagsNoCache:()=>ere,getJSDocTypeTag:()=>nE,getJSXImplicitImportBase:()=>D6,getJSXRuntimeImport:()=>C6,getJSXTransformEnabled:()=>R6,getKeyForCompilerOptions:()=>tK,getLanguageVariant:()=>ok,getLastChild:()=>Zj,getLeadingCommentRanges:()=>Uh,getLeadingCommentRangesOfNode:()=>ij,getLeftmostAccessExpression:()=>_R,getLeftmostExpression:()=>hR,getLibraryNameFromLibFileName:()=>fJ,getLineAndCharacterOfPosition:()=>gs,getLineInfo:()=>AK,getLineOfLocalPosition:()=>DN,getLineOfLocalPositionFromLineMap:()=>ST,getLineStartPositionForPosition:()=>rm,getLineStarts:()=>Rg,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>roe,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>noe,getLinesBetweenPositions:()=>YC,getLinesBetweenRangeEndAndRangeStart:()=>Yj,getLinesBetweenRangeEndPositions:()=>sSe,getLiteralText:()=>Vre,getLocalNameForExternalImport:()=>WR,getLocalSymbolForExportDefault:()=>fR,getLocaleSpecificMessage:()=>ko,getLocaleTimeString:()=>Ww,getMappedContextSpan:()=>Xq,getMappedDocumentSpan:()=>Zz,getMappedLocation:()=>ZP,getMatchedFileSpec:()=>OJ,getMatchedIncludeSpec:()=>WJ,getMeaningFromDeclaration:()=>Uw,getMeaningFromLocation:()=>qT,getMembersOfDeclaration:()=>nie,getModeForFileReference:()=>Mw,getModeForResolutionAtIndex:()=>Xle,getModeForUsageLocation:()=>lJ,getModifiedTime:()=>fI,getModifiers:()=>v0,getModuleInstanceState:()=>Gg,getModuleNameStringLiteralAt:()=>ww,getModuleSpecifierEndingPreference:()=>Toe,getModuleSpecifierResolverHost:()=>Vq,getNameForExportedSymbol:()=>p7,getNameFromImportAttribute:()=>U6,getNameFromIndexInfo:()=>Yre,getNameFromPropertyName:()=>rO,getNameOfAccessExpression:()=>tU,getNameOfCompilerOptionValue:()=>BH,getNameOfDeclaration:()=>No,getNameOfExpando:()=>fj,getNameOfJSDocTypedef:()=>$ne,getNameOrArgument:()=>L2,getNameTable:()=>gY,getNamesForExportedSymbol:()=>Bde,getNamespaceDeclarationNode:()=>tR,getNewLineCharacter:()=>Oy,getNewLineKind:()=>fO,getNewLineOrDefaultFromHost:()=>Jy,getNewTargetContainer:()=>pie,getNextJSDocCommentLocation:()=>yj,getNodeForGeneratedName:()=>qk,getNodeId:()=>is,getNodeKind:()=>aS,getNodeModifiers:()=>YP,getNodeModulePathParts:()=>G6,getNonAssignedNameOfDeclaration:()=>eF,getNonAssignmentOperatorForCompoundAssignment:()=>MP,getNonAugmentationDeclaration:()=>YV,getNonDecoratorTokenPosOfNode:()=>HV,getNormalizedAbsolutePath:()=>_o,getNormalizedAbsolutePathWithoutRoot:()=>lV,getNormalizedPathComponents:()=>OL,getObjectFlags:()=>kr,getOperator:()=>Mj,getOperatorAssociativity:()=>Pj,getOperatorPrecedence:()=>X2,getOptionFromName:()=>OH,getOptionsForLibraryResolution:()=>rK,getOptionsNameMap:()=>GR,getOrCreateEmitNode:()=>Ld,getOrCreateExternalHelpersModuleNameIfNeeded:()=>Fae,getOrUpdate:()=>FC,getOriginalNode:()=>Nl,getOriginalNodeId:()=>kd,getOriginalSourceFile:()=>$0e,getOutputDeclarationFileName:()=>GP,getOutputDeclarationFileNameWorker:()=>KK,getOutputExtension:()=>K3,getOutputFileNames:()=>t1e,getOutputJSFileNameWorker:()=>JK,getOutputPathsFor:()=>BP,getOutputPathsForBundle:()=>zP,getOwnEmitOutputFilePath:()=>Nie,getOwnKeys:()=>jh,getOwnValues:()=>cI,getPackageJsonInfo:()=>Z0,getPackageJsonTypesVersionsPaths:()=>g3,getPackageJsonsVisibleToFile:()=>Wde,getPackageNameFromTypesPackageName:()=>CP,getPackageScopeForPath:()=>mw,getParameterSymbolFromJSDoc:()=>G2,getParameterTypeNode:()=>ySe,getParentNodeInSpan:()=>oO,getParseTreeNode:()=>Ro,getParsedCommandLineOfConfigFile:()=>Zk,getPathComponents:()=>Wc,getPathComponentsRelativeTo:()=>dV,getPathFromPathComponents:()=>Av,getPathUpdater:()=>CX,getPathsBasePath:()=>s6,getPatternFromSpec:()=>boe,getPendingEmitKind:()=>tD,getPositionOfLineAndCharacter:()=>GL,getPossibleGenericSignatures:()=>Pq,getPossibleOriginalInputExtensionForExtension:()=>Mie,getPossibleTypeArgumentsInfo:()=>Mq,getPreEmitDiagnostics:()=>n1e,getPrecedingNonSpaceCharacterPosition:()=>t7,getPrivateIdentifier:()=>MK,getProperties:()=>NK,getProperty:()=>_W,getPropertyArrayElementValue:()=>lie,getPropertyAssignmentAliasLikeExpression:()=>Iie,getPropertyNameForPropertyNameNode:()=>bT,getPropertyNameForUniqueESSymbol:()=>X0e,getPropertyNameFromType:()=>Zf,getPropertyNameOfBindingOrAssignmentElement:()=>EH,getPropertySymbolFromBindingElement:()=>Qz,getPropertySymbolsFromContextualType:()=>J7,getQuoteFromPreference:()=>Uq,getQuotePreference:()=>af,getRangesWhere:()=>LG,getRefactorContextSpan:()=>E1,getReferencedFileLocation:()=>jP,getRegexFromPattern:()=>Bv,getRegularExpressionForWildcard:()=>BN,getRegularExpressionsForWildcards:()=>N6,getRelativePathFromDirectory:()=>_m,getRelativePathFromFile:()=>FL,getRelativePathToDirectoryOrUrl:()=>_I,getRenameLocation:()=>lO,getReplacementSpanForContextToken:()=>Oq,getResolutionDiagnostic:()=>yJ,getResolutionModeOverride:()=>$R,getResolveJsonModule:()=>_E,getResolvePackageJsonExports:()=>X6,getResolvePackageJsonImports:()=>Y6,getResolvedExternalModuleName:()=>i6,getRestIndicatorOfBindingOrAssignmentElement:()=>Q4,getRestParameterElementType:()=>aj,getRightMostAssignedExpression:()=>P2,getRootDeclaration:()=>A_,getRootDirectoryOfResolutionCache:()=>gce,getRootLength:()=>lh,getRootPathSplitLength:()=>R1e,getScriptKind:()=>eX,getScriptKindFromFileName:()=>k6,getScriptTargetFeatures:()=>J6,getSelectedEffectiveModifierFlags:()=>PI,getSelectedSyntacticModifierFlags:()=>Vie,getSemanticClassifications:()=>Ude,getSemanticJsxChildren:()=>sR,getSetAccessorTypeAnnotationNode:()=>Lie,getSetAccessorValueParameter:()=>CN,getSetExternalModuleIndicator:()=>ak,getShebang:()=>$W,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>hj,getSingleVariableOfVariableStatement:()=>RI,getSnapshotText:()=>lD,getSnippetElement:()=>jU,getSourceFileOfModule:()=>SF,getSourceFileOfNode:()=>Gn,getSourceFilePathInNewDir:()=>l6,getSourceFilePathInNewDirWorker:()=>c6,getSourceFileVersionAsHashFromText:()=>gz,getSourceFilesToEmit:()=>Fj,getSourceMapRange:()=>Fy,getSourceMapper:()=>aue,getSourceTextOfNodeFromSourceFile:()=>T0,getSpanOfTokenAtPosition:()=>fh,getSpellingSuggestion:()=>VC,getStartPositionOfLine:()=>wv,getStartPositionOfRange:()=>wN,getStartsOnNewLine:()=>rP,getStaticPropertiesAndClassStaticBlock:()=>B3,getStrictOptionValue:()=>du,getStringComparer:()=>bx,getSubPatternFromSpec:()=>P6,getSuperCallFromStatement:()=>F3,getSuperContainer:()=>T2,getSupportedCodeFixes:()=>_Y,getSupportedExtensions:()=>GN,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>sk,getSwitchedType:()=>oX,getSymbolId:()=>ba,getSymbolNameForPrivateIdentifier:()=>J2,getSymbolTarget:()=>tX,getSyntacticClassifications:()=>Hde,getSyntacticModifierFlags:()=>Fv,getSyntacticModifierFlagsNoCache:()=>Vj,getSynthesizedDeepClone:()=>ol,getSynthesizedDeepCloneWithReplacements:()=>sO,getSynthesizedDeepClones:()=>lS,getSynthesizedDeepClonesWithReplacements:()=>nX,getSyntheticLeadingComments:()=>AR,getSyntheticTrailingComments:()=>xk,getTargetLabel:()=>Lz,getTargetOfBindingOrAssignmentElement:()=>$v,getTemporaryModuleResolutionState:()=>fw,getTextOfConstantValue:()=>jre,getTextOfIdentifierOrLiteral:()=>Xf,getTextOfJSDocComment:()=>ZL,getTextOfJsxAttributeName:()=>mk,getTextOfJsxNamespacedName:()=>ZN,getTextOfNode:()=>uc,getTextOfNodeFromSourceText:()=>uN,getTextOfPropertyName:()=>jx,getThisContainer:()=>ku,getThisParameter:()=>L0,getTokenAtPosition:()=>so,getTokenPosOfNode:()=>aE,getTokenSourceMapRange:()=>USe,getTouchingPropertyName:()=>Fu,getTouchingToken:()=>sD,getTrailingCommentRanges:()=>$b,getTrailingSemicolonDeferringWriter:()=>Oj,getTransformFlagsSubtreeExclusions:()=>Koe,getTransformers:()=>jK,getTsBuildInfoEmitOutputFilePath:()=>jy,getTsConfigObjectLiteralExpression:()=>_N,getTsConfigPropArrayElementValue:()=>wF,getTypeAnnotationNode:()=>kie,getTypeArgumentOrTypeParameterList:()=>fde,getTypeKeywordOfTypeOnlyImport:()=>Hq,getTypeNode:()=>tae,getTypeNodeIfAccessible:()=>iM,getTypeParameterFromJsDoc:()=>vie,getTypeParameterOwner:()=>c0e,getTypesPackageName:()=>A3,getUILocale:()=>lne,getUniqueName:()=>QT,getUniqueSymbolId:()=>Cde,getUseDefineForClassFields:()=>nP,getWatchErrorSummaryDiagnosticMessage:()=>MJ,getWatchFactory:()=>ZK,group:()=>GC,groupBy:()=>hW,guessIndentation:()=>Pre,handleNoEmitOptions:()=>hJ,hasAbstractModifier:()=>O0,hasAccessorModifier:()=>I_,hasAmbientModifier:()=>Gj,hasChangesInResolutions:()=>VV,hasChildOfKind:()=>$w,hasContextSensitiveParameters:()=>z6,hasDecorators:()=>bf,hasDocComment:()=>ude,hasDynamicName:()=>Wv,hasEffectiveModifier:()=>fp,hasEffectiveModifiers:()=>u6,hasEffectiveReadonlyModifier:()=>NN,hasExtension:()=>mI,hasIndexSignature:()=>iX,hasInitializer:()=>Lv,hasInvalidEscape:()=>kj,hasJSDocNodes:()=>kp,hasJSDocParameterTags:()=>tre,hasJSFileExtension:()=>W0,hasJsonModuleEmitEnabled:()=>I6,hasOnlyExpressionInitializer:()=>dT,hasOverrideModifier:()=>p6,hasPossibleExternalModuleReference:()=>qre,hasProperty:()=>Ts,hasPropertyAccessExpressionWithName:()=>Kw,hasQuestionToken:()=>xI,hasRecordedExternalHelpers:()=>Wae,hasResolutionModeOverride:()=>Woe,hasRestParameter:()=>FV,hasScopeMarker:()=>Tre,hasStaticModifier:()=>pc,hasSyntacticModifier:()=>Qr,hasSyntacticModifiers:()=>Gie,hasTSFileExtension:()=>WI,hasTabstop:()=>koe,hasTrailingDirectorySeparator:()=>xy,hasType:()=>hF,hasTypeArguments:()=>U0e,hasZeroOrOneAsteriskCharacter:()=>iU,helperString:()=>KU,hostGetCanonicalFileName:()=>Ly,hostUsesCaseSensitiveFileNames:()=>uR,idText:()=>yr,identifierIsThisKeyword:()=>Bj,identifierToKeywordKind:()=>tE,identity:()=>Qs,identitySourceMapConsumer:()=>O3,ignoreSourceNewlines:()=>HU,ignoredPaths:()=>wL,importDefaultHelper:()=>A4,importFromModuleSpecifier:()=>vN,importNameElisionDisabled:()=>rU,importStarHelper:()=>Dk,indexOfAnyCharCode:()=>Xte,indexOfNode:()=>Vx,indicesOf:()=>SL,inferredTypesContainingFile:()=>eD,injectClassNamedEvaluationHelperBlockIfMissing:()=>j3,injectClassThisAssignmentIfMissing:()=>ple,insertImports:()=>QP,insertLeadingStatement:()=>cTe,insertSorted:()=>bv,insertStatementAfterCustomPrologue:()=>uT,insertStatementAfterStandardPrologue:()=>k0e,insertStatementsAfterCustomPrologue:()=>jV,insertStatementsAfterStandardPrologue:()=>qh,intersperse:()=>DG,intrinsicTagNameToString:()=>yU,introducesArgumentsExoticObject:()=>aie,inverseJsxOptionMap:()=>IP,isAbstractConstructorSymbol:()=>ioe,isAbstractModifier:()=>uae,isAccessExpression:()=>Ps,isAccessibilityModifier:()=>kq,isAccessor:()=>Nv,isAccessorModifier:()=>fae,isAliasSymbolDeclaration:()=>K0e,isAliasableExpression:()=>H2,isAmbientModule:()=>Pd,isAmbientPropertyDeclaration:()=>QV,isAnonymousFunctionDefinition:()=>IN,isAnyDirectorySeparator:()=>oV,isAnyImportOrBareOrAccessedRequire:()=>Jre,isAnyImportOrReExport:()=>h2,isAnyImportSyntax:()=>pT,isAnySupportedFileExtension:()=>gSe,isApplicableVersionedTypesKey:()=>hw,isArgumentExpressionOfElementAccess:()=>Tq,isArray:()=>So,isArrayBindingElement:()=>dF,isArrayBindingOrAssignmentElement:()=>a2,isArrayBindingOrAssignmentPattern:()=>MV,isArrayBindingPattern:()=>j0,isArrayLiteralExpression:()=>pu,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>Hy,isArrayTypeNode:()=>wk,isArrowFunction:()=>Fs,isAsExpression:()=>Wk,isAssertClause:()=>bae,isAssertEntry:()=>tTe,isAssertionExpression:()=>cT,isAssertsKeyword:()=>cae,isAssignmentDeclaration:()=>yN,isAssignmentExpression:()=>Pc,isAssignmentOperator:()=>ky,isAssignmentPattern:()=>lN,isAssignmentTarget:()=>Qh,isAsteriskToken:()=>Pk,isAsyncFunction:()=>TN,isAsyncModifier:()=>aP,isAutoAccessorPropertyDeclaration:()=>Lu,isAwaitExpression:()=>qv,isAwaitKeyword:()=>ZU,isBigIntLiteral:()=>P4,isBinaryExpression:()=>ur,isBinaryOperatorToken:()=>Kae,isBindableObjectDefinePropertyCall:()=>gT,isBindableStaticAccessExpression:()=>C0,isBindableStaticElementAccessExpression:()=>XF,isBindableStaticNameExpression:()=>yT,isBindingElement:()=>Xa,isBindingElementOfBareOrAccessedRequire:()=>_ie,isBindingName:()=>sT,isBindingOrAssignmentElement:()=>gre,isBindingOrAssignmentPattern:()=>i2,isBindingPattern:()=>$o,isBlock:()=>Ho,isBlockOrCatchScoped:()=>KV,isBlockScope:()=>ZV,isBlockScopedContainerTopLevel:()=>Kre,isBooleanLiteral:()=>sN,isBreakOrContinueStatement:()=>rN,isBreakStatement:()=>QSe,isBuildInfoFile:()=>Ble,isBuilderProgram:()=>Ece,isBundle:()=>aH,isBundleFileTextLike:()=>aoe,isCallChain:()=>oT,isCallExpression:()=>ra,isCallExpressionTarget:()=>gq,isCallLikeExpression:()=>S0,isCallLikeOrFunctionLikeExpression:()=>LV,isCallOrNewExpression:()=>v_,isCallOrNewExpressionTarget:()=>yq,isCallSignatureDeclaration:()=>XI,isCallToHelper:()=>oP,isCaseBlock:()=>fP,isCaseClause:()=>PR,isCaseKeyword:()=>mae,isCaseOrDefaultClause:()=>mF,isCatchClause:()=>Y0,isCatchClauseVariableDeclaration:()=>Loe,isCatchClauseVariableDeclarationOrBindingElement:()=>JV,isCheckJsEnabledForFile:()=>dk,isChildOfNodeWithKind:()=>O0e,isCircularBuildOrder:()=>h1,isClassDeclaration:()=>Sc,isClassElement:()=>Xc,isClassExpression:()=>$c,isClassInstanceProperty:()=>_re,isClassLike:()=>di,isClassMemberModifier:()=>CV,isClassNamedEvaluationHelperBlock:()=>_1,isClassOrTypeElement:()=>cF,isClassStaticBlockDeclaration:()=>Al,isClassThisAssignmentBlock:()=>kP,isCollapsedRange:()=>aSe,isColonToken:()=>sae,isCommaExpression:()=>jk,isCommaListExpression:()=>dP,isCommaSequence:()=>yP,isCommaToken:()=>aae,isComment:()=>Uz,isCommonJsExportPropertyAssignment:()=>LF,isCommonJsExportedExpression:()=>iie,isCompoundAssignment:()=>PP,isComputedNonLiteralName:()=>g2,isComputedPropertyName:()=>Ya,isConciseBody:()=>pF,isConditionalExpression:()=>NR,isConditionalTypeNode:()=>ZI,isConstTypeReference:()=>Cg,isConstructSignatureDeclaration:()=>Lk,isConstructorDeclaration:()=>Pl,isConstructorTypeNode:()=>xR,isContextualKeyword:()=>e6,isContinueStatement:()=>$Se,isCustomPrologue:()=>E2,isDebuggerStatement:()=>ZSe,isDeclaration:()=>Ud,isDeclarationBindingElement:()=>r2,isDeclarationFileName:()=>vd,isDeclarationName:()=>Lg,isDeclarationNameOfEnumOrNamespace:()=>$j,isDeclarationReadonly:()=>CF,isDeclarationStatement:()=>Rre,isDeclarationWithTypeParameterChildren:()=>tj,isDeclarationWithTypeParameters:()=>ej,isDecorator:()=>yd,isDecoratorTarget:()=>Qce,isDefaultClause:()=>_P,isDefaultImport:()=>II,isDefaultModifier:()=>w4,isDefaultedExpandoInitializer:()=>hie,isDeleteExpression:()=>gae,isDeleteTarget:()=>Ej,isDeprecatedDeclaration:()=>f7,isDestructuringAssignment:()=>wy,isDiagnosticWithLocation:()=>cX,isDiskPathRoot:()=>aV,isDoStatement:()=>XSe,isDocumentRegistryEntry:()=>_O,isDotDotDotToken:()=>L4,isDottedName:()=>MN,isDynamicName:()=>n6,isESSymbolIdentifier:()=>Y0e,isEffectiveExternalModule:()=>TI,isEffectiveModuleDeclaration:()=>Hre,isEffectiveStrictModeSourceFile:()=>$V,isElementAccessChain:()=>SV,isElementAccessExpression:()=>qs,isEmittedFileOfProgram:()=>Ule,isEmptyArrayLiteral:()=>Xie,isEmptyBindingElement:()=>Xne,isEmptyBindingPattern:()=>qne,isEmptyObjectLiteral:()=>Jj,isEmptyStatement:()=>rH,isEmptyStringLiteral:()=>cj,isEntityName:()=>Xu,isEntityNameExpression:()=>Bl,isEnumConst:()=>I0,isEnumDeclaration:()=>gE,isEnumMember:()=>$0,isEqualityOperatorKind:()=>i7,isEqualsGreaterThanToken:()=>lae,isExclamationToken:()=>Mk,isExcludedFile:()=>ase,isExclusivelyTypeOnlyImportOrExport:()=>sJ,isExpandoPropertyDeclaration:()=>j6,isExportAssignment:()=>Ll,isExportDeclaration:()=>Xl,isExportModifier:()=>JI,isExportName:()=>X4,isExportNamespaceAsDefaultDeclaration:()=>IF,isExportOrDefaultModifier:()=>Jk,isExportSpecifier:()=>Hd,isExportsIdentifier:()=>hT,isExportsOrModuleExportsOrAlias:()=>eS,isExpression:()=>ht,isExpressionNode:()=>Yh,isExpressionOfExternalModuleImportEqualsDeclaration:()=>nde,isExpressionOfOptionalChainRoot:()=>aF,isExpressionStatement:()=>Qc,isExpressionWithTypeArguments:()=>By,isExpressionWithTypeArgumentsInClassExtendsClause:()=>f6,isExternalModule:()=>oc,isExternalModuleAugmentation:()=>A0,isExternalModuleImportEqualsDeclaration:()=>sE,isExternalModuleIndicator:()=>s2,isExternalModuleNameRelative:()=>qc,isExternalModuleReference:()=>bh,isExternalModuleSymbol:()=>tO,isExternalOrCommonJsModule:()=>wp,isFileLevelReservedGeneratedIdentifier:()=>n2,isFileLevelUniqueName:()=>TF,isFileProbablyExternalModule:()=>Yk,isFirstDeclarationOfSymbolParameter:()=>Yq,isFixablePromiseHandler:()=>kX,isForInOrOfStatement:()=>Wx,isForInStatement:()=>G4,isForInitializer:()=>vf,isForOfStatement:()=>Fk,isForStatement:()=>kT,isFunctionBlock:()=>R0,isFunctionBody:()=>wV,isFunctionDeclaration:()=>Ec,isFunctionExpression:()=>Ms,isFunctionExpressionOrArrowFunction:()=>z0,isFunctionLike:()=>Yo,isFunctionLikeDeclaration:()=>Ws,isFunctionLikeKind:()=>vI,isFunctionLikeOrClassStaticBlockDeclaration:()=>Ox,isFunctionOrConstructorTypeNode:()=>hre,isFunctionOrModuleBlock:()=>NV,isFunctionSymbol:()=>yie,isFunctionTypeNode:()=>gh,isFutureReservedKeyword:()=>J0e,isGeneratedIdentifier:()=>rl,isGeneratedPrivateIdentifier:()=>aT,isGetAccessor:()=>Mv,isGetAccessorDeclaration:()=>Zp,isGetOrSetAccessorDeclaration:()=>iF,isGlobalDeclaration:()=>wxe,isGlobalScopeAugmentation:()=>E_,isGrammarError:()=>Bre,isHeritageClause:()=>ef,isHoistedFunction:()=>PF,isHoistedVariableStatement:()=>MF,isIdentifier:()=>Fe,isIdentifierANonContextualKeyword:()=>xj,isIdentifierName:()=>Aie,isIdentifierOrThisTypeNode:()=>Vae,isIdentifierPart:()=>Qb,isIdentifierStart:()=>Hh,isIdentifierText:()=>$p,isIdentifierTypePredicate:()=>sie,isIdentifierTypeReference:()=>Doe,isIfStatement:()=>LT,isIgnoredFileFromWildCardWatching:()=>Cw,isImplicitGlob:()=>sU,isImportAttribute:()=>Eae,isImportAttributeName:()=>mre,isImportAttributes:()=>n1,isImportCall:()=>Op,isImportClause:()=>yh,isImportDeclaration:()=>Mc,isImportEqualsDeclaration:()=>Zc,isImportKeyword:()=>lP,isImportMeta:()=>Kx,isImportOrExportSpecifier:()=>yI,isImportOrExportSpecifierName:()=>Dde,isImportSpecifier:()=>Qu,isImportTypeAssertionContainer:()=>eTe,isImportTypeNode:()=>ig,isImportableFile:()=>EX,isInComment:()=>Uy,isInCompoundLikeAssignment:()=>bj,isInExpressionContext:()=>VF,isInJSDoc:()=>R2,isInJSFile:()=>ir,isInJSXText:()=>cde,isInJsonFile:()=>UF,isInNonReferenceComment:()=>hde,isInReferenceComment:()=>_de,isInRightSideOfInternalImportEqualsDeclaration:()=>Pz,isInString:()=>y1,isInTemplateString:()=>Nq,isInTopLevelContext:()=>FF,isInTypeQuery:()=>TT,isIncrementalCompilation:()=>tP,isIndexSignatureDeclaration:()=>V0,isIndexedAccessTypeNode:()=>MT,isInferTypeNode:()=>CT,isInfinityOrNaNString:()=>XN,isInitializedProperty:()=>Sw,isInitializedVariable:()=>ik,isInsideJsxElement:()=>Vz,isInsideJsxElementOrAttribute:()=>lde,isInsideNodeModules:()=>pO,isInsideTemplateLiteral:()=>Zw,isInstanceOfExpression:()=>m6,isInstantiatedModule:()=>yK,isInterfaceDeclaration:()=>fu,isInternalDeclaration:()=>zV,isInternalModuleImportEqualsDeclaration:()=>$x,isInternalName:()=>yH,isIntersectionTypeNode:()=>QI,isIntrinsicJsxName:()=>cR,isIterationStatement:()=>Pv,isJSDoc:()=>Ym,isJSDocAllType:()=>xae,isJSDocAugmentsTag:()=>a1,isJSDocAuthorTag:()=>oTe,isJSDocCallbackTag:()=>lH,isJSDocClassTag:()=>Dae,isJSDocCommentContainingNode:()=>_F,isJSDocConstructSignature:()=>nR,isJSDocDeprecatedTag:()=>fH,isJSDocEnumTag:()=>Bk,isJSDocFunctionType:()=>LR,isJSDocImplementsTag:()=>K4,isJSDocIndexSignature:()=>HF,isJSDocLikeText:()=>RH,isJSDocLink:()=>Aae,isJSDocLinkCode:()=>Iae,isJSDocLinkLike:()=>SI,isJSDocLinkPlain:()=>rTe,isJSDocMemberName:()=>yE,isJSDocNameReference:()=>hP,isJSDocNamepathType:()=>iTe,isJSDocNamespaceBody:()=>D0e,isJSDocNode:()=>Fx,isJSDocNonNullableType:()=>V4,isJSDocNullableType:()=>MR,isJSDocOptionalParameter:()=>fk,isJSDocOptionalType:()=>sH,isJSDocOverloadTag:()=>kR,isJSDocOverrideTag:()=>U4,isJSDocParameterTag:()=>$m,isJSDocPrivateTag:()=>dH,isJSDocPropertyLikeTag:()=>iN,isJSDocPropertyTag:()=>Cae,isJSDocProtectedTag:()=>uH,isJSDocPublicTag:()=>cH,isJSDocReadonlyTag:()=>pH,isJSDocReturnTag:()=>H4,isJSDocSatisfiesExpression:()=>hU,isJSDocSatisfiesTag:()=>J4,isJSDocSeeTag:()=>aTe,isJSDocSignature:()=>vE,isJSDocTag:()=>zx,isJSDocTemplateTag:()=>nm,isJSDocThisTag:()=>mH,isJSDocThrowsTag:()=>lTe,isJSDocTypeAlias:()=>qf,isJSDocTypeAssertion:()=>OR,isJSDocTypeExpression:()=>Q0,isJSDocTypeLiteral:()=>FT,isJSDocTypeTag:()=>gP,isJSDocTypedefTag:()=>zT,isJSDocUnknownTag:()=>sTe,isJSDocUnknownType:()=>Rae,isJSDocVariadicType:()=>j4,isJSXTagName:()=>Yx,isJsonEqual:()=>W6,isJsonSourceFile:()=>Jf,isJsxAttribute:()=>M_,isJsxAttributeLike:()=>fF,isJsxAttributeName:()=>Ooe,isJsxAttributes:()=>X0,isJsxChild:()=>d2,isJsxClosingElement:()=>J0,isJsxClosingFragment:()=>Sae,isJsxElement:()=>og,isJsxExpression:()=>mP,isJsxFragment:()=>q0,isJsxNamespacedName:()=>Xm,isJsxOpeningElement:()=>P_,isJsxOpeningFragment:()=>i1,isJsxOpeningLikeElement:()=>su,isJsxOpeningLikeElementTagName:()=>Zce,isJsxSelfClosingElement:()=>OT,isJsxSpreadAttribute:()=>o1,isJsxTagNameExpression:()=>cN,isJsxText:()=>UI,isJumpStatementTarget:()=>Jw,isKeyword:()=>Ou,isKeywordOrPunctuation:()=>ZF,isKnownSymbol:()=>q2,isLabelName:()=>Eq,isLabelOfLabeledStatement:()=>bq,isLabeledStatement:()=>K0,isLateVisibilityPaintedStatement:()=>RF,isLeftHandSideExpression:()=>Yu,isLeftHandSideOfAssignment:()=>oSe,isLet:()=>NF,isLineBreak:()=>Vd,isLiteralComputedPropertyDeclarationName:()=>U2,isLiteralExpression:()=>E0,isLiteralExpressionOfObject:()=>RV,isLiteralImportTypeNode:()=>Ov,isLiteralKind:()=>oN,isLiteralLikeAccess:()=>qF,isLiteralLikeElementAccess:()=>M2,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>kz,isLiteralTypeLikeExpression:()=>mTe,isLiteralTypeLiteral:()=>Ere,isLiteralTypeNode:()=>Jv,isLocalName:()=>zg,isLogicalOperator:()=>Kie,isLogicalOrCoalescingAssignmentExpression:()=>jj,isLogicalOrCoalescingAssignmentOperator:()=>PN,isLogicalOrCoalescingBinaryExpression:()=>ek,isLogicalOrCoalescingBinaryOperator:()=>Z2,isMappedTypeNode:()=>DR,isMemberName:()=>Kh,isMetaProperty:()=>cP,isMethodDeclaration:()=>Ul,isMethodOrAccessor:()=>bI,isMethodSignature:()=>hh,isMinusToken:()=>QU,isMissingDeclaration:()=>nTe,isMissingPackageJsonInfo:()=>Tse,isModifier:()=>Ta,isModifierKind:()=>Cy,isModifierLike:()=>il,isModuleAugmentationExternal:()=>XV,isModuleBlock:()=>N_,isModuleBody:()=>Are,isModuleDeclaration:()=>ql,isModuleExportsAccessExpression:()=>$h,isModuleIdentifier:()=>mj,isModuleName:()=>Hae,isModuleOrEnumDeclaration:()=>l2,isModuleReference:()=>Cre,isModuleSpecifierLike:()=>$z,isModuleWithStringLiteralName:()=>xF,isNameOfFunctionDeclaration:()=>Iq,isNameOfModuleDeclaration:()=>Aq,isNamedClassElement:()=>T0e,isNamedDeclaration:()=>ou,isNamedEvaluation:()=>pp,isNamedEvaluationSource:()=>Rj,isNamedExportBindings:()=>AV,isNamedExports:()=>xf,isNamedImportBindings:()=>OV,isNamedImports:()=>Fg,isNamedImportsOrExports:()=>E6,isNamedTupleMember:()=>RR,isNamespaceBody:()=>R0e,isNamespaceExport:()=>vh,isNamespaceExportDeclaration:()=>zk,isNamespaceImport:()=>Yv,isNamespaceReexportDeclaration:()=>mie,isNewExpression:()=>U0,isNewExpressionTarget:()=>qP,isNoSubstitutionTemplateLiteral:()=>HI,isNode:()=>E0e,isNodeArray:()=>b0,isNodeArrayMultiLine:()=>toe,isNodeDescendantOf:()=>N0,isNodeKind:()=>e2,isNodeLikeSystem:()=>qG,isNodeModulesDirectory:()=>KW,isNodeWithPossibleHoistedDeclaration:()=>Eie,isNonContextualKeyword:()=>Ij,isNonExportDefaultModifier:()=>hTe,isNonGlobalAmbientModule:()=>qV,isNonGlobalDeclaration:()=>jde,isNonNullAccess:()=>woe,isNonNullChain:()=>sF,isNonNullExpression:()=>t1,isNonStaticMethodOrAccessorWithPrivateName:()=>rle,isNotEmittedOrPartiallyEmittedNode:()=>x0e,isNotEmittedStatement:()=>oH,isNullishCoalesce:()=>TV,isNumber:()=>Sy,isNumericLiteral:()=>mp,isNumericLiteralName:()=>rg,isObjectBindingElementWithoutPropertyName:()=>iO,isObjectBindingOrAssignmentElement:()=>o2,isObjectBindingOrAssignmentPattern:()=>PV,isObjectBindingPattern:()=>tm,isObjectLiteralElement:()=>WV,isObjectLiteralElementLike:()=>Ng,isObjectLiteralExpression:()=>La,isObjectLiteralMethod:()=>bm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>kF,isObjectTypeDeclaration:()=>kI,isOctalDigit:()=>YW,isOmittedExpression:()=>Gc,isOptionalChain:()=>jd,isOptionalChainRoot:()=>tN,isOptionalDeclaration:()=>$N,isOptionalJSDocPropertyLikeTag:()=>pk,isOptionalTypeNode:()=>O4,isOuterExpression:()=>$4,isOutermostOptionalChain:()=>nN,isOverrideModifier:()=>pae,isPackageJsonInfo:()=>v3,isPackedArrayLiteral:()=>mU,isParameter:()=>To,isParameterDeclaration:()=>M0,isParameterPropertyDeclaration:()=>dp,isParameterPropertyModifier:()=>aN,isParenthesizedExpression:()=>Wu,isParenthesizedTypeNode:()=>NT,isParseTreeNode:()=>eN,isPartOfTypeNode:()=>Xh,isPartOfTypeQuery:()=>jF,isPartiallyEmittedExpression:()=>B4,isPatternMatch:()=>bW,isPinnedComment:()=>AF,isPlainJsFile:()=>f2,isPlusToken:()=>$U,isPossiblyTypeArgumentPosition:()=>Qw,isPostfixUnaryExpression:()=>tH,isPrefixUnaryExpression:()=>Xv,isPrivateIdentifier:()=>Ki,isPrivateIdentifierClassElementDeclaration:()=>au,isPrivateIdentifierPropertyAccessExpression:()=>wx,isPrivateIdentifierSymbol:()=>xie,isProgramBundleEmitBuildInfo:()=>ace,isProgramUptoDate:()=>mJ,isPrologueDirective:()=>vm,isPropertyAccessChain:()=>oF,isPropertyAccessEntityNameExpression:()=>tk,isPropertyAccessExpression:()=>wr,isPropertyAccessOrQualifiedName:()=>vre,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>yre,isPropertyAssignment:()=>mc,isPropertyDeclaration:()=>Vo,isPropertyName:()=>rc,isPropertyNameLiteral:()=>T_,isPropertySignature:()=>_p,isProtoSetter:()=>Rie,isPrototypeAccess:()=>zv,isPrototypePropertyAssignment:()=>w2,isPunctuation:()=>Aj,isPushOrUnshiftIdentifier:()=>Dj,isQualifiedName:()=>Tu,isQuestionDotToken:()=>k4,isQuestionOrExclamationToken:()=>Gae,isQuestionOrPlusOrMinusToken:()=>Uae,isQuestionToken:()=>Hv,isRawSourceMap:()=>Zse,isReadonlyKeyword:()=>dae,isReadonlyKeywordOrPlusOrMinusToken:()=>jae,isRecognizedTripleSlashComment:()=>UV,isReferenceFileLocation:()=>QR,isReferencedFile:()=>xE,isRegularExpressionLiteral:()=>XU,isRequireCall:()=>Eu,isRequireVariableStatement:()=>pj,isRestParameter:()=>Jh,isRestTypeNode:()=>W4,isReturnStatement:()=>Sm,isReturnStatementWithFixablePromiseHandler:()=>T7,isRightSideOfAccessExpression:()=>Kj,isRightSideOfInstanceofExpression:()=>qie,isRightSideOfPropertyAccess:()=>oD,isRightSideOfQualifiedName:()=>tde,isRightSideOfQualifiedNameOrPropertyAccess:()=>LN,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Jie,isRootedDiskPath:()=>cp,isSameEntityName:()=>Qx,isSatisfiesExpression:()=>nH,isScopeMarker:()=>Sre,isSemicolonClassElement:()=>yae,isSetAccessor:()=>Ny,isSetAccessorDeclaration:()=>hp,isShebangTrivia:()=>uV,isShiftOperatorOrHigher:()=>AH,isShorthandAmbientModuleSymbol:()=>pN,isShorthandPropertyAssignment:()=>Zu,isSignedNumericLiteral:()=>t6,isSimpleCopiableExpression:()=>nS,isSimpleInlineableExpression:()=>L_,isSimpleParameter:()=>lle,isSimpleParameterList:()=>Tw,isSingleOrDoubleQuote:()=>D2,isSourceFile:()=>Yi,isSourceFileFromLibrary:()=>fD,isSourceFileJS:()=>lu,isSourceFileNotJS:()=>z0e,isSourceFileNotJson:()=>uj,isSourceMapping:()=>ele,isSpecialPropertyDeclaration:()=>gie,isSpreadAssignment:()=>Gy,isSpreadElement:()=>qm,isStatement:()=>Hi,isStatementButNotDeclaration:()=>c2,isStatementOrBlock:()=>Dre,isStatementWithLocals:()=>zre,isStatic:()=>na,isStaticModifier:()=>qI,isString:()=>Co,isStringAKeyword:()=>q0e,isStringANonContextualKeyword:()=>CI,isStringAndEmptyAnonymousObjectIntersection:()=>mde,isStringDoubleQuoted:()=>JF,isStringLiteral:()=>Ca,isStringLiteralLike:()=>ss,isStringLiteralOrJsxExpression:()=>Nre,isStringLiteralOrTemplate:()=>kde,isStringOrNumericLiteralLike:()=>Qp,isStringOrRegularExpressionOrTemplateLiteral:()=>Lq,isStringTextContainingNode:()=>DV,isSuperCall:()=>mT,isSuperKeyword:()=>sP,isSuperOrSuperProperty:()=>F0e,isSuperProperty:()=>wu,isSupportedSourceFileName:()=>Aoe,isSwitchStatement:()=>pP,isSyntaxList:()=>wR,isSyntheticExpression:()=>qSe,isSyntheticReference:()=>r1,isTagName:()=>Sq,isTaggedTemplateExpression:()=>H0,isTaggedTemplateTag:()=>$ce,isTemplateExpression:()=>F4,isTemplateHead:()=>KI,isTemplateLiteral:()=>EI,isTemplateLiteralKind:()=>Cv,isTemplateLiteralToken:()=>pre,isTemplateLiteralTypeNode:()=>_ae,isTemplateLiteralTypeSpan:()=>eH,isTemplateMiddle:()=>YU,isTemplateMiddleOrTemplateTail:()=>lF,isTemplateSpan:()=>uP,isTemplateTail:()=>M4,isTextWhiteSpaceLike:()=>bde,isThis:()=>aD,isThisContainerOrFunctionBlock:()=>uie,isThisIdentifier:()=>w0,isThisInTypeQuery:()=>NI,isThisInitializedDeclaration:()=>zF,isThisInitializedObjectBindingExpression:()=>fie,isThisProperty:()=>A2,isThisTypeNode:()=>Ok,isThisTypeParameter:()=>YN,isThisTypePredicate:()=>W0e,isThrowStatement:()=>iH,isToken:()=>gI,isTokenKind:()=>xV,isTraceEnabled:()=>Bg,isTransientSymbol:()=>dh,isTrivia:()=>aR,isTryStatement:()=>wT,isTupleTypeNode:()=>$I,isTypeAlias:()=>F2,isTypeAliasDeclaration:()=>Tm,isTypeAssertionExpression:()=>hae,isTypeDeclaration:()=>ER,isTypeElement:()=>lT,isTypeKeyword:()=>$P,isTypeKeywordToken:()=>zq,isTypeKeywordTokenOrIdentifier:()=>Jz,isTypeLiteralNode:()=>gp,isTypeNode:()=>ji,isTypeNodeKind:()=>eU,isTypeOfExpression:()=>CR,isTypeOnlyExportDeclaration:()=>fre,isTypeOnlyImportDeclaration:()=>t2,isTypeOnlyImportOrExportDeclaration:()=>oE,isTypeOperatorNode:()=>PT,isTypeParameterDeclaration:()=>fl,isTypePredicateNode:()=>kk,isTypeQueryNode:()=>YI,isTypeReferenceNode:()=>If,isTypeReferenceType:()=>gF,isTypeUsableAsPropertyName:()=>Qf,isUMDExportSymbol:()=>b6,isUnaryExpression:()=>kV,isUnaryExpressionWithWrite:()=>bre,isUnicodeIdentifierStart:()=>qW,isUnionTypeNode:()=>Kv,isUnparsedNode:()=>IV,isUnparsedPrepend:()=>Tae,isUnparsedSource:()=>WT,isUnparsedTextLike:()=>ure,isUrl:()=>Mne,isValidBigIntString:()=>F6,isValidESSymbolDeclaration:()=>oie,isValidTypeOnlyAliasUseSite:()=>mE,isValueSignatureDeclaration:()=>Sie,isVarAwaitUsing:()=>v2,isVarConst:()=>Hx,isVarUsing:()=>b2,isVariableDeclaration:()=>Oi,isVariableDeclarationInVariableStatement:()=>mN,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>D0,isVariableDeclarationInitializedToRequire:()=>KF,isVariableDeclarationList:()=>Vc,isVariableLike:()=>Jx,isVariableLikeOrAccessor:()=>rie,isVariableStatement:()=>Ml,isVoidExpression:()=>e1,isWatchSet:()=>lSe,isWhileStatement:()=>YSe,isWhiteSpaceLike:()=>Dg,isWhiteSpaceSingleLine:()=>y_,isWithStatement:()=>vae,isWriteAccess:()=>LI,isWriteOnlyAccess:()=>v6,isYieldExpression:()=>z4,jsxModeNeedsExplicitImport:()=>mX,keywordPart:()=>vp,last:()=>Ja,lastOrUndefined:()=>$s,length:()=>Nn,libMap:()=>c3,libs:()=>ow,lineBreakPart:()=>uD,linkNamePart:()=>xde,linkPart:()=>Qq,linkTextPart:()=>e7,listFiles:()=>LJ,loadModuleFromGlobalCache:()=>Lse,loadWithModeAwareCache:()=>Lw,makeIdentifierFromModuleName:()=>Ure,makeImport:()=>Ky,makeImportIfNecessary:()=>vde,makeStringLiteral:()=>b1,mangleScopedPackageName:()=>JR,map:()=>mn,mapAllOrFail:()=>PG,mapDefined:()=>to,mapDefinedEntries:()=>$te,mapDefinedIterator:()=>WC,mapEntries:()=>Zte,mapIterator:()=>wC,mapOneOrMany:()=>uX,mapToDisplayParts:()=>nb,matchFiles:()=>lU,matchPatternOrExact:()=>cU,matchedText:()=>fne,matchesExclude:()=>l3,maybeBind:()=>ea,maybeSetLocalizedDiagnosticMessages:()=>poe,memoize:()=>bu,memoizeCached:()=>ane,memoizeOne:()=>ah,memoizeWeak:()=>_Ee,metadataHelper:()=>o4,min:()=>jG,minAndMax:()=>xoe,missingFileModifiedTime:()=>Mp,modifierToFlag:()=>MI,modifiersToFlags:()=>x_,moduleOptionDeclaration:()=>UH,moduleResolutionIsEqualTo:()=>Wre,moduleResolutionNameAndModeGetter:()=>sz,moduleResolutionOptionDeclarations:()=>d3,moduleResolutionSupportsPackageJsonExportsAndImports:()=>OI,moduleResolutionUsesNodeModules:()=>qz,moduleSpecifiers:()=>tS,moveEmitHelpers:()=>Zoe,moveRangeEnd:()=>g6,moveRangePastDecorators:()=>kg,moveRangePastModifiers:()=>R_,moveRangePos:()=>pE,moveSyntheticComments:()=>Yoe,mutateMap:()=>FN,mutateMapSkippingNewValues:()=>tg,needsParentheses:()=>n7,needsScopeMarker:()=>uF,newCaseClauseTracker:()=>h7,newPrivateEnvironment:()=>ale,noEmitNotification:()=>Aw,noEmitSubstitution:()=>WP,noTransformers:()=>UK,noTruncationMaximumTruncationLength:()=>K6,nodeCanBeDecorated:()=>GF,nodeHasName:()=>YL,nodeIsDecorated:()=>Xx,nodeIsMissing:()=>Fl,nodeIsPresent:()=>Hf,nodeIsSynthesized:()=>Js,nodeModuleNameResolver:()=>Rse,nodeModulesPathPart:()=>Sh,nodeNextJsonConfigResolver:()=>Dse,nodeOrChildIsDecorated:()=>x2,nodeOverlapsWithStartEnd:()=>wz,nodePosToString:()=>N0e,nodeSeenTracker:()=>v1,nodeStartsNewLexicalEnvironment:()=>Cj,nodeToDisplayParts:()=>Cxe,noop:()=>qa,noopFileWatcher:()=>rD,normalizePath:()=>fa,normalizeSlashes:()=>Nd,not:()=>SW,notImplemented:()=>jo,notImplementedResolver:()=>Y3,nullNodeConverters:()=>OU,nullParenthesizerRules:()=>wU,nullTransformationContext:()=>FP,objectAllocator:()=>od,operatorPart:()=>eM,optionDeclarations:()=>ag,optionMapToObject:()=>o3,optionsAffectingProgramStructure:()=>XH,optionsForBuild:()=>$H,optionsForWatch:()=>VR,optionsHaveChanges:()=>Bx,optionsHaveModuleResolutionChanges:()=>kre,or:()=>Um,orderedRemoveItem:()=>Sx,orderedRemoveItemAt:()=>Sv,outFile:()=>Rs,packageIdToPackageName:()=>EF,packageIdToString:()=>kv,paramHelper:()=>a4,parameterIsThisKeyword:()=>k0,parameterNamePart:()=>Sde,parseBaseNodeFactory:()=>MH,parseBigInt:()=>Roe,parseBuildCommand:()=>qTe,parseCommandLine:()=>KTe,parseCommandLineWorker:()=>wH,parseConfigFileTextToJson:()=>WH,parseConfigFileWithSystem:()=>C1e,parseConfigHostFromCompilerHostLike:()=>az,parseCustomTypeOption:()=>i3,parseIsolatedEntityName:()=>l1,parseIsolatedJSDocComment:()=>Qae,parseJSDocTypeExpressionForTests:()=>LTe,parseJsonConfigFileContent:()=>lAe,parseJsonSourceFileConfigFileContent:()=>nw,parseJsonText:()=>Qk,parseListTypeOption:()=>ese,parseNodeFactory:()=>Eh,parseNodeModuleFromPath:()=>pw,parsePackageName:()=>_w,parsePseudoBigInt:()=>HN,parseValidBigInt:()=>fU,patchWriteFileEnsuringDirectory:()=>Nne,pathContainsNodeModules:()=>AE,pathIsAbsolute:()=>JC,pathIsBareSpecifier:()=>sV,pathIsRelative:()=>Lp,patternText:()=>pne,perfLogger:()=>ru,performIncrementalCompilation:()=>L1e,performance:()=>Ane,plainJSErrors:()=>lz,positionBelongsToNode:()=>Rq,positionIsASICandidate:()=>a7,positionIsSynthesized:()=>Jm,positionsAreOnSameLine:()=>Sf,preProcessFile:()=>nRe,probablyUsesSemicolons:()=>dO,processCommentPragmas:()=>NH,processPragmasIntoFields:()=>PH,processTaggedTemplateExpression:()=>WK,programContainsEsModules:()=>yde,programContainsModules:()=>gde,projectReferenceIsEqualTo:()=>GV,propKeyHelper:()=>v4,propertyNamePart:()=>Tde,pseudoBigIntToString:()=>F0,punctuationPart:()=>qd,pushIfUnique:()=>yf,quote:()=>rM,quotePreferenceFromString:()=>jq,rangeContainsPosition:()=>qw,rangeContainsPositionExclusive:()=>Xw,rangeContainsRange:()=>of,rangeContainsRangeExclusive:()=>rde,rangeContainsStartEnd:()=>Yw,rangeEndIsOnSameLineAsRangeStart:()=>rk,rangeEndPositionsAreOnSameLine:()=>Zie,rangeEquals:()=>OG,rangeIsOnSingleLine:()=>IT,rangeOfNode:()=>uU,rangeOfTypeParameters:()=>pU,rangeOverlapsWithStartEnd:()=>XP,rangeStartIsOnSameLineAsRangeEnd:()=>eoe,rangeStartPositionsAreOnSameLine:()=>y6,readBuilderProgram:()=>bz,readConfigFile:()=>ew,readHelper:()=>g4,readJson:()=>kN,readJsonConfigFile:()=>rse,readJsonOrUndefined:()=>qj,reduceEachLeadingCommentRange:()=>Fne,reduceEachTrailingCommentRange:()=>zne,reduceLeft:()=>nu,reduceLeftIterator:()=>uEe,reducePathComponents:()=>iT,refactor:()=>T1,regExpEscape:()=>_Se,relativeComplement:()=>ene,removeAllComments:()=>Ak,removeEmitHelper:()=>HSe,removeExtension:()=>ck,removeFileExtension:()=>Su,removeIgnoredPath:()=>uz,removeMinAndVersionNumbers:()=>UG,removeOptionality:()=>dde,removePrefix:()=>jC,removeSuffix:()=>Ex,removeTrailingDirectorySeparator:()=>Yb,repeatString:()=>nO,replaceElement:()=>zG,replaceFirstStar:()=>zI,resolutionExtensionIsTSOrJson:()=>VN,resolveConfigFileProjectName:()=>UJ,resolveJSModule:()=>Ise,resolveLibrary:()=>E3,resolveModuleName:()=>HR,resolveModuleNameFromCache:()=>HAe,resolvePackageNameToPackageJson:()=>eK,resolvePath:()=>Iv,resolveProjectReferencePath:()=>ZR,resolveTripleslashReference:()=>ez,resolveTypeReferenceDirective:()=>Ese,resolvingEmptyArray:()=>H6,restHelper:()=>f4,returnFalse:()=>jm,returnNoopFileWatcher:()=>iD,returnTrue:()=>Ty,returnUndefined:()=>qb,returnsPromise:()=>LX,runInitializersHelper:()=>l4,sameFlatMap:()=>Yte,sameMap:()=>Nc,sameMapping:()=>MIe,scanShebangTrivia:()=>pV,scanTokenAtPosition:()=>eie,scanner:()=>Xd,screenStartingMessageCodes:()=>vz,semanticDiagnosticsOptionDeclarations:()=>KH,serializeCompilerOptions:()=>a3,server:()=>Zke,servicesVersion:()=>upe,setCommentRange:()=>ic,setConfigFileInOptions:()=>VH,setConstantValue:()=>Qoe,setEachParent:()=>bR,setEmitFlags:()=>lr,setFunctionNameHelper:()=>b4,setGetSourceFileAsHashVersioned:()=>yz,setIdentifierAutoGenerate:()=>Rk,setIdentifierGeneratedImportReference:()=>nae,setIdentifierTypeArguments:()=>zy,setInternalEmitFlags:()=>Ik,setLocalizedDiagnosticMessages:()=>uoe,setModuleDefaultHelper:()=>T4,setNodeFlags:()=>Noe,setObjectAllocator:()=>doe,setOriginalNode:()=>Rr,setParent:()=>ja,setParentRecursive:()=>Gv,setPrivateIdentifier:()=>jT,setSnippetElement:()=>UU,setSourceMapRange:()=>Da,setStackTraceLimit:()=>OEe,setStartsOnNewLine:()=>t4,setSyntheticLeadingComments:()=>hE,setSyntheticTrailingComments:()=>GI,setSys:()=>GEe,setSysLog:()=>Dne,setTextRange:()=>at,setTextRangeEnd:()=>vR,setTextRangePos:()=>KN,setTextRangePosEnd:()=>mh,setTextRangePosWidth:()=>JN,setTokenSourceMapRange:()=>Xoe,setTypeNode:()=>eae,setUILocale:()=>cne,setValueDeclaration:()=>O2,shouldAllowImportingTsExtension:()=>qR,shouldPreserveConstEnums:()=>G0,shouldUseUriStyleNodeCoreModules:()=>m7,showModuleSpecifier:()=>ooe,signatureHasLiteralTypes:()=>vK,signatureHasRestParameter:()=>Jd,signatureToDisplayParts:()=>Zq,single:()=>FG,singleElementArray:()=>pI,singleIterator:()=>Qte,singleOrMany:()=>ih,singleOrUndefined:()=>rh,skipAlias:()=>gd,skipAssertions:()=>uTe,skipConstraint:()=>Bq,skipOuterExpressions:()=>Yl,skipParentheses:()=>ms,skipPartiallyEmittedExpressions:()=>gm,skipTrivia:()=>Pa,skipTypeChecking:()=>UN,skipTypeParentheses:()=>j2,skipWhile:()=>_ne,sliceAfter:()=>dU,some:()=>gt,sort:()=>ZS,sortAndDeduplicate:()=>zC,sortAndDeduplicateDiagnostics:()=>Px,sourceFileAffectingCompilerOptions:()=>u3,sourceFileMayBeEmitted:()=>ET,sourceMapCommentRegExp:()=>k3,sourceMapCommentRegExpDontCareLineStart:()=>RK,spacePart:()=>kl,spanMap:()=>MG,spreadArrayHelper:()=>y4,stableSort:()=>by,startEndContainsRange:()=>xq,startEndOverlapsWithStartEnd:()=>Oz,startOnNewLine:()=>Kd,startTracing:()=>Ine,startsWith:()=>ao,startsWithDirectory:()=>cV,startsWithUnderscore:()=>fX,startsWithUseStrict:()=>wae,stringContainsAt:()=>Vde,stringToToken:()=>y0,stripQuotes:()=>Yf,supportedDeclarationExtensions:()=>yk,supportedJSExtensions:()=>MU,supportedJSExtensionsFlat:()=>TR,supportedLocaleDirectories:()=>BV,supportedTSExtensions:()=>SR,supportedTSExtensionsFlat:()=>PU,supportedTSImplementationExtensions:()=>vk,suppressLeadingAndTrailingTrivia:()=>bp,suppressLeadingTrivia:()=>rX,suppressTrailingTrivia:()=>Pde,symbolEscapedNameNoDefault:()=>Yz,symbolName:()=>yl,symbolNameNoDefault:()=>Xz,symbolPart:()=>Ede,symbolToDisplayParts:()=>tM,syntaxMayBeASICandidate:()=>vX,syntaxRequiresTrailingSemicolonOrASI:()=>o7,sys:()=>md,sysLog:()=>LL,tagNamesAreEquivalent:()=>EE,takeWhile:()=>AW,targetOptionDeclaration:()=>sw,templateObjectHelper:()=>h4,testFormatSettings:()=>Yce,textChangeRangeIsUnchanged:()=>Kne,textChangeRangeNewSpan:()=>ZC,textChanges:()=>pr,textOrKeywordPart:()=>$q,textPart:()=>sf,textRangeContainsPositionInclusive:()=>JL,textSpanContainsPosition:()=>_V,textSpanContainsTextSpan:()=>Vne,textSpanEnd:()=>Jl,textSpanIntersection:()=>Hne,textSpanIntersectsWith:()=>ZW,textSpanIntersectsWithPosition:()=>Une,textSpanIntersectsWithTextSpan:()=>l0e,textSpanIsEmpty:()=>Gne,textSpanOverlap:()=>jne,textSpanOverlapsWith:()=>s0e,textSpansEqual:()=>dD,textToKeywordObj:()=>HL,timestamp:()=>Ks,toArray:()=>dI,toBuilderFileEmit:()=>cce,toBuilderStateFileInfoForMultiEmit:()=>lce,toEditorSettings:()=>CO,toFileNameLowerCase:()=>oh,toLowerCase:()=>one,toPath:()=>tl,toProgramEmitPending:()=>dce,tokenIsIdentifierOrKeyword:()=>iu,tokenIsIdentifierOrKeywordOrGreaterThan:()=>One,tokenToString:()=>ca,trace:()=>yo,tracing:()=>rr,tracingEnabled:()=>CL,transform:()=>eCe,transformClassFields:()=>gle,transformDeclarations:()=>VK,transformECMAScriptModule:()=>GK,transformES2015:()=>Mle,transformES2016:()=>Ple,transformES2017:()=>Ele,transformES2018:()=>Sle,transformES2019:()=>Tle,transformES2020:()=>Ale,transformES2021:()=>Ile,transformES5:()=>Lle,transformESDecorators:()=>ble,transformESNext:()=>xle,transformGenerators:()=>kle,transformJsx:()=>Nle,transformLegacyDecorators:()=>vle,transformModule:()=>BK,transformNamedEvaluation:()=>yp,transformNodeModule:()=>Ole,transformNodes:()=>Iw,transformSystemModule:()=>wle,transformTypeScript:()=>hle,transpile:()=>dRe,transpileModule:()=>sue,transpileOptionValueCompilerOptions:()=>YH,tryAddToSet:()=>Jb,tryAndIgnoreErrors:()=>c7,tryCast:()=>ri,tryDirectoryExists:()=>l7,tryExtractTSExtension:()=>_6,tryFileExists:()=>uO,tryGetClassExtendingExpressionWithTypeArguments:()=>Uj,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>Hj,tryGetDirectories:()=>s7,tryGetExtensionFromPath:()=>Og,tryGetImportFromModuleSpecifier:()=>W2,tryGetJSDocSatisfiesTypeNode:()=>V6,tryGetModuleNameFromFile:()=>Hk,tryGetModuleSpecifierFromDeclaration:()=>Zx,tryGetNativePerformanceHooks:()=>Ene,tryGetPropertyAccessOrIdentifierToString:()=>nk,tryGetPropertyNameOfBindingOrAssignmentElement:()=>Z4,tryGetSourceMappingURL:()=>Qse,tryGetTextOfPropertyName:()=>fN,tryIOAndConsumeErrors:()=>d7,tryParseJson:()=>h6,tryParsePattern:()=>yR,tryParsePatterns:()=>w6,tryParseRawSourceMap:()=>IK,tryReadDirectory:()=>aX,tryReadFile:()=>SP,tryRemoveDirectoryPrefix:()=>aU,tryRemoveExtension:()=>Ioe,tryRemovePrefix:()=>JG,tryRemoveSuffix:()=>une,typeAcquisitionDeclarations:()=>lw,typeAliasNamePart:()=>Ade,typeDirectiveIsEqualTo:()=>Fre,typeKeywords:()=>g7,typeParameterNamePart:()=>Ide,typeToDisplayParts:()=>aO,unchangedPollThresholds:()=>kL,unchangedTextChangeRange:()=>u2,unescapeLeadingUnderscores:()=>Vi,unmangleScopedPackageName:()=>gw,unorderedRemoveItem:()=>uI,unorderedRemoveItemAt:()=>HG,unreachableCodeIsError:()=>moe,unusedLabelIsError:()=>_oe,unwrapInnermostStatementOfLabel:()=>sj,updateErrorForNoInputFiles:()=>s3,updateLanguageServiceSourceFile:()=>hY,updateMissingFilePathsWatch:()=>QK,updateResolutionField:()=>jR,updateSharedExtendedConfigFileWatcher:()=>Q3,updateSourceFile:()=>DH,updateWatchingWildcardDirectories:()=>Dw,usesExtensionsOnImports:()=>Soe,usingSingleLineStringWriter:()=>dN,utf16EncodeAsString:()=>Nx,validateLocaleAndSetLanguage:()=>d0e,valuesHelper:()=>E4,version:()=>qp,versionMajorMinor:()=>g_,visitArray:()=>bw,visitCommaListElements:()=>Ew,visitEachChild:()=>Sn,visitFunctionBody:()=>rf,visitIterationBody:()=>Au,visitLexicalEnvironment:()=>TK,visitNode:()=>Qe,visitNodes:()=>zn,visitParameterList:()=>Il,walkUpBindingElementsAndPatterns:()=>Mx,walkUpLexicalEnvironments:()=>ole,walkUpOuterExpressions:()=>Oae,walkUpParenthesizedExpressions:()=>My,walkUpParenthesizedTypes:()=>V2,walkUpParenthesizedTypesAndGetParentAndChild:()=>Tie,whitespaceOrMapCommentRegExp:()=>w3,writeCommentRange:()=>pR,writeFile:()=>RN,writeFileEnsuringDirectories:()=>zj,zipWith:()=>RG});var ob=bt({"src/server/_namespaces/ts.ts"(){"use strict";Zo(),Vw(),ai(),LQ(),iA()}}),twe={};Ra(twe,{ActionInvalidate:()=>Bw,ActionPackageInstalled:()=>Gw,ActionSet:()=>zw,ActionWatchTypingLocations:()=>JP,Arguments:()=>$J,AutoImportProviderProject:()=>JQ,AuxiliaryProject:()=>HQ,CharRangeSection:()=>aZ,CloseFileWatcherEvent:()=>zB,CommandNames:()=>Fhe,ConfigFileDiagEvent:()=>kB,ConfiguredProject:()=>qQ,CreateDirectoryWatcherEvent:()=>FB,CreateFileWatcherEvent:()=>WB,Errors:()=>$y,EventBeginInstallTypes:()=>xz,EventEndInstallTypes:()=>Rz,EventInitializationFailed:()=>YJ,EventTypesRegistry:()=>Iz,ExternalProject:()=>RB,GcTimer:()=>FQ,InferredProject:()=>UQ,LargeFileReferencedEvent:()=>LB,LineIndex:()=>EM,LineLeaf:()=>l8,LineNode:()=>k1,LogLevel:()=>kQ,Msg:()=>wQ,OpenFileInfoTelemetryEvent:()=>QQ,Project:()=>rA,ProjectInfoTelemetryEvent:()=>OB,ProjectKind:()=>vM,ProjectLanguageServiceStateEvent:()=>wB,ProjectLoadingFinishEvent:()=>MB,ProjectLoadingStartEvent:()=>PB,ProjectReferenceProjectLoadKind:()=>tZ,ProjectService:()=>nZ,ProjectsUpdatedInBackgroundEvent:()=>o8,ScriptInfo:()=>GQ,ScriptVersionCache:()=>jB,Session:()=>Bhe,TextStorage:()=>BQ,ThrottledOperations:()=>WQ,TypingsCache:()=>VQ,TypingsInstallerAdapter:()=>jhe,allFilesAreJsOrDts:()=>hhe,allRootFilesAreJsOrDts:()=>_he,asNormalizedPath:()=>Dke,convertCompilerOptions:()=>DB,convertFormatOptions:()=>PD,convertScriptKindName:()=>YQ,convertTypeAcquisition:()=>vhe,convertUserPreferences:()=>bhe,convertWatchOptions:()=>i8,countEachFileTypes:()=>n8,createInstallTypingsRequest:()=>q_e,createModuleSpecifierCache:()=>Nhe,createNormalizedPathMap:()=>Cke,createPackageJsonCache:()=>Phe,createSortedArray:()=>Z_e,emptyArray:()=>_c,findArgument:()=>hxe,forEachResolvedProjectReferenceProject:()=>MD,formatDiagnosticToProtocol:()=>s8,formatMessage:()=>Mhe,getBaseConfigFileName:()=>OQ,getLocationInNewDocument:()=>Ohe,hasArgument:()=>_xe,hasNoTypeScriptSource:()=>ghe,indent:()=>KP,isBackgroundProject:()=>r8,isConfigFile:()=>xhe,isConfiguredProject:()=>LE,isDynamicFileName:()=>t8,isExternalProject:()=>jQ,isInferredProject:()=>ND,isInferredProjectName:()=>X_e,makeAutoImportProviderProjectName:()=>$_e,makeAuxiliaryProjectName:()=>Q_e,makeInferredProjectName:()=>Y_e,maxFileSize:()=>NB,maxProgramSizeForNonTsFiles:()=>CB,normalizedPathToPath:()=>e8,nowString:()=>gxe,nullCancellationToken:()=>Whe,nullTypingsInstaller:()=>xB,projectContainsInfoDirectly:()=>M1,protocol:()=>mhe,removeSorted:()=>Nke,stringifyIndented:()=>RE,toEvent:()=>Lhe,toNormalizedPath:()=>dl,tryConvertScriptKindName:()=>XQ,typingsInstaller:()=>K_e,updateProjectIfDirty:()=>zp});var Lot=bt({"src/typescript/_namespaces/ts.server.ts"(){"use strict";Dz(),iA()}}),nwe={};Ra(nwe,{ANONYMOUS:()=>y7,AccessFlags:()=>I9,AssertionLevel:()=>YG,AssignmentDeclarationKind:()=>k9,AssignmentKind:()=>SU,Associativity:()=>AU,BreakpointResolver:()=>TY,BuilderFileEmit:()=>RJ,BuilderProgramKind:()=>DJ,BuilderState:()=>xm,BundleFileSectionKind:()=>Q9,CallHierarchy:()=>A1,CharacterCodes:()=>H9,CheckFlags:()=>b9,CheckMode:()=>P3,ClassificationType:()=>hq,ClassificationTypeNames:()=>_q,CommentDirectiveType:()=>o9,Comparison:()=>xG,CompletionInfoFlags:()=>lq,CompletionTriggerKind:()=>rq,Completions:()=>C1,ContainerFlags:()=>hK,ContextFlags:()=>u9,Debug:()=>R,DiagnosticCategory:()=>PL,Diagnostics:()=>f,DocumentHighlights:()=>E7,ElementFlags:()=>A9,EmitFlags:()=>GW,EmitHint:()=>X9,EmitOnly:()=>s9,EndOfLineState:()=>uq,EnumKind:()=>v9,ExitStatus:()=>l9,ExportKind:()=>AX,Extension:()=>K9,ExternalEmitHelpers:()=>q9,FileIncludeKind:()=>MW,FilePreprocessingDiagnosticsKind:()=>a9,FileSystemEntryKind:()=>iV,FileWatcherEventKind:()=>rV,FindAllReferences:()=>Ls,FlattenLevel:()=>kK,FlowFlags:()=>NL,ForegroundColorEscapeSequences:()=>vJ,FunctionFlags:()=>TU,GeneratedIdentifierFlags:()=>PW,GetLiteralTextFlags:()=>vU,GoToDefinition:()=>ID,HighlightSpanKind:()=>oq,IdentifierNameMap:()=>f1,IdentifierNameMultiMap:()=>LK,ImportKind:()=>TX,ImportsNotUsedAsValues:()=>B9,IndentStyle:()=>aq,IndexFlags:()=>x9,IndexKind:()=>C9,InferenceFlags:()=>M9,InferencePriority:()=>P9,InlayHintKind:()=>iq,InlayHints:()=>_Q,InternalEmitFlags:()=>J9,InternalSymbolName:()=>E9,InvalidatedProjectKind:()=>XJ,JSDocParsingMode:()=>tV,JsDoc:()=>ME,JsTyping:()=>O_,JsxEmit:()=>z9,JsxFlags:()=>r9,JsxReferenceKind:()=>R9,LanguageServiceMode:()=>eq,LanguageVariant:()=>j9,LexicalEnvironmentFlags:()=>$9,ListFormat:()=>Z9,LogLevel:()=>QG,MemberOverrideStatus:()=>c9,ModifierFlags:()=>CW,ModuleDetectionKind:()=>w9,ModuleInstanceState:()=>_K,ModuleKind:()=>HC,ModuleResolutionKind:()=>Rx,ModuleSpecifierEnding:()=>LU,NavigateTo:()=>due,NavigationBar:()=>bue,NewLineKind:()=>G9,NodeBuilderFlags:()=>p9,NodeCheckFlags:()=>S9,NodeFactoryFlags:()=>GU,NodeFlags:()=>DW,NodeResolutionFeatures:()=>pK,ObjectFlags:()=>OW,OperationCanceledException:()=>xx,OperatorPrecedence:()=>IU,OrganizeImports:()=>Rm,OrganizeImportsMode:()=>nq,OuterExpressionKinds:()=>Y9,OutliningElementsCollector:()=>vQ,OutliningSpanKind:()=>cq,OutputFileType:()=>dq,PackageJsonAutoImportPreference:()=>ZJ,PackageJsonDependencyGroup:()=>QJ,PatternMatchKind:()=>S7,PollingInterval:()=>VW,PollingWatchKind:()=>F9,PragmaKindFlags:()=>eV,PrivateIdentifierKind:()=>qU,ProcessLevel:()=>FK,ProgramUpdateLevel:()=>eJ,QuotePreference:()=>gX,RelationComparisonResult:()=>NW,Rename:()=>vB,ScriptElementKind:()=>fq,ScriptElementKindModifier:()=>mq,ScriptKind:()=>FW,ScriptSnapshot:()=>Nz,ScriptTarget:()=>V9,SemanticClassificationFormat:()=>tq,SemanticMeaning:()=>hX,SemicolonPreference:()=>sq,SignatureCheckMode:()=>M3,SignatureFlags:()=>WW,SignatureHelp:()=>KO,SignatureKind:()=>D9,SmartSelectionRange:()=>SQ,SnippetKind:()=>BW,SortKind:()=>XG,StructureIsReused:()=>LW,SymbolAccessibility:()=>_9,SymbolDisplay:()=>Yy,SymbolDisplayPartKind:()=>jw,SymbolFlags:()=>kW,SymbolFormatFlags:()=>m9,SyntaxKind:()=>RW,SyntheticSymbolKind:()=>h9,Ternary:()=>L9,ThrottledCancellationToken:()=>SY,TokenClass:()=>pq,TokenFlags:()=>i9,TransformFlags:()=>zW,TypeFacts:()=>N3,TypeFlags:()=>wW,TypeFormatFlags:()=>f9,TypeMapKind:()=>N9,TypePredicateKind:()=>g9,TypeReferenceSerializationKind:()=>y9,UnionReduction:()=>d9,UpToDateStatusType:()=>HJ,VarianceFlags:()=>T9,Version:()=>fm,VersionRange:()=>RL,WatchDirectoryFlags:()=>U9,WatchDirectoryKind:()=>W9,WatchFileKind:()=>O9,WatchLogLevel:()=>tJ,WatchType:()=>Lc,accessPrivateIdentifier:()=>sle,addDisposableResourceHelper:()=>C4,addEmitFlags:()=>D_,addEmitHelper:()=>VI,addEmitHelpers:()=>Wg,addInternalEmitFlags:()=>BI,addNodeFactoryPatcher:()=>FSe,addObjectAllocatorPatcher:()=>coe,addRange:()=>Hr,addRelatedInfo:()=>Ma,addSyntheticLeadingComment:()=>iP,addSyntheticTrailingComment:()=>n4,addToSeen:()=>Em,advancedAsyncSuperHelper:()=>Nk,affectsDeclarationPathOptionDeclarations:()=>qH,affectsEmitOptionDeclarations:()=>JH,allKeysStartWithDot:()=>T3,altDirectorySeparator:()=>zL,and:()=>EW,append:()=>Tn,appendIfUnique:()=>Ig,arrayFrom:()=>Oo,arrayIsEqualTo:()=>Vm,arrayIsHomogeneous:()=>Coe,arrayIsSorted:()=>fW,arrayOf:()=>nne,arrayReverseIterator:()=>wG,arrayToMap:()=>h0,arrayToMultiMap:()=>AL,arrayToNumericMap:()=>ine,arraysEqual:()=>EL,assertType:()=>yEe,assign:()=>vx,assignHelper:()=>c4,asyncDelegator:()=>u4,asyncGeneratorHelper:()=>d4,asyncSuperHelper:()=>Ck,asyncValues:()=>p4,attachFileToDiagnostics:()=>wI,awaitHelper:()=>jI,awaiterHelper:()=>m4,base64decode:()=>Qie,base64encode:()=>$ie,binarySearch:()=>Ey,binarySearchKey:()=>lI,bindSourceFile:()=>Ose,breakIntoCharacterSpans:()=>rue,breakIntoWordSpans:()=>iue,buildLinkParts:()=>Rde,buildOpts:()=>p3,buildOverload:()=>Ske,bundlerModuleNameResolver:()=>xse,canBeConvertedToAsync:()=>wX,canHaveDecorators:()=>GT,canHaveExportModifier:()=>uk,canHaveFlowNode:()=>z2,canHaveIllegalDecorators:()=>TH,canHaveIllegalModifiers:()=>Bae,canHaveIllegalType:()=>fTe,canHaveIllegalTypeParameters:()=>zae,canHaveJSDoc:()=>B2,canHaveLocals:()=>ch,canHaveModifiers:()=>Am,canHaveSymbol:()=>b_,canJsonReportNoInputFiles:()=>TP,canProduceDiagnostics:()=>H3,canUsePropertyAccess:()=>_U,canWatchAffectingLocation:()=>mce,canWatchAtTypes:()=>fce,canWatchDirectoryOrFile:()=>pz,cartesianProduct:()=>mne,cast:()=>ta,chainBundle:()=>Im,chainDiagnosticMessages:()=>Fo,changeAnyExtension:()=>WL,changeCompilerHostLikeToUseCache:()=>Pw,changeExtension:()=>fE,changeFullExtension:()=>Lne,changesAffectModuleResolution:()=>yF,changesAffectingProgramStructure:()=>wre,childIsDecorated:()=>hN,classElementOrClassElementParameterIsDecorated:()=>lj,classHasClassThisAssignment:()=>wK,classHasDeclaredOrExplicitlyAssignedName:()=>OK,classHasExplicitlyAssignedName:()=>V3,classOrConstructorParameterIsDecorated:()=>Py,classPrivateFieldGetHelper:()=>x4,classPrivateFieldInHelper:()=>D4,classPrivateFieldSetHelper:()=>R4,classicNameResolver:()=>Mse,classifier:()=>_pe,cleanExtendedConfigCache:()=>Z3,clear:()=>Vh,clearMap:()=>$u,clearSharedExtendedConfigFileWatcher:()=>$K,climbPastPropertyAccess:()=>Mz,climbPastPropertyOrElementAccess:()=>ede,clone:()=>BG,cloneCompilerOptions:()=>wq,closeFileWatcher:()=>Km,closeFileWatcherOf:()=>Rf,codefix:()=>wd,collapseTextChangeRangesAcrossMultipleVersions:()=>Jne,collectExternalModuleInfo:()=>CK,combine:()=>yx,combinePaths:()=>$r,commentPragmas:()=>ML,commonOptionsWithBuild:()=>aw,commonPackageFolders:()=>DU,compact:()=>TL,compareBooleans:()=>Ev,compareDataObjects:()=>Qj,compareDiagnostics:()=>zN,compareDiagnosticsSkipRelatedInformation:()=>T6,compareEmitHelpers:()=>oae,compareNumberOfDirectorySeparators:()=>lk,comparePaths:()=>xg,comparePathsCaseInsensitive:()=>HEe,comparePathsCaseSensitive:()=>UEe,comparePatternKeys:()=>dK,compareProperties:()=>dne,compareStringsCaseInsensitive:()=>vW,compareStringsCaseInsensitiveEslintCompatible:()=>sne,compareStringsCaseSensitive:()=>Gd,compareStringsCaseSensitiveUI:()=>xL,compareTextSpans:()=>yW,compareValues:()=>Zs,compileOnSaveCommandLineOption:()=>iw,compilerOptionsAffectDeclarationPath:()=>voe,compilerOptionsAffectEmit:()=>yoe,compilerOptionsAffectSemanticDiagnostics:()=>goe,compilerOptionsDidYouMeanDiagnostics:()=>cw,compilerOptionsIndicateEsModules:()=>Gq,compose:()=>hEe,computeCommonSourceDirectoryOfFilenames:()=>Kle,computeLineAndCharacterOfPosition:()=>Cx,computeLineOfPosition:()=>XC,computeLineStarts:()=>hI,computePositionOfLineAndCharacter:()=>XW,computeSignature:()=>JT,computeSignatureWithDiagnostics:()=>TJ,computeSuggestionDiagnostics:()=>MX,computedOptions:()=>fc,concatenate:()=>bo,concatenateDiagnosticMessageChains:()=>foe,consumesNodeCoreModules:()=>u7,contains:()=>zo,containsIgnoredPath:()=>qN,containsObjectRestOrSpread:()=>Xk,containsParseError:()=>Gx,containsPath:()=>mm,convertCompilerOptionsForTelemetry:()=>cse,convertCompilerOptionsFromJson:()=>hAe,convertJsonOption:()=>VT,convertToBase64:()=>Yie,convertToJson:()=>tw,convertToObject:()=>ise,convertToOptionsWithAbsolutePaths:()=>GH,convertToRelativePath:()=>qC,convertToTSConfig:()=>nAe,convertTypeAcquisitionFromJson:()=>gAe,copyComments:()=>$T,copyEntries:()=>vF,copyLeadingComments:()=>pD,copyProperties:()=>GG,copyTrailingAsLeadingComments:()=>cO,copyTrailingComments:()=>nM,couldStartTrivia:()=>Wne,countWhere:()=>vv,createAbstractBuilder:()=>T1e,createAccessorPropertyBackingField:()=>IH,createAccessorPropertyGetRedirector:()=>qae,createAccessorPropertySetRedirector:()=>Xae,createBaseNodeFactory:()=>joe,createBinaryExpressionTrampoline:()=>e3,createBindingHelper:()=>IR,createBuildInfo:()=>xw,createBuilderProgram:()=>AJ,createBuilderProgramUsingProgramBuildInfo:()=>uce,createBuilderStatusReporter:()=>Dce,createCacheWithRedirects:()=>nK,createCacheableExportInfoMap:()=>bX,createCachedDirectoryStructureHost:()=>$3,createClassNamedEvaluationHelperBlock:()=>fle,createClassThisAssignmentBlock:()=>ule,createClassifier:()=>Bxe,createCommentDirectivesMap:()=>Gre,createCompilerDiagnostic:()=>jl,createCompilerDiagnosticForInvalidCustomType:()=>Zae,createCompilerDiagnosticFromMessageChain:()=>S6,createCompilerHost:()=>Jle,createCompilerHostFromProgramHost:()=>GJ,createCompilerHostWorker:()=>iJ,createDetachedDiagnostic:()=>gR,createDiagnosticCollection:()=>lR,createDiagnosticForFileFromMessageChain:()=>rj,createDiagnosticForNode:()=>Pr,createDiagnosticForNodeArray:()=>Ux,createDiagnosticForNodeArrayFromMessageChain:()=>y2,createDiagnosticForNodeFromMessageChain:()=>Pg,createDiagnosticForNodeInSourceFile:()=>Kf,createDiagnosticForRange:()=>Zre,createDiagnosticMessageChainFromDiagnostic:()=>Qre,createDiagnosticReporter:()=>Ow,createDocumentPositionMapper:()=>tle,createDocumentRegistry:()=>Kde,createDocumentRegistryInternal:()=>RX,createEmitAndSemanticDiagnosticsBuilderProgram:()=>CJ,createEmitHelperFactory:()=>iae,createEmptyExports:()=>Gk,createExpressionForJsxElement:()=>Mae,createExpressionForJsxFragment:()=>Lae,createExpressionForObjectLiteralElementLike:()=>kae,createExpressionForPropertyName:()=>gH,createExpressionFromEntityName:()=>Vk,createExternalHelpersImportDeclarationIfNeeded:()=>bH,createFileDiagnostic:()=>Yc,createFileDiagnosticFromMessageChain:()=>DF,createForOfBindingStatement:()=>hH,createGetCanonicalFileName:()=>Cd,createGetSourceFile:()=>nJ,createGetSymbolAccessibilityDiagnosticForNode:()=>Vy,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Wle,createGetSymbolWalker:()=>Wse,createIncrementalCompilerHost:()=>jJ,createIncrementalProgram:()=>xce,createInputFiles:()=>BSe,createInputFilesWithFilePaths:()=>zU,createInputFilesWithFileTexts:()=>BU,createJsxFactoryExpression:()=>_H,createLanguageService:()=>cpe,createLanguageServiceSourceFile:()=>K7,createMemberAccessForPropertyName:()=>BT,createModeAwareCache:()=>u1,createModeAwareCacheKey:()=>DP,createModuleNotFoundChain:()=>bF,createModuleResolutionCache:()=>UR,createModuleResolutionLoader:()=>dJ,createModuleResolutionLoaderUsingGlobalCache:()=>yce,createModuleSpecifierResolutionHost:()=>YT,createMultiMap:()=>Xp,createNodeConverters:()=>Hoe,createNodeFactory:()=>Ek,createOptionNameMap:()=>r3,createOverload:()=>MQ,createPackageJsonImportFilter:()=>oM,createPackageJsonInfo:()=>lX,createParenthesizerRules:()=>Uoe,createPatternMatcher:()=>$de,createPrependNodes:()=>gJ,createPrinter:()=>IE,createPrinterWithDefaults:()=>XK,createPrinterWithRemoveComments:()=>iS,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>YK,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>Rw,createProgram:()=>iz,createProgramHost:()=>VJ,createPropertyNameNodeForIdentifierOrLiteral:()=>B6,createQueue:()=>IL,createRange:()=>Ef,createRedirectedBuilderProgram:()=>xJ,createResolutionCache:()=>PJ,createRuntimeTypeSerializer:()=>yle,createScanner:()=>Ry,createSemanticDiagnosticsBuilderProgram:()=>S1e,createSet:()=>VG,createSolutionBuilder:()=>z1e,createSolutionBuilderHost:()=>W1e,createSolutionBuilderWithWatch:()=>B1e,createSolutionBuilderWithWatchHost:()=>F1e,createSortedArray:()=>kG,createSourceFile:()=>$k,createSourceMapGenerator:()=>$se,createSourceMapSource:()=>GSe,createSuperAccessVariableStatement:()=>U3,createSymbolTable:()=>oa,createSymlinkCache:()=>oU,createSystemWatchFunctions:()=>Cne,createTextChange:()=>eO,createTextChangeFromStartLength:()=>Kz,createTextChangeRange:()=>XL,createTextRangeFromNode:()=>Fq,createTextRangeFromSpan:()=>Hz,createTextSpan:()=>_d,createTextSpanFromBounds:()=>dc,createTextSpanFromNode:()=>xu,createTextSpanFromRange:()=>tb,createTextSpanFromStringLiteralLikeContent:()=>Wq,createTextWriter:()=>Q2,createTokenRange:()=>Xj,createTypeChecker:()=>Hse,createTypeReferenceDirectiveResolutionCache:()=>b3,createTypeReferenceResolutionLoader:()=>tz,createUnparsedSourceFile:()=>FU,createWatchCompilerHost:()=>k1e,createWatchCompilerHostOfConfigFile:()=>Tce,createWatchCompilerHostOfFilesAndCompilerOptions:()=>Ace,createWatchFactory:()=>BJ,createWatchHost:()=>zJ,createWatchProgram:()=>w1e,createWatchStatusReporter:()=>vce,createWriteFileMeasuringIO:()=>rJ,declarationNameToString:()=>As,decodeMappings:()=>xK,decodedTextSpanIntersectsWith:()=>qL,decorateHelper:()=>i4,deduplicate:()=>_0,defaultIncludeSpec:()=>_3,defaultInitCompilerOptions:()=>f3,defaultMaximumTruncationLength:()=>_k,detectSortCaseSensitivity:()=>BC,diagnosticCategoryName:()=>rT,diagnosticToString:()=>ZT,directoryProbablyExists:()=>Hm,directorySeparator:()=>nl,displayPart:()=>ep,displayPartsToString:()=>NO,disposeEmitNodes:()=>VU,disposeResourcesHelper:()=>N4,documentSpansEqual:()=>Kq,dumpTracingLegend:()=>xne,elementAt:()=>Iy,elideNodes:()=>Jae,emitComments:()=>zie,emitDetachedComments:()=>Bie,emitFiles:()=>q3,emitFilesAndReportErrors:()=>hz,emitFilesAndReportErrorsAndGetExitStatus:()=>Sce,emitModuleKindIsNonNodeESM:()=>A6,emitNewLineBeforeLeadingCommentOfPosition:()=>Fie,emitNewLineBeforeLeadingComments:()=>Oie,emitNewLineBeforeLeadingCommentsOfPosition:()=>Wie,emitSkippedWithNoDiagnostics:()=>cz,emitUsingBuildInfo:()=>Vle,emptyArray:()=>Xe,emptyFileSystemEntries:()=>Q6,emptyMap:()=>IW,emptyOptions:()=>Cf,emptySet:()=>hne,endsWith:()=>El,ensurePathIsNonModuleName:()=>g0,ensureScriptKind:()=>L6,ensureTrailingDirectorySeparator:()=>Fc,entityNameToString:()=>up,enumerateInsertsAndDeletes:()=>TW,equalOwnProperties:()=>rne,equateStringsCaseInsensitive:()=>Xb,equateStringsCaseSensitive:()=>eT,equateValues:()=>Ay,esDecorateHelper:()=>s4,escapeJsxAttributeString:()=>wj,escapeLeadingUnderscores:()=>pl,escapeNonAsciiString:()=>$2,escapeSnippetText:()=>B0,escapeString:()=>Zh,escapeTemplateSubstitution:()=>Lj,every:()=>oo,expandPreOrPostfixIncrementOrDecrementExpression:()=>q4,explainFiles:()=>kJ,explainIfFileIsRedirectAndImpliedFormat:()=>wJ,exportAssignmentIsAlias:()=>iR,exportStarHelper:()=>I4,expressionResultIsUnused:()=>Poe,extend:()=>gW,extendsHelper:()=>_4,extensionFromPath:()=>jN,extensionIsTS:()=>O6,extensionsNotSupportingExtensionlessResolution:()=>bk,externalHelpersModuleNameText:()=>Vv,factory:()=>L,fileExtensionIs:()=>Sl,fileExtensionIsOneOf:()=>bc,fileIncludeReasonToDiagnostics:()=>FJ,fileShouldUseJavaScriptRequire:()=>_X,filter:()=>jr,filterMutate:()=>CG,filterSemanticDiagnostics:()=>oz,find:()=>Vr,findAncestor:()=>Fn,findBestPatternMatch:()=>KG,findChildOfKind:()=>hs,findComputedPropertyNameCacheAssignment:()=>t3,findConfigFile:()=>Hle,findContainingList:()=>Wz,findDiagnosticForNode:()=>Fde,findFirstNonJsxWhitespaceToken:()=>ode,findIndex:()=>Kl,findLast:()=>sI,findLastIndex:()=>pW,findListItemInfo:()=>ide,findMap:()=>pEe,findModifier:()=>cD,findNextToken:()=>sS,findPackageJson:()=>Ode,findPackageJsons:()=>sX,findPrecedingMatchingToken:()=>jz,findPrecedingToken:()=>Tc,findSuperStatementIndexPath:()=>z3,findTokenOnLeftOfPosition:()=>Bz,findUseStrictPrologue:()=>vH,first:()=>Va,firstDefined:()=>Wl,firstDefinedIterator:()=>bL,firstIterator:()=>WG,firstOrOnly:()=>pX,firstOrUndefined:()=>Jc,firstOrUndefinedIterator:()=>mW,fixupCompilerOptions:()=>WX,flatMap:()=>va,flatMapIterator:()=>NG,flatMapToMutable:()=>OC,flatten:()=>pm,flattenCommaList:()=>Yae,flattenDestructuringAssignment:()=>UT,flattenDestructuringBinding:()=>rS,flattenDiagnosticMessageText:()=>k_,forEach:()=>gn,forEachAncestor:()=>Ore,forEachAncestorDirectory:()=>hm,forEachChild:()=>Bo,forEachChildRecursively:()=>EP,forEachEmittedFile:()=>HK,forEachEnclosingBlockScopeContainer:()=>Xre,forEachEntry:()=>zc,forEachExternalModuleToImportFrom:()=>SX,forEachImportClauseDeclaration:()=>$F,forEachKey:()=>uh,forEachLeadingCommentRange:()=>jL,forEachNameInAccessChainWalkingLeft:()=>soe,forEachPropertyAssignment:()=>qx,forEachResolvedProjectReference:()=>pJ,forEachReturnStatement:()=>x0,forEachRight:()=>qte,forEachTrailingCommentRange:()=>UL,forEachTsConfigPropArray:()=>S2,forEachUnique:()=>qq,forEachYieldExpression:()=>tie,forSomeAncestorDirectory:()=>cSe,formatColorAndReset:()=>oS,formatDiagnostic:()=>oJ,formatDiagnostics:()=>r1e,formatDiagnosticsWithColorAndContext:()=>qle,formatGeneratedName:()=>bE,formatGeneratedNamePart:()=>zR,formatLocation:()=>aJ,formatMessage:()=>nU,formatStringFromArgs:()=>ng,formatting:()=>kc,fullTripleSlashAMDReferencePathRegEx:()=>EU,fullTripleSlashReferencePathRegEx:()=>bU,generateDjb2Hash:()=>KC,generateTSConfig:()=>sAe,generatorHelper:()=>S4,getAdjustedReferenceLocation:()=>Cq,getAdjustedRenameLocation:()=>zz,getAliasDeclarationFromName:()=>Sj,getAllAccessorDeclarations:()=>AT,getAllDecoratorsOfClass:()=>PK,getAllDecoratorsOfClassElement:()=>G3,getAllJSDocTags:()=>rF,getAllJSDocTagsOfKind:()=>b0e,getAllKeys:()=>mEe,getAllProjectOutputs:()=>J3,getAllSuperTypeNodes:()=>EN,getAllUnscopedEmitHelpers:()=>JU,getAllowJSCompilerOption:()=>jv,getAllowSyntheticDefaultImports:()=>RT,getAncestor:()=>uE,getAnyExtensionFromPath:()=>Dx,getAreDeclarationMapsEnabled:()=>gk,getAssignedExpandoInitializer:()=>AI,getAssignedName:()=>tF,getAssignedNameOfIdentifier:()=>wP,getAssignmentDeclarationKind:()=>zl,getAssignmentDeclarationPropertyAccessKind:()=>k2,getAssignmentTargetKind:()=>DI,getAutomaticTypeDirectiveNames:()=>y3,getBaseFileName:()=>nc,getBinaryOperatorPrecedence:()=>Y2,getBuildInfo:()=>X3,getBuildInfoFileVersionMap:()=>IJ,getBuildInfoText:()=>Gle,getBuildOrderFromAnyBuildOrder:()=>Ez,getBuilderCreationParameters:()=>dz,getBuilderFileEmit:()=>eb,getCheckFlags:()=>Tl,getClassExtendsHeritageElement:()=>P0,getClassLikeDeclarationOfSymbol:()=>wg,getCombinedLocalAndExportSymbolFlags:()=>mR,getCombinedModifierFlags:()=>eE,getCombinedNodeFlags:()=>Dy,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>hV,getCommentRange:()=>C_,getCommonSourceDirectory:()=>VP,getCommonSourceDirectoryOfConfig:()=>YR,getCompilerOptionValue:()=>x6,getCompilerOptionsDiffValue:()=>oAe,getConditions:()=>Qv,getConfigFileParsingDiagnostics:()=>KT,getConstantValue:()=>$oe,getContainerFlags:()=>mK,getContainerNode:()=>XT,getContainingClass:()=>id,getContainingClassExcludingClassDecorators:()=>WF,getContainingClassStaticBlock:()=>die,getContainingFunction:()=>Wp,getContainingFunctionDeclaration:()=>cie,getContainingFunctionOrClassStaticBlock:()=>OF,getContainingNodeArray:()=>Moe,getContainingObjectLiteralElement:()=>PO,getContextualTypeFromParent:()=>r7,getContextualTypeFromParentOrAncestorTypeNode:()=>Fz,getCurrentTime:()=>Fw,getDeclarationDiagnostics:()=>Fle,getDeclarationEmitExtensionForPath:()=>a6,getDeclarationEmitOutputFilePath:()=>Pie,getDeclarationEmitOutputFilePathWorker:()=>o6,getDeclarationFileExtension:()=>CH,getDeclarationFromName:()=>bN,getDeclarationModifierFlagsFromSymbol:()=>Tf,getDeclarationOfKind:()=>cl,getDeclarationsOfKind:()=>Lre,getDeclaredExpandoInitializer:()=>N2,getDecorators:()=>Rv,getDefaultCompilerOptions:()=>H7,getDefaultExportInfoWorker:()=>b7,getDefaultFormatCodeSettings:()=>Cz,getDefaultLibFileName:()=>KL,getDefaultLibFilePath:()=>dpe,getDefaultLikeExportInfo:()=>v7,getDiagnosticText:()=>XTe,getDiagnosticsWithinSpan:()=>zde,getDirectoryPath:()=>oi,getDirectoryToWatchFailedLookupLocation:()=>NJ,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>hce,getDocumentPositionMapper:()=>PX,getDocumentSpansEqualityComparer:()=>Jq,getESModuleInterop:()=>_h,getEditsForFileRename:()=>qde,getEffectiveBaseTypeNode:()=>S_,getEffectiveConstraintOfTypeParameter:()=>kx,getEffectiveContainerForJSDocTemplateTag:()=>QF,getEffectiveImplementsTypeNodes:()=>oR,getEffectiveInitializer:()=>C2,getEffectiveJSDocHost:()=>dE,getEffectiveModifierFlags:()=>cu,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Uie,getEffectiveModifierFlagsNoCache:()=>Hie,getEffectiveReturnTypeNode:()=>$f,getEffectiveSetAccessorTypeAnnotationNode:()=>wie,getEffectiveTypeAnnotationNode:()=>hd,getEffectiveTypeParameterDeclarations:()=>Dv,getEffectiveTypeRoots:()=>RP,getElementOrPropertyAccessArgumentExpressionOrName:()=>YF,getElementOrPropertyAccessName:()=>Mg,getElementsOfBindingOrAssignmentPattern:()=>FR,getEmitDeclarations:()=>Af,getEmitFlags:()=>za,getEmitHelpers:()=>r4,getEmitModuleDetectionKind:()=>xU,getEmitModuleKind:()=>Md,getEmitModuleResolutionKind:()=>uu,getEmitScriptTarget:()=>rs,getEmitStandardClassFields:()=>hoe,getEnclosingBlockScopeContainer:()=>ph,getEnclosingContainer:()=>nj,getEncodedSemanticClassifications:()=>IX,getEncodedSyntacticClassifications:()=>xX,getEndLinePosition:()=>m2,getEntityNameFromTypeNode:()=>I2,getEntrypointsFromPackageJsonInfo:()=>sK,getErrorCountForSummary:()=>mz,getErrorSpanForNode:()=>fT,getErrorSummaryText:()=>bce,getEscapedTextOfIdentifierOrLiteral:()=>AN,getEscapedTextOfJsxAttributeName:()=>QN,getEscapedTextOfJsxNamespacedName:()=>FI,getExpandoInitializer:()=>lE,getExportAssignmentExpression:()=>Tj,getExportInfoMap:()=>mO,getExportNeedsImportStarHelper:()=>nle,getExpressionAssociativity:()=>Nj,getExpressionPrecedence:()=>xN,getExternalHelpersModuleName:()=>Uk,getExternalModuleImportEqualsDeclarationExpression:()=>gN,getExternalModuleName:()=>eR,getExternalModuleNameFromDeclaration:()=>Cie,getExternalModuleNameFromPath:()=>Wj,getExternalModuleNameLiteral:()=>s1,getExternalModuleRequireArgument:()=>dj,getFallbackOptions:()=>Nw,getFileEmitOutput:()=>tce,getFileMatcherPatterns:()=>M6,getFileNamesFromConfigSpecs:()=>AP,getFileWatcherEventKind:()=>nV,getFilesInErrorForSummary:()=>_z,getFirstConstructorWithBody:()=>eg,getFirstIdentifier:()=>Fp,getFirstNonSpaceCharacterPosition:()=>Nde,getFirstProjectOutput:()=>qK,getFixableErrorSpanExpression:()=>dX,getFormatCodeSettingsForWriting:()=>_7,getFullWidth:()=>p2,getFunctionFlags:()=>Bc,getHeritageClause:()=>K2,getHostSignatureFromJSDoc:()=>cE,getIdentifierAutoGenerate:()=>KSe,getIdentifierGeneratedImportReference:()=>rae,getIdentifierTypeArguments:()=>DT,getImmediatelyInvokedFunctionExpression:()=>_T,getImpliedNodeFormatForFile:()=>kw,getImpliedNodeFormatForFileWorker:()=>_J,getImportNeedsImportDefaultHelper:()=>DK,getImportNeedsImportStarHelper:()=>W3,getIndentSize:()=>dR,getIndentString:()=>r6,getInferredLibraryNameResolveFrom:()=>rz,getInitializedVariables:()=>ON,getInitializerOfBinaryExpression:()=>_j,getInitializerOfBindingOrAssignmentElement:()=>Kk,getInterfaceBaseTypeNodes:()=>SN,getInternalEmitFlags:()=>ym,getInvokedExpression:()=>BF,getIsolatedModules:()=>em,getJSDocAugmentsTag:()=>nre,getJSDocClassTag:()=>yV,getJSDocCommentRanges:()=>oj,getJSDocCommentsAndTags:()=>gj,getJSDocDeprecatedTag:()=>vV,getJSDocDeprecatedTagNoCache:()=>cre,getJSDocEnumTag:()=>bV,getJSDocHost:()=>vT,getJSDocImplementsTags:()=>rre,getJSDocOverloadTags:()=>vj,getJSDocOverrideTagNoCache:()=>lre,getJSDocParameterTags:()=>Lx,getJSDocParameterTagsNoCache:()=>Qne,getJSDocPrivateTag:()=>_0e,getJSDocPrivateTagNoCache:()=>ore,getJSDocProtectedTag:()=>h0e,getJSDocProtectedTagNoCache:()=>are,getJSDocPublicTag:()=>m0e,getJSDocPublicTagNoCache:()=>ire,getJSDocReadonlyTag:()=>g0e,getJSDocReadonlyTagNoCache:()=>sre,getJSDocReturnTag:()=>dre,getJSDocReturnType:()=>$L,getJSDocRoot:()=>rR,getJSDocSatisfiesExpressionType:()=>gU,getJSDocSatisfiesTag:()=>EV,getJSDocTags:()=>iE,getJSDocTagsNoCache:()=>v0e,getJSDocTemplateTag:()=>y0e,getJSDocThisTag:()=>nF,getJSDocType:()=>rE,getJSDocTypeAliasName:()=>SH,getJSDocTypeAssertionType:()=>Y4,getJSDocTypeParameterDeclarations:()=>d6,getJSDocTypeParameterTags:()=>Zne,getJSDocTypeParameterTagsNoCache:()=>ere,getJSDocTypeTag:()=>nE,getJSXImplicitImportBase:()=>D6,getJSXRuntimeImport:()=>C6,getJSXTransformEnabled:()=>R6,getKeyForCompilerOptions:()=>tK,getLanguageVariant:()=>ok,getLastChild:()=>Zj,getLeadingCommentRanges:()=>Uh,getLeadingCommentRangesOfNode:()=>ij,getLeftmostAccessExpression:()=>_R,getLeftmostExpression:()=>hR,getLibraryNameFromLibFileName:()=>fJ,getLineAndCharacterOfPosition:()=>gs,getLineInfo:()=>AK,getLineOfLocalPosition:()=>DN,getLineOfLocalPositionFromLineMap:()=>ST,getLineStartPositionForPosition:()=>rm,getLineStarts:()=>Rg,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>roe,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>noe,getLinesBetweenPositions:()=>YC,getLinesBetweenRangeEndAndRangeStart:()=>Yj,getLinesBetweenRangeEndPositions:()=>sSe,getLiteralText:()=>Vre,getLocalNameForExternalImport:()=>WR,getLocalSymbolForExportDefault:()=>fR,getLocaleSpecificMessage:()=>ko,getLocaleTimeString:()=>Ww,getMappedContextSpan:()=>Xq,getMappedDocumentSpan:()=>Zz,getMappedLocation:()=>ZP,getMatchedFileSpec:()=>OJ,getMatchedIncludeSpec:()=>WJ,getMeaningFromDeclaration:()=>Uw,getMeaningFromLocation:()=>qT,getMembersOfDeclaration:()=>nie,getModeForFileReference:()=>Mw,getModeForResolutionAtIndex:()=>Xle,getModeForUsageLocation:()=>lJ,getModifiedTime:()=>fI,getModifiers:()=>v0,getModuleInstanceState:()=>Gg,getModuleNameStringLiteralAt:()=>ww,getModuleSpecifierEndingPreference:()=>Toe,getModuleSpecifierResolverHost:()=>Vq,getNameForExportedSymbol:()=>p7,getNameFromImportAttribute:()=>U6,getNameFromIndexInfo:()=>Yre,getNameFromPropertyName:()=>rO,getNameOfAccessExpression:()=>tU,getNameOfCompilerOptionValue:()=>BH,getNameOfDeclaration:()=>No,getNameOfExpando:()=>fj,getNameOfJSDocTypedef:()=>$ne,getNameOrArgument:()=>L2,getNameTable:()=>gY,getNamesForExportedSymbol:()=>Bde,getNamespaceDeclarationNode:()=>tR,getNewLineCharacter:()=>Oy,getNewLineKind:()=>fO,getNewLineOrDefaultFromHost:()=>Jy,getNewTargetContainer:()=>pie,getNextJSDocCommentLocation:()=>yj,getNodeForGeneratedName:()=>qk,getNodeId:()=>is,getNodeKind:()=>aS,getNodeModifiers:()=>YP,getNodeModulePathParts:()=>G6,getNonAssignedNameOfDeclaration:()=>eF,getNonAssignmentOperatorForCompoundAssignment:()=>MP,getNonAugmentationDeclaration:()=>YV,getNonDecoratorTokenPosOfNode:()=>HV,getNormalizedAbsolutePath:()=>_o,getNormalizedAbsolutePathWithoutRoot:()=>lV,getNormalizedPathComponents:()=>OL,getObjectFlags:()=>kr,getOperator:()=>Mj,getOperatorAssociativity:()=>Pj,getOperatorPrecedence:()=>X2,getOptionFromName:()=>OH,getOptionsForLibraryResolution:()=>rK,getOptionsNameMap:()=>GR,getOrCreateEmitNode:()=>Ld,getOrCreateExternalHelpersModuleNameIfNeeded:()=>Fae,getOrUpdate:()=>FC,getOriginalNode:()=>Nl,getOriginalNodeId:()=>kd,getOriginalSourceFile:()=>$0e,getOutputDeclarationFileName:()=>GP,getOutputDeclarationFileNameWorker:()=>KK,getOutputExtension:()=>K3,getOutputFileNames:()=>t1e,getOutputJSFileNameWorker:()=>JK,getOutputPathsFor:()=>BP,getOutputPathsForBundle:()=>zP,getOwnEmitOutputFilePath:()=>Nie,getOwnKeys:()=>jh,getOwnValues:()=>cI,getPackageJsonInfo:()=>Z0,getPackageJsonTypesVersionsPaths:()=>g3,getPackageJsonsVisibleToFile:()=>Wde,getPackageNameFromTypesPackageName:()=>CP,getPackageScopeForPath:()=>mw,getParameterSymbolFromJSDoc:()=>G2,getParameterTypeNode:()=>ySe,getParentNodeInSpan:()=>oO,getParseTreeNode:()=>Ro,getParsedCommandLineOfConfigFile:()=>Zk,getPathComponents:()=>Wc,getPathComponentsRelativeTo:()=>dV,getPathFromPathComponents:()=>Av,getPathUpdater:()=>CX,getPathsBasePath:()=>s6,getPatternFromSpec:()=>boe,getPendingEmitKind:()=>tD,getPositionOfLineAndCharacter:()=>GL,getPossibleGenericSignatures:()=>Pq,getPossibleOriginalInputExtensionForExtension:()=>Mie,getPossibleTypeArgumentsInfo:()=>Mq,getPreEmitDiagnostics:()=>n1e,getPrecedingNonSpaceCharacterPosition:()=>t7,getPrivateIdentifier:()=>MK,getProperties:()=>NK,getProperty:()=>_W,getPropertyArrayElementValue:()=>lie,getPropertyAssignmentAliasLikeExpression:()=>Iie,getPropertyNameForPropertyNameNode:()=>bT,getPropertyNameForUniqueESSymbol:()=>X0e,getPropertyNameFromType:()=>Zf,getPropertyNameOfBindingOrAssignmentElement:()=>EH,getPropertySymbolFromBindingElement:()=>Qz,getPropertySymbolsFromContextualType:()=>J7,getQuoteFromPreference:()=>Uq,getQuotePreference:()=>af,getRangesWhere:()=>LG,getRefactorContextSpan:()=>E1,getReferencedFileLocation:()=>jP,getRegexFromPattern:()=>Bv,getRegularExpressionForWildcard:()=>BN,getRegularExpressionsForWildcards:()=>N6,getRelativePathFromDirectory:()=>_m,getRelativePathFromFile:()=>FL,getRelativePathToDirectoryOrUrl:()=>_I,getRenameLocation:()=>lO,getReplacementSpanForContextToken:()=>Oq,getResolutionDiagnostic:()=>yJ,getResolutionModeOverride:()=>$R,getResolveJsonModule:()=>_E,getResolvePackageJsonExports:()=>X6,getResolvePackageJsonImports:()=>Y6,getResolvedExternalModuleName:()=>i6,getRestIndicatorOfBindingOrAssignmentElement:()=>Q4,getRestParameterElementType:()=>aj,getRightMostAssignedExpression:()=>P2,getRootDeclaration:()=>A_,getRootDirectoryOfResolutionCache:()=>gce,getRootLength:()=>lh,getRootPathSplitLength:()=>R1e,getScriptKind:()=>eX,getScriptKindFromFileName:()=>k6,getScriptTargetFeatures:()=>J6,getSelectedEffectiveModifierFlags:()=>PI,getSelectedSyntacticModifierFlags:()=>Vie,getSemanticClassifications:()=>Ude,getSemanticJsxChildren:()=>sR,getSetAccessorTypeAnnotationNode:()=>Lie,getSetAccessorValueParameter:()=>CN,getSetExternalModuleIndicator:()=>ak,getShebang:()=>$W,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>hj,getSingleVariableOfVariableStatement:()=>RI,getSnapshotText:()=>lD,getSnippetElement:()=>jU,getSourceFileOfModule:()=>SF,getSourceFileOfNode:()=>Gn,getSourceFilePathInNewDir:()=>l6,getSourceFilePathInNewDirWorker:()=>c6,getSourceFileVersionAsHashFromText:()=>gz,getSourceFilesToEmit:()=>Fj,getSourceMapRange:()=>Fy,getSourceMapper:()=>aue,getSourceTextOfNodeFromSourceFile:()=>T0,getSpanOfTokenAtPosition:()=>fh,getSpellingSuggestion:()=>VC,getStartPositionOfLine:()=>wv,getStartPositionOfRange:()=>wN,getStartsOnNewLine:()=>rP,getStaticPropertiesAndClassStaticBlock:()=>B3,getStrictOptionValue:()=>du,getStringComparer:()=>bx,getSubPatternFromSpec:()=>P6,getSuperCallFromStatement:()=>F3,getSuperContainer:()=>T2,getSupportedCodeFixes:()=>_Y,getSupportedExtensions:()=>GN,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>sk,getSwitchedType:()=>oX,getSymbolId:()=>ba,getSymbolNameForPrivateIdentifier:()=>J2,getSymbolTarget:()=>tX,getSyntacticClassifications:()=>Hde,getSyntacticModifierFlags:()=>Fv,getSyntacticModifierFlagsNoCache:()=>Vj,getSynthesizedDeepClone:()=>ol,getSynthesizedDeepCloneWithReplacements:()=>sO,getSynthesizedDeepClones:()=>lS,getSynthesizedDeepClonesWithReplacements:()=>nX,getSyntheticLeadingComments:()=>AR,getSyntheticTrailingComments:()=>xk,getTargetLabel:()=>Lz,getTargetOfBindingOrAssignmentElement:()=>$v,getTemporaryModuleResolutionState:()=>fw,getTextOfConstantValue:()=>jre,getTextOfIdentifierOrLiteral:()=>Xf,getTextOfJSDocComment:()=>ZL,getTextOfJsxAttributeName:()=>mk,getTextOfJsxNamespacedName:()=>ZN,getTextOfNode:()=>uc,getTextOfNodeFromSourceText:()=>uN,getTextOfPropertyName:()=>jx,getThisContainer:()=>ku,getThisParameter:()=>L0,getTokenAtPosition:()=>so,getTokenPosOfNode:()=>aE,getTokenSourceMapRange:()=>USe,getTouchingPropertyName:()=>Fu,getTouchingToken:()=>sD,getTrailingCommentRanges:()=>$b,getTrailingSemicolonDeferringWriter:()=>Oj,getTransformFlagsSubtreeExclusions:()=>Koe,getTransformers:()=>jK,getTsBuildInfoEmitOutputFilePath:()=>jy,getTsConfigObjectLiteralExpression:()=>_N,getTsConfigPropArrayElementValue:()=>wF,getTypeAnnotationNode:()=>kie,getTypeArgumentOrTypeParameterList:()=>fde,getTypeKeywordOfTypeOnlyImport:()=>Hq,getTypeNode:()=>tae,getTypeNodeIfAccessible:()=>iM,getTypeParameterFromJsDoc:()=>vie,getTypeParameterOwner:()=>c0e,getTypesPackageName:()=>A3,getUILocale:()=>lne,getUniqueName:()=>QT,getUniqueSymbolId:()=>Cde,getUseDefineForClassFields:()=>nP,getWatchErrorSummaryDiagnosticMessage:()=>MJ,getWatchFactory:()=>ZK,group:()=>GC,groupBy:()=>hW,guessIndentation:()=>Pre,handleNoEmitOptions:()=>hJ,hasAbstractModifier:()=>O0,hasAccessorModifier:()=>I_,hasAmbientModifier:()=>Gj,hasChangesInResolutions:()=>VV,hasChildOfKind:()=>$w,hasContextSensitiveParameters:()=>z6,hasDecorators:()=>bf,hasDocComment:()=>ude,hasDynamicName:()=>Wv,hasEffectiveModifier:()=>fp,hasEffectiveModifiers:()=>u6,hasEffectiveReadonlyModifier:()=>NN,hasExtension:()=>mI,hasIndexSignature:()=>iX,hasInitializer:()=>Lv,hasInvalidEscape:()=>kj,hasJSDocNodes:()=>kp,hasJSDocParameterTags:()=>tre,hasJSFileExtension:()=>W0,hasJsonModuleEmitEnabled:()=>I6,hasOnlyExpressionInitializer:()=>dT,hasOverrideModifier:()=>p6,hasPossibleExternalModuleReference:()=>qre,hasProperty:()=>Ts,hasPropertyAccessExpressionWithName:()=>Kw,hasQuestionToken:()=>xI,hasRecordedExternalHelpers:()=>Wae,hasResolutionModeOverride:()=>Woe,hasRestParameter:()=>FV,hasScopeMarker:()=>Tre,hasStaticModifier:()=>pc,hasSyntacticModifier:()=>Qr,hasSyntacticModifiers:()=>Gie,hasTSFileExtension:()=>WI,hasTabstop:()=>koe,hasTrailingDirectorySeparator:()=>xy,hasType:()=>hF,hasTypeArguments:()=>U0e,hasZeroOrOneAsteriskCharacter:()=>iU,helperString:()=>KU,hostGetCanonicalFileName:()=>Ly,hostUsesCaseSensitiveFileNames:()=>uR,idText:()=>yr,identifierIsThisKeyword:()=>Bj,identifierToKeywordKind:()=>tE,identity:()=>Qs,identitySourceMapConsumer:()=>O3,ignoreSourceNewlines:()=>HU,ignoredPaths:()=>wL,importDefaultHelper:()=>A4,importFromModuleSpecifier:()=>vN,importNameElisionDisabled:()=>rU,importStarHelper:()=>Dk,indexOfAnyCharCode:()=>Xte,indexOfNode:()=>Vx,indicesOf:()=>SL,inferredTypesContainingFile:()=>eD,injectClassNamedEvaluationHelperBlockIfMissing:()=>j3,injectClassThisAssignmentIfMissing:()=>ple,insertImports:()=>QP,insertLeadingStatement:()=>cTe,insertSorted:()=>bv,insertStatementAfterCustomPrologue:()=>uT,insertStatementAfterStandardPrologue:()=>k0e,insertStatementsAfterCustomPrologue:()=>jV,insertStatementsAfterStandardPrologue:()=>qh,intersperse:()=>DG,intrinsicTagNameToString:()=>yU,introducesArgumentsExoticObject:()=>aie,inverseJsxOptionMap:()=>IP,isAbstractConstructorSymbol:()=>ioe,isAbstractModifier:()=>uae,isAccessExpression:()=>Ps,isAccessibilityModifier:()=>kq,isAccessor:()=>Nv,isAccessorModifier:()=>fae,isAliasSymbolDeclaration:()=>K0e,isAliasableExpression:()=>H2,isAmbientModule:()=>Pd,isAmbientPropertyDeclaration:()=>QV,isAnonymousFunctionDefinition:()=>IN,isAnyDirectorySeparator:()=>oV,isAnyImportOrBareOrAccessedRequire:()=>Jre,isAnyImportOrReExport:()=>h2,isAnyImportSyntax:()=>pT,isAnySupportedFileExtension:()=>gSe,isApplicableVersionedTypesKey:()=>hw,isArgumentExpressionOfElementAccess:()=>Tq,isArray:()=>So,isArrayBindingElement:()=>dF,isArrayBindingOrAssignmentElement:()=>a2,isArrayBindingOrAssignmentPattern:()=>MV,isArrayBindingPattern:()=>j0,isArrayLiteralExpression:()=>pu,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>Hy,isArrayTypeNode:()=>wk,isArrowFunction:()=>Fs,isAsExpression:()=>Wk,isAssertClause:()=>bae,isAssertEntry:()=>tTe,isAssertionExpression:()=>cT,isAssertsKeyword:()=>cae,isAssignmentDeclaration:()=>yN,isAssignmentExpression:()=>Pc,isAssignmentOperator:()=>ky,isAssignmentPattern:()=>lN,isAssignmentTarget:()=>Qh,isAsteriskToken:()=>Pk,isAsyncFunction:()=>TN,isAsyncModifier:()=>aP,isAutoAccessorPropertyDeclaration:()=>Lu,isAwaitExpression:()=>qv,isAwaitKeyword:()=>ZU,isBigIntLiteral:()=>P4,isBinaryExpression:()=>ur,isBinaryOperatorToken:()=>Kae,isBindableObjectDefinePropertyCall:()=>gT,isBindableStaticAccessExpression:()=>C0,isBindableStaticElementAccessExpression:()=>XF,isBindableStaticNameExpression:()=>yT,isBindingElement:()=>Xa,isBindingElementOfBareOrAccessedRequire:()=>_ie,isBindingName:()=>sT,isBindingOrAssignmentElement:()=>gre,isBindingOrAssignmentPattern:()=>i2,isBindingPattern:()=>$o,isBlock:()=>Ho,isBlockOrCatchScoped:()=>KV,isBlockScope:()=>ZV,isBlockScopedContainerTopLevel:()=>Kre,isBooleanLiteral:()=>sN,isBreakOrContinueStatement:()=>rN,isBreakStatement:()=>QSe,isBuildInfoFile:()=>Ble,isBuilderProgram:()=>Ece,isBundle:()=>aH,isBundleFileTextLike:()=>aoe,isCallChain:()=>oT,isCallExpression:()=>ra,isCallExpressionTarget:()=>gq,isCallLikeExpression:()=>S0,isCallLikeOrFunctionLikeExpression:()=>LV,isCallOrNewExpression:()=>v_,isCallOrNewExpressionTarget:()=>yq,isCallSignatureDeclaration:()=>XI,isCallToHelper:()=>oP,isCaseBlock:()=>fP,isCaseClause:()=>PR,isCaseKeyword:()=>mae,isCaseOrDefaultClause:()=>mF,isCatchClause:()=>Y0,isCatchClauseVariableDeclaration:()=>Loe,isCatchClauseVariableDeclarationOrBindingElement:()=>JV,isCheckJsEnabledForFile:()=>dk,isChildOfNodeWithKind:()=>O0e,isCircularBuildOrder:()=>h1,isClassDeclaration:()=>Sc,isClassElement:()=>Xc,isClassExpression:()=>$c,isClassInstanceProperty:()=>_re,isClassLike:()=>di,isClassMemberModifier:()=>CV,isClassNamedEvaluationHelperBlock:()=>_1,isClassOrTypeElement:()=>cF,isClassStaticBlockDeclaration:()=>Al,isClassThisAssignmentBlock:()=>kP,isCollapsedRange:()=>aSe,isColonToken:()=>sae,isCommaExpression:()=>jk,isCommaListExpression:()=>dP,isCommaSequence:()=>yP,isCommaToken:()=>aae,isComment:()=>Uz,isCommonJsExportPropertyAssignment:()=>LF,isCommonJsExportedExpression:()=>iie,isCompoundAssignment:()=>PP,isComputedNonLiteralName:()=>g2,isComputedPropertyName:()=>Ya,isConciseBody:()=>pF,isConditionalExpression:()=>NR,isConditionalTypeNode:()=>ZI,isConstTypeReference:()=>Cg,isConstructSignatureDeclaration:()=>Lk,isConstructorDeclaration:()=>Pl,isConstructorTypeNode:()=>xR,isContextualKeyword:()=>e6,isContinueStatement:()=>$Se,isCustomPrologue:()=>E2,isDebuggerStatement:()=>ZSe,isDeclaration:()=>Ud,isDeclarationBindingElement:()=>r2,isDeclarationFileName:()=>vd,isDeclarationName:()=>Lg,isDeclarationNameOfEnumOrNamespace:()=>$j,isDeclarationReadonly:()=>CF,isDeclarationStatement:()=>Rre,isDeclarationWithTypeParameterChildren:()=>tj,isDeclarationWithTypeParameters:()=>ej,isDecorator:()=>yd,isDecoratorTarget:()=>Qce,isDefaultClause:()=>_P,isDefaultImport:()=>II,isDefaultModifier:()=>w4,isDefaultedExpandoInitializer:()=>hie,isDeleteExpression:()=>gae,isDeleteTarget:()=>Ej,isDeprecatedDeclaration:()=>f7,isDestructuringAssignment:()=>wy,isDiagnosticWithLocation:()=>cX,isDiskPathRoot:()=>aV,isDoStatement:()=>XSe,isDocumentRegistryEntry:()=>_O,isDotDotDotToken:()=>L4,isDottedName:()=>MN,isDynamicName:()=>n6,isESSymbolIdentifier:()=>Y0e,isEffectiveExternalModule:()=>TI,isEffectiveModuleDeclaration:()=>Hre,isEffectiveStrictModeSourceFile:()=>$V,isElementAccessChain:()=>SV,isElementAccessExpression:()=>qs,isEmittedFileOfProgram:()=>Ule,isEmptyArrayLiteral:()=>Xie,isEmptyBindingElement:()=>Xne,isEmptyBindingPattern:()=>qne,isEmptyObjectLiteral:()=>Jj,isEmptyStatement:()=>rH,isEmptyStringLiteral:()=>cj,isEntityName:()=>Xu,isEntityNameExpression:()=>Bl,isEnumConst:()=>I0,isEnumDeclaration:()=>gE,isEnumMember:()=>$0,isEqualityOperatorKind:()=>i7,isEqualsGreaterThanToken:()=>lae,isExclamationToken:()=>Mk,isExcludedFile:()=>ase,isExclusivelyTypeOnlyImportOrExport:()=>sJ,isExpandoPropertyDeclaration:()=>j6,isExportAssignment:()=>Ll,isExportDeclaration:()=>Xl,isExportModifier:()=>JI,isExportName:()=>X4,isExportNamespaceAsDefaultDeclaration:()=>IF,isExportOrDefaultModifier:()=>Jk,isExportSpecifier:()=>Hd,isExportsIdentifier:()=>hT,isExportsOrModuleExportsOrAlias:()=>eS,isExpression:()=>ht,isExpressionNode:()=>Yh,isExpressionOfExternalModuleImportEqualsDeclaration:()=>nde,isExpressionOfOptionalChainRoot:()=>aF,isExpressionStatement:()=>Qc,isExpressionWithTypeArguments:()=>By,isExpressionWithTypeArgumentsInClassExtendsClause:()=>f6,isExternalModule:()=>oc,isExternalModuleAugmentation:()=>A0,isExternalModuleImportEqualsDeclaration:()=>sE,isExternalModuleIndicator:()=>s2,isExternalModuleNameRelative:()=>qc,isExternalModuleReference:()=>bh,isExternalModuleSymbol:()=>tO,isExternalOrCommonJsModule:()=>wp,isFileLevelReservedGeneratedIdentifier:()=>n2,isFileLevelUniqueName:()=>TF,isFileProbablyExternalModule:()=>Yk,isFirstDeclarationOfSymbolParameter:()=>Yq,isFixablePromiseHandler:()=>kX,isForInOrOfStatement:()=>Wx,isForInStatement:()=>G4,isForInitializer:()=>vf,isForOfStatement:()=>Fk,isForStatement:()=>kT,isFunctionBlock:()=>R0,isFunctionBody:()=>wV,isFunctionDeclaration:()=>Ec,isFunctionExpression:()=>Ms,isFunctionExpressionOrArrowFunction:()=>z0,isFunctionLike:()=>Yo,isFunctionLikeDeclaration:()=>Ws,isFunctionLikeKind:()=>vI,isFunctionLikeOrClassStaticBlockDeclaration:()=>Ox,isFunctionOrConstructorTypeNode:()=>hre,isFunctionOrModuleBlock:()=>NV,isFunctionSymbol:()=>yie,isFunctionTypeNode:()=>gh,isFutureReservedKeyword:()=>J0e,isGeneratedIdentifier:()=>rl,isGeneratedPrivateIdentifier:()=>aT,isGetAccessor:()=>Mv,isGetAccessorDeclaration:()=>Zp,isGetOrSetAccessorDeclaration:()=>iF,isGlobalDeclaration:()=>wxe,isGlobalScopeAugmentation:()=>E_,isGrammarError:()=>Bre,isHeritageClause:()=>ef,isHoistedFunction:()=>PF,isHoistedVariableStatement:()=>MF,isIdentifier:()=>Fe,isIdentifierANonContextualKeyword:()=>xj,isIdentifierName:()=>Aie,isIdentifierOrThisTypeNode:()=>Vae,isIdentifierPart:()=>Qb,isIdentifierStart:()=>Hh,isIdentifierText:()=>$p,isIdentifierTypePredicate:()=>sie,isIdentifierTypeReference:()=>Doe,isIfStatement:()=>LT,isIgnoredFileFromWildCardWatching:()=>Cw,isImplicitGlob:()=>sU,isImportAttribute:()=>Eae,isImportAttributeName:()=>mre,isImportAttributes:()=>n1,isImportCall:()=>Op,isImportClause:()=>yh,isImportDeclaration:()=>Mc,isImportEqualsDeclaration:()=>Zc,isImportKeyword:()=>lP,isImportMeta:()=>Kx,isImportOrExportSpecifier:()=>yI,isImportOrExportSpecifierName:()=>Dde,isImportSpecifier:()=>Qu,isImportTypeAssertionContainer:()=>eTe,isImportTypeNode:()=>ig,isImportableFile:()=>EX,isInComment:()=>Uy,isInCompoundLikeAssignment:()=>bj,isInExpressionContext:()=>VF,isInJSDoc:()=>R2,isInJSFile:()=>ir,isInJSXText:()=>cde,isInJsonFile:()=>UF,isInNonReferenceComment:()=>hde,isInReferenceComment:()=>_de,isInRightSideOfInternalImportEqualsDeclaration:()=>Pz,isInString:()=>y1,isInTemplateString:()=>Nq,isInTopLevelContext:()=>FF,isInTypeQuery:()=>TT,isIncrementalCompilation:()=>tP,isIndexSignatureDeclaration:()=>V0,isIndexedAccessTypeNode:()=>MT,isInferTypeNode:()=>CT,isInfinityOrNaNString:()=>XN,isInitializedProperty:()=>Sw,isInitializedVariable:()=>ik,isInsideJsxElement:()=>Vz,isInsideJsxElementOrAttribute:()=>lde,isInsideNodeModules:()=>pO,isInsideTemplateLiteral:()=>Zw,isInstanceOfExpression:()=>m6,isInstantiatedModule:()=>yK,isInterfaceDeclaration:()=>fu,isInternalDeclaration:()=>zV,isInternalModuleImportEqualsDeclaration:()=>$x,isInternalName:()=>yH,isIntersectionTypeNode:()=>QI,isIntrinsicJsxName:()=>cR,isIterationStatement:()=>Pv,isJSDoc:()=>Ym,isJSDocAllType:()=>xae,isJSDocAugmentsTag:()=>a1,isJSDocAuthorTag:()=>oTe,isJSDocCallbackTag:()=>lH,isJSDocClassTag:()=>Dae,isJSDocCommentContainingNode:()=>_F,isJSDocConstructSignature:()=>nR,isJSDocDeprecatedTag:()=>fH,isJSDocEnumTag:()=>Bk,isJSDocFunctionType:()=>LR,isJSDocImplementsTag:()=>K4,isJSDocIndexSignature:()=>HF,isJSDocLikeText:()=>RH,isJSDocLink:()=>Aae,isJSDocLinkCode:()=>Iae,isJSDocLinkLike:()=>SI,isJSDocLinkPlain:()=>rTe,isJSDocMemberName:()=>yE,isJSDocNameReference:()=>hP,isJSDocNamepathType:()=>iTe,isJSDocNamespaceBody:()=>D0e,isJSDocNode:()=>Fx,isJSDocNonNullableType:()=>V4,isJSDocNullableType:()=>MR,isJSDocOptionalParameter:()=>fk,isJSDocOptionalType:()=>sH,isJSDocOverloadTag:()=>kR,isJSDocOverrideTag:()=>U4,isJSDocParameterTag:()=>$m,isJSDocPrivateTag:()=>dH,isJSDocPropertyLikeTag:()=>iN,isJSDocPropertyTag:()=>Cae,isJSDocProtectedTag:()=>uH,isJSDocPublicTag:()=>cH,isJSDocReadonlyTag:()=>pH,isJSDocReturnTag:()=>H4,isJSDocSatisfiesExpression:()=>hU,isJSDocSatisfiesTag:()=>J4,isJSDocSeeTag:()=>aTe,isJSDocSignature:()=>vE,isJSDocTag:()=>zx,isJSDocTemplateTag:()=>nm,isJSDocThisTag:()=>mH,isJSDocThrowsTag:()=>lTe,isJSDocTypeAlias:()=>qf,isJSDocTypeAssertion:()=>OR,isJSDocTypeExpression:()=>Q0,isJSDocTypeLiteral:()=>FT,isJSDocTypeTag:()=>gP,isJSDocTypedefTag:()=>zT,isJSDocUnknownTag:()=>sTe,isJSDocUnknownType:()=>Rae,isJSDocVariadicType:()=>j4,isJSXTagName:()=>Yx,isJsonEqual:()=>W6,isJsonSourceFile:()=>Jf,isJsxAttribute:()=>M_,isJsxAttributeLike:()=>fF,isJsxAttributeName:()=>Ooe,isJsxAttributes:()=>X0,isJsxChild:()=>d2,isJsxClosingElement:()=>J0,isJsxClosingFragment:()=>Sae,isJsxElement:()=>og,isJsxExpression:()=>mP,isJsxFragment:()=>q0,isJsxNamespacedName:()=>Xm,isJsxOpeningElement:()=>P_,isJsxOpeningFragment:()=>i1,isJsxOpeningLikeElement:()=>su,isJsxOpeningLikeElementTagName:()=>Zce,isJsxSelfClosingElement:()=>OT,isJsxSpreadAttribute:()=>o1,isJsxTagNameExpression:()=>cN,isJsxText:()=>UI,isJumpStatementTarget:()=>Jw,isKeyword:()=>Ou,isKeywordOrPunctuation:()=>ZF,isKnownSymbol:()=>q2,isLabelName:()=>Eq,isLabelOfLabeledStatement:()=>bq,isLabeledStatement:()=>K0,isLateVisibilityPaintedStatement:()=>RF,isLeftHandSideExpression:()=>Yu,isLeftHandSideOfAssignment:()=>oSe,isLet:()=>NF,isLineBreak:()=>Vd,isLiteralComputedPropertyDeclarationName:()=>U2,isLiteralExpression:()=>E0,isLiteralExpressionOfObject:()=>RV,isLiteralImportTypeNode:()=>Ov,isLiteralKind:()=>oN,isLiteralLikeAccess:()=>qF,isLiteralLikeElementAccess:()=>M2,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>kz,isLiteralTypeLikeExpression:()=>mTe,isLiteralTypeLiteral:()=>Ere,isLiteralTypeNode:()=>Jv,isLocalName:()=>zg,isLogicalOperator:()=>Kie,isLogicalOrCoalescingAssignmentExpression:()=>jj,isLogicalOrCoalescingAssignmentOperator:()=>PN,isLogicalOrCoalescingBinaryExpression:()=>ek,isLogicalOrCoalescingBinaryOperator:()=>Z2,isMappedTypeNode:()=>DR,isMemberName:()=>Kh,isMetaProperty:()=>cP,isMethodDeclaration:()=>Ul,isMethodOrAccessor:()=>bI,isMethodSignature:()=>hh,isMinusToken:()=>QU,isMissingDeclaration:()=>nTe,isMissingPackageJsonInfo:()=>Tse,isModifier:()=>Ta,isModifierKind:()=>Cy,isModifierLike:()=>il,isModuleAugmentationExternal:()=>XV,isModuleBlock:()=>N_,isModuleBody:()=>Are,isModuleDeclaration:()=>ql,isModuleExportsAccessExpression:()=>$h,isModuleIdentifier:()=>mj,isModuleName:()=>Hae,isModuleOrEnumDeclaration:()=>l2,isModuleReference:()=>Cre,isModuleSpecifierLike:()=>$z,isModuleWithStringLiteralName:()=>xF,isNameOfFunctionDeclaration:()=>Iq,isNameOfModuleDeclaration:()=>Aq,isNamedClassElement:()=>T0e,isNamedDeclaration:()=>ou,isNamedEvaluation:()=>pp,isNamedEvaluationSource:()=>Rj,isNamedExportBindings:()=>AV,isNamedExports:()=>xf,isNamedImportBindings:()=>OV,isNamedImports:()=>Fg,isNamedImportsOrExports:()=>E6,isNamedTupleMember:()=>RR,isNamespaceBody:()=>R0e,isNamespaceExport:()=>vh,isNamespaceExportDeclaration:()=>zk,isNamespaceImport:()=>Yv,isNamespaceReexportDeclaration:()=>mie,isNewExpression:()=>U0,isNewExpressionTarget:()=>qP,isNoSubstitutionTemplateLiteral:()=>HI,isNode:()=>E0e,isNodeArray:()=>b0,isNodeArrayMultiLine:()=>toe,isNodeDescendantOf:()=>N0,isNodeKind:()=>e2,isNodeLikeSystem:()=>qG,isNodeModulesDirectory:()=>KW,isNodeWithPossibleHoistedDeclaration:()=>Eie,isNonContextualKeyword:()=>Ij,isNonExportDefaultModifier:()=>hTe,isNonGlobalAmbientModule:()=>qV,isNonGlobalDeclaration:()=>jde,isNonNullAccess:()=>woe,isNonNullChain:()=>sF,isNonNullExpression:()=>t1,isNonStaticMethodOrAccessorWithPrivateName:()=>rle,isNotEmittedOrPartiallyEmittedNode:()=>x0e,isNotEmittedStatement:()=>oH,isNullishCoalesce:()=>TV,isNumber:()=>Sy,isNumericLiteral:()=>mp,isNumericLiteralName:()=>rg,isObjectBindingElementWithoutPropertyName:()=>iO,isObjectBindingOrAssignmentElement:()=>o2,isObjectBindingOrAssignmentPattern:()=>PV,isObjectBindingPattern:()=>tm,isObjectLiteralElement:()=>WV,isObjectLiteralElementLike:()=>Ng,isObjectLiteralExpression:()=>La,isObjectLiteralMethod:()=>bm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>kF,isObjectTypeDeclaration:()=>kI,isOctalDigit:()=>YW,isOmittedExpression:()=>Gc,isOptionalChain:()=>jd,isOptionalChainRoot:()=>tN,isOptionalDeclaration:()=>$N,isOptionalJSDocPropertyLikeTag:()=>pk,isOptionalTypeNode:()=>O4,isOuterExpression:()=>$4,isOutermostOptionalChain:()=>nN,isOverrideModifier:()=>pae,isPackageJsonInfo:()=>v3,isPackedArrayLiteral:()=>mU,isParameter:()=>To,isParameterDeclaration:()=>M0,isParameterPropertyDeclaration:()=>dp,isParameterPropertyModifier:()=>aN,isParenthesizedExpression:()=>Wu,isParenthesizedTypeNode:()=>NT,isParseTreeNode:()=>eN,isPartOfTypeNode:()=>Xh,isPartOfTypeQuery:()=>jF,isPartiallyEmittedExpression:()=>B4,isPatternMatch:()=>bW,isPinnedComment:()=>AF,isPlainJsFile:()=>f2,isPlusToken:()=>$U,isPossiblyTypeArgumentPosition:()=>Qw,isPostfixUnaryExpression:()=>tH,isPrefixUnaryExpression:()=>Xv,isPrivateIdentifier:()=>Ki,isPrivateIdentifierClassElementDeclaration:()=>au,isPrivateIdentifierPropertyAccessExpression:()=>wx,isPrivateIdentifierSymbol:()=>xie,isProgramBundleEmitBuildInfo:()=>ace,isProgramUptoDate:()=>mJ,isPrologueDirective:()=>vm,isPropertyAccessChain:()=>oF,isPropertyAccessEntityNameExpression:()=>tk,isPropertyAccessExpression:()=>wr,isPropertyAccessOrQualifiedName:()=>vre,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>yre,isPropertyAssignment:()=>mc,isPropertyDeclaration:()=>Vo,isPropertyName:()=>rc,isPropertyNameLiteral:()=>T_,isPropertySignature:()=>_p,isProtoSetter:()=>Rie,isPrototypeAccess:()=>zv,isPrototypePropertyAssignment:()=>w2,isPunctuation:()=>Aj,isPushOrUnshiftIdentifier:()=>Dj,isQualifiedName:()=>Tu,isQuestionDotToken:()=>k4,isQuestionOrExclamationToken:()=>Gae,isQuestionOrPlusOrMinusToken:()=>Uae,isQuestionToken:()=>Hv,isRawSourceMap:()=>Zse,isReadonlyKeyword:()=>dae,isReadonlyKeywordOrPlusOrMinusToken:()=>jae,isRecognizedTripleSlashComment:()=>UV,isReferenceFileLocation:()=>QR,isReferencedFile:()=>xE,isRegularExpressionLiteral:()=>XU,isRequireCall:()=>Eu,isRequireVariableStatement:()=>pj,isRestParameter:()=>Jh,isRestTypeNode:()=>W4,isReturnStatement:()=>Sm,isReturnStatementWithFixablePromiseHandler:()=>T7,isRightSideOfAccessExpression:()=>Kj,isRightSideOfInstanceofExpression:()=>qie,isRightSideOfPropertyAccess:()=>oD,isRightSideOfQualifiedName:()=>tde,isRightSideOfQualifiedNameOrPropertyAccess:()=>LN,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Jie,isRootedDiskPath:()=>cp,isSameEntityName:()=>Qx,isSatisfiesExpression:()=>nH,isScopeMarker:()=>Sre,isSemicolonClassElement:()=>yae,isSetAccessor:()=>Ny,isSetAccessorDeclaration:()=>hp,isShebangTrivia:()=>uV,isShiftOperatorOrHigher:()=>AH,isShorthandAmbientModuleSymbol:()=>pN,isShorthandPropertyAssignment:()=>Zu,isSignedNumericLiteral:()=>t6,isSimpleCopiableExpression:()=>nS,isSimpleInlineableExpression:()=>L_,isSimpleParameter:()=>lle,isSimpleParameterList:()=>Tw,isSingleOrDoubleQuote:()=>D2,isSourceFile:()=>Yi,isSourceFileFromLibrary:()=>fD,isSourceFileJS:()=>lu,isSourceFileNotJS:()=>z0e,isSourceFileNotJson:()=>uj,isSourceMapping:()=>ele,isSpecialPropertyDeclaration:()=>gie,isSpreadAssignment:()=>Gy,isSpreadElement:()=>qm,isStatement:()=>Hi,isStatementButNotDeclaration:()=>c2,isStatementOrBlock:()=>Dre,isStatementWithLocals:()=>zre,isStatic:()=>na,isStaticModifier:()=>qI,isString:()=>Co,isStringAKeyword:()=>q0e,isStringANonContextualKeyword:()=>CI,isStringAndEmptyAnonymousObjectIntersection:()=>mde,isStringDoubleQuoted:()=>JF,isStringLiteral:()=>Ca,isStringLiteralLike:()=>ss,isStringLiteralOrJsxExpression:()=>Nre,isStringLiteralOrTemplate:()=>kde,isStringOrNumericLiteralLike:()=>Qp,isStringOrRegularExpressionOrTemplateLiteral:()=>Lq,isStringTextContainingNode:()=>DV,isSuperCall:()=>mT,isSuperKeyword:()=>sP,isSuperOrSuperProperty:()=>F0e,isSuperProperty:()=>wu,isSupportedSourceFileName:()=>Aoe,isSwitchStatement:()=>pP,isSyntaxList:()=>wR,isSyntheticExpression:()=>qSe,isSyntheticReference:()=>r1,isTagName:()=>Sq,isTaggedTemplateExpression:()=>H0,isTaggedTemplateTag:()=>$ce,isTemplateExpression:()=>F4,isTemplateHead:()=>KI,isTemplateLiteral:()=>EI,isTemplateLiteralKind:()=>Cv,isTemplateLiteralToken:()=>pre,isTemplateLiteralTypeNode:()=>_ae,isTemplateLiteralTypeSpan:()=>eH,isTemplateMiddle:()=>YU,isTemplateMiddleOrTemplateTail:()=>lF,isTemplateSpan:()=>uP,isTemplateTail:()=>M4,isTextWhiteSpaceLike:()=>bde,isThis:()=>aD,isThisContainerOrFunctionBlock:()=>uie,isThisIdentifier:()=>w0,isThisInTypeQuery:()=>NI,isThisInitializedDeclaration:()=>zF,isThisInitializedObjectBindingExpression:()=>fie,isThisProperty:()=>A2,isThisTypeNode:()=>Ok,isThisTypeParameter:()=>YN,isThisTypePredicate:()=>W0e,isThrowStatement:()=>iH,isToken:()=>gI,isTokenKind:()=>xV,isTraceEnabled:()=>Bg,isTransientSymbol:()=>dh,isTrivia:()=>aR,isTryStatement:()=>wT,isTupleTypeNode:()=>$I,isTypeAlias:()=>F2,isTypeAliasDeclaration:()=>Tm,isTypeAssertionExpression:()=>hae,isTypeDeclaration:()=>ER,isTypeElement:()=>lT,isTypeKeyword:()=>$P,isTypeKeywordToken:()=>zq,isTypeKeywordTokenOrIdentifier:()=>Jz,isTypeLiteralNode:()=>gp,isTypeNode:()=>ji,isTypeNodeKind:()=>eU,isTypeOfExpression:()=>CR,isTypeOnlyExportDeclaration:()=>fre,isTypeOnlyImportDeclaration:()=>t2,isTypeOnlyImportOrExportDeclaration:()=>oE,isTypeOperatorNode:()=>PT,isTypeParameterDeclaration:()=>fl,isTypePredicateNode:()=>kk,isTypeQueryNode:()=>YI,isTypeReferenceNode:()=>If,isTypeReferenceType:()=>gF,isTypeUsableAsPropertyName:()=>Qf,isUMDExportSymbol:()=>b6,isUnaryExpression:()=>kV,isUnaryExpressionWithWrite:()=>bre,isUnicodeIdentifierStart:()=>qW,isUnionTypeNode:()=>Kv,isUnparsedNode:()=>IV,isUnparsedPrepend:()=>Tae,isUnparsedSource:()=>WT,isUnparsedTextLike:()=>ure,isUrl:()=>Mne,isValidBigIntString:()=>F6,isValidESSymbolDeclaration:()=>oie,isValidTypeOnlyAliasUseSite:()=>mE,isValueSignatureDeclaration:()=>Sie,isVarAwaitUsing:()=>v2,isVarConst:()=>Hx,isVarUsing:()=>b2,isVariableDeclaration:()=>Oi,isVariableDeclarationInVariableStatement:()=>mN,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>D0,isVariableDeclarationInitializedToRequire:()=>KF,isVariableDeclarationList:()=>Vc,isVariableLike:()=>Jx,isVariableLikeOrAccessor:()=>rie,isVariableStatement:()=>Ml,isVoidExpression:()=>e1,isWatchSet:()=>lSe,isWhileStatement:()=>YSe,isWhiteSpaceLike:()=>Dg,isWhiteSpaceSingleLine:()=>y_,isWithStatement:()=>vae,isWriteAccess:()=>LI,isWriteOnlyAccess:()=>v6,isYieldExpression:()=>z4,jsxModeNeedsExplicitImport:()=>mX,keywordPart:()=>vp,last:()=>Ja,lastOrUndefined:()=>$s,length:()=>Nn,libMap:()=>c3,libs:()=>ow,lineBreakPart:()=>uD,linkNamePart:()=>xde,linkPart:()=>Qq,linkTextPart:()=>e7,listFiles:()=>LJ,loadModuleFromGlobalCache:()=>Lse,loadWithModeAwareCache:()=>Lw,makeIdentifierFromModuleName:()=>Ure,makeImport:()=>Ky,makeImportIfNecessary:()=>vde,makeStringLiteral:()=>b1,mangleScopedPackageName:()=>JR,map:()=>mn,mapAllOrFail:()=>PG,mapDefined:()=>to,mapDefinedEntries:()=>$te,mapDefinedIterator:()=>WC,mapEntries:()=>Zte,mapIterator:()=>wC,mapOneOrMany:()=>uX,mapToDisplayParts:()=>nb,matchFiles:()=>lU,matchPatternOrExact:()=>cU,matchedText:()=>fne,matchesExclude:()=>l3,maybeBind:()=>ea,maybeSetLocalizedDiagnosticMessages:()=>poe,memoize:()=>bu,memoizeCached:()=>ane,memoizeOne:()=>ah,memoizeWeak:()=>_Ee,metadataHelper:()=>o4,min:()=>jG,minAndMax:()=>xoe,missingFileModifiedTime:()=>Mp,modifierToFlag:()=>MI,modifiersToFlags:()=>x_,moduleOptionDeclaration:()=>UH,moduleResolutionIsEqualTo:()=>Wre,moduleResolutionNameAndModeGetter:()=>sz,moduleResolutionOptionDeclarations:()=>d3,moduleResolutionSupportsPackageJsonExportsAndImports:()=>OI,moduleResolutionUsesNodeModules:()=>qz,moduleSpecifiers:()=>tS,moveEmitHelpers:()=>Zoe,moveRangeEnd:()=>g6,moveRangePastDecorators:()=>kg,moveRangePastModifiers:()=>R_,moveRangePos:()=>pE,moveSyntheticComments:()=>Yoe,mutateMap:()=>FN,mutateMapSkippingNewValues:()=>tg,needsParentheses:()=>n7,needsScopeMarker:()=>uF,newCaseClauseTracker:()=>h7,newPrivateEnvironment:()=>ale,noEmitNotification:()=>Aw,noEmitSubstitution:()=>WP,noTransformers:()=>UK,noTruncationMaximumTruncationLength:()=>K6,nodeCanBeDecorated:()=>GF,nodeHasName:()=>YL,nodeIsDecorated:()=>Xx,nodeIsMissing:()=>Fl,nodeIsPresent:()=>Hf,nodeIsSynthesized:()=>Js,nodeModuleNameResolver:()=>Rse,nodeModulesPathPart:()=>Sh,nodeNextJsonConfigResolver:()=>Dse,nodeOrChildIsDecorated:()=>x2,nodeOverlapsWithStartEnd:()=>wz,nodePosToString:()=>N0e,nodeSeenTracker:()=>v1,nodeStartsNewLexicalEnvironment:()=>Cj,nodeToDisplayParts:()=>Cxe,noop:()=>qa,noopFileWatcher:()=>rD,normalizePath:()=>fa,normalizeSlashes:()=>Nd,not:()=>SW,notImplemented:()=>jo,notImplementedResolver:()=>Y3,nullNodeConverters:()=>OU,nullParenthesizerRules:()=>wU,nullTransformationContext:()=>FP,objectAllocator:()=>od,operatorPart:()=>eM,optionDeclarations:()=>ag,optionMapToObject:()=>o3,optionsAffectingProgramStructure:()=>XH,optionsForBuild:()=>$H,optionsForWatch:()=>VR,optionsHaveChanges:()=>Bx,optionsHaveModuleResolutionChanges:()=>kre,or:()=>Um,orderedRemoveItem:()=>Sx,orderedRemoveItemAt:()=>Sv,outFile:()=>Rs,packageIdToPackageName:()=>EF,packageIdToString:()=>kv,paramHelper:()=>a4,parameterIsThisKeyword:()=>k0,parameterNamePart:()=>Sde,parseBaseNodeFactory:()=>MH,parseBigInt:()=>Roe,parseBuildCommand:()=>qTe,parseCommandLine:()=>KTe,parseCommandLineWorker:()=>wH,parseConfigFileTextToJson:()=>WH,parseConfigFileWithSystem:()=>C1e,parseConfigHostFromCompilerHostLike:()=>az,parseCustomTypeOption:()=>i3,parseIsolatedEntityName:()=>l1,parseIsolatedJSDocComment:()=>Qae,parseJSDocTypeExpressionForTests:()=>LTe,parseJsonConfigFileContent:()=>lAe,parseJsonSourceFileConfigFileContent:()=>nw,parseJsonText:()=>Qk,parseListTypeOption:()=>ese,parseNodeFactory:()=>Eh,parseNodeModuleFromPath:()=>pw,parsePackageName:()=>_w,parsePseudoBigInt:()=>HN,parseValidBigInt:()=>fU,patchWriteFileEnsuringDirectory:()=>Nne,pathContainsNodeModules:()=>AE,pathIsAbsolute:()=>JC,pathIsBareSpecifier:()=>sV,pathIsRelative:()=>Lp,patternText:()=>pne,perfLogger:()=>ru,performIncrementalCompilation:()=>L1e,performance:()=>Ane,plainJSErrors:()=>lz,positionBelongsToNode:()=>Rq,positionIsASICandidate:()=>a7,positionIsSynthesized:()=>Jm,positionsAreOnSameLine:()=>Sf,preProcessFile:()=>nRe,probablyUsesSemicolons:()=>dO,processCommentPragmas:()=>NH,processPragmasIntoFields:()=>PH,processTaggedTemplateExpression:()=>WK,programContainsEsModules:()=>yde,programContainsModules:()=>gde,projectReferenceIsEqualTo:()=>GV,propKeyHelper:()=>v4,propertyNamePart:()=>Tde,pseudoBigIntToString:()=>F0,punctuationPart:()=>qd,pushIfUnique:()=>yf,quote:()=>rM,quotePreferenceFromString:()=>jq,rangeContainsPosition:()=>qw,rangeContainsPositionExclusive:()=>Xw,rangeContainsRange:()=>of,rangeContainsRangeExclusive:()=>rde,rangeContainsStartEnd:()=>Yw,rangeEndIsOnSameLineAsRangeStart:()=>rk,rangeEndPositionsAreOnSameLine:()=>Zie,rangeEquals:()=>OG,rangeIsOnSingleLine:()=>IT,rangeOfNode:()=>uU,rangeOfTypeParameters:()=>pU,rangeOverlapsWithStartEnd:()=>XP,rangeStartIsOnSameLineAsRangeEnd:()=>eoe,rangeStartPositionsAreOnSameLine:()=>y6,readBuilderProgram:()=>bz,readConfigFile:()=>ew,readHelper:()=>g4,readJson:()=>kN,readJsonConfigFile:()=>rse,readJsonOrUndefined:()=>qj,reduceEachLeadingCommentRange:()=>Fne,reduceEachTrailingCommentRange:()=>zne,reduceLeft:()=>nu,reduceLeftIterator:()=>uEe,reducePathComponents:()=>iT,refactor:()=>T1,regExpEscape:()=>_Se,relativeComplement:()=>ene,removeAllComments:()=>Ak,removeEmitHelper:()=>HSe,removeExtension:()=>ck,removeFileExtension:()=>Su,removeIgnoredPath:()=>uz,removeMinAndVersionNumbers:()=>UG,removeOptionality:()=>dde,removePrefix:()=>jC,removeSuffix:()=>Ex,removeTrailingDirectorySeparator:()=>Yb,repeatString:()=>nO,replaceElement:()=>zG,replaceFirstStar:()=>zI,resolutionExtensionIsTSOrJson:()=>VN,resolveConfigFileProjectName:()=>UJ,resolveJSModule:()=>Ise,resolveLibrary:()=>E3,resolveModuleName:()=>HR,resolveModuleNameFromCache:()=>HAe,resolvePackageNameToPackageJson:()=>eK,resolvePath:()=>Iv,resolveProjectReferencePath:()=>ZR,resolveTripleslashReference:()=>ez,resolveTypeReferenceDirective:()=>Ese,resolvingEmptyArray:()=>H6,restHelper:()=>f4,returnFalse:()=>jm,returnNoopFileWatcher:()=>iD,returnTrue:()=>Ty,returnUndefined:()=>qb,returnsPromise:()=>LX,runInitializersHelper:()=>l4,sameFlatMap:()=>Yte,sameMap:()=>Nc,sameMapping:()=>MIe,scanShebangTrivia:()=>pV,scanTokenAtPosition:()=>eie,scanner:()=>Xd,screenStartingMessageCodes:()=>vz,semanticDiagnosticsOptionDeclarations:()=>KH,serializeCompilerOptions:()=>a3,server:()=>twe,servicesVersion:()=>upe,setCommentRange:()=>ic,setConfigFileInOptions:()=>VH,setConstantValue:()=>Qoe,setEachParent:()=>bR,setEmitFlags:()=>lr,setFunctionNameHelper:()=>b4,setGetSourceFileAsHashVersioned:()=>yz,setIdentifierAutoGenerate:()=>Rk,setIdentifierGeneratedImportReference:()=>nae,setIdentifierTypeArguments:()=>zy,setInternalEmitFlags:()=>Ik,setLocalizedDiagnosticMessages:()=>uoe,setModuleDefaultHelper:()=>T4,setNodeFlags:()=>Noe,setObjectAllocator:()=>doe,setOriginalNode:()=>Rr,setParent:()=>ja,setParentRecursive:()=>Gv,setPrivateIdentifier:()=>jT,setSnippetElement:()=>UU,setSourceMapRange:()=>Da,setStackTraceLimit:()=>OEe,setStartsOnNewLine:()=>t4,setSyntheticLeadingComments:()=>hE,setSyntheticTrailingComments:()=>GI,setSys:()=>GEe,setSysLog:()=>Dne,setTextRange:()=>at,setTextRangeEnd:()=>vR,setTextRangePos:()=>KN,setTextRangePosEnd:()=>mh,setTextRangePosWidth:()=>JN,setTokenSourceMapRange:()=>Xoe,setTypeNode:()=>eae,setUILocale:()=>cne,setValueDeclaration:()=>O2,shouldAllowImportingTsExtension:()=>qR,shouldPreserveConstEnums:()=>G0,shouldUseUriStyleNodeCoreModules:()=>m7,showModuleSpecifier:()=>ooe,signatureHasLiteralTypes:()=>vK,signatureHasRestParameter:()=>Jd,signatureToDisplayParts:()=>Zq,single:()=>FG,singleElementArray:()=>pI,singleIterator:()=>Qte,singleOrMany:()=>ih,singleOrUndefined:()=>rh,skipAlias:()=>gd,skipAssertions:()=>uTe,skipConstraint:()=>Bq,skipOuterExpressions:()=>Yl,skipParentheses:()=>ms,skipPartiallyEmittedExpressions:()=>gm,skipTrivia:()=>Pa,skipTypeChecking:()=>UN,skipTypeParentheses:()=>j2,skipWhile:()=>_ne,sliceAfter:()=>dU,some:()=>gt,sort:()=>ZS,sortAndDeduplicate:()=>zC,sortAndDeduplicateDiagnostics:()=>Px,sourceFileAffectingCompilerOptions:()=>u3,sourceFileMayBeEmitted:()=>ET,sourceMapCommentRegExp:()=>k3,sourceMapCommentRegExpDontCareLineStart:()=>RK,spacePart:()=>kl,spanMap:()=>MG,spreadArrayHelper:()=>y4,stableSort:()=>by,startEndContainsRange:()=>xq,startEndOverlapsWithStartEnd:()=>Oz,startOnNewLine:()=>Kd,startTracing:()=>Ine,startsWith:()=>ao,startsWithDirectory:()=>cV,startsWithUnderscore:()=>fX,startsWithUseStrict:()=>wae,stringContainsAt:()=>Vde,stringToToken:()=>y0,stripQuotes:()=>Yf,supportedDeclarationExtensions:()=>yk,supportedJSExtensions:()=>MU,supportedJSExtensionsFlat:()=>TR,supportedLocaleDirectories:()=>BV,supportedTSExtensions:()=>SR,supportedTSExtensionsFlat:()=>PU,supportedTSImplementationExtensions:()=>vk,suppressLeadingAndTrailingTrivia:()=>bp,suppressLeadingTrivia:()=>rX,suppressTrailingTrivia:()=>Pde,symbolEscapedNameNoDefault:()=>Yz,symbolName:()=>yl,symbolNameNoDefault:()=>Xz,symbolPart:()=>Ede,symbolToDisplayParts:()=>tM,syntaxMayBeASICandidate:()=>vX,syntaxRequiresTrailingSemicolonOrASI:()=>o7,sys:()=>md,sysLog:()=>LL,tagNamesAreEquivalent:()=>EE,takeWhile:()=>AW,targetOptionDeclaration:()=>sw,templateObjectHelper:()=>h4,testFormatSettings:()=>Yce,textChangeRangeIsUnchanged:()=>Kne,textChangeRangeNewSpan:()=>ZC,textChanges:()=>pr,textOrKeywordPart:()=>$q,textPart:()=>sf,textRangeContainsPositionInclusive:()=>JL,textSpanContainsPosition:()=>_V,textSpanContainsTextSpan:()=>Vne,textSpanEnd:()=>Jl,textSpanIntersection:()=>Hne,textSpanIntersectsWith:()=>ZW,textSpanIntersectsWithPosition:()=>Une,textSpanIntersectsWithTextSpan:()=>l0e,textSpanIsEmpty:()=>Gne,textSpanOverlap:()=>jne,textSpanOverlapsWith:()=>s0e,textSpansEqual:()=>dD,textToKeywordObj:()=>HL,timestamp:()=>Ks,toArray:()=>dI,toBuilderFileEmit:()=>cce,toBuilderStateFileInfoForMultiEmit:()=>lce,toEditorSettings:()=>CO,toFileNameLowerCase:()=>oh,toLowerCase:()=>one,toPath:()=>tl,toProgramEmitPending:()=>dce,tokenIsIdentifierOrKeyword:()=>iu,tokenIsIdentifierOrKeywordOrGreaterThan:()=>One,tokenToString:()=>ca,trace:()=>yo,tracing:()=>rr,tracingEnabled:()=>CL,transform:()=>eCe,transformClassFields:()=>gle,transformDeclarations:()=>VK,transformECMAScriptModule:()=>GK,transformES2015:()=>Mle,transformES2016:()=>Ple,transformES2017:()=>Ele,transformES2018:()=>Sle,transformES2019:()=>Tle,transformES2020:()=>Ale,transformES2021:()=>Ile,transformES5:()=>Lle,transformESDecorators:()=>ble,transformESNext:()=>xle,transformGenerators:()=>kle,transformJsx:()=>Nle,transformLegacyDecorators:()=>vle,transformModule:()=>BK,transformNamedEvaluation:()=>yp,transformNodeModule:()=>Ole,transformNodes:()=>Iw,transformSystemModule:()=>wle,transformTypeScript:()=>hle,transpile:()=>dRe,transpileModule:()=>sue,transpileOptionValueCompilerOptions:()=>YH,tryAddToSet:()=>Jb,tryAndIgnoreErrors:()=>c7,tryCast:()=>ri,tryDirectoryExists:()=>l7,tryExtractTSExtension:()=>_6,tryFileExists:()=>uO,tryGetClassExtendingExpressionWithTypeArguments:()=>Uj,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>Hj,tryGetDirectories:()=>s7,tryGetExtensionFromPath:()=>Og,tryGetImportFromModuleSpecifier:()=>W2,tryGetJSDocSatisfiesTypeNode:()=>V6,tryGetModuleNameFromFile:()=>Hk,tryGetModuleSpecifierFromDeclaration:()=>Zx,tryGetNativePerformanceHooks:()=>Ene,tryGetPropertyAccessOrIdentifierToString:()=>nk,tryGetPropertyNameOfBindingOrAssignmentElement:()=>Z4,tryGetSourceMappingURL:()=>Qse,tryGetTextOfPropertyName:()=>fN,tryIOAndConsumeErrors:()=>d7,tryParseJson:()=>h6,tryParsePattern:()=>yR,tryParsePatterns:()=>w6,tryParseRawSourceMap:()=>IK,tryReadDirectory:()=>aX,tryReadFile:()=>SP,tryRemoveDirectoryPrefix:()=>aU,tryRemoveExtension:()=>Ioe,tryRemovePrefix:()=>JG,tryRemoveSuffix:()=>une,typeAcquisitionDeclarations:()=>lw,typeAliasNamePart:()=>Ade,typeDirectiveIsEqualTo:()=>Fre,typeKeywords:()=>g7,typeParameterNamePart:()=>Ide,typeToDisplayParts:()=>aO,unchangedPollThresholds:()=>kL,unchangedTextChangeRange:()=>u2,unescapeLeadingUnderscores:()=>Vi,unmangleScopedPackageName:()=>gw,unorderedRemoveItem:()=>uI,unorderedRemoveItemAt:()=>HG,unreachableCodeIsError:()=>moe,unusedLabelIsError:()=>_oe,unwrapInnermostStatementOfLabel:()=>sj,updateErrorForNoInputFiles:()=>s3,updateLanguageServiceSourceFile:()=>hY,updateMissingFilePathsWatch:()=>QK,updateResolutionField:()=>jR,updateSharedExtendedConfigFileWatcher:()=>Q3,updateSourceFile:()=>DH,updateWatchingWildcardDirectories:()=>Dw,usesExtensionsOnImports:()=>Soe,usingSingleLineStringWriter:()=>dN,utf16EncodeAsString:()=>Nx,validateLocaleAndSetLanguage:()=>d0e,valuesHelper:()=>E4,version:()=>qp,versionMajorMinor:()=>g_,visitArray:()=>bw,visitCommaListElements:()=>Ew,visitEachChild:()=>Sn,visitFunctionBody:()=>rf,visitIterationBody:()=>Au,visitLexicalEnvironment:()=>TK,visitNode:()=>Qe,visitNodes:()=>zn,visitParameterList:()=>Il,walkUpBindingElementsAndPatterns:()=>Mx,walkUpLexicalEnvironments:()=>ole,walkUpOuterExpressions:()=>Oae,walkUpParenthesizedExpressions:()=>My,walkUpParenthesizedTypes:()=>V2,walkUpParenthesizedTypesAndGetParentAndChild:()=>Tie,whitespaceOrMapCommentRegExp:()=>w3,writeCommentRange:()=>pR,writeFile:()=>RN,writeFileEnsuringDirectories:()=>zj,zipWith:()=>RG});var rwe=bt({"src/typescript/_namespaces/ts.ts"(){"use strict";Zo(),Vw(),ai(),ob(),Lot()}}),kot=Ns({"src/typescript/typescript.ts"(e,t){rwe(),rwe(),typeof console<"u"&&(R.loggingHost={log(r,i){switch(r){case 1:return console.error(i);case 2:return console.warn(i);case 3:return console.log(i);case 4:return console.log(i)}}}),t.exports=nwe}});return kot()})();typeof Jr<"u"&&Jr.exports&&(Jr.exports=Ar);var Uo=Ar.createClassifier,Sa=Ar.createLanguageService,ya=Ar.displayPartsToString,es=Ar.EndOfLineState,bl=Ar.flattenDiagnosticMessageText,tu=Ar.IndentStyle,Dd=Ar.ScriptKind,yv=Ar.ScriptTarget,kC=Ar.TokenClass,Cl=Ar,ki={};ki["lib.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -405,7 +405,7 @@ and limitations under the License. /// /// /// -`,Bi["lib.decorators.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.decorators.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -791,7 +791,7 @@ interface ClassFieldDecoratorContext< readonly metadata: DecoratorMetadata; } -`,Bi["lib.decorators.legacy.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.decorators.legacy.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -813,7 +813,7 @@ declare type ClassDecorator = (target: TFunction) => declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void; declare type MethodDecorator = (target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor | void; declare type ParameterDecorator = (target: Object, propertyKey: string | symbol | undefined, parameterIndex: number) => void; -`,Bi["lib.dom.asynciterable.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.dom.asynciterable.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -841,7 +841,7 @@ interface FileSystemDirectoryHandle { keys(): AsyncIterableIterator; values(): AsyncIterableIterator; } -`,Bi["lib.dom.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.dom.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -29259,7 +29259,7 @@ type WebTransportErrorSource = "session" | "stream"; type WorkerType = "classic" | "module"; type WriteCommandType = "seek" | "truncate" | "write"; type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text"; -`,Bi["lib.dom.iterable.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.dom.iterable.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -29726,7 +29726,7 @@ interface WebGLRenderingContextOverloads { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable): void; } -`,Bi["lib.es2015.collection.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2015.collection.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -29873,7 +29873,7 @@ interface WeakSetConstructor { readonly prototype: WeakSet; } declare var WeakSet: WeakSetConstructor; -`,Bi["lib.es2015.core.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2015.core.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -30430,7 +30430,7 @@ interface StringConstructor { */ raw(template: { raw: readonly string[] | ArrayLike; }, ...substitutions: any[]): string; } -`,Bi["lib.es2015.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2015.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -30458,7 +30458,7 @@ and limitations under the License. /// /// /// -`,Bi["lib.es2015.generator.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2015.generator.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -30535,7 +30535,7 @@ interface GeneratorFunctionConstructor { */ readonly prototype: GeneratorFunction; } -`,Bi["lib.es2015.iterable.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2015.iterable.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -31030,7 +31030,7 @@ interface Float64ArrayConstructor { */ from(arrayLike: Iterable, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array; } -`,Bi["lib.es2015.promise.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2015.promise.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -31111,7 +31111,7 @@ interface PromiseConstructor { } declare var Promise: PromiseConstructor; -`,Bi["lib.es2015.proxy.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2015.proxy.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -31239,7 +31239,7 @@ interface ProxyConstructor { new (target: T, handler: ProxyHandler): T; } declare var Proxy: ProxyConstructor; -`,Bi["lib.es2015.reflect.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2015.reflect.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -31383,7 +31383,7 @@ declare namespace Reflect { */ function setPrototypeOf(target: object, proto: object | null): boolean; } -`,Bi["lib.es2015.symbol.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2015.symbol.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -31429,7 +31429,7 @@ interface SymbolConstructor { } declare var Symbol: SymbolConstructor; -`,Bi["lib.es2015.symbol.wellknown.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2015.symbol.wellknown.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -31755,7 +31755,7 @@ interface SetConstructor { interface ArrayBufferConstructor { readonly [Symbol.species]: ArrayBufferConstructor; } -`,Bi["lib.es2016.array.include.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2016.array.include.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -31871,7 +31871,7 @@ interface Float64Array { */ includes(searchElement: number, fromIndex?: number): boolean; } -`,Bi["lib.es2016.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2016.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -31892,7 +31892,7 @@ and limitations under the License. /// /// /// -`,Bi["lib.es2016.full.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2016.full.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -31915,7 +31915,7 @@ and limitations under the License. /// /// /// -`,Bi["lib.es2016.intl.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2016.intl.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -31946,7 +31946,7 @@ declare namespace Intl { */ function getCanonicalLocales(locale?: string | readonly string[]): string[]; } -`,Bi["lib.es2017.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2017.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -31971,7 +31971,7 @@ and limitations under the License. /// /// /// -`,Bi["lib.es2017.date.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2017.date.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -32002,7 +32002,7 @@ interface DateConstructor { */ UTC(year: number, monthIndex?: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number; } -`,Bi["lib.es2017.full.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2017.full.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -32025,7 +32025,7 @@ and limitations under the License. /// /// /// -`,Bi["lib.es2017.intl.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2017.intl.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -32069,7 +32069,7 @@ declare namespace Intl { formatToParts(date?: Date | number): DateTimeFormatPart[]; } } -`,Bi["lib.es2017.object.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2017.object.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -32118,7 +32118,7 @@ interface ObjectConstructor { */ getOwnPropertyDescriptors(o: T): { [P in keyof T]: TypedPropertyDescriptor; } & { [x: string]: PropertyDescriptor; }; } -`,Bi["lib.es2017.sharedmemory.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2017.sharedmemory.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -32253,7 +32253,7 @@ interface Atomics { } declare var Atomics: Atomics; -`,Bi["lib.es2017.string.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2017.string.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -32298,7 +32298,7 @@ interface String { */ padEnd(maxLength: number, fillString?: string): string; } -`,Bi["lib.es2017.typedarrays.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2017.typedarrays.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -32351,7 +32351,7 @@ interface Float32ArrayConstructor { interface Float64ArrayConstructor { new (): Float64Array; } -`,Bi["lib.es2018.asyncgenerator.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2018.asyncgenerator.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -32428,7 +32428,7 @@ interface AsyncGeneratorFunctionConstructor { */ readonly prototype: AsyncGeneratorFunction; } -`,Bi["lib.es2018.asynciterable.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2018.asynciterable.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -32471,7 +32471,7 @@ interface AsyncIterable { interface AsyncIterableIterator extends AsyncIterator { [Symbol.asyncIterator](): AsyncIterableIterator; } -`,Bi["lib.es2018.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2018.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -32495,7 +32495,7 @@ and limitations under the License. /// /// /// -`,Bi["lib.es2018.full.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2018.full.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -32519,7 +32519,7 @@ and limitations under the License. /// /// /// -`,Bi["lib.es2018.intl.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2018.intl.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -32590,7 +32590,7 @@ declare namespace Intl { formatToParts(number?: number | bigint): NumberFormatPart[]; } } -`,Bi["lib.es2018.promise.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2018.promise.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -32620,7 +32620,7 @@ interface Promise { */ finally(onfinally?: (() => void) | undefined | null): Promise; } -`,Bi["lib.es2018.regexp.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2018.regexp.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -32657,7 +32657,7 @@ interface RegExp { */ readonly dotAll: boolean; } -`,Bi["lib.es2019.array.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2019.array.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -32736,7 +32736,7 @@ interface Array { depth?: D, ): FlatArray[]; } -`,Bi["lib.es2019.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2019.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -32760,7 +32760,7 @@ and limitations under the License. /// /// /// -`,Bi["lib.es2019.full.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2019.full.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -32784,7 +32784,7 @@ and limitations under the License. /// /// /// -`,Bi["lib.es2019.intl.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2019.intl.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -32807,7 +32807,7 @@ declare namespace Intl { unknown: any; } } -`,Bi["lib.es2019.object.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2019.object.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -32840,7 +32840,7 @@ interface ObjectConstructor { */ fromEntries(entries: Iterable): any; } -`,Bi["lib.es2019.string.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2019.string.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -32877,7 +32877,7 @@ interface String { */ trimRight(): string; } -`,Bi["lib.es2019.symbol.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2019.symbol.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -32901,7 +32901,7 @@ interface Symbol { */ readonly description: string | undefined; } -`,Bi["lib.es2020.bigint.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2020.bigint.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -33629,7 +33629,7 @@ declare namespace Intl { resolvedOptions(): ResolvedNumberFormatOptions; } } -`,Bi["lib.es2020.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2020.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -33656,7 +33656,7 @@ and limitations under the License. /// /// /// -`,Bi["lib.es2020.date.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2020.date.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -33698,7 +33698,7 @@ interface Date { */ toLocaleTimeString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string; } -`,Bi["lib.es2020.full.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2020.full.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -33722,7 +33722,7 @@ and limitations under the License. /// /// /// -`,Bi["lib.es2020.intl.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2020.intl.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -34171,7 +34171,7 @@ declare namespace Intl { supportedLocalesOf(locales: LocalesArgument, options?: { localeMatcher?: "lookup" | "best fit"; }): string[]; } } -`,Bi["lib.es2020.number.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2020.number.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -34199,7 +34199,7 @@ interface Number { */ toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string; } -`,Bi["lib.es2020.promise.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2020.promise.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -34246,7 +34246,7 @@ interface PromiseConstructor { */ allSettled(values: Iterable>): Promise>[]>; } -`,Bi["lib.es2020.sharedmemory.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2020.sharedmemory.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -34343,7 +34343,7 @@ interface Atomics { */ xor(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; } -`,Bi["lib.es2020.string.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2020.string.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -34385,7 +34385,7 @@ interface String { */ localeCompare(that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number; } -`,Bi["lib.es2020.symbol.wellknown.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2020.symbol.wellknown.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -34422,7 +34422,7 @@ interface RegExp { */ [Symbol.matchAll](str: string): IterableIterator; } -`,Bi["lib.es2021.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2021.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -34445,7 +34445,7 @@ and limitations under the License. /// /// /// -`,Bi["lib.es2021.full.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2021.full.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -34469,7 +34469,7 @@ and limitations under the License. /// /// /// -`,Bi["lib.es2021.intl.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2021.intl.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -34635,7 +34635,7 @@ declare namespace Intl { supportedLocalesOf(locales: LocalesArgument, options?: Pick): UnicodeBCP47LocaleIdentifier[]; }; } -`,Bi["lib.es2021.promise.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2021.promise.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -34683,7 +34683,7 @@ interface PromiseConstructor { */ any(values: Iterable>): Promise>; } -`,Bi["lib.es2021.string.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2021.string.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -34716,7 +34716,7 @@ interface String { */ replaceAll(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string; } -`,Bi["lib.es2021.weakref.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2021.weakref.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -34792,7 +34792,7 @@ interface FinalizationRegistryConstructor { } declare var FinalizationRegistry: FinalizationRegistryConstructor; -`,Bi["lib.es2022.array.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2022.array.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -34913,7 +34913,7 @@ interface BigUint64Array { */ at(index: number): bigint | undefined; } -`,Bi["lib.es2022.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2022.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -34939,7 +34939,7 @@ and limitations under the License. /// /// /// -`,Bi["lib.es2022.error.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2022.error.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -35012,7 +35012,7 @@ interface AggregateErrorConstructor { options?: ErrorOptions, ): AggregateError; } -`,Bi["lib.es2022.full.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2022.full.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -35036,7 +35036,7 @@ and limitations under the License. /// /// /// -`,Bi["lib.es2022.intl.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2022.intl.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -35153,7 +35153,7 @@ declare namespace Intl { */ function supportedValuesOf(key: "calendar" | "collation" | "currency" | "numberingSystem" | "timeZone" | "unit"): string[]; } -`,Bi["lib.es2022.object.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2022.object.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -35179,7 +35179,7 @@ interface ObjectConstructor { */ hasOwn(o: object, v: PropertyKey): boolean; } -`,Bi["lib.es2022.regexp.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2022.regexp.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -35218,7 +35218,7 @@ interface RegExp { */ readonly hasIndices: boolean; } -`,Bi["lib.es2022.sharedmemory.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2022.sharedmemory.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -35257,7 +35257,7 @@ interface Atomics { */ waitAsync(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): { async: false; value: "not-equal" | "timed-out"; } | { async: true; value: Promise<"ok" | "timed-out">; }; } -`,Bi["lib.es2022.string.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2022.string.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -35282,7 +35282,7 @@ interface String { */ at(index: number): string | undefined; } -`,Bi["lib.es2023.array.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2023.array.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -36206,7 +36206,7 @@ interface BigUint64Array { */ with(index: number, value: bigint): BigUint64Array; } -`,Bi["lib.es2023.collection.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2023.collection.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -36227,7 +36227,7 @@ and limitations under the License. interface WeakKeyTypes { symbol: symbol; } -`,Bi["lib.es2023.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2023.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -36248,7 +36248,7 @@ and limitations under the License. /// /// /// -`,Bi["lib.es2023.full.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es2023.full.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -36272,7 +36272,7 @@ and limitations under the License. /// /// /// -`,Bi["lib.es5.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es5.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -40835,7 +40835,7 @@ interface Date { */ toLocaleTimeString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string; } -`,Bi["lib.es6.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.es6.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -40858,7 +40858,7 @@ and limitations under the License. /// /// /// -`,Bi["lib.esnext.collection.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.esnext.collection.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -40887,7 +40887,7 @@ interface MapConstructor { keySelector: (item: T, index: number) => K, ): Map; } -`,Bi["lib.esnext.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.esnext.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -40912,7 +40912,7 @@ and limitations under the License. /// /// /// -`,Bi["lib.esnext.decorators.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.esnext.decorators.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -40940,7 +40940,7 @@ interface SymbolConstructor { interface Function { [Symbol.metadata]: DecoratorMetadata | null; } -`,Bi["lib.esnext.disposable.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.esnext.disposable.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -41125,7 +41125,7 @@ interface AsyncDisposableStackConstructor { readonly prototype: AsyncDisposableStack; } declare var AsyncDisposableStack: AsyncDisposableStackConstructor; -`,Bi["lib.esnext.full.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.esnext.full.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -41149,7 +41149,7 @@ and limitations under the License. /// /// /// -`,Bi["lib.esnext.intl.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.esnext.intl.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -41177,7 +41177,7 @@ declare namespace Intl { formatRangeToParts(start: number | bigint, end: number | bigint): NumberRangeFormatPart[]; } } -`,Bi["lib.esnext.object.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.esnext.object.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -41206,7 +41206,7 @@ interface ObjectConstructor { keySelector: (item: T, index: number) => K, ): Partial>; } -`,Bi["lib.esnext.promise.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.esnext.promise.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -41241,7 +41241,7 @@ interface PromiseConstructor { */ withResolvers(): PromiseWithResolvers; } -`,Bi["lib.scripthost.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.scripthost.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -41563,7 +41563,7 @@ interface DateConstructor { interface Date { getVarDate: () => VarDate; } -`,Bi["lib.webworker.asynciterable.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.webworker.asynciterable.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -41591,7 +41591,7 @@ interface FileSystemDirectoryHandle { keys(): AsyncIterableIterator; values(): AsyncIterableIterator; } -`,Bi["lib.webworker.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.webworker.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -51008,7 +51008,7 @@ type WebTransportErrorSource = "session" | "stream"; type WorkerType = "classic" | "module"; type WriteCommandType = "seek" | "truncate" | "write"; type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text"; -`,Bi["lib.webworker.importscripts.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.webworker.importscripts.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -51031,7 +51031,7 @@ and limitations under the License. ///////////////////////////// // These are only available in a Web Worker declare function importScripts(...urls: string[]): void; -`,Bi["lib.webworker.iterable.d.ts"]=`/*! ***************************************************************************** +`,ki["lib.webworker.iterable.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -51302,18 +51302,18 @@ interface WebGLRenderingContextOverloads { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable): void; } -`;function qu(th){return typeof th=="string"?/^file:\/\/\//.test(th)?!!Bi[th.substr(8)]:!1:th.path.indexOf("/lib.")===0?!!Bi[th.path.slice(1)]:!1}var QS=class nW{constructor(Ni,bt){this._extraLibs=Object.create(null),this._languageService=_o(this),this._ctx=Ni,this._compilerOptions=bt.compilerOptions,this._extraLibs=bt.extraLibs,this._inlayHintsOptions=bt.inlayHintsOptions}getCompilationSettings(){return this._compilerOptions}getLanguageService(){return this._languageService}getExtraLibs(){return this._extraLibs}getScriptFileNames(){return this._ctx.getMirrorModels().map(Cs=>Cs.uri).filter(Cs=>!qu(Cs)).map(Cs=>Cs.toString()).concat(Object.keys(this._extraLibs))}_getModel(Ni){let bt=this._ctx.getMirrorModels();for(let Cs=0;Csbt.substring(Cs,xa),getLength:()=>bt.length,getChangeRange:()=>{}}}getScriptKind(Ni){switch(Ni.substr(Ni.lastIndexOf(".")+1)){case"ts":return Nc.TS;case"tsx":return Nc.TSX;case"js":return Nc.JS;case"jsx":return Nc.JSX;default:return this.getCompilationSettings().allowJs?Nc.JS:Nc.TS}}getCurrentDirectory(){return""}getDefaultLibFileName(Ni){switch(Ni.target){case 99:let bt="lib.esnext.full.d.ts";if(bt in Bi||bt in this._extraLibs)return bt;case 7:case 6:case 5:case 4:case 3:case 2:default:let Cs=`lib.es${2013+(Ni.target||99)}.full.d.ts`;return Cs in Bi||Cs in this._extraLibs?Cs:"lib.es6.d.ts";case 1:case 0:return"lib.d.ts"}}isDefaultLibFileName(Ni){return Ni===this.getDefaultLibFileName(this._compilerOptions)}readFile(Ni){return this._getScriptText(Ni)}fileExists(Ni){return this._getScriptText(Ni)!==void 0}async getLibFiles(){return Bi}static clearFiles(Ni){let bt=[];for(let Cs of Ni){let xa={...Cs};if(xa.file=xa.file?{fileName:xa.file.fileName}:void 0,Cs.relatedInformation){xa.relatedInformation=[];for(let g_ of Cs.relatedInformation){let Jp={...g_};Jp.file=Jp.file?{fileName:Jp.file.fileName}:void 0,xa.relatedInformation.push(Jp)}}bt.push(xa)}return bt}async getSyntacticDiagnostics(Ni){if(qu(Ni))return[];let bt=this._languageService.getSyntacticDiagnostics(Ni);return nW.clearFiles(bt)}async getSemanticDiagnostics(Ni){if(qu(Ni))return[];let bt=this._languageService.getSemanticDiagnostics(Ni);return nW.clearFiles(bt)}async getSuggestionDiagnostics(Ni){if(qu(Ni))return[];let bt=this._languageService.getSuggestionDiagnostics(Ni);return nW.clearFiles(bt)}async getCompilerOptionsDiagnostics(Ni){if(qu(Ni))return[];let bt=this._languageService.getCompilerOptionsDiagnostics();return nW.clearFiles(bt)}async getCompletionsAtPosition(Ni,bt){if(!qu(Ni))return this._languageService.getCompletionsAtPosition(Ni,bt,void 0)}async getCompletionEntryDetails(Ni,bt,Cs){return this._languageService.getCompletionEntryDetails(Ni,bt,Cs,void 0,void 0,void 0,void 0)}async getSignatureHelpItems(Ni,bt,Cs){if(!qu(Ni))return this._languageService.getSignatureHelpItems(Ni,bt,Cs)}async getQuickInfoAtPosition(Ni,bt){if(!qu(Ni))return this._languageService.getQuickInfoAtPosition(Ni,bt)}async getDocumentHighlights(Ni,bt,Cs){if(!qu(Ni))return this._languageService.getDocumentHighlights(Ni,bt,Cs)}async getDefinitionAtPosition(Ni,bt){if(!qu(Ni))return this._languageService.getDefinitionAtPosition(Ni,bt)}async getReferencesAtPosition(Ni,bt){if(!qu(Ni))return this._languageService.getReferencesAtPosition(Ni,bt)}async getNavigationTree(Ni){if(!qu(Ni))return this._languageService.getNavigationTree(Ni)}async getFormattingEditsForDocument(Ni,bt){return qu(Ni)?[]:this._languageService.getFormattingEditsForDocument(Ni,bt)}async getFormattingEditsForRange(Ni,bt,Cs,xa){return qu(Ni)?[]:this._languageService.getFormattingEditsForRange(Ni,bt,Cs,xa)}async getFormattingEditsAfterKeystroke(Ni,bt,Cs,xa){return qu(Ni)?[]:this._languageService.getFormattingEditsAfterKeystroke(Ni,bt,Cs,xa)}async findRenameLocations(Ni,bt,Cs,xa,g_){if(!qu(Ni))return this._languageService.findRenameLocations(Ni,bt,Cs,xa,g_)}async getRenameInfo(Ni,bt,Cs){return qu(Ni)?{canRename:!1,localizedErrorMessage:"Cannot rename in lib file"}:this._languageService.getRenameInfo(Ni,bt,Cs)}async getEmitOutput(Ni,bt,Cs){if(qu(Ni))return{outputFiles:[],emitSkipped:!0};let xa=this._languageService.getEmitOutput(Ni,bt,Cs),g_=xa.diagnostics?nW.clearFiles(xa.diagnostics):void 0;return{...xa,diagnostics:g_}}async getCodeFixesAtPosition(Ni,bt,Cs,xa,g_){if(qu(Ni))return[];let Jp={};try{return this._languageService.getCodeFixesAtPosition(Ni,bt,Cs,xa,g_,Jp)}catch{return[]}}async updateExtraLibs(Ni){this._extraLibs=Ni}async provideInlayHints(Ni,bt,Cs){if(qu(Ni))return[];let xa=this._inlayHintsOptions??{},g_={start:bt,length:Cs-bt};try{return this._languageService.provideInlayHints(Ni,g_,xa)}catch{return[]}}};function yL(th,Ni){let bt=QS;if(Ni.customWorkerPath)if(typeof importScripts>"u")console.warn("Monaco is not using webworkers for background tasks, and that is needed to support the customWorkerPath flag");else{self.importScripts(Ni.customWorkerPath);let Cs=self.customTSWorkerFactory;if(!Cs)throw new Error(`The script at ${Ni.customWorkerPath} does not add customTSWorkerFactory to self`);bt=Cs(QS,vr,Bi)}return new bt(th,Ni)}return globalThis.ts=Cl,Yt(qt)})();return M})});var ste=R=>new Promise(function(M){let ee=new MessageChannel;ee.port1.onmessage=function(le){M(le.data)},navigator.serviceWorker.controller==null&&window.location.reload(),navigator.serviceWorker.controller.postMessage(R,[ee.port2])}),_4e=()=>{ste({type:"SET_DIR_HANDLE",data:null}),clearInterval(ate),ate=null},JS,ate,Hgt=()=>{ate==null&&(ate=setInterval(()=>{ste({type:"SET_DIR_HANDLE",data:JS})},1e4))},Kgt=async()=>(JS=await globalThis.showDirectoryPicker(),await ste({type:"SET_DIR_HANDLE",data:JS}),JS),fbe=R=>{R.navigator.serviceWorker.ready.then(()=>{R.navigator.serviceWorker.addEventListener("message",M=>{M.data.type=="GET_DIR_HANDLE"&&M.ports[0].postMessage(JS)})})},Jgt=()=>navigator.serviceWorker.register("service_worker.js").then(()=>navigator.serviceWorker.ready).then(()=>fbe(globalThis)).then(()=>ste({type:"GET_DIR_HANDLE"})).then(async R=>{if(R==null||await R.queryPermission()!="granted")return null;try{await R.entries().next()}catch{return null}return JS=R,JS}),lte=async(R,M,ee=!1,le)=>{typeof M=="string"&&(M=M.split("/"));let[Ie,...Oe]=M;if(Oe.length==0)return ee?await R.getDirectoryHandle(Ie,le):await R.getFileHandle(Ie,le);{let ft=await R.getDirectoryHandle(Ie);return lte(ft,Oe,ee,le)}},h4e=async(R,M)=>{let le=await(await lte(JS,R)).createWritable();await le.write(M),await le.close()},qgt=R=>R.name=="node_modules"||R.name.startsWith("."),Xgt=async R=>await(await R.getFile()).text(),g4e=async(R,M)=>{if(R.kind=="directory"){let ee=[];for await(let[le,Ie]of R)qgt(Ie)||ee.push(Ie);return{name:R.name,path:M,kind:"directory",children:(await Promise.all(ee.map(le=>g4e(le,M==null?le.name:M+"/"+le.name)))).sort((le,Ie)=>le.name.localeCompare(Ie.name))}}else{if(R.kind=="file")return{name:R.name,path:M,kind:"file",contents:await Xgt(R)};throw new Error("unknown kind")}},y4e=(R,M)=>lte(JS,R,M,{create:!0}),v4e=async R=>{let M=R.split("/"),ee=M.slice(0,M.length-1),le=M.at(-1),Ie;return ee.length==0?Ie=JS:Ie=await lte(JS,ee,!0),[Ie,le]},b4e=async R=>{let[M,ee]=await v4e(R);await M.removeEntry(ee,{recursive:!0})},E4e=async(R,M,ee)=>{let[le,Ie]=await v4e(R),Oe;try{await le.getFileHandle(M),Oe="file"}catch(Mt){if(Mt.name!=="NotFoundError"&&Mt.name!=="TypeMismatchError")throw Mt}try{await le.getDirectoryHandle(M),Oe="directory"}catch(Mt){if(Mt.name!=="NotFoundError"&&Mt.name!=="TypeMismatchError")throw Mt}if(Oe)return{ok:!1,message:`A ${Oe} with that name already exists`};let ft=await ee?await le.getDirectoryHandle(Ie):await le.getFileHandle(Ie);if(ee){let Mt=await le.getDirectoryHandle(M,{create:!0});await T4e(ft,Mt)}else await S4e(ft,le,M);return await le.removeEntry(Ie,{recursive:!0}),{ok:!0}};async function S4e(R,M,ee){let Ie=await(await R.getFile()).arrayBuffer(),ft=await(await M.getFileHandle(ee,{create:!0})).createWritable();await ft.write(Ie),await ft.close()}async function T4e(R,M){for await(let[ee,le]of R.entries())if(le.kind==="file")await S4e(le,M,ee);else if(le.kind==="directory"){let Ie=await M.getDirectoryHandle(ee,{create:!0});await T4e(le,Ie)}}var lL=async R=>{let M;return R?M=await Kgt():M=await Jgt(),M==null?null:(Hgt(),g4e(M,"local"))};var cte=R=>R.frames.get(R.active_calltree_node.id),dte=(R,M)=>({id:"calltree",children:[R,{id:"deferred_calls",children:M}]}),rI=R=>R.calltree.children[1].children,_v=R=>R.calltree.children[0],hv=R=>/\w+\/(.*)/.exec(R)[1],mbe=R=>R.project_dir.local_files!=null;window.addEventListener("unload",()=>{globalThis.app_window!=null&&globalThis.app_window.close()});Ygt(window);function Ygt(R){R.onerror=(M,ee,le,Ie,Oe)=>{M!="ResizeObserver loop completed with undelivered notifications."&&(globalThis.app_window!=null&&Oe instanceof globalThis.app_window.Error||(iI==null?document.write(M):iI.set_status(M)))},R.addEventListener("unhandledrejection",M=>{let ee=M.reason;globalThis.app_window!=null&&ee instanceof globalThis.app_window.Error||(iI==null?document.write(ee):iI.set_status(ee))})}var $gt=new URL("./__leporello_files",globalThis.location),_be=R=>{let M=$gt+"/";return R.html_file==null?M+"__leporello_blank.html":M+hv(R.html_file)+"?leporello"},A4e=R=>{fbe(R),fG=!1,Ys("reload_app_window_finished")},Z8,I4e=R=>{fG=!0,Z8=document.createElement("iframe"),Z8.src=_be(R),Z8.setAttribute("hidden",""),document.body.appendChild(Z8),globalThis.app_window=Z8.contentWindow,R4e(globalThis.app_window)},x4e=R=>{fG=!0,Ys("open_app_window",!0),globalThis.app_window.close(),globalThis.app_window=open(_be(R)),R4e(globalThis.app_window)},R4e=R=>{let M=()=>{let Ie=R.performance.getEntriesByType("navigation")[0];return Ie!=null&&Ie.loadEventEnd>0},ee=()=>{M()?(le(),A4e(R)):R.addEventListener("load",()=>{le(),A4e(R)},{once:!0})},le=()=>{R.addEventListener("unload",Ie=>{setTimeout(()=>{R.closed?R==globalThis.app_window&&(Ys("open_app_window",!1),globalThis.app_window=Z8.contentWindow,hbe(gv())):ee()},100)})};ee()},fG=!1,hbe=R=>{if(!fG){if(fG=!0,R==null)throw new Error("illegal state");globalThis.app_window.location=_be(R)}};var Qgt=R=>R instanceof Error||R instanceof globalThis.app_window.Error,Zgt=R=>R?.[Symbol.toStringTag]=="Promise",gbe=R=>R.clazz==null||R.clazz=="Object",pte=R=>R==null?null:R.clazz=="Promise"?R.status==null?null:pte(R.status.ok?R.status.value:R.status.error):R.array_entries!=null?Array.from(R.array_entries).map((M,ee)=>[ee,M]):R.object_entries,D4e=R=>{if(R.string!=null)return R.string;let M=R.array_entries??R.object_entries;return M==null?"":["Array","Set","Map"].includes(R.clazz)?R.clazz+"("+M.length+")":gbe(R)?"":R.clazz},xC=(R,M=!1)=>{let ee=typeof R;if(R===null)return"null";if(R===void 0)return"undefined";if(ee=="function")return"fn "+(R.name==""?"anonymous":R.name);if(ee=="string")return JSON.stringify(R);if(ee!="object")return R.toString();if(R.string!=null)return R.string;if(R.clazz=="Promise")return R.status==null?"Promise":R.status.ok?`Promise`:`Promise`;if(R.array_entries!=null){if(M)return R.clazz+"("+R.array_entries.length+")";{let[Ie,Oe,ft]=R.clazz=="Array"?["[","]",""]:["{","}",R.clazz+" "];return ft+Ie+R.array_entries.map(Mt=>xC(Mt,!0)).join(", ")+Oe}}let le=gbe(R)?"":R.clazz+" ";if(M)return gbe(R)?R.object_entries.length==0?le+"{}":"{\u2026}":R.clazz;{let Ie="{"+R.object_entries.map(([Oe,ft])=>{let Mt=R.clazz=="Map"?xC(Oe,!0):Oe,Yt=xC(ft,!0);return`${Mt}: ${Yt}`}).join(", ")+"}";return le+Ie}},ute=R=>{let M=typeof R;return R===null?"null":R===void 0?"undefined":M=="function"?"fn "+R.name:M=="string"?JSON.stringify(R):M!="object"?R.toString():Zgt(R)?R.status==null?"Promise ":R.status.ok?`Promise `:`Promise `:Qgt(R)?R.toString():Array.isArray(R)?"[\u2026]":(R.constructor?.name==null||R.constructor?.name=="Object"?"":R.constructor.name+" ")+"{\u2026}"};function Wr(R,M,...ee){let le=document.createElement(R);if(typeof M=="string")le.setAttribute("class",M);else{let Ie=M;for(let Oe in Ie){let ft=Ie[Oe];["change","click"].includes(Oe)?le.addEventListener(Oe,ft):Oe=="checked"?Ie[Oe]&&le.setAttribute(Oe,"checked"):le.setAttribute(Oe,ft)}}return ee.forEach(Ie=>{let Oe=ft=>{if(typeof ft>"u")throw new Error("illegal state");ft!==null&&ft!==!1&&le.appendChild(typeof ft=="string"?document.createTextNode(ft):ft)};Array.isArray(Ie)?Ie.forEach(Oe):Oe(Ie)}),le}function eyt(R){let M=R.name==""?"anonymous":R.name,ee=R.__location==null?`${M}`:`fn ${M}`,le=document.createElement("div");le.innerHTML=ee;let Ie=le.children[0];return R.__location!=null&&Ie.addEventListener("click",Oe=>{Oe.stopPropagation(),Ys("goto_location",JSON.parse(R.__location))}),Ie}function Tg(R){return typeof R=="function"?eyt(R):ute(R)}function cL(R,M=", "){let ee=[];for(let le=0;le{M.offsetTop-R.scrollTop-R.offsetTop<0&&M.scrollIntoView(!0),M.offsetTop-R.scrollTop-R.offsetTop-R.clientHeight+M.clientHeight>0&&M.scrollIntoView(!1)};var dL=(R,M)=>{if(M.length!=0){let[ee,...le]=M,Ie=pte(R).find(([Oe,ft])=>Oe==ee)[1];return dL(Ie,le)}else{let ee=pte(R),le=ee!=null&&ee.length>0;return{displayed_entries:ee,header:xC(R),short_header:le?D4e(R):null,is_exp:le}}},fte=class{constructor({container:M,event_target:ee=M,scroll_to_element:le,on_escape:Ie=()=>{},on_expand:Oe}={}){this.container=M,this.scroll_to_element=le,this.on_escape=Ie,this.on_expand=Oe,ee.addEventListener("keydown",ft=>{if(ft.key=="F1"){this.on_escape();return}let Mt=dL(this.value,this.current_path);if(ft.key=="ArrowDown"||ft.key=="j")if(ft.preventDefault(),Mt.is_exp&&this.is_expanded(this.current_path))this.select_path(this.current_path.concat(Mt.displayed_entries[0][0]));else{let Yt=vr=>{if(vr.length==0)return null;let _i=vr.slice(0,vr.length-1),ti=dL(this.value,_i).displayed_entries,Dr=ti.findIndex(([_o,Fa])=>_o==vr[vr.length-1]),jo=ti[Dr+1];return jo==null?Yt(_i):[..._i,jo[0]]},qt=Yt(this.current_path);qt!=null&&this.select_path(qt)}if(ft.key=="ArrowUp"||ft.key=="k"){if(ft.preventDefault(),this.current_path.length==0){this.on_escape();return}let Yt=this.current_path.slice(0,this.current_path.length-1),qt=dL(this.value,Yt).displayed_entries,vr=qt.findIndex(([ti,Dr])=>ti==this.current_path[this.current_path.length-1]),_i=qt[vr-1];if(_i==null)this.select_path(Yt);else{let ti=Dr=>{let jo=dL(this.value,Dr);if(!jo.is_exp||!this.is_expanded(Dr))return Dr;{let _o=jo.displayed_entries.map(([Fa,Us])=>Fa);return ti([...Dr,_o[_o.length-1]])}};this.select_path(ti([...Yt,_i[0]]))}}if(ft.key=="ArrowLeft"||ft.key=="h"){ft.preventDefault();let Yt=this.is_expanded(this.current_path);if(!Mt.is_exp||!Yt)if(this.current_path.length!=0){let qt=this.current_path.slice(0,this.current_path.length-1);this.select_path(qt)}else this.on_escape();else this.toggle_expanded()}if((ft.key=="ArrowRight"||ft.key=="l")&&(ft.preventDefault(),Mt.is_exp))if(!this.is_expanded(this.current_path))this.toggle_expanded();else{let qt=dL(this.value,this.current_path).displayed_entries;this.select_path([...this.current_path,qt[0][0]])}})}get_node_data(M,ee=this.node_data){if(M.length==0)return ee;{let[le,...Ie]=M;return this.get_node_data(Ie,ee.children[le])}}is_expanded(M){return this.get_node_data(M).is_expanded}on_click(M){this.select_path(M),this.toggle_expanded()}render(M,ee,le){this.value=ee,this.node_data=le;let Ie=[];this.container.appendChild(this.render_value_explorer_node(Ie,this.node_data)),this.select_path(le.is_calltree_node_explorer?["args"]:[])}select_path(M){if(this.get_node_data(M).is_calltree_node_explorer){this.on_escape();return}if(this.current_path!=null&&this.set_active(this.current_path,!1),this.current_path=M,this.set_active(this.current_path,!0),document.contains(this.container)){let ee=this.get_node_data(M).el.getElementsByClassName("value_explorer_header")[0];this.scroll_to_element==null?eW(this.container.parentNode,ee):this.scroll_to_element(ee)}}set_active(M,ee){let le=this.get_node_data(M).el.getElementsByClassName("value_explorer_header")[0];ee?le.classList.add("active"):le.classList.remove("active")}set_expanded(M){if(typeof M=="boolean")return this.set_expanded(()=>M);let ee=this.get_node_data(this.current_path);ee.is_expanded=M(ee.is_expanded);let le=ee.el,Ie=this.render_value_explorer_node(this.current_path,ee);le.parentNode.replaceChild(Ie,le)}toggle_expanded(){this.set_expanded(M=>!M),this.set_active(this.current_path,!0),this.on_expand()}render_value_explorer_node(M,ee){let le=M.length==0,Ie=M.at(-1),{displayed_entries:Oe,header:ft,short_header:Mt,is_exp:Yt}=dL(this.value,M),qt=Yt&&ee.is_expanded;ee.children??={};let vr=Wr("div","value_explorer_node "+(ee.is_calltree_node_explorer?"is_calltree_node_explorer":""),Wr("span",{class:"value_explorer_header",click:this.on_click.bind(this,M)},Wr("span","expand_icon",Yt?qt?"\u25BC":"\u25B6":"\xA0"),le?null:Wr("span","value_explorer_key",ee.label??(typeof Ie=="string"?Ie:xC(Ie)),": "),le||!Yt||!qt?ft:ee.is_arguments?"":Mt),Yt&&qt?Oe.map(([_i,ti])=>(ee.children[_i]??={},this.render_value_explorer_node([...M,_i],ee.children[_i]))):[]);return ee.el=vr,vr}};var tyt=Object.defineProperty,nyt=Object.defineProperties,ryt=Object.getOwnPropertyDescriptors,C4e=Object.getOwnPropertySymbols,iyt=Object.prototype.hasOwnProperty,oyt=Object.prototype.propertyIsEnumerable,N4e=(R,M,ee)=>M in R?tyt(R,M,{enumerable:!0,configurable:!0,writable:!0,value:ee}):R[M]=ee,k4e=(R,M)=>{for(var ee in M||(M={}))iyt.call(M,ee)&&N4e(R,ee,M[ee]);if(C4e)for(var ee of C4e(M))oyt.call(M,ee)&&N4e(R,ee,M[ee]);return R},w4e=(R,M)=>nyt(R,ryt(M)),mG=(R,M,ee)=>new Promise((le,Ie)=>{var Oe=Yt=>{try{Mt(ee.next(Yt))}catch(qt){Ie(qt)}},ft=Yt=>{try{Mt(ee.throw(Yt))}catch(qt){Ie(qt)}},Mt=Yt=>Yt.done?le(Yt.value):Promise.resolve(Yt.value).then(Oe,ft);Mt((ee=ee.apply(R,M)).next())}),ayt=(R,M)=>{let ee=`https://data.jsdelivr.com/v1/package/npm/${M}`;return vbe(R,ee,{cache:"no-store"})},syt=(R,M,ee)=>{let le=`https://data.jsdelivr.com/v1/package/resolve/npm/${M}@${ee}`;return vbe(R,le)},lyt=(R,M,ee)=>mG(void 0,null,function*(){let le=`https://data.jsdelivr.com/v1/package/npm/${M}@${ee}/flat`,Ie=yield vbe(R,le);return Ie instanceof Error?Ie:w4e(k4e({},Ie),{moduleName:M,version:ee})}),P4e=(R,M,ee,le)=>mG(void 0,null,function*(){let Ie=`https://cdn.jsdelivr.net/npm/${M}@${ee}${le}`,ft=yield(R.fetcher||fetch)(Ie);return ft.ok?ft.text():new Error("OK")});function vbe(R,M,ee){return(R.fetcher||fetch)(M,ee).then(Ie=>Ie.ok?Ie.json().then(Oe=>Oe):new Error("OK"))}var cyt=R=>{let M=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","stream/consumers","stream/web","string_decoder","sys","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"];if(R.indexOf("node:")===0||M.includes(R))return"node";let[ee="",le=""]=R.split("/");return ee.startsWith("@")?`${ee}/${le}`:ee},O4e=R=>{let M=new Map,ee=new Map,le=0,Ie=0;return ft=>(le=0,Ie=0,Oe(ft,0).then(Mt=>{var Yt,qt;Ie>0&&((qt=(Yt=R.delegate).finished)==null||qt.call(Yt,ee))}));function Oe(ft,Mt){return mG(this,null,function*(){var Yt,qt,vr,_i,ti;let Dr=uyt(R,M,ft);Dr.forEach(Cl=>M.set(Cl.module,{state:"loading"}));let _o=(yield Promise.all(Dr.map(Cl=>L4e(R,Cl.module,Cl.version)))).filter(Cl=>!("error"in Cl)),Fa=_o.filter(Cl=>Cl.files.find(Bi=>bbe(Bi.name))),Us=Fa.map(Cl=>M4e(Cl,`/node_modules/${Cl.moduleName}`)),yl=_o.filter(Cl=>!Fa.includes(Cl)),Nc=(yield Promise.all(yl.map(Cl=>L4e(R,`@types/${ybe(Cl.moduleName)}`,"latest")))).filter(Cl=>!("error"in Cl)),$S=Nc.map(Cl=>M4e(Cl,`/node_modules/@types/${ybe(Cl.moduleName).replace("types__","")}`)),yx=Us.concat($S).reduce((Cl,Bi)=>Cl.concat(Bi),[]);le+=yx.length,yx.length&&Mt===0&&((qt=(Yt=R.delegate).started)==null||qt.call(Yt));for(let Cl of _o){let Bi=`/node_modules/${Cl.moduleName}`;Nc.includes(Cl)&&(Bi=`/node_modules/@types/${ybe(Cl.moduleName).replace("types__","")}`);let qu=Bi+"/package.json",QS=yield P4e(R,Cl.moduleName,Cl.version,"/package.json");typeof QS=="string"?(ee.set(qu,QS),(_i=(vr=R.delegate).receivedFile)==null||_i.call(vr,QS,qu)):(ti=R.logger)==null||ti.error(`Could not download package.json for ${Cl.moduleName}`)}yield Promise.all(yx.map(Cl=>mG(this,null,function*(){var Bi,qu,QS;let yL=yield P4e(R,Cl.moduleName,Cl.moduleVersion,Cl.path);Ie++,yL instanceof Error?(Bi=R.logger)==null||Bi.error(`Had an issue getting ${Cl.path} for ${Cl.moduleName}`):(ee.set(Cl.vfsPath,yL),(QS=(qu=R.delegate).receivedFile)==null||QS.call(qu,yL,Cl.vfsPath),R.delegate.progress&&Ie%5===0&&R.delegate.progress(Ie,le),yield Oe(yL,Mt+1))})))})}};function M4e(R,M){let ee=[];for(let le of R.files)bbe(le.name)&&ee.push({moduleName:R.moduleName,moduleVersion:R.version,vfsPath:`${M}${le.name}`,path:le.name});return ee}var dyt=(R,M)=>{let ee=R.preProcessFile(M),le=R.libMap||new Map;return ee.referencedFiles.concat(ee.importedFiles).concat(ee.libReferenceDirectives).filter(Oe=>!bbe(Oe.fileName)).filter(Oe=>!le.has(Oe.fileName)).map(Oe=>{let ft;if(!Oe.fileName.startsWith(".")){ft="latest";let Mt=M.slice(Oe.end).split(` -`)[0];Mt.includes("// types:")&&(ft=Mt.split("// types: ")[1].trim())}return{module:Oe.fileName,version:ft}}).filter((Oe,ft,Mt)=>Mt.findIndex(Yt=>Yt.module===Oe.module&&Yt.version===Oe.version)===ft)};function uyt(R,M,ee){return dyt(R.typescript,ee).map(Oe=>w4e(k4e({},Oe),{module:cyt(Oe.module)})).filter(Oe=>!Oe.module.startsWith(".")).filter(Oe=>!M.has(Oe.module))}var L4e=(R,M,ee)=>mG(void 0,null,function*(){let le=ee||"latest";if(le.split(".").length<2){let Oe=yield syt(R,M,le);if(Oe instanceof Error)return{error:Oe,userFacingMessage:`Could not go from a tag to version on npm for ${M} - possible typo?`};let ft=Oe.version;if(!ft){let Mt=yield ayt(R,M);if(Mt instanceof Error)return{error:Oe,userFacingMessage:`Could not get versions on npm for ${M} - possible typo?`};let Yt=Object.entries(Mt.tags).join(", ");return{error:new Error("Could not find tag for module"),userFacingMessage:`Could not find a tag for ${M} called ${ee}. Did find ${Yt}`}}le=ft}let Ie=yield lyt(R,M,le);return Ie instanceof Error?{error:Ie,userFacingMessage:`Could not get the files for ${M}@${le}. Is it possibly a typo?`}:Ie});function ybe(R){return R.indexOf("@")===0&&R.indexOf("/")!==-1&&(R=R.substr(1).replace("/","__")),R}function bbe(R){return/\.d\.([^\.]+\.)?[cm]?ts$/i.test(R)}var RC={name:"leporello.d.ts",value:` +`;function qu(nh){return typeof nh=="string"?/^file:\/\/\//.test(nh)?!!ki[nh.substr(8)]:!1:nh.path.indexOf("/lib.")===0?!!ki[nh.path.slice(1)]:!1}var QS=class rW{constructor(Ni,bt){this._extraLibs=Object.create(null),this._languageService=Sa(this),this._ctx=Ni,this._compilerOptions=bt.compilerOptions,this._extraLibs=bt.extraLibs,this._inlayHintsOptions=bt.inlayHintsOptions}getCompilationSettings(){return this._compilerOptions}getLanguageService(){return this._languageService}getExtraLibs(){return this._extraLibs}getScriptFileNames(){return this._ctx.getMirrorModels().map(Ns=>Ns.uri).filter(Ns=>!qu(Ns)).map(Ns=>Ns.toString()).concat(Object.keys(this._extraLibs))}_getModel(Ni){let bt=this._ctx.getMirrorModels();for(let Ns=0;Nsbt.substring(Ns,Ra),getLength:()=>bt.length,getChangeRange:()=>{}}}getScriptKind(Ni){switch(Ni.substr(Ni.lastIndexOf(".")+1)){case"ts":return Dd.TS;case"tsx":return Dd.TSX;case"js":return Dd.JS;case"jsx":return Dd.JSX;default:return this.getCompilationSettings().allowJs?Dd.JS:Dd.TS}}getCurrentDirectory(){return""}getDefaultLibFileName(Ni){switch(Ni.target){case 99:let bt="lib.esnext.full.d.ts";if(bt in ki||bt in this._extraLibs)return bt;case 7:case 6:case 5:case 4:case 3:case 2:default:let Ns=`lib.es${2013+(Ni.target||99)}.full.d.ts`;return Ns in ki||Ns in this._extraLibs?Ns:"lib.es6.d.ts";case 1:case 0:return"lib.d.ts"}}isDefaultLibFileName(Ni){return Ni===this.getDefaultLibFileName(this._compilerOptions)}readFile(Ni){return this._getScriptText(Ni)}fileExists(Ni){return this._getScriptText(Ni)!==void 0}async getLibFiles(){return ki}static clearFiles(Ni){let bt=[];for(let Ns of Ni){let Ra={...Ns};if(Ra.file=Ra.file?{fileName:Ra.file.fileName}:void 0,Ns.relatedInformation){Ra.relatedInformation=[];for(let g_ of Ns.relatedInformation){let qp={...g_};qp.file=qp.file?{fileName:qp.file.fileName}:void 0,Ra.relatedInformation.push(qp)}}bt.push(Ra)}return bt}async getSyntacticDiagnostics(Ni){if(qu(Ni))return[];let bt=this._languageService.getSyntacticDiagnostics(Ni);return rW.clearFiles(bt)}async getSemanticDiagnostics(Ni){if(qu(Ni))return[];let bt=this._languageService.getSemanticDiagnostics(Ni);return rW.clearFiles(bt)}async getSuggestionDiagnostics(Ni){if(qu(Ni))return[];let bt=this._languageService.getSuggestionDiagnostics(Ni);return rW.clearFiles(bt)}async getCompilerOptionsDiagnostics(Ni){if(qu(Ni))return[];let bt=this._languageService.getCompilerOptionsDiagnostics();return rW.clearFiles(bt)}async getCompletionsAtPosition(Ni,bt){if(!qu(Ni))return this._languageService.getCompletionsAtPosition(Ni,bt,void 0)}async getCompletionEntryDetails(Ni,bt,Ns){return this._languageService.getCompletionEntryDetails(Ni,bt,Ns,void 0,void 0,void 0,void 0)}async getSignatureHelpItems(Ni,bt,Ns){if(!qu(Ni))return this._languageService.getSignatureHelpItems(Ni,bt,Ns)}async getQuickInfoAtPosition(Ni,bt){if(!qu(Ni))return this._languageService.getQuickInfoAtPosition(Ni,bt)}async getDocumentHighlights(Ni,bt,Ns){if(!qu(Ni))return this._languageService.getDocumentHighlights(Ni,bt,Ns)}async getDefinitionAtPosition(Ni,bt){if(!qu(Ni))return this._languageService.getDefinitionAtPosition(Ni,bt)}async getReferencesAtPosition(Ni,bt){if(!qu(Ni))return this._languageService.getReferencesAtPosition(Ni,bt)}async getNavigationTree(Ni){if(!qu(Ni))return this._languageService.getNavigationTree(Ni)}async getFormattingEditsForDocument(Ni,bt){return qu(Ni)?[]:this._languageService.getFormattingEditsForDocument(Ni,bt)}async getFormattingEditsForRange(Ni,bt,Ns,Ra){return qu(Ni)?[]:this._languageService.getFormattingEditsForRange(Ni,bt,Ns,Ra)}async getFormattingEditsAfterKeystroke(Ni,bt,Ns,Ra){return qu(Ni)?[]:this._languageService.getFormattingEditsAfterKeystroke(Ni,bt,Ns,Ra)}async findRenameLocations(Ni,bt,Ns,Ra,g_){if(!qu(Ni))return this._languageService.findRenameLocations(Ni,bt,Ns,Ra,g_)}async getRenameInfo(Ni,bt,Ns){return qu(Ni)?{canRename:!1,localizedErrorMessage:"Cannot rename in lib file"}:this._languageService.getRenameInfo(Ni,bt,Ns)}async getEmitOutput(Ni,bt,Ns){if(qu(Ni))return{outputFiles:[],emitSkipped:!0};let Ra=this._languageService.getEmitOutput(Ni,bt,Ns),g_=Ra.diagnostics?rW.clearFiles(Ra.diagnostics):void 0;return{...Ra,diagnostics:g_}}async getCodeFixesAtPosition(Ni,bt,Ns,Ra,g_){if(qu(Ni))return[];let qp={};try{return this._languageService.getCodeFixesAtPosition(Ni,bt,Ns,Ra,g_,qp)}catch{return[]}}async updateExtraLibs(Ni){this._extraLibs=Ni}async provideInlayHints(Ni,bt,Ns){if(qu(Ni))return[];let Ra=this._inlayHintsOptions??{},g_={start:bt,length:Ns-bt};try{return this._languageService.provideInlayHints(Ni,g_,Ra)}catch{return[]}}};function vL(nh,Ni){let bt=QS;if(Ni.customWorkerPath)if(typeof importScripts>"u")console.warn("Monaco is not using webworkers for background tasks, and that is needed to support the customWorkerPath flag");else{self.importScripts(Ni.customWorkerPath);let Ns=self.customTSWorkerFactory;if(!Ns)throw new Error(`The script at ${Ni.customWorkerPath} does not add customTSWorkerFactory to self`);bt=Ns(QS,cr,ki)}return new bt(nh,Ni)}return globalThis.ts=Cl,Gt(Vt)})();return P})});var ste=x=>new Promise(function(P){let Q=new MessageChannel;Q.port1.onmessage=function(ae){P(ae.data)},navigator.serviceWorker.controller==null&&window.location.reload(),navigator.serviceWorker.controller.postMessage(x,[Q.port2])}),E4e=()=>{ste({type:"SET_DIR_HANDLE",data:null}),clearInterval(ate),ate=null},qS,ate,Qgt=()=>{ate==null&&(ate=setInterval(()=>{ste({type:"SET_DIR_HANDLE",data:qS})},1e4))},Zgt=async()=>(qS=await globalThis.showDirectoryPicker(),await ste({type:"SET_DIR_HANDLE",data:qS}),qS),ybe=x=>{x.navigator.serviceWorker.ready.then(()=>{x.navigator.serviceWorker.addEventListener("message",P=>{P.data.type=="GET_DIR_HANDLE"&&P.ports[0].postMessage(qS)})})},eyt=()=>navigator.serviceWorker.register("service_worker.js").then(()=>navigator.serviceWorker.ready).then(()=>ybe(globalThis)).then(()=>ste({type:"GET_DIR_HANDLE"})).then(async x=>{if(x==null||await x.queryPermission()!="granted")return null;try{await x.entries().next()}catch{return null}return qS=x,qS}),lte=async(x,P,Q=!1,ae)=>{typeof P=="string"&&(P=P.split("/"));let[Ee,...Oe]=P;if(Oe.length==0)return Q?await x.getDirectoryHandle(Ee,ae):await x.getFileHandle(Ee,ae);{let ut=await x.getDirectoryHandle(Ee);return lte(ut,Oe,Q,ae)}},S4e=async(x,P)=>{let ae=await(await lte(qS,x)).createWritable();await ae.write(P),await ae.close()},tyt=x=>x.name=="node_modules"||x.name.startsWith("."),nyt=async x=>await(await x.getFile()).text(),T4e=async(x,P)=>{if(x.kind=="directory"){let Q=[];for await(let[ae,Ee]of x)tyt(Ee)||Q.push(Ee);return{name:x.name,path:P,kind:"directory",children:(await Promise.all(Q.map(ae=>T4e(ae,P==null?ae.name:P+"/"+ae.name)))).sort((ae,Ee)=>ae.name.localeCompare(Ee.name))}}else{if(x.kind=="file")return{name:x.name,path:P,kind:"file",contents:await nyt(x)};throw new Error("unknown kind")}},A4e=(x,P)=>lte(qS,x,P,{create:!0}),I4e=async x=>{let P=x.split("/"),Q=P.slice(0,P.length-1),ae=P.at(-1),Ee;return Q.length==0?Ee=qS:Ee=await lte(qS,Q,!0),[Ee,ae]},x4e=async x=>{let[P,Q]=await I4e(x);await P.removeEntry(Q,{recursive:!0})},R4e=async(x,P,Q)=>{let[ae,Ee]=await I4e(x),Oe;try{await ae.getFileHandle(P),Oe="file"}catch(Rt){if(Rt.name!=="NotFoundError"&&Rt.name!=="TypeMismatchError")throw Rt}try{await ae.getDirectoryHandle(P),Oe="directory"}catch(Rt){if(Rt.name!=="NotFoundError"&&Rt.name!=="TypeMismatchError")throw Rt}if(Oe)return{ok:!1,message:`A ${Oe} with that name already exists`};let ut=await Q?await ae.getDirectoryHandle(Ee):await ae.getFileHandle(Ee);if(Q){let Rt=await ae.getDirectoryHandle(P,{create:!0});await C4e(ut,Rt)}else await D4e(ut,ae,P);return await ae.removeEntry(Ee,{recursive:!0}),{ok:!0}};async function D4e(x,P,Q){let Ee=await(await x.getFile()).arrayBuffer(),ut=await(await P.getFileHandle(Q,{create:!0})).createWritable();await ut.write(Ee),await ut.close()}async function C4e(x,P){for await(let[Q,ae]of x.entries())if(ae.kind==="file")await D4e(ae,P,Q);else if(ae.kind==="directory"){let Ee=await P.getDirectoryHandle(Q,{create:!0});await C4e(ae,Ee)}}var cL=async x=>{let P;return x?P=await Zgt():P=await eyt(),P==null?null:(Qgt(),T4e(P,"local"))};var cte=x=>x.frames.get(x.active_calltree_node.id),dte=(x,P)=>({id:"calltree",children:[x,{id:"deferred_calls",children:P}]}),rI=x=>x.calltree.children[1].children,yy=x=>x.calltree.children[0],hv=x=>/\w+\/(.*)/.exec(x)[1],vbe=x=>x.project_dir.local_files!=null;window.addEventListener("unload",()=>{globalThis.app_window!=null&&globalThis.app_window.close()});ryt(window);function ryt(x){x.onerror=(P,Q,ae,Ee,Oe)=>{P!="ResizeObserver loop completed with undelivered notifications."&&(globalThis.app_window!=null&&Oe instanceof globalThis.app_window.Error||(iI==null?document.write(P):iI.set_status(P)))},x.addEventListener("unhandledrejection",P=>{let Q=P.reason;globalThis.app_window!=null&&Q instanceof globalThis.app_window.Error||(iI==null?document.write(Q):iI.set_status(Q))})}var iyt=new URL("./__leporello_files",globalThis.location),bbe=x=>{let P=iyt+"/";return x.html_file==null?P+"__leporello_blank.html":P+hv(x.html_file)+"?leporello"},N4e=x=>{ybe(x),fG=!1,Os("reload_app_window_finished")},eW,P4e=x=>{fG=!0,eW=document.createElement("iframe"),eW.src=bbe(x),eW.setAttribute("hidden",""),document.body.appendChild(eW),globalThis.app_window=eW.contentWindow,L4e(globalThis.app_window)},M4e=x=>{fG=!0,Os("open_app_window",!0),globalThis.app_window.close(),globalThis.app_window=open(bbe(x)),L4e(globalThis.app_window)},L4e=x=>{let P=()=>{let Ee=x.performance.getEntriesByType("navigation")[0];return Ee!=null&&Ee.loadEventEnd>0},Q=()=>{P()?(ae(),N4e(x)):x.addEventListener("load",()=>{ae(),N4e(x)},{once:!0})},ae=()=>{x.addEventListener("unload",Ee=>{setTimeout(()=>{x.closed?x==globalThis.app_window&&(Os("open_app_window",!1),globalThis.app_window=eW.contentWindow,Ebe(gv())):Q()},100)})};Q()},fG=!1,Ebe=x=>{if(!fG){if(fG=!0,x==null)throw new Error("illegal state");globalThis.app_window.location=bbe(x)}};var oyt=x=>x instanceof Error||x instanceof globalThis.app_window.Error,ayt=x=>x?.[Symbol.toStringTag]=="Promise",Sbe=x=>x.clazz==null||x.clazz=="Object",pte=x=>x==null?null:x.clazz=="Promise"?x.status==null?null:pte(x.status.ok?x.status.value:x.status.error):x.array_entries!=null?Array.from(x.array_entries).map((P,Q)=>[Q,P]):x.object_entries,k4e=x=>{if(x.string!=null)return x.string;let P=x.array_entries??x.object_entries;return P==null?"":["Array","Set","Map"].includes(x.clazz)?x.clazz+"("+P.length+")":Sbe(x)?"":x.clazz},IC=(x,P=!1)=>{let Q=typeof x;if(x===null)return"null";if(x===void 0)return"undefined";if(Q=="function")return"fn "+(x.name==""?"anonymous":x.name);if(Q=="string")return JSON.stringify(x);if(Q!="object")return x.toString();if(x.string!=null)return x.string;if(x.clazz=="Promise")return x.status==null?"Promise":x.status.ok?`Promise`:`Promise`;if(x.array_entries!=null){if(P)return x.clazz+"("+x.array_entries.length+")";{let[Ee,Oe,ut]=x.clazz=="Array"?["[","]",""]:["{","}",x.clazz+" "];return ut+Ee+x.array_entries.map(Rt=>IC(Rt,!0)).join(", ")+Oe}}let ae=Sbe(x)?"":x.clazz+" ";if(P)return Sbe(x)?x.object_entries.length==0?ae+"{}":"{\u2026}":x.clazz;{let Ee="{"+x.object_entries.map(([Oe,ut])=>{let Rt=x.clazz=="Map"?IC(Oe,!0):Oe,Gt=IC(ut,!0);return`${Rt}: ${Gt}`}).join(", ")+"}";return ae+Ee}},ute=x=>{let P=typeof x;return x===null?"null":x===void 0?"undefined":P=="function"?"fn "+x.name:P=="string"?JSON.stringify(x):P!="object"?x.toString():ayt(x)?x.status==null?"Promise ":x.status.ok?`Promise `:`Promise `:oyt(x)?x.toString():Array.isArray(x)?"[\u2026]":(x.constructor?.name==null||x.constructor?.name=="Object"?"":x.constructor.name+" ")+"{\u2026}"};function Mr(x,P,...Q){let ae=document.createElement(x);if(typeof P=="string")ae.setAttribute("class",P);else{let Ee=P;for(let Oe in Ee){let ut=Ee[Oe];["change","click"].includes(Oe)?ae.addEventListener(Oe,ut):Oe=="checked"?Ee[Oe]&&ae.setAttribute(Oe,"checked"):ae.setAttribute(Oe,ut)}}return Q.forEach(Ee=>{let Oe=ut=>{if(typeof ut>"u")throw new Error("illegal state");ut!==null&&ut!==!1&&ae.appendChild(typeof ut=="string"?document.createTextNode(ut):ut)};Array.isArray(Ee)?Ee.forEach(Oe):Oe(Ee)}),ae}function syt(x){let P=x.name==""?"anonymous":x.name,Q=x.__location==null?`${P}`:`fn ${P}`,ae=document.createElement("div");ae.innerHTML=Q;let Ee=ae.children[0];return x.__location!=null&&Ee.addEventListener("click",Oe=>{Oe.stopPropagation(),Os("goto_location",JSON.parse(x.__location))}),Ee}function Ag(x){return typeof x=="function"?syt(x):ute(x)}function dL(x,P=", "){let Q=[];for(let ae=0;ae{P.offsetTop-x.scrollTop-x.offsetTop<0&&P.scrollIntoView(!0),P.offsetTop-x.scrollTop-x.offsetTop-x.clientHeight+P.clientHeight>0&&P.scrollIntoView(!1)};var uL=(x,P)=>{if(P.length!=0){let[Q,...ae]=P,Ee=pte(x).find(([Oe,ut])=>Oe==Q)[1];return uL(Ee,ae)}else{let Q=pte(x),ae=Q!=null&&Q.length>0;return{displayed_entries:Q,header:IC(x),short_header:ae?k4e(x):null,is_exp:ae}}},fte=class{constructor({container:P,event_target:Q=P,scroll_to_element:ae,on_escape:Ee=()=>{},on_expand:Oe}={}){this.container=P,this.scroll_to_element=ae,this.on_escape=Ee,this.on_expand=Oe,Q.addEventListener("keydown",ut=>{if(ut.key=="F1"){this.on_escape();return}let Rt=uL(this.value,this.current_path);if(ut.key=="ArrowDown"||ut.key=="j")if(ut.preventDefault(),Rt.is_exp&&this.is_expanded(this.current_path))this.select_path(this.current_path.concat(Rt.displayed_entries[0][0]));else{let Gt=cr=>{if(cr.length==0)return null;let ci=cr.slice(0,cr.length-1),Jr=uL(this.value,ci).displayed_entries,Ar=Jr.findIndex(([Sa,ya])=>Sa==cr[cr.length-1]),Uo=Jr[Ar+1];return Uo==null?Gt(ci):[...ci,Uo[0]]},Vt=Gt(this.current_path);Vt!=null&&this.select_path(Vt)}if(ut.key=="ArrowUp"||ut.key=="k"){if(ut.preventDefault(),this.current_path.length==0){this.on_escape();return}let Gt=this.current_path.slice(0,this.current_path.length-1),Vt=uL(this.value,Gt).displayed_entries,cr=Vt.findIndex(([Jr,Ar])=>Jr==this.current_path[this.current_path.length-1]),ci=Vt[cr-1];if(ci==null)this.select_path(Gt);else{let Jr=Ar=>{let Uo=uL(this.value,Ar);if(!Uo.is_exp||!this.is_expanded(Ar))return Ar;{let Sa=Uo.displayed_entries.map(([ya,es])=>ya);return Jr([...Ar,Sa[Sa.length-1]])}};this.select_path(Jr([...Gt,ci[0]]))}}if(ut.key=="ArrowLeft"||ut.key=="h"){ut.preventDefault();let Gt=this.is_expanded(this.current_path);if(!Rt.is_exp||!Gt)if(this.current_path.length!=0){let Vt=this.current_path.slice(0,this.current_path.length-1);this.select_path(Vt)}else this.on_escape();else this.toggle_expanded()}if((ut.key=="ArrowRight"||ut.key=="l")&&(ut.preventDefault(),Rt.is_exp))if(!this.is_expanded(this.current_path))this.toggle_expanded();else{let Vt=uL(this.value,this.current_path).displayed_entries;this.select_path([...this.current_path,Vt[0][0]])}})}get_node_data(P,Q=this.node_data){if(P.length==0)return Q;{let[ae,...Ee]=P;return this.get_node_data(Ee,Q.children[ae])}}is_expanded(P){return this.get_node_data(P).is_expanded}on_click(P){this.select_path(P),this.toggle_expanded()}render(P,Q,ae){this.value=Q,this.node_data=ae;let Ee=[];this.container.appendChild(this.render_value_explorer_node(Ee,this.node_data)),this.select_path(ae.is_calltree_node_explorer?["args"]:[])}select_path(P){if(this.get_node_data(P).is_calltree_node_explorer){this.on_escape();return}if(this.current_path!=null&&this.set_active(this.current_path,!1),this.current_path=P,this.set_active(this.current_path,!0),document.contains(this.container)){let Q=this.get_node_data(P).el.getElementsByClassName("value_explorer_header")[0];this.scroll_to_element==null?tW(this.container.parentNode,Q):this.scroll_to_element(Q)}}set_active(P,Q){let ae=this.get_node_data(P).el.getElementsByClassName("value_explorer_header")[0];Q?ae.classList.add("active"):ae.classList.remove("active")}set_expanded(P){if(typeof P=="boolean")return this.set_expanded(()=>P);let Q=this.get_node_data(this.current_path);Q.is_expanded=P(Q.is_expanded);let ae=Q.el,Ee=this.render_value_explorer_node(this.current_path,Q);ae.parentNode.replaceChild(Ee,ae)}toggle_expanded(){this.set_expanded(P=>!P),this.set_active(this.current_path,!0),this.on_expand()}render_value_explorer_node(P,Q){let ae=P.length==0,Ee=P.at(-1),{displayed_entries:Oe,header:ut,short_header:Rt,is_exp:Gt}=uL(this.value,P),Vt=Gt&&Q.is_expanded;Q.children??={};let cr=Mr("div","value_explorer_node "+(Q.is_calltree_node_explorer?"is_calltree_node_explorer":""),Mr("span",{class:"value_explorer_header",click:this.on_click.bind(this,P)},Mr("span","expand_icon",Gt?Vt?"\u25BC":"\u25B6":"\xA0"),ae?null:Mr("span","value_explorer_key",Q.label??(typeof Ee=="string"?Ee:IC(Ee)),": "),ae||!Gt||!Vt?ut:Q.is_arguments?"":Rt),Gt&&Vt?Oe.map(([ci,Jr])=>(Q.children[ci]??={},this.render_value_explorer_node([...P,ci],Q.children[ci]))):[]);return Q.el=cr,cr}};var lyt=Object.defineProperty,cyt=Object.defineProperties,dyt=Object.getOwnPropertyDescriptors,w4e=Object.getOwnPropertySymbols,uyt=Object.prototype.hasOwnProperty,pyt=Object.prototype.propertyIsEnumerable,O4e=(x,P,Q)=>P in x?lyt(x,P,{enumerable:!0,configurable:!0,writable:!0,value:Q}):x[P]=Q,B4e=(x,P)=>{for(var Q in P||(P={}))uyt.call(P,Q)&&O4e(x,Q,P[Q]);if(w4e)for(var Q of w4e(P))pyt.call(P,Q)&&O4e(x,Q,P[Q]);return x},G4e=(x,P)=>cyt(x,dyt(P)),mG=(x,P,Q)=>new Promise((ae,Ee)=>{var Oe=Gt=>{try{Rt(Q.next(Gt))}catch(Vt){Ee(Vt)}},ut=Gt=>{try{Rt(Q.throw(Gt))}catch(Vt){Ee(Vt)}},Rt=Gt=>Gt.done?ae(Gt.value):Promise.resolve(Gt.value).then(Oe,ut);Rt((Q=Q.apply(x,P)).next())}),fyt=(x,P)=>{let Q=`https://data.jsdelivr.com/v1/package/npm/${P}`;return Abe(x,Q,{cache:"no-store"})},myt=(x,P,Q)=>{let ae=`https://data.jsdelivr.com/v1/package/resolve/npm/${P}@${Q}`;return Abe(x,ae)},_yt=(x,P,Q)=>mG(void 0,null,function*(){let ae=`https://data.jsdelivr.com/v1/package/npm/${P}@${Q}/flat`,Ee=yield Abe(x,ae);return Ee instanceof Error?Ee:G4e(B4e({},Ee),{moduleName:P,version:Q})}),W4e=(x,P,Q,ae)=>mG(void 0,null,function*(){let Ee=`https://cdn.jsdelivr.net/npm/${P}@${Q}${ae}`,ut=yield(x.fetcher||fetch)(Ee);return ut.ok?ut.text():new Error("OK")});function Abe(x,P,Q){return(x.fetcher||fetch)(P,Q).then(Ee=>Ee.ok?Ee.json().then(Oe=>Oe):new Error("OK"))}var hyt=x=>{let P=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","stream/consumers","stream/web","string_decoder","sys","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"];if(x.indexOf("node:")===0||P.includes(x))return"node";let[Q="",ae=""]=x.split("/");return Q.startsWith("@")?`${Q}/${ae}`:Q},V4e=x=>{let P=new Map,Q=new Map,ae=0,Ee=0;return ut=>(ae=0,Ee=0,Oe(ut,0).then(Rt=>{var Gt,Vt;Ee>0&&((Vt=(Gt=x.delegate).finished)==null||Vt.call(Gt,Q))}));function Oe(ut,Rt){return mG(this,null,function*(){var Gt,Vt,cr,ci,Jr;let Ar=yyt(x,P,ut);Ar.forEach(Cl=>P.set(Cl.module,{state:"loading"}));let Sa=(yield Promise.all(Ar.map(Cl=>z4e(x,Cl.module,Cl.version)))).filter(Cl=>!("error"in Cl)),ya=Sa.filter(Cl=>Cl.files.find(ki=>Ibe(ki.name))),es=ya.map(Cl=>F4e(Cl,`/node_modules/${Cl.moduleName}`)),bl=Sa.filter(Cl=>!ya.includes(Cl)),Dd=(yield Promise.all(bl.map(Cl=>z4e(x,`@types/${Tbe(Cl.moduleName)}`,"latest")))).filter(Cl=>!("error"in Cl)),yv=Dd.map(Cl=>F4e(Cl,`/node_modules/@types/${Tbe(Cl.moduleName).replace("types__","")}`)),kC=es.concat(yv).reduce((Cl,ki)=>Cl.concat(ki),[]);ae+=kC.length,kC.length&&Rt===0&&((Vt=(Gt=x.delegate).started)==null||Vt.call(Gt));for(let Cl of Sa){let ki=`/node_modules/${Cl.moduleName}`;Dd.includes(Cl)&&(ki=`/node_modules/@types/${Tbe(Cl.moduleName).replace("types__","")}`);let qu=ki+"/package.json",QS=yield W4e(x,Cl.moduleName,Cl.version,"/package.json");typeof QS=="string"?(Q.set(qu,QS),(ci=(cr=x.delegate).receivedFile)==null||ci.call(cr,QS,qu)):(Jr=x.logger)==null||Jr.error(`Could not download package.json for ${Cl.moduleName}`)}yield Promise.all(kC.map(Cl=>mG(this,null,function*(){var ki,qu,QS;let vL=yield W4e(x,Cl.moduleName,Cl.moduleVersion,Cl.path);Ee++,vL instanceof Error?(ki=x.logger)==null||ki.error(`Had an issue getting ${Cl.path} for ${Cl.moduleName}`):(Q.set(Cl.vfsPath,vL),(QS=(qu=x.delegate).receivedFile)==null||QS.call(qu,vL,Cl.vfsPath),x.delegate.progress&&Ee%5===0&&x.delegate.progress(Ee,ae),yield Oe(vL,Rt+1))})))})}};function F4e(x,P){let Q=[];for(let ae of x.files)Ibe(ae.name)&&Q.push({moduleName:x.moduleName,moduleVersion:x.version,vfsPath:`${P}${ae.name}`,path:ae.name});return Q}var gyt=(x,P)=>{let Q=x.preProcessFile(P),ae=x.libMap||new Map;return Q.referencedFiles.concat(Q.importedFiles).concat(Q.libReferenceDirectives).filter(Oe=>!Ibe(Oe.fileName)).filter(Oe=>!ae.has(Oe.fileName)).map(Oe=>{let ut;if(!Oe.fileName.startsWith(".")){ut="latest";let Rt=P.slice(Oe.end).split(` +`)[0];Rt.includes("// types:")&&(ut=Rt.split("// types: ")[1].trim())}return{module:Oe.fileName,version:ut}}).filter((Oe,ut,Rt)=>Rt.findIndex(Gt=>Gt.module===Oe.module&&Gt.version===Oe.version)===ut)};function yyt(x,P,Q){return gyt(x.typescript,Q).map(Oe=>G4e(B4e({},Oe),{module:hyt(Oe.module)})).filter(Oe=>!Oe.module.startsWith(".")).filter(Oe=>!P.has(Oe.module))}var z4e=(x,P,Q)=>mG(void 0,null,function*(){let ae=Q||"latest";if(ae.split(".").length<2){let Oe=yield myt(x,P,ae);if(Oe instanceof Error)return{error:Oe,userFacingMessage:`Could not go from a tag to version on npm for ${P} - possible typo?`};let ut=Oe.version;if(!ut){let Rt=yield fyt(x,P);if(Rt instanceof Error)return{error:Oe,userFacingMessage:`Could not get versions on npm for ${P} - possible typo?`};let Gt=Object.entries(Rt.tags).join(", ");return{error:new Error("Could not find tag for module"),userFacingMessage:`Could not find a tag for ${P} called ${Q}. Did find ${Gt}`}}ae=ut}let Ee=yield _yt(x,P,ae);return Ee instanceof Error?{error:Ee,userFacingMessage:`Could not get the files for ${P}@${ae}. Is it possibly a typo?`}:Ee});function Tbe(x){return x.indexOf("@")===0&&x.indexOf("/")!==-1&&(x=x.substr(1).replace("/","__")),x}function Ibe(x){return/\.d\.([^\.]+\.)?[cm]?ts$/i.test(x)}var xC={name:"leporello.d.ts",value:` declare var leporello: { storage: Map } - `};var _G,hG,_te,CC,xbe,gG=new Promise(R=>xbe=R);function Dbe(R,M){let ee=monaco.Uri.file(R),le=monaco.editor.getModel(ee);return le??(Nbe(M),monaco.editor.createModel(M,"typescript",ee))}function H4e(R){let M=monaco.Uri.file(R),ee=monaco.editor.getModel(M);ee?.dispose()}async function K4e(){return await new Promise(R=>setTimeout(R,0)),hG.getLanguageService().getProgram()}var Rbe="customWorkerPathToken";globalThis.importScripts=R=>{if(R!=Rbe)throw new Error("illegal state");delete globalThis.importScripts};globalThis.customTSWorkerFactory=(R,M)=>(delete globalThis.customTSWorkerFactory,class extends R{constructor(...le){super(...le),hG=this,_G=M.typescript,Cbe?(J4e(_G),hG.getLibFiles().then(Ie=>xbe([_G,Ie]))):xbe([_G])}async getSyntacticDiagnostics(le,...Ie){let Oe=globalThis.parse_ts_blacklist,Mt=this.getLanguageService().getProgram().getSourceFile(le),Yt=await super.getSyntacticDiagnostics(le,...Ie);if(Mt==null)return Yt;let qt=Oe(Mt);return[...Yt,...qt]}});function J4e(R){CC={moduleResolution:Cbe?void 0:globalThis.monaco?.languages.typescript.ModuleResolutionKind.NodeJs,moduleDetection:3,target:R.ScriptTarget.Latest,module:R.ModuleKind.ESNext,lib:["lib.esnext.d.ts","lib.dom.d.ts",RC.name],noEmitOnError:!0,verbatimModuleSyntax:!0,jsx:R.JsxEmit.React,noResolve:!0,skipLibCheck:!0,allowJs:!0,checkJs:!0,noEmit:!0,allowNonTsExtensions:!0}}var Cbe=globalThis.process!=null;if(Cbe){let R=Object.getOwnPropertyDescriptor(globalThis,"process");Object.defineProperty(globalThis,"process",{value:void 0});let M;globalThis.define=(ee,le,Ie)=>M=Ie(),await Promise.resolve().then(()=>(U4e(),pyt)),Object.defineProperty(globalThis,"process",R),globalThis.self=globalThis,M.create(null,{customWorkerPath:Rbe}),delete globalThis.self}else ote.config({paths:{vs:window.location.origin+"/lib/monaco/vs","monaco-vim":"/lib/monaco-vim.js"}}),self.MonacoEnvironment={getWorker:()=>null},ote(["vs/editor/editor.main"],async function(){ote(["monaco-vim"],M=>{_te=M}),monaco.languages.typescript.typescriptDefaults.setWorkerOptions({customWorkerPath:Rbe}),J4e(monaco.languages.typescript),monaco.languages.typescript.typescriptDefaults.setCompilerOptions(CC),monaco.languages.typescript.typescriptDefaults.addExtraLib(RC.value,RC.name);let R=monaco.editor.createModel("","typescript");await gG,R.dispose()});await gG;var Nbe=O4e({typescript:_G,logger:console,delegate:{receivedFile:fyt}});function fyt(R,M){let ee="file://"+M;monaco.languages.typescript.typescriptDefaults.addExtraLib(R,ee)}function Pbe(R){let M,ee=!1,le=!1;new MutationObserver(()=>{if(!ee){if(M=R.style.top,M==null||M=="")return;ee=!0;return}if(le){le=!1;return}R.style.top!==M&&(le=!0,R.style.top=M)}).observe(R,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})}var myt=(R,{on_change:M,on_change_selection:ee,is_change_selection_supressed:le,on_change_immediate:Ie,on_change_selection_immediate:Oe})=>{let Yt=R.getContribution("editor.contrib.suggestController").widget.value,qt=!1,vr;_i();function _i(){vr={}}let ti=_o=>{vr.tid=setTimeout(()=>{vr.tid=null,jo()},_o)},Dr=()=>{vr.tid!=null&&clearTimeout(vr.tid)},jo=()=>{try{vr.change_args!=null?M(...vr.change_args):vr.change_selection_args!=null&&ee(...vr.change_selection_args)}finally{_i()}};R.onDidChangeModelContent((..._o)=>{vr.immediate_change_fired||(vr.immediate_change_fired=!0,Ie()),Dr(),vr.change_args=_o,!qt&&ti(1e3)}),R.onDidChangeCursorPosition((..._o)=>{R.getSelection().isEmpty()&&(le()||qt||(vr.change_selection_args=_o,Oe(..._o),Dr(),ti(200)))}),Yt.onDidShow(()=>{qt=!0,Dr()}),Yt.onDidHide(()=>{qt=!1,vr.change_args!=null&&ti(1e3)})},hte=class{constructor(M,ee){this.ui=M,this.editor_container=ee,this.make_resizable(),this.markers=new WeakMap,monaco.editor.EditorOptions.padding.constructor.prototype.validate=function(le){return{top:0,bottom:le?.bottom??0}},this.monaco_editor=monaco.editor.create(this.editor_container,{minimap:{enabled:!1},occurrencesHighlight:!1,lineNumbersMinChars:3,glyphMargin:!1,folding:!1,fontSize:16,automaticLayout:!0}),this.monaco_editor.onDidScrollChange(le=>{this.old_scroll_top=le._oldScrollTop}),myt(this.monaco_editor,{on_change:()=>{this.is_typing=!1;let le=this.monaco_editor.getModel().getValue();Nbe(le);let Ie=hG.getLanguageService().getProgram();Ys("input",le,this.get_cursor_position(),Ie)},on_change_immediate:()=>{this.is_typing=!0,this.unembed_value_explorer()},on_change_selection:()=>{this.is_typing=!1,this.is_change_selection_supressed||Ys("move_cursor",this.get_cursor_position())},on_change_selection_immediate:le=>{if(this.is_typing=!0,!this.has_value_explorer())return;let Ie=this.monaco_editor.getModel().getOffsetAt(le.position);this.value_explorer.data.length==null||Ie>=this.value_explorer.data.index&&Iethis.is_change_selection_supressed}),setTimeout(()=>{this.focus()},0),this.init_keyboard(),this.has_value_explorer_key=this.monaco_editor._contextKeyService.createKey("has_value_explorer",!1)}focus(){this.monaco_editor.focus()}supress_change_selection(M){try{this.is_change_selection_supressed=!0,M()}finally{this.is_change_selection_supressed=!1}}get_session(M){return monaco.editor.getModel(monaco.Uri.file(M))}switch_session(M){let ee=this.get_session(M);this.monaco_editor.setModel(ee)}has_value_explorer(){return this.value_explorer!=null}set_padding_bottom(){if(this.has_value_explorer()){let ee=this.value_explorer.el.children[0].clientHeight;this.monaco_editor.updateOptions({padding:{bottom:ee}})}else this.monaco_editor.updateOptions({padding:{bottom:0}})}unembed_value_explorer(){if(!this.has_value_explorer())return null;this.has_value_explorer_key.set(!1),this.value_explorer.is_dom_el?(this.monaco_editor.changeViewZones(M=>{M.removeZone(this.value_explorer.zone_id)}),this.monaco_editor.setScrollTop(this.old_scroll_top),this.monaco_editor.revealPosition(this.monaco_editor.getPosition())):(this.monaco_editor.removeContentWidget(this.value_explorer),this.set_padding_bottom()),this.value_explorer=null}embed_value_explorer(M,ee){let{call_id:le,index:Ie,length:Oe,result:{ok:ft,value:Mt,error:Yt,is_calltree_node_explorer:qt}}=ee,vr={execution_id:M.execution_id,call_id:le,index:Ie,length:Oe};if(this.has_value_explorer()){let _o=this.value_explorer.key;if(_o.execution_id==vr.execution_id&&_o.call_id==vr.call_id&&_o.index==vr.index&&_o.length==vr.length){this.value_explorer.el.classList.toggle("display-none",!1);return}}this.unembed_value_explorer(),this.has_value_explorer_key.set(!0);let _i=this.monaco_editor.getModel(),ti,Dr=Wr("div",{class:"embed_value_explorer_container"},Wr("div",{class:"embed_value_explorer_wrapper"},ti=Wr("div",{class:"embed_value_explorer_content",tabindex:0}))),jo;if(ft)if(Mt?.dom_node!=null)if(jo=!0,Mt.is_svg){let _o=document.createElementNS("http://www.w3.org/2000/svg","svg");_o.appendChild(Mt.dom_node),ti.appendChild(_o)}else ti.appendChild(Mt.dom_node);else{jo=!1;let _o,Fa=()=>{_o!=null&&this.monaco_editor.setScrollTop(_o),this.value_explorer.return_to==null?this.focus():this.value_explorer.return_to.focus()};Dr.addEventListener("keydown",yl=>{yl.key=="Escape"&&Fa()});let Us=new fte({container:ti,event_target:Dr,on_escape:Fa,on_expand:()=>this.set_padding_bottom(),scroll_to_element:yl=>{_o==null&&(_o=this.monaco_editor.getScrollTop());let Fc=yl.getBoundingClientRect().bottom-this.editor_container.getBoundingClientRect().bottom;Fc>0&&this.monaco_editor.setScrollTop(this.monaco_editor.getScrollTop()+Fc);let Nc=this.editor_container.getBoundingClientRect().top-yl.getBoundingClientRect().top;Nc>0&&this.monaco_editor.setScrollTop(this.monaco_editor.getScrollTop()-Nc)}});qt?Us.render(M,{object_entries:Object.entries(Mt)},{is_expanded:!0,is_calltree_node_explorer:!0,children:{args:{label:"arguments",is_expanded:!0,is_arguments:!0},return_value:{label:"return"},throws:{label:"throws"},context_before:{label:"this before call"},context_after:{label:"this after call"}}}):Us.render(M,Mt,{is_expanded:!0})}else jo=!1,ti.appendChild(Wr("span","eval_error",Yt==null?""+Yt:Yt.toString()));if(jo){let _o=this.value_explorer={is_dom_el:jo,el:Dr,content:ti,key:vr,data:ee};Dr.classList.add("is_dom_el");let Fa;this.monaco_editor.changeViewZones(Us=>{(async()=>{for(;!document.contains(_o.el)||_o.el.style.display=="none";)await new Promise(Fc=>setTimeout(Fc,0));Dr.style.height="",Fa=Dr.clientHeight,this.monaco_editor.changeViewZones(Fc=>{Fc.layoutZone(_o.zone_id)})})();let yl=_i.getPositionAt(Ie+Oe);_o.zone_id=Us.addZone({afterLineNumber:yl.lineNumber,domNode:_o.el,get heightInPx(){return Fa}})})}else{Dr.classList.add("is_not_dom_el");let _o=_i.getPositionAt(Ie);_o.column=0;let Fa=0,Us=_o.lineNumber,yl=this.monaco_editor.getVisibleRanges()[0].endLineNumber;for(let Nc=Us;Nc<=yl;Nc++)Fa=Math.max(Fa,_i.getLineContent(Nc).length);ti.style.marginLeft=Fa+1+"ch";let Fc=this.value_explorer={el:Dr,content:ti,is_dom_el:jo,key:vr,data:ee,getId(){return"value_explorer"},getDomNode(){return this.el},getPosition(){return{position:_o,preference:[monaco.editor.ContentWidgetPositionPreference.EXACT]}}};Pbe(Fc.el),this.monaco_editor.addContentWidget(Fc),this.set_padding_bottom()}}focus_value_explorer(M){this.value_explorer!=null&&(this.value_explorer.return_to=M,this.value_explorer.content.focus({preventScroll:!0}))}set_keyboard_handler(M){if(M!=null&&(localStorage.keyboard=M),M=="vim"){this.vimMode=_te.initVimMode(this.monaco_editor);let ee=_te.VimMode.Vim;ee.mapCommand("gd","motion","goToDefinition",{},{context:"normal"}),ee.defineMotion("goToDefinition",()=>{this.monaco_editor.trigger("keyboard","editor.action.revealDefinition",{})}),ee.map("jj","","insert")}else this.vimMode?.dispose(),delete this.vimMode}init_keyboard(){this.set_keyboard_handler(localStorage.keyboard);let M="0_custom";this.monaco_editor.addCommand(monaco.KeyCode.F1,()=>this.focus_value_explorer()),this.monaco_editor.addAction({id:"focus_value_explorer",label:"Focus value inspector",contextMenuGroupId:M,contextMenuOrder:0,keybindings:[monaco.KeyCode.F1],precondition:"has_value_explorer",run:()=>this.focus_value_explorer()}),monaco.editor.addKeybindingRule({keybinding:monaco.KeyMod.CtrlCmd|monaco.KeyCode.F12,command:"editor.action.revealDefinition"});for(let ee of[monaco.KeyCode.F2,monaco.KeyCode.F3,monaco.KeyCode.F4])monaco.editor.addKeybindingRule({keybinding:ee,command:null});this.monaco_editor.addAction({id:"step_into",label:"Step into function call",contextMenuGroupId:M,contextMenuOrder:3,keybindings:[monaco.KeyCode.F11],run:()=>Ys("step_into")}),this.monaco_editor.addAction({id:"step_out",label:"Step out of current function",contextMenuGroupId:M,contextMenuOrder:4,keybindings:[monaco.KeyCode.F11|monaco.KeyMod.Shift],run:()=>Ys("calltree.arrow_left")}),this.monaco_editor.addAction({id:"expand_selection",label:"Expand selection",contextMenuGroupId:M,contextMenuOrder:1,keybindings:[monaco.KeyMod.WinCtrl|monaco.KeyCode.KeyK,monaco.KeyMod.WinCtrl|monaco.KeyCode.UpArrow],run:()=>Ys("eval_selection",this.get_cursor_position(),!0)}),this.monaco_editor.addAction({id:"collapse_selection",label:"Collapse selection",contextMenuGroupId:M,contextMenuOrder:2,keybindings:[monaco.KeyMod.WinCtrl|monaco.KeyCode.KeyJ,monaco.KeyMod.WinCtrl|monaco.KeyCode.DownArrow],run:()=>Ys("eval_selection",this.get_cursor_position(),!1)})}set_markers(M,ee,le){let Ie=this.get_session(M),Oe=this.markers.get(Ie);Oe==null&&(Oe={},this.markers.set(Ie,Oe)),Oe[ee]==null?Oe[ee]=this.monaco_editor.createDecorationsCollection(le):Oe[ee].set(le)}clear_markers(M,ee){let le=this.get_session(M),Oe=this.markers.get(le)?.[ee];Oe?.clear()}get_cursor_position(){return this.monaco_editor.getModel().getOffsetAt(this.monaco_editor.getPosition())}set_cursor_position(M){if(M==null)throw new Error("illegal state");this.is_typing||this.supress_change_selection(()=>{let ee=this.monaco_editor.getModel().getPositionAt(M);this.monaco_editor.setPosition(ee),this.monaco_editor.revealPosition(ee)})}getFontFamily(){return this.monaco_editor.getOption(monaco.editor.EditorOption.fontFamily)}getLineHeight(){return this.monaco_editor.getOption(monaco.editor.EditorOption.lineHeight)+"px"}make_resizable(){let M=()=>{this.editor_container.style.height=localStorage.editor_height+"vh"},ee=new Date().getTime();window.addEventListener("resize",()=>{ee=new Date().getTime()}),localStorage.editor_height!=null&&M();let le=!0;new ResizeObserver(Ie=>{if(le){le=!1;return}if(new Date().getTime()-ee<100)return;let Oe=this.editor_container.offsetHeight/window.innerHeight*100;localStorage.editor_height=Oe,setTimeout(M,0)}).observe(this.editor_container)}};var tEt=new Function("arr","pred",` + `};var _G,hG,_te,DC,Pbe,gG=new Promise(x=>Pbe=x);function Lbe(x,P){let Q=monaco.Uri.file(x),ae=monaco.editor.getModel(Q);return ae??(wbe(P),monaco.editor.createModel(P,"typescript",Q))}function $4e(x){let P=monaco.Uri.file(x),Q=monaco.editor.getModel(P);Q?.dispose()}async function Q4e(){return await new Promise(x=>setTimeout(x,0)),hG.getLanguageService().getProgram()}var Mbe="customWorkerPathToken";globalThis.importScripts=x=>{if(x!=Mbe)throw new Error("illegal state");delete globalThis.importScripts};globalThis.customTSWorkerFactory=(x,P)=>(delete globalThis.customTSWorkerFactory,class extends x{constructor(...ae){super(...ae),hG=this,_G=P.typescript,kbe?(Z4e(_G),hG.getLibFiles().then(Ee=>Pbe([_G,Ee]))):Pbe([_G])}async getSyntacticDiagnostics(ae,...Ee){let Oe=globalThis.parse_ts_blacklist,Rt=this.getLanguageService().getProgram().getSourceFile(ae),Gt=await super.getSyntacticDiagnostics(ae,...Ee);if(Rt==null)return Gt;let Vt=Oe(Rt);return[...Gt,...Vt]}});function Z4e(x){DC={moduleResolution:kbe?void 0:globalThis.monaco?.languages.typescript.ModuleResolutionKind.NodeJs,moduleDetection:3,target:x.ScriptTarget.Latest,module:x.ModuleKind.ESNext,lib:["lib.esnext.d.ts","lib.dom.d.ts",xC.name],noEmitOnError:!0,verbatimModuleSyntax:!0,jsx:x.JsxEmit.React,noResolve:!0,skipLibCheck:!0,allowJs:!0,checkJs:!0,noEmit:!0,allowNonTsExtensions:!0}}var kbe=globalThis.process!=null;if(kbe){let x=Object.getOwnPropertyDescriptor(globalThis,"process");Object.defineProperty(globalThis,"process",{value:void 0});let P;globalThis.define=(Q,ae,Ee)=>P=Ee(),await Promise.resolve().then(()=>(Y4e(),vyt)),Object.defineProperty(globalThis,"process",x),globalThis.self=globalThis,P.create(null,{customWorkerPath:Mbe}),delete globalThis.self}else ote.config({paths:{vs:window.location.origin+"/lib/monaco/vs","monaco-vim":"/lib/monaco-vim.js"}}),self.MonacoEnvironment={getWorker:()=>null},ote(["vs/editor/editor.main"],async function(){ote(["monaco-vim"],P=>{_te=P}),monaco.languages.typescript.typescriptDefaults.setWorkerOptions({customWorkerPath:Mbe}),Z4e(monaco.languages.typescript),monaco.languages.typescript.typescriptDefaults.setCompilerOptions(DC),monaco.languages.typescript.typescriptDefaults.addExtraLib(xC.value,xC.name);let x=monaco.editor.createModel("","typescript");await gG,x.dispose()});await gG;var wbe=V4e({typescript:_G,logger:console,delegate:{receivedFile:byt}});function byt(x,P){let Q="file://"+P;monaco.languages.typescript.typescriptDefaults.addExtraLib(x,Q)}function Obe(x){let P,Q=!1,ae=!1;new MutationObserver(()=>{if(!Q){if(P=x.style.top,P==null||P=="")return;Q=!0;return}if(ae){ae=!1;return}x.style.top!==P&&(ae=!0,x.style.top=P)}).observe(x,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})}var Eyt=(x,{on_change:P,on_change_selection:Q,is_change_selection_supressed:ae,on_change_immediate:Ee,on_change_selection_immediate:Oe})=>{let Gt=x.getContribution("editor.contrib.suggestController").widget.value,Vt=!1,cr;ci();function ci(){cr={}}let Jr=Sa=>{cr.tid=setTimeout(()=>{cr.tid=null,Uo()},Sa)},Ar=()=>{cr.tid!=null&&clearTimeout(cr.tid)},Uo=()=>{try{cr.change_args!=null?P(...cr.change_args):cr.change_selection_args!=null&&Q(...cr.change_selection_args)}finally{ci()}};x.onDidChangeModelContent((...Sa)=>{cr.immediate_change_fired||(cr.immediate_change_fired=!0,Ee()),Ar(),cr.change_args=Sa,!Vt&&Jr(1e3)}),x.onDidChangeCursorPosition((...Sa)=>{x.getSelection().isEmpty()&&(ae()||Vt||(cr.change_selection_args=Sa,Oe(...Sa),Ar(),Jr(200)))}),Gt.onDidShow(()=>{Vt=!0,Ar()}),Gt.onDidHide(()=>{Vt=!1,cr.change_args!=null&&Jr(1e3)})},hte=class{constructor(P,Q){this.ui=P,this.editor_container=Q,this.make_resizable(),this.markers=new WeakMap,monaco.editor.EditorOptions.padding.constructor.prototype.validate=function(ae){return{top:0,bottom:ae?.bottom??0}},this.monaco_editor=monaco.editor.create(this.editor_container,{minimap:{enabled:!1},occurrencesHighlight:!1,lineNumbersMinChars:3,glyphMargin:!1,folding:!1,fontSize:16,automaticLayout:!0}),this.monaco_editor.onDidScrollChange(ae=>{this.old_scroll_top=ae._oldScrollTop}),Eyt(this.monaco_editor,{on_change:()=>{this.is_typing=!1;let ae=this.monaco_editor.getModel().getValue();wbe(ae);let Ee=hG.getLanguageService().getProgram();Os("input",ae,this.get_cursor_position(),Ee)},on_change_immediate:()=>{this.is_typing=!0,this.unembed_value_explorer()},on_change_selection:()=>{this.is_typing=!1,this.is_change_selection_supressed||Os("move_cursor",this.get_cursor_position())},on_change_selection_immediate:ae=>{if(this.is_typing=!0,!this.has_value_explorer())return;let Ee=this.monaco_editor.getModel().getOffsetAt(ae.position);this.value_explorer.data.length==null||Ee>=this.value_explorer.data.index&&Eethis.is_change_selection_supressed}),setTimeout(()=>{this.focus()},0),this.init_keyboard(),this.has_value_explorer_key=this.monaco_editor._contextKeyService.createKey("has_value_explorer",!1)}focus(){this.monaco_editor.focus()}supress_change_selection(P){try{this.is_change_selection_supressed=!0,P()}finally{this.is_change_selection_supressed=!1}}get_session(P){return monaco.editor.getModel(monaco.Uri.file(P))}switch_session(P){let Q=this.get_session(P);this.monaco_editor.setModel(Q)}has_value_explorer(){return this.value_explorer!=null}set_padding_bottom(){if(this.has_value_explorer()){let Q=this.value_explorer.el.children[0].clientHeight;this.monaco_editor.updateOptions({padding:{bottom:Q}})}else this.monaco_editor.updateOptions({padding:{bottom:0}})}unembed_value_explorer(){if(!this.has_value_explorer())return null;this.has_value_explorer_key.set(!1),this.value_explorer.is_dom_el?(this.monaco_editor.changeViewZones(P=>{P.removeZone(this.value_explorer.zone_id)}),this.monaco_editor.setScrollTop(this.old_scroll_top),this.monaco_editor.revealPosition(this.monaco_editor.getPosition())):(this.monaco_editor.removeContentWidget(this.value_explorer),this.set_padding_bottom()),this.value_explorer=null}embed_value_explorer(P,Q){let{index:ae,length:Ee,call_id:Oe,is_jump_here:ut}=Q,Rt={is_jump_here:ut,execution_id:P.execution_id,call_id:Oe,index:ae,length:Ee};if(this.has_value_explorer()){let Jr=this.value_explorer.key;if(Jr.jump_here==Rt.jump_here&&Jr.execution_id==Rt.execution_id&&Jr.call_id==Rt.call_id&&Jr.index==Rt.index&&Jr.length==Rt.length){this.value_explorer.el.classList.toggle("display-none",!1);return}}this.unembed_value_explorer(),this.has_value_explorer_key.set(!0);let Gt=this.monaco_editor.getModel(),Vt,cr=Mr("div",{class:"embed_value_explorer_container"},Mr("div",{class:"embed_value_explorer_wrapper"},Vt=Mr("div",{class:"embed_value_explorer_content",tabindex:0}))),ci;if(ut)ci=!1,Vt.appendChild(Mr("span",{style:"padding: 0em 1em"},Mr("a",{href:"javascript: void(0)",click:()=>Os("jump_here")},"Jump here")," ",navigator.platform.toLowerCase().includes("mac")?Mr("span",{style:"font-family: system-ui"},"\u2318Enter"):"Ctrl-Enter"));else{let{result:{ok:Jr,value:Ar,error:Uo,is_calltree_node_explorer:Sa}}=Q;if(Jr)if(Ar?.dom_node!=null)if(ci=!0,Ar.is_svg){let ya=document.createElementNS("http://www.w3.org/2000/svg","svg");ya.appendChild(Ar.dom_node),Vt.appendChild(ya)}else Vt.appendChild(Ar.dom_node);else{ci=!1;let ya,es=()=>{ya!=null&&this.monaco_editor.setScrollTop(ya),this.value_explorer.return_to==null?this.focus():this.value_explorer.return_to.focus()};cr.addEventListener("keydown",tu=>{tu.key=="Escape"&&es()});let bl=new fte({container:Vt,event_target:cr,on_escape:es,on_expand:()=>this.set_padding_bottom(),scroll_to_element:tu=>{ya==null&&(ya=this.monaco_editor.getScrollTop());let Dd=tu.getBoundingClientRect().bottom-this.editor_container.getBoundingClientRect().bottom;Dd>0&&this.monaco_editor.setScrollTop(this.monaco_editor.getScrollTop()+Dd);let yv=this.editor_container.getBoundingClientRect().top-tu.getBoundingClientRect().top;yv>0&&this.monaco_editor.setScrollTop(this.monaco_editor.getScrollTop()-yv)}});Sa?bl.render(P,{object_entries:Object.entries(Ar)},{is_expanded:!0,is_calltree_node_explorer:!0,children:{args:{label:"arguments",is_expanded:!0,is_arguments:!0},return_value:{label:"return"},throws:{label:"throws"},context_before:{label:"this before call"},context_after:{label:"this after call"}}}):bl.render(P,Ar,{is_expanded:!0})}else ci=!1,Vt.appendChild(Mr("span","eval_error",Uo==null?""+Uo:Uo.toString()))}if(ci){let Jr=this.value_explorer={is_dom_el:ci,el:cr,content:Vt,key:Rt,data:Q};cr.classList.add("is_dom_el");let Ar;this.monaco_editor.changeViewZones(Uo=>{(async()=>{for(;!document.contains(Jr.el)||Jr.el.style.display=="none";)await new Promise(ya=>setTimeout(ya,0));cr.style.height="",Ar=cr.clientHeight,this.monaco_editor.changeViewZones(ya=>{ya.layoutZone(Jr.zone_id)})})();let Sa=Gt.getPositionAt(ae+Ee);Jr.zone_id=Uo.addZone({afterLineNumber:Sa.lineNumber,domNode:Jr.el,get heightInPx(){return Ar}})})}else{cr.classList.add("is_not_dom_el");let Jr=Gt.getPositionAt(ae);Jr.column=0;let Ar=0,Uo=Jr.lineNumber,Sa=this.monaco_editor.getVisibleRanges()[0].endLineNumber;for(let es=Uo;es<=Sa;es++)Ar=Math.max(Ar,Gt.getLineContent(es).length);Vt.style.marginLeft=Ar+1+"ch";let ya=this.value_explorer={el:cr,content:Vt,is_dom_el:ci,key:Rt,data:Q,getId(){return"value_explorer"},getDomNode(){return this.el},getPosition(){return{position:Jr,preference:[monaco.editor.ContentWidgetPositionPreference.EXACT]}}};Obe(ya.el),this.monaco_editor.addContentWidget(ya),this.set_padding_bottom()}}focus_value_explorer(P){this.value_explorer!=null&&(this.value_explorer.return_to=P,this.value_explorer.content.focus({preventScroll:!0}))}set_keyboard_handler(P){if(P!=null&&(localStorage.keyboard=P),P=="vim"){this.vimMode=_te.initVimMode(this.monaco_editor);let Q=_te.VimMode.Vim;Q.mapCommand("gd","motion","goToDefinition",{},{context:"normal"}),Q.defineMotion("goToDefinition",()=>{this.monaco_editor.trigger("keyboard","editor.action.revealDefinition",{})}),Q.map("jj","","insert")}else this.vimMode?.dispose(),delete this.vimMode}init_keyboard(){this.set_keyboard_handler(localStorage.keyboard);let P="0_custom";this.monaco_editor.addCommand(monaco.KeyCode.F1,()=>this.focus_value_explorer()),this.monaco_editor.addAction({id:"focus_value_explorer",label:"Focus value inspector",contextMenuGroupId:P,contextMenuOrder:0,keybindings:[monaco.KeyCode.F1],precondition:"has_value_explorer",run:()=>this.focus_value_explorer()}),this.monaco_editor.addAction({id:"jump_here",label:"Jump here",contextMenuGroupId:P,contextMenuOrder:0,keybindings:[monaco.KeyMod.CtrlCmd|monaco.KeyCode.Enter],run:()=>Os("jump_here")}),monaco.editor.addKeybindingRule({keybinding:monaco.KeyMod.CtrlCmd|monaco.KeyCode.F12,command:"editor.action.revealDefinition"});for(let Q of[monaco.KeyCode.F2,monaco.KeyCode.F3,monaco.KeyCode.F4])monaco.editor.addKeybindingRule({keybinding:Q,command:null});this.monaco_editor.addAction({id:"step_into",label:"Step into function call",contextMenuGroupId:P,contextMenuOrder:3,keybindings:[monaco.KeyCode.F11],run:()=>Os("step_into")}),this.monaco_editor.addAction({id:"step_out",label:"Step out of current function",contextMenuGroupId:P,contextMenuOrder:4,keybindings:[monaco.KeyCode.F11|monaco.KeyMod.Shift],run:()=>Os("calltree.arrow_left")}),this.monaco_editor.addAction({id:"expand_selection",label:"Expand selection",contextMenuGroupId:P,contextMenuOrder:1,keybindings:[monaco.KeyMod.WinCtrl|monaco.KeyCode.KeyK,monaco.KeyMod.WinCtrl|monaco.KeyCode.UpArrow],run:()=>Os("eval_selection",this.get_cursor_position(),!0)}),this.monaco_editor.addAction({id:"collapse_selection",label:"Collapse selection",contextMenuGroupId:P,contextMenuOrder:2,keybindings:[monaco.KeyMod.WinCtrl|monaco.KeyCode.KeyJ,monaco.KeyMod.WinCtrl|monaco.KeyCode.DownArrow],run:()=>Os("eval_selection",this.get_cursor_position(),!1)})}set_markers(P,Q,ae){let Ee=this.get_session(P),Oe=this.markers.get(Ee);Oe==null&&(Oe={},this.markers.set(Ee,Oe)),Oe[Q]==null?Oe[Q]=this.monaco_editor.createDecorationsCollection(ae):Oe[Q].set(ae)}clear_markers(P,Q){let ae=this.get_session(P),Oe=this.markers.get(ae)?.[Q];Oe?.clear()}get_cursor_position(){return this.monaco_editor.getModel().getOffsetAt(this.monaco_editor.getPosition())}set_cursor_position(P){if(P==null)throw new Error("illegal state");this.is_typing||this.supress_change_selection(()=>{let Q=this.monaco_editor.getModel().getPositionAt(P);this.monaco_editor.setPosition(Q),this.monaco_editor.revealPosition(Q)})}getFontFamily(){return this.monaco_editor.getOption(monaco.editor.EditorOption.fontFamily)}getLineHeight(){return this.monaco_editor.getOption(monaco.editor.EditorOption.lineHeight)+"px"}make_resizable(){let P=()=>{this.editor_container.style.height=localStorage.editor_height+"vh"},Q=new Date().getTime();window.addEventListener("resize",()=>{Q=new Date().getTime()}),localStorage.editor_height!=null&&P();let ae=!0;new ResizeObserver(Ee=>{if(ae){ae=!1;return}if(new Date().getTime()-Q<100)return;let Oe=this.editor_container.offsetHeight/window.innerHeight*100;localStorage.editor_height=Oe,setTimeout(P,0)}).observe(this.editor_container)}};var uEt=new Function("arr","pred",` for(let i = arr.length - 1; i >= 0; i--) { if(pred(arr[i])) { return arr[i] } } -`);var q4e=(R,M)=>Object.fromEntries(Object.entries(R).map(([ee,le])=>[ee,M(ee,le)]));var X4e=new Function("fn","acc","arr",` +`);var e3e=(x,P)=>Object.fromEntries(Object.entries(x).map(([Q,ae])=>[Q,P(Q,ae)]));var t3e=new Function("fn","acc","arr",` let idx = 0; const len = arr.length; const result = []; @@ -51324,167 +51324,165 @@ interface WebGLRenderingContextOverloads { idx += 1; } return [tuple[0], result]; -`),Mbe=(R,M)=>R.reduce((ee,le,Ie)=>ee??M(le,Ie),null);var Y4e=R=>[...new Set(R)];var $4e="scratch.js";function rW(){let R=localStorage.scratch_files,M;return R==null?M=[{kind:"file",name:$4e,path:"scratch/"+$4e}]:M=JSON.parse(R),{kind:"directory",path:"scratch",children:M}}function uL(){let R=rW();return{...R,children:R.children.map(M=>({...M,contents:_yt(M.path)}))}}function yG(R){localStorage.scratch_files=JSON.stringify(R)}function _yt(R){return localStorage[R]??""}function Lbe(R,M){localStorage[R]=M}function Q4e(R,M){let ee="New file name",le=ee;for(;;){if(M=prompt(le,M),M==null)return null;if(R.find(Ie=>Ie.name==M)!=null){le=`File with such name already exists -`+ee;continue}if(!/\.(js|ts)[x]?$/.test(M)){le=`Must have a .js(x) or .ts(x) extension -`+ee;continue}return M}}function Z4e(){let R=rW().children,M=Q4e(R);if(M==null)return null;let ee={kind:"file",name:M,path:"scratch/"+M};return R.unshift(ee),yG(R),ee}function e3e(R,M){let ee=rW().children,le,Ie,Oe=0;for(;le=R+(Oe==0?"":" "+Oe),Ie="scratch/"+le,ee.find(ft=>ft.path==Ie)!=null;)Oe++;return ee.unshift({kind:"file",name:le,path:Ie}),Lbe(Ie,M),yG(ee),uL()}function t3e(R){let M=rW().children;return M.length==1?(alert("Cannot remove the only scratch file"),!1):(M=M.filter(ee=>ee.path!=R),delete localStorage[R],yG(M),!0)}function n3e(R){let M=rW().children,ee=M.find(Ie=>Ie.path==R),le=Q4e(M,ee.name);return le==null?null:(i3e(ee,le),yG(M),ee)}function r3e(R,M){let ee=rW().children,le=ee.find(qt=>qt.path==R),Ie=/\.(js|ts)(x)?$/,ft=Ie.exec(le.name)[2],Mt=(M?".ts":".js")+(ft??""),Yt=le.name.replace(Ie,Mt);return i3e(le,Yt),yG(ee),le}function i3e(R,M){let ee=R.path;R.name=M,R.path="scratch/"+M,localStorage[R.path]=localStorage[ee]??"",delete localStorage[ee]}function gte(R){let M=uL();Ys("load_scratch_dir",M,R)}var hyt=R=>R.endsWith(".htm")||R.endsWith(".html"),o3e=R=>R.endsWith(".js")||R.endsWith(".ts")||R.endsWith(".mjs")||R.endsWith(".jsx")||R.endsWith(".tsx"),yte=class{constructor(M,ee){this.ui=M,this.el=Wr("dialog","panel files_container"),this.active_tab=ee.current_module.startsWith("scratch/")?0:1,this.render(ee),this.el.addEventListener("click",le=>{let Ie=this.el.getBoundingClientRect();Ie.top<=le.clientY&&le.clientY<=Ie.bottom&&Ie.left<=le.clientX&&le.clientX<=Ie.right||this.el.close()}),this.el.addEventListener("close",()=>{M.editor.focus()})}change_html_file(M){Ys("change_html_file",M.target.value)}render(M){this.file_to_el=new Map;let ee=mbe(M),le=Wr("div","file_tabs",Wr("a",{href:"javascript: void(0)",class:"tab",click:this.set_active_tab.bind(this,0)},"Scratch files"),Wr("a",{href:"javascript: void(0)",class:"tab "+(ee?" ":"disabled"),click:ee?this.set_active_tab.bind(this,1):()=>null},Wr("span","","Local filesystem"),Wr("a",{href:"javascript: void(0)",class:"file_access",click:this.change_filesystem_access.bind(this,ee)},ee?"Revoke access":"Grant access"))),Ie=this.render_scratch_files(M),Oe=this.render_local_files(M);if(this.el.children.length==0)this.el.appendChild(le),this.el.appendChild(Ie),Oe!=null&&this.el.appendChild(Oe),this.tabs=le,this.scratch_files=Ie,this.local_files=Oe;else{this.el.replaceChild(le,this.tabs),this.tabs=le,this.local_files==null&&Oe!=null&&(this.el.appendChild(Oe),this.local_files=Oe),this.local_files!=null&&Oe==null?(this.el.removeChild(this.local_files),this.local_files=null):this.local_files==null&&Oe!=null&&(this.el.appendChild(Oe),this.local_files=Oe);for(let[ft,Mt]of[[this.scratch_files,Ie],[this.local_files,Oe]]){if(ft==null||ft==Mt)break;ft.replaceChild(Mt.getElementsByClassName("file_actions")[0],ft.getElementsByClassName("file_actions")[0]),ft.getElementsByClassName("files")[0].replaceChildren(...Mt.getElementsByClassName("files")[0].children)}}this.render_active_tab()}set_active_tab(M){this.active_tab=M,this.render_active_tab()}render_active_tab(){[...this.tabs.children].forEach((M,ee)=>{M.classList.toggle("active",ee==this.active_tab)}),[this.scratch_files,this.local_files].forEach((M,ee)=>{M?.classList.toggle("hidden",ee!=this.active_tab)})}render_scratch_files(M){let ee=Wr("div","file_actions",Wr("a",{class:"file_action",href:"javascript: void(0)",click:this.create_scratch_file.bind(this,!1)},"New file"),Wr("a",{class:"file_action",href:"javascript: void(0)",click:this.remove_file.bind(this)},"Remove file"),Wr("a",{class:"file_action rename_file",href:"javascript: void(0)",click:this.rename_file.bind(this)},"Rename file"));return Wr("div","file_tab_container",ee,Wr("div","files",M.project_dir.scratch_files.children.map(le=>this.render_file(le,M))))}render_local_files(M){if(!mbe(M))return null;let ee=Wr("div","file_actions",Wr("a",{class:"file_action",href:"javascript: void(0)",click:this.create_local_file.bind(this,!1)},"New file"),Wr("a",{class:"file_action",href:"javascript: void(0)",click:this.create_local_file.bind(this,!0)},"New dir"),Wr("a",{class:"file_action",href:"javascript: void(0)",click:this.remove_file.bind(this)},"Remove file"),Wr("a",{class:"file_action rename_file",href:"javascript: void(0)",click:this.rename_file.bind(this)},"Rename file"));return Wr("div","file_tab_container",ee,Wr("div","files",this.render_file(M.project_dir.local_files,M)))}render_current_module(M){this.current_file=M,this.active_el.querySelector(".file_title").classList.remove("active"),this.active_el=this.file_to_el.get(M),this.active_el.querySelector(".file_title").classList.add("active"),this.el.querySelector(".rename_file").classList.toggle("disabled",!M.startsWith("scratch/"))}render_select_entrypoint(M,ee){return null}render_file(M,ee){let le=Wr("div","file",Wr("div",{class:"file_title"+(M.path==ee.current_module?" active":""),click:Ie=>this.on_click(Ie,M)},Wr("span","icon",M.kind=="directory"?"\u{1F4C1}":"\xA0"),M.name,this.render_select_entrypoint(M,ee)),M.children==null?null:M.children.map(Ie=>this.render_file(Ie,ee)));return this.file_to_el.set(M.path,le),M.path==ee.current_module&&(this.active_el=le,this.current_file=M.path),le}change_filesystem_access(M,ee){ee.stopPropagation(),M?(s3e(),this.set_active_tab(0)):(a3e(),this.set_active_tab(1))}create_scratch_file(){let M=Z4e();M!=null&>e(M.path)}async remove_file(){if(this.current_file=="local"){alert("Cannot delete root directory");return}let M=`Are you sure you want to delete this file? -Path: `+hv(this.current_file);if(confirm(M))if(this.current_file.startsWith("local/")){await b4e(hv(this.current_file));let ee=await lL(!1);Ys("load_local_dir",ee)}else{if(!t3e(this.current_file))return;gte(uL().children[0].path)}}async rename_file(){if(this.current_file.startsWith("scratch/")){let M=n3e(this.current_file);if(M==null)return;Ys("load_scratch_dir",uL(),M.path),gte(M.path)}else{if(this.current_file=="local"){alert("Cannot rename root directory");return}let M=qt=>qt.path==this.current_file?qt:qt.children==null?null:Mbe(qt.children,vr=>M(vr)),ee=M(gv().project_dir.local_files),le=ee.kind=="directory",Ie=prompt("Enter new name",ee.name);if(Ie==null)return;let{ok:Oe,message:ft}=await E4e(hv(this.current_file),Ie,le);if(!Oe){alert(ft);return}let Mt=await lL(!1),Yt=ee.path.split("/").slice(0,-1).join("/")+"/"+Ie;if(le){let qt=gv().entrypoint;qt.startsWith(ee.path)?Ys("create_local_file",Mt,qt.replace(ee.path,Yt)):Ys("load_local_dir",Mt),this.render_current_module(Yt)}else Ys("create_local_file",Mt,Yt)}}change_use_ts(M){let ee=gv().current_module,le=r3e(ee,M);gte(le.path)}async create_local_file(M){let ee=prompt(`Enter ${M?"directory":"file"} name`);if(ee==null)return;let le=gv().project_dir.local_files,Ie,Oe,ft=this.current_file.startsWith("scratch/")?le.path:this.current_file,Mt=(vr,_i)=>vr.path==ft?[vr,_i]:vr.children==null?null:Mbe(vr.children,ti=>Mt(ti,vr));if([Oe,Ie]=Mt(le),Oe.kind=="directory")Ie=Oe;else if(Ie==null)throw new Error("illegal state");let Yt=Ie.path+"/"+ee;await y4e(hv(Yt),M);let qt=await lL(!1);M?(Ys("load_local_dir",qt),this.render_current_module(Yt)):Ys("create_local_file",qt,Yt)}on_click(M,ee){M.stopPropagation(),ee.kind!="directory"&&(ee.path.startsWith("scratch/")||o3e(ee.path))&&Ys("change_entrypoint",ee.path),this.render_current_module(ee.path)}};await gG;var[gyt,kbe]=await gG;var Ze=gyt;var aI=new Set;for(let R in Ze.Diagnostics)(R.startsWith("Duplicate")||R.includes("super")||R.includes("Super")||R.includes("used_before")||R.includes("redeclare"))&&aI.add(Ze.Diagnostics[R].code);aI.add(1108);aI.add(1155);aI.add(1308);aI.add(1103);aI.add(1163);aI.add(1104);aI.add(1105);aI.add(2588);(function(){let M=Ze.factory.createIdentifier("test").__proto__,ee=Ze.factory.createBlock([]).__proto__,le=Ze.factory.createToken(Ze.SyntaxKind.FalseKeyword).__proto__;for(let Ie of[M,ee,le])Object.defineProperty(Ie,"index",{get:function(){return this.getStart()},configurable:!1,enumerable:!1}),Object.defineProperty(Ie,"length",{get:function(){return this.getWidth()},configurable:!1,enumerable:!1}),Object.defineProperty(Ie,"kind_name",{get:function(){return Ze.SyntaxKind[this.kind]},configurable:!1,enumerable:!1})})();var wbe=Ze.ScriptTarget.Latest,yyt=Ze.createSourceFile(RC.name,RC.value,wbe),vyt={...CC,noLib:!0},vte=R=>Ze.createSourceFile("temp.ts",R,wbe,!1,Ze.ScriptKind.JSX),l3e={};function byt(R){let M=l3e[R];return M==null&&(M=Ze.createSourceFile(R,kbe[R],wbe,void 0,Ze.ScriptKind.TSX),l3e[R]=M),M}var Eyt=R=>"file:///"+encodeURI(R),Syt=R=>decodeURI(R.replace(/^file:\/\/\//,"")),c3e=(R,M,ee=!1)=>{let le={resolveLibrary(Oe,ft,Mt,Yt){return{path:Yt}},readFile(Oe){throw new Error("not implemented")},useCaseSensitiveFileNames(){return!1},getDefaultLibFileName(){return"lib.d.ts"},getCurrentDirectory(){return""},getCanonicalFileName(Oe){return Oe},resolveModuleNames(Oe){return Oe.map(ft=>({resolvedFileName:ft,extension:".js"}))},getSourceFile(Oe){if(Oe==RC.name)return yyt;if(kbe?.[Oe]!=null)return byt(Oe);if(Oe==R)return M;throw new Error("illegal state")}};return Ze.createProgram([R],ee?vyt:CC,le)};function Tyt(R){let M=new WeakMap;return function(ee){let le=M.get(ee);return le!=null||(le=R(ee),M.set(ee,le)),le}}var d3e=Tyt(function(R){let M=[];function ee(le){le.kind==Ze.SyntaxKind.ImportDeclaration&&(le.moduleSpecifier.text.startsWith(".")||le.moduleSpecifier.text.startsWith("/"))&&M.push({node:le,messageText:"Local imports are not supported yet. Please use a full URL starting with https:// or specify an npm package name"}),le.kind==Ze.SyntaxKind.VariableDeclarationList&&!(le.flags&(Ze.NodeFlags.Let|Ze.NodeFlags.Const))&&M.push({node:le,messageText:'"var" declarations are not supported. Use "let" declarations instead'}),(Ze.isFunctionDeclaration(le)||Ze.isFunctionExpression(le)||Ze.isMethodDeclaration(le))&&le.asteriskToken!==void 0&&M.push({node:le,messageText:"Generator functions are not implemented"}),(le.kind==Ze.SyntaxKind.CallExpression||le.kind==Ze.SyntaxKind.NewExpression)&&le.questionDotToken!=null&&M.push({node:le,messageText:"Optional chaining with function calls is not implemented"});let Ie=Ze.SyntaxKind[le.kind];le.kind==Ze.SyntaxKind.ForOfStatement&&le.awaitModifier!=null&&M.push({node:le,messageText:"for-await loops are not supported."}),(le.kind==Ze.SyntaxKind.TryStatement||le.kind==Ze.SyntaxKind.ClassDeclaration||le.kind==Ze.SyntaxKind.LabeledStatement||le.kind==Ze.SyntaxKind.ClassExpression||le.kind==Ze.SyntaxKind.SwitchStatement||le.kind==Ze.SyntaxKind.MethodDeclaration||le.kind==Ze.SyntaxKind.GetAccessor||le.kind==Ze.SyntaxKind.SetAccessor||le.kind==Ze.SyntaxKind.TaggedTemplateExpression)&&M.push({node:le,messageText:`${Ie} is not implemented`});function Oe(ft){return ft.kind==Ze.SyntaxKind.PropertyAccessExpression||ft.kind==Ze.SyntaxKind.ElementAccessExpression||ft.kind==Ze.SyntaxKind.CallExpression}Oe(le)&&le.questionDotToken!=null&&le.parent!=null&&Oe(le.parent)&&le.parent.questionDotToken==null&&M.push({node:le,messageText:"Only the last element of access chain can be optional"}),Ze.forEachChild(le,ee)}return ee(R),M.map(({node:le,messageText:Ie})=>({file:R,start:le.getStart(),length:le.getWidth(),messageText:Ie,category:Ze.DiagnosticCategory.Error,code:96488}))});globalThis.parse_ts_blacklist=d3e;var u3e=(R,M)=>{let ee=Ze.getScriptKindFromFileName(R),le=M.getSourceFile(Eyt(R)),Ie=Ze.sortAndDeduplicateDiagnostics([...M.getDeclarationDiagnostics(le),...M.getSyntacticDiagnostics(le),...d3e(le),...M.getSemanticDiagnostics(le).filter(Yt=>aI.has(Yt.code))]),Oe=Ie.length==0,ft=ee==Ze.ScriptKind.TS||ee==Ze.ScriptKind.TSX,Mt;if(ft){let Yt=function(qt,vr){qt.parent=vr,Ze.forEachChild(qt,_i=>Yt(_i,qt))};Mt=Ze.transform(le,[Ze.transformTypeScript],CC).transformed[0],Yt(Mt),delete Mt.original,Ze.forEachChildRecursively(Mt,qt=>{delete qt.original})}else Mt=le;return{ok:Oe,program:M,sorted:[R],modules:Oe?{[R]:Mt}:null,problems:Ie.map(Yt=>{let qt=Ze.flattenDiagnosticMessageText(Yt.messageText,` -`);if(Yt.length==null)throw new Error("illegal state");return{message:qt,index:Yt.start,length:Yt.length,module:Syt(Yt.file.fileName)}})}};var bte=Ze.SyntaxKind,lp=R=>Ze.isFunctionLike(R),Obe=R=>(R.parent?.kind==Ze.SyntaxKind.ForOfStatement||R.parent?.kind==Ze.SyntaxKind.ForInStatement)&&R.parent.expression==R||R.parent?.kind==Ze.SyntaxKind.ForStatement&&R.parent.initializer==R,Ste=R=>{if(Obe(R))return Ze.forEachAncestor(R.parent.parent,M=>{if(lp(M)||gf(M)||M.kind==Ze.SyntaxKind.SourceFile)return M})},iW=R=>R.kind==Ze.SyntaxKind.JsxElement||R.kind==Ze.SyntaxKind.JsxSelfClosingElement||R.kind==Ze.SyntaxKind.JsxFragment,gf=R=>R.kind==Ze.SyntaxKind.ForStatement||R.kind==Ze.SyntaxKind.ForOfStatement||R.kind==Ze.SyntaxKind.ForInStatement||R.kind==Ze.SyntaxKind.DoStatement||R.kind==Ze.SyntaxKind.WhileStatement,Tte=R=>{if(R.kind!=Ze.SyntaxKind.ForStatement)return null;let M=R.initializer;return M.kind==Ze.SyntaxKind.VariableDeclarationList&&M.declarations[0].name.kind==Ze.SyntaxKind.Identifier?M.declarations[0].name:M.kind==Ze.SyntaxKind.BinaryExpression&&M.operatorToken.kind==Ze.SyntaxKind.EqualsToken&&M.left.kind==Ze.SyntaxKind.Identifier?M.left:null},Ete=class{constructor(M,ee,le){this.index=M,this.length=ee,this.original=le}},pL=R=>R instanceof Ete,Hb=R=>{if(pL(R))return[];if(lp(R)){let ee=R.getChildren(),le=ee.find(Mt=>Mt.kind==Ze.SyntaxKind.OpenParenToken),Ie,Oe;return le!=null?(Ie=le.getStart(),Oe=ee.find(Mt=>Mt.kind==Ze.SyntaxKind.CloseParenToken).getEnd()-Ie):(Ie=ee[0].index,Oe=ee[0].length),[new Ete(Ie,Oe,R.parameters),R.body]}if(iW(R)){let ee=[];return Ze.forEachChildRecursively(R,le=>{if(le.kind==Ze.SyntaxKind.JsxExpression||le.kind==Ze.SyntaxKind.JsxSpreadAttribute)return ee.push(le),"skip"}),ee}if(R.kind==Ze.SyntaxKind.ImportDeclaration)return[];let M=[];return Ze.forEachChild(R,ee=>{(!Ze.isToken(ee)||Ze.isLiteralExpression(ee)||Ze.isIdentifier(ee)||ee.kind==Ze.SyntaxKind.NullKeyword||ee.kind==Ze.SyntaxKind.ThisKeyword||ee.kind==Ze.SyntaxKind.TrueKeyword||ee.kind==Ze.SyntaxKind.FalseKeyword)&&M.push(ee)}),M},vG=R=>!!Ze.forEachChildRecursively(R,M=>{if(M.kind==Ze.SyntaxKind.AwaitExpression)return!0;if(lp(M))return"skip"}),p3e=R=>R.modifiers?.some(M=>M.kind===Ze.SyntaxKind.AsyncKeyword)??!1,Ayt=R=>(Ze.isPrefixUnaryExpression(R)||Ze.isPostfixUnaryExpression(R))&&(R.operator===Ze.SyntaxKind.PlusPlusToken||R.operator===Ze.SyntaxKind.MinusMinusToken),bG=(R,M)=>M.kind==bte.VariableDeclaration&&M.name==R||Ze.isAssignmentExpression(M)&&M.left==R||M.kind==bte.BindingElement&&M.name==R||M.kind==Ze.SyntaxKind.ForOfStatement&&M.initializer==R||M.kind==Ze.SyntaxKind.ForInStatement&&M.initializer==R||M.kind==bte.Parameter&&R!=M.initializer||R.kind==bte.BindingElement||M!=null&&Ayt(M)&&M.operand==R,Iyt=Ze.createPrinter(),Wbe=R=>{let M;R.kind==Ze.SyntaxKind.VariableDeclarationList||R.kind==Ze.SyntaxKind.VariableStatement?M=R:lp(R)?M=Ze.factory.createVariableDeclarationList([Ze.factory.createVariableDeclaration(Ze.factory.createArrayBindingPattern(R.parameters),void 0,void 0,Ze.factory.createNull())]):M=Ze.factory.createVariableDeclarationList([Ze.factory.createVariableDeclaration(R,void 0,void 0,Ze.factory.createNull())]);let ee=Iyt.printNode(Ze.EmitHint.Unspecified,M),le=vte(ee),Ie="collect.ts",Oe=c3e(Ie,le,!0);return Oe.getTypeChecker(),[...Oe.getSourceFile(Ie).locals.keys()]};var Fbe=R=>Object.entries(R).map(([M,ee])=>ee.statements.filter(le=>le.kind==Ze.SyntaxKind.ImportDeclaration).map(le=>({node:le,module_name:M,url:le.moduleSpecifier.text}))).flat(),qS=(R,M)=>!fL(R,M)||R.kind==Ze.SyntaxKind.AsyncKeyword?null:Ze.forEachChild(R,le=>qS(le,M))??R,fL=(R,M)=>R.index<=M&&R.index+R.length>M,f3e=(R,M)=>M.index<=R.index&&M.index+M.length>=R.index+R.length,zbe=(R,M)=>{let ee=[];return Ze.forEachAncestor(R,le=>{if(le==M)return le;le!=R&&ee.push(le)}),ee},oW=(R,M)=>[R,...zbe(R,M)],p0=(R,M)=>M(R)?R:R.children==null?null:R.children.reduce((ee,le)=>ee??p0(le,M),null),Bbe=(R,M,ee=null)=>{if(R==M)return ee;if(R.children==null)return null;for(let le of R.children){let Ie=Bbe(le,M,R);if(Ie!=null)return Ie}return null},Ate=(R,M)=>Ze.forEachChildRecursively(R,ee=>{if(M(ee))return ee}),Gbe=(R,M)=>Ze.forEachChildRecursively(R,ee=>{if(M.get(ee)?.is_error_origin)return ee;if(lp(ee))return"skip"});var xyt=R=>{let M=[];function ee(le){if(lp(le)){M.push(le);return}for(let Ie of Hb(le))ee(Ie,le)}return ee(R),M},m3e=(R,M)=>{let ee=(qt,vr)=>{let _i=qt.kind==null?qt.result:M.get(qt),ti=vr.kind==null?vr.result:M.get(vr);return _i==null?ti==null:ti!=null&&_i.ok==ti.ok&&!!_i.is_error_origin==!!ti.is_error_origin},le=qt=>{let vr=M.get(qt);return{index:qt.index,length:qt.length,result:vr==null||lp(qt)?null:vr.ok?{ok:!0}:{ok:!1,is_error_origin:!!vr.is_error_origin}}},Ie=qt=>Ze.isBinaryExpression(qt)&&(qt.operatorToken.kind==Ze.SyntaxKind.AmpersandAmpersandToken||qt.operatorToken.kind==Ze.SyntaxKind.BarBarToken||qt.operatorToken.kind==Ze.SyntaxKind.QuestionQuestionToken)||qt.kind==Ze.SyntaxKind.ConditionalExpression,Oe=(qt,vr)=>{let _i=Hb(qt).map(Us=>ft(Us)).reduce((Us,[yl,...Fc])=>{if(Us.length==0)return[yl,...Fc];{let Nc=Us[Us.length-1];if(ee(Nc,yl))return[...Us.slice(0,Us.length-1),{index:Nc.index,length:yl.index-Nc.index+yl.length,result:yl.result==null?null:{ok:yl.result.ok}},...Fc];if(!Ie(qt)&&Nc.result==null&&yl.result?.ok){let $S=Nc.index+Nc.length;return[...Us,{...yl,index:$S,length:yl.index-$S+yl.length},...Fc]}else return!Ie(qt)&&Nc.result?.ok&&yl.result==null?[...Us.slice(0,Us.length-1),{...Nc,length:yl.index-Nc.index},yl,...Fc]:[...Us,yl,...Fc]}},[]),ti=M.get(qt);if((ti==null||ti?.ok)&&_i.reduce((Us,yl)=>Us&&ee(_i[0],yl),!0)){if(ee(qt,_i[0]))return vr&&lp(qt)?[{...le(qt),result:{ok:M.get(qt).ok}}]:[le(qt)];{let Us=le(qt),yl=_i.at(-1).index+_i.at(-1).length;return[{...Us,length:_i[0].index-Us.index},..._i,{...Us,index:yl,length:qt.index+qt.length-yl}]}}if(_i.length==0)throw new Error("illegal state");let Dr=_i[0],jo=ee(Dr,qt)&&M.get(qt)?.ok?[{...Dr,index:qt.index,length:Dr.length+Dr.index-qt.index},..._i.slice(1)]:_i,_o=jo[jo.length-1];return ee(_o,qt)&&M.get(qt)?.ok?[...jo.slice(0,jo.length-1),{..._o,index:_o.index,length:qt.index+qt.length-_o.index}]:jo},ft=(qt,vr=!1)=>{if(lp(qt)&&!vr)return[{...le(qt),result:null}];if((qt.kind==Ze.SyntaxKind.WhileStatement||qt.kind==Ze.SyntaxKind.DoStatement)&&!vr){let Dr;qt.kind==Ze.SyntaxKind.WhileStatement?Dr=qt.expression.index:Dr=qt.statement.index;let jo=M.get(qt);return[{index:qt.index,length:Dr-qt.index,result:jo==null?null:jo.ok?{ok:!0}:{ok:!1,is_error_origin:!!jo.is_error_origin}},{index:Dr,length:qt.index+qt.length-Dr,result:null}]}if((qt.kind==Ze.SyntaxKind.ForOfStatement||qt.kind==Ze.SyntaxKind.ForInStatement)&&!vr){let Dr=M.get(qt);return[{index:qt.index,length:qt.initializer.index-qt.index,result:Dr==null?null:Dr.ok?{ok:!0}:{ok:!1,is_error_origin:!!Dr.is_error_origin}},{index:qt.initializer.index,length:qt.initializer.length,result:null},...ft(qt.expression),{index:qt.statement.index,length:qt.statement.length,result:null}]}if(qt.kind==Ze.SyntaxKind.ForStatement&&!vr){let Dr=M.get(qt);return[{index:qt.index,length:qt.initializer.index-qt.index,result:Dr==null?null:Dr.ok?{ok:!0}:{ok:!1,is_error_origin:!!Dr.is_error_origin}},...ft(qt.initializer),{index:qt.condition.index,length:qt.condition.length,result:null},{index:qt.incrementor.index,length:qt.incrementor.length,result:null}]}if(pL(qt)||Hb(qt).length==0)return[le(qt)];if(M.get(qt)?.is_error_origin){let Dr=le(qt),jo=xyt(qt);return jo.length==0?[Dr]:jo.map((_o,Fa)=>{let Us;if(Fa==0)Us=qt.index;else{let yl=jo[Fa-1];Us=yl.index+yl.length}return{index:Us,length:_o.index-Us,result:Dr.result}}).concat([{index:jo.at(-1).index+jo.at(-1).length,length:qt.index+qt.length-(jo.at(-1).index+jo.at(-1).length),result:Dr.result}])}let _i=Oe(qt,vr),ti=M.get(qt);return ti!=null&&!ti.ok?_i.map(Dr=>Dr.result==null?{...Dr,result:{ok:!1,is_error_origin:!1}}:Dr):_i},Mt=ft(R,!0);Mt=Mt.filter(qt=>qt.result!=null&&(qt.result.ok||qt.result.is_error_origin));let{ok:Yt}=Mt.reduce(({ok:qt,prev:vr},_i)=>qt?vr==null?{ok:qt,prev:_i}:vr.index+vr.length>_i.index?{ok:!1}:{ok:!0,prev:_i}:{ok:qt},{ok:!0,prev:null});if(!Yt)throw new Error("illegal state");return Mt},_3e=(R,M)=>Object.values(R.colored_frames?.[M]??{}).map(ee=>R.frame_coloring.get(ee)).flat();var XS=class{constructor(M){this.str=M}},Vbe=class{constructor(){this.map=new Map}set(M,ee,le){this.map.has(M)||this.map.set(M,new Map),this.map.get(M).set(ee,le)}get(M,ee){return this.map.get(M)?.get(ee)}},h3e=new Vbe,g3e=(R,...M)=>{let ee=M.filter(ft=>!(ft instanceof XS)).map(ft=>{switch(typeof ft){case"string":return Ze.factory.createStringLiteral(ft);case"number":return Ze.factory.createNumericLiteral(ft);case"undefined":return Ze.factory.createIdentifier("undefined");case"boolean":return(ft?Ze.factory.createTrue:Ze.factory.createFalse)();default:return ft}}),le=M.filter(ft=>ft instanceof XS),Ie=[R,le.map(ft=>ft.str).join()],Oe=h3e.get(...Ie);if(Oe==null){let ft="";for(let Mt=0;Mt{let vr=Ze.visitNode(qt,Yt);if(Mt!=ee.length)throw console.error({replacement_idx:Mt,"replacements.length":ee.length,replacements:M}),new Error("illegal state");return vr}}]).transformed[0]},h_=(...R)=>g3e(...R).statements,gx=(...R)=>g3e(...R).statements[0].expression;var Ryt=["pointerId","buttons","altKey","ctrlKey","shiftKey","metaKey","pageX","pageY","deltaX","deltaY","key","which","timeStamp"],Dyt=new Set(["blur","focus","click","dblclick","wheel","input","change","contextmenu","pointerdown","pointerup","pointermove","pointerover","pointerenter","pointerleave","pointercancel","mousedown","mouseup","mousemove","mouseover","mouseenter","mouseleave","mousecancel","keydown","keyup","keypress","load","DOMContentLoaded"]),Cyt=["bubbles","composed","cancelable"],y3e=R=>{let M=R.window,ee=M.EventTarget.prototype.addEventListener,le=new Set;M.EventTarget.prototype.addEventListener=function(Oe,...ft){return!le.has(Oe)&&Dyt.has(Oe)&&ee.call(M.window,Oe,Mt=>{if(!R.io_trace_is_recording||["change","input"].includes(Oe)&&["checkbox","radio"].includes(Mt.target.type))return;let Yt=Mt.constructor.name,qt=Object.fromEntries(Ryt.map(ti=>[ti,Mt[ti]])),vr=Object.fromEntries(Cyt.map(ti=>[ti,Mt[ti]])),_i=Pyt(M.window,Mt.target);R.io_trace.push({type:"event",constructorName:Yt,event_type:Oe,props:qt,dispatch_props:vr,selectors:_i,value:Mt.target.value})},!0),le.add(Oe),ee.call(this,Oe,...ft)}},v3e=(R,M)=>{let ee=R.window[M.constructorName],le=Object.defineProperties(new ee(M.event_type,M.dispatch_props),Object.fromEntries(Object.entries(M.props).map(([Oe,ft])=>[Oe,{value:ft}]))),Ie=Myt(R.window.window,M.selectors);["input","change"].includes(M.event_type)&&(Ie.value=M.value),Ie.dispatchEvent(le)},jbe=R=>{R.window.document.dispatchEvent(new Event("DOMContentLoaded")),R.window.window.dispatchEvent(new Event("DOMContentLoaded")),R.window.window.dispatchEvent(new Event("load"))};function Nyt(R){let M=[];for(;R;){M.unshift(R.tagName.toLowerCase());let ee=R.parentNode;if(ee){let le=[...ee.children];if(le.length>1){let Ie=le.indexOf(R)+1;Ie&&(M[0]+=`:nth-child(${Ie})`)}}if(R.hasAttribute("part")){let le=`[part=${R.getAttribute("part")}]`;M[0]+=le}if(ee instanceof Element)R=ee;else break}return M.join(" > ")}function Pyt(R,M){if(M==R)return["window"];let ee=[],le;for(;(le=M.getRootNode())&&(ee.unshift(Nyt(M)),!(le===R.document||le===M));)M=le.host;return ee}function Myt(R,M){let ee=R.document,le,Ie;for(let Oe of M){if(Oe==="window")return R;if(Ie=ee?.querySelector(Oe),!Ie)return le;if(le=Ie,ee=Ie?.shadowRoot,!ee)break}return le}var aW=(R,M,ee=!1,le=!1)=>{let Ie=R;for(let Yt=0;Yt{throw R.io_trace_is_replay_aborted=!0,R.io_trace_resolve_replay_finished(),new R.window.Error("io replay aborted")},T3e=R=>{if(R.io_trace_is_replay_aborted)throw new R.window.Error("io replay was aborted")},b3e=(R,M)=>{for(let ee=R.io_trace_index;ee{R.io_trace_resolver_is_set||(R.io_trace_resolver_is_set=!0,setTimeout(()=>{if(R.io_trace_is_replay_aborted)return;if(R.io_trace_resolver_is_set=!1,R.io_trace_index>=R.io_trace.length)throw new Error("illegal state");let M=R.io_trace[R.io_trace_index];if(R.io_trace_index++,M.type=="call")b3e(R,"resolution").index{let Oe=function(...ft){let Mt=new.target!=null,Yt=R.__cxt;if(T3e(Yt),Yt.io_trace_is_recording){let qt,vr,_i;try{let ti=Yt.io_trace.length;if(ee=="setTimeout"){ft=ft.slice();let Dr=ft[0];typeof Dr=="function"&&(ft[0]=Object.defineProperty(function(){Yt.io_trace_is_replay_aborted||(Yt.io_trace.push({type:"resolution",index:ti}),Dr())},"name",{value:Dr.name}))}return vr=Mt?new M(...ft):M.apply(this,ft),qt=!0,vr?.[Symbol.toStringTag]=="Promise"?(vr=Promise.prototype.then.call(vr,Dr=>{if(!Yt.io_trace_is_replay_aborted)return Yt.io_trace.push({type:"resolution",index:ti}),vr.status={ok:!0,value:Dr},Ie?Dr:R.structuredClone(Dr)},Dr=>{if(!Yt.io_trace_is_replay_aborted)throw Yt.io_trace.push({type:"resolution",index:ti}),vr.status={ok:!1,error:Dr},R.structuredClone(Dr)}),vr):Ie?vr:R.structuredClone(vr)}catch(ti){throw _i=ti,qt=!1,R.structuredClone(ti)}finally{Yt.io_trace.push({type:"call",name:ee,ok:qt,value:vr,error:_i,args:ft,has_new_target:Mt,use_context:le,skip_clone:Ie,context:le?this:void 0})}}else{let qt=Yt.io_trace[Yt.io_trace_index];if(Yt.io_trace_index++,qt==null||qt.type!="call"||qt.has_new_target!=Mt||qt.use_context&&qt.context!=this||qt.name!=ee||ee=="setTimeout"&&ft[1]!=qt.args[1]||ee!="setTimeout"&&JSON.stringify(qt.args)!=JSON.stringify(ft))S3e(Yt);else if(qt.ok){if(qt.value?.[Symbol.toStringTag]=="Promise")return new Yt.window.Promise((vr,_i)=>{Yt.io_trace_resolvers.set(Yt.io_trace_index-1,{resolve:vr,reject:_i})});if(ee=="setTimeout"){let vr=ft[0];return Yt.io_trace_resolvers.set(Yt.io_trace_index-1,{resolve:vr}),qt.value}else return Ie?qt.value:R.structuredClone(qt.value)}else throw R.structuredClone(qt.error)}};return Object.defineProperty(Oe,"name",{value:M.name}),Oe},Lyt=R=>{let M=R.Date,ee=M.prototype,le=A3e(R,M,"Date",!1);R.Date=function(...Oe){return Oe.length==0?new.target!=null?new le(...Oe):le(...Oe):new.target!=null?new M(...Oe):M(...Oe)},R.Date.prototype=ee,R.Date.parse=Date.parse,R.Date.now=Date.now,R.Date.UTC=Date.UTC,aW(R,["Date","now"])},E3e=(R,M)=>{let ee=R[M];R[M]=function(...le){let Ie=new.target!=null,Oe=R.__cxt;return T3e(Oe),Oe.io_trace_is_recording||S3e(Oe),Ie?new ee(...le):ee.apply(this,le)},Object.defineProperty(R[M],"name",{value:M})},I3e=R=>{if(aW(R,["Math","random"]),aW(R,["setTimeout"],void 0,!0),aW(R,["clearTimeout"]),E3e(R,"setInterval"),E3e(R,"clearInterval"),Lyt(R),aW(R,["fetch"],void 0,!0),R.Response!=null){let M=["arrayBuffer","blob","formData","json","text"];for(let ee of M)aW(R,["Response","prototype",ee],!0)}};var x3e=globalThis?.CanvasRenderingContext2D?.prototype?.reset;function kyt(R){x3e!=null?x3e.call(R):R.canvas.width=R.canvas.width+0}function wyt(R){for(let M of R.contexts)kyt(M)}function D3e(R){let M=R?.CanvasRenderingContext2D?.prototype;if(M==null)return;let ee=Object.getOwnPropertyDescriptors(M);Object.entries(ee).forEach(([le,Ie])=>{if(Ie.value!=null){if(typeof Ie.value!="function")return;let Oe=Ie.value;M[le]={[le](){let ft=R.__cxt,Mt=++ft.version_counter;try{return Oe.apply(this,arguments)}finally{ft.canvas_ops.contexts.add(this),ft.canvas_ops.ops.push({canvas_context:this,method:Oe,version_number:Mt,args:arguments})}}}[le]}if(Ie.set!=null){let Oe=Ie.set;Object.defineProperty(M,le,{set(ft){let Mt=R.__cxt,Yt=++Mt.version_counter;try{Oe.call(this,ft)}finally{Mt.canvas_ops.contexts.add(this),Mt.canvas_ops.ops.push({canvas_context:this,version_number:Yt,set_op:Oe,prop_value:ft})}}})}})}function R3e(R){if(R.method!=null)R.method.apply(R.canvas_context,R.args);else if(R.set_op!=null)R.set_op.call(R.canvas_context,R.prop_value);else throw new Error("illegal op")}function Ite(R,M){if(R.calltree==null)return;let ee=R.rt_cxt;if(ee.canvas_ops.ops!=null)if(wyt(ee.canvas_ops),M)for(let le of ee.canvas_ops.ops)R3e(le);else{let le=R.current_calltree_node.last_version_number;for(let Ie of ee.canvas_ops.ops){if(Ie.version_number>le)break;R3e(Ie)}}}var sW;try{(function R(){return R()})()}catch(R){sW=R}var Oyt=500,lW=R=>R?.[Symbol.toStringTag]=="Promise",Wyt=R=>(...M)=>{let ee=R(...M),le=Ie=>Ie.done?Ie.value:lW(Ie.value)?Promise.prototype.then.call(Ie.value,Oe=>le(ee.next(Oe)),Oe=>le(ee.throw(Oe))):le(ee.next(Ie.value));return le(ee.next())},Ag=(R,M)=>{let ee=new Map;return le(M);function le(Oe){if(Oe==null||typeof Oe!="object")return Oe;let ft=ee.get(Oe);if(ft!=null)return ft;let Mt={};return ee.set(Oe,Mt),ft=Ie(Oe),Object.assign(Mt,ft),ft}function Ie(Oe){if(Array.isArray(Oe))return{clazz:"Array",array_entries:Oe.map(le)};if(R.Element!=null&&Oe instanceof R.Element&&!Oe.isConnected)return{clazz:Oe.constructor?.name,is_svg:R.SVGElement!=null&&Oe instanceof R.SVGElement,object_entries:[],dom_node:Oe.cloneNode(!0)};if(Oe instanceof R.Map)return{clazz:"Map",object_entries:[...Oe.entries()].map(([ft,Mt])=>[le(ft),le(Mt)])};if(Oe instanceof R.Set)return{clazz:"Set",array_entries:[...Oe.values()].map(le)};if(lW(Oe)){let ft;return Oe.status!=null&&(ft={ok:Oe.status.ok,value:le(Oe.status.value),error:le(Oe.status.error)}),{clazz:"Promise",status:ft}}return Oe instanceof R.Date?{clazz:"Date",string:Oe.toJSON()}:Oe instanceof R.Error?{clazz:Oe.constructor?.name,string:Oe.toString()}:Oe==R?{clazz:"Window",object_entries:[]}:{clazz:Oe.constructor?.name,object_entries:Object.entries(Oe).map(([ft,Mt])=>[ft,le(Mt)])}}},Fyt=()=>{let R;return[new Promise(ee=>R=ee),R]},C3e=Wyt(function*(R,M,ee){let[le,Ie]=Fyt(),Oe=ee.length==0;if(M=Oe?{...M,io_trace_is_recording:Oe}:{...M,io_trace_is_recording:Oe,io_trace_is_replay_aborted:!1,io_trace_resolver_is_set:!1,io_trace_resolvers:new Map,io_trace_index:0,io_trace_resolve_replay_finished:Ie},M.window.__cxt!=null)throw new Error("illegal state");M.window.__cxt=M,Hyt(M.window),Byt(M),I3e(M.window),zyt(M),y3e(M),D3e(M.window);let ft=!Oe&&!ee.every(_i=>_i.type=="call");ft&&Ube(M);let Mt=!1,Yt;for(let _i=0;_ijbe(M),0)),ft&&(yield Promise.race([le,jo]),M.io_trace_is_replay_aborted))break;yield jo,Yt.ok=!0}catch(jo){Yt.ok=!1,Yt.error=jo}if(Yt.children=M.children,M.children=null,Yt.last_version_number=M.version_counter,!Yt.ok)break}if(M.children!=null&&!M.io_trace_is_replay_aborted)throw new Error("illegal state");let qt=M.children=[];Oe&&!Mt&&jbe(M),ft&&(yield le),M.io_trace_is_recording=!0,M.is_recording_deferred_calls=!0;let vr=M.logs;return M.logs=[],M.children=null,{modules:M.modules,calltree:Yt,deferred_calls:qt.length==0?null:qt,logs:vr,rt_cxt:M}}),zyt=R=>{R.window.leporello={storage:R.storage}},Byt=R=>{let M=R.window.Promise.prototype.then;R.window.Promise.prototype.then=function(le,Ie){R.children==null&&(R.children=[]);let Oe=R.children,ft=(Mt,Yt)=>typeof Mt!="function"?Mt:qt=>{this.status==null&&(this.status=Yt?{ok:Yt,value:qt}:{ok:Yt,error:qt});let vr=R.children;R.children=Oe;try{return Mt(qt)}finally{R.children=vr}};return M.call(this,ft(le,!0),ft(Ie,!1))}},NC=R=>{for(let M=0;M{R.children==null&&(R.children=[]);let le={children_copy:R.children,promise:M};return lW(M)?le.promise=M.then(Ie=>{le.status={ok:!0,value:Ie}},Ie=>{le.status={ok:!1,error:Ie}}):le.status={ok:!0,value:M},le},Vyt=(R,M)=>{if(R.children=M.children_copy,M.status.ok)return M.status.value;throw M.status.error},jyt=(R,M,ee,le,Ie)=>{function Oe(...ft){if(R.stack.length>Oyt)throw new sW.constructor(sW.message);let Mt=R.children;R.children=null,R.stack.push(!1);let Yt=++R.call_counter,qt=R.version_counter,vr,_i=R.breakpoint.current_calltree_node_id==Yt;_i&&(vr={args:Ag(R.window,ft),context_before:Ag(R.window,this)},NC(R));let ti,Dr,jo,_o=R.is_toplevel_call;R.is_toplevel_call=!1;let Fa=new.target!=null;try{return Fa?Dr=new M(...ft):Dr=M.apply(this,ft),ti=!0,lW(Dr)&&NC(R),_i&&(vr.ok=ti,vr.context_after=Ag(R.window,this),vr.value=Ag(R.window,Dr)),Dr}catch(Us){throw ti=!1,jo=Us,_i&&(vr.context_after=Ag(R.window,this),vr.error=Ag(R.window,jo)),NC(R),jo}finally{let Us={id:Yt,is_new:Fa,version_number:qt,last_version_number:R.version_counter,ok:ti,context:this,value:Dr,error:jo,fn:Oe,args:le==null?ft:ft.slice(0,le),snapshot:vr};if(R.stack.pop()?Us.children=R.children:Us.has_more_children=R.children!=null&&R.children.length!=0,R.children=Mt,R.children==null&&(R.children=[]),R.children.push(Us),R.is_toplevel_call=_o,R.is_recording_deferred_calls&&R.is_toplevel_call){if(R.children.length!=1)throw new Error("illegal state");let Fc=R.children[0];R.children=null;let Nc=R.logs;R.logs=[],R.on_deferred_call(Fc,R.execution_id,Nc)}}}return Object.defineProperty(Oe,"name",{value:ee}),Oe.__location=Ie,Oe.is_hosted=!0,M.prototype=Oe.prototype,Oe},Uyt=["log","error","info","debug","warn","trace"],Hyt=R=>{let M=R.console,ee=Ag(R,M),le=R.__cxt;for(let Ie of Uyt){let Oe=M[Ie];M[Ie]={[Ie](...ft){let Mt=++le.call_counter,Yt=le.breakpoint.current_calltree_node_id==Mt,qt={id:Mt,is_log:!0,version_number:le.version_counter,last_version_number:le.version_counter,ok:!0,value:void 0,fn:Oe,args:ft,context:M,is_new:!1,snapshot:Yt?{args:Ag(le.window,ft),context_before:ee,context_after:ee}:null};le.children==null&&(le.children=[]),le.children.push(qt),le.logs.push(le.call_counter),NC(le)}}[Ie],M[Ie].is_hosted=!0}},Kyt=(R,M,ee,le,Ie,Oe=!1,ft)=>{if(typeof M!="function")throw new R.window.TypeError(Ie+" is not a "+(Oe?"constructor":"function"));if(M.is_hosted)try{return Oe?new M(...le):M.apply(ee,le)}finally{R.children!=null&&(R.children.at(-1).callsite_location=ft)}let Mt=R.children;R.children=null,R.stack.push(!1);let Yt=++R.call_counter,qt=R.version_counter,vr,_i=R.breakpoint.current_calltree_node_id==Yt;_i&&(vr={args:Ag(R.window,le),context_before:Ag(R.window,ee)},NC(R));let ti,Dr,jo;try{return Oe?Dr=new M(...le):Dr=M.apply(ee,le),ti=!0,lW(Dr)&&NC(R),_i&&(vr.ok=ti,vr.context_after=Ag(R.window,ee),vr.value=Ag(R.window,Dr)),Dr}catch(_o){throw ti=!1,jo=_o,_i&&(vr.context_after=Ag(R.window,ee),vr.error=Ag(R.window,jo)),NC(R),jo}finally{let _o=R.stack.pop();if(Ie!=null&&R.children==null)R.children=Mt;else{let Fa={id:Yt,version_number:qt,last_version_number:R.version_counter,ok:ti,value:Dr,error:jo,fn:M,args:le,context:ee,is_new:Oe,snapshot:vr,callsite_location:ft};_o?Fa.children=R.children:(Fa.has_more_children=R.children!=null&&R.children.length!=0,Fa.children_count=R.children?.length??0),R.children=Mt,R.children==null&&(R.children=[]),R.children.push(Fa)}}},Jyt=(R,M,ee)=>{if(!R.is_entrypoint)return;let le=R.snapshots,Ie=le.get(M);if(!(Ie==null||ee==R.breakpoint.selected_call_id))return null;Ie==null&&(Ie=new Map,le.set(M,Ie));let ft=Ie.get(ee);return ft==null?(ft={call_id:ee,ok:!1},NC(R),Ie.set(ee,ft),ft):null},qyt=(R,M,ee)=>(M!=null&&(M.ok=!0,M.value=Ag(R.window,ee)),ee),Xyt=(R,M,ee,le)=>{if(!R.is_entrypoint)return;let Oe=R.snapshots.get(M);if(Oe==null)return le;let ft=Oe.get(ee);return ft!=null&&!ft.ok&&(ft.ok=!0,ft.value=Ag(R.window,le)),le},Yyt=Symbol("loop_break"),$yt=Symbol("loop_continue"),Qyt={trace:jyt,trace_call:Kyt,await_start:Gyt,await_finish:Vyt,before_take_node_snapshot:Jyt,take_node_snapshot_fast:qyt,take_node_snapshot:Xyt,Symbol_loop_break:Yyt,Symbol_loop_continue:$yt};var Rte=R=>R.should_collect_footprints&&R.breakpoint.function_node==R.current_function,qbe=R=>(lp(R)?p3e(R):vG(R))?h_`let __await_state;`:[],Dte=(R,M)=>[...h_`const __call_id = __cxt.call_counter;`,...qbe(R),...Rte(M)?h_` +`),Wbe=(x,P)=>x.reduce((Q,ae,Ee)=>Q??P(ae,Ee),null);var n3e=x=>[...new Set(x)];var r3e="scratch.js";function iW(){let x=localStorage.scratch_files,P;return x==null?P=[{kind:"file",name:r3e,path:"scratch/"+r3e}]:P=JSON.parse(x),{kind:"directory",path:"scratch",children:P}}function pL(){let x=iW();return{...x,children:x.children.map(P=>({...P,contents:Syt(P.path)}))}}function yG(x){localStorage.scratch_files=JSON.stringify(x)}function Syt(x){return localStorage[x]??""}function Fbe(x,P){localStorage[x]=P}function i3e(x,P){let Q="New file name",ae=Q;for(;;){if(P=prompt(ae,P),P==null)return null;if(x.find(Ee=>Ee.name==P)!=null){ae=`File with such name already exists +`+Q;continue}if(!/\.(js|ts)[x]?$/.test(P)){ae=`Must have a .js(x) or .ts(x) extension +`+Q;continue}return P}}function o3e(){let x=iW().children,P=i3e(x);if(P==null)return null;let Q={kind:"file",name:P,path:"scratch/"+P};return x.unshift(Q),yG(x),Q}function a3e(x,P){let Q=iW().children,ae,Ee,Oe=0;for(;ae=x+(Oe==0?"":" "+Oe),Ee="scratch/"+ae,Q.find(ut=>ut.path==Ee)!=null;)Oe++;return Q.unshift({kind:"file",name:ae,path:Ee}),Fbe(Ee,P),yG(Q),pL()}function s3e(x){let P=iW().children;return P.length==1?(alert("Cannot remove the only scratch file"),!1):(P=P.filter(Q=>Q.path!=x),delete localStorage[x],yG(P),!0)}function l3e(x){let P=iW().children,Q=P.find(Ee=>Ee.path==x),ae=i3e(P,Q.name);return ae==null?null:(d3e(Q,ae),yG(P),Q)}function c3e(x,P){let Q=iW().children,ae=Q.find(Vt=>Vt.path==x),Ee=/\.(js|ts)(x)?$/,ut=Ee.exec(ae.name)[2],Rt=(P?".ts":".js")+(ut??""),Gt=ae.name.replace(Ee,Rt);return d3e(ae,Gt),yG(Q),ae}function d3e(x,P){let Q=x.path;x.name=P,x.path="scratch/"+P,localStorage[x.path]=localStorage[Q]??"",delete localStorage[Q]}function gte(x){let P=pL();Os("load_scratch_dir",P,x)}var Tyt=x=>x.endsWith(".htm")||x.endsWith(".html"),u3e=x=>x.endsWith(".js")||x.endsWith(".ts")||x.endsWith(".mjs")||x.endsWith(".jsx")||x.endsWith(".tsx"),yte=class{constructor(P,Q){this.ui=P,this.el=Mr("dialog","panel files_container"),this.active_tab=Q.current_module.startsWith("scratch/")?0:1,this.render(Q),this.el.addEventListener("click",ae=>{let Ee=this.el.getBoundingClientRect();Ee.top<=ae.clientY&&ae.clientY<=Ee.bottom&&Ee.left<=ae.clientX&&ae.clientX<=Ee.right||this.el.close()}),this.el.addEventListener("close",()=>{P.editor.focus()})}change_html_file(P){Os("change_html_file",P.target.value)}render(P){this.file_to_el=new Map;let Q=vbe(P),ae=Mr("div","file_tabs",Mr("a",{href:"javascript: void(0)",class:"tab",click:this.set_active_tab.bind(this,0)},"Scratch files"),Mr("a",{href:"javascript: void(0)",class:"tab "+(Q?" ":"disabled"),click:Q?this.set_active_tab.bind(this,1):()=>null},Mr("span","","Local filesystem"),Mr("a",{href:"javascript: void(0)",class:"file_access",click:this.change_filesystem_access.bind(this,Q)},Q?"Revoke access":"Grant access"))),Ee=this.render_scratch_files(P),Oe=this.render_local_files(P);if(this.el.children.length==0)this.el.appendChild(ae),this.el.appendChild(Ee),Oe!=null&&this.el.appendChild(Oe),this.tabs=ae,this.scratch_files=Ee,this.local_files=Oe;else{this.el.replaceChild(ae,this.tabs),this.tabs=ae,this.local_files==null&&Oe!=null&&(this.el.appendChild(Oe),this.local_files=Oe),this.local_files!=null&&Oe==null?(this.el.removeChild(this.local_files),this.local_files=null):this.local_files==null&&Oe!=null&&(this.el.appendChild(Oe),this.local_files=Oe);for(let[ut,Rt]of[[this.scratch_files,Ee],[this.local_files,Oe]]){if(ut==null||ut==Rt)break;ut.replaceChild(Rt.getElementsByClassName("file_actions")[0],ut.getElementsByClassName("file_actions")[0]),ut.getElementsByClassName("files")[0].replaceChildren(...Rt.getElementsByClassName("files")[0].children)}}this.render_active_tab()}set_active_tab(P){this.active_tab=P,this.render_active_tab()}render_active_tab(){[...this.tabs.children].forEach((P,Q)=>{P.classList.toggle("active",Q==this.active_tab)}),[this.scratch_files,this.local_files].forEach((P,Q)=>{P?.classList.toggle("hidden",Q!=this.active_tab)})}render_scratch_files(P){let Q=Mr("div","file_actions",Mr("a",{class:"file_action",href:"javascript: void(0)",click:this.create_scratch_file.bind(this,!1)},"New file"),Mr("a",{class:"file_action",href:"javascript: void(0)",click:this.remove_file.bind(this)},"Remove file"),Mr("a",{class:"file_action rename_file",href:"javascript: void(0)",click:this.rename_file.bind(this)},"Rename file"));return Mr("div","file_tab_container",Q,Mr("div","files",P.project_dir.scratch_files.children.map(ae=>this.render_file(ae,P))))}render_local_files(P){if(!vbe(P))return null;let Q=Mr("div","file_actions",Mr("a",{class:"file_action",href:"javascript: void(0)",click:this.create_local_file.bind(this,!1)},"New file"),Mr("a",{class:"file_action",href:"javascript: void(0)",click:this.create_local_file.bind(this,!0)},"New dir"),Mr("a",{class:"file_action",href:"javascript: void(0)",click:this.remove_file.bind(this)},"Remove file"),Mr("a",{class:"file_action rename_file",href:"javascript: void(0)",click:this.rename_file.bind(this)},"Rename file"));return Mr("div","file_tab_container",Q,Mr("div","files",this.render_file(P.project_dir.local_files,P)))}render_current_module(P){this.current_file=P,this.active_el.querySelector(".file_title").classList.remove("active"),this.active_el=this.file_to_el.get(P),this.active_el.querySelector(".file_title").classList.add("active"),this.el.querySelector(".rename_file").classList.toggle("disabled",!P.startsWith("scratch/"))}render_select_entrypoint(P,Q){return null}render_file(P,Q){let ae=Mr("div","file",Mr("div",{class:"file_title"+(P.path==Q.current_module?" active":""),click:Ee=>this.on_click(Ee,P)},Mr("span","icon",P.kind=="directory"?"\u{1F4C1}":"\xA0"),P.name,this.render_select_entrypoint(P,Q)),P.children==null?null:P.children.map(Ee=>this.render_file(Ee,Q)));return this.file_to_el.set(P.path,ae),P.path==Q.current_module&&(this.active_el=ae,this.current_file=P.path),ae}change_filesystem_access(P,Q){Q.stopPropagation(),P?(f3e(),this.set_active_tab(0)):(p3e(),this.set_active_tab(1))}create_scratch_file(){let P=o3e();P!=null&>e(P.path)}async remove_file(){if(this.current_file=="local"){alert("Cannot delete root directory");return}let P=`Are you sure you want to delete this file? +Path: `+hv(this.current_file);if(confirm(P))if(this.current_file.startsWith("local/")){await x4e(hv(this.current_file));let Q=await cL(!1);Os("load_local_dir",Q)}else{if(!s3e(this.current_file))return;gte(pL().children[0].path)}}async rename_file(){if(this.current_file.startsWith("scratch/")){let P=l3e(this.current_file);if(P==null)return;Os("load_scratch_dir",pL(),P.path),gte(P.path)}else{if(this.current_file=="local"){alert("Cannot rename root directory");return}let P=Vt=>Vt.path==this.current_file?Vt:Vt.children==null?null:Wbe(Vt.children,cr=>P(cr)),Q=P(gv().project_dir.local_files),ae=Q.kind=="directory",Ee=prompt("Enter new name",Q.name);if(Ee==null)return;let{ok:Oe,message:ut}=await R4e(hv(this.current_file),Ee,ae);if(!Oe){alert(ut);return}let Rt=await cL(!1),Gt=Q.path.split("/").slice(0,-1).join("/")+"/"+Ee;if(ae){let Vt=gv().entrypoint;Vt.startsWith(Q.path)?Os("create_local_file",Rt,Vt.replace(Q.path,Gt)):Os("load_local_dir",Rt),this.render_current_module(Gt)}else Os("create_local_file",Rt,Gt)}}change_use_ts(P){let Q=gv().current_module,ae=c3e(Q,P);gte(ae.path)}async create_local_file(P){let Q=prompt(`Enter ${P?"directory":"file"} name`);if(Q==null)return;let ae=gv().project_dir.local_files,Ee,Oe,ut=this.current_file.startsWith("scratch/")?ae.path:this.current_file,Rt=(cr,ci)=>cr.path==ut?[cr,ci]:cr.children==null?null:Wbe(cr.children,Jr=>Rt(Jr,cr));if([Oe,Ee]=Rt(ae),Oe.kind=="directory")Ee=Oe;else if(Ee==null)throw new Error("illegal state");let Gt=Ee.path+"/"+Q;await A4e(hv(Gt),P);let Vt=await cL(!1);P?(Os("load_local_dir",Vt),this.render_current_module(Gt)):Os("create_local_file",Vt,Gt)}on_click(P,Q){P.stopPropagation(),Q.kind!="directory"&&(Q.path.startsWith("scratch/")||u3e(Q.path))&&Os("change_entrypoint",Q.path),this.render_current_module(Q.path)}};await gG;var[Ayt,zbe]=await gG;var $e=Ayt;var aI=new Set;for(let x in $e.Diagnostics)(x.startsWith("Duplicate")||x.includes("super")||x.includes("Super")||x.includes("used_before")||x.includes("redeclare"))&&aI.add($e.Diagnostics[x].code);aI.add(1108);aI.add(1155);aI.add(1308);aI.add(1103);aI.add(1163);aI.add(1104);aI.add(1105);aI.add(2588);(function(){let P=$e.factory.createIdentifier("test").__proto__,Q=$e.factory.createBlock([]).__proto__,ae=$e.factory.createToken($e.SyntaxKind.FalseKeyword).__proto__;for(let Ee of[P,Q,ae])Object.defineProperty(Ee,"index",{get:function(){return this.getStart()},configurable:!1,enumerable:!1}),Object.defineProperty(Ee,"length",{get:function(){return this.getWidth()},configurable:!1,enumerable:!1}),Object.defineProperty(Ee,"kind_name",{get:function(){return $e.SyntaxKind[this.kind]},configurable:!1,enumerable:!1})})();var Bbe=$e.ScriptTarget.Latest,Iyt=$e.createSourceFile(xC.name,xC.value,Bbe),xyt={...DC,noLib:!0},vte=x=>$e.createSourceFile("temp.ts",x,Bbe,!1,$e.ScriptKind.JSX),m3e={};function Ryt(x){let P=m3e[x];return P==null&&(P=$e.createSourceFile(x,zbe[x],Bbe,void 0,$e.ScriptKind.TSX),m3e[x]=P),P}var Dyt=x=>"file:///"+encodeURI(x),Cyt=x=>decodeURI(x.replace(/^file:\/\/\//,"")),_3e=(x,P,Q=!1)=>{let ae={resolveLibrary(Oe,ut,Rt,Gt){return{path:Gt}},readFile(Oe){throw new Error("not implemented")},useCaseSensitiveFileNames(){return!1},getDefaultLibFileName(){return"lib.d.ts"},getCurrentDirectory(){return""},getCanonicalFileName(Oe){return Oe},resolveModuleNames(Oe){return Oe.map(ut=>({resolvedFileName:ut,extension:".js"}))},getSourceFile(Oe){if(Oe==xC.name)return Iyt;if(zbe?.[Oe]!=null)return Ryt(Oe);if(Oe==x)return P;throw new Error("illegal state")}};return $e.createProgram([x],Q?xyt:DC,ae)};function Nyt(x){let P=new WeakMap;return function(Q){let ae=P.get(Q);return ae!=null||(ae=x(Q),P.set(Q,ae)),ae}}var h3e=Nyt(function(x){let P=[];function Q(ae){ae.kind==$e.SyntaxKind.ImportDeclaration&&(ae.moduleSpecifier.text.startsWith(".")||ae.moduleSpecifier.text.startsWith("/"))&&P.push({node:ae,messageText:"Local imports are not supported yet. Please use a full URL starting with https:// or specify an npm package name"}),ae.kind==$e.SyntaxKind.VariableDeclarationList&&!(ae.flags&($e.NodeFlags.Let|$e.NodeFlags.Const))&&P.push({node:ae,messageText:'"var" declarations are not supported. Use "let" declarations instead'}),($e.isFunctionDeclaration(ae)||$e.isFunctionExpression(ae)||$e.isMethodDeclaration(ae))&&ae.asteriskToken!==void 0&&P.push({node:ae,messageText:"Generator functions are not implemented"}),(ae.kind==$e.SyntaxKind.CallExpression||ae.kind==$e.SyntaxKind.NewExpression)&&ae.questionDotToken!=null&&P.push({node:ae,messageText:"Optional chaining with function calls is not implemented"});let Ee=$e.SyntaxKind[ae.kind];ae.kind==$e.SyntaxKind.ForOfStatement&&ae.awaitModifier!=null&&P.push({node:ae,messageText:"for-await loops are not supported."}),(ae.kind==$e.SyntaxKind.TryStatement||ae.kind==$e.SyntaxKind.ClassDeclaration||ae.kind==$e.SyntaxKind.LabeledStatement||ae.kind==$e.SyntaxKind.ClassExpression||ae.kind==$e.SyntaxKind.SwitchStatement||ae.kind==$e.SyntaxKind.MethodDeclaration||ae.kind==$e.SyntaxKind.GetAccessor||ae.kind==$e.SyntaxKind.SetAccessor||ae.kind==$e.SyntaxKind.TaggedTemplateExpression)&&P.push({node:ae,messageText:`${Ee} is not implemented`});function Oe(ut){return ut.kind==$e.SyntaxKind.PropertyAccessExpression||ut.kind==$e.SyntaxKind.ElementAccessExpression||ut.kind==$e.SyntaxKind.CallExpression}Oe(ae)&&ae.questionDotToken!=null&&ae.parent!=null&&Oe(ae.parent)&&ae.parent.questionDotToken==null&&P.push({node:ae,messageText:"Only the last element of access chain can be optional"}),$e.forEachChild(ae,Q)}return Q(x),P.map(({node:ae,messageText:Ee})=>({file:x,start:ae.getStart(),length:ae.getWidth(),messageText:Ee,category:$e.DiagnosticCategory.Error,code:96488}))});globalThis.parse_ts_blacklist=h3e;var g3e=(x,P)=>{let Q=$e.getScriptKindFromFileName(x),ae=P.getSourceFile(Dyt(x)),Ee=$e.sortAndDeduplicateDiagnostics([...P.getDeclarationDiagnostics(ae),...P.getSyntacticDiagnostics(ae),...h3e(ae),...P.getSemanticDiagnostics(ae).filter(Gt=>aI.has(Gt.code))]),Oe=Ee.length==0,ut=Q==$e.ScriptKind.TS||Q==$e.ScriptKind.TSX,Rt;if(ut){let Gt=function(Vt,cr){Vt.parent=cr,$e.forEachChild(Vt,ci=>Gt(ci,Vt))};Rt=$e.transform(ae,[$e.transformTypeScript],DC).transformed[0],Gt(Rt),delete Rt.original,$e.forEachChildRecursively(Rt,Vt=>{delete Vt.original})}else Rt=ae;return{ok:Oe,program:P,sorted:[x],modules:Oe?{[x]:Rt}:null,problems:Ee.map(Gt=>{let Vt=$e.flattenDiagnosticMessageText(Gt.messageText,` +`);if(Gt.length==null)throw new Error("illegal state");return{message:Vt,index:Gt.start,length:Gt.length,module:Cyt(Gt.file.fileName)}})}};var bte=$e.SyntaxKind,lp=x=>$e.isFunctionLike(x),Gbe=x=>(x.parent?.kind==$e.SyntaxKind.ForOfStatement||x.parent?.kind==$e.SyntaxKind.ForInStatement)&&x.parent.expression==x||x.parent?.kind==$e.SyntaxKind.ForStatement&&x.parent.initializer==x,Ste=x=>{if(Gbe(x))return $e.forEachAncestor(x.parent.parent,P=>{if(lp(P)||Jp(P)||P.kind==$e.SyntaxKind.SourceFile)return P})},oW=x=>x.kind==$e.SyntaxKind.JsxElement||x.kind==$e.SyntaxKind.JsxSelfClosingElement||x.kind==$e.SyntaxKind.JsxFragment,Jp=x=>x.kind==$e.SyntaxKind.ForStatement||x.kind==$e.SyntaxKind.ForOfStatement||x.kind==$e.SyntaxKind.ForInStatement||x.kind==$e.SyntaxKind.DoStatement||x.kind==$e.SyntaxKind.WhileStatement,Tte=x=>{if(x.kind!=$e.SyntaxKind.ForStatement)return null;let P=x.initializer;return P.kind==$e.SyntaxKind.VariableDeclarationList&&P.declarations[0].name.kind==$e.SyntaxKind.Identifier?P.declarations[0].name:P.kind==$e.SyntaxKind.BinaryExpression&&P.operatorToken.kind==$e.SyntaxKind.EqualsToken&&P.left.kind==$e.SyntaxKind.Identifier?P.left:null},Ete=class{constructor(P,Q,ae){this.index=P,this.length=Q,this.original=ae}},CC=x=>x instanceof Ete,Kb=x=>{if(CC(x))return[];if(lp(x)){let Q=x.getChildren(),ae=Q.find(Rt=>Rt.kind==$e.SyntaxKind.OpenParenToken),Ee,Oe;return ae!=null?(Ee=ae.getStart(),Oe=Q.find(Rt=>Rt.kind==$e.SyntaxKind.CloseParenToken).getEnd()-Ee):(Ee=Q[0].index,Oe=Q[0].length),[new Ete(Ee,Oe,x.parameters),x.body]}if(oW(x)){let Q=[];return $e.forEachChildRecursively(x,ae=>{if(ae.kind==$e.SyntaxKind.JsxExpression||ae.kind==$e.SyntaxKind.JsxSpreadAttribute)return Q.push(ae),"skip"}),Q}if(x.kind==$e.SyntaxKind.ImportDeclaration)return[];let P=[];return $e.forEachChild(x,Q=>{(!$e.isToken(Q)||$e.isLiteralExpression(Q)||$e.isIdentifier(Q)||Q.kind==$e.SyntaxKind.NullKeyword||Q.kind==$e.SyntaxKind.ThisKeyword||Q.kind==$e.SyntaxKind.TrueKeyword||Q.kind==$e.SyntaxKind.FalseKeyword)&&P.push(Q)}),P},vG=x=>!!$e.forEachChildRecursively(x,P=>{if(P.kind==$e.SyntaxKind.AwaitExpression)return!0;if(lp(P))return"skip"}),y3e=x=>x.modifiers?.some(P=>P.kind===$e.SyntaxKind.AsyncKeyword)??!1,Pyt=x=>($e.isPrefixUnaryExpression(x)||$e.isPostfixUnaryExpression(x))&&(x.operator===$e.SyntaxKind.PlusPlusToken||x.operator===$e.SyntaxKind.MinusMinusToken),bG=(x,P)=>P.kind==bte.VariableDeclaration&&P.name==x||$e.isAssignmentExpression(P)&&P.left==x||P.kind==bte.BindingElement&&P.name==x||P.kind==$e.SyntaxKind.ForOfStatement&&P.initializer==x||P.kind==$e.SyntaxKind.ForInStatement&&P.initializer==x||P.kind==bte.Parameter&&x!=P.initializer||x.kind==bte.BindingElement||P!=null&&Pyt(P)&&P.operand==x,Myt=$e.createPrinter(),Vbe=x=>{let P;x.kind==$e.SyntaxKind.VariableDeclarationList||x.kind==$e.SyntaxKind.VariableStatement?P=x:lp(x)?P=$e.factory.createVariableDeclarationList([$e.factory.createVariableDeclaration($e.factory.createArrayBindingPattern(x.parameters),void 0,void 0,$e.factory.createNull())]):P=$e.factory.createVariableDeclarationList([$e.factory.createVariableDeclaration(x,void 0,void 0,$e.factory.createNull())]);let Q=Myt.printNode($e.EmitHint.Unspecified,P),ae=vte(Q),Ee="collect.ts",Oe=_3e(Ee,ae,!0);return Oe.getTypeChecker(),[...Oe.getSourceFile(Ee).locals.keys()]};var jbe=x=>Object.entries(x).map(([P,Q])=>Q.statements.filter(ae=>ae.kind==$e.SyntaxKind.ImportDeclaration).map(ae=>({node:ae,module_name:P,url:ae.moduleSpecifier.text}))).flat(),XS=(x,P)=>!fL(x,P)||x.kind==$e.SyntaxKind.AsyncKeyword?null:$e.forEachChild(x,ae=>XS(ae,P))??x,fL=(x,P)=>x.index<=P&&x.index+x.length>P,Ube=(x,P)=>{let Q=[];return $e.forEachAncestor(x,ae=>{if(ae==P)return ae;ae!=x&&Q.push(ae)}),Q},aW=(x,P)=>[x,...Ube(x,P)],f0=(x,P)=>P(x)?x:x.children==null?null:x.children.reduce((Q,ae)=>Q??f0(ae,P),null),Hbe=(x,P,Q=null)=>{if(x==P)return Q;if(x.children==null)return null;for(let ae of x.children){let Ee=Hbe(ae,P,x);if(Ee!=null)return Ee}return null},Ate=(x,P)=>$e.forEachChildRecursively(x,Q=>{if(P(Q))return Q}),Kbe=(x,P)=>$e.forEachChildRecursively(x,Q=>{if(P.get(Q)?.is_error_origin)return Q;if(lp(Q))return"skip"});var Lyt=x=>{let P=[];function Q(ae){if(lp(ae)){P.push(ae);return}for(let Ee of Kb(ae))Q(Ee,ae)}return Q(x),P},v3e=(x,P)=>{let Q=(Vt,cr)=>{let ci=Vt.kind==null?Vt.result:P.get(Vt),Jr=cr.kind==null?cr.result:P.get(cr);return ci==null?Jr==null:Jr!=null&&ci.ok==Jr.ok&&!!ci.is_error_origin==!!Jr.is_error_origin},ae=Vt=>{let cr=P.get(Vt);return{index:Vt.index,length:Vt.length,result:cr==null||lp(Vt)?null:cr.ok?{ok:!0}:{ok:!1,is_error_origin:!!cr.is_error_origin}}},Ee=Vt=>$e.isBinaryExpression(Vt)&&(Vt.operatorToken.kind==$e.SyntaxKind.AmpersandAmpersandToken||Vt.operatorToken.kind==$e.SyntaxKind.BarBarToken||Vt.operatorToken.kind==$e.SyntaxKind.QuestionQuestionToken)||Vt.kind==$e.SyntaxKind.ConditionalExpression,Oe=(Vt,cr)=>{let ci=Kb(Vt).map(es=>ut(es)).reduce((es,[bl,...tu])=>{if(es.length==0)return[bl,...tu];{let Dd=es[es.length-1];if(Q(Dd,bl))return[...es.slice(0,es.length-1),{index:Dd.index,length:bl.index-Dd.index+bl.length,result:bl.result==null?null:{ok:bl.result.ok}},...tu];if(!Ee(Vt)&&Dd.result==null&&bl.result?.ok){let yv=Dd.index+Dd.length;return[...es,{...bl,index:yv,length:bl.index-yv+bl.length},...tu]}else return!Ee(Vt)&&Dd.result?.ok&&bl.result==null?[...es.slice(0,es.length-1),{...Dd,length:bl.index-Dd.index},bl,...tu]:[...es,bl,...tu]}},[]),Jr=P.get(Vt);if((Jr==null||Jr?.ok)&&ci.reduce((es,bl)=>es&&Q(ci[0],bl),!0)){if(Q(Vt,ci[0]))return cr&&lp(Vt)?[{...ae(Vt),result:{ok:P.get(Vt).ok}}]:[ae(Vt)];{let es=ae(Vt),bl=ci.at(-1).index+ci.at(-1).length;return[{...es,length:ci[0].index-es.index},...ci,{...es,index:bl,length:Vt.index+Vt.length-bl}]}}if(ci.length==0)throw new Error("illegal state");let Ar=ci[0],Uo=Q(Ar,Vt)&&P.get(Vt)?.ok?[{...Ar,index:Vt.index,length:Ar.length+Ar.index-Vt.index},...ci.slice(1)]:ci,Sa=Uo[Uo.length-1];return Q(Sa,Vt)&&P.get(Vt)?.ok?[...Uo.slice(0,Uo.length-1),{...Sa,index:Sa.index,length:Vt.index+Vt.length-Sa.index}]:Uo},ut=(Vt,cr=!1)=>{if(lp(Vt)&&!cr)return[{...ae(Vt),result:null}];if((Vt.kind==$e.SyntaxKind.WhileStatement||Vt.kind==$e.SyntaxKind.DoStatement)&&!cr){let Ar;Vt.kind==$e.SyntaxKind.WhileStatement?Ar=Vt.expression.index:Ar=Vt.statement.index;let Uo=P.get(Vt);return[{index:Vt.index,length:Ar-Vt.index,result:Uo==null?null:Uo.ok?{ok:!0}:{ok:!1,is_error_origin:!!Uo.is_error_origin}},{index:Ar,length:Vt.index+Vt.length-Ar,result:null}]}if((Vt.kind==$e.SyntaxKind.ForOfStatement||Vt.kind==$e.SyntaxKind.ForInStatement)&&!cr){let Ar=P.get(Vt);return[{index:Vt.index,length:Vt.initializer.index-Vt.index,result:Ar==null?null:Ar.ok?{ok:!0}:{ok:!1,is_error_origin:!!Ar.is_error_origin}},{index:Vt.initializer.index,length:Vt.initializer.length,result:null},...ut(Vt.expression),{index:Vt.statement.index,length:Vt.statement.length,result:null}]}if(Vt.kind==$e.SyntaxKind.ForStatement&&!cr){let Ar=P.get(Vt);return[{index:Vt.index,length:Vt.initializer.index-Vt.index,result:Ar==null?null:Ar.ok?{ok:!0}:{ok:!1,is_error_origin:!!Ar.is_error_origin}},...ut(Vt.initializer),{index:Vt.condition.index,length:Vt.condition.length,result:null},{index:Vt.incrementor.index,length:Vt.incrementor.length,result:null}]}if(CC(Vt)||Kb(Vt).length==0)return[ae(Vt)];if(P.get(Vt)?.is_error_origin){let Ar=ae(Vt),Uo=Lyt(Vt);return Uo.length==0?[Ar]:Uo.map((Sa,ya)=>{let es;if(ya==0)es=Vt.index;else{let bl=Uo[ya-1];es=bl.index+bl.length}return{index:es,length:Sa.index-es,result:Ar.result}}).concat([{index:Uo.at(-1).index+Uo.at(-1).length,length:Vt.index+Vt.length-(Uo.at(-1).index+Uo.at(-1).length),result:Ar.result}])}let ci=Oe(Vt,cr),Jr=P.get(Vt);return Jr!=null&&!Jr.ok?ci.map(Ar=>Ar.result==null?{...Ar,result:{ok:!1,is_error_origin:!1}}:Ar):ci},Rt=ut(x,!0);Rt=Rt.filter(Vt=>Vt.result!=null&&(Vt.result.ok||Vt.result.is_error_origin));let{ok:Gt}=Rt.reduce(({ok:Vt,prev:cr},ci)=>Vt?cr==null?{ok:Vt,prev:ci}:cr.index+cr.length>ci.index?{ok:!1}:{ok:!0,prev:ci}:{ok:Vt},{ok:!0,prev:null});if(!Gt)throw new Error("illegal state");return Rt},b3e=(x,P)=>Object.values(x.colored_frames?.[P]??{}).map(Q=>x.frame_coloring.get(Q)).flat();var YS=class{constructor(P){this.str=P}},Jbe=class{constructor(){this.map=new Map}set(P,Q,ae){this.map.has(P)||this.map.set(P,new Map),this.map.get(P).set(Q,ae)}get(P,Q){return this.map.get(P)?.get(Q)}},E3e=new Jbe,S3e=(x,...P)=>{let Q=P.filter(ut=>!(ut instanceof YS)).map(ut=>{switch(typeof ut){case"string":return $e.factory.createStringLiteral(ut);case"number":return $e.factory.createNumericLiteral(ut);case"undefined":return $e.factory.createIdentifier("undefined");case"boolean":return(ut?$e.factory.createTrue:$e.factory.createFalse)();default:return ut}}),ae=P.filter(ut=>ut instanceof YS),Ee=[x,ae.map(ut=>ut.str).join()],Oe=E3e.get(...Ee);if(Oe==null){let ut="";for(let Rt=0;Rt{let cr=$e.visitNode(Vt,Gt);if(Rt!=Q.length)throw console.error({replacement_idx:Rt,"replacements.length":Q.length,replacements:P}),new Error("illegal state");return cr}}]).transformed[0]},Gm=(...x)=>S3e(...x).statements,gx=(...x)=>S3e(...x).statements[0].expression;var kyt=["pointerId","buttons","altKey","ctrlKey","shiftKey","metaKey","pageX","pageY","deltaX","deltaY","key","which","timeStamp"],wyt=new Set(["blur","focus","click","dblclick","wheel","input","change","contextmenu","pointerdown","pointerup","pointermove","pointerover","pointerenter","pointerleave","pointercancel","mousedown","mouseup","mousemove","mouseover","mouseenter","mouseleave","mousecancel","keydown","keyup","keypress","load","DOMContentLoaded"]),Oyt=["bubbles","composed","cancelable"],T3e=x=>{let P=x.window,Q=P.EventTarget.prototype.addEventListener,ae=new Set;P.EventTarget.prototype.addEventListener=function(Oe,...ut){return!ae.has(Oe)&&wyt.has(Oe)&&Q.call(P.window,Oe,Rt=>{if(!x.io_trace_is_recording||["change","input"].includes(Oe)&&["checkbox","radio"].includes(Rt.target.type))return;let Gt=Rt.constructor.name,Vt=Object.fromEntries(kyt.map(Jr=>[Jr,Rt[Jr]])),cr=Object.fromEntries(Oyt.map(Jr=>[Jr,Rt[Jr]])),ci=Fyt(P.window,Rt.target);x.io_trace.push({type:"event",constructorName:Gt,event_type:Oe,props:Vt,dispatch_props:cr,selectors:ci,value:Rt.target.value})},!0),ae.add(Oe),Q.call(this,Oe,...ut)}},A3e=(x,P)=>{let Q=x.window[P.constructorName],ae=Object.defineProperties(new Q(P.event_type,P.dispatch_props),Object.fromEntries(Object.entries(P.props).map(([Oe,ut])=>[Oe,{value:ut}]))),Ee=zyt(x.window.window,P.selectors);["input","change"].includes(P.event_type)&&(Ee.value=P.value),Ee.dispatchEvent(ae)},qbe=x=>{x.window.document.dispatchEvent(new Event("DOMContentLoaded")),x.window.window.dispatchEvent(new Event("DOMContentLoaded")),x.window.window.dispatchEvent(new Event("load"))};function Wyt(x){let P=[];for(;x;){P.unshift(x.tagName.toLowerCase());let Q=x.parentNode;if(Q){let ae=[...Q.children];if(ae.length>1){let Ee=ae.indexOf(x)+1;Ee&&(P[0]+=`:nth-child(${Ee})`)}}if(x.hasAttribute("part")){let ae=`[part=${x.getAttribute("part")}]`;P[0]+=ae}if(Q instanceof Element)x=Q;else break}return P.join(" > ")}function Fyt(x,P){if(P==x)return["window"];let Q=[],ae;for(;(ae=P.getRootNode())&&(Q.unshift(Wyt(P)),!(ae===x.document||ae===P));)P=ae.host;return Q}function zyt(x,P){let Q=x.document,ae,Ee;for(let Oe of P){if(Oe==="window")return x;if(Ee=Q?.querySelector(Oe),!Ee)return ae;if(ae=Ee,Q=Ee?.shadowRoot,!Q)break}return ae}var sW=(x,P,Q=!1,ae=!1)=>{let Ee=x;for(let Gt=0;Gt{throw x.io_trace_is_replay_aborted=!0,x.io_trace_resolve_replay_finished(),new x.window.Error("io replay aborted")},D3e=x=>{if(x.io_trace_is_replay_aborted)throw new x.window.Error("io replay was aborted")},I3e=(x,P)=>{for(let Q=x.io_trace_index;Q{x.io_trace_resolver_is_set||(x.io_trace_resolver_is_set=!0,setTimeout(()=>{if(x.io_trace_is_replay_aborted)return;if(x.io_trace_resolver_is_set=!1,x.io_trace_index>=x.io_trace.length)throw new Error("illegal state");let P=x.io_trace[x.io_trace_index];if(x.io_trace_index++,P.type=="call")I3e(x,"resolution").index{let Oe=function(...ut){let Rt=new.target!=null,Gt=x.__cxt;if(D3e(Gt),Gt.io_trace_is_recording){let Vt,cr,ci;try{let Jr=Gt.io_trace.length;if(Q=="setTimeout"){ut=ut.slice();let Ar=ut[0];typeof Ar=="function"&&(ut[0]=Object.defineProperty(function(){Gt.io_trace_is_replay_aborted||(Gt.io_trace.push({type:"resolution",index:Jr}),Ar())},"name",{value:Ar.name}))}return cr=Rt?new P(...ut):P.apply(this,ut),Vt=!0,cr?.[Symbol.toStringTag]=="Promise"?(cr=Promise.prototype.then.call(cr,Ar=>{if(!Gt.io_trace_is_replay_aborted)return Gt.io_trace.push({type:"resolution",index:Jr}),cr.status={ok:!0,value:Ar},Ee?Ar:x.structuredClone(Ar)},Ar=>{if(!Gt.io_trace_is_replay_aborted)throw Gt.io_trace.push({type:"resolution",index:Jr}),cr.status={ok:!1,error:Ar},x.structuredClone(Ar)}),cr):Ee?cr:x.structuredClone(cr)}catch(Jr){throw ci=Jr,Vt=!1,x.structuredClone(Jr)}finally{Gt.io_trace.push({type:"call",name:Q,ok:Vt,value:cr,error:ci,args:ut,has_new_target:Rt,use_context:ae,skip_clone:Ee,context:ae?this:void 0})}}else{let Vt=Gt.io_trace[Gt.io_trace_index];if(Gt.io_trace_index++,Vt==null||Vt.type!="call"||Vt.has_new_target!=Rt||Vt.use_context&&Vt.context!=this||Vt.name!=Q||Q=="setTimeout"&&ut[1]!=Vt.args[1]||Q!="setTimeout"&&JSON.stringify(Vt.args)!=JSON.stringify(ut))R3e(Gt);else if(Vt.ok){if(Vt.value?.[Symbol.toStringTag]=="Promise")return new Gt.window.Promise((cr,ci)=>{Gt.io_trace_resolvers.set(Gt.io_trace_index-1,{resolve:cr,reject:ci})});if(Q=="setTimeout"){let cr=ut[0];return Gt.io_trace_resolvers.set(Gt.io_trace_index-1,{resolve:cr}),Vt.value}else return Ee?Vt.value:x.structuredClone(Vt.value)}else throw x.structuredClone(Vt.error)}};return Object.defineProperty(Oe,"name",{value:P.name}),Oe},Byt=x=>{let P=x.Date,Q=P.prototype,ae=C3e(x,P,"Date",!1);x.Date=function(...Oe){return Oe.length==0?new.target!=null?new ae(...Oe):ae(...Oe):new.target!=null?new P(...Oe):P(...Oe)},x.Date.prototype=Q,x.Date.parse=Date.parse,x.Date.now=Date.now,x.Date.UTC=Date.UTC,sW(x,["Date","now"])},x3e=(x,P)=>{let Q=x[P];x[P]=function(...ae){let Ee=new.target!=null,Oe=x.__cxt;return D3e(Oe),Oe.io_trace_is_recording||R3e(Oe),Ee?new Q(...ae):Q.apply(this,ae)},Object.defineProperty(x[P],"name",{value:P})},N3e=x=>{if(sW(x,["Math","random"]),sW(x,["setTimeout"],void 0,!0),sW(x,["clearTimeout"]),x3e(x,"setInterval"),x3e(x,"clearInterval"),Byt(x),sW(x,["fetch"],void 0,!0),x.Response!=null){let P=["arrayBuffer","blob","formData","json","text"];for(let Q of P)sW(x,["Response","prototype",Q],!0)}};var P3e=globalThis?.CanvasRenderingContext2D?.prototype?.reset;function Gyt(x){P3e!=null?P3e.call(x):x.canvas.width=x.canvas.width+0}function Vyt(x){for(let P of x.contexts)Gyt(P)}function L3e(x){let P=x?.CanvasRenderingContext2D?.prototype;if(P==null)return;let Q=Object.getOwnPropertyDescriptors(P);Object.entries(Q).forEach(([ae,Ee])=>{if(Ee.value!=null){if(typeof Ee.value!="function")return;let Oe=Ee.value;P[ae]={[ae](){let ut=x.__cxt,Rt=++ut.version_counter;try{return Oe.apply(this,arguments)}finally{ut.canvas_ops.contexts.add(this),ut.canvas_ops.ops.push({canvas_context:this,method:Oe,version_number:Rt,args:arguments})}}}[ae]}if(Ee.set!=null){let Oe=Ee.set;Object.defineProperty(P,ae,{set(ut){let Rt=x.__cxt,Gt=++Rt.version_counter;try{Oe.call(this,ut)}finally{Rt.canvas_ops.contexts.add(this),Rt.canvas_ops.ops.push({canvas_context:this,version_number:Gt,set_op:Oe,prop_value:ut})}}})}})}function M3e(x){if(x.method!=null)x.method.apply(x.canvas_context,x.args);else if(x.set_op!=null)x.set_op.call(x.canvas_context,x.prop_value);else throw new Error("illegal op")}function Ite(x,P){if(x.calltree==null)return;let Q=x.rt_cxt;if(Q.canvas_ops.ops!=null)if(Vyt(Q.canvas_ops),P)for(let ae of Q.canvas_ops.ops)M3e(ae);else{let ae=x.current_calltree_node.last_version_number;for(let Ee of Q.canvas_ops.ops){if(Ee.version_number>ae)break;M3e(Ee)}}}var lW;try{(function x(){return x()})()}catch(x){lW=x}var jyt=500,xte=x=>x?.[Symbol.toStringTag]=="Promise",Uyt=x=>(...P)=>{let Q=x(...P),ae=Ee=>Ee.done?Ee.value:xte(Ee.value)?Promise.prototype.then.call(Ee.value,Oe=>ae(Q.next(Oe)),Oe=>ae(Q.throw(Oe))):ae(Q.next(Ee.value));return ae(Q.next())},k3e=(x,P)=>({ok:P.status.ok,value:th(x,P.status.value),error:th(x,P.status.error)}),w3e=new WeakMap,th=(x,P)=>{let Q=new Map;return ae(P);function ae(Oe){if(Oe==null||typeof Oe!="object")return Oe;let ut=Q.get(Oe);if(ut!=null)return ut;let Rt={};return Q.set(Oe,Rt),ut=Ee(Oe),Object.assign(Rt,ut),ut}function Ee(Oe){if(Array.isArray(Oe))return{clazz:"Array",array_entries:Oe.map(ae)};if(x.Element!=null&&Oe instanceof x.Element&&!Oe.isConnected)return{clazz:Oe.constructor?.name,is_svg:x.SVGElement!=null&&Oe instanceof x.SVGElement,object_entries:[],dom_node:Oe.cloneNode(!0)};if(Oe instanceof x.Map)return{clazz:"Map",object_entries:[...Oe.entries()].map(([ut,Rt])=>[ae(ut),ae(Rt)])};if(Oe instanceof x.Set)return{clazz:"Set",array_entries:[...Oe.values()].map(ae)};if(xte(Oe)){let ut={clazz:"Promise",status:null};return Oe.status!=null?ut.status=k3e(x,Oe):(Oe.should_snapshot=!0,w3e.set(Oe,ut)),ut}return Oe instanceof x.Date?{clazz:"Date",string:Oe.toJSON()}:Oe instanceof x.Error?{clazz:Oe.constructor?.name,string:Oe.toString()}:Oe==x?{clazz:"Window",object_entries:[]}:{clazz:Oe.constructor?.name,object_entries:Object.entries(Oe).map(([ut,Rt])=>[ut,ae(Rt)])}}},Hyt=()=>{let x;return[new Promise(Q=>x=Q),x]},O3e=Uyt(function*(x,P,Q){let[ae,Ee]=Hyt(),Oe=Q.length==0;if(P=Oe?{...P,io_trace_is_recording:Oe}:{...P,io_trace_is_recording:Oe,io_trace_is_replay_aborted:!1,io_trace_resolver_is_set:!1,io_trace_resolvers:new Map,io_trace_index:0,io_trace_resolve_replay_finished:Ee},P.window.__cxt!=null)throw new Error("illegal state");P.window.__cxt=P,Qyt(P.window),Jyt(P),N3e(P.window),Kyt(P),T3e(P),L3e(P.window);let ut=!Oe&&!Q.every(cr=>cr.type=="call");ut&&Xbe(P);let Rt=!1,Gt;for(let cr=0;crqbe(P),0)),ut&&(yield Promise.race([ae,Ar]),P.io_trace_is_replay_aborted))break;yield Ar,Gt.ok=!0}catch(Ar){Gt.ok=!1,Gt.error=Ar}if(!Gt.ok)break}if(!P.is_toplevel_call)throw new Error("illegal state");Oe&&!Rt&&qbe(P),ut&&(yield ae),P.io_trace_is_recording=!0,P.is_recording_deferred_calls=!0;let Vt=P.logs;if(P.logs=[],!P.is_toplevel_call)throw new Error("illegal state");return{modules:P.modules,calltree:Gt,logs:Vt,rt_cxt:P}}),Kyt=x=>{x.window.leporello={storage:x.storage}},Jyt=x=>{let P=x.window.Promise.prototype.then;x.original_then=P,x.window.Promise.prototype.then=function(ae,Ee){NC(x),x.children==null&&(x.children=[]);let Oe=x.children,ut=x.is_subcall,Rt=(Gt,Vt)=>typeof Gt!="function"?Gt:cr=>{if(this.status==null&&(this.status=Vt?{ok:Vt,value:cr}:{ok:Vt,error:cr},this.should_snapshot)){let ci=w3e.get(this);ci.status=k3e(x.window,this)}x.children=Oe,x.is_toplevel_call=!1,x.is_subcall=ut;try{return Gt(cr)}finally{x.children=null,x.is_toplevel_call=!0,x.is_subcall=!1}};return P.call(this,Rt(ae,!0),Rt(Ee,!1))}},NC=x=>{for(let P=0;P{x.children==null&&(x.children=[]);let ae={children_copy:x.children,promise:P,is_subcall:x.is_subcall};return xte(P)?ae.promise=P.then(Ee=>{ae.status={ok:!0,value:Ee}},Ee=>{ae.status={ok:!1,error:Ee}}):ae.status={ok:!0,value:P},ae},Xyt=(x,P)=>{if(x.is_toplevel_call=!1,x.is_subcall=P.is_subcall,x.original_then.call(Promise.resolve(),function(){x.is_toplevel_call=!0,x.children=null}),x.children=P.children_copy,P.status.ok)return P.status.value;throw P.status.error},Yyt=(x,P,Q,ae)=>{function Ee(...Oe){if(x.stack.length>jyt)throw new lW.constructor(lW.message);let ut=x.children;x.children=null,x.stack.push(!1);let Rt=++x.call_counter,Gt=x.version_counter,Vt,cr=x.breakpoint.current_calltree_node_id==Rt;x.breakpoint.parent_calltree_node?.id==Rt&&(x.is_subcall=!0),cr&&(Vt={args:th(x.window,Oe),context_before:th(x.window,this)},NC(x));let ci,Jr,Ar,Uo=x.is_toplevel_call;x.is_toplevel_call=!1;let Sa=new.target!=null;try{return Sa?Jr=new P(...Oe):Jr=P.apply(this,Oe),ci=!0,cr&&(Vt.ok=ci,Vt.context_after=th(x.window,this),Vt.value=th(x.window,Jr)),Jr}catch(ya){throw ci=!1,Ar=ya,cr&&(Vt.context_after=th(x.window,this),Vt.error=th(x.window,Ar)),NC(x),Ar}finally{let ya={id:Rt,is_new:Sa,version_number:Gt,last_version_number:x.version_counter,ok:ci,context:this,value:Jr,error:Ar,fn:Ee,args:Oe,snapshot:Vt};if(x.breakpoint.parent_calltree_node?.id==Rt&&(x.is_subcall=!1),x.stack.pop()?ya.children=x.children:ya.has_more_children=x.children!=null&&x.children.length!=0,x.children=ut,x.children==null&&(x.children=[]),x.children.push(ya),x.is_toplevel_call=Uo,x.is_toplevel_call){if(x.children.length!=1)throw new Error("illegal state");let bl=x.children[0];if(x.children=null,x.is_recording_deferred_calls){let tu=x.logs;x.logs=[],x.on_deferred_call(bl,x.execution_id,tu)}else x.deferred_calls.push(bl)}}}return Object.defineProperty(Ee,"name",{value:Q}),Ee.__location=ae,Ee.is_hosted=!0,P.prototype=Ee.prototype,Ee},$yt=["log","error","info","debug","warn","trace"],Qyt=x=>{let P=x.console,Q=th(x,P),ae=x.__cxt;for(let Ee of $yt){let Oe=P[Ee];P[Ee]={[Ee](...ut){let Rt=++ae.call_counter,Gt=ae.breakpoint.current_calltree_node_id==Rt,Vt={id:Rt,is_log:!0,version_number:ae.version_counter,last_version_number:ae.version_counter,ok:!0,value:void 0,fn:Oe,args:ut,context:P,is_new:!1,snapshot:Gt?{args:th(ae.window,ut),context_before:Q,context_after:Q}:null};ae.children==null&&(ae.children=[]),ae.children.push(Vt),ae.logs.push(ae.call_counter),NC(ae)}}[Ee],P[Ee].is_hosted=!0}},Zyt=(x,P,Q,ae,Ee,Oe=!1,ut)=>{if(typeof P!="function")throw new x.window.TypeError(Ee+" is not a "+(Oe?"constructor":"function"));if(P.is_hosted)try{return Oe?new P(...ae):P.apply(Q,ae)}finally{x.children!=null&&(x.children.at(-1).callsite_location=ut)}let Rt=x.children;x.children=null,x.stack.push(!1);let Gt=++x.call_counter,Vt=x.version_counter,cr,ci=x.breakpoint.current_calltree_node_id==Gt;ci&&(cr={args:th(x.window,ae),context_before:th(x.window,Q)},NC(x));let Jr,Ar,Uo;try{return Oe?Ar=new P(...ae):Ar=P.apply(Q,ae),Jr=!0,ci&&(cr.ok=Jr,cr.context_after=th(x.window,Q),cr.value=th(x.window,Ar)),Ar}catch(Sa){throw Jr=!1,Uo=Sa,ci&&(cr.context_after=th(x.window,Q),cr.error=th(x.window,Uo)),NC(x),Uo}finally{let Sa=x.stack.pop();if(Ee!=null&&x.children==null)x.children=Rt;else{let ya={id:Gt,version_number:Vt,last_version_number:x.version_counter,ok:Jr,value:Ar,error:Uo,fn:P,args:ae,context:Q,is_new:Oe,snapshot:cr,callsite_location:ut};Sa?ya.children=x.children:(ya.has_more_children=x.children!=null&&x.children.length!=0,ya.children_count=x.children?.length??0),x.children=Rt,x.children==null&&(x.children=[]),x.children.push(ya)}}},evt=(x,P)=>{x.first_call_id==null&&(x.first_call_id=P),x.is_subcall&&x.selected_call_id==null&&(x.selected_call_id=P)},tvt=(x,P,Q)=>{if(!x.is_entrypoint)return;let ae=x.snapshots,Ee=ae.get(P);if(!(Ee==null||Q==x.selected_call_id||Q==x.first_call_id))return null;Ee==null&&(Ee=new Map,ae.set(P,Ee));let ut=Ee.get(Q);return ut==null?(ut={call_id:Q,ok:!1},NC(x),Ee.set(Q,ut),ut):null},nvt=(x,P,Q)=>(P!=null&&(P.ok=!0,P.value=th(x.window,Q)),Q),rvt=(x,P,Q,ae)=>{if(!x.is_entrypoint)return;let Oe=x.snapshots.get(P);if(Oe==null)return ae;let ut=Oe.get(Q);return ut!=null&&!ut.ok&&(ut.ok=!0,ut.value=th(x.window,ae)),ae},ivt=Symbol("loop_break"),ovt=Symbol("loop_continue"),avt={trace:Yyt,trace_call:Zyt,set_record_call:NC,record_subcall:evt,await_start:qyt,await_finish:Xyt,before_take_node_snapshot:tvt,take_node_snapshot_fast:nvt,take_node_snapshot:rvt,Symbol_loop_break:ivt,Symbol_loop_continue:ovt};var Dte=x=>x.should_collect_footprints&&x.breakpoint.function_node==x.current_function,Zbe=x=>(lp(x)?y3e(x):vG(x))?Gm`let __await_state; __rt.set_record_call(__cxt);`:[],Cte=(x,P)=>[...Gm`const __call_id = __cxt.call_counter;`,...Zbe(x),...Dte(P)?Gm` const __footprints = new Map(); __cxt.footprints.set(__call_id, __footprints); - `:[]],Zyt=R=>{let M=R.parent;return M!=null&&(Ze.isPropertyAssignment(M)&&Ze.isIdentifier(M.name)||Ze.isVariableDeclaration(M)&&Ze.isIdentifier(M.name))?M.name.text:""},P3e=(R,M,ee)=>{let le=R.breakpoint.function_node,Ie=`${R.module}_${le.index}_${le.length}`,Oe=Ze.factory.createObjectLiteralExpression(Wbe(ee).map(ft=>Ze.factory.createShorthandPropertyAssignment(Ze.factory.createIdentifier(ft))));return Hbe(M,Oe,Ie)},evt=(R,M,ee)=>{R.kind==Ze.SyntaxKind.FunctionDeclaration&&(R=Ze.factory.createFunctionExpression(R.modifiers,R.asteriskToken,R.name,R.typeParameters,R.parameters,R.type,R.body));let le=Dte(ee,M),Ie=Ze.factory.createVariableStatement(void 0,Ze.factory.createVariableDeclarationList([Ze.factory.createVariableDeclaration(Ze.factory.createArrayBindingPattern(R.parameters),void 0,void 0,Ze.factory.createIdentifier("__arguments"))]));if(M.breakpoint.function_node==ee){if(Ie=P3e(M,Ie,R),Rte(M)){let ti=Hb(ee)[0],Dr=`${ti.index}_${ti.length}`;Ie=[...Ie,h_`__footprints.set(${Dr}, true);\n`[0]]}}else Ie=[Ie];let ft=[Ze.factory.createParameterDeclaration(void 0,Ze.factory.createToken(Ze.SyntaxKind.DotDotDotToken),Ze.factory.createIdentifier("__arguments"),void 0,void 0,void 0)],Mt=Ze.factory.createBlock([...le,...Ie,...R.body.kind==Ze.SyntaxKind.Block?R.body.statements:[Ze.factory.createReturnStatement(R.body)]]),Yt;if(R.kind==Ze.SyntaxKind.FunctionExpression)Yt=Ze.factory.updateFunctionExpression(R,R.modifiers,void 0,void 0,void 0,ft,void 0,Mt);else if(R.kind==Ze.SyntaxKind.ArrowFunction)Yt=Ze.factory.updateArrowFunction(R,R.modifiers,void 0,ft,void 0,void 0,Mt);else throw console.error("bad node kind for function",R.kind),new Error("illegal state");let qt=R.parameters.every(ti=>ti.dotDotDotToken==null)?R.parameters.length:void 0,vr=Cte(ee,M),_i=ee.name!=null?ee.name.escapedText:Zyt(ee);return gx`__rt.trace(__cxt, ${Yt}, ${_i}, ${qt}, ${vr})`},tvt=(R,M)=>R.getText(M.toplevel).replaceAll(new RegExp("\\(.*\\)","g"),"(...)"),Cte=(R,M)=>Ze.factory.createStringLiteral(JSON.stringify({index:R.index,length:R.length,module:M.module})),nvt=(R,M,ee)=>{let le=Ze.factory.createArrayLiteralExpression(R.arguments);if(ee==M.breakpoint.selected_node){let Yt=ee.arguments.pos,qt=ee.arguments.end-ee.arguments.pos,vr=`${M.module}_${Yt}_${qt}`;le=xte(le,vr)}let Ie=ee.kind==Ze.SyntaxKind.NewExpression,Oe=Ze.factory.createStringLiteral(tvt(ee.expression,M)),ft=Cte(ee,M);function Mt(Yt){return Rte(M)&&(Yt=k3e(Yt,ee.expression)),ee.expression==M.breakpoint.selected_node&&(Yt=M3e(Yt,M,ee.expression)),Yt}if(ee.expression.kind==Ze.SyntaxKind.PropertyAccessExpression||ee.expression.kind==Ze.SyntaxKind.ElementAccessExpression){let Yt;switch(ee.expression.kind){case Ze.SyntaxKind.PropertyAccessExpression:Yt=Ze.factory.createPropertyAccessChain(Ze.factory.createIdentifier("__obj"),R.expression.questionDotToken,R.expression.name);break;case Ze.SyntaxKind.ElementAccessExpression:Yt=Ze.factory.createElementAccessChain(Ze.factory.createIdentifier("__obj"),R.expression.questionDotToken,R.expression.argumentExpression);break;default:throw new Error("illegal state")}return Yt=Mt(gx`( - __obj = ${R.expression.expression}, - __fn = ${Yt} + `:[],P.breakpoint.function_node==x&&P.breakpoint.parent_calltree_node!=null?Gm`__rt.record_subcall(__cxt, __call_id)`[0]:$e.factory.createEmptyStatement()],svt=x=>{let P=x.parent;return P!=null&&($e.isPropertyAssignment(P)&&$e.isIdentifier(P.name)||$e.isVariableDeclaration(P)&&$e.isIdentifier(P.name))?P.name.text:""},F3e=(x,P,Q)=>{let ae=x.breakpoint.function_node,Ee=`${x.module}_${ae.index}_${ae.length}`,Oe=$e.factory.createObjectLiteralExpression(Vbe(Q).map(ut=>$e.factory.createShorthandPropertyAssignment($e.factory.createIdentifier(ut))));return Ybe(P,Oe,Ee)},lvt=(x,P,Q)=>{x.kind==$e.SyntaxKind.FunctionDeclaration&&(x=$e.factory.createFunctionExpression(x.modifiers,x.asteriskToken,x.name,x.typeParameters,x.parameters,x.type,x.body));let ae=Cte(Q,P),Ee=$e.factory.createVariableStatement(void 0,$e.factory.createVariableDeclarationList([$e.factory.createVariableDeclaration($e.factory.createArrayBindingPattern(x.parameters),void 0,void 0,$e.factory.createIdentifier("__arguments"))]));if(P.breakpoint.function_node==Q){if(Ee=F3e(P,Ee,x),Dte(P)){let ci=Kb(Q)[0],Jr=`${ci.index}_${ci.length}`;Ee=[...Ee,Gm`__footprints.set(${Jr}, true);\n`[0]]}}else Ee=[Ee];let ut=[$e.factory.createParameterDeclaration(void 0,$e.factory.createToken($e.SyntaxKind.DotDotDotToken),$e.factory.createIdentifier("__arguments"),void 0,void 0,void 0)],Rt=$e.factory.createBlock([...ae,...Ee,...x.body.kind==$e.SyntaxKind.Block?x.body.statements:[$e.factory.createReturnStatement(x.body)]]),Gt;if(x.kind==$e.SyntaxKind.FunctionExpression)Gt=$e.factory.updateFunctionExpression(x,x.modifiers,void 0,void 0,void 0,ut,void 0,Rt);else if(x.kind==$e.SyntaxKind.ArrowFunction)Gt=$e.factory.updateArrowFunction(x,x.modifiers,void 0,ut,void 0,void 0,Rt);else throw console.error("bad node kind for function",x.kind),new Error("illegal state");let Vt=Nte(Q,P),cr=Q.name!=null?Q.name.escapedText:svt(Q);return gx`__rt.trace(__cxt, ${Gt}, ${cr}, ${Vt})`},cvt=(x,P)=>x.getText(P.toplevel).replaceAll(new RegExp("\\(.*\\)","g"),"(...)"),Nte=(x,P)=>$e.factory.createStringLiteral(JSON.stringify({index:x.index,length:x.length,module:P.module})),eEe=x=>{let P=x.getChildren(),Q=P.find(Ee=>Ee.kind==$e.SyntaxKind.OpenParenToken).getStart(),ae=P.find(Ee=>Ee.kind==$e.SyntaxKind.CloseParenToken).getEnd()-Q;return{index:Q,length:ae}},dvt=(x,P,Q)=>{let ae=$e.factory.createArrayLiteralExpression(x.arguments);if(Q==P.breakpoint.selected_node){let Gt=eEe(Q),Vt=`${P.module}_${Gt.index}_${Gt.length}`;ae=Rte(ae,Vt)}let Ee=Q.kind==$e.SyntaxKind.NewExpression,Oe=$e.factory.createStringLiteral(cvt(Q.expression,P)),ut=Nte(Q,P);function Rt(Gt){return Dte(P)&&(Gt=G3e(Gt,Q.expression)),Q.expression==P.breakpoint.selected_node&&(Gt=z3e(Gt,P,Q.expression)),Gt}if(Q.expression.kind==$e.SyntaxKind.PropertyAccessExpression||Q.expression.kind==$e.SyntaxKind.ElementAccessExpression){let Gt;switch(Q.expression.kind){case $e.SyntaxKind.PropertyAccessExpression:Gt=$e.factory.createPropertyAccessChain($e.factory.createIdentifier("__obj"),x.expression.questionDotToken,x.expression.name);break;case $e.SyntaxKind.ElementAccessExpression:Gt=$e.factory.createElementAccessChain($e.factory.createIdentifier("__obj"),x.expression.questionDotToken,x.expression.argumentExpression);break;default:throw new Error("illegal state")}return Gt=Rt(gx`( + __obj = ${x.expression.expression}, + __fn = ${Gt} )`),gx`( - ${Yt}, - __rt.trace_call(__cxt, __fn, __obj, ${le}, ${Oe}, ${Ie}, ${ft}) - )`}else{let Yt=R.expression;return Yt=Mt(Yt),gx` - __rt.trace_call(__cxt, ${Yt}, null, ${le}, ${Oe}, ${Ie}, ${ft}) - `}},xte=(R,M)=>gx` + ${Gt}, + __rt.trace_call(__cxt, __fn, __obj, ${ae}, ${Oe}, ${Ee}, ${ut}) + )`}else{let Gt=x.expression;return Gt=Rt(Gt),gx` + __rt.trace_call(__cxt, ${Gt}, null, ${ae}, ${Oe}, ${Ee}, ${ut}) + `}},Rte=(x,P)=>gx` __rt.take_node_snapshot_fast( __cxt, - __rt.before_take_node_snapshot(__cxt, ${M}, __call_id), - ${R} + __rt.before_take_node_snapshot(__cxt, ${P}, __call_id), + ${x} ) - `,Hbe=(R,M,ee)=>h_` - __rt.before_take_node_snapshot(__cxt, ${ee}, __call_id); - ${R} - __rt.take_node_snapshot(__cxt, ${ee}, __call_id, ${M}); - `;function rvt(R){let M=R.declarationList,ee=M.declarations;return ee.length==1?[R]:ee.map(le=>Ze.factory.updateVariableStatement(R,void 0,Ze.factory.updateVariableDeclarationList(M,[le])))}var M3e=(R,M,ee)=>{let le=`${M.module}_${ee.index}_${ee.length}`;if(Ze.isExpression(ee))return xte(R,le);if(ee.kind==Ze.SyntaxKind.ExpressionStatement)throw new Error("illegal state");if(ee.kind==Ze.SyntaxKind.VariableStatement||ee.kind==Ze.SyntaxKind.VariableDeclarationList){let Ie,Oe=ee.kind==Ze.SyntaxKind.VariableDeclarationList?ee:ee.declarationList,ft=Wbe(ee);if(Oe.declarations.length==1&&Oe.declarations[0].name.kind==Ze.SyntaxKind.Identifier){if(ft.length!=1)throw new Error("illegal state");Ie=Ze.factory.createIdentifier(ft[0])}else Ie=Ze.factory.createObjectLiteralExpression(ft.map(Mt=>Ze.factory.createShorthandPropertyAssignment(Ze.factory.createIdentifier(Mt))));return Hbe(R,Ie,le)}if(ee.kind==Ze.SyntaxKind.ThrowStatement)return h_` - __rt.before_take_node_snapshot(__cxt, ${le}, __call_id); - ${R}; - `;if(ee.kind==Ze.SyntaxKind.ReturnStatement||ee.kind==Ze.SyntaxKind.BreakStatement||ee.kind==Ze.SyntaxKind.ContinueStatement)return[Ze.factory.createExpressionStatement(xte(Ze.factory.createIdentifier("undefined"),le)),...Array.isArray(R)?R:[R]];if(ee.kind==Ze.SyntaxKind.ImportDeclaration){let Ie=gx`__cxt.modules[${ee.moduleSpecifier.text}]`;return Hbe(R,Ie,le)}return R},L3e=R=>(R.parent.kind==Ze.SyntaxKind.CallExpression||R.parent.kind==Ze.SyntaxKind.NewExpression)&&R==R.parent.expression,k3e=(R,M)=>{let ee=`${M.index}_${M.length}`;return gx` + `,Ybe=(x,P,Q)=>Gm` + __rt.before_take_node_snapshot(__cxt, ${Q}, __call_id); + ${x} + __rt.take_node_snapshot(__cxt, ${Q}, __call_id, ${P}); + `;function uvt(x){let P=x.declarationList,Q=P.declarations;return Q.length==1?[x]:Q.map(ae=>$e.factory.updateVariableStatement(x,void 0,$e.factory.updateVariableDeclarationList(P,[ae])))}var z3e=(x,P,Q)=>{let ae=`${P.module}_${Q.index}_${Q.length}`;if($e.isExpression(Q))return Rte(x,ae);if(Q.kind==$e.SyntaxKind.ExpressionStatement)throw new Error("illegal state");if(Q.kind==$e.SyntaxKind.VariableStatement||Q.kind==$e.SyntaxKind.VariableDeclarationList){let Ee,Oe=Q.kind==$e.SyntaxKind.VariableDeclarationList?Q:Q.declarationList,ut=Vbe(Q);if(Oe.declarations.length==1&&Oe.declarations[0].name.kind==$e.SyntaxKind.Identifier){if(ut.length!=1)throw new Error("illegal state");Ee=$e.factory.createIdentifier(ut[0])}else Ee=$e.factory.createObjectLiteralExpression(ut.map(Rt=>$e.factory.createShorthandPropertyAssignment($e.factory.createIdentifier(Rt))));return Ybe(x,Ee,ae)}if(Q.kind==$e.SyntaxKind.ThrowStatement)return Gm` + __rt.before_take_node_snapshot(__cxt, ${ae}, __call_id); + ${x}; + `;if(Q.kind==$e.SyntaxKind.ReturnStatement||Q.kind==$e.SyntaxKind.BreakStatement||Q.kind==$e.SyntaxKind.ContinueStatement)return[$e.factory.createExpressionStatement(Rte($e.factory.createIdentifier("undefined"),ae)),...Array.isArray(x)?x:[x]];if(Q.kind==$e.SyntaxKind.ImportDeclaration){let Ee=gx`__cxt.modules[${Q.moduleSpecifier.text}]`;return Ybe(x,Ee,ae)}return x},B3e=x=>(x.parent.kind==$e.SyntaxKind.CallExpression||x.parent.kind==$e.SyntaxKind.NewExpression)&&x==x.parent.expression,G3e=(x,P)=>{let Q=`${P.index}_${P.length}`;return gx` ( - __footprints.set(${ee}, false), - __tmp = ${R}, - __footprints.set(${ee}, true), + __footprints.set(${Q}, false), + __tmp = ${x}, + __footprints.set(${Q}, true), __tmp ) - `},Kbe=new Set;for(let R in Ze.SyntaxKind){let M=Ze.SyntaxKind[R];typeof M=="string"&&M.startsWith("Jsx")&&Kbe.add(parseInt(R))}var w3e=R=>!(R.kind==Ze.SyntaxKind.VariableDeclarationList&&!(R.parent.kind==Ze.SyntaxKind.ForStatement&&R.parent.initializer==R)||R.kind==Ze.SyntaxKind.SourceFile||R.kind==Ze.SyntaxKind.PropertyAssignment||R.kind==Ze.SyntaxKind.ShorthandPropertyAssignment||R.kind==Ze.SyntaxKind.ParenthesizedExpression||R.kind==Ze.SyntaxKind.VariableDeclaration||R.kind==Ze.SyntaxKind.ExpressionStatement||R.kind==Ze.SyntaxKind.SpreadElement||R.kind==Ze.SyntaxKind.SpreadAssignment||R.kind==Ze.SyntaxKind.BindingElement||R.kind==Ze.SyntaxKind.ComputedPropertyName||R.kind==Ze.SyntaxKind.Parameter||R.kind==Ze.SyntaxKind.NamedImports||R.kind==Ze.SyntaxKind.NamespaceImport||R.kind==Ze.SyntaxKind.ImportSpecifier||R.kind==Ze.SyntaxKind.ImportClause||R.kind==Ze.SyntaxKind.TemplateHead||R.kind==Ze.SyntaxKind.TemplateMiddle||R.kind==Ze.SyntaxKind.TemplateTail||R.kind==Ze.SyntaxKind.TemplateSpan||R.kind==Ze.SyntaxKind.PartiallyEmittedExpression||R.kind==Ze.SyntaxKind.AsyncKeyword||R.kind==Ze.SyntaxKind.OmittedExpression||Kbe.has(R.kind)&&!iW(R)||Kbe.has(R.parent?.kind)&&R.parent?.kind!=Ze.SyntaxKind.JsxExpression&&R.parent?.kind!=Ze.SyntaxKind.JsxSpreadAttribute||bG(R,R.parent)||R.parent.kind==Ze.SyntaxKind.BindingElement&&R.parent.propertyName==R||(R.parent.kind==Ze.SyntaxKind.PropertyAccessExpression||R.parent.kind==Ze.SyntaxKind.PropertyAssignment||R.parent.kind==Ze.SyntaxKind.ShorthandPropertyAssignment)&&R.parent.name==R),ivt=(R,M,ee)=>{if(!Rte(M)||!w3e(ee)||L3e(ee))return R;if(ee.kind==Ze.SyntaxKind.Block)if(ee.statements.length==0){let le=`${ee.index}_${ee.length}`;return h_`{__footprints.set(${le}, true);}`}else return R;if(Ze.isExpression(ee))return k3e(R,ee);{(ee.kind==Ze.SyntaxKind.VariableStatement||ee.kind==Ze.SyntaxKind.VariableDeclarationList)&&(R=rvt(R).flatMap(Ie=>{let Oe=Ze.getOriginalNode(Ie.declarationList.declarations[0]),ft=`${Oe.index}_${Oe.length}`;return h_` - __footprints.set(${ft}, false); - ${Ie}; - __footprints.set(${ft}, true); - `}));let le=`${ee.index}_${ee.length}`;return h_` - __footprints.set(${le}, false); - ${R}; - __footprints.set(${le}, true); - `}},ovt=Ze.createPrinter({newLine:Ze.NewLineKind.LineFeed,removeComments:!0});function avt(R,M,ee){let le={...R,current_function:ee},Ie=vG(ee),Oe=Dte(ee,le),ft;if(le.breakpoint.function_node==ee){let Fa=`${le.module}_${ee.index}_${ee.length}`;ft=xte(Ze.factory.createNull(),Fa)}else ft=null;let Mt=Ze.factory.createUniqueName("loop_result"),Yt=Ze.factory.createUniqueName("loop_body"),qt=Ze.factory.createUniqueName("loop_counter"),vr=Ze.factory.createUniqueName("loop_iter_name"),_i;M.kind==Ze.SyntaxKind.WhileStatement?_i=h_` - if(${M.expression}) { - ${M.statement}; + `},$be=new Set;for(let x in $e.SyntaxKind){let P=$e.SyntaxKind[x];typeof P=="string"&&P.startsWith("Jsx")&&$be.add(parseInt(x))}var V3e=x=>!(x.kind==$e.SyntaxKind.VariableDeclarationList&&!(x.parent.kind==$e.SyntaxKind.ForStatement&&x.parent.initializer==x)||x.kind==$e.SyntaxKind.SourceFile||x.kind==$e.SyntaxKind.PropertyAssignment||x.kind==$e.SyntaxKind.ShorthandPropertyAssignment||x.kind==$e.SyntaxKind.ParenthesizedExpression||x.kind==$e.SyntaxKind.VariableDeclaration||x.kind==$e.SyntaxKind.ExpressionStatement||x.kind==$e.SyntaxKind.SpreadElement||x.kind==$e.SyntaxKind.SpreadAssignment||x.kind==$e.SyntaxKind.BindingElement||x.kind==$e.SyntaxKind.ComputedPropertyName||x.kind==$e.SyntaxKind.Parameter||x.kind==$e.SyntaxKind.NamedImports||x.kind==$e.SyntaxKind.NamespaceImport||x.kind==$e.SyntaxKind.ImportSpecifier||x.kind==$e.SyntaxKind.ImportClause||x.kind==$e.SyntaxKind.TemplateHead||x.kind==$e.SyntaxKind.TemplateMiddle||x.kind==$e.SyntaxKind.TemplateTail||x.kind==$e.SyntaxKind.TemplateSpan||x.kind==$e.SyntaxKind.PartiallyEmittedExpression||x.kind==$e.SyntaxKind.AsyncKeyword||x.kind==$e.SyntaxKind.OmittedExpression||$be.has(x.kind)&&!oW(x)||$be.has(x.parent?.kind)&&x.parent?.kind!=$e.SyntaxKind.JsxExpression&&x.parent?.kind!=$e.SyntaxKind.JsxSpreadAttribute||bG(x,x.parent)||x.parent.kind==$e.SyntaxKind.BindingElement&&x.parent.propertyName==x||(x.parent.kind==$e.SyntaxKind.PropertyAccessExpression||x.parent.kind==$e.SyntaxKind.PropertyAssignment||x.parent.kind==$e.SyntaxKind.ShorthandPropertyAssignment)&&x.parent.name==x),pvt=(x,P,Q)=>{if(!Dte(P)||!V3e(Q)||B3e(Q))return x;if(Q.kind==$e.SyntaxKind.Block)if(Q.statements.length==0){let ae=`${Q.index}_${Q.length}`;return Gm`{__footprints.set(${ae}, true);}`}else return x;if($e.isExpression(Q))return G3e(x,Q);{(Q.kind==$e.SyntaxKind.VariableStatement||Q.kind==$e.SyntaxKind.VariableDeclarationList)&&(x=uvt(x).flatMap(Ee=>{let Oe=$e.getOriginalNode(Ee.declarationList.declarations[0]),ut=`${Oe.index}_${Oe.length}`;return Gm` + __footprints.set(${ut}, false); + ${Ee}; + __footprints.set(${ut}, true); + `}));let ae=`${Q.index}_${Q.length}`;return Gm` + __footprints.set(${ae}, false); + ${x}; + __footprints.set(${ae}, true); + `}},fvt=$e.createPrinter({newLine:$e.NewLineKind.LineFeed,removeComments:!0});function mvt(x,P,Q){let ae={...x,current_function:Q},Ee=vG(Q),Oe=Cte(Q,ae),ut;if(ae.breakpoint.function_node==Q){let ya=`${ae.module}_${Q.index}_${Q.length}`;ut=Rte($e.factory.createNull(),ya)}else ut=null;let Rt=$e.factory.createUniqueName("loop_result"),Gt=$e.factory.createUniqueName("loop_body"),Vt=$e.factory.createUniqueName("loop_counter"),cr=$e.factory.createUniqueName("loop_iter_name"),ci;P.kind==$e.SyntaxKind.WhileStatement?ci=Gm` + if(${P.expression}) { + ${P.statement}; return __rt.Symbol_loop_continue } else { return __rt.Symbol_loop_break } - `:_i=h_` - ${M.statement}; - if(${M.expression}) { + `:ci=Gm` + ${P.statement}; + if(${P.expression}) { return __rt.Symbol_loop_continue } else { return __rt.Symbol_loop_break } - `;let ti=new XS(Ie?"async":""),Dr=new XS(Ie?"await":""),jo=Tte(ee),_o=Cte(ee,le);return h_` - const ${Mt} = ${Dr} __rt.trace_call( + `;let Jr=new YS(Ee?"async":""),Ar=new YS(Ee?"await":""),Uo=Tte(Q),Sa=Nte(Q,ae);return Gm` + const ${Rt} = ${Ar} __rt.trace_call( __cxt, Object.defineProperty( - ${ti} () => { - ${qbe(ee)}; + ${Jr} () => { + ${Zbe(Q)}; - const ${Yt} = __rt.trace( + const ${Gt} = __rt.trace( __cxt, - ${ti} () => { + ${Jr} () => { ${Oe}; - ${ft}; - ${_i} + ${ut}; + ${ci} }, null, - null, - ${_o}, + ${Sa}, ) - ${Yt}.__type = 'loop_iteration' + ${Gt}.__type = 'loop_iteration' - let ${qt} = 0 + let ${Vt} = 0 while(true) { - if(${qt}++ > 1000) { + if(${Vt}++ > 1000) { throw new RangeError('Potential infinite loop: exceeded 1000 iterations.') } - const ${vr} = ${Dr} ${Yt}(${jo}); - if(${vr} == __rt.Symbol_loop_continue) { + const ${cr} = ${Ar} ${Gt}(${Uo}); + if(${cr} == __rt.Symbol_loop_continue) { // do nothing, continue loop } else { // return either value returned by return statement, or Symbol_loop_break - return ${vr} + return ${cr} } } }, '__location', - {value: ${_o}}, + {value: ${Sa}}, ), null, null, null, false, ) - if(${Mt} != __rt.Symbol_loop_break) { - return ${Mt} + if(${Rt} != __rt.Symbol_loop_break) { + return ${Rt} } - `}function O3e(R,M){if(M=Ze.visitEachChild(M,ee=>O3e(R,ee)),M.kind==Ze.SyntaxKind.WhileStatement||M.kind==Ze.SyntaxKind.DoStatement)return avt(R,M,Ze.getOriginalNode(M));if(M.kind==Ze.SyntaxKind.ForOfStatement||M.kind==Ze.SyntaxKind.ForInStatement){let ee=Ze.getOriginalNode(M),le={...R,current_function:ee},Ie=vG(ee),Oe=Dte(ee,le),ft=Ze.factory.createUniqueName("loop_result"),Mt=Ze.factory.createUniqueName("loop_body"),Yt=Ze.factory.createUniqueName("loop_iter_name"),qt=Ze.factory.createUniqueName("loop_initializer"),vr;if(ee.initializer.kind==Ze.SyntaxKind.VariableDeclarationList){if(ee.initializer.declarations.length!=1)throw new Error("illegal state");let Fa=M.initializer.declarations[0];vr=Ze.factory.createVariableStatement(void 0,Ze.factory.updateVariableDeclarationList(M.initializer,[Ze.factory.updateVariableDeclaration(Fa,Fa.name,void 0,void 0,qt)]))}else vr=Ze.factory.createExpressionStatement(Ze.factory.createBinaryExpression(M.initializer,Ze.factory.createToken(Ze.SyntaxKind.EqualsToken),qt));let _i;le.breakpoint.function_node==ee?_i=P3e(le,vr,ee.initializer):_i=vr;let ti=new XS(Ie?"async":""),Dr=new XS(Ie?"await":""),jo=new XS(ee.kind==Ze.SyntaxKind.ForOfStatement?"of":"in"),_o=Cte(ee,le);return h_` - const ${ft} = ${Dr} __rt.trace_call( + `}function j3e(x,P){if(P=$e.visitEachChild(P,Q=>j3e(x,Q)),P.kind==$e.SyntaxKind.WhileStatement||P.kind==$e.SyntaxKind.DoStatement)return mvt(x,P,$e.getOriginalNode(P));if(P.kind==$e.SyntaxKind.ForOfStatement||P.kind==$e.SyntaxKind.ForInStatement){let Q=$e.getOriginalNode(P),ae={...x,current_function:Q},Ee=vG(Q),Oe=Cte(Q,ae),ut=$e.factory.createUniqueName("loop_result"),Rt=$e.factory.createUniqueName("loop_body"),Gt=$e.factory.createUniqueName("loop_iter_name"),Vt=$e.factory.createUniqueName("loop_initializer"),cr;if(Q.initializer.kind==$e.SyntaxKind.VariableDeclarationList){if(Q.initializer.declarations.length!=1)throw new Error("illegal state");let ya=P.initializer.declarations[0];cr=$e.factory.createVariableStatement(void 0,$e.factory.updateVariableDeclarationList(P.initializer,[$e.factory.updateVariableDeclaration(ya,ya.name,void 0,void 0,Vt)]))}else cr=$e.factory.createExpressionStatement($e.factory.createBinaryExpression(P.initializer,$e.factory.createToken($e.SyntaxKind.EqualsToken),Vt));let ci;ae.breakpoint.function_node==Q?ci=F3e(ae,cr,Q.initializer):ci=cr;let Jr=new YS(Ee?"async":""),Ar=new YS(Ee?"await":""),Uo=new YS(Q.kind==$e.SyntaxKind.ForOfStatement?"of":"in"),Sa=Nte(Q,ae);return Gm` + const ${ut} = ${Ar} __rt.trace_call( __cxt, Object.defineProperty( - ${ti} () => { - ${qbe(ee)}; + ${Jr} () => { + ${Zbe(Q)}; - const ${Mt} = __rt.trace( + const ${Rt} = __rt.trace( __cxt, - ${ti} (${qt}) => { + ${Jr} (${Vt}) => { ${Oe}; - ${_i}; - ${M.statement}; + ${ci}; + ${P.statement}; return __rt.Symbol_loop_continue }, null, - null, - ${_o}, + ${Sa}, ) - ${Mt}.__type = 'loop_iteration' + ${Rt}.__type = 'loop_iteration' - for(const ${qt} ${jo} ${M.expression}) { - const ${Yt} = ${Dr} ${Mt}(${qt}); - if(${Yt} == __rt.Symbol_loop_continue) { + for(const ${Vt} ${Uo} ${P.expression}) { + const ${Gt} = ${Ar} ${Rt}(${Vt}); + if(${Gt} == __rt.Symbol_loop_continue) { // do nothing, continue loop } else { // return either value returned by return statement, or Symbol_loop_break - return ${Yt} + return ${Gt} } } return __rt.Symbol_loop_break }, '__location', - {value: ${_o}}, + {value: ${Sa}}, ), null, null, null, false, ) - if(${ft} != __rt.Symbol_loop_break) { - return ${ft} + if(${ut} != __rt.Symbol_loop_break) { + return ${ut} } - `}return M.kind==Ze.SyntaxKind.BreakStatement?h_`return __rt.Symbol_loop_break;`[0]:M.kind==Ze.SyntaxKind.ContinueStatement?h_`return __rt.Symbol_loop_continue;`[0]:M}var cW=R=>function(M){return ee=>Ze.visitNode(ee,R)},svt=(R,M)=>{let ee=M.breakpoint;return Ze.transform(R,[cW(function le(Ie){let Oe=Ze.visitEachChild(Ie,le);if(Ie.kind==Ze.SyntaxKind.Block||Ie.kind==Ze.SyntaxKind.SourceFile){let ft=[],Mt=[];Oe.statements.forEach(qt=>{Ze.isFunctionDeclaration(qt)?ft.push(qt):Mt.push(qt)}),Oe=(Ie.kind==Ze.SyntaxKind.Block?Ze.factory.updateBlock:Ze.factory.updateSourceFile)(Oe,[...ft,...Mt])}return Oe}),cW(function le(Ie){if(Ie=Ze.visitEachChild(Ie,le),Ie.kind==Ze.SyntaxKind.ForStatement){let Oe=Ze.factory.createBlock([Ie.statement,Ie.incrementor]),ft=Ze.factory.createWhileStatement(Ie.condition,Oe);Oe.parent=ft;let Mt=Ie.initializer;if(Mt?.kind==Ze.SyntaxKind.VariableDeclarationList){let qt=Ze.factory.createVariableDeclarationList(Ie.initializer.declarations,Ie.initializer.flags);qt.original=void 0,qt.parent=Ie.initializer.parent,Mt=Ze.factory.createVariableStatement(void 0,qt),Mt.original=Ie.initializer}let Yt=Ze.factory.createBlock([Mt,ft]);return ft.original=Ze.getOriginalNode(Ie),Yt.parent=Ze.getOriginalNode(Ie).parent,Yt}return Ie}),cW(function le(Ie,Oe=M,ft=0){let Mt=Ze.getOriginalNode(Ie),Yt=Oe,qt=Oe;(lp(Mt)||gf(Mt))&&(Yt={...Oe,current_function:Mt});let vr=Ste(Mt);vr!=null&&(qt=Yt={...Oe,current_function:vr});let _i=Ze.visitEachChild(Ie,ti=>le(ti,Yt,ft+1));if(Ie.kind==Ze.SyntaxKind.ExportAssignment||Ie.kind==Ze.SyntaxKind.ExportDeclaration)return[];if(Ie.modifiers!=null&&Ie.modifiers.some(ti=>ti.kind==Ze.SyntaxKind.ExportKeyword)){let ti=Ze.getEffectiveModifierFlags(Ie)&~Ze.ModifierFlags.Export;_i=Ze.factory.replaceModifiers(_i,ti)}if(Ie.kind==Ze.SyntaxKind.ImportDeclaration){let ti=Ie.importClause?.namedBindings,Dr=[];ti?.kind==Ze.SyntaxKind.NamedImports&&(Dr=Ie.importClause.namedBindings.elements.map(_o=>{let Fa=(_o.propertyName??_o.name).escapedText;return{name:_o.name.escapedText,prop:Fa}})),Ie.importClause?.name!=null&&Dr.push({prop:"default",name:Ie.importClause.name.escapedText});let jo=Ze.factory.createObjectBindingPattern(Dr.map(({name:_o,prop:Fa})=>Ze.factory.createBindingElement(void 0,Fa,_o,void 0)));_i=h_` - const ${jo} = __cxt.modules[${Ie.moduleSpecifier.text}]; - `,ti?.kind==Ze.SyntaxKind.NamespaceImport&&_i.push(...h_` - const ${ti.name} = __cxt.modules[${Ie.moduleSpecifier.text}]; - `)}if((Ie.kind==Ze.SyntaxKind.CallExpression||Ie.kind==Ze.SyntaxKind.NewExpression)&&Ie.expression.kind!=Ze.SyntaxKind.ImportKeyword&&(_i=nvt(_i,Oe,Mt)),lp(Ie)&&(_i=evt(_i,Yt,Mt),Ie.kind==Ze.SyntaxKind.FunctionDeclaration)){if(Ie.name==null)throw new Error("Illegal state");_i=Ze.factory.createVariableStatement(void 0,Ze.factory.createVariableDeclarationList([Ze.factory.createVariableDeclaration(Ie.name,void 0,void 0,_i)],Ze.NodeFlags.Let))}return _i=ivt(_i,qt,Mt),Mt==ee.selected_node&&(L3e(Mt)||(_i=M3e(_i,Oe,Mt))),_i}),cW(le=>O3e(M,le)),cW(function le(Ie){let Oe=Ze.visitEachChild(Ie,le);return Ie.kind==Ze.SyntaxKind.AwaitExpression&&(Oe=gx` + `}return P.kind==$e.SyntaxKind.BreakStatement?Gm`return __rt.Symbol_loop_break;`[0]:P.kind==$e.SyntaxKind.ContinueStatement?Gm`return __rt.Symbol_loop_continue;`[0]:P}var cW=x=>function(P){return Q=>$e.visitNode(Q,x)},_vt=(x,P)=>{let Q=P.breakpoint;return $e.transform(x,[cW(function ae(Ee){let Oe=$e.visitEachChild(Ee,ae);if(Ee.kind==$e.SyntaxKind.Block||Ee.kind==$e.SyntaxKind.SourceFile){let ut=[],Rt=[];Oe.statements.forEach(Vt=>{$e.isFunctionDeclaration(Vt)?ut.push(Vt):Rt.push(Vt)}),Oe=(Ee.kind==$e.SyntaxKind.Block?$e.factory.updateBlock:$e.factory.updateSourceFile)(Oe,[...ut,...Rt])}return Oe}),cW(function ae(Ee){if(Ee=$e.visitEachChild(Ee,ae),Ee.kind==$e.SyntaxKind.ForStatement){let Oe=$e.factory.createBlock([Ee.statement,Ee.incrementor]),ut=$e.factory.createWhileStatement(Ee.condition,Oe);Oe.parent=ut;let Rt=Ee.initializer;if(Rt?.kind==$e.SyntaxKind.VariableDeclarationList){let Vt=$e.factory.createVariableDeclarationList(Ee.initializer.declarations,Ee.initializer.flags);Vt.original=void 0,Vt.parent=Ee.initializer.parent,Rt=$e.factory.createVariableStatement(void 0,Vt),Rt.original=Ee.initializer}let Gt=$e.factory.createBlock([Rt,ut]);return ut.original=$e.getOriginalNode(Ee),Gt.parent=$e.getOriginalNode(Ee).parent,Gt}return Ee}),cW(function ae(Ee,Oe=P,ut=0){let Rt=$e.getOriginalNode(Ee),Gt=Oe,Vt=Oe;(lp(Rt)||Jp(Rt))&&(Gt={...Oe,current_function:Rt});let cr=Ste(Rt);cr!=null&&(Vt=Gt={...Oe,current_function:cr});let ci=$e.visitEachChild(Ee,Jr=>ae(Jr,Gt,ut+1));if(Ee.kind==$e.SyntaxKind.ExportAssignment||Ee.kind==$e.SyntaxKind.ExportDeclaration)return[];if(Ee.modifiers!=null&&Ee.modifiers.some(Jr=>Jr.kind==$e.SyntaxKind.ExportKeyword)){let Jr=$e.getEffectiveModifierFlags(Ee)&~$e.ModifierFlags.Export;ci=$e.factory.replaceModifiers(ci,Jr)}if(Ee.kind==$e.SyntaxKind.ImportDeclaration){let Jr=Ee.importClause?.namedBindings,Ar=[];Jr?.kind==$e.SyntaxKind.NamedImports&&(Ar=Ee.importClause.namedBindings.elements.map(Sa=>{let ya=(Sa.propertyName??Sa.name).escapedText;return{name:Sa.name.escapedText,prop:ya}})),Ee.importClause?.name!=null&&Ar.push({prop:"default",name:Ee.importClause.name.escapedText});let Uo=$e.factory.createObjectBindingPattern(Ar.map(({name:Sa,prop:ya})=>$e.factory.createBindingElement(void 0,ya,Sa,void 0)));ci=Gm` + const ${Uo} = __cxt.modules[${Ee.moduleSpecifier.text}]; + `,Jr?.kind==$e.SyntaxKind.NamespaceImport&&ci.push(...Gm` + const ${Jr.name} = __cxt.modules[${Ee.moduleSpecifier.text}]; + `)}if((Ee.kind==$e.SyntaxKind.CallExpression||Ee.kind==$e.SyntaxKind.NewExpression)&&Ee.expression.kind!=$e.SyntaxKind.ImportKeyword&&(ci=dvt(ci,Oe,Rt)),lp(Ee)&&(ci=lvt(ci,Gt,Rt),Ee.kind==$e.SyntaxKind.FunctionDeclaration)){if(Ee.name==null)throw new Error("Illegal state");ci=$e.factory.createVariableStatement(void 0,$e.factory.createVariableDeclarationList([$e.factory.createVariableDeclaration(Ee.name,void 0,void 0,ci)],$e.NodeFlags.Let))}return ci=pvt(ci,Vt,Rt),Rt==Q.selected_node&&(B3e(Rt)||(ci=z3e(ci,Oe,Rt))),ci}),cW(ae=>j3e(P,ae)),cW(function ae(Ee){let Oe=$e.visitEachChild(Ee,ae);return Ee.kind==$e.SyntaxKind.AwaitExpression&&(Oe=gx` (__await_state = __rt.await_start(__cxt, ${Oe.expression}), await __await_state.promise, __rt.await_finish(__cxt, __await_state)) - `),Oe}),cW(function le(Ie){return Ie.kind==Ze.SyntaxKind.DebuggerStatement?null:Ze.visitEachChild(Ie,le)})]).transformed[0]},W3e=(R,M,ee,le,Ie,Oe,ft,Mt,Yt)=>{let qt=globalThis.app_window.Function,vr=globalThis.app_window.eval("(async function(){})").constructor,_i=R.sorted.map(_o=>{let Fa=R.modules[_o],Us={module:_o,toplevel:Fa,breakpoint:Yt,current_function:Fa,should_collect_footprints:Mt};Fa=svt(Fa,Us);let yl=h_`"use strict";let __obj, __fn, __tmp;`;Fa=Ze.factory.updateSourceFile(Fa,[...yl,...Dte(Fa,Us),...Fa.statements]);let Fc=Ze.transformNodes(R.program.getTypeChecker().getEmitResolver(),void 0,Ze.factory,CC,[Fa],[Ze.transformJsx],!1).transformed;if(Fc.length!=1)throw new Error("illegal state");Fa=Fc[0];let Nc=ovt.printFile(Fa),$S=vG(Fa)?vr:qt,yx;try{yx=new $S("__cxt","__rt",Nc)}catch(Cl){throw new Error(Cl.message,{cause:Cl})}return{module:_o,fn:yx}}),ti={logs:[],modules:M==null?{}:q4e(M,(_o,{module:Fa})=>Fa),call_counter:0,version_counter:0,children:null,stack:new Array,is_recording_deferred_calls:!1,on_deferred_call:(_o,Fa,Us)=>ee(N3e(R.modules,_o),Fa,Us),execution_id:le,is_toplevel_call:!0,window:globalThis.app_window,storage:Oe,canvas_ops:{ops:[],contexts:new Set},snapshots:ft,footprints:new Map,breakpoint:Yt,io_trace:Ie},Dr=C3e(_i,ti,Ie),jo=_o=>{let Fa=N3e(R.modules,dte(_o.calltree,_o.deferred_calls));return{..._o,breakpoint:Yt,calltree:Fa}};return Dr?.[Symbol.toStringTag]=="Promise"?Promise.resolve(Dr).then(jo):jo(Dr)},lvt=(R,M)=>{let ee=Ze.forEachChildRecursively(R,le=>{if(!f3e(le,R))return"skip";if(le.index==M.index&&le.length==M.length&&(lp(le)||gf(le)))return le});if(ee==null)throw new Error("illegal state");return ee},N3e=(R,M)=>{let ee=new Map;function le(Ie){if(Ie.toplevel)return{...Ie,code:R[Ie.module],children:Ie.children&&Ie.children.map(le)};{let Oe;if(Ie.fn==null||Ie.fn.__location==null)Oe=null;else if(Oe=ee.get(Ie.fn.__location),Oe==null){let ft=JSON.parse(Ie.fn.__location);Oe=lvt(R[ft.module],ft),ee.set(Ie.fn.__location,Oe)}return{...Ie,code:Oe,children:Ie.children&&Ie.children.map(le)}}}return le(M)},Xbe=(R,M,ee)=>R.kind==Ze.SyntaxKind.AwaitExpression&&!ee&&!M.toplevel&&M.value.status==null,Jbe=class extends Map{get(M){return M=pL(M)?M.original:M,super.get(M)}},Ybe=(R,M,ee,le,Ie)=>{Ie??=new Jbe;let Oe=cvt(R,M,ee,le,Ie);return Ie.set(R,Oe.result),Ie},cvt=(R,M,ee,le,Ie)=>{let Oe=ti=>Ybe(ti,M,ee,R,Ie),ft=ti=>ee.get(ti.index+"_"+ti.length),Mt=ft(R);if(R.kind==Ze.SyntaxKind.VariableDeclarationList&&R.parent.kind==Ze.SyntaxKind.VariableStatement&&(Mt=ft(R.parent)),le?.kind==Ze.SyntaxKind.PropertyAccessExpression&&le.name==R&&(Ie.get(le.expression)?.ok?Mt=!0:Mt=void 0),(le?.kind==Ze.SyntaxKind.PropertyAssignment||le?.kind==Ze.SyntaxKind.ShorthandPropertyAssignment)&&le.name==R&&ft(le.parent)!=null&&(Mt=!0),Xbe(R,M,Mt)&&(Mt=void 0),lp(R)){if(le!=null)return{result:Mt==null?void 0:{ok:Mt}};{let[ti,Dr]=Hb(R);return ft(ti)?(Ie.set(ti.original,{ok:!0}),Oe(Dr)):Ie.set(ti.original,{ok:!1,is_error_origin:!0}),{result:{ok:Ie.get(Dr)?.ok}}}}if(gf(R)&&le!=null)return(R.kind==Ze.SyntaxKind.ForOfStatement||R.kind==Ze.SyntaxKind.ForInStatement)&&Oe(R.expression),R.kind==Ze.SyntaxKind.ForStatement&&Oe(R.initializer),Mt==null?{result:void 0}:{result:{ok:Mt,is_error_origin:!Mt}};if(w3e(R)&&!(R.kind==Ze.SyntaxKind.Block||R.kind==Ze.SyntaxKind.SourceFile)&&le!=null&&Mt==null)return{result:void 0};if(le!=null&&bG(R,le))if(R.kind==Ze.SyntaxKind.PropertyAccessExpression||R.kind==Ze.SyntaxKind.ElementAccessExpression){let ti=Hb(R);return ti.map(jo=>Oe(jo)),{result:{ok:ti.every(jo=>Ie.get(jo)?.ok)}}}else Mt=!0;if(R.kind==Ze.SyntaxKind.VariableDeclaration){let[ti,Dr]=[R.name,R.initializer];return Dr!=null&&Oe(Dr),(Dr==null||Ie.get(Dr)?.ok)&&Oe(ti),{result:{ok:Mt,is_error_origin:Mt?void 0:Ie.get(Dr)?.ok}}}let Yt=Hb(R);Yt&&Yt.map(ti=>Oe(ti));let qt=Yt==null||Yt.every(ti=>Ie.get(ti)?.ok),vr=!Mt&&qt;if((R.kind==Ze.SyntaxKind.Block||R.kind==Ze.SyntaxKind.SourceFile)&&(Yt.length!=0&&(Mt=Yt.reduce((ti,Dr)=>ti&&Ie.get(Dr)?.ok,!0)),vr=!1),R.kind==Ze.SyntaxKind.PartiallyEmittedExpression||R.kind==Ze.SyntaxKind.ExpressionStatement||R.kind==Ze.SyntaxKind.ParenthesizedExpression||R.kind==Ze.SyntaxKind.JsxExpression){if(Yt.length!=1)throw new Error("illegal state");let ti=Ie.get(R.expression);return{result:ti==null?null:{...ti,is_error_origin:!1}}}if(R.kind==Ze.SyntaxKind.IfStatement&&(Mt=ft(R.expression),Yt.some(ti=>Ie.get(ti)?.ok===!1)&&(Mt=!1)),gf(R)&&le==null){if(R.kind==Ze.SyntaxKind.ForOfStatement||R.kind==Ze.SyntaxKind.ForInStatement){let ti=R.statement;Oe(ti);let Dr=Ie.get(ti)!=null;Ie.set(R.initializer,{ok:Dr,is_error_origin:!Dr})}return{result:void 0}}return[Ze.SyntaxKind.ReturnStatement,Ze.SyntaxKind.BreakStatement,Ze.SyntaxKind.ContinueStatement].includes(R.kind)&&(Mt!=null&&(Mt=qt),vr=!1),R.kind==Ze.SyntaxKind.PropertyAssignment||R.kind==Ze.SyntaxKind.ShorthandPropertyAssignment||R.kind==Ze.SyntaxKind.SpreadElement||R.kind==Ze.SyntaxKind.SpreadAssignment||R.kind==Ze.SyntaxKind.JsxSpreadAttribute?{result:{ok:qt}}:{result:Mt===void 0?void 0:{ok:Mt,is_error_origin:Mt?void 0:vr}}};function F3e(R){return new Map([...R.entries()].map(([M,ee])=>[M,structuredClone(ee)]))}var EG=class extends Map{set(M,ee){if(structuredClone(ee),typeof M!="string")throw new Error("key must be a string");super.set(M,ee)}};var dW=class extends Map{get_by_module_and_node(M,ee){if(ee.index==null||ee.length==null)throw new Error("illegal state");return this.get(`${M}_${ee.index}_${ee.length}`)}set_by_module_and_node(M,ee,le){if(ee.index==null||ee.length==null)throw new Error("illegal state");return this.set(`${M}_${ee.index}_${ee.length}`,le)}};var z3e=R=>R.kind==Ze.SyntaxKind.ExpressionStatement?R.expression:R.kind==Ze.SyntaxKind.NotEmittedStatement||R.kind==Ze.SyntaxKind.EmptyStatement?null:R.kind==Ze.SyntaxKind.ReturnStatement?R.expression==null?R:R.expression:R.kind=="export"?z3e(R.children[0]):R,Nte=(R,M)=>{let ee=lp(R);if(ee){let Yt=Hb(R)[0];if(fL(Yt,M))return R.parameters.length>0?Yt:null}let le=qS(R,M),Ie=le==null||(le.kind==Ze.SyntaxKind.Block||le.kind==Ze.SyntaxKind.SourceFile)&&M>le.index?qS(R,M-1):le;if(Ie==null||Ie.kind==Ze.SyntaxKind.Block||R==Ie||R.name==Ie)return null;let Oe=oW(Ie,R);for(let Yt of Oe){if(lp(Yt))break;if(Yt.kind==Ze.SyntaxKind.JsxExpression||Yt.kind==Ze.SyntaxKind.JsxSpreadAttribute)return Yt.expression;if(Obe(Yt))return Yt}if(ee&&R.body.kind!=Ze.SyntaxKind.Block)return R.body;if(Oe.find(Yt=>Yt!=R&&Yt!=Ie&&(lp(Yt)||gf(Yt)))!=null)return null;if(gf(R)&&Oe.includes(R.expression))return R.expression;if(R.kind==Ze.SyntaxKind.ForStatement&&Oe.includes(R.incrementor))return R.incrementor;if(R.kind==Ze.SyntaxKind.ForStatement&&Oe.includes(R.condition))return R.condition;let Mt=Ze.forEachAncestor(Ie,Yt=>{if(Yt.parent.kind==Ze.SyntaxKind.IfStatement&&Yt.parent.expression==Yt||Ze.isStatement(Yt))return Yt});return z3e(Mt)};var Ju={parse:"parse",reload_app_window:"reload_app_window",reload_app_window_finished:"reload_app_window_finished",load_external_imports:"load_external_imports",eval_modules:"eval_modules",eval_modules_finished:"eval_modules_finished"},j3e=(R,M)=>{let ee=new Set(R),le=new Map,Ie=(Oe,ft)=>{if(Oe.children!=null)for(let Mt of Oe.children)Ie(Mt,Oe.code!=null&&gf(Oe.code)?ft:Oe);ee.has(Oe.id)&&le.set(Oe.id,{id:Oe.id,version_number:Oe.version_number,toplevel:ft.toplevel,module:Ig(ft)?.module,parent_name:ft.fn?.name,args:Oe.args,log_fn_name:Oe.fn.name})};return Ie(M,null),R.map(Oe=>le.get(Oe))},dvt=R=>R.run_state?.status!=Ju.reload_app_window?mL({...R,run_state:{status:Ju.reload_app_window_finished}},!1):R.run_state.on_reload_app_window_finished(R),Pte=(R,M,ee,le)=>({function_node:ee,module:M,selected_node:le,selected_call_id:oze(R,M,ee)}),$be=R=>{if(R.parse_result.modules[R.current_module]==null)return Pte(R,R.current_module,R.parse_result.modules[R.entrypoint],null);let M=_L(R),ee=AG(R,R.current_module,M),le=Nte(ee,M);return Pte(R,R.current_module,ee,le)},mL=(R,M)=>(R={...R,calltree:null,modules:null,execution_id:R.execution_id+1,rt_cxt:null,logs:null,current_calltree_node:null,active_calltree_node:null,calltree_node_is_expanded:null,collected_footprints_functions:new Set,frames:new Map,colored_frames:null,frame_coloring:new Map,selected_calltree_node_by_loc:null,selection_state:null,value_explorer:null,snapshots:new dW,footprints:null},M?{...R,run_state:{status:Ju.parse,prev_status:R.run_state?.status}}:U3e(R,M)),U3e=(R,M,ee)=>{M&&(R={...R,parse_result:u3e(R.entrypoint,ee)});let le=M?{status:R.run_state.prev_status}:R.run_state;return R={...R,run_state:le},R.parse_result.ok?R.run_state?.status==Ju.reload_app_window_finished?B3e(R):{...R,run_state:{status:Ju.reload_app_window,on_reload_app_window_finished:B3e,reload_counter:R.run_state?.reload_counter}}:R},B3e=R=>(R={...R,run_state:{breakpoint:$be(R),on_eval_modules_finished:J3e}},Mte(R)),Mte=R=>{let M=Y4e(Fbe(R.parse_result.modules).map(ee=>ee.url));return M.length!=0?{...R,run_state:{...R.run_state,status:Ju.load_external_imports,external_imports:M}}:H3e(R,R)},H3e=(R,M,ee)=>{if(R.run_state!=M.run_state)return R;if(ee!=null){let ft=new Set(Object.entries(ee).filter(([Mt,Yt])=>!Yt.ok).map(([Mt,Yt])=>Mt));if(ft.size!=0){let Mt=Fbe(R.parse_result.modules).filter(({url:Yt})=>ft.has(Yt)).map(({node:Yt,module_name:qt,url:vr})=>({index:Yt.index,length:Yt.length,message:ee[vr].error.message,module:qt}));return{...R,parse_result:{...R.parse_result,ok:!1,problems:Mt,is_external_imports_problems:!0},run_state:{status:Ju.eval_modules_finished}}}}let le=new dW([...R.snapshots.entries()].map(([ft,Mt])=>[ft,Mt==null?Mt:new Map(Mt)])),Ie=R.run_state.on_eval_modules_finished!=J3e;!Ie&&R.is_open_app_window&&(R={...R,io_trace:[]});let Oe=W3e(R.parse_result,ee,R.on_deferred_call,R.execution_id,R.io_trace,F3e(Ie?R.prev_storage:R.storage),le,!R.collected_footprints_functions.has(R.run_state.breakpoint.function_node),R.run_state.breakpoint);return Oe.then!=null?{...R,run_state:{...R.run_state,status:Ju.eval_modules,promise:Oe}}:K3e(R,R.execution_id,Oe)},K3e=(R,M,ee)=>{if(R.execution_id!=M)return R;if(R.calltree!=null){if(ee.rt_cxt.io_trace_is_replay_aborted)throw new Error("illegal state");if(ee.rt_cxt.io_trace_index!=null&&ee.rt_cxt.io_trace_index!=ee.rt_cxt.io_trace.length)throw new Error("illegal state: trace was replayed partially");R={...R,calltree:aze(R.calltree,ee.calltree)}}let le=ee.rt_cxt.snapshots,Ie=ee.breakpoint,Oe=Ie.function_node.kind==Ze.SyntaxKind.SourceFile?[Ie.selected_node]:[Ie.selected_node,Ie.function_node];for(let Mt of Oe){let Yt=[Ie.module,Mt];Mt!=null&&le.get_by_module_and_node(...Yt)===void 0&&le.set_by_module_and_node(...Yt,null)}if(Ie.selected_node!=null&&Ie.selected_call_id!=null){let Mt=le.get_by_module_and_node(Ie.module,Ie.selected_node);Mt!=null&&Mt.get(Ie.selected_call_id)===void 0&&Mt.set(Ie.selected_call_id,null)}let ft={...R,snapshots:le,footprints:new Map([...R.footprints??[],...ee.rt_cxt.footprints]),rt_cxt:ee.rt_cxt,run_state:{status:Ju.eval_modules_finished}};if(R.run_state.breakpoint.function_node==null)throw new Error("illegal state");return R.collected_footprints_functions.add(R.run_state.breakpoint.function_node),R.run_state.on_eval_modules_finished(ft,ee,R.run_state.breakpoint)},J3e=(R,M)=>{if(M.rt_cxt.io_trace_is_replay_aborted)return eze(R);if(R={...R,calltree:M.calltree,rt_cxt:M.rt_cxt,logs:{logs:j3e(M.logs,M.calltree),log_position:null},modules:M.modules,prev_storage:R.storage,storage:M.rt_cxt.storage},R=Z3e(R),R.active_calltree_node==null){let{node:ee,state:le}=wte(R);R=uW(le,null,ee)}else R=sze(LC(R,R.active_calltree_node));if(R.run_state.status==Ju.reload_app_window)return R;if(R.run_state.status!=Ju.eval_modules_finished)throw new Error("illegal state");return R},uvt=(R,M,ee)=>{let le={...R.files,[R.current_module]:M};R={...R,files:le},R=kte(R,ee);let Ie={type:"write",args:[R.current_module,R.files[R.current_module]]};return{state:mL(R,!0),effects:[Ie]}},Qbe=(R,M)=>{if(!R.parse_result.ok)return{state:R,effects:{type:"set_status",args:["invalid syntax"]}};if(R.calltree==null)return{state:R,effects:{type:"set_status",args:["code is executing"]}};let ee=AG(R,R.current_module,M);if(ee==null||ee.kind==Ze.SyntaxKind.SourceFile&&ee!=SG(R)||lp(ee)&&R.snapshots.get_by_module_and_node(R.current_module,ee)===null)return{state:R,effects:{type:"set_status",args:["code was not reached during program execution"]}}},pvt=(R,M)=>{let ee=R.parse_result.modules[R.current_module],le=qS(ee,M);if(le==null)return null;let Ie=oW(le,ee).find(Oe=>Oe.kind==Ze.SyntaxKind.CallExpression||Oe.kind==Ze.SyntaxKind.NewExpression||lp(Oe));return Ie==null||lp(Ie)?null:Ie},fvt=R=>{let M=_L(R),ee=Qbe(R,M);if(ee!=null)return ee;let le=pvt(R,M);if(le==null)return{state:R,effects:{type:"set_status",args:["no function call to step into"]}};if(R.run_state.status!=Ju.eval_modules_finished)return{state:R,effects:{type:"set_status",args:["code is not executed yet"]}};let Ie=tEe(R.active_calltree_node,le);if(Ie==null){let Oe=cte(R),ft;return Oe.get(le)==null?ft="call was not reached during program execution":ft="Cannot step into: function is either builtin or from external lib",{state:R,effects:{type:"set_status",args:[ft]}}}return TG(R,!0,Ie)},q3e=R=>{if(R.kind==Ze.SyntaxKind.SourceFile)return!1;if(R.parent==null)throw new Error("illegal state");let M=R.parent;return Ze.isExpression(R)&&R.kind!=Ze.SyntaxKind.SpreadAssignment&&R.kind!=Ze.SyntaxKind.SpreadElement&&M?.kind!=Ze.SyntaxKind.ShorthandPropertyAssignment&&M?.kind!=Ze.SyntaxKind.ImportDeclaration&&M?.kind!=Ze.SyntaxKind.ImportClause&&M?.kind!=Ze.SyntaxKind.ImportSpecifier&&M?.kind!=Ze.SyntaxKind.NamespaceImport&&(M==null||!bG(R,M))&&!(M!=null&&M.kind==Ze.SyntaxKind.PropertyAccessExpression&&M.name==R)&&!(M!=null&&M.kind==Ze.SyntaxKind.PropertyAssignment&&R==M.name)&&M?.kind!=Ze.SyntaxKind.JsxAttribute&&!(M!=null&&(M.kind==Ze.SyntaxKind.JsxOpeningElement||M.kind==Ze.SyntaxKind.JsxClosingElement)&&R.kind==Ze.SyntaxKind.Identifier&&Ze.isIntrinsicJsxName(R.escapedText))&&!(M!=null&&iW(M)&&iW(R))},G3e=R=>R.find(M=>q3e(M)),mvt=(R,M,ee,le)=>{if(qS(M,le)==null)return{ok:!1,message:"out of scope"};if(R!=null&&R.index==le){let Oe;if(R.initial_is_expand==ee)R.node==M?Oe=R.node:(Oe=G3e(zbe(R.node,M)),(Oe==null||!Ze.isExpression(Oe))&&(Oe=R.node));else{let Mt=qS(R.node,le);Mt!=R.node?(Oe=oW(Mt,R.node).findLast(qt=>qt!=R.node&&q3e(qt)),Oe==null&&(Oe=R.node)):Oe=R.node}return{ok:!0,initial_is_expand:R.initial_is_expand,node:Oe,index:le}}else{let Oe=qS(M,le),ft=G3e(oW(Oe,M));return ft==null||!Ze.isExpression(ft)?{ok:!1,message:"can only evaluate expression, not statement"}:{ok:!0,index:le,node:ft,initial_is_expand:ee}}},_vt=(R,M,ee)=>{let le=Qbe(R,M);if(le!=null)return le;let Ie=AG(R,R.current_module,M);if(Ie==null)throw new Error("not implemented");let Oe=mvt(R.selection_state,Ie,ee,M),ft={...R,selection_state:Oe,value_explorer:null};if(!Oe.ok)return{state:ft,effects:{type:"set_status",args:[Oe.message]}};let Mt=Pte(R,R.current_module,Ie,Oe.node);return X3e(ft,Mt,!0)},Zbe=(R,M,ee,le)=>{let Ie=R.snapshots.get_by_module_and_node(M,ee);if(Ie===null)return{has_snapshot:!0,node_snapshot:null};if(Ie===void 0)return{has_snapshot:!1};let Oe=Ie.get(le);return{has_snapshot:Oe!==void 0,node_snapshot:Oe}},V3e=(R,M,ee,le=void 0)=>{let Ie=R.snapshots.get_by_module_and_node(M,ee);if(Ie===null)return{has_snapshot:!0,node_snapshot:null};if(Ie===void 0)return{has_snapshot:!1};if(le!=null){let Mt=Ie.get(le);if(Mt!=null)return{has_snapshot:!0,node_snapshot:Mt};if(Mt===void 0)return{has_snapshot:!1}}let[Oe,ft]=[...Ie.entries()].sort((Mt,Yt)=>Mt[0]-Yt[0]).find(([Mt,Yt])=>Yt!=null);if(Oe==null)throw new Error("illegal state");return{has_snapshot:!0,node_snapshot:ft}},X3e=(R,M,ee=!1)=>(R=$3e(R,M,ee),R.run_state.status==Ju.reload_app_window?{...R,run_state:{...R.run_state,on_eval_modules_finished:hvt}}:R.value_explorer!=null?R:{state:R,effects:{type:"set_status",args:["expression was not reached during program execution"]}}),hvt=R=>{let M=R.selection_state;if(M==null||R.value_explorer!=null)return R;let ee=AG(R,R.current_module,M.node.index),le=Pte(R,R.current_module,ee,M.node);return X3e(R,le,!1)},gvt=(R,M)=>R.files[M]==null?{state:R,effects:{type:"set_status",args:["File not found"]}}:{...R,current_module:M,selection_state:null,value_explorer:null},yvt=(R,M,ee=M)=>mL({...R,entrypoint:M,current_module:ee},!0),vvt=(R,M)=>mL({...R,html_file:M},!0),bvt=(R,M)=>({state:Y3e(PC(R,M),M.index),effects:{type:"set_focus"}}),Evt=(R,M)=>({state:PC(R,M),effects:{type:"set_focus"}}),Y3e=(R,M)=>(R=kte(R,M),R={...R,selection_state:null,value_explorer:null},Qbe(R,M)!=null?R:Q3e(R,$be(R),!0)),eEe=(R,M,ee,le)=>{let Ie=le.call_id;if(Ie==null)throw new Error("illegal state");let Oe=p0(R.calltree,Mt=>Mt.id==Ie);if(Xbe(ee,Oe,le.ok)||[Ze.SyntaxKind.BreakStatement,Ze.SyntaxKind.ContinueStatement].includes(ee.kind))return null;let ft;if(le.ok)ft=void 0;else{let Mt=MC(Oe);if(Mt==null)return null;ft=Mt.error}return{call_id:Ie,index:ee.index,length:ee.length,result:{ok:le.ok,value:le.value,error:ft}}},$3e=(R,M,ee=!1)=>{if(M.selected_call_id==null){let ft=p0(R.calltree,Mt=>MC(Mt)?.ok==!1&&Mt.code==M.function_node&&(!gf(Mt.code)||Mt.fn.__type=="loop_iteration"));ft!=null&&(M={...M,selected_call_id:ft.id})}let le=M.selected_node,{has_snapshot:Ie,node_snapshot:Oe}=le==null?{has_snapshot:!0,node_snapshot:null}:V3e(R,M.module,pL(M.selected_node)?M.function_node:M.selected_node,M.selected_call_id);if(Ie){let ft=!1,Mt,Yt;if(Oe==null)if(Mt=null,M.function_node==SG(R))Yt=_v(R).id,ft=R.footprints.get(Yt)==null;else{let{has_snapshot:qt,node_snapshot:vr}=V3e(R,M.module,M.function_node,M.selected_call_id);ft=!qt,Yt=vr?.call_id}else Oe!=null&&(Yt=Oe.call_id,Mt=eEe(R,M.function_node,le,Oe));if(!ft)return lze({...R,value_explorer:Mt},M.function_node,Yt)}if(!ee)throw new Error("illegal state");return{...R,run_state:{status:Ju.reload_app_window,reload_counter:(R.run_state.reload_counter??0)+1,on_reload_app_window_finished:Mte,breakpoint:M}}},Q3e=(R,M,ee)=>{if(M.function_node.kind==Ze.SyntaxKind.SourceFile&&M.function_node!=SG(R))return R;if(R=$3e(R,M,ee),R.run_state.status==Ju.reload_app_window)return{...R,run_state:{...R.run_state,on_eval_modules_finished:Z3e}};if(R.value_explorer==null||!R.value_explorer.result.ok)return R;let le=M.selected_node;if(le.kind!=Ze.SyntaxKind.CallExpression)return R;let Ie=tEe(R.active_calltree_node,M.selected_node);if(Ie==null||!Ie.is_log)return R;let{has_snapshot:Oe,node_snapshot:ft}=Zbe(R,M.module,{index:le.arguments.pos,length:le.arguments.end-le.arguments.pos},R.value_explorer.call_id);if(!Oe)throw console.error({state:R,breakpoint:M,calltree_node:Ie,has_snapshot:Oe,node_snapshot:ft}),new Error("illegal state: no node snapshot for log fn args");if(!ft.ok)throw console.error({state:R,breakpoint:M,calltree_node:Ie,has_snapshot:Oe,node_snapshot:ft}),new Error("illegal state: node snapshot with ok: false for log fn args");let Mt={...R.value_explorer,result:{ok:!0,value:ft.value}};return{...R,value_explorer:Mt}},Z3e=R=>R.selection_state!=null||R.value_explorer!=null?R:Q3e(R,$be(R),!0),Svt=(R,M,ee,le)=>R.execution_id!=ee||(R={...R,snapshots:new dW,footprints:new Map,collected_footprints_functions:new Set,calltree:dte(_v(R),[...rI(R)??[],M]),logs:{...R.logs,logs:R.logs.logs.concat(j3e(le,M))}},M.ok)?R:wte(R,M).state,eze=R=>mL({...R,io_trace:[],run_state:{...R.run_state,reload_counter:(R.run_state.reload_counter??0)+1}},!1),tze=(R,M)=>{let ee=Ie=>Ie.kind=="file"?[Ie]:Ie.children.map(ee).flat(),le=Object.fromEntries([...ee(M.scratch_files),...M.local_files==null?[]:ee(M.local_files)].map(Ie=>[Ie.path,Ie.contents]));return{...R,project_dir:M,files:le}},nze=(R,M)=>(R=tze(R,M),R=rze(R),mL(R,!0)),Tvt=(R,M,ee)=>{let le={...R.project_dir,scratch_files:M};return R={...R,current_module:ee,entrypoint:ee},nze(R,le)},rze=R=>{let M=R.project_dir.scratch_files.children[0];return{...R,current_module:R.files[R.current_module]==null?M.path:R.current_module,entrypoint:R.files[R.entrypoint]==null?M.path:R.entrypoint,html_file:R.files[R.html_file]==null?null:R.html_file}},ize=(R,M)=>{let ee={...R.project_dir,local_files:M};return nze(R,ee)},Avt=(R,M,ee)=>ize({...R,current_module:ee,entrypoint:ee},M),Ivt=(R,M)=>({...R,storage:new EG,is_open_app_window:M}),xvt=(R,M=0)=>(R=tze(R,R.project_dir),R=rze(R),mL({...R,execution_id:0,storage:new EG,io_trace:[],is_open_app_window:!1,cursor_position_by_file:{[R.current_module]:M}},!0)),Lte={get_initial_state:xvt,parse_finished:U3e,input:uvt,open_app_window:Ivt,load_local_dir:ize,create_local_file:Avt,load_scratch_dir:Tvt,step_into:fvt,change_current_module:gvt,change_entrypoint:yvt,change_html_file:vvt,goto_location:bvt,goto_problem:Evt,move_cursor:Y3e,eval_selection:_vt,reload_app_window_finished:dvt,external_imports_loaded:H3e,eval_modules_finished:K3e,on_deferred_call:Svt,clear_io_trace:eze};var _L=R=>R.cursor_position_by_file[R.current_module]??0,kte=(R,M)=>({...R,cursor_position_by_file:{...R.cursor_position_by_file,[R.current_module]:M}});var PC=(R,M)=>kte({...R,current_module:M.module},M.index),Rvt=R=>R.error?.constructor==sW.constructor&&R.error?.message==sW.message,hL=R=>!R.ok||R.value?.[Symbol.toStringTag]=="Promise"&&R.value.status!=null&&!R.value.status.ok,MC=R=>R.value?.[Symbol.toStringTag]=="Promise"?R.value.status:R,Ig=R=>R.toplevel?{module:R.module}:R.fn.__location&&JSON.parse(R.fn.__location),Dvt=R=>_v(R).module,SG=R=>R.parse_result.modules[Dvt(R)],Wte=R=>!R.toplevel&&!R.fn.is_hosted,Cvt=(R,M)=>R?.[M.module]?.[M.index??-1],dze=(R,M,ee)=>({...R,[M.module]:{...R?.[M.module],[M.index??-1]:ee}}),oze=(R,M,ee)=>R.selected_calltree_node_by_loc?.[M]?.[R.parse_result.modules[M]==ee?-1:ee.index],Nvt=(R,M,ee)=>({...R,selected_calltree_node_by_loc:dze(R.selected_calltree_node_by_loc,M,ee)}),uW=(R,M,ee=R.current_calltree_node)=>({...R,active_calltree_node:M,current_calltree_node:ee}),nEe=(R,M,ee=M)=>{let le=Ig(M);if(Cvt(R.colored_frames,le)!=M.id){R={...R,colored_frames:dze(R.colored_frames,le,M.id)};let Oe=R.frames.get(M.id);if(Oe==null){let ft=R.footprints.get(M.id);if(ft==null)throw new Error("illegal state");if(M.code!=null&&gf(M.code)&&M.fn?.__type!="loop_iteration")throw new Error("illegal state");Oe=Ybe(M.code,M,ft);let Mt=m3e(M.code,Oe);R.frames.set(M.id,Oe),R.frame_coloring.set(M.id,Mt)}}return uW(R,M,ee)},aze=(R,M)=>Ote(R,M)[1],Ote=(R,M)=>{if(R.id!=M.id)throw new Error("illegal state: merge_calltree");if(R.callsite_location==null&&M.callsite_location!=null)return[!0,Ote({...R,callsite_location:M.callsite_location},M)[1]];if(R.snapshot==null&&M.snapshot!=null)return[!0,Ote({...R,snapshot:M.snapshot},M)[1]];if(R.has_more_children){if(M.has_more_children)return[!1,R];if(R.id!=M.id)throw new Error("illegal state");return[!0,M]}if(R.children==null)return[!1,R];if(M.has_more_children)return[!1,R];if(R.children.length!=(M.children?.length??0))throw new Error("illegal state");let[ee,le]=X4e((Ie,Oe,ft)=>{let[Mt,Yt]=Ote(Oe,M.children[ft]);return[Ie||Mt,Yt]},!1,R.children);return ee?[!0,{...R,children:le}]:[!1,R]},tEe=(R,M)=>(R.children??[]).find(ee=>{if(ee.callsite_location==null)return!1;let le=JSON.parse(ee.callsite_location);return le.index==M.index&&le.length==M.length}),uze=(R,M)=>{let ee=R.callsite_location;if(ee==null)return null;ee=JSON.parse(ee);let le=Ate(M.code,Ie=>Ie.index==ee.index&&Ie.length==ee.length&&(Ie.kind==Ze.SyntaxKind.CallExpression||Ie.kind==Ze.SyntaxKind.NewExpression||gf(Ie)));if(le==null)throw new Error("illegal state");return le},cze=(R,M,ee)=>{let{has_snapshot:le,node_snapshot:Ie}=Zbe(R,Ig(R.current_calltree_node).module,M,ee);if(le){let Oe;return Ie==null?Oe=null:Oe=eEe(R,R.current_calltree_node.code,M,Ie),{should_replay:!1,value_explorer:Oe}}else return{should_replay:!0}},YS=(R,M,ee=Oe=>Oe,le=!1,Ie=!1)=>{function Oe(Dr){if(Ie)throw new Error("illegal state");let jo=qt.code;return{...R,value_explorer:null,run_state:{status:Ju.reload_app_window,on_reload_app_window_finished:Mte,on_eval_modules_finished:ft,breakpoint:{module:Ig(qt).module,function_node:jo,selected_call_id:qt.id,current_calltree_node_id:M.id,selected_node:Dr}}}}function ft(Dr,jo,_o){if(_o.current_calltree_node_id!=Dr.current_calltree_node.id)return Dr;let Fa=p0(Dr.calltree,Us=>Us.id==M.id);return YS(Dr,Fa,ee,le,!0)}let[Mt]=IG(R.calltree,M);if(!M.toplevel&&!M.fn.is_hosted&&!Mt.toplevel&&!Mt.fn.is_hosted)return ee({...uW(R,null,M),value_explorer:null,selection_state:null});let Yt;M.toplevel||M.fn.__type=="loop_iteration"?Yt=!0:M.code!=null&&gf(M.code)?Yt=!1:Mt.id=="deferred_calls"?Yt=!0:Wte(M)?Yt=!1:Wte(Mt)?Yt=!0:Yt=R.calltree_node_is_expanded[M.id];let qt=Yt?M:Mt;R=uW(R,qt,M);let vr,_i,ti;if(M.toplevel){if(R.footprints.get(_v(R).id)==null)return Oe();_i=null,ti=null,vr=Ig(qt)}else if(M.fn.__type=="loop_iteration"){let Dr=Ig(M).module,jo=_L(R),_o=!1;if(R.current_module==Dr&&fL(M.code,jo)&&jo!=M.code.index)vr={module:Dr,index:jo};else{let Fc=M.code,Nc=Fc.kind;if(Nc==Ze.SyntaxKind.WhileStatement||Nc==Ze.SyntaxKind.DoStatement||Nc==Ze.SyntaxKind.ForStatement){let $S=Fc.statement.kind==Ze.SyntaxKind.Block?Fc.statement.statements.length==0?Nc==Ze.SyntaxKind.ForStatement?Fc.initializer:Fc.expression:Fc.statement.statements[0]:Fc.statement;vr={module:Dr,index:$S.index}}else vr={module:Dr,index:Fc.initializer.index},_o=!0}let Fa=R.selection_state?.node,Us=Fa!=null&&!(Fa==M.code.expression&&(M.code.kind==Ze.SyntaxKind.ForOfStatement||M.code.kind==Ze.SyntaxKind.ForInStatement))&&Fa!=M.code.initializer&&fL(M.code,Fa.index),yl;if((M.code.kind==Ze.SyntaxKind.ForOfStatement||M.code.kind==Ze.SyntaxKind.ForInStatement)&&(Fa==M.code.initializer||_o)?(ti={node:M.code.initializer},yl=M.code):Us?(ti=R.selection_state,yl=R.selection_state.node):(yl=Nte(M.code,vr.index),ti=null),yl==null)_i=null,ti=null;else{let Fc;if({value_explorer:_i,should_replay:Fc}=cze(R,yl,M.id),Fc)return Oe(yl)}}else if(M.code!=null&&gf(M.code)){let Dr=M.code.kind;if(Dr==Ze.SyntaxKind.WhileStatement||Dr==Ze.SyntaxKind.DoStatement)_i=null,ti=null;else{let jo;Dr==Ze.SyntaxKind.ForStatement?jo=M.code.initializer:jo=M.code.expression,ti={node:jo};let _o;if({value_explorer:_i,should_replay:_o}=cze(R,jo,Bbe(R.calltree,M).id),_o)return Oe(jo)}if(vr={module:Ig(M).module,index:M.code.index},M.has_more_children)return Oe()}else{if(M.snapshot==null)return Oe();let Dr;if(Yt){vr=Ig(M),ti=null;let _o=R.snapshots.get_by_module_and_node(Ig(qt).module,qt.code)?.get(qt.id);if(_o==null)return Oe();_o.ok?Dr=_o.value:Dr=M.snapshot.args}else{let _o=uze(M,qt);if(_o==null)return Oe();vr={module:Ig(qt).module,index:_o.index},Dr=M.snapshot.args,ti={node:_o}}if(Dr==null)throw new Error("illegal state");let jo=M.ok?{args:Dr,return_value:M.snapshot.value}:{args:Dr,throws:M.snapshot.error};M.context!=null&&(jo={...jo,context_before:M.snapshot.context_before,context_after:M.snapshot.context_after}),_i={call_id:M.id,index:vr.index,result:{ok:!0,is_calltree_node_explorer:!0,value:jo}}}return R=le?R:M.toplevel?{...R,current_module:vr.module}:PC(R,vr),R.footprints.get(qt.id)==null?Oe():ee({...nEe(Nvt(R,Ig(qt),R.active_calltree_node.id),qt,M),value_explorer:_i,selection_state:ti})},Pvt=R=>YS(R,R.current_calltree_node,void 0,!0),IG=(R,M)=>{let ee=Ie=>Ie.id==M.id?[]:Ie.children==null?null:Ie.children.reduce((Oe,ft)=>{if(Oe!=null)return Oe;let Mt=ee(ft);return Mt==null?null:[...Mt,Ie]},null),le=ee(R);if(le==null)throw new Error("illegal state");return le},gL=R=>Wte(R)||gf(R.code)?R.children!=null&&R.children.length!=0||R.has_more_children:R.toplevel?R.children!=null&&R.children.length!=0:!0,Mvt=R=>{let M=R.current_calltree_node,ee;if(gL(M)&&R.calltree_node_is_expanded[M.id]&&M.children!=null)ee=M.children[0];else{let le=(Ie,Oe)=>{if(Ie.id=="calltree")return null;let[ft,...Mt]=Oe,Yt=ft.children.findIndex(vr=>vr==Ie),qt=ft.children[Yt+1];return qt??le(ft,Mt)};ee=le(M,IG(R.calltree,M))}return ee?.id=="deferred_calls"&&(ee.children==null?ee=null:ee=ee.children[0]),ee==null?R:YS(R,ee)},Lvt=R=>{let M=R.current_calltree_node;if(M.toplevel)return R;let[ee]=IG(R.calltree,M),le=ee.children.findIndex(Mt=>Mt==M),Ie=ee.children[le-1],Oe=Mt=>!gL(Mt)||!R.calltree_node_is_expanded[Mt.id]||Mt.children==null?Mt:Oe(Mt.children[Mt.children.length-1]),ft;return Ie==null?ft=ee.id=="deferred_calls"?Oe(_v(R)):ee:ft=Oe(Ie),YS(R,ft)},kvt=R=>{let M=R.current_calltree_node,ee=R.calltree_node_is_expanded[M.id];if(!gL(M)||!ee){let[le]=IG(R.calltree,M);return le.id=="calltree"||le.id=="deferred_calls"?R:YS(R,le)}else return TG(R)},wvt=R=>{let M=R.current_calltree_node;return gL(M)?R.calltree_node_is_expanded[M.id]?M.children!=null?YS(R,M.children[0]):R:TG(R):R},TG=(R,M,ee=R.current_calltree_node)=>{let le=ee.id,Ie=R.calltree_node_is_expanded[le],Oe=M??!Ie,ft={...R,calltree_node_is_expanded:{...R.calltree_node_is_expanded,[le]:Oe}};return YS(ft,ee)},Ovt=(R,M)=>{let ee=p0(R.calltree,le=>le.id==M);return YS(R,ee)},Wvt=(R,M)=>{let ee=p0(R.calltree,le=>le.id==M);return gL(ee)?TG(R,void 0,ee):YS(R,ee)},LC=(R,M)=>R.calltree_node_is_expanded?.[M.id]?R:{...R,calltree_node_is_expanded:{...R.calltree_node_is_expanded,...Object.fromEntries(IG(R.calltree,M).map(ee=>[ee.id,!0])),[M.id]:!0}},wte=(R,M)=>{if(M??=_v(R),M.ok||Rvt(M))return{state:LC(R,M),node:M};{let ee=p0(M,le=>!MC(le).ok&&(le.children==null||le.children.find(Ie=>!MC(Ie).ok)==null));return{state:LC(R,ee),node:ee}}},sze=R=>wte(R).state,AG=(R,M,ee)=>{let le=R.parse_result.modules[M];if(le==null)return null;if(fL(le,ee)){let Ie=qS(le,ee),Oe=Ze.forEachAncestor(Ie,ft=>{let Mt=Ste(ft);if(Mt!=null)return Mt;if(lp(ft)||gf(ft))return ft});return Oe??le}else return le},lze=(R,M,ee)=>{if(M==SG(R)){let Ie=_v(R);return nEe(LC(R,Ie),Ie)}if(M.kind==Ze.SyntaxKind.SourceFile)return R;if(ee==null)return uW(R,null);let le=p0(R.calltree,Ie=>Ie.id==ee);if(le==null)throw new Error("illegal state");return nEe(LC(R,le),le)},Fvt=R=>{if(R.current_calltree_node.toplevel)return{state:R};if(R.current_calltree_node.code!=null&&gf(R.current_calltree_node.code))return{state:R};let M=Ig(R.active_calltree_node),ee;if(R.current_calltree_node==R.active_calltree_node){let le=R.frames.get(R.active_calltree_node.id),Ie=R.active_calltree_node.code;if(R.active_calltree_node.ok)if(Ie.body.kind==Ze.SyntaxKind.Block){let Oe=Ate(Ie,ft=>ft.kind==Ze.SyntaxKind.ReturnStatement&&le.get(ft)?.ok);if(Oe==null)return{state:PC(R,{module:M.module,index:Ie.body.index}),effects:{type:"set_focus"}};ee=Oe.expression}else ee=Ie.body;else ee=Gbe(Ie,le)}else{let le=R.current_calltree_node.callsite_location;le=JSON.parse(le),ee=Ate(R.active_calltree_node.code,Ie=>Ie.index==le.index&&Ie.length==le.length)}return{state:{...PC(R,{module:M.module,index:ee.index}),selection_state:{node:ee},value_explorer:{call_id:R.current_calltree_node.id,index:ee.index,length:ee.length,result:R.current_calltree_node.snapshot}},effects:{type:"set_focus"}}},zvt=(R,M=!0)=>{if(R.current_calltree_node.toplevel)return{state:R};if(R.current_calltree_node.code!=null&&gf(R.current_calltree_node.code))return{state:R};let ee=Ig(R.active_calltree_node),le,Ie;if(R.current_calltree_node==R.active_calltree_node){if(R.active_calltree_node.toplevel)return{state:R};let Oe=R.active_calltree_node.code;le=Hb(Oe)[0];let ft=R.snapshots.get_by_module_and_node(Ig(R.active_calltree_node).module,Oe)?.get(R.active_calltree_node.id);if(ft==null)return{state:R};Ie=ft.ok?ft:{ok:!1,error:R.active_calltree_node.error}}else{let Oe=uze(R.current_calltree_node,R.active_calltree_node);if(Oe==null)return{state:R};Ie={ok:!0,value:R.current_calltree_node.snapshot.args},le=[...Oe.arguments];let ft=Oe.getChildren();le.index=ft.find(Mt=>Mt.kind==Ze.SyntaxKind.OpenParenToken).pos,le.length=ft.find(Mt=>Mt.kind==Ze.SyntaxKind.CloseParenToken).pos-le.index+1}return{state:{...PC(R,{module:ee.module,index:le.index}),selection_state:{node:le},value_explorer:{call_id:R.current_calltree_node.id,index:le.index,length:le.length,result:Ie}},effects:M?{type:"set_focus"}:null}},Bvt=R=>{let M=[R.current_calltree_node,R.active_calltree_node,_v(R)].find(le=>hL(le));if(M==null)return{state:R,effects:[{type:"set_status",args:["no error found"]}]};let ee=p0(M,le=>hL(le)&&(le.children==null||le.children.every(Ie=>!hL(Ie)||Wte(Ie)&&Ie.children==null)));if(ee==null)throw new Error("illegal state: error origin not found");return YS(LC(R,ee),ee,le=>{let Ie=cte(le),Oe=Gbe(le.active_calltree_node.code,Ie);return{state:PC(le,{module:Ig(ee).module,index:Oe.index}),effects:{type:"set_focus"}}})},Gvt=(R,M)=>{if(R.logs.logs.length==0)return{state:R};let ee=Math.max(Math.min(R.logs.log_position==null?0:R.logs.log_position+M,R.logs.logs.length-1),0);return pze(R,ee)},pze=(R,M)=>{R={...R,logs:{...R.logs,log_position:M}};let ee=p0(R.calltree,le=>le.id==R.logs.logs[M].id);return YS(LC(R,ee),ee,le=>le.active_calltree_node==null?le:{...le,value_explorer:{...le.value_explorer,result:{...le.value_explorer.result,is_calltree_node_explorer:!1,value:le.value_explorer.result.value.args}}})};Lte.calltree={arrow_down:Mvt,arrow_up:Lvt,arrow_left:kvt,arrow_right:wvt,select_node:Ovt,select_and_toggle_expanded:Wvt,select_return_value:Fvt,select_arguments:zvt,select_error:Bvt,navigate_logs_position:pze,navigate_logs_increment:Gvt,show_value_explorer:Pvt};var Fte=class{constructor(M,ee){this.ui=M,this.container=ee,this.container.addEventListener("keydown",le=>{le.key=="r"&&(le.ctrlKey||le.metaKey)||le.preventDefault(),le.key=="Escape"&&this.ui.editor.focus(),le.key=="F1"&&this.ui.editor.focus_value_explorer(this.container),le.key=="F2"&&this.ui.editor.focus(),le.key=="a"&&Ys("calltree.select_arguments"),le.key=="e"&&Ys("calltree.select_error"),(le.key=="r"||le.key=="Enter")&&Ys("calltree.select_return_value"),(le.key=="ArrowDown"||le.key=="j")&&Ys("calltree.arrow_down"),(le.key=="ArrowUp"||le.key=="k")&&Ys("calltree.arrow_up"),(le.key=="ArrowLeft"||le.key=="h")&&Ys("calltree.arrow_left"),(le.key=="ArrowRight"||le.key=="l")&&Ys("calltree.arrow_right")})}on_click_node(M,ee){M.target.classList.contains("expand_icon")?Ys("calltree.select_and_toggle_expanded",ee):Ys("calltree.select_node",ee)}clear_calltree(){this.container.innerHTML="",this.node_to_el=new Map,this.state=null}render_loop(M){let{ok:ee,error:le}=MC(M),Ie;M.code.kind==Ze.SyntaxKind.WhileStatement&&(Ie="while"),M.code.kind==Ze.SyntaxKind.DoStatement&&(Ie="do while"),(M.code.kind==Ze.SyntaxKind.ForInStatement||M.code.kind==Ze.SyntaxKind.ForOfStatement||M.code.kind==Ze.SyntaxKind.ForStatement)&&(Ie="for");let Oe=M.has_more_children?M.children_count:M.children?.length??0;return Wr("span","call_header "+(ee?"":"error"),Ie+" loop("+Oe+")",ee?null:[": ",Tg(le)])}render_loop_iteration(M,ee){let{ok:le,error:Ie}=MC(M),Oe=ee.children.indexOf(M),ft=null;(M.code.kind==Ze.SyntaxKind.ForOfStatement||M.code.kind==Ze.SyntaxKind.ForInStatement)&&(ft=M.code.initializer.getText()+" = "+Tg(M.args[0]));let Mt=Tte(M.code);return Mt!=null&&(ft=Mt.getText()+" = "+Tg(M.args[0])),Wr("span","call_header "+(le?"":"error"),Wr("span","loop_step","step "+Oe,(ft!=null||!le)&&":"),ft,le?"":Wr("span","call_header error",ft!=null&&":\xA0",Tg(Ie)))}render_node(M,ee){let le=this.state.calltree_node_is_expanded[M.id],Ie=Wr("div","callnode",Wr("div",{class:"call_el",click:Oe=>this.on_click_node(Oe,M.id)},gL(M)?le&&M.has_more_children?Wr("div","spinner"):Wr("span","expand_icon",le?"\u25BC":"\u25B6"):Wr("span","expand_icon_placeholder","\xA0"),M.toplevel?Wr("span",M.ok?"":"call_header error",Wr("i","","toplevel: "+hv(M.module)),M.ok?"":Wr("span","",":\xA0",Tg(M.error))):M.fn.__type=="loop_iteration"?this.render_loop_iteration(M,ee):M.code!=null&&gf(M.code)?this.render_loop(M):Wr("span","call_header "+(hL(M)?"error":"")+(M.fn.is_hosted?"":" native"),M.is_new?"new ":"",M.context==null||M.is_new?"":Wr("span","",typeof M.context=="object"?M.context.constructor?.name||"":Tg(M.context),"."),M.fn.name==""?"anonymous":M.fn.name,"(",...cL(M.args.map(Oe=>Tg(Oe))),")",": ",M.ok?Tg(M.value):Tg(M.error))),M.children==null||!le?null:M.children.map(Oe=>this.render_node(Oe,M)));return this.node_to_el.set(M.id,Ie),Ie.is_expanded=le,Ie}render_active(M,ee){let le=this.node_to_el.get(M.id).getElementsByClassName("call_el")[0];ee?le.classList.add("active"):le.classList.remove("active")}reveal_current_calltree_node(){eW(this.container,this.node_to_el.get(this.state.current_calltree_node.id).getElementsByClassName("call_el")[0])}render_select_node(M,ee){if(M!=null&&this.render_active(M.current_calltree_node,!1),this.state=ee,this.render_active(this.state.current_calltree_node,!0),M?.current_calltree_node!=ee.current_calltree_node){let le=this.container.scrollLeft;this.reveal_current_calltree_node(),this.container.scrollLeft=le}}render_expand_node(M,ee){this.state=ee,this.do_render_expand_node(M.calltree_node_is_expanded,ee.calltree_node_is_expanded,_v(M),_v(ee));let le=rI(M),Ie=rI(ee);if(le!=null){for(let Oe=0;Oethis.render_node(ee))))))}};var zte=class{constructor(M,ee){this.el=ee,this.ui=M,this.el.addEventListener("keydown",le=>{le.key=="Escape"&&this.ui.editor.focus(),le.key=="Enter"&&this.ui.editor.focus(),le.key=="F1"&&this.ui.editor.focus_value_explorer(this.el),le.key=="F3"&&this.ui.editor.focus(),(le.key=="ArrowDown"||le.key=="j")&&(le.preventDefault(),Ys("calltree.navigate_logs_increment",1)),(le.key=="ArrowUp"||le.key=="k")&&(le.preventDefault(),Ys("calltree.navigate_logs_increment",-1))})}rerender_logs(M,ee){this.el.innerHTML="",this.render_logs(M,null,ee)}render_logs(M,ee,le){for(let Ie=ee==null?0:ee.logs.length;IeYs("calltree.navigate_logs_position",Ie)},Wr("a",{href:"javascript: void(0)"},ft+": "+(Oe.toplevel?"toplevel":"fn "+(Oe.parent_name==""?"anonymous":Oe.parent_name))+":")," ",...cL(Oe.args.map(Yt=>Tg(Yt)))))}if(ee?.log_position!=le.log_position&&(ee?.logs==le.logs&&ee?.log_position!=null&&this.el.children[ee.log_position].classList.remove("active"),le.log_position!=null)){let Ie=this.el.children[le.log_position];Ie.classList.add("active"),eW(this.el,Ie)}}};var Bte=class{constructor(M,ee){this.el=ee,this.ui=M,this.el.addEventListener("keydown",le=>{le.key=="Escape"&&this.ui.editor.focus(),le.key=="F4"&&this.ui.editor.focus()})}clear(){this.el.innerHTML="",this.is_rendered=!1,this.io_trace_length=0}render_io_trace(M,ee){if(ee&&(this.is_rendered=!1),this.is_rendered)return;this.is_rendered=!0,this.el.innerHTML="",this.io_trace_length=M.io_trace.length;let le=M.io_trace,Ie=M.rt_cxt.io_trace_index??le.length;for(let Oe=0;Oe ")));else if(ft.type=="call")this.el.appendChild(Wr("div","call_header "+(hL(ft)?"error ":"")+(Mt?"":"native "),ft.name,"(",...cL(ft.args.map(Yt=>Tg(Yt))),"): ",ft.ok?Tg(ft.value):Tg(ft.error)));else throw new Error("unknown item type")}}};var Vvt="leporello-js",fze=`https://firebasestorage.googleapis.com/v0/b/${Vvt}.appspot.com/o/`;async function jvt(R){let M=new TextEncoder().encode(R),ee=await crypto.subtle.digest("SHA-256",M);return Array.from(new Uint8Array(ee)).map(Oe=>Oe.toString(16).padStart(2,"0")).join("")}async function mze(R,M){let ee=(await jvt(M)).slice(0,40),le=new Blob([M],{type:"text/plain"}),Ie=new FormData;Ie.append("file",le);let Oe=await fetch(fze+ee,{method:"POST",body:Ie});if(!Oe.ok){let Yt=(await Oe.json())?.error?.message;throw new Error("Failed to upload: "+Yt)}let ft=new URL(window.location);return ft.searchParams.set("share_id",ee),ft.searchParams.set("share_name",R),ft.toString()}async function Uvt(R){let M=await fetch(fze+R+"?alt=media");if(!M.ok){let le=(await M.json())?.error?.message;throw new Error("Failed to fetch: "+le)}return M.text()}async function _ze(){let R=new URLSearchParams(window.location.search),M=R.get("share_id");if(M==null)return null;let ee=R.get("share_name")??"";ee.trim()==""&&(ee="Share");let le=new URL(window.location);le.searchParams.delete("share_id"),le.searchParams.delete("share_name"),history.replaceState(null,null,le.href);try{let Ie=await Uvt(M);return{name:ee,contents:Ie}}catch(Ie){return alert(Ie.message),null}}var Gte=class{constructor(){let ee=gv().current_module.split("/").at(-1);this.el=Wr("dialog","share_dialog",this.upload_begin=Wr("p","",Wr("p","","Uploads your file to the cloud so you can share it with others."),Wr("ul","",Wr("li","","Please ensure that no personal data or confidential information is included."),Wr("li","","Avoid including copyrighted materials.")),Wr("span",{style:"color: red"},"Caution: Once shared, files cannot be deleted."),Wr("div","share_name",Wr("label","","Public file name"),this.share_name=Wr("input",{type:"text",value:ee})),this.upload_buttons=Wr("p",{style:"text-align: center"},Wr("button",{class:"upload_button",click:()=>this.upload()},"Upload"),this.cancel_button=Wr("button",{style:"margin-left: 1em",click:()=>this.el.close()},"Cancel"))),this.uploading=Wr("span",{style:"display: none"},"Uploading..."),this.upload_finish=Wr("p",{style:"display: none"},Wr("p","",Wr("p",{style:` + `),Oe}),cW(function ae(Ee){return Ee.kind==$e.SyntaxKind.DebuggerStatement?null:$e.visitEachChild(Ee,ae)})]).transformed[0]},U3e=(x,P,Q,ae,Ee,Oe,ut,Rt,Gt,Vt)=>{let cr=globalThis.app_window.Function,ci=globalThis.app_window.eval("(async function(){})").constructor,Jr=x.sorted.map(ya=>{let es=x.modules[ya],bl={module:ya,toplevel:es,breakpoint:Gt,current_function:es,should_collect_footprints:Rt};es=_vt(es,bl);let tu=Gm`"use strict";let __obj, __fn, __tmp;`;es=$e.factory.updateSourceFile(es,[...tu,...Cte(es,bl),...es.statements]);let Dd=$e.transformNodes(x.program.getTypeChecker().getEmitResolver(),void 0,$e.factory,DC,[es],[$e.transformJsx],!1).transformed;if(Dd.length!=1)throw new Error("illegal state");es=Dd[0];let yv=fvt.printFile(es),kC=vG(es)?ci:cr,Cl;try{Cl=new kC("__cxt","__rt",yv)}catch(ki){throw new Error(ki.message,{cause:ki})}return{module:ya,fn:Cl}}),Ar={logs:[],deferred_calls:[],modules:P==null?{}:e3e(P,(ya,{module:es})=>es),call_counter:0,version_counter:0,children:null,stack:new Array,is_recording_deferred_calls:!1,on_deferred_call:(ya,es,bl)=>Q(W3e(x.modules,ya),es,bl),execution_id:ae,is_toplevel_call:!0,window:globalThis.app_window,storage:Oe,canvas_ops:{ops:[],contexts:new Set},snapshots:ut,footprints:new Map,breakpoint:Gt,selected_call_id:Gt.selected_call_id,io_trace:Ee},Uo=O3e(Jr,Ar,Ee);Uo?.[Symbol.toStringTag]=="Promise"&&(Uo=new Promise((ya,es)=>{Promise.prototype.then.call(Uo,ya,es)})),Vt||(Uo=Promise.resolve(Uo));let Sa=ya=>{let es=W3e(x.modules,dte(ya.calltree,Ar.deferred_calls.length==0?null:Ar.deferred_calls));return{...ya,breakpoint:Gt,calltree:es}};return Uo?.[Symbol.toStringTag]=="Promise"?Promise.all([Uo,new Promise(ya=>setTimeout(ya,0))]).then(([ya])=>Sa(ya)):Sa(Uo)},hvt=(x,P)=>{let Q=$e.forEachChildRecursively(x,ae=>{if(ae.index==P.index&&ae.length==P.length&&(lp(ae)||Jp(ae)))return ae});if(Q==null)throw new Error("illegal state");return Q},W3e=(x,P)=>{let Q=new Map;function ae(Ee){if(Ee.toplevel)return{...Ee,code:x[Ee.module],children:Ee.children&&Ee.children.map(ae)};{let Oe;if(Ee.fn==null||Ee.fn.__location==null)Oe=null;else if(Oe=Q.get(Ee.fn.__location),Oe==null){let ut=JSON.parse(Ee.fn.__location);Oe=hvt(x[ut.module],ut),Q.set(Ee.fn.__location,Oe)}return{...Ee,code:Oe,children:Ee.children&&Ee.children.map(ae)}}}return ae(P)},tEe=(x,P,Q)=>x.kind==$e.SyntaxKind.AwaitExpression&&!Q&&!P.toplevel&&P.value.status==null,Qbe=class extends Map{get(P){return P=CC(P)?P.original:P,super.get(P)}},nEe=(x,P,Q,ae,Ee)=>{Ee??=new Qbe;let Oe=gvt(x,P,Q,ae,Ee);return Ee.set(x,Oe.result),Ee},gvt=(x,P,Q,ae,Ee)=>{let Oe=Jr=>nEe(Jr,P,Q,x,Ee),ut=Jr=>Q.get(Jr.index+"_"+Jr.length),Rt=ut(x);if(x.kind==$e.SyntaxKind.VariableDeclarationList&&x.parent.kind==$e.SyntaxKind.VariableStatement&&(Rt=ut(x.parent)),ae?.kind==$e.SyntaxKind.PropertyAccessExpression&&ae.name==x&&(Ee.get(ae.expression)?.ok?Rt=!0:Rt=void 0),(ae?.kind==$e.SyntaxKind.PropertyAssignment||ae?.kind==$e.SyntaxKind.ShorthandPropertyAssignment)&&ae.name==x&&ut(ae.parent)!=null&&(Rt=!0),tEe(x,P,Rt)&&(Rt=void 0),lp(x)){if(ae!=null)return{result:Rt==null?void 0:{ok:Rt}};{let[Jr,Ar]=Kb(x);return ut(Jr)?(Ee.set(Jr.original,{ok:!0}),Oe(Ar)):Ee.set(Jr.original,{ok:!1,is_error_origin:!0}),{result:{ok:Ee.get(Ar)?.ok}}}}if(Jp(x)&&ae!=null)return(x.kind==$e.SyntaxKind.ForOfStatement||x.kind==$e.SyntaxKind.ForInStatement)&&Oe(x.expression),x.kind==$e.SyntaxKind.ForStatement&&Oe(x.initializer),Rt==null?{result:void 0}:{result:{ok:Rt,is_error_origin:!Rt}};if(V3e(x)&&!(x.kind==$e.SyntaxKind.Block||x.kind==$e.SyntaxKind.SourceFile)&&ae!=null&&Rt==null)return{result:void 0};if(ae!=null&&bG(x,ae))if(x.kind==$e.SyntaxKind.PropertyAccessExpression||x.kind==$e.SyntaxKind.ElementAccessExpression){let Jr=Kb(x);return Jr.map(Uo=>Oe(Uo)),{result:{ok:Jr.every(Uo=>Ee.get(Uo)?.ok)}}}else Rt=!0;if(x.kind==$e.SyntaxKind.VariableDeclaration){let[Jr,Ar]=[x.name,x.initializer];return Ar!=null&&Oe(Ar),(Ar==null||Ee.get(Ar)?.ok)&&Oe(Jr),{result:{ok:Rt,is_error_origin:Rt?void 0:Ee.get(Ar)?.ok}}}let Gt=Kb(x);Gt&&Gt.map(Jr=>Oe(Jr));let Vt=Gt==null||Gt.every(Jr=>Ee.get(Jr)?.ok),cr=!Rt&&Vt;if((x.kind==$e.SyntaxKind.Block||x.kind==$e.SyntaxKind.SourceFile)&&(Gt.length!=0&&(Rt=Gt.reduce((Jr,Ar)=>Jr&&Ee.get(Ar)?.ok,!0)),cr=!1),x.kind==$e.SyntaxKind.PartiallyEmittedExpression||x.kind==$e.SyntaxKind.ExpressionStatement||x.kind==$e.SyntaxKind.ParenthesizedExpression||x.kind==$e.SyntaxKind.JsxExpression){if(Gt.length!=1)throw new Error("illegal state");let Jr=Ee.get(x.expression);return{result:Jr==null?null:{...Jr,is_error_origin:!1}}}if(x.kind==$e.SyntaxKind.IfStatement&&(Rt=ut(x.expression),Gt.some(Jr=>Ee.get(Jr)?.ok===!1)&&(Rt=!1)),Jp(x)&&ae==null){if(x.kind==$e.SyntaxKind.ForOfStatement||x.kind==$e.SyntaxKind.ForInStatement){let Jr=x.statement;Oe(Jr);let Ar=Ee.get(Jr)!=null;Ee.set(x.initializer,{ok:Ar,is_error_origin:!Ar})}return{result:void 0}}return[$e.SyntaxKind.ReturnStatement,$e.SyntaxKind.BreakStatement,$e.SyntaxKind.ContinueStatement].includes(x.kind)&&(Rt!=null&&(Rt=Vt),cr=!1),x.kind==$e.SyntaxKind.PropertyAssignment||x.kind==$e.SyntaxKind.ShorthandPropertyAssignment||x.kind==$e.SyntaxKind.SpreadElement||x.kind==$e.SyntaxKind.SpreadAssignment||x.kind==$e.SyntaxKind.JsxSpreadAttribute?{result:{ok:Vt}}:{result:Rt===void 0?void 0:{ok:Rt,is_error_origin:Rt?void 0:cr}}};function H3e(x){return new Map([...x.entries()].map(([P,Q])=>[P,structuredClone(Q)]))}var EG=class extends Map{set(P,Q){if(structuredClone(Q),typeof P!="string")throw new Error("key must be a string");super.set(P,Q)}};var dW=class extends Map{get_by_module_and_node(P,Q){if(Q.index==null||Q.length==null)throw new Error("illegal state");return this.get(`${P}_${Q.index}_${Q.length}`)}set_by_module_and_node(P,Q,ae){if(Q.index==null||Q.length==null)throw new Error("illegal state");return this.set(`${P}_${Q.index}_${Q.length}`,ae)}};var K3e=x=>x.kind==$e.SyntaxKind.ExpressionStatement?x.expression:x.kind==$e.SyntaxKind.NotEmittedStatement||x.kind==$e.SyntaxKind.EmptyStatement?null:x.kind==$e.SyntaxKind.ReturnStatement?x.expression==null?x:x.expression:x.kind=="export"?K3e(x.children[0]):x,Pte=(x,P)=>{let Q=lp(x);if(Q){let Gt=Kb(x)[0];if(fL(Gt,P))return x.parameters.length>0?Gt:null}let ae=XS(x,P),Ee=ae==null||(ae.kind==$e.SyntaxKind.Block||ae.kind==$e.SyntaxKind.SourceFile)&&P>ae.index?XS(x,P-1):ae;if(Ee==null||Ee.kind==$e.SyntaxKind.Block||x==Ee||x.name==Ee)return null;let Oe=aW(Ee,x);for(let Gt of Oe){if(lp(Gt))break;if(Gt.kind==$e.SyntaxKind.JsxExpression||Gt.kind==$e.SyntaxKind.JsxSpreadAttribute)return Gt.expression;if(Gbe(Gt))return Gt}if(Q&&x.body.kind!=$e.SyntaxKind.Block)return x.body;if(Oe.find(Gt=>Gt!=x&&Gt!=Ee&&(lp(Gt)||Jp(Gt)))!=null)return null;if(Jp(x)&&Oe.includes(x.expression))return x.expression;if(x.kind==$e.SyntaxKind.ForStatement&&Oe.includes(x.incrementor))return x.incrementor;if(x.kind==$e.SyntaxKind.ForStatement&&Oe.includes(x.condition))return x.condition;let Rt=$e.forEachAncestor(Ee,Gt=>{if(Gt.parent.kind==$e.SyntaxKind.IfStatement&&Gt.parent.expression==Gt||$e.isStatement(Gt))return Gt});return K3e(Rt)};var eu={parse:"parse",reload_app_window:"reload_app_window",reload_app_window_finished:"reload_app_window_finished",load_external_imports:"load_external_imports",eval_modules:"eval_modules",eval_modules_finished:"eval_modules_finished"},X3e=(x,P)=>{let Q=new Set(x),ae=new Map,Ee=(Oe,ut)=>{if(Oe.children!=null)for(let Rt of Oe.children)Ee(Rt,Oe.code!=null&&Jp(Oe.code)?ut:Oe);Q.has(Oe.id)&&ae.set(Oe.id,{id:Oe.id,version_number:Oe.version_number,toplevel:ut.toplevel,module:vy(ut)?.module,parent_name:ut.fn?.name,args:Oe.args,log_fn_name:Oe.fn.name})};return Ee(P,null),x.map(Oe=>ae.get(Oe))},yvt=x=>x.run_state?.status!=eu.reload_app_window?_L({...x,run_state:{status:eu.reload_app_window_finished}},!1):x.run_state.on_reload_app_window_finished(x),Lte=(x,P,Q)=>({function_node:P,module:x,selected_node:Q}),Y3e=x=>{let P=hL(x),Q=Bte(x,x.current_module,P),ae=Pte(Q,P);return Lte(x.current_module,Q,ae)},kte=x=>{if(x.parse_result.modules[x.current_module]==null)return Lte(x.current_module,x.parse_result.modules[x.entrypoint],null);let P=Y3e(x);return $3e(x,P)},$3e=(x,P)=>{let Q;return P.function_node==x.active_calltree_node?.code?Q=x.active_calltree_node:x.calltree!=null&&x.deepest_calltree_node_id!=null&&(Q=aEe(x.calltree,x.deepest_calltree_node_id).findLast(ae=>ae.code==P.function_node&&(!Jp(ae.code)||ae.fn.__type=="loop_iteration"))),Q==null?x.active_calltree_node!=null&&(P={...P,parent_calltree_node:x.active_calltree_node}):P={...P,selected_call_id:Q.id},P},_L=(x,P,Q)=>{let ae=x.active_calltree_node;if(x={...x,calltree:null,modules:null,execution_id:x.execution_id+1,rt_cxt:null,logs:null,current_calltree_node:null,active_calltree_node:null,deepest_calltree_node_id:null,calltree_node_is_expanded:null,collected_footprints_functions:new Set,frames:new Map,colored_frames:null,frame_coloring:new Map,selection_state:null,value_explorer:null,snapshots:new dW,subcalls:new Map,footprints:null},P){let Ee={status:eu.parse,prev_status:x.run_state?.status};return Q&&(Ee={...Ee,prev_active_calltree_node:ae}),{...x,run_state:Ee}}return Q3e(x,P)},Q3e=(x,P,Q)=>{P&&(x={...x,parse_result:g3e(x.entrypoint,Q)});let ae=P?{status:x.run_state.prev_status,prev_active_calltree_node:x.run_state.prev_active_calltree_node}:x.run_state;return x={...x,run_state:ae},x.parse_result.ok?x.run_state?.status==eu.reload_app_window_finished?J3e(x):{...x,run_state:{status:eu.reload_app_window,on_reload_app_window_finished:J3e,reload_counter:x.run_state?.reload_counter,prev_active_calltree_node:x.run_state.prev_active_calltree_node}}:x},J3e=x=>{let P=kte(x),Q=x.run_state.prev_active_calltree_node;if(Q!=null&&Q.kind!=$e.SyntaxKind.SourceFile&&P.function_node.kind!=$e.SyntaxKind.SourceFile){let ae=Q.code.getSourceFile().text,Ee=x.run_state.prev_active_calltree_node.code,Oe=x.files[x.current_module],ut=P.function_node;ae.slice(0,Ee.index)==Oe.slice(0,ut.index)&&ae.slice(Ee.index+Ee.length)==Oe.slice(ut.index+ut.length)&&(P={...P,selected_call_id:Q.id})}return x={...x,run_state:{breakpoint:P,on_eval_modules_finished:tze}},TG(x)},TG=x=>{let P=n3e(jbe(x.parse_result.modules).map(Q=>Q.url));return P.length!=0?{...x,run_state:{...x.run_state,status:eu.load_external_imports,external_imports:P}}:Z3e(x,x)},Z3e=(x,P,Q)=>{if(x.run_state!=P.run_state)return x;if(Q!=null){let ut=new Set(Object.entries(Q).filter(([Rt,Gt])=>!Gt.ok).map(([Rt,Gt])=>Rt));if(ut.size!=0){let Rt=jbe(x.parse_result.modules).filter(({url:Gt})=>ut.has(Gt)).map(({node:Gt,module_name:Vt,url:cr})=>({index:Gt.index,length:Gt.length,message:Q[cr].error.message,module:Vt}));return{...x,parse_result:{...x.parse_result,ok:!1,problems:Rt,is_external_imports_problems:!0},run_state:{status:eu.eval_modules_finished}}}}let ae=new dW([...x.snapshots.entries()].map(([ut,Rt])=>[ut,Rt==null?Rt:new Map(Rt)])),Ee=x.run_state.on_eval_modules_finished!=tze;!Ee&&x.is_open_app_window&&(x={...x,io_trace:[]});let Oe=U3e(x.parse_result,Q,x.on_deferred_call,x.execution_id,x.io_trace,H3e(Ee?x.prev_storage:x.storage),ae,!x.collected_footprints_functions.has(x.run_state.breakpoint.function_node),x.run_state.breakpoint,x.allow_sync_execution);return Oe.then==null&&x.allow_sync_execution?eze(x,x.execution_id,Oe):{...x,run_state:{...x.run_state,status:eu.eval_modules,promise:Oe}}},eze=(x,P,Q)=>{if(x.execution_id!=P)return x;if(x.calltree!=null){if(Q.rt_cxt.io_trace_is_replay_aborted)throw new Error("illegal state");if(Q.rt_cxt.io_trace_index!=null&&Q.rt_cxt.io_trace_index!=Q.rt_cxt.io_trace.length)throw new Error("illegal state: trace was replayed partially");x={...x,calltree:_ze(x.calltree,Q.calltree)}}let ae=Q.rt_cxt.snapshots,Ee=Q.breakpoint,Oe=Ee.function_node.kind==$e.SyntaxKind.SourceFile?[Ee.selected_node]:[Ee.selected_node,Ee.function_node];for(let Rt of Oe){let Gt=[Ee.module,Rt];Rt!=null&&ae.get_by_module_and_node(...Gt)===void 0&&ae.set_by_module_and_node(...Gt,null)}for(let Rt of[Q.rt_cxt.selected_call_id,Q.rt_cxt.first_call_id])if(Ee.selected_node!=null&&Rt!=null){let Gt=ae.get_by_module_and_node(Ee.module,Ee.selected_node);Gt!=null&&Gt.get(Rt)===void 0&&Gt.set(Rt,null)}if(Ee.parent_calltree_node!=null){let Rt=x.subcalls.get(Ee.parent_calltree_node.id);Rt==null&&(Rt=new Map,x.subcalls.set(Ee.parent_calltree_node.id,Rt)),Rt.set(Ee.function_node,Q.rt_cxt.selected_call_id??null)}let ut={...x,snapshots:ae,footprints:new Map([...x.footprints??[],...Q.rt_cxt.footprints]),rt_cxt:Q.rt_cxt,run_state:{status:eu.eval_modules_finished}};if(x.run_state.breakpoint.function_node==null)throw new Error("illegal state");return x.collected_footprints_functions.add(x.run_state.breakpoint.function_node),x.run_state.on_eval_modules_finished(ut,Q,x.run_state.breakpoint)},tze=(x,P,Q)=>{if(P.rt_cxt.io_trace_is_replay_aborted)return dze(x);if(x={...x,calltree:P.calltree,rt_cxt:P.rt_cxt,logs:{logs:X3e(P.logs,P.calltree),log_position:null},modules:P.modules,prev_storage:x.storage,storage:P.rt_cxt.storage},x=cze(x,P,Q),x.active_calltree_node==null){let{node:ae,state:Ee}=zte(x);x=uW(Ee,null,ae)}else x=hze(LC(x,x.active_calltree_node));if(x.run_state.status==eu.reload_app_window)return x;if(x.run_state.status!=eu.eval_modules_finished)throw new Error("illegal state");return x},vvt=(x,P,Q)=>{let ae={...x.files,[x.current_module]:P};x={...x,files:ae},x=Fte(x,Q);let Ee={type:"write",args:[x.current_module,x.files[x.current_module]]};return{state:_L(x,!0,!0),effects:[Ee]}},oEe=(x,P)=>{if(!x.parse_result.ok)return{state:x,effects:{type:"set_status",args:["invalid syntax"]}};if(x.calltree==null)return{state:x,effects:{type:"set_status",args:["code is executing"]}};let Q=Bte(x,x.current_module,P);if(Q==null||Q.kind==$e.SyntaxKind.SourceFile&&Q!=mL(x)||lp(Q)&&x.snapshots.get_by_module_and_node(x.current_module,Q)===null)return{state:x,effects:{type:"set_status",args:["code was not reached during program execution"]}}},bvt=(x,P)=>{let Q=x.parse_result.modules[x.current_module],ae=XS(Q,P);if(ae==null)return null;let Ee=aW(ae,Q).find(Oe=>Oe.kind==$e.SyntaxKind.CallExpression||Oe.kind==$e.SyntaxKind.NewExpression||lp(Oe));return Ee==null||lp(Ee)?null:Ee},Evt=x=>{let P=hL(x),Q=oEe(x,P);if(Q!=null)return Q;let ae=bvt(x,P);if(ae==null)return{state:x,effects:{type:"set_status",args:["no function call to step into"]}};if(x.run_state.status!=eu.eval_modules_finished)return{state:x,effects:{type:"set_status",args:["code is not executed yet"]}};let Ee=sEe(x.active_calltree_node,ae);if(Ee==null){let Oe=cte(x),ut;return Oe.get(ae)==null?ut="call was not reached during program execution":ut="Cannot step into: function is either builtin or from external lib",{state:x,effects:{type:"set_status",args:[ut]}}}return AG(x,!0,Ee)},nze=x=>{if(x.kind==$e.SyntaxKind.SourceFile)return!1;if(x.parent==null)throw new Error("illegal state");let P=x.parent;return $e.isExpression(x)&&x.kind!=$e.SyntaxKind.SpreadAssignment&&x.kind!=$e.SyntaxKind.SpreadElement&&P?.kind!=$e.SyntaxKind.ShorthandPropertyAssignment&&P?.kind!=$e.SyntaxKind.ImportDeclaration&&P?.kind!=$e.SyntaxKind.ImportClause&&P?.kind!=$e.SyntaxKind.ImportSpecifier&&P?.kind!=$e.SyntaxKind.NamespaceImport&&(P==null||!bG(x,P))&&!(P!=null&&P.kind==$e.SyntaxKind.PropertyAccessExpression&&P.name==x)&&!(P!=null&&P.kind==$e.SyntaxKind.PropertyAssignment&&x==P.name)&&P?.kind!=$e.SyntaxKind.JsxAttribute&&!(P!=null&&(P.kind==$e.SyntaxKind.JsxOpeningElement||P.kind==$e.SyntaxKind.JsxClosingElement)&&x.kind==$e.SyntaxKind.Identifier&&$e.isIntrinsicJsxName(x.escapedText))&&!(P!=null&&oW(P)&&oW(x))},q3e=x=>x.find(P=>nze(P)),Svt=(x,P,Q,ae)=>{if(XS(P,ae)==null)return{ok:!1,message:"out of scope"};if(x!=null&&x.index==ae){let Oe;if(x.initial_is_expand==Q)x.node==P?Oe=x.node:(Oe=q3e(Ube(x.node,P)),(Oe==null||!$e.isExpression(Oe))&&(Oe=x.node));else{let Rt=XS(x.node,ae);Rt!=x.node?(Oe=aW(Rt,x.node).findLast(Vt=>Vt!=x.node&&nze(Vt)),Oe==null&&(Oe=x.node)):Oe=x.node}return{ok:!0,initial_is_expand:x.initial_is_expand,node:Oe,function_node:x.function_node,index:ae}}else{let Oe=XS(P,ae),ut=q3e(aW(Oe,P));return ut==null||!$e.isExpression(ut)?{ok:!1,message:"can only evaluate expression, not statement"}:{ok:!0,index:ae,function_node:P,node:ut,initial_is_expand:Q}}},Tvt=(x,P,Q)=>{let ae=oEe(x,P);if(ae!=null)return ae;let Ee=Bte(x,x.current_module,P);if(Ee==null)throw new Error("not implemented");let Oe=Svt(x.selection_state,Ee,Q,P),ut={...x,selection_state:Oe,value_explorer:null};if(!Oe.ok)return{state:ut,effects:{type:"set_status",args:[Oe.message]}};let Rt=$3e(x,Lte(x.current_module,Ee,Oe.node));return rze(ut,Rt,!0)},SG=(x,P,Q,ae)=>{let Ee=x.snapshots.get_by_module_and_node(P,Q);if(Ee===null)return{has_snapshot:!0,node_snapshot:null};if(Ee===void 0)return{has_snapshot:!1};let Oe=Ee.get(ae);return{has_snapshot:Oe!==void 0,node_snapshot:Oe}},rEe=(x,P,Q,ae=void 0)=>{let Ee=x.snapshots.get_by_module_and_node(P,Q);if(Ee===null)return{has_snapshot:!0,node_snapshot:null};if(Ee===void 0)return{has_snapshot:!1};if(ae!=null){let Rt=Ee.get(ae);if(Rt!=null)return{has_snapshot:!0,node_snapshot:Rt};if(Rt===void 0)return{has_snapshot:!1}}let[Oe,ut]=[...Ee.entries()].sort((Rt,Gt)=>Rt[0]-Gt[0]).find(([Rt,Gt])=>Gt!=null);if(Oe==null)throw new Error("illegal state");return{has_snapshot:!0,node_snapshot:ut}},rze=(x,P)=>(x=lze(x,P),x.run_state.status==eu.reload_app_window?{...x,run_state:{...x.run_state,on_eval_modules_finished:Avt}}:x.value_explorer!=null?x:{state:x,effects:{type:"set_status",args:["expression was not reached during program execution"]}}),Avt=(x,P,Q)=>x.selection_state==null||x.value_explorer!=null?x:rze(x,Q,!1),Ivt=(x,P)=>x.files[P]==null?{state:x,effects:{type:"set_status",args:["File not found"]}}:{...x,current_module:P,selection_state:null,value_explorer:null},xvt=(x,P,Q=P)=>_L({...x,entrypoint:P,current_module:Q},!0),Rvt=(x,P)=>_L({...x,html_file:P},!0),Dvt=(x,P)=>({state:ize(PC(x,P),P.index),effects:{type:"set_focus"}}),Cvt=(x,P)=>({state:PC(x,P),effects:{type:"set_focus"}}),ize=(x,P)=>(x=Fte(x,P),x={...x,selection_state:null,value_explorer:null},oEe(x,P)!=null?x:Ote(x,kte(x),oze,!0)),wte=(x,P,Q,ae)=>{let Ee=ae.call_id;if(Ee==null)throw new Error("illegal state");let Oe=f0(x.calltree,Rt=>Rt.id==Ee);if(tEe(Q,Oe,ae.ok)||[$e.SyntaxKind.BreakStatement,$e.SyntaxKind.ContinueStatement].includes(Q.kind))return null;let ut;if(ae.ok)ut=void 0;else{let Rt=MC(Oe);if(Rt==null)return null;ut=Rt.error}return{call_id:Ee,index:Q.index,length:Q.length,result:{ok:ae.ok,value:ae.value,error:ut}}},iEe=(x,P)=>f0(x,Q=>MC(Q)?.ok==!1&&Q.code==P&&(!Jp(Q.code)||Q.fn.__type=="loop_iteration")),oze=(x,P)=>{function Q(){return{...x,run_state:{status:eu.reload_app_window,reload_counter:(x.run_state.reload_counter??0)+1,on_reload_app_window_finished:TG,on_eval_modules_finished:Pvt,breakpoint:P}}}let ae;if(P.selected_call_id!=null)ae=P.selected_call_id;else{if(P.parent_calltree_node!=null){let Rt=iEe(P.parent_calltree_node,P.function_node),Gt;if(Rt!=null?Gt=Rt.id:Gt=x.subcalls.get(P.parent_calltree_node.id)?.get(P.function_node),Gt===void 0)return Q();Gt!=null&&(ae=Gt)}if(ae==null){let Rt=iEe(x.calltree,P.function_node);if(Rt!=null)ae=Rt.id;else{let Gt;if(P.function_node==mL(x))ae=yy(x).id,Gt=x.footprints.get(ae)==null;else{let{has_snapshot:Vt,node_snapshot:cr}=rEe(x,P.module,P.function_node);if(Gt=!Vt,Vt)if(cr!=null)ae=cr.call_id;else return Mte({...x,value_explorer:null},P.function_node,null)}if(Gt&&P.parent_calltree_node!=null)throw new Error("illegal state: replay cannot be required here");if(Gt)return Q()}}}if(ae==null)throw new Error("illegal state: selected_call_id is null");let Ee;if(P.function_node==mL(x))Ee=x.footprints.get(ae)==null;else{let{has_snapshot:Rt}=SG(x,P.module,P.function_node,ae);Ee=!Rt}if(Ee)return P={...P,selected_call_id:ae},Q();let Oe,ut=P.selected_node;if(ut!=null){let{has_snapshot:Rt,node_snapshot:Gt}=SG(x,P.module,CC(P.selected_node)?P.function_node:P.selected_node,ae);if(Rt)Gt==null?Oe={is_jump_here:!0,index:ut.index,length:ut.length}:Oe=wte(x,P.function_node,ut,Gt);else return Q()}else Oe=null;return Mte({...x,value_explorer:Oe},P.function_node,ae)},aze=x=>{if(!x.value_explorer?.is_jump_here)return x;let P;return x.selection_state==null?P=Y3e(x):P=Lte(x.current_module,x.selection_state.function_node,x.selection_state.node),Ote(x,P,Nvt,!0)},Nvt=(x,P)=>{if(P.selected_node==null)throw new Error("illegal state");let Q=x;return x=sze(x,P,!0),Q==x?{state:x,effects:{type:"set_status",args:["code was not reached during program execution"]}}:x.run_state.status==eu.reload_app_window?{...x,run_state:{...x.run_state,on_eval_modules_finished:aze}}:x},Ote=(x,P,Q)=>{if(P.function_node.kind==$e.SyntaxKind.SourceFile&&P.function_node!=mL(x)||(x=Q(x,P),x.effects!=null)||x.run_state.status==eu.reload_app_window||x.value_explorer==null||x.value_explorer.is_jump_here||!x.value_explorer.result.ok)return x;let ae=P.selected_node;if(ae.kind!=$e.SyntaxKind.CallExpression)return x;let Ee=sEe(x.active_calltree_node,P.selected_node);if(Ee==null||!Ee.is_log)return x;let{has_snapshot:Oe,node_snapshot:ut}=SG(x,P.module,eEe(ae),x.value_explorer.call_id);if(!Oe)throw console.error({state:x,breakpoint:P,calltree_node:Ee,has_snapshot:Oe,node_snapshot:ut}),new Error("illegal state: no node snapshot for log fn args");if(!ut.ok)throw console.error({state:x,breakpoint:P,calltree_node:Ee,has_snapshot:Oe,node_snapshot:ut}),new Error("illegal state: node snapshot with ok: false for log fn args");let Rt={...x.value_explorer,result:{ok:!0,value:ut.value}};return{...x,value_explorer:Rt}},sze=(x,P,Q)=>{if(Q||P.selected_call_id==null){let ut=iEe(x.calltree,P.function_node);ut!=null&&(P={...P,selected_call_id:ut.id})}let ae=P.selected_node,{has_snapshot:Ee,node_snapshot:Oe}=ae==null?{has_snapshot:!0,node_snapshot:null}:rEe(x,P.module,CC(P.selected_node)?P.function_node:P.selected_node,P.selected_call_id);if(Ee){let ut=!1,Rt,Gt;if(Oe==null){if(Q)return x;if(Rt=null,P.function_node==mL(x))Gt=yy(x).id,ut=x.footprints.get(Gt)==null;else{let{has_snapshot:Vt,node_snapshot:cr}=rEe(x,P.module,P.function_node,P.selected_call_id);ut=!Vt,Gt=cr?.call_id}}else Gt=Oe.call_id,Rt=wte(x,P.function_node,ae,Oe);if(!ut)return Mte({...x,value_explorer:Rt},P.function_node,Gt)}return{...x,run_state:{status:eu.reload_app_window,reload_counter:(x.run_state.reload_counter??0)+1,on_reload_app_window_finished:TG,breakpoint:P}}},lze=(x,P)=>(x=sze(x,P,!1),x.run_state.status==eu.reload_app_window?{...x,run_state:{...x.run_state,on_eval_modules_finished:cze}}:x),cze=(x,P,Q)=>{let ae=kte(x);return Q.selected_call_id!=null&&ae.function_node==Q.function_node&&(ae={...Q,selected_call_id:Q.selected_call_id}),Ote(x,ae,lze,!0)},Pvt=x=>x.selection_state!=null||x.value_explorer!=null?x:Ote(x,kte(x),oze,!0),Mvt=(x,P,Q,ae)=>x.execution_id!=Q||(x={...x,snapshots:new dW,footprints:new Map,collected_footprints_functions:new Set,calltree:dte(yy(x),[...rI(x)??[],P]),logs:{...x.logs,logs:x.logs.logs.concat(X3e(ae,P))}},P.ok)?x:zte(x,P).state,dze=x=>_L({...x,io_trace:[],run_state:{...x.run_state,reload_counter:(x.run_state.reload_counter??0)+1}},!1),uze=(x,P)=>{let Q=Ee=>Ee.kind=="file"?[Ee]:Ee.children.map(Q).flat(),ae=Object.fromEntries([...Q(P.scratch_files),...P.local_files==null?[]:Q(P.local_files)].map(Ee=>[Ee.path,Ee.contents]));return{...x,project_dir:P,files:ae}},pze=(x,P)=>(x=uze(x,P),x=fze(x),_L(x,!0)),Lvt=(x,P,Q)=>{let ae={...x.project_dir,scratch_files:P};return x={...x,current_module:Q,entrypoint:Q},pze(x,ae)},fze=x=>{let P=x.project_dir.scratch_files.children[0];return{...x,current_module:x.files[x.current_module]==null?P.path:x.current_module,entrypoint:x.files[x.entrypoint]==null?P.path:x.entrypoint,html_file:x.files[x.html_file]==null?null:x.html_file}},mze=(x,P)=>{let Q={...x.project_dir,local_files:P};return pze(x,Q)},kvt=(x,P,Q)=>mze({...x,current_module:Q,entrypoint:Q},P),wvt=(x,P)=>({...x,storage:new EG,is_open_app_window:P}),Ovt=(x,P=0)=>(x=uze(x,x.project_dir),x=fze(x),_L({...x,execution_id:0,storage:new EG,io_trace:[],is_open_app_window:!1,cursor_position_by_file:{[x.current_module]:P}},!0)),Wte={get_initial_state:Ovt,parse_finished:Q3e,input:vvt,open_app_window:wvt,load_local_dir:mze,create_local_file:kvt,load_scratch_dir:Lvt,step_into:Evt,change_current_module:Ivt,change_entrypoint:xvt,change_html_file:Rvt,goto_location:Dvt,goto_problem:Cvt,move_cursor:ize,jump_here:aze,eval_selection:Tvt,reload_app_window_finished:yvt,external_imports_loaded:Z3e,eval_modules_finished:eze,on_deferred_call:Mvt,clear_io_trace:dze};var hL=x=>x.cursor_position_by_file[x.current_module]??0,Fte=(x,P)=>({...x,cursor_position_by_file:{...x.cursor_position_by_file,[x.current_module]:P}});var PC=(x,P)=>Fte({...x,current_module:P.module},P.index),Wvt=x=>x.error?.constructor==lW.constructor&&x.error?.message==lW.message,gL=x=>!x.ok||x.value?.[Symbol.toStringTag]=="Promise"&&x.value.status!=null&&!x.value.status.ok,MC=x=>x.value?.[Symbol.toStringTag]=="Promise"?x.value.status:x,vy=x=>x.toplevel?{module:x.module}:x.fn.__location&&JSON.parse(x.fn.__location),Fvt=x=>yy(x).module,mL=x=>x.parse_result.modules[Fvt(x)],Vte=x=>!x.toplevel&&!x.fn.is_hosted,zvt=(x,P)=>x?.[P.module]?.[P.index??-1],Bvt=(x,P,Q)=>({...x,[P.module]:{...x?.[P.module],[P.index??-1]:Q}}),aEe=(x,P)=>{let Q=[{node:x,child_index:0}];for(;;){if(Q.length==0)return null;let ae=Q.at(-1);if(ae.node.id==P)return Q.map(Ee=>Ee.node);if(ae.node.children==null||ae.child_index>=ae.node.children.length){Q.pop();continue}Q.push({node:ae.node.children[ae.child_index],child_index:0}),ae.child_index++}},uW=(x,P,Q=x.current_calltree_node)=>{let ae=x.deepest_calltree_node_id;return ae==null?ae=Q?.id:aEe(x.calltree,ae).includes(Q)||(ae=Q.id),{...x,active_calltree_node:P,current_calltree_node:Q,deepest_calltree_node_id:ae}},lEe=(x,P,Q=P)=>{let ae=vy(P);if(zvt(x.colored_frames,ae)!=P.id){x={...x,colored_frames:Bvt(x.colored_frames,ae,P.id)};let Oe=x.frames.get(P.id);if(Oe==null){let ut=x.footprints.get(P.id);if(ut==null)throw new Error("illegal state");if(P.code!=null&&Jp(P.code)&&P.fn?.__type!="loop_iteration")throw new Error("illegal state");Oe=nEe(P.code,P,ut);let Rt=v3e(P.code,Oe);x.frames.set(P.id,Oe),x.frame_coloring.set(P.id,Rt)}}return uW(x,P,Q)},_ze=(x,P)=>Gte(x,P)[1],Gte=(x,P)=>{if(x.id!=P.id)throw new Error("illegal state: merge_calltree");if(x.callsite_location==null&&P.callsite_location!=null)return[!0,Gte({...x,callsite_location:P.callsite_location},P)[1]];if(x.snapshot==null&&P.snapshot!=null)return[!0,Gte({...x,snapshot:P.snapshot},P)[1]];if(x.has_more_children){if(P.has_more_children)return[!1,x];if(x.id!=P.id)throw new Error("illegal state");return[!0,P]}if(x.children==null)return[!1,x];if(P.has_more_children)return[!1,x];if(x.children.length!=(P.children?.length??0))throw new Error("illegal state");let[Q,ae]=t3e((Ee,Oe,ut)=>{let[Rt,Gt]=Gte(Oe,P.children[ut]);return[Ee||Rt,Gt]},!1,x.children);return Q?[!0,{...x,children:ae}]:[!1,x]},sEe=(x,P)=>(x.children??[]).find(Q=>{if(Q.callsite_location==null)return!1;let ae=JSON.parse(Q.callsite_location);return ae.index==P.index&&ae.length==P.length}),yze=(x,P)=>{let Q=x.callsite_location;if(Q==null)return null;Q=JSON.parse(Q);let ae=Ate(P.code,Ee=>Ee.index==Q.index&&Ee.length==Q.length&&(Ee.kind==$e.SyntaxKind.CallExpression||Ee.kind==$e.SyntaxKind.NewExpression||Jp(Ee)));if(ae==null)throw new Error("illegal state");return ae},gze=(x,P,Q)=>{let{has_snapshot:ae,node_snapshot:Ee}=SG(x,vy(x.current_calltree_node).module,P,Q);if(ae){let Oe;return Ee==null?Oe=null:Oe=wte(x,x.current_calltree_node.code,P,Ee),{should_replay:!1,value_explorer:Oe}}else return{should_replay:!0}},$S=(x,P,Q=Oe=>Oe,ae=!1,Ee=!1)=>{function Oe(Ar){if(Ee)throw new Error("illegal state");let Uo=Vt.code;return{...x,value_explorer:null,run_state:{status:eu.reload_app_window,on_reload_app_window_finished:TG,on_eval_modules_finished:ut,breakpoint:{module:vy(Vt).module,function_node:Uo,selected_call_id:Vt.id,current_calltree_node_id:P.id,selected_node:Ar}}}}function ut(Ar,Uo,Sa){if(Sa.current_calltree_node_id!=Ar.current_calltree_node.id)return Ar;let ya=f0(Ar.calltree,es=>es.id==P.id);return $S(Ar,ya,Q,ae,!0)}let[Rt]=IG(x.calltree,P);if(!P.toplevel&&!P.fn.is_hosted&&!Rt.toplevel&&!Rt.fn.is_hosted)return Q({...uW(x,null,P),value_explorer:null,selection_state:null});let Gt;P.toplevel||P.fn.__type=="loop_iteration"?Gt=!0:P.code!=null&&Jp(P.code)?Gt=!1:Rt.id=="deferred_calls"?Gt=!0:Vte(P)?Gt=!1:Vte(Rt)?Gt=!0:Gt=x.calltree_node_is_expanded[P.id];let Vt=Gt?P:Rt;x=uW(x,Vt,P);let cr,ci,Jr;if(P.toplevel){if(x.footprints.get(yy(x).id)==null)return Oe();ci=null,Jr=null,cr=vy(Vt)}else if(P.fn.__type=="loop_iteration"){let Ar=vy(P).module,Uo=hL(x),Sa=!1;if(x.current_module==Ar&&fL(P.code,Uo)&&Uo!=P.code.index)cr={module:Ar,index:Uo};else{let tu=P.code,Dd=tu.kind;if(Dd==$e.SyntaxKind.WhileStatement||Dd==$e.SyntaxKind.DoStatement||Dd==$e.SyntaxKind.ForStatement){let yv=tu.statement.kind==$e.SyntaxKind.Block?tu.statement.statements.length==0?Dd==$e.SyntaxKind.ForStatement?tu.initializer:tu.expression:tu.statement.statements[0]:tu.statement;cr={module:Ar,index:yv.index}}else cr={module:Ar,index:tu.initializer.index},Sa=!0}let ya=x.selection_state?.node,es=ya!=null&&!(ya==P.code.expression&&(P.code.kind==$e.SyntaxKind.ForOfStatement||P.code.kind==$e.SyntaxKind.ForInStatement))&&ya!=P.code.initializer&&fL(P.code,ya.index),bl;if((P.code.kind==$e.SyntaxKind.ForOfStatement||P.code.kind==$e.SyntaxKind.ForInStatement)&&(ya==P.code.initializer||Sa)?(Jr={node:P.code.initializer},bl=P.code):es?(Jr=x.selection_state,bl=x.selection_state.node):(bl=Pte(P.code,cr.index),Jr=null),bl==null)ci=null,Jr=null;else{let tu;if({value_explorer:ci,should_replay:tu}=gze(x,bl,P.id),tu)return Oe(bl)}}else if(P.code!=null&&Jp(P.code)){let Ar=P.code.kind;if(Ar==$e.SyntaxKind.WhileStatement||Ar==$e.SyntaxKind.DoStatement)ci=null,Jr=null;else{let Uo;Ar==$e.SyntaxKind.ForStatement?Uo=P.code.initializer:Uo=P.code.expression,Jr={node:Uo};let Sa;if({value_explorer:ci,should_replay:Sa}=gze(x,Uo,Hbe(x.calltree,P).id),Sa)return Oe(Uo)}if(cr={module:vy(P).module,index:P.code.index},P.has_more_children)return Oe()}else{if(P.snapshot==null)return Oe();let Ar;if(Gt){cr=vy(P),Jr=null;let Sa=x.snapshots.get_by_module_and_node(vy(Vt).module,Vt.code)?.get(Vt.id);if(Sa==null)return Oe();Sa.ok?Ar=Sa.value:Ar=P.snapshot.args}else{let Sa=yze(P,Vt);if(Sa==null)return Oe();cr={module:vy(Vt).module,index:Sa.index},Ar=P.snapshot.args,Jr={node:Sa}}if(Ar==null)throw new Error("illegal state");let Uo=P.ok?{args:Ar,return_value:P.snapshot.value}:{args:Ar,throws:P.snapshot.error};P.context!=null&&(Uo={...Uo,context_before:P.snapshot.context_before,context_after:P.snapshot.context_after}),ci={call_id:P.id,index:cr.index,result:{ok:!0,is_calltree_node_explorer:!0,value:Uo}}}return x=ae?x:P.toplevel?{...x,current_module:cr.module}:PC(x,cr),x.footprints.get(Vt.id)==null?Oe():Q({...lEe(x,Vt,P),value_explorer:ci,selection_state:Jr})},Gvt=x=>$S(x,x.current_calltree_node,void 0,!0),IG=(x,P)=>{let Q=Ee=>Ee.id==P.id?[]:Ee.children==null?null:Ee.children.reduce((Oe,ut)=>{if(Oe!=null)return Oe;let Rt=Q(ut);return Rt==null?null:[...Rt,Ee]},null),ae=Q(x);if(ae==null)throw new Error("illegal state");return ae},yL=x=>Vte(x)||Jp(x.code)?x.children!=null&&x.children.length!=0||x.has_more_children:x.toplevel?x.children!=null&&x.children.length!=0:!0,Vvt=x=>{let P=x.current_calltree_node,Q;if(yL(P)&&x.calltree_node_is_expanded[P.id]&&P.children!=null)Q=P.children[0];else{let ae=(Ee,Oe)=>{if(Ee.id=="calltree")return null;let[ut,...Rt]=Oe,Gt=ut.children.findIndex(cr=>cr==Ee),Vt=ut.children[Gt+1];return Vt??ae(ut,Rt)};Q=ae(P,IG(x.calltree,P))}return Q?.id=="deferred_calls"&&(Q.children==null?Q=null:Q=Q.children[0]),Q==null?x:$S(x,Q)},jvt=x=>{let P=x.current_calltree_node;if(P.toplevel)return x;let[Q]=IG(x.calltree,P),ae=Q.children.findIndex(Rt=>Rt==P),Ee=Q.children[ae-1],Oe=Rt=>!yL(Rt)||!x.calltree_node_is_expanded[Rt.id]||Rt.children==null?Rt:Oe(Rt.children[Rt.children.length-1]),ut;return Ee==null?ut=Q.id=="deferred_calls"?Oe(yy(x)):Q:ut=Oe(Ee),$S(x,ut)},Uvt=x=>{let P=x.current_calltree_node,Q=x.calltree_node_is_expanded[P.id];if(!yL(P)||!Q){let[ae]=IG(x.calltree,P);return ae.id=="calltree"||ae.id=="deferred_calls"?x:$S(x,ae)}else return AG(x)},Hvt=x=>{let P=x.current_calltree_node;return yL(P)?x.calltree_node_is_expanded[P.id]?P.children!=null?$S(x,P.children[0]):x:AG(x):x},AG=(x,P,Q=x.current_calltree_node)=>{let ae=Q.id,Ee=x.calltree_node_is_expanded[ae],Oe=P??!Ee,ut={...x,calltree_node_is_expanded:{...x.calltree_node_is_expanded,[ae]:Oe}};return $S(ut,Q)},Kvt=(x,P)=>{let Q=f0(x.calltree,ae=>ae.id==P);return $S(x,Q)},Jvt=(x,P)=>{let Q=f0(x.calltree,ae=>ae.id==P);return yL(Q)?AG(x,void 0,Q):$S(x,Q)},LC=(x,P)=>x.calltree_node_is_expanded?.[P.id]?x:{...x,calltree_node_is_expanded:{...x.calltree_node_is_expanded,...Object.fromEntries(IG(x.calltree,P).map(Q=>[Q.id,!0])),[P.id]:!0}},zte=(x,P)=>{if(P??=yy(x),P.ok||Wvt(P))return{state:LC(x,P),node:P};{let Q=f0(P,ae=>!MC(ae).ok&&(ae.children==null||ae.children.find(Ee=>!MC(Ee).ok)==null));return{state:LC(x,Q),node:Q}}},hze=x=>zte(x).state,Bte=(x,P,Q)=>{let ae=x.parse_result.modules[P];if(ae==null)return null;if(fL(ae,Q)){let Ee=XS(ae,Q),Oe=$e.forEachAncestor(Ee,ut=>{let Rt=Ste(ut);if(Rt!=null)return Rt;if(lp(ut)||Jp(ut))return ut});return Oe??ae}else return ae},Mte=(x,P,Q)=>{if(P==mL(x)){let Ee=yy(x);return lEe(LC(x,Ee),Ee)}if(P.kind==$e.SyntaxKind.SourceFile)return x;if(Q==null)return uW(x,null);let ae=f0(x.calltree,Ee=>Ee.id==Q);if(ae==null)throw new Error("illegal state");return lEe(LC(x,ae),ae)},qvt=x=>{if(x.current_calltree_node.toplevel)return{state:x};if(x.current_calltree_node.code!=null&&Jp(x.current_calltree_node.code))return{state:x};let P=vy(x.active_calltree_node),Q;if(x.current_calltree_node==x.active_calltree_node){let ae=x.frames.get(x.active_calltree_node.id),Ee=x.active_calltree_node.code;if(x.active_calltree_node.ok)if(Ee.body.kind==$e.SyntaxKind.Block){let Oe=Ate(Ee,ut=>ut.kind==$e.SyntaxKind.ReturnStatement&&ae.get(ut)?.ok);if(Oe==null)return{state:PC(x,{module:P.module,index:Ee.body.index}),effects:{type:"set_focus"}};Q=Oe.expression}else Q=Ee.body;else Q=Kbe(Ee,ae)}else{let ae=x.current_calltree_node.callsite_location;ae=JSON.parse(ae),Q=Ate(x.active_calltree_node.code,Ee=>Ee.index==ae.index&&Ee.length==ae.length)}return{state:{...PC(x,{module:P.module,index:Q.index}),selection_state:{node:Q},value_explorer:{call_id:x.current_calltree_node.id,index:Q.index,length:Q.length,result:x.current_calltree_node.snapshot}},effects:{type:"set_focus"}}},Xvt=(x,P=!0)=>{if(x.current_calltree_node.toplevel)return{state:x};if(x.current_calltree_node.code!=null&&Jp(x.current_calltree_node.code))return{state:x};let Q=vy(x.active_calltree_node),ae,Ee;if(x.current_calltree_node==x.active_calltree_node){if(x.active_calltree_node.toplevel)return{state:x};let Oe=x.active_calltree_node.code;ae=Kb(Oe)[0];let ut=x.snapshots.get_by_module_and_node(vy(x.active_calltree_node).module,Oe)?.get(x.active_calltree_node.id);if(ut==null)return{state:x};Ee=ut.ok?ut:{ok:!1,error:x.active_calltree_node.error}}else{let Oe=yze(x.current_calltree_node,x.active_calltree_node);if(Oe==null)return{state:x};Ee={ok:!0,value:x.current_calltree_node.snapshot.args},ae=[...Oe.arguments];let ut=Oe.getChildren();ae.index=ut.find(Rt=>Rt.kind==$e.SyntaxKind.OpenParenToken).pos,ae.length=ut.find(Rt=>Rt.kind==$e.SyntaxKind.CloseParenToken).pos-ae.index+1}return{state:{...PC(x,{module:Q.module,index:ae.index}),selection_state:{node:ae},value_explorer:{call_id:x.current_calltree_node.id,index:ae.index,length:ae.length,result:Ee}},effects:P?{type:"set_focus"}:null}},Yvt=x=>{let P=[x.current_calltree_node,x.active_calltree_node,yy(x)].find(ae=>gL(ae));if(P==null)return{state:x,effects:[{type:"set_status",args:["no error found"]}]};let Q=f0(P,ae=>gL(ae)&&(ae.children==null||ae.children.every(Ee=>!gL(Ee)||Vte(Ee)&&Ee.children==null)));if(Q==null)throw new Error("illegal state: error origin not found");return $S(LC(x,Q),Q,ae=>{let Ee=cte(ae),Oe=Kbe(ae.active_calltree_node.code,Ee);return{state:PC(ae,{module:vy(Q).module,index:Oe.index}),effects:{type:"set_focus"}}})},$vt=(x,P)=>{if(x.logs.logs.length==0)return{state:x};let Q=Math.max(Math.min(x.logs.log_position==null?0:x.logs.log_position+P,x.logs.logs.length-1),0);return vze(x,Q)},vze=(x,P)=>{x={...x,logs:{...x.logs,log_position:P}};let Q=f0(x.calltree,ae=>ae.id==x.logs.logs[P].id);return $S(LC(x,Q),Q,ae=>ae.active_calltree_node==null?ae:{...ae,value_explorer:{...ae.value_explorer,result:{...ae.value_explorer.result,is_calltree_node_explorer:!1,value:ae.value_explorer.result.value.args}}})};Wte.calltree={arrow_down:Vvt,arrow_up:jvt,arrow_left:Uvt,arrow_right:Hvt,select_node:Kvt,select_and_toggle_expanded:Jvt,select_return_value:qvt,select_arguments:Xvt,select_error:Yvt,navigate_logs_position:vze,navigate_logs_increment:$vt,show_value_explorer:Gvt};var jte=class{constructor(P,Q){this.ui=P,this.container=Q,this.container.addEventListener("keydown",ae=>{ae.key=="r"&&(ae.ctrlKey||ae.metaKey)||ae.preventDefault(),ae.key=="Escape"&&this.ui.editor.focus(),ae.key=="F1"&&this.ui.editor.focus_value_explorer(this.container),ae.key=="F2"&&this.ui.editor.focus(),ae.key=="a"&&Os("calltree.select_arguments"),ae.key=="e"&&Os("calltree.select_error"),(ae.key=="r"||ae.key=="Enter")&&Os("calltree.select_return_value"),(ae.key=="ArrowDown"||ae.key=="j")&&Os("calltree.arrow_down"),(ae.key=="ArrowUp"||ae.key=="k")&&Os("calltree.arrow_up"),(ae.key=="ArrowLeft"||ae.key=="h")&&Os("calltree.arrow_left"),(ae.key=="ArrowRight"||ae.key=="l")&&Os("calltree.arrow_right")})}on_click_node(P,Q){P.target.classList.contains("expand_icon")?Os("calltree.select_and_toggle_expanded",Q):Os("calltree.select_node",Q)}clear_calltree(){this.container.innerHTML="",this.node_to_el=new Map,this.state=null}render_loop(P){let{ok:Q,error:ae}=MC(P),Ee;P.code.kind==$e.SyntaxKind.WhileStatement&&(Ee="while"),P.code.kind==$e.SyntaxKind.DoStatement&&(Ee="do while"),(P.code.kind==$e.SyntaxKind.ForInStatement||P.code.kind==$e.SyntaxKind.ForOfStatement||P.code.kind==$e.SyntaxKind.ForStatement)&&(Ee="for");let Oe=P.has_more_children?P.children_count:P.children?.length??0;return Mr("span","call_header "+(Q?"":"error"),Ee+" loop("+Oe+")",Q?null:[": ",Ag(ae)])}render_loop_iteration(P,Q){let{ok:ae,error:Ee}=MC(P),Oe=Q.children.indexOf(P),ut=null;(P.code.kind==$e.SyntaxKind.ForOfStatement||P.code.kind==$e.SyntaxKind.ForInStatement)&&(ut=P.code.initializer.getText()+" = "+Ag(P.args[0]));let Rt=Tte(P.code);return Rt!=null&&(ut=Rt.getText()+" = "+Ag(P.args[0])),Mr("span","call_header "+(ae?"":"error"),Mr("span","loop_step","step "+Oe,(ut!=null||!ae)&&":"),ut,ae?"":Mr("span","call_header error",ut!=null&&":\xA0",Ag(Ee)))}render_node(P,Q){let ae=this.state.calltree_node_is_expanded[P.id],Ee=Mr("div","callnode",Mr("div",{class:"call_el",click:Oe=>this.on_click_node(Oe,P.id)},yL(P)?ae&&P.has_more_children?Mr("div","spinner"):Mr("span","expand_icon",ae?"\u25BC":"\u25B6"):Mr("span","expand_icon_placeholder","\xA0"),P.toplevel?Mr("span",P.ok?"":"call_header error",Mr("i","","toplevel: "+hv(P.module)),P.ok?"":Mr("span","",":\xA0",Ag(P.error))):P.fn.__type=="loop_iteration"?this.render_loop_iteration(P,Q):P.code!=null&&Jp(P.code)?this.render_loop(P):Mr("span","call_header "+(gL(P)?"error":"")+(P.fn.is_hosted?"":" native"),P.is_new?"new ":"",P.context==null||P.is_new?"":Mr("span","",typeof P.context=="object"?P.context.constructor?.name||"":Ag(P.context),"."),P.fn.name==""?"anonymous":P.fn.name,"(",...dL(P.args.map(Oe=>Ag(Oe))),")",": ",P.ok?Ag(P.value):Ag(P.error))),P.children==null||!ae?null:P.children.map(Oe=>this.render_node(Oe,P)));return this.node_to_el.set(P.id,Ee),Ee.is_expanded=ae,Ee}render_active(P,Q){let ae=this.node_to_el.get(P.id).getElementsByClassName("call_el")[0];Q?ae.classList.add("active"):ae.classList.remove("active")}reveal_current_calltree_node(){tW(this.container,this.node_to_el.get(this.state.current_calltree_node.id).getElementsByClassName("call_el")[0])}render_select_node(P,Q){if(P!=null&&this.render_active(P.current_calltree_node,!1),this.state=Q,this.render_active(this.state.current_calltree_node,!0),P?.current_calltree_node!=Q.current_calltree_node){let ae=this.container.scrollLeft;this.reveal_current_calltree_node(),this.container.scrollLeft=ae}}render_expand_node(P,Q){this.state=Q,this.do_render_expand_node(P.calltree_node_is_expanded,Q.calltree_node_is_expanded,yy(P),yy(Q));let ae=rI(P),Ee=rI(Q);if(ae!=null){for(let Oe=0;Oethis.render_node(Q))))))}};var Ute=class{constructor(P,Q){this.el=Q,this.ui=P,this.el.addEventListener("keydown",ae=>{ae.key=="Escape"&&this.ui.editor.focus(),ae.key=="Enter"&&this.ui.editor.focus(),ae.key=="F1"&&this.ui.editor.focus_value_explorer(this.el),ae.key=="F3"&&this.ui.editor.focus(),(ae.key=="ArrowDown"||ae.key=="j")&&(ae.preventDefault(),Os("calltree.navigate_logs_increment",1)),(ae.key=="ArrowUp"||ae.key=="k")&&(ae.preventDefault(),Os("calltree.navigate_logs_increment",-1))})}rerender_logs(P,Q){this.el.innerHTML="",this.render_logs(P,null,Q)}render_logs(P,Q,ae){for(let Ee=Q==null?0:Q.logs.length;EeOs("calltree.navigate_logs_position",Ee)},Mr("a",{href:"javascript: void(0)"},ut+": "+(Oe.toplevel?"toplevel":"fn "+(Oe.parent_name==""?"anonymous":Oe.parent_name))+":")," ",...dL(Oe.args.map(Gt=>Ag(Gt)))))}if(Q?.log_position!=ae.log_position&&(Q?.logs==ae.logs&&Q?.log_position!=null&&this.el.children[Q.log_position].classList.remove("active"),ae.log_position!=null)){let Ee=this.el.children[ae.log_position];Ee.classList.add("active"),tW(this.el,Ee)}}};var Hte=class{constructor(P,Q){this.el=Q,this.ui=P,this.el.addEventListener("keydown",ae=>{ae.key=="Escape"&&this.ui.editor.focus(),ae.key=="F4"&&this.ui.editor.focus()})}clear(){this.el.innerHTML="",this.is_rendered=!1,this.io_trace_length=0}render_io_trace(P,Q){if(Q&&(this.is_rendered=!1),this.is_rendered)return;this.is_rendered=!0,this.el.innerHTML="",this.io_trace_length=P.io_trace.length;let ae=P.io_trace,Ee=P.rt_cxt.io_trace_index??ae.length;for(let Oe=0;Oe ")));else if(ut.type=="call")this.el.appendChild(Mr("div","call_header "+(gL(ut)?"error ":"")+(Rt?"":"native "),ut.name,"(",...dL(ut.args.map(Gt=>Ag(Gt))),"): ",ut.ok?Ag(ut.value):Ag(ut.error)));else throw new Error("unknown item type")}}};var Qvt="leporello-js",bze=`https://firebasestorage.googleapis.com/v0/b/${Qvt}.appspot.com/o/`;async function Zvt(x){let P=new TextEncoder().encode(x),Q=await crypto.subtle.digest("SHA-256",P);return Array.from(new Uint8Array(Q)).map(Oe=>Oe.toString(16).padStart(2,"0")).join("")}async function Eze(x,P){let Q=(await Zvt(P)).slice(0,40),ae=new Blob([P],{type:"text/plain"}),Ee=new FormData;Ee.append("file",ae);let Oe=await fetch(bze+Q,{method:"POST",body:Ee});if(!Oe.ok){let Gt=(await Oe.json())?.error?.message;throw new Error("Failed to upload: "+Gt)}let ut=new URL(window.location);return ut.searchParams.set("share_id",Q),ut.searchParams.set("share_name",x),ut.toString()}async function ebt(x){let P=await fetch(bze+x+"?alt=media");if(!P.ok){let ae=(await P.json())?.error?.message;throw new Error("Failed to fetch: "+ae)}return P.text()}async function Sze(){let x=new URLSearchParams(window.location.search),P=x.get("share_id");if(P==null)return null;let Q=x.get("share_name")??"";Q.trim()==""&&(Q="Share");let ae=new URL(window.location);ae.searchParams.delete("share_id"),ae.searchParams.delete("share_name"),history.replaceState(null,null,ae.href);try{let Ee=await ebt(P);return{name:Q,contents:Ee}}catch(Ee){return alert(Ee.message),null}}var Kte=class{constructor(){let Q=gv().current_module.split("/").at(-1);this.el=Mr("dialog","share_dialog",this.upload_begin=Mr("p","",Mr("p","","Uploads your file to the cloud so you can share it with others."),Mr("ul","",Mr("li","","Please ensure that no personal data or confidential information is included."),Mr("li","","Avoid including copyrighted materials.")),Mr("span",{style:"color: red"},"Caution: Once shared, files cannot be deleted."),Mr("div","share_name",Mr("label","","Public file name"),this.share_name=Mr("input",{type:"text",value:Q})),this.upload_buttons=Mr("p",{style:"text-align: center"},Mr("button",{class:"upload_button",click:()=>this.upload()},"Upload"),this.cancel_button=Mr("button",{style:"margin-left: 1em",click:()=>this.el.close()},"Cancel"))),this.uploading=Mr("span",{style:"display: none"},"Uploading..."),this.upload_finish=Mr("p",{style:"display: none"},Mr("p","",Mr("p",{style:` text-align: center; margin-bottom: 1em; font-size: 1.2em - `},"Upload successful"),this.url_share=Wr("input",{type:"text",readonly:!0,style:"min-width: 30em"}),this.copy_button=Wr("button",{click:()=>this.copy(),style:"margin-left: 1em"},"Copy URL")),this.close_button=Wr("button",{style:"display: block; margin: auto",click:()=>this.el.close()},"Close"))),this.share_name.select(),this.el.addEventListener("close",()=>{this.el.remove()})}async upload(){this.uploading.style.display="",this.upload_begin.style.display="none";try{let M=gv(),ee=await mze(this.share_name.value,M.files[M.current_module]);this.url_share.value=ee,this.upload_finish.style.display=""}catch(M){alert(M.message),this.upload_begin.style.display=""}finally{this.uploading.style.display="none"}}copy(){this.url_share.select(),document.execCommand("copy")}};var Vte=class{constructor(M,ee){this.open_app_window=this.open_app_window.bind(this),this.files=new yte(this,ee),this.tabs={},this.debugger={},M.appendChild(this.root=Wr("div","root",this.editor_container=Wr("div","editor_container"),Wr("div","bottom",this.debugger_container=Wr("div","debugger",this.debugger_loaded=Wr("div","debugger_wrapper",Wr("div","tabs",this.tabs.calltree=Wr("div","tab",Wr("a",{click:()=>this.set_active_tab("calltree"),href:"javascript: void(0)"},"Call tree (F2)")),this.tabs.logs=Wr("div","tab",Wr("a",{click:()=>this.set_active_tab("logs"),href:"javascript: void(0)"},"Logs (F3)")),this.tabs.io_trace=Wr("div","tab",Wr("a",{click:()=>this.set_active_tab("io_trace"),href:"javascript: void(0)"},"IO trace (F4)"))),this.debugger.calltree=Wr("div",{class:"tab_content",tabindex:0}),this.debugger.logs=Wr("div",{class:"tab_content logs",tabindex:0}),this.debugger.io_trace=Wr("div",{class:"tab_content io_trace",tabindex:0})),this.debugger_loading=Wr("div","debugger_wrapper",this.debugger_loading_message=Wr("div"))),this.problems_container=Wr("div",{class:"problems_container",tabindex:0},this.problems=Wr("div"))),this.files.el,this.statusbar=Wr("div","statusbar",this.loading_spinner=Wr("div","spinner"),this.status=Wr("div","status"),this.current_module=Wr("div","current_module"),Wr("a",{class:"statusbar_action first",href:"javascript: void(0)",click:()=>this.clear_io_trace()},"Clear IO trace (F6)"),Wr("a",{class:"statusbar_action open_app_window_button",href:"javascript: void(0)",click:this.open_app_window},"(Re)open app window (F7)",this.open_app_window_tooltip=Wr("div",{class:"open_app_window_tooltip"},"Click here to open app window")),Wr("div","options",Wr("label",{for:"standard"},Wr("input",{id:"standard",type:"radio",name:"keyboard",checked:localStorage.keyboard=="standard"||localStorage.keyboard==null,change:()=>{this.editor.set_keyboard_handler("standard")}}),"Standard"),Wr("label",{for:"vim"},Wr("input",{id:"vim",type:"radio",name:"keyboard",checked:localStorage.keyboard=="vim",change:()=>{this.editor.set_keyboard_handler("vim")}}),"VIM")),Wr("div","options use_ts",Wr("label",{for:"js"},Wr("input",{id:"js",type:"radio",name:"use_ts",change:this.files.change_use_ts.bind(this.files,!1)}),"JavaScript"),Wr("label",{for:"ts"},Wr("input",{id:"ts",type:"radio",name:"use_ts",change:this.files.change_use_ts.bind(this.files,!0)}),"TypeScript")),Wr("a",{class:"show_help",href:"javascript: void(0)",click:()=>this.help_dialog.showModal()},"Help"),Wr("a",{class:"github",href:"https://leporello.tech",target:"__blank"},"Website"),Wr("button",{class:"statusbar_button",click:()=>this.render_share_dialog()},"Share"),Wr("button",{class:"statusbar_button",click:()=>this.files.el.showModal()},"Files"),this.help_dialog=this.render_help()))),window.addEventListener("keydown",()=>this.clear_status(),!0),window.addEventListener("click",()=>this.clear_status(),!0),window.addEventListener("keydown",Ie=>{Ie.key=="F2"&&this.set_active_tab("calltree"),Ie.key=="F3"&&this.set_active_tab("logs"),Ie.key=="F4"&&this.set_active_tab("io_trace"),Ie.key=="F6"&&this.clear_io_trace(),Ie.key=="F7"&&this.open_app_window()}),this.editor=new hte(this,this.editor_container);let le=document.querySelector(":root");le.style.setProperty("--code-font-family",this.editor.getFontFamily()),le.style.setProperty("--code-line-height",this.editor.getLineHeight()),this.calltree=new Fte(this,this.debugger.calltree),this.logs=new zte(this,this.debugger.logs),this.io_trace=new Bte(this,this.debugger.io_trace),this.render_current_module(ee.current_module),this.set_active_tab("calltree",!0),M.addEventListener("focusin",Ie=>{let Oe;this.editor_container.contains(document.activeElement)?this.editor.has_value_explorer()?Oe=!this.debugger_container.contains(this.editor.value_explorer.return_to):Oe=!0:Oe=!1,this.prev_is_focus_in_editor!=Oe&&(this.prev_is_focus_in_editor=Oe,Ite(gv(),Oe))})}set_active_tab(M,ee=!1){this.active_tab=M,Object.values(this.tabs).forEach(le=>le.classList.remove("active")),this.tabs[M].classList.add("active"),Object.values(this.debugger).forEach(le=>le.style.display="none"),this.debugger[M].style.display="block",M=="io_trace"&&this.io_trace.render_io_trace(gv(),!1),ee||this.debugger[M].focus(),M=="calltree"&&!ee&&(Ys("calltree.show_value_explorer"),this.calltree.reveal_current_calltree_node())}clear_io_trace(){Ys("clear_io_trace")}open_app_window(){this.toggle_open_app_window_tooltip(!1),localStorage.onboarding_open_app_window=!0,x4e(gv())}render_debugger_loading(M){this.debugger_container.style="",this.problems_container.style="display: none",this.debugger_loaded.style="display: none",this.debugger_loading.style="",this.debugger_loading_message.innerText=M.run_state.status==Ju.load_external_imports?"Loading external modules...":"Executing code..."}render_debugger(M){this.debugger_container.style="",this.problems_container.style="display: none",this.debugger_loading.style="display: none",this.debugger_loaded.style="",this.calltree.render_calltree(M),this.logs.render_logs(M,null,M.logs)}render_io_trace(M){this.active_tab=="io_trace"?this.io_trace.render_io_trace(M,!0):this.io_trace.clear()}render_problems(M){this.debugger_container.style="display: none",this.problems_container.style="",this.problems.innerHTML="",M.forEach(ee=>{let Ie=this.editor.get_session(ee.module).getPositionAt(ee.index),Oe=hv(ee.module);this.problems.appendChild(Wr("div","problem",Wr("a",{href:"javascript:void(0)",click:()=>Ys("goto_problem",ee)},`${Oe}:${Ie.lineNumber}:${Ie.column} - ${ee.message}`)))})}set_status(M){for(let ee of this.statusbar.children)ee.classList.toggle("display-none",!0);this.status.classList.toggle("display-none",!1),this.status.innerText=M}clear_status(){for(let M of this.statusbar.children)M.classList.toggle("display-none",!1);this.status.innerText="",this.status.classList.toggle("display-none",!0)}render_current_module(M){this.clear_status(),this.current_module.innerText=hv(M);let ee=this.root.querySelector(".use_ts");if(M.startsWith("scratch/")){ee.style.visibility="visible";let le=/\.(js|jsx)$/.test(M);this.root.querySelectorAll("[name=use_ts]").forEach(Ie=>{Ie.checked=Ie.id=="js"?le:!le})}else ee.style.visibility="hidden"}render_help(){let M=navigator.platform.toLowerCase().includes("mac")?"Cmd":"Ctrl",ee=[["Focus value inspector","F1"],["Navigate value inspector","\u2190 \u2192 \u2191 \u2193 or hjkl"],["Leave value inspector","F1 or Esc"],["Focus call tree view","F2"],["Navigate call tree view","\u2190 \u2192 \u2191 \u2193 or hjkl"],["Leave call tree view","F2 or Esc"],["Focus console logs","F3"],["Navigate console logs","\u2191 \u2193 or jk"],["Leave console logs","F3 or Esc"],["Focus IO trace","F4"],["Leave IO trace","F4 or Esc"],["Go to definition",M+"-F12","gd"],["Expand selection to eval expression","Ctrl-\u2193 or Ctrl-j"],["Collapse selection","Ctrl-\u2191 or Ctrl-k"],["Step into call","F11"],["Step out of call","Shift-F11"],["Jump to return statement (in call tree view)","Enter"],["Jump to function arguments (in call tree view)","a"],["Jump to error origin (in call tree view)","e"],["Clear IO trace","F6"],["(Re)open run window (F7)","F7"]];return Wr("dialog","help_dialog",Wr("table","help",Wr("thead","",Wr("th","","Action"),Wr("th","key","Standard"),Wr("th","key","VIM")),Wr("tbody","",ee.map(([le,Ie,Oe])=>Wr("tr","",Wr("td","",le),Wr("td",Oe==null?{class:"key spanned",colspan:2}:{class:"key"},Ie),Oe==null?null:Wr("td","key",Oe))))),Wr("form",{method:"dialog"},Wr("button",null,"Close")))}render_share_dialog(){let M=new Gte().el;this.root.appendChild(M),M.showModal()}toggle_open_app_window_tooltip(M){this.open_app_window_tooltip.classList.toggle("on",M)}};var Hvt=R=>new globalThis.app_window.Function("url",` + `},"Upload successful"),this.url_share=Mr("input",{type:"text",readonly:!0,style:"min-width: 30em"}),this.copy_button=Mr("button",{click:()=>this.copy(),style:"margin-left: 1em"},"Copy URL")),this.close_button=Mr("button",{style:"display: block; margin: auto",click:()=>this.el.close()},"Close"))),this.share_name.select(),this.el.addEventListener("close",()=>{this.el.remove()})}async upload(){this.uploading.style.display="",this.upload_begin.style.display="none";try{let P=gv(),Q=await Eze(this.share_name.value,P.files[P.current_module]);this.url_share.value=Q,this.upload_finish.style.display=""}catch(P){alert(P.message),this.upload_begin.style.display=""}finally{this.uploading.style.display="none"}}copy(){this.url_share.select(),document.execCommand("copy")}};var Jte=class{constructor(P,Q){this.open_app_window=this.open_app_window.bind(this),this.files=new yte(this,Q),this.tabs={},this.debugger={},P.appendChild(this.root=Mr("div","root",this.editor_container=Mr("div","editor_container"),Mr("div","bottom",this.debugger_container=Mr("div","debugger",this.debugger_loaded=Mr("div","debugger_wrapper",Mr("div","tabs",this.tabs.calltree=Mr("div","tab",Mr("a",{click:()=>this.set_active_tab("calltree"),href:"javascript: void(0)"},"Call tree (F2)")),this.tabs.logs=Mr("div","tab",Mr("a",{click:()=>this.set_active_tab("logs"),href:"javascript: void(0)"},"Logs (F3)")),this.tabs.io_trace=Mr("div","tab",Mr("a",{click:()=>this.set_active_tab("io_trace"),href:"javascript: void(0)"},"IO trace (F4)"))),this.debugger.calltree=Mr("div",{class:"tab_content",tabindex:0}),this.debugger.logs=Mr("div",{class:"tab_content logs",tabindex:0}),this.debugger.io_trace=Mr("div",{class:"tab_content io_trace",tabindex:0})),this.debugger_loading=Mr("div","debugger_wrapper",this.debugger_loading_message=Mr("div"))),this.problems_container=Mr("div",{class:"problems_container",tabindex:0},this.problems=Mr("div"))),this.files.el,this.statusbar=Mr("div","statusbar",this.loading_spinner=Mr("div","spinner"),this.status=Mr("div","status"),this.current_module=Mr("div","current_module"),Mr("a",{class:"statusbar_action first",href:"javascript: void(0)",click:()=>this.clear_io_trace()},"Clear IO trace (F6)"),Mr("a",{class:"statusbar_action open_app_window_button",href:"javascript: void(0)",click:this.open_app_window},"(Re)open app window (F7)",this.open_app_window_tooltip=Mr("div",{class:"open_app_window_tooltip"},"Click here to open app window")),Mr("div","options",Mr("label",{for:"standard"},Mr("input",{id:"standard",type:"radio",name:"keyboard",checked:localStorage.keyboard=="standard"||localStorage.keyboard==null,change:()=>{this.editor.set_keyboard_handler("standard")}}),"Standard"),Mr("label",{for:"vim"},Mr("input",{id:"vim",type:"radio",name:"keyboard",checked:localStorage.keyboard=="vim",change:()=>{this.editor.set_keyboard_handler("vim")}}),"VIM")),Mr("div","options use_ts",Mr("label",{for:"js"},Mr("input",{id:"js",type:"radio",name:"use_ts",change:this.files.change_use_ts.bind(this.files,!1)}),"JavaScript"),Mr("label",{for:"ts"},Mr("input",{id:"ts",type:"radio",name:"use_ts",change:this.files.change_use_ts.bind(this.files,!0)}),"TypeScript")),Mr("a",{class:"show_help",href:"javascript: void(0)",click:()=>this.help_dialog.showModal()},"Help"),Mr("a",{class:"github",href:"https://leporello.tech",target:"__blank"},"Website"),Mr("button",{class:"statusbar_button",click:()=>this.render_share_dialog()},"Share"),Mr("button",{class:"statusbar_button",click:()=>this.files.el.showModal()},"Files"),this.help_dialog=this.render_help()))),window.addEventListener("keydown",()=>this.clear_status(),!0),window.addEventListener("click",()=>this.clear_status(),!0),window.addEventListener("keydown",Ee=>{Ee.key=="F2"&&this.set_active_tab("calltree"),Ee.key=="F3"&&this.set_active_tab("logs"),Ee.key=="F4"&&this.set_active_tab("io_trace"),Ee.key=="F6"&&this.clear_io_trace(),Ee.key=="F7"&&this.open_app_window()}),this.editor=new hte(this,this.editor_container);let ae=document.querySelector(":root");ae.style.setProperty("--code-font-family",this.editor.getFontFamily()),ae.style.setProperty("--code-line-height",this.editor.getLineHeight()),this.calltree=new jte(this,this.debugger.calltree),this.logs=new Ute(this,this.debugger.logs),this.io_trace=new Hte(this,this.debugger.io_trace),this.render_current_module(Q.current_module),this.set_active_tab("calltree",!0),P.addEventListener("focusin",Ee=>{let Oe;this.editor_container.contains(document.activeElement)?this.editor.has_value_explorer()?Oe=!this.debugger_container.contains(this.editor.value_explorer.return_to):Oe=!0:Oe=!1,this.prev_is_focus_in_editor!=Oe&&(this.prev_is_focus_in_editor=Oe,Ite(gv(),Oe))})}set_active_tab(P,Q=!1){this.active_tab=P,Object.values(this.tabs).forEach(ae=>ae.classList.remove("active")),this.tabs[P].classList.add("active"),Object.values(this.debugger).forEach(ae=>ae.style.display="none"),this.debugger[P].style.display="block",P=="io_trace"&&this.io_trace.render_io_trace(gv(),!1),Q||this.debugger[P].focus(),P=="calltree"&&!Q&&(Os("calltree.show_value_explorer"),this.calltree.reveal_current_calltree_node())}clear_io_trace(){Os("clear_io_trace")}open_app_window(){this.toggle_open_app_window_tooltip(!1),localStorage.onboarding_open_app_window=!0,M4e(gv())}render_debugger_loading(P){this.debugger_container.style="",this.problems_container.style="display: none",this.debugger_loaded.style="display: none",this.debugger_loading.style="",this.debugger_loading_message.innerText=P.run_state.status==eu.load_external_imports?"Loading external modules...":"Executing code..."}render_debugger(P){this.debugger_container.style="",this.problems_container.style="display: none",this.debugger_loading.style="display: none",this.debugger_loaded.style="",this.calltree.render_calltree(P),this.logs.render_logs(P,null,P.logs)}render_io_trace(P){this.active_tab=="io_trace"?this.io_trace.render_io_trace(P,!0):this.io_trace.clear()}render_problems(P){this.debugger_container.style="display: none",this.problems_container.style="",this.problems.innerHTML="",P.forEach(Q=>{let Ee=this.editor.get_session(Q.module).getPositionAt(Q.index),Oe=hv(Q.module);this.problems.appendChild(Mr("div","problem",Mr("a",{href:"javascript:void(0)",click:()=>Os("goto_problem",Q)},`${Oe}:${Ee.lineNumber}:${Ee.column} - ${Q.message}`)))})}set_status(P){for(let Q of this.statusbar.children)Q.classList.toggle("display-none",!0);this.status.classList.toggle("display-none",!1),this.status.innerText=P}clear_status(){for(let P of this.statusbar.children)P.classList.toggle("display-none",!1);this.status.innerText="",this.status.classList.toggle("display-none",!0)}render_current_module(P){this.clear_status(),this.current_module.innerText=hv(P);let Q=this.root.querySelector(".use_ts");if(P.startsWith("scratch/")){Q.style.visibility="visible";let ae=/\.(js|jsx)$/.test(P);this.root.querySelectorAll("[name=use_ts]").forEach(Ee=>{Ee.checked=Ee.id=="js"?ae:!ae})}else Q.style.visibility="hidden"}render_help(){let P=navigator.platform.toLowerCase().includes("mac")?"Cmd":"Ctrl",Q=[["Focus value inspector","F1"],["Navigate value inspector","\u2190 \u2192 \u2191 \u2193 or hjkl"],["Leave value inspector","F1 or Esc"],["Focus call tree view","F2"],["Navigate call tree view","\u2190 \u2192 \u2191 \u2193 or hjkl"],["Leave call tree view","F2 or Esc"],["Focus console logs","F3"],["Navigate console logs","\u2191 \u2193 or jk"],["Leave console logs","F3 or Esc"],["Focus IO trace","F4"],["Leave IO trace","F4 or Esc"],["Go to definition",P+"-F12","gd"],["Expand selection to eval expression","Ctrl-\u2193 or Ctrl-j"],["Collapse selection","Ctrl-\u2191 or Ctrl-k"],["Step into call","F11"],["Step out of call","Shift-F11"],["Jump to return statement (in call tree view)","Enter"],["Jump to function arguments (in call tree view)","a"],["Jump to error origin (in call tree view)","e"],["Clear IO trace","F6"],["(Re)open run window (F7)","F7"]];return Mr("dialog","help_dialog",Mr("table","help",Mr("thead","",Mr("th","","Action"),Mr("th","key","Standard"),Mr("th","key","VIM")),Mr("tbody","",Q.map(([ae,Ee,Oe])=>Mr("tr","",Mr("td","",ae),Mr("td",Oe==null?{class:"key spanned",colspan:2}:{class:"key"},Ee),Oe==null?null:Mr("td","key",Oe))))),Mr("form",{method:"dialog"},Mr("button",null,"Close")))}render_share_dialog(){let P=new Kte().el;this.root.appendChild(P),P.showModal()}toggle_open_app_window_tooltip(P){this.open_app_window_tooltip.classList.toggle("on",P)}};var tbt=x=>new globalThis.app_window.Function("url",` return import(url) - `)(R),Kvt=async R=>{let M=R.run_state.external_imports,ee=await Promise.allSettled(M.map(Ie=>Hvt(/^\w+:\/\//.test(Ie)?Ie:"https://esm.sh/"+Ie))),le=Object.fromEntries(ee.map((Ie,Oe)=>[M[Oe],{ok:Ie.status=="fulfilled",error:Ie.reason,module:Ie.value}]));Ys("external_imports_loaded",R,le)},gze=R=>{R.run_state.status==Ju.parse&&K4e().then(M=>Ys("parse_finished",!0,M))},Jvt=(R,M)=>{R.editor.clear_markers(M,"coloring")},rEe=(R,M)=>{Jvt(R,M.current_module)},hze=(R,M)=>{let ee=M.current_module,le=R.editor.get_session(ee);R.editor.set_markers(ee,"coloring",_3e(M,ee).map(Ie=>{let Oe=le.getPositionAt(Ie.index),ft=le.getPositionAt(Ie.index+Ie.length);return{range:new monaco.Range(Oe.lineNumber,Oe.column,ft.lineNumber,ft.column),options:{shouldFillLineOnLineBreak:!0,className:Ie.result.ok?"evaluated_ok":"evaluated_error"}}}))},yze=(R,M)=>{M.parse_result!=null&&(M.parse_result.ok||R.render_problems(M.parse_result.problems))},vze=(R,M,ee)=>{Dbe(M.current_module,M.files[M.current_module]),gze(M),R.editor.switch_session(M.current_module),yze(R,M),ee!=null&&ee.with_app_window&&!localStorage.onboarding_open_app_window&&R.toggle_open_app_window_tooltip(!0)},bze=(R,M,ee,le)=>{if(R!=M){if(R.project_dir!=M.project_dir&&ee.files.render(M),R.files!=M.files)for(let Ie in R.files)M.files[Ie]==null&&H4e(Ie);if(R.current_module!=M.current_module&&(ee.files.render_current_module(M.current_module),localStorage.current_module=M.current_module,ee.render_current_module(M.current_module),Dbe(M.current_module,M.files[M.current_module])),R.entrypoint!=M.entrypoint&&(localStorage.entrypoint=M.entrypoint),R.html_file!=M.html_file&&(M.html_file==null?delete M.html_file:localStorage.html_file=M.html_file),R.current_module!=M.current_module&&(ee.editor.unembed_value_explorer(),ee.editor.switch_session(M.current_module,M.files[M.current_module])),_L(M)!=ee.editor.get_cursor_position()&&le!="on_deferred_call"&&ee.editor.set_cursor_position(_L(M)),(R.run_state?.status!=M.run_state.status||M.run_state.status==Ju.reload_app_window&&R.run_state.reload_counter!=M.run_state.reload_counter)&&(gze(M),M.run_state.status==Ju.reload_app_window&&hbe(M),M.run_state.status==Ju.load_external_imports&&Kvt(M),M.run_state.status==Ju.eval_modules&&M.run_state.promise.then(Ie=>{Ys("eval_modules_finished",M.execution_id,Ie)}),ee.loading_spinner.style.visibility=M.run_state.status==Ju.eval_modules_finished||M.run_state.status==Ju.reload_app_window_finished?"hidden":"initial"),R.parse_result!=M.parse_result){if(yze(ee,M),R.parse_result?.is_external_imports_problems){let Ie=new Set(R.parse_result.problems.map(Oe=>Oe.module));for(let Oe of Ie){let ft=monaco.editor.getModel(monaco.Uri.file(Oe));ft!=null&&monaco.editor.setModelMarkers(ft,"is_external_imports_problems",[])}}if(M.parse_result.is_external_imports_problems){let Ie=new Map;for(let Oe of M.parse_result.problems){let ft=Ie.get(Oe.module);ft==null&&(ft=[],Ie.set(Oe.module,ft)),ft.push(Oe)}for(let[Oe,ft]of Ie.entries()){let Mt=monaco.editor.getModel(monaco.Uri.file(Oe));Mt!=null&&monaco.editor.setModelMarkers(Mt,"is_external_imports_problems",ft.map(Yt=>{let qt=Mt.getPositionAt(Yt.index),vr=Mt.getPositionAt(Yt.index+Yt.length);return{startColumn:qt.column,startLineNumber:qt.lineNumber,endColumn:vr.column,endLineNumber:vr.lineNumber,severity:monaco.MarkerSeverity.Error,message:Yt.message}}))}}}if(M.parse_result?.ok?R.calltree==null||R.execution_id!=M.execution_id?M.calltree==null?(ee.calltree.clear_calltree(),rEe(ee,M),ee.render_debugger_loading(M)):(ee.render_debugger(M),rEe(ee,M),hze(ee,M),ee.logs.rerender_logs(M,M.logs),(R.io_trace!=M.io_trace||R.rt_cxt?.io_trace_index!=M.rt_cxt.io_trace_index)&&ee.render_io_trace(M)):(rI(R)==null&&rI(M)!=null&&ee.calltree.render_deferred_calls(M),M.io_trace.length!=ee.io_trace.io_trace_length&&ee.render_io_trace(M),(R.calltree!=M.calltree||R.calltree_node_is_expanded!=M.calltree_node_is_expanded)&&ee.calltree.render_expand_node(R,M),M.current_calltree_node!=R.current_calltree_node&&ee.calltree.render_select_node(R,M),R.colored_frames!=M.colored_frames&&hze(ee,M),ee.logs.render_logs(M,R.logs,M.logs),(R.run_state.status!=M.run_state.status&&M.run_state.status=="eval_modules_finished"||(R.current_calltree_node!=M.current_calltree_node||R.calltree_node_is_expanded!=M.calltree_node_is_expanded)&&M.run_state.status=="eval_modules_finished")&&Ite(M,ee.is_focus_in_editor)):(ee.calltree.clear_calltree(),rEe(ee,M)),R.selection_state!=M.selection_state){ee.editor.clear_markers(M.current_module,"selection");let Ie=M.selection_state?.node;if(Ie!=null){let Oe=ee.editor.get_session(M.current_module),ft=Oe.getPositionAt(Ie.index),Mt=Oe.getPositionAt(Ie.index+Ie.length);ee.editor.set_markers(M.current_module,"selection",[{range:new monaco.Range(ft.lineNumber,ft.column,Mt.lineNumber,Mt.column),options:{className:"selection"}}])}}R.value_explorer!=M.value_explorer&&(M.value_explorer==null?ee.editor.unembed_value_explorer():ee.editor.embed_value_explorer(M,M.value_explorer))}},Eze={set_focus:(R,M,ee)=>{ee.editor.focus()},set_status:(R,[M],ee)=>{ee.set_status(M)},save_to_localstorage(R,[M,ee]){localStorage[M]=ee},write:(R,[M,ee],le,Ie)=>{if(M.startsWith("scratch/"))Lbe(M,ee);else if(M.startsWith("local/"))h4e(/local\/(.*)/.exec(M)[1],ee);else throw new Error("illegal state")}};var qvt=[{id:"github_api",name:"Github API",path:"github_api/index.js"},{id:"fibonacci",name:"Fibonacci numbers",path:"fibonacci/index.js"},{id:"todos-preact",name:"TODO app in preact.js",path:"todos-preact/index.js",with_app_window:!0},{id:"ethers",name:"ethers.js",path:"ethers/block_by_timestamp.js"},{id:"plot",name:"Plot",path:"plot/index.js"},{id:"fractal_tree",name:"Fractal tree",path:"fractal_tree/fractal_tree.js",with_app_window:!0},{id:"animated_fractal_tree",name:"Animated fractal tree",path:"animated_fractal_tree/animated_fractal_tree.js",with_app_window:!0},{id:"canvas_animation_bubbles",name:"Canvas animated bubbles",path:"canvas_animation_bubbles/bubbles.js",with_app_window:!0}];async function Sze(){let M=new URLSearchParams(window.location.search).get("example"),ee=new URL(window.location);ee.searchParams.delete("example"),history.replaceState(null,null,ee.href);let le=qvt.find(Mt=>Mt.id==M);if(le==null)return null;let Ie=globalThis.location.origin+"/docs/examples/"+le.path,ft=await(await fetch(Ie)).text();return{...le,contents:ft}}var a3e=()=>{if(globalThis.showDirectoryPicker==null)throw new Error("Your browser is not supporting File System Access API");lL(!0).then(R=>{Ys("load_local_dir",R)})},s3e=async()=>{_4e(),Ys("load_local_dir",null)},iEe,iI,f0,Tze=async(R,M)=>{iEe=M;let ee=await lL(!1),le,Ie,Oe=await Sze();if(Oe!=null)Ie=Oe.contents,le=Oe.name;else{let qt=await _ze();qt!=null&&({name:le,contents:Ie}=qt)}let ft,Mt=uL();if(le!=null){/(js|ts)(x)?$/.test(le)||(le=le+".js");let qt=Mt.children.find(vr=>vr.contents==Ie);qt==null&&(Mt=e3e(le,Ie),qt=Mt.children[0]),ft={current_module:qt.path,entrypoint:qt.path,html_file:null}}else ft={current_module:localStorage.current_module,entrypoint:localStorage.entrypoint,html_file:localStorage.html_file};let Yt={scratch_files:Mt,local_files:ee};f0=iEe.get_initial_state({project_dir:Yt,on_deferred_call:(...qt)=>Ys("on_deferred_call",...qt),...ft}),globalThis.__state=f0,iI=new Vte(R,f0),globalThis.__ui=iI,vze(iI,f0,Oe),I4e(f0)},gv=()=>f0,Ys=(R,...M)=>{R=="input"||R=="write"?console.log("exec",R):console.log("exec",R,...M);let ee=R.split(".").reduce((ft,Mt)=>ft?.[Mt],iEe);if(ee==null)throw new Error("command "+R+" + not found");let le=ee(f0,...M);console.log("nextstate",le);let Ie,Oe;if(le.state!=null?{state:Ie,effects:Oe}=le:(Ie=le,Oe=null),f0?.current_module==null)throw console.error("command did not return state, returned",le),new Error("illegal state");bze(f0,Ie,iI,R),Oe!=null&&(Array.isArray(Oe)?Oe:[Oe]).forEach(ft=>{ft.type=="write"||ft.type=="save_to_localstorage"?console.log("apply effect",ft.type):console.log("apply effect",ft.type,...ft.args??[]),Eze[ft.type](Ie,ft.args,iI,f0)}),globalThis.__prev_state=f0,globalThis.__state=Ie,f0=Ie};Tze(globalThis.document.getElementById("app"),Lte); + `)(x),nbt=async x=>{let P=x.run_state.external_imports,Q=await Promise.allSettled(P.map(Ee=>tbt(/^\w+:\/\//.test(Ee)?Ee:"https://esm.sh/"+Ee))),ae=Object.fromEntries(Q.map((Ee,Oe)=>[P[Oe],{ok:Ee.status=="fulfilled",error:Ee.reason,module:Ee.value}]));Os("external_imports_loaded",x,ae)},Aze=x=>{x.run_state.status==eu.parse&&Q4e().then(P=>Os("parse_finished",!0,P))},rbt=(x,P)=>{x.editor.clear_markers(P,"coloring")},cEe=(x,P)=>{rbt(x,P.current_module)},Tze=(x,P)=>{let Q=P.current_module,ae=x.editor.get_session(Q);x.editor.set_markers(Q,"coloring",b3e(P,Q).map(Ee=>{let Oe=ae.getPositionAt(Ee.index),ut=ae.getPositionAt(Ee.index+Ee.length);return{range:new monaco.Range(Oe.lineNumber,Oe.column,ut.lineNumber,ut.column),options:{shouldFillLineOnLineBreak:!0,className:Ee.result.ok?"evaluated_ok":"evaluated_error"}}}))},Ize=(x,P)=>{P.parse_result!=null&&(P.parse_result.ok||x.render_problems(P.parse_result.problems))},xze=(x,P,Q)=>{Lbe(P.current_module,P.files[P.current_module]),Aze(P),x.editor.switch_session(P.current_module),Ize(x,P),Q!=null&&Q.with_app_window&&!localStorage.onboarding_open_app_window&&x.toggle_open_app_window_tooltip(!0)},Rze=(x,P,Q,ae)=>{if(x!=P){if(x.project_dir!=P.project_dir&&Q.files.render(P),x.files!=P.files)for(let Ee in x.files)P.files[Ee]==null&&$4e(Ee);if(x.current_module!=P.current_module&&(Q.files.render_current_module(P.current_module),localStorage.current_module=P.current_module,Q.render_current_module(P.current_module),Lbe(P.current_module,P.files[P.current_module])),x.entrypoint!=P.entrypoint&&(localStorage.entrypoint=P.entrypoint),x.html_file!=P.html_file&&(P.html_file==null?delete P.html_file:localStorage.html_file=P.html_file),x.current_module!=P.current_module&&(Q.editor.unembed_value_explorer(),Q.editor.switch_session(P.current_module,P.files[P.current_module])),hL(P)!=Q.editor.get_cursor_position()&&ae!="on_deferred_call"&&Q.editor.set_cursor_position(hL(P)),(x.run_state?.status!=P.run_state.status||P.run_state.status==eu.reload_app_window&&x.run_state.reload_counter!=P.run_state.reload_counter)&&(Aze(P),P.run_state.status==eu.reload_app_window&&Ebe(P),P.run_state.status==eu.load_external_imports&&nbt(P),P.run_state.status==eu.eval_modules&&P.run_state.promise.then(Ee=>{Os("eval_modules_finished",P.execution_id,Ee)}),Q.loading_spinner.style.visibility=P.run_state.status==eu.eval_modules_finished||P.run_state.status==eu.reload_app_window_finished?"hidden":"initial"),x.parse_result!=P.parse_result){if(Ize(Q,P),x.parse_result?.is_external_imports_problems){let Ee=new Set(x.parse_result.problems.map(Oe=>Oe.module));for(let Oe of Ee){let ut=monaco.editor.getModel(monaco.Uri.file(Oe));ut!=null&&monaco.editor.setModelMarkers(ut,"is_external_imports_problems",[])}}if(P.parse_result.is_external_imports_problems){let Ee=new Map;for(let Oe of P.parse_result.problems){let ut=Ee.get(Oe.module);ut==null&&(ut=[],Ee.set(Oe.module,ut)),ut.push(Oe)}for(let[Oe,ut]of Ee.entries()){let Rt=monaco.editor.getModel(monaco.Uri.file(Oe));Rt!=null&&monaco.editor.setModelMarkers(Rt,"is_external_imports_problems",ut.map(Gt=>{let Vt=Rt.getPositionAt(Gt.index),cr=Rt.getPositionAt(Gt.index+Gt.length);return{startColumn:Vt.column,startLineNumber:Vt.lineNumber,endColumn:cr.column,endLineNumber:cr.lineNumber,severity:monaco.MarkerSeverity.Error,message:Gt.message}}))}}}if(P.parse_result?.ok?x.calltree==null||x.execution_id!=P.execution_id?P.calltree==null?(Q.calltree.clear_calltree(),cEe(Q,P),Q.render_debugger_loading(P)):(Q.render_debugger(P),cEe(Q,P),Tze(Q,P),Q.logs.rerender_logs(P,P.logs),(x.io_trace!=P.io_trace||x.rt_cxt?.io_trace_index!=P.rt_cxt.io_trace_index)&&Q.render_io_trace(P)):(rI(x)==null&&rI(P)!=null&&Q.calltree.render_deferred_calls(P),P.io_trace.length!=Q.io_trace.io_trace_length&&Q.render_io_trace(P),(x.calltree!=P.calltree||x.calltree_node_is_expanded!=P.calltree_node_is_expanded)&&Q.calltree.render_expand_node(x,P),P.current_calltree_node!=x.current_calltree_node&&Q.calltree.render_select_node(x,P),x.colored_frames!=P.colored_frames&&Tze(Q,P),Q.logs.render_logs(P,x.logs,P.logs),(x.run_state.status!=P.run_state.status&&P.run_state.status=="eval_modules_finished"||(x.current_calltree_node!=P.current_calltree_node||x.calltree_node_is_expanded!=P.calltree_node_is_expanded)&&P.run_state.status=="eval_modules_finished")&&Ite(P,Q.is_focus_in_editor)):(Q.calltree.clear_calltree(),cEe(Q,P)),x.selection_state!=P.selection_state){Q.editor.clear_markers(P.current_module,"selection");let Ee=P.selection_state?.node;if(Ee!=null){let Oe=Q.editor.get_session(P.current_module),ut=Oe.getPositionAt(Ee.index),Rt=Oe.getPositionAt(Ee.index+Ee.length);Q.editor.set_markers(P.current_module,"selection",[{range:new monaco.Range(ut.lineNumber,ut.column,Rt.lineNumber,Rt.column),options:{className:"selection"}}])}}x.value_explorer!=P.value_explorer&&(P.value_explorer==null?Q.editor.unembed_value_explorer():Q.editor.embed_value_explorer(P,P.value_explorer))}},Dze={set_focus:(x,P,Q)=>{Q.editor.focus()},set_status:(x,[P],Q)=>{Q.set_status(P)},save_to_localstorage(x,[P,Q]){localStorage[P]=Q},write:(x,[P,Q],ae,Ee)=>{if(P.startsWith("scratch/"))Fbe(P,Q);else if(P.startsWith("local/"))S4e(/local\/(.*)/.exec(P)[1],Q);else throw new Error("illegal state")}};var ibt=[{id:"github_api",name:"Github API",path:"github_api/index.js"},{id:"fibonacci",name:"Fibonacci numbers",path:"fibonacci/index.js"},{id:"todos-preact",name:"TODO app in preact.js",path:"todos-preact/index.js",with_app_window:!0},{id:"ethers",name:"ethers.js",path:"ethers/block_by_timestamp.js"},{id:"plot",name:"Plot",path:"plot/index.js"},{id:"fractal_tree",name:"Fractal tree",path:"fractal_tree/fractal_tree.js",with_app_window:!0},{id:"animated_fractal_tree",name:"Animated fractal tree",path:"animated_fractal_tree/animated_fractal_tree.js",with_app_window:!0},{id:"canvas_animation_bubbles",name:"Canvas animated bubbles",path:"canvas_animation_bubbles/bubbles.js",with_app_window:!0}];async function Cze(){let P=new URLSearchParams(window.location.search).get("example"),Q=new URL(window.location);Q.searchParams.delete("example"),history.replaceState(null,null,Q.href);let ae=ibt.find(Rt=>Rt.id==P);if(ae==null)return null;let Ee=globalThis.location.origin+"/docs/examples/"+ae.path,ut=await(await fetch(Ee)).text();return{...ae,contents:ut}}var p3e=()=>{if(globalThis.showDirectoryPicker==null)throw new Error("Your browser is not supporting File System Access API");cL(!0).then(x=>{Os("load_local_dir",x)})},f3e=async()=>{E4e(),Os("load_local_dir",null)},dEe,iI,m0,Nze=async(x,P)=>{dEe=P;let Q=await cL(!1),ae,Ee,Oe=await Cze();if(Oe!=null)Ee=Oe.contents,ae=Oe.name;else{let Vt=await Sze();Vt!=null&&({name:ae,contents:Ee}=Vt)}let ut,Rt=pL();if(ae!=null){/(js|ts)(x)?$/.test(ae)||(ae=ae+".js");let Vt=Rt.children.find(cr=>cr.contents==Ee);Vt==null&&(Rt=a3e(ae,Ee),Vt=Rt.children[0]),ut={current_module:Vt.path,entrypoint:Vt.path,html_file:null}}else ut={current_module:localStorage.current_module,entrypoint:localStorage.entrypoint,html_file:localStorage.html_file};let Gt={scratch_files:Rt,local_files:Q};m0=dEe.get_initial_state({project_dir:Gt,on_deferred_call:(...Vt)=>Os("on_deferred_call",...Vt),allow_sync_execution:!1,...ut}),globalThis.__state=m0,iI=new Jte(x,m0),globalThis.__ui=iI,xze(iI,m0,Oe),P4e(m0)},gv=()=>m0,Os=(x,...P)=>{x=="input"||x=="write"?console.log("exec",x):console.log("exec",x,...P);let Q=x.split(".").reduce((ut,Rt)=>ut?.[Rt],dEe);if(Q==null)throw new Error("command "+x+" + not found");let ae=Q(m0,...P);console.log("nextstate",ae);let Ee,Oe;if(ae.state!=null?{state:Ee,effects:Oe}=ae:(Ee=ae,Oe=null),m0?.current_module==null)throw console.error("command did not return state, returned",ae),new Error("illegal state");Rze(m0,Ee,iI,x),Oe!=null&&(Array.isArray(Oe)?Oe:[Oe]).forEach(ut=>{ut.type=="write"||ut.type=="save_to_localstorage"?console.log("apply effect",ut.type):console.log("apply effect",ut.type,...ut.args??[]),Dze[ut.type](Ee,ut.args,iI,m0)}),globalThis.__prev_state=m0,globalThis.__state=Ee,m0=Ee};Nze(globalThis.document.getElementById("app"),Wte); /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)